@refinitiv-ui/efx-grid 0.0.0-dev.12023565035.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-dragging/es6/ColumnDragging.d.ts +51 -0
- package/lib/column-dragging/es6/ColumnDragging.js +968 -0
- package/lib/column-dragging/es6/index.d.ts +1 -0
- package/lib/column-dragging/es6/index.js +1 -0
- package/lib/column-format-dialog/index.d.ts +2 -0
- package/lib/column-format-dialog/index.js +2 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +77 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2688 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +982 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +2 -0
- package/lib/column-selection-dialog/index.js +2 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +66 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +2034 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +258 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +8 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +8 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +25 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +8 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +8 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +8 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +5 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +8 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +33910 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +43 -0
- package/lib/core/es6/data/DataCache.js +597 -0
- package/lib/core/es6/data/DataTable.d.ts +156 -0
- package/lib/core/es6/data/DataTable.js +2206 -0
- package/lib/core/es6/data/DataView.d.ts +332 -0
- package/lib/core/es6/data/DataView.js +4144 -0
- package/lib/core/es6/data/Segment.d.ts +91 -0
- package/lib/core/es6/data/Segment.js +1001 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +84 -0
- package/lib/core/es6/data/SegmentCollection.js +713 -0
- package/lib/core/es6/data/WrappedView.d.ts +290 -0
- package/lib/core/es6/data/WrappedView.js +1320 -0
- package/lib/core/es6/grid/Core.d.ts +455 -0
- package/lib/core/es6/grid/Core.js +6196 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +212 -0
- package/lib/core/es6/grid/ILayoutGrid.js +706 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +37 -0
- package/lib/core/es6/grid/LayoutGrid.js +2975 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +1241 -0
- package/lib/core/es6/grid/components/Cell.d.ts +52 -0
- package/lib/core/es6/grid/components/Cell.js +826 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +130 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +40 -0
- package/lib/core/es6/grid/components/CellSpans.js +368 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +618 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +718 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +28 -0
- package/lib/core/es6/grid/components/HScrollbar.js +241 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +63 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1413 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +342 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +166 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +155 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1977 -0
- package/lib/core/es6/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/core/es6/grid/util/CellBoundPainter.js +171 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +679 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +54 -0
- package/lib/core/es6/grid/util/SelectionList.js +491 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +92 -0
- package/lib/core/es6/grid/util/TrackLayout.js +902 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +20 -0
- package/lib/core/es6/grid/util/util.js +391 -0
- package/lib/core/es6/index.d.ts +79 -0
- package/lib/core/es6/index.js +125 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +2 -0
- package/lib/filter-dialog/index.js +2 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +52 -0
- package/lib/filter-dialog/lib/checkbox-list.js +444 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +75 -0
- package/lib/filter-dialog/lib/filter-dialog.js +1160 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +40 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +42 -0
- package/lib/filter-dialog/themes/base.less +191 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +15 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +45 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +103 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/CoralIconFormatter.js +50 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +45 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +85 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +71 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/EFButtonFormatter.js +45 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +78 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +60 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/EFIconFormatter.js +50 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +45 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +132 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +76 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +26 -0
- package/lib/formatters/es6/FormatterBuilder.js +493 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +23 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +66 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +35 -0
- package/lib/formatters/es6/index.d.ts +64 -0
- package/lib/formatters/es6/index.js +88 -0
- package/lib/grid/index.d.ts +2 -0
- package/lib/grid/index.js +3 -0
- package/lib/grid/lib/efx-grid.d.ts +53 -0
- package/lib/grid/lib/efx-grid.js +444 -0
- package/lib/grid/themes/base.less +137 -0
- package/lib/grid/themes/ds/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/dark/efx-grid.js +4 -0
- package/lib/grid/themes/ds/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/dark.js +3 -0
- package/lib/grid/themes/ds/efx-grid.less +207 -0
- package/lib/grid/themes/ds/index.less +3 -0
- package/lib/grid/themes/ds/light/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/light/efx-grid.js +4 -0
- package/lib/grid/themes/ds/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/light.js +3 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +127 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +100 -0
- package/lib/index.js +100 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +115 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +1182 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +54547 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +174 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1203 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +43 -0
- package/lib/rt-grid/es6/DataConnector.js +290 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +40 -0
- package/lib/rt-grid/es6/FieldDefinition.js +560 -0
- package/lib/rt-grid/es6/Grid.d.ts +376 -0
- package/lib/rt-grid/es6/Grid.js +4653 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +40 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +251 -0
- package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
- package/lib/rt-grid/es6/RowDefSorter.js +231 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +156 -0
- package/lib/rt-grid/es6/RowDefinition.js +1478 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +36 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +537 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +68 -0
- package/lib/statistics-row/es6/StatisticsRow.js +807 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +46 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +617 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +70 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1695 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +82 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1704 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +817 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +91 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +617 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +110 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +2028 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1010 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +77 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +1405 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +160 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +2155 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +100 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +1513 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +519 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +453 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +138 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +41 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +285 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +33 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +303 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +64 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +1027 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +45 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +401 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +148 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +2671 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +58 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +433 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +804 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +50 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +234 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +13 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +23 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +33 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +794 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +39 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +494 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +57 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +238 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/LEDGuage.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/LEDGuage.js +261 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +56 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +514 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +81 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +1479 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +159 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +2568 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +123 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1728 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +75 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1447 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +64 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +615 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +72 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +543 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +27 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +142 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1183 -0
- package/lib/tr-grid-util/es6/Color.d.ts +40 -0
- package/lib/tr-grid-util/es6/Color.js +210 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +16 -0
- package/lib/tr-grid-util/es6/Deferred.js +108 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +96 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +350 -0
- package/lib/tr-grid-util/es6/DragUI.d.ts +20 -0
- package/lib/tr-grid-util/es6/DragUI.js +263 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +12 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +134 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +84 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +164 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +46 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +637 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +24 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +120 -0
- package/lib/tr-grid-util/es6/ExpressionParser.d.ts +10 -0
- package/lib/tr-grid-util/es6/ExpressionParser.js +408 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +440 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +54 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +580 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +56 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +255 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +86 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +1055 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +74 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.js +642 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +62 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +250 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +40 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +611 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +85 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +528 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +163 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +98 -0
- package/lib/tr-grid-util/es6/Popup.js +991 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +260 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +228 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +60 -0
- package/lib/tr-grid-util/es6/RowPainter.js +448 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +78 -0
- package/lib/tr-grid-util/es6/SubTable.js +642 -0
- package/lib/tr-grid-util/es6/Table.d.ts +146 -0
- package/lib/tr-grid-util/es6/Table.js +832 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +16 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +268 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +66 -0
- package/lib/tr-grid-util/es6/Util.js +508 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +890 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +65 -0
- package/lib/tr-grid-util/es6/index.js +102 -0
- package/lib/tr-grid-util/es6/jet/Adc.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/Adc.js +268 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +151 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +136 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +860 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +71 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +82 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +890 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +48 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +82 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.d.ts +7 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.js +25 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +111 -0
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +46 -0
- package/lib/types/es6/CellSelection.d.ts +70 -0
- package/lib/types/es6/Checkbox.d.ts +82 -0
- package/lib/types/es6/ColumnDragging.d.ts +51 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +92 -0
- package/lib/types/es6/ColumnGrouping.d.ts +107 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +77 -0
- package/lib/types/es6/ColumnStack.d.ts +160 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +289 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +23 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +32 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +100 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +20 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +21 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +20 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +43 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +156 -0
- package/lib/types/es6/Core/data/DataView.d.ts +332 -0
- package/lib/types/es6/Core/data/Segment.d.ts +91 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +84 -0
- package/lib/types/es6/Core/data/WrappedView.d.ts +290 -0
- package/lib/types/es6/Core/grid/Core.d.ts +455 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +212 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +37 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +52 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +40 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +63 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +155 -0
- package/lib/types/es6/Core/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +54 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +92 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +20 -0
- package/lib/types/es6/Core/index.d.ts +79 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +20 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +21 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +20 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +58 -0
- package/lib/types/es6/Extensions.d.ts +63 -0
- package/lib/types/es6/FilterInput.d.ts +64 -0
- package/lib/types/es6/FormatterBuilder.d.ts +26 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +45 -0
- package/lib/types/es6/InCellEditing.d.ts +148 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +41 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +58 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +33 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +176 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +43 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +413 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +156 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +36 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +64 -0
- package/lib/types/es6/RowDragging.d.ts +81 -0
- package/lib/types/es6/RowFiltering.d.ts +159 -0
- package/lib/types/es6/RowGrouping.d.ts +123 -0
- package/lib/types/es6/RowSegmenting.d.ts +109 -0
- package/lib/types/es6/RowSelection.d.ts +75 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +23 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +68 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +72 -0
- package/lib/types/es6/TitleWrap.d.ts +27 -0
- package/lib/types/es6/Zoom.d.ts +52 -0
- package/lib/types/es6/index.d.ts +80 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +7 -0
- package/lib/versions.json +37 -0
- package/lib/window-exporter.js +18 -0
- package/lib/zoom/es6/Zoom.d.ts +52 -0
- package/lib/zoom/es6/Zoom.js +438 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +69 -0
@@ -0,0 +1,807 @@
|
|
1
|
+
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
|
+
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
3
|
+
|
4
|
+
/** @typedef {Object} StatisticsRowPlugin~Options
|
5
|
+
* @description Available options describing `statisticsRow` object specified in grid's option
|
6
|
+
* @property {Array=} rows=null Array of StatisticsRowPlugin~RowOptions
|
7
|
+
* @property {string=} invalidText="" Text to be shown for invalid statistic (i.e. Not a Number value)
|
8
|
+
* @property {boolean=} noColoring=false If enabled, all conditional coloring (i.e. tick coloring) will not automatically be applied.
|
9
|
+
* @property {boolean=} noFormatting=false If enabled, all formatting (i.e. decimal places) will not automatically be applied.
|
10
|
+
* @property {boolean=} useAllData=true If disabled, filtered out rows will not be included in the calculation.
|
11
|
+
* @property {Function=} postCalculation Function handler excuted after statistics calculation and before default rendering
|
12
|
+
* @property {Function=} postRendering Function handler excuted after default rendering
|
13
|
+
*/
|
14
|
+
|
15
|
+
/** @typedef {Object} StatisticsRowPlugin~ColumnOptions
|
16
|
+
* @description Available column options specified in grid's column configuration
|
17
|
+
* @property {(boolean|string)=} statistics=false If enabled, the column is qualified for the calculation. If "label" is specified, the column will be used to show statistic label
|
18
|
+
*/
|
19
|
+
|
20
|
+
/** @typedef {Object} StatisticsRowPlugin~RowOptions
|
21
|
+
* @description Available options describing statistics row specified as item in `rows` array property.
|
22
|
+
* @property {string=} placement="footer" Available footer are "header", "title", and "footer"
|
23
|
+
* @property {string=} statistic="" Statistic to be calculated. Predefined values are "average", "min", "max", "count", and "sum"
|
24
|
+
* @property {string=} label=null By default, label will be statistics name.
|
25
|
+
* @property {string=} id="" Text Id used for row referencing in extension's APIs
|
26
|
+
*/
|
27
|
+
|
28
|
+
/** @typedef {string|number} StatisticsRowPlugin~RowReference
|
29
|
+
* @description Statistics Row can be referenced by one of the following ways: <br>
|
30
|
+
* 1. Number as index counted from top to bottom and only for the statistics rows (excluding normal rows) <br>
|
31
|
+
* 2. String as statistic (e.g., "average", "min", "max") <br>
|
32
|
+
* 3. String as id defined in the row configuration object
|
33
|
+
*/
|
34
|
+
|
35
|
+
/** @typedef {Object} StatisticsRowPlugin~Stats
|
36
|
+
* @description Statistics Object contains calculated statistic values that will be provided in `postCalculation` and `postRendering` events
|
37
|
+
* @property {string=} field
|
38
|
+
* @property {boolean=} label Indicating the column is used to show label
|
39
|
+
* @property {number=} count Count of all valid values in the column. Invalid values such as empty, null, undefined, string values are excluded. For label column, counting method will include only truthy values except number 0, and exclude all other falsy values.
|
40
|
+
* @property {number=} sum Summation
|
41
|
+
* @property {number=} average Average
|
42
|
+
* @property {number=} min Minimum
|
43
|
+
* @property {number=} max Maximum
|
44
|
+
*/
|
45
|
+
|
46
|
+
/** @event StatisticsRowPlugin#postCalculation
|
47
|
+
* @description `postCalculation` fired after all basic statistics calculation and before default rendering. This is a place where you should calculate your custom statistics.
|
48
|
+
* @type {Object}
|
49
|
+
* @property {number} colCount
|
50
|
+
* @property {Array.<string>} fields Fields for current columns
|
51
|
+
* @property {Array.<StatisticsRowPlugin~Stats>} statistics Array of statistic values. You should add your custom statistics to the object
|
52
|
+
* @property {Array.<Object>} dataRows Data row used for the calculation
|
53
|
+
* @property {Object} dataView Class object representing current view of grid
|
54
|
+
* @property {Object} dataTable Class object contains all data
|
55
|
+
*/
|
56
|
+
|
57
|
+
/** @event StatisticsRowPlugin#postRendering
|
58
|
+
* @description `postRendering` fired after all statistics calculation and default rendering. This is a place where you override default rendering
|
59
|
+
* @type {Object}
|
60
|
+
* @property {number} colCount
|
61
|
+
* @property {Array.<string>} fields Fields for current columns
|
62
|
+
* @property {Array.<StatisticsRowPlugin~Stats>} statistics Array of statistic values
|
63
|
+
* @property {Object} headerSection ILayoutGrid UI Section representing header part
|
64
|
+
* @property {Object} footerSection ILayoutGrid UI Section representing footer part
|
65
|
+
* @property {Array.<Object>} headerRows Definition objects given at the configuration time
|
66
|
+
* @property {Array.<Object>} footerRows Definition objects given at the configuration time
|
67
|
+
*/
|
68
|
+
|
69
|
+
/** @constructor
|
70
|
+
* @param {StatisticsRowPlugin~Options=} options
|
71
|
+
* @extends {GridPlugin}
|
72
|
+
*/
|
73
|
+
var StatisticsRowPlugin = function (options) {
|
74
|
+
this._onPostDataSourceChanged = this._onPostDataSourceChanged.bind(this);
|
75
|
+
this._onPostSectionDataBinding = this._onPostSectionDataBinding.bind(this);
|
76
|
+
this._onColumnAdded = this._onColumnAdded.bind(this);
|
77
|
+
this._onExtensionLoaded = this._onExtensionLoaded.bind(this);
|
78
|
+
this._onDataChanged = this._onDataChanged.bind(this);
|
79
|
+
this._onRowRemoved = this._onRowRemoved.bind(this);
|
80
|
+
|
81
|
+
this._hosts = [];
|
82
|
+
this._headerRows = [];
|
83
|
+
this._footerRows = [];
|
84
|
+
this._rows = [];
|
85
|
+
|
86
|
+
if (options) {
|
87
|
+
this.config({ statisticsRow: options });
|
88
|
+
}
|
89
|
+
};
|
90
|
+
Ext.inherits(StatisticsRowPlugin, GridPlugin);
|
91
|
+
|
92
|
+
/** @type {Object.<string, string>}
|
93
|
+
* @private
|
94
|
+
*/
|
95
|
+
StatisticsRowPlugin._aliases = {
|
96
|
+
"average": "average",
|
97
|
+
"avg": "average",
|
98
|
+
"mean": "average",
|
99
|
+
"count": "count",
|
100
|
+
"max": "max",
|
101
|
+
"maximum": "max",
|
102
|
+
"min": "min",
|
103
|
+
"minimum": "min",
|
104
|
+
"sum": "sum",
|
105
|
+
"summation": "sum"
|
106
|
+
};
|
107
|
+
/** @type {Object.<string, string>}
|
108
|
+
* @private
|
109
|
+
*/
|
110
|
+
StatisticsRowPlugin._defaultLabels = {
|
111
|
+
"average": "Average",
|
112
|
+
"count": "Count",
|
113
|
+
"max": "Maximum",
|
114
|
+
"min": "Minimum",
|
115
|
+
"sum": "Summation"
|
116
|
+
};
|
117
|
+
|
118
|
+
/** @type {string}
|
119
|
+
* @private
|
120
|
+
*/
|
121
|
+
StatisticsRowPlugin.prototype._invalidText = "";
|
122
|
+
/** @type {boolean}
|
123
|
+
* @private
|
124
|
+
*/
|
125
|
+
StatisticsRowPlugin.prototype._noColoring = false;
|
126
|
+
/** @type {boolean}
|
127
|
+
* @private
|
128
|
+
*/
|
129
|
+
StatisticsRowPlugin.prototype._noFormatting = false;
|
130
|
+
|
131
|
+
/** @type {Array}
|
132
|
+
* @private
|
133
|
+
*/
|
134
|
+
StatisticsRowPlugin.prototype._headerRows = null;
|
135
|
+
/** @type {Array}
|
136
|
+
* @private
|
137
|
+
*/
|
138
|
+
StatisticsRowPlugin.prototype._footerRows = null;
|
139
|
+
/** @type {Array}
|
140
|
+
* @private
|
141
|
+
*/
|
142
|
+
StatisticsRowPlugin.prototype._rows = null;
|
143
|
+
/** @type {Object}
|
144
|
+
* @private
|
145
|
+
* @description Grid section object
|
146
|
+
*/
|
147
|
+
StatisticsRowPlugin.prototype._headerSect = null;
|
148
|
+
/** @type {Object}
|
149
|
+
* @private
|
150
|
+
* @description Grid section object
|
151
|
+
*/
|
152
|
+
StatisticsRowPlugin.prototype._footerSect = null;
|
153
|
+
/** @type {Object}
|
154
|
+
* @private
|
155
|
+
* @description TextFormattingExtension
|
156
|
+
*/
|
157
|
+
StatisticsRowPlugin.prototype._tfExt = null;
|
158
|
+
/** @type {Object}
|
159
|
+
* @private
|
160
|
+
* @description ConditionalColoringExtension
|
161
|
+
*/
|
162
|
+
StatisticsRowPlugin.prototype._ccExt = null;
|
163
|
+
/** @type {boolean}
|
164
|
+
* @private
|
165
|
+
*/
|
166
|
+
StatisticsRowPlugin.prototype._disabledUIs = false;
|
167
|
+
/** @type {boolean}
|
168
|
+
* @private
|
169
|
+
*/
|
170
|
+
StatisticsRowPlugin.prototype._useAllData = true;
|
171
|
+
/** @public
|
172
|
+
* @return {string}
|
173
|
+
*/
|
174
|
+
StatisticsRowPlugin.prototype.getName = function () {
|
175
|
+
return "StatisticsRowPlugin"; // Read Only
|
176
|
+
};
|
177
|
+
|
178
|
+
/** @public
|
179
|
+
* @param {Object} host core grid instance
|
180
|
+
* @param {Object=} options
|
181
|
+
*/
|
182
|
+
StatisticsRowPlugin.prototype.initialize = function (host, options) {
|
183
|
+
if (this._hosts.indexOf(host) >= 0) { return; }
|
184
|
+
|
185
|
+
this._hosts.push(host);
|
186
|
+
setTimeout(this._onExtensionLoaded, 0);
|
187
|
+
|
188
|
+
this._disabledUIs = true; // Prevent unnecessary updates
|
189
|
+
this.config(options);
|
190
|
+
this._disabledUIs = false;
|
191
|
+
|
192
|
+
host.getDataSource().listen("dataChanged", this._onDataChanged);
|
193
|
+
host.listen("rowRemoved", this._onRowRemoved);
|
194
|
+
host.listen("postDataSourceChanged", this._onPostDataSourceChanged);
|
195
|
+
host.listen("postSectionDataBinding", this._onPostSectionDataBinding);
|
196
|
+
host.listen("columnAdded", this._onColumnAdded);
|
197
|
+
|
198
|
+
// In case of lazy loading
|
199
|
+
var title = host.getSection("title");
|
200
|
+
if(title) {
|
201
|
+
this._onPostDataSourceChanged();
|
202
|
+
}
|
203
|
+
};
|
204
|
+
|
205
|
+
/** @private
|
206
|
+
*/
|
207
|
+
StatisticsRowPlugin.prototype._onExtensionLoaded = function () {
|
208
|
+
if(!this._tfExt || !this._ccExt) {
|
209
|
+
var host = this._hosts[0];
|
210
|
+
if(host) {
|
211
|
+
this._tfExt = host.getPlugin("TextFormattingPlugin");
|
212
|
+
this._ccExt = host.getPlugin("ConditionalColoringPlugin");
|
213
|
+
}
|
214
|
+
}
|
215
|
+
};
|
216
|
+
/** @public
|
217
|
+
* @param {Object} host core grid instance
|
218
|
+
*/
|
219
|
+
StatisticsRowPlugin.prototype.unload = function (host) {
|
220
|
+
var at = this._hosts.indexOf(host);
|
221
|
+
if (at < 0) { return; }
|
222
|
+
this._hosts.splice(at, 1);
|
223
|
+
|
224
|
+
host.getDataSource().unlisten("dataChanged", this._onDataChanged);
|
225
|
+
host.unlisten("rowRemoved", this._onRowRemoved);
|
226
|
+
host.unlisten("postDataSourceChanged", this._onPostDataSourceChanged);
|
227
|
+
host.unlisten("postSectionDataBinding", this._onPostSectionDataBinding);
|
228
|
+
host.unlisten("columnAdded", this._onColumnAdded);
|
229
|
+
|
230
|
+
if (!this._hosts.length) {
|
231
|
+
this._headerSect = this._footerSect = null;
|
232
|
+
this._tfExt = this._ccExt = null;
|
233
|
+
}
|
234
|
+
|
235
|
+
this._dispose();
|
236
|
+
};
|
237
|
+
|
238
|
+
/** @public
|
239
|
+
* @param {Object=} options Grid configuration object
|
240
|
+
*/
|
241
|
+
StatisticsRowPlugin.prototype.config = function (options) {
|
242
|
+
if (!options) { return; }
|
243
|
+
|
244
|
+
var extOptions = options.statisticsRow;
|
245
|
+
if(extOptions) {
|
246
|
+
if(extOptions.invalidText != null) {
|
247
|
+
this._invalidText = extOptions.invalidText;
|
248
|
+
}
|
249
|
+
if(extOptions.noColoring != null) {
|
250
|
+
this._noColoring = extOptions.noColoring ? true : false;
|
251
|
+
}
|
252
|
+
if(extOptions.noFormatting != null) {
|
253
|
+
this._noFormatting = extOptions.noFormatting ? true : false;
|
254
|
+
}
|
255
|
+
if(extOptions.useAllData != null) {
|
256
|
+
this._useAllData = extOptions.useAllData ? true : false;
|
257
|
+
}
|
258
|
+
this.addListener(extOptions, "postCalculation");
|
259
|
+
this.addListener(extOptions, "postRendering");
|
260
|
+
|
261
|
+
if(extOptions.rows != null) {
|
262
|
+
this.setStatisticsRows(extOptions.rows);
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
var columns = options.columns;
|
267
|
+
var colCount = columns ? columns.length : 0;
|
268
|
+
for(var c = 0; c < colCount; ++c) {
|
269
|
+
var colOptions = columns[c];
|
270
|
+
this._configColumn(c, colOptions);
|
271
|
+
}
|
272
|
+
};
|
273
|
+
|
274
|
+
/** @public
|
275
|
+
* @param {Object=} gridOptions
|
276
|
+
* @return {!Object}
|
277
|
+
*/
|
278
|
+
StatisticsRowPlugin.prototype.getConfigObject = function (gridOptions) {
|
279
|
+
var obj = gridOptions || {};
|
280
|
+
|
281
|
+
var columns = obj.columns;
|
282
|
+
if(!columns) {
|
283
|
+
columns = obj.columns = [];
|
284
|
+
}
|
285
|
+
|
286
|
+
var len = this.getColumnCount();
|
287
|
+
for(var i = 0; i < len; ++i) {
|
288
|
+
var column = columns[i];
|
289
|
+
if(!column) {
|
290
|
+
column = columns[i] = {};
|
291
|
+
}
|
292
|
+
|
293
|
+
var colOptions = this._getExtColumnConfig(i);
|
294
|
+
if(colOptions) {
|
295
|
+
if(colOptions.label) {
|
296
|
+
column.statistics = "label";
|
297
|
+
} else if(colOptions.statistics) {
|
298
|
+
column.statistics = true;
|
299
|
+
}
|
300
|
+
}
|
301
|
+
}
|
302
|
+
|
303
|
+
var extOptions = obj.statisticsRow;
|
304
|
+
if(!extOptions) {
|
305
|
+
extOptions = obj.statisticsRow = {};
|
306
|
+
}
|
307
|
+
|
308
|
+
if(this._rows.length > 0) {
|
309
|
+
extOptions.rows = this._rows;
|
310
|
+
}
|
311
|
+
|
312
|
+
if(this._invalidText) {
|
313
|
+
extOptions.invalidText = this._invalidText;
|
314
|
+
}
|
315
|
+
|
316
|
+
if(this._noColoring) {
|
317
|
+
extOptions.noColoring = this._noColoring;
|
318
|
+
}
|
319
|
+
|
320
|
+
if(this._noFormatting) {
|
321
|
+
extOptions.noFormatting = this._noFormatting;
|
322
|
+
}
|
323
|
+
|
324
|
+
if(!this._useAllData) {
|
325
|
+
extOptions.useAllData = this._useAllData;
|
326
|
+
}
|
327
|
+
|
328
|
+
return obj;
|
329
|
+
};
|
330
|
+
|
331
|
+
/** Remove all existing statistics rows and create new rows based on the given inputs. Use null to remove all rows.
|
332
|
+
* @public
|
333
|
+
* @param {Array.<StatisticsRowPlugin~RowOptions>} rows
|
334
|
+
*/
|
335
|
+
StatisticsRowPlugin.prototype.setStatisticsRows = function(rows) {
|
336
|
+
var rowCount = rows ? rows.length : 0;
|
337
|
+
this._headerRows.length = 0;
|
338
|
+
this._footerRows.length = 0;
|
339
|
+
for(var r = 0; r < rowCount; ++r) {
|
340
|
+
var row = this._prepareStatRow(rows[r]);
|
341
|
+
|
342
|
+
if(row.placement === "header") {
|
343
|
+
this._headerRows.push(row);
|
344
|
+
} else {
|
345
|
+
this._footerRows.push(row);
|
346
|
+
}
|
347
|
+
}
|
348
|
+
this._rows = this._headerRows.concat(this._footerRows);
|
349
|
+
|
350
|
+
this._prepareSections();
|
351
|
+
this._updateUIs();
|
352
|
+
};
|
353
|
+
/** Get all existng statistics rows
|
354
|
+
* @public
|
355
|
+
* @return {Array.<StatisticsRowPlugin~RowOptions>}
|
356
|
+
*/
|
357
|
+
StatisticsRowPlugin.prototype.getStatisticsRows = function() {
|
358
|
+
return this._rows.slice(); // Clone a copy for users
|
359
|
+
};
|
360
|
+
|
361
|
+
/** Normalize user inputs
|
362
|
+
* @private
|
363
|
+
* @param {StatisticsRowPlugin~RowOptions} row
|
364
|
+
* @return {StatisticsRowPlugin~RowOptions}
|
365
|
+
*/
|
366
|
+
StatisticsRowPlugin.prototype._prepareStatRow = function(row) {
|
367
|
+
if(!row) {
|
368
|
+
return null;
|
369
|
+
}
|
370
|
+
var placement = row.placement;
|
371
|
+
if(placement === "header" || placement === "title") {
|
372
|
+
row.placement = "header";
|
373
|
+
} else {
|
374
|
+
row.placement = "footer";
|
375
|
+
}
|
376
|
+
var statistic = row.statistic || row.statistics;
|
377
|
+
if(row.statistics) { // Handle alias
|
378
|
+
row.statistics = null;
|
379
|
+
}
|
380
|
+
if(statistic) {
|
381
|
+
var predefined = StatisticsRowPlugin._aliases[statistic.toLowerCase()];
|
382
|
+
if(predefined) {
|
383
|
+
statistic = predefined;
|
384
|
+
}
|
385
|
+
}
|
386
|
+
row.statistic = statistic || "custom";
|
387
|
+
|
388
|
+
row.cachedData = {}; // WARNING: This will get returned by getConfigData() method
|
389
|
+
|
390
|
+
return row;
|
391
|
+
};
|
392
|
+
/** @private
|
393
|
+
* @param {StatisticsRowPlugin~RowReference} rowRef
|
394
|
+
* @return {number}
|
395
|
+
*/
|
396
|
+
StatisticsRowPlugin.prototype._getStatRowIndex = function(rowRef) {
|
397
|
+
var rowIndex = -1;
|
398
|
+
if(typeof rowRef === "string" && rowRef) {
|
399
|
+
var rowCount = this._rows.length;
|
400
|
+
for(var i = 0; i < rowCount; ++i) {
|
401
|
+
var row = this._rows[i];
|
402
|
+
if(row.statistic === rowRef) {
|
403
|
+
rowIndex = i;
|
404
|
+
break;
|
405
|
+
} else if(row.id === rowRef) {
|
406
|
+
rowIndex = i;
|
407
|
+
break;
|
408
|
+
}
|
409
|
+
}
|
410
|
+
} else {
|
411
|
+
if(typeof rowRef === "number") {
|
412
|
+
rowIndex = rowRef;
|
413
|
+
} else if(rowRef) {
|
414
|
+
rowIndex = +rowRef;
|
415
|
+
if(rowIndex !== rowIndex) {
|
416
|
+
rowIndex = -1;
|
417
|
+
}
|
418
|
+
}
|
419
|
+
|
420
|
+
if(rowIndex < 0 || rowIndex >= this._rows.length) {
|
421
|
+
rowIndex = -1;
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
return rowIndex;
|
426
|
+
};
|
427
|
+
|
428
|
+
/** Replace and update existing statistics row. Placement and order of the row cannot be changed. Use setStatisticsRows() to update multiple rows at once.
|
429
|
+
* @public
|
430
|
+
* @param {StatisticsRowPlugin~RowReference} rowRef Index, stat, or id
|
431
|
+
* @param {StatisticsRowPlugin~RowOptions} options The given configuration object cannot be null nor the same existing object.
|
432
|
+
* @return {boolean} Returns true if there is any change, otherwise returns false
|
433
|
+
*/
|
434
|
+
StatisticsRowPlugin.prototype.setStatisticsRow = function(rowRef, options) {
|
435
|
+
var rowIndex = this._getStatRowIndex(rowRef);
|
436
|
+
var prevRow = this._rows[rowIndex];
|
437
|
+
if(!prevRow || prevRow === options) {
|
438
|
+
return false;
|
439
|
+
}
|
440
|
+
|
441
|
+
var row = this._prepareStatRow(options);
|
442
|
+
if(!row) {
|
443
|
+
return false;
|
444
|
+
}
|
445
|
+
|
446
|
+
row.placement = prevRow.placement; // Position cannot be changed
|
447
|
+
var subset = (row.placement === "header") ? this._headerRows : this._footerRows;
|
448
|
+
var subRowIndex = subset.indexOf(prevRow);
|
449
|
+
|
450
|
+
this._rows[rowIndex] = row;
|
451
|
+
subset[subRowIndex] = row;
|
452
|
+
|
453
|
+
this._updateUIs();
|
454
|
+
return true;
|
455
|
+
};
|
456
|
+
/** Add new statistic row at the bottom of either header or footer section
|
457
|
+
* @public
|
458
|
+
* @param {StatisticsRowPlugin~RowOptions} options The given configuration object cannot be null nor the same existing object
|
459
|
+
*/
|
460
|
+
StatisticsRowPlugin.prototype.addStatisticsRow = function(options) {
|
461
|
+
var row = this._prepareStatRow(options);
|
462
|
+
var rowIndex = this._rows.indexOf(row);
|
463
|
+
if(!row || rowIndex >= 0) {
|
464
|
+
return;
|
465
|
+
}
|
466
|
+
if(row.placement === "header") {
|
467
|
+
this._headerRows.push(row);
|
468
|
+
} else {
|
469
|
+
this._footerRows.push(row);
|
470
|
+
}
|
471
|
+
|
472
|
+
this._rows = this._headerRows.concat(this._footerRows);
|
473
|
+
|
474
|
+
this._prepareSections();
|
475
|
+
this._updateUIs();
|
476
|
+
};
|
477
|
+
/** Remove existing statistics row
|
478
|
+
* @public
|
479
|
+
* @param {StatisticsRowPlugin~RowReference} rowRef Index, stat, or id
|
480
|
+
*/
|
481
|
+
StatisticsRowPlugin.prototype.removeStatisticsRow = function(rowRef) {
|
482
|
+
var rowIndex = this._getStatRowIndex(rowRef);
|
483
|
+
if(rowIndex < 0) {
|
484
|
+
return;
|
485
|
+
}
|
486
|
+
var row = this._rows[rowIndex];
|
487
|
+
var subset = (row.placement === "header") ? this._headerRows : this._footerRows;
|
488
|
+
var subRowIndex = subset.indexOf(row);
|
489
|
+
|
490
|
+
this._rows.splice(rowIndex, 1);
|
491
|
+
subset.splice(subRowIndex, 1);
|
492
|
+
|
493
|
+
this._prepareSections();
|
494
|
+
this._updateUIs();
|
495
|
+
};
|
496
|
+
// getStatisticsValues(rowRef):Object
|
497
|
+
|
498
|
+
/** @private
|
499
|
+
* @param {number} colIndex
|
500
|
+
* @param {number} columnConfig
|
501
|
+
*/
|
502
|
+
StatisticsRowPlugin.prototype._configColumn = function(colIndex, columnConfig) {
|
503
|
+
if(columnConfig) {
|
504
|
+
var statistics = columnConfig["statistics"] || columnConfig["statistic"];
|
505
|
+
if(!statistics) {
|
506
|
+
return;
|
507
|
+
}
|
508
|
+
|
509
|
+
var colData = this._newColumnData(colIndex);
|
510
|
+
var options = colData["statisticsRow"];
|
511
|
+
if(!options) {
|
512
|
+
options = colData["statisticsRow"] = {};
|
513
|
+
}
|
514
|
+
if(statistics === "label") {
|
515
|
+
options.label = true;
|
516
|
+
} else {
|
517
|
+
options.statistics = true;
|
518
|
+
}
|
519
|
+
}
|
520
|
+
};
|
521
|
+
/** @private
|
522
|
+
* @param {number} colIndex
|
523
|
+
* @return {Object}
|
524
|
+
*/
|
525
|
+
StatisticsRowPlugin.prototype._getExtColumnConfig = function(colIndex) {
|
526
|
+
return this._getColumnOption(colIndex, "statisticsRow") || null;
|
527
|
+
};
|
528
|
+
|
529
|
+
/** @private
|
530
|
+
* @param {Object=} e
|
531
|
+
*/
|
532
|
+
StatisticsRowPlugin.prototype._onColumnAdded = function (e) {
|
533
|
+
if(e.context && e.colIndex != null) {
|
534
|
+
this._configColumn(e.colIndex, e.context);
|
535
|
+
}
|
536
|
+
};
|
537
|
+
|
538
|
+
/** @private
|
539
|
+
*/
|
540
|
+
StatisticsRowPlugin.prototype._prepareSections = function () {
|
541
|
+
var host = this._hosts[0];
|
542
|
+
if(!host || this._disabledUIs) {
|
543
|
+
return;
|
544
|
+
}
|
545
|
+
|
546
|
+
var contentSect = host.getSection("content");
|
547
|
+
var sectIndex, section;
|
548
|
+
var rowHeight = host.getDefaultRowHeight();
|
549
|
+
if(this._headerRows.length) {
|
550
|
+
section = this._headerSect;
|
551
|
+
if(!section) {
|
552
|
+
sectIndex = contentSect ? contentSect.getIndex() : 1;
|
553
|
+
section = this._headerSect = host.addSectionAt(sectIndex, "title", "statisticsHeaderRows");
|
554
|
+
|
555
|
+
section.setDefaultRowHeight(rowHeight);
|
556
|
+
section.enableClass("statistics-rows");
|
557
|
+
}
|
558
|
+
section.setRowCount(this._headerRows.length);
|
559
|
+
} else if(this._headerSect) {
|
560
|
+
host.removeSectionAt(this._headerSect.getIndex());
|
561
|
+
this._headerSect = null;
|
562
|
+
}
|
563
|
+
|
564
|
+
if(this._footerRows.length) {
|
565
|
+
section = this._footerSect;
|
566
|
+
if(!section) {
|
567
|
+
sectIndex = contentSect ? contentSect.getIndex() + 1 : host.getSectionCount();
|
568
|
+
section = this._footerSect = host.addSectionAt(sectIndex, "footer", "statisticsFooterRows");
|
569
|
+
|
570
|
+
section.setDefaultRowHeight(rowHeight);
|
571
|
+
section.enableClass("statistics-rows");
|
572
|
+
}
|
573
|
+
section.setRowCount(this._footerRows.length);
|
574
|
+
} else if(this._footerSect) {
|
575
|
+
host.removeSectionAt(this._footerSect.getIndex());
|
576
|
+
this._footerSect = null;
|
577
|
+
}
|
578
|
+
};
|
579
|
+
/** @private
|
580
|
+
*/
|
581
|
+
StatisticsRowPlugin.prototype._updateUIs = function () {
|
582
|
+
var host = this._hosts[0];
|
583
|
+
if(!host || this._disabledUIs) {
|
584
|
+
return;
|
585
|
+
}
|
586
|
+
if(host.getRowCount() > 0) {
|
587
|
+
host.requestRowRefresh();
|
588
|
+
} else {
|
589
|
+
this._onPostSectionDataBinding();
|
590
|
+
}
|
591
|
+
};
|
592
|
+
/** @private
|
593
|
+
* @param {Object=} e
|
594
|
+
*/
|
595
|
+
StatisticsRowPlugin.prototype._onPostDataSourceChanged = function (e) {
|
596
|
+
this._prepareSections();
|
597
|
+
};
|
598
|
+
/** @private
|
599
|
+
* @param {Object=} e
|
600
|
+
*/
|
601
|
+
StatisticsRowPlugin.prototype._onDataChanged = function (e) {
|
602
|
+
this._updateUIs();
|
603
|
+
};
|
604
|
+
/** @private
|
605
|
+
* @param {Object=} e
|
606
|
+
*/
|
607
|
+
StatisticsRowPlugin.prototype._onRowRemoved = function (e) {
|
608
|
+
if(!e.rowCount) { // Since binding won't be occured for 0 row, we have to force re-rendering on the headers/footers by ourselve
|
609
|
+
if(e.sectionType === "content") {
|
610
|
+
this._onPostSectionDataBinding();
|
611
|
+
}
|
612
|
+
}
|
613
|
+
};
|
614
|
+
|
615
|
+
/** @private
|
616
|
+
* @param {Object=} e
|
617
|
+
*/
|
618
|
+
StatisticsRowPlugin.prototype._onPostSectionDataBinding = function (e) {
|
619
|
+
if(!this._headerSect && !this._footerSect) {
|
620
|
+
return;
|
621
|
+
}
|
622
|
+
|
623
|
+
if(e && e.positionChangeOnly) { // To avoid unnecessary calculation and rendering
|
624
|
+
return;
|
625
|
+
}
|
626
|
+
|
627
|
+
// TODO: Reduce unneccessary calculation due to UI updates
|
628
|
+
// Preparing context
|
629
|
+
var host = this._hosts[0];
|
630
|
+
var colCount = host.getColumnCount();
|
631
|
+
var dv = host.getDataSource();
|
632
|
+
var dt = dv.getDataSource();
|
633
|
+
var rows;
|
634
|
+
if(this._useAllData) {
|
635
|
+
rows = dt.getAllRowData(); // Slow: A new copy of data is created
|
636
|
+
} else {
|
637
|
+
rows = dv.getAllRowData();
|
638
|
+
}
|
639
|
+
var rowCount = rows.length;
|
640
|
+
|
641
|
+
var fields = null;
|
642
|
+
if(this._compositeGrid) {
|
643
|
+
fields = this._compositeGrid.getColumnFields();
|
644
|
+
} else if(this._realTimeGrid) {
|
645
|
+
fields = this._realTimeGrid.getColumnFields();
|
646
|
+
rows = rows.map(this._rowGetter);
|
647
|
+
}
|
648
|
+
if(!fields) {
|
649
|
+
return;
|
650
|
+
}
|
651
|
+
|
652
|
+
// Calculate stats
|
653
|
+
var c;
|
654
|
+
var statistics = new Array(colCount);
|
655
|
+
for(c = 0; c < colCount; ++c) {
|
656
|
+
statistics[c] = null;
|
657
|
+
var colOptions = this._getExtColumnConfig(c);
|
658
|
+
if(!colOptions) {
|
659
|
+
continue;
|
660
|
+
}
|
661
|
+
var field = fields[c];
|
662
|
+
var count = 0;
|
663
|
+
var stat = null;
|
664
|
+
var r, val;
|
665
|
+
if(colOptions.statistics) {
|
666
|
+
stat = statistics[c] = {};
|
667
|
+
var sum = 0;
|
668
|
+
var min = NaN;
|
669
|
+
var max = NaN;
|
670
|
+
for(r = 0; r < rowCount; ++r) {
|
671
|
+
val = rows[r][field];
|
672
|
+
if(val != null) { // Not undefined or null
|
673
|
+
if(typeof val !== "number") { // Slow: Type casting
|
674
|
+
val = +val;
|
675
|
+
}
|
676
|
+
if(val === val) {
|
677
|
+
++count;
|
678
|
+
if(!(val >= min)) {
|
679
|
+
min = val;
|
680
|
+
}
|
681
|
+
if(!(val <= max)) {
|
682
|
+
max = val;
|
683
|
+
}
|
684
|
+
sum += val;
|
685
|
+
}
|
686
|
+
}
|
687
|
+
}
|
688
|
+
stat.field = field;
|
689
|
+
stat.count = count;
|
690
|
+
stat.sum = (count > 0) ? sum : NaN;
|
691
|
+
stat.average = sum / count;
|
692
|
+
stat.min = min;
|
693
|
+
stat.max = max;
|
694
|
+
} else if(colOptions.label) {
|
695
|
+
stat = statistics[c] = {"label": true};
|
696
|
+
for(r = 0; r < rowCount; ++r) {
|
697
|
+
val = rows[r][field];
|
698
|
+
if(val || val === 0) { // WARNING: Use different counting criteria from normal statistic.
|
699
|
+
++count;
|
700
|
+
}
|
701
|
+
}
|
702
|
+
stat.field = field;
|
703
|
+
stat.count = count;
|
704
|
+
}
|
705
|
+
}
|
706
|
+
|
707
|
+
if(this.hasListener("postCalculation")) {
|
708
|
+
this._dispatch("postCalculation", {
|
709
|
+
"colCount": colCount,
|
710
|
+
"fields": fields,
|
711
|
+
"statistics": statistics,
|
712
|
+
"dataRows": rows,
|
713
|
+
"dataView": dv,
|
714
|
+
"dataTable": dt,
|
715
|
+
"core": host,
|
716
|
+
"extension": this
|
717
|
+
});
|
718
|
+
}
|
719
|
+
// Render stuff
|
720
|
+
for(c = 0; c < colCount; ++c) {
|
721
|
+
this._renderStatistics(c, statistics[c], e ? e.actualUpdate : false);
|
722
|
+
}
|
723
|
+
|
724
|
+
if(this.hasListener("postRendering")) {
|
725
|
+
this._dispatch("postRendering", {
|
726
|
+
"colCount": colCount,
|
727
|
+
"fields": fields,
|
728
|
+
"statistics": statistics,
|
729
|
+
"headerSection": this._headerSect,
|
730
|
+
"footerSection": this._footerSect,
|
731
|
+
"headerRows": this._headerRows,
|
732
|
+
"footerRows": this._footerRows,
|
733
|
+
"core": host,
|
734
|
+
"extension": this
|
735
|
+
});
|
736
|
+
}
|
737
|
+
};
|
738
|
+
/** @private
|
739
|
+
* @param {number} colIndex
|
740
|
+
* @param {Object} stats
|
741
|
+
* @param {boolean} actualUpdate
|
742
|
+
*/
|
743
|
+
StatisticsRowPlugin.prototype._renderStatistics = function (colIndex, stats, actualUpdate) {
|
744
|
+
if(!this._headerSect && !this._footerSect) {
|
745
|
+
return;
|
746
|
+
}
|
747
|
+
if(!stats) {
|
748
|
+
return;
|
749
|
+
}
|
750
|
+
|
751
|
+
var r, rowCount;
|
752
|
+
if(this._headerSect) {
|
753
|
+
rowCount = this._headerRows.length;
|
754
|
+
for(r = 0; r < rowCount; ++r) {
|
755
|
+
this._headerRows[r].cell = this._headerSect.getCell(colIndex, r);
|
756
|
+
}
|
757
|
+
}
|
758
|
+
if(this._footerSect) {
|
759
|
+
rowCount = this._footerRows.length;
|
760
|
+
for(r = 0; r < rowCount; ++r) {
|
761
|
+
this._footerRows[r].cell = this._footerSect.getCell(colIndex, r);
|
762
|
+
}
|
763
|
+
}
|
764
|
+
|
765
|
+
var rows = this._rows;
|
766
|
+
rowCount = rows.length;
|
767
|
+
for(r = 0; r < rowCount; ++r) {
|
768
|
+
var row = rows[r];
|
769
|
+
var txt = null;
|
770
|
+
|
771
|
+
var cell = row.cell;
|
772
|
+
if(cell == null) {
|
773
|
+
continue;
|
774
|
+
}
|
775
|
+
|
776
|
+
var statistic = row.statistic;
|
777
|
+
if(stats.label) {
|
778
|
+
txt = row.label;
|
779
|
+
if(txt == null) {
|
780
|
+
txt = StatisticsRowPlugin._defaultLabels[statistic] || statistic;
|
781
|
+
}
|
782
|
+
} else {
|
783
|
+
txt = stats[statistic];
|
784
|
+
if(!txt && txt !== 0) {
|
785
|
+
txt = this._invalidText;
|
786
|
+
} else {
|
787
|
+
var num = txt;
|
788
|
+
if(this._tfExt && !this._noFormatting) {
|
789
|
+
txt = this._tfExt.formatText(colIndex, num);
|
790
|
+
}
|
791
|
+
if(this._ccExt && !this._noColoring) {
|
792
|
+
var rowData = row.cachedData;
|
793
|
+
rowData[stats.field] = num;
|
794
|
+
this._ccExt.applyColor(colIndex, cell, rowData, actualUpdate);
|
795
|
+
}
|
796
|
+
}
|
797
|
+
}
|
798
|
+
|
799
|
+
cell.setContent(txt);
|
800
|
+
row.cell = null;
|
801
|
+
}
|
802
|
+
};
|
803
|
+
|
804
|
+
|
805
|
+
|
806
|
+
export default StatisticsRowPlugin;
|
807
|
+
export { StatisticsRowPlugin, StatisticsRowPlugin as StatisticsRow, StatisticsRowPlugin as StatisticsRowExtension };
|