@refinitiv-ui/efx-grid 6.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-format-dialog/index.d.ts +1 -0
- package/lib/column-format-dialog/index.js +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +64 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2713 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +995 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +1 -0
- package/lib/column-selection-dialog/index.js +1 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +41 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +1410 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +189 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +6 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +6 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +22 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +6 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +6 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +6 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +6 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +28075 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +81 -0
- package/lib/core/es6/data/DataCache.js +1317 -0
- package/lib/core/es6/data/DataTable.d.ts +125 -0
- package/lib/core/es6/data/DataTable.js +1655 -0
- package/lib/core/es6/data/DataView.d.ts +280 -0
- package/lib/core/es6/data/DataView.js +3654 -0
- package/lib/core/es6/data/Segment.d.ts +38 -0
- package/lib/core/es6/data/Segment.js +193 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +58 -0
- package/lib/core/es6/data/SegmentCollection.js +431 -0
- package/lib/core/es6/grid/Core.d.ts +387 -0
- package/lib/core/es6/grid/Core.js +4939 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +204 -0
- package/lib/core/es6/grid/ILayoutGrid.js +658 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +23 -0
- package/lib/core/es6/grid/LayoutGrid.js +2602 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +907 -0
- package/lib/core/es6/grid/components/Cell.d.ts +50 -0
- package/lib/core/es6/grid/components/Cell.js +740 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +123 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +38 -0
- package/lib/core/es6/grid/components/CellSpans.js +341 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +612 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +714 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +24 -0
- package/lib/core/es6/grid/components/HScrollbar.js +222 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +61 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1374 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +328 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +163 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +615 -0
- package/lib/core/es6/grid/plugins/Plugin.d.ts +28 -0
- package/lib/core/es6/grid/plugins/Plugin.js +272 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1707 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/core/es6/grid/util/ElementFrameWork.js +227 -0
- package/lib/core/es6/grid/util/HttpRequest.d.ts +53 -0
- package/lib/core/es6/grid/util/HttpRequest.js +371 -0
- package/lib/core/es6/grid/util/PercentBar.d.ts +43 -0
- package/lib/core/es6/grid/util/PercentBar.js +390 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.js +316 -0
- package/lib/core/es6/grid/util/RangeBar.d.ts +25 -0
- package/lib/core/es6/grid/util/RangeBar.js +255 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +674 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +50 -0
- package/lib/core/es6/grid/util/SelectionList.js +422 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +84 -0
- package/lib/core/es6/grid/util/TrackLayout.js +850 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +18 -0
- package/lib/core/es6/grid/util/util.js +450 -0
- package/lib/core/es6/index.d.ts +84 -0
- package/lib/core/es6/index.js +132 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +1 -0
- package/lib/filter-dialog/index.js +1 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +27 -0
- package/lib/filter-dialog/lib/checkbox-list.js +336 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +53 -0
- package/lib/filter-dialog/lib/filter-dialog.js +860 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +37 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +37 -0
- package/lib/filter-dialog/themes/base.less +102 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +9 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +40 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +102 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralIconFormatter.js +45 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +40 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +66 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFButtonFormatter.js +40 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +68 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFIconFormatter.js +45 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +66 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +22 -0
- package/lib/formatters/es6/FormatterBuilder.js +334 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +65 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +30 -0
- package/lib/formatters/es6/index.d.ts +43 -0
- package/lib/formatters/es6/index.js +67 -0
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +2 -0
- package/lib/grid/lib/efx-grid.d.ts +32 -0
- package/lib/grid/lib/efx-grid.js +469 -0
- package/lib/grid/themes/base.less +134 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +92 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +102 -0
- package/lib/index.js +102 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +83 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +592 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +44672 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +141 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1074 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +37 -0
- package/lib/rt-grid/es6/DataConnector.js +266 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +20 -0
- package/lib/rt-grid/es6/FieldDefinition.js +418 -0
- package/lib/rt-grid/es6/Grid.d.ts +261 -0
- package/lib/rt-grid/es6/Grid.js +2893 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +38 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +230 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +120 -0
- package/lib/rt-grid/es6/RowDefinition.js +873 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +21 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +252 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +67 -0
- package/lib/statistics-row/es6/StatisticsRow.js +786 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +45 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +431 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +67 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1777 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +69 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1476 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +1000 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +89 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +615 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +60 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +913 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1013 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +70 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +928 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +76 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +1227 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +70 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +947 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +478 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +471 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +133 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +39 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +245 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +29 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +292 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +57 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +928 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +44 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +394 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +129 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +1977 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +57 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +427 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +801 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +49 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +226 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +12 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +21 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +32 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +761 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +38 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +481 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +54 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +205 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +353 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +53 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +794 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +118 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +1884 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +109 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1541 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +74 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1202 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +60 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +611 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +77 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +574 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +29 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +136 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1128 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +14 -0
- package/lib/tr-grid-util/es6/Deferred.js +98 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +85 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +346 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +10 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +101 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +83 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +163 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +33 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +458 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +27 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +169 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +432 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +48 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +521 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +41 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +181 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +72 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +747 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +61 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +237 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +32 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +506 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +83 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +471 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +162 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +84 -0
- package/lib/tr-grid-util/es6/Popup.js +818 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +259 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +239 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +23 -0
- package/lib/tr-grid-util/es6/RowPainter.js +188 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +74 -0
- package/lib/tr-grid-util/es6/SubTable.js +558 -0
- package/lib/tr-grid-util/es6/Table.d.ts +125 -0
- package/lib/tr-grid-util/es6/Table.js +790 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +18 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +273 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +65 -0
- package/lib/tr-grid-util/es6/Util.js +528 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +882 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +63 -0
- package/lib/tr-grid-util/es6/index.js +99 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +141 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +114 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +827 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +63 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +72 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +564 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +43 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +131 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +45 -0
- package/lib/types/es6/CellSelection.d.ts +67 -0
- package/lib/types/es6/Checkbox.d.ts +69 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +90 -0
- package/lib/types/es6/ColumnGrouping.d.ts +60 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +70 -0
- package/lib/types/es6/ColumnStack.d.ts +76 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +38 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +287 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +22 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +42 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +70 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +81 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +125 -0
- package/lib/types/es6/Core/data/DataView.d.ts +280 -0
- package/lib/types/es6/Core/data/Segment.d.ts +38 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +58 -0
- package/lib/types/es6/Core/grid/Core.d.ts +387 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +204 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +23 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +50 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +38 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +24 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +61 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +28 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +53 -0
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +43 -0
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +25 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +50 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +84 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +18 -0
- package/lib/types/es6/Core/index.d.ts +84 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +23 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +52 -0
- package/lib/types/es6/Extensions.d.ts +61 -0
- package/lib/types/es6/FilterInput.d.ts +57 -0
- package/lib/types/es6/FormatterBuilder.d.ts +22 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +44 -0
- package/lib/types/es6/InCellEditing.d.ts +129 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +39 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +57 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +29 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +143 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +37 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +20 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +263 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +38 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +120 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +21 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +60 -0
- package/lib/types/es6/RowDragging.d.ts +53 -0
- package/lib/types/es6/RowFiltering.d.ts +118 -0
- package/lib/types/es6/RowGrouping.d.ts +109 -0
- package/lib/types/es6/RowSegmenting.d.ts +83 -0
- package/lib/types/es6/RowSelection.d.ts +74 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +67 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +77 -0
- package/lib/types/es6/TitleWrap.d.ts +29 -0
- package/lib/types/es6/Zoom.d.ts +51 -0
- package/lib/types/es6/index.d.ts +76 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/versions.json +36 -0
- package/lib/window-exporter.js +13 -0
- package/lib/zoom/es6/Zoom.d.ts +51 -0
- package/lib/zoom/es6/Zoom.js +419 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +42 -0
@@ -0,0 +1,928 @@
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
+
|
3
|
+
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
4
|
+
import { Dom } from "../../tr-grid-util/es6/Dom.js";
|
5
|
+
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
6
|
+
/** @event ColumnSelectionPlugin#selectionChanged
|
7
|
+
* @description Fired when selection is changed by mouse down or key press. A change by JavaScript APIs will not trigger this event.
|
8
|
+
*/
|
9
|
+
|
10
|
+
/** @typedef {(Object|boolean)} ColumnSelectionPlugin~Options
|
11
|
+
* @description Extension options available in main grid configuration under `columnSelection` property
|
12
|
+
* @property {boolean=} singleSelection=false If enabled, user can have one selection at any moment
|
13
|
+
* @property {boolean=} clickToggle=false If enabled, click at the already selected column will deselect it
|
14
|
+
* @property {Function=} selectionChanged=null selectionChanged event handler
|
15
|
+
*/
|
16
|
+
|
17
|
+
/** @typedef {Object} ColumnSelectionPlugin~ColumnOptions
|
18
|
+
* @description Extension options available in column configuration object
|
19
|
+
* @property {boolean=} unselectable=false If enabled, the specified column is not selectable
|
20
|
+
*/
|
21
|
+
|
22
|
+
/** @constructor
|
23
|
+
* @extends {GridPlugin}
|
24
|
+
* @param {ColumnSelectionPlugin~Options=} options
|
25
|
+
*/
|
26
|
+
|
27
|
+
var ColumnSelectionPlugin = function ColumnSelectionPlugin(options) {
|
28
|
+
var t = this;
|
29
|
+
t._onClick = t._onClick.bind(t);
|
30
|
+
t._onMouseDown = t._onMouseDown.bind(t);
|
31
|
+
t._onKeyDown = t._onKeyDown.bind(t);
|
32
|
+
t._onColumnRemoved = t._onColumnRemoved.bind(t);
|
33
|
+
t._onReselection = t._onReselection.bind(t);
|
34
|
+
t._hosts = [];
|
35
|
+
|
36
|
+
if (options) {
|
37
|
+
t.config({
|
38
|
+
"columnSelection": options
|
39
|
+
});
|
40
|
+
}
|
41
|
+
};
|
42
|
+
|
43
|
+
Ext.inherits(ColumnSelectionPlugin, GridPlugin);
|
44
|
+
/** Core grid object
|
45
|
+
* @type {Object}
|
46
|
+
* @private
|
47
|
+
*/
|
48
|
+
|
49
|
+
ColumnSelectionPlugin.prototype._activeGrid = null;
|
50
|
+
/** @type {number}
|
51
|
+
* @private
|
52
|
+
*/
|
53
|
+
|
54
|
+
ColumnSelectionPlugin.prototype._anchorCol = -1;
|
55
|
+
/** @type {boolean}
|
56
|
+
* @private
|
57
|
+
*/
|
58
|
+
|
59
|
+
ColumnSelectionPlugin.prototype._disabled = false;
|
60
|
+
/** @type {boolean}
|
61
|
+
* @private
|
62
|
+
*/
|
63
|
+
|
64
|
+
ColumnSelectionPlugin.prototype._singleSelMode = false;
|
65
|
+
/** @type {boolean}
|
66
|
+
* @private
|
67
|
+
*/
|
68
|
+
|
69
|
+
ColumnSelectionPlugin.prototype._clickToggleMode = false;
|
70
|
+
/** @type {(boolean|null)}
|
71
|
+
* @private
|
72
|
+
*/
|
73
|
+
|
74
|
+
ColumnSelectionPlugin.prototype._hasSelection = false;
|
75
|
+
/** @type {number}
|
76
|
+
* @private
|
77
|
+
*/
|
78
|
+
|
79
|
+
ColumnSelectionPlugin.prototype._timerId = 0;
|
80
|
+
/** @type {number}
|
81
|
+
* @private
|
82
|
+
*/
|
83
|
+
|
84
|
+
ColumnSelectionPlugin.prototype._pendingSelection = -1;
|
85
|
+
/** @public
|
86
|
+
* @return {string}
|
87
|
+
*/
|
88
|
+
|
89
|
+
ColumnSelectionPlugin.prototype.getName = function () {
|
90
|
+
return "ColumnSelectionPlugin"; // Read Only
|
91
|
+
};
|
92
|
+
/**
|
93
|
+
* @override
|
94
|
+
* @return {boolean}
|
95
|
+
*/
|
96
|
+
|
97
|
+
|
98
|
+
ColumnSelectionPlugin.prototype.hasMultiTableSupport = function () {
|
99
|
+
return true;
|
100
|
+
};
|
101
|
+
/** @public
|
102
|
+
* @param {Object} host Core grid instance
|
103
|
+
* @param {Object=} options Grid configuration object
|
104
|
+
*/
|
105
|
+
|
106
|
+
|
107
|
+
ColumnSelectionPlugin.prototype.initialize = function (host, options) {
|
108
|
+
if (this._hosts.indexOf(host) >= 0) {
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
|
112
|
+
this._hosts.push(host);
|
113
|
+
|
114
|
+
host.listen("click", this._onClick);
|
115
|
+
host.listen("mousedown", this._onMouseDown);
|
116
|
+
host.listen("keydown", this._onKeyDown);
|
117
|
+
host.listen("columnRemoved", this._onColumnRemoved);
|
118
|
+
this.config(options);
|
119
|
+
};
|
120
|
+
/** @public
|
121
|
+
* @param {Object=} host core grid object
|
122
|
+
*/
|
123
|
+
|
124
|
+
|
125
|
+
ColumnSelectionPlugin.prototype.unload = function (host) {
|
126
|
+
var at = this._hosts.indexOf(host);
|
127
|
+
|
128
|
+
if (at < 0) {
|
129
|
+
return;
|
130
|
+
}
|
131
|
+
|
132
|
+
host.unlisten("click", this._onClick);
|
133
|
+
host.unlisten("mousedown", this._onMouseDown);
|
134
|
+
host.unlisten("keydown", this._onKeyDown);
|
135
|
+
host.unlisten("columnRemoved", this._onColumnRemoved);
|
136
|
+
|
137
|
+
this._hosts.splice(at, 1);
|
138
|
+
|
139
|
+
if (!this._hosts.length) {
|
140
|
+
if (this._timerId) {
|
141
|
+
clearTimeout(this._timerId);
|
142
|
+
this._timerId = 0;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
this._dispose();
|
147
|
+
};
|
148
|
+
/** @public
|
149
|
+
* @param {Object=} options Grid configuration object
|
150
|
+
*/
|
151
|
+
|
152
|
+
|
153
|
+
ColumnSelectionPlugin.prototype.config = function (options) {
|
154
|
+
if (!options) {
|
155
|
+
return;
|
156
|
+
}
|
157
|
+
|
158
|
+
var pluginOptions = options["columnSelection"];
|
159
|
+
|
160
|
+
if (pluginOptions) {
|
161
|
+
if (_typeof(pluginOptions) === "object") {
|
162
|
+
var val = pluginOptions["singleSelection"];
|
163
|
+
|
164
|
+
if (val) {
|
165
|
+
this._singleSelMode = true;
|
166
|
+
}
|
167
|
+
|
168
|
+
val = pluginOptions["clickToggle"];
|
169
|
+
|
170
|
+
if (val) {
|
171
|
+
this._clickToggleMode = true;
|
172
|
+
}
|
173
|
+
|
174
|
+
this.addListener(pluginOptions, "selectionChanged");
|
175
|
+
}
|
176
|
+
} else if (pluginOptions != null) {
|
177
|
+
this.disable();
|
178
|
+
}
|
179
|
+
|
180
|
+
var columns = options["columns"];
|
181
|
+
|
182
|
+
if (!Array.isArray(columns)) {
|
183
|
+
return;
|
184
|
+
}
|
185
|
+
|
186
|
+
var len = columns.length;
|
187
|
+
|
188
|
+
for (var c = 0; c < len; ++c) {
|
189
|
+
var column = columns[c];
|
190
|
+
|
191
|
+
var colData = this._newColumnData(c);
|
192
|
+
|
193
|
+
if (column["unselectable"]) {
|
194
|
+
colData["unselectable"] = true;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
};
|
198
|
+
/** @public
|
199
|
+
* @param {Object=} gridOptions
|
200
|
+
* @return {!Object}
|
201
|
+
*/
|
202
|
+
|
203
|
+
|
204
|
+
ColumnSelectionPlugin.prototype.getConfigObject = function (gridOptions) {
|
205
|
+
var obj = gridOptions || {};
|
206
|
+
var columns = obj.columns;
|
207
|
+
|
208
|
+
if (!columns) {
|
209
|
+
columns = obj.columns = [];
|
210
|
+
}
|
211
|
+
|
212
|
+
var len = this.getColumnCount();
|
213
|
+
|
214
|
+
for (var i = 0; i < len; ++i) {
|
215
|
+
var column = columns[i];
|
216
|
+
|
217
|
+
if (!column) {
|
218
|
+
column = columns[i] = {};
|
219
|
+
}
|
220
|
+
|
221
|
+
var unselectable = this._getColumnOption(i, 'unselectable', this._hosts[0]);
|
222
|
+
|
223
|
+
if (unselectable) {
|
224
|
+
column.unselectable = unselectable;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
var extOptions = obj.columnSelection;
|
229
|
+
|
230
|
+
if (!extOptions) {
|
231
|
+
extOptions = obj.columnSelection = {};
|
232
|
+
}
|
233
|
+
|
234
|
+
extOptions.singleSelection = this._singleSelMode;
|
235
|
+
extOptions.clickToggle = this._clickToggleMode;
|
236
|
+
return obj;
|
237
|
+
};
|
238
|
+
/** @public
|
239
|
+
* @param {boolean=} opt_bool
|
240
|
+
*/
|
241
|
+
|
242
|
+
|
243
|
+
ColumnSelectionPlugin.prototype.disable = function (opt_bool) {
|
244
|
+
this._disabled = opt_bool !== false;
|
245
|
+
};
|
246
|
+
/** @public
|
247
|
+
* @return {boolean}
|
248
|
+
*/
|
249
|
+
|
250
|
+
|
251
|
+
ColumnSelectionPlugin.prototype.isEnabled = function () {
|
252
|
+
return !this._disabled;
|
253
|
+
};
|
254
|
+
/** @public
|
255
|
+
* @return {boolean}
|
256
|
+
*/
|
257
|
+
|
258
|
+
|
259
|
+
ColumnSelectionPlugin.prototype.hasSelectedColumn = function () {
|
260
|
+
if (this._hasSelection != null) {
|
261
|
+
return this._hasSelection;
|
262
|
+
}
|
263
|
+
|
264
|
+
return this.getFirstSelectedColumn() >= 0;
|
265
|
+
};
|
266
|
+
/** @public
|
267
|
+
* @return {!Array.<number>}
|
268
|
+
*/
|
269
|
+
|
270
|
+
|
271
|
+
ColumnSelectionPlugin.prototype.getSelectedColumns = function () {
|
272
|
+
var cols = [];
|
273
|
+
|
274
|
+
if (this._hasSelection !== false) {
|
275
|
+
var colCount = this.getColumnCount();
|
276
|
+
|
277
|
+
for (var i = 0; i < colCount; ++i) {
|
278
|
+
if (this.isSelectedColumn(i)) {
|
279
|
+
this._hasSelection = true;
|
280
|
+
cols.push(i);
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
return cols;
|
286
|
+
};
|
287
|
+
/** @public
|
288
|
+
* @return {number}
|
289
|
+
*/
|
290
|
+
|
291
|
+
|
292
|
+
ColumnSelectionPlugin.prototype.getFirstSelectedColumn = function () {
|
293
|
+
if (this._hasSelection !== false) {
|
294
|
+
var colCount = this.getColumnCount();
|
295
|
+
|
296
|
+
for (var i = 0; i < colCount; ++i) {
|
297
|
+
if (this.isSelectedColumn(i)) {
|
298
|
+
this._hasSelection = true;
|
299
|
+
return i;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
304
|
+
return -1;
|
305
|
+
};
|
306
|
+
/** @public
|
307
|
+
* @return {number}
|
308
|
+
*/
|
309
|
+
|
310
|
+
|
311
|
+
ColumnSelectionPlugin.prototype.getLastSelectedColumn = function () {
|
312
|
+
if (this._hasSelection !== false) {
|
313
|
+
var colCount = this.getColumnCount();
|
314
|
+
|
315
|
+
for (var i = colCount; --i >= 0;) {
|
316
|
+
if (this.isSelectedColumn(i)) {
|
317
|
+
this._hasSelection = true;
|
318
|
+
return i;
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
return -1;
|
324
|
+
}; // /** @public
|
325
|
+
// * @return {!Array.<string>}
|
326
|
+
// */
|
327
|
+
// ColumnSelectionPlugin.prototype.getSelectedFields = function() {
|
328
|
+
// var cols = this.getSelectedColumns();
|
329
|
+
// var len = cols.length;
|
330
|
+
// var fields = new Array(len);
|
331
|
+
// for(var i = 0; i < len; ++i) {
|
332
|
+
// fields[i] = this._getField(cols[i]);
|
333
|
+
// }
|
334
|
+
// return fields;
|
335
|
+
// };
|
336
|
+
|
337
|
+
/** Select or deselect a column on the active grid
|
338
|
+
* @public
|
339
|
+
* @param {number} colIndex
|
340
|
+
* @param {boolean=} opt_select=false Null or undefined value will be treated as false value
|
341
|
+
* @param {Object=} opt_grid core grid object
|
342
|
+
* @return {boolean} Return true for successful selection, otherwise false
|
343
|
+
*/
|
344
|
+
|
345
|
+
|
346
|
+
ColumnSelectionPlugin.prototype.setSelectedColumn = function (colIndex, opt_select, opt_grid) {
|
347
|
+
if (!(colIndex >= 0)) {
|
348
|
+
return false;
|
349
|
+
}
|
350
|
+
|
351
|
+
if (opt_grid) {
|
352
|
+
if (opt_grid !== this._activeGrid) {
|
353
|
+
this._activeGrid = opt_grid; // TODO: Check if the grid is one of the hosts
|
354
|
+
}
|
355
|
+
}
|
356
|
+
|
357
|
+
if (!this._activeGrid) {
|
358
|
+
this._activeGrid = this._hosts[0]; // Select the first grid
|
359
|
+
|
360
|
+
if (!this._activeGrid) {
|
361
|
+
return false;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
|
365
|
+
if (colIndex >= this.getColumnCount()) {
|
366
|
+
return false;
|
367
|
+
}
|
368
|
+
|
369
|
+
var selection = opt_select ? true : false;
|
370
|
+
|
371
|
+
if (selection && this._getColumnOption(colIndex, "unselectable")) {
|
372
|
+
return false;
|
373
|
+
}
|
374
|
+
|
375
|
+
this._hasSelection = selection ? true : null;
|
376
|
+
this._pendingSelection = -1; // New selection happens before resolving the pending selection
|
377
|
+
|
378
|
+
var len = this._hosts.length;
|
379
|
+
|
380
|
+
for (var i = 0; i < len; ++i) {
|
381
|
+
this._hosts[i].enableColumnClass(colIndex, "selected-column", selection);
|
382
|
+
}
|
383
|
+
|
384
|
+
return true;
|
385
|
+
};
|
386
|
+
/** Select the specified column on an active grid, and clear all other column selections
|
387
|
+
* @public
|
388
|
+
* @param {(number|null)=} opt_colIndex
|
389
|
+
* @param {Object=} opt_grid core grid object
|
390
|
+
*/
|
391
|
+
|
392
|
+
|
393
|
+
ColumnSelectionPlugin.prototype.selectSingleColumn = function (opt_colIndex, opt_grid) {
|
394
|
+
if (opt_colIndex == null) {
|
395
|
+
// null or undefined
|
396
|
+
opt_colIndex = this._anchorCol;
|
397
|
+
}
|
398
|
+
|
399
|
+
if (!(opt_colIndex >= 0)) {
|
400
|
+
opt_colIndex = 0;
|
401
|
+
}
|
402
|
+
|
403
|
+
var activeGrid = opt_grid || this._activeGrid;
|
404
|
+
this.clearAllSelections();
|
405
|
+
|
406
|
+
if (this.setSelectedColumn(opt_colIndex, true, activeGrid)) {
|
407
|
+
this._anchorCol = opt_colIndex; // Update the anchor
|
408
|
+
}
|
409
|
+
};
|
410
|
+
/** Select from the anchorIndex to the target by length
|
411
|
+
* @public
|
412
|
+
* @param {number} anchorIndex
|
413
|
+
* @param {number} len If 1, two column will be selected (anchor and the one next to it). Negative len will select column to the left. 0 only anchor column is selected.
|
414
|
+
* @param {Object=} opt_grid core grid object
|
415
|
+
*/
|
416
|
+
|
417
|
+
|
418
|
+
ColumnSelectionPlugin.prototype.selectRange = function (anchorIndex, len, opt_grid) {
|
419
|
+
this._anchorCol = !(anchorIndex >= 0) ? 0 : anchorIndex;
|
420
|
+
|
421
|
+
this._selectFromAnchorToTarget(this._anchorCol + len);
|
422
|
+
};
|
423
|
+
/** Select all column in a single grid
|
424
|
+
* @public
|
425
|
+
*/
|
426
|
+
|
427
|
+
|
428
|
+
ColumnSelectionPlugin.prototype.selectAllColumns = function () {
|
429
|
+
this.selectRange(0, this.getColumnCount());
|
430
|
+
};
|
431
|
+
/** @public */
|
432
|
+
|
433
|
+
|
434
|
+
ColumnSelectionPlugin.prototype.clearAllSelections = function () {
|
435
|
+
var tableCount = this._hosts.length;
|
436
|
+
|
437
|
+
if (this.hasSelectedColumn()) {
|
438
|
+
for (var c = this.getColumnCount(); --c >= 0;) {
|
439
|
+
if (this.isSelectedColumn(c)) {
|
440
|
+
for (var i = 0; i < tableCount; ++i) {
|
441
|
+
this._hosts[i].enableColumnClass(c, "selected-column", false);
|
442
|
+
}
|
443
|
+
}
|
444
|
+
}
|
445
|
+
|
446
|
+
this._hasSelection = false;
|
447
|
+
this._activeGrid = this._hosts[0] || null; // Maintain selectability even if there is no selection
|
448
|
+
}
|
449
|
+
};
|
450
|
+
/** Alias to clearAllSelections() method
|
451
|
+
* @public
|
452
|
+
* @function
|
453
|
+
* @see {@link ColumnSelectionPlugin#clearAllSelections}
|
454
|
+
*/
|
455
|
+
|
456
|
+
|
457
|
+
ColumnSelectionPlugin.prototype.clearSelectedColumns = ColumnSelectionPlugin.prototype.clearAllSelections;
|
458
|
+
/** @public
|
459
|
+
* @param {(number|Array.<number>)=} cols
|
460
|
+
*/
|
461
|
+
|
462
|
+
ColumnSelectionPlugin.prototype.clearSelection = function (cols) {
|
463
|
+
if (cols) {
|
464
|
+
if (Array.isArray(cols)) {
|
465
|
+
for (var i = cols.length; --i >= 0;) {
|
466
|
+
this.setSelectedColumn(cols[i], false);
|
467
|
+
}
|
468
|
+
} else if (typeof cols === "number") {
|
469
|
+
this.setSelectedColumn(cols, false);
|
470
|
+
}
|
471
|
+
} else {
|
472
|
+
this.clearAllSelections();
|
473
|
+
}
|
474
|
+
};
|
475
|
+
/** Alias of {@link ColumnSelectionPlugin#selectAllColumns}
|
476
|
+
* @public
|
477
|
+
* @function
|
478
|
+
*/
|
479
|
+
|
480
|
+
|
481
|
+
ColumnSelectionPlugin.prototype.selectAll = ColumnSelectionPlugin.prototype.selectAllColumns;
|
482
|
+
/** Alias of {@link ColumnSelectionPlugin#clearSelection}
|
483
|
+
* @public
|
484
|
+
* @function
|
485
|
+
*/
|
486
|
+
|
487
|
+
ColumnSelectionPlugin.prototype.deselectAll = ColumnSelectionPlugin.prototype.clearSelection;
|
488
|
+
/** @public
|
489
|
+
* @param {number} colIndex
|
490
|
+
* @return {boolean}
|
491
|
+
*/
|
492
|
+
|
493
|
+
ColumnSelectionPlugin.prototype.isSelectedColumn = function (colIndex) {
|
494
|
+
if (this._activeGrid) {
|
495
|
+
return this._activeGrid.hasColumnClass(colIndex, "selected-column");
|
496
|
+
}
|
497
|
+
|
498
|
+
return false;
|
499
|
+
};
|
500
|
+
/** @public
|
501
|
+
* @return {Object} core grid object
|
502
|
+
*/
|
503
|
+
|
504
|
+
|
505
|
+
ColumnSelectionPlugin.prototype.getActiveGrid = function () {
|
506
|
+
return this._activeGrid;
|
507
|
+
};
|
508
|
+
/** Left click on title causes selection change. <br>
|
509
|
+
* Ctrl/Shift left click on title causes multi selection. <br>
|
510
|
+
* Left click anywhere, not title, causes deselection.
|
511
|
+
* @private
|
512
|
+
* @param {MouseEvent} e
|
513
|
+
*/
|
514
|
+
|
515
|
+
|
516
|
+
ColumnSelectionPlugin.prototype._onClick = function (e) {
|
517
|
+
if (this._disabled) {
|
518
|
+
return;
|
519
|
+
}
|
520
|
+
|
521
|
+
var host = this.getRelativeGrid(e);
|
522
|
+
|
523
|
+
if (!host) {
|
524
|
+
return;
|
525
|
+
}
|
526
|
+
|
527
|
+
var info = host.getRelativePosition(e);
|
528
|
+
|
529
|
+
if (!info["hit"] || info["sectionType"] !== "title") {
|
530
|
+
return;
|
531
|
+
}
|
532
|
+
|
533
|
+
if (e.button === 2) {
|
534
|
+
// Right button
|
535
|
+
if (e.type === "click") {
|
536
|
+
// Do nothing on right click
|
537
|
+
return;
|
538
|
+
} // To allow right clicking at the content for context menu and multi column selection
|
539
|
+
|
540
|
+
|
541
|
+
if (this.isSelectedColumn(info["colIndex"])) {
|
542
|
+
return;
|
543
|
+
}
|
544
|
+
}
|
545
|
+
|
546
|
+
var cIndex = info["colIndex"];
|
547
|
+
var singleSelection = !this._activeGrid || this._activeGrid !== host; // New grid is clicked
|
548
|
+
|
549
|
+
if (singleSelection || this._singleSelMode) {
|
550
|
+
this.clearAllSelections();
|
551
|
+
this._activeGrid = host;
|
552
|
+
this.setSelectedColumn(cIndex, true);
|
553
|
+
this._anchorCol = cIndex;
|
554
|
+
} else {
|
555
|
+
// The same active grid case
|
556
|
+
if (e.ctrlKey) {
|
557
|
+
var newState = !this.isSelectedColumn(cIndex); // toggle
|
558
|
+
|
559
|
+
this.setSelectedColumn(cIndex, newState);
|
560
|
+
|
561
|
+
if (newState) {
|
562
|
+
this._anchorCol = cIndex;
|
563
|
+
} else if (this._anchorCol === cIndex) {
|
564
|
+
this._anchorCol = this.getFirstSelectedColumn();
|
565
|
+
}
|
566
|
+
} else {
|
567
|
+
if (e.shiftKey) {
|
568
|
+
this._selectFromAnchorToTarget(cIndex);
|
569
|
+
} else {
|
570
|
+
if (this._clickToggleMode) {
|
571
|
+
var cols = this.getSelectedColumns();
|
572
|
+
|
573
|
+
if (cols.length === 1 && cols[0] === cIndex) {
|
574
|
+
this.setSelectedColumn(cIndex, false); // toggle
|
575
|
+
|
576
|
+
this._anchorCol = -1;
|
577
|
+
} else {
|
578
|
+
this.selectSingleColumn(cIndex);
|
579
|
+
}
|
580
|
+
} else {
|
581
|
+
this.selectSingleColumn(cIndex);
|
582
|
+
}
|
583
|
+
}
|
584
|
+
}
|
585
|
+
}
|
586
|
+
|
587
|
+
if (this._anchorCol < 0) {
|
588
|
+
this._hasSelection = false;
|
589
|
+
this._activeGrid = this._hosts[0] || null; // Maintain selectability even if there is no selection
|
590
|
+
}
|
591
|
+
|
592
|
+
this._dispatchSelectionChanged(e, cIndex);
|
593
|
+
};
|
594
|
+
/** @private
|
595
|
+
* @param {MouseEvent} e
|
596
|
+
*/
|
597
|
+
|
598
|
+
|
599
|
+
ColumnSelectionPlugin.prototype._onMouseDown = function (e) {
|
600
|
+
if (e.button === 2) {
|
601
|
+
// Right button
|
602
|
+
if (e.shiftKey || e.ctrlKey) {
|
603
|
+
return;
|
604
|
+
}
|
605
|
+
|
606
|
+
this._onClick(e);
|
607
|
+
}
|
608
|
+
};
|
609
|
+
/** @private
|
610
|
+
* @param {KeyboardEvent} e
|
611
|
+
*/
|
612
|
+
|
613
|
+
|
614
|
+
ColumnSelectionPlugin.prototype._onKeyDown = function (e) {
|
615
|
+
if (!this._activeGrid || !this.hasSelectedColumn()) {
|
616
|
+
return;
|
617
|
+
}
|
618
|
+
|
619
|
+
switch (e.keyCode) {
|
620
|
+
case 9:
|
621
|
+
// Tab
|
622
|
+
if (this._selectByTab(e)) {
|
623
|
+
this._dispatchSelectionChanged(e);
|
624
|
+
}
|
625
|
+
|
626
|
+
break;
|
627
|
+
|
628
|
+
case 37:
|
629
|
+
//Left arrow
|
630
|
+
if (this._selectByKey(-1, e)) {
|
631
|
+
this._dispatchSelectionChanged(e);
|
632
|
+
}
|
633
|
+
|
634
|
+
break;
|
635
|
+
|
636
|
+
case 39:
|
637
|
+
//Right arrow
|
638
|
+
if (this._selectByKey(1, e)) {
|
639
|
+
this._dispatchSelectionChanged(e);
|
640
|
+
}
|
641
|
+
|
642
|
+
break;
|
643
|
+
|
644
|
+
case 40:
|
645
|
+
//Down arrow
|
646
|
+
//window.setTimeout(this._gotoContent, 10); // RowSelection also listen to the keydown, and thus we have to use timer
|
647
|
+
if (this._gotoContent()) {
|
648
|
+
this._dispatchSelectionChanged(e);
|
649
|
+
}
|
650
|
+
|
651
|
+
break;
|
652
|
+
}
|
653
|
+
};
|
654
|
+
/** @private
|
655
|
+
* @param {Object} e
|
656
|
+
*/
|
657
|
+
|
658
|
+
|
659
|
+
ColumnSelectionPlugin.prototype._onColumnRemoved = function (e) {
|
660
|
+
if (this._timerId) {
|
661
|
+
return;
|
662
|
+
} // Since column and its selection state has been removed, we have to keep track of the first selection across multiple calls
|
663
|
+
|
664
|
+
|
665
|
+
if (this._hasSelection) {
|
666
|
+
var firstSel = this.getFirstSelectedColumn();
|
667
|
+
|
668
|
+
if (firstSel < 0) {
|
669
|
+
// The last selection has been removed
|
670
|
+
this._hasSelection = false;
|
671
|
+
|
672
|
+
if (this._pendingSelection < 0) {
|
673
|
+
this._pendingSelection = e.colIndex;
|
674
|
+
}
|
675
|
+
|
676
|
+
this._timerId = setTimeout(this._onReselection, 10);
|
677
|
+
} else {
|
678
|
+
this._pendingSelection = firstSel;
|
679
|
+
}
|
680
|
+
}
|
681
|
+
};
|
682
|
+
/** @private
|
683
|
+
* @param {Object} e
|
684
|
+
*/
|
685
|
+
|
686
|
+
|
687
|
+
ColumnSelectionPlugin.prototype._onReselection = function (e) {
|
688
|
+
this._timerId = 0;
|
689
|
+
this.setSelectedColumn(this._pendingSelection, true);
|
690
|
+
this._pendingSelection = -1;
|
691
|
+
};
|
692
|
+
/** @private
|
693
|
+
* @param {KeyboardEvent} e
|
694
|
+
* @return {boolean}
|
695
|
+
*/
|
696
|
+
|
697
|
+
|
698
|
+
ColumnSelectionPlugin.prototype._selectByTab = function (e) {
|
699
|
+
var direction = e.shiftKey ? -1 : 1;
|
700
|
+
var next = direction < 0 ? this.getFirstSelectedColumn() : this.getLastSelectedColumn();
|
701
|
+
|
702
|
+
if (next < 0) {
|
703
|
+
return false; // No selected column
|
704
|
+
}
|
705
|
+
|
706
|
+
Dom.preventDefault(e);
|
707
|
+
next += direction;
|
708
|
+
var colCount = this.getColumnCount();
|
709
|
+
|
710
|
+
if (next < 0) {
|
711
|
+
if (this._gotoPrevGrid()) {
|
712
|
+
return true;
|
713
|
+
}
|
714
|
+
|
715
|
+
next = 0;
|
716
|
+
} else if (next >= colCount) {
|
717
|
+
if (this._gotoNextGrid()) {
|
718
|
+
return true;
|
719
|
+
}
|
720
|
+
|
721
|
+
next = colCount - 1;
|
722
|
+
}
|
723
|
+
|
724
|
+
this.selectSingleColumn(next);
|
725
|
+
|
726
|
+
this._activeGrid.scrollToColumn(next);
|
727
|
+
|
728
|
+
return true;
|
729
|
+
};
|
730
|
+
/** @private
|
731
|
+
* @param {number} direction
|
732
|
+
* @param {KeyboardEvent} e
|
733
|
+
* @return {boolean}
|
734
|
+
*/
|
735
|
+
|
736
|
+
|
737
|
+
ColumnSelectionPlugin.prototype._selectByKey = function (direction, e) {
|
738
|
+
var curSel = direction < 0 ? this.getFirstSelectedColumn() : this.getLastSelectedColumn();
|
739
|
+
|
740
|
+
if (curSel < 0) {
|
741
|
+
return false; // No selected column
|
742
|
+
}
|
743
|
+
|
744
|
+
var colCount = this.getColumnCount();
|
745
|
+
|
746
|
+
var next = this._getNextSelection(curSel, direction);
|
747
|
+
|
748
|
+
if (next < 0) {
|
749
|
+
if (!e.shiftKey && this._gotoPrevGrid()) {
|
750
|
+
Dom.preventDefault(e);
|
751
|
+
return true;
|
752
|
+
}
|
753
|
+
|
754
|
+
next = 0;
|
755
|
+
} else if (next >= colCount) {
|
756
|
+
if (!e.shiftKey && this._gotoNextGrid()) {
|
757
|
+
Dom.preventDefault(e);
|
758
|
+
return true;
|
759
|
+
}
|
760
|
+
|
761
|
+
next = colCount - 1;
|
762
|
+
}
|
763
|
+
|
764
|
+
if (!this._activeGrid.isColumnVisible(next)) {
|
765
|
+
return false; // No further visible column can be selected
|
766
|
+
}
|
767
|
+
|
768
|
+
Dom.preventDefault(e);
|
769
|
+
|
770
|
+
if (e.shiftKey && !this._singleSelMode) {
|
771
|
+
this._selectFromAnchorToTarget(next);
|
772
|
+
} else {
|
773
|
+
this.selectSingleColumn(next);
|
774
|
+
}
|
775
|
+
|
776
|
+
this._activeGrid.scrollToColumn(next);
|
777
|
+
|
778
|
+
return true;
|
779
|
+
};
|
780
|
+
/** @private
|
781
|
+
* @param {number} curSel
|
782
|
+
* @param {number} direction Must not be zero
|
783
|
+
* @return {number} next selection
|
784
|
+
*/
|
785
|
+
|
786
|
+
|
787
|
+
ColumnSelectionPlugin.prototype._getNextSelection = function (curSel, direction) {
|
788
|
+
var next = curSel + direction;
|
789
|
+
var colCount = this.getColumnCount(); // isColumnVisible() with negative index or invalid index gives true as a result.
|
790
|
+
|
791
|
+
while (!this._activeGrid.isColumnVisible(next)) {
|
792
|
+
// Skip invisible columns
|
793
|
+
if (next < 0 || next >= colCount) {
|
794
|
+
break; // no further visible selection
|
795
|
+
}
|
796
|
+
|
797
|
+
next += direction;
|
798
|
+
}
|
799
|
+
|
800
|
+
return next;
|
801
|
+
};
|
802
|
+
/** @private
|
803
|
+
* @return {boolean}
|
804
|
+
*/
|
805
|
+
|
806
|
+
|
807
|
+
ColumnSelectionPlugin.prototype._gotoPrevGrid = function () {
|
808
|
+
if (this._activeGrid === this._hosts[0]) {
|
809
|
+
// This the first grid, so go to the content
|
810
|
+
return this._gotoContent();
|
811
|
+
} else {
|
812
|
+
var curIndex = this._hosts.indexOf(this._activeGrid);
|
813
|
+
|
814
|
+
if (curIndex > 0) {
|
815
|
+
this.selectSingleColumn(this._getNextSelection(this.getColumnCount(), -1), this._hosts[curIndex - 1]); // go to the next grid at the first column
|
816
|
+
|
817
|
+
return true;
|
818
|
+
}
|
819
|
+
}
|
820
|
+
|
821
|
+
return false;
|
822
|
+
};
|
823
|
+
/** @private
|
824
|
+
* @return {boolean}
|
825
|
+
*/
|
826
|
+
|
827
|
+
|
828
|
+
ColumnSelectionPlugin.prototype._gotoNextGrid = function () {
|
829
|
+
var lastIndex = this._hosts.length - 1;
|
830
|
+
|
831
|
+
if (this._activeGrid === this._hosts[lastIndex]) {
|
832
|
+
// This the last grid, so go to the content
|
833
|
+
return this._gotoContent();
|
834
|
+
} else {
|
835
|
+
var curIndex = this._hosts.indexOf(this._activeGrid);
|
836
|
+
|
837
|
+
if (curIndex >= 0) {
|
838
|
+
this.selectSingleColumn(this._getNextSelection(-1, 1), this._hosts[curIndex + 1]); // go to the next grid at the first column
|
839
|
+
|
840
|
+
return true;
|
841
|
+
}
|
842
|
+
}
|
843
|
+
|
844
|
+
return false;
|
845
|
+
};
|
846
|
+
/** @private
|
847
|
+
* @return {boolean}
|
848
|
+
*/
|
849
|
+
|
850
|
+
|
851
|
+
ColumnSelectionPlugin.prototype._gotoContent = function () {
|
852
|
+
if (this._activeGrid) {
|
853
|
+
var rsp = this._getPlugin("RowSelectionPlugin");
|
854
|
+
|
855
|
+
if (rsp) {
|
856
|
+
setTimeout(function (p, s, g) {
|
857
|
+
p["selectSingleRow"](0, s, g);
|
858
|
+
}.bind(null, rsp, this._activeGrid.getSectionSettings("content"), this._activeGrid), 10); // Since Row Selection plugin is also listening to key down, we have to avoid double executions
|
859
|
+
|
860
|
+
this.clearAllSelections();
|
861
|
+
return true;
|
862
|
+
}
|
863
|
+
}
|
864
|
+
|
865
|
+
return false;
|
866
|
+
};
|
867
|
+
/** @private
|
868
|
+
* @param {number} targetIndex
|
869
|
+
*/
|
870
|
+
|
871
|
+
|
872
|
+
ColumnSelectionPlugin.prototype._selectFromAnchorToTarget = function (targetIndex) {
|
873
|
+
if (this._anchorCol < 0) {
|
874
|
+
this.selectSingleColumn(targetIndex);
|
875
|
+
return;
|
876
|
+
}
|
877
|
+
|
878
|
+
var i;
|
879
|
+
var grid = this._activeGrid;
|
880
|
+
this.clearAllSelections();
|
881
|
+
|
882
|
+
if (targetIndex <= this._anchorCol) {
|
883
|
+
for (i = targetIndex; i <= this._anchorCol; ++i) {
|
884
|
+
this.setSelectedColumn(i, true, grid);
|
885
|
+
}
|
886
|
+
} else {
|
887
|
+
for (i = this._anchorCol; i <= targetIndex; ++i) {
|
888
|
+
this.setSelectedColumn(i, true, grid);
|
889
|
+
}
|
890
|
+
}
|
891
|
+
};
|
892
|
+
/** @private
|
893
|
+
* @param {Event} e
|
894
|
+
* @param {number=} colIndex
|
895
|
+
*/
|
896
|
+
|
897
|
+
|
898
|
+
ColumnSelectionPlugin.prototype._dispatchSelectionChanged = function (e, colIndex) {
|
899
|
+
if (this._activeGrid) {
|
900
|
+
var rsp = this._getPlugin("RowSelectionPlugin");
|
901
|
+
|
902
|
+
if (rsp) {
|
903
|
+
rsp["clearSelectedRows"]();
|
904
|
+
}
|
905
|
+
|
906
|
+
var cep = this._getPlugin("CellEditingPlugin");
|
907
|
+
|
908
|
+
if (cep) {
|
909
|
+
cep["closeCellEditor"]();
|
910
|
+
}
|
911
|
+
|
912
|
+
cep = this._getPlugin("InCellEditingPlugin");
|
913
|
+
|
914
|
+
if (cep) {
|
915
|
+
cep["closeCellEditor"]();
|
916
|
+
}
|
917
|
+
}
|
918
|
+
|
919
|
+
this._dispatch("selectionChanged", {
|
920
|
+
"selectedCols": this.getSelectedColumns(),
|
921
|
+
"colIndex": colIndex,
|
922
|
+
"grid": this._activeGrid,
|
923
|
+
"event": e
|
924
|
+
});
|
925
|
+
};
|
926
|
+
|
927
|
+
export default ColumnSelectionPlugin;
|
928
|
+
export { ColumnSelectionPlugin, ColumnSelectionPlugin as ColumnSelection, ColumnSelectionPlugin as ColumnSelectionExtension };
|