@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,790 @@
|
|
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
|
+
|
7
|
+
/** Table represents table (tag) element which can host multiple tbody, thead, tfoot elements at the same time
|
8
|
+
* @constructor
|
9
|
+
* @extends {ElementWrapper}
|
10
|
+
* @param {(Element|number)=} elem Element is a place holder element (e.g. div). This should not be a table (tag) element. Column count may be placed here and if so, opt_colCount becomes row count.
|
11
|
+
* @param {(number|Object)=} opt_colCount options
|
12
|
+
* @param {number=} opt_rowCount
|
13
|
+
*/
|
14
|
+
var Table = function(elem, opt_colCount, opt_rowCount) {
|
15
|
+
var t = this;
|
16
|
+
|
17
|
+
if(elem && elem.nodeType === 1) {
|
18
|
+
t._elem = /** @type{Element} */(elem);
|
19
|
+
} else {
|
20
|
+
t._elem = Dom.create("div", "inline-table");
|
21
|
+
if(typeof elem == "number") {
|
22
|
+
if(typeof opt_colCount === "number") {
|
23
|
+
opt_rowCount = opt_colCount;
|
24
|
+
}
|
25
|
+
opt_colCount = elem;
|
26
|
+
elem = null;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
t._elem.classList.add("js-table"); // Auto-generated class for generic styling
|
30
|
+
|
31
|
+
t._table = Dom.create("table");
|
32
|
+
// t._table.style.borderCollapse = "collapse"; // Collapse border by default
|
33
|
+
t._colgroup = document.createElement("colgroup");
|
34
|
+
|
35
|
+
t._tbody = new SubTable("tbody");
|
36
|
+
t._subs = [t._tbody]; // tbody will always be the first item
|
37
|
+
|
38
|
+
var options = null;
|
39
|
+
if(opt_colCount && typeof opt_colCount !== "number") {
|
40
|
+
options = /** @type{Object} */(opt_colCount);
|
41
|
+
opt_colCount = 0;
|
42
|
+
}
|
43
|
+
if(opt_colCount > 0) {
|
44
|
+
t.addColumns(opt_colCount);
|
45
|
+
}
|
46
|
+
if(opt_rowCount > 0) {
|
47
|
+
t.addRows(opt_rowCount);
|
48
|
+
}
|
49
|
+
t._table.appendChild(t._colgroup);
|
50
|
+
t._table.appendChild(t._tbody.getElement());
|
51
|
+
|
52
|
+
t.fixateTableWidth(); // By default, table should be able to overflow its container if it has a fixed size
|
53
|
+
|
54
|
+
t.init(options);
|
55
|
+
|
56
|
+
t._elem.appendChild(t._table); // Append the entire table last to save some page reflow
|
57
|
+
};
|
58
|
+
Ext.inherits(Table, ElementWrapper);
|
59
|
+
|
60
|
+
/** @type {!Element}
|
61
|
+
* @private
|
62
|
+
*/
|
63
|
+
Table.prototype._table;
|
64
|
+
/** @type {!Element}
|
65
|
+
* @private
|
66
|
+
*/
|
67
|
+
Table.prototype._colgroup;
|
68
|
+
/** @type {number}
|
69
|
+
* @private
|
70
|
+
*/
|
71
|
+
Table.prototype._colCount = 0;
|
72
|
+
/** @type {number|null}
|
73
|
+
* @private
|
74
|
+
*/
|
75
|
+
Table.prototype._defaultRowHeight = null;
|
76
|
+
|
77
|
+
/** @type {number|null}
|
78
|
+
* @private
|
79
|
+
*/
|
80
|
+
Table.prototype._defaultColumnWidth = null;
|
81
|
+
/** @type {boolean}
|
82
|
+
* @private
|
83
|
+
*/
|
84
|
+
Table.prototype._autoWidthUpdate = false;
|
85
|
+
|
86
|
+
/** @type {!SubTable}
|
87
|
+
* @private
|
88
|
+
*/
|
89
|
+
Table.prototype._tbody;
|
90
|
+
/** @type {SubTable}
|
91
|
+
* @private
|
92
|
+
*/
|
93
|
+
Table.prototype._thead;
|
94
|
+
/** @type {SubTable}
|
95
|
+
* @private
|
96
|
+
*/
|
97
|
+
Table.prototype._tfoot;
|
98
|
+
/** @type {!Array.<SubTable>}
|
99
|
+
* @private
|
100
|
+
*/
|
101
|
+
Table.prototype._subs;
|
102
|
+
|
103
|
+
|
104
|
+
/** @public
|
105
|
+
* @return {Element}
|
106
|
+
*/
|
107
|
+
Table.prototype.getTableElement = function() {
|
108
|
+
return this._table;
|
109
|
+
};
|
110
|
+
/** @public
|
111
|
+
* @param {number} col
|
112
|
+
* @param {number} row
|
113
|
+
* @param {number} width
|
114
|
+
* @param {number} height
|
115
|
+
*/
|
116
|
+
Table.prototype.setCRWH = function(col, row, width, height) {
|
117
|
+
this.setColumnCount(col);
|
118
|
+
this.setRowCount(row);
|
119
|
+
this.setSize(width, height);
|
120
|
+
};
|
121
|
+
/** @public
|
122
|
+
* @param {Object} options
|
123
|
+
*/
|
124
|
+
Table.prototype.init = function(options) {
|
125
|
+
if(!options) {
|
126
|
+
return;
|
127
|
+
}
|
128
|
+
|
129
|
+
var colWidth = options["colWidth"] || options["cellWidth"];
|
130
|
+
if(colWidth) {
|
131
|
+
this.setDefaultColumnWidth(colWidth);
|
132
|
+
}
|
133
|
+
var rowHeight = options["rowHeight"] || options["cellHeight"];
|
134
|
+
if(rowHeight) {
|
135
|
+
this.setDefaultRowHeight(rowHeight);
|
136
|
+
}
|
137
|
+
|
138
|
+
var colCount = options["colCount"];
|
139
|
+
if(colCount) {
|
140
|
+
this.setColumnCount(colCount);
|
141
|
+
}
|
142
|
+
var rowCount = options["rowCount"];
|
143
|
+
if(rowCount) {
|
144
|
+
this.setRowCount(rowCount);
|
145
|
+
}
|
146
|
+
|
147
|
+
var tableWidth = options["width"] || options["tableWidth"];
|
148
|
+
if(tableWidth && this._colCount) { // TODO: Move this to setWidth() method
|
149
|
+
this.setDefaultColumnWidth((tableWidth / this._colCount) | 0);
|
150
|
+
}
|
151
|
+
|
152
|
+
var tableHeight = options["height"] || options["tableHeight"];
|
153
|
+
if(tableHeight) { // TODO: Move this to setHeight() method
|
154
|
+
rowCount = this.getRowCount();
|
155
|
+
if(rowCount) {
|
156
|
+
this.setDefaultRowHeight((tableHeight / rowCount) | 0);
|
157
|
+
}
|
158
|
+
}
|
159
|
+
};
|
160
|
+
|
161
|
+
/** @public
|
162
|
+
* @param {number=} opt_count
|
163
|
+
* @return {Array.<Element>} Array of col elements (not td or cell)
|
164
|
+
*/
|
165
|
+
Table.prototype.addColumns = function(opt_count) {
|
166
|
+
if(opt_count == null) { opt_count = 1; }
|
167
|
+
else if(opt_count <= 0) { return null; }
|
168
|
+
|
169
|
+
var cols = [];
|
170
|
+
var c;
|
171
|
+
for(c = opt_count; --c >= 0;) {
|
172
|
+
var col = document.createElement("col");
|
173
|
+
this._colgroup.appendChild(col);
|
174
|
+
cols[c] = col;
|
175
|
+
}
|
176
|
+
this._colCount += opt_count;
|
177
|
+
|
178
|
+
if(this._defaultColumnWidth != null) {
|
179
|
+
var minWidth = this._defaultColumnWidth + "px";
|
180
|
+
for(c = opt_count; --c >= 0;) {
|
181
|
+
cols[c].style.width = minWidth;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
for(var i = this._subs.length; --i >= 0;) {
|
186
|
+
this._subs[i].addColumns(opt_count);
|
187
|
+
}
|
188
|
+
this._updateTableWidth();
|
189
|
+
return cols;
|
190
|
+
};
|
191
|
+
/** @public
|
192
|
+
* @param {number=} opt_count
|
193
|
+
*/
|
194
|
+
Table.prototype.removeColumns = function(opt_count) {
|
195
|
+
if(opt_count == null || opt_count >= this._colCount) {
|
196
|
+
this.removeAllColumns();
|
197
|
+
return;
|
198
|
+
}
|
199
|
+
if(opt_count <= 0) { return; }
|
200
|
+
|
201
|
+
this._colCount -= opt_count;
|
202
|
+
Dom.removeChildren(this._colgroup, opt_count);
|
203
|
+
|
204
|
+
for(var i = this._subs.length; --i >= 0;) {
|
205
|
+
this._subs[i].removeColumns(opt_count);
|
206
|
+
}
|
207
|
+
this._updateTableWidth();
|
208
|
+
};
|
209
|
+
/** @public */
|
210
|
+
Table.prototype.removeAllColumns = function() {
|
211
|
+
if(this._colCount <= 0) { return; }
|
212
|
+
this._colCount = 0;
|
213
|
+
Dom.removeChildren(this._colgroup);
|
214
|
+
|
215
|
+
for(var i = this._subs.length; --i >= 0;) {
|
216
|
+
this._subs[i].removeAllColumns(); // Removing all column will also remove all rows
|
217
|
+
}
|
218
|
+
this._updateTableWidth();
|
219
|
+
};
|
220
|
+
/** @public
|
221
|
+
* @param {number} val
|
222
|
+
*/
|
223
|
+
Table.prototype.setColumnCount = function(val) {
|
224
|
+
if(val >= this._colCount) {
|
225
|
+
this.addColumns(val - this._colCount);
|
226
|
+
} else {
|
227
|
+
this.removeColumns(this._colCount - val);
|
228
|
+
}
|
229
|
+
};
|
230
|
+
|
231
|
+
/** @public
|
232
|
+
* @param {number=} opt_count
|
233
|
+
* @return {!Array.<Element>} Array of tr (HTMLTableRowElement) elements
|
234
|
+
*/
|
235
|
+
Table.prototype.addRows = function(opt_count) {
|
236
|
+
return this._tbody.addRows(opt_count);
|
237
|
+
};
|
238
|
+
/** @public
|
239
|
+
* @param {number=} opt_count
|
240
|
+
*/
|
241
|
+
Table.prototype.removeRows = function(opt_count) {
|
242
|
+
this._tbody.removeRows(opt_count);
|
243
|
+
};
|
244
|
+
/** @public */
|
245
|
+
Table.prototype.removeAllRows = function() {
|
246
|
+
this._tbody.removeAllRows();
|
247
|
+
};
|
248
|
+
/** @public
|
249
|
+
* @param {number} val
|
250
|
+
*/
|
251
|
+
Table.prototype.setRowCount = function(val) {
|
252
|
+
this._tbody.setRowCount(val);
|
253
|
+
};
|
254
|
+
|
255
|
+
/** @public
|
256
|
+
* @return {number}
|
257
|
+
*/
|
258
|
+
Table.prototype.getColumnCount = function() { return this._colCount; };
|
259
|
+
/** @public
|
260
|
+
* @return {number}
|
261
|
+
*/
|
262
|
+
Table.prototype.getRowCount = function() { return this._tbody.getRowCount(); };
|
263
|
+
/** @public
|
264
|
+
* @param {number} c
|
265
|
+
* @param {number} r
|
266
|
+
* @return {Element}
|
267
|
+
*/
|
268
|
+
Table.prototype.getCell = function(c, r) { return this._tbody.getCell(c, r); };
|
269
|
+
/** @public
|
270
|
+
* @param {number} c
|
271
|
+
* @return {Array.<Element>} Array of td (HTMLTableCellElement) elements
|
272
|
+
*/
|
273
|
+
Table.prototype.getCellsInColumn = function(c) { return this._tbody.getCellsInColumn(c); };
|
274
|
+
/** @public
|
275
|
+
* @param {number} r
|
276
|
+
* @return {Array.<Element>} Array of td (HTMLTableCellElement) elements
|
277
|
+
*/
|
278
|
+
Table.prototype.getCellsInRow = function(r) { return this._tbody.getCellsInRow(r); };
|
279
|
+
/** @public
|
280
|
+
* @return {!Array.<Element>} Array of td (HTMLTableCellElement) elements
|
281
|
+
*/
|
282
|
+
Table.prototype.getAllCells = function() { return this._tbody.getAllCells(); };
|
283
|
+
/** @public
|
284
|
+
* @return {!Array.<Element>} Array of tr (HTMLTableRowElement) elements
|
285
|
+
*/
|
286
|
+
Table.prototype.getAllRows = function() { return this._tbody.getAllRows(); };
|
287
|
+
/** @public
|
288
|
+
* @return {!Array<Element>} Array of tr (HTMLTableRowElement) elements
|
289
|
+
*/
|
290
|
+
Table.prototype.getRows = Table.prototype.getAllRows;
|
291
|
+
/** @public
|
292
|
+
* @param {number} r
|
293
|
+
* @return {Element} Array of tr (HTMLTableRowElement) elements
|
294
|
+
*/
|
295
|
+
Table.prototype.getRow = function(r) { return this._tbody.getRow(r); };
|
296
|
+
|
297
|
+
/** @public
|
298
|
+
* @param {number} c1
|
299
|
+
* @param {number} c2
|
300
|
+
* @param {number} r1
|
301
|
+
* @param {number} r2
|
302
|
+
* @return {Element} Top left cell element
|
303
|
+
*/
|
304
|
+
Table.prototype.spanBlock = function(c1, c2, r1, r2) { return this._tbody.spanBlock(c1, c2, r1, r2); };
|
305
|
+
/** Horizontally span the cell from the first column to cover the entire row. This is useful for creating header row
|
306
|
+
* @public
|
307
|
+
* @param {number} r
|
308
|
+
* @param {boolean} bool
|
309
|
+
* @return {Element} Top left cell element
|
310
|
+
*/
|
311
|
+
Table.prototype.spanHorizontally = function(r, bool) {
|
312
|
+
return this._tbody.spanBlock(0, (bool !== false) ? this._colCount : 0, r, r);
|
313
|
+
};
|
314
|
+
|
315
|
+
/** @public
|
316
|
+
* @param {number|string|Array.<string|number>} val
|
317
|
+
* @param {number=} opt_at
|
318
|
+
*/
|
319
|
+
Table.prototype.setColMinWidths = function(val, opt_at) {
|
320
|
+
this._setColStyle("width", val, opt_at);
|
321
|
+
this._updateTableWidth();
|
322
|
+
};
|
323
|
+
/** @public
|
324
|
+
* @function
|
325
|
+
* @param {number|string|Array.<string|number>} val
|
326
|
+
* @param {number=} opt_at
|
327
|
+
*/
|
328
|
+
Table.prototype.setColumnWidths = Table.prototype.setColMinWidths;
|
329
|
+
/** @public
|
330
|
+
* @param {string|Array.<string>} val
|
331
|
+
* @param {number=} opt_at
|
332
|
+
*/
|
333
|
+
Table.prototype.setColBackgroundColors = function(val, opt_at) {
|
334
|
+
this._setColStyle("background-color", val, opt_at);
|
335
|
+
};
|
336
|
+
/** @public
|
337
|
+
* @function
|
338
|
+
* @param {string|Array.<string>} val
|
339
|
+
* @param {number=} opt_at
|
340
|
+
*/
|
341
|
+
Table.prototype.setColBGColors = Table.prototype.setColBackgroundColors; // Alias
|
342
|
+
/** @public
|
343
|
+
* @param {number|string|Array.<number|string>} val
|
344
|
+
* @param {number=} opt_at
|
345
|
+
*/
|
346
|
+
Table.prototype.setColBorders = function(val, opt_at) {
|
347
|
+
this._setColStyle("border", val, opt_at);
|
348
|
+
};
|
349
|
+
|
350
|
+
/** @public
|
351
|
+
* @param {number} width
|
352
|
+
* @param {number} height
|
353
|
+
*/
|
354
|
+
Table.prototype.setSize = function(width, height) {
|
355
|
+
if(this._colCount < 0) { this.addColumns(); }
|
356
|
+
if(this.getRowCount() < 0) { this.addRows(); }
|
357
|
+
|
358
|
+
this.setCellSize((width / this._colCount) | 0, (height / this.getRowCount()) | 0);
|
359
|
+
};
|
360
|
+
/** @public
|
361
|
+
* @param {number} defaultWidth
|
362
|
+
* @param {number} defaultHeight
|
363
|
+
*/
|
364
|
+
Table.prototype.setCellSize = function(defaultWidth, defaultHeight) {
|
365
|
+
this.setDefaultColumnWidth(defaultWidth);
|
366
|
+
this.setDefaultRowHeight(defaultHeight);
|
367
|
+
};
|
368
|
+
/** @public
|
369
|
+
* @param {(number|null)=} val
|
370
|
+
*/
|
371
|
+
Table.prototype.setDefaultColumnWidth = function(val) {
|
372
|
+
if(!val) { val = null; }
|
373
|
+
if(val === this._defaultColumnWidth) { return; }
|
374
|
+
|
375
|
+
this._defaultColumnWidth = val;
|
376
|
+
if(this._colCount > 0) {
|
377
|
+
this._setColStyle("width", this._defaultColumnWidth || "");
|
378
|
+
}
|
379
|
+
this._updateTableWidth();
|
380
|
+
};
|
381
|
+
/** @public
|
382
|
+
* @param {(number|null)=} val
|
383
|
+
*/
|
384
|
+
Table.prototype.setDefaultRowHeight = function(val) {
|
385
|
+
if(!val) { val = null; }
|
386
|
+
if(val === this._defaultRowHeight) { return; }
|
387
|
+
|
388
|
+
this._defaultRowHeight = val;
|
389
|
+
|
390
|
+
for(var i = this._subs.length; --i >= 0;) {
|
391
|
+
this._subs[i].setDefaultRowHeight(val);
|
392
|
+
}
|
393
|
+
};
|
394
|
+
/** Distribute columns based on their textContent length
|
395
|
+
* @public
|
396
|
+
*/
|
397
|
+
Table.prototype.distributeColumnWidth = function() {
|
398
|
+
if(this._colCount <= 1) {
|
399
|
+
return;
|
400
|
+
}
|
401
|
+
var txtRows = this._tbody.getTextContents();
|
402
|
+
var rowCount = txtRows.length;
|
403
|
+
if(!rowCount) {
|
404
|
+
return;
|
405
|
+
}
|
406
|
+
var maxWidths = new Array(this._colCount);
|
407
|
+
var txtRow = txtRows[0];
|
408
|
+
for(var c = 0; c < this._colCount; ++c) {
|
409
|
+
maxWidths[c] = txtRow[c].length;
|
410
|
+
}
|
411
|
+
for(var r = 1; r < rowCount; ++r) {
|
412
|
+
txtRow = txtRows[r];
|
413
|
+
for(c = 0; c < this._colCount; ++c) {
|
414
|
+
if(maxWidths[c] < txtRow[c].length) {
|
415
|
+
maxWidths[c] = txtRow[c].length;
|
416
|
+
}
|
417
|
+
}
|
418
|
+
}
|
419
|
+
var longestColumn = 0;
|
420
|
+
var maxWidth = maxWidths[0];
|
421
|
+
for(c = this._colCount; --c >= 1;) {
|
422
|
+
if(maxWidth < maxWidths[c]) {
|
423
|
+
maxWidth = maxWidths[c];
|
424
|
+
longestColumn = c;
|
425
|
+
}
|
426
|
+
}
|
427
|
+
for(c = this._colCount; --c >= 0;) {
|
428
|
+
maxWidths[c] = Math.floor(maxWidths[c] / maxWidth * 100) + "%";
|
429
|
+
}
|
430
|
+
maxWidths[longestColumn] = "";
|
431
|
+
this.setColumnWidths(maxWidths);
|
432
|
+
};
|
433
|
+
|
434
|
+
/** @public
|
435
|
+
* @param {number=} opt_rowLimit
|
436
|
+
*/
|
437
|
+
Table.prototype.log = function(opt_rowLimit) {
|
438
|
+
var trs = this.getRows();
|
439
|
+
var rowCount = trs.length;
|
440
|
+
if(!opt_rowLimit || opt_rowLimit <= 0) { opt_rowLimit = rowCount; }
|
441
|
+
|
442
|
+
var c;
|
443
|
+
var colNames = new Array(this._colCount);
|
444
|
+
for(c = 0; c < this._colCount; ++c) {
|
445
|
+
var hCell = this.getHeaderCell(c, 0);
|
446
|
+
var hStr = hCell ? hCell.textContent : "";
|
447
|
+
colNames[c] = hStr || ("" + c);
|
448
|
+
}
|
449
|
+
|
450
|
+
var rows = [];
|
451
|
+
for(var r = 0; r < rowCount; ++r) {
|
452
|
+
var cols = {};
|
453
|
+
for(c = 0; c < this._colCount; ++c) {
|
454
|
+
cols[colNames[c]] = trs[r].cells[c].textContent;
|
455
|
+
}
|
456
|
+
if(rows.length < opt_rowLimit) {
|
457
|
+
rows.push(cols);
|
458
|
+
} else {
|
459
|
+
break;
|
460
|
+
}
|
461
|
+
}
|
462
|
+
console.table(rows);
|
463
|
+
};
|
464
|
+
/** @public
|
465
|
+
* @return {!Array.<Array.<string>>}
|
466
|
+
*/
|
467
|
+
Table.prototype.getTextContents = function() { return this._tbody.getTextContents(); };
|
468
|
+
/** @public
|
469
|
+
* @param {number} c
|
470
|
+
* @param {number} r
|
471
|
+
* @return {string}
|
472
|
+
*/
|
473
|
+
Table.prototype.getCellTextContent = function(c, r) { return this._tbody.getCellTextContent(c, r); };
|
474
|
+
/** @public
|
475
|
+
* @param {number} c
|
476
|
+
* @return {string}
|
477
|
+
*/
|
478
|
+
Table.prototype.getColumnTextContent = function(c) { return this._tbody.getColumnTextContent(c); };
|
479
|
+
/** @public
|
480
|
+
* @param {number} r
|
481
|
+
* @return {string}
|
482
|
+
*/
|
483
|
+
Table.prototype.getRowTextContent = function(r) { return this._tbody.getRowTextContent(r); };
|
484
|
+
/** @public
|
485
|
+
* @return {string}
|
486
|
+
*/
|
487
|
+
Table.prototype.getTableTextContent = function() { return this._tbody.getTableTextContent(); };
|
488
|
+
|
489
|
+
/** Try to make table to have fixed size. Table may not have a fixed size, if one of its column has no width (dynamic width).
|
490
|
+
* @public
|
491
|
+
* @function
|
492
|
+
* @param {boolean=} opt_bool
|
493
|
+
*/
|
494
|
+
Table.prototype.fixateTableWidth = function(opt_bool) {
|
495
|
+
this._autoWidthUpdate = (opt_bool !== false);
|
496
|
+
if(this._autoWidthUpdate) {
|
497
|
+
this._updateTableWidth();
|
498
|
+
} else if(this._table.style.width) {
|
499
|
+
this._table.style.width = "";
|
500
|
+
}
|
501
|
+
};
|
502
|
+
/** Opposite of {@link Table#fixateTableWidth}
|
503
|
+
* @public
|
504
|
+
* @param {boolean=} opt_bool
|
505
|
+
*/
|
506
|
+
Table.prototype.loosenTableWidth = function(opt_bool) {
|
507
|
+
this.fixateTableWidth(opt_bool === false);
|
508
|
+
};
|
509
|
+
|
510
|
+
/** @public
|
511
|
+
* @param {number=} opt_count
|
512
|
+
* @return {!Array.<Element>} Array of tr (HTMLTableRowElement) elements
|
513
|
+
*/
|
514
|
+
Table.prototype.addHeaderRows = function(opt_count) {
|
515
|
+
this._addHeader();
|
516
|
+
|
517
|
+
return this._thead.addRows(opt_count);
|
518
|
+
};
|
519
|
+
/** @public
|
520
|
+
* @param {number} c
|
521
|
+
* @param {number} r
|
522
|
+
* @return {Element}
|
523
|
+
*/
|
524
|
+
Table.prototype.getHeaderCell = function(c, r) {
|
525
|
+
if(this._thead) {
|
526
|
+
return this._thead.getCell(c, r);
|
527
|
+
}
|
528
|
+
return null;
|
529
|
+
};
|
530
|
+
/** @public
|
531
|
+
* @return {!Array.<Element>} Array of td (HTMLTableCellElement) elements
|
532
|
+
*/
|
533
|
+
Table.prototype.getAllHeaderCells = function() {
|
534
|
+
if(!this._thead) { return []; }
|
535
|
+
|
536
|
+
return this._thead.getAllCells();
|
537
|
+
};
|
538
|
+
/** @public
|
539
|
+
* @param {number=} opt_count
|
540
|
+
*/
|
541
|
+
Table.prototype.removeHeaderRows = function(opt_count) {
|
542
|
+
if(this._thead) {
|
543
|
+
this._thead.removeRows(opt_count);
|
544
|
+
}
|
545
|
+
};
|
546
|
+
|
547
|
+
/** @public
|
548
|
+
* @param {number=} opt_count
|
549
|
+
* @return {!Array.<Element>} Array of tr (HTMLTableRowElement) elements
|
550
|
+
*/
|
551
|
+
Table.prototype.addFooterRows = function(opt_count) {
|
552
|
+
this._addFooter();
|
553
|
+
|
554
|
+
return this._tfoot.addRows(opt_count);
|
555
|
+
};
|
556
|
+
/** @public
|
557
|
+
* @param {number} c
|
558
|
+
* @param {number} r
|
559
|
+
* @return {Element}
|
560
|
+
*/
|
561
|
+
Table.prototype.getFooterCell = function(c, r) {
|
562
|
+
if(this._tfoot) {
|
563
|
+
return this._tfoot.getCell(c, r);
|
564
|
+
}
|
565
|
+
return null;
|
566
|
+
};
|
567
|
+
/** @public
|
568
|
+
* @return {!Array.<Element>} Array of td (HTMLTableCellElement) elements
|
569
|
+
*/
|
570
|
+
Table.prototype.getAllFooterCells = function() {
|
571
|
+
if(!this._tfoot) { return []; }
|
572
|
+
|
573
|
+
return this._tfoot.getAllCells();
|
574
|
+
};
|
575
|
+
/** @public
|
576
|
+
* @param {number=} opt_count
|
577
|
+
*/
|
578
|
+
Table.prototype.removeFooterRows = function(opt_count) {
|
579
|
+
if(this._tfoot) {
|
580
|
+
this._tfoot.removeRows(opt_count);
|
581
|
+
}
|
582
|
+
};
|
583
|
+
|
584
|
+
/** @public
|
585
|
+
* @param {Event} e
|
586
|
+
* @return {number}
|
587
|
+
*/
|
588
|
+
Table.prototype.getColumnIndex = function(e) {
|
589
|
+
return this._tbody.getColumnIndex(e);
|
590
|
+
};
|
591
|
+
/** @public
|
592
|
+
* @param {Event} e
|
593
|
+
* @return {number}
|
594
|
+
*/
|
595
|
+
Table.prototype.getRowIndex = function(e) {
|
596
|
+
return this._tbody.getRowIndex(e);
|
597
|
+
};
|
598
|
+
/** @public
|
599
|
+
* @param {number} colIndex
|
600
|
+
* @param {number=} rowIndex
|
601
|
+
* @return {number}
|
602
|
+
*/
|
603
|
+
Table.prototype.getColumnLeft = function(colIndex, rowIndex) {
|
604
|
+
return this._tbody.getColumnLeft(colIndex, rowIndex);
|
605
|
+
};
|
606
|
+
/** @public
|
607
|
+
* @param {number|Element} rowRef
|
608
|
+
* @return {number}
|
609
|
+
*/
|
610
|
+
Table.prototype.getRowTop = function(rowRef) {
|
611
|
+
return this._tbody.getRowTop(rowRef) + this._tbody.getElement().offsetTop;
|
612
|
+
};
|
613
|
+
/** @public
|
614
|
+
* @param {Element} cell
|
615
|
+
* @param {Object=} ret_obj
|
616
|
+
* @return {!Object} Object with x and y property
|
617
|
+
*/
|
618
|
+
Table.prototype.getCellPosition = function(cell, ret_obj) {
|
619
|
+
ret_obj = this._tbody.getCellPosition(cell, ret_obj);
|
620
|
+
ret_obj["y"] += this._tbody.getElement().offsetTop;
|
621
|
+
return ret_obj;
|
622
|
+
};
|
623
|
+
|
624
|
+
/** This will change size of the table
|
625
|
+
* @public
|
626
|
+
* @param {Element} tblElem
|
627
|
+
*/
|
628
|
+
Table.prototype.cloak = function(tblElem) {
|
629
|
+
if(!tblElem) { return; }
|
630
|
+
if(!tblElem.parentElement) { return; }
|
631
|
+
if(tblElem.tagName !== "TABLE") { return; }
|
632
|
+
this._elem = tblElem.parentElement;
|
633
|
+
this._elem.classList.add("js-table");
|
634
|
+
|
635
|
+
this._table = tblElem;
|
636
|
+
var elems = tblElem.getElementsByTagName("COLGROUP");
|
637
|
+
this._colgroup = (elems[0]) ? elems[0] : document.createElement("colgroup");
|
638
|
+
|
639
|
+
elems = tblElem.getElementsByTagName("TR");
|
640
|
+
this._colCount = elems[0] ? elems[0].children.length : 0;
|
641
|
+
this._autoWidthUpdate = this._table.getAttribute("width") ? true : false;
|
642
|
+
|
643
|
+
elems = tblElem.getElementsByTagName("TBODY");
|
644
|
+
if(elems[0]) {
|
645
|
+
this._tbody.cloak(elems[0]);
|
646
|
+
}
|
647
|
+
elems = tblElem.getElementsByTagName("THEAD");
|
648
|
+
if(elems[0]) {
|
649
|
+
this._addHeader(elems[0]);
|
650
|
+
}
|
651
|
+
elems = tblElem.getElementsByTagName("TFOOT");
|
652
|
+
if(elems[0]) {
|
653
|
+
this._addFooter(elems[0]);
|
654
|
+
}
|
655
|
+
};
|
656
|
+
|
657
|
+
/** @public
|
658
|
+
* @return {SubTable}
|
659
|
+
*/
|
660
|
+
Table.prototype.getBody = function() {
|
661
|
+
return this._tbody;
|
662
|
+
};
|
663
|
+
/** @public
|
664
|
+
* @return {SubTable}
|
665
|
+
*/
|
666
|
+
Table.prototype.getHeader = function() {
|
667
|
+
return this._thead;
|
668
|
+
};
|
669
|
+
/** @public
|
670
|
+
* @return {SubTable}
|
671
|
+
*/
|
672
|
+
Table.prototype.getFooter = function() {
|
673
|
+
return this._tfoot;
|
674
|
+
};
|
675
|
+
|
676
|
+
|
677
|
+
/** @private
|
678
|
+
* @param {Element=} opt_elem
|
679
|
+
*/
|
680
|
+
Table.prototype._addHeader = function(opt_elem) {
|
681
|
+
var t = this;
|
682
|
+
if(!t._thead) {
|
683
|
+
t._thead = new SubTable((opt_elem) ? opt_elem : "thead");
|
684
|
+
t._subs.push(t._thead);
|
685
|
+
|
686
|
+
t._thead.setColumnCount(t._colCount);
|
687
|
+
t._thead.setDefaultRowHeight(t._defaultRowHeight);
|
688
|
+
t._table.insertBefore(t._thead.getElement(), t._tbody.getElement());
|
689
|
+
} else if(opt_elem) {
|
690
|
+
t._thead.cloak(opt_elem);
|
691
|
+
}
|
692
|
+
};
|
693
|
+
/** @private
|
694
|
+
* @param {Element=} opt_elem
|
695
|
+
*/
|
696
|
+
Table.prototype._addFooter = function(opt_elem) {
|
697
|
+
var t = this;
|
698
|
+
if(!t._tfoot) {
|
699
|
+
t._tfoot = new SubTable((opt_elem) ? opt_elem : "tfoot");
|
700
|
+
t._subs.push(t._tfoot);
|
701
|
+
|
702
|
+
t._tfoot.setColumnCount(t._colCount);
|
703
|
+
t._tfoot.setDefaultRowHeight(t._defaultRowHeight);
|
704
|
+
t._table.appendChild(t._tfoot.getElement());
|
705
|
+
} else if(opt_elem) {
|
706
|
+
t._tfoot.cloak(opt_elem);
|
707
|
+
}
|
708
|
+
};
|
709
|
+
|
710
|
+
/** Only four styles available for colgroup which are border, background, width, and visibility
|
711
|
+
* @private
|
712
|
+
* @param {string} prop
|
713
|
+
* @param {number|string|Array.<number|string>} val
|
714
|
+
* @param {number=} opt_at
|
715
|
+
*/
|
716
|
+
Table.prototype._setColStyle = function(prop, val, opt_at) {
|
717
|
+
if(val == null) { val = ""; }
|
718
|
+
var c, col;
|
719
|
+
if(val instanceof Array) {
|
720
|
+
var count = (val.length < this._colCount) ? val.length : this._colCount;
|
721
|
+
for(c = count; --c >= 0;) {
|
722
|
+
var str = val[c];
|
723
|
+
if(typeof str === "number") { str = str + "px"; }
|
724
|
+
if(str) {
|
725
|
+
col = this._colgroup.children[c];
|
726
|
+
col.style[prop] = str;
|
727
|
+
}
|
728
|
+
}
|
729
|
+
} else {
|
730
|
+
if(typeof val === "number") { val = val + "px"; }
|
731
|
+
if(typeof opt_at === "number") {
|
732
|
+
col = this._colgroup.children[opt_at];
|
733
|
+
if(col) {
|
734
|
+
col.style[prop] = val;
|
735
|
+
}
|
736
|
+
} else {
|
737
|
+
for(c = this._colCount; --c >= 0;) {
|
738
|
+
col = this._colgroup.children[c];
|
739
|
+
col.style[prop] = val;
|
740
|
+
}
|
741
|
+
}
|
742
|
+
}
|
743
|
+
};
|
744
|
+
/** @private */
|
745
|
+
Table.prototype._updateTableWidth = function() {
|
746
|
+
if(!this._autoWidthUpdate) { return; }
|
747
|
+
|
748
|
+
var fixedWidth = true;
|
749
|
+
var totalWidth = 0;
|
750
|
+
for(var c = this._colCount; --c >= 0;) {
|
751
|
+
var col = this._colgroup.children[c];
|
752
|
+
var str = col.style.width;
|
753
|
+
if(!str) {
|
754
|
+
fixedWidth = false;
|
755
|
+
break;
|
756
|
+
}
|
757
|
+
totalWidth += parseFloat(str);
|
758
|
+
}
|
759
|
+
|
760
|
+
if(fixedWidth && totalWidth > 0) {
|
761
|
+
this._table.style.width = totalWidth + "px";
|
762
|
+
} else if(this._table.style.width) {
|
763
|
+
this._table.style.width = "";
|
764
|
+
}
|
765
|
+
};
|
766
|
+
/** @private
|
767
|
+
* @param {Array.<Array>} ary
|
768
|
+
* @return {number}
|
769
|
+
*/
|
770
|
+
Table.prototype._adjustColCount = function(ary) {
|
771
|
+
if(this._colCount > 0) {
|
772
|
+
return this._colCount;
|
773
|
+
}
|
774
|
+
|
775
|
+
var colCount = 0;
|
776
|
+
var rowCount = ary.length;
|
777
|
+
|
778
|
+
for(var r = 0; r < rowCount; ++r) {
|
779
|
+
var cols = ary[r];
|
780
|
+
if(cols.length > colCount) {
|
781
|
+
colCount = cols.length;
|
782
|
+
}
|
783
|
+
}
|
784
|
+
|
785
|
+
this.setColumnCount(colCount);
|
786
|
+
return colCount;
|
787
|
+
};
|
788
|
+
|
789
|
+
export default Table;
|
790
|
+
export { Table };
|