@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,982 @@
|
|
1
|
+
import CellPainter from "../../tr-grid-util/es6/CellPainter.js";
|
2
|
+
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
3
|
+
import ElfUtil from "../../tr-grid-util/es6/ElfUtil.js";
|
4
|
+
import { ElementWrapper } from "../../tr-grid-util/es6/ElementWrapper.js";
|
5
|
+
import { FieldFormatter, DATE_TIME } from "../../tr-grid-util/es6/FieldFormatter.js";
|
6
|
+
import NumberFormatter from "../../tr-grid-util/es6/NumberFormatter.js";
|
7
|
+
import { PercentBar } from "../../tr-grid-util/es6/PercentBar.js";
|
8
|
+
import { Table } from "../../tr-grid-util/es6/Table.js";
|
9
|
+
|
10
|
+
/** @const {number} */
|
11
|
+
const MAX_SAMPLE_DATA = 6645100000.00;
|
12
|
+
/** @const {number} */
|
13
|
+
const MIN_SAMPLE_DATA = -8421000000.00;
|
14
|
+
/** @const {Array.Array.Array.number} */
|
15
|
+
const SAMPLE_DATASET = [
|
16
|
+
[
|
17
|
+
[120470000.00, 2516900000.00],
|
18
|
+
[-4500900000.00, -3830100000.00]
|
19
|
+
],
|
20
|
+
[
|
21
|
+
[4901100000.00, 5907300000.00],
|
22
|
+
[-2702200000.00, -1505300000.00]
|
23
|
+
],
|
24
|
+
[
|
25
|
+
[MAX_SAMPLE_DATA, 120470000.00],
|
26
|
+
[-3830100000.00, -1505300000.00]
|
27
|
+
],
|
28
|
+
[
|
29
|
+
[2516900000.00, 4901100000.00],
|
30
|
+
[MIN_SAMPLE_DATA, -4500900000.00]
|
31
|
+
],
|
32
|
+
[
|
33
|
+
[5907300000.00, MAX_SAMPLE_DATA],
|
34
|
+
[-2702200000.00, MIN_SAMPLE_DATA]
|
35
|
+
]
|
36
|
+
];
|
37
|
+
/** @const {number} */
|
38
|
+
const ABSOLUTE_MAX_SAMPLE_DATA = Math.abs(MAX_SAMPLE_DATA) > Math.abs(MIN_SAMPLE_DATA) ? Math.abs(MAX_SAMPLE_DATA) : Math.abs(MIN_SAMPLE_DATA);
|
39
|
+
|
40
|
+
/** @typedef {Object} PreviewTable~Bar
|
41
|
+
* @description Configuration display style PercentBar
|
42
|
+
* @property {boolean=} isShowValue
|
43
|
+
* @property {boolean=} isUsedMovement
|
44
|
+
*/
|
45
|
+
|
46
|
+
/** @typedef {Object} PreviewTable~ConfigDateTime
|
47
|
+
* @description Configuration Date time format
|
48
|
+
* @property {string=} formatDate
|
49
|
+
* @property {boolean} isUsedGMT
|
50
|
+
*/
|
51
|
+
|
52
|
+
/** @typedef {Object} PreviewTable~ConfigDisplayColor
|
53
|
+
* @description Configuration display style Heatmap
|
54
|
+
* @property {string=} background string hex of background color
|
55
|
+
* @property {string=} textColor string hex of text color
|
56
|
+
*/
|
57
|
+
|
58
|
+
/** @typedef {Object} PreviewTable~Conditional
|
59
|
+
* @description Configuration display style PercentBar
|
60
|
+
* @property {boolean=} isShowValue
|
61
|
+
* @property {boolean=} isUsedMovement
|
62
|
+
* @property {Function} conditionSequence
|
63
|
+
* @property {Colors} colors
|
64
|
+
*
|
65
|
+
*/
|
66
|
+
|
67
|
+
|
68
|
+
/** @typedef {Object} PreviewTable~ConfigDisplayStyle
|
69
|
+
* @description Configuration display style
|
70
|
+
* @property {string} mode
|
71
|
+
* @property {string=} alignment
|
72
|
+
* @property {Bar=} bar
|
73
|
+
* @property {Heatmap=} heatmap
|
74
|
+
* @property {Conditional} conditionalColor
|
75
|
+
*/
|
76
|
+
|
77
|
+
|
78
|
+
/** @typedef {Object} PreviewTable~ConfigUpdateStyleValue
|
79
|
+
* @description Configuration display style when data was updated
|
80
|
+
* @property {boolean=} isTextChangedStyle
|
81
|
+
* @property {boolean=} isCellChangedStyle
|
82
|
+
* @property {string=} colors hex color
|
83
|
+
* @property {boolean=} isBackgroundBlink
|
84
|
+
*/
|
85
|
+
|
86
|
+
/** @typedef {Object} PreviewTable~ConfigValueFormat
|
87
|
+
* @description Configuration value format
|
88
|
+
* @property {string} mode
|
89
|
+
* @property {number=} decimalPlaces
|
90
|
+
* @property {boolean=} isUsedSeparator
|
91
|
+
* @property {boolean=} isShowPlusSignh
|
92
|
+
* @property {string=} scaled
|
93
|
+
* @property {boolean=} isPercentMultiply100
|
94
|
+
*/
|
95
|
+
|
96
|
+
/** @typedef {Object} PreviewTable~DisplayStyleTapGeneralMode
|
97
|
+
* @description Configuration value general mode
|
98
|
+
* @property {string=} aligment
|
99
|
+
*/
|
100
|
+
|
101
|
+
/** @typedef {Object} PreviewTable~DisplayStyleTapBarMode
|
102
|
+
* @description Configuration value bar mode
|
103
|
+
* @property {boolean=} showValues
|
104
|
+
* @property {boolean=} useMovementColor
|
105
|
+
* @property {string=} alignment
|
106
|
+
*/
|
107
|
+
|
108
|
+
/** @typedef {Object} PreviewTable~DisplayStyleTapHeatMapMode
|
109
|
+
* @description Configuration value bar mode
|
110
|
+
* @property {string=} mode
|
111
|
+
* @property {number=} midPoint
|
112
|
+
* @property {string=} alignment
|
113
|
+
*/
|
114
|
+
|
115
|
+
/** @typedef {Object} PreviewTable~DisplayStyleTap
|
116
|
+
* @description Configuration value display tab
|
117
|
+
* @property {string=} mode
|
118
|
+
* @property {DisplayStyleTapGeneralMode=} general
|
119
|
+
* @property {DisplayStyleTapBarMode=} bar
|
120
|
+
* @property {DisplayStyleTapHeatMapMode=} heatmap
|
121
|
+
*/
|
122
|
+
|
123
|
+
/** @typedef {Object} PreviewTable~FormatTab
|
124
|
+
* @description Configuration value format tab
|
125
|
+
* @property {string=} formatType
|
126
|
+
* @property {string=} decimalPlaces
|
127
|
+
* @property {boolean=} separator
|
128
|
+
* @property {boolean=} plusSign
|
129
|
+
* @property {string=} scalingUnit
|
130
|
+
* @property {boolean=} multiplyBy100
|
131
|
+
*/
|
132
|
+
|
133
|
+
/** @typedef {Object} PreviewTable~Heatmap
|
134
|
+
* @description Configuration display style Heatmap
|
135
|
+
* @property {string=} midPoint
|
136
|
+
* @property {string=} applied
|
137
|
+
*/
|
138
|
+
|
139
|
+
/** @typedef {Object} PreviewTable~Colors
|
140
|
+
* @description Colors functions
|
141
|
+
* @property {string} color color of text
|
142
|
+
* @property {string} background color of background
|
143
|
+
*/
|
144
|
+
|
145
|
+
/** @type {PreviewTable}
|
146
|
+
* @constructor
|
147
|
+
* @param {Element} elem
|
148
|
+
* @extends {ElementWrapper}
|
149
|
+
*/
|
150
|
+
var PreviewTable = function (elem) {
|
151
|
+
this._onThemeLoaded = this._onThemeLoaded.bind(this);
|
152
|
+
this._onIntervalUpdate = this._onIntervalUpdate.bind(this);
|
153
|
+
this._formatSampleValue = this._formatSampleValue.bind(this);
|
154
|
+
|
155
|
+
this._topNode = elem || document.createElement("div");
|
156
|
+
this._table = new Table(elem, {
|
157
|
+
colCount: 1,
|
158
|
+
rowCount: 2
|
159
|
+
});
|
160
|
+
this._numberFormatter = new NumberFormatter();
|
161
|
+
this._dateFormatter = new FieldFormatter({
|
162
|
+
formatType: DATE_TIME
|
163
|
+
});
|
164
|
+
this._sampleSetIndex = (++this._sampleSetIndex) % SAMPLE_DATASET.length;
|
165
|
+
this._configValueFormat = {
|
166
|
+
decimalPlaces: 2,
|
167
|
+
mode: "general"
|
168
|
+
};
|
169
|
+
this._configDateTime = {};
|
170
|
+
this._configDisplayStyle = {};
|
171
|
+
this._configDisplayColor = {};
|
172
|
+
this._configUpdateStyleValue = {};
|
173
|
+
this._configDisplayStyle.mode = "general";
|
174
|
+
this._configDisplayStyle.alignment = "left";
|
175
|
+
|
176
|
+
this._numberFormatter = new NumberFormatter();
|
177
|
+
|
178
|
+
ElfUtil.getThemeColors().then(this._onThemeLoaded);
|
179
|
+
setInterval(this._onIntervalUpdate, 1500);
|
180
|
+
|
181
|
+
this._formatSampleValue();
|
182
|
+
};
|
183
|
+
Ext.inherits(PreviewTable, ElementWrapper);
|
184
|
+
|
185
|
+
/** @type {ConfigDateTime}
|
186
|
+
* @private
|
187
|
+
*/
|
188
|
+
PreviewTable.prototype._configDateTime = null;
|
189
|
+
|
190
|
+
/** @type {ConfigDisplayColor}
|
191
|
+
* @private
|
192
|
+
*/
|
193
|
+
PreviewTable.prototype._configDisplayColor = null;
|
194
|
+
|
195
|
+
/** @type {ConfigDisplayStyle}
|
196
|
+
* @private
|
197
|
+
*/
|
198
|
+
PreviewTable.prototype._configDisplayStyle = null;
|
199
|
+
|
200
|
+
/** @type {ConfigUpdateStyleValue}
|
201
|
+
* @private
|
202
|
+
*/
|
203
|
+
PreviewTable.prototype._configUpdateStyleValue = null;
|
204
|
+
|
205
|
+
/** @type {ConfigValueFormat}
|
206
|
+
* @private
|
207
|
+
*/
|
208
|
+
PreviewTable.prototype._configValueFormat = null;
|
209
|
+
|
210
|
+
/** @type {DateFormatter}
|
211
|
+
* @private
|
212
|
+
*/
|
213
|
+
PreviewTable.prototype._dateFormatter = null;
|
214
|
+
|
215
|
+
/** @type {NumberFormatter}
|
216
|
+
* @private
|
217
|
+
*/
|
218
|
+
PreviewTable.prototype._numberFormatter = null;
|
219
|
+
|
220
|
+
/** @type {number}
|
221
|
+
* @private
|
222
|
+
*/
|
223
|
+
PreviewTable.prototype._sampleSetIndex = 0;
|
224
|
+
|
225
|
+
/** @type {Element}
|
226
|
+
* @private
|
227
|
+
*/
|
228
|
+
PreviewTable.prototype._table = null;
|
229
|
+
|
230
|
+
/** @public
|
231
|
+
* @returns {Object} For load structure format
|
232
|
+
*/
|
233
|
+
PreviewTable.prototype.getStructureFormat = function () {
|
234
|
+
var output = {
|
235
|
+
valueFormatTab: this._getValueFormatTab(),
|
236
|
+
displayStyleTab: this._getValueDisplayStyle(),
|
237
|
+
colorTextTab: this._getValueUpdateChanged()
|
238
|
+
};
|
239
|
+
|
240
|
+
// If not choose update , value should not have this property
|
241
|
+
if(!output.colorTextTab) {
|
242
|
+
delete output.colorTextTab;
|
243
|
+
}
|
244
|
+
|
245
|
+
return output;
|
246
|
+
};
|
247
|
+
|
248
|
+
/** @public
|
249
|
+
* @description load display format data from external to previewTable
|
250
|
+
* @param {Object} config
|
251
|
+
*/
|
252
|
+
PreviewTable.prototype.loadDisplayData = function (config) {
|
253
|
+
this._setLoadValueFormat(config.valueFormatTab);
|
254
|
+
this._setLoadDisplayStyle(config.displayStyleTab);
|
255
|
+
this._setLoadUpdateStyle(config.colorTextTab);
|
256
|
+
|
257
|
+
};
|
258
|
+
|
259
|
+
/** @public
|
260
|
+
* @param {string} formatDate
|
261
|
+
*/
|
262
|
+
PreviewTable.prototype.setDateFormatString = function (formatDate) {
|
263
|
+
this._configDateTime.formatDate = formatDate ? formatDate : "D/M/YY";
|
264
|
+
this._formatSampleValue();
|
265
|
+
};
|
266
|
+
|
267
|
+
/** @public
|
268
|
+
* @param {boolean=} isUsedGMT
|
269
|
+
*/
|
270
|
+
PreviewTable.prototype.setDateFormatUseGMT = function (isUsedGMT) {
|
271
|
+
this._configDateTime.isUsedGMT = isUsedGMT ? true : false; // Check if receive undefined assign to false
|
272
|
+
this._formatSampleValue();
|
273
|
+
};
|
274
|
+
|
275
|
+
/** @public
|
276
|
+
* @param {string} language
|
277
|
+
*/
|
278
|
+
PreviewTable.prototype.setDateFormatLanguage = function (language) {
|
279
|
+
this._configDateTime.language = language ? "en" : "th";
|
280
|
+
this._formatSampleValue();
|
281
|
+
};
|
282
|
+
|
283
|
+
|
284
|
+
/** @public
|
285
|
+
* @param {string} alignment
|
286
|
+
*/
|
287
|
+
PreviewTable.prototype.setDisplayStyleAlignment = function (alignment) {
|
288
|
+
this._configDisplayStyle.alignment = alignment;
|
289
|
+
this._formatSampleValue();
|
290
|
+
};
|
291
|
+
|
292
|
+
/** @public
|
293
|
+
* @param {string} mode
|
294
|
+
*/
|
295
|
+
PreviewTable.prototype.setDisplayStyleMode = function (mode) {
|
296
|
+
if (!this._configDisplayStyle) this._configDisplayStyle = {};
|
297
|
+
this._configDisplayStyle.mode = mode;
|
298
|
+
if (mode !== "heatmap") {
|
299
|
+
this._table.setColumnCount(1);
|
300
|
+
} else {
|
301
|
+
this.setDisplayStyleHeatmap();
|
302
|
+
}
|
303
|
+
this._formatSampleValue();
|
304
|
+
};
|
305
|
+
|
306
|
+
/** @public
|
307
|
+
* @param {string} applied
|
308
|
+
* @param {string} midPoint
|
309
|
+
*/
|
310
|
+
PreviewTable.prototype.setDisplayStyleHeatmap = function (applied, midPoint) {
|
311
|
+
var midPointNumber = Number(midPoint);
|
312
|
+
|
313
|
+
if(isNaN(midPointNumber) || typeof midPointNumber !== "number") {
|
314
|
+
midPointNumber = 0;
|
315
|
+
}
|
316
|
+
|
317
|
+
this._configDisplayStyle.heatmap = {};
|
318
|
+
this._table.setColumnCount(2);
|
319
|
+
this._configDisplayStyle.heatmap.applied = applied === "text" ? "text" : "cell"; // When data invalid set cell by defualt
|
320
|
+
this._configDisplayStyle.heatmap.midPoint = midPointNumber ? midPointNumber : 0;
|
321
|
+
this._formatSampleValue();
|
322
|
+
};
|
323
|
+
|
324
|
+
/** @public
|
325
|
+
* @param {boolean} isShowValue
|
326
|
+
*/
|
327
|
+
PreviewTable.prototype.setDisplayStylePercentBarShowValue = function (isShowValue) {
|
328
|
+
if (!this._configDisplayStyle.bar) {
|
329
|
+
this._configDisplayStyle.bar = {};
|
330
|
+
}
|
331
|
+
this._configDisplayStyle.bar.isShowValue = isShowValue;
|
332
|
+
this._formatSampleValue();
|
333
|
+
};
|
334
|
+
|
335
|
+
/** @public
|
336
|
+
* @param {boolean} isUsedMovement
|
337
|
+
*/
|
338
|
+
PreviewTable.prototype.setDisplayStylePercentBarIsUsedMovement = function (isUsedMovement) {
|
339
|
+
if (!this._configDisplayStyle.bar) {
|
340
|
+
this._configDisplayStyle.bar = {};
|
341
|
+
}
|
342
|
+
this._configDisplayStyle.bar.isUsedMovement = isUsedMovement;
|
343
|
+
this._formatSampleValue();
|
344
|
+
};
|
345
|
+
|
346
|
+
/** @public
|
347
|
+
* @param {Array.<PreviewTable~Conditional>} conditionDefs - condition function
|
348
|
+
*/
|
349
|
+
PreviewTable.prototype.setDisplayStyleConditional = function (conditionDefs) {
|
350
|
+
var count = conditionDefs ? conditionDefs.length : 0;
|
351
|
+
this._configDisplayStyle.conditionFunction = count ? conditionDefs : null;
|
352
|
+
this._formatSampleValue();
|
353
|
+
};
|
354
|
+
|
355
|
+
|
356
|
+
/** @public
|
357
|
+
* @param {string} type
|
358
|
+
*/
|
359
|
+
PreviewTable.prototype.setFormatType = function (type) {
|
360
|
+
this._configValueFormat.mode = type;
|
361
|
+
this._formatSampleValue();
|
362
|
+
};
|
363
|
+
|
364
|
+
/** @public
|
365
|
+
* @param {boolean=} isCellChangedStyle
|
366
|
+
*/
|
367
|
+
PreviewTable.prototype.setUpdateStyleValueCell = function (isCellChangedStyle) {
|
368
|
+
this._configUpdateStyleValue.isCellChangedStyle = isCellChangedStyle;
|
369
|
+
this._formatSampleValue();
|
370
|
+
};
|
371
|
+
|
372
|
+
/** @public
|
373
|
+
* @param {boolean=} isTextChangedStyle
|
374
|
+
*/
|
375
|
+
PreviewTable.prototype.setUpdateStyleValueText = function (isTextChangedStyle) {
|
376
|
+
this._configUpdateStyleValue.isTextChangedStyle = isTextChangedStyle;
|
377
|
+
this._formatSampleValue();
|
378
|
+
};
|
379
|
+
|
380
|
+
/** @public
|
381
|
+
* @param {boolean=} isBackgroundBlink
|
382
|
+
*/
|
383
|
+
PreviewTable.prototype.setUpdateStyleValueCellBlinking = function (isBackgroundBlink) {
|
384
|
+
this._configUpdateStyleValue.isBackgroundBlink = isBackgroundBlink;
|
385
|
+
this._formatSampleValue();
|
386
|
+
};
|
387
|
+
|
388
|
+
/** @public
|
389
|
+
* @param {number} decimalPlaces
|
390
|
+
*/
|
391
|
+
PreviewTable.prototype.setValueFormatDecimalPlaces = function (decimalPlaces) {
|
392
|
+
var decimalNumber = Number(decimalPlaces);
|
393
|
+
|
394
|
+
// Check invalid value assign to defualt value
|
395
|
+
if(typeof decimalNumber !== "number" || isNaN(decimalNumber) || decimalNumber < 0 || decimalNumber > 9) {
|
396
|
+
decimalNumber = 2;
|
397
|
+
}
|
398
|
+
|
399
|
+
this._configValueFormat.decimalPlaces = decimalNumber;
|
400
|
+
this._formatSampleValue();
|
401
|
+
};
|
402
|
+
|
403
|
+
/** @public
|
404
|
+
*
|
405
|
+
*/
|
406
|
+
PreviewTable.prototype.setValueFormatGeneral = function () {
|
407
|
+
this._configValueFormat.decimalPlaces = 2;
|
408
|
+
this._formatSampleValue();
|
409
|
+
};
|
410
|
+
|
411
|
+
/** @public
|
412
|
+
* @param {boolean} isPercentMultiply100
|
413
|
+
*/
|
414
|
+
PreviewTable.prototype.setValueFormatShowPercentSignWithMultiply100 = function (isPercentMultiply100) {
|
415
|
+
this._configValueFormat.isPercentMultiply100 = isPercentMultiply100;
|
416
|
+
this._formatSampleValue();
|
417
|
+
};
|
418
|
+
|
419
|
+
/** @public
|
420
|
+
* @param {string} scaled
|
421
|
+
*/
|
422
|
+
PreviewTable.prototype.setValueFormatScaled = function (scaled) {
|
423
|
+
this._configValueFormat.scaled = scaled === "b" ? "b" : "m"; // Set defualt value when data invalid
|
424
|
+
this._formatSampleValue();
|
425
|
+
};
|
426
|
+
|
427
|
+
/** @public
|
428
|
+
* @param {boolean} isShowPlusSign
|
429
|
+
*/
|
430
|
+
PreviewTable.prototype.setValueFormatShowPlusSign = function (isShowPlusSign) {
|
431
|
+
this._configValueFormat.isShowPlusSign = isShowPlusSign ? true : false; // Question sign for check null or undefined set to false
|
432
|
+
this._formatSampleValue();
|
433
|
+
};
|
434
|
+
|
435
|
+
/** @public
|
436
|
+
* @param {boolean} isUsedSeparator
|
437
|
+
*/
|
438
|
+
PreviewTable.prototype.setValueFormatShowSeparatorSign = function (isUsedSeparator) {
|
439
|
+
this._configValueFormat.isUsedSeparator = isUsedSeparator ? true : false; // Question sign for check null or undefined set to false
|
440
|
+
this._formatSampleValue();
|
441
|
+
};
|
442
|
+
|
443
|
+
/** @private
|
444
|
+
* @description load value format
|
445
|
+
* @param {Object} valueFormatTab
|
446
|
+
*/
|
447
|
+
PreviewTable.prototype._setLoadValueFormat = function (valueFormatTab) {
|
448
|
+
this._configValueFormat = {};
|
449
|
+
this._configValueFormat.mode = valueFormatTab.formatType;
|
450
|
+
|
451
|
+
this._configValueFormat.isUsedSeparator = valueFormatTab.separator ? valueFormatTab.separator : false;
|
452
|
+
this._configValueFormat.isShowPlusSign = valueFormatTab.plusSign ? valueFormatTab.plusSign : false;
|
453
|
+
this._configValueFormat.decimalPlaces = valueFormatTab.decimalPlaces ? valueFormatTab.decimalPlaces : 2;
|
454
|
+
switch (this._configValueFormat.mode) {
|
455
|
+
case "scaled":
|
456
|
+
this._configValueFormat.scaled = valueFormatTab.scalingUnit;
|
457
|
+
break;
|
458
|
+
case "percent":
|
459
|
+
this._configValueFormat.isPercentMultiply100 = valueFormatTab.multiplyBy100;
|
460
|
+
break;
|
461
|
+
case DATE_TIME:
|
462
|
+
var displayStyleDateFormat = valueFormatTab.dateTimeFormat ? valueFormatTab.dateTimeFormat : "M/D/YY";
|
463
|
+
var isUsedUTCTime = valueFormatTab.useUTCTime ? true : false;
|
464
|
+
this.setDateFormatString(displayStyleDateFormat);
|
465
|
+
this.setDateFormatUseGMT(isUsedUTCTime);
|
466
|
+
break;
|
467
|
+
default:
|
468
|
+
break;
|
469
|
+
}
|
470
|
+
|
471
|
+
};
|
472
|
+
|
473
|
+
/** @private
|
474
|
+
* @description load value format
|
475
|
+
* @param {Object} displayStyleTab
|
476
|
+
*/
|
477
|
+
PreviewTable.prototype._setLoadDisplayStyle = function (displayStyleTab) {
|
478
|
+
this._configDisplayStyle = {};
|
479
|
+
this.setDisplayStyleMode(displayStyleTab.mode);
|
480
|
+
var alignment = "left";
|
481
|
+
switch (displayStyleTab.mode) {
|
482
|
+
case "general":
|
483
|
+
alignment = displayStyleTab.general.alignment;
|
484
|
+
break;
|
485
|
+
case "bar":
|
486
|
+
this.setDisplayStylePercentBarIsUsedMovement(displayStyleTab.bar.useMovementColor);
|
487
|
+
this.setDisplayStylePercentBarShowValue(displayStyleTab.bar.showValues);
|
488
|
+
alignment = displayStyleTab.bar.alignment;
|
489
|
+
break;
|
490
|
+
case "heatmap":
|
491
|
+
this.setDisplayStyleHeatmap(displayStyleTab.heatmap.mode, + displayStyleTab.heatmap.midPoint);
|
492
|
+
alignment = displayStyleTab.heatmap.alignment;
|
493
|
+
break;
|
494
|
+
case "conditionalColor":
|
495
|
+
this.setDisplayStyleConditional(displayStyleTab.conditionalColor.conditions);
|
496
|
+
alignment = displayStyleTab.conditionalColor.alignment;
|
497
|
+
break;
|
498
|
+
default:
|
499
|
+
break;
|
500
|
+
}
|
501
|
+
this._configDisplayStyle.alignment = alignment;
|
502
|
+
this.setDisplayStyleAlignment(alignment);
|
503
|
+
|
504
|
+
};
|
505
|
+
|
506
|
+
/** @private
|
507
|
+
* @description load value update style
|
508
|
+
* @param {Object} colorTextTab
|
509
|
+
*/
|
510
|
+
PreviewTable.prototype._setLoadUpdateStyle = function (colorTextTab) {
|
511
|
+
this._configUpdateStyleValue = {};
|
512
|
+
if (!colorTextTab) return;
|
513
|
+
if (colorTextTab.blinking) {
|
514
|
+
this.setUpdateStyleValueCell(true);
|
515
|
+
this.setUpdateStyleValueCellBlinking(colorTextTab.highlight.mode === "cell" ? true : false);
|
516
|
+
} else {
|
517
|
+
this.setUpdateStyleValueCell(false);
|
518
|
+
}
|
519
|
+
|
520
|
+
|
521
|
+
if (colorTextTab.colorText) {
|
522
|
+
this.setUpdateStyleValueText(true);
|
523
|
+
} else {
|
524
|
+
this.setUpdateStyleValueText(false);
|
525
|
+
}
|
526
|
+
};
|
527
|
+
|
528
|
+
/** @private
|
529
|
+
* @description for assign optional data to false when user not send
|
530
|
+
* @return {NumberFormatter} config number of formatter
|
531
|
+
*/
|
532
|
+
PreviewTable.prototype._checkNumberFormatter = function () {
|
533
|
+
var numberFormatter = {};
|
534
|
+
|
535
|
+
if (!this._configValueFormat) {
|
536
|
+
this._configValueFormat = {};
|
537
|
+
}
|
538
|
+
|
539
|
+
if (!this._configValueFormat.isUsedSeparator) {
|
540
|
+
this._configValueFormat.isUsedSeparator = false;
|
541
|
+
}
|
542
|
+
|
543
|
+
if (!this._configValueFormat.isShowPlusSign) {
|
544
|
+
this._configValueFormat.isShowPlusSign = false;
|
545
|
+
}
|
546
|
+
|
547
|
+
numberFormatter = {
|
548
|
+
separator: this._configValueFormat.isUsedSeparator,
|
549
|
+
decimalPlaces: + this._configValueFormat.decimalPlaces,
|
550
|
+
plusSign: this._configValueFormat.isShowPlusSign
|
551
|
+
};
|
552
|
+
|
553
|
+
return numberFormatter;
|
554
|
+
};
|
555
|
+
|
556
|
+
/** @private
|
557
|
+
* @param {boolean=} blinking blinking when value change increase or decrease
|
558
|
+
*/
|
559
|
+
PreviewTable.prototype._formatSampleValue = function (blinking) {
|
560
|
+
var styleObjs = this._getSampleStyleObjects(blinking);
|
561
|
+
var rows = this._table.getAllRows();
|
562
|
+
var barRendering = this._configDisplayStyle && this._configDisplayStyle.mode === "bar";
|
563
|
+
var curIndex = this._sampleSetIndex;
|
564
|
+
var curDataset = SAMPLE_DATASET[curIndex];
|
565
|
+
|
566
|
+
for (var r = 0; r < rows.length; r++) {
|
567
|
+
var row = rows[r];
|
568
|
+
for (var c = row.cells.length; --c >= 0;) {
|
569
|
+
var cell = row.cells[c];
|
570
|
+
cell.innerHTML = ""; // TODO: Not good for performance
|
571
|
+
var value = curDataset[r][c];
|
572
|
+
var formattedValue = this._updateValueFormatExample(value);
|
573
|
+
if (!this._configDisplayStyle.bar) {
|
574
|
+
this._configDisplayStyle.bar = {};
|
575
|
+
}
|
576
|
+
if (barRendering) {
|
577
|
+
this._renderBar(
|
578
|
+
cell,
|
579
|
+
value, formattedValue,
|
580
|
+
this._configDisplayStyle.bar.isShowValue,
|
581
|
+
this._configDisplayStyle.bar.isUsedMovement
|
582
|
+
);
|
583
|
+
} else {
|
584
|
+
cell.textContent = formattedValue;
|
585
|
+
}
|
586
|
+
|
587
|
+
var obj = styleObjs[r][c];
|
588
|
+
for (var prop in obj) {
|
589
|
+
cell.style[prop] = obj[prop];
|
590
|
+
}
|
591
|
+
}
|
592
|
+
}
|
593
|
+
};
|
594
|
+
|
595
|
+
/** @private
|
596
|
+
* @return {PreviewTable~DisplayStyleTap} Format data from dialog module
|
597
|
+
*/
|
598
|
+
PreviewTable.prototype._getValueDisplayStyle = function () {
|
599
|
+
var dataReturn;
|
600
|
+
if (this._configDisplayStyle.mode === "general") {
|
601
|
+
dataReturn = {
|
602
|
+
mode: "general",
|
603
|
+
general: {
|
604
|
+
alignment: this._configDisplayStyle.alignment
|
605
|
+
}
|
606
|
+
};
|
607
|
+
} else if (this._configDisplayStyle.mode === "bar") {
|
608
|
+
if (!this._configDisplayStyle.bar) {
|
609
|
+
this._configDisplayStyle.bar = {};
|
610
|
+
}
|
611
|
+
dataReturn = {
|
612
|
+
"mode": "bar",
|
613
|
+
"bar": {
|
614
|
+
"showValues": this._configDisplayStyle.bar.isShowValue ? true : false,
|
615
|
+
"useMovementColor": this._configDisplayStyle.bar.isUsedMovement ? true : false,
|
616
|
+
"alignment": this._configDisplayStyle.alignment
|
617
|
+
}
|
618
|
+
};
|
619
|
+
} else if (this._configDisplayStyle.mode === "heatmap") {
|
620
|
+
if (!this._configDisplayStyle.heatmap) {
|
621
|
+
this._configDisplayStyle.heatmap = {};
|
622
|
+
}
|
623
|
+
dataReturn = {
|
624
|
+
"mode": "heatmap",
|
625
|
+
"heatmap": {
|
626
|
+
"mode": this._configDisplayStyle.heatmap.applied ? this._configDisplayStyle.heatmap.applied : "cell",
|
627
|
+
"midPoint": this._configDisplayStyle.heatmap.midPoint ? this._configDisplayStyle.heatmap.midPoint : "0",
|
628
|
+
"alignment": this._configDisplayStyle.alignment
|
629
|
+
}
|
630
|
+
};
|
631
|
+
} else if (this._configDisplayStyle.mode === "conditionalColor") {
|
632
|
+
// Check when conditionFunction empty
|
633
|
+
if(this._configDisplayStyle.conditionFunction) {
|
634
|
+
|
635
|
+
var conditions = this._configDisplayStyle.conditionFunction.map(e => {
|
636
|
+
return {
|
637
|
+
backgroundColor: e.colors.backgroundColor,
|
638
|
+
color: e.colors.color,
|
639
|
+
expression: e.expressionObject.text,
|
640
|
+
expressionObject: e.expressionObject,
|
641
|
+
fields: e.fields
|
642
|
+
};
|
643
|
+
});
|
644
|
+
dataReturn = {
|
645
|
+
"mode": "conditionalColor",
|
646
|
+
conditionalColor: {
|
647
|
+
alignment: this._configDisplayStyle.alignment,
|
648
|
+
conditions: conditions
|
649
|
+
}
|
650
|
+
};
|
651
|
+
} else {
|
652
|
+
dataReturn = {
|
653
|
+
"mode": "conditionalColor",
|
654
|
+
conditionalColor: {}
|
655
|
+
};
|
656
|
+
}
|
657
|
+
|
658
|
+
}
|
659
|
+
|
660
|
+
return dataReturn;
|
661
|
+
};
|
662
|
+
|
663
|
+
/** @private
|
664
|
+
* @return {PreviewTable~ConfigUpdateStyleValue} Format data from dialog module
|
665
|
+
*/
|
666
|
+
PreviewTable.prototype._getValueUpdateChanged = function () {
|
667
|
+
var dataReturn = {
|
668
|
+
isTextChangedStyle: this._configUpdateStyleValue.isTextChangedStyle,
|
669
|
+
isCellChangedStyle: this._configUpdateStyleValue.isCellChangedStyle,
|
670
|
+
isBackgroundBlink: this._configUpdateStyleValue.isBackgroundBlink
|
671
|
+
};
|
672
|
+
|
673
|
+
// Check empty value for return empty value
|
674
|
+
if(!dataReturn.isTextChangedStyle && !dataReturn.isCellChangedStyle) {
|
675
|
+
dataReturn = null;
|
676
|
+
}
|
677
|
+
|
678
|
+
return dataReturn;
|
679
|
+
};
|
680
|
+
|
681
|
+
/** @private
|
682
|
+
* @return {PreviewTable~FormatTab} Format data from dialog module
|
683
|
+
*/
|
684
|
+
PreviewTable.prototype._getValueFormatTab = function () {
|
685
|
+
var dataReturn;
|
686
|
+
switch (this._configValueFormat.mode) {
|
687
|
+
case "general":
|
688
|
+
dataReturn = {
|
689
|
+
formatType: "general"
|
690
|
+
};
|
691
|
+
break;
|
692
|
+
|
693
|
+
case "number":
|
694
|
+
|
695
|
+
dataReturn = {
|
696
|
+
formatType: "number",
|
697
|
+
separator: this._configValueFormat.isUsedSeparator ? this._configValueFormat.isUsedSeparator : false,
|
698
|
+
plusSign: this._configValueFormat.isShowPlusSign ? this._configValueFormat.isShowPlusSign : false,
|
699
|
+
decimalPlaces: this._configValueFormat.decimalPlaces
|
700
|
+
};
|
701
|
+
break;
|
702
|
+
|
703
|
+
case "scaled":
|
704
|
+
dataReturn = {
|
705
|
+
formatType: "scaled",
|
706
|
+
separator: this._configValueFormat.isUsedSeparator ? this._configValueFormat.isUsedSeparator : false,
|
707
|
+
plusSign: this._configValueFormat.isShowPlusSign ? this._configValueFormat.isShowPlusSign : false,
|
708
|
+
scalingUnit: this._configValueFormat.scaled ? this._configValueFormat.scaled : "m",
|
709
|
+
decimalPlaces: this._configValueFormat.decimalPlaces ? this._configValueFormat.decimalPlaces : 2
|
710
|
+
};
|
711
|
+
|
712
|
+
break;
|
713
|
+
|
714
|
+
case "percent":
|
715
|
+
dataReturn = {
|
716
|
+
formatType: "percent",
|
717
|
+
separator: this._configValueFormat.isUsedSeparator ? this._configValueFormat.isUsedSeparator : false,
|
718
|
+
plusSign: this._configValueFormat.isShowPlusSign ? this._configValueFormat.isShowPlusSign : false,
|
719
|
+
decimalPlaces: this._configValueFormat.decimalPlaces ? this._configValueFormat.decimalPlaces : 2,
|
720
|
+
multiplyBy100: this._configValueFormat.isPercentMultiply100 ? true : false
|
721
|
+
};
|
722
|
+
|
723
|
+
break;
|
724
|
+
|
725
|
+
case DATE_TIME:
|
726
|
+
dataReturn = {
|
727
|
+
"formatType": DATE_TIME,
|
728
|
+
"dateTimeFormat": this._configDateTime.formatDate,
|
729
|
+
"useUTCTime": this._configDateTime.isUsedGMT
|
730
|
+
};
|
731
|
+
break;
|
732
|
+
|
733
|
+
default:
|
734
|
+
break;
|
735
|
+
}
|
736
|
+
|
737
|
+
return dataReturn;
|
738
|
+
};
|
739
|
+
|
740
|
+
/** @private
|
741
|
+
* @param {boolean=} blinking blinking when value change increase or decrease
|
742
|
+
* @return {Array} - style objects for sample table
|
743
|
+
*/
|
744
|
+
PreviewTable.prototype._getSampleStyleObjects = function (blinking) {
|
745
|
+
var cc = this._table.getColumnCount();
|
746
|
+
var rc = this._table.getRowCount();
|
747
|
+
var curIndex = this._sampleSetIndex;
|
748
|
+
var curDataset = SAMPLE_DATASET[curIndex];
|
749
|
+
var displayStyleTab = this._configDisplayStyle ? this._configDisplayStyle : null;
|
750
|
+
if (!displayStyleTab) {
|
751
|
+
displayStyleTab = {};
|
752
|
+
}
|
753
|
+
|
754
|
+
var alignment = displayStyleTab.alignment;
|
755
|
+
alignment = (alignment && alignment !== "default") ? alignment : "";
|
756
|
+
var r, c, obj;
|
757
|
+
var objs = new Array(rc);
|
758
|
+
|
759
|
+
// clear alignment and style
|
760
|
+
for (r = 0; r < rc; ++r) {
|
761
|
+
var ary = objs[r] = new Array(cc);
|
762
|
+
for (c = 0; c < cc; ++c) {
|
763
|
+
obj = ary[c] = {};
|
764
|
+
obj.textAlign = alignment;
|
765
|
+
obj.color = "";
|
766
|
+
obj.backgroundColor = "";
|
767
|
+
obj.borderColor = "";
|
768
|
+
}
|
769
|
+
}
|
770
|
+
|
771
|
+
var val;
|
772
|
+
// heatmap section
|
773
|
+
if (displayStyleTab.mode === "heatmap") {
|
774
|
+
if (!displayStyleTab.heatmap) {
|
775
|
+
displayStyleTab.heatmap = {};
|
776
|
+
}
|
777
|
+
var midPoint = (+displayStyleTab.heatmap.midPoint) || 0;
|
778
|
+
var min = 0, max = 0;
|
779
|
+
var themeColorBase = getComputedStyle(document.documentElement).getPropertyValue("--color-scheme-ticktext");
|
780
|
+
var themeColorUp = getComputedStyle(document.documentElement).getPropertyValue("--color-scheme-positive");
|
781
|
+
var themeColorDown = getComputedStyle(document.documentElement).getPropertyValue("--color-scheme-negative");
|
782
|
+
|
783
|
+
for (r = 0; r < rc; ++r) {
|
784
|
+
for (c = 0; c < cc; ++c) {
|
785
|
+
var data = curDataset[r][c];
|
786
|
+
if (min > data) min = data;
|
787
|
+
if (max < data) max = data;
|
788
|
+
}
|
789
|
+
}
|
790
|
+
|
791
|
+
for (r = 0; r < rc; ++r) {
|
792
|
+
for (c = 0; c < cc; ++c) {
|
793
|
+
obj = objs[r][c];
|
794
|
+
val = curDataset[r][c] - midPoint;
|
795
|
+
var blendedColor = null;
|
796
|
+
if (val > 0) {
|
797
|
+
blendedColor = CellPainter.blendColor(themeColorBase, themeColorUp,
|
798
|
+
val / (max - midPoint)
|
799
|
+
);
|
800
|
+
} else if (val < 0) {
|
801
|
+
blendedColor = CellPainter.blendColor(themeColorBase, themeColorDown,
|
802
|
+
val / (min - midPoint)
|
803
|
+
);
|
804
|
+
} else {
|
805
|
+
blendedColor = CellPainter.blendColor(themeColorBase, themeColorDown, 0);
|
806
|
+
}
|
807
|
+
if (displayStyleTab.heatmap.applied === "text") {
|
808
|
+
obj.color = CellPainter.num2Hex(blendedColor);
|
809
|
+
} else {
|
810
|
+
obj.backgroundColor = CellPainter.num2Hex(blendedColor);
|
811
|
+
obj.color = CellPainter.blackAndWhite(blendedColor);
|
812
|
+
}
|
813
|
+
}
|
814
|
+
}
|
815
|
+
}
|
816
|
+
|
817
|
+
// conditional color section
|
818
|
+
if (this._configDisplayStyle.mode === "conditionalColor") {
|
819
|
+
if (this._configDisplayStyle.conditionFunction) {
|
820
|
+
var valObj = {"value": NaN};
|
821
|
+
for (r = 0; r < rc; ++r) {
|
822
|
+
for (c = 0; c < cc; ++c) {
|
823
|
+
for (var i = 0; i < this._configDisplayStyle.conditionFunction.length; i++) {
|
824
|
+
obj = objs[r][c];
|
825
|
+
valObj["value"] = curDataset[r][c];
|
826
|
+
var ret = null;
|
827
|
+
try {
|
828
|
+
ret = this._configDisplayStyle.conditionFunction[i].conditionSequence(valObj); // check value with function pass from another module
|
829
|
+
} catch (error) { } // do nothing
|
830
|
+
if (ret) {
|
831
|
+
obj.color = this._configDisplayStyle.conditionFunction[i].colors.color;
|
832
|
+
obj.backgroundColor = this._configDisplayStyle.conditionFunction[i].colors.backgroundColor;
|
833
|
+
break;
|
834
|
+
}
|
835
|
+
}
|
836
|
+
}
|
837
|
+
}
|
838
|
+
}
|
839
|
+
}
|
840
|
+
|
841
|
+
// Check blink text when value change
|
842
|
+
if (this._configUpdateStyleValue.isTextChangedStyle) {
|
843
|
+
for (r = 0; r < rc; ++r) {
|
844
|
+
for (c = 0; c < cc; ++c) {
|
845
|
+
obj = objs[r][c];
|
846
|
+
val = curDataset[r][c];
|
847
|
+
if (val > 0) {
|
848
|
+
obj.color = "var(--color-scheme-positive)";
|
849
|
+
}
|
850
|
+
else {
|
851
|
+
obj.color = "var(--color-scheme-negative)";
|
852
|
+
}
|
853
|
+
}
|
854
|
+
}
|
855
|
+
}
|
856
|
+
|
857
|
+
if (blinking && this._configUpdateStyleValue.isCellChangedStyle) { // Check blink cell when value change
|
858
|
+
var prevIndex = curIndex ? curIndex - 1 : SAMPLE_DATASET.length - 1;
|
859
|
+
var prevDataset = SAMPLE_DATASET[prevIndex];
|
860
|
+
|
861
|
+
for (r = 0; r < rc; ++r) {
|
862
|
+
for (c = 0; c < cc; ++c) {
|
863
|
+
obj = objs[r][c];
|
864
|
+
var curVal = curDataset[r][c];
|
865
|
+
var prevVal = prevDataset[r][c];
|
866
|
+
var blinkColor = "";
|
867
|
+
if (curVal >= prevVal) {
|
868
|
+
blinkColor = this._colors ? this._colors.tickUp : "var(--color-scheme-tickup)";
|
869
|
+
} else {
|
870
|
+
blinkColor = this._colors ? this._colors.tickDown : "var(--color-scheme-tickdown)";
|
871
|
+
}
|
872
|
+
|
873
|
+
// Blink border or background when value change
|
874
|
+
if (this._configUpdateStyleValue.isBackgroundBlink) {
|
875
|
+
obj.backgroundColor = blinkColor;
|
876
|
+
obj.color = this._colors ? CellPainter.getOppositeColor(blinkColor) : "";
|
877
|
+
} else {
|
878
|
+
obj.borderColor = blinkColor;
|
879
|
+
}
|
880
|
+
}
|
881
|
+
}
|
882
|
+
}
|
883
|
+
|
884
|
+
|
885
|
+
return objs;
|
886
|
+
};
|
887
|
+
|
888
|
+
/** @private
|
889
|
+
* @description interval for random value in preview table
|
890
|
+
*/
|
891
|
+
PreviewTable.prototype._onIntervalUpdate = function () {
|
892
|
+
this._sampleSetIndex = (++this._sampleSetIndex) % SAMPLE_DATASET.length;
|
893
|
+
this._formatSampleValue(true);
|
894
|
+
setTimeout(this._formatSampleValue, 500);
|
895
|
+
};
|
896
|
+
|
897
|
+
/** @private
|
898
|
+
*
|
899
|
+
* @param {Object} cell - cell element
|
900
|
+
* @param {number} value - base number value
|
901
|
+
* @param {string} formattedValue - formatted string value
|
902
|
+
* @param {boolean} showValues - true if numeric values need to be displayed
|
903
|
+
* @param {boolean=} useMovementColor - true if movement colors applied
|
904
|
+
*/
|
905
|
+
PreviewTable.prototype._renderBar = function (cell, value, formattedValue, showValues, useMovementColor) {
|
906
|
+
if(useMovementColor == null) {
|
907
|
+
useMovementColor = false;
|
908
|
+
}
|
909
|
+
var bar = new PercentBar();
|
910
|
+
bar.setValue(value, ABSOLUTE_MAX_SAMPLE_DATA, formattedValue);
|
911
|
+
bar.hideText(!showValues);
|
912
|
+
bar.useMovementColor(useMovementColor);
|
913
|
+
bar.setTextWidth(95);
|
914
|
+
if (this._configDisplayStyle.alignment) {
|
915
|
+
bar.setAlignment(this._configDisplayStyle.alignment);
|
916
|
+
}
|
917
|
+
var percentBarElem = bar.getElement();
|
918
|
+
cell.appendChild(percentBarElem);
|
919
|
+
};
|
920
|
+
|
921
|
+
/** @private
|
922
|
+
* @param {number} val - base number value
|
923
|
+
* @return {string} -formatted value
|
924
|
+
*/
|
925
|
+
PreviewTable.prototype._updateValueFormatExample = function (val) {
|
926
|
+
var value = val;
|
927
|
+
var numberFormatterConfig = this._checkNumberFormatter();
|
928
|
+
switch (this._configValueFormat && this._configValueFormat.mode) {
|
929
|
+
case "general":
|
930
|
+
this._numberFormatter.resetToDefaults();
|
931
|
+
this._numberFormatter.init({
|
932
|
+
decimalPlaces: 2
|
933
|
+
});
|
934
|
+
value = this._numberFormatter.format(value);
|
935
|
+
break;
|
936
|
+
case "number":
|
937
|
+
this._numberFormatter.resetToDefaults();
|
938
|
+
this._numberFormatter.init(numberFormatterConfig);
|
939
|
+
value = this._numberFormatter.format(value);
|
940
|
+
break;
|
941
|
+
case "scaled":
|
942
|
+
this._numberFormatter.resetToDefaults();
|
943
|
+
Object.assign(numberFormatterConfig, {
|
944
|
+
scalingUnit: this._configValueFormat.scaled,
|
945
|
+
formatType: "scaled"
|
946
|
+
});
|
947
|
+
|
948
|
+
this._numberFormatter.init(numberFormatterConfig);
|
949
|
+
value = this._numberFormatter.format(value);
|
950
|
+
break;
|
951
|
+
case "percent":
|
952
|
+
this._numberFormatter.resetToDefaults();
|
953
|
+
Object.assign(numberFormatterConfig, {
|
954
|
+
formatType: "percent",
|
955
|
+
percentSign: true,
|
956
|
+
multiplyBy100: this._configValueFormat.isPercentMultiply100
|
957
|
+
});
|
958
|
+
|
959
|
+
this._numberFormatter.init(numberFormatterConfig);
|
960
|
+
value = this._numberFormatter.format(value);
|
961
|
+
break;
|
962
|
+
case DATE_TIME:
|
963
|
+
this._dateFormatter.setDateTimeMeta(this._configDateTime.formatDate, this._configDateTime.isUsedGMT, null, this._configDateTime.lang);
|
964
|
+
value = this._dateFormatter.format(new Date());
|
965
|
+
break;
|
966
|
+
default:
|
967
|
+
break;
|
968
|
+
}
|
969
|
+
|
970
|
+
return value;
|
971
|
+
};
|
972
|
+
|
973
|
+
/**
|
974
|
+
* @private
|
975
|
+
* @param {Object} colors
|
976
|
+
*/
|
977
|
+
PreviewTable.prototype._onThemeLoaded = function (colors) {
|
978
|
+
this._colors = colors;
|
979
|
+
};
|
980
|
+
|
981
|
+
export default PreviewTable;
|
982
|
+
export { PreviewTable };
|