@heartlandone/vega 2.65.0 → 2.67.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-681a0ed4.js → app-globals-ab28f910.js} +6 -6
- package/dist/cjs/{child-nodes-event-prevent-slimmer-feb072c4.js → child-nodes-event-prevent-slimmer-eb803b14.js} +1 -1
- package/dist/cjs/{code-block-961d54e8.js → code-block-ab97a0a0.js} +12 -15
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-c5b8b47b.js → component-value-history-controller-slimmer.abstract-5630341e.js} +4 -4
- package/dist/cjs/{design-token-98652b67.js → design-token-847739f1.js} +1 -1
- package/dist/cjs/{dom-node-subject-observer-factory-56609e5a.js → dom-node-subject-observer-factory-f040608b.js} +5 -1
- package/dist/cjs/{dto-renderer-manager-4b9d2560.js → dto-renderer-manager-d0f0f2c0.js} +18 -33
- package/dist/cjs/{element-appender-slimmer-1f46981b.js → element-appender-slimmer-aead9bbb.js} +3 -3
- package/dist/cjs/{event-emit-slimmer-3cefb326.js → event-emit-slimmer-d21a0935.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-1e1123ea.js → form-field-controller-slimmer-2a091912.js} +2 -2
- package/dist/cjs/{image-annotation-action-03b36f68.js → image-annotation-action-d84de785.js} +3 -3
- package/dist/cjs/{index-f2fe26a0.js → index-4b896e76.js} +1 -1
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{inject-keyboard-manager-51033b3f.js → inject-keyboard-manager-13c66257.js} +1 -1
- package/dist/cjs/{internal-vega-event-manager-9b503f1a.js → internal-vega-event-manager-4d1ce667.js} +3 -2
- package/dist/cjs/{keyboard-manager-144907d7.js → keyboard-manager-af0d08a6.js} +7 -1
- package/dist/cjs/{keyboard-manager-slimmer-04c48756.js → keyboard-manager-slimmer-62f072cd.js} +1 -1
- package/dist/cjs/{language-extension-059d62f6.js → language-extension-d257e65d.js} +2 -2
- package/dist/cjs/loader.cjs.js +9 -9
- package/dist/cjs/{public-rules-58e0218b.js → public-rules-d2b9b8f0.js} +4 -4
- package/dist/cjs/{range-42732973.js → range-d610028e.js} +1 -1
- package/dist/cjs/{responsive-format-facade-29070d00.js → responsive-format-facade-71e7b74c.js} +3 -3
- package/dist/cjs/{rich-text-editor-required-rule-ce4dd5fb.js → rich-text-editor-required-rule-a8fe5f50.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-0d69ea76.js → string-input-formatter-slimmer-8236b5e1.js} +2 -2
- package/dist/cjs/{style-formatter-f6723cb3.js → style-formatter-6facb42b.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-066f2aa9.js → sub-state-notify-slimmer-78682046.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-569e3297.js → sub-state-observer-slimmer-73aecfff.js} +1 -1
- package/dist/cjs/{token-extension-260adb8a.js → token-extension-aa8d5cce.js} +7 -6
- package/dist/cjs/vega-accordion.cjs.entry.js +8 -8
- package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +29 -14
- package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
- package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +8 -8
- package/dist/cjs/vega-calendar_4.cjs.entry.js +6 -6
- package/dist/cjs/vega-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +9 -9
- package/dist/cjs/vega-code-block.cjs.entry.js +9 -9
- package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/vega-combo-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-dialog_2.cjs.entry.js +132 -38
- package/dist/cjs/vega-divider.cjs.entry.js +7 -7
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +13 -13
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-flex.cjs.entry.js +8 -8
- package/dist/cjs/vega-font.cjs.entry.js +7 -7
- package/dist/cjs/vega-form.cjs.entry.js +70 -12
- package/dist/cjs/vega-grid.cjs.entry.js +7 -7
- package/dist/cjs/vega-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-passcode.cjs.entry.js +724 -0
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-select.cjs.entry.js +10 -10
- package/dist/cjs/vega-input.cjs.entry.js +23 -8
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +10 -10
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- 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 -8
- package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +3 -3
- package/dist/cjs/vega-radio_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +16 -16
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +9 -9
- package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_8.cjs.entry.js +10 -10
- package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -9
- package/dist/cjs/vega.cjs.js +9 -9
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.js +1 -1
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.js +12 -8
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.css +6 -6
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +32 -0
- package/dist/collection/components/vega-form/slimmers/controllers/vega-form-submit-controller.js +62 -5
- package/dist/collection/components/vega-input/vega-input.js +72 -5
- package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.js +101 -0
- package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.js +115 -0
- package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +166 -0
- package/dist/collection/components/vega-input-passcode/vega-input-passcode.css +90 -0
- package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +513 -0
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +95 -16
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-z-index-controller.js +4 -1
- package/dist/collection/components/vega-modal/slimmers/models/vega-modal-open-state.js +9 -0
- package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +4 -1
- package/dist/collection/components/vega-modal/vega-modal.js +19 -16
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +4 -12
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +1 -1
- package/dist/collection/constants/ui.js +2 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -2
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +3 -1
- package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +2 -1
- package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +2 -1
- package/dist/collection/helpers/immutable/immutable-array.js +133 -0
- package/dist/collection/helpers/immutable/test/immutable-array.test.js +78 -0
- package/dist/collection/helpers/keyboard/keyboard-manager.js +7 -1
- package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +4 -0
- package/dist/collection/value-model-adapters/angular-ng-model-accessor-adapter.js +1 -0
- package/dist/collection/value-model-adapters/vue-component-v-model-adaptor.js +1 -0
- package/dist/esm/{app-globals-1bacb762.js → app-globals-37a60cc1.js} +6 -6
- package/dist/esm/{child-nodes-event-prevent-slimmer-f32efdee.js → child-nodes-event-prevent-slimmer-735cb880.js} +1 -1
- package/dist/esm/{code-block-cb657afd.js → code-block-11b2bc1c.js} +12 -15
- package/dist/esm/{component-value-history-controller-slimmer.abstract-65a83eaf.js → component-value-history-controller-slimmer.abstract-16c5cb96.js} +4 -4
- package/dist/esm/{design-token-3889675a.js → design-token-297dc528.js} +1 -1
- package/dist/esm/{dom-node-subject-observer-factory-ed4b89f4.js → dom-node-subject-observer-factory-dca87b70.js} +4 -2
- package/dist/esm/{dto-renderer-manager-8cac8f0f.js → dto-renderer-manager-a1a3b6d2.js} +18 -33
- package/dist/esm/{element-appender-slimmer-31b21e1b.js → element-appender-slimmer-f7233708.js} +3 -3
- package/dist/esm/{event-emit-slimmer-000ca6a7.js → event-emit-slimmer-28fd360c.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-24dbc255.js → form-field-controller-slimmer-b23d9ff3.js} +2 -2
- package/dist/esm/{image-annotation-action-59ea166c.js → image-annotation-action-fc46c920.js} +3 -3
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/{index-50b32f3d.js → index-c943d263.js} +1 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/{inject-keyboard-manager-f7d92809.js → inject-keyboard-manager-ffd351b9.js} +1 -1
- package/dist/esm/{internal-vega-event-manager-13e3ed3d.js → internal-vega-event-manager-a5a5938d.js} +3 -2
- package/dist/esm/{keyboard-manager-f4bbc452.js → keyboard-manager-5d8f3582.js} +7 -1
- package/dist/esm/{keyboard-manager-slimmer-a02cbc5f.js → keyboard-manager-slimmer-f39214e4.js} +1 -1
- package/dist/esm/{language-extension-038014ac.js → language-extension-314a2b18.js} +2 -2
- package/dist/esm/loader.js +9 -9
- package/dist/esm/{public-rules-a42e6f59.js → public-rules-c6a6946d.js} +4 -4
- package/dist/esm/{range-c08d8de1.js → range-b78254de.js} +1 -1
- package/dist/esm/{responsive-format-facade-d8ccc742.js → responsive-format-facade-a41e1be7.js} +3 -3
- package/dist/esm/{rich-text-editor-required-rule-3a8f319c.js → rich-text-editor-required-rule-d50c24da.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-c64c7855.js → string-input-formatter-slimmer-3acd240c.js} +2 -2
- package/dist/esm/{style-formatter-ab6a9248.js → style-formatter-f7effaac.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-8b3b15ee.js → sub-state-notify-slimmer-56380f02.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-2b98e2c9.js → sub-state-observer-slimmer-3504e2f2.js} +1 -1
- package/dist/esm/{token-extension-f5bf06a5.js → token-extension-b690953f.js} +7 -6
- package/dist/esm/vega-accordion.entry.js +8 -8
- package/dist/esm/vega-app-header-button.entry.js +9 -9
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +8 -8
- package/dist/esm/vega-breadcrumb.entry.js +29 -14
- package/dist/esm/vega-button-circle.entry.js +9 -9
- package/dist/esm/vega-button-group_2.entry.js +6 -6
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +8 -8
- package/dist/esm/vega-calendar_4.entry.js +6 -6
- package/dist/esm/vega-card.entry.js +7 -7
- package/dist/esm/vega-carousel.entry.js +7 -7
- package/dist/esm/vega-checkbox_2.entry.js +6 -6
- package/dist/esm/vega-chip.entry.js +9 -9
- package/dist/esm/vega-code-block.entry.js +9 -9
- package/dist/esm/vega-color-picker.entry.js +5 -5
- package/dist/esm/vega-combo-box.entry.js +8 -8
- package/dist/esm/vega-date-picker_2.entry.js +15 -15
- package/dist/esm/vega-dialog_2.entry.js +132 -38
- package/dist/esm/vega-divider.entry.js +7 -7
- package/dist/esm/vega-dropdown_5.entry.js +13 -13
- 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 +5 -5
- package/dist/esm/vega-flag-icon.entry.js +7 -7
- package/dist/esm/vega-flex.entry.js +8 -8
- package/dist/esm/vega-font.entry.js +7 -7
- package/dist/esm/vega-form.entry.js +70 -12
- package/dist/esm/vega-grid.entry.js +7 -7
- package/dist/esm/vega-icon.entry.js +7 -7
- package/dist/esm/vega-image-uploader.entry.js +10 -10
- package/dist/esm/vega-input-credit-card.entry.js +6 -6
- package/dist/esm/vega-input-numeric.entry.js +9 -9
- package/dist/esm/vega-input-passcode.entry.js +720 -0
- package/dist/esm/vega-input-phone-number.entry.js +9 -9
- package/dist/esm/vega-input-range.entry.js +6 -6
- package/dist/esm/vega-input-select.entry.js +10 -10
- package/dist/esm/vega-input.entry.js +23 -8
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +10 -10
- package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination.entry.js +8 -8
- package/dist/esm/vega-popover_2.entry.js +11 -11
- package/dist/esm/vega-progress-tracker.entry.js +3 -3
- package/dist/esm/vega-radio_2.entry.js +8 -8
- package/dist/esm/vega-rich-text-content.entry.js +6 -6
- package/dist/esm/vega-rich-text-editor_4.entry.js +16 -16
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +11 -11
- package/dist/esm/vega-selection-tile_2.entry.js +7 -7
- package/dist/esm/vega-sidenav_3.entry.js +9 -9
- package/dist/esm/vega-signature-capture.entry.js +10 -10
- package/dist/esm/vega-stepper.entry.js +6 -6
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_8.entry.js +10 -10
- package/dist/esm/vega-textarea.entry.js +6 -6
- package/dist/esm/vega-time-picker_2.entry.js +13 -13
- package/dist/esm/vega-toggle-switch.entry.js +5 -5
- package/dist/esm/vega-tooltip_2.entry.js +9 -9
- package/dist/esm/vega.js +9 -9
- package/dist/sri/vega-sri-manifest.json +298 -294
- package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.d.ts +2 -1
- package/dist/types/components/vega-breadcrumb/types.d.ts +1 -1
- package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +11 -0
- package/dist/types/components/vega-form/slimmers/controllers/vega-form-submit-controller.d.ts +17 -0
- package/dist/types/components/vega-input/types.d.ts +65 -0
- package/dist/types/components/vega-input/vega-input.d.ts +17 -2
- package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.d.ts +25 -0
- package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.d.ts +47 -0
- package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +29 -0
- package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +135 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +31 -2
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-z-index-controller.d.ts +1 -0
- package/dist/types/components/vega-modal/slimmers/models/vega-modal-open-state.d.ts +9 -0
- package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +1 -0
- package/dist/types/components/vega-modal/types.d.ts +9 -0
- package/dist/types/components/vega-modal/vega-modal.d.ts +8 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +2 -1
- package/dist/types/components.d.ts +174 -4
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
- package/dist/types/helpers/immutable/immutable-array.d.ts +86 -0
- package/dist/types/helpers/immutable/immutable-map.d.ts +1 -1
- package/dist/types/helpers/immutable/immutable.d.ts +1 -0
- package/dist/types/helpers/immutable/test/immutable-array.test.d.ts +1 -0
- package/dist/types/types/components.type.d.ts +7 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-6a4db686.entry.js → p-00071542.entry.js} +1 -1
- package/dist/vega/p-0113a83c.entry.js +1 -0
- package/dist/vega/{p-5e1c913d.entry.js → p-015cdbe7.entry.js} +1 -1
- package/dist/vega/p-019f7f95.js +1 -0
- package/dist/vega/{p-c12000ee.entry.js → p-03a1e82e.entry.js} +1 -1
- package/dist/vega/p-0d1eca78.entry.js +1 -0
- package/dist/vega/{p-74e684fc.entry.js → p-0ed53cce.entry.js} +1 -1
- package/dist/vega/{p-bc9484a6.js → p-129c0ce1.js} +1 -1
- package/dist/vega/p-16370cfb.js +1 -0
- package/dist/vega/p-19522949.js +1 -0
- package/dist/vega/{p-1f061725.entry.js → p-1a3cb65e.entry.js} +1 -1
- package/dist/vega/{p-85ad1c21.entry.js → p-2553031f.entry.js} +1 -1
- package/dist/vega/{p-c1fa6088.entry.js → p-276b1163.entry.js} +1 -1
- package/dist/vega/{p-9e6db93d.entry.js → p-2d430dc4.entry.js} +1 -1
- package/dist/vega/{p-299e14b4.entry.js → p-3288a65b.entry.js} +1 -1
- package/dist/vega/p-34800282.entry.js +1 -0
- package/dist/vega/{p-ebfc4323.entry.js → p-358e9800.entry.js} +1 -1
- package/dist/vega/{p-b4c25109.js → p-3925c16b.js} +1 -1
- package/dist/vega/{p-3b953a24.entry.js → p-39b9c57b.entry.js} +1 -1
- package/dist/vega/{p-63596567.entry.js → p-3a7f177a.entry.js} +1 -1
- package/dist/vega/p-41c3fcb4.js +1 -0
- package/dist/vega/p-447c7590.js +1 -0
- package/dist/vega/p-46830028.entry.js +1 -0
- package/dist/vega/p-47cae62d.entry.js +1 -0
- package/dist/vega/{p-228de113.js → p-47fa359b.js} +1 -1
- package/dist/vega/{p-c8a3fb7f.entry.js → p-4e33fff6.entry.js} +1 -1
- package/dist/vega/{p-63a5bbf4.entry.js → p-524693d8.entry.js} +1 -1
- package/dist/vega/{p-378e5881.js → p-54b62ecf.js} +1 -1
- package/dist/vega/{p-5cdcd08f.entry.js → p-59298f5e.entry.js} +1 -1
- package/dist/vega/{p-6f96dd01.entry.js → p-5a0524ab.entry.js} +1 -1
- package/dist/vega/{p-185dfdd4.entry.js → p-5e32866d.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-6d371296.entry.js → p-5f58d1da.entry.js} +1 -1
- package/dist/vega/{p-8a5c123f.entry.js → p-616cd622.entry.js} +1 -1
- package/dist/vega/{p-b68a13df.entry.js → p-65693321.entry.js} +1 -1
- package/dist/vega/p-67f159c3.js +1 -0
- package/dist/vega/{p-2f4f3744.entry.js → p-6f6ccf67.entry.js} +1 -1
- package/dist/vega/{p-ae598946.entry.js → p-6f7d42a0.entry.js} +1 -1
- package/dist/vega/{p-2033f86e.js → p-725f0a2c.js} +1 -1
- package/dist/vega/{p-833d81d0.entry.js → p-74d61782.entry.js} +1 -1
- package/dist/vega/{p-053eb64a.js → p-7b145620.js} +1 -1
- package/dist/vega/{p-5d36cc3f.entry.js → p-7c1d08db.entry.js} +1 -1
- package/dist/vega/{p-33c6fb3f.entry.js → p-7efb5ebe.entry.js} +1 -1
- package/dist/vega/{p-fee972e6.entry.js → p-7f69081b.entry.js} +1 -1
- package/dist/vega/{p-12d4488b.entry.js → p-7f9ec104.entry.js} +1 -1
- package/dist/vega/p-81105691.entry.js +1 -0
- package/dist/vega/p-822c6092.js +1 -0
- package/dist/vega/{p-7c594a9f.js → p-8350506e.js} +1 -1
- package/dist/vega/{p-99b1492c.js → p-85f9a980.js} +1 -1
- package/dist/vega/{p-d418ecc1.entry.js → p-892cbe7c.entry.js} +1 -1
- package/dist/vega/{p-78d607ca.entry.js → p-8d096fea.entry.js} +1 -1
- package/dist/vega/{p-fbc85265.entry.js → p-8d574fbd.entry.js} +1 -1
- package/dist/vega/{p-1eb5b772.entry.js → p-8d655fd2.entry.js} +1 -1
- package/dist/vega/p-8edf3513.js +1 -0
- package/dist/vega/{p-5f854901.entry.js → p-92a22562.entry.js} +1 -1
- package/dist/vega/{p-43257678.js → p-9fb6fbcc.js} +1 -1
- package/dist/vega/{p-cef9f638.js → p-a0467b83.js} +1 -1
- package/dist/vega/{p-3494a5f1.entry.js → p-a1b7a179.entry.js} +1 -1
- package/dist/vega/p-a73dc4b3.entry.js +1 -0
- package/dist/vega/{p-c241f615.js → p-a7631c6b.js} +1 -1
- package/dist/vega/{p-0685cba6.entry.js → p-ab1001f5.entry.js} +1 -1
- package/dist/vega/{p-1f43f551.entry.js → p-ab8f99e9.entry.js} +1 -1
- package/dist/vega/{p-9439077d.entry.js → p-ad5393f0.entry.js} +1 -1
- package/dist/vega/{p-840c09c7.js → p-af5bfe34.js} +1 -1
- package/dist/vega/{p-ab3c4b43.entry.js → p-b2aaab66.entry.js} +1 -1
- package/dist/vega/{p-a69c9e42.entry.js → p-b431f9d5.entry.js} +1 -1
- package/dist/vega/{p-cf211582.entry.js → p-b82d3915.entry.js} +1 -1
- package/dist/vega/p-bee1cc34.entry.js +1 -0
- package/dist/vega/{p-901ff5d3.js → p-bf7f755b.js} +1 -1
- package/dist/vega/p-bf9476cd.entry.js +1 -0
- package/dist/vega/{p-45ead9fe.js → p-c6ce2869.js} +1 -1
- package/dist/vega/{p-59d70a67.entry.js → p-cc519f53.entry.js} +1 -1
- package/dist/vega/{p-c96d28dc.entry.js → p-d006e732.entry.js} +1 -1
- package/dist/vega/p-d0e6454e.entry.js +1 -0
- package/dist/vega/{p-f83739d0.entry.js → p-d1dacaeb.entry.js} +1 -1
- package/dist/vega/{p-13c6a04c.entry.js → p-d4452dbc.entry.js} +1 -1
- package/dist/vega/{p-dabba918.entry.js → p-d5761532.entry.js} +1 -1
- package/dist/vega/{p-199dc74b.js → p-d88e88a7.js} +1 -1
- package/dist/vega/{p-303efbfe.entry.js → p-de624f7d.entry.js} +1 -1
- package/dist/vega/{p-dc92fec6.js → p-e6cccee4.js} +1 -1
- package/dist/vega/{p-9d492a46.entry.js → p-ea05a2fc.entry.js} +1 -1
- package/dist/vega/p-ed8bc4f0.entry.js +1 -0
- package/dist/vega/{p-64c3d021.js → p-f360c9ba.js} +1 -1
- package/dist/vega/{p-c682d53c.entry.js → p-fc8c5869.entry.js} +1 -1
- package/dist/vega/{p-fddca002.js → p-fde50319.js} +1 -1
- package/dist/vega/{p-ba24f7b9.entry.js → p-fe2e859f.entry.js} +1 -1
- package/dist/vega/{p-a61e2108.entry.js → p-fef846d5.entry.js} +1 -1
- package/dist/vega/{p-d3137a6e.entry.js → p-ff3bb4e2.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-050bb2ad.entry.js +0 -1
- package/dist/vega/p-1bd5d806.entry.js +0 -1
- package/dist/vega/p-24cb0a7e.js +0 -1
- package/dist/vega/p-2d91799a.entry.js +0 -1
- package/dist/vega/p-33837794.entry.js +0 -1
- package/dist/vega/p-39b4c838.js +0 -1
- package/dist/vega/p-3c21b875.js +0 -1
- package/dist/vega/p-5e2ef0b8.entry.js +0 -1
- package/dist/vega/p-5fec05a2.js +0 -1
- package/dist/vega/p-651fe4fc.js +0 -1
- package/dist/vega/p-676bee73.entry.js +0 -1
- package/dist/vega/p-852fa2d2.entry.js +0 -1
- package/dist/vega/p-a082d41b.entry.js +0 -1
- package/dist/vega/p-a4912b85.js +0 -1
- package/dist/vega/p-b510e4d7.js +0 -1
- package/dist/vega/p-d5d6dae6.js +0 -1
- package/dist/vega/p-e853105a.entry.js +0 -1
- package/dist/vega/p-fbd38139.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,H as t,r as i,c as s,g as o}from"./p-6b2342e0.js";import{R as r}from"./p-280cbcdb.js";import{s as a}from"./p-519a7d55.js";import{P as n,g as l}from"./p-7d9cd9c8.js";import{c as p,V as d,M as c,L as h,I as v}from"./p-6e1ab235.js";import{a as f}from"./p-d9671d27.js";import{R as u}from"./p-228de113.js";import{V as g,I as m}from"./p-d849e0f5.js";import{D as x,p as b,q as w,V as y,s as j,t as I,r as R,d as S,f as O,n as z,G as D,H as C}from"./p-3c21b875.js";import{j as E,k as L,l as T}from"./p-308aa2e3.js";import{i as V}from"./p-d27ae9ff.js";import{C as k}from"./p-2d0d575f.js";import{F as A}from"./p-a528714c.js";import{c as _}from"./p-86194314.js";import{c as N}from"./p-1ec763ab.js";import{c as P}from"./p-613ddaab.js";import{a as G}from"./p-8c9ea6f4.js";import{F as U}from"./p-43257678.js";import{c as F}from"./p-053eb64a.js";import{C as K}from"./p-2033f86e.js";import{Q as q,U as M}from"./p-b1faebe0.js";import{M as H}from"./p-78a57a17.js";import{T as $}from"./p-52b8f2d2.js";import{T as B}from"./p-d5ff8b7f.js";import{r as W}from"./p-77e64f26.js";import"./p-abd7aeaa.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-5f377954.js";import"./p-64c3d021.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-4c192985.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-54ae02db.js";import"./p-24cb0a7e.js";import"./p-d5d6dae6.js";import"./p-39b4c838.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-a7b5f497.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";import"./p-39482a1a.js";import"./p-fddca002.js";import"./p-d884c644.js";var Q=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class J extends d{constructor(){super(...arguments),this.renderLabel=()=>this.label&&e("div",{class:"vega-input-select-label"},e("span",null,this.label),this.required&&e("span",{class:"vega-input-select-required"},"*")),this.renderErrorMessage=()=>e("div",{class:"vega-input-select-error-message"}),this.renderHelpMessage=()=>e("div",{class:"vega-input-select-hint"},this.hint)}render(){return e(t,{class:f([this.disabled?"vega-input-select-disabled":"",u.formatCustom(this.size)])},this.renderLabel(),this.dropdownRenderer.render(),this.renderErrorMessage(),this.hint&&this.renderHelpMessage())}}Q([p()],J.prototype,"disabled",void 0),Q([p()],J.prototype,"size",void 0),Q([p()],J.prototype,"hint",void 0),Q([p()],J.prototype,"label",void 0),Q([p()],J.prototype,"required",void 0),Q([p({componentFieldName:"vegaInputSelectDropdownRenderer"})],J.prototype,"dropdownRenderer",void 0);var X=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class Y extends d{constructor(){super(...arguments),this.onDropdownShow=()=>{this.isDropdownShow=!0},this.onDropdownHide=()=>{this.isDropdownShow=!1}}addDropdownObserver(e){x.addUniqueObserverToNode(e,b,(e=>{this.onDropdownShow(),this.showEventEmitter.emit(e.detail)})),x.addUniqueObserverToNode(e,w,(e=>{this.onDropdownHide(),this.hideEventEmitter.emit(e.detail)})),x.addUniqueObserverToNode(e,y,(async e=>{this.vegaInputSelectValueController.setValue(await e.host.getSelection())})),x.addUniqueObserverToNode(e,j,(e=>{this.searchEventEmitter.emit(e.detail)})),x.addUniqueObserverToNode(e,I,(e=>{this.searchTriggerEventEmitter.emit(e.detail)})),x.addUniqueObserverToNode(e,E,(e=>{const t=Array.from(e).filter((e=>!this.source.find((t=>t.id===e.itemKey)))).map((e=>({id:e.itemKey,displayName:e.label})));this.sourceController.appendSourceItems(t)})),x.addUniqueObserverToNode(e,R,(async()=>{this.vegaInputSelectValueController.setValue("multiple"===this.selectType?[]:"")}))}}X([p({writable:!0})],Y.prototype,"isDropdownShow",void 0),X([p()],Y.prototype,"vegaSearch",void 0),X([p()],Y.prototype,"searchEventEmitter",void 0),X([p()],Y.prototype,"searchTriggerEventEmitter",void 0),X([p()],Y.prototype,"vegaInputSelectValueController",void 0),X([p()],Y.prototype,"sourceController",void 0),X([p()],Y.prototype,"source",void 0),X([p()],Y.prototype,"showEventEmitter",void 0),X([p()],Y.prototype,"hideEventEmitter",void 0),X([p()],Y.prototype,"selectType",void 0);var Z=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class ee extends d{constructor(){super(...arguments),this.handleValueChange=(e,t)=>{if("multiple"===this.selectType){t=t;const i=(e=e)?e.filter((e=>this.sourceController.getItem(e))):[];V(i,t,!0)?V(i,e,!0)||this.setValue(i):(this.setValue(i),this.changeEventEmitter.emit(i),k.notify(A,{host:this.host,detail:i}))}else if(e!==t){const t=this.sourceController.getItem(e);this.setValue(t?t.id:""),this.changeEventEmitter.emit(this.value),k.notify(A,{host:this.host,detail:this.value})}}}setValue(e){this.valueGuard(e)&&(this.value=e)}valueGuard(e){switch(this.selectType){case"single":return null===e||"string"==typeof e;case"multiple":return Array.isArray(e)&&e.every((e=>"string"==typeof e));default:return h.warn(`Invalid input select value ${e} for ${this.selectType} mode`),!1}}}Z([p({writable:!0})],ee.prototype,"value",void 0),Z([p()],ee.prototype,"selectType",void 0),Z([p()],ee.prototype,"changeEventEmitter",void 0),Z([p()],ee.prototype,"host",void 0),Z([p()],ee.prototype,"sourceController",void 0),Z([c("watchValue")],ee.prototype,"handleValueChange",void 0);var te=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class ie extends d{constructor(){super(...arguments),this.renderContainer=()=>e("div",{role:"button",class:"vega-input-select-container",ref:e=>this.inputSelectContainer=e,tabIndex:0,"aria-disabled":`${this.disabled}`,onKeyDown:_(),onBlur:this.preventBlur,part:"select-container"},this.renderPrefixIcon(),this.renderSelectContainer(),this.renderToggleIcon()),this.renderPrefixIcon=()=>this.vegaInputSelectPrefixIconRenderer.render(),this.renderToggleIcon=()=>e("div",{class:"vega-input-select-toggle-icon",part:"toggle-icon-container"},e("vega-icon",{part:"toggle-icon",icon:G.getIconKey(this.isDropdownShow?"chevron-up":"chevron-down")})),this.renderSelectContainer=()=>e("div",{class:"vega-input-select-select-container"},e("div",{class:"vega-input-select-selected-box"},"multiple"===this.selectType?this.renderMultipleSelected():this.renderSingleSelected())),this.renderMultipleSelected=()=>{if(this.value.length>0){const t=this.selectedLabel(this.value);return e("span",{class:"vega-input-select-selected"},e("vega-text",{overflow:"ellipsis",tooltip:{placement:"bottom"},key:t},t))}return e("div",{class:"vega-input-select-placeholder"},this.translationSlimmer.t(this.placeholder))},this.renderSingleSelected=()=>{const t=this.sourceController.getItem(this.value);return t?e("span",{class:"vega-input-select-selected",part:"selected-box"},e("vega-text",{overflow:"ellipsis",tooltip:{placement:"bottom"},key:t.displayName},t.displayName)):e("div",{class:"vega-input-select-placeholder",part:"placeholder"},this.translationSlimmer.t(this.placeholder))},this.getVegaDropdownProperties=()=>Object.assign({searchable:!0,caseSensitive:!1},this.vegaDropdownProps)}show(){return this.dropdown.show()}hide(){return this.dropdown.hide()}getDropdownRef(){return this.dropdown}getInputSelectContainerRef(){return this.inputSelectContainer}getItemsSlotRef(){return this.itemsSlotRef}render(){return e("vega-dropdown",Object.assign({trigger:"click",source:this.getDropdownSource(),selectType:this.selectType,selectedSourceKey:this.value,matchTargetWidth:!0},this.getVegaDropdownProperties(),{ref:e=>{this.dropdown=e,this.vegaInputSelectDropdownController.addDropdownObserver(e)},isLazyLoading:this.isLazyLoading}),this.renderContainer(),this.renderItemsSlot())}renderItemsSlot(){return this.host.querySelector("[slot=items]")&&e("div",{slot:"items",ref:e=>{this.itemsSlotRef=e}})}preventBlur(e){e.stopImmediatePropagation()}getDropdownSource(){return this.source.map((e=>({key:e.id,label:e.displayName})))}}G.register({"chevron-up":N,"chevron-down":P}),te([p()],ie.prototype,"value",void 0),te([p()],ie.prototype,"source",void 0),te([p()],ie.prototype,"host",void 0),te([p()],ie.prototype,"selectType",void 0),te([p()],ie.prototype,"isDropdownShow",void 0),te([p()],ie.prototype,"vegaDropdownProps",void 0),te([p()],ie.prototype,"placeholder",void 0),te([p()],ie.prototype,"selectedLabel",void 0),te([p()],ie.prototype,"isLazyLoading",void 0),te([p()],ie.prototype,"vegaInputSelectDropdownController",void 0),te([p()],ie.prototype,"vegaInputSelectPrefixIconRenderer",void 0),te([p()],ie.prototype,"sourceController",void 0),te([p()],ie.prototype,"translationSlimmer",void 0),te([p()],ie.prototype,"disabled",void 0);var se=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class oe extends d{constructor(){super(...arguments),this.hasMore=!0}componentDidLoad(){const e=this.getVirtualScroll();e&&x.addUniqueObserverToNode(e,L,this.onScrollToBottom.bind(this))}getVirtualScroll(){var e,t,i;return null===(i=null===(t=null===(e=this.vegaInputSelectDropdownRenderer.getDropdownRef().shadowRoot)||void 0===e?void 0:e.querySelector("vega-dropdown-content-box"))||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.querySelector("vega-virtual-scroll")}async onScrollToBottom(e){if(this.sourceLazyLoadCallback&&this.hasMore){this.isLazyLoading=!0;const t=await this.sourceLazyLoadCallback(e.endIndex);this.hasMore=t.hasMore,t.items.length>0&&this.sourceController.appendSourceItems(t.items),this.isLazyLoading=!1}}}se([p()],oe.prototype,"sourceLazyLoadCallback",void 0),se([p({writable:!0})],oe.prototype,"isLazyLoading",void 0),se([p()],oe.prototype,"sourceController",void 0),se([p()],oe.prototype,"vegaInputSelectDropdownRenderer",void 0),se([c("componentDidLoad")],oe.prototype,"componentDidLoad",null);const re=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Specifies whether the system should automatically carry out validation checks on the user's selection in real-time, ensuring that the input adheres to predefined criteria before submission or proceeding further",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Specifies whether the system should automatically carry out validation checks on the user's selection in real-time, ensuring that the input adheres to predefined criteria before submission or proceeding further",payloadValue:e=>!1===e.autoValidation},{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the input select",payloadValue:e=>0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the input select",payloadValue:e=>e.source.length>0}];var ae=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class ne extends d{constructor(){super(...arguments),this.handleSourceChange=()=>{this.source=q(this.source,M)?this.source:[]}}appendSourceItems(e){this.source=[...this.source,...e]}getItem(e){return this.source.find((t=>t.id===e))}}ae([p({writable:!0})],ne.prototype,"source",void 0),ae([c("watchSource")],ne.prototype,"handleSourceChange",void 0);var le=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class pe extends d{constructor(){super(...arguments),this.mutationObserver=new H({mutationFilter:$("VEGA-DROPDOWN-ITEM"),options:{childList:!0,subtree:!0},callback:()=>this.appendHostItemsToDropdown()})}componentDidLoad(){this.appendHostItemsToDropdown()}appendHostItemsToDropdown(){const e=this.host.querySelector("[slot=items]"),t=this.vegaInputSelectDropdownRenderer.getItemsSlotRef();e&&t&&(t.remove(),this.vegaInputSelectDropdownRenderer.getDropdownRef().append(e))}}le([v()],pe.prototype,"mutationObserver",void 0),le([p()],pe.prototype,"host",void 0),le([p()],pe.prototype,"vegaInputSelectDropdownRenderer",void 0),le([c("componentDidLoad")],pe.prototype,"componentDidLoad",null);var de=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};class ce extends d{connectedCallback(){this.remotePhoneNumberPrefixIconRenderSubject=S.getSubjectFromParentNodeByEventId(this.host,T)}callRemotePrefixIconRender(...e){if(this.remotePhoneNumberPrefixIconRenderSubject){const t=W.call(this.remotePhoneNumberPrefixIconRenderSubject,...e);if(t)return t}return null}render(){const t=this.callRemotePrefixIconRender(this.prefixIcon);return this.prefixIcon&&e("div",{class:"vega-input-select-prefix-icon"},t||e("vega-icon",{icon:this.prefixIcon,size:"size-16"}))}}de([p()],ce.prototype,"host",void 0),de([p()],ce.prototype,"prefixIcon",void 0),de([c("connectedCallback")],ce.prototype,"connectedCallback",null);var he=function(e,t,i,s){var o,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a};const ve=class{constructor(e){i(this,e),this.vegaChange=s(this,"vegaChange",7),this.change=s(this,"change",7),this.vegaSearch=s(this,"vegaSearch",7),this.search=s(this,"search",7),this.vegaSearchTrigger=s(this,"vegaSearchTrigger",7),this.searchTrigger=s(this,"searchTrigger",7),this.vegaShow=s(this,"vegaShow",7),this.vegaHide=s(this,"vegaHide",7),this.globalSlimmers={},this.translationSlimmer=new B,this.sourceController=new ne,this.vegaInputSelectRenderer=new J,this.vegaInputSelectPrefixIconRenderer=new ce,this.vegaInputSelectDropdownController=new Y,this.vegaInputSelectValueController=new ee,this.vegaInputSelectDropdownRenderer=new ie,this.vegaInputSelectItemsSlotController=new pe,this.formFieldControllerSlimmer=new U({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new r:null}],validationRulesName:"validationRules",defaultValue:e=>"multiple"===e.selectType?[]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaInputSelectDropdownRenderer.getDropdownRef(),touchableAreaGetter:()=>[this.vegaInputSelectDropdownRenderer.getInputSelectContainerRef()]}),this.pageResizeObserverSlimmer=new n,this.lazyLoadController=new oe,this.changeEventEmitter=F(ve,O),this.searchEventEmitter=F(ve,z),this.searchTriggerEventEmitter=F(ve,I),this.showEventEmitter=F(ve,D),this.hideEventEmitter=F(ve,C),this.eventPrevent=new K([z,I,D,C],(()=>this.host),!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new g(re),this.isDropdownShow=!1,this.currentBreakpoint=l(),this.isLazyLoading=!1,this.label="",this.required=!1,this.selectedLabel=e=>`${e.length} Selected`,this.selectType="single",this.source=[],this.value="multiple"===this.selectType?[]:"",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.disabled=!1,this.placeholder="Please select",this.vegaDropdownProps={},this.size="default"}watchSource(){}watchValue(e,t){}watchValidationRules(){}componentWillLoad(){}async doClose(){await this.vegaInputSelectDropdownRenderer.hide()}async doOpen(){await this.vegaInputSelectDropdownRenderer.show()}async doChange(e){this.vegaInputSelectValueController.setValue(e)}render(){return a(this.vegaInputSelectRenderer.render(),this.host)}get host(){return o(this)}static get watchers(){return{source:["watchSource"],value:["watchValue"],validationRules:["watchValidationRules"]}}};he([m()],ve.prototype,"globalSlimmers",void 0),he([v()],ve.prototype,"translationSlimmer",void 0),he([v()],ve.prototype,"sourceController",void 0),he([v()],ve.prototype,"vegaInputSelectRenderer",void 0),he([v()],ve.prototype,"vegaInputSelectPrefixIconRenderer",void 0),he([v()],ve.prototype,"vegaInputSelectDropdownController",void 0),he([v()],ve.prototype,"vegaInputSelectValueController",void 0),he([v()],ve.prototype,"vegaInputSelectDropdownRenderer",void 0),he([v()],ve.prototype,"vegaInputSelectItemsSlotController",void 0),he([v()],ve.prototype,"formFieldControllerSlimmer",void 0),he([v()],ve.prototype,"pageResizeObserverSlimmer",void 0),he([v()],ve.prototype,"lazyLoadController",void 0),he([v()],ve.prototype,"changeEventEmitter",void 0),he([v()],ve.prototype,"searchEventEmitter",void 0),he([v()],ve.prototype,"searchTriggerEventEmitter",void 0),he([v()],ve.prototype,"showEventEmitter",void 0),he([v()],ve.prototype,"hideEventEmitter",void 0),he([v()],ve.prototype,"eventPrevent",void 0),he([v()],ve.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ve.style=':host{display:inline-block;width:100%;min-width:0px;text-align:left;line-height:normal}:host(.default) .vega-input-select-container{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px}:host(.small) .vega-input-select-container{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px}:host .vega-input-select-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));padding-bottom:8px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-select-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-select-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-select-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-input-select-label .vega-input-select-required{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px}:host .vega-input-select-container{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;gap:8px;display:block;display:flex;align-items:center;cursor:pointer}:host .vega-input-select-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-input-select-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .error .vega-input-select-container{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .error .vega-input-select-container:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .error .vega-input-select-container:focus{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}:host(.vega-input-select-disabled) .vega-input-select-label{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.vega-input-select-disabled) vega-dropdown{pointer-events:none}:host(.vega-input-select-disabled) .vega-input-select-container{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1));background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host(.vega-input-select-disabled) .vega-input-select-container:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.vega-input-select-disabled) vega-icon{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host .vega-input-select-select-container{flex-grow:1;min-width:0px}:host .vega-input-select-selected{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));display:block;min-height:24px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-select-selected{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-select-selected{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-select-selected{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.vega-input-select-disabled) .vega-input-select-selected{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host .vega-input-select-placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:24px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-select-placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-select-placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-select-placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-input-select-prefix-icon{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}:host .vega-input-select-toggle-icon{width:16px;height:16px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}:host .vega-input-select-hint{padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-select-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-select-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-select-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host vega-dropdown{display:block}';export{ve as vega_input_select}
|
package/dist/vega/p-a4912b85.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as n}from"./p-b510e4d7.js";function t(t){return i=>{const{connectedCallback:o,componentDidLoad:e,disconnectedCallback:s}=i;i.connectedCallback=function(){const{keyboardEventListeners:t=[]}=this;return n.register(t),null==o?void 0:o.call(this)},i.componentDidLoad=function(){return this.keyboardEventListeners=t(this),n.register(this.keyboardEventListeners),null==e?void 0:e.call(this)},i.disconnectedCallback=function(){const{keyboardEventListeners:t=[]}=this;return n.deregister(t),null==s?void 0:s.call(this)}}}export{t as I}
|
package/dist/vega/p-b510e4d7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as t,e}from"./p-d9671d27.js";import{i as s}from"./p-b1faebe0.js";const i=new class{constructor(){this.listeners=[],this.listenKeyPress()}register(t){t.map((t=>t.eventName||(t.eventName="keyup"))),this.listeners=this.listeners.concat(t)}deregister(t){this.listeners=this.listeners.filter((e=>!t.includes(e)))}listenKeyPress(){document.addEventListener("keydown",(t=>{this.invokeListeners("keydown",t)})),document.addEventListener("keyup",(t=>{this.invokeListeners("keyup",t)}))}invokeListeners(t,e){this.listeners.filter((s=>s.eventName===t&&this.shouldInvokeListener(s,e))).forEach((t=>t.callback(e)))}shouldInvokeListener(i,o){const r=o.code;let n=[],c=[];const h=Array.isArray(i.keyCode)?i.keyCode.includes(r):i.keyCode===r;if(!h)return!1;"function"==typeof i.activeElementInScope?n=i.activeElementInScope():"object"==typeof i.activeElementInScope&&(n=i.activeElementInScope),"function"==typeof i.activeElementOutScope?c=i.activeElementOutScope():"object"==typeof i.activeElementOutScope&&(c=i.activeElementOutScope);const u=!i.activeElementInScope||n.some((s=>t(e(),s)));if(!u)return!1;const f=!i.activeElementOutScope||c.every((s=>!t(e(),s))),p=!s(i.modifierPressed)||i.modifierPressed===this.isModifierPressed(o),a=!s(i.shiftKey)||i.shiftKey===o.shiftKey;return h&&u&&f&&p&&a}isModifierPressed(t){return/Mac|iPhone|iPad/.test(navigator.userAgent)?t.metaKey:t.ctrlKey}};export{i as K}
|
package/dist/vega/p-d5d6dae6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,d as e,a as n,e as s,A as r,b as o,B as i,f as a,g as l,h as c,i as d,I as u,j as h,S as m,k as T,l as w,m as E,n as p,C as g,o as R,p as k,q as f,r as B,t as I,s as b,N as x,u as O,v as L,w as y,x as A,y as N,z as C,M as j,D as H,H as S,E as v,R as D,F as M,U as P,G as V}from"./p-39b4c838.js";import{g as F}from"./p-a4670e23.js";import{i as U}from"./p-b1faebe0.js";import{d as z}from"./p-02841589.js";import{r as $,i as G}from"./p-d9671d27.js";import{C as J}from"./p-2d0d575f.js";import{d as W}from"./p-3c21b875.js";import{a as K}from"./p-308aa2e3.js";import{c as X}from"./p-bf19682d.js";import{L as Y}from"./p-6e1ab235.js";class RTEListItemBlock extends e{constructor(t,e,n){super(t,"list-item",n),this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new RTEListItemBlock(t.id,void 0,e);s.children=t.nodes.map((t=>n.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const e=RTEListBlock.from(t);return e.parent=s,e})));const{annotations:r}=t;return r&&Object.entries(r).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);U(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(){return[`<li${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(F());return e.children=[],e.apply(new s(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new RTEListItemBlock(F())}clone(){var t;const e=new RTEListItemBlock(this.id);return e.children=this.children.map((t=>{const n=t.clone();return n.parent=e,n})),e.annotationMap=super.cloneAnnotations(),e.nestList=null===(t=this.nestList)||void 0===t?void 0:t.map((t=>{const n=t.clone();return n.parent=e,n})),e.parent=this.parent,e}}r.register(o.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new i),r.register(o.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new a),r.register(o.DELETE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),r.register(o.SPLIT_BLOCK_WITH_NODE,RTEListItemBlock.name,new l),r.register(o.REPLACE_CHILD_NODES,RTEListItemBlock.name,new c),r.register(o.REPLACE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){t.newList.forEach((t=>{t.parent=e})),e.nestList=t.newList}}),r.register(o.MERGE_TWO_BLOCKS_NODES,RTEListItemBlock.name,new d),r.register(o.INSERT_IMAGE_TO_BLOCK,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.parent.apply(t)}});class Z extends w{constructor(){super(...arguments),this.type=E.LIST}renderStyle(t){return(null==t?void 0:t.standalone)?{paddingLeft:"8px",marginLeft:"16px"}:null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new Z}toJSON(){}}class RTEListBlock extends p{constructor(t,e,n){super(t),this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&this.annotationMap.set(E.LIST,new Z)}static from(t,e={autoMatchFormat:!0}){const n=new RTEListBlock(t.id,t.type,e),{annotations:s}=t;return s&&Object.entries(s).forEach((([t,e])=>{const s=this.createAnnotationEntity(t,e);U(s)&&n.annotationMap.set(...s)})),n.children=t.blocks.map((t=>{const s=RTEListItemBlock.from(t,e);return s.parent=n,s})),n}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return k.from(e);case"customClass":return R.from(e);case"customStyle":return g.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(){const t=this.getBlockTag();return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(){const t=new RTEListBlock(this.id,this.type);return t.children=this.children.map((e=>{const n=e.clone();return n.parent=t,n})),t.annotationMap=super.cloneAnnotations(),t.parent=this.parent,t}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}r.register(o.TRANSFORM_LIST_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,r=e.parent.createList(t.listType);if(n.every((t=>t.parent===e)))r.apply(new s(e.children)),e.parent.apply(new u(e,r)),e.parent.apply(new h(e)),n.forEach((t=>t.children.map((t=>t.apply(new m)))));else{const n=t.selectedBlocks.map((t=>e.parent.toListItem(t)));r.apply(new s(n)),e.parent.apply(new u(e,r)),t.selectedBlocks.forEach((t=>{t.parent.apply(new h(t))})),0===e.children.length&&e.parent.apply(new h(e))}}}),r.register(o.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const o=t.selectedBlocks,i=o.map((t=>(t.children.map((t=>t.apply(new m))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new T(e,...i));else if(r)e.parent.apply(new u(e,...i));else{const t=e.children.indexOf(o[0]),n=e.children.indexOf(o[o.length-1]),r=e.parent.createList(e.type);r.apply(new s(e.children.slice(0,t)));const a=e.parent.createList(e.type);a.apply(new s(e.children.slice(n+1))),e.parent.apply(new T(e,r,...i,a)),e.parent.apply(new h(e))}o.map((t=>{e.apply(new h(t))})),0===e.children.length&&e.parent.apply(new h(e))}toParagraph(t){const n=new e(F(),"paragraph");return n.apply(new s(t.children)),n.annotationMap=t.annotationMap,n}}),r.register(o.INSERT_IMAGE_TO_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new u(e,t.imageBlockToBeInserted):t)}});class _{}class Q extends _{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isBold(t)||e.bold?{bold:!0}:{}}isBold(t){return"STRONG"===t.nodeName||"B"===t.nodeName||"bold"===t.style.fontWeight||"700"===t.style.fontWeight||t.classList.contains("v-rte--bold")}}class q extends _{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getAttributes(t);return Object.keys(e).length>0?{customAttribute:e}:{}}getAttributes(t){return t.getAttributeNames().filter((t=>"style"!==t&&"class"!==t&&this.isValidAttr(t))).reduce(((e,n)=>(e[n]=t.getAttribute(n),e)),{})}isValidAttr(t){return/^[a-zA-Z_][\w-]*$/.test(t)}}class tt extends _{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getCustomClass(t);return e.length>0?{customClass:e}:{}}getCustomClass(t){return t.classList.toString().split(" ").filter((t=>!t.includes("v-rte")&&""!==t))}}class et extends _{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.generateCustomStyleAnnotations(t);return Object.keys(e).length>0?{customStyle:e}:{}}generateCustomStyleAnnotations(t){const e=t.getAttribute("style");return e?e.split(";").filter(Boolean).filter((t=>" "!==t)).map((t=>{const e=t.replace(/(['"])(.*?)\1/g,"$2").split(":");return{[z(e[0].trim())]:e[1].trim().replace(";","")}})).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{}):{}}}class nt extends _{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getIndent(t);return e?{indent:e}:{}}getIndent(t){const e=t.style;let n;if(e.marginLeft)n=e.marginLeft;else{if(!e.margin)return null;{const t=e.margin.split(" ");switch(t.length){case 4:n=t[3];break;case 2:case 3:n=t[1];break;default:n=t[0]}}}const s=Number(n.replace("px",""));return s&&s>=0?Math.floor(s/16):null}}class st extends _{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getTextAlign(t);return e?{textAlign:e}:{}}getTextAlign(t){const e=t.classList;if(e.contains("v-rte--horizontal-alignment-left"))return"left";if(e.contains("v-rte--horizontal-alignment-center"))return"center";if(e.contains("v-rte--horizontal-alignment-right"))return"right";if(e.contains("v-rte--horizontal-alignment-justify"))return"justify";switch(t.style.textAlign){case"center":return"center";case"right":return"right";case"justify":return"justify";case"left":return"left";default:return null}}}class rt extends _{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isCode(t)||e.code?{code:!0}:{}}isCode(t){return t.classList.contains("v-rte--code")||"CODE"===t.nodeName||"PRE"===t.nodeName||"monospace"===t.style.fontFamily||"Roboto Mono"===t.style.fontFamily.replace(/["']/g,"")}}class ot extends _{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){const n=this.getColor(t)||e.textColor;return n?{textColor:n}:{}}getColor(t){var e;const n=null===(e=$(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=B.filter((t=>t.key!==I.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of B)if(t.style.color.includes(e.key))return e.key;return null}}class it extends _{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||"italic"===t.style.fontStyle||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class at extends _{constructor(){super(...arguments),this.handlers=[new q,new tt,new et]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:"A"===t.tagName?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:F()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class lt extends _{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes("line-through")||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class ct extends _{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes("underline")||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class dt extends _{canHandle(t,e){return!!e.autoMatchFormat&&"RTETextBlock"===t.name}handle(t){const e=this.getTextStyle(t);return e?{textStyle:e}:{}}getTextStyle(t){const e=this.getElementTypeByDataType(t);if(e)return e;const n=this.getElementTypeByNodeName(t);if(n)return n;const s=this.getElementTypeByFontSize(t);if(s)return s;return this.getElementTypeByClassName(t)||null}getElementTypeByDataType(t){return t.nodeType!==Node.TEXT_NODE&&t.hasAttribute("data-type")?t.getAttribute("data-type"):null}getElementTypeByFontSize(t){var e;switch(null===(e=t.style)||void 0===e?void 0:e.fontSize){case"36px":return"title";case"28px":return"subtitle";case"22px":return"heading-1";case"20px":return"heading-2";case"18px":return"heading-3";default:return null}}getElementTypeByNodeName(t){switch(t.nodeName){case"H1":return"heading-1";case"H2":return"heading-2";case"H3":return"heading-3";case"H4":return"heading-4";case"H5":return"heading-5";case"H6":return"heading-6";default:return null}}getElementTypeByClassName(t){if(t.className){const e=/\bv-rte--text-style-(title|subtitle|heading-1|heading-2|heading-3|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class ut extends _{canHandle(t){return"RTEImageNode"===t.name}handle(t){const e=this.getImageSize(t);return e?{size:e}:{}}getImageSize(t){return t.getAttribute("data-size")?t.getAttribute("data-size"):null}}class ht extends _{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}class mt extends _{constructor(){super(...arguments),this.customAttributeHandler=new q,this.customStyleAnnotationHandler=new et,this.customClassAnnotationHandler=new tt}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(mt.canHandleTags.includes(t.nodeName)){const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));if(n)return{inlineHtml:n}}return{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||1===t.childNodes.length&&t.childNodes[0].nodeType!==Node.TEXT_NODE){const e={htmlTag:t.nodeName.toLowerCase(),customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass};if(s){let n=s;for(;n.child&&t.parentNode&&n.child.htmlTag===t.parentNode.nodeName.toLowerCase();)n=n.child;n.child=e}else s=e}return s?Object.assign({},s):null}}mt.canHandleTags=["A","ABBR","AUDIO","B","BDI","BDO","CITE","CODE","DEL","DFN","EMBED","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","VIDEO"];const Tt=new class{constructor(){this.handlers=[new st,new nt,new Q,new it,new ct,new lt,new ot,new at,new rt,new ut,new ht,new q,new tt,new et,new at,new dt,new mt]}generate(t,e,n={autoMatchFormat:!0}){const s="A"===e.tagName;return this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof at)).filter((r=>e.nodeType!==Node.TEXT_NODE&&r.canHandle(t,{skipCustomAnnotations:n.skipCustomAnnotations||s,autoMatchFormat:n.autoMatchFormat}))).reduce(((t,s)=>{const r=s.handle(e,n.parentAnnotations);return Object.assign(Object.assign({},t),r)}),{})}};class wt{generateTextStyleAnnotations(t,e){return Tt.generate(n,t,e)}}class Et{constructor(t,e){this.childrenOutput=[],this.currentStrategy=t,this.currentElements=e}setChildrenOutput(t){this.childrenOutput=t}toDto(t={autoMatchFormat:!0,skipCustomAnnotations:!0}){const e=this.currentStrategy.handle(this.currentElements,t);return this.childrenOutput.length>0&&e&&this.currentStrategy.appendChildBlocks(e,this.childrenOutput.map((e=>e.toDto(t))).filter(U)),e}}const pt=new class{constructor(){this.elementToBlockStrategies=[],this.elementToNodeStrategies=[]}registerElementToBlockStrategy(t){this.hasDuplicateStrategy(t,this.elementToBlockStrategies)||this.elementToBlockStrategies.unshift(t)}registerElementToNodeStrategy(t){this.hasDuplicateStrategy(t,this.elementToNodeStrategies)||this.elementToNodeStrategies.unshift(t)}getElementToBlockStrategies(){return this.elementToBlockStrategies}getElementToNodeStrategies(){return this.elementToNodeStrategies}hasDuplicateStrategy(t,e){return e.includes(t)}},gt=new class{process(t,e={autoMatchFormat:!0,skipCustomAnnotations:!0}){const n=this.getElementToBlockStrategies(),s=[];for(let r=0;r<t.length;r++){if(this.isInvalidElement(t[r]))continue;let o=0;for(const i of n)if(o=i.canHandle(t,r,e),o>0){const n=t.slice(r,r+o),a=new Et(i,n);1===o&&i.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=o-1;break}if(0===o&&r<t.length){const n=Array.from(t[r].childNodes),o=this.process(Array.from(n),e);o.length>0&&s.push(...o)}}return s}isInvalidElement(t){return t.nodeType===Node.COMMENT_NODE||["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return pt.getElementToBlockStrategies()}};class Rt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class kt extends t{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[...t.childrenToBeInserted,t.referChildren])}replaceElementWithElements(t,e,n){t.children&&(n.forEach((e=>{e.parent=t})),t.children=t.children.flatMap((t=>t===e?n:t)))}}class ft extends kt{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class Bt extends x{constructor(t,e){super(),this.type=O.IMAGE,this.size=t,this.alt=e}static from(t,e){return[O.IMAGE,new Bt(t,e)]}toJSON(){return U(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new Bt(this.size,this.alt)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.size?`v-rte--image-size-${this.size}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={verticalAlign:"bottom"};switch(this.size){case"sm":return Object.assign(Object.assign({},e),{width:"25%"});case"md":return Object.assign(Object.assign({},e),{width:"50%"});case"lg":return Object.assign(Object.assign({},e),{width:"100%"})}}}class RTEImageNode extends L{constructor(t,e,n,s){super(t,s),this.type=y.IMAGE,this.url=e,this.parent=n}static from(t,e,n={autoMatchFormat:!0}){const s=new RTEImageNode(t.id,t.url,e),r=!!n.autoMatchFormat,o=Object.assign({},t.annotations),{size:i}=o,a=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]])}return n}(o,["size"]),l=Object.assign(Object.assign({},a),{size:null!=i?i:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?Bt.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter(U)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof Bt||t instanceof A)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return""==t.alt&&delete t.alt,Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}clone(){return new RTEImageNode(this.id,this.url,this.parent,super.cloneAnnotations())}toHtml(){const t=this.getAnnotationByType(O.IMAGE);return`<img${super.generateAttributeString(...[t&&t.alt?`alt="${t.alt}"`:null,`src="${this.url}"`,t&&t.size?`data-size="${t.size}"`:null].filter(U))}>`}doAnnotationActionApply(t){const e=r.get(N.name,RTEImageNode.name);e&&e.execute(t,this)}doModifyActionApply(t){r.executeTheStrategy(t,this)}}r.register(o.UPDATE_IMAGE_NODE_URL,RTEImageNode.name,new class extends t{handleAction(t,e){e.url=t.url}}),r.register(N.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class It extends j{constructor(t,e){super(),this.type=o.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends p{constructor(t){super(t),this.type="image",this.children=[]}static from(t,e={autoMatchFormat:!0}){const n=new RTEImageBlock(t.id),{annotations:s}=t;return n.children=t.nodes.map((t=>RTEImageNode.from(t,n,e))),s&&super.convertAnnotationsToMap(n.annotationMap,s),n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.children.map((t=>t.toJSON()))})}toHtml(){const t=super.generateAttributeString(),e=this.children.map((t=>t.toHtml())).join("");return super.shouldRenderAsInternalWrapper()?e:[`<div${t}>`,e,"</div>"].join("")}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.url.length>0))}getLastNode(){return this.children[this.children.length-1]}createNewImageBlock(){return new RTEImageBlock(F())}clone(){const t=new RTEImageBlock(this.id);return t.children=this.children.map((e=>{const n=e.clone();return n.parent=t,n})),t.annotationMap=super.cloneAnnotations(),t.parent=this.parent,t}}r.register(o.MERGE_TWO_BLOCKS_NODES,RTEImageBlock.name,new d),r.register(o.REPLACE_CHILD_NODES,RTEImageBlock.name,new c),r.register(o.SPLIT_BLOCK_WITH_NODE,RTEImageBlock.name,new class extends t{handleAction(t,e){t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode,e)}splitImageNodes(t,e,n){const s=n.children.indexOf(t);if(s>-1){const t=n.children.slice(0,s+e),r=n.children.slice(s+e);n.apply(new C(t));const o=this.cloneWithNodes(r,n);return n.parent.apply(new u(n,o)),o}}cloneWithNodes(t,e){const n=e.createNewImageBlock();return n.children=[],n.apply(new s(t)),n}}),r.register(o.LINE_BREAK_SINGLE_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=new It(t.startContainerNode,t.startOffset);e.apply(n);const s=n.newBlock;s&&(t.lineBreakNode=s.children[0])}}),r.register(o.LINE_BREAK_MULTIPLE_BLOCKS,RTEImageBlock.name,new class extends t{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,r){const o=e.from({id:F(),type:"paragraph",nodes:[{id:F(),type:"text",text:"\n"}]});r.parent.apply(new u(r,o));const i=this.concatBlocksNodes(t.slice(1));return(0===i.length||i[0]&&""===i[0].text)&&i.push(new n(F(),"\n",o)),o.apply(new s(i)),o.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new h(t)))})),e}}),r.register(o.INSERT_IMAGE_TO_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=t.splitPointNode,r=t.startOffsetOfNode,o=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(o.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new u(e,o)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new T(e,o)):(e.apply(new H(n,r)),e.parent.apply(new u(e,o)))}}),r.register(S.name,RTEImageBlock.name,new v);class RTEHtmlBlock extends p{constructor(t,e){super(t),this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const n=new RTEHtmlBlock(t.id,t.htmlTag),{annotations:s}=t;return s&&super.convertAnnotationsToMap(n.annotationMap,s),n.children=t.children.map((t=>{const s=D.getRTEBlockClass(t.type);if(s){const r=s.from(t,e);return r.parent=n,r}})).filter(U),n}clone(){const t=new RTEHtmlBlock(this.id,this.htmlTag);return t.children=this.children.map((t=>t.clone())),t.annotationMap=super.cloneAnnotations(),t}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(){const t=this.htmlTag;return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}class bt extends j{constructor(t){super(),this.type=o.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class xt extends M{handleAction(t,e){const{startContainerNode:n}=t;n.isContentEditable()?n.isTextNode()&&this.deleteTextNodeContent(t,e):this.deleteDecoratorNodeContent(t,e);const s=e.parent;s&&e.isListItemBlock()&&0===s.children.length&&s.parent.apply(new h(s))}deleteTextNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;if(0!==s&&!n.isEmpty()){const r=n.text.slice(0,s-1)+n.text.slice(s);if(n.apply(new P(r)),r)return void(t.previousNode=n);{const s=this.getPreviousNode(n);return s&&s.parent===e&&"\n"===s.text||1===e.children.length?void(t.previousNode=n):(e.apply(new h(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const o=n.isEmpty();if(e.children.length&&s&&s.parent!==e)o&&e.apply(new h(n)),e.type===s.parent.type&&s.parent.apply(new bt(e));else if(this.isContentFirstNode(n)&&o&&(r=this.getNextNode(n)),o&&e.apply(new h(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new h(t)),s||o||(r=n)}0===e.children.length&&e.parent.apply(new h(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),o=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(o=this.getNextNode(n)),1===t.children.length?t.parent.apply(new h(t)):t.apply(new h(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new h(e)),r||(t.nextNode=n))}r?t.previousNode=r:o&&(t.nextNode=o)}}class Ot extends t{handleAction(t,e){const{startContainerNode:n}=t;t.newBlock=this.breakSingleBlock(n,t.startOffset,e)}breakSingleBlock(t,e,n){const s=this.getNewParagraph(t);if(s){if(this.isCaretPositionAtBlockEnd(n,t,e))n.parent.apply(new u(n,s));else{if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new H(t,e);return n.apply(s),s.newBlock}n.parent.apply(new T(n,s))}return s}}getNewParagraph(t){const e=this.createNewParagraph("");if(e){let n=e.children[0];return t.isTextNode()&&t.isContentEditable()&&(e.children=[],n=t.cloneWithText(""),n.annotationMap.delete(O.LINK),e.apply(new s([n]))),e}}}class Lt extends j{constructor(t,e,n=!1){super(),this.type=o.UPDATE_CURSOR_POSITION,this.immediatelyRun=!1,this.nextFocusNode=t,this.offset=e,this.immediatelyRun=n}}class yt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:o}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==o){const e=r.text.substring(0,o),n=r.text.substring(o),i=r.cloneWithText(e),a=r.cloneWithText(n),l=[i,s];n&&l.push(a),t.apply(new T(r,...l)),t.apply(new h(r))}else t.apply(new T(r,s));else t.apply(0!==o?new u(r,s):new T(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new Lt(t))}}class At extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,o=this.createNewParagraph(n);if(o){const t=o.children[0];e.apply(0!==s?new u(r,t):new T(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new Lt(t))}}class Nt extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),o=this.copyInlineStyleToNewNode(t);if(r.apply(new s([o])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new H(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new T(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],o=1===n.children.length&&n.children[0].isEmpty();if(n===r&&o){const r=n.parent.parent;if("list-item"!==r.type){const o=e.from({id:F(),type:"paragraph",nodes:[]});return o.apply(new s(t.children)),r.apply(new u(n.parent,o)),n.parent.apply(new h(n)),o}r.parent.apply(new u(r,t)),n.parent.apply(new h(n))}else n.parent.apply(new u(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(O.LINK),e}}class Ct extends j{constructor(t){super(),this.type=o.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class jt extends V{handleAction(t,e){super.handleAction(t,e);const n=e.parent;0===e.children.length&&n&&n.apply("list-item"===n.type?new Ct(e):new h(e))}}const Ht=new class{registerBlockBasicStrategies(t){r.register(o.DELETE_CHILDREN,t,t===RTEListBlock.name?new jt:new V),r.register(o.APPEND_CHILDREN,t,new Rt),r.register(o.INSERT_CHILDREN_BEFORE,t,new kt),r.register(o.INSERT_CHILDREN_AFTER,t,new ft),r.register(o.DELETE_BLOCK_CONTENT,t,new xt),r.register(o.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new Nt:new Ot),r.register(o.INSERT_TEXT_TO_DECORATOR_NODE,t,new At),r.register(o.INSERT_NODE_TO_NEAREST_ROOT,t,new yt)}};class St extends wt{constructor(){super(...arguments),this.annotationHandler=new dt}generateChildNodes(t,e,s){const r=[],o=!(!s||!1!==s.autoMatchFormat),i=Object.assign({},e);return t.forEach((t=>{const a=pt.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,i)),l)r.push(l);else if(G(t)&&t.childNodes.length>0){const a=Tt.generate(n,t,Object.assign({parentAnnotations:o?{inlineHtml:i.inlineHtml,link:i.link,code:i.code}:e},s));r.push(...this.generateChildNodes(Array.from(t.childNodes),a,s))}})),r}matchTextBlockType(t){var e;return null!==(e=this.annotationHandler.handle(t).textStyle)&&void 0!==e?e:"paragraph"}}class vt extends St{canHandle(t,e,n){const s=t[e];return!n.autoMatchFormat&&("DIV"!==s.nodeName||s.childNodes.length>0&&"IMG"!==s.childNodes[0].nodeName)&&vt.canHandleTags.includes(t[e].nodeName)?1:0}handle(t,e){return RTEHtmlBlock.from(this.generateHtmlBlock(t[0],e),e)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}generateHtmlBlock(t,e){return{id:F(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:Tt.generate(RTEHtmlBlock,t,e),children:[]}}}vt.canHandleTags=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","BUTTON","CAPTION","COL","COLGROUP","DIV","DD","DETAILS","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","HEADER","HR","HX","INPUT","LEGEND","MAIN","NAV","PRE","SECTION","SUMMARY","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR"];class Dt extends St{canHandle(t,e){return"PRE"!==t[e].tagName&&"CODE"!==t[e].tagName||!t[e].hasAttribute("data-language")?0:1}handle(t){const e=t[0];if(e){const t=e.textContent,n=e.dataset.language;return f.from({id:F(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class Mt extends St{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:F(),type:"image",nodes:[{id:F(),type:"image",url:t.src,annotations:Tt.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},Tt.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class Pt extends St{canHandle(t,e){let n=0;for(let s=e;s<t.length;s++){const e=t[s];if(e.nodeType!==Node.TEXT_NODE&&(!Pt.canHandleTags.includes(e.nodeName)||""===e.textContent&&e.querySelector("IMG")))break;n++}return n}handle(t,s){const r=t[0].parentElement,o=s&&s.autoMatchFormat,i=this.generateChildNodes(t,o?Tt.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=o?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!o&&!a;return e.from(Object.assign({id:F(),type:a||"paragraph",nodes:i},l?{annotations:{internalWrapper:l}}:{annotations:Tt.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}}Pt.canHandleTags=[...mt.canHandleTags,"CODE","A","VEGA-RICH-TEXT-LINK-EDITOR","BR"];class Vt extends wt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:F(),type:"text",text:t,annotations:e}}}D.registerRTEDTOClass("paragraph",e),D.registerRTEDTOClass("title",e),D.registerRTEDTOClass("subtitle",e),D.registerRTEDTOClass("heading-1",e),D.registerRTEDTOClass("heading-2",e),D.registerRTEDTOClass("heading-3",e),D.registerRTEDTOClass("heading-4",e),D.registerRTEDTOClass("heading-5",e),D.registerRTEDTOClass("heading-6",e),D.registerRTEDTOClass("heading-6",e),D.registerRTEDTOClass("list-item",RTEListItemBlock),D.registerRTEDTOClass("bullet-list",RTEListBlock),D.registerRTEDTOClass("number-list",RTEListBlock),D.registerRTEDTOClass("image",RTEImageBlock),D.registerRTEDTOClass("code-block",f),D.registerRTEDTOClass("html-block",RTEHtmlBlock),D.registerRTEDTOClass("text",n),D.registerRTEDTOClass("image",RTEImageNode),Ht.registerBlockBasicStrategies(e.name),Ht.registerBlockBasicStrategies(RTEListBlock.name),Ht.registerBlockBasicStrategies(RTEListItemBlock.name),Ht.registerBlockBasicStrategies(RTEImageBlock.name),Ht.registerBlockBasicStrategies(RTEHtmlBlock.name),pt.registerElementToBlockStrategy(new Pt),pt.registerElementToBlockStrategy(new class extends Mt{canHandle(t,e){const n=t[e];return n.nodeType===Node.ELEMENT_NODE&&""===n.textContent&&n.querySelector("img")?1:0}handle(t,e){const n=t[0].querySelector("img");return this.createRTEImageBlock(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),pt.registerElementToBlockStrategy(new class extends Mt{canHandle(t,e){return"VEGA-RICH-TEXT-IMAGE-EDITOR"===t[e].tagName?1:0}handle(t,e){const n=t[0],s=n.querySelector("img");if(U(s))return RTEImageBlock.from({id:F(),type:"image",nodes:[{id:F(),type:"image",url:s.src,annotations:Tt.generate(RTEImageNode,n,e)}],annotations:Tt.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),pt.registerElementToBlockStrategy(new class extends Mt{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),pt.registerElementToBlockStrategy(new class extends St{canHandle(t,e){return["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title","subtitle"].includes(super.matchTextBlockType(t[e]))?1:0}handle(t,n){const s=this.generateChildNodes(Array.from(t[0].childNodes),{},n);return 0===s.length?null:e.from({id:F(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:Tt.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),pt.registerElementToBlockStrategy(new Dt),pt.registerElementToBlockStrategy(new class extends Dt{canHandle(t,e){return"VEGA-CODE-BLOCK"===t[e].tagName&&0==!!t[e].querySelector("vega-code-block")||this.isCodeBlockContainer(t[e])?1:0}handle(t){const e=this.isCodeBlockContainer(t[0])?t[0].querySelector("vega-code-block"):t[0],n=e.querySelector("code");if(n)return super.handle([n]);if(e.hasAttribute("data-content")){const t=document.createElement("code");return t.textContent=e.dataset.content,t.dataset.language=e.dataset.language,super.handle([t])}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isCodeBlockContainer(t){return"PRE"===t.tagName&&t.classList.contains("code-block-container")&&1===t.querySelectorAll("vega-code-block").length}}),pt.registerElementToBlockStrategy(new class extends St{canHandle(t,e){if(!["UL","OL"].includes(t[e].parentElement.nodeName)&&t.some((t=>"LI"===t.nodeName))){let n=0;for(let s=e;s<t.length&&"LI"===t[s].nodeName;s++)n++;return n}return"LI"===t[e].tagName?1:0}handle(t,e){const n=t[0];return["UL","OL"].includes(n.parentElement.nodeName)?RTEListItemBlock.from(this.generateListItemBlockDTO(n,e),e):this.generateWithListBlock(t,e)}appendChildBlocks(t,e){t.nestList=e.filter((t=>["bullet-list","number-list"].includes(t.type)))}shouldProceedToElementChildren(){return!0}generateWithListBlock(t,e){return RTEListBlock.from({id:F(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:F(),type:"list-item",annotations:Tt.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),Tt.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),pt.registerElementToBlockStrategy(new class extends St{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,o=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),i=U(s)&&["UL","OL"].includes(s.nodeName);return r&&!o&&i?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:F(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),pt.registerElementToBlockStrategy(new class extends St{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:F(),type:"number-list",blocks:[],annotations:Tt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),pt.registerElementToBlockStrategy(new class extends St{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:F(),type:"bullet-list",blocks:[],annotations:Tt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),pt.registerElementToBlockStrategy(new vt),pt.registerElementToNodeStrategy(new class extends Vt{canHandle(t,e){const n=t[e];return!G(n)||"BR"!==n.nodeName&&0!==n.childNodes.length?0:1}handle(t,e,s){const r=!(!e||!1!==e.autoMatchFormat),o=Object.assign({},s),i=t[0],a=Tt.generate(n,i,Object.assign({parentAnnotations:r?{inlineHtml:o.inlineHtml,link:o.link,code:o.code}:s},e));if("BR"===i.nodeName)return this.generateTextNode("\n",a);if(0===i.childNodes.length){const t=r?X(Object.assign(Object.assign({},n.supportsHtmlTag(i.nodeName.toLowerCase())?a:{}),{inlineHtml:a.inlineHtml,plainText:U(a.inlineHtml)})):a;return Object.assign({},this.generateTextNode("",t))}}}),pt.registerElementToNodeStrategy(new class extends Vt{canHandle(t,e){return t[e].nodeType===Node.TEXT_NODE?1:0}handle(t,e,s){const r=Object.assign({},s),o=!(!e||!1!==e.autoMatchFormat),i=t[0],a=i.parentNode.nodeName.toLowerCase(),l=o&&!n.supportsHtmlTag(a),c=this.generateTextNode(String(i.textContent),o?X(Object.assign(Object.assign({},"span"===a?r:{link:r.link,code:"code"===a?r.code:void 0}),{inlineHtml:r.inlineHtml,plainText:l||void 0})):r);return Object.assign({},c)}});class Ft{static preserve(t){const e=t.replace(/\s+style=/g," data-style=");return new Ut(e)}}class Ut{constructor(t){this.processedHtml=t}getProcessedHtml(){return this.processedHtml}restore(t){this.walkNodes(t)}walkNodes(t){t.forEach((t=>{if(G(t)){const e=t.getAttribute("data-style");e&&(t.style.cssText=e,t.removeAttribute("data-style")),t.children.length>0&&this.walkNodes(Array.from(t.children))}}))}}class VegaRTEContent{constructor(t){t.forEach((t=>{t.parent=this})),this.children=t}static fromJSON(t,e={autoMatchFormat:!0}){const n=t.map((t=>{const n=D.getRTEBlockClass(t.type);if(n)return n.from(t,e);throw new Error(`[Vega] Unknown block type: ${t.type}`)}));return new VegaRTEContent(n)}static createEmptyContent(){return VegaRTEContent.fromJSON([{id:F(),type:"paragraph",nodes:[{id:F(),type:"text",text:""}]}])}static fromHtml(t,e={autoMatchFormat:!0,skipCustomAnnotations:!1}){const n=t.replace(/>\s+<\/?/g,(t=>t.endsWith("</")?t:"><")).replace(/(>)[\n\t]+(?=[a-zA-Z0-9_\W])/g,"$1").replace(/([a-zA-Z0-9_\W])[\n\t]+(?=<)/g,"$1"),s=Ft.preserve(n),r=s.getProcessedHtml(),o=(new DOMParser).parseFromString(r,"text/html").body,i=Array.from(o.childNodes);s.restore(i);const a=gt.process(i,e).filter(U).map((t=>t.toDto(e))).filter(U);return new VegaRTEContent(a)}clone(t=!1){return new VegaRTEContent(t?this.children.map((t=>t.clone())):[...this.children])}toJSON(){return this.children.map((t=>t.toJSON()))}toHtml(t){return t&&Y.warn("The 'options' parameter in toHtml method is deprecated and will be removed in the future."),this.children.map((t=>t.toHtml())).join("")}apply(t){r.executeTheStrategy(t,this)}getLastNode(){return 0===this.children.length?null:this.children[this.children.length-1].getLastNode()}toListItem(t){t.children.map((t=>t.apply(new m)));const e=new RTEListItemBlock(F());return e.apply(new s(t.children)),e.annotationMap=t.annotationMap,e}createList(t){return new RTEListBlock(F(),t)}findNodeById(t){return this.findNodeInBlocksById(t,this.children)}findNodeInBlocksById(t,e){for(const n of e){if("children"in n)for(const e of n.children)if(e.id===t)return e;if(n instanceof RTEListItemBlock&&n.nestList)for(const e of n.nestList){const n=this.findNodeInBlocksById(t,e.children);if(n)return n}if(n instanceof RTEListBlock&&n.children){const e=this.findNodeInBlocksById(t,n.children);if(e)return e}}return null}}r.register(o.DELETE_CHILDREN,VegaRTEContent.name,new V),r.register(o.APPEND_CHILDREN,VegaRTEContent.name,new Rt),r.register(o.INSERT_CHILDREN_BEFORE,VegaRTEContent.name,new kt),r.register(o.INSERT_CHILDREN_AFTER,VegaRTEContent.name,new ft),r.register(o.TRANSFORM_TO_CODE_BLOCK,VegaRTEContent.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,s=new f(F(),this.getCodeContent(n),"plainText");e.apply(new T(n[0],s)),t.newCodeBlock=s,this.removeSelectBlocks(n,e)}getCodeContent(t){return t.filter((t=>"image"!==t.type&&"list-item"!==t.type)).map((t=>t.children.map((t=>t.text)).join(""))).join("\n")}removeSelectBlocks(t,e){for(let n=0;n<t.length;n++)e.apply(new h(t[n]))}}),r.register(o.UPDATE_CURSOR_POSITION,VegaRTEContent.name,new class extends t{handleAction(t,e){const{offset:n,nextFocusNode:s,immediatelyRun:r}=t,o=b.getDOMByEntity(e);o&&J.notify(W.getSubject(o,K),{node:s,offset:n,updateDirectly:r})}});const zt=new class{constructor(){this.RTE_DTO_RENDERER_MAP=new Map,this.RTE_TOOLBAR_BUTTON_RENDERER_MAP=new Map}registerRTEDTORenderer(t,e){const n=this.RTE_DTO_RENDERER_MAP.get(t);if(e&&n&&n.constructor.name!==e.constructor.name)throw new Error(`Renderer for type ${t} is already registered with a different class(${n.constructor.name}).`);this.RTE_DTO_RENDERER_MAP.set(t,e)}registerRTEToolbarButtonRenderer(t,e){this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(t,e)}getRTERenderer(t){return this.RTE_DTO_RENDERER_MAP.get(t)}getRTEToolbarButtonRenderer(t){return this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(t)}};export{pt as E,Bt as I,bt as M,zt as R,Ft as S,Lt as U,VegaRTEContent as V,Ht as a,wt as b,RTEListItemBlock as c,RTEImageBlock as d,RTEListBlock as e,RTEImageNode as f,It as g,gt as h}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as i,H as s,g as o}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as a,V as n,M as p,I as l}from"./p-6e1ab235.js";import{V as h,I as c}from"./p-d849e0f5.js";import{D as m,f,E as u}from"./p-3c21b875.js";import{n as d,c as v,b as j}from"./p-262ec334.js";import{C as b}from"./p-2033f86e.js";import{c as w}from"./p-053eb64a.js";import{F as x}from"./p-a528714c.js";import{C as y}from"./p-2d0d575f.js";import{K as R}from"./p-b4c25109.js";import{F as C}from"./p-43257678.js";import{R as g}from"./p-280cbcdb.js";import{c as I}from"./p-cef9f638.js";import{M as V,a as N}from"./p-f0ff4463.js";import"./p-331a62d5.js";import"./p-d9671d27.js";import"./p-24cb0a7e.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-b510e4d7.js";import"./p-b1faebe0.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-02841589.js";import"./p-a4670e23.js";import"./p-308aa2e3.js";import"./p-39482a1a.js";import"./p-7d9cd9c8.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-fddca002.js";var T=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class S extends n{constructor(){super(...arguments),this.onInputChange=t=>{this.valueController.updateValue(t.detail)},this.onInputBlur=t=>{const e=t.host.value.replace(/,/g,"");if(""!==e&&!isNaN(e)){let t=d(Number(e),this.min,this.max);this.integerOnly&&(t===this.min?t=Math.ceil(this.min):t===this.max&&(t=Math.floor(this.max))),t!==Number(e)&&this.valueController.updateValue(t.toString())}}}getInputRef(){return this.vegaInputRef.shadowRoot.querySelector("input")}getContainerRef(){return this.vegaInputRef.shadowRoot.querySelector(".vega-input-container")}render(){const e={thousandComma:this.thousandComma};return this.integerOnly&&(e.precision=0),t("vega-input",{value:this.value||"",showClearIcon:this.showClearIcon,disabled:this.disabled,label:this.label,hint:this.hint,required:this.required,type:"number",placeholder:this.placeholder,size:"small"===this.size?"small":"default",prefixIcon:this.prefixIcon,ref:t=>{this.vegaInputRef=t,m.addUniqueObserverToNode(t,f,(t=>this.onInputChange(t))),m.addUniqueObserverToNode(t,u,(t=>this.onInputBlur(t)))},maskConfig:{type:"number",options:e}})}}T([a()],S.prototype,"prefixIcon",void 0),T([a()],S.prototype,"showClearIcon",void 0),T([a()],S.prototype,"value",void 0),T([a()],S.prototype,"size",void 0),T([a()],S.prototype,"disabled",void 0),T([a()],S.prototype,"placeholder",void 0),T([a()],S.prototype,"label",void 0),T([a()],S.prototype,"hint",void 0),T([a()],S.prototype,"required",void 0),T([a()],S.prototype,"thousandComma",void 0),T([a()],S.prototype,"integerOnly",void 0),T([a()],S.prototype,"min",void 0),T([a()],S.prototype,"max",void 0),T([a()],S.prototype,"valueController",void 0);var O=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class k extends n{watchValue(){this.changeEventEmitter.emit(this.value),y.notify(x,{host:this.host,detail:this.value})}updateValue(t){this.value=t}}O([a()],k.prototype,"host",void 0),O([a({writable:!0})],k.prototype,"value",void 0),O([a()],k.prototype,"changeEventEmitter",void 0),O([p("watchValue")],k.prototype,"watchValue",null);var E=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class A extends R{constructor(){super((t=>[{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[t.host],callback:t.onArrowUpOrDown},{keyCode:["ArrowUp"],eventName:"keydown",activeElementInScope:[t.host],callback:t=>{t.preventDefault()}}])),this.onArrowUpOrDown=t=>{const e=t.shiftKey?this.majorIncrement:this.minorIncrement,i=v(this.value.replace(/,/g,""))||0,s=Math.max(j(i),j(e));"ArrowUp"===t.code?this.valueController.updateValue(`${(i+e).toFixed(s)}`):"ArrowDown"===t.code&&this.valueController.updateValue(`${(i-e).toFixed(s)}`)}}}E([a()],A.prototype,"host",void 0),E([a()],A.prototype,"value",void 0),E([a()],A.prototype,"minorIncrement",void 0),E([a()],A.prototype,"majorIncrement",void 0),E([a()],A.prototype,"valueController",void 0);var F=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const M=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.valueController=new k,this.keyboardController=new A,this.renderer=new S,this.changeEventEmitter=w(M,f),this.inputEventPrevent=new b([f],(()=>this.host),{useCapture:!0}),this.formFieldController=new C({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new g:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new V({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new N({maxValue:t}):null}],validationRulesName:"validationRules",inputContainerGetter:()=>this.renderer.getContainerRef(),touchableAreaGetter:()=>[this.renderer.getInputRef()],defaultValue:"",attributeGetter:t=>this[t]}),this.prefixTextNotifySlimmer=I(M,"prefixText","watchPrefixText"),this.suffixTextNotifySlimmer=I(M,"suffixText","watchSuffixText"),this.isCompactInputWidthNotifySlimmer=I(M,"isCompactInputWidth"),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.isCompactInputWidth=!0,this.prefixText="",this.value="",this.size="medium",this.thousandComma=!1,this.integerOnly=!1,this.disabled=!1,this.minorIncrement=1,this.majorIncrement=10,this.label="",this.validationRules=[],this.isValid=null,this.autoValidation=!0,this.showClearIcon=!0,this.min=null,this.max=null}watchPrefixText(){}watchSuffixText(){}watchValue(){}watchValidationRules(){}render(){return r(t(s,null,this.renderer.render()),this.host)}get host(){return o(this)}static get watchers(){return{prefixText:["watchPrefixText"],suffixText:["watchSuffixText"],value:["watchValue"],validationRules:["watchValidationRules"]}}};F([c()],M.prototype,"globalSlimmers",void 0),F([l()],M.prototype,"valueController",void 0),F([l()],M.prototype,"keyboardController",void 0),F([l()],M.prototype,"renderer",void 0),F([l()],M.prototype,"changeEventEmitter",void 0),F([l()],M.prototype,"inputEventPrevent",void 0),F([l()],M.prototype,"formFieldController",void 0),F([l()],M.prototype,"prefixTextNotifySlimmer",void 0),F([l()],M.prototype,"suffixTextNotifySlimmer",void 0),F([l()],M.prototype,"isCompactInputWidthNotifySlimmer",void 0),F([l()],M.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),M.style=":host{display:inline-block;width:100%}";export{M as vega_input_numeric}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,f as e,r as s,H as o,g as i}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as p,V as a,M as n,L as c,I as m}from"./p-6e1ab235.js";import{V as d,I as l}from"./p-d849e0f5.js";import{a as f,V as j}from"./p-8c9ea6f4.js";import{f as h}from"./p-378e5881.js";import{f as b}from"./p-a528714c.js";import{O as u}from"./p-331a62d5.js";import{C as v}from"./p-2d0d575f.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-b1faebe0.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-228de113.js";import"./p-7d9cd9c8.js";import"./p-b75ee3ba.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-5f377954.js";import"./p-64c3d021.js";import"./p-d9671d27.js";import"./p-4c192985.js";import"./p-112455b1.js";import"./p-54ae02db.js";import"./p-24cb0a7e.js";import"./p-3c21b875.js";import"./p-d5d6dae6.js";import"./p-39b4c838.js";import"./p-308aa2e3.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-a7b5f497.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";import"./p-39482a1a.js";import"./p-824a06ba.js";var g=function(t,e,s,o){var i,r=arguments.length,p=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(p=(r<3?i(p):r>3?i(e,s,p):i(e,s))||p);return r>3&&p&&Object.defineProperty(e,s,p),p};class y extends a{render(){const e=f.getIconKey(this.country),s=j.hasIcon(e),o=h(this.size,"widthAndHeight"),i=`calc(${o} * 4 / 3)`;return s?t("vega-icon",{icon:e,size:this.size,style:{"--vega-icon-width":i}}):t("vega-skeleton",{type:"image",corners:"rounded-2",height:o,width:i})}}g([p()],y.prototype,"size",void 0),g([p()],y.prototype,"country",void 0);var R=function(t,e,s,o){var i,r=arguments.length,p=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(p=(r<3?i(p):r>3?i(e,s,p):i(e,s))||p);return r>3&&p&&Object.defineProperty(e,s,p),p};class w extends a{constructor(){super(...arguments),this.isAcceptObserver=()=>!0,this.listenerCallback=()=>{e(this.host)}}componentWillLoad(){this.country&&(this.isFlagForCountryCodeLoaded(this.country)||this.registerObserver())}unRegisterObserver(){this.observer&&(v.unregister(b,this.observer),this.observer=null)}registerObserver(){this.observer=new u(this.isAcceptObserver.bind(this),this.listenerCallback.bind(this)),v.register(b,this.observer)}isFlagForCountryCodeLoaded(t){const e=f.getIconKey(t);return f.hasIcon(e)}}!async function(){try{const t=(await import("./p-3e258753.js")).CountryFlags;f.register(t),v.notify(b,{})}catch(t){c.error("Error loading flag module:",t)}}(),R([p()],w.prototype,"host",void 0),R([p()],w.prototype,"country",void 0),R([n("componentWillLoad")],w.prototype,"componentWillLoad",null),R([n("disconnectedCallback")],w.prototype,"unRegisterObserver",null);var O=function(t,e,s,o){var i,r=arguments.length,p=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(p=(r<3?i(p):r>3?i(e,s,p):i(e,s))||p);return r>3&&p&&Object.defineProperty(e,s,p),p};const C=class{constructor(t){s(this,t),this.globalSlimmers={},this.renderer=new y,this.vegaFlagIconController=new w,this.vegaComponentUsageRuntimeMetricsSlimmer=new d,this.size="size-16"}render(){return r(t(o,null,this.renderer.render()),this.host)}get host(){return i(this)}};O([l()],C.prototype,"globalSlimmers",void 0),O([m()],C.prototype,"renderer",void 0),O([m()],C.prototype,"vegaFlagIconController",void 0),O([m()],C.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),C.style=":host{display:inline-block}:host vega-icon,:host vega-skeleton,:host svg{display:block;border-radius:2px}:host vega-icon{width:var(--vega-icon-width, 24px)}";export{C as vega_flag_icon}
|