balala-revogrid 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/LICENSE +21 -0
- package/dist/cjs/app-globals-D67EXhgK.js +16 -0
- package/dist/cjs/app-globals-D67EXhgK.js.map +1 -0
- package/dist/cjs/cell-renderer-B87qecTb.js +57 -0
- package/dist/cjs/cell-renderer-B87qecTb.js.map +1 -0
- package/dist/cjs/debounce-CcpHiH2p.js +498 -0
- package/dist/cjs/debounce-CcpHiH2p.js.map +1 -0
- package/dist/cjs/dimension.helpers-DA9-xqPT.js +3606 -0
- package/dist/cjs/dimension.helpers-DA9-xqPT.js.map +1 -0
- package/dist/cjs/edit.utils-CKsIiHlD.js +113 -0
- package/dist/cjs/edit.utils-CKsIiHlD.js.map +1 -0
- package/dist/cjs/events-DeLDyZlb.js +46 -0
- package/dist/cjs/events-DeLDyZlb.js.map +1 -0
- package/dist/cjs/filter.button-DSsWNs23.js +49 -0
- package/dist/cjs/filter.button-DSsWNs23.js.map +1 -0
- package/dist/cjs/grouping.row.renderer-BqR0ytMi.js +64 -0
- package/dist/cjs/grouping.row.renderer-BqR0ytMi.js.map +1 -0
- package/dist/cjs/header-cell-renderer-D-RjAVfe.js +1766 -0
- package/dist/cjs/header-cell-renderer-D-RjAVfe.js.map +1 -0
- package/dist/cjs/index-BF1c1pO3.js +2549 -0
- package/dist/cjs/index-BF1c1pO3.js.map +1 -0
- package/dist/cjs/index.cjs.js +6426 -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 +3215 -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-grouping-overlay.revogr-header-unified.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution_9.cjs.entry.js +2629 -0
- package/dist/cjs/revogr-attribution_9.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 +471 -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 +1420 -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-renderer-BTE7VKD9.js +49 -0
- package/dist/cjs/row-renderer-BTE7VKD9.js.map +1 -0
- package/dist/cjs/text-editor-BdhmcrkS.js +81 -0
- package/dist/cjs/text-editor-BdhmcrkS.js.map +1 -0
- package/dist/cjs/throttle-2ZxfGjEI.js +533 -0
- package/dist/cjs/throttle-2ZxfGjEI.js.map +1 -0
- package/dist/cjs/tree-data.plugin-BRjwZtxI.js +5350 -0
- package/dist/cjs/tree-data.plugin-BRjwZtxI.js.map +1 -0
- package/dist/cjs/viewport.helpers-BAovztDd.js +61 -0
- package/dist/cjs/viewport.helpers-BAovztDd.js.map +1 -0
- package/dist/cjs/viewport.store-BTbPlyF-.js +525 -0
- package/dist/cjs/viewport.store-BTbPlyF-.js.map +1 -0
- package/dist/collection/collection-manifest.json +30 -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 +411 -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 +333 -0
- package/dist/collection/components/data/column.service.js.map +1 -0
- package/dist/collection/components/data/revogr-data-style.css +95 -0
- package/dist/collection/components/data/revogr-data.js +939 -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 +37 -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/grouping-overlay/revogr-grouping-overlay.css +62 -0
- package/dist/collection/components/grouping-overlay/revogr-grouping-overlay.js +644 -0
- package/dist/collection/components/grouping-overlay/revogr-grouping-overlay.js.map +1 -0
- package/dist/collection/components/header/header-cell-renderer.js +49 -0
- package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
- package/dist/collection/components/header/header-group-renderer.js +29 -0
- package/dist/collection/components/header/header-group-renderer.js.map +1 -0
- package/dist/collection/components/header/header-renderer.js +100 -0
- package/dist/collection/components/header/header-renderer.js.map +1 -0
- package/dist/collection/components/header/resizable.directive.js +274 -0
- package/dist/collection/components/header/resizable.directive.js.map +1 -0
- package/dist/collection/components/header/resizable.element.js +36 -0
- package/dist/collection/components/header/resizable.element.js.map +1 -0
- package/dist/collection/components/header/revogr-header-style.css +164 -0
- package/dist/collection/components/header/revogr-header-unified-style.css +205 -0
- package/dist/collection/components/header/revogr-header-unified.js +1013 -0
- package/dist/collection/components/header/revogr-header-unified.js.map +1 -0
- package/dist/collection/components/header/revogr-header.js +852 -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 +221 -0
- package/dist/collection/components/overlay/autofill.service.js.map +1 -0
- package/dist/collection/components/overlay/keyboard.service.js +178 -0
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +1606 -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 +897 -0
- package/dist/collection/components/revoGrid/revo-grid.js +4717 -0
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js +51 -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 +139 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.service.js +253 -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 +70 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +938 -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 +346 -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 +429 -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-hide.plugin.js +532 -0
- package/dist/collection/plugins/column-hide.plugin.js.map +1 -0
- package/dist/collection/plugins/column-manage.plugin.js +1218 -0
- package/dist/collection/plugins/column-manage.plugin.js.map +1 -0
- package/dist/collection/plugins/column-stretch.plugin.js +921 -0
- package/dist/collection/plugins/column-stretch.plugin.js.map +1 -0
- package/dist/collection/plugins/column.auto-size.plugin.js +308 -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/customColumnDrag/column-move.helper.js +361 -0
- package/dist/collection/plugins/customColumnDrag/column-move.helper.js.map +1 -0
- package/dist/collection/plugins/customColumnDrag/custom-column-drag.plugin.js +145 -0
- package/dist/collection/plugins/customColumnDrag/custom-column-drag.plugin.js.map +1 -0
- package/dist/collection/plugins/customColumnDrag/drag.handler.js +726 -0
- package/dist/collection/plugins/customColumnDrag/drag.handler.js.map +1 -0
- package/dist/collection/plugins/customColumnDrag/example.js +282 -0
- package/dist/collection/plugins/customColumnDrag/example.js.map +1 -0
- package/dist/collection/plugins/customColumnDrag/index.js +8 -0
- package/dist/collection/plugins/customColumnDrag/index.js.map +1 -0
- package/dist/collection/plugins/customColumnDrag/types.js +2 -0
- package/dist/collection/plugins/customColumnDrag/types.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/enhanced-scrollbar.plugin.js +493 -0
- package/dist/collection/plugins/enhanced-scrollbar.plugin.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/grid-setup.js +131 -0
- package/dist/collection/plugins/grid-setup.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +18 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +122 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +252 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +49 -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 +215 -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 +26 -0
- package/dist/collection/plugins/index.js.map +1 -0
- package/dist/collection/plugins/manual-focus.plugin.js +353 -0
- package/dist/collection/plugins/manual-focus.plugin.js.map +1 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +171 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js +69 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
- package/dist/collection/plugins/pin-shadow.plugin.js +487 -0
- package/dist/collection/plugins/pin-shadow.plugin.js.map +1 -0
- package/dist/collection/plugins/resize-indicator.plugin.js +430 -0
- package/dist/collection/plugins/resize-indicator.plugin.js.map +1 -0
- package/dist/collection/plugins/row-select-plugin-2026228.js +1803 -0
- package/dist/collection/plugins/row-select-plugin-2026228.js.map +1 -0
- package/dist/collection/plugins/row-select.plugin.js +2096 -0
- package/dist/collection/plugins/row-select.plugin.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/tree-data.plugin.js +447 -0
- package/dist/collection/plugins/tree-data.plugin.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/serve/realData.js +4148 -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 +122 -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 +257 -0
- package/dist/collection/services/dimension.provider.js.map +1 -0
- package/dist/collection/services/local.scroll.service.js +136 -0
- package/dist/collection/services/local.scroll.service.js.map +1 -0
- package/dist/collection/services/local.scroll.timer.js +84 -0
- package/dist/collection/services/local.scroll.timer.js.map +1 -0
- package/dist/collection/services/selection.store.connector.js +274 -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 +146 -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 +29 -0
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.store.js +124 -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 +49 -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 +256 -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 +124 -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 +6 -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/batchGroupCollapse.js +190 -0
- package/dist/collection/utils/batchGroupCollapse.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/cell-template-helper.js +181 -0
- package/dist/collection/utils/cell-template-helper.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 +448 -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 +133 -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 +86 -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-C3ZHKjnB.js +14 -0
- package/dist/esm/app-globals-C3ZHKjnB.js.map +1 -0
- package/dist/esm/cell-renderer-C2Td6LKY.js +54 -0
- package/dist/esm/cell-renderer-C2Td6LKY.js.map +1 -0
- package/dist/esm/debounce-BfO9dz9v.js +488 -0
- package/dist/esm/debounce-BfO9dz9v.js.map +1 -0
- package/dist/esm/dimension.helpers-DDil7Dg0.js +3546 -0
- package/dist/esm/dimension.helpers-DDil7Dg0.js.map +1 -0
- package/dist/esm/edit.utils-ClxXX_x9.js +99 -0
- package/dist/esm/edit.utils-ClxXX_x9.js.map +1 -0
- package/dist/esm/events-BvSmBueA.js +43 -0
- package/dist/esm/events-BvSmBueA.js.map +1 -0
- package/dist/esm/filter.button-DmOE7VCJ.js +39 -0
- package/dist/esm/filter.button-DmOE7VCJ.js.map +1 -0
- package/dist/esm/grouping.row.renderer-6NYszUJA.js +60 -0
- package/dist/esm/grouping.row.renderer-6NYszUJA.js.map +1 -0
- package/dist/esm/header-cell-renderer-BVHTuFGE.js +1715 -0
- package/dist/esm/header-cell-renderer-BVHTuFGE.js.map +1 -0
- package/dist/esm/index-Dyptvvxf.js +2519 -0
- package/dist/esm/index-Dyptvvxf.js.map +1 -0
- package/dist/esm/index.js +6232 -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 +3213 -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-grouping-overlay.revogr-header-unified.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.js.map +1 -0
- package/dist/esm/revogr-attribution_9.entry.js +2619 -0
- package/dist/esm/revogr-attribution_9.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 +467 -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 +1415 -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-renderer-sb6QTqH-.js +46 -0
- package/dist/esm/row-renderer-sb6QTqH-.js.map +1 -0
- package/dist/esm/text-editor-CxXqoicM.js +79 -0
- package/dist/esm/text-editor-CxXqoicM.js.map +1 -0
- package/dist/esm/throttle-DXYrmEeb.js +525 -0
- package/dist/esm/throttle-DXYrmEeb.js.map +1 -0
- package/dist/esm/tree-data.plugin-C2eXkf9_.js +5319 -0
- package/dist/esm/tree-data.plugin-C2eXkf9_.js.map +1 -0
- package/dist/esm/viewport.helpers-VXhsJZtn.js +55 -0
- package/dist/esm/viewport.helpers-VXhsJZtn.js.map +1 -0
- package/dist/esm/viewport.store-C-GnV31k.js +512 -0
- package/dist/esm/viewport.store-C-GnV31k.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/revo-grid/app-globals-C3ZHKjnB.js +14 -0
- package/dist/revo-grid/app-globals-C3ZHKjnB.js.map +1 -0
- package/dist/revo-grid/cell-renderer-C2Td6LKY.js +54 -0
- package/dist/revo-grid/cell-renderer-C2Td6LKY.js.map +1 -0
- package/dist/revo-grid/debounce-BfO9dz9v.js +488 -0
- package/dist/revo-grid/debounce-BfO9dz9v.js.map +1 -0
- package/dist/revo-grid/dimension.helpers-DDil7Dg0.js +3546 -0
- package/dist/revo-grid/dimension.helpers-DDil7Dg0.js.map +1 -0
- package/dist/revo-grid/edit.utils-ClxXX_x9.js +99 -0
- package/dist/revo-grid/edit.utils-ClxXX_x9.js.map +1 -0
- package/dist/revo-grid/events-BvSmBueA.js +43 -0
- package/dist/revo-grid/events-BvSmBueA.js.map +1 -0
- package/dist/revo-grid/filter.button-DmOE7VCJ.js +39 -0
- package/dist/revo-grid/filter.button-DmOE7VCJ.js.map +1 -0
- package/dist/revo-grid/grouping.row.renderer-6NYszUJA.js +60 -0
- package/dist/revo-grid/grouping.row.renderer-6NYszUJA.js.map +1 -0
- package/dist/revo-grid/header-cell-renderer-BVHTuFGE.js +1715 -0
- package/dist/revo-grid/header-cell-renderer-BVHTuFGE.js.map +1 -0
- package/dist/revo-grid/index-Dyptvvxf.js +2490 -0
- package/dist/revo-grid/index-Dyptvvxf.js.map +1 -0
- package/dist/revo-grid/index.esm.js +6232 -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 +3213 -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-grouping-overlay.revogr-header-unified.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution_9.entry.js +2619 -0
- package/dist/revo-grid/revogr-attribution_9.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 +467 -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 +1415 -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-renderer-sb6QTqH-.js +46 -0
- package/dist/revo-grid/row-renderer-sb6QTqH-.js.map +1 -0
- package/dist/revo-grid/text-editor-CxXqoicM.js +79 -0
- package/dist/revo-grid/text-editor-CxXqoicM.js.map +1 -0
- package/dist/revo-grid/throttle-DXYrmEeb.js +525 -0
- package/dist/revo-grid/throttle-DXYrmEeb.js.map +1 -0
- package/dist/revo-grid/tree-data.plugin-C2eXkf9_.js +5319 -0
- package/dist/revo-grid/tree-data.plugin-C2eXkf9_.js.map +1 -0
- package/dist/revo-grid/viewport.helpers-VXhsJZtn.js +55 -0
- package/dist/revo-grid/viewport.helpers-VXhsJZtn.js.map +1 -0
- package/dist/revo-grid/viewport.store-C-GnV31k.js +512 -0
- package/dist/revo-grid/viewport.store-C-GnV31k.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 +65 -0
- package/dist/types/components/data/revogr-data.d.ts +132 -0
- package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
- package/dist/types/components/data/row-renderer.d.ts +13 -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/grouping-overlay/revogr-grouping-overlay.d.ts +71 -0
- package/dist/types/components/header/header-cell-renderer.d.ts +10 -0
- package/dist/types/components/header/header-group-renderer.d.ts +17 -0
- package/dist/types/components/header/header-renderer.d.ts +24 -0
- package/dist/types/components/header/resizable.directive.d.ts +60 -0
- package/dist/types/components/header/resizable.element.d.ts +5 -0
- package/dist/types/components/header/revogr-header-unified.d.ts +168 -0
- package/dist/types/components/header/revogr-header.d.ts +131 -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 +29 -0
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +295 -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 +801 -0
- package/dist/types/components/revoGrid/viewport.helpers.d.ts +42 -0
- package/dist/types/components/revoGrid/viewport.resize.service.d.ts +17 -0
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +24 -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 +159 -0
- package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
- package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +49 -0
- package/dist/types/components/selectionFocus/revogr-focus.d.ts +63 -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 +2928 -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-hide.plugin.d.ts +110 -0
- package/dist/types/plugins/column-manage.plugin.d.ts +225 -0
- package/dist/types/plugins/column-stretch.plugin.d.ts +159 -0
- package/dist/types/plugins/column.auto-size.plugin.d.ts +69 -0
- package/dist/types/plugins/column.stretch.plugin.d.ts +20 -0
- package/dist/types/plugins/customColumnDrag/column-move.helper.d.ts +71 -0
- package/dist/types/plugins/customColumnDrag/custom-column-drag.plugin.d.ts +35 -0
- package/dist/types/plugins/customColumnDrag/drag.handler.d.ts +112 -0
- package/dist/types/plugins/customColumnDrag/example.d.ts +31 -0
- package/dist/types/plugins/customColumnDrag/index.d.ts +5 -0
- package/dist/types/plugins/customColumnDrag/types.d.ts +46 -0
- package/dist/types/plugins/dispatcher.d.ts +20 -0
- package/dist/types/plugins/enhanced-scrollbar.plugin.d.ts +76 -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/grid-setup.d.ts +65 -0
- package/dist/types/plugins/groupingRow/grouping.const.d.ts +14 -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 +144 -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 +22 -0
- package/dist/types/plugins/manual-focus.plugin.d.ts +113 -0
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +50 -0
- package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
- package/dist/types/plugins/pin-shadow.plugin.d.ts +73 -0
- package/dist/types/plugins/resize-indicator.plugin.d.ts +71 -0
- package/dist/types/plugins/row-select-plugin-2026228.d.ts +367 -0
- package/dist/types/plugins/row-select.plugin.d.ts +378 -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/tree-data.plugin.d.ts +56 -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 +71 -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 +74 -0
- package/dist/types/services/viewport.provider.d.ts +9 -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 +77 -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 +15 -0
- package/dist/types/store/dimension/dimension.store.d.ts +34 -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 +5 -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 +38 -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 +795 -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/batchGroupCollapse.d.ts +77 -0
- package/dist/types/utils/browser.d.ts +1 -0
- package/dist/types/utils/cell-template-helper.d.ts +74 -0
- package/dist/types/utils/closest.polifill.d.ts +0 -0
- package/dist/types/utils/column.utils.d.ts +110 -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 +12 -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 +39851 -0
- package/hydrate/index.mjs +39843 -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 +149 -0
- package/readme.md +303 -0
- package/standalone/column.service.js +1110 -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 +3101 -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/grouping.service.js +234 -0
- package/standalone/grouping.service.js.map +1 -0
- package/standalone/header-group-renderer.js +634 -0
- package/standalone/header-group-renderer.js.map +1 -0
- package/standalone/index.d.ts +72 -0
- package/standalone/index.js +6272 -0
- package/standalone/index.js.map +1 -0
- package/standalone/index2.js +131 -0
- package/standalone/index2.js.map +1 -0
- package/standalone/local.scroll.timer.js +222 -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 +8734 -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 +179 -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 +503 -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 +330 -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 +119 -0
- package/standalone/revogr-focus2.js.map +1 -0
- package/standalone/revogr-grouping-overlay.d.ts +11 -0
- package/standalone/revogr-grouping-overlay.js +12 -0
- package/standalone/revogr-grouping-overlay.js.map +1 -0
- package/standalone/revogr-grouping-overlay2.js +356 -0
- package/standalone/revogr-grouping-overlay2.js.map +1 -0
- package/standalone/revogr-header-unified.d.ts +11 -0
- package/standalone/revogr-header-unified.js +12 -0
- package/standalone/revogr-header-unified.js.map +1 -0
- package/standalone/revogr-header-unified2.js +781 -0
- package/standalone/revogr-header-unified2.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 +343 -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 +1068 -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 +625 -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 +235 -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 +761 -0
- package/standalone/revogr-viewport-scroll2.js.map +1 -0
- package/standalone/row-renderer.js +41 -0
- package/standalone/row-renderer.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,4717 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by Revolist OU ❤️
|
|
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 { 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 { TreeDataPlugin } from "../../plugins/tree-data.plugin";
|
|
18
|
+
import ViewportService from "./viewport.service";
|
|
19
|
+
import { DATA_SLOT, HEADER_SLOT, CONTENT_SLOT } from "./viewport.helpers";
|
|
20
|
+
import GridScrollingService from "./viewport.scrolling.service";
|
|
21
|
+
import { SelectionStoreConnector } from "../../services/selection.store.connector";
|
|
22
|
+
import OrderRenderer from "../order/order-renderer";
|
|
23
|
+
import { StretchColumn, isStretchPlugin, } from "../../plugins/column.stretch.plugin";
|
|
24
|
+
import { rowDefinitionByType, rowDefinitionRemoveByType } from "./grid.helpers";
|
|
25
|
+
import { ColumnMovePlugin } from "../../plugins/moveColumn/column.drag.plugin";
|
|
26
|
+
import { getPropertyFromEvent } from "../../utils/events";
|
|
27
|
+
import { isMobileDevice } from "../../utils/mobile";
|
|
28
|
+
import { getColumnByProp, getColumns } from "../../utils/column.utils";
|
|
29
|
+
import { WCAGPlugin } from "../../plugins/wcag";
|
|
30
|
+
import { PluginService } from "./plugin.service";
|
|
31
|
+
import { RTLPlugin } from "../../plugins/rtl/rtl.plugin";
|
|
32
|
+
import { ColumnManagePlugin } from "../../plugins/column-manage.plugin";
|
|
33
|
+
/**
|
|
34
|
+
* Revogrid - High-performance, customizable grid library for managing large datasets.
|
|
35
|
+
* ### Events guide
|
|
36
|
+
*
|
|
37
|
+
* For a comprehensive events guide, check the [Events API Page](/guide/api/events).
|
|
38
|
+
* All events propagate to the root level of the grid. [Dependency tree](#Dependencies).
|
|
39
|
+
*
|
|
40
|
+
* ### Type definitions
|
|
41
|
+
*
|
|
42
|
+
* Read [type definition file](https://github.com/revolist/revogrid/blob/master/src/interfaces.d.ts) for the full interface information.
|
|
43
|
+
*
|
|
44
|
+
* All complex property types such as `ColumnRegular`, `ColumnProp`, `ColumnDataSchemaModel` can be found there.
|
|
45
|
+
*
|
|
46
|
+
* ### HTMLRevoGridElement
|
|
47
|
+
*
|
|
48
|
+
* @slot data-{column-type}-{row-type}. @example data-rgCol-rgRow - main data slot. Applies extra elements in <revogr-data />.
|
|
49
|
+
* @slot focus-{column-type}-{row-type}. @example focus-rgCol-rgRow - focus layer for main data. Applies extra elements in <revogr-focus />.
|
|
50
|
+
* @slot viewport - Viewport slot.
|
|
51
|
+
* @slot header - Header slot.
|
|
52
|
+
* @slot footer - Footer slot.
|
|
53
|
+
* @slot empty - Empty data placeholder slot. Displayed when source is empty.
|
|
54
|
+
*/
|
|
55
|
+
export class RevoGridComponent {
|
|
56
|
+
constructor() {
|
|
57
|
+
/**
|
|
58
|
+
* Defines how many rows/columns should be rendered outside visible area.
|
|
59
|
+
*/
|
|
60
|
+
this.frameSize = 1;
|
|
61
|
+
/**
|
|
62
|
+
* Indicates default rgRow size.
|
|
63
|
+
* By default 0, means theme package size will be applied
|
|
64
|
+
*
|
|
65
|
+
* Alternatively you can use `rowSize` to reset viewport
|
|
66
|
+
*/
|
|
67
|
+
this.rowSize = 0;
|
|
68
|
+
/** Indicates default column size. */
|
|
69
|
+
this.colSize = 100;
|
|
70
|
+
/** When true, user can range selection. */
|
|
71
|
+
this.range = false;
|
|
72
|
+
/** When true, grid in read only mode. */
|
|
73
|
+
this.readonly = false;
|
|
74
|
+
/** When true, columns are resizable. */
|
|
75
|
+
this.resize = false;
|
|
76
|
+
/** When true cell focus appear. */
|
|
77
|
+
this.canFocus = true;
|
|
78
|
+
/** When true enable clipboard. */
|
|
79
|
+
this.useClipboard = true;
|
|
80
|
+
/**
|
|
81
|
+
* Columns - defines an array of grid columns.
|
|
82
|
+
* Can be column or grouped column.
|
|
83
|
+
*/
|
|
84
|
+
this.columns = [];
|
|
85
|
+
/**
|
|
86
|
+
* Source - defines main data source.
|
|
87
|
+
* Can be an Object or 2 dimensional array([][]);
|
|
88
|
+
* Keys/indexes referenced from columns Prop.
|
|
89
|
+
*/
|
|
90
|
+
this.source = [];
|
|
91
|
+
/** Internal state to track if source is empty for triggering re-render */
|
|
92
|
+
this.isSourceEmpty = true;
|
|
93
|
+
/** Pinned top Source: {[T in ColumnProp]: any} - defines pinned top rows data source. */
|
|
94
|
+
this.pinnedTopSource = [];
|
|
95
|
+
/** Pinned bottom Source: {[T in ColumnProp]: any} - defines pinned bottom rows data source. */
|
|
96
|
+
this.pinnedBottomSource = [];
|
|
97
|
+
/** Custom row properies to be applied. See `RowDefinition` for more info. */
|
|
98
|
+
this.rowDefinitions = [];
|
|
99
|
+
/** Custom editors register. */
|
|
100
|
+
this.editors = {};
|
|
101
|
+
/**
|
|
102
|
+
* Apply changes in editor when closed except 'Escape' cases.
|
|
103
|
+
* If custom editor in use method getValue required.
|
|
104
|
+
* Check interfaces.d.ts `EditorBase` for more info.
|
|
105
|
+
*/
|
|
106
|
+
this.applyOnClose = false;
|
|
107
|
+
/**
|
|
108
|
+
* Custom grid plugins. Can be added or removed at runtime.
|
|
109
|
+
* Every plugin should be inherited from BasePlugin class.
|
|
110
|
+
*
|
|
111
|
+
* For more details check [Plugin guide](https://rv-grid.com/guide/plugin/)
|
|
112
|
+
*/
|
|
113
|
+
this.plugins = [];
|
|
114
|
+
/**
|
|
115
|
+
* Column Types Format.
|
|
116
|
+
* Every type represent multiple column properties.
|
|
117
|
+
* Types will be merged but can be replaced with column properties.
|
|
118
|
+
* Types were made as separate objects to be reusable per multiple columns.
|
|
119
|
+
*/
|
|
120
|
+
this.columnTypes = {};
|
|
121
|
+
/** Theme name. */
|
|
122
|
+
this.theme = 'default';
|
|
123
|
+
/**
|
|
124
|
+
* Row class property mapping.
|
|
125
|
+
* Map custom classes to rows from row object data.
|
|
126
|
+
* Define this property in rgRow object and this will be mapped as rgRow class.
|
|
127
|
+
*/
|
|
128
|
+
this.rowClass = '';
|
|
129
|
+
/**
|
|
130
|
+
* Autosize config.
|
|
131
|
+
* Enables columns autoSize.
|
|
132
|
+
* For more details check `autoSizeColumn` plugin.
|
|
133
|
+
* By default disabled, hence operation is not performance efficient.
|
|
134
|
+
* `true` to enable with default params (double header separator click for autosize).
|
|
135
|
+
* Or define config. See `AutoSizeColumnConfig` for more details.
|
|
136
|
+
*/
|
|
137
|
+
this.autoSizeColumn = false;
|
|
138
|
+
/**
|
|
139
|
+
* Enables filter plugin.
|
|
140
|
+
* Can be boolean.
|
|
141
|
+
* Or can be filter collection See `FilterCollection` for more info.
|
|
142
|
+
*/
|
|
143
|
+
this.filter = false;
|
|
144
|
+
/**
|
|
145
|
+
* Enable column move plugin.
|
|
146
|
+
*/
|
|
147
|
+
this.canMoveColumns = false;
|
|
148
|
+
/**
|
|
149
|
+
* Trimmed rows.
|
|
150
|
+
* Functionality which allows to hide rows from main data set.
|
|
151
|
+
* `trimmedRows` are physical `rgRow` indexes to hide.
|
|
152
|
+
*/
|
|
153
|
+
this.trimmedRows = {};
|
|
154
|
+
/**
|
|
155
|
+
* Enable export plugin.
|
|
156
|
+
*/
|
|
157
|
+
this.exporting = false;
|
|
158
|
+
/**
|
|
159
|
+
* Stretch strategy for columns by `StretchColumn` plugin.
|
|
160
|
+
* For example if there are more space on the right last column size would be increased.
|
|
161
|
+
*/
|
|
162
|
+
this.stretch = false;
|
|
163
|
+
/**
|
|
164
|
+
* Additional data to be passed to plugins, renders or editors.
|
|
165
|
+
* For example if you need to pass Vue component instance.
|
|
166
|
+
*/
|
|
167
|
+
this.additionalData = {};
|
|
168
|
+
/**
|
|
169
|
+
* Disable lazy rendering mode for the `X axis`.
|
|
170
|
+
* Use when not many columns present and you don't need rerenader cells during scroll.
|
|
171
|
+
* Can be used for initial rendering performance improvement.
|
|
172
|
+
*/
|
|
173
|
+
this.disableVirtualX = false;
|
|
174
|
+
/**
|
|
175
|
+
* Disable lazy rendering mode for the `Y axis`.
|
|
176
|
+
* Use when not many rows present and you don't need rerenader cells during scroll.
|
|
177
|
+
* Can be used for initial rendering performance improvement.
|
|
178
|
+
*/
|
|
179
|
+
this.disableVirtualY = false;
|
|
180
|
+
/**
|
|
181
|
+
* Please only hide the attribution if you are subscribed to Pro version
|
|
182
|
+
*/
|
|
183
|
+
this.hideAttribution = false;
|
|
184
|
+
/**
|
|
185
|
+
* Prevent rendering until job is done.
|
|
186
|
+
* Can be used for initial rendering performance improvement.
|
|
187
|
+
* When several plugins require initial rendering this will prevent double initial rendering.
|
|
188
|
+
*/
|
|
189
|
+
this.jobsBeforeRender = [];
|
|
190
|
+
/**
|
|
191
|
+
* Register new virtual node inside of grid.
|
|
192
|
+
* Used for additional items creation such as plugin elements.
|
|
193
|
+
* Should be set before grid render inside of plugins.
|
|
194
|
+
* Can return VNode result of h() function or a function that returns VNode.
|
|
195
|
+
* Function can be used for performance improvement and additional renders.
|
|
196
|
+
*/
|
|
197
|
+
this.registerVNode = [];
|
|
198
|
+
/**
|
|
199
|
+
* Enable accessibility. If disabled, the grid will not be accessible.
|
|
200
|
+
* @default true
|
|
201
|
+
*/
|
|
202
|
+
this.accessible = true;
|
|
203
|
+
/**
|
|
204
|
+
* Enable right-to-left (RTL) mode. When enabled, columns will be displayed from right to left.
|
|
205
|
+
* @default false
|
|
206
|
+
*/
|
|
207
|
+
this.rtl = false;
|
|
208
|
+
/**
|
|
209
|
+
* Disable native drag&drop plugin.
|
|
210
|
+
*/
|
|
211
|
+
this.canDrag = true;
|
|
212
|
+
/**
|
|
213
|
+
* Show scrollbars. When false, scrollbars will be hidden.
|
|
214
|
+
* @default true
|
|
215
|
+
*/
|
|
216
|
+
this.showScrollbar = true;
|
|
217
|
+
/**
|
|
218
|
+
* Hide empty placeholder during initial loading.
|
|
219
|
+
* Set to true when loading data asynchronously.
|
|
220
|
+
* @default false
|
|
221
|
+
*/
|
|
222
|
+
this.hideEmpty = false;
|
|
223
|
+
/**
|
|
224
|
+
* Disable scrolling. When true, the grid will not respond to scroll events.
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
this.disableScroll = false;
|
|
228
|
+
/**
|
|
229
|
+
* Auto scroll to focused cell. When true, the grid will automatically scroll to make the focused cell visible.
|
|
230
|
+
* @default false
|
|
231
|
+
*/
|
|
232
|
+
this.autoScrollToFocus = false;
|
|
233
|
+
this.columnsUpdateNonce = 0;
|
|
234
|
+
this.extraElements = [];
|
|
235
|
+
this.pluginService = new PluginService();
|
|
236
|
+
this.viewport = null;
|
|
237
|
+
this.isInited = false;
|
|
238
|
+
this.columnsVersion = 0;
|
|
239
|
+
this.columnsUpdateToken = 0;
|
|
240
|
+
this.dataUpdateToken = 0;
|
|
241
|
+
// 暂时保留,后续可能使用
|
|
242
|
+
this._hasGroupingValue = false;
|
|
243
|
+
}
|
|
244
|
+
// #endregion
|
|
245
|
+
// #region Methods
|
|
246
|
+
/**
|
|
247
|
+
* Refreshes data viewport.
|
|
248
|
+
* Can be specific part as rgRow or pinned rgRow or 'all' by default.
|
|
249
|
+
*/
|
|
250
|
+
async refresh(type = 'all') {
|
|
251
|
+
if (!this.dataProvider) {
|
|
252
|
+
throw new Error('Not connected');
|
|
253
|
+
}
|
|
254
|
+
this.dataProvider.refresh(type);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Refreshes data at specified cell.
|
|
258
|
+
* Useful for performance optimization.
|
|
259
|
+
* No viewport update will be triggered.
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* const grid = document.querySelector('revo-grid');
|
|
263
|
+
* grid.setDataAt({ row: 0, col: 0, val: 'test' }); // refresh
|
|
264
|
+
*/
|
|
265
|
+
async setDataAt({ row, col, colType = 'rgCol', rowType = 'rgRow', val, skipDataUpdate = false }) {
|
|
266
|
+
var _a;
|
|
267
|
+
if (this.dataProvider && this.columnProvider && !skipDataUpdate) {
|
|
268
|
+
const columnProp = (_a = this.columnProvider.getColumn(col, colType)) === null || _a === void 0 ? void 0 : _a.prop;
|
|
269
|
+
if (typeof columnProp !== 'undefined') {
|
|
270
|
+
this.dataProvider.setCellData({
|
|
271
|
+
type: rowType,
|
|
272
|
+
rowIndex: row,
|
|
273
|
+
prop: columnProp,
|
|
274
|
+
val,
|
|
275
|
+
}, false);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
const dataElement = this.element.querySelector(`revogr-data[type="${rowType}"][col-type="${colType}"]`);
|
|
279
|
+
return dataElement === null || dataElement === void 0 ? void 0 : dataElement.updateCell({
|
|
280
|
+
row,
|
|
281
|
+
col,
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Scrolls viewport to specified row by index.
|
|
286
|
+
*/
|
|
287
|
+
async scrollToRow(coordinate = 0) {
|
|
288
|
+
if (!this.dimensionProvider) {
|
|
289
|
+
throw new Error('Not connected');
|
|
290
|
+
}
|
|
291
|
+
const y = this.dimensionProvider.getViewPortPos({
|
|
292
|
+
coordinate,
|
|
293
|
+
dimension: 'rgRow',
|
|
294
|
+
});
|
|
295
|
+
await this.scrollToCoordinate({ y });
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Scrolls viewport to specified column by index.
|
|
299
|
+
*/
|
|
300
|
+
async scrollToColumnIndex(coordinate = 0) {
|
|
301
|
+
if (!this.dimensionProvider) {
|
|
302
|
+
throw new Error('Not connected');
|
|
303
|
+
}
|
|
304
|
+
const x = this.dimensionProvider.getViewPortPos({
|
|
305
|
+
coordinate,
|
|
306
|
+
dimension: 'rgCol',
|
|
307
|
+
});
|
|
308
|
+
await this.scrollToCoordinate({ x });
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Scrolls viewport to specified column by prop
|
|
312
|
+
*/
|
|
313
|
+
async scrollToColumnProp(prop, dimension = 'rgCol') {
|
|
314
|
+
if (!this.dimensionProvider || !this.columnProvider) {
|
|
315
|
+
throw new Error('Not connected');
|
|
316
|
+
}
|
|
317
|
+
const coordinate = this.columnProvider.getColumnIndexByProp(prop, dimension);
|
|
318
|
+
if (coordinate < 0) {
|
|
319
|
+
// already on the screen
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
const x = this.dimensionProvider.getViewPortPos({
|
|
323
|
+
coordinate,
|
|
324
|
+
dimension,
|
|
325
|
+
});
|
|
326
|
+
await this.scrollToCoordinate({ x });
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Scrolls viewport to row by property value
|
|
330
|
+
* @param propName - Property name to search for (e.g., 'id', 'name')
|
|
331
|
+
* @param value - Value to match
|
|
332
|
+
* @param type - Row type, default 'rgRow'
|
|
333
|
+
* @returns true if row found and scrolled, false otherwise
|
|
334
|
+
*/
|
|
335
|
+
async scrollToRowByProp(propName, value, type = 'rgRow') {
|
|
336
|
+
if (!this.dimensionProvider || !this.dataProvider) {
|
|
337
|
+
throw new Error('Not connected');
|
|
338
|
+
}
|
|
339
|
+
const dataStore = this.dataProvider.stores[type];
|
|
340
|
+
if (!dataStore) {
|
|
341
|
+
return false;
|
|
342
|
+
}
|
|
343
|
+
const source = dataStore.store.get('source');
|
|
344
|
+
// 查找目标行的物理索引
|
|
345
|
+
const physicalIndex = source.findIndex((row) => row[propName] === value);
|
|
346
|
+
if (physicalIndex < 0) {
|
|
347
|
+
return false;
|
|
348
|
+
}
|
|
349
|
+
// 检查行是否可见
|
|
350
|
+
let items = dataStore.store.get('items');
|
|
351
|
+
let virtualIndex = items.indexOf(physicalIndex);
|
|
352
|
+
// 如果不可见,尝试展开父节点
|
|
353
|
+
if (virtualIndex < 0) {
|
|
354
|
+
const targetRow = source[physicalIndex];
|
|
355
|
+
// 先展开分组父节点(分组在外层)
|
|
356
|
+
await this.expandGroupAncestors(physicalIndex, source, dataStore);
|
|
357
|
+
// 重新检查
|
|
358
|
+
items = dataStore.store.get('items');
|
|
359
|
+
virtualIndex = items.indexOf(physicalIndex);
|
|
360
|
+
// 再展开树形父节点
|
|
361
|
+
if (virtualIndex < 0) {
|
|
362
|
+
await this.expandTreeAncestors(targetRow, source);
|
|
363
|
+
// 最后检查
|
|
364
|
+
items = dataStore.store.get('items');
|
|
365
|
+
virtualIndex = items.indexOf(physicalIndex);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (virtualIndex < 0) {
|
|
369
|
+
console.warn(`Row with ${propName}=${value} is hidden and cannot be expanded.`);
|
|
370
|
+
return false;
|
|
371
|
+
}
|
|
372
|
+
await this.scrollToRow(virtualIndex);
|
|
373
|
+
return true;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* 展开树形结构的所有祖先节点
|
|
377
|
+
*/
|
|
378
|
+
async expandTreeAncestors(targetRow, source) {
|
|
379
|
+
var _a, _b, _c;
|
|
380
|
+
const treePlugin = this.pluginService.getByClass(TreeDataPlugin);
|
|
381
|
+
if (!treePlugin || !((_a = this.additionalData) === null || _a === void 0 ? void 0 : _a.tree)) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
const { idField = 'id', parentIdField = 'parentId', rootParentId = '' } = this.additionalData.tree;
|
|
385
|
+
// 收集所有祖先节点
|
|
386
|
+
const ancestors = [];
|
|
387
|
+
let currentParentId = targetRow[parentIdField];
|
|
388
|
+
while (currentParentId !== undefined && currentParentId !== rootParentId) {
|
|
389
|
+
const parentRow = source.find((row) => row[idField] === currentParentId);
|
|
390
|
+
if (!parentRow)
|
|
391
|
+
break;
|
|
392
|
+
ancestors.unshift(parentRow);
|
|
393
|
+
currentParentId = parentRow[parentIdField];
|
|
394
|
+
}
|
|
395
|
+
if (ancestors.length === 0) {
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
// 展开所有祖先
|
|
399
|
+
const expandedRowIds = treePlugin.expandedRowIds;
|
|
400
|
+
for (const ancestor of ancestors) {
|
|
401
|
+
const ancestorId = ancestor[idField];
|
|
402
|
+
if (!(expandedRowIds === null || expandedRowIds === void 0 ? void 0 : expandedRowIds.has(ancestorId))) {
|
|
403
|
+
expandedRowIds === null || expandedRowIds === void 0 ? void 0 : expandedRowIds.add(ancestorId);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
// 更新树形结构
|
|
407
|
+
(_c = (_b = treePlugin).updateTree) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
408
|
+
await new Promise(resolve => setTimeout(resolve, 50));
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* 展开分组的所有父分组
|
|
412
|
+
*/
|
|
413
|
+
async expandGroupAncestors(physicalIndex, source, dataStore) {
|
|
414
|
+
var _a, _b, _c;
|
|
415
|
+
const groupingPlugin = this.pluginService.getByClass(GroupingRowPlugin);
|
|
416
|
+
if (!groupingPlugin || !((_a = this.grouping) === null || _a === void 0 ? void 0 : _a.props)) {
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
const GROUP_EXPANDED = '__rvgr-group-expanded';
|
|
420
|
+
const PSEUDO_GROUP_ITEM_VALUE = '__rvgr-group-value';
|
|
421
|
+
const GROUP_CHILDREN_INDICES = '__rvgr-children';
|
|
422
|
+
const TRIMMED_GROUPING = 'grouping';
|
|
423
|
+
const isGroupRow = (row) => row && row['__rvgr-depth'] !== undefined;
|
|
424
|
+
// 查找所有包含目标行的折叠分组
|
|
425
|
+
const allContainingGroups = [];
|
|
426
|
+
const groupsToExpand = [];
|
|
427
|
+
for (let i = physicalIndex - 1; i >= 0; i--) {
|
|
428
|
+
const row = source[i];
|
|
429
|
+
if (!isGroupRow(row)) {
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
// 检查此分组是否包含目标行
|
|
433
|
+
if (this.isRowInGroup(i, physicalIndex, source, row[PSEUDO_GROUP_ITEM_VALUE], row[GROUP_CHILDREN_INDICES])) {
|
|
434
|
+
allContainingGroups.unshift(i);
|
|
435
|
+
if (!row[GROUP_EXPANDED]) {
|
|
436
|
+
groupsToExpand.unshift(i);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
const targetGroupingTrimmed = !!((_c = (_b = dataStore.store.get('trimmed')) === null || _b === void 0 ? void 0 : _b[TRIMMED_GROUPING]) === null || _c === void 0 ? void 0 : _c[physicalIndex]);
|
|
441
|
+
// 修复场景:目标行仍被 grouping trimmed,但路径分组都标记为已展开。
|
|
442
|
+
// 这种情况下重放一次 doExpand,强制同步 grouping trimmed 状态。
|
|
443
|
+
if (groupsToExpand.length === 0 && targetGroupingTrimmed && allContainingGroups.length > 0) {
|
|
444
|
+
groupsToExpand.push(...allContainingGroups);
|
|
445
|
+
}
|
|
446
|
+
if (groupsToExpand.length === 0) {
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
// 动态导入展开服务
|
|
450
|
+
const { doExpand } = await import('../../plugins/groupingRow/grouping.row.expand.service');
|
|
451
|
+
// 按层级从外到内展开
|
|
452
|
+
for (const groupPhysicalIndex of groupsToExpand) {
|
|
453
|
+
const currentSource = dataStore.store.get('source');
|
|
454
|
+
const currentItems = dataStore.store.get('items');
|
|
455
|
+
const vIndex = currentItems.indexOf(groupPhysicalIndex);
|
|
456
|
+
if (vIndex < 0) {
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
// 标记为展开
|
|
460
|
+
currentSource[groupPhysicalIndex][GROUP_EXPANDED] = true;
|
|
461
|
+
// 计算展开后的状态
|
|
462
|
+
const result = doExpand(vIndex, currentSource, currentItems);
|
|
463
|
+
if (result.items) {
|
|
464
|
+
dataStore.store.set('items', result.items);
|
|
465
|
+
}
|
|
466
|
+
// 更新 trimmed
|
|
467
|
+
const currentTrimmed = dataStore.store.get('trimmed');
|
|
468
|
+
const newTrimmed = Object.assign(Object.assign({}, currentTrimmed[TRIMMED_GROUPING]), result.trimmed);
|
|
469
|
+
await this.addTrimmed(newTrimmed, TRIMMED_GROUPING);
|
|
470
|
+
await new Promise(resolve => setTimeout(resolve, 50));
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* 检查目标行是否在指定分组内
|
|
475
|
+
*/
|
|
476
|
+
isRowInGroup(groupIndex, targetIndex, source, groupValue, groupChildrenIndices) {
|
|
477
|
+
if (Array.isArray(groupChildrenIndices)) {
|
|
478
|
+
return groupChildrenIndices.includes(targetIndex);
|
|
479
|
+
}
|
|
480
|
+
const isGroupRow = (row) => row && row['__rvgr-depth'] !== undefined;
|
|
481
|
+
const PSEUDO_GROUP_ITEM_VALUE = '__rvgr-group-value';
|
|
482
|
+
for (let j = groupIndex + 1; j < source.length; j++) {
|
|
483
|
+
if (j === targetIndex) {
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
const nextRow = source[j];
|
|
487
|
+
if (isGroupRow(nextRow)) {
|
|
488
|
+
const nextValue = nextRow[PSEUDO_GROUP_ITEM_VALUE];
|
|
489
|
+
if (!nextValue || !nextValue.startsWith(groupValue + ',')) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return false;
|
|
495
|
+
}
|
|
496
|
+
/** Update columns */
|
|
497
|
+
async updateColumns(cols) {
|
|
498
|
+
var _a;
|
|
499
|
+
(_a = this.columnProvider) === null || _a === void 0 ? void 0 : _a.updateColumns(cols);
|
|
500
|
+
}
|
|
501
|
+
/** Add trimmed by type */
|
|
502
|
+
async addTrimmed(trimmed, trimmedType = 'external', type = 'rgRow') {
|
|
503
|
+
if (!this.dataProvider) {
|
|
504
|
+
throw new Error('Not connected');
|
|
505
|
+
}
|
|
506
|
+
const event = this.beforetrimmed.emit({
|
|
507
|
+
trimmed,
|
|
508
|
+
trimmedType,
|
|
509
|
+
type,
|
|
510
|
+
});
|
|
511
|
+
if (event.defaultPrevented) {
|
|
512
|
+
return event;
|
|
513
|
+
}
|
|
514
|
+
this.dataProvider.setTrimmed({ [trimmedType]: event.detail.trimmed }, type);
|
|
515
|
+
this.aftertrimmed.emit();
|
|
516
|
+
return event;
|
|
517
|
+
}
|
|
518
|
+
/** Scrolls view port to coordinate */
|
|
519
|
+
async scrollToCoordinate(cell) {
|
|
520
|
+
var _a;
|
|
521
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.scrollToCell(cell);
|
|
522
|
+
}
|
|
523
|
+
/** Open editor for cell. */
|
|
524
|
+
async setCellEdit(rgRow, prop, rowSource = 'rgRow') {
|
|
525
|
+
var _a;
|
|
526
|
+
const rgCol = getColumnByProp(this.columns, prop);
|
|
527
|
+
if (!rgCol) {
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
await timeout();
|
|
531
|
+
const colGroup = rgCol.pin || 'rgCol';
|
|
532
|
+
if (!this.columnProvider) {
|
|
533
|
+
throw new Error('Not connected');
|
|
534
|
+
}
|
|
535
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.setEdit(rgRow, this.columnProvider.getColumnIndexByProp(prop, colGroup), colGroup, rowSource);
|
|
536
|
+
}
|
|
537
|
+
/** Set focus range. */
|
|
538
|
+
async setCellsFocus(cellStart = { x: 0, y: 0 }, cellEnd = { x: 0, y: 0 }, colType = 'rgCol', rowType = 'rgRow') {
|
|
539
|
+
var _a;
|
|
540
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.setFocus(colType, rowType, cellStart, cellEnd);
|
|
541
|
+
}
|
|
542
|
+
/** Get data from source */
|
|
543
|
+
async getSource(type = 'rgRow') {
|
|
544
|
+
if (!this.dataProvider) {
|
|
545
|
+
throw new Error('Not connected');
|
|
546
|
+
}
|
|
547
|
+
return this.dataProvider.stores[type].store.get('source');
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Get data from visible part of source
|
|
551
|
+
* Trimmed/filtered rows will be excluded
|
|
552
|
+
* @param type - type of source
|
|
553
|
+
*/
|
|
554
|
+
async getVisibleSource(type = 'rgRow') {
|
|
555
|
+
if (!this.dataProvider) {
|
|
556
|
+
throw new Error('Not connected');
|
|
557
|
+
}
|
|
558
|
+
return getVisibleSourceItem(this.dataProvider.stores[type].store);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Provides access to rows internal store observer
|
|
562
|
+
* Can be used for plugin support
|
|
563
|
+
* @param type - type of source
|
|
564
|
+
*/
|
|
565
|
+
async getSourceStore(type = 'rgRow') {
|
|
566
|
+
if (!this.dataProvider) {
|
|
567
|
+
throw new Error('Not connected');
|
|
568
|
+
}
|
|
569
|
+
return this.dataProvider.stores[type].store;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Provides access to column internal store observer
|
|
573
|
+
* Can be used for plugin support
|
|
574
|
+
* @param type - type of column
|
|
575
|
+
*/
|
|
576
|
+
async getColumnStore(type = 'rgCol') {
|
|
577
|
+
if (!this.columnProvider) {
|
|
578
|
+
throw new Error('Not connected');
|
|
579
|
+
}
|
|
580
|
+
return this.columnProvider.stores[type].store;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Update column sorting
|
|
584
|
+
* @param column - column prop and cellCompare
|
|
585
|
+
* @param order - order to apply
|
|
586
|
+
* @param additive - if false will replace current order
|
|
587
|
+
*
|
|
588
|
+
* later passed to SortingPlugin
|
|
589
|
+
*/
|
|
590
|
+
async updateColumnSorting(column, order, additive) {
|
|
591
|
+
this.sortingconfigchanged.emit({
|
|
592
|
+
columns: [{
|
|
593
|
+
prop: column.prop,
|
|
594
|
+
order,
|
|
595
|
+
cellCompare: column.cellCompare,
|
|
596
|
+
}],
|
|
597
|
+
additive,
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Clears column sorting
|
|
602
|
+
*/
|
|
603
|
+
async clearSorting() {
|
|
604
|
+
this.sortingconfigchanged.emit({
|
|
605
|
+
columns: [],
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Receive all columns in data source
|
|
610
|
+
*/
|
|
611
|
+
async getColumns() {
|
|
612
|
+
if (!this.columnProvider) {
|
|
613
|
+
throw new Error('Not connected');
|
|
614
|
+
}
|
|
615
|
+
return this.columnProvider.getColumns();
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Clear current grid focus. Grid has no longer focus on it.
|
|
619
|
+
*/
|
|
620
|
+
async clearFocus() {
|
|
621
|
+
var _a, _b;
|
|
622
|
+
const focused = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused();
|
|
623
|
+
const event = this.beforefocuslost.emit(focused);
|
|
624
|
+
if (event.defaultPrevented) {
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
627
|
+
(_b = this.selectionStoreConnector) === null || _b === void 0 ? void 0 : _b.clearAll();
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Get all active plugins instances
|
|
631
|
+
*/
|
|
632
|
+
async getPlugins() {
|
|
633
|
+
return this.pluginService.get();
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Get the currently focused cell.
|
|
637
|
+
*/
|
|
638
|
+
async getFocused() {
|
|
639
|
+
var _a, _b;
|
|
640
|
+
return (_b = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused()) !== null && _b !== void 0 ? _b : null;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Get size of content
|
|
644
|
+
* Including all pinned data
|
|
645
|
+
*/
|
|
646
|
+
async getContentSize() {
|
|
647
|
+
var _a;
|
|
648
|
+
if (!this.dimensionProvider) {
|
|
649
|
+
throw new Error('Not connected');
|
|
650
|
+
}
|
|
651
|
+
return (_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.getFullSize();
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Get the currently selected Range.
|
|
655
|
+
*/
|
|
656
|
+
async getSelectedRange() {
|
|
657
|
+
var _a, _b;
|
|
658
|
+
return (_b = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getSelectedRange()) !== null && _b !== void 0 ? _b : null;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Refresh extra elements. Triggers re-rendering of extra elements and functions.
|
|
662
|
+
* Part of extraElements and registerVNode methods.
|
|
663
|
+
* Useful for plugins.
|
|
664
|
+
*/
|
|
665
|
+
async refreshExtraElements() {
|
|
666
|
+
var _a;
|
|
667
|
+
(_a = this.extraService) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Get all providers for grid
|
|
671
|
+
* Useful for external grid integration
|
|
672
|
+
*/
|
|
673
|
+
async getProviders() {
|
|
674
|
+
return this.getPluginData();
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Lock scrolling. Prevents the grid from responding to scroll events.
|
|
678
|
+
*/
|
|
679
|
+
async lockScroll() {
|
|
680
|
+
this.disableScroll = true;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Unlock scrolling. Allows the grid to respond to scroll events.
|
|
684
|
+
*/
|
|
685
|
+
async unlockScroll() {
|
|
686
|
+
this.disableScroll = false;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Get current scroll lock state.
|
|
690
|
+
*/
|
|
691
|
+
async isScrollLocked() {
|
|
692
|
+
return this.disableScroll;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Hide rows by ID field value
|
|
696
|
+
* @param ids - Array of ID values to hide
|
|
697
|
+
* @param idField - ID field name, default 'id'
|
|
698
|
+
* @param trimmedType - Trimmed type identifier, default 'byId'
|
|
699
|
+
* @param type - Row type, default 'rgRow'
|
|
700
|
+
* @returns Event with trimmed row indexes
|
|
701
|
+
*/
|
|
702
|
+
async hideRowsById(ids, idField = 'id', trimmedType = 'byId', type = 'rgRow') {
|
|
703
|
+
if (!this.dataProvider) {
|
|
704
|
+
throw new Error('Not connected');
|
|
705
|
+
}
|
|
706
|
+
const source = await this.getSource(type);
|
|
707
|
+
const trimmed = {};
|
|
708
|
+
// Find physical indexes by ID
|
|
709
|
+
source.forEach((row, index) => {
|
|
710
|
+
if (ids.includes(row[idField])) {
|
|
711
|
+
trimmed[index] = true;
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
return this.addTrimmed(trimmed, trimmedType, type);
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Show rows by ID field value (remove from trimmed)
|
|
718
|
+
* @param ids - Array of ID values to show, if empty will show all rows
|
|
719
|
+
* @param idField - ID field name, default 'id'
|
|
720
|
+
* @param trimmedType - Trimmed type identifier, default 'byId'
|
|
721
|
+
* @param type - Row type, default 'rgRow'
|
|
722
|
+
*/
|
|
723
|
+
async showRowsById(ids = [], idField = 'id', trimmedType = 'byId', type = 'rgRow') {
|
|
724
|
+
if (!this.dataProvider) {
|
|
725
|
+
throw new Error('Not connected');
|
|
726
|
+
}
|
|
727
|
+
if (ids.length === 0) {
|
|
728
|
+
// Clear all trimmed rows of this type
|
|
729
|
+
return this.addTrimmed({}, trimmedType, type);
|
|
730
|
+
}
|
|
731
|
+
const source = await this.getSource(type);
|
|
732
|
+
const currentTrimmed = this.dataProvider.stores[type].store.get('trimmed');
|
|
733
|
+
const typeTrimmed = currentTrimmed[trimmedType] || {};
|
|
734
|
+
const newTrimmed = Object.assign({}, typeTrimmed);
|
|
735
|
+
// Remove specified IDs from trimmed
|
|
736
|
+
source.forEach((row, index) => {
|
|
737
|
+
if (ids.includes(row[idField]) && newTrimmed[index]) {
|
|
738
|
+
delete newTrimmed[index];
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
return this.addTrimmed(newTrimmed, trimmedType, type);
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Delete rows by ID field value (physically remove from source)
|
|
745
|
+
* @param ids - Array of ID values to delete
|
|
746
|
+
* @param idField - ID field name, default 'id'
|
|
747
|
+
* @param type - Row type, default 'rgRow'
|
|
748
|
+
* @returns New source array after deletion
|
|
749
|
+
*/
|
|
750
|
+
async deleteRowsById(ids, idField = 'id', type = 'rgRow') {
|
|
751
|
+
if (!this.dataProvider) {
|
|
752
|
+
throw new Error('Not connected');
|
|
753
|
+
}
|
|
754
|
+
const source = await this.getSource(type);
|
|
755
|
+
const newSource = source.filter((row) => !ids.includes(row[idField]));
|
|
756
|
+
// Update the appropriate source property
|
|
757
|
+
switch (type) {
|
|
758
|
+
case 'rgRow':
|
|
759
|
+
this.source = newSource;
|
|
760
|
+
break;
|
|
761
|
+
case 'rowPinStart':
|
|
762
|
+
this.pinnedTopSource = newSource;
|
|
763
|
+
break;
|
|
764
|
+
case 'rowPinEnd':
|
|
765
|
+
this.pinnedBottomSource = newSource;
|
|
766
|
+
break;
|
|
767
|
+
}
|
|
768
|
+
return newSource;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Delete rows by physical indexes
|
|
772
|
+
* @param indexes - Array of physical row indexes to delete
|
|
773
|
+
* @param type - Row type, default 'rgRow'
|
|
774
|
+
* @returns New source array after deletion
|
|
775
|
+
*/
|
|
776
|
+
async deleteRowsByIndexes(indexes, type = 'rgRow') {
|
|
777
|
+
if (!this.dataProvider) {
|
|
778
|
+
throw new Error('Not connected');
|
|
779
|
+
}
|
|
780
|
+
const source = await this.getSource(type);
|
|
781
|
+
const indexSet = new Set(indexes);
|
|
782
|
+
const newSource = source.filter((_, index) => !indexSet.has(index));
|
|
783
|
+
// Update the appropriate source property
|
|
784
|
+
switch (type) {
|
|
785
|
+
case 'rgRow':
|
|
786
|
+
this.source = newSource;
|
|
787
|
+
break;
|
|
788
|
+
case 'rowPinStart':
|
|
789
|
+
this.pinnedTopSource = newSource;
|
|
790
|
+
break;
|
|
791
|
+
case 'rowPinEnd':
|
|
792
|
+
this.pinnedBottomSource = newSource;
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
return newSource;
|
|
796
|
+
}
|
|
797
|
+
mousedownHandle(event) {
|
|
798
|
+
const screenX = getPropertyFromEvent(event, 'screenX');
|
|
799
|
+
const screenY = getPropertyFromEvent(event, 'screenY');
|
|
800
|
+
if (screenX === null || screenY === null) {
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
this.clickTrackForFocusClear = screenX + screenY;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* To keep your elements from losing focus use mouseup/touchend e.preventDefault();
|
|
807
|
+
*/
|
|
808
|
+
async mouseupHandle(event) {
|
|
809
|
+
var _a;
|
|
810
|
+
const screenX = getPropertyFromEvent(event, 'screenX');
|
|
811
|
+
const screenY = getPropertyFromEvent(event, 'screenY');
|
|
812
|
+
if (screenX === null || screenY === null) {
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
815
|
+
if (event.defaultPrevented) {
|
|
816
|
+
return;
|
|
817
|
+
}
|
|
818
|
+
const pos = screenX + screenY;
|
|
819
|
+
// detect if mousemove then do nothing
|
|
820
|
+
if (Math.abs(((_a = this.clickTrackForFocusClear) !== null && _a !== void 0 ? _a : 0) - pos) > 10) {
|
|
821
|
+
return;
|
|
822
|
+
}
|
|
823
|
+
// Check if action finished inside the document
|
|
824
|
+
// if event prevented, or it is current table don't clear focus
|
|
825
|
+
const path = event.composedPath();
|
|
826
|
+
if (!path.includes(this.element) &&
|
|
827
|
+
!(this.element.shadowRoot && path.includes(this.element.shadowRoot))) {
|
|
828
|
+
// Perform actions if the click is outside the component
|
|
829
|
+
await this.clearFocus();
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
// #endregion
|
|
833
|
+
// #region Listeners
|
|
834
|
+
/** Drag events */
|
|
835
|
+
onRowDragStarted(e) {
|
|
836
|
+
var _a;
|
|
837
|
+
const dragStart = this.rowdragstart.emit(e.detail);
|
|
838
|
+
if (dragStart.defaultPrevented) {
|
|
839
|
+
e.preventDefault();
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.start(this.element, Object.assign(Object.assign({}, e.detail), dragStart.detail));
|
|
843
|
+
}
|
|
844
|
+
onRowDragEnd() {
|
|
845
|
+
var _a;
|
|
846
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.end();
|
|
847
|
+
}
|
|
848
|
+
onRowOrderChange(e) {
|
|
849
|
+
var _a;
|
|
850
|
+
(_a = this.dataProvider) === null || _a === void 0 ? void 0 : _a.changeOrder(e.detail);
|
|
851
|
+
}
|
|
852
|
+
onRowDrag({ detail }) {
|
|
853
|
+
var _a;
|
|
854
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.move(detail);
|
|
855
|
+
}
|
|
856
|
+
onRowMouseMove(e) {
|
|
857
|
+
var _a;
|
|
858
|
+
(_a = this.orderService) === null || _a === void 0 ? void 0 : _a.moveTip(e.detail);
|
|
859
|
+
}
|
|
860
|
+
async onCellEdit(e) {
|
|
861
|
+
var _a;
|
|
862
|
+
const { defaultPrevented, detail } = this.beforeedit.emit(e.detail);
|
|
863
|
+
await timeout();
|
|
864
|
+
// apply data
|
|
865
|
+
if (!defaultPrevented) {
|
|
866
|
+
(_a = this.dataProvider) === null || _a === void 0 ? void 0 : _a.setCellData(detail);
|
|
867
|
+
// @feature: incrimental update for cells
|
|
868
|
+
// this.dataProvider.setCellData(detail, false);
|
|
869
|
+
// await this.setDataAt({
|
|
870
|
+
// row: detail.rowIndex,
|
|
871
|
+
// col: detail.colIndex,
|
|
872
|
+
// rowType: detail.type,
|
|
873
|
+
// colType: detail.colType,
|
|
874
|
+
// });
|
|
875
|
+
this.afteredit.emit(detail);
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
onRangeEdit(e) {
|
|
879
|
+
if (!this.dataProvider) {
|
|
880
|
+
throw new Error('Not connected');
|
|
881
|
+
}
|
|
882
|
+
const { defaultPrevented, detail } = this.beforerangeedit.emit(e.detail);
|
|
883
|
+
if (defaultPrevented) {
|
|
884
|
+
e.preventDefault();
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
this.dataProvider.setRangeData(detail.data, detail.type);
|
|
888
|
+
this.afteredit.emit(detail);
|
|
889
|
+
}
|
|
890
|
+
onRangeChanged(e) {
|
|
891
|
+
const beforeange = this.beforerange.emit(e.detail);
|
|
892
|
+
if (beforeange.defaultPrevented) {
|
|
893
|
+
e.preventDefault();
|
|
894
|
+
}
|
|
895
|
+
const beforeFill = this.beforeautofill.emit(beforeange.detail);
|
|
896
|
+
if (beforeFill.defaultPrevented) {
|
|
897
|
+
e.preventDefault();
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
onRowDropped(e) {
|
|
901
|
+
// e.cancelBubble = true;
|
|
902
|
+
const { defaultPrevented } = this.roworderchanged.emit(e.detail);
|
|
903
|
+
if (defaultPrevented) {
|
|
904
|
+
e.preventDefault();
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
onHeaderClick(e) {
|
|
908
|
+
const { defaultPrevented } = this.headerclick.emit(Object.assign(Object.assign({}, e.detail.column), { originalEvent: e.detail.originalEvent }));
|
|
909
|
+
if (defaultPrevented) {
|
|
910
|
+
e.preventDefault();
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
onCellFocus(e) {
|
|
914
|
+
const { defaultPrevented } = this.beforecellfocus.emit(e.detail);
|
|
915
|
+
if (!this.canFocus || defaultPrevented) {
|
|
916
|
+
e.preventDefault();
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
onCellClick(e) {
|
|
920
|
+
this.cellclick.emit(e.detail);
|
|
921
|
+
}
|
|
922
|
+
// #endregion
|
|
923
|
+
// #region Watchers
|
|
924
|
+
columnTypesChanged() {
|
|
925
|
+
// Column format change will trigger column structure update
|
|
926
|
+
this.columnChanged(this.columns);
|
|
927
|
+
}
|
|
928
|
+
columnChanged(newVal = [], _prevVal = undefined, __watchName = 'columns', init = false) {
|
|
929
|
+
if (!this.dimensionProvider || !this.columnProvider || (newVal === null || newVal === void 0 ? void 0 : newVal.length) < 1) {
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
const updateToken = ++this.columnsUpdateToken;
|
|
933
|
+
this.element.setAttribute('data-columns-updating', String(updateToken));
|
|
934
|
+
// console.log('[columns] update start', {
|
|
935
|
+
// token: updateToken,
|
|
936
|
+
// init,
|
|
937
|
+
// time: performance.now(),
|
|
938
|
+
// });
|
|
939
|
+
const columnGather = getColumns(newVal, 0, this.columnTypes);
|
|
940
|
+
// console.log('[columns] update snapshot', {
|
|
941
|
+
// token: updateToken,
|
|
942
|
+
// init,
|
|
943
|
+
// counts: {
|
|
944
|
+
// colPinStart: columnGather.columns.colPinStart.length,
|
|
945
|
+
// rgCol: columnGather.columns.rgCol.length,
|
|
946
|
+
// colPinEnd: columnGather.columns.colPinEnd.length,
|
|
947
|
+
// },
|
|
948
|
+
// time: performance.now(),
|
|
949
|
+
// });
|
|
950
|
+
const beforeSetEvent = this.beforecolumnsset.emit(columnGather);
|
|
951
|
+
if (beforeSetEvent.defaultPrevented) {
|
|
952
|
+
console.log('[columns] update prevented beforeSet', {
|
|
953
|
+
token: updateToken,
|
|
954
|
+
time: performance.now(),
|
|
955
|
+
});
|
|
956
|
+
this.finishColumnsUpdate(updateToken);
|
|
957
|
+
return;
|
|
958
|
+
}
|
|
959
|
+
const version = ++this.columnsVersion;
|
|
960
|
+
// 在应用新列之前,先设置表格总宽度
|
|
961
|
+
this.dimensionProvider.setGridTotalWidth(this.element.clientWidth);
|
|
962
|
+
// 同步更新所有 viewport 的数据
|
|
963
|
+
this.dimensionProvider.applyNewColumns(beforeSetEvent.detail.columns, this.disableVirtualX, init, version);
|
|
964
|
+
const beforeApplyEvent = this.beforecolumnapplied.emit(columnGather);
|
|
965
|
+
if (beforeApplyEvent.defaultPrevented) {
|
|
966
|
+
console.log('[columns] update prevented beforeApply', {
|
|
967
|
+
token: updateToken,
|
|
968
|
+
time: performance.now(),
|
|
969
|
+
});
|
|
970
|
+
this.finishColumnsUpdate(updateToken);
|
|
971
|
+
return;
|
|
972
|
+
}
|
|
973
|
+
const columns = this.columnProvider.setColumns(beforeApplyEvent.detail, version);
|
|
974
|
+
this.finishColumnsUpdate(updateToken);
|
|
975
|
+
this.aftercolumnsset.emit({
|
|
976
|
+
columns,
|
|
977
|
+
order: Object.entries(beforeApplyEvent.detail.sort).reduce((acc, [prop, column]) => {
|
|
978
|
+
acc[prop] = column.order;
|
|
979
|
+
return acc;
|
|
980
|
+
}, {}),
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
finishColumnsUpdate(token) {
|
|
984
|
+
requestAnimationFrame(() => {
|
|
985
|
+
const current = this.element.getAttribute('data-columns-updating');
|
|
986
|
+
if (current === String(token)) {
|
|
987
|
+
this.syncMainViewportWidthAfterColumnsUpdate();
|
|
988
|
+
this.element.removeAttribute('data-columns-updating');
|
|
989
|
+
this.element.dispatchEvent(new CustomEvent('columnsupdateend', { detail: { token } }));
|
|
990
|
+
this.columnsUpdateNonce++;
|
|
991
|
+
console.log('[columns] update end', {
|
|
992
|
+
token,
|
|
993
|
+
time: performance.now(),
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Column updates can change pin area width and shrink/grow main viewport.
|
|
1000
|
+
* Re-sync rgCol client/virtual size before releasing columns update lock
|
|
1001
|
+
* to avoid one-frame stale visible-column range.
|
|
1002
|
+
*/
|
|
1003
|
+
syncMainViewportWidthAfterColumnsUpdate() {
|
|
1004
|
+
if (!this.viewportProvider || !this.dimensionProvider) {
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
const mainViewport = this.element.querySelector('revogr-viewport-scroll.rgCol');
|
|
1008
|
+
if (!(mainViewport instanceof HTMLElement)) {
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
const nextClientSize = mainViewport.clientWidth;
|
|
1012
|
+
if (!nextClientSize) {
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
const rgColViewport = this.viewportProvider.stores.rgCol.store;
|
|
1016
|
+
const patch = {};
|
|
1017
|
+
const currentClientSize = rgColViewport.get('clientSize');
|
|
1018
|
+
if (currentClientSize !== nextClientSize) {
|
|
1019
|
+
patch.clientSize = nextClientSize;
|
|
1020
|
+
}
|
|
1021
|
+
if (!this.disableVirtualX) {
|
|
1022
|
+
const currentVirtualSize = rgColViewport.get('virtualSize');
|
|
1023
|
+
if (currentVirtualSize !== nextClientSize) {
|
|
1024
|
+
patch.virtualSize = nextClientSize;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
if (Object.keys(patch).length > 0) {
|
|
1028
|
+
this.viewportProvider.setViewport('rgCol', patch, { preserveItems: true });
|
|
1029
|
+
}
|
|
1030
|
+
this.dimensionProvider.setViewPortCoordinate({
|
|
1031
|
+
type: 'rgCol',
|
|
1032
|
+
force: true,
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
finishDataUpdate(token) {
|
|
1036
|
+
requestAnimationFrame(() => {
|
|
1037
|
+
const current = this.element.getAttribute('data-rows-updating');
|
|
1038
|
+
if (current === String(token)) {
|
|
1039
|
+
this.element.removeAttribute('data-rows-updating');
|
|
1040
|
+
this.element.dispatchEvent(new CustomEvent('dataupdateend', { detail: { token } }));
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
disableVirtualXChanged(newVal = false, prevVal = false) {
|
|
1045
|
+
if (newVal === prevVal) {
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
this.columnChanged(this.columns);
|
|
1049
|
+
}
|
|
1050
|
+
rowSizeChanged(s) {
|
|
1051
|
+
if (!this.dimensionProvider) {
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
// clear existing data
|
|
1055
|
+
this.dimensionProvider.setSettings({ originItemSize: s }, 'rgRow');
|
|
1056
|
+
this.rowDefChanged(this.rowDefinitions, this.rowDefinitions, 'rowSize', true);
|
|
1057
|
+
}
|
|
1058
|
+
themeChanged(t, _, __ = 'theme', init = false) {
|
|
1059
|
+
if (!this.dimensionProvider) {
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
this.themeService.register(t);
|
|
1063
|
+
this.dimensionProvider.setSettings({ originItemSize: this.themeService.rowSize }, 'rgRow');
|
|
1064
|
+
this.dimensionProvider.setSettings({ originItemSize: this.colSize }, 'rgCol');
|
|
1065
|
+
// if theme change we need to reapply row size and reset viewport
|
|
1066
|
+
if (!init) {
|
|
1067
|
+
// clear existing data
|
|
1068
|
+
this.dimensionProvider.setSettings({ originItemSize: this.themeService.rowSize }, 'rgRow');
|
|
1069
|
+
this.rowDefChanged(
|
|
1070
|
+
// for cases when some custom size present and not
|
|
1071
|
+
this.rowDefinitions, this.rowDefinitions, 'theme', true);
|
|
1072
|
+
}
|
|
1073
|
+
this.afterthemechanged.emit(t);
|
|
1074
|
+
}
|
|
1075
|
+
dataSourceChanged(newVal = [], _, watchName) {
|
|
1076
|
+
if (!this.dataProvider) {
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
const dataToken = ++this.dataUpdateToken;
|
|
1080
|
+
this.element.setAttribute('data-rows-updating', String(dataToken));
|
|
1081
|
+
// 标记正在进行外部数据源更新(用于 grouping-overlay 区分更新来源)
|
|
1082
|
+
if (watchName === 'source') {
|
|
1083
|
+
this.element.setAttribute('data-source-updating', '');
|
|
1084
|
+
// 收集所有区域的渲染完成事件
|
|
1085
|
+
const renderedAreas = new Set();
|
|
1086
|
+
const checkAllRendered = (e) => {
|
|
1087
|
+
var _a, _b, _c;
|
|
1088
|
+
const detail = e.detail;
|
|
1089
|
+
const { type, colType } = detail;
|
|
1090
|
+
// 收集所有区域的渲染(包括不同的 colType)
|
|
1091
|
+
const areaKey = `${type}-${colType}`;
|
|
1092
|
+
renderedAreas.add(areaKey);
|
|
1093
|
+
// 检查是否所有主要区域都已渲染
|
|
1094
|
+
// 至少需要主数据区域的 rgRow 渲染完成(任意 colType)
|
|
1095
|
+
const hasMainData = renderedAreas.has('rgRow-rgCol') ||
|
|
1096
|
+
renderedAreas.has('rgRow-colPinStart') ||
|
|
1097
|
+
renderedAreas.has('rgRow-colPinEnd');
|
|
1098
|
+
// 如果有固定列,也需要等待它们渲染完成
|
|
1099
|
+
const hasLeftPin = renderedAreas.has('rgRow-colPinStart') ||
|
|
1100
|
+
renderedAreas.has('rowPinStart-colPinStart');
|
|
1101
|
+
const hasRightPin = renderedAreas.has('rgRow-colPinEnd') ||
|
|
1102
|
+
renderedAreas.has('rowPinStart-colPinEnd');
|
|
1103
|
+
// 判断是否所有区域都已渲染完成
|
|
1104
|
+
// 主数据区必须渲染,固定列如果存在也必须渲染
|
|
1105
|
+
if (hasMainData) {
|
|
1106
|
+
// 检查是否有固定列配置
|
|
1107
|
+
const hasLeftPinConfig = (_a = this.columns) === null || _a === void 0 ? void 0 : _a.some((col) => col.pin === 'colPinStart');
|
|
1108
|
+
const hasRightPinConfig = (_b = this.columns) === null || _b === void 0 ? void 0 : _b.some((col) => col.pin === 'colPinEnd');
|
|
1109
|
+
const hasNormalCol = (_c = this.columns) === null || _c === void 0 ? void 0 : _c.some((col) => !col.pin);
|
|
1110
|
+
// 如果配置了固定列,必须等待固定列也渲染完成
|
|
1111
|
+
const leftPinReady = !hasLeftPinConfig || hasLeftPin;
|
|
1112
|
+
const rightPinReady = !hasRightPinConfig || hasRightPin;
|
|
1113
|
+
const normalColReady = !hasNormalCol || renderedAreas.has('rgRow-rgCol');
|
|
1114
|
+
if (leftPinReady && rightPinReady && normalColReady) {
|
|
1115
|
+
// 移除标记和监听器
|
|
1116
|
+
this.element.removeAttribute('data-source-updating');
|
|
1117
|
+
this.element.removeEventListener('afterrender', checkAllRendered);
|
|
1118
|
+
/**
|
|
1119
|
+
* 每一帧检查 数据是否渲染
|
|
1120
|
+
* 1. 先检查是否有非冻结列,如果没有就检查左侧冻结,再如果检查右侧冻结;通过 this.columnProvider?.collection?.columns 下的 rgCol|colPinStart|colPinEnd 长度
|
|
1121
|
+
* 2. 如果有非冻结表格,就只检查 this.viewportProvider.stores?.rgCol?.store 的 items 长度
|
|
1122
|
+
* 3. 如果没有非冻结表格,就检查 colPinStart或colPinEnd 的items 长度
|
|
1123
|
+
* 4. itemsCount > 0 就表示已经渲染
|
|
1124
|
+
*/
|
|
1125
|
+
const checkColumns = () => {
|
|
1126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1127
|
+
let visibleItemsCount = 0;
|
|
1128
|
+
// 检查是否有非冻结列
|
|
1129
|
+
const hasRgCol = (((_d = (_c = (_b = (_a = this.columnProvider) === null || _a === void 0 ? void 0 : _a.collection) === null || _b === void 0 ? void 0 : _b.columns) === null || _c === void 0 ? void 0 : _c.rgCol) === null || _d === void 0 ? void 0 : _d.length) || 0) > 0;
|
|
1130
|
+
const hasColPinStart = (((_h = (_g = (_f = (_e = this.columnProvider) === null || _e === void 0 ? void 0 : _e.collection) === null || _f === void 0 ? void 0 : _f.columns) === null || _g === void 0 ? void 0 : _g.colPinStart) === null || _h === void 0 ? void 0 : _h.length) || 0) > 0;
|
|
1131
|
+
const hasColPinEnd = (((_m = (_l = (_k = (_j = this.columnProvider) === null || _j === void 0 ? void 0 : _j.collection) === null || _k === void 0 ? void 0 : _k.columns) === null || _l === void 0 ? void 0 : _l.colPinEnd) === null || _m === void 0 ? void 0 : _m.length) || 0) > 0;
|
|
1132
|
+
if (this.viewportProvider) {
|
|
1133
|
+
if (hasRgCol) {
|
|
1134
|
+
// 如果有非冻结列,只检查 rgCol 的 items
|
|
1135
|
+
const rgColVpStore = (_p = (_o = this.viewportProvider.stores) === null || _o === void 0 ? void 0 : _o.rgCol) === null || _p === void 0 ? void 0 : _p.store;
|
|
1136
|
+
if (rgColVpStore) {
|
|
1137
|
+
visibleItemsCount = ((_q = rgColVpStore.get('items')) === null || _q === void 0 ? void 0 : _q.length) || 0;
|
|
1138
|
+
// 如果为0,从DOM中获取子元素数量
|
|
1139
|
+
if (visibleItemsCount === 0) {
|
|
1140
|
+
const revogrData = this.element.querySelector('.revogr-viewport-scroll.rgCol .vertical-inner revogr-data');
|
|
1141
|
+
if (revogrData) {
|
|
1142
|
+
visibleItemsCount = revogrData.children.length;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
else {
|
|
1148
|
+
// 如果没有非冻结列,检查冻结列:优先 colPinStart,然后 colPinEnd
|
|
1149
|
+
if (hasColPinStart) {
|
|
1150
|
+
const colPinStartVpStore = (_s = (_r = this.viewportProvider.stores) === null || _r === void 0 ? void 0 : _r.colPinStart) === null || _s === void 0 ? void 0 : _s.store;
|
|
1151
|
+
if (colPinStartVpStore) {
|
|
1152
|
+
visibleItemsCount = ((_t = colPinStartVpStore.get('items')) === null || _t === void 0 ? void 0 : _t.length) || 0;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
// 如果 colPinStart 没有数据,继续检查 colPinEnd
|
|
1156
|
+
if (visibleItemsCount === 0 && hasColPinEnd) {
|
|
1157
|
+
const colPinEndVpStore = (_v = (_u = this.viewportProvider.stores) === null || _u === void 0 ? void 0 : _u.colPinEnd) === null || _v === void 0 ? void 0 : _v.store;
|
|
1158
|
+
if (colPinEndVpStore) {
|
|
1159
|
+
visibleItemsCount = ((_w = colPinEndVpStore.get('items')) === null || _w === void 0 ? void 0 : _w.length) || 0;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
if (visibleItemsCount > 0) {
|
|
1165
|
+
requestAnimationFrame(this.afterdatarendered.emit);
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
requestAnimationFrame(checkColumns);
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
// 在这里
|
|
1172
|
+
requestAnimationFrame(checkColumns);
|
|
1173
|
+
// 设置1秒超时,如果1秒后还没有完成渲染,直接emit
|
|
1174
|
+
setTimeout(() => {
|
|
1175
|
+
this.afterdatarendered.emit();
|
|
1176
|
+
}, 1000);
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
this.element.addEventListener('afterrender', checkAllRendered);
|
|
1181
|
+
}
|
|
1182
|
+
let type = 'rgRow';
|
|
1183
|
+
switch (watchName) {
|
|
1184
|
+
case 'pinnedBottomSource':
|
|
1185
|
+
type = 'rowPinEnd';
|
|
1186
|
+
break;
|
|
1187
|
+
case 'pinnedTopSource':
|
|
1188
|
+
type = 'rowPinStart';
|
|
1189
|
+
break;
|
|
1190
|
+
case 'source':
|
|
1191
|
+
type = 'rgRow';
|
|
1192
|
+
// Update isSourceEmpty state to trigger re-render
|
|
1193
|
+
this.isSourceEmpty = !newVal || newVal.length === 0;
|
|
1194
|
+
/**
|
|
1195
|
+
* Applied for source only for cross compatability between plugins
|
|
1196
|
+
*/
|
|
1197
|
+
const beforesourceset = this.beforesourceset.emit({
|
|
1198
|
+
type,
|
|
1199
|
+
source: newVal,
|
|
1200
|
+
});
|
|
1201
|
+
newVal = beforesourceset.detail.source;
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
const beforesourceset = this.beforeanysource.emit({
|
|
1205
|
+
type,
|
|
1206
|
+
source: newVal,
|
|
1207
|
+
});
|
|
1208
|
+
const newSource = [...beforesourceset.detail.source];
|
|
1209
|
+
this.dataProvider.setData(newSource, type, this.disableVirtualY);
|
|
1210
|
+
/**
|
|
1211
|
+
* Applied for source only for cross compatability between plugins
|
|
1212
|
+
*/
|
|
1213
|
+
if (watchName === 'source') {
|
|
1214
|
+
this.aftersourceset.emit({
|
|
1215
|
+
type,
|
|
1216
|
+
source: newVal,
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
this.afteranysource.emit({
|
|
1220
|
+
type,
|
|
1221
|
+
source: newVal,
|
|
1222
|
+
});
|
|
1223
|
+
this.finishDataUpdate(dataToken);
|
|
1224
|
+
}
|
|
1225
|
+
disableVirtualYChanged(newVal = false, prevVal = false) {
|
|
1226
|
+
if (newVal === prevVal) {
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1229
|
+
this.dataSourceChanged(this.source, this.source, 'source');
|
|
1230
|
+
}
|
|
1231
|
+
rowDefChanged(after, before, _watchName, forceUpdate = true) {
|
|
1232
|
+
// in firefox it's triggered before init
|
|
1233
|
+
if (!this.dimensionProvider || !this.dataProvider) {
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
const { detail: { vals: newVal, oldVals: oldVal }, } = this.beforerowdefinition.emit({
|
|
1237
|
+
vals: after,
|
|
1238
|
+
oldVals: before,
|
|
1239
|
+
});
|
|
1240
|
+
// apply new values
|
|
1241
|
+
const newRows = rowDefinitionByType(newVal);
|
|
1242
|
+
// clear current defs
|
|
1243
|
+
if (oldVal) {
|
|
1244
|
+
const remove = rowDefinitionRemoveByType(oldVal);
|
|
1245
|
+
// clear all old data and drop sizes
|
|
1246
|
+
for (const t in remove) {
|
|
1247
|
+
if (remove.hasOwnProperty(t)) {
|
|
1248
|
+
const type = t;
|
|
1249
|
+
const store = this.dataProvider.stores[type];
|
|
1250
|
+
const sourceLength = store.store.get('source').length;
|
|
1251
|
+
this.dimensionProvider.clearSize(type, sourceLength);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
// set new sizes
|
|
1256
|
+
rowTypes.forEach((t) => {
|
|
1257
|
+
var _a;
|
|
1258
|
+
const newSizes = newRows[t];
|
|
1259
|
+
// apply new sizes or force update
|
|
1260
|
+
if (newSizes || forceUpdate) {
|
|
1261
|
+
(_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setCustomSizes(t, (newSizes === null || newSizes === void 0 ? void 0 : newSizes.sizes) || {});
|
|
1262
|
+
}
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
trimmedRowsChanged(newVal = {}) {
|
|
1266
|
+
this.addTrimmed(newVal);
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Grouping
|
|
1270
|
+
*/
|
|
1271
|
+
groupingChanged(newVal = {}) {
|
|
1272
|
+
var _a;
|
|
1273
|
+
(_a = this.pluginService.getByClass(GroupingRowPlugin)) === null || _a === void 0 ? void 0 : _a.setGrouping(newVal || {});
|
|
1274
|
+
this._hasGrouping = !!(newVal && Object.keys(newVal).length > 0);
|
|
1275
|
+
}
|
|
1276
|
+
get _hasGrouping() { return this._hasGroupingValue; }
|
|
1277
|
+
set _hasGrouping(val) { this._hasGroupingValue = val; }
|
|
1278
|
+
/**
|
|
1279
|
+
* Stretch Plugin Apply
|
|
1280
|
+
*/
|
|
1281
|
+
applyStretch(isStretch) {
|
|
1282
|
+
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider) {
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
if (isStretch === 'false') {
|
|
1286
|
+
isStretch = false;
|
|
1287
|
+
}
|
|
1288
|
+
const pluginData = this.getPluginData();
|
|
1289
|
+
if (!pluginData) {
|
|
1290
|
+
return;
|
|
1291
|
+
}
|
|
1292
|
+
const stretch = this.pluginService.getByClass(StretchColumn);
|
|
1293
|
+
if ((typeof isStretch === 'boolean' && isStretch) || isStretch === 'true') {
|
|
1294
|
+
if (!stretch) {
|
|
1295
|
+
this.pluginService.add(new StretchColumn(this.element, pluginData));
|
|
1296
|
+
}
|
|
1297
|
+
else if (isStretchPlugin(stretch)) {
|
|
1298
|
+
stretch.applyStretch(this.columnProvider.getRawColumns());
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
else if (stretch) {
|
|
1302
|
+
this.pluginService.remove(stretch);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
applyFilter(cfg) {
|
|
1306
|
+
this.filterconfigchanged.emit(cfg);
|
|
1307
|
+
}
|
|
1308
|
+
applySorting(cfg) {
|
|
1309
|
+
this.sortingconfigchanged.emit(cfg);
|
|
1310
|
+
}
|
|
1311
|
+
rowHeadersChange(rowHeaders) {
|
|
1312
|
+
this.rowheaderschanged.emit(rowHeaders);
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Register external VNodes
|
|
1316
|
+
*/
|
|
1317
|
+
registerOutsideVNodes(elements = []) {
|
|
1318
|
+
this.extraElements = elements;
|
|
1319
|
+
}
|
|
1320
|
+
additionalDataChanged(data) {
|
|
1321
|
+
this.additionaldatachanged.emit(data);
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* Watch for RTL changes and reapply column ordering
|
|
1325
|
+
*/
|
|
1326
|
+
rtlChanged() {
|
|
1327
|
+
// The RTL plugin will handle the transformation automatically
|
|
1328
|
+
// Just trigger a column refresh to ensure the plugin processes the change
|
|
1329
|
+
this.columnChanged(this.columns);
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
* User can add plugins via plugins property
|
|
1333
|
+
*/
|
|
1334
|
+
pluginsChanged(plugins = [], prevPlugins) {
|
|
1335
|
+
this.pluginService.addUserPluginsAndCreate(this.element, plugins, prevPlugins, this.getPluginData());
|
|
1336
|
+
}
|
|
1337
|
+
// #endregion
|
|
1338
|
+
// #region Plugins
|
|
1339
|
+
setPlugins() {
|
|
1340
|
+
// remove old plugins if any
|
|
1341
|
+
this.removePlugins();
|
|
1342
|
+
// pass data provider to plugins
|
|
1343
|
+
const pluginData = this.getPluginData();
|
|
1344
|
+
if (!pluginData) {
|
|
1345
|
+
return;
|
|
1346
|
+
}
|
|
1347
|
+
// register system plugins
|
|
1348
|
+
this.setCorePlugins(pluginData);
|
|
1349
|
+
// register user plugins
|
|
1350
|
+
this.pluginsChanged(this.plugins);
|
|
1351
|
+
}
|
|
1352
|
+
setCorePlugins(pluginData) {
|
|
1353
|
+
if (this.accessible) {
|
|
1354
|
+
this.pluginService.add(new WCAGPlugin(this.element, pluginData));
|
|
1355
|
+
}
|
|
1356
|
+
// register RTL plugin
|
|
1357
|
+
this.pluginService.add(new RTLPlugin(this.element, pluginData));
|
|
1358
|
+
// register auto size plugin
|
|
1359
|
+
// 延迟创建:在 aftergridrender 事件中创建,确保所有属性都已设置
|
|
1360
|
+
const createAutoSizePlugin = () => {
|
|
1361
|
+
var _a;
|
|
1362
|
+
const config = ((_a = this.additionalData) === null || _a === void 0 ? void 0 : _a.autoSizeColumn) || this.autoSizeColumn;
|
|
1363
|
+
if (config && !this.pluginService.getByClass(AutoSizeColumnPlugin)) {
|
|
1364
|
+
this.pluginService.add(new AutoSizeColumnPlugin(this.element, pluginData, typeof config === 'object' ? config : undefined));
|
|
1365
|
+
}
|
|
1366
|
+
};
|
|
1367
|
+
this.element.addEventListener('aftergridrender', createAutoSizePlugin, { once: true });
|
|
1368
|
+
// register filter plugin
|
|
1369
|
+
if (this.filter) {
|
|
1370
|
+
this.pluginService.add(new FilterPlugin(this.element, pluginData, typeof this.filter === 'object' ? this.filter : undefined));
|
|
1371
|
+
}
|
|
1372
|
+
// register export plugin
|
|
1373
|
+
if (this.exporting) {
|
|
1374
|
+
this.pluginService.add(new ExportFilePlugin(this.element, pluginData));
|
|
1375
|
+
}
|
|
1376
|
+
// register sorting plugin
|
|
1377
|
+
this.pluginService.add(new SortingPlugin(this.element, pluginData));
|
|
1378
|
+
// register grouping plugin
|
|
1379
|
+
this.pluginService.add(new GroupingRowPlugin(this.element, pluginData));
|
|
1380
|
+
if (this.canMoveColumns) {
|
|
1381
|
+
this.pluginService.add(new ColumnMovePlugin(this.element, pluginData));
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
getPluginData() {
|
|
1385
|
+
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider || !this.selectionStoreConnector) {
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
// pass data provider to plugins
|
|
1389
|
+
const pluginData = {
|
|
1390
|
+
data: this.dataProvider,
|
|
1391
|
+
column: this.columnProvider,
|
|
1392
|
+
dimension: this.dimensionProvider,
|
|
1393
|
+
viewport: this.viewportProvider,
|
|
1394
|
+
selection: this.selectionStoreConnector,
|
|
1395
|
+
plugins: this.pluginService,
|
|
1396
|
+
};
|
|
1397
|
+
return pluginData;
|
|
1398
|
+
}
|
|
1399
|
+
removePlugins() {
|
|
1400
|
+
this.pluginService.destroy();
|
|
1401
|
+
}
|
|
1402
|
+
// #endregion
|
|
1403
|
+
// if reconnect to dom we need to set up plugins
|
|
1404
|
+
connectedCallback() {
|
|
1405
|
+
if (this.isInited) {
|
|
1406
|
+
this.setPlugins();
|
|
1407
|
+
}
|
|
1408
|
+
this.created.emit();
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Called once just after the component is first connected to the DOM.
|
|
1412
|
+
* Since this method is only called once, it's a good place to load data asynchronously and to setup the state
|
|
1413
|
+
* without triggering extra re-renders.
|
|
1414
|
+
* A promise can be returned, that can be used to wait for the first render().
|
|
1415
|
+
*/
|
|
1416
|
+
componentWillLoad() {
|
|
1417
|
+
var _a;
|
|
1418
|
+
// Initialize isSourceEmpty state
|
|
1419
|
+
this.isSourceEmpty = !this.source || this.source.length === 0;
|
|
1420
|
+
// #region Setup Providers
|
|
1421
|
+
this.viewportProvider = new ViewportProvider();
|
|
1422
|
+
this.themeService = new ThemeService({
|
|
1423
|
+
rowSize: this.rowSize,
|
|
1424
|
+
});
|
|
1425
|
+
this.dimensionProvider = new DimensionProvider(this.viewportProvider, {
|
|
1426
|
+
realSizeChanged: (k) => this.contentsizechanged.emit(k),
|
|
1427
|
+
});
|
|
1428
|
+
this.columnProvider = new ColumnDataProvider();
|
|
1429
|
+
this.selectionStoreConnector = new SelectionStoreConnector();
|
|
1430
|
+
this.dataProvider = new DataProvider(this.dimensionProvider);
|
|
1431
|
+
// #endregion
|
|
1432
|
+
this.registerOutsideVNodes(this.registerVNode);
|
|
1433
|
+
// init plugins
|
|
1434
|
+
this.setPlugins();
|
|
1435
|
+
// set data
|
|
1436
|
+
this.applyStretch(this.stretch);
|
|
1437
|
+
this.themeChanged(this.theme, undefined, undefined, true);
|
|
1438
|
+
this.columnChanged(this.columns, undefined, undefined, true);
|
|
1439
|
+
this.dataSourceChanged(this.source, undefined, 'source');
|
|
1440
|
+
this.dataSourceChanged(this.pinnedTopSource, undefined, 'pinnedTopSource');
|
|
1441
|
+
this.dataSourceChanged(this.pinnedBottomSource, undefined, 'pinnedBottomSource');
|
|
1442
|
+
if (Object.keys((_a = this.trimmedRows) !== null && _a !== void 0 ? _a : {}).length > 0) {
|
|
1443
|
+
this.trimmedRowsChanged(this.trimmedRows);
|
|
1444
|
+
}
|
|
1445
|
+
this.rowDefChanged(this.rowDefinitions);
|
|
1446
|
+
// init grouping
|
|
1447
|
+
if (this.grouping && Object.keys(this.grouping).length > 0) {
|
|
1448
|
+
this.groupingChanged(this.grouping);
|
|
1449
|
+
}
|
|
1450
|
+
// init scrolling service
|
|
1451
|
+
this.scrollingService = new GridScrollingService((e) => {
|
|
1452
|
+
var _a, _b, _c;
|
|
1453
|
+
// Check if scroll is disabled
|
|
1454
|
+
if (this.disableScroll) {
|
|
1455
|
+
return;
|
|
1456
|
+
}
|
|
1457
|
+
if (e.dimension === 'rgCol' && this.disableVirtualX) {
|
|
1458
|
+
(_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setViewPortCoordinate({
|
|
1459
|
+
coordinate: 0,
|
|
1460
|
+
type: e.dimension,
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
else if (e.dimension === 'rgRow' && this.disableVirtualY) {
|
|
1464
|
+
(_b = this.dimensionProvider) === null || _b === void 0 ? void 0 : _b.setViewPortCoordinate({
|
|
1465
|
+
coordinate: 0,
|
|
1466
|
+
type: e.dimension,
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
else {
|
|
1470
|
+
(_c = this.dimensionProvider) === null || _c === void 0 ? void 0 : _c.setViewPortCoordinate({
|
|
1471
|
+
coordinate: e.coordinate,
|
|
1472
|
+
type: e.dimension,
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
this.viewportscroll.emit(e);
|
|
1476
|
+
}, () => this.disableScroll);
|
|
1477
|
+
this.aftergridinit.emit();
|
|
1478
|
+
// set inited flag for connectedCallback
|
|
1479
|
+
this.isInited = true;
|
|
1480
|
+
}
|
|
1481
|
+
componentWillRender() {
|
|
1482
|
+
const event = this.beforegridrender.emit();
|
|
1483
|
+
if (event.defaultPrevented) {
|
|
1484
|
+
return false;
|
|
1485
|
+
}
|
|
1486
|
+
return Promise.all(this.jobsBeforeRender);
|
|
1487
|
+
}
|
|
1488
|
+
componentDidRender() {
|
|
1489
|
+
this.aftergridrender.emit();
|
|
1490
|
+
}
|
|
1491
|
+
render() {
|
|
1492
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1493
|
+
// Use the state variable isSourceEmpty for reactivity
|
|
1494
|
+
const isSourceEmpty = this.isSourceEmpty;
|
|
1495
|
+
if (!this.dimensionProvider || !this.dataProvider || !this.columnProvider || !this.viewportProvider || !this.selectionStoreConnector) {
|
|
1496
|
+
return;
|
|
1497
|
+
}
|
|
1498
|
+
const contentHeight = this.dimensionProvider.stores['rgRow'].store.get('realSize');
|
|
1499
|
+
// init viewport service helpers only when needed to avoid layout flash on column updates
|
|
1500
|
+
const shouldRecreateViewport = !this.viewport ||
|
|
1501
|
+
this.viewportContentHeight !== contentHeight ||
|
|
1502
|
+
this.viewportDisableVirtualX !== this.disableVirtualX ||
|
|
1503
|
+
this.viewportDisableVirtualY !== this.disableVirtualY;
|
|
1504
|
+
if (shouldRecreateViewport) {
|
|
1505
|
+
this.viewport = new ViewportService({
|
|
1506
|
+
columnProvider: this.columnProvider,
|
|
1507
|
+
dataProvider: this.dataProvider,
|
|
1508
|
+
dimensionProvider: this.dimensionProvider,
|
|
1509
|
+
viewportProvider: this.viewportProvider,
|
|
1510
|
+
scrollingService: this.scrollingService,
|
|
1511
|
+
orderService: this.orderService,
|
|
1512
|
+
selectionStoreConnector: this.selectionStoreConnector,
|
|
1513
|
+
disableVirtualX: this.disableVirtualX,
|
|
1514
|
+
disableVirtualY: this.disableVirtualY,
|
|
1515
|
+
resize: c => this.aftercolumnresize.emit(c),
|
|
1516
|
+
}, contentHeight);
|
|
1517
|
+
this.viewportContentHeight = contentHeight;
|
|
1518
|
+
this.viewportDisableVirtualX = this.disableVirtualX;
|
|
1519
|
+
this.viewportDisableVirtualY = this.disableVirtualY;
|
|
1520
|
+
}
|
|
1521
|
+
const viewport = this.viewport;
|
|
1522
|
+
if (!viewport) {
|
|
1523
|
+
return;
|
|
1524
|
+
}
|
|
1525
|
+
// #region ViewportSections
|
|
1526
|
+
/**
|
|
1527
|
+
* The code renders a viewport divided into sections.
|
|
1528
|
+
* It starts by rendering the pinned start, data, and pinned end sections.
|
|
1529
|
+
* Within each section, it renders columns along with their headers, pinned top, center data, and pinned bottom.
|
|
1530
|
+
* The code iterates over the columns and their data to generate the view port's HTML structure.
|
|
1531
|
+
*/
|
|
1532
|
+
const viewportSections = [];
|
|
1533
|
+
// Row headers setting
|
|
1534
|
+
if (this.rowHeaders && viewport.columns.length) {
|
|
1535
|
+
const anyView = viewport.columns[0];
|
|
1536
|
+
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') }));
|
|
1537
|
+
}
|
|
1538
|
+
// Viewport section render
|
|
1539
|
+
const isMobile = isMobileDevice();
|
|
1540
|
+
const viewPortHtml = [];
|
|
1541
|
+
// 检查是否有 colPinEnd 列
|
|
1542
|
+
const hasColPinEnd = ((_a = this.columnProvider) === null || _a === void 0 ? void 0 : _a.getColumns('colPinEnd').length) > 0;
|
|
1543
|
+
// 检查是否有主区域列
|
|
1544
|
+
const hasRgCol = ((_b = this.columnProvider) === null || _b === void 0 ? void 0 : _b.getColumns('rgCol').length) > 0;
|
|
1545
|
+
// 一次性读取所有区域的数据并构建 headerAreas,确保数据同步
|
|
1546
|
+
const headerAreas = [];
|
|
1547
|
+
for (let view of viewport.columns) {
|
|
1548
|
+
const colStore = (_e = (_d = (_c = this.columnProvider) === null || _c === void 0 ? void 0 : _c.stores) === null || _d === void 0 ? void 0 : _d[view.type]) === null || _e === void 0 ? void 0 : _e.store;
|
|
1549
|
+
const viewportItems = view.viewportCol.get('items');
|
|
1550
|
+
const colData = this.columnProvider.getColumns(view.type);
|
|
1551
|
+
const dimensionState = (_f = view.headerProp.dimensionCol) === null || _f === void 0 ? void 0 : _f.state;
|
|
1552
|
+
const groups = (_g = colStore === null || colStore === void 0 ? void 0 : colStore.get('groups')) !== null && _g !== void 0 ? _g : view.headerProp.groups;
|
|
1553
|
+
const groupingDepth = (_h = colStore === null || colStore === void 0 ? void 0 : colStore.get('groupingDepth')) !== null && _h !== void 0 ? _h : view.headerProp.groupingDepth;
|
|
1554
|
+
const selectionRange = (_k = (_j = view.columnSelectionStore) === null || _j === void 0 ? void 0 : _j.get('range')) !== null && _k !== void 0 ? _k : null;
|
|
1555
|
+
// 构建表头区域数据
|
|
1556
|
+
headerAreas.push({
|
|
1557
|
+
type: view.type,
|
|
1558
|
+
viewportCol: view.viewportCol,
|
|
1559
|
+
dimensionCol: view.headerProp.dimensionCol,
|
|
1560
|
+
selectionStore: view.columnSelectionStore,
|
|
1561
|
+
viewportItems,
|
|
1562
|
+
dimensionState,
|
|
1563
|
+
selectionRange,
|
|
1564
|
+
groups,
|
|
1565
|
+
groupingDepth,
|
|
1566
|
+
readonly: this.readonly,
|
|
1567
|
+
canResize: this.resize,
|
|
1568
|
+
resizeHandler: view.headerProp.resizeHandler,
|
|
1569
|
+
colData,
|
|
1570
|
+
colVersion: (_m = (_l = this.columnProvider.stores) === null || _l === void 0 ? void 0 : _l[view.type]) === null || _m === void 0 ? void 0 : _m.store.get('version'),
|
|
1571
|
+
columnFilter: !!this.filter,
|
|
1572
|
+
additionalData: this.additionalData,
|
|
1573
|
+
hasColPinEnd,
|
|
1574
|
+
hasRgCol,
|
|
1575
|
+
disableVirtualX: this.disableVirtualX,
|
|
1576
|
+
onHeaderresize: view.headerProp.onHeaderresize,
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
// Render viewports column(horizontal sections)
|
|
1580
|
+
for (let view of viewport.columns) {
|
|
1581
|
+
const dimensionState = (_o = view.headerProp.dimensionCol) === null || _o === void 0 ? void 0 : _o.state;
|
|
1582
|
+
const realWidth = (_p = dimensionState === null || dimensionState === void 0 ? void 0 : dimensionState.realSize) !== null && _p !== void 0 ? _p : view.prop.contentWidth;
|
|
1583
|
+
const viewProp = Object.assign(Object.assign({}, view.prop), { contentWidth: realWidth, style: Object.assign(Object.assign({}, view.prop.style), { width: `${realWidth}px` }) });
|
|
1584
|
+
// Column headers - 使用空占位符,实际表头由统一组件渲染
|
|
1585
|
+
const dataViews = [
|
|
1586
|
+
h("div", { class: "header-placeholder", slot: HEADER_SLOT }),
|
|
1587
|
+
];
|
|
1588
|
+
// Render viewport data (vertical sections)
|
|
1589
|
+
view.dataPorts.forEach(data => {
|
|
1590
|
+
var _a, _b;
|
|
1591
|
+
const key = `${data.type}_${view.type}`;
|
|
1592
|
+
const lastCell = {
|
|
1593
|
+
x: view.viewportCol.get('realCount'),
|
|
1594
|
+
y: data.viewportRow.get('realCount'),
|
|
1595
|
+
};
|
|
1596
|
+
const dataView = (h("revogr-overlay-selection", Object.assign({}, data, { lastCell: lastCell, canDrag: this.canDrag && data.canDrag, isMobileDevice: isMobile, onSelectall: () => { var _a; return (_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.selectAll(); }, 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 }) => {
|
|
1597
|
+
var _a;
|
|
1598
|
+
const event = this.beforeeditstart.emit(detail);
|
|
1599
|
+
if (!event.defaultPrevented) {
|
|
1600
|
+
(_a = this.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.setEdit(detail.val);
|
|
1601
|
+
}
|
|
1602
|
+
} }), 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, paddingDepth: (_a = this.grouping) === null || _a === void 0 ? void 0 : _a.depthPadding, uniqueId: view.type === 'rgCol' ? (_b = this.pluginService.getByClass(ColumnManagePlugin)) === null || _b === void 0 ? void 0 : _b.getUniqueId() : undefined, hasColPinEnd: hasColPinEnd, hasRgCol: hasRgCol, 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, autoScrollToFocus: this.autoScrollToFocus }, h("slot", { name: `focus-${view.type}-${data.type}` }))));
|
|
1603
|
+
dataViews.push(dataView);
|
|
1604
|
+
});
|
|
1605
|
+
// Add viewport scroll in the end
|
|
1606
|
+
viewPortHtml.push(h("revogr-viewport-scroll", Object.assign({}, viewProp, { 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));
|
|
1607
|
+
}
|
|
1608
|
+
viewportSections.push(viewPortHtml);
|
|
1609
|
+
// 添加统一表头组件,放在所有 viewport 之外作为独立层
|
|
1610
|
+
// 这样可以确保所有区域的表头在同一个渲染周期内更新
|
|
1611
|
+
viewportSections.push(h("revogr-header-unified", { areas: headerAreas, onBeforeheaderclick: (e) => this.headerclick.emit(e.detail) }));
|
|
1612
|
+
// Add grouping overlay viewport
|
|
1613
|
+
if (this.viewport) {
|
|
1614
|
+
const rgColView = this.viewport.columns.find(v => v.type === 'rgCol');
|
|
1615
|
+
const mainDataPort = rgColView === null || rgColView === void 0 ? void 0 : rgColView.dataPorts.find(d => d.type === 'rgRow');
|
|
1616
|
+
if (mainDataPort && rgColView) {
|
|
1617
|
+
const contentHeight = this.dimensionProvider.stores['rgRow'].store.get('realSize');
|
|
1618
|
+
// Get header row count (1 base row + grouping depth)
|
|
1619
|
+
const groupingDepth = rgColView.headerProp.groupingDepth || 0;
|
|
1620
|
+
const headerRowCount = 1 + groupingDepth;
|
|
1621
|
+
// Create header placeholders for each row
|
|
1622
|
+
const headerPlaceholders = [];
|
|
1623
|
+
// 如果只有一行,使用完整表头高度;如果超过一行,每行高度是表头高度 / 2
|
|
1624
|
+
const heightCalc = headerRowCount === 1
|
|
1625
|
+
? 'var(--rg-header-row-height, 45px)'
|
|
1626
|
+
: 'calc(var(--rg-header-row-height, 45px) / 2)';
|
|
1627
|
+
for (let i = 0; i < headerRowCount; i++) {
|
|
1628
|
+
headerPlaceholders.push(h("div", { class: "grouping-header-placeholder", key: `header-${i}`, style: { height: heightCalc } }, `header row ${i + 1}`));
|
|
1629
|
+
}
|
|
1630
|
+
viewportSections.unshift(h("revogr-viewport-scroll", { class: "grouping-overlay-viewport", contentWidth: 0, contentHeight: contentHeight, colType: "rgCol", key: "grouping-viewport", ref: el => this.scrollingService.registerElement(el, 'groupingOverlay'), onScrollviewport: e => this.scrollingService.proxyScroll(e.detail, 'groupingOverlay') }, h("div", { slot: HEADER_SLOT }, headerPlaceholders), h("revogr-grouping-overlay", { dataStore: mainDataPort.dataStore, colData: mainDataPort.colData, viewportRow: mainDataPort.viewportRow, viewportCol: mainDataPort.viewportCol, dimensionRow: mainDataPort.dimensionRow, type: "rgRow", colType: "rgCol", additionalData: this.additionalData, rowClass: this.rowClass, getGroupSelection: (_q = this.grouping) === null || _q === void 0 ? void 0 : _q.getGroupSelection, paddingDepth: (_r = this.grouping) === null || _r === void 0 ? void 0 : _r.depthPadding, slot: CONTENT_SLOT })));
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
// #endregion
|
|
1634
|
+
const typeRow = 'rgRow';
|
|
1635
|
+
const typeCol = 'rgCol';
|
|
1636
|
+
const viewports = this.viewportProvider.stores;
|
|
1637
|
+
const dimensions = this.dimensionProvider.stores;
|
|
1638
|
+
const verticalScroll = this.showScrollbar ? (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) })) : null;
|
|
1639
|
+
const horizontalScroll = this.showScrollbar ? (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) })) : null;
|
|
1640
|
+
// Use the isSourceEmpty variable declared at the beginning of render
|
|
1641
|
+
const emptyPlaceholderEl = (isSourceEmpty && !this.hideEmpty) ? (h("div", { class: "empty-placeholder" }, this.emptyTemplate ? this.emptyTemplate(h) : h("slot", { name: "empty" }))) : null;
|
|
1642
|
+
return (h(Host, { dir: this.rtl ? 'rtl' : 'ltr' }, h("div", { class: "revo-grid-border-line" }), this.hideAttribution ? null : (h("revogr-attribution", { class: "attribution" })), h("slot", { name: "header" }), h("div", { class: "main-viewport", onClick: (e) => {
|
|
1643
|
+
var _a;
|
|
1644
|
+
if (e.currentTarget === e.target) {
|
|
1645
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.clearEdit();
|
|
1646
|
+
}
|
|
1647
|
+
} }, h("div", { class: "viewports" }, h("slot", { name: "viewport" }), viewportSections, emptyPlaceholderEl, verticalScroll, h(OrderRenderer, { ref: e => (this.orderService = e) }))), horizontalScroll, h("revogr-extra", { ref: el => (this.extraService = el), nodes: this.extraElements }), h("slot", { name: "footer" })));
|
|
1648
|
+
}
|
|
1649
|
+
disconnectedCallback() {
|
|
1650
|
+
// Remove all plugins, to avoid memory leaks
|
|
1651
|
+
// and unexpected behaviour when the component is removed
|
|
1652
|
+
this.removePlugins();
|
|
1653
|
+
}
|
|
1654
|
+
static get is() { return "revo-grid"; }
|
|
1655
|
+
static get originalStyleUrls() {
|
|
1656
|
+
return {
|
|
1657
|
+
"$": ["revo-grid-style.scss"]
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
static get styleUrls() {
|
|
1661
|
+
return {
|
|
1662
|
+
"$": ["revo-grid-style.css"]
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
static get properties() {
|
|
1666
|
+
return {
|
|
1667
|
+
"rowHeaders": {
|
|
1668
|
+
"type": "boolean",
|
|
1669
|
+
"attribute": "row-headers",
|
|
1670
|
+
"mutable": false,
|
|
1671
|
+
"complexType": {
|
|
1672
|
+
"original": "RowHeaders | boolean",
|
|
1673
|
+
"resolved": "RowHeaders | boolean",
|
|
1674
|
+
"references": {
|
|
1675
|
+
"RowHeaders": {
|
|
1676
|
+
"location": "import",
|
|
1677
|
+
"path": "@type",
|
|
1678
|
+
"id": "src/types/index.ts::RowHeaders"
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
"required": false,
|
|
1683
|
+
"optional": false,
|
|
1684
|
+
"docs": {
|
|
1685
|
+
"tags": [],
|
|
1686
|
+
"text": "Excel like functionality.\nShow row numbers.\nAlso can be used for custom row header render if object provided."
|
|
1687
|
+
},
|
|
1688
|
+
"getter": false,
|
|
1689
|
+
"setter": false,
|
|
1690
|
+
"reflect": false
|
|
1691
|
+
},
|
|
1692
|
+
"frameSize": {
|
|
1693
|
+
"type": "number",
|
|
1694
|
+
"attribute": "frame-size",
|
|
1695
|
+
"mutable": false,
|
|
1696
|
+
"complexType": {
|
|
1697
|
+
"original": "number",
|
|
1698
|
+
"resolved": "number",
|
|
1699
|
+
"references": {}
|
|
1700
|
+
},
|
|
1701
|
+
"required": false,
|
|
1702
|
+
"optional": false,
|
|
1703
|
+
"docs": {
|
|
1704
|
+
"tags": [],
|
|
1705
|
+
"text": "Defines how many rows/columns should be rendered outside visible area."
|
|
1706
|
+
},
|
|
1707
|
+
"getter": false,
|
|
1708
|
+
"setter": false,
|
|
1709
|
+
"reflect": false,
|
|
1710
|
+
"defaultValue": "1"
|
|
1711
|
+
},
|
|
1712
|
+
"rowSize": {
|
|
1713
|
+
"type": "number",
|
|
1714
|
+
"attribute": "row-size",
|
|
1715
|
+
"mutable": false,
|
|
1716
|
+
"complexType": {
|
|
1717
|
+
"original": "number",
|
|
1718
|
+
"resolved": "number",
|
|
1719
|
+
"references": {}
|
|
1720
|
+
},
|
|
1721
|
+
"required": false,
|
|
1722
|
+
"optional": false,
|
|
1723
|
+
"docs": {
|
|
1724
|
+
"tags": [],
|
|
1725
|
+
"text": "Indicates default rgRow size.\nBy default 0, means theme package size will be applied\n\nAlternatively you can use `rowSize` to reset viewport"
|
|
1726
|
+
},
|
|
1727
|
+
"getter": false,
|
|
1728
|
+
"setter": false,
|
|
1729
|
+
"reflect": false,
|
|
1730
|
+
"defaultValue": "0"
|
|
1731
|
+
},
|
|
1732
|
+
"colSize": {
|
|
1733
|
+
"type": "number",
|
|
1734
|
+
"attribute": "col-size",
|
|
1735
|
+
"mutable": false,
|
|
1736
|
+
"complexType": {
|
|
1737
|
+
"original": "number",
|
|
1738
|
+
"resolved": "number",
|
|
1739
|
+
"references": {}
|
|
1740
|
+
},
|
|
1741
|
+
"required": false,
|
|
1742
|
+
"optional": false,
|
|
1743
|
+
"docs": {
|
|
1744
|
+
"tags": [],
|
|
1745
|
+
"text": "Indicates default column size."
|
|
1746
|
+
},
|
|
1747
|
+
"getter": false,
|
|
1748
|
+
"setter": false,
|
|
1749
|
+
"reflect": false,
|
|
1750
|
+
"defaultValue": "100"
|
|
1751
|
+
},
|
|
1752
|
+
"range": {
|
|
1753
|
+
"type": "boolean",
|
|
1754
|
+
"attribute": "range",
|
|
1755
|
+
"mutable": false,
|
|
1756
|
+
"complexType": {
|
|
1757
|
+
"original": "boolean",
|
|
1758
|
+
"resolved": "boolean",
|
|
1759
|
+
"references": {}
|
|
1760
|
+
},
|
|
1761
|
+
"required": false,
|
|
1762
|
+
"optional": false,
|
|
1763
|
+
"docs": {
|
|
1764
|
+
"tags": [],
|
|
1765
|
+
"text": "When true, user can range selection."
|
|
1766
|
+
},
|
|
1767
|
+
"getter": false,
|
|
1768
|
+
"setter": false,
|
|
1769
|
+
"reflect": false,
|
|
1770
|
+
"defaultValue": "false"
|
|
1771
|
+
},
|
|
1772
|
+
"readonly": {
|
|
1773
|
+
"type": "boolean",
|
|
1774
|
+
"attribute": "readonly",
|
|
1775
|
+
"mutable": false,
|
|
1776
|
+
"complexType": {
|
|
1777
|
+
"original": "boolean",
|
|
1778
|
+
"resolved": "boolean",
|
|
1779
|
+
"references": {}
|
|
1780
|
+
},
|
|
1781
|
+
"required": false,
|
|
1782
|
+
"optional": false,
|
|
1783
|
+
"docs": {
|
|
1784
|
+
"tags": [],
|
|
1785
|
+
"text": "When true, grid in read only mode."
|
|
1786
|
+
},
|
|
1787
|
+
"getter": false,
|
|
1788
|
+
"setter": false,
|
|
1789
|
+
"reflect": false,
|
|
1790
|
+
"defaultValue": "false"
|
|
1791
|
+
},
|
|
1792
|
+
"resize": {
|
|
1793
|
+
"type": "boolean",
|
|
1794
|
+
"attribute": "resize",
|
|
1795
|
+
"mutable": false,
|
|
1796
|
+
"complexType": {
|
|
1797
|
+
"original": "boolean",
|
|
1798
|
+
"resolved": "boolean",
|
|
1799
|
+
"references": {}
|
|
1800
|
+
},
|
|
1801
|
+
"required": false,
|
|
1802
|
+
"optional": false,
|
|
1803
|
+
"docs": {
|
|
1804
|
+
"tags": [],
|
|
1805
|
+
"text": "When true, columns are resizable."
|
|
1806
|
+
},
|
|
1807
|
+
"getter": false,
|
|
1808
|
+
"setter": false,
|
|
1809
|
+
"reflect": false,
|
|
1810
|
+
"defaultValue": "false"
|
|
1811
|
+
},
|
|
1812
|
+
"canFocus": {
|
|
1813
|
+
"type": "boolean",
|
|
1814
|
+
"attribute": "can-focus",
|
|
1815
|
+
"mutable": false,
|
|
1816
|
+
"complexType": {
|
|
1817
|
+
"original": "boolean",
|
|
1818
|
+
"resolved": "boolean",
|
|
1819
|
+
"references": {}
|
|
1820
|
+
},
|
|
1821
|
+
"required": false,
|
|
1822
|
+
"optional": false,
|
|
1823
|
+
"docs": {
|
|
1824
|
+
"tags": [],
|
|
1825
|
+
"text": "When true cell focus appear."
|
|
1826
|
+
},
|
|
1827
|
+
"getter": false,
|
|
1828
|
+
"setter": false,
|
|
1829
|
+
"reflect": false,
|
|
1830
|
+
"defaultValue": "true"
|
|
1831
|
+
},
|
|
1832
|
+
"useClipboard": {
|
|
1833
|
+
"type": "boolean",
|
|
1834
|
+
"attribute": "use-clipboard",
|
|
1835
|
+
"mutable": false,
|
|
1836
|
+
"complexType": {
|
|
1837
|
+
"original": "boolean",
|
|
1838
|
+
"resolved": "boolean",
|
|
1839
|
+
"references": {}
|
|
1840
|
+
},
|
|
1841
|
+
"required": false,
|
|
1842
|
+
"optional": false,
|
|
1843
|
+
"docs": {
|
|
1844
|
+
"tags": [],
|
|
1845
|
+
"text": "When true enable clipboard."
|
|
1846
|
+
},
|
|
1847
|
+
"getter": false,
|
|
1848
|
+
"setter": false,
|
|
1849
|
+
"reflect": false,
|
|
1850
|
+
"defaultValue": "true"
|
|
1851
|
+
},
|
|
1852
|
+
"columns": {
|
|
1853
|
+
"type": "unknown",
|
|
1854
|
+
"attribute": "columns",
|
|
1855
|
+
"mutable": false,
|
|
1856
|
+
"complexType": {
|
|
1857
|
+
"original": "(ColumnRegular | ColumnGrouping)[]",
|
|
1858
|
+
"resolved": "(ColumnRegular | ColumnGrouping<any>)[]",
|
|
1859
|
+
"references": {
|
|
1860
|
+
"ColumnRegular": {
|
|
1861
|
+
"location": "import",
|
|
1862
|
+
"path": "@type",
|
|
1863
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
1864
|
+
},
|
|
1865
|
+
"ColumnGrouping": {
|
|
1866
|
+
"location": "import",
|
|
1867
|
+
"path": "@type",
|
|
1868
|
+
"id": "src/types/index.ts::ColumnGrouping"
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
},
|
|
1872
|
+
"required": false,
|
|
1873
|
+
"optional": false,
|
|
1874
|
+
"docs": {
|
|
1875
|
+
"tags": [],
|
|
1876
|
+
"text": "Columns - defines an array of grid columns.\nCan be column or grouped column."
|
|
1877
|
+
},
|
|
1878
|
+
"getter": false,
|
|
1879
|
+
"setter": false,
|
|
1880
|
+
"defaultValue": "[]"
|
|
1881
|
+
},
|
|
1882
|
+
"source": {
|
|
1883
|
+
"type": "unknown",
|
|
1884
|
+
"attribute": "source",
|
|
1885
|
+
"mutable": false,
|
|
1886
|
+
"complexType": {
|
|
1887
|
+
"original": "DataType[]",
|
|
1888
|
+
"resolved": "DataType[]",
|
|
1889
|
+
"references": {
|
|
1890
|
+
"DataType": {
|
|
1891
|
+
"location": "import",
|
|
1892
|
+
"path": "@type",
|
|
1893
|
+
"id": "src/types/index.ts::DataType"
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
"required": false,
|
|
1898
|
+
"optional": false,
|
|
1899
|
+
"docs": {
|
|
1900
|
+
"tags": [],
|
|
1901
|
+
"text": "Source - defines main data source.\nCan be an Object or 2 dimensional array([][]);\nKeys/indexes referenced from columns Prop."
|
|
1902
|
+
},
|
|
1903
|
+
"getter": false,
|
|
1904
|
+
"setter": false,
|
|
1905
|
+
"defaultValue": "[]"
|
|
1906
|
+
},
|
|
1907
|
+
"pinnedTopSource": {
|
|
1908
|
+
"type": "unknown",
|
|
1909
|
+
"attribute": "pinned-top-source",
|
|
1910
|
+
"mutable": false,
|
|
1911
|
+
"complexType": {
|
|
1912
|
+
"original": "DataType[]",
|
|
1913
|
+
"resolved": "DataType[]",
|
|
1914
|
+
"references": {
|
|
1915
|
+
"DataType": {
|
|
1916
|
+
"location": "import",
|
|
1917
|
+
"path": "@type",
|
|
1918
|
+
"id": "src/types/index.ts::DataType"
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
},
|
|
1922
|
+
"required": false,
|
|
1923
|
+
"optional": false,
|
|
1924
|
+
"docs": {
|
|
1925
|
+
"tags": [],
|
|
1926
|
+
"text": "Pinned top Source: {[T in ColumnProp]: any} - defines pinned top rows data source."
|
|
1927
|
+
},
|
|
1928
|
+
"getter": false,
|
|
1929
|
+
"setter": false,
|
|
1930
|
+
"defaultValue": "[]"
|
|
1931
|
+
},
|
|
1932
|
+
"pinnedBottomSource": {
|
|
1933
|
+
"type": "unknown",
|
|
1934
|
+
"attribute": "pinned-bottom-source",
|
|
1935
|
+
"mutable": false,
|
|
1936
|
+
"complexType": {
|
|
1937
|
+
"original": "DataType[]",
|
|
1938
|
+
"resolved": "DataType[]",
|
|
1939
|
+
"references": {
|
|
1940
|
+
"DataType": {
|
|
1941
|
+
"location": "import",
|
|
1942
|
+
"path": "@type",
|
|
1943
|
+
"id": "src/types/index.ts::DataType"
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
},
|
|
1947
|
+
"required": false,
|
|
1948
|
+
"optional": false,
|
|
1949
|
+
"docs": {
|
|
1950
|
+
"tags": [],
|
|
1951
|
+
"text": "Pinned bottom Source: {[T in ColumnProp]: any} - defines pinned bottom rows data source."
|
|
1952
|
+
},
|
|
1953
|
+
"getter": false,
|
|
1954
|
+
"setter": false,
|
|
1955
|
+
"defaultValue": "[]"
|
|
1956
|
+
},
|
|
1957
|
+
"rowDefinitions": {
|
|
1958
|
+
"type": "unknown",
|
|
1959
|
+
"attribute": "row-definitions",
|
|
1960
|
+
"mutable": false,
|
|
1961
|
+
"complexType": {
|
|
1962
|
+
"original": "RowDefinition[]",
|
|
1963
|
+
"resolved": "RowDefinition[]",
|
|
1964
|
+
"references": {
|
|
1965
|
+
"RowDefinition": {
|
|
1966
|
+
"location": "import",
|
|
1967
|
+
"path": "@type",
|
|
1968
|
+
"id": "src/types/index.ts::RowDefinition"
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
},
|
|
1972
|
+
"required": false,
|
|
1973
|
+
"optional": false,
|
|
1974
|
+
"docs": {
|
|
1975
|
+
"tags": [],
|
|
1976
|
+
"text": "Custom row properies to be applied. See `RowDefinition` for more info."
|
|
1977
|
+
},
|
|
1978
|
+
"getter": false,
|
|
1979
|
+
"setter": false,
|
|
1980
|
+
"defaultValue": "[]"
|
|
1981
|
+
},
|
|
1982
|
+
"editors": {
|
|
1983
|
+
"type": "unknown",
|
|
1984
|
+
"attribute": "editors",
|
|
1985
|
+
"mutable": false,
|
|
1986
|
+
"complexType": {
|
|
1987
|
+
"original": "Editors",
|
|
1988
|
+
"resolved": "{ [name: string]: EditorCtr; }",
|
|
1989
|
+
"references": {
|
|
1990
|
+
"Editors": {
|
|
1991
|
+
"location": "import",
|
|
1992
|
+
"path": "@type",
|
|
1993
|
+
"id": "src/types/index.ts::Editors"
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1997
|
+
"required": false,
|
|
1998
|
+
"optional": false,
|
|
1999
|
+
"docs": {
|
|
2000
|
+
"tags": [],
|
|
2001
|
+
"text": "Custom editors register."
|
|
2002
|
+
},
|
|
2003
|
+
"getter": false,
|
|
2004
|
+
"setter": false,
|
|
2005
|
+
"defaultValue": "{}"
|
|
2006
|
+
},
|
|
2007
|
+
"applyOnClose": {
|
|
2008
|
+
"type": "boolean",
|
|
2009
|
+
"attribute": "apply-on-close",
|
|
2010
|
+
"mutable": false,
|
|
2011
|
+
"complexType": {
|
|
2012
|
+
"original": "boolean",
|
|
2013
|
+
"resolved": "boolean",
|
|
2014
|
+
"references": {}
|
|
2015
|
+
},
|
|
2016
|
+
"required": false,
|
|
2017
|
+
"optional": false,
|
|
2018
|
+
"docs": {
|
|
2019
|
+
"tags": [],
|
|
2020
|
+
"text": "Apply changes in editor when closed except 'Escape' cases.\nIf custom editor in use method getValue required.\nCheck interfaces.d.ts `EditorBase` for more info."
|
|
2021
|
+
},
|
|
2022
|
+
"getter": false,
|
|
2023
|
+
"setter": false,
|
|
2024
|
+
"reflect": false,
|
|
2025
|
+
"defaultValue": "false"
|
|
2026
|
+
},
|
|
2027
|
+
"plugins": {
|
|
2028
|
+
"type": "unknown",
|
|
2029
|
+
"attribute": "plugins",
|
|
2030
|
+
"mutable": false,
|
|
2031
|
+
"complexType": {
|
|
2032
|
+
"original": "GridPlugin[]",
|
|
2033
|
+
"resolved": "(typeof BasePlugin)[]",
|
|
2034
|
+
"references": {
|
|
2035
|
+
"GridPlugin": {
|
|
2036
|
+
"location": "import",
|
|
2037
|
+
"path": "../../plugins/base.plugin",
|
|
2038
|
+
"id": "src/plugins/base.plugin.ts::GridPlugin"
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"required": false,
|
|
2043
|
+
"optional": false,
|
|
2044
|
+
"docs": {
|
|
2045
|
+
"tags": [],
|
|
2046
|
+
"text": "Custom grid plugins. Can be added or removed at runtime.\nEvery plugin should be inherited from BasePlugin class.\n\nFor more details check [Plugin guide](https://rv-grid.com/guide/plugin/)"
|
|
2047
|
+
},
|
|
2048
|
+
"getter": false,
|
|
2049
|
+
"setter": false,
|
|
2050
|
+
"defaultValue": "[]"
|
|
2051
|
+
},
|
|
2052
|
+
"columnTypes": {
|
|
2053
|
+
"type": "unknown",
|
|
2054
|
+
"attribute": "column-types",
|
|
2055
|
+
"mutable": false,
|
|
2056
|
+
"complexType": {
|
|
2057
|
+
"original": "{ [name: string]: ColumnType }",
|
|
2058
|
+
"resolved": "{ [name: string]: ColumnType; }",
|
|
2059
|
+
"references": {
|
|
2060
|
+
"ColumnType": {
|
|
2061
|
+
"location": "import",
|
|
2062
|
+
"path": "@type",
|
|
2063
|
+
"id": "src/types/index.ts::ColumnType"
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
"required": false,
|
|
2068
|
+
"optional": false,
|
|
2069
|
+
"docs": {
|
|
2070
|
+
"tags": [],
|
|
2071
|
+
"text": "Column Types Format.\nEvery type represent multiple column properties.\nTypes will be merged but can be replaced with column properties.\nTypes were made as separate objects to be reusable per multiple columns."
|
|
2072
|
+
},
|
|
2073
|
+
"getter": false,
|
|
2074
|
+
"setter": false,
|
|
2075
|
+
"defaultValue": "{}"
|
|
2076
|
+
},
|
|
2077
|
+
"theme": {
|
|
2078
|
+
"type": "string",
|
|
2079
|
+
"attribute": "theme",
|
|
2080
|
+
"mutable": true,
|
|
2081
|
+
"complexType": {
|
|
2082
|
+
"original": "Theme",
|
|
2083
|
+
"resolved": "string",
|
|
2084
|
+
"references": {
|
|
2085
|
+
"Theme": {
|
|
2086
|
+
"location": "import",
|
|
2087
|
+
"path": "@type",
|
|
2088
|
+
"id": "src/types/index.ts::Theme"
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"required": false,
|
|
2093
|
+
"optional": false,
|
|
2094
|
+
"docs": {
|
|
2095
|
+
"tags": [],
|
|
2096
|
+
"text": "Theme name."
|
|
2097
|
+
},
|
|
2098
|
+
"getter": false,
|
|
2099
|
+
"setter": false,
|
|
2100
|
+
"reflect": true,
|
|
2101
|
+
"defaultValue": "'default'"
|
|
2102
|
+
},
|
|
2103
|
+
"rowClass": {
|
|
2104
|
+
"type": "string",
|
|
2105
|
+
"attribute": "row-class",
|
|
2106
|
+
"mutable": false,
|
|
2107
|
+
"complexType": {
|
|
2108
|
+
"original": "string",
|
|
2109
|
+
"resolved": "string",
|
|
2110
|
+
"references": {}
|
|
2111
|
+
},
|
|
2112
|
+
"required": false,
|
|
2113
|
+
"optional": false,
|
|
2114
|
+
"docs": {
|
|
2115
|
+
"tags": [],
|
|
2116
|
+
"text": "Row class property mapping.\nMap custom classes to rows from row object data.\nDefine this property in rgRow object and this will be mapped as rgRow class."
|
|
2117
|
+
},
|
|
2118
|
+
"getter": false,
|
|
2119
|
+
"setter": false,
|
|
2120
|
+
"reflect": true,
|
|
2121
|
+
"defaultValue": "''"
|
|
2122
|
+
},
|
|
2123
|
+
"autoSizeColumn": {
|
|
2124
|
+
"type": "boolean",
|
|
2125
|
+
"attribute": "auto-size-column",
|
|
2126
|
+
"mutable": false,
|
|
2127
|
+
"complexType": {
|
|
2128
|
+
"original": "boolean | AutoSizeColumnConfig",
|
|
2129
|
+
"resolved": "boolean | { mode?: ColumnAutoSizeMode | undefined; allColumns?: boolean | undefined; letterBlockSize?: number | undefined; preciseSize?: boolean | undefined; resetToInitialSize?: boolean | undefined; }",
|
|
2130
|
+
"references": {
|
|
2131
|
+
"AutoSizeColumnConfig": {
|
|
2132
|
+
"location": "import",
|
|
2133
|
+
"path": "../../plugins/column.auto-size.plugin",
|
|
2134
|
+
"id": "src/plugins/column.auto-size.plugin.ts::AutoSizeColumnConfig"
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
"required": false,
|
|
2139
|
+
"optional": false,
|
|
2140
|
+
"docs": {
|
|
2141
|
+
"tags": [],
|
|
2142
|
+
"text": "Autosize config.\nEnables columns autoSize.\nFor more details check `autoSizeColumn` plugin.\nBy default disabled, hence operation is not performance efficient.\n`true` to enable with default params (double header separator click for autosize).\nOr define config. See `AutoSizeColumnConfig` for more details."
|
|
2143
|
+
},
|
|
2144
|
+
"getter": false,
|
|
2145
|
+
"setter": false,
|
|
2146
|
+
"reflect": false,
|
|
2147
|
+
"defaultValue": "false"
|
|
2148
|
+
},
|
|
2149
|
+
"filter": {
|
|
2150
|
+
"type": "boolean",
|
|
2151
|
+
"attribute": "filter",
|
|
2152
|
+
"mutable": false,
|
|
2153
|
+
"complexType": {
|
|
2154
|
+
"original": "boolean | ColumnFilterConfig",
|
|
2155
|
+
"resolved": "ColumnFilterConfig | boolean",
|
|
2156
|
+
"references": {
|
|
2157
|
+
"ColumnFilterConfig": {
|
|
2158
|
+
"location": "import",
|
|
2159
|
+
"path": "../../plugins/filter/filter.types",
|
|
2160
|
+
"id": "src/plugins/filter/filter.types.ts::ColumnFilterConfig"
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2164
|
+
"required": false,
|
|
2165
|
+
"optional": false,
|
|
2166
|
+
"docs": {
|
|
2167
|
+
"tags": [],
|
|
2168
|
+
"text": "Enables filter plugin.\nCan be boolean.\nOr can be filter collection See `FilterCollection` for more info."
|
|
2169
|
+
},
|
|
2170
|
+
"getter": false,
|
|
2171
|
+
"setter": false,
|
|
2172
|
+
"reflect": false,
|
|
2173
|
+
"defaultValue": "false"
|
|
2174
|
+
},
|
|
2175
|
+
"sorting": {
|
|
2176
|
+
"type": "unknown",
|
|
2177
|
+
"attribute": "sorting",
|
|
2178
|
+
"mutable": false,
|
|
2179
|
+
"complexType": {
|
|
2180
|
+
"original": "SortingConfig",
|
|
2181
|
+
"resolved": "undefined | { columns?: { prop: ColumnProp; order: Order; cellCompare?: CellCompareFunc | undefined; }[] | undefined; additive?: boolean | undefined; }",
|
|
2182
|
+
"references": {
|
|
2183
|
+
"SortingConfig": {
|
|
2184
|
+
"location": "import",
|
|
2185
|
+
"path": "../../plugins",
|
|
2186
|
+
"id": "src/plugins/index.ts::SortingConfig"
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
"required": false,
|
|
2191
|
+
"optional": true,
|
|
2192
|
+
"docs": {
|
|
2193
|
+
"tags": [],
|
|
2194
|
+
"text": "Alternative way to set sorting.\n`{columns: [{prop: 'name', order: 'asc'}]}`\nUse SortingPlugin to get current sorting state"
|
|
2195
|
+
},
|
|
2196
|
+
"getter": false,
|
|
2197
|
+
"setter": false
|
|
2198
|
+
},
|
|
2199
|
+
"focusTemplate": {
|
|
2200
|
+
"type": "unknown",
|
|
2201
|
+
"attribute": "focus-template",
|
|
2202
|
+
"mutable": false,
|
|
2203
|
+
"complexType": {
|
|
2204
|
+
"original": "FocusTemplateFunc",
|
|
2205
|
+
"resolved": "(createElement: HyperFunc<VNode>, detail: FocusRenderEvent) => any",
|
|
2206
|
+
"references": {
|
|
2207
|
+
"FocusTemplateFunc": {
|
|
2208
|
+
"location": "import",
|
|
2209
|
+
"path": "@type",
|
|
2210
|
+
"id": "src/types/index.ts::FocusTemplateFunc"
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
},
|
|
2214
|
+
"required": false,
|
|
2215
|
+
"optional": false,
|
|
2216
|
+
"docs": {
|
|
2217
|
+
"tags": [],
|
|
2218
|
+
"text": "Apply changes typed in editor on editor close except Escape cases.\nIf custom editor in use method `getValue` required.\nCheck `interfaces.d.ts` `EditorBase` for more info."
|
|
2219
|
+
},
|
|
2220
|
+
"getter": false,
|
|
2221
|
+
"setter": false
|
|
2222
|
+
},
|
|
2223
|
+
"canMoveColumns": {
|
|
2224
|
+
"type": "boolean",
|
|
2225
|
+
"attribute": "can-move-columns",
|
|
2226
|
+
"mutable": false,
|
|
2227
|
+
"complexType": {
|
|
2228
|
+
"original": "boolean",
|
|
2229
|
+
"resolved": "boolean",
|
|
2230
|
+
"references": {}
|
|
2231
|
+
},
|
|
2232
|
+
"required": false,
|
|
2233
|
+
"optional": false,
|
|
2234
|
+
"docs": {
|
|
2235
|
+
"tags": [],
|
|
2236
|
+
"text": "Enable column move plugin."
|
|
2237
|
+
},
|
|
2238
|
+
"getter": false,
|
|
2239
|
+
"setter": false,
|
|
2240
|
+
"reflect": false,
|
|
2241
|
+
"defaultValue": "false"
|
|
2242
|
+
},
|
|
2243
|
+
"trimmedRows": {
|
|
2244
|
+
"type": "unknown",
|
|
2245
|
+
"attribute": "trimmed-rows",
|
|
2246
|
+
"mutable": false,
|
|
2247
|
+
"complexType": {
|
|
2248
|
+
"original": "Record<number, boolean>",
|
|
2249
|
+
"resolved": "{ [x: number]: boolean; }",
|
|
2250
|
+
"references": {
|
|
2251
|
+
"Record": {
|
|
2252
|
+
"location": "global",
|
|
2253
|
+
"id": "global::Record"
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
"required": false,
|
|
2258
|
+
"optional": false,
|
|
2259
|
+
"docs": {
|
|
2260
|
+
"tags": [],
|
|
2261
|
+
"text": "Trimmed rows.\nFunctionality which allows to hide rows from main data set.\n`trimmedRows` are physical `rgRow` indexes to hide."
|
|
2262
|
+
},
|
|
2263
|
+
"getter": false,
|
|
2264
|
+
"setter": false,
|
|
2265
|
+
"defaultValue": "{}"
|
|
2266
|
+
},
|
|
2267
|
+
"exporting": {
|
|
2268
|
+
"type": "boolean",
|
|
2269
|
+
"attribute": "exporting",
|
|
2270
|
+
"mutable": false,
|
|
2271
|
+
"complexType": {
|
|
2272
|
+
"original": "boolean",
|
|
2273
|
+
"resolved": "boolean",
|
|
2274
|
+
"references": {}
|
|
2275
|
+
},
|
|
2276
|
+
"required": false,
|
|
2277
|
+
"optional": false,
|
|
2278
|
+
"docs": {
|
|
2279
|
+
"tags": [],
|
|
2280
|
+
"text": "Enable export plugin."
|
|
2281
|
+
},
|
|
2282
|
+
"getter": false,
|
|
2283
|
+
"setter": false,
|
|
2284
|
+
"reflect": false,
|
|
2285
|
+
"defaultValue": "false"
|
|
2286
|
+
},
|
|
2287
|
+
"grouping": {
|
|
2288
|
+
"type": "unknown",
|
|
2289
|
+
"attribute": "grouping",
|
|
2290
|
+
"mutable": false,
|
|
2291
|
+
"complexType": {
|
|
2292
|
+
"original": "GroupingOptions",
|
|
2293
|
+
"resolved": "{ props?: ColumnProp[] | undefined; preserveGroupingOnUpdate?: boolean | undefined; groupLabelTemplate?: GroupLabelTemplateFunc | undefined; depthPadding?: number | undefined; } & ExpandedOptions",
|
|
2294
|
+
"references": {
|
|
2295
|
+
"GroupingOptions": {
|
|
2296
|
+
"location": "import",
|
|
2297
|
+
"path": "../../plugins/groupingRow/grouping.row.types",
|
|
2298
|
+
"id": "src/plugins/groupingRow/grouping.row.types.ts::GroupingOptions"
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
},
|
|
2302
|
+
"required": false,
|
|
2303
|
+
"optional": false,
|
|
2304
|
+
"docs": {
|
|
2305
|
+
"tags": [],
|
|
2306
|
+
"text": "Group rows based on this property.\nDefine properties to be groped by grouping plugin See `GroupingOptions`."
|
|
2307
|
+
},
|
|
2308
|
+
"getter": false,
|
|
2309
|
+
"setter": false
|
|
2310
|
+
},
|
|
2311
|
+
"stretch": {
|
|
2312
|
+
"type": "any",
|
|
2313
|
+
"attribute": "stretch",
|
|
2314
|
+
"mutable": false,
|
|
2315
|
+
"complexType": {
|
|
2316
|
+
"original": "boolean | string",
|
|
2317
|
+
"resolved": "boolean | string",
|
|
2318
|
+
"references": {}
|
|
2319
|
+
},
|
|
2320
|
+
"required": false,
|
|
2321
|
+
"optional": false,
|
|
2322
|
+
"docs": {
|
|
2323
|
+
"tags": [],
|
|
2324
|
+
"text": "Stretch strategy for columns by `StretchColumn` plugin.\nFor example if there are more space on the right last column size would be increased."
|
|
2325
|
+
},
|
|
2326
|
+
"getter": false,
|
|
2327
|
+
"setter": false,
|
|
2328
|
+
"reflect": false,
|
|
2329
|
+
"defaultValue": "false"
|
|
2330
|
+
},
|
|
2331
|
+
"additionalData": {
|
|
2332
|
+
"type": "unknown",
|
|
2333
|
+
"attribute": "additional-data",
|
|
2334
|
+
"mutable": false,
|
|
2335
|
+
"complexType": {
|
|
2336
|
+
"original": "AdditionalData",
|
|
2337
|
+
"resolved": "AdditionalData",
|
|
2338
|
+
"references": {
|
|
2339
|
+
"AdditionalData": {
|
|
2340
|
+
"location": "import",
|
|
2341
|
+
"path": "@type",
|
|
2342
|
+
"id": "src/types/index.ts::AdditionalData"
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
},
|
|
2346
|
+
"required": false,
|
|
2347
|
+
"optional": false,
|
|
2348
|
+
"docs": {
|
|
2349
|
+
"tags": [],
|
|
2350
|
+
"text": "Additional data to be passed to plugins, renders or editors.\nFor example if you need to pass Vue component instance."
|
|
2351
|
+
},
|
|
2352
|
+
"getter": false,
|
|
2353
|
+
"setter": false,
|
|
2354
|
+
"defaultValue": "{}"
|
|
2355
|
+
},
|
|
2356
|
+
"disableVirtualX": {
|
|
2357
|
+
"type": "boolean",
|
|
2358
|
+
"attribute": "disable-virtual-x",
|
|
2359
|
+
"mutable": false,
|
|
2360
|
+
"complexType": {
|
|
2361
|
+
"original": "boolean",
|
|
2362
|
+
"resolved": "boolean",
|
|
2363
|
+
"references": {}
|
|
2364
|
+
},
|
|
2365
|
+
"required": false,
|
|
2366
|
+
"optional": false,
|
|
2367
|
+
"docs": {
|
|
2368
|
+
"tags": [],
|
|
2369
|
+
"text": "Disable lazy rendering mode for the `X axis`.\nUse when not many columns present and you don't need rerenader cells during scroll.\nCan be used for initial rendering performance improvement."
|
|
2370
|
+
},
|
|
2371
|
+
"getter": false,
|
|
2372
|
+
"setter": false,
|
|
2373
|
+
"reflect": false,
|
|
2374
|
+
"defaultValue": "false"
|
|
2375
|
+
},
|
|
2376
|
+
"disableVirtualY": {
|
|
2377
|
+
"type": "boolean",
|
|
2378
|
+
"attribute": "disable-virtual-y",
|
|
2379
|
+
"mutable": false,
|
|
2380
|
+
"complexType": {
|
|
2381
|
+
"original": "boolean",
|
|
2382
|
+
"resolved": "boolean",
|
|
2383
|
+
"references": {}
|
|
2384
|
+
},
|
|
2385
|
+
"required": false,
|
|
2386
|
+
"optional": false,
|
|
2387
|
+
"docs": {
|
|
2388
|
+
"tags": [],
|
|
2389
|
+
"text": "Disable lazy rendering mode for the `Y axis`.\nUse when not many rows present and you don't need rerenader cells during scroll.\nCan be used for initial rendering performance improvement."
|
|
2390
|
+
},
|
|
2391
|
+
"getter": false,
|
|
2392
|
+
"setter": false,
|
|
2393
|
+
"reflect": false,
|
|
2394
|
+
"defaultValue": "false"
|
|
2395
|
+
},
|
|
2396
|
+
"hideAttribution": {
|
|
2397
|
+
"type": "boolean",
|
|
2398
|
+
"attribute": "hide-attribution",
|
|
2399
|
+
"mutable": false,
|
|
2400
|
+
"complexType": {
|
|
2401
|
+
"original": "boolean",
|
|
2402
|
+
"resolved": "boolean",
|
|
2403
|
+
"references": {}
|
|
2404
|
+
},
|
|
2405
|
+
"required": false,
|
|
2406
|
+
"optional": false,
|
|
2407
|
+
"docs": {
|
|
2408
|
+
"tags": [],
|
|
2409
|
+
"text": "Please only hide the attribution if you are subscribed to Pro version"
|
|
2410
|
+
},
|
|
2411
|
+
"getter": false,
|
|
2412
|
+
"setter": false,
|
|
2413
|
+
"reflect": false,
|
|
2414
|
+
"defaultValue": "false"
|
|
2415
|
+
},
|
|
2416
|
+
"jobsBeforeRender": {
|
|
2417
|
+
"type": "unknown",
|
|
2418
|
+
"attribute": "jobs-before-render",
|
|
2419
|
+
"mutable": false,
|
|
2420
|
+
"complexType": {
|
|
2421
|
+
"original": "Promise<any>[]",
|
|
2422
|
+
"resolved": "Promise<any>[]",
|
|
2423
|
+
"references": {
|
|
2424
|
+
"Promise": {
|
|
2425
|
+
"location": "global",
|
|
2426
|
+
"id": "global::Promise"
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
"required": false,
|
|
2431
|
+
"optional": false,
|
|
2432
|
+
"docs": {
|
|
2433
|
+
"tags": [],
|
|
2434
|
+
"text": "Prevent rendering until job is done.\nCan be used for initial rendering performance improvement.\nWhen several plugins require initial rendering this will prevent double initial rendering."
|
|
2435
|
+
},
|
|
2436
|
+
"getter": false,
|
|
2437
|
+
"setter": false,
|
|
2438
|
+
"defaultValue": "[]"
|
|
2439
|
+
},
|
|
2440
|
+
"registerVNode": {
|
|
2441
|
+
"type": "unknown",
|
|
2442
|
+
"attribute": "register-v-node",
|
|
2443
|
+
"mutable": false,
|
|
2444
|
+
"complexType": {
|
|
2445
|
+
"original": "(\n | VNode\n | ((c: ExtraNodeFuncConfig) => VNode)\n )[]",
|
|
2446
|
+
"resolved": "(VNode | ((c: ExtraNodeFuncConfig) => VNode))[]",
|
|
2447
|
+
"references": {
|
|
2448
|
+
"VNode": {
|
|
2449
|
+
"location": "import",
|
|
2450
|
+
"path": "@stencil/core",
|
|
2451
|
+
"id": "node_modules::VNode"
|
|
2452
|
+
},
|
|
2453
|
+
"ExtraNodeFuncConfig": {
|
|
2454
|
+
"location": "import",
|
|
2455
|
+
"path": "@type",
|
|
2456
|
+
"id": "src/types/index.ts::ExtraNodeFuncConfig"
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
"required": false,
|
|
2461
|
+
"optional": false,
|
|
2462
|
+
"docs": {
|
|
2463
|
+
"tags": [],
|
|
2464
|
+
"text": "Register new virtual node inside of grid.\nUsed for additional items creation such as plugin elements.\nShould be set before grid render inside of plugins.\nCan return VNode result of h() function or a function that returns VNode.\nFunction can be used for performance improvement and additional renders."
|
|
2465
|
+
},
|
|
2466
|
+
"getter": false,
|
|
2467
|
+
"setter": false,
|
|
2468
|
+
"defaultValue": "[]"
|
|
2469
|
+
},
|
|
2470
|
+
"accessible": {
|
|
2471
|
+
"type": "boolean",
|
|
2472
|
+
"attribute": "accessible",
|
|
2473
|
+
"mutable": false,
|
|
2474
|
+
"complexType": {
|
|
2475
|
+
"original": "boolean",
|
|
2476
|
+
"resolved": "boolean",
|
|
2477
|
+
"references": {}
|
|
2478
|
+
},
|
|
2479
|
+
"required": false,
|
|
2480
|
+
"optional": false,
|
|
2481
|
+
"docs": {
|
|
2482
|
+
"tags": [{
|
|
2483
|
+
"name": "default",
|
|
2484
|
+
"text": "true"
|
|
2485
|
+
}],
|
|
2486
|
+
"text": "Enable accessibility. If disabled, the grid will not be accessible."
|
|
2487
|
+
},
|
|
2488
|
+
"getter": false,
|
|
2489
|
+
"setter": false,
|
|
2490
|
+
"reflect": false,
|
|
2491
|
+
"defaultValue": "true"
|
|
2492
|
+
},
|
|
2493
|
+
"rtl": {
|
|
2494
|
+
"type": "boolean",
|
|
2495
|
+
"attribute": "rtl",
|
|
2496
|
+
"mutable": false,
|
|
2497
|
+
"complexType": {
|
|
2498
|
+
"original": "boolean",
|
|
2499
|
+
"resolved": "boolean",
|
|
2500
|
+
"references": {}
|
|
2501
|
+
},
|
|
2502
|
+
"required": false,
|
|
2503
|
+
"optional": false,
|
|
2504
|
+
"docs": {
|
|
2505
|
+
"tags": [{
|
|
2506
|
+
"name": "default",
|
|
2507
|
+
"text": "false"
|
|
2508
|
+
}],
|
|
2509
|
+
"text": "Enable right-to-left (RTL) mode. When enabled, columns will be displayed from right to left."
|
|
2510
|
+
},
|
|
2511
|
+
"getter": false,
|
|
2512
|
+
"setter": false,
|
|
2513
|
+
"reflect": false,
|
|
2514
|
+
"defaultValue": "false"
|
|
2515
|
+
},
|
|
2516
|
+
"canDrag": {
|
|
2517
|
+
"type": "boolean",
|
|
2518
|
+
"attribute": "can-drag",
|
|
2519
|
+
"mutable": false,
|
|
2520
|
+
"complexType": {
|
|
2521
|
+
"original": "boolean",
|
|
2522
|
+
"resolved": "boolean",
|
|
2523
|
+
"references": {}
|
|
2524
|
+
},
|
|
2525
|
+
"required": false,
|
|
2526
|
+
"optional": false,
|
|
2527
|
+
"docs": {
|
|
2528
|
+
"tags": [],
|
|
2529
|
+
"text": "Disable native drag&drop plugin."
|
|
2530
|
+
},
|
|
2531
|
+
"getter": false,
|
|
2532
|
+
"setter": false,
|
|
2533
|
+
"reflect": false,
|
|
2534
|
+
"defaultValue": "true"
|
|
2535
|
+
},
|
|
2536
|
+
"showScrollbar": {
|
|
2537
|
+
"type": "boolean",
|
|
2538
|
+
"attribute": "show-scrollbar",
|
|
2539
|
+
"mutable": false,
|
|
2540
|
+
"complexType": {
|
|
2541
|
+
"original": "boolean",
|
|
2542
|
+
"resolved": "boolean",
|
|
2543
|
+
"references": {}
|
|
2544
|
+
},
|
|
2545
|
+
"required": false,
|
|
2546
|
+
"optional": false,
|
|
2547
|
+
"docs": {
|
|
2548
|
+
"tags": [{
|
|
2549
|
+
"name": "default",
|
|
2550
|
+
"text": "true"
|
|
2551
|
+
}],
|
|
2552
|
+
"text": "Show scrollbars. When false, scrollbars will be hidden."
|
|
2553
|
+
},
|
|
2554
|
+
"getter": false,
|
|
2555
|
+
"setter": false,
|
|
2556
|
+
"reflect": false,
|
|
2557
|
+
"defaultValue": "true"
|
|
2558
|
+
},
|
|
2559
|
+
"emptyTemplate": {
|
|
2560
|
+
"type": "unknown",
|
|
2561
|
+
"attribute": "empty-template",
|
|
2562
|
+
"mutable": false,
|
|
2563
|
+
"complexType": {
|
|
2564
|
+
"original": "(createElement: typeof h) => VNode",
|
|
2565
|
+
"resolved": "((createElement: typeof h) => VNode) | undefined",
|
|
2566
|
+
"references": {
|
|
2567
|
+
"VNode": {
|
|
2568
|
+
"location": "import",
|
|
2569
|
+
"path": "@stencil/core",
|
|
2570
|
+
"id": "node_modules::VNode"
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
},
|
|
2574
|
+
"required": false,
|
|
2575
|
+
"optional": true,
|
|
2576
|
+
"docs": {
|
|
2577
|
+
"tags": [],
|
|
2578
|
+
"text": "Custom template for empty data placeholder.\nIf not provided, the empty slot will be used."
|
|
2579
|
+
},
|
|
2580
|
+
"getter": false,
|
|
2581
|
+
"setter": false
|
|
2582
|
+
},
|
|
2583
|
+
"hideEmpty": {
|
|
2584
|
+
"type": "boolean",
|
|
2585
|
+
"attribute": "hide-empty",
|
|
2586
|
+
"mutable": false,
|
|
2587
|
+
"complexType": {
|
|
2588
|
+
"original": "boolean",
|
|
2589
|
+
"resolved": "boolean",
|
|
2590
|
+
"references": {}
|
|
2591
|
+
},
|
|
2592
|
+
"required": false,
|
|
2593
|
+
"optional": false,
|
|
2594
|
+
"docs": {
|
|
2595
|
+
"tags": [{
|
|
2596
|
+
"name": "default",
|
|
2597
|
+
"text": "false"
|
|
2598
|
+
}],
|
|
2599
|
+
"text": "Hide empty placeholder during initial loading.\nSet to true when loading data asynchronously."
|
|
2600
|
+
},
|
|
2601
|
+
"getter": false,
|
|
2602
|
+
"setter": false,
|
|
2603
|
+
"reflect": false,
|
|
2604
|
+
"defaultValue": "false"
|
|
2605
|
+
},
|
|
2606
|
+
"disableScroll": {
|
|
2607
|
+
"type": "boolean",
|
|
2608
|
+
"attribute": "disable-scroll",
|
|
2609
|
+
"mutable": false,
|
|
2610
|
+
"complexType": {
|
|
2611
|
+
"original": "boolean",
|
|
2612
|
+
"resolved": "boolean",
|
|
2613
|
+
"references": {}
|
|
2614
|
+
},
|
|
2615
|
+
"required": false,
|
|
2616
|
+
"optional": false,
|
|
2617
|
+
"docs": {
|
|
2618
|
+
"tags": [{
|
|
2619
|
+
"name": "default",
|
|
2620
|
+
"text": "false"
|
|
2621
|
+
}],
|
|
2622
|
+
"text": "Disable scrolling. When true, the grid will not respond to scroll events."
|
|
2623
|
+
},
|
|
2624
|
+
"getter": false,
|
|
2625
|
+
"setter": false,
|
|
2626
|
+
"reflect": false,
|
|
2627
|
+
"defaultValue": "false"
|
|
2628
|
+
},
|
|
2629
|
+
"autoScrollToFocus": {
|
|
2630
|
+
"type": "boolean",
|
|
2631
|
+
"attribute": "auto-scroll-to-focus",
|
|
2632
|
+
"mutable": false,
|
|
2633
|
+
"complexType": {
|
|
2634
|
+
"original": "boolean",
|
|
2635
|
+
"resolved": "boolean",
|
|
2636
|
+
"references": {}
|
|
2637
|
+
},
|
|
2638
|
+
"required": false,
|
|
2639
|
+
"optional": false,
|
|
2640
|
+
"docs": {
|
|
2641
|
+
"tags": [{
|
|
2642
|
+
"name": "default",
|
|
2643
|
+
"text": "false"
|
|
2644
|
+
}],
|
|
2645
|
+
"text": "Auto scroll to focused cell. When true, the grid will automatically scroll to make the focused cell visible."
|
|
2646
|
+
},
|
|
2647
|
+
"getter": false,
|
|
2648
|
+
"setter": false,
|
|
2649
|
+
"reflect": false,
|
|
2650
|
+
"defaultValue": "false"
|
|
2651
|
+
}
|
|
2652
|
+
};
|
|
2653
|
+
}
|
|
2654
|
+
static get states() {
|
|
2655
|
+
return {
|
|
2656
|
+
"isSourceEmpty": {},
|
|
2657
|
+
"columnsUpdateNonce": {}
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
static get events() {
|
|
2661
|
+
return [{
|
|
2662
|
+
"method": "contentsizechanged",
|
|
2663
|
+
"name": "contentsizechanged",
|
|
2664
|
+
"bubbles": true,
|
|
2665
|
+
"cancelable": true,
|
|
2666
|
+
"composed": true,
|
|
2667
|
+
"docs": {
|
|
2668
|
+
"tags": [],
|
|
2669
|
+
"text": "New content size has been applied. The size excludes the header.\nCurrently, the event responsible for applying the new content size does not provide the actual size.\nTo retrieve the actual content size, you can utilize the `getContentSize` function after the event has been triggered."
|
|
2670
|
+
},
|
|
2671
|
+
"complexType": {
|
|
2672
|
+
"original": "MultiDimensionType",
|
|
2673
|
+
"resolved": "\"colPinEnd\" | \"colPinStart\" | \"rgCol\" | \"rgRow\" | \"rowPinEnd\" | \"rowPinStart\"",
|
|
2674
|
+
"references": {
|
|
2675
|
+
"MultiDimensionType": {
|
|
2676
|
+
"location": "import",
|
|
2677
|
+
"path": "@type",
|
|
2678
|
+
"id": "src/types/index.ts::MultiDimensionType"
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
}, {
|
|
2683
|
+
"method": "beforeedit",
|
|
2684
|
+
"name": "beforeedit",
|
|
2685
|
+
"bubbles": true,
|
|
2686
|
+
"cancelable": true,
|
|
2687
|
+
"composed": true,
|
|
2688
|
+
"docs": {
|
|
2689
|
+
"tags": [],
|
|
2690
|
+
"text": "Before the data is edited.\nTo prevent the default behavior of editing data and use your own implementation, call `e.preventDefault()`.\nTo override the edit result with your own value, set the `e.val` property to your desired value."
|
|
2691
|
+
},
|
|
2692
|
+
"complexType": {
|
|
2693
|
+
"original": "BeforeSaveDataDetails",
|
|
2694
|
+
"resolved": "BeforeSaveDataDetails",
|
|
2695
|
+
"references": {
|
|
2696
|
+
"BeforeSaveDataDetails": {
|
|
2697
|
+
"location": "import",
|
|
2698
|
+
"path": "@type",
|
|
2699
|
+
"id": "src/types/index.ts::BeforeSaveDataDetails"
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
}, {
|
|
2704
|
+
"method": "beforerangeedit",
|
|
2705
|
+
"name": "beforerangeedit",
|
|
2706
|
+
"bubbles": true,
|
|
2707
|
+
"cancelable": true,
|
|
2708
|
+
"composed": true,
|
|
2709
|
+
"docs": {
|
|
2710
|
+
"tags": [],
|
|
2711
|
+
"text": "Before applying range data, specifically when a range selection occurs.\nTo customize the data and prevent the default edit data from being set, you can call `e.preventDefault()`."
|
|
2712
|
+
},
|
|
2713
|
+
"complexType": {
|
|
2714
|
+
"original": "BeforeRangeSaveDataDetails",
|
|
2715
|
+
"resolved": "{ data: DataLookup; models: Partial<DataLookup>; type: DimensionRows; newRange: RangeArea | null; oldRange: RangeArea | null; }",
|
|
2716
|
+
"references": {
|
|
2717
|
+
"BeforeRangeSaveDataDetails": {
|
|
2718
|
+
"location": "import",
|
|
2719
|
+
"path": "@type",
|
|
2720
|
+
"id": "src/types/index.ts::BeforeRangeSaveDataDetails"
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
}, {
|
|
2725
|
+
"method": "afteredit",
|
|
2726
|
+
"name": "afteredit",
|
|
2727
|
+
"bubbles": true,
|
|
2728
|
+
"cancelable": true,
|
|
2729
|
+
"composed": true,
|
|
2730
|
+
"docs": {
|
|
2731
|
+
"tags": [],
|
|
2732
|
+
"text": "After data applied or range changed."
|
|
2733
|
+
},
|
|
2734
|
+
"complexType": {
|
|
2735
|
+
"original": "AfterEditEvent",
|
|
2736
|
+
"resolved": "BeforeSaveDataDetails | { data: DataLookup; models: Partial<DataLookup>; type: DimensionRows; newRange: RangeArea | null; oldRange: RangeArea | null; }",
|
|
2737
|
+
"references": {
|
|
2738
|
+
"AfterEditEvent": {
|
|
2739
|
+
"location": "import",
|
|
2740
|
+
"path": "@type",
|
|
2741
|
+
"id": "src/types/index.ts::AfterEditEvent"
|
|
2742
|
+
}
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
}, {
|
|
2746
|
+
"method": "beforeautofill",
|
|
2747
|
+
"name": "beforeautofill",
|
|
2748
|
+
"bubbles": true,
|
|
2749
|
+
"cancelable": true,
|
|
2750
|
+
"composed": true,
|
|
2751
|
+
"docs": {
|
|
2752
|
+
"tags": [],
|
|
2753
|
+
"text": "Before autofill is applied.\nTo prevent the default behavior of applying the edit data, you can call `e.preventDefault()`."
|
|
2754
|
+
},
|
|
2755
|
+
"complexType": {
|
|
2756
|
+
"original": "ChangedRange",
|
|
2757
|
+
"resolved": "{ type: DimensionRows; colType: DimensionCols; newRange: RangeArea; oldRange: RangeArea; mapping: OldNewRangeMapping; newData: { [newRowIndex: number]: DataType; }; }",
|
|
2758
|
+
"references": {
|
|
2759
|
+
"ChangedRange": {
|
|
2760
|
+
"location": "import",
|
|
2761
|
+
"path": "@type",
|
|
2762
|
+
"id": "src/types/index.ts::ChangedRange"
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}, {
|
|
2767
|
+
"method": "beforerange",
|
|
2768
|
+
"name": "beforerange",
|
|
2769
|
+
"bubbles": true,
|
|
2770
|
+
"cancelable": true,
|
|
2771
|
+
"composed": true,
|
|
2772
|
+
"docs": {
|
|
2773
|
+
"tags": [],
|
|
2774
|
+
"text": "Before autofill is applied. Runs before beforeautofill event.\nUse e.preventDefault() to prevent range."
|
|
2775
|
+
},
|
|
2776
|
+
"complexType": {
|
|
2777
|
+
"original": "ChangedRange",
|
|
2778
|
+
"resolved": "{ type: DimensionRows; colType: DimensionCols; newRange: RangeArea; oldRange: RangeArea; mapping: OldNewRangeMapping; newData: { [newRowIndex: number]: DataType; }; }",
|
|
2779
|
+
"references": {
|
|
2780
|
+
"ChangedRange": {
|
|
2781
|
+
"location": "import",
|
|
2782
|
+
"path": "@type",
|
|
2783
|
+
"id": "src/types/index.ts::ChangedRange"
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
}, {
|
|
2788
|
+
"method": "afterfocus",
|
|
2789
|
+
"name": "afterfocus",
|
|
2790
|
+
"bubbles": true,
|
|
2791
|
+
"cancelable": true,
|
|
2792
|
+
"composed": true,
|
|
2793
|
+
"docs": {
|
|
2794
|
+
"tags": [],
|
|
2795
|
+
"text": "After focus render finished.\nCan be used to access a focus element through `event.target`.\nThis is just a duplicate of `afterfocus` from `revogr-focus.tsx`."
|
|
2796
|
+
},
|
|
2797
|
+
"complexType": {
|
|
2798
|
+
"original": "FocusAfterRenderEvent",
|
|
2799
|
+
"resolved": "FocusAfterRenderEvent",
|
|
2800
|
+
"references": {
|
|
2801
|
+
"FocusAfterRenderEvent": {
|
|
2802
|
+
"location": "import",
|
|
2803
|
+
"path": "@type",
|
|
2804
|
+
"id": "src/types/index.ts::FocusAfterRenderEvent"
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
}, {
|
|
2809
|
+
"method": "roworderchanged",
|
|
2810
|
+
"name": "roworderchanged",
|
|
2811
|
+
"bubbles": true,
|
|
2812
|
+
"cancelable": true,
|
|
2813
|
+
"composed": true,
|
|
2814
|
+
"docs": {
|
|
2815
|
+
"tags": [],
|
|
2816
|
+
"text": "Before the order of `rgRow` is applied.\nTo prevent the default behavior of changing the order of `rgRow`, you can call `e.preventDefault()`."
|
|
2817
|
+
},
|
|
2818
|
+
"complexType": {
|
|
2819
|
+
"original": "{ from: number; to: number }",
|
|
2820
|
+
"resolved": "{ from: number; to: number; }",
|
|
2821
|
+
"references": {}
|
|
2822
|
+
}
|
|
2823
|
+
}, {
|
|
2824
|
+
"method": "beforesorting",
|
|
2825
|
+
"name": "beforesorting",
|
|
2826
|
+
"bubbles": true,
|
|
2827
|
+
"cancelable": true,
|
|
2828
|
+
"composed": true,
|
|
2829
|
+
"docs": {
|
|
2830
|
+
"tags": [],
|
|
2831
|
+
"text": "By `SortingPlugin`\n<br>Triggered immediately after header click.\n<br>First in sorting event sequence. Ff this event stops no other event called.\n<br>Use `e.preventDefault()` to prevent sorting."
|
|
2832
|
+
},
|
|
2833
|
+
"complexType": {
|
|
2834
|
+
"original": "{\n column: ColumnRegular;\n order: 'desc' | 'asc';\n additive: boolean;\n }",
|
|
2835
|
+
"resolved": "{ column: ColumnRegular; order: \"asc\" | \"desc\"; additive: boolean; }",
|
|
2836
|
+
"references": {
|
|
2837
|
+
"ColumnRegular": {
|
|
2838
|
+
"location": "import",
|
|
2839
|
+
"path": "@type",
|
|
2840
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
}, {
|
|
2845
|
+
"method": "beforesourcesortingapply",
|
|
2846
|
+
"name": "beforesourcesortingapply",
|
|
2847
|
+
"bubbles": true,
|
|
2848
|
+
"cancelable": true,
|
|
2849
|
+
"composed": true,
|
|
2850
|
+
"docs": {
|
|
2851
|
+
"tags": [],
|
|
2852
|
+
"text": "By `SortingPlugin`\n<br>Same as `beforesorting` but triggered after `beforeanysource` (when source is changed).\n<br>Use `e.preventDefault()` to prevent sorting data change."
|
|
2853
|
+
},
|
|
2854
|
+
"complexType": {
|
|
2855
|
+
"original": "{\n type: DimensionRows;\n sorting?: SortingOrder;\n }",
|
|
2856
|
+
"resolved": "{ type: DimensionRows; sorting?: SortingOrder | undefined; }",
|
|
2857
|
+
"references": {
|
|
2858
|
+
"DimensionRows": {
|
|
2859
|
+
"location": "import",
|
|
2860
|
+
"path": "@type",
|
|
2861
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
2862
|
+
},
|
|
2863
|
+
"SortingOrder": {
|
|
2864
|
+
"location": "import",
|
|
2865
|
+
"path": "../../plugins",
|
|
2866
|
+
"id": "src/plugins/index.ts::SortingOrder"
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
}, {
|
|
2871
|
+
"method": "beforesortingapply",
|
|
2872
|
+
"name": "beforesortingapply",
|
|
2873
|
+
"bubbles": true,
|
|
2874
|
+
"cancelable": true,
|
|
2875
|
+
"composed": true,
|
|
2876
|
+
"docs": {
|
|
2877
|
+
"tags": [],
|
|
2878
|
+
"text": "By `SortingPlugin`\n<br> After `beforesorting`\n<br>Triggered after column data updated with new sorting order.\n<br>Use `e.preventDefault()` to prevent sorting data change."
|
|
2879
|
+
},
|
|
2880
|
+
"complexType": {
|
|
2881
|
+
"original": "{\n column: ColumnRegular;\n order: 'desc' | 'asc';\n additive: boolean;\n }",
|
|
2882
|
+
"resolved": "{ column: ColumnRegular; order: \"asc\" | \"desc\"; additive: boolean; }",
|
|
2883
|
+
"references": {
|
|
2884
|
+
"ColumnRegular": {
|
|
2885
|
+
"location": "import",
|
|
2886
|
+
"path": "@type",
|
|
2887
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
}, {
|
|
2892
|
+
"method": "rowdragstart",
|
|
2893
|
+
"name": "rowdragstart",
|
|
2894
|
+
"bubbles": true,
|
|
2895
|
+
"cancelable": true,
|
|
2896
|
+
"composed": true,
|
|
2897
|
+
"docs": {
|
|
2898
|
+
"tags": [],
|
|
2899
|
+
"text": "This event is triggered when the row order change is started.\nTo prevent the default behavior of changing the row order, you can call `e.preventDefault()`.\nTo change the item name at the start of the row order change, you can set `e.text` to the desired new name."
|
|
2900
|
+
},
|
|
2901
|
+
"complexType": {
|
|
2902
|
+
"original": "RowDragStartDetails",
|
|
2903
|
+
"resolved": "{ cell: Cell; text: string; pos: PositionItem; event: MouseEvent; rowType: DimensionRows; model: any; }",
|
|
2904
|
+
"references": {
|
|
2905
|
+
"RowDragStartDetails": {
|
|
2906
|
+
"location": "import",
|
|
2907
|
+
"path": "@type",
|
|
2908
|
+
"id": "src/types/index.ts::RowDragStartDetails"
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
}
|
|
2912
|
+
}, {
|
|
2913
|
+
"method": "headerclick",
|
|
2914
|
+
"name": "headerclick",
|
|
2915
|
+
"bubbles": true,
|
|
2916
|
+
"cancelable": true,
|
|
2917
|
+
"composed": true,
|
|
2918
|
+
"docs": {
|
|
2919
|
+
"tags": [],
|
|
2920
|
+
"text": "On header click."
|
|
2921
|
+
},
|
|
2922
|
+
"complexType": {
|
|
2923
|
+
"original": "ColumnRegular",
|
|
2924
|
+
"resolved": "ColumnRegular",
|
|
2925
|
+
"references": {
|
|
2926
|
+
"ColumnRegular": {
|
|
2927
|
+
"location": "import",
|
|
2928
|
+
"path": "@type",
|
|
2929
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
}, {
|
|
2934
|
+
"method": "beforecellfocus",
|
|
2935
|
+
"name": "beforecellfocus",
|
|
2936
|
+
"bubbles": true,
|
|
2937
|
+
"cancelable": true,
|
|
2938
|
+
"composed": true,
|
|
2939
|
+
"docs": {
|
|
2940
|
+
"tags": [],
|
|
2941
|
+
"text": "Before the cell focus is changed.\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`."
|
|
2942
|
+
},
|
|
2943
|
+
"complexType": {
|
|
2944
|
+
"original": "BeforeSaveDataDetails",
|
|
2945
|
+
"resolved": "BeforeSaveDataDetails",
|
|
2946
|
+
"references": {
|
|
2947
|
+
"BeforeSaveDataDetails": {
|
|
2948
|
+
"location": "import",
|
|
2949
|
+
"path": "@type",
|
|
2950
|
+
"id": "src/types/index.ts::BeforeSaveDataDetails"
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
}, {
|
|
2955
|
+
"method": "cellclick",
|
|
2956
|
+
"name": "cellclick",
|
|
2957
|
+
"bubbles": true,
|
|
2958
|
+
"cancelable": true,
|
|
2959
|
+
"composed": true,
|
|
2960
|
+
"docs": {
|
|
2961
|
+
"tags": [],
|
|
2962
|
+
"text": "Cell click event.\nTriggered when user clicks on a cell."
|
|
2963
|
+
},
|
|
2964
|
+
"complexType": {
|
|
2965
|
+
"original": "BeforeSaveDataDetails & { originalEvent?: MouseEvent | TouchEvent }",
|
|
2966
|
+
"resolved": "BeforeSaveDataDetails & { originalEvent?: MouseEvent | TouchEvent | undefined; }",
|
|
2967
|
+
"references": {
|
|
2968
|
+
"BeforeSaveDataDetails": {
|
|
2969
|
+
"location": "import",
|
|
2970
|
+
"path": "@type",
|
|
2971
|
+
"id": "src/types/index.ts::BeforeSaveDataDetails"
|
|
2972
|
+
},
|
|
2973
|
+
"MouseEvent": {
|
|
2974
|
+
"location": "global",
|
|
2975
|
+
"id": "global::MouseEvent"
|
|
2976
|
+
},
|
|
2977
|
+
"TouchEvent": {
|
|
2978
|
+
"location": "global",
|
|
2979
|
+
"id": "global::TouchEvent"
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
}, {
|
|
2984
|
+
"method": "beforefocuslost",
|
|
2985
|
+
"name": "beforefocuslost",
|
|
2986
|
+
"bubbles": true,
|
|
2987
|
+
"cancelable": true,
|
|
2988
|
+
"composed": true,
|
|
2989
|
+
"docs": {
|
|
2990
|
+
"tags": [],
|
|
2991
|
+
"text": "Before the grid focus is lost.\nTo prevent the default behavior of changing the cell focus, you can call `e.preventDefault()`."
|
|
2992
|
+
},
|
|
2993
|
+
"complexType": {
|
|
2994
|
+
"original": "FocusedData | null",
|
|
2995
|
+
"resolved": "null | { model: any; cell: Cell; colType: DimensionCols; rowType: DimensionRows; column?: ColumnRegular | undefined; }",
|
|
2996
|
+
"references": {
|
|
2997
|
+
"FocusedData": {
|
|
2998
|
+
"location": "import",
|
|
2999
|
+
"path": "./viewport.service",
|
|
3000
|
+
"id": "src/components/revoGrid/viewport.service.ts::FocusedData"
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
}, {
|
|
3005
|
+
"method": "beforesourceset",
|
|
3006
|
+
"name": "beforesourceset",
|
|
3007
|
+
"bubbles": true,
|
|
3008
|
+
"cancelable": true,
|
|
3009
|
+
"composed": true,
|
|
3010
|
+
"docs": {
|
|
3011
|
+
"tags": [],
|
|
3012
|
+
"text": "Before main source/rows data apply.\nYou can override data source here"
|
|
3013
|
+
},
|
|
3014
|
+
"complexType": {
|
|
3015
|
+
"original": "{\n type: DimensionRows;\n source: DataType[];\n }",
|
|
3016
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
3017
|
+
"references": {
|
|
3018
|
+
"DimensionRows": {
|
|
3019
|
+
"location": "import",
|
|
3020
|
+
"path": "@type",
|
|
3021
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3022
|
+
},
|
|
3023
|
+
"DataType": {
|
|
3024
|
+
"location": "import",
|
|
3025
|
+
"path": "@type",
|
|
3026
|
+
"id": "src/types/index.ts::DataType"
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
}, {
|
|
3031
|
+
"method": "beforeanysource",
|
|
3032
|
+
"name": "beforeanysource",
|
|
3033
|
+
"bubbles": true,
|
|
3034
|
+
"cancelable": true,
|
|
3035
|
+
"composed": true,
|
|
3036
|
+
"docs": {
|
|
3037
|
+
"tags": [],
|
|
3038
|
+
"text": "Before data apply on any source type. Can be source from pinned and main viewport.\nYou can override data source here"
|
|
3039
|
+
},
|
|
3040
|
+
"complexType": {
|
|
3041
|
+
"original": "{\n type: DimensionRows;\n source: DataType[];\n }",
|
|
3042
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
3043
|
+
"references": {
|
|
3044
|
+
"DimensionRows": {
|
|
3045
|
+
"location": "import",
|
|
3046
|
+
"path": "@type",
|
|
3047
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3048
|
+
},
|
|
3049
|
+
"DataType": {
|
|
3050
|
+
"location": "import",
|
|
3051
|
+
"path": "@type",
|
|
3052
|
+
"id": "src/types/index.ts::DataType"
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3056
|
+
}, {
|
|
3057
|
+
"method": "aftersourceset",
|
|
3058
|
+
"name": "aftersourceset",
|
|
3059
|
+
"bubbles": true,
|
|
3060
|
+
"cancelable": true,
|
|
3061
|
+
"composed": true,
|
|
3062
|
+
"docs": {
|
|
3063
|
+
"tags": [],
|
|
3064
|
+
"text": "After main source/rows updated"
|
|
3065
|
+
},
|
|
3066
|
+
"complexType": {
|
|
3067
|
+
"original": "{\n type: DimensionRows;\n source: DataType[];\n }",
|
|
3068
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
3069
|
+
"references": {
|
|
3070
|
+
"DimensionRows": {
|
|
3071
|
+
"location": "import",
|
|
3072
|
+
"path": "@type",
|
|
3073
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3074
|
+
},
|
|
3075
|
+
"DataType": {
|
|
3076
|
+
"location": "import",
|
|
3077
|
+
"path": "@type",
|
|
3078
|
+
"id": "src/types/index.ts::DataType"
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
}, {
|
|
3083
|
+
"method": "afteranysource",
|
|
3084
|
+
"name": "afteranysource",
|
|
3085
|
+
"bubbles": true,
|
|
3086
|
+
"cancelable": true,
|
|
3087
|
+
"composed": true,
|
|
3088
|
+
"docs": {
|
|
3089
|
+
"tags": [],
|
|
3090
|
+
"text": "Emitted after each source update, whether from the pinned or main viewport.\nUseful for tracking all changes originating from sources in both the pinned and main viewports."
|
|
3091
|
+
},
|
|
3092
|
+
"complexType": {
|
|
3093
|
+
"original": "{\n type: DimensionRows;\n source: DataType[];\n }",
|
|
3094
|
+
"resolved": "{ type: DimensionRows; source: DataType[]; }",
|
|
3095
|
+
"references": {
|
|
3096
|
+
"DimensionRows": {
|
|
3097
|
+
"location": "import",
|
|
3098
|
+
"path": "@type",
|
|
3099
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3100
|
+
},
|
|
3101
|
+
"DataType": {
|
|
3102
|
+
"location": "import",
|
|
3103
|
+
"path": "@type",
|
|
3104
|
+
"id": "src/types/index.ts::DataType"
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
}, {
|
|
3109
|
+
"method": "beforecolumnsset",
|
|
3110
|
+
"name": "beforecolumnsset",
|
|
3111
|
+
"bubbles": true,
|
|
3112
|
+
"cancelable": true,
|
|
3113
|
+
"composed": true,
|
|
3114
|
+
"docs": {
|
|
3115
|
+
"tags": [],
|
|
3116
|
+
"text": "Emitted before a column update is applied.\nListeners can use this event to perform any necessary actions or modifications before the column update is finalized."
|
|
3117
|
+
},
|
|
3118
|
+
"complexType": {
|
|
3119
|
+
"original": "ColumnCollection",
|
|
3120
|
+
"resolved": "{ columns: Record<DimensionCols, ColumnRegular[]>; columnByProp: Record<ColumnProp, ColumnRegular[]>; columnGrouping: ColumnGroupingCollection; maxLevel: number; sort: Record<ColumnProp, ColumnRegular>; }",
|
|
3121
|
+
"references": {
|
|
3122
|
+
"ColumnCollection": {
|
|
3123
|
+
"location": "import",
|
|
3124
|
+
"path": "../../utils/column.utils",
|
|
3125
|
+
"id": "src/utils/column.utils.ts::ColumnCollection"
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
}, {
|
|
3130
|
+
"method": "beforecolumnapplied",
|
|
3131
|
+
"name": "beforecolumnapplied",
|
|
3132
|
+
"bubbles": true,
|
|
3133
|
+
"cancelable": true,
|
|
3134
|
+
"composed": true,
|
|
3135
|
+
"docs": {
|
|
3136
|
+
"tags": [],
|
|
3137
|
+
"text": "Emitted before a column update is applied, after the column set is gathered and the viewport is updated.\nUseful for performing actions or modifications before the final application of the column update."
|
|
3138
|
+
},
|
|
3139
|
+
"complexType": {
|
|
3140
|
+
"original": "ColumnCollection",
|
|
3141
|
+
"resolved": "{ columns: Record<DimensionCols, ColumnRegular[]>; columnByProp: Record<ColumnProp, ColumnRegular[]>; columnGrouping: ColumnGroupingCollection; maxLevel: number; sort: Record<ColumnProp, ColumnRegular>; }",
|
|
3142
|
+
"references": {
|
|
3143
|
+
"ColumnCollection": {
|
|
3144
|
+
"location": "import",
|
|
3145
|
+
"path": "../../utils/column.utils",
|
|
3146
|
+
"id": "src/utils/column.utils.ts::ColumnCollection"
|
|
3147
|
+
}
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
}, {
|
|
3151
|
+
"method": "aftercolumnsset",
|
|
3152
|
+
"name": "aftercolumnsset",
|
|
3153
|
+
"bubbles": true,
|
|
3154
|
+
"cancelable": true,
|
|
3155
|
+
"composed": true,
|
|
3156
|
+
"docs": {
|
|
3157
|
+
"tags": [],
|
|
3158
|
+
"text": "Column updated"
|
|
3159
|
+
},
|
|
3160
|
+
"complexType": {
|
|
3161
|
+
"original": "{\n columns: ColumnCollection;\n order: SortingOrder;\n }",
|
|
3162
|
+
"resolved": "{ columns: ColumnCollection; order: SortingOrder; }",
|
|
3163
|
+
"references": {
|
|
3164
|
+
"ColumnCollection": {
|
|
3165
|
+
"location": "import",
|
|
3166
|
+
"path": "../../utils/column.utils",
|
|
3167
|
+
"id": "src/utils/column.utils.ts::ColumnCollection"
|
|
3168
|
+
},
|
|
3169
|
+
"SortingOrder": {
|
|
3170
|
+
"location": "import",
|
|
3171
|
+
"path": "../../plugins",
|
|
3172
|
+
"id": "src/plugins/index.ts::SortingOrder"
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
}, {
|
|
3177
|
+
"method": "beforefilterapply",
|
|
3178
|
+
"name": "beforefilterapply",
|
|
3179
|
+
"bubbles": true,
|
|
3180
|
+
"cancelable": true,
|
|
3181
|
+
"composed": true,
|
|
3182
|
+
"docs": {
|
|
3183
|
+
"tags": [],
|
|
3184
|
+
"text": "Emitted before applying a filter to the data source.\nUse e.preventDefault() to prevent cell focus change.\nModify if you need to change filters."
|
|
3185
|
+
},
|
|
3186
|
+
"complexType": {
|
|
3187
|
+
"original": "{ collection: Record<ColumnProp, FilterCollectionItem> }",
|
|
3188
|
+
"resolved": "{ collection: Record<ColumnProp, FilterCollectionItem>; }",
|
|
3189
|
+
"references": {
|
|
3190
|
+
"Record": {
|
|
3191
|
+
"location": "global",
|
|
3192
|
+
"id": "global::Record"
|
|
3193
|
+
},
|
|
3194
|
+
"ColumnProp": {
|
|
3195
|
+
"location": "import",
|
|
3196
|
+
"path": "@type",
|
|
3197
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
3198
|
+
},
|
|
3199
|
+
"FilterCollectionItem": {
|
|
3200
|
+
"location": "import",
|
|
3201
|
+
"path": "../../plugins/filter/filter.types",
|
|
3202
|
+
"id": "src/plugins/filter/filter.types.ts::FilterCollectionItem"
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
}, {
|
|
3207
|
+
"method": "beforefiltertrimmed",
|
|
3208
|
+
"name": "beforefiltertrimmed",
|
|
3209
|
+
"bubbles": true,
|
|
3210
|
+
"cancelable": true,
|
|
3211
|
+
"composed": true,
|
|
3212
|
+
"docs": {
|
|
3213
|
+
"tags": [],
|
|
3214
|
+
"text": "Emitted before applying a filter to the data source.\nUse e.preventDefault() to prevent the default behavior of trimming values and applying the filter.\nModify the `collection` property if you want to change the filters.\nModify the `itemsToFilter` property if you want to filter the indexes for trimming."
|
|
3215
|
+
},
|
|
3216
|
+
"complexType": {
|
|
3217
|
+
"original": "{\n collection: Record<ColumnProp, FilterCollectionItem>;\n itemsToFilter: Record<number, boolean>;\n }",
|
|
3218
|
+
"resolved": "{ collection: Record<ColumnProp, FilterCollectionItem>; itemsToFilter: Record<number, boolean>; }",
|
|
3219
|
+
"references": {
|
|
3220
|
+
"Record": {
|
|
3221
|
+
"location": "global",
|
|
3222
|
+
"id": "global::Record"
|
|
3223
|
+
},
|
|
3224
|
+
"ColumnProp": {
|
|
3225
|
+
"location": "import",
|
|
3226
|
+
"path": "@type",
|
|
3227
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
3228
|
+
},
|
|
3229
|
+
"FilterCollectionItem": {
|
|
3230
|
+
"location": "import",
|
|
3231
|
+
"path": "../../plugins/filter/filter.types",
|
|
3232
|
+
"id": "src/plugins/filter/filter.types.ts::FilterCollectionItem"
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
}, {
|
|
3237
|
+
"method": "beforetrimmed",
|
|
3238
|
+
"name": "beforetrimmed",
|
|
3239
|
+
"bubbles": true,
|
|
3240
|
+
"cancelable": true,
|
|
3241
|
+
"composed": true,
|
|
3242
|
+
"docs": {
|
|
3243
|
+
"tags": [],
|
|
3244
|
+
"text": "Emitted before trimming values.\nUse e.preventDefault() to prevent the default behavior of trimming values.\nModify the `trimmed` property if you want to filter the indexes for trimming."
|
|
3245
|
+
},
|
|
3246
|
+
"complexType": {
|
|
3247
|
+
"original": "{\n trimmed: Record<number, boolean>;\n trimmedType: string;\n type: string;\n }",
|
|
3248
|
+
"resolved": "{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }",
|
|
3249
|
+
"references": {
|
|
3250
|
+
"Record": {
|
|
3251
|
+
"location": "global",
|
|
3252
|
+
"id": "global::Record"
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
}, {
|
|
3257
|
+
"method": "aftertrimmed",
|
|
3258
|
+
"name": "aftertrimmed",
|
|
3259
|
+
"bubbles": true,
|
|
3260
|
+
"cancelable": true,
|
|
3261
|
+
"composed": true,
|
|
3262
|
+
"docs": {
|
|
3263
|
+
"tags": [],
|
|
3264
|
+
"text": "Emitted after trimmed values have been applied.\nUseful for notifying when trimming of values has taken place."
|
|
3265
|
+
},
|
|
3266
|
+
"complexType": {
|
|
3267
|
+
"original": "any",
|
|
3268
|
+
"resolved": "any",
|
|
3269
|
+
"references": {}
|
|
3270
|
+
}
|
|
3271
|
+
}, {
|
|
3272
|
+
"method": "viewportscroll",
|
|
3273
|
+
"name": "viewportscroll",
|
|
3274
|
+
"bubbles": true,
|
|
3275
|
+
"cancelable": true,
|
|
3276
|
+
"composed": true,
|
|
3277
|
+
"docs": {
|
|
3278
|
+
"tags": [],
|
|
3279
|
+
"text": "Emitted when the viewport is scrolled.\nUseful for tracking viewport scrolling events."
|
|
3280
|
+
},
|
|
3281
|
+
"complexType": {
|
|
3282
|
+
"original": "ViewPortScrollEvent",
|
|
3283
|
+
"resolved": "{ dimension: DimensionType; coordinate: number; delta?: number | undefined; outside?: boolean | undefined; }",
|
|
3284
|
+
"references": {
|
|
3285
|
+
"ViewPortScrollEvent": {
|
|
3286
|
+
"location": "import",
|
|
3287
|
+
"path": "@type",
|
|
3288
|
+
"id": "src/types/index.ts::ViewPortScrollEvent"
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
}, {
|
|
3293
|
+
"method": "beforeexport",
|
|
3294
|
+
"name": "beforeexport",
|
|
3295
|
+
"bubbles": true,
|
|
3296
|
+
"cancelable": true,
|
|
3297
|
+
"composed": true,
|
|
3298
|
+
"docs": {
|
|
3299
|
+
"tags": [],
|
|
3300
|
+
"text": "Before export\nUse e.preventDefault() to prevent export\nReplace data in Event in case you want to modify it in export"
|
|
3301
|
+
},
|
|
3302
|
+
"complexType": {
|
|
3303
|
+
"original": "DataInput",
|
|
3304
|
+
"resolved": "{ data: DataType[]; } & ColSource",
|
|
3305
|
+
"references": {
|
|
3306
|
+
"DataInput": {
|
|
3307
|
+
"location": "import",
|
|
3308
|
+
"path": "../../plugins/export/types",
|
|
3309
|
+
"id": "src/plugins/export/types.ts::DataInput"
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
}, {
|
|
3314
|
+
"method": "beforeeditstart",
|
|
3315
|
+
"name": "beforeeditstart",
|
|
3316
|
+
"bubbles": true,
|
|
3317
|
+
"cancelable": true,
|
|
3318
|
+
"composed": true,
|
|
3319
|
+
"docs": {
|
|
3320
|
+
"tags": [],
|
|
3321
|
+
"text": "Emitted before editing starts.\nUse e.preventDefault() to prevent the default edit behavior."
|
|
3322
|
+
},
|
|
3323
|
+
"complexType": {
|
|
3324
|
+
"original": "BeforeSaveDataDetails",
|
|
3325
|
+
"resolved": "BeforeSaveDataDetails",
|
|
3326
|
+
"references": {
|
|
3327
|
+
"BeforeSaveDataDetails": {
|
|
3328
|
+
"location": "import",
|
|
3329
|
+
"path": "@type",
|
|
3330
|
+
"id": "src/types/index.ts::BeforeSaveDataDetails"
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
}, {
|
|
3335
|
+
"method": "aftercolumnresize",
|
|
3336
|
+
"name": "aftercolumnresize",
|
|
3337
|
+
"bubbles": true,
|
|
3338
|
+
"cancelable": true,
|
|
3339
|
+
"composed": true,
|
|
3340
|
+
"docs": {
|
|
3341
|
+
"tags": [],
|
|
3342
|
+
"text": "Emitted after column resizing.\nUseful for retrieving the resized columns."
|
|
3343
|
+
},
|
|
3344
|
+
"complexType": {
|
|
3345
|
+
"original": "{\n [index: number]: ColumnRegular;\n }",
|
|
3346
|
+
"resolved": "{ [index: number]: ColumnRegular; }",
|
|
3347
|
+
"references": {
|
|
3348
|
+
"ColumnRegular": {
|
|
3349
|
+
"location": "import",
|
|
3350
|
+
"path": "@type",
|
|
3351
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
}, {
|
|
3356
|
+
"method": "beforerowdefinition",
|
|
3357
|
+
"name": "beforerowdefinition",
|
|
3358
|
+
"bubbles": true,
|
|
3359
|
+
"cancelable": true,
|
|
3360
|
+
"composed": true,
|
|
3361
|
+
"docs": {
|
|
3362
|
+
"tags": [],
|
|
3363
|
+
"text": "Emitted before the row definition is applied.\nUseful for modifying or preventing the default row definition behavior."
|
|
3364
|
+
},
|
|
3365
|
+
"complexType": {
|
|
3366
|
+
"original": "{ vals: any; oldVals: any }",
|
|
3367
|
+
"resolved": "{ vals: any; oldVals: any; }",
|
|
3368
|
+
"references": {}
|
|
3369
|
+
}
|
|
3370
|
+
}, {
|
|
3371
|
+
"method": "filterconfigchanged",
|
|
3372
|
+
"name": "filterconfigchanged",
|
|
3373
|
+
"bubbles": true,
|
|
3374
|
+
"cancelable": true,
|
|
3375
|
+
"composed": true,
|
|
3376
|
+
"docs": {
|
|
3377
|
+
"tags": [],
|
|
3378
|
+
"text": "Emitted when the filter configuration is changed"
|
|
3379
|
+
},
|
|
3380
|
+
"complexType": {
|
|
3381
|
+
"original": "any",
|
|
3382
|
+
"resolved": "any",
|
|
3383
|
+
"references": {}
|
|
3384
|
+
}
|
|
3385
|
+
}, {
|
|
3386
|
+
"method": "sortingconfigchanged",
|
|
3387
|
+
"name": "sortingconfigchanged",
|
|
3388
|
+
"bubbles": true,
|
|
3389
|
+
"cancelable": true,
|
|
3390
|
+
"composed": true,
|
|
3391
|
+
"docs": {
|
|
3392
|
+
"tags": [],
|
|
3393
|
+
"text": "Emitted when the sorting configuration is changed\nSortingPlugin subsribed to this event"
|
|
3394
|
+
},
|
|
3395
|
+
"complexType": {
|
|
3396
|
+
"original": "SortingConfig",
|
|
3397
|
+
"resolved": "{ columns?: { prop: ColumnProp; order: Order; cellCompare?: CellCompareFunc | undefined; }[] | undefined; additive?: boolean | undefined; }",
|
|
3398
|
+
"references": {
|
|
3399
|
+
"SortingConfig": {
|
|
3400
|
+
"location": "import",
|
|
3401
|
+
"path": "../../plugins",
|
|
3402
|
+
"id": "src/plugins/index.ts::SortingConfig"
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
}, {
|
|
3407
|
+
"method": "rowheaderschanged",
|
|
3408
|
+
"name": "rowheaderschanged",
|
|
3409
|
+
"bubbles": true,
|
|
3410
|
+
"cancelable": true,
|
|
3411
|
+
"composed": true,
|
|
3412
|
+
"docs": {
|
|
3413
|
+
"tags": [],
|
|
3414
|
+
"text": "Emmited when the row headers are changed."
|
|
3415
|
+
},
|
|
3416
|
+
"complexType": {
|
|
3417
|
+
"original": "any",
|
|
3418
|
+
"resolved": "any",
|
|
3419
|
+
"references": {}
|
|
3420
|
+
}
|
|
3421
|
+
}, {
|
|
3422
|
+
"method": "beforegridrender",
|
|
3423
|
+
"name": "beforegridrender",
|
|
3424
|
+
"bubbles": true,
|
|
3425
|
+
"cancelable": true,
|
|
3426
|
+
"composed": true,
|
|
3427
|
+
"docs": {
|
|
3428
|
+
"tags": [],
|
|
3429
|
+
"text": "Emmited before the grid is rendered."
|
|
3430
|
+
},
|
|
3431
|
+
"complexType": {
|
|
3432
|
+
"original": "any",
|
|
3433
|
+
"resolved": "any",
|
|
3434
|
+
"references": {}
|
|
3435
|
+
}
|
|
3436
|
+
}, {
|
|
3437
|
+
"method": "aftergridrender",
|
|
3438
|
+
"name": "aftergridrender",
|
|
3439
|
+
"bubbles": true,
|
|
3440
|
+
"cancelable": true,
|
|
3441
|
+
"composed": true,
|
|
3442
|
+
"docs": {
|
|
3443
|
+
"tags": [],
|
|
3444
|
+
"text": "Emmited after the grid is rendered."
|
|
3445
|
+
},
|
|
3446
|
+
"complexType": {
|
|
3447
|
+
"original": "any",
|
|
3448
|
+
"resolved": "any",
|
|
3449
|
+
"references": {}
|
|
3450
|
+
}
|
|
3451
|
+
}, {
|
|
3452
|
+
"method": "afterdatarendered",
|
|
3453
|
+
"name": "afterdatarendered",
|
|
3454
|
+
"bubbles": true,
|
|
3455
|
+
"cancelable": true,
|
|
3456
|
+
"composed": true,
|
|
3457
|
+
"docs": {
|
|
3458
|
+
"tags": [],
|
|
3459
|
+
"text": "Emmited after data source update and all related renders are completed.\nThis event is triggered only once per data update, after all areas (main, pinned) are rendered."
|
|
3460
|
+
},
|
|
3461
|
+
"complexType": {
|
|
3462
|
+
"original": "any",
|
|
3463
|
+
"resolved": "any",
|
|
3464
|
+
"references": {}
|
|
3465
|
+
}
|
|
3466
|
+
}, {
|
|
3467
|
+
"method": "aftergridinit",
|
|
3468
|
+
"name": "aftergridinit",
|
|
3469
|
+
"bubbles": true,
|
|
3470
|
+
"cancelable": true,
|
|
3471
|
+
"composed": true,
|
|
3472
|
+
"docs": {
|
|
3473
|
+
"tags": [],
|
|
3474
|
+
"text": "Emmited after the grid is initialized. Connected to the DOM."
|
|
3475
|
+
},
|
|
3476
|
+
"complexType": {
|
|
3477
|
+
"original": "any",
|
|
3478
|
+
"resolved": "any",
|
|
3479
|
+
"references": {}
|
|
3480
|
+
}
|
|
3481
|
+
}, {
|
|
3482
|
+
"method": "additionaldatachanged",
|
|
3483
|
+
"name": "additionaldatachanged",
|
|
3484
|
+
"bubbles": true,
|
|
3485
|
+
"cancelable": true,
|
|
3486
|
+
"composed": true,
|
|
3487
|
+
"docs": {
|
|
3488
|
+
"tags": [],
|
|
3489
|
+
"text": "Emmited after the additional data is changed"
|
|
3490
|
+
},
|
|
3491
|
+
"complexType": {
|
|
3492
|
+
"original": "any",
|
|
3493
|
+
"resolved": "any",
|
|
3494
|
+
"references": {}
|
|
3495
|
+
}
|
|
3496
|
+
}, {
|
|
3497
|
+
"method": "afterthemechanged",
|
|
3498
|
+
"name": "afterthemechanged",
|
|
3499
|
+
"bubbles": true,
|
|
3500
|
+
"cancelable": true,
|
|
3501
|
+
"composed": true,
|
|
3502
|
+
"docs": {
|
|
3503
|
+
"tags": [],
|
|
3504
|
+
"text": "Emmited after the theme is changed"
|
|
3505
|
+
},
|
|
3506
|
+
"complexType": {
|
|
3507
|
+
"original": "Theme",
|
|
3508
|
+
"resolved": "string",
|
|
3509
|
+
"references": {
|
|
3510
|
+
"Theme": {
|
|
3511
|
+
"location": "import",
|
|
3512
|
+
"path": "@type",
|
|
3513
|
+
"id": "src/types/index.ts::Theme"
|
|
3514
|
+
}
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
}, {
|
|
3518
|
+
"method": "created",
|
|
3519
|
+
"name": "created",
|
|
3520
|
+
"bubbles": true,
|
|
3521
|
+
"cancelable": true,
|
|
3522
|
+
"composed": true,
|
|
3523
|
+
"docs": {
|
|
3524
|
+
"tags": [],
|
|
3525
|
+
"text": "Emmited after grid created"
|
|
3526
|
+
},
|
|
3527
|
+
"complexType": {
|
|
3528
|
+
"original": "any",
|
|
3529
|
+
"resolved": "any",
|
|
3530
|
+
"references": {}
|
|
3531
|
+
}
|
|
3532
|
+
}];
|
|
3533
|
+
}
|
|
3534
|
+
static get methods() {
|
|
3535
|
+
return {
|
|
3536
|
+
"refresh": {
|
|
3537
|
+
"complexType": {
|
|
3538
|
+
"signature": "(type?: DimensionRows | \"all\") => Promise<void>",
|
|
3539
|
+
"parameters": [{
|
|
3540
|
+
"name": "type",
|
|
3541
|
+
"type": "DimensionRows | \"all\"",
|
|
3542
|
+
"docs": ""
|
|
3543
|
+
}],
|
|
3544
|
+
"references": {
|
|
3545
|
+
"Promise": {
|
|
3546
|
+
"location": "global",
|
|
3547
|
+
"id": "global::Promise"
|
|
3548
|
+
},
|
|
3549
|
+
"DimensionRows": {
|
|
3550
|
+
"location": "import",
|
|
3551
|
+
"path": "@type",
|
|
3552
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3553
|
+
}
|
|
3554
|
+
},
|
|
3555
|
+
"return": "Promise<void>"
|
|
3556
|
+
},
|
|
3557
|
+
"docs": {
|
|
3558
|
+
"text": "Refreshes data viewport.\nCan be specific part as rgRow or pinned rgRow or 'all' by default.",
|
|
3559
|
+
"tags": []
|
|
3560
|
+
}
|
|
3561
|
+
},
|
|
3562
|
+
"setDataAt": {
|
|
3563
|
+
"complexType": {
|
|
3564
|
+
"signature": "({ row, col, colType, rowType, val, skipDataUpdate }: { row: number; col: number; val?: any; skipDataUpdate?: boolean; } & AllDimensionType) => Promise<void | undefined>",
|
|
3565
|
+
"parameters": [{
|
|
3566
|
+
"name": "__0",
|
|
3567
|
+
"type": "{ row: number; col: number; val?: any; skipDataUpdate?: boolean | undefined; } & AllDimensionType",
|
|
3568
|
+
"docs": ""
|
|
3569
|
+
}],
|
|
3570
|
+
"references": {
|
|
3571
|
+
"Promise": {
|
|
3572
|
+
"location": "global",
|
|
3573
|
+
"id": "global::Promise"
|
|
3574
|
+
},
|
|
3575
|
+
"AllDimensionType": {
|
|
3576
|
+
"location": "import",
|
|
3577
|
+
"path": "@type",
|
|
3578
|
+
"id": "src/types/index.ts::AllDimensionType"
|
|
3579
|
+
},
|
|
3580
|
+
"HTMLRevogrDataElement": {
|
|
3581
|
+
"location": "global",
|
|
3582
|
+
"id": "global::HTMLRevogrDataElement"
|
|
3583
|
+
}
|
|
3584
|
+
},
|
|
3585
|
+
"return": "Promise<void | undefined>"
|
|
3586
|
+
},
|
|
3587
|
+
"docs": {
|
|
3588
|
+
"text": "Refreshes data at specified cell.\nUseful for performance optimization.\nNo viewport update will be triggered.",
|
|
3589
|
+
"tags": [{
|
|
3590
|
+
"name": "example",
|
|
3591
|
+
"text": "const grid = document.querySelector('revo-grid');\ngrid.setDataAt({ row: 0, col: 0, val: 'test' }); // refresh"
|
|
3592
|
+
}]
|
|
3593
|
+
}
|
|
3594
|
+
},
|
|
3595
|
+
"scrollToRow": {
|
|
3596
|
+
"complexType": {
|
|
3597
|
+
"signature": "(coordinate?: number) => Promise<void>",
|
|
3598
|
+
"parameters": [{
|
|
3599
|
+
"name": "coordinate",
|
|
3600
|
+
"type": "number",
|
|
3601
|
+
"docs": ""
|
|
3602
|
+
}],
|
|
3603
|
+
"references": {
|
|
3604
|
+
"Promise": {
|
|
3605
|
+
"location": "global",
|
|
3606
|
+
"id": "global::Promise"
|
|
3607
|
+
}
|
|
3608
|
+
},
|
|
3609
|
+
"return": "Promise<void>"
|
|
3610
|
+
},
|
|
3611
|
+
"docs": {
|
|
3612
|
+
"text": "Scrolls viewport to specified row by index.",
|
|
3613
|
+
"tags": []
|
|
3614
|
+
}
|
|
3615
|
+
},
|
|
3616
|
+
"scrollToColumnIndex": {
|
|
3617
|
+
"complexType": {
|
|
3618
|
+
"signature": "(coordinate?: number) => Promise<void>",
|
|
3619
|
+
"parameters": [{
|
|
3620
|
+
"name": "coordinate",
|
|
3621
|
+
"type": "number",
|
|
3622
|
+
"docs": ""
|
|
3623
|
+
}],
|
|
3624
|
+
"references": {
|
|
3625
|
+
"Promise": {
|
|
3626
|
+
"location": "global",
|
|
3627
|
+
"id": "global::Promise"
|
|
3628
|
+
}
|
|
3629
|
+
},
|
|
3630
|
+
"return": "Promise<void>"
|
|
3631
|
+
},
|
|
3632
|
+
"docs": {
|
|
3633
|
+
"text": "Scrolls viewport to specified column by index.",
|
|
3634
|
+
"tags": []
|
|
3635
|
+
}
|
|
3636
|
+
},
|
|
3637
|
+
"scrollToColumnProp": {
|
|
3638
|
+
"complexType": {
|
|
3639
|
+
"signature": "(prop: ColumnProp, dimension?: DimensionTypeCol) => Promise<void>",
|
|
3640
|
+
"parameters": [{
|
|
3641
|
+
"name": "prop",
|
|
3642
|
+
"type": "string | number",
|
|
3643
|
+
"docs": ""
|
|
3644
|
+
}, {
|
|
3645
|
+
"name": "dimension",
|
|
3646
|
+
"type": "\"rgCol\"",
|
|
3647
|
+
"docs": ""
|
|
3648
|
+
}],
|
|
3649
|
+
"references": {
|
|
3650
|
+
"Promise": {
|
|
3651
|
+
"location": "global",
|
|
3652
|
+
"id": "global::Promise"
|
|
3653
|
+
},
|
|
3654
|
+
"ColumnProp": {
|
|
3655
|
+
"location": "import",
|
|
3656
|
+
"path": "@type",
|
|
3657
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
3658
|
+
},
|
|
3659
|
+
"DimensionTypeCol": {
|
|
3660
|
+
"location": "import",
|
|
3661
|
+
"path": "@type",
|
|
3662
|
+
"id": "src/types/index.ts::DimensionTypeCol"
|
|
3663
|
+
}
|
|
3664
|
+
},
|
|
3665
|
+
"return": "Promise<void>"
|
|
3666
|
+
},
|
|
3667
|
+
"docs": {
|
|
3668
|
+
"text": "Scrolls viewport to specified column by prop",
|
|
3669
|
+
"tags": []
|
|
3670
|
+
}
|
|
3671
|
+
},
|
|
3672
|
+
"scrollToRowByProp": {
|
|
3673
|
+
"complexType": {
|
|
3674
|
+
"signature": "(propName: string, value: any, type?: DimensionRows) => Promise<boolean>",
|
|
3675
|
+
"parameters": [{
|
|
3676
|
+
"name": "propName",
|
|
3677
|
+
"type": "string",
|
|
3678
|
+
"docs": "- Property name to search for (e.g., 'id', 'name')"
|
|
3679
|
+
}, {
|
|
3680
|
+
"name": "value",
|
|
3681
|
+
"type": "any",
|
|
3682
|
+
"docs": "- Value to match"
|
|
3683
|
+
}, {
|
|
3684
|
+
"name": "type",
|
|
3685
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3686
|
+
"docs": "- Row type, default 'rgRow'"
|
|
3687
|
+
}],
|
|
3688
|
+
"references": {
|
|
3689
|
+
"Promise": {
|
|
3690
|
+
"location": "global",
|
|
3691
|
+
"id": "global::Promise"
|
|
3692
|
+
},
|
|
3693
|
+
"DimensionRows": {
|
|
3694
|
+
"location": "import",
|
|
3695
|
+
"path": "@type",
|
|
3696
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3697
|
+
}
|
|
3698
|
+
},
|
|
3699
|
+
"return": "Promise<boolean>"
|
|
3700
|
+
},
|
|
3701
|
+
"docs": {
|
|
3702
|
+
"text": "Scrolls viewport to row by property value",
|
|
3703
|
+
"tags": [{
|
|
3704
|
+
"name": "param",
|
|
3705
|
+
"text": "propName - Property name to search for (e.g., 'id', 'name')"
|
|
3706
|
+
}, {
|
|
3707
|
+
"name": "param",
|
|
3708
|
+
"text": "value - Value to match"
|
|
3709
|
+
}, {
|
|
3710
|
+
"name": "param",
|
|
3711
|
+
"text": "type - Row type, default 'rgRow'"
|
|
3712
|
+
}, {
|
|
3713
|
+
"name": "returns",
|
|
3714
|
+
"text": "true if row found and scrolled, false otherwise"
|
|
3715
|
+
}]
|
|
3716
|
+
}
|
|
3717
|
+
},
|
|
3718
|
+
"updateColumns": {
|
|
3719
|
+
"complexType": {
|
|
3720
|
+
"signature": "(cols: ColumnRegular[]) => Promise<void>",
|
|
3721
|
+
"parameters": [{
|
|
3722
|
+
"name": "cols",
|
|
3723
|
+
"type": "ColumnRegular[]",
|
|
3724
|
+
"docs": ""
|
|
3725
|
+
}],
|
|
3726
|
+
"references": {
|
|
3727
|
+
"Promise": {
|
|
3728
|
+
"location": "global",
|
|
3729
|
+
"id": "global::Promise"
|
|
3730
|
+
},
|
|
3731
|
+
"ColumnRegular": {
|
|
3732
|
+
"location": "import",
|
|
3733
|
+
"path": "@type",
|
|
3734
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
3735
|
+
}
|
|
3736
|
+
},
|
|
3737
|
+
"return": "Promise<void>"
|
|
3738
|
+
},
|
|
3739
|
+
"docs": {
|
|
3740
|
+
"text": "Update columns",
|
|
3741
|
+
"tags": []
|
|
3742
|
+
}
|
|
3743
|
+
},
|
|
3744
|
+
"addTrimmed": {
|
|
3745
|
+
"complexType": {
|
|
3746
|
+
"signature": "(trimmed: Record<number, boolean>, trimmedType?: string, type?: DimensionRows) => Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>",
|
|
3747
|
+
"parameters": [{
|
|
3748
|
+
"name": "trimmed",
|
|
3749
|
+
"type": "{ [x: number]: boolean; }",
|
|
3750
|
+
"docs": ""
|
|
3751
|
+
}, {
|
|
3752
|
+
"name": "trimmedType",
|
|
3753
|
+
"type": "string",
|
|
3754
|
+
"docs": ""
|
|
3755
|
+
}, {
|
|
3756
|
+
"name": "type",
|
|
3757
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3758
|
+
"docs": ""
|
|
3759
|
+
}],
|
|
3760
|
+
"references": {
|
|
3761
|
+
"Promise": {
|
|
3762
|
+
"location": "global",
|
|
3763
|
+
"id": "global::Promise"
|
|
3764
|
+
},
|
|
3765
|
+
"CustomEvent": {
|
|
3766
|
+
"location": "global",
|
|
3767
|
+
"id": "global::CustomEvent"
|
|
3768
|
+
},
|
|
3769
|
+
"Record": {
|
|
3770
|
+
"location": "global",
|
|
3771
|
+
"id": "global::Record"
|
|
3772
|
+
},
|
|
3773
|
+
"DimensionRows": {
|
|
3774
|
+
"location": "import",
|
|
3775
|
+
"path": "@type",
|
|
3776
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3777
|
+
}
|
|
3778
|
+
},
|
|
3779
|
+
"return": "Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>"
|
|
3780
|
+
},
|
|
3781
|
+
"docs": {
|
|
3782
|
+
"text": "Add trimmed by type",
|
|
3783
|
+
"tags": []
|
|
3784
|
+
}
|
|
3785
|
+
},
|
|
3786
|
+
"scrollToCoordinate": {
|
|
3787
|
+
"complexType": {
|
|
3788
|
+
"signature": "(cell: Partial<Cell>) => Promise<void>",
|
|
3789
|
+
"parameters": [{
|
|
3790
|
+
"name": "cell",
|
|
3791
|
+
"type": "{ x?: number | undefined; y?: number | undefined; }",
|
|
3792
|
+
"docs": ""
|
|
3793
|
+
}],
|
|
3794
|
+
"references": {
|
|
3795
|
+
"Promise": {
|
|
3796
|
+
"location": "global",
|
|
3797
|
+
"id": "global::Promise"
|
|
3798
|
+
},
|
|
3799
|
+
"Partial": {
|
|
3800
|
+
"location": "global",
|
|
3801
|
+
"id": "global::Partial"
|
|
3802
|
+
},
|
|
3803
|
+
"Cell": {
|
|
3804
|
+
"location": "import",
|
|
3805
|
+
"path": "@type",
|
|
3806
|
+
"id": "src/types/index.ts::Cell"
|
|
3807
|
+
}
|
|
3808
|
+
},
|
|
3809
|
+
"return": "Promise<void>"
|
|
3810
|
+
},
|
|
3811
|
+
"docs": {
|
|
3812
|
+
"text": "Scrolls view port to coordinate",
|
|
3813
|
+
"tags": []
|
|
3814
|
+
}
|
|
3815
|
+
},
|
|
3816
|
+
"setCellEdit": {
|
|
3817
|
+
"complexType": {
|
|
3818
|
+
"signature": "(rgRow: number, prop: ColumnProp, rowSource?: DimensionRows) => Promise<void>",
|
|
3819
|
+
"parameters": [{
|
|
3820
|
+
"name": "rgRow",
|
|
3821
|
+
"type": "number",
|
|
3822
|
+
"docs": ""
|
|
3823
|
+
}, {
|
|
3824
|
+
"name": "prop",
|
|
3825
|
+
"type": "string | number",
|
|
3826
|
+
"docs": ""
|
|
3827
|
+
}, {
|
|
3828
|
+
"name": "rowSource",
|
|
3829
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3830
|
+
"docs": ""
|
|
3831
|
+
}],
|
|
3832
|
+
"references": {
|
|
3833
|
+
"Promise": {
|
|
3834
|
+
"location": "global",
|
|
3835
|
+
"id": "global::Promise"
|
|
3836
|
+
},
|
|
3837
|
+
"ColumnProp": {
|
|
3838
|
+
"location": "import",
|
|
3839
|
+
"path": "@type",
|
|
3840
|
+
"id": "src/types/index.ts::ColumnProp"
|
|
3841
|
+
},
|
|
3842
|
+
"DimensionRows": {
|
|
3843
|
+
"location": "import",
|
|
3844
|
+
"path": "@type",
|
|
3845
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3846
|
+
}
|
|
3847
|
+
},
|
|
3848
|
+
"return": "Promise<void>"
|
|
3849
|
+
},
|
|
3850
|
+
"docs": {
|
|
3851
|
+
"text": "Open editor for cell.",
|
|
3852
|
+
"tags": []
|
|
3853
|
+
}
|
|
3854
|
+
},
|
|
3855
|
+
"setCellsFocus": {
|
|
3856
|
+
"complexType": {
|
|
3857
|
+
"signature": "(cellStart?: Cell, cellEnd?: Cell, colType?: string, rowType?: string) => Promise<void>",
|
|
3858
|
+
"parameters": [{
|
|
3859
|
+
"name": "cellStart",
|
|
3860
|
+
"type": "Cell",
|
|
3861
|
+
"docs": ""
|
|
3862
|
+
}, {
|
|
3863
|
+
"name": "cellEnd",
|
|
3864
|
+
"type": "Cell",
|
|
3865
|
+
"docs": ""
|
|
3866
|
+
}, {
|
|
3867
|
+
"name": "colType",
|
|
3868
|
+
"type": "string",
|
|
3869
|
+
"docs": ""
|
|
3870
|
+
}, {
|
|
3871
|
+
"name": "rowType",
|
|
3872
|
+
"type": "string",
|
|
3873
|
+
"docs": ""
|
|
3874
|
+
}],
|
|
3875
|
+
"references": {
|
|
3876
|
+
"Promise": {
|
|
3877
|
+
"location": "global",
|
|
3878
|
+
"id": "global::Promise"
|
|
3879
|
+
},
|
|
3880
|
+
"Cell": {
|
|
3881
|
+
"location": "import",
|
|
3882
|
+
"path": "@type",
|
|
3883
|
+
"id": "src/types/index.ts::Cell"
|
|
3884
|
+
}
|
|
3885
|
+
},
|
|
3886
|
+
"return": "Promise<void>"
|
|
3887
|
+
},
|
|
3888
|
+
"docs": {
|
|
3889
|
+
"text": "Set focus range.",
|
|
3890
|
+
"tags": []
|
|
3891
|
+
}
|
|
3892
|
+
},
|
|
3893
|
+
"getSource": {
|
|
3894
|
+
"complexType": {
|
|
3895
|
+
"signature": "(type?: DimensionRows) => Promise<DataType[]>",
|
|
3896
|
+
"parameters": [{
|
|
3897
|
+
"name": "type",
|
|
3898
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3899
|
+
"docs": ""
|
|
3900
|
+
}],
|
|
3901
|
+
"references": {
|
|
3902
|
+
"Promise": {
|
|
3903
|
+
"location": "global",
|
|
3904
|
+
"id": "global::Promise"
|
|
3905
|
+
},
|
|
3906
|
+
"DataType": {
|
|
3907
|
+
"location": "import",
|
|
3908
|
+
"path": "@type",
|
|
3909
|
+
"id": "src/types/index.ts::DataType"
|
|
3910
|
+
},
|
|
3911
|
+
"DimensionRows": {
|
|
3912
|
+
"location": "import",
|
|
3913
|
+
"path": "@type",
|
|
3914
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3915
|
+
}
|
|
3916
|
+
},
|
|
3917
|
+
"return": "Promise<DataType[]>"
|
|
3918
|
+
},
|
|
3919
|
+
"docs": {
|
|
3920
|
+
"text": "Get data from source",
|
|
3921
|
+
"tags": []
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
"getVisibleSource": {
|
|
3925
|
+
"complexType": {
|
|
3926
|
+
"signature": "(type?: DimensionRows) => Promise<any[]>",
|
|
3927
|
+
"parameters": [{
|
|
3928
|
+
"name": "type",
|
|
3929
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3930
|
+
"docs": "- type of source"
|
|
3931
|
+
}],
|
|
3932
|
+
"references": {
|
|
3933
|
+
"Promise": {
|
|
3934
|
+
"location": "global",
|
|
3935
|
+
"id": "global::Promise"
|
|
3936
|
+
},
|
|
3937
|
+
"DimensionRows": {
|
|
3938
|
+
"location": "import",
|
|
3939
|
+
"path": "@type",
|
|
3940
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3941
|
+
}
|
|
3942
|
+
},
|
|
3943
|
+
"return": "Promise<any[]>"
|
|
3944
|
+
},
|
|
3945
|
+
"docs": {
|
|
3946
|
+
"text": "Get data from visible part of source\nTrimmed/filtered rows will be excluded",
|
|
3947
|
+
"tags": [{
|
|
3948
|
+
"name": "param",
|
|
3949
|
+
"text": "type - type of source"
|
|
3950
|
+
}]
|
|
3951
|
+
}
|
|
3952
|
+
},
|
|
3953
|
+
"getSourceStore": {
|
|
3954
|
+
"complexType": {
|
|
3955
|
+
"signature": "(type?: DimensionRows) => Promise<Observable<DSourceState<DataType, DimensionRows>>>",
|
|
3956
|
+
"parameters": [{
|
|
3957
|
+
"name": "type",
|
|
3958
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
3959
|
+
"docs": "- type of source"
|
|
3960
|
+
}],
|
|
3961
|
+
"references": {
|
|
3962
|
+
"Promise": {
|
|
3963
|
+
"location": "global",
|
|
3964
|
+
"id": "global::Promise"
|
|
3965
|
+
},
|
|
3966
|
+
"Observable": {
|
|
3967
|
+
"location": "import",
|
|
3968
|
+
"path": "../../utils",
|
|
3969
|
+
"id": "src/utils/index.ts::Observable"
|
|
3970
|
+
},
|
|
3971
|
+
"DSourceState": {
|
|
3972
|
+
"location": "import",
|
|
3973
|
+
"path": "@store",
|
|
3974
|
+
"id": "src/store/index.ts::DSourceState"
|
|
3975
|
+
},
|
|
3976
|
+
"DataType": {
|
|
3977
|
+
"location": "import",
|
|
3978
|
+
"path": "@type",
|
|
3979
|
+
"id": "src/types/index.ts::DataType"
|
|
3980
|
+
},
|
|
3981
|
+
"DimensionRows": {
|
|
3982
|
+
"location": "import",
|
|
3983
|
+
"path": "@type",
|
|
3984
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
3985
|
+
}
|
|
3986
|
+
},
|
|
3987
|
+
"return": "Promise<Observable<DSourceState<DataType, DimensionRows>>>"
|
|
3988
|
+
},
|
|
3989
|
+
"docs": {
|
|
3990
|
+
"text": "Provides access to rows internal store observer\nCan be used for plugin support",
|
|
3991
|
+
"tags": [{
|
|
3992
|
+
"name": "param",
|
|
3993
|
+
"text": "type - type of source"
|
|
3994
|
+
}]
|
|
3995
|
+
}
|
|
3996
|
+
},
|
|
3997
|
+
"getColumnStore": {
|
|
3998
|
+
"complexType": {
|
|
3999
|
+
"signature": "(type?: DimensionCols) => Promise<Observable<DSourceState<ColumnRegular, DimensionCols>>>",
|
|
4000
|
+
"parameters": [{
|
|
4001
|
+
"name": "type",
|
|
4002
|
+
"type": "DimensionColPin | \"rgCol\"",
|
|
4003
|
+
"docs": "- type of column"
|
|
4004
|
+
}],
|
|
4005
|
+
"references": {
|
|
4006
|
+
"Promise": {
|
|
4007
|
+
"location": "global",
|
|
4008
|
+
"id": "global::Promise"
|
|
4009
|
+
},
|
|
4010
|
+
"Observable": {
|
|
4011
|
+
"location": "import",
|
|
4012
|
+
"path": "../../utils",
|
|
4013
|
+
"id": "src/utils/index.ts::Observable"
|
|
4014
|
+
},
|
|
4015
|
+
"DSourceState": {
|
|
4016
|
+
"location": "import",
|
|
4017
|
+
"path": "@store",
|
|
4018
|
+
"id": "src/store/index.ts::DSourceState"
|
|
4019
|
+
},
|
|
4020
|
+
"ColumnRegular": {
|
|
4021
|
+
"location": "import",
|
|
4022
|
+
"path": "@type",
|
|
4023
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
4024
|
+
},
|
|
4025
|
+
"DimensionCols": {
|
|
4026
|
+
"location": "import",
|
|
4027
|
+
"path": "@type",
|
|
4028
|
+
"id": "src/types/index.ts::DimensionCols"
|
|
4029
|
+
}
|
|
4030
|
+
},
|
|
4031
|
+
"return": "Promise<Observable<DSourceState<ColumnRegular, DimensionCols>>>"
|
|
4032
|
+
},
|
|
4033
|
+
"docs": {
|
|
4034
|
+
"text": "Provides access to column internal store observer\nCan be used for plugin support",
|
|
4035
|
+
"tags": [{
|
|
4036
|
+
"name": "param",
|
|
4037
|
+
"text": "type - type of column"
|
|
4038
|
+
}]
|
|
4039
|
+
}
|
|
4040
|
+
},
|
|
4041
|
+
"updateColumnSorting": {
|
|
4042
|
+
"complexType": {
|
|
4043
|
+
"signature": "(column: Pick<ColumnRegular, \"prop\" | \"cellCompare\">, order: \"asc\" | \"desc\" | undefined, additive: boolean) => Promise<void>",
|
|
4044
|
+
"parameters": [{
|
|
4045
|
+
"name": "column",
|
|
4046
|
+
"type": "{ prop: ColumnProp; cellCompare?: CellCompareFunc | undefined; }",
|
|
4047
|
+
"docs": "- column prop and cellCompare"
|
|
4048
|
+
}, {
|
|
4049
|
+
"name": "order",
|
|
4050
|
+
"type": "\"asc\" | \"desc\" | undefined",
|
|
4051
|
+
"docs": "- order to apply"
|
|
4052
|
+
}, {
|
|
4053
|
+
"name": "additive",
|
|
4054
|
+
"type": "boolean",
|
|
4055
|
+
"docs": "- if false will replace current order\n\nlater passed to SortingPlugin"
|
|
4056
|
+
}],
|
|
4057
|
+
"references": {
|
|
4058
|
+
"Promise": {
|
|
4059
|
+
"location": "global",
|
|
4060
|
+
"id": "global::Promise"
|
|
4061
|
+
},
|
|
4062
|
+
"Pick": {
|
|
4063
|
+
"location": "global",
|
|
4064
|
+
"id": "global::Pick"
|
|
4065
|
+
},
|
|
4066
|
+
"ColumnRegular": {
|
|
4067
|
+
"location": "import",
|
|
4068
|
+
"path": "@type",
|
|
4069
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
4070
|
+
}
|
|
4071
|
+
},
|
|
4072
|
+
"return": "Promise<void>"
|
|
4073
|
+
},
|
|
4074
|
+
"docs": {
|
|
4075
|
+
"text": "Update column sorting",
|
|
4076
|
+
"tags": [{
|
|
4077
|
+
"name": "param",
|
|
4078
|
+
"text": "column - column prop and cellCompare"
|
|
4079
|
+
}, {
|
|
4080
|
+
"name": "param",
|
|
4081
|
+
"text": "order - order to apply"
|
|
4082
|
+
}, {
|
|
4083
|
+
"name": "param",
|
|
4084
|
+
"text": "additive - if false will replace current order\n\nlater passed to SortingPlugin"
|
|
4085
|
+
}]
|
|
4086
|
+
}
|
|
4087
|
+
},
|
|
4088
|
+
"clearSorting": {
|
|
4089
|
+
"complexType": {
|
|
4090
|
+
"signature": "() => Promise<void>",
|
|
4091
|
+
"parameters": [],
|
|
4092
|
+
"references": {
|
|
4093
|
+
"Promise": {
|
|
4094
|
+
"location": "global",
|
|
4095
|
+
"id": "global::Promise"
|
|
4096
|
+
}
|
|
4097
|
+
},
|
|
4098
|
+
"return": "Promise<void>"
|
|
4099
|
+
},
|
|
4100
|
+
"docs": {
|
|
4101
|
+
"text": "Clears column sorting",
|
|
4102
|
+
"tags": []
|
|
4103
|
+
}
|
|
4104
|
+
},
|
|
4105
|
+
"getColumns": {
|
|
4106
|
+
"complexType": {
|
|
4107
|
+
"signature": "() => Promise<ColumnRegular[]>",
|
|
4108
|
+
"parameters": [],
|
|
4109
|
+
"references": {
|
|
4110
|
+
"Promise": {
|
|
4111
|
+
"location": "global",
|
|
4112
|
+
"id": "global::Promise"
|
|
4113
|
+
},
|
|
4114
|
+
"ColumnRegular": {
|
|
4115
|
+
"location": "import",
|
|
4116
|
+
"path": "@type",
|
|
4117
|
+
"id": "src/types/index.ts::ColumnRegular"
|
|
4118
|
+
}
|
|
4119
|
+
},
|
|
4120
|
+
"return": "Promise<ColumnRegular[]>"
|
|
4121
|
+
},
|
|
4122
|
+
"docs": {
|
|
4123
|
+
"text": "Receive all columns in data source",
|
|
4124
|
+
"tags": []
|
|
4125
|
+
}
|
|
4126
|
+
},
|
|
4127
|
+
"clearFocus": {
|
|
4128
|
+
"complexType": {
|
|
4129
|
+
"signature": "() => Promise<void>",
|
|
4130
|
+
"parameters": [],
|
|
4131
|
+
"references": {
|
|
4132
|
+
"Promise": {
|
|
4133
|
+
"location": "global",
|
|
4134
|
+
"id": "global::Promise"
|
|
4135
|
+
}
|
|
4136
|
+
},
|
|
4137
|
+
"return": "Promise<void>"
|
|
4138
|
+
},
|
|
4139
|
+
"docs": {
|
|
4140
|
+
"text": "Clear current grid focus. Grid has no longer focus on it.",
|
|
4141
|
+
"tags": []
|
|
4142
|
+
}
|
|
4143
|
+
},
|
|
4144
|
+
"getPlugins": {
|
|
4145
|
+
"complexType": {
|
|
4146
|
+
"signature": "() => Promise<PluginBaseComponent[]>",
|
|
4147
|
+
"parameters": [],
|
|
4148
|
+
"references": {
|
|
4149
|
+
"Promise": {
|
|
4150
|
+
"location": "global",
|
|
4151
|
+
"id": "global::Promise"
|
|
4152
|
+
},
|
|
4153
|
+
"PluginBaseComponent": {
|
|
4154
|
+
"location": "import",
|
|
4155
|
+
"path": "@type",
|
|
4156
|
+
"id": "src/types/index.ts::PluginBaseComponent"
|
|
4157
|
+
}
|
|
4158
|
+
},
|
|
4159
|
+
"return": "Promise<PluginBaseComponent[]>"
|
|
4160
|
+
},
|
|
4161
|
+
"docs": {
|
|
4162
|
+
"text": "Get all active plugins instances",
|
|
4163
|
+
"tags": []
|
|
4164
|
+
}
|
|
4165
|
+
},
|
|
4166
|
+
"getFocused": {
|
|
4167
|
+
"complexType": {
|
|
4168
|
+
"signature": "() => Promise<FocusedData | null>",
|
|
4169
|
+
"parameters": [],
|
|
4170
|
+
"references": {
|
|
4171
|
+
"Promise": {
|
|
4172
|
+
"location": "global",
|
|
4173
|
+
"id": "global::Promise"
|
|
4174
|
+
},
|
|
4175
|
+
"FocusedData": {
|
|
4176
|
+
"location": "import",
|
|
4177
|
+
"path": "./viewport.service",
|
|
4178
|
+
"id": "src/components/revoGrid/viewport.service.ts::FocusedData"
|
|
4179
|
+
}
|
|
4180
|
+
},
|
|
4181
|
+
"return": "Promise<FocusedData | null>"
|
|
4182
|
+
},
|
|
4183
|
+
"docs": {
|
|
4184
|
+
"text": "Get the currently focused cell.",
|
|
4185
|
+
"tags": []
|
|
4186
|
+
}
|
|
4187
|
+
},
|
|
4188
|
+
"getContentSize": {
|
|
4189
|
+
"complexType": {
|
|
4190
|
+
"signature": "() => Promise<Cell>",
|
|
4191
|
+
"parameters": [],
|
|
4192
|
+
"references": {
|
|
4193
|
+
"Promise": {
|
|
4194
|
+
"location": "global",
|
|
4195
|
+
"id": "global::Promise"
|
|
4196
|
+
},
|
|
4197
|
+
"Cell": {
|
|
4198
|
+
"location": "import",
|
|
4199
|
+
"path": "@type",
|
|
4200
|
+
"id": "src/types/index.ts::Cell"
|
|
4201
|
+
}
|
|
4202
|
+
},
|
|
4203
|
+
"return": "Promise<Cell>"
|
|
4204
|
+
},
|
|
4205
|
+
"docs": {
|
|
4206
|
+
"text": "Get size of content\nIncluding all pinned data",
|
|
4207
|
+
"tags": []
|
|
4208
|
+
}
|
|
4209
|
+
},
|
|
4210
|
+
"getSelectedRange": {
|
|
4211
|
+
"complexType": {
|
|
4212
|
+
"signature": "() => Promise<(RangeArea & AllDimensionType) | null>",
|
|
4213
|
+
"parameters": [],
|
|
4214
|
+
"references": {
|
|
4215
|
+
"Promise": {
|
|
4216
|
+
"location": "global",
|
|
4217
|
+
"id": "global::Promise"
|
|
4218
|
+
},
|
|
4219
|
+
"RangeArea": {
|
|
4220
|
+
"location": "import",
|
|
4221
|
+
"path": "@type",
|
|
4222
|
+
"id": "src/types/index.ts::RangeArea"
|
|
4223
|
+
},
|
|
4224
|
+
"AllDimensionType": {
|
|
4225
|
+
"location": "import",
|
|
4226
|
+
"path": "@type",
|
|
4227
|
+
"id": "src/types/index.ts::AllDimensionType"
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4230
|
+
"return": "Promise<(RangeArea & AllDimensionType) | null>"
|
|
4231
|
+
},
|
|
4232
|
+
"docs": {
|
|
4233
|
+
"text": "Get the currently selected Range.",
|
|
4234
|
+
"tags": []
|
|
4235
|
+
}
|
|
4236
|
+
},
|
|
4237
|
+
"refreshExtraElements": {
|
|
4238
|
+
"complexType": {
|
|
4239
|
+
"signature": "() => Promise<void>",
|
|
4240
|
+
"parameters": [],
|
|
4241
|
+
"references": {
|
|
4242
|
+
"Promise": {
|
|
4243
|
+
"location": "global",
|
|
4244
|
+
"id": "global::Promise"
|
|
4245
|
+
}
|
|
4246
|
+
},
|
|
4247
|
+
"return": "Promise<void>"
|
|
4248
|
+
},
|
|
4249
|
+
"docs": {
|
|
4250
|
+
"text": "Refresh extra elements. Triggers re-rendering of extra elements and functions.\nPart of extraElements and registerVNode methods.\nUseful for plugins.",
|
|
4251
|
+
"tags": []
|
|
4252
|
+
}
|
|
4253
|
+
},
|
|
4254
|
+
"getProviders": {
|
|
4255
|
+
"complexType": {
|
|
4256
|
+
"signature": "() => Promise<PluginProviders | undefined>",
|
|
4257
|
+
"parameters": [],
|
|
4258
|
+
"references": {
|
|
4259
|
+
"Promise": {
|
|
4260
|
+
"location": "global",
|
|
4261
|
+
"id": "global::Promise"
|
|
4262
|
+
},
|
|
4263
|
+
"PluginProviders": {
|
|
4264
|
+
"location": "import",
|
|
4265
|
+
"path": "@type",
|
|
4266
|
+
"id": "src/types/index.ts::PluginProviders"
|
|
4267
|
+
}
|
|
4268
|
+
},
|
|
4269
|
+
"return": "Promise<PluginProviders | undefined>"
|
|
4270
|
+
},
|
|
4271
|
+
"docs": {
|
|
4272
|
+
"text": "Get all providers for grid\nUseful for external grid integration",
|
|
4273
|
+
"tags": []
|
|
4274
|
+
}
|
|
4275
|
+
},
|
|
4276
|
+
"lockScroll": {
|
|
4277
|
+
"complexType": {
|
|
4278
|
+
"signature": "() => Promise<void>",
|
|
4279
|
+
"parameters": [],
|
|
4280
|
+
"references": {
|
|
4281
|
+
"Promise": {
|
|
4282
|
+
"location": "global",
|
|
4283
|
+
"id": "global::Promise"
|
|
4284
|
+
}
|
|
4285
|
+
},
|
|
4286
|
+
"return": "Promise<void>"
|
|
4287
|
+
},
|
|
4288
|
+
"docs": {
|
|
4289
|
+
"text": "Lock scrolling. Prevents the grid from responding to scroll events.",
|
|
4290
|
+
"tags": []
|
|
4291
|
+
}
|
|
4292
|
+
},
|
|
4293
|
+
"unlockScroll": {
|
|
4294
|
+
"complexType": {
|
|
4295
|
+
"signature": "() => Promise<void>",
|
|
4296
|
+
"parameters": [],
|
|
4297
|
+
"references": {
|
|
4298
|
+
"Promise": {
|
|
4299
|
+
"location": "global",
|
|
4300
|
+
"id": "global::Promise"
|
|
4301
|
+
}
|
|
4302
|
+
},
|
|
4303
|
+
"return": "Promise<void>"
|
|
4304
|
+
},
|
|
4305
|
+
"docs": {
|
|
4306
|
+
"text": "Unlock scrolling. Allows the grid to respond to scroll events.",
|
|
4307
|
+
"tags": []
|
|
4308
|
+
}
|
|
4309
|
+
},
|
|
4310
|
+
"isScrollLocked": {
|
|
4311
|
+
"complexType": {
|
|
4312
|
+
"signature": "() => Promise<boolean>",
|
|
4313
|
+
"parameters": [],
|
|
4314
|
+
"references": {
|
|
4315
|
+
"Promise": {
|
|
4316
|
+
"location": "global",
|
|
4317
|
+
"id": "global::Promise"
|
|
4318
|
+
}
|
|
4319
|
+
},
|
|
4320
|
+
"return": "Promise<boolean>"
|
|
4321
|
+
},
|
|
4322
|
+
"docs": {
|
|
4323
|
+
"text": "Get current scroll lock state.",
|
|
4324
|
+
"tags": []
|
|
4325
|
+
}
|
|
4326
|
+
},
|
|
4327
|
+
"hideRowsById": {
|
|
4328
|
+
"complexType": {
|
|
4329
|
+
"signature": "(ids: any[], idField?: string, trimmedType?: string, type?: DimensionRows) => Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>",
|
|
4330
|
+
"parameters": [{
|
|
4331
|
+
"name": "ids",
|
|
4332
|
+
"type": "any[]",
|
|
4333
|
+
"docs": "- Array of ID values to hide"
|
|
4334
|
+
}, {
|
|
4335
|
+
"name": "idField",
|
|
4336
|
+
"type": "string",
|
|
4337
|
+
"docs": "- ID field name, default 'id'"
|
|
4338
|
+
}, {
|
|
4339
|
+
"name": "trimmedType",
|
|
4340
|
+
"type": "string",
|
|
4341
|
+
"docs": "- Trimmed type identifier, default 'byId'"
|
|
4342
|
+
}, {
|
|
4343
|
+
"name": "type",
|
|
4344
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
4345
|
+
"docs": "- Row type, default 'rgRow'"
|
|
4346
|
+
}],
|
|
4347
|
+
"references": {
|
|
4348
|
+
"Promise": {
|
|
4349
|
+
"location": "global",
|
|
4350
|
+
"id": "global::Promise"
|
|
4351
|
+
},
|
|
4352
|
+
"CustomEvent": {
|
|
4353
|
+
"location": "global",
|
|
4354
|
+
"id": "global::CustomEvent"
|
|
4355
|
+
},
|
|
4356
|
+
"Record": {
|
|
4357
|
+
"location": "global",
|
|
4358
|
+
"id": "global::Record"
|
|
4359
|
+
},
|
|
4360
|
+
"DimensionRows": {
|
|
4361
|
+
"location": "import",
|
|
4362
|
+
"path": "@type",
|
|
4363
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
4364
|
+
},
|
|
4365
|
+
"DataType": {
|
|
4366
|
+
"location": "import",
|
|
4367
|
+
"path": "@type",
|
|
4368
|
+
"id": "src/types/index.ts::DataType"
|
|
4369
|
+
}
|
|
4370
|
+
},
|
|
4371
|
+
"return": "Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>"
|
|
4372
|
+
},
|
|
4373
|
+
"docs": {
|
|
4374
|
+
"text": "Hide rows by ID field value",
|
|
4375
|
+
"tags": [{
|
|
4376
|
+
"name": "param",
|
|
4377
|
+
"text": "ids - Array of ID values to hide"
|
|
4378
|
+
}, {
|
|
4379
|
+
"name": "param",
|
|
4380
|
+
"text": "idField - ID field name, default 'id'"
|
|
4381
|
+
}, {
|
|
4382
|
+
"name": "param",
|
|
4383
|
+
"text": "trimmedType - Trimmed type identifier, default 'byId'"
|
|
4384
|
+
}, {
|
|
4385
|
+
"name": "param",
|
|
4386
|
+
"text": "type - Row type, default 'rgRow'"
|
|
4387
|
+
}, {
|
|
4388
|
+
"name": "returns",
|
|
4389
|
+
"text": "Event with trimmed row indexes"
|
|
4390
|
+
}]
|
|
4391
|
+
}
|
|
4392
|
+
},
|
|
4393
|
+
"showRowsById": {
|
|
4394
|
+
"complexType": {
|
|
4395
|
+
"signature": "(ids?: any[], idField?: string, trimmedType?: string, type?: DimensionRows) => Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>",
|
|
4396
|
+
"parameters": [{
|
|
4397
|
+
"name": "ids",
|
|
4398
|
+
"type": "any[]",
|
|
4399
|
+
"docs": "- Array of ID values to show, if empty will show all rows"
|
|
4400
|
+
}, {
|
|
4401
|
+
"name": "idField",
|
|
4402
|
+
"type": "string",
|
|
4403
|
+
"docs": "- ID field name, default 'id'"
|
|
4404
|
+
}, {
|
|
4405
|
+
"name": "trimmedType",
|
|
4406
|
+
"type": "string",
|
|
4407
|
+
"docs": "- Trimmed type identifier, default 'byId'"
|
|
4408
|
+
}, {
|
|
4409
|
+
"name": "type",
|
|
4410
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
4411
|
+
"docs": "- Row type, default 'rgRow'"
|
|
4412
|
+
}],
|
|
4413
|
+
"references": {
|
|
4414
|
+
"Promise": {
|
|
4415
|
+
"location": "global",
|
|
4416
|
+
"id": "global::Promise"
|
|
4417
|
+
},
|
|
4418
|
+
"CustomEvent": {
|
|
4419
|
+
"location": "global",
|
|
4420
|
+
"id": "global::CustomEvent"
|
|
4421
|
+
},
|
|
4422
|
+
"Record": {
|
|
4423
|
+
"location": "global",
|
|
4424
|
+
"id": "global::Record"
|
|
4425
|
+
},
|
|
4426
|
+
"DimensionRows": {
|
|
4427
|
+
"location": "import",
|
|
4428
|
+
"path": "@type",
|
|
4429
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
4430
|
+
},
|
|
4431
|
+
"DataType": {
|
|
4432
|
+
"location": "import",
|
|
4433
|
+
"path": "@type",
|
|
4434
|
+
"id": "src/types/index.ts::DataType"
|
|
4435
|
+
}
|
|
4436
|
+
},
|
|
4437
|
+
"return": "Promise<CustomEvent<{ trimmed: Record<number, boolean>; trimmedType: string; type: string; }>>"
|
|
4438
|
+
},
|
|
4439
|
+
"docs": {
|
|
4440
|
+
"text": "Show rows by ID field value (remove from trimmed)",
|
|
4441
|
+
"tags": [{
|
|
4442
|
+
"name": "param",
|
|
4443
|
+
"text": "ids - Array of ID values to show, if empty will show all rows"
|
|
4444
|
+
}, {
|
|
4445
|
+
"name": "param",
|
|
4446
|
+
"text": "idField - ID field name, default 'id'"
|
|
4447
|
+
}, {
|
|
4448
|
+
"name": "param",
|
|
4449
|
+
"text": "trimmedType - Trimmed type identifier, default 'byId'"
|
|
4450
|
+
}, {
|
|
4451
|
+
"name": "param",
|
|
4452
|
+
"text": "type - Row type, default 'rgRow'"
|
|
4453
|
+
}]
|
|
4454
|
+
}
|
|
4455
|
+
},
|
|
4456
|
+
"deleteRowsById": {
|
|
4457
|
+
"complexType": {
|
|
4458
|
+
"signature": "(ids: any[], idField?: string, type?: DimensionRows) => Promise<DataType[]>",
|
|
4459
|
+
"parameters": [{
|
|
4460
|
+
"name": "ids",
|
|
4461
|
+
"type": "any[]",
|
|
4462
|
+
"docs": "- Array of ID values to delete"
|
|
4463
|
+
}, {
|
|
4464
|
+
"name": "idField",
|
|
4465
|
+
"type": "string",
|
|
4466
|
+
"docs": "- ID field name, default 'id'"
|
|
4467
|
+
}, {
|
|
4468
|
+
"name": "type",
|
|
4469
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
4470
|
+
"docs": "- Row type, default 'rgRow'"
|
|
4471
|
+
}],
|
|
4472
|
+
"references": {
|
|
4473
|
+
"Promise": {
|
|
4474
|
+
"location": "global",
|
|
4475
|
+
"id": "global::Promise"
|
|
4476
|
+
},
|
|
4477
|
+
"DataType": {
|
|
4478
|
+
"location": "import",
|
|
4479
|
+
"path": "@type",
|
|
4480
|
+
"id": "src/types/index.ts::DataType"
|
|
4481
|
+
},
|
|
4482
|
+
"DimensionRows": {
|
|
4483
|
+
"location": "import",
|
|
4484
|
+
"path": "@type",
|
|
4485
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
4486
|
+
}
|
|
4487
|
+
},
|
|
4488
|
+
"return": "Promise<DataType[]>"
|
|
4489
|
+
},
|
|
4490
|
+
"docs": {
|
|
4491
|
+
"text": "Delete rows by ID field value (physically remove from source)",
|
|
4492
|
+
"tags": [{
|
|
4493
|
+
"name": "param",
|
|
4494
|
+
"text": "ids - Array of ID values to delete"
|
|
4495
|
+
}, {
|
|
4496
|
+
"name": "param",
|
|
4497
|
+
"text": "idField - ID field name, default 'id'"
|
|
4498
|
+
}, {
|
|
4499
|
+
"name": "param",
|
|
4500
|
+
"text": "type - Row type, default 'rgRow'"
|
|
4501
|
+
}, {
|
|
4502
|
+
"name": "returns",
|
|
4503
|
+
"text": "New source array after deletion"
|
|
4504
|
+
}]
|
|
4505
|
+
}
|
|
4506
|
+
},
|
|
4507
|
+
"deleteRowsByIndexes": {
|
|
4508
|
+
"complexType": {
|
|
4509
|
+
"signature": "(indexes: number[], type?: DimensionRows) => Promise<DataType[]>",
|
|
4510
|
+
"parameters": [{
|
|
4511
|
+
"name": "indexes",
|
|
4512
|
+
"type": "number[]",
|
|
4513
|
+
"docs": "- Array of physical row indexes to delete"
|
|
4514
|
+
}, {
|
|
4515
|
+
"name": "type",
|
|
4516
|
+
"type": "DimensionRowPin | \"rgRow\"",
|
|
4517
|
+
"docs": "- Row type, default 'rgRow'"
|
|
4518
|
+
}],
|
|
4519
|
+
"references": {
|
|
4520
|
+
"Promise": {
|
|
4521
|
+
"location": "global",
|
|
4522
|
+
"id": "global::Promise"
|
|
4523
|
+
},
|
|
4524
|
+
"DataType": {
|
|
4525
|
+
"location": "import",
|
|
4526
|
+
"path": "@type",
|
|
4527
|
+
"id": "src/types/index.ts::DataType"
|
|
4528
|
+
},
|
|
4529
|
+
"DimensionRows": {
|
|
4530
|
+
"location": "import",
|
|
4531
|
+
"path": "@type",
|
|
4532
|
+
"id": "src/types/index.ts::DimensionRows"
|
|
4533
|
+
}
|
|
4534
|
+
},
|
|
4535
|
+
"return": "Promise<DataType[]>"
|
|
4536
|
+
},
|
|
4537
|
+
"docs": {
|
|
4538
|
+
"text": "Delete rows by physical indexes",
|
|
4539
|
+
"tags": [{
|
|
4540
|
+
"name": "param",
|
|
4541
|
+
"text": "indexes - Array of physical row indexes to delete"
|
|
4542
|
+
}, {
|
|
4543
|
+
"name": "param",
|
|
4544
|
+
"text": "type - Row type, default 'rgRow'"
|
|
4545
|
+
}, {
|
|
4546
|
+
"name": "returns",
|
|
4547
|
+
"text": "New source array after deletion"
|
|
4548
|
+
}]
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
};
|
|
4552
|
+
}
|
|
4553
|
+
static get elementRef() { return "element"; }
|
|
4554
|
+
static get watchers() {
|
|
4555
|
+
return [{
|
|
4556
|
+
"propName": "columnTypes",
|
|
4557
|
+
"methodName": "columnTypesChanged"
|
|
4558
|
+
}, {
|
|
4559
|
+
"propName": "columns",
|
|
4560
|
+
"methodName": "columnChanged"
|
|
4561
|
+
}, {
|
|
4562
|
+
"propName": "disableVirtualX",
|
|
4563
|
+
"methodName": "disableVirtualXChanged"
|
|
4564
|
+
}, {
|
|
4565
|
+
"propName": "rowSize",
|
|
4566
|
+
"methodName": "rowSizeChanged"
|
|
4567
|
+
}, {
|
|
4568
|
+
"propName": "theme",
|
|
4569
|
+
"methodName": "themeChanged"
|
|
4570
|
+
}, {
|
|
4571
|
+
"propName": "source",
|
|
4572
|
+
"methodName": "dataSourceChanged"
|
|
4573
|
+
}, {
|
|
4574
|
+
"propName": "pinnedBottomSource",
|
|
4575
|
+
"methodName": "dataSourceChanged"
|
|
4576
|
+
}, {
|
|
4577
|
+
"propName": "pinnedTopSource",
|
|
4578
|
+
"methodName": "dataSourceChanged"
|
|
4579
|
+
}, {
|
|
4580
|
+
"propName": "disableVirtualY",
|
|
4581
|
+
"methodName": "disableVirtualYChanged"
|
|
4582
|
+
}, {
|
|
4583
|
+
"propName": "rowDefinitions",
|
|
4584
|
+
"methodName": "rowDefChanged"
|
|
4585
|
+
}, {
|
|
4586
|
+
"propName": "trimmedRows",
|
|
4587
|
+
"methodName": "trimmedRowsChanged"
|
|
4588
|
+
}, {
|
|
4589
|
+
"propName": "grouping",
|
|
4590
|
+
"methodName": "groupingChanged"
|
|
4591
|
+
}, {
|
|
4592
|
+
"propName": "stretch",
|
|
4593
|
+
"methodName": "applyStretch"
|
|
4594
|
+
}, {
|
|
4595
|
+
"propName": "filter",
|
|
4596
|
+
"methodName": "applyFilter"
|
|
4597
|
+
}, {
|
|
4598
|
+
"propName": "sorting",
|
|
4599
|
+
"methodName": "applySorting"
|
|
4600
|
+
}, {
|
|
4601
|
+
"propName": "rowHeaders",
|
|
4602
|
+
"methodName": "rowHeadersChange"
|
|
4603
|
+
}, {
|
|
4604
|
+
"propName": "registerVNode",
|
|
4605
|
+
"methodName": "registerOutsideVNodes"
|
|
4606
|
+
}, {
|
|
4607
|
+
"propName": "additionalData",
|
|
4608
|
+
"methodName": "additionalDataChanged"
|
|
4609
|
+
}, {
|
|
4610
|
+
"propName": "rtl",
|
|
4611
|
+
"methodName": "rtlChanged"
|
|
4612
|
+
}, {
|
|
4613
|
+
"propName": "plugins",
|
|
4614
|
+
"methodName": "pluginsChanged"
|
|
4615
|
+
}];
|
|
4616
|
+
}
|
|
4617
|
+
static get listeners() {
|
|
4618
|
+
return [{
|
|
4619
|
+
"name": "touchstart",
|
|
4620
|
+
"method": "mousedownHandle",
|
|
4621
|
+
"target": "document",
|
|
4622
|
+
"capture": false,
|
|
4623
|
+
"passive": true
|
|
4624
|
+
}, {
|
|
4625
|
+
"name": "mousedown",
|
|
4626
|
+
"method": "mousedownHandle",
|
|
4627
|
+
"target": "document",
|
|
4628
|
+
"capture": false,
|
|
4629
|
+
"passive": true
|
|
4630
|
+
}, {
|
|
4631
|
+
"name": "touchend",
|
|
4632
|
+
"method": "mouseupHandle",
|
|
4633
|
+
"target": "document",
|
|
4634
|
+
"capture": false,
|
|
4635
|
+
"passive": true
|
|
4636
|
+
}, {
|
|
4637
|
+
"name": "mouseup",
|
|
4638
|
+
"method": "mouseupHandle",
|
|
4639
|
+
"target": "document",
|
|
4640
|
+
"capture": false,
|
|
4641
|
+
"passive": true
|
|
4642
|
+
}, {
|
|
4643
|
+
"name": "rowdragstartinit",
|
|
4644
|
+
"method": "onRowDragStarted",
|
|
4645
|
+
"target": undefined,
|
|
4646
|
+
"capture": false,
|
|
4647
|
+
"passive": false
|
|
4648
|
+
}, {
|
|
4649
|
+
"name": "rowdragendinit",
|
|
4650
|
+
"method": "onRowDragEnd",
|
|
4651
|
+
"target": undefined,
|
|
4652
|
+
"capture": false,
|
|
4653
|
+
"passive": false
|
|
4654
|
+
}, {
|
|
4655
|
+
"name": "roworderchange",
|
|
4656
|
+
"method": "onRowOrderChange",
|
|
4657
|
+
"target": undefined,
|
|
4658
|
+
"capture": false,
|
|
4659
|
+
"passive": false
|
|
4660
|
+
}, {
|
|
4661
|
+
"name": "rowdragmoveinit",
|
|
4662
|
+
"method": "onRowDrag",
|
|
4663
|
+
"target": undefined,
|
|
4664
|
+
"capture": false,
|
|
4665
|
+
"passive": false
|
|
4666
|
+
}, {
|
|
4667
|
+
"name": "rowdragmousemove",
|
|
4668
|
+
"method": "onRowMouseMove",
|
|
4669
|
+
"target": undefined,
|
|
4670
|
+
"capture": false,
|
|
4671
|
+
"passive": false
|
|
4672
|
+
}, {
|
|
4673
|
+
"name": "celleditapply",
|
|
4674
|
+
"method": "onCellEdit",
|
|
4675
|
+
"target": undefined,
|
|
4676
|
+
"capture": false,
|
|
4677
|
+
"passive": false
|
|
4678
|
+
}, {
|
|
4679
|
+
"name": "rangeeditapply",
|
|
4680
|
+
"method": "onRangeEdit",
|
|
4681
|
+
"target": undefined,
|
|
4682
|
+
"capture": false,
|
|
4683
|
+
"passive": false
|
|
4684
|
+
}, {
|
|
4685
|
+
"name": "selectionchangeinit",
|
|
4686
|
+
"method": "onRangeChanged",
|
|
4687
|
+
"target": undefined,
|
|
4688
|
+
"capture": false,
|
|
4689
|
+
"passive": false
|
|
4690
|
+
}, {
|
|
4691
|
+
"name": "rowdropinit",
|
|
4692
|
+
"method": "onRowDropped",
|
|
4693
|
+
"target": undefined,
|
|
4694
|
+
"capture": false,
|
|
4695
|
+
"passive": false
|
|
4696
|
+
}, {
|
|
4697
|
+
"name": "beforeheaderclick",
|
|
4698
|
+
"method": "onHeaderClick",
|
|
4699
|
+
"target": undefined,
|
|
4700
|
+
"capture": false,
|
|
4701
|
+
"passive": false
|
|
4702
|
+
}, {
|
|
4703
|
+
"name": "beforecellfocusinit",
|
|
4704
|
+
"method": "onCellFocus",
|
|
4705
|
+
"target": undefined,
|
|
4706
|
+
"capture": false,
|
|
4707
|
+
"passive": false
|
|
4708
|
+
}, {
|
|
4709
|
+
"name": "cellclickinit",
|
|
4710
|
+
"method": "onCellClick",
|
|
4711
|
+
"target": undefined,
|
|
4712
|
+
"capture": false,
|
|
4713
|
+
"passive": false
|
|
4714
|
+
}];
|
|
4715
|
+
}
|
|
4716
|
+
}
|
|
4717
|
+
//# sourceMappingURL=revo-grid.js.map
|