@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,713 @@
|
|
1
|
+
import Ext from "../../../tr-grid-util/es6/Ext.js";
|
2
|
+
import EventDispatcher from "../../../tr-grid-util/es6/EventDispatcher.js";
|
3
|
+
import { Segment, UNCATEGORY } from "./Segment.js";
|
4
|
+
|
5
|
+
/** @constructor
|
6
|
+
* @extends {EventDispatcher}
|
7
|
+
*/
|
8
|
+
let SegmentCollection = function() {
|
9
|
+
this._onSubSegmentAdded = this._onSubSegmentAdded.bind(this);
|
10
|
+
this._onSubSegmentRemoved = this._onSubSegmentRemoved.bind(this);
|
11
|
+
|
12
|
+
this._segments = {};
|
13
|
+
this._insertionList = [];
|
14
|
+
this._removalList = [];
|
15
|
+
|
16
|
+
this._shared = {
|
17
|
+
segments: this._segments,
|
18
|
+
childToSegment: {}, // child Id to segment Id
|
19
|
+
dirtyCollapsingState: false,
|
20
|
+
defaultCollapsing: false
|
21
|
+
};
|
22
|
+
};
|
23
|
+
Ext.inherits(SegmentCollection, EventDispatcher);
|
24
|
+
|
25
|
+
|
26
|
+
/** @type {!Object.<string, Segment>}
|
27
|
+
* @private
|
28
|
+
*/
|
29
|
+
SegmentCollection.prototype._segments; // Contains both segment and their sub segments
|
30
|
+
/** @type {number}
|
31
|
+
* @private
|
32
|
+
*/
|
33
|
+
SegmentCollection.prototype._segmentCount = 0;
|
34
|
+
/** @type {Object}
|
35
|
+
* @private
|
36
|
+
*/
|
37
|
+
SegmentCollection.prototype._collapsedRids = null;
|
38
|
+
/** @type {!Object}
|
39
|
+
* @private
|
40
|
+
*/
|
41
|
+
SegmentCollection.prototype._shared;
|
42
|
+
/** @type {Array.<Segment>}
|
43
|
+
* @private
|
44
|
+
*/
|
45
|
+
SegmentCollection.prototype._segmentList = null; // Array of main/root segments
|
46
|
+
/** @type {Array.<Segment>}
|
47
|
+
* @private
|
48
|
+
*/
|
49
|
+
SegmentCollection.prototype._insertionList = null; // Array of sub segments
|
50
|
+
/** @type {Array.<string>}
|
51
|
+
* @private
|
52
|
+
*/
|
53
|
+
SegmentCollection.prototype._removalList = null; // Array of sub segment ids
|
54
|
+
/** @type {boolean}
|
55
|
+
* @private
|
56
|
+
*/
|
57
|
+
SegmentCollection.prototype._classification = false;
|
58
|
+
/** @type {boolean}
|
59
|
+
* @private
|
60
|
+
*/
|
61
|
+
SegmentCollection.prototype._classifierChanged = false;
|
62
|
+
/** @type {Object.<string, number>}
|
63
|
+
* @private
|
64
|
+
*/
|
65
|
+
SegmentCollection.prototype._rowOrders = null;
|
66
|
+
|
67
|
+
/** @public
|
68
|
+
*/
|
69
|
+
SegmentCollection.prototype.dispose = function() {
|
70
|
+
this.removeAllSegments();
|
71
|
+
this.removeAllEventListeners();
|
72
|
+
this._collapsedRids = null;
|
73
|
+
this._segmentList = this._rowOrders = this._insertionList = this._removalList = null;
|
74
|
+
};
|
75
|
+
/** @public
|
76
|
+
* @param {string} rid
|
77
|
+
* @param {Array.<string>=} childRids Children of the newly added segment. This is a shorthand to addSegmentChildren method
|
78
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
79
|
+
*/
|
80
|
+
SegmentCollection.prototype.addSegment = function(rid, childRids) {
|
81
|
+
if(rid && !this._segments[rid]) {
|
82
|
+
let segment = this._segments[rid] = new Segment(rid, this._shared);
|
83
|
+
segment.addEventListener("subSegmentAdded", this._onSubSegmentAdded);
|
84
|
+
segment.addEventListener("subSegmentRemoved", this._onSubSegmentRemoved);
|
85
|
+
++this._segmentCount;
|
86
|
+
this.invalidateSegmentOrder(); // order could be changed
|
87
|
+
|
88
|
+
if(childRids && childRids.length) {
|
89
|
+
segment.addChildren(childRids);
|
90
|
+
}
|
91
|
+
return true;
|
92
|
+
}
|
93
|
+
return false;
|
94
|
+
};
|
95
|
+
/** @public
|
96
|
+
* @param {Array.<string>} rids
|
97
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
98
|
+
*/
|
99
|
+
SegmentCollection.prototype.addSegments = function(rids) {
|
100
|
+
let rowIds = Array.isArray(rids) ? rids : [rids];
|
101
|
+
let rowCount = rowIds.length;
|
102
|
+
let dirty = 0;
|
103
|
+
for(let i = 0; i < rowCount; ++i) {
|
104
|
+
dirty |= this.addSegment(rowIds[i]);
|
105
|
+
}
|
106
|
+
return dirty ? true : false;
|
107
|
+
};
|
108
|
+
/** @public
|
109
|
+
* @param {string} rid
|
110
|
+
* @return {boolean}
|
111
|
+
*/
|
112
|
+
SegmentCollection.prototype.containsSegment = function(rid) {
|
113
|
+
return this._segments[rid] ? true : false;
|
114
|
+
};
|
115
|
+
/** @public
|
116
|
+
* @param {string} rid
|
117
|
+
* @return {string} parent row id of this segmentation. If the parent row id for this segmentation cannot be found, return ""
|
118
|
+
*/
|
119
|
+
SegmentCollection.prototype.getParentRowId = function(rid) {
|
120
|
+
return this._shared.childToSegment[rid] || "";
|
121
|
+
};
|
122
|
+
/** @public
|
123
|
+
* @param {string} rid
|
124
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
125
|
+
*/
|
126
|
+
SegmentCollection.prototype.removeSegment = function(rid) {
|
127
|
+
let segment = this._segments[rid];
|
128
|
+
if(!segment) {
|
129
|
+
return false;
|
130
|
+
}
|
131
|
+
|
132
|
+
if(this._segmentCount <= 1) {
|
133
|
+
return this.removeAllSegments();
|
134
|
+
}
|
135
|
+
let subSegment = segment.isSubSegment();
|
136
|
+
if(subSegment) {
|
137
|
+
this._removalList.push(segment.getId());
|
138
|
+
}
|
139
|
+
let subSegIds = segment.getSubSegmentIds();
|
140
|
+
if(subSegIds) {
|
141
|
+
let len = subSegIds.length;
|
142
|
+
for(let i = 0; i < len; ++i) {
|
143
|
+
let subSegId = subSegIds[i];
|
144
|
+
if(this._segments[subSegId]) {
|
145
|
+
this._removalList.push(subSegId);
|
146
|
+
delete this._segments[subSegId]; // Slow
|
147
|
+
--this._segmentCount;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
if(!subSegment) {
|
152
|
+
let parentSeg = segment.getParent();
|
153
|
+
if(parentSeg) { // Move existing children to its parent
|
154
|
+
parentSeg.addChildren(segment.getChildIds()); // WARNING: passing private member
|
155
|
+
}
|
156
|
+
}
|
157
|
+
segment.removeAllChildren(); // This is important for updating childToSegment
|
158
|
+
segment.dispose();
|
159
|
+
|
160
|
+
delete this._segments[rid]; // Slow
|
161
|
+
--this._segmentCount;
|
162
|
+
this.invalidateSegmentOrder();
|
163
|
+
return true;
|
164
|
+
};
|
165
|
+
/** @public
|
166
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
167
|
+
*/
|
168
|
+
SegmentCollection.prototype.removeAllSegments = function() {
|
169
|
+
if(this._segmentCount) {
|
170
|
+
for(let key in this._segments) {
|
171
|
+
this._segments[key].dispose();
|
172
|
+
}
|
173
|
+
this._segments = {};
|
174
|
+
this._segmentCount = 0;
|
175
|
+
this._segmentList = this._rowOrders = null;
|
176
|
+
this._shared.segments = this._segments;
|
177
|
+
this._shared.childToSegment = {};
|
178
|
+
|
179
|
+
this._classification = this._classifierChanged = false;
|
180
|
+
return true;
|
181
|
+
}
|
182
|
+
return false;
|
183
|
+
};
|
184
|
+
|
185
|
+
/** @public
|
186
|
+
* @return {number}
|
187
|
+
*/
|
188
|
+
SegmentCollection.prototype.getSegmentCount = function() {
|
189
|
+
return this._segmentCount;
|
190
|
+
};
|
191
|
+
/** @public
|
192
|
+
* @param {string} rid
|
193
|
+
* @return {Segment}
|
194
|
+
*/
|
195
|
+
SegmentCollection.prototype.getSegment = function(rid) {
|
196
|
+
return this._segments[rid] || null;
|
197
|
+
};
|
198
|
+
/** @public
|
199
|
+
* @param {string} rid
|
200
|
+
* @return {Segment}
|
201
|
+
*/
|
202
|
+
SegmentCollection.prototype.getSegmentParent = function(rid) {
|
203
|
+
let parentRowId = this.getParentRowId(rid);
|
204
|
+
if(parentRowId) {
|
205
|
+
return this.getSegment(parentRowId);
|
206
|
+
}
|
207
|
+
return null;
|
208
|
+
};
|
209
|
+
/** @public
|
210
|
+
* @return {Object.<string, Segment>}
|
211
|
+
*/
|
212
|
+
SegmentCollection.prototype.getSegments = function() {
|
213
|
+
return this._segmentCount ? this._segments : null; // WARNING: Return private member
|
214
|
+
};
|
215
|
+
/** @public
|
216
|
+
* @return {!Array.<string>}
|
217
|
+
*/
|
218
|
+
SegmentCollection.prototype.getSegmentIds = function() {
|
219
|
+
return Object.keys(this._segments);
|
220
|
+
};
|
221
|
+
/** @public
|
222
|
+
* @param {!Function} comparer
|
223
|
+
* @return {!Array.<Segment>}
|
224
|
+
*/
|
225
|
+
SegmentCollection.prototype.sortSegments = function(comparer) {
|
226
|
+
let rootSegments = [];
|
227
|
+
let segmentSeparators = this._segments;
|
228
|
+
for(let rid in segmentSeparators) {
|
229
|
+
let segment = segmentSeparators[rid];
|
230
|
+
segment.sortSegments(comparer);
|
231
|
+
if(segment.isRootSegment()) {
|
232
|
+
rootSegments.push(segment);
|
233
|
+
}
|
234
|
+
}
|
235
|
+
rootSegments.sort(comparer);
|
236
|
+
this.invalidateSegmentOrder();
|
237
|
+
return rootSegments;
|
238
|
+
};
|
239
|
+
|
240
|
+
|
241
|
+
/** @public
|
242
|
+
* @param {Array.<string>} segmentIds
|
243
|
+
* @param {boolean=} bool
|
244
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
245
|
+
*/
|
246
|
+
SegmentCollection.prototype.collapseSegments = function(segmentIds, bool) {
|
247
|
+
let dirty = 0;
|
248
|
+
if(this._segmentCount) {
|
249
|
+
let len = segmentIds.length;
|
250
|
+
for (let i = 0; i < len; i++) {
|
251
|
+
let segment = this._segments[segmentIds[i]];
|
252
|
+
if(segment) {
|
253
|
+
dirty |= segment.collapse(bool);
|
254
|
+
}
|
255
|
+
}
|
256
|
+
}
|
257
|
+
return dirty ? true : false;
|
258
|
+
};
|
259
|
+
|
260
|
+
/** @public
|
261
|
+
* @param {string} segmentId
|
262
|
+
* @param {boolean=} bool
|
263
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
264
|
+
*/
|
265
|
+
SegmentCollection.prototype.collapseSegment = function(segmentId, bool) {
|
266
|
+
let segment = this._segments[segmentId];
|
267
|
+
if(segment) {
|
268
|
+
return segment.collapse(bool);
|
269
|
+
}
|
270
|
+
return false;
|
271
|
+
};
|
272
|
+
/** @public
|
273
|
+
* @param {string} segmentId
|
274
|
+
* @param {boolean=} bool
|
275
|
+
* @return {boolean}
|
276
|
+
*/
|
277
|
+
SegmentCollection.prototype.expandSegment = function(segmentId, bool) {
|
278
|
+
return this.collapseSegment(segmentId, bool === false);
|
279
|
+
};
|
280
|
+
/** @public
|
281
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
282
|
+
*/
|
283
|
+
SegmentCollection.prototype.expandAllSegments = function() {
|
284
|
+
if(this._segmentCount) {
|
285
|
+
let segmentSeparators = this._segments;
|
286
|
+
let dirty = 0;
|
287
|
+
for(let rid in segmentSeparators) {
|
288
|
+
dirty |= segmentSeparators[rid].expand();
|
289
|
+
}
|
290
|
+
if(dirty) {
|
291
|
+
return true;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
return false;
|
295
|
+
};
|
296
|
+
/** @public
|
297
|
+
* @param {string} segmentId
|
298
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
299
|
+
*/
|
300
|
+
SegmentCollection.prototype.isCollapsedSegment = function(segmentId) {
|
301
|
+
let segment = this._segments[segmentId];
|
302
|
+
if(segment) {
|
303
|
+
return segment.isCollapsed();
|
304
|
+
}
|
305
|
+
return false;
|
306
|
+
};
|
307
|
+
/** @public
|
308
|
+
* @return {Object}
|
309
|
+
*/
|
310
|
+
SegmentCollection.prototype.getCollapsedRows = function() {
|
311
|
+
if(this._shared.dirtyCollapsingState) {
|
312
|
+
this._shared.dirtyCollapsingState = false;
|
313
|
+
let collapsedRids = null;
|
314
|
+
let count = 0;
|
315
|
+
if(this._segmentCount) {
|
316
|
+
let segmentSeparators = this._segments;
|
317
|
+
collapsedRids = {};
|
318
|
+
for(let rid in segmentSeparators) {
|
319
|
+
let segment = segmentSeparators[rid];
|
320
|
+
if(segment.isRootSegment()) {
|
321
|
+
if(segment.getCollapsingStates(collapsedRids)) {
|
322
|
+
++count;
|
323
|
+
}
|
324
|
+
}
|
325
|
+
}
|
326
|
+
}
|
327
|
+
this._collapsedRids = count ? collapsedRids : null;
|
328
|
+
}
|
329
|
+
return this._collapsedRids;
|
330
|
+
};
|
331
|
+
|
332
|
+
/** Invalidate segment order cache
|
333
|
+
* @public
|
334
|
+
* @returns {boolean} Returns true if there is any change
|
335
|
+
*/
|
336
|
+
SegmentCollection.prototype.invalidateSegmentOrder = function() {
|
337
|
+
if(this._segmentList) {
|
338
|
+
this._segmentList = this._rowOrders = null;
|
339
|
+
return true;
|
340
|
+
}
|
341
|
+
return false;
|
342
|
+
};
|
343
|
+
/** @public
|
344
|
+
* @param {string} segmentId
|
345
|
+
* @param {string} rid
|
346
|
+
* @param {string=} dataId Row id for retrieving data
|
347
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
348
|
+
*/
|
349
|
+
SegmentCollection.prototype.addSegmentChild = function(segmentId, rid, dataId) {
|
350
|
+
let segment = this._segments[segmentId];
|
351
|
+
if(segment && !segment.isSubSegment()) {
|
352
|
+
// If a segment becomes a child of other segment, then the segment order needs to be recalculated
|
353
|
+
this.invalidateSegmentOrder();
|
354
|
+
return segment.addChild(rid, dataId);
|
355
|
+
}
|
356
|
+
return false;
|
357
|
+
};
|
358
|
+
/** @public
|
359
|
+
* @param {string} segmentId
|
360
|
+
* @param {Array.<string>} rids
|
361
|
+
* @param {Array.<string>=} dataIds Row ids for retrieving data
|
362
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
363
|
+
*/
|
364
|
+
SegmentCollection.prototype.addSegmentChildren = function(segmentId, rids, dataIds) {
|
365
|
+
let segment = this._segments[segmentId];
|
366
|
+
if(segment && !segment.isSubSegment()) {
|
367
|
+
// If a segment becomes a child of other segment, then the segment order needs to be recalculated
|
368
|
+
this.invalidateSegmentOrder();
|
369
|
+
return segment.addChildren(rids, dataIds);
|
370
|
+
}
|
371
|
+
return false;
|
372
|
+
};
|
373
|
+
/** This only works for immediate children of the specified segment
|
374
|
+
* @public
|
375
|
+
* @param {string} segmentId
|
376
|
+
* @param {string} rid
|
377
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
378
|
+
*/
|
379
|
+
SegmentCollection.prototype.containsSegmentChild = function(segmentId, rid) {
|
380
|
+
let segment = this._segments[segmentId];
|
381
|
+
if(segment) {
|
382
|
+
return segment.containsChild(rid);
|
383
|
+
}
|
384
|
+
return false;
|
385
|
+
};
|
386
|
+
/** @public
|
387
|
+
* @param {string} segmentId
|
388
|
+
* @param {string} rid
|
389
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
390
|
+
*/
|
391
|
+
SegmentCollection.prototype.removeSegmentChild = function(segmentId, rid) {
|
392
|
+
let segment = this._segments[segmentId];
|
393
|
+
if(segment) {
|
394
|
+
this.invalidateSegmentOrder();
|
395
|
+
return segment.removeChild(rid);
|
396
|
+
}
|
397
|
+
return false;
|
398
|
+
};
|
399
|
+
/** @public
|
400
|
+
* @param {string} segmentId
|
401
|
+
* @param {Array.<string>} rids
|
402
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
403
|
+
*/
|
404
|
+
SegmentCollection.prototype.removeSegmentChildren = function(segmentId, rids) {
|
405
|
+
let segment = this._segments[segmentId];
|
406
|
+
if(segment) {
|
407
|
+
this.invalidateSegmentOrder();
|
408
|
+
return segment.removeChildren(rids);
|
409
|
+
}
|
410
|
+
return false;
|
411
|
+
};
|
412
|
+
/** @public
|
413
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
414
|
+
*/
|
415
|
+
SegmentCollection.prototype.removeAllSegmentChildren = function() {
|
416
|
+
this._shared.childToSegment = {};
|
417
|
+
let segmentSeparators = this._segments;
|
418
|
+
let dirty = false;
|
419
|
+
for(let rid in segmentSeparators) {
|
420
|
+
let segment = segmentSeparators[rid];
|
421
|
+
if(segment.removeAllChildren()) {
|
422
|
+
dirty = true;
|
423
|
+
}
|
424
|
+
}
|
425
|
+
|
426
|
+
if(dirty) {
|
427
|
+
this.invalidateSegmentOrder();
|
428
|
+
this.classify(null);
|
429
|
+
}
|
430
|
+
|
431
|
+
return dirty;
|
432
|
+
};
|
433
|
+
|
434
|
+
/** @public
|
435
|
+
* @param {string} segmentId
|
436
|
+
* @param {Array.<string>} rids
|
437
|
+
*/
|
438
|
+
SegmentCollection.prototype.fillSegment = function(segmentId, rids) {
|
439
|
+
let rowCount = Array.isArray(rids) ? rids.length : 0;
|
440
|
+
if(!rowCount) {
|
441
|
+
return;
|
442
|
+
}
|
443
|
+
let segmentSeparators = this._segments;
|
444
|
+
let curSegment = segmentSeparators[segmentId];
|
445
|
+
if(curSegment && !curSegment.isSubSegment()) {
|
446
|
+
let segmentAt = rids.indexOf(segmentId);
|
447
|
+
if(segmentAt >= 0) {
|
448
|
+
curSegment.removeAllChildren();
|
449
|
+
for(let r = segmentAt + 1; r < rowCount; ++r) {
|
450
|
+
let rid = rids[r];
|
451
|
+
let segmentSeparator = segmentSeparators[rid];
|
452
|
+
if(segmentSeparator) {
|
453
|
+
break;
|
454
|
+
}
|
455
|
+
curSegment.addChild(rid);
|
456
|
+
}
|
457
|
+
this.invalidateSegmentOrder();
|
458
|
+
}
|
459
|
+
}
|
460
|
+
};
|
461
|
+
/** @public
|
462
|
+
* @param {Array.<string>} rids
|
463
|
+
* @return {boolean} Return true if the fill segments have changed, otherwise return false
|
464
|
+
*/
|
465
|
+
SegmentCollection.prototype.fillSegments = function(rids) {
|
466
|
+
this._shared.childToSegment = {};
|
467
|
+
|
468
|
+
let rowCount = Array.isArray(rids) ? rids.length : 0;
|
469
|
+
let segmentSeparators = this._segments;
|
470
|
+
let curSegment = null;
|
471
|
+
let change = false;
|
472
|
+
for(let r = 0; r < rowCount; ++r) {
|
473
|
+
let rid = rids[r];
|
474
|
+
let segmentSeparator = segmentSeparators[rid];
|
475
|
+
if(segmentSeparator && !segmentSeparator.isSubSegment()) {
|
476
|
+
curSegment = segmentSeparator;
|
477
|
+
curSegment.removeAllChildren();
|
478
|
+
} else if(curSegment && !curSegment.isSubSegment()) {
|
479
|
+
curSegment.addChild(rid);
|
480
|
+
change = true;
|
481
|
+
}
|
482
|
+
}
|
483
|
+
if(change) {
|
484
|
+
this.invalidateSegmentOrder();
|
485
|
+
}
|
486
|
+
return change;
|
487
|
+
};
|
488
|
+
|
489
|
+
/** The number represent maximum nested segments that can be created in a single segment
|
490
|
+
* @private
|
491
|
+
* @type {number}
|
492
|
+
* @constant
|
493
|
+
*/
|
494
|
+
const SEGMENT_STEP = 10000;
|
495
|
+
|
496
|
+
/** @public
|
497
|
+
* @param {Array.<string>} rids
|
498
|
+
* @param {boolean=} useCache=false If this is true, skip the calculation when there is already a cache for segment order
|
499
|
+
*/
|
500
|
+
SegmentCollection.prototype.calcSegmentOrder = function(rids, useCache) {
|
501
|
+
let segmentList = this._segmentList;
|
502
|
+
if(segmentList) {
|
503
|
+
if(useCache) {
|
504
|
+
return; // Use previous cache for segment order
|
505
|
+
}
|
506
|
+
segmentList.length = 0;
|
507
|
+
} else {
|
508
|
+
segmentList = this._segmentList = [];
|
509
|
+
}
|
510
|
+
|
511
|
+
this._rowOrders = {};
|
512
|
+
let rowOrders = this._rowOrders;
|
513
|
+
let segmentSeparators = this._segments;
|
514
|
+
let childToSegmentId = this._shared.childToSegment;
|
515
|
+
let prevSeg = UNCATEGORY;
|
516
|
+
let ridCount = rids ? rids.length : 0;
|
517
|
+
let order = 0;
|
518
|
+
for(let i = 0; i < ridCount; ++i) {
|
519
|
+
let rid = rids[i];
|
520
|
+
if(!childToSegmentId[rid]) {
|
521
|
+
let segment = segmentSeparators[rid];
|
522
|
+
let segmentId = (segment) ? segment.getId() : UNCATEGORY;
|
523
|
+
if(prevSeg !== segmentId) {
|
524
|
+
++order; // WARNING: Segments and sub segments start with 1
|
525
|
+
prevSeg = segmentId;
|
526
|
+
}
|
527
|
+
|
528
|
+
let rootOrder = order * SEGMENT_STEP;
|
529
|
+
rowOrders[rid] = rootOrder;
|
530
|
+
if(segment) {
|
531
|
+
this._segmentList.push(segment);
|
532
|
+
segment.setOrder(rootOrder);
|
533
|
+
segment.updateTreeStructure(0, rootOrder, rowOrders);
|
534
|
+
}
|
535
|
+
}
|
536
|
+
}
|
537
|
+
};
|
538
|
+
/** @public
|
539
|
+
* @param {!Array.<string>} rids Array of row ids
|
540
|
+
* @param {boolean=} partial Indicating that the given ids are not the whole list
|
541
|
+
* @return {Array.<number>} Returns Array of segment values, if there are at least one segment, otherwise returns null
|
542
|
+
*/
|
543
|
+
SegmentCollection.prototype.getSegmentValues = function(rids, partial) {
|
544
|
+
let rowCount = rids ? rids.length : 0;
|
545
|
+
if(!rowCount) {
|
546
|
+
return null;
|
547
|
+
}
|
548
|
+
let rowOrders = this._rowOrders;
|
549
|
+
if(!rowOrders) { // calcSegmentOrder has not been called (no cache detected)
|
550
|
+
return null;
|
551
|
+
}
|
552
|
+
|
553
|
+
let segmentValues = new Array(rowCount);
|
554
|
+
let highestVal = 0;
|
555
|
+
for(let r = 0; r < rowCount; ++r) {
|
556
|
+
let rid = rids[r];
|
557
|
+
let segmentVal = rowOrders[rid];
|
558
|
+
if(segmentVal != null) {
|
559
|
+
if(highestVal < segmentVal) {
|
560
|
+
highestVal = segmentVal;
|
561
|
+
}
|
562
|
+
} else {
|
563
|
+
segmentVal = highestVal ? highestVal + SEGMENT_STEP : 0;
|
564
|
+
}
|
565
|
+
segmentValues[r] = segmentVal;
|
566
|
+
}
|
567
|
+
|
568
|
+
return highestVal ? segmentValues : null;
|
569
|
+
};
|
570
|
+
/** @public
|
571
|
+
* @return {string}
|
572
|
+
*/
|
573
|
+
SegmentCollection.prototype.logStructure = function() {
|
574
|
+
let segmentList = this._segmentList;
|
575
|
+
if(!segmentList) {
|
576
|
+
return "";
|
577
|
+
}
|
578
|
+
let segmentCount = segmentList.length;
|
579
|
+
let lines = [];
|
580
|
+
for(let i = 0; i < segmentCount; ++i) {
|
581
|
+
let segment = segmentList[i];
|
582
|
+
if(segment.isRootSegment()) {
|
583
|
+
segment.log(lines);
|
584
|
+
}
|
585
|
+
}
|
586
|
+
|
587
|
+
return lines.join("\n");
|
588
|
+
};
|
589
|
+
/** @public
|
590
|
+
* @return {string}
|
591
|
+
*/
|
592
|
+
SegmentCollection.prototype.logRowIdMap = function() {
|
593
|
+
let lines = [];
|
594
|
+
let segmentSeparators = this._segments;
|
595
|
+
let childToSegmentId = this._shared.childToSegment;
|
596
|
+
for(let rid in childToSegmentId) {
|
597
|
+
let segmentId = childToSegmentId[rid];
|
598
|
+
let segment = segmentSeparators[segmentId];
|
599
|
+
if(!segment || !segment.isSubSegment()) {
|
600
|
+
lines.push(rid + " > " + segmentId);
|
601
|
+
}
|
602
|
+
}
|
603
|
+
|
604
|
+
return lines.join("\n");
|
605
|
+
};
|
606
|
+
|
607
|
+
/** @public
|
608
|
+
* @param {string} segmentId
|
609
|
+
* @param {string|Array.<string>} fields
|
610
|
+
* @return {boolean}
|
611
|
+
*/
|
612
|
+
SegmentCollection.prototype.setSegmentClassification = function(segmentId, fields) {
|
613
|
+
let segment = this._segments[segmentId];
|
614
|
+
if(segment) {
|
615
|
+
if(segment.setClassification(fields)) {
|
616
|
+
if(segment.getClassification()) {
|
617
|
+
this._classification = true;
|
618
|
+
}
|
619
|
+
this._classifierChanged = true;
|
620
|
+
|
621
|
+
return true;
|
622
|
+
}
|
623
|
+
}
|
624
|
+
return false;
|
625
|
+
};
|
626
|
+
/** @public
|
627
|
+
* @return {boolean}
|
628
|
+
*/
|
629
|
+
SegmentCollection.prototype.hasClassification = function() {
|
630
|
+
// WARNING: This include the time when classification is removed
|
631
|
+
return this._classification || this._classifierChanged;
|
632
|
+
};
|
633
|
+
/** @public
|
634
|
+
* @param {Object.<string, Object>} rows Object maps between row id and its record
|
635
|
+
* @return {boolean}
|
636
|
+
*/
|
637
|
+
SegmentCollection.prototype.classify = function(rows) {
|
638
|
+
if(!this._segmentCount) {
|
639
|
+
return false;
|
640
|
+
}
|
641
|
+
if(!this.hasClassification()) {
|
642
|
+
return false;
|
643
|
+
}
|
644
|
+
this._classification = this._classifierChanged = false;
|
645
|
+
|
646
|
+
let segmentSeparators = this._segments;
|
647
|
+
for(let rid in segmentSeparators) {
|
648
|
+
let segment = this._segments[rid];
|
649
|
+
if(!segment.isSubSegment()) {
|
650
|
+
if(segment.getClassification()) {
|
651
|
+
this._classification = true;
|
652
|
+
}
|
653
|
+
segment.classify(rows);
|
654
|
+
}
|
655
|
+
}
|
656
|
+
if(this._insertionList.length || this._removalList.length) {
|
657
|
+
this.invalidateSegmentOrder();
|
658
|
+
this._dispatch("subSegmentChanged", {
|
659
|
+
"insertionList": this._insertionList,
|
660
|
+
"removalList": this._removalList
|
661
|
+
});
|
662
|
+
this._insertionList.length = 0;
|
663
|
+
this._removalList.length = 0;
|
664
|
+
|
665
|
+
this._dispatch("classified", {});
|
666
|
+
return true;
|
667
|
+
}
|
668
|
+
|
669
|
+
this._dispatch("classified", {});
|
670
|
+
return false;
|
671
|
+
};
|
672
|
+
|
673
|
+
/** @private
|
674
|
+
* @param {!Object} e
|
675
|
+
*/
|
676
|
+
SegmentCollection.prototype._onSubSegmentAdded = function(e) {
|
677
|
+
let rid = e["rid"];
|
678
|
+
if(!this._segments[rid]) {
|
679
|
+
let segment = /** @type{Segment} */(e["segment"]);
|
680
|
+
this._insertionList.push(segment);
|
681
|
+
this._segments[rid] = segment;
|
682
|
+
this._segmentCount++;
|
683
|
+
|
684
|
+
segment.addEventListener("subSegmentAdded", this._onSubSegmentAdded);
|
685
|
+
segment.addEventListener("subSegmentRemoved", this._onSubSegmentRemoved);
|
686
|
+
} else {
|
687
|
+
console.log("Incorrect logic detected.");
|
688
|
+
}
|
689
|
+
};
|
690
|
+
/** @private
|
691
|
+
* @param {!Object} e
|
692
|
+
*/
|
693
|
+
SegmentCollection.prototype._onSubSegmentRemoved = function(e) {
|
694
|
+
let rid = e["rid"];
|
695
|
+
this.removeSegment(rid);
|
696
|
+
};
|
697
|
+
|
698
|
+
/** @public
|
699
|
+
* @param {boolean} bool
|
700
|
+
* @return {boolean}
|
701
|
+
*/
|
702
|
+
SegmentCollection.prototype.setDefaultCollapsing = function(bool) {
|
703
|
+
let newVal = bool ? true : false;
|
704
|
+
if(this._shared.defaultCollapsing !== newVal) {
|
705
|
+
this._shared.defaultCollapsing = newVal;
|
706
|
+
return true;
|
707
|
+
}
|
708
|
+
return false;
|
709
|
+
};
|
710
|
+
|
711
|
+
|
712
|
+
export default SegmentCollection;
|
713
|
+
export { SegmentCollection };
|