@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,747 @@
|
|
1
|
+
import {Ext} from "./Ext.js";
|
2
|
+
import {EventDispatcher} from "./EventDispatcher.js";
|
3
|
+
import {Deferred} from "./Deferred.js";
|
4
|
+
|
5
|
+
/** This class is designed to be a base class for other tr.Grid plug-ins. It provide commonly used functionalities by the plug-ins.
|
6
|
+
* @constructor
|
7
|
+
* @extends {EventDispatcher}
|
8
|
+
* @example
|
9
|
+
* import {Ext} from "../../node_modules/tr-grid-util/src/Ext.js";
|
10
|
+
* import {GridPlugin} from "../../node_modules/tr-grid-util/src/GridPlugin.js";
|
11
|
+
*
|
12
|
+
* var SomePlugin = function() {};
|
13
|
+
* Ext.inherits(SomePlugin, GridPlugin);
|
14
|
+
*/
|
15
|
+
var GridPlugin = function() {};
|
16
|
+
Ext.inherits(GridPlugin, EventDispatcher);
|
17
|
+
|
18
|
+
/** @type {Array.<tr.Grid>}
|
19
|
+
* @protected
|
20
|
+
* @ignore
|
21
|
+
*/
|
22
|
+
GridPlugin.prototype._hosts = null;
|
23
|
+
/** This is for backward compatible with tr.CompositeGrid
|
24
|
+
* @type {tr.CompositeGrid}
|
25
|
+
* @protected
|
26
|
+
* @ignore
|
27
|
+
*/
|
28
|
+
GridPlugin.prototype._compositeGrid = null;
|
29
|
+
/** @type {tr.rt.Grid}
|
30
|
+
* @protected
|
31
|
+
* @ignore
|
32
|
+
*/
|
33
|
+
GridPlugin.prototype._realTimeGrid = null;
|
34
|
+
/** @type {Function}
|
35
|
+
* @protected
|
36
|
+
* @ignore
|
37
|
+
*/
|
38
|
+
GridPlugin.prototype._rowGetter = null;
|
39
|
+
/** Indicates that columns, rows, and components in the primary grid have been initialized
|
40
|
+
* @type {boolean}
|
41
|
+
* @protected
|
42
|
+
* @ignore
|
43
|
+
*/
|
44
|
+
GridPlugin.prototype._initializedGrid = false;
|
45
|
+
|
46
|
+
|
47
|
+
/** Alias to {@link EventDispatcher#addEventListener}
|
48
|
+
* @public
|
49
|
+
* @function
|
50
|
+
* @param {string} type Event name
|
51
|
+
* @param {Function} handler Event handler
|
52
|
+
*/
|
53
|
+
GridPlugin.prototype.listen = GridPlugin.prototype.addEventListener;
|
54
|
+
/** Alias to {@link EventDispatcher#removeEventListener}
|
55
|
+
* @public
|
56
|
+
* @function
|
57
|
+
* @param {string} type Event name
|
58
|
+
* @param {Function} handler Event handler
|
59
|
+
*/
|
60
|
+
GridPlugin.prototype.unlisten = GridPlugin.prototype.removeEventListener;
|
61
|
+
|
62
|
+
/** This is for Composite Grid support. Do NOT override this method. Use protected _afterInit() instead.
|
63
|
+
* @public
|
64
|
+
* @param {Element=} elem Root element
|
65
|
+
* @param {Object=} model Composite grid object model
|
66
|
+
* @param {tr.CompositeGrid=} grid Composite grid control
|
67
|
+
*/
|
68
|
+
GridPlugin.prototype.afterInit = function(elem, model, grid) {
|
69
|
+
var core = null;
|
70
|
+
if(grid && grid["getCoreGrid"]) {
|
71
|
+
core = grid["getCoreGrid"]();
|
72
|
+
}
|
73
|
+
|
74
|
+
if(core) {
|
75
|
+
if(!this.getGridApi()) {
|
76
|
+
this.setGridWrapper("compositegrid", grid); // Plugin is loaded in afterInit for composite grid
|
77
|
+
}
|
78
|
+
if(this._compositeGrid) {
|
79
|
+
core.loadPlugin(this, model); // Allow sharing extension/plugin
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
if(!this._initializedGrid) { // Calling _afterInit only once per extension/plugin
|
85
|
+
this._initializedGrid = true;
|
86
|
+
this._rowGetter = this._realTimeGrid ? rowDefRowGetter : defaultRowGetter;
|
87
|
+
this._afterInit();
|
88
|
+
}
|
89
|
+
};
|
90
|
+
/** This method guarantees that grid (host) and config have been set. It should be used to update any setting that requires different implementation between Composite grid and Real-time grid
|
91
|
+
* @protected
|
92
|
+
* @ignore
|
93
|
+
*/
|
94
|
+
GridPlugin.prototype._afterInit = function() {};
|
95
|
+
|
96
|
+
/** This method is meant to be used by a derived class to release any resource hold by GridPlugin. Do not override this method.
|
97
|
+
* @protected
|
98
|
+
* @ignore
|
99
|
+
*/
|
100
|
+
GridPlugin.prototype._dispose = function() {
|
101
|
+
if(this._hosts) {
|
102
|
+
if(!this._hosts.length) {
|
103
|
+
this._compositeGrid = this._realTimeGrid = null;
|
104
|
+
this._initializedGrid = false;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
};
|
108
|
+
|
109
|
+
|
110
|
+
/** Plugin that has multi-table support means that it can have multiple hosts/tables and share its states across those hosts/tables.
|
111
|
+
* @public
|
112
|
+
* @return {boolean}
|
113
|
+
*/
|
114
|
+
GridPlugin.prototype.hasMultiTableSupport = function() {
|
115
|
+
return false;
|
116
|
+
};
|
117
|
+
|
118
|
+
/** Executed before dispatching, allowing modification of user's event argument object.
|
119
|
+
* @protected
|
120
|
+
* @ignore
|
121
|
+
* @param {string} type Event name
|
122
|
+
* @param {Object} eventArg User's event argument object
|
123
|
+
* @return {Object} New event argument object
|
124
|
+
*/
|
125
|
+
GridPlugin.prototype._prepareEventArguments = function(type, eventArg) {
|
126
|
+
if(!eventArg) {
|
127
|
+
eventArg = {};
|
128
|
+
}
|
129
|
+
eventArg.api = this.getGridApi();
|
130
|
+
return eventArg;
|
131
|
+
};
|
132
|
+
|
133
|
+
/** Get plugin/extension name. This should be unique as it will be used for duplicate protection. Derived class must override this method.
|
134
|
+
* @public
|
135
|
+
* @return {string}
|
136
|
+
*/
|
137
|
+
GridPlugin.prototype.getName = function () {
|
138
|
+
return "GridPlugin"; // Readonly
|
139
|
+
};
|
140
|
+
/** This is the entry point where Core grid instance has been initialized and grid configuration object is passed to the extension. Derived class should override this method to keep reference of Core grid for later referencing.
|
141
|
+
* @public
|
142
|
+
* @param {tr.Grid} host Core grid instance
|
143
|
+
* @param {Object=} gridOptions Grid configuration object
|
144
|
+
*/
|
145
|
+
GridPlugin.prototype.initialize = function (host, gridOptions) {};
|
146
|
+
/** This is where Core grid instance is being disposed. Derived class should override this method to release any resource hold by this plugin/extension, if the last core grid is being disposed (there will be multiple instances for multi-table mode).
|
147
|
+
* @public
|
148
|
+
* @param {tr.Grid=} host Core grid instance
|
149
|
+
*/
|
150
|
+
GridPlugin.prototype.unload = function (host) {
|
151
|
+
this._dispose();
|
152
|
+
};
|
153
|
+
|
154
|
+
/** Get Core grid instance from the given object (usually an Event Argument object).
|
155
|
+
* @public
|
156
|
+
* @param {Event|Element|tr.IElementControl} e
|
157
|
+
* @return {tr.Grid}
|
158
|
+
*/
|
159
|
+
GridPlugin.prototype.getRelativeGrid = function (e) {
|
160
|
+
var targetEl = null;
|
161
|
+
if(e.target) { // The Given object is an Event
|
162
|
+
targetEl = /** @type{Element} */(e.target);
|
163
|
+
var gridAPI = targetEl["api"];
|
164
|
+
if(gridAPI && gridAPI["getCoreGrid"]) {
|
165
|
+
return /** @type{tr.Grid} */(gridAPI["getCoreGrid"]());
|
166
|
+
}
|
167
|
+
} else if(e["getElement"]) { // The Given object is implementing tr.IElementControl
|
168
|
+
targetEl = /** @type{Element} */(e["getElement"]());
|
169
|
+
} else if(e.nodeType === 1) { // The Given object is just an element
|
170
|
+
targetEl = /** @type{Element} */(e);
|
171
|
+
}
|
172
|
+
|
173
|
+
if(targetEl) {
|
174
|
+
for(var i = this._hosts.length; --i >= 0;) {
|
175
|
+
var host = this._hosts[i];
|
176
|
+
if(host.getElement().contains(targetEl)) {
|
177
|
+
return host;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
return null;
|
182
|
+
};
|
183
|
+
|
184
|
+
/** @public
|
185
|
+
* @param {string} gridType
|
186
|
+
* @param {*} wrapperInstance
|
187
|
+
*/
|
188
|
+
GridPlugin.prototype.setGridWrapper = function (gridType, wrapperInstance) {
|
189
|
+
if(gridType) {
|
190
|
+
gridType = gridType.toLowerCase();
|
191
|
+
if(gridType === "compositegrid") {
|
192
|
+
this._compositeGrid = wrapperInstance;
|
193
|
+
} else if(gridType === "realtimegrid") {
|
194
|
+
this._realTimeGrid = wrapperInstance;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
};
|
198
|
+
/** Get JavaScript wrapper instance. This could be either composite grid or real-time grid.
|
199
|
+
* @public
|
200
|
+
* @param {(number|Object)=} coreRef An index of the core grid or an instance of the core grid
|
201
|
+
* @return {*} wrapperInstance
|
202
|
+
*/
|
203
|
+
GridPlugin.prototype.getGridApi = function (coreRef) {
|
204
|
+
if(coreRef == null) {
|
205
|
+
return this._compositeGrid || this._realTimeGrid;
|
206
|
+
} else {
|
207
|
+
var host = (typeof coreRef == "number") ? this._hosts[coreRef] : coreRef;
|
208
|
+
return host ? (host._wrapper || null) : null;
|
209
|
+
}
|
210
|
+
};
|
211
|
+
|
212
|
+
/** Get user specified column label (e.g. name) or field, if name does not exist
|
213
|
+
* @public
|
214
|
+
* @param {number|string} colRef Column index or column Id
|
215
|
+
* @return {string}
|
216
|
+
*/
|
217
|
+
GridPlugin.prototype.getColumnName = function (colRef) {
|
218
|
+
if(this._compositeGrid) {
|
219
|
+
var colOptions = this._compositeGrid.getColumnModel(colRef);
|
220
|
+
if(colOptions) {
|
221
|
+
if(colOptions.title) {
|
222
|
+
return colOptions.title;
|
223
|
+
} else {
|
224
|
+
return colOptions.field;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
} else {
|
228
|
+
var colIndex = this.getColumnIndex(colRef);
|
229
|
+
var colDef = this._realTimeGrid.getColumnDefinition(colIndex);
|
230
|
+
if(colDef) {
|
231
|
+
return colDef.getName();
|
232
|
+
}
|
233
|
+
}
|
234
|
+
return "";
|
235
|
+
};
|
236
|
+
/** @public
|
237
|
+
* @param {number|string} colId Column index or column Id
|
238
|
+
* @return {number}
|
239
|
+
*/
|
240
|
+
GridPlugin.prototype.getColumnIndex = function (colId) {
|
241
|
+
if(typeof colId === "number") {
|
242
|
+
return colId;
|
243
|
+
}
|
244
|
+
if(this._compositeGrid) {
|
245
|
+
return this._compositeGrid.getColumnIndex(colId);
|
246
|
+
} else {
|
247
|
+
var rtGrid = this._realTimeGrid;
|
248
|
+
var colCount = rtGrid.getColumnCount();
|
249
|
+
for(var i = 0; i < colCount; ++i) {
|
250
|
+
var colDef = rtGrid.getColumnDefinition(i);
|
251
|
+
if(colDef && colDef.getId() === colId) {
|
252
|
+
return i;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
}
|
256
|
+
return -1;
|
257
|
+
};
|
258
|
+
/** @public
|
259
|
+
* @param {Array.<number|string>} colRefs column references field name or column index
|
260
|
+
* @return {Array.<number>} column indices
|
261
|
+
*/
|
262
|
+
GridPlugin.prototype.getColumnIndices = function (colRefs) {
|
263
|
+
if(this._compositeGrid) {
|
264
|
+
var allFields = this._compositeGrid.getColumnFields();
|
265
|
+
var columnIndices = [];
|
266
|
+
for (var i = 0; i < colRefs.length; i++) {
|
267
|
+
|
268
|
+
if(typeof colRefs[i] === 'number') { // When user pass index
|
269
|
+
columnIndices.push(colRefs[i]);
|
270
|
+
} else {
|
271
|
+
var columnIndex = allFields.indexOf(colRefs[i]); // Looping check column index of colRefs field
|
272
|
+
if(columnIndex !== -1) {
|
273
|
+
columnIndices.push(columnIndex);
|
274
|
+
}
|
275
|
+
}
|
276
|
+
}
|
277
|
+
return columnIndices;
|
278
|
+
} else {
|
279
|
+
return this._realTimeGrid.getColumnIndices(colRefs);
|
280
|
+
}
|
281
|
+
};
|
282
|
+
/** @public
|
283
|
+
* @param {number|string} colIndex Column index or column Id
|
284
|
+
* @return {string}
|
285
|
+
*/
|
286
|
+
GridPlugin.prototype.getColumnId = function (colIndex) {
|
287
|
+
if(typeof colIndex === "string") {
|
288
|
+
return colIndex;
|
289
|
+
}
|
290
|
+
if(this._compositeGrid) {
|
291
|
+
return this._compositeGrid.getColumnId(colIndex);
|
292
|
+
} else {
|
293
|
+
var colDef = this._realTimeGrid.getColumnDefinition(colIndex);
|
294
|
+
if(colDef) {
|
295
|
+
return colDef.getId();
|
296
|
+
}
|
297
|
+
}
|
298
|
+
return "";
|
299
|
+
};
|
300
|
+
/** @public
|
301
|
+
* @return {number}
|
302
|
+
*/
|
303
|
+
GridPlugin.prototype.getColumnCount = function() {
|
304
|
+
if(this._hosts) {
|
305
|
+
var g = this._hosts[0];
|
306
|
+
return g ? g.getColumnCount() : 0;
|
307
|
+
}
|
308
|
+
return 0;
|
309
|
+
};
|
310
|
+
|
311
|
+
/** @protected
|
312
|
+
* @deprecated
|
313
|
+
* @ignore
|
314
|
+
* @param {*} curPlugin
|
315
|
+
* @param {tr.Grid} host
|
316
|
+
* @param {string} pluginName
|
317
|
+
* @return {*} curPlugin
|
318
|
+
*/
|
319
|
+
GridPlugin.prototype._loadPlugin = function (curPlugin, host, pluginName) {
|
320
|
+
if(!curPlugin) {
|
321
|
+
curPlugin = host.getPlugin(pluginName);
|
322
|
+
if(!curPlugin) {
|
323
|
+
curPlugin = host.loadPlugin(pluginName);
|
324
|
+
if(curPlugin && this._initializedGrid) {
|
325
|
+
curPlugin._initializedGrid = true; // WARNING: Accessing private member
|
326
|
+
}
|
327
|
+
}
|
328
|
+
}
|
329
|
+
return curPlugin;
|
330
|
+
};
|
331
|
+
/** WARNING: Call this method only in _afterInit method to ensure existence of composite grid and real-time grid
|
332
|
+
* @protected
|
333
|
+
* @ignore
|
334
|
+
* @param {tr.Grid} host
|
335
|
+
* @param {*} pluginRef
|
336
|
+
* @param {Object=} configObj
|
337
|
+
* @return {Promise}
|
338
|
+
*/
|
339
|
+
GridPlugin.prototype._requestPlugin = function (host, pluginRef, configObj) {
|
340
|
+
if(this._initializedGrid) {
|
341
|
+
return GridPlugin.requestPlugin(host, pluginRef, configObj, this._compositeGrid, this._realTimeGrid);
|
342
|
+
}
|
343
|
+
return Promise.reject("Plugin should be requested after the initialization");
|
344
|
+
};
|
345
|
+
/** Make a request to load a plugin/extension into the given core grid (tr-grid). Return a promise of plugin/extension instance
|
346
|
+
* @public
|
347
|
+
* @param {*} ref This can be ef-grid, atlas-blotter, composite grid, real-time grid, or core grid.
|
348
|
+
* @param {*} pluginRef Plugin/Extension name or instance
|
349
|
+
* @param {Object=} configObj
|
350
|
+
* @param {*=} compositeGrid
|
351
|
+
* @param {*=} realTimeGrid
|
352
|
+
* @return {Promise}
|
353
|
+
*/
|
354
|
+
GridPlugin.requestPlugin = function (ref, pluginRef, configObj, compositeGrid, realTimeGrid) {
|
355
|
+
var core = null;
|
356
|
+
if(ref) {
|
357
|
+
var gridWrapper = null;
|
358
|
+
if(ref.nodeType === 1) { // This is an element
|
359
|
+
// TODO: Support delayed resolving
|
360
|
+
gridWrapper = ref.api; // Grid element must already be initialized and configured
|
361
|
+
} else if(ref.getCoreGrid) {
|
362
|
+
gridWrapper = ref;
|
363
|
+
} else if(ref.getPlugin) {
|
364
|
+
core = ref;
|
365
|
+
}
|
366
|
+
if(gridWrapper) {
|
367
|
+
core = gridWrapper.getCoreGrid();
|
368
|
+
if(!compositeGrid && !realTimeGrid) {
|
369
|
+
if(gridWrapper.getModel) {
|
370
|
+
compositeGrid = gridWrapper;
|
371
|
+
} else {
|
372
|
+
realTimeGrid = gridWrapper;
|
373
|
+
}
|
374
|
+
}
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
if(!core) {
|
379
|
+
return Promise.reject("Cannot find grid element");
|
380
|
+
}
|
381
|
+
|
382
|
+
var curPlugin = core.getPlugin(pluginRef);
|
383
|
+
if(curPlugin) {
|
384
|
+
return Promise.resolve(curPlugin);
|
385
|
+
} else {
|
386
|
+
var d = new Deferred();
|
387
|
+
setTimeout(GridPlugin._onPluginRequested.bind(null, {
|
388
|
+
grid: core,
|
389
|
+
pluginRef: pluginRef,
|
390
|
+
compositeGrid: compositeGrid,
|
391
|
+
realTimeGrid: realTimeGrid,
|
392
|
+
config: configObj,
|
393
|
+
deferred: d
|
394
|
+
}), 10);
|
395
|
+
return d.promise;
|
396
|
+
}
|
397
|
+
};
|
398
|
+
/** @private
|
399
|
+
* @param {Object} ctx
|
400
|
+
* @return {Promise.<*>} Promise of plugin object
|
401
|
+
*/
|
402
|
+
GridPlugin._onPluginRequested = function (ctx) {
|
403
|
+
var grid = ctx.grid;
|
404
|
+
if(!grid.getElement()) {
|
405
|
+
return ctx.deferred.reject("Grid has been disposed before the plugin is fully loaded: " + ctx.pluginRef);
|
406
|
+
}
|
407
|
+
|
408
|
+
var curPlugin = grid.getPlugin(ctx.pluginRef);
|
409
|
+
if(curPlugin) {
|
410
|
+
return ctx.deferred.resolve(curPlugin);
|
411
|
+
}
|
412
|
+
|
413
|
+
var beforeInitPerformed = false;
|
414
|
+
if(ctx.pluginRef.beforeInit) { // WARNING: beforeInit is usually performed before the actual loading
|
415
|
+
beforeInitPerformed = true;
|
416
|
+
ctx.pluginRef.beforeInit(grid.getElement(), ctx.config, true);
|
417
|
+
}
|
418
|
+
|
419
|
+
curPlugin = grid.loadPlugin(ctx.pluginRef, ctx.config);
|
420
|
+
if(!curPlugin) {
|
421
|
+
return ctx.deferred.reject("Unable to load required dependency: " + ctx.pluginRef);
|
422
|
+
}
|
423
|
+
|
424
|
+
if(!beforeInitPerformed && curPlugin.beforeInit) { // WARNING: beforeInit is usually performed before the actual loading
|
425
|
+
beforeInitPerformed = true;
|
426
|
+
curPlugin.beforeInit(grid.getElement(), ctx.config);
|
427
|
+
}
|
428
|
+
if(curPlugin.setGridWrapper) {
|
429
|
+
if(ctx.compositeGrid) {
|
430
|
+
curPlugin.setGridWrapper("compositegrid", ctx.compositeGrid);
|
431
|
+
} else if(ctx.realTimeGrid) {
|
432
|
+
curPlugin.setGridWrapper("realtimegrid", ctx.realTimeGrid);
|
433
|
+
}
|
434
|
+
}
|
435
|
+
if(curPlugin.afterInit) {
|
436
|
+
curPlugin.afterInit();
|
437
|
+
}
|
438
|
+
return ctx.deferred.resolve(curPlugin);
|
439
|
+
};
|
440
|
+
/** @protected
|
441
|
+
* @ignore
|
442
|
+
* @param {string} pluginName
|
443
|
+
* @param {tr.Grid=} grid
|
444
|
+
* @return {*}
|
445
|
+
*/
|
446
|
+
GridPlugin.prototype._getPlugin = function(pluginName, grid) {
|
447
|
+
if(grid == null) {
|
448
|
+
grid = this._hosts[0];
|
449
|
+
}
|
450
|
+
return (grid) ? grid.getPlugin(pluginName) : null;
|
451
|
+
};
|
452
|
+
|
453
|
+
/** @protected
|
454
|
+
* @ignore
|
455
|
+
* @param {number} colIndex
|
456
|
+
* @param {tr.Grid=} grid
|
457
|
+
* @return {Object}
|
458
|
+
*/
|
459
|
+
GridPlugin.prototype._getColumnData = function(colIndex, grid) {
|
460
|
+
if(grid == null) {
|
461
|
+
grid = this._hosts[0];
|
462
|
+
}
|
463
|
+
return grid ? grid.getColumnData(colIndex) : null;
|
464
|
+
};
|
465
|
+
/** @protected
|
466
|
+
* @ignore
|
467
|
+
* @param {number} colIndex
|
468
|
+
* @param {string} prop
|
469
|
+
* @param {tr.Grid=} grid
|
470
|
+
* @return {*}
|
471
|
+
*/
|
472
|
+
GridPlugin.prototype._getColumnOption = function(colIndex, prop, grid) {
|
473
|
+
var colData = this._getColumnData(colIndex, grid);
|
474
|
+
if(colData) {
|
475
|
+
return colData[prop];
|
476
|
+
}
|
477
|
+
return null;
|
478
|
+
};
|
479
|
+
/** @protected
|
480
|
+
* @ignore
|
481
|
+
* @param {number} colIndex
|
482
|
+
* @param {tr.Grid=} grid
|
483
|
+
* @return {!Object}
|
484
|
+
*/
|
485
|
+
GridPlugin.prototype._newColumnData = function(colIndex, grid) {
|
486
|
+
if(grid == null) {
|
487
|
+
grid = this._hosts[0];
|
488
|
+
}
|
489
|
+
if(!grid) {
|
490
|
+
return {};
|
491
|
+
}
|
492
|
+
|
493
|
+
var colData = grid.getColumnData(colIndex);
|
494
|
+
if(!colData) {
|
495
|
+
colData = grid.setColumnData(colIndex, {});
|
496
|
+
}
|
497
|
+
return colData;
|
498
|
+
};
|
499
|
+
/** @protected
|
500
|
+
* @ignore
|
501
|
+
* @param {number} colIndex
|
502
|
+
* @return {string}
|
503
|
+
*/
|
504
|
+
GridPlugin.prototype._getField = function(colIndex) {
|
505
|
+
var gridInst = this._compositeGrid || this._realTimeGrid;
|
506
|
+
if (gridInst) {
|
507
|
+
return gridInst.getColumnField(colIndex);
|
508
|
+
}
|
509
|
+
return "";
|
510
|
+
};
|
511
|
+
/** Note that this method is quite misleading and not consistent with other API method. Please avoid using it. We will deprecate this in the future. <br>
|
512
|
+
* Use _rowGetter instead
|
513
|
+
* @protected
|
514
|
+
* @ignore
|
515
|
+
* @deprecated
|
516
|
+
* @param {Object} dvRowData { "a": 10, "c": 21 }
|
517
|
+
* @return {Object}
|
518
|
+
*/
|
519
|
+
GridPlugin.prototype._getRowData = function(dvRowData) {
|
520
|
+
if(this._realTimeGrid) {
|
521
|
+
if(dvRowData) {
|
522
|
+
return dvRowData["ROW_DEF"].getRowData();
|
523
|
+
}
|
524
|
+
}
|
525
|
+
return dvRowData;
|
526
|
+
};
|
527
|
+
/** @protected
|
528
|
+
* @ignore
|
529
|
+
* @param {tr.DataView} dv
|
530
|
+
* @param {number} rowIndex
|
531
|
+
* @return {Object} dvRowData
|
532
|
+
*/
|
533
|
+
GridPlugin.prototype._getRow = function(dv, rowIndex) {
|
534
|
+
return rowGetter(dv.getRowDataAt(rowIndex));
|
535
|
+
};
|
536
|
+
/** @protected
|
537
|
+
* @ignore
|
538
|
+
* @param {tr.DataView} dv
|
539
|
+
* @param {number} rowIndex
|
540
|
+
* @param {string} field
|
541
|
+
* @return {*}
|
542
|
+
*/
|
543
|
+
GridPlugin.prototype._getData = function(dv, rowIndex, field) {
|
544
|
+
var row = this._getRow(dv, rowIndex);
|
545
|
+
return row ? row[field] : undefined; // eslint-disable-line
|
546
|
+
};
|
547
|
+
/** @protected
|
548
|
+
* @ignore
|
549
|
+
* @param {tr.DataView} dv
|
550
|
+
* @param {number} rowIndex
|
551
|
+
* @param {string} field
|
552
|
+
* @param {*} val
|
553
|
+
*/
|
554
|
+
GridPlugin.prototype._setData = function(dv, rowIndex, field, val) {
|
555
|
+
if(this._realTimeGrid) {
|
556
|
+
var row = dv.getRowDataAt(rowIndex);
|
557
|
+
if(row) {
|
558
|
+
row["ROW_DEF"].setData(field, val);
|
559
|
+
}
|
560
|
+
} else {
|
561
|
+
dv.setDataAt(rowIndex, field, val);
|
562
|
+
}
|
563
|
+
};
|
564
|
+
/** @protected
|
565
|
+
* @ignore
|
566
|
+
* @param {tr.DataView} dv
|
567
|
+
* @param {number} rowIndex
|
568
|
+
* @param {Object} rowData
|
569
|
+
*/
|
570
|
+
GridPlugin.prototype._setRowData = function(dv, rowIndex, rowData) {
|
571
|
+
if(this._realTimeGrid) {
|
572
|
+
var dvRowData = dv.getRowDataAt(rowIndex);
|
573
|
+
if(dvRowData) {
|
574
|
+
dvRowData["ROW_DEF"].setRowData(rowData);
|
575
|
+
}
|
576
|
+
} else {
|
577
|
+
dv.setRowDataAt(rowIndex, rowData);
|
578
|
+
}
|
579
|
+
};
|
580
|
+
/** Set data in a column manner. This is faster than repeatedly calling this._setData
|
581
|
+
* @protected
|
582
|
+
* @ignore
|
583
|
+
* @param {tr.DataView} dv
|
584
|
+
* @param {string} cid
|
585
|
+
* @param {Array} valueList
|
586
|
+
* @param {Array.<string>=} opt_ridList Specify row id to be set corresponding to the data item
|
587
|
+
* @example
|
588
|
+
* var dv = this._activeGrid.getDataSource();
|
589
|
+
* this._setColumnData(dv, "column 1", ["1st row data", "2nd row data", "3rd row data"]);
|
590
|
+
*/
|
591
|
+
GridPlugin.prototype._setColumnData = function (dv, cid, valueList, opt_ridList) { // Data changed event may be dispatched
|
592
|
+
opt_ridList = opt_ridList || dv.getAllRowIds() || [];
|
593
|
+
|
594
|
+
if (this._realTimeGrid) {
|
595
|
+
var dt = dv.getDataSource();
|
596
|
+
// freeze data to prevent sorting event occur
|
597
|
+
var prevFrozen = dt.freeze();
|
598
|
+
|
599
|
+
var len = (valueList.length < opt_ridList.length) ? valueList.length : opt_ridList.length;
|
600
|
+
|
601
|
+
for (var i = 0; i < len; ++i) {
|
602
|
+
var row = dv.getRowData(opt_ridList[i]);
|
603
|
+
if (row) {
|
604
|
+
row["ROW_DEF"].setData(cid, valueList[i]);
|
605
|
+
}
|
606
|
+
}
|
607
|
+
|
608
|
+
dt.freeze(prevFrozen);
|
609
|
+
} else {
|
610
|
+
dv.setColumnData(cid, valueList, opt_ridList);
|
611
|
+
}
|
612
|
+
};
|
613
|
+
|
614
|
+
/** @protected
|
615
|
+
* @ignore
|
616
|
+
* @param {number} colIndex
|
617
|
+
* @param {string=} id
|
618
|
+
* @param {Function=} renderer
|
619
|
+
*/
|
620
|
+
GridPlugin.prototype._activateColumnRenderer = function(colIndex, id, renderer) {
|
621
|
+
// TODO: Support multiple Grids
|
622
|
+
if (colIndex == null) {
|
623
|
+
return;
|
624
|
+
}
|
625
|
+
|
626
|
+
var rtGrid = this._realTimeGrid;
|
627
|
+
if (rtGrid) {
|
628
|
+
rtGrid.activateColumnRenderer(colIndex, id, renderer);
|
629
|
+
} else {
|
630
|
+
if (typeof renderer === "function") {
|
631
|
+
this._hosts[0].setColumnDataBindingHandler(colIndex, renderer);
|
632
|
+
} else {
|
633
|
+
this._hosts[0].setColumnDataBindingHandler(colIndex, null);
|
634
|
+
}
|
635
|
+
}
|
636
|
+
};
|
637
|
+
|
638
|
+
/** Export the plugin to the given object by attaching it to tr and tr.grid namespaces
|
639
|
+
* @public
|
640
|
+
* @function
|
641
|
+
* @param {Window|Object} winObj
|
642
|
+
* @param {GridPlugin} plugin
|
643
|
+
* @example
|
644
|
+
* import {exportExtension} from "../node_modules/tr-grid-util/src/GridPlugin.js";
|
645
|
+
* import {SomePlugin} from "./js/SomePlugin.js";
|
646
|
+
* exportExtension(window, SomePlugin);
|
647
|
+
* console.log(tr.grid.SomePlugin); // tr.grid.SomePlugin is added to window scope
|
648
|
+
* console.log(tr.SomeExtension); // tr.SomeExtension is added to window scope
|
649
|
+
*/
|
650
|
+
var exportExtension = function(winObj, plugin) {
|
651
|
+
if(!winObj || !plugin) { return; }
|
652
|
+
if(!plugin.prototype["getName"]) { return; }
|
653
|
+
var pluginName = plugin.prototype["getName"]().replace(/Plugin$/, "");
|
654
|
+
if(!pluginName) { return; }
|
655
|
+
|
656
|
+
var trNamespace = winObj["tr"]; // For supporting composite grid extension scheme
|
657
|
+
if(!trNamespace) {
|
658
|
+
trNamespace = winObj["tr"] = {};
|
659
|
+
}
|
660
|
+
var gridNamespace = trNamespace["grid"]; // For supporting grid plugin scheme
|
661
|
+
if(!gridNamespace) {
|
662
|
+
gridNamespace = trNamespace["grid"] = {};
|
663
|
+
}
|
664
|
+
|
665
|
+
gridNamespace[pluginName + "Plugin"] = plugin;
|
666
|
+
trNamespace[pluginName + "Extension"] = plugin;
|
667
|
+
};
|
668
|
+
|
669
|
+
/** @public
|
670
|
+
* @function
|
671
|
+
* @param {string} field
|
672
|
+
* @param {Object} dvRowData Row data from tr.DataView
|
673
|
+
* @return {*} Data value returned from the specified row and field
|
674
|
+
*/
|
675
|
+
var defaultDataGetter = function (field, dvRowData) {
|
676
|
+
return dvRowData[field];
|
677
|
+
};
|
678
|
+
/** @public
|
679
|
+
* @function
|
680
|
+
* @param {string} field
|
681
|
+
* @param {Object} dvRowData Row data from tr.DataView
|
682
|
+
* @return {*} Data value returned from the specified row and field
|
683
|
+
*/
|
684
|
+
var rowDefDataGetter = function (field, dvRowData) {
|
685
|
+
var rowData = dvRowData["ROW_DEF"].getRowData();
|
686
|
+
return (rowData) ? rowData[field] : null;
|
687
|
+
};
|
688
|
+
/** @public
|
689
|
+
* @function
|
690
|
+
* @param {Object} dvRowData
|
691
|
+
* @return {Object} Row data Nothing is changed
|
692
|
+
*/
|
693
|
+
var defaultRowGetter = function (dvRowData) {
|
694
|
+
return dvRowData;
|
695
|
+
};
|
696
|
+
/** @public
|
697
|
+
* @function
|
698
|
+
* @param {Object} dvRowData Row data from tr.DataView
|
699
|
+
* @return {Object} Row data
|
700
|
+
*/
|
701
|
+
var rowDefRowGetter = function (dvRowData) {
|
702
|
+
return dvRowData ? dvRowData["ROW_DEF"].getRowData() : null;
|
703
|
+
};
|
704
|
+
/** This is slower version of row getter. It is intended for ease of use.
|
705
|
+
* @public
|
706
|
+
* @function
|
707
|
+
* @param {Object} dvRowData Row data from tr.DataView
|
708
|
+
* @return {Object} Row data
|
709
|
+
*/
|
710
|
+
var rowGetter = function (dvRowData) {
|
711
|
+
if(dvRowData) {
|
712
|
+
var rowDef = dvRowData["ROW_DEF"];
|
713
|
+
return rowDef ? rowDef.getRowData() : dvRowData;
|
714
|
+
}
|
715
|
+
return null;
|
716
|
+
};
|
717
|
+
|
718
|
+
/** @public
|
719
|
+
* @function
|
720
|
+
* @param {string} field
|
721
|
+
* @param {tr.DataTable} dt
|
722
|
+
* @return {!Array.<Object>} Array of row data
|
723
|
+
*/
|
724
|
+
var colDataGetter = function(field, dt) {
|
725
|
+
var rowDefs = dt.getAllRowData();
|
726
|
+
var rowCount = rowDefs.length;
|
727
|
+
var rows = new Array(rowCount);
|
728
|
+
for(var i = 0; i < rowCount; ++i) { // WARNING: No data checking
|
729
|
+
rows[i] = rowDefDataGetter(field, rowDefs[i]);
|
730
|
+
}
|
731
|
+
return rows;
|
732
|
+
};
|
733
|
+
|
734
|
+
export default GridPlugin;
|
735
|
+
export {
|
736
|
+
GridPlugin,
|
737
|
+
exportExtension,
|
738
|
+
|
739
|
+
defaultDataGetter,
|
740
|
+
rowDefDataGetter,
|
741
|
+
|
742
|
+
defaultRowGetter,
|
743
|
+
rowDefRowGetter,
|
744
|
+
rowGetter,
|
745
|
+
|
746
|
+
colDataGetter
|
747
|
+
};
|