@refinitiv-ui/efx-grid 6.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-format-dialog/index.d.ts +1 -0
- package/lib/column-format-dialog/index.js +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +64 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2713 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +995 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +1 -0
- package/lib/column-selection-dialog/index.js +1 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +41 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +1410 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +189 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +6 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +6 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +22 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +6 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +6 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +6 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +6 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +28075 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +81 -0
- package/lib/core/es6/data/DataCache.js +1317 -0
- package/lib/core/es6/data/DataTable.d.ts +125 -0
- package/lib/core/es6/data/DataTable.js +1655 -0
- package/lib/core/es6/data/DataView.d.ts +280 -0
- package/lib/core/es6/data/DataView.js +3654 -0
- package/lib/core/es6/data/Segment.d.ts +38 -0
- package/lib/core/es6/data/Segment.js +193 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +58 -0
- package/lib/core/es6/data/SegmentCollection.js +431 -0
- package/lib/core/es6/grid/Core.d.ts +387 -0
- package/lib/core/es6/grid/Core.js +4939 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +204 -0
- package/lib/core/es6/grid/ILayoutGrid.js +658 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +23 -0
- package/lib/core/es6/grid/LayoutGrid.js +2602 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +907 -0
- package/lib/core/es6/grid/components/Cell.d.ts +50 -0
- package/lib/core/es6/grid/components/Cell.js +740 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +123 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +38 -0
- package/lib/core/es6/grid/components/CellSpans.js +341 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +612 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +714 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +24 -0
- package/lib/core/es6/grid/components/HScrollbar.js +222 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +61 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1374 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +328 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +163 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +615 -0
- package/lib/core/es6/grid/plugins/Plugin.d.ts +28 -0
- package/lib/core/es6/grid/plugins/Plugin.js +272 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1707 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/core/es6/grid/util/ElementFrameWork.js +227 -0
- package/lib/core/es6/grid/util/HttpRequest.d.ts +53 -0
- package/lib/core/es6/grid/util/HttpRequest.js +371 -0
- package/lib/core/es6/grid/util/PercentBar.d.ts +43 -0
- package/lib/core/es6/grid/util/PercentBar.js +390 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.js +316 -0
- package/lib/core/es6/grid/util/RangeBar.d.ts +25 -0
- package/lib/core/es6/grid/util/RangeBar.js +255 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +674 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +50 -0
- package/lib/core/es6/grid/util/SelectionList.js +422 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +84 -0
- package/lib/core/es6/grid/util/TrackLayout.js +850 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +18 -0
- package/lib/core/es6/grid/util/util.js +450 -0
- package/lib/core/es6/index.d.ts +84 -0
- package/lib/core/es6/index.js +132 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +1 -0
- package/lib/filter-dialog/index.js +1 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +27 -0
- package/lib/filter-dialog/lib/checkbox-list.js +336 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +53 -0
- package/lib/filter-dialog/lib/filter-dialog.js +860 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +37 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +37 -0
- package/lib/filter-dialog/themes/base.less +102 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +9 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +40 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +102 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralIconFormatter.js +45 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +40 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +66 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFButtonFormatter.js +40 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +68 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFIconFormatter.js +45 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +66 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +22 -0
- package/lib/formatters/es6/FormatterBuilder.js +334 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +65 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +30 -0
- package/lib/formatters/es6/index.d.ts +43 -0
- package/lib/formatters/es6/index.js +67 -0
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +2 -0
- package/lib/grid/lib/efx-grid.d.ts +32 -0
- package/lib/grid/lib/efx-grid.js +469 -0
- package/lib/grid/themes/base.less +134 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +92 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +102 -0
- package/lib/index.js +102 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +83 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +592 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +44672 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +141 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1074 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +37 -0
- package/lib/rt-grid/es6/DataConnector.js +266 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +20 -0
- package/lib/rt-grid/es6/FieldDefinition.js +418 -0
- package/lib/rt-grid/es6/Grid.d.ts +261 -0
- package/lib/rt-grid/es6/Grid.js +2893 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +38 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +230 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +120 -0
- package/lib/rt-grid/es6/RowDefinition.js +873 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +21 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +252 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +67 -0
- package/lib/statistics-row/es6/StatisticsRow.js +786 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +45 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +431 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +67 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1777 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +69 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1476 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +1000 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +89 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +615 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +60 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +913 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1013 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +70 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +928 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +76 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +1227 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +70 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +947 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +478 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +471 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +133 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +39 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +245 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +29 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +292 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +57 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +928 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +44 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +394 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +129 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +1977 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +57 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +427 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +801 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +49 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +226 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +12 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +21 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +32 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +761 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +38 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +481 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +54 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +205 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +353 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +53 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +794 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +118 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +1884 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +109 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1541 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +74 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1202 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +60 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +611 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +77 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +574 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +29 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +136 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1128 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +14 -0
- package/lib/tr-grid-util/es6/Deferred.js +98 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +85 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +346 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +10 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +101 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +83 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +163 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +33 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +458 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +27 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +169 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +432 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +48 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +521 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +41 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +181 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +72 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +747 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +61 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +237 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +32 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +506 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +83 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +471 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +162 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +84 -0
- package/lib/tr-grid-util/es6/Popup.js +818 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +259 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +239 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +23 -0
- package/lib/tr-grid-util/es6/RowPainter.js +188 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +74 -0
- package/lib/tr-grid-util/es6/SubTable.js +558 -0
- package/lib/tr-grid-util/es6/Table.d.ts +125 -0
- package/lib/tr-grid-util/es6/Table.js +790 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +18 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +273 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +65 -0
- package/lib/tr-grid-util/es6/Util.js +528 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +882 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +63 -0
- package/lib/tr-grid-util/es6/index.js +99 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +141 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +114 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +827 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +63 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +72 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +564 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +43 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +131 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +45 -0
- package/lib/types/es6/CellSelection.d.ts +67 -0
- package/lib/types/es6/Checkbox.d.ts +69 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +90 -0
- package/lib/types/es6/ColumnGrouping.d.ts +60 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +70 -0
- package/lib/types/es6/ColumnStack.d.ts +76 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +38 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +287 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +22 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +42 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +70 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +81 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +125 -0
- package/lib/types/es6/Core/data/DataView.d.ts +280 -0
- package/lib/types/es6/Core/data/Segment.d.ts +38 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +58 -0
- package/lib/types/es6/Core/grid/Core.d.ts +387 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +204 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +23 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +50 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +38 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +24 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +61 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +28 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +53 -0
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +43 -0
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +25 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +50 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +84 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +18 -0
- package/lib/types/es6/Core/index.d.ts +84 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +23 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +52 -0
- package/lib/types/es6/Extensions.d.ts +61 -0
- package/lib/types/es6/FilterInput.d.ts +57 -0
- package/lib/types/es6/FormatterBuilder.d.ts +22 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +44 -0
- package/lib/types/es6/InCellEditing.d.ts +129 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +39 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +57 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +29 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +143 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +37 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +20 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +263 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +38 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +120 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +21 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +60 -0
- package/lib/types/es6/RowDragging.d.ts +53 -0
- package/lib/types/es6/RowFiltering.d.ts +118 -0
- package/lib/types/es6/RowGrouping.d.ts +109 -0
- package/lib/types/es6/RowSegmenting.d.ts +83 -0
- package/lib/types/es6/RowSelection.d.ts +74 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +67 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +77 -0
- package/lib/types/es6/TitleWrap.d.ts +29 -0
- package/lib/types/es6/Zoom.d.ts +51 -0
- package/lib/types/es6/index.d.ts +76 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/versions.json +36 -0
- package/lib/window-exporter.js +13 -0
- package/lib/zoom/es6/Zoom.d.ts +51 -0
- package/lib/zoom/es6/Zoom.js +419 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +42 -0
@@ -0,0 +1,334 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
/** @typedef {Object} FormatterBuilder~Options
|
4
|
+
* @description FormatterBuilder options
|
5
|
+
* @property {Object=} attributes
|
6
|
+
* @property {Object=} styles
|
7
|
+
* @property {Object=} events
|
8
|
+
*/
|
9
|
+
|
10
|
+
/** Dictionary that contain reserved attribute to context element
|
11
|
+
* @type {object}
|
12
|
+
* @private
|
13
|
+
*/
|
14
|
+
var _reservedAttributesDict = {
|
15
|
+
"api": true,
|
16
|
+
"wrapper": true,
|
17
|
+
"grid": true,
|
18
|
+
"field": true,
|
19
|
+
"rowIndex": true,
|
20
|
+
"value": true,
|
21
|
+
"setData": true,
|
22
|
+
"getData": true,
|
23
|
+
"styles": true,
|
24
|
+
"attributes": true,
|
25
|
+
"tagName": true,
|
26
|
+
"events": true,
|
27
|
+
"userEvents": true,
|
28
|
+
"defaultEvents": true,
|
29
|
+
"onContextCreated": true,
|
30
|
+
"onElementCreated": true,
|
31
|
+
"onElementUpdated": true,
|
32
|
+
"changeHook": true,
|
33
|
+
"changeHooks": true
|
34
|
+
};
|
35
|
+
|
36
|
+
function convertPxToString(px) {
|
37
|
+
return px + (typeof px === "number" ? "px" : "");
|
38
|
+
}
|
39
|
+
|
40
|
+
function positionLocator(ctx, userFunc, e) { // eslint-disable-line
|
41
|
+
if (!ctx.grid.isBinding()) {
|
42
|
+
ctx.grid.getRelativePosition(e, ctx);
|
43
|
+
userFunc(e, ctx);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
function forEachSetProperties(attrs, fn) {
|
48
|
+
if (typeof attrs === "object" && typeof fn === "function") {
|
49
|
+
for (var name in attrs) {
|
50
|
+
var val = attrs[name];
|
51
|
+
if (name === "height" || name === "width") {
|
52
|
+
val = convertPxToString(val);
|
53
|
+
} else {
|
54
|
+
val += ""; // force to string
|
55
|
+
}
|
56
|
+
fn(name, val);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
function assignAttribute(text, options, defaultOpt) {
|
62
|
+
forEachSetProperties(defaultOpt.attributes, function (name, val) {
|
63
|
+
text.push(' element.setAttribute("' + name + '", "' + val + '");');
|
64
|
+
});
|
65
|
+
|
66
|
+
forEachSetProperties(options.attributes, function (name, val) {
|
67
|
+
text.push(' element.setAttribute("' + name + '", "' + val + '");');
|
68
|
+
});
|
69
|
+
}
|
70
|
+
|
71
|
+
function assignStyle(text, options, defaultOpt) {
|
72
|
+
forEachSetProperties(defaultOpt.styles, function (name, val) {
|
73
|
+
text.push(' element.style["' + name + '"] = "' + val + '";');
|
74
|
+
});
|
75
|
+
|
76
|
+
forEachSetProperties(options.styles, function (name, val) {
|
77
|
+
text.push(' element.style["' + name + '"] = "' + val + '";');
|
78
|
+
});
|
79
|
+
}
|
80
|
+
|
81
|
+
function assignListener(text, options, defaultOpt) {
|
82
|
+
var name;
|
83
|
+
var events = defaultOpt.events || {};
|
84
|
+
for (name in events) {
|
85
|
+
if (typeof events[name] === "function") {
|
86
|
+
text.push(' element.addEventListener("' + name + '", positionLocator.bind(null, ctx, ctx.defaultEvents["' + name + '"]));');
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
events = options.events || {};
|
91
|
+
for (name in events) {
|
92
|
+
if (typeof events[name] === "function") {
|
93
|
+
text.push(' element.addEventListener("' + name + '", positionLocator.bind(null, ctx, ctx.userEvents["' + name + '"]));');
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
/** @private
|
100
|
+
* @this ContextObject
|
101
|
+
* @param {Object} colDef User's column definition object
|
102
|
+
* @param {tr.Grid} grid Core grid instance
|
103
|
+
*/
|
104
|
+
function _onInitContextObject(colDef, grid) { // Executed once per column
|
105
|
+
this.grid = grid; // WARNING: using ctx as closure variable
|
106
|
+
if (!this.field) {
|
107
|
+
this.field = colDef.field;
|
108
|
+
if(this.disablingField === null) {
|
109
|
+
this.disablingField = this.field ? this.field + "_DISABLED" : null;
|
110
|
+
}
|
111
|
+
if(this.errorField === null) {
|
112
|
+
this.errorField = this.field ? this.field + "_ERROR" : null;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
this.setData = _setData;
|
117
|
+
this.getData = _getData;
|
118
|
+
this.disableElement = _disableElement;
|
119
|
+
this.isElementDisabled = _isElementDisabled;
|
120
|
+
this.setError = _setError;
|
121
|
+
this.getError = _getError;
|
122
|
+
}
|
123
|
+
/** @private
|
124
|
+
* @this ContextObject
|
125
|
+
* @param {string} field
|
126
|
+
* @param {*} value
|
127
|
+
*/
|
128
|
+
function _setData(field, value) {
|
129
|
+
if(this.wrapper === "real-time-grid") {
|
130
|
+
var rowDef = this.api.getRowDefinition(this.rowIndex);
|
131
|
+
if(rowDef) {
|
132
|
+
rowDef.setStaticData(field, value);
|
133
|
+
}
|
134
|
+
} else {
|
135
|
+
this.api.getDataView().setDataAt(this.rowIndex, field, value); // WARNING: Use of closure variable
|
136
|
+
}
|
137
|
+
}
|
138
|
+
/** @private
|
139
|
+
* @this ContextObject
|
140
|
+
* @param {boolean} field
|
141
|
+
* @return {*} Value
|
142
|
+
*/
|
143
|
+
function _getData(field) {
|
144
|
+
if(this.wrapper === "real-time-grid") {
|
145
|
+
var rowDef = this.api.getRowDefinition(this.rowIndex);
|
146
|
+
return rowDef ? rowDef.getData(field) : null;
|
147
|
+
} else {
|
148
|
+
return this.api.getDataView().getDataAt(this.rowIndex, field);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
/** @private
|
152
|
+
* @this ContextObject
|
153
|
+
* @param {boolean} bool
|
154
|
+
*/
|
155
|
+
function _disableElement(bool) {
|
156
|
+
if(this.disablingField) {
|
157
|
+
this.setData(this.disablingField, bool !== false);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
/** @private
|
161
|
+
* @this ContextObject
|
162
|
+
* @return {boolean}
|
163
|
+
*/
|
164
|
+
function _isElementDisabled() {
|
165
|
+
return this.getData(this.disablingField);
|
166
|
+
}
|
167
|
+
/** @private
|
168
|
+
* @this ContextObject
|
169
|
+
* @param {*} val
|
170
|
+
*/
|
171
|
+
function _setError(val) {
|
172
|
+
if(this.errorField) {
|
173
|
+
this.setData(this.errorField, val);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
/** @private
|
177
|
+
* @this ContextObject
|
178
|
+
* @return {*}
|
179
|
+
*/
|
180
|
+
function _getError() {
|
181
|
+
return this.getData(this.errorField);
|
182
|
+
}
|
183
|
+
|
184
|
+
|
185
|
+
function buildFnText(wrapper, ctx, options, defaultOpt) {
|
186
|
+
for (var defKey in defaultOpt) {
|
187
|
+
if (!_reservedAttributesDict[defKey]) {
|
188
|
+
ctx[defKey] = defaultOpt[defKey];
|
189
|
+
}
|
190
|
+
}
|
191
|
+
for (var optKey in options) {
|
192
|
+
if (!_reservedAttributesDict[optKey]) {
|
193
|
+
ctx[optKey] = options[optKey];
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
if (defaultOpt.onContextCreated) {
|
198
|
+
defaultOpt.onContextCreated(ctx, options);
|
199
|
+
}
|
200
|
+
|
201
|
+
var text = [];
|
202
|
+
// Initial setup based on different types of grid
|
203
|
+
if(wrapper === "real-time-grid") {
|
204
|
+
text.push('(function(e) {');
|
205
|
+
text.push(' ctx.api = e["grid"];');
|
206
|
+
text.push(' ctx.wrapper = "real-time-grid";');
|
207
|
+
if (options.field) {
|
208
|
+
text.push(' ctx.value = e["rowData"][ctx.field];');
|
209
|
+
} else {
|
210
|
+
text.push(' ctx.value = e["data"];');
|
211
|
+
}
|
212
|
+
text.push(' ctx.rowIndex = e["rowIndex"];');
|
213
|
+
text.push(' ctx.colIndex = e["colIndex"];');
|
214
|
+
text.push(' var cell = ctx.cell = e["cell"];'); // cell is for referencing later
|
215
|
+
} else {
|
216
|
+
text.push('(function(rowIndex, columnIndex, value, cell, colDef, dataRow, dataTable, dataView, cgrid) {');
|
217
|
+
text.push(' ctx.api = cgrid;');
|
218
|
+
text.push(' ctx.wrapper = "composite-grid";');
|
219
|
+
if (options.field) {
|
220
|
+
text.push(' ctx.value = dataRow ? dataRow[ctx.field] : null;');
|
221
|
+
} else {
|
222
|
+
text.push(' ctx.value = value;');
|
223
|
+
}
|
224
|
+
text.push(' ctx.rowIndex = rowIndex;');
|
225
|
+
text.push(' ctx.colIndex = columnIndex;');
|
226
|
+
text.push(' ctx.cell = cell;');
|
227
|
+
}
|
228
|
+
|
229
|
+
// Common setups triggered once per element
|
230
|
+
text.push(' var element = cell.getContent();');
|
231
|
+
text.push(' if(!element || (element._formatterName !== "' + defaultOpt.refName + '")) {');
|
232
|
+
text.push(' element = document.createElement("' + defaultOpt.tagName + '");');
|
233
|
+
text.push(' element._formatterName = "' + defaultOpt.refName + '";');
|
234
|
+
if (defaultOpt.onElementCreated) {
|
235
|
+
ctx.onElementCreated = defaultOpt.onElementCreated;
|
236
|
+
text.push(' ctx.onElementCreated(element, ctx);');
|
237
|
+
}
|
238
|
+
|
239
|
+
assignAttribute(text, options, defaultOpt);
|
240
|
+
assignStyle(text, options, defaultOpt);
|
241
|
+
assignListener(text, options, defaultOpt);
|
242
|
+
|
243
|
+
text.push(' }\n'); // End of setup
|
244
|
+
|
245
|
+
if(typeof options.disablingField === "string" || options.disablingField == null) {
|
246
|
+
text.push(' if(ctx.isElementDisabled()) {');
|
247
|
+
text.push(' element.setAttribute("disabled", "");');
|
248
|
+
text.push(' } else {');
|
249
|
+
text.push(' element.removeAttribute("disabled");');
|
250
|
+
text.push(' }');
|
251
|
+
}
|
252
|
+
if(typeof options.errorField === "string" || options.errorField == null) {
|
253
|
+
text.push(' if(ctx.getError()) {');
|
254
|
+
text.push(' element.setAttribute("error", "");');
|
255
|
+
text.push(' } else {');
|
256
|
+
text.push(' element.removeAttribute("error");');
|
257
|
+
text.push(' }');
|
258
|
+
}
|
259
|
+
|
260
|
+
// Element binding/updating
|
261
|
+
if (defaultOpt.onElementUpdated) {
|
262
|
+
ctx.onElementUpdated = defaultOpt.onElementUpdated;
|
263
|
+
text.push(' ctx.onElementUpdated(element, ctx);');
|
264
|
+
}
|
265
|
+
|
266
|
+
if (typeof options.onElementRendered === "function") {
|
267
|
+
ctx.onElementRendered = options.onElementRendered;
|
268
|
+
text.push(' ctx.onElementRendered(element, ctx);');
|
269
|
+
}
|
270
|
+
|
271
|
+
text.push(' cell.setContent(element);');
|
272
|
+
text.push('})');
|
273
|
+
return text.filter(Boolean).join('\n');
|
274
|
+
}
|
275
|
+
|
276
|
+
/** @constructor
|
277
|
+
* @param {*=} options
|
278
|
+
*/
|
279
|
+
var FormatterBuilder = function (options) {
|
280
|
+
// TODO: FormatterBuilder should not be initializable
|
281
|
+
};
|
282
|
+
|
283
|
+
/** @public
|
284
|
+
* @param {FormatterBuilder~Options=} userOptions
|
285
|
+
* @param {FormatterBuilder~Options=} defaultOpt
|
286
|
+
* @return {Object}
|
287
|
+
*/
|
288
|
+
FormatterBuilder.create = function (userOptions, defaultOpt) {
|
289
|
+
userOptions = userOptions || {};
|
290
|
+
defaultOpt = defaultOpt || {};
|
291
|
+
var ctx = {}; // WANRING: This object is used as a closure variable
|
292
|
+
ctx.field = userOptions.field;
|
293
|
+
|
294
|
+
if (defaultOpt.changeHook) {
|
295
|
+
var changeHandler = userOptions.changeHandler || defaultOpt.changeHandler;
|
296
|
+
if (!defaultOpt.events) {
|
297
|
+
defaultOpt.events = {};
|
298
|
+
}
|
299
|
+
defaultOpt.events[defaultOpt.changeHook] = changeHandler;
|
300
|
+
} else if (defaultOpt.changeHooks) {
|
301
|
+
var changeHandlers = userOptions.changeHandlers || defaultOpt.changeHandlers;
|
302
|
+
if (!defaultOpt.events) {
|
303
|
+
defaultOpt.events = {};
|
304
|
+
}
|
305
|
+
for (var i = 0; i < changeHandlers.length; i++) {
|
306
|
+
defaultOpt.events[defaultOpt.changeHooks[i]] = changeHandlers[i];
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
if (defaultOpt.events) {
|
311
|
+
ctx.defaultEvents = defaultOpt.events;
|
312
|
+
}
|
313
|
+
|
314
|
+
if (userOptions.events) {
|
315
|
+
ctx.userEvents = userOptions.events;
|
316
|
+
}
|
317
|
+
|
318
|
+
var txt;
|
319
|
+
txt = buildFnText("composite-grid", ctx, userOptions, defaultOpt);
|
320
|
+
var compositeGridBinding = eval(txt);
|
321
|
+
|
322
|
+
txt = buildFnText("real-time-grid", ctx, userOptions, defaultOpt);
|
323
|
+
var rtGridBinding = eval(txt);
|
324
|
+
|
325
|
+
return {
|
326
|
+
render: function () {},
|
327
|
+
init: _onInitContextObject.bind(ctx),
|
328
|
+
bind: compositeGridBinding,
|
329
|
+
binding: rtGridBinding
|
330
|
+
};
|
331
|
+
};
|
332
|
+
|
333
|
+
export default FormatterBuilder;
|
334
|
+
export { FormatterBuilder };
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
import ElfUtil from "../../tr-grid-util/es6/ElfUtil.js";
|
3
|
+
|
4
|
+
declare class NumericInputFormatter {
|
5
|
+
|
6
|
+
constructor(options?: any);
|
7
|
+
|
8
|
+
public static create(options?: (FormatterBuilder.Options|any)): any;
|
9
|
+
|
10
|
+
}
|
11
|
+
|
12
|
+
export default NumericInputFormatter;
|
13
|
+
export { NumericInputFormatter };
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
import ElfUtil from "../../tr-grid-util/es6/ElfUtil.js";
|
3
|
+
|
4
|
+
var onElementUpdated = function (element, ctx) {
|
5
|
+
element.value = ctx.value;
|
6
|
+
};
|
7
|
+
|
8
|
+
var onElementCreated = function (element, ctx) {
|
9
|
+
element.setAttribute("type", "number");
|
10
|
+
};
|
11
|
+
|
12
|
+
var _changeHandler = function (e, ctx) {
|
13
|
+
ctx.value = e.detail.value;
|
14
|
+
ctx.setData(ctx.field, ctx.value);
|
15
|
+
};
|
16
|
+
|
17
|
+
var _inputChangeHandler = function (e, ctx) {
|
18
|
+
ctx.value = +e.currentTarget.value;
|
19
|
+
ctx.setData(ctx.field, ctx.value);
|
20
|
+
};
|
21
|
+
|
22
|
+
/** @constructor
|
23
|
+
* @param {*=} options
|
24
|
+
*/
|
25
|
+
var NumericInputFormatter = function (options) {
|
26
|
+
|
27
|
+
};
|
28
|
+
|
29
|
+
/** @public
|
30
|
+
* @param {(FormatterBuilder.Options|Object)=} options
|
31
|
+
* @return {Object}
|
32
|
+
*/
|
33
|
+
NumericInputFormatter.create = function (options) {
|
34
|
+
var tn = "input";
|
35
|
+
if(ElfUtil.hasComponent("ef-number-field")) {
|
36
|
+
tn = "ef-number-field";
|
37
|
+
} else if(ElfUtil.hasComponent("ef-input")) {
|
38
|
+
tn = "ef-input";
|
39
|
+
}
|
40
|
+
|
41
|
+
var defaultOpt = {
|
42
|
+
tagName: tn,
|
43
|
+
refName: "NumericInputFormatter",
|
44
|
+
onElementUpdated: onElementUpdated,
|
45
|
+
changeHook: "value-changed",
|
46
|
+
changeHandler: _changeHandler,
|
47
|
+
styles: {
|
48
|
+
margin: "0",
|
49
|
+
width: "100%"
|
50
|
+
}
|
51
|
+
};
|
52
|
+
if(tn !== "ef-number-field") {
|
53
|
+
defaultOpt.onElementCreated = onElementCreated;
|
54
|
+
if(tn === "input") {
|
55
|
+
defaultOpt.changeHook = "change";
|
56
|
+
defaultOpt.changeHandler = _inputChangeHandler;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
return FormatterBuilder.create(options, defaultOpt);
|
61
|
+
};
|
62
|
+
|
63
|
+
export default NumericInputFormatter;
|
64
|
+
export { NumericInputFormatter };
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
import {PercentBar} from "../../tr-grid-util/es6/PercentBar.js";
|
3
|
+
|
4
|
+
declare namespace PercentBarFormatter {
|
5
|
+
|
6
|
+
type Options = {
|
7
|
+
alignment?: string,
|
8
|
+
movementColor?: boolean,
|
9
|
+
barColor?: string,
|
10
|
+
textHidden?: boolean,
|
11
|
+
textWidth?: (number|string)
|
12
|
+
};
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
declare class PercentBarFormatter {
|
17
|
+
|
18
|
+
constructor(options?: any);
|
19
|
+
|
20
|
+
public static create(options?: (FormatterBuilder.Options|PercentBarFormatter.Options|any)): any;
|
21
|
+
|
22
|
+
}
|
23
|
+
|
24
|
+
export default PercentBarFormatter;
|
25
|
+
export { PercentBarFormatter };
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
import {PercentBar} from "../../tr-grid-util/es6/PercentBar.js";
|
3
|
+
|
4
|
+
/** @typedef {Object} PercentBarFormatter~Options
|
5
|
+
* @description PercentBarFormatter options
|
6
|
+
* @property {string=} alignment="left" Possible values are l, r, c, left, right, and center
|
7
|
+
* @property {boolean=} movementColor=true If disabled, percent bar will not use up and down colors
|
8
|
+
* @property {string=} barColor="" Custom color for bar element. This will override the movementColor
|
9
|
+
* @property {boolean=} textHidden=false If enabled, text label will not be shown
|
10
|
+
* @property {(number|string)=} textWidth=56 Number of pixel or percentage width
|
11
|
+
*/
|
12
|
+
|
13
|
+
/** Due to stamping technique is used in the FormatterBuilder, we have to store the constructor in context object
|
14
|
+
* @private
|
15
|
+
* @param {Object} ctx Context object
|
16
|
+
* @param {Object} options User options
|
17
|
+
*/
|
18
|
+
var onContextCreated = function (ctx, options) {
|
19
|
+
ctx.PercentBar = PercentBar;
|
20
|
+
};
|
21
|
+
|
22
|
+
/** @private
|
23
|
+
* @param {Element} element
|
24
|
+
* @param {Object} ctx Context object
|
25
|
+
*/
|
26
|
+
var onElementCreated = function (element, ctx) {
|
27
|
+
element["_percentBar"] = new ctx.PercentBar(element, ctx);
|
28
|
+
};
|
29
|
+
|
30
|
+
/** @private
|
31
|
+
* @param {Element} element
|
32
|
+
* @param {Object} ctx Context object
|
33
|
+
*/
|
34
|
+
var onElementUpdated = function (element, ctx) {
|
35
|
+
element["_percentBar"].setValue(ctx.value);
|
36
|
+
};
|
37
|
+
|
38
|
+
/** @constructor
|
39
|
+
* @param {*=} options
|
40
|
+
*/
|
41
|
+
var PercentBarFormatter = function (options) {
|
42
|
+
|
43
|
+
};
|
44
|
+
|
45
|
+
/** @public
|
46
|
+
* @param {(FormatterBuilder.Options|PercentBarFormatter.Options|Object)=} options
|
47
|
+
* @return {Object}
|
48
|
+
*/
|
49
|
+
PercentBarFormatter.create = function (options) {
|
50
|
+
var defaultOpt = {
|
51
|
+
tagName: "div",
|
52
|
+
refName: "PercentBarFormatter",
|
53
|
+
onContextCreated: onContextCreated,
|
54
|
+
onElementCreated: onElementCreated,
|
55
|
+
onElementUpdated: onElementUpdated
|
56
|
+
};
|
57
|
+
|
58
|
+
return FormatterBuilder.create(options, defaultOpt);
|
59
|
+
};
|
60
|
+
|
61
|
+
export default PercentBarFormatter;
|
62
|
+
export { PercentBarFormatter };
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
|
3
|
+
declare namespace SimpleImageFormatter {
|
4
|
+
|
5
|
+
type Options = {
|
6
|
+
height?: (string|number),
|
7
|
+
width?: (string|number)
|
8
|
+
};
|
9
|
+
|
10
|
+
}
|
11
|
+
|
12
|
+
declare class SimpleImageFormatter {
|
13
|
+
|
14
|
+
constructor(options?: any);
|
15
|
+
|
16
|
+
public static create(options?: (FormatterBuilder.Options|SimpleImageFormatter.Options|any)): any;
|
17
|
+
|
18
|
+
}
|
19
|
+
|
20
|
+
export default SimpleImageFormatter;
|
21
|
+
export { SimpleImageFormatter };
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
|
3
|
+
/** @typedef {Object} SimpleImageFormatter~Options
|
4
|
+
* @description FormatterBuilder options
|
5
|
+
* @property {(string|number)=} height
|
6
|
+
* @property {(string|number)=} width
|
7
|
+
*/
|
8
|
+
|
9
|
+
/** @private
|
10
|
+
* @function
|
11
|
+
* @param {Element} element
|
12
|
+
* @param {Object} ctx
|
13
|
+
*/
|
14
|
+
var onElementUpdated = function (element, ctx) {
|
15
|
+
element.src = ctx.value;
|
16
|
+
};
|
17
|
+
|
18
|
+
/** @constructor
|
19
|
+
* @param {*=} options
|
20
|
+
*/
|
21
|
+
var SimpleImageFormatter = function (options) {
|
22
|
+
|
23
|
+
};
|
24
|
+
|
25
|
+
/** @public
|
26
|
+
* @param {(FormatterBuilder.Options|SimpleImageFormatter.Options|Object)=} options
|
27
|
+
* @return {Object}
|
28
|
+
*/
|
29
|
+
SimpleImageFormatter.create = function (options) {
|
30
|
+
var defaultOpt = {
|
31
|
+
tagName: "img",
|
32
|
+
refName: "SimpleImageFormatter",
|
33
|
+
styles: {
|
34
|
+
position: "absolute",
|
35
|
+
maxHeight: "100%",
|
36
|
+
top: 0,
|
37
|
+
bottom: 0,
|
38
|
+
left: 0,
|
39
|
+
right: 0,
|
40
|
+
margin: "auto"
|
41
|
+
},
|
42
|
+
onElementUpdated: onElementUpdated,
|
43
|
+
height: "auto",
|
44
|
+
width: "auto"
|
45
|
+
};
|
46
|
+
|
47
|
+
defaultOpt.attributes = {
|
48
|
+
height: defaultOpt.height,
|
49
|
+
width: defaultOpt.width
|
50
|
+
};
|
51
|
+
if (options) {
|
52
|
+
if (options.height != null) {
|
53
|
+
defaultOpt.attributes.height = options.height;
|
54
|
+
}
|
55
|
+
if (options.width != null) {
|
56
|
+
defaultOpt.attributes.width = options.width;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
return FormatterBuilder.create(options, defaultOpt);
|
61
|
+
};
|
62
|
+
|
63
|
+
export default SimpleImageFormatter;
|
64
|
+
export { SimpleImageFormatter };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
|
3
|
+
declare class SimpleInputFormatter {
|
4
|
+
|
5
|
+
constructor(options?: any);
|
6
|
+
|
7
|
+
public static create(options?: (FormatterBuilder.Options|any)): any;
|
8
|
+
|
9
|
+
}
|
10
|
+
|
11
|
+
export default SimpleInputFormatter;
|
12
|
+
export { SimpleInputFormatter };
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
|
3
|
+
var onElementUpdated = function (element, ctx) {
|
4
|
+
element.value = ctx.value;
|
5
|
+
};
|
6
|
+
|
7
|
+
var _changeHandler = function (e, ctx) {
|
8
|
+
ctx.value = e.currentTarget.value;
|
9
|
+
ctx.setData(ctx.field, ctx.value);
|
10
|
+
};
|
11
|
+
|
12
|
+
/** @constructor
|
13
|
+
* @param {*=} options
|
14
|
+
*/
|
15
|
+
var SimpleInputFormatter = function (options) {
|
16
|
+
|
17
|
+
};
|
18
|
+
|
19
|
+
/** @public
|
20
|
+
* @param {(FormatterBuilder.Options|Object)=} options
|
21
|
+
* @return {Object}
|
22
|
+
*/
|
23
|
+
SimpleInputFormatter.create = function (options) {
|
24
|
+
var defaultOpt = {
|
25
|
+
tagName: "input",
|
26
|
+
refName: "SimpleInputFormatter",
|
27
|
+
onElementUpdated: onElementUpdated,
|
28
|
+
changeHook: "change",
|
29
|
+
changeHandler: _changeHandler,
|
30
|
+
styles: {
|
31
|
+
margin: "0",
|
32
|
+
width: "100%"
|
33
|
+
}
|
34
|
+
};
|
35
|
+
|
36
|
+
return FormatterBuilder.create(options, defaultOpt);
|
37
|
+
};
|
38
|
+
|
39
|
+
export default SimpleInputFormatter;
|
40
|
+
export { SimpleInputFormatter };
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import FormatterBuilder from "./FormatterBuilder.js";
|
2
|
+
|
3
|
+
declare namespace SimpleLinkFormatter {
|
4
|
+
|
5
|
+
type Options = {
|
6
|
+
label?: string,
|
7
|
+
urlField?: string
|
8
|
+
};
|
9
|
+
|
10
|
+
}
|
11
|
+
|
12
|
+
declare class SimpleLinkFormatter {
|
13
|
+
|
14
|
+
constructor(options?: any);
|
15
|
+
|
16
|
+
public static create(options?: (FormatterBuilder.Options|SimpleLinkFormatter.Options|any)): any;
|
17
|
+
|
18
|
+
}
|
19
|
+
|
20
|
+
export default SimpleLinkFormatter;
|
21
|
+
export { SimpleLinkFormatter };
|