lsp-grid 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/dist/cjs/app-globals-Bfsg1bDt.js +16 -0
- package/dist/cjs/app-globals-Bfsg1bDt.js.map +1 -0
- package/dist/cjs/cell-renderer-DtuYp7tj.js +106 -0
- package/dist/cjs/cell-renderer-DtuYp7tj.js.map +1 -0
- package/dist/cjs/column.drag.plugin-BIptTmfz.js +2554 -0
- package/dist/cjs/column.drag.plugin-BIptTmfz.js.map +1 -0
- package/dist/cjs/column.service-BnVSAfcu.js +1391 -0
- package/dist/cjs/column.service-BnVSAfcu.js.map +1 -0
- package/dist/cjs/data.store-CrF4Nf9q.js +3615 -0
- package/dist/cjs/data.store-CrF4Nf9q.js.map +1 -0
- package/dist/cjs/debounce-DgeyTQM0.js +498 -0
- package/dist/cjs/debounce-DgeyTQM0.js.map +1 -0
- package/dist/cjs/edit.utils-Bw-E3Fj6.js +118 -0
- package/dist/cjs/edit.utils-Bw-E3Fj6.js.map +1 -0
- package/dist/cjs/events-D0Syn6ut.js +46 -0
- package/dist/cjs/events-D0Syn6ut.js.map +1 -0
- package/dist/cjs/filter.button-CaAAXq-6.js +49 -0
- package/dist/cjs/filter.button-CaAAXq-6.js.map +1 -0
- package/dist/cjs/header-cell-renderer-DhRJqZ-w.js +356 -0
- package/dist/cjs/header-cell-renderer-DhRJqZ-w.js.map +1 -0
- package/dist/cjs/index-VM40U6Gh.js +2549 -0
- package/dist/cjs/index-VM40U6Gh.js.map +1 -0
- package/dist/cjs/index.cjs.js +346 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +19 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.entry.js +2187 -0
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.js +31 -0
- package/dist/cjs/revo-grid.cjs.js.map +1 -0
- package/dist/cjs/revo-grid.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution_7.cjs.entry.js +1463 -0
- package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-clipboard.revogr-edit.revogr-order-editor.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +456 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.cjs.js.map +1 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js +948 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +382 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.entry.cjs.js.map +1 -0
- package/dist/cjs/row-header-utils-DL640c7x.js +420 -0
- package/dist/cjs/row-header-utils-DL640c7x.js.map +1 -0
- package/dist/cjs/text-editor-DWChyeVV.js +81 -0
- package/dist/cjs/text-editor-DWChyeVV.js.map +1 -0
- package/dist/cjs/throttle-Bb1Bbfd1.js +278 -0
- package/dist/cjs/throttle-Bb1Bbfd1.js.map +1 -0
- package/dist/cjs/viewport.helpers-CI6uB8tu.js +59 -0
- package/dist/cjs/viewport.helpers-CI6uB8tu.js.map +1 -0
- package/dist/collection/collection-manifest.json +28 -0
- package/dist/collection/components/attribution/revogr-attribution.js +20 -0
- package/dist/collection/components/attribution/revogr-attribution.js.map +1 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +396 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
- package/dist/collection/components/data/cell-renderer.js +44 -0
- package/dist/collection/components/data/cell-renderer.js.map +1 -0
- package/dist/collection/components/data/column.service.js +293 -0
- package/dist/collection/components/data/column.service.js.map +1 -0
- package/dist/collection/components/data/revogr-data-style.css +75 -0
- package/dist/collection/components/data/revogr-data.js +697 -0
- package/dist/collection/components/data/revogr-data.js.map +1 -0
- package/dist/collection/components/data/row-highlight.plugin.js +51 -0
- package/dist/collection/components/data/row-highlight.plugin.js.map +1 -0
- package/dist/collection/components/data/row-renderer.js +16 -0
- package/dist/collection/components/data/row-renderer.js.map +1 -0
- package/dist/collection/components/editors/edit.utils.js +13 -0
- package/dist/collection/components/editors/edit.utils.js.map +1 -0
- package/dist/collection/components/editors/revogr-edit-style.css +16 -0
- package/dist/collection/components/editors/revogr-edit.js +346 -0
- package/dist/collection/components/editors/revogr-edit.js.map +1 -0
- package/dist/collection/components/editors/text-editor.js +74 -0
- package/dist/collection/components/editors/text-editor.js.map +1 -0
- package/dist/collection/components/extra/revogr-extra.js +125 -0
- package/dist/collection/components/extra/revogr-extra.js.map +1 -0
- package/dist/collection/components/header/header-cell-renderer.js +34 -0
- package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
- package/dist/collection/components/header/header-group-renderer.js +25 -0
- package/dist/collection/components/header/header-group-renderer.js.map +1 -0
- package/dist/collection/components/header/header-renderer.js +61 -0
- package/dist/collection/components/header/header-renderer.js.map +1 -0
- package/dist/collection/components/header/resizable.directive.js +237 -0
- package/dist/collection/components/header/resizable.directive.js.map +1 -0
- package/dist/collection/components/header/resizable.element.js +38 -0
- package/dist/collection/components/header/resizable.element.js.map +1 -0
- package/dist/collection/components/header/revogr-header-style.css +144 -0
- package/dist/collection/components/header/revogr-header.js +573 -0
- package/dist/collection/components/header/revogr-header.js.map +1 -0
- package/dist/collection/components/order/order-renderer.js +50 -0
- package/dist/collection/components/order/order-renderer.js.map +1 -0
- package/dist/collection/components/order/order-row.service.js +72 -0
- package/dist/collection/components/order/order-row.service.js.map +1 -0
- package/dist/collection/components/order/revogr-order-editor.js +461 -0
- package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
- package/dist/collection/components/overlay/autofill.service.js +224 -0
- package/dist/collection/components/overlay/autofill.service.js.map +1 -0
- package/dist/collection/components/overlay/keyboard.service.js +158 -0
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +1515 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +95 -0
- package/dist/collection/components/overlay/selection.utils.js +136 -0
- package/dist/collection/components/overlay/selection.utils.js.map +1 -0
- package/dist/collection/components/revoGrid/grid.helpers.js +33 -0
- package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/plugin.service.js +81 -0
- package/dist/collection/components/revoGrid/plugin.service.js.map +1 -0
- package/dist/collection/components/revoGrid/revo-grid-style.css +567 -0
- package/dist/collection/components/revoGrid/revo-grid.js +3671 -0
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js +49 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js +55 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +90 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.service.js +237 -0
- package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +291 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +5 -0
- package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +69 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +601 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js +44 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +34 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +295 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +7 -0
- package/dist/collection/components/selectionFocus/revogr-focus.js +400 -0
- package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +28 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js +171 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
- package/dist/collection/components/vnode/vnode-converter.js +84 -0
- package/dist/collection/components/vnode/vnode-converter.js.map +1 -0
- package/dist/collection/components/vnode/vnode.utils.js +18 -0
- package/dist/collection/components/vnode/vnode.utils.js.map +1 -0
- package/dist/collection/global/global.js +19 -0
- package/dist/collection/global/global.js.map +1 -0
- package/dist/collection/index.js +13 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/plugins/add-rows-on-paste.plugin.js +40 -0
- package/dist/collection/plugins/add-rows-on-paste.plugin.js.map +1 -0
- package/dist/collection/plugins/base.plugin.js +90 -0
- package/dist/collection/plugins/base.plugin.js.map +1 -0
- package/dist/collection/plugins/column.auto-size.plugin.js +225 -0
- package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -0
- package/dist/collection/plugins/column.stretch.plugin.js +96 -0
- package/dist/collection/plugins/column.stretch.plugin.js.map +1 -0
- package/dist/collection/plugins/dispatcher.js +40 -0
- package/dist/collection/plugins/dispatcher.js.map +1 -0
- package/dist/collection/plugins/export/csv.js +72 -0
- package/dist/collection/plugins/export/csv.js.map +1 -0
- package/dist/collection/plugins/export/export.plugin.js +157 -0
- package/dist/collection/plugins/export/export.plugin.js.map +1 -0
- package/dist/collection/plugins/export/types.js +2 -0
- package/dist/collection/plugins/export/types.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/equal.js +21 -0
- package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +14 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +11 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +16 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +11 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/set.js +7 -0
- package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +21 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +25 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
- package/dist/collection/plugins/filter/filter.button.js +28 -0
- package/dist/collection/plugins/filter/filter.button.js.map +1 -0
- package/dist/collection/plugins/filter/filter.indexed.js +49 -0
- package/dist/collection/plugins/filter/filter.indexed.js.map +1 -0
- package/dist/collection/plugins/filter/filter.panel.js +610 -0
- package/dist/collection/plugins/filter/filter.panel.js.map +1 -0
- package/dist/collection/plugins/filter/filter.plugin.js +388 -0
- package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
- package/dist/collection/plugins/filter/filter.style.css +165 -0
- package/dist/collection/plugins/filter/filter.types.js +9 -0
- package/dist/collection/plugins/filter/filter.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +16 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +245 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +38 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +2 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +178 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +61 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
- package/dist/collection/plugins/index.js +15 -0
- package/dist/collection/plugins/index.js.map +1 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +175 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js +71 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
- package/dist/collection/plugins/rtl/rtl.plugin.js +110 -0
- package/dist/collection/plugins/rtl/rtl.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.func.js +82 -0
- package/dist/collection/plugins/sorting/sorting.func.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +224 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +9 -0
- package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.types.js +2 -0
- package/dist/collection/plugins/sorting/sorting.types.js.map +1 -0
- package/dist/collection/plugins/wcag/index.js +84 -0
- package/dist/collection/plugins/wcag/index.js.map +1 -0
- package/dist/collection/serve/controller.js +344 -0
- package/dist/collection/serve/data.js +201 -0
- package/dist/collection/services/cell.helpers.js +12 -0
- package/dist/collection/services/cell.helpers.js.map +1 -0
- package/dist/collection/services/column.data.provider.js +119 -0
- package/dist/collection/services/column.data.provider.js.map +1 -0
- package/dist/collection/services/data.provider.js +89 -0
- package/dist/collection/services/data.provider.js.map +1 -0
- package/dist/collection/services/dimension.provider.js +176 -0
- package/dist/collection/services/dimension.provider.js.map +1 -0
- package/dist/collection/services/local.scroll.service.js +124 -0
- package/dist/collection/services/local.scroll.service.js.map +1 -0
- package/dist/collection/services/local.scroll.timer.js +81 -0
- package/dist/collection/services/local.scroll.timer.js.map +1 -0
- package/dist/collection/services/selection.store.connector.js +307 -0
- package/dist/collection/services/selection.store.connector.js.map +1 -0
- package/dist/collection/services/viewport.provider.js +17 -0
- package/dist/collection/services/viewport.provider.js.map +1 -0
- package/dist/collection/store/dataSource/data.proxy.js +45 -0
- package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
- package/dist/collection/store/dataSource/data.store.js +144 -0
- package/dist/collection/store/dataSource/data.store.js.map +1 -0
- package/dist/collection/store/dataSource/index.js +7 -0
- package/dist/collection/store/dataSource/index.js.map +1 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js +34 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.helpers.js +101 -0
- package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js +35 -0
- package/dist/collection/store/dimension/dimension.recalculate.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.store.js +109 -0
- package/dist/collection/store/dimension/dimension.store.js.map +1 -0
- package/dist/collection/store/dimension/dimension.trim.plugin.js +61 -0
- package/dist/collection/store/dimension/dimension.trim.plugin.js.map +1 -0
- package/dist/collection/store/dimension/index.js +6 -0
- package/dist/collection/store/dimension/index.js.map +1 -0
- package/dist/collection/store/index.js +17 -0
- package/dist/collection/store/index.js.map +1 -0
- package/dist/collection/store/selection/index.js +6 -0
- package/dist/collection/store/selection/index.js.map +1 -0
- package/dist/collection/store/selection/selection.helpers.js +53 -0
- package/dist/collection/store/selection/selection.helpers.js.map +1 -0
- package/dist/collection/store/selection/selection.store.js +85 -0
- package/dist/collection/store/selection/selection.store.js.map +1 -0
- package/dist/collection/store/vp/index.js +6 -0
- package/dist/collection/store/vp/index.js.map +1 -0
- package/dist/collection/store/vp/viewport.helpers.js +251 -0
- package/dist/collection/store/vp/viewport.helpers.js.map +1 -0
- package/dist/collection/store/vp/viewport.store.js +151 -0
- package/dist/collection/store/vp/viewport.store.js.map +1 -0
- package/dist/collection/themeManager/theme.compact.js +9 -0
- package/dist/collection/themeManager/theme.compact.js.map +1 -0
- package/dist/collection/themeManager/theme.default.js +9 -0
- package/dist/collection/themeManager/theme.default.js.map +1 -0
- package/dist/collection/themeManager/theme.material.js +9 -0
- package/dist/collection/themeManager/theme.material.js.map +1 -0
- package/dist/collection/themeManager/theme.service.js +53 -0
- package/dist/collection/themeManager/theme.service.js.map +1 -0
- package/dist/collection/types/dimension.js +2 -0
- package/dist/collection/types/dimension.js.map +1 -0
- package/dist/collection/types/events.js +118 -0
- package/dist/collection/types/events.js.map +1 -0
- package/dist/collection/types/index.js +12 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/types/interfaces.js +2 -0
- package/dist/collection/types/interfaces.js.map +1 -0
- package/dist/collection/types/plugin.js +2 -0
- package/dist/collection/types/plugin.js.map +1 -0
- package/dist/collection/types/plugin.types.js +2 -0
- package/dist/collection/types/plugin.types.js.map +1 -0
- package/dist/collection/types/selection.js +2 -0
- package/dist/collection/types/selection.js.map +1 -0
- package/dist/collection/types/theme.js +2 -0
- package/dist/collection/types/theme.js.map +1 -0
- package/dist/collection/types/viewport.interfaces.js +2 -0
- package/dist/collection/types/viewport.interfaces.js.map +1 -0
- package/dist/collection/utils/browser.js +7 -0
- package/dist/collection/utils/browser.js.map +1 -0
- package/dist/collection/utils/closest.polifill.js +22 -0
- package/dist/collection/utils/closest.polifill.js.map +1 -0
- package/dist/collection/utils/column.utils.js +153 -0
- package/dist/collection/utils/column.utils.js.map +1 -0
- package/dist/collection/utils/consts.js +26 -0
- package/dist/collection/utils/consts.js.map +1 -0
- package/dist/collection/utils/events.js +39 -0
- package/dist/collection/utils/events.js.map +1 -0
- package/dist/collection/utils/header.utils.js +24 -0
- package/dist/collection/utils/header.utils.js.map +1 -0
- package/dist/collection/utils/index.js +140 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/key.codes.js +80 -0
- package/dist/collection/utils/key.codes.js.map +1 -0
- package/dist/collection/utils/key.utils.js +90 -0
- package/dist/collection/utils/key.utils.js.map +1 -0
- package/dist/collection/utils/mobile.js +7 -0
- package/dist/collection/utils/mobile.js.map +1 -0
- package/dist/collection/utils/platform.js +9 -0
- package/dist/collection/utils/platform.js.map +1 -0
- package/dist/collection/utils/row-header-utils.js +9 -0
- package/dist/collection/utils/row-header-utils.js.map +1 -0
- package/dist/collection/utils/store.types.js +2 -0
- package/dist/collection/utils/store.types.js.map +1 -0
- package/dist/collection/utils/store.utils.js +15 -0
- package/dist/collection/utils/store.utils.js.map +1 -0
- package/dist/esm/app-globals-FBz64o-g.js +14 -0
- package/dist/esm/app-globals-FBz64o-g.js.map +1 -0
- package/dist/esm/cell-renderer-Ca_PCGjJ.js +98 -0
- package/dist/esm/cell-renderer-Ca_PCGjJ.js.map +1 -0
- package/dist/esm/column.drag.plugin-BtuUyB-2.js +2528 -0
- package/dist/esm/column.drag.plugin-BtuUyB-2.js.map +1 -0
- package/dist/esm/column.service-CTqFIQUy.js +1343 -0
- package/dist/esm/column.service-CTqFIQUy.js.map +1 -0
- package/dist/esm/data.store-B-lvmoFH.js +3553 -0
- package/dist/esm/data.store-B-lvmoFH.js.map +1 -0
- package/dist/esm/debounce-DTUQ1fY7.js +488 -0
- package/dist/esm/debounce-DTUQ1fY7.js.map +1 -0
- package/dist/esm/edit.utils-CyCANCLB.js +103 -0
- package/dist/esm/edit.utils-CyCANCLB.js.map +1 -0
- package/dist/esm/events-CKtYJJSv.js +43 -0
- package/dist/esm/events-CKtYJJSv.js.map +1 -0
- package/dist/esm/filter.button-CjABZQgg.js +39 -0
- package/dist/esm/filter.button-CjABZQgg.js.map +1 -0
- package/dist/esm/header-cell-renderer-DnjpJuXq.js +351 -0
- package/dist/esm/header-cell-renderer-DnjpJuXq.js.map +1 -0
- package/dist/esm/index-BAoInZ4V.js +2519 -0
- package/dist/esm/index-BAoInZ4V.js.map +1 -0
- package/dist/esm/index.js +181 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/revo-grid.entry.js +2185 -0
- package/dist/esm/revo-grid.entry.js.map +1 -0
- package/dist/esm/revo-grid.js +27 -0
- package/dist/esm/revo-grid.js.map +1 -0
- package/dist/esm/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.js.map +1 -0
- package/dist/esm/revogr-attribution_7.entry.js +1455 -0
- package/dist/esm/revogr-attribution_7.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard.revogr-edit.revogr-order-editor.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard_3.entry.js +452 -0
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/esm/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.js.map +1 -0
- package/dist/esm/revogr-data_4.entry.js +943 -0
- package/dist/esm/revogr-data_4.entry.js.map +1 -0
- package/dist/esm/revogr-filter-panel.entry.js +380 -0
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
- package/dist/esm/row-header-utils-vnoLGj5A.js +407 -0
- package/dist/esm/row-header-utils-vnoLGj5A.js.map +1 -0
- package/dist/esm/text-editor-Cp7lwBZi.js +79 -0
- package/dist/esm/text-editor-Cp7lwBZi.js.map +1 -0
- package/dist/esm/throttle-DiUrHjcY.js +273 -0
- package/dist/esm/throttle-DiUrHjcY.js.map +1 -0
- package/dist/esm/viewport.helpers-Ch4AQMMg.js +53 -0
- package/dist/esm/viewport.helpers-Ch4AQMMg.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/revo-grid/app-globals-FBz64o-g.js +14 -0
- package/dist/revo-grid/app-globals-FBz64o-g.js.map +1 -0
- package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js +98 -0
- package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js.map +1 -0
- package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js +2528 -0
- package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js.map +1 -0
- package/dist/revo-grid/column.service-CTqFIQUy.js +1343 -0
- package/dist/revo-grid/column.service-CTqFIQUy.js.map +1 -0
- package/dist/revo-grid/data.store-B-lvmoFH.js +3553 -0
- package/dist/revo-grid/data.store-B-lvmoFH.js.map +1 -0
- package/dist/revo-grid/debounce-DTUQ1fY7.js +488 -0
- package/dist/revo-grid/debounce-DTUQ1fY7.js.map +1 -0
- package/dist/revo-grid/edit.utils-CyCANCLB.js +103 -0
- package/dist/revo-grid/edit.utils-CyCANCLB.js.map +1 -0
- package/dist/revo-grid/events-CKtYJJSv.js +43 -0
- package/dist/revo-grid/events-CKtYJJSv.js.map +1 -0
- package/dist/revo-grid/filter.button-CjABZQgg.js +39 -0
- package/dist/revo-grid/filter.button-CjABZQgg.js.map +1 -0
- package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js +351 -0
- package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js.map +1 -0
- package/dist/revo-grid/index-BAoInZ4V.js +2490 -0
- package/dist/revo-grid/index-BAoInZ4V.js.map +1 -0
- package/dist/revo-grid/index.esm.js +181 -0
- package/dist/revo-grid/index.esm.js.map +1 -0
- package/dist/revo-grid/loader.esm.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.esm.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.js +2185 -0
- package/dist/revo-grid/revo-grid.entry.js.map +1 -0
- package/dist/revo-grid/revo-grid.esm.js +27 -0
- package/dist/revo-grid/revo-grid.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution_7.entry.js +1455 -0
- package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard.revogr-edit.revogr-order-editor.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js +452 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/revo-grid/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-data_4.entry.js +943 -0
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.esm.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +380 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
- package/dist/revo-grid/row-header-utils-vnoLGj5A.js +407 -0
- package/dist/revo-grid/row-header-utils-vnoLGj5A.js.map +1 -0
- package/dist/revo-grid/text-editor-Cp7lwBZi.js +79 -0
- package/dist/revo-grid/text-editor-Cp7lwBZi.js.map +1 -0
- package/dist/revo-grid/throttle-DiUrHjcY.js +273 -0
- package/dist/revo-grid/throttle-DiUrHjcY.js.map +1 -0
- package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js +53 -0
- package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js.map +1 -0
- package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
- package/dist/types/components/clipboard/revogr-clipboard.d.ts +89 -0
- package/dist/types/components/data/cell-renderer.d.ts +12 -0
- package/dist/types/components/data/column.service.d.ts +61 -0
- package/dist/types/components/data/revogr-data.d.ts +107 -0
- package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
- package/dist/types/components/data/row-renderer.d.ts +12 -0
- package/dist/types/components/editors/edit.utils.d.ts +3 -0
- package/dist/types/components/editors/revogr-edit.d.ts +63 -0
- package/dist/types/components/editors/text-editor.d.ts +43 -0
- package/dist/types/components/extra/revogr-extra.d.ts +38 -0
- package/dist/types/components/header/header-cell-renderer.d.ts +9 -0
- package/dist/types/components/header/header-group-renderer.d.ts +15 -0
- package/dist/types/components/header/header-renderer.d.ts +16 -0
- package/dist/types/components/header/resizable.directive.d.ts +55 -0
- package/dist/types/components/header/resizable.element.d.ts +5 -0
- package/dist/types/components/header/revogr-header.d.ts +90 -0
- package/dist/types/components/order/order-renderer.d.ts +29 -0
- package/dist/types/components/order/order-row.service.d.ts +27 -0
- package/dist/types/components/order/revogr-order-editor.d.ts +56 -0
- package/dist/types/components/overlay/autofill.service.d.ts +80 -0
- package/dist/types/components/overlay/keyboard.service.d.ts +28 -0
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +278 -0
- package/dist/types/components/overlay/selection.utils.d.ts +47 -0
- package/dist/types/components/revoGrid/grid.helpers.d.ts +17 -0
- package/dist/types/components/revoGrid/plugin.service.d.ts +37 -0
- package/dist/types/components/revoGrid/revo-grid.d.ts +686 -0
- package/dist/types/components/revoGrid/viewport.helpers.d.ts +39 -0
- package/dist/types/components/revoGrid/viewport.resize.service.d.ts +17 -0
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -0
- package/dist/types/components/revoGrid/viewport.service.d.ts +59 -0
- package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +51 -0
- package/dist/types/components/rowHeaders/row-header-render.d.ts +9 -0
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +117 -0
- package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
- package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +43 -0
- package/dist/types/components/selectionFocus/revogr-focus.d.ts +58 -0
- package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +28 -0
- package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
- package/dist/types/components/vnode/vnode.utils.d.ts +9 -0
- package/dist/types/components.d.ts +2583 -0
- package/dist/types/global/global.d.ts +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/plugins/add-rows-on-paste.plugin.d.ts +14 -0
- package/dist/types/plugins/base.plugin.d.ts +51 -0
- package/dist/types/plugins/column.auto-size.plugin.d.ts +55 -0
- package/dist/types/plugins/column.stretch.plugin.d.ts +20 -0
- package/dist/types/plugins/dispatcher.d.ts +20 -0
- package/dist/types/plugins/export/csv.d.ts +9 -0
- package/dist/types/plugins/export/export.plugin.d.ts +24 -0
- package/dist/types/plugins/export/types.d.ts +23 -0
- package/dist/types/plugins/filter/conditions/equal.d.ts +4 -0
- package/dist/types/plugins/filter/conditions/number/greaterThan.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/lessThan.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/number/lessThanOrEqual.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/set.d.ts +4 -0
- package/dist/types/plugins/filter/conditions/string/beginswith.d.ts +3 -0
- package/dist/types/plugins/filter/conditions/string/contains.d.ts +4 -0
- package/dist/types/plugins/filter/filter.button.d.ts +14 -0
- package/dist/types/plugins/filter/filter.indexed.d.ts +20 -0
- package/dist/types/plugins/filter/filter.panel.d.ts +53 -0
- package/dist/types/plugins/filter/filter.plugin.d.ts +73 -0
- package/dist/types/plugins/filter/filter.types.d.ts +129 -0
- package/dist/types/plugins/groupingRow/grouping.const.d.ts +12 -0
- package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +15 -0
- package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +39 -0
- package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +6 -0
- package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +103 -0
- package/dist/types/plugins/groupingRow/grouping.service.d.ts +36 -0
- package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +10 -0
- package/dist/types/plugins/index.d.ts +11 -0
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +42 -0
- package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
- package/dist/types/plugins/rtl/rtl.plugin.d.ts +37 -0
- package/dist/types/plugins/sorting/sorting.func.d.ts +9 -0
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +48 -0
- package/dist/types/plugins/sorting/sorting.sign.d.ts +6 -0
- package/dist/types/plugins/sorting/sorting.types.d.ts +14 -0
- package/dist/types/plugins/wcag/index.d.ts +26 -0
- package/dist/types/services/cell.helpers.d.ts +2 -0
- package/dist/types/services/column.data.provider.d.ts +27 -0
- package/dist/types/services/data.provider.d.ts +36 -0
- package/dist/types/services/dimension.provider.d.ts +66 -0
- package/dist/types/services/local.scroll.service.d.ts +36 -0
- package/dist/types/services/local.scroll.timer.d.ts +32 -0
- package/dist/types/services/selection.store.connector.d.ts +79 -0
- package/dist/types/services/viewport.provider.d.ts +7 -0
- package/dist/types/stencil-public-runtime.d.ts +1709 -0
- package/dist/types/store/dataSource/data.proxy.d.ts +14 -0
- package/dist/types/store/dataSource/data.store.d.ts +74 -0
- package/dist/types/store/dataSource/index.d.ts +3 -0
- package/dist/types/store/dataSource/trimmed.plugin.d.ts +12 -0
- package/dist/types/store/dimension/dimension.helpers.d.ts +24 -0
- package/dist/types/store/dimension/dimension.recalculate.plugin.d.ts +9 -0
- package/dist/types/store/dimension/dimension.store.d.ts +21 -0
- package/dist/types/store/dimension/dimension.trim.plugin.d.ts +13 -0
- package/dist/types/store/dimension/index.d.ts +2 -0
- package/dist/types/store/index.d.ts +8 -0
- package/dist/types/store/selection/index.d.ts +2 -0
- package/dist/types/store/selection/selection.helpers.d.ts +6 -0
- package/dist/types/store/selection/selection.store.d.ts +22 -0
- package/dist/types/store/vp/index.d.ts +7 -0
- package/dist/types/store/vp/viewport.helpers.d.ts +54 -0
- package/dist/types/store/vp/viewport.store.d.ts +26 -0
- package/dist/types/themeManager/theme.compact.d.ts +4 -0
- package/dist/types/themeManager/theme.default.d.ts +4 -0
- package/dist/types/themeManager/theme.material.d.ts +4 -0
- package/dist/types/themeManager/theme.service.d.ts +13 -0
- package/dist/types/types/dimension.d.ts +8 -0
- package/dist/types/types/events.d.ts +2 -0
- package/dist/types/types/index.d.ts +8 -0
- package/dist/types/types/interfaces.d.ts +768 -0
- package/dist/types/types/plugin.d.ts +9 -0
- package/dist/types/types/plugin.types.d.ts +48 -0
- package/dist/types/types/selection.d.ts +178 -0
- package/dist/types/types/theme.d.ts +7 -0
- package/dist/types/types/viewport.interfaces.d.ts +45 -0
- package/dist/types/utils/browser.d.ts +1 -0
- package/dist/types/utils/closest.polifill.d.ts +0 -0
- package/dist/types/utils/column.utils.d.ts +52 -0
- package/dist/types/utils/consts.d.ts +22 -0
- package/dist/types/utils/events.d.ts +5 -0
- package/dist/types/utils/header.utils.d.ts +2 -0
- package/dist/types/utils/index.d.ts +32 -0
- package/dist/types/utils/key.codes.d.ts +73 -0
- package/dist/types/utils/key.utils.d.ts +13 -0
- package/dist/types/utils/mobile.d.ts +1 -0
- package/dist/types/utils/platform.d.ts +4 -0
- package/dist/types/utils/row-header-utils.d.ts +2 -0
- package/dist/types/utils/store.types.d.ts +97 -0
- package/dist/types/utils/store.utils.d.ts +10 -0
- package/hydrate/index.d.ts +273 -0
- package/hydrate/index.js +33890 -0
- package/hydrate/index.mjs +33882 -0
- package/hydrate/package.json +12 -0
- package/loader/cdn.js +4 -0
- package/loader/index.cjs.js +4 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +4 -0
- package/loader/index.js +5 -0
- package/package.json +101 -0
- package/react/dist/index.d.ts +6191 -0
- package/react/dist/react-datagrid.js +260 -0
- package/react/dist/react-datagrid.umd.cjs +272 -0
- package/standalone/column.service.js +1345 -0
- package/standalone/column.service.js.map +1 -0
- package/standalone/consts.js +30 -0
- package/standalone/consts.js.map +1 -0
- package/standalone/data.store.js +3099 -0
- package/standalone/data.store.js.map +1 -0
- package/standalone/debounce.js +215 -0
- package/standalone/debounce.js.map +1 -0
- package/standalone/dimension.helpers.js +229 -0
- package/standalone/dimension.helpers.js.map +1 -0
- package/standalone/filter.button.js +39 -0
- package/standalone/filter.button.js.map +1 -0
- package/standalone/index.d.ts +68 -0
- package/standalone/index.js +217 -0
- package/standalone/index.js.map +1 -0
- package/standalone/index2.js +140 -0
- package/standalone/index2.js.map +1 -0
- package/standalone/local.scroll.timer.js +207 -0
- package/standalone/local.scroll.timer.js.map +1 -0
- package/standalone/platform.js +90 -0
- package/standalone/platform.js.map +1 -0
- package/standalone/revo-grid.d.ts +11 -0
- package/standalone/revo-grid.js +4884 -0
- package/standalone/revo-grid.js.map +1 -0
- package/standalone/revogr-attribution.d.ts +11 -0
- package/standalone/revogr-attribution.js +12 -0
- package/standalone/revogr-attribution.js.map +1 -0
- package/standalone/revogr-attribution2.js +32 -0
- package/standalone/revogr-attribution2.js.map +1 -0
- package/standalone/revogr-clipboard.d.ts +11 -0
- package/standalone/revogr-clipboard.js +12 -0
- package/standalone/revogr-clipboard.js.map +1 -0
- package/standalone/revogr-clipboard2.js +164 -0
- package/standalone/revogr-clipboard2.js.map +1 -0
- package/standalone/revogr-data.d.ts +11 -0
- package/standalone/revogr-data.js +12 -0
- package/standalone/revogr-data.js.map +1 -0
- package/standalone/revogr-data2.js +378 -0
- package/standalone/revogr-data2.js.map +1 -0
- package/standalone/revogr-edit.d.ts +11 -0
- package/standalone/revogr-edit.js +12 -0
- package/standalone/revogr-edit.js.map +1 -0
- package/standalone/revogr-edit2.js +334 -0
- package/standalone/revogr-edit2.js.map +1 -0
- package/standalone/revogr-extra.d.ts +11 -0
- package/standalone/revogr-extra.js +12 -0
- package/standalone/revogr-extra.js.map +1 -0
- package/standalone/revogr-extra2.js +73 -0
- package/standalone/revogr-extra2.js.map +1 -0
- package/standalone/revogr-filter-panel.d.ts +11 -0
- package/standalone/revogr-filter-panel.js +411 -0
- package/standalone/revogr-filter-panel.js.map +1 -0
- package/standalone/revogr-focus.d.ts +11 -0
- package/standalone/revogr-focus.js +12 -0
- package/standalone/revogr-focus.js.map +1 -0
- package/standalone/revogr-focus2.js +112 -0
- package/standalone/revogr-focus2.js.map +1 -0
- package/standalone/revogr-header.d.ts +11 -0
- package/standalone/revogr-header.js +12 -0
- package/standalone/revogr-header.js.map +1 -0
- package/standalone/revogr-header2.js +707 -0
- package/standalone/revogr-header2.js.map +1 -0
- package/standalone/revogr-order-editor.d.ts +11 -0
- package/standalone/revogr-order-editor.js +12 -0
- package/standalone/revogr-order-editor.js.map +1 -0
- package/standalone/revogr-order-editor2.js +201 -0
- package/standalone/revogr-order-editor2.js.map +1 -0
- package/standalone/revogr-overlay-selection.d.ts +11 -0
- package/standalone/revogr-overlay-selection.js +12 -0
- package/standalone/revogr-overlay-selection.js.map +1 -0
- package/standalone/revogr-overlay-selection2.js +972 -0
- package/standalone/revogr-overlay-selection2.js.map +1 -0
- package/standalone/revogr-row-headers.d.ts +11 -0
- package/standalone/revogr-row-headers.js +12 -0
- package/standalone/revogr-row-headers.js.map +1 -0
- package/standalone/revogr-row-headers2.js +520 -0
- package/standalone/revogr-row-headers2.js.map +1 -0
- package/standalone/revogr-scroll-virtual.d.ts +11 -0
- package/standalone/revogr-scroll-virtual.js +12 -0
- package/standalone/revogr-scroll-virtual.js.map +1 -0
- package/standalone/revogr-scroll-virtual2.js +184 -0
- package/standalone/revogr-scroll-virtual2.js.map +1 -0
- package/standalone/revogr-temp-range.d.ts +11 -0
- package/standalone/revogr-temp-range.js +12 -0
- package/standalone/revogr-temp-range.js.map +1 -0
- package/standalone/revogr-temp-range2.js +93 -0
- package/standalone/revogr-temp-range2.js.map +1 -0
- package/standalone/revogr-viewport-scroll.d.ts +11 -0
- package/standalone/revogr-viewport-scroll.js +12 -0
- package/standalone/revogr-viewport-scroll.js.map +1 -0
- package/standalone/revogr-viewport-scroll2.js +421 -0
- package/standalone/revogr-viewport-scroll2.js.map +1 -0
- package/standalone/selection.utils.js +179 -0
- package/standalone/selection.utils.js.map +1 -0
- package/standalone/throttle.js +75 -0
- package/standalone/throttle.js.map +1 -0
- package/standalone/toNumber.js +282 -0
- package/standalone/toNumber.js.map +1 -0
- package/standalone/vnode-converter.js +46 -0
- package/standalone/vnode-converter.js.map +1 -0
- package/standalone/vnode-html.d.ts +11 -0
- package/standalone/vnode-html.js +12 -0
- package/standalone/vnode-html.js.map +1 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by LevelSkill.Pro
|
|
3
|
+
*/
|
|
4
|
+
function isTouch(e) {
|
|
5
|
+
return !!e.touches;
|
|
6
|
+
}
|
|
7
|
+
function verifyTouchTarget(touchEvent, focusClass) {
|
|
8
|
+
if (focusClass && touchEvent) {
|
|
9
|
+
if (!(touchEvent.target instanceof Element && touchEvent.target.classList.contains(focusClass))) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Function to get the value of a specific property from a MouseEvent or TouchEvent object.
|
|
17
|
+
*/
|
|
18
|
+
function getPropertyFromEvent(e, prop, focusClass // for touch events
|
|
19
|
+
) {
|
|
20
|
+
// Check if the event is a touch event
|
|
21
|
+
if (isTouch(e)) {
|
|
22
|
+
// If the event has touches, get the first touch
|
|
23
|
+
if (e.touches.length > 0) {
|
|
24
|
+
const touchEvent = e.touches[0];
|
|
25
|
+
// Check if the target of the touch event is the specified element
|
|
26
|
+
if (!verifyTouchTarget(touchEvent, focusClass)) {
|
|
27
|
+
// If not, return null
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
// Get the value of the specified property from the touch event and return it
|
|
31
|
+
return touchEvent[prop] || 0;
|
|
32
|
+
}
|
|
33
|
+
// If there are no touches, return null
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
// If the event is not a touch event, get the value of the specified property from the event and return it
|
|
37
|
+
return e[prop] || 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { getPropertyFromEvent as g, verifyTouchTarget as v };
|
|
41
|
+
//# sourceMappingURL=events-CKtYJJSv.js.map
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=events-CKtYJJSv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events-CKtYJJSv.js","sources":["src/utils/events.ts"],"sourcesContent":["function isTouch(e: MouseEvent | TouchEvent): e is TouchEvent {\r\n return !!(e as TouchEvent).touches;\r\n}\r\n\r\nexport function verifyTouchTarget(touchEvent?: Touch, focusClass?: string) {\r\n if (focusClass && touchEvent) {\r\n if (!(touchEvent.target instanceof Element && touchEvent.target.classList.contains(focusClass))) { \r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n\r\n\r\n/**\r\n * Function to get the value of a specific property from a MouseEvent or TouchEvent object.\r\n */\r\nexport function getPropertyFromEvent(\r\n e: MouseEvent | TouchEvent,\r\n prop: keyof Pick<Touch, 'clientX' | 'clientY' | 'screenX' | 'screenY'>,\r\n focusClass?: string // for touch events\r\n): number | null {\r\n // Check if the event is a touch event\r\n if (isTouch(e)) {\r\n // If the event has touches, get the first touch\r\n if (e.touches.length > 0) {\r\n const touchEvent = e.touches[0];\r\n // Check if the target of the touch event is the specified element\r\n if (!verifyTouchTarget(touchEvent, focusClass)) {\r\n // If not, return null\r\n return null;\r\n }\r\n // Get the value of the specified property from the touch event and return it\r\n return (touchEvent[prop] as number) || 0;\r\n }\r\n // If there are no touches, return null\r\n return null;\r\n }\r\n // If the event is not a touch event, get the value of the specified property from the event and return it\r\n return e[prop] || 0;\r\n}\r\n"],"names":[],"mappings":";;;AAAA,SAAS,OAAO,CAAC,CAA0B,EAAA;AACzC,IAAA,OAAO,CAAC,CAAE,CAAgB,CAAC,OAAO;AACpC;AAEgB,SAAA,iBAAiB,CAAC,UAAkB,EAAE,UAAmB,EAAA;AACvE,IAAA,IAAI,UAAU,IAAI,UAAU,EAAE;QAC5B,IAAI,EAAE,UAAU,CAAC,MAAM,YAAY,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE;AAC/F,YAAA,OAAO,KAAK;;;AAGhB,IAAA,OAAO,IAAI;AACb;AAGA;;AAEG;AACG,SAAU,oBAAoB,CAClC,CAA0B,EAC1B,IAAsE,EACtE,UAAmB;;;AAGnB,IAAA,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE;;QAEd,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;YACxB,MAAM,UAAU,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;;YAE/B,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE;;AAE9C,gBAAA,OAAO,IAAI;;;AAGb,YAAA,OAAQ,UAAU,CAAC,IAAI,CAAY,IAAI,CAAC;;;AAG1C,QAAA,OAAO,IAAI;;;AAGb,IAAA,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACrB;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by LevelSkill.Pro
|
|
3
|
+
*/
|
|
4
|
+
import { h } from './index-BAoInZ4V.js';
|
|
5
|
+
|
|
6
|
+
const FILTER_BUTTON_CLASS = 'rv-filter';
|
|
7
|
+
const FILTER_BUTTON_ACTIVE = 'active';
|
|
8
|
+
const FILTER_PROP = 'hasFilter';
|
|
9
|
+
const AND_OR_BUTTON = 'and-or-button';
|
|
10
|
+
const TRASH_BUTTON = 'trash-button';
|
|
11
|
+
const FilterButton = ({ column }) => {
|
|
12
|
+
return (h("span", null,
|
|
13
|
+
h("button", { class: {
|
|
14
|
+
[FILTER_BUTTON_CLASS]: true,
|
|
15
|
+
[FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],
|
|
16
|
+
} },
|
|
17
|
+
h("svg", { class: "filter-img", viewBox: "0 0 64 64" },
|
|
18
|
+
h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" },
|
|
19
|
+
h("path", { d: "M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z", fill: "currentColor" }))))));
|
|
20
|
+
};
|
|
21
|
+
const TrashButton = () => {
|
|
22
|
+
return (h("div", { class: { [TRASH_BUTTON]: true } },
|
|
23
|
+
h("svg", { class: "trash-img", viewBox: "0 0 24 24" },
|
|
24
|
+
h("path", { fill: "currentColor", d: "M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z" }))));
|
|
25
|
+
};
|
|
26
|
+
const AndOrButton = ({ text }) => {
|
|
27
|
+
return h("button", { class: { [AND_OR_BUTTON]: true, 'light revo-button': true } }, text);
|
|
28
|
+
};
|
|
29
|
+
function isFilterBtn(e) {
|
|
30
|
+
if (e.classList.contains(FILTER_BUTTON_CLASS)) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
return e === null || e === void 0 ? void 0 : e.closest(`.${FILTER_BUTTON_CLASS}`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { AND_OR_BUTTON as A, FILTER_BUTTON_CLASS as F, TRASH_BUTTON as T, FILTER_BUTTON_ACTIVE as a, FILTER_PROP as b, FilterButton as c, TrashButton as d, AndOrButton as e, isFilterBtn as i };
|
|
37
|
+
//# sourceMappingURL=filter.button-CjABZQgg.js.map
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=filter.button-CjABZQgg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.button-CjABZQgg.js","sources":["src/plugins/filter/filter.button.tsx"],"sourcesContent":["import { h } from '@stencil/core';\r\nimport { ColumnRegular } from '@type';\r\n\r\nexport const FILTER_BUTTON_CLASS = 'rv-filter';\r\nexport const FILTER_BUTTON_ACTIVE = 'active';\r\n\r\nexport const FILTER_PROP = 'hasFilter';\r\nexport const AND_OR_BUTTON = 'and-or-button';\r\nexport const TRASH_BUTTON = 'trash-button';\r\n\r\ntype Props = {\r\n column: ColumnRegular;\r\n};\r\nexport const FilterButton = ({ column }: Props) => {\r\n return (\r\n <span>\r\n <button\r\n class={{\r\n [FILTER_BUTTON_CLASS]: true,\r\n [FILTER_BUTTON_ACTIVE]: column && !!column[FILTER_PROP],\r\n }}\r\n >\r\n <svg class=\"filter-img\" viewBox=\"0 0 64 64\">\r\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\r\n <path d=\"M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z\" fill=\"currentColor\"></path>\r\n </g>\r\n </svg>\r\n </button>\r\n </span>\r\n );\r\n};\r\n\r\nexport const TrashButton = () => {\r\n return (\r\n <div class={{ [TRASH_BUTTON]: true }}>\r\n <svg class=\"trash-img\" viewBox=\"0 0 24 24\">\r\n <path fill=\"currentColor\" d=\"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z\" />\r\n </svg>\r\n </div>\r\n );\r\n};\r\nexport const AndOrButton = ({ text }: any) => {\r\n return <button class={{ [AND_OR_BUTTON]: true, 'light revo-button': true }}>{text}</button>;\r\n};\r\n\r\nexport function isFilterBtn(e: HTMLElement) {\r\n if (e.classList.contains(FILTER_BUTTON_CLASS)) {\r\n return true;\r\n }\r\n return e?.closest(`.${FILTER_BUTTON_CLASS}`);\r\n}\r\n"],"names":[],"mappings":";;;;;AAGO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,oBAAoB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CAAC,CAAc,EAAA;IACxC,IAAI,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;AAC7C,QAAA,OAAO,IAAI;;AAEb,IAAA,OAAO,CAAC,KAAA,IAAA,IAAD,CAAC,KAAA,MAAA,GAAA,MAAA,GAAD,CAAC,CAAE,OAAO,CAAC,CAAI,CAAA,EAAA,mBAAmB,CAAE,CAAA,CAAC;AAC9C;;;;"}
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by LevelSkill.Pro
|
|
3
|
+
*/
|
|
4
|
+
import { h } from './index-BAoInZ4V.js';
|
|
5
|
+
import { U as doPropMerge } from './column.service-CTqFIQUy.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Dispatches a custom event to a specified target element.
|
|
9
|
+
*
|
|
10
|
+
* @param target - The target element to dispatch the event to.
|
|
11
|
+
* @param eventName - The name of the custom event.
|
|
12
|
+
* @param detail - Optional. The detail of the custom event.
|
|
13
|
+
* @returns The custom event that was dispatched.
|
|
14
|
+
*/
|
|
15
|
+
function dispatch(target, eventName, detail) {
|
|
16
|
+
// Create a new CustomEvent with the specified event name and detail.
|
|
17
|
+
const event = new CustomEvent(eventName, {
|
|
18
|
+
detail,
|
|
19
|
+
cancelable: true, // Indicates whether the event can be canceled.
|
|
20
|
+
bubbles: true, // Indicates whether the event bubbles up through the DOM.
|
|
21
|
+
});
|
|
22
|
+
// Dispatch the event on the target element.
|
|
23
|
+
target === null || target === void 0 ? void 0 : target.dispatchEvent(event);
|
|
24
|
+
// Return the custom event that was dispatched.
|
|
25
|
+
return event;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Dispatches a custom event based on an existing event object and prevents the default behavior of the original event.
|
|
29
|
+
*
|
|
30
|
+
* @param e - The original event object containing the target and preventDefault method.
|
|
31
|
+
* @param eventName - The name of the custom event.
|
|
32
|
+
* @param detail - Optional. The detail of the custom event.
|
|
33
|
+
* @returns The custom event that was dispatched.
|
|
34
|
+
*/
|
|
35
|
+
function dispatchByEvent(e, // The original event object containing the target and preventDefault method.
|
|
36
|
+
eventName, // The name of the custom event.
|
|
37
|
+
detail) {
|
|
38
|
+
// Prevent the default behavior of the original event.
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
// Dispatch the custom event to the target element specified in the original event object.
|
|
41
|
+
return dispatch(e.target, eventName, detail);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var ResizeEvents;
|
|
45
|
+
(function (ResizeEvents) {
|
|
46
|
+
ResizeEvents["start"] = "resize:start";
|
|
47
|
+
ResizeEvents["move"] = "resize:move";
|
|
48
|
+
ResizeEvents["end"] = "resize:end";
|
|
49
|
+
})(ResizeEvents || (ResizeEvents = {}));
|
|
50
|
+
const RESIZE_MASK = {
|
|
51
|
+
'resizable-r': { bit: 0b0001, cursor: 'ew-resize' },
|
|
52
|
+
'resizable-rb': { bit: 0b0011, cursor: 'se-resize' },
|
|
53
|
+
'resizable-b': { bit: 0b0010, cursor: 's-resize' },
|
|
54
|
+
'resizable-lb': { bit: 0b0110, cursor: 'sw-resize' },
|
|
55
|
+
'resizable-l': { bit: 0b0100, cursor: 'w-resize' },
|
|
56
|
+
'resizable-lt': { bit: 0b1100, cursor: 'nw-resize' },
|
|
57
|
+
'resizable-t': { bit: 0b1000, cursor: 'n-resize' },
|
|
58
|
+
'resizable-rt': { bit: 0b1001, cursor: 'ne-resize' },
|
|
59
|
+
};
|
|
60
|
+
const DISABLE_MASK = {
|
|
61
|
+
w: 0b0100,
|
|
62
|
+
h: 0b1000,
|
|
63
|
+
};
|
|
64
|
+
const defaultProps = (props) => {
|
|
65
|
+
return Object.assign(Object.assign({}, props), { fitParent: props.fitParent || false, active: props.active || [], disableAttributes: props.disableAttributes || [], minWidth: props.minWidth || 0, minHeight: props.minHeight || 0 });
|
|
66
|
+
};
|
|
67
|
+
class ResizeDirective {
|
|
68
|
+
constructor(initialProps, $event) {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
this.initialProps = initialProps;
|
|
71
|
+
this.$event = $event;
|
|
72
|
+
this.mouseX = 0;
|
|
73
|
+
this.mouseY = 0;
|
|
74
|
+
this.width = 0;
|
|
75
|
+
this.height = 0;
|
|
76
|
+
this.changeX = 0;
|
|
77
|
+
this.changeY = 0;
|
|
78
|
+
this.disableCalcMap = 0b1111;
|
|
79
|
+
this.props = defaultProps(initialProps);
|
|
80
|
+
this.mouseMoveFunc = this.handleMove.bind(this);
|
|
81
|
+
this.mouseUpFunc = this.handleUp.bind(this);
|
|
82
|
+
this.minW = this.props.minWidth;
|
|
83
|
+
this.minH = this.props.minHeight;
|
|
84
|
+
this.maxW = (_a = this.props.maxWidth) !== null && _a !== void 0 ? _a : 0;
|
|
85
|
+
this.maxH = (_b = this.props.maxHeight) !== null && _b !== void 0 ? _b : 0;
|
|
86
|
+
this.parent = { width: 0, height: 0 };
|
|
87
|
+
this.resizeState = 0;
|
|
88
|
+
}
|
|
89
|
+
set($el) {
|
|
90
|
+
this.$el = $el;
|
|
91
|
+
this.props.disableAttributes.forEach(attr => {
|
|
92
|
+
switch (attr) {
|
|
93
|
+
case 'l':
|
|
94
|
+
this.disableCalcMap &= -2;
|
|
95
|
+
break;
|
|
96
|
+
case 't':
|
|
97
|
+
this.disableCalcMap &= -3;
|
|
98
|
+
break;
|
|
99
|
+
case 'w':
|
|
100
|
+
this.disableCalcMap &= -5;
|
|
101
|
+
break;
|
|
102
|
+
case 'h':
|
|
103
|
+
this.disableCalcMap &= -9;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
emitEvent(eventName, additionalOptions) {
|
|
108
|
+
var _a;
|
|
109
|
+
if (!this.$event) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const isLeft = (_a = this.activeResizer) === null || _a === void 0 ? void 0 : _a.classList.contains('resizable-l');
|
|
113
|
+
this.$event(Object.assign({ eventName, width: this.width + this.changeX * (isLeft ? -1 : 1), height: this.height + this.changeY, changedX: this.changeX, changedY: this.changeY }, additionalOptions));
|
|
114
|
+
}
|
|
115
|
+
static isTouchEvent(e) {
|
|
116
|
+
var _a;
|
|
117
|
+
const event = e;
|
|
118
|
+
return ((_a = event.touches) === null || _a === void 0 ? void 0 : _a.length) >= 0;
|
|
119
|
+
}
|
|
120
|
+
handleMove(event) {
|
|
121
|
+
var _a;
|
|
122
|
+
if (!this.resizeState) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
let eventY, eventX;
|
|
126
|
+
if (ResizeDirective.isTouchEvent(event)) {
|
|
127
|
+
eventY = event.touches[0].clientY;
|
|
128
|
+
eventX = event.touches[0].clientX;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
eventY = event.clientY;
|
|
132
|
+
eventX = event.clientX;
|
|
133
|
+
}
|
|
134
|
+
let isX = this.resizeState & RESIZE_MASK['resizable-r'].bit ||
|
|
135
|
+
this.resizeState & RESIZE_MASK['resizable-l'].bit;
|
|
136
|
+
let isY = this.resizeState & RESIZE_MASK['resizable-t'].bit ||
|
|
137
|
+
this.resizeState & RESIZE_MASK['resizable-b'].bit;
|
|
138
|
+
if (isY && this.disableCalcMap & DISABLE_MASK.h) {
|
|
139
|
+
let diffY = eventY - this.mouseY;
|
|
140
|
+
let changedY = this.changeY + diffY;
|
|
141
|
+
const newHeight = this.height + changedY;
|
|
142
|
+
// if overcrossed min height
|
|
143
|
+
if (newHeight < this.minH) {
|
|
144
|
+
changedY = -(this.height - this.minH);
|
|
145
|
+
}
|
|
146
|
+
// if overcrossed max heiht
|
|
147
|
+
if (this.maxH && newHeight > this.maxH) {
|
|
148
|
+
changedY = this.maxH - this.height;
|
|
149
|
+
}
|
|
150
|
+
this.changeY = changedY;
|
|
151
|
+
this.mouseY = eventY;
|
|
152
|
+
if (this.activeResizer) {
|
|
153
|
+
this.activeResizer.style.bottom = `${-this.changeY}px`;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (isX && this.disableCalcMap & DISABLE_MASK.w) {
|
|
157
|
+
const isLeft = (_a = this.activeResizer) === null || _a === void 0 ? void 0 : _a.classList.contains('resizable-l');
|
|
158
|
+
let diffX = eventX - this.mouseX;
|
|
159
|
+
let changedX = this.changeX + diffX;
|
|
160
|
+
const newWidth = this.width + changedX * (isLeft ? -1 : 1);
|
|
161
|
+
// if overcrossed min width
|
|
162
|
+
if (newWidth < this.minW) {
|
|
163
|
+
changedX = -(this.width - this.minW);
|
|
164
|
+
}
|
|
165
|
+
// if overcrossed max width
|
|
166
|
+
if (this.maxW && newWidth > this.maxW) {
|
|
167
|
+
changedX = this.maxW - this.width;
|
|
168
|
+
}
|
|
169
|
+
this.changeX = changedX;
|
|
170
|
+
this.mouseX = eventX;
|
|
171
|
+
if (this.activeResizer) {
|
|
172
|
+
if (!isLeft) {
|
|
173
|
+
this.activeResizer.style.right = `${-this.changeX}px`;
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
this.activeResizer.style.left = `${this.changeX}px`;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
this.emitEvent(ResizeEvents.move);
|
|
181
|
+
}
|
|
182
|
+
handleDown(event) {
|
|
183
|
+
if (event.defaultPrevented) {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
// stop other events if resize in progress
|
|
187
|
+
event.preventDefault();
|
|
188
|
+
this.dropInitial();
|
|
189
|
+
for (let elClass in RESIZE_MASK) {
|
|
190
|
+
const target = event.target;
|
|
191
|
+
if (this.$el.contains(target) && (target === null || target === void 0 ? void 0 : target.classList.contains(elClass))) {
|
|
192
|
+
document.body.style.cursor = RESIZE_MASK[elClass].cursor;
|
|
193
|
+
if (ResizeDirective.isTouchEvent(event)) {
|
|
194
|
+
this.setInitials(event.touches[0], target);
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
event.preventDefault && event.preventDefault();
|
|
198
|
+
this.setInitials(event, target);
|
|
199
|
+
}
|
|
200
|
+
this.resizeState = RESIZE_MASK[elClass].bit;
|
|
201
|
+
const eventName = ResizeEvents.start;
|
|
202
|
+
this.emitEvent(eventName);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
this.bindMove();
|
|
207
|
+
}
|
|
208
|
+
handleUp(e) {
|
|
209
|
+
e.preventDefault();
|
|
210
|
+
if (this.resizeState !== 0) {
|
|
211
|
+
this.resizeState = 0;
|
|
212
|
+
document.body.style.cursor = '';
|
|
213
|
+
const eventName = ResizeEvents.end;
|
|
214
|
+
this.emitEvent(eventName);
|
|
215
|
+
}
|
|
216
|
+
this.dropInitial();
|
|
217
|
+
this.unbindMove();
|
|
218
|
+
}
|
|
219
|
+
setInitials({ clientX, clientY }, target) {
|
|
220
|
+
var _a, _b, _c, _d;
|
|
221
|
+
const computedStyle = getComputedStyle(this.$el);
|
|
222
|
+
this.$el.classList.add('active');
|
|
223
|
+
this.activeResizer = target;
|
|
224
|
+
if (this.disableCalcMap & DISABLE_MASK.w) {
|
|
225
|
+
this.mouseX = clientX;
|
|
226
|
+
this.width = this.$el.clientWidth;
|
|
227
|
+
this.parent.width = (_b = (_a = this.$el.parentElement) === null || _a === void 0 ? void 0 : _a.clientWidth) !== null && _b !== void 0 ? _b : 0;
|
|
228
|
+
// min width
|
|
229
|
+
const minPaddingX = parseFloat(computedStyle.paddingLeft) +
|
|
230
|
+
parseFloat(computedStyle.paddingRight);
|
|
231
|
+
this.minW = Math.max(minPaddingX, this.initialProps.minWidth || 0);
|
|
232
|
+
// max width
|
|
233
|
+
if (this.initialProps.maxWidth) {
|
|
234
|
+
this.maxW = Math.max(this.width, this.initialProps.maxWidth);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if (this.disableCalcMap & DISABLE_MASK.h) {
|
|
238
|
+
this.mouseY = clientY;
|
|
239
|
+
this.height = this.$el.clientHeight;
|
|
240
|
+
this.parent.height = (_d = (_c = this.$el.parentElement) === null || _c === void 0 ? void 0 : _c.clientHeight) !== null && _d !== void 0 ? _d : 0;
|
|
241
|
+
// min height
|
|
242
|
+
const minPaddingY = parseFloat(computedStyle.paddingTop) +
|
|
243
|
+
parseFloat(computedStyle.paddingBottom);
|
|
244
|
+
this.minH = Math.max(minPaddingY, this.initialProps.minHeight || 0);
|
|
245
|
+
// max height
|
|
246
|
+
if (this.initialProps.maxHeight) {
|
|
247
|
+
this.maxH = Math.max(this.height, this.initialProps.maxHeight);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
dropInitial() {
|
|
252
|
+
this.changeX = this.changeY = this.minW = this.minH;
|
|
253
|
+
this.width = this.height = 0;
|
|
254
|
+
if (this.activeResizer) {
|
|
255
|
+
this.activeResizer.removeAttribute('style');
|
|
256
|
+
}
|
|
257
|
+
this.$el.classList.remove('active');
|
|
258
|
+
this.activeResizer = undefined;
|
|
259
|
+
}
|
|
260
|
+
bindMove() {
|
|
261
|
+
document.documentElement.addEventListener('mouseup', this.mouseUpFunc, true);
|
|
262
|
+
document.documentElement.addEventListener('touchend', this.mouseUpFunc, true);
|
|
263
|
+
document.documentElement.addEventListener('mousemove', this.mouseMoveFunc, true);
|
|
264
|
+
document.documentElement.addEventListener('touchmove', this.mouseMoveFunc, true);
|
|
265
|
+
document.documentElement.addEventListener('mouseleave', this.mouseUpFunc);
|
|
266
|
+
}
|
|
267
|
+
unbindMove() {
|
|
268
|
+
document.documentElement.removeEventListener('mouseup', this.mouseUpFunc, true);
|
|
269
|
+
document.documentElement.removeEventListener('touchend', this.mouseUpFunc, true);
|
|
270
|
+
document.documentElement.removeEventListener('mousemove', this.mouseMoveFunc, true);
|
|
271
|
+
document.documentElement.removeEventListener('touchmove', this.mouseMoveFunc, true);
|
|
272
|
+
document.documentElement.removeEventListener('mouseleave', this.mouseUpFunc);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
const ResizableElement = (props, children) => {
|
|
277
|
+
const resizeEls = [];
|
|
278
|
+
const directive = (props.canResize &&
|
|
279
|
+
new ResizeDirective(props, e => {
|
|
280
|
+
var _a;
|
|
281
|
+
if (e.eventName === ResizeEvents.end) {
|
|
282
|
+
(_a = props.onResize) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
283
|
+
}
|
|
284
|
+
})) ||
|
|
285
|
+
null;
|
|
286
|
+
if (props.active) {
|
|
287
|
+
if (props.canResize) {
|
|
288
|
+
for (let p in props.active) {
|
|
289
|
+
resizeEls.push(h("div", { onClick: e => e.preventDefault(), onDblClick: e => {
|
|
290
|
+
var _a;
|
|
291
|
+
e.preventDefault();
|
|
292
|
+
(_a = props.onDblClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
293
|
+
}, onMouseDown: (e) => directive === null || directive === void 0 ? void 0 : directive.handleDown(e), onTouchStart: (e) => directive === null || directive === void 0 ? void 0 : directive.handleDown(e), class: `resizable resizable-${props.active[p]}` }));
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
for (let _p in props.active) {
|
|
298
|
+
resizeEls.push(h("div", { onClick: e => e.preventDefault(), onTouchStart: (e) => e.preventDefault(), onDblClick: e => {
|
|
299
|
+
var _a;
|
|
300
|
+
e.preventDefault();
|
|
301
|
+
(_a = props.onDblClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
302
|
+
}, class: `no-resize` }));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return (h("div", Object.assign({}, props, { ref: e => e && (directive === null || directive === void 0 ? void 0 : directive.set(e)) }),
|
|
307
|
+
children,
|
|
308
|
+
resizeEls));
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
const ON_COLUMN_CLICK = 'columnclick';
|
|
312
|
+
const HeaderCellRenderer = ({ data, props, additionalData }, children) => {
|
|
313
|
+
let colTemplate = (data === null || data === void 0 ? void 0 : data.name) || '';
|
|
314
|
+
let cellProps = props;
|
|
315
|
+
if (data === null || data === void 0 ? void 0 : data.columnTemplate) {
|
|
316
|
+
colTemplate = data.columnTemplate(h, data, additionalData);
|
|
317
|
+
}
|
|
318
|
+
if (data === null || data === void 0 ? void 0 : data.columnProperties) {
|
|
319
|
+
const extra = data.columnProperties(data);
|
|
320
|
+
if (extra) {
|
|
321
|
+
cellProps = doPropMerge(props, extra);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
const resizeProps = Object.assign(Object.assign({}, cellProps), { onMouseDown(e) {
|
|
325
|
+
dispatch(e.currentTarget, ON_COLUMN_CLICK, {
|
|
326
|
+
data,
|
|
327
|
+
event: e,
|
|
328
|
+
});
|
|
329
|
+
} });
|
|
330
|
+
return (h(ResizableElement, Object.assign({}, resizeProps),
|
|
331
|
+
!!(data === null || data === void 0 ? void 0 : data.rowDrag) && (h("div", { onMouseDown: (e) => {
|
|
332
|
+
dispatch(e.currentTarget, ON_COLUMN_CLICK, {
|
|
333
|
+
data,
|
|
334
|
+
event: e,
|
|
335
|
+
});
|
|
336
|
+
}, class: "header-cell-drag" },
|
|
337
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.3", "stroke-linecap": "round", "stroke-linejoin": "round" },
|
|
338
|
+
h("circle", { cx: "9", cy: "12", r: "1" }),
|
|
339
|
+
h("circle", { cx: "9", cy: "5", r: "1" }),
|
|
340
|
+
h("circle", { cx: "9", cy: "19", r: "1" }),
|
|
341
|
+
h("circle", { cx: "15", cy: "12", r: "1" }),
|
|
342
|
+
h("circle", { cx: "15", cy: "5", r: "1" }),
|
|
343
|
+
h("circle", { cx: "15", cy: "19", r: "1" })))),
|
|
344
|
+
h("div", { class: "header-content" }, colTemplate),
|
|
345
|
+
children));
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
export { HeaderCellRenderer as H, ON_COLUMN_CLICK as O, dispatchByEvent as a, dispatch as d };
|
|
349
|
+
//# sourceMappingURL=header-cell-renderer-DnjpJuXq.js.map
|
|
350
|
+
|
|
351
|
+
//# sourceMappingURL=header-cell-renderer-DnjpJuXq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-cell-renderer-DnjpJuXq.js","sources":["src/plugins/dispatcher.ts","src/components/header/resizable.directive.tsx","src/components/header/resizable.element.tsx","src/components/header/header-cell-renderer.tsx"],"sourcesContent":["/**\r\n * Dispatches a custom event to a specified target element.\r\n *\r\n * @param target - The target element to dispatch the event to.\r\n * @param eventName - The name of the custom event.\r\n * @param detail - Optional. The detail of the custom event.\r\n * @returns The custom event that was dispatched.\r\n */\r\nexport function dispatch<DispatchDetail = any>(\r\n target: MouseEvent['target'],\r\n eventName: string,\r\n detail?: DispatchDetail,\r\n) {\r\n // Create a new CustomEvent with the specified event name and detail.\r\n const event = new CustomEvent<DispatchDetail>(eventName, {\r\n detail,\r\n cancelable: true, // Indicates whether the event can be canceled.\r\n bubbles: true, // Indicates whether the event bubbles up through the DOM.\r\n });\r\n\r\n // Dispatch the event on the target element.\r\n target?.dispatchEvent(event);\r\n\r\n // Return the custom event that was dispatched.\r\n return event;\r\n}\r\n\r\n/**\r\n * Dispatches a custom event based on an existing event object and prevents the default behavior of the original event.\r\n *\r\n * @param e - The original event object containing the target and preventDefault method.\r\n * @param eventName - The name of the custom event.\r\n * @param detail - Optional. The detail of the custom event.\r\n * @returns The custom event that was dispatched.\r\n */\r\nexport function dispatchByEvent<DispatchDetail = any>(\r\n e: Pick<MouseEvent, 'target' | 'preventDefault'>, // The original event object containing the target and preventDefault method.\r\n eventName: string, // The name of the custom event.\r\n detail?: DispatchDetail, // Optional. The detail of the custom event.\r\n): CustomEvent {\r\n // Prevent the default behavior of the original event.\r\n e.preventDefault();\r\n\r\n // Dispatch the custom event to the target element specified in the original event object.\r\n return dispatch<DispatchDetail>(e.target, eventName, detail);\r\n}\r\n","export type ResizeProps = {\r\n active: ('r' | 'rb' | 'b' | 'lb' | 'l' | 'lt' | 't' | 'rt')[]; // all\r\n fitParent: boolean; // false\r\n minWidth: number; // 0\r\n minHeight: number; // 0\r\n\r\n disableAttributes: ('l' | 't' | 'w' | 'h')[]; // []\r\n maxWidth?: number;\r\n maxHeight?: number;\r\n\r\n onResize?(e: ResizeEvent): void;\r\n};\r\n\r\nexport type ResizeEvent = {\r\n eventName: string;\r\n changedX?: number;\r\n changedY?: number;\r\n width?: number;\r\n height?: number;\r\n};\r\n\r\nexport enum ResizeEvents {\r\n start = 'resize:start',\r\n move = 'resize:move',\r\n end = 'resize:end',\r\n}\r\n\r\nconst RESIZE_MASK: { [key: string]: any } = {\r\n 'resizable-r': { bit: 0b0001, cursor: 'ew-resize' },\r\n 'resizable-rb': { bit: 0b0011, cursor: 'se-resize' },\r\n 'resizable-b': { bit: 0b0010, cursor: 's-resize' },\r\n 'resizable-lb': { bit: 0b0110, cursor: 'sw-resize' },\r\n 'resizable-l': { bit: 0b0100, cursor: 'w-resize' },\r\n 'resizable-lt': { bit: 0b1100, cursor: 'nw-resize' },\r\n 'resizable-t': { bit: 0b1000, cursor: 'n-resize' },\r\n 'resizable-rt': { bit: 0b1001, cursor: 'ne-resize' },\r\n};\r\n\r\nconst DISABLE_MASK = {\r\n l: 0b0001,\r\n t: 0b0010,\r\n w: 0b0100,\r\n h: 0b1000,\r\n};\r\n\r\nconst defaultProps = (props: Partial<ResizeProps>): ResizeProps => {\r\n return {\r\n ...props,\r\n fitParent: props.fitParent || false,\r\n active: props.active || [],\r\n disableAttributes: props.disableAttributes || [],\r\n minWidth: props.minWidth || 0,\r\n minHeight: props.minHeight || 0,\r\n };\r\n};\r\n\r\nexport class ResizeDirective {\r\n private $el: HTMLElement;\r\n private props: ResizeProps;\r\n private minW: number;\r\n private minH: number;\r\n private maxW: number;\r\n private maxH: number;\r\n\r\n private mouseX = 0;\r\n private mouseY = 0;\r\n\r\n private width = 0;\r\n private height = 0;\r\n\r\n private changeX = 0;\r\n private changeY = 0;\r\n\r\n private parent: { width: number; height: number };\r\n private resizeState: number;\r\n private activeResizer?: HTMLElement;\r\n private disableCalcMap = 0b1111;\r\n\r\n private mouseMoveFunc: () => void;\r\n private mouseUpFunc: () => void;\r\n\r\n constructor(\r\n private initialProps: Partial<ResizeProps>,\r\n private $event?: (e: ResizeEvent) => void,\r\n ) {\r\n this.props = defaultProps(initialProps);\r\n this.mouseMoveFunc = this.handleMove.bind(this);\r\n this.mouseUpFunc = this.handleUp.bind(this);\r\n\r\n this.minW = this.props.minWidth;\r\n this.minH = this.props.minHeight;\r\n this.maxW = this.props.maxWidth ?? 0;\r\n this.maxH = this.props.maxHeight ?? 0;\r\n this.parent = { width: 0, height: 0 };\r\n this.resizeState = 0;\r\n }\r\n\r\n set($el: HTMLElement) {\r\n this.$el = $el;\r\n this.props.disableAttributes.forEach(attr => {\r\n switch (attr) {\r\n case 'l':\r\n this.disableCalcMap &= ~DISABLE_MASK.l;\r\n break;\r\n case 't':\r\n this.disableCalcMap &= ~DISABLE_MASK.t;\r\n break;\r\n case 'w':\r\n this.disableCalcMap &= ~DISABLE_MASK.w;\r\n break;\r\n case 'h':\r\n this.disableCalcMap &= ~DISABLE_MASK.h;\r\n }\r\n });\r\n }\r\n emitEvent(eventName: string, additionalOptions?: any) {\r\n if (!this.$event) {\r\n return;\r\n }\r\n const isLeft = this.activeResizer?.classList.contains('resizable-l');\r\n this.$event({\r\n eventName,\r\n width: this.width + this.changeX * (isLeft ? -1 : 1),\r\n height: this.height + this.changeY,\r\n changedX: this.changeX,\r\n changedY: this.changeY,\r\n ...additionalOptions,\r\n });\r\n }\r\n\r\n private static isTouchEvent(e: MouseEvent | TouchEvent): e is TouchEvent {\r\n const event = e as TouchEvent;\r\n return event.touches?.length >= 0;\r\n }\r\n\r\n handleMove(event: MouseEvent | TouchEvent) {\r\n if (!this.resizeState) {\r\n return;\r\n }\r\n let eventY, eventX;\r\n if (ResizeDirective.isTouchEvent(event)) {\r\n eventY = event.touches[0].clientY;\r\n eventX = event.touches[0].clientX;\r\n } else {\r\n eventY = event.clientY;\r\n eventX = event.clientX;\r\n }\r\n let isX =\r\n this.resizeState & RESIZE_MASK['resizable-r'].bit ||\r\n this.resizeState & RESIZE_MASK['resizable-l'].bit;\r\n\r\n let isY =\r\n this.resizeState & RESIZE_MASK['resizable-t'].bit ||\r\n this.resizeState & RESIZE_MASK['resizable-b'].bit;\r\n\r\n if (isY && this.disableCalcMap & DISABLE_MASK.h) {\r\n let diffY = eventY - this.mouseY;\r\n let changedY = this.changeY + diffY;\r\n const newHeight = this.height + changedY;\r\n // if overcrossed min height\r\n if (newHeight < this.minH) {\r\n changedY = -(this.height - this.minH);\r\n }\r\n // if overcrossed max heiht\r\n if (this.maxH && newHeight > this.maxH) {\r\n changedY = this.maxH - this.height;\r\n }\r\n\r\n this.changeY = changedY;\r\n this.mouseY = eventY;\r\n\r\n if (this.activeResizer) {\r\n this.activeResizer.style.bottom = `${-this.changeY}px`;\r\n }\r\n }\r\n if (isX && this.disableCalcMap & DISABLE_MASK.w) {\r\n const isLeft = this.activeResizer?.classList.contains('resizable-l');\r\n let diffX = eventX - this.mouseX;\r\n let changedX = this.changeX + diffX;\r\n const newWidth = this.width + changedX * (isLeft ? -1 : 1);\r\n\r\n // if overcrossed min width\r\n if (newWidth < this.minW) {\r\n changedX = -(this.width - this.minW);\r\n }\r\n // if overcrossed max width\r\n if (this.maxW && newWidth > this.maxW) {\r\n changedX = this.maxW - this.width;\r\n }\r\n\r\n this.changeX = changedX;\r\n this.mouseX = eventX;\r\n\r\n if (this.activeResizer) {\r\n if (!isLeft) {\r\n this.activeResizer.style.right = `${-this.changeX}px`;\r\n } else {\r\n this.activeResizer.style.left = `${this.changeX}px`;\r\n }\r\n }\r\n }\r\n this.emitEvent(ResizeEvents.move);\r\n }\r\n\r\n handleDown(event: MouseEvent | TouchEvent) {\r\n if (event.defaultPrevented) {\r\n return;\r\n }\r\n // stop other events if resize in progress\r\n event.preventDefault();\r\n\r\n this.dropInitial();\r\n for (let elClass in RESIZE_MASK) {\r\n const target = event.target as HTMLElement | null;\r\n if (this.$el.contains(target) && target?.classList.contains(elClass)) {\r\n document.body.style.cursor = RESIZE_MASK[elClass].cursor;\r\n if (ResizeDirective.isTouchEvent(event)) {\r\n this.setInitials(event.touches[0], target);\r\n } else {\r\n event.preventDefault && event.preventDefault();\r\n this.setInitials(event, target);\r\n }\r\n this.resizeState = RESIZE_MASK[elClass].bit;\r\n const eventName = ResizeEvents.start;\r\n this.emitEvent(eventName);\r\n break;\r\n }\r\n }\r\n this.bindMove();\r\n }\r\n\r\n handleUp(e: MouseEvent) {\r\n e.preventDefault();\r\n if (this.resizeState !== 0) {\r\n this.resizeState = 0;\r\n document.body.style.cursor = '';\r\n const eventName = ResizeEvents.end;\r\n this.emitEvent(eventName);\r\n }\r\n this.dropInitial();\r\n this.unbindMove();\r\n }\r\n\r\n private setInitials(\r\n { clientX, clientY }: { clientX: number; clientY: number },\r\n target?: HTMLElement,\r\n ) {\r\n const computedStyle = getComputedStyle(this.$el);\r\n this.$el.classList.add('active');\r\n this.activeResizer = target;\r\n\r\n if (this.disableCalcMap & DISABLE_MASK.w) {\r\n this.mouseX = clientX;\r\n this.width = this.$el.clientWidth;\r\n this.parent.width = this.$el.parentElement?.clientWidth ?? 0;\r\n\r\n // min width\r\n const minPaddingX =\r\n parseFloat(computedStyle.paddingLeft) +\r\n parseFloat(computedStyle.paddingRight);\r\n this.minW = Math.max(minPaddingX, this.initialProps.minWidth || 0);\r\n\r\n // max width\r\n if (this.initialProps.maxWidth) {\r\n this.maxW = Math.max(this.width, this.initialProps.maxWidth);\r\n }\r\n }\r\n\r\n if (this.disableCalcMap & DISABLE_MASK.h) {\r\n this.mouseY = clientY;\r\n this.height = this.$el.clientHeight;\r\n this.parent.height = this.$el.parentElement?.clientHeight ?? 0;\r\n\r\n // min height\r\n const minPaddingY =\r\n parseFloat(computedStyle.paddingTop) +\r\n parseFloat(computedStyle.paddingBottom);\r\n this.minH = Math.max(minPaddingY, this.initialProps.minHeight || 0);\r\n // max height\r\n if (this.initialProps.maxHeight) {\r\n this.maxH = Math.max(this.height, this.initialProps.maxHeight);\r\n }\r\n }\r\n }\r\n\r\n private dropInitial() {\r\n this.changeX = this.changeY = this.minW = this.minH;\r\n this.width = this.height = 0;\r\n if (this.activeResizer) {\r\n this.activeResizer.removeAttribute('style');\r\n }\r\n this.$el.classList.remove('active');\r\n this.activeResizer = undefined;\r\n }\r\n\r\n private bindMove() {\r\n document.documentElement.addEventListener(\r\n 'mouseup',\r\n this.mouseUpFunc,\r\n true,\r\n );\r\n document.documentElement.addEventListener(\r\n 'touchend',\r\n this.mouseUpFunc,\r\n true,\r\n );\r\n document.documentElement.addEventListener(\r\n 'mousemove',\r\n this.mouseMoveFunc,\r\n true,\r\n );\r\n document.documentElement.addEventListener(\r\n 'touchmove',\r\n this.mouseMoveFunc,\r\n true,\r\n );\r\n document.documentElement.addEventListener('mouseleave', this.mouseUpFunc);\r\n }\r\n\r\n private unbindMove() {\r\n document.documentElement.removeEventListener(\r\n 'mouseup',\r\n this.mouseUpFunc,\r\n true,\r\n );\r\n document.documentElement.removeEventListener(\r\n 'touchend',\r\n this.mouseUpFunc,\r\n true,\r\n );\r\n document.documentElement.removeEventListener(\r\n 'mousemove',\r\n this.mouseMoveFunc,\r\n true,\r\n );\r\n document.documentElement.removeEventListener(\r\n 'touchmove',\r\n this.mouseMoveFunc,\r\n true,\r\n );\r\n document.documentElement.removeEventListener(\r\n 'mouseleave',\r\n this.mouseUpFunc,\r\n );\r\n }\r\n}\r\n","import { type FunctionalComponent, h, type VNode } from '@stencil/core';\r\nimport {\r\n ResizeProps,\r\n ResizeDirective,\r\n ResizeEvents,\r\n} from './resizable.directive';\r\nimport type { CellProps } from '@type';\r\n\r\nexport type ResizableElementHTMLAttributes = Partial<ResizeProps> & CellProps;\r\n\r\nexport const ResizableElement: FunctionalComponent = (\r\n props: ResizableElementHTMLAttributes,\r\n children: VNode[],\r\n) => {\r\n const resizeEls: VNode[] = [];\r\n const directive =\r\n (props.canResize &&\r\n new ResizeDirective(props, e => {\r\n if (e.eventName === ResizeEvents.end) {\r\n props.onResize?.(e);\r\n }\r\n })) ||\r\n null;\r\n\r\n if (props.active) {\r\n if (props.canResize) {\r\n for (let p in props.active) {\r\n resizeEls.push(\r\n <div\r\n onClick={e => e.preventDefault()}\r\n onDblClick={e => {\r\n e.preventDefault();\r\n props.onDblClick?.(e);\r\n }}\r\n onMouseDown={(e: MouseEvent) => directive?.handleDown(e)}\r\n onTouchStart={(e: TouchEvent) => directive?.handleDown(e)}\r\n class={`resizable resizable-${props.active[p]}`}\r\n />,\r\n );\r\n }\r\n } else {\r\n for (let _p in props.active) {\r\n resizeEls.push(\r\n <div\r\n onClick={e => e.preventDefault()}\r\n onTouchStart={(e: TouchEvent) => e.preventDefault()}\r\n onDblClick={e => {\r\n e.preventDefault();\r\n props.onDblClick?.(e);\r\n }}\r\n class={`no-resize`}\r\n />,\r\n );\r\n }\r\n }\r\n }\r\n return (\r\n <div {...props} ref={e => e && directive?.set(e)}>\r\n {children}\r\n {resizeEls}\r\n </div>\r\n );\r\n};\r\n","import { type FunctionalComponent, h } from '@stencil/core';\r\nimport { dispatch } from '../../plugins/dispatcher';\r\nimport { doPropMerge } from '../data/column.service';\r\nimport {\r\n ResizableElement,\r\n ResizableElementHTMLAttributes,\r\n} from './resizable.element';\r\nimport { ColumnTemplateProp } from '@type';\r\n\r\nexport const ON_COLUMN_CLICK = 'columnclick';\r\n\r\nexport const HeaderCellRenderer: FunctionalComponent<{\r\n props: ResizableElementHTMLAttributes;\r\n additionalData: any;\r\n data?: ColumnTemplateProp;\r\n}> = ({ data, props, additionalData }, children) => {\r\n let colTemplate: ReturnType<typeof h> = data?.name || '';\r\n let cellProps = props;\r\n if (data?.columnTemplate) {\r\n colTemplate = data.columnTemplate(h, data, additionalData);\r\n }\r\n if (data?.columnProperties) {\r\n const extra = data.columnProperties(data);\r\n if (extra) {\r\n cellProps = doPropMerge(props, extra);\r\n }\r\n }\r\n const resizeProps = {\r\n ...cellProps,\r\n onMouseDown(e: MouseEvent) {\r\n dispatch(e.currentTarget, ON_COLUMN_CLICK, {\r\n data,\r\n event: e,\r\n });\r\n },\r\n };\r\n\r\n return (\r\n <ResizableElement {...resizeProps}>\r\n {!!data?.rowDrag && (\r\n <div\r\n onMouseDown={(e: MouseEvent) => {\r\n dispatch(e.currentTarget as HTMLElement, ON_COLUMN_CLICK, {\r\n data,\r\n event: e,\r\n });\r\n }}\r\n class=\"header-cell-drag\"\r\n >\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"18\"\r\n height=\"18\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"1.3\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n >\r\n <circle cx=\"9\" cy=\"12\" r=\"1\" />\r\n <circle cx=\"9\" cy=\"5\" r=\"1\" />\r\n <circle cx=\"9\" cy=\"19\" r=\"1\" />\r\n <circle cx=\"15\" cy=\"12\" r=\"1\" />\r\n <circle cx=\"15\" cy=\"5\" r=\"1\" />\r\n <circle cx=\"15\" cy=\"19\" r=\"1\" />\r\n </svg>\r\n </div>\r\n )}\r\n <div class=\"header-content\">{colTemplate}</div>\r\n {children}\r\n </ResizableElement>\r\n );\r\n};\r\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;AAOG;SACa,QAAQ,CACtB,MAA4B,EAC5B,SAAiB,EACjB,MAAuB,EAAA;;AAGvB,IAAA,MAAM,KAAK,GAAG,IAAI,WAAW,CAAiB,SAAS,EAAE;QACvD,MAAM;QACN,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,IAAI;AACd,KAAA,CAAC;;IAGF,MAAM,KAAA,IAAA,IAAN,MAAM,KAAN,MAAA,GAAA,MAAA,GAAA,MAAM,CAAE,aAAa,CAAC,KAAK,CAAC;;AAG5B,IAAA,OAAO,KAAK;AACd;AAEA;;;;;;;AAOG;AACa,SAAA,eAAe,CAC7B,CA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