@refinitiv-ui/efx-grid 6.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-format-dialog/index.d.ts +1 -0
- package/lib/column-format-dialog/index.js +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +64 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2713 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +995 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +1 -0
- package/lib/column-selection-dialog/index.js +1 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +41 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +1410 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +189 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +6 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +6 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +22 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +6 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +6 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +6 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +6 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +28075 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +81 -0
- package/lib/core/es6/data/DataCache.js +1317 -0
- package/lib/core/es6/data/DataTable.d.ts +125 -0
- package/lib/core/es6/data/DataTable.js +1655 -0
- package/lib/core/es6/data/DataView.d.ts +280 -0
- package/lib/core/es6/data/DataView.js +3654 -0
- package/lib/core/es6/data/Segment.d.ts +38 -0
- package/lib/core/es6/data/Segment.js +193 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +58 -0
- package/lib/core/es6/data/SegmentCollection.js +431 -0
- package/lib/core/es6/grid/Core.d.ts +387 -0
- package/lib/core/es6/grid/Core.js +4939 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +204 -0
- package/lib/core/es6/grid/ILayoutGrid.js +658 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +23 -0
- package/lib/core/es6/grid/LayoutGrid.js +2602 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +907 -0
- package/lib/core/es6/grid/components/Cell.d.ts +50 -0
- package/lib/core/es6/grid/components/Cell.js +740 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +123 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +38 -0
- package/lib/core/es6/grid/components/CellSpans.js +341 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +612 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +714 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +24 -0
- package/lib/core/es6/grid/components/HScrollbar.js +222 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +61 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1374 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +328 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +163 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +615 -0
- package/lib/core/es6/grid/plugins/Plugin.d.ts +28 -0
- package/lib/core/es6/grid/plugins/Plugin.js +272 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1707 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/core/es6/grid/util/ElementFrameWork.js +227 -0
- package/lib/core/es6/grid/util/HttpRequest.d.ts +53 -0
- package/lib/core/es6/grid/util/HttpRequest.js +371 -0
- package/lib/core/es6/grid/util/PercentBar.d.ts +43 -0
- package/lib/core/es6/grid/util/PercentBar.js +390 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.js +316 -0
- package/lib/core/es6/grid/util/RangeBar.d.ts +25 -0
- package/lib/core/es6/grid/util/RangeBar.js +255 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +674 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +50 -0
- package/lib/core/es6/grid/util/SelectionList.js +422 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +84 -0
- package/lib/core/es6/grid/util/TrackLayout.js +850 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +18 -0
- package/lib/core/es6/grid/util/util.js +450 -0
- package/lib/core/es6/index.d.ts +84 -0
- package/lib/core/es6/index.js +132 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +1 -0
- package/lib/filter-dialog/index.js +1 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +27 -0
- package/lib/filter-dialog/lib/checkbox-list.js +336 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +53 -0
- package/lib/filter-dialog/lib/filter-dialog.js +860 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +37 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +37 -0
- package/lib/filter-dialog/themes/base.less +102 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +9 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +40 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +102 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralIconFormatter.js +45 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +40 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +66 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFButtonFormatter.js +40 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +68 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFIconFormatter.js +45 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +66 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +22 -0
- package/lib/formatters/es6/FormatterBuilder.js +334 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +65 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +30 -0
- package/lib/formatters/es6/index.d.ts +43 -0
- package/lib/formatters/es6/index.js +67 -0
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +2 -0
- package/lib/grid/lib/efx-grid.d.ts +32 -0
- package/lib/grid/lib/efx-grid.js +469 -0
- package/lib/grid/themes/base.less +134 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +92 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +102 -0
- package/lib/index.js +102 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +83 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +592 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +44672 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +141 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1074 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +37 -0
- package/lib/rt-grid/es6/DataConnector.js +266 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +20 -0
- package/lib/rt-grid/es6/FieldDefinition.js +418 -0
- package/lib/rt-grid/es6/Grid.d.ts +261 -0
- package/lib/rt-grid/es6/Grid.js +2893 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +38 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +230 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +120 -0
- package/lib/rt-grid/es6/RowDefinition.js +873 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +21 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +252 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +67 -0
- package/lib/statistics-row/es6/StatisticsRow.js +786 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +45 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +431 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +67 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1777 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +69 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1476 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +1000 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +89 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +615 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +60 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +913 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1013 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +70 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +928 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +76 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +1227 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +70 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +947 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +478 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +471 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +133 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +39 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +245 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +29 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +292 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +57 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +928 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +44 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +394 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +129 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +1977 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +57 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +427 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +801 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +49 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +226 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +12 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +21 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +32 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +761 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +38 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +481 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +54 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +205 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +353 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +53 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +794 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +118 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +1884 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +109 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1541 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +74 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1202 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +60 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +611 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +77 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +574 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +29 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +136 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1128 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +14 -0
- package/lib/tr-grid-util/es6/Deferred.js +98 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +85 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +346 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +10 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +101 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +83 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +163 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +33 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +458 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +27 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +169 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +432 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +48 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +521 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +41 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +181 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +72 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +747 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +61 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +237 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +32 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +506 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +83 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +471 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +162 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +84 -0
- package/lib/tr-grid-util/es6/Popup.js +818 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +259 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +239 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +23 -0
- package/lib/tr-grid-util/es6/RowPainter.js +188 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +74 -0
- package/lib/tr-grid-util/es6/SubTable.js +558 -0
- package/lib/tr-grid-util/es6/Table.d.ts +125 -0
- package/lib/tr-grid-util/es6/Table.js +790 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +18 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +273 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +65 -0
- package/lib/tr-grid-util/es6/Util.js +528 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +882 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +63 -0
- package/lib/tr-grid-util/es6/index.js +99 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +141 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +114 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +827 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +63 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +72 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +564 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +43 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +131 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +45 -0
- package/lib/types/es6/CellSelection.d.ts +67 -0
- package/lib/types/es6/Checkbox.d.ts +69 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +90 -0
- package/lib/types/es6/ColumnGrouping.d.ts +60 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +70 -0
- package/lib/types/es6/ColumnStack.d.ts +76 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +38 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +287 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +22 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +42 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +70 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +81 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +125 -0
- package/lib/types/es6/Core/data/DataView.d.ts +280 -0
- package/lib/types/es6/Core/data/Segment.d.ts +38 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +58 -0
- package/lib/types/es6/Core/grid/Core.d.ts +387 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +204 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +23 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +50 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +38 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +24 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +61 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +28 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +53 -0
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +43 -0
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +25 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +50 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +84 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +18 -0
- package/lib/types/es6/Core/index.d.ts +84 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +23 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +52 -0
- package/lib/types/es6/Extensions.d.ts +61 -0
- package/lib/types/es6/FilterInput.d.ts +57 -0
- package/lib/types/es6/FormatterBuilder.d.ts +22 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +44 -0
- package/lib/types/es6/InCellEditing.d.ts +129 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +39 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +57 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +29 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +143 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +37 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +20 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +263 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +38 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +120 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +21 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +60 -0
- package/lib/types/es6/RowDragging.d.ts +53 -0
- package/lib/types/es6/RowFiltering.d.ts +118 -0
- package/lib/types/es6/RowGrouping.d.ts +109 -0
- package/lib/types/es6/RowSegmenting.d.ts +83 -0
- package/lib/types/es6/RowSelection.d.ts +74 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +67 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +77 -0
- package/lib/types/es6/TitleWrap.d.ts +29 -0
- package/lib/types/es6/Zoom.d.ts +51 -0
- package/lib/types/es6/index.d.ts +76 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/versions.json +36 -0
- package/lib/window-exporter.js +13 -0
- package/lib/zoom/es6/Zoom.d.ts +51 -0
- package/lib/zoom/es6/Zoom.js +419 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +42 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
import {Dom} from './Dom.js';
|
2
|
+
|
3
|
+
declare namespace TextHighlighter {
|
4
|
+
|
5
|
+
const invalidChars: RegExp;
|
6
|
+
|
7
|
+
const spaces: RegExp;
|
8
|
+
|
9
|
+
const spaceTrimer: RegExp;
|
10
|
+
|
11
|
+
const defaultTag: string;
|
12
|
+
|
13
|
+
}
|
14
|
+
|
15
|
+
declare function score(haystack: string, needle: string|RegExp, caseSensitive?: (boolean|number)): (string)[];
|
16
|
+
|
17
|
+
export default TextHighlighter;
|
18
|
+
export {TextHighlighter};
|
@@ -0,0 +1,273 @@
|
|
1
|
+
import {Dom} from './Dom.js';
|
2
|
+
|
3
|
+
/** @namespace */
|
4
|
+
var TextHighlighter = {};
|
5
|
+
/** /[^\w-_ .]+/g
|
6
|
+
* @type {RegExp}
|
7
|
+
* @public
|
8
|
+
*/
|
9
|
+
TextHighlighter.invalidChars = /[^\w-_ .]+/g;
|
10
|
+
/** /\s+/
|
11
|
+
* @type {RegExp}
|
12
|
+
* @public
|
13
|
+
*/
|
14
|
+
TextHighlighter.spaces = /\s+/;
|
15
|
+
/** /^\s+|\s+$/g
|
16
|
+
* @type {RegExp}
|
17
|
+
* @public
|
18
|
+
*/
|
19
|
+
TextHighlighter.spaceTrimer = /^\s+|\s+$/g;
|
20
|
+
/** Default is <mark> tag
|
21
|
+
* @type {string}
|
22
|
+
* @public
|
23
|
+
*/
|
24
|
+
TextHighlighter.defaultTag = "mark";
|
25
|
+
|
26
|
+
/** Highlight all descendants from the given element. Only leaf node, that has no children, will be highlighted.
|
27
|
+
* @function
|
28
|
+
* @param {Element} elem
|
29
|
+
* @param {string|RegExp} keyword If omit, the content, that has been highlighted, will be restored to its original form
|
30
|
+
* @param {string=} tagName Default is <mark> tag
|
31
|
+
* @return {Element} the same given elem
|
32
|
+
* @example
|
33
|
+
* var parent = Dom.div();
|
34
|
+
* var child1 = Dom.text("Lorem ipsum dolor sit amet");
|
35
|
+
* var child2 = Dom.text("Quisque volutpat, neque et pretium accumsan");
|
36
|
+
* Dom.appendChild(parent, child1, child2);
|
37
|
+
* TextHighlighter.highlightAll(parent, "e", "mark"); // only child1 and child2 are modified
|
38
|
+
*/
|
39
|
+
TextHighlighter.highlightAll = function(elem, keyword, tagName) {
|
40
|
+
var rule = TextHighlighter.buildRule(keyword);
|
41
|
+
if(!tagName) {
|
42
|
+
tagName = TextHighlighter.defaultTag;
|
43
|
+
}
|
44
|
+
|
45
|
+
var nodes = [elem];
|
46
|
+
for(var i = 0; i < nodes.length; ++i) {
|
47
|
+
var curNode = nodes[i];
|
48
|
+
var chdr = curNode.children;
|
49
|
+
var nonLeafNode = !curNode._highlightData && chdr && chdr.length;
|
50
|
+
if(nonLeafNode) {
|
51
|
+
var len = chdr.length;
|
52
|
+
for(var j = 0; j < len; ++j) {
|
53
|
+
nodes.push(chdr[j]);
|
54
|
+
}
|
55
|
+
} else { // leaf node
|
56
|
+
TextHighlighter.highlightContent(curNode, rule, tagName);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
return elem;
|
60
|
+
};
|
61
|
+
|
62
|
+
/** Highlight text content of the given element. This method does not preserve internal structure of the element. Thus, this should be used on a leaf node where content is just text without layout.
|
63
|
+
* @function
|
64
|
+
* @param {Element} elem
|
65
|
+
* @param {string|RegExp} keyword If omit, the content, that has been highlighted, will be restored to its original form
|
66
|
+
* @param {string=} tagName Default is <mark> tag
|
67
|
+
* @return {Element} Element with children of <span></span> and <mark></mark> tags
|
68
|
+
* @example
|
69
|
+
* var el = Dom.text("Lorem ipsum dolor sit amet");
|
70
|
+
* var highlightedEl = TextHighlighter.highlightContent(el, "e", "mark");
|
71
|
+
* highlightedEl === el; // true
|
72
|
+
*/
|
73
|
+
TextHighlighter.highlightContent = function(elem, keyword, tagName) {
|
74
|
+
var reset = true;
|
75
|
+
if(keyword) {
|
76
|
+
var text = elem.textContent;
|
77
|
+
if(text) {
|
78
|
+
var highlightData = elem._highlightData;
|
79
|
+
var splitInfo = TextHighlighter._split(text, keyword, null, highlightData);
|
80
|
+
if(splitInfo) {
|
81
|
+
var i, len;
|
82
|
+
if(!highlightData) {
|
83
|
+
elem._highlightData = splitInfo;
|
84
|
+
|
85
|
+
// Save original child nodes
|
86
|
+
var cns = elem.childNodes;
|
87
|
+
len = cns.length;
|
88
|
+
var originalNodes = new Array(len);
|
89
|
+
for(i = 0; i < len; ++i) {
|
90
|
+
originalNodes[i] = cns[i];
|
91
|
+
}
|
92
|
+
splitInfo["originalNodes"] = originalNodes;
|
93
|
+
}
|
94
|
+
Dom.removeChildren(elem);
|
95
|
+
|
96
|
+
if(!tagName) {
|
97
|
+
tagName = TextHighlighter.defaultTag;
|
98
|
+
}
|
99
|
+
|
100
|
+
var chunks = splitInfo["chunks"];
|
101
|
+
len = chunks.length;
|
102
|
+
for(i = 0; i < len; ++i) {
|
103
|
+
var chunk = chunks[i];
|
104
|
+
if(chunk) {
|
105
|
+
var tag = Dom.create((i & 1) ? tagName : "span");
|
106
|
+
tag.textContent = chunk;
|
107
|
+
elem.appendChild(tag);
|
108
|
+
}
|
109
|
+
}
|
110
|
+
reset = false;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
if(reset) {
|
115
|
+
TextHighlighter.restore(elem);
|
116
|
+
}
|
117
|
+
return elem;
|
118
|
+
};
|
119
|
+
|
120
|
+
/** Clear all highlights and reset back to its original state.
|
121
|
+
* @function
|
122
|
+
* @param {Element} elem
|
123
|
+
* @return {boolean} Returns true if there is any change
|
124
|
+
*/
|
125
|
+
TextHighlighter.restore = function(elem) {
|
126
|
+
if(elem && elem._highlightData) {
|
127
|
+
Dom.removeChildren(elem);
|
128
|
+
Dom.appendChild(elem, elem._highlightData["originalNodes"]);
|
129
|
+
elem._highlightData = null;
|
130
|
+
return true;
|
131
|
+
}
|
132
|
+
return false;
|
133
|
+
};
|
134
|
+
|
135
|
+
/** Get matching score. The score is calculated by the following criteria: <br>
|
136
|
+
* - Number of the matched keywords <br>
|
137
|
+
* - Length of the matched keywords <br>
|
138
|
+
* - Position of the matched keywords <br>
|
139
|
+
* - Length of the original text <br>
|
140
|
+
*
|
141
|
+
* @function
|
142
|
+
* @param {Element} elem
|
143
|
+
* @return {number}
|
144
|
+
*/
|
145
|
+
TextHighlighter.getScore = function(elem) {
|
146
|
+
if(elem) {
|
147
|
+
var obj = /** @type{Object} */(elem._highlightData);
|
148
|
+
if(obj) {
|
149
|
+
var score = obj["score"];
|
150
|
+
if(score == null) {
|
151
|
+
var positions = /** @type{Array.<number>} */(obj["positions"]);
|
152
|
+
var matches = /** @type{Array.<string>} */(obj["matches"]);
|
153
|
+
var matchCount = matches.length;
|
154
|
+
|
155
|
+
score = matchCount * 1000; // Number of the matched keywords
|
156
|
+
for(var i = 0; i < matchCount; ++i) {
|
157
|
+
var curTxt = matches[i];
|
158
|
+
var pos = positions[i];
|
159
|
+
score += curTxt.length * 100; // Length of the matched keywords
|
160
|
+
score += pos ? (400 / pos) | 0 : 500;
|
161
|
+
}
|
162
|
+
if(matchCount) {
|
163
|
+
var origLen = obj["original"] ? obj["original"].length : 0;
|
164
|
+
score += origLen ? (1000 / origLen) | 0 : 0;
|
165
|
+
}
|
166
|
+
obj["score"] = score; // Cache for later usage
|
167
|
+
}
|
168
|
+
return /** @type{number} */(score);
|
169
|
+
}
|
170
|
+
}
|
171
|
+
return 0;
|
172
|
+
};
|
173
|
+
|
174
|
+
/** Split the given haystack while preserving the matched texts (i.e. the results will contain the given needle). The matched texts will always be in the odd index (e.g. 1, 3, 5, ...) of the result array.
|
175
|
+
* @function
|
176
|
+
* @param {string} haystack
|
177
|
+
* @param {string|RegExp} needle
|
178
|
+
* @param {(boolean|number)=} caseSensitive
|
179
|
+
* @return {!Array.<string>}
|
180
|
+
* @example
|
181
|
+
* TextHighlighter.split("aabbccbb ddbbee", "bb"); // ["aa", "bb", "cc", "bb", " dd", "bb", "ee"]
|
182
|
+
* TextHighlighter.split("entire_word", "entire_word"); // ["", "entire_word"]
|
183
|
+
* TextHighlighter.split("not_found", "aaa"); // ["not_found"]
|
184
|
+
*/
|
185
|
+
TextHighlighter.split = function (haystack, needle, caseSensitive) {
|
186
|
+
var obj = TextHighlighter._split(haystack, needle, caseSensitive);
|
187
|
+
if(obj) {
|
188
|
+
return /** @type{!Array.<string>} */(obj["chunks"]);
|
189
|
+
}
|
190
|
+
return [haystack];
|
191
|
+
};
|
192
|
+
/** @private
|
193
|
+
* @function
|
194
|
+
* @param {string} haystack
|
195
|
+
* @param {string|RegExp} needle
|
196
|
+
* @param {(boolean|number)=} caseSensitive
|
197
|
+
* @param {Object=} out_obj
|
198
|
+
* @return {Object}
|
199
|
+
*/
|
200
|
+
TextHighlighter._split = function (haystack, needle, caseSensitive, out_obj) {
|
201
|
+
if(!haystack || !needle) {
|
202
|
+
return null;
|
203
|
+
}
|
204
|
+
var regExp = TextHighlighter.buildRule(needle, caseSensitive);
|
205
|
+
|
206
|
+
var matches = haystack.match(regExp);
|
207
|
+
if(!matches) {
|
208
|
+
return null;
|
209
|
+
}
|
210
|
+
|
211
|
+
if(!out_obj) {
|
212
|
+
out_obj = {};
|
213
|
+
}
|
214
|
+
|
215
|
+
var matchCount = matches.length;
|
216
|
+
var positions = new Array(matchCount);
|
217
|
+
var start = 0;
|
218
|
+
var curIdx = 0;
|
219
|
+
var chunks = [];
|
220
|
+
do {
|
221
|
+
var curMatch = matches[curIdx];
|
222
|
+
var matchLen = curMatch.length;
|
223
|
+
var at = positions[curIdx] = haystack.indexOf(curMatch, start);
|
224
|
+
chunks.push(
|
225
|
+
haystack.substring(start, at),
|
226
|
+
haystack.substr(at, matchLen)
|
227
|
+
);
|
228
|
+
start = at + matchLen;
|
229
|
+
} while(++curIdx < matchCount);
|
230
|
+
|
231
|
+
var end = haystack.length;
|
232
|
+
if(start < end) {
|
233
|
+
chunks.push(haystack.substring(start, end));
|
234
|
+
}
|
235
|
+
|
236
|
+
out_obj["chunks"] = chunks;
|
237
|
+
out_obj["matches"] = matches;
|
238
|
+
out_obj["positions"] = positions;
|
239
|
+
out_obj["original"] = haystack;
|
240
|
+
out_obj["score"] = null;
|
241
|
+
return out_obj;
|
242
|
+
};
|
243
|
+
|
244
|
+
/** Build RegExp for highlighting. This is useful to speed up the process, as the same rule will be used on multiple elements.
|
245
|
+
* @function
|
246
|
+
* @param {string|RegExp} txt
|
247
|
+
* @param {(boolean|number)=} caseSensitive If true, the rule is produced with case sensitive characters
|
248
|
+
* @return {RegExp}
|
249
|
+
* @example
|
250
|
+
* var regExp = TextHighlighter.buildRule("A + B"); // Equivalent to new RegExp(/A|B/g);
|
251
|
+
*/
|
252
|
+
TextHighlighter.buildRule = function(txt, caseSensitive) {
|
253
|
+
if(typeof txt != "string") {
|
254
|
+
return /** @type{RegExp} */(txt) || null;
|
255
|
+
}
|
256
|
+
|
257
|
+
if(txt) {
|
258
|
+
txt = txt.replace(TextHighlighter.invalidChars, " ");
|
259
|
+
txt = txt.replace(TextHighlighter.spaceTrimer, "");
|
260
|
+
}
|
261
|
+
if(!txt) {
|
262
|
+
return null;
|
263
|
+
}
|
264
|
+
|
265
|
+
var option = caseSensitive ? "g" : "gi";
|
266
|
+
var keywords = txt.split(TextHighlighter.spaces);
|
267
|
+
var rule = (keywords.length > 1) ? keywords.join("|") : txt;
|
268
|
+
|
269
|
+
return new RegExp(rule, option);
|
270
|
+
};
|
271
|
+
|
272
|
+
export default TextHighlighter;
|
273
|
+
export {TextHighlighter};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/** @type {Object.<string, number>}
|
2
|
+
* @public
|
3
|
+
*/
|
4
|
+
var TickCodes = {
|
5
|
+
"\u21e7": 1,
|
6
|
+
"B\u21e7": 1,
|
7
|
+
"\u2191": 1,
|
8
|
+
"B\u2191": 1,
|
9
|
+
"26": 1,
|
10
|
+
"1": 1,
|
11
|
+
"\"1\"": 1,
|
12
|
+
"-1": -1,
|
13
|
+
"\u21e9": -1,
|
14
|
+
"B\u21e9": -1,
|
15
|
+
"\u2193": -1,
|
16
|
+
"B\u2193": -1,
|
17
|
+
"27": -1,
|
18
|
+
"2": -1,
|
19
|
+
"\"2\"": -1
|
20
|
+
};
|
21
|
+
|
22
|
+
/** @type {Object.<string, number>}
|
23
|
+
* @public
|
24
|
+
*/
|
25
|
+
var TickFields = {
|
26
|
+
"CF_TICK": 1,
|
27
|
+
"PRCTCK_1": 1,
|
28
|
+
"BID_TICK": 1,
|
29
|
+
"ASK_TICK": 1
|
30
|
+
};
|
31
|
+
|
32
|
+
export default TickCodes;
|
33
|
+
export {TickCodes, TickFields};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/** Provide a way to execute a function with context object. The timer can be started, extended, stopped at any time. Use {@link Delay} for promisified version of Timer class
|
2
|
+
* @constructor
|
3
|
+
* @param {number} duration Delay before executing the given function
|
4
|
+
* @param {Function=} func Function to be executed
|
5
|
+
* @param {*=} ctx Context object that will be supplied to the function as the first parameter
|
6
|
+
* @example
|
7
|
+
* var timer = new Timer(2000, (ctx)=>{ console.log(ctx)}, "AAA");
|
8
|
+
* timer.start(); // AAA will be logged after 2 seconds
|
9
|
+
* timer.start(); // Timer is reset. AAA will be logged only once
|
10
|
+
*/
|
11
|
+
var Timer = function(duration, func, ctx) {
|
12
|
+
this._duration = (typeof duration == "number") ? duration : 0;
|
13
|
+
this._onTimeout = this._onTimeout.bind(this);
|
14
|
+
this._method = func || null;
|
15
|
+
this._ctx = ctx != null ? ctx : null;
|
16
|
+
};
|
17
|
+
/** If calling start before the timer end, the timer will be reset, and effectively extended the duration.
|
18
|
+
* @public
|
19
|
+
*/
|
20
|
+
Timer.prototype.start = function() {
|
21
|
+
if(this._timerId) {
|
22
|
+
clearTimeout(this._timerId); // Extend duration
|
23
|
+
}
|
24
|
+
this._timerId = setTimeout(this._onTimeout, this._duration);
|
25
|
+
};
|
26
|
+
/** @public */
|
27
|
+
Timer.prototype.stop = function() {
|
28
|
+
if(this._timerId) {
|
29
|
+
clearTimeout(this._timerId);
|
30
|
+
this._timerId = 0;
|
31
|
+
}
|
32
|
+
};
|
33
|
+
/** @public
|
34
|
+
* @return {boolean}
|
35
|
+
*/
|
36
|
+
Timer.prototype.isActive = function() {
|
37
|
+
return this._timerId ? true : false;
|
38
|
+
};
|
39
|
+
|
40
|
+
/** @private */
|
41
|
+
Timer.prototype._onTimeout = function() {
|
42
|
+
this._timerId = 0;
|
43
|
+
if(this._method) {
|
44
|
+
this._method(this._ctx || this);
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
export default Timer;
|
49
|
+
export {Timer};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import {Ext} from "./Ext.js";
|
2
|
+
import {EventDispatcher} from "./EventDispatcher.js";
|
3
|
+
|
4
|
+
declare namespace TouchProxy {
|
5
|
+
|
6
|
+
type Options = {
|
7
|
+
useTouchMove?: boolean,
|
8
|
+
preventDefault?: boolean
|
9
|
+
};
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
declare class TouchProxy extends EventDispatcher {
|
14
|
+
|
15
|
+
constructor(elem?: Element, options?: (boolean|any));
|
16
|
+
|
17
|
+
public static readonly passive: EventListenerOptions;
|
18
|
+
|
19
|
+
public getElement(): Element;
|
20
|
+
|
21
|
+
public setElement(elem?: Element): void;
|
22
|
+
|
23
|
+
public applyTrait(elem: Element): void;
|
24
|
+
|
25
|
+
public dispose(): void;
|
26
|
+
|
27
|
+
public addTouchListeners(touchStartFunc?: ((...params: any[]) => any), touchEndFunc?: ((...params: any[]) => any), touchMoveFunc?: ((...params: any[]) => any)): void;
|
28
|
+
|
29
|
+
public removeTouchListeners(): void;
|
30
|
+
|
31
|
+
public attachTouchMoveEvent(): void;
|
32
|
+
|
33
|
+
public detachTouchMoveEvent(): void;
|
34
|
+
|
35
|
+
public attachTouchEvents(touchMove?: boolean): void;
|
36
|
+
|
37
|
+
public detachTouchEvents(): void;
|
38
|
+
|
39
|
+
public static getButtonType(e: Event): number;
|
40
|
+
|
41
|
+
public static getPosition(e: Event|any, obj?: any): any;
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
export {TouchProxy};
|
46
|
+
export default TouchProxy;
|
@@ -0,0 +1,212 @@
|
|
1
|
+
import {Ext} from "./Ext.js";
|
2
|
+
import {EventDispatcher} from "./EventDispatcher.js";
|
3
|
+
|
4
|
+
/** @typedef {Object} TouchProxy~Options
|
5
|
+
* @description TouchProxy options
|
6
|
+
* @property {boolean=} useTouchMove=false If enabled, touch events are added to the element
|
7
|
+
* @property {boolean=} preventDefault=false If enabled, event default behaviors are prevented
|
8
|
+
*/
|
9
|
+
|
10
|
+
/** @event TouchProxy#touchStart
|
11
|
+
* @description Alias to native touchstart
|
12
|
+
* @type {Event}
|
13
|
+
*/
|
14
|
+
/** @event TouchProxy#touchEnd
|
15
|
+
* @description Alias to native touchend and touchcancel
|
16
|
+
* @type {Event}
|
17
|
+
*/
|
18
|
+
/** @event TouchProxy#touchMove
|
19
|
+
* @description Alias to native touchmove
|
20
|
+
* @type {Event}
|
21
|
+
*/
|
22
|
+
|
23
|
+
/** @constructor
|
24
|
+
* @extends {EventDispatcher}
|
25
|
+
* @param {Element=} elem
|
26
|
+
* @param {(boolean|Object)=} options Boolean is treated as useTouchMove
|
27
|
+
*/
|
28
|
+
var TouchProxy = function (elem, options) {
|
29
|
+
this._onTouchStart = this._dispatch.bind(this, "touchStart");
|
30
|
+
this._onTouchEnd = this._dispatch.bind(this, "touchEnd");
|
31
|
+
this._onTouchMove = this._dispatch.bind(this, "touchMove");
|
32
|
+
|
33
|
+
if(options) {
|
34
|
+
if(typeof options == "boolean") {
|
35
|
+
this._touchMove = true;
|
36
|
+
} else {
|
37
|
+
if(options["useTouchMove"]) {
|
38
|
+
this._touchMove = true;
|
39
|
+
}
|
40
|
+
if(options["preventDefault"]) {
|
41
|
+
this._defaultPrevented = true;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
if(!this._defaultPrevented) {
|
46
|
+
this._evtOptions = TouchProxy.passive;
|
47
|
+
}
|
48
|
+
this.setElement(elem);
|
49
|
+
};
|
50
|
+
Ext.inherits(TouchProxy, EventDispatcher);
|
51
|
+
|
52
|
+
/** @type {Element}
|
53
|
+
* @private
|
54
|
+
*/
|
55
|
+
TouchProxy.prototype._elem;
|
56
|
+
/** @type {!Function}
|
57
|
+
* @private
|
58
|
+
*/
|
59
|
+
TouchProxy.prototype._onTouchStart;
|
60
|
+
/** @type {!Function}
|
61
|
+
* @private
|
62
|
+
*/
|
63
|
+
TouchProxy.prototype._onTouchEnd;
|
64
|
+
/** @type {!Function}
|
65
|
+
* @private
|
66
|
+
*/
|
67
|
+
TouchProxy.prototype._onTouchMove;
|
68
|
+
/** @type {boolean}
|
69
|
+
* @private
|
70
|
+
*/
|
71
|
+
TouchProxy.prototype._touchMove = false;
|
72
|
+
/** @type {boolean}
|
73
|
+
* @private
|
74
|
+
*/
|
75
|
+
TouchProxy.prototype._defaultPrevented = false;
|
76
|
+
/** @type {!EventListenerOptions}
|
77
|
+
* @private
|
78
|
+
*/
|
79
|
+
TouchProxy.prototype._evtOptions;
|
80
|
+
/** @type {!EventListenerOptions}
|
81
|
+
* @public
|
82
|
+
*/
|
83
|
+
TouchProxy.passive = {"passive": true};
|
84
|
+
|
85
|
+
/** @public
|
86
|
+
* @return {Element}
|
87
|
+
*/
|
88
|
+
TouchProxy.prototype.getElement = function() {
|
89
|
+
return this._elem;
|
90
|
+
};
|
91
|
+
/** @public
|
92
|
+
* @param {Element=} elem
|
93
|
+
*/
|
94
|
+
TouchProxy.prototype.setElement = function(elem) {
|
95
|
+
this.detachTouchEvents();
|
96
|
+
this._elem = elem || null;
|
97
|
+
this.attachTouchEvents(this._touchMove);
|
98
|
+
};
|
99
|
+
/** @public
|
100
|
+
* @function
|
101
|
+
* @param {Element} elem
|
102
|
+
*/
|
103
|
+
TouchProxy.prototype.applyTrait = TouchProxy.prototype.setElement;
|
104
|
+
/** @public */
|
105
|
+
TouchProxy.prototype.dispose = function() {
|
106
|
+
this.setElement(null);
|
107
|
+
};
|
108
|
+
|
109
|
+
/** @public
|
110
|
+
* @param {Function=} touchStartFunc
|
111
|
+
* @param {Function=} touchEndFunc
|
112
|
+
* @param {Function=} touchMoveFunc
|
113
|
+
*/
|
114
|
+
TouchProxy.prototype.addTouchListeners = function(touchStartFunc, touchEndFunc, touchMoveFunc) {
|
115
|
+
if(touchStartFunc) {
|
116
|
+
this.addEventListener("touchStart", touchStartFunc);
|
117
|
+
}
|
118
|
+
if(touchEndFunc) {
|
119
|
+
this.addEventListener("touchEnd", touchEndFunc);
|
120
|
+
}
|
121
|
+
if(touchMoveFunc) {
|
122
|
+
this.addEventListener("touchMove", touchMoveFunc);
|
123
|
+
}
|
124
|
+
};
|
125
|
+
/** @public
|
126
|
+
* @function
|
127
|
+
*/
|
128
|
+
TouchProxy.prototype.removeTouchListeners = TouchProxy.prototype.unlistenAll;
|
129
|
+
|
130
|
+
/** @public */
|
131
|
+
TouchProxy.prototype.attachTouchMoveEvent = function() {
|
132
|
+
var elem = this._elem;
|
133
|
+
if(elem) {
|
134
|
+
if(this._defaultPrevented) {
|
135
|
+
elem.addEventListener("touchmove", EventDispatcher.preventDefault);
|
136
|
+
}
|
137
|
+
elem.addEventListener("touchmove", this._onTouchMove, this._evtOptions);
|
138
|
+
}
|
139
|
+
};
|
140
|
+
/** @public */
|
141
|
+
TouchProxy.prototype.detachTouchMoveEvent = function() {
|
142
|
+
var elem = this._elem;
|
143
|
+
if(elem) {
|
144
|
+
if(this._defaultPrevented) {
|
145
|
+
elem.removeEventListener("touchmove", EventDispatcher.preventDefault);
|
146
|
+
}
|
147
|
+
elem.removeEventListener("touchmove", this._onTouchMove, this._evtOptions);
|
148
|
+
}
|
149
|
+
};
|
150
|
+
/** @public
|
151
|
+
* @param {boolean=} touchMove
|
152
|
+
*/
|
153
|
+
TouchProxy.prototype.attachTouchEvents = function(touchMove) {
|
154
|
+
var elem = this._elem;
|
155
|
+
if(elem) {
|
156
|
+
elem.addEventListener("touchstart", this._onTouchStart, this._evtOptions);
|
157
|
+
elem.addEventListener("touchend", this._onTouchEnd, this._evtOptions);
|
158
|
+
elem.addEventListener("touchcancel", this._onTouchEnd, this._evtOptions);
|
159
|
+
if(touchMove) {
|
160
|
+
this.attachTouchMoveEvent();
|
161
|
+
}
|
162
|
+
}
|
163
|
+
};
|
164
|
+
/** @public */
|
165
|
+
TouchProxy.prototype.detachTouchEvents = function() {
|
166
|
+
var elem = this._elem;
|
167
|
+
if(elem) {
|
168
|
+
elem.removeEventListener("touchstart", this._onTouchStart, this._evtOptions);
|
169
|
+
elem.removeEventListener("touchend", this._onTouchEnd, this._evtOptions);
|
170
|
+
elem.removeEventListener("touchcancel", this._onTouchEnd, this._evtOptions);
|
171
|
+
this.detachTouchMoveEvent();
|
172
|
+
}
|
173
|
+
};
|
174
|
+
|
175
|
+
/** @public
|
176
|
+
* @function
|
177
|
+
* @param {Event} e
|
178
|
+
* @return {number} 0 is Left mouse button
|
179
|
+
*/
|
180
|
+
TouchProxy.getButtonType = function(e) {
|
181
|
+
if(e.changedTouches) {
|
182
|
+
return 0;
|
183
|
+
} else {
|
184
|
+
return e.button || 0; // Support from IE9+
|
185
|
+
}
|
186
|
+
};
|
187
|
+
/** @public
|
188
|
+
* @function
|
189
|
+
* @param {Event|Object} e
|
190
|
+
* @param {Object=} obj
|
191
|
+
* @return {!Object}
|
192
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent}
|
193
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent}
|
194
|
+
*/
|
195
|
+
TouchProxy.getPosition = function(e, obj) {
|
196
|
+
var touches = e.changedTouches;
|
197
|
+
var mPos = (touches) ? touches[touches.length - 1] : e;
|
198
|
+
|
199
|
+
if(!obj) {
|
200
|
+
obj = {};
|
201
|
+
}
|
202
|
+
obj["x"] = obj["pageX"] = mPos.pageX; // window.pageXOffset
|
203
|
+
obj["y"] = obj["pageY"] = mPos.pageY; // window.pageYOffset
|
204
|
+
obj["clientX"] = mPos.clientX; // Allow relative position calculation and distance comparison
|
205
|
+
obj["clientY"] = mPos.clientY;
|
206
|
+
obj["timeStamp"] = e.timeStamp;
|
207
|
+
return obj;
|
208
|
+
};
|
209
|
+
|
210
|
+
|
211
|
+
export {TouchProxy};
|
212
|
+
export default TouchProxy;
|