@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,907 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
import Ext from "../../../tr-grid-util/es6/Ext.js";
|
3
|
+
import TrackLayout from "./util/TrackLayout.js";
|
4
|
+
import SelectionList from "./util/SelectionList.js";
|
5
|
+
import Reverter from "./util/Reverter.js";
|
6
|
+
import ILayoutGrid from "./ILayoutGrid.js";
|
7
|
+
import LayoutGrid from "./LayoutGrid.js";
|
8
|
+
import ElementWrapper from "./components/ElementWrapper.js";
|
9
|
+
/* eslint-enable */
|
10
|
+
|
11
|
+
/** @constructor
|
12
|
+
* @ignore
|
13
|
+
* @param {Element|null=} opt_initializer this can be either element id (string) or DOM element.
|
14
|
+
* @param {string=} opt_className
|
15
|
+
* @extends {ElementWrapper}
|
16
|
+
*/
|
17
|
+
var VirtualizedLayoutGrid = function (opt_initializer, opt_className) {
|
18
|
+
var _t = this;
|
19
|
+
_t._onRestingPosition = _t._onRestingPosition.bind(_t);
|
20
|
+
|
21
|
+
_t._element = opt_initializer ? opt_initializer : document.createElement("div");
|
22
|
+
_t._element.className = "tr-vlg";
|
23
|
+
if(opt_className) { _t.enableClass(/** @type{string} */(opt_className), true); }
|
24
|
+
|
25
|
+
_t._grid = new LayoutGrid(null, {"owner": this});
|
26
|
+
_t._grid.setParent(_t._element);
|
27
|
+
|
28
|
+
_t._layoutY = new TrackLayout();
|
29
|
+
_t._selectionList = new SelectionList();
|
30
|
+
_t._reverter = new Reverter(_t._onRestingPosition, 200); // WORKAROUND: GRID-402
|
31
|
+
|
32
|
+
_t._addEvent("rowHighlighted");
|
33
|
+
_t._addEvent("rowCountChanged");
|
34
|
+
_t._addEvent("rowHeightChanged");
|
35
|
+
_t._addEvent("rowAvailable");
|
36
|
+
};
|
37
|
+
Ext.inherits(VirtualizedLayoutGrid, ElementWrapper);
|
38
|
+
|
39
|
+
|
40
|
+
/** For virtualization in Y-Axis
|
41
|
+
* @private
|
42
|
+
* @type {number}
|
43
|
+
*/
|
44
|
+
VirtualizedLayoutGrid.prototype._index = -1;
|
45
|
+
|
46
|
+
/**
|
47
|
+
* @private
|
48
|
+
* @type {number}
|
49
|
+
*/
|
50
|
+
VirtualizedLayoutGrid.prototype._indexOffset = 0;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* @private
|
54
|
+
* @type {number}
|
55
|
+
*/
|
56
|
+
VirtualizedLayoutGrid.prototype._firstIndex = 0;
|
57
|
+
|
58
|
+
/** @private
|
59
|
+
* @type {!LayoutGrid}
|
60
|
+
*/
|
61
|
+
VirtualizedLayoutGrid.prototype._grid;
|
62
|
+
|
63
|
+
/** @private
|
64
|
+
* @type {!TrackLayout}
|
65
|
+
*/
|
66
|
+
VirtualizedLayoutGrid.prototype._layoutY;
|
67
|
+
|
68
|
+
/** @private
|
69
|
+
* @type {SelectionList}
|
70
|
+
*/
|
71
|
+
VirtualizedLayoutGrid.prototype._selectionList = null;
|
72
|
+
|
73
|
+
/** @type {Reverter}
|
74
|
+
* @private
|
75
|
+
*/
|
76
|
+
VirtualizedLayoutGrid.prototype._reverter = null;
|
77
|
+
|
78
|
+
//#region ====== Override ElementWrapper ======//
|
79
|
+
/** @override */
|
80
|
+
VirtualizedLayoutGrid.prototype.getWidth = function () {
|
81
|
+
if(this.isVisible()) {
|
82
|
+
return this._grid.getWidth();
|
83
|
+
}
|
84
|
+
return 0;
|
85
|
+
};
|
86
|
+
/** @override */
|
87
|
+
VirtualizedLayoutGrid.prototype.getHeight = function () {
|
88
|
+
if (this.isVisible()) {
|
89
|
+
return this._element.offsetHeight;
|
90
|
+
}
|
91
|
+
return 0;
|
92
|
+
};
|
93
|
+
/** @override */
|
94
|
+
VirtualizedLayoutGrid.prototype.dispose = function () {
|
95
|
+
this.setRowCount(0); // Fire rowCountChanged
|
96
|
+
this.unlistenAll();
|
97
|
+
|
98
|
+
this._grid.dispose();
|
99
|
+
this._dispose();
|
100
|
+
this._reverter.dispose();
|
101
|
+
};
|
102
|
+
/** @override */
|
103
|
+
VirtualizedLayoutGrid.prototype.setWidth = function (px) {
|
104
|
+
return this._grid.setWidth(px);
|
105
|
+
};
|
106
|
+
/** @override */
|
107
|
+
VirtualizedLayoutGrid.prototype.setHeight = function (px) {
|
108
|
+
console.log("unsupported");
|
109
|
+
return false;
|
110
|
+
};
|
111
|
+
/** {@link ElementWrapper#show}
|
112
|
+
* @override */
|
113
|
+
VirtualizedLayoutGrid.prototype.show = function (opt_shown) {
|
114
|
+
this._element.style.display = (opt_shown !== false) ? "" : "none";
|
115
|
+
this._dispatchRowHeightChangedEvent(0, this._layoutY.getLaneCount());
|
116
|
+
};
|
117
|
+
//#endregion
|
118
|
+
|
119
|
+
//#region ====== Implementing ILayoutGrid ======//
|
120
|
+
/** @inheritDoc */
|
121
|
+
VirtualizedLayoutGrid.prototype.hitTest = function (x, y) {
|
122
|
+
var e = [];
|
123
|
+
e["colIndex"] = this._grid.hitTestX(x);
|
124
|
+
e["rowIndex"] = this._layoutY.hitTest(y);
|
125
|
+
return e;
|
126
|
+
};
|
127
|
+
/** @inheritDoc */
|
128
|
+
VirtualizedLayoutGrid.prototype.hitTestX = function (x) {
|
129
|
+
return this._grid.hitTestX(x);
|
130
|
+
};
|
131
|
+
/** @inheritDoc */
|
132
|
+
VirtualizedLayoutGrid.prototype.hitTestY = function (y) {
|
133
|
+
return this._layoutY.hitTest(y);
|
134
|
+
};
|
135
|
+
|
136
|
+
/** @inheritDoc */
|
137
|
+
VirtualizedLayoutGrid.prototype.getDefaultColumnWidth = function () {
|
138
|
+
return this._grid.getDefaultColumnWidth();
|
139
|
+
};
|
140
|
+
/** @inheritDoc */
|
141
|
+
VirtualizedLayoutGrid.prototype.setDefaultColumnWidth = function (val) {
|
142
|
+
this._grid.setDefaultColumnWidth(val);
|
143
|
+
};
|
144
|
+
|
145
|
+
/** @inheritDoc */
|
146
|
+
VirtualizedLayoutGrid.prototype.getDefaultRowHeight = function () {
|
147
|
+
return this._layoutY.getDefaultLaneSize();
|
148
|
+
};
|
149
|
+
/** @inheritDoc */
|
150
|
+
VirtualizedLayoutGrid.prototype.setDefaultRowHeight = function (val) {
|
151
|
+
var prevVal = this._layoutY.getDefaultLaneSize();
|
152
|
+
if (prevVal !== val) {
|
153
|
+
this._layoutY.setDefaultLaneSize(val);
|
154
|
+
this._element.style.height = this._layoutY.getTrackSize() + "px";
|
155
|
+
this._grid.setDefaultRowHeight(val);
|
156
|
+
this._dispatchRowHeightChangedEvent(0, this._layoutY.getLaneCount());
|
157
|
+
}
|
158
|
+
};
|
159
|
+
|
160
|
+
/** @inheritDoc */
|
161
|
+
VirtualizedLayoutGrid.prototype.getColumnWidth = function (index) {
|
162
|
+
return this._grid.getColumnWidth(index);
|
163
|
+
};
|
164
|
+
/** @inheritDoc */
|
165
|
+
VirtualizedLayoutGrid.prototype.setColumnWidth = function (index, val) {
|
166
|
+
return this._grid.setColumnWidth(index, val);
|
167
|
+
};
|
168
|
+
/** @public
|
169
|
+
* @ignore
|
170
|
+
* @param {number} indexX
|
171
|
+
* @param {number} val
|
172
|
+
* @return {boolean}
|
173
|
+
*/
|
174
|
+
VirtualizedLayoutGrid.prototype._setColumnWidth = function (indexX, val) {
|
175
|
+
return this._grid._setColumnWidth(indexX, val);
|
176
|
+
};
|
177
|
+
/** @public
|
178
|
+
* @ignore
|
179
|
+
*/
|
180
|
+
VirtualizedLayoutGrid.prototype._updateColumnLayout = function () {
|
181
|
+
this._grid._updateColumnLayout();
|
182
|
+
};
|
183
|
+
|
184
|
+
/** @inheritDoc */
|
185
|
+
VirtualizedLayoutGrid.prototype.getRowHeight = function (index) {
|
186
|
+
return this._layoutY.getLaneSize(index);
|
187
|
+
};
|
188
|
+
/** @inheritDoc */
|
189
|
+
VirtualizedLayoutGrid.prototype.setRowHeight = function (index, val) {
|
190
|
+
if(this._layoutY.setLaneSize(index, val)) {
|
191
|
+
this._grid.setRowHeight(index - this._firstIndex, val);
|
192
|
+
this._element.style.height = this._layoutY.getTrackSize() + "px";
|
193
|
+
return this._dispatchRowHeightChangedEvent(index, index + 1);
|
194
|
+
}
|
195
|
+
return false;
|
196
|
+
};
|
197
|
+
|
198
|
+
/** @inheritDoc */
|
199
|
+
VirtualizedLayoutGrid.prototype.isColumnVisible = function (index) {
|
200
|
+
return this._grid.isColumnVisible(index);
|
201
|
+
};
|
202
|
+
/** @inheritDoc */
|
203
|
+
VirtualizedLayoutGrid.prototype.hideColumn = function (index, val) {
|
204
|
+
return this._grid.hideColumn(index, val);
|
205
|
+
};
|
206
|
+
|
207
|
+
/** @inheritDoc */
|
208
|
+
VirtualizedLayoutGrid.prototype.isRowVisible = function (index) {
|
209
|
+
return this._grid.isRowVisible(index - this._firstIndex);
|
210
|
+
};
|
211
|
+
/** @inheritDoc */
|
212
|
+
VirtualizedLayoutGrid.prototype.hideRow = function (index, val) {
|
213
|
+
return this._grid.hideRow(index - this._firstIndex, val);
|
214
|
+
};
|
215
|
+
|
216
|
+
/** @inheritDoc */
|
217
|
+
VirtualizedLayoutGrid.prototype.getMinimumColumnWidth = function (index) {
|
218
|
+
return this._grid.getMinimumColumnWidth(index);
|
219
|
+
};
|
220
|
+
/** @inheritDoc */
|
221
|
+
VirtualizedLayoutGrid.prototype.setMinimumColumnWidth = function (index, val) {
|
222
|
+
return this._grid.setMinimumColumnWidth(index, val);
|
223
|
+
};
|
224
|
+
|
225
|
+
/** @inheritDoc */
|
226
|
+
VirtualizedLayoutGrid.prototype.getMinimumRowHeight = function (index) {
|
227
|
+
return this._layoutY.getMinimumLaneSize(index);
|
228
|
+
};
|
229
|
+
/** @inheritDoc */
|
230
|
+
VirtualizedLayoutGrid.prototype.setMinimumRowHeight = function (index, val) {
|
231
|
+
console.log("unsupported");
|
232
|
+
return false;
|
233
|
+
};
|
234
|
+
|
235
|
+
/** @inheritDoc */
|
236
|
+
VirtualizedLayoutGrid.prototype.getCellLeft = function (indexX) {
|
237
|
+
return this._grid.getCellLeft(indexX);
|
238
|
+
};
|
239
|
+
/** @inheritDoc */
|
240
|
+
VirtualizedLayoutGrid.prototype.getCellTop = function (indexY) {
|
241
|
+
return this._layoutY.getLaneStart(indexY);
|
242
|
+
};
|
243
|
+
/** @inheritDoc */
|
244
|
+
VirtualizedLayoutGrid.prototype.getCellWidth = function (indexX, indexY) {
|
245
|
+
return this._grid.getCellWidth(indexX, 0); //In virtualization, every cell in the same column has the same width
|
246
|
+
};
|
247
|
+
/** @inheritDoc */
|
248
|
+
VirtualizedLayoutGrid.prototype.getCellHeight = function (indexX, indexY) {
|
249
|
+
return this._layoutY.getLaneSize(indexY); //In virtualization, every cell in the same row has the same height
|
250
|
+
};
|
251
|
+
|
252
|
+
/** @inheritDoc */
|
253
|
+
VirtualizedLayoutGrid.prototype.hasCellSpan = function () {
|
254
|
+
return this._grid.hasCellSpan();
|
255
|
+
};
|
256
|
+
//Not support row spanning in virtualization
|
257
|
+
/** @inheritDoc */
|
258
|
+
VirtualizedLayoutGrid.prototype.getCellRowSpan = function (indexX, indexY) {
|
259
|
+
return this._grid.getCellRowSpan(indexX, indexY - this._firstIndex);
|
260
|
+
};
|
261
|
+
/** @inheritDoc */
|
262
|
+
VirtualizedLayoutGrid.prototype.setCellRowSpan = function (indexX, indexY, rowSpan) {
|
263
|
+
return this._grid.setCellRowSpan(indexX, indexY - this._firstIndex, rowSpan);
|
264
|
+
};
|
265
|
+
/** @inheritDoc */
|
266
|
+
VirtualizedLayoutGrid.prototype.getCellColSpan = function (indexX, indexY) {
|
267
|
+
return this._grid.getCellColSpan(indexX, indexY - this._firstIndex);
|
268
|
+
};
|
269
|
+
/** @inheritDoc */
|
270
|
+
VirtualizedLayoutGrid.prototype.setCellColSpan = function (indexX, indexY, colSpan) {
|
271
|
+
return this._grid.setCellColSpan(indexX, indexY - this._firstIndex, colSpan);
|
272
|
+
};
|
273
|
+
/** @inheritDoc */
|
274
|
+
VirtualizedLayoutGrid.prototype.clearCellSpans = function () {
|
275
|
+
return this._grid.clearCellSpans();
|
276
|
+
};
|
277
|
+
/** @inheritDoc */
|
278
|
+
VirtualizedLayoutGrid.prototype.clearColumnSpans = function (indexX) {
|
279
|
+
return this._grid.clearColumnSpans(indexX);
|
280
|
+
};
|
281
|
+
|
282
|
+
/** @inheritDoc */
|
283
|
+
VirtualizedLayoutGrid.prototype.clearColumnCustomizations = function () {
|
284
|
+
this._grid.clearColumnCustomizations();
|
285
|
+
};
|
286
|
+
/** @inheritDoc */
|
287
|
+
VirtualizedLayoutGrid.prototype.clearRowCustomizations = function () {
|
288
|
+
this._layoutY.clearLaneCustomizations();
|
289
|
+
this._grid.clearRowCustomizations();
|
290
|
+
};
|
291
|
+
|
292
|
+
/** @inheritDoc */
|
293
|
+
VirtualizedLayoutGrid.prototype.getColumnScalability = function (indexX) {
|
294
|
+
return this._grid.getColumnScalability(indexX);
|
295
|
+
};
|
296
|
+
/** @inheritDoc */
|
297
|
+
VirtualizedLayoutGrid.prototype.setColumnScalability = function (indexX, val) {
|
298
|
+
return this._grid.setColumnScalability(indexX, val);
|
299
|
+
};
|
300
|
+
|
301
|
+
/** @inheritDoc */
|
302
|
+
VirtualizedLayoutGrid.prototype.getRowScalability = function (indexY) {
|
303
|
+
return this._layoutY.getLaneScalability(indexY);
|
304
|
+
};
|
305
|
+
/** @inheritDoc */
|
306
|
+
VirtualizedLayoutGrid.prototype.setRowScalability = function (index, val) {
|
307
|
+
console.log("unsupported");
|
308
|
+
return false;
|
309
|
+
};
|
310
|
+
|
311
|
+
/** @inheritDoc */
|
312
|
+
VirtualizedLayoutGrid.prototype.getCell = function (indexX, indexY, opt_includeSpan) {
|
313
|
+
return this._grid.getCell(indexX, indexY - this._firstIndex, opt_includeSpan);
|
314
|
+
};
|
315
|
+
/** @inheritDoc */
|
316
|
+
VirtualizedLayoutGrid.prototype.getCellContent = function (indexX, indexY) {
|
317
|
+
return this._grid.getCellContent(indexX, indexY - this._firstIndex);
|
318
|
+
};
|
319
|
+
/** @inheritDoc */
|
320
|
+
VirtualizedLayoutGrid.prototype.setCellContent = function (indexX, indexY, data) {
|
321
|
+
return this._grid.setCellContent(indexX, indexY - this._firstIndex, data);
|
322
|
+
};
|
323
|
+
|
324
|
+
/** @inheritDoc */
|
325
|
+
VirtualizedLayoutGrid.prototype.getColumnCount = function () {
|
326
|
+
return this._grid.getColumnCount();
|
327
|
+
};
|
328
|
+
/** @inheritDoc */
|
329
|
+
VirtualizedLayoutGrid.prototype.setColumnCount = function (val) {
|
330
|
+
this._grid.setColumnCount(val);
|
331
|
+
};
|
332
|
+
|
333
|
+
/** @inheritDoc */
|
334
|
+
VirtualizedLayoutGrid.prototype.getRowCount = function () {
|
335
|
+
return this._layoutY.getLaneCount();
|
336
|
+
};
|
337
|
+
/** @inheritDoc */
|
338
|
+
VirtualizedLayoutGrid.prototype.setRowCount = function (val, noBinding) {
|
339
|
+
var prevCount = this._layoutY.getLaneCount();
|
340
|
+
if(prevCount !== val){
|
341
|
+
this._layoutY.setLaneCount(val);
|
342
|
+
this._element.style.height = this._layoutY.getTrackSize() + "px";
|
343
|
+
//After rowCountChanged fires, virtualizer will update virtual row count if
|
344
|
+
//the range of virtual layout changed.
|
345
|
+
this._dispatch("rowCountChanged", { "rowCount": val, "prevCount": prevCount, "noBinding": noBinding });
|
346
|
+
}
|
347
|
+
};
|
348
|
+
/** @inheritDoc */
|
349
|
+
VirtualizedLayoutGrid.prototype.getVisibleRowCount = function () {
|
350
|
+
return this.getRowCount();
|
351
|
+
};
|
352
|
+
/** @inheritDoc */
|
353
|
+
VirtualizedLayoutGrid.prototype.addRow = function (val) {
|
354
|
+
if (val <= 0) { return; }
|
355
|
+
if (this._grid.getColumnCount() <= 0) {
|
356
|
+
console.log("WARNING: Row cannot be added, unless at least one column is added");
|
357
|
+
return;
|
358
|
+
}
|
359
|
+
this.setRowCount(this._layoutY.getLaneCount() + val);
|
360
|
+
};
|
361
|
+
/** @inheritDoc */
|
362
|
+
VirtualizedLayoutGrid.prototype.removeRow = function (val) {
|
363
|
+
if (val <= 0) { return; }
|
364
|
+
var rowCount = this._layoutY.getLaneCount();
|
365
|
+
if (val > rowCount) { val = rowCount; }
|
366
|
+
this.setRowCount(rowCount - val);
|
367
|
+
};
|
368
|
+
|
369
|
+
/** @inheritDoc */
|
370
|
+
VirtualizedLayoutGrid.prototype.setBorders = function (lft, top, rgt, btm) {
|
371
|
+
this._grid.setBorders(lft, top, rgt, btm);
|
372
|
+
};
|
373
|
+
/** @inheritDoc */
|
374
|
+
VirtualizedLayoutGrid.prototype.getColumnStyle = function (colIndex, styleName) {
|
375
|
+
return this._grid.getColumnStyle(colIndex, styleName);
|
376
|
+
};
|
377
|
+
/** @inheritDoc */
|
378
|
+
VirtualizedLayoutGrid.prototype.setColumnStyle = function (colIndex, styleName, value) {
|
379
|
+
this._grid.setColumnStyle(colIndex, styleName, value);
|
380
|
+
};
|
381
|
+
|
382
|
+
/** @inheritDoc */
|
383
|
+
VirtualizedLayoutGrid.prototype.enableColumnClass = function (colIndex, className, enabled) {
|
384
|
+
this._grid.enableColumnClass(colIndex, className, enabled);
|
385
|
+
};
|
386
|
+
/** @inheritDoc */
|
387
|
+
VirtualizedLayoutGrid.prototype.hasColumnClass = function (colIndex, className) {
|
388
|
+
return this._grid.hasColumnClass(colIndex, className);
|
389
|
+
};
|
390
|
+
/** @inheritDoc */
|
391
|
+
VirtualizedLayoutGrid.prototype.enableRowClass = function (rowIndex, className, enabled) {
|
392
|
+
this._grid.enableRowClass(rowIndex - this._firstIndex, className, enabled);
|
393
|
+
};
|
394
|
+
/** @inheritDoc */
|
395
|
+
VirtualizedLayoutGrid.prototype.setRowStyle = function (rowIndex, styleName, value, enabled) {
|
396
|
+
this._grid.setRowStyle(rowIndex - this._firstIndex, styleName, value, enabled);
|
397
|
+
};
|
398
|
+
|
399
|
+
/** @inheritDoc */
|
400
|
+
VirtualizedLayoutGrid.prototype.getContentWidth = function () {
|
401
|
+
return this._grid.getContentWidth();
|
402
|
+
};
|
403
|
+
/** @inheritDoc */
|
404
|
+
VirtualizedLayoutGrid.prototype.getContentHeight = function () {
|
405
|
+
return this._layoutY.getTrackSize();
|
406
|
+
};
|
407
|
+
|
408
|
+
/** @inheritDoc */
|
409
|
+
VirtualizedLayoutGrid.prototype.getCellsByRowIndex = function(rowIndex) {
|
410
|
+
return this._grid.getCellsByRowIndex(rowIndex - this._firstIndex);
|
411
|
+
};
|
412
|
+
|
413
|
+
/** @inheritDoc */
|
414
|
+
VirtualizedLayoutGrid.prototype.disableHorizontalGridLine = function (opt_bool) {
|
415
|
+
this._grid.disableHorizontalGridLine(opt_bool);
|
416
|
+
};
|
417
|
+
/** @inheritDoc */
|
418
|
+
VirtualizedLayoutGrid.prototype.disableVerticalGridLine = function (opt_bool) {
|
419
|
+
this._grid.disableVerticalGridLine(opt_bool);
|
420
|
+
};
|
421
|
+
|
422
|
+
/** @inheritDoc */
|
423
|
+
VirtualizedLayoutGrid.prototype.enableShading = function (enabled) {
|
424
|
+
this._grid.enableShading(enabled);
|
425
|
+
};
|
426
|
+
|
427
|
+
/** @inheritDoc */
|
428
|
+
VirtualizedLayoutGrid.prototype.setTransposedShading = function (enabled) {
|
429
|
+
this._grid.setTransposedShading(enabled);
|
430
|
+
};
|
431
|
+
|
432
|
+
/** @inheritDoc */
|
433
|
+
VirtualizedLayoutGrid.prototype.enableRowHighlighting = function (opt_bool) {
|
434
|
+
this._grid.enableRowHighlighting(opt_bool);
|
435
|
+
};
|
436
|
+
|
437
|
+
/** @inheritDoc */
|
438
|
+
VirtualizedLayoutGrid.prototype.getRowHighlight = function () {
|
439
|
+
var index = this._grid.getRowHighlight();
|
440
|
+
if(index >= 0){
|
441
|
+
index += this._firstIndex;
|
442
|
+
}
|
443
|
+
return index;
|
444
|
+
};
|
445
|
+
|
446
|
+
/** @inheritDoc */
|
447
|
+
VirtualizedLayoutGrid.prototype.setRowHighlight = function (rowIndex) {
|
448
|
+
var prevIndex = this._grid.getRowHighlight();
|
449
|
+
if (prevIndex >= 0) { prevIndex += this._firstIndex; }
|
450
|
+
this._grid.setRowHighlight(rowIndex - this._firstIndex);
|
451
|
+
//Check row highligh is in view
|
452
|
+
rowIndex = this._grid.getRowHighlight();
|
453
|
+
if (rowIndex >= 0) { rowIndex += this._firstIndex; }
|
454
|
+
|
455
|
+
if (this._hasListener("rowHighlighted")) {
|
456
|
+
var e = {};
|
457
|
+
e["prevRowIndex"] = prevIndex;
|
458
|
+
e["rowIndex"] = rowIndex;
|
459
|
+
this._dispatch("rowHighlighted", e);
|
460
|
+
}
|
461
|
+
};
|
462
|
+
|
463
|
+
/** @inheritDoc */
|
464
|
+
VirtualizedLayoutGrid.prototype.getSelectedRows = function () {
|
465
|
+
if(this.getSelectedRowCount() > 0){
|
466
|
+
return this._selectionList.getAllSelections();
|
467
|
+
}
|
468
|
+
return null;
|
469
|
+
};
|
470
|
+
/** @inheritDoc */
|
471
|
+
VirtualizedLayoutGrid.prototype.getSelectedRowCount = function () {
|
472
|
+
return this._selectionList.getSelectionCount();
|
473
|
+
};
|
474
|
+
|
475
|
+
/** @inheritDoc */
|
476
|
+
VirtualizedLayoutGrid.prototype.isSelectedRow = function (at) {
|
477
|
+
return this._selectionList.getSelection(at);
|
478
|
+
};
|
479
|
+
|
480
|
+
/** @inheritDoc */
|
481
|
+
VirtualizedLayoutGrid.prototype.setSelectedRow = function (rowIndex, opt_selected) {
|
482
|
+
this._selectionList.setSelection(rowIndex, opt_selected);
|
483
|
+
|
484
|
+
var adjustedIndex = rowIndex - this._firstIndex;
|
485
|
+
this._grid.setSelectedRow(adjustedIndex, this._selectionList.getSelection(rowIndex));
|
486
|
+
};
|
487
|
+
|
488
|
+
/** @inheritDoc */
|
489
|
+
VirtualizedLayoutGrid.prototype.selectSingleRow = function (rowIndex) {
|
490
|
+
this.clearSelectedRows();
|
491
|
+
this.setSelectedRow(rowIndex);
|
492
|
+
};
|
493
|
+
/** @inheritDoc */
|
494
|
+
VirtualizedLayoutGrid.prototype.selectRowRange = function (rowIndex, length) {
|
495
|
+
this._selectionList.selectRange(rowIndex, length);
|
496
|
+
this._updateRowSelection();
|
497
|
+
};
|
498
|
+
/** @inheritDoc */
|
499
|
+
VirtualizedLayoutGrid.prototype.clearSelectedRows = function () {
|
500
|
+
var count = this._selectionList.clearAllSelections();
|
501
|
+
this._grid.clearSelectedRows();
|
502
|
+
return count;
|
503
|
+
};
|
504
|
+
/** @inheritDoc */
|
505
|
+
VirtualizedLayoutGrid.prototype.getFirstSelectedRow = function () {
|
506
|
+
return this._selectionList.getFirstSelectedIndex();
|
507
|
+
};
|
508
|
+
/** @inheritDoc */
|
509
|
+
VirtualizedLayoutGrid.prototype.getLastSelectedRow = function () {
|
510
|
+
return this._selectionList.getLastSelectedIndex();
|
511
|
+
};
|
512
|
+
/** @inheritDoc */
|
513
|
+
VirtualizedLayoutGrid.prototype.getRowAnchor = function () {
|
514
|
+
return this._selectionList.getSelectionAnchor();
|
515
|
+
};
|
516
|
+
/** @inheritDoc */
|
517
|
+
VirtualizedLayoutGrid.prototype.setRowAnchor = function (at) {
|
518
|
+
this._selectionList.setSelectionAnchor(at);
|
519
|
+
};
|
520
|
+
|
521
|
+
/** @inheritDoc */
|
522
|
+
VirtualizedLayoutGrid.prototype.activateColumn = function (colIndex, opt_bool) {
|
523
|
+
this._grid.activateColumn(colIndex, opt_bool);
|
524
|
+
};
|
525
|
+
/** @inheritDoc */
|
526
|
+
VirtualizedLayoutGrid.prototype.activateRows = function (from, to, updateRange) {
|
527
|
+
var maxLen = this._layoutY.getLaneCount();
|
528
|
+
if(!from) { from = this._rowOffset; }
|
529
|
+
if(!to && to !== 0) { to = from + maxLen; }
|
530
|
+
|
531
|
+
from -= this._rowOffset; // Convert to relative index
|
532
|
+
if(from < 0) { from = 0; }
|
533
|
+
to -= this._rowOffset; // Convert to relative index
|
534
|
+
if(to < 0) { to = 0; }
|
535
|
+
|
536
|
+
var prevLen = this._getInnerRowCount();
|
537
|
+
var pfi = this._firstIndex;
|
538
|
+
var fi = 0;
|
539
|
+
|
540
|
+
fi = from - (from & 1); // This is done to maintain zebra background color.
|
541
|
+
if (fi < 0) { fi = 0; }
|
542
|
+
else if (fi > maxLen) { fi = maxLen; }
|
543
|
+
|
544
|
+
var newLen = (to + (to & 1)) - fi;
|
545
|
+
if(newLen + 2 === prevLen) { // To remove unnecessary shrinking during scrolling
|
546
|
+
newLen = prevLen;
|
547
|
+
}
|
548
|
+
|
549
|
+
if(newLen < 0) { newLen = 0; }
|
550
|
+
else if(newLen + fi > maxLen) { newLen = maxLen - fi; }
|
551
|
+
|
552
|
+
this._firstIndex = fi;
|
553
|
+
var ei = fi + newLen;
|
554
|
+
|
555
|
+
// Re-position inner grid
|
556
|
+
var px = this._layoutY.getLaneStart(fi);
|
557
|
+
var gridElem = this._grid.getElement(); // GRID-347 Chrome 86 does not recognize top property of grand children
|
558
|
+
if(gridElem) {
|
559
|
+
gridElem.style.transform = px ? "translateY(" + px + "px)" : ""; // Replacement for this._grid.setTop(px);
|
560
|
+
gridElem.style.top = "";
|
561
|
+
this._reverter.start();
|
562
|
+
}
|
563
|
+
this._grid._onEnterDocument();
|
564
|
+
var force = false; // Forcing flag to update entire range
|
565
|
+
|
566
|
+
if (newLen !== prevLen) {
|
567
|
+
this._grid.setRowCount(newLen);
|
568
|
+
if(newLen > prevLen) { // New row is available. Fire event to render the cells.
|
569
|
+
var e = {};
|
570
|
+
e["prevRowIndex"] = fi + prevLen;
|
571
|
+
e["rowIndex"] = fi + newLen;
|
572
|
+
if(updateRange) {
|
573
|
+
e["noDataUpdate"] = true; // Data update will be triggered after this, so we notify grid not to update
|
574
|
+
}
|
575
|
+
this._dispatch("rowAvailable", e);
|
576
|
+
}
|
577
|
+
force = true; // Force update entire range
|
578
|
+
}
|
579
|
+
if(updateRange) { // Find actual update range
|
580
|
+
if(!force) {
|
581
|
+
// TODO: Check where to clearSelectedRows() more properly
|
582
|
+
this._grid.clearSelectedRows(); // Because row will be moving up and down, we need to clear the selection first
|
583
|
+
var pei = pfi + prevLen;
|
584
|
+
if(fi < pfi && pfi < ei && pei >= ei) {
|
585
|
+
this.moveRowsToTop(ei - pfi);
|
586
|
+
updateRange[0] = fi;
|
587
|
+
updateRange[1] = pfi;
|
588
|
+
} else if(pfi < fi && fi < pei && ei >= pei) {
|
589
|
+
this.moveRowsToTop(fi - pfi);
|
590
|
+
updateRange[0] = pei;
|
591
|
+
updateRange[1] = ei;
|
592
|
+
} else if(fi === pfi && ei === pei) {
|
593
|
+
updateRange[0] = 0;
|
594
|
+
updateRange[1] = 0;
|
595
|
+
} else {
|
596
|
+
force = true;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
|
600
|
+
if(force) {
|
601
|
+
updateRange[0] = fi;
|
602
|
+
updateRange[1] = ei;
|
603
|
+
}
|
604
|
+
}
|
605
|
+
|
606
|
+
if(!this._layoutY.isHomogeneous()) { // Row heights need to be updated on each scrolling
|
607
|
+
this._grid._updateRowHeights(this._layoutY, fi); // TODO: Set height only for the actual update range
|
608
|
+
}
|
609
|
+
|
610
|
+
this._updateRowSelection();
|
611
|
+
};
|
612
|
+
/** @inheritDoc */
|
613
|
+
VirtualizedLayoutGrid.prototype.moveRowsToTop = function (numRows) {
|
614
|
+
this._grid.moveRowsToTop(numRows);
|
615
|
+
};
|
616
|
+
|
617
|
+
/** @inheritDoc */
|
618
|
+
VirtualizedLayoutGrid.prototype.getFirstIndexInView = function () {
|
619
|
+
return this._firstIndex;
|
620
|
+
};
|
621
|
+
|
622
|
+
/** @inheritDoc */
|
623
|
+
VirtualizedLayoutGrid.prototype.getLastIndexInView = function () {
|
624
|
+
return this._firstIndex + this._getInnerRowCount() - 1;
|
625
|
+
};
|
626
|
+
|
627
|
+
/** @inheritDoc */
|
628
|
+
VirtualizedLayoutGrid.prototype.isInCurrentView = function(index){
|
629
|
+
return (this._firstIndex <= index) && (index < this._firstIndex + this._getInnerRowCount());
|
630
|
+
};
|
631
|
+
|
632
|
+
/** @inheritDoc */
|
633
|
+
VirtualizedLayoutGrid.prototype.getFrozenLayout = function () {
|
634
|
+
return this._grid.getFrozenLayout();
|
635
|
+
};
|
636
|
+
/** @inheritDoc */
|
637
|
+
VirtualizedLayoutGrid.prototype.setFrozenLayout = function (bool) {
|
638
|
+
this._grid.setFrozenLayout(bool);
|
639
|
+
};
|
640
|
+
|
641
|
+
/** @inheritDoc */
|
642
|
+
VirtualizedLayoutGrid.prototype.getColumn = function (index) {
|
643
|
+
return this._grid.getColumn(index);
|
644
|
+
};
|
645
|
+
|
646
|
+
/** @inheritDoc */
|
647
|
+
VirtualizedLayoutGrid.prototype.insertColumn = function (index, opt_json) {
|
648
|
+
return this._grid.insertColumn(index, opt_json);
|
649
|
+
};
|
650
|
+
|
651
|
+
/** @inheritDoc */
|
652
|
+
VirtualizedLayoutGrid.prototype.removeColumnAt = function (index) {
|
653
|
+
return this._grid.removeColumnAt(index);
|
654
|
+
};
|
655
|
+
|
656
|
+
/** @inheritDoc */
|
657
|
+
VirtualizedLayoutGrid.prototype.moveColumn = function (from, to) {
|
658
|
+
this._grid.moveColumn(from, to);
|
659
|
+
};
|
660
|
+
|
661
|
+
/** @inheritDoc */
|
662
|
+
VirtualizedLayoutGrid.prototype.enableRowVirtualization = function (bool) { };
|
663
|
+
|
664
|
+
/** @inheritDoc */
|
665
|
+
VirtualizedLayoutGrid.prototype.enableColumnVirtualization = function (bool) {
|
666
|
+
this._grid.enableColumnVirtualization(bool);
|
667
|
+
};
|
668
|
+
|
669
|
+
/** @inheritDoc */
|
670
|
+
VirtualizedLayoutGrid.prototype.getColumnIndex = function (colElem) {
|
671
|
+
return this._grid.getColumnIndex(colElem);
|
672
|
+
};
|
673
|
+
/** @inheritDoc */
|
674
|
+
VirtualizedLayoutGrid.prototype.getCellIndex = function (colIndex, cellElem) {
|
675
|
+
var at = this._grid.getCellIndex(colIndex, cellElem);
|
676
|
+
if(at < 0) {
|
677
|
+
return -1;
|
678
|
+
}
|
679
|
+
return at + this._firstIndex;
|
680
|
+
};
|
681
|
+
|
682
|
+
/** @inheritDoc */
|
683
|
+
VirtualizedLayoutGrid.prototype.getIndex = function () {
|
684
|
+
return this._index;
|
685
|
+
};
|
686
|
+
/** @inheritDoc */
|
687
|
+
VirtualizedLayoutGrid.prototype.setIndex = function (index) {
|
688
|
+
this._index = index;
|
689
|
+
};
|
690
|
+
|
691
|
+
/** @inheritDoc */
|
692
|
+
VirtualizedLayoutGrid.prototype.setRowOffset = function(val){
|
693
|
+
this._rowOffset = val;
|
694
|
+
};
|
695
|
+
|
696
|
+
/** @inheritDoc */
|
697
|
+
VirtualizedLayoutGrid.prototype.getRowOffset = function(){
|
698
|
+
return this._rowOffset;
|
699
|
+
};
|
700
|
+
|
701
|
+
/** @inheritDoc */
|
702
|
+
VirtualizedLayoutGrid.prototype.updateLayout = function () {};
|
703
|
+
|
704
|
+
/** {@link ILayoutGrid#stretchCell}
|
705
|
+
* @inheritDoc */
|
706
|
+
VirtualizedLayoutGrid.prototype.stretchCell = function (cellRef, rowIndex, opt_stretching, onlyToTheRight) {
|
707
|
+
return this._grid.stretchCell(
|
708
|
+
cellRef,
|
709
|
+
(rowIndex != null) ? rowIndex - this._firstIndex : null,
|
710
|
+
opt_stretching,
|
711
|
+
onlyToTheRight
|
712
|
+
);
|
713
|
+
};
|
714
|
+
|
715
|
+
/** {@link ILayoutGrid#unstretchCell}
|
716
|
+
* @inheritDoc */
|
717
|
+
VirtualizedLayoutGrid.prototype.unstretchCell = function (cellRef, rowIndex) {
|
718
|
+
return this._grid.unstretchCell(
|
719
|
+
cellRef,
|
720
|
+
(rowIndex != null) ? rowIndex - this._firstIndex : null
|
721
|
+
);
|
722
|
+
};
|
723
|
+
/** {@link ILayoutGrid#unstretchAllCells}
|
724
|
+
* @inheritDoc */
|
725
|
+
VirtualizedLayoutGrid.prototype.unstretchAllCells = function (cellRef, rowIndex) {
|
726
|
+
return this._grid.unstretchAllCells();
|
727
|
+
};
|
728
|
+
|
729
|
+
/** {@link ILayoutGrid#getStretchedCell}
|
730
|
+
* @inheritDoc */
|
731
|
+
VirtualizedLayoutGrid.prototype.getStretchedCell = function (cellRef, rowIndex) {
|
732
|
+
return this._grid.getStretchedCell(
|
733
|
+
cellRef,
|
734
|
+
(rowIndex != null) ? rowIndex - this._firstIndex : null
|
735
|
+
);
|
736
|
+
};
|
737
|
+
/** {@link ILayoutGrid#getStretchedCells}
|
738
|
+
* @inheritDoc */
|
739
|
+
VirtualizedLayoutGrid.prototype.getStretchedCells = function () {
|
740
|
+
return this._grid.getStretchedCells();
|
741
|
+
};
|
742
|
+
/** {@link ILayoutGrid#updateStretchedCells}
|
743
|
+
* @inheritDoc */
|
744
|
+
VirtualizedLayoutGrid.prototype.updateStretchedCells = function () {
|
745
|
+
return this._grid.updateStretchedCells();
|
746
|
+
};
|
747
|
+
|
748
|
+
/** {@link ILayoutGrid#getColumnHost}
|
749
|
+
* @inheritDoc */
|
750
|
+
VirtualizedLayoutGrid.prototype.getColumnHost = function () {
|
751
|
+
return this._grid.getElement();
|
752
|
+
};
|
753
|
+
/** {@link ILayoutGrid#setHidingMethod}
|
754
|
+
* @inheritDoc */
|
755
|
+
VirtualizedLayoutGrid.prototype.setHidingMethod = function (method) {
|
756
|
+
this._grid.setHidingMethod(method);
|
757
|
+
};
|
758
|
+
/** {@link ILayoutGrid#getHidingMethod}
|
759
|
+
* @inheritDoc */
|
760
|
+
VirtualizedLayoutGrid.prototype.getHidingMethod = function () {
|
761
|
+
return this._grid.getHidingMethod();
|
762
|
+
};
|
763
|
+
/** {@link ILayoutGrid#setColumnVisibility}
|
764
|
+
* @inheritDoc */
|
765
|
+
VirtualizedLayoutGrid.prototype.setColumnVisibility = function (colIndex, bool, flag) {
|
766
|
+
return this._grid.setColumnVisibility(colIndex, bool, flag);
|
767
|
+
};
|
768
|
+
/** {@link ILayoutGrid#setColumnVisibility}
|
769
|
+
* @inheritDoc */
|
770
|
+
VirtualizedLayoutGrid.prototype.getRowLayout = function () { return this._layoutY; };
|
771
|
+
|
772
|
+
/** {@link ILayoutGrid#reserveRightSpace}
|
773
|
+
* @inheritDoc */
|
774
|
+
VirtualizedLayoutGrid.prototype.reserveRightSpace = function (size) {
|
775
|
+
return this._grid.reserveRightSpace(size);
|
776
|
+
};
|
777
|
+
/** {@link ILayoutGrid#reserveRightSpace}
|
778
|
+
* @inheritDoc */
|
779
|
+
VirtualizedLayoutGrid.prototype.getReservedSpace = function () {
|
780
|
+
return this._grid.getReservedSpace();
|
781
|
+
};
|
782
|
+
/** {@link ILayoutGrid#getComputedStyle}
|
783
|
+
* @inheritDoc */
|
784
|
+
VirtualizedLayoutGrid.prototype.getComputedStyle = function () {
|
785
|
+
return this._grid.getComputedStyle();
|
786
|
+
};
|
787
|
+
/** {@link ILayoutGrid#isColumnActive}
|
788
|
+
* @inheritDoc
|
789
|
+
*/
|
790
|
+
VirtualizedLayoutGrid.prototype.isColumnActive = function (colIndex) {
|
791
|
+
return this._grid.isColumnActive(colIndex);
|
792
|
+
};
|
793
|
+
/** {@link ILayoutGrid#setRowAttributes}
|
794
|
+
* @inheritDoc
|
795
|
+
*/
|
796
|
+
VirtualizedLayoutGrid.prototype.setRowAttributes = function (rowIndex, func) {
|
797
|
+
return this._grid.setRowAttributes(rowIndex, func);
|
798
|
+
};
|
799
|
+
/** @public
|
800
|
+
* @param {number} rowIndex
|
801
|
+
* @return {Object}
|
802
|
+
*/
|
803
|
+
VirtualizedLayoutGrid.prototype.getContextRow = function (rowIndex) {
|
804
|
+
return this._grid.getContextRow(rowIndex - this._firstIndex);
|
805
|
+
};
|
806
|
+
//#endregion public methods
|
807
|
+
|
808
|
+
//#region ====== Private methods ======//
|
809
|
+
/** @private
|
810
|
+
* @return {number}
|
811
|
+
*/
|
812
|
+
VirtualizedLayoutGrid.prototype._getInnerRowCount = function () {
|
813
|
+
return this._grid.getRowCount();
|
814
|
+
};
|
815
|
+
|
816
|
+
/** @private */
|
817
|
+
VirtualizedLayoutGrid.prototype._updateRowSelection = function () {
|
818
|
+
this._grid.clearSelectedRows();
|
819
|
+
var sl = this._selectionList;
|
820
|
+
var count = sl.getSelectionCount();
|
821
|
+
if(count <= 0) { return; }
|
822
|
+
|
823
|
+
var r;
|
824
|
+
var fi = this._firstIndex;
|
825
|
+
var ei = fi + this._getInnerRowCount();
|
826
|
+
if(count === 1) {
|
827
|
+
r = sl.getFirstSelectedIndex();
|
828
|
+
if (fi <= r && r < ei) {
|
829
|
+
this._grid.setSelectedRow(r - fi, true);
|
830
|
+
}
|
831
|
+
} else {
|
832
|
+
if(count >= ei - fi) {
|
833
|
+
for(r = fi; r < ei; ++r) {
|
834
|
+
if(sl.getSelection(r)) {
|
835
|
+
this._grid.setSelectedRow(r - fi, true);
|
836
|
+
}
|
837
|
+
}
|
838
|
+
} else {
|
839
|
+
var selections = sl.getAllSelections();
|
840
|
+
for(var i = 0; i < count; ++i){
|
841
|
+
r = selections[i];
|
842
|
+
if (fi <= r && r < ei) {
|
843
|
+
this._grid.setSelectedRow(r - fi, true);
|
844
|
+
}
|
845
|
+
}
|
846
|
+
}
|
847
|
+
}
|
848
|
+
};
|
849
|
+
|
850
|
+
/** @private
|
851
|
+
* @param {number} from
|
852
|
+
* @param {number} to
|
853
|
+
* @return {boolean}
|
854
|
+
*/
|
855
|
+
VirtualizedLayoutGrid.prototype._dispatchRowHeightChangedEvent = function (from, to) {
|
856
|
+
if (from >= to) { return false; }
|
857
|
+
|
858
|
+
var e = {};
|
859
|
+
e["rowIndex"] = from;
|
860
|
+
e["changeLength"] = to - from;
|
861
|
+
this._dispatch("rowHeightChanged", e);
|
862
|
+
return true;
|
863
|
+
};
|
864
|
+
/** @private
|
865
|
+
*/
|
866
|
+
VirtualizedLayoutGrid.prototype._onRestingPosition = function () {
|
867
|
+
var gridElem = this._grid.getElement();
|
868
|
+
if(gridElem) {
|
869
|
+
var px = this._layoutY.getLaneStart(this._firstIndex);
|
870
|
+
gridElem.style.transform = "";
|
871
|
+
gridElem.style.top = px ? px + "px" : ""; // WORKAROUND: GRID-402
|
872
|
+
}
|
873
|
+
};
|
874
|
+
/** @public
|
875
|
+
* @ignore
|
876
|
+
* @param {boolean} absolutePos if true, the right space element will be positioned absolutely
|
877
|
+
*/
|
878
|
+
VirtualizedLayoutGrid.prototype._updateRightSpaceStyle = function(absolutePos) {
|
879
|
+
this._grid._updateRightSpaceStyle(absolutePos);
|
880
|
+
};
|
881
|
+
/** @public
|
882
|
+
* @ignore
|
883
|
+
*/
|
884
|
+
VirtualizedLayoutGrid.prototype._updateLayers = function() {
|
885
|
+
this._grid._updateLayers();
|
886
|
+
};
|
887
|
+
/** @public
|
888
|
+
* @ignore
|
889
|
+
* @param {*} ctx
|
890
|
+
*/
|
891
|
+
VirtualizedLayoutGrid.prototype._setContext = function(ctx) {
|
892
|
+
this._grid._setContext(ctx);
|
893
|
+
};
|
894
|
+
|
895
|
+
/** @public
|
896
|
+
* @ignore
|
897
|
+
* @return {*} ctx
|
898
|
+
*/
|
899
|
+
VirtualizedLayoutGrid.prototype._getContext = function () {
|
900
|
+
return this._grid._getContext();
|
901
|
+
};
|
902
|
+
//#endregion
|
903
|
+
|
904
|
+
VirtualizedLayoutGrid._proto = VirtualizedLayoutGrid.prototype;
|
905
|
+
|
906
|
+
export default VirtualizedLayoutGrid;
|
907
|
+
export { VirtualizedLayoutGrid };
|