@heartlandone/vega 2.72.0-RTE-table-preview → 2.73.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/dist/cjs/{app-globals-4d077e56.js → app-globals-cc162173.js} +16 -17
- package/dist/cjs/{child-nodes-event-prevent-slimmer-871855df.js → child-nodes-event-prevent-slimmer-536d29fc.js} +1 -1
- package/dist/cjs/{code-block-bf3642ef.js → code-block-823cd481.js} +2 -16
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-ebecb74a.js → component-value-history-controller-slimmer.abstract-e2e0c6f3.js} +5 -26
- package/dist/cjs/{design-token-ac429fe9.js → design-token-11656685.js} +1 -1
- package/dist/cjs/{dto-renderer-manager-04428a77.js → dto-renderer-manager-bd2bd447.js} +2 -4
- package/dist/cjs/{element-appender-slimmer-1b062054.js → element-appender-slimmer-12f40b8b.js} +6 -6
- package/dist/cjs/{event-emit-slimmer-f7255138.js → event-emit-slimmer-6a591353.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-57525f26.js → form-field-controller-slimmer-6e3e14fd.js} +2 -2
- package/dist/cjs/{table-extension-1f162c4c.js → function-extension-78ec27e0.js} +4 -1913
- package/dist/cjs/{image-annotation-action-7fa5d30d.js → image-annotation-action-7408a4b3.js} +2 -2
- package/dist/cjs/index-58ea899e.js +4 -8
- package/dist/cjs/{index-c7fbf32b.js → index-638a0f0d.js} +1 -1
- package/dist/cjs/index.cjs.js +28 -31
- package/dist/cjs/{internal-vega-event-manager-0e1ba774.js → internal-vega-event-manager-d587a33c.js} +1 -1
- package/dist/cjs/{language-extension-6ad0b5a0.js → language-extension-716015a5.js} +4 -4
- package/dist/cjs/loader.cjs.js +9 -11
- package/dist/cjs/{public-rules-76bcf49c.js → public-rules-2950f1fc.js} +4 -4
- package/dist/cjs/{range-449bcdd0.js → range-c3c48132.js} +1 -1
- package/dist/cjs/remote-invocation-registry-fc22fdd0.js +65 -0
- package/dist/cjs/{responsive-format-facade-e61c7f7e.js → responsive-format-facade-96c5f598.js} +3 -3
- package/dist/cjs/{rich-text-editor-required-rule-40216fee.js → rich-text-editor-required-rule-4aab05a3.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-4332d1c7.js → string-input-formatter-slimmer-338bbd73.js} +2 -2
- package/dist/cjs/{style-formatter-e2a0ad27.js → style-formatter-9c42d41b.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-9fe1ab65.js → sub-state-notify-slimmer-1efa69c4.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-2f6f4d28.js → sub-state-observer-slimmer-6afa62f5.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +8 -10
- package/dist/cjs/vega-app-header-button.cjs.entry.js +28 -12
- package/dist/cjs/vega-banner.cjs.entry.js +2 -2
- package/dist/cjs/vega-box.cjs.entry.js +8 -10
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +9 -11
- package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +8 -10
- package/dist/cjs/vega-calendar_4.cjs.entry.js +6 -6
- package/dist/cjs/vega-card.cjs.entry.js +7 -9
- package/dist/cjs/vega-carousel.cjs.entry.js +7 -9
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +9 -11
- package/dist/cjs/vega-code-block.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/vega-combo-box.cjs.entry.js +6 -6
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +13 -15
- package/dist/cjs/vega-dialog_2.cjs.entry.js +16 -18
- package/dist/cjs/vega-divider.cjs.entry.js +7 -9
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +14 -15
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -9
- package/dist/cjs/vega-flex.cjs.entry.js +8 -10
- package/dist/cjs/vega-font.cjs.entry.js +7 -9
- package/dist/cjs/vega-form.cjs.entry.js +7 -7
- package/dist/cjs/vega-grid.cjs.entry.js +7 -9
- package/dist/cjs/vega-icon.cjs.entry.js +7 -9
- package/dist/cjs/vega-image-uploader.cjs.entry.js +11 -13
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-numeric.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-passcode.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +14 -15
- package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-select.cjs.entry.js +12 -13
- package/dist/cjs/vega-input.cjs.entry.js +541 -188
- package/dist/cjs/{vega-internal-event-id-a5ef414b.js → vega-internal-event-id-f2465f1b.js} +6 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +14 -16
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +8 -10
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination.cjs.entry.js +8 -10
- package/dist/cjs/vega-popover_2.cjs.entry.js +13 -14
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +10 -12
- package/dist/cjs/vega-radio_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
- package/dist/cjs/{vega-rich-text-editor_5.cjs.entry.js → vega-rich-text-editor_4.cjs.entry.js} +274 -761
- package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +11 -13
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +13 -15
- package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -12
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-table_11.cjs.entry.js +36 -37
- package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +11 -13
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -9
- package/dist/cjs/vega.cjs.js +9 -11
- package/dist/collection/collection-manifest.json +8 -16
- package/dist/collection/components/vega-app-header-button/slimmers/renderers/vega-app-header-button-dropdown-renderer.js +13 -1
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +46 -3
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +77 -7
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-value-controller.js +79 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +100 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +178 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +72 -0
- package/dist/collection/components/vega-input/vega-input.css +8 -0
- package/dist/collection/components/vega-input/vega-input.js +28 -158
- package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
- package/dist/collection/components/vega-popover/vega-popover.js +4 -4
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +1 -15
- package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +0 -8
- package/dist/collection/components/vega-rich-text-editor/public-api.js +0 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +0 -20
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +2 -23
- package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +2 -5
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +0 -4
- package/dist/collection/global/scripts/before-vega-load.js +0 -2
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -2
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +3 -0
- package/dist/collection/utils/spec-utils.js +3 -4
- package/dist/esm/{app-globals-e7a8d0cc.js → app-globals-949d2e18.js} +6 -7
- package/dist/esm/{child-nodes-event-prevent-slimmer-9ae34332.js → child-nodes-event-prevent-slimmer-e6f98de5.js} +1 -1
- package/dist/esm/{code-block-3d3a9030.js → code-block-666674d7.js} +4 -18
- package/dist/esm/{component-value-history-controller-slimmer.abstract-d84e7bab.js → component-value-history-controller-slimmer.abstract-171dda08.js} +6 -27
- package/dist/esm/{design-token-1575f6d9.js → design-token-9b510e59.js} +1 -1
- package/dist/esm/{dom-node-subject-observer-factory-f81f215f.js → dom-node-subject-observer-factory-1aaa1159.js} +1 -1
- package/dist/esm/{dto-renderer-manager-23784148.js → dto-renderer-manager-49ae5d56.js} +4 -4
- package/dist/esm/{element-appender-slimmer-1a50e184.js → element-appender-slimmer-b9890dcb.js} +4 -4
- package/dist/esm/{event-emit-slimmer-966716fa.js → event-emit-slimmer-2d791d0e.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-0020997d.js → form-field-controller-slimmer-257928c1.js} +3 -3
- package/dist/esm/{table-extension-164b0d6c.js → function-extension-8b06c6f8.js} +7 -1915
- package/dist/esm/{image-annotation-action-dba16587.js → image-annotation-action-b3eea6a2.js} +3 -3
- package/dist/esm/index-090d31ca.js +4 -8
- package/dist/esm/{index-d72e7fb3.js → index-0d487fae.js} +2 -2
- package/dist/esm/index.js +12 -14
- package/dist/esm/{internal-vega-event-manager-4f51b17c.js → internal-vega-event-manager-fdee2a0a.js} +2 -2
- package/dist/esm/{language-extension-710fe56d.js → language-extension-b3f836d4.js} +2 -2
- package/dist/esm/loader.js +10 -12
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{public-rules-522ba4b1.js → public-rules-b164e40e.js} +5 -5
- package/dist/esm/{range-cdd85d30.js → range-9cc1422b.js} +1 -1
- package/dist/esm/remote-invocation-registry-d69245c2.js +63 -0
- package/dist/esm/{responsive-format-facade-405f90d2.js → responsive-format-facade-94897ae8.js} +3 -3
- package/dist/esm/{rich-text-editor-required-rule-7d2d9615.js → rich-text-editor-required-rule-2131f21c.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-96ccc8cf.js → string-input-formatter-slimmer-3a42d9b8.js} +3 -3
- package/dist/esm/{style-formatter-52cd20f7.js → style-formatter-bb5aec96.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-97953a87.js → sub-state-notify-slimmer-71b9bbd5.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-3f2b954f.js → sub-state-observer-slimmer-41a1b380.js} +2 -2
- package/dist/esm/vega-accordion.entry.js +9 -11
- package/dist/esm/vega-app-header-button.entry.js +29 -13
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +9 -11
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +10 -12
- package/dist/esm/vega-button-group_2.entry.js +7 -7
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +9 -11
- package/dist/esm/vega-calendar_4.entry.js +7 -7
- package/dist/esm/vega-card.entry.js +8 -10
- package/dist/esm/vega-carousel.entry.js +8 -10
- package/dist/esm/vega-checkbox_2.entry.js +7 -7
- package/dist/esm/vega-chip.entry.js +10 -12
- package/dist/esm/vega-code-block.entry.js +8 -8
- package/dist/esm/vega-color-picker.entry.js +6 -6
- package/dist/esm/vega-combo-box.entry.js +7 -7
- package/dist/esm/vega-date-picker_2.entry.js +14 -16
- package/dist/esm/vega-dialog_2.entry.js +10 -12
- package/dist/esm/vega-divider.entry.js +8 -10
- package/dist/esm/vega-dropdown_5.entry.js +13 -14
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +6 -6
- package/dist/esm/vega-flag-icon.entry.js +8 -10
- package/dist/esm/vega-flex.entry.js +9 -11
- package/dist/esm/vega-font.entry.js +8 -10
- package/dist/esm/vega-form.entry.js +8 -8
- package/dist/esm/vega-grid.entry.js +8 -10
- package/dist/esm/vega-icon.entry.js +8 -10
- package/dist/esm/vega-image-uploader.entry.js +11 -13
- package/dist/esm/vega-input-credit-card.entry.js +7 -7
- package/dist/esm/vega-input-numeric.entry.js +8 -8
- package/dist/esm/vega-input-passcode.entry.js +7 -7
- package/dist/esm/vega-input-phone-number.entry.js +12 -13
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +12 -13
- package/dist/esm/vega-input.entry.js +542 -189
- package/dist/esm/{vega-internal-event-id-54ce7562.js → vega-internal-event-id-4a06d705.js} +4 -1
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +11 -13
- package/dist/esm/vega-loader-wrapper_2.entry.js +7 -9
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +9 -11
- package/dist/esm/vega-popover_2.entry.js +12 -13
- package/dist/esm/vega-progress-tracker_2.entry.js +11 -13
- package/dist/esm/vega-radio_2.entry.js +7 -7
- package/dist/esm/vega-rich-text-content.entry.js +7 -7
- package/dist/esm/{vega-rich-text-editor_5.entry.js → vega-rich-text-editor_4.entry.js} +275 -761
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +12 -14
- package/dist/esm/vega-selection-tile_2.entry.js +8 -8
- package/dist/esm/vega-sidenav_3.entry.js +10 -12
- package/dist/esm/vega-signature-capture.entry.js +11 -13
- package/dist/esm/vega-stepper.entry.js +7 -7
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +12 -13
- package/dist/esm/vega-textarea.entry.js +7 -7
- package/dist/esm/vega-time-picker_2.entry.js +12 -14
- package/dist/esm/vega-toggle-switch.entry.js +6 -6
- package/dist/esm/vega-tooltip_2.entry.js +8 -10
- package/dist/esm/vega.js +10 -12
- package/dist/sri/vega-sri-manifest.json +301 -305
- package/dist/types/components/vega-app-header-button/slimmers/renderers/vega-app-header-button-dropdown-renderer.d.ts +7 -0
- package/dist/types/components/vega-app-header-button/types.d.ts +2 -0
- package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +14 -0
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.d.ts +33 -6
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-value-controller.d.ts +32 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.d.ts +27 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +57 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +18 -0
- package/dist/types/components/vega-input/vega-input.d.ts +8 -36
- package/dist/types/components/vega-popover/vega-popover.d.ts +1 -1
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +5 -2
- package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +3 -3
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +6 -10
- package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +0 -5
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +2 -20
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +0 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +6 -19
- package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +0 -4
- package/dist/types/components.d.ts +14 -67
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +3 -0
- package/dist/types/types/components.type.d.ts +0 -1
- package/dist/types/utils/spec-utils.d.ts +1 -2
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-03e16a05.entry.js +1 -0
- package/dist/vega/p-0ad59141.entry.js +1 -0
- package/dist/vega/p-0ba0f83d.entry.js +1 -0
- package/dist/vega/p-114c6df8.entry.js +1 -0
- package/dist/vega/{p-5504ebdf.js → p-184d8443.js} +1 -1
- package/dist/vega/p-1e019406.js +1 -0
- package/dist/vega/p-1faef917.entry.js +1 -0
- package/dist/vega/p-21cba83b.entry.js +1 -0
- package/dist/vega/p-21e7808a.entry.js +1 -0
- package/dist/vega/{p-da77d71f.entry.js → p-2409a475.entry.js} +1 -1
- package/dist/vega/{p-6aa7ace9.js → p-2971b17a.js} +1 -1
- package/dist/vega/{p-31a65402.entry.js → p-2ae5ad30.entry.js} +1 -1
- package/dist/vega/p-2b20a215.entry.js +1 -0
- package/dist/vega/p-2bc4f7d9.entry.js +1 -0
- package/dist/vega/p-2e0deef6.js +1 -0
- package/dist/vega/p-2f592078.entry.js +1 -0
- package/dist/vega/{p-fb6b3b98.js → p-30e7544c.js} +1 -1
- package/dist/vega/p-3162a7fd.entry.js +1 -0
- package/dist/vega/p-3566ad76.js +1 -0
- package/dist/vega/p-38ed3d59.entry.js +1 -0
- package/dist/vega/p-3938880f.entry.js +1 -0
- package/dist/vega/p-398220f5.entry.js +1 -0
- package/dist/vega/p-40561fa0.entry.js +1 -0
- package/dist/vega/p-42a283b5.entry.js +1 -0
- package/dist/vega/{p-137e5c70.entry.js → p-44bc9ea9.entry.js} +1 -1
- package/dist/vega/{p-d6032515.entry.js → p-4957f07a.entry.js} +1 -1
- package/dist/vega/p-524ffc12.entry.js +1 -0
- package/dist/vega/{p-5b472921.js → p-59fa3f68.js} +1 -1
- package/dist/vega/p-5b71c85e.js +1 -0
- package/dist/vega/{p-5fb6a3b5.js → p-5be29f14.js} +1 -1
- package/dist/vega/p-5f09868d.entry.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-f729743c.entry.js → p-623c3911.entry.js} +1 -1
- package/dist/vega/{p-7eaa8ac0.entry.js → p-676eaf3f.entry.js} +1 -1
- package/dist/vega/p-697eb0e1.js +1 -0
- package/dist/vega/{p-2249b040.entry.js → p-6b9d2996.entry.js} +1 -1
- package/dist/vega/p-6e701542.entry.js +1 -0
- package/dist/vega/p-6e84e451.entry.js +1 -0
- package/dist/vega/{p-1815e753.entry.js → p-70b2906a.entry.js} +1 -1
- package/dist/vega/p-721b2981.entry.js +1 -0
- package/dist/vega/{p-71f2235e.js → p-74a77cad.js} +1 -1
- package/dist/vega/p-75d91ee9.entry.js +1 -0
- package/dist/vega/{p-96aa0f3b.js → p-76e6c13a.js} +1 -1
- package/dist/vega/p-77e64f26.js +1 -0
- package/dist/vega/p-79a544d6.js +1 -0
- package/dist/vega/{p-d69a6454.entry.js → p-7a8c4cf8.entry.js} +1 -1
- package/dist/vega/p-7b337fd4.entry.js +1 -0
- package/dist/vega/p-7be3aefc.entry.js +1 -0
- package/dist/vega/{p-23183d4d.js → p-7f86b3c8.js} +1 -1
- package/dist/vega/{p-11a7daad.entry.js → p-7f9acdf7.entry.js} +1 -1
- package/dist/vega/{p-1c33d25e.entry.js → p-82dbff54.entry.js} +1 -1
- package/dist/vega/{p-1282b67e.js → p-8bd496b4.js} +1 -1
- package/dist/vega/{p-b47df664.js → p-8fba7f9a.js} +1 -1
- package/dist/vega/p-94cf46ca.entry.js +1 -0
- package/dist/vega/{p-8b969a71.entry.js → p-96797fee.entry.js} +1 -1
- package/dist/vega/{p-bc2451f7.entry.js → p-9b673fd4.entry.js} +1 -1
- package/dist/vega/{p-8feb1298.entry.js → p-9d8e2939.entry.js} +1 -1
- package/dist/vega/{p-596895ec.js → p-9dfe2bbc.js} +1 -1
- package/dist/vega/{p-9e2cf904.entry.js → p-9fb71d8c.entry.js} +1 -1
- package/dist/vega/p-a125cfec.entry.js +1 -0
- package/dist/vega/p-a3c4fa30.entry.js +1 -0
- package/dist/vega/{p-883c5174.entry.js → p-a58bdbad.entry.js} +1 -1
- package/dist/vega/{p-0bca50ab.entry.js → p-a5d4d168.entry.js} +1 -1
- package/dist/vega/p-aab0deab.js +1 -0
- package/dist/vega/p-adc615a4.entry.js +1 -0
- package/dist/vega/{p-699e46d1.entry.js → p-b007d0d5.entry.js} +1 -1
- package/dist/vega/p-b406a846.entry.js +1 -0
- package/dist/vega/p-bd60c72e.entry.js +1 -0
- package/dist/vega/{p-b737b93a.entry.js → p-be0b67b8.entry.js} +1 -1
- package/dist/vega/p-bf61d136.js +1 -0
- package/dist/vega/{p-18bcfd7a.js → p-c0036e71.js} +1 -1
- package/dist/vega/p-c2ac6b47.entry.js +1 -0
- package/dist/vega/p-c4700277.entry.js +1 -0
- package/dist/vega/{p-56ce0c4b.entry.js → p-c7194674.entry.js} +1 -1
- package/dist/vega/p-c7f292dd.entry.js +1 -0
- package/dist/vega/p-ce2ffff7.js +1 -0
- package/dist/vega/p-d01fe83d.entry.js +1 -0
- package/dist/vega/p-db62b038.entry.js +1 -0
- package/dist/vega/p-dd72ad9e.js +1 -0
- package/dist/vega/p-e39aa2ea.entry.js +1 -0
- package/dist/vega/{p-263ad7b6.js → p-e88f2dc3.js} +1 -1
- package/dist/vega/{p-e8654ab5.entry.js → p-ead1da57.entry.js} +1 -1
- package/dist/vega/{p-1be7c6c4.js → p-f2c8c363.js} +1 -1
- package/dist/vega/p-f3831dc9.entry.js +1 -0
- package/dist/vega/{p-8f6d42b0.entry.js → p-f38a4be2.entry.js} +1 -1
- package/dist/vega/p-f427d88c.entry.js +1 -0
- package/dist/vega/{p-e9e1293a.entry.js → p-f6cd7a08.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/column-operation-1cac8386.js +0 -1325
- package/dist/cjs/vega-rich-text-table-selection-widget.cjs.entry.js +0 -184
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.js +0 -42
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.js +0 -25
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.js +0 -23
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.js +0 -25
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.js +0 -57
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +0 -57
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.js +0 -54
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.js +0 -42
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.js +0 -117
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.js +0 -22
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.js +0 -19
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +0 -133
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +0 -99
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.js +0 -13
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.js +0 -13
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.js +0 -18
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.js +0 -13
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.js +0 -19
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.js +0 -26
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.js +0 -13
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +0 -18
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.js +0 -13
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +0 -18
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.js +0 -13
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.js +0 -15
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.js +0 -91
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +0 -57
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +0 -120
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.js +0 -40
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +0 -117
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +0 -55
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +0 -65
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +0 -63
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +0 -59
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +0 -46
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +0 -59
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +0 -15
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +0 -22
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +0 -74
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +0 -99
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +0 -12
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +0 -15
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +0 -103
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +0 -15
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.js +0 -145
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.js +0 -78
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.js +0 -109
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.js +0 -132
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.js +0 -44
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +0 -118
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-icon.js +0 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-selection.js +0 -348
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +0 -229
- package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +0 -102
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.js +0 -36
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.js +0 -83
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.css +0 -41
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.js +0 -80
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.js +0 -20
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.js +0 -27
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.js +0 -26
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +0 -86
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +0 -101
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.js +0 -26
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.js +0 -75
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.js +0 -50
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +0 -20
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +0 -166
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.js +0 -99
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.js +0 -89
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.js +0 -79
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +0 -128
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js +0 -517
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-test-utils.js +0 -172
- package/dist/esm/column-operation-4a93bf52.js +0 -1300
- package/dist/esm/vega-rich-text-table-selection-widget.entry.js +0 -180
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.d.ts +0 -25
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.d.ts +0 -20
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.d.ts +0 -19
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.d.ts +0 -14
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.d.ts +0 -31
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +0 -28
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.d.ts +0 -27
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.d.ts +0 -19
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.d.ts +0 -27
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.d.ts +0 -20
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +0 -41
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +0 -45
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.d.ts +0 -15
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.d.ts +0 -17
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.d.ts +0 -20
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.d.ts +0 -23
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.d.ts +0 -23
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.d.ts +0 -18
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +0 -16
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.d.ts +0 -14
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +0 -16
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.d.ts +0 -16
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.d.ts +0 -64
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +0 -26
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +0 -66
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +0 -22
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +0 -78
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +0 -42
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +0 -41
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +0 -45
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +0 -42
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +0 -30
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +0 -44
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +0 -37
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +0 -51
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +0 -39
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.d.ts +0 -65
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.d.ts +0 -36
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.d.ts +0 -55
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +0 -61
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +0 -46
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +0 -31
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-icon.d.ts +0 -3
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-selection.d.ts +0 -142
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.d.ts +0 -85
- package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +0 -53
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.d.ts +0 -15
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.d.ts +0 -31
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.d.ts +0 -27
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.d.ts +0 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.d.ts +0 -11
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.d.ts +0 -11
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.d.ts +0 -28
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.d.ts +0 -36
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.d.ts +0 -11
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.d.ts +0 -36
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.d.ts +0 -11
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.d.ts +0 -46
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-dto.test.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-test-utils.d.ts +0 -11
- package/dist/vega/p-09561e90.entry.js +0 -1
- package/dist/vega/p-095c778c.entry.js +0 -1
- package/dist/vega/p-174db33b.js +0 -1
- package/dist/vega/p-194722fe.entry.js +0 -1
- package/dist/vega/p-1dd07d64.entry.js +0 -1
- package/dist/vega/p-218e29c2.js +0 -1
- package/dist/vega/p-238ec2b9.entry.js +0 -1
- package/dist/vega/p-2428457e.entry.js +0 -1
- package/dist/vega/p-2688bc6f.entry.js +0 -1
- package/dist/vega/p-26a43b4c.js +0 -1
- package/dist/vega/p-285815b5.entry.js +0 -1
- package/dist/vega/p-2c07b213.entry.js +0 -1
- package/dist/vega/p-34a1a0c5.entry.js +0 -1
- package/dist/vega/p-3f561dd5.entry.js +0 -1
- package/dist/vega/p-475f7bda.js +0 -1
- package/dist/vega/p-4785203e.entry.js +0 -1
- package/dist/vega/p-5051f0c1.entry.js +0 -1
- package/dist/vega/p-529daab4.entry.js +0 -1
- package/dist/vega/p-53c6ce54.entry.js +0 -1
- package/dist/vega/p-5585d2b5.js +0 -1
- package/dist/vega/p-58f5da43.js +0 -1
- package/dist/vega/p-5d7e908a.entry.js +0 -1
- package/dist/vega/p-63c84ff6.entry.js +0 -1
- package/dist/vega/p-6961fac0.entry.js +0 -1
- package/dist/vega/p-6b631ff1.entry.js +0 -1
- package/dist/vega/p-6ee3b103.js +0 -1
- package/dist/vega/p-776b2f3d.entry.js +0 -1
- package/dist/vega/p-7ac32e71.js +0 -1
- package/dist/vega/p-7e6c5eb8.entry.js +0 -1
- package/dist/vega/p-8014cb45.entry.js +0 -1
- package/dist/vega/p-877b36ae.entry.js +0 -1
- package/dist/vega/p-95188267.entry.js +0 -1
- package/dist/vega/p-9e545fde.entry.js +0 -1
- package/dist/vega/p-9f4364ec.entry.js +0 -1
- package/dist/vega/p-a33dc7eb.entry.js +0 -1
- package/dist/vega/p-a3a80712.js +0 -1
- package/dist/vega/p-baa44cf5.entry.js +0 -1
- package/dist/vega/p-badc14cc.entry.js +0 -1
- package/dist/vega/p-bdb5362c.entry.js +0 -1
- package/dist/vega/p-be33db7b.js +0 -1
- package/dist/vega/p-bfe01850.js +0 -1
- package/dist/vega/p-c141b10e.entry.js +0 -1
- package/dist/vega/p-c465b6dd.entry.js +0 -1
- package/dist/vega/p-d6cc786a.entry.js +0 -1
- package/dist/vega/p-d85d7862.entry.js +0 -1
- package/dist/vega/p-e47ae7bc.entry.js +0 -1
- package/dist/vega/p-e8495b6c.entry.js +0 -1
- package/dist/vega/p-e94701e2.entry.js +0 -1
- package/dist/vega/p-ef48178e.entry.js +0 -1
- package/dist/vega/p-fca7c998.entry.js +0 -1
- package/style/vega-icons.css +0 -17266
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,f as t,F as i,H as o,r,c as a,g as l}from"./p-6b2342e0.js";import{c as s,V as n,L as d,M as c,I as h}from"./p-6e1ab235.js";import{m as p,s as b}from"./p-6bd5c49b.js";import{V as v,I as u}from"./p-d849e0f5.js";import{g as f}from"./p-bf19682d.js";import{C as w}from"./p-2d0d575f.js";import{l as g,m,n as y,o as x,S as R}from"./p-a528714c.js";import{O as S}from"./p-331a62d5.js";import{f as C,a as k,l as j}from"./p-d9671d27.js";import{d as E,D as O,a as T,h as D,U as L,e as A,Y as M,Z as N,_ as P,$ as W,a0 as I,a1 as _}from"./p-1282b67e.js";import{r as z}from"./p-be33db7b.js";import{L as K,M as B,N as V,O as $,P as G,Q as F,R as X}from"./p-7ac32e71.js";import{R as H}from"./p-18bcfd7a.js";import{i as U,u as Y,ag as q}from"./p-161b9c5b.js";import{s as Q}from"./p-519a7d55.js";import{g as Z}from"./p-a4670e23.js";import{P as J,g as ee}from"./p-10ac8b57.js";import{M as te}from"./p-78a57a17.js";import{T as ie}from"./p-52b8f2d2.js";import{c as oe}from"./p-5fb6a3b5.js";import{C as re}from"./p-5504ebdf.js";import{c as ae}from"./p-1be7c6c4.js";import{I as le}from"./p-b28d4f7d.js";import{T as se}from"./p-75f981ce.js";import{S as ne}from"./p-5b472921.js";import{F as de}from"./p-e77a83e4.js";import{B as ce}from"./p-ed45b3b6.js";import{o as he}from"./p-218e29c2.js";import"./p-5f377954.js";import{a as pe}from"./p-8c9ea6f4.js";import"./p-5d676a94.js";import"./p-f69f84a7.js";import"./p-475f7bda.js";import"./p-4866e390.js";import"./p-58f5da43.js";import{c as be}from"./p-86194314.js";import{c as ve}from"./p-1ec763ab.js";import{c as ue}from"./p-613ddaab.js";import"./p-262ec334.js";import"./p-40f39194.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-d884c644.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-174db33b.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-ef9cbad1.js";import"./p-a7b5f497.js";import"./p-1bc5b3bc.js";import"./p-02841589.js";class fe{constructor(e,t){this.size=0,this.set=new Set,e&&(this.set=e,this.size=e.size),t&&(this.onMutate=t)}onMutate(e){}add(...e){return this.withMutation((t=>{e.forEach((e=>t.add(e)))}))}clear(){this.withMutation((e=>e.clear()))}delete(e){return this.withMutation((t=>{t.delete(e)}))}withMutation(e){const t=new Set(this.set);e(t);const i=new fe(t,this.onMutate);return this.onMutate(i),i}has(e){return this.set.has(e)}toArray(){return[...this.set]}}const we=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];var ge=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class me extends n{constructor(){super(...arguments),this.renderTableCellContent=(t,i,o)=>{var r,a;const l=f(i,t.prop),s=this.vegaTableDataSourceController.getRecordKey(i),n=!this.vegaTableDataSourceController.getDataSource().find((e=>this.vegaTableDataSourceController.getRecordKey(e)===s)),c=this.vegaTableEditableController.isEditing(s),h=this.vegaTableEditableController.getRowFormRefMap().get(s);if(c&&h&&t.renderFormItem)return t.renderFormItem(e,t.prop?l:s,i,o,{rowForm:h,isNewRow:n});if(c&&h&&t.editable){const e=null===(r=t.formItemProps)||void 0===r?void 0:r.call(t,h,{record:i,index:o}),s=Object.assign({dataVegaForm:(null==e?void 0:e.dataVegaForm)||t.prop,size:"small",value:l},null===(a=t.formItemProps)||void 0===a?void 0:a.call(t,h,{record:i,index:o}));return this.generateEditComponentByType(t.formItemType,s)}return t.render?t.render(e,t.prop?l:s,i,o):"string"==typeof l||"number"==typeof l?String(l):null==l?"":void d.error(`Column ${t.prop}'s value has a wrong type(${typeof i[t.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(t="input",i)=>{const o=`vega-${t}`,{dataVegaForm:r}=i,a=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(i[o[r]]=e[o[r]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return e(o,Object.assign(Object.assign({},a),{"data-vega-form":r}));d.error(`Type must be one of the form field types. [${we.join(",")}]`)},this.isVegaTableEditableFieldType=e=>e.toUpperCase().startsWith("VEGA")&&new RegExp(we.join("|"),"i").test(e)}render(t,i,o){const r=this.columns.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key));if(r){const a=this.vegaTableDataSourceController.getRecordKey(i);return e("vega-table-cell",{key:`${a}_${r.key||r.prop}`,textAlign:r.align,breakpoint:r.breakpoint,overflow:r.overflow,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,t)}},this.renderTableCellContent(r,i,o))}return e("vega-table-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,t)}})}}ge([s()],me.prototype,"rowKey",void 0),ge([s()],me.prototype,"columns",void 0),ge([s()],me.prototype,"vegaTableDataSourceController",void 0),ge([s()],me.prototype,"vegaTableEditableController",void 0),ge([s()],me.prototype,"vegaTableRenderInputController",void 0);var ye=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class xe extends n{constructor(){super(...arguments),this.toggleExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!this.isExpanded(e))},this.openExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!0)},this.closeExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!1)},this.closeAllExpandRow=()=>{this.rowExpandable&&this.handleCloseAllExpandRow()},this.isExpanded=e=>this.expandedRowKeySet.has(e),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach((e=>{w.notify(g,{host:this.host,rowKey:e,expanded:!1})})),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(e,t)=>{t?this.expandedRowKeySet.add(e):this.expandedRowKeySet.delete(e),w.notify(g,{host:this.host,rowKey:e,expanded:t})},this.initMutationObserver=()=>{this.mutationObserver=new MutationObserver((async e=>{this.expandRowSlotGuard(e)&&t(this.host)})),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})},this.expandRowSlotGuard=e=>{const t=this.vegaTableDataSourceController.getCurrentData().map((e=>`${xe.expandRowSlotNamePrefix}${this.vegaTableDataSourceController.getRecordKey(e)}`)),i=[];for(let o=0;o<e.length;o++)Array.from(e[o].addedNodes).filter((e=>e instanceof HTMLElement&&e.getAttribute("slot"))).forEach((e=>{e.removeAttribute("hidden");const o=e.getAttribute("slot");t.includes(o)?i.push(e):d.warn(`The vega-table expand row slot name '${o}' is not as expected, it must be like: vega-table-expand-row-[rowKey]`)}));return i.length>0}}connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),w.unregister(g,this.expandObserver),z.unRegister(E.getSubject(this.host,K))}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.handleCloseAllExpandRow()}initRowExpandObserver(){this.expandObserver=new S(this.isAcceptableTableRowObserver.bind({host:this.host}),(e=>{e.expanded?this.expandedRowKeySet.add(e.rowKey):this.expandedRowKeySet.delete(e.rowKey)})),w.register(g,this.expandObserver),z.register(E.getSubject(this.host,K),(({rowKey:e,expanded:t})=>this.rowExpandEventEmitter.emit({record:this.vegaTableDataSourceController.getRecordByKey(e),expanded:t})))}isAcceptableTableRowObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}xe.expandRowSlotNamePrefix="vega-table-expand-row-",ye([s()],xe.prototype,"host",void 0),ye([s()],xe.prototype,"expandedRowKeySet",void 0),ye([s()],xe.prototype,"rowExpandable",void 0),ye([s()],xe.prototype,"rowExpandEventEmitter",void 0),ye([s()],xe.prototype,"vegaTableDataSourceController",void 0),ye([c("connectedCallback")],xe.prototype,"connectedCallback",null),ye([c("disconnectedCallback")],xe.prototype,"disconnectedCallback",null),ye([c("componentDidLoad")],xe.prototype,"componentDidLoad",null),ye([c("toggleExpandRow")],xe.prototype,"toggleExpandRow",void 0),ye([c("openExpandRow")],xe.prototype,"openExpandRow",void 0),ye([c("closeExpandRow")],xe.prototype,"closeExpandRow",void 0),ye([c("closeAllExpandRow")],xe.prototype,"closeAllExpandRow",void 0),ye([c("watchRowExpandable")],xe.prototype,"watchRowExpandable",null);var Re=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Se extends n{constructor(){super(...arguments),this.handleRowSelect=(e,t)=>{const i=this.vegaTableDataSourceController.getRecordKey(t);let o=!1;e?this.selectedRowKeySet.has(i)||(this.selectedRowKeySet.add(i),o=!0):this.selectedRowKeySet.has(i)&&(this.selectedRowKeySet.delete(i),o=!0),o&&this.selectChangeEventEmitter.emit({selected:e,record:t,selectedRows:this.getSelectedRecords()})},this.getRowSelectionType=()=>{if(this.rowSelection)return this.rowSelection.type||"multiple"},this.handleSingleRowSelect=e=>{const t=this.vegaTableDataSourceController.getRecordKey(e);this.isChecked(t)?this.handleRowSelect(!1,e):(this.selectedRowKeySet.clear(),this.handleRowSelect(!0,e))},this.isChecked=e=>this.selectedRowKeySet.has(e),this.handleSelectAll=e=>{if(e){const e=this.vegaTableDataSourceController.getAllRecordKeys();this.selectedRowKeySet.add(...e.filter((e=>!this.selectedRowKeySet.has(e))))}else this.isCheckedAll()&&this.selectedRowKeySet.clear()},this.isCheckedAll=()=>this.selectedRowKeySet.size>0&&this.vegaTableDataSourceController.getCurrentData().every((e=>this.selectedRowKeySet.has(this.vegaTableDataSourceController.getRecordKey(e)))),this.setupRowSelection=e=>{this.rowSelection=Object.assign({hideSelectAll:!1,type:"multiple"},e)},this.getSelectedRecords=()=>this.selectedRowKeySet.toArray().map(this.vegaTableDataSourceController.getRecordByKey).filter(Boolean),this.syncUpSelectedKeySetWithCurrentData=e=>{this.selectedRowKeySet.withMutation((t=>{t.clear(),e.forEach((e=>{const i=this.vegaTableDataSourceController.getRecordKey(e);this.selectedRowKeySet.has(i)&&t.add(i)}))}))}}connectedCallback(){this.initRowSelection(),this.initRowClickObserver(),this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver),w.unregister(y,this.rowSelectionAllObserver),w.unregister(x,this.rowClickObserver),z.unRegister(E.getSubject(this.host,B)),z.unRegister(E.getSubject(this.host,V))}componentWillLoad(){this.rowSelection&&this.setupRowSelection(this.rowSelection)}watchRowSelection(e,t){(null==t?void 0:t.type)!==(null==e?void 0:e.type)&&this.clearSelection()}setSelection(e){"single"===this.getRowSelectionType()&&e.splice(1),this.selectedRowKeySet.toArray().forEach((e=>{w.notify(m,{host:this.host,rowKey:e,checked:!1})})),this.selectedRowKeySet.clear(),e.forEach((e=>{this.vegaTableDataSourceController.getRecordByKey(e)&&(this.selectedRowKeySet.add(e),w.notify(m,{host:this.host,rowKey:e,checked:!0}))}))}watchCurrentData(e){this.syncUpSelectedKeySetWithCurrentData(e)}clearSelection(){this.selectedRowKeySet.clear(),w.notify(y,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){w.notify(y,{host:this.host,checked:this.isCheckedAll(),noneChecked:0===this.selectedRowKeySet.size}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}isAcceptableRowSelectionAllObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-HEAD-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}initRowSelection(){this.rowSelectionObserver=new S(this.isAcceptableRowSelectionObserver.bind(this),(e=>{const{rowKey:t,checked:i}=e,o=this.vegaTableDataSourceController.getRecordByKey(t);this.handleRowSelect(i,o)})),w.register(m,this.rowSelectionObserver),z.register(E.getSubject(this.host,B),(({rowKey:e,checked:t})=>this.rowSelectEventEmitter.emit({selected:t,record:this.vegaTableDataSourceController.getRecordByKey(e),selectedRows:this.getSelectedRecords()}))),z.register(E.getSubject(this.host,V),(({checked:e})=>this.rowSelectAllEventEmitter.emit({selected:e,selectedRows:this.getSelectedRecords(),changedRows:e?this.vegaTableDataSourceController.getCurrentData().filter((e=>!this.selectedRowKeySet.has(e.key))):this.getSelectedRecords()})))}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(this.isAcceptableRowSelectionAllObserver.bind(this),(e=>{this.handleSelectAll(e.checked)})),w.register(y,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new S(this.isAcceptableRowClickObserver.bind(this),(e=>{if("single"===this.getRowSelectionType()){const t=this.vegaTableDataSourceController.getRecordByKey(e.rowKey);this.handleSingleRowSelect(t)}})),w.register(x,this.rowClickObserver)}isAcceptableRowClickObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}Re([s()],Se.prototype,"host",void 0),Re([s({writable:!0})],Se.prototype,"isSelectedAll",void 0),Re([s()],Se.prototype,"selectedRowKeySet",void 0),Re([s({writable:!0})],Se.prototype,"rowSelection",void 0),Re([s()],Se.prototype,"rowKey",void 0),Re([s()],Se.prototype,"selectChangeEventEmitter",void 0),Re([s()],Se.prototype,"selectAllChangeEventEmitter",void 0),Re([s()],Se.prototype,"vegaTableDataSourceController",void 0),Re([s()],Se.prototype,"rowSelectEventEmitter",void 0),Re([s()],Se.prototype,"rowSelectAllEventEmitter",void 0),Re([c("connectedCallback")],Se.prototype,"connectedCallback",null),Re([c("disconnectedCallback")],Se.prototype,"disconnectedCallback",null),Re([c("componentWillLoad")],Se.prototype,"componentWillLoad",null),Re([c("watchRowSelection")],Se.prototype,"watchRowSelection",null),Re([c("setSelection")],Se.prototype,"setSelection",null),Re([c("watchCurrentData")],Se.prototype,"watchCurrentData",null),Re([c("clearSelection")],Se.prototype,"clearSelection",null),Re([c("getSelection")],Se.prototype,"getSelection",null),Re([c("watchSelectedRowKeySet")],Se.prototype,"watchSelectedRowKeySet",null),Re([c("watchSelectedAll")],Se.prototype,"watchSelectedAll",null);var Ce=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ke extends n{constructor(){super(...arguments),this.getRecordKey=e=>null!=e[this.rowKey]?String(e[this.rowKey]):"",this.getRecordByKey=e=>this.currentData.find((t=>this.getRecordKey(t)===e)),this.setCurrentData=e=>{this.currentData=this.tableDataValidation(e)?e:[]}}componentWillLoad(){this.vegaTableSortController.syncSortOrder(),this.syncCurrentData()}watchSortersMap(){this.syncCurrentData()}watchDataSource(){this.syncCurrentData()}getAllRecordKeys(){return this.currentData.map(this.getRecordKey)}getDataSource(){return this.dataSource}setDataSource(e){this.dataSource=e}getCurrentData(){return this.currentData}isCurrentDataEmpty(){return 0===this.currentData.length}tableDataValidation(e){return!e.some((e=>!this.getRecordKey(e)))||(d.error('Each item in dataSource should have a unique "key" prop.'," Otherwise, you should specify the primary key of dataSource item via rowKey."," For more details, please refer to: https://heartlandpayments.github.io/Vega/?path=/docs/components-table-v2--basic-table#rowkey"),!1)}syncCurrentData(){if(this.isTemplateRenderMode)return;const e=this.sortersMap.size>0?this.columns.filter((e=>e.sorter&&"event"!==e.sorter&&this.sortersMap.has(e.prop))):[];this.setCurrentData(e.length>0?this.vegaTableSortController.sortData(this.dataSource,Array.from(this.sortersMap.values())):this.dataSource)}}Ce([s()],ke.prototype,"rowKey",void 0),Ce([s({writable:!0})],ke.prototype,"currentData",void 0),Ce([s({writable:!0})],ke.prototype,"dataSource",void 0),Ce([s()],ke.prototype,"columns",void 0),Ce([s()],ke.prototype,"sortersMap",void 0),Ce([s()],ke.prototype,"vegaTableSortController",void 0),Ce([s()],ke.prototype,"vegaTableRenderer",void 0),Ce([s()],ke.prototype,"isTemplateRenderMode",void 0),Ce([c("componentWillLoad")],ke.prototype,"componentWillLoad",null),Ce([c("watchSortersMap")],ke.prototype,"watchSortersMap",null),Ce([c("watchDataSource")],ke.prototype,"watchDataSource",null);var je=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ee extends n{constructor(){super(...arguments),this.renderTableBody=t=>{const o=this.vegaTableDataSourceController.getCurrentData();return e("vega-table-body",null,o.map(((r,a)=>{const l=this.vegaTableDataSourceController.getRecordKey(r),s=this.vegaTablePaginationController.isRowVisible(a);return e(i,null,this.vegaTableRowRenderer.render({rowKey:l,index:a,record:r,isVisibleInCurrentPage:s,isLastRow:a===o.length-1},t),this.rowExpandable&&e("vega-table-expand-row",{class:{"v-hidden":!s},key:`vega-table-expanded-row-${l}`,rowKey:l,striped:this.striped&&a%2==1},e("slot",{name:`${xe.expandRowSlotNamePrefix}${l}`})))})))}}getTableFormRef(){return this.tableFormRef}render(){const t=this.columnStructureModel.generateColumnConfigByLeaves(this.columns).some((e=>null==e?void 0:e.editable));return t?e("vega-form",{ref:e=>this.tableFormRef=e},this.renderTableBody(t)):this.renderTableBody(!1)}}je([s()],Ee.prototype,"striped",void 0),je([s()],Ee.prototype,"rowDivider",void 0),je([s()],Ee.prototype,"columns",void 0),je([s()],Ee.prototype,"currentBreakpoint",void 0),je([s()],Ee.prototype,"rowExpandable",void 0),je([s()],Ee.prototype,"rowClickable",void 0),je([s()],Ee.prototype,"vegaTableDataSourceController",void 0),je([s()],Ee.prototype,"vegaTablePaginationController",void 0),je([s()],Ee.prototype,"vegaTableRowSelectionController",void 0),je([s()],Ee.prototype,"vegaTableRowRenderer",void 0),je([s()],Ee.prototype,"columnStructureModel",void 0);var Oe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Te extends n{constructor(){super(...arguments),this.renderHeaderRows=()=>{const t=[];let i=this.vegaTableRenderInputController.getHeadRenderInputs();for(;i.length>0;)t.push(i),i=i.flatMap((e=>e.children));return t.map((t=>{var i;return e("vega-table-head-row",{hideSelectAll:null===(i=this.rowSelection)||void 0===i?void 0:i.hideSelectAll,ref:e=>{this.vegaTableRenderInputController.addHeadRowRenderInputMap(e,t)}},t.map((e=>{if(e.label)return this.renderGroupCell(e);{const t=this.columns.find((t=>t.key===e.key||t.prop===e.key||t.label===e.key));return this.renderCell(e,t)}})))}))},this.renderGroupCell=t=>e("vega-table-head-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(e,t)}},t.label),this.renderCell=(t,i)=>{var o;return i?e("vega-table-head-cell",{key:i.key||i.prop,textAlign:i.align,sorter:i.sorter,sortOrder:null===(o=this.sortersMap.get(i.prop))||void 0===o?void 0:o.getSortOrder(),sortConfig:this.sortConfig,breakpoint:i.breakpoint,ref:e=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(e,t),O.addUniqueObserverToNode(e,T,(e=>{this.vegaTableSortController.handleHeadSortClick(i,e.detail.sortOrder)}))}},i.label):e("vega-table-head-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(e,t)}})}}render(){return this.showHeader&&e("vega-table-head",null,this.renderHeaderRows())}}Oe([s()],Te.prototype,"showHeader",void 0),Oe([s()],Te.prototype,"sortersMap",void 0),Oe([s()],Te.prototype,"sortConfig",void 0),Oe([s()],Te.prototype,"columns",void 0),Oe([s()],Te.prototype,"rowSelection",void 0),Oe([s()],Te.prototype,"vegaTableSortController",void 0),Oe([s()],Te.prototype,"vegaTableDataSourceController",void 0),Oe([s()],Te.prototype,"vegaTableRenderInputController",void 0);var De=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Le extends n{constructor(){super(...arguments),this.paginationRefCallback=e=>{O.addUniqueObserverToNode(e,D,this.handlePaginationChange),O.addUniqueObserverToNode(e,L,this.handlePaginationPageSizeChange)},this.handlePaginationChange=e=>{var t,i;this.vegaTablePaginationController.setCurrentPage(e.detail);const o=new CustomEvent("vegaChange",{detail:e.detail});null===(i=(t=this.pagination).vegaChange)||void 0===i||i.call(t,o)},this.handlePaginationPageSizeChange=e=>{var t,i;this.vegaTablePaginationController.setPageSize(e.detail);const o=new CustomEvent("vegaPageSizeChange",{detail:e.detail});null===(i=(t=this.pagination).vegaPageSizeChange)||void 0===i||i.call(t,o)},this.getPaginationConfig=()=>{const e=this.pagination,{position:t}=e,i=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(i[o[r]]=e[o[r]])}return i}(e,["position"]),o=H.formatCustom(this.pagination.extensions);return Object.assign(Object.assign({},i),{position:(null==o?void 0:o.length)>1?void 0:t||"bottom-center",pageSize:this.pageSize})}}render(){if(!this.pagination)return;const{pageSize:t,position:i,extensions:o,pageSizeSelectorOptions:r}=this.getPaginationConfig(),a=["vega-table-pagination-container",i],l=this.vegaTableDataSourceController.getCurrentData().length;return l>0&&e("div",{class:k(a)},e("vega-pagination",{total:l,pageSize:t,current:this.currentPage,extensions:o,pageSizeSelectorOptions:r,ref:this.paginationRefCallback}))}}De([s()],Le.prototype,"pagination",void 0),De([s()],Le.prototype,"pageSize",void 0),De([s()],Le.prototype,"currentPage",void 0),De([s()],Le.prototype,"vegaTablePaginationController",void 0),De([s()],Le.prototype,"vegaTableDataSourceController",void 0);const Ae=({scrollConfig:t={},ref:i,onScroll:o},r)=>{const{maxHeight:a}=t,l=U(a);return e("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof a?`${a}px`:a},ref:i,onScroll:e=>{if(!l)return;const t=e.target;0!==t.scrollTop?(t.scrollTop>0&&!t.classList.contains("scrolled")&&t.classList.add("scrolled"),o(e)):t.classList.remove("scrolled")}},r)};var Me=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ne extends n{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)},this.notifyContentScrolling=()=>{this.isTemplateRenderMode&&w.notify(R,{host:this.host})}}watchCurrentPage(){this.scrollContainerToTop()}render(t){return e(Ae,{scrollConfig:this.scrollConfig,ref:e=>this.setTableScrollContainerRef(e),onScroll:()=>this.notifyContentScrolling()},t)}setTableScrollContainerRef(e){this.tableScrollContainerRef=e}}Me([s()],Ne.prototype,"scrollConfig",void 0),Me([s()],Ne.prototype,"host",void 0),Me([s()],Ne.prototype,"isTemplateRenderMode",void 0),Me([c("watchCurrentPage")],Ne.prototype,"watchCurrentPage",null);var Pe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class We extends n{constructor(){super(...arguments),this.renderInternalTable=()=>{const t=this.columns.some((e=>e.overflow))||Array.from(this.host.querySelectorAll("vega-table-cell")).some((e=>e.overflow));return e("table",{class:{"v-table-fixed":t}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],(this.dataSource.length>0||this.editingRows.size>0)&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&e("slot",null))},this.renderEmpty=()=>this.vegaTableDataSourceController.isCurrentDataEmpty()&&this.emptyDescription&&e("div",{class:"vega-table-empty-description"},this.translationSlimmer.t(this.emptyDescription))}render(){const t=k([this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",`density-${H.formatCustom(this.density)}`,this.striped&&"striped",this.columnStructureModel.hasGroupColumn()&&"is-group-table",(this.columnStructureModel.hasLeftPinnedColumn()||this.columnStructureModel.hasRightPinnedColumn())&&"is-pinned-table"]);return Q(e(o,{class:t},this.vegaTableScrollContainerRenderer.render(this.renderInternalTable()),this.vegaTablePaginationRenderer.render(),this.renderEmpty()),this.host)}}Pe([s()],We.prototype,"host",void 0),Pe([s()],We.prototype,"columns",void 0),Pe([s()],We.prototype,"emptyDescription",void 0),Pe([s()],We.prototype,"rowDivider",void 0),Pe([s()],We.prototype,"columnDivider",void 0),Pe([s()],We.prototype,"density",void 0),Pe([s()],We.prototype,"dataSource",void 0),Pe([s()],We.prototype,"striped",void 0),Pe([s()],We.prototype,"columnStructureModel",void 0),Pe([s()],We.prototype,"vegaTableHeaderRenderer",void 0),Pe([s()],We.prototype,"vegaTableBodyRenderer",void 0),Pe([s()],We.prototype,"vegaTableColGroupRenderer",void 0),Pe([s()],We.prototype,"vegaTableScrollContainerRenderer",void 0),Pe([s()],We.prototype,"vegaTablePaginationRenderer",void 0),Pe([s()],We.prototype,"vegaTableDataSourceController",void 0),Pe([s()],We.prototype,"translationSlimmer",void 0),Pe([s({writable:!0})],We.prototype,"vegaTableChildrenController",void 0),Pe([s()],We.prototype,"isTemplateRenderMode",void 0),Pe([s()],We.prototype,"editingRows",void 0);var Ie=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class _e extends n{componentWillLoad(){var e,t;this.currentPage=(null===(e=this.pagination)||void 0===e?void 0:e.current)||1,this.pageSize=(null===(t=this.pagination)||void 0===t?void 0:t.pageSize)||10}watchPagination(){if(this.pagination){const{pageSize:e,current:t}=this.pagination;e>0&&(this.pageSize=e),t>0&&(this.currentPage=t)}}setPageSize(e){this.pageSize=e}setCurrentPage(e){this.currentPage=e}isRowVisible(e){if(!this.pagination)return!0;const t=this.pageSize,i=this.currentPage;return e>=(i-1)*t&&e<i*t}}Ie([s()],_e.prototype,"pagination",void 0),Ie([s({writable:!0})],_e.prototype,"pageSize",void 0),Ie([s({writable:!0})],_e.prototype,"currentPage",void 0),Ie([c("componentWillLoad")],_e.prototype,"componentWillLoad",null),Ie([c("watchPagination")],_e.prototype,"watchPagination",null);var ze=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ke extends n{constructor(){super(...arguments),this.rowFormRefMap=new Map}getRowFormRefMap(){return this.rowFormRefMap}async saveAllEditRows(){if(!this.canMethodBeInvokedInCurrentState("saveAllEditRows"))return;const e=this.vegaTableDataSourceController.getCurrentData().slice();for(const t of this.editingRows.toArray()){const i=await this.getRowData(t),o=e.findIndex((e=>this.vegaTableDataSourceController.getRecordKey(e)===t));o>-1&&e.splice(o,1,i)}this.vegaTableDataSourceController.setDataSource([...e]),this.stopAllRowEditMode()}stopAllRowEditMode(){this.canMethodBeInvokedInCurrentState("stopAllRowEditMode")&&this.editingRows.clear()}watchDataSource(e){this.isEditableTable()&&this.getEditingRowsKey().forEach((t=>{e.find((e=>e.key===t))||this.stopRowEditMode(t)}))}async saveEditRow(e){if(!this.canMethodBeInvokedInCurrentState("saveEditRow"))return;const t=await this.getRowData(e),i=this.vegaTableDataSourceController.getCurrentData().slice(),o=i.findIndex((t=>this.vegaTableDataSourceController.getRecordKey(t)===e));o>-1&&(i.splice(o,1,t),this.vegaTableDataSourceController.setDataSource([...i])),this.stopRowEditMode(e)}stopRowEditMode(e){this.canMethodBeInvokedInCurrentState("stopRowEditMode")&&this.editingRows.delete(e)}removeRow(e){this.canMethodBeInvokedInCurrentState("removeRow")&&this.vegaTableDataSourceController.setDataSource(this.vegaTableDataSourceController.getCurrentData().filter((t=>this.vegaTableDataSourceController.getRecordKey(t)!==e)))}startRowEditMode(e){this.canMethodBeInvokedInCurrentState("startRowEditMode")&&this.editingRows.add(e)}addNewRow(e={}){var t;if(!this.canMethodBeInvokedInCurrentState("addNewRow"))return;const i=(null===(t=e[this.rowKey])||void 0===t?void 0:t.toString())||Z(),o=Object.assign({},e);return o[this.rowKey]=i,this.vegaTableDataSourceController.setCurrentData([...this.vegaTableDataSourceController.getCurrentData(),o]),this.editingRows.add(i),i}async getRowsData(){if(!this.canMethodBeInvokedInCurrentState("getRowsData"))return;const e=this.vegaTableBodyRenderer.getTableFormRef(),t=e?await e.getValue():[];return[...this.vegaTableDataSourceController.getCurrentData().map((e=>{const i=t[`${Ke.rowFormKeyPrefix}${this.vegaTableDataSourceController.getRecordKey(e)}`];return Object.assign(Object.assign({},e),i)}))]}getEditingRowsKey(){if(this.canMethodBeInvokedInCurrentState("getEditingRowsKey"))return this.editingRows.toArray()}getFormRef(e){if(this.canMethodBeInvokedInCurrentState("getFormRef"))return e?this.rowFormRefMap.get(e):this.vegaTableBodyRenderer.getTableFormRef()}async getRowData(e){if(!this.canMethodBeInvokedInCurrentState("getRowData"))return;const t=await this.rowFormRefMap.get(e).getValue();return Object.assign(Object.assign({},this.vegaTableDataSourceController.getRecordByKey(e)),t)}isEditing(e){return this.editingRows.has(e)}isEditableTable(){return this.columns.some((e=>e.editable))}canMethodBeInvokedInCurrentState(e){return!!this.isEditableTable()||(d.warn(`Method ${e} only works with editable tables`),!1)}}Ke.rowFormKeyPrefix="vega-table-row-form-",ze([s()],Ke.prototype,"editingRows",void 0),ze([s()],Ke.prototype,"rowKey",void 0),ze([s()],Ke.prototype,"columns",void 0),ze([s()],Ke.prototype,"vegaTableDataSourceController",void 0),ze([s()],Ke.prototype,"vegaTableBodyRenderer",void 0),ze([c("saveAllEditRows")],Ke.prototype,"saveAllEditRows",null),ze([c("stopAllRowEditMode")],Ke.prototype,"stopAllRowEditMode",null),ze([c("watchDataSource")],Ke.prototype,"watchDataSource",null),ze([c("saveEditRow")],Ke.prototype,"saveEditRow",null),ze([c("stopRowEditMode")],Ke.prototype,"stopRowEditMode",null),ze([c("removeRow")],Ke.prototype,"removeRow",null),ze([c("startRowEditMode")],Ke.prototype,"startRowEditMode",null),ze([c("addNewRow")],Ke.prototype,"addNewRow",null),ze([c("getRowsData")],Ke.prototype,"getRowsData",null),ze([c("getEditingRowsKey")],Ke.prototype,"getEditingRowsKey",null),ze([c("getFormRef")],Ke.prototype,"getFormRef",null),ze([c("getRowData")],Ke.prototype,"getRowData",null);class Be{constructor(e,t,i){this.prop=e,this.order=t,this.sorter=i}sort(e,t){const i=this.sorter(e,t);if(0!==i)return"asc"===this.order?i:-i}toExternalFormat(){return{prop:this.prop,order:this.order}}getSortOrder(){return this.order}}var Ve=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class $e extends n{watchColumns(){this.syncSortOrder()}handleHeadSortClick(e,t){"single"===this.sortConfig.type&&this.sortersMap.clear(),t?this.sortersMap.set(e.prop,new Be(e.prop,t,e.sorter)):this.sortersMap.has(e.prop)&&this.sortersMap.delete(e.prop),"event"!==e.sorter&&this.vegaTableDataSourceController.setCurrentData(this.sortData(this.vegaTableDataSourceController.getDataSource(),Array.from(this.sortersMap.values()))),this.changeEventEmitter.emit({sorters:Array.from(this.sortersMap.values()).map((e=>e.toExternalFormat()))})}syncSortOrder(){this.columns.filter((e=>U(e.sorter)&&U(e.sortOrder))).forEach((e=>{this.sortersMap.set(e.prop,new Be(e.prop,e.sortOrder,e.sorter))}))}sortData(e,t){return[...e].sort(((e,i)=>{for(const o of t){const t=o.sort(e,i);if(U(t))return t}return 0}))}}Ve([s({writable:!0})],$e.prototype,"sortersMap",void 0),Ve([s()],$e.prototype,"columns",void 0),Ve([s()],$e.prototype,"changeEventEmitter",void 0),Ve([s()],$e.prototype,"vegaTableDataSourceController",void 0),Ve([s()],$e.prototype,"sortConfig",void 0),Ve([c("watchColumns")],$e.prototype,"watchColumns",null);var Ge=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Fe extends n{constructor(){super(...arguments),this.getColResponsiveClass=e=>e.breakpoint&&Y(e.breakpoint)?`v-hidden ${e.breakpoint}:v-table-column`:""}render(){return e("colgroup",null,e("col",{style:{minWidth:this.paddingX[0],width:this.paddingX[0]}}),"multiple"===this.vegaTableRowSelectionController.getRowSelectionType()&&e("col",{style:{minWidth:"40px",width:"40px"}}),this.columnStructureModel.generateColumnConfigByLeaves(this.columns).map((t=>{if(t){const i=this.getColResponsiveClass(t);return e("col",{class:i,style:{width:t.width?t.width:null}})}return e("col",null)})),this.rowExpandable&&e("col",{style:{minWidth:"40px",width:"40px"}}),e("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}Ge([s()],Fe.prototype,"paddingX",void 0),Ge([s()],Fe.prototype,"columnStructureModel",void 0),Ge([s()],Fe.prototype,"columns",void 0),Ge([s()],Fe.prototype,"rowExpandable",void 0),Ge([s()],Fe.prototype,"vegaTableRowSelectionController",void 0);var Xe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class He extends n{constructor(){super(...arguments),this.currentDataObserver=new te({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ie("VEGA-TABLE-BODY","VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new te({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ie("VEGA-TABLE-BODY","VEGA-TABLE-ROW","VEGA-TABLE-EXPAND-ROW"),callback:()=>{this.syncRowStates()}}),this.syncUpTableCurrentData=()=>{if(!this.isTemplateRenderMode)return;const e=Array.from(this.host.querySelectorAll("vega-table-row")).map((e=>({key:e.rowKey})));this.vegaTableDataSourceController.setCurrentData(e)},this.syncRowStates=()=>{const e=this.host.querySelectorAll("vega-table-row");e.forEach(((t,i)=>{this.updateRowStriped(t,i),this.updateRowDivider(t,i===e.length-1)})),this.host.querySelectorAll("vega-table-expand-row").forEach(((e,t)=>{this.updateRowStriped(e,t)}))},this.syncUpTableHeadRowProps=()=>{var e;if(!this.isTemplateRenderMode)return;const t=this.host.querySelector("vega-table-head-row");t&&(t.hideSelectAll=t.hideSelectAll||(null===(e=this.rowSelection)||void 0===e?void 0:e.hideSelectAll))}}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps(),this.syncRowStates(),this.syncUpTableFootVisibility()}componentDidLoad(){}clearSelection(){w.notify(y,{host:this.host,checked:!1,noneChecked:!0})}watchCurrentData(){this.syncUpTableFootVisibility()}watchStriped(){this.syncRowStates()}watchRowDivider(){this.syncRowStates()}updateRowStriped(e,t){e.striped=this.striped&&t%2==1}updateRowDivider(e,t){e.rowDivider=this.rowDivider&&!t}syncUpTableFootVisibility(){const e=this.host.querySelector("vega-table-foot");e&&(this.vegaTableDataSourceController.isCurrentDataEmpty()?e.classList.add("v-hidden"):e.classList.remove("v-hidden"))}}Xe([s()],He.prototype,"host",void 0),Xe([s()],He.prototype,"columns",void 0),Xe([s()],He.prototype,"dataSource",void 0),Xe([s()],He.prototype,"currentData",void 0),Xe([s()],He.prototype,"rowSelection",void 0),Xe([s()],He.prototype,"striped",void 0),Xe([s()],He.prototype,"rowDivider",void 0),Xe([s()],He.prototype,"vegaTableDataSourceController",void 0),Xe([s()],He.prototype,"vegaTableRenderer",void 0),Xe([s()],He.prototype,"isTemplateRenderMode",void 0),Xe([h()],He.prototype,"currentDataObserver",void 0),Xe([h()],He.prototype,"rowStripedObserver",void 0),Xe([c("connectedCallback")],He.prototype,"connectedCallback",null),Xe([c("disconnectedCallback")],He.prototype,"disconnectedCallback",null),Xe([c("componentWillLoad")],He.prototype,"componentWillLoad",null),Xe([c("componentDidLoad")],He.prototype,"componentDidLoad",null),Xe([c("clearSelection")],He.prototype,"clearSelection",null),Xe([c("watchCurrentData")],He.prototype,"watchCurrentData",null),Xe([c("watchStriped")],He.prototype,"watchStriped",null),Xe([c("watchRowDivider")],He.prototype,"watchRowDivider",null);var Ue=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ye extends n{constructor(){super(...arguments),this.renderTableRowComponent=t=>{const{rowKey:i,index:o,record:r,isVisibleInCurrentPage:a}=t,l=this.vegaTableRenderInputController.getLeafRenderInputs();return e("vega-table-row",{class:{"v-hidden":!a},key:`vega-table-row-${i}`,rowKey:i,ref:e=>{O.addUniqueObserverToNode(e,T,(()=>{this.rowClickEventEmitter.emit({record:r,index:o})}))},striped:this.striped&&o%2==1,rowDivider:this.rowDivider&&!t.isLastRow},l.map((e=>this.vegaTableCellRenderer.render(e,r,o))))}}render(t,i){const{rowKey:o}=t;return i?e("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Ke.rowFormKeyPrefix}${o}`,ref:e=>this.vegaTableEditableController.getRowFormRefMap().set(o,e)},this.renderTableRowComponent(t)):this.renderTableRowComponent(t)}}Ue([s()],Ye.prototype,"rowClickEventEmitter",void 0),Ue([s()],Ye.prototype,"vegaTableEditableController",void 0),Ue([s()],Ye.prototype,"vegaTableCellRenderer",void 0),Ue([s()],Ye.prototype,"striped",void 0),Ue([s()],Ye.prototype,"rowDivider",void 0),Ue([s()],Ye.prototype,"vegaTableRenderInputController",void 0);var qe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Qe extends n{constructor(){super(...arguments),this.currentDataObserver=new te({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ie("VEGA-TABLE-ROW"),callback:()=>{this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}}),this.checkIsTemplateRenderMode=e=>Array.from(e.children).some((e=>e.tagName.startsWith("VEGA-TABLE-")))}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}componentDidLoad(){}}qe([s()],Qe.prototype,"host",void 0),qe([s({writable:!0})],Qe.prototype,"isTemplateRenderMode",void 0),qe([h()],Qe.prototype,"currentDataObserver",void 0),qe([c("connectedCallback")],Qe.prototype,"connectedCallback",null),qe([c("disconnectedCallback")],Qe.prototype,"disconnectedCallback",null),qe([c("componentWillLoad")],Qe.prototype,"componentWillLoad",null),qe([c("componentDidLoad")],Qe.prototype,"componentDidLoad",null);const Ze=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>0===e.dataSource.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>e.dataSource.length>0}];class Je{constructor(e,t,i,o,r){this.key=e,this.level=t,this.parent=i,this.label=o,this.pinned=r,this.leaves=[],this.orderedChildren=[],this.iteratorCacheMap=new Map}static from(e,t){const i=new Je(this.ROOT_KEY,Je.ROOT_LEVEL);return t?(i.children=this.fromGroupColumns(i,t),i):e?(i.children=e.map((e=>new Je(e.key||e.prop||e.label,0,i,null,e.pinned))),i):(i.children=[],i)}static fromGroupColumns(e,t,i=0){return t&&t.length>0?t.map((t=>{if(q(t)){const o=new Je(t.key,i,e,t.label,t.pinned);return o.children=this.fromGroupColumns(o,t.children,i+1),o}return new Je(t.key,i,e)})):[]}generateColumnConfigByLeaves(e){return this.getLeaves().map((t=>e.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key))))}getMaxDepth(){const e=this.dfsIterator();return 0===e.length?0:Math.max(...e.map((e=>e.level)))+1}hasGroupColumn(){return!!this.children.find((e=>!e.isLeaf()))}hasLeftPinnedColumn(){return!!this.children.find((e=>"left"===e.pinned))}hasRightPinnedColumn(){return!!this.children.find((e=>"right"===e.pinned))}isLeaf(){return!this.children||0===this.children.length}iterator(e="dfs"){return"dfs"===e?this.dfsIterator():[]}getLeaves(){if(this.leaves.length>0)return this.leaves;const e=this.dfsIterator().filter((e=>e.isLeaf()));return this.leaves=e,e}getOrderedChildren(){return this.isRoot()?this.orderedChildren:this.children}orderChildrenByPinned(){if(!this.isRoot())return this.children;if(this.orderedChildren.length>0)return this.orderedChildren;const e=[],t=[],i=[];this.children.forEach((o=>{"left"===o.pinned?e.push(o):"right"===o.pinned?i.push(o):t.push(o)}));const o=[...e,...t,...i];return this.orderedChildren=o,o}isRoot(){return this.level===Je.ROOT_LEVEL}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const e=[],t=this.orderChildrenByPinned();return this.isRoot()||e.push(this),t&&t.length>0&&t.forEach((t=>{e.push(...t.dfsIterator())})),this.iteratorCacheMap.set("dfs",e),e}}Je.ROOT_LEVEL=-1,Je.ROOT_KEY="#root-model#";var et=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class tt extends n{componentWillLoad(){this.setColumnStructureModel()}watchColumns(){this.setColumnStructureModel()}watchGroupColumns(){this.setColumnStructureModel()}setColumnStructureModel(){this.columnStructureModel=Je.from(this.columns,this.groupColumns)}}et([s()],tt.prototype,"host",void 0),et([s()],tt.prototype,"columns",void 0),et([s()],tt.prototype,"groupColumns",void 0),et([s({writable:!0})],tt.prototype,"columnStructureModel",void 0),et([c("componentWillLoad")],tt.prototype,"componentWillLoad",null),et([c("watchColumns")],tt.prototype,"watchColumns",null),et([c("watchGroupColumns")],tt.prototype,"watchGroupColumns",null);class it{constructor(e,t,i,o,r,a,l,s,n,d,c,h,p,b,v,u,f=[]){this.key=e,this.label=t,this.pinned=i,this.colSpan=o,this.rowSpan=r,this.isViewStart=a,this.isViewEnd=l,this.isLeftEndPinned=s,this.isRightStartPinned=n,this.isNoPinnedEnd=d,this.headHasGroupColumn=c,this.headHasPinnedColumn=h,this.headMaxDepth=p,this.level=b,this.columnIndex=v,this.parent=u,this.children=f,this.iteratorCacheMap=new Map,this.leaves=[]}static from(e){const t=[],i=[],o=e.getMaxDepth(),r=e.hasGroupColumn(),a=e.hasLeftPinnedColumn()||e.hasRightPinnedColumn();let l=0;return e.iterator().forEach((e=>{const s=e.level>0?i[e.level-1]:null,n=r&&this.isParentStart(e),d=r&&this.isParentEnd(e),c=new it(e.key,e.label,s?s.pinned:e.pinned,r?this.getColSpan(e):null,r?e.isLeaf()?o-e.level:1:null,s?s.isViewStart&&n:n,s?s.isViewEnd&&d:d,s?s.isLeftEndPinned&&d:a&&this.isLeftEndPinned(e),s?s.isRightStartPinned&&n:a&&this.isRightStartPinned(e),s?s.isNoPinnedEnd&&d:a&&this.isNoPinnedEnd(e),r,a,o,e.level,l,s);s?s.children.push(c):t.push(c),i[e.level]=c,i.length=e.level+1,e.isLeaf()&&l++})),t}static isLeftEndPinned(e){const t=e.parent.getOrderedChildren().filter((e=>"left"===e.pinned));return t[t.length-1]===e}static isRightStartPinned(e){return e.parent.getOrderedChildren().filter((e=>"right"===e.pinned))[0]===e}static isNoPinnedEnd(e){const t=e.parent.getOrderedChildren().filter((e=>!e.pinned));return t[t.length-1]===e}static isParentStart(e){return e.parent.getOrderedChildren()[0]===e}static isParentEnd(e){const t=e.parent.getOrderedChildren();return t[t.length-1]===e}static getColSpan(e){const t=e.iterator(),i={};return t.forEach((e=>{i[e.level]=(i[e.level]||0)+1})),Math.max(...Object.values(i))}getLeaves(){if(this.leaves.length>0)return this.leaves;const e=this.iterator().filter((e=>e.isLeaf()));return this.leaves=e,e}iterator(e="dfs"){return"dfs"===e?this.dfsIterator():[]}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const e=[];return e.push(this),this.children&&this.children.length>0&&this.children.forEach((t=>{e.push(...t.dfsIterator())})),this.iteratorCacheMap.set("dfs",e),e}isLeaf(){return!this.children||0===this.children.length}}var ot=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class rt extends n{constructor(){super(...arguments),this.headRowRenderInputMap=new Map,this.headCellRenderInputMap=new Map,this.pinnedColumnBodyCellRenderInputMap=new Map}connectedCallback(){this.registerRenderInputRICObserver()}disconnectedCallback(){this.unRegisterRenderInputRICObserver()}componentWillLoad(){this.setRenderInputModel()}watchColumnStructureModel(){this.setRenderInputModel()}getLeafRenderInputs(){return this.leavesRenderInputModels}getHeadRenderInputs(){return this.columnRenderInputModels}addHeadRowRenderInputMap(e,t){this.headRowRenderInputMap.set(e,t)}addHeadCellRenderInputMap(e,t){this.headCellRenderInputMap.set(e,t)}addCellRenderInputMap(e,t){(e&&["left","right"].includes(t.pinned)||t.isNoPinnedEnd)&&this.pinnedColumnBodyCellRenderInputMap.set(e,t)}getHeadCellRenderInputMap(){return this.headCellRenderInputMap}getPinnedColumnBodyCellRenderInputMap(){return this.pinnedColumnBodyCellRenderInputMap}registerRenderInputRICObserver(){z.register(E.getSubject(this.host,$),(e=>this.headRowRenderInputMap.get(e))),z.register(E.getSubject(this.host,G),(e=>this.headCellRenderInputMap.get(e))),z.register(E.getSubject(this.host,F),(e=>this.pinnedColumnBodyCellRenderInputMap.get(e)))}unRegisterRenderInputRICObserver(){z.unRegister(E.getSubject(this.host,$)),z.unRegister(E.getSubject(this.host,G)),z.unRegister(E.getSubject(this.host,F))}setRenderInputModel(){this.columnRenderInputModels=it.from(this.columnStructureModel),this.leavesRenderInputModels=this.columnRenderInputModels.flatMap((e=>e.getLeaves()))}}ot([s()],rt.prototype,"host",void 0),ot([s()],rt.prototype,"columnStructureModel",void 0),ot([s()],rt.prototype,"vegaTableColGroupRenderer",void 0),ot([c("connectedCallback")],rt.prototype,"connectedCallback",null),ot([c("disconnectedCallback")],rt.prototype,"disconnectedCallback",null),ot([c("componentWillLoad")],rt.prototype,"componentWillLoad",null),ot([c("watchColumnStructureModel")],rt.prototype,"watchColumnStructureModel",null);var at=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class lt extends n{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new J({target:()=>this.host.shadowRoot.querySelector("table"),isDeferred:!0,callback:async()=>{await this.host.componentOnReady().then((()=>{this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}))}})}componentDidLoad(){}componentDidRender(){this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}updateTableCellPinnedPosition(){if(!this.columnStructureModel.hasLeftPinnedColumn()&&!this.columnStructureModel.hasRightPinnedColumn())return;if(!this.host.shadowRoot.querySelector("vega-table-head-row"))return;const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap(),t=this.vegaTableRenderInputController.getPinnedColumnBodyCellRenderInputMap(),[i,o]=this.getRowShadowThWidths(),r=this.getLeafWidths();e.forEach(((e,t)=>{this.updateCellPinnedPosition(e,t,i,r,o)})),t.forEach(((e,t)=>{this.updateCellPinnedPosition(e,t,i,r,o)}))}getRowShadowThWidths(){const e=this.host.shadowRoot.querySelector("vega-table-head-row").shadowRoot,t=e.querySelector("th:first-of-type"),i=e.querySelector(".vega-table-selection-column"),o=e.querySelector(".vega-table-expand-action-column"),r=e.querySelector("th:last-of-type");return t?[t.getBoundingClientRect().width+((null==i?void 0:i.getBoundingClientRect().width)||0),((null==o?void 0:o.getBoundingClientRect().width)||0)+r.getBoundingClientRect().width]:[0,0]}getLeafWidths(){const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap();return this.vegaTableRenderInputController.getLeafRenderInputs().map((t=>{var i;for(const[o,r]of e.entries())if(t===r)return(null===(i=o.shadowRoot.querySelector("th, td"))||void 0===i?void 0:i.getBoundingClientRect().width)||0}))}updateCellPinnedPosition(e,t,i,o,r){if(["left","right"].includes(e.pinned)){const a=t.shadowRoot.querySelector("th, td");if("left"===e.pinned){const t=i+o.slice(0,e.columnIndex).reduce(((e,t)=>e+t),0);this.updatePinnedPosition(a,"left",t)}if("right"===e.pinned){const t=U(e.colSpan)?e.colSpan:1,i=r+o.slice(e.columnIndex+(t-1)+1).reduce(((e,t)=>e+t),0);this.updatePinnedPosition(a,"right",i)}}}updateTableRowPinnedPosition(){const e=this.columnStructureModel.hasLeftPinnedColumn(),t=this.columnStructureModel.hasRightPinnedColumn(),i=this.host.getBoundingClientRect().width,o=j(this.paddingX[0]),r=j(this.paddingX[1]),a=i-o-r-2;this.host.shadowRoot.querySelectorAll("vega-table-head-row, vega-table-row, vega-table-expand-row").forEach((i=>{const l=i.shadowRoot;if(e){const e=l.querySelector("th:first-of-type, td:first-of-type"),t=l.querySelector(".vega-table-selection-column");this.updatePinnedPosition(e,"left",0),this.updatePinnedPosition(t,"left",o)}if(t){const e=l.querySelector(".vega-table-expand-action-column"),t=l.querySelector("th:last-of-type, td:last-of-type");this.updatePinnedPosition(e,"right",r),this.updatePinnedPosition(t,"right",0)}if(t||e){const e=l.querySelector(".vega-table-expanded-row-slot-container");if(e){const t=e.querySelector(".expanded-row-slot-inner");this.updatePinnedPosition(t,"left",o),t.style.width=`${a}px`}}}))}updatePinnedPosition(e,t,i){e&&(e.style.position="sticky",e.style.zIndex="1",e.style[t]=`${i}px`)}}at([s()],lt.prototype,"host",void 0),at([s()],lt.prototype,"columnStructureModel",void 0),at([s()],lt.prototype,"paddingX",void 0),at([s()],lt.prototype,"vegaTableRenderInputController",void 0),at([h()],lt.prototype,"pageResizeObserverSlimmer",void 0),at([c("componentDidLoad")],lt.prototype,"componentDidLoad",null),at([c("componentDidRender")],lt.prototype,"componentDidRender",null);var st=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const nt=class{constructor(e){r(this,e),this.vegaChange=a(this,"vegaChange",7),this.change=a(this,"change",7),this.vegaRowClick=a(this,"vegaRowClick",7),this.rowClick=a(this,"rowClick",7),this.vegaRowExpand=a(this,"vegaRowExpand",7),this.rowExpand=a(this,"rowExpand",7),this.vegaSelectChange=a(this,"vegaSelectChange",7),this.selectChange=a(this,"selectChange",7),this.vegaSelectAllChange=a(this,"vegaSelectAllChange",7),this.selectAllChange=a(this,"selectAllChange",7),this.vegaRowSelect=a(this,"vegaRowSelect",7),this.rowSelect=a(this,"rowSelect",7),this.vegaRowSelectAll=a(this,"vegaRowSelectAll",7),this.rowSelectAll=a(this,"rowSelectAll",7),this.globalSlimmers={},this.translationSlimmer=new se,this.vegaTableRenderModeController=new Qe,this.vegaTableColumnStructureModelController=new tt,this.vegaTableRenderInputController=new rt,this.vegaTablePinnedRenderer=new lt,this.vegaTableRenderer=new We,this.vegaTableHeaderRenderer=new Te,this.vegaTableBodyRenderer=new Ee,this.vegaTableRowRenderer=new Ye,this.vegaTableCellRenderer=new me,this.vegaTablePaginationRenderer=new Le,this.vegaTableScrollContainerRenderer=new Ne,this.vegaTableExpandRowController=new xe,this.vegaTableRowSelectionController=new Se,this.vegaTableDataSourceController=new ke,this.vegaTablePaginationController=new _e,this.vegaTableEditableController=new Ke,this.vegaTableSortController=new $e,this.vegaTableColGroupRenderer=new Fe,this.vegaTableChildrenController=new He,this.pageResizeObserverSlimmer=new J,this.rowSelectionNotifySlimmer=oe(nt,"rowSelection","watchRowSelection"),this.rowExpandableNotifySlimmer=oe(nt,"rowExpandable","watchRowExpandable"),this.paddingXNotifySlimmer=oe(nt,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=oe(nt,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=oe(nt,"scrollConfig","watchScrollConfig"),this.eventsPrevent=new re([D,L,A],(()=>this.host)),this.changeEventEmitter=ae(nt,D),this.selectChangeEventEmitter=ae(nt,M),this.selectAllChangeEventEmitter=ae(nt,N),this.rowClickEventEmitter=ae(nt,P),this.rowExpandEventEmitter=ae(nt,W),this.rowDividerNotifySlimmer=oe(nt,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=oe(nt,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=oe(nt,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=oe(nt,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=oe(nt,"currentData","watchCurrentData"),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(Ze),this.rowSelectEventEmitter=ae(nt,I),this.rowSelectAllEventEmitter=ae(nt,_),this.selectedRowKeySet=new fe(new Set,(e=>{this.selectedRowKeySet=e})),this.expandedRowKeySet=new fe(new Set,(e=>{this.expandedRowKeySet=e})),this.currentBreakpoint=ee(),this.sortersMap=new le(new Map,(e=>{this.sortersMap=e})),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new fe(new Set,(e=>{this.editingRows=e})),this.isSelectedAll=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key",this.sortConfig={type:"multiple"}}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(e,t){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumnStructureModel(){}watchColumns(){}watchGroupColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDivider(){}watchColumnDivider(){}watchStriped(){}watchDensity(){}watchPaddingX(){}watchPagination(){}watchScrollConfig(){}async openExpandRow(e){}async closeExpandRow(e){}async closeAllExpandRow(){}async toggleExpandRow(e){}async clearSelection(){}async getSelection(){return p()}async setSelection(e){}async startRowEditMode(e){}async stopRowEditMode(e){}async stopAllRowEditMode(){}async getRowData(e){return p(e)}async getRowsData(){return p()}async getFormRef(e){return p(e)}async addNewRow(e={}){return p(e)}async saveEditRow(e){return p(e)}async saveAllEditRows(){}async getEditingRowsKey(){return p()}async removeRow(e){}render(){return b(e("slot",null)),this.vegaTableRenderer.render()}get host(){return l(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columnStructureModel:["watchColumnStructureModel"],columns:["watchColumns"],groupColumns:["watchGroupColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};st([u()],nt.prototype,"globalSlimmers",void 0),st([h()],nt.prototype,"translationSlimmer",void 0),st([h()],nt.prototype,"vegaTableRenderModeController",void 0),st([h()],nt.prototype,"vegaTableColumnStructureModelController",void 0),st([h()],nt.prototype,"vegaTableRenderInputController",void 0),st([h()],nt.prototype,"vegaTablePinnedRenderer",void 0),st([h()],nt.prototype,"vegaTableRenderer",void 0),st([h()],nt.prototype,"vegaTableHeaderRenderer",void 0),st([h()],nt.prototype,"vegaTableBodyRenderer",void 0),st([h()],nt.prototype,"vegaTableRowRenderer",void 0),st([h()],nt.prototype,"vegaTableCellRenderer",void 0),st([h()],nt.prototype,"vegaTablePaginationRenderer",void 0),st([h()],nt.prototype,"vegaTableScrollContainerRenderer",void 0),st([h()],nt.prototype,"vegaTableExpandRowController",void 0),st([h()],nt.prototype,"vegaTableRowSelectionController",void 0),st([h()],nt.prototype,"vegaTableDataSourceController",void 0),st([h()],nt.prototype,"vegaTablePaginationController",void 0),st([h()],nt.prototype,"vegaTableEditableController",void 0),st([h()],nt.prototype,"vegaTableSortController",void 0),st([h()],nt.prototype,"vegaTableColGroupRenderer",void 0),st([h()],nt.prototype,"vegaTableChildrenController",void 0),st([h()],nt.prototype,"pageResizeObserverSlimmer",void 0),st([h()],nt.prototype,"rowSelectionNotifySlimmer",void 0),st([h()],nt.prototype,"rowExpandableNotifySlimmer",void 0),st([h()],nt.prototype,"paddingXNotifySlimmer",void 0),st([h()],nt.prototype,"rowClickableNotifySlimmer",void 0),st([h()],nt.prototype,"scrollConfigNotifySlimmer",void 0),st([h()],nt.prototype,"eventsPrevent",void 0),st([h()],nt.prototype,"changeEventEmitter",void 0),st([h()],nt.prototype,"selectChangeEventEmitter",void 0),st([h()],nt.prototype,"selectAllChangeEventEmitter",void 0),st([h()],nt.prototype,"rowClickEventEmitter",void 0),st([h()],nt.prototype,"rowExpandEventEmitter",void 0),st([h()],nt.prototype,"rowDividerNotifySlimmer",void 0),st([h()],nt.prototype,"columnDividerNotifySlimmer",void 0),st([h()],nt.prototype,"densityNotifySlimmer",void 0),st([h()],nt.prototype,"isTemplateRenderModeNotifySlimmer",void 0),st([h()],nt.prototype,"currentDataNotifySlimmer",void 0),st([h()],nt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),st([h()],nt.prototype,"rowSelectEventEmitter",void 0),st([h()],nt.prototype,"rowSelectAllEventEmitter",void 0),nt.style=':host{display:block}table{width:100%;border-spacing:0}.vega-table-empty-description{text-align:center;padding:24px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}table.v-table-fixed{table-layout:fixed}.vega-table-scrollable-container{overflow:auto}.vega-table-scrollable-container vega-table-head{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.vega-table-scrollable-container.scrolled vega-table-head.fixed-header,.vega-table-scrollable-container.scrolled ::slotted(vega-table-head.fixed-header){box-shadow:0px 4px 0px rgba(0, 0, 0, 0.1);}.vega-table-scrollable-container.scrolled vega-table-foot.fixed-footer::after,.vega-table-scrollable-container.scrolled ::slotted(vega-table-foot.fixed-footer)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}vega-form{display:contents}*::part(field-error-message){display:none !important}.vega-table-pagination-container{margin-top:24px}.vega-table-pagination-container.bottom-center{display:flex;justify-content:center}.vega-table-pagination-container.bottom-right{display:flex;justify-content:flex-end}.vega-table-pagination-container.bottom-left{display:flex;justify-content:flex-start}col.v-hidden{display:none}@media (min-width: 320px){col.S\\:v-table-column{display:table-column}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column}}:host(.is-group-table) .vega-table-scrollable-container{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-width:1px;border-style:solid}:host(.is-group-table.density-relaxed) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-default) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-compact) .vega-table-scrollable-container{border-radius:4px}:host(.is-pinned-table) table{min-width:max-content}';var dt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const ct=class{constructor(e){r(this,e),this.globalSlimmers={},this.childChangeEventPrevent=new re([D],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return Q(e(o,null,e("tbody",null,e("slot",null))),this.host)}get host(){return l(this)}};dt([u()],ct.prototype,"globalSlimmers",void 0),dt([h()],ct.prototype,"childChangeEventPrevent",void 0),dt([h()],ct.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ct.style=":host{display:contents}";const ht=(e,t)=>e&&Y(e)?`v-hidden ${e}:${t}`:"";var pt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class bt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const i=t.querySelector("vega-table-cell:last-of-type");this.columnDivider=e&&i!==this.host}}},{subStateName:"clickable",parentStateName:"rowClickable"}]})}}pt([s()],bt.prototype,"host",void 0),pt([s({writable:!0})],bt.prototype,"density",void 0),pt([s({writable:!0})],bt.prototype,"columnDivider",void 0),pt([s({writable:!0})],bt.prototype,"clickable",void 0);var vt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ut extends ne{constructor(){super({parent:"vega-table-row",subStates:[{subStateName:"checked",parentStateName:"checked"},{subStateName:"expanded",parentStateName:"expanded"},{subStateName:"striped",parentStateName:"striped"},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}}vt([s({writable:!0})],ut.prototype,"checked",void 0),vt([s({writable:!0})],ut.prototype,"expanded",void 0),vt([s({writable:!0})],ut.prototype,"striped",void 0),vt([s({writable:!0})],ut.prototype,"rowDivider",void 0);var ft=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const wt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableCellStateController=new bt,this.vegaTableRowStateSubscriber=new ut,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee(),this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}render(){const t=ht(this.breakpoint,"v-table-cell"),i=(()=>{let e;switch(this.textAlign){case"center":e="v-text-center";break;case"left":e="v-text-left";break;case"right":e="v-text-right";break;default:e=""}return e})(),r=this.getCellOverflowClass(),a=[t,i,"vega-table-cell"];de.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||a.push("break-word");const l=C(this.host,"vega-table"),s=l&&z.call(E.getSubject(l,F),this.host);return(null==s?void 0:s.isRightStartPinned)&&a.push("left-divider"),(null==s?void 0:s.isLeftEndPinned)&&a.push("right-divider"),(null==s?void 0:s.isNoPinnedEnd)&&a.push("hide-right-border"),Q(e(o,{class:k([`density-${H.formatCustom(this.density)}`,this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",this.clickable&&"clickable",this.checked&&"checked",this.striped&&"striped",this.expanded&&"expanded"])},e("td",{class:k(a),part:"cell",onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),style:{width:this.width}},e("div",{class:r},e("slot",null)))),this.host)}onMouseEnter(){this.host.parentElement.querySelectorAll("vega-table-cell").forEach((e=>e.classList.add("hovered")))}onMouseLeave(){this.host.parentElement.querySelectorAll("vega-table-cell").forEach((e=>e.classList.remove("hovered")))}get host(){return l(this)}};ft([u()],wt.prototype,"globalSlimmers",void 0),ft([h()],wt.prototype,"vegaTableCellStateController",void 0),ft([h()],wt.prototype,"vegaTableRowStateSubscriber",void 0),ft([h()],wt.prototype,"pageResizeObserverSlimmer",void 0),ft([h()],wt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),wt.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}.vega-table-cell{padding:12px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-table-cell.break-word{word-break:break-word}td{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;padding:0px;vertical-align:middle}td.v-text-center{text-align:center}td.v-text-left{text-align:left}td.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}.vega-table-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vega-table-cell-scroll{overflow:auto}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host(.row-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.striped) .vega-table-cell{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.clickable.hovered:not(.checked)) .vega-table-cell{cursor:pointer;background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}:host(.checked) .vega-table-cell{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:host(.expanded) .vega-table-cell{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}';var gt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class mt extends n{render(){return e("tr",{class:{"vega-table-expanded-row":!0,expanded:this.expanded,checked:this.checked,striped:this.striped},key:`vega-table-expanded-row-${this.rowKey}`,"data-expanded-row-key":this.rowKey},e("td",null),e("td",{colSpan:this.colSpan,key:`${xe.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},e("div",{class:"expanded-row-slot-inner"},e("slot",null))),e("td",null))}}gt([s()],mt.prototype,"host",void 0),gt([s()],mt.prototype,"rowKey",void 0),gt([s()],mt.prototype,"expanded",void 0),gt([s()],mt.prototype,"checked",void 0),gt([s()],mt.prototype,"colSpan",void 0),gt([s()],mt.prototype,"striped",void 0);var yt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class xt extends n{connectedCallback(){this.expandObserver=new S(this.isAcceptableTableExpandRowObserver.bind(this),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.expandObserver)}disconnectedCallback(){w.unregister(g,this.expandObserver)}isAcceptableTableExpandRowObserver(e){return"VEGA-TABLE"===e.host.tagName?"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table"):"VEGA-TABLE-ROW"===e.host.tagName?C(this.host,"vega-table")===C(e.host,"vega-table"):void 0}}function Rt(e){return"VEGA-TABLE-ROW"===e.host.tagName&&C(this.host,"vega-table")===C(e.host,"vega-table")}function St(e){return"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table")}yt([s()],xt.prototype,"host",void 0),yt([s()],xt.prototype,"rowKey",void 0),yt([s({writable:!0})],xt.prototype,"expanded",void 0),yt([c("connectedCallback")],xt.prototype,"connectedCallback",null),yt([c("disconnectedCallback")],xt.prototype,"disconnectedCallback",null);var Ct=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class kt extends n{connectedCallback(){this.rowSelectionObserver=new S(Rt.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver)}}Ct([s({writable:!0})],kt.prototype,"checked",void 0),Ct([s()],kt.prototype,"host",void 0),Ct([s()],kt.prototype,"rowKey",void 0),Ct([c("connectedCallback")],kt.prototype,"connectedCallback",null),Ct([c("disconnectedCallback")],kt.prototype,"disconnectedCallback",null);var jt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Et extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"withMultipleSelection",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.withMultipleSelection="multiple"===t}else this.withMultipleSelection=!1}}]})}}jt([s()],Et.prototype,"host",void 0),jt([s({writable:!0})],Et.prototype,"withMultipleSelection",void 0),jt([s()],Et.prototype,"vegaTableExpandRowColSpanController",void 0);var Ot=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Tt extends n{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=this.getVisibleColumnsNumber()+(this.withMultipleSelection?2:1)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}getVisibleColumnsNumber(){const e=C(this.host,"vega-table"),t=ee(),i=e.children&&Array.from(e.children).filter((e=>{var t;return!(null===(t=e.getAttribute("slot"))||void 0===t?void 0:t.startsWith("vega-table-expand-row-"))})).length>0?e.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell"):e.shadowRoot.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell");return Array.from(i).filter((e=>!e.breakpoint||"default"!==t&&ce[t]>=ce[e.breakpoint])).length}}Ot([s()],Tt.prototype,"host",void 0),Ot([s({writable:!0})],Tt.prototype,"colSpan",void 0),Ot([s()],Tt.prototype,"withMultipleSelection",void 0),Ot([c("componentWillLoad")],Tt.prototype,"componentWillLoad",null),Ot([c("watchCurrentBreakpoint")],Tt.prototype,"watchCurrentBreakpoint",null),Ot([c("watchWithMultipleSelection")],Tt.prototype,"watchWithMultipleSelection",null);var Dt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Lt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new mt,this.vegaTableExpandRowExpandController=new xt,this.vegaTableExpandRowSelectionController=new kt,this.vegaTableExpandRowStateController=new Et,this.vegaTableExpandRowColSpanController=new Tt,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}render(){return b(e("slot",null)),Q(e(o,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return l(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"]}}};Dt([u()],Lt.prototype,"globalSlimmers",void 0),Dt([h()],Lt.prototype,"vegaTableExpandRowRenderer",void 0),Dt([h()],Lt.prototype,"vegaTableExpandRowExpandController",void 0),Dt([h()],Lt.prototype,"vegaTableExpandRowSelectionController",void 0),Dt([h()],Lt.prototype,"vegaTableExpandRowStateController",void 0),Dt([h()],Lt.prototype,"vegaTableExpandRowColSpanController",void 0),Dt([h()],Lt.prototype,"pageResizeObserverSlimmer",void 0),Dt([h()],Lt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Lt.style=":host{display:contents}:host .vega-table-expanded-row.striped:not(.checked) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.v-hidden){display:none}.vega-table-expanded-row{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-table-expanded-row:not(.expanded){display:none}.vega-table-expanded-row.expanded td{border-bottom-width:1px;border-top-width:0px;border-right-width:0px;border-left-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1));padding:0px;vertical-align:middle}.vega-table-expanded-row.expanded td:first-of-type{border-left-width:1px;border-bottom-width:1px;border-top-left-radius:12px;border-bottom-left-radius:12px;border-top-left-radius:0px}.vega-table-expanded-row.expanded td:last-of-type{border-right-width:1px;border-bottom-width:1px;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-right-radius:0px}.vega-table-expanded-row.expanded td.vega-table-expanded-row-slot-container{border-top-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}.vega-table-expanded-row.expanded.checked{background-color:rgba(var(--v-bg-table-row-selected-expanded, 229, 239, 255, 1))}:host tr.is-pinned-row td:first-of-type{position:sticky;z-index:1;left:0px}:host tr.is-pinned-row td.vega-table-expanded-row-slot-container div{position:sticky;z-index:1;left:8px}";var At=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Mt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedFooter}},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}handleDisconnectedCallback(){he.removeZIndex(this.tableFootRef,"base")}handleTableFootRefChange(e){this.tableFootRef&&he.removeZIndex(this.tableFootRef,"base"),this.fixed&&he.setZIndex(e,"base"),this.tableFootRef=e}}At([s()],Mt.prototype,"host",void 0),At([s({writable:!0})],Mt.prototype,"fixed",void 0),At([s({writable:!0})],Mt.prototype,"rowDivider",void 0),At([c("disconnectedCallback")],Mt.prototype,"handleDisconnectedCallback",null);var Nt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Pt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableFootStateController=new Mt,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.childChangeEventPrevent=new re([D],(()=>this.host)),this.fixed=!1,this.rowDivider=!1}render(){return Q(e(o,{class:{"fixed-footer":this.fixed,"row-divider":this.rowDivider},ref:e=>this.vegaTableFootStateController.handleTableFootRefChange(e)},e("tfoot",null,e("slot",null))),this.host)}get host(){return l(this)}};Nt([u()],Pt.prototype,"globalSlimmers",void 0),Nt([h()],Pt.prototype,"vegaTableFootStateController",void 0),Nt([h()],Pt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Nt([h()],Pt.prototype,"childChangeEventPrevent",void 0),Pt.style=':host{display:table-footer-group;position:sticky;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host tfoot{display:contents}:host(.fixed-footer){bottom:0px}:host(.row-divider)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}:host(.v-hidden){display:none}';var Wt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class It extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const i=t.querySelector("vega-table-foot-cell:last-of-type");this.columnDivider=e&&i!==this.host}}}]})}}Wt([s({writable:!0})],It.prototype,"density",void 0),Wt([s({writable:!0})],It.prototype,"columnDivider",void 0);var _t=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class zt extends n{render(){return e("td",{class:{"vega-table-cell":!0,"break-word":!de.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),[ht(this.breakpoint,"v-table-cell")]:!0}},e("div",{class:k(["vega-table-column",this.textAlign])},e("span",{class:"vega-table-column-label"},e("slot",null))))}}_t([s()],zt.prototype,"host",void 0),_t([s()],zt.prototype,"breakpoint",void 0),_t([s()],zt.prototype,"textAlign",void 0);var Kt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Bt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableFootCellStateController=new It,this.vegaTableFootCellRenderer=new zt,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee()}render(){return Q(e(o,{class:{[`density-${H.formatCustom(this.density)}`]:!0,"column-divider":this.columnDivider},style:{width:this.width}},this.vegaTableFootCellRenderer.render()),this.host)}get host(){return l(this)}};Kt([u()],Bt.prototype,"globalSlimmers",void 0),Kt([h()],Bt.prototype,"vegaTableFootCellStateController",void 0),Kt([h()],Bt.prototype,"vegaTableFootCellRenderer",void 0),Kt([h()],Bt.prototype,"pageResizeObserverSlimmer",void 0),Kt([h()],Bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Bt.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}td.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}';var Vt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class $t extends n{constructor(){super(...arguments),this.renderFooterSelectionCell=()=>{if("multiple"===this.selectionType)return e("td",{class:"vega-table-selection-column"})},this.renderFooterExpandableCell=()=>this.expandable&&e("td",{class:"vega-table-expand-action-column"})}render(){return e("tr",null,e("td",{style:{width:this.paddingX[0]}}),this.renderFooterSelectionCell(),e("slot",null),this.renderFooterExpandableCell(),e("td",{style:{width:this.paddingX[1]}}))}}Vt([s()],$t.prototype,"host",void 0),Vt([s()],$t.prototype,"paddingX",void 0),Vt([s()],$t.prototype,"selectionType",void 0),Vt([s()],$t.prototype,"expandable",void 0);var Gt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ft extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"paddingX",parentStateName:"paddingX"},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"}]}),this.updateSelectionType=e=>{if(e){const{type:t}=e;this.selectionType=t}else this.selectionType=null}}}Gt([s()],Ft.prototype,"host",void 0),Gt([s({writable:!0})],Ft.prototype,"selectionType",void 0),Gt([s({writable:!0})],Ft.prototype,"paddingX",void 0),Gt([s({writable:!0})],Ft.prototype,"columnDivider",void 0),Gt([s({writable:!0})],Ft.prototype,"density",void 0),Gt([s({writable:!0})],Ft.prototype,"expandable",void 0);var Xt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Ht=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableFootRowStateController=new Ft,this.vegaTableFootRowRenderer=new $t,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.pageResizeObserverSlimmer=new J,this.currentBreakpoint=ee(),this.expandable=!1}render(){return b(e("slot",null)),Q(e(o,{class:{"column-divider":this.columnDivider,[`density-${H.formatCustom(this.density)}`]:!0}},this.vegaTableFootRowRenderer.render()),this.host)}get host(){return l(this)}};Xt([u()],Ht.prototype,"globalSlimmers",void 0),Xt([h()],Ht.prototype,"vegaTableFootRowStateController",void 0),Xt([h()],Ht.prototype,"vegaTableFootRowRenderer",void 0),Xt([h()],Ht.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Xt([h()],Ht.prototype,"pageResizeObserverSlimmer",void 0),Ht.style=":host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) td:first-of-type,:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type,:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";var Ut=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Yt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedHeader}}]})}}Ut([s()],Yt.prototype,"host",void 0),Ut([s({writable:!0})],Yt.prototype,"fixed",void 0);var qt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Qt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableHeadStateController=new Yt,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.headCellEventPrevent=new re([D],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=e=>{this.tableHeadRef&&he.removeZIndex(this.tableHeadRef,"base"),this.fixed&&he.setZIndex(e,"base"),this.tableHeadRef=e}}disconnectedCallback(){he.removeZIndex(this.tableHeadRef,"base")}render(){return Q(e(o,{class:{"fixed-header":this.fixed},ref:e=>this.handleTableHeadRefChange(e)},e("thead",null,e("slot",null))),this.host)}get host(){return l(this)}};qt([u()],Qt.prototype,"globalSlimmers",void 0),qt([h()],Qt.prototype,"vegaTableHeadStateController",void 0),qt([h()],Qt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),qt([h()],Qt.prototype,"headCellEventPrevent",void 0),Qt.style=":host{display:table-header-group;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host thead{display:contents}:host(.fixed-header){position:sticky;top:0px}";var Zt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Jt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const i=t.querySelector("vega-table-head-cell:last-of-type");this.columnDivider=e&&i!==this.host}}}]})}}Zt([s({writable:!0})],Jt.prototype,"density",void 0),Zt([s({writable:!0})],Jt.prototype,"columnDivider",void 0);var ei=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ti extends n{render(){if(!this.sorter)return;const{icon:t,color:i}=ti.SORT_ICON_MAP[this.sortOrder||"default"];return e("span",{class:"vega-table-column-sorter"},e("vega-icon",{color:i,icon:pe.getIconKey(t),size:"size-12"}))}}ti.SORT_ICON_MAP={asc:{icon:"circle-arrow-up",color:"text-link"},desc:{icon:"circle-arrow-down",color:"text-link"},default:{icon:"arrow-up-arrow-down",color:"text-secondary"}},ei([s()],ti.prototype,"sorter",void 0),ei([s()],ti.prototype,"sortOrder",void 0);var ii=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class oi extends n{disconnectedCallback(){const e=C(this.host,"vega-table-head");e&&w.unregister(E.getSubject(e,X),this.observer)}componentWillLoad(){const e=C(this.host,"vega-table-head");e&&(this.hostTable=C(e,"vega-table"),this.isTemplateRenderMode=this.checkIsTemplateRenderMode(),this.observer=new S(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),w.register(E.getSubject(e,X),this.observer))}notifyOtherHeadCellOnClickSort(){const e=C(this.host,"vega-table-head");e&&w.notify(E.getSubject(e,X),{host:this.host})}isAcceptableObserver(e){return e.host!==this.host}observerListener(){var e;this.isTemplateRenderMode&&"single"===(null===(e=this.hostTable.sortConfig)||void 0===e?void 0:e.type)&&(this.sortOrder=void 0)}checkIsTemplateRenderMode(){return Array.from(this.hostTable.children).some((e=>e.tagName.startsWith("VEGA-TABLE-")))}}ii([s()],oi.prototype,"host",void 0),ii([s({writable:!0})],oi.prototype,"sortOrder",void 0),ii([s()],oi.prototype,"sortConfig",void 0),ii([c("disconnectedCallback")],oi.prototype,"disconnectedCallback",null),ii([c("componentWillLoad")],oi.prototype,"componentWillLoad",null);var ri=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const ai=class{constructor(e){r(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=ae(ai,T),this.vegaTableHeadCellStateController=new Jt,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.sortIconRenderer=new ti,this.vegaTableHeadCellSortConfigController=new oi,this.currentBreakpoint=ee(),this.handleSort=e=>{this.sortOrder=this.getNextSortOrder(this.sortOrder),this.clickEventEmitter.emit({sortOrder:this.sortOrder},e),this.vegaTableHeadCellSortConfigController.notifyOtherHeadCellOnClickSort()},this.getNextSortOrder=e=>{var t;const i=de.isEnabled("VEGA_TABLE.REVERSE_SORT_ORDER")?["asc","desc"]:["desc","asc"],o=(null===(t=this.sortConfig)||void 0===t?void 0:t.disableUnsorted)?i:[...i,null];return o[(o.indexOf(e)+1)%o.length]}}render(){const t=this.sorter?{role:"button",onKeyDown:be(),tabIndex:0,onClick:e=>this.handleSort(e)}:null,i=C(this.host,"vega-table"),r=i&&z.call(E.getSubject(i,G),this.host);return Q(e(o,{class:{[`density-${H.formatCustom(this.density)}`]:!0,sortable:!!this.sorter,"column-divider":this.columnDivider},style:{width:this.width}},e("th",Object.assign({class:{"vega-table-cell":!0,"break-word":!de.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),"is-group-cell":null==r?void 0:r.headHasGroupColumn,"hide-right-border":(null==r?void 0:r.isViewEnd)||(null==r?void 0:r.isNoPinnedEnd),"right-divider":null==r?void 0:r.isLeftEndPinned,"left-divider":null==r?void 0:r.isRightStartPinned,[ht(this.breakpoint,"v-table-cell")]:!0}},t,{colSpan:null==r?void 0:r.colSpan,rowSpan:null==r?void 0:r.rowSpan}),e("div",{class:k(["vega-table-column",this.textAlign])},e("span",{class:"vega-table-column-label"},e("slot",null)),this.sortIconRenderer.render()))),this.host)}get host(){return l(this)}};pe.register({"chevron-up":ve,"chevron-down":ue,"arrow-up-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M489 377c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1l-55-55c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96zM137 39c-9.4-9.4-24.6-9.4-33.9 0L7 135c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55V456c0 13.3 10.7 24 24 24s24-10.7 24-24V113.9l55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L137 39z"/></svg>'},"circle-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM127 281c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l71 71L232 136c0-13.3 10.7-24 24-24s24 10.7 24 24l0 182.1 71-71c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 393c-9.4 9.4-24.6 9.4-33.9 0L127 281z"/></svg>'},"circle-arrow-up":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM385 231c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-71-71V376c0 13.3-10.7 24-24 24s-24-10.7-24-24V193.9l-71 71c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 119c9.4-9.4 24.6-9.4 33.9 0L385 231z"/></svg>'}}),ri([u()],ai.prototype,"globalSlimmers",void 0),ri([h()],ai.prototype,"clickEventEmitter",void 0),ri([h()],ai.prototype,"vegaTableHeadCellStateController",void 0),ri([h()],ai.prototype,"pageResizeObserverSlimmer",void 0),ri([h()],ai.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ri([h()],ai.prototype,"sortIconRenderer",void 0),ri([h()],ai.prototype,"vegaTableHeadCellSortConfigController",void 0),ai.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}:host(.sortable){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.sortable:hover){background-color:rgba(var(--v-bg-table-row-hover, 241, 248, 251, 1))}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:0px;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}.vega-table-column .vega-table-column-sorter{display:flex;align-items:center;justify-content:center;padding:2px;margin-left:8px;cursor:pointer;outline:none}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host .vega-table-cell.is-group-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-bottom-width:1px;border-right-style:solid;border-bottom-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}:host .vega-table-cell.bottom-border{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}';var li=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class si extends n{constructor(){super(...arguments),this.renderHeaderSelectionCell=t=>{if("multiple"===this.selectionType)return e("th",{rowSpan:t.startRowSpan,class:{"vega-table-selection-column":!0,hidden:t.isStartHidden}},!this.hideSelectAll&&e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",disabled:this.isEmptyTable||this.selectAllDisabled,checked:this.checkedAll,onClick:this.handleClick,ref:e=>{O.addUniqueObserverToNode(e,D,this.handleSelectAll)}})))},this.handleSelectAll=e=>{if("vegaChange"===e.eventName){const t=e.detail;U(t)&&t!==this.checkedAll&&w.notify(y,{host:this.host,checked:t})}},this.renderHeaderExpandableCell=t=>this.expandable&&e("th",{rowSpan:t.endRowSpan,class:{"vega-table-expand-action-column":!0,hidden:t.isEndHidden}}),this.handleClick=e=>{e.stopPropagation(),z.call(E.getSubject(C(this.host,"vega-table"),V),{host:this.host,checked:!this.checkedAll}).defaultPrevented&&e.preventDefault()}}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}render(){var t,i;const o=this.getRowRenderInput();return e("tr",{class:{"is-group-row":o.headHasGroupColumn,"is-pinned-row":o.headHasPinnedColumn}},e("th",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]},rowSpan:o.startRowSpan,class:{hidden:o.isStartHidden}}),this.renderHeaderSelectionCell(o),e("slot",null),this.renderHeaderExpandableCell(o),e("th",{style:{width:null===(i=this.paddingX)||void 0===i?void 0:i[1]},rowSpan:o.endRowSpan,class:{hidden:o.isEndHidden}}))}getRowRenderInput(){const e={},t=C(this.host,"vega-table"),i=t&&z.call(E.getSubject(t,$),this.host),o=null==i?void 0:i[0],r=null==i?void 0:i[i.length-1];return o&&(e.headHasGroupColumn=o.headHasGroupColumn,e.headHasPinnedColumn=o.headHasPinnedColumn,e.headHasGroupColumn&&(e.startRowSpan="multiple"===this.selectionType&&0===o.level?o.headMaxDepth:o.rowSpan,e.isStartHidden=o.headHasGroupColumn&&("multiple"===this.selectionType&&o.level>0||!o.isViewStart))),r&&r.headHasGroupColumn&&(e.endRowSpan=r.rowSpan,e.isEndHidden=o.headHasGroupColumn&&!r.isViewEnd),e}}li([s()],si.prototype,"host",void 0),li([s()],si.prototype,"paddingX",void 0),li([s()],si.prototype,"selectionType",void 0),li([s()],si.prototype,"hideSelectAll",void 0),li([s()],si.prototype,"selectAllDisabled",void 0),li([s()],si.prototype,"checkedAll",void 0),li([s()],si.prototype,"expandable",void 0),li([s()],si.prototype,"isEmptyTable",void 0),li([s()],si.prototype,"isTemplateRenderMode",void 0),li([c("connectedCallback")],si.prototype,"connectedCallback",null),li([c("disconnectedCallback")],si.prototype,"disconnectedCallback",null),li([c("componentDidLoad")],si.prototype,"componentDidLoad",null);var ni=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class di extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(St.bind({host:this.host}),(e=>{this.checkedAll=e.noneChecked||!1!==e.checked?e.checked:null})),w.register(y,this.rowSelectionAllObserver)}}ni([s()],di.prototype,"host",void 0),ni([s({writable:!0})],di.prototype,"checkedAll",void 0),ni([c("connectedCallback")],di.prototype,"connectedCallback",null),ni([c("disconnectedCallback")],di.prototype,"disconnectedCallback",null);var ci=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class hi extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"isTemplateRenderMode",parentStateName:"isTemplateRenderMode"},{subStateName:"isEmptyTable",parentStateName:"currentData",callback:e=>{this.isEmptyTable=0===e.length}}]}),this.updateSelectionType=e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}}}ci([s()],hi.prototype,"host",void 0),ci([s({writable:!0})],hi.prototype,"expandable",void 0),ci([s({writable:!0})],hi.prototype,"selectionType",void 0),ci([s({writable:!0})],hi.prototype,"paddingX",void 0),ci([s({writable:!0})],hi.prototype,"columnDivider",void 0),ci([s({writable:!0})],hi.prototype,"density",void 0),ci([s({writable:!0})],hi.prototype,"isTemplateRenderMode",void 0),ci([s({writable:!0})],hi.prototype,"isEmptyTable",void 0);var pi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const bi=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableHeadRowStateController=new hi,this.vegaTableHeadRowRenderer=new si,this.vegaTableHeadRowController=new di,this.headCellEventPrevent=new re([T],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee(),this.expandable=!1}render(){return b(e("slot",null)),Q(e(o,{class:{"column-divider":this.columnDivider,[`density-${H.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return l(this)}};pi([u()],bi.prototype,"globalSlimmers",void 0),pi([h()],bi.prototype,"vegaTableHeadRowStateController",void 0),pi([h()],bi.prototype,"vegaTableHeadRowRenderer",void 0),pi([h()],bi.prototype,"vegaTableHeadRowController",void 0),pi([h()],bi.prototype,"headCellEventPrevent",void 0),pi([h()],bi.prototype,"pageResizeObserverSlimmer",void 0),pi([h()],bi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),bi.style=":host{display:table-row}:host tr{display:contents}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.column-divider) ::slotted(vega-table-head-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}:host(.density-default) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) th:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) th:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-relaxed) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}:host tr.is-group-row th{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host tr.is-group-row th.hidden{display:none}:host tr.is-group-row th.vega-table-selection-column{border-right-width:1px;border-right-style:solid}:host tr.is-group-row th:first-of-type{border-top-left-radius:0px;border-bottom-left-radius:0px}:host tr.is-group-row th:last-of-type{border-top-right-radius:0px;border-bottom-right-radius:0px}:host tr.is-pinned-row th{position:sticky;z-index:1}:host tr.is-pinned-row th:first-of-type{left:0px}:host tr.is-pinned-row th.vega-table-selection-column{left:8px}:host tr.is-pinned-row th.vega-table-expand-action-column{right:8px}:host tr.is-pinned-row th:last-of-type{right:0px}";var vi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ui extends n{constructor(){super(...arguments),this.renderRowSelection=()=>{if("multiple"===this.selectionType)return e("td",{class:"vega-table-selection-column"},e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",checked:this.checked,onClick:this.handleClick,ref:e=>{O.addUniqueObserverToNode(e,D,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>this.expandable&&e("td",{class:"vega-table-expand-action-column"},e("div",{class:"vega-table-expand-icon-wrapper"},e("vega-icon",{icon:pe.getIconKey("chevron-down"),color:"text-link",onClick:this.onExpandIconClick}))),this.onRowClick=()=>{this.vegaTableRowClickController.handleRowClick()},this.onRowSelectionChange=e=>{"vegaChange"===e.eventName&&this.vegaTableRowSelectionController.handleRowSelect(e.detail)},this.handleClick=e=>{e.stopPropagation(),z.call(E.getSubject(this.parentTableRef,B),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented&&e.preventDefault()},this.onExpandIconClick=async e=>{e.stopPropagation();const t=this.expandEventEmitter.emit({expanded:!this.expanded,rowKey:this.rowKey});t&&!t.defaultPrevented&&this.vegaTableRowExpandController.handleExpandIconClick()}}connectedCallback(){this.setParentTableRef()}getParentTableRef(){return this.parentTableRef}render(){var t,o;return e(i,null,this.renderExpandRowSpace(this.rowKey),e("tr",{class:{"vega-table-row":!0,checked:this.checked,clickable:this.clickable,"current-clicked-row":this.clicked,"expand-row":this.expanded},onClick:this.clickable?this.onRowClick:null},e("td",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]}}),this.renderRowSelection(),e("slot",null),this.renderExpandIcon(),e("td",{style:{width:null===(o=this.paddingX)||void 0===o?void 0:o[1]}})))}renderExpandRowSpace(t){return this.expandable&&e("tr",{key:`vega-table-expand-row-space-${t}`,class:"expand-row-space"})}setParentTableRef(){this.parentTableRef=C(this.host,"vega-table")}}pe.register({"chevron-down":ue}),vi([s()],ui.prototype,"host",void 0),vi([s()],ui.prototype,"rowKey",void 0),vi([s()],ui.prototype,"checked",void 0),vi([s()],ui.prototype,"clickable",void 0),vi([s()],ui.prototype,"clicked",void 0),vi([s()],ui.prototype,"expanded",void 0),vi([s()],ui.prototype,"paddingX",void 0),vi([s()],ui.prototype,"expandable",void 0),vi([s()],ui.prototype,"vegaClick",void 0),vi([s()],ui.prototype,"selectionType",void 0),vi([s()],ui.prototype,"vegaTableRowSelectionController",void 0),vi([s()],ui.prototype,"vegaTableRowExpandController",void 0),vi([s()],ui.prototype,"vegaTableRowClickController",void 0),vi([s()],ui.prototype,"expandEventEmitter",void 0),vi([c("connectedCallback")],ui.prototype,"connectedCallback",null);var fi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class wi extends n{constructor(){super(...arguments),this.handleRowSelect=e=>{this.checked=e,w.notify(m,{host:this.host,checked:e,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver),w.unregister(m,this.rowSelectionObserver)}setChecked(e){this.checked=e}initRowSelectionObserver(){this.rowSelectionAllObserver=new S(St.bind(this),(e=>{(e.checked||!1===e.checked&&e.noneChecked)&&(this.checked=e.checked)})),w.register(y,this.rowSelectionAllObserver),this.rowSelectionObserver=new S(St.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}}fi([s()],wi.prototype,"host",void 0),fi([s()],wi.prototype,"selectionType",void 0),fi([s()],wi.prototype,"rowKey",void 0),fi([s({writable:!0})],wi.prototype,"checked",void 0),fi([c("connectedCallback")],wi.prototype,"connectedCallback",null),fi([c("disconnectedCallback")],wi.prototype,"disconnectedCallback",null);var gi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class mi extends n{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){w.unregister(g,this.rowExpandObserver)}handleExpandIconClick(){z.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),K),{host:this.host,rowKey:this.rowKey,expanded:!this.expanded}).defaultPrevented||(this.expanded=!this.expanded,w.notify(g,{host:this.host,rowKey:this.rowKey,expanded:this.expanded}))}initRowExpandObserver(){this.rowExpandObserver=new S(St.bind({host:this.host}),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.rowExpandObserver)}}gi([s()],mi.prototype,"host",void 0),gi([s()],mi.prototype,"rowKey",void 0),gi([s()],mi.prototype,"expandable",void 0),gi([s({writable:!0})],mi.prototype,"expanded",void 0),gi([s()],mi.prototype,"vegaTableRowRenderer",void 0),gi([c("connectedCallback")],mi.prototype,"connectedCallback",null),gi([c("disconnectedCallback")],mi.prototype,"disconnectedCallback",null);var yi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class xi extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){w.unregister(x,this.rowClickObserver)}handleRowClick(){z.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),B),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented||(w.notify(x,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey}))}initRowClickObserver(){this.rowClickObserver=new S(Rt.bind(this),(e=>{this.clicked=e.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(e.host===this.host&&!this.checked)})),w.register(x,this.rowClickObserver)}}yi([s()],xi.prototype,"host",void 0),yi([s()],xi.prototype,"rowKey",void 0),yi([s({writable:!0})],xi.prototype,"clicked",void 0),yi([s()],xi.prototype,"checked",void 0),yi([s()],xi.prototype,"selectionType",void 0),yi([s()],xi.prototype,"vegaClick",void 0),yi([s()],xi.prototype,"vegaTableRowSelectionController",void 0),yi([s()],xi.prototype,"clickEventEmitter",void 0),yi([s()],xi.prototype,"vegaTableRowRenderer",void 0),yi([c("connectedCallback")],xi.prototype,"connectedCallback",null),yi([c("disconnectedCallback")],xi.prototype,"disconnectedCallback",null);var Ri=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Si extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable="single"===this.selectionType||this.clickable)}}Ri([s()],Si.prototype,"host",void 0),Ri([s({writable:!0})],Si.prototype,"expandable",void 0),Ri([s({writable:!0})],Si.prototype,"clickable",void 0),Ri([s({writable:!0})],Si.prototype,"paddingX",void 0),Ri([s({writable:!0})],Si.prototype,"selectionType",void 0),Ri([s({writable:!0})],Si.prototype,"columnDivider",void 0),Ri([s({writable:!0})],Si.prototype,"density",void 0),Ri([c("watchSelectionType")],Si.prototype,"watchSelectionType",null),Ri([c("componentWillLoad")],Si.prototype,"handleComponentWillLoad",null);var Ci=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const ki=class{constructor(e){r(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.vegaExpand=a(this,"vegaExpand",7),this.expand=a(this,"expand",7),this.globalSlimmers={},this.vegaTableRowRenderer=new ui,this.vegaTableRowSelectionController=new wi,this.vegaTableRowExpandController=new mi,this.vegaTableRowClickController=new xi,this.vegaTableRowStateController=new Si,this.clickEventEmitter=ae(ki,T),this.expandEventEmitter=ae(ki,A),this.checkboxValueChangeEventPrevent=new re([T],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.checkedNotifySlimmer=oe(ki,"checked","watchChecked"),this.expandedNotifySlimmer=oe(ki,"expanded","watchExpanded"),this.stripedNotifySlimmer=oe(ki,"striped","watchStriped"),this.rowDividerNotifySlimmer=oe(ki,"rowDivider","watchRowDivider"),this.currentBreakpoint=ee()}watchSelectionType(){}watchChecked(){}watchExpanded(){}watchStriped(){}watchRowDivider(){}render(){return b(e("slot",null)),Q(e(o,{class:{"row-divider":this.rowDivider,"column-divider":this.columnDivider,striped:this.striped,[`density-${H.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return l(this)}static get watchers(){return{selectionType:["watchSelectionType"],checked:["watchChecked"],expanded:["watchExpanded"],striped:["watchStriped"],rowDivider:["watchRowDivider"]}}};Ci([u()],ki.prototype,"globalSlimmers",void 0),Ci([h()],ki.prototype,"vegaTableRowRenderer",void 0),Ci([h()],ki.prototype,"vegaTableRowSelectionController",void 0),Ci([h()],ki.prototype,"vegaTableRowExpandController",void 0),Ci([h()],ki.prototype,"vegaTableRowClickController",void 0),Ci([h()],ki.prototype,"vegaTableRowStateController",void 0),Ci([h()],ki.prototype,"clickEventEmitter",void 0),Ci([h()],ki.prototype,"expandEventEmitter",void 0),Ci([h()],ki.prototype,"checkboxValueChangeEventPrevent",void 0),Ci([h()],ki.prototype,"pageResizeObserverSlimmer",void 0),Ci([h()],ki.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ci([h()],ki.prototype,"checkedNotifySlimmer",void 0),Ci([h()],ki.prototype,"expandedNotifySlimmer",void 0),Ci([h()],ki.prototype,"stripedNotifySlimmer",void 0),Ci([h()],ki.prototype,"rowDividerNotifySlimmer",void 0),ki.style=":host{display:contents}:host(.v-hidden){display:none}td{padding:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.striped) .vega-table-row:not(.checked):not(.clickable:hover) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.checked td{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:not(.checked).clickable:hover{cursor:pointer}:not(.checked).clickable:hover td{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper vega-icon{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;cursor:pointer}.vega-table-row.expand-row .vega-table-expand-icon-wrapper vega-icon{transform:rotate(180deg)}:host tr.expand-row td{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host tr.expand-row td:first-of-type{border-left-width:1px;border-top-width:1px;border-bottom-left-radius:0px}:host tr.expand-row td:last-of-type{border-right-width:1px;border-top-width:1px;border-bottom-right-radius:0px}tr.expand-row-space{display:block;padding-top:8px}:host(.row-divider:not(:last-of-type)) td{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.row-divider:not(:last-of-type)) td:first-of-type,:host(.row-divider:not(:last-of-type)) td:last-of-type{border-radius:0px}:host(.density-default) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) tr.expand-row-space{display:block;padding-top:8px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-compact) tr.expand-row-space{display:block;padding-top:4px}:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-relaxed) tr.expand-row-space{display:block;padding-top:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";export{nt as vega_table,ct as vega_table_body,wt as vega_table_cell,Lt as vega_table_expand_row,Pt as vega_table_foot,Bt as vega_table_foot_cell,Ht as vega_table_foot_row,Qt as vega_table_head,ai as vega_table_head_cell,bi as vega_table_head_row,ki as vega_table_row}
|
package/dist/vega/p-5585d2b5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as o}from"./p-161b9c5b.js";import{R as f}from"./p-18bcfd7a.js";function i(i,r,s,e){return o(i)?{flex:`${f.formatCustom(i)}`}:{flexGrow:o(r)?`${f.formatCustom(r)}`:void 0,flexShrink:o(s)?`${f.formatCustom(s)}`:void 0,flexBasis:o(e)?`${f.formatCustom(e)}`:void 0}}export{i as f}
|
package/dist/vega/p-58f5da43.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-1282b67e.js";import{c as s,d as n}from"./p-7ac32e71.js";import{c as r}from"./p-02841589.js";import{L as i}from"./p-6e1ab235.js";import{i as o}from"./p-161b9c5b.js";import{g as c}from"./p-a4670e23.js";import{V as a}from"./p-ef9cbad1.js";import{c as l}from"./p-bf19682d.js";import{f as h}from"./p-d9671d27.js";var u,d;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(u||(u={}));class p{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(d||(d={}));class f extends p{}const T=new class{constructor(){this.domToEntity=new WeakMap,this.entityToDOM=new WeakMap,this.contentEntityToRootDom=new Map,this.rootDomToContentEntity=new WeakMap}register(t,e){this.isVegaRTEContent(e)?this.registerRootDomAndContentEntity(t,e):(this.domToEntity.set(t,e),this.entityToDOM.set(e,t))}getEntityByDOM(t){return this.domToEntity.get(t)}getDOMByEntity(t){return this.isVegaRTEContent(t)?this.contentEntityToRootDom.get(t):this.entityToDOM.get(t)}removeDirtyDomRef(t){this.domToEntity.delete(t)}registerRootDomAndContentEntity(t,e){const s=this.rootDomToContentEntity.get(t);s&&s!==e&&this.contentEntityToRootDom.delete(s),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.constructor.name}};var x,E,g,w;!function(t){t.DELETE_CHILDREN="DELETE_CHILDREN",t.DELETE_NEST_LIST="DELETE_NEST_LIST",t.UPDATE_TEXT="UPDATE_TEXT",t.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",t.APPEND_CHILDREN="APPEND_CHILDREN",t.INSERT_CHILDREN_AFTER="INSERT_CHILDREN_AFTER",t.INSERT_CHILDREN_BEFORE="INSERT_CHILDREN_BEFORE",t.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",t.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",t.REPLACE_NEST_LIST="REPLACE_NEST_LIST",t.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",t.INSERT_NEW_PARAGRAPH="INSERT_NEW_PARAGRAPH",t.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",t.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",t.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",t.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",t.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",t.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",t.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL",t.TRANSFORM_TO_CODE_BLOCK="TRANSFORM_TO_CODE_BLOCK",t.UPDATE_CODE_BLOCK="UPDATE_CODE_BLOCK",t.SWITCH_OUT_FROM_CODE_BLOCK="SWITCH_OUT_FROM_CODE_BLOCK",t.DELETE_CODE_BLOCK="DELETE_CODE_BLOCK",t.UNLINK_LINK_GROUP="UNLINK_LINK_GROUP",t.LINK_GROUP_NODE_SPLIT="LINK_GROUP_NODE_SPLIT",t.DELETE_LINK_GROUP="DELETE_LINK_GROUP",t.UPDATE_CURSOR_POSITION="UPDATE_CURSOR_POSITION",t.INSERT_TEXT_TO_DECORATOR_NODE="INSERT_TEXT_TO_DECORATOR_NODE",t.INSERT_NODE_TO_NEAREST_ROOT="INSERT_NODE_TO_NEAREST_ROOT",t.PASTE_CONTENT="PASTE_CONTENT"}(x||(x={}));class m{constructor(){this.isFlushable=!1}}class A extends p{constructor(t){super(),this.type=u.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}clone(){const t=new A("");return this.linkGroups.forEach(((e,s)=>{t.linkGroups.set(s,e.map((t=>t.clone(t.parent))))})),t}toString(t,e){const s=this.toJsx(t,e);return Object.entries(s).map((([t,e])=>{const s="string"==typeof e?e:this.formatStyleToString(e);return`${r(t)}="${s}"`})).join(" ")}toJsx(t,e){const s=this.getStyle(t,e),n=this.getClass(t,e),r=this.getAttribute(t);return n.length>0&&(r.class=n.join(" ")),s&&Object.keys(s).length>0&&(r.style=s),r}getClass(t,e){const s=[];return t.link.customClass&&s.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&s.push("v-rte--link"),s}getStyle(t,e){const s={};return t.link.customStyle&&Object.assign(s,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&(s.color="rgba(var(--v-text-link, 19, 98, 226, 1))"),s}getAttribute(t){const{href:e,customAttribute:s={}}=t.link,n=t.useInternalStyle,r=s.target||(n?"_blank":"");return Object.assign(Object.assign(Object.assign({},s),e||n?{href:e}:{}),r?{target:r}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${r(t)}: ${e};`)).join(" ")}}class N extends f{constructor(t){super(),this.type=d.ALIGNMENT,this.textAlign=t}static from(t){return[d.ALIGNMENT,new N(t)]}toJSON(){return{textAlign:this.textAlign}}renderClass(t){if(null==t?void 0:t.standalone)return null;switch(this.textAlign){case"right":case"center":case"justify":return`v-rte--horizontal-alignment-${this.textAlign}`;case"left":default:return"v-rte--horizontal-alignment-left"}}clone(){return new N(this.textAlign)}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;switch(this.textAlign){case"right":case"center":case"justify":return{textAlign:this.textAlign};case"left":default:return{textAlign:"left"}}}}class O extends f{constructor(t){super(),this.type=d.INDENT,this.indent=Math.max(0,t)}static from(t){return[d.INDENT,new O(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new O(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class R{static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).has(t)||this.registry.get(e).set(t,new Set),this.registry.get(e).get(t).add(s)}static unregister(t,e,s){const n=this.registry.get(e);if(n){const e=n.get(t);e&&e.delete(s)}}static get(t,e){const s=t instanceof m?t.type:t.constructor.name,n=this.registry.get(e.constructor.name);if(n){const r=n.get(s);if(r&&r.size>0)return Array.from(r).find((s=>s.canIntercept(t,e)))}}}R.registry=new Map;class y{static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,s)}static unregister(t,e){const s=this.registry.get(e);s&&s.delete(t)}static get(t,e){const s=this.registry.get(e);if(s)return s.get(t)}static executeTheStrategy(t,e){const s=R.get(t,e),n=()=>{const s=t instanceof m?t.type:t.constructor.name,n=y.get(s,e.constructor.name);if(n)return t.executedFlag=!0,n.execute(t,e);i.warn(`Type ${s} action handle strategy is not registered in class ${e.constructor.name}`)};return s?s.intercept(n,t,e):n()}static canHandle(t,e){return!!y.get(t,e.constructor.name)}}y.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(E||(E={}));class S extends p{}class C extends S{constructor(t){super(),this.type=E.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[E.CUSTOM_ATTRIBUTE,new C(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new C(this.customAttribute)}toString(t=[]){const e=t.map((t=>t.split("=")[0]));return Object.keys(this.customAttribute).map((t=>e.includes(t)?null:`${t}="${this.customAttribute[t]}"`)).filter(o)}render(t={}){var e;const s=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete s[t])),Object.keys(s).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===s[t]&&(s[t]="true")})),s}}class b extends S{constructor(t){super(),this.type=E.CUSTOM_CLASS,this.customClass=t}static from(t){return[E.CUSTOM_CLASS,new b(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new b(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class k extends S{constructor(t){super(),this.type=E.CUSTOM_STYLE,this.customStyle=t}static from(t){return[E.CUSTOM_STYLE,new k(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new k(this.customStyle)}renderStyle(){return this.customStyle}removeStyles(t){const e=Object.assign({},this.customStyle);return t.forEach((t=>delete e[t])),e}toString(){return`style="${Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" ")}"`}}class B extends f{constructor(t){super(),this.type=d.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[d.INTERNAL_WRAPPER,new B(t)]}clone(){return new B(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}!function(t){t.BOLD="BOLD",t.ITALIC="ITALIC",t.UNDERLINE="UNDERLINE",t.STRIKETHROUGH="STRIKETHROUGH",t.SELECTION_RANGE="SELECTION_RANGE",t.IMAGE="IMAGE",t.CODE="CODE",t.TEXT_COLOR="TEXT_COLOR",t.LINK="LINK",t.INLINE_HTML="INLINE_HTML",t.PLAIN_TEXT="PLAIN_TEXT"}(g||(g={}));class v extends p{}class _{constructor(t){this.dtoType=t instanceof RTEBlock?"block":"node",this.annotationMap=t.annotationMap}toCssText(t={standalone:!1},e,s){return s=s||this.toJSON(t,e),Object.entries(Object.assign({},s)).map((([t,e])=>`${r(t)}: ${e};`)).join("")}toJSON(t={standalone:!1},e){const s=Array.from(this.annotationMap.values()).filter((t=>this.filterAnnotation(t)||t instanceof k)).map((e=>e.renderStyle(t))).filter(o);return e&&e.length>0?this.mergeAnnotationStyles(s,e):s.reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})}filterAnnotation(t){return"block"===this.dtoType?t instanceof f:t instanceof v}mergeAnnotationStyles(t,e){const s={};for(const n of t)for(const t in n){const r=n[t],i=s[t];s[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return s}}!function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(w||(w={}));class RTENode{constructor(t,e){this.annotationMap=new Map,this.id=t,e&&(this.annotationMap=e)}static from(t,e,s){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${s}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return C.from(e);case"customClass":return b.from(e);case"customStyle":return k.from(e)}}getAnnotationByType(t){return this.annotationMap.get(t)}deleteAnnotationByType(t){this.annotationMap.delete(t),this.flushChange()}apply(t){return this.doApply(t),t.isFlushable&&this.flushChange(),this}getStyles(t={standalone:!1}){return new _(this).toJSON(t,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof v||t instanceof b)).map((e=>e.renderClass(t))).filter(o).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(E.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}getElementRef(){return T.getDOMByEntity(this)}generateAttributeString(...t){var e;const s=new _(this).toCssText({standalone:!0},["textDecoration"]),n=this.annotationMap.get(E.CUSTOM_CLASS),r=[...(null===(e=this.getCustomAttributesAnnotation())||void 0===e?void 0:e.toString(t))||[],null==n?void 0:n.toString(),s?`style="${s}"`:null,...t].filter(o);return r.length?` ${r.join(" ")}`:""}doApply(t){t instanceof m?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const n=T.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}}const L=new class{constructor(){this.RTE_BLOCK_DTO_CLASS_MAP=new Map,this.RTE_NODE_DTO_CLASS_MAP=new Map}registerRTEDTOClass(t,e){if(e.prototype instanceof RTEBlock)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof RTENode))throw new Error(`Invalid RTE DTO class type: ${t}`);this.RTE_NODE_DTO_CLASS_MAP.set(t,e)}}getRTEBlockClass(t){return this.RTE_BLOCK_DTO_CLASS_MAP.get(t)}getRTENodeClass(t){return this.RTE_NODE_DTO_CLASS_MAP.get(t)}};class RTEBlock{constructor(t){this.annotationMap=new Map,this.id=t}static from(t,e){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}) is not implemented. Please implement this method in the subclass.`)}static generateBlockChildren(t,e,s){return t.map((t=>{const n=L.getRTEBlockClass(t.type);if(n){const r=n.from(t,e);return r.parent=s,r}})).filter(o)}static createAnnotationEntity(t,e){switch(t){case"textAlign":return N.from(e);case"indent":return O.from(e);case"customAttribute":return C.from(e);case"customClass":return b.from(e);case"customStyle":return k.from(e);case"internalWrapper":return B.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,s])=>{const n=this.createAnnotationEntity(e,s);o(n)&&t.set(...n)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(d.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof A||t instanceof B))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof S)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{})}getAnnotationByType(t){return this.annotationMap.get(t)}apply(n){if(this.doApply(n),n.isFlushable){const n=T.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}getFirstNode(){if(!this.children||!this.children[0])return null;const t=this.children[0];return t instanceof RTEBlock?t.getFirstNode():t}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){const e=new _(this).toJSON(t);return Object.assign(Object.assign({},e),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof b)).map((e=>e.renderClass(t))).filter(o).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(E.CUSTOM_ATTRIBUTE)}generateAttributeString(...t){var e;const s=new _(this).toCssText({standalone:!0}),n=this.annotationMap.get(E.CUSTOM_CLASS),r=[...(null===(e=this.getCustomAttributesAnnotation())||void 0===e?void 0:e.toString(t))||[],null==n?void 0:n.toString(),s?`style="${s}"`:null,...t].filter(o);return r.length?` ${r.join(" ")}`:""}doApply(t){t instanceof m?y.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();e instanceof A||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply&&this.doAnnotationActionApply(t)}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}class j{}class D extends j{constructor(){super(...arguments),this.doSplit=!0}}class I extends p{constructor(t){super(),this.type=u.SELECTION_RANGE,this.range=t}clone(){return new I(this.range)}}class $ extends v{constructor(t){super(),this.type=g.STRIKETHROUGH,this.strikethrough=t}static from(t){return[g.STRIKETHROUGH,new $(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new $(this.strikethrough)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.strikethrough?"v-rte--strikethrough":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.strikethrough?{textDecoration:"line-through"}:null}}class M extends v{constructor(t){super(),this.type=g.UNDERLINE,this.underline=t}static from(t){return[g.UNDERLINE,new M(t)]}toJSON(){return{underline:this.underline}}clone(){return new M(this.underline)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.underline?"v-rte--underline":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.underline?{textDecoration:"underline"}:null}}class H extends v{constructor(t){super(),this.type=g.ITALIC,this.italic=t}static from(t){return[g.ITALIC,new H(t)]}toJSON(){return{italic:this.italic}}clone(){return new H(this.italic)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.italic?"v-rte--italic":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.italic?{fontStyle:"italic"}:null}}class P extends v{constructor(t){super(),this.type=g.BOLD,this.bold=t}static from(t){return[g.BOLD,new P(t)]}toJSON(){return{bold:this.bold}}clone(){return new P(this.bold)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.bold?"v-rte--bold":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.bold?{fontWeight:"700"}:null}}class F extends v{constructor(t,e=!0){super(),this.type=g.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[g.CODE,new F(t,e)]}toJSON(){return{code:this.code}}clone(){return new F(this.code,this.useInternalStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.code&&this.useInternalStyle?"v-rte--code":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.code&&this.useInternalStyle?{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}:null}}const J={key:"black",light:"#111128",dark:"#E3E3E8"},K=[J,{key:"gray",light:"#5E5E6D",dark:"#B9B9C1"},{key:"green",light:"#01801F",dark:"#59D977"},{key:"red",light:"#BD2947",dark:"#FFB2B5"},{key:"purple",light:"#563D82",dark:"#BEB2FF"},{key:"teal",light:"#17758F",dark:"#4CD8FF"}],U="",W=[["textStyles"],["bold","italic","underline","strikethrough","code"],["textColor"],["horizontalAlignment","bulletsNumbers"],["moreIndent","lessIndent"],["link"],["image"],["clearStyle"]];class G extends v{constructor(t){super(),this.type=g.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[g.TEXT_COLOR,new G(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new G(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:a.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return K.find((e=>e.key===t))||K[0]}}class z extends v{constructor(t,e=!0){super(),this.type=g.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[g.LINK,new z(t,e)]}toJSON(){return{link:this.link}}clone(){return new z(this.link,this.useInternalStyle)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class V extends j{constructor(t,e,s){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=s}toAnnotation(){return new A(this.groupKey)}}class X extends j{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class q{execute(t,e){return i.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const s=t.annotationMap.get(E.CUSTOM_STYLE);s&&this.isCustomStyle(s,e)&&t.annotationMap.set(s.type,new k(s.removeStyles(e)))}createNewParagraph(t){const e=L.getRTEBlockClass("paragraph");if(e)return e.from({id:c(),type:"paragraph",nodes:[{id:c(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.constructor.name?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,s){return e===t.children[0]&&0===s}isCaretPositionAtBlockEnd(t,e,s){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,s):this.isCaretPositionAtDecoratorBlockEnd(t,e,s)}isCaretPositionAtTextBlockEnd(t,e,s){const n=t.children[t.children.length-1];return e===n&&(e.isEmpty()||s===n.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,s){return e===t.children[t.children.length-1]&&0!==s}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class Y extends m{constructor(t){super(),this.type=x.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class Q extends q{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const s=e.getAnnotationByType(u.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof D&&t.doSplit&&s){const{startContainer:t,endContainer:n,startOffset:r,endOffset:i}=s.range,o=t===n&&r===i;e.parent.children=e.parent.children.flatMap((t=>{if(t.id===e.id){if(o)return this.insertNewNode(r,e);if(this.shouldSplitSelection(s.range)&&e.isContentEditable()){const n=this.splitTextNode(s.range,e);return t.annotationMap.has("LINK")&&t.apply(new Y(n)),n}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const s=e.cloneWithText("");this.setApplyTargetNode(s);const n=e.parent.children.findIndex((t=>t===e));return 0===t||!e.isContentEditable()&&t===n?[s,e]:t===e.text.length||!e.isContentEditable()&&t===n+1?[e,s]:[e.cloneWithText(e.text.substring(0,t)),s,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:s,startOffset:n,endOffset:r}=t;return e!==s||n>0||r<(s.textContent?s.textContent.length:0)}splitTextNode(t,e){const{startContainer:s,endContainer:n,startOffset:r}=t,i=s.parentElement,o=n.parentElement,c=(t,s,n)=>{const r=t.substring(0,s),i=t.substring(s,n),o=t.substring(n);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},a=i&&T.getEntityByDOM(i),l=o&&T.getEntityByDOM(o);if(a&&a.id===e.id){const i=s===n?t.endOffset:e.text.length,[o,a,l]=c(e.text,r,i);return this.setApplyTargetNode(a),[o,a,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[s,n,r]=c(e.text,0,t.endOffset);return this.setApplyTargetNode(n),[s,n,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class Z extends D{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new P(this.bold)}}class tt extends p{constructor(){super(...arguments),this.type=u.CLEAR_FORMATTING,this.items=[g.BOLD,g.ITALIC,g.UNDERLINE,g.STRIKETHROUGH,g.TEXT_COLOR,g.CODE,E.CUSTOM_STYLE]}}class et extends D{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new tt}}class st extends D{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new F(this.code)}}class nt extends j{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class rt extends D{constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new H(this.italic)}}class it extends D{constructor({link:t,newText:e,needMergeNode:s,doSplit:n,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=s,this.newText=e,this.type=r,o(n)&&(this.doSplit=n)}toAnnotation(){return new z(this.link)}}class ot extends D{constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new $(this.strikethrough)}}class ct extends D{constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new M(this.underline)}}class at extends q{handleAction(t,e){const s=t.toAnnotation();if(t instanceof nt)e.annotationMap.delete(t.annotationType);else{if(!(s instanceof tt))return s instanceof v||s instanceof I?(t instanceof it&&(o(t.newText)&&(e.text=t.newText),e.parent.apply(new V(t.link.groupKey,[e],t.type))),t instanceof st&&this.handleAction(new et,e),t instanceof Z&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof rt&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof ct||t instanceof ot)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(s.type,s)):void 0;s.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class lt extends m{constructor(){super(...arguments),this.type=x.DELETE_LINK_GROUP}}class ht extends q{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new lt)}}class ut extends m{constructor(t){super(),this.type=x.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class dt extends q{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,s){if(e&&e.startContainer&&e.endContainer){const{startContainer:n,endContainer:r,startOffset:i,endOffset:o}=e;let c=s.text;if(n===r&&i===o&&t)c=s.text.slice(0,i)+t+s.text.slice(i);else{const e=n.parentElement,a=r.parentElement,l=e&&T.getEntityByDOM(e),h=a&&T.getEntityByDOM(a);let u=0,d=s.text.length;l&&l===s?(u=i,d=n===r?o:d):h&&h===s&&(d=o),c=s.text.slice(0,u)+t+s.text.slice(d)}s.apply(new ut(c))}}}class pt extends p{constructor(t){super(),this.type=g.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:s,customStyle:n,customClass:r,customAttribute:i}=t,o=new pt(e);return o.child=s?pt.from(s)[1]:void 0,o.customAttribute=i?C.from(i)[1]:void 0,o.customClass=r?b.from(r)[1]:void 0,o.customStyle=n?k.from(n)[1]:void 0,[g.INLINE_HTML,o]}clone(){var t,e,s,n;const r=new pt(this.htmlTag);return r.child=null===(t=this.child)||void 0===t?void 0:t.clone(),r.customAttribute=null===(e=this.customAttribute)||void 0===e?void 0:e.clone(),r.customClass=null===(s=this.customClass)||void 0===s?void 0:s.clone(),r.customStyle=null===(n=this.customStyle)||void 0===n?void 0:n.clone(),r}toJSON(){var t,e,s,n;return{inlineHtml:l({htmlTag:this.htmlTag,child:null===(t=this.child)||void 0===t?void 0:t.toJSON().inlineHtml,customAttribute:null===(e=this.customAttribute)||void 0===e?void 0:e.toJSON().customAttribute,customClass:null===(s=this.customClass)||void 0===s?void 0:s.toJSON().customClass,customStyle:null===(n=this.customStyle)||void 0===n?void 0:n.toJSON().customStyle})}}}class ft extends q{handleAction(t,e){const s=e.parent.getAnnotationByType(u.LINK_GROUP);if(s){const n=e.annotationMap.get("LINK").link.groupKey,r=s.linkGroups.get(n);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),s.linkGroups.set(n,r))}}}}class Tt extends q{handleAction(t,e){const s=e.parent.getAnnotationByType(u.LINK_GROUP);if(s){const t=e.annotationMap.get(g.LINK).link.groupKey,n=s.linkGroups.get(t);if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&s.linkGroups.delete(t),0===s.linkGroups.size&&e.parent.annotationMap.delete(u.LINK_GROUP)}}e.annotationMap.delete(g.LINK)}}class xt extends v{constructor(t){super(),this.type=g.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[g.PLAIN_TEXT,new xt(t)]}clone(){return new xt(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return{plainText:this.plainText}}}class Et extends D{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new G(this.textColor)}}class RTETextNode extends RTENode{constructor(t,e,s,n){super(t,n),this.type=w.TEXT,this.parent=s,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,s={autoMatchFormat:!0}){const n=new RTETextNode(t.id,t.text,e),{annotations:r}=t;return r&&(n.annotationMap=this.generateTextAnnotationMap(r,s,e,n)),n}static generateTextAnnotationMap(t,e,s,n){return new Map(Object.keys(t).map((r=>("link"===r&&t.link&&s&&n&&s.apply(new V(t.link.groupKey,[n],"link")),this.createAnnotationEntity(r,t[r],e)))).filter(o))}static createAnnotationEntity(t,e,s){const n=!(!s||!s.autoMatchFormat);switch(t){case"bold":return P.from(e);case"italic":return H.from(e);case"underline":return M.from(e);case"strikethrough":return $.from(e);case"code":return F.from(e,n);case"textColor":return G.from(e);case"link":return z.from(e,n);case"inlineHtml":return pt.from(e);case"plainText":return xt.from(e)}return RTENode.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof v||t instanceof S||t instanceof pt)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"text",text:this.text})}toHtml(){const t=this.getAnnotationByType(g.INLINE_HTML);return t?this.renderWithWrapperStr(t):this.renderTextStr()}cloneWithText(t){return new RTETextNode(c(),t,this.parent,super.cloneAnnotations())}clone(t){return new RTETextNode(this.id,this.text,t,super.cloneAnnotations())}isEmpty(){return!this.text||""===this.text||"\n"===this.text}isTextNode(){return!0}getRangeEndOffset(){return!this.isContentEditable()&&this.parent?this.parent.children.indexOf(this)+1:"\n"===this.text?0:this.text.length}getRangeContainer(){const t=this.getElementRef();if(t)return this.isContentEditable()?t.firstChild:t.parentElement}isContentEditable(){return!0}registerModifyStrategy(){const t=this.constructor.name;RTETextNode.registerActionStrategyStatus[t]||(this.isContentEditable()&&(y.register(x.UPDATE_TEXT,t,new ht),y.register(x.REPLACE_SELECTED_TEXT,t,new dt),y.register(x.LINK_GROUP_NODE_SPLIT,t,new ft),y.register(it.name,t,new at)),y.register(D.name,t,new Q),y.register(x.DELETE_LINK_GROUP,t,new Tt),y.register(Z.name,t,new at),y.register(et.name,t,new at),y.register(rt.name,t,new at),y.register(ct.name,t,new at),y.register(Et.name,t,new at),y.register(ot.name,t,new at),y.register(st.name,t,new at),y.register(j.name,t,new at),RTETextNode.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(u.SELECTION_RANGE);if(t instanceof D&&t.doSplit&&e){const e=y.get(D.name,this.constructor.name);if(e){const s=e.execute(t,this);s&&this.applyActionToNode(s,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){y.executeTheStrategy(t,this)}applyActionToNode(t,e){const s=e.toAnnotation();if(e instanceof X)return void this.syncUpSelectedNodes(t);s instanceof I||this.syncUpSelectedNodes(t);const n=y.get(e.constructor.name,t.constructor.name);if(n)return void n.execute(e,t);const r=y.get(j.name,RTETextNode.name);r&&r.execute(e,t)}syncUpSelectedNodes(s){const r=this.getElementRef();if(r){const i=e.getSubjectFromParentNodeByEventId(r,n);i&&t.notify(i,{node:s})}}renderWithWrapperStr(t){const{htmlTag:e,customAttribute:s,customClass:n,customStyle:r,child:i}=t,c=[...(null==s?void 0:s.toString())||[],null==n?void 0:n.toString(),null==r?void 0:r.toString()].filter(o),a=c.length>0?` ${c.join(" ")}`:"";return i?`<${e}${a}>${this.renderWithWrapperStr(i)}</${e}>`:`<${e}${a}>${this.renderTextStr()}</${e}>`}renderTextStr(){var t;const e=(null===(t=this.getAnnotationByType(g.CODE))||void 0===t?void 0:t.code)?"code":"span",s=super.generateAttributeString();return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${e}${s}>${this.text}</${e}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(g.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof v&&!(t instanceof z)&&!(t instanceof xt)||t instanceof S)).length}}RTETextNode.registerActionStrategyStatus={},RTETextNode.htmlTag="span";class gt extends m{constructor(t){super(),this.type=x.APPEND_CHILDREN,this.entityToBeAppended=t}}class wt extends f{constructor(t){super(),this.type=d.TEXT_STYLE,this.textStyle=t}static from(t){return[d.TEXT_STYLE,new wt(t)]}toJSON(){return{textStyle:this.textStyle}}clone(){return new wt(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",minHeight:"22px",fontWeight:"500"},s=Object.assign(Object.assign({},e),{marginTop:"0px",marginBottom:"0px"});switch(this.textStyle){case"paragraph":return s;case"title":return Object.assign(Object.assign({},e),{fontSize:"36px",lineHeight:"40px",minHeight:"40px"});case"subtitle":return Object.assign(Object.assign({},e),{fontSize:"28px",lineHeight:"32px",minHeight:"32px"});case"heading-1":return Object.assign(Object.assign({},e),{fontSize:"22px",lineHeight:"24px",minHeight:"24px",marginTop:"0px",marginBottom:"0px"});case"heading-2":return Object.assign(Object.assign({},e),{fontSize:"20px",lineHeight:"24px",minHeight:"24px",marginTop:"0px",marginBottom:"0px"});case"heading-3":return Object.assign(Object.assign({},e),{fontSize:"18px",lineHeight:"22px",minHeight:"22px",marginTop:"0px",marginBottom:"0px"});case"heading-4":return Object.assign(Object.assign({},e),{fontSize:"16px",lineHeight:"22px",minHeight:"22px",marginTop:"0px",marginBottom:"0px"});case"heading-5":return Object.assign(Object.assign({},e),{fontSize:"14px",lineHeight:"22px",minHeight:"22px",marginTop:"0px",marginBottom:"0px"});case"heading-6":return Object.assign(Object.assign({},e),{fontSize:"12px",lineHeight:"22px",minHeight:"22px",marginTop:"0px",marginBottom:"0px"})}}}class mt extends j{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new wt(this.textStyle)}}class At extends q{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new Z(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new nt(g.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}class Nt extends m{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class Ot extends m{constructor(t){super(),this.type=x.REPLACE_CHILD_NODES,this.newChildNodes=t}}class Rt extends q{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,s){if(t){const n=t.text.slice(0,e),r=t.text.slice(e),i=s.children.indexOf(t);if(i>-1){const e=s.children.slice(0,i),o=s.children.slice(i+1);n&&e.push(t.cloneWithText(n)),r&&o.unshift(t.cloneWithText(r)),s.apply(new Ot(e));const c=s.cloneWithNodes(o);return s.parent.apply(new Nt(s,c)),c}}}}class yt extends q{handleAction(t,e){e.children=[],e.apply(new gt(t.newChildNodes))}}class St extends m{constructor(t){super(),this.type=x.DELETE_CHILDREN,this.entityToBeRemoved=t}}class Ct extends q{handleAction(t,e){const s=t.blockNeedToBeMerged;if(e.type===s.type||"image"!==e.type&&"image"!==s.type){let t=s.children;"image"!==s.type&&(t=s.children.filter((t=>t.text))),e.apply(new gt(t)),s.parent.apply(new St(s))}}}class bt extends q{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,s){if(t){const n=new RTETextNode(c(),"\n",s),r=t.text.slice(0,e),i=t.text.slice(e),o=s.children.indexOf(t);if(o>-1){const e=s.children.slice(0,o),c=s.children.slice(o+1);r&&e.push(t.cloneWithText(r)),i&&c.unshift(t.cloneWithText(i)),this.mergeLineBreakNodes(e,n,c,s)}return n}}mergeLineBreakNodes(t,e,s,n){(0===s.length||s[0]&&""===s[0].text)&&s.push(new RTETextNode(c(),"\n",n,t[t.length-1]&&t[t.length-1].annotationMap)),n.apply(new Ot([...t,e,...s]))}}class kt extends q{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const s=e.children,n=new RTETextNode(c(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(s,n,r,e),n}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new St(t)))})),e}mergeLineBreakNodes(t,e,s,n){(0===s.length||s[0]&&""===s[0].text)&&s.push(new RTETextNode(c(),"\n",n,t[t.length-1]&&t[t.length-1].annotationMap)),n.apply(new Ot([...t,e,...s]))}}class Bt extends m{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class vt extends m{constructor(t,e){super(),this.type=x.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}class _t extends j{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new N(this.textAlign)}}class Lt extends q{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class jt extends j{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new O(this.indent)}}class RTETextBlock extends RTEBlock{constructor(t,e,s){super(t),this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&(this.annotationMap=RTETextBlock.isAcceptableTextStyle(e)?new Map([wt.from(e)]):new Map([wt.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var s,n;const r=new RTETextBlock(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(n=null===(s=t.annotations)||void 0===s?void 0:s.textStyle)&&void 0!==n?n:r.type}):t.annotations;return r.children=t.nodes.map((t=>{const s=L.getRTENodeClass(t.type);if(s)return s.from(t,r,e)})).filter(o),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static createAnnotationEntity(t,e){return"textStyle"===t?wt.from(e):super.createAnnotationEntity(t,e)}static isAcceptableTextStyle(t){return["title","subtitle","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"].includes(t)}mergeNodes(t){this.children=this.children.reduce(((e,s)=>{const n=e.at(-1);if(t instanceof it&&t.needMergeNode){const t=null==n?void 0:n.getAnnotationByType(g.LINK),r=s.getAnnotationByType(g.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,s]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(){const t=this.getBlockTag(),e=super.generateAttributeString(),s=this.getChildrenHtml();return super.shouldRenderAsInternalWrapper()?s:[`<${t}${e}>`,s,`</${t}>`].join("")}cloneWithNodes(t){const e=new RTETextBlock(c(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new gt(t)),e}clone(t){const e=new RTETextBlock(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}isNotEmpty(){return this.children.length>0&&this.children.some((t=>!t.isEmpty()))}getLastNode(){return this.children[this.children.length-1]}getBlockTag(){switch(this.type){case"title":case"subtitle":return"div";case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"heading-4":return"h4";case"heading-5":return"h5";case"heading-6":return"h6";case"paragraph":default:return"p"}}getChildrenHtml(){const t=this.getAnnotationByType(u.LINK_GROUP);let e=this.children.map((t=>t.toHtml())).join("");return t&&this.children.length>0&&(e=this.generateLinkHtml(t,e)),e}doAnnotationActionApply(t){const e=y.get(t.constructor.name,RTETextBlock.name);e&&e.execute(t,this)}generateLinkHtml(t,e){e="";let s=[];for(let n=0;n<this.children.length;n++){const r=this.children[n].getAnnotationByType(g.LINK),i=this.children[n+1]?this.children[n+1].getAnnotationByType(g.LINK):null;if(r){if(s.push(this.children[n]),!i||r.link.groupKey!==i.link.groupKey){const n=t.toString(r,{standalone:!0});e+=[`<a${n?` ${n}`:""}>`,s.map((t=>t.toHtml())).join(""),"</a>"].join(""),s=[]}}else e+=this.children[n].toHtml()}return e}}y.register(mt.name,RTETextBlock.name,new At),y.register(_t.name,RTETextBlock.name,new Lt),y.register(jt.name,RTETextBlock.name,new class extends q{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),y.register(V.name,RTETextBlock.name,new class extends q{handleAction(t,e){let s=e.getAnnotationByType(u.LINK_GROUP);if("update_link"===t.type){if(s){const e=s.linkGroups.get(t.groupKey);e&&s.linkGroups.set(t.groupKey,[e[0]])}}else{if(s){const e=s.linkGroups.get(t.groupKey)||[];s.linkGroups.set(t.groupKey,[...e,...t.nodes])}else s=t.toAnnotation(),s.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(u.LINK_GROUP,s)}}}),y.register(x.UNLINK_LINK_GROUP,RTETextBlock.name,new class extends q{handleAction(t,e){const s=e.getAnnotationByType(u.LINK_GROUP);s&&(s.linkGroups.size>1?s.linkGroups.delete(t.groupKey):e.annotationMap.delete(u.LINK_GROUP))}}),y.register(x.SPLIT_BLOCK_WITH_NODE,RTETextBlock.name,new Rt),y.register(x.REPLACE_CHILD_NODES,RTETextBlock.name,new yt),y.register(x.MERGE_TWO_BLOCKS_NODES,RTETextBlock.name,new Ct),y.register(x.LINE_BREAK_SINGLE_BLOCK,RTETextBlock.name,new bt),y.register(x.LINE_BREAK_MULTIPLE_BLOCKS,RTETextBlock.name,new kt),y.register(x.INSERT_IMAGE_TO_BLOCK,RTETextBlock.name,new class extends q{handleAction(t,e){const s=t.splitPointNode,n=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,s,n))e.parent.apply(new Nt(e,r));else if(this.isCaretPositionAtBlockStart(e,s,n))e.parent.apply(new Bt(e,r));else{const t=new vt(s,n);e.apply(t),e.parent.apply(new Nt(e,r))}}}),y.register(x.TRANSFORM_LIST_BLOCK,RTETextBlock.name,new class extends q{handleAction(t,e){const s=e.parent,n=s.createList(t.listType),r=t.selectedBlocks,i=r.map((t=>s.toListItem(t)));n.apply(new gt(i)),s.apply(new Nt(t.selectedBlocks[0],n)),r.forEach((t=>{t.parent.apply(new St(t))}))}});class Dt extends q{getPreviousNode(t){const e=t.parent,s=e.children.indexOf(t);if(s>0)return e.children[s-1];if(e.parent){const t=this.getPreviousBlock(e);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,s=e.children.indexOf(t);if(e.children[s+1])return e.children[s+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,s=e.children.indexOf(t),n=e.parent;if(e.isListItemBlock()){const t=n.parent;return 0===s&&Array.isArray(n.children)&&n.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===n}return 0===s&&Array.isArray(n.children)&&n.children[0]===e}getPreviousBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(this.isRTEBlock(t.parent)&&0===e)return this.getPreviousBlock(t.parent)}}getBlockLastNode(t){return t.getLastNode()}getBlockFirstNode(t){if("number-list"===t.type||"bullet-list"===t.type){if(t.children)return this.getBlockFirstNode(t.children[0])}else if(t.children)return t.children[0]}getNextBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(t.parent.children[e+1])return t.parent.children[e+1];if("list-item"===t.type&&t.parent.children.length===e+1)return this.getNextBlock(t.parent)}}isRTEBlock(t){return t&&"VegaRTEContent"!==t.constructor.name}}class It extends m{constructor(t,e){super(),this.isFlushable=!0,this.type=x.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class $t extends j{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new I(this.range)}}class RTEDecoratorNode extends RTENode{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(RTEDecoratorNode.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${RTEDecoratorNode.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=this.getElementRef();if(t)return h(t,`.${RTEDecoratorNode.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}RTEDecoratorNode.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",RTEDecoratorNode.DECORATOR_NODE_CLASS="v-internal-decorator-node";class RTECodeBlockNode extends RTEDecoratorNode{constructor(t,e,s,n){super(t),this.type=w.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=n,this.language=s}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}toHtml(){return`<code style='box-sizing: border-box;color: rgba(var(--v-text-primary, 32, 54, 69, 1));text-align: left;font-family: "Roboto Mono";font-weight: 400;line-height: 22px;font-size: 16px;white-space: pre-wrap;min-height: 22px;tab-size: 2px;'>${this.text}</code>`}clone(t){return new RTECodeBlockNode(this.id,this.text,this.language,t)}doAnnotationActionApply(t){y.executeTheStrategy(t,this)}doModifyActionApply(t){y.executeTheStrategy(t,this)}}y.register(x.UPDATE_CODE_BLOCK,RTECodeBlockNode.name,new class extends q{handleAction(t,e){const{content:s,language:n}=t;e.language=n,e.text=s}}),y.register($t.name,RTECodeBlockNode.name,new class extends q{handleAction(t,e){e.annotationMap.set(u.SELECTION_RANGE,t.toAnnotation())}});var Mt;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(Mt||(Mt={}));class Ht extends q{handleAction(t,e){e.children=e.children.filter((e=>e!==t.entityToBeRemoved)),0===e.children.length&&"parent"in e&&e.parent&&(e.isListItemBlock()&&e.nestList&&e.nestList.length||e.parent.apply(new St(e)))}}class RTECodeBlock extends RTEBlock{constructor(t,e,s){super(t),this.type="code-block",this.children=[new RTECodeBlockNode(`${t}-1`,e,s,this)]}static from(t){return new RTECodeBlock(t.id,t.content,t.language)}toJSON(){const{language:t,text:e}=this.children[0];return{id:this.id,type:"code-block",content:e,language:t}}toHtml(){const{language:t=Mt["Plain Text"]}=this.children[0];return`<pre data-language="${t}" style="background-color: rgba(var(--v-bg-secondary, 245, 247, 247, 1)); padding: 12px">${this.children.map((t=>t.toHtml()))}</pre>`}clone(t){const e=RTECodeBlock.from(this.toJSON());return e.parent=t,e}apply(n){if(n instanceof m&&y.executeTheStrategy(n,this),n.isFlushable){const n=T.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(u.SELECTION_RANGE)}}y.register(x.DELETE_CODE_BLOCK,RTECodeBlock.name,new class extends Dt{handleAction(t,e){const s=e.children[0],n=e.parent;if(n){let t=this.getPreviousNode(s),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(s),r=0),n.apply(new St(e));const i=t?T.getDOMByEntity(t):null;if(0===n.children.length){const s=RTETextBlock.from({id:c(),type:"paragraph",nodes:[{id:c(),type:"text",text:""}]});e.parent.apply(new gt([s])),t=s.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(s,r,i,o){const c=T.getDOMByEntity(o);if(c){const o=e.getSubjectFromParentNodeByEventId(c,n);o&&t.notify(o,{node:s,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t?t.getRangeEndOffset():0}}),y.register(x.DELETE_CHILDREN,RTECodeBlock.name,new Ht),y.register(x.SWITCH_OUT_FROM_CODE_BLOCK,RTECodeBlock.name,new class extends q{handleAction(s,r){const{content:i,language:o}=s,a=i.split("\n"),l=new It(a.slice(0,a.length-2).join("\n"),o);l.isFlushable=!1,r.children[0].apply(l);const h=RTETextBlock.from({id:c(),type:"paragraph",nodes:[{id:c(),text:"",type:"text"}]});r.parent.apply(new Nt(r,h));const u=T.getDOMByEntity(r);if(u){const s=e.getSubjectFromParentNodeByEventId(u,n);s&&t.notify(s,{node:h.children[0]})}}}),y.register(x.INSERT_IMAGE_TO_BLOCK,RTECodeBlock.name,new class extends q{handleAction(t,e){e.parent.apply(new Nt(e,t.imageBlockToBeInserted))}}),RTECodeBlock.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element";export{Et as $,y as A,f as B,C,w as D,S as E,j as F,Ot as G,_t as H,Nt as I,vt as J,Dt as K,Ht as L,m as M,v as N,K as O,J as P,Mt as Q,L as R,X as S,mt as T,ut as U,W as V,it as W,E as X,It as Y,U as Z,$t as _,R as a,RTECodeBlockNode as a0,Z as a1,rt as a2,ct as a3,wt as a4,P as a5,et as a6,st as a7,ot as a8,jt as a9,RTETextNode as b,x as c,q as d,RTETextBlock as e,RTEBlock as f,_ as g,gt as h,RTENode as i,Bt as j,u as k,St as l,At as m,Lt as n,bt as o,kt as p,Rt as q,yt as r,T as s,Ct as t,d as u,k as v,b as w,RTECodeBlock as x,g as y,RTEDecoratorNode as z}
|