@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,801 @@
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
+
|
3
|
+
import { Ext } from '../../tr-grid-util/es6/Ext.js';
|
4
|
+
import { GridPlugin, colDataGetter } from '../../tr-grid-util/es6/GridPlugin.js';
|
5
|
+
import { PercentBar } from '../../tr-grid-util/es6/PercentBar.js';
|
6
|
+
import { Dom } from '../../tr-grid-util/es6/Dom.js';
|
7
|
+
import { ElfUtil } from '../../tr-grid-util/es6/ElfUtil.js';
|
8
|
+
/** @typedef {Object} PercentBarPlugin~Options
|
9
|
+
* @description PercentBarPlugin options that can be specified from `percentBar` property of the main grid's options
|
10
|
+
* @property {number=} padding=8 Extra space added to max width from autoTextSizing calculation
|
11
|
+
* @property {boolean=} percentageLabel=true If disabled, the value will not convert into percent format
|
12
|
+
* @property {boolean=} autoTextSizing=true If disabled, text space will be fixed.
|
13
|
+
* @property {boolean=} autoFitting=false If enabled, text space will be auto adjusted.<br> Otherwise, text space will stay extended to the longest length
|
14
|
+
* @property {boolean=} zeroValueHidden=false If this option is enabled and the percentage value is zero, percent bar and its label will be hidden
|
15
|
+
*/
|
16
|
+
|
17
|
+
/** @typedef {Object} PercentBarPlugin~PercentBarOptions
|
18
|
+
* @description The options can be specified by `percentBar` property in the grid's column definition
|
19
|
+
* @property {string=} alignment="" Fixate percent bar alignment. By default, percent bar alignment will be changed according to grid column alignment.
|
20
|
+
* @property {string=} field=THIS_COLUMN Data field
|
21
|
+
* @property {boolean=} textHidden=false If enabled, displays percent bar only
|
22
|
+
* @property {(number|string)=} textWidth If specified, percent bar text will have fixed width
|
23
|
+
* @property {boolean=} useMovementColor=true If disabled, percent bar will not use up and down colors
|
24
|
+
* @property {string=} barColor="" Custom color for bar element. This will override the useMovementColor
|
25
|
+
* @property {number=} padding=8 Extra space added to max width from autoTextSizing calculation
|
26
|
+
* @property {boolean=} percentageLabel=true If disabled, the value will not convert into percent format
|
27
|
+
* @property {boolean=} autoTextSizing=true If disabled, text space will be fixed
|
28
|
+
* @property {boolean=} autoFitting=false If enabled, text space will be auto adjusted.<br> Otherwise, text space will stay extended to the longest length
|
29
|
+
* @property {boolean=} zeroValueHidden=false If this option is enabled and the percentage value is zero, percent bar and its label will be hidden
|
30
|
+
*/
|
31
|
+
|
32
|
+
/** @typedef {Object} PercentBarPlugin~ColumnOptions
|
33
|
+
* @description Extension column options that can be specified on each individual grid's column option
|
34
|
+
* @property {(PercentBarPlugin~PercentBarOptions|boolean)=} percentBar
|
35
|
+
*/
|
36
|
+
|
37
|
+
/** @constructor
|
38
|
+
* @extends {GridPlugin}
|
39
|
+
*/
|
40
|
+
|
41
|
+
var PercentBarPlugin = function PercentBarPlugin() {
|
42
|
+
this._onPostSectionBinding = this._onPostSectionBinding.bind(this);
|
43
|
+
this._onColumnAdded = this._onColumnAdded.bind(this);
|
44
|
+
this._onColumnRemoved = this._onColumnRemoved.bind(this);
|
45
|
+
this._requestRowRefresh = this._requestRowRefresh.bind(this);
|
46
|
+
this._renderer = this._renderer.bind(this);
|
47
|
+
this._onThemeLoaded = this._onThemeLoaded.bind(this);
|
48
|
+
this._hosts = [];
|
49
|
+
};
|
50
|
+
|
51
|
+
Ext.inherits(PercentBarPlugin, GridPlugin);
|
52
|
+
/** @type {number}
|
53
|
+
* @private
|
54
|
+
*/
|
55
|
+
|
56
|
+
PercentBarPlugin._runningId = 0;
|
57
|
+
/** @type {boolean}
|
58
|
+
* @private
|
59
|
+
*/
|
60
|
+
|
61
|
+
PercentBarPlugin._themeLoaded = false;
|
62
|
+
/** @type {boolean}
|
63
|
+
* @private
|
64
|
+
*/
|
65
|
+
|
66
|
+
PercentBarPlugin._themeRevision = 0;
|
67
|
+
/** @type {boolean}
|
68
|
+
* @private
|
69
|
+
*/
|
70
|
+
|
71
|
+
PercentBarPlugin.prototype._themeLoading = false;
|
72
|
+
/** @type {number}
|
73
|
+
* @private
|
74
|
+
*/
|
75
|
+
|
76
|
+
PercentBarPlugin.prototype._padding = 8;
|
77
|
+
/** @type {boolean}
|
78
|
+
* @private
|
79
|
+
*/
|
80
|
+
|
81
|
+
PercentBarPlugin.prototype._percentageLabel = true;
|
82
|
+
/** @type {boolean}
|
83
|
+
* @private
|
84
|
+
*/
|
85
|
+
|
86
|
+
PercentBarPlugin.prototype._autoFitting = false;
|
87
|
+
/** @type {boolean}
|
88
|
+
* @private
|
89
|
+
*/
|
90
|
+
|
91
|
+
PercentBarPlugin.prototype._zeroValueHidden = false;
|
92
|
+
/** @type {boolean}
|
93
|
+
* @private
|
94
|
+
*/
|
95
|
+
|
96
|
+
PercentBarPlugin.prototype._autoTextSizing = true;
|
97
|
+
/** @type {Element}
|
98
|
+
* @private
|
99
|
+
*/
|
100
|
+
|
101
|
+
PercentBarPlugin._helper = null;
|
102
|
+
/** @override
|
103
|
+
* @return {string}
|
104
|
+
*/
|
105
|
+
|
106
|
+
PercentBarPlugin.prototype.getName = function () {
|
107
|
+
return "PercentBarPlugin"; // Readonly
|
108
|
+
};
|
109
|
+
/** @public
|
110
|
+
* @param {Object} host core grid object
|
111
|
+
* @param {Object=} options
|
112
|
+
*/
|
113
|
+
|
114
|
+
|
115
|
+
PercentBarPlugin.prototype.initialize = function (host, options) {
|
116
|
+
if (this._hosts.indexOf(host) >= 0) {
|
117
|
+
return;
|
118
|
+
}
|
119
|
+
|
120
|
+
this._hosts.push(host);
|
121
|
+
|
122
|
+
this.config(options, host);
|
123
|
+
host.listen("postSectionDataBinding", this._onPostSectionBinding);
|
124
|
+
|
125
|
+
if (this._hosts.length === 1) {
|
126
|
+
host.listen("columnAdded", this._onColumnAdded);
|
127
|
+
host.listen("columnRemoved", this._onColumnRemoved);
|
128
|
+
host.listen("columnAlignmentChanged", this._requestRowRefresh);
|
129
|
+
}
|
130
|
+
|
131
|
+
if (!PercentBarPlugin._themeLoaded && !this._themeLoading) {
|
132
|
+
this._themeLoading = true;
|
133
|
+
ElfUtil.getThemeColors().then(this._onThemeLoaded);
|
134
|
+
}
|
135
|
+
};
|
136
|
+
/** @override */
|
137
|
+
|
138
|
+
|
139
|
+
PercentBarPlugin.prototype._afterInit = function () {
|
140
|
+
var colCount = this.getColumnCount();
|
141
|
+
|
142
|
+
for (var i = 0; i < colCount; ++i) {
|
143
|
+
this._setColumnRenderer(i);
|
144
|
+
}
|
145
|
+
};
|
146
|
+
/** @public
|
147
|
+
* @param {Object} host core grid object
|
148
|
+
*/
|
149
|
+
|
150
|
+
|
151
|
+
PercentBarPlugin.prototype.unload = function (host) {
|
152
|
+
var at = this._hosts.indexOf(host);
|
153
|
+
|
154
|
+
if (at < 0) {
|
155
|
+
return;
|
156
|
+
}
|
157
|
+
|
158
|
+
this._hosts.splice(at, 1);
|
159
|
+
|
160
|
+
host.unlisten("postSectionDataBinding", this._onPostSectionBinding);
|
161
|
+
host.unlisten("columnAdded", this._onColumnAdded);
|
162
|
+
host.unlisten("columnRemoved", this._onColumnRemoved);
|
163
|
+
host.unlisten("columnAlignmentChanged", this._requestRowRefresh);
|
164
|
+
|
165
|
+
if (!this._hosts.length) {
|
166
|
+
// The last host has been removed
|
167
|
+
Dom.removeParent(PercentBarPlugin._helper);
|
168
|
+
}
|
169
|
+
|
170
|
+
this._dispose();
|
171
|
+
};
|
172
|
+
/** @public
|
173
|
+
* @param {Object=} options
|
174
|
+
*/
|
175
|
+
|
176
|
+
|
177
|
+
PercentBarPlugin.prototype.config = function (options) {
|
178
|
+
if (!options) {
|
179
|
+
return;
|
180
|
+
}
|
181
|
+
|
182
|
+
var extOptions = options["percentBar"];
|
183
|
+
|
184
|
+
if (_typeof(extOptions) === "object") {
|
185
|
+
this._autoFitting = extOptions["autoFitting"] === true;
|
186
|
+
|
187
|
+
if (extOptions["zeroValueHidden"] != null) {
|
188
|
+
this._zeroValueHidden = extOptions["zeroValueHidden"] ? true : false;
|
189
|
+
}
|
190
|
+
|
191
|
+
this._autoTextSizing = extOptions["autoTextSizing"] !== false;
|
192
|
+
this._percentageLabel = extOptions["percentageLabel"] !== false;
|
193
|
+
var padding = extOptions["padding"];
|
194
|
+
|
195
|
+
if (typeof padding === "number") {
|
196
|
+
this._padding = padding;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
var columns = options["columns"];
|
201
|
+
var len = columns ? columns.length : 0;
|
202
|
+
|
203
|
+
for (var i = 0; i < len; ++i) {
|
204
|
+
var column = columns[i];
|
205
|
+
this.setColumnPercentBar(i, column);
|
206
|
+
}
|
207
|
+
};
|
208
|
+
/** Get a column percent bar options from column index
|
209
|
+
* @public
|
210
|
+
* @param {number} colIndex
|
211
|
+
* @param {Object=} out_obj
|
212
|
+
* @returns {!Object}
|
213
|
+
*/
|
214
|
+
|
215
|
+
|
216
|
+
PercentBarPlugin.prototype.getColumnConfigObject = function (colIndex, out_obj) {
|
217
|
+
if (!out_obj) {
|
218
|
+
out_obj = {};
|
219
|
+
}
|
220
|
+
|
221
|
+
var colData = this._getColumnData(colIndex);
|
222
|
+
|
223
|
+
var opt = colData ? colData.percentBar : null; // TODO: Use this._getColumnPercentBarOptions instead
|
224
|
+
|
225
|
+
if (!opt) {
|
226
|
+
// If this column has no percentBar, do nothing
|
227
|
+
return out_obj;
|
228
|
+
}
|
229
|
+
|
230
|
+
var percentBar = out_obj.percentBar = {};
|
231
|
+
|
232
|
+
if (opt.alignment) {
|
233
|
+
percentBar.alignment = opt.alignment;
|
234
|
+
}
|
235
|
+
|
236
|
+
if (typeof opt.field === "string") {
|
237
|
+
percentBar.field = opt.field;
|
238
|
+
}
|
239
|
+
|
240
|
+
if (opt.textHidden != null) {
|
241
|
+
percentBar.textHidden = opt.textHidden;
|
242
|
+
}
|
243
|
+
|
244
|
+
if (opt.textWidth != null) {
|
245
|
+
percentBar.textWidth = opt.textWidth;
|
246
|
+
}
|
247
|
+
|
248
|
+
if (opt.useMovementColor != null) {
|
249
|
+
percentBar.useMovementColor = opt.useMovementColor;
|
250
|
+
}
|
251
|
+
|
252
|
+
if (opt.barColor) {
|
253
|
+
percentBar.barColor = opt.barColor;
|
254
|
+
}
|
255
|
+
|
256
|
+
if (opt.padding != null) {
|
257
|
+
percentBar.padding = opt.padding;
|
258
|
+
}
|
259
|
+
|
260
|
+
if (opt.autoTextSizing != null) {
|
261
|
+
percentBar.autoTextSizing = opt.autoTextSizing;
|
262
|
+
}
|
263
|
+
|
264
|
+
if (opt.percentageLabel != null) {
|
265
|
+
percentBar.percentageLabel = opt.percentageLabel;
|
266
|
+
}
|
267
|
+
|
268
|
+
if (opt.autoFitting != null) {
|
269
|
+
percentBar.autoFitting = opt.autoFitting;
|
270
|
+
}
|
271
|
+
|
272
|
+
return out_obj;
|
273
|
+
};
|
274
|
+
/** Get a current state of grid and extension config
|
275
|
+
* @public
|
276
|
+
* @param {Object=} out_obj
|
277
|
+
* @returns {!Object}
|
278
|
+
*/
|
279
|
+
|
280
|
+
|
281
|
+
PercentBarPlugin.prototype.getConfigObject = function (out_obj) {
|
282
|
+
var obj = out_obj || {};
|
283
|
+
var columns = obj.columns;
|
284
|
+
|
285
|
+
if (!columns) {
|
286
|
+
columns = obj.columns = [];
|
287
|
+
}
|
288
|
+
|
289
|
+
var len = this.getColumnCount();
|
290
|
+
|
291
|
+
for (var i = 0; i < len; ++i) {
|
292
|
+
if (!columns[i]) {
|
293
|
+
columns[i] = {};
|
294
|
+
}
|
295
|
+
|
296
|
+
this.getColumnConfigObject(i, columns[i]);
|
297
|
+
}
|
298
|
+
|
299
|
+
var extOptions = obj.percentBar;
|
300
|
+
|
301
|
+
if (!extOptions) {
|
302
|
+
extOptions = obj.percentBar = {};
|
303
|
+
}
|
304
|
+
|
305
|
+
extOptions.padding = this._padding;
|
306
|
+
extOptions.autoFitting = this._autoFitting;
|
307
|
+
extOptions.zeroValueHidden = this._zeroValueHidden;
|
308
|
+
extOptions.autoTextSizing = this._autoTextSizing;
|
309
|
+
extOptions.percentageLabel = this._percentageLabel;
|
310
|
+
return obj;
|
311
|
+
};
|
312
|
+
/** @public
|
313
|
+
* @param {number} colIndex
|
314
|
+
* @param {string} alignment Possible values are l, r, c, left, right, center or empty string
|
315
|
+
*/
|
316
|
+
|
317
|
+
|
318
|
+
PercentBarPlugin.prototype.setPercentBarAlignment = function (colIndex, alignment) {
|
319
|
+
var pBarOpt = this._getColumnPercentBarOptions(colIndex);
|
320
|
+
|
321
|
+
if (pBarOpt) {
|
322
|
+
alignment = PercentBar.toAlignment(alignment);
|
323
|
+
|
324
|
+
if (pBarOpt["alignment"] !== alignment) {
|
325
|
+
pBarOpt["alignment"] = alignment;
|
326
|
+
|
327
|
+
this._requestRowRefresh();
|
328
|
+
}
|
329
|
+
}
|
330
|
+
};
|
331
|
+
/** Any existing percent bar options will be removed and replaced with the specified options.
|
332
|
+
* @public
|
333
|
+
* @param {number} colIndex
|
334
|
+
* @param {PercentBarPlugin~ColumnOptions} columnOptions If no column option is given, existing percent bars will be removed.
|
335
|
+
* @example
|
336
|
+
* ext.setColumnPercentBar(colIndex, { "percentBar": true });
|
337
|
+
* ext.setColumnPercentBar(colIndex, {
|
338
|
+
* "percentBar": {
|
339
|
+
* "alignment": "r",
|
340
|
+
* "field": "PCT_CHNG",
|
341
|
+
* "textHidden": true,
|
342
|
+
* "textWidth": 80
|
343
|
+
* }
|
344
|
+
* });
|
345
|
+
* ext.setColumnPercentBar(colIndex, null);
|
346
|
+
*/
|
347
|
+
|
348
|
+
|
349
|
+
PercentBarPlugin.prototype.setColumnPercentBar = function (colIndex, columnOptions) {
|
350
|
+
var userOptions = columnOptions ? columnOptions["percentBar"] : null;
|
351
|
+
|
352
|
+
var colData = this._newColumnData(colIndex);
|
353
|
+
|
354
|
+
var pBarOpt = colData["percentBar"]; // Current percent bar option
|
355
|
+
|
356
|
+
var dirty = false;
|
357
|
+
|
358
|
+
if (userOptions) {
|
359
|
+
dirty = true;
|
360
|
+
var prevOptions = pBarOpt;
|
361
|
+
pBarOpt = colData["percentBar"] = {}; // Always clear any existing percent bar options to allow new settings
|
362
|
+
|
363
|
+
if (prevOptions && prevOptions["refId"]) {
|
364
|
+
// transfer cache from previous settings to the new one
|
365
|
+
pBarOpt["refId"] = prevOptions["refId"];
|
366
|
+
pBarOpt["colStats"] = prevOptions["colStats"];
|
367
|
+
}
|
368
|
+
|
369
|
+
if (_typeof(userOptions) === "object") {
|
370
|
+
// userOptions could be boolean
|
371
|
+
for (var key in userOptions) {
|
372
|
+
// Clone all settings from user options
|
373
|
+
pBarOpt[key] = userOptions[key];
|
374
|
+
}
|
375
|
+
} // Validate user inputs and provide default values for missing settings
|
376
|
+
|
377
|
+
|
378
|
+
var field = pBarOpt["field"];
|
379
|
+
|
380
|
+
if (field == null) {
|
381
|
+
pBarOpt["field"] = columnOptions["field"] ? columnOptions["field"] : this._getField(colIndex);
|
382
|
+
}
|
383
|
+
|
384
|
+
if (pBarOpt["alignment"] != null) {
|
385
|
+
pBarOpt["alignment"] = PercentBar.toAlignment(pBarOpt["alignment"]);
|
386
|
+
}
|
387
|
+
|
388
|
+
if (pBarOpt["autoTextSizing"] != null) {
|
389
|
+
pBarOpt["autoTextSizing"] = pBarOpt["autoTextSizing"] ? true : false;
|
390
|
+
}
|
391
|
+
|
392
|
+
if (pBarOpt["autoFitting"] != null) {
|
393
|
+
pBarOpt["autoFitting"] = pBarOpt["autoFitting"] ? true : false;
|
394
|
+
} else {
|
395
|
+
pBarOpt["autoFitting"] = this._autoFitting;
|
396
|
+
}
|
397
|
+
|
398
|
+
if (pBarOpt["zeroValueHidden"] != null) {
|
399
|
+
pBarOpt["zeroValueHidden"] = pBarOpt["zeroValueHidden"] ? true : false;
|
400
|
+
} else {
|
401
|
+
pBarOpt["zeroValueHidden"] = this._zeroValueHidden;
|
402
|
+
}
|
403
|
+
|
404
|
+
if (pBarOpt["percentageLabel"] != null) {
|
405
|
+
pBarOpt["percentageLabel"] = pBarOpt["percentageLabel"] ? true : false;
|
406
|
+
} else {
|
407
|
+
pBarOpt["percentageLabel"] = this._percentageLabel;
|
408
|
+
}
|
409
|
+
|
410
|
+
pBarOpt._maxTextWidth = 0;
|
411
|
+
var padding = pBarOpt["padding"];
|
412
|
+
|
413
|
+
if (typeof padding !== "number") {
|
414
|
+
pBarOpt["padding"] = padding || padding == null ? this._padding : 0;
|
415
|
+
}
|
416
|
+
} else {
|
417
|
+
if (pBarOpt) {
|
418
|
+
// Clear existing resource
|
419
|
+
dirty = true;
|
420
|
+
|
421
|
+
if (pBarOpt["refId"]) {
|
422
|
+
var grid = this._hosts[0];
|
423
|
+
var dv = grid ? grid.getDataSource() : null; // TODO: Support multiple grids
|
424
|
+
|
425
|
+
if (dv) {
|
426
|
+
dv.enableColumnStats(pBarOpt["field"], false, pBarOpt["refId"]);
|
427
|
+
}
|
428
|
+
|
429
|
+
pBarOpt["refId"] = null;
|
430
|
+
pBarOpt["colStats"] = null;
|
431
|
+
}
|
432
|
+
|
433
|
+
colData["percentBar"] = null;
|
434
|
+
}
|
435
|
+
}
|
436
|
+
|
437
|
+
if (dirty && this._initializedGrid) {
|
438
|
+
this._setColumnRenderer(colIndex);
|
439
|
+
|
440
|
+
this._requestRowRefresh();
|
441
|
+
}
|
442
|
+
};
|
443
|
+
/** @private
|
444
|
+
* @param {number} colIndex
|
445
|
+
*/
|
446
|
+
|
447
|
+
|
448
|
+
PercentBarPlugin.prototype._setColumnRenderer = function (colIndex) {
|
449
|
+
var pBarOpt = this._getColumnPercentBarOptions(colIndex);
|
450
|
+
|
451
|
+
if (pBarOpt) {
|
452
|
+
if (!pBarOpt["refId"]) {
|
453
|
+
var grid = this._hosts[0];
|
454
|
+
var dv = grid ? grid.getDataSource() : null; // TODO: Support multiple grids
|
455
|
+
|
456
|
+
if (dv) {
|
457
|
+
pBarOpt["refId"] = "_pb" + PercentBarPlugin._runningId++;
|
458
|
+
var colStats = dv.enableColumnStats(pBarOpt["field"], true, pBarOpt["refId"]);
|
459
|
+
|
460
|
+
if (this._realTimeGrid) {
|
461
|
+
colStats.setColumnDataGetter(colDataGetter);
|
462
|
+
}
|
463
|
+
|
464
|
+
pBarOpt["colStats"] = colStats;
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
this._activateColumnRenderer(colIndex, "_percentBar", this._renderer);
|
469
|
+
} else {
|
470
|
+
this._activateColumnRenderer(colIndex); // reset column renderer to default
|
471
|
+
|
472
|
+
}
|
473
|
+
};
|
474
|
+
/** @private
|
475
|
+
* @param {number} colIndex
|
476
|
+
* @return {Object}
|
477
|
+
*/
|
478
|
+
|
479
|
+
|
480
|
+
PercentBarPlugin.prototype._getColumnPercentBarOptions = function (colIndex) {
|
481
|
+
return this._getColumnOption(colIndex, "percentBar");
|
482
|
+
};
|
483
|
+
/** @private
|
484
|
+
* @param {number} colIndex
|
485
|
+
* @param {!Object} pBarOpt
|
486
|
+
* @return {string}
|
487
|
+
*/
|
488
|
+
|
489
|
+
|
490
|
+
PercentBarPlugin.prototype._getPercentBarAlignment = function (colIndex, pBarOpt) {
|
491
|
+
var alignment = pBarOpt["alignment"];
|
492
|
+
|
493
|
+
if (alignment) {
|
494
|
+
return alignment;
|
495
|
+
} // Default alignment is left
|
496
|
+
|
497
|
+
|
498
|
+
return PercentBar.toAlignment(this._hosts[0].getColumnAlignment(colIndex)) || "l";
|
499
|
+
};
|
500
|
+
/** @private
|
501
|
+
* @param {number} colIndex
|
502
|
+
* @param {!Object} pBarOpt
|
503
|
+
* @return {boolean}
|
504
|
+
*/
|
505
|
+
|
506
|
+
|
507
|
+
PercentBarPlugin.prototype._getAutoTextSizing = function (colIndex, pBarOpt) {
|
508
|
+
if (pBarOpt["textWidth"] || pBarOpt["textHidden"]) {
|
509
|
+
return false;
|
510
|
+
}
|
511
|
+
|
512
|
+
if (this._getPercentBarAlignment(colIndex, pBarOpt) === "c") {
|
513
|
+
return false;
|
514
|
+
}
|
515
|
+
|
516
|
+
if (pBarOpt["autoTextSizing"] != null) {
|
517
|
+
return pBarOpt["autoTextSizing"];
|
518
|
+
}
|
519
|
+
|
520
|
+
return this._autoTextSizing;
|
521
|
+
};
|
522
|
+
/** @private */
|
523
|
+
|
524
|
+
|
525
|
+
PercentBarPlugin.prototype._onThemeLoaded = function () {
|
526
|
+
PercentBarPlugin._themeLoaded = true;
|
527
|
+
PercentBarPlugin._themeRevision++;
|
528
|
+
|
529
|
+
this._requestRowRefresh();
|
530
|
+
};
|
531
|
+
/** @private
|
532
|
+
* @param {Object} e
|
533
|
+
*/
|
534
|
+
|
535
|
+
|
536
|
+
PercentBarPlugin.prototype._onPostSectionBinding = function (e) {
|
537
|
+
if (!PercentBarPlugin._themeLoaded) {
|
538
|
+
return;
|
539
|
+
}
|
540
|
+
|
541
|
+
var section = e["section"];
|
542
|
+
var dataRows =
|
543
|
+
/** @type{Array.<Object>} */
|
544
|
+
e["dataRows"];
|
545
|
+
var colCount = section.getColumnCount();
|
546
|
+
var fromR =
|
547
|
+
/** @type{number} */
|
548
|
+
e["fromRowIndex"];
|
549
|
+
var toR =
|
550
|
+
/** @type{number} */
|
551
|
+
e["toRowIndex"];
|
552
|
+
|
553
|
+
var textFormatting = this._hosts[0].getPlugin("TextFormattingPlugin"); // TODO: Plugin could be cache
|
554
|
+
|
555
|
+
|
556
|
+
var dv = e["dataSource"];
|
557
|
+
|
558
|
+
for (var c = 0; c < colCount; ++c) {
|
559
|
+
var pBarOpt = this._getColumnPercentBarOptions(c);
|
560
|
+
|
561
|
+
if (!pBarOpt) {
|
562
|
+
continue;
|
563
|
+
}
|
564
|
+
|
565
|
+
var field = pBarOpt["field"];
|
566
|
+
var colStats = pBarOpt["colStats"];
|
567
|
+
var barColor = pBarOpt["barColor"];
|
568
|
+
var movementColor = pBarOpt["useMovementColor"];
|
569
|
+
var textHidden = pBarOpt["textHidden"] != null ? pBarOpt["textHidden"] : false;
|
570
|
+
var zeroValueHidden = pBarOpt["zeroValueHidden"] != null ? pBarOpt["zeroValueHidden"] : false;
|
571
|
+
var max = colStats.getMax();
|
572
|
+
var formatter = textFormatting ? textFormatting.getFormatter(c) : null;
|
573
|
+
|
574
|
+
var pbAlignment = this._getPercentBarAlignment(c, pBarOpt);
|
575
|
+
|
576
|
+
var autoTextSizing = this._getAutoTextSizing(c, pBarOpt); // TODO: No need to retrieve this parameter in every loop
|
577
|
+
|
578
|
+
|
579
|
+
if (pBarOpt._curAlignment !== pbAlignment) {
|
580
|
+
pBarOpt._curAlignment = pbAlignment;
|
581
|
+
pBarOpt._maxTextWidth = 0; // Center alignment has an impact to text width
|
582
|
+
}
|
583
|
+
|
584
|
+
for (var r = fromR; r < toR; ++r) {
|
585
|
+
var cell = section.getCell(c, r, false);
|
586
|
+
|
587
|
+
if (!cell) {
|
588
|
+
continue;
|
589
|
+
}
|
590
|
+
|
591
|
+
var content = cell.getContent();
|
592
|
+
var percentBar = content ? content._percentBar : null;
|
593
|
+
|
594
|
+
if (!percentBar) {
|
595
|
+
// First time initilization
|
596
|
+
// WARNING: PercentBar will automatically injects _percentBar variable to the content element
|
597
|
+
percentBar = new PercentBar();
|
598
|
+
content = percentBar.getElement();
|
599
|
+
|
600
|
+
if (movementColor != null) {
|
601
|
+
percentBar._themeRevision = PercentBarPlugin._themeRevision;
|
602
|
+
}
|
603
|
+
} // Runtime update
|
604
|
+
|
605
|
+
|
606
|
+
if (autoTextSizing) {
|
607
|
+
// Max text width is checked for changes and may not be reapplied after this
|
608
|
+
if (pBarOpt._maxTextWidth) {
|
609
|
+
percentBar.setTextWidth(pBarOpt._maxTextWidth + pBarOpt["padding"]);
|
610
|
+
}
|
611
|
+
} else {
|
612
|
+
percentBar.setTextWidth(pBarOpt["textWidth"]);
|
613
|
+
}
|
614
|
+
|
615
|
+
percentBar.setAlignment(pbAlignment);
|
616
|
+
|
617
|
+
if (percentBar._themeRevision !== PercentBarPlugin._themeRevision) {
|
618
|
+
percentBar._themeRevision = PercentBarPlugin._themeRevision;
|
619
|
+
percentBar.updateBarColor(movementColor);
|
620
|
+
}
|
621
|
+
|
622
|
+
percentBar.useMovementColor(movementColor);
|
623
|
+
percentBar.setBarColor(barColor);
|
624
|
+
percentBar.hideText(textHidden);
|
625
|
+
percentBar.hideZeroValue(zeroValueHidden);
|
626
|
+
|
627
|
+
var rowData = this._getRowData(dataRows[r]); // WARNING: Group header rows have no row data
|
628
|
+
|
629
|
+
|
630
|
+
var value = rowData ? rowData[field] : NaN;
|
631
|
+
|
632
|
+
if (formatter) {
|
633
|
+
if (pBarOpt.percentageLabel) {
|
634
|
+
percentBar.setValue(value, max, false);
|
635
|
+
var percent = percentBar.getPercent(); // Value is between -100 and 100
|
636
|
+
|
637
|
+
percentBar.setText(formatter.formatValue(percent));
|
638
|
+
} else {
|
639
|
+
percentBar.setValue(value, max, formatter.formatValue(value));
|
640
|
+
}
|
641
|
+
} else {
|
642
|
+
var displayText = pBarOpt.percentageLabel ? null : value; // null to display percentage label
|
643
|
+
|
644
|
+
percentBar.setValue(value, max, displayText);
|
645
|
+
}
|
646
|
+
|
647
|
+
cell.setContent(content); // Ensure that percentBar is inserted into the DOM
|
648
|
+
}
|
649
|
+
|
650
|
+
if (autoTextSizing) {
|
651
|
+
this._updateTextSize(section, dv, c, pBarOpt["field"], max, formatter);
|
652
|
+
}
|
653
|
+
}
|
654
|
+
};
|
655
|
+
/** @private
|
656
|
+
* @return {Element}
|
657
|
+
*/
|
658
|
+
|
659
|
+
|
660
|
+
PercentBarPlugin.prototype._getHelper = function () {
|
661
|
+
var helper = PercentBarPlugin._helper;
|
662
|
+
|
663
|
+
if (!helper) {
|
664
|
+
helper = PercentBarPlugin._helper = Dom.div("percent-bar-helper");
|
665
|
+
helper.style = "visibility: hidden; position: fixed; bottom: -50px; left: -50px; white-space: pre;";
|
666
|
+
}
|
667
|
+
|
668
|
+
if (!helper.parentNode) {
|
669
|
+
document.body.appendChild(helper);
|
670
|
+
}
|
671
|
+
|
672
|
+
return helper;
|
673
|
+
};
|
674
|
+
/** @private
|
675
|
+
* @param {string} str
|
676
|
+
* @return {number}
|
677
|
+
*/
|
678
|
+
|
679
|
+
|
680
|
+
PercentBarPlugin.prototype._getTextWidth = function (str) {
|
681
|
+
var helper = this._getHelper();
|
682
|
+
|
683
|
+
helper.textContent = str;
|
684
|
+
var cw = helper.clientWidth; // Exclude padding
|
685
|
+
|
686
|
+
helper.removeChild(helper.lastChild); // Clean up resource
|
687
|
+
|
688
|
+
return cw;
|
689
|
+
};
|
690
|
+
/** @private
|
691
|
+
* @param {object} section
|
692
|
+
* @param {Object} dv DataView
|
693
|
+
* @param {number} c
|
694
|
+
* @param {string} field
|
695
|
+
* @param {number} max
|
696
|
+
* @param {object=} formatter
|
697
|
+
*/
|
698
|
+
|
699
|
+
|
700
|
+
PercentBarPlugin.prototype._updateTextSize = function (section, dv, c, field, max, formatter) {
|
701
|
+
var pBarOpt = this._getColumnPercentBarOptions(c);
|
702
|
+
|
703
|
+
var fi = section.getFirstIndexInView();
|
704
|
+
var li = section.getLastIndexInView();
|
705
|
+
var r;
|
706
|
+
var values = [];
|
707
|
+
|
708
|
+
for (r = fi; r <= li; ++r) {
|
709
|
+
var value = this._getData(dv, r, field);
|
710
|
+
|
711
|
+
if (formatter) {
|
712
|
+
value = formatter.formatValue(value);
|
713
|
+
} else {
|
714
|
+
value = (value / max * 1e4 | 0) / 100;
|
715
|
+
value = value + "%";
|
716
|
+
}
|
717
|
+
|
718
|
+
values.push(value);
|
719
|
+
}
|
720
|
+
|
721
|
+
var maxTextWidth = this._getTextWidth(values.join("\n"));
|
722
|
+
|
723
|
+
if (!pBarOpt["autoFitting"]) {
|
724
|
+
maxTextWidth = maxTextWidth > pBarOpt._maxTextWidth ? maxTextWidth : pBarOpt._maxTextWidth;
|
725
|
+
}
|
726
|
+
|
727
|
+
if (maxTextWidth !== pBarOpt._maxTextWidth) {
|
728
|
+
pBarOpt._maxTextWidth = maxTextWidth;
|
729
|
+
maxTextWidth += pBarOpt["padding"];
|
730
|
+
|
731
|
+
for (r = fi; r <= li; ++r) {
|
732
|
+
var cell = section.getCell(c, r, false);
|
733
|
+
|
734
|
+
if (!cell) {
|
735
|
+
continue;
|
736
|
+
}
|
737
|
+
|
738
|
+
var content = cell.getContent();
|
739
|
+
|
740
|
+
if (content && content._percentBar) {
|
741
|
+
content._percentBar.setTextWidth(maxTextWidth);
|
742
|
+
}
|
743
|
+
}
|
744
|
+
}
|
745
|
+
};
|
746
|
+
/** @private
|
747
|
+
* @param {Object} e
|
748
|
+
*/
|
749
|
+
|
750
|
+
|
751
|
+
PercentBarPlugin.prototype._renderer = function (e) {};
|
752
|
+
/** @private
|
753
|
+
* @param {Object} e
|
754
|
+
*/
|
755
|
+
|
756
|
+
|
757
|
+
PercentBarPlugin.prototype._onColumnAdded = function (e) {
|
758
|
+
if (e["context"]) {
|
759
|
+
this.setColumnPercentBar(e["colIndex"], e["context"]);
|
760
|
+
}
|
761
|
+
};
|
762
|
+
/** @private
|
763
|
+
* @param {Object} e
|
764
|
+
*/
|
765
|
+
|
766
|
+
|
767
|
+
PercentBarPlugin.prototype._onColumnRemoved = function (e) {
|
768
|
+
var colData =
|
769
|
+
/** @type{Object} */
|
770
|
+
e.columnData;
|
771
|
+
|
772
|
+
if (!colData || !colData["percentBar"]) {
|
773
|
+
return;
|
774
|
+
}
|
775
|
+
|
776
|
+
var pBarOpt = colData["percentBar"];
|
777
|
+
var sender = e.sender;
|
778
|
+
var dv = sender.getDataSource();
|
779
|
+
dv.enableColumnStats(pBarOpt["field"], false, pBarOpt["refId"]);
|
780
|
+
colData["percentBar"] = null;
|
781
|
+
};
|
782
|
+
/** @private
|
783
|
+
*/
|
784
|
+
|
785
|
+
|
786
|
+
PercentBarPlugin.prototype._requestRowRefresh = function () {
|
787
|
+
for (var i = this._hosts.length; --i >= 0;) {
|
788
|
+
this._hosts[i].requestRowRefresh();
|
789
|
+
}
|
790
|
+
};
|
791
|
+
/** @public
|
792
|
+
*/
|
793
|
+
|
794
|
+
|
795
|
+
PercentBarPlugin.prototype.reloadThemeColors = function () {
|
796
|
+
PercentBarPlugin._themeLoaded = ElfUtil.themeReady = null;
|
797
|
+
ElfUtil.getThemeColors().then(this._onThemeLoaded);
|
798
|
+
};
|
799
|
+
|
800
|
+
export default PercentBarPlugin;
|
801
|
+
export { PercentBarPlugin, PercentBarPlugin as PercentBar, PercentBarPlugin as PercentBarExtension };
|