@refinitiv-ui/efx-grid 0.0.0-dev.12023565035.1
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-dragging/es6/ColumnDragging.d.ts +51 -0
- package/lib/column-dragging/es6/ColumnDragging.js +968 -0
- package/lib/column-dragging/es6/index.d.ts +1 -0
- package/lib/column-dragging/es6/index.js +1 -0
- package/lib/column-format-dialog/index.d.ts +2 -0
- package/lib/column-format-dialog/index.js +2 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +77 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2688 -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 +982 -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 +2 -0
- package/lib/column-selection-dialog/index.js +2 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +66 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +2034 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +20 -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 +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +20 -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 +258 -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 +8 -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 +8 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +25 -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 +8 -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 +8 -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 +8 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +5 -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 +8 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +33910 -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 +43 -0
- package/lib/core/es6/data/DataCache.js +597 -0
- package/lib/core/es6/data/DataTable.d.ts +156 -0
- package/lib/core/es6/data/DataTable.js +2206 -0
- package/lib/core/es6/data/DataView.d.ts +332 -0
- package/lib/core/es6/data/DataView.js +4144 -0
- package/lib/core/es6/data/Segment.d.ts +91 -0
- package/lib/core/es6/data/Segment.js +1001 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +84 -0
- package/lib/core/es6/data/SegmentCollection.js +713 -0
- package/lib/core/es6/data/WrappedView.d.ts +290 -0
- package/lib/core/es6/data/WrappedView.js +1320 -0
- package/lib/core/es6/grid/Core.d.ts +455 -0
- package/lib/core/es6/grid/Core.js +6196 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +212 -0
- package/lib/core/es6/grid/ILayoutGrid.js +706 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +37 -0
- package/lib/core/es6/grid/LayoutGrid.js +2975 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +1241 -0
- package/lib/core/es6/grid/components/Cell.d.ts +52 -0
- package/lib/core/es6/grid/components/Cell.js +826 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +130 -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 +40 -0
- package/lib/core/es6/grid/components/CellSpans.js +368 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +618 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +718 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +28 -0
- package/lib/core/es6/grid/components/HScrollbar.js +241 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +63 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1413 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +342 -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 +166 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +155 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1977 -0
- package/lib/core/es6/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/core/es6/grid/util/CellBoundPainter.js +171 -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/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 +679 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +54 -0
- package/lib/core/es6/grid/util/SelectionList.js +491 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +92 -0
- package/lib/core/es6/grid/util/TrackLayout.js +902 -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 +20 -0
- package/lib/core/es6/grid/util/util.js +391 -0
- package/lib/core/es6/index.d.ts +79 -0
- package/lib/core/es6/index.js +125 -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 +2 -0
- package/lib/filter-dialog/index.js +2 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +52 -0
- package/lib/filter-dialog/lib/checkbox-list.js +444 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +75 -0
- package/lib/filter-dialog/lib/filter-dialog.js +1160 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +40 -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 +42 -0
- package/lib/filter-dialog/themes/base.less +191 -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 +15 -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 +20 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +45 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +103 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/CoralIconFormatter.js +50 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +45 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +85 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +71 -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 +20 -0
- package/lib/formatters/es6/EFButtonFormatter.js +45 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +78 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +60 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/EFIconFormatter.js +50 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +45 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +132 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +76 -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 +26 -0
- package/lib/formatters/es6/FormatterBuilder.js +493 -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 +23 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +66 -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 +35 -0
- package/lib/formatters/es6/index.d.ts +64 -0
- package/lib/formatters/es6/index.js +88 -0
- package/lib/grid/index.d.ts +2 -0
- package/lib/grid/index.js +3 -0
- package/lib/grid/lib/efx-grid.d.ts +53 -0
- package/lib/grid/lib/efx-grid.js +444 -0
- package/lib/grid/themes/base.less +137 -0
- package/lib/grid/themes/ds/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/dark/efx-grid.js +4 -0
- package/lib/grid/themes/ds/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/dark.js +3 -0
- package/lib/grid/themes/ds/efx-grid.less +207 -0
- package/lib/grid/themes/ds/index.less +3 -0
- package/lib/grid/themes/ds/light/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/light/efx-grid.js +4 -0
- package/lib/grid/themes/ds/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/light.js +3 -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 +127 -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 +100 -0
- package/lib/index.js +100 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +115 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +1182 -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 +54547 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +174 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1203 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +43 -0
- package/lib/rt-grid/es6/DataConnector.js +290 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +40 -0
- package/lib/rt-grid/es6/FieldDefinition.js +560 -0
- package/lib/rt-grid/es6/Grid.d.ts +376 -0
- package/lib/rt-grid/es6/Grid.js +4653 -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 +40 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +251 -0
- package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
- package/lib/rt-grid/es6/RowDefSorter.js +231 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +156 -0
- package/lib/rt-grid/es6/RowDefinition.js +1478 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +36 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +537 -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 +68 -0
- package/lib/statistics-row/es6/StatisticsRow.js +807 -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 +46 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +617 -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 +70 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1695 -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 +82 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1704 -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 +817 -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 +91 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +617 -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 +110 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +2028 -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 +1010 -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 +77 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +1405 -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 +160 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +2155 -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 +100 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +1513 -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 +519 -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 +453 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +138 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +41 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +285 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +33 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +303 -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 +64 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +1027 -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 +45 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +401 -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 +148 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +2671 -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 +58 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +433 -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 +804 -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 +50 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +234 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +13 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +23 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +33 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +794 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +39 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +494 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +57 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +238 -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/LEDGuage.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/LEDGuage.js +261 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +56 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +514 -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 +81 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +1479 -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 +159 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +2568 -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 +123 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1728 -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 +75 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1447 -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 +64 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +615 -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 +72 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +543 -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 +27 -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 +142 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1183 -0
- package/lib/tr-grid-util/es6/Color.d.ts +40 -0
- package/lib/tr-grid-util/es6/Color.js +210 -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 +16 -0
- package/lib/tr-grid-util/es6/Deferred.js +108 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +96 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +350 -0
- package/lib/tr-grid-util/es6/DragUI.d.ts +20 -0
- package/lib/tr-grid-util/es6/DragUI.js +263 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +12 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +134 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +84 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +164 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +46 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +637 -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 +24 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +120 -0
- package/lib/tr-grid-util/es6/ExpressionParser.d.ts +10 -0
- package/lib/tr-grid-util/es6/ExpressionParser.js +408 -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 +440 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +54 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +580 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +56 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +255 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +86 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +1055 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +74 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.js +642 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +62 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +250 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +40 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +611 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +85 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +528 -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 +163 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +98 -0
- package/lib/tr-grid-util/es6/Popup.js +991 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +260 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +228 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +60 -0
- package/lib/tr-grid-util/es6/RowPainter.js +448 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +78 -0
- package/lib/tr-grid-util/es6/SubTable.js +642 -0
- package/lib/tr-grid-util/es6/Table.d.ts +146 -0
- package/lib/tr-grid-util/es6/Table.js +832 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +16 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +268 -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 +66 -0
- package/lib/tr-grid-util/es6/Util.js +508 -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 +890 -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 +65 -0
- package/lib/tr-grid-util/es6/index.js +102 -0
- package/lib/tr-grid-util/es6/jet/Adc.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/Adc.js +268 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +151 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +136 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +860 -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 +71 -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 +82 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +890 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +48 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +82 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.d.ts +7 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.js +25 -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 +111 -0
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -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 +46 -0
- package/lib/types/es6/CellSelection.d.ts +70 -0
- package/lib/types/es6/Checkbox.d.ts +82 -0
- package/lib/types/es6/ColumnDragging.d.ts +51 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +92 -0
- package/lib/types/es6/ColumnGrouping.d.ts +107 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +77 -0
- package/lib/types/es6/ColumnStack.d.ts +160 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +289 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +23 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +32 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +44 -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 +100 -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 +20 -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 +21 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +20 -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 +43 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +156 -0
- package/lib/types/es6/Core/data/DataView.d.ts +332 -0
- package/lib/types/es6/Core/data/Segment.d.ts +91 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +84 -0
- package/lib/types/es6/Core/data/WrappedView.d.ts +290 -0
- package/lib/types/es6/Core/grid/Core.d.ts +455 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +212 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +37 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +52 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +40 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +63 -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/SortableTitlePlugin.d.ts +155 -0
- package/lib/types/es6/Core/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -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 +54 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +92 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +20 -0
- package/lib/types/es6/Core/index.d.ts +79 -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 +20 -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 +21 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +20 -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 +58 -0
- package/lib/types/es6/Extensions.d.ts +63 -0
- package/lib/types/es6/FilterInput.d.ts +64 -0
- package/lib/types/es6/FormatterBuilder.d.ts +26 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +45 -0
- package/lib/types/es6/InCellEditing.d.ts +148 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +41 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +58 -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 +33 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +176 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +43 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +413 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +156 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +36 -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 +64 -0
- package/lib/types/es6/RowDragging.d.ts +81 -0
- package/lib/types/es6/RowFiltering.d.ts +159 -0
- package/lib/types/es6/RowGrouping.d.ts +123 -0
- package/lib/types/es6/RowSegmenting.d.ts +109 -0
- package/lib/types/es6/RowSelection.d.ts +75 -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 +23 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +68 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +72 -0
- package/lib/types/es6/TitleWrap.d.ts +27 -0
- package/lib/types/es6/Zoom.d.ts +52 -0
- package/lib/types/es6/index.d.ts +80 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +7 -0
- package/lib/versions.json +37 -0
- package/lib/window-exporter.js +18 -0
- package/lib/zoom/es6/Zoom.d.ts +52 -0
- package/lib/zoom/es6/Zoom.js +438 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +69 -0
@@ -0,0 +1,1241 @@
|
|
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
|
+
import HScrollbar from "./components/HScrollbar.js";
|
10
|
+
import CellBoundPainter from "./util/CellBoundPainter.js";
|
11
|
+
/* eslint-enable */
|
12
|
+
|
13
|
+
|
14
|
+
/** @constructor
|
15
|
+
* @ignore
|
16
|
+
* @param {Object=} options
|
17
|
+
* @extends {ElementWrapper}
|
18
|
+
*/
|
19
|
+
let VirtualizedLayoutGrid = function (options) {
|
20
|
+
let _t = this;
|
21
|
+
_t._onRestingPosition = _t._onRestingPosition.bind(_t);
|
22
|
+
_t._updateRowBounds = _t._updateRowBounds.bind(_t);
|
23
|
+
|
24
|
+
_t._element = document.createElement("div");
|
25
|
+
_t._element.className = "tr-vlg section";
|
26
|
+
|
27
|
+
if(!options) {
|
28
|
+
options = {};
|
29
|
+
}
|
30
|
+
if(options["horizontalScrollbar"]) {
|
31
|
+
_t._hscrollbar = options["horizontalScrollbar"];
|
32
|
+
}
|
33
|
+
options["owner"] = this;
|
34
|
+
|
35
|
+
_t._grid = new LayoutGrid(options);
|
36
|
+
_t._grid.setParent(_t._element);
|
37
|
+
|
38
|
+
_t._layoutY = new TrackLayout();
|
39
|
+
_t._selectionList = new SelectionList();
|
40
|
+
_t._reverter = new Reverter(_t._onRestingPosition, 200); // WORKAROUND: GRID-402
|
41
|
+
|
42
|
+
_t._addEvent("rowHighlighted");
|
43
|
+
_t._addEvent("rowCountChanged");
|
44
|
+
_t._addEvent("rowHeightChanged");
|
45
|
+
_t._addEvent("rowAvailable");
|
46
|
+
};
|
47
|
+
Ext.inherits(VirtualizedLayoutGrid, ElementWrapper);
|
48
|
+
|
49
|
+
|
50
|
+
/**
|
51
|
+
* @private
|
52
|
+
* @type {number}
|
53
|
+
*/
|
54
|
+
VirtualizedLayoutGrid.prototype._index = -1;
|
55
|
+
|
56
|
+
/** Number of rows offsetting from the first section
|
57
|
+
* @private
|
58
|
+
* @type {number}
|
59
|
+
*/
|
60
|
+
VirtualizedLayoutGrid.prototype._rowOffset = 0;
|
61
|
+
/** For virtualization in Y-Axis
|
62
|
+
* @private
|
63
|
+
* @type {number}
|
64
|
+
*/
|
65
|
+
VirtualizedLayoutGrid.prototype._firstIndex = 0;
|
66
|
+
|
67
|
+
/** @private
|
68
|
+
* @type {!LayoutGrid}
|
69
|
+
*/
|
70
|
+
VirtualizedLayoutGrid.prototype._grid;
|
71
|
+
|
72
|
+
/** @private
|
73
|
+
* @type {!TrackLayout}
|
74
|
+
*/
|
75
|
+
VirtualizedLayoutGrid.prototype._layoutY;
|
76
|
+
|
77
|
+
/** @private
|
78
|
+
* @type {SelectionList}
|
79
|
+
*/
|
80
|
+
VirtualizedLayoutGrid.prototype._selectionList = null;
|
81
|
+
|
82
|
+
/** @type {Reverter}
|
83
|
+
* @private
|
84
|
+
*/
|
85
|
+
VirtualizedLayoutGrid.prototype._reverter = null;
|
86
|
+
/** @type {Array.<Element>}
|
87
|
+
* @private
|
88
|
+
*/
|
89
|
+
VirtualizedLayoutGrid.prototype._rowBounds = null;
|
90
|
+
/** @type {Array.<Element>}
|
91
|
+
* @private
|
92
|
+
*/
|
93
|
+
VirtualizedLayoutGrid.prototype._rowBoundCache = null;
|
94
|
+
/** @type {boolean}
|
95
|
+
* @private
|
96
|
+
*/
|
97
|
+
VirtualizedLayoutGrid.prototype._rowSelDirty = false;
|
98
|
+
/** @type {Object}
|
99
|
+
* @private
|
100
|
+
*/
|
101
|
+
VirtualizedLayoutGrid.prototype._cellBoundPainter = null;
|
102
|
+
/** @type {number}
|
103
|
+
* @private
|
104
|
+
*/
|
105
|
+
VirtualizedLayoutGrid.prototype._rowBoundTimer = 0;
|
106
|
+
/** @type {Element}
|
107
|
+
* @private
|
108
|
+
*/
|
109
|
+
VirtualizedLayoutGrid.prototype._boundLayer = null;
|
110
|
+
/** @type {HScrollbar}
|
111
|
+
* @private
|
112
|
+
*/
|
113
|
+
VirtualizedLayoutGrid.prototype._hscrollbar = null;
|
114
|
+
/** @type {string}
|
115
|
+
* @private
|
116
|
+
*/
|
117
|
+
VirtualizedLayoutGrid.prototype._session = "A";
|
118
|
+
/** @type {Array<boolean>}
|
119
|
+
* @private
|
120
|
+
*/
|
121
|
+
VirtualizedLayoutGrid.prototype._tempRowHeights = null;
|
122
|
+
|
123
|
+
//#region ====== Override ElementWrapper ======//
|
124
|
+
/** @override */
|
125
|
+
VirtualizedLayoutGrid.prototype.getWidth = function () {
|
126
|
+
if(this.isVisible()) {
|
127
|
+
return this._grid.getWidth();
|
128
|
+
}
|
129
|
+
return 0;
|
130
|
+
};
|
131
|
+
/** @override */
|
132
|
+
VirtualizedLayoutGrid.prototype.getHeight = function () {
|
133
|
+
if (this.isVisible()) {
|
134
|
+
return this._element.offsetHeight;
|
135
|
+
}
|
136
|
+
return 0;
|
137
|
+
};
|
138
|
+
/** @override */
|
139
|
+
VirtualizedLayoutGrid.prototype.dispose = function () {
|
140
|
+
this.setRowCount(0); // Fire rowCountChanged
|
141
|
+
this.unlistenAll();
|
142
|
+
|
143
|
+
this._hscrollbar = null;
|
144
|
+
this._grid.dispose();
|
145
|
+
this._dispose();
|
146
|
+
this._reverter.dispose();
|
147
|
+
|
148
|
+
this._rowBounds = this._rowBoundCache = null;
|
149
|
+
this._rowSelDirty = false;
|
150
|
+
if(this._rowBoundTimer) {
|
151
|
+
clearTimeout(this._rowBoundTimer);
|
152
|
+
this._rowBoundTimer = 0;
|
153
|
+
}
|
154
|
+
if(this._cellBoundPainter) {
|
155
|
+
this._cellBoundPainter.dispose();
|
156
|
+
}
|
157
|
+
};
|
158
|
+
/** @override */
|
159
|
+
VirtualizedLayoutGrid.prototype.setWidth = function (px) {
|
160
|
+
return this._grid.setWidth(px);
|
161
|
+
};
|
162
|
+
/** @override */
|
163
|
+
VirtualizedLayoutGrid.prototype.setHeight = function (px) {
|
164
|
+
return false;
|
165
|
+
};
|
166
|
+
/** {@link ElementWrapper#show}
|
167
|
+
* @override */
|
168
|
+
VirtualizedLayoutGrid.prototype.show = function (opt_shown) {
|
169
|
+
this._element.style.display = (opt_shown !== false) ? "" : "none";
|
170
|
+
this._dispatchRowHeightChangedEvent(0, this._layoutY.getLaneCount());
|
171
|
+
};
|
172
|
+
//#endregion
|
173
|
+
|
174
|
+
//#region ====== Implementing ILayoutGrid ======//
|
175
|
+
/** @inheritDoc */
|
176
|
+
VirtualizedLayoutGrid.prototype.hitTest = function (x, y) {
|
177
|
+
let e = [];
|
178
|
+
e["colIndex"] = this._grid.hitTestX(x);
|
179
|
+
e["rowIndex"] = this._layoutY.hitTest(y);
|
180
|
+
return e;
|
181
|
+
};
|
182
|
+
/** @inheritDoc */
|
183
|
+
VirtualizedLayoutGrid.prototype.hitTestX = function (x) {
|
184
|
+
return this._grid.hitTestX(x);
|
185
|
+
};
|
186
|
+
/** @inheritDoc */
|
187
|
+
VirtualizedLayoutGrid.prototype.hitTestY = function (y) {
|
188
|
+
return this._layoutY.hitTest(y);
|
189
|
+
};
|
190
|
+
|
191
|
+
/** @inheritDoc */
|
192
|
+
VirtualizedLayoutGrid.prototype.getDefaultColumnWidth = function () {
|
193
|
+
return this._grid.getDefaultColumnWidth();
|
194
|
+
};
|
195
|
+
/** @inheritDoc */
|
196
|
+
VirtualizedLayoutGrid.prototype.setDefaultColumnWidth = function (val) {
|
197
|
+
this._grid.setDefaultColumnWidth(val);
|
198
|
+
};
|
199
|
+
|
200
|
+
/** @inheritDoc */
|
201
|
+
VirtualizedLayoutGrid.prototype.getDefaultRowHeight = function () {
|
202
|
+
return this._layoutY.getDefaultLaneSize();
|
203
|
+
};
|
204
|
+
/** @inheritDoc */
|
205
|
+
VirtualizedLayoutGrid.prototype.setDefaultRowHeight = function (val) {
|
206
|
+
let prevVal = this._layoutY.getDefaultLaneSize();
|
207
|
+
if (prevVal !== val) {
|
208
|
+
this._layoutY.setDefaultLaneSize(val);
|
209
|
+
this._element.style.height = this._layoutY.getTrackSize() + "px";
|
210
|
+
this._grid.setDefaultRowHeight(val);
|
211
|
+
this._dispatchRowHeightChangedEvent(0, this._layoutY.getLaneCount());
|
212
|
+
}
|
213
|
+
};
|
214
|
+
|
215
|
+
/** @inheritDoc */
|
216
|
+
VirtualizedLayoutGrid.prototype.getColumnWidth = function (index) {
|
217
|
+
return this._grid.getColumnWidth(index);
|
218
|
+
};
|
219
|
+
/** @inheritDoc */
|
220
|
+
VirtualizedLayoutGrid.prototype.setColumnWidth = function (index, val) {
|
221
|
+
return this._grid.setColumnWidth(index, val);
|
222
|
+
};
|
223
|
+
/** @public
|
224
|
+
* @ignore
|
225
|
+
* @param {number} indexX
|
226
|
+
* @param {number} val
|
227
|
+
* @return {boolean}
|
228
|
+
*/
|
229
|
+
VirtualizedLayoutGrid.prototype._setColumnWidth = function (indexX, val) {
|
230
|
+
return this._grid._setColumnWidth(indexX, val);
|
231
|
+
};
|
232
|
+
/** @public
|
233
|
+
* @ignore
|
234
|
+
*/
|
235
|
+
VirtualizedLayoutGrid.prototype._updateColumnLayout = function () {
|
236
|
+
this._grid._updateColumnLayout();
|
237
|
+
};
|
238
|
+
/** @public
|
239
|
+
* @ignore
|
240
|
+
* @param {boolean} enabled
|
241
|
+
*/
|
242
|
+
VirtualizedLayoutGrid.prototype._startBindingSession = function (enabled) {
|
243
|
+
this._isBinding = enabled;
|
244
|
+
if(!enabled){
|
245
|
+
// Clear old session
|
246
|
+
if(this._tempRowHeights){
|
247
|
+
let defaultRowHeight = this.getDefaultRowHeight();
|
248
|
+
let hasSession = true;
|
249
|
+
let removedIndices = [];
|
250
|
+
|
251
|
+
for(let key in this._tempRowHeights){
|
252
|
+
let index = +key;
|
253
|
+
let rowSession = this._layoutY.getLaneProperty(index, "sizeSession");
|
254
|
+
if(rowSession) {
|
255
|
+
if(rowSession != this._session){
|
256
|
+
this.setRowHeight(index, defaultRowHeight);
|
257
|
+
this._layoutY.setLaneProperty(index, "sizeSession", null);
|
258
|
+
removedIndices.push(index);
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
let removedCount = removedIndices.length;
|
263
|
+
for(let i = 0; i < removedCount; i++){
|
264
|
+
delete this._tempRowHeights[removedIndices[i]];
|
265
|
+
}
|
266
|
+
if(removedCount){
|
267
|
+
for(let remainingKey in this._tempRowHeights){
|
268
|
+
hasSession = remainingKey != null;
|
269
|
+
break;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
if(!hasSession){
|
273
|
+
this._tempRowHeights = null;
|
274
|
+
}
|
275
|
+
|
276
|
+
}
|
277
|
+
this._session = this._session === "A" ? "B" : "A";
|
278
|
+
}
|
279
|
+
};
|
280
|
+
/** @public
|
281
|
+
* @ignore
|
282
|
+
* @return {Array<boolean>}
|
283
|
+
*/
|
284
|
+
VirtualizedLayoutGrid.prototype._getTempRowHeights = function () {
|
285
|
+
return this._tempRowHeights;
|
286
|
+
};
|
287
|
+
/** @inheritDoc */
|
288
|
+
VirtualizedLayoutGrid.prototype.getRowHeight = function (index) {
|
289
|
+
return this._layoutY.getLaneSize(index);
|
290
|
+
};
|
291
|
+
/** @inheritDoc */
|
292
|
+
VirtualizedLayoutGrid.prototype.setRowHeight = function (index, val) {
|
293
|
+
if(this._isBinding && val != this.getDefaultRowHeight()){
|
294
|
+
this._layoutY.setLaneProperty(index, "sizeSession", this._session);
|
295
|
+
if(!this._tempRowHeights){
|
296
|
+
this._tempRowHeights = [];
|
297
|
+
}
|
298
|
+
this._tempRowHeights[index] = true; // Store row index that set temporary row height
|
299
|
+
}
|
300
|
+
if(this._layoutY.setLaneSize(index, val)) {
|
301
|
+
this._grid.setRowHeight(index - this._firstIndex, val);
|
302
|
+
this._element.style.height = this._layoutY.getTrackSize() + "px";
|
303
|
+
this._requestUpdatingRowBounds();
|
304
|
+
return this._dispatchRowHeightChangedEvent(index, index + 1);
|
305
|
+
}
|
306
|
+
return false;
|
307
|
+
};
|
308
|
+
|
309
|
+
/** @inheritDoc */
|
310
|
+
VirtualizedLayoutGrid.prototype.isColumnVisible = function (index) {
|
311
|
+
return this._grid.isColumnVisible(index);
|
312
|
+
};
|
313
|
+
/** @inheritDoc */
|
314
|
+
VirtualizedLayoutGrid.prototype.hideColumn = function (index, val) {
|
315
|
+
return this._grid.hideColumn(index, val);
|
316
|
+
};
|
317
|
+
|
318
|
+
/** @inheritDoc */
|
319
|
+
VirtualizedLayoutGrid.prototype.isRowVisible = function (index) {
|
320
|
+
return this._grid.isRowVisible(index - this._firstIndex);
|
321
|
+
};
|
322
|
+
/** @inheritDoc */
|
323
|
+
VirtualizedLayoutGrid.prototype.hideRow = function (index, val) {
|
324
|
+
return this._grid.hideRow(index - this._firstIndex, val);
|
325
|
+
};
|
326
|
+
|
327
|
+
/** @inheritDoc */
|
328
|
+
VirtualizedLayoutGrid.prototype.getMinimumColumnWidth = function (index) {
|
329
|
+
return this._grid.getMinimumColumnWidth(index);
|
330
|
+
};
|
331
|
+
/** @inheritDoc */
|
332
|
+
VirtualizedLayoutGrid.prototype.setMinimumColumnWidth = function (index, val) {
|
333
|
+
return this._grid.setMinimumColumnWidth(index, val);
|
334
|
+
};
|
335
|
+
|
336
|
+
/** @inheritDoc */
|
337
|
+
VirtualizedLayoutGrid.prototype.getMinimumRowHeight = function (index) {
|
338
|
+
return this._layoutY.getMinimumLaneSize(index);
|
339
|
+
};
|
340
|
+
/** @inheritDoc */
|
341
|
+
VirtualizedLayoutGrid.prototype.setMinimumRowHeight = function (index, val) {
|
342
|
+
return false;
|
343
|
+
};
|
344
|
+
|
345
|
+
/** @inheritDoc */
|
346
|
+
VirtualizedLayoutGrid.prototype.getCellLeft = function (indexX) {
|
347
|
+
return this._grid.getCellLeft(indexX);
|
348
|
+
};
|
349
|
+
/** @inheritDoc */
|
350
|
+
VirtualizedLayoutGrid.prototype.getCellTop = function (indexY) {
|
351
|
+
return this._layoutY.getLaneStart(indexY);
|
352
|
+
};
|
353
|
+
/** @inheritDoc */
|
354
|
+
VirtualizedLayoutGrid.prototype.getCellWidth = function (indexX, indexY) {
|
355
|
+
return this._grid.getCellWidth(indexX, 0); //In virtualization, every cell in the same column has the same width
|
356
|
+
};
|
357
|
+
/** @inheritDoc */
|
358
|
+
VirtualizedLayoutGrid.prototype.getCellHeight = function (indexX, indexY) {
|
359
|
+
return this._layoutY.getLaneSize(indexY); //In virtualization, every cell in the same row has the same height
|
360
|
+
};
|
361
|
+
|
362
|
+
/** @inheritDoc */
|
363
|
+
VirtualizedLayoutGrid.prototype.hasCellSpan = function () {
|
364
|
+
return this._grid.hasCellSpan();
|
365
|
+
};
|
366
|
+
//Not support row spanning in virtualization
|
367
|
+
/** @inheritDoc */
|
368
|
+
VirtualizedLayoutGrid.prototype.getCellRowSpan = function (indexX, indexY) {
|
369
|
+
return this._grid.getCellRowSpan(indexX, indexY - this._firstIndex);
|
370
|
+
};
|
371
|
+
/** @inheritDoc */
|
372
|
+
VirtualizedLayoutGrid.prototype.setCellRowSpan = function (indexX, indexY, rowSpan) {
|
373
|
+
return this._grid.setCellRowSpan(indexX, indexY - this._firstIndex, rowSpan);
|
374
|
+
};
|
375
|
+
/** @inheritDoc */
|
376
|
+
VirtualizedLayoutGrid.prototype.getCellColSpan = function (indexX, indexY) {
|
377
|
+
return this._grid.getCellColSpan(indexX, indexY - this._firstIndex);
|
378
|
+
};
|
379
|
+
/** @inheritDoc */
|
380
|
+
VirtualizedLayoutGrid.prototype.setCellColSpan = function (indexX, indexY, colSpan) {
|
381
|
+
return this._grid.setCellColSpan(indexX, indexY - this._firstIndex, colSpan);
|
382
|
+
};
|
383
|
+
/** @inheritDoc */
|
384
|
+
VirtualizedLayoutGrid.prototype.clearCellSpans = function () {
|
385
|
+
return this._grid.clearCellSpans();
|
386
|
+
};
|
387
|
+
/** @inheritDoc */
|
388
|
+
VirtualizedLayoutGrid.prototype.clearColumnSpans = function (indexX) {
|
389
|
+
return this._grid.clearColumnSpans(indexX);
|
390
|
+
};
|
391
|
+
|
392
|
+
/** @inheritDoc */
|
393
|
+
VirtualizedLayoutGrid.prototype.clearColumnCustomizations = function () {
|
394
|
+
this._grid.clearColumnCustomizations();
|
395
|
+
};
|
396
|
+
/** @inheritDoc */
|
397
|
+
VirtualizedLayoutGrid.prototype.clearRowCustomizations = function () {
|
398
|
+
this._layoutY.clearLaneCustomizations();
|
399
|
+
this._grid.clearRowCustomizations();
|
400
|
+
};
|
401
|
+
|
402
|
+
/** @inheritDoc */
|
403
|
+
VirtualizedLayoutGrid.prototype.getColumnScalability = function (indexX) {
|
404
|
+
return this._grid.getColumnScalability(indexX);
|
405
|
+
};
|
406
|
+
/** @inheritDoc */
|
407
|
+
VirtualizedLayoutGrid.prototype.setColumnScalability = function (indexX, val) {
|
408
|
+
return this._grid.setColumnScalability(indexX, val);
|
409
|
+
};
|
410
|
+
|
411
|
+
/** @inheritDoc */
|
412
|
+
VirtualizedLayoutGrid.prototype.getRowScalability = function (indexY) {
|
413
|
+
return this._layoutY.getLaneScalability(indexY);
|
414
|
+
};
|
415
|
+
/** @inheritDoc */
|
416
|
+
VirtualizedLayoutGrid.prototype.setRowScalability = function (index, val) {
|
417
|
+
return false;
|
418
|
+
};
|
419
|
+
|
420
|
+
/** @inheritDoc */
|
421
|
+
VirtualizedLayoutGrid.prototype.getCell = function (indexX, indexY, opt_includeSpan) {
|
422
|
+
return this._grid.getCell(indexX, indexY - this._firstIndex, opt_includeSpan);
|
423
|
+
};
|
424
|
+
/** @inheritDoc */
|
425
|
+
VirtualizedLayoutGrid.prototype.getCellContent = function (indexX, indexY) {
|
426
|
+
return this._grid.getCellContent(indexX, indexY - this._firstIndex);
|
427
|
+
};
|
428
|
+
/** @inheritDoc */
|
429
|
+
VirtualizedLayoutGrid.prototype.setCellContent = function (indexX, indexY, data) {
|
430
|
+
return this._grid.setCellContent(indexX, indexY - this._firstIndex, data);
|
431
|
+
};
|
432
|
+
|
433
|
+
/** @inheritDoc */
|
434
|
+
VirtualizedLayoutGrid.prototype.getColumnCount = function () {
|
435
|
+
return this._grid.getColumnCount();
|
436
|
+
};
|
437
|
+
/** @inheritDoc */
|
438
|
+
VirtualizedLayoutGrid.prototype.setColumnCount = function (val) {
|
439
|
+
this._grid.setColumnCount(val);
|
440
|
+
};
|
441
|
+
|
442
|
+
/** @inheritDoc */
|
443
|
+
VirtualizedLayoutGrid.prototype.getRowCount = function () {
|
444
|
+
return this._layoutY.getLaneCount();
|
445
|
+
};
|
446
|
+
/** @inheritDoc */
|
447
|
+
VirtualizedLayoutGrid.prototype.setRowCount = function (val, noBinding) {
|
448
|
+
let prevCount = this._layoutY.getLaneCount();
|
449
|
+
if(prevCount !== val){
|
450
|
+
this._layoutY.setLaneCount(val);
|
451
|
+
if(this._tempRowHeights){
|
452
|
+
this._tempRowHeights.length = val;
|
453
|
+
}
|
454
|
+
this._element.style.height = this._layoutY.getTrackSize() + "px";
|
455
|
+
this._requestUpdatingRowBounds();
|
456
|
+
//After rowCountChanged fires, virtualizer will update virtual row count if
|
457
|
+
//the range of virtual layout changed.
|
458
|
+
this._dispatch("rowCountChanged", { "rowCount": val, "prevCount": prevCount, "noBinding": noBinding });
|
459
|
+
}
|
460
|
+
};
|
461
|
+
/** @inheritDoc */
|
462
|
+
VirtualizedLayoutGrid.prototype.getVisibleRowCount = function () {
|
463
|
+
return this.getRowCount();
|
464
|
+
};
|
465
|
+
/** @inheritDoc */
|
466
|
+
VirtualizedLayoutGrid.prototype.addRow = function (val) {
|
467
|
+
if (val <= 0) { return; }
|
468
|
+
if (this._grid.getColumnCount() <= 0) {
|
469
|
+
console.log("WARNING: Row cannot be added, unless at least one column is added");
|
470
|
+
return;
|
471
|
+
}
|
472
|
+
this.setRowCount(this._layoutY.getLaneCount() + val);
|
473
|
+
};
|
474
|
+
/** @inheritDoc */
|
475
|
+
VirtualizedLayoutGrid.prototype.removeRow = function (val) {
|
476
|
+
if (val <= 0) { return; }
|
477
|
+
let rowCount = this._layoutY.getLaneCount();
|
478
|
+
if (val > rowCount) { val = rowCount; }
|
479
|
+
this.setRowCount(rowCount - val);
|
480
|
+
};
|
481
|
+
|
482
|
+
/** @inheritDoc */
|
483
|
+
VirtualizedLayoutGrid.prototype.setBorders = function (lft, top, rgt, btm) {
|
484
|
+
this._grid.setBorders(lft, top, rgt, btm);
|
485
|
+
};
|
486
|
+
/** @inheritDoc */
|
487
|
+
VirtualizedLayoutGrid.prototype.getColumnStyle = function (colIndex, styleName) {
|
488
|
+
return this._grid.getColumnStyle(colIndex, styleName);
|
489
|
+
};
|
490
|
+
/** @inheritDoc */
|
491
|
+
VirtualizedLayoutGrid.prototype.setColumnStyle = function (colIndex, styleName, value) {
|
492
|
+
this._grid.setColumnStyle(colIndex, styleName, value);
|
493
|
+
};
|
494
|
+
|
495
|
+
/** @inheritDoc */
|
496
|
+
VirtualizedLayoutGrid.prototype.enableColumnClass = function (colIndex, className, enabled) {
|
497
|
+
this._grid.enableColumnClass(colIndex, className, enabled);
|
498
|
+
};
|
499
|
+
/** @inheritDoc */
|
500
|
+
VirtualizedLayoutGrid.prototype.hasColumnClass = function (colIndex, className) {
|
501
|
+
return this._grid.hasColumnClass(colIndex, className);
|
502
|
+
};
|
503
|
+
/** @inheritDoc */
|
504
|
+
VirtualizedLayoutGrid.prototype.enableRowClass = function (rowIndex, className, enabled) {
|
505
|
+
this._grid.enableRowClass(rowIndex - this._firstIndex, className, enabled);
|
506
|
+
};
|
507
|
+
/** @inheritDoc */
|
508
|
+
VirtualizedLayoutGrid.prototype.setRowStyle = function (rowIndex, styleName, value, enabled) {
|
509
|
+
this._grid.setRowStyle(rowIndex - this._firstIndex, styleName, value, enabled);
|
510
|
+
};
|
511
|
+
|
512
|
+
/** @inheritDoc */
|
513
|
+
VirtualizedLayoutGrid.prototype.getContentWidth = function () {
|
514
|
+
return this._grid.getContentWidth();
|
515
|
+
};
|
516
|
+
/** @inheritDoc */
|
517
|
+
VirtualizedLayoutGrid.prototype.getContentHeight = function () {
|
518
|
+
return this._layoutY.getTrackSize();
|
519
|
+
};
|
520
|
+
|
521
|
+
/** @inheritDoc */
|
522
|
+
VirtualizedLayoutGrid.prototype.getCellsByRowIndex = function(rowIndex) {
|
523
|
+
return this._grid.getCellsByRowIndex(rowIndex - this._firstIndex);
|
524
|
+
};
|
525
|
+
|
526
|
+
/** @inheritDoc */
|
527
|
+
VirtualizedLayoutGrid.prototype.disableHorizontalGridLine = function (opt_bool) {
|
528
|
+
this._grid.disableHorizontalGridLine(opt_bool);
|
529
|
+
};
|
530
|
+
/** @inheritDoc */
|
531
|
+
VirtualizedLayoutGrid.prototype.disableVerticalGridLine = function (opt_bool) {
|
532
|
+
this._grid.disableVerticalGridLine(opt_bool);
|
533
|
+
};
|
534
|
+
|
535
|
+
/** @inheritDoc */
|
536
|
+
VirtualizedLayoutGrid.prototype.enableShading = function (enabled) {
|
537
|
+
this._grid.enableShading(enabled);
|
538
|
+
};
|
539
|
+
|
540
|
+
/** @inheritDoc */
|
541
|
+
VirtualizedLayoutGrid.prototype.setTransposedShading = function (enabled) {
|
542
|
+
this._grid.setTransposedShading(enabled);
|
543
|
+
};
|
544
|
+
|
545
|
+
/** @inheritDoc */
|
546
|
+
VirtualizedLayoutGrid.prototype.enableRowHighlighting = function (opt_bool) {
|
547
|
+
this._grid.enableRowHighlighting(opt_bool);
|
548
|
+
};
|
549
|
+
|
550
|
+
/** @inheritDoc */
|
551
|
+
VirtualizedLayoutGrid.prototype.getRowHighlight = function () {
|
552
|
+
let index = this._grid.getRowHighlight();
|
553
|
+
if(index >= 0){
|
554
|
+
index += this._firstIndex;
|
555
|
+
}
|
556
|
+
return index;
|
557
|
+
};
|
558
|
+
|
559
|
+
/** @inheritDoc */
|
560
|
+
VirtualizedLayoutGrid.prototype.setRowHighlight = function (rowIndex) {
|
561
|
+
let prevIndex = this._grid.getRowHighlight();
|
562
|
+
this._grid.setRowHighlight(rowIndex - this._firstIndex);
|
563
|
+
|
564
|
+
if (this._hasListener("rowHighlighted")) {
|
565
|
+
rowIndex = this._grid.getRowHighlight();
|
566
|
+
|
567
|
+
this._dispatch("rowHighlighted", {
|
568
|
+
"prevRowIndex": (prevIndex >= 0) ? prevIndex + this._firstIndex : prevIndex,
|
569
|
+
"rowIndex": (rowIndex >= 0) ? rowIndex + this._firstIndex : rowIndex
|
570
|
+
});
|
571
|
+
}
|
572
|
+
};
|
573
|
+
|
574
|
+
/** @inheritDoc */
|
575
|
+
VirtualizedLayoutGrid.prototype.getSelectedRows = function () {
|
576
|
+
if(this.getSelectedRowCount() > 0){
|
577
|
+
return this._selectionList.getAllSelections();
|
578
|
+
}
|
579
|
+
return null;
|
580
|
+
};
|
581
|
+
/** @inheritDoc */
|
582
|
+
VirtualizedLayoutGrid.prototype.getSelectedRowCount = function () {
|
583
|
+
return this._selectionList.getSelectionCount();
|
584
|
+
};
|
585
|
+
|
586
|
+
/** @inheritDoc */
|
587
|
+
VirtualizedLayoutGrid.prototype.isSelectedRow = function (at) {
|
588
|
+
return this._selectionList.getSelection(at);
|
589
|
+
};
|
590
|
+
|
591
|
+
/** @inheritDoc */
|
592
|
+
VirtualizedLayoutGrid.prototype.setSelectedRow = function (rowIndex, opt_selected) {
|
593
|
+
this._selectionList.setSelection(rowIndex, opt_selected);
|
594
|
+
|
595
|
+
let selected = this._selectionList.getSelection(rowIndex);
|
596
|
+
this._grid.setSelectedRow(rowIndex - this._firstIndex, selected);
|
597
|
+
|
598
|
+
if(selected) {
|
599
|
+
this._rowSelDirty = true;
|
600
|
+
this._initBoundLayer();
|
601
|
+
}
|
602
|
+
this._requestUpdatingRowBounds();
|
603
|
+
};
|
604
|
+
|
605
|
+
/** @inheritDoc */
|
606
|
+
VirtualizedLayoutGrid.prototype.selectSingleRow = function (rowIndex) {
|
607
|
+
this._selectionList.clearAllSelections();
|
608
|
+
this._grid.clearSelectedRows();
|
609
|
+
this.setSelectedRow(rowIndex);
|
610
|
+
};
|
611
|
+
/** @inheritDoc */
|
612
|
+
VirtualizedLayoutGrid.prototype.selectRowRange = function (rowIndex, length) {
|
613
|
+
this._selectionList.selectRange(rowIndex, length);
|
614
|
+
this._updateRowSelection();
|
615
|
+
this._rowSelDirty = true;
|
616
|
+
this._initBoundLayer();
|
617
|
+
this._requestUpdatingRowBounds();
|
618
|
+
};
|
619
|
+
/** @inheritDoc */
|
620
|
+
VirtualizedLayoutGrid.prototype.clearSelectedRows = function () {
|
621
|
+
let count = this._selectionList.clearAllSelections();
|
622
|
+
this._grid.clearSelectedRows();
|
623
|
+
this._requestUpdatingRowBounds(); // WARNING: Row bounds are not removed from the document immediately
|
624
|
+
return count;
|
625
|
+
};
|
626
|
+
/** @inheritDoc */
|
627
|
+
VirtualizedLayoutGrid.prototype.getFirstSelectedRow = function () {
|
628
|
+
return this._selectionList.getFirstSelectedIndex();
|
629
|
+
};
|
630
|
+
/** @inheritDoc */
|
631
|
+
VirtualizedLayoutGrid.prototype.getLastSelectedRow = function () {
|
632
|
+
return this._selectionList.getLastSelectedIndex();
|
633
|
+
};
|
634
|
+
/** @inheritDoc */
|
635
|
+
VirtualizedLayoutGrid.prototype.getRowAnchor = function () {
|
636
|
+
return this._selectionList.getSelectionAnchor();
|
637
|
+
};
|
638
|
+
/** @inheritDoc */
|
639
|
+
VirtualizedLayoutGrid.prototype.setRowAnchor = function (at) {
|
640
|
+
this._selectionList.setSelectionAnchor(at);
|
641
|
+
};
|
642
|
+
|
643
|
+
/** @inheritDoc */
|
644
|
+
VirtualizedLayoutGrid.prototype.activateColumn = function (colIndex, opt_bool) {
|
645
|
+
this._grid.activateColumn(colIndex, opt_bool);
|
646
|
+
};
|
647
|
+
/** @inheritDoc */
|
648
|
+
VirtualizedLayoutGrid.prototype.activateRows = function (from, to, updateRange) {
|
649
|
+
let maxLen = this._layoutY.getLaneCount();
|
650
|
+
if(!from) { from = this._rowOffset; }
|
651
|
+
if(!to && to !== 0) { to = from + maxLen; }
|
652
|
+
|
653
|
+
from -= this._rowOffset; // Convert to relative index
|
654
|
+
if(from < 0) { from = 0; }
|
655
|
+
to -= this._rowOffset; // Convert to relative index
|
656
|
+
if(to < 0) { to = 0; }
|
657
|
+
|
658
|
+
let prevLen = this._getInnerRowCount();
|
659
|
+
let pfi = this._firstIndex;
|
660
|
+
let fi = 0;
|
661
|
+
|
662
|
+
fi = from - (from & 1); // This is done to maintain zebra background color.
|
663
|
+
if (fi < 0) { fi = 0; }
|
664
|
+
else if (fi > maxLen) { fi = maxLen; }
|
665
|
+
|
666
|
+
let newLen = (to + (to & 1)) - fi;
|
667
|
+
if(newLen + 2 === prevLen) { // To remove unnecessary shrinking during scrolling
|
668
|
+
newLen = prevLen;
|
669
|
+
}
|
670
|
+
|
671
|
+
if(newLen < 0) { newLen = 0; }
|
672
|
+
else if(newLen + fi > maxLen) { newLen = maxLen - fi; }
|
673
|
+
|
674
|
+
this._firstIndex = fi;
|
675
|
+
let ei = fi + newLen;
|
676
|
+
|
677
|
+
// Re-position inner grid
|
678
|
+
let px = this._layoutY.getLaneStart(fi);
|
679
|
+
let gridElem = this._grid.getElement(); // GRID-347 Chrome 86 does not recognize top property of grand children
|
680
|
+
if(gridElem) {
|
681
|
+
gridElem.style.transform = px ? "translateY(" + px + "px)" : ""; // Replacement for this._grid.setTop(px);
|
682
|
+
gridElem.style.top = "";
|
683
|
+
this._reverter.start();
|
684
|
+
}
|
685
|
+
this._grid._onEnterDocument();
|
686
|
+
let force = false; // Forcing flag to update entire range
|
687
|
+
|
688
|
+
if (newLen !== prevLen) {
|
689
|
+
this._grid.setRowCount(newLen);
|
690
|
+
if(newLen > prevLen) { // New row is available. Fire event to render the cells.
|
691
|
+
let e = {};
|
692
|
+
e["prevRowIndex"] = fi + prevLen;
|
693
|
+
e["rowIndex"] = fi + newLen;
|
694
|
+
if(updateRange) {
|
695
|
+
e["noDataUpdate"] = true; // Data update will be triggered after this, so we notify grid not to update
|
696
|
+
}
|
697
|
+
this._dispatch("rowAvailable", e);
|
698
|
+
}
|
699
|
+
force = true; // Force update entire range
|
700
|
+
}
|
701
|
+
if(updateRange) { // Find actual update range
|
702
|
+
if(!force) {
|
703
|
+
// TODO: Check where to clearSelectedRows() more properly
|
704
|
+
this._grid.clearSelectedRows(); // Because row will be moving up and down, we need to clear the selection first
|
705
|
+
let pei = pfi + prevLen;
|
706
|
+
if(fi < pfi && pfi < ei && pei >= ei) {
|
707
|
+
this.moveRowsToTop(ei - pfi);
|
708
|
+
updateRange[0] = fi;
|
709
|
+
updateRange[1] = pfi;
|
710
|
+
} else if(pfi < fi && fi < pei && ei >= pei) {
|
711
|
+
this.moveRowsToTop(fi - pfi);
|
712
|
+
updateRange[0] = pei;
|
713
|
+
updateRange[1] = ei;
|
714
|
+
} else if(fi === pfi && ei === pei) {
|
715
|
+
updateRange[0] = 0;
|
716
|
+
updateRange[1] = 0;
|
717
|
+
} else {
|
718
|
+
force = true;
|
719
|
+
}
|
720
|
+
}
|
721
|
+
|
722
|
+
if(force) {
|
723
|
+
updateRange[0] = fi;
|
724
|
+
updateRange[1] = ei;
|
725
|
+
}
|
726
|
+
}
|
727
|
+
|
728
|
+
if(!this._layoutY.isHomogeneous()) { // Row heights need to be updated on each scrolling
|
729
|
+
this._grid._updateRowHeights(this._layoutY, fi); // TODO: Set height only for the actual update range
|
730
|
+
}
|
731
|
+
|
732
|
+
this._updateRowSelection();
|
733
|
+
};
|
734
|
+
/** @inheritDoc */
|
735
|
+
VirtualizedLayoutGrid.prototype.moveRowsToTop = function (numRows) {
|
736
|
+
this._grid.moveRowsToTop(numRows);
|
737
|
+
};
|
738
|
+
|
739
|
+
/** @inheritDoc */
|
740
|
+
VirtualizedLayoutGrid.prototype.getFirstIndexInView = function () {
|
741
|
+
return this._firstIndex;
|
742
|
+
};
|
743
|
+
|
744
|
+
/** @inheritDoc */
|
745
|
+
VirtualizedLayoutGrid.prototype.getLastIndexInView = function () {
|
746
|
+
let li = this._firstIndex + this._getInnerRowCount() - 1;
|
747
|
+
let core = this._grid._getContext();
|
748
|
+
let dv = core.getDataSource();
|
749
|
+
let actualLastIndex = dv ? dv.getRowCount() - 1 : -1;
|
750
|
+
if (li > actualLastIndex) { //Avoid incorrect index because the delay of row count synchronization after filtering
|
751
|
+
return actualLastIndex;
|
752
|
+
}
|
753
|
+
return li;
|
754
|
+
};
|
755
|
+
|
756
|
+
/** @inheritDoc */
|
757
|
+
VirtualizedLayoutGrid.prototype.isInCurrentView = function(index){
|
758
|
+
return (this._firstIndex <= index) && (index < this._firstIndex + this._getInnerRowCount());
|
759
|
+
};
|
760
|
+
|
761
|
+
/** @inheritDoc */
|
762
|
+
VirtualizedLayoutGrid.prototype.getFrozenLayout = function () {
|
763
|
+
return this._grid.getFrozenLayout();
|
764
|
+
};
|
765
|
+
/** @inheritDoc */
|
766
|
+
VirtualizedLayoutGrid.prototype.setFrozenLayout = function (bool) {
|
767
|
+
this._grid.setFrozenLayout(bool);
|
768
|
+
};
|
769
|
+
|
770
|
+
/** @inheritDoc */
|
771
|
+
VirtualizedLayoutGrid.prototype.getColumn = function (index) {
|
772
|
+
return this._grid.getColumn(index);
|
773
|
+
};
|
774
|
+
|
775
|
+
/** @inheritDoc */
|
776
|
+
VirtualizedLayoutGrid.prototype.insertColumn = function (index, opt_json) {
|
777
|
+
return this._grid.insertColumn(index, opt_json);
|
778
|
+
};
|
779
|
+
|
780
|
+
/** @inheritDoc */
|
781
|
+
VirtualizedLayoutGrid.prototype.removeColumnAt = function (index) {
|
782
|
+
return this._grid.removeColumnAt(index);
|
783
|
+
};
|
784
|
+
|
785
|
+
/** @inheritDoc */
|
786
|
+
VirtualizedLayoutGrid.prototype.moveColumn = function (from, to) {
|
787
|
+
this._grid.moveColumn(from, to);
|
788
|
+
};
|
789
|
+
|
790
|
+
/** @inheritDoc */
|
791
|
+
VirtualizedLayoutGrid.prototype.enableRowVirtualization = function (bool) { };
|
792
|
+
|
793
|
+
/** @inheritDoc */
|
794
|
+
VirtualizedLayoutGrid.prototype.enableColumnVirtualization = function (bool) {
|
795
|
+
this._grid.enableColumnVirtualization(bool);
|
796
|
+
};
|
797
|
+
|
798
|
+
/** @inheritDoc */
|
799
|
+
VirtualizedLayoutGrid.prototype.getColumnIndex = function (colElem) {
|
800
|
+
return this._grid.getColumnIndex(colElem);
|
801
|
+
};
|
802
|
+
/** @inheritDoc */
|
803
|
+
VirtualizedLayoutGrid.prototype.getCellIndex = function (colIndex, cellElem) {
|
804
|
+
let at = this._grid.getCellIndex(colIndex, cellElem);
|
805
|
+
if(at < 0) {
|
806
|
+
return -1;
|
807
|
+
}
|
808
|
+
return at + this._firstIndex;
|
809
|
+
};
|
810
|
+
|
811
|
+
/** @inheritDoc */
|
812
|
+
VirtualizedLayoutGrid.prototype.getIndex = function () {
|
813
|
+
return this._index;
|
814
|
+
};
|
815
|
+
/** @inheritDoc */
|
816
|
+
VirtualizedLayoutGrid.prototype.setIndex = function (index) {
|
817
|
+
this._index = index;
|
818
|
+
};
|
819
|
+
|
820
|
+
/** @inheritDoc */
|
821
|
+
VirtualizedLayoutGrid.prototype.setRowOffset = function(val){
|
822
|
+
this._rowOffset = val;
|
823
|
+
};
|
824
|
+
|
825
|
+
/** @inheritDoc */
|
826
|
+
VirtualizedLayoutGrid.prototype.getRowOffset = function(){
|
827
|
+
return this._rowOffset;
|
828
|
+
};
|
829
|
+
|
830
|
+
/** @public
|
831
|
+
* @ignore
|
832
|
+
*/
|
833
|
+
VirtualizedLayoutGrid.prototype.updateLayout = function () {
|
834
|
+
this._grid.updateLayout();
|
835
|
+
};
|
836
|
+
|
837
|
+
/** {@link ILayoutGrid#stretchCell}
|
838
|
+
* @inheritDoc */
|
839
|
+
VirtualizedLayoutGrid.prototype.stretchCell = function (cellRef, rowIndex, opt_stretching, onlyToTheRight) {
|
840
|
+
let stretchedCell = this._grid.stretchCell(
|
841
|
+
cellRef,
|
842
|
+
(rowIndex != null) ? rowIndex - this._firstIndex : null,
|
843
|
+
opt_stretching,
|
844
|
+
onlyToTheRight
|
845
|
+
);
|
846
|
+
|
847
|
+
if (stretchedCell){
|
848
|
+
let cellElem = stretchedCell.getElement();
|
849
|
+
if(rowIndex === 0) {
|
850
|
+
cellElem.classList.add("top");
|
851
|
+
} else {
|
852
|
+
cellElem.classList.remove("top");
|
853
|
+
}
|
854
|
+
}
|
855
|
+
return stretchedCell;
|
856
|
+
};
|
857
|
+
|
858
|
+
/** {@link ILayoutGrid#unstretchCell}
|
859
|
+
* @inheritDoc */
|
860
|
+
VirtualizedLayoutGrid.prototype.unstretchCell = function (cellRef, rowIndex) {
|
861
|
+
return this._grid.unstretchCell(
|
862
|
+
cellRef,
|
863
|
+
(rowIndex != null) ? rowIndex - this._firstIndex : null
|
864
|
+
);
|
865
|
+
};
|
866
|
+
/** {@link ILayoutGrid#unstretchAllCells}
|
867
|
+
* @inheritDoc */
|
868
|
+
VirtualizedLayoutGrid.prototype.unstretchAllCells = function () {
|
869
|
+
this._grid.unstretchAllCells();
|
870
|
+
};
|
871
|
+
|
872
|
+
/** {@link ILayoutGrid#getStretchedCell}
|
873
|
+
* @inheritDoc */
|
874
|
+
VirtualizedLayoutGrid.prototype.getStretchedCell = function (cellRef, rowIndex) {
|
875
|
+
return this._grid.getStretchedCell(
|
876
|
+
cellRef,
|
877
|
+
(rowIndex != null) ? rowIndex - this._firstIndex : null
|
878
|
+
);
|
879
|
+
};
|
880
|
+
/** {@link ILayoutGrid#getStretchedCells}
|
881
|
+
* @inheritDoc */
|
882
|
+
VirtualizedLayoutGrid.prototype.getStretchedCells = function () {
|
883
|
+
return this._grid.getStretchedCells();
|
884
|
+
};
|
885
|
+
/** {@link ILayoutGrid#updateStretchedCells}
|
886
|
+
* @inheritDoc */
|
887
|
+
VirtualizedLayoutGrid.prototype.updateStretchedCells = function () {
|
888
|
+
return this._grid.updateStretchedCells();
|
889
|
+
};
|
890
|
+
|
891
|
+
/** {@link ILayoutGrid#getColumnHost}
|
892
|
+
* @inheritDoc */
|
893
|
+
VirtualizedLayoutGrid.prototype.getColumnHost = function () {
|
894
|
+
return this._grid.getElement();
|
895
|
+
};
|
896
|
+
/** {@link ILayoutGrid#setHidingMethod}
|
897
|
+
* @inheritDoc */
|
898
|
+
VirtualizedLayoutGrid.prototype.setHidingMethod = function (method) {
|
899
|
+
this._grid.setHidingMethod(method);
|
900
|
+
};
|
901
|
+
/** {@link ILayoutGrid#getHidingMethod}
|
902
|
+
* @inheritDoc */
|
903
|
+
VirtualizedLayoutGrid.prototype.getHidingMethod = function () {
|
904
|
+
return this._grid.getHidingMethod();
|
905
|
+
};
|
906
|
+
/** {@link ILayoutGrid#setColumnVisibility}
|
907
|
+
* @inheritDoc */
|
908
|
+
VirtualizedLayoutGrid.prototype.setColumnVisibility = function (colIndex, bool, flag) {
|
909
|
+
return this._grid.setColumnVisibility(colIndex, bool, flag);
|
910
|
+
};
|
911
|
+
/** {@link ILayoutGrid#setColumnVisibility}
|
912
|
+
* @inheritDoc */
|
913
|
+
VirtualizedLayoutGrid.prototype.getRowLayout = function () { return this._layoutY; };
|
914
|
+
|
915
|
+
/** {@link ILayoutGrid#reserveRightSpace}
|
916
|
+
* @inheritDoc */
|
917
|
+
VirtualizedLayoutGrid.prototype.reserveRightSpace = function (size) {
|
918
|
+
return this._grid.reserveRightSpace(size);
|
919
|
+
};
|
920
|
+
/** {@link ILayoutGrid#reserveRightSpace}
|
921
|
+
* @inheritDoc */
|
922
|
+
VirtualizedLayoutGrid.prototype.getReservedSpace = function () {
|
923
|
+
return this._grid.getReservedSpace();
|
924
|
+
};
|
925
|
+
/** {@link ILayoutGrid#getComputedStyle}
|
926
|
+
* @inheritDoc */
|
927
|
+
VirtualizedLayoutGrid.prototype.getComputedStyle = function () {
|
928
|
+
return this._grid.getComputedStyle();
|
929
|
+
};
|
930
|
+
/** {@link ILayoutGrid#isColumnActive}
|
931
|
+
* @inheritDoc
|
932
|
+
*/
|
933
|
+
VirtualizedLayoutGrid.prototype.isColumnActive = function (colIndex) {
|
934
|
+
return this._grid.isColumnActive(colIndex);
|
935
|
+
};
|
936
|
+
/** {@link ILayoutGrid#setRowAttributes}
|
937
|
+
* @inheritDoc
|
938
|
+
*/
|
939
|
+
VirtualizedLayoutGrid.prototype.setRowAttributes = function (rowIndex, func) {
|
940
|
+
return this._grid.setRowAttributes(rowIndex, func);
|
941
|
+
};
|
942
|
+
/** @public
|
943
|
+
* @param {number} rowIndex
|
944
|
+
* @return {Object}
|
945
|
+
*/
|
946
|
+
VirtualizedLayoutGrid.prototype.getContextRow = function (rowIndex) {
|
947
|
+
return this._grid.getContextRow(rowIndex - this._firstIndex);
|
948
|
+
};
|
949
|
+
|
950
|
+
/** @public
|
951
|
+
* @param {number} colIndex
|
952
|
+
* @param {boolean=} selected
|
953
|
+
*/
|
954
|
+
VirtualizedLayoutGrid.prototype.selectColumn = function (colIndex, selected) {
|
955
|
+
this._grid.selectColumn(colIndex, selected);
|
956
|
+
};
|
957
|
+
/** @public
|
958
|
+
* @param {number} colIndex
|
959
|
+
* @return {boolean}
|
960
|
+
*/
|
961
|
+
VirtualizedLayoutGrid.prototype.isSelectedColumn = function (colIndex) {
|
962
|
+
return this._grid.isSelectedColumn(colIndex);
|
963
|
+
};
|
964
|
+
/** @public
|
965
|
+
* @param {number} colIndex
|
966
|
+
* @param {number} rowIndex
|
967
|
+
* @param {boolean=} selected
|
968
|
+
*/
|
969
|
+
VirtualizedLayoutGrid.prototype.selectCell = function (colIndex, rowIndex, selected) {
|
970
|
+
this._grid.selectCell(colIndex, rowIndex - this._firstIndex, selected);
|
971
|
+
};
|
972
|
+
/** @public
|
973
|
+
* @param {number} colIndex
|
974
|
+
* @param {number} rowIndex
|
975
|
+
* @param {number} width
|
976
|
+
* @param {number} height
|
977
|
+
*/
|
978
|
+
VirtualizedLayoutGrid.prototype.setCellBounds = function (colIndex, rowIndex, width, height) {
|
979
|
+
let boundLayer = this._initBoundLayer();
|
980
|
+
let cellBoundPainter = this._cellBoundPainter;
|
981
|
+
if(!cellBoundPainter) {
|
982
|
+
cellBoundPainter = this._cellBoundPainter = new CellBoundPainter({
|
983
|
+
boundLayer: boundLayer,
|
984
|
+
layoutX: this.getHorizontalLayout(),
|
985
|
+
layoutY: this._layoutY,
|
986
|
+
hscrollbar: this._hscrollbar,
|
987
|
+
calculateColumnBounds: this.calculateColumnBounds.bind(this)
|
988
|
+
});
|
989
|
+
}
|
990
|
+
|
991
|
+
let colCount = this.getColumnCount();
|
992
|
+
cellBoundPainter.setCellBounds(colIndex, rowIndex, width, height, colCount);
|
993
|
+
};
|
994
|
+
/** @public
|
995
|
+
* @ignore
|
996
|
+
* @return {!TrackLayout}
|
997
|
+
*/
|
998
|
+
VirtualizedLayoutGrid.prototype.getHorizontalLayout = function () {
|
999
|
+
return this._grid.getHorizontalLayout();
|
1000
|
+
};
|
1001
|
+
/** @public
|
1002
|
+
* @ignore
|
1003
|
+
* @param {number} lftIdx
|
1004
|
+
* @param {number} rgtIdx Inclusive index
|
1005
|
+
* @param {!Array.<number>} outPositions
|
1006
|
+
* @param {!Array.<boolean>} outNoBorders
|
1007
|
+
*/
|
1008
|
+
VirtualizedLayoutGrid.prototype.calculateColumnBounds = function (lftIdx, rgtIdx, outPositions, outNoBorders) {
|
1009
|
+
this._grid.calculateColumnBounds(lftIdx, rgtIdx, outPositions, outNoBorders);
|
1010
|
+
};
|
1011
|
+
/** @public
|
1012
|
+
* @ignore
|
1013
|
+
* @param {!Array.<Array>} posAry Left and right bound positions in pixel
|
1014
|
+
* @param {!Array.<Array>} noBorderAry Boolean values indicating existence of left and right CSS borders
|
1015
|
+
* @param {number=} topPx Top position of bound
|
1016
|
+
*/
|
1017
|
+
VirtualizedLayoutGrid.prototype.updateColumnBounds = function (posAry, noBorderAry, topPx) {
|
1018
|
+
this._grid.updateColumnBounds(posAry, noBorderAry, topPx);
|
1019
|
+
this._updateRowBounds();
|
1020
|
+
};
|
1021
|
+
/** @public
|
1022
|
+
* @ignore
|
1023
|
+
*/
|
1024
|
+
VirtualizedLayoutGrid.prototype.updateColumnSeparators = function () {
|
1025
|
+
this._grid.updateColumnSeparators();
|
1026
|
+
};
|
1027
|
+
/** @private
|
1028
|
+
* @return {Element}
|
1029
|
+
*/
|
1030
|
+
VirtualizedLayoutGrid.prototype._initBoundLayer = function () {
|
1031
|
+
let boundLayer = this._boundLayer;
|
1032
|
+
if(!boundLayer) {
|
1033
|
+
boundLayer = this._boundLayer = document.createElement("div");
|
1034
|
+
boundLayer.className = "cover-layer";
|
1035
|
+
this._element.appendChild(boundLayer);
|
1036
|
+
}
|
1037
|
+
return boundLayer;
|
1038
|
+
};
|
1039
|
+
/** @private
|
1040
|
+
*/
|
1041
|
+
VirtualizedLayoutGrid.prototype._requestUpdatingRowBounds = function () {
|
1042
|
+
if(!this._rowBoundTimer) {
|
1043
|
+
this._rowBoundTimer = setTimeout(this._updateRowBounds, 10);
|
1044
|
+
}
|
1045
|
+
};
|
1046
|
+
/** @private
|
1047
|
+
*/
|
1048
|
+
VirtualizedLayoutGrid.prototype._updateRowBounds = function () {
|
1049
|
+
this._rowBoundTimer = 0;
|
1050
|
+
|
1051
|
+
let cellBoundPainter = this._cellBoundPainter;
|
1052
|
+
if(cellBoundPainter) {
|
1053
|
+
cellBoundPainter.updateCellBounds();
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
if(!this._rowSelDirty) {
|
1057
|
+
return;
|
1058
|
+
}
|
1059
|
+
let rbs = this._rowBounds;
|
1060
|
+
let rbc = this._rowBoundCache;
|
1061
|
+
if(!rbs) {
|
1062
|
+
rbs = this._rowBounds = [];
|
1063
|
+
}
|
1064
|
+
if(!rbc) {
|
1065
|
+
rbc = this._rowBoundCache = [];
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
let selList = this._selectionList;
|
1069
|
+
let rowCount = this._layoutY.getLaneCount();
|
1070
|
+
selList.deselectFrom(rowCount); // TODO: move this to setRowCount
|
1071
|
+
|
1072
|
+
let selRanges = selList.getConnectedRanges();
|
1073
|
+
let rangeCount = selRanges.length;
|
1074
|
+
let i;
|
1075
|
+
let pn = null; // parentNode
|
1076
|
+
let rowBound = null;
|
1077
|
+
|
1078
|
+
// Remove unused bounds from document
|
1079
|
+
let activeCount = rbs.length;
|
1080
|
+
for(i = rangeCount; i < activeCount; ++i) {
|
1081
|
+
rowBound = rbs[i];
|
1082
|
+
pn = rowBound.parentNode;
|
1083
|
+
if(pn) {
|
1084
|
+
pn.removeChild(rowBound);
|
1085
|
+
}
|
1086
|
+
}
|
1087
|
+
rbs.length = activeCount = rangeCount;
|
1088
|
+
|
1089
|
+
if(!rangeCount) {
|
1090
|
+
let selCount = selList.getSelectionCount();
|
1091
|
+
if(!selCount) {
|
1092
|
+
this._rowSelDirty = false;
|
1093
|
+
}
|
1094
|
+
return;
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
// Prepare shared parameters
|
1098
|
+
let scrollLeft = 0;
|
1099
|
+
let pinnedLftCount = 0;
|
1100
|
+
let pinnedRgtCount = 0;
|
1101
|
+
let endOfScroll = false;
|
1102
|
+
if(this._hscrollbar) {
|
1103
|
+
scrollLeft = this._hscrollbar.getScrollLeft();
|
1104
|
+
pinnedLftCount = this._hscrollbar.getPinnedLeftColumnCount();
|
1105
|
+
pinnedRgtCount = this._hscrollbar.getPinnedRightColumnCount();
|
1106
|
+
endOfScroll = this._hscrollbar.isEndOfHorizontalScroll();
|
1107
|
+
}
|
1108
|
+
let noLeftBound = !pinnedLftCount && scrollLeft > 0;
|
1109
|
+
let noRightBound = !pinnedRgtCount && !endOfScroll;
|
1110
|
+
let boundWidth = this._grid._getViewSize();
|
1111
|
+
|
1112
|
+
// Create row bound elements based on number of selection ranges
|
1113
|
+
for(i = 0; i < rangeCount; ++i) {
|
1114
|
+
let pair = selRanges[i];
|
1115
|
+
let topIdx = pair[0];
|
1116
|
+
let btmIdx = pair[1]; // Inclusive
|
1117
|
+
let topPx = this._layoutY.getLaneStart(topIdx);
|
1118
|
+
let btmPx = this._layoutY.getLaneEnd(btmIdx);
|
1119
|
+
|
1120
|
+
rowBound = rbc[i];
|
1121
|
+
if(!rowBound) {
|
1122
|
+
rowBound = rbc[i] = document.createElement("div");
|
1123
|
+
rowBound.className = "selection-bound";
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
rowBound.style.top = topPx + "px";
|
1127
|
+
rowBound.style.height = (btmPx - topPx) + "px";
|
1128
|
+
rowBound.style.width = boundWidth + "px";
|
1129
|
+
|
1130
|
+
rowBound.classList.toggle("no-left-bound", noLeftBound);
|
1131
|
+
rowBound.classList.toggle("no-right-bound", noRightBound);
|
1132
|
+
|
1133
|
+
if(this._boundLayer) {
|
1134
|
+
if(!rbs[i]) {
|
1135
|
+
rbs[i] = rowBound;
|
1136
|
+
this._boundLayer.appendChild(rowBound);
|
1137
|
+
}
|
1138
|
+
}
|
1139
|
+
}
|
1140
|
+
};
|
1141
|
+
//#endregion public methods
|
1142
|
+
|
1143
|
+
//#region ====== Private methods ======//
|
1144
|
+
/** @private
|
1145
|
+
* @return {number}
|
1146
|
+
*/
|
1147
|
+
VirtualizedLayoutGrid.prototype._getInnerRowCount = function () {
|
1148
|
+
return this._grid.getRowCount();
|
1149
|
+
};
|
1150
|
+
|
1151
|
+
/** @private */
|
1152
|
+
VirtualizedLayoutGrid.prototype._updateRowSelection = function () {
|
1153
|
+
this._grid.clearSelectedRows();
|
1154
|
+
let sl = this._selectionList;
|
1155
|
+
let count = sl.getSelectionCount();
|
1156
|
+
if(count <= 0) { return; }
|
1157
|
+
|
1158
|
+
let r;
|
1159
|
+
let fi = this._firstIndex;
|
1160
|
+
let ei = fi + this._getInnerRowCount();
|
1161
|
+
if(count === 1) {
|
1162
|
+
r = sl.getFirstSelectedIndex();
|
1163
|
+
if (fi <= r && r < ei) {
|
1164
|
+
this._grid.setSelectedRow(r - fi, true);
|
1165
|
+
}
|
1166
|
+
} else {
|
1167
|
+
if(count >= ei - fi) {
|
1168
|
+
for(r = fi; r < ei; ++r) {
|
1169
|
+
if(sl.getSelection(r)) {
|
1170
|
+
this._grid.setSelectedRow(r - fi, true);
|
1171
|
+
}
|
1172
|
+
}
|
1173
|
+
} else {
|
1174
|
+
let selections = sl.getAllSelections();
|
1175
|
+
for(let i = 0; i < count; ++i){
|
1176
|
+
r = selections[i];
|
1177
|
+
if (fi <= r && r < ei) {
|
1178
|
+
this._grid.setSelectedRow(r - fi, true);
|
1179
|
+
}
|
1180
|
+
}
|
1181
|
+
}
|
1182
|
+
}
|
1183
|
+
};
|
1184
|
+
|
1185
|
+
/** @private
|
1186
|
+
* @param {number} from
|
1187
|
+
* @param {number} to
|
1188
|
+
* @return {boolean}
|
1189
|
+
*/
|
1190
|
+
VirtualizedLayoutGrid.prototype._dispatchRowHeightChangedEvent = function (from, to) {
|
1191
|
+
if (from >= to) { return false; }
|
1192
|
+
|
1193
|
+
let e = {};
|
1194
|
+
e["rowIndex"] = from;
|
1195
|
+
e["changeLength"] = to - from;
|
1196
|
+
this._dispatch("rowHeightChanged", e);
|
1197
|
+
return true;
|
1198
|
+
};
|
1199
|
+
/** @private
|
1200
|
+
*/
|
1201
|
+
VirtualizedLayoutGrid.prototype._onRestingPosition = function () {
|
1202
|
+
let gridElem = this._grid.getElement();
|
1203
|
+
if(gridElem) {
|
1204
|
+
let px = this._layoutY.getLaneStart(this._firstIndex);
|
1205
|
+
gridElem.style.transform = "";
|
1206
|
+
gridElem.style.top = px ? px + "px" : ""; // WORKAROUND: GRID-402
|
1207
|
+
}
|
1208
|
+
};
|
1209
|
+
/** @public
|
1210
|
+
* @ignore
|
1211
|
+
*/
|
1212
|
+
VirtualizedLayoutGrid.prototype._updateRightSpaceStyle = function() {
|
1213
|
+
this._grid._updateRightSpaceStyle();
|
1214
|
+
};
|
1215
|
+
/** @public
|
1216
|
+
* @ignore
|
1217
|
+
*/
|
1218
|
+
VirtualizedLayoutGrid.prototype._updateLayers = function() {
|
1219
|
+
this._grid._updateLayers();
|
1220
|
+
};
|
1221
|
+
/** @public
|
1222
|
+
* @ignore
|
1223
|
+
* @param {*} ctx
|
1224
|
+
*/
|
1225
|
+
VirtualizedLayoutGrid.prototype._setContext = function(ctx) {
|
1226
|
+
this._grid._setContext(ctx);
|
1227
|
+
};
|
1228
|
+
|
1229
|
+
/** @public
|
1230
|
+
* @ignore
|
1231
|
+
* @return {*} ctx
|
1232
|
+
*/
|
1233
|
+
VirtualizedLayoutGrid.prototype._getContext = function () {
|
1234
|
+
return this._grid._getContext();
|
1235
|
+
};
|
1236
|
+
//#endregion
|
1237
|
+
|
1238
|
+
VirtualizedLayoutGrid._proto = VirtualizedLayoutGrid.prototype;
|
1239
|
+
|
1240
|
+
export default VirtualizedLayoutGrid;
|
1241
|
+
export { VirtualizedLayoutGrid };
|