lsp-grid 1.0.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/README.md +34 -0
- package/dist/cjs/app-globals-Bfsg1bDt.js +16 -0
- package/dist/cjs/app-globals-Bfsg1bDt.js.map +1 -0
- package/dist/cjs/cell-renderer-DtuYp7tj.js +106 -0
- package/dist/cjs/cell-renderer-DtuYp7tj.js.map +1 -0
- package/dist/cjs/column.drag.plugin-BIptTmfz.js +2554 -0
- package/dist/cjs/column.drag.plugin-BIptTmfz.js.map +1 -0
- package/dist/cjs/column.service-BnVSAfcu.js +1391 -0
- package/dist/cjs/column.service-BnVSAfcu.js.map +1 -0
- package/dist/cjs/data.store-CrF4Nf9q.js +3615 -0
- package/dist/cjs/data.store-CrF4Nf9q.js.map +1 -0
- package/dist/cjs/debounce-DgeyTQM0.js +498 -0
- package/dist/cjs/debounce-DgeyTQM0.js.map +1 -0
- package/dist/cjs/edit.utils-Bw-E3Fj6.js +118 -0
- package/dist/cjs/edit.utils-Bw-E3Fj6.js.map +1 -0
- package/dist/cjs/events-D0Syn6ut.js +46 -0
- package/dist/cjs/events-D0Syn6ut.js.map +1 -0
- package/dist/cjs/filter.button-CaAAXq-6.js +49 -0
- package/dist/cjs/filter.button-CaAAXq-6.js.map +1 -0
- package/dist/cjs/header-cell-renderer-DhRJqZ-w.js +356 -0
- package/dist/cjs/header-cell-renderer-DhRJqZ-w.js.map +1 -0
- package/dist/cjs/index-VM40U6Gh.js +2549 -0
- package/dist/cjs/index-VM40U6Gh.js.map +1 -0
- package/dist/cjs/index.cjs.js +346 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +19 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.entry.js +2187 -0
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.js +31 -0
- package/dist/cjs/revo-grid.cjs.js.map +1 -0
- package/dist/cjs/revo-grid.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution_7.cjs.entry.js +1463 -0
- package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-clipboard.revogr-edit.revogr-order-editor.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +456 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js +948 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +382 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.entry.cjs.js.map +1 -0
- package/dist/cjs/row-header-utils-DL640c7x.js +420 -0
- package/dist/cjs/row-header-utils-DL640c7x.js.map +1 -0
- package/dist/cjs/text-editor-DWChyeVV.js +81 -0
- package/dist/cjs/text-editor-DWChyeVV.js.map +1 -0
- package/dist/cjs/throttle-Bb1Bbfd1.js +278 -0
- package/dist/cjs/throttle-Bb1Bbfd1.js.map +1 -0
- package/dist/cjs/viewport.helpers-CI6uB8tu.js +59 -0
- package/dist/cjs/viewport.helpers-CI6uB8tu.js.map +1 -0
- package/dist/collection/collection-manifest.json +28 -0
- package/dist/collection/components/attribution/revogr-attribution.js +20 -0
- package/dist/collection/components/attribution/revogr-attribution.js.map +1 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +396 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
- package/dist/collection/components/data/cell-renderer.js +44 -0
- package/dist/collection/components/data/cell-renderer.js.map +1 -0
- package/dist/collection/components/data/column.service.js +293 -0
- package/dist/collection/components/data/column.service.js.map +1 -0
- package/dist/collection/components/data/revogr-data-style.css +75 -0
- package/dist/collection/components/data/revogr-data.js +697 -0
- package/dist/collection/components/data/revogr-data.js.map +1 -0
- package/dist/collection/components/data/row-highlight.plugin.js +51 -0
- package/dist/collection/components/data/row-highlight.plugin.js.map +1 -0
- package/dist/collection/components/data/row-renderer.js +16 -0
- package/dist/collection/components/data/row-renderer.js.map +1 -0
- package/dist/collection/components/editors/edit.utils.js +13 -0
- package/dist/collection/components/editors/edit.utils.js.map +1 -0
- package/dist/collection/components/editors/revogr-edit-style.css +16 -0
- package/dist/collection/components/editors/revogr-edit.js +346 -0
- package/dist/collection/components/editors/revogr-edit.js.map +1 -0
- package/dist/collection/components/editors/text-editor.js +74 -0
- package/dist/collection/components/editors/text-editor.js.map +1 -0
- package/dist/collection/components/extra/revogr-extra.js +125 -0
- package/dist/collection/components/extra/revogr-extra.js.map +1 -0
- package/dist/collection/components/header/header-cell-renderer.js +34 -0
- package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
- package/dist/collection/components/header/header-group-renderer.js +25 -0
- package/dist/collection/components/header/header-group-renderer.js.map +1 -0
- package/dist/collection/components/header/header-renderer.js +61 -0
- package/dist/collection/components/header/header-renderer.js.map +1 -0
- package/dist/collection/components/header/resizable.directive.js +237 -0
- package/dist/collection/components/header/resizable.directive.js.map +1 -0
- package/dist/collection/components/header/resizable.element.js +38 -0
- package/dist/collection/components/header/resizable.element.js.map +1 -0
- package/dist/collection/components/header/revogr-header-style.css +144 -0
- package/dist/collection/components/header/revogr-header.js +573 -0
- package/dist/collection/components/header/revogr-header.js.map +1 -0
- package/dist/collection/components/order/order-renderer.js +50 -0
- package/dist/collection/components/order/order-renderer.js.map +1 -0
- package/dist/collection/components/order/order-row.service.js +72 -0
- package/dist/collection/components/order/order-row.service.js.map +1 -0
- package/dist/collection/components/order/revogr-order-editor.js +461 -0
- package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
- package/dist/collection/components/overlay/autofill.service.js +224 -0
- package/dist/collection/components/overlay/autofill.service.js.map +1 -0
- package/dist/collection/components/overlay/keyboard.service.js +158 -0
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +1515 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +95 -0
- package/dist/collection/components/overlay/selection.utils.js +136 -0
- package/dist/collection/components/overlay/selection.utils.js.map +1 -0
- package/dist/collection/components/revoGrid/grid.helpers.js +33 -0
- package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/plugin.service.js +81 -0
- package/dist/collection/components/revoGrid/plugin.service.js.map +1 -0
- package/dist/collection/components/revoGrid/revo-grid-style.css +567 -0
- package/dist/collection/components/revoGrid/revo-grid.js +3671 -0
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js +49 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js +55 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +90 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.service.js +237 -0
- package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +291 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +5 -0
- package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +69 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +601 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js +44 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +34 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +295 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +7 -0
- package/dist/collection/components/selectionFocus/revogr-focus.js +400 -0
- package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +28 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js +171 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
- package/dist/collection/components/vnode/vnode-converter.js +84 -0
- package/dist/collection/components/vnode/vnode-converter.js.map +1 -0
- package/dist/collection/components/vnode/vnode.utils.js +18 -0
- package/dist/collection/components/vnode/vnode.utils.js.map +1 -0
- package/dist/collection/global/global.js +19 -0
- package/dist/collection/global/global.js.map +1 -0
- package/dist/collection/index.js +13 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/plugins/add-rows-on-paste.plugin.js +40 -0
- package/dist/collection/plugins/add-rows-on-paste.plugin.js.map +1 -0
- package/dist/collection/plugins/base.plugin.js +90 -0
- package/dist/collection/plugins/base.plugin.js.map +1 -0
- package/dist/collection/plugins/column.auto-size.plugin.js +225 -0
- package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -0
- package/dist/collection/plugins/column.stretch.plugin.js +96 -0
- package/dist/collection/plugins/column.stretch.plugin.js.map +1 -0
- package/dist/collection/plugins/dispatcher.js +40 -0
- package/dist/collection/plugins/dispatcher.js.map +1 -0
- package/dist/collection/plugins/export/csv.js +72 -0
- package/dist/collection/plugins/export/csv.js.map +1 -0
- package/dist/collection/plugins/export/export.plugin.js +157 -0
- package/dist/collection/plugins/export/export.plugin.js.map +1 -0
- package/dist/collection/plugins/export/types.js +2 -0
- package/dist/collection/plugins/export/types.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/equal.js +21 -0
- package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +14 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +11 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +16 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +11 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/set.js +7 -0
- package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +21 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +25 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
- package/dist/collection/plugins/filter/filter.button.js +28 -0
- package/dist/collection/plugins/filter/filter.button.js.map +1 -0
- package/dist/collection/plugins/filter/filter.indexed.js +49 -0
- package/dist/collection/plugins/filter/filter.indexed.js.map +1 -0
- package/dist/collection/plugins/filter/filter.panel.js +610 -0
- package/dist/collection/plugins/filter/filter.panel.js.map +1 -0
- package/dist/collection/plugins/filter/filter.plugin.js +388 -0
- package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
- package/dist/collection/plugins/filter/filter.style.css +165 -0
- package/dist/collection/plugins/filter/filter.types.js +9 -0
- package/dist/collection/plugins/filter/filter.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +16 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +245 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +38 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +2 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +178 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +61 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
- package/dist/collection/plugins/index.js +15 -0
- package/dist/collection/plugins/index.js.map +1 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +175 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js +71 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
- package/dist/collection/plugins/rtl/rtl.plugin.js +110 -0
- package/dist/collection/plugins/rtl/rtl.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.func.js +82 -0
- package/dist/collection/plugins/sorting/sorting.func.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +224 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +9 -0
- package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.types.js +2 -0
- package/dist/collection/plugins/sorting/sorting.types.js.map +1 -0
- package/dist/collection/plugins/wcag/index.js +84 -0
- package/dist/collection/plugins/wcag/index.js.map +1 -0
- package/dist/collection/serve/controller.js +344 -0
- package/dist/collection/serve/data.js +201 -0
- package/dist/collection/services/cell.helpers.js +12 -0
- package/dist/collection/services/cell.helpers.js.map +1 -0
- package/dist/collection/services/column.data.provider.js +119 -0
- package/dist/collection/services/column.data.provider.js.map +1 -0
- package/dist/collection/services/data.provider.js +89 -0
- package/dist/collection/services/data.provider.js.map +1 -0
- package/dist/collection/services/dimension.provider.js +176 -0
- package/dist/collection/services/dimension.provider.js.map +1 -0
- package/dist/collection/services/local.scroll.service.js +124 -0
- package/dist/collection/services/local.scroll.service.js.map +1 -0
- package/dist/collection/services/local.scroll.timer.js +81 -0
- package/dist/collection/services/local.scroll.timer.js.map +1 -0
- package/dist/collection/services/selection.store.connector.js +307 -0
- package/dist/collection/services/selection.store.connector.js.map +1 -0
- package/dist/collection/services/viewport.provider.js +17 -0
- package/dist/collection/services/viewport.provider.js.map +1 -0
- package/dist/collection/store/dataSource/data.proxy.js +45 -0
- package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
- package/dist/collection/store/dataSource/data.store.js +144 -0
- package/dist/collection/store/dataSource/data.store.js.map +1 -0
- package/dist/collection/store/dataSource/index.js +7 -0
- package/dist/collection/store/dataSource/index.js.map +1 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js +34 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.helpers.js +101 -0
- package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js +35 -0
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.store.js +109 -0
- package/dist/collection/store/dimension/dimension.store.js.map +1 -0
- package/dist/collection/store/dimension/dimension.trim.plugin.js +61 -0
- package/dist/collection/store/dimension/dimension.trim.plugin.js.map +1 -0
- package/dist/collection/store/dimension/index.js +6 -0
- package/dist/collection/store/dimension/index.js.map +1 -0
- package/dist/collection/store/index.js +17 -0
- package/dist/collection/store/index.js.map +1 -0
- package/dist/collection/store/selection/index.js +6 -0
- package/dist/collection/store/selection/index.js.map +1 -0
- package/dist/collection/store/selection/selection.helpers.js +53 -0
- package/dist/collection/store/selection/selection.helpers.js.map +1 -0
- package/dist/collection/store/selection/selection.store.js +85 -0
- package/dist/collection/store/selection/selection.store.js.map +1 -0
- package/dist/collection/store/vp/index.js +6 -0
- package/dist/collection/store/vp/index.js.map +1 -0
- package/dist/collection/store/vp/viewport.helpers.js +251 -0
- package/dist/collection/store/vp/viewport.helpers.js.map +1 -0
- package/dist/collection/store/vp/viewport.store.js +151 -0
- package/dist/collection/store/vp/viewport.store.js.map +1 -0
- package/dist/collection/themeManager/theme.compact.js +9 -0
- package/dist/collection/themeManager/theme.compact.js.map +1 -0
- package/dist/collection/themeManager/theme.default.js +9 -0
- package/dist/collection/themeManager/theme.default.js.map +1 -0
- package/dist/collection/themeManager/theme.material.js +9 -0
- package/dist/collection/themeManager/theme.material.js.map +1 -0
- package/dist/collection/themeManager/theme.service.js +53 -0
- package/dist/collection/themeManager/theme.service.js.map +1 -0
- package/dist/collection/types/dimension.js +2 -0
- package/dist/collection/types/dimension.js.map +1 -0
- package/dist/collection/types/events.js +118 -0
- package/dist/collection/types/events.js.map +1 -0
- package/dist/collection/types/index.js +12 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/types/interfaces.js +2 -0
- package/dist/collection/types/interfaces.js.map +1 -0
- package/dist/collection/types/plugin.js +2 -0
- package/dist/collection/types/plugin.js.map +1 -0
- package/dist/collection/types/plugin.types.js +2 -0
- package/dist/collection/types/plugin.types.js.map +1 -0
- package/dist/collection/types/selection.js +2 -0
- package/dist/collection/types/selection.js.map +1 -0
- package/dist/collection/types/theme.js +2 -0
- package/dist/collection/types/theme.js.map +1 -0
- package/dist/collection/types/viewport.interfaces.js +2 -0
- package/dist/collection/types/viewport.interfaces.js.map +1 -0
- package/dist/collection/utils/browser.js +7 -0
- package/dist/collection/utils/browser.js.map +1 -0
- package/dist/collection/utils/closest.polifill.js +22 -0
- package/dist/collection/utils/closest.polifill.js.map +1 -0
- package/dist/collection/utils/column.utils.js +153 -0
- package/dist/collection/utils/column.utils.js.map +1 -0
- package/dist/collection/utils/consts.js +26 -0
- package/dist/collection/utils/consts.js.map +1 -0
- package/dist/collection/utils/events.js +39 -0
- package/dist/collection/utils/events.js.map +1 -0
- package/dist/collection/utils/header.utils.js +24 -0
- package/dist/collection/utils/header.utils.js.map +1 -0
- package/dist/collection/utils/index.js +140 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/key.codes.js +80 -0
- package/dist/collection/utils/key.codes.js.map +1 -0
- package/dist/collection/utils/key.utils.js +90 -0
- package/dist/collection/utils/key.utils.js.map +1 -0
- package/dist/collection/utils/mobile.js +7 -0
- package/dist/collection/utils/mobile.js.map +1 -0
- package/dist/collection/utils/platform.js +9 -0
- package/dist/collection/utils/platform.js.map +1 -0
- package/dist/collection/utils/row-header-utils.js +9 -0
- package/dist/collection/utils/row-header-utils.js.map +1 -0
- package/dist/collection/utils/store.types.js +2 -0
- package/dist/collection/utils/store.types.js.map +1 -0
- package/dist/collection/utils/store.utils.js +15 -0
- package/dist/collection/utils/store.utils.js.map +1 -0
- package/dist/esm/app-globals-FBz64o-g.js +14 -0
- package/dist/esm/app-globals-FBz64o-g.js.map +1 -0
- package/dist/esm/cell-renderer-Ca_PCGjJ.js +98 -0
- package/dist/esm/cell-renderer-Ca_PCGjJ.js.map +1 -0
- package/dist/esm/column.drag.plugin-BtuUyB-2.js +2528 -0
- package/dist/esm/column.drag.plugin-BtuUyB-2.js.map +1 -0
- package/dist/esm/column.service-CTqFIQUy.js +1343 -0
- package/dist/esm/column.service-CTqFIQUy.js.map +1 -0
- package/dist/esm/data.store-B-lvmoFH.js +3553 -0
- package/dist/esm/data.store-B-lvmoFH.js.map +1 -0
- package/dist/esm/debounce-DTUQ1fY7.js +488 -0
- package/dist/esm/debounce-DTUQ1fY7.js.map +1 -0
- package/dist/esm/edit.utils-CyCANCLB.js +103 -0
- package/dist/esm/edit.utils-CyCANCLB.js.map +1 -0
- package/dist/esm/events-CKtYJJSv.js +43 -0
- package/dist/esm/events-CKtYJJSv.js.map +1 -0
- package/dist/esm/filter.button-CjABZQgg.js +39 -0
- package/dist/esm/filter.button-CjABZQgg.js.map +1 -0
- package/dist/esm/header-cell-renderer-DnjpJuXq.js +351 -0
- package/dist/esm/header-cell-renderer-DnjpJuXq.js.map +1 -0
- package/dist/esm/index-BAoInZ4V.js +2519 -0
- package/dist/esm/index-BAoInZ4V.js.map +1 -0
- package/dist/esm/index.js +181 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/revo-grid.entry.js +2185 -0
- package/dist/esm/revo-grid.entry.js.map +1 -0
- package/dist/esm/revo-grid.js +27 -0
- package/dist/esm/revo-grid.js.map +1 -0
- package/dist/esm/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.js.map +1 -0
- package/dist/esm/revogr-attribution_7.entry.js +1455 -0
- package/dist/esm/revogr-attribution_7.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard.revogr-edit.revogr-order-editor.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard_3.entry.js +452 -0
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/esm/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.js.map +1 -0
- package/dist/esm/revogr-data_4.entry.js +943 -0
- package/dist/esm/revogr-data_4.entry.js.map +1 -0
- package/dist/esm/revogr-filter-panel.entry.js +380 -0
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
- package/dist/esm/row-header-utils-vnoLGj5A.js +407 -0
- package/dist/esm/row-header-utils-vnoLGj5A.js.map +1 -0
- package/dist/esm/text-editor-Cp7lwBZi.js +79 -0
- package/dist/esm/text-editor-Cp7lwBZi.js.map +1 -0
- package/dist/esm/throttle-DiUrHjcY.js +273 -0
- package/dist/esm/throttle-DiUrHjcY.js.map +1 -0
- package/dist/esm/viewport.helpers-Ch4AQMMg.js +53 -0
- package/dist/esm/viewport.helpers-Ch4AQMMg.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/revo-grid/app-globals-FBz64o-g.js +14 -0
- package/dist/revo-grid/app-globals-FBz64o-g.js.map +1 -0
- package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js +98 -0
- package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js.map +1 -0
- package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js +2528 -0
- package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js.map +1 -0
- package/dist/revo-grid/column.service-CTqFIQUy.js +1343 -0
- package/dist/revo-grid/column.service-CTqFIQUy.js.map +1 -0
- package/dist/revo-grid/data.store-B-lvmoFH.js +3553 -0
- package/dist/revo-grid/data.store-B-lvmoFH.js.map +1 -0
- package/dist/revo-grid/debounce-DTUQ1fY7.js +488 -0
- package/dist/revo-grid/debounce-DTUQ1fY7.js.map +1 -0
- package/dist/revo-grid/edit.utils-CyCANCLB.js +103 -0
- package/dist/revo-grid/edit.utils-CyCANCLB.js.map +1 -0
- package/dist/revo-grid/events-CKtYJJSv.js +43 -0
- package/dist/revo-grid/events-CKtYJJSv.js.map +1 -0
- package/dist/revo-grid/filter.button-CjABZQgg.js +39 -0
- package/dist/revo-grid/filter.button-CjABZQgg.js.map +1 -0
- package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js +351 -0
- package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js.map +1 -0
- package/dist/revo-grid/index-BAoInZ4V.js +2490 -0
- package/dist/revo-grid/index-BAoInZ4V.js.map +1 -0
- package/dist/revo-grid/index.esm.js +181 -0
- package/dist/revo-grid/index.esm.js.map +1 -0
- package/dist/revo-grid/loader.esm.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.esm.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.js +2185 -0
- package/dist/revo-grid/revo-grid.entry.js.map +1 -0
- package/dist/revo-grid/revo-grid.esm.js +27 -0
- package/dist/revo-grid/revo-grid.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution_7.entry.js +1455 -0
- package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard.revogr-edit.revogr-order-editor.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js +452 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/revo-grid/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-data_4.entry.js +943 -0
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +380 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
- package/dist/revo-grid/row-header-utils-vnoLGj5A.js +407 -0
- package/dist/revo-grid/row-header-utils-vnoLGj5A.js.map +1 -0
- package/dist/revo-grid/text-editor-Cp7lwBZi.js +79 -0
- package/dist/revo-grid/text-editor-Cp7lwBZi.js.map +1 -0
- package/dist/revo-grid/throttle-DiUrHjcY.js +273 -0
- package/dist/revo-grid/throttle-DiUrHjcY.js.map +1 -0
- package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js +53 -0
- package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js.map +1 -0
- package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
- package/dist/types/components/clipboard/revogr-clipboard.d.ts +89 -0
- package/dist/types/components/data/cell-renderer.d.ts +12 -0
- package/dist/types/components/data/column.service.d.ts +61 -0
- package/dist/types/components/data/revogr-data.d.ts +107 -0
- package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
- package/dist/types/components/data/row-renderer.d.ts +12 -0
- package/dist/types/components/editors/edit.utils.d.ts +3 -0
- package/dist/types/components/editors/revogr-edit.d.ts +63 -0
- package/dist/types/components/editors/text-editor.d.ts +43 -0
- package/dist/types/components/extra/revogr-extra.d.ts +38 -0
- package/dist/types/components/header/header-cell-renderer.d.ts +9 -0
- package/dist/types/components/header/header-group-renderer.d.ts +15 -0
- package/dist/types/components/header/header-renderer.d.ts +16 -0
- package/dist/types/components/header/resizable.directive.d.ts +55 -0
- package/dist/types/components/header/resizable.element.d.ts +5 -0
- package/dist/types/components/header/revogr-header.d.ts +90 -0
- package/dist/types/components/order/order-renderer.d.ts +29 -0
- package/dist/types/components/order/order-row.service.d.ts +27 -0
- package/dist/types/components/order/revogr-order-editor.d.ts +56 -0
- package/dist/types/components/overlay/autofill.service.d.ts +80 -0
- package/dist/types/components/overlay/keyboard.service.d.ts +28 -0
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +278 -0
- package/dist/types/components/overlay/selection.utils.d.ts +47 -0
- package/dist/types/components/revoGrid/grid.helpers.d.ts +17 -0
- package/dist/types/components/revoGrid/plugin.service.d.ts +37 -0
- package/dist/types/components/revoGrid/revo-grid.d.ts +686 -0
- package/dist/types/components/revoGrid/viewport.helpers.d.ts +39 -0
- package/dist/types/components/revoGrid/viewport.resize.service.d.ts +17 -0
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -0
- package/dist/types/components/revoGrid/viewport.service.d.ts +59 -0
- package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +51 -0
- package/dist/types/components/rowHeaders/row-header-render.d.ts +9 -0
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +117 -0
- package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
- package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +43 -0
- package/dist/types/components/selectionFocus/revogr-focus.d.ts +58 -0
- package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +28 -0
- package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
- package/dist/types/components/vnode/vnode.utils.d.ts +9 -0
- package/dist/types/components.d.ts +2583 -0
- package/dist/types/global/global.d.ts +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/plugins/add-rows-on-paste.plugin.d.ts +14 -0
- package/dist/types/plugins/base.plugin.d.ts +51 -0
- package/dist/types/plugins/column.auto-size.plugin.d.ts +55 -0
- package/dist/types/plugins/column.stretch.plugin.d.ts +20 -0
- package/dist/types/plugins/dispatcher.d.ts +20 -0
- package/dist/types/plugins/export/csv.d.ts +9 -0
- package/dist/types/plugins/export/export.plugin.d.ts +24 -0
- package/dist/types/plugins/export/types.d.ts +23 -0
- package/dist/types/plugins/filter/conditions/equal.d.ts +4 -0
- package/dist/types/plugins/filter/conditions/number/greaterThan.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/lessThan.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/lessThanOrEqual.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/set.d.ts +4 -0
- package/dist/types/plugins/filter/conditions/string/beginswith.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/string/contains.d.ts +4 -0
- package/dist/types/plugins/filter/filter.button.d.ts +14 -0
- package/dist/types/plugins/filter/filter.indexed.d.ts +20 -0
- package/dist/types/plugins/filter/filter.panel.d.ts +53 -0
- package/dist/types/plugins/filter/filter.plugin.d.ts +73 -0
- package/dist/types/plugins/filter/filter.types.d.ts +129 -0
- package/dist/types/plugins/groupingRow/grouping.const.d.ts +12 -0
- package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +15 -0
- package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +39 -0
- package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +6 -0
- package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +103 -0
- package/dist/types/plugins/groupingRow/grouping.service.d.ts +36 -0
- package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +10 -0
- package/dist/types/plugins/index.d.ts +11 -0
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +42 -0
- package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
- package/dist/types/plugins/rtl/rtl.plugin.d.ts +37 -0
- package/dist/types/plugins/sorting/sorting.func.d.ts +9 -0
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +48 -0
- package/dist/types/plugins/sorting/sorting.sign.d.ts +6 -0
- package/dist/types/plugins/sorting/sorting.types.d.ts +14 -0
- package/dist/types/plugins/wcag/index.d.ts +26 -0
- package/dist/types/services/cell.helpers.d.ts +2 -0
- package/dist/types/services/column.data.provider.d.ts +27 -0
- package/dist/types/services/data.provider.d.ts +36 -0
- package/dist/types/services/dimension.provider.d.ts +66 -0
- package/dist/types/services/local.scroll.service.d.ts +36 -0
- package/dist/types/services/local.scroll.timer.d.ts +32 -0
- package/dist/types/services/selection.store.connector.d.ts +79 -0
- package/dist/types/services/viewport.provider.d.ts +7 -0
- package/dist/types/stencil-public-runtime.d.ts +1709 -0
- package/dist/types/store/dataSource/data.proxy.d.ts +14 -0
- package/dist/types/store/dataSource/data.store.d.ts +74 -0
- package/dist/types/store/dataSource/index.d.ts +3 -0
- package/dist/types/store/dataSource/trimmed.plugin.d.ts +12 -0
- package/dist/types/store/dimension/dimension.helpers.d.ts +24 -0
- package/dist/types/store/dimension/dimension.recalculate.plugin.d.ts +9 -0
- package/dist/types/store/dimension/dimension.store.d.ts +21 -0
- package/dist/types/store/dimension/dimension.trim.plugin.d.ts +13 -0
- package/dist/types/store/dimension/index.d.ts +2 -0
- package/dist/types/store/index.d.ts +8 -0
- package/dist/types/store/selection/index.d.ts +2 -0
- package/dist/types/store/selection/selection.helpers.d.ts +6 -0
- package/dist/types/store/selection/selection.store.d.ts +22 -0
- package/dist/types/store/vp/index.d.ts +7 -0
- package/dist/types/store/vp/viewport.helpers.d.ts +54 -0
- package/dist/types/store/vp/viewport.store.d.ts +26 -0
- package/dist/types/themeManager/theme.compact.d.ts +4 -0
- package/dist/types/themeManager/theme.default.d.ts +4 -0
- package/dist/types/themeManager/theme.material.d.ts +4 -0
- package/dist/types/themeManager/theme.service.d.ts +13 -0
- package/dist/types/types/dimension.d.ts +8 -0
- package/dist/types/types/events.d.ts +2 -0
- package/dist/types/types/index.d.ts +8 -0
- package/dist/types/types/interfaces.d.ts +768 -0
- package/dist/types/types/plugin.d.ts +9 -0
- package/dist/types/types/plugin.types.d.ts +48 -0
- package/dist/types/types/selection.d.ts +178 -0
- package/dist/types/types/theme.d.ts +7 -0
- package/dist/types/types/viewport.interfaces.d.ts +45 -0
- package/dist/types/utils/browser.d.ts +1 -0
- package/dist/types/utils/closest.polifill.d.ts +0 -0
- package/dist/types/utils/column.utils.d.ts +52 -0
- package/dist/types/utils/consts.d.ts +22 -0
- package/dist/types/utils/events.d.ts +5 -0
- package/dist/types/utils/header.utils.d.ts +2 -0
- package/dist/types/utils/index.d.ts +32 -0
- package/dist/types/utils/key.codes.d.ts +73 -0
- package/dist/types/utils/key.utils.d.ts +13 -0
- package/dist/types/utils/mobile.d.ts +1 -0
- package/dist/types/utils/platform.d.ts +4 -0
- package/dist/types/utils/row-header-utils.d.ts +2 -0
- package/dist/types/utils/store.types.d.ts +97 -0
- package/dist/types/utils/store.utils.d.ts +10 -0
- package/hydrate/index.d.ts +273 -0
- package/hydrate/index.js +33890 -0
- package/hydrate/index.mjs +33882 -0
- package/hydrate/package.json +12 -0
- package/loader/cdn.js +4 -0
- package/loader/index.cjs.js +4 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +4 -0
- package/loader/index.js +5 -0
- package/package.json +101 -0
- package/react/dist/index.d.ts +6191 -0
- package/react/dist/react-datagrid.js +260 -0
- package/react/dist/react-datagrid.umd.cjs +272 -0
- package/standalone/column.service.js +1345 -0
- package/standalone/column.service.js.map +1 -0
- package/standalone/consts.js +30 -0
- package/standalone/consts.js.map +1 -0
- package/standalone/data.store.js +3099 -0
- package/standalone/data.store.js.map +1 -0
- package/standalone/debounce.js +215 -0
- package/standalone/debounce.js.map +1 -0
- package/standalone/dimension.helpers.js +229 -0
- package/standalone/dimension.helpers.js.map +1 -0
- package/standalone/filter.button.js +39 -0
- package/standalone/filter.button.js.map +1 -0
- package/standalone/index.d.ts +68 -0
- package/standalone/index.js +217 -0
- package/standalone/index.js.map +1 -0
- package/standalone/index2.js +140 -0
- package/standalone/index2.js.map +1 -0
- package/standalone/local.scroll.timer.js +207 -0
- package/standalone/local.scroll.timer.js.map +1 -0
- package/standalone/platform.js +90 -0
- package/standalone/platform.js.map +1 -0
- package/standalone/revo-grid.d.ts +11 -0
- package/standalone/revo-grid.js +4884 -0
- package/standalone/revo-grid.js.map +1 -0
- package/standalone/revogr-attribution.d.ts +11 -0
- package/standalone/revogr-attribution.js +12 -0
- package/standalone/revogr-attribution.js.map +1 -0
- package/standalone/revogr-attribution2.js +32 -0
- package/standalone/revogr-attribution2.js.map +1 -0
- package/standalone/revogr-clipboard.d.ts +11 -0
- package/standalone/revogr-clipboard.js +12 -0
- package/standalone/revogr-clipboard.js.map +1 -0
- package/standalone/revogr-clipboard2.js +164 -0
- package/standalone/revogr-clipboard2.js.map +1 -0
- package/standalone/revogr-data.d.ts +11 -0
- package/standalone/revogr-data.js +12 -0
- package/standalone/revogr-data.js.map +1 -0
- package/standalone/revogr-data2.js +378 -0
- package/standalone/revogr-data2.js.map +1 -0
- package/standalone/revogr-edit.d.ts +11 -0
- package/standalone/revogr-edit.js +12 -0
- package/standalone/revogr-edit.js.map +1 -0
- package/standalone/revogr-edit2.js +334 -0
- package/standalone/revogr-edit2.js.map +1 -0
- package/standalone/revogr-extra.d.ts +11 -0
- package/standalone/revogr-extra.js +12 -0
- package/standalone/revogr-extra.js.map +1 -0
- package/standalone/revogr-extra2.js +73 -0
- package/standalone/revogr-extra2.js.map +1 -0
- package/standalone/revogr-filter-panel.d.ts +11 -0
- package/standalone/revogr-filter-panel.js +411 -0
- package/standalone/revogr-filter-panel.js.map +1 -0
- package/standalone/revogr-focus.d.ts +11 -0
- package/standalone/revogr-focus.js +12 -0
- package/standalone/revogr-focus.js.map +1 -0
- package/standalone/revogr-focus2.js +112 -0
- package/standalone/revogr-focus2.js.map +1 -0
- package/standalone/revogr-header.d.ts +11 -0
- package/standalone/revogr-header.js +12 -0
- package/standalone/revogr-header.js.map +1 -0
- package/standalone/revogr-header2.js +707 -0
- package/standalone/revogr-header2.js.map +1 -0
- package/standalone/revogr-order-editor.d.ts +11 -0
- package/standalone/revogr-order-editor.js +12 -0
- package/standalone/revogr-order-editor.js.map +1 -0
- package/standalone/revogr-order-editor2.js +201 -0
- package/standalone/revogr-order-editor2.js.map +1 -0
- package/standalone/revogr-overlay-selection.d.ts +11 -0
- package/standalone/revogr-overlay-selection.js +12 -0
- package/standalone/revogr-overlay-selection.js.map +1 -0
- package/standalone/revogr-overlay-selection2.js +972 -0
- package/standalone/revogr-overlay-selection2.js.map +1 -0
- package/standalone/revogr-row-headers.d.ts +11 -0
- package/standalone/revogr-row-headers.js +12 -0
- package/standalone/revogr-row-headers.js.map +1 -0
- package/standalone/revogr-row-headers2.js +520 -0
- package/standalone/revogr-row-headers2.js.map +1 -0
- package/standalone/revogr-scroll-virtual.d.ts +11 -0
- package/standalone/revogr-scroll-virtual.js +12 -0
- package/standalone/revogr-scroll-virtual.js.map +1 -0
- package/standalone/revogr-scroll-virtual2.js +184 -0
- package/standalone/revogr-scroll-virtual2.js.map +1 -0
- package/standalone/revogr-temp-range.d.ts +11 -0
- package/standalone/revogr-temp-range.js +12 -0
- package/standalone/revogr-temp-range.js.map +1 -0
- package/standalone/revogr-temp-range2.js +93 -0
- package/standalone/revogr-temp-range2.js.map +1 -0
- package/standalone/revogr-viewport-scroll.d.ts +11 -0
- package/standalone/revogr-viewport-scroll.js +12 -0
- package/standalone/revogr-viewport-scroll.js.map +1 -0
- package/standalone/revogr-viewport-scroll2.js +421 -0
- package/standalone/revogr-viewport-scroll2.js.map +1 -0
- package/standalone/selection.utils.js +179 -0
- package/standalone/selection.utils.js.map +1 -0
- package/standalone/throttle.js +75 -0
- package/standalone/throttle.js.map +1 -0
- package/standalone/toNumber.js +282 -0
- package/standalone/toNumber.js.map +1 -0
- package/standalone/vnode-converter.js +46 -0
- package/standalone/vnode-converter.js.map +1 -0
- package/standalone/vnode-html.d.ts +11 -0
- package/standalone/vnode-html.js +12 -0
- package/standalone/vnode-html.js.map +1 -0
|
@@ -0,0 +1,3671 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by LevelSkill.Pro
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host, } from "@stencil/core";
|
|
5
|
+
import ColumnDataProvider from "../../services/column.data.provider";
|
|
6
|
+
import { DataProvider } from "../../services/data.provider";
|
|
7
|
+
import { getVisibleSourceItem, rowTypes } from "../../store/index";
|
|
8
|
+
import DimensionProvider from "../../services/dimension.provider";
|
|
9
|
+
import ViewportProvider from "../../services/viewport.provider";
|
|
10
|
+
import ThemeService from "../../themeManager/theme.service";
|
|
11
|
+
import { checkIsRightClick, timeout } from "../../utils";
|
|
12
|
+
import { AutoSizeColumnPlugin, } from "../../plugins/column.auto-size.plugin";
|
|
13
|
+
import { FilterPlugin } from "../../plugins/filter/filter.plugin";
|
|
14
|
+
import { SortingPlugin } from "../../plugins/sorting/sorting.plugin";
|
|
15
|
+
import { ExportFilePlugin } from "../../plugins/export/export.plugin";
|
|
16
|
+
import { GroupingRowPlugin } from "../../plugins/groupingRow/grouping.row.plugin";
|
|
17
|
+
import ViewportService from "./viewport.service";
|
|
18
|
+
import { DATA_SLOT, HEADER_SLOT } from "./viewport.helpers";
|
|
19
|
+
import GridScrollingService from "./viewport.scrolling.service";
|
|
20
|
+
import { SelectionStoreConnector } from "../../services/selection.store.connector";
|
|
21
|
+
import OrderRenderer from "../order/order-renderer";
|
|
22
|
+
import { StretchColumn, isStretchPlugin, } from "../../plugins/column.stretch.plugin";
|
|
23
|
+
import { rowDefinitionByType, rowDefinitionRemoveByType } from "./grid.helpers";
|
|
24
|
+
import { ColumnMovePlugin } from "../../plugins/moveColumn/column.drag.plugin";
|
|
25
|
+
import { getPropertyFromEvent } from "../../utils/events";
|
|
26
|
+
import { isMobileDevice } from "../../utils/mobile";
|
|
27
|
+
import { getColumnByProp, getColumns, } from "../../utils/column.utils";
|
|
28
|
+
import { WCAGPlugin } from "../../plugins/wcag";
|
|
29
|
+
import { PluginService } from "./plugin.service";
|
|
30
|
+
import { RTLPlugin } from "../../plugins/rtl/rtl.plugin";
|
|
31
|
+
/**
|
|
32
|
+
* Revogrid - High-performance, customizable grid library for managing large datasets.
|
|
33
|
+
* ### Events guide
|
|
34
|
+
*
|
|
35
|
+
* For a comprehensive events guide, check the [Events API Page](/guide/api/events).
|
|
36
|
+
* All events propagate to the root level of the grid. [Dependency tree](#Dependencies).
|
|
37
|
+
*
|
|
38
|
+
* ### Type definitions
|
|
39
|
+
*
|
|
40
|
+
* Read [type definition file](https://github.com/revolist/revogrid/blob/master/src/interfaces.d.ts) for the full interface information.
|
|
41
|
+
*
|
|
42
|
+
* All complex property types such as `ColumnRegular`, `ColumnProp`, `ColumnDataSchemaModel` can be found there.
|
|
43
|
+
*
|
|
44
|
+
* ### HTMLRevoGridElement
|
|
45
|
+
*
|
|
46
|
+
* @slot data-{column-type}-{row-type}. @example data-rgCol-rgRow - main data slot. Applies extra elements in <revogr-data />.
|
|
47
|
+
* @slot focus-{column-type}-{row-type}. @example focus-rgCol-rgRow - focus layer for main data. Applies extra elements in <revogr-focus />.
|
|
48
|
+
* @slot viewport - Viewport slot.
|
|
49
|
+
* @slot header - Header slot.
|
|
50
|
+
* @slot footer - Footer slot.
|
|
51
|
+
*/
|
|
52
|
+
export class RevoGridComponent {
|
|
53
|
+
constructor() {
|
|
54
|
+
/**
|
|
55
|
+
* Defines how many rows/columns should be rendered outside visible area.
|
|
56
|
+
*/
|
|
57
|
+
this.frameSize = 1;
|
|
58
|
+
/**
|
|
59
|
+
* Indicates default rgRow size.
|
|
60
|
+
* By default 0, means theme package size will be applied
|
|
61
|
+
*
|
|
62
|
+
* Alternatively you can use `rowSize` to reset viewport
|
|
63
|
+
*/
|
|
64
|
+
this.rowSize = 0;
|
|
65
|
+
/** Indicates default column size. */
|
|
66
|
+
this.colSize = 100;
|
|
67
|
+
/** When true, user can range selection. */
|
|
68
|
+
this.range = false;
|
|
69
|
+
/** When true, grid in read only mode. */
|
|
70
|
+
this.readonly = false;
|
|
71
|
+
/** When true, columns are resizable. */
|
|
72
|
+
this.resize = false;
|
|
73
|
+
/** When true cell focus appear. */
|
|
74
|
+
this.canFocus = true;
|
|
75
|
+
/** When true enable clipboard. */
|
|
76
|
+
this.useClipboard = true;
|
|
77
|
+
/**
|
|
78
|
+
* Columns - defines an array of grid columns.
|
|
79
|
+
* Can be column or grouped column.
|
|
80
|
+
*/
|
|
81
|
+
this.columns = [];
|
|
82
|
+
/**
|
|
83
|
+
* Source - defines main data source.
|
|
84
|
+
* Can be an Object or 2 dimensional array([][]);
|
|
85
|
+
* Keys/indexes referenced from columns Prop.
|
|
86
|
+
*/
|
|
87
|
+
this.source = [];
|
|
88
|
+
/** Pinned top Source: {[T in ColumnProp]: any} - defines pinned top rows data source. */
|
|
89
|
+
this.pinnedTopSource = [];
|
|
90
|
+
/** Pinned bottom Source: {[T in ColumnProp]: any} - defines pinned bottom rows data source. */
|
|
91
|
+
this.pinnedBottomSource = [];
|
|
92
|
+
/** Custom row properies to be applied. See `RowDefinition` for more info. */
|
|
93
|
+
this.rowDefinitions = [];
|
|
94
|
+
/** Custom editors register. */
|
|
95
|
+
this.editors = {};
|
|
96
|
+
/**
|
|
97
|
+
* Apply changes in editor when closed except 'Escape' cases.
|
|
98
|
+
* If custom editor in use method getValue required.
|
|
99
|
+
* Check interfaces.d.ts `EditorBase` for more info.
|
|
100
|
+
*/
|
|
101
|
+
this.applyOnClose = false;
|
|
102
|
+
/**
|
|
103
|
+
* Custom grid plugins. Can be added or removed at runtime.
|
|
104
|
+
* Every plugin should be inherited from BasePlugin class.
|
|
105
|
+
*
|
|
106
|
+
* For more details check [Plugin guide](https://rv-grid.com/guide/plugin/)
|
|
107
|
+
*/
|
|
108
|
+
this.plugins = [];
|
|
109
|
+
/**
|
|
110
|
+
* Column Types Format.
|
|
111
|
+
* Every type represent multiple column properties.
|
|
112
|
+
* Types will be merged but can be replaced with column properties.
|
|
113
|
+
* Types were made as separate objects to be reusable per multiple columns.
|
|
114
|
+
*/
|
|
115
|
+
this.columnTypes = {};
|
|
116
|
+
/** Theme name. */
|
|
117
|
+
this.theme = 'default';
|
|
118
|
+
/**
|
|
119
|
+
* Row class property mapping.
|
|
120
|
+
* Map custom classes to rows from row object data.
|
|
121
|
+
* Define this property in rgRow object and this will be mapped as rgRow class.
|
|
122
|
+
*/
|
|
123
|
+
this.rowClass = '';
|
|
124
|
+
/**
|
|
125
|
+
* Autosize config.
|
|
126
|
+
* Enables columns autoSize.
|
|
127
|
+
* For more details check `autoSizeColumn` plugin.
|
|
128
|
+
* By default disabled, hence operation is not performance efficient.
|
|
129
|
+
* `true` to enable with default params (double header separator click for autosize).
|
|
130
|
+
* Or define config. See `AutoSizeColumnConfig` for more details.
|
|
131
|
+
*/
|
|
132
|
+
this.autoSizeColumn = false;
|
|
133
|
+
/**
|
|
134
|
+
* Enables filter plugin.
|
|
135
|
+
* Can be boolean.
|
|
136
|
+
* Or can be filter collection See `FilterCollection` for more info.
|
|
137
|
+
*/
|
|
138
|
+
this.filter = false;
|
|
139
|
+
/**
|
|
140
|
+
* Enable column move plugin.
|
|
141
|
+
*/
|
|
142
|
+
this.canMoveColumns = false;
|
|
143
|
+
/**
|
|
144
|
+
* Trimmed rows.
|
|
145
|
+
* Functionality which allows to hide rows from main data set.
|
|
146
|
+
* `trimmedRows` are physical `rgRow` indexes to hide.
|
|
147
|
+
*/
|
|
148
|
+
this.trimmedRows = {};
|
|
149
|
+
/**
|
|
150
|
+
* Enable export plugin.
|
|
151
|
+
*/
|
|
152
|
+
this.exporting = false;
|
|
153
|
+
/**
|
|
154
|
+
* Stretch strategy for columns by `StretchColumn` plugin.
|
|
155
|
+
* For example if there are more space on the right last column size would be increased.
|
|
156
|
+
*/
|
|
157
|
+
this.stretch = false;
|
|
158
|
+
/**
|
|
159
|
+
* Additional data to be passed to plugins, renders or editors.
|
|
160
|
+
* For example if you need to pass Vue component instance.
|
|
161
|
+
*/
|
|
162
|
+
this.additionalData = {};
|
|
163
|
+
/**
|
|
164
|
+
* Disable lazy rendering mode for the `X axis`.
|
|
165
|
+
* Use when not many columns present and you don't need rerenader cells during scroll.
|
|
166
|
+
* Can be used for initial rendering performance improvement.
|
|
167
|
+
*/
|
|
168
|
+
this.disableVirtualX = false;
|
|
169
|
+
/**
|
|
170
|
+
* Disable lazy rendering mode for the `Y axis`.
|
|
171
|
+
* Use when not many rows present and you don't need rerenader cells during scroll.
|
|
172
|
+
* Can be used for initial rendering performance improvement.
|
|
173
|
+
*/
|
|
174
|
+
this.disableVirtualY = false;
|
|
175
|
+
/**
|
|
176
|
+
* Please only hide the attribution if you are subscribed to Pro version
|
|
177
|
+
*/
|
|
178
|
+
this.hideAttribution = false;
|
|
179
|
+
/**
|
|
180
|
+
* Prevent rendering until job is done.
|
|
181
|
+
* Can be used for initial rendering performance improvement.
|
|
182
|
+
* When several plugins require initial rendering this will prevent double initial rendering.
|
|
183
|
+
*/
|
|
184
|
+
this.jobsBeforeRender = [];
|
|
185
|
+
/**
|
|
186
|
+
* Register new virtual node inside of grid.
|
|
187
|
+
* Used for additional items creation such as plugin elements.
|
|
188
|
+
* Should be set before grid render inside of plugins.
|
|
189
|
+
* Can return VNode result of h() function or a function that returns VNode.
|
|
190
|
+
* Function can be used for performance improvement and additional renders.
|
|
191
|
+
*/
|
|
192
|
+
this.registerVNode = [];
|
|
193
|
+
/**
|
|
194
|
+
* Enable accessibility. If disabled, the grid will not be accessible.
|
|
195
|
+
* @default true
|
|
196
|
+
*/
|
|
197
|
+
this.accessible = true;
|
|
198
|
+
/**
|
|
199
|
+
* Enable right-to-left (RTL) mode. When enabled, columns will be displayed from right to left.
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
this.rtl = false;
|
|
203
|
+
/**
|
|
204
|
+
* Disable native drag&drop plugin.
|
|
205
|
+
*/
|
|
206
|
+
this.canDrag = true;
|
|
207
|
+
this.extraElements = [];
|
|
208
|
+
this.pluginService = new PluginService();
|
|
209
|
+
this.viewport = null;
|
|
210
|
+
this.isInited = false;
|
|
211
|
+
}
|
|
212
|
+
// #endregion
|
|
213
|
+
// #region Methods
|
|
214
|
+
/**
|
|
215
|
+
* Refreshes data viewport.
|
|
216
|
+
* Can be specific part as rgRow or pinned rgRow or 'all' by default.
|
|
217
|
+
*/
|
|
218
|
+
async refresh(type = 'all') {
|
|
219
|
+
if (!this.dataProvider) {
|
|
220
|
+
throw new Error('Not connected');
|
|
221
|
+
}
|
|
222
|
+
this.dataProvider.refresh(type);
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Refreshes data at specified cell.
|
|
226
|
+
* Useful for performance optimization.
|
|
227
|
+
* No viewport update will be triggered.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* const grid = document.querySelector('revo-grid');
|
|
231
|
+
* grid.setDataAt({ row: 0, col: 0, val: 'test' }); // refresh
|
|
232
|
+
*/
|
|
233
|
+
async setDataAt({ row, col, colType = 'rgCol', rowType = 'rgRow', val, skipDataUpdate = false, }) {
|
|
234
|
+
var _a;
|
|
235
|
+
if (this.dataProvider && this.columnProvider && !skipDataUpdate) {
|
|
236
|
+
const columnProp = (_a = this.columnProvider.getColumn(col, colType)) === null || _a === void 0 ? void 0 : _a.prop;
|
|
237
|
+
if (typeof columnProp !== 'undefined') {
|
|
238
|
+
this.dataProvider.setCellData({
|
|
239
|
+
type: rowType,
|
|
240
|
+
rowIndex: row,
|
|
241
|
+
prop: columnProp,
|
|
242
|
+
val,
|
|
243
|
+
}, false);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const dataElement = this.element.querySelector(`revogr-data[type="${rowType}"][col-type="${colType}"]`);
|
|
247
|
+
return dataElement === null || dataElement === void 0 ? void 0 : dataElement.updateCell({
|
|
248
|
+
row,
|
|
249
|
+
col,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Scrolls viewport to specified row by index.
|
|
254
|
+
*/
|
|
255
|
+
async scrollToRow(coordinate = 0) {
|
|
256
|
+
if (!this.dimensionProvider) {
|
|
257
|
+
throw new Error('Not connected');
|
|
258
|
+
}
|
|
259
|
+
const y = this.dimensionProvider.getViewPortPos({
|
|
260
|
+
coordinate,
|
|
261
|
+
dimension: 'rgRow',
|
|
262
|
+
});
|
|
263
|
+
await this.scrollToCoordinate({ y });
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Scrolls viewport to specified column by index.
|
|
267
|
+
*/
|
|
268
|
+
async scrollToColumnIndex(coordinate = 0) {
|
|
269
|
+
if (!this.dimensionProvider) {
|
|
270
|
+
throw new Error('Not connected');
|
|
271
|
+
}
|
|
272
|
+
const x = this.dimensionProvider.getViewPortPos({
|
|
273
|
+
coordinate,
|
|
274
|
+
dimension: 'rgCol',
|
|
275
|
+
});
|
|
276
|
+
await this.scrollToCoordinate({ x });
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Scrolls viewport to specified column by prop
|
|
280
|
+
*/
|
|
281
|
+
async scrollToColumnProp(prop, dimension = 'rgCol') {
|
|
282
|
+
if (!this.dimensionProvider || !this.columnProvider) {
|
|
283
|
+
throw new Error('Not connected');
|
|
284
|
+
}
|
|
285
|
+
const coordinate = this.columnProvider.getColumnIndexByProp(prop, dimension);
|
|
286
|
+
if (coordinate < 0) {
|
|
287
|
+
// already on the screen
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
const x = this.dimensionProvider.getViewPortPos({
|
|
291
|
+
coordinate,
|
|
292
|
+
dimension,
|
|
293
|
+
});
|
|
294
|
+
await this.scrollToCoordinate({ x });
|
|
295
|
+
}
|
|
296
|
+
/** Update columns */
|
|
297
|
+
async updateColumns(cols) {
|
|
298
|
+
var _a;
|
|
299
|
+
(_a = this.columnProvider) === null || _a === void 0 ? void 0 : _a.updateColumns(cols);
|
|
300
|
+
}
|
|
301
|
+
/** Add trimmed by type */
|
|
302
|
+
async addTrimmed(trimmed, trimmedType = 'external', type = 'rgRow') {
|
|
303
|
+
if (!this.dataProvider) {
|
|
304
|
+
throw new Error('Not connected');
|
|
305
|
+
}
|
|
306
|
+
const event = this.beforetrimmed.emit({
|
|
307
|
+
trimmed,
|
|
308
|
+
trimmedType,
|
|
309
|
+
type,
|
|
310
|
+
});
|
|
311
|
+
if (event.defaultPrevented) {
|
|
312
|
+
return event;
|
|
313
|
+
}
|
|
314
|
+
this.dataProvider.setTrimmed({ [trimmedType]: event.detail.trimmed }, type);
|
|
315
|
+
this.aftertrimmed.emit();
|
|
316
|
+
return event;
|
|
317
|
+
}
|
|
318
|
+
/** Scrolls view port to coordinate */
|
|
319
|
+
async scrollToCoordinate(cell) {
|
|
320
|
+
var _a;
|
|
321
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.scrollToCell(cell);
|
|
322
|
+
}
|
|
323
|
+
/** Open editor for cell. */
|
|
324
|
+
async setCellEdit(rgRow, prop, rowSource = 'rgRow') {
|
|
325
|
+
var _a;
|
|
326
|
+
const rgCol = getColumnByProp(this.columns, prop);
|
|
327
|
+
if (!rgCol) {
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
await timeout();
|
|
331
|
+
const colGroup = rgCol.pin || 'rgCol';
|
|
332
|
+
if (!this.columnProvider) {
|
|
333
|
+
throw new Error('Not connected');
|
|
334
|
+
}
|
|
335
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.setEdit(rgRow, this.columnProvider.getColumnIndexByProp(prop, colGroup), colGroup, rowSource);
|
|
336
|
+
}
|
|
337
|
+
/** Set focus range. */
|
|
338
|
+
async setCellsFocus(cellStart = { x: 0, y: 0 }, cellEnd = { x: 0, y: 0 }, colType = 'rgCol', rowType = 'rgRow') {
|
|
339
|
+
var _a;
|
|
340
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.setFocus(colType, rowType, cellStart, cellEnd);
|
|
341
|
+
}
|
|
342
|
+
/** Get data from source */
|
|
343
|
+
async getSource(type = 'rgRow') {
|
|
344
|
+
if (!this.dataProvider) {
|
|
345
|
+
throw new Error('Not connected');
|
|
346
|
+
}
|
|
347
|
+
return this.dataProvider.stores[type].store.get('source');
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Get data from visible part of source
|
|
351
|
+
* Trimmed/filtered rows will be excluded
|
|
352
|
+
* @param type - type of source
|
|
353
|
+
*/
|
|
354
|
+
async getVisibleSource(type = 'rgRow') {
|
|
355
|
+
if (!this.dataProvider) {
|
|
356
|
+
throw new Error('Not connected');
|
|
357
|
+
}
|
|
358
|
+
return getVisibleSourceItem(this.dataProvider.stores[type].store);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Provides access to rows internal store observer
|
|
362
|
+
* Can be used for plugin support
|
|
363
|
+
* @param type - type of source
|
|
364
|
+
*/
|
|
365
|
+
async getSourceStore(type = 'rgRow') {
|
|
366
|
+
if (!this.dataProvider) {
|
|
367
|
+
throw new Error('Not connected');
|
|
368
|
+
}
|
|
369
|
+
return this.dataProvider.stores[type].store;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Provides access to column internal store observer
|
|
373
|
+
* Can be used for plugin support
|
|
374
|
+
* @param type - type of column
|
|
375
|
+
*/
|
|
376
|
+
async getColumnStore(type = 'rgCol') {
|
|
377
|
+
if (!this.columnProvider) {
|
|
378
|
+
throw new Error('Not connected');
|
|
379
|
+
}
|
|
380
|
+
return this.columnProvider.stores[type].store;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Update column sorting
|
|
384
|
+
* @param column - column prop and cellCompare
|
|
385
|
+
* @param order - order to apply
|
|
386
|
+
* @param additive - if false will replace current order
|
|
387
|
+
*
|
|
388
|
+
* later passed to SortingPlugin
|
|
389
|
+
*/
|
|
390
|
+
async updateColumnSorting(column, order, additive) {
|
|
391
|
+
this.sortingconfigchanged.emit({
|
|
392
|
+
columns: [
|
|
393
|
+
{
|
|
394
|
+
prop: column.prop,
|
|
395
|
+
order,
|
|
396
|
+
cellCompare: column.cellCompare,
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
additive,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Clears column sorting
|
|
404
|
+
*/
|
|
405
|
+
async clearSorting() {
|
|
406
|
+
this.sortingconfigchanged.emit({
|
|
407
|
+
columns: [],
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Receive all columns in data source
|
|
412
|
+
*/
|
|
413
|
+
async getColumns() {
|
|
414
|
+
if (!this.columnProvider) {
|
|
415
|
+
throw new Error('Not connected');
|
|
416
|
+
}
|
|
417
|
+
return this.columnProvider.getColumns();
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Clear current grid focus. Grid has no longer focus on it.
|
|
421
|
+
*/
|
|
422
|
+
async clearFocus() {
|
|
423
|
+
var _a, _b;
|
|
424
|
+
const focused = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused();
|
|
425
|
+
const event = this.beforefocuslost.emit(focused);
|
|
426
|
+
if (event.defaultPrevented) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
(_b = this.selectionStoreConnector) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Get all active plugins instances
|
|
433
|
+
*/
|
|
434
|
+
async getPlugins() {
|
|
435
|
+
return this.pluginService.get();
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Get the currently focused cell.
|
|
439
|
+
*/
|
|
440
|
+
async getFocused() {
|
|
441
|
+
var _a, _b;
|
|
442
|
+
return (_b = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused()) !== null && _b !== void 0 ? _b : null;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Get size of content
|
|
446
|
+
* Including all pinned data
|
|
447
|
+
*/
|
|
448
|
+
async getContentSize() {
|
|
449
|
+
var _a;
|
|
450
|
+
if (!this.dimensionProvider) {
|
|
451
|
+
throw new Error('Not connected');
|
|
452
|
+
}
|
|
453
|
+
return (_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.getFullSize();
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Get the currently selected Range.
|
|
457
|
+
*/
|
|
458
|
+
async getSelectedRange() {
|
|
459
|
+
var _a, _b;
|
|
460
|
+
return (_b = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getSelectedRange()) !== null && _b !== void 0 ? _b : null;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Refresh extra elements. Triggers re-rendering of extra elements and functions.
|
|
464
|
+
* Part of extraElements and registerVNode methods.
|
|
465
|
+
* Useful for plugins.
|
|
466
|
+
*/
|
|
467
|
+
async refreshExtraElements() {
|
|
468
|
+
var _a;
|
|
469
|
+
(_a = this.extraService) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Get all providers for grid
|
|
473
|
+
* Useful for external grid integration
|
|
474
|
+
*/
|
|
475
|
+
async getProviders() {
|
|
476
|
+
return this.getPluginData();
|
|
477
|
+
}
|
|
478
|
+
mousedownHandle(event) {
|
|
479
|
+
const screenX = getPropertyFromEvent(event, 'screenX');
|
|
480
|
+
const screenY = getPropertyFromEvent(event, 'screenY');
|
|
481
|
+
if (screenX === null || screenY === null) {
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
this.clickTrackForFocusClear = screenX + screenY;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* To keep your elements from losing focus use mouseup/touchend e.preventDefault();
|
|
488
|
+
*/
|
|
489
|
+
async mouseupHandle(event) {
|
|
490
|
+
var _a;
|
|
491
|
+
const screenX = getPropertyFromEvent(event, 'screenX');
|
|
492
|
+
const screenY = getPropertyFromEvent(event, 'screenY');
|
|
493
|
+
if (screenX === null || screenY === null) {
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
if (event.defaultPrevented) {
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
const isRightClick = checkIsRightClick(event);
|
|
500
|
+
this.aftermouseup.emit({ eventData: event, isRightClick });
|
|
501
|
+
const pos = screenX + screenY;
|
|
502
|
+
// detect if mousemove then do nothing
|
|
503
|
+
if (Math.abs(((_a = this.clickTrackForFocusClear) !== null && _a !== void 0 ? _a : 0) - pos) > 10) {
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
// Check if action finished inside the document
|
|
507
|
+
// if event prevented, or it is current table don't clear focus
|
|
508
|
+
const path = event.composedPath();
|
|
509
|
+
if (!path.includes(this.element) &&
|
|
510
|
+
!(this.element.shadowRoot && path.includes(this.element.shadowRoot))) {
|
|
511
|
+
// Perform actions if the click is outside the component
|
|
512
|
+
await this.clearFocus();
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Cancel drag & drop using e.preventDefault();
|
|
517
|
+
*/
|
|
518
|
+
beforeColumnDragEnd(event) {
|
|
519
|
+
this.beforecolumndrag.emit(event.detail);
|
|
520
|
+
}
|
|
521
|
+
// #endregion
|
|
522
|
+
// #region Listeners
|
|
523
|
+
/** Drag events */
|
|
524
|
+
onRowDragStarted(e) {
|
|
525
|
+
var _a;
|
|
526
|
+
const dragStart = this.rowdragstart.emit(e.detail);
|
|
527
|
+
if (dragStart.defaultPrevented) {
|
|
528
|
+
e.preventDefault();
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.start(this.element, Object.assign(Object.assign({}, e.detail), dragStart.detail));
|
|
532
|
+
}
|
|
533
|
+
onRowDragEnd() {
|
|
534
|
+
var _a;
|
|
535
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.end();
|
|
536
|
+
}
|
|
537
|
+
onRowOrderChange(e) {
|
|
538
|
+
var _a;
|
|
539
|
+
(_a = this.dataProvider) === null || _a === void 0 ? void 0 : _a.changeOrder(e.detail);
|
|
540
|
+
}
|
|
541
|
+
onRowDrag({ detail }) {
|
|
542
|
+
var _a;
|
|
543
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.move(detail);
|
|
544
|
+
}
|
|
545
|
+
onRowMouseMove(e) {
|
|
546
|
+
var _a;
|
|
547
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.moveTip(e.detail);
|
|
548
|
+
}
|
|
549
|
+
async onCellEdit(e) {
|
|
550
|
+
var _a;
|
|
551
|
+
const previousModel = JSON.parse(JSON.stringify(e.detail.model));
|
|
552
|
+
const { defaultPrevented, detail } = this.beforeedit.emit(e.detail);
|
|
553
|
+
await timeout();
|
|
554
|
+
// apply data
|
|
555
|
+
if (!defaultPrevented) {
|
|
556
|
+
(_a = this.dataProvider) === null || _a === void 0 ? void 0 : _a.setCellData(detail);
|
|
557
|
+
// @feature: incrimental update for cells
|
|
558
|
+
// this.dataProvider.setCellData(detail, false);
|
|
559
|
+
// await this.setDataAt({
|
|
560
|
+
// row: detail.rowIndex,
|
|
561
|
+
// col: detail.colIndex,
|
|
562
|
+
// rowType: detail.type,
|
|
563
|
+
// colType: detail.colType,
|
|
564
|
+
// });
|
|
565
|
+
this.afteredit.emit(Object.assign(Object.assign({}, detail), { previousModel }));
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
async onRangeEdit(e) {
|
|
569
|
+
if (!this.dataProvider) {
|
|
570
|
+
throw new Error('Not connected');
|
|
571
|
+
}
|
|
572
|
+
const previousModels = JSON.parse(JSON.stringify(e.detail.models));
|
|
573
|
+
const { defaultPrevented, detail } = this.beforerangeedit.emit(e.detail);
|
|
574
|
+
if (defaultPrevented) {
|
|
575
|
+
e.preventDefault();
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
578
|
+
this.dataProvider.setRangeData(detail.data, detail.type);
|
|
579
|
+
this.afteredit.emit(Object.assign(Object.assign({}, detail), { previousModels }));
|
|
580
|
+
}
|
|
581
|
+
onRangeChanged(e) {
|
|
582
|
+
const beforeange = this.beforerange.emit(e.detail);
|
|
583
|
+
if (beforeange.defaultPrevented) {
|
|
584
|
+
e.preventDefault();
|
|
585
|
+
}
|
|
586
|
+
const beforeFill = this.beforeautofill.emit(beforeange.detail);
|
|
587
|
+
if (beforeFill.defaultPrevented) {
|
|
588
|
+
e.preventDefault();
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
onRowDropped(e) {
|
|
592
|
+
// e.cancelBubble = true;
|
|
593
|
+
const { defaultPrevented } = this.roworderchanged.emit(e.detail);
|
|
594
|
+
if (defaultPrevented) {
|
|
595
|
+
e.preventDefault();
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
onHeaderClick(e) {
|
|
599
|
+
const { defaultPrevented } = this.headerclick.emit(Object.assign(Object.assign({}, e.detail.column), { originalEvent: e.detail.originalEvent }));
|
|
600
|
+
if (defaultPrevented) {
|
|
601
|
+
e.preventDefault();
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
onCellFocus(e) {
|
|
605
|
+
const { defaultPrevented } = this.beforecellfocus.emit(e.detail);
|
|
606
|
+
if (!this.canFocus || defaultPrevented) {
|
|
607
|
+
e.preventDefault();
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
// #endregion
|
|
611
|
+
// #region Watchers
|
|
612
|
+
columnTypesChanged() {
|
|
613
|
+
// Column format change will trigger column structure update
|
|
614
|
+
this.columnChanged(this.columns);
|
|
615
|
+
}
|
|
616
|
+
columnChanged(newVal = [], _prevVal = undefined, __watchName = 'columns', init = false) {
|
|
617
|
+
if (!this.dimensionProvider || !this.columnProvider) {
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
const columnGather = getColumns(newVal, 0, this.columnTypes);
|
|
621
|
+
const beforeSetEvent = this.beforecolumnsset.emit(columnGather);
|
|
622
|
+
if (beforeSetEvent.defaultPrevented) {
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
this.dimensionProvider.applyNewColumns(beforeSetEvent.detail.columns, this.disableVirtualX, init);
|
|
626
|
+
const beforeApplyEvent = this.beforecolumnapplied.emit(columnGather);
|
|
627
|
+
if (beforeApplyEvent.defaultPrevented) {
|
|
628
|
+
return;
|
|
629
|
+
}
|
|
630
|
+
const columns = this.columnProvider.setColumns(beforeApplyEvent.detail);
|
|
631
|
+
this.aftercolumnsset.emit({
|
|
632
|
+
columns,
|
|
633
|
+
order: Object.entries(beforeApplyEvent.detail.sort).reduce((acc, [prop, column]) => {
|
|
634
|
+
acc[prop] = column.order;
|
|
635
|
+
return acc;
|
|
636
|
+
}, {}),
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
disableVirtualXChanged(newVal = false, prevVal = false) {
|
|
640
|
+
if (newVal === prevVal) {
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
this.columnChanged(this.columns);
|
|
644
|
+
}
|
|
645
|
+
rowSizeChanged(s) {
|
|
646
|
+
if (!this.dimensionProvider) {
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
// clear existing data
|
|
650
|
+
this.dimensionProvider.setSettings({ originItemSize: s }, 'rgRow');
|
|
651
|
+
this.rowDefChanged(this.rowDefinitions, this.rowDefinitions, 'rowSize', true);
|
|
652
|
+
}
|
|
653
|
+
themeChanged(t, _, __ = 'theme', init = false) {
|
|
654
|
+
if (!this.dimensionProvider) {
|
|
655
|
+
return;
|
|
656
|
+
}
|
|
657
|
+
this.themeService.register(t);
|
|
658
|
+
this.dimensionProvider.setSettings({ originItemSize: this.themeService.rowSize }, 'rgRow');
|
|
659
|
+
this.dimensionProvider.setSettings({ originItemSize: this.colSize }, 'rgCol');
|
|
660
|
+
// if theme change we need to reapply row size and reset viewport
|
|
661
|
+
if (!init) {
|
|
662
|
+
// clear existing data
|
|
663
|
+
this.dimensionProvider.setSettings({ originItemSize: this.themeService.rowSize }, 'rgRow');
|
|
664
|
+
this.rowDefChanged(
|
|
665
|
+
// for cases when some custom size present and not
|
|
666
|
+
this.rowDefinitions, this.rowDefinitions, 'theme', true);
|
|
667
|
+
}
|
|
668
|
+
this.afterthemechanged.emit(t);
|
|
669
|
+
}
|
|
670
|
+
dataSourceChanged(newVal = [], _, watchName) {
|
|
671
|
+
if (!this.dataProvider) {
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
let type = 'rgRow';
|
|
675
|
+
switch (watchName) {
|
|
676
|
+
case 'pinnedBottomSource':
|
|
677
|
+
type = 'rowPinEnd';
|
|
678
|
+
break;
|
|
679
|
+
case 'pinnedTopSource':
|
|
680
|
+
type = 'rowPinStart';
|
|
681
|
+
break;
|
|
682
|
+
case 'source':
|
|
683
|
+
type = 'rgRow';
|
|
684
|
+
/**
|
|
685
|
+
* Applied for source only for cross compatability between plugins
|
|
686
|
+
*/
|
|
687
|
+
const beforesourceset = this.beforesourceset.emit({
|
|
688
|
+
type,
|
|
689
|
+
source: newVal,
|
|
690
|
+
});
|
|
691
|
+
newVal = beforesourceset.detail.source;
|
|
692
|
+
break;
|
|
693
|
+
}
|
|
694
|
+
const beforesourceset = this.beforeanysource.emit({
|
|
695
|
+
type,
|
|
696
|
+
source: newVal,
|
|
697
|
+
});
|
|
698
|
+
const newSource = [...beforesourceset.detail.source];
|
|
699
|
+
this.dataProvider.setData(newSource, type, this.disableVirtualY);
|
|
700
|
+
/**
|
|
701
|
+
* Applied for source only for cross compatability between plugins
|
|
702
|
+
*/
|
|
703
|
+
if (watchName === 'source') {
|
|
704
|
+
this.aftersourceset.emit({
|
|
705
|
+
type,
|
|
706
|
+
source: newVal,
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
this.afteranysource.emit({
|
|
710
|
+
type,
|
|
711
|
+
source: newVal,
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
disableVirtualYChanged(newVal = false, prevVal = false) {
|
|
715
|
+
if (newVal === prevVal) {
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
this.dataSourceChanged(this.source, this.source, 'source');
|
|
719
|
+
}
|
|
720
|
+
rowDefChanged(after, before, _watchName, forceUpdate = true) {
|
|
721
|
+
// in firefox it's triggered before init
|
|
722
|
+
if (!this.dimensionProvider || !this.dataProvider) {
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
const { detail: { vals: newVal, oldVals: oldVal }, } = this.beforerowdefinition.emit({
|
|
726
|
+
vals: after,
|
|
727
|
+
oldVals: before,
|
|
728
|
+
});
|
|
729
|
+
// apply new values
|
|
730
|
+
const newRows = rowDefinitionByType(newVal);
|
|
731
|
+
// clear current defs
|
|
732
|
+
if (oldVal) {
|
|
733
|
+
const remove = rowDefinitionRemoveByType(oldVal);
|
|
734
|
+
// clear all old data and drop sizes
|
|
735
|
+
for (const t in remove) {
|
|
736
|
+
if (remove.hasOwnProperty(t)) {
|
|
737
|
+
const type = t;
|
|
738
|
+
const store = this.dataProvider.stores[type];
|
|
739
|
+
const sourceLength = store.store.get('source').length;
|
|
740
|
+
this.dimensionProvider.clearSize(type, sourceLength);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
// set new sizes
|
|
745
|
+
rowTypes.forEach(t => {
|
|
746
|
+
var _a;
|
|
747
|
+
const newSizes = newRows[t];
|
|
748
|
+
// apply new sizes or force update
|
|
749
|
+
if (newSizes || forceUpdate) {
|
|
750
|
+
(_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setCustomSizes(t, (newSizes === null || newSizes === void 0 ? void 0 : newSizes.sizes) || {});
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
trimmedRowsChanged(newVal = {}) {
|
|
755
|
+
this.addTrimmed(newVal);
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Grouping
|
|
759
|
+
*/
|
|
760
|
+
groupingChanged(newVal = {}) {
|
|
761
|
+
var _a;
|
|
762
|
+
(_a = this.pluginService.getByClass(GroupingRowPlugin)) === null || _a === void 0 ? void 0 : _a.setGrouping(newVal || {});
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Stretch Plugin Apply
|
|
766
|
+
*/
|
|
767
|
+
applyStretch(isStretch) {
|
|
768
|
+
if (!this.dimensionProvider ||
|
|
769
|
+
!this.dataProvider ||
|
|
770
|
+
!this.columnProvider ||
|
|
771
|
+
!this.viewportProvider) {
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
if (isStretch === 'false') {
|
|
775
|
+
isStretch = false;
|
|
776
|
+
}
|
|
777
|
+
const pluginData = this.getPluginData();
|
|
778
|
+
if (!pluginData) {
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
const stretch = this.pluginService.getByClass(StretchColumn);
|
|
782
|
+
if ((typeof isStretch === 'boolean' && isStretch) || isStretch === 'true') {
|
|
783
|
+
if (!stretch) {
|
|
784
|
+
this.pluginService.add(new StretchColumn(this.element, pluginData));
|
|
785
|
+
}
|
|
786
|
+
else if (isStretchPlugin(stretch)) {
|
|
787
|
+
stretch.applyStretch(this.columnProvider.getRawColumns());
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
else if (stretch) {
|
|
791
|
+
this.pluginService.remove(stretch);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
applyFilter(cfg) {
|
|
795
|
+
this.filterconfigchanged.emit(cfg);
|
|
796
|
+
}
|
|
797
|
+
applySorting(cfg) {
|
|
798
|
+
this.sortingconfigchanged.emit(cfg);
|
|
799
|
+
}
|
|
800
|
+
rowHeadersChange(rowHeaders) {
|
|
801
|
+
this.rowheaderschanged.emit(rowHeaders);
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Register external VNodes
|
|
805
|
+
*/
|
|
806
|
+
registerOutsideVNodes(elements = []) {
|
|
807
|
+
this.extraElements = elements;
|
|
808
|
+
}
|
|
809
|
+
additionalDataChanged(data) {
|
|
810
|
+
this.additionaldatachanged.emit(data);
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Watch for RTL changes and reapply column ordering
|
|
814
|
+
*/
|
|
815
|
+
rtlChanged() {
|
|
816
|
+
// The RTL plugin will handle the transformation automatically
|
|
817
|
+
// Just trigger a column refresh to ensure the plugin processes the change
|
|
818
|
+
this.columnChanged(this.columns);
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* User can add plugins via plugins property
|
|
822
|
+
*/
|
|
823
|
+
pluginsChanged(plugins = [], prevPlugins) {
|
|
824
|
+
this.pluginService.addUserPluginsAndCreate(this.element, plugins, prevPlugins, this.getPluginData());
|
|
825
|
+
}
|
|
826
|
+
// #endregion
|
|
827
|
+
// #region Plugins
|
|
828
|
+
setPlugins() {
|
|
829
|
+
// remove old plugins if any
|
|
830
|
+
this.removePlugins();
|
|
831
|
+
// pass data provider to plugins
|
|
832
|
+
const pluginData = this.getPluginData();
|
|
833
|
+
if (!pluginData) {
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
// register system plugins
|
|
837
|
+
this.setCorePlugins(pluginData);
|
|
838
|
+
// register user plugins
|
|
839
|
+
this.pluginsChanged(this.plugins);
|
|
840
|
+
}
|
|
841
|
+
setCorePlugins(pluginData) {
|
|
842
|
+
if (this.accessible) {
|
|
843
|
+
this.pluginService.add(new WCAGPlugin(this.element, pluginData));
|
|
844
|
+
}
|
|
845
|
+
// register RTL plugin
|
|
846
|
+
this.pluginService.add(new RTLPlugin(this.element, pluginData));
|
|
847
|
+
// register auto size plugin
|
|
848
|
+
if (this.autoSizeColumn) {
|
|
849
|
+
this.pluginService.add(new AutoSizeColumnPlugin(this.element, pluginData, typeof this.autoSizeColumn === 'object'
|
|
850
|
+
? this.autoSizeColumn
|
|
851
|
+
: undefined));
|
|
852
|
+
}
|
|
853
|
+
// register filter plugin
|
|
854
|
+
if (this.filter) {
|
|
855
|
+
this.pluginService.add(new FilterPlugin(this.element, pluginData, typeof this.filter === 'object' ? this.filter : undefined));
|
|
856
|
+
}
|
|
857
|
+
// register export plugin
|
|
858
|
+
if (this.exporting) {
|
|
859
|
+
this.pluginService.add(new ExportFilePlugin(this.element, pluginData));
|
|
860
|
+
}
|
|
861
|
+
// register sorting plugin
|
|
862
|
+
this.pluginService.add(new SortingPlugin(this.element, pluginData));
|
|
863
|
+
// register grouping plugin
|
|
864
|
+
this.pluginService.add(new GroupingRowPlugin(this.element, pluginData));
|
|
865
|
+
if (this.canMoveColumns) {
|
|
866
|
+
this.pluginService.add(new ColumnMovePlugin(this.element, pluginData));
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
getPluginData() {
|
|
870
|
+
if (!this.dimensionProvider ||
|
|
871
|
+
!this.dataProvider ||
|
|
872
|
+
!this.columnProvider ||
|
|
873
|
+
!this.viewportProvider ||
|
|
874
|
+
!this.selectionStoreConnector) {
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
// pass data provider to plugins
|
|
878
|
+
const pluginData = {
|
|
879
|
+
data: this.dataProvider,
|
|
880
|
+
column: this.columnProvider,
|
|
881
|
+
dimension: this.dimensionProvider,
|
|
882
|
+
viewport: this.viewportProvider,
|
|
883
|
+
selection: this.selectionStoreConnector,
|
|
884
|
+
plugins: this.pluginService,
|
|
885
|
+
};
|
|
886
|
+
return pluginData;
|
|
887
|
+
}
|
|
888
|
+
removePlugins() {
|
|
889
|
+
this.pluginService.destroy();
|
|
890
|
+
}
|
|
891
|
+
// #endregion
|
|
892
|
+
// if reconnect to dom we need to set up plugins
|
|
893
|
+
connectedCallback() {
|
|
894
|
+
if (this.isInited) {
|
|
895
|
+
this.setPlugins();
|
|
896
|
+
}
|
|
897
|
+
this.created.emit();
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* Called once just after the component is first connected to the DOM.
|
|
901
|
+
* Since this method is only called once, it's a good place to load data asynchronously and to setup the state
|
|
902
|
+
* without triggering extra re-renders.
|
|
903
|
+
* A promise can be returned, that can be used to wait for the first render().
|
|
904
|
+
*/
|
|
905
|
+
componentWillLoad() {
|
|
906
|
+
var _a;
|
|
907
|
+
// #region Setup Providers
|
|
908
|
+
this.viewportProvider = new ViewportProvider();
|
|
909
|
+
this.themeService = new ThemeService({
|
|
910
|
+
rowSize: this.rowSize,
|
|
911
|
+
});
|
|
912
|
+
this.dimensionProvider = new DimensionProvider(this.viewportProvider, {
|
|
913
|
+
realSizeChanged: (k) => this.contentsizechanged.emit(k),
|
|
914
|
+
});
|
|
915
|
+
this.columnProvider = new ColumnDataProvider();
|
|
916
|
+
this.selectionStoreConnector = new SelectionStoreConnector();
|
|
917
|
+
this.dataProvider = new DataProvider(this.dimensionProvider);
|
|
918
|
+
// #endregion
|
|
919
|
+
this.registerOutsideVNodes(this.registerVNode);
|
|
920
|
+
// init plugins
|
|
921
|
+
this.setPlugins();
|
|
922
|
+
// set data
|
|
923
|
+
this.applyStretch(this.stretch);
|
|
924
|
+
this.themeChanged(this.theme, undefined, undefined, true);
|
|
925
|
+
this.columnChanged(this.columns, undefined, undefined, true);
|
|
926
|
+
this.dataSourceChanged(this.source, undefined, 'source');
|
|
927
|
+
this.dataSourceChanged(this.pinnedTopSource, undefined, 'pinnedTopSource');
|
|
928
|
+
this.dataSourceChanged(this.pinnedBottomSource, undefined, 'pinnedBottomSource');
|
|
929
|
+
if (Object.keys((_a = this.trimmedRows) !== null && _a !== void 0 ? _a : {}).length > 0) {
|
|
930
|
+
this.trimmedRowsChanged(this.trimmedRows);
|
|
931
|
+
}
|
|
932
|
+
this.rowDefChanged(this.rowDefinitions);
|
|
933
|
+
// init grouping
|
|
934
|
+
if (this.grouping && Object.keys(this.grouping).length > 0) {
|
|
935
|
+
this.groupingChanged(this.grouping);
|
|
936
|
+
}
|
|
937
|
+
// init scrolling service
|
|
938
|
+
this.scrollingService = new GridScrollingService((e) => {
|
|
939
|
+
var _a, _b;
|
|
940
|
+
(_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setViewPortCoordinate({
|
|
941
|
+
coordinate: e.coordinate,
|
|
942
|
+
type: e.dimension,
|
|
943
|
+
});
|
|
944
|
+
const viewportRows = (_b = this.viewportProvider) === null || _b === void 0 ? void 0 : _b.stores.rgRow.store.get('items');
|
|
945
|
+
this.viewportscroll.emit(Object.assign(Object.assign({}, e), { viewportRows }));
|
|
946
|
+
});
|
|
947
|
+
this.aftergridinit.emit();
|
|
948
|
+
// set inited flag for connectedCallback
|
|
949
|
+
this.isInited = true;
|
|
950
|
+
}
|
|
951
|
+
componentWillRender() {
|
|
952
|
+
const event = this.beforegridrender.emit();
|
|
953
|
+
if (event.defaultPrevented) {
|
|
954
|
+
return false;
|
|
955
|
+
}
|
|
956
|
+
return Promise.all(this.jobsBeforeRender);
|
|
957
|
+
}
|
|
958
|
+
componentDidRender() {
|
|
959
|
+
this.aftergridrender.emit();
|
|
960
|
+
}
|
|
961
|
+
render() {
|
|
962
|
+
if (!this.dimensionProvider ||
|
|
963
|
+
!this.dataProvider ||
|
|
964
|
+
!this.columnProvider ||
|
|
965
|
+
!this.viewportProvider ||
|
|
966
|
+
!this.selectionStoreConnector) {
|
|
967
|
+
return;
|
|
968
|
+
}
|
|
969
|
+
const contentHeight = this.dimensionProvider.stores['rgRow'].store.get('realSize');
|
|
970
|
+
// init viewport service helpers
|
|
971
|
+
this.viewport = new ViewportService({
|
|
972
|
+
columnProvider: this.columnProvider,
|
|
973
|
+
dataProvider: this.dataProvider,
|
|
974
|
+
dimensionProvider: this.dimensionProvider,
|
|
975
|
+
viewportProvider: this.viewportProvider,
|
|
976
|
+
scrollingService: this.scrollingService,
|
|
977
|
+
orderService: this.orderService,
|
|
978
|
+
selectionStoreConnector: this.selectionStoreConnector,
|
|
979
|
+
disableVirtualX: this.disableVirtualX,
|
|
980
|
+
disableVirtualY: this.disableVirtualY,
|
|
981
|
+
resize: c => this.aftercolumnresize.emit(c),
|
|
982
|
+
}, contentHeight);
|
|
983
|
+
// #region ViewportSections
|
|
984
|
+
/**
|
|
985
|
+
* The code renders a viewport divided into sections.
|
|
986
|
+
* It starts by rendering the pinned start, data, and pinned end sections.
|
|
987
|
+
* Within each section, it renders columns along with their headers, pinned top, center data, and pinned bottom.
|
|
988
|
+
* The code iterates over the columns and their data to generate the view port's HTML structure.
|
|
989
|
+
*/
|
|
990
|
+
const viewportSections = [];
|
|
991
|
+
// Row headers setting
|
|
992
|
+
if (this.rowHeaders && this.viewport.columns.length) {
|
|
993
|
+
const anyView = this.viewport.columns[0];
|
|
994
|
+
viewportSections.push(h("revogr-row-headers", { additionalData: this.additionalData, height: contentHeight, rowClass: this.rowClass, resize: this.resize, dataPorts: anyView.dataPorts, headerProp: anyView.headerProp, jobsBeforeRender: this.jobsBeforeRender, rowHeaderColumn: typeof this.rowHeaders === 'object' ? this.rowHeaders : undefined, onScrollview: ({ detail: e }) => this.scrollingService.proxyScroll(e, 'headerRow'), onRef: ({ detail: e }) => this.scrollingService.registerElement(e, 'headerRow') }));
|
|
995
|
+
}
|
|
996
|
+
// Viewport section render
|
|
997
|
+
const isMobile = isMobileDevice();
|
|
998
|
+
const viewPortHtml = [];
|
|
999
|
+
// Render viewports column(horizontal sections)
|
|
1000
|
+
for (let view of this.viewport.columns) {
|
|
1001
|
+
const headerProperties = Object.assign(Object.assign({}, view.headerProp), { type: view.type, additionalData: this.additionalData, viewportCol: view.viewportCol, selectionStore: view.columnSelectionStore, canResize: this.resize, readonly: this.readonly, columnFilter: !!this.filter });
|
|
1002
|
+
// Column headers
|
|
1003
|
+
const dataViews = [
|
|
1004
|
+
h("revogr-header", Object.assign({}, headerProperties, { slot: HEADER_SLOT })),
|
|
1005
|
+
];
|
|
1006
|
+
// Render viewport data (vertical sections)
|
|
1007
|
+
view.dataPorts.forEach(data => {
|
|
1008
|
+
const key = `${data.type}_${view.type}`;
|
|
1009
|
+
const dataView = (h("revogr-overlay-selection", Object.assign({}, data, { canDrag: this.canDrag && data.canDrag, isMobileDevice: isMobile, onSelectall: () => { var _a; return (_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.selectAll(); }, onRollback: () => this.afterrollback.emit(), editors: this.editors, readonly: this.readonly, range: this.range, useClipboard: this.useClipboard, applyChangesOnClose: this.applyOnClose, additionalData: this.additionalData, slot: data.slot, onBeforenextvpfocus: e => { var _a; return (_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.beforeNextFocusCell(e.detail); }, onCanceledit: () => { var _a; return (_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.setEdit(false); }, onSetedit: ({ detail }) => {
|
|
1010
|
+
var _a;
|
|
1011
|
+
const event = this.beforeeditstart.emit(detail);
|
|
1012
|
+
if (!event.defaultPrevented) {
|
|
1013
|
+
(_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.setEdit(detail.val);
|
|
1014
|
+
}
|
|
1015
|
+
} }), h("revogr-data", Object.assign({}, data, { colType: view.type, key: key, readonly: this.readonly, range: this.range, rowClass: this.rowClass, rowSelectionStore: data.rowSelectionStore, additionalData: this.additionalData, jobsBeforeRender: this.jobsBeforeRender, slot: DATA_SLOT }), h("slot", { name: `data-${view.type}-${data.type}` })), h("revogr-temp-range", { selectionStore: data.selectionStore, dimensionRow: data.dimensionRow, dimensionCol: data.dimensionCol }), h("revogr-focus", { colData: data.colData, dataStore: data.dataStore, focusTemplate: this.focusTemplate, rowType: data.type, colType: view.type, selectionStore: data.selectionStore, dimensionRow: data.dimensionRow, dimensionCol: data.dimensionCol }, h("slot", { name: `focus-${view.type}-${data.type}` }))));
|
|
1016
|
+
dataViews.push(dataView);
|
|
1017
|
+
});
|
|
1018
|
+
// Add viewport scroll in the end
|
|
1019
|
+
viewPortHtml.push(h("revogr-viewport-scroll", Object.assign({}, view.prop, { ref: el => this.scrollingService.registerElement(el, `${view.prop.key}`), onScrollviewport: e => this.scrollingService.proxyScroll(e.detail, `${view.prop.key}`), onScrollviewportsilent: e => this.scrollingService.scrollSilentService(e.detail, `${view.prop.key}`) }), dataViews));
|
|
1020
|
+
}
|
|
1021
|
+
viewportSections.push(viewPortHtml);
|
|
1022
|
+
// #endregion
|
|
1023
|
+
const typeRow = 'rgRow';
|
|
1024
|
+
const typeCol = 'rgCol';
|
|
1025
|
+
const viewports = this.viewportProvider.stores;
|
|
1026
|
+
const dimensions = this.dimensionProvider.stores;
|
|
1027
|
+
const verticalScroll = (h("revogr-scroll-virtual", { class: "vertical", dimension: typeRow, clientSize: viewports[typeRow].store.get('clientSize'), virtualSize: viewports[typeRow].store.get('virtualSize'), realSize: dimensions[typeRow].store.get('realSize'), ref: el => this.scrollingService.registerElement(el, 'rowScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }));
|
|
1028
|
+
const horizontalScroll = (h("revogr-scroll-virtual", { class: "horizontal", dimension: typeCol, clientSize: viewports[typeCol].store.get('clientSize'), virtualSize: viewports[typeCol].store.get('virtualSize'), realSize: dimensions[typeCol].store.get('realSize'), ref: el => this.scrollingService.registerElement(el, 'colScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }));
|
|
1029
|
+
return (h(Host, { dir: this.rtl ? 'rtl' : 'ltr' }, this.hideAttribution ? null : (h("revogr-attribution", { class: "attribution" })), h("slot", { name: "header" }), h("div", { class: "main-viewport", onClick: (e) => {
|
|
1030
|
+
var _a;
|
|
1031
|
+
if (e.currentTarget === e.target) {
|
|
1032
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.clearEdit();
|
|
1033
|
+
}
|
|
1034
|
+
} }, h("div", { class: "viewports" }, h("slot", { name: "viewport" }), viewportSections, verticalScroll, h(OrderRenderer, { ref: e => (this.orderService = e) }))), horizontalScroll, h("revogr-extra", { ref: el => (this.extraService = el), nodes: this.extraElements }), h("slot", { name: "footer" })));
|
|
1035
|
+
}
|
|
1036
|
+
disconnectedCallback() {
|
|
1037
|
+
// Remove all plugins, to avoid memory leaks
|
|
1038
|
+
// and unexpected behaviour when the component is removed
|
|
1039
|
+
this.removePlugins();
|
|
1040
|
+
}
|
|
1041
|
+
static get is() { return "revo-grid"; }
|
|
1042
|
+
static get originalStyleUrls() {
|
|
1043
|
+
return {
|
|
1044
|
+
"$": ["revo-grid-style.scss"]
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
static get styleUrls() {
|
|
1048
|
+
return {
|
|
1049
|
+
"$": ["revo-grid-style.css"]
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
static get properties() {
|
|
1053
|
+
return {
|
|
1054
|
+
"rowHeaders": {
|
|
1055
|
+
"type": "boolean",
|
|
1056
|
+
"attribute": "row-headers",
|
|
1057
|
+
"mutable": false,
|
|
1058
|
+
"complexType": {
|
|
1059
|
+
"original": "RowHeaders | boolean",
|
|
1060
|
+
"resolved": "RowHeaders | boolean",
|
|
1061
|
+
"references": {
|
|
1062
|
+
"RowHeaders": {
|
|
1063
|
+
"location": "import",
|
|
1064
|
+
"path": "@type",
|
|
1065
|
+
"id": "src/types/index.ts::RowHeaders"
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
"required": false,
|
|
1070
|
+
"optional": false,
|
|
1071
|
+
"docs": {
|
|
1072
|
+
"tags": [],
|
|
1073
|
+
"text": "Excel like functionality.\r\nShow row numbers.\r\nAlso can be used for custom row header render if object provided."
|
|
1074
|
+
},
|
|
1075
|
+
"getter": false,
|
|
1076
|
+
"setter": false,
|
|
1077
|
+
"reflect": false
|
|
1078
|
+
},
|
|
1079
|
+
"frameSize": {
|
|
1080
|
+
"type": "number",
|
|
1081
|
+
"attribute": "frame-size",
|
|
1082
|
+
"mutable": false,
|
|
1083
|
+
"complexType": {
|
|
1084
|
+
"original": "number",
|
|
1085
|
+
"resolved": "number",
|
|
1086
|
+
"references": {}
|
|
1087
|
+
},
|
|
1088
|
+
"required": false,
|
|
1089
|
+
"optional": false,
|
|
1090
|
+
"docs": {
|
|
1091
|
+
"tags": [],
|
|
1092
|
+
"text": "Defines how many rows/columns should be rendered outside visible area."
|
|
1093
|
+
},
|
|
1094
|
+
"getter": false,
|
|
1095
|
+
"setter": false,
|
|
1096
|
+
"reflect": false,
|
|
1097
|
+
"defaultValue": "1"
|
|
1098
|
+
},
|
|
1099
|
+
"rowSize": {
|
|
1100
|
+
"type": "number",
|
|
1101
|
+
"attribute": "row-size",
|
|
1102
|
+
"mutable": false,
|
|
1103
|
+
"complexType": {
|
|
1104
|
+
"original": "number",
|
|
1105
|
+
"resolved": "number",
|
|
1106
|
+
"references": {}
|
|
1107
|
+
},
|
|
1108
|
+
"required": false,
|
|
1109
|
+
"optional": false,
|
|
1110
|
+
"docs": {
|
|
1111
|
+
"tags": [],
|
|
1112
|
+
"text": "Indicates default rgRow size.\r\nBy default 0, means theme package size will be applied\r\n\r\nAlternatively you can use `rowSize` to reset viewport"
|
|
1113
|
+
},
|
|
1114
|
+
"getter": false,
|
|
1115
|
+
"setter": false,
|
|
1116
|
+
"reflect": false,
|
|
1117
|
+
"defaultValue": "0"
|
|
1118
|
+
},
|
|
1119
|
+
"colSize": {
|
|
1120
|
+
"type": "number",
|
|
1121
|
+
"attribute": "col-size",
|
|
1122
|
+
"mutable": false,
|
|
1123
|
+
"complexType": {
|
|
1124
|
+
"original": "number",
|
|
1125
|
+
"resolved": "number",
|
|
1126
|
+
"references": {}
|
|
1127
|
+
},
|
|
1128
|
+
"required": false,
|
|
1129
|
+
"optional": false,
|
|
1130
|
+
"docs": {
|
|
1131
|
+
"tags": [],
|
|
1132
|
+
"text": "Indicates default column size."
|
|
1133
|
+
},
|
|
1134
|
+
"getter": false,
|
|
1135
|
+
"setter": false,
|
|
1136
|
+
"reflect": false,
|
|
1137
|
+
"defaultValue": "100"
|
|
1138
|
+
},
|
|
1139
|
+
"range": {
|
|
1140
|
+
"type": "boolean",
|
|
1141
|
+
"attribute": "range",
|
|
1142
|
+
"mutable": false,
|
|
1143
|
+
"complexType": {
|
|
1144
|
+
"original": "boolean",
|
|
1145
|
+
"resolved": "boolean",
|
|
1146
|
+
"references": {}
|
|
1147
|
+
},
|
|
1148
|
+
"required": false,
|
|
1149
|
+
"optional": false,
|
|
1150
|
+
"docs": {
|
|
1151
|
+
"tags": [],
|
|
1152
|
+
"text": "When true, user can range selection."
|
|
1153
|
+
},
|
|
1154
|
+
"getter": false,
|
|
1155
|
+
"setter": false,
|
|
1156
|
+
"reflect": false,
|
|
1157
|
+
"defaultValue": "false"
|
|
1158
|
+
},
|
|
1159
|
+
"readonly": {
|
|
1160
|
+
"type": "boolean",
|
|
1161
|
+
"attribute": "readonly",
|
|
1162
|
+
"mutable": false,
|
|
1163
|
+
"complexType": {
|
|
1164
|
+
"original": "boolean",
|
|
1165
|
+
"resolved": "boolean",
|
|
1166
|
+
"references": {}
|
|
1167
|
+
},
|
|
1168
|
+
"required": false,
|
|
1169
|
+
"optional": false,
|
|
1170
|
+
"docs": {
|
|
1171
|
+
"tags": [],
|
|
1172
|
+
"text": "When true, grid in read only mode."
|
|
1173
|
+
},
|
|
1174
|
+
"getter": false,
|
|
1175
|
+
"setter": false,
|
|
1176
|
+
"reflect": false,
|
|
1177
|
+
"defaultValue": "false"
|
|
1178
|
+
},
|
|
1179
|
+
"resize": {
|
|
1180
|
+
"type": "boolean",
|
|
1181
|
+
"attribute": "resize",
|
|
1182
|
+
"mutable": false,
|
|
1183
|
+
"complexType": {
|
|
1184
|
+
"original": "boolean",
|
|
1185
|
+
"resolved": "boolean",
|
|
1186
|
+
"references": {}
|
|
1187
|
+
},
|
|
1188
|
+
"required": false,
|
|
1189
|
+
"optional": false,
|
|
1190
|
+
"docs": {
|
|
1191
|
+
"tags": [],
|
|
1192
|
+
"text": "When true, columns are resizable."
|
|
1193
|
+
},
|
|
1194
|
+
"getter": false,
|
|
1195
|
+
"setter": false,
|
|
1196
|
+
"reflect": false,
|
|
1197
|
+
"defaultValue": "false"
|
|
1198
|
+
},
|
|
1199
|
+
"canFocus": {
|
|
1200
|
+
"type": "boolean",
|
|
1201
|
+
"attribute": "can-focus",
|
|
1202
|
+
"mutable": false,
|
|
1203
|
+
"complexType": {
|
|
1204
|
+
"original": "boolean",
|
|
1205
|
+
"resolved": "boolean",
|
|
1206
|
+
"references": {}
|
|
1207
|
+
},
|
|
1208
|
+
"required": false,
|
|
1209
|
+
"optional": false,
|
|
1210
|
+
"docs": {
|
|
1211
|
+
"tags": [],
|
|
1212
|
+
"text": "When true cell focus appear."
|
|
1213
|
+
},
|
|
1214
|
+
"getter": false,
|
|
1215
|
+
"setter": false,
|
|
1216
|
+
"reflect": false,
|
|
1217
|
+
"defaultValue": "true"
|
|
1218
|
+
},
|
|
1219
|
+
"useClipboard": {
|
|
1220
|
+
"type": "boolean",
|
|
1221
|
+
"attribute": "use-clipboard",
|
|
1222
|
+
"mutable": false,
|
|
1223
|
+
"complexType": {
|
|
1224
|
+
"original": "boolean",
|
|
1225
|
+
"resolved": "boolean",
|
|
1226
|
+
"references": {}
|
|
1227
|
+
},
|
|
1228
|
+
"required": false,
|
|
1229
|
+
"optional": false,
|
|
1230
|
+
"docs": {
|
|
1231
|
+
"tags": [],
|
|
1232
|
+
"text": "When true enable clipboard."
|
|
1233
|
+
},
|
|
1234
|
+
"getter": false,
|
|
1235
|
+
"setter": false,
|
|
1236
|
+
"reflect": false,
|
|
1237
|
+
"defaultValue": "true"
|
|
1238
|
+
},
|
|
1239
|
+
"columns": {
|
|
1240
|
+
"type": "unknown",
|
|
1241
|
+
"attribute": "columns",
|
|
1242
|
+
"mutable": false,
|
|
1243
|
+
"complexType": {
|
|
1244
|
+
"original": "(ColumnRegular | ColumnGrouping)[]",
|
|
1245
|
+
"resolved": "(ColumnRegular | ColumnGrouping<any>)[]",
|
|
1246
|
+
"references": {
|
|
1247
|
+
"ColumnRegular": {
|
|
1248
|
+
"location": "import",
|
|
1249
|
+
"path": "@type",
|
|
1250
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
1251
|
+
},
|
|
1252
|
+
"ColumnGrouping": {
|
|
1253
|
+
"location": "import",
|
|
1254
|
+
"path": "@type",
|
|
1255
|
+
"id": "src/types/index.ts::ColumnGrouping"
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
"required": false,
|
|
1260
|
+
"optional": false,
|
|
1261
|
+
"docs": {
|
|
1262
|
+
"tags": [],
|
|
1263
|
+
"text": "Columns - defines an array of grid columns.\r\nCan be column or grouped column."
|
|
1264
|
+
},
|
|
1265
|
+
"getter": false,
|
|
1266
|
+
"setter": false,
|
|
1267
|
+
"defaultValue": "[]"
|
|
1268
|
+
},
|
|
1269
|
+
"source": {
|
|
1270
|
+
"type": "unknown",
|
|
1271
|
+
"attribute": "source",
|
|
1272
|
+
"mutable": false,
|
|
1273
|
+
"complexType": {
|
|
1274
|
+
"original": "DataType[]",
|
|
1275
|
+
"resolved": "DataType[]",
|
|
1276
|
+
"references": {
|
|
1277
|
+
"DataType": {
|
|
1278
|
+
"location": "import",
|
|
1279
|
+
"path": "@type",
|
|
1280
|
+
"id": "src/types/index.ts::DataType"
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"required": false,
|
|
1285
|
+
"optional": false,
|
|
1286
|
+
"docs": {
|
|
1287
|
+
"tags": [],
|
|
1288
|
+
"text": "Source - defines main data source.\r\nCan be an Object or 2 dimensional array([][]);\r\nKeys/indexes referenced from columns Prop."
|
|
1289
|
+
},
|
|
1290
|
+
"getter": false,
|
|
1291
|
+
"setter": false,
|
|
1292
|
+
"defaultValue": "[]"
|
|
1293
|
+
},
|
|
1294
|
+
"pinnedTopSource": {
|
|
1295
|
+
"type": "unknown",
|
|
1296
|
+
"attribute": "pinned-top-source",
|
|
1297
|
+
"mutable": false,
|
|
1298
|
+
"complexType": {
|
|
1299
|
+
"original": "DataType[]",
|
|
1300
|
+
"resolved": "DataType[]",
|
|
1301
|
+
"references": {
|
|
1302
|
+
"DataType": {
|
|
1303
|
+
"location": "import",
|
|
1304
|
+
"path": "@type",
|
|
1305
|
+
"id": "src/types/index.ts::DataType"
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"required": false,
|
|
1310
|
+
"optional": false,
|
|
1311
|
+
"docs": {
|
|
1312
|
+
"tags": [],
|
|
1313
|
+
"text": "Pinned top Source: {[T in ColumnProp]: any} - defines pinned top rows data source."
|
|
1314
|
+
},
|
|
1315
|
+
"getter": false,
|
|
1316
|
+
"setter": false,
|
|
1317
|
+
"defaultValue": "[]"
|
|
1318
|
+
},
|
|
1319
|
+
"pinnedBottomSource": {
|
|
1320
|
+
"type": "unknown",
|
|
1321
|
+
"attribute": "pinned-bottom-source",
|
|
1322
|
+
"mutable": false,
|
|
1323
|
+
"complexType": {
|
|
1324
|
+
"original": "DataType[]",
|
|
1325
|
+
"resolved": "DataType[]",
|
|
1326
|
+
"references": {
|
|
1327
|
+
"DataType": {
|
|
1328
|
+
"location": "import",
|
|
1329
|
+
"path": "@type",
|
|
1330
|
+
"id": "src/types/index.ts::DataType"
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
"required": false,
|
|
1335
|
+
"optional": false,
|
|
1336
|
+
"docs": {
|
|
1337
|
+
"tags": [],
|
|
1338
|
+
"text": "Pinned bottom Source: {[T in ColumnProp]: any} - defines pinned bottom rows data source."
|
|
1339
|
+
},
|
|
1340
|
+
"getter": false,
|
|
1341
|
+
"setter": false,
|
|
1342
|
+
"defaultValue": "[]"
|
|
1343
|
+
},
|
|
1344
|
+
"rowDefinitions": {
|
|
1345
|
+
"type": "unknown",
|
|
1346
|
+
"attribute": "row-definitions",
|
|
1347
|
+
"mutable": false,
|
|
1348
|
+
"complexType": {
|
|
1349
|
+
"original": "RowDefinition[]",
|
|
1350
|
+
"resolved": "RowDefinition[]",
|
|
1351
|
+
"references": {
|
|
1352
|
+
"RowDefinition": {
|
|
1353
|
+
"location": "import",
|
|
1354
|
+
"path": "@type",
|
|
1355
|
+
"id": "src/types/index.ts::RowDefinition"
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
"required": false,
|
|
1360
|
+
"optional": false,
|
|
1361
|
+
"docs": {
|
|
1362
|
+
"tags": [],
|
|
1363
|
+
"text": "Custom row properies to be applied. See `RowDefinition` for more info."
|
|
1364
|
+
},
|
|
1365
|
+
"getter": false,
|
|
1366
|
+
"setter": false,
|
|
1367
|
+
"defaultValue": "[]"
|
|
1368
|
+
},
|
|
1369
|
+
"editors": {
|
|
1370
|
+
"type": "unknown",
|
|
1371
|
+
"attribute": "editors",
|
|
1372
|
+
"mutable": false,
|
|
1373
|
+
"complexType": {
|
|
1374
|
+
"original": "Editors",
|
|
1375
|
+
"resolved": "{ [name: string]: EditorCtr; }",
|
|
1376
|
+
"references": {
|
|
1377
|
+
"Editors": {
|
|
1378
|
+
"location": "import",
|
|
1379
|
+
"path": "@type",
|
|
1380
|
+
"id": "src/types/index.ts::Editors"
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
"required": false,
|
|
1385
|
+
"optional": false,
|
|
1386
|
+
"docs": {
|
|
1387
|
+
"tags": [],
|
|
1388
|
+
"text": "Custom editors register."
|
|
1389
|
+
},
|
|
1390
|
+
"getter": false,
|
|
1391
|
+
"setter": false,
|
|
1392
|
+
"defaultValue": "{}"
|
|
1393
|
+
},
|
|
1394
|
+
"applyOnClose": {
|
|
1395
|
+
"type": "boolean",
|
|
1396
|
+
"attribute": "apply-on-close",
|
|
1397
|
+
"mutable": false,
|
|
1398
|
+
"complexType": {
|
|
1399
|
+
"original": "boolean",
|
|
1400
|
+
"resolved": "boolean",
|
|
1401
|
+
"references": {}
|
|
1402
|
+
},
|
|
1403
|
+
"required": false,
|
|
1404
|
+
"optional": false,
|
|
1405
|
+
"docs": {
|
|
1406
|
+
"tags": [],
|
|
1407
|
+
"text": "Apply changes in editor when closed except 'Escape' cases.\r\nIf custom editor in use method getValue required.\r\nCheck interfaces.d.ts `EditorBase` for more info."
|
|
1408
|
+
},
|
|
1409
|
+
"getter": false,
|
|
1410
|
+
"setter": false,
|
|
1411
|
+
"reflect": false,
|
|
1412
|
+
"defaultValue": "false"
|
|
1413
|
+
},
|
|
1414
|
+
"plugins": {
|
|
1415
|
+
"type": "unknown",
|
|
1416
|
+
"attribute": "plugins",
|
|
1417
|
+
"mutable": false,
|
|
1418
|
+
"complexType": {
|
|
1419
|
+
"original": "GridPlugin[]",
|
|
1420
|
+
"resolved": "(typeof BasePlugin)[]",
|
|
1421
|
+
"references": {
|
|
1422
|
+
"GridPlugin": {
|
|
1423
|
+
"location": "import",
|
|
1424
|
+
"path": "../../plugins/base.plugin",
|
|
1425
|
+
"id": "src/plugins/base.plugin.ts::GridPlugin"
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
"required": false,
|
|
1430
|
+
"optional": false,
|
|
1431
|
+
"docs": {
|
|
1432
|
+
"tags": [],
|
|
1433
|
+
"text": "Custom grid plugins. Can be added or removed at runtime.\r\nEvery plugin should be inherited from BasePlugin class.\r\n\r\nFor more details check [Plugin guide](https://rv-grid.com/guide/plugin/)"
|
|
1434
|
+
},
|
|
1435
|
+
"getter": false,
|
|
1436
|
+
"setter": false,
|
|
1437
|
+
"defaultValue": "[]"
|
|
1438
|
+
},
|
|
1439
|
+
"columnTypes": {
|
|
1440
|
+
"type": "unknown",
|
|
1441
|
+
"attribute": "column-types",
|
|
1442
|
+
"mutable": false,
|
|
1443
|
+
"complexType": {
|
|
1444
|
+
"original": "{ [name: string]: ColumnType }",
|
|
1445
|
+
"resolved": "{ [name: string]: ColumnType; }",
|
|
1446
|
+
"references": {
|
|
1447
|
+
"ColumnType": {
|
|
1448
|
+
"location": "import",
|
|
1449
|
+
"path": "@type",
|
|
1450
|
+
"id": "src/types/index.ts::ColumnType"
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
"required": false,
|
|
1455
|
+
"optional": false,
|
|
1456
|
+
"docs": {
|
|
1457
|
+
"tags": [],
|
|
1458
|
+
"text": "Column Types Format.\r\nEvery type represent multiple column properties.\r\nTypes will be merged but can be replaced with column properties.\r\nTypes were made as separate objects to be reusable per multiple columns."
|
|
1459
|
+
},
|
|
1460
|
+
"getter": false,
|
|
1461
|
+
"setter": false,
|
|
1462
|
+
"defaultValue": "{}"
|
|
1463
|
+
},
|
|
1464
|
+
"theme": {
|
|
1465
|
+
"type": "string",
|
|
1466
|
+
"attribute": "theme",
|
|
1467
|
+
"mutable": true,
|
|
1468
|
+
"complexType": {
|
|
1469
|
+
"original": "Theme",
|
|
1470
|
+
"resolved": "string",
|
|
1471
|
+
"references": {
|
|
1472
|
+
"Theme": {
|
|
1473
|
+
"location": "import",
|
|
1474
|
+
"path": "@type",
|
|
1475
|
+
"id": "src/types/index.ts::Theme"
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
"required": false,
|
|
1480
|
+
"optional": false,
|
|
1481
|
+
"docs": {
|
|
1482
|
+
"tags": [],
|
|
1483
|
+
"text": "Theme name."
|
|
1484
|
+
},
|
|
1485
|
+
"getter": false,
|
|
1486
|
+
"setter": false,
|
|
1487
|
+
"reflect": true,
|
|
1488
|
+
"defaultValue": "'default'"
|
|
1489
|
+
},
|
|
1490
|
+
"rowClass": {
|
|
1491
|
+
"type": "string",
|
|
1492
|
+
"attribute": "row-class",
|
|
1493
|
+
"mutable": false,
|
|
1494
|
+
"complexType": {
|
|
1495
|
+
"original": "string",
|
|
1496
|
+
"resolved": "string",
|
|
1497
|
+
"references": {}
|
|
1498
|
+
},
|
|
1499
|
+
"required": false,
|
|
1500
|
+
"optional": false,
|
|
1501
|
+
"docs": {
|
|
1502
|
+
"tags": [],
|
|
1503
|
+
"text": "Row class property mapping.\r\nMap custom classes to rows from row object data.\r\nDefine this property in rgRow object and this will be mapped as rgRow class."
|
|
1504
|
+
},
|
|
1505
|
+
"getter": false,
|
|
1506
|
+
"setter": false,
|
|
1507
|
+
"reflect": true,
|
|
1508
|
+
"defaultValue": "''"
|
|
1509
|
+
},
|
|
1510
|
+
"autoSizeColumn": {
|
|
1511
|
+
"type": "boolean",
|
|
1512
|
+
"attribute": "auto-size-column",
|
|
1513
|
+
"mutable": false,
|
|
1514
|
+
"complexType": {
|
|
1515
|
+
"original": "boolean | AutoSizeColumnConfig",
|
|
1516
|
+
"resolved": "boolean | { mode?: ColumnAutoSizeMode | undefined; allColumns?: boolean | undefined; letterBlockSize?: number | undefined; preciseSize?: boolean | undefined; }",
|
|
1517
|
+
"references": {
|
|
1518
|
+
"AutoSizeColumnConfig": {
|
|
1519
|
+
"location": "import",
|
|
1520
|
+
"path": "../../plugins/column.auto-size.plugin",
|
|
1521
|
+
"id": "src/plugins/column.auto-size.plugin.ts::AutoSizeColumnConfig"
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
"required": false,
|
|
1526
|
+
"optional": false,
|
|
1527
|
+
"docs": {
|
|
1528
|
+
"tags": [],
|
|
1529
|
+
"text": "Autosize config.\r\nEnables columns autoSize.\r\nFor more details check `autoSizeColumn` plugin.\r\nBy default disabled, hence operation is not performance efficient.\r\n`true` to enable with default params (double header separator click for autosize).\r\nOr define config. See `AutoSizeColumnConfig` for more details."
|
|
1530
|
+
},
|
|
1531
|
+
"getter": false,
|
|
1532
|
+
"setter": false,
|
|
1533
|
+
"reflect": false,
|
|
1534
|
+
"defaultValue": "false"
|
|
1535
|
+
},
|
|
1536
|
+
"filter": {
|
|
1537
|
+
"type": "boolean",
|
|
1538
|
+
"attribute": "filter",
|
|
1539
|
+
"mutable": false,
|
|
1540
|
+
"complexType": {
|
|
1541
|
+
"original": "boolean | ColumnFilterConfig",
|
|
1542
|
+
"resolved": "ColumnFilterConfig | boolean",
|
|
1543
|
+
"references": {
|
|
1544
|
+
"ColumnFilterConfig": {
|
|
1545
|
+
"location": "import",
|
|
1546
|
+
"path": "../../plugins/filter/filter.types",
|
|
1547
|
+
"id": "src/plugins/filter/filter.types.ts::ColumnFilterConfig"
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
"required": false,
|
|
1552
|
+
"optional": false,
|
|
1553
|
+
"docs": {
|
|
1554
|
+
"tags": [],
|
|
1555
|
+
"text": "Enables filter plugin.\r\nCan be boolean.\r\nOr can be filter collection See `FilterCollection` for more info."
|
|
1556
|
+
},
|
|
1557
|
+
"getter": false,
|
|
1558
|
+
"setter": false,
|
|
1559
|
+
"reflect": false,
|
|
1560
|
+
"defaultValue": "false"
|
|
1561
|
+
},
|
|
1562
|
+
"sorting": {
|
|
1563
|
+
"type": "unknown",
|
|
1564
|
+
"attribute": "sorting",
|
|
1565
|
+
"mutable": false,
|
|
1566
|
+
"complexType": {
|
|
1567
|
+
"original": "SortingConfig",
|
|
1568
|
+
"resolved": "undefined | { columns?: { prop: ColumnProp; order: Order; cellCompare?: CellCompareFunc | undefined; }[] | undefined; additive?: boolean | undefined; }",
|
|
1569
|
+
"references": {
|
|
1570
|
+
"SortingConfig": {
|
|
1571
|
+
"location": "import",
|
|
1572
|
+
"path": "../../plugins",
|
|
1573
|
+
"id": "src/plugins/index.ts::SortingConfig"
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
"required": false,
|
|
1578
|
+
"optional": true,
|
|
1579
|
+
"docs": {
|
|
1580
|
+
"tags": [],
|
|
1581
|
+
"text": "Alternative way to set sorting.\r\n`{columns: [{prop: 'name', order: 'asc'}]}`\r\nUse SortingPlugin to get current sorting state"
|
|
1582
|
+
},
|
|
1583
|
+
"getter": false,
|
|
1584
|
+
"setter": false
|
|
1585
|
+
},
|
|
1586
|
+
"focusTemplate": {
|
|
1587
|
+
"type": "unknown",
|
|
1588
|
+
"attribute": "focus-template",
|
|
1589
|
+
"mutable": false,
|
|
1590
|
+
"complexType": {
|
|
1591
|
+
"original": "FocusTemplateFunc",
|
|
1592
|
+
"resolved": "(createElement: HyperFunc<VNode>, detail: FocusRenderEvent) => any",
|
|
1593
|
+
"references": {
|
|
1594
|
+
"FocusTemplateFunc": {
|
|
1595
|
+
"location": "import",
|
|
1596
|
+
"path": "@type",
|
|
1597
|
+
"id": "src/types/index.ts::FocusTemplateFunc"
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"required": false,
|
|
1602
|
+
"optional": false,
|
|
1603
|
+
"docs": {
|
|
1604
|
+
"tags": [],
|
|
1605
|
+
"text": "Apply changes typed in editor on editor close except Escape cases.\r\nIf custom editor in use method `getValue` required.\r\nCheck `interfaces.d.ts` `EditorBase` for more info."
|
|
1606
|
+
},
|
|
1607
|
+
"getter": false,
|
|
1608
|
+
"setter": false
|
|
1609
|
+
},
|
|
1610
|
+
"canMoveColumns": {
|
|
1611
|
+
"type": "boolean",
|
|
1612
|
+
"attribute": "can-move-columns",
|
|
1613
|
+
"mutable": false,
|
|
1614
|
+
"complexType": {
|
|
1615
|
+
"original": "boolean",
|
|
1616
|
+
"resolved": "boolean",
|
|
1617
|
+
"references": {}
|
|
1618
|
+
},
|
|
1619
|
+
"required": false,
|
|
1620
|
+
"optional": false,
|
|
1621
|
+
"docs": {
|
|
1622
|
+
"tags": [],
|
|
1623
|
+
"text": "Enable column move plugin."
|
|
1624
|
+
},
|
|
1625
|
+
"getter": false,
|
|
1626
|
+
"setter": false,
|
|
1627
|
+
"reflect": false,
|
|
1628
|
+
"defaultValue": "false"
|
|
1629
|
+
},
|
|
1630
|
+
"trimmedRows": {
|
|
1631
|
+
"type": "unknown",
|
|
1632
|
+
"attribute": "trimmed-rows",
|
|
1633
|
+
"mutable": false,
|
|
1634
|
+
"complexType": {
|
|
1635
|
+
"original": "Record<number, boolean>",
|
|
1636
|
+
"resolved": "{ [x: number]: boolean; }",
|
|
1637
|
+
"references": {
|
|
1638
|
+
"Record": {
|
|
1639
|
+
"location": "global",
|
|
1640
|
+
"id": "global::Record"
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
},
|
|
1644
|
+
"required": false,
|
|
1645
|
+
"optional": false,
|
|
1646
|
+
"docs": {
|
|
1647
|
+
"tags": [],
|
|
1648
|
+
"text": "Trimmed rows.\r\nFunctionality which allows to hide rows from main data set.\r\n`trimmedRows` are physical `rgRow` indexes to hide."
|
|
1649
|
+
},
|
|
1650
|
+
"getter": false,
|
|
1651
|
+
"setter": false,
|
|
1652
|
+
"defaultValue": "{}"
|
|
1653
|
+
},
|
|
1654
|
+
"exporting": {
|
|
1655
|
+
"type": "boolean",
|
|
1656
|
+
"attribute": "exporting",
|
|
1657
|
+
"mutable": false,
|
|
1658
|
+
"complexType": {
|
|
1659
|
+
"original": "boolean",
|
|
1660
|
+
"resolved": "boolean",
|
|
1661
|
+
"references": {}
|
|
1662
|
+
},
|
|
1663
|
+
"required": false,
|
|
1664
|
+
"optional": false,
|
|
1665
|
+
"docs": {
|
|
1666
|
+
"tags": [],
|
|
1667
|
+
"text": "Enable export plugin."
|
|
1668
|
+
},
|
|
1669
|
+
"getter": false,
|
|
1670
|
+
"setter": false,
|
|
1671
|
+
"reflect": false,
|
|
1672
|
+
"defaultValue": "false"
|
|
1673
|
+
},
|
|
1674
|
+
"grouping": {
|
|
1675
|
+
"type": "unknown",
|
|
1676
|
+
"attribute": "grouping",
|
|
1677
|
+
"mutable": false,
|
|
1678
|
+
"complexType": {
|
|
1679
|
+
"original": "GroupingOptions",
|
|
1680
|
+
"resolved": "{ props?: ColumnProp[] | undefined; preserveGroupingOnUpdate?: boolean | undefined; groupLabelTemplate?: GroupLabelTemplateFunc | undefined; } & ExpandedOptions",
|
|
1681
|
+
"references": {
|
|
1682
|
+
"GroupingOptions": {
|
|
1683
|
+
"location": "import",
|
|
1684
|
+
"path": "../../plugins/groupingRow/grouping.row.types",
|
|
1685
|
+
"id": "src/plugins/groupingRow/grouping.row.types.ts::GroupingOptions"
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
"required": false,
|
|
1690
|
+
"optional": false,
|
|
1691
|
+
"docs": {
|
|
1692
|
+
"tags": [],
|
|
1693
|
+
"text": "Group rows based on this property.\r\nDefine properties to be groped by grouping plugin See `GroupingOptions`."
|
|
1694
|
+
},
|
|
1695
|
+
"getter": false,
|
|
1696
|
+
"setter": false
|
|
1697
|
+
},
|
|
1698
|
+
"stretch": {
|
|
1699
|
+
"type": "any",
|
|
1700
|
+
"attribute": "stretch",
|
|
1701
|
+
"mutable": false,
|
|
1702
|
+
"complexType": {
|
|
1703
|
+
"original": "boolean | string",
|
|
1704
|
+
"resolved": "boolean | string",
|
|
1705
|
+
"references": {}
|
|
1706
|
+
},
|
|
1707
|
+
"required": false,
|
|
1708
|
+
"optional": false,
|
|
1709
|
+
"docs": {
|
|
1710
|
+
"tags": [],
|
|
1711
|
+
"text": "Stretch strategy for columns by `StretchColumn` plugin.\r\nFor example if there are more space on the right last column size would be increased."
|
|
1712
|
+
},
|
|
1713
|
+
"getter": false,
|
|
1714
|
+
"setter": false,
|
|
1715
|
+
"reflect": false,
|
|
1716
|
+
"defaultValue": "false"
|
|
1717
|
+
},
|
|
1718
|
+
"additionalData": {
|
|
1719
|
+
"type": "unknown",
|
|
1720
|
+
"attribute": "additional-data",
|
|
1721
|
+
"mutable": false,
|
|
1722
|
+
"complexType": {
|
|
1723
|
+
"original": "AdditionalData",
|
|
1724
|
+
"resolved": "AdditionalData",
|
|
1725
|
+
"references": {
|
|
1726
|
+
"AdditionalData": {
|
|
1727
|
+
"location": "import",
|
|
1728
|
+
"path": "@type",
|
|
1729
|
+
"id": "src/types/index.ts::AdditionalData"
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
"required": false,
|
|
1734
|
+
"optional": false,
|
|
1735
|
+
"docs": {
|
|
1736
|
+
"tags": [],
|
|
1737
|
+
"text": "Additional data to be passed to plugins, renders or editors.\r\nFor example if you need to pass Vue component instance."
|
|
1738
|
+
},
|
|
1739
|
+
"getter": false,
|
|
1740
|
+
"setter": false,
|
|
1741
|
+
"defaultValue": "{}"
|
|
1742
|
+
},
|
|
1743
|
+
"disableVirtualX": {
|
|
1744
|
+
"type": "boolean",
|
|
1745
|
+
"attribute": "disable-virtual-x",
|
|
1746
|
+
"mutable": false,
|
|
1747
|
+
"complexType": {
|
|
1748
|
+
"original": "boolean",
|
|
1749
|
+
"resolved": "boolean",
|
|
1750
|
+
"references": {}
|
|
1751
|
+
},
|
|
1752
|
+
"required": false,
|
|
1753
|
+
"optional": false,
|
|
1754
|
+
"docs": {
|
|
1755
|
+
"tags": [],
|
|
1756
|
+
"text": "Disable lazy rendering mode for the `X axis`.\r\nUse when not many columns present and you don't need rerenader cells during scroll.\r\nCan be used for initial rendering performance improvement."
|
|
1757
|
+
},
|
|
1758
|
+
"getter": false,
|
|
1759
|
+
"setter": false,
|
|
1760
|
+
"reflect": false,
|
|
1761
|
+
"defaultValue": "false"
|
|
1762
|
+
},
|
|
1763
|
+
"disableVirtualY": {
|
|
1764
|
+
"type": "boolean",
|
|
1765
|
+
"attribute": "disable-virtual-y",
|
|
1766
|
+
"mutable": false,
|
|
1767
|
+
"complexType": {
|
|
1768
|
+
"original": "boolean",
|
|
1769
|
+
"resolved": "boolean",
|
|
1770
|
+
"references": {}
|
|
1771
|
+
},
|
|
1772
|
+
"required": false,
|
|
1773
|
+
"optional": false,
|
|
1774
|
+
"docs": {
|
|
1775
|
+
"tags": [],
|
|
1776
|
+
"text": "Disable lazy rendering mode for the `Y axis`.\r\nUse when not many rows present and you don't need rerenader cells during scroll.\r\nCan be used for initial rendering performance improvement."
|
|
1777
|
+
},
|
|
1778
|
+
"getter": false,
|
|
1779
|
+
"setter": false,
|
|
1780
|
+
"reflect": false,
|
|
1781
|
+
"defaultValue": "false"
|
|
1782
|
+
},
|
|
1783
|
+
"hideAttribution": {
|
|
1784
|
+
"type": "boolean",
|
|
1785
|
+
"attribute": "hide-attribution",
|
|
1786
|
+
"mutable": false,
|
|
1787
|
+
"complexType": {
|
|
1788
|
+
"original": "boolean",
|
|
1789
|
+
"resolved": "boolean",
|
|
1790
|
+
"references": {}
|
|
1791
|
+
},
|
|
1792
|
+
"required": false,
|
|
1793
|
+
"optional": false,
|
|
1794
|
+
"docs": {
|
|
1795
|
+
"tags": [],
|
|
1796
|
+
"text": "Please only hide the attribution if you are subscribed to Pro version"
|
|
1797
|
+
},
|
|
1798
|
+
"getter": false,
|
|
1799
|
+
"setter": false,
|
|
1800
|
+
"reflect": false,
|
|
1801
|
+
"defaultValue": "false"
|
|
1802
|
+
},
|
|
1803
|
+
"jobsBeforeRender": {
|
|
1804
|
+
"type": "unknown",
|
|
1805
|
+
"attribute": "jobs-before-render",
|
|
1806
|
+
"mutable": false,
|
|
1807
|
+
"complexType": {
|
|
1808
|
+
"original": "Promise<any>[]",
|
|
1809
|
+
"resolved": "Promise<any>[]",
|
|
1810
|
+
"references": {
|
|
1811
|
+
"Promise": {
|
|
1812
|
+
"location": "global",
|
|
1813
|
+
"id": "global::Promise"
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1817
|
+
"required": false,
|
|
1818
|
+
"optional": false,
|
|
1819
|
+
"docs": {
|
|
1820
|
+
"tags": [],
|
|
1821
|
+
"text": "Prevent rendering until job is done.\r\nCan be used for initial rendering performance improvement.\r\nWhen several plugins require initial rendering this will prevent double initial rendering."
|
|
1822
|
+
},
|
|
1823
|
+
"getter": false,
|
|
1824
|
+
"setter": false,
|
|
1825
|
+
"defaultValue": "[]"
|
|
1826
|
+
},
|
|
1827
|
+
"registerVNode": {
|
|
1828
|
+
"type": "unknown",
|
|
1829
|
+
"attribute": "register-v-node",
|
|
1830
|
+
"mutable": false,
|
|
1831
|
+
"complexType": {
|
|
1832
|
+
"original": "(VNode | ((c: ExtraNodeFuncConfig) => VNode))[]",
|
|
1833
|
+
"resolved": "(VNode | ((c: ExtraNodeFuncConfig) => VNode))[]",
|
|
1834
|
+
"references": {
|
|
1835
|
+
"VNode": {
|
|
1836
|
+
"location": "import",
|
|
1837
|
+
"path": "@stencil/core",
|
|
1838
|
+
"id": "node_modules::VNode"
|
|
1839
|
+
},
|
|
1840
|
+
"ExtraNodeFuncConfig": {
|
|
1841
|
+
"location": "import",
|
|
1842
|
+
"path": "@type",
|
|
1843
|
+
"id": "src/types/index.ts::ExtraNodeFuncConfig"
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"required": false,
|
|
1848
|
+
"optional": false,
|
|
1849
|
+
"docs": {
|
|
1850
|
+
"tags": [],
|
|
1851
|
+
"text": "Register new virtual node inside of grid.\r\nUsed for additional items creation such as plugin elements.\r\nShould be set before grid render inside of plugins.\r\nCan return VNode result of h() function or a function that returns VNode.\r\nFunction can be used for performance improvement and additional renders."
|
|
1852
|
+
},
|
|
1853
|
+
"getter": false,
|
|
1854
|
+
"setter": false,
|
|
1855
|
+
"defaultValue": "[]"
|
|
1856
|
+
},
|
|
1857
|
+
"accessible": {
|
|
1858
|
+
"type": "boolean",
|
|
1859
|
+
"attribute": "accessible",
|
|
1860
|
+
"mutable": false,
|
|
1861
|
+
"complexType": {
|
|
1862
|
+
"original": "boolean",
|
|
1863
|
+
"resolved": "boolean",
|
|
1864
|
+
"references": {}
|
|
1865
|
+
},
|
|
1866
|
+
"required": false,
|
|
1867
|
+
"optional": false,
|
|
1868
|
+
"docs": {
|
|
1869
|
+
"tags": [{
|
|
1870
|
+
"name": "default",
|
|
1871
|
+
"text": "true"
|
|
1872
|
+
}],
|
|
1873
|
+
"text": "Enable accessibility. If disabled, the grid will not be accessible."
|
|
1874
|
+
},
|
|
1875
|
+
"getter": false,
|
|
1876
|
+
"setter": false,
|
|
1877
|
+
"reflect": false,
|
|
1878
|
+
"defaultValue": "true"
|
|
1879
|
+
},
|
|
1880
|
+
"rtl": {
|
|
1881
|
+
"type": "boolean",
|
|
1882
|
+
"attribute": "rtl",
|
|
1883
|
+
"mutable": false,
|
|
1884
|
+
"complexType": {
|
|
1885
|
+
"original": "boolean",
|
|
1886
|
+
"resolved": "boolean",
|
|
1887
|
+
"references": {}
|
|
1888
|
+
},
|
|
1889
|
+
"required": false,
|
|
1890
|
+
"optional": false,
|
|
1891
|
+
"docs": {
|
|
1892
|
+
"tags": [{
|
|
1893
|
+
"name": "default",
|
|
1894
|
+
"text": "false"
|
|
1895
|
+
}],
|
|
1896
|
+
"text": "Enable right-to-left (RTL) mode. When enabled, columns will be displayed from right to left."
|
|
1897
|
+
},
|
|
1898
|
+
"getter": false,
|
|
1899
|
+
"setter": false,
|
|
1900
|
+
"reflect": false,
|
|
1901
|
+
"defaultValue": "false"
|
|
1902
|
+
},
|
|
1903
|
+
"canDrag": {
|
|
1904
|
+
"type": "boolean",
|
|
1905
|
+
"attribute": "can-drag",
|
|
1906
|
+
"mutable": false,
|
|
1907
|
+
"complexType": {
|
|
1908
|
+
"original": "boolean",
|
|
1909
|
+
"resolved": "boolean",
|
|
1910
|
+
"references": {}
|
|
1911
|
+
},
|
|
1912
|
+
"required": false,
|
|
1913
|
+
"optional": false,
|
|
1914
|
+
"docs": {
|
|
1915
|
+
"tags": [],
|
|
1916
|
+
"text": "Disable native drag&drop plugin."
|
|
1917
|
+
},
|
|
1918
|
+
"getter": false,
|
|
1919
|
+
"setter": false,
|
|
1920
|
+
"reflect": false,
|
|
1921
|
+
"defaultValue": "true"
|
|
1922
|
+
}
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
static get events() {
|
|
1926
|
+
return [{
|
|
1927
|
+
"method": "contentsizechanged",
|
|
1928
|
+
"name": "contentsizechanged",
|
|
1929
|
+
"bubbles": true,
|
|
1930
|
+
"cancelable": true,
|
|
1931
|
+
"composed": true,
|
|
1932
|
+
"docs": {
|
|
1933
|
+
"tags": [],
|
|
1934
|
+
"text": "New content size has been applied. The size excludes the header.\r\nCurrently, the event responsible for applying the new content size does not provide the actual size.\r\nTo retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered."
|
|
1935
|
+
},
|
|
1936
|
+
"complexType": {
|
|
1937
|
+
"original": "MultiDimensionType",
|
|
1938
|
+
"resolved": "\"colPinEnd\" | \"colPinStart\" | \"rgCol\" | \"rgRow\" | \"rowPinEnd\" | \"rowPinStart\"",
|
|
1939
|
+
"references": {
|
|
1940
|
+
"MultiDimensionType": {
|
|
1941
|
+
"location": "import",
|
|
1942
|
+
"path": "@type",
|
|
1943
|
+
"id": "src/types/index.ts::MultiDimensionType"
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
}, {
|
|
1948
|
+
"method": "beforeedit",
|
|
1949
|
+
"name": "beforeedit",
|
|
1950
|
+
"bubbles": true,
|
|
1951
|
+
"cancelable": true,
|
|
1952
|
+
"composed": true,
|
|
1953
|
+
"docs": {
|
|
1954
|
+
"tags": [],
|
|
1955
|
+
"text": "Before the data is edited.\r\nTo prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.\r\nTo override the edit result with your own value, set the `e.val` property to your desired value."
|
|
1956
|
+
},
|
|
1957
|
+
"complexType": {
|
|
1958
|
+
"original": "BeforeSaveDataDetails",
|
|
1959
|
+
"resolved": "BeforeSaveDataDetails",
|
|
1960
|
+
"references": {
|
|
1961
|
+
"BeforeSaveDataDetails": {
|
|
1962
|
+
"location": "import",
|
|
1963
|
+
"path": "@type",
|
|
1964
|
+
"id": "src/types/index.ts::BeforeSaveDataDetails"
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}, {
|
|
1969
|
+
"method": "beforerangeedit",
|
|
1970
|
+
"name": "beforerangeedit",
|
|
1971
|
+
"bubbles": true,
|
|
1972
|
+
"cancelable": true,
|
|
1973
|
+
"composed": true,
|
|
1974
|
+
"docs": {
|
|
1975
|
+
"tags": [],
|
|
1976
|
+
"text": "Before applying range data, specifically when a range selection occurs.\r\nTo customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`."
|
|
1977
|
+
},
|
|
1978
|
+
"complexType": {
|
|
1979
|
+
"original": "BeforeRangeSaveDataDetails",
|
|
1980
|
+
"resolved": "{ data: DataLookup; models: Partial<DataLookup>; previousModels: Partial<DataLookup> | null; type: DimensionRows; newRange: RangeArea | null; oldRange: RangeArea | null; copy?: boolean | undefined; clearByKeyboard?: boolean | undefined; }",
|
|
1981
|
+
"references": {
|
|
1982
|
+
"BeforeRangeSaveDataDetails": {
|
|
1983
|
+
"location": "import",
|
|
1984
|
+
"path": "@type",
|
|
1985
|
+
"id": "src/types/index.ts::BeforeRangeSaveDataDetails"
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
}, {
|
|
1990
|
+
"method": "afteredit",
|
|
1991
|
+
"name": "afteredit",
|
|
1992
|
+
"bubbles": true,
|
|
1993
|
+
"cancelable": true,
|
|
1994
|
+
"composed": true,
|
|
1995
|
+
"docs": {
|
|
1996
|
+
"tags": [],
|
|
1997
|
+
"text": "After data applied or range changed."
|
|
1998
|
+
},
|
|
1999
|
+
"complexType": {
|
|
2000
|
+
"original": "AfterEditEvent",
|
|
2001
|
+
"resolved": "BeforeSaveDataDetails | { data: DataLookup; models: Partial<DataLookup>; previousModels: Partial<DataLookup> | null; type: DimensionRows; newRange: RangeArea | null; oldRange: RangeArea | null; copy?: boolean | undefined; clearByKeyboard?: boolean | undefined; }",
|
|
2002
|
+
"references": {
|
|
2003
|
+
"AfterEditEvent": {
|
|
2004
|
+
"location": "import",
|
|
2005
|
+
"path": "@type",
|
|
2006
|
+
"id": "src/types/index.ts::AfterEditEvent"
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}, {
|
|
2011
|
+
"method": "beforeautofill",
|
|
2012
|
+
"name": "beforeautofill",
|
|
2013
|
+
"bubbles": true,
|
|
2014
|
+
"cancelable": true,
|
|
2015
|
+
"composed": true,
|
|
2016
|
+
"docs": {
|
|
2017
|
+
"tags": [],
|
|
2018
|
+
"text": "Before autofill is applied.\r\nTo prevent the default behavior of applying the edit data, you can call `e.preventDefault()`."
|
|
2019
|
+
},
|
|
2020
|
+
"complexType": {
|
|
2021
|
+
"original": "ChangedRange",
|
|
2022
|
+
"resolved": "{ type: DimensionRows; colType: DimensionCols; newRange: RangeArea; oldRange: RangeArea; mapping: OldNewRangeMapping; newData: { [newRowIndex: number]: DataType; }; }",
|
|
2023
|
+
"references": {
|
|
2024
|
+
"ChangedRange": {
|
|
2025
|
+
"location": "import",
|
|
2026
|
+
"path": "@type",
|
|
2027
|
+
"id": "src/types/index.ts::ChangedRange"
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}, {
|
|
2032
|
+
"method": "beforerange",
|
|
2033
|
+
"name": "beforerange",
|
|
2034
|
+
"bubbles": true,
|
|
2035
|
+
"cancelable": true,
|
|
2036
|
+
"composed": true,
|
|
2037
|
+
"docs": {
|
|
2038
|
+
"tags": [],
|
|
2039
|
+
"text": "Before autofill is applied. Runs before beforeautofill event.\r\nUse e.preventDefault() to prevent range."
|
|
2040
|
+
},
|
|
2041
|
+
"complexType": {
|
|
2042
|
+
"original": "ChangedRange",
|
|
2043
|
+
"resolved": "{ type: DimensionRows; colType: DimensionCols; newRange: RangeArea; oldRange: RangeArea; mapping: OldNewRangeMapping; newData: { [newRowIndex: number]: DataType; }; }",
|
|
2044
|
+
"references": {
|
|
2045
|
+
"ChangedRange": {
|
|
2046
|
+
"location": "import",
|
|
2047
|
+
"path": "@type",
|
|
2048
|
+
"id": "src/types/index.ts::ChangedRange"
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
}, {
|
|
2053
|
+
"method": "afterfocus",
|
|
2054
|
+
"name": "afterfocus",
|
|
2055
|
+
"bubbles": true,
|
|
2056
|
+
"cancelable": true,
|
|
2057
|
+
"composed": true,
|
|
2058
|
+
"docs": {
|
|
2059
|
+
"tags": [],
|
|
2060
|
+
"text": "After focus render finished.\r\nCan be used to access a focus element through `event.target`.\r\nThis is just a duplicate of `afterfocus` from `revogr-focus.tsx`."
|
|
2061
|
+
},
|
|
2062
|
+
"complexType": {
|
|
2063
|
+
"original": "FocusAfterRenderEvent",
|
|
2064
|
+
"resolved": "FocusAfterRenderEvent",
|
|
2065
|
+
"references": {
|
|
2066
|
+
"FocusAfterRenderEvent": {
|
|
2067
|
+
"location": "import",
|
|
2068
|
+
"path": "@type",
|
|
2069
|
+
"id": "src/types/index.ts::FocusAfterRenderEvent"
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
}, {
|
|
2074
|
+
"method": "roworderchanged",
|
|
2075
|
+
"name": "roworderchanged",
|
|
2076
|
+
"bubbles": true,
|
|
2077
|
+
"cancelable": true,
|
|
2078
|
+
"composed": true,
|
|
2079
|
+
"docs": {
|
|
2080
|
+
"tags": [],
|
|
2081
|
+
"text": "Before the order of `rgRow` is applied.\r\nTo prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`."
|
|
2082
|
+
},
|
|
2083
|
+
"complexType": {
|
|
2084
|
+
"original": "{ from: number; to: number }",
|
|
2085
|
+
"resolved": "{ from: number; to: number; }",
|
|
2086
|
+
"references": {}
|
|
2087
|
+
}
|
|
2088
|
+
}, {
|
|
2089
|
+
"method": "beforesorting",
|
|
2090
|
+
"name": "beforesorting",
|
|
2091
|
+
"bubbles": true,
|
|
2092
|
+
"cancelable": true,
|
|
2093
|
+
"composed": true,
|
|
2094
|
+
"docs": {
|
|
2095
|
+
"tags": [],
|
|
2096
|
+
"text": "By `SortingPlugin`\r\n<br>Triggered immediately after header click.\r\n<br>First in sorting event sequence. Ff this event stops no other event called.\r\n<br>Use `e.preventDefault()` to prevent sorting."
|
|
2097
|
+
},
|
|
2098
|
+
"complexType": {
|
|
2099
|
+
"original": "{\r\n column: ColumnRegular;\r\n order: 'desc' | 'asc';\r\n additive: boolean;\r\n }",
|
|
2100
|
+
"resolved": "{ column: ColumnRegular; order: \"asc\" | \"desc\"; additive: boolean; }",
|
|
2101
|
+
"references": {
|
|
2102
|
+
"ColumnRegular": {
|
|
2103
|
+
"location": "import",
|
|
2104
|
+
"path": "@type",
|
|
2105
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
}, {
|
|
2110
|
+
"method": "beforesourcesortingapply",
|
|
2111
|
+
"name": "beforesourcesortingapply",
|
|
2112
|
+
"bubbles": true,
|
|
2113
|
+
"cancelable": true,
|
|
2114
|
+
"composed": true,
|
|
2115
|
+
"docs": {
|
|
2116
|
+
"tags": [],
|
|
2117
|
+
"text": "By `SortingPlugin`\r\n<br>Same as `beforesorting` but triggered after `beforeanysource` (when source is changed).\r\n<br>Use `e.preventDefault()` to prevent sorting data change."
|
|
2118
|
+
},
|
|
2119
|
+
"complexType": {
|
|
2120
|
+
"original": "{\r\n type: DimensionRows;\r\n sorting?: SortingOrder;\r\n }",
|
|
2121
|
+
"resolved": "{ type: DimensionRows; sorting?: SortingOrder | undefined; }",
|
|
2122
|
+
"references": {
|
|
2123
|
+
"DimensionRows": {
|
|
2124
|
+
"location": "import",
|
|
2125
|
+
"path": "@type",
|
|
2126
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
2127
|
+
},
|
|
2128
|
+
"SortingOrder": {
|
|
2129
|
+
"location": "import",
|
|
2130
|
+
"path": "../../plugins",
|
|
2131
|
+
"id": "src/plugins/index.ts::SortingOrder"
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
}, {
|
|
2136
|
+
"method": "beforesortingapply",
|
|
2137
|
+
"name": "beforesortingapply",
|
|
2138
|
+
"bubbles": true,
|
|
2139
|
+
"cancelable": true,
|
|
2140
|
+
"composed": true,
|
|
2141
|
+
"docs": {
|
|
2142
|
+
"tags": [],
|
|
2143
|
+
"text": "By `SortingPlugin`\r\n<br> After `beforesorting`\r\n<br>Triggered after column data updated with new sorting order.\r\n<br>Use `e.preventDefault()` to prevent sorting data change."
|
|
2144
|
+
},
|
|
2145
|
+
"complexType": {
|
|
2146
|
+
"original": "{\r\n column: ColumnRegular;\r\n order: 'desc' | 'asc';\r\n additive: boolean;\r\n }",
|
|
2147
|
+
"resolved": "{ column: ColumnRegular; order: \"asc\" | \"desc\"; additive: boolean; }",
|
|
2148
|
+
"references": {
|
|
2149
|
+
"ColumnRegular": {
|
|
2150
|
+
"location": "import",
|
|
2151
|
+
"path": "@type",
|
|
2152
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
}, {
|
|
2157
|
+
"method": "rowdragstart",
|
|
2158
|
+
"name": "rowdragstart",
|
|
2159
|
+
"bubbles": true,
|
|
2160
|
+
"cancelable": true,
|
|
2161
|
+
"composed": true,
|
|
2162
|
+
"docs": {
|
|
2163
|
+
"tags": [],
|
|
2164
|
+
"text": "This event is triggered when the row order change is started.\r\nTo prevent the default behavior of changing the row order, you can call `e.preventDefault()`.\r\nTo change the item name at the start of the row order change, you can set `e.text` to the desired new name."
|
|
2165
|
+
},
|
|
2166
|
+
"complexType": {
|
|
2167
|
+
"original": "RowDragStartDetails",
|
|
2168
|
+
"resolved": "{ cell: Cell; text: string; pos: PositionItem; event: MouseEvent; rowType: DimensionRows; model: any; }",
|
|
2169
|
+
"references": {
|
|
2170
|
+
"RowDragStartDetails": {
|
|
2171
|
+
"location": "import",
|
|
2172
|
+
"path": "@type",
|
|
2173
|
+
"id": "src/types/index.ts::RowDragStartDetails"
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
}, {
|
|
2178
|
+
"method": "headerclick",
|
|
2179
|
+
"name": "headerclick",
|
|
2180
|
+
"bubbles": true,
|
|
2181
|
+
"cancelable": true,
|
|
2182
|
+
"composed": true,
|
|
2183
|
+
"docs": {
|
|
2184
|
+
"tags": [],
|
|
2185
|
+
"text": "On header click."
|
|
2186
|
+
},
|
|
2187
|
+
"complexType": {
|
|
2188
|
+
"original": "ColumnRegular",
|
|
2189
|
+
"resolved": "ColumnRegular",
|
|
2190
|
+
"references": {
|
|
2191
|
+
"ColumnRegular": {
|
|
2192
|
+
"location": "import",
|
|
2193
|
+
"path": "@type",
|
|
2194
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
}, {
|
|
2199
|
+
"method": "beforecellfocus",
|
|
2200
|
+
"name": "beforecellfocus",
|
|
2201
|
+
"bubbles": true,
|
|
2202
|
+
"cancelable": true,
|
|
2203
|
+
"composed": true,
|
|
2204
|
+
"docs": {
|
|
2205
|
+
"tags": [],
|
|
2206
|
+
"text": "Before the cell focus is changed.\r\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`."
|
|
2207
|
+
},
|
|
2208
|
+
"complexType": {
|
|
2209
|
+
"original": "BeforeSaveDataDetails",
|
|
2210
|
+
"resolved": "BeforeSaveDataDetails",
|
|
2211
|
+
"references": {
|
|
2212
|
+
"BeforeSaveDataDetails": {
|
|
2213
|
+
"location": "import",
|
|
2214
|
+
"path": "@type",
|
|
2215
|
+
"id": "src/types/index.ts::BeforeSaveDataDetails"
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
}, {
|
|
2220
|
+
"method": "beforefocuslost",
|
|
2221
|
+
"name": "beforefocuslost",
|
|
2222
|
+
"bubbles": true,
|
|
2223
|
+
"cancelable": true,
|
|
2224
|
+
"composed": true,
|
|
2225
|
+
"docs": {
|
|
2226
|
+
"tags": [],
|
|
2227
|
+
"text": "Before the grid focus is lost.\r\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`."
|
|
2228
|
+
},
|
|
2229
|
+
"complexType": {
|
|
2230
|
+
"original": "FocusedData | null",
|
|
2231
|
+
"resolved": "null | { model: any; cell: Cell; colType: DimensionCols; rowType: DimensionRows; column?: ColumnRegular | undefined; }",
|
|
2232
|
+
"references": {
|
|
2233
|
+
"FocusedData": {
|
|
2234
|
+
"location": "import",
|
|
2235
|
+
"path": "./viewport.service",
|
|
2236
|
+
"id": "src/components/revoGrid/viewport.service.ts::FocusedData"
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}, {
|
|
2241
|
+
"method": "beforesourceset",
|
|
2242
|
+
"name": "beforesourceset",
|
|
2243
|
+
"bubbles": true,
|
|
2244
|
+
"cancelable": true,
|
|
2245
|
+
"composed": true,
|
|
2246
|
+
"docs": {
|
|
2247
|
+
"tags": [],
|
|
2248
|
+
"text": "Before main source/rows data apply.\r\nYou can override data source here"
|
|
2249
|
+
},
|
|
2250
|
+
"complexType": {
|
|
2251
|
+
"original": "{\r\n type: DimensionRows;\r\n source: DataType[];\r\n }",
|
|
2252
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
2253
|
+
"references": {
|
|
2254
|
+
"DimensionRows": {
|
|
2255
|
+
"location": "import",
|
|
2256
|
+
"path": "@type",
|
|
2257
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
2258
|
+
},
|
|
2259
|
+
"DataType": {
|
|
2260
|
+
"location": "import",
|
|
2261
|
+
"path": "@type",
|
|
2262
|
+
"id": "src/types/index.ts::DataType"
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
}, {
|
|
2267
|
+
"method": "beforeanysource",
|
|
2268
|
+
"name": "beforeanysource",
|
|
2269
|
+
"bubbles": true,
|
|
2270
|
+
"cancelable": true,
|
|
2271
|
+
"composed": true,
|
|
2272
|
+
"docs": {
|
|
2273
|
+
"tags": [],
|
|
2274
|
+
"text": "Before data apply on any source type. Can be source from pinned and main viewport.\r\nYou can override data source here"
|
|
2275
|
+
},
|
|
2276
|
+
"complexType": {
|
|
2277
|
+
"original": "{\r\n type: DimensionRows;\r\n source: DataType[];\r\n }",
|
|
2278
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
2279
|
+
"references": {
|
|
2280
|
+
"DimensionRows": {
|
|
2281
|
+
"location": "import",
|
|
2282
|
+
"path": "@type",
|
|
2283
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
2284
|
+
},
|
|
2285
|
+
"DataType": {
|
|
2286
|
+
"location": "import",
|
|
2287
|
+
"path": "@type",
|
|
2288
|
+
"id": "src/types/index.ts::DataType"
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
}, {
|
|
2293
|
+
"method": "aftersourceset",
|
|
2294
|
+
"name": "aftersourceset",
|
|
2295
|
+
"bubbles": true,
|
|
2296
|
+
"cancelable": true,
|
|
2297
|
+
"composed": true,
|
|
2298
|
+
"docs": {
|
|
2299
|
+
"tags": [],
|
|
2300
|
+
"text": "After main source/rows updated"
|
|
2301
|
+
},
|
|
2302
|
+
"complexType": {
|
|
2303
|
+
"original": "{\r\n type: DimensionRows;\r\n source: DataType[];\r\n }",
|
|
2304
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
2305
|
+
"references": {
|
|
2306
|
+
"DimensionRows": {
|
|
2307
|
+
"location": "import",
|
|
2308
|
+
"path": "@type",
|
|
2309
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
2310
|
+
},
|
|
2311
|
+
"DataType": {
|
|
2312
|
+
"location": "import",
|
|
2313
|
+
"path": "@type",
|
|
2314
|
+
"id": "src/types/index.ts::DataType"
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
}, {
|
|
2319
|
+
"method": "afteranysource",
|
|
2320
|
+
"name": "afteranysource",
|
|
2321
|
+
"bubbles": true,
|
|
2322
|
+
"cancelable": true,
|
|
2323
|
+
"composed": true,
|
|
2324
|
+
"docs": {
|
|
2325
|
+
"tags": [],
|
|
2326
|
+
"text": "Emitted after each source update, whether from the pinned or main viewport.\r\nUseful for tracking all changes originating from sources in both the pinned and main viewports."
|
|
2327
|
+
},
|
|
2328
|
+
"complexType": {
|
|
2329
|
+
"original": "{\r\n type: DimensionRows;\r\n source: DataType[];\r\n }",
|
|
2330
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
2331
|
+
"references": {
|
|
2332
|
+
"DimensionRows": {
|
|
2333
|
+
"location": "import",
|
|
2334
|
+
"path": "@type",
|
|
2335
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
2336
|
+
},
|
|
2337
|
+
"DataType": {
|
|
2338
|
+
"location": "import",
|
|
2339
|
+
"path": "@type",
|
|
2340
|
+
"id": "src/types/index.ts::DataType"
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
}, {
|
|
2345
|
+
"method": "beforecolumnsset",
|
|
2346
|
+
"name": "beforecolumnsset",
|
|
2347
|
+
"bubbles": true,
|
|
2348
|
+
"cancelable": true,
|
|
2349
|
+
"composed": true,
|
|
2350
|
+
"docs": {
|
|
2351
|
+
"tags": [],
|
|
2352
|
+
"text": "Emitted before a column update is applied.\r\nListeners can use this event to perform any necessary actions or modifications before the column update is finalized."
|
|
2353
|
+
},
|
|
2354
|
+
"complexType": {
|
|
2355
|
+
"original": "ColumnCollection",
|
|
2356
|
+
"resolved": "{ columns: Record<DimensionCols, ColumnRegular[]>; columnByProp: Record<ColumnProp, ColumnRegular[]>; columnGrouping: ColumnGroupingCollection; maxLevel: number; sort: Record<ColumnProp, ColumnRegular>; }",
|
|
2357
|
+
"references": {
|
|
2358
|
+
"ColumnCollection": {
|
|
2359
|
+
"location": "import",
|
|
2360
|
+
"path": "../../utils/column.utils",
|
|
2361
|
+
"id": "src/utils/column.utils.ts::ColumnCollection"
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
}, {
|
|
2366
|
+
"method": "beforecolumnapplied",
|
|
2367
|
+
"name": "beforecolumnapplied",
|
|
2368
|
+
"bubbles": true,
|
|
2369
|
+
"cancelable": true,
|
|
2370
|
+
"composed": true,
|
|
2371
|
+
"docs": {
|
|
2372
|
+
"tags": [],
|
|
2373
|
+
"text": "Emitted before a column update is applied, after the column set is gathered and the viewport is updated.\r\nUseful for performing actions or modifications before the final application of the column update."
|
|
2374
|
+
},
|
|
2375
|
+
"complexType": {
|
|
2376
|
+
"original": "ColumnCollection",
|
|
2377
|
+
"resolved": "{ columns: Record<DimensionCols, ColumnRegular[]>; columnByProp: Record<ColumnProp, ColumnRegular[]>; columnGrouping: ColumnGroupingCollection; maxLevel: number; sort: Record<ColumnProp, ColumnRegular>; }",
|
|
2378
|
+
"references": {
|
|
2379
|
+
"ColumnCollection": {
|
|
2380
|
+
"location": "import",
|
|
2381
|
+
"path": "../../utils/column.utils",
|
|
2382
|
+
"id": "src/utils/column.utils.ts::ColumnCollection"
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
}, {
|
|
2387
|
+
"method": "aftercolumnsset",
|
|
2388
|
+
"name": "aftercolumnsset",
|
|
2389
|
+
"bubbles": true,
|
|
2390
|
+
"cancelable": true,
|
|
2391
|
+
"composed": true,
|
|
2392
|
+
"docs": {
|
|
2393
|
+
"tags": [],
|
|
2394
|
+
"text": "Column updated"
|
|
2395
|
+
},
|
|
2396
|
+
"complexType": {
|
|
2397
|
+
"original": "{\r\n columns: ColumnCollection;\r\n order: SortingOrder;\r\n }",
|
|
2398
|
+
"resolved": "{ columns: ColumnCollection; order: SortingOrder; }",
|
|
2399
|
+
"references": {
|
|
2400
|
+
"ColumnCollection": {
|
|
2401
|
+
"location": "import",
|
|
2402
|
+
"path": "../../utils/column.utils",
|
|
2403
|
+
"id": "src/utils/column.utils.ts::ColumnCollection"
|
|
2404
|
+
},
|
|
2405
|
+
"SortingOrder": {
|
|
2406
|
+
"location": "import",
|
|
2407
|
+
"path": "../../plugins",
|
|
2408
|
+
"id": "src/plugins/index.ts::SortingOrder"
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
}, {
|
|
2413
|
+
"method": "beforefilterapply",
|
|
2414
|
+
"name": "beforefilterapply",
|
|
2415
|
+
"bubbles": true,
|
|
2416
|
+
"cancelable": true,
|
|
2417
|
+
"composed": true,
|
|
2418
|
+
"docs": {
|
|
2419
|
+
"tags": [],
|
|
2420
|
+
"text": "Emitted before applying a filter to the data source.\r\nUse e.preventDefault() to prevent cell focus change.\r\nModify if you need to change filters."
|
|
2421
|
+
},
|
|
2422
|
+
"complexType": {
|
|
2423
|
+
"original": "{\r\n collection: Record<ColumnProp, FilterCollectionItem>;\r\n }",
|
|
2424
|
+
"resolved": "{ collection: Record<ColumnProp, FilterCollectionItem>; }",
|
|
2425
|
+
"references": {
|
|
2426
|
+
"Record": {
|
|
2427
|
+
"location": "global",
|
|
2428
|
+
"id": "global::Record"
|
|
2429
|
+
},
|
|
2430
|
+
"ColumnProp": {
|
|
2431
|
+
"location": "import",
|
|
2432
|
+
"path": "@type",
|
|
2433
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
2434
|
+
},
|
|
2435
|
+
"FilterCollectionItem": {
|
|
2436
|
+
"location": "import",
|
|
2437
|
+
"path": "../../plugins/filter/filter.types",
|
|
2438
|
+
"id": "src/plugins/filter/filter.types.ts::FilterCollectionItem"
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
}, {
|
|
2443
|
+
"method": "beforefiltertrimmed",
|
|
2444
|
+
"name": "beforefiltertrimmed",
|
|
2445
|
+
"bubbles": true,
|
|
2446
|
+
"cancelable": true,
|
|
2447
|
+
"composed": true,
|
|
2448
|
+
"docs": {
|
|
2449
|
+
"tags": [],
|
|
2450
|
+
"text": "Emitted before applying a filter to the data source.\r\nUse e.preventDefault() to prevent the default behavior of trimming values and applying the filter.\r\nModify the `collection` property if you want to change the filters.\r\nModify the `itemsToFilter` property if you want to filter the indexes for trimming."
|
|
2451
|
+
},
|
|
2452
|
+
"complexType": {
|
|
2453
|
+
"original": "{\r\n collection: Record<ColumnProp, FilterCollectionItem>;\r\n itemsToFilter: Record<number, boolean>;\r\n }",
|
|
2454
|
+
"resolved": "{ collection: Record<ColumnProp, FilterCollectionItem>; itemsToFilter: Record<number, boolean>; }",
|
|
2455
|
+
"references": {
|
|
2456
|
+
"Record": {
|
|
2457
|
+
"location": "global",
|
|
2458
|
+
"id": "global::Record"
|
|
2459
|
+
},
|
|
2460
|
+
"ColumnProp": {
|
|
2461
|
+
"location": "import",
|
|
2462
|
+
"path": "@type",
|
|
2463
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
2464
|
+
},
|
|
2465
|
+
"FilterCollectionItem": {
|
|
2466
|
+
"location": "import",
|
|
2467
|
+
"path": "../../plugins/filter/filter.types",
|
|
2468
|
+
"id": "src/plugins/filter/filter.types.ts::FilterCollectionItem"
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
}, {
|
|
2473
|
+
"method": "beforetrimmed",
|
|
2474
|
+
"name": "beforetrimmed",
|
|
2475
|
+
"bubbles": true,
|
|
2476
|
+
"cancelable": true,
|
|
2477
|
+
"composed": true,
|
|
2478
|
+
"docs": {
|
|
2479
|
+
"tags": [],
|
|
2480
|
+
"text": "Emitted before trimming values.\r\nUse e.preventDefault() to prevent the default behavior of trimming values.\r\nModify the `trimmed` property if you want to filter the indexes for trimming."
|
|
2481
|
+
},
|
|
2482
|
+
"complexType": {
|
|
2483
|
+
"original": "{\r\n trimmed: Record<number, boolean>;\r\n trimmedType: string;\r\n type: string;\r\n }",
|
|
2484
|
+
"resolved": "{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }",
|
|
2485
|
+
"references": {
|
|
2486
|
+
"Record": {
|
|
2487
|
+
"location": "global",
|
|
2488
|
+
"id": "global::Record"
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
}, {
|
|
2493
|
+
"method": "aftertrimmed",
|
|
2494
|
+
"name": "aftertrimmed",
|
|
2495
|
+
"bubbles": true,
|
|
2496
|
+
"cancelable": true,
|
|
2497
|
+
"composed": true,
|
|
2498
|
+
"docs": {
|
|
2499
|
+
"tags": [],
|
|
2500
|
+
"text": "Emitted after trimmed values have been applied.\r\nUseful for notifying when trimming of values has taken place."
|
|
2501
|
+
},
|
|
2502
|
+
"complexType": {
|
|
2503
|
+
"original": "any",
|
|
2504
|
+
"resolved": "any",
|
|
2505
|
+
"references": {}
|
|
2506
|
+
}
|
|
2507
|
+
}, {
|
|
2508
|
+
"method": "viewportscroll",
|
|
2509
|
+
"name": "viewportscroll",
|
|
2510
|
+
"bubbles": true,
|
|
2511
|
+
"cancelable": true,
|
|
2512
|
+
"composed": true,
|
|
2513
|
+
"docs": {
|
|
2514
|
+
"tags": [],
|
|
2515
|
+
"text": "Emitted when the viewport is scrolled.\r\nUseful for tracking viewport scrolling events."
|
|
2516
|
+
},
|
|
2517
|
+
"complexType": {
|
|
2518
|
+
"original": "ViewPortScrollEvent",
|
|
2519
|
+
"resolved": "{ dimension: DimensionType; coordinate: number; viewportRows?: VirtualPositionItem[] | undefined; delta?: number | undefined; outside?: boolean | undefined; }",
|
|
2520
|
+
"references": {
|
|
2521
|
+
"ViewPortScrollEvent": {
|
|
2522
|
+
"location": "import",
|
|
2523
|
+
"path": "@type",
|
|
2524
|
+
"id": "src/types/index.ts::ViewPortScrollEvent"
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
}, {
|
|
2529
|
+
"method": "beforeexport",
|
|
2530
|
+
"name": "beforeexport",
|
|
2531
|
+
"bubbles": true,
|
|
2532
|
+
"cancelable": true,
|
|
2533
|
+
"composed": true,
|
|
2534
|
+
"docs": {
|
|
2535
|
+
"tags": [],
|
|
2536
|
+
"text": "Before export\r\nUse e.preventDefault() to prevent export\r\nReplace data in Event in case you want to modify it in export"
|
|
2537
|
+
},
|
|
2538
|
+
"complexType": {
|
|
2539
|
+
"original": "DataInput",
|
|
2540
|
+
"resolved": "{ data: DataType[]; } & ColSource",
|
|
2541
|
+
"references": {
|
|
2542
|
+
"DataInput": {
|
|
2543
|
+
"location": "import",
|
|
2544
|
+
"path": "../../plugins/export/types",
|
|
2545
|
+
"id": "src/plugins/export/types.ts::DataInput"
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
}, {
|
|
2550
|
+
"method": "beforeeditstart",
|
|
2551
|
+
"name": "beforeeditstart",
|
|
2552
|
+
"bubbles": true,
|
|
2553
|
+
"cancelable": true,
|
|
2554
|
+
"composed": true,
|
|
2555
|
+
"docs": {
|
|
2556
|
+
"tags": [],
|
|
2557
|
+
"text": "Emitted before editing starts.\r\nUse e.preventDefault() to prevent the default edit behavior."
|
|
2558
|
+
},
|
|
2559
|
+
"complexType": {
|
|
2560
|
+
"original": "BeforeSaveDataDetails",
|
|
2561
|
+
"resolved": "BeforeSaveDataDetails",
|
|
2562
|
+
"references": {
|
|
2563
|
+
"BeforeSaveDataDetails": {
|
|
2564
|
+
"location": "import",
|
|
2565
|
+
"path": "@type",
|
|
2566
|
+
"id": "src/types/index.ts::BeforeSaveDataDetails"
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
}, {
|
|
2571
|
+
"method": "afterrollback",
|
|
2572
|
+
"name": "afterrollback",
|
|
2573
|
+
"bubbles": true,
|
|
2574
|
+
"cancelable": true,
|
|
2575
|
+
"composed": true,
|
|
2576
|
+
"docs": {
|
|
2577
|
+
"tags": [],
|
|
2578
|
+
"text": "Emitted after pressed ctrl + z."
|
|
2579
|
+
},
|
|
2580
|
+
"complexType": {
|
|
2581
|
+
"original": "void",
|
|
2582
|
+
"resolved": "void",
|
|
2583
|
+
"references": {}
|
|
2584
|
+
}
|
|
2585
|
+
}, {
|
|
2586
|
+
"method": "aftermouseup",
|
|
2587
|
+
"name": "aftermouseup",
|
|
2588
|
+
"bubbles": true,
|
|
2589
|
+
"cancelable": true,
|
|
2590
|
+
"composed": true,
|
|
2591
|
+
"docs": {
|
|
2592
|
+
"tags": [],
|
|
2593
|
+
"text": "Emitted after mouse up."
|
|
2594
|
+
},
|
|
2595
|
+
"complexType": {
|
|
2596
|
+
"original": "{\r\n eventData: MouseEvent | TouchEvent;\r\n isRightClick?: boolean;\r\n }",
|
|
2597
|
+
"resolved": "{ eventData: MouseEvent | TouchEvent; isRightClick?: boolean | undefined; }",
|
|
2598
|
+
"references": {
|
|
2599
|
+
"MouseEvent": {
|
|
2600
|
+
"location": "global",
|
|
2601
|
+
"id": "global::MouseEvent"
|
|
2602
|
+
},
|
|
2603
|
+
"TouchEvent": {
|
|
2604
|
+
"location": "global",
|
|
2605
|
+
"id": "global::TouchEvent"
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
}, {
|
|
2610
|
+
"method": "aftercolumnresize",
|
|
2611
|
+
"name": "aftercolumnresize",
|
|
2612
|
+
"bubbles": true,
|
|
2613
|
+
"cancelable": true,
|
|
2614
|
+
"composed": true,
|
|
2615
|
+
"docs": {
|
|
2616
|
+
"tags": [],
|
|
2617
|
+
"text": "Emitted after column resizing.\r\nUseful for retrieving the resized columns."
|
|
2618
|
+
},
|
|
2619
|
+
"complexType": {
|
|
2620
|
+
"original": "{\r\n [index: number]: ColumnRegular;\r\n }",
|
|
2621
|
+
"resolved": "{ [index: number]: ColumnRegular; }",
|
|
2622
|
+
"references": {
|
|
2623
|
+
"ColumnRegular": {
|
|
2624
|
+
"location": "import",
|
|
2625
|
+
"path": "@type",
|
|
2626
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}, {
|
|
2631
|
+
"method": "beforerowdefinition",
|
|
2632
|
+
"name": "beforerowdefinition",
|
|
2633
|
+
"bubbles": true,
|
|
2634
|
+
"cancelable": true,
|
|
2635
|
+
"composed": true,
|
|
2636
|
+
"docs": {
|
|
2637
|
+
"tags": [],
|
|
2638
|
+
"text": "Emitted before the row definition is applied.\r\nUseful for modifying or preventing the default row definition behavior."
|
|
2639
|
+
},
|
|
2640
|
+
"complexType": {
|
|
2641
|
+
"original": "{ vals: any; oldVals: any }",
|
|
2642
|
+
"resolved": "{ vals: any; oldVals: any; }",
|
|
2643
|
+
"references": {}
|
|
2644
|
+
}
|
|
2645
|
+
}, {
|
|
2646
|
+
"method": "filterconfigchanged",
|
|
2647
|
+
"name": "filterconfigchanged",
|
|
2648
|
+
"bubbles": true,
|
|
2649
|
+
"cancelable": true,
|
|
2650
|
+
"composed": true,
|
|
2651
|
+
"docs": {
|
|
2652
|
+
"tags": [],
|
|
2653
|
+
"text": "Emitted when the filter configuration is changed"
|
|
2654
|
+
},
|
|
2655
|
+
"complexType": {
|
|
2656
|
+
"original": "any",
|
|
2657
|
+
"resolved": "any",
|
|
2658
|
+
"references": {}
|
|
2659
|
+
}
|
|
2660
|
+
}, {
|
|
2661
|
+
"method": "sortingconfigchanged",
|
|
2662
|
+
"name": "sortingconfigchanged",
|
|
2663
|
+
"bubbles": true,
|
|
2664
|
+
"cancelable": true,
|
|
2665
|
+
"composed": true,
|
|
2666
|
+
"docs": {
|
|
2667
|
+
"tags": [],
|
|
2668
|
+
"text": "Emitted when the sorting configuration is changed\r\nSortingPlugin subsribed to this event"
|
|
2669
|
+
},
|
|
2670
|
+
"complexType": {
|
|
2671
|
+
"original": "SortingConfig",
|
|
2672
|
+
"resolved": "{ columns?: { prop: ColumnProp; order: Order; cellCompare?: CellCompareFunc | undefined; }[] | undefined; additive?: boolean | undefined; }",
|
|
2673
|
+
"references": {
|
|
2674
|
+
"SortingConfig": {
|
|
2675
|
+
"location": "import",
|
|
2676
|
+
"path": "../../plugins",
|
|
2677
|
+
"id": "src/plugins/index.ts::SortingConfig"
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
}, {
|
|
2682
|
+
"method": "rowheaderschanged",
|
|
2683
|
+
"name": "rowheaderschanged",
|
|
2684
|
+
"bubbles": true,
|
|
2685
|
+
"cancelable": true,
|
|
2686
|
+
"composed": true,
|
|
2687
|
+
"docs": {
|
|
2688
|
+
"tags": [],
|
|
2689
|
+
"text": "Emmited when the row headers are changed."
|
|
2690
|
+
},
|
|
2691
|
+
"complexType": {
|
|
2692
|
+
"original": "any",
|
|
2693
|
+
"resolved": "any",
|
|
2694
|
+
"references": {}
|
|
2695
|
+
}
|
|
2696
|
+
}, {
|
|
2697
|
+
"method": "beforegridrender",
|
|
2698
|
+
"name": "beforegridrender",
|
|
2699
|
+
"bubbles": true,
|
|
2700
|
+
"cancelable": true,
|
|
2701
|
+
"composed": true,
|
|
2702
|
+
"docs": {
|
|
2703
|
+
"tags": [],
|
|
2704
|
+
"text": "Emmited before the grid is rendered."
|
|
2705
|
+
},
|
|
2706
|
+
"complexType": {
|
|
2707
|
+
"original": "any",
|
|
2708
|
+
"resolved": "any",
|
|
2709
|
+
"references": {}
|
|
2710
|
+
}
|
|
2711
|
+
}, {
|
|
2712
|
+
"method": "aftergridrender",
|
|
2713
|
+
"name": "aftergridrender",
|
|
2714
|
+
"bubbles": true,
|
|
2715
|
+
"cancelable": true,
|
|
2716
|
+
"composed": true,
|
|
2717
|
+
"docs": {
|
|
2718
|
+
"tags": [],
|
|
2719
|
+
"text": "Emmited after the grid is rendered."
|
|
2720
|
+
},
|
|
2721
|
+
"complexType": {
|
|
2722
|
+
"original": "any",
|
|
2723
|
+
"resolved": "any",
|
|
2724
|
+
"references": {}
|
|
2725
|
+
}
|
|
2726
|
+
}, {
|
|
2727
|
+
"method": "aftergridinit",
|
|
2728
|
+
"name": "aftergridinit",
|
|
2729
|
+
"bubbles": true,
|
|
2730
|
+
"cancelable": true,
|
|
2731
|
+
"composed": true,
|
|
2732
|
+
"docs": {
|
|
2733
|
+
"tags": [],
|
|
2734
|
+
"text": "Emmited after the grid is initialized. Connected to the DOM."
|
|
2735
|
+
},
|
|
2736
|
+
"complexType": {
|
|
2737
|
+
"original": "any",
|
|
2738
|
+
"resolved": "any",
|
|
2739
|
+
"references": {}
|
|
2740
|
+
}
|
|
2741
|
+
}, {
|
|
2742
|
+
"method": "beforecolumndrag",
|
|
2743
|
+
"name": "beforecolumndrag",
|
|
2744
|
+
"bubbles": true,
|
|
2745
|
+
"cancelable": true,
|
|
2746
|
+
"composed": true,
|
|
2747
|
+
"docs": {
|
|
2748
|
+
"tags": [],
|
|
2749
|
+
"text": "Emmited before change column position."
|
|
2750
|
+
},
|
|
2751
|
+
"complexType": {
|
|
2752
|
+
"original": "any",
|
|
2753
|
+
"resolved": "any",
|
|
2754
|
+
"references": {}
|
|
2755
|
+
}
|
|
2756
|
+
}, {
|
|
2757
|
+
"method": "additionaldatachanged",
|
|
2758
|
+
"name": "additionaldatachanged",
|
|
2759
|
+
"bubbles": true,
|
|
2760
|
+
"cancelable": true,
|
|
2761
|
+
"composed": true,
|
|
2762
|
+
"docs": {
|
|
2763
|
+
"tags": [],
|
|
2764
|
+
"text": "Emmited after the additional data is changed"
|
|
2765
|
+
},
|
|
2766
|
+
"complexType": {
|
|
2767
|
+
"original": "any",
|
|
2768
|
+
"resolved": "any",
|
|
2769
|
+
"references": {}
|
|
2770
|
+
}
|
|
2771
|
+
}, {
|
|
2772
|
+
"method": "afterthemechanged",
|
|
2773
|
+
"name": "afterthemechanged",
|
|
2774
|
+
"bubbles": true,
|
|
2775
|
+
"cancelable": true,
|
|
2776
|
+
"composed": true,
|
|
2777
|
+
"docs": {
|
|
2778
|
+
"tags": [],
|
|
2779
|
+
"text": "Emmited after the theme is changed"
|
|
2780
|
+
},
|
|
2781
|
+
"complexType": {
|
|
2782
|
+
"original": "Theme",
|
|
2783
|
+
"resolved": "string",
|
|
2784
|
+
"references": {
|
|
2785
|
+
"Theme": {
|
|
2786
|
+
"location": "import",
|
|
2787
|
+
"path": "@type",
|
|
2788
|
+
"id": "src/types/index.ts::Theme"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
}, {
|
|
2793
|
+
"method": "created",
|
|
2794
|
+
"name": "created",
|
|
2795
|
+
"bubbles": true,
|
|
2796
|
+
"cancelable": true,
|
|
2797
|
+
"composed": true,
|
|
2798
|
+
"docs": {
|
|
2799
|
+
"tags": [],
|
|
2800
|
+
"text": "Emmited after grid created"
|
|
2801
|
+
},
|
|
2802
|
+
"complexType": {
|
|
2803
|
+
"original": "any",
|
|
2804
|
+
"resolved": "any",
|
|
2805
|
+
"references": {}
|
|
2806
|
+
}
|
|
2807
|
+
}];
|
|
2808
|
+
}
|
|
2809
|
+
static get methods() {
|
|
2810
|
+
return {
|
|
2811
|
+
"refresh": {
|
|
2812
|
+
"complexType": {
|
|
2813
|
+
"signature": "(type?: DimensionRows | \"all\") => Promise<void>",
|
|
2814
|
+
"parameters": [{
|
|
2815
|
+
"name": "type",
|
|
2816
|
+
"type": "DimensionRows | \"all\"",
|
|
2817
|
+
"docs": ""
|
|
2818
|
+
}],
|
|
2819
|
+
"references": {
|
|
2820
|
+
"Promise": {
|
|
2821
|
+
"location": "global",
|
|
2822
|
+
"id": "global::Promise"
|
|
2823
|
+
},
|
|
2824
|
+
"DimensionRows": {
|
|
2825
|
+
"location": "import",
|
|
2826
|
+
"path": "@type",
|
|
2827
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
"return": "Promise<void>"
|
|
2831
|
+
},
|
|
2832
|
+
"docs": {
|
|
2833
|
+
"text": "Refreshes data viewport.\r\nCan be specific part as rgRow or pinned rgRow or 'all' by default.",
|
|
2834
|
+
"tags": []
|
|
2835
|
+
}
|
|
2836
|
+
},
|
|
2837
|
+
"setDataAt": {
|
|
2838
|
+
"complexType": {
|
|
2839
|
+
"signature": "({ row, col, colType, rowType, val, skipDataUpdate, }: { row: number; col: number; val?: any; skipDataUpdate?: boolean; } & AllDimensionType) => Promise<void | undefined>",
|
|
2840
|
+
"parameters": [{
|
|
2841
|
+
"name": "__0",
|
|
2842
|
+
"type": "{ row: number; col: number; val?: any; skipDataUpdate?: boolean | undefined; } & AllDimensionType",
|
|
2843
|
+
"docs": ""
|
|
2844
|
+
}],
|
|
2845
|
+
"references": {
|
|
2846
|
+
"Promise": {
|
|
2847
|
+
"location": "global",
|
|
2848
|
+
"id": "global::Promise"
|
|
2849
|
+
},
|
|
2850
|
+
"AllDimensionType": {
|
|
2851
|
+
"location": "import",
|
|
2852
|
+
"path": "@type",
|
|
2853
|
+
"id": "src/types/index.ts::AllDimensionType"
|
|
2854
|
+
},
|
|
2855
|
+
"HTMLRevogrDataElement": {
|
|
2856
|
+
"location": "global",
|
|
2857
|
+
"id": "global::HTMLRevogrDataElement"
|
|
2858
|
+
}
|
|
2859
|
+
},
|
|
2860
|
+
"return": "Promise<void | undefined>"
|
|
2861
|
+
},
|
|
2862
|
+
"docs": {
|
|
2863
|
+
"text": "Refreshes data at specified cell.\r\nUseful for performance optimization.\r\nNo viewport update will be triggered.",
|
|
2864
|
+
"tags": [{
|
|
2865
|
+
"name": "example",
|
|
2866
|
+
"text": "const grid = document.querySelector('revo-grid');\r\ngrid.setDataAt({ row: 0, col: 0, val: 'test' }); // refresh"
|
|
2867
|
+
}]
|
|
2868
|
+
}
|
|
2869
|
+
},
|
|
2870
|
+
"scrollToRow": {
|
|
2871
|
+
"complexType": {
|
|
2872
|
+
"signature": "(coordinate?: number) => Promise<void>",
|
|
2873
|
+
"parameters": [{
|
|
2874
|
+
"name": "coordinate",
|
|
2875
|
+
"type": "number",
|
|
2876
|
+
"docs": ""
|
|
2877
|
+
}],
|
|
2878
|
+
"references": {
|
|
2879
|
+
"Promise": {
|
|
2880
|
+
"location": "global",
|
|
2881
|
+
"id": "global::Promise"
|
|
2882
|
+
}
|
|
2883
|
+
},
|
|
2884
|
+
"return": "Promise<void>"
|
|
2885
|
+
},
|
|
2886
|
+
"docs": {
|
|
2887
|
+
"text": "Scrolls viewport to specified row by index.",
|
|
2888
|
+
"tags": []
|
|
2889
|
+
}
|
|
2890
|
+
},
|
|
2891
|
+
"scrollToColumnIndex": {
|
|
2892
|
+
"complexType": {
|
|
2893
|
+
"signature": "(coordinate?: number) => Promise<void>",
|
|
2894
|
+
"parameters": [{
|
|
2895
|
+
"name": "coordinate",
|
|
2896
|
+
"type": "number",
|
|
2897
|
+
"docs": ""
|
|
2898
|
+
}],
|
|
2899
|
+
"references": {
|
|
2900
|
+
"Promise": {
|
|
2901
|
+
"location": "global",
|
|
2902
|
+
"id": "global::Promise"
|
|
2903
|
+
}
|
|
2904
|
+
},
|
|
2905
|
+
"return": "Promise<void>"
|
|
2906
|
+
},
|
|
2907
|
+
"docs": {
|
|
2908
|
+
"text": "Scrolls viewport to specified column by index.",
|
|
2909
|
+
"tags": []
|
|
2910
|
+
}
|
|
2911
|
+
},
|
|
2912
|
+
"scrollToColumnProp": {
|
|
2913
|
+
"complexType": {
|
|
2914
|
+
"signature": "(prop: ColumnProp, dimension?: DimensionTypeCol) => Promise<void>",
|
|
2915
|
+
"parameters": [{
|
|
2916
|
+
"name": "prop",
|
|
2917
|
+
"type": "string | number",
|
|
2918
|
+
"docs": ""
|
|
2919
|
+
}, {
|
|
2920
|
+
"name": "dimension",
|
|
2921
|
+
"type": "\"rgCol\"",
|
|
2922
|
+
"docs": ""
|
|
2923
|
+
}],
|
|
2924
|
+
"references": {
|
|
2925
|
+
"Promise": {
|
|
2926
|
+
"location": "global",
|
|
2927
|
+
"id": "global::Promise"
|
|
2928
|
+
},
|
|
2929
|
+
"ColumnProp": {
|
|
2930
|
+
"location": "import",
|
|
2931
|
+
"path": "@type",
|
|
2932
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
2933
|
+
},
|
|
2934
|
+
"DimensionTypeCol": {
|
|
2935
|
+
"location": "import",
|
|
2936
|
+
"path": "@type",
|
|
2937
|
+
"id": "src/types/index.ts::DimensionTypeCol"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
"return": "Promise<void>"
|
|
2941
|
+
},
|
|
2942
|
+
"docs": {
|
|
2943
|
+
"text": "Scrolls viewport to specified column by prop",
|
|
2944
|
+
"tags": []
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
"updateColumns": {
|
|
2948
|
+
"complexType": {
|
|
2949
|
+
"signature": "(cols: ColumnRegular[]) => Promise<void>",
|
|
2950
|
+
"parameters": [{
|
|
2951
|
+
"name": "cols",
|
|
2952
|
+
"type": "ColumnRegular[]",
|
|
2953
|
+
"docs": ""
|
|
2954
|
+
}],
|
|
2955
|
+
"references": {
|
|
2956
|
+
"Promise": {
|
|
2957
|
+
"location": "global",
|
|
2958
|
+
"id": "global::Promise"
|
|
2959
|
+
},
|
|
2960
|
+
"ColumnRegular": {
|
|
2961
|
+
"location": "import",
|
|
2962
|
+
"path": "@type",
|
|
2963
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
"return": "Promise<void>"
|
|
2967
|
+
},
|
|
2968
|
+
"docs": {
|
|
2969
|
+
"text": "Update columns",
|
|
2970
|
+
"tags": []
|
|
2971
|
+
}
|
|
2972
|
+
},
|
|
2973
|
+
"addTrimmed": {
|
|
2974
|
+
"complexType": {
|
|
2975
|
+
"signature": "(trimmed: Record<number, boolean>, trimmedType?: string, type?: DimensionRows) => Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>",
|
|
2976
|
+
"parameters": [{
|
|
2977
|
+
"name": "trimmed",
|
|
2978
|
+
"type": "{ [x: number]: boolean; }",
|
|
2979
|
+
"docs": ""
|
|
2980
|
+
}, {
|
|
2981
|
+
"name": "trimmedType",
|
|
2982
|
+
"type": "string",
|
|
2983
|
+
"docs": ""
|
|
2984
|
+
}, {
|
|
2985
|
+
"name": "type",
|
|
2986
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
2987
|
+
"docs": ""
|
|
2988
|
+
}],
|
|
2989
|
+
"references": {
|
|
2990
|
+
"Promise": {
|
|
2991
|
+
"location": "global",
|
|
2992
|
+
"id": "global::Promise"
|
|
2993
|
+
},
|
|
2994
|
+
"CustomEvent": {
|
|
2995
|
+
"location": "global",
|
|
2996
|
+
"id": "global::CustomEvent"
|
|
2997
|
+
},
|
|
2998
|
+
"Record": {
|
|
2999
|
+
"location": "global",
|
|
3000
|
+
"id": "global::Record"
|
|
3001
|
+
},
|
|
3002
|
+
"DimensionRows": {
|
|
3003
|
+
"location": "import",
|
|
3004
|
+
"path": "@type",
|
|
3005
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
"return": "Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>"
|
|
3009
|
+
},
|
|
3010
|
+
"docs": {
|
|
3011
|
+
"text": "Add trimmed by type",
|
|
3012
|
+
"tags": []
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
"scrollToCoordinate": {
|
|
3016
|
+
"complexType": {
|
|
3017
|
+
"signature": "(cell: Partial<Cell>) => Promise<void>",
|
|
3018
|
+
"parameters": [{
|
|
3019
|
+
"name": "cell",
|
|
3020
|
+
"type": "{ x?: number | undefined; y?: number | undefined; }",
|
|
3021
|
+
"docs": ""
|
|
3022
|
+
}],
|
|
3023
|
+
"references": {
|
|
3024
|
+
"Promise": {
|
|
3025
|
+
"location": "global",
|
|
3026
|
+
"id": "global::Promise"
|
|
3027
|
+
},
|
|
3028
|
+
"Partial": {
|
|
3029
|
+
"location": "global",
|
|
3030
|
+
"id": "global::Partial"
|
|
3031
|
+
},
|
|
3032
|
+
"Cell": {
|
|
3033
|
+
"location": "import",
|
|
3034
|
+
"path": "@type",
|
|
3035
|
+
"id": "src/types/index.ts::Cell"
|
|
3036
|
+
}
|
|
3037
|
+
},
|
|
3038
|
+
"return": "Promise<void>"
|
|
3039
|
+
},
|
|
3040
|
+
"docs": {
|
|
3041
|
+
"text": "Scrolls view port to coordinate",
|
|
3042
|
+
"tags": []
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
"setCellEdit": {
|
|
3046
|
+
"complexType": {
|
|
3047
|
+
"signature": "(rgRow: number, prop: ColumnProp, rowSource?: DimensionRows) => Promise<void>",
|
|
3048
|
+
"parameters": [{
|
|
3049
|
+
"name": "rgRow",
|
|
3050
|
+
"type": "number",
|
|
3051
|
+
"docs": ""
|
|
3052
|
+
}, {
|
|
3053
|
+
"name": "prop",
|
|
3054
|
+
"type": "string | number",
|
|
3055
|
+
"docs": ""
|
|
3056
|
+
}, {
|
|
3057
|
+
"name": "rowSource",
|
|
3058
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3059
|
+
"docs": ""
|
|
3060
|
+
}],
|
|
3061
|
+
"references": {
|
|
3062
|
+
"Promise": {
|
|
3063
|
+
"location": "global",
|
|
3064
|
+
"id": "global::Promise"
|
|
3065
|
+
},
|
|
3066
|
+
"ColumnProp": {
|
|
3067
|
+
"location": "import",
|
|
3068
|
+
"path": "@type",
|
|
3069
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
3070
|
+
},
|
|
3071
|
+
"DimensionRows": {
|
|
3072
|
+
"location": "import",
|
|
3073
|
+
"path": "@type",
|
|
3074
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3075
|
+
}
|
|
3076
|
+
},
|
|
3077
|
+
"return": "Promise<void>"
|
|
3078
|
+
},
|
|
3079
|
+
"docs": {
|
|
3080
|
+
"text": "Open editor for cell.",
|
|
3081
|
+
"tags": []
|
|
3082
|
+
}
|
|
3083
|
+
},
|
|
3084
|
+
"setCellsFocus": {
|
|
3085
|
+
"complexType": {
|
|
3086
|
+
"signature": "(cellStart?: Cell, cellEnd?: Cell, colType?: string, rowType?: string) => Promise<void>",
|
|
3087
|
+
"parameters": [{
|
|
3088
|
+
"name": "cellStart",
|
|
3089
|
+
"type": "Cell",
|
|
3090
|
+
"docs": ""
|
|
3091
|
+
}, {
|
|
3092
|
+
"name": "cellEnd",
|
|
3093
|
+
"type": "Cell",
|
|
3094
|
+
"docs": ""
|
|
3095
|
+
}, {
|
|
3096
|
+
"name": "colType",
|
|
3097
|
+
"type": "string",
|
|
3098
|
+
"docs": ""
|
|
3099
|
+
}, {
|
|
3100
|
+
"name": "rowType",
|
|
3101
|
+
"type": "string",
|
|
3102
|
+
"docs": ""
|
|
3103
|
+
}],
|
|
3104
|
+
"references": {
|
|
3105
|
+
"Promise": {
|
|
3106
|
+
"location": "global",
|
|
3107
|
+
"id": "global::Promise"
|
|
3108
|
+
},
|
|
3109
|
+
"Cell": {
|
|
3110
|
+
"location": "import",
|
|
3111
|
+
"path": "@type",
|
|
3112
|
+
"id": "src/types/index.ts::Cell"
|
|
3113
|
+
}
|
|
3114
|
+
},
|
|
3115
|
+
"return": "Promise<void>"
|
|
3116
|
+
},
|
|
3117
|
+
"docs": {
|
|
3118
|
+
"text": "Set focus range.",
|
|
3119
|
+
"tags": []
|
|
3120
|
+
}
|
|
3121
|
+
},
|
|
3122
|
+
"getSource": {
|
|
3123
|
+
"complexType": {
|
|
3124
|
+
"signature": "(type?: DimensionRows) => Promise<DataType[]>",
|
|
3125
|
+
"parameters": [{
|
|
3126
|
+
"name": "type",
|
|
3127
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3128
|
+
"docs": ""
|
|
3129
|
+
}],
|
|
3130
|
+
"references": {
|
|
3131
|
+
"Promise": {
|
|
3132
|
+
"location": "global",
|
|
3133
|
+
"id": "global::Promise"
|
|
3134
|
+
},
|
|
3135
|
+
"DataType": {
|
|
3136
|
+
"location": "import",
|
|
3137
|
+
"path": "@type",
|
|
3138
|
+
"id": "src/types/index.ts::DataType"
|
|
3139
|
+
},
|
|
3140
|
+
"DimensionRows": {
|
|
3141
|
+
"location": "import",
|
|
3142
|
+
"path": "@type",
|
|
3143
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3144
|
+
}
|
|
3145
|
+
},
|
|
3146
|
+
"return": "Promise<DataType[]>"
|
|
3147
|
+
},
|
|
3148
|
+
"docs": {
|
|
3149
|
+
"text": "Get data from source",
|
|
3150
|
+
"tags": []
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
"getVisibleSource": {
|
|
3154
|
+
"complexType": {
|
|
3155
|
+
"signature": "(type?: DimensionRows) => Promise<any[]>",
|
|
3156
|
+
"parameters": [{
|
|
3157
|
+
"name": "type",
|
|
3158
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3159
|
+
"docs": "- type of source"
|
|
3160
|
+
}],
|
|
3161
|
+
"references": {
|
|
3162
|
+
"Promise": {
|
|
3163
|
+
"location": "global",
|
|
3164
|
+
"id": "global::Promise"
|
|
3165
|
+
},
|
|
3166
|
+
"DimensionRows": {
|
|
3167
|
+
"location": "import",
|
|
3168
|
+
"path": "@type",
|
|
3169
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3170
|
+
}
|
|
3171
|
+
},
|
|
3172
|
+
"return": "Promise<any[]>"
|
|
3173
|
+
},
|
|
3174
|
+
"docs": {
|
|
3175
|
+
"text": "Get data from visible part of source\r\nTrimmed/filtered rows will be excluded",
|
|
3176
|
+
"tags": [{
|
|
3177
|
+
"name": "param",
|
|
3178
|
+
"text": "type - type of source"
|
|
3179
|
+
}]
|
|
3180
|
+
}
|
|
3181
|
+
},
|
|
3182
|
+
"getSourceStore": {
|
|
3183
|
+
"complexType": {
|
|
3184
|
+
"signature": "(type?: DimensionRows) => Promise<Observable<DSourceState<DataType, DimensionRows>>>",
|
|
3185
|
+
"parameters": [{
|
|
3186
|
+
"name": "type",
|
|
3187
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3188
|
+
"docs": "- type of source"
|
|
3189
|
+
}],
|
|
3190
|
+
"references": {
|
|
3191
|
+
"Promise": {
|
|
3192
|
+
"location": "global",
|
|
3193
|
+
"id": "global::Promise"
|
|
3194
|
+
},
|
|
3195
|
+
"Observable": {
|
|
3196
|
+
"location": "import",
|
|
3197
|
+
"path": "../../utils",
|
|
3198
|
+
"id": "src/utils/index.ts::Observable"
|
|
3199
|
+
},
|
|
3200
|
+
"DSourceState": {
|
|
3201
|
+
"location": "import",
|
|
3202
|
+
"path": "@store",
|
|
3203
|
+
"id": "src/store/index.ts::DSourceState"
|
|
3204
|
+
},
|
|
3205
|
+
"DataType": {
|
|
3206
|
+
"location": "import",
|
|
3207
|
+
"path": "@type",
|
|
3208
|
+
"id": "src/types/index.ts::DataType"
|
|
3209
|
+
},
|
|
3210
|
+
"DimensionRows": {
|
|
3211
|
+
"location": "import",
|
|
3212
|
+
"path": "@type",
|
|
3213
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3214
|
+
}
|
|
3215
|
+
},
|
|
3216
|
+
"return": "Promise<Observable<DSourceState<DataType, DimensionRows>>>"
|
|
3217
|
+
},
|
|
3218
|
+
"docs": {
|
|
3219
|
+
"text": "Provides access to rows internal store observer\r\nCan be used for plugin support",
|
|
3220
|
+
"tags": [{
|
|
3221
|
+
"name": "param",
|
|
3222
|
+
"text": "type - type of source"
|
|
3223
|
+
}]
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
"getColumnStore": {
|
|
3227
|
+
"complexType": {
|
|
3228
|
+
"signature": "(type?: DimensionCols) => Promise<Observable<DSourceState<ColumnRegular, DimensionCols>>>",
|
|
3229
|
+
"parameters": [{
|
|
3230
|
+
"name": "type",
|
|
3231
|
+
"type": "DimensionColPin | \"rgCol\"",
|
|
3232
|
+
"docs": "- type of column"
|
|
3233
|
+
}],
|
|
3234
|
+
"references": {
|
|
3235
|
+
"Promise": {
|
|
3236
|
+
"location": "global",
|
|
3237
|
+
"id": "global::Promise"
|
|
3238
|
+
},
|
|
3239
|
+
"Observable": {
|
|
3240
|
+
"location": "import",
|
|
3241
|
+
"path": "../../utils",
|
|
3242
|
+
"id": "src/utils/index.ts::Observable"
|
|
3243
|
+
},
|
|
3244
|
+
"DSourceState": {
|
|
3245
|
+
"location": "import",
|
|
3246
|
+
"path": "@store",
|
|
3247
|
+
"id": "src/store/index.ts::DSourceState"
|
|
3248
|
+
},
|
|
3249
|
+
"ColumnRegular": {
|
|
3250
|
+
"location": "import",
|
|
3251
|
+
"path": "@type",
|
|
3252
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
3253
|
+
},
|
|
3254
|
+
"DimensionCols": {
|
|
3255
|
+
"location": "import",
|
|
3256
|
+
"path": "@type",
|
|
3257
|
+
"id": "src/types/index.ts::DimensionCols"
|
|
3258
|
+
}
|
|
3259
|
+
},
|
|
3260
|
+
"return": "Promise<Observable<DSourceState<ColumnRegular, DimensionCols>>>"
|
|
3261
|
+
},
|
|
3262
|
+
"docs": {
|
|
3263
|
+
"text": "Provides access to column internal store observer\r\nCan be used for plugin support",
|
|
3264
|
+
"tags": [{
|
|
3265
|
+
"name": "param",
|
|
3266
|
+
"text": "type - type of column"
|
|
3267
|
+
}]
|
|
3268
|
+
}
|
|
3269
|
+
},
|
|
3270
|
+
"updateColumnSorting": {
|
|
3271
|
+
"complexType": {
|
|
3272
|
+
"signature": "(column: Pick<ColumnRegular, \"prop\" | \"cellCompare\">, order: \"asc\" | \"desc\" | undefined, additive: boolean) => Promise<void>",
|
|
3273
|
+
"parameters": [{
|
|
3274
|
+
"name": "column",
|
|
3275
|
+
"type": "{ prop: ColumnProp; cellCompare?: CellCompareFunc | undefined; }",
|
|
3276
|
+
"docs": "- column prop and cellCompare"
|
|
3277
|
+
}, {
|
|
3278
|
+
"name": "order",
|
|
3279
|
+
"type": "\"asc\" | \"desc\" | undefined",
|
|
3280
|
+
"docs": "- order to apply"
|
|
3281
|
+
}, {
|
|
3282
|
+
"name": "additive",
|
|
3283
|
+
"type": "boolean",
|
|
3284
|
+
"docs": "- if false will replace current order\r\n\r\nlater passed to SortingPlugin"
|
|
3285
|
+
}],
|
|
3286
|
+
"references": {
|
|
3287
|
+
"Promise": {
|
|
3288
|
+
"location": "global",
|
|
3289
|
+
"id": "global::Promise"
|
|
3290
|
+
},
|
|
3291
|
+
"Pick": {
|
|
3292
|
+
"location": "global",
|
|
3293
|
+
"id": "global::Pick"
|
|
3294
|
+
},
|
|
3295
|
+
"ColumnRegular": {
|
|
3296
|
+
"location": "import",
|
|
3297
|
+
"path": "@type",
|
|
3298
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
3299
|
+
}
|
|
3300
|
+
},
|
|
3301
|
+
"return": "Promise<void>"
|
|
3302
|
+
},
|
|
3303
|
+
"docs": {
|
|
3304
|
+
"text": "Update column sorting",
|
|
3305
|
+
"tags": [{
|
|
3306
|
+
"name": "param",
|
|
3307
|
+
"text": "column - column prop and cellCompare"
|
|
3308
|
+
}, {
|
|
3309
|
+
"name": "param",
|
|
3310
|
+
"text": "order - order to apply"
|
|
3311
|
+
}, {
|
|
3312
|
+
"name": "param",
|
|
3313
|
+
"text": "additive - if false will replace current order\r\n\r\nlater passed to SortingPlugin"
|
|
3314
|
+
}]
|
|
3315
|
+
}
|
|
3316
|
+
},
|
|
3317
|
+
"clearSorting": {
|
|
3318
|
+
"complexType": {
|
|
3319
|
+
"signature": "() => Promise<void>",
|
|
3320
|
+
"parameters": [],
|
|
3321
|
+
"references": {
|
|
3322
|
+
"Promise": {
|
|
3323
|
+
"location": "global",
|
|
3324
|
+
"id": "global::Promise"
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
"return": "Promise<void>"
|
|
3328
|
+
},
|
|
3329
|
+
"docs": {
|
|
3330
|
+
"text": "Clears column sorting",
|
|
3331
|
+
"tags": []
|
|
3332
|
+
}
|
|
3333
|
+
},
|
|
3334
|
+
"getColumns": {
|
|
3335
|
+
"complexType": {
|
|
3336
|
+
"signature": "() => Promise<ColumnRegular[]>",
|
|
3337
|
+
"parameters": [],
|
|
3338
|
+
"references": {
|
|
3339
|
+
"Promise": {
|
|
3340
|
+
"location": "global",
|
|
3341
|
+
"id": "global::Promise"
|
|
3342
|
+
},
|
|
3343
|
+
"ColumnRegular": {
|
|
3344
|
+
"location": "import",
|
|
3345
|
+
"path": "@type",
|
|
3346
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"return": "Promise<ColumnRegular[]>"
|
|
3350
|
+
},
|
|
3351
|
+
"docs": {
|
|
3352
|
+
"text": "Receive all columns in data source",
|
|
3353
|
+
"tags": []
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
3356
|
+
"clearFocus": {
|
|
3357
|
+
"complexType": {
|
|
3358
|
+
"signature": "() => Promise<void>",
|
|
3359
|
+
"parameters": [],
|
|
3360
|
+
"references": {
|
|
3361
|
+
"Promise": {
|
|
3362
|
+
"location": "global",
|
|
3363
|
+
"id": "global::Promise"
|
|
3364
|
+
}
|
|
3365
|
+
},
|
|
3366
|
+
"return": "Promise<void>"
|
|
3367
|
+
},
|
|
3368
|
+
"docs": {
|
|
3369
|
+
"text": "Clear current grid focus. Grid has no longer focus on it.",
|
|
3370
|
+
"tags": []
|
|
3371
|
+
}
|
|
3372
|
+
},
|
|
3373
|
+
"getPlugins": {
|
|
3374
|
+
"complexType": {
|
|
3375
|
+
"signature": "() => Promise<PluginBaseComponent[]>",
|
|
3376
|
+
"parameters": [],
|
|
3377
|
+
"references": {
|
|
3378
|
+
"Promise": {
|
|
3379
|
+
"location": "global",
|
|
3380
|
+
"id": "global::Promise"
|
|
3381
|
+
},
|
|
3382
|
+
"PluginBaseComponent": {
|
|
3383
|
+
"location": "import",
|
|
3384
|
+
"path": "@type",
|
|
3385
|
+
"id": "src/types/index.ts::PluginBaseComponent"
|
|
3386
|
+
}
|
|
3387
|
+
},
|
|
3388
|
+
"return": "Promise<PluginBaseComponent[]>"
|
|
3389
|
+
},
|
|
3390
|
+
"docs": {
|
|
3391
|
+
"text": "Get all active plugins instances",
|
|
3392
|
+
"tags": []
|
|
3393
|
+
}
|
|
3394
|
+
},
|
|
3395
|
+
"getFocused": {
|
|
3396
|
+
"complexType": {
|
|
3397
|
+
"signature": "() => Promise<FocusedData | null>",
|
|
3398
|
+
"parameters": [],
|
|
3399
|
+
"references": {
|
|
3400
|
+
"Promise": {
|
|
3401
|
+
"location": "global",
|
|
3402
|
+
"id": "global::Promise"
|
|
3403
|
+
},
|
|
3404
|
+
"FocusedData": {
|
|
3405
|
+
"location": "import",
|
|
3406
|
+
"path": "./viewport.service",
|
|
3407
|
+
"id": "src/components/revoGrid/viewport.service.ts::FocusedData"
|
|
3408
|
+
}
|
|
3409
|
+
},
|
|
3410
|
+
"return": "Promise<FocusedData | null>"
|
|
3411
|
+
},
|
|
3412
|
+
"docs": {
|
|
3413
|
+
"text": "Get the currently focused cell.",
|
|
3414
|
+
"tags": []
|
|
3415
|
+
}
|
|
3416
|
+
},
|
|
3417
|
+
"getContentSize": {
|
|
3418
|
+
"complexType": {
|
|
3419
|
+
"signature": "() => Promise<Cell>",
|
|
3420
|
+
"parameters": [],
|
|
3421
|
+
"references": {
|
|
3422
|
+
"Promise": {
|
|
3423
|
+
"location": "global",
|
|
3424
|
+
"id": "global::Promise"
|
|
3425
|
+
},
|
|
3426
|
+
"Cell": {
|
|
3427
|
+
"location": "import",
|
|
3428
|
+
"path": "@type",
|
|
3429
|
+
"id": "src/types/index.ts::Cell"
|
|
3430
|
+
}
|
|
3431
|
+
},
|
|
3432
|
+
"return": "Promise<Cell>"
|
|
3433
|
+
},
|
|
3434
|
+
"docs": {
|
|
3435
|
+
"text": "Get size of content\r\nIncluding all pinned data",
|
|
3436
|
+
"tags": []
|
|
3437
|
+
}
|
|
3438
|
+
},
|
|
3439
|
+
"getSelectedRange": {
|
|
3440
|
+
"complexType": {
|
|
3441
|
+
"signature": "() => Promise<(RangeArea & AllDimensionType) | null>",
|
|
3442
|
+
"parameters": [],
|
|
3443
|
+
"references": {
|
|
3444
|
+
"Promise": {
|
|
3445
|
+
"location": "global",
|
|
3446
|
+
"id": "global::Promise"
|
|
3447
|
+
},
|
|
3448
|
+
"RangeArea": {
|
|
3449
|
+
"location": "import",
|
|
3450
|
+
"path": "@type",
|
|
3451
|
+
"id": "src/types/index.ts::RangeArea"
|
|
3452
|
+
},
|
|
3453
|
+
"AllDimensionType": {
|
|
3454
|
+
"location": "import",
|
|
3455
|
+
"path": "@type",
|
|
3456
|
+
"id": "src/types/index.ts::AllDimensionType"
|
|
3457
|
+
}
|
|
3458
|
+
},
|
|
3459
|
+
"return": "Promise<(RangeArea & AllDimensionType) | null>"
|
|
3460
|
+
},
|
|
3461
|
+
"docs": {
|
|
3462
|
+
"text": "Get the currently selected Range.",
|
|
3463
|
+
"tags": []
|
|
3464
|
+
}
|
|
3465
|
+
},
|
|
3466
|
+
"refreshExtraElements": {
|
|
3467
|
+
"complexType": {
|
|
3468
|
+
"signature": "() => Promise<void>",
|
|
3469
|
+
"parameters": [],
|
|
3470
|
+
"references": {
|
|
3471
|
+
"Promise": {
|
|
3472
|
+
"location": "global",
|
|
3473
|
+
"id": "global::Promise"
|
|
3474
|
+
}
|
|
3475
|
+
},
|
|
3476
|
+
"return": "Promise<void>"
|
|
3477
|
+
},
|
|
3478
|
+
"docs": {
|
|
3479
|
+
"text": "Refresh extra elements. Triggers re-rendering of extra elements and functions.\r\nPart of extraElements and registerVNode methods.\r\nUseful for plugins.",
|
|
3480
|
+
"tags": []
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3483
|
+
"getProviders": {
|
|
3484
|
+
"complexType": {
|
|
3485
|
+
"signature": "() => Promise<PluginProviders | undefined>",
|
|
3486
|
+
"parameters": [],
|
|
3487
|
+
"references": {
|
|
3488
|
+
"Promise": {
|
|
3489
|
+
"location": "global",
|
|
3490
|
+
"id": "global::Promise"
|
|
3491
|
+
},
|
|
3492
|
+
"PluginProviders": {
|
|
3493
|
+
"location": "import",
|
|
3494
|
+
"path": "@type",
|
|
3495
|
+
"id": "src/types/index.ts::PluginProviders"
|
|
3496
|
+
}
|
|
3497
|
+
},
|
|
3498
|
+
"return": "Promise<PluginProviders | undefined>"
|
|
3499
|
+
},
|
|
3500
|
+
"docs": {
|
|
3501
|
+
"text": "Get all providers for grid\r\nUseful for external grid integration",
|
|
3502
|
+
"tags": []
|
|
3503
|
+
}
|
|
3504
|
+
}
|
|
3505
|
+
};
|
|
3506
|
+
}
|
|
3507
|
+
static get elementRef() { return "element"; }
|
|
3508
|
+
static get watchers() {
|
|
3509
|
+
return [{
|
|
3510
|
+
"propName": "columnTypes",
|
|
3511
|
+
"methodName": "columnTypesChanged"
|
|
3512
|
+
}, {
|
|
3513
|
+
"propName": "columns",
|
|
3514
|
+
"methodName": "columnChanged"
|
|
3515
|
+
}, {
|
|
3516
|
+
"propName": "disableVirtualX",
|
|
3517
|
+
"methodName": "disableVirtualXChanged"
|
|
3518
|
+
}, {
|
|
3519
|
+
"propName": "rowSize",
|
|
3520
|
+
"methodName": "rowSizeChanged"
|
|
3521
|
+
}, {
|
|
3522
|
+
"propName": "theme",
|
|
3523
|
+
"methodName": "themeChanged"
|
|
3524
|
+
}, {
|
|
3525
|
+
"propName": "source",
|
|
3526
|
+
"methodName": "dataSourceChanged"
|
|
3527
|
+
}, {
|
|
3528
|
+
"propName": "pinnedBottomSource",
|
|
3529
|
+
"methodName": "dataSourceChanged"
|
|
3530
|
+
}, {
|
|
3531
|
+
"propName": "pinnedTopSource",
|
|
3532
|
+
"methodName": "dataSourceChanged"
|
|
3533
|
+
}, {
|
|
3534
|
+
"propName": "disableVirtualY",
|
|
3535
|
+
"methodName": "disableVirtualYChanged"
|
|
3536
|
+
}, {
|
|
3537
|
+
"propName": "rowDefinitions",
|
|
3538
|
+
"methodName": "rowDefChanged"
|
|
3539
|
+
}, {
|
|
3540
|
+
"propName": "trimmedRows",
|
|
3541
|
+
"methodName": "trimmedRowsChanged"
|
|
3542
|
+
}, {
|
|
3543
|
+
"propName": "grouping",
|
|
3544
|
+
"methodName": "groupingChanged"
|
|
3545
|
+
}, {
|
|
3546
|
+
"propName": "stretch",
|
|
3547
|
+
"methodName": "applyStretch"
|
|
3548
|
+
}, {
|
|
3549
|
+
"propName": "filter",
|
|
3550
|
+
"methodName": "applyFilter"
|
|
3551
|
+
}, {
|
|
3552
|
+
"propName": "sorting",
|
|
3553
|
+
"methodName": "applySorting"
|
|
3554
|
+
}, {
|
|
3555
|
+
"propName": "rowHeaders",
|
|
3556
|
+
"methodName": "rowHeadersChange"
|
|
3557
|
+
}, {
|
|
3558
|
+
"propName": "registerVNode",
|
|
3559
|
+
"methodName": "registerOutsideVNodes"
|
|
3560
|
+
}, {
|
|
3561
|
+
"propName": "additionalData",
|
|
3562
|
+
"methodName": "additionalDataChanged"
|
|
3563
|
+
}, {
|
|
3564
|
+
"propName": "rtl",
|
|
3565
|
+
"methodName": "rtlChanged"
|
|
3566
|
+
}, {
|
|
3567
|
+
"propName": "plugins",
|
|
3568
|
+
"methodName": "pluginsChanged"
|
|
3569
|
+
}];
|
|
3570
|
+
}
|
|
3571
|
+
static get listeners() {
|
|
3572
|
+
return [{
|
|
3573
|
+
"name": "touchstart",
|
|
3574
|
+
"method": "mousedownHandle",
|
|
3575
|
+
"target": "document",
|
|
3576
|
+
"capture": false,
|
|
3577
|
+
"passive": true
|
|
3578
|
+
}, {
|
|
3579
|
+
"name": "mousedown",
|
|
3580
|
+
"method": "mousedownHandle",
|
|
3581
|
+
"target": "document",
|
|
3582
|
+
"capture": false,
|
|
3583
|
+
"passive": true
|
|
3584
|
+
}, {
|
|
3585
|
+
"name": "touchend",
|
|
3586
|
+
"method": "mouseupHandle",
|
|
3587
|
+
"target": "document",
|
|
3588
|
+
"capture": false,
|
|
3589
|
+
"passive": true
|
|
3590
|
+
}, {
|
|
3591
|
+
"name": "mouseup",
|
|
3592
|
+
"method": "mouseupHandle",
|
|
3593
|
+
"target": "document",
|
|
3594
|
+
"capture": false,
|
|
3595
|
+
"passive": true
|
|
3596
|
+
}, {
|
|
3597
|
+
"name": "beforecolumndragend",
|
|
3598
|
+
"method": "beforeColumnDragEnd",
|
|
3599
|
+
"target": undefined,
|
|
3600
|
+
"capture": false,
|
|
3601
|
+
"passive": false
|
|
3602
|
+
}, {
|
|
3603
|
+
"name": "rowdragstartinit",
|
|
3604
|
+
"method": "onRowDragStarted",
|
|
3605
|
+
"target": undefined,
|
|
3606
|
+
"capture": false,
|
|
3607
|
+
"passive": false
|
|
3608
|
+
}, {
|
|
3609
|
+
"name": "rowdragendinit",
|
|
3610
|
+
"method": "onRowDragEnd",
|
|
3611
|
+
"target": undefined,
|
|
3612
|
+
"capture": false,
|
|
3613
|
+
"passive": false
|
|
3614
|
+
}, {
|
|
3615
|
+
"name": "roworderchange",
|
|
3616
|
+
"method": "onRowOrderChange",
|
|
3617
|
+
"target": undefined,
|
|
3618
|
+
"capture": false,
|
|
3619
|
+
"passive": false
|
|
3620
|
+
}, {
|
|
3621
|
+
"name": "rowdragmoveinit",
|
|
3622
|
+
"method": "onRowDrag",
|
|
3623
|
+
"target": undefined,
|
|
3624
|
+
"capture": false,
|
|
3625
|
+
"passive": false
|
|
3626
|
+
}, {
|
|
3627
|
+
"name": "rowdragmousemove",
|
|
3628
|
+
"method": "onRowMouseMove",
|
|
3629
|
+
"target": undefined,
|
|
3630
|
+
"capture": false,
|
|
3631
|
+
"passive": false
|
|
3632
|
+
}, {
|
|
3633
|
+
"name": "celleditapply",
|
|
3634
|
+
"method": "onCellEdit",
|
|
3635
|
+
"target": undefined,
|
|
3636
|
+
"capture": false,
|
|
3637
|
+
"passive": false
|
|
3638
|
+
}, {
|
|
3639
|
+
"name": "rangeeditapply",
|
|
3640
|
+
"method": "onRangeEdit",
|
|
3641
|
+
"target": undefined,
|
|
3642
|
+
"capture": false,
|
|
3643
|
+
"passive": false
|
|
3644
|
+
}, {
|
|
3645
|
+
"name": "selectionchangeinit",
|
|
3646
|
+
"method": "onRangeChanged",
|
|
3647
|
+
"target": undefined,
|
|
3648
|
+
"capture": false,
|
|
3649
|
+
"passive": false
|
|
3650
|
+
}, {
|
|
3651
|
+
"name": "rowdropinit",
|
|
3652
|
+
"method": "onRowDropped",
|
|
3653
|
+
"target": undefined,
|
|
3654
|
+
"capture": false,
|
|
3655
|
+
"passive": false
|
|
3656
|
+
}, {
|
|
3657
|
+
"name": "beforeheaderclick",
|
|
3658
|
+
"method": "onHeaderClick",
|
|
3659
|
+
"target": undefined,
|
|
3660
|
+
"capture": false,
|
|
3661
|
+
"passive": false
|
|
3662
|
+
}, {
|
|
3663
|
+
"name": "beforecellfocusinit",
|
|
3664
|
+
"method": "onCellFocus",
|
|
3665
|
+
"target": undefined,
|
|
3666
|
+
"capture": false,
|
|
3667
|
+
"passive": false
|
|
3668
|
+
}];
|
|
3669
|
+
}
|
|
3670
|
+
}
|
|
3671
|
+
//# sourceMappingURL=revo-grid.js.map
|