@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,860 @@
|
|
1
|
+
import { customElement } from "@refinitiv-ui/core/decorators/custom-element.js";
|
2
|
+
import { BasicElement, html } from "@refinitiv-ui/core";
|
3
|
+
import "@refinitiv-ui/elements/button";
|
4
|
+
import "@refinitiv-ui/elements/checkbox";
|
5
|
+
import "@refinitiv-ui/elements/combo-box";
|
6
|
+
import "@refinitiv-ui/elements/item";
|
7
|
+
import "@refinitiv-ui/elements/panel";
|
8
|
+
import "@refinitiv-ui/elements/radio-button";
|
9
|
+
import "@refinitiv-ui/elements/button-bar";
|
10
|
+
import "@refinitiv-ui/elements/search-field";
|
11
|
+
import "@refinitiv-ui/elements/datetime-picker";
|
12
|
+
|
13
|
+
import Popup from "../../tr-grid-util/es6/Popup.js";
|
14
|
+
import DateTime from "../../tr-grid-util/es6/DateTime.js";
|
15
|
+
import { DATE_TIME, toDateTimeType } from "../../tr-grid-util/es6/FieldFormatter.js";
|
16
|
+
import ElementObserver from "../../tr-grid-util/es6/ElementObserver.js";
|
17
|
+
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
18
|
+
import translation from "./locale/translation.js";
|
19
|
+
import "./checkbox-list.js";
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @typedef {Object} FilterDialog~Config
|
23
|
+
* @property {Object} data Column data
|
24
|
+
* @property {string=} sortState "a" for ascending or "d" for descending
|
25
|
+
* @property {boolean=} sortUI Show Sort area
|
26
|
+
* @property {boolean=} filterUI Show Filter area
|
27
|
+
* @property {Function=} filterChanged Filter changed handler
|
28
|
+
* @property {Function=} confirm Alias of filterChanged
|
29
|
+
* @property {Function=} cancel Alias of dialog cancel
|
30
|
+
* @property {Function=} sortChanged Sort changed handler
|
31
|
+
*/
|
32
|
+
|
33
|
+
/** @type {Array.<Array>}
|
34
|
+
* @private
|
35
|
+
* @constant
|
36
|
+
*/
|
37
|
+
const DEFAULT_FILTERS = [
|
38
|
+
["CONT", "Contains"], //0
|
39
|
+
["NCONT", "Does Not Contain"], // 1
|
40
|
+
["GT", "Is Greater Than"], // 2
|
41
|
+
["GTE", "Is Greater Than Or Equal To"], // 3
|
42
|
+
["LT", "Is Less Than"], // 4
|
43
|
+
["LTE", "Is Less Than Or Equal To"], // 5
|
44
|
+
["BEGIN", "Begins With"], // 6
|
45
|
+
["NBEGIN", "Does Not Begin With"], // 7
|
46
|
+
["END", "Ends With"], // 8
|
47
|
+
["NEND", "Does Not End With"], // 9
|
48
|
+
["EQ", "Equals"], // 10
|
49
|
+
["NEQ", "Does Not Equal"] // 11
|
50
|
+
];
|
51
|
+
/** @type {Array.<Array>}
|
52
|
+
* @private
|
53
|
+
* @constant
|
54
|
+
*/
|
55
|
+
const DATE_FILTERS = [
|
56
|
+
["DT", "Date is"],
|
57
|
+
["DTB", "Date is Before"],
|
58
|
+
["DTA", "Date is After"]
|
59
|
+
];
|
60
|
+
/** @type {Array.<Array>}
|
61
|
+
* @private
|
62
|
+
* @constant
|
63
|
+
*/
|
64
|
+
const TEXT_FILTERS = [
|
65
|
+
DEFAULT_FILTERS[0],
|
66
|
+
DEFAULT_FILTERS[1],
|
67
|
+
DEFAULT_FILTERS[6],
|
68
|
+
DEFAULT_FILTERS[7],
|
69
|
+
DEFAULT_FILTERS[8],
|
70
|
+
DEFAULT_FILTERS[9]
|
71
|
+
];
|
72
|
+
/** @type {Array.<Array>}
|
73
|
+
* @private
|
74
|
+
* @constant
|
75
|
+
*/
|
76
|
+
const NUMBER_FILTERS = [
|
77
|
+
DEFAULT_FILTERS[2],
|
78
|
+
DEFAULT_FILTERS[3],
|
79
|
+
DEFAULT_FILTERS[4],
|
80
|
+
DEFAULT_FILTERS[5],
|
81
|
+
["NUMEQ", "Equals"],
|
82
|
+
["NUMNEQ", "Does Not Equal"]
|
83
|
+
];
|
84
|
+
|
85
|
+
/** @private
|
86
|
+
* @function
|
87
|
+
* @param {Array.<String>} options
|
88
|
+
* @returns {Object}
|
89
|
+
*/
|
90
|
+
var arrayToComboBoxItem = function(options) {
|
91
|
+
return {
|
92
|
+
label: options[1],
|
93
|
+
value: options[0]
|
94
|
+
};
|
95
|
+
};
|
96
|
+
/** @private
|
97
|
+
* @function
|
98
|
+
* @param {Array.<Array>} conditions
|
99
|
+
* @returns {Array.<Object>}
|
100
|
+
*/
|
101
|
+
var createComboBoxData = function(conditions) {
|
102
|
+
return conditions.map(arrayToComboBoxItem);
|
103
|
+
};
|
104
|
+
|
105
|
+
/**
|
106
|
+
* @class
|
107
|
+
* @public
|
108
|
+
*/
|
109
|
+
class FilterDialog extends BasicElement {
|
110
|
+
static get properties() {
|
111
|
+
return {
|
112
|
+
config: {type: Object},
|
113
|
+
data: {type: Object},
|
114
|
+
isShown: {type: Boolean},
|
115
|
+
target: {attribute: false},
|
116
|
+
filterMode: {type: String},
|
117
|
+
conditions: {attribute: false},
|
118
|
+
hiddenSortUI: {type: Boolean},
|
119
|
+
hiddenFilterUI: {type: Boolean},
|
120
|
+
sortState: {type: String},
|
121
|
+
fieldDataType: {type: String},
|
122
|
+
lang: { type: String, reflect: true }
|
123
|
+
};
|
124
|
+
}
|
125
|
+
|
126
|
+
static get is() {
|
127
|
+
return 'filter-dialog';
|
128
|
+
}
|
129
|
+
|
130
|
+
constructor() {
|
131
|
+
super();
|
132
|
+
|
133
|
+
this.lang = "en";
|
134
|
+
this._lang = "en";
|
135
|
+
this._translation = translation;
|
136
|
+
this.hiddenSortUI = false;
|
137
|
+
this.hiddenFilterUI = false;
|
138
|
+
this.isShown = false;
|
139
|
+
this.sortState = "n";
|
140
|
+
this.fieldDataType = "";
|
141
|
+
this._popup = new Popup({
|
142
|
+
"shown": this._onPopupShown.bind(this),
|
143
|
+
"hidden": this._onPopupHidden.bind(this)
|
144
|
+
});
|
145
|
+
ElementObserver.addLanguageListener(this);
|
146
|
+
}
|
147
|
+
|
148
|
+
/**
|
149
|
+
* @private
|
150
|
+
* @param {Object} changedProperties
|
151
|
+
*/
|
152
|
+
update(changedProperties) {
|
153
|
+
|
154
|
+
if(changedProperties.has("lang")) {
|
155
|
+
this._lang = ElfUtil.toLangString(this.lang);
|
156
|
+
}
|
157
|
+
|
158
|
+
if(changedProperties.has("config")) {
|
159
|
+
var options = this.config;
|
160
|
+
if(options) {
|
161
|
+
if (options.data) {
|
162
|
+
this.data = options.data;
|
163
|
+
}
|
164
|
+
|
165
|
+
if (options.sortState) {
|
166
|
+
this.sortState = (options.sortState) ? options.sortState.charAt(0).toLowerCase() : "";
|
167
|
+
}
|
168
|
+
|
169
|
+
if (options.sortUI != null) {
|
170
|
+
this.hiddenSortUI = options.sortUI === false;
|
171
|
+
}
|
172
|
+
|
173
|
+
if (options.filterUI != null) {
|
174
|
+
this.hiddenFilterUI = options.filterUI === false;
|
175
|
+
}
|
176
|
+
|
177
|
+
if (options.target) {
|
178
|
+
this.target = options.target;
|
179
|
+
}
|
180
|
+
|
181
|
+
if (typeof options.filterChanged === "function") {
|
182
|
+
this.addEventListener("filterChanged", options.filterChanged, false);
|
183
|
+
}
|
184
|
+
|
185
|
+
if (typeof options.confirm === "function") {
|
186
|
+
this.addEventListener("confirm", options.confirm, false);
|
187
|
+
}
|
188
|
+
|
189
|
+
if (typeof options.cancel === "function") {
|
190
|
+
this.addEventListener("cancel", options.cancel, false);
|
191
|
+
}
|
192
|
+
|
193
|
+
if (typeof options.sortChanged === "function") {
|
194
|
+
this.addEventListener("sortChanged", options.sortChanged, false);
|
195
|
+
}
|
196
|
+
|
197
|
+
if (options.filterMode) {
|
198
|
+
this.filterMode = options.filterMode;
|
199
|
+
}
|
200
|
+
|
201
|
+
if (options.conditions) {
|
202
|
+
this.conditions = options.conditions;
|
203
|
+
}
|
204
|
+
|
205
|
+
if (options.fieldDataType != null) {
|
206
|
+
this.fieldDataType = options.fieldDataType;
|
207
|
+
this._updateGeneralComboBoxes();
|
208
|
+
}
|
209
|
+
|
210
|
+
// allow config.lang overides default lang
|
211
|
+
if (options.lang) {
|
212
|
+
this._lang = ElfUtil.toLangString(options.lang);
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
super.update(changedProperties);
|
218
|
+
}
|
219
|
+
|
220
|
+
/** A `TemplateResult` that will be used to render the updated internal template
|
221
|
+
* @private
|
222
|
+
* @return {*}
|
223
|
+
*/
|
224
|
+
render() {
|
225
|
+
var lang = this._translation[this._lang] ? this._lang : "en";
|
226
|
+
var t = this._translation[lang];
|
227
|
+
return html`
|
228
|
+
<ef-panel id="root_panel" spacing with-shadow with-border>
|
229
|
+
<div id="filterDialogContent" class="filter-dialog dialog-theme-wrapper">
|
230
|
+
|
231
|
+
<div class="group-block" id="filterSortUI">
|
232
|
+
<label>${t["Sort by"]}:</label>
|
233
|
+
<ef-button-bar managed id="filterSortCoralSplitBtn">
|
234
|
+
<ef-button toggles>A — Z</ef-button>
|
235
|
+
<ef-button toggles>Z — A</ef-button>
|
236
|
+
</ef-button-bar>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<hr id="separator"/>
|
240
|
+
|
241
|
+
<div class="group-block" id="filterUI">
|
242
|
+
<label>${t["Filter by"]}:</label>
|
243
|
+
<ef-button-bar managed id="filterCoralSplitBtn">
|
244
|
+
<ef-button toggles active>${t["VALUE"]}</ef-button>
|
245
|
+
<ef-button toggles>${t["CONDITION"]}</ef-button>
|
246
|
+
</ef-button-bar>
|
247
|
+
|
248
|
+
<div class="input-group" id="filterValueUI">
|
249
|
+
<ef-search-field id="dataFilter"></ef-search-field>
|
250
|
+
<checkbox-list id="dataSelector" lang="${lang}"></checkbox-list>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<div class="hide" id="filterAdvancedUI">
|
254
|
+
<div class="input-group" id="general_conditon">
|
255
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
256
|
+
<ef-combo-box placeholder="${t["Value"]}" lang="${lang}" free-text></ef-combo-box>
|
257
|
+
|
258
|
+
<div class="radio-group">
|
259
|
+
<ef-radio-button name="filterRadio" value="AND" checked>${t["And"]}</ef-radio-button>
|
260
|
+
<ef-radio-button name="filterRadio" value="OR">${t["Or"]}</ef-radio-button>
|
261
|
+
</div>
|
262
|
+
|
263
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
264
|
+
<ef-combo-box placeholder="${t["Value"]}" lang="${lang}" free-text></ef-combo-box>
|
265
|
+
</div>
|
266
|
+
<div class="input-group hide" id="datetime_conditon">
|
267
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
268
|
+
<ef-datetime-picker placeholder="DD-MM-YY" format="dd-MM-yy" lang="${lang}"></ef-datetime-picker>
|
269
|
+
|
270
|
+
<div class="radio-group">
|
271
|
+
<ef-radio-button name="filterRadio" value="AND" checked>${t["And"]}</ef-radio-button>
|
272
|
+
<ef-radio-button name="filterRadio" value="OR" >${t["Or"]}</ef-radio-button>
|
273
|
+
</div>
|
274
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
275
|
+
<ef-datetime-picker placeholder="DD-MM-YY" format="dd-MM-yy" lang="${lang}"></ef-datetime-picker>
|
276
|
+
</div>
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
<div class="cancel-ok"">
|
281
|
+
<ef-button id="clear_btn">${t["Clear Filter"]}</ef-button>
|
282
|
+
<ef-button cta id="done_btn">${t["Done"]}</ef-button><ef-button id="cancel_btn">${t["Cancel"]}</ef-button>
|
283
|
+
</div>
|
284
|
+
</ef-panel>
|
285
|
+
`;
|
286
|
+
}
|
287
|
+
|
288
|
+
/**
|
289
|
+
* @private
|
290
|
+
* @override
|
291
|
+
*/
|
292
|
+
firstUpdated(changedProps) {
|
293
|
+
this._initialized = true;
|
294
|
+
|
295
|
+
const root = this.shadowRoot;
|
296
|
+
|
297
|
+
this._separator = root.getElementById("separator");
|
298
|
+
this._rootContainer = root.getElementById("root_panel");
|
299
|
+
this._dialogContent = root.getElementById("filterDialogContent");
|
300
|
+
this._sortUI = root.getElementById("filterSortUI");
|
301
|
+
this._filterUI = root.getElementById("filterUI");
|
302
|
+
this._cancelBtn = root.getElementById("cancel_btn");
|
303
|
+
this._doneBtn = root.getElementById("done_btn");
|
304
|
+
this._clearBtn = root.getElementById("clear_btn");
|
305
|
+
this._sortBtns = root.getElementById("filterSortCoralSplitBtn");
|
306
|
+
|
307
|
+
this._dataFilter = root.getElementById("dataFilter");
|
308
|
+
this._dataSelector = root.getElementById("dataSelector");
|
309
|
+
|
310
|
+
this._filterBtns = root.getElementById("filterCoralSplitBtn");
|
311
|
+
this._valueFilterUI = root.getElementById("filterValueUI");
|
312
|
+
|
313
|
+
this._advFilterUI = root.getElementById("filterAdvancedUI");
|
314
|
+
this._generalCondUI = this._advFilterUI.querySelector("#general_conditon");
|
315
|
+
this._generalComboBoxes = this._generalCondUI.getElementsByTagName("ef-combo-box");
|
316
|
+
this._generalRadioBtns = this._generalCondUI.getElementsByTagName("ef-radio-button");
|
317
|
+
this._dateTimeCondUI = this._advFilterUI.querySelector("#datetime_conditon");
|
318
|
+
this._dateTimeComboBoxes = this._dateTimeCondUI.getElementsByTagName("ef-combo-box");
|
319
|
+
this._dateTimePickers = this._dateTimeCondUI.getElementsByTagName("ef-datetime-picker");
|
320
|
+
this._dateTimeRadioBtns = this._dateTimeCondUI.getElementsByTagName("ef-radio-button");
|
321
|
+
|
322
|
+
this._dateTimeComboBoxes[0].data = createComboBoxData(this._translateFilters(DATE_FILTERS));
|
323
|
+
this._dateTimeComboBoxes[1].data = createComboBoxData(this._translateFilters(DATE_FILTERS));
|
324
|
+
|
325
|
+
this._updateGeneralComboBoxes();
|
326
|
+
|
327
|
+
let comboxBoxes = this._advFilterUI.getElementsByTagName("ef-combo-box");
|
328
|
+
let len = comboxBoxes.length;
|
329
|
+
for (let i = 0; i < len; i++) {
|
330
|
+
comboxBoxes[i].addEventListener("keydown", this._onCondSelectorKeyDown);
|
331
|
+
}
|
332
|
+
|
333
|
+
this._dataFilter.addEventListener("value-changed", this._filterData.bind(this));
|
334
|
+
|
335
|
+
this._cancelBtn.addEventListener("click", this._onCancelBtnClick.bind(this));
|
336
|
+
this._doneBtn.addEventListener("click", this._onDoneBtnClick.bind(this));
|
337
|
+
this._clearBtn.addEventListener("click", this._clearAdvanceFilterUI.bind(this));
|
338
|
+
|
339
|
+
this._sortBtns.addEventListener("click", this._onClickSort.bind(this));
|
340
|
+
this._filterBtns.addEventListener("click", this._onClickFilter.bind(this));
|
341
|
+
}
|
342
|
+
|
343
|
+
/**
|
344
|
+
* @private
|
345
|
+
* @override
|
346
|
+
*/
|
347
|
+
updated(changedProps) {
|
348
|
+
// Update Sort UI
|
349
|
+
var isHiddenSortUIChanged = changedProps.has('hiddenSortUI');
|
350
|
+
var isHiddenFilterUIChanged = changedProps.has('hiddenFilterUI');
|
351
|
+
if (isHiddenSortUIChanged) {
|
352
|
+
let pn = this._sortUI.parentNode;
|
353
|
+
if (this.hiddenSortUI) {
|
354
|
+
if (pn) {
|
355
|
+
pn.removeChild(this._sortUI);
|
356
|
+
}
|
357
|
+
} else {
|
358
|
+
if (!pn) {
|
359
|
+
// prepend child to _dialogContent
|
360
|
+
if (this._dialogContent.firstChild) {
|
361
|
+
this._dialogContent.insertBefore(this._sortUI, this._dialogContent.firstChild);
|
362
|
+
} else {
|
363
|
+
this._dialogContent.appendChild(this._sortUI);
|
364
|
+
}
|
365
|
+
}
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
369
|
+
if (isHiddenFilterUIChanged) {
|
370
|
+
// Update Filter UI
|
371
|
+
let pn = this._filterUI.parentNode;
|
372
|
+
if (this.hiddenFilterUI) {
|
373
|
+
if (pn) {
|
374
|
+
pn.removeChild(this._filterUI);
|
375
|
+
}
|
376
|
+
this._dialogContent.classList.add('no-filter-ui');
|
377
|
+
} else {
|
378
|
+
if (!pn) {
|
379
|
+
this._dialogContent.appendChild(this._filterUI);
|
380
|
+
}
|
381
|
+
this._dialogContent.classList.remove('no-filter-ui');
|
382
|
+
}
|
383
|
+
}
|
384
|
+
|
385
|
+
if (isHiddenSortUIChanged || isHiddenFilterUIChanged) {
|
386
|
+
var isHide = this.hiddenSortUI || this.hiddenFilterUI;
|
387
|
+
this._separator.classList.toggle('hide', isHide);
|
388
|
+
}
|
389
|
+
|
390
|
+
if (changedProps.has('isShown')) {
|
391
|
+
if (this.isShown) {
|
392
|
+
this._popup.attachTo(this.target, "bottom"); // This will cause popup to recalculate its position
|
393
|
+
this._updateUIState(); // should updateUIState everytime popup being show
|
394
|
+
}
|
395
|
+
|
396
|
+
this._popup.show(this.isShown);
|
397
|
+
}
|
398
|
+
}
|
399
|
+
|
400
|
+
/** Initialize dialog
|
401
|
+
* @public
|
402
|
+
* @param {FilterDialog~Config} options - initial data
|
403
|
+
*/
|
404
|
+
init(options) {
|
405
|
+
this.config = options;
|
406
|
+
}
|
407
|
+
|
408
|
+
/** Show the dialog as a popup
|
409
|
+
* @public
|
410
|
+
*/
|
411
|
+
show() {
|
412
|
+
this._popup.appendChild(this); // To force first time initialization
|
413
|
+
|
414
|
+
this._popup.show();
|
415
|
+
}
|
416
|
+
|
417
|
+
/** Hide the dialog
|
418
|
+
* @public
|
419
|
+
*/
|
420
|
+
hide() {
|
421
|
+
this._popup.hide();
|
422
|
+
}
|
423
|
+
|
424
|
+
/**
|
425
|
+
* @private
|
426
|
+
*/
|
427
|
+
_onPopupShown() {
|
428
|
+
this.isShown = true; // To trigger update
|
429
|
+
}
|
430
|
+
/**
|
431
|
+
* @private
|
432
|
+
*/
|
433
|
+
_onPopupHidden() {
|
434
|
+
this.isShown = false; // For backward compatability
|
435
|
+
}
|
436
|
+
|
437
|
+
/**
|
438
|
+
* @public
|
439
|
+
* @param {string} val Sorting state "d" or "a"
|
440
|
+
*/
|
441
|
+
setSortState(val) {
|
442
|
+
this.sortState = (val) ? val.charAt(0).toLowerCase() : "";
|
443
|
+
}
|
444
|
+
|
445
|
+
/** Hide Sort UI block
|
446
|
+
* @public
|
447
|
+
* @param {boolean} val - value
|
448
|
+
*/
|
449
|
+
hideSortUI(val) {
|
450
|
+
this.hiddenSortUI = val;
|
451
|
+
}
|
452
|
+
|
453
|
+
/**
|
454
|
+
* @private
|
455
|
+
* @param {*} e
|
456
|
+
*/
|
457
|
+
_filterData(e) {
|
458
|
+
this._dataSelector.filter(e.detail.value);
|
459
|
+
}
|
460
|
+
|
461
|
+
/**
|
462
|
+
* @private
|
463
|
+
* @param {*} e
|
464
|
+
*/
|
465
|
+
_onCondSelectorKeyDown(e) {
|
466
|
+
if (e.keyCode == 13) {
|
467
|
+
e.stopPropagation();
|
468
|
+
}
|
469
|
+
}
|
470
|
+
|
471
|
+
/**
|
472
|
+
* Click on sort buttons
|
473
|
+
* @private
|
474
|
+
* @param {object} e - event
|
475
|
+
*/
|
476
|
+
_onClickSort(e) {
|
477
|
+
const tgt = e.target;
|
478
|
+
let sortState = "n";
|
479
|
+
|
480
|
+
// TODO: Simplify getting sort state logics
|
481
|
+
const children = this._sortBtns.children;
|
482
|
+
if (children[0].contains(tgt)) {
|
483
|
+
sortState = "a";
|
484
|
+
} else if (children[1].contains(tgt)) {
|
485
|
+
sortState = "d";
|
486
|
+
}
|
487
|
+
this.sortState = sortState;
|
488
|
+
|
489
|
+
this.dispatchEvent(new CustomEvent('sortChanged', {
|
490
|
+
detail: {
|
491
|
+
value: sortState
|
492
|
+
}
|
493
|
+
}));
|
494
|
+
this.hide();
|
495
|
+
e.preventDefault();
|
496
|
+
e.stopPropagation();
|
497
|
+
}
|
498
|
+
|
499
|
+
/**
|
500
|
+
* Click on Filter By Value Condition buttons
|
501
|
+
* @private
|
502
|
+
* @param {object} e - event
|
503
|
+
*/
|
504
|
+
_onClickFilter(e) {
|
505
|
+
const tgt = e.target;
|
506
|
+
const children = this._filterBtns.children;
|
507
|
+
this.filterMode = (children[1].contains(tgt)) ? "custom" : "text"; // Using setter
|
508
|
+
e.preventDefault();
|
509
|
+
e.stopPropagation();
|
510
|
+
this._updateFilterModeSelectionUI();
|
511
|
+
}
|
512
|
+
|
513
|
+
/**
|
514
|
+
* @private
|
515
|
+
* @param {object} e - event
|
516
|
+
*/
|
517
|
+
_onDoneBtnClick(e) {
|
518
|
+
let context;
|
519
|
+
if (this._isAdvancedFilterMode()) {
|
520
|
+
// Retrieve filter conditions from UI;
|
521
|
+
let oper1, oper2, val1, val2, connector;
|
522
|
+
var dateTimeType = toDateTimeType(this.fieldDataType);
|
523
|
+
var fdt = dateTimeType ? dateTimeType : this.fieldDataType.toLowerCase();
|
524
|
+
if (fdt === DATE_TIME) {
|
525
|
+
oper1 = this._dateTimeComboBoxes[0].value;
|
526
|
+
val1 = this._dateTimePickers[0].value;
|
527
|
+
if(val1) {
|
528
|
+
val1 = new Date(val1);
|
529
|
+
}
|
530
|
+
oper2 = this._dateTimeComboBoxes[1].value;
|
531
|
+
val2 = this._dateTimePickers[1].value;
|
532
|
+
if(val2) {
|
533
|
+
val2 = new Date(val2);
|
534
|
+
}
|
535
|
+
|
536
|
+
if (this._dateTimeRadioBtns[0].checked) {
|
537
|
+
connector = "AND";
|
538
|
+
} else if (this._dateTimeRadioBtns[1].checked) {
|
539
|
+
connector = "OR";
|
540
|
+
}
|
541
|
+
} else {
|
542
|
+
oper1 = this._generalComboBoxes[0].value;
|
543
|
+
val1 = this._generalComboBoxes[1].value;
|
544
|
+
oper2 = this._generalComboBoxes[2].value;
|
545
|
+
val2 = this._generalComboBoxes[3].value;
|
546
|
+
|
547
|
+
if (this._generalRadioBtns[0].checked) {
|
548
|
+
connector = "AND";
|
549
|
+
} else if (this._generalRadioBtns[1].checked) {
|
550
|
+
connector = "OR";
|
551
|
+
}
|
552
|
+
|
553
|
+
// Perform automatic data type conversion for only number field data type
|
554
|
+
if (fdt === "number") {
|
555
|
+
var num = NaN;
|
556
|
+
if (val1) {
|
557
|
+
num = Number(val1);
|
558
|
+
if(num === num) { // Convert to number only when number is valid
|
559
|
+
val1 = num;
|
560
|
+
}
|
561
|
+
}
|
562
|
+
|
563
|
+
if (val2) {
|
564
|
+
num = Number(val2);
|
565
|
+
if(num === num) { // Convert to number only when number is valid
|
566
|
+
val2 = num;
|
567
|
+
}
|
568
|
+
}
|
569
|
+
}
|
570
|
+
}
|
571
|
+
|
572
|
+
context = {
|
573
|
+
bubbles: false,
|
574
|
+
detail: {
|
575
|
+
conditions: [
|
576
|
+
[oper1, val1, connector],
|
577
|
+
[oper2, val2]
|
578
|
+
],
|
579
|
+
fieldDataType: this.fieldDataType
|
580
|
+
}
|
581
|
+
};
|
582
|
+
} else {
|
583
|
+
context = {
|
584
|
+
bubbles: false,
|
585
|
+
detail: {
|
586
|
+
value: this._dataSelector.getSelectedItems(),
|
587
|
+
fieldDataType: this.fieldDataType
|
588
|
+
}
|
589
|
+
};
|
590
|
+
}
|
591
|
+
|
592
|
+
this.dispatchEvent(new CustomEvent("filterChanged", context));
|
593
|
+
this.dispatchEvent(new CustomEvent("confirm", context));
|
594
|
+
this.hide();
|
595
|
+
}
|
596
|
+
|
597
|
+
/**
|
598
|
+
* @private
|
599
|
+
* @param {object} e - event
|
600
|
+
*/
|
601
|
+
_onCancelBtnClick(e) {
|
602
|
+
this.dispatchEvent(new CustomEvent('cancel'));
|
603
|
+
this.hide();
|
604
|
+
}
|
605
|
+
|
606
|
+
/**
|
607
|
+
* @private
|
608
|
+
*/
|
609
|
+
_clearAdvanceFilterUI() {
|
610
|
+
var defaultVal = "";
|
611
|
+
var dateTimeType = toDateTimeType(this.fieldDataType);
|
612
|
+
var fdt = dateTimeType ? dateTimeType : this.fieldDataType.toLowerCase();
|
613
|
+
if (fdt === DATE_TIME) {
|
614
|
+
defaultVal = "DT";
|
615
|
+
this._clearValue(this._dateTimeComboBoxes[0], defaultVal);
|
616
|
+
this._clearValue(this._dateTimeComboBoxes[1]);
|
617
|
+
this._dateTimePickers[0].value = "";
|
618
|
+
this._dateTimePickers[1].value = "";
|
619
|
+
this._dateTimeRadioBtns[0].checked = true;
|
620
|
+
} else {
|
621
|
+
if(fdt === "number") {
|
622
|
+
defaultVal = "GT";
|
623
|
+
} else {
|
624
|
+
defaultVal = "CONT";
|
625
|
+
}
|
626
|
+
this._clearValue(this._generalComboBoxes[0], defaultVal);
|
627
|
+
this._clearValue(this._generalComboBoxes[1]);
|
628
|
+
this._clearValue(this._generalComboBoxes[2]);
|
629
|
+
this._clearValue(this._generalComboBoxes[3]);
|
630
|
+
this._generalRadioBtns[0].checked = true;
|
631
|
+
}
|
632
|
+
}
|
633
|
+
/**
|
634
|
+
* @private
|
635
|
+
*/
|
636
|
+
_updateGeneralComboBoxes() {
|
637
|
+
if(this._initialized) {
|
638
|
+
var filterItems;
|
639
|
+
var dateTimeType = toDateTimeType(this.fieldDataType);
|
640
|
+
var fdt = dateTimeType ? dateTimeType : this.fieldDataType.toLowerCase();
|
641
|
+
if(fdt === "number") {
|
642
|
+
filterItems = NUMBER_FILTERS;
|
643
|
+
} else if(fdt === "general" || fdt === "text") {
|
644
|
+
filterItems = TEXT_FILTERS;
|
645
|
+
} else {
|
646
|
+
filterItems = DEFAULT_FILTERS;
|
647
|
+
}
|
648
|
+
var translated = this._translateFilters(filterItems);
|
649
|
+
this._generalComboBoxes[0].data = createComboBoxData(translated);
|
650
|
+
this._generalComboBoxes[2].data = createComboBoxData(translated);
|
651
|
+
}
|
652
|
+
}
|
653
|
+
|
654
|
+
/**
|
655
|
+
* Filter is Advanced (By Condition) or Custom (By Value)
|
656
|
+
* @private
|
657
|
+
* @return {boolean}
|
658
|
+
*/
|
659
|
+
_isAdvancedFilterMode() {
|
660
|
+
const ch = this.filterMode ? this.filterMode.charAt(0).toLowerCase() : "";
|
661
|
+
// a - Advanced Filter by Condition; c - Custom Filter by Value
|
662
|
+
return (ch === "c" || ch === "a");
|
663
|
+
}
|
664
|
+
|
665
|
+
/**
|
666
|
+
* @private
|
667
|
+
* @param {Element} elem ef-combo-box element
|
668
|
+
* @param {string} defaultVal=""
|
669
|
+
*/
|
670
|
+
_clearValue(elem, defaultVal) {
|
671
|
+
if(elem.clearSelection) { // clearSelection is deprecated in ELF v4
|
672
|
+
elem.clearSelection();
|
673
|
+
} else {
|
674
|
+
// WORKAROUND:: combo box has a bug. Cannot clear text in free-mode
|
675
|
+
// So wee need to remove free-text and re-set again
|
676
|
+
// to track bug https://jira.refinitiv.com/browse/ELF-1694
|
677
|
+
// TODO:: need to remove WORKAROUND after ELF-1694 fixed
|
678
|
+
var hasFreeTextMode = elem.getAttribute('free-text') != null;
|
679
|
+
if (hasFreeTextMode) {
|
680
|
+
elem.removeAttribute('free-text');
|
681
|
+
}
|
682
|
+
|
683
|
+
elem.value = defaultVal || "";
|
684
|
+
|
685
|
+
if (hasFreeTextMode) {
|
686
|
+
elem.setAttribute('free-text', '');
|
687
|
+
}
|
688
|
+
}
|
689
|
+
}
|
690
|
+
|
691
|
+
/** to prepare and sync state from config into all UI
|
692
|
+
* @private
|
693
|
+
*/
|
694
|
+
_updateUIState() {
|
695
|
+
this._updateFilterModeSelectionUI();
|
696
|
+
this._dataFilter.value = "";
|
697
|
+
this._dataSelector.filter('');
|
698
|
+
this._updateValueSelector();
|
699
|
+
this._updateAdvanceFilterUI();
|
700
|
+
this._updateSortButtonUI();
|
701
|
+
}
|
702
|
+
|
703
|
+
/**
|
704
|
+
* @private
|
705
|
+
*/
|
706
|
+
_updateAdvanceFilterUI() {
|
707
|
+
// Reset Advance Filter UIs
|
708
|
+
this._clearAdvanceFilterUI();
|
709
|
+
|
710
|
+
let userConditions = this.conditions || null;
|
711
|
+
if (userConditions && typeof userConditions === "string") {
|
712
|
+
try {
|
713
|
+
userConditions = JSON.parse(userConditions);
|
714
|
+
} catch (err) {
|
715
|
+
return;
|
716
|
+
}
|
717
|
+
}
|
718
|
+
|
719
|
+
// Params is an array
|
720
|
+
if (Array.isArray(userConditions)) {
|
721
|
+
let conditions = /** @type{Array} */ (userConditions);
|
722
|
+
const con1 = conditions[0] || [];
|
723
|
+
const con2 = conditions[1] || [];
|
724
|
+
const connector = con1[2] || "";
|
725
|
+
const isDateTimeField = toDateTimeType(this.fieldDataType) ? true : false;
|
726
|
+
if (isDateTimeField) {
|
727
|
+
if (con1[0]) {
|
728
|
+
this._dateTimeComboBoxes[0].value = con1[0];
|
729
|
+
this._dateTimePickers[0].value = con1[1] ? this._getDateString(con1[1]) : "";
|
730
|
+
|
731
|
+
if (con2[0]) {
|
732
|
+
this._dateTimeComboBoxes[1].value = con2[0];
|
733
|
+
this._dateTimePickers[1].value = con2[1] ? this._getDateString(con2[1]) : "";
|
734
|
+
}
|
735
|
+
}
|
736
|
+
this._dateTimeRadioBtns[0].checked = connector !== "OR";
|
737
|
+
this._dateTimeRadioBtns[1].checked = connector === "OR";
|
738
|
+
} else {
|
739
|
+
if (con1[0]) {
|
740
|
+
this._generalComboBoxes[0].value = con1[0];
|
741
|
+
this._generalComboBoxes[1].value = con1[1] || "";
|
742
|
+
|
743
|
+
if (con2[0]) {
|
744
|
+
this._generalComboBoxes[2].value = con2[0];
|
745
|
+
this._generalComboBoxes[3].value = con2[1] || "";
|
746
|
+
}
|
747
|
+
}
|
748
|
+
this._generalRadioBtns.checked = connector !== "OR";
|
749
|
+
this._generalRadioBtns[1].checked = connector === "OR";
|
750
|
+
}
|
751
|
+
}
|
752
|
+
}
|
753
|
+
|
754
|
+
/**
|
755
|
+
* @private
|
756
|
+
*/
|
757
|
+
_updateValueSelector() {
|
758
|
+
this._dataSelector.data = this.data; // Preserve original referencing
|
759
|
+
|
760
|
+
let data = this.data || [];
|
761
|
+
let items = null;
|
762
|
+
if (Array.isArray(data)) {
|
763
|
+
items = data;
|
764
|
+
} else {
|
765
|
+
items = Object.keys(data); // TODO: Obsolete this
|
766
|
+
}
|
767
|
+
|
768
|
+
// Value selector for Filter by Condition
|
769
|
+
this._generalComboBoxes[1].data = items.map(this._toComboBoxItem);
|
770
|
+
this._generalComboBoxes[3].data = items.map(this._toComboBoxItem);
|
771
|
+
}
|
772
|
+
/**
|
773
|
+
* @private
|
774
|
+
* @param {*} obj
|
775
|
+
* @returns {Object}
|
776
|
+
*/
|
777
|
+
_toComboBoxItem(obj) {
|
778
|
+
let itemVal = (typeof obj === "string") ? obj : obj.title || "";
|
779
|
+
return {
|
780
|
+
"label": itemVal,
|
781
|
+
"value": itemVal
|
782
|
+
};
|
783
|
+
}
|
784
|
+
|
785
|
+
/**
|
786
|
+
* Return date string in format yyyy-MM-dd
|
787
|
+
* @private
|
788
|
+
* @param {Object|string} date
|
789
|
+
* @return {string}
|
790
|
+
*/
|
791
|
+
_getDateString(date) {
|
792
|
+
if (date instanceof Date) {
|
793
|
+
return DateTime.formatDateObject(date, 'yyyy-MM-dd');
|
794
|
+
} else {
|
795
|
+
var dateObj = new Date(date);
|
796
|
+
return DateTime.formatDateObject(dateObj, 'yyyy-MM-dd');
|
797
|
+
}
|
798
|
+
}
|
799
|
+
|
800
|
+
/**
|
801
|
+
* @private
|
802
|
+
* @return {Object}
|
803
|
+
*/
|
804
|
+
_getTranslation() {
|
805
|
+
var lang = this._translation[this._lang] ? this._lang : 'en';
|
806
|
+
return this._translation[lang];
|
807
|
+
}
|
808
|
+
|
809
|
+
/**
|
810
|
+
* @private
|
811
|
+
* @param {Array} filters
|
812
|
+
* @return {Array}
|
813
|
+
*/
|
814
|
+
_translateFilters(filters) {
|
815
|
+
let trans = this._getTranslation();
|
816
|
+
var len = filters.length;
|
817
|
+
var items = [];
|
818
|
+
var item;
|
819
|
+
for (var i = 0; i < len; i++) {
|
820
|
+
item = filters[i];
|
821
|
+
items.push([item[0], trans[item[1]]]);
|
822
|
+
}
|
823
|
+
return items;
|
824
|
+
}
|
825
|
+
|
826
|
+
/**
|
827
|
+
* Set filter Visibilities of layout
|
828
|
+
* @private
|
829
|
+
*/
|
830
|
+
_updateFilterModeSelectionUI() {
|
831
|
+
// Filter By Value - Condition buttons
|
832
|
+
const children = this._filterBtns.children;
|
833
|
+
const isAdvanceMode = this._isAdvancedFilterMode();
|
834
|
+
children[0].active = !isAdvanceMode;
|
835
|
+
children[1].active = isAdvanceMode;
|
836
|
+
this._valueFilterUI.classList.toggle("hide", isAdvanceMode);
|
837
|
+
this._advFilterUI.classList.toggle("hide", !isAdvanceMode);
|
838
|
+
this._clearBtn.classList.toggle("hide", !isAdvanceMode);
|
839
|
+
|
840
|
+
const isDateTimeField = toDateTimeType(this.fieldDataType) ? true : false;
|
841
|
+
this._generalCondUI.classList.toggle("hide", isDateTimeField);
|
842
|
+
this._dateTimeCondUI.classList.toggle("hide", !isDateTimeField);
|
843
|
+
}
|
844
|
+
|
845
|
+
/**
|
846
|
+
* to update state of sort button
|
847
|
+
* @private
|
848
|
+
*/
|
849
|
+
_updateSortButtonUI() {
|
850
|
+
const sortState = this.sortState;
|
851
|
+
const children = this._sortBtns.children;
|
852
|
+
children[0].active = sortState === "a";
|
853
|
+
children[1].active = sortState === "d";
|
854
|
+
}
|
855
|
+
}
|
856
|
+
|
857
|
+
customElement('filter-dialog')(FilterDialog);
|
858
|
+
|
859
|
+
export { FilterDialog };
|
860
|
+
export default FilterDialog;
|