@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,714 @@
|
|
1
|
+
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
2
|
+
import EventDispatcher from "../event/EventDispatcher.js";
|
3
|
+
import EventListeners from "../event/EventListeners.js";
|
4
|
+
import Util from "../util/util.js";
|
5
|
+
|
6
|
+
|
7
|
+
/** A helper class that add access to native HTML element APIs through simple JavaScript
|
8
|
+
* @constructor
|
9
|
+
* @extends {EventDispatcher}
|
10
|
+
* @param {Element=} opt_element If not specified "div" element is instantly created.
|
11
|
+
*/
|
12
|
+
var ElementWrapper = function (opt_element) {
|
13
|
+
this._element = opt_element ? opt_element : document.createElement("div");
|
14
|
+
};
|
15
|
+
Ext.inherits(ElementWrapper, EventDispatcher);
|
16
|
+
|
17
|
+
/** @protected
|
18
|
+
* @ignore
|
19
|
+
* @type{Element}
|
20
|
+
*/
|
21
|
+
ElementWrapper.prototype._element = null;
|
22
|
+
/** @protected
|
23
|
+
* @ignore
|
24
|
+
* @type{Element|NodeList}
|
25
|
+
*/
|
26
|
+
ElementWrapper.prototype._content = null;
|
27
|
+
/** @protected
|
28
|
+
* @ignore
|
29
|
+
* @type{Element}
|
30
|
+
*/
|
31
|
+
ElementWrapper.prototype._textSpan = null;
|
32
|
+
|
33
|
+
/** @private
|
34
|
+
* @type{Object.<string, !EventListeners>}
|
35
|
+
*/
|
36
|
+
ElementWrapper.prototype._nativeEvents = null;
|
37
|
+
/** @private
|
38
|
+
* @type {Object}
|
39
|
+
*/
|
40
|
+
ElementWrapper._passiveEvents = null;
|
41
|
+
|
42
|
+
|
43
|
+
//#region Content Manipulation
|
44
|
+
/**
|
45
|
+
* @public
|
46
|
+
* @param {boolean=} opt_allContent If true all children will be returned
|
47
|
+
* @return {Element|Node|NodeList} Returns the last child, if there are multiple children. Returns null if there is no child
|
48
|
+
*/
|
49
|
+
ElementWrapper.prototype.getContent = function (opt_allContent) {
|
50
|
+
if(opt_allContent) {
|
51
|
+
return this._element.children; // WARNING: Returns private member
|
52
|
+
}
|
53
|
+
return /** @type{Element|Node} */(this._element.lastChild);
|
54
|
+
};
|
55
|
+
/** Replaces all existing child elements with the specified content. This method automatically converts all non-element to string wrapped with <span> for proper display.
|
56
|
+
* @public
|
57
|
+
* @param {string|Element|ElementWrapper|*} content Use null to clear content. If string is given, <span> tag is automatically added to host the string.
|
58
|
+
* @param {string=} opt_tooltip If undefined, content is added without modification. If string is given, it is added to title attribute of the content
|
59
|
+
* @return {Element}
|
60
|
+
*/
|
61
|
+
ElementWrapper.prototype.setContent = function (content, opt_tooltip) {
|
62
|
+
if (content == null || content !== content) {
|
63
|
+
content = null;
|
64
|
+
} else if (content.nodeType !== 1 && content.nodeType !== 11) { // Element type checking (1 = DOM, 11 = DocumentFragment)
|
65
|
+
if (content["getElement"] == null) {
|
66
|
+
if (!Util.isString(content)) { content = content + ""; }
|
67
|
+
|
68
|
+
if (this._textSpan == null) {
|
69
|
+
this._textSpan = document.createElement("span"); // For fastest speed
|
70
|
+
}
|
71
|
+
this._textSpan.textContent = content;
|
72
|
+
|
73
|
+
content = this._textSpan;
|
74
|
+
} else {
|
75
|
+
content = content["getElement"]();
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
if (content !== this._content) {
|
80
|
+
this._content = /** @type{Element} */(content);
|
81
|
+
while (this._element.firstChild !== null) {
|
82
|
+
this._element.removeChild(this._element.firstChild);
|
83
|
+
}
|
84
|
+
if (this._content !== null) {
|
85
|
+
this._element.appendChild(this._content);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
if (opt_tooltip && content) {
|
90
|
+
content.setAttribute("title", opt_tooltip);
|
91
|
+
}
|
92
|
+
return /** @type{Element} */(this._content); // Can only be an element at this point
|
93
|
+
};
|
94
|
+
/** Append the specified content to the existing children list. Note that string is not acceptable
|
95
|
+
* Use setParent() if you just want to put an element into the document. This method is specifically designed for user content, but not for element reordering
|
96
|
+
* @public
|
97
|
+
* @param {Element|Node|ElementWrapper} content will be appended as a child of this element
|
98
|
+
* @return {Element}
|
99
|
+
*/
|
100
|
+
ElementWrapper.prototype.addContent = function (content) {
|
101
|
+
content = Util.getElement(content);
|
102
|
+
if (content == null) { return null; }
|
103
|
+
|
104
|
+
this._content = this._element.children;
|
105
|
+
this._element.appendChild(content);
|
106
|
+
return content;
|
107
|
+
};
|
108
|
+
/** Removes the specified content from the existing children list
|
109
|
+
* @public
|
110
|
+
* @param {Element|Node|ElementWrapper} content If null is given, nothing is done
|
111
|
+
* @return {boolean} true if the content is removed
|
112
|
+
*/
|
113
|
+
ElementWrapper.prototype.removeContent = function (content) {
|
114
|
+
content = Util.getElement(content);
|
115
|
+
if (content == null) { return false; }
|
116
|
+
|
117
|
+
this._content = this._element.children;
|
118
|
+
this._element.removeChild(content);
|
119
|
+
return true;
|
120
|
+
};
|
121
|
+
//#endregion Content Manipulation
|
122
|
+
|
123
|
+
//#region Event Related Methods
|
124
|
+
/** Add a event listener to either native or custom event provided from the instance.
|
125
|
+
* @public
|
126
|
+
* @param {string} type All standard HTML element event types are allowed
|
127
|
+
* @param {Function} handler Callback method
|
128
|
+
* @param {number=} opt_priority The higher the priority, the sooner the listener get executed. Undefined priority listener will be executed last
|
129
|
+
*
|
130
|
+
* @example
|
131
|
+
* var grid = new Core();
|
132
|
+
* grid.listen("click", function(e) { console.log("Grid is clicked"); });
|
133
|
+
*/
|
134
|
+
ElementWrapper.prototype.listen = function (type, handler, opt_priority) {
|
135
|
+
if(this._customEvents && this._customEvents[type]) {
|
136
|
+
this._customEvents[type].listen(handler, opt_priority);
|
137
|
+
return;
|
138
|
+
}
|
139
|
+
|
140
|
+
if (!this._nativeEvents) {
|
141
|
+
this._nativeEvents = {};
|
142
|
+
}
|
143
|
+
var e = this._nativeEvents[type];
|
144
|
+
if (!e) {
|
145
|
+
e = new EventListeners();
|
146
|
+
this._nativeEvents[type] = e;
|
147
|
+
|
148
|
+
e.dispatch = e.dispatch.bind(e);
|
149
|
+
|
150
|
+
if (!ElementWrapper._passiveEvents) {
|
151
|
+
// https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
|
152
|
+
var supportsPassive = false;
|
153
|
+
try {
|
154
|
+
var opts = /** @type{boolean} */(Object.defineProperty({}, 'passive', {
|
155
|
+
/**
|
156
|
+
* @return {boolean}
|
157
|
+
*/
|
158
|
+
"get": function() {
|
159
|
+
supportsPassive = true;
|
160
|
+
return false;
|
161
|
+
}
|
162
|
+
}));
|
163
|
+
window.addEventListener("testPassive", null, opts);
|
164
|
+
window.removeEventListener("testPassive", null, opts);
|
165
|
+
} catch (err) {}
|
166
|
+
|
167
|
+
if(supportsPassive) {
|
168
|
+
var passiveOption = { "passive": true };
|
169
|
+
|
170
|
+
// "wheel" and "mousewheel" have default behavior that needs to be prevented. We have to exclude them from the list
|
171
|
+
ElementWrapper._passiveEvents = {
|
172
|
+
// "wheel": passiveOption,
|
173
|
+
// "mousewheel": passiveOption,
|
174
|
+
"touchstart": passiveOption,
|
175
|
+
"touchmove": passiveOption
|
176
|
+
};
|
177
|
+
} else {
|
178
|
+
ElementWrapper._passiveEvents = {};
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
this._element.addEventListener(type, e.dispatch, ElementWrapper._passiveEvents[type] || false);
|
183
|
+
}
|
184
|
+
|
185
|
+
e.listen(handler, opt_priority);
|
186
|
+
};
|
187
|
+
/** Removes an event listener which was added with listen(). The same function handler must be sent in, or else it will not be removed
|
188
|
+
* @public
|
189
|
+
* @param {string} type The name of the event without the 'on' prefix.
|
190
|
+
* @param {Function} handler The listener function to remove.
|
191
|
+
*/
|
192
|
+
ElementWrapper.prototype.unlisten = function (type, handler) {
|
193
|
+
if(this._customEvents && this._customEvents[type]) {
|
194
|
+
this._customEvents[type].unlisten(handler);
|
195
|
+
return;
|
196
|
+
}
|
197
|
+
|
198
|
+
if (this._nativeEvents) {
|
199
|
+
var e = this._nativeEvents[type];
|
200
|
+
if (e) {
|
201
|
+
e.unlisten(handler);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
};
|
205
|
+
/** Removes all listeners from an object. If no type is specified, it will remove all listeners that have been registered.
|
206
|
+
* You can also optionally remove listeners of a particular type.
|
207
|
+
* @public
|
208
|
+
* @param {string=} opt_type Type of event to, default is all types.
|
209
|
+
*/
|
210
|
+
ElementWrapper.prototype.unlistenAll = function (opt_type) {
|
211
|
+
if(this._customEvents) {
|
212
|
+
if(opt_type) {
|
213
|
+
if(this._customEvents[opt_type]) {
|
214
|
+
this._customEvents[opt_type].unlistenAll();
|
215
|
+
}
|
216
|
+
} else {
|
217
|
+
for (var customEvt in this._customEvents) {
|
218
|
+
this._customEvents[customEvt].unlistenAll();
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
if (this._nativeEvents) {
|
224
|
+
if (opt_type) {
|
225
|
+
if (this._nativeEvents[opt_type]) {
|
226
|
+
this._unlistenAll(opt_type);
|
227
|
+
delete this._nativeEvents[opt_type];
|
228
|
+
}
|
229
|
+
} else {
|
230
|
+
for (var key in this._nativeEvents) {
|
231
|
+
this._unlistenAll(key);
|
232
|
+
}
|
233
|
+
this._nativeEvents = null;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
};
|
237
|
+
/** @protected
|
238
|
+
* @ignore
|
239
|
+
* @param {string} type
|
240
|
+
*/
|
241
|
+
ElementWrapper.prototype._unlistenAll = function (type) {
|
242
|
+
var e = this._nativeEvents[type];
|
243
|
+
this._element.removeEventListener(type, e.dispatch, false);
|
244
|
+
e.unlistenAll();
|
245
|
+
};
|
246
|
+
/** Calls this method, if it is NO LONGER needed and we want to free up memory.
|
247
|
+
* Any usage after disposition will cause exception error
|
248
|
+
* @public
|
249
|
+
*/
|
250
|
+
ElementWrapper.prototype.dispose = function () {
|
251
|
+
this._dispose();
|
252
|
+
};
|
253
|
+
/** @protected
|
254
|
+
* @ignore
|
255
|
+
*/
|
256
|
+
ElementWrapper.prototype._dispose = function () {
|
257
|
+
this.setParent(null);
|
258
|
+
this.unlistenAll();
|
259
|
+
|
260
|
+
this._element = this._content = this._textSpan = null;
|
261
|
+
this._customEvents = this._nativeEvents = null;
|
262
|
+
};
|
263
|
+
/** Set Extender method that will be executed before dispatcing an event to provide additional event argument. This only works for custom event
|
264
|
+
* @ignore
|
265
|
+
* @public
|
266
|
+
* @param {string} type
|
267
|
+
* @param {Function} func
|
268
|
+
*/
|
269
|
+
ElementWrapper.prototype.setEventArgExtender = function (type, func) {
|
270
|
+
if(this._customEvents) {
|
271
|
+
var evt = this._customEvents[type];
|
272
|
+
if(evt) {
|
273
|
+
evt.setEventArgExtender(func);
|
274
|
+
}
|
275
|
+
}
|
276
|
+
};
|
277
|
+
//#endregion Event Related Methods
|
278
|
+
|
279
|
+
//#region DOM Manipulation
|
280
|
+
/** Gets top element of this control
|
281
|
+
* @public
|
282
|
+
* @return {Element}
|
283
|
+
*/
|
284
|
+
ElementWrapper.prototype.getElement = function () {
|
285
|
+
return this._element;
|
286
|
+
};
|
287
|
+
/**
|
288
|
+
* @public
|
289
|
+
* @return {Element|Node}
|
290
|
+
*/
|
291
|
+
ElementWrapper.prototype.getNextSibling = function () {
|
292
|
+
return this._element.nextSibling;
|
293
|
+
};
|
294
|
+
/**
|
295
|
+
* @public
|
296
|
+
* @return {Element|Node}
|
297
|
+
*/
|
298
|
+
ElementWrapper.prototype.getParent = function () {
|
299
|
+
return this._element.parentNode;
|
300
|
+
};
|
301
|
+
/**
|
302
|
+
* @public
|
303
|
+
* @param {ElementWrapper|Element|Node} parent Uses null to clear parent
|
304
|
+
* @param {boolean=} opt_prepend If false (default), this element is appended to child list of the parent
|
305
|
+
*/
|
306
|
+
ElementWrapper.prototype.setParent = function (parent, opt_prepend) {
|
307
|
+
this._setParent(parent, opt_prepend);
|
308
|
+
};
|
309
|
+
/** @protected
|
310
|
+
* @ignore
|
311
|
+
* @param {Element} parent
|
312
|
+
* @param {boolean=} opt_prepend
|
313
|
+
*/
|
314
|
+
ElementWrapper.prototype._setParent = function (parent, opt_prepend) {
|
315
|
+
parent = Util.getElement(parent);
|
316
|
+
if (parent !== null) {
|
317
|
+
if (opt_prepend) {
|
318
|
+
parent.insertBefore(this._element, parent.firstChild);
|
319
|
+
} else {
|
320
|
+
parent.appendChild(this._element);
|
321
|
+
}
|
322
|
+
} else if (this._element.parentNode !== null) {
|
323
|
+
this._element.parentNode.removeChild(this._element);
|
324
|
+
}
|
325
|
+
};
|
326
|
+
/** Inserts this element before the specified sibling. Parent of this element will be changed to sibling's parent
|
327
|
+
* If sibling parent does not exist, nothing is performed.
|
328
|
+
* If nextSibling is null, this element will place itself at the end of its parent child list
|
329
|
+
* @public
|
330
|
+
* @param {ElementWrapper|Element|Node} nextSibling
|
331
|
+
*/
|
332
|
+
ElementWrapper.prototype.insertBefore = function (nextSibling) {
|
333
|
+
this._insertBefore(nextSibling);
|
334
|
+
};
|
335
|
+
/** @protected
|
336
|
+
* @ignore
|
337
|
+
* @param {Element} nextSibling
|
338
|
+
*/
|
339
|
+
ElementWrapper.prototype._insertBefore = function (nextSibling) {
|
340
|
+
nextSibling = Util.getElement(nextSibling);
|
341
|
+
if (nextSibling == null) {
|
342
|
+
this.setParent(this.getParent());
|
343
|
+
return;
|
344
|
+
}
|
345
|
+
|
346
|
+
var parent = nextSibling.parentNode;
|
347
|
+
if (parent == null) { return; }
|
348
|
+
|
349
|
+
parent.insertBefore(this._element, nextSibling);
|
350
|
+
};
|
351
|
+
/** Inserts this element after the specified sibling. Parent of this element will be changed to sibling's parent
|
352
|
+
* If sibling parent does not exist, nothing is performed.
|
353
|
+
* If previousSibling is null, this element will place itself at the end of its parent child list
|
354
|
+
* @public
|
355
|
+
* @param {ElementWrapper|Element|Node} previousSibling
|
356
|
+
*/
|
357
|
+
ElementWrapper.prototype.insertAfter = function (previousSibling) {
|
358
|
+
previousSibling = Util.getElement(previousSibling);
|
359
|
+
if(previousSibling) {
|
360
|
+
if(previousSibling.nextSibling) {
|
361
|
+
this.insertBefore(previousSibling.nextSibling);
|
362
|
+
} else {
|
363
|
+
this.setParent(previousSibling.parentNode);
|
364
|
+
}
|
365
|
+
} else {
|
366
|
+
this.setParent(this.getParent(), true);
|
367
|
+
}
|
368
|
+
};
|
369
|
+
//#endregion DOM Manipulation
|
370
|
+
|
371
|
+
//#region HTML Styling
|
372
|
+
/** Checks if the given CSS class is in className of the element
|
373
|
+
* @public
|
374
|
+
* @param {string} str
|
375
|
+
* @return {boolean}
|
376
|
+
*/
|
377
|
+
ElementWrapper.prototype.hasClass = function (str) {
|
378
|
+
return (this._element) ? this._element.classList.contains(str) : false;
|
379
|
+
};
|
380
|
+
/** If the given CSS class is already in className, the class is not added twice
|
381
|
+
* @public
|
382
|
+
* @param {string} str
|
383
|
+
*/
|
384
|
+
ElementWrapper.prototype.addClass = function (str) {
|
385
|
+
if (this._element) {
|
386
|
+
this._element.classList.add(str);
|
387
|
+
}
|
388
|
+
};
|
389
|
+
/**
|
390
|
+
* @public
|
391
|
+
* @param {string} str
|
392
|
+
*/
|
393
|
+
ElementWrapper.prototype.removeClass = function (str) {
|
394
|
+
if (this._element) {
|
395
|
+
this._element.classList.remove(str);
|
396
|
+
}
|
397
|
+
};
|
398
|
+
/** Toggles the specified class
|
399
|
+
* @public
|
400
|
+
* @param {string} cls
|
401
|
+
* @param {(boolean|null)=} forcedVal If specified, force CSS class state as the specified value
|
402
|
+
*/
|
403
|
+
ElementWrapper.prototype.toggleClass = function (cls, forcedVal) {
|
404
|
+
var elem = this._element;
|
405
|
+
if(elem) {
|
406
|
+
if(forcedVal == null) {
|
407
|
+
forcedVal = !elem.classList.contains(cls);
|
408
|
+
}
|
409
|
+
if(forcedVal) {
|
410
|
+
elem.classList.add(cls);
|
411
|
+
} else {
|
412
|
+
elem.classList.remove(cls);
|
413
|
+
}
|
414
|
+
}
|
415
|
+
};
|
416
|
+
/** Adds or removes CSS class by specifying "enabled" parameter
|
417
|
+
* @public
|
418
|
+
* @param {string} str
|
419
|
+
* @param {boolean=} opt_enabled Default is true
|
420
|
+
*/
|
421
|
+
ElementWrapper.prototype.enableClass = function (str, opt_enabled) {
|
422
|
+
if (opt_enabled !== false) {
|
423
|
+
this.addClass(str);
|
424
|
+
} else {
|
425
|
+
this.removeClass(str);
|
426
|
+
}
|
427
|
+
};
|
428
|
+
/**
|
429
|
+
* @public
|
430
|
+
* @return {string}
|
431
|
+
*/
|
432
|
+
ElementWrapper.prototype.getClass = function () { return this._element.className; };
|
433
|
+
/**
|
434
|
+
* @public
|
435
|
+
* @param {string} str All existing classes will be placed by this value
|
436
|
+
*/
|
437
|
+
ElementWrapper.prototype.setClass = function (str) { this._element.className = str; };
|
438
|
+
|
439
|
+
/**
|
440
|
+
* @public
|
441
|
+
* @param {string} str
|
442
|
+
* @return {string}
|
443
|
+
*/
|
444
|
+
ElementWrapper.prototype.getAttribute = function (str) { return this._element.getAttribute(str); };
|
445
|
+
/** Sets attribute to DOM element
|
446
|
+
* @public
|
447
|
+
* @param {string} str
|
448
|
+
* @param {string} val Uses empty string ("") to remove the attribute value
|
449
|
+
*/
|
450
|
+
ElementWrapper.prototype.setAttribute = function (str, val) { this._element.setAttribute(str, val); };
|
451
|
+
/** Sets multiple attributes all at once
|
452
|
+
* @public
|
453
|
+
* @param {Object} json Key is the attribute names and value is string value (i.e. "readonly", "50", "checkbox")
|
454
|
+
*/
|
455
|
+
ElementWrapper.prototype.setAttributes = function (json) {
|
456
|
+
for (var key in json) {
|
457
|
+
this._element.setAttribute(key, json[key]);
|
458
|
+
}
|
459
|
+
};
|
460
|
+
/** Completely removes attribute from DOM element for both key and values
|
461
|
+
* @public
|
462
|
+
* @param {string} str
|
463
|
+
*/
|
464
|
+
ElementWrapper.prototype.removeAttribute = function (str) { this._element.removeAttribute(str); };
|
465
|
+
|
466
|
+
/**
|
467
|
+
* @public
|
468
|
+
* @param {string} str
|
469
|
+
* @return {string}
|
470
|
+
*/
|
471
|
+
ElementWrapper.prototype.getStyle = function (str) { return this._element.style[str]; };
|
472
|
+
/**
|
473
|
+
* @public
|
474
|
+
* @param {string} str
|
475
|
+
* @param {string} val
|
476
|
+
*/
|
477
|
+
ElementWrapper.prototype.setStyle = function (str, val) { this._element.style[str] = val; };
|
478
|
+
/** Sets multiple css properties all at once
|
479
|
+
* @public
|
480
|
+
* @param {Object} json Key is the property names and value is style value (i.e. "center", "#FF00FF", "10px")
|
481
|
+
*/
|
482
|
+
ElementWrapper.prototype.setStyles = function (json) {
|
483
|
+
var styles = this._element.style;
|
484
|
+
for (var key in json) {
|
485
|
+
styles[key] = json[key];
|
486
|
+
}
|
487
|
+
};
|
488
|
+
//#endregion HTML Styling
|
489
|
+
|
490
|
+
//#region Common HTML Helpers
|
491
|
+
/**
|
492
|
+
* @public
|
493
|
+
* @return {string}
|
494
|
+
*/
|
495
|
+
ElementWrapper.prototype.getId = function () {
|
496
|
+
return this._element.id;
|
497
|
+
};
|
498
|
+
/**
|
499
|
+
* @public
|
500
|
+
* @param {string} val
|
501
|
+
*/
|
502
|
+
ElementWrapper.prototype.setId = function (val) {
|
503
|
+
this._element.id = val;
|
504
|
+
};
|
505
|
+
/** Return a string that represents the object mainly for debugging
|
506
|
+
* @public
|
507
|
+
* @return {string}
|
508
|
+
*/
|
509
|
+
ElementWrapper.prototype.toString = function () {
|
510
|
+
var outer = this._element.outerHTML;
|
511
|
+
outer = outer.replace(this._element.innerHTML, "");
|
512
|
+
return outer;
|
513
|
+
};
|
514
|
+
|
515
|
+
/** Gets textContent (IE9+) value from this element
|
516
|
+
* @public
|
517
|
+
* @return {string}
|
518
|
+
*/
|
519
|
+
ElementWrapper.prototype.getTextContent = function () {
|
520
|
+
return this._element.textContent;
|
521
|
+
};
|
522
|
+
/** Sets textContent (IE9+) value this will replace all childNodes with a single TextNode
|
523
|
+
* @public
|
524
|
+
* @param {string} str
|
525
|
+
*/
|
526
|
+
ElementWrapper.prototype.setTextContent = function (str) {
|
527
|
+
this._element.textContent = str;
|
528
|
+
};
|
529
|
+
|
530
|
+
/** Gets the left position that is relative to its parent's client area
|
531
|
+
* @public
|
532
|
+
* @return {number}
|
533
|
+
*/
|
534
|
+
ElementWrapper.prototype.getLeft = function () { return this._element.offsetLeft; };
|
535
|
+
/**
|
536
|
+
* @public
|
537
|
+
* @param {number} val in pixel
|
538
|
+
* @return {boolean} true if there is any change, otherwise false
|
539
|
+
*/
|
540
|
+
ElementWrapper.prototype.setLeft = function (val) {
|
541
|
+
this._element.style.left = val + "px";
|
542
|
+
return true;
|
543
|
+
};
|
544
|
+
|
545
|
+
/** Gets the top position that is relative to its parent's client area
|
546
|
+
* @public
|
547
|
+
* @return {number}
|
548
|
+
*/
|
549
|
+
ElementWrapper.prototype.getTop = function () { return this._element.offsetTop; };
|
550
|
+
/**
|
551
|
+
* @public
|
552
|
+
* @param {number} val in pixel
|
553
|
+
* @return {boolean} ture if there is any change, otherwise false
|
554
|
+
*/
|
555
|
+
ElementWrapper.prototype.setTop = function (val) {
|
556
|
+
this._element.style.top = val + "px";
|
557
|
+
return true;
|
558
|
+
};
|
559
|
+
|
560
|
+
/** Gets offsetWidth
|
561
|
+
* @public
|
562
|
+
* @return {number}
|
563
|
+
*/
|
564
|
+
ElementWrapper.prototype.getWidth = function () { return this._element.offsetWidth; };
|
565
|
+
/** For complex sizing, use setStyle("width", "-webkit-calc(100% - 10px)") instead.
|
566
|
+
* @public
|
567
|
+
* @param {number} val in pixel
|
568
|
+
* @return {boolean} true if there is any change, otherwise false
|
569
|
+
*/
|
570
|
+
ElementWrapper.prototype.setWidth = function (val) {
|
571
|
+
this._element.style.width = val + "px";
|
572
|
+
return true;
|
573
|
+
};
|
574
|
+
|
575
|
+
/** Gets offsetHeight
|
576
|
+
* @public
|
577
|
+
* @return {number} in pixel
|
578
|
+
*/
|
579
|
+
ElementWrapper.prototype.getHeight = function () { return this._element.offsetHeight; };
|
580
|
+
/** For complex sizing, use setStyle("height", "-webkit-calc(100% - 10px)") instead.
|
581
|
+
* @public
|
582
|
+
* @param {number} val in pixel
|
583
|
+
* @return {boolean} true if there is any change, otherwise false
|
584
|
+
*/
|
585
|
+
ElementWrapper.prototype.setHeight = function (val) {
|
586
|
+
if (val < 0) { val = 0; }
|
587
|
+
this._element.style.height = val + "px";
|
588
|
+
return true;
|
589
|
+
};
|
590
|
+
|
591
|
+
/** The returned value is a TextRectangle object, which contains read-only left,
|
592
|
+
* top, right and bottom properties describing the border-box, in pixels, with the top-left
|
593
|
+
* relative to the top-left of the viewport.
|
594
|
+
* @public
|
595
|
+
* @return {Object}
|
596
|
+
*/
|
597
|
+
ElementWrapper.prototype.getBoundingClientRect = function () {
|
598
|
+
return this._element.getBoundingClientRect();
|
599
|
+
};
|
600
|
+
|
601
|
+
/** Sets width in percentage corresponding to the parent
|
602
|
+
* @public
|
603
|
+
* @param {number=} opt_percent If not defined, 100% width is used
|
604
|
+
* @return {boolean} true if there is any change, otherwise false
|
605
|
+
*/
|
606
|
+
ElementWrapper.prototype.fillParentWidth = function (opt_percent) {
|
607
|
+
if (opt_percent == null) { opt_percent = 100; }
|
608
|
+
|
609
|
+
this._element.style.width = opt_percent + "%";
|
610
|
+
return true;
|
611
|
+
};
|
612
|
+
/** Sets height in percentage corresponding to the parent
|
613
|
+
* @public
|
614
|
+
* @param {number=} opt_percent If not defined, 100% height is used
|
615
|
+
* @return {boolean} true if there is any change, otherwise false
|
616
|
+
*/
|
617
|
+
ElementWrapper.prototype.fillParentHeight = function (opt_percent) {
|
618
|
+
if (opt_percent == null) { opt_percent = 100; }
|
619
|
+
|
620
|
+
this._element.style.height = opt_percent + "%";
|
621
|
+
return true;
|
622
|
+
};
|
623
|
+
|
624
|
+
/** Gets tooltip text from "title" attribute
|
625
|
+
* @public
|
626
|
+
* @return {string}
|
627
|
+
*/
|
628
|
+
ElementWrapper.prototype.getTooltip = function () { return this.getAttribute("title"); };
|
629
|
+
/** Sets tooltip text to "title" attribute
|
630
|
+
* @public
|
631
|
+
* @param {string} str
|
632
|
+
*/
|
633
|
+
ElementWrapper.prototype.setTooltip = function(str) {
|
634
|
+
if(str) {
|
635
|
+
this.setAttribute("title", str);
|
636
|
+
} else {
|
637
|
+
this.removeAttribute("title");
|
638
|
+
}
|
639
|
+
};
|
640
|
+
|
641
|
+
/** Sets display style as inline style to the element with value of empty string
|
642
|
+
* @public
|
643
|
+
* @param {boolean=} opt_shown If false the element will be hidden
|
644
|
+
*/
|
645
|
+
ElementWrapper.prototype.show = function (opt_shown) {
|
646
|
+
this._element.style.display = (opt_shown !== false) ? "" : "none";
|
647
|
+
};
|
648
|
+
/** Sets display style as inline style to the element with value of "none"
|
649
|
+
* @public
|
650
|
+
* @param {boolean=} opt_hidden If false the element will be shown
|
651
|
+
*/
|
652
|
+
ElementWrapper.prototype.hide = function (opt_hidden) {
|
653
|
+
this.show(opt_hidden === false);
|
654
|
+
};
|
655
|
+
/** Check to see if display has "none" as a inline style. Note that any change in visibility and class name may not be reflected by the returned value.
|
656
|
+
* @public
|
657
|
+
* @return {boolean}
|
658
|
+
*/
|
659
|
+
ElementWrapper.prototype.isVisible = function () { return this._element.style.display !== "none"; };
|
660
|
+
|
661
|
+
/** Enable control element
|
662
|
+
* @public
|
663
|
+
* @param {boolean=} opt_enabled If false the element will be hidden
|
664
|
+
*/
|
665
|
+
ElementWrapper.prototype.enable = function (opt_enabled) {
|
666
|
+
opt_enabled = opt_enabled !== false;
|
667
|
+
if (opt_enabled) {
|
668
|
+
this.removeAttribute("disabled");
|
669
|
+
} else {
|
670
|
+
this.setAttribute("disabled", "disabled");
|
671
|
+
this._element.disabled = !opt_enabled;
|
672
|
+
}
|
673
|
+
};
|
674
|
+
/** Disable control element
|
675
|
+
* @public
|
676
|
+
* @param {boolean=} opt_disabled If false the element will be shown
|
677
|
+
*/
|
678
|
+
ElementWrapper.prototype.disable = function (opt_disabled) {
|
679
|
+
this.enable(opt_disabled === false);
|
680
|
+
};
|
681
|
+
/** Check if control element is enabled
|
682
|
+
* @public
|
683
|
+
* @return {boolean} true if element is enabled
|
684
|
+
*/
|
685
|
+
ElementWrapper.prototype.isEnabled = function () {
|
686
|
+
return !this._element.hasAttribute("disabled");
|
687
|
+
};
|
688
|
+
|
689
|
+
/** Note that if element display style is set to "none" or not in the document, scroll value will automatically reset to zero and will not be restored when it is back to visible state
|
690
|
+
* @public
|
691
|
+
* @return {number}
|
692
|
+
*/
|
693
|
+
ElementWrapper.prototype.getScrollLeft = function () { return this._element.scrollLeft; };
|
694
|
+
/**
|
695
|
+
* @public
|
696
|
+
* @return {number}
|
697
|
+
*/
|
698
|
+
ElementWrapper.prototype.getScrollTop = function () { return this._element.scrollTop; };
|
699
|
+
/**
|
700
|
+
* @public
|
701
|
+
* @return {boolean}
|
702
|
+
*/
|
703
|
+
ElementWrapper.prototype.isEndOfHorizontalScroll = function () { return this._element.scrollLeft >= this._element.scrollWidth - this.getWidth(); };
|
704
|
+
/**
|
705
|
+
* @public
|
706
|
+
* @return {boolean}
|
707
|
+
*/
|
708
|
+
ElementWrapper.prototype.isEndOfVerticalScroll = function () { return this._element.scrollTop >= this._element.scrollHeight - this.getHeight(); };
|
709
|
+
//#endregion Common HTML Helpers
|
710
|
+
|
711
|
+
ElementWrapper._proto = ElementWrapper.prototype;
|
712
|
+
|
713
|
+
export default ElementWrapper;
|
714
|
+
export { ElementWrapper };
|