@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,1027 @@
|
|
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
|
+
|
7
|
+
/** @typedef {Object} FilterInputPlugin~GridColumn
|
8
|
+
* @description FilterInputPlugin options available in each individual grid's column
|
9
|
+
* @property {FilterInputPlugin~ColumnOptions=} filterInput=null
|
10
|
+
*/
|
11
|
+
|
12
|
+
/** @typedef {(Object|boolean)} FilterInputPlugin~ColumnOptions
|
13
|
+
* @description FilterInputPlugin options available in "filterInput" property on grid's column
|
14
|
+
* @property {Function=} defaultLogic=null Logic for filtering
|
15
|
+
* @property {Function=} filterLogic=null Alias to `defaultLogic`
|
16
|
+
* @property {boolean=} disabled=false Disable UI
|
17
|
+
* @property {string=} placeholder="" Placeholder text inside the input
|
18
|
+
* @property {string=} type="text" Type of UI. Available types are "number", "multiselect" ,"select", "dropdown", "date"
|
19
|
+
* @property {Array=} entries Entries of dropdown filters when type is "select"
|
20
|
+
* @property {*=} defaultValue Default value of input filter
|
21
|
+
* @property {string=} trigger="keyup" Available types of trigger are `false | ""` (no trigger) , `"keyup"` (default) , `"enter"` (on enter key *only available for text type)
|
22
|
+
*/
|
23
|
+
|
24
|
+
/** @typedef {Object} FilterInputPlugin~Options
|
25
|
+
* @description FilterInputPlugin options available in main grid configuration under `filterInput` property
|
26
|
+
* @property {Function=} inputCreated=null Handler executed after filter input is created
|
27
|
+
* @property {string=} trigger="keyup" Available types of trigger are `false | ""` (no trigger) , `"keyup"` (default) , `"enter"` (on enter key *only available for text type)
|
28
|
+
*/
|
29
|
+
|
30
|
+
/** @callback {Function} FilterInputPlugin~FilterLogic
|
31
|
+
* @description Logic used to filter in/out on each row
|
32
|
+
* @property {Object} e Object contains all related information provided by the extension
|
33
|
+
* @property {string=} e.inputText Text for filter
|
34
|
+
* @property {Element} e.input Input element
|
35
|
+
* @property {string} e.field Field of the column being filtered
|
36
|
+
* @property {Object} rowData Row Data of the filtered row
|
37
|
+
*/
|
38
|
+
|
39
|
+
/** @event FilterInputPlugin#inputCreated
|
40
|
+
* @description `inputCreated` fired on each creation of filter input
|
41
|
+
* @type {Object}
|
42
|
+
* @property {Element} input Input element
|
43
|
+
* @property {Element} cell
|
44
|
+
* @property {number} colIndex
|
45
|
+
* @property {number|null} colId
|
46
|
+
* @property {number} rowIndex
|
47
|
+
* @property {Object} grid core grid object
|
48
|
+
* @property {Object} section Section(ILayoutGrid) contains all of the filter inputs
|
49
|
+
*/
|
50
|
+
|
51
|
+
/** @private
|
52
|
+
* @param {string} str
|
53
|
+
* @return {string}
|
54
|
+
*/
|
55
|
+
function convertToLowerCase(str) {
|
56
|
+
if(typeof str === "string") {
|
57
|
+
return str.toLowerCase();
|
58
|
+
}
|
59
|
+
return "";
|
60
|
+
}
|
61
|
+
|
62
|
+
/** @constructor
|
63
|
+
* @extends {GridPlugin}
|
64
|
+
* @param {FilterInputPlugin~Options=} options
|
65
|
+
*/
|
66
|
+
var FilterInputPlugin = function (options) {
|
67
|
+
this._onInputChanged = this._onInputChanged.bind(this);
|
68
|
+
this._onOpenedChanged = this._onOpenedChanged.bind(this);
|
69
|
+
this._onDateChanged = this._onDateChanged.bind(this);
|
70
|
+
this._onPostDataSourceChanged = this._onPostDataSourceChanged.bind(this);
|
71
|
+
this._onColumnAdded = this._onColumnAdded.bind(this);
|
72
|
+
this._onRowFilteringRetrieved = this._onRowFilteringRetrieved.bind(this);
|
73
|
+
this._onRowFilteringFailed = this._onRowFilteringFailed.bind(this);
|
74
|
+
this._onColumnFilterFailed = this._onColumnFilterFailed.bind(this);
|
75
|
+
this.refresh = this.refresh.bind(this);
|
76
|
+
this._updateUIs = this._updateUIs.bind(this);
|
77
|
+
|
78
|
+
this._hosts = [];
|
79
|
+
if(options) {
|
80
|
+
this.config({"filterInput": options});
|
81
|
+
}
|
82
|
+
};
|
83
|
+
Ext.inherits(FilterInputPlugin, GridPlugin);
|
84
|
+
|
85
|
+
/** Filter Processor used to perform actual filtering (This extension provides only UIs).
|
86
|
+
* @type {*}
|
87
|
+
* @private
|
88
|
+
*/
|
89
|
+
FilterInputPlugin.prototype._filterProc = null;
|
90
|
+
/** @type {Object}
|
91
|
+
* @private
|
92
|
+
*/
|
93
|
+
FilterInputPlugin.prototype._gridConfig = null;
|
94
|
+
|
95
|
+
/** Array of grid sections
|
96
|
+
* @type {Array.<Object>}
|
97
|
+
* @private
|
98
|
+
*/
|
99
|
+
FilterInputPlugin.prototype._inputSects = null;
|
100
|
+
|
101
|
+
/** @type {number}
|
102
|
+
* @private
|
103
|
+
*/
|
104
|
+
FilterInputPlugin.prototype._refreshTimer = 0;
|
105
|
+
/** @type {number}
|
106
|
+
* @private
|
107
|
+
*/
|
108
|
+
FilterInputPlugin.prototype._uiTimer = 0;
|
109
|
+
/** @type {boolean}
|
110
|
+
* @private
|
111
|
+
*/
|
112
|
+
FilterInputPlugin.prototype._freezeInputValue = false;
|
113
|
+
/** @type {string|boolean}
|
114
|
+
* @private
|
115
|
+
*/
|
116
|
+
FilterInputPlugin.prototype._inputTrigger = "keyup";
|
117
|
+
|
118
|
+
/** @public
|
119
|
+
* @return {string}
|
120
|
+
*/
|
121
|
+
FilterInputPlugin.prototype.getName = function () {
|
122
|
+
return "FilterInputPlugin"; // Read Only
|
123
|
+
};
|
124
|
+
/** @public
|
125
|
+
* @param {Object} host core grid object
|
126
|
+
* @param {Object=} options
|
127
|
+
*/
|
128
|
+
FilterInputPlugin.prototype.initialize = function (host, options) {
|
129
|
+
if(this._hosts.indexOf(host) >= 0) { return; }
|
130
|
+
this._hosts.push(host);
|
131
|
+
|
132
|
+
host.listen("postDataSourceChanged", this._onPostDataSourceChanged);
|
133
|
+
host.listen("columnAdded", this._onColumnAdded);
|
134
|
+
|
135
|
+
this.config(options);
|
136
|
+
// In case of lazy loading
|
137
|
+
// var title = host.getSection("title");
|
138
|
+
// if(title) {
|
139
|
+
// this._onPostDataSourceChanged();
|
140
|
+
// }
|
141
|
+
};
|
142
|
+
/** @public
|
143
|
+
* @param {Object} host core grid object
|
144
|
+
*/
|
145
|
+
FilterInputPlugin.prototype.unload = function (host) {
|
146
|
+
var at = this._hosts.indexOf(host);
|
147
|
+
if(at < 0) { return; }
|
148
|
+
|
149
|
+
host.unlisten("postDataSourceChanged", this._onPostDataSourceChanged);
|
150
|
+
this._hosts.splice(at, 1);
|
151
|
+
if(this._inputSects && at < this._inputSects.length) {
|
152
|
+
this._inputSects.splice(at, 1);
|
153
|
+
}
|
154
|
+
if(!this._hosts.length) {
|
155
|
+
this._compositeGrid = this._realTimeGrid = this._filterBuilder = null;
|
156
|
+
this._filterProc = this._gridConfig = this._inputSects = null;
|
157
|
+
|
158
|
+
if(this._refreshTimer) {
|
159
|
+
clearTimeout(this._refreshTimer);
|
160
|
+
this._refreshTimer = 0;
|
161
|
+
}
|
162
|
+
if(this._uiTimer) {
|
163
|
+
clearTimeout(this._uiTimer);
|
164
|
+
this._uiTimer = 0;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
};
|
168
|
+
|
169
|
+
/** Prevent built-in config
|
170
|
+
* @public
|
171
|
+
* @ignore
|
172
|
+
* @param {string} optionName
|
173
|
+
* @param {Object} options
|
174
|
+
* @return {*}
|
175
|
+
*/
|
176
|
+
FilterInputPlugin.prototype.beforeProcessOption = function(optionName, options) {
|
177
|
+
if (optionName === 'filterRow' || optionName === 'FilterRow') {
|
178
|
+
return false; // eslint-disable-line
|
179
|
+
}
|
180
|
+
return; // eslint-disable-line
|
181
|
+
};
|
182
|
+
/** @private
|
183
|
+
* @param {string} optionName
|
184
|
+
* @param {Object} options
|
185
|
+
*/
|
186
|
+
FilterInputPlugin.prototype._afterInit = function() {
|
187
|
+
// Retrieve RowFilteringPlugin is async operation
|
188
|
+
// onPostDataSourceChange has logic to apply default filter, which need to be done after RowFilteringPlugin is loaded
|
189
|
+
this._requestPlugin(this._hosts[0], "RowFilteringPlugin", this._gridConfig)
|
190
|
+
.then(this._onRowFilteringRetrieved)
|
191
|
+
.catch(this._onRowFilteringFailed)
|
192
|
+
.finally(this._onPostDataSourceChanged);
|
193
|
+
};
|
194
|
+
|
195
|
+
/** @public
|
196
|
+
* @param {Object=} options
|
197
|
+
*/
|
198
|
+
FilterInputPlugin.prototype.config = function (options) {
|
199
|
+
if(!options) { return; }
|
200
|
+
this._gridConfig = options; // For loading dependency
|
201
|
+
|
202
|
+
var filterInputOptions = options["filterInput"];
|
203
|
+
this.addListener(filterInputOptions, "inputCreated");
|
204
|
+
|
205
|
+
if(filterInputOptions){
|
206
|
+
if(filterInputOptions["trigger"] != null){
|
207
|
+
this._inputTrigger = filterInputOptions["trigger"];
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
var columns = options["columns"];
|
212
|
+
var len = columns ? columns.length : 0;
|
213
|
+
for(var c = 0; c < len; ++c) {
|
214
|
+
this._retrieveColumnOption(c, columns[c]);
|
215
|
+
}
|
216
|
+
};
|
217
|
+
|
218
|
+
/** Get a current state of grid and extension config
|
219
|
+
* @public
|
220
|
+
* @param {Object=} out_obj
|
221
|
+
* @returns {!Object}
|
222
|
+
*/
|
223
|
+
FilterInputPlugin.prototype.getConfigObject = function (out_obj) {
|
224
|
+
var obj = out_obj || {};
|
225
|
+
|
226
|
+
var columns = obj.columns;
|
227
|
+
if (!columns) {
|
228
|
+
columns = obj.columns = [];
|
229
|
+
}
|
230
|
+
|
231
|
+
var len = this.getColumnCount();
|
232
|
+
for(var i = 0; i < len; ++i) {
|
233
|
+
var col = columns[i];
|
234
|
+
if (!col) {
|
235
|
+
col = columns[i] = {};
|
236
|
+
}
|
237
|
+
|
238
|
+
var filterInput = col.filterInput = {};
|
239
|
+
|
240
|
+
var opt = this._getExtColumnOption(i);
|
241
|
+
|
242
|
+
if (!opt) { continue; }
|
243
|
+
if (opt.disabled != null) {
|
244
|
+
filterInput.disabled = opt.disabled;
|
245
|
+
}
|
246
|
+
if (opt.placeholder != null) {
|
247
|
+
filterInput.placeholder = opt.placeholder;
|
248
|
+
}
|
249
|
+
if (opt.type != null) {
|
250
|
+
filterInput.type = opt.type;
|
251
|
+
}
|
252
|
+
if (opt.entries != null) {
|
253
|
+
filterInput.entries = opt.entries;
|
254
|
+
}
|
255
|
+
|
256
|
+
if (opt.defaultValue != null) {
|
257
|
+
filterInput.defaultValue = opt.defaultValue;
|
258
|
+
}
|
259
|
+
|
260
|
+
if (opt.trigger != null) {
|
261
|
+
filterInput.trigger = opt.trigger;
|
262
|
+
}
|
263
|
+
}
|
264
|
+
return obj;
|
265
|
+
};
|
266
|
+
|
267
|
+
/** @private
|
268
|
+
* @param {*} proc Filter Processor
|
269
|
+
*/
|
270
|
+
FilterInputPlugin.prototype._onRowFilteringRetrieved = function (proc) {
|
271
|
+
this._gridConfig = null;
|
272
|
+
if(proc) {
|
273
|
+
this._filterProc = proc;
|
274
|
+
this.refresh();
|
275
|
+
}
|
276
|
+
};
|
277
|
+
/** @private
|
278
|
+
* @param {*} proc Filter Processor
|
279
|
+
* @returns {*}
|
280
|
+
*/
|
281
|
+
FilterInputPlugin.prototype._onRowFilteringFailed = function () {
|
282
|
+
return this._requestPlugin(this._hosts[0], "ColumnFilterPlugin", this._gridConfig)
|
283
|
+
.then(this._onRowFilteringRetrieved)
|
284
|
+
.catch(this._onColumnFilterFailed); // Gracefully resolve if we fail this time
|
285
|
+
};
|
286
|
+
/** @private */
|
287
|
+
FilterInputPlugin.prototype._onColumnFilterFailed = function () {
|
288
|
+
this._gridConfig = null;
|
289
|
+
};
|
290
|
+
|
291
|
+
/** @private
|
292
|
+
* @param {Object=} e
|
293
|
+
*/
|
294
|
+
FilterInputPlugin.prototype._onColumnAdded = function (e) {
|
295
|
+
if(e.context && e.colIndex != null) {
|
296
|
+
this._retrieveColumnOption(e.colIndex, e.context);
|
297
|
+
}
|
298
|
+
this._requestUIUpdate();
|
299
|
+
};
|
300
|
+
|
301
|
+
/** @private */
|
302
|
+
FilterInputPlugin.prototype._requestUIUpdate = function () {
|
303
|
+
if(!this._uiTimer) { // HACK: To wait for other plugins receive columnAdded and avoid removing the wrong column filter
|
304
|
+
this._uiTimer = setTimeout(this._updateUIs, 50);
|
305
|
+
}
|
306
|
+
};
|
307
|
+
/** @private */
|
308
|
+
FilterInputPlugin.prototype._updateUIs = function () {
|
309
|
+
this._uiTimer = 0;
|
310
|
+
if(this._inputSects) {
|
311
|
+
var len = this._inputSects.length;
|
312
|
+
for(var i = 0; i < len; ++i) {
|
313
|
+
this._createColumnInputs(this._inputSects[i], this._hosts[i]);
|
314
|
+
}
|
315
|
+
}
|
316
|
+
};
|
317
|
+
/** @private
|
318
|
+
* @param {Object=} e
|
319
|
+
*/
|
320
|
+
FilterInputPlugin.prototype._onPostDataSourceChanged = function (e) {
|
321
|
+
if(this._inputSects) { // TODO: Handle multiple hosts
|
322
|
+
return;
|
323
|
+
}
|
324
|
+
|
325
|
+
var len = this._hosts.length;
|
326
|
+
if (!len) {
|
327
|
+
return;
|
328
|
+
}
|
329
|
+
|
330
|
+
this._inputSects = [];
|
331
|
+
|
332
|
+
var rowHeight = window.getComputedStyle(this._hosts[0].getElement()).getPropertyValue('--grid-row-height'); // TODO: This should be retrieved from core grid
|
333
|
+
if (rowHeight) {
|
334
|
+
rowHeight = parseInt(rowHeight, 10);
|
335
|
+
}
|
336
|
+
|
337
|
+
var host;
|
338
|
+
|
339
|
+
for(var i = 0; i < len; ++i) {
|
340
|
+
host = this._hosts[i];
|
341
|
+
var titles = host.getAllSections("title");
|
342
|
+
var lastTitle = titles[titles.length - 1];
|
343
|
+
var at = lastTitle ? lastTitle.getIndex() + 1 : 0;
|
344
|
+
var section = this._inputSects[i] = host.addSectionAt(at, "title", "filterInputs");
|
345
|
+
|
346
|
+
if (rowHeight) {
|
347
|
+
section.setDefaultRowHeight(rowHeight);
|
348
|
+
}
|
349
|
+
|
350
|
+
section.enableClass("filter-inputs");
|
351
|
+
section.addRow(1);
|
352
|
+
}
|
353
|
+
|
354
|
+
if(!host.getVScrollStartIndex || host.getVScrollStartIndex() >= 0) {
|
355
|
+
host.freezeSection(at);
|
356
|
+
}
|
357
|
+
|
358
|
+
this._requestUIUpdate();
|
359
|
+
};
|
360
|
+
|
361
|
+
/** @private
|
362
|
+
* @param {Object=} e
|
363
|
+
*/
|
364
|
+
FilterInputPlugin.prototype._onDateChanged = function (e) {
|
365
|
+
var host = this.getRelativeGrid(e);
|
366
|
+
|
367
|
+
if(host) {
|
368
|
+
var pos = host.getRelativePosition(e);
|
369
|
+
var colIndex = pos.colIndex;
|
370
|
+
var dateObj = ElfDate.getDate(e.detail) || e.target.value;
|
371
|
+
// TODO: Date object should be used for filtering instead of string
|
372
|
+
var dateStr = dateObj ? dateObj.toDateString().substr(4) : "";
|
373
|
+
this.filterColumn(colIndex, dateStr);
|
374
|
+
}
|
375
|
+
};
|
376
|
+
|
377
|
+
/** @private
|
378
|
+
* @param {Object} section ILayoutGrid
|
379
|
+
* @param {Object} host core grid object
|
380
|
+
*/
|
381
|
+
FilterInputPlugin.prototype._createColumnInputs = function(section, host) {
|
382
|
+
var colCount = section.getColumnCount();
|
383
|
+
|
384
|
+
for(var c = 0; c < colCount; ++c) {
|
385
|
+
var cell = section.getCell(c, 0);
|
386
|
+
var elem = cell.getContent();
|
387
|
+
if(elem) {
|
388
|
+
continue;
|
389
|
+
}
|
390
|
+
cell.enableClass("no-sort"); // Prevent sorting
|
391
|
+
var colOpt = this._newExtColumnOption(c);
|
392
|
+
if(colOpt["disabled"]) {
|
393
|
+
continue;
|
394
|
+
}
|
395
|
+
elem = this._createFilterUI(colOpt);
|
396
|
+
|
397
|
+
cell.setContent(elem);
|
398
|
+
|
399
|
+
var arg = colOpt._filterArguments = {};
|
400
|
+
arg.input = elem;
|
401
|
+
arg.field = this._getField(c);
|
402
|
+
arg.cell = cell;
|
403
|
+
arg.grid = host;
|
404
|
+
|
405
|
+
var inputArgs = {
|
406
|
+
"input": elem,
|
407
|
+
"cell": cell,
|
408
|
+
"colIndex": c,
|
409
|
+
"rowIndex": 0,
|
410
|
+
"grid": host,
|
411
|
+
"section": section
|
412
|
+
};
|
413
|
+
if (this._compositeGrid) {
|
414
|
+
inputArgs['colId'] = this._compositeGrid.getColumnId(c);
|
415
|
+
}
|
416
|
+
|
417
|
+
this._dispatch("inputCreated", inputArgs);
|
418
|
+
|
419
|
+
// To apply default filter, colOpt._filterArguments needs to be initailzed
|
420
|
+
var defaultValue = colOpt.defaultValue;
|
421
|
+
if(defaultValue){
|
422
|
+
var elemType = convertToLowerCase(colOpt.type);
|
423
|
+
if(elemType === "date"){
|
424
|
+
var dateObj = ElfDate.from(defaultValue);
|
425
|
+
defaultValue = dateObj ? dateObj.toDateString().substr(4) : "";
|
426
|
+
}
|
427
|
+
|
428
|
+
if(elemType === "multiselect"){
|
429
|
+
var textMap = FilterInputPlugin._createMapObject(defaultValue);
|
430
|
+
this.filterColumn(c, "", textMap);
|
431
|
+
} else {
|
432
|
+
this.filterColumn(c, defaultValue);
|
433
|
+
}
|
434
|
+
}
|
435
|
+
}
|
436
|
+
};
|
437
|
+
|
438
|
+
/** @type {Object.<string, string>=}
|
439
|
+
* @private
|
440
|
+
*/
|
441
|
+
FilterInputPlugin._uiMap = {
|
442
|
+
number: "ef-input",
|
443
|
+
select: "ef-select",
|
444
|
+
multiselect: "ef-combo-box",
|
445
|
+
dropdown: "ef-select",
|
446
|
+
date: "ef-datetime-picker"
|
447
|
+
};
|
448
|
+
|
449
|
+
/** @private
|
450
|
+
* @param {Object} colOpt
|
451
|
+
* @return {!Element}
|
452
|
+
*/
|
453
|
+
FilterInputPlugin.prototype._createFilterUI = function(colOpt) {
|
454
|
+
var elemType = convertToLowerCase(colOpt.type);
|
455
|
+
var defaultValue = colOpt.defaultValue;
|
456
|
+
var elemTrigger = colOpt.trigger != null ? colOpt.trigger : this._inputTrigger;
|
457
|
+
var uiTag = FilterInputPlugin._uiMap[elemType] || "input";
|
458
|
+
if (uiTag == "ef-input") {
|
459
|
+
if(ElfUtil.hasComponent("ef-number-field")) {
|
460
|
+
uiTag = "ef-number-field";
|
461
|
+
}
|
462
|
+
} else if (uiTag == "input") {
|
463
|
+
if (ElfUtil.hasComponent("ef-search-field")) {
|
464
|
+
uiTag = "ef-search-field";
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
var elem = document.createElement(uiTag);
|
469
|
+
elem.className = "filter-input";
|
470
|
+
elem.style.width = "100%";
|
471
|
+
elem.style.margin = "0";
|
472
|
+
elem.setAttribute("aria-label", "column filtering");
|
473
|
+
var placeholder = colOpt["placeholder"];
|
474
|
+
if(placeholder) {
|
475
|
+
elem.setAttribute("placeholder", placeholder);
|
476
|
+
}
|
477
|
+
|
478
|
+
// Prevent trigering other actions when a user interacts with filter input
|
479
|
+
elem.addEventListener("keydown", FilterInputPlugin._stopPropagation, false);
|
480
|
+
elem.addEventListener("click", FilterInputPlugin._stopPropagation, false);
|
481
|
+
|
482
|
+
switch(uiTag) {
|
483
|
+
case "ef-input":
|
484
|
+
elem.setAttribute("type", "number");
|
485
|
+
if(elemTrigger != false && elemTrigger != ""){
|
486
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
487
|
+
}
|
488
|
+
break;
|
489
|
+
case "ef-number-field":
|
490
|
+
if(elemTrigger != false && elemTrigger != ""){
|
491
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
492
|
+
}
|
493
|
+
break;
|
494
|
+
case "ef-select":
|
495
|
+
elem.data = CoralItems.create(colOpt.entries);
|
496
|
+
elem.addEventListener("opened-changed", this._onOpenedChanged, false);
|
497
|
+
if(elemTrigger != false && elemTrigger != ""){
|
498
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
499
|
+
}
|
500
|
+
break;
|
501
|
+
case "ef-combo-box":
|
502
|
+
elem.multiple = true;
|
503
|
+
elem.data = CoralItems.create(colOpt.entries);
|
504
|
+
if(elemTrigger != false && elemTrigger != ""){
|
505
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
506
|
+
}
|
507
|
+
break;
|
508
|
+
case "ef-datetime-picker":
|
509
|
+
if(elemTrigger != false && elemTrigger != ""){
|
510
|
+
elem.addEventListener("value-changed", this._onDateChanged, false);
|
511
|
+
}
|
512
|
+
break;
|
513
|
+
case "ef-search-field":
|
514
|
+
if(elemTrigger != false && elemTrigger != ""){
|
515
|
+
if(elemTrigger == "enter"){
|
516
|
+
var plugin = this;
|
517
|
+
elem.addEventListener("keyup", function(e){
|
518
|
+
if(e.key == "Enter"){
|
519
|
+
plugin._onInputChanged(e);
|
520
|
+
}
|
521
|
+
}, false);
|
522
|
+
} else {
|
523
|
+
elem.addEventListener("value-changed", this._onInputChanged, false);
|
524
|
+
}
|
525
|
+
}
|
526
|
+
break;
|
527
|
+
default:
|
528
|
+
elem.setAttribute("type", "search");
|
529
|
+
if(elemTrigger != false && elemTrigger != ""){
|
530
|
+
if(elemTrigger == "enter"){
|
531
|
+
var fip = this;
|
532
|
+
elem.addEventListener("keyup", function(e){
|
533
|
+
if(e.key == "Enter"){
|
534
|
+
fip._onInputChanged(e);
|
535
|
+
}
|
536
|
+
}, false);
|
537
|
+
} else {
|
538
|
+
elem.addEventListener("keyup", this._onInputChanged, false);
|
539
|
+
}
|
540
|
+
}
|
541
|
+
break;
|
542
|
+
}
|
543
|
+
|
544
|
+
if(defaultValue){
|
545
|
+
if(elemType === "multiselect"){
|
546
|
+
elem.values = defaultValue;
|
547
|
+
} else {
|
548
|
+
elem.value = defaultValue;
|
549
|
+
}
|
550
|
+
}
|
551
|
+
|
552
|
+
return elem;
|
553
|
+
};
|
554
|
+
|
555
|
+
/** @private
|
556
|
+
* @param {number} colIndex
|
557
|
+
* @return {Object}
|
558
|
+
*/
|
559
|
+
FilterInputPlugin.prototype._getExtColumnOption = function(colIndex) {
|
560
|
+
return this._getColumnOption(colIndex, "filterInputOption") || null;
|
561
|
+
};
|
562
|
+
/** @private
|
563
|
+
* @param {number} colIndex
|
564
|
+
* @return {!Object}
|
565
|
+
*/
|
566
|
+
FilterInputPlugin.prototype._newExtColumnOption = function(colIndex) {
|
567
|
+
var colData = this._newColumnData(colIndex);
|
568
|
+
var option = colData["filterInputOption"];
|
569
|
+
if(!option) {
|
570
|
+
option = colData["filterInputOption"] = {};
|
571
|
+
option._comparingLogic = FilterInputPlugin._containingFilter;
|
572
|
+
}
|
573
|
+
return option;
|
574
|
+
};
|
575
|
+
/** @private
|
576
|
+
* @param {number} colIndex
|
577
|
+
* @param {Object} colDef
|
578
|
+
*/
|
579
|
+
FilterInputPlugin.prototype._retrieveColumnOption = function(colIndex, colDef) {
|
580
|
+
var filterOption = colDef ? colDef["filterInput"] : null;
|
581
|
+
if(filterOption != null) {
|
582
|
+
var option = this._newExtColumnOption(colIndex);
|
583
|
+
if(filterOption) {
|
584
|
+
var elemType = convertToLowerCase(filterOption["type"]);
|
585
|
+
if(elemType) {
|
586
|
+
option["type"] = elemType;
|
587
|
+
}
|
588
|
+
|
589
|
+
var defaultLogic = filterOption["filterLogic"] || filterOption["defaultLogic"];
|
590
|
+
if(defaultLogic != null) {
|
591
|
+
if(typeof defaultLogic === "function") {
|
592
|
+
option._comparingLogic = defaultLogic;
|
593
|
+
} else if(!defaultLogic) {
|
594
|
+
option._comparingLogic = null;
|
595
|
+
}
|
596
|
+
}
|
597
|
+
if(elemType === "multiselect" && option._comparingLogic === FilterInputPlugin._containingFilter){
|
598
|
+
option._comparingLogic = FilterInputPlugin._multiSelectionFilter;
|
599
|
+
}
|
600
|
+
|
601
|
+
var disabled = filterOption["disabled"];
|
602
|
+
if(disabled != null) {
|
603
|
+
option["disabled"] = disabled ? true : false;
|
604
|
+
}
|
605
|
+
var placeholder = filterOption["placeholder"];
|
606
|
+
if(typeof placeholder == "string") {
|
607
|
+
option["placeholder"] = placeholder;
|
608
|
+
}
|
609
|
+
|
610
|
+
var entries = filterOption["entries"];
|
611
|
+
if (Array.isArray(entries)) {
|
612
|
+
// Add Clear filter option
|
613
|
+
if(elemType === "select") {
|
614
|
+
entries.push({
|
615
|
+
label: 'No Filter',
|
616
|
+
value: 'No Filter'
|
617
|
+
});
|
618
|
+
}
|
619
|
+
option["entries"] = entries;
|
620
|
+
}
|
621
|
+
|
622
|
+
var defaultValue = filterOption["defaultValue"];
|
623
|
+
if(defaultValue) {
|
624
|
+
option["defaultValue"] = defaultValue;
|
625
|
+
}
|
626
|
+
|
627
|
+
var trigger = filterOption["trigger"];
|
628
|
+
if(typeof trigger == "string" || trigger == false) {
|
629
|
+
option["trigger"] = trigger;
|
630
|
+
}
|
631
|
+
} else {
|
632
|
+
option["disabled"] = true;
|
633
|
+
}
|
634
|
+
} else if(this._getExtColumnOption(colIndex)) {
|
635
|
+
// Reset everything to default
|
636
|
+
this._getColumnData(colIndex)["filterInputOption"] = null;
|
637
|
+
}
|
638
|
+
};
|
639
|
+
|
640
|
+
/** @public
|
641
|
+
* @ignore
|
642
|
+
* @param {number} colIndex
|
643
|
+
* @param {string} text
|
644
|
+
*/
|
645
|
+
FilterInputPlugin.prototype.updateUI = function (colIndex, text) {
|
646
|
+
if (this._freezeInputValue) return;
|
647
|
+
|
648
|
+
var input = this.getColumnInput(colIndex);
|
649
|
+
if (input) {
|
650
|
+
input.value = text;
|
651
|
+
}
|
652
|
+
|
653
|
+
this._updateColumnOption(colIndex, text);
|
654
|
+
};
|
655
|
+
|
656
|
+
/** @private
|
657
|
+
* @param {number} colIndex
|
658
|
+
* @param {string|number} text
|
659
|
+
* @param {Object=} textMap
|
660
|
+
* @return {Object} Column option
|
661
|
+
*/
|
662
|
+
FilterInputPlugin.prototype._updateColumnOption = function (colIndex, text, textMap) {
|
663
|
+
var option = this._getExtColumnOption(colIndex);
|
664
|
+
if (!option) { return null; }
|
665
|
+
|
666
|
+
var inputText = "";
|
667
|
+
if (text || text === 0) {
|
668
|
+
inputText = typeof text !== "string" ? text + "" : text;
|
669
|
+
}
|
670
|
+
var arg = option._filterArguments;
|
671
|
+
if (arg) {
|
672
|
+
arg.inputText = option.inputText = inputText;
|
673
|
+
arg.lowerCasedText = inputText.toLowerCase();
|
674
|
+
arg.colIndex = colIndex;
|
675
|
+
if(textMap && !Object.keys(textMap).length){
|
676
|
+
textMap = null;
|
677
|
+
}
|
678
|
+
arg.textMap = option.textMap = textMap;
|
679
|
+
}
|
680
|
+
return option;
|
681
|
+
};
|
682
|
+
|
683
|
+
/** @public
|
684
|
+
* @param {number} colIndex
|
685
|
+
* @return {Element} Input element
|
686
|
+
*/
|
687
|
+
FilterInputPlugin.prototype.getColumnInput = function(colIndex) {
|
688
|
+
if(this._inputSects) {
|
689
|
+
var sect = this._inputSects[0]; // TODO: Handle multi-grids
|
690
|
+
var cell = sect.getCell(colIndex, 0);
|
691
|
+
if(cell && cell.getElement()) {
|
692
|
+
return cell.getContent();
|
693
|
+
}
|
694
|
+
}
|
695
|
+
return null;
|
696
|
+
};
|
697
|
+
|
698
|
+
/** Clear input UI and remove all filters from the specified column
|
699
|
+
* @public
|
700
|
+
* @param {(null|number)=} colIndex=null clear filter input at specific colIndex, if null then all input will be clear.
|
701
|
+
*/
|
702
|
+
FilterInputPlugin.prototype.removeColumnFilters = function (colIndex) {
|
703
|
+
var sect = this._inputSects && this._inputSects[0]; // TODO: Handle multi-grids
|
704
|
+
if (sect) {
|
705
|
+
if (colIndex != null) {
|
706
|
+
this.updateUI(colIndex, '');
|
707
|
+
} else {
|
708
|
+
var count = this.getColumnCount();
|
709
|
+
for (var index = 0; index < count; index++) {
|
710
|
+
this.updateUI(index, '');
|
711
|
+
}
|
712
|
+
}
|
713
|
+
}
|
714
|
+
this._freezeInputValue = true;
|
715
|
+
this._filterProc.removeColumnFilters(colIndex);
|
716
|
+
this._freezeInputValue = false;
|
717
|
+
};
|
718
|
+
|
719
|
+
/** Alias to {@link FilterInputPlugin#removeColumnFilters} Clear input UI and remove all filters from the specified column
|
720
|
+
* @public
|
721
|
+
* @function
|
722
|
+
* @param {(null|number)=} colIndex=null clear filter input at specific colIndex, if null then all input will be clear.
|
723
|
+
*/
|
724
|
+
FilterInputPlugin.prototype.removeColumnFilter = FilterInputPlugin.prototype.removeColumnFilters;
|
725
|
+
|
726
|
+
/** @public
|
727
|
+
* @param {number} colIndex
|
728
|
+
* @param {*} value
|
729
|
+
*/
|
730
|
+
FilterInputPlugin.prototype.setInputValue = function(colIndex, value) {
|
731
|
+
var inputElem = this.getColumnInput(colIndex);
|
732
|
+
if(!inputElem){
|
733
|
+
return;
|
734
|
+
}
|
735
|
+
var colOpt = this._getExtColumnOption(colIndex);
|
736
|
+
var elemType = convertToLowerCase(colOpt.type);
|
737
|
+
|
738
|
+
var dateValue;
|
739
|
+
if(elemType === "date"){
|
740
|
+
var dateObj = ElfDate.from(value);
|
741
|
+
dateValue = dateObj ? dateObj.toDateString().substr(4) : "";
|
742
|
+
}
|
743
|
+
|
744
|
+
if(elemType === "multiselect"){
|
745
|
+
inputElem.values = value;
|
746
|
+
var textMap = FilterInputPlugin._createMapObject(value);
|
747
|
+
this.filterColumn(colIndex, "", textMap);
|
748
|
+
} else {
|
749
|
+
inputElem.value = value;
|
750
|
+
this.filterColumn(colIndex, elemType === "date" ? dateValue : value);
|
751
|
+
}
|
752
|
+
|
753
|
+
};
|
754
|
+
/** @public
|
755
|
+
* @param {number} colIndex
|
756
|
+
* @param {boolean=} disabled
|
757
|
+
*/
|
758
|
+
FilterInputPlugin.prototype.disableColumnInput = function(colIndex, disabled) {
|
759
|
+
var inputElem = this.getColumnInput(colIndex);
|
760
|
+
if(inputElem) {
|
761
|
+
disabled = disabled != null ? disabled : true;
|
762
|
+
if(disabled) {
|
763
|
+
inputElem.setAttribute("disabled", "");
|
764
|
+
} else {
|
765
|
+
inputElem.removeAttribute("disabled");
|
766
|
+
}
|
767
|
+
}
|
768
|
+
};
|
769
|
+
/** @public
|
770
|
+
* @ignore
|
771
|
+
* @param {number} colIndex
|
772
|
+
* @return {Object}
|
773
|
+
*/
|
774
|
+
FilterInputPlugin.prototype.getColumnFilter = function(colIndex) {
|
775
|
+
var proc = this._filterProc;
|
776
|
+
if(proc){
|
777
|
+
return proc.getColumnFilterState(colIndex);
|
778
|
+
}
|
779
|
+
return null;
|
780
|
+
};
|
781
|
+
/** @public
|
782
|
+
* @ignore
|
783
|
+
* @param {number} colIndex
|
784
|
+
* @return {Function}
|
785
|
+
*/
|
786
|
+
FilterInputPlugin.prototype.getFilterLogic = function(colIndex) {
|
787
|
+
var option = this._getExtColumnOption(colIndex);
|
788
|
+
return option._comparingLogic;
|
789
|
+
};
|
790
|
+
/** Force filtering for every column
|
791
|
+
* @public
|
792
|
+
* @param {number=} delayMs=0 Set delay in millisecond to avoid repeatedly filtering
|
793
|
+
*/
|
794
|
+
FilterInputPlugin.prototype.refresh = function(delayMs) {
|
795
|
+
if(delayMs) {
|
796
|
+
if(!this._refreshTimer) {
|
797
|
+
this._refreshTimer = setTimeout(this.refresh, delayMs);
|
798
|
+
}
|
799
|
+
return;
|
800
|
+
}
|
801
|
+
this._refreshTimer = 0;
|
802
|
+
|
803
|
+
if(this._filterProc) {
|
804
|
+
this._filterProc.refresh();
|
805
|
+
}
|
806
|
+
};
|
807
|
+
/** Change filter logic or context
|
808
|
+
* @public
|
809
|
+
* @param {number} colIndex
|
810
|
+
* @param {Function} func
|
811
|
+
* @param {*=} ctx Context object that will be provided as the first parameter of the filter function
|
812
|
+
*/
|
813
|
+
FilterInputPlugin.prototype.setFilterLogic = function(colIndex, func, ctx) {
|
814
|
+
if(colIndex < 0) { return; }
|
815
|
+
|
816
|
+
var option = this._newExtColumnOption(colIndex);
|
817
|
+
var inputText = option.inputText;
|
818
|
+
var textMap = option.textMap;
|
819
|
+
|
820
|
+
if(func) {
|
821
|
+
if(ctx != null) {
|
822
|
+
option._filterArguments = ctx; // WARNING: This replaces all existing argument
|
823
|
+
}
|
824
|
+
} else {
|
825
|
+
func = null;
|
826
|
+
}
|
827
|
+
option._comparingLogic = func;
|
828
|
+
if(inputText || textMap) {
|
829
|
+
this.filterColumn(colIndex, inputText, textMap);
|
830
|
+
}
|
831
|
+
};
|
832
|
+
|
833
|
+
/** Force filtering for a single column by changing filtering text
|
834
|
+
* @public
|
835
|
+
* @param {number} colIndex
|
836
|
+
* @param {string} text
|
837
|
+
* @param {Object=} textMap
|
838
|
+
*/
|
839
|
+
FilterInputPlugin.prototype.filterColumn = function (colIndex, text, textMap) {
|
840
|
+
var option = this._updateColumnOption(colIndex, text, textMap);
|
841
|
+
if (!option) { return; }
|
842
|
+
|
843
|
+
// This is because we need to toggle the icon
|
844
|
+
this._setColumnFilter(colIndex, option);
|
845
|
+
};
|
846
|
+
/** @private
|
847
|
+
* @param {number} colIndex
|
848
|
+
* @param {Object} filterOptions
|
849
|
+
*/
|
850
|
+
FilterInputPlugin.prototype._setColumnFilter = function(colIndex, filterOptions) {
|
851
|
+
var proc = this._filterProc;
|
852
|
+
if (proc) {
|
853
|
+
this._freezeInputValue = true;
|
854
|
+
if (proc.hasColumnFilter()) { // TODO: There should be a way to get column filters
|
855
|
+
proc.removeColumnFilters(colIndex); // TODO: this is slow
|
856
|
+
}
|
857
|
+
var hasFilterContent = filterOptions.inputText || filterOptions.textMap;
|
858
|
+
if(filterOptions._comparingLogic && hasFilterContent) {
|
859
|
+
var columnFilter = filterOptions._columnFilter;
|
860
|
+
if(!columnFilter) {
|
861
|
+
// The given rowData for the filter function has already been converted by RowFiltering Extension
|
862
|
+
columnFilter = filterOptions._columnFilter = FilterInputPlugin._compareRow.bind(null, filterOptions);
|
863
|
+
}
|
864
|
+
|
865
|
+
proc.addColumnFilter(colIndex, columnFilter);
|
866
|
+
}
|
867
|
+
this._freezeInputValue = false;
|
868
|
+
}
|
869
|
+
};
|
870
|
+
|
871
|
+
|
872
|
+
/** @private
|
873
|
+
* @param {Object=} e
|
874
|
+
*/
|
875
|
+
FilterInputPlugin.prototype._onInputChanged = function (e) {
|
876
|
+
FilterInputPlugin._stopPropagation(e);
|
877
|
+
|
878
|
+
var host = this.getRelativeGrid(e);
|
879
|
+
if(!host) { return; }
|
880
|
+
var pos = host.getRelativePosition(e);
|
881
|
+
var colIndex = pos.colIndex;
|
882
|
+
|
883
|
+
var input = /** @type{Element} */(e.currentTarget);
|
884
|
+
var filterValue = input.value;
|
885
|
+
var textMap;
|
886
|
+
|
887
|
+
// If selected No Filter option - remove select filter
|
888
|
+
if (filterValue === "No Filter" && input.tagName.indexOf("SELECT") >= 0) {
|
889
|
+
filterValue = null;
|
890
|
+
}
|
891
|
+
else if(input.tagName.indexOf("COMBO-BOX") >= 0){
|
892
|
+
textMap = FilterInputPlugin._createMapObject(input.values);
|
893
|
+
}
|
894
|
+
|
895
|
+
this.filterColumn(colIndex, filterValue, textMap);
|
896
|
+
};
|
897
|
+
/** @private
|
898
|
+
* @param {Object=} e
|
899
|
+
* @description WORKAROUND:: set pointer events none to ef-select when options popup opened.
|
900
|
+
* this will make ef-select can close popup when click at ef-select
|
901
|
+
*/
|
902
|
+
FilterInputPlugin.prototype._onOpenedChanged = function (e) {
|
903
|
+
if (e.detail.value) { //open
|
904
|
+
e.currentTarget.style.pointerEvents = "none";
|
905
|
+
} else { //close
|
906
|
+
var ect = e.currentTarget;
|
907
|
+
setTimeout(function(){
|
908
|
+
ect.style.pointerEvents = "";
|
909
|
+
});
|
910
|
+
}
|
911
|
+
};
|
912
|
+
|
913
|
+
/** @private
|
914
|
+
* @param {Object=} e
|
915
|
+
*/
|
916
|
+
FilterInputPlugin._stopPropagation = function (e) {
|
917
|
+
if(e) {
|
918
|
+
e.stopPropagation();
|
919
|
+
}
|
920
|
+
};
|
921
|
+
|
922
|
+
/** @private
|
923
|
+
* @function
|
924
|
+
* @param {Object} filterOptions
|
925
|
+
* @param {Object} rowData The given rowData has already been converted by RowFiltering Extension
|
926
|
+
* @param {string|number} rid
|
927
|
+
* @return {boolean}
|
928
|
+
*/
|
929
|
+
FilterInputPlugin._compareRow = function(filterOptions, rowData, rid) {
|
930
|
+
return filterOptions._comparingLogic(filterOptions._filterArguments, rowData);
|
931
|
+
};
|
932
|
+
|
933
|
+
/** @private
|
934
|
+
* @function
|
935
|
+
* @param {Array<string|number>} ary
|
936
|
+
* @return {Object}
|
937
|
+
*/
|
938
|
+
FilterInputPlugin._createMapObject = function(ary) {
|
939
|
+
var textMap = {};
|
940
|
+
if(ary){
|
941
|
+
var count = ary.length;
|
942
|
+
for(var i = 0; i < count; i++){
|
943
|
+
var key = ary[i];
|
944
|
+
if(key == null || key === ""){
|
945
|
+
continue;
|
946
|
+
}
|
947
|
+
var str = FilterInputPlugin._transformToLowercaseString(key);
|
948
|
+
textMap[str] = true;
|
949
|
+
}
|
950
|
+
}
|
951
|
+
return textMap;
|
952
|
+
};
|
953
|
+
|
954
|
+
/** @private
|
955
|
+
* @function
|
956
|
+
* @param {Object} data
|
957
|
+
* @return {string}
|
958
|
+
*/
|
959
|
+
FilterInputPlugin._transformToLowercaseString = function(data) {
|
960
|
+
var dataStr = "";
|
961
|
+
if(typeof data != "string") {
|
962
|
+
if(data instanceof Date) {
|
963
|
+
dataStr = data.toDateString().toLowerCase();
|
964
|
+
} else {
|
965
|
+
dataStr = (data + "").toLocaleLowerCase();
|
966
|
+
}
|
967
|
+
} else if(data) {
|
968
|
+
dataStr = data.toLowerCase();
|
969
|
+
}
|
970
|
+
return dataStr;
|
971
|
+
};
|
972
|
+
|
973
|
+
/** Default Filter Logic
|
974
|
+
* @private
|
975
|
+
* @function
|
976
|
+
* @param {Object} e Filter argument
|
977
|
+
* @param {Object} rowData
|
978
|
+
* @return {boolean}
|
979
|
+
*/
|
980
|
+
FilterInputPlugin._containingFilter = function(e, rowData) {
|
981
|
+
var str = e.lowerCasedText || e.inputText;
|
982
|
+
var eventType = e.input && e.input.type;
|
983
|
+
if(str) {
|
984
|
+
var data = rowData[e.field];
|
985
|
+
if(data != null) {
|
986
|
+
var dataStr = FilterInputPlugin._transformToLowercaseString(data);
|
987
|
+
if (dataStr) {
|
988
|
+
if (eventType === "number") {
|
989
|
+
// Custom check if type is number
|
990
|
+
return Number(dataStr) === Number(str);
|
991
|
+
} else {
|
992
|
+
// Normal check if type is not a number
|
993
|
+
return dataStr.indexOf(str) >= 0;
|
994
|
+
}
|
995
|
+
}
|
996
|
+
}
|
997
|
+
return false;
|
998
|
+
}
|
999
|
+
return true;
|
1000
|
+
};
|
1001
|
+
|
1002
|
+
/** Filter Logic for multi selection input
|
1003
|
+
* @private
|
1004
|
+
* @function
|
1005
|
+
* @param {Object} e Filter argument
|
1006
|
+
* @param {Object} rowData
|
1007
|
+
* @return {boolean}
|
1008
|
+
*/
|
1009
|
+
FilterInputPlugin._multiSelectionFilter = function(e, rowData) {
|
1010
|
+
var inputMap = e.textMap;
|
1011
|
+
if(inputMap) {
|
1012
|
+
var data = rowData[e.field];
|
1013
|
+
if(data != null) {
|
1014
|
+
var dataStr = FilterInputPlugin._transformToLowercaseString(data);
|
1015
|
+
if (dataStr) {
|
1016
|
+
return inputMap[dataStr] ? true : false;
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
return false;
|
1020
|
+
}
|
1021
|
+
return true;
|
1022
|
+
};
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
export default FilterInputPlugin;
|
1027
|
+
export { FilterInputPlugin, FilterInputPlugin as FilterInput, FilterInputPlugin as FilterInputExtension };
|