@refinitiv-ui/efx-grid 6.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-format-dialog/index.d.ts +1 -0
- package/lib/column-format-dialog/index.js +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +64 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2713 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +995 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +1 -0
- package/lib/column-selection-dialog/index.js +1 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +41 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +1410 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +189 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +6 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +6 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +22 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +6 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +6 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +6 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +6 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +28075 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +81 -0
- package/lib/core/es6/data/DataCache.js +1317 -0
- package/lib/core/es6/data/DataTable.d.ts +125 -0
- package/lib/core/es6/data/DataTable.js +1655 -0
- package/lib/core/es6/data/DataView.d.ts +280 -0
- package/lib/core/es6/data/DataView.js +3654 -0
- package/lib/core/es6/data/Segment.d.ts +38 -0
- package/lib/core/es6/data/Segment.js +193 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +58 -0
- package/lib/core/es6/data/SegmentCollection.js +431 -0
- package/lib/core/es6/grid/Core.d.ts +387 -0
- package/lib/core/es6/grid/Core.js +4939 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +204 -0
- package/lib/core/es6/grid/ILayoutGrid.js +658 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +23 -0
- package/lib/core/es6/grid/LayoutGrid.js +2602 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +907 -0
- package/lib/core/es6/grid/components/Cell.d.ts +50 -0
- package/lib/core/es6/grid/components/Cell.js +740 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +123 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +38 -0
- package/lib/core/es6/grid/components/CellSpans.js +341 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +612 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +714 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +24 -0
- package/lib/core/es6/grid/components/HScrollbar.js +222 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +61 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1374 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +328 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +163 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +615 -0
- package/lib/core/es6/grid/plugins/Plugin.d.ts +28 -0
- package/lib/core/es6/grid/plugins/Plugin.js +272 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1707 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/core/es6/grid/util/ElementFrameWork.js +227 -0
- package/lib/core/es6/grid/util/HttpRequest.d.ts +53 -0
- package/lib/core/es6/grid/util/HttpRequest.js +371 -0
- package/lib/core/es6/grid/util/PercentBar.d.ts +43 -0
- package/lib/core/es6/grid/util/PercentBar.js +390 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.js +316 -0
- package/lib/core/es6/grid/util/RangeBar.d.ts +25 -0
- package/lib/core/es6/grid/util/RangeBar.js +255 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +674 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +50 -0
- package/lib/core/es6/grid/util/SelectionList.js +422 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +84 -0
- package/lib/core/es6/grid/util/TrackLayout.js +850 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +18 -0
- package/lib/core/es6/grid/util/util.js +450 -0
- package/lib/core/es6/index.d.ts +84 -0
- package/lib/core/es6/index.js +132 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +1 -0
- package/lib/filter-dialog/index.js +1 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +27 -0
- package/lib/filter-dialog/lib/checkbox-list.js +336 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +53 -0
- package/lib/filter-dialog/lib/filter-dialog.js +860 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +37 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +37 -0
- package/lib/filter-dialog/themes/base.less +102 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +9 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +40 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +102 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralIconFormatter.js +45 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +40 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +66 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFButtonFormatter.js +40 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +68 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFIconFormatter.js +45 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +66 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +22 -0
- package/lib/formatters/es6/FormatterBuilder.js +334 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +65 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +30 -0
- package/lib/formatters/es6/index.d.ts +43 -0
- package/lib/formatters/es6/index.js +67 -0
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +2 -0
- package/lib/grid/lib/efx-grid.d.ts +32 -0
- package/lib/grid/lib/efx-grid.js +469 -0
- package/lib/grid/themes/base.less +134 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +92 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +102 -0
- package/lib/index.js +102 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +83 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +592 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +44672 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +141 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1074 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +37 -0
- package/lib/rt-grid/es6/DataConnector.js +266 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +20 -0
- package/lib/rt-grid/es6/FieldDefinition.js +418 -0
- package/lib/rt-grid/es6/Grid.d.ts +261 -0
- package/lib/rt-grid/es6/Grid.js +2893 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +38 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +230 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +120 -0
- package/lib/rt-grid/es6/RowDefinition.js +873 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +21 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +252 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +67 -0
- package/lib/statistics-row/es6/StatisticsRow.js +786 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +45 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +431 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +67 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1777 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +69 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1476 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +1000 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +89 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +615 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +60 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +913 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1013 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +70 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +928 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +76 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +1227 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +70 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +947 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +478 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +471 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +133 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +39 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +245 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +29 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +292 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +57 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +928 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +44 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +394 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +129 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +1977 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +57 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +427 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +801 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +49 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +226 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +12 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +21 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +32 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +761 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +38 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +481 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +54 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +205 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +353 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +53 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +794 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +118 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +1884 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +109 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1541 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +74 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1202 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +60 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +611 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +77 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +574 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +29 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +136 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1128 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +14 -0
- package/lib/tr-grid-util/es6/Deferred.js +98 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +85 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +346 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +10 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +101 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +83 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +163 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +33 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +458 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +27 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +169 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +432 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +48 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +521 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +41 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +181 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +72 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +747 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +61 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +237 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +32 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +506 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +83 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +471 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +162 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +84 -0
- package/lib/tr-grid-util/es6/Popup.js +818 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +259 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +239 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +23 -0
- package/lib/tr-grid-util/es6/RowPainter.js +188 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +74 -0
- package/lib/tr-grid-util/es6/SubTable.js +558 -0
- package/lib/tr-grid-util/es6/Table.d.ts +125 -0
- package/lib/tr-grid-util/es6/Table.js +790 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +18 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +273 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +65 -0
- package/lib/tr-grid-util/es6/Util.js +528 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +882 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +63 -0
- package/lib/tr-grid-util/es6/index.js +99 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +141 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +114 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +827 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +63 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +72 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +564 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +43 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +131 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +45 -0
- package/lib/types/es6/CellSelection.d.ts +67 -0
- package/lib/types/es6/Checkbox.d.ts +69 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +90 -0
- package/lib/types/es6/ColumnGrouping.d.ts +60 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +70 -0
- package/lib/types/es6/ColumnStack.d.ts +76 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +38 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +287 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +22 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +42 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +70 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +81 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +125 -0
- package/lib/types/es6/Core/data/DataView.d.ts +280 -0
- package/lib/types/es6/Core/data/Segment.d.ts +38 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +58 -0
- package/lib/types/es6/Core/grid/Core.d.ts +387 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +204 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +23 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +50 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +38 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +24 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +61 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +28 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +53 -0
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +43 -0
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +25 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +50 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +84 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +18 -0
- package/lib/types/es6/Core/index.d.ts +84 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +23 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +52 -0
- package/lib/types/es6/Extensions.d.ts +61 -0
- package/lib/types/es6/FilterInput.d.ts +57 -0
- package/lib/types/es6/FormatterBuilder.d.ts +22 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +44 -0
- package/lib/types/es6/InCellEditing.d.ts +129 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +39 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +57 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +29 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +143 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +37 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +20 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +263 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +38 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +120 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +21 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +60 -0
- package/lib/types/es6/RowDragging.d.ts +53 -0
- package/lib/types/es6/RowFiltering.d.ts +118 -0
- package/lib/types/es6/RowGrouping.d.ts +109 -0
- package/lib/types/es6/RowSegmenting.d.ts +83 -0
- package/lib/types/es6/RowSelection.d.ts +74 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +67 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +77 -0
- package/lib/types/es6/TitleWrap.d.ts +29 -0
- package/lib/types/es6/Zoom.d.ts +51 -0
- package/lib/types/es6/index.d.ts +76 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/versions.json +36 -0
- package/lib/window-exporter.js +13 -0
- package/lib/zoom/es6/Zoom.d.ts +51 -0
- package/lib/zoom/es6/Zoom.js +419 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +42 -0
@@ -0,0 +1,928 @@
|
|
1
|
+
import { Ext } from '../../tr-grid-util/es6/Ext.js';
|
2
|
+
import { GridPlugin } from '../../tr-grid-util/es6/GridPlugin.js';
|
3
|
+
import { ElfUtil } from '../../tr-grid-util/es6/ElfUtil.js';
|
4
|
+
import { ElfDate } from '../../tr-grid-util/es6/ElfDate.js';
|
5
|
+
import { CoralItems } from '../../tr-grid-util/es6/CoralItems.js';
|
6
|
+
/** @typedef {Object} FilterInputPlugin~GridColumn
|
7
|
+
* @description FilterInputPlugin options available in each individual grid's column
|
8
|
+
* @property {FilterInputPlugin~ColumnOptions=} filterInput=null
|
9
|
+
*/
|
10
|
+
|
11
|
+
/** @typedef {(Object|boolean)} FilterInputPlugin~ColumnOptions
|
12
|
+
* @description FilterInputPlugin options available in "filterInput" property on grid's column
|
13
|
+
* @property {Function=} defaultLogic=null Logic for filtering
|
14
|
+
* @property {Function=} filterLogic=null Alias to `defaultLogic`
|
15
|
+
* @property {boolean=} disabled=false Disable UI
|
16
|
+
* @property {string=} placeholder="" Placeholder text inside the input
|
17
|
+
* @property {string=} type="text" Type of UI. Available types are "number", "select", "dropdown", "date"
|
18
|
+
* @property {Array=} entries Entries of dropdown filters when type is "select"
|
19
|
+
*/
|
20
|
+
|
21
|
+
/** @typedef {Object} FilterInputPlugin~Options
|
22
|
+
* @description FilterInputPlugin options available in main grid configuration under `filterInput` property
|
23
|
+
* @property {Function=} inputCreated=null Handler executed after filter input is created
|
24
|
+
*/
|
25
|
+
|
26
|
+
/** @callback {Function} FilterInputPlugin~FilterLogic
|
27
|
+
* @description Logic used to filter in/out on each row
|
28
|
+
* @property {Object} e Object contains all related information provided by the extension
|
29
|
+
* @property {string=} e.inputText Text for filter
|
30
|
+
* @property {Element} e.input Input element
|
31
|
+
* @property {string} e.field Field of the column being filtered
|
32
|
+
* @property {Object} rowData Row Data of the filtered row
|
33
|
+
*/
|
34
|
+
|
35
|
+
/** @event FilterInputPlugin#inputCreated
|
36
|
+
* @description `inputCreated` fired on each creation of filter input
|
37
|
+
* @type {Object}
|
38
|
+
* @property {Element} input Input element
|
39
|
+
* @property {Element} cell
|
40
|
+
* @property {number} colIndex
|
41
|
+
* @property {number|null} colId
|
42
|
+
* @property {number} rowIndex
|
43
|
+
* @property {Object} grid core grid object
|
44
|
+
* @property {Object} section Section(ILayoutGrid) contains all of the filter inputs
|
45
|
+
*/
|
46
|
+
|
47
|
+
/** @constructor
|
48
|
+
* @extends {GridPlugin}
|
49
|
+
* @param {FilterInputPlugin~Options=} options
|
50
|
+
*/
|
51
|
+
|
52
|
+
var FilterInputPlugin = function FilterInputPlugin(options) {
|
53
|
+
this._onInputChanged = this._onInputChanged.bind(this);
|
54
|
+
this._onOpenedChanged = this._onOpenedChanged.bind(this);
|
55
|
+
this._onDateChanged = this._onDateChanged.bind(this);
|
56
|
+
this._onPostDataSourceChanged = this._onPostDataSourceChanged.bind(this);
|
57
|
+
this._onColumnAdded = this._onColumnAdded.bind(this);
|
58
|
+
this._onRowFilteringRetrieved = this._onRowFilteringRetrieved.bind(this);
|
59
|
+
this._onRowFilteringFailed = this._onRowFilteringFailed.bind(this);
|
60
|
+
this._onColumnFilterFailed = this._onColumnFilterFailed.bind(this);
|
61
|
+
this.refresh = this.refresh.bind(this);
|
62
|
+
this._updateUIs = this._updateUIs.bind(this);
|
63
|
+
this._hosts = [];
|
64
|
+
|
65
|
+
if (options) {
|
66
|
+
this.config({
|
67
|
+
"filterInput": options
|
68
|
+
});
|
69
|
+
}
|
70
|
+
};
|
71
|
+
|
72
|
+
Ext.inherits(FilterInputPlugin, GridPlugin);
|
73
|
+
/** Filter Processor used to perform actual filtering (This extension provides only UIs).
|
74
|
+
* @type {*}
|
75
|
+
* @private
|
76
|
+
*/
|
77
|
+
|
78
|
+
FilterInputPlugin.prototype._filterProc = null;
|
79
|
+
/** @type {Object}
|
80
|
+
* @private
|
81
|
+
*/
|
82
|
+
|
83
|
+
FilterInputPlugin.prototype._gridConfig = null;
|
84
|
+
/** Array of grid sections
|
85
|
+
* @type {Array.<Object>}
|
86
|
+
* @private
|
87
|
+
*/
|
88
|
+
|
89
|
+
FilterInputPlugin.prototype._inputSects = null;
|
90
|
+
/** @type {number}
|
91
|
+
* @private
|
92
|
+
*/
|
93
|
+
|
94
|
+
FilterInputPlugin.prototype._refreshTimer = 0;
|
95
|
+
/** @type {number}
|
96
|
+
* @private
|
97
|
+
*/
|
98
|
+
|
99
|
+
FilterInputPlugin.prototype._uiTimer = 0;
|
100
|
+
/** @type {boolean}
|
101
|
+
* @private
|
102
|
+
*/
|
103
|
+
|
104
|
+
FilterInputPlugin.prototype._freezeInputValue = false;
|
105
|
+
/** @public
|
106
|
+
* @return {string}
|
107
|
+
*/
|
108
|
+
|
109
|
+
FilterInputPlugin.prototype.getName = function () {
|
110
|
+
return "FilterInputPlugin"; // Read Only
|
111
|
+
};
|
112
|
+
/** @public
|
113
|
+
* @param {Object} host core grid object
|
114
|
+
* @param {Object=} options
|
115
|
+
*/
|
116
|
+
|
117
|
+
|
118
|
+
FilterInputPlugin.prototype.initialize = function (host, options) {
|
119
|
+
if (this._hosts.indexOf(host) >= 0) {
|
120
|
+
return;
|
121
|
+
}
|
122
|
+
|
123
|
+
this._hosts.push(host);
|
124
|
+
|
125
|
+
host.listen("postDataSourceChanged", this._onPostDataSourceChanged);
|
126
|
+
host.listen("columnAdded", this._onColumnAdded);
|
127
|
+
this.config(options); // In case of lazy loading
|
128
|
+
|
129
|
+
var title = host.getSection("title");
|
130
|
+
|
131
|
+
if (title) {
|
132
|
+
this._onPostDataSourceChanged();
|
133
|
+
}
|
134
|
+
};
|
135
|
+
/** @public
|
136
|
+
* @param {Object} host core grid object
|
137
|
+
*/
|
138
|
+
|
139
|
+
|
140
|
+
FilterInputPlugin.prototype.unload = function (host) {
|
141
|
+
var at = this._hosts.indexOf(host);
|
142
|
+
|
143
|
+
if (at < 0) {
|
144
|
+
return;
|
145
|
+
}
|
146
|
+
|
147
|
+
host.unlisten("postDataSourceChanged", this._onPostDataSourceChanged);
|
148
|
+
|
149
|
+
this._hosts.splice(at, 1);
|
150
|
+
|
151
|
+
if (this._inputSects && at < this._inputSects.length) {
|
152
|
+
this._inputSects.splice(at, 1);
|
153
|
+
}
|
154
|
+
|
155
|
+
if (!this._hosts.length) {
|
156
|
+
this._compositeGrid = this._realTimeGrid = this._filterBuilder = null;
|
157
|
+
this._filterProc = this._gridConfig = this._inputSects = null;
|
158
|
+
|
159
|
+
if (this._refreshTimer) {
|
160
|
+
clearTimeout(this._refreshTimer);
|
161
|
+
this._refreshTimer = 0;
|
162
|
+
}
|
163
|
+
|
164
|
+
if (this._uiTimer) {
|
165
|
+
clearTimeout(this._uiTimer);
|
166
|
+
this._uiTimer = 0;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
};
|
170
|
+
/** Prevent built-in config
|
171
|
+
* @public
|
172
|
+
* @ignore
|
173
|
+
* @param {string} optionName
|
174
|
+
* @param {Object} options
|
175
|
+
* @return {*}
|
176
|
+
*/
|
177
|
+
|
178
|
+
|
179
|
+
FilterInputPlugin.prototype.beforeProcessOption = function (optionName, options) {
|
180
|
+
if (optionName === 'filterRow' || optionName === 'FilterRow') {
|
181
|
+
return false; // eslint-disable-line
|
182
|
+
}
|
183
|
+
|
184
|
+
return; // eslint-disable-line
|
185
|
+
};
|
186
|
+
/** @private
|
187
|
+
* @param {string} optionName
|
188
|
+
* @param {Object} options
|
189
|
+
*/
|
190
|
+
|
191
|
+
|
192
|
+
FilterInputPlugin.prototype._afterInit = function () {
|
193
|
+
this._requestPlugin(this._hosts[0], "RowFilteringPlugin", this._gridConfig).then(this._onRowFilteringRetrieved)["catch"](this._onRowFilteringFailed);
|
194
|
+
};
|
195
|
+
/** @public
|
196
|
+
* @param {Object=} options
|
197
|
+
*/
|
198
|
+
|
199
|
+
|
200
|
+
FilterInputPlugin.prototype.config = function (options) {
|
201
|
+
if (!options) {
|
202
|
+
return;
|
203
|
+
}
|
204
|
+
|
205
|
+
this._gridConfig = options; // For loading dependency
|
206
|
+
|
207
|
+
this.addListener(options["filterInput"], "inputCreated");
|
208
|
+
var columns = options["columns"];
|
209
|
+
var len = columns ? columns.length : 0;
|
210
|
+
|
211
|
+
for (var c = 0; c < len; ++c) {
|
212
|
+
this._retrieveColumnOption(c, columns[c]);
|
213
|
+
}
|
214
|
+
};
|
215
|
+
/** Get a current state of grid and extension config
|
216
|
+
* @public
|
217
|
+
* @param {Object=} out_obj
|
218
|
+
* @returns {!Object}
|
219
|
+
*/
|
220
|
+
|
221
|
+
|
222
|
+
FilterInputPlugin.prototype.getConfigObject = function (out_obj) {
|
223
|
+
var obj = out_obj || {};
|
224
|
+
var columns = obj.columns;
|
225
|
+
|
226
|
+
if (!columns) {
|
227
|
+
columns = obj.columns = [];
|
228
|
+
}
|
229
|
+
|
230
|
+
var len = this.getColumnCount();
|
231
|
+
|
232
|
+
for (var i = 0; i < len; ++i) {
|
233
|
+
var col = columns[i];
|
234
|
+
|
235
|
+
if (!col) {
|
236
|
+
col = columns[i] = {};
|
237
|
+
}
|
238
|
+
|
239
|
+
var filterInput = col.filterInput = {};
|
240
|
+
|
241
|
+
var opt = this._getExtColumnOption(i);
|
242
|
+
|
243
|
+
if (!opt) {
|
244
|
+
continue;
|
245
|
+
}
|
246
|
+
|
247
|
+
if (opt.disabled != null) {
|
248
|
+
filterInput.disabled = opt.disabled;
|
249
|
+
}
|
250
|
+
|
251
|
+
if (opt.placeholder != null) {
|
252
|
+
filterInput.placeholder = opt.placeholder;
|
253
|
+
}
|
254
|
+
|
255
|
+
if (opt.type != null) {
|
256
|
+
filterInput.type = opt.type;
|
257
|
+
}
|
258
|
+
|
259
|
+
if (opt.entries != null) {
|
260
|
+
filterInput.entries = opt.entries;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
return obj;
|
265
|
+
};
|
266
|
+
/** @private
|
267
|
+
* @param {*} proc Filter Processor
|
268
|
+
*/
|
269
|
+
|
270
|
+
|
271
|
+
FilterInputPlugin.prototype._onRowFilteringRetrieved = function (proc) {
|
272
|
+
this._gridConfig = null;
|
273
|
+
|
274
|
+
if (proc) {
|
275
|
+
this._filterProc = proc;
|
276
|
+
this.refresh();
|
277
|
+
}
|
278
|
+
};
|
279
|
+
/** @private
|
280
|
+
* @param {*} proc Filter Processor
|
281
|
+
* @returns {*}
|
282
|
+
*/
|
283
|
+
|
284
|
+
|
285
|
+
FilterInputPlugin.prototype._onRowFilteringFailed = function () {
|
286
|
+
return this._requestPlugin(this._hosts[0], "ColumnFilterPlugin", this._gridConfig).then(this._onRowFilteringRetrieved)["catch"](this._onColumnFilterFailed); // Gracefully resolve if we fail this time
|
287
|
+
};
|
288
|
+
/** @private */
|
289
|
+
|
290
|
+
|
291
|
+
FilterInputPlugin.prototype._onColumnFilterFailed = function () {
|
292
|
+
this._gridConfig = null;
|
293
|
+
};
|
294
|
+
/** @private
|
295
|
+
* @param {Object=} e
|
296
|
+
*/
|
297
|
+
|
298
|
+
|
299
|
+
FilterInputPlugin.prototype._onColumnAdded = function (e) {
|
300
|
+
if (e.context && e.colIndex != null) {
|
301
|
+
this._retrieveColumnOption(e.colIndex, e.context);
|
302
|
+
}
|
303
|
+
|
304
|
+
this._requestUIUpdate();
|
305
|
+
};
|
306
|
+
/** @private */
|
307
|
+
|
308
|
+
|
309
|
+
FilterInputPlugin.prototype._requestUIUpdate = function () {
|
310
|
+
if (!this._uiTimer) {
|
311
|
+
// HACK: To wait for other plugins receive columnAdded and avoid removing the wrong column filter
|
312
|
+
this._uiTimer = setTimeout(this._updateUIs, 50);
|
313
|
+
}
|
314
|
+
};
|
315
|
+
/** @private */
|
316
|
+
|
317
|
+
|
318
|
+
FilterInputPlugin.prototype._updateUIs = function () {
|
319
|
+
this._uiTimer = 0;
|
320
|
+
|
321
|
+
if (this._inputSects) {
|
322
|
+
var len = this._inputSects.length;
|
323
|
+
|
324
|
+
for (var i = 0; i < len; ++i) {
|
325
|
+
this._createColumnInputs(this._inputSects[i], this._hosts[i]);
|
326
|
+
}
|
327
|
+
}
|
328
|
+
};
|
329
|
+
/** @private
|
330
|
+
* @param {Object=} e
|
331
|
+
*/
|
332
|
+
|
333
|
+
|
334
|
+
FilterInputPlugin.prototype._onPostDataSourceChanged = function (e) {
|
335
|
+
if (this._inputSects) {
|
336
|
+
// TODO: Handle multiple hosts
|
337
|
+
return;
|
338
|
+
}
|
339
|
+
|
340
|
+
var len = this._hosts.length;
|
341
|
+
|
342
|
+
if (!len) {
|
343
|
+
return;
|
344
|
+
}
|
345
|
+
|
346
|
+
this._inputSects = [];
|
347
|
+
var rowHeight = window.getComputedStyle(this._hosts[0].getElement()).getPropertyValue('--grid-row-height'); // TODO: This should be retrieved from core grid
|
348
|
+
|
349
|
+
if (rowHeight) {
|
350
|
+
rowHeight = parseInt(rowHeight, 10);
|
351
|
+
}
|
352
|
+
|
353
|
+
var host;
|
354
|
+
|
355
|
+
for (var i = 0; i < len; ++i) {
|
356
|
+
host = this._hosts[i];
|
357
|
+
var titles = host.getAllSections("title");
|
358
|
+
var lastTitle = titles[titles.length - 1];
|
359
|
+
var at = lastTitle ? lastTitle.getIndex() + 1 : 0;
|
360
|
+
var section = this._inputSects[i] = host.addSectionAt(at, "title", "filterInputs");
|
361
|
+
|
362
|
+
if (rowHeight) {
|
363
|
+
section.setDefaultRowHeight(rowHeight);
|
364
|
+
}
|
365
|
+
|
366
|
+
section.enableClass("filter-inputs");
|
367
|
+
section.addRow(1);
|
368
|
+
}
|
369
|
+
|
370
|
+
if (!host.getVScrollStartIndex || host.getVScrollStartIndex() >= 0) {
|
371
|
+
host.freezeSection(at);
|
372
|
+
}
|
373
|
+
|
374
|
+
this._requestUIUpdate();
|
375
|
+
};
|
376
|
+
/** @private
|
377
|
+
* @param {Object=} e
|
378
|
+
*/
|
379
|
+
|
380
|
+
|
381
|
+
FilterInputPlugin.prototype._onDateChanged = function (e) {
|
382
|
+
var host = this.getRelativeGrid(e);
|
383
|
+
|
384
|
+
if (host) {
|
385
|
+
var pos = host.getRelativePosition(e);
|
386
|
+
var colIndex = pos.colIndex;
|
387
|
+
var dateObj = ElfDate.getDate(e.detail); // TODO: Date object should be used for filtering instead of string
|
388
|
+
|
389
|
+
var dateStr = dateObj ? dateObj.toDateString().substr(4) : "";
|
390
|
+
this.filterColumn(colIndex, dateStr);
|
391
|
+
}
|
392
|
+
};
|
393
|
+
/** @private
|
394
|
+
* @param {Object} section ILayoutGrid
|
395
|
+
* @param {Object} host core grid object
|
396
|
+
*/
|
397
|
+
|
398
|
+
|
399
|
+
FilterInputPlugin.prototype._createColumnInputs = function (section, host) {
|
400
|
+
var colCount = section.getColumnCount();
|
401
|
+
|
402
|
+
for (var c = 0; c < colCount; ++c) {
|
403
|
+
var cell = section.getCell(c, 0);
|
404
|
+
var elem = cell.getContent();
|
405
|
+
|
406
|
+
if (elem) {
|
407
|
+
continue;
|
408
|
+
}
|
409
|
+
|
410
|
+
cell.enableClass("no-sort"); // Prevent sorting
|
411
|
+
|
412
|
+
var colOpt = this._newExtColumnOption(c);
|
413
|
+
|
414
|
+
if (colOpt["disabled"]) {
|
415
|
+
continue;
|
416
|
+
}
|
417
|
+
|
418
|
+
elem = this._createFilterUI(colOpt);
|
419
|
+
cell.setContent(elem);
|
420
|
+
var arg = colOpt._filterArguments = {};
|
421
|
+
arg.input = elem;
|
422
|
+
arg.field = this._getField(c);
|
423
|
+
arg.cell = cell;
|
424
|
+
arg.grid = host;
|
425
|
+
var inputArgs = {
|
426
|
+
"input": elem,
|
427
|
+
"cell": cell,
|
428
|
+
"colIndex": c,
|
429
|
+
"rowIndex": 0,
|
430
|
+
"grid": host,
|
431
|
+
"section": section
|
432
|
+
};
|
433
|
+
|
434
|
+
if (this._compositeGrid) {
|
435
|
+
inputArgs['colId'] = this._compositeGrid.getColumnId(c);
|
436
|
+
}
|
437
|
+
|
438
|
+
this._dispatch("inputCreated", inputArgs);
|
439
|
+
}
|
440
|
+
};
|
441
|
+
/** @type {Object.<string, string>=}
|
442
|
+
* @private
|
443
|
+
*/
|
444
|
+
|
445
|
+
|
446
|
+
FilterInputPlugin._uiMap = {
|
447
|
+
number: "ef-input",
|
448
|
+
select: "ef-select",
|
449
|
+
dropdown: "ef-select",
|
450
|
+
date: "ef-datetime-picker"
|
451
|
+
};
|
452
|
+
/** @private
|
453
|
+
* @param {Object} colOpt
|
454
|
+
* @return {!Element}
|
455
|
+
*/
|
456
|
+
|
457
|
+
FilterInputPlugin.prototype._createFilterUI = function (colOpt) {
|
458
|
+
var elemType = colOpt.type;
|
459
|
+
var uiTag = FilterInputPlugin._uiMap[elemType] || "input";
|
460
|
+
|
461
|
+
if (uiTag == "ef-input") {
|
462
|
+
if (ElfUtil.hasComponent("ef-number-field")) {
|
463
|
+
uiTag = "ef-number-field";
|
464
|
+
}
|
465
|
+
} else if (uiTag == "input") {
|
466
|
+
if (ElfUtil.hasComponent("ef-search-field")) {
|
467
|
+
uiTag = "ef-search-field";
|
468
|
+
}
|
469
|
+
}
|
470
|
+
|
471
|
+
var elem = document.createElement(uiTag);
|
472
|
+
elem.className = "filter-input";
|
473
|
+
elem.style.width = "100%";
|
474
|
+
elem.style.margin = "0";
|
475
|
+
var placeholder = colOpt["placeholder"];
|
476
|
+
|
477
|
+
if (placeholder) {
|
478
|
+
elem.setAttribute("placeholder", placeholder);
|
479
|
+
} // Prevent trigering other actions when a user interacts with filter input
|
480
|
+
|
481
|
+
|
482
|
+
elem.addEventListener("keydown", FilterInputPlugin._stopPropagation, false);
|
483
|
+
elem.addEventListener("click", FilterInputPlugin._stopPropagation, false);
|
484
|
+
|
485
|
+
switch (uiTag) {
|
486
|
+
case "ef-input":
|
487
|
+
elem.setAttribute("type", "number");
|
488
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
489
|
+
break;
|
490
|
+
|
491
|
+
case "ef-number-field":
|
492
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
493
|
+
break;
|
494
|
+
|
495
|
+
case "ef-select":
|
496
|
+
elem.data = CoralItems.create(colOpt.entries);
|
497
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
498
|
+
elem.addEventListener("opened-changed", this._onOpenedChanged, false);
|
499
|
+
break;
|
500
|
+
|
501
|
+
case "ef-datetime-picker":
|
502
|
+
elem.addEventListener("value-changed", this._onDateChanged, false);
|
503
|
+
break;
|
504
|
+
|
505
|
+
case "ef-search-field":
|
506
|
+
elem.addEventListener("search", this._onInputChanged, false);
|
507
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
508
|
+
break;
|
509
|
+
|
510
|
+
default:
|
511
|
+
elem.setAttribute("type", "search");
|
512
|
+
elem.addEventListener("search", this._onInputChanged, false);
|
513
|
+
elem.addEventListener("keyup", this._onInputChanged, false);
|
514
|
+
break;
|
515
|
+
}
|
516
|
+
|
517
|
+
return elem;
|
518
|
+
};
|
519
|
+
/** @private
|
520
|
+
* @param {number} colIndex
|
521
|
+
* @return {Object}
|
522
|
+
*/
|
523
|
+
|
524
|
+
|
525
|
+
FilterInputPlugin.prototype._getExtColumnOption = function (colIndex) {
|
526
|
+
return this._getColumnOption(colIndex, "filterInputOption") || null;
|
527
|
+
};
|
528
|
+
/** @private
|
529
|
+
* @param {number} colIndex
|
530
|
+
* @return {!Object}
|
531
|
+
*/
|
532
|
+
|
533
|
+
|
534
|
+
FilterInputPlugin.prototype._newExtColumnOption = function (colIndex) {
|
535
|
+
var colData = this._newColumnData(colIndex);
|
536
|
+
|
537
|
+
var option = colData["filterInputOption"];
|
538
|
+
|
539
|
+
if (!option) {
|
540
|
+
option = colData["filterInputOption"] = {};
|
541
|
+
option._comparingLogic = FilterInputPlugin._containingFilter;
|
542
|
+
}
|
543
|
+
|
544
|
+
return option;
|
545
|
+
};
|
546
|
+
/** @private
|
547
|
+
* @param {number} colIndex
|
548
|
+
* @param {Object} colDef
|
549
|
+
*/
|
550
|
+
|
551
|
+
|
552
|
+
FilterInputPlugin.prototype._retrieveColumnOption = function (colIndex, colDef) {
|
553
|
+
var filterOption = colDef ? colDef["filterInput"] : null;
|
554
|
+
|
555
|
+
if (filterOption != null) {
|
556
|
+
var option = this._newExtColumnOption(colIndex);
|
557
|
+
|
558
|
+
if (filterOption) {
|
559
|
+
var defaultLogic = filterOption["filterLogic"] || filterOption["defaultLogic"];
|
560
|
+
|
561
|
+
if (defaultLogic != null) {
|
562
|
+
if (typeof defaultLogic === "function") {
|
563
|
+
option._comparingLogic = defaultLogic;
|
564
|
+
} else if (!defaultLogic) {
|
565
|
+
option._comparingLogic = null;
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
var disabled = filterOption["disabled"];
|
570
|
+
|
571
|
+
if (disabled != null) {
|
572
|
+
option["disabled"] = disabled ? true : false;
|
573
|
+
}
|
574
|
+
|
575
|
+
var placeholder = filterOption["placeholder"];
|
576
|
+
|
577
|
+
if (typeof placeholder == "string") {
|
578
|
+
option["placeholder"] = placeholder;
|
579
|
+
}
|
580
|
+
|
581
|
+
var type = filterOption["type"];
|
582
|
+
|
583
|
+
if (typeof type == "string") {
|
584
|
+
option["type"] = type;
|
585
|
+
}
|
586
|
+
|
587
|
+
var entries = filterOption["entries"];
|
588
|
+
|
589
|
+
if (Array.isArray(entries)) {
|
590
|
+
// Add Clear filter option
|
591
|
+
entries.push({
|
592
|
+
label: 'No Filter',
|
593
|
+
value: 'No Filter'
|
594
|
+
});
|
595
|
+
option["entries"] = entries;
|
596
|
+
}
|
597
|
+
} else {
|
598
|
+
option["disabled"] = true;
|
599
|
+
}
|
600
|
+
} else if (this._getExtColumnOption(colIndex)) {
|
601
|
+
// Reset everything to default
|
602
|
+
this._getColumnData(colIndex)["filterInputOption"] = null;
|
603
|
+
}
|
604
|
+
};
|
605
|
+
/** @public
|
606
|
+
* @ignore
|
607
|
+
* @param {number} colIndex
|
608
|
+
* @param {string} text
|
609
|
+
*/
|
610
|
+
|
611
|
+
|
612
|
+
FilterInputPlugin.prototype.updateUI = function (colIndex, text) {
|
613
|
+
if (this._freezeInputValue) return;
|
614
|
+
var input = this.getColumnInput(colIndex);
|
615
|
+
|
616
|
+
if (input) {
|
617
|
+
input.value = text;
|
618
|
+
}
|
619
|
+
|
620
|
+
this._updateColumnOption(colIndex, text);
|
621
|
+
};
|
622
|
+
/** @private
|
623
|
+
* @param {number} colIndex
|
624
|
+
* @param {string} text
|
625
|
+
* @return {Object} Column option
|
626
|
+
*/
|
627
|
+
|
628
|
+
|
629
|
+
FilterInputPlugin.prototype._updateColumnOption = function (colIndex, text) {
|
630
|
+
var option = this._getExtColumnOption(colIndex);
|
631
|
+
|
632
|
+
if (!option) {
|
633
|
+
return null;
|
634
|
+
}
|
635
|
+
|
636
|
+
var inputText = "";
|
637
|
+
|
638
|
+
if (text || text === 0) {
|
639
|
+
inputText = typeof text !== "string" ? text + "" : text;
|
640
|
+
}
|
641
|
+
|
642
|
+
var arg = option._filterArguments;
|
643
|
+
|
644
|
+
if (arg) {
|
645
|
+
arg.inputText = option.inputText = inputText;
|
646
|
+
arg.lowerCasedText = inputText.toLowerCase();
|
647
|
+
arg.colIndex = colIndex;
|
648
|
+
}
|
649
|
+
|
650
|
+
return option;
|
651
|
+
};
|
652
|
+
/** @public
|
653
|
+
* @param {number} colIndex
|
654
|
+
* @return {Element} Input element
|
655
|
+
*/
|
656
|
+
|
657
|
+
|
658
|
+
FilterInputPlugin.prototype.getColumnInput = function (colIndex) {
|
659
|
+
if (this._inputSects) {
|
660
|
+
var sect = this._inputSects[0]; // TODO: Handle multi-grids
|
661
|
+
|
662
|
+
var cell = sect.getCell(colIndex, 0);
|
663
|
+
|
664
|
+
if (cell && cell.getElement()) {
|
665
|
+
return cell.getContent();
|
666
|
+
}
|
667
|
+
}
|
668
|
+
|
669
|
+
return null;
|
670
|
+
};
|
671
|
+
/** Clear input UI and remove all filters from the specified column
|
672
|
+
* @public
|
673
|
+
* @param {(null|number)=} colIndex=null clear filter input at specific colIndex, if null then all input will be clear.
|
674
|
+
*/
|
675
|
+
|
676
|
+
|
677
|
+
FilterInputPlugin.prototype.removeColumnFilters = function (colIndex) {
|
678
|
+
var sect = this._inputSects && this._inputSects[0]; // TODO: Handle multi-grids
|
679
|
+
|
680
|
+
if (sect) {
|
681
|
+
if (colIndex != null) {
|
682
|
+
this.updateUI(colIndex, '');
|
683
|
+
} else {
|
684
|
+
var count = this.getColumnCount();
|
685
|
+
|
686
|
+
for (var index = 0; index < count; index++) {
|
687
|
+
this.updateUI(index, '');
|
688
|
+
}
|
689
|
+
}
|
690
|
+
}
|
691
|
+
|
692
|
+
this._freezeInputValue = true;
|
693
|
+
|
694
|
+
this._filterProc.removeColumnFilters(colIndex);
|
695
|
+
|
696
|
+
this._freezeInputValue = false;
|
697
|
+
};
|
698
|
+
/** Alias to {@link FilterInputPlugin#removeColumnFilters} Clear input UI and remove all filters from the specified column
|
699
|
+
* @public
|
700
|
+
* @function
|
701
|
+
* @param {(null|number)=} colIndex=null clear filter input at specific colIndex, if null then all input will be clear.
|
702
|
+
*/
|
703
|
+
|
704
|
+
|
705
|
+
FilterInputPlugin.prototype.removeColumnFilter = FilterInputPlugin.prototype.removeColumnFilters;
|
706
|
+
/** Force filtering for every column
|
707
|
+
* @public
|
708
|
+
* @param {number=} delayMs=0 Set delay in millisecond to avoid repeatedly filtering
|
709
|
+
*/
|
710
|
+
|
711
|
+
FilterInputPlugin.prototype.refresh = function (delayMs) {
|
712
|
+
if (delayMs) {
|
713
|
+
if (!this._refreshTimer) {
|
714
|
+
this._refreshTimer = setTimeout(this.refresh, delayMs);
|
715
|
+
}
|
716
|
+
|
717
|
+
return;
|
718
|
+
}
|
719
|
+
|
720
|
+
this._refreshTimer = 0;
|
721
|
+
|
722
|
+
if (this._filterProc) {
|
723
|
+
this._filterProc.refresh();
|
724
|
+
}
|
725
|
+
};
|
726
|
+
/** Change filter logic or context
|
727
|
+
* @public
|
728
|
+
* @param {number} colIndex
|
729
|
+
* @param {Function} func
|
730
|
+
* @param {*=} ctx Context object that will be provided as the first parameter of the filter function
|
731
|
+
*/
|
732
|
+
|
733
|
+
|
734
|
+
FilterInputPlugin.prototype.setFilterLogic = function (colIndex, func, ctx) {
|
735
|
+
if (colIndex < 0) {
|
736
|
+
return;
|
737
|
+
}
|
738
|
+
|
739
|
+
var option = this._newExtColumnOption(colIndex);
|
740
|
+
|
741
|
+
var inputText = option.inputText;
|
742
|
+
|
743
|
+
if (func) {
|
744
|
+
if (ctx != null) {
|
745
|
+
option._filterArguments = ctx; // WARNING: This replaces all existing argument
|
746
|
+
}
|
747
|
+
} else {
|
748
|
+
func = null;
|
749
|
+
}
|
750
|
+
|
751
|
+
option._comparingLogic = func;
|
752
|
+
|
753
|
+
if (inputText) {
|
754
|
+
this.filterColumn(colIndex, inputText);
|
755
|
+
}
|
756
|
+
};
|
757
|
+
/** Force filtering for a single column by changing filtering text
|
758
|
+
* @public
|
759
|
+
* @param {number} colIndex
|
760
|
+
* @param {string} text
|
761
|
+
*/
|
762
|
+
|
763
|
+
|
764
|
+
FilterInputPlugin.prototype.filterColumn = function (colIndex, text) {
|
765
|
+
var option = this._updateColumnOption(colIndex, text);
|
766
|
+
|
767
|
+
if (!option) {
|
768
|
+
return;
|
769
|
+
} // This is because we need to toggle the icon
|
770
|
+
|
771
|
+
|
772
|
+
this._setColumnFilter(colIndex, option);
|
773
|
+
};
|
774
|
+
/** @private
|
775
|
+
* @param {number} colIndex
|
776
|
+
* @param {Object} filterOptions
|
777
|
+
*/
|
778
|
+
|
779
|
+
|
780
|
+
FilterInputPlugin.prototype._setColumnFilter = function (colIndex, filterOptions) {
|
781
|
+
var proc = this._filterProc;
|
782
|
+
|
783
|
+
if (proc) {
|
784
|
+
this._freezeInputValue = true;
|
785
|
+
|
786
|
+
if (proc.hasColumnFilter()) {
|
787
|
+
// TODO: There should be a way to get column filters
|
788
|
+
proc.removeColumnFilters(colIndex); // TODO: this is slow
|
789
|
+
}
|
790
|
+
|
791
|
+
if (filterOptions._comparingLogic && filterOptions.inputText) {
|
792
|
+
var columnFilter = filterOptions._columnFilter;
|
793
|
+
|
794
|
+
if (!columnFilter) {
|
795
|
+
columnFilter = this._realTimeGrid ? FilterInputPlugin._rtCompareRow : FilterInputPlugin._compareRow;
|
796
|
+
columnFilter = filterOptions._columnFilter = columnFilter.bind(null, filterOptions);
|
797
|
+
}
|
798
|
+
|
799
|
+
proc.addColumnFilter(colIndex, columnFilter);
|
800
|
+
}
|
801
|
+
|
802
|
+
this._freezeInputValue = false;
|
803
|
+
}
|
804
|
+
};
|
805
|
+
/** @private
|
806
|
+
* @param {Object=} e
|
807
|
+
*/
|
808
|
+
|
809
|
+
|
810
|
+
FilterInputPlugin.prototype._onInputChanged = function (e) {
|
811
|
+
FilterInputPlugin._stopPropagation(e);
|
812
|
+
|
813
|
+
var host = this.getRelativeGrid(e);
|
814
|
+
|
815
|
+
if (!host) {
|
816
|
+
return;
|
817
|
+
}
|
818
|
+
|
819
|
+
var pos = host.getRelativePosition(e);
|
820
|
+
var colIndex = pos.colIndex;
|
821
|
+
var input =
|
822
|
+
/** @type{Element} */
|
823
|
+
e.currentTarget; // If selected No Filter option - remove select filter
|
824
|
+
|
825
|
+
if (input.value === "No Filter" && input.tagName.indexOf("SELECT") >= 0) {
|
826
|
+
input.value = null;
|
827
|
+
}
|
828
|
+
|
829
|
+
this.filterColumn(colIndex, input.value);
|
830
|
+
};
|
831
|
+
/** @private
|
832
|
+
* @param {Object=} e
|
833
|
+
* @description WORKAROUND:: set pointer events none to ef-select when options popup opened.
|
834
|
+
* this will make ef-select can close popup when click at ef-select
|
835
|
+
*/
|
836
|
+
|
837
|
+
|
838
|
+
FilterInputPlugin.prototype._onOpenedChanged = function (e) {
|
839
|
+
if (e.detail.value) {
|
840
|
+
//open
|
841
|
+
e.currentTarget.style.setProperty('pointer-events', 'none');
|
842
|
+
} else {
|
843
|
+
//close
|
844
|
+
e.currentTarget.style.removeProperty('pointer-events');
|
845
|
+
}
|
846
|
+
};
|
847
|
+
/** @private
|
848
|
+
* @param {Object=} e
|
849
|
+
*/
|
850
|
+
|
851
|
+
|
852
|
+
FilterInputPlugin._stopPropagation = function (e) {
|
853
|
+
if (e) {
|
854
|
+
e.stopPropagation();
|
855
|
+
}
|
856
|
+
};
|
857
|
+
/** @private
|
858
|
+
* @function
|
859
|
+
* @param {Object} filterOptions
|
860
|
+
* @param {Object} rowData
|
861
|
+
* @param {string|number} rid
|
862
|
+
* @return {boolean}
|
863
|
+
*/
|
864
|
+
|
865
|
+
|
866
|
+
FilterInputPlugin._compareRow = function (filterOptions, rowData, rid) {
|
867
|
+
return filterOptions._comparingLogic(filterOptions._filterArguments, rowData);
|
868
|
+
};
|
869
|
+
/** @private
|
870
|
+
* @function
|
871
|
+
* @param {Object} filterOptions
|
872
|
+
* @param {Object} rowData
|
873
|
+
* @param {string|number} rid
|
874
|
+
* @return {boolean}
|
875
|
+
*/
|
876
|
+
|
877
|
+
|
878
|
+
FilterInputPlugin._rtCompareRow = function (filterOptions, rowData, rid) {
|
879
|
+
return filterOptions._comparingLogic(filterOptions._filterArguments, rowData["ROW_DEF"].getRowData());
|
880
|
+
};
|
881
|
+
/** Default Filter Logic
|
882
|
+
* @private
|
883
|
+
* @function
|
884
|
+
* @param {Object} e Filter argument
|
885
|
+
* @param {Object} rowData
|
886
|
+
* @return {boolean}
|
887
|
+
*/
|
888
|
+
|
889
|
+
|
890
|
+
FilterInputPlugin._containingFilter = function (e, rowData) {
|
891
|
+
var str = e.lowerCasedText || e.inputText;
|
892
|
+
var eventType = e.input && e.input.type;
|
893
|
+
|
894
|
+
if (str) {
|
895
|
+
var data = rowData[e.field];
|
896
|
+
|
897
|
+
if (data != null) {
|
898
|
+
var dataStr;
|
899
|
+
|
900
|
+
if (typeof data != "string") {
|
901
|
+
if (data instanceof Date) {
|
902
|
+
dataStr = data.toDateString().toLowerCase();
|
903
|
+
} else {
|
904
|
+
dataStr = data + "";
|
905
|
+
}
|
906
|
+
} else if (data) {
|
907
|
+
dataStr = data.toLowerCase();
|
908
|
+
}
|
909
|
+
|
910
|
+
if (dataStr) {
|
911
|
+
if (eventType === "number") {
|
912
|
+
// Custom check if type is number
|
913
|
+
return Number(dataStr) === Number(str);
|
914
|
+
} else {
|
915
|
+
// Normal check if type is not a number
|
916
|
+
return dataStr.indexOf(str) >= 0;
|
917
|
+
}
|
918
|
+
}
|
919
|
+
}
|
920
|
+
|
921
|
+
return false;
|
922
|
+
}
|
923
|
+
|
924
|
+
return true;
|
925
|
+
};
|
926
|
+
|
927
|
+
export default FilterInputPlugin;
|
928
|
+
export { FilterInputPlugin, FilterInputPlugin as FilterInput, FilterInputPlugin as FilterInputExtension };
|