@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,818 @@
|
|
1
|
+
import { Ext } from './Ext.js';
|
2
|
+
import { EventDispatcher } from './EventDispatcher.js';
|
3
|
+
import { Dom } from './Dom.js';
|
4
|
+
|
5
|
+
/** @typedef {Object} Popup~Options
|
6
|
+
* @description Popup options
|
7
|
+
* @property {Popup~Positioning=} positioning="under"
|
8
|
+
* @property {boolean=} autoHiding=true Hide on blur or clicking outside of popup elements
|
9
|
+
* @property {boolean=} hoverToShow=false Show popup when mouse is over the attached element.
|
10
|
+
* @property {boolean=} autoClipping=true Clip popup element when there is not enough space to show popup
|
11
|
+
* @property {Element=} attachedElement=null Target element that will be used as a base for positioning.
|
12
|
+
* @property {Element=} focusElement=null Additional element that can be focused without triggering autoHiding
|
13
|
+
* @property {Array.<Element>=} focusElements=null Additional elements that can be focused without triggering autoHiding
|
14
|
+
* @property {Element=} parentElement=body Element that popup will become a child
|
15
|
+
* @property {Element=} contentElement=null Content element that will be moved out of document and added as a child of popup element
|
16
|
+
* @property {Popup=} popupChild=null Popup instance that will be hidden when its parent is hidden
|
17
|
+
* @property {boolean=} uiBlocking=false To attach overlay to block user from interact with ui behind popup
|
18
|
+
*/
|
19
|
+
|
20
|
+
/** @typedef {string} Popup~Positioning
|
21
|
+
* @description Available positioning type are: <br>
|
22
|
+
* <b>under</b> - popup appears under the attached element (Default) <br>
|
23
|
+
* <b>right</b> - popup appears on the right side of the attached element <br>
|
24
|
+
* <b>over</b> - popup appears on the top left of the attached element (i.e. over the element) <br>
|
25
|
+
* <b>center</b> - popup appears at the center of the screen. No element should be supplied <br>
|
26
|
+
* <b>fixed</b> - popup appears without any positioning <br>
|
27
|
+
* <b>custom</b> - popup appears without any positioning <br>
|
28
|
+
*
|
29
|
+
*/
|
30
|
+
|
31
|
+
/** @event Popup#show
|
32
|
+
* @description Fired before popup element entering the DOM tree
|
33
|
+
* @type {Object}
|
34
|
+
* @property {string} type="show"
|
35
|
+
* @property {Element} target
|
36
|
+
* @property {Element} currentTarget
|
37
|
+
* @property {boolean} cancel=false Set to true to cancel the operation
|
38
|
+
*/
|
39
|
+
/** @event Popup#hide
|
40
|
+
* @description Fired before popup element leaving the DOM tree
|
41
|
+
* @type {Object}
|
42
|
+
* @property {string} type="hide"
|
43
|
+
* @property {Element} target
|
44
|
+
* @property {Element} currentTarget
|
45
|
+
* @property {boolean} cancel=false Set to true to cancel the operation
|
46
|
+
*/
|
47
|
+
/** @event Popup#shown
|
48
|
+
* @description Fired after popup element entering the DOM tree and before positioning
|
49
|
+
* @type {Object}
|
50
|
+
* @property {string} type="shown"
|
51
|
+
* @property {Element} target
|
52
|
+
* @property {Element} currentTarget
|
53
|
+
*/
|
54
|
+
/** @event Popup#hidden
|
55
|
+
* @description Fired after popup element leaving the DOM tree
|
56
|
+
* @type {Object}
|
57
|
+
* @property {string} type="hidden"
|
58
|
+
* @property {Element} target
|
59
|
+
* @property {Element} currentTarget
|
60
|
+
*/
|
61
|
+
/** @event Popup#positioning
|
62
|
+
* @description Fired after each positioning operation
|
63
|
+
* @type {Object}
|
64
|
+
* @property {Element} target
|
65
|
+
* @property {Element} currentTarget
|
66
|
+
*/
|
67
|
+
|
68
|
+
/** Check if one of the target elements of the MouseEvent is contained inside the parentElement
|
69
|
+
* @public
|
70
|
+
* @param {Element} parentElem
|
71
|
+
* @param {MouseEvent} e
|
72
|
+
* @return {boolean}
|
73
|
+
*/
|
74
|
+
var containElements = function (parentElem, e) {
|
75
|
+
// Use e.composedPath() instead of e.target (if composedPath exists)
|
76
|
+
// when popup inside custom element and popup has been clicked
|
77
|
+
// e.target appear to be custom element itself (we expect to be element item inside popup)
|
78
|
+
// so use e.composedPath() will make the trick
|
79
|
+
if (e.composedPath) {
|
80
|
+
var elems = e.composedPath();
|
81
|
+
if (elems.indexOf(parentElem) >= 0) {
|
82
|
+
return true;
|
83
|
+
}
|
84
|
+
return parentElem.contains(elems[0]);
|
85
|
+
}
|
86
|
+
return parentElem.contains(e.target);
|
87
|
+
};
|
88
|
+
|
89
|
+
/** @constructor
|
90
|
+
* @extends {EventDispatcher}
|
91
|
+
* @param {(Element|Popup~Options)=} popupElem Popup element or popup configuration object
|
92
|
+
* @param {Popup~Options=} options
|
93
|
+
* @example
|
94
|
+
* var pu = new Popup(popupElem);
|
95
|
+
* pu.attachTo(some_elem);
|
96
|
+
* pu.show();
|
97
|
+
*/
|
98
|
+
var Popup = function (popupElem, options) {
|
99
|
+
var t = this;
|
100
|
+
t["show"] = t.show = t.show.bind(t);
|
101
|
+
t["hide"] = t.hide = t.hide.bind(t);
|
102
|
+
t["toggle"] = t.toggle = t.toggle.bind(t);
|
103
|
+
t._onBlur = t._onBlur.bind(t); // For auto hiding
|
104
|
+
t._onBlurTimer = t._onBlurTimer.bind(t); // For auto hiding
|
105
|
+
t._onResize = t._onResize.bind(t); // For throttling
|
106
|
+
t.updatePosition = t.updatePosition.bind(t); // For throttling
|
107
|
+
t._onScroll = t._onScroll.bind(t); // For throttling
|
108
|
+
t._onMouseOver = t._onMouseOver.bind(t);
|
109
|
+
t._onMouseOut = t._onMouseOut.bind(t);
|
110
|
+
t._onMouseOverTimeout = t._onMouseOverTimeout.bind(t);
|
111
|
+
|
112
|
+
if (popupElem && popupElem.nodeType !== 1) {
|
113
|
+
options = popupElem;
|
114
|
+
popupElem = null;
|
115
|
+
}
|
116
|
+
|
117
|
+
if (popupElem) {
|
118
|
+
t._elem = popupElem;
|
119
|
+
Dom.removeParent(popupElem);
|
120
|
+
} else {
|
121
|
+
t._elem = document.createElement("div");
|
122
|
+
}
|
123
|
+
t._elem.style.position = "fixed";
|
124
|
+
t._elem.style.left = "0";
|
125
|
+
t._elem.style.top = "0";
|
126
|
+
t._elem.style.display = "inline-block";
|
127
|
+
|
128
|
+
t._focusElements = [t._elem];
|
129
|
+
t._children = [];
|
130
|
+
t._evtArg = {
|
131
|
+
"target": t._elem,
|
132
|
+
"currentTarget": t._elem
|
133
|
+
};
|
134
|
+
|
135
|
+
t._parentElement = document.body;
|
136
|
+
t.init(options);
|
137
|
+
};
|
138
|
+
Ext.inherits(Popup, EventDispatcher);
|
139
|
+
|
140
|
+
/** @type {Element}
|
141
|
+
* @private
|
142
|
+
*/
|
143
|
+
Popup.prototype._elem = null;
|
144
|
+
/** @type {boolean}
|
145
|
+
* @private
|
146
|
+
*/
|
147
|
+
Popup.prototype._disabled = false;
|
148
|
+
/** @type {boolean}
|
149
|
+
* @private
|
150
|
+
*/
|
151
|
+
Popup.prototype._inDoc = false;
|
152
|
+
/** @type {boolean}
|
153
|
+
* @private
|
154
|
+
*/
|
155
|
+
Popup.prototype._autoHiding = true;
|
156
|
+
/** @type {number}
|
157
|
+
* @private
|
158
|
+
*/
|
159
|
+
Popup.prototype._blurTimer = 0;
|
160
|
+
/** @type {number}
|
161
|
+
* @private
|
162
|
+
*/
|
163
|
+
Popup.prototype._resizeTimer = 0;
|
164
|
+
|
165
|
+
/** @type {Element}
|
166
|
+
* @private
|
167
|
+
*/
|
168
|
+
Popup.prototype._attachedElem = null;
|
169
|
+
/** @type {string}
|
170
|
+
* @private
|
171
|
+
*/
|
172
|
+
Popup.prototype._positioning = "under";
|
173
|
+
/** @type {!Array.<Element>}
|
174
|
+
* @private
|
175
|
+
*/
|
176
|
+
Popup.prototype._focusElements;
|
177
|
+
/** @type {Element}
|
178
|
+
* @private
|
179
|
+
*/
|
180
|
+
Popup.prototype._parentElement;
|
181
|
+
/** @type {!Array.<Popup>}
|
182
|
+
* @private
|
183
|
+
*/
|
184
|
+
Popup.prototype._children;
|
185
|
+
/** @type {!Object}
|
186
|
+
* @private
|
187
|
+
*/
|
188
|
+
Popup.prototype._evtArg;
|
189
|
+
|
190
|
+
/** @type {boolean}
|
191
|
+
* @private
|
192
|
+
*/
|
193
|
+
Popup.prototype._autoClipping = true;
|
194
|
+
/** @type {number|string|null}
|
195
|
+
* @private
|
196
|
+
*/
|
197
|
+
Popup.prototype._origW = null;
|
198
|
+
/** @type {number|string|null}
|
199
|
+
* @private
|
200
|
+
*/
|
201
|
+
Popup.prototype._origH = null;
|
202
|
+
|
203
|
+
/** @type {boolean}
|
204
|
+
* @private
|
205
|
+
*/
|
206
|
+
Popup.prototype._hoverToShow = false;
|
207
|
+
/** @type {number}
|
208
|
+
* @private
|
209
|
+
*/
|
210
|
+
Popup.prototype._hoverTimer = 0;
|
211
|
+
/** @type {number}
|
212
|
+
* @private
|
213
|
+
*/
|
214
|
+
Popup.prototype._gap = 0;
|
215
|
+
/** @type {boolean}
|
216
|
+
* @private
|
217
|
+
*/
|
218
|
+
Popup.prototype._uiBlocking = false;
|
219
|
+
|
220
|
+
/** @public */
|
221
|
+
Popup.prototype.dispose = function () {
|
222
|
+
this._removeEventListeners();
|
223
|
+
this._clearMouseOverTimer();
|
224
|
+
|
225
|
+
for (var i = this._children.length; --i >= 0;) {
|
226
|
+
this._children[i].dispose();
|
227
|
+
}
|
228
|
+
|
229
|
+
this._inDoc = false;
|
230
|
+
Dom.removeParent(this._elem);
|
231
|
+
Dom.removeParent(this._overlay);
|
232
|
+
this._elem = null;
|
233
|
+
};
|
234
|
+
/** @public
|
235
|
+
* @return {Element}
|
236
|
+
*/
|
237
|
+
Popup.prototype.getElement = function () {
|
238
|
+
return this._elem;
|
239
|
+
};
|
240
|
+
/** @public
|
241
|
+
* @param {Element} childElem
|
242
|
+
*/
|
243
|
+
Popup.prototype.appendChild = function (childElem) {
|
244
|
+
if (childElem) {
|
245
|
+
this._elem.appendChild(childElem);
|
246
|
+
}
|
247
|
+
};
|
248
|
+
|
249
|
+
/** @public
|
250
|
+
* @param {boolean=} opt_bool
|
251
|
+
*/
|
252
|
+
Popup.prototype.disable = function (opt_bool) {
|
253
|
+
this._disabled = opt_bool !== false;
|
254
|
+
};
|
255
|
+
/** @public
|
256
|
+
* @param {boolean=} opt_bool
|
257
|
+
*/
|
258
|
+
Popup.prototype.enable = function (opt_bool) {
|
259
|
+
this._disabled = opt_bool === false;
|
260
|
+
};
|
261
|
+
|
262
|
+
/** @public
|
263
|
+
* @param {Popup~Options=} options
|
264
|
+
*/
|
265
|
+
Popup.prototype.init = function (options) {
|
266
|
+
if (!options) { return; }
|
267
|
+
|
268
|
+
if (options["positioning"]) {
|
269
|
+
this._positioning = /** @type{string} */(options["positioning"]);
|
270
|
+
}
|
271
|
+
if (options["autoHiding"] != null) {
|
272
|
+
this._autoHiding = options["autoHiding"] ? true : false;
|
273
|
+
}
|
274
|
+
if (options["uiBlocking"] != null) {
|
275
|
+
this.enableUIBlocking(options["uiBlocking"]);
|
276
|
+
}
|
277
|
+
if (options["hoverToShow"] != null) {
|
278
|
+
this._hoverToShow = options["hoverToShow"] ? true : false;
|
279
|
+
}
|
280
|
+
if (options["autoClipping"] != null) {
|
281
|
+
this._autoClipping = options["autoClipping"] ? true : false;
|
282
|
+
}
|
283
|
+
if (options["attachedElement"] != null) {
|
284
|
+
this.attachTo(options["attachedElement"]);
|
285
|
+
}
|
286
|
+
if (options["contentElement"] != null) {
|
287
|
+
this.appendChild(options["contentElement"]);
|
288
|
+
}
|
289
|
+
if (options["parentElement"] != null) {
|
290
|
+
this.setParentElement(options["parentElement"]);
|
291
|
+
}
|
292
|
+
|
293
|
+
if (options["popupChild"] != null) {
|
294
|
+
this.addPopupChild(options["popupChild"]);
|
295
|
+
}
|
296
|
+
|
297
|
+
this.addListener(options, "show");
|
298
|
+
this.addListener(options, "hide");
|
299
|
+
this.addListener(options, "shown");
|
300
|
+
this.addListener(options, "hidden");
|
301
|
+
|
302
|
+
var fe = options["focusElement"] || options["focusElements"];
|
303
|
+
if (fe) {
|
304
|
+
if (Array.isArray(fe)) {
|
305
|
+
for (var i = fe.length; --i >= 0;) {
|
306
|
+
this.addFocusElement(fe[i]);
|
307
|
+
}
|
308
|
+
} else {
|
309
|
+
this.addFocusElement(fe);
|
310
|
+
}
|
311
|
+
}
|
312
|
+
};
|
313
|
+
|
314
|
+
/** Use {@link Popup#addPopupChild} method instead to create menu and submenus. <br>
|
315
|
+
* attachTo() method is good for creating popup suggestion.
|
316
|
+
* @public
|
317
|
+
* @param {Element} elem
|
318
|
+
* @param {Popup~Positioning=} positioning
|
319
|
+
*/
|
320
|
+
Popup.prototype.attachTo = function (elem, positioning) {
|
321
|
+
if (!elem) {
|
322
|
+
elem = null;
|
323
|
+
}
|
324
|
+
if (this._attachedElem !== elem) {
|
325
|
+
if (this._hoverToShow && this._attachedElem) {
|
326
|
+
this._attachedElem.removeEventListener("mouseover", this._onMouseOver, false);
|
327
|
+
this._attachedElem.removeEventListener("mouseout", this._onMouseOut, false);
|
328
|
+
}
|
329
|
+
this.removeFocusElement(this._attachedElem);
|
330
|
+
this._attachedElem = elem;
|
331
|
+
this.addFocusElement(this._attachedElem);
|
332
|
+
|
333
|
+
if (this._hoverToShow && this._attachedElem) {
|
334
|
+
this._attachedElem.addEventListener("mouseover", this._onMouseOver, false);
|
335
|
+
this._attachedElem.addEventListener("mouseout", this._onMouseOut, false);
|
336
|
+
}
|
337
|
+
}
|
338
|
+
if (positioning != null) {
|
339
|
+
this.setPositioning(positioning);
|
340
|
+
}
|
341
|
+
};
|
342
|
+
/** @public
|
343
|
+
* @function
|
344
|
+
* @param {Element} elem
|
345
|
+
* @param {Popup~Positioning=} positioning
|
346
|
+
*/
|
347
|
+
Popup.prototype.setAttachedElement = Popup.prototype.attachTo;
|
348
|
+
|
349
|
+
/** @public
|
350
|
+
* @param {Element} elem
|
351
|
+
*/
|
352
|
+
Popup.prototype.addFocusElement = function (elem) {
|
353
|
+
if (elem) {
|
354
|
+
if (this._focusElements.indexOf(elem) < 0) {
|
355
|
+
this._focusElements.push(elem);
|
356
|
+
}
|
357
|
+
}
|
358
|
+
};
|
359
|
+
/** @public
|
360
|
+
* @param {Element} elem
|
361
|
+
*/
|
362
|
+
Popup.prototype.removeFocusElement = function (elem) {
|
363
|
+
if (elem) {
|
364
|
+
var at = this._focusElements.indexOf(elem);
|
365
|
+
if (at >= 0) {
|
366
|
+
this._focusElements.splice(at, 1);
|
367
|
+
}
|
368
|
+
}
|
369
|
+
};
|
370
|
+
/** @public
|
371
|
+
* @param {Popup=} popup
|
372
|
+
* @return {!Popup}
|
373
|
+
*/
|
374
|
+
Popup.prototype.addPopupChild = function (popup) {
|
375
|
+
if (!popup) {
|
376
|
+
popup = new Popup();
|
377
|
+
popup.setPositioning("right");
|
378
|
+
popup.attachTo(this._elem);
|
379
|
+
}
|
380
|
+
this.addFocusElement(popup.getElement());
|
381
|
+
this._children.push(popup);
|
382
|
+
return popup;
|
383
|
+
};
|
384
|
+
/** @public
|
385
|
+
* @param {number=} gap
|
386
|
+
*/
|
387
|
+
Popup.prototype.setPopupGap = function (gap) {
|
388
|
+
if (typeof gap === "number") {
|
389
|
+
this._gap = gap;
|
390
|
+
} else {
|
391
|
+
this._gap = 0;
|
392
|
+
}
|
393
|
+
};
|
394
|
+
|
395
|
+
/** @public
|
396
|
+
* @param {Element} parentElement
|
397
|
+
* @return {Element} In order to set parent element of popup <br>
|
398
|
+
* if parentElement is not Element (maybe undefined) then this._parentElement will be place with document.body;
|
399
|
+
*/
|
400
|
+
Popup.prototype.setParentElement = function (parentElement) {
|
401
|
+
if (parentElement instanceof Element) {
|
402
|
+
this._parentElement = parentElement;
|
403
|
+
} else if (!this._parentElement) {
|
404
|
+
this._parentElement = document.body;
|
405
|
+
}
|
406
|
+
return this._parentElement;
|
407
|
+
};
|
408
|
+
|
409
|
+
/** @public
|
410
|
+
* @param {boolean=} opt_shown
|
411
|
+
* @param {Element=} parentElement
|
412
|
+
* @fires Popup#show
|
413
|
+
* @fires Popup#hide
|
414
|
+
* @fires Popup#shown
|
415
|
+
* @fires Popup#hidden
|
416
|
+
* @fires Popup#positioning
|
417
|
+
*/
|
418
|
+
Popup.prototype.show = function (opt_shown, parentElement) {
|
419
|
+
var t = this;
|
420
|
+
t._clearMouseOverTimer();
|
421
|
+
if (t._disabled) { return; }
|
422
|
+
|
423
|
+
var shown = opt_shown !== false;
|
424
|
+
var dirty = t._inDoc !== shown;
|
425
|
+
if (!dirty) {
|
426
|
+
t.updatePosition();
|
427
|
+
return;
|
428
|
+
}
|
429
|
+
|
430
|
+
var evtType = shown ? "show" : "hide";
|
431
|
+
t._evtArg["type"] = evtType;
|
432
|
+
t._dispatch(evtType, t._evtArg);
|
433
|
+
if (t._evtArg["cancel"]) {
|
434
|
+
t._evtArg["cancel"] = false;
|
435
|
+
return;
|
436
|
+
}
|
437
|
+
|
438
|
+
if (shown) {
|
439
|
+
t._inDoc = true;
|
440
|
+
if (!(parentElement instanceof Element)) {
|
441
|
+
parentElement = t._parentElement;
|
442
|
+
}
|
443
|
+
if (t._uiBlocking) {
|
444
|
+
t._attachOverlay(parentElement);
|
445
|
+
}
|
446
|
+
|
447
|
+
parentElement.appendChild(t._elem);
|
448
|
+
parentElement.addEventListener("scroll", t._onScroll, true); // TODO: Remove the listener
|
449
|
+
|
450
|
+
if (t._autoHiding) {
|
451
|
+
window.addEventListener("mousedown", t._onBlur, true);
|
452
|
+
window.addEventListener("touchstart", t._onBlur, true);
|
453
|
+
}
|
454
|
+
window.addEventListener("resize", t._onResize, false);
|
455
|
+
window.addEventListener("scroll", t._onScroll, true);
|
456
|
+
} else if (t._inDoc) {
|
457
|
+
t._removeEventListeners();
|
458
|
+
t._restoreElementSize();
|
459
|
+
|
460
|
+
for (var i = t._children.length; --i >= 0;) {
|
461
|
+
t._children[i].hide();
|
462
|
+
}
|
463
|
+
t._inDoc = false;
|
464
|
+
|
465
|
+
Dom.removeParent(t._elem);
|
466
|
+
Dom.removeParent(t._overlay);
|
467
|
+
}
|
468
|
+
|
469
|
+
evtType = shown ? "shown" : "hidden";
|
470
|
+
t._evtArg["type"] = evtType;
|
471
|
+
t._dispatch(evtType, t._evtArg);
|
472
|
+
|
473
|
+
if (shown) {
|
474
|
+
t.updatePosition(); // Position has to be updated after firing the event, for client element to be resized
|
475
|
+
}
|
476
|
+
};
|
477
|
+
/** @public
|
478
|
+
* @param {boolean=} opt_hidden
|
479
|
+
*/
|
480
|
+
Popup.prototype.hide = function (opt_hidden) {
|
481
|
+
this.show(opt_hidden === false);
|
482
|
+
};
|
483
|
+
/** Toggle showing or hiding state
|
484
|
+
* @public
|
485
|
+
* @param {boolean=} force Force the state without toggling
|
486
|
+
* @param {Element=} parentElement
|
487
|
+
* @fires Popup#show
|
488
|
+
* @fires Popup#hide
|
489
|
+
* @fires Popup#shown
|
490
|
+
* @fires Popup#hidden
|
491
|
+
* @fires Popup#positioning
|
492
|
+
*/
|
493
|
+
Popup.prototype.toggle = function (force, parentElement) {
|
494
|
+
if (force == null) {
|
495
|
+
force = !this._inDoc;
|
496
|
+
}
|
497
|
+
if (force) {
|
498
|
+
this.show(true, parentElement);
|
499
|
+
} else {
|
500
|
+
this.hide();
|
501
|
+
}
|
502
|
+
};
|
503
|
+
|
504
|
+
/** @public
|
505
|
+
* @return {boolean}
|
506
|
+
*/
|
507
|
+
Popup.prototype.isShown = function () {
|
508
|
+
return this._inDoc;
|
509
|
+
};
|
510
|
+
/** @public
|
511
|
+
* @return {boolean}
|
512
|
+
*/
|
513
|
+
Popup.prototype.isHidden = function () {
|
514
|
+
return !this._inDoc;
|
515
|
+
};
|
516
|
+
|
517
|
+
/** @public
|
518
|
+
* @param {Element|Array.<Element>} elems
|
519
|
+
* @return {boolean}
|
520
|
+
*/
|
521
|
+
Popup.prototype.contains = function (elems) {
|
522
|
+
if (elems) {
|
523
|
+
elems = Array.isArray(elems) ? elems : [elems];
|
524
|
+
|
525
|
+
var fe = this._focusElements;
|
526
|
+
for (var i = fe.length; --i >= 0;) {
|
527
|
+
if (elems.indexOf(fe[i]) >= 0 || fe[i].contains(elems[0])) {
|
528
|
+
return true;
|
529
|
+
}
|
530
|
+
}
|
531
|
+
}
|
532
|
+
return false;
|
533
|
+
};
|
534
|
+
|
535
|
+
/** @public
|
536
|
+
* @param {Popup~Positioning} posType
|
537
|
+
* @fires Popup#positioning
|
538
|
+
*/
|
539
|
+
Popup.prototype.setPositioning = function (posType) {
|
540
|
+
if (this._positioning !== posType) {
|
541
|
+
this._positioning = posType;
|
542
|
+
this.updatePosition();
|
543
|
+
}
|
544
|
+
};
|
545
|
+
|
546
|
+
/** @public
|
547
|
+
* @param {boolean=} opt_disabled
|
548
|
+
*/
|
549
|
+
Popup.prototype.disableAutoHiding = function (opt_disabled) {
|
550
|
+
var autoHiding = (opt_disabled === false);
|
551
|
+
if (this._autoHiding !== autoHiding) {
|
552
|
+
this._autoHiding = autoHiding;
|
553
|
+
if (this._inDoc) {
|
554
|
+
if (autoHiding) {
|
555
|
+
window.addEventListener("mousedown", this._onBlur, true);
|
556
|
+
window.addEventListener("touchstart", this._onBlur, true);
|
557
|
+
} else {
|
558
|
+
window.removeEventListener("mousedown", this._onBlur, true);
|
559
|
+
window.removeEventListener("touchstart", this._onBlur, true);
|
560
|
+
}
|
561
|
+
}
|
562
|
+
}
|
563
|
+
};
|
564
|
+
/** @public
|
565
|
+
* @param {boolean=} opt_disabled
|
566
|
+
*/
|
567
|
+
Popup.prototype.disableAutoClipping = function (opt_disabled) {
|
568
|
+
var autoClipping = (opt_disabled === false);
|
569
|
+
if (this._autoClipping !== autoClipping) {
|
570
|
+
this._autoClipping = autoClipping;
|
571
|
+
}
|
572
|
+
};
|
573
|
+
|
574
|
+
|
575
|
+
/** @public
|
576
|
+
* @fires Popup#positioning
|
577
|
+
*/
|
578
|
+
Popup.prototype.updatePosition = function () {
|
579
|
+
var t = this;
|
580
|
+
t._resizeTimer = 0;
|
581
|
+
|
582
|
+
if (!t._inDoc) { return; }
|
583
|
+
|
584
|
+
if (t._attachedElem) {
|
585
|
+
if (!t._attachedElem.offsetWidth) { // Check if attached element is visible in the DOM
|
586
|
+
return; // If the element has has no parent
|
587
|
+
}
|
588
|
+
|
589
|
+
if (t._autoClipping) {
|
590
|
+
t._restoreElementSize();
|
591
|
+
}
|
592
|
+
var pos = Dom.getRelativePosition(t._attachedElem, document.body);
|
593
|
+
var px = pos["x"];
|
594
|
+
var py = pos["y"];
|
595
|
+
|
596
|
+
var ww = window.innerWidth;
|
597
|
+
var wh = window.innerHeight;
|
598
|
+
var sx = (window.scrollX != null) ? window.scrollX : window.pageXOffset;
|
599
|
+
var sy = (window.scrollY != null) ? window.scrollY : window.pageYOffset;
|
600
|
+
var rb = ww + sx; // view port right bound
|
601
|
+
var bb = wh + sy; // view port bottom bound
|
602
|
+
|
603
|
+
var aw = t._attachedElem.offsetWidth;
|
604
|
+
var ah = t._attachedElem.offsetHeight;
|
605
|
+
var ew = t._elem.offsetWidth;
|
606
|
+
var eh = t._elem.offsetHeight;
|
607
|
+
var x, y;
|
608
|
+
if (t._positioning == "right") {
|
609
|
+
x = px + aw + this._gap;
|
610
|
+
y = py;
|
611
|
+
// Re-position, if the popup exceeds the bounds
|
612
|
+
if ((x + ew > rb) && (px - ew > sx)) {
|
613
|
+
x = px - ew - this._gap;
|
614
|
+
}
|
615
|
+
if ((y + eh > bb) && (py + ah - eh > sy)) {
|
616
|
+
y = py + ah - eh;
|
617
|
+
}
|
618
|
+
} else if (t._positioning == "over") {
|
619
|
+
x = px;
|
620
|
+
y = py;
|
621
|
+
// Re-position, if the popup exceeds the bounds
|
622
|
+
if ((x + ew > rb) && (px + aw - ew > sx)) {
|
623
|
+
x = px + aw - ew;
|
624
|
+
}
|
625
|
+
if ((y + eh > bb) && (py + aw - eh > sy)) {
|
626
|
+
y = py + aw - eh;
|
627
|
+
}
|
628
|
+
} else { // bottom
|
629
|
+
x = px;
|
630
|
+
y = py + ah;
|
631
|
+
// Re-position, if the popup exceeds the bounds
|
632
|
+
if ((x + ew > rb) && (px + aw - ew > sx)) {
|
633
|
+
x = px + aw - ew;
|
634
|
+
}
|
635
|
+
if ((y + eh > bb) && (py - eh > sy)) {
|
636
|
+
y = py - eh;
|
637
|
+
}
|
638
|
+
}
|
639
|
+
if (t._autoClipping) { // Last resort of positioning
|
640
|
+
if (x + ew > rb) {
|
641
|
+
if (t._origW == null) {
|
642
|
+
t._origW = t._elem.style.width;
|
643
|
+
}
|
644
|
+
t._elem.style.width = (rb - x) + "px";
|
645
|
+
}
|
646
|
+
if (y + eh > bb) {
|
647
|
+
if (t._origH == null) {
|
648
|
+
t._origH = t._elem.style.height;
|
649
|
+
}
|
650
|
+
t._elem.style.height = (bb - y) + "px";
|
651
|
+
}
|
652
|
+
}
|
653
|
+
|
654
|
+
t._elem.style.left = Math.floor(x - sx) + "px"; // Due to fixed position we have to subtract window scrolling
|
655
|
+
t._elem.style.top = Math.floor(y - sy) + "px";
|
656
|
+
} else if (t._positioning != "fixed" && t._positioning != "custom") { // Centering at the middle
|
657
|
+
t._elem.style.left = "calc(50vw - " + Math.floor(t._elem.offsetWidth / 2) + "px)";
|
658
|
+
t._elem.style.top = "calc(46vh - " + Math.floor(t._elem.offsetHeight / 2) + "px)";
|
659
|
+
}
|
660
|
+
|
661
|
+
var evtType = "positioning";
|
662
|
+
t._evtArg["type"] = evtType;
|
663
|
+
t._dispatch(evtType, t._evtArg);
|
664
|
+
};
|
665
|
+
|
666
|
+
|
667
|
+
/** @public
|
668
|
+
* @param {boolean=} bool
|
669
|
+
* @return {boolean} previous uiBlocking state
|
670
|
+
*/
|
671
|
+
Popup.prototype.enableUIBlocking = function (bool) {
|
672
|
+
var prev = this._uiBlocking;
|
673
|
+
this._uiBlocking = bool !== false;
|
674
|
+
return prev;
|
675
|
+
};
|
676
|
+
|
677
|
+
/** @private
|
678
|
+
* @param {Element} parentElem
|
679
|
+
*/
|
680
|
+
Popup.prototype._attachOverlay = function (parentElem) {
|
681
|
+
if (!this._overlay) {
|
682
|
+
var elem = this._overlay = document.createElement('div');
|
683
|
+
|
684
|
+
// set style to overlay
|
685
|
+
var style = elem.style;
|
686
|
+
style.height = "100%";
|
687
|
+
style.width = "100%";
|
688
|
+
style.top = "0";
|
689
|
+
style.left = "0";
|
690
|
+
style.backgroundColor = "rgba(0, 0, 0, 0)"; /* transparent and no color apply */
|
691
|
+
}
|
692
|
+
|
693
|
+
|
694
|
+
if (parentElem === document.body) {
|
695
|
+
// use position fixed only for window
|
696
|
+
this._overlay.style.position = 'fixed';
|
697
|
+
} else {
|
698
|
+
// position absolute is use for any element that not body eg. Grid in shadow dom
|
699
|
+
// the overlay will cover for parent that has position relative setted
|
700
|
+
this._overlay.style.position = 'absolute';
|
701
|
+
}
|
702
|
+
parentElem.appendChild(this._overlay);
|
703
|
+
};
|
704
|
+
|
705
|
+
/** @private
|
706
|
+
* @param {Object=} e
|
707
|
+
*/
|
708
|
+
Popup.prototype._onBlur = function (e) {
|
709
|
+
if (this._blurTimer || !this._inDoc) {
|
710
|
+
return;
|
711
|
+
}
|
712
|
+
if (e) {
|
713
|
+
// use e.composedPath() instead of e.target (if composedPath exists)
|
714
|
+
// when popup inside custom element and popup has been clicked
|
715
|
+
// e.target appear to be custom element itself (we expect to be element item inside popup)
|
716
|
+
// so use e.composedPath() will make the trick
|
717
|
+
if (e.composedPath) {
|
718
|
+
if (this.contains(e.composedPath())) {
|
719
|
+
return;
|
720
|
+
}
|
721
|
+
} else if (this.contains(e.target)) {
|
722
|
+
return;
|
723
|
+
}
|
724
|
+
}
|
725
|
+
|
726
|
+
this._blurTimer = setTimeout(this._onBlurTimer, 10);
|
727
|
+
};
|
728
|
+
/** @private */
|
729
|
+
Popup.prototype._onBlurTimer = function () {
|
730
|
+
this._blurTimer = 0;
|
731
|
+
if (this.contains(document.activeElement)) {
|
732
|
+
return;
|
733
|
+
}
|
734
|
+
this.hide();
|
735
|
+
};
|
736
|
+
/** @private
|
737
|
+
* @fires Popup#positioning
|
738
|
+
*/
|
739
|
+
Popup.prototype._onResize = function () {
|
740
|
+
if (!this._resizeTimer && this._inDoc) {
|
741
|
+
this._resizeTimer = setTimeout(this.updatePosition, 50);
|
742
|
+
}
|
743
|
+
};
|
744
|
+
/** @private
|
745
|
+
* @param {Object} e
|
746
|
+
*/
|
747
|
+
Popup.prototype._onScroll = function (e) {
|
748
|
+
// only hide if target is not child of popup and e.target not the popup itself.
|
749
|
+
if (!this.contains(e.target)) {
|
750
|
+
this.hide();
|
751
|
+
}
|
752
|
+
};
|
753
|
+
/** @private
|
754
|
+
* @param {Object} e
|
755
|
+
*/
|
756
|
+
Popup.prototype._onMouseOver = function (e) {
|
757
|
+
if (!this._hoverTimer && !this._inDoc) {
|
758
|
+
this._hoverTimer = setTimeout(this._onMouseOverTimeout, 500);
|
759
|
+
}
|
760
|
+
};
|
761
|
+
/** @private
|
762
|
+
* @param {Object} e
|
763
|
+
*/
|
764
|
+
Popup.prototype._onMouseOut = function (e) {
|
765
|
+
if (this._hoverTimer) {
|
766
|
+
if (!e.currentTarget.contains(e.relatedTarget)) {
|
767
|
+
this._clearMouseOverTimer();
|
768
|
+
}
|
769
|
+
}
|
770
|
+
};
|
771
|
+
/** @private
|
772
|
+
*/
|
773
|
+
Popup.prototype._onMouseOverTimeout = function () {
|
774
|
+
this._hoverTimer = 0;
|
775
|
+
this.show();
|
776
|
+
};
|
777
|
+
/** @private
|
778
|
+
*/
|
779
|
+
Popup.prototype._clearMouseOverTimer = function () {
|
780
|
+
if (this._hoverTimer) {
|
781
|
+
clearTimeout(this._hoverTimer);
|
782
|
+
this._hoverTimer = 0;
|
783
|
+
}
|
784
|
+
};
|
785
|
+
|
786
|
+
/** @private */
|
787
|
+
Popup.prototype._restoreElementSize = function () {
|
788
|
+
if (this._origW != null) {
|
789
|
+
this._elem.style.width = this._origW;
|
790
|
+
this._origW = null;
|
791
|
+
}
|
792
|
+
if (this._origH != null) {
|
793
|
+
this._elem.style.height = this._origH;
|
794
|
+
this._origH = null;
|
795
|
+
}
|
796
|
+
};
|
797
|
+
/** @private */
|
798
|
+
Popup.prototype._removeEventListeners = function () {
|
799
|
+
if (this._blurTimer) {
|
800
|
+
clearTimeout(this._blurTimer);
|
801
|
+
this._blurTimer = 0;
|
802
|
+
}
|
803
|
+
if (this._resizeTimer) {
|
804
|
+
clearTimeout(this._resizeTimer);
|
805
|
+
this._resizeTimer = 0;
|
806
|
+
}
|
807
|
+
|
808
|
+
window.removeEventListener("mousedown", this._onBlur, true);
|
809
|
+
window.removeEventListener("touchstart", this._onBlur, true);
|
810
|
+
window.removeEventListener("resize", this._onResize, false);
|
811
|
+
window.removeEventListener("scroll", this._onScroll, true);
|
812
|
+
if (this._elem.parentElement) {
|
813
|
+
this._elem.parentElement.removeEventListener("scroll", this._onScroll, true);
|
814
|
+
}
|
815
|
+
};
|
816
|
+
|
817
|
+
export { Popup, containElements };
|
818
|
+
export default Popup;
|