@refinitiv-ui/efx-grid 6.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-format-dialog/index.d.ts +1 -0
- package/lib/column-format-dialog/index.js +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +64 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2713 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +995 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +1 -0
- package/lib/column-selection-dialog/index.js +1 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +41 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +1410 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +189 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +6 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +6 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +22 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +6 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +6 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +6 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +6 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +28075 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +81 -0
- package/lib/core/es6/data/DataCache.js +1317 -0
- package/lib/core/es6/data/DataTable.d.ts +125 -0
- package/lib/core/es6/data/DataTable.js +1655 -0
- package/lib/core/es6/data/DataView.d.ts +280 -0
- package/lib/core/es6/data/DataView.js +3654 -0
- package/lib/core/es6/data/Segment.d.ts +38 -0
- package/lib/core/es6/data/Segment.js +193 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +58 -0
- package/lib/core/es6/data/SegmentCollection.js +431 -0
- package/lib/core/es6/grid/Core.d.ts +387 -0
- package/lib/core/es6/grid/Core.js +4939 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +204 -0
- package/lib/core/es6/grid/ILayoutGrid.js +658 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +23 -0
- package/lib/core/es6/grid/LayoutGrid.js +2602 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +907 -0
- package/lib/core/es6/grid/components/Cell.d.ts +50 -0
- package/lib/core/es6/grid/components/Cell.js +740 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +123 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +38 -0
- package/lib/core/es6/grid/components/CellSpans.js +341 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +612 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +714 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +24 -0
- package/lib/core/es6/grid/components/HScrollbar.js +222 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +61 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1374 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +328 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +163 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +615 -0
- package/lib/core/es6/grid/plugins/Plugin.d.ts +28 -0
- package/lib/core/es6/grid/plugins/Plugin.js +272 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1707 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/core/es6/grid/util/ElementFrameWork.js +227 -0
- package/lib/core/es6/grid/util/HttpRequest.d.ts +53 -0
- package/lib/core/es6/grid/util/HttpRequest.js +371 -0
- package/lib/core/es6/grid/util/PercentBar.d.ts +43 -0
- package/lib/core/es6/grid/util/PercentBar.js +390 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.js +316 -0
- package/lib/core/es6/grid/util/RangeBar.d.ts +25 -0
- package/lib/core/es6/grid/util/RangeBar.js +255 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +674 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +50 -0
- package/lib/core/es6/grid/util/SelectionList.js +422 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +84 -0
- package/lib/core/es6/grid/util/TrackLayout.js +850 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +18 -0
- package/lib/core/es6/grid/util/util.js +450 -0
- package/lib/core/es6/index.d.ts +84 -0
- package/lib/core/es6/index.js +132 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +1 -0
- package/lib/filter-dialog/index.js +1 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +27 -0
- package/lib/filter-dialog/lib/checkbox-list.js +336 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +53 -0
- package/lib/filter-dialog/lib/filter-dialog.js +860 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +37 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +37 -0
- package/lib/filter-dialog/themes/base.less +102 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +9 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +40 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +102 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralIconFormatter.js +45 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +40 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +66 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFButtonFormatter.js +40 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +68 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFIconFormatter.js +45 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +66 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +22 -0
- package/lib/formatters/es6/FormatterBuilder.js +334 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +65 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +30 -0
- package/lib/formatters/es6/index.d.ts +43 -0
- package/lib/formatters/es6/index.js +67 -0
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +2 -0
- package/lib/grid/lib/efx-grid.d.ts +32 -0
- package/lib/grid/lib/efx-grid.js +469 -0
- package/lib/grid/themes/base.less +134 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +92 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +102 -0
- package/lib/index.js +102 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +83 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +592 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +44672 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +141 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1074 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +37 -0
- package/lib/rt-grid/es6/DataConnector.js +266 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +20 -0
- package/lib/rt-grid/es6/FieldDefinition.js +418 -0
- package/lib/rt-grid/es6/Grid.d.ts +261 -0
- package/lib/rt-grid/es6/Grid.js +2893 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +38 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +230 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +120 -0
- package/lib/rt-grid/es6/RowDefinition.js +873 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +21 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +252 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +67 -0
- package/lib/statistics-row/es6/StatisticsRow.js +786 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +45 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +431 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +67 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1777 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +69 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1476 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +1000 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +89 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +615 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +60 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +913 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1013 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +70 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +928 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +76 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +1227 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +70 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +947 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +478 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +471 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +133 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +39 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +245 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +29 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +292 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +57 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +928 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +44 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +394 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +129 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +1977 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +57 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +427 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +801 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +49 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +226 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +12 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +21 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +32 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +761 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +38 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +481 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +54 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +205 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +353 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +53 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +794 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +118 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +1884 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +109 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1541 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +74 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1202 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +60 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +611 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +77 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +574 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +29 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +136 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1128 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +14 -0
- package/lib/tr-grid-util/es6/Deferred.js +98 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +85 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +346 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +10 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +101 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +83 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +163 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +33 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +458 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +27 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +169 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +432 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +48 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +521 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +41 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +181 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +72 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +747 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +61 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +237 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +32 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +506 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +83 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +471 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +162 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +84 -0
- package/lib/tr-grid-util/es6/Popup.js +818 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +259 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +239 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +23 -0
- package/lib/tr-grid-util/es6/RowPainter.js +188 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +74 -0
- package/lib/tr-grid-util/es6/SubTable.js +558 -0
- package/lib/tr-grid-util/es6/Table.d.ts +125 -0
- package/lib/tr-grid-util/es6/Table.js +790 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +18 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +273 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +65 -0
- package/lib/tr-grid-util/es6/Util.js +528 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +882 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +63 -0
- package/lib/tr-grid-util/es6/index.js +99 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +141 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +114 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +827 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +63 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +72 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +564 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +43 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +131 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +45 -0
- package/lib/types/es6/CellSelection.d.ts +67 -0
- package/lib/types/es6/Checkbox.d.ts +69 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +90 -0
- package/lib/types/es6/ColumnGrouping.d.ts +60 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +70 -0
- package/lib/types/es6/ColumnStack.d.ts +76 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +38 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +287 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +22 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +42 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +70 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +81 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +125 -0
- package/lib/types/es6/Core/data/DataView.d.ts +280 -0
- package/lib/types/es6/Core/data/Segment.d.ts +38 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +58 -0
- package/lib/types/es6/Core/grid/Core.d.ts +387 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +204 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +23 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +50 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +38 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +24 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +61 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +28 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +53 -0
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +43 -0
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +25 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +50 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +84 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +18 -0
- package/lib/types/es6/Core/index.d.ts +84 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +23 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +52 -0
- package/lib/types/es6/Extensions.d.ts +61 -0
- package/lib/types/es6/FilterInput.d.ts +57 -0
- package/lib/types/es6/FormatterBuilder.d.ts +22 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +44 -0
- package/lib/types/es6/InCellEditing.d.ts +129 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +39 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +57 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +29 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +143 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +37 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +20 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +263 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +38 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +120 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +21 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +60 -0
- package/lib/types/es6/RowDragging.d.ts +53 -0
- package/lib/types/es6/RowFiltering.d.ts +118 -0
- package/lib/types/es6/RowGrouping.d.ts +109 -0
- package/lib/types/es6/RowSegmenting.d.ts +83 -0
- package/lib/types/es6/RowSelection.d.ts +74 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +67 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +77 -0
- package/lib/types/es6/TitleWrap.d.ts +29 -0
- package/lib/types/es6/Zoom.d.ts +51 -0
- package/lib/types/es6/index.d.ts +76 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/versions.json +36 -0
- package/lib/window-exporter.js +13 -0
- package/lib/zoom/es6/Zoom.d.ts +51 -0
- package/lib/zoom/es6/Zoom.js +419 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +42 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
declare class Segment {
|
4
|
+
|
5
|
+
constructor(rid: string);
|
6
|
+
|
7
|
+
public getId(): string;
|
8
|
+
|
9
|
+
public addChild(rid: string, objMap?: any): boolean;
|
10
|
+
|
11
|
+
public addChildren(rids: (string)[], objMap?: any): boolean;
|
12
|
+
|
13
|
+
public containsChild(rid: string): boolean;
|
14
|
+
|
15
|
+
public removeChild(rid: string, objMap?: any): boolean;
|
16
|
+
|
17
|
+
public removeChildren(rids: (string)[], objMap?: any): boolean;
|
18
|
+
|
19
|
+
public removeAllChildren(objMap?: any): boolean;
|
20
|
+
|
21
|
+
public getChildIds(): (string)[];
|
22
|
+
|
23
|
+
public collapse(bool?: boolean): boolean;
|
24
|
+
|
25
|
+
public expand(bool?: boolean): boolean;
|
26
|
+
|
27
|
+
public isCollapsed(): boolean;
|
28
|
+
|
29
|
+
public getCollapsingStates(objMap?: any): any;
|
30
|
+
|
31
|
+
public getValue(): number;
|
32
|
+
|
33
|
+
public setValue(val: number): void;
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
export default Segment;
|
38
|
+
export { Segment };
|
@@ -0,0 +1,193 @@
|
|
1
|
+
/** @constructor
|
2
|
+
* @param {string} rid
|
3
|
+
*/
|
4
|
+
var Segment = function(rid) {
|
5
|
+
this._rid = rid;
|
6
|
+
this._children = {};
|
7
|
+
};
|
8
|
+
|
9
|
+
|
10
|
+
/** @type {string}
|
11
|
+
* @private
|
12
|
+
*/
|
13
|
+
Segment.prototype._rid;
|
14
|
+
/** @type {!Object}
|
15
|
+
* @private
|
16
|
+
*/
|
17
|
+
Segment.prototype._children;
|
18
|
+
/** @type {number}
|
19
|
+
* @private
|
20
|
+
*/
|
21
|
+
Segment.prototype._childCount = 0;
|
22
|
+
/** @type {boolean}
|
23
|
+
* @private
|
24
|
+
*/
|
25
|
+
Segment.prototype._collapsed = false;
|
26
|
+
/** @type {number}
|
27
|
+
* @private
|
28
|
+
*/
|
29
|
+
Segment.prototype._value = 0;
|
30
|
+
|
31
|
+
|
32
|
+
/** @public
|
33
|
+
* @return {string}
|
34
|
+
*/
|
35
|
+
Segment.prototype.getId = function() {
|
36
|
+
return this._rid;
|
37
|
+
};
|
38
|
+
/** @public
|
39
|
+
* @param {string} rid
|
40
|
+
* @param {Object=} objMap
|
41
|
+
* @return {boolean}
|
42
|
+
*/
|
43
|
+
Segment.prototype.addChild = function(rid, objMap) {
|
44
|
+
if(rid && !this._children[rid]) {
|
45
|
+
if(objMap) {
|
46
|
+
objMap[rid] = this._rid;
|
47
|
+
}
|
48
|
+
this._children[rid] = 1;
|
49
|
+
++this._childCount;
|
50
|
+
return true;
|
51
|
+
}
|
52
|
+
return false;
|
53
|
+
};
|
54
|
+
/** @public
|
55
|
+
* @param {Array.<string>} rids
|
56
|
+
* @param {Object=} objMap
|
57
|
+
* @return {boolean}
|
58
|
+
*/
|
59
|
+
Segment.prototype.addChildren = function(rids, objMap) {
|
60
|
+
var rowIds = Array.isArray(rids) ? rids : [rids];
|
61
|
+
var rowCount = rowIds.length;
|
62
|
+
var dirty = 0;
|
63
|
+
for(var i = 0; i < rowCount; ++i) {
|
64
|
+
dirty |= this.addChild(rowIds[i], objMap);
|
65
|
+
}
|
66
|
+
return dirty ? true : false;
|
67
|
+
};
|
68
|
+
/** @public
|
69
|
+
* @param {string} rid
|
70
|
+
* @return {boolean}
|
71
|
+
*/
|
72
|
+
Segment.prototype.containsChild = function(rid) {
|
73
|
+
return this._children[rid] ? true : false;
|
74
|
+
};
|
75
|
+
/** @public
|
76
|
+
* @param {string} rid
|
77
|
+
* @param {Object=} objMap
|
78
|
+
* @return {boolean}
|
79
|
+
*/
|
80
|
+
Segment.prototype.removeChild = function(rid, objMap) {
|
81
|
+
if(this._childCount && this._children[rid]) {
|
82
|
+
if(objMap) {
|
83
|
+
delete objMap[rid];
|
84
|
+
}
|
85
|
+
delete this._children[rid]; // Slow
|
86
|
+
--this._childCount;
|
87
|
+
return true;
|
88
|
+
}
|
89
|
+
return false;
|
90
|
+
};
|
91
|
+
/** @public
|
92
|
+
* @param {Array.<string>} rids
|
93
|
+
* @param {Object=} objMap
|
94
|
+
* @return {boolean}
|
95
|
+
*/
|
96
|
+
Segment.prototype.removeChildren = function(rids, objMap) {
|
97
|
+
if(!this._childCount) {
|
98
|
+
return false;
|
99
|
+
}
|
100
|
+
var rowIds = Array.isArray(rids) ? rids : [rids];
|
101
|
+
var rowCount = rowIds.length;
|
102
|
+
var dirty = 0;
|
103
|
+
for(var i = 0; i < rowCount; ++i) {
|
104
|
+
dirty |= this.removeChild(rowIds[i], objMap);
|
105
|
+
}
|
106
|
+
return dirty ? true : false;
|
107
|
+
};
|
108
|
+
/** @public
|
109
|
+
* @param {Object=} objMap
|
110
|
+
* @return {boolean}
|
111
|
+
*/
|
112
|
+
Segment.prototype.removeAllChildren = function(objMap) {
|
113
|
+
if(this._childCount) {
|
114
|
+
if(objMap) {
|
115
|
+
var chdr = this._children;
|
116
|
+
for(var rid in chdr) {
|
117
|
+
if(objMap[rid]) {
|
118
|
+
delete objMap[rid];
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
this._children = {};
|
123
|
+
this._childCount = 0;
|
124
|
+
return true;
|
125
|
+
}
|
126
|
+
return false;
|
127
|
+
};
|
128
|
+
/** @public
|
129
|
+
* @return {!Array.<string>}
|
130
|
+
*/
|
131
|
+
Segment.prototype.getChildIds = function() {
|
132
|
+
return this._childCount ? Object.keys(this._children) : [];
|
133
|
+
};
|
134
|
+
|
135
|
+
|
136
|
+
/** @public
|
137
|
+
* @param {boolean=} bool
|
138
|
+
* @return {boolean}
|
139
|
+
*/
|
140
|
+
Segment.prototype.collapse = function(bool) {
|
141
|
+
bool = (bool !== false);
|
142
|
+
if(this._collapsed !== bool) {
|
143
|
+
this._collapsed = bool;
|
144
|
+
return true;
|
145
|
+
}
|
146
|
+
return false;
|
147
|
+
};
|
148
|
+
/** @public
|
149
|
+
* @param {boolean=} bool
|
150
|
+
* @return {boolean}
|
151
|
+
*/
|
152
|
+
Segment.prototype.expand = function(bool) {
|
153
|
+
return this.collapse(bool === false);
|
154
|
+
};
|
155
|
+
/** @public
|
156
|
+
* @return {boolean}
|
157
|
+
*/
|
158
|
+
Segment.prototype.isCollapsed = function() {
|
159
|
+
return this._collapsed;
|
160
|
+
};
|
161
|
+
/** @public
|
162
|
+
* @param {Object=} objMap
|
163
|
+
* @return {!Object}
|
164
|
+
*/
|
165
|
+
Segment.prototype.getCollapsingStates = function(objMap) {
|
166
|
+
if(!objMap) {
|
167
|
+
objMap = {};
|
168
|
+
}
|
169
|
+
if(this._childCount) {
|
170
|
+
var chdr = this._children;
|
171
|
+
var collapsed = this._collapsed;
|
172
|
+
for(var rid in chdr) {
|
173
|
+
objMap[rid] = collapsed;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
return objMap;
|
177
|
+
};
|
178
|
+
/** @public
|
179
|
+
* @return {number}
|
180
|
+
*/
|
181
|
+
Segment.prototype.getValue = function() {
|
182
|
+
return this._value;
|
183
|
+
};
|
184
|
+
/** @public
|
185
|
+
* @param {number} val
|
186
|
+
*/
|
187
|
+
Segment.prototype.setValue = function(val) {
|
188
|
+
this._value = val;
|
189
|
+
};
|
190
|
+
|
191
|
+
|
192
|
+
export default Segment;
|
193
|
+
export { Segment };
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import Segment from "./Segment.js";
|
2
|
+
|
3
|
+
declare class SegmentCollection {
|
4
|
+
|
5
|
+
constructor();
|
6
|
+
|
7
|
+
public addSegment(rid: string): boolean;
|
8
|
+
|
9
|
+
public addSegments(rids: (string)[]): boolean;
|
10
|
+
|
11
|
+
public containsSegment(rid: string): boolean;
|
12
|
+
|
13
|
+
public getParentRowId(rid: string): string;
|
14
|
+
|
15
|
+
public removeSegment(rid: string): boolean;
|
16
|
+
|
17
|
+
public removeAllSegments(): boolean;
|
18
|
+
|
19
|
+
public getSegmentCount(): number;
|
20
|
+
|
21
|
+
public getSegment(rid: string): Segment;
|
22
|
+
|
23
|
+
public getSegments(): { [key: string]: Segment };
|
24
|
+
|
25
|
+
public getSegmentIds(): (string)[];
|
26
|
+
|
27
|
+
public collapseSegment(segmentId: string, bool?: boolean): boolean;
|
28
|
+
|
29
|
+
public expandSegment(segmentId: string, bool?: boolean): boolean;
|
30
|
+
|
31
|
+
public expandAllSegments(): boolean;
|
32
|
+
|
33
|
+
public isCollapsedSegment(segmentId: string): boolean;
|
34
|
+
|
35
|
+
public getCollapsedRows(): any;
|
36
|
+
|
37
|
+
public addSegmentChild(segmentId: string, rid: string): boolean;
|
38
|
+
|
39
|
+
public addSegmentChildren(segmentId: string, rids: (string)[]): boolean;
|
40
|
+
|
41
|
+
public containsSegmentChild(segmentId: string, rid: string): boolean;
|
42
|
+
|
43
|
+
public removeSegmentChild(segmentId: string, rid: string): boolean;
|
44
|
+
|
45
|
+
public removeSegmentChildren(segmentId: string, rids: (string)[]): boolean;
|
46
|
+
|
47
|
+
public removeAllSegmentChildren(): boolean;
|
48
|
+
|
49
|
+
public fillSegment(segmentId: string, rids: (string)[]): void;
|
50
|
+
|
51
|
+
public fillSegments(rids: (string)[]): boolean;
|
52
|
+
|
53
|
+
public getSegmentValues(rids: (string)[]): (number)[];
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
export default SegmentCollection;
|
58
|
+
export { SegmentCollection };
|
@@ -0,0 +1,431 @@
|
|
1
|
+
import Segment from "./Segment.js";
|
2
|
+
|
3
|
+
/** @constructor
|
4
|
+
*/
|
5
|
+
var SegmentCollection = function() {
|
6
|
+
this._segments = {};
|
7
|
+
this._childToSegmentId = {};
|
8
|
+
};
|
9
|
+
|
10
|
+
|
11
|
+
/** @type {!Object.<string, Segment>}
|
12
|
+
* @private
|
13
|
+
*/
|
14
|
+
SegmentCollection.prototype._segments;
|
15
|
+
/** @type {number}
|
16
|
+
* @private
|
17
|
+
*/
|
18
|
+
SegmentCollection.prototype._segmentCount = 0;
|
19
|
+
/** @type {Object}
|
20
|
+
* @private
|
21
|
+
*/
|
22
|
+
SegmentCollection.prototype._collapsedRids = null;
|
23
|
+
/** @type {boolean}
|
24
|
+
* @private
|
25
|
+
*/
|
26
|
+
SegmentCollection.prototype._dirtyCollapsingState = false;
|
27
|
+
/** @type {!Object.<string, string>}
|
28
|
+
* @private
|
29
|
+
*/
|
30
|
+
SegmentCollection.prototype._childToSegmentId;
|
31
|
+
|
32
|
+
|
33
|
+
/** @public
|
34
|
+
* @param {string} rid
|
35
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
36
|
+
*/
|
37
|
+
SegmentCollection.prototype.addSegment = function(rid) {
|
38
|
+
if(rid && !this._segments[rid]) {
|
39
|
+
if(this._childToSegmentId[rid]) {
|
40
|
+
console.log("child of a segment cannot be set as a segment separator");
|
41
|
+
}
|
42
|
+
this._segments[rid] = new Segment(rid);
|
43
|
+
++this._segmentCount;
|
44
|
+
return true;
|
45
|
+
}
|
46
|
+
return false;
|
47
|
+
};
|
48
|
+
/** @public
|
49
|
+
* @param {Array.<string>} rids
|
50
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
51
|
+
*/
|
52
|
+
SegmentCollection.prototype.addSegments = function(rids) {
|
53
|
+
var rowIds = Array.isArray(rids) ? rids : [rids];
|
54
|
+
var rowCount = rowIds.length;
|
55
|
+
var dirty = 0;
|
56
|
+
for(var i = 0; i < rowCount; ++i) {
|
57
|
+
dirty |= this.addSegment(rowIds[i]);
|
58
|
+
}
|
59
|
+
return dirty ? true : false;
|
60
|
+
};
|
61
|
+
/** @public
|
62
|
+
* @param {string} rid
|
63
|
+
* @return {boolean}
|
64
|
+
*/
|
65
|
+
SegmentCollection.prototype.containsSegment = function(rid) {
|
66
|
+
return this._segments[rid] ? true : false;
|
67
|
+
};
|
68
|
+
/** @public
|
69
|
+
* @param {string} rid
|
70
|
+
* @return {string} parent row id of this segmentation. If the parent row id for this segmentation cannot be found, return ""
|
71
|
+
*/
|
72
|
+
SegmentCollection.prototype.getParentRowId = function(rid) {
|
73
|
+
return this._childToSegmentId[rid] || "";
|
74
|
+
};
|
75
|
+
/** @public
|
76
|
+
* @param {string} rid
|
77
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
78
|
+
*/
|
79
|
+
SegmentCollection.prototype.removeSegment = function(rid) {
|
80
|
+
var segment = this._segments[rid];
|
81
|
+
if(segment) {
|
82
|
+
if(segment.isCollapsed()) {
|
83
|
+
this._dirtyCollapsingState = true;
|
84
|
+
}
|
85
|
+
segment.removeAllChildren(this._childToSegmentId);
|
86
|
+
delete this._segments[rid]; // Slow
|
87
|
+
--this._segmentCount;
|
88
|
+
return true;
|
89
|
+
}
|
90
|
+
return false;
|
91
|
+
};
|
92
|
+
/** @public
|
93
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
94
|
+
*/
|
95
|
+
SegmentCollection.prototype.removeAllSegments = function() {
|
96
|
+
if(this._segmentCount) {
|
97
|
+
this._segments = {};
|
98
|
+
this._childToSegmentId = {};
|
99
|
+
this._segmentCount = 0;
|
100
|
+
this._dirtyCollapsingState = true;
|
101
|
+
return true;
|
102
|
+
}
|
103
|
+
return false;
|
104
|
+
};
|
105
|
+
|
106
|
+
/** @public
|
107
|
+
* @return {number}
|
108
|
+
*/
|
109
|
+
SegmentCollection.prototype.getSegmentCount = function() {
|
110
|
+
return this._segmentCount;
|
111
|
+
};
|
112
|
+
/** @public
|
113
|
+
* @param {string} rid
|
114
|
+
* @return {Segment}
|
115
|
+
*/
|
116
|
+
SegmentCollection.prototype.getSegment = function(rid) {
|
117
|
+
return this._segments[rid] || null;
|
118
|
+
};
|
119
|
+
/** @public
|
120
|
+
* @return {Object.<string, Segment>}
|
121
|
+
*/
|
122
|
+
SegmentCollection.prototype.getSegments = function() {
|
123
|
+
return this._segmentCount ? this._segments : null; // WARNING: Return private member
|
124
|
+
};
|
125
|
+
/** @public
|
126
|
+
* @return {!Array.<string>}
|
127
|
+
*/
|
128
|
+
SegmentCollection.prototype.getSegmentIds = function() {
|
129
|
+
return Object.keys(this._segments);
|
130
|
+
};
|
131
|
+
|
132
|
+
|
133
|
+
/** @public
|
134
|
+
* @param {string} segmentId
|
135
|
+
* @param {boolean=} bool
|
136
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
137
|
+
*/
|
138
|
+
SegmentCollection.prototype.collapseSegment = function(segmentId, bool) {
|
139
|
+
var segment = this._segments[segmentId];
|
140
|
+
if(segment) {
|
141
|
+
var dirty = segment.collapse(bool);
|
142
|
+
if(dirty) {
|
143
|
+
this._dirtyCollapsingState = true;
|
144
|
+
return true;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
return false;
|
148
|
+
};
|
149
|
+
/** @public
|
150
|
+
* @param {string} segmentId
|
151
|
+
* @param {boolean=} bool
|
152
|
+
* @return {boolean}
|
153
|
+
*/
|
154
|
+
SegmentCollection.prototype.expandSegment = function(segmentId, bool) {
|
155
|
+
return this.collapseSegment(segmentId, bool === false);
|
156
|
+
};
|
157
|
+
/** @public
|
158
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
159
|
+
*/
|
160
|
+
SegmentCollection.prototype.expandAllSegments = function() {
|
161
|
+
if(this._segmentCount) {
|
162
|
+
var segmentSeparators = this._segments;
|
163
|
+
var dirty = 0;
|
164
|
+
for(var rid in segmentSeparators) {
|
165
|
+
dirty |= segmentSeparators[rid].expand();
|
166
|
+
}
|
167
|
+
if(dirty) {
|
168
|
+
this._dirtyCollapsingState = true;
|
169
|
+
return true;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
return false;
|
173
|
+
};
|
174
|
+
/** @public
|
175
|
+
* @param {string} segmentId
|
176
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
177
|
+
*/
|
178
|
+
SegmentCollection.prototype.isCollapsedSegment = function(segmentId) {
|
179
|
+
var segment = this._segments[segmentId];
|
180
|
+
if(segment) {
|
181
|
+
return segment.isCollapsed();
|
182
|
+
}
|
183
|
+
return false;
|
184
|
+
};
|
185
|
+
/** @public
|
186
|
+
* @return {Object}
|
187
|
+
*/
|
188
|
+
SegmentCollection.prototype.getCollapsedRows = function() {
|
189
|
+
if(this._dirtyCollapsingState) {
|
190
|
+
this._dirtyCollapsingState = false;
|
191
|
+
var collapsedRids = null;
|
192
|
+
var count = 0;
|
193
|
+
if(this._segmentCount) {
|
194
|
+
var segmentSeparators = this._segments;
|
195
|
+
collapsedRids = {};
|
196
|
+
for(var rid in segmentSeparators) {
|
197
|
+
if(segmentSeparators[rid].isCollapsed()) {
|
198
|
+
segmentSeparators[rid].getCollapsingStates(collapsedRids);
|
199
|
+
++count;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
this._collapsedRids = count ? collapsedRids : null;
|
204
|
+
}
|
205
|
+
return this._collapsedRids;
|
206
|
+
};
|
207
|
+
|
208
|
+
/** @public
|
209
|
+
* @param {string} segmentId
|
210
|
+
* @param {string} rid
|
211
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
212
|
+
*/
|
213
|
+
SegmentCollection.prototype.addSegmentChild = function(segmentId, rid) {
|
214
|
+
var segment = this._segments[segmentId];
|
215
|
+
if(segment) {
|
216
|
+
var dirty = segment.addChild(rid, this._childToSegmentId);
|
217
|
+
if(dirty) {
|
218
|
+
if(segment.isCollapsed()) {
|
219
|
+
this._dirtyCollapsingState = true;
|
220
|
+
}
|
221
|
+
return true;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
return false;
|
225
|
+
};
|
226
|
+
/** @public
|
227
|
+
* @param {string} segmentId
|
228
|
+
* @param {Array.<string>} rids
|
229
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
230
|
+
*/
|
231
|
+
SegmentCollection.prototype.addSegmentChildren = function(segmentId, rids) {
|
232
|
+
var segment = this._segments[segmentId];
|
233
|
+
if(segment) {
|
234
|
+
var dirty = segment.addChildren(rids, this._childToSegmentId);
|
235
|
+
if(dirty) {
|
236
|
+
if(segment.isCollapsed()) {
|
237
|
+
this._dirtyCollapsingState = true;
|
238
|
+
}
|
239
|
+
return true;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
return false;
|
243
|
+
};
|
244
|
+
/** @public
|
245
|
+
* @param {string} segmentId
|
246
|
+
* @param {string} rid
|
247
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
248
|
+
*/
|
249
|
+
SegmentCollection.prototype.containsSegmentChild = function(segmentId, rid) {
|
250
|
+
var segment = this._segments[segmentId];
|
251
|
+
if(segment) {
|
252
|
+
return segment.containsChild(rid);
|
253
|
+
}
|
254
|
+
return false;
|
255
|
+
};
|
256
|
+
/** @public
|
257
|
+
* @param {string} segmentId
|
258
|
+
* @param {string} rid
|
259
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
260
|
+
*/
|
261
|
+
SegmentCollection.prototype.removeSegmentChild = function(segmentId, rid) {
|
262
|
+
var segment = this._segments[segmentId];
|
263
|
+
if(segment) {
|
264
|
+
var dirty = segment.removeChild(rid, this._childToSegmentId);
|
265
|
+
if(dirty) {
|
266
|
+
if(segment.isCollapsed()) {
|
267
|
+
this._dirtyCollapsingState = true;
|
268
|
+
}
|
269
|
+
return true;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
return false;
|
273
|
+
};
|
274
|
+
/** @public
|
275
|
+
* @param {string} segmentId
|
276
|
+
* @param {Array.<string>} rids
|
277
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
278
|
+
*/
|
279
|
+
SegmentCollection.prototype.removeSegmentChildren = function(segmentId, rids) {
|
280
|
+
var segment = this._segments[segmentId];
|
281
|
+
if(segment) {
|
282
|
+
var dirty = segment.removeChildren(rids, this._childToSegmentId);
|
283
|
+
if(dirty) {
|
284
|
+
if(segment.isCollapsed()) {
|
285
|
+
this._dirtyCollapsingState = true;
|
286
|
+
}
|
287
|
+
return true;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
return false;
|
291
|
+
};
|
292
|
+
/** @public
|
293
|
+
* @return {boolean} Returns true if there is any change. Otherwise, returns false
|
294
|
+
*/
|
295
|
+
SegmentCollection.prototype.removeAllSegmentChildren = function() {
|
296
|
+
this._childToSegmentId = {};
|
297
|
+
var segmentSeparators = this._segments;
|
298
|
+
var dirtyCollapsingState = this._dirtyCollapsingState;
|
299
|
+
var dirty = false;
|
300
|
+
for(var rid in segmentSeparators) {
|
301
|
+
var segment = this._segments[rid];
|
302
|
+
if(segment.removeAllChildren()) {
|
303
|
+
dirty = true;
|
304
|
+
if(!dirtyCollapsingState && segment.isCollapsed()) {
|
305
|
+
dirtyCollapsingState = this._dirtyCollapsingState = true;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
return dirty;
|
311
|
+
};
|
312
|
+
|
313
|
+
/** @public
|
314
|
+
* @param {string} segmentId
|
315
|
+
* @param {Array.<string>} rids
|
316
|
+
*/
|
317
|
+
SegmentCollection.prototype.fillSegment = function(segmentId, rids) {
|
318
|
+
var rowCount = Array.isArray(rids) ? rids.length : 0;
|
319
|
+
if(!rowCount) {
|
320
|
+
return;
|
321
|
+
}
|
322
|
+
var segmentSeparators = this._segments;
|
323
|
+
var childToSegmentId = this._childToSegmentId;
|
324
|
+
var curSegment = segmentSeparators[segmentId];
|
325
|
+
if(curSegment) {
|
326
|
+
var segmentAt = rids.indexOf(segmentId);
|
327
|
+
if(segmentAt >= 0) {
|
328
|
+
if(curSegment.isCollapsed()) {
|
329
|
+
this._dirtyCollapsingState = true;
|
330
|
+
}
|
331
|
+
curSegment.removeAllChildren(childToSegmentId);
|
332
|
+
for(var r = segmentAt + 1; r < rowCount; ++r) {
|
333
|
+
var rid = rids[r];
|
334
|
+
var segmentSeparator = segmentSeparators[rid];
|
335
|
+
if(segmentSeparator) {
|
336
|
+
break;
|
337
|
+
}
|
338
|
+
curSegment.addChild(rid, childToSegmentId);
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
};
|
343
|
+
/** @public
|
344
|
+
* @param {Array.<string>} rids
|
345
|
+
* @return {boolean} Return true if the fill segments have changed, otherwise return false
|
346
|
+
*/
|
347
|
+
SegmentCollection.prototype.fillSegments = function(rids) {
|
348
|
+
var rowCount = Array.isArray(rids) ? rids.length : 0;
|
349
|
+
this._childToSegmentId = {};
|
350
|
+
var segmentSeparators = this._segments;
|
351
|
+
var childToSegmentId = this._childToSegmentId;
|
352
|
+
var curSegment = null;
|
353
|
+
var change = false;
|
354
|
+
for(var r = 0; r < rowCount; ++r) {
|
355
|
+
var rid = rids[r];
|
356
|
+
var segmentSeparator = segmentSeparators[rid];
|
357
|
+
if(segmentSeparator) {
|
358
|
+
curSegment = segmentSeparator;
|
359
|
+
if(curSegment.isCollapsed()) {
|
360
|
+
this._dirtyCollapsingState = true;
|
361
|
+
}
|
362
|
+
curSegment.removeAllChildren();
|
363
|
+
} else if(curSegment) {
|
364
|
+
curSegment.addChild(rid, childToSegmentId);
|
365
|
+
change = true;
|
366
|
+
}
|
367
|
+
}
|
368
|
+
return change;
|
369
|
+
};
|
370
|
+
/** @public
|
371
|
+
* @param {!Array.<string>} rids Array of row ids
|
372
|
+
* @return {Array.<number>} Returns Array of segment values, if there are at least two segments, otherwise returns null
|
373
|
+
*/
|
374
|
+
SegmentCollection.prototype.getSegmentValues = function(rids) {
|
375
|
+
var rowCount = rids ? rids.length : 0;
|
376
|
+
if(!rowCount) {
|
377
|
+
return null;
|
378
|
+
}
|
379
|
+
var segmentSeparators = this._segments;
|
380
|
+
var childToSegmentId = this._childToSegmentId;
|
381
|
+
var curSegment = null;
|
382
|
+
var segmentValues = new Array(rowCount);
|
383
|
+
var curSegmentCount = 0;
|
384
|
+
var segmentVal = 0;
|
385
|
+
var r = 0;
|
386
|
+
var childToIndex = {};
|
387
|
+
while(r < rowCount) {
|
388
|
+
var rid = rids[r];
|
389
|
+
if(segmentSeparators[rid]) {
|
390
|
+
++curSegmentCount;
|
391
|
+
curSegment = segmentSeparators[rid];
|
392
|
+
segmentVal += 100;
|
393
|
+
segmentValues[r] = segmentVal;
|
394
|
+
curSegment.setValue(segmentVal);
|
395
|
+
if(curSegmentCount >= this._segmentCount) {
|
396
|
+
++r;
|
397
|
+
break;
|
398
|
+
}
|
399
|
+
} else {
|
400
|
+
if(curSegmentCount) {
|
401
|
+
segmentValues[r] = segmentVal + 10;
|
402
|
+
} else {
|
403
|
+
segmentValues[r] = 0;
|
404
|
+
}
|
405
|
+
if(childToSegmentId[rid]) {
|
406
|
+
childToIndex[rid] = r;
|
407
|
+
}
|
408
|
+
}
|
409
|
+
++r;
|
410
|
+
}
|
411
|
+
if(curSegmentCount) {
|
412
|
+
while(r < rowCount) {
|
413
|
+
rid = rids[r];
|
414
|
+
segmentValues[r] = segmentVal + 10;
|
415
|
+
if(childToSegmentId[rid]) {
|
416
|
+
childToIndex[rid] = r;
|
417
|
+
}
|
418
|
+
++r;
|
419
|
+
}
|
420
|
+
for(var childId in childToIndex) {
|
421
|
+
curSegment = segmentSeparators[childToSegmentId[childId]];
|
422
|
+
segmentValues[childToIndex[childId]] = curSegment.getValue() + 1;
|
423
|
+
}
|
424
|
+
}
|
425
|
+
|
426
|
+
return curSegmentCount ? segmentValues : null;
|
427
|
+
};
|
428
|
+
|
429
|
+
|
430
|
+
export default SegmentCollection;
|
431
|
+
export { SegmentCollection };
|