@refinitiv-ui/efx-grid 0.0.0-dev.12023565035.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-dragging/es6/ColumnDragging.d.ts +51 -0
- package/lib/column-dragging/es6/ColumnDragging.js +968 -0
- package/lib/column-dragging/es6/index.d.ts +1 -0
- package/lib/column-dragging/es6/index.js +1 -0
- package/lib/column-format-dialog/index.d.ts +2 -0
- package/lib/column-format-dialog/index.js +2 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +77 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2688 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +982 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +2 -0
- package/lib/column-selection-dialog/index.js +2 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +66 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +2034 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +20 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +258 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +8 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +8 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +25 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +8 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +8 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +8 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +5 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +8 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +33910 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +43 -0
- package/lib/core/es6/data/DataCache.js +597 -0
- package/lib/core/es6/data/DataTable.d.ts +156 -0
- package/lib/core/es6/data/DataTable.js +2206 -0
- package/lib/core/es6/data/DataView.d.ts +332 -0
- package/lib/core/es6/data/DataView.js +4144 -0
- package/lib/core/es6/data/Segment.d.ts +91 -0
- package/lib/core/es6/data/Segment.js +1001 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +84 -0
- package/lib/core/es6/data/SegmentCollection.js +713 -0
- package/lib/core/es6/data/WrappedView.d.ts +290 -0
- package/lib/core/es6/data/WrappedView.js +1320 -0
- package/lib/core/es6/grid/Core.d.ts +455 -0
- package/lib/core/es6/grid/Core.js +6196 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +212 -0
- package/lib/core/es6/grid/ILayoutGrid.js +706 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +37 -0
- package/lib/core/es6/grid/LayoutGrid.js +2975 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +1241 -0
- package/lib/core/es6/grid/components/Cell.d.ts +52 -0
- package/lib/core/es6/grid/components/Cell.js +826 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +130 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +40 -0
- package/lib/core/es6/grid/components/CellSpans.js +368 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +618 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +718 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +28 -0
- package/lib/core/es6/grid/components/HScrollbar.js +241 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +63 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1413 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +342 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +166 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +155 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1977 -0
- package/lib/core/es6/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/core/es6/grid/util/CellBoundPainter.js +171 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +679 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +54 -0
- package/lib/core/es6/grid/util/SelectionList.js +491 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +92 -0
- package/lib/core/es6/grid/util/TrackLayout.js +902 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +20 -0
- package/lib/core/es6/grid/util/util.js +391 -0
- package/lib/core/es6/index.d.ts +79 -0
- package/lib/core/es6/index.js +125 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +2 -0
- package/lib/filter-dialog/index.js +2 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +52 -0
- package/lib/filter-dialog/lib/checkbox-list.js +444 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +75 -0
- package/lib/filter-dialog/lib/filter-dialog.js +1160 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +40 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +40 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +42 -0
- package/lib/filter-dialog/themes/base.less +191 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +15 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +45 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +103 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/CoralIconFormatter.js +50 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +45 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +85 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +71 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/EFButtonFormatter.js +45 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +50 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +78 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +60 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +21 -0
- package/lib/formatters/es6/EFIconFormatter.js +50 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +45 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +20 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +132 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +76 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +26 -0
- package/lib/formatters/es6/FormatterBuilder.js +493 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +23 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +66 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +35 -0
- package/lib/formatters/es6/index.d.ts +64 -0
- package/lib/formatters/es6/index.js +88 -0
- package/lib/grid/index.d.ts +2 -0
- package/lib/grid/index.js +3 -0
- package/lib/grid/lib/efx-grid.d.ts +53 -0
- package/lib/grid/lib/efx-grid.js +444 -0
- package/lib/grid/themes/base.less +137 -0
- package/lib/grid/themes/ds/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/dark/efx-grid.js +4 -0
- package/lib/grid/themes/ds/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/dark.js +3 -0
- package/lib/grid/themes/ds/efx-grid.less +207 -0
- package/lib/grid/themes/ds/index.less +3 -0
- package/lib/grid/themes/ds/light/css/native-elements.css +0 -0
- package/lib/grid/themes/ds/light/efx-grid.js +4 -0
- package/lib/grid/themes/ds/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/ds/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/ds/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/ds/light.js +3 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +127 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +100 -0
- package/lib/index.js +100 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +115 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +1182 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +54547 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +174 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1203 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +43 -0
- package/lib/rt-grid/es6/DataConnector.js +290 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +40 -0
- package/lib/rt-grid/es6/FieldDefinition.js +560 -0
- package/lib/rt-grid/es6/Grid.d.ts +376 -0
- package/lib/rt-grid/es6/Grid.js +4653 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +40 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +251 -0
- package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
- package/lib/rt-grid/es6/RowDefSorter.js +231 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +156 -0
- package/lib/rt-grid/es6/RowDefinition.js +1478 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +36 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +537 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +68 -0
- package/lib/statistics-row/es6/StatisticsRow.js +807 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +46 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +617 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +70 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1695 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +82 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1704 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +817 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +91 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +617 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +110 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +2028 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1010 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +77 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +1405 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +160 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +2155 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +100 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +1513 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +519 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +453 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +138 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +41 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +285 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +33 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +303 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +64 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +1027 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +45 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +401 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +148 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +2671 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +58 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +433 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +804 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +50 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +234 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +13 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +23 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +33 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +794 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +39 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +494 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +57 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +238 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/LEDGuage.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/LEDGuage.js +261 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +56 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +514 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +81 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +1479 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +159 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +2568 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +123 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1728 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +75 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1447 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +64 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +615 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +72 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +543 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +27 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +142 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1183 -0
- package/lib/tr-grid-util/es6/Color.d.ts +40 -0
- package/lib/tr-grid-util/es6/Color.js +210 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +16 -0
- package/lib/tr-grid-util/es6/Deferred.js +108 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +96 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +350 -0
- package/lib/tr-grid-util/es6/DragUI.d.ts +20 -0
- package/lib/tr-grid-util/es6/DragUI.js +263 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +12 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +134 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +84 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +164 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +46 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +637 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +24 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +120 -0
- package/lib/tr-grid-util/es6/ExpressionParser.d.ts +10 -0
- package/lib/tr-grid-util/es6/ExpressionParser.js +408 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +440 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +54 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +580 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +56 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +255 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +86 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +1055 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +74 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.js +642 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +62 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +250 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +40 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +611 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +85 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +528 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +163 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +98 -0
- package/lib/tr-grid-util/es6/Popup.js +991 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +260 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +228 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +60 -0
- package/lib/tr-grid-util/es6/RowPainter.js +448 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +78 -0
- package/lib/tr-grid-util/es6/SubTable.js +642 -0
- package/lib/tr-grid-util/es6/Table.d.ts +146 -0
- package/lib/tr-grid-util/es6/Table.js +832 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +16 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +268 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +66 -0
- package/lib/tr-grid-util/es6/Util.js +508 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +890 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +65 -0
- package/lib/tr-grid-util/es6/index.js +102 -0
- package/lib/tr-grid-util/es6/jet/Adc.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/Adc.js +268 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +151 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +136 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +860 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +71 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +82 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +890 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +48 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +82 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.d.ts +7 -0
- package/lib/tr-grid-util/es6/jet/MockUtil.js +25 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +111 -0
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +46 -0
- package/lib/types/es6/CellSelection.d.ts +70 -0
- package/lib/types/es6/Checkbox.d.ts +82 -0
- package/lib/types/es6/ColumnDragging.d.ts +51 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +92 -0
- package/lib/types/es6/ColumnGrouping.d.ts +107 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +77 -0
- package/lib/types/es6/ColumnStack.d.ts +160 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +289 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +23 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +41 -0
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +32 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +100 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +20 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +21 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +20 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +43 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +156 -0
- package/lib/types/es6/Core/data/DataView.d.ts +332 -0
- package/lib/types/es6/Core/data/Segment.d.ts +91 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +84 -0
- package/lib/types/es6/Core/data/WrappedView.d.ts +290 -0
- package/lib/types/es6/Core/grid/Core.d.ts +455 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +212 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +37 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +52 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +21 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +40 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +127 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +28 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +63 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +155 -0
- package/lib/types/es6/Core/grid/util/CellBoundPainter.d.ts +16 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +54 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +92 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +20 -0
- package/lib/types/es6/Core/index.d.ts +79 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +20 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +21 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +20 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +58 -0
- package/lib/types/es6/Extensions.d.ts +63 -0
- package/lib/types/es6/FilterInput.d.ts +64 -0
- package/lib/types/es6/FormatterBuilder.d.ts +26 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +45 -0
- package/lib/types/es6/InCellEditing.d.ts +148 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +41 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +58 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +33 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +176 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +43 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +413 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +40 -0
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +156 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +36 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +64 -0
- package/lib/types/es6/RowDragging.d.ts +81 -0
- package/lib/types/es6/RowFiltering.d.ts +159 -0
- package/lib/types/es6/RowGrouping.d.ts +123 -0
- package/lib/types/es6/RowSegmenting.d.ts +109 -0
- package/lib/types/es6/RowSelection.d.ts +75 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +23 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +68 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +72 -0
- package/lib/types/es6/TitleWrap.d.ts +27 -0
- package/lib/types/es6/Zoom.d.ts +52 -0
- package/lib/types/es6/index.d.ts +80 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +7 -0
- package/lib/versions.json +37 -0
- package/lib/window-exporter.js +18 -0
- package/lib/zoom/es6/Zoom.d.ts +52 -0
- package/lib/zoom/es6/Zoom.js +438 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +69 -0
@@ -0,0 +1,826 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
3
|
+
import ElementWrapper from "./ElementWrapper.js";
|
4
|
+
import Util from "../util/util.js";
|
5
|
+
import ILayoutGrid from "../ILayoutGrid.js";
|
6
|
+
import CellFloatingPanel from "../components/CellFloatingPanel.js";
|
7
|
+
/* eslint-enable */
|
8
|
+
|
9
|
+
/** Cell container. Please see {@link ElementWrapper} for full APIs and parameter lists
|
10
|
+
* @constructor
|
11
|
+
* @extends {ElementWrapper}
|
12
|
+
* @param {Element=} opt_element
|
13
|
+
* @param {ILayoutGrid=} opt_section Parent section
|
14
|
+
*/
|
15
|
+
let Cell = function (opt_element, opt_section) {
|
16
|
+
this._id = Cell._runningId++;
|
17
|
+
this._element = document.createElement("div");
|
18
|
+
this._element.className = "cell";
|
19
|
+
if (opt_section) {
|
20
|
+
this._section = opt_section;
|
21
|
+
}
|
22
|
+
};
|
23
|
+
Ext.inherits(Cell, ElementWrapper);
|
24
|
+
|
25
|
+
/** Cell's aligner
|
26
|
+
* @private
|
27
|
+
* @type {Element}
|
28
|
+
*/
|
29
|
+
Cell.prototype._aligner = null;
|
30
|
+
/** @type {number}
|
31
|
+
* @private
|
32
|
+
*/
|
33
|
+
Cell._runningId = 0;
|
34
|
+
|
35
|
+
/** @type {number}
|
36
|
+
* @private
|
37
|
+
*/
|
38
|
+
Cell.prototype._id = 0;
|
39
|
+
/** @type {number}
|
40
|
+
* @private
|
41
|
+
*/
|
42
|
+
Cell.prototype._width = -1; // Negative value to allow using actual element size
|
43
|
+
/** @type {number}
|
44
|
+
* @private
|
45
|
+
*/
|
46
|
+
Cell.prototype._height = -1; // Negative value to allow using actual element size
|
47
|
+
/** @type {boolean}
|
48
|
+
* @private
|
49
|
+
*/
|
50
|
+
Cell.prototype._visible = true;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* @private
|
54
|
+
* @type {*}
|
55
|
+
*/
|
56
|
+
Cell.prototype._rawContent;
|
57
|
+
|
58
|
+
/** Parent section of the cell
|
59
|
+
* @private
|
60
|
+
* @type {ILayoutGrid}
|
61
|
+
*/
|
62
|
+
Cell.prototype._section = null;
|
63
|
+
/** @private
|
64
|
+
* @type {boolean}
|
65
|
+
*/
|
66
|
+
Cell.prototype._contentLocked = false;
|
67
|
+
/** @private
|
68
|
+
* @type {number}
|
69
|
+
*/
|
70
|
+
Cell.prototype._collapsedState = 0;
|
71
|
+
/** @private
|
72
|
+
* @type {CellFloatingPanel}
|
73
|
+
*/
|
74
|
+
Cell.prototype._floatingPanel = null;
|
75
|
+
/** @private
|
76
|
+
* @type {CellFloatingPanel}
|
77
|
+
*/
|
78
|
+
Cell.prototype._frontIcon = null;
|
79
|
+
/** @type {Object}
|
80
|
+
* @private
|
81
|
+
*/
|
82
|
+
Cell.prototype._tooltipInfo = null;
|
83
|
+
|
84
|
+
//#region ElementWrapper
|
85
|
+
/** {@link ElementWrapper#getContent}
|
86
|
+
* @override
|
87
|
+
*/
|
88
|
+
Cell.prototype.getContent = function (opt_allContent) {
|
89
|
+
if(opt_allContent) {
|
90
|
+
if(this._element) {
|
91
|
+
return this._element.children;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
return /** @type{Node} */(this._content) || null;
|
95
|
+
};
|
96
|
+
/** {@link ElementWrapper#setContent}
|
97
|
+
* @override
|
98
|
+
*/
|
99
|
+
Cell.prototype.setContent = function (content, opt_tooltip) {
|
100
|
+
if (this._contentLocked) { return null; }
|
101
|
+
|
102
|
+
if (content == null || content !== content) { // null or NaN
|
103
|
+
content = null;
|
104
|
+
} else if (content.nodeType !== 1 && content.nodeType !== 11) { // Element type checking (1 = DOM, 11 = DocumentFragment)
|
105
|
+
if (content["getElement"] == null) {
|
106
|
+
if (!(typeof content === "string")) { content = content + ""; }
|
107
|
+
} else {
|
108
|
+
content = /** @type{Element} */(content["getElement"]());
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
if(this._aligner) {// Hack: Someone has changed the content without notice
|
113
|
+
let fc = this._aligner.firstChild;
|
114
|
+
if(fc !== this._content) {
|
115
|
+
this._rawContent = fc;
|
116
|
+
this._content = /** @type{Element} */(fc);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
let ret = this._setRawContent(content);
|
121
|
+
|
122
|
+
if (opt_tooltip != null && this._content) { // Apply tooltip after the real content has been populated
|
123
|
+
this._content.setAttribute("title", opt_tooltip);
|
124
|
+
}
|
125
|
+
return ret;
|
126
|
+
};
|
127
|
+
/** Fastest way to set simple text to the Cell
|
128
|
+
* @override
|
129
|
+
* @public
|
130
|
+
* @param {string} str
|
131
|
+
*/
|
132
|
+
Cell.prototype.setTextContent = function (str) {
|
133
|
+
if (str == null) { str = ""; }
|
134
|
+
if(this._rawContent === str) { return; }
|
135
|
+
|
136
|
+
if(typeof this._rawContent !== "string") {
|
137
|
+
if(this._rawContent == null && !this._textSpan) { // First time initialization
|
138
|
+
this.initialize();
|
139
|
+
this._rawContent = str;
|
140
|
+
this._textSpan = document.createElement("span");
|
141
|
+
this._textSpan.className = "text";
|
142
|
+
this._textSpan.textContent = str;
|
143
|
+
this._content = this._textSpan;
|
144
|
+
this._aligner.className = "valigner";
|
145
|
+
this._aligner.appendChild(this._textSpan);
|
146
|
+
} else {
|
147
|
+
this.setContent(str);
|
148
|
+
}
|
149
|
+
return;
|
150
|
+
}
|
151
|
+
this._rawContent = str;
|
152
|
+
this._textSpan.textContent = str;
|
153
|
+
};
|
154
|
+
|
155
|
+
|
156
|
+
/** {@link ElementWrapper#dispose}
|
157
|
+
* @override
|
158
|
+
*/
|
159
|
+
Cell.prototype.dispose = function () {
|
160
|
+
this.removeParent();
|
161
|
+
this.unlistenAll();
|
162
|
+
|
163
|
+
this._element = this._section = this._aligner = null;
|
164
|
+
this._textSpan = this._rawContent = this._content = null;
|
165
|
+
|
166
|
+
this._frontIcon = this._floatingPanel = null;
|
167
|
+
};
|
168
|
+
|
169
|
+
/** {@link ElementWrapper#getNextSibling}
|
170
|
+
* @override
|
171
|
+
*/
|
172
|
+
Cell.prototype.getNextSibling = function () {
|
173
|
+
return (this._element !== null) ? this._element.nextSibling : null;
|
174
|
+
};
|
175
|
+
/** {@link ElementWrapper#getParent}
|
176
|
+
* @override
|
177
|
+
*/
|
178
|
+
Cell.prototype.getParent = function () {
|
179
|
+
return (this._element !== null) ? this._element.parentNode : null;
|
180
|
+
};
|
181
|
+
/** {@link ElementWrapper#setParent}
|
182
|
+
* @override
|
183
|
+
*/
|
184
|
+
Cell.prototype.setParent = function (obj, opt_prepend) {
|
185
|
+
let parent = Util.getElement(obj);
|
186
|
+
if (parent) {
|
187
|
+
this.initialize();
|
188
|
+
if(this._collapsedState === 1) {
|
189
|
+
return; // Cell is being collapsed and not in the document
|
190
|
+
}
|
191
|
+
|
192
|
+
let sibling;
|
193
|
+
if (opt_prepend === true) {
|
194
|
+
sibling = parent.firstChild;
|
195
|
+
}
|
196
|
+
if (sibling) {
|
197
|
+
parent.insertBefore(this._element, sibling);
|
198
|
+
} else {
|
199
|
+
parent.appendChild(this._element);
|
200
|
+
}
|
201
|
+
} else {
|
202
|
+
this.removeParent();
|
203
|
+
}
|
204
|
+
};
|
205
|
+
/** @public
|
206
|
+
* @ignore
|
207
|
+
*/
|
208
|
+
Cell.prototype.removeParent = function () {
|
209
|
+
let el = this._element;
|
210
|
+
if (el && el.parentNode) {
|
211
|
+
el.parentNode.removeChild(el);
|
212
|
+
}
|
213
|
+
};
|
214
|
+
/** {@link ElementWrapper#insertBefore}
|
215
|
+
* @override
|
216
|
+
*/
|
217
|
+
Cell.prototype.insertBefore = function (nextSibling) {
|
218
|
+
let nextNode = Util.getElement(nextSibling);
|
219
|
+
if (nextNode == null) {
|
220
|
+
this.setParent(this.getParent());
|
221
|
+
return;
|
222
|
+
}
|
223
|
+
|
224
|
+
let parent = nextNode.parentNode;
|
225
|
+
if (parent == null) { return; }
|
226
|
+
|
227
|
+
this.initialize();
|
228
|
+
parent.insertBefore(this._element, nextNode);
|
229
|
+
};
|
230
|
+
|
231
|
+
|
232
|
+
/** {@link ElementWrapper#getTextContent}
|
233
|
+
* @override
|
234
|
+
*/
|
235
|
+
Cell.prototype.getTextContent = function () {
|
236
|
+
if(this._rawContent) {
|
237
|
+
return (typeof this._rawContent == "string") ? /** @type{string} */(this._rawContent) : this._rawContent.textContent;
|
238
|
+
}
|
239
|
+
return "";
|
240
|
+
};
|
241
|
+
/** @public
|
242
|
+
* @return {Element} return the element of the text content
|
243
|
+
*/
|
244
|
+
Cell.prototype.getTextElement = function () {
|
245
|
+
return this._textSpan;
|
246
|
+
};
|
247
|
+
|
248
|
+
/** {@link ElementWrapper#getWidth}
|
249
|
+
* @override
|
250
|
+
*/
|
251
|
+
Cell.prototype.getWidth = function () {
|
252
|
+
if(this._width >= 0) {
|
253
|
+
return this._width;
|
254
|
+
}
|
255
|
+
|
256
|
+
return this._element.offsetWidth;
|
257
|
+
};
|
258
|
+
/** {@link ElementWrapper#setWidth}
|
259
|
+
* @override
|
260
|
+
*/
|
261
|
+
Cell.prototype.setWidth = function (px) {
|
262
|
+
if(px < 0) { px = -1; }
|
263
|
+
if(this._width !== px) {
|
264
|
+
this._width = px;
|
265
|
+
this._element.style.width = (px >= 0) ? px + "px" : "";
|
266
|
+
this._updateDisplay();
|
267
|
+
return true;
|
268
|
+
}
|
269
|
+
return false;
|
270
|
+
};
|
271
|
+
|
272
|
+
/** {@link ElementWrapper#getHeight}
|
273
|
+
* @description WARNING: Even if this element is hidden, its height is still returned as positive value
|
274
|
+
* @override
|
275
|
+
*/
|
276
|
+
Cell.prototype.getHeight = function () {
|
277
|
+
if(this._height >= 0) {
|
278
|
+
return this._height;
|
279
|
+
}
|
280
|
+
|
281
|
+
return this._element.offsetHeight;
|
282
|
+
};
|
283
|
+
/** {@link ElementWrapper#setHeight}
|
284
|
+
* @override
|
285
|
+
*/
|
286
|
+
Cell.prototype.setHeight = function (px) {
|
287
|
+
if(px < 0) { px = -1; }
|
288
|
+
if(this._height !== px) {
|
289
|
+
this._height = px;
|
290
|
+
this._element.style.height = (px >= 0) ? px + "px" : "";
|
291
|
+
this._updateDisplay();
|
292
|
+
return true;
|
293
|
+
}
|
294
|
+
return false;
|
295
|
+
};
|
296
|
+
|
297
|
+
/** Cell cannot be resized by this way {@link ElementWrapper#fillParentWidth}
|
298
|
+
* @override
|
299
|
+
*/
|
300
|
+
Cell.prototype.fillParentWidth = function (percent) { return false; };
|
301
|
+
/** Cell cannot be resized by this way {@link ElementWrapper#fillParentHeight}
|
302
|
+
* @override
|
303
|
+
*/
|
304
|
+
Cell.prototype.fillParentHeight = function (percent) { return false; };
|
305
|
+
/** {@link ElementWrapper#show}
|
306
|
+
* @override
|
307
|
+
*/
|
308
|
+
Cell.prototype.show = function (opt_shown) {
|
309
|
+
let shown = opt_shown !== false;
|
310
|
+
if(shown !== this._visible) {
|
311
|
+
this._visible = shown;
|
312
|
+
this._updateDisplay();
|
313
|
+
}
|
314
|
+
};
|
315
|
+
/** {@link ElementWrapper#isVisible}
|
316
|
+
* @override
|
317
|
+
*/
|
318
|
+
Cell.prototype.isVisible = function () {
|
319
|
+
return this._visible;
|
320
|
+
};
|
321
|
+
|
322
|
+
/** @deprecated
|
323
|
+
* @returns {number}
|
324
|
+
*/
|
325
|
+
Cell.prototype.getScrollLeft = function() { return 0; };
|
326
|
+
/** @deprecated
|
327
|
+
* @returns {number}
|
328
|
+
*/
|
329
|
+
Cell.prototype.getScrollTop = function() { return 0; };
|
330
|
+
/** @deprecated
|
331
|
+
* @returns {boolean}
|
332
|
+
*/
|
333
|
+
Cell.prototype.isEndOfHorizontalScroll = function() { return true; };
|
334
|
+
/** @deprecated
|
335
|
+
* @returns {boolean}
|
336
|
+
*/
|
337
|
+
Cell.prototype.isEndOfVerticalScroll = function() { return true; };
|
338
|
+
//#endregion ElementWrapper
|
339
|
+
|
340
|
+
//#region Cell Specific Methods
|
341
|
+
/** @public
|
342
|
+
* @return {boolean}
|
343
|
+
*/
|
344
|
+
Cell.prototype.hasElement = function () {
|
345
|
+
return this._element !== null;
|
346
|
+
};
|
347
|
+
/** @public
|
348
|
+
* @return {ILayoutGrid}
|
349
|
+
*/
|
350
|
+
Cell.prototype.getSection = function () {
|
351
|
+
return this._section;
|
352
|
+
};
|
353
|
+
/** Use for lazy initialization only. Force an element to be created, if it does not exist.
|
354
|
+
* @public
|
355
|
+
* @return {!Element}
|
356
|
+
*/
|
357
|
+
Cell.prototype.initialize = function () {
|
358
|
+
if(this._aligner == null) {
|
359
|
+
if (Util.isIE) {
|
360
|
+
this._aligner = document.createElement("div");
|
361
|
+
} else {
|
362
|
+
this._aligner = document.createElement("button");
|
363
|
+
}
|
364
|
+
this._aligner.className = "valigner";
|
365
|
+
this._aligner.role = "gridcell";
|
366
|
+
if(this._frontIcon) {
|
367
|
+
this._element.appendChild(this._frontIcon.getElement());
|
368
|
+
}
|
369
|
+
this._element.appendChild(this._aligner);
|
370
|
+
if(this._floatingPanel) {
|
371
|
+
this._element.appendChild(this._floatingPanel.getElement());
|
372
|
+
}
|
373
|
+
}
|
374
|
+
return /** @type{!Element} */(this._element);
|
375
|
+
};
|
376
|
+
|
377
|
+
/** @public
|
378
|
+
* @param {Element} icon
|
379
|
+
*/
|
380
|
+
Cell.prototype.updateIcon = function(icon) {
|
381
|
+
if (!icon) {
|
382
|
+
return;
|
383
|
+
}
|
384
|
+
|
385
|
+
let fi = this._frontIcon;
|
386
|
+
if (fi) {
|
387
|
+
if(fi.containItem(icon)) { // Check same icon which duplicate with insertItem in _frontIcon
|
388
|
+
return;
|
389
|
+
}
|
390
|
+
fi.clearItems();
|
391
|
+
}
|
392
|
+
this.insertFrontIcon(icon, 0);
|
393
|
+
};
|
394
|
+
/** @public
|
395
|
+
*/
|
396
|
+
Cell.prototype.removeIcon = function() {
|
397
|
+
let fi = this._frontIcon;
|
398
|
+
if (fi) {
|
399
|
+
fi.clearItems();
|
400
|
+
this._element.removeChild(fi.getElement());
|
401
|
+
fi = this._frontIcon = null;
|
402
|
+
}
|
403
|
+
};
|
404
|
+
|
405
|
+
/** @public
|
406
|
+
* @deprecated
|
407
|
+
*/
|
408
|
+
Cell.prototype.isFrozen = Util._deprecatedFunction;
|
409
|
+
/** @public
|
410
|
+
* @deprecated
|
411
|
+
* @param {boolean=} opt_bool
|
412
|
+
*/
|
413
|
+
Cell.prototype.freezeLayout = Util._deprecatedFunction;
|
414
|
+
|
415
|
+
/** @public
|
416
|
+
* @deprecated
|
417
|
+
* @param {boolean=} opt_bool
|
418
|
+
*/
|
419
|
+
Cell.prototype.setAutoContentClipping = Util._deprecatedFunction;
|
420
|
+
|
421
|
+
/** @public
|
422
|
+
* @param {string} str
|
423
|
+
* @return {boolean}
|
424
|
+
*/
|
425
|
+
Cell.prototype.setContentTooltip = function (str) {
|
426
|
+
if (str != null && this._content) {
|
427
|
+
this._content.setAttribute("title", str);
|
428
|
+
return true;
|
429
|
+
}
|
430
|
+
return false;
|
431
|
+
};
|
432
|
+
|
433
|
+
/** @public
|
434
|
+
* @param {boolean} opt_locked
|
435
|
+
*/
|
436
|
+
Cell.prototype.lockContent = function (opt_locked) {
|
437
|
+
this._contentLocked = (opt_locked !== false);
|
438
|
+
};
|
439
|
+
|
440
|
+
/** Reset all styles, classes, and content in this cell and restore its default classes
|
441
|
+
* @public
|
442
|
+
*/
|
443
|
+
Cell.prototype.reset = function() {
|
444
|
+
if(!this._element) { return; }
|
445
|
+
|
446
|
+
let width = this._element.style.width;
|
447
|
+
let height = this._element.style.height;
|
448
|
+
this.removeAttribute("style");
|
449
|
+
if(width) {
|
450
|
+
this._element.style.width = width;
|
451
|
+
}
|
452
|
+
if(height) {
|
453
|
+
this._element.style.height = height;
|
454
|
+
}
|
455
|
+
this.resetClass();
|
456
|
+
|
457
|
+
// HACK!!
|
458
|
+
let blinkState = this["blinkState"];
|
459
|
+
if(blinkState) {
|
460
|
+
if (blinkState.timerId >= 0) {
|
461
|
+
clearInterval(blinkState.timerId);
|
462
|
+
}
|
463
|
+
delete this["blinkState"];
|
464
|
+
}
|
465
|
+
delete this["trendState"];
|
466
|
+
let scope = this["blinking"];
|
467
|
+
if(scope) {
|
468
|
+
if(scope["blinking"] >= 0) {
|
469
|
+
clearTimeout(scope["blinking"]);
|
470
|
+
}
|
471
|
+
scope["cell"] = null;
|
472
|
+
scope["styles"] = null;
|
473
|
+
delete this["blinking"];
|
474
|
+
}
|
475
|
+
|
476
|
+
this.removeIcon();
|
477
|
+
|
478
|
+
this.setContent(null);
|
479
|
+
if(this._textSpan) {
|
480
|
+
this._textSpan.className = "text";
|
481
|
+
this._textSpan.textContent = "";
|
482
|
+
}
|
483
|
+
};
|
484
|
+
|
485
|
+
/** Reset all classes in this cell and restore its default classes
|
486
|
+
* @public
|
487
|
+
*/
|
488
|
+
Cell.prototype.resetClass = function() {
|
489
|
+
let className = "cell";
|
490
|
+
if(this.hasClass("spanned")) {
|
491
|
+
className += " spanned";
|
492
|
+
}
|
493
|
+
if(this.hasClass("selected-row")) {
|
494
|
+
className += " selected-row";
|
495
|
+
}
|
496
|
+
if(this.hasClass("highlighted-row")) {
|
497
|
+
className += " highlighted-row";
|
498
|
+
}
|
499
|
+
this.setClass(className);
|
500
|
+
};
|
501
|
+
/** Reset everything to initial state
|
502
|
+
* @public
|
503
|
+
*/
|
504
|
+
Cell.prototype.resetToInitialState = function() {
|
505
|
+
if(!this._element) { return; }
|
506
|
+
|
507
|
+
this.setParent(null);
|
508
|
+
this.unlistenAll();
|
509
|
+
|
510
|
+
this._element.className = "cell";
|
511
|
+
this.removeIcon();
|
512
|
+
this.setContent(null);
|
513
|
+
this._contentLocked = false;
|
514
|
+
this._collapsedState = 0;
|
515
|
+
};
|
516
|
+
|
517
|
+
/** @public
|
518
|
+
* @param {Element} elem
|
519
|
+
* @param {number=} opt_order The greater the order, the farther the position to the right
|
520
|
+
*/
|
521
|
+
Cell.prototype.insertFloatingIcon = function (elem, opt_order) {
|
522
|
+
if(!elem) {
|
523
|
+
return;
|
524
|
+
}
|
525
|
+
|
526
|
+
let fp = this._floatingPanel;
|
527
|
+
if(!fp) {
|
528
|
+
fp = this._floatingPanel = new CellFloatingPanel();
|
529
|
+
}
|
530
|
+
fp.insertItem(elem, opt_order);
|
531
|
+
fp.addClass("floating-panel");
|
532
|
+
|
533
|
+
let element = this._element;
|
534
|
+
if (!element.contains(fp.getElement())) {
|
535
|
+
element.appendChild(fp.getElement());
|
536
|
+
}
|
537
|
+
};
|
538
|
+
/** @public
|
539
|
+
* @param {Element|string} elemRef This can be the element or className (string) of the icon
|
540
|
+
* @return {Element|null} removed element
|
541
|
+
*/
|
542
|
+
Cell.prototype.removeFloatingIcon = function (elemRef) {
|
543
|
+
let fp = this._floatingPanel;
|
544
|
+
if (!fp) {
|
545
|
+
return null;
|
546
|
+
}
|
547
|
+
|
548
|
+
let removeElem = fp.removeItem(elemRef);
|
549
|
+
if (!fp.hasItem()) {
|
550
|
+
this._element.removeChild(fp.getElement());
|
551
|
+
this._floatingPanel = null;
|
552
|
+
}
|
553
|
+
return removeElem;
|
554
|
+
};
|
555
|
+
|
556
|
+
/** @public
|
557
|
+
* @param {Element} elem
|
558
|
+
* @param {number=} opt_order The greater the order, the farther the position to the right
|
559
|
+
*/
|
560
|
+
Cell.prototype.insertFrontIcon = function (elem, opt_order) {
|
561
|
+
if(!elem) {
|
562
|
+
return;
|
563
|
+
}
|
564
|
+
|
565
|
+
let fi = this._frontIcon;
|
566
|
+
if(!fi) {
|
567
|
+
fi = this._frontIcon = new CellFloatingPanel();
|
568
|
+
}
|
569
|
+
fi.insertItem(elem, opt_order);
|
570
|
+
fi.addClass("front-panel");
|
571
|
+
|
572
|
+
let element = this._element;
|
573
|
+
if (!element.contains(fi.getElement())) {
|
574
|
+
element.insertBefore(fi.getElement(), element.firstChild);
|
575
|
+
}
|
576
|
+
};
|
577
|
+
/** @public
|
578
|
+
* @param {Element|string} elemRef This can be the element or className (string) of the icon
|
579
|
+
* @return {Element|null} removed element
|
580
|
+
*/
|
581
|
+
Cell.prototype.removeFrontIcon = function (elemRef) {
|
582
|
+
let fi = this._frontIcon;
|
583
|
+
if (!fi) {
|
584
|
+
return null;
|
585
|
+
}
|
586
|
+
|
587
|
+
let removeElem = fi.removeItem(elemRef);
|
588
|
+
if (!fi.hasItem()) {
|
589
|
+
removeElem = fi.getElement();
|
590
|
+
this._element.removeChild(removeElem);
|
591
|
+
this._frontIcon = null;
|
592
|
+
}
|
593
|
+
return removeElem;
|
594
|
+
};
|
595
|
+
//#endregion Cell Specific Methods
|
596
|
+
|
597
|
+
//#region Internal Public Methods
|
598
|
+
/** @public
|
599
|
+
* @ignore
|
600
|
+
* @return {number}
|
601
|
+
*/
|
602
|
+
Cell.prototype.getCellId = function () {
|
603
|
+
return this._id;
|
604
|
+
};
|
605
|
+
/** Force updating cell padding due to the floating icons in the cell
|
606
|
+
* @public
|
607
|
+
* @deprecated
|
608
|
+
*/
|
609
|
+
Cell.prototype.updatePadding = function() {
|
610
|
+
// Do nothing
|
611
|
+
};
|
612
|
+
|
613
|
+
/** @public
|
614
|
+
* @ignore
|
615
|
+
* @param {boolean=} opt_collapsed
|
616
|
+
* @param {boolean=} opt_remainedInDoc
|
617
|
+
* @return {boolean}
|
618
|
+
*/
|
619
|
+
Cell.prototype.collapse = function (opt_collapsed, opt_remainedInDoc) {
|
620
|
+
let collapsed = opt_collapsed !== false;
|
621
|
+
(opt_remainedInDoc ? 2 : 1);
|
622
|
+
let collapsedState;
|
623
|
+
if (collapsed) {
|
624
|
+
collapsedState = (opt_remainedInDoc ? 2 : 1);
|
625
|
+
} else {
|
626
|
+
collapsedState = 0;
|
627
|
+
}
|
628
|
+
if(this._collapsedState === collapsedState) {
|
629
|
+
return false;
|
630
|
+
}
|
631
|
+
|
632
|
+
if(collapsed) {
|
633
|
+
if(opt_remainedInDoc) {
|
634
|
+
this.addClass("spanned");
|
635
|
+
} else {
|
636
|
+
this.setParent(null);
|
637
|
+
}
|
638
|
+
} else {
|
639
|
+
if(this._collapsedState === 2) {
|
640
|
+
this.removeClass("spanned");
|
641
|
+
}
|
642
|
+
}
|
643
|
+
this._collapsedState = collapsedState;
|
644
|
+
return true;
|
645
|
+
};
|
646
|
+
/** @public
|
647
|
+
* @ignore
|
648
|
+
* @return {boolean}
|
649
|
+
*/
|
650
|
+
Cell.prototype.isCollapsed = function () {
|
651
|
+
return this._collapsedState !== 0;
|
652
|
+
};
|
653
|
+
/** @public
|
654
|
+
* @ignore
|
655
|
+
* @return {boolean}
|
656
|
+
*/
|
657
|
+
Cell.prototype.isKeptInDoc = function () {
|
658
|
+
return this._collapsedState !== 1;
|
659
|
+
};
|
660
|
+
|
661
|
+
/** @public
|
662
|
+
* @ignore
|
663
|
+
* @return {number}
|
664
|
+
*/
|
665
|
+
Cell.prototype.getClientWidth = function () {
|
666
|
+
return (this._element) ? this._element.clientWidth : this.getWidth();
|
667
|
+
};
|
668
|
+
/** @public
|
669
|
+
* @ignore
|
670
|
+
* @return {number}
|
671
|
+
*/
|
672
|
+
Cell.prototype.getClientHeight = function () {
|
673
|
+
return (this._element) ? this._element.clientHeight : this.getHeight();
|
674
|
+
};
|
675
|
+
|
676
|
+
/** To remove the tooltip, pass str as an empty string. To allow cell calculation for the correct tooltip, set str to null.
|
677
|
+
* @public
|
678
|
+
* @param {string|null} str
|
679
|
+
*/
|
680
|
+
Cell.prototype.setTooltip = function(str) {
|
681
|
+
this.setTooltipInfo("userTooltip", str);
|
682
|
+
this.updateTooltip();
|
683
|
+
};
|
684
|
+
/** @public
|
685
|
+
* @ignore
|
686
|
+
* @param {string} type
|
687
|
+
* @param {*=} tooltip
|
688
|
+
*/
|
689
|
+
Cell.prototype.setTooltipInfo = function(type, tooltip) {
|
690
|
+
let tooltipInfo = this._tooltipInfo;
|
691
|
+
if(!tooltipInfo) {
|
692
|
+
tooltipInfo = this._tooltipInfo = {};
|
693
|
+
}
|
694
|
+
|
695
|
+
tooltipInfo[type] = tooltip;
|
696
|
+
};
|
697
|
+
/** @public
|
698
|
+
* @ignore
|
699
|
+
*/
|
700
|
+
Cell.prototype.updateTooltip = function() {
|
701
|
+
let tooltipInfo = this._tooltipInfo;
|
702
|
+
if(!tooltipInfo) {
|
703
|
+
return;
|
704
|
+
}
|
705
|
+
|
706
|
+
let defaultTooltip = "";
|
707
|
+
let customizedTooltip = null;
|
708
|
+
|
709
|
+
// Clipped text tooltip takes precedence over default group header and column tooltip
|
710
|
+
if(tooltipInfo["clippedText"]) { // boolean
|
711
|
+
defaultTooltip = customizedTooltip = tooltipInfo["clippedTextTooltip"];
|
712
|
+
}
|
713
|
+
|
714
|
+
if(tooltipInfo["groupHeaderTooltip"] == null) {
|
715
|
+
if(tooltipInfo["columnDefault"] !== false) {
|
716
|
+
if(tooltipInfo["columnDefault"] != null) { // true, "", string
|
717
|
+
customizedTooltip = tooltipInfo["columnTooltip"];
|
718
|
+
} else { // null
|
719
|
+
defaultTooltip = tooltipInfo["columnTooltip"];
|
720
|
+
}
|
721
|
+
}
|
722
|
+
} else { // Group header tooltip takes precedence over column tooltip
|
723
|
+
if(tooltipInfo["groupHeaderDefault"] !== false) {
|
724
|
+
if(tooltipInfo["groupHeaderDefault"] != null) {
|
725
|
+
customizedTooltip = tooltipInfo["groupHeaderTooltip"];
|
726
|
+
} else {
|
727
|
+
defaultTooltip = tooltipInfo["groupHeaderTooltip"];
|
728
|
+
}
|
729
|
+
}
|
730
|
+
}
|
731
|
+
|
732
|
+
// User tooltip take the highest precedence
|
733
|
+
if(tooltipInfo["userTooltip"] != null) { // "", string
|
734
|
+
customizedTooltip = tooltipInfo["userTooltip"];
|
735
|
+
}
|
736
|
+
|
737
|
+
if(customizedTooltip == null) {
|
738
|
+
customizedTooltip = defaultTooltip;
|
739
|
+
}
|
740
|
+
|
741
|
+
if(customizedTooltip) {
|
742
|
+
let curTooltip = this.hasAttribute("tooltip") ? this.getAttribute("tooltip") : this.getAttribute("title");
|
743
|
+
if(curTooltip !== customizedTooltip) {
|
744
|
+
this.setAttribute("title", customizedTooltip);
|
745
|
+
}
|
746
|
+
} else {
|
747
|
+
if(this.hasAttribute("title")) {
|
748
|
+
this.removeAttribute("title");
|
749
|
+
}
|
750
|
+
if(this.hasAttribute("tooltip")) {
|
751
|
+
this.removeAttribute("tooltip");
|
752
|
+
}
|
753
|
+
}
|
754
|
+
};
|
755
|
+
/** @public
|
756
|
+
* @ignore
|
757
|
+
* @param {string} type
|
758
|
+
* @return {*}
|
759
|
+
*/
|
760
|
+
Cell.prototype.getTooltipInfo = function(type) {
|
761
|
+
if(this._tooltipInfo) {
|
762
|
+
return this._tooltipInfo[type];
|
763
|
+
}
|
764
|
+
return null;
|
765
|
+
};
|
766
|
+
//#region Internal Public Methods
|
767
|
+
|
768
|
+
//#region Private Methods
|
769
|
+
/** @private
|
770
|
+
* @param {*} value
|
771
|
+
* @return {Element}
|
772
|
+
*/
|
773
|
+
Cell.prototype._setRawContent = function (value) {
|
774
|
+
if (this._rawContent !== value) {
|
775
|
+
this._rawContent = value;
|
776
|
+
|
777
|
+
let actualContent = /** @type{Element|NodeList} */(this._rawContent);
|
778
|
+
if (typeof this._rawContent == "string") {
|
779
|
+
if (!this._textSpan) {
|
780
|
+
this._textSpan = document.createElement("span");
|
781
|
+
this._textSpan.className = "text";
|
782
|
+
}
|
783
|
+
this._textSpan.textContent = this._rawContent;
|
784
|
+
actualContent = this._textSpan;
|
785
|
+
}
|
786
|
+
|
787
|
+
if (this._content !== actualContent) { // Compare with previous element
|
788
|
+
this._content = actualContent;
|
789
|
+
|
790
|
+
this.initialize();
|
791
|
+
|
792
|
+
let aligner = this._aligner;
|
793
|
+
while (aligner.lastChild ) {
|
794
|
+
aligner.removeChild(aligner.lastChild);
|
795
|
+
}
|
796
|
+
if (this._content) {
|
797
|
+
aligner.appendChild(/** @type{Element} */(this._content));
|
798
|
+
}
|
799
|
+
}
|
800
|
+
|
801
|
+
}
|
802
|
+
return /** @type{Element} */(this._content);
|
803
|
+
};
|
804
|
+
|
805
|
+
/** @private
|
806
|
+
*/
|
807
|
+
Cell.prototype._updateDisplay = function () {
|
808
|
+
let visibility = false;
|
809
|
+
if(this.isVisible()) {
|
810
|
+
if(this._width && this._height) {
|
811
|
+
visibility = true;
|
812
|
+
}
|
813
|
+
}
|
814
|
+
if (visibility) {
|
815
|
+
this._element.style.display = "";
|
816
|
+
} else {
|
817
|
+
this._element.style.display = "none";
|
818
|
+
}
|
819
|
+
};
|
820
|
+
//#endregion Private Methods
|
821
|
+
|
822
|
+
|
823
|
+
Cell._proto = Cell.prototype;
|
824
|
+
|
825
|
+
export default Cell;
|
826
|
+
export { Cell };
|