@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,161 @@
|
|
1
|
+
/** Abstract base class that provides event management methods for derived class
|
2
|
+
* @constructor
|
3
|
+
*/
|
4
|
+
let EventDispatcher = function () {};
|
5
|
+
|
6
|
+
/** @type {Object.<string, Function>}
|
7
|
+
* @protected
|
8
|
+
* @ignore
|
9
|
+
*/
|
10
|
+
EventDispatcher.prototype._events = null;
|
11
|
+
/** @type {number}
|
12
|
+
* @protected
|
13
|
+
* @ignore
|
14
|
+
*/
|
15
|
+
EventDispatcher.prototype._listenerCount = 0;
|
16
|
+
|
17
|
+
//#region public function of event
|
18
|
+
/** Add the function handler into the specific event.
|
19
|
+
* @public
|
20
|
+
* @param {string} type Event name
|
21
|
+
* @param {Function} handler Event handler
|
22
|
+
*/
|
23
|
+
EventDispatcher.prototype.addEventListener = function(type, handler) {
|
24
|
+
if(!type || !handler) { return; }
|
25
|
+
if(!this._events) {
|
26
|
+
this._events = {};
|
27
|
+
}
|
28
|
+
|
29
|
+
let listeners = this._events[type];
|
30
|
+
if(listeners) {
|
31
|
+
if(listeners.indexOf(handler) < 0) {
|
32
|
+
listeners.push(handler);
|
33
|
+
++this._listenerCount;
|
34
|
+
}
|
35
|
+
} else {
|
36
|
+
this._events[type] = [handler];
|
37
|
+
++this._listenerCount;
|
38
|
+
}
|
39
|
+
};
|
40
|
+
/** Remove the function handler from the specific event.
|
41
|
+
* @public
|
42
|
+
* @param {string} type Event name
|
43
|
+
* @param {Function} handler Event handler
|
44
|
+
*/
|
45
|
+
EventDispatcher.prototype.removeEventListener = function(type, handler) {
|
46
|
+
let listeners = (this._events) ? this._events[type] : null;
|
47
|
+
if(listeners) {
|
48
|
+
let at = listeners.indexOf(handler);
|
49
|
+
if(at >= 0) {
|
50
|
+
listeners.splice(at, 1);
|
51
|
+
--this._listenerCount;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
};
|
55
|
+
/** Remove all function handlers from all events.
|
56
|
+
* @public
|
57
|
+
*/
|
58
|
+
EventDispatcher.prototype.removeAllEventListeners = function() {
|
59
|
+
this._events = null;
|
60
|
+
this._listenerCount = 0;
|
61
|
+
};
|
62
|
+
|
63
|
+
/** Check whether the specified event has a function handler.
|
64
|
+
* @public
|
65
|
+
* @param {string} type Event name
|
66
|
+
* @return {boolean}
|
67
|
+
*/
|
68
|
+
EventDispatcher.prototype.hasListener = function(type) {
|
69
|
+
if(this._listenerCount) {
|
70
|
+
if(type) {
|
71
|
+
let listeners = this._events ? this._events[type] : null;
|
72
|
+
return listeners ? (listeners.length > 0) : false;
|
73
|
+
} else {
|
74
|
+
return true;
|
75
|
+
}
|
76
|
+
} else {
|
77
|
+
return false;
|
78
|
+
}
|
79
|
+
};
|
80
|
+
/** Get event listener (function handler) from the specified event.
|
81
|
+
* @public
|
82
|
+
* @param {string} type Event name
|
83
|
+
* @param {number=} idx=0 Index of the listener to be retrieved. This is used when there are multiple event listeners
|
84
|
+
* @return {Function}
|
85
|
+
*/
|
86
|
+
EventDispatcher.prototype.getListener = function(type, idx) {
|
87
|
+
if(type) {
|
88
|
+
let listeners = this._events ? this._events[type] : null;
|
89
|
+
if(listeners) {
|
90
|
+
if(!idx) {
|
91
|
+
idx = 0;
|
92
|
+
}
|
93
|
+
return listeners[idx] || null;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
return null;
|
97
|
+
};
|
98
|
+
/** A shorthand to retrieve function from an object and add it as an Eventlistener
|
99
|
+
* @public
|
100
|
+
* @function
|
101
|
+
* @param {Object} obj Object that contains a handler with the same name as the given `type`
|
102
|
+
* @param {string} type Event name
|
103
|
+
* @example
|
104
|
+
* let obj = {"mouseUp": function(e) { console.log(e); }};
|
105
|
+
* plugin.addListener(obj, "mouseUp");
|
106
|
+
* plugin.addListener(obj, "mouseDown");
|
107
|
+
*/
|
108
|
+
EventDispatcher.prototype.addListener = function(obj, type) {
|
109
|
+
let func = obj ? obj[type] : null;
|
110
|
+
if(typeof func === "function") {
|
111
|
+
this.addEventListener(type, func);
|
112
|
+
}
|
113
|
+
};
|
114
|
+
|
115
|
+
/** Executed before dispatching, allowing modification of user's event argument object
|
116
|
+
* @protected
|
117
|
+
* @ignore
|
118
|
+
* @param {string} type Event name
|
119
|
+
* @param {Object} eventArg User's event argument object
|
120
|
+
* @return {Object} New event argument object
|
121
|
+
*/
|
122
|
+
EventDispatcher.prototype._prepareEventArguments = function(type, eventArg) {
|
123
|
+
return eventArg;
|
124
|
+
};
|
125
|
+
|
126
|
+
/** Publish the data to the listener.
|
127
|
+
* @protected
|
128
|
+
* @ignore
|
129
|
+
* @param {string} type Event name
|
130
|
+
* @param {Object} eventArg Event arguments
|
131
|
+
*/
|
132
|
+
EventDispatcher.prototype._dispatch = function(type, eventArg) {
|
133
|
+
let listeners = this._events ? this._events[type] : null;
|
134
|
+
if(listeners) {
|
135
|
+
eventArg = this._prepareEventArguments(type, eventArg);
|
136
|
+
let len = listeners.length;
|
137
|
+
for(let i = 0; i < len; ++i) {
|
138
|
+
listeners[i](eventArg);
|
139
|
+
}
|
140
|
+
}
|
141
|
+
};
|
142
|
+
|
143
|
+
/** @public
|
144
|
+
* @function
|
145
|
+
* @param {Event} e
|
146
|
+
*/
|
147
|
+
let preventDefault = function(e) {
|
148
|
+
if(e && e.preventDefault) {
|
149
|
+
e.preventDefault();
|
150
|
+
e.stopPropagation();
|
151
|
+
}
|
152
|
+
};
|
153
|
+
|
154
|
+
/** @public
|
155
|
+
* @function
|
156
|
+
* @param {Event} e
|
157
|
+
*/
|
158
|
+
EventDispatcher.preventDefault = preventDefault;
|
159
|
+
|
160
|
+
export default EventDispatcher;
|
161
|
+
export {EventDispatcher, preventDefault};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Ext } from "./Ext.js";
|
2
|
+
import { ElementWrapper } from "./ElementWrapper.js";
|
3
|
+
import { ElfUtil } from "./ElfUtil.js";
|
4
|
+
|
5
|
+
declare class ExpanderIcon extends ElementWrapper {
|
6
|
+
|
7
|
+
constructor();
|
8
|
+
|
9
|
+
public static loadExpanderStyles(): void;
|
10
|
+
|
11
|
+
public expand(): void;
|
12
|
+
|
13
|
+
public collapse(): void;
|
14
|
+
|
15
|
+
public isExpanded(): boolean;
|
16
|
+
|
17
|
+
public isCollapsed(): boolean;
|
18
|
+
|
19
|
+
public toggle(collapsed?: boolean|null): void;
|
20
|
+
|
21
|
+
}
|
22
|
+
|
23
|
+
export default ExpanderIcon;
|
24
|
+
export { ExpanderIcon };
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { Ext } from "./Ext.js";
|
2
|
+
import { ElementWrapper } from "./ElementWrapper.js";
|
3
|
+
import { ElfUtil } from "./ElfUtil.js";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @constructor
|
7
|
+
* @extends {ElementWrapper}
|
8
|
+
*/
|
9
|
+
let ExpanderIcon = function () {
|
10
|
+
let elem;
|
11
|
+
if (ExpanderIcon._iconName) {
|
12
|
+
elem = document.createElement("ef-icon");
|
13
|
+
elem.setAttribute("icon", ExpanderIcon._iconName);
|
14
|
+
} else {
|
15
|
+
elem = document.createElement("span");
|
16
|
+
let fallback = document.createElement("span");
|
17
|
+
fallback.className = "fallback-arrow";
|
18
|
+
fallback.textContent = "\u25bc";
|
19
|
+
elem.appendChild(fallback);
|
20
|
+
}
|
21
|
+
this._elem = elem;
|
22
|
+
elem.classList.add("expander");
|
23
|
+
|
24
|
+
elem.addEventListener("mousedown", ExpanderIcon._stopPropagation, false);
|
25
|
+
elem.addEventListener("click", ExpanderIcon._stopPropagation, false);
|
26
|
+
};
|
27
|
+
Ext.inherits(ExpanderIcon, ElementWrapper);
|
28
|
+
|
29
|
+
/** @type {string}
|
30
|
+
* @private
|
31
|
+
*/
|
32
|
+
ExpanderIcon._iconName = ""; // static variable
|
33
|
+
|
34
|
+
/** @private
|
35
|
+
* @param {Event} e
|
36
|
+
*/
|
37
|
+
ExpanderIcon._stopPropagation = function(e) {
|
38
|
+
e.stopPropagation();
|
39
|
+
};
|
40
|
+
/** @private
|
41
|
+
*/
|
42
|
+
ExpanderIcon._onThemeLoaded = function() {
|
43
|
+
if(ElfUtil.isHaloTheme()) {
|
44
|
+
ExpanderIcon._iconName = "down";
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
/** @public
|
49
|
+
*/
|
50
|
+
ExpanderIcon.loadExpanderStyles = function() {
|
51
|
+
if(!ExpanderIcon._iconName) {
|
52
|
+
let themeName = ElfUtil.getThemeName();
|
53
|
+
|
54
|
+
if(themeName) {
|
55
|
+
ExpanderIcon._onThemeLoaded(); // synchronous
|
56
|
+
} else {
|
57
|
+
ElfUtil.getThemeColors().then(ExpanderIcon._onThemeLoaded).catch(ExpanderIcon._onThemeLoaded); // asynchronous
|
58
|
+
}
|
59
|
+
}
|
60
|
+
};
|
61
|
+
|
62
|
+
/** @private
|
63
|
+
* @param {Object} cell
|
64
|
+
* @param {boolean=} removal
|
65
|
+
* @return {ExpanderIcon} Return ExpanderIcon object only if Expander is newly created
|
66
|
+
*/
|
67
|
+
ExpanderIcon.renderOn = function (cell, removal) {
|
68
|
+
let newExpander = null;
|
69
|
+
if (removal) {
|
70
|
+
cell.removeIcon();
|
71
|
+
} else {
|
72
|
+
let expander = cell._expanderIcon;
|
73
|
+
if (!expander) {
|
74
|
+
expander = cell._expanderIcon = newExpander = new ExpanderIcon();
|
75
|
+
}
|
76
|
+
|
77
|
+
cell.updateIcon(expander.getElement());
|
78
|
+
}
|
79
|
+
return newExpander;
|
80
|
+
};
|
81
|
+
|
82
|
+
/** @public
|
83
|
+
*/
|
84
|
+
ExpanderIcon.prototype.expand = function () {
|
85
|
+
this._elem.classList.remove("closed");
|
86
|
+
};
|
87
|
+
/** @public
|
88
|
+
*/
|
89
|
+
ExpanderIcon.prototype.collapse = function () {
|
90
|
+
this._elem.classList.add("closed");
|
91
|
+
};
|
92
|
+
/** @public
|
93
|
+
* @return {boolean}
|
94
|
+
*/
|
95
|
+
ExpanderIcon.prototype.isExpanded = function () {
|
96
|
+
return !this._elem.classList.contains("closed");
|
97
|
+
};
|
98
|
+
/** @public
|
99
|
+
* @return {boolean}
|
100
|
+
*/
|
101
|
+
ExpanderIcon.prototype.isCollapsed = function () {
|
102
|
+
return this._elem.classList.contains("closed");
|
103
|
+
};
|
104
|
+
/** @public
|
105
|
+
* @param {boolean=} collapsed Set to true to force collapsing state. Set to false to force expanding state
|
106
|
+
*/
|
107
|
+
ExpanderIcon.prototype.toggle = function (collapsed) {
|
108
|
+
if(collapsed == null) {
|
109
|
+
collapsed = !this.isCollapsed();
|
110
|
+
}
|
111
|
+
if(collapsed) {
|
112
|
+
this.collapse();
|
113
|
+
} else {
|
114
|
+
this.expand();
|
115
|
+
}
|
116
|
+
};
|
117
|
+
|
118
|
+
|
119
|
+
export default ExpanderIcon;
|
120
|
+
export { ExpanderIcon };
|
@@ -0,0 +1,408 @@
|
|
1
|
+
/** @type {Object.<string, number>}
|
2
|
+
* @private
|
3
|
+
* @const
|
4
|
+
*/
|
5
|
+
let OperatorPrecedences = {
|
6
|
+
"||": 1,
|
7
|
+
"&&": 2,
|
8
|
+
"<": 3,
|
9
|
+
">": 3,
|
10
|
+
"<=": 3,
|
11
|
+
">=": 3,
|
12
|
+
"!=": 3,
|
13
|
+
"=": 3,
|
14
|
+
"==": 3,
|
15
|
+
"===": 3,
|
16
|
+
"+": 4,
|
17
|
+
"-": 4,
|
18
|
+
"*": 5,
|
19
|
+
"%": 6,
|
20
|
+
"/": 6,
|
21
|
+
"!": 7,
|
22
|
+
"!!": 7
|
23
|
+
};
|
24
|
+
/** @type {Object.<string, Function>}
|
25
|
+
* @private
|
26
|
+
* @const
|
27
|
+
*/
|
28
|
+
let OperatorFunctions = {
|
29
|
+
"+": function(lhs, rhs){ return lhs + rhs; },
|
30
|
+
"-": function(lhs, rhs){ return lhs - rhs; },
|
31
|
+
"*": function(lhs, rhs){ return lhs * rhs; },
|
32
|
+
"/": function(lhs, rhs){ return lhs / rhs; },
|
33
|
+
"%": function(lhs, rhs){ return lhs % rhs; },
|
34
|
+
"<": function(lhs, rhs){ return lhs < rhs; },
|
35
|
+
">": function(lhs, rhs){ return lhs > rhs; },
|
36
|
+
"<=": function(lhs, rhs){ return lhs <= rhs; },
|
37
|
+
">=": function(lhs, rhs){ return lhs >= rhs; },
|
38
|
+
"==": function(lhs, rhs){ return lhs == rhs; },
|
39
|
+
"!=": function(lhs, rhs){ return lhs != rhs; },
|
40
|
+
"&&": function(lhs, rhs){ return lhs && rhs; },
|
41
|
+
"||": function(lhs, rhs){ return lhs || rhs; },
|
42
|
+
"!": function(lhs, rhs){ return !lhs; },
|
43
|
+
"!!": function(lhs, rhs){ return !!lhs; }
|
44
|
+
};
|
45
|
+
/** @type {Object.<string, number>}
|
46
|
+
* @private
|
47
|
+
* @const
|
48
|
+
*/
|
49
|
+
let OperandRequirements = {
|
50
|
+
"+": 2,
|
51
|
+
"-": 2,
|
52
|
+
"*": 2,
|
53
|
+
"/": 2,
|
54
|
+
"%": 2,
|
55
|
+
"<": 2,
|
56
|
+
">": 2,
|
57
|
+
"<=": 2,
|
58
|
+
">=": 2,
|
59
|
+
"==": 2,
|
60
|
+
"!=": 2,
|
61
|
+
"&&": 2,
|
62
|
+
"||": 2,
|
63
|
+
"!": 1,
|
64
|
+
"!!": 1
|
65
|
+
};
|
66
|
+
/** @private
|
67
|
+
* @function
|
68
|
+
* @param {Array.<Object>} ary
|
69
|
+
* @param {string|number} value
|
70
|
+
* @param {string} type
|
71
|
+
* @param {string=} dataType
|
72
|
+
* @return {number}
|
73
|
+
*/
|
74
|
+
let _addToken = function(ary, value, type, dataType) {
|
75
|
+
let tok = {
|
76
|
+
value: value,
|
77
|
+
type: type
|
78
|
+
};
|
79
|
+
if(dataType) {
|
80
|
+
tok.dataType = dataType;
|
81
|
+
}
|
82
|
+
if(type === "operator") {
|
83
|
+
tok.precedence = OperatorPrecedences[value];
|
84
|
+
} else if(type === "parenthesis") {
|
85
|
+
tok.precedence = 0;
|
86
|
+
}
|
87
|
+
ary.push(tok);
|
88
|
+
return ary.length - 1;
|
89
|
+
};
|
90
|
+
/** @private
|
91
|
+
* @function
|
92
|
+
* @param {Object} obj
|
93
|
+
* @returns {*}
|
94
|
+
*/
|
95
|
+
let _toValue = function(obj) { // eslint-disable-line
|
96
|
+
return obj.value;
|
97
|
+
};
|
98
|
+
|
99
|
+
/** @public
|
100
|
+
* @namespace
|
101
|
+
*/
|
102
|
+
let ExpressionParser = {};
|
103
|
+
/** @type {Array.<Object>}
|
104
|
+
* @private
|
105
|
+
* @const
|
106
|
+
*/
|
107
|
+
ExpressionParser._tokens = [];
|
108
|
+
|
109
|
+
|
110
|
+
/** @private
|
111
|
+
* @function
|
112
|
+
* @param {string} str
|
113
|
+
* @return {string}
|
114
|
+
*/
|
115
|
+
ExpressionParser._withString = function(str) {
|
116
|
+
let tokId = _addToken(ExpressionParser._tokens,
|
117
|
+
str.substring(1, str.length - 1),
|
118
|
+
"literal",
|
119
|
+
"string"
|
120
|
+
);
|
121
|
+
return " #" + tokId + "#";
|
122
|
+
};
|
123
|
+
/** @private
|
124
|
+
* @function
|
125
|
+
* @param {string} field
|
126
|
+
* @return {string}
|
127
|
+
*/
|
128
|
+
ExpressionParser._withField = function(field) {
|
129
|
+
let tokId = _addToken(ExpressionParser._tokens,
|
130
|
+
field,
|
131
|
+
"literal",
|
132
|
+
"variable"
|
133
|
+
);
|
134
|
+
return " #" + tokId + "#";
|
135
|
+
};
|
136
|
+
/** @private
|
137
|
+
* @function
|
138
|
+
* @param {string} field
|
139
|
+
* @return {string}
|
140
|
+
*/
|
141
|
+
ExpressionParser._withFieldInBrackets = function(field) {
|
142
|
+
return ExpressionParser._withField(field.substring(1, field.length - 1));
|
143
|
+
};
|
144
|
+
/** @private
|
145
|
+
* @function
|
146
|
+
* @param {string} numStr
|
147
|
+
* @return {string}
|
148
|
+
*/
|
149
|
+
ExpressionParser._withNegativeNumber = function(numStr) {
|
150
|
+
let num = +numStr;
|
151
|
+
if(num === num) {
|
152
|
+
let tokId = _addToken(ExpressionParser._tokens,
|
153
|
+
num,
|
154
|
+
"literal",
|
155
|
+
"number"
|
156
|
+
);
|
157
|
+
return " #" + tokId + "#";
|
158
|
+
}
|
159
|
+
return "";
|
160
|
+
};
|
161
|
+
/** @private
|
162
|
+
* @function
|
163
|
+
* @param {string} numStr
|
164
|
+
* @return {string}
|
165
|
+
*/
|
166
|
+
ExpressionParser._withPositiveNumber = function(numStr) {
|
167
|
+
if(numStr.charCodeAt(0) === 35) {
|
168
|
+
return numStr; // skip token (string with leading #)
|
169
|
+
}
|
170
|
+
return ExpressionParser._withNegativeNumber(numStr);
|
171
|
+
};
|
172
|
+
/** @private
|
173
|
+
* @function
|
174
|
+
* @param {string} opStr
|
175
|
+
* @return {string}
|
176
|
+
*/
|
177
|
+
ExpressionParser._withOperator = function(opStr) {
|
178
|
+
if(OperatorPrecedences[opStr]) {
|
179
|
+
if(opStr == "=" || opStr == "===") {
|
180
|
+
opStr = "==";
|
181
|
+
}
|
182
|
+
let tokId = _addToken(ExpressionParser._tokens, opStr, "operator");
|
183
|
+
return "#" + tokId + "#";
|
184
|
+
}
|
185
|
+
return "";
|
186
|
+
};
|
187
|
+
/** @private
|
188
|
+
* @function
|
189
|
+
* @param {string} paStr
|
190
|
+
* @return {string}
|
191
|
+
*/
|
192
|
+
ExpressionParser._withParenthesis = function(paStr) {
|
193
|
+
let tokId = _addToken(ExpressionParser._tokens, paStr, "parenthesis");
|
194
|
+
return "#" + tokId + "#";
|
195
|
+
};
|
196
|
+
|
197
|
+
|
198
|
+
/** @private
|
199
|
+
* @function
|
200
|
+
* @param {Object} ctx
|
201
|
+
* @return {boolean} Returns true if there is any error, otherwise returns false (everything is OK)
|
202
|
+
*/
|
203
|
+
ExpressionParser._tester = function(ctx) {
|
204
|
+
let rpn = ctx._rpn;
|
205
|
+
let inputCount = rpn.length;
|
206
|
+
let operandCount = 0;
|
207
|
+
let maxStack = 0;
|
208
|
+
for(let i = 0; i < inputCount; ++i) {
|
209
|
+
let tok = rpn[i];
|
210
|
+
if(tok.type !== "literal") {
|
211
|
+
let requiredCount = OperandRequirements[tok.value];
|
212
|
+
if(operandCount >= requiredCount) {
|
213
|
+
operandCount -= requiredCount;
|
214
|
+
} else {
|
215
|
+
console.warn("Cannot parse an expression with insufficient number of operands");
|
216
|
+
return true;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
operandCount++;
|
220
|
+
if(operandCount > maxStack) {
|
221
|
+
maxStack = operandCount;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
if(operandCount !== 1) {
|
226
|
+
return true;
|
227
|
+
}
|
228
|
+
|
229
|
+
ctx._stackSize = maxStack;
|
230
|
+
return false;
|
231
|
+
};
|
232
|
+
/** @private
|
233
|
+
* @function
|
234
|
+
* @param {Object} ctx
|
235
|
+
* @param {Object} rowData
|
236
|
+
* @return {boolean}
|
237
|
+
*/
|
238
|
+
ExpressionParser._filter = function(ctx, rowData) {
|
239
|
+
let rpn = ctx._rpn;
|
240
|
+
let results = new Array(ctx._stackSize);
|
241
|
+
let inputCount = rpn.length;
|
242
|
+
let operandCount = 0;
|
243
|
+
let curRes;
|
244
|
+
for(let i = 0; i < inputCount; ++i) {
|
245
|
+
let tok = rpn[i];
|
246
|
+
let tokValue = tok.value;
|
247
|
+
if(tok.type === "literal") {
|
248
|
+
if(tok.dataType !== "variable") {
|
249
|
+
curRes = tokValue;
|
250
|
+
} else {
|
251
|
+
curRes = rowData ? rowData[tokValue] : null;
|
252
|
+
}
|
253
|
+
} else { // operator
|
254
|
+
if(OperandRequirements[tokValue] === 1) {
|
255
|
+
curRes = OperatorFunctions[tokValue](
|
256
|
+
results[operandCount - 1]
|
257
|
+
);
|
258
|
+
operandCount -= 1;
|
259
|
+
} else { // 2
|
260
|
+
curRes = OperatorFunctions[tokValue](
|
261
|
+
results[operandCount - 2],
|
262
|
+
results[operandCount - 1]
|
263
|
+
);
|
264
|
+
operandCount -= 2;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
results[operandCount++] = curRes;
|
268
|
+
}
|
269
|
+
// return results[0];
|
270
|
+
return results[0] ? true : false;
|
271
|
+
};
|
272
|
+
|
273
|
+
/** Parse an expression into a filter function (returning boolean value)
|
274
|
+
* @public
|
275
|
+
* @param {string|Function} expression
|
276
|
+
* @return {Function}
|
277
|
+
* @example
|
278
|
+
* func = ExpressionParser.parse("field1 >= 10");
|
279
|
+
* func = ExpressionParser.parse("[field with space] != 'text'");
|
280
|
+
* func = ExpressionParser.parse("(field1 + 1) / 2 < 10 && field2 - 10 > 3");
|
281
|
+
*/
|
282
|
+
ExpressionParser.parse = function(expression) {
|
283
|
+
if(typeof expression === "function") {
|
284
|
+
return expression;
|
285
|
+
}
|
286
|
+
if(!expression || typeof expression !== "string") {
|
287
|
+
return null;
|
288
|
+
}
|
289
|
+
|
290
|
+
let tokExp = expression.trim();
|
291
|
+
if(!tokExp) {
|
292
|
+
return null;
|
293
|
+
}
|
294
|
+
ExpressionParser._tokens.length = 0;
|
295
|
+
|
296
|
+
tokExp = tokExp.replace(/".+?"/g, ExpressionParser._withString); // double quote string
|
297
|
+
tokExp = tokExp.replace(/'.+?'/g, ExpressionParser._withString); // single quote string
|
298
|
+
tokExp = tokExp.replace(/\[.+?\]/g, ExpressionParser._withFieldInBrackets); // field in square brackets
|
299
|
+
tokExp = tokExp.replace(/-[0-9.]+/g, ExpressionParser._withNegativeNumber);
|
300
|
+
tokExp = tokExp.replace(/[0-9.#]+/g, ExpressionParser._withPositiveNumber);
|
301
|
+
tokExp = tokExp.replace(/[a-zA-Z_]\w*/g, ExpressionParser._withField);
|
302
|
+
tokExp = tokExp.replace(/[\-\/+*%!=<>&|]+/g, ExpressionParser._withOperator);
|
303
|
+
tokExp = tokExp.replace(/[()]/g, ExpressionParser._withParenthesis); // round brackets
|
304
|
+
|
305
|
+
let tokens = ExpressionParser._tokens;
|
306
|
+
let tokCount = tokens.length;
|
307
|
+
if(!tokCount) {
|
308
|
+
return null; // There is no recognizable character
|
309
|
+
}
|
310
|
+
|
311
|
+
// Generate infix token list
|
312
|
+
let infixTokens = [];
|
313
|
+
let matches = tokExp.match(/#[0-9]+#/g);
|
314
|
+
let i, tok, tokType;
|
315
|
+
for(i = 0; i < tokCount; ++i) {
|
316
|
+
let tokId = matches[i];
|
317
|
+
let tokIdx = +(tokId.substring(1, tokId.length - 1));
|
318
|
+
tok = tokens[tokIdx];
|
319
|
+
tokType = tok.type;
|
320
|
+
if(tokType === "literal") {
|
321
|
+
let prevTok = infixTokens[infixTokens.length - 1];
|
322
|
+
if(prevTok && prevTok.type === "literal") { // Incorrect infix notation detected
|
323
|
+
if(tok.value < 0 && tok.dataType === "number") {
|
324
|
+
_addToken(infixTokens, "-", "operator");
|
325
|
+
tok.value *= -1;
|
326
|
+
} else {
|
327
|
+
console.warn("Cannot parse an expression with insufficient number of operators");
|
328
|
+
return null;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
}
|
332
|
+
infixTokens.push(tok);
|
333
|
+
}
|
334
|
+
ExpressionParser._tokens.length = 0;
|
335
|
+
|
336
|
+
// Convert Infix notation to Reverse Polish Notation (Postfix)
|
337
|
+
// See https://en.wikipedia.org/wiki/Shunting_yard_algorithm#The_algorithm_in_detail
|
338
|
+
tokCount = infixTokens.length;
|
339
|
+
let rpn = [];
|
340
|
+
let operators = [];
|
341
|
+
let lastOp = null;
|
342
|
+
let foundLeftPa = false;
|
343
|
+
for(i = 0; i < tokCount; ++i) {
|
344
|
+
tok = infixTokens[i];
|
345
|
+
tokType = tok.type;
|
346
|
+
|
347
|
+
if(tokType === "literal") {
|
348
|
+
rpn.push(tok);
|
349
|
+
} else if(tokType === "parenthesis") {
|
350
|
+
if(tok.value === "(") {
|
351
|
+
operators.push(tok);
|
352
|
+
} else { // When finding right parenthesis, pop all operators until left parenthesis
|
353
|
+
foundLeftPa = false;
|
354
|
+
while(operators.length) {
|
355
|
+
lastOp = operators.pop();
|
356
|
+
if(lastOp.value === "(" && lastOp.type === "parenthesis") {
|
357
|
+
foundLeftPa = true;
|
358
|
+
break;
|
359
|
+
} else {
|
360
|
+
rpn.push(lastOp);
|
361
|
+
}
|
362
|
+
}
|
363
|
+
if(!foundLeftPa) {
|
364
|
+
console.warn("No left parenthesis paired with the right one");
|
365
|
+
}
|
366
|
+
}
|
367
|
+
} else { // operator
|
368
|
+
while(operators.length) {
|
369
|
+
if(tok.precedence > operators[operators.length - 1].precedence) {
|
370
|
+
break;
|
371
|
+
}
|
372
|
+
rpn.push(operators.pop());
|
373
|
+
}
|
374
|
+
operators.push(tok);
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
foundLeftPa = false;
|
379
|
+
while(operators.length) {
|
380
|
+
lastOp = operators.pop();
|
381
|
+
if(lastOp.value === "(" && lastOp.type === "parenthesis") {
|
382
|
+
foundLeftPa = true;
|
383
|
+
} else {
|
384
|
+
rpn.push(lastOp);
|
385
|
+
}
|
386
|
+
}
|
387
|
+
if(foundLeftPa) {
|
388
|
+
console.warn("No right parenthesis paired with the left one");
|
389
|
+
}
|
390
|
+
|
391
|
+
let inputCount = rpn.length;
|
392
|
+
if(!inputCount) {
|
393
|
+
return null; // The expression contains nothing but parentheses
|
394
|
+
}
|
395
|
+
|
396
|
+
let ctx = {
|
397
|
+
_rpn: rpn
|
398
|
+
};
|
399
|
+
|
400
|
+
if(ExpressionParser._tester(ctx)) {
|
401
|
+
return null; // Insufficient number of operands
|
402
|
+
}
|
403
|
+
|
404
|
+
return ExpressionParser._filter.bind(null, ctx);
|
405
|
+
};
|
406
|
+
|
407
|
+
export default ExpressionParser;
|
408
|
+
export {ExpressionParser};
|