2010-10-20 20:11:15 +02:00
|
|
|
/*
|
|
|
|
|
|
|
|
Copyright 2010, Google Inc.
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
|
modification, are permitted provided that the following conditions are
|
|
|
|
met:
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
* Redistributions of source code must retain the above copyright
|
2010-10-20 20:11:15 +02:00
|
|
|
notice, this list of conditions and the following disclaimer.
|
2011-08-04 22:37:14 +02:00
|
|
|
* Redistributions in binary form must reproduce the above
|
2010-10-20 20:11:15 +02:00
|
|
|
copyright notice, this list of conditions and the following disclaimer
|
|
|
|
in the documentation and/or other materials provided with the
|
|
|
|
distribution.
|
2011-08-04 22:37:14 +02:00
|
|
|
* Neither the name of Google Inc. nor the names of its
|
2010-10-20 20:11:15 +02:00
|
|
|
contributors may be used to endorse or promote products derived from
|
|
|
|
this software without specific prior written permission.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
*/
|
2010-10-20 20:11:15 +02:00
|
|
|
|
2010-01-26 20:54:14 +01:00
|
|
|
function DataTableView(div) {
|
2011-08-04 22:37:14 +02:00
|
|
|
this._div = div;
|
|
|
|
|
2020-06-27 21:58:48 +02:00
|
|
|
this._gridPagesSizes = JSON.parse(Refine.getPreference("ui.browsing.pageSize", null));
|
2020-06-18 10:35:37 +02:00
|
|
|
this._gridPagesSizes = this._checkPaginationSize(this._gridPagesSizes, [ 5, 10, 25, 50 ]);
|
|
|
|
this._pageSize = ( this._gridPagesSizes[0] < 10 ) ? 10 : this._gridPagesSizes[0];
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
this._showRecon = true;
|
|
|
|
this._collapsedColumnNames = {};
|
|
|
|
this._sorting = { criteria: [] };
|
|
|
|
this._columnHeaderUIs = [];
|
2018-04-19 13:00:38 +02:00
|
|
|
this._shownulls = false;
|
2011-08-04 22:37:14 +02:00
|
|
|
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
this._currentPageNumber = 1;
|
2011-08-04 22:37:14 +02:00
|
|
|
this._showRows(0);
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
|
|
|
|
this._refocusPageInput = false;
|
2010-01-26 20:54:14 +01:00
|
|
|
}
|
|
|
|
|
2010-10-18 03:53:23 +02:00
|
|
|
DataTableView._extenders = [];
|
|
|
|
|
|
|
|
/*
|
2011-08-04 22:37:14 +02:00
|
|
|
To extend, do something like this
|
|
|
|
|
|
|
|
DataTableView.extendMenu(function(dataTableView, menu) {
|
|
|
|
...
|
|
|
|
MenuSystem.appendTo(menu, [ "core/view" ], {
|
|
|
|
"label": "Test",
|
|
|
|
"click": function() {
|
|
|
|
alert("Test");
|
|
|
|
}
|
2010-10-18 03:53:23 +02:00
|
|
|
});
|
2011-08-04 22:37:14 +02:00
|
|
|
});
|
2010-10-18 03:53:23 +02:00
|
|
|
*/
|
|
|
|
DataTableView.extendMenu = function(extender) {
|
2011-08-04 22:37:14 +02:00
|
|
|
DataTableView._extenders.push(extender);
|
2010-10-18 03:53:23 +02:00
|
|
|
};
|
|
|
|
|
2010-05-26 07:42:31 +02:00
|
|
|
DataTableView.prototype.getSorting = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
return this._sorting;
|
2010-05-26 07:42:31 +02:00
|
|
|
};
|
|
|
|
|
2010-03-22 22:48:36 +01:00
|
|
|
DataTableView.prototype.resize = function() {
|
2011-09-02 00:03:10 +02:00
|
|
|
|
|
|
|
var topHeight =
|
2020-06-16 11:40:13 +02:00
|
|
|
this._div.find(".viewpanel-header").outerHeight(true);
|
2011-08-04 22:37:14 +02:00
|
|
|
var tableContainerIntendedHeight = this._div.innerHeight() - topHeight;
|
2011-09-02 00:03:10 +02:00
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
var tableContainer = this._div.find(".data-table-container").css("display", "block");
|
|
|
|
var tableContainerVPadding = tableContainer.outerHeight(true) - tableContainer.height();
|
|
|
|
tableContainer.height((tableContainerIntendedHeight - tableContainerVPadding) + "px");
|
2010-03-08 07:48:12 +01:00
|
|
|
};
|
|
|
|
|
2010-02-26 22:56:41 +01:00
|
|
|
DataTableView.prototype.update = function(onDone) {
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
this._currentPageNumber = 1;
|
2011-08-04 22:37:14 +02:00
|
|
|
this._showRows(0, onDone);
|
2010-02-02 21:50:35 +01:00
|
|
|
};
|
|
|
|
|
2010-01-26 20:54:14 +01:00
|
|
|
DataTableView.prototype.render = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
|
|
|
|
var oldTableDiv = this._div.find(".data-table-container");
|
|
|
|
var scrollLeft = (oldTableDiv.length > 0) ? oldTableDiv[0].scrollLeft : 0;
|
|
|
|
|
|
|
|
var html = $(
|
|
|
|
'<div class="viewpanel-header">' +
|
2018-11-21 18:30:00 +01:00
|
|
|
'<div class="viewpanel-rowrecord" bind="rowRecordControls">'+$.i18n('core-views/show-as')+': ' +
|
2011-09-02 00:03:10 +02:00
|
|
|
'<span bind="modeSelectors"></span>' +
|
|
|
|
'</div>' +
|
|
|
|
'<div class="viewpanel-pagesize" bind="pageSizeControls"></div>' +
|
|
|
|
'<div class="viewpanel-sorting" bind="sortingControls"></div>' +
|
|
|
|
'<div class="viewpanel-paging" bind="pagingControls"></div>' +
|
2011-08-04 22:37:14 +02:00
|
|
|
'</div>' +
|
2011-09-02 00:03:10 +02:00
|
|
|
'<div bind="dataTableContainer" class="data-table-container">' +
|
2020-06-16 11:40:13 +02:00
|
|
|
'<table class="data-table">'+
|
|
|
|
'<thead bind="tableHeader" class="data-table-header">'+
|
|
|
|
'</thead>'+
|
|
|
|
'<tbody bind="table" class="data-table">'+
|
|
|
|
'</tbody>'+
|
|
|
|
'</table>' +
|
2011-08-04 22:37:14 +02:00
|
|
|
'</div>'
|
|
|
|
);
|
|
|
|
var elmts = DOM.bind(html);
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
this._div.empty().append(html);
|
2011-08-04 22:37:14 +02:00
|
|
|
|
|
|
|
ui.summaryBar.updateResultCount();
|
|
|
|
|
|
|
|
var renderBrowsingModeLink = function(label, value) {
|
|
|
|
var a = $('<a href="javascript:{}"></a>')
|
|
|
|
.addClass("viewPanel-browsingModes-mode")
|
|
|
|
.text(label)
|
|
|
|
.appendTo(elmts.modeSelectors);
|
|
|
|
|
|
|
|
if (value == ui.browsingEngine.getMode()) {
|
|
|
|
a.addClass("selected");
|
|
|
|
} else {
|
|
|
|
a.addClass("action").click(function(evt) {
|
|
|
|
ui.browsingEngine.setMode(value);
|
|
|
|
});
|
2010-05-21 06:11:08 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
};
|
2018-11-21 18:30:00 +01:00
|
|
|
renderBrowsingModeLink($.i18n('core-views/rows'), "row-based");
|
|
|
|
renderBrowsingModeLink($.i18n('core-views/records'), "record-based");
|
2011-08-04 22:37:14 +02:00
|
|
|
|
|
|
|
this._renderPagingControls(elmts.pageSizeControls, elmts.pagingControls);
|
|
|
|
|
|
|
|
if (this._sorting.criteria.length > 0) {
|
|
|
|
this._renderSortingControls(elmts.sortingControls);
|
|
|
|
}
|
|
|
|
|
2020-06-16 11:40:13 +02:00
|
|
|
this._renderDataTables(elmts.table[0], elmts.tableHeader[0]);
|
2018-04-19 13:00:38 +02:00
|
|
|
|
|
|
|
// show/hide null values in cells
|
|
|
|
$(".data-table-null").toggle(self._shownulls);
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
this.resize();
|
2011-09-02 00:03:10 +02:00
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
elmts.dataTableContainer[0].scrollLeft = scrollLeft;
|
2010-03-22 22:48:36 +01:00
|
|
|
};
|
|
|
|
|
2010-05-21 06:11:08 +02:00
|
|
|
DataTableView.prototype._renderSortingControls = function(sortingControls) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
|
|
|
|
$('<a href="javascript:{}"></a>')
|
|
|
|
.addClass("action")
|
2020-01-08 01:31:51 +01:00
|
|
|
.text($.i18n('core-views/sort') + " ")
|
2012-11-20 22:02:20 +01:00
|
|
|
.append($('<img>').attr("src", "../images/down-arrow.png"))
|
2011-08-04 22:37:14 +02:00
|
|
|
.appendTo(sortingControls)
|
|
|
|
.click(function() {
|
|
|
|
self._createSortingMenu(this);
|
|
|
|
});
|
2010-05-21 06:11:08 +02:00
|
|
|
};
|
|
|
|
|
2010-04-13 10:06:05 +02:00
|
|
|
DataTableView.prototype._renderPagingControls = function(pageSizeControls, pagingControls) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
self._lastPageNumber = Math.floor((theProject.rowModel.filtered - 1) / this._pageSize) + 1;
|
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
var from = (theProject.rowModel.start + 1);
|
|
|
|
var to = Math.min(theProject.rowModel.filtered, theProject.rowModel.start + theProject.rowModel.limit);
|
|
|
|
|
2018-11-21 18:30:00 +01:00
|
|
|
var firstPage = $('<a href="javascript:{}">« '+$.i18n('core-views/first')+'</a>').appendTo(pagingControls);
|
|
|
|
var previousPage = $('<a href="javascript:{}">‹ '+$.i18n('core-views/previous')+'</a>').appendTo(pagingControls);
|
2011-08-04 22:37:14 +02:00
|
|
|
if (theProject.rowModel.start > 0) {
|
|
|
|
firstPage.addClass("action").click(function(evt) { self._onClickFirstPage(this, evt); });
|
|
|
|
previousPage.addClass("action").click(function(evt) { self._onClickPreviousPage(this, evt); });
|
|
|
|
} else {
|
|
|
|
firstPage.addClass("inaction");
|
|
|
|
previousPage.addClass("inaction");
|
|
|
|
}
|
|
|
|
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
var pageControlsSpan = $('<span>').attr("id", "viewpanel-paging-current");
|
|
|
|
|
|
|
|
var pageInputSize = 20 + (8 * ui.dataTableView._lastPageNumber.toString().length);
|
|
|
|
var currentPageInput = $('<input type="number">')
|
|
|
|
.change(function(evt) { self._onChangeGotoPage(this, evt); })
|
|
|
|
.keydown(function(evt) { self._onKeyDownGotoPage(this, evt); })
|
|
|
|
.attr("id", "viewpanel-paging-current-input")
|
|
|
|
.attr("min", 1)
|
|
|
|
.attr("max", self._lastPageNumber)
|
|
|
|
.attr("required", "required")
|
|
|
|
.val(self._currentPageNumber)
|
|
|
|
.css("width", pageInputSize +"px");
|
|
|
|
|
|
|
|
pageControlsSpan.append($.i18n('core-views/goto-page', '<span id="currentPageInput" />', self._lastPageNumber));
|
|
|
|
pageControlsSpan.appendTo(pagingControls);
|
2011-08-04 22:37:14 +02:00
|
|
|
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
$('span#currentPageInput').replaceWith($(currentPageInput));
|
|
|
|
|
|
|
|
if(self._refocusPageInput == true) {
|
|
|
|
self._refocusPageInput = false;
|
|
|
|
var currentPageInputForFocus = $('input#viewpanel-paging-current-input');
|
|
|
|
currentPageInputForFocus.ready(function(evt) { setTimeout(() => { currentPageInputForFocus.focus(); }, 250); });
|
|
|
|
}
|
|
|
|
|
2018-11-21 18:30:00 +01:00
|
|
|
var nextPage = $('<a href="javascript:{}">'+$.i18n('core-views/next')+' ›</a>').appendTo(pagingControls);
|
|
|
|
var lastPage = $('<a href="javascript:{}">'+$.i18n('core-views/last')+' »</a>').appendTo(pagingControls);
|
2011-08-04 22:37:14 +02:00
|
|
|
if (theProject.rowModel.start + theProject.rowModel.limit < theProject.rowModel.filtered) {
|
|
|
|
nextPage.addClass("action").click(function(evt) { self._onClickNextPage(this, evt); });
|
|
|
|
lastPage.addClass("action").click(function(evt) { self._onClickLastPage(this, evt); });
|
|
|
|
} else {
|
|
|
|
nextPage.addClass("inaction");
|
|
|
|
lastPage.addClass("inaction");
|
|
|
|
}
|
|
|
|
|
2018-11-21 18:30:00 +01:00
|
|
|
$('<span>'+$.i18n('core-views/show')+': </span>').appendTo(pageSizeControls);
|
2020-06-18 10:35:37 +02:00
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
var renderPageSize = function(index) {
|
2020-06-18 10:35:37 +02:00
|
|
|
var pageSize = self._gridPagesSizes[index];
|
2011-08-04 22:37:14 +02:00
|
|
|
var a = $('<a href="javascript:{}"></a>')
|
|
|
|
.addClass("viewPanel-pagingControls-page")
|
|
|
|
.appendTo(pageSizeControls);
|
|
|
|
if (pageSize == self._pageSize) {
|
|
|
|
a.text(pageSize).addClass("selected");
|
2010-01-26 20:54:14 +01:00
|
|
|
} else {
|
2011-08-04 22:37:14 +02:00
|
|
|
a.text(pageSize).addClass("action").click(function(evt) {
|
|
|
|
self._pageSize = pageSize;
|
|
|
|
self.update();
|
|
|
|
});
|
2010-02-02 19:43:19 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
};
|
2020-06-18 10:35:37 +02:00
|
|
|
|
|
|
|
for (var i = 0; i < self._gridPagesSizes.length; i++) {
|
2011-08-04 22:37:14 +02:00
|
|
|
renderPageSize(i);
|
|
|
|
}
|
2020-06-18 10:35:37 +02:00
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
$('<span>')
|
2018-11-21 18:30:00 +01:00
|
|
|
.text(theProject.rowModel.mode == "record-based" ? ' '+$.i18n('core-views/records') : ' '+$.i18n('core-views/rows'))
|
2011-08-04 22:37:14 +02:00
|
|
|
.appendTo(pageSizeControls);
|
2010-03-22 22:48:36 +01:00
|
|
|
};
|
|
|
|
|
2020-06-18 10:35:37 +02:00
|
|
|
DataTableView.prototype._checkPaginationSize = function(gridPageSize, defaultGridPageSize) {
|
|
|
|
var self = this;
|
|
|
|
var newGridPageSize = [];
|
|
|
|
|
|
|
|
if(gridPageSize == null || typeof gridPageSize != "object") return defaultGridPageSize;
|
|
|
|
|
|
|
|
for (var i = 0; i < gridPageSize.length; i++) {
|
|
|
|
if(typeof gridPageSize[i] == "number" && gridPageSize[i] > 0 && gridPageSize[i] < 10000)
|
|
|
|
newGridPageSize.push(gridPageSize[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(newGridPageSize.length < 2) return defaultGridPageSize;
|
|
|
|
|
|
|
|
var distinctValueFilter = (value, index, selfArray) => (selfArray.indexOf(value) == index);
|
|
|
|
newGridPageSize.filter(distinctValueFilter);
|
|
|
|
|
|
|
|
newGridPageSize.sort((a, b) => (a - b));
|
|
|
|
|
|
|
|
return newGridPageSize;
|
|
|
|
};
|
|
|
|
|
2020-06-16 11:40:13 +02:00
|
|
|
DataTableView.prototype._renderDataTables = function(table, tableHeader) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
|
|
|
|
var columns = theProject.columnModel.columns;
|
|
|
|
var columnGroups = theProject.columnModel.columnGroups;
|
|
|
|
|
|
|
|
/*------------------------------------------------------------
|
|
|
|
* Column Group Headers
|
|
|
|
*------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
var renderColumnKeys = function(keys) {
|
|
|
|
if (keys.length > 0) {
|
2020-06-16 11:40:13 +02:00
|
|
|
var tr = tableHeader.insertRow(tableHeader.rows.length);
|
|
|
|
$(tr.appendChild(document.createElement("th"))).attr('colspan', '3'); // star, flag, row index
|
2011-08-04 22:37:14 +02:00
|
|
|
|
|
|
|
for (var c = 0; c < columns.length; c++) {
|
2011-09-02 00:03:10 +02:00
|
|
|
var column = columns[c];
|
2020-06-16 11:40:13 +02:00
|
|
|
var th = tr.appendChild(document.createElement("th"));
|
2020-04-10 07:39:24 +02:00
|
|
|
if (self._collapsedColumnNames.hasOwnProperty(column.name)) {
|
2020-06-16 11:40:13 +02:00
|
|
|
$(th).html(' ');
|
2011-09-02 00:03:10 +02:00
|
|
|
} else {
|
|
|
|
for (var k = 0; k < keys.length; k++) {
|
2020-06-14 10:11:51 +02:00
|
|
|
// if a node is a key in the tree-based data (JSON/XML/etc), then also display a dropdown arrow (non-functional currently)
|
|
|
|
// See https://github.com/OpenRefine/OpenRefine/blob/master/main/src/com/google/refine/model/ColumnGroup.java
|
|
|
|
// and https://github.com/OpenRefine/OpenRefine/tree/master/main/src/com/google/refine/importers/tree
|
2020-06-16 11:40:13 +02:00
|
|
|
if (c == keys[k]) {
|
|
|
|
$('<img />').attr("src", "../images/down-arrow.png").appendTo(th);
|
2011-09-02 00:03:10 +02:00
|
|
|
break;
|
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
2010-02-05 02:27:14 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
var renderColumnGroups = function(groups, keys) {
|
|
|
|
var nextLayer = [];
|
|
|
|
|
|
|
|
if (groups.length > 0) {
|
2020-06-16 11:40:13 +02:00
|
|
|
var tr = tableHeader.insertRow(tableHeader.rows.length);
|
|
|
|
$(tr.appendChild(document.createElement("th"))).attr('colspan', '3'); // star, flag, row index
|
2011-08-04 22:37:14 +02:00
|
|
|
|
|
|
|
for (var c = 0; c < columns.length; c++) {
|
|
|
|
var foundGroup = false;
|
|
|
|
var columnGroup;
|
|
|
|
|
|
|
|
for (var g = 0; g < groups.length; g++) {
|
|
|
|
columnGroup = groups[g];
|
|
|
|
if (columnGroup.startColumnIndex == c) {
|
|
|
|
foundGroup = true;
|
|
|
|
break;
|
|
|
|
}
|
2010-02-05 02:27:14 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
|
2020-06-16 11:40:13 +02:00
|
|
|
var th = tr.appendChild(document.createElement("th"));
|
2011-08-04 22:37:14 +02:00
|
|
|
if (foundGroup) {
|
2020-06-16 11:40:13 +02:00
|
|
|
th.setAttribute("colspan", columnGroup.columnSpan);
|
|
|
|
th.style.background = "#FF6A00";
|
2011-08-04 22:37:14 +02:00
|
|
|
|
|
|
|
if (columnGroup.keyColumnIndex >= 0) {
|
|
|
|
keys.push(columnGroup.keyColumnIndex);
|
|
|
|
}
|
|
|
|
|
|
|
|
c += (columnGroup.columnSpan - 1);
|
|
|
|
|
|
|
|
if ("subgroups" in columnGroup) {
|
|
|
|
nextLayer = nextLayer.concat(columnGroup.subgroups);
|
|
|
|
}
|
2010-02-05 02:27:14 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
renderColumnKeys(keys);
|
|
|
|
|
|
|
|
if (nextLayer.length > 0) {
|
|
|
|
renderColumnGroups(nextLayer, []);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
if (columnGroups.length > 0) {
|
|
|
|
renderColumnGroups(
|
|
|
|
columnGroups,
|
|
|
|
[ theProject.columnModel.keyCellIndex ]
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*------------------------------------------------------------
|
|
|
|
* Column Headers with Menus
|
|
|
|
*------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2020-06-16 11:40:13 +02:00
|
|
|
var trHead = tableHeader.insertRow(tableHeader.rows.length);
|
2011-08-04 22:37:14 +02:00
|
|
|
DOM.bind(
|
2020-06-16 11:40:13 +02:00
|
|
|
$(trHead.appendChild(document.createElement("th")))
|
2011-08-04 22:37:14 +02:00
|
|
|
.attr("colspan", "3")
|
|
|
|
.addClass("column-header")
|
2011-09-02 00:03:10 +02:00
|
|
|
.html(
|
|
|
|
'<div class="column-header-title">' +
|
2018-11-21 18:30:00 +01:00
|
|
|
'<a class="column-header-menu" bind="dropdownMenu"></a><span class="column-header-name">'+$.i18n('core-views/all')+'</span>' +
|
2011-09-02 00:03:10 +02:00
|
|
|
'</div>'
|
|
|
|
)
|
2011-08-04 22:37:14 +02:00
|
|
|
).dropdownMenu.click(function() {
|
|
|
|
self._createMenuForAllColumns(this);
|
|
|
|
});
|
|
|
|
this._columnHeaderUIs = [];
|
|
|
|
var createColumnHeader = function(column, index) {
|
2020-06-16 11:40:13 +02:00
|
|
|
var th = trHead.appendChild(document.createElement("th"));
|
|
|
|
$(th).addClass("column-header").attr('title', column.name);
|
2020-04-10 07:39:24 +02:00
|
|
|
if (self._collapsedColumnNames.hasOwnProperty(column.name)) {
|
2020-06-16 11:40:13 +02:00
|
|
|
$(th).html(" ").click(function(evt) {
|
2011-08-04 22:37:14 +02:00
|
|
|
delete self._collapsedColumnNames[column.name];
|
|
|
|
self.render();
|
|
|
|
});
|
|
|
|
} else {
|
2020-06-16 11:40:13 +02:00
|
|
|
var columnHeaderUI = new DataTableColumnHeaderUI(self, column, index, th);
|
2011-08-04 22:37:14 +02:00
|
|
|
self._columnHeaderUIs.push(columnHeaderUI);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
for (var i = 0; i < columns.length; i++) {
|
|
|
|
createColumnHeader(columns[i], i);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*------------------------------------------------------------
|
|
|
|
* Data Cells
|
|
|
|
*------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
var rows = theProject.rowModel.rows;
|
|
|
|
var renderRow = function(tr, r, row, even) {
|
|
|
|
$(tr).empty();
|
|
|
|
var cells = row.cells;
|
|
|
|
var tdStar = tr.insertCell(tr.cells.length);
|
|
|
|
var star = $('<a href="javascript:{}"> </a>')
|
|
|
|
.addClass(row.starred ? "data-table-star-on" : "data-table-star-off")
|
|
|
|
.appendTo(tdStar)
|
|
|
|
.click(function() {
|
|
|
|
var newStarred = !row.starred;
|
|
|
|
Refine.postCoreProcess(
|
|
|
|
"annotate-one-row",
|
|
|
|
{ row: row.i, starred: newStarred },
|
|
|
|
null,
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
onDone: function(o) {
|
|
|
|
row.starred = newStarred;
|
|
|
|
renderRow(tr, r, row, even);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"json"
|
|
|
|
);
|
2010-01-26 20:54:14 +01:00
|
|
|
});
|
2020-06-16 11:40:13 +02:00
|
|
|
|
2011-08-04 22:37:14 +02:00
|
|
|
var tdFlag = tr.insertCell(tr.cells.length);
|
|
|
|
var flag = $('<a href="javascript:{}"> </a>')
|
|
|
|
.addClass(row.flagged ? "data-table-flag-on" : "data-table-flag-off")
|
|
|
|
.appendTo(tdFlag)
|
|
|
|
.click(function() {
|
|
|
|
var newFlagged = !row.flagged;
|
|
|
|
Refine.postCoreProcess(
|
|
|
|
"annotate-one-row",
|
|
|
|
{ row: row.i, flagged: newFlagged },
|
|
|
|
null,
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
onDone: function(o) {
|
|
|
|
row.flagged = newFlagged;
|
|
|
|
renderRow(tr, r, row, even);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"json"
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
var tdIndex = tr.insertCell(tr.cells.length);
|
|
|
|
if (theProject.rowModel.mode == "record-based") {
|
|
|
|
if ("j" in row) {
|
|
|
|
$(tr).addClass("record");
|
|
|
|
$('<div></div>').html((row.j + 1) + ".").appendTo(tdIndex);
|
|
|
|
} else {
|
|
|
|
$('<div></div>').html(" ").appendTo(tdIndex);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$('<div></div>').html((row.i + 1) + ".").appendTo(tdIndex);
|
|
|
|
}
|
|
|
|
|
|
|
|
$(tr).addClass(even ? "even" : "odd");
|
|
|
|
|
2010-01-26 20:54:14 +01:00
|
|
|
for (var i = 0; i < columns.length; i++) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var column = columns[i];
|
|
|
|
var td = tr.insertCell(tr.cells.length);
|
2020-04-10 07:39:24 +02:00
|
|
|
if (self._collapsedColumnNames.hasOwnProperty(column.name)) {
|
2011-08-04 22:37:14 +02:00
|
|
|
td.innerHTML = " ";
|
|
|
|
} else {
|
|
|
|
var cell = (column.cellIndex < cells.length) ? cells[column.cellIndex] : null;
|
|
|
|
new DataTableCellUI(self, cell, row.i, column.cellIndex, td);
|
|
|
|
}
|
2010-01-26 20:54:14 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
var even = true;
|
|
|
|
for (var r = 0; r < rows.length; r++) {
|
|
|
|
var row = rows[r];
|
|
|
|
var tr = table.insertRow(table.rows.length);
|
|
|
|
if (theProject.rowModel.mode == "row-based" || "j" in row) {
|
|
|
|
even = !even;
|
2010-01-26 20:54:14 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
renderRow(tr, r, row, even);
|
|
|
|
}
|
2010-01-26 20:54:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._showRows = function(start, onDone) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
Refine.fetchRows(start, this._pageSize, function() {
|
|
|
|
self.render();
|
|
|
|
|
|
|
|
if (onDone) {
|
|
|
|
onDone();
|
|
|
|
}
|
|
|
|
}, this._sorting);
|
2010-01-26 20:54:14 +01:00
|
|
|
};
|
|
|
|
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
DataTableView.prototype._onChangeGotoPage = function(elmt, evt) {
|
|
|
|
var gotoPageNumber = parseInt($('input#viewpanel-paging-current-input').val());
|
|
|
|
|
|
|
|
if(typeof gotoPageNumber != "number" || isNaN(gotoPageNumber) || gotoPageNumber == "") {
|
|
|
|
$('input#viewpanel-paging-current-input').val(this._currentPageNumber);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(gotoPageNumber > this._lastPageNumber) gotoPageNumber = this._lastPageNumber;
|
|
|
|
if(gotoPageNumber < 1) gotoPageNumber = 1;
|
|
|
|
|
|
|
|
this._currentPageNumber = gotoPageNumber;
|
|
|
|
this._showRows((gotoPageNumber - 1) * this._pageSize);
|
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._onKeyDownGotoPage = function(elmt, evt) {
|
|
|
|
var keyDownCode = event.which;
|
|
|
|
|
|
|
|
if([38, 40].indexOf(keyDownCode) == -1) return;
|
|
|
|
if(self._refocusPageInput == true) return;
|
|
|
|
|
|
|
|
evt.preventDefault();
|
|
|
|
this._refocusPageInput = true;
|
|
|
|
|
|
|
|
var newPageValue = $('input#viewpanel-paging-current-input')[0].value;
|
|
|
|
if(keyDownCode == 38) { // Up arrow
|
|
|
|
if(newPageValue <= 1) return;
|
|
|
|
this._onClickPreviousPage(elmt, evt);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(keyDownCode == 40) { // Down arrow
|
|
|
|
if(newPageValue >= this._lastPageNumber) return;
|
|
|
|
this._onClickNextPage(elmt, evt);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2010-01-26 20:54:14 +01:00
|
|
|
DataTableView.prototype._onClickPreviousPage = function(elmt, evt) {
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
this._currentPageNumber--;
|
2011-08-04 22:37:14 +02:00
|
|
|
this._showRows(theProject.rowModel.start - this._pageSize);
|
2010-01-26 20:54:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._onClickNextPage = function(elmt, evt) {
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
this._currentPageNumber++;
|
2011-08-04 22:37:14 +02:00
|
|
|
this._showRows(theProject.rowModel.start + this._pageSize);
|
2010-01-26 20:54:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._onClickFirstPage = function(elmt, evt) {
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
this._currentPageNumber = 1;
|
2011-08-04 22:37:14 +02:00
|
|
|
this._showRows(0);
|
2010-01-26 20:54:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._onClickLastPage = function(elmt, evt) {
|
(I #2638) Feature to Goto a page directly (#2639)
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* First implementation
First implementation, is functional.
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Typo: missing semi-colon
Typo: missing semi-colon
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Start for Goto Page link.
First implementation. Is functional.
* Background-color & validation
Background-color for each « button » & validation for the page choice of the user: number, > 1 & < last & singular for a one page project.
* Changed from prompt() to <input type="number">
Changed from prompt() to <input type="number">, and visual X out Y.
* Manage bounds in a sticky way
If the user choose below 1, 1 will be displayed, and if the user choose above the max, the max page will be displayed.
* width of <input> & « of X pages »
Add pages after « of maxValue », calculate the width of <input> based on max value.
* Update data-table-view.js
Little fix.
* Correct min and max for <input>
Correct min and max for <input>
* Managment of the arrow's key down.
Add managment to keep the arrow's key in the CurrentPage <input>.
* Fixes for Thad’s KeyDown's « Infinite Paging »
Fixes for Thad’s KeyDown's « Infinite Paging » & PageSize changes.
* Code rehookCurrentPageInput & spacing
Code rehookCurrentPageInput & spacing for PageSize section
* Update data-table-view.js
Fix & move code in Page Control.
* Wrap in a Try/Catch the currentPageInput.focus()
Wrap in a Try/Catch the currentPageInput.focus() and add a verification of focus change with if(!(currentPageInput.is(":focus"))) window.setTimeout(rehookCurrentPageInput, rehookDelay).
* Fixed currentPageInput != document.activeElement
Fixed currentPageInput != document.activeElement
that was before: !(currentPageInput.is(":focus"))
* Better handling of the « Infinite Paging »
Better handling of the « Infinite Paging » with window.setTimeout(rehookCurrentPageInput, rehookDelay)
* $.i18n('core-views/goto-page', …
$.i18n('core-views/goto-page', '<span id="currentPageInput" />', '<span id="lastPageSpan" />'))
* Bump rhino from 1.7.10 to 1.7.12
Bumps [rhino](https://github.com/mozilla/rhino) from 1.7.10 to 1.7.12.
- [Release notes](https://github.com/mozilla/rhino/releases)
- [Changelog](https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/mozilla/rhino/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Fix i18n plural
Fix i18n plural, FR still not fixed.
* Remove {{plural:$2|page|pages}} in french
Remove {{plural:$2|page|pages}} in French, not working.
* Update data-table-view.js
Forgot a semi-comma.
* Bump guava from 19.0 to 23.0
Bumps [guava](https://github.com/google/guava) from 19.0 to 23.0.
- [Release notes](https://github.com/google/guava/releases)
- [Commits](https://github.com/google/guava/compare/v19.0...v23.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump testng from 6.9.10 to 7.1.0
Bumps [testng](https://github.com/cbeust/testng) from 6.9.10 to 7.1.0.
- [Release notes](https://github.com/cbeust/testng/releases)
- [Changelog](https://github.com/cbeust/testng/blob/master/CHANGES.txt)
- [Commits](https://github.com/cbeust/testng/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump to Guava 23.6.1-jre
* Bump jasypt from 1.9.2 to 1.9.3
Bumps [jasypt](https://github.com/jasypt/jasypt) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/jasypt/jasypt/releases)
- [Commits](https://github.com/jasypt/jasypt/commits/jasypt-1.9.3)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added conflicts-with constraints (#2641)
Implemented conflicts-with scrutinizer as part of #2354
* Fix a bug introduced by I #1038, PR #2616 (#2684)
Fix a bug introduced by I #1038, where the first tab, in the Wikidata mode, would have a bad background. PR #2616
* Fixed typos made in PR #2641
* Remove setTimeout(refocusCurrentPageInput, refocusDelay);
Remove setTimeout(refocusCurrentPageInput, refocusDelay);, instead, onready after creating the page input field.
* Trim input url whitespace (#2534)
Fixes #2516
* Bump google-http-client-jackson2 from 1.20.0 to 1.35.0
Bumps [google-http-client-jackson2](https://github.com/googleapis/google-http-java-client) from 1.20.0 to 1.35.0.
- [Release notes](https://github.com/googleapis/google-http-java-client/releases)
- [Changelog](https://github.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-http-java-client/compare/1.20.0...v1.35.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Switch to new rhino-runtime component
* Typo: missing semi-colon
Typo: missing semi-colon
* Replace Apache Ant with Commons Compress (#2691)
NOTE: Changes the public API where some of the old types were
embedded which means that any extensions that extend these
interfaces will have to be updated.
Fixes #2690.
* Fix bug related to stealing focus of facets & added a delay
Fix bug related to stealing focus of facets & added a delay (1 s.) before changing pages.
* Revert "Remove {{plural:$2|page|pages}} in french"
This reverts commit 7274a21ee04e6480e50de39f1a7788164dd1981a.
* Update to latest Jython version 2.7.2
Closes #2642
* Bump git-commit-id-plugin from 2.2.4 to 4.0.0
Bumps [git-commit-id-plugin](https://github.com/git-commit-id/maven-git-commit-id-plugin) from 2.2.4 to 4.0.0.
- [Release notes](https://github.com/git-commit-id/maven-git-commit-id-plugin/releases)
- [Commits](https://github.com/git-commit-id/maven-git-commit-id-plugin/compare/v2.2.4...v4.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump maven-assembly-plugin from 3.1.0 to 3.3.0
Bumps [maven-assembly-plugin](https://github.com/apache/maven-assembly-plugin) from 3.1.0 to 3.3.0.
- [Release notes](https://github.com/apache/maven-assembly-plugin/releases)
- [Commits](https://github.com/apache/maven-assembly-plugin/compare/maven-assembly-plugin-3.1.0...maven-assembly-plugin-3.3.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump httpclient from 4.5.5 to 4.5.12
Bumps httpclient from 4.5.5 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump powermock.version from 2.0.2 to 2.0.7
Bumps `powermock.version` from 2.0.2 to 2.0.7.
Updates `powermock-module-testng` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Updates `powermock-api-mockito2` from 2.0.2 to 2.0.7
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.2...powermock-2.0.7)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump butterfly from 1.0.2 to 1.0.3
Bumps [butterfly](https://github.com/OpenRefine/simile-butterfly) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/OpenRefine/simile-butterfly/releases)
- [Commits](https://github.com/OpenRefine/simile-butterfly/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump slf4j-api from 1.7.18 to 1.7.30
Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.18 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.18...v_1.7.30)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump commons-validator from 1.5.1 to 1.6
Bumps commons-validator from 1.5.1 to 1.6.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: OpenRefine/gdata
Translate-URL: https://hosted.weblate.org/projects/openrefine/gdata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (179 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/ja/
* Disables FacetContainer while computing clusters
fixes #2675
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/pt_BR/
* Added translation using Weblate (Portuguese (Brazil))
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/pt_BR/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 6.7% (12 of 179 strings)
Translation: OpenRefine/wikidata
Translate-URL: https://hosted.weblate.org/projects/openrefine/wikidata/pt_BR/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (740 of 740 strings)
Translation: OpenRefine/Translations
Translate-URL: https://hosted.weblate.org/projects/openrefine/translations/ja/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (60 of 60 strings)
Translation: OpenRefine/database
Translate-URL: https://hosted.weblate.org/projects/openrefine/database/ja/
* Added translation using Weblate (Bengali (India))
* Load GDrive icon from local resource, not Github (#2689)
Fixes #2688.
* Convert illegal characters into legal ones. (#2431)
* Convert illegal characters into leagal ones.
* Test tab in key & value string
Also fix up test that depended on previous TAB
related error message and clean up logging
Co-authored-by: Tom Morris <tfmorris@gmail.com>
* Bump signpost-commonshttp4 from 1.2.1.2 to 2.0.0 (#2695)
Bumps [signpost-commonshttp4](https://github.com/mttkay/signpost) from 1.2.1.2 to 2.0.0.
- [Release notes](https://github.com/mttkay/signpost/releases)
- [Changelog](https://github.com/mttkay/signpost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mttkay/signpost/compare/1.2.1.2...oauth-signpost-2.0.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
* Add comment to help designers understand TreeData (#2715)
* Update jquery.i18n to 1.07 and fix non-English plural support (#2717)
* Update jquery.i18n to 1.07 and add missing rule parser
Fixes #2700
Adds missing CLDRPluralRuleParser.js so that plurals are supported.
Updates all files to jquery.i18n 1.07
Includes a bunch of specialty language support,
but only Finnish and Russian are loaded as examples.
* Add some missing translations, including plurals
Fix some cases of Javascript string concatenation and
plural conditionalization to demonstrate that plurals work
in both English and French now.
NOTE: Corresponding updates need to be made to all the other
language files since some keys were renamed or eliminated.
* Unused imports and other minor cleanups (#2723)
* Two minor fixes
- prevent invalid index error on empty strings (shouldn't normally happen)
- update deprecated Apache Commons Lang method
* Remove unused imports
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Remove feature Edit Facet Name
Remove feature Edit Facet Name that got merged by mistake.
* Spacing
Spacing
* Fix the delay, adjust to .2 s.
Fix the delay, adjust to .2 s. and stop using promises.
* Fix headerTable to tableHeader
Fix headerTable to tableHeader (PR #2719)
* data-header-table to data-table-header
data-header-table to data-table-header
* Remove .data-header-table-container
Remove .data-header-table-container
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tom Morris <tfmorris@gmail.com>
Co-authored-by: Ekta Mishra <ektamishra1999@gmail.com>
Co-authored-by: Nishtha <51858166+Nishtha3512@users.noreply.github.com>
Co-authored-by: Thad Guidry <thadguidry@gmail.com>
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org>
Co-authored-by: Isao Matsunami <isao.matsunami@gmail.com>
Co-authored-by: Biswaranjan Manna <manna.biswaranjan@gmail.com>
Co-authored-by: chuhao zeng <32441682+zengchu2@users.noreply.github.com>
2020-06-17 11:31:56 +02:00
|
|
|
this._currentPageNumber = this._lastPageNumber;
|
|
|
|
this._showRows((this._lastPageNumber - 1) * this._pageSize);
|
2010-01-26 20:54:14 +01:00
|
|
|
};
|
|
|
|
|
2010-05-21 02:48:36 +02:00
|
|
|
DataTableView.prototype._getSortingCriteriaCount = function() {
|
2011-08-04 22:37:14 +02:00
|
|
|
return this._sorting.criteria.length;
|
2010-05-21 02:48:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._sortedByColumn = function(columnName) {
|
2011-08-04 22:37:14 +02:00
|
|
|
for (var i = 0; i < this._sorting.criteria.length; i++) {
|
|
|
|
if (this._sorting.criteria[i].column == columnName) {
|
|
|
|
return true;
|
2010-05-21 02:48:36 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
return false;
|
2010-05-21 02:48:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._getSortingCriterionForColumn = function(columnName) {
|
2011-08-04 22:37:14 +02:00
|
|
|
for (var i = 0; i < this._sorting.criteria.length; i++) {
|
|
|
|
if (this._sorting.criteria[i].column == columnName) {
|
|
|
|
return this._sorting.criteria[i];
|
2010-05-21 02:48:36 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
return null;
|
2010-05-21 02:48:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._removeSortingCriterionOfColumn = function(columnName) {
|
2011-08-04 22:37:14 +02:00
|
|
|
for (var i = 0; i < this._sorting.criteria.length; i++) {
|
|
|
|
if (this._sorting.criteria[i].column == columnName) {
|
|
|
|
this._sorting.criteria.splice(i, 1);
|
|
|
|
break;
|
2010-05-21 02:48:36 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
this.update();
|
2010-05-21 02:48:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._addSortingCriterion = function(criterion, alone) {
|
2011-08-04 22:37:14 +02:00
|
|
|
if (alone) {
|
|
|
|
this._sorting.criteria = [];
|
|
|
|
} else {
|
|
|
|
for (var i = 0; i < this._sorting.criteria.length; i++) {
|
|
|
|
if (this._sorting.criteria[i].column == criterion.column) {
|
|
|
|
this._sorting.criteria[i] = criterion;
|
2017-06-01 04:37:07 +02:00
|
|
|
this.update();
|
2011-08-04 22:37:14 +02:00
|
|
|
return;
|
|
|
|
}
|
2010-05-21 02:48:36 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
this._sorting.criteria.push(criterion);
|
2017-06-01 04:37:07 +02:00
|
|
|
this.update();
|
2010-05-21 02:48:36 +02:00
|
|
|
};
|
|
|
|
|
2018-11-17 21:42:34 +01:00
|
|
|
/** below can be move to seperate file **/
|
2017-06-01 04:37:07 +02:00
|
|
|
var doTextTransformPrompt = function() {
|
|
|
|
var frame = $(
|
|
|
|
DOM.loadHTML("core", "scripts/views/data-table/text-transform-dialog.html")
|
|
|
|
.replace("$EXPRESSION_PREVIEW_WIDGET$", ExpressionPreviewDialog.generateWidgetHtml()));
|
|
|
|
|
|
|
|
var elmts = DOM.bind(frame);
|
2018-11-21 18:30:00 +01:00
|
|
|
elmts.or_views_errorOn.text($.i18n('core-views/on-error'));
|
|
|
|
elmts.or_views_keepOr.text($.i18n('core-views/keep-or'));
|
|
|
|
elmts.or_views_setBlank.text($.i18n('core-views/set-blank'));
|
|
|
|
elmts.or_views_storeErr.text($.i18n('core-views/store-err'));
|
|
|
|
elmts.or_views_reTrans.text($.i18n('core-views/re-trans'));
|
|
|
|
elmts.or_views_timesChang.text($.i18n('core-views/times-chang'));
|
|
|
|
elmts.okButton.html($.i18n('core-buttons/ok'));
|
|
|
|
elmts.cancelButton.text($.i18n('core-buttons/cancel'));
|
2017-06-01 04:37:07 +02:00
|
|
|
|
|
|
|
var level = DialogSystem.showDialog(frame);
|
|
|
|
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
|
|
|
|
|
|
|
elmts.cancelButton.click(dismiss);
|
|
|
|
elmts.okButton.click(function() {
|
|
|
|
new ExpressionColumnDialog(
|
|
|
|
previewWidget.getExpression(true),
|
|
|
|
$('input[name="text-transform-dialog-onerror-choice"]:checked')[0].value,
|
|
|
|
elmts.repeatCheckbox[0].checked,
|
|
|
|
elmts.repeatCountInput[0].value
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
var previewWidget = new ExpressionPreviewDialog.Widget(
|
|
|
|
elmts,
|
|
|
|
-1,
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
null
|
|
|
|
);
|
|
|
|
previewWidget._prepareUpdate = function(params) {
|
|
|
|
params.repeat = elmts.repeatCheckbox[0].checked;
|
|
|
|
params.repeatCount = elmts.repeatCountInput[0].value;
|
|
|
|
};
|
|
|
|
};
|
2018-11-17 21:42:34 +01:00
|
|
|
/** above can be move to seperate file **/
|
2017-06-01 04:37:07 +02:00
|
|
|
|
2010-01-26 20:54:14 +01:00
|
|
|
DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var self = this;
|
|
|
|
var menu = [
|
2017-06-01 04:37:07 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/transform'),
|
2017-06-01 04:37:07 +02:00
|
|
|
id: "core/facets",
|
|
|
|
width: "200px",
|
|
|
|
click: function() {
|
|
|
|
doTextTransformPrompt();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{},
|
2011-08-04 22:37:14 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/facet'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/facets",
|
|
|
|
width: "200px",
|
|
|
|
submenu: [
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/facet-star'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/facet-by-star",
|
|
|
|
click: function() {
|
|
|
|
ui.browsingEngine.addFacet(
|
|
|
|
"list",
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
"name" : $.i18n('core-views/starred-rows'),
|
2011-08-04 22:37:14 +02:00
|
|
|
"columnName" : "",
|
2019-02-22 19:38:45 +01:00
|
|
|
"expression" : "row.starred"
|
2011-08-04 22:37:14 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"scroll" : false
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/facet-flag'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/facet-by-flag",
|
|
|
|
click: function() {
|
|
|
|
ui.browsingEngine.addFacet(
|
|
|
|
"list",
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
"name" : $.i18n('core-views/flagged-rows'),
|
2011-08-04 22:37:14 +02:00
|
|
|
"columnName" : "",
|
2019-02-22 19:38:45 +01:00
|
|
|
"expression" : "row.flagged"
|
2011-08-04 22:37:14 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"scroll" : false
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2019-03-08 20:22:36 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: $.i18n('core-views/facet-blank'),
|
|
|
|
id: "core/facet-by-blank",
|
|
|
|
click: function() {
|
|
|
|
ui.browsingEngine.addFacet(
|
|
|
|
"list",
|
|
|
|
{
|
|
|
|
"name" : $.i18n('core-views/blank-rows'),
|
|
|
|
"columnName" : "",
|
2019-03-08 20:51:14 +01:00
|
|
|
"expression" : "(filter(row.columnNames,cn,isNonBlank(cells[cn].value)).length()==0).toString()"
|
2019-03-08 20:22:36 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"scroll" : false
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2019-03-08 20:25:38 +01:00
|
|
|
},
|
2020-01-20 17:02:48 +01:00
|
|
|
{
|
|
|
|
label: $.i18n('core-views/blank-values'),
|
|
|
|
id: "core/blank-values",
|
|
|
|
click: function() {
|
|
|
|
ui.browsingEngine.addFacet(
|
|
|
|
"list",
|
|
|
|
{
|
|
|
|
"name" : $.i18n('core-views/blank-values'),
|
|
|
|
"columnName" : "",
|
|
|
|
"expression" : "filter(row.columnNames,cn,isBlank(cells[cn].value))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scroll" : false
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: $.i18n('core-views/blank-records'),
|
|
|
|
id: "core/blank-records",
|
|
|
|
click: function() {
|
|
|
|
ui.browsingEngine.addFacet(
|
|
|
|
"list",
|
|
|
|
{
|
|
|
|
"name" : $.i18n('core-views/blank-records'),
|
|
|
|
"columnName" : "",
|
2020-01-20 18:28:19 +01:00
|
|
|
"expression" : "filter(row.columnNames,cn,isBlank(if(row.record.fromRowIndex==row.index,row.record.cells[cn].value.join(\"\"),true)))"
|
2020-01-20 17:02:48 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"scroll" : false
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
},
|
2019-03-08 20:25:38 +01:00
|
|
|
{
|
2019-03-11 20:33:51 +01:00
|
|
|
label: $.i18n('core-views/non-blank-values'),
|
|
|
|
id: "core/non-blank-values",
|
2019-03-08 20:25:38 +01:00
|
|
|
click: function() {
|
|
|
|
ui.browsingEngine.addFacet(
|
|
|
|
"list",
|
|
|
|
{
|
|
|
|
"name" : $.i18n('core-views/non-blank-values'),
|
|
|
|
"columnName" : "",
|
|
|
|
"expression" : "filter(row.columnNames,cn,isNonBlank(cells[cn].value))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scroll" : false
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2019-03-08 20:26:18 +01:00
|
|
|
},
|
|
|
|
{
|
2019-03-11 20:33:51 +01:00
|
|
|
label: $.i18n('core-views/non-blank-records'),
|
|
|
|
id: "core/non-blank-records",
|
2019-03-08 20:26:18 +01:00
|
|
|
click: function() {
|
|
|
|
ui.browsingEngine.addFacet(
|
|
|
|
"list",
|
|
|
|
{
|
|
|
|
"name" : $.i18n('core-views/non-blank-records'),
|
|
|
|
"columnName" : "",
|
|
|
|
"expression" : "filter(row.columnNames,cn,isNonBlank(if(row.record.fromRowIndex==row.index,row.record.cells[cn].value.join(\"\"),null)))"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"scroll" : false
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{},
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/edit-rows'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/edit-rows",
|
|
|
|
width: "200px",
|
|
|
|
submenu: [
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/star-rows'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/star-rows",
|
|
|
|
click: function() {
|
|
|
|
Refine.postCoreProcess("annotate-rows", { "starred" : "true" }, null, { rowMetadataChanged: true });
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/unstar-rows'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/unstar-rows",
|
|
|
|
click: function() {
|
|
|
|
Refine.postCoreProcess("annotate-rows", { "starred" : "false" }, null, { rowMetadataChanged: true });
|
|
|
|
}
|
2010-04-17 00:39:30 +02:00
|
|
|
},
|
2010-10-18 03:53:23 +02:00
|
|
|
{},
|
2011-08-04 22:37:14 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/flag-rows'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/flag-rows",
|
|
|
|
click: function() {
|
|
|
|
Refine.postCoreProcess("annotate-rows", { "flagged" : "true" }, null, { rowMetadataChanged: true });
|
|
|
|
}
|
2010-01-26 20:54:14 +01:00
|
|
|
},
|
2011-08-04 22:37:14 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/unflag-rows'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/unflag-rows",
|
|
|
|
click: function() {
|
|
|
|
Refine.postCoreProcess("annotate-rows", { "flagged" : "false" }, null, { rowMetadataChanged: true });
|
|
|
|
}
|
2010-08-25 08:17:08 +02:00
|
|
|
},
|
2010-10-18 03:53:23 +02:00
|
|
|
{},
|
2011-08-04 22:37:14 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/remove-matching'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/remove-rows",
|
|
|
|
click: function() {
|
|
|
|
Refine.postCoreProcess("remove-rows", {}, null, { rowMetadataChanged: true });
|
|
|
|
}
|
2010-01-26 20:54:14 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/edit-col'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/edit-columns",
|
|
|
|
width: "200px",
|
|
|
|
submenu: [
|
2010-05-21 06:11:08 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/reorder-remove')+"...",
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/reorder-columns",
|
|
|
|
click: function() {
|
|
|
|
new ColumnReorderingDialog();
|
|
|
|
}
|
2020-01-20 15:21:37 +01:00
|
|
|
},
|
|
|
|
{},
|
|
|
|
{
|
|
|
|
label: $.i18n('core-views/fill-down'),
|
|
|
|
id: "core/fill-down",
|
2020-01-20 16:20:14 +01:00
|
|
|
click: doAllFillDown
|
2020-01-20 15:21:37 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: $.i18n('core-views/blank-down'),
|
|
|
|
id: "core/blank-down",
|
2020-01-20 16:20:14 +01:00
|
|
|
click: doAllBlankDown
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{},
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/view'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/view",
|
|
|
|
width: "200px",
|
|
|
|
submenu: [
|
2010-05-22 03:39:27 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/collapse-all'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/collapse-all-columns",
|
|
|
|
click: function() {
|
|
|
|
for (var i = 0; i < theProject.columnModel.columns.length; i++) {
|
|
|
|
self._collapsedColumnNames[theProject.columnModel.columns[i].name] = true;
|
2010-05-22 03:39:27 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
self.render();
|
|
|
|
}
|
2010-05-22 03:39:27 +02:00
|
|
|
},
|
2011-08-04 22:37:14 +02:00
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/expand-all'),
|
2011-08-04 22:37:14 +02:00
|
|
|
id: "core/expand-all-columns",
|
|
|
|
click: function() {
|
|
|
|
self._collapsedColumnNames = [];
|
|
|
|
self.render();
|
|
|
|
}
|
2018-04-19 13:00:38 +02:00
|
|
|
},
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
label: $.i18n('core-views/display-null'),
|
2018-04-19 13:00:38 +02:00
|
|
|
id: "core/display-null",
|
|
|
|
click: function() {
|
|
|
|
$(".data-table-null").toggle();
|
|
|
|
self._shownulls = !(self._shownulls);
|
2018-04-19 15:45:14 +02:00
|
|
|
}
|
2010-05-21 06:11:08 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
]
|
2010-05-21 06:11:08 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
for (var i = 0; i < DataTableView._extenders.length; i++) {
|
|
|
|
DataTableView._extenders[i].call(null, this, menu);
|
|
|
|
}
|
|
|
|
|
|
|
|
MenuSystem.createAndShowStandardMenu(menu, elmt, { width: "120px", horizontal: false });
|
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.prototype._createSortingMenu = function(elmt) {
|
|
|
|
var self = this;
|
|
|
|
var items = [
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
"label" : $.i18n('core-views/remove-sort'),
|
2011-08-04 22:37:14 +02:00
|
|
|
"click" : function() {
|
|
|
|
self._sorting.criteria = [];
|
|
|
|
self.update();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2018-11-21 18:30:00 +01:00
|
|
|
"label" : $.i18n('core-views/reorder-perma'),
|
2011-08-04 22:37:14 +02:00
|
|
|
"click" : function() {
|
|
|
|
Refine.postCoreProcess(
|
|
|
|
"reorder-rows",
|
|
|
|
null,
|
2018-04-13 10:39:29 +02:00
|
|
|
{
|
|
|
|
"sorting" : JSON.stringify(self._sorting),
|
|
|
|
"mode" : ui.browsingEngine.getMode()
|
|
|
|
},
|
2011-08-04 22:37:14 +02:00
|
|
|
{ rowMetadataChanged: true },
|
|
|
|
{
|
|
|
|
onDone: function() {
|
|
|
|
self._sorting.criteria = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{}
|
|
|
|
];
|
|
|
|
|
|
|
|
var getColumnHeaderUI = function(columnName) {
|
|
|
|
for (var i = 0; i < self._columnHeaderUIs.length; i++) {
|
|
|
|
var columnHeaderUI = self._columnHeaderUIs[i];
|
|
|
|
if (columnHeaderUI.getColumn().name == columnName) {
|
|
|
|
return columnHeaderUI;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return null;
|
2011-10-08 01:44:11 +02:00
|
|
|
};
|
2011-08-04 22:37:14 +02:00
|
|
|
var createSubmenu = function(criterion) {
|
|
|
|
var columnHeaderUI = getColumnHeaderUI(criterion.column);
|
2011-10-08 01:44:11 +02:00
|
|
|
if (columnHeaderUI !== null) {
|
2011-08-04 22:37:14 +02:00
|
|
|
items.push({
|
2018-11-21 18:30:00 +01:00
|
|
|
"label" : $.i18n('core-views/by')+" " + criterion.column,
|
2011-08-04 22:37:14 +02:00
|
|
|
"submenu" : columnHeaderUI.createSortingMenu()
|
2011-10-08 01:44:11 +02:00
|
|
|
});
|
2010-05-21 06:11:08 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
};
|
|
|
|
for (var i = 0; i < this._sorting.criteria.length; i++) {
|
|
|
|
createSubmenu(this._sorting.criteria[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
MenuSystem.createAndShowStandardMenu(items, elmt, { horizontal: false });
|
2010-05-21 06:11:08 +02:00
|
|
|
};
|
|
|
|
|
2020-01-20 16:20:14 +01:00
|
|
|
var doAllFillDown = function() {
|
2020-01-27 10:14:57 +01:00
|
|
|
doFillDown(theProject.columnModel.columns.length - 1);
|
2020-01-20 18:56:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
var doFillDown = function(colIndex) {
|
2020-01-27 10:14:57 +01:00
|
|
|
if (colIndex >= 0) {
|
2020-01-20 16:20:14 +01:00
|
|
|
Refine.postCoreProcess(
|
|
|
|
"fill-down",
|
|
|
|
{
|
2020-01-20 18:56:03 +01:00
|
|
|
columnName: theProject.columnModel.columns[colIndex].name
|
2020-01-20 16:20:14 +01:00
|
|
|
},
|
|
|
|
null,
|
2020-01-20 18:56:03 +01:00
|
|
|
{modelsChanged: true},
|
|
|
|
{
|
|
|
|
onDone: function() {
|
2020-01-27 10:14:57 +01:00
|
|
|
doFillDown(--colIndex);
|
2020-01-20 18:56:03 +01:00
|
|
|
}
|
|
|
|
}
|
2020-01-20 16:20:14 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
var doAllBlankDown = function() {
|
2020-01-20 18:56:03 +01:00
|
|
|
doBlankDown(0);
|
|
|
|
};
|
|
|
|
|
|
|
|
var doBlankDown = function(colIndex) {
|
|
|
|
if (colIndex < theProject.columnModel.columns.length) {
|
2020-01-20 16:20:14 +01:00
|
|
|
Refine.postCoreProcess(
|
|
|
|
"blank-down",
|
|
|
|
{
|
2020-01-20 18:56:03 +01:00
|
|
|
columnName: theProject.columnModel.columns[colIndex].name
|
2020-01-20 16:20:14 +01:00
|
|
|
},
|
|
|
|
null,
|
2020-01-20 18:56:03 +01:00
|
|
|
{ modelsChanged: true },
|
|
|
|
{
|
|
|
|
onDone: function() {
|
|
|
|
doBlankDown(++colIndex);
|
|
|
|
}
|
|
|
|
}
|
2020-01-20 16:20:14 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2010-05-21 06:11:08 +02:00
|
|
|
|
2010-04-11 23:54:56 +02:00
|
|
|
DataTableView.prototype._updateCell = function(rowIndex, cellIndex, cell) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var rows = theProject.rowModel.rows;
|
|
|
|
for (var r = 0; r < rows.length; r++) {
|
|
|
|
var row = rows[r];
|
|
|
|
if (row.i === rowIndex) {
|
|
|
|
while (cellIndex >= row.cells.length) {
|
|
|
|
row.cells.push(null);
|
|
|
|
}
|
|
|
|
row.cells[cellIndex] = cell;
|
|
|
|
break;
|
2010-04-11 23:54:56 +02:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
}
|
2010-04-11 23:54:56 +02:00
|
|
|
};
|
|
|
|
|
2010-03-03 19:08:35 +01:00
|
|
|
DataTableView.sampleVisibleRows = function(column) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var rowIndices = [];
|
|
|
|
var values = [];
|
|
|
|
|
|
|
|
var rows = theProject.rowModel.rows;
|
|
|
|
for (var r = 0; r < rows.length; r++) {
|
|
|
|
var row = rows[r];
|
|
|
|
|
|
|
|
rowIndices.push(row.i);
|
|
|
|
|
|
|
|
var v = null;
|
|
|
|
if (column && column.cellIndex < row.cells.length) {
|
|
|
|
var cell = row.cells[column.cellIndex];
|
|
|
|
if (cell !== null) {
|
|
|
|
v = cell.v;
|
|
|
|
}
|
2010-02-03 10:27:53 +01:00
|
|
|
}
|
2011-08-04 22:37:14 +02:00
|
|
|
values.push(v);
|
|
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
|
|
rowIndices: rowIndices,
|
|
|
|
values: values
|
|
|
|
};
|
2010-03-03 19:08:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
DataTableView.promptExpressionOnVisibleRows = function(column, title, expression, onDone) {
|
2011-08-04 22:37:14 +02:00
|
|
|
var o = DataTableView.sampleVisibleRows(column);
|
|
|
|
|
|
|
|
var self = this;
|
|
|
|
new ExpressionPreviewDialog(
|
|
|
|
title,
|
|
|
|
column.cellIndex,
|
|
|
|
o.rowIndices,
|
|
|
|
o.values,
|
|
|
|
expression,
|
|
|
|
onDone
|
|
|
|
);
|
2010-01-30 02:05:30 +01:00
|
|
|
};
|