@refinitiv-ui/efx-grid 0.0.0-dev.12023565035.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-dragging/es6/ColumnDragging.d.ts +51 -0
- package/lib/column-dragging/es6/ColumnDragging.js +968 -0
- package/lib/column-dragging/es6/index.d.ts +1 -0
- package/lib/column-dragging/es6/index.js +1 -0
- package/lib/column-format-dialog/index.d.ts +2 -0
- package/lib/column-format-dialog/index.js +2 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +77 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2688 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +982 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +2 -0
- package/lib/column-selection-dialog/index.js +2 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +66 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +2034 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +258 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +8 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +8 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +25 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +8 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +8 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +8 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +5 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +8 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +33910 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +43 -0
- package/lib/core/es6/data/DataCache.js +597 -0
- package/lib/core/es6/data/DataTable.d.ts +156 -0
- package/lib/core/es6/data/DataTable.js +2206 -0
- package/lib/core/es6/data/DataView.d.ts +332 -0
- package/lib/core/es6/data/DataView.js +4144 -0
- package/lib/core/es6/data/Segment.d.ts +91 -0
- package/lib/core/es6/data/Segment.js +1001 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +84 -0
- package/lib/core/es6/data/SegmentCollection.js +713 -0
- package/lib/core/es6/data/WrappedView.d.ts +290 -0
- package/lib/core/es6/data/WrappedView.js +1320 -0
- package/lib/core/es6/grid/Core.d.ts +455 -0
- package/lib/core/es6/grid/Core.js +6196 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +212 -0
- package/lib/core/es6/grid/ILayoutGrid.js +706 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +37 -0
- package/lib/core/es6/grid/LayoutGrid.js +2975 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +1241 -0
- package/lib/core/es6/grid/components/Cell.d.ts +52 -0
- package/lib/core/es6/grid/components/Cell.js +826 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +130 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +40 -0
- package/lib/core/es6/grid/components/CellSpans.js +368 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +618 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +718 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +28 -0
- package/lib/core/es6/grid/components/HScrollbar.js +241 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +63 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1413 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +342 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +166 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +155 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1977 -0
- package/lib/core/es6/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/core/es6/grid/util/CellBoundPainter.js +171 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +679 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +54 -0
- package/lib/core/es6/grid/util/SelectionList.js +491 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +92 -0
- package/lib/core/es6/grid/util/TrackLayout.js +902 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +20 -0
- package/lib/core/es6/grid/util/util.js +391 -0
- package/lib/core/es6/index.d.ts +79 -0
- package/lib/core/es6/index.js +125 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +2 -0
- package/lib/filter-dialog/index.js +2 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +52 -0
- package/lib/filter-dialog/lib/checkbox-list.js +444 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +75 -0
- package/lib/filter-dialog/lib/filter-dialog.js +1160 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +40 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +42 -0
- package/lib/filter-dialog/themes/base.less +191 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +15 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +45 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +103 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/CoralIconFormatter.js +50 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +45 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +85 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +71 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/EFButtonFormatter.js +45 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +78 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +60 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/EFIconFormatter.js +50 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +45 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +132 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +76 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +26 -0
- package/lib/formatters/es6/FormatterBuilder.js +493 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +23 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +66 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +35 -0
- package/lib/formatters/es6/index.d.ts +64 -0
- package/lib/formatters/es6/index.js +88 -0
- package/lib/grid/index.d.ts +2 -0
- package/lib/grid/index.js +3 -0
- package/lib/grid/lib/efx-grid.d.ts +53 -0
- package/lib/grid/lib/efx-grid.js +444 -0
- package/lib/grid/themes/base.less +137 -0
- package/lib/grid/themes/ds/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/dark/efx-grid.js +4 -0
- package/lib/grid/themes/ds/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/dark.js +3 -0
- package/lib/grid/themes/ds/efx-grid.less +207 -0
- package/lib/grid/themes/ds/index.less +3 -0
- package/lib/grid/themes/ds/light/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/light/efx-grid.js +4 -0
- package/lib/grid/themes/ds/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/light.js +3 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +127 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +100 -0
- package/lib/index.js +100 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +115 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +1182 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +54547 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +174 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1203 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +43 -0
- package/lib/rt-grid/es6/DataConnector.js +290 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +40 -0
- package/lib/rt-grid/es6/FieldDefinition.js +560 -0
- package/lib/rt-grid/es6/Grid.d.ts +376 -0
- package/lib/rt-grid/es6/Grid.js +4653 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +40 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +251 -0
- package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
- package/lib/rt-grid/es6/RowDefSorter.js +231 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +156 -0
- package/lib/rt-grid/es6/RowDefinition.js +1478 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +36 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +537 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +68 -0
- package/lib/statistics-row/es6/StatisticsRow.js +807 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +46 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +617 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +70 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1695 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +82 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1704 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +817 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +91 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +617 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +110 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +2028 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1010 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +77 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +1405 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +160 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +2155 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +100 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +1513 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +519 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +453 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +138 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +41 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +285 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +33 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +303 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +64 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +1027 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +45 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +401 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +148 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +2671 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +58 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +433 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +804 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +50 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +234 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +13 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +23 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +33 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +794 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +39 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +494 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +57 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +238 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/LEDGuage.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/LEDGuage.js +261 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +56 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +514 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +81 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +1479 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +159 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +2568 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +123 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1728 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +75 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1447 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +64 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +615 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +72 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +543 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +27 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +142 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1183 -0
- package/lib/tr-grid-util/es6/Color.d.ts +40 -0
- package/lib/tr-grid-util/es6/Color.js +210 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +16 -0
- package/lib/tr-grid-util/es6/Deferred.js +108 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +96 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +350 -0
- package/lib/tr-grid-util/es6/DragUI.d.ts +20 -0
- package/lib/tr-grid-util/es6/DragUI.js +263 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +12 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +134 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +84 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +164 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +46 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +637 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +24 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +120 -0
- package/lib/tr-grid-util/es6/ExpressionParser.d.ts +10 -0
- package/lib/tr-grid-util/es6/ExpressionParser.js +408 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +440 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +54 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +580 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +56 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +255 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +86 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +1055 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +74 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.js +642 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +62 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +250 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +40 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +611 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +85 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +528 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +163 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +98 -0
- package/lib/tr-grid-util/es6/Popup.js +991 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +260 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +228 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +60 -0
- package/lib/tr-grid-util/es6/RowPainter.js +448 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +78 -0
- package/lib/tr-grid-util/es6/SubTable.js +642 -0
- package/lib/tr-grid-util/es6/Table.d.ts +146 -0
- package/lib/tr-grid-util/es6/Table.js +832 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +16 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +268 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +66 -0
- package/lib/tr-grid-util/es6/Util.js +508 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +890 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +65 -0
- package/lib/tr-grid-util/es6/index.js +102 -0
- package/lib/tr-grid-util/es6/jet/Adc.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/Adc.js +268 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +151 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +136 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +860 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +71 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +82 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +890 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +48 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +82 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.d.ts +7 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.js +25 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +111 -0
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +46 -0
- package/lib/types/es6/CellSelection.d.ts +70 -0
- package/lib/types/es6/Checkbox.d.ts +82 -0
- package/lib/types/es6/ColumnDragging.d.ts +51 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +92 -0
- package/lib/types/es6/ColumnGrouping.d.ts +107 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +77 -0
- package/lib/types/es6/ColumnStack.d.ts +160 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +289 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +23 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +32 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +100 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +20 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +21 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +20 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +43 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +156 -0
- package/lib/types/es6/Core/data/DataView.d.ts +332 -0
- package/lib/types/es6/Core/data/Segment.d.ts +91 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +84 -0
- package/lib/types/es6/Core/data/WrappedView.d.ts +290 -0
- package/lib/types/es6/Core/grid/Core.d.ts +455 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +212 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +37 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +52 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +40 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +63 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +155 -0
- package/lib/types/es6/Core/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +54 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +92 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +20 -0
- package/lib/types/es6/Core/index.d.ts +79 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +20 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +21 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +20 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +58 -0
- package/lib/types/es6/Extensions.d.ts +63 -0
- package/lib/types/es6/FilterInput.d.ts +64 -0
- package/lib/types/es6/FormatterBuilder.d.ts +26 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +45 -0
- package/lib/types/es6/InCellEditing.d.ts +148 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +41 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +58 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +33 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +176 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +43 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +413 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +156 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +36 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +64 -0
- package/lib/types/es6/RowDragging.d.ts +81 -0
- package/lib/types/es6/RowFiltering.d.ts +159 -0
- package/lib/types/es6/RowGrouping.d.ts +123 -0
- package/lib/types/es6/RowSegmenting.d.ts +109 -0
- package/lib/types/es6/RowSelection.d.ts +75 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +23 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +68 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +72 -0
- package/lib/types/es6/TitleWrap.d.ts +27 -0
- package/lib/types/es6/Zoom.d.ts +52 -0
- package/lib/types/es6/index.d.ts +80 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +7 -0
- package/lib/versions.json +37 -0
- package/lib/window-exporter.js +18 -0
- package/lib/zoom/es6/Zoom.d.ts +52 -0
- package/lib/zoom/es6/Zoom.js +438 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +69 -0
@@ -0,0 +1,1160 @@
|
|
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 {Dom} from "../../tr-grid-util/es6/Dom.js";
|
14
|
+
import Popup from "../../tr-grid-util/es6/Popup.js";
|
15
|
+
import DateTime from "../../tr-grid-util/es6/DateTime.js";
|
16
|
+
import { DATE_TIME, toDateTimeType } from "../../tr-grid-util/es6/FieldFormatter.js";
|
17
|
+
import ElementObserver from "../../tr-grid-util/es6/ElementObserver.js";
|
18
|
+
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
19
|
+
import translation from "./locale/translation.js";
|
20
|
+
import "./checkbox-list.js";
|
21
|
+
|
22
|
+
/**
|
23
|
+
* @typedef {Object} FilterDialog~Config
|
24
|
+
* @property {Object} data Column data
|
25
|
+
* @property {string=} sortState "a" for ascending or "d" for descending
|
26
|
+
* @property {boolean=} sortUI=true Show Sort area
|
27
|
+
* @property {boolean=} filterUI=true Show Filter area
|
28
|
+
* @property {boolean=} advancedFilter=true Show advanced tab
|
29
|
+
* @property {boolean=} compactMode=false Force compact mode in dialog
|
30
|
+
* @property {string=} dateTimeFormat="dd-MM-yy" Specifies the string format for the date time picker in the filter dialog based on date-fns format, follow https://date-fns.org/v3.6.0/docs/format.
|
31
|
+
* @property {(string|boolean)=} blankValues=false Display a Blanks item in the filter dialog to represent an empty value. If a string is passed, it will be used as the label for the blank item
|
32
|
+
* @property {Function=} filterChanged Filter changed handler
|
33
|
+
* @property {Function=} confirm Alias of filterChanged
|
34
|
+
* @property {Function=} cancel Alias of dialog cancel
|
35
|
+
* @property {Function=} sortChanged Sort changed handler
|
36
|
+
*/
|
37
|
+
|
38
|
+
/**
|
39
|
+
* @typedef {Object} FilterDialog~ComboBoxItem
|
40
|
+
* @property {string} label text of item
|
41
|
+
* @property {string} value value of item when item is selected
|
42
|
+
*/
|
43
|
+
|
44
|
+
/** @type {string}
|
45
|
+
* @private
|
46
|
+
* @constant
|
47
|
+
*/
|
48
|
+
const BLANKS = "(Blanks)";
|
49
|
+
|
50
|
+
/** @type {number}
|
51
|
+
* @private
|
52
|
+
* @constant
|
53
|
+
*/
|
54
|
+
const ITEM_LIMIT = 500;
|
55
|
+
/** @type {Array.<Array>}
|
56
|
+
* @private
|
57
|
+
* @constant
|
58
|
+
*/
|
59
|
+
const DEFAULT_FILTERS = [
|
60
|
+
["CONT", "Contains"], //0
|
61
|
+
["NCONT", "Does Not Contain"], // 1
|
62
|
+
["GT", "Is Greater Than"], // 2
|
63
|
+
["GTE", "Is Greater Than Or Equal To"], // 3
|
64
|
+
["LT", "Is Less Than"], // 4
|
65
|
+
["LTE", "Is Less Than Or Equal To"], // 5
|
66
|
+
["BEGIN", "Begins With"], // 6
|
67
|
+
["NBEGIN", "Does Not Begin With"], // 7
|
68
|
+
["END", "Ends With"], // 8
|
69
|
+
["NEND", "Does Not End With"], // 9
|
70
|
+
["EQ", "Equals"], // 10
|
71
|
+
["NEQ", "Does Not Equal"] // 11
|
72
|
+
];
|
73
|
+
/** @type {Array.<Array>}
|
74
|
+
* @private
|
75
|
+
* @constant
|
76
|
+
*/
|
77
|
+
const BLANK_FILTERS = [
|
78
|
+
["EQ_BLANK", "Equal To Blank Value"],
|
79
|
+
["NEQ_BLANK", "Does Not Equal To Blank Value"]
|
80
|
+
];
|
81
|
+
/** @type {Object.<string, boolean>}
|
82
|
+
* @private
|
83
|
+
* @constant
|
84
|
+
*/
|
85
|
+
const BLANK_VALUES = {
|
86
|
+
"EQ_BLANK": true,
|
87
|
+
"NEQ_BLANK": true
|
88
|
+
};
|
89
|
+
/** @type {Array.<Array>}
|
90
|
+
* @private
|
91
|
+
* @constant
|
92
|
+
*/
|
93
|
+
const DATE_FILTERS = [
|
94
|
+
["DT", "Date is"],
|
95
|
+
["DTB", "Date is Before"],
|
96
|
+
["DTA", "Date is After"]
|
97
|
+
];
|
98
|
+
/** @type {Array.<Array>}
|
99
|
+
* @private
|
100
|
+
* @constant
|
101
|
+
*/
|
102
|
+
const TEXT_FILTERS = [
|
103
|
+
DEFAULT_FILTERS[0],
|
104
|
+
DEFAULT_FILTERS[1],
|
105
|
+
DEFAULT_FILTERS[6],
|
106
|
+
DEFAULT_FILTERS[7],
|
107
|
+
DEFAULT_FILTERS[8],
|
108
|
+
DEFAULT_FILTERS[9],
|
109
|
+
DEFAULT_FILTERS[10],
|
110
|
+
DEFAULT_FILTERS[11]
|
111
|
+
];
|
112
|
+
/** @type {Array.<Array>}
|
113
|
+
* @private
|
114
|
+
* @constant
|
115
|
+
*/
|
116
|
+
const NUMBER_FILTERS = [
|
117
|
+
DEFAULT_FILTERS[2],
|
118
|
+
DEFAULT_FILTERS[3],
|
119
|
+
DEFAULT_FILTERS[4],
|
120
|
+
DEFAULT_FILTERS[5],
|
121
|
+
["NUMEQ", "Equals"],
|
122
|
+
["NUMNEQ", "Does Not Equal"]
|
123
|
+
];
|
124
|
+
|
125
|
+
/** @private
|
126
|
+
* @function
|
127
|
+
* @param {Array.<String>} options
|
128
|
+
* @returns {FilterDialog~ComboBoxItem}
|
129
|
+
*/
|
130
|
+
let arrayToComboBoxItem = function(options) {
|
131
|
+
return {
|
132
|
+
label: options[1],
|
133
|
+
value: options[0]
|
134
|
+
};
|
135
|
+
};
|
136
|
+
/** @private
|
137
|
+
* @function
|
138
|
+
* @param {Array.<Array>} conditions
|
139
|
+
* @returns {Array.<Object>}
|
140
|
+
*/
|
141
|
+
let createComboBoxData = function(conditions) {
|
142
|
+
return conditions.map(arrayToComboBoxItem);
|
143
|
+
};
|
144
|
+
|
145
|
+
/**
|
146
|
+
* @class
|
147
|
+
* @public
|
148
|
+
*/
|
149
|
+
class FilterDialog extends BasicElement {
|
150
|
+
static get properties() {
|
151
|
+
return {
|
152
|
+
config: {type: Object},
|
153
|
+
data: {type: Object},
|
154
|
+
isShown: {type: Boolean},
|
155
|
+
target: {attribute: false},
|
156
|
+
filterMode: {type: String},
|
157
|
+
conditions: {attribute: false},
|
158
|
+
hiddenSortUI: {type: Boolean},
|
159
|
+
hiddenFilterUI: {type: Boolean},
|
160
|
+
hiddenAdvancedFilter: {type: Boolean},
|
161
|
+
sortState: {type: String},
|
162
|
+
useUTCTime: {type: Boolean},
|
163
|
+
fieldDataType: {type: String},
|
164
|
+
lang: { type: String, reflect: true }
|
165
|
+
};
|
166
|
+
}
|
167
|
+
|
168
|
+
static get is() {
|
169
|
+
return "filter-dialog";
|
170
|
+
}
|
171
|
+
|
172
|
+
constructor() {
|
173
|
+
super();
|
174
|
+
|
175
|
+
this._onWindowResized = this._onWindowResized.bind(this);
|
176
|
+
this._afterDialogOpened = this._afterDialogOpened.bind(this);
|
177
|
+
|
178
|
+
this.lang = "en";
|
179
|
+
this._lang = "en";
|
180
|
+
this._translation = translation;
|
181
|
+
this.hiddenSortUI = false;
|
182
|
+
this.hiddenFilterUI = false;
|
183
|
+
this.hiddenAdvancedFilter = false;
|
184
|
+
this.isShown = false;
|
185
|
+
this.sortState = "n";
|
186
|
+
this.fieldDataType = "";
|
187
|
+
this._blankValues = false;
|
188
|
+
this._blankValuesChecked = false;
|
189
|
+
this._compactMode = false;
|
190
|
+
this.useUTCTime = true;
|
191
|
+
this._dateTimeFormat = "dd-MM-yy";
|
192
|
+
this._popup = new Popup({
|
193
|
+
"shown": this._onPopupShown.bind(this),
|
194
|
+
"hidden": this._onPopupHidden.bind(this),
|
195
|
+
"autoRepositioning": false,
|
196
|
+
"autoClipping": false,
|
197
|
+
"uiBlocking": true
|
198
|
+
});
|
199
|
+
this._winResizedTimer = 0;
|
200
|
+
ElementObserver.addLanguageListener(this);
|
201
|
+
}
|
202
|
+
|
203
|
+
/**
|
204
|
+
* @private
|
205
|
+
* @param {Object} changedProperties
|
206
|
+
*/
|
207
|
+
update(changedProperties) {
|
208
|
+
|
209
|
+
if(changedProperties.has("lang")) {
|
210
|
+
this._lang = ElfUtil.toLangString(this.lang);
|
211
|
+
}
|
212
|
+
if(changedProperties.has("target")) {
|
213
|
+
this._popup.attachTo(this.target);
|
214
|
+
}
|
215
|
+
|
216
|
+
if(changedProperties.has("config")) {
|
217
|
+
let options = this.config;
|
218
|
+
if(options) {
|
219
|
+
if (options.data) {
|
220
|
+
this.data = options.data;
|
221
|
+
}
|
222
|
+
|
223
|
+
if (options.sortState) {
|
224
|
+
this.sortState = (options.sortState) ? options.sortState.charAt(0).toLowerCase() : "";
|
225
|
+
}
|
226
|
+
|
227
|
+
if (options.sortUI != null) {
|
228
|
+
this.hiddenSortUI = options.sortUI === false;
|
229
|
+
}
|
230
|
+
|
231
|
+
if (options.filterUI != null) {
|
232
|
+
this.hiddenFilterUI = options.filterUI === false;
|
233
|
+
}
|
234
|
+
|
235
|
+
if (options.dateTimeFormat != null) {
|
236
|
+
this._dateTimeFormat = options.dateTimeFormat;
|
237
|
+
}
|
238
|
+
|
239
|
+
if(options.advancedFilter != null) {
|
240
|
+
this.hiddenAdvancedFilter = options.advancedFilter === false;
|
241
|
+
}
|
242
|
+
|
243
|
+
if(options.blankValues != null ) {
|
244
|
+
this._blankValues = options.blankValues;
|
245
|
+
}
|
246
|
+
|
247
|
+
if(options.compactMode != null) {
|
248
|
+
this._compactMode = options.compactMode;
|
249
|
+
}
|
250
|
+
|
251
|
+
this._blankValuesChecked = false;
|
252
|
+
if(options.blankValuesChecked != null) {
|
253
|
+
this._blankValuesChecked = options.blankValuesChecked;
|
254
|
+
}
|
255
|
+
|
256
|
+
if(this._blankValues) {
|
257
|
+
this._addBlankItem();
|
258
|
+
}
|
259
|
+
|
260
|
+
if (options.target) {
|
261
|
+
this.target = options.target;
|
262
|
+
this._popup.attachTo(this.target);
|
263
|
+
}
|
264
|
+
|
265
|
+
if (typeof options.filterChanged === "function") {
|
266
|
+
this.addEventListener("filterChanged", options.filterChanged, false);
|
267
|
+
}
|
268
|
+
|
269
|
+
if (typeof options.confirm === "function") {
|
270
|
+
this.addEventListener("confirm", options.confirm, false);
|
271
|
+
}
|
272
|
+
|
273
|
+
if (typeof options.cancel === "function") {
|
274
|
+
this.addEventListener("cancel", options.cancel, false);
|
275
|
+
}
|
276
|
+
|
277
|
+
if (typeof options.sortChanged === "function") {
|
278
|
+
this.addEventListener("sortChanged", options.sortChanged, false);
|
279
|
+
}
|
280
|
+
|
281
|
+
if (options.filterMode) {
|
282
|
+
this.filterMode = options.filterMode;
|
283
|
+
}
|
284
|
+
|
285
|
+
if (options.conditions) {
|
286
|
+
this.conditions = options.conditions;
|
287
|
+
}
|
288
|
+
|
289
|
+
if (options.fieldDataType != null) {
|
290
|
+
this.fieldDataType = options.fieldDataType;
|
291
|
+
this._updateGeneralComboBoxes();
|
292
|
+
}
|
293
|
+
|
294
|
+
// allow config.lang overides default lang
|
295
|
+
if (options.lang) {
|
296
|
+
this._lang = ElfUtil.toLangString(options.lang);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
super.update(changedProperties);
|
302
|
+
}
|
303
|
+
|
304
|
+
/** A `TemplateResult` that will be used to render the updated internal template
|
305
|
+
* @private
|
306
|
+
* @return {*}
|
307
|
+
*/
|
308
|
+
render() {
|
309
|
+
let lang = this._translation[this._lang] ? this._lang : "en";
|
310
|
+
let t = this._translation[lang];
|
311
|
+
let dateTimeFormat = this._dateTimeFormat;
|
312
|
+
return html`
|
313
|
+
<ef-panel id="root_panel" spacing with-shadow with-border>
|
314
|
+
<div id="filterDialogContent" class="filter-dialog dialog-theme-wrapper">
|
315
|
+
|
316
|
+
<div class="group-block" id="filterSortUI">
|
317
|
+
<label class="group-label">${t["Sort by"]}:</label>
|
318
|
+
<div id="filterSortCoralSplitBtn">
|
319
|
+
<ef-button aria-label="sort in ascending order" toggles>A — Z</ef-button>
|
320
|
+
<ef-button aria-label="sort in descending order" toggles>Z — A</ef-button>
|
321
|
+
</div>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
<hr id="separator"/>
|
325
|
+
|
326
|
+
<div class="group-block" id="filterUI">
|
327
|
+
<label class="group-label">${t["Filter by"]}:</label>
|
328
|
+
<div id="filterCoralSplitBtn">
|
329
|
+
<ef-button aria-label="filter by value" toggles active>${t["VALUE"]}</ef-button>
|
330
|
+
<ef-button aria-label="filter by condition" toggles>${t["CONDITION"]}</ef-button>
|
331
|
+
</div>
|
332
|
+
|
333
|
+
<div class="group-filter">
|
334
|
+
<div class="input-group" id="filterValueUI">
|
335
|
+
<ef-search-field id="dataFilter"></ef-search-field>
|
336
|
+
<checkbox-list id="dataSelector" lang="${lang}"></checkbox-list>
|
337
|
+
</div>
|
338
|
+
|
339
|
+
<div class="hide" id="filterAdvancedUI">
|
340
|
+
<div class="input-group" id="general_conditon">
|
341
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
342
|
+
<ef-combo-box placeholder="${t["Value"]}" lang="${lang}" free-text></ef-combo-box>
|
343
|
+
|
344
|
+
<div class="radio-group">
|
345
|
+
<ef-radio-button name="filterRadio" value="AND" checked>${t["And"]}</ef-radio-button>
|
346
|
+
<ef-radio-button name="filterRadio" value="OR">${t["Or"]}</ef-radio-button>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
350
|
+
<ef-combo-box placeholder="${t["Value"]}" lang="${lang}" free-text></ef-combo-box>
|
351
|
+
</div>
|
352
|
+
<div class="input-group hide" id="datetime_conditon">
|
353
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
354
|
+
<ef-datetime-picker placeholder="${dateTimeFormat}" format="${dateTimeFormat}" lang="${lang}"></ef-datetime-picker>
|
355
|
+
|
356
|
+
<div class="radio-group">
|
357
|
+
<ef-radio-button name="filterRadio" value="AND" checked>${t["And"]}</ef-radio-button>
|
358
|
+
<ef-radio-button name="filterRadio" value="OR" >${t["Or"]}</ef-radio-button>
|
359
|
+
</div>
|
360
|
+
<ef-combo-box placeholder="${t["Show rows where"]}:" lang="${lang}"></ef-combo-box>
|
361
|
+
<ef-datetime-picker placeholder="${dateTimeFormat}" format="${dateTimeFormat}" lang="${lang}"></ef-datetime-picker>
|
362
|
+
</div>
|
363
|
+
</div>
|
364
|
+
</div>
|
365
|
+
</div>
|
366
|
+
</div>
|
367
|
+
<div class="cancel-ok"">
|
368
|
+
<ef-button id="clear_btn">${t["Clear Filter"]}</ef-button>
|
369
|
+
<ef-button cta id="done_btn">${t["Done"]}</ef-button><ef-button id="cancel_btn">${t["Cancel"]}</ef-button>
|
370
|
+
</div>
|
371
|
+
</ef-panel>
|
372
|
+
`;
|
373
|
+
}
|
374
|
+
|
375
|
+
/**
|
376
|
+
* @private
|
377
|
+
* @override
|
378
|
+
*/
|
379
|
+
firstUpdated(changedProps) {
|
380
|
+
this._initialized = true;
|
381
|
+
|
382
|
+
const root = this.shadowRoot;
|
383
|
+
|
384
|
+
this.setAttribute("tabindex", "0");
|
385
|
+
this.setAttribute("role", "dialog");
|
386
|
+
this.setAttribute("aria-label", "filter");
|
387
|
+
this._separator = root.getElementById("separator");
|
388
|
+
this._rootContainer = root.getElementById("root_panel");
|
389
|
+
this._dialogContent = root.getElementById("filterDialogContent");
|
390
|
+
this._sortUI = root.getElementById("filterSortUI");
|
391
|
+
this._filterUI = root.getElementById("filterUI");
|
392
|
+
this._cancelBtn = root.getElementById("cancel_btn");
|
393
|
+
this._doneBtn = root.getElementById("done_btn");
|
394
|
+
this._clearBtn = root.getElementById("clear_btn");
|
395
|
+
this._sortBtns = root.getElementById("filterSortCoralSplitBtn");
|
396
|
+
|
397
|
+
this._dataFilter = root.getElementById("dataFilter");
|
398
|
+
this._dataSelector = root.getElementById("dataSelector");
|
399
|
+
|
400
|
+
this._filterBtns = root.getElementById("filterCoralSplitBtn");
|
401
|
+
this._valueFilterUI = root.getElementById("filterValueUI");
|
402
|
+
|
403
|
+
this._advFilterUI = root.getElementById("filterAdvancedUI");
|
404
|
+
this._generalCondUI = this._advFilterUI.querySelector("#general_conditon");
|
405
|
+
this._generalComboBoxes = this._generalCondUI.getElementsByTagName("ef-combo-box");
|
406
|
+
this._generalRadioBtns = this._generalCondUI.getElementsByTagName("ef-radio-button");
|
407
|
+
this._dateTimeCondUI = this._advFilterUI.querySelector("#datetime_conditon");
|
408
|
+
this._dateTimeComboBoxes = this._dateTimeCondUI.getElementsByTagName("ef-combo-box");
|
409
|
+
this._dateTimePickers = this._dateTimeCondUI.getElementsByTagName("ef-datetime-picker");
|
410
|
+
this._dateTimeRadioBtns = this._dateTimeCondUI.getElementsByTagName("ef-radio-button");
|
411
|
+
|
412
|
+
this._dateTimeComboBoxes[0].data = createComboBoxData(this._translateFilters(DATE_FILTERS));
|
413
|
+
this._dateTimeComboBoxes[1].data = createComboBoxData(this._translateFilters(DATE_FILTERS));
|
414
|
+
|
415
|
+
this._updateGeneralComboBoxes();
|
416
|
+
|
417
|
+
let comboxBoxes = this._advFilterUI.getElementsByTagName("ef-combo-box");
|
418
|
+
let len = comboxBoxes.length;
|
419
|
+
for (let i = 0; i < len; i++) {
|
420
|
+
comboxBoxes[i].addEventListener("keydown", this._onCondSelectorKeyDown);
|
421
|
+
}
|
422
|
+
|
423
|
+
this._dataFilter.addEventListener("value-changed", this._filterData.bind(this));
|
424
|
+
|
425
|
+
this._cancelBtn.addEventListener("click", this._onCancelBtnClick.bind(this));
|
426
|
+
this._doneBtn.addEventListener("click", this._onDoneBtnClick.bind(this));
|
427
|
+
this._clearBtn.addEventListener("click", this._clearAdvanceFilterUI.bind(this));
|
428
|
+
|
429
|
+
this._sortBtns.addEventListener("click", this._onClickSort.bind(this));
|
430
|
+
this._filterBtns.addEventListener("click", this._onClickFilter.bind(this));
|
431
|
+
|
432
|
+
this.addEventListener("keydown", function(e){
|
433
|
+
if(e.ctrlKey || e.altKey || e.metaKey){
|
434
|
+
return;
|
435
|
+
}
|
436
|
+
let code = e.code;
|
437
|
+
if(code === "Escape" || code === "Enter"){
|
438
|
+
this._onCancelBtnClick();
|
439
|
+
}
|
440
|
+
});
|
441
|
+
window.addEventListener("resize", this._onWindowResize.bind(this));
|
442
|
+
}
|
443
|
+
|
444
|
+
/**
|
445
|
+
* @private
|
446
|
+
* @override
|
447
|
+
*/
|
448
|
+
updated(changedProps) {
|
449
|
+
// Update Sort UI
|
450
|
+
let isHiddenSortUIChanged = changedProps.has("hiddenSortUI");
|
451
|
+
let isHiddenFilterUIChanged = changedProps.has("hiddenFilterUI");
|
452
|
+
let isHiddenAdvancedFilterChanged = changedProps.has("hiddenAdvancedFilter");
|
453
|
+
if (isHiddenSortUIChanged) {
|
454
|
+
let pn = this._sortUI.parentNode;
|
455
|
+
if (this.hiddenSortUI) {
|
456
|
+
if (pn) {
|
457
|
+
pn.removeChild(this._sortUI);
|
458
|
+
}
|
459
|
+
} else {
|
460
|
+
if (!pn) {
|
461
|
+
// prepend child to _dialogContent
|
462
|
+
if (this._dialogContent.firstChild) {
|
463
|
+
this._dialogContent.insertBefore(this._sortUI, this._dialogContent.firstChild);
|
464
|
+
} else {
|
465
|
+
this._dialogContent.appendChild(this._sortUI);
|
466
|
+
}
|
467
|
+
}
|
468
|
+
}
|
469
|
+
}
|
470
|
+
|
471
|
+
if (isHiddenFilterUIChanged) {
|
472
|
+
// Update Filter UI
|
473
|
+
let pn = this._filterUI.parentNode;
|
474
|
+
if (this.hiddenFilterUI) {
|
475
|
+
if (pn) {
|
476
|
+
pn.removeChild(this._filterUI);
|
477
|
+
}
|
478
|
+
this._dialogContent.classList.add("no-filter-ui");
|
479
|
+
} else {
|
480
|
+
if (!pn) {
|
481
|
+
this._dialogContent.appendChild(this._filterUI);
|
482
|
+
}
|
483
|
+
this._dialogContent.classList.remove("no-filter-ui");
|
484
|
+
}
|
485
|
+
}
|
486
|
+
|
487
|
+
if (isHiddenSortUIChanged || isHiddenFilterUIChanged) {
|
488
|
+
let isHide = this.hiddenSortUI || this.hiddenFilterUI;
|
489
|
+
this._separator.classList.toggle("hide", isHide);
|
490
|
+
}
|
491
|
+
if(isHiddenAdvancedFilterChanged) {
|
492
|
+
// TODO: Add class for no advance filter
|
493
|
+
this._filterBtns.classList.toggle("hide", this.hiddenAdvancedFilter);
|
494
|
+
}
|
495
|
+
|
496
|
+
if (changedProps.has("isShown")) {
|
497
|
+
if (this.isShown) {
|
498
|
+
this._updateUIState(); // should updateUIState everytime popup being show
|
499
|
+
if(this._popup.isHidden()) { // If popup is not already in doc, append it
|
500
|
+
this._popup.show(); // Popup position will also be modified
|
501
|
+
}
|
502
|
+
setTimeout(this._afterDialogOpened, 0); //use setTimeout to make sure everything is rendered before focus
|
503
|
+
} else { // This is to handle the case where isShown is directly modified from the dialog. We need to synchronize the states
|
504
|
+
this._popup.hide();
|
505
|
+
}
|
506
|
+
}
|
507
|
+
}
|
508
|
+
|
509
|
+
/**
|
510
|
+
* @private
|
511
|
+
*/
|
512
|
+
_afterDialogOpened() {
|
513
|
+
if(!this.isShown) {
|
514
|
+
return;
|
515
|
+
}
|
516
|
+
|
517
|
+
this._cancelBtn.focus(); // Keep focus on cancel button when open dialog
|
518
|
+
this._updateDialogHeight(); // position of the popup element will always be updated
|
519
|
+
|
520
|
+
let popupElem = this._popup.getElement();
|
521
|
+
if(popupElem) {// After all changes, ensure that visibility is reset back
|
522
|
+
popupElem.style.visibility = "";
|
523
|
+
}
|
524
|
+
this.focus();
|
525
|
+
}
|
526
|
+
|
527
|
+
/** Initialize dialog
|
528
|
+
* @public
|
529
|
+
* @param {FilterDialog~Config} options - initial data
|
530
|
+
*/
|
531
|
+
init(options) {
|
532
|
+
this.config = options;
|
533
|
+
}
|
534
|
+
|
535
|
+
/** Show the dialog as a popup
|
536
|
+
* @public
|
537
|
+
*/
|
538
|
+
show() {
|
539
|
+
let popupElem = this._popup.getElement();
|
540
|
+
if(popupElem) {// To prevent blinking due to size and position change
|
541
|
+
popupElem.style.visibility = "hidden";
|
542
|
+
}
|
543
|
+
this._popup.appendChild(this); // To force first time initialization, focus is already included in updated()
|
544
|
+
this._popup.show();
|
545
|
+
}
|
546
|
+
|
547
|
+
/** Hide the dialog
|
548
|
+
* @public
|
549
|
+
*/
|
550
|
+
hide() {
|
551
|
+
this._popup.hide();
|
552
|
+
}
|
553
|
+
|
554
|
+
/**
|
555
|
+
* @private
|
556
|
+
*/
|
557
|
+
_onPopupShown() {
|
558
|
+
this.isShown = true; // To trigger update
|
559
|
+
}
|
560
|
+
/**
|
561
|
+
* @private
|
562
|
+
*/
|
563
|
+
_onPopupHidden() {
|
564
|
+
this.isShown = false; // For backward compatability
|
565
|
+
if (this._winResizedTimer) {
|
566
|
+
clearTimeout(this._winResizedTimer);
|
567
|
+
this._winResizedTimer = 0;
|
568
|
+
}
|
569
|
+
this.dispatchEvent(new CustomEvent("cancel"));
|
570
|
+
}
|
571
|
+
|
572
|
+
/**
|
573
|
+
* @private
|
574
|
+
*/
|
575
|
+
_onWindowResize() {
|
576
|
+
if(!this._winResizedTimer && this.isShown){
|
577
|
+
this._winResizedTimer = setTimeout(this._onWindowResized, 400);
|
578
|
+
}
|
579
|
+
}
|
580
|
+
/**
|
581
|
+
* @private
|
582
|
+
*/
|
583
|
+
_onWindowResized() {
|
584
|
+
this._winResizedTimer = 0;
|
585
|
+
this._updateDialogHeight();
|
586
|
+
}
|
587
|
+
|
588
|
+
|
589
|
+
/**
|
590
|
+
* @public
|
591
|
+
* @param {string} val Sorting state "d" or "a"
|
592
|
+
*/
|
593
|
+
setSortState(val) {
|
594
|
+
this.sortState = (val) ? val.charAt(0).toLowerCase() : "";
|
595
|
+
}
|
596
|
+
|
597
|
+
/** Hide Sort UI block
|
598
|
+
* @public
|
599
|
+
* @param {boolean} val - value
|
600
|
+
*/
|
601
|
+
hideSortUI(val) {
|
602
|
+
this.hiddenSortUI = val;
|
603
|
+
}
|
604
|
+
|
605
|
+
/**
|
606
|
+
* @private
|
607
|
+
* @param {*} e
|
608
|
+
*/
|
609
|
+
_filterData(e) {
|
610
|
+
this._dataSelector.filter(e.detail.value);
|
611
|
+
}
|
612
|
+
|
613
|
+
/**
|
614
|
+
* @private
|
615
|
+
* @param {*} e
|
616
|
+
*/
|
617
|
+
_onCondSelectorKeyDown(e) {
|
618
|
+
if (e.keyCode == 13) {
|
619
|
+
e.stopPropagation();
|
620
|
+
}
|
621
|
+
}
|
622
|
+
|
623
|
+
/**
|
624
|
+
* Click on sort buttons
|
625
|
+
* @private
|
626
|
+
* @param {object} e - event
|
627
|
+
*/
|
628
|
+
_onClickSort(e) {
|
629
|
+
const tgt = e.target;
|
630
|
+
let sortState = "n";
|
631
|
+
|
632
|
+
// TODO: Simplify getting sort state logics
|
633
|
+
const children = this._sortBtns.children;
|
634
|
+
if (children[0].contains(tgt)) {
|
635
|
+
sortState = "a";
|
636
|
+
} else if (children[1].contains(tgt)) {
|
637
|
+
sortState = "d";
|
638
|
+
}
|
639
|
+
this.sortState = sortState;
|
640
|
+
|
641
|
+
this.dispatchEvent(new CustomEvent("sortChanged", {
|
642
|
+
detail: {
|
643
|
+
value: sortState
|
644
|
+
}
|
645
|
+
}));
|
646
|
+
this.hide();
|
647
|
+
e.preventDefault();
|
648
|
+
e.stopPropagation();
|
649
|
+
}
|
650
|
+
|
651
|
+
/**
|
652
|
+
* Click on Filter By Value Condition buttons
|
653
|
+
* @private
|
654
|
+
* @param {object} e - event
|
655
|
+
*/
|
656
|
+
_onClickFilter(e) {
|
657
|
+
const tgt = e.target;
|
658
|
+
const children = this._filterBtns.children;
|
659
|
+
this.filterMode = (children[1].contains(tgt)) ? "custom" : "text"; // Using setter
|
660
|
+
e.preventDefault();
|
661
|
+
e.stopPropagation();
|
662
|
+
this._updateFilterModeSelectionUI();
|
663
|
+
this._updateDialogHeight();
|
664
|
+
}
|
665
|
+
|
666
|
+
/**
|
667
|
+
* @private
|
668
|
+
* @param {string} oper
|
669
|
+
* @param {*} val
|
670
|
+
* @returns {boolean}
|
671
|
+
*/
|
672
|
+
_isValidCondition(oper, val) {
|
673
|
+
if(oper) {
|
674
|
+
if(val || val === 0) {
|
675
|
+
return true;
|
676
|
+
} else { // Blank operations don't need value
|
677
|
+
return oper === BLANK_FILTERS[0][0] || oper === BLANK_FILTERS[1][0];
|
678
|
+
}
|
679
|
+
}
|
680
|
+
return false;
|
681
|
+
}
|
682
|
+
/**
|
683
|
+
* @private
|
684
|
+
* @param {object} e - event
|
685
|
+
*/
|
686
|
+
_onDoneBtnClick(e) {
|
687
|
+
let eventArg = {
|
688
|
+
bubbles: false,
|
689
|
+
detail: {
|
690
|
+
fieldDataType: this.fieldDataType
|
691
|
+
}
|
692
|
+
};
|
693
|
+
if (this._isAdvancedFilterMode()) {
|
694
|
+
// Retrieve filter conditions from UI;
|
695
|
+
let oper1, oper2, val1, val2, connector;
|
696
|
+
let dateTimeType = toDateTimeType(this.fieldDataType);
|
697
|
+
let fdt = dateTimeType ? dateTimeType : this.fieldDataType.toLowerCase();
|
698
|
+
let useUTCTime = false;
|
699
|
+
if (fdt === DATE_TIME) {
|
700
|
+
useUTCTime = this.useUTCTime;
|
701
|
+
oper1 = this._dateTimeComboBoxes[0].value;
|
702
|
+
val1 = this._dateTimePickers[0].value;
|
703
|
+
if(val1) {
|
704
|
+
val1 = this._getDateObject(val1);
|
705
|
+
}
|
706
|
+
oper2 = this._dateTimeComboBoxes[1].value;
|
707
|
+
val2 = this._dateTimePickers[1].value;
|
708
|
+
if(val2) {
|
709
|
+
val2 = this._getDateObject(val2);
|
710
|
+
}
|
711
|
+
|
712
|
+
if (this._dateTimeRadioBtns[0].checked) {
|
713
|
+
connector = "AND";
|
714
|
+
} else if (this._dateTimeRadioBtns[1].checked) {
|
715
|
+
connector = "OR";
|
716
|
+
}
|
717
|
+
} else {
|
718
|
+
oper1 = this._generalComboBoxes[0].value;
|
719
|
+
val1 = this._generalComboBoxes[1].value;
|
720
|
+
oper2 = this._generalComboBoxes[2].value;
|
721
|
+
val2 = this._generalComboBoxes[3].value;
|
722
|
+
|
723
|
+
if (this._generalRadioBtns[0].checked) {
|
724
|
+
connector = "AND";
|
725
|
+
} else if (this._generalRadioBtns[1].checked) {
|
726
|
+
connector = "OR";
|
727
|
+
}
|
728
|
+
|
729
|
+
// Perform automatic data type conversion for only number field data type
|
730
|
+
if (fdt === "number") {
|
731
|
+
let num = NaN;
|
732
|
+
if (val1) {
|
733
|
+
num = Number(val1);
|
734
|
+
if(num === num) { // Convert to number only when number is valid
|
735
|
+
val1 = num;
|
736
|
+
}
|
737
|
+
}
|
738
|
+
|
739
|
+
if (val2) {
|
740
|
+
num = Number(val2);
|
741
|
+
if(num === num) { // Convert to number only when number is valid
|
742
|
+
val2 = num;
|
743
|
+
}
|
744
|
+
}
|
745
|
+
}
|
746
|
+
}
|
747
|
+
let ary2D = [];
|
748
|
+
|
749
|
+
if(this._isValidCondition(oper1, val1)) {
|
750
|
+
ary2D.push([oper1, val1]);
|
751
|
+
}
|
752
|
+
|
753
|
+
if(this._isValidCondition(oper2, val2)) {
|
754
|
+
if(ary2D.length) {
|
755
|
+
ary2D[0][2] = connector;
|
756
|
+
}
|
757
|
+
ary2D.push([oper2, val2]);
|
758
|
+
}
|
759
|
+
|
760
|
+
if(useUTCTime) {
|
761
|
+
ary2D.forEach(function(itm) {
|
762
|
+
itm[3] = true;
|
763
|
+
});
|
764
|
+
}
|
765
|
+
|
766
|
+
eventArg.detail.conditions = ary2D;
|
767
|
+
} else {
|
768
|
+
eventArg.detail.value = this._dataSelector.getSelectedItems();
|
769
|
+
}
|
770
|
+
|
771
|
+
this.dispatchEvent(new CustomEvent("filterChanged", eventArg));
|
772
|
+
this.dispatchEvent(new CustomEvent("confirm", eventArg));
|
773
|
+
this.hide();
|
774
|
+
}
|
775
|
+
|
776
|
+
/**
|
777
|
+
* @private
|
778
|
+
* @param {object} e - event
|
779
|
+
*/
|
780
|
+
_onCancelBtnClick(e) {
|
781
|
+
this.dispatchEvent(new CustomEvent("cancel"));
|
782
|
+
this.hide();
|
783
|
+
}
|
784
|
+
|
785
|
+
/**
|
786
|
+
* @private
|
787
|
+
*/
|
788
|
+
_clearAdvanceFilterUI() {
|
789
|
+
let defaultVal = "";
|
790
|
+
let dateTimeType = toDateTimeType(this.fieldDataType);
|
791
|
+
let fdt = dateTimeType ? dateTimeType : this.fieldDataType.toLowerCase();
|
792
|
+
if (fdt === DATE_TIME) {
|
793
|
+
defaultVal = "DT";
|
794
|
+
this._clearValue(this._dateTimeComboBoxes[0], defaultVal);
|
795
|
+
this._clearValue(this._dateTimeComboBoxes[1]);
|
796
|
+
this._dateTimePickers[0].value = "";
|
797
|
+
this._dateTimePickers[1].value = "";
|
798
|
+
this._dateTimeRadioBtns[0].checked = true;
|
799
|
+
} else {
|
800
|
+
if(fdt === "number") {
|
801
|
+
defaultVal = "GT";
|
802
|
+
} else {
|
803
|
+
defaultVal = "CONT";
|
804
|
+
}
|
805
|
+
this._clearValue(this._generalComboBoxes[0], defaultVal);
|
806
|
+
this._clearValue(this._generalComboBoxes[1]);
|
807
|
+
this._clearValue(this._generalComboBoxes[2]);
|
808
|
+
this._clearValue(this._generalComboBoxes[3]);
|
809
|
+
this._generalRadioBtns[0].checked = true;
|
810
|
+
}
|
811
|
+
}
|
812
|
+
/**
|
813
|
+
* @private
|
814
|
+
*/
|
815
|
+
_updateGeneralComboBoxes() {
|
816
|
+
if(this._initialized) {
|
817
|
+
let filterItems;
|
818
|
+
let dateTimeType = toDateTimeType(this.fieldDataType);
|
819
|
+
let fdt = dateTimeType ? dateTimeType : this.fieldDataType.toLowerCase();
|
820
|
+
if(fdt === "number") {
|
821
|
+
filterItems = NUMBER_FILTERS;
|
822
|
+
} else if(fdt === "string" || fdt === "text") {
|
823
|
+
filterItems = TEXT_FILTERS;
|
824
|
+
} else {
|
825
|
+
filterItems = DEFAULT_FILTERS;
|
826
|
+
}
|
827
|
+
if(this._blankValues) {
|
828
|
+
filterItems = filterItems.concat(BLANK_FILTERS);
|
829
|
+
}
|
830
|
+
let translated = this._translateFilters(filterItems);
|
831
|
+
this._generalComboBoxes[0].data = createComboBoxData(translated);
|
832
|
+
this._generalComboBoxes[2].data = createComboBoxData(translated);
|
833
|
+
}
|
834
|
+
}
|
835
|
+
|
836
|
+
/**
|
837
|
+
* Filter is Advanced (By Condition) or Custom (By Value)
|
838
|
+
* @private
|
839
|
+
* @return {boolean}
|
840
|
+
*/
|
841
|
+
_isAdvancedFilterMode() {
|
842
|
+
const ch = this.filterMode ? this.filterMode.charAt(0).toLowerCase() : "";
|
843
|
+
// a - Advanced Filter by Condition; c - Custom Filter by Value
|
844
|
+
return (ch === "c" || ch === "a");
|
845
|
+
}
|
846
|
+
|
847
|
+
/**
|
848
|
+
* @private
|
849
|
+
* @param {Element} elem ef-combo-box element
|
850
|
+
* @param {string} defaultVal=""
|
851
|
+
*/
|
852
|
+
_clearValue(elem, defaultVal) {
|
853
|
+
if(elem.clearSelection) { // clearSelection is deprecated in ELF v4
|
854
|
+
elem.clearSelection();
|
855
|
+
} else {
|
856
|
+
// WORKAROUND:: combo box has a bug. Cannot clear text in free-mode
|
857
|
+
// So wee need to remove free-text and re-set again
|
858
|
+
// to track bug https://jira.refinitiv.com/browse/ELF-1694
|
859
|
+
// TODO:: need to remove WORKAROUND after ELF-1694 fixed
|
860
|
+
let hasFreeTextMode = elem.getAttribute("free-text") != null;
|
861
|
+
if (hasFreeTextMode) {
|
862
|
+
elem.removeAttribute("free-text");
|
863
|
+
}
|
864
|
+
|
865
|
+
elem.value = defaultVal || "";
|
866
|
+
|
867
|
+
if (hasFreeTextMode) {
|
868
|
+
elem.setAttribute("free-text", "");
|
869
|
+
}
|
870
|
+
}
|
871
|
+
}
|
872
|
+
|
873
|
+
/** to prepare and sync state from config into all UI
|
874
|
+
* @private
|
875
|
+
*/
|
876
|
+
_updateUIState() {
|
877
|
+
this._updateFilterModeSelectionUI();
|
878
|
+
this._dataFilter.value = "";
|
879
|
+
this._dataSelector.filter("");
|
880
|
+
this._updateValueSelector();
|
881
|
+
this._updateAdvanceFilterUI();
|
882
|
+
this._updateSortButtonUI();
|
883
|
+
}
|
884
|
+
|
885
|
+
/**
|
886
|
+
* @private
|
887
|
+
*/
|
888
|
+
_updateAdvanceFilterUI() {
|
889
|
+
this._clearAdvanceFilterUI();
|
890
|
+
|
891
|
+
let userConditions = this.conditions || null;
|
892
|
+
if (userConditions && typeof userConditions === "string") {
|
893
|
+
try {
|
894
|
+
userConditions = JSON.parse(userConditions);
|
895
|
+
} catch (err) {
|
896
|
+
return;
|
897
|
+
}
|
898
|
+
}
|
899
|
+
|
900
|
+
if (!Array.isArray(userConditions)) { // Expect 2D array
|
901
|
+
return;
|
902
|
+
}
|
903
|
+
|
904
|
+
const isDateType = toDateTimeType(this.fieldDataType);
|
905
|
+
const con1 = this._toConditionObject(userConditions[0], isDateType);
|
906
|
+
const con2 = con1 ? this._toConditionObject(userConditions[1], isDateType) : null;
|
907
|
+
|
908
|
+
let conSel1 = this._generalComboBoxes[0];
|
909
|
+
let valInput1 = this._generalComboBoxes[1];
|
910
|
+
let conSel2 = this._generalComboBoxes[2];
|
911
|
+
let valInput2 = this._generalComboBoxes[3];
|
912
|
+
let connectors = this._generalRadioBtns;
|
913
|
+
|
914
|
+
if (isDateType) {
|
915
|
+
conSel1 = this._dateTimeComboBoxes[0];
|
916
|
+
valInput1 = this._dateTimePickers[0];
|
917
|
+
conSel2 = this._dateTimeComboBoxes[1];
|
918
|
+
valInput2 = this._dateTimePickers[1];
|
919
|
+
connectors = this._dateTimeRadioBtns;
|
920
|
+
}
|
921
|
+
if (con1) {
|
922
|
+
this._updateConditionUIs(conSel1, valInput1, con1.operator, con1.value);
|
923
|
+
}
|
924
|
+
if (con2) {
|
925
|
+
this._updateConditionUIs(conSel2, valInput2, con2.operator, con2.value);
|
926
|
+
}
|
927
|
+
|
928
|
+
let andRadioBtn = (con1 && con2) ? (con1.connector !== "OR") : true;
|
929
|
+
connectors[0].checked = andRadioBtn; // AND radio button
|
930
|
+
connectors[1].checked = !andRadioBtn; // OR radio button
|
931
|
+
}
|
932
|
+
/**
|
933
|
+
* @private
|
934
|
+
* @param {Array} ary Condition in array format with length of three (e.g., ["LT", 5, "OR"])
|
935
|
+
* @param {boolean} isDateType
|
936
|
+
* @return {string}
|
937
|
+
*/
|
938
|
+
_toConditionObject(ary, isDateType) {
|
939
|
+
if(Array.isArray(ary) && ary.length) {
|
940
|
+
let op = ary[0];
|
941
|
+
if(op) {
|
942
|
+
let val = ary[1];
|
943
|
+
if(val || val === 0 || val === false || BLANK_VALUES[op]) {
|
944
|
+
if(isDateType) {
|
945
|
+
let date = (ary.rawValue != null) ? ary.rawValue : val;
|
946
|
+
if(!(date instanceof Date)){
|
947
|
+
date = new Date(date);
|
948
|
+
}
|
949
|
+
val = DateTime.format(date.getTime(), "yyyy-MM-dd", this.useUTCTime ? "GMT" : "LOCAL");
|
950
|
+
}
|
951
|
+
return {
|
952
|
+
operator: op,
|
953
|
+
value: val,
|
954
|
+
connector: ary[2] || ""
|
955
|
+
};
|
956
|
+
}
|
957
|
+
}
|
958
|
+
}
|
959
|
+
return null;
|
960
|
+
}
|
961
|
+
/** @private
|
962
|
+
* @param {Element} opCombobox
|
963
|
+
* @param {Element} valuePicker
|
964
|
+
* @param {string} opValue
|
965
|
+
* @param {string} value
|
966
|
+
*/
|
967
|
+
_updateConditionUIs(opCombobox, valuePicker, opValue, value) {
|
968
|
+
opCombobox.value = opValue;
|
969
|
+
valuePicker.value = value;
|
970
|
+
}
|
971
|
+
|
972
|
+
/** @private
|
973
|
+
* @returns {boolean}
|
974
|
+
*/
|
975
|
+
_updateDialogHeight() {
|
976
|
+
if(!this._compactMode) {
|
977
|
+
this._rootContainer.classList.remove("compact");
|
978
|
+
} else {
|
979
|
+
this._rootContainer.classList.add("compact"); // Compact mode impact height of element, so we need to set it before height changed to calculate exactly height
|
980
|
+
}
|
981
|
+
this._rootContainer.style.height = "";
|
982
|
+
this._popup.updatePosition(false); // update position without fallback
|
983
|
+
|
984
|
+
const position = Dom.getRelativePosition(this, document.body);
|
985
|
+
const dialogHeight = this.offsetHeight;
|
986
|
+
const windowHeight = window.innerHeight - 5; // Add some buffer
|
987
|
+
const dialogCoverage = position.y + dialogHeight;
|
988
|
+
const heightDiff = dialogCoverage - windowHeight;
|
989
|
+
|
990
|
+
let heightChange = false;
|
991
|
+
if(heightDiff > 0) {
|
992
|
+
heightChange = true;
|
993
|
+
const isAdvancedFilter = this._isAdvancedFilterMode();
|
994
|
+
const minHeight = isAdvancedFilter ? 262 : 216;
|
995
|
+
let newHeight = dialogHeight - heightDiff;
|
996
|
+
if(newHeight < minHeight || isAdvancedFilter){
|
997
|
+
newHeight = minHeight;
|
998
|
+
}
|
999
|
+
this._rootContainer.style.height = newHeight + "px";
|
1000
|
+
|
1001
|
+
const compactThreshold = 409;
|
1002
|
+
if(newHeight < compactThreshold){
|
1003
|
+
this._rootContainer.classList.add("compact");
|
1004
|
+
}
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
this._popup.updatePosition(); // This must be called to apply fallback or height change
|
1008
|
+
return heightChange;
|
1009
|
+
}
|
1010
|
+
/**
|
1011
|
+
* @private
|
1012
|
+
* @param {Array.<Object>|Object} data data for convert into array
|
1013
|
+
* @return {Array.<Object>}
|
1014
|
+
*/
|
1015
|
+
_dataToArray(data) {
|
1016
|
+
let ary = null;
|
1017
|
+
if (Array.isArray(data)) {
|
1018
|
+
ary = data;
|
1019
|
+
} else if(data) {
|
1020
|
+
ary = Object.keys(data); // TODO: Obsolete this
|
1021
|
+
} else {
|
1022
|
+
ary = [];
|
1023
|
+
}
|
1024
|
+
return ary;
|
1025
|
+
}
|
1026
|
+
|
1027
|
+
/**
|
1028
|
+
* @private
|
1029
|
+
*/
|
1030
|
+
_addBlankItem() {
|
1031
|
+
let ary = this._dataToArray(this.data);
|
1032
|
+
if(this._blankValues) {
|
1033
|
+
let blankItem = {
|
1034
|
+
id: "_blank",
|
1035
|
+
title: this._blankValues,
|
1036
|
+
nodes: [],
|
1037
|
+
value: BLANKS, // The ".value" property is currently only usable with blank item abilities
|
1038
|
+
checked: this._blankValuesChecked || false
|
1039
|
+
};
|
1040
|
+
this.data = [blankItem].concat(ary);
|
1041
|
+
} else {
|
1042
|
+
// Data selector can take large number of items
|
1043
|
+
this.data = ary; // Preserve original referencing
|
1044
|
+
}
|
1045
|
+
}
|
1046
|
+
/**
|
1047
|
+
* @private
|
1048
|
+
*/
|
1049
|
+
_updateValueSelector() {
|
1050
|
+
let ary = this._dataToArray(this.data);
|
1051
|
+
this._dataSelector.data = ary; // Preserve original referencing
|
1052
|
+
// Value selector for Filter by Condition
|
1053
|
+
if(ary.length > ITEM_LIMIT) {
|
1054
|
+
ary = ary.slice(0, ITEM_LIMIT); // Prevent combo box from over population
|
1055
|
+
}
|
1056
|
+
// Advance items
|
1057
|
+
let advanceItems = [];
|
1058
|
+
for (let i = 0; i < ary.length; i++) {
|
1059
|
+
let item = ary[i];
|
1060
|
+
if(!item.type) {
|
1061
|
+
advanceItems.push(this._toComboBoxItem(item));
|
1062
|
+
}
|
1063
|
+
}
|
1064
|
+
if(this._blankValues) {
|
1065
|
+
let basicItems = advanceItems.slice(1);
|
1066
|
+
this._generalComboBoxes[1].data = basicItems;
|
1067
|
+
this._generalComboBoxes[3].data = basicItems;
|
1068
|
+
} else {
|
1069
|
+
this._generalComboBoxes[1].data = advanceItems;
|
1070
|
+
this._generalComboBoxes[3].data = advanceItems;
|
1071
|
+
}
|
1072
|
+
}
|
1073
|
+
/**
|
1074
|
+
* @private
|
1075
|
+
* @param {*} obj
|
1076
|
+
* @returns {FilterDialog~ComboBoxItem}
|
1077
|
+
*/
|
1078
|
+
_toComboBoxItem(obj) {
|
1079
|
+
let itemVal = (typeof obj === "string") ? obj : (obj.label || obj.title) || "";
|
1080
|
+
return {
|
1081
|
+
"label": itemVal,
|
1082
|
+
"value": itemVal
|
1083
|
+
};
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
/**
|
1087
|
+
* Return date object
|
1088
|
+
* @private
|
1089
|
+
* @param {string} dateString // Date string in UTC format yyyy-MM-dd
|
1090
|
+
* @return {Date}
|
1091
|
+
*/
|
1092
|
+
_getDateObject(dateString) {
|
1093
|
+
let date = new Date(dateString);
|
1094
|
+
if(date && this.useUTCTime == false){
|
1095
|
+
date.setTime(date.getTime() + (date.getTimezoneOffset() * 60000)); // convert to local time
|
1096
|
+
}
|
1097
|
+
return date;
|
1098
|
+
}
|
1099
|
+
|
1100
|
+
/**
|
1101
|
+
* @private
|
1102
|
+
* @return {Object}
|
1103
|
+
*/
|
1104
|
+
_getTranslation() {
|
1105
|
+
let lang = this._translation[this._lang] ? this._lang : "en";
|
1106
|
+
return this._translation[lang];
|
1107
|
+
}
|
1108
|
+
|
1109
|
+
/**
|
1110
|
+
* @private
|
1111
|
+
* @param {Array} filters
|
1112
|
+
* @return {Array}
|
1113
|
+
*/
|
1114
|
+
_translateFilters(filters) {
|
1115
|
+
let trans = this._getTranslation();
|
1116
|
+
let len = filters.length;
|
1117
|
+
let items = [];
|
1118
|
+
let item;
|
1119
|
+
for (let i = 0; i < len; i++) {
|
1120
|
+
item = filters[i];
|
1121
|
+
items.push([item[0], trans[item[1]]]);
|
1122
|
+
}
|
1123
|
+
return items;
|
1124
|
+
}
|
1125
|
+
|
1126
|
+
/**
|
1127
|
+
* Set filter Visibilities of layout
|
1128
|
+
* @private
|
1129
|
+
*/
|
1130
|
+
_updateFilterModeSelectionUI() {
|
1131
|
+
// Filter By Value - Condition buttons
|
1132
|
+
const children = this._filterBtns.children;
|
1133
|
+
const isAdvanceMode = this._isAdvancedFilterMode();
|
1134
|
+
children[0].active = !isAdvanceMode;
|
1135
|
+
children[1].active = isAdvanceMode;
|
1136
|
+
this._valueFilterUI.classList.toggle("hide", isAdvanceMode);
|
1137
|
+
this._advFilterUI.classList.toggle("hide", !isAdvanceMode);
|
1138
|
+
this._clearBtn.classList.toggle("hide", !isAdvanceMode);
|
1139
|
+
|
1140
|
+
const isDateTimeField = toDateTimeType(this.fieldDataType) ? true : false;
|
1141
|
+
this._generalCondUI.classList.toggle("hide", isDateTimeField);
|
1142
|
+
this._dateTimeCondUI.classList.toggle("hide", !isDateTimeField);
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
/**
|
1146
|
+
* to update state of sort button
|
1147
|
+
* @private
|
1148
|
+
*/
|
1149
|
+
_updateSortButtonUI() {
|
1150
|
+
const sortState = this.sortState;
|
1151
|
+
const children = this._sortBtns.children;
|
1152
|
+
children[0].active = sortState === "a";
|
1153
|
+
children[1].active = sortState === "d";
|
1154
|
+
}
|
1155
|
+
}
|
1156
|
+
|
1157
|
+
customElement("filter-dialog")(FilterDialog);
|
1158
|
+
|
1159
|
+
export { FilterDialog };
|
1160
|
+
export default FilterDialog;
|