@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,794 @@
|
|
1
|
+
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
|
+
import { cloneObject, injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
3
|
+
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
4
|
+
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
5
|
+
import Dom from "../../tr-grid-util/es6/Dom.js";
|
6
|
+
|
7
|
+
/** @typedef {Object} RowDraggingPlugin~Options
|
8
|
+
* @description Available options describing `rowDragging` object specified in grid's option
|
9
|
+
* @property {boolean=} dragBox=false If enabled, information box will be shown during the drag
|
10
|
+
* @property {boolean=} disabled=false If enabled, dataTransfer and autoScroll will be disabled, and guileline UI will not been shown.
|
11
|
+
* @property {boolean=} mouseInput=true If disabled, mousemove/mousedown will not trigger the drag operation.
|
12
|
+
* @property {boolean=} dataTransfer=true If disabled, internal row data will not be moved at the end of the drag operation.
|
13
|
+
* @property {boolean=} autoScroll=true If disabled, grid will not be verticallly scrolled when mouse is hovering around the edges of the grid.
|
14
|
+
* @property {Function=} dragBoxRenderer Allow user to customize dragBox
|
15
|
+
* @property {Function=} dragStart=null Function handler for dragStart event
|
16
|
+
* @property {Function=} drag=null Function handler for drag event
|
17
|
+
* @property {Function=} dragEnd=null Function handler for dragEnd event
|
18
|
+
* @property {Function=} dataMoved=null Function handler for dataMoved event
|
19
|
+
*/
|
20
|
+
|
21
|
+
/** @event RowDraggingPlugin#drag
|
22
|
+
* @description Fired on each mousemove or touchmove
|
23
|
+
* @type {Object}
|
24
|
+
*/
|
25
|
+
/** @event RowDraggingPlugin#dragStart
|
26
|
+
* @description The event is fired at the beginning of the drag operation. You can cancel the operation by setting cancel property to true.
|
27
|
+
* @type {Object}
|
28
|
+
* @example
|
29
|
+
* // ...
|
30
|
+
* dragStart: function(e) {
|
31
|
+
* e.cancel = true; // To cancel the operation
|
32
|
+
* }, // ..
|
33
|
+
*/
|
34
|
+
/** @event RowDraggingPlugin#dragEnd
|
35
|
+
* @description The event will always be fired at the end of the drag operation. This is to allow clearing of any resource used. You can cancel the data moving operation by setting cancel property to true.
|
36
|
+
* @type {Object}
|
37
|
+
*/
|
38
|
+
/** @event RowDraggingPlugin#dragInterval
|
39
|
+
* @description Fired at an interval during drag
|
40
|
+
* @type {Object}
|
41
|
+
*/
|
42
|
+
/** @event RowDraggingPlugin#dataMoved
|
43
|
+
* @description Fired when rows or data are moved by drag operation.
|
44
|
+
* @type {Object}
|
45
|
+
*/
|
46
|
+
|
47
|
+
/** @constructor
|
48
|
+
* @param {RowDraggingPlugin.Options=} options
|
49
|
+
* @extends {GridPlugin}
|
50
|
+
*/
|
51
|
+
var RowDraggingPlugin = function (options) {
|
52
|
+
var t = this;
|
53
|
+
|
54
|
+
t.startDrag = t.startDrag.bind(t);
|
55
|
+
t.stopDrag = t.stopDrag.bind(t);
|
56
|
+
t._clearCache = t._clearCache.bind(t);
|
57
|
+
|
58
|
+
t._onMouseDown = t._onMouseDown.bind(t);
|
59
|
+
|
60
|
+
t._onDragPulse = t._onDragPulse.bind(t);
|
61
|
+
t._onContentScrolled = t._onContentScrolled.bind(t);
|
62
|
+
|
63
|
+
t._onDragStart = t._onDragStart.bind(t);
|
64
|
+
t._onMouseMove = t._onMouseMove.bind(t);
|
65
|
+
t._onDragEnd = t._onDragEnd.bind(t);
|
66
|
+
t._onThemeLoaded = t._onThemeLoaded.bind(t);
|
67
|
+
|
68
|
+
t._hosts = [];
|
69
|
+
|
70
|
+
t._guideline = document.createElement("svg"); // TODO: Change from svg to normal div
|
71
|
+
t._guideline.className = "tr-row-guideline";
|
72
|
+
|
73
|
+
t.config({ "rowDragging": options });
|
74
|
+
};
|
75
|
+
Ext.inherits(RowDraggingPlugin, GridPlugin);
|
76
|
+
|
77
|
+
/** @type {string}
|
78
|
+
* @private
|
79
|
+
*/
|
80
|
+
RowDraggingPlugin._styles = ""; // Static variable
|
81
|
+
/** @type {Promise<Object>}
|
82
|
+
* @private
|
83
|
+
*/
|
84
|
+
RowDraggingPlugin._stylePromise = null; // Static variable
|
85
|
+
|
86
|
+
/** @type {Element}
|
87
|
+
* @private
|
88
|
+
*/
|
89
|
+
RowDraggingPlugin.prototype._guideline = null;
|
90
|
+
/** For disabled UI
|
91
|
+
* @type {boolean}
|
92
|
+
* @private
|
93
|
+
*/
|
94
|
+
RowDraggingPlugin.prototype._disabled = false;
|
95
|
+
/** @type {Element}
|
96
|
+
* @private
|
97
|
+
*/
|
98
|
+
RowDraggingPlugin.prototype._dragTarget = null;
|
99
|
+
/** @type {Object}
|
100
|
+
* @private
|
101
|
+
*/
|
102
|
+
RowDraggingPlugin.prototype._dragBoxRenderer = null;
|
103
|
+
/** @type {*}
|
104
|
+
* @private
|
105
|
+
*/
|
106
|
+
RowDraggingPlugin.prototype._legacyRowReorder = null;
|
107
|
+
/** @type {Object}
|
108
|
+
* @private
|
109
|
+
*/
|
110
|
+
RowDraggingPlugin.prototype._pos = null;
|
111
|
+
/** @type {string}
|
112
|
+
* @private
|
113
|
+
*/
|
114
|
+
RowDraggingPlugin.prototype._startingRid = "";
|
115
|
+
/** Core grid instance
|
116
|
+
* @type {Object}
|
117
|
+
* @private
|
118
|
+
*/
|
119
|
+
RowDraggingPlugin.prototype._startingGrid = null;
|
120
|
+
|
121
|
+
/** @type {number}
|
122
|
+
* @private
|
123
|
+
*/
|
124
|
+
RowDraggingPlugin.prototype._dragPulseId = 0;
|
125
|
+
/** @type {number}
|
126
|
+
* @private
|
127
|
+
*/
|
128
|
+
RowDraggingPlugin.prototype._topBound = 0; // For drag pulse
|
129
|
+
/** @type {number}
|
130
|
+
* @private
|
131
|
+
*/
|
132
|
+
RowDraggingPlugin.prototype._btmBound = 0; // For drag pulse
|
133
|
+
/** @type {number}
|
134
|
+
* @private
|
135
|
+
*/
|
136
|
+
RowDraggingPlugin.prototype._scrollStep = 40; // For drag pulse
|
137
|
+
|
138
|
+
/** @type {boolean}
|
139
|
+
* @private
|
140
|
+
*/
|
141
|
+
RowDraggingPlugin.prototype._dragging = false;
|
142
|
+
/** @type {boolean}
|
143
|
+
* @private
|
144
|
+
*/
|
145
|
+
RowDraggingPlugin.prototype._scrollingZone = false;
|
146
|
+
/** @type {boolean}
|
147
|
+
* @private
|
148
|
+
*/
|
149
|
+
RowDraggingPlugin.prototype._touchMode = false;
|
150
|
+
/** @type {boolean}
|
151
|
+
* @private
|
152
|
+
*/
|
153
|
+
RowDraggingPlugin.prototype._mouseInput = true;
|
154
|
+
/** @type {boolean}
|
155
|
+
* @private
|
156
|
+
*/
|
157
|
+
RowDraggingPlugin.prototype._dragBoxEnabled = false;
|
158
|
+
/** @type {boolean}
|
159
|
+
* @private
|
160
|
+
*/
|
161
|
+
RowDraggingPlugin.prototype._dataTransfer = true;
|
162
|
+
/** @type {boolean}
|
163
|
+
* @private
|
164
|
+
*/
|
165
|
+
RowDraggingPlugin.prototype._autoScroll = true;
|
166
|
+
|
167
|
+
|
168
|
+
/** Prevent built-in config
|
169
|
+
* @public
|
170
|
+
* @param {string} optionName
|
171
|
+
* @param {*} optionValue
|
172
|
+
* @return {*}
|
173
|
+
*/
|
174
|
+
RowDraggingPlugin.prototype.beforeProcessOption = function (optionName, optionValue) {
|
175
|
+
if (optionName === "rowReorder") {
|
176
|
+
this._legacyRowReorder = optionValue;
|
177
|
+
return false; // eslint-disable-line
|
178
|
+
}
|
179
|
+
return; // eslint-disable-line
|
180
|
+
};
|
181
|
+
|
182
|
+
/** Plugin can have multiple hosts/tables and share its states across those hosts/tables.
|
183
|
+
* @public
|
184
|
+
* @override
|
185
|
+
* @return {boolean}
|
186
|
+
*/
|
187
|
+
RowDraggingPlugin.prototype.hasMultiTableSupport = function() {
|
188
|
+
return true;
|
189
|
+
};
|
190
|
+
|
191
|
+
/** @public
|
192
|
+
* @return {string}
|
193
|
+
*/
|
194
|
+
RowDraggingPlugin.prototype.getName = function () {
|
195
|
+
return "RowDraggingPlugin"; // Read Only
|
196
|
+
};
|
197
|
+
/** @public
|
198
|
+
* @param {Object} host core grid instance
|
199
|
+
* @param {Object} options
|
200
|
+
*/
|
201
|
+
RowDraggingPlugin.prototype.initialize = function (host, options) {
|
202
|
+
if (this._hosts.indexOf(host) >= 0) { return; }
|
203
|
+
this._hosts.push(host);
|
204
|
+
|
205
|
+
this.config(options);
|
206
|
+
|
207
|
+
if (this._mouseInput) {
|
208
|
+
host.setAttribute("draggable", "true");
|
209
|
+
host.listen("dragstart", this.startDrag);
|
210
|
+
}
|
211
|
+
// host.listen("mouseover", this._onContentScrolled);
|
212
|
+
host.listen("mousedown", this._onMouseDown);
|
213
|
+
host.listen("touchstart", this._onMouseDown);
|
214
|
+
|
215
|
+
if(RowDraggingPlugin._stylePromise) {
|
216
|
+
RowDraggingPlugin._applyThemeColor(host);
|
217
|
+
} else {
|
218
|
+
RowDraggingPlugin._stylePromise = ElfUtil.getThemeColors();
|
219
|
+
RowDraggingPlugin._stylePromise.then(this._onThemeLoaded);
|
220
|
+
}
|
221
|
+
|
222
|
+
// In case of lazy loading
|
223
|
+
// host.getAllSections("content").forEach(this._registerSection);
|
224
|
+
};
|
225
|
+
/** @public
|
226
|
+
* @param {Object} host core grid instance
|
227
|
+
*/
|
228
|
+
RowDraggingPlugin.prototype.unload = function (host) {
|
229
|
+
var at = this._hosts.indexOf(host);
|
230
|
+
if (at < 0) { return; }
|
231
|
+
|
232
|
+
// host.removeAttribute("draggable");
|
233
|
+
host.unlisten("dragstart", this.startDrag);
|
234
|
+
// host.unlisten("mouseover", this._onContentScrolled);
|
235
|
+
host.unlisten("mousedown", this._onMouseDown);
|
236
|
+
host.unlisten("touchstart", this._onMouseDown);
|
237
|
+
|
238
|
+
this._hosts.splice(at, 1);
|
239
|
+
if (!this._hosts.length) {
|
240
|
+
this._clearCache();
|
241
|
+
}
|
242
|
+
this._dispose();
|
243
|
+
};
|
244
|
+
|
245
|
+
/** @private
|
246
|
+
* @param {Object} colors
|
247
|
+
*/
|
248
|
+
RowDraggingPlugin.prototype._onThemeLoaded = function(colors) {
|
249
|
+
if(!RowDraggingPlugin._styles) {
|
250
|
+
var styles = [ // Main Styles without theme
|
251
|
+
".tr-row-guideline", [
|
252
|
+
"position: absolute;",
|
253
|
+
"left: 0;",
|
254
|
+
"top: 0;",
|
255
|
+
"pointer-events: none;",
|
256
|
+
"z-index: 1;",
|
257
|
+
"text-align: center;",
|
258
|
+
"border-top-width: 3px;",
|
259
|
+
"border-top-style: solid;"
|
260
|
+
]
|
261
|
+
];
|
262
|
+
var guidelineColor = "#ff9933";
|
263
|
+
var ElfVersion = ElfUtil.getElfVersion();
|
264
|
+
if(colors.primary) {
|
265
|
+
guidelineColor = colors.primary;
|
266
|
+
}
|
267
|
+
guidelineColor += ";";
|
268
|
+
|
269
|
+
styles.push(".tr-row-guideline", [
|
270
|
+
"border-top-color: " + guidelineColor,
|
271
|
+
"color: " + guidelineColor,
|
272
|
+
"background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));"
|
273
|
+
]);
|
274
|
+
|
275
|
+
if(ElfVersion < 3) { // Backward compatability
|
276
|
+
styles.push(".pearl .tr-row-guideline, *[theme=pearl] .tr-row-guideline", [
|
277
|
+
"border-top-color: #ee7600;",
|
278
|
+
"color: #ee7600;",
|
279
|
+
"background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));"
|
280
|
+
]);
|
281
|
+
}
|
282
|
+
RowDraggingPlugin._styles = prettifyCss(styles);
|
283
|
+
}
|
284
|
+
|
285
|
+
for(var i = this._hosts.length; --i >= 0;) {
|
286
|
+
RowDraggingPlugin._applyThemeColor(this._hosts[i]);
|
287
|
+
}
|
288
|
+
};
|
289
|
+
/** @private
|
290
|
+
* @param {Object} grid core grid instance
|
291
|
+
*/
|
292
|
+
RowDraggingPlugin._applyThemeColor = function(grid) {
|
293
|
+
if(!grid || grid._rowDraggingStyles) {
|
294
|
+
return;
|
295
|
+
}
|
296
|
+
if(RowDraggingPlugin._styles) {
|
297
|
+
grid._rowDraggingStyles = true; // Prevent loading the same style twice
|
298
|
+
injectCss(RowDraggingPlugin._styles, grid.getElement());
|
299
|
+
}
|
300
|
+
};
|
301
|
+
|
302
|
+
/** @public
|
303
|
+
* @param {Object=} options Grid model object
|
304
|
+
*/
|
305
|
+
RowDraggingPlugin.prototype.config = function (options) {
|
306
|
+
if (!options) { return; }
|
307
|
+
|
308
|
+
var extOptions = options["rowDragging"] || this._legacyRowReorder;
|
309
|
+
if (!extOptions) {
|
310
|
+
return;
|
311
|
+
}
|
312
|
+
|
313
|
+
if (typeof extOptions["dragBoxRenderer"] === "function") {
|
314
|
+
this._dragBoxRenderer = extOptions["dragBoxRenderer"];
|
315
|
+
}
|
316
|
+
|
317
|
+
this._dragBoxEnabled = !!extOptions["dragBox"];
|
318
|
+
|
319
|
+
var val = extOptions["mouseInput"];
|
320
|
+
if (val != null) {
|
321
|
+
this._mouseInput = !!val;
|
322
|
+
}
|
323
|
+
val = extOptions["dataTransfer"];
|
324
|
+
if (val != null) {
|
325
|
+
this._dataTransfer = !!val;
|
326
|
+
}
|
327
|
+
val = extOptions["autoScroll"];
|
328
|
+
if (val != null) {
|
329
|
+
this._autoScroll = !!val;
|
330
|
+
}
|
331
|
+
|
332
|
+
if (extOptions["disabled"]) {
|
333
|
+
this._disabled = true;
|
334
|
+
}
|
335
|
+
|
336
|
+
this.addListener(extOptions, "dragStart");
|
337
|
+
this.addListener(extOptions, "drag");
|
338
|
+
this.addListener(extOptions, "dragEnd");
|
339
|
+
this.addListener(extOptions, "dataMoved");
|
340
|
+
};
|
341
|
+
|
342
|
+
/** Get a current state of grid and extension config
|
343
|
+
* @public
|
344
|
+
* @param {Object=} out_obj
|
345
|
+
* @returns {!Object}
|
346
|
+
*/
|
347
|
+
RowDraggingPlugin.prototype.getConfigObject = function (out_obj) {
|
348
|
+
var obj = out_obj || {};
|
349
|
+
|
350
|
+
var extOptions = obj.rowDragging;
|
351
|
+
if(!extOptions) {
|
352
|
+
extOptions = obj.rowDragging = {};
|
353
|
+
}
|
354
|
+
extOptions.dragBox = this._dragBoxEnabled;
|
355
|
+
extOptions.mouseInput = this._mouseInput;
|
356
|
+
extOptions.autoScroll = this._autoScroll;
|
357
|
+
extOptions.dataTransfer = this._dataTransfer;
|
358
|
+
extOptions.disabled = this._disabled;
|
359
|
+
|
360
|
+
return obj;
|
361
|
+
};
|
362
|
+
|
363
|
+
/** @public
|
364
|
+
* @param {*} startRef
|
365
|
+
* @param {boolean=} opt_suppressEvent
|
366
|
+
*/
|
367
|
+
RowDraggingPlugin.prototype.startDrag = function (startRef) {
|
368
|
+
if (this._dragging || this._hosts.length <= 0) { return; }
|
369
|
+
|
370
|
+
var pos;
|
371
|
+
if (startRef) {
|
372
|
+
if (startRef.type === "dragstart") {
|
373
|
+
if(startRef["preventDefault"]) {
|
374
|
+
Dom.preventDefault(startRef);
|
375
|
+
}
|
376
|
+
var host = this.getRelativeGrid(startRef);
|
377
|
+
if (host) {
|
378
|
+
pos = host.getRelativePosition(this._dragTarget);
|
379
|
+
}
|
380
|
+
} else {
|
381
|
+
pos = this._hitTest(startRef);
|
382
|
+
}
|
383
|
+
} else {
|
384
|
+
var target = this._dragTarget || this._hosts[0].getSection("content").getCell(0, 0);
|
385
|
+
pos = this._hitTest(target);
|
386
|
+
}
|
387
|
+
|
388
|
+
if (pos && pos["sectionType"] === "content") {
|
389
|
+
this._clearCache();
|
390
|
+
this._pos = pos;
|
391
|
+
this._onDragStart(startRef);
|
392
|
+
}
|
393
|
+
};
|
394
|
+
/** @public */
|
395
|
+
RowDraggingPlugin.prototype.stopDrag = function () {
|
396
|
+
if (!this._dragging) {
|
397
|
+
this.cancelDrag(); // Cancel drag if this method is called on dragStart event
|
398
|
+
return;
|
399
|
+
}
|
400
|
+
|
401
|
+
this.cancelDrag();
|
402
|
+
this._onDragEnd();
|
403
|
+
};
|
404
|
+
/** @public */
|
405
|
+
RowDraggingPlugin.prototype.cancelDrag = function () {
|
406
|
+
if (this._pos) { this._pos["cancel"] = true; }
|
407
|
+
};
|
408
|
+
|
409
|
+
/** @public
|
410
|
+
* @return {Element}
|
411
|
+
*/
|
412
|
+
RowDraggingPlugin.prototype.getGuideline = function () {
|
413
|
+
return this._guideline;
|
414
|
+
};
|
415
|
+
|
416
|
+
/** @private
|
417
|
+
* @param {*} e
|
418
|
+
* @return {!Object}
|
419
|
+
*/
|
420
|
+
RowDraggingPlugin.prototype._hitTest = function (e) {
|
421
|
+
var host = this.getRelativeGrid(e);
|
422
|
+
if (host) {
|
423
|
+
var pos;
|
424
|
+
if (e.changedTouches) {
|
425
|
+
// https://stackoverflow.com/questions/3918842/how-to-find-out-the-actual-event-target-of-touchmove-javascript-event
|
426
|
+
var touchPos = e.changedTouches[0];
|
427
|
+
pos = host.getRelativePosition(
|
428
|
+
document.elementFromPoint(
|
429
|
+
touchPos.clientX, touchPos.clientY
|
430
|
+
)
|
431
|
+
);
|
432
|
+
Dom.getRelativePosition(touchPos, host.getElement(), pos); // Overwrite x and y property
|
433
|
+
} else {
|
434
|
+
pos = host.getRelativePosition(e);
|
435
|
+
}
|
436
|
+
return pos;
|
437
|
+
} else {
|
438
|
+
return /** @type{!Object} */(e || {});
|
439
|
+
}
|
440
|
+
};
|
441
|
+
|
442
|
+
/** @private
|
443
|
+
* @param {Event} e
|
444
|
+
*/
|
445
|
+
RowDraggingPlugin.prototype._onMouseDown = function (e) {
|
446
|
+
if (e.changedTouches) {
|
447
|
+
this._touchMode = true;
|
448
|
+
}
|
449
|
+
this._dragTarget = /** @type{Element} */(e.target);
|
450
|
+
};
|
451
|
+
/** @private
|
452
|
+
* @param {*=} e
|
453
|
+
*/
|
454
|
+
RowDraggingPlugin.prototype._onDragStart = function (e) {
|
455
|
+
if (this._dragging) { return; }
|
456
|
+
if (!this._pos) { return; }
|
457
|
+
|
458
|
+
this._dispatch("dragStart", this._pos);
|
459
|
+
if (this._isDragCancelled()) {
|
460
|
+
return;
|
461
|
+
}
|
462
|
+
|
463
|
+
this._dragging = true;
|
464
|
+
// Event listeners
|
465
|
+
document.body.classList.add("tr-dragging"); // Prevent text selection
|
466
|
+
|
467
|
+
window.addEventListener("mousemove", this._onMouseMove, false);
|
468
|
+
window.addEventListener("touchmove", this._onMouseMove, false);
|
469
|
+
window.addEventListener("mouseup", this._onDragEnd, false);
|
470
|
+
window.addEventListener("touchend", this._onDragEnd, false);
|
471
|
+
window.addEventListener("touchcancel", this._onDragEnd, false);
|
472
|
+
|
473
|
+
if (this._touchMode) {
|
474
|
+
for (var i = this._hosts.length; --i >= 0;) {
|
475
|
+
var host = this._hosts[i];
|
476
|
+
host.getVScrollbar().disableTouchInput();
|
477
|
+
host.getHScrollbar().disableTouchInput();
|
478
|
+
}
|
479
|
+
}
|
480
|
+
|
481
|
+
// Update UI, grid cursor and guideline
|
482
|
+
if (!this._disabled) { //disabledUI
|
483
|
+
var grid = this._pos["grid"] || null;
|
484
|
+
if (!grid) return;
|
485
|
+
|
486
|
+
if (this._dataTransfer) {
|
487
|
+
var rowIndex = this._pos["rowIndex"];
|
488
|
+
var dv = grid.getDataSource();
|
489
|
+
this._startingRid = dv.getRowId(rowIndex);
|
490
|
+
this._startingGrid = grid;
|
491
|
+
|
492
|
+
if (this._dragBoxRenderer) { // For custom drag box rendering
|
493
|
+
var arg = cloneObject(e); // TODO: Check if cloning is necessary
|
494
|
+
arg.dragBox = this._guideline;
|
495
|
+
arg.dataRow = this._getRowData(dv.getRowDataAt(rowIndex));
|
496
|
+
|
497
|
+
if (this._legacyRowReorder) {
|
498
|
+
this._dragBoxRenderer(e, arg.dragBox, [arg.dataRow]);
|
499
|
+
} else {
|
500
|
+
this._dragBoxRenderer(arg);
|
501
|
+
}
|
502
|
+
}
|
503
|
+
}
|
504
|
+
|
505
|
+
// TODO: Just update curser will not gonna work since cell is pointer-events: none;
|
506
|
+
// we should do something to overwrite pointer-events first
|
507
|
+
// then set cursor move will have an effect
|
508
|
+
grid.getElement().style.cursor = "move";
|
509
|
+
|
510
|
+
// Initialize guideline
|
511
|
+
this._guideline.style.lineHeight = this._guideline.style.height = "";
|
512
|
+
this._updateGuideParent(); // Insert guideline to the document
|
513
|
+
this._updateGuidePosition();
|
514
|
+
|
515
|
+
if (this._autoScroll) {
|
516
|
+
var scrollbar = grid.getVScrollbar();
|
517
|
+
this._topBound = scrollbar.getTop() + 50;
|
518
|
+
this._btmBound = scrollbar.getTop() + scrollbar.getHeight() - 50;
|
519
|
+
|
520
|
+
if (this._topBound < this._btmBound) {
|
521
|
+
// For step scrolling
|
522
|
+
this._scrollStep = Math.floor(grid.getScrollHeight() / 25); // Update the scrollbar first
|
523
|
+
if (this._scrollStep < 40) {
|
524
|
+
this._scrollStep = 40;
|
525
|
+
} else if (this._scrollStep > 400) {
|
526
|
+
this._scrollStep = 400;
|
527
|
+
}
|
528
|
+
this._dragPulseId = setInterval(this._onDragPulse, 130); // Start pulse
|
529
|
+
}
|
530
|
+
}
|
531
|
+
}
|
532
|
+
};
|
533
|
+
/** @private
|
534
|
+
* @param {Object} e
|
535
|
+
*/
|
536
|
+
RowDraggingPlugin.prototype._onMouseMove = function (e) {
|
537
|
+
if (!this._dragging) { return; }
|
538
|
+
|
539
|
+
if (e.type != "touchmove") {
|
540
|
+
if (!e || (e.which !== 1)) { // Left click is not down. Support in IE9 and up
|
541
|
+
this.stopDrag();
|
542
|
+
return;
|
543
|
+
}
|
544
|
+
Dom.preventDefault(e);
|
545
|
+
}
|
546
|
+
|
547
|
+
this._pos = this._hitTest(e); // A new object is created
|
548
|
+
|
549
|
+
this._updateGuideParent();
|
550
|
+
|
551
|
+
// Dispatch drag event to let user determine valid drop target using allowDrag (allowDrop) method
|
552
|
+
this._dispatch("drag", this._pos);
|
553
|
+
|
554
|
+
this._updateGuidePosition(e);
|
555
|
+
};
|
556
|
+
/** @private
|
557
|
+
* @param {Object} e
|
558
|
+
*/
|
559
|
+
RowDraggingPlugin.prototype._onDragEnd = function (e) {
|
560
|
+
if (!this._dragging) { return; }
|
561
|
+
this._dragging = false;
|
562
|
+
|
563
|
+
if(e) {
|
564
|
+
Dom.preventDefault(e);
|
565
|
+
}
|
566
|
+
Dom.removeParent(this._guideline);
|
567
|
+
|
568
|
+
document.body.classList.remove("tr-dragging");
|
569
|
+
|
570
|
+
window.removeEventListener("mousemove", this._onMouseMove, false);
|
571
|
+
window.removeEventListener("touchmove", this._onMouseMove, false);
|
572
|
+
window.removeEventListener("mouseup", this._onDragEnd, false);
|
573
|
+
window.removeEventListener("touchend", this._onDragEnd, false);
|
574
|
+
window.removeEventListener("touchcancel", this._onDragEnd, false);
|
575
|
+
|
576
|
+
if (this._touchMode) {
|
577
|
+
for (var i = this._hosts.length; --i >= 0;) {
|
578
|
+
var host = this._hosts[i];
|
579
|
+
host.getVScrollbar().disableTouchInput(false);
|
580
|
+
host.getHScrollbar().disableTouchInput(false);
|
581
|
+
}
|
582
|
+
}
|
583
|
+
|
584
|
+
var srcGrid = this._startingGrid || this._hosts[0];
|
585
|
+
srcGrid.getElement().style.cursor = "";
|
586
|
+
|
587
|
+
var destPos = this._pos; // This can be null
|
588
|
+
if(!this._isDragCancelled()) {
|
589
|
+
destPos["srcGrid"] = srcGrid; // destPos is always valid at this point
|
590
|
+
// WARNING: dropTarget is not correct for element in a shadow root
|
591
|
+
destPos["dropTarget"] = e ? e.target : null;
|
592
|
+
|
593
|
+
if (!this.disabled) {
|
594
|
+
if (this._dataTransfer && this._isInContentSection()) {
|
595
|
+
var destGrid = destPos["grid"] || srcGrid;
|
596
|
+
var destRowIndex = destPos["rowIndex"];
|
597
|
+
|
598
|
+
var rowSelection = srcGrid.getPlugin('RowSelectionPlugin');
|
599
|
+
var srcRowIndices = rowSelection && rowSelection.getSelectedRows();
|
600
|
+
if (!srcRowIndices || !srcRowIndices.length) {
|
601
|
+
// case no row selection or it disabled
|
602
|
+
srcRowIndices = this._startingRid; // Str Type
|
603
|
+
}
|
604
|
+
|
605
|
+
this._moveRows(srcRowIndices, destRowIndex, srcGrid, destGrid, destPos);
|
606
|
+
}
|
607
|
+
}
|
608
|
+
}
|
609
|
+
|
610
|
+
this._dispatch("dragEnd", destPos || {}); // Always fire drag end for client to clean up its resource
|
611
|
+
this._clearCache();
|
612
|
+
};
|
613
|
+
/** @private
|
614
|
+
* @param {Array.<number>|string} srcRowRef
|
615
|
+
* @param {number} destRowIndex
|
616
|
+
* @param {Object} srcGrid core grid instance
|
617
|
+
* @param {Object} destGrid core grid instance
|
618
|
+
* @param {Object} evtArg
|
619
|
+
* @return {number}
|
620
|
+
*/
|
621
|
+
RowDraggingPlugin.prototype._moveRows = function (srcRowRef, destRowIndex, srcGrid, destGrid, evtArg) {
|
622
|
+
var destDv = destGrid.getDataSource();
|
623
|
+
var destRowId = destDv.getRowId(destRowIndex);
|
624
|
+
|
625
|
+
if(!destRowId) {
|
626
|
+
return 0;
|
627
|
+
}
|
628
|
+
|
629
|
+
var srcRowIndices = null;
|
630
|
+
var srcDv = srcGrid.getDataSource();
|
631
|
+
if(typeof srcRowRef === "string") {
|
632
|
+
var srcRowIndex = srcDv.getRowIndex(this._startingRid);
|
633
|
+
if(srcRowIndex >= 0) {
|
634
|
+
srcRowIndices = [srcRowIndex];
|
635
|
+
}
|
636
|
+
} else if(Array.isArray(srcRowRef)) {
|
637
|
+
srcRowIndices = srcRowRef;
|
638
|
+
}
|
639
|
+
|
640
|
+
if(!srcRowIndices) {
|
641
|
+
return 0;
|
642
|
+
}
|
643
|
+
|
644
|
+
var movedRowIds = null;
|
645
|
+
if(srcGrid === destGrid) {
|
646
|
+
movedRowIds = srcDv.moveRow(srcRowIndices, destRowIndex) || [];
|
647
|
+
} else {
|
648
|
+
movedRowIds = [];
|
649
|
+
evtArg["destGrid"] = destGrid;
|
650
|
+
|
651
|
+
var originalRows = [];
|
652
|
+
var i;
|
653
|
+
var len = srcRowIndices.length;
|
654
|
+
for(i = 0; i < len; ++i) {
|
655
|
+
var rowId = srcDv.getRowId(srcRowIndices[i]);
|
656
|
+
var rowData = srcDv.getRowData(rowId);
|
657
|
+
if(rowData) {
|
658
|
+
movedRowIds.push(rowId);
|
659
|
+
originalRows.push(rowData);
|
660
|
+
}
|
661
|
+
}
|
662
|
+
len = originalRows.length;
|
663
|
+
if(len) {
|
664
|
+
srcDv.removeRows(srcRowIndices);
|
665
|
+
if(this._realTimeGrid) {
|
666
|
+
for(i = 0; i < len; ++i) {
|
667
|
+
var rowDef = originalRows[i]["ROW_DEF"];
|
668
|
+
rowDef.registerToView(destDv, destRowId);
|
669
|
+
}
|
670
|
+
} else {
|
671
|
+
for(i = 0; i < len; ++i) {
|
672
|
+
destDv.insertRow(destRowId, originalRows[i]); // TODO: Update view data source and grid
|
673
|
+
}
|
674
|
+
}
|
675
|
+
}
|
676
|
+
}
|
677
|
+
|
678
|
+
if(movedRowIds.length) {
|
679
|
+
evtArg["originRowId"] = movedRowIds[0];
|
680
|
+
evtArg["originRowIds"] = movedRowIds;
|
681
|
+
evtArg["destinationRowId"] = destRowId;
|
682
|
+
|
683
|
+
this._dispatch("dataMoved", evtArg);
|
684
|
+
}
|
685
|
+
return movedRowIds.length;
|
686
|
+
};
|
687
|
+
/** @private
|
688
|
+
* @return {boolean}
|
689
|
+
*/
|
690
|
+
RowDraggingPlugin.prototype._isInContentSection = function () {
|
691
|
+
return (this._pos["sectionType"] === "content");
|
692
|
+
};
|
693
|
+
/** @private
|
694
|
+
* @return {boolean}
|
695
|
+
*/
|
696
|
+
RowDraggingPlugin.prototype._hasValidTarget = function () {
|
697
|
+
return (this._pos && this._pos["invalidTarget"]) ? false : true;
|
698
|
+
};
|
699
|
+
/** @private
|
700
|
+
* @return {boolean}
|
701
|
+
*/
|
702
|
+
RowDraggingPlugin.prototype._isDragCancelled = function () {
|
703
|
+
return (this._pos && this._pos["cancel"]) ? true : false;
|
704
|
+
};
|
705
|
+
|
706
|
+
/** @private */
|
707
|
+
RowDraggingPlugin.prototype._updateGuideParent = function () {
|
708
|
+
if (this._disabled) return;
|
709
|
+
|
710
|
+
if (this._isInContentSection()) {
|
711
|
+
var grid = this._pos["grid"] || null;
|
712
|
+
var pn = this._pos["section"].getColumnHost(); // This is to hide out of view guideline
|
713
|
+
if (pn !== this._guideline.parentNode) {
|
714
|
+
this._guideline.style.width = grid.getWidth() + "px";
|
715
|
+
pn.appendChild(this._guideline);
|
716
|
+
}
|
717
|
+
}
|
718
|
+
};
|
719
|
+
|
720
|
+
/** @private
|
721
|
+
* @param {Event} e
|
722
|
+
*/
|
723
|
+
RowDraggingPlugin.prototype._updateGuidePosition = function (e) {
|
724
|
+
if (this._disabled) return;
|
725
|
+
|
726
|
+
if (this._isInContentSection()) {
|
727
|
+
if (this._hasValidTarget()) {
|
728
|
+
var pos = Dom.getRelativePosition(this._pos["cellElement"], this._guideline.parentNode);
|
729
|
+
this._guideline.style.top = (pos["y"] - 1) + "px";
|
730
|
+
var height = (this._pos["section"].getRowHeight(
|
731
|
+
this._pos["rowIndex"]
|
732
|
+
) - 3) + "px";
|
733
|
+
this._guideline.style.lineHeight = this._guideline.style.height = height;
|
734
|
+
}
|
735
|
+
}
|
736
|
+
};
|
737
|
+
/** @private */
|
738
|
+
RowDraggingPlugin.prototype._clearCache = function () {
|
739
|
+
if (this._dragPulseId) {
|
740
|
+
clearInterval(this._dragPulseId);
|
741
|
+
this._dragPulseId = 0;
|
742
|
+
}
|
743
|
+
|
744
|
+
this._pos = this._dragTarget = this._startingGrid = null;
|
745
|
+
|
746
|
+
this._scrollingZone = false;
|
747
|
+
};
|
748
|
+
|
749
|
+
|
750
|
+
/** @private */
|
751
|
+
RowDraggingPlugin.prototype._onDragPulse = function () {
|
752
|
+
if (!this._dragging) { return; }
|
753
|
+
|
754
|
+
this._dispatch("dragInterval", this._pos);
|
755
|
+
|
756
|
+
// Manage vertical scrollbar
|
757
|
+
var primaryHost = this._pos["grid"] || this._startingGrid;
|
758
|
+
if (!primaryHost || !primaryHost.getVScrollbar().isActive()) {
|
759
|
+
return;
|
760
|
+
}
|
761
|
+
|
762
|
+
var y = this._pos["y"];
|
763
|
+
if (y == null) { return; }
|
764
|
+
|
765
|
+
if (y >= this._topBound && y <= this._btmBound) {
|
766
|
+
this._scrollingZone = false;
|
767
|
+
} else {
|
768
|
+
this._scrollingZone = true;
|
769
|
+
var scrollVal = (this._scrollStep * (0.8 + Math.random())) | 0;
|
770
|
+
|
771
|
+
if (y < this._topBound) {
|
772
|
+
scrollVal = -scrollVal;
|
773
|
+
}
|
774
|
+
primaryHost.scrollDown(scrollVal);
|
775
|
+
}
|
776
|
+
};
|
777
|
+
/** @private
|
778
|
+
* @param {Event=} e
|
779
|
+
*/
|
780
|
+
RowDraggingPlugin.prototype._onContentScrolled = function (e) {
|
781
|
+
if (this._scrollingZone && this._dragging && this._pos["hit"]) {
|
782
|
+
var grid = this._pos["grid"];
|
783
|
+
if (grid.getElement() === e.currentTarget) {
|
784
|
+
this._pos = this._hitTest(e);
|
785
|
+
this._dispatch("drag", this._pos);
|
786
|
+
this._updateGuidePosition();
|
787
|
+
}
|
788
|
+
}
|
789
|
+
};
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
export default RowDraggingPlugin;
|
794
|
+
export { RowDraggingPlugin, RowDraggingPlugin as RowDragging, RowDraggingPlugin as RowDraggingExtension };
|