@revolist/revogrid 4.9.1 → 4.9.3
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/dist/cjs/{base.plugin-d48d867d.js → base.plugin-bf5f43a0.js} +2 -2
- package/dist/cjs/{base.plugin-d48d867d.js.map → base.plugin-bf5f43a0.js.map} +1 -1
- package/dist/cjs/{column.service-6f691f50.js → column.service-01f4a6c7.js} +25 -6
- package/dist/cjs/column.service-01f4a6c7.js.map +1 -0
- package/dist/cjs/{dimension.helpers-e9d22516.js → dimension.helpers-a6788214.js} +10 -5
- package/dist/cjs/dimension.helpers-a6788214.js.map +1 -0
- package/dist/cjs/{header-cell-renderer-81a22b00.js → header-cell-renderer-3bc70679.js} +10 -8
- package/dist/cjs/header-cell-renderer-3bc70679.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/revo-grid.cjs.entry.js +81 -93
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +71 -46
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +12 -7
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +45 -36
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/{selection.helpers-8fa19c04.js → selection.helpers-1a8c8d49.js} +32 -31
- package/dist/cjs/selection.helpers-1a8c8d49.js.map +1 -0
- package/dist/cjs/{throttle-bcc4740d.js → throttle-52be9e67.js} +4 -3
- package/dist/cjs/throttle-52be9e67.js.map +1 -0
- package/dist/cjs/{viewport.store-9cf01c71.js → viewport.store-35a3e7ee.js} +13 -9
- package/dist/cjs/viewport.store-35a3e7ee.js.map +1 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +68 -89
- package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -1
- package/dist/collection/components/data/cell-renderer.js +7 -4
- package/dist/collection/components/data/cell-renderer.js.map +1 -1
- package/dist/collection/components/data/column.service.js +1 -1
- package/dist/collection/components/data/column.service.js.map +1 -1
- package/dist/collection/components/data/revogr-data.js +1 -1
- package/dist/collection/components/data/revogr-data.js.map +1 -1
- package/dist/collection/components/editors/revogr-edit.js +6 -6
- package/dist/collection/components/editors/revogr-edit.js.map +1 -1
- package/dist/collection/components/editors/text-editor.js +3 -1
- package/dist/collection/components/editors/text-editor.js.map +1 -1
- package/dist/collection/components/header/header-renderer.js +2 -1
- package/dist/collection/components/header/header-renderer.js.map +1 -1
- package/dist/collection/components/header/resizable.directive.js +7 -5
- package/dist/collection/components/header/resizable.directive.js.map +1 -1
- package/dist/collection/components/header/resizable.element.js +1 -1
- package/dist/collection/components/header/resizable.element.js.map +1 -1
- package/dist/collection/components/overlay/autofill.service.js +11 -12
- package/dist/collection/components/overlay/autofill.service.js.map +1 -1
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -1
- package/dist/collection/components/overlay/revogr-overlay-selection.js +74 -39
- package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -1
- package/dist/collection/components/overlay/selection.utils.js +13 -5
- package/dist/collection/components/overlay/selection.utils.js.map +1 -1
- package/dist/collection/components/revoGrid/grid.helpers.js +10 -8
- package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -1
- package/dist/collection/components/revoGrid/revo-grid.js +42 -42
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
- package/dist/collection/components/revoGrid/viewport.helpers.js +19 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -1
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +4 -3
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -1
- package/dist/collection/components/revoGrid/viewport.service.js +27 -37
- package/dist/collection/components/revoGrid/viewport.service.js.map +1 -1
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +2 -2
- package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -1
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +34 -29
- package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -1
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js +1 -1
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -1
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +3 -3
- package/dist/collection/components/selectionFocus/revogr-focus.js +1 -1
- package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -1
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -1
- package/dist/collection/components/vnode/vnode-converter.js +6 -6
- package/dist/collection/components/vnode/vnode-converter.js.map +1 -1
- package/dist/collection/components/vnode/vnode.utils.js.map +1 -1
- package/dist/collection/global/global.js.map +1 -1
- package/dist/collection/plugins/export/export.plugin.js +2 -2
- package/dist/collection/plugins/export/export.plugin.js.map +1 -1
- package/dist/collection/plugins/filter/filter.panel.js +4 -4
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +1 -1
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -1
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +2 -2
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -1
- package/dist/collection/plugins/groupingRow/grouping.service.js +1 -1
- package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -1
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +1 -1
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -1
- package/dist/collection/plugins/sorting/sorting.plugin.js +9 -12
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -1
- package/dist/collection/services/cell.helpers.js +3 -2
- package/dist/collection/services/cell.helpers.js.map +1 -1
- package/dist/collection/services/column.data.provider.js.map +1 -1
- package/dist/collection/services/data.provider.js.map +1 -1
- package/dist/collection/services/dimension.provider.js +2 -1
- package/dist/collection/services/dimension.provider.js.map +1 -1
- package/dist/collection/services/local.scroll.service.js +3 -2
- package/dist/collection/services/local.scroll.service.js.map +1 -1
- package/dist/collection/services/selection.store.connector.js +20 -16
- package/dist/collection/services/selection.store.connector.js.map +1 -1
- package/dist/collection/store/selection/selection.helpers.js +8 -12
- package/dist/collection/store/selection/selection.helpers.js.map +1 -1
- package/dist/collection/store/selection/selection.store.js +2 -1
- package/dist/collection/store/selection/selection.store.js.map +1 -1
- package/dist/collection/store/vp/viewport.helpers.js +10 -6
- package/dist/collection/store/vp/viewport.helpers.js.map +1 -1
- package/dist/collection/store/vp/viewport.store.js +1 -1
- package/dist/collection/store/vp/viewport.store.js.map +1 -1
- package/dist/collection/themeManager/theme.service.js +1 -1
- package/dist/collection/themeManager/theme.service.js.map +1 -1
- package/dist/collection/types/interfaces.js.map +1 -1
- package/dist/collection/types/selection.js.map +1 -1
- package/dist/collection/types/viewport.interfaces.js.map +1 -1
- package/dist/collection/utils/closest.polifill.js.map +1 -1
- package/dist/collection/utils/store.utils.js +9 -4
- package/dist/collection/utils/store.utils.js.map +1 -1
- package/dist/esm/{base.plugin-78393655.js → base.plugin-5e7a3c51.js} +2 -2
- package/dist/esm/{base.plugin-78393655.js.map → base.plugin-5e7a3c51.js.map} +1 -1
- package/dist/esm/{column.service-0e41057a.js → column.service-5d14e7e9.js} +25 -6
- package/dist/esm/column.service-5d14e7e9.js.map +1 -0
- package/dist/esm/{dimension.helpers-91398565.js → dimension.helpers-56298828.js} +10 -5
- package/dist/esm/dimension.helpers-56298828.js.map +1 -0
- package/dist/esm/{header-cell-renderer-6d8ac25d.js → header-cell-renderer-fc999784.js} +10 -8
- package/dist/esm/header-cell-renderer-fc999784.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/revo-grid.entry.js +81 -93
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revogr-attribution_6.entry.js +71 -46
- package/dist/esm/revogr-attribution_6.entry.js.map +1 -1
- package/dist/esm/revogr-clipboard_3.entry.js +12 -7
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/esm/revogr-data_4.entry.js +45 -36
- package/dist/esm/revogr-data_4.entry.js.map +1 -1
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/esm/{selection.helpers-50e9f09d.js → selection.helpers-accaad4a.js} +32 -31
- package/dist/esm/selection.helpers-accaad4a.js.map +1 -0
- package/dist/esm/{throttle-1b1dd9d2.js → throttle-7283692c.js} +4 -3
- package/dist/esm/throttle-7283692c.js.map +1 -0
- package/dist/esm/{viewport.store-bfd0b036.js → viewport.store-d8e03528.js} +13 -9
- package/dist/esm/viewport.store-d8e03528.js.map +1 -0
- package/dist/revo-grid/{base.plugin-78393655.js → base.plugin-5e7a3c51.js} +2 -2
- package/dist/revo-grid/column.service-5d14e7e9.js +5 -0
- package/dist/revo-grid/column.service-5d14e7e9.js.map +1 -0
- package/dist/revo-grid/{dimension.helpers-91398565.js → dimension.helpers-56298828.js} +2 -2
- package/dist/revo-grid/{dimension.helpers-91398565.js.map → dimension.helpers-56298828.js.map} +1 -1
- package/dist/revo-grid/header-cell-renderer-fc999784.js +5 -0
- package/dist/revo-grid/header-cell-renderer-fc999784.js.map +1 -0
- package/dist/revo-grid/index.esm.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revogr-attribution_6.entry.js +1 -1
- package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -1
- package/dist/revo-grid/selection.helpers-accaad4a.js +5 -0
- package/dist/revo-grid/selection.helpers-accaad4a.js.map +1 -0
- package/dist/revo-grid/{throttle-1b1dd9d2.js → throttle-7283692c.js} +2 -2
- package/dist/revo-grid/throttle-7283692c.js.map +1 -0
- package/dist/revo-grid/viewport.store-d8e03528.js +5 -0
- package/dist/revo-grid/viewport.store-d8e03528.js.map +1 -0
- package/dist/types/components/clipboard/revogr-clipboard.d.ts +32 -24
- package/dist/types/components/data/column.service.d.ts +1 -1
- package/dist/types/components/data/row-highlight.plugin.d.ts +1 -1
- package/dist/types/components/editors/revogr-edit.d.ts +1 -1
- package/dist/types/components/editors/text-editor.d.ts +3 -3
- package/dist/types/components/header/header-renderer.d.ts +2 -2
- package/dist/types/components/header/resizable.directive.d.ts +2 -2
- package/dist/types/components/overlay/autofill.service.d.ts +9 -7
- package/dist/types/components/overlay/keyboard.service.d.ts +4 -4
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +20 -11
- package/dist/types/components/overlay/selection.utils.d.ts +7 -4
- package/dist/types/components/revoGrid/revo-grid.d.ts +7 -6
- package/dist/types/components/revoGrid/viewport.helpers.d.ts +18 -3
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +1 -1
- package/dist/types/components/revoGrid/viewport.service.d.ts +2 -6
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +6 -6
- package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +1 -1
- package/dist/types/components/vnode/vnode-converter.d.ts +1 -1
- package/dist/types/components/vnode/vnode.utils.d.ts +1 -1
- package/dist/types/components.d.ts +80 -54
- package/dist/types/plugins/column.auto-size.plugin.d.ts +2 -2
- package/dist/types/plugins/export/export.plugin.d.ts +3 -3
- package/dist/types/plugins/filter/filter.button.d.ts +1 -1
- package/dist/types/plugins/filter/filter.panel.d.ts +1 -1
- package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +1 -1
- package/dist/types/plugins/groupingRow/grouping.service.d.ts +3 -3
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +8 -8
- package/dist/types/services/column.data.provider.d.ts +1 -1
- package/dist/types/services/data.provider.d.ts +1 -1
- package/dist/types/services/dimension.provider.d.ts +3 -2
- package/dist/types/services/selection.store.connector.d.ts +9 -9
- package/dist/types/store/selection/selection.helpers.d.ts +1 -1
- package/dist/types/store/selection/selection.store.d.ts +4 -4
- package/dist/types/store/vp/viewport.helpers.d.ts +2 -2
- package/dist/types/themeManager/theme.service.d.ts +1 -1
- package/dist/types/types/interfaces.d.ts +18 -1
- package/dist/types/types/viewport.interfaces.d.ts +2 -2
- package/dist/types/utils/store.utils.d.ts +7 -4
- package/hydrate/index.js +274 -215
- package/hydrate/index.mjs +274 -215
- package/package.json +1 -1
- package/standalone/column.service.js +33 -33
- package/standalone/column.service.js.map +1 -1
- package/standalone/data.store.js +2959 -7
- package/standalone/data.store.js.map +1 -1
- package/standalone/debounce.js +1 -1
- package/standalone/dimension.helpers.js +2 -2
- package/standalone/index.js.map +1 -1
- package/standalone/local.scroll.timer.js +3 -2
- package/standalone/local.scroll.timer.js.map +1 -1
- package/standalone/revo-grid.js +77 -90
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-clipboard2.js +6 -3
- package/standalone/revogr-clipboard2.js.map +1 -1
- package/standalone/revogr-data2.js +7 -5
- package/standalone/revogr-data2.js.map +1 -1
- package/standalone/revogr-edit2.js +5 -3
- package/standalone/revogr-edit2.js.map +1 -1
- package/standalone/revogr-filter-panel.js.map +1 -1
- package/standalone/revogr-focus2.js +0 -1
- package/standalone/revogr-focus2.js.map +1 -1
- package/standalone/revogr-header2.js +12 -10
- package/standalone/revogr-header2.js.map +1 -1
- package/standalone/revogr-order-editor2.js +0 -1
- package/standalone/revogr-order-editor2.js.map +1 -1
- package/standalone/revogr-overlay-selection2.js +54 -38
- package/standalone/revogr-overlay-selection2.js.map +1 -1
- package/standalone/revogr-row-headers2.js +12 -9
- package/standalone/revogr-row-headers2.js.map +1 -1
- package/standalone/revogr-scroll-virtual2.js +1 -1
- package/standalone/revogr-scroll-virtual2.js.map +1 -1
- package/standalone/revogr-temp-range2.js.map +1 -1
- package/standalone/revogr-viewport-scroll2.js +47 -23
- package/standalone/revogr-viewport-scroll2.js.map +1 -1
- package/standalone/selection.utils.js +14 -6
- package/standalone/selection.utils.js.map +1 -1
- package/standalone/toNumber.js +1 -1
- package/standalone/vnode-converter.js +3 -3
- package/standalone/vnode-converter.js.map +1 -1
- package/dist/cjs/column.service-6f691f50.js.map +0 -1
- package/dist/cjs/dimension.helpers-e9d22516.js.map +0 -1
- package/dist/cjs/header-cell-renderer-81a22b00.js.map +0 -1
- package/dist/cjs/selection.helpers-8fa19c04.js.map +0 -1
- package/dist/cjs/throttle-bcc4740d.js.map +0 -1
- package/dist/cjs/viewport.store-9cf01c71.js.map +0 -1
- package/dist/esm/column.service-0e41057a.js.map +0 -1
- package/dist/esm/dimension.helpers-91398565.js.map +0 -1
- package/dist/esm/header-cell-renderer-6d8ac25d.js.map +0 -1
- package/dist/esm/selection.helpers-50e9f09d.js.map +0 -1
- package/dist/esm/throttle-1b1dd9d2.js.map +0 -1
- package/dist/esm/viewport.store-bfd0b036.js.map +0 -1
- package/dist/revo-grid/column.service-0e41057a.js +0 -5
- package/dist/revo-grid/column.service-0e41057a.js.map +0 -1
- package/dist/revo-grid/header-cell-renderer-6d8ac25d.js +0 -5
- package/dist/revo-grid/header-cell-renderer-6d8ac25d.js.map +0 -1
- package/dist/revo-grid/selection.helpers-50e9f09d.js +0 -5
- package/dist/revo-grid/selection.helpers-50e9f09d.js.map +0 -1
- package/dist/revo-grid/throttle-1b1dd9d2.js.map +0 -1
- package/dist/revo-grid/viewport.store-bfd0b036.js +0 -5
- package/dist/revo-grid/viewport.store-bfd0b036.js.map +0 -1
- package/standalone/_baseIteratee.js +0 -2956
- package/standalone/_baseIteratee.js.map +0 -1
- /package/dist/revo-grid/{base.plugin-78393655.js.map → base.plugin-5e7a3c51.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"header-cell-renderer-3bc70679.js","mappings":";;;;;;;;;AAsBA,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AE,IAAI,KAAI,EAAE,CAAC;IAC7D,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,cAAc,EAAE;QACxB,WAAW,GAAG,IAAI,CAAC,cAAc,CAACA,OAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;KAC5D;IACD,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,EAAE;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACtC,SAAS,GAAGC,0BAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SACvC;KACF;IACD,QACED,QAAC,gBAAgB,oBAAK,SAAS,IAAE,WAAW,EAAE,CAAC,CAAa;YAC1DE,mBAAQ,CAAC,CAAC,CAAC,aAA4B,EAAE,eAAe,EAAE;gBACxD,IAAI;gBACJ,KAAK,EAAE,CAAC;aACT,CAAC,CAAC;SACH;QACAF,iBAAK,KAAK,EAAC,gBAAgB,IAAE,WAAW,CAAO;QAC9C,QAAQ,CACQ,EACnB;AACJ;;;;;","names":["h","doPropMerge","dispatch"],"sources":["src/components/header/resizable.directive.tsx","src/components/header/resizable.element.tsx","src/components/header/header-cell-renderer.tsx"],"sourcesContent":["export type ResizeProps = {\n active: ('r' | 'rb' | 'b' | 'lb' | 'l' | 'lt' | 't' | 'rt')[]; // all\n fitParent: boolean; // false\n minWidth: number; // 0\n minHeight: number; // 0\n\n disableAttributes: ('l' | 't' | 'w' | 'h')[]; // []\n maxWidth?: number;\n maxHeight?: number;\n\n onResize?(e: ResizeEvent): void;\n onDoubleClick?(originalEvent: MouseEvent): void;\n};\n\nexport type ResizeEvent = {\n eventName: string;\n changedX?: number;\n changedY?: number;\n width?: number;\n height?: number;\n};\n\nexport enum ResizeEvents {\n start = 'resize:start',\n move = 'resize:move',\n end = 'resize:end',\n}\n\nconst RESIZE_MASK: { [key: string]: any } = {\n 'resizable-r': { bit: 0b0001, cursor: 'ew-resize' },\n 'resizable-rb': { bit: 0b0011, cursor: 'se-resize' },\n 'resizable-b': { bit: 0b0010, cursor: 's-resize' },\n 'resizable-lb': { bit: 0b0110, cursor: 'sw-resize' },\n 'resizable-l': { bit: 0b0100, cursor: 'w-resize' },\n 'resizable-lt': { bit: 0b1100, cursor: 'nw-resize' },\n 'resizable-t': { bit: 0b1000, cursor: 'n-resize' },\n 'resizable-rt': { bit: 0b1001, cursor: 'ne-resize' },\n};\n\nconst DISABLE_MASK = {\n l: 0b0001,\n t: 0b0010,\n w: 0b0100,\n h: 0b1000,\n};\n\nconst defaultProps = (props: Partial<ResizeProps>): ResizeProps => {\n return {\n ...props,\n fitParent: props.fitParent || false,\n active: props.active || [],\n disableAttributes: props.disableAttributes || [],\n minWidth: props.minWidth || 0,\n minHeight: props.minHeight || 0,\n };\n};\n\nexport class ResizeDirective {\n private $el: HTMLElement;\n private props: ResizeProps;\n private minW: number;\n private minH: number;\n private maxW: number;\n private maxH: number;\n\n private mouseX = 0;\n private mouseY = 0;\n\n private width = 0;\n private height = 0;\n\n private changeX = 0;\n private changeY = 0;\n\n private parent: { width: number; height: number };\n private resizeState: number;\n private activeResizer?: HTMLElement;\n private disableCalcMap = 0b1111;\n\n private mouseMoveFunc: () => void;\n private mouseUpFunc: () => void;\n\n constructor(\n private initialProps: Partial<ResizeProps>,\n private $event?: (e: ResizeEvent) => void,\n ) {\n this.props = defaultProps(initialProps);\n this.mouseMoveFunc = this.handleMove.bind(this);\n this.mouseUpFunc = this.handleUp.bind(this);\n\n this.minW = this.props.minWidth;\n this.minH = this.props.minHeight;\n this.maxW = this.props.maxWidth ?? 0;\n this.maxH = this.props.maxHeight ?? 0;\n this.parent = { width: 0, height: 0 };\n this.resizeState = 0;\n }\n\n set($el: HTMLElement) {\n this.$el = $el;\n this.props.disableAttributes.forEach(attr => {\n switch (attr) {\n case 'l':\n this.disableCalcMap &= ~DISABLE_MASK.l;\n break;\n case 't':\n this.disableCalcMap &= ~DISABLE_MASK.t;\n break;\n case 'w':\n this.disableCalcMap &= ~DISABLE_MASK.w;\n break;\n case 'h':\n this.disableCalcMap &= ~DISABLE_MASK.h;\n }\n });\n }\n emitEvent(eventName: string, additionalOptions?: any) {\n if (!this.$event) {\n return;\n }\n const isLeft = this.activeResizer?.classList.contains('resizable-l');\n this.$event({\n eventName,\n width: this.width + this.changeX * (isLeft ? -1 : 1),\n height: this.height + this.changeY,\n changedX: this.changeX,\n changedY: this.changeY,\n ...additionalOptions,\n });\n }\n\n private static isTouchEvent(e: MouseEvent | TouchEvent): e is TouchEvent {\n const event = e as TouchEvent;\n return event.touches?.length >= 0;\n }\n\n handleMove(event: MouseEvent | TouchEvent) {\n if (!this.resizeState) {\n return;\n }\n let eventY, eventX;\n if (ResizeDirective.isTouchEvent(event)) {\n eventY = event.touches[0].clientY;\n eventX = event.touches[0].clientX;\n } else {\n eventY = event.clientY;\n eventX = event.clientX;\n }\n let isX =\n this.resizeState & RESIZE_MASK['resizable-r'].bit ||\n this.resizeState & RESIZE_MASK['resizable-l'].bit;\n\n let isY =\n this.resizeState & RESIZE_MASK['resizable-t'].bit ||\n this.resizeState & RESIZE_MASK['resizable-b'].bit;\n\n if (isY && this.disableCalcMap & DISABLE_MASK.h) {\n let diffY = eventY - this.mouseY;\n let changedY = this.changeY + diffY;\n const newHeight = this.height + changedY;\n // if overcrossed min height\n if (newHeight < this.minH) {\n changedY = -(this.height - this.minH);\n }\n // if overcrossed max heiht\n if (this.maxH && newHeight > this.maxH) {\n changedY = this.maxH - this.height;\n }\n\n this.changeY = changedY;\n this.mouseY = eventY;\n\n if (this.activeResizer) {\n this.activeResizer.style.bottom = `${-this.changeY}px`;\n }\n }\n if (isX && this.disableCalcMap & DISABLE_MASK.w) {\n const isLeft = this.activeResizer?.classList.contains('resizable-l');\n let diffX = eventX - this.mouseX;\n let changedX = this.changeX + diffX;\n const newWidth = this.width + changedX * (isLeft ? -1 : 1);\n\n // if overcrossed min width\n if (newWidth < this.minW) {\n changedX = -(this.width - this.minW);\n }\n // if overcrossed max width\n if (this.maxW && newWidth > this.maxW) {\n changedX = this.maxW - this.width;\n }\n\n this.changeX = changedX;\n this.mouseX = eventX;\n\n if (this.activeResizer) {\n if (!isLeft) {\n this.activeResizer.style.right = `${-this.changeX}px`;\n } else {\n this.activeResizer.style.left = `${this.changeX}px`;\n }\n }\n }\n this.emitEvent(ResizeEvents.move);\n }\n\n handleDown(event: MouseEvent | TouchEvent) {\n if (event.defaultPrevented) {\n return;\n }\n // stop other events if resize in progress\n event.preventDefault();\n\n this.dropInitial();\n for (let elClass in RESIZE_MASK) {\n const target = event.target as HTMLElement | null;\n if (this.$el.contains(target) && target?.classList.contains(elClass)) {\n document.body.style.cursor = RESIZE_MASK[elClass].cursor;\n if (ResizeDirective.isTouchEvent(event)) {\n this.setInitials(event.touches[0], target);\n } else {\n event.preventDefault && event.preventDefault();\n this.setInitials(event, target);\n }\n this.resizeState = RESIZE_MASK[elClass].bit;\n const eventName = ResizeEvents.start;\n this.emitEvent(eventName);\n break;\n }\n }\n this.bindMove();\n }\n\n handleUp(e: MouseEvent) {\n e.preventDefault();\n if (this.resizeState !== 0) {\n this.resizeState = 0;\n document.body.style.cursor = '';\n const eventName = ResizeEvents.end;\n this.emitEvent(eventName);\n }\n this.dropInitial();\n this.unbindMove();\n }\n\n private setInitials(\n { clientX, clientY }: { clientX: number; clientY: number },\n target?: HTMLElement,\n ) {\n const computedStyle = getComputedStyle(this.$el);\n this.$el.classList.add('active');\n this.activeResizer = target;\n\n if (this.disableCalcMap & DISABLE_MASK.w) {\n this.mouseX = clientX;\n this.width = this.$el.clientWidth;\n this.parent.width = this.$el.parentElement?.clientWidth ?? 0;\n\n // min width\n const minPaddingX =\n parseFloat(computedStyle.paddingLeft) +\n parseFloat(computedStyle.paddingRight);\n this.minW = Math.max(minPaddingX, this.initialProps.minWidth || 0);\n\n // max width\n if (this.initialProps.maxWidth) {\n this.maxW = Math.max(this.width, this.initialProps.maxWidth);\n }\n }\n\n if (this.disableCalcMap & DISABLE_MASK.h) {\n this.mouseY = clientY;\n this.height = this.$el.clientHeight;\n this.parent.height = this.$el.parentElement?.clientHeight ?? 0;\n\n // min height\n const minPaddingY =\n parseFloat(computedStyle.paddingTop) +\n parseFloat(computedStyle.paddingBottom);\n this.minH = Math.max(minPaddingY, this.initialProps.minHeight || 0);\n // max height\n if (this.initialProps.maxHeight) {\n this.maxH = Math.max(this.height, this.initialProps.maxHeight);\n }\n }\n }\n\n private dropInitial() {\n this.changeX = this.changeY = this.minW = this.minH;\n this.width = this.height = 0;\n if (this.activeResizer) {\n this.activeResizer.removeAttribute('style');\n }\n this.$el.classList.remove('active');\n this.activeResizer = undefined;\n }\n\n private bindMove() {\n document.documentElement.addEventListener(\n 'mouseup',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.addEventListener(\n 'touchend',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.addEventListener(\n 'mousemove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.addEventListener(\n 'touchmove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.addEventListener('mouseleave', this.mouseUpFunc);\n }\n\n private unbindMove() {\n document.documentElement.removeEventListener(\n 'mouseup',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'touchend',\n this.mouseUpFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'mousemove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'touchmove',\n this.mouseMoveFunc,\n true,\n );\n document.documentElement.removeEventListener(\n 'mouseleave',\n this.mouseUpFunc,\n );\n }\n}\n","import { h, VNode } from '@stencil/core';\nimport { ResizeProps, ResizeDirective, ResizeEvents } from './resizable.directive';\nimport type { CellProps } from '@type';\n\nexport const ResizableElement = (props: Partial<ResizeProps> & CellProps, children: VNode[]) => {\n const resizeEls: VNode[] = [];\n const directive =\n (props.canResize &&\n new ResizeDirective(props, e => {\n if (e.eventName === ResizeEvents.end) {\n props.onResize && props.onResize(e);\n }\n })) ||\n null;\n if (props.canResize) {\n if (props.active) {\n for (let p in props.active) {\n resizeEls.push(\n <div\n onClick={e => e.preventDefault()}\n onDblClick={e => {\n e.preventDefault();\n props.onDoubleClick?.(e);\n }}\n onMouseDown={(e: MouseEvent) => directive?.handleDown(e)}\n onTouchStart={(e: TouchEvent) => directive?.handleDown(e)}\n class={`resizable resizable-${props.active[p]}`}\n />,\n );\n }\n }\n } else {\n if (props.active) {\n for (let p in props.active) {\n resizeEls.push(\n <div\n onClick={e => e.preventDefault()}\n onTouchStart={(e: TouchEvent) => e.preventDefault()}\n onDblClick={e => {\n e.preventDefault();\n props.onDoubleClick?.(e);\n }}\n class={`no-resize resizable resizable-${props.active[p]}`}\n />,\n );\n }\n }\n }\n return (\n <div {...props} ref={(e) => e && directive?.set(e)}>\n {children}\n {resizeEls}\n </div>\n );\n};\n","import { h, VNode } from '@stencil/core';\nimport { dispatch } from '../../plugins/dispatcher';\nimport { doPropMerge } from '../data/column.service';\nimport { ResizableElement } from './resizable.element';\nimport { ResizeProps } from './resizable.directive';\nimport { CellProps, ColumnTemplateProp } from '@type';\n\ntype Props = {\n props: CellProps & Partial<ResizeProps>;\n additionalData: any;\n data?: ColumnTemplateProp;\n};\n\nexport const ON_COLUMN_CLICK = 'columnclick';\n\nexport const HeaderCellRenderer = ({ data, props, additionalData }: Props, children: VNode[]): VNode => {\n let colTemplate: VNode | VNode[] | string = data?.name || '';\n let cellProps = props;\n if (data?.columnTemplate) {\n colTemplate = data.columnTemplate(h, data, additionalData);\n }\n if (data?.columnProperties) {\n const extra = data.columnProperties(data);\n if (extra && typeof extra === 'object') {\n cellProps = doPropMerge(props, extra);\n }\n }\n return (\n <ResizableElement {...cellProps} onMouseDown={(e: MouseEvent) => {\n dispatch(e.currentTarget as HTMLElement, ON_COLUMN_CLICK, {\n data,\n event: e,\n });\n }}>\n <div class=\"header-content\">{colTemplate}</div>\n {children}\n </ResizableElement>\n );\n};\n"],"version":3}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const base_plugin = require('./base.plugin-
|
|
8
|
+
const base_plugin = require('./base.plugin-bf5f43a0.js');
|
|
9
9
|
const dispatcher = require('./dispatcher-998aa470.js');
|
|
10
|
-
const dimension_helpers = require('./dimension.helpers-
|
|
10
|
+
const dimension_helpers = require('./dimension.helpers-a6788214.js');
|
|
11
11
|
const index = require('./index-10d10c55.js');
|
|
12
|
-
const selection_helpers = require('./selection.helpers-
|
|
13
|
-
const viewport_store = require('./viewport.store-
|
|
12
|
+
const selection_helpers = require('./selection.helpers-1a8c8d49.js');
|
|
13
|
+
const viewport_store = require('./viewport.store-35a3e7ee.js');
|
|
14
14
|
require('./toNumber-838e6ff5.js');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
8
|
const index$1 = require('./index-10d10c55.js');
|
|
9
|
-
const dimension_helpers = require('./dimension.helpers-
|
|
10
|
-
const base_plugin = require('./base.plugin-
|
|
9
|
+
const dimension_helpers = require('./dimension.helpers-a6788214.js');
|
|
10
|
+
const base_plugin = require('./base.plugin-bf5f43a0.js');
|
|
11
11
|
const toNumber = require('./toNumber-838e6ff5.js');
|
|
12
|
-
const selection_helpers = require('./selection.helpers-
|
|
12
|
+
const selection_helpers = require('./selection.helpers-1a8c8d49.js');
|
|
13
13
|
const debounce = require('./debounce-e2b7c6fb.js');
|
|
14
14
|
const index = require('./index-2410bbd9.js');
|
|
15
|
-
const viewport_store = require('./viewport.store-
|
|
15
|
+
const viewport_store = require('./viewport.store-35a3e7ee.js');
|
|
16
16
|
const filter_button = require('./filter.button-afb16244.js');
|
|
17
|
-
const column_service = require('./column.service-
|
|
17
|
+
const column_service = require('./column.service-01f4a6c7.js');
|
|
18
18
|
const events = require('./events-b28cc194.js');
|
|
19
19
|
const dispatcher = require('./dispatcher-998aa470.js');
|
|
20
|
-
const headerCellRenderer = require('./header-cell-renderer-
|
|
20
|
+
const headerCellRenderer = require('./header-cell-renderer-3bc70679.js');
|
|
21
21
|
|
|
22
22
|
class ThemeCompact {
|
|
23
23
|
constructor() {
|
|
@@ -77,7 +77,7 @@ class ThemeService {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
static getTheme(theme) {
|
|
80
|
-
if (allowedThemes.indexOf(theme) > -1) {
|
|
80
|
+
if (theme && allowedThemes.indexOf(theme) > -1) {
|
|
81
81
|
return theme;
|
|
82
82
|
}
|
|
83
83
|
return DEFAULT_THEME;
|
|
@@ -588,8 +588,9 @@ class DimensionProvider {
|
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* Sets dimension data and view port coordinate
|
|
591
|
-
* @param
|
|
591
|
+
* @param itemCount
|
|
592
592
|
* @param type - dimension type
|
|
593
|
+
* @param noVirtual - disable virtual data
|
|
593
594
|
*/
|
|
594
595
|
setData(itemCount, type, noVirtual = false) {
|
|
595
596
|
this.setItemCount(itemCount, type);
|
|
@@ -1534,10 +1535,6 @@ class SortingPlugin extends base_plugin.BasePlugin {
|
|
|
1534
1535
|
constructor(revogrid, providers) {
|
|
1535
1536
|
super(revogrid, providers);
|
|
1536
1537
|
this.revogrid = revogrid;
|
|
1537
|
-
// sorting order per column
|
|
1538
|
-
this.sorting = null;
|
|
1539
|
-
// sorting function per column, multiple columns sorting supported
|
|
1540
|
-
this.sortingFunc = null;
|
|
1541
1538
|
this.sortingPromise = null;
|
|
1542
1539
|
this.postponeSort = debounce.debounce_1(async (order, comparison) => this.runSorting(order, comparison), 50);
|
|
1543
1540
|
const beforeanysource = async ({ detail: { type }, }) => {
|
|
@@ -1551,7 +1548,7 @@ class SortingPlugin extends base_plugin.BasePlugin {
|
|
|
1551
1548
|
}
|
|
1552
1549
|
};
|
|
1553
1550
|
const aftercolumnsset = async ({ detail: { order }, }) => {
|
|
1554
|
-
const columns = await this.revogrid.getColumns();
|
|
1551
|
+
const columns = (await this.revogrid.getColumns());
|
|
1555
1552
|
const sortingFunc = {};
|
|
1556
1553
|
for (let prop in order) {
|
|
1557
1554
|
const cmp = this.getComparer(ColumnDataProvider.getColumnByProp(columns, prop), order[prop]);
|
|
@@ -1597,6 +1594,7 @@ class SortingPlugin extends base_plugin.BasePlugin {
|
|
|
1597
1594
|
* If additive - add to existing sorting, multiple columns can be sorted
|
|
1598
1595
|
*/
|
|
1599
1596
|
async headerclick(column, index, additive) {
|
|
1597
|
+
var _a, _b;
|
|
1600
1598
|
let order = this.getNextOrder(column.order);
|
|
1601
1599
|
const beforeEvent = this.emit('beforesorting', { column, order, additive });
|
|
1602
1600
|
if (beforeEvent.defaultPrevented) {
|
|
@@ -1637,8 +1635,8 @@ class SortingPlugin extends base_plugin.BasePlugin {
|
|
|
1637
1635
|
this.sortingFunc = { [column.prop]: cmp };
|
|
1638
1636
|
}
|
|
1639
1637
|
else {
|
|
1640
|
-
|
|
1641
|
-
|
|
1638
|
+
(_a = this.sorting) === null || _a === void 0 ? true : delete _a[column.prop];
|
|
1639
|
+
(_b = this.sortingFunc) === null || _b === void 0 ? true : delete _b[column.prop];
|
|
1642
1640
|
}
|
|
1643
1641
|
}
|
|
1644
1642
|
this.startSorting(this.sorting, this.sortingFunc);
|
|
@@ -1654,8 +1652,8 @@ class SortingPlugin extends base_plugin.BasePlugin {
|
|
|
1654
1652
|
async sort(sorting, sortingFunc, types = ['rgRow', 'rowPinStart', 'rowPinEnd']) {
|
|
1655
1653
|
// if no sorting - reset
|
|
1656
1654
|
if (!size_1(sorting)) {
|
|
1657
|
-
this.sorting =
|
|
1658
|
-
this.sortingFunc =
|
|
1655
|
+
this.sorting = undefined;
|
|
1656
|
+
this.sortingFunc = undefined;
|
|
1659
1657
|
for (let type of types) {
|
|
1660
1658
|
const store = await this.revogrid.getSourceStore(type);
|
|
1661
1659
|
// row data
|
|
@@ -1700,10 +1698,10 @@ class SortingPlugin extends base_plugin.BasePlugin {
|
|
|
1700
1698
|
return -1 * cmp(prop, a, b);
|
|
1701
1699
|
};
|
|
1702
1700
|
}
|
|
1703
|
-
sortIndexByItems(indexes, source, sortingFunc) {
|
|
1701
|
+
sortIndexByItems(indexes, source, sortingFunc = {}) {
|
|
1704
1702
|
// if no sorting - return unsorted indexes
|
|
1705
1703
|
if (Object.entries(sortingFunc).length === 0) {
|
|
1706
|
-
//
|
|
1704
|
+
// Unsorted indexes
|
|
1707
1705
|
return [...Array(indexes.length).keys()];
|
|
1708
1706
|
}
|
|
1709
1707
|
//
|
|
@@ -1719,7 +1717,7 @@ class SortingPlugin extends base_plugin.BasePlugin {
|
|
|
1719
1717
|
* If the comparison function returns a non-zero value (sorted), it means that the items should be sorted based on the given property. In such a case, the function immediately returns the sorted value, indicating the order in which the items should be arranged.
|
|
1720
1718
|
* If none of the comparison functions result in a non-zero value, indicating that the items are equal or should remain in the same order, the function eventually returns 0.
|
|
1721
1719
|
*/
|
|
1722
|
-
const sorted = cmp(prop, itemA, itemB);
|
|
1720
|
+
const sorted = cmp === null || cmp === void 0 ? void 0 : cmp(prop, itemA, itemB);
|
|
1723
1721
|
if (sorted) {
|
|
1724
1722
|
return sorted;
|
|
1725
1723
|
}
|
|
@@ -1969,13 +1967,13 @@ class ExportFilePlugin extends base_plugin.BasePlugin {
|
|
|
1969
1967
|
/** Export file */
|
|
1970
1968
|
async exportFile(options = {}, t = ExportTypes.csv) {
|
|
1971
1969
|
const formatter = this.formatter(t, options);
|
|
1972
|
-
const blob = await this.getBlob(formatter);
|
|
1973
1970
|
// url
|
|
1974
1971
|
const URL = window.URL || window.webkitURL;
|
|
1975
1972
|
const a = document.createElement('a');
|
|
1976
1973
|
const { filename, fileKind } = formatter.options;
|
|
1977
1974
|
const name = `${filename}.${fileKind}`;
|
|
1978
|
-
const
|
|
1975
|
+
const blob = await this.getBlob(formatter);
|
|
1976
|
+
const url = blob ? URL.createObjectURL(blob) : '';
|
|
1979
1977
|
a.style.display = 'none';
|
|
1980
1978
|
a.setAttribute('href', url);
|
|
1981
1979
|
a.setAttribute('download', name);
|
|
@@ -2400,7 +2398,7 @@ class GroupingRowPlugin extends base_plugin.BasePlugin {
|
|
|
2400
2398
|
const { sourceWithGroups, depth, trimmed, oldNewIndexMap, childrenByGroup, } = column_service.gatherGrouping(source, ((_a = this.options) === null || _a === void 0 ? void 0 : _a.props) || [], Object.assign({ prevExpanded }, options));
|
|
2401
2399
|
// setup source
|
|
2402
2400
|
this.providers.data.setData(sourceWithGroups, column_service.GROUPING_ROW_TYPE, this.revogrid.disableVirtualY, { depth, customRenderer: options === null || options === void 0 ? void 0 : options.groupLabelTemplate }, true);
|
|
2403
|
-
this.updateTrimmed(trimmed, childrenByGroup, oldNewIndexes, oldNewIndexMap);
|
|
2401
|
+
this.updateTrimmed(trimmed, childrenByGroup, oldNewIndexes !== null && oldNewIndexes !== void 0 ? oldNewIndexes : {}, oldNewIndexMap);
|
|
2404
2402
|
}
|
|
2405
2403
|
/**
|
|
2406
2404
|
* Apply grouping on data set
|
|
@@ -2466,7 +2464,7 @@ class GroupingRowPlugin extends base_plugin.BasePlugin {
|
|
|
2466
2464
|
this.providers.data.setData(source, column_service.GROUPING_ROW_TYPE, this.revogrid.disableVirtualY, undefined, true);
|
|
2467
2465
|
this.updateTrimmed(undefined, undefined, oldNewIndexes);
|
|
2468
2466
|
}
|
|
2469
|
-
updateTrimmed(trimmedGroup = {}, _childrenByGroup = {}, firstLevelMap, secondLevelMap) {
|
|
2467
|
+
updateTrimmed(trimmedGroup = {}, _childrenByGroup = {}, firstLevelMap = {}, secondLevelMap) {
|
|
2470
2468
|
// map previously trimmed data
|
|
2471
2469
|
const trimemedOptionsToUpgrade = processDoubleConversionTrimmed(this.trimmed, firstLevelMap, secondLevelMap);
|
|
2472
2470
|
for (let type in trimemedOptionsToUpgrade) {
|
|
@@ -2559,11 +2557,9 @@ class ViewportService {
|
|
|
2559
2557
|
segmentSelection.setLastCell(rgRow.lastCell);
|
|
2560
2558
|
// register selection store for Row
|
|
2561
2559
|
const rowSelectionStore = this.registerRow(rgRow.position.y, rgRow.type);
|
|
2562
|
-
const rowDef = Object.assign(Object.assign({}, rgRow), { rowSelectionStore, segmentSelectionStore: segmentSelection.store, ref: (e) => config.selectionStoreConnector.registerSection(e), onSetrange: e => {
|
|
2560
|
+
const rowDef = Object.assign(Object.assign({ colType: val }, rgRow), { rowSelectionStore, segmentSelectionStore: segmentSelection.store, ref: (e) => config.selectionStoreConnector.registerSection(e), onSetrange: e => {
|
|
2563
2561
|
segmentSelection.setRangeArea(e.detail);
|
|
2564
|
-
}, onSettemprange: e => {
|
|
2565
|
-
segmentSelection.setTempArea(e.detail);
|
|
2566
|
-
}, onFocuscell: e => {
|
|
2562
|
+
}, onSettemprange: e => segmentSelection.setTempArea(e.detail), onFocuscell: e => {
|
|
2567
2563
|
// todo: multi focus
|
|
2568
2564
|
segmentSelection.clearFocus();
|
|
2569
2565
|
config.selectionStoreConnector.focus(segmentSelection, e.detail);
|
|
@@ -2613,43 +2609,27 @@ class ViewportService {
|
|
|
2613
2609
|
};
|
|
2614
2610
|
// y position for selection
|
|
2615
2611
|
let y = 0;
|
|
2616
|
-
return base_plugin.rowTypes.reduce((
|
|
2612
|
+
return base_plugin.rowTypes.reduce((result, type) => {
|
|
2617
2613
|
// filter out empty sources, we still need to return source to keep slot working
|
|
2618
2614
|
const isPresent = data.viewports[type].store.get('realCount') || type === 'rgRow';
|
|
2619
2615
|
const rgCol = Object.assign(Object.assign({}, data), { position: Object.assign(Object.assign({}, data.position), { y: isPresent ? y : selection_helpers.EMPTY_INDEX }) });
|
|
2620
|
-
|
|
2616
|
+
const partition = column_service.viewportDataPartition(rgCol, type, slots[type], type !== 'rgRow');
|
|
2617
|
+
result.push(partition);
|
|
2621
2618
|
if (isPresent) {
|
|
2622
2619
|
y++;
|
|
2623
2620
|
}
|
|
2624
|
-
return
|
|
2621
|
+
return result;
|
|
2625
2622
|
}, []);
|
|
2626
2623
|
}
|
|
2627
|
-
dataPartition(data, type, slot, fixed) {
|
|
2628
|
-
return {
|
|
2629
|
-
colData: data.colStore,
|
|
2630
|
-
viewportCol: data.viewports[data.colType].store,
|
|
2631
|
-
viewportRow: data.viewports[type].store,
|
|
2632
|
-
// lastCell is the last real coordinate + 1
|
|
2633
|
-
lastCell: column_service.getLastCell(data, type),
|
|
2634
|
-
slot,
|
|
2635
|
-
type,
|
|
2636
|
-
canDrag: !fixed,
|
|
2637
|
-
position: data.position,
|
|
2638
|
-
dataStore: data.rowStores[type].store,
|
|
2639
|
-
dimensionCol: data.dimensions[data.colType].store,
|
|
2640
|
-
dimensionRow: data.dimensions[type].store,
|
|
2641
|
-
style: fixed
|
|
2642
|
-
? { height: `${data.dimensions[type].store.get('realSize')}px` }
|
|
2643
|
-
: undefined,
|
|
2644
|
-
};
|
|
2645
|
-
}
|
|
2646
2624
|
scrollToCell(cell) {
|
|
2647
2625
|
for (let key in cell) {
|
|
2648
2626
|
const coordinate = cell[key];
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2627
|
+
if (typeof coordinate === 'number') {
|
|
2628
|
+
this.config.scrollingService.proxyScroll({
|
|
2629
|
+
dimension: key === 'x' ? 'rgCol' : 'rgRow',
|
|
2630
|
+
coordinate,
|
|
2631
|
+
});
|
|
2632
|
+
}
|
|
2653
2633
|
}
|
|
2654
2634
|
}
|
|
2655
2635
|
/**
|
|
@@ -2685,22 +2665,30 @@ class ViewportService {
|
|
|
2685
2665
|
}
|
|
2686
2666
|
getStoreCoordinateByType(colType, rowType) {
|
|
2687
2667
|
const stores = this.config.selectionStoreConnector.storesByType;
|
|
2688
|
-
|
|
2668
|
+
if (typeof stores[colType] === 'undefined' || typeof stores[rowType] === 'undefined') {
|
|
2669
|
+
return;
|
|
2670
|
+
}
|
|
2671
|
+
return {
|
|
2689
2672
|
x: stores[colType],
|
|
2690
2673
|
y: stores[rowType],
|
|
2691
2674
|
};
|
|
2692
|
-
return storeCoordinate;
|
|
2693
2675
|
}
|
|
2694
2676
|
setFocus(colType, rowType, start, end) {
|
|
2695
2677
|
var _a;
|
|
2696
|
-
|
|
2678
|
+
const coordinate = this.getStoreCoordinateByType(colType, rowType);
|
|
2679
|
+
if (coordinate) {
|
|
2680
|
+
(_a = this.config.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.focusByCell(coordinate, start, end);
|
|
2681
|
+
}
|
|
2697
2682
|
}
|
|
2698
2683
|
getSelectedRange() {
|
|
2699
2684
|
return this.config.selectionStoreConnector.selectedRange;
|
|
2700
2685
|
}
|
|
2701
2686
|
setEdit(rowIndex, colIndex, colType, rowType) {
|
|
2702
2687
|
var _a;
|
|
2703
|
-
|
|
2688
|
+
const coordinate = this.getStoreCoordinateByType(colType, rowType);
|
|
2689
|
+
if (coordinate) {
|
|
2690
|
+
(_a = this.config.selectionStoreConnector) === null || _a === void 0 ? void 0 : _a.setEditByCell(coordinate, { x: colIndex, y: rowIndex });
|
|
2691
|
+
}
|
|
2704
2692
|
}
|
|
2705
2693
|
}
|
|
2706
2694
|
|
|
@@ -2711,7 +2699,7 @@ class GridScrollingService {
|
|
|
2711
2699
|
}
|
|
2712
2700
|
async proxyScroll(e, key) {
|
|
2713
2701
|
var _a;
|
|
2714
|
-
let
|
|
2702
|
+
let newEventPromise;
|
|
2715
2703
|
let event = e;
|
|
2716
2704
|
for (let elKey in this.elements) {
|
|
2717
2705
|
// skip
|
|
@@ -2725,7 +2713,7 @@ class GridScrollingService {
|
|
|
2725
2713
|
}
|
|
2726
2714
|
for (let el of this.elements[elKey]) {
|
|
2727
2715
|
if (el.changeScroll) {
|
|
2728
|
-
|
|
2716
|
+
newEventPromise = el.changeScroll(e);
|
|
2729
2717
|
}
|
|
2730
2718
|
}
|
|
2731
2719
|
}
|
|
@@ -2735,8 +2723,9 @@ class GridScrollingService {
|
|
|
2735
2723
|
}
|
|
2736
2724
|
}
|
|
2737
2725
|
}
|
|
2726
|
+
const newEvent = await newEventPromise;
|
|
2738
2727
|
if (newEvent) {
|
|
2739
|
-
event =
|
|
2728
|
+
event = newEvent;
|
|
2740
2729
|
}
|
|
2741
2730
|
this.setViewport(event);
|
|
2742
2731
|
}
|
|
@@ -2930,14 +2919,15 @@ function isStretchPlugin(plugin) {
|
|
|
2930
2919
|
const rowDefinitionByType = (newVal = []) => {
|
|
2931
2920
|
const result = {};
|
|
2932
2921
|
for (const v of newVal) {
|
|
2933
|
-
|
|
2934
|
-
|
|
2922
|
+
let rowDefs = result[v.type];
|
|
2923
|
+
if (!rowDefs) {
|
|
2924
|
+
rowDefs = result[v.type] = {};
|
|
2935
2925
|
}
|
|
2936
2926
|
if (v.size) {
|
|
2937
|
-
if (!
|
|
2938
|
-
|
|
2927
|
+
if (!rowDefs.sizes) {
|
|
2928
|
+
rowDefs.sizes = {};
|
|
2939
2929
|
}
|
|
2940
|
-
|
|
2930
|
+
rowDefs.sizes[v.index] = v.size;
|
|
2941
2931
|
}
|
|
2942
2932
|
}
|
|
2943
2933
|
return result;
|
|
@@ -2945,11 +2935,12 @@ const rowDefinitionByType = (newVal = []) => {
|
|
|
2945
2935
|
const rowDefinitionRemoveByType = (oldVal = []) => {
|
|
2946
2936
|
const result = {};
|
|
2947
2937
|
for (const v of oldVal) {
|
|
2948
|
-
|
|
2949
|
-
|
|
2938
|
+
let rowDefs = result[v.type];
|
|
2939
|
+
if (!rowDefs) {
|
|
2940
|
+
rowDefs = result[v.type] = [];
|
|
2950
2941
|
}
|
|
2951
2942
|
if (v.size) {
|
|
2952
|
-
|
|
2943
|
+
rowDefs.push(v.index);
|
|
2953
2944
|
}
|
|
2954
2945
|
}
|
|
2955
2946
|
return result;
|
|
@@ -3122,7 +3113,7 @@ class ColumnPlugin extends base_plugin.BasePlugin {
|
|
|
3122
3113
|
}
|
|
3123
3114
|
onMouseUp(e) {
|
|
3124
3115
|
// apply new positions
|
|
3125
|
-
if (this.dragData) {
|
|
3116
|
+
if (this.dragData && this.staticDragData) {
|
|
3126
3117
|
let relativePos = getLeftRelative(e.x, this.dragData.gridRect.left, this.dragData.scrollOffset);
|
|
3127
3118
|
if (relativePos < 0) {
|
|
3128
3119
|
relativePos = 0;
|
|
@@ -3223,9 +3214,6 @@ const RevoGridComponent = class {
|
|
|
3223
3214
|
this.aftergridinit = index$1.createEvent(this, "aftergridinit", 7);
|
|
3224
3215
|
this.additionaldatachanged = index$1.createEvent(this, "additionaldatachanged", 7);
|
|
3225
3216
|
this.afterthemechanged = index$1.createEvent(this, "afterthemechanged", 7);
|
|
3226
|
-
// #endregion
|
|
3227
|
-
// #region Listeners outside scope
|
|
3228
|
-
this.clickTrackForFocusClear = null;
|
|
3229
3217
|
this.extraElements = [];
|
|
3230
3218
|
this.viewport = null;
|
|
3231
3219
|
this.isInited = false;
|
|
@@ -3397,6 +3385,7 @@ const RevoGridComponent = class {
|
|
|
3397
3385
|
* @param column - full column details to update
|
|
3398
3386
|
* @param index - virtual column index
|
|
3399
3387
|
* @param order - order to apply
|
|
3388
|
+
* @param additive - if false will replace current order
|
|
3400
3389
|
*/
|
|
3401
3390
|
async updateColumnSorting(column, index, order, additive) {
|
|
3402
3391
|
return this.columnProvider.updateColumnSorting(column, index, order, additive);
|
|
@@ -3435,8 +3424,8 @@ const RevoGridComponent = class {
|
|
|
3435
3424
|
* Get the currently focused cell.
|
|
3436
3425
|
*/
|
|
3437
3426
|
async getFocused() {
|
|
3438
|
-
var _a;
|
|
3439
|
-
return (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused();
|
|
3427
|
+
var _a, _b;
|
|
3428
|
+
return (_b = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getFocused()) !== null && _b !== void 0 ? _b : null;
|
|
3440
3429
|
}
|
|
3441
3430
|
/**
|
|
3442
3431
|
* Get size of content
|
|
@@ -3450,8 +3439,8 @@ const RevoGridComponent = class {
|
|
|
3450
3439
|
* Get the currently selected Range.
|
|
3451
3440
|
*/
|
|
3452
3441
|
async getSelectedRange() {
|
|
3453
|
-
var _a;
|
|
3454
|
-
return (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getSelectedRange();
|
|
3442
|
+
var _a, _b;
|
|
3443
|
+
return (_b = (_a = this.viewport) === null || _a === void 0 ? void 0 : _a.getSelectedRange()) !== null && _b !== void 0 ? _b : null;
|
|
3455
3444
|
}
|
|
3456
3445
|
mousedownHandle(event) {
|
|
3457
3446
|
const screenX = events.getPropertyFromEvent(event, 'screenX');
|
|
@@ -3464,7 +3453,8 @@ const RevoGridComponent = class {
|
|
|
3464
3453
|
/**
|
|
3465
3454
|
* To keep your elements from losing focus use mouseup/touchend e.preventDefault();
|
|
3466
3455
|
*/
|
|
3467
|
-
mouseupHandle(event) {
|
|
3456
|
+
async mouseupHandle(event) {
|
|
3457
|
+
var _a;
|
|
3468
3458
|
const screenX = events.getPropertyFromEvent(event, 'screenX');
|
|
3469
3459
|
const screenY = events.getPropertyFromEvent(event, 'screenY');
|
|
3470
3460
|
if (screenX === null || screenY === null) {
|
|
@@ -3475,16 +3465,16 @@ const RevoGridComponent = class {
|
|
|
3475
3465
|
}
|
|
3476
3466
|
const pos = screenX + screenY;
|
|
3477
3467
|
// detect if mousemove then do nothing
|
|
3478
|
-
if (Math.abs(this.clickTrackForFocusClear - pos) > 10) {
|
|
3468
|
+
if (Math.abs(((_a = this.clickTrackForFocusClear) !== null && _a !== void 0 ? _a : 0) - pos) > 10) {
|
|
3479
3469
|
return;
|
|
3480
3470
|
}
|
|
3481
|
-
// Check if action finished inside
|
|
3482
|
-
// if event prevented or it is current table don't clear focus
|
|
3471
|
+
// Check if action finished inside the document
|
|
3472
|
+
// if event prevented, or it is current table don't clear focus
|
|
3483
3473
|
const path = event.composedPath();
|
|
3484
3474
|
if (!path.includes(this.element) &&
|
|
3485
|
-
!path.includes(this.element.shadowRoot)) {
|
|
3475
|
+
!(this.element.shadowRoot && path.includes(this.element.shadowRoot))) {
|
|
3486
3476
|
// Perform actions if the click is outside the component
|
|
3487
|
-
this.clearFocus();
|
|
3477
|
+
await this.clearFocus();
|
|
3488
3478
|
}
|
|
3489
3479
|
}
|
|
3490
3480
|
// #endregion
|
|
@@ -3694,15 +3684,12 @@ const RevoGridComponent = class {
|
|
|
3694
3684
|
let grPlugin;
|
|
3695
3685
|
for (let p of this.internalPlugins) {
|
|
3696
3686
|
const isGrouping = p;
|
|
3697
|
-
if (isGrouping.setGrouping) {
|
|
3687
|
+
if (!!isGrouping.setGrouping) {
|
|
3698
3688
|
grPlugin = isGrouping;
|
|
3699
3689
|
break;
|
|
3700
3690
|
}
|
|
3701
3691
|
}
|
|
3702
|
-
|
|
3703
|
-
return;
|
|
3704
|
-
}
|
|
3705
|
-
grPlugin.setGrouping(newVal || {});
|
|
3692
|
+
grPlugin === null || grPlugin === void 0 ? void 0 : grPlugin.setGrouping(newVal || {});
|
|
3706
3693
|
}
|
|
3707
3694
|
/**
|
|
3708
3695
|
* Stretch Plugin Apply
|
|
@@ -3786,7 +3773,7 @@ const RevoGridComponent = class {
|
|
|
3786
3773
|
(_a = this.plugins) === null || _a === void 0 ? void 0 : _a.forEach(p => this.internalPlugins.push(new p(this.element, pluginData)));
|
|
3787
3774
|
}
|
|
3788
3775
|
removePlugins() {
|
|
3789
|
-
this.internalPlugins.forEach(p => p.destroy());
|
|
3776
|
+
this.internalPlugins.forEach(p => { var _a; return (_a = p.destroy) === null || _a === void 0 ? void 0 : _a.call(p); });
|
|
3790
3777
|
this.internalPlugins = [];
|
|
3791
3778
|
}
|
|
3792
3779
|
// #endregion
|
|
@@ -3886,7 +3873,7 @@ const RevoGridComponent = class {
|
|
|
3886
3873
|
const headerProperties = Object.assign(Object.assign({}, view.headerProp), { type: view.type, additionalData: this.additionalData, viewportCol: view.viewportCol, selectionStore: view.columnSelectionStore, canResize: this.resize, readonly: this.readonly, columnFilter: !!this.filter });
|
|
3887
3874
|
// Column headers
|
|
3888
3875
|
const dataViews = [
|
|
3889
|
-
index$1.h("revogr-header", Object.assign({ key: '
|
|
3876
|
+
index$1.h("revogr-header", Object.assign({ key: 'b08c837765cf20c88cb5b253a876f0f442c31628' }, headerProperties, { slot: column_service.HEADER_SLOT })),
|
|
3890
3877
|
];
|
|
3891
3878
|
// Render viewport data (vertical sections)
|
|
3892
3879
|
view.dataPorts.forEach(data => {
|
|
@@ -3908,11 +3895,12 @@ const RevoGridComponent = class {
|
|
|
3908
3895
|
const typeCol = 'rgCol';
|
|
3909
3896
|
const viewports = this.viewportProvider.stores;
|
|
3910
3897
|
const dimensions = this.dimensionProvider.stores;
|
|
3911
|
-
return (index$1.h(index$1.Host, { key: '
|
|
3898
|
+
return (index$1.h(index$1.Host, { key: '057a2cf1a64aaeec12d2aca17b09316fb3cbfde6' }, this.hideAttribution ? null : (index$1.h("revogr-attribution", { class: "attribution" })), index$1.h("div", { key: 'e89e3d136d756f80421f42f47e09583985edb1bc', class: "main-viewport", onClick: (e) => {
|
|
3899
|
+
var _a;
|
|
3912
3900
|
if (e.currentTarget === e.target) {
|
|
3913
|
-
this.viewport.clearEdit();
|
|
3901
|
+
(_a = this.viewport) === null || _a === void 0 ? void 0 : _a.clearEdit();
|
|
3914
3902
|
}
|
|
3915
|
-
} }, index$1.h("div", { key: '
|
|
3903
|
+
} }, index$1.h("div", { key: '177db78970907d36b8d56549386a18a683573944', class: "viewports" }, index$1.h("slot", { key: '481d830a232b1969fcaa2519a5306fafaff58fb4', name: "viewport" }), viewportSections, index$1.h("revogr-scroll-virtual", { key: '6a123b2e84bec95d7a63a73322fe167248e8415e', class: "vertical", dimension: typeRow, viewportStore: viewports[typeRow].store, dimensionStore: dimensions[typeRow].store, ref: el => this.scrollingService.registerElement(el, 'rowScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }), index$1.h(OrderRenderer, { key: 'fea1be24668f2039746fff93d0ab5e76d932a166', ref: e => (this.orderService = e) }))), index$1.h("revogr-scroll-virtual", { key: '74c6e05c81b2782320755c910b098edf8858d6db', class: "horizontal", dimension: typeCol, viewportStore: viewports[typeCol].store, dimensionStore: dimensions[typeCol].store, ref: el => this.scrollingService.registerElement(el, 'colScroll'), onScrollvirtual: e => this.scrollingService.proxyScroll(e.detail) }), this.extraElements));
|
|
3916
3904
|
}
|
|
3917
3905
|
disconnectedCallback() {
|
|
3918
3906
|
// Remove all plugins, to avoid memory leaks and unexpected behaviour when the component is removed
|