@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,558 @@
|
|
1
|
+
import { Dom } from "./Dom.js";
|
2
|
+
import { Ext } from "./Ext.js";
|
3
|
+
import { ElementWrapper } from "./ElementWrapper.js";
|
4
|
+
|
5
|
+
/** SubTable represents a single tbody, thead, or tfoot element within table element
|
6
|
+
* @constructor
|
7
|
+
* @extends {ElementWrapper}
|
8
|
+
* @param {(Element|string)=} opt_elem
|
9
|
+
*/
|
10
|
+
var SubTable = function(opt_elem) {
|
11
|
+
var elem;
|
12
|
+
if(opt_elem) {
|
13
|
+
if(typeof opt_elem == "string") { // tbody, thead, tfoot
|
14
|
+
elem = document.createElement(opt_elem);
|
15
|
+
} else {
|
16
|
+
elem = /** @type{Element} */(opt_elem);
|
17
|
+
}
|
18
|
+
} else {
|
19
|
+
elem = document.createElement("tbody");
|
20
|
+
}
|
21
|
+
this._elem = elem;
|
22
|
+
|
23
|
+
this._render = SubTable._defaultCellRenderer;
|
24
|
+
};
|
25
|
+
Ext.inherits(SubTable, ElementWrapper);
|
26
|
+
|
27
|
+
/** @type {number}
|
28
|
+
* @private
|
29
|
+
*/
|
30
|
+
SubTable.prototype._colCount = 0;
|
31
|
+
|
32
|
+
/** @type {number|null}
|
33
|
+
* @private
|
34
|
+
*/
|
35
|
+
SubTable.prototype._defaultRowHeight = null;
|
36
|
+
/** @type {!Function}
|
37
|
+
* @private
|
38
|
+
*/
|
39
|
+
SubTable.prototype._render;
|
40
|
+
|
41
|
+
|
42
|
+
/** @public
|
43
|
+
* @ignore
|
44
|
+
* @param {number=} opt_count
|
45
|
+
*/
|
46
|
+
SubTable.prototype.addColumns = function(opt_count) {
|
47
|
+
if(opt_count == null) { opt_count = 1; }
|
48
|
+
else if(opt_count <= 0) { return; }
|
49
|
+
|
50
|
+
this._colCount += opt_count;
|
51
|
+
|
52
|
+
var rows = this.getRows(); // TODO: Must include all suspended rows
|
53
|
+
for(var r = rows.length; --r >= 0;) {
|
54
|
+
var tr = rows[r];
|
55
|
+
for(var c = 0; c < opt_count; ++c) {
|
56
|
+
tr.insertCell(-1);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
};
|
60
|
+
/** @public
|
61
|
+
* @ignore
|
62
|
+
* @param {number=} opt_count
|
63
|
+
*/
|
64
|
+
SubTable.prototype.removeColumns = function(opt_count) {
|
65
|
+
if(opt_count == null || opt_count >= this._colCount) {
|
66
|
+
this.removeAllColumns();
|
67
|
+
}
|
68
|
+
if(opt_count <= 0) { return; }
|
69
|
+
|
70
|
+
this._colCount -= opt_count;
|
71
|
+
var rows = this.getRows(); // TODO: Must include all suspended rows
|
72
|
+
for(var r = rows.length; --r >= 0;) {
|
73
|
+
Dom.removeChildren(rows[r], opt_count);
|
74
|
+
}
|
75
|
+
};
|
76
|
+
/** @public
|
77
|
+
* @ignore
|
78
|
+
*/
|
79
|
+
SubTable.prototype.removeAllColumns = function() {
|
80
|
+
if(this._colCount <= 0) { return; }
|
81
|
+
this._colCount = 0;
|
82
|
+
|
83
|
+
this.removeAllRows();
|
84
|
+
};
|
85
|
+
/** @public
|
86
|
+
* @ignore
|
87
|
+
* @param {number} val
|
88
|
+
*/
|
89
|
+
SubTable.prototype.setColumnCount = function(val) {
|
90
|
+
if(val >= this._colCount) {
|
91
|
+
this.addColumns(val - this._colCount);
|
92
|
+
} else {
|
93
|
+
this.removeColumns(this._colCount - val);
|
94
|
+
}
|
95
|
+
};
|
96
|
+
|
97
|
+
/** @public
|
98
|
+
* @param {number=} at Index for insertion
|
99
|
+
* @return {Element} tr (HTMLTableRowElement) element
|
100
|
+
*/
|
101
|
+
SubTable.prototype.insertRow = function(at) {
|
102
|
+
var row = this._elem.insertRow(at);
|
103
|
+
for(var i = this._colCount; --i >= 0;) {
|
104
|
+
row.insertCell();
|
105
|
+
}
|
106
|
+
return row;
|
107
|
+
};
|
108
|
+
|
109
|
+
/** @public
|
110
|
+
* @param {number=} count
|
111
|
+
* @return {!Array.<Element>} Array of tr (HTMLTableRowElement) elements
|
112
|
+
*/
|
113
|
+
SubTable.prototype.addRows = function(count) {
|
114
|
+
var rows = null;
|
115
|
+
if(count == null) {
|
116
|
+
count = 1;
|
117
|
+
}
|
118
|
+
if(count > 0) {
|
119
|
+
rows = new Array(count);
|
120
|
+
for(var r = 0; r < count; ++r) {
|
121
|
+
rows[r] = this.insertRow();
|
122
|
+
}
|
123
|
+
|
124
|
+
if(this._defaultRowHeight != null) {
|
125
|
+
this._applyDefaultRowHeight(rows, this._defaultRowHeight + "px");
|
126
|
+
}
|
127
|
+
}
|
128
|
+
return rows || [];
|
129
|
+
};
|
130
|
+
/** @public
|
131
|
+
* @param {number=} count
|
132
|
+
*/
|
133
|
+
SubTable.prototype.removeRows = function(count) {
|
134
|
+
Dom.removeChildren(this._elem, count);
|
135
|
+
};
|
136
|
+
/** @public */
|
137
|
+
SubTable.prototype.removeAllRows = function() {
|
138
|
+
Dom.removeChildren(this._elem);
|
139
|
+
};
|
140
|
+
/** @public
|
141
|
+
* @param {number} val
|
142
|
+
*/
|
143
|
+
SubTable.prototype.setRowCount = function(val) {
|
144
|
+
var rowCount = this.getRowCount();
|
145
|
+
if(val >= rowCount) {
|
146
|
+
this.addRows(val - rowCount);
|
147
|
+
} else {
|
148
|
+
this.removeRows(rowCount - val);
|
149
|
+
}
|
150
|
+
};
|
151
|
+
/** @public
|
152
|
+
* @param {(number|null)=} val
|
153
|
+
*/
|
154
|
+
SubTable.prototype.setDefaultRowHeight = function(val) {
|
155
|
+
if(!val) { val = null; }
|
156
|
+
if(val === this._defaultRowHeight) { return; }
|
157
|
+
|
158
|
+
this._defaultRowHeight = val;
|
159
|
+
var minHeight = (this._defaultRowHeight != null) ? this._defaultRowHeight + "px" : "";
|
160
|
+
|
161
|
+
this._applyDefaultRowHeight(this.getRows(), minHeight);
|
162
|
+
};
|
163
|
+
|
164
|
+
/** @public
|
165
|
+
* @return {number}
|
166
|
+
*/
|
167
|
+
SubTable.prototype.getColumnCount = function() {
|
168
|
+
return this._colCount;
|
169
|
+
};
|
170
|
+
/** @public
|
171
|
+
* @return {number}
|
172
|
+
*/
|
173
|
+
SubTable.prototype.getRowCount = function() {
|
174
|
+
return this._elem.children.length;
|
175
|
+
};
|
176
|
+
|
177
|
+
/** @public
|
178
|
+
* @param {number} c
|
179
|
+
* @param {number} r
|
180
|
+
* @return {Element}
|
181
|
+
*/
|
182
|
+
SubTable.prototype.getCell = function(c, r) {
|
183
|
+
var tr = this.getRow(r);
|
184
|
+
if(tr) {
|
185
|
+
return tr.cells[c] || null;
|
186
|
+
}
|
187
|
+
return null;
|
188
|
+
};
|
189
|
+
/** @public
|
190
|
+
* @param {number} c
|
191
|
+
* @return {Array.<Element>} Array of td (HTMLTableCellElement) elements
|
192
|
+
*/
|
193
|
+
SubTable.prototype.getCellsInColumn = function(c) {
|
194
|
+
if(c < 0 || c >= this._colCount) {
|
195
|
+
return null;
|
196
|
+
}
|
197
|
+
var rows = this.getRows();
|
198
|
+
var rowCount = rows.length;
|
199
|
+
var ary = new Array(rowCount);
|
200
|
+
for(var r = 0; r < rowCount; ++r) {
|
201
|
+
ary[r] = rows[r].cells[c];
|
202
|
+
}
|
203
|
+
|
204
|
+
return ary;
|
205
|
+
};
|
206
|
+
/** @public
|
207
|
+
* @param {number} r
|
208
|
+
* @return {Array.<Element>} Array of td (HTMLTableCellElement) elements
|
209
|
+
*/
|
210
|
+
SubTable.prototype.getCellsInRow = function(r) {
|
211
|
+
var tr = this.getRow(r);
|
212
|
+
return (tr) ? tr.cells : null;
|
213
|
+
};
|
214
|
+
/** @public
|
215
|
+
* @return {!Array.<Element>} Array of td (HTMLTableCellElement) elements
|
216
|
+
*/
|
217
|
+
SubTable.prototype.getAllCells = function() {
|
218
|
+
var rows = this.getRows();
|
219
|
+
var rowCount = rows.length;
|
220
|
+
var colCount = this._colCount;
|
221
|
+
var cellCount = 0;
|
222
|
+
var ary = new Array(rowCount * colCount);
|
223
|
+
for(var r = 0; r < rowCount; ++r) {
|
224
|
+
var tr = rows[r];
|
225
|
+
for(var c = 0; c < colCount; ++c) {
|
226
|
+
ary[cellCount++] = tr.cells[c];
|
227
|
+
}
|
228
|
+
}
|
229
|
+
return ary;
|
230
|
+
};
|
231
|
+
/** @public
|
232
|
+
* @return {HTMLCollection} Array like collection of tr (HTMLTableRowElement) elements
|
233
|
+
*/
|
234
|
+
SubTable.prototype.getAllRows = function() {
|
235
|
+
return this._elem.children;
|
236
|
+
};
|
237
|
+
/** @public
|
238
|
+
* @function
|
239
|
+
* @return {HTMLCollection} Array like collection of tr (HTMLTableRowElement) elements
|
240
|
+
*/
|
241
|
+
SubTable.prototype.getRows = SubTable.prototype.getAllRows;
|
242
|
+
/** @public
|
243
|
+
* @param {number} r
|
244
|
+
* @return {Element} Array of tr (HTMLTableRowElement) elements
|
245
|
+
*/
|
246
|
+
SubTable.prototype.getRow = function(r) {
|
247
|
+
return this._elem.children[r] || null;
|
248
|
+
};
|
249
|
+
|
250
|
+
/** @public
|
251
|
+
* @return {!Array.<Array.<string>>}
|
252
|
+
*/
|
253
|
+
SubTable.prototype.getTextContents = function() {
|
254
|
+
var rows = this.getRows();
|
255
|
+
var rowCount = rows.length;
|
256
|
+
var rowContents = new Array(rowCount);
|
257
|
+
for(var r = 0; r < rowCount; ++r) {
|
258
|
+
var row = rows[r];
|
259
|
+
var colContents = new Array(this._colCount);
|
260
|
+
rowContents[r] = colContents;
|
261
|
+
for(var c = 0; c < this._colCount; ++c) {
|
262
|
+
colContents[c] = row.cells[c].textContent;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
return rowContents;
|
266
|
+
};
|
267
|
+
/** @public
|
268
|
+
* @param {number} c
|
269
|
+
* @param {number} r
|
270
|
+
* @return {string}
|
271
|
+
*/
|
272
|
+
SubTable.prototype.getCellTextContent = function(c, r) {
|
273
|
+
var cell = this.getCell(c, r);
|
274
|
+
if(cell) {
|
275
|
+
return cell.textContent;
|
276
|
+
}
|
277
|
+
return "";
|
278
|
+
};
|
279
|
+
/** @public
|
280
|
+
* @param {number} c
|
281
|
+
* @return {string}
|
282
|
+
*/
|
283
|
+
SubTable.prototype.getColumnTextContent = function(c) { // New-line delimited
|
284
|
+
var rows = this.getRows();
|
285
|
+
var rowCount = rows.length;
|
286
|
+
if(c >= 0 && c < this._colCount && rowCount > 0) {
|
287
|
+
var str = rows[0].cells[c].textContent;
|
288
|
+
for(var r = 1; r < rowCount; ++r) {
|
289
|
+
str += "\n" + rows[r].cells[c].textContent;
|
290
|
+
}
|
291
|
+
return str;
|
292
|
+
}
|
293
|
+
return "";
|
294
|
+
};
|
295
|
+
/** @public
|
296
|
+
* @param {number} r
|
297
|
+
* @return {string}
|
298
|
+
*/
|
299
|
+
SubTable.prototype.getRowTextContent = function(r) { // Tab delimited
|
300
|
+
var tr = this.getRow(r);
|
301
|
+
if(tr && this._colCount > 0) {
|
302
|
+
var str = tr.cells[0].textContent;
|
303
|
+
for(var c = 1; c < this._colCount; ++c) {
|
304
|
+
str += "\t" + tr.cells[c].textContent;
|
305
|
+
}
|
306
|
+
return str;
|
307
|
+
}
|
308
|
+
return "";
|
309
|
+
};
|
310
|
+
/** @public
|
311
|
+
* @return {string}
|
312
|
+
*/
|
313
|
+
SubTable.prototype.getTableTextContent = function() { // Tab delimited
|
314
|
+
var rowCount = this.getRows().length;
|
315
|
+
if(rowCount > 0) {
|
316
|
+
var str = this.getRowTextContent(0);
|
317
|
+
for(var r = 1; r < rowCount; ++r) {
|
318
|
+
str += "\n" + this.getRowTextContent(r);
|
319
|
+
}
|
320
|
+
return str;
|
321
|
+
}
|
322
|
+
return "";
|
323
|
+
};
|
324
|
+
/** @public
|
325
|
+
* @return {string}
|
326
|
+
*/
|
327
|
+
SubTable.prototype.toString = function() {
|
328
|
+
var str = this.getElement().outerHTML;
|
329
|
+
str = str.replace(/><tr/g, ">\n\t<tr");
|
330
|
+
str = str.replace(/><td/g, ">\n\t\t<td");
|
331
|
+
str = str.replace(/><td/g, ">\n\t\t<th"); // TH can occur in thead
|
332
|
+
str = str.replace(/><\/tr/g, ">\n\t</tr");
|
333
|
+
var tagName = this.getElement().tagName.toLowerCase();
|
334
|
+
str = str.replace("</" + tagName, "\n</" + tagName);
|
335
|
+
return str;
|
336
|
+
};
|
337
|
+
|
338
|
+
/** @public
|
339
|
+
* @param {Event} e
|
340
|
+
* @return {number}
|
341
|
+
*/
|
342
|
+
SubTable.prototype.getColumnIndex = function(e) {
|
343
|
+
if(e) {
|
344
|
+
var len, i;
|
345
|
+
var tgt = /** @type{Node} */(e.target);
|
346
|
+
if(this._elem.contains(tgt)) {
|
347
|
+
var tdElem = Dom.closestTagName(tgt, "TD");
|
348
|
+
if(!tdElem) {
|
349
|
+
tdElem = Dom.closestTagName(tgt, "TH");
|
350
|
+
}
|
351
|
+
if(tdElem) {
|
352
|
+
var chdr = tdElem.parentElement.children;
|
353
|
+
len = chdr.length;
|
354
|
+
for(i = 0; i < len; ++i) {
|
355
|
+
if(tdElem === chdr[i]) {
|
356
|
+
return i;
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}
|
360
|
+
} else { // In case of the target is not a child of this element
|
361
|
+
var rows = this.getRows();
|
362
|
+
var cells = (rows[0]) ? rows[0].cells : null;
|
363
|
+
if(cells) {
|
364
|
+
var pos = Dom.getRelativePosition(e, this._elem);
|
365
|
+
var x = pos["x"];
|
366
|
+
if(x >= 0) {
|
367
|
+
len = cells.length;
|
368
|
+
for(i = 0; i < len; ++i) {
|
369
|
+
x -= cells[i].offsetWidth;
|
370
|
+
if(x < 0) { // Not include the right border
|
371
|
+
return i;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}
|
375
|
+
}
|
376
|
+
}
|
377
|
+
}
|
378
|
+
return -1;
|
379
|
+
};
|
380
|
+
/** @public
|
381
|
+
* @param {Event} e
|
382
|
+
* @return {number}
|
383
|
+
*/
|
384
|
+
SubTable.prototype.getRowIndex = function(e) {
|
385
|
+
var rows = this.getRows();
|
386
|
+
if(rows && e) {
|
387
|
+
var jLen = rows.length;
|
388
|
+
var tgtElem = e.target; // TODO: Support Shadow Root
|
389
|
+
for(var j = 0; j < jLen; ++j) {
|
390
|
+
var row = rows[j];
|
391
|
+
if(row === tgtElem) {
|
392
|
+
return j;
|
393
|
+
}
|
394
|
+
}
|
395
|
+
|
396
|
+
// In case of the target is not a child of this element
|
397
|
+
var pos = Dom.getRelativePosition(e, this._elem);
|
398
|
+
var y = pos["y"];
|
399
|
+
if(y >= 0) {
|
400
|
+
var len = rows.length;
|
401
|
+
for(var i = 0; i < len; ++i) {
|
402
|
+
y -= rows[i].offsetHeight;
|
403
|
+
if(y < 0) { // Not include the right border
|
404
|
+
return i;
|
405
|
+
}
|
406
|
+
}
|
407
|
+
}
|
408
|
+
}
|
409
|
+
return -1;
|
410
|
+
};
|
411
|
+
/** @public
|
412
|
+
* @param {number} colIndex
|
413
|
+
* @param {number=} rowIndex
|
414
|
+
* @return {number}
|
415
|
+
*/
|
416
|
+
SubTable.prototype.getColumnLeft = function(colIndex, rowIndex) {
|
417
|
+
var cell = this.getCell(colIndex, rowIndex ? rowIndex : 0);
|
418
|
+
if(cell) {
|
419
|
+
return cell.offsetLeft; // WARNING: Hidden cells or cell spanning can cause unexpected results
|
420
|
+
}
|
421
|
+
return NaN;
|
422
|
+
};
|
423
|
+
/** @public
|
424
|
+
* @param {number|Element} rowRef
|
425
|
+
* @return {number}
|
426
|
+
*/
|
427
|
+
SubTable.prototype.getRowTop = function(rowRef) {
|
428
|
+
var row = null;
|
429
|
+
if(typeof rowRef === "number") {
|
430
|
+
row = this.getRow(rowRef);
|
431
|
+
} else {
|
432
|
+
row = Dom.closestTagName(rowRef, "TR");
|
433
|
+
}
|
434
|
+
return (row) ? row.offsetTop : NaN;
|
435
|
+
};
|
436
|
+
/** @public
|
437
|
+
* @param {Element} cell
|
438
|
+
* @param {Object=} ret_obj
|
439
|
+
* @return {!Object} Object with x and y property
|
440
|
+
*/
|
441
|
+
SubTable.prototype.getCellPosition = function(cell, ret_obj) {
|
442
|
+
if(!ret_obj) { ret_obj = {}; }
|
443
|
+
ret_obj["x"] = cell.offsetLeft;
|
444
|
+
var pn = cell.parentNode; // Expecting tr element
|
445
|
+
ret_obj["y"] = (pn) ? pn.offsetTop : NaN;
|
446
|
+
return ret_obj;
|
447
|
+
};
|
448
|
+
|
449
|
+
/** @public
|
450
|
+
* @param {Function} func
|
451
|
+
*/
|
452
|
+
SubTable.prototype.setCellRenderer = function(func) {
|
453
|
+
this._render = func || SubTable._defaultCellRenderer;
|
454
|
+
};
|
455
|
+
/** @public
|
456
|
+
* @override
|
457
|
+
* @param {Element} elem
|
458
|
+
* @param {string=} opt_elementType
|
459
|
+
*/
|
460
|
+
SubTable.prototype.cloak = function(elem, opt_elementType) {
|
461
|
+
SubTable["base"](this, "cloak", elem, "tr");
|
462
|
+
var rows = elem.getElementsByTagName("TR");
|
463
|
+
this._colCount = rows[0] ? rows[0].children.length : 0;
|
464
|
+
};
|
465
|
+
|
466
|
+
/** @public
|
467
|
+
* @param {number} c1
|
468
|
+
* @param {number} c2
|
469
|
+
* @param {number} r1
|
470
|
+
* @param {number} r2
|
471
|
+
* @return {Element} Top left cell element
|
472
|
+
*/
|
473
|
+
SubTable.prototype.spanBlock = function (c1, c2, r1, r2) { // WARNING: It's c c r r
|
474
|
+
var cell = null;
|
475
|
+
for(var c = c2; c >= c1; --c) {
|
476
|
+
for(var r = r2; r >= r1; --r) {
|
477
|
+
cell = this.getCell(c, r);
|
478
|
+
if(cell) {
|
479
|
+
cell.style.display = "none";
|
480
|
+
}
|
481
|
+
}
|
482
|
+
}
|
483
|
+
if(cell) {
|
484
|
+
cell.setAttribute("colspan", (c2 - c1 + 1));
|
485
|
+
cell.setAttribute("rowspan", (r2 - r1 + 1));
|
486
|
+
cell.style.display = "";
|
487
|
+
}
|
488
|
+
return cell;
|
489
|
+
};
|
490
|
+
|
491
|
+
/** Parse table content into 2d array for table input
|
492
|
+
* @public
|
493
|
+
* @function
|
494
|
+
* @param {Element} tbl
|
495
|
+
* @return {Array.<Array.<string>>}
|
496
|
+
*/
|
497
|
+
SubTable.parseTableContent = function(tbl) {
|
498
|
+
if(!tbl) {
|
499
|
+
return null;
|
500
|
+
}
|
501
|
+
|
502
|
+
var tbody = (tbl.tagName == "TBODY") ? tbl : tbl.getElementsByTagName("TBODY")[0];
|
503
|
+
if(!tbody) {
|
504
|
+
if(tbl.tagName == "TABLE") { // Table element can directly host tr element without tbody element
|
505
|
+
tbody = tbl;
|
506
|
+
}
|
507
|
+
}
|
508
|
+
if(!tbody) {
|
509
|
+
return null;
|
510
|
+
}
|
511
|
+
|
512
|
+
var trs = tbody.getElementsByTagName("TR");
|
513
|
+
var rowCount = trs.length;
|
514
|
+
var rows = new Array(rowCount);
|
515
|
+
for(var i = 0; i < rowCount; ++i) {
|
516
|
+
var tds = trs[i].getElementsByTagName("TD"); // TODO: Handle TH cell
|
517
|
+
var colCount = tds.length;
|
518
|
+
var columns = new Array(colCount);
|
519
|
+
|
520
|
+
rows[i] = columns;
|
521
|
+
for(var j = 0; j < colCount; ++j) {
|
522
|
+
columns[j] = tds[j].textContent;
|
523
|
+
}
|
524
|
+
}
|
525
|
+
return rows;
|
526
|
+
};
|
527
|
+
|
528
|
+
/** @private
|
529
|
+
* @param {!NodeList<!Element>|Array.<Element>} rows
|
530
|
+
* @param {string} minHeight
|
531
|
+
*/
|
532
|
+
SubTable.prototype._applyDefaultRowHeight = function(rows, minHeight) {
|
533
|
+
for(var r = rows.length; --r >= 0;) {
|
534
|
+
rows[r].style.height = minHeight;
|
535
|
+
}
|
536
|
+
};
|
537
|
+
|
538
|
+
/** @private
|
539
|
+
* @function
|
540
|
+
* @param {Element} tdCell
|
541
|
+
* @param {*} val
|
542
|
+
* @param {number=} c
|
543
|
+
* @param {number=} r
|
544
|
+
*/
|
545
|
+
SubTable._defaultCellRenderer = function(tdCell, val, c, r) {
|
546
|
+
if(val != null) {
|
547
|
+
if(val["nodeType"]) {
|
548
|
+
tdCell.appendChild(/** @type{Node} */(val));
|
549
|
+
} else {
|
550
|
+
tdCell.textContent = val;
|
551
|
+
}
|
552
|
+
} else {
|
553
|
+
tdCell.textContent = "";
|
554
|
+
}
|
555
|
+
};
|
556
|
+
|
557
|
+
export default SubTable;
|
558
|
+
export { SubTable };
|
@@ -0,0 +1,125 @@
|
|
1
|
+
import { Dom } from "./Dom.js";
|
2
|
+
import { Ext } from "./Ext.js";
|
3
|
+
import { ElementWrapper } from "./ElementWrapper.js";
|
4
|
+
import { SubTable } from "./SubTable.js";
|
5
|
+
|
6
|
+
declare class Table extends ElementWrapper {
|
7
|
+
|
8
|
+
constructor(elem?: (Element|number), opt_colCount?: (number|any), opt_rowCount?: number);
|
9
|
+
|
10
|
+
public getTableElement(): Element;
|
11
|
+
|
12
|
+
public setCRWH(col: number, row: number, width: number, height: number): void;
|
13
|
+
|
14
|
+
public init(options: any): void;
|
15
|
+
|
16
|
+
public addColumns(opt_count?: number): (Element)[];
|
17
|
+
|
18
|
+
public removeColumns(opt_count?: number): void;
|
19
|
+
|
20
|
+
public removeAllColumns(): void;
|
21
|
+
|
22
|
+
public setColumnCount(val: number): void;
|
23
|
+
|
24
|
+
public addRows(opt_count?: number): (Element)[];
|
25
|
+
|
26
|
+
public removeRows(opt_count?: number): void;
|
27
|
+
|
28
|
+
public removeAllRows(): void;
|
29
|
+
|
30
|
+
public setRowCount(val: number): void;
|
31
|
+
|
32
|
+
public getColumnCount(): number;
|
33
|
+
|
34
|
+
public getRowCount(): number;
|
35
|
+
|
36
|
+
public getCell(c: number, r: number): Element;
|
37
|
+
|
38
|
+
public getCellsInColumn(c: number): (Element)[];
|
39
|
+
|
40
|
+
public getCellsInRow(r: number): (Element)[];
|
41
|
+
|
42
|
+
public getAllCells(): (Element)[];
|
43
|
+
|
44
|
+
public getAllRows(): (Element)[];
|
45
|
+
|
46
|
+
public getRow(r: number): Element;
|
47
|
+
|
48
|
+
public spanBlock(c1: number, c2: number, r1: number, r2: number): Element;
|
49
|
+
|
50
|
+
public spanHorizontally(r: number, bool: boolean): Element;
|
51
|
+
|
52
|
+
public setColMinWidths(val: number|string|(string|number)[], opt_at?: number): void;
|
53
|
+
|
54
|
+
public setColumnWidths(val: number|string|(string|number)[], opt_at?: number): void;
|
55
|
+
|
56
|
+
public setColBackgroundColors(val: string|(string)[], opt_at?: number): void;
|
57
|
+
|
58
|
+
public setColBGColors(val: string|(string)[], opt_at?: number): void;
|
59
|
+
|
60
|
+
public setColBorders(val: number|string|(number|string)[], opt_at?: number): void;
|
61
|
+
|
62
|
+
public setSize(width: number, height: number): void;
|
63
|
+
|
64
|
+
public setCellSize(defaultWidth: number, defaultHeight: number): void;
|
65
|
+
|
66
|
+
public setDefaultColumnWidth(val?: (number|null)): void;
|
67
|
+
|
68
|
+
public setDefaultRowHeight(val?: (number|null)): void;
|
69
|
+
|
70
|
+
public distributeColumnWidth(): void;
|
71
|
+
|
72
|
+
public log(opt_rowLimit?: number): void;
|
73
|
+
|
74
|
+
public getTextContents(): (string)[][];
|
75
|
+
|
76
|
+
public getCellTextContent(c: number, r: number): string;
|
77
|
+
|
78
|
+
public getColumnTextContent(c: number): string;
|
79
|
+
|
80
|
+
public getRowTextContent(r: number): string;
|
81
|
+
|
82
|
+
public getTableTextContent(): string;
|
83
|
+
|
84
|
+
public fixateTableWidth(opt_bool?: boolean): void;
|
85
|
+
|
86
|
+
public loosenTableWidth(opt_bool?: boolean): void;
|
87
|
+
|
88
|
+
public addHeaderRows(opt_count?: number): (Element)[];
|
89
|
+
|
90
|
+
public getHeaderCell(c: number, r: number): Element;
|
91
|
+
|
92
|
+
public getAllHeaderCells(): (Element)[];
|
93
|
+
|
94
|
+
public removeHeaderRows(opt_count?: number): void;
|
95
|
+
|
96
|
+
public addFooterRows(opt_count?: number): (Element)[];
|
97
|
+
|
98
|
+
public getFooterCell(c: number, r: number): Element;
|
99
|
+
|
100
|
+
public getAllFooterCells(): (Element)[];
|
101
|
+
|
102
|
+
public removeFooterRows(opt_count?: number): void;
|
103
|
+
|
104
|
+
public getColumnIndex(e: Event): number;
|
105
|
+
|
106
|
+
public getRowIndex(e: Event): number;
|
107
|
+
|
108
|
+
public getColumnLeft(colIndex: number, rowIndex?: number): number;
|
109
|
+
|
110
|
+
public getRowTop(rowRef: number|Element): number;
|
111
|
+
|
112
|
+
public getCellPosition(cell: Element, ret_obj?: any): any;
|
113
|
+
|
114
|
+
public cloak(tblElem: Element): void;
|
115
|
+
|
116
|
+
public getBody(): SubTable;
|
117
|
+
|
118
|
+
public getHeader(): SubTable;
|
119
|
+
|
120
|
+
public getFooter(): SubTable;
|
121
|
+
|
122
|
+
}
|
123
|
+
|
124
|
+
export default Table;
|
125
|
+
export { Table };
|