@heartlandone/vega 2.85.0 → 2.87.0-beta.1
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/{accessibility-a5ef2038.js → accessibility-88f8af84.js} +16 -1
- package/dist/cjs/{app-globals-54327b0a.js → app-globals-885090b1.js} +11 -11
- package/dist/cjs/{aria-dialog-focusable-trap-slimmer-5507f917.js → aria-dialog-focusable-trap-slimmer-c2ca46db.js} +3 -3
- package/dist/cjs/{child-nodes-event-prevent-slimmer-f3979a03.js → child-nodes-event-prevent-slimmer-b7498e5a.js} +2 -2
- package/dist/cjs/{child-nodes-notify-observer-slimmer-2631c381.js → child-nodes-notify-observer-slimmer-34a606b3.js} +1 -1
- package/dist/cjs/{code-block-6da521e6.js → code-block-15411c14.js} +19 -4
- package/dist/cjs/{component-usage-runtime-metrics-4572c5b7.js → component-usage-runtime-metrics-389d1548.js} +1 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-f3f35f94.js → component-value-history-controller-slimmer.abstract-5218e4b3.js} +6 -6
- package/dist/cjs/{content-state-89fafb3b.js → content-state-a69d99b4.js} +5 -5
- package/dist/cjs/{create-public-api-runtime-metrics-slimmer-9cb09fb2.js → create-public-api-runtime-metrics-slimmer-122350c3.js} +1 -1
- package/dist/cjs/{date-required-rule-0dd83683.js → date-required-rule-d65727c5.js} +1 -1
- package/dist/cjs/{design-token-4b3509dd.js → design-token-3bc36220.js} +3 -3
- package/dist/cjs/{dom-node-subject-observer-factory-9110cb94.js → dom-node-subject-observer-factory-ba6a95f3.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-2b4e0a62.js → element-appender-slimmer-f86e6811.js} +6 -6
- package/dist/cjs/{event-emit-slimmer-80e1c8ca.js → event-emit-slimmer-73c42d7e.js} +2 -2
- package/dist/cjs/{feature-flag-controller-9129ef52.js → feature-flag-controller-5fa21654.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-a07e3de0.js → form-field-controller-slimmer-44091874.js} +5 -5
- package/dist/cjs/{icon-manager-c12c6ea9.js → icon-manager-e855446d.js} +1 -1
- package/dist/cjs/{image-annotation-action-025389a7.js → image-annotation-action-aad07357.js} +5 -5
- package/dist/cjs/index.cjs.js +26 -25
- package/dist/cjs/{inject-keyboard-manager-ff8735b8.js → inject-keyboard-manager-d06b337e.js} +1 -1
- package/dist/cjs/{internal-icon-manager-c989189a.js → internal-icon-manager-66c48800.js} +1 -1
- package/dist/cjs/{internal-translation-controller-8360a89c.js → internal-translation-controller-f0da24b2.js} +5 -0
- package/dist/cjs/{internal-vega-event-manager-7e0d966d.js → internal-vega-event-manager-063c17cb.js} +5 -2
- package/dist/cjs/{keyboard-manager-cc446230.js → keyboard-manager-1e045791.js} +2 -2
- package/dist/cjs/{keyboard-manager-slimmer-a10b7d6f.js → keyboard-manager-slimmer-861d991f.js} +1 -1
- package/dist/cjs/loader.cjs.js +20 -20
- package/dist/cjs/{month-view-generator-41b6c6b6.js → month-view-generator-8ed9818e.js} +1 -1
- package/dist/cjs/{public-rules-fc52d624.js → public-rules-c7726702.js} +10 -10
- package/dist/cjs/{range-93cc8ab1.js → range-d6fb50a4.js} +2 -2
- package/dist/cjs/{responsive-format-facade-5f6cd211.js → responsive-format-facade-9647775d.js} +2 -2
- package/dist/cjs/{rich-text-editor-required-rule-fd3711fb.js → rich-text-editor-required-rule-a1a070ce.js} +1 -1
- package/dist/cjs/{split-cell-operation-532fb9f0.js → split-cell-operation-39b19943.js} +5 -5
- package/dist/cjs/{state-border-formatter-d1c80c1d.js → state-border-formatter-1a483a9b.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-b39da0dd.js → string-format-strategy.abstract-2aec209d.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-127cf2b8.js → string-input-formatter-slimmer-e061bd10.js} +4 -4
- package/dist/cjs/{string-mask-strategy-524d0f69.js → string-mask-strategy-4bc07c00.js} +2 -2
- package/dist/cjs/{style-formatter-c201e7d0.js → style-formatter-263d5eb6.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-b33171b0.js → sub-state-notify-slimmer-757e3a76.js} +2 -2
- package/dist/cjs/{sub-state-observer-slimmer-b8f6f27b.js → sub-state-observer-slimmer-aa93ab4f.js} +3 -3
- package/dist/cjs/{time-required-rule-ecb45905.js → time-required-rule-f9a7e897.js} +1 -1
- package/dist/cjs/{token-extension-4f6ed976.js → token-extension-927062b9.js} +28 -15
- package/dist/cjs/{translation-slimmer-3cd7d3b2.js → translation-slimmer-a4a7f0eb.js} +1 -1
- package/dist/cjs/{type-guard-2e97fc56.js → type-guard-c1195e50.js} +1 -1
- package/dist/cjs/{ui-ae4ee13d.js → ui-3727d685.js} +13 -0
- package/dist/cjs/{valid-credit-card-number-rule-2d7d20ce.js → valid-credit-card-number-rule-22f3e6cf.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +35 -17
- package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
- package/dist/cjs/vega-app-header-button.cjs.entry.js +17 -17
- package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/vega-banner.cjs.entry.js +12 -12
- package/dist/cjs/vega-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-box.cjs.entry.js +10 -10
- package/dist/cjs/vega-brand-logo.cjs.entry.js +4 -4
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +9 -9
- package/dist/cjs/vega-button-circle.cjs.entry.js +15 -15
- package/dist/cjs/vega-button-group_2.cjs.entry.js +12 -12
- package/dist/cjs/vega-button-link.cjs.entry.js +9 -9
- package/dist/cjs/vega-button.cjs.entry.js +13 -13
- package/dist/cjs/vega-calendar_4.cjs.entry.js +669 -347
- package/dist/cjs/vega-card.cjs.entry.js +9 -9
- package/dist/cjs/vega-carousel.cjs.entry.js +12 -12
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +28 -16
- package/dist/cjs/vega-chip.cjs.entry.js +15 -15
- package/dist/cjs/vega-code-block.cjs.entry.js +21 -21
- package/dist/cjs/vega-color-picker.cjs.entry.js +11 -11
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +17 -17
- package/dist/cjs/vega-color-swatch.cjs.entry.js +9 -9
- package/dist/cjs/vega-combo-box.cjs.entry.js +17 -17
- package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +43 -31
- package/dist/cjs/{vega-dialog-controller-03ef4d9a.js → vega-dialog-controller-6df7825e.js} +1 -1
- package/dist/cjs/vega-dialog_2.cjs.entry.js +16 -16
- package/dist/cjs/vega-divider.cjs.entry.js +8 -8
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +23 -23
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{vega-event-id-d9994eb3.js → vega-event-id-f95480b7.js} +2 -0
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-field-label.cjs.entry.js +7 -7
- package/dist/cjs/vega-file-uploader.cjs.entry.js +15 -15
- package/dist/cjs/vega-flag-icon.cjs.entry.js +11 -11
- package/dist/cjs/vega-flex.cjs.entry.js +10 -10
- package/dist/cjs/vega-font.cjs.entry.js +9 -9
- package/dist/cjs/vega-form.cjs.entry.js +16 -16
- package/dist/cjs/vega-grid.cjs.entry.js +9 -9
- package/dist/cjs/vega-hint.cjs.entry.js +1 -1
- package/dist/cjs/vega-icon.cjs.entry.js +11 -11
- package/dist/cjs/vega-image-uploader.cjs.entry.js +19 -19
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +20 -20
- package/dist/cjs/vega-input-numeric.cjs.entry.js +17 -17
- package/dist/cjs/vega-input-passcode.cjs.entry.js +16 -16
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +29 -19
- package/dist/cjs/vega-input-range.cjs.entry.js +15 -15
- package/dist/cjs/vega-input-select.cjs.entry.js +20 -20
- package/dist/cjs/vega-input.cjs.entry.js +19 -19
- package/dist/cjs/{vega-internal-event-id-87014e4f.js → vega-internal-event-id-e138d4d6.js} +2 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +6 -6
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +33 -31
- package/dist/cjs/vega-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +9 -9
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +7 -7
- package/dist/cjs/vega-pagination.cjs.entry.js +14 -14
- package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +18 -18
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-radio_2.cjs.entry.js +18 -18
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +16 -16
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +30 -37
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +21 -21
- package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
- package/dist/cjs/vega-segment-control.cjs.entry.js +6 -6
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +17 -17
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +172 -39
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +18 -18
- package/dist/cjs/vega-signature-capture.cjs.entry.js +20 -20
- package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +13 -13
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +156 -70
- package/dist/cjs/vega-table_11.cjs.entry.js +20 -20
- package/dist/cjs/vega-text.cjs.entry.js +2 -2
- package/dist/cjs/vega-textarea.cjs.entry.js +13 -13
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +26 -32
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +11 -11
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +12 -12
- package/dist/cjs/vega.cjs.js +20 -20
- package/dist/cjs/{wait-for-component-did-render-16863a21.js → wait-for-component-did-render-a13f7eb9.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +14 -1
- package/dist/collection/components/vega-accordion/vega-accordion.js +5 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.js +83 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-keyboard-controller.js +154 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +4 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +2 -2
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +10 -1
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +24 -4
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/assets/pen.js +3 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/controllers/vega-calendar-event-preview-state-controller.js +4 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +37 -4
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.js +3 -1
- package/dist/collection/components/vega-calendar/vega-calendar.js +115 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +14 -2
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +3 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +17 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +31 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +1 -1
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +10 -0
- package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.js +10 -8
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/constants/constant.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +8 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +5 -1
- package/dist/collection/components/vega-rich-text-editor/public-api.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +3 -10
- package/dist/collection/components/vega-selection-tile/slimmers/renderers/vega-selection-tile-renderer.js +71 -10
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.js +39 -11
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.css +1 -3
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.css +23 -18
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +45 -1
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-panel-controller.js +14 -1
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-voice-over-focus-controller.js +45 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-close-button-renderer.js +15 -1
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-direction-button-renderer.js +1 -1
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +16 -4
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +5 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +6 -12
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +5 -2
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
- package/dist/collection/helpers/translation/locales/en.js +5 -0
- package/dist/collection/polyfill/d3/d3-time-format-polyfill.js +1 -1
- package/dist/collection/utils/accessibility.js +16 -1
- package/dist/collection/utils/ui.js +12 -0
- package/dist/esm/{accessibility-524cabd2.js → accessibility-6af5cf2e.js} +16 -1
- package/dist/esm/{app-globals-b1999c09.js → app-globals-be458779.js} +11 -11
- package/dist/esm/{aria-dialog-focusable-trap-slimmer-6eb79723.js → aria-dialog-focusable-trap-slimmer-7d9a9f5a.js} +3 -3
- package/dist/esm/{child-nodes-event-prevent-slimmer-75f93d85.js → child-nodes-event-prevent-slimmer-0a406a71.js} +2 -2
- package/dist/esm/{child-nodes-notify-observer-slimmer-a8cb19cf.js → child-nodes-notify-observer-slimmer-8822d0d0.js} +1 -1
- package/dist/esm/{code-block-e43c8120.js → code-block-ff52d912.js} +19 -5
- package/dist/esm/{component-usage-runtime-metrics-46020a03.js → component-usage-runtime-metrics-4b1afd04.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-60c1910e.js → component-value-history-controller-slimmer.abstract-ad5f29cd.js} +6 -6
- package/dist/esm/{content-state-d363f2ca.js → content-state-6fccd284.js} +5 -5
- package/dist/esm/{create-public-api-runtime-metrics-slimmer-aaadaa08.js → create-public-api-runtime-metrics-slimmer-da6615bf.js} +1 -1
- package/dist/esm/{date-required-rule-a84c21d4.js → date-required-rule-70324452.js} +1 -1
- package/dist/esm/{design-token-57de4f4f.js → design-token-0e6fb2c4.js} +3 -3
- package/dist/esm/{dom-node-subject-observer-factory-aca0116e.js → dom-node-subject-observer-factory-3897e95b.js} +1 -1
- package/dist/esm/{element-appender-slimmer-05f487d7.js → element-appender-slimmer-afe5a638.js} +6 -6
- package/dist/esm/{event-emit-slimmer-1c57093d.js → event-emit-slimmer-697ad0b7.js} +2 -2
- package/dist/esm/{feature-flag-controller-30f7b625.js → feature-flag-controller-5ebc0cec.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-ae8478b5.js → form-field-controller-slimmer-9e70a18d.js} +5 -5
- package/dist/esm/{icon-manager-539d7cf7.js → icon-manager-691c8682.js} +1 -1
- package/dist/esm/{image-annotation-action-008ca25b.js → image-annotation-action-245eaa54.js} +5 -5
- package/dist/esm/index.js +25 -25
- package/dist/esm/{inject-keyboard-manager-1ceb9ee0.js → inject-keyboard-manager-05d5db90.js} +1 -1
- package/dist/esm/{internal-icon-manager-bd80b3bb.js → internal-icon-manager-276f968f.js} +1 -1
- package/dist/esm/{internal-translation-controller-d7dee4a0.js → internal-translation-controller-d8217d93.js} +5 -0
- package/dist/esm/{internal-vega-event-manager-7cdf3c28.js → internal-vega-event-manager-1ac5ee9a.js} +5 -2
- package/dist/esm/{keyboard-manager-50a1d90e.js → keyboard-manager-26e2fc32.js} +2 -2
- package/dist/esm/{keyboard-manager-slimmer-3891ee20.js → keyboard-manager-slimmer-012a9a9b.js} +1 -1
- package/dist/esm/loader.js +20 -20
- package/dist/esm/{month-view-generator-70c597a6.js → month-view-generator-918f1f88.js} +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{public-rules-1561e357.js → public-rules-22320bdf.js} +10 -10
- package/dist/esm/{range-784d5ec8.js → range-76f8e7dd.js} +2 -2
- package/dist/esm/{responsive-format-facade-456a9f16.js → responsive-format-facade-2a1d6398.js} +2 -2
- package/dist/esm/{rich-text-editor-required-rule-8768bc8d.js → rich-text-editor-required-rule-6eb90840.js} +1 -1
- package/dist/esm/{split-cell-operation-35ce149b.js → split-cell-operation-7652e813.js} +5 -5
- package/dist/esm/{state-border-formatter-afac8d33.js → state-border-formatter-a243f3fc.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-f9907969.js → string-format-strategy.abstract-f6625ed7.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-4059080b.js → string-input-formatter-slimmer-e801bd7e.js} +4 -4
- package/dist/esm/{string-mask-strategy-5f655300.js → string-mask-strategy-53cb9b33.js} +2 -2
- package/dist/esm/{style-formatter-ee52d8d0.js → style-formatter-a622a045.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-63ecb465.js → sub-state-notify-slimmer-80ac7dee.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-2adbbe00.js → sub-state-observer-slimmer-81538a8c.js} +3 -3
- package/dist/esm/{time-required-rule-db873c19.js → time-required-rule-2fd8df50.js} +1 -1
- package/dist/esm/{token-extension-23b5ab65.js → token-extension-5838c71b.js} +28 -15
- package/dist/esm/{translation-slimmer-5e2bff5f.js → translation-slimmer-32353a1c.js} +1 -1
- package/dist/esm/{type-guard-adc244fd.js → type-guard-ed1004cc.js} +1 -1
- package/dist/esm/{ui-b7600a48.js → ui-64815a12.js} +13 -1
- package/dist/esm/{valid-credit-card-number-rule-a826dd49.js → valid-credit-card-number-rule-7c9d6808.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +35 -17
- package/dist/esm/vega-app-footer.entry.js +1 -1
- package/dist/esm/vega-app-header-button.entry.js +17 -17
- package/dist/esm/vega-backdrop.entry.js +2 -2
- package/dist/esm/vega-banner.entry.js +12 -12
- package/dist/esm/vega-bar-chart.entry.js +1 -1
- package/dist/esm/vega-box.entry.js +10 -10
- package/dist/esm/vega-brand-logo.entry.js +4 -4
- package/dist/esm/vega-breadcrumb.entry.js +9 -9
- package/dist/esm/vega-button-circle.entry.js +15 -15
- package/dist/esm/vega-button-group_2.entry.js +12 -12
- package/dist/esm/vega-button-link.entry.js +9 -9
- package/dist/esm/vega-button.entry.js +13 -13
- package/dist/esm/vega-calendar_4.entry.js +670 -348
- package/dist/esm/vega-card.entry.js +9 -9
- package/dist/esm/vega-carousel.entry.js +12 -12
- package/dist/esm/vega-checkbox_2.entry.js +28 -16
- package/dist/esm/vega-chip.entry.js +15 -15
- package/dist/esm/vega-code-block.entry.js +21 -21
- package/dist/esm/vega-color-picker.entry.js +11 -11
- package/dist/esm/vega-color-swatch-picker.entry.js +17 -17
- package/dist/esm/vega-color-swatch.entry.js +9 -9
- package/dist/esm/vega-combo-box.entry.js +17 -17
- package/dist/esm/vega-counter-badge.entry.js +1 -1
- package/dist/esm/vega-date-picker_2.entry.js +43 -31
- package/dist/esm/{vega-dialog-controller-bbb2fc52.js → vega-dialog-controller-389e7f7c.js} +1 -1
- package/dist/esm/vega-dialog_2.entry.js +16 -16
- package/dist/esm/vega-divider.entry.js +8 -8
- package/dist/esm/vega-dropdown_5.entry.js +23 -23
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-a6ccca66.js → vega-event-id-578c6c6d.js} +2 -1
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-field-label.entry.js +7 -7
- package/dist/esm/vega-file-uploader.entry.js +15 -15
- package/dist/esm/vega-flag-icon.entry.js +11 -11
- package/dist/esm/vega-flex.entry.js +10 -10
- package/dist/esm/vega-font.entry.js +9 -9
- package/dist/esm/vega-form.entry.js +16 -16
- package/dist/esm/vega-grid.entry.js +9 -9
- package/dist/esm/vega-hint.entry.js +1 -1
- package/dist/esm/vega-icon.entry.js +11 -11
- package/dist/esm/vega-image-uploader.entry.js +19 -19
- package/dist/esm/vega-input-credit-card.entry.js +20 -20
- package/dist/esm/vega-input-numeric.entry.js +17 -17
- package/dist/esm/vega-input-passcode.entry.js +16 -16
- package/dist/esm/vega-input-phone-number.entry.js +29 -19
- package/dist/esm/vega-input-range.entry.js +15 -15
- package/dist/esm/vega-input-select.entry.js +20 -20
- package/dist/esm/vega-input.entry.js +19 -19
- package/dist/esm/{vega-internal-event-id-db974a0d.js → vega-internal-event-id-913e8be6.js} +2 -1
- package/dist/esm/vega-item-toggle.entry.js +6 -6
- package/dist/esm/vega-left-nav_5.entry.js +33 -31
- package/dist/esm/vega-line-chart.entry.js +2 -2
- package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
- package/dist/esm/vega-page-notification_2.entry.js +5 -5
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +9 -9
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +7 -7
- package/dist/esm/vega-pagination.entry.js +14 -14
- package/dist/esm/vega-pie-chart.entry.js +1 -1
- package/dist/esm/vega-popover_2.entry.js +18 -18
- package/dist/esm/vega-progress-tracker_2.entry.js +15 -15
- package/dist/esm/vega-radio_2.entry.js +18 -18
- package/dist/esm/vega-rich-text-content.entry.js +16 -16
- package/dist/esm/vega-rich-text-editor_4.entry.js +30 -37
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +21 -21
- package/dist/esm/vega-section-title.entry.js +1 -1
- package/dist/esm/vega-segment-control.entry.js +6 -6
- package/dist/esm/vega-selection-chip_2.entry.js +17 -17
- package/dist/esm/vega-selection-tile_2.entry.js +172 -39
- package/dist/esm/vega-sidenav_3.entry.js +18 -18
- package/dist/esm/vega-signature-capture.entry.js +20 -20
- package/dist/esm/vega-skeleton.entry.js +1 -1
- package/dist/esm/vega-slot-container.entry.js +1 -1
- package/dist/esm/vega-stepper.entry.js +13 -13
- package/dist/esm/vega-tab-group_2.entry.js +156 -70
- package/dist/esm/vega-table_11.entry.js +20 -20
- package/dist/esm/vega-text.entry.js +2 -2
- package/dist/esm/vega-textarea.entry.js +13 -13
- package/dist/esm/vega-time-picker_2.entry.js +26 -32
- package/dist/esm/vega-toggle-switch.entry.js +11 -11
- package/dist/esm/vega-tooltip_2.entry.js +12 -12
- package/dist/esm/vega.js +20 -20
- package/dist/esm/{wait-for-component-did-render-9a83d343.js → wait-for-component-did-render-4069cbea.js} +2 -2
- package/dist/sri/vega-sri-manifest.json +429 -429
- package/dist/types/components/vega-accordion/slimmers/vega-accordion-renderer.d.ts +2 -0
- package/dist/types/components/vega-accordion/vega-accordion.d.ts +2 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.d.ts +36 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-keyboard-controller.d.ts +35 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +1 -0
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.d.ts +7 -0
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +16 -0
- package/dist/types/components/vega-calendar/types.d.ts +32 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/assets/pen.d.ts +3 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/controllers/vega-calendar-event-preview-state-controller.d.ts +1 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +6 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +6 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.d.ts +2 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +34 -1
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +2 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +1 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +8 -0
- package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +2 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +5 -0
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -1
- package/dist/types/components/vega-selection-tile/slimmers/renderers/vega-selection-tile-renderer.d.ts +12 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/slimmers/renderers/vega-selection-tile-group-renderer.d.ts +0 -1
- package/dist/types/components/vega-selection-tile/vega-selection-tile.d.ts +2 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-voice-over-focus-controller.d.ts +23 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-close-button-renderer.d.ts +1 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +2 -0
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +2 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +5 -11
- package/dist/types/components.d.ts +46 -5
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
- package/dist/types/helpers/translation/interface.d.ts +5 -0
- package/dist/types/types/components.type.d.ts +2 -0
- package/dist/types/types/public-api.d.ts +1 -0
- package/dist/types/utils/accessibility.d.ts +1 -0
- package/dist/types/utils/ui.d.ts +9 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-d8180e42.entry.js → p-018756ad.entry.js} +1 -1
- package/dist/vega/{p-7702a906.entry.js → p-01a54c29.entry.js} +1 -1
- package/dist/vega/p-042933f1.js +1 -0
- package/dist/vega/{p-6b5cb920.js → p-04a65b3f.js} +1 -1
- package/dist/vega/{p-423762ae.entry.js → p-07225567.entry.js} +1 -1
- package/dist/vega/{p-a07c5dae.js → p-09076646.js} +1 -1
- package/dist/vega/{p-3b791b5d.js → p-0a261b66.js} +1 -1
- package/dist/vega/p-0a322971.entry.js +1 -0
- package/dist/vega/{p-59c6dcf7.entry.js → p-0b41b49a.entry.js} +1 -1
- package/dist/vega/{p-1d30cab2.js → p-0d97dcb9.js} +1 -1
- package/dist/vega/{p-af5cb9bc.js → p-10fa27d2.js} +1 -1
- package/dist/vega/{p-f28a6074.js → p-11e2dcf5.js} +1 -1
- package/dist/vega/{p-2c1a85dd.entry.js → p-1250b1ab.entry.js} +1 -1
- package/dist/vega/{p-386895e9.js → p-154cc614.js} +1 -1
- package/dist/vega/p-15b4f1ce.entry.js +1 -0
- package/dist/vega/{p-e6adf829.js → p-1704ff25.js} +1 -1
- package/dist/vega/p-186df871.entry.js +1 -0
- package/dist/vega/{p-c95dbf11.js → p-189d36ec.js} +1 -1
- package/dist/vega/{p-c85e743d.js → p-19adf714.js} +1 -1
- package/dist/vega/{p-c2388937.entry.js → p-19df2831.entry.js} +1 -1
- package/dist/vega/{p-a46e977b.entry.js → p-1be90bab.entry.js} +1 -1
- package/dist/vega/{p-69c11b7b.entry.js → p-1da42a63.entry.js} +1 -1
- package/dist/vega/{p-096d186d.entry.js → p-255a7387.entry.js} +1 -1
- package/dist/vega/{p-1a869f0e.js → p-281fa1e0.js} +1 -1
- package/dist/vega/{p-9af0e2e7.js → p-2927b7a1.js} +1 -1
- package/dist/vega/p-294cff20.entry.js +1 -0
- package/dist/vega/{p-a87cb7ac.js → p-296c5e52.js} +1 -1
- package/dist/vega/{p-dba16739.js → p-2b2fefc6.js} +1 -1
- package/dist/vega/{p-c347e08a.js → p-2d694684.js} +1 -1
- package/dist/vega/{p-9eb00537.entry.js → p-2e0bdc53.entry.js} +1 -1
- package/dist/vega/{p-b7721666.js → p-31ebace1.js} +1 -1
- package/dist/vega/p-32a0f887.js +1 -0
- package/dist/vega/{p-c31a32f4.js → p-341d5e4e.js} +1 -1
- package/dist/vega/{p-e7a4b760.entry.js → p-3967fa98.entry.js} +1 -1
- package/dist/vega/{p-7f74cd41.entry.js → p-3a3720c7.entry.js} +1 -1
- package/dist/vega/p-3a620268.js +1 -0
- package/dist/vega/{p-6c43d54a.js → p-3a93730e.js} +1 -1
- package/dist/vega/{p-98a6cd8e.entry.js → p-3bf3c8bb.entry.js} +1 -1
- package/dist/vega/{p-6fadee27.entry.js → p-49341532.entry.js} +1 -1
- package/dist/vega/{p-77754d62.entry.js → p-4a6f241d.entry.js} +1 -1
- package/dist/vega/{p-3e64fa38.entry.js → p-4a954d9d.entry.js} +1 -1
- package/dist/vega/{p-9fc8bd1f.entry.js → p-4a9c8ec0.entry.js} +1 -1
- package/dist/vega/{p-8d48940d.js → p-4c91b13d.js} +1 -1
- package/dist/vega/p-4dd02704.js +1 -0
- package/dist/vega/p-50fb936f.entry.js +1 -0
- package/dist/vega/{p-da8bb883.entry.js → p-52645382.entry.js} +1 -1
- package/dist/vega/{p-73c6669e.entry.js → p-5b43a303.entry.js} +1 -1
- package/dist/vega/{p-cf2838c7.entry.js → p-5df7ab03.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-612808ce.entry.js +1 -0
- package/dist/vega/{p-ecbb63a5.entry.js → p-636d890e.entry.js} +1 -1
- package/dist/vega/p-6399b5ed.js +1 -0
- package/dist/vega/{p-4afafeb3.entry.js → p-648be36d.entry.js} +1 -1
- package/dist/vega/p-686e0b6b.entry.js +1 -0
- package/dist/vega/p-6d4faebc.js +1 -0
- package/dist/vega/{p-2fb26f4f.entry.js → p-70ae9157.entry.js} +1 -1
- package/dist/vega/{p-e1fbfd20.js → p-724df1f5.js} +1 -1
- package/dist/vega/{p-fcce494e.js → p-72e2a587.js} +1 -1
- package/dist/vega/{p-1deedff2.entry.js → p-740f3325.entry.js} +1 -1
- package/dist/vega/{p-a050c24d.entry.js → p-74a1a82a.entry.js} +1 -1
- package/dist/vega/{p-264b3309.entry.js → p-76075a1c.entry.js} +1 -1
- package/dist/vega/{p-76063dcb.js → p-77fb5d5c.js} +1 -1
- package/dist/vega/{p-e4c4ea35.js → p-78ba7ca9.js} +1 -1
- package/dist/vega/{p-a49c25c2.entry.js → p-79bb216e.entry.js} +1 -1
- package/dist/vega/{p-d37636a5.entry.js → p-7e7e2f85.entry.js} +1 -1
- package/dist/vega/{p-c15a58b5.entry.js → p-7ffe8081.entry.js} +1 -1
- package/dist/vega/{p-4cefd7fe.js → p-8077b117.js} +1 -1
- package/dist/vega/{p-5bf3ab33.js → p-858ec529.js} +1 -1
- package/dist/vega/{p-0b5b0fd2.entry.js → p-879d3cc9.entry.js} +1 -1
- package/dist/vega/{p-ae1aa4df.js → p-891815d6.js} +1 -1
- package/dist/vega/p-8ce9e214.js +1 -0
- package/dist/vega/p-8d36afcc.entry.js +1 -0
- package/dist/vega/{p-a9e10a64.js → p-919de162.js} +1 -1
- package/dist/vega/{p-effb285f.entry.js → p-931dac8c.entry.js} +1 -1
- package/dist/vega/{p-c601b331.entry.js → p-979a5e91.entry.js} +1 -1
- package/dist/vega/{p-d402eb7b.entry.js → p-98dad153.entry.js} +1 -1
- package/dist/vega/p-9a6bd32c.js +1 -0
- package/dist/vega/p-9e0f8b46.entry.js +1 -0
- package/dist/vega/{p-487ecdb0.entry.js → p-a03341d8.entry.js} +1 -1
- package/dist/vega/{p-e1d2c60d.js → p-a0dd08b1.js} +1 -1
- package/dist/vega/p-a2b8d49d.js +1 -0
- package/dist/vega/p-a6565e02.js +1 -0
- package/dist/vega/{p-afd1b519.entry.js → p-a67d52ce.entry.js} +1 -1
- package/dist/vega/{p-411ea209.entry.js → p-aa4e9a4b.entry.js} +1 -1
- package/dist/vega/{p-fa91805b.entry.js → p-aa8f4713.entry.js} +1 -1
- package/dist/vega/{p-e27626f6.js → p-ab04eff6.js} +1 -1
- package/dist/vega/p-ab4c307b.js +1 -0
- package/dist/vega/{p-e47b2c4c.entry.js → p-ac26924d.entry.js} +1 -1
- package/dist/vega/{p-7f46cc1e.entry.js → p-adc64ff6.entry.js} +1 -1
- package/dist/vega/{p-031c0cf7.js → p-b02b985d.js} +1 -1
- package/dist/vega/{p-0bb0b521.entry.js → p-b69755c7.entry.js} +1 -1
- package/dist/vega/{p-c801c85d.js → p-b6be1f33.js} +1 -1
- package/dist/vega/{p-25572ea7.entry.js → p-bd47d8a7.entry.js} +1 -1
- package/dist/vega/{p-0b4880bd.entry.js → p-be783294.entry.js} +1 -1
- package/dist/vega/{p-79c12a64.entry.js → p-bee5dfb0.entry.js} +1 -1
- package/dist/vega/{p-45aaaef6.entry.js → p-c19132c9.entry.js} +1 -1
- package/dist/vega/p-c41b42eb.entry.js +1 -0
- package/dist/vega/{p-3d92d2af.entry.js → p-c45acdc3.entry.js} +1 -1
- package/dist/vega/{p-571a6d15.entry.js → p-ce034372.entry.js} +1 -1
- package/dist/vega/{p-bc74d7e7.entry.js → p-ce2d9efe.entry.js} +1 -1
- package/dist/vega/p-d05915af.entry.js +1 -0
- package/dist/vega/{p-c8fe46fd.entry.js → p-d1a6e126.entry.js} +1 -1
- package/dist/vega/{p-9297f4a9.entry.js → p-d286da1d.entry.js} +1 -1
- package/dist/vega/{p-3c456e91.entry.js → p-d4262f06.entry.js} +1 -1
- package/dist/vega/{p-23b38467.entry.js → p-d5aad9f0.entry.js} +1 -1
- package/dist/vega/{p-35d77c9c.entry.js → p-d97974be.entry.js} +1 -1
- package/dist/vega/{p-9e2b7718.entry.js → p-d9d4bdbf.entry.js} +1 -1
- package/dist/vega/{p-18e8d9b7.js → p-dcf162e9.js} +1 -1
- package/dist/vega/p-e46a23fc.entry.js +1 -0
- package/dist/vega/p-e5226de6.entry.js +1 -0
- package/dist/vega/{p-f604f2c9.entry.js → p-e7c930d9.entry.js} +1 -1
- package/dist/vega/p-e85497ec.entry.js +1 -0
- package/dist/vega/{p-34964a53.js → p-e8de9535.js} +1 -1
- package/dist/vega/{p-5904616e.js → p-e8ea3b16.js} +1 -1
- package/dist/vega/{p-2ae5acfc.entry.js → p-ea0e922f.entry.js} +1 -1
- package/dist/vega/p-ea48decc.js +1 -0
- package/dist/vega/{p-82039afd.entry.js → p-eb78a2f2.entry.js} +1 -1
- package/dist/vega/p-ec2333f7.entry.js +1 -0
- package/dist/vega/{p-6e70d3cc.js → p-ec2a1d4c.js} +1 -1
- package/dist/vega/{p-9f064488.entry.js → p-ec663f00.entry.js} +1 -1
- package/dist/vega/p-ed2b0e01.entry.js +1 -0
- package/dist/vega/p-ef13b346.js +1 -0
- package/dist/vega/{p-78099a83.entry.js → p-f5ae99b4.entry.js} +1 -1
- package/dist/vega/{p-d10ae46a.entry.js → p-fdb97cb7.entry.js} +1 -1
- package/dist/vega/{p-295326ca.entry.js → p-fe220f3a.entry.js} +1 -1
- package/dist/vega/{p-115d6053.entry.js → p-ff5208f5.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +6 -6
- package/dist/vega/p-13e7f906.entry.js +0 -1
- package/dist/vega/p-358b4a06.entry.js +0 -1
- package/dist/vega/p-4415ad28.js +0 -1
- package/dist/vega/p-4530f0e1.entry.js +0 -1
- package/dist/vega/p-51fcb07f.entry.js +0 -1
- package/dist/vega/p-5657f768.js +0 -1
- package/dist/vega/p-56c1a8ac.entry.js +0 -1
- package/dist/vega/p-57f220b5.js +0 -1
- package/dist/vega/p-593e0f80.js +0 -1
- package/dist/vega/p-5e50dbb9.js +0 -1
- package/dist/vega/p-606d7113.entry.js +0 -1
- package/dist/vega/p-64b566be.entry.js +0 -1
- package/dist/vega/p-6ac8e655.js +0 -1
- package/dist/vega/p-77300901.js +0 -1
- package/dist/vega/p-887b3e2d.entry.js +0 -1
- package/dist/vega/p-9763fbbe.entry.js +0 -1
- package/dist/vega/p-9f36abf9.entry.js +0 -1
- package/dist/vega/p-9f728e0b.js +0 -1
- package/dist/vega/p-a9528dbd.entry.js +0 -1
- package/dist/vega/p-bceee942.entry.js +0 -1
- package/dist/vega/p-c2e1f33d.entry.js +0 -1
- package/dist/vega/p-c51ebb14.entry.js +0 -1
- package/dist/vega/p-c74060a7.js +0 -1
- package/dist/vega/p-dffbbc3d.entry.js +0 -1
- package/dist/vega/p-ed26f4c8.entry.js +0 -1
- package/dist/vega/p-f1c672e4.js +0 -1
- package/dist/vega/p-f54fb4e5.js +0 -1
- package/dist/vega/p-fb05335d.js +0 -1
- package/dist/vega/p-fcb0d4d8.js +0 -1
- /package/dist/cjs/{index-f054eb5d.js → index-3ca118c4.js} +0 -0
- /package/dist/esm/{index-bfc6dfa2.js → index-9c9865c0.js} +0 -0
- /package/dist/vega/{p-5a25014f.js → p-982747ef.js} +0 -0
|
@@ -1 +1 @@
|
|
|
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 n}from"./p-519a7d55.js";import{g as a}from"./p-49a2e141.js";import{c as l,V as p,M as d,L as h,I as c}from"./p-6e1ab235.js";import{a as v}from"./p-6e70d3cc.js";import{R as u}from"./p-031c0cf7.js";import{D as f,d as g}from"./p-f28a6074.js";import{x as m,u as x,v as b,V as w,f as y,w as j,e as I,i as S,q as R,M as T,N as C}from"./p-9af0e2e7.js";import{V as D,I as O}from"./p-4415ad28.js";import{l as E,m as L,n as V}from"./p-6c43d54a.js";import{i as z}from"./p-d27ae9ff.js";import{C as k}from"./p-2d0d575f.js";import{F as P}from"./p-a528714c.js";import{c as A}from"./p-6ac8e655.js";import{c as _}from"./p-1ec763ab.js";import{c as N}from"./p-613ddaab.js";import{V as B}from"./p-e1fbfd20.js";import{h as F,l as M}from"./p-f0e828d8.js";import{F as U}from"./p-c347e08a.js";import{P as G}from"./p-81dd00d0.js";import{c as K}from"./p-6b5cb920.js";import{C as W}from"./p-e27626f6.js";import{Z as $,$ as q}from"./p-e4c4ea35.js";import{M as H}from"./p-78a57a17.js";import{T as J}from"./p-52b8f2d2.js";import{T as Z}from"./p-57f220b5.js";import{r as Q}from"./p-77e64f26.js";import{I as X}from"./p-abd7aeaa.js";import{V as Y}from"./p-3b791b5d.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-18e8d9b7.js";import"./p-5a25014f.js";import"./p-331a62d5.js";import"./p-e6adf829.js";import"./p-593e0f80.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-b75ee3ba.js";import"./p-02841589.js";import"./p-af5cb9bc.js";import"./p-f1c672e4.js";import"./p-5f377954.js";import"./p-d884c644.js";var ee=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class te extends p{constructor(){super(...arguments),this.renderErrorMessage=()=>e("div",{class:"vega-input-select-error-message"}),this.renderHelpMessage=()=>e("div",{class:"vega-input-select-hint"},this.hint),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()}}render(){return e(t,{class:v([this.disabled?"vega-input-select-disabled":"",u.formatCustom(this.size)])},this.renderLabel(),this.dropdownRenderer.render(),this.renderErrorMessage(),this.hint&&this.renderHelpMessage())}renderLabel(){return this.label&&e("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonConfig:this.labelSuffixButtonConfig,ref:e=>{f.addUniqueObserverToNode(e,m,this.handleLabelButtonClick)}})}}ee([l()],te.prototype,"disabled",void 0),ee([l()],te.prototype,"size",void 0),ee([l()],te.prototype,"hint",void 0),ee([l()],te.prototype,"label",void 0),ee([l()],te.prototype,"required",void 0),ee([l()],te.prototype,"labelSuffixButtonConfig",void 0),ee([l()],te.prototype,"labelButtonClickEventEmitter",void 0),ee([l({componentFieldName:"vegaInputSelectDropdownRenderer"})],te.prototype,"dropdownRenderer",void 0);var ie=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class se extends p{constructor(){super(...arguments),this.onDropdownShow=()=>{this.isDropdownShow=!0},this.onDropdownHide=()=>{this.isDropdownShow=!1}}addDropdownObserver(e){f.addUniqueObserverToNode(e,x,(e=>{this.onDropdownShow(),this.showEventEmitter.emit(e.detail)})),f.addUniqueObserverToNode(e,b,(e=>{this.onDropdownHide(),this.hideEventEmitter.emit(e.detail)})),f.addUniqueObserverToNode(e,w,(async e=>{this.vegaInputSelectValueController.setValue(await e.host.getSelection())})),f.addUniqueObserverToNode(e,y,(e=>{this.searchEventEmitter.emit(e.detail)})),f.addUniqueObserverToNode(e,j,(e=>{this.searchTriggerEventEmitter.emit(e.detail)})),f.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)})),f.addUniqueObserverToNode(e,I,(async()=>{this.vegaInputSelectValueController.setValue("multiple"===this.selectType?[]:"")}))}}ie([l({writable:!0})],se.prototype,"isDropdownShow",void 0),ie([l()],se.prototype,"vegaSearch",void 0),ie([l()],se.prototype,"searchEventEmitter",void 0),ie([l()],se.prototype,"searchTriggerEventEmitter",void 0),ie([l()],se.prototype,"vegaInputSelectValueController",void 0),ie([l()],se.prototype,"sourceController",void 0),ie([l()],se.prototype,"source",void 0),ie([l()],se.prototype,"showEventEmitter",void 0),ie([l()],se.prototype,"hideEventEmitter",void 0),ie([l()],se.prototype,"selectType",void 0);var oe=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class re extends p{constructor(){super(...arguments),this.handleValueChange=(e,t)=>{if("multiple"===this.selectType){let i;t=t,i=(e=e)?this.vegaDropdownProps.preserveValueIfNotInSource?e:e.filter((e=>this.sourceController.getItem(e))):[],z(i,t,!0)?z(i,e,!0)||this.setValue(i):(this.setValue(i),this.changeEventEmitter.emit(i),k.notify(P,{host:this.host,detail:i}))}else if(e!==t){const t=this.sourceController.getItem(e);this.setValue(this.vegaDropdownProps.preserveValueIfNotInSource?e:t?t.id:""),this.changeEventEmitter.emit(this.value),k.notify(P,{host:this.host,detail:this.value})}}}setValue(e){this.valueGuard(e)&&(this.value=e,this.vegaInputSelectItemController.setSelectedItem())}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}}}oe([l({writable:!0})],re.prototype,"value",void 0),oe([l()],re.prototype,"selectType",void 0),oe([l()],re.prototype,"changeEventEmitter",void 0),oe([l()],re.prototype,"host",void 0),oe([l()],re.prototype,"sourceController",void 0),oe([l()],re.prototype,"vegaInputSelectItemController",void 0),oe([l()],re.prototype,"vegaDropdownProps",void 0),oe([d("watchValue")],re.prototype,"handleValueChange",void 0);var ne=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class ae extends p{componentWillLoad(){this.setSelectedItem()}watchSelectType(){"multiple"===this.selectType?(this.selectedItem=[],this.vegaInputSelectValueController.setValue([])):(this.selectedItem=null,this.vegaInputSelectValueController.setValue(""))}setSelectedItem(){var e;if("multiple"===this.selectType){const e=this.value.map((e=>this.sourceController.getItem(e))),t=this.selectedItem?this.selectedItem.filter((e=>this.value.includes(null==e?void 0:e.id))):[];this.selectedItem=this.updateSelectedItemUnderMultiple(t,e)}else{const t=this.sourceController.getItem(this.value);this.value&&this.value===(null===(e=this.selectedItem)||void 0===e?void 0:e.id)||(this.selectedItem=null),t&&(this.selectedItem=t)}}updateSelectedItemUnderMultiple(e,t){const i=new Map(e.map((e=>[e.id,e])));return t.forEach((e=>{i.set(null==e?void 0:e.id,e)})),Array.from(i.values())}}ne([l()],ae.prototype,"value",void 0),ne([l()],ae.prototype,"selectType",void 0),ne([l({writable:!0})],ae.prototype,"selectedItem",void 0),ne([l()],ae.prototype,"sourceController",void 0),ne([l()],ae.prototype,"vegaInputSelectValueController",void 0),ne([d("componentWillLoad")],ae.prototype,"componentWillLoad",null),ne([d("watchSelectType")],ae.prototype,"watchSelectType",null);var le=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class pe extends p{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:A(),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:B.getIconKey(this.isDropdownShow?"chevron-up":"chevron-down")})),this.renderSelectContainer=()=>{var t,i;return"function"!=typeof this.selectedLabel&&((null===(t=this.selectedLabel)||void 0===t?void 0:t.single)||(this.selectedLabel.single=(e,t)=>t.displayName),(null===(i=this.selectedLabel)||void 0===i?void 0:i.multiple)||(this.selectedLabel.multiple=e=>`${e.length} Selected`)),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="function"==typeof this.selectedLabel?this.selectedLabel(this.value):this.selectedLabel.multiple(this.value,this.selectedItem);return e("span",{class:"vega-input-select-selected"},e("vega-text",{overflow:"ellipsis",tooltip:this.getSelectedLabelTooltipProps(),key:t},t))}return e("div",{class:"vega-input-select-placeholder"},this.translationSlimmer.t(this.placeholder))},this.renderSingleSelected=()=>{var t,i;const s=this.selectedItem;(null==s?void 0:s.displayName)&&(s.displayName=F.sanitize(s.displayName,M));const o=null===(i=(t=this.selectedLabel).single)||void 0===i?void 0:i.call(t,this.value,s);return"function"==typeof this.selectedLabel&&this.selectedItem||"function"!=typeof this.selectedLabel&&o?e("span",{class:"vega-input-select-selected",part:"selected-box"},"function"==typeof this.selectedLabel?e("vega-text",{overflow:"ellipsis",tooltip:this.getSelectedLabelTooltipProps(),key:s.displayName},s.displayName):e("vega-text",{overflow:"ellipsis",tooltip:this.getSelectedLabelTooltipProps(),key:o},o)):e("div",{class:"vega-input-select-placeholder",part:"placeholder"},this.translationSlimmer.t(this.placeholder))},this.getVegaDropdownProperties=()=>{const e=Object.assign({searchable:!0,caseSensitive:!1},this.vegaDropdownProps);return this.dropdownItemTooltipProps&&Object.keys(this.dropdownItemTooltipProps).length>0&&(e.itemTooltipProps=this.dropdownItemTooltipProps),e},this.getSelectedLabelTooltipProps=()=>Object.assign({placement:"bottom"},this.selectedLabelTooltipProps)}watchVegaDropdownProps(){this.vegaDropdownProps&&void 0!==this.vegaDropdownProps.preserveValueIfNotInSource&&(this.dropdown.preserveValueIfNotInSource=this.vegaDropdownProps.preserveValueIfNotInSource,this.dropdown.selectedSourceKey=this.value)}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})))}}B.register({"chevron-up":_,"chevron-down":N}),le([l()],pe.prototype,"value",void 0),le([l()],pe.prototype,"source",void 0),le([l()],pe.prototype,"host",void 0),le([l()],pe.prototype,"selectType",void 0),le([l()],pe.prototype,"isDropdownShow",void 0),le([l()],pe.prototype,"vegaDropdownProps",void 0),le([l()],pe.prototype,"placeholder",void 0),le([l()],pe.prototype,"selectedLabel",void 0),le([l()],pe.prototype,"isLazyLoading",void 0),le([l()],pe.prototype,"vegaInputSelectDropdownController",void 0),le([l()],pe.prototype,"vegaInputSelectPrefixIconRenderer",void 0),le([l()],pe.prototype,"translationSlimmer",void 0),le([l()],pe.prototype,"disabled",void 0),le([l()],pe.prototype,"selectedItem",void 0),le([l()],pe.prototype,"selectedLabelTooltipProps",void 0),le([l()],pe.prototype,"dropdownItemTooltipProps",void 0),le([d("watchVegaDropdownProps")],pe.prototype,"watchVegaDropdownProps",null);var de=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class he extends p{constructor(){super(...arguments),this.hasMore=!0}componentDidLoad(){const e=this.getVirtualScroll();e&&f.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}}}de([l()],he.prototype,"sourceLazyLoadCallback",void 0),de([l({writable:!0})],he.prototype,"isLazyLoading",void 0),de([l()],he.prototype,"sourceController",void 0),de([l()],he.prototype,"vegaInputSelectDropdownRenderer",void 0),de([d("componentDidLoad")],he.prototype,"componentDidLoad",null);const ce=[{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 ve=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class ue extends p{constructor(){super(...arguments),this.handleSourceChange=()=>{this.host.dataset.source=JSON.stringify(this.source),this.source=$(this.source,q)?this.source:[],this.vegaInputSelectItemController.setSelectedItem()}}appendSourceItems(e){this.source=[...this.source,...e]}getItem(e){return this.source.find((t=>t.id===e))}}ve([l()],ue.prototype,"host",void 0),ve([l({writable:!0})],ue.prototype,"source",void 0),ve([l()],ue.prototype,"vegaInputSelectItemController",void 0),ve([d("watchSource")],ue.prototype,"handleSourceChange",void 0);var fe=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class ge extends p{constructor(){super(...arguments),this.mutationObserver=new H({mutationFilter:J("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))}}fe([c()],ge.prototype,"mutationObserver",void 0),fe([l()],ge.prototype,"host",void 0),fe([l()],ge.prototype,"vegaInputSelectDropdownRenderer",void 0),fe([d("componentDidLoad")],ge.prototype,"componentDidLoad",null);var me=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class xe extends p{connectedCallback(){this.remotePhoneNumberPrefixIconRenderSubject=g.getSubjectFromParentNodeByEventId(this.host,V)}callRemotePrefixIconRender(...e){if(this.remotePhoneNumberPrefixIconRenderSubject){const t=Q.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"}))}}me([l()],xe.prototype,"host",void 0),me([l()],xe.prototype,"prefixIcon",void 0),me([d("connectedCallback")],xe.prototype,"connectedCallback",null);class be extends X{constructor(e){super(),this.inputSelectSourceGetter=e,this.invalidResult=e=>({isValid:!1,message:e}),this.validResult=()=>({isValid:!0,message:""})}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}evaluate(e){return"string"!=typeof e||this.inputSelectSourceGetter().find((t=>t.id===e))?Array.isArray(e)&&!e.every((e=>this.inputSelectSourceGetter().find((t=>t.id===e))))?this.invalidResult("There are values that do not exist in the source"):this.validResult():this.invalidResult("The value does not exist in the source")}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){return("string"==typeof e||Array.isArray(e)&&e.every((e=>"string"==typeof e)))&&e.length>0}}var we=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};const ye=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.vegaLabelButtonClick=s(this,"vegaLabelButtonClick",7),this.labelButtonClick=s(this,"labelButtonClick",7),this.globalSlimmers={},this.translationSlimmer=new Z,this.sourceController=new ue,this.vegaInputSelectRenderer=new te,this.vegaInputSelectPrefixIconRenderer=new xe,this.vegaInputSelectDropdownController=new se,this.vegaInputSelectValueController=new re,this.vegaInputSelectDropdownRenderer=new pe,this.vegaInputSelectItemsSlotController=new ge,this.vegaInputSelectItemController=new ae,this.formFieldControllerSlimmer=new U({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new r:null},{propertyName:"data-source",ruleFactory:()=>new be((()=>this.source))}],validationRulesName:"validationRules",defaultValue:e=>"multiple"===e.selectType?[]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaInputSelectDropdownRenderer.getDropdownRef(),touchableAreaGetter:()=>[this.vegaInputSelectDropdownRenderer.getInputSelectContainerRef()]}),this.pageResizeObserverSlimmer=new G,this.lazyLoadController=new he,this.changeEventEmitter=K(ye,S),this.searchEventEmitter=K(ye,R),this.searchTriggerEventEmitter=K(ye,j),this.showEventEmitter=K(ye,T),this.hideEventEmitter=K(ye,C),this.labelButtonClickEventEmitter=K(ye,m),this.eventPrevent=new W([R,j,T,C],(()=>this.host),!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new D(ce),this.isDropdownShow=!1,this.currentBreakpoint=a(),this.isLazyLoading=!1,this.label="",this.labelSuffixButtonConfig=null,this.required=!1,this.selectedLabel=e=>Y.t("{0} Selected",e.length),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.selectedLabelTooltipProps={},this.dropdownItemTooltipProps={},this.size="default"}watchSelectType(){}watchSource(){}watchValue(e,t){}watchValidationRules(){}watchVegaDropdownProps(){}watchSelectedLabelTooltipProps(){}watchDropdownItemTooltipProps(){}componentWillLoad(){}async doClose(){await this.vegaInputSelectDropdownRenderer.hide()}async doOpen(){await this.vegaInputSelectDropdownRenderer.show()}async doChange(e){this.vegaInputSelectValueController.setValue(e)}render(){return n(this.vegaInputSelectRenderer.render(),this.host)}get host(){return o(this)}static get watchers(){return{selectType:["watchSelectType"],source:["watchSource"],value:["watchValue"],validationRules:["watchValidationRules"],vegaDropdownProps:["watchVegaDropdownProps"],selectedLabelTooltipProps:["watchSelectedLabelTooltipProps"],dropdownItemTooltipProps:["watchDropdownItemTooltipProps"]}}};we([O()],ye.prototype,"globalSlimmers",void 0),we([c()],ye.prototype,"translationSlimmer",void 0),we([c()],ye.prototype,"sourceController",void 0),we([c()],ye.prototype,"vegaInputSelectRenderer",void 0),we([c()],ye.prototype,"vegaInputSelectPrefixIconRenderer",void 0),we([c()],ye.prototype,"vegaInputSelectDropdownController",void 0),we([c()],ye.prototype,"vegaInputSelectValueController",void 0),we([c()],ye.prototype,"vegaInputSelectDropdownRenderer",void 0),we([c()],ye.prototype,"vegaInputSelectItemsSlotController",void 0),we([c()],ye.prototype,"vegaInputSelectItemController",void 0),we([c()],ye.prototype,"formFieldControllerSlimmer",void 0),we([c()],ye.prototype,"pageResizeObserverSlimmer",void 0),we([c()],ye.prototype,"lazyLoadController",void 0),we([c()],ye.prototype,"changeEventEmitter",void 0),we([c()],ye.prototype,"searchEventEmitter",void 0),we([c()],ye.prototype,"searchTriggerEventEmitter",void 0),we([c()],ye.prototype,"showEventEmitter",void 0),we([c()],ye.prototype,"hideEventEmitter",void 0),we([c()],ye.prototype,"labelButtonClickEventEmitter",void 0),we([c()],ye.prototype,"eventPrevent",void 0),we([c()],ye.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ye.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}vega-field-label{margin-bottom:8px}: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-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{ye as vega_input_select}
|
|
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 n}from"./p-519a7d55.js";import{g as a}from"./p-49a2e141.js";import{c as l,V as p,M as d,L as h,I as c}from"./p-6e1ab235.js";import{a as v}from"./p-ec2a1d4c.js";import{R as u}from"./p-b02b985d.js";import{D as f,d as g}from"./p-11e2dcf5.js";import{y as m,v as x,w as b,V as w,f as y,x as j,e as I,i as S,r as R,N as T,O as C}from"./p-2927b7a1.js";import{V as D,I as O}from"./p-8ce9e214.js";import{l as E,m as L,n as V}from"./p-3a93730e.js";import{i as z}from"./p-d27ae9ff.js";import{C as k}from"./p-2d0d575f.js";import{F as P}from"./p-a528714c.js";import{c as A}from"./p-3a620268.js";import{c as _}from"./p-1ec763ab.js";import{c as N}from"./p-613ddaab.js";import{V as B}from"./p-724df1f5.js";import{h as F,l as U}from"./p-f0e828d8.js";import{F as G}from"./p-2d694684.js";import{P as M}from"./p-81dd00d0.js";import{c as K}from"./p-04a65b3f.js";import{C as W}from"./p-ab04eff6.js";import{Z as $,$ as q}from"./p-78ba7ca9.js";import{M as H}from"./p-78a57a17.js";import{T as J}from"./p-52b8f2d2.js";import{T as Z}from"./p-a6565e02.js";import{r as Q}from"./p-77e64f26.js";import{I as X}from"./p-abd7aeaa.js";import{V as Y}from"./p-0a261b66.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-dcf162e9.js";import"./p-982747ef.js";import"./p-331a62d5.js";import"./p-1704ff25.js";import"./p-9a6bd32c.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-b75ee3ba.js";import"./p-02841589.js";import"./p-10fa27d2.js";import"./p-4dd02704.js";import"./p-5f377954.js";import"./p-d884c644.js";var ee=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class te extends p{constructor(){super(...arguments),this.renderErrorMessage=()=>e("div",{class:"vega-input-select-error-message"}),this.renderHelpMessage=()=>e("div",{class:"vega-input-select-hint"},this.hint),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()}}render(){return e(t,{class:v([this.disabled?"vega-input-select-disabled":"",u.formatCustom(this.size)])},this.renderLabel(),this.dropdownRenderer.render(),this.renderErrorMessage(),this.hint&&this.renderHelpMessage())}renderLabel(){return this.label&&e("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonConfig:this.labelSuffixButtonConfig,ref:e=>{f.addUniqueObserverToNode(e,m,this.handleLabelButtonClick)}})}}ee([l()],te.prototype,"disabled",void 0),ee([l()],te.prototype,"size",void 0),ee([l()],te.prototype,"hint",void 0),ee([l()],te.prototype,"label",void 0),ee([l()],te.prototype,"required",void 0),ee([l()],te.prototype,"labelSuffixButtonConfig",void 0),ee([l()],te.prototype,"labelButtonClickEventEmitter",void 0),ee([l({componentFieldName:"vegaInputSelectDropdownRenderer"})],te.prototype,"dropdownRenderer",void 0);var ie=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class se extends p{constructor(){super(...arguments),this.onDropdownShow=()=>{this.isDropdownShow=!0},this.onDropdownHide=()=>{this.isDropdownShow=!1}}addDropdownObserver(e){f.addUniqueObserverToNode(e,x,(e=>{this.onDropdownShow(),this.showEventEmitter.emit(e.detail)})),f.addUniqueObserverToNode(e,b,(e=>{this.onDropdownHide(),this.hideEventEmitter.emit(e.detail)})),f.addUniqueObserverToNode(e,w,(async e=>{this.vegaInputSelectValueController.setValue(await e.host.getSelection())})),f.addUniqueObserverToNode(e,y,(e=>{this.searchEventEmitter.emit(e.detail)})),f.addUniqueObserverToNode(e,j,(e=>{this.searchTriggerEventEmitter.emit(e.detail)})),f.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)})),f.addUniqueObserverToNode(e,I,(async()=>{this.vegaInputSelectValueController.setValue("multiple"===this.selectType?[]:"")}))}}ie([l({writable:!0})],se.prototype,"isDropdownShow",void 0),ie([l()],se.prototype,"vegaSearch",void 0),ie([l()],se.prototype,"searchEventEmitter",void 0),ie([l()],se.prototype,"searchTriggerEventEmitter",void 0),ie([l()],se.prototype,"vegaInputSelectValueController",void 0),ie([l()],se.prototype,"sourceController",void 0),ie([l()],se.prototype,"source",void 0),ie([l()],se.prototype,"showEventEmitter",void 0),ie([l()],se.prototype,"hideEventEmitter",void 0),ie([l()],se.prototype,"selectType",void 0);var oe=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class re extends p{constructor(){super(...arguments),this.handleValueChange=(e,t)=>{if("multiple"===this.selectType){let i;t=t,i=(e=e)?this.vegaDropdownProps.preserveValueIfNotInSource?e:e.filter((e=>this.sourceController.getItem(e))):[],z(i,t,!0)?z(i,e,!0)||this.setValue(i):(this.setValue(i),this.changeEventEmitter.emit(i),k.notify(P,{host:this.host,detail:i}))}else if(e!==t){const t=this.sourceController.getItem(e);this.setValue(this.vegaDropdownProps.preserveValueIfNotInSource?e:t?t.id:""),this.changeEventEmitter.emit(this.value),k.notify(P,{host:this.host,detail:this.value})}}}setValue(e){this.valueGuard(e)&&(this.value=e,this.vegaInputSelectItemController.setSelectedItem())}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}}}oe([l({writable:!0})],re.prototype,"value",void 0),oe([l()],re.prototype,"selectType",void 0),oe([l()],re.prototype,"changeEventEmitter",void 0),oe([l()],re.prototype,"host",void 0),oe([l()],re.prototype,"sourceController",void 0),oe([l()],re.prototype,"vegaInputSelectItemController",void 0),oe([l()],re.prototype,"vegaDropdownProps",void 0),oe([d("watchValue")],re.prototype,"handleValueChange",void 0);var ne=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class ae extends p{componentWillLoad(){this.setSelectedItem()}watchSelectType(){"multiple"===this.selectType?(this.selectedItem=[],this.vegaInputSelectValueController.setValue([])):(this.selectedItem=null,this.vegaInputSelectValueController.setValue(""))}setSelectedItem(){var e;if("multiple"===this.selectType){const e=this.value.map((e=>this.sourceController.getItem(e))),t=this.selectedItem?this.selectedItem.filter((e=>this.value.includes(null==e?void 0:e.id))):[];this.selectedItem=this.updateSelectedItemUnderMultiple(t,e)}else{const t=this.sourceController.getItem(this.value);this.value&&this.value===(null===(e=this.selectedItem)||void 0===e?void 0:e.id)||(this.selectedItem=null),t&&(this.selectedItem=t)}}updateSelectedItemUnderMultiple(e,t){const i=new Map(e.map((e=>[e.id,e])));return t.forEach((e=>{i.set(null==e?void 0:e.id,e)})),Array.from(i.values())}}ne([l()],ae.prototype,"value",void 0),ne([l()],ae.prototype,"selectType",void 0),ne([l({writable:!0})],ae.prototype,"selectedItem",void 0),ne([l()],ae.prototype,"sourceController",void 0),ne([l()],ae.prototype,"vegaInputSelectValueController",void 0),ne([d("componentWillLoad")],ae.prototype,"componentWillLoad",null),ne([d("watchSelectType")],ae.prototype,"watchSelectType",null);var le=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class pe extends p{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:A(),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:B.getIconKey(this.isDropdownShow?"chevron-up":"chevron-down")})),this.renderSelectContainer=()=>{var t,i;return"function"!=typeof this.selectedLabel&&((null===(t=this.selectedLabel)||void 0===t?void 0:t.single)||(this.selectedLabel.single=(e,t)=>t.displayName),(null===(i=this.selectedLabel)||void 0===i?void 0:i.multiple)||(this.selectedLabel.multiple=e=>`${e.length} Selected`)),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="function"==typeof this.selectedLabel?this.selectedLabel(this.value):this.selectedLabel.multiple(this.value,this.selectedItem);return e("span",{class:"vega-input-select-selected"},e("vega-text",{overflow:"ellipsis",tooltip:this.getSelectedLabelTooltipProps(),key:t},t))}return e("div",{class:"vega-input-select-placeholder"},this.translationSlimmer.t(this.placeholder))},this.renderSingleSelected=()=>{var t,i;const s=this.selectedItem;(null==s?void 0:s.displayName)&&(s.displayName=F.sanitize(s.displayName,U));const o=null===(i=(t=this.selectedLabel).single)||void 0===i?void 0:i.call(t,this.value,s);return"function"==typeof this.selectedLabel&&this.selectedItem||"function"!=typeof this.selectedLabel&&o?e("span",{class:"vega-input-select-selected",part:"selected-box"},"function"==typeof this.selectedLabel?e("vega-text",{overflow:"ellipsis",tooltip:this.getSelectedLabelTooltipProps(),key:s.displayName},s.displayName):e("vega-text",{overflow:"ellipsis",tooltip:this.getSelectedLabelTooltipProps(),key:o},o)):e("div",{class:"vega-input-select-placeholder",part:"placeholder"},this.translationSlimmer.t(this.placeholder))},this.getVegaDropdownProperties=()=>{const e=Object.assign({searchable:!0,caseSensitive:!1},this.vegaDropdownProps);return this.dropdownItemTooltipProps&&Object.keys(this.dropdownItemTooltipProps).length>0&&(e.itemTooltipProps=this.dropdownItemTooltipProps),e},this.getSelectedLabelTooltipProps=()=>Object.assign({placement:"bottom"},this.selectedLabelTooltipProps)}watchVegaDropdownProps(){this.vegaDropdownProps&&void 0!==this.vegaDropdownProps.preserveValueIfNotInSource&&(this.dropdown.preserveValueIfNotInSource=this.vegaDropdownProps.preserveValueIfNotInSource,this.dropdown.selectedSourceKey=this.value)}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})))}}B.register({"chevron-up":_,"chevron-down":N}),le([l()],pe.prototype,"value",void 0),le([l()],pe.prototype,"source",void 0),le([l()],pe.prototype,"host",void 0),le([l()],pe.prototype,"selectType",void 0),le([l()],pe.prototype,"isDropdownShow",void 0),le([l()],pe.prototype,"vegaDropdownProps",void 0),le([l()],pe.prototype,"placeholder",void 0),le([l()],pe.prototype,"selectedLabel",void 0),le([l()],pe.prototype,"isLazyLoading",void 0),le([l()],pe.prototype,"vegaInputSelectDropdownController",void 0),le([l()],pe.prototype,"vegaInputSelectPrefixIconRenderer",void 0),le([l()],pe.prototype,"translationSlimmer",void 0),le([l()],pe.prototype,"disabled",void 0),le([l()],pe.prototype,"selectedItem",void 0),le([l()],pe.prototype,"selectedLabelTooltipProps",void 0),le([l()],pe.prototype,"dropdownItemTooltipProps",void 0),le([d("watchVegaDropdownProps")],pe.prototype,"watchVegaDropdownProps",null);var de=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class he extends p{constructor(){super(...arguments),this.hasMore=!0}componentDidLoad(){const e=this.getVirtualScroll();e&&f.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}}}de([l()],he.prototype,"sourceLazyLoadCallback",void 0),de([l({writable:!0})],he.prototype,"isLazyLoading",void 0),de([l()],he.prototype,"sourceController",void 0),de([l()],he.prototype,"vegaInputSelectDropdownRenderer",void 0),de([d("componentDidLoad")],he.prototype,"componentDidLoad",null);const ce=[{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 ve=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class ue extends p{constructor(){super(...arguments),this.handleSourceChange=()=>{this.host.dataset.source=JSON.stringify(this.source),this.source=$(this.source,q)?this.source:[],this.vegaInputSelectItemController.setSelectedItem()}}appendSourceItems(e){this.source=[...this.source,...e]}getItem(e){return this.source.find((t=>t.id===e))}}ve([l()],ue.prototype,"host",void 0),ve([l({writable:!0})],ue.prototype,"source",void 0),ve([l()],ue.prototype,"vegaInputSelectItemController",void 0),ve([d("watchSource")],ue.prototype,"handleSourceChange",void 0);var fe=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class ge extends p{constructor(){super(...arguments),this.mutationObserver=new H({mutationFilter:J("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))}}fe([c()],ge.prototype,"mutationObserver",void 0),fe([l()],ge.prototype,"host",void 0),fe([l()],ge.prototype,"vegaInputSelectDropdownRenderer",void 0),fe([d("componentDidLoad")],ge.prototype,"componentDidLoad",null);var me=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class xe extends p{connectedCallback(){this.remotePhoneNumberPrefixIconRenderSubject=g.getSubjectFromParentNodeByEventId(this.host,V)}callRemotePrefixIconRender(...e){if(this.remotePhoneNumberPrefixIconRenderSubject){const t=Q.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"}))}}me([l()],xe.prototype,"host",void 0),me([l()],xe.prototype,"prefixIcon",void 0),me([d("connectedCallback")],xe.prototype,"connectedCallback",null);class be extends X{constructor(e){super(),this.inputSelectSourceGetter=e,this.invalidResult=e=>({isValid:!1,message:e}),this.validResult=()=>({isValid:!0,message:""})}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}evaluate(e){return"string"!=typeof e||this.inputSelectSourceGetter().find((t=>t.id===e))?Array.isArray(e)&&!e.every((e=>this.inputSelectSourceGetter().find((t=>t.id===e))))?this.invalidResult("There are values that do not exist in the source"):this.validResult():this.invalidResult("The value does not exist in the source")}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){return("string"==typeof e||Array.isArray(e)&&e.every((e=>"string"==typeof e)))&&e.length>0}}var we=function(e,t,i,s){var o,r=arguments.length,n=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(r<3?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};const ye=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.vegaLabelButtonClick=s(this,"vegaLabelButtonClick",7),this.labelButtonClick=s(this,"labelButtonClick",7),this.globalSlimmers={},this.translationSlimmer=new Z,this.sourceController=new ue,this.vegaInputSelectRenderer=new te,this.vegaInputSelectPrefixIconRenderer=new xe,this.vegaInputSelectDropdownController=new se,this.vegaInputSelectValueController=new re,this.vegaInputSelectDropdownRenderer=new pe,this.vegaInputSelectItemsSlotController=new ge,this.vegaInputSelectItemController=new ae,this.formFieldControllerSlimmer=new G({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new r:null},{propertyName:"data-source",ruleFactory:()=>new be((()=>this.source))}],validationRulesName:"validationRules",defaultValue:e=>"multiple"===e.selectType?[]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaInputSelectDropdownRenderer.getDropdownRef(),touchableAreaGetter:()=>[this.vegaInputSelectDropdownRenderer.getInputSelectContainerRef()]}),this.pageResizeObserverSlimmer=new M,this.lazyLoadController=new he,this.changeEventEmitter=K(ye,S),this.searchEventEmitter=K(ye,R),this.searchTriggerEventEmitter=K(ye,j),this.showEventEmitter=K(ye,T),this.hideEventEmitter=K(ye,C),this.labelButtonClickEventEmitter=K(ye,m),this.eventPrevent=new W([R,j,T,C],(()=>this.host),!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new D(ce),this.isDropdownShow=!1,this.currentBreakpoint=a(),this.isLazyLoading=!1,this.label="",this.labelSuffixButtonConfig=null,this.required=!1,this.selectedLabel=e=>Y.t("{0} Selected",e.length),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.selectedLabelTooltipProps={},this.dropdownItemTooltipProps={},this.size="default"}watchSelectType(){}watchSource(){}watchValue(e,t){}watchValidationRules(){}watchVegaDropdownProps(){}watchSelectedLabelTooltipProps(){}watchDropdownItemTooltipProps(){}componentWillLoad(){}async doClose(){await this.vegaInputSelectDropdownRenderer.hide()}async doOpen(){await this.vegaInputSelectDropdownRenderer.show()}async doChange(e){this.vegaInputSelectValueController.setValue(e)}render(){return n(this.vegaInputSelectRenderer.render(),this.host)}get host(){return o(this)}static get watchers(){return{selectType:["watchSelectType"],source:["watchSource"],value:["watchValue"],validationRules:["watchValidationRules"],vegaDropdownProps:["watchVegaDropdownProps"],selectedLabelTooltipProps:["watchSelectedLabelTooltipProps"],dropdownItemTooltipProps:["watchDropdownItemTooltipProps"]}}};we([O()],ye.prototype,"globalSlimmers",void 0),we([c()],ye.prototype,"translationSlimmer",void 0),we([c()],ye.prototype,"sourceController",void 0),we([c()],ye.prototype,"vegaInputSelectRenderer",void 0),we([c()],ye.prototype,"vegaInputSelectPrefixIconRenderer",void 0),we([c()],ye.prototype,"vegaInputSelectDropdownController",void 0),we([c()],ye.prototype,"vegaInputSelectValueController",void 0),we([c()],ye.prototype,"vegaInputSelectDropdownRenderer",void 0),we([c()],ye.prototype,"vegaInputSelectItemsSlotController",void 0),we([c()],ye.prototype,"vegaInputSelectItemController",void 0),we([c()],ye.prototype,"formFieldControllerSlimmer",void 0),we([c()],ye.prototype,"pageResizeObserverSlimmer",void 0),we([c()],ye.prototype,"lazyLoadController",void 0),we([c()],ye.prototype,"changeEventEmitter",void 0),we([c()],ye.prototype,"searchEventEmitter",void 0),we([c()],ye.prototype,"searchTriggerEventEmitter",void 0),we([c()],ye.prototype,"showEventEmitter",void 0),we([c()],ye.prototype,"hideEventEmitter",void 0),we([c()],ye.prototype,"labelButtonClickEventEmitter",void 0),we([c()],ye.prototype,"eventPrevent",void 0),we([c()],ye.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ye.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}vega-field-label{margin-bottom:8px}: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-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{ye as vega_input_select}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as t,d as e,M as s,C as n,o as r,i as o,g as i}from"./p-fb05335d.js";import{c as a}from"./p-a841cf13.js";import{V as l}from"./p-8aee6b74.js";import"./p-6e1ab235.js";import{I as c,c as h}from"./p-593e0f80.js";import{r as u}from"./p-6e70d3cc.js";import{i as d}from"./p-e4c4ea35.js";import{g as E}from"./p-8b5d3a52.js";import{U as T,V as p}from"./p-5904616e.js";const b=[{payloadKey:"IS_OVERRIDECOLORS_METHOD_CALLED",payloadDescription:"Indicate if the method overrideColors of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"overrideColors"===e,payloadValue:()=>!0},{payloadKey:"IS_RESET_METHOD_CALLED",payloadDescription:"Indicate if the method reset of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"reset"===e,payloadValue:()=>!0},{payloadKey:"IS_TOGGLEDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method toggleDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"toggleDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_ISDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method isDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"isDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_APPLY_BRANDING_METHOD_CALLED",payloadDescription:"Indicate if the method applyBranding of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"applyBranding"===e,payloadValue:()=>!0}];class f{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=h(f,["overrideColors","reset","toggleDarkMode","isDarkMode","applyBranding"],b)}async overrideColors(t){l.overrideColors(t)}async reset(){l.reset()}toggleDarkMode(t){l.toggleDarkMode(t)}isDarkMode(){return l.isDarkMode()}applyBranding(t){l.applyBranding(t)}}!function(t,e,s,n){var r,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o<3?r(i):o>3?r(e,s,i):r(e,s))||i);o>3&&i&&Object.defineProperty(e,s,i)}([c()],f.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const C=new f,L=["none","solid","dashed","dotted","double","groove","ridge","inset","outset"],g=[{key:"white",dark:"#04041C",light:"#FCFCFC"},{key:"red",dark:"#AA091C",light:"#FF4C61"},{key:"orange",dark:"#974502",light:"#FDAB68"},{key:"yellow",dark:"#735C00",light:"#FFDC4C"},{key:"green",dark:"#2E6D18",light:"#7BDA58"},{key:"teal",dark:"#287171",light:"#7BD1D1"},{key:"gray",dark:"#595959",light:"#999999"},{key:"black",dark:"#FCFCFC",light:"#04041C"}],R={key:"default-head-bg",dark:"#181830",light:"#F0F3F7"};class _{static getTableColors(){return _.TABLE_COLORS}static setTableColors(t){_.TABLE_COLORS=t}static getColorKey(t,e=!1){var s;let n=null;const r=_.TABLE_COLORS,o=e?[...r,R]:r;if(o){const e=null===(s=u(t))||void 0===s?void 0:s.toUpperCase();if(e)n=o.find((t=>C.isDarkMode()?t.dark===e:t.light===e));else for(const e of o)if(e.key===t){n=e;break}}return n?n.key:""}}_.TABLE_COLORS=g;class O extends t{constructor(t){super(),this.type=m.COLOR,this.colorKey=t,t&&(this.color=this.formatColor(t))}renderStyle(){return{color:this.color?l.isDarkMode()?this.color.dark:this.color.light:this.colorKey||""}}renderClass(){return null}toJSON(){var t;return{color:(null===(t=this.color)||void 0===t?void 0:t.key)||this.colorKey||""}}clone(){return new O(this.colorKey)}formatColor(t){return _.getTableColors().find((e=>e.key===t))}}var m,k;!function(t){t.TABLE="EXTENSION_TABLE",t.CELL="EXTENSION_TABLE_CELL",t.CAPTION="EXTENSION_TABLE_CAPTION",t.COLOR="EXTENSION_TABLE_COLOR"}(m||(m={}));class A extends t{constructor({backgroundColor:t,border:e,width:s,height:n,alignment:r,borderCollapse:o}={},i=!0){super(),this.type=m.TABLE,this.useInternalStyle=i,this.backgroundColor=t,this.border=e,this.width=s,this.height=n,this.alignment=i&&void 0===r?A.DEFAULT_ALIGNMENT:r,this.backgroundColorAnnotation=new O(t),this.borderColorAnnotation=new O(null==e?void 0:e.color),this.borderCollapse=i&&void 0===o?A.DEFAULT_BORDER_COLLAPSE:o}static from(t,e=!0){return[m.TABLE,new A(t,e)]}static getDefaultStyles(){return{borderCollapse:A.DEFAULT_BORDER_COLLAPSE,margin:A.DEFAULT_ALIGNMENT_STYLE_VALUE}}get borderStr(){return this.border?`${this.border.style} ${this.border.width} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}clone(){return new A({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse},this.useInternalStyle)}toJSON(){return{table:a({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse})}}renderStyle(){const t=this.backgroundColorAnnotation.renderStyle().color,e=Object.assign({border:this.borderStr,width:this.width,height:this.height,borderCollapse:this.borderCollapse},this.renderAlignmentStyle());return t&&(e.backgroundColor=t),a(e)}renderClass(){return"v-rte--extension-table"}renderAlignmentStyle(){return this.alignment?{margin:"center"===this.alignment?A.DEFAULT_ALIGNMENT_STYLE_VALUE:"left"===this.alignment?"0":"0 0 0 auto"}:{}}}A.DEFAULT_BORDER_COLLAPSE="collapse",A.DEFAULT_ALIGNMENT="center",A.DEFAULT_ALIGNMENT_STYLE_VALUE="0 auto";class RTETableBlock extends e{constructor(t,e){super(t),this.type="table-block",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.TABLE,new A)}static from(t,e){var s;const n=new RTETableBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),n.children=super.generateBlockChildren(t.children,e,n),(null===(s=t.annotations)||void 0===s?void 0:s.table)&&n.annotationMap.set(...A.from(t.annotations.table,null==e?void 0:e.autoMatchFormat)),n}clone(t){const e=new RTETableBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}getFirstNode(){return this.hasCaption()?this.children[0].children[0].getLastNode():this.children[0].children[0].children[0].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<table${super.generateAttributeString(t)}>${e}</table>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCaption(){const t=this.children.find((t=>"table-caption"===t.type));return null!=t?t:null}setCaption(t){const e=this.children.findIndex((t=>"table-caption"===t.type));t?(t.parent=this,e>=0?this.children[e]=t:this.children.unshift(t)):e>=0&&this.children.splice(e,1)}hasCaption(){return d(this.getCaption())}}!function(t){t.ROW="ROW",t.CAPTION="CAPTION",t.COLUMN="COLUMN",t.MERGE_CELLS="MERGE_CELLS",t.TABLE="TABLE",t.CELL="CELL",t.SPLIT_CELL="SPLIT_CELL"}(k||(k={}));class B{syncCursorPosition(t,e){const s=this.findRootContent(t);if(e&&s){const t=e.getRangeEndOffset();s.apply(new T(e,t))}}findRootContent(t){let e=t.parent;for(;e;){if(e instanceof p)return e;e=e.parent}}}const w="DELETE_TABLE_ROW";class S extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_ROW",this.rowsToBeRemoved=t}}const y="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION";class N extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const M="INSERT_TABLE_ROW_INTO_SAME_SECTION";var D;!function(t){t.ABOVE="ABOVE",t.BELOW="BELOW"}(D||(D={}));class v extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_SAME_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const I="TOGGLE_HEADER_ROW";class x extends s{constructor(t){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_ROW",this.selectedRows=t}}class RTETableBodyBlock extends e{constructor(t){super(t),this.type="table-body",this.children=[]}static from(t,e){const s=new RTETableBodyBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableBodyBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tbody${super.generateAttributeString(t)}>${e}</tbody>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableHeadBlock extends e{constructor(t){super(t),this.type="table-head",this.children=[]}static from(t,e){const s=new RTETableHeadBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableHeadBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<thead${super.generateAttributeString(t)}>${e}</thead>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableRowBlock extends e{constructor(t){super(t),this.type="table-row",this.children=[]}static from(t,e){const s=new RTETableRowBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableRowBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tr${super.generateAttributeString(t)}>${e}</tr>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class H extends t{constructor({backgroundColor:t,padding:e,border:s,width:n,height:r,textAlign:o,verticalAlign:i,minWidth:a,boxSizing:l}={},c=!0){super(),this.type=m.CELL,this.useInternalStyle=c,this.backgroundColor=t,this.width=n,this.height=r,this.border=c&&void 0===s?H.DEFAULT_BORDER:s,this.padding=c&&void 0===e?H.DEFAULT_PADDING:e,this.textAlign=c&&void 0===o?H.DEFAULT_HORIZONTAL_TEXT_ALIGN:o,this.verticalAlign=c&&void 0===i?H.DEFAULT_VERTICAL_TEXT_ALIGN:i,this.minWidth=c&&void 0===a?H.DEFAULT_CELL_MIN_WIDTH:a,this.boxSizing=c&&void 0===l?H.DEFAULT_BOX_SIZING:l}static from(t,e){return[m.CELL,new H(t,e)]}static getDefaultStyles(t=!0){return{padding:H.DEFAULT_PADDING,textAlign:H.DEFAULT_HORIZONTAL_TEXT_ALIGN,verticalAlign:H.DEFAULT_VERTICAL_TEXT_ALIGN,minWidth:H.DEFAULT_CELL_MIN_WIDTH,boxSizing:H.DEFAULT_BOX_SIZING,border:`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${t?H.DEFAULT_BORDER.color:H.DEFAULT_BORDER_RGB_COLOR}`}}get borderStr(){return this.border?`${this.border.style||""} ${this.border.width||""} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}set backgroundColor(t){this._backgroundColor=t,this.backgroundColorAnnotation=new O(t)}get backgroundColor(){return this._backgroundColor}set border(t){this._border=t,this.borderColorAnnotation=new O(null==t?void 0:t.color)}get border(){return this._border}clone(){return new H({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}toJSON(){return{tableCell:a({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing})}}renderStyle(t){const e=this.backgroundColorAnnotation.renderStyle().color,s={padding:this.padding,border:this.borderStr,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing};return e&&(s.backgroundColor=e),a((null==t?void 0:t.standalone)?s:this.removeDefaultValues(s),{cleanEmptyString:!0})}renderClass(){return null}removeDefaultValues(t){const e=Object.assign({},t);return e.padding===H.DEFAULT_PADDING&&delete e.padding,e.border===`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${H.DEFAULT_BORDER.color}`&&delete e.border,e.textAlign===H.DEFAULT_HORIZONTAL_TEXT_ALIGN&&delete e.textAlign,e.verticalAlign===H.DEFAULT_VERTICAL_TEXT_ALIGN&&delete e.verticalAlign,e.minWidth===H.DEFAULT_CELL_MIN_WIDTH&&delete e.minWidth,e.boxSizing===H.DEFAULT_BOX_SIZING&&delete e.boxSizing,e}}H.DEFAULT_PADDING="12px",H.DEFAULT_BORDER={style:"solid",width:"1px",color:"#ddd"},H.DEFAULT_BORDER_RGB_COLOR="rgb(221, 221, 221)",H.DEFAULT_HORIZONTAL_TEXT_ALIGN="left",H.DEFAULT_VERTICAL_TEXT_ALIGN="middle",H.DEFAULT_CELL_MIN_WIDTH="55px",H.DEFAULT_BOX_SIZING="border-box";class RTETableCellBlock extends e{constructor(t,e){super(t),this.type="table-cell",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new H)}static from(t,e){var s;const n=new RTETableCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...H.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}get rowSpan(){const t=this.getCustomAttributeByName("rowspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}get colSpan(){const t=this.getCustomAttributeByName("colspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<td${super.generateAttributeString(t)}>${e}</td>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCustomAttributeByName(t){const e=this.getCustomAttributesAnnotation();if(e)return(e.toJSON().customAttribute||{})[t]}}class j extends H{constructor(t={},e=!0){super(t,e)}static from(t,e){return[m.CELL,new j(t,e)]}static getDefaultBackgroundColor(){return l.isDarkMode()?R.dark:R.light}clone(){return new j({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}renderStyle(t){var e;const s=super.renderStyle(t);return a(Object.assign(Object.assign({},s),{backgroundColor:null!==(e=s.backgroundColor)&&void 0!==e?e:j.getDefaultBackgroundColor()}))}}class RTETableHeadCellBlock extends RTETableCellBlock{constructor(t,e){super(t,e),this.type="table-head-cell";const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new j)}static from(t,e){var s;const n=new RTETableHeadCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...j.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableHeadCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<th${super.generateAttributeString(t)}>${e}</th>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}const F="MERGE_CELLS";class $ extends s{constructor(t,e,s,n,r){super(),this.type="MERGE_CELLS",this.isFlushable=!0,this.targetCell=t,this.mergeCells=e,this.colSpan=s,this.rowSpan=n,this.direction=r}}var P,W;!function(t){t.MERGE_CELLS="MERGE_CELLS",t.MERGE_CELL_UP="MERGE_CELL_UP",t.MERGE_CELL_RIGHT="MERGE_CELL_RIGHT",t.MERGE_CELL_DOWN="MERGE_CELL_DOWN",t.MERGE_CELL_LEFT="MERGE_CELL_LEFT"}(P||(P={}));class G extends B{canHandle(t){return t[0]===k.MERGE_CELLS}execute(t,e){const s=e.tableSelection.getSelectedCells(),n=t[1];switch(n){case P.MERGE_CELL_UP:case P.MERGE_CELL_RIGHT:case P.MERGE_CELL_DOWN:case P.MERGE_CELL_LEFT:{const t=this.getDirectionMergeCells(n,s[0]);this.handleMergeCells(t,n)}break;default:s.length>1&&this.handleMergeCells(s,P.MERGE_CELLS)}}getDirectionMergeCells(t,e){const s=Q(e,t);if(!s)return[e];switch(t){case P.MERGE_CELL_UP:return[s,e];case P.MERGE_CELL_DOWN:return[e,s];case P.MERGE_CELL_LEFT:return[s,e];default:return[e,s]}}handleMergeCells(t,e){if(t.length<2)return;const s=tt(t),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:a}=s,l=new $(a,t,i-o+1,r-n+1,e);this.applyActionOnTable(l,a)}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}function U(t,e){return t?t instanceof e?t:U(t.parent,e):null}function V(t,e){return{id:E(),type:"table-body",children:Array.from({length:t},(()=>function(t){return{id:E(),type:"table-row",children:Array.from({length:t},(()=>Y("table-cell")))}}(e)))}}function J(t){return t.children.filter((t=>t instanceof RTETableBodyBlock||t instanceof RTETableHeadBlock)).flatMap((t=>t.children))}function K(t){if(!t||!t.children||!t.children[0])return null;const e=t.children[0];return e instanceof o?e:K(e)}function z(t,e){for(const s of t){const t=s.children.find((t=>t.id===e));if(t)return t}return null}function Y(t){const e=E();return{id:e,type:t,children:[{id:`${e}-p`,type:"paragraph",nodes:[{id:`${e}-p-t`,type:"text",text:""}]}]}}function X(t){return{colSpan:t.colSpan,rowSpan:t.rowSpan}}function Z(t,e,s){const n=null!=s?s:q(e);for(let e=0;e<n.length;e++){const s=n[e];for(let e=0;e<s.length;e++)if(s[e]===t.id)return e}return-1}function q(t){const e=[];return t.forEach(((t,s)=>{e[s]||(e[s]=[]);let n=0;t.children.forEach((t=>{const{colSpan:r,rowSpan:o}=X(t);for(;void 0!==e[s][n];)n++;for(let i=0;i<o;i++)for(let o=0;o<r;o++)e[s+i]||(e[s+i]=[]),e[s+i][n+o]=t.id;n+=r}))})),e}function Q(t,e){if(!t)return null;const s=t.parent,n=s.parent.children,r=n.indexOf(s),{colSpan:o,rowSpan:i}=X(t),a=Z(t,n);let l=r,c=a;switch(e){case P.MERGE_CELL_LEFT:c=a-1;break;case P.MERGE_CELL_RIGHT:c=a+o;break;case P.MERGE_CELL_UP:l=r-1;break;default:l=r+i}return function(t,e,s){const n=q(t);for(let r=0;r<t.length;r++){const o=t[r];for(const i of o.children){const{colSpan:o,rowSpan:a}=X(i),l=Z(i,t,n),c=r+a-1,h=l+o-1,u=s>=l&&s<=h;if(e>=r&&e<=c&&u)return i}}return null}(n,l,c)}function tt(t){const e=t[0].parent.parent.children,s=q(e);let n=Number.POSITIVE_INFINITY,r=-1,o=Number.POSITIVE_INFINITY,i=-1;const a=new Set;return t.forEach((t=>{const l=e.indexOf(t.parent),c=Z(t,e,s),{colSpan:h,rowSpan:u}=X(t),d=l,E=l+u-1,T=c,p=c+h-1;for(let t=d;t<=E;t++)for(let e=T;e<=p;e++)a.add(`${t},${e}`);n=Math.min(n,d),r=Math.max(r,E),o=Math.min(o,T),i=Math.max(i,p)})),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:t[0],coveredPositions:a}}function et(t){let e=0;const s=J(t)[0];for(const t of s.children){const{colSpan:s}=X(t);e+=s}return e}function st(t){if(1===t.length)return!0;const e=tt(t),{minRow:s,maxRow:n,minCol:r,maxCol:o,coveredPositions:i}=e;return i.size===(n-s+1)*(o-r+1)}function nt(t,e,s,o,i){const a=t.annotationMap.get(n.CUSTOM_ATTRIBUTE),l=a?Object.assign({},a.customAttribute):{};delete l.colspan,delete l.rowspan,e>1&&(l.colspan=String(e));const c=et(o)+(i?1:0);if(s>1&&e!==c&&(l.rowspan=String(s)),Object.keys(l).length>0){const e=new r(l);t.annotationMap.set(n.CUSTOM_ATTRIBUTE,e)}else t.annotationMap.delete(n.CUSTOM_ATTRIBUTE)}function rt(t){const e=Y(t);return"table-head-cell"===t?RTETableHeadCellBlock.from(e):RTETableCellBlock.from(e)}function ot(t,e,s){for(let n=0;n<s;n++){const s=t[n],r=e.children.find((t=>t.id===s));if(r&&!(r instanceof RTETableHeadCellBlock))return n}return-1}function it(t){const e=new Map;return t.forEach((t=>{for(let s=0;s<t.length;s++){const n=t[s];n&&!e.has(n)&&e.set(n,s)}})),e}function at(t,e,s,n){if(0===t.length)return[0,-1];const r=s||J(e),o=null!=n?n:q(r);let i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const e=Z(t,r,o);i=Math.min(i,e),a=Math.max(a,e)})),[i,a]}!function(t){t.HEADER_ROW="HEADER_ROW",t.ADD_ROW_ABOVE="ADD_ROW_ABOVE",t.ADD_ROW_BELOW="ADD_ROW_BELOW",t.DELETE_ROW="DELETE_ROW",t.SELECT_ROW="SELECT_ROW"}(W||(W={}));class lt extends B{canHandle(t){return t[0]===k.ROW}execute(t,e){const s=t[1];switch(s){case W.ADD_ROW_ABOVE:case W.ADD_ROW_BELOW:this.handleInsertRow(s,e);break;case W.DELETE_ROW:this.handleDeleteRow(e);break;case W.HEADER_ROW:this.handleToggleHeader(e);break;case W.SELECT_ROW:this.handleSelectRow(e)}}handleInsertRow(t,e){const s=this.getAllSelectedRows(e);if(s.length>0){const e=t===W.ADD_ROW_ABOVE?D.ABOVE:D.BELOW,n=e===D.ABOVE?s[0]:s[s.length-1],r=n.parent instanceof RTETableBodyBlock,o=this.shouldInsertHeaderRow(n,e)||r?new v(e,s):new N(e,s);this.applyActionToTable(s[0],o)}}shouldInsertHeaderRow(t,e){if(e===D.ABOVE)return t.parent instanceof RTETableHeadBlock;{const e=t.parent;return e instanceof RTETableHeadBlock&&e.children[e.children.length-1]!==t}}handleDeleteRow(t){const e=this.getAllSelectedRows(t);if(e.length){const t=new S(e);this.applyActionToTable(e[0],t)}}handleToggleHeader(t){const e=this.getAllSelectedRows(t);if(e.length>0){const t=new x(e);this.applyActionToTable(e[0],t)}}handleSelectRow(t){const e=this.getAllSelectedRows(t);if(e.length>0&&t&&t.tableSelection){const s=e.flatMap((t=>t.children));t.tableSelection.setSelectedCells(s)}}getAllSelectedRows(t){const e=new Set;if(t&&t.tableSelection){const{tableSelection:s}=t;s.getSelectedCells().forEach((t=>{const s=U(t,RTETableRowBlock);s&&e.add(s)}))}return Array.from(e)}applyActionToTable(t,e){const s=U(t,RTETableBlock);s&&s.apply(e)}}const ct="REPLACE_TABLE_CELL";class ht extends s{constructor(t){super(),this.isFlushable=!0,this.type="REPLACE_TABLE_CELL",this.payload=t}}const ut="SPLIT_TABLE_CELL";class dt extends s{constructor(t){super(),this.isFlushable=!0,this.type="SPLIT_TABLE_CELL",this.payload=t}}class Et extends i{getBoundaryCellColumnRange(t,e,s){let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const o=Z(t,e,s);n=Math.min(n,o),r=Math.max(r,o)})),[n,r]}}class Tt extends Et{static isFullHeaderSelection(t){if(0===t.length)return!1;const e=U(t[0],RTETableBlock);if(e){const s=J(e),n=q(s),r=new Map;s.forEach((t=>{t.children.forEach((t=>r.set(t.id,t)))}));const[o,i]=at(t,e,s,n);for(const t of n)for(let e=o;e<=i;e++){const s=r.get(t[e]);if(s&&!(s instanceof RTETableHeadCellBlock))return!1}return!0}return!1}handleAction(t,e){const s=t.headerOn,n=J(e),r=q(n),[o,i]=this.getBoundaryCellColumnRange(t.tableCellHeaderRange,n,r);(s||!s&&o>0)&&this.toggleHeadRows(e,n,r,s,i,o),this.toggleBodyRows(e,n,r,s,o,i);const a=this.getRootContent(e);if(a&&t.tableCellHeaderRange[0].parent){const e=t.tableCellHeaderRange[0].parent.getFirstNode();e&&a.apply(new T(e,0))}}toggleHeadRows(t,e,s,n,r,o){var i;const a=((null===(i=t.children.find((t=>t instanceof RTETableHeadBlock)))||void 0===i?void 0:i.children)||[]).length;for(let i=0;i<a;i++)this.toggleCellType(t,e[i],s[i],0,n?r:o-1,(()=>!0),(t=>RTETableHeadCellBlock.from(t.toJSON())))}toggleBodyRows(t,e,s,n,r,o){var i;const a=s[0].length,l=(null===(i=t.children.find((t=>t instanceof RTETableBodyBlock)))||void 0===i?void 0:i.children)||[],c=e.length-l.length;for(let i=0;i<l.length;i++){const l=i+c,h=e[l],u=s[l],d=ot(u,h,a);n?d>-1&&this.toggleCellType(t,h,u,d,o,(t=>!(t instanceof RTETableHeadCellBlock)),(t=>RTETableHeadCellBlock.from(t.toJSON()))):this.toggleCellType(t,h,u,r,-1===d?a-1:d-1,(t=>t instanceof RTETableHeadCellBlock),(t=>RTETableCellBlock.from(t.toJSON())))}}toggleCellType(t,e,s,n,r,o,i){for(let a=n;a<=r;a++){const n=s[a],l=e.children.find((t=>t.id===n));if(l&&o(l)){const o=s.indexOf(n),c={table:t,cell:l,col:a,cellStartCol:o,endCol:r,targetCellType:i(l).type},h=o+l.colSpan-1;if(h>r||o<a){if(e.apply(new dt(c)),h>r)return;a=h;continue}e.apply(new ht(c))}l&&(a+=l.colSpan-1)}}}const pt="DELETE_TABLE_COLUMN";class bt extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_COLUMN",this.tableCellDeleteRange=t}}const ft="INSERT_TABLE_COLUMN";var Ct;!function(t){t.LEFT="LEFT",t.RIGHT="RIGHT"}(Ct||(Ct={}));class Lt extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="INSERT_TABLE_COLUMN",this.tableCellInsertRange=e,this.insertDirection=t}}const gt="SELECT_TABLE_COLUMN";class Rt extends s{constructor(t,e){super(),this.type="SELECT_TABLE_COLUMN",this.tableCellSelectRange=t,this.selectCellCallback=e}}const _t="TOGGLE_HEADER_TABLE_COLUMN";class Ot extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_TABLE_COLUMN",this.headerOn=!1,this.tableCellHeaderRange=t,this.headerOn=e}}var mt;!function(t){t.HEADER_COLUMN="HEADER_COLUMN",t.ADD_COLUMN_LEFT="ADD_COLUMN_LEFT",t.ADD_COLUMN_RIGHT="ADD_COLUMN_RIGHT",t.DELETE_COLUMN="DELETE_COLUMN",t.SELECT_COLUMN="SELECT_COLUMN"}(mt||(mt={}));class kt extends B{canHandle(t){return t[0]===k.COLUMN}execute(t,e){const s=e.tableSelection.getSelectedCells();if(!s||0===s.length)return;const n=t[1];switch(n){case mt.ADD_COLUMN_LEFT:case mt.ADD_COLUMN_RIGHT:this.handleInsertColumn(n,s);break;case mt.DELETE_COLUMN:this.handleDeleteColumn(s);break;case mt.SELECT_COLUMN:this.handleSelectColumn(s,e);break;case mt.HEADER_COLUMN:this.handleToggleHeaderColumn(s)}}handleInsertColumn(t,e){const s=new Lt(t===mt.ADD_COLUMN_LEFT?Ct.LEFT:Ct.RIGHT,e);this.applyActionOnTable(s,e[0])}handleDeleteColumn(t){const e=new bt(t);this.applyActionOnTable(e,t[0])}handleSelectColumn(t,e){const s=new Rt(t,(t=>{e.tableSelection.setSelectedCells(t)}));this.applyActionOnTable(s,t[0])}handleToggleHeaderColumn(t){const e=!Tt.isFullHeaderSelection(t),s=new Ot(t,e);this.applyActionOnTable(s,t[0])}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}const At="SPLIT_CELL_HORIZONTALLY";class Bt extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_HORIZONTALLY"}}const wt="SPLIT_CELL_VERTICALLY";class St extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_VERTICALLY"}}var yt;!function(t){t.SPLIT_CELL_HORIZONTALLY="SPLIT_CELL_HORIZONTALLY",t.SPLIT_CELL_VERTICALLY="SPLIT_CELL_VERTICALLY"}(yt||(yt={}));class Nt extends B{canHandle(t){return t[0]===k.SPLIT_CELL}execute(t,e){const s=e.tableSelection.getSelectedCells();if(s&&1===s.length){const e=s[0];switch(t[1]){case yt.SPLIT_CELL_HORIZONTALLY:this.handleSplitCellHorizontally(e);break;case yt.SPLIT_CELL_VERTICALLY:this.handleSplitCellVertically(e)}}}handleSplitCellHorizontally(t){const e=new Bt;t.apply(e)}handleSplitCellVertically(t){const e=new St;t.apply(e)}}export{at as $,RTETableRowBlock as A,Z as B,kt as C,D,g as E,y as F,M as G,w as H,Ct as I,I as J,ft as K,pt as L,G as M,_t as N,Tt as O,ut as P,ct as Q,m as R,B as S,k as T,At as U,C as V,wt as W,gt as X,F as Y,L as Z,mt as _,R as a,W as a0,yt as a1,st as a2,Q as a3,A as b,H as c,RTETableHeadCellBlock as d,lt as e,Nt as f,_ as g,RTETableBlock as h,V as i,RTETableCellBlock as j,RTETableHeadBlock as k,RTETableBodyBlock as l,U as m,j as n,Et as o,J as p,q,z as r,nt as s,Y as t,it as u,et as v,K as w,X as x,rt as y,P as z}
|
|
1
|
+
import{B as t,d as e,M as s,C as n,o as r,i as o,g as i}from"./p-a2b8d49d.js";import{c as a}from"./p-a841cf13.js";import{V as l}from"./p-8aee6b74.js";import"./p-6e1ab235.js";import{I as c,c as h}from"./p-9a6bd32c.js";import{r as u}from"./p-ec2a1d4c.js";import{i as d}from"./p-78ba7ca9.js";import{g as E}from"./p-8b5d3a52.js";import{U as T,V as p}from"./p-e8ea3b16.js";const b=[{payloadKey:"IS_OVERRIDECOLORS_METHOD_CALLED",payloadDescription:"Indicate if the method overrideColors of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"overrideColors"===e,payloadValue:()=>!0},{payloadKey:"IS_RESET_METHOD_CALLED",payloadDescription:"Indicate if the method reset of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"reset"===e,payloadValue:()=>!0},{payloadKey:"IS_TOGGLEDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method toggleDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"toggleDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_ISDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method isDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"isDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_APPLY_BRANDING_METHOD_CALLED",payloadDescription:"Indicate if the method applyBranding of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"applyBranding"===e,payloadValue:()=>!0}];class f{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=h(f,["overrideColors","reset","toggleDarkMode","isDarkMode","applyBranding"],b)}async overrideColors(t){l.overrideColors(t)}async reset(){l.reset()}toggleDarkMode(t){l.toggleDarkMode(t)}isDarkMode(){return l.isDarkMode()}applyBranding(t){l.applyBranding(t)}}!function(t,e,s,n){var r,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o<3?r(i):o>3?r(e,s,i):r(e,s))||i);o>3&&i&&Object.defineProperty(e,s,i)}([c()],f.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const C=new f,L=["none","solid","dashed","dotted","double","groove","ridge","inset","outset"],g=[{key:"white",dark:"#04041C",light:"#FCFCFC"},{key:"red",dark:"#AA091C",light:"#FF4C61"},{key:"orange",dark:"#974502",light:"#FDAB68"},{key:"yellow",dark:"#735C00",light:"#FFDC4C"},{key:"green",dark:"#2E6D18",light:"#7BDA58"},{key:"teal",dark:"#287171",light:"#7BD1D1"},{key:"gray",dark:"#595959",light:"#999999"},{key:"black",dark:"#FCFCFC",light:"#04041C"}],R={key:"default-head-bg",dark:"#181830",light:"#F0F3F7"};class _{static getTableColors(){return _.TABLE_COLORS}static setTableColors(t){_.TABLE_COLORS=t}static getColorKey(t,e=!1){var s;let n=null;const r=_.TABLE_COLORS,o=e?[...r,R]:r;if(o){const e=null===(s=u(t))||void 0===s?void 0:s.toUpperCase();if(e)n=o.find((t=>C.isDarkMode()?t.dark===e:t.light===e));else for(const e of o)if(e.key===t){n=e;break}}return n?n.key:""}}_.TABLE_COLORS=g;class O extends t{constructor(t){super(),this.type=m.COLOR,this.colorKey=t,t&&(this.color=this.formatColor(t))}renderStyle(){return{color:this.color?l.isDarkMode()?this.color.dark:this.color.light:this.colorKey||""}}renderClass(){return null}toJSON(){var t;return{color:(null===(t=this.color)||void 0===t?void 0:t.key)||this.colorKey||""}}clone(){return new O(this.colorKey)}formatColor(t){return _.getTableColors().find((e=>e.key===t))}}var m,k;!function(t){t.TABLE="EXTENSION_TABLE",t.CELL="EXTENSION_TABLE_CELL",t.CAPTION="EXTENSION_TABLE_CAPTION",t.COLOR="EXTENSION_TABLE_COLOR"}(m||(m={}));class A extends t{constructor({backgroundColor:t,border:e,width:s,height:n,alignment:r,borderCollapse:o}={},i=!0){super(),this.type=m.TABLE,this.useInternalStyle=i,this.backgroundColor=t,this.border=e,this.width=s,this.height=n,this.alignment=i&&void 0===r?A.DEFAULT_ALIGNMENT:r,this.backgroundColorAnnotation=new O(t),this.borderColorAnnotation=new O(null==e?void 0:e.color),this.borderCollapse=i&&void 0===o?A.DEFAULT_BORDER_COLLAPSE:o}static from(t,e=!0){return[m.TABLE,new A(t,e)]}static getDefaultStyles(){return{borderCollapse:A.DEFAULT_BORDER_COLLAPSE,margin:A.DEFAULT_ALIGNMENT_STYLE_VALUE}}get borderStr(){return this.border?`${this.border.style} ${this.border.width} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}clone(){return new A({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse},this.useInternalStyle)}toJSON(){return{table:a({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse})}}renderStyle(){const t=this.backgroundColorAnnotation.renderStyle().color,e=Object.assign({border:this.borderStr,width:this.width,height:this.height,borderCollapse:this.borderCollapse},this.renderAlignmentStyle());return t&&(e.backgroundColor=t),a(e)}renderClass(){return"v-rte--extension-table"}renderAlignmentStyle(){return this.alignment?{margin:"center"===this.alignment?A.DEFAULT_ALIGNMENT_STYLE_VALUE:"left"===this.alignment?"0":"0 0 0 auto"}:{}}}A.DEFAULT_BORDER_COLLAPSE="collapse",A.DEFAULT_ALIGNMENT="center",A.DEFAULT_ALIGNMENT_STYLE_VALUE="0 auto";class RTETableBlock extends e{constructor(t,e){super(t),this.type="table-block",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.TABLE,new A)}static from(t,e){var s;const n=new RTETableBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),n.children=super.generateBlockChildren(t.children,e,n),(null===(s=t.annotations)||void 0===s?void 0:s.table)&&n.annotationMap.set(...A.from(t.annotations.table,null==e?void 0:e.autoMatchFormat)),n}clone(t){const e=new RTETableBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}getFirstNode(){return this.hasCaption()?this.children[0].children[0].getLastNode():this.children[0].children[0].children[0].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<table${super.generateAttributeString(t)}>${e}</table>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCaption(){const t=this.children.find((t=>"table-caption"===t.type));return null!=t?t:null}setCaption(t){const e=this.children.findIndex((t=>"table-caption"===t.type));t?(t.parent=this,e>=0?this.children[e]=t:this.children.unshift(t)):e>=0&&this.children.splice(e,1)}hasCaption(){return d(this.getCaption())}}!function(t){t.ROW="ROW",t.CAPTION="CAPTION",t.COLUMN="COLUMN",t.MERGE_CELLS="MERGE_CELLS",t.TABLE="TABLE",t.CELL="CELL",t.SPLIT_CELL="SPLIT_CELL"}(k||(k={}));class B{syncCursorPosition(t,e){const s=this.findRootContent(t);if(e&&s){const t=e.getRangeEndOffset();s.apply(new T(e,t))}}findRootContent(t){let e=t.parent;for(;e;){if(e instanceof p)return e;e=e.parent}}}const w="DELETE_TABLE_ROW";class S extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_ROW",this.rowsToBeRemoved=t}}const y="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION";class N extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const M="INSERT_TABLE_ROW_INTO_SAME_SECTION";var D;!function(t){t.ABOVE="ABOVE",t.BELOW="BELOW"}(D||(D={}));class v extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_SAME_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const I="TOGGLE_HEADER_ROW";class x extends s{constructor(t){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_ROW",this.selectedRows=t}}class RTETableBodyBlock extends e{constructor(t){super(t),this.type="table-body",this.children=[]}static from(t,e){const s=new RTETableBodyBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableBodyBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tbody${super.generateAttributeString(t)}>${e}</tbody>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableHeadBlock extends e{constructor(t){super(t),this.type="table-head",this.children=[]}static from(t,e){const s=new RTETableHeadBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableHeadBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<thead${super.generateAttributeString(t)}>${e}</thead>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableRowBlock extends e{constructor(t){super(t),this.type="table-row",this.children=[]}static from(t,e){const s=new RTETableRowBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableRowBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tr${super.generateAttributeString(t)}>${e}</tr>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class H extends t{constructor({backgroundColor:t,padding:e,border:s,width:n,height:r,textAlign:o,verticalAlign:i,minWidth:a,boxSizing:l}={},c=!0){super(),this.type=m.CELL,this.useInternalStyle=c,this.backgroundColor=t,this.width=n,this.height=r,this.border=c&&void 0===s?H.DEFAULT_BORDER:s,this.padding=c&&void 0===e?H.DEFAULT_PADDING:e,this.textAlign=c&&void 0===o?H.DEFAULT_HORIZONTAL_TEXT_ALIGN:o,this.verticalAlign=c&&void 0===i?H.DEFAULT_VERTICAL_TEXT_ALIGN:i,this.minWidth=c&&void 0===a?H.DEFAULT_CELL_MIN_WIDTH:a,this.boxSizing=c&&void 0===l?H.DEFAULT_BOX_SIZING:l}static from(t,e){return[m.CELL,new H(t,e)]}static getDefaultStyles(t=!0){return{padding:H.DEFAULT_PADDING,textAlign:H.DEFAULT_HORIZONTAL_TEXT_ALIGN,verticalAlign:H.DEFAULT_VERTICAL_TEXT_ALIGN,minWidth:H.DEFAULT_CELL_MIN_WIDTH,boxSizing:H.DEFAULT_BOX_SIZING,border:`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${t?H.DEFAULT_BORDER.color:H.DEFAULT_BORDER_RGB_COLOR}`}}get borderStr(){return this.border?`${this.border.style||""} ${this.border.width||""} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}set backgroundColor(t){this._backgroundColor=t,this.backgroundColorAnnotation=new O(t)}get backgroundColor(){return this._backgroundColor}set border(t){this._border=t,this.borderColorAnnotation=new O(null==t?void 0:t.color)}get border(){return this._border}clone(){return new H({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}toJSON(){return{tableCell:a({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing})}}renderStyle(t){const e=this.backgroundColorAnnotation.renderStyle().color,s={padding:this.padding,border:this.borderStr,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing};return e&&(s.backgroundColor=e),a((null==t?void 0:t.standalone)?s:this.removeDefaultValues(s),{cleanEmptyString:!0})}renderClass(){return null}removeDefaultValues(t){const e=Object.assign({},t);return e.padding===H.DEFAULT_PADDING&&delete e.padding,e.border===`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${H.DEFAULT_BORDER.color}`&&delete e.border,e.textAlign===H.DEFAULT_HORIZONTAL_TEXT_ALIGN&&delete e.textAlign,e.verticalAlign===H.DEFAULT_VERTICAL_TEXT_ALIGN&&delete e.verticalAlign,e.minWidth===H.DEFAULT_CELL_MIN_WIDTH&&delete e.minWidth,e.boxSizing===H.DEFAULT_BOX_SIZING&&delete e.boxSizing,e}}H.DEFAULT_PADDING="12px",H.DEFAULT_BORDER={style:"solid",width:"1px",color:"#ddd"},H.DEFAULT_BORDER_RGB_COLOR="rgb(221, 221, 221)",H.DEFAULT_HORIZONTAL_TEXT_ALIGN="left",H.DEFAULT_VERTICAL_TEXT_ALIGN="middle",H.DEFAULT_CELL_MIN_WIDTH="55px",H.DEFAULT_BOX_SIZING="border-box";class RTETableCellBlock extends e{constructor(t,e){super(t),this.type="table-cell",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new H)}static from(t,e){var s;const n=new RTETableCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...H.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}get rowSpan(){const t=this.getCustomAttributeByName("rowspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}get colSpan(){const t=this.getCustomAttributeByName("colspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<td${super.generateAttributeString(t)}>${e}</td>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCustomAttributeByName(t){const e=this.getCustomAttributesAnnotation();if(e)return(e.toJSON().customAttribute||{})[t]}}class j extends H{constructor(t={},e=!0){super(t,e)}static from(t,e){return[m.CELL,new j(t,e)]}static getDefaultBackgroundColor(){return l.isDarkMode()?R.dark:R.light}clone(){return new j({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}renderStyle(t){var e;const s=super.renderStyle(t);return a(Object.assign(Object.assign({},s),{backgroundColor:null!==(e=s.backgroundColor)&&void 0!==e?e:j.getDefaultBackgroundColor()}))}}class RTETableHeadCellBlock extends RTETableCellBlock{constructor(t,e){super(t,e),this.type="table-head-cell";const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new j)}static from(t,e){var s;const n=new RTETableHeadCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...j.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableHeadCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<th${super.generateAttributeString(t)}>${e}</th>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}const F="MERGE_CELLS";class $ extends s{constructor(t,e,s,n,r){super(),this.type="MERGE_CELLS",this.isFlushable=!0,this.targetCell=t,this.mergeCells=e,this.colSpan=s,this.rowSpan=n,this.direction=r}}var P,W;!function(t){t.MERGE_CELLS="MERGE_CELLS",t.MERGE_CELL_UP="MERGE_CELL_UP",t.MERGE_CELL_RIGHT="MERGE_CELL_RIGHT",t.MERGE_CELL_DOWN="MERGE_CELL_DOWN",t.MERGE_CELL_LEFT="MERGE_CELL_LEFT"}(P||(P={}));class G extends B{canHandle(t){return t[0]===k.MERGE_CELLS}execute(t,e){const s=e.tableSelection.getSelectedCells(),n=t[1];switch(n){case P.MERGE_CELL_UP:case P.MERGE_CELL_RIGHT:case P.MERGE_CELL_DOWN:case P.MERGE_CELL_LEFT:{const t=this.getDirectionMergeCells(n,s[0]);this.handleMergeCells(t,n)}break;default:s.length>1&&this.handleMergeCells(s,P.MERGE_CELLS)}}getDirectionMergeCells(t,e){const s=Q(e,t);if(!s)return[e];switch(t){case P.MERGE_CELL_UP:return[s,e];case P.MERGE_CELL_DOWN:return[e,s];case P.MERGE_CELL_LEFT:return[s,e];default:return[e,s]}}handleMergeCells(t,e){if(t.length<2)return;const s=tt(t),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:a}=s,l=new $(a,t,i-o+1,r-n+1,e);this.applyActionOnTable(l,a)}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}function U(t,e){return t?t instanceof e?t:U(t.parent,e):null}function V(t,e){return{id:E(),type:"table-body",children:Array.from({length:t},(()=>function(t){return{id:E(),type:"table-row",children:Array.from({length:t},(()=>Y("table-cell")))}}(e)))}}function J(t){return t.children.filter((t=>t instanceof RTETableBodyBlock||t instanceof RTETableHeadBlock)).flatMap((t=>t.children))}function K(t){if(!t||!t.children||!t.children[0])return null;const e=t.children[0];return e instanceof o?e:K(e)}function z(t,e){for(const s of t){const t=s.children.find((t=>t.id===e));if(t)return t}return null}function Y(t){const e=E();return{id:e,type:t,children:[{id:`${e}-p`,type:"paragraph",nodes:[{id:`${e}-p-t`,type:"text",text:""}]}]}}function X(t){return{colSpan:t.colSpan,rowSpan:t.rowSpan}}function Z(t,e,s){const n=null!=s?s:q(e);for(let e=0;e<n.length;e++){const s=n[e];for(let e=0;e<s.length;e++)if(s[e]===t.id)return e}return-1}function q(t){const e=[];return t.forEach(((t,s)=>{e[s]||(e[s]=[]);let n=0;t.children.forEach((t=>{const{colSpan:r,rowSpan:o}=X(t);for(;void 0!==e[s][n];)n++;for(let i=0;i<o;i++)for(let o=0;o<r;o++)e[s+i]||(e[s+i]=[]),e[s+i][n+o]=t.id;n+=r}))})),e}function Q(t,e){if(!t)return null;const s=t.parent,n=s.parent.children,r=n.indexOf(s),{colSpan:o,rowSpan:i}=X(t),a=Z(t,n);let l=r,c=a;switch(e){case P.MERGE_CELL_LEFT:c=a-1;break;case P.MERGE_CELL_RIGHT:c=a+o;break;case P.MERGE_CELL_UP:l=r-1;break;default:l=r+i}return function(t,e,s){const n=q(t);for(let r=0;r<t.length;r++){const o=t[r];for(const i of o.children){const{colSpan:o,rowSpan:a}=X(i),l=Z(i,t,n),c=r+a-1,h=l+o-1,u=s>=l&&s<=h;if(e>=r&&e<=c&&u)return i}}return null}(n,l,c)}function tt(t){const e=t[0].parent.parent.children,s=q(e);let n=Number.POSITIVE_INFINITY,r=-1,o=Number.POSITIVE_INFINITY,i=-1;const a=new Set;return t.forEach((t=>{const l=e.indexOf(t.parent),c=Z(t,e,s),{colSpan:h,rowSpan:u}=X(t),d=l,E=l+u-1,T=c,p=c+h-1;for(let t=d;t<=E;t++)for(let e=T;e<=p;e++)a.add(`${t},${e}`);n=Math.min(n,d),r=Math.max(r,E),o=Math.min(o,T),i=Math.max(i,p)})),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:t[0],coveredPositions:a}}function et(t){let e=0;const s=J(t)[0];for(const t of s.children){const{colSpan:s}=X(t);e+=s}return e}function st(t){if(1===t.length)return!0;const e=tt(t),{minRow:s,maxRow:n,minCol:r,maxCol:o,coveredPositions:i}=e;return i.size===(n-s+1)*(o-r+1)}function nt(t,e,s,o,i){const a=t.annotationMap.get(n.CUSTOM_ATTRIBUTE),l=a?Object.assign({},a.customAttribute):{};delete l.colspan,delete l.rowspan,e>1&&(l.colspan=String(e));const c=et(o)+(i?1:0);if(s>1&&e!==c&&(l.rowspan=String(s)),Object.keys(l).length>0){const e=new r(l);t.annotationMap.set(n.CUSTOM_ATTRIBUTE,e)}else t.annotationMap.delete(n.CUSTOM_ATTRIBUTE)}function rt(t){const e=Y(t);return"table-head-cell"===t?RTETableHeadCellBlock.from(e):RTETableCellBlock.from(e)}function ot(t,e,s){for(let n=0;n<s;n++){const s=t[n],r=e.children.find((t=>t.id===s));if(r&&!(r instanceof RTETableHeadCellBlock))return n}return-1}function it(t){const e=new Map;return t.forEach((t=>{for(let s=0;s<t.length;s++){const n=t[s];n&&!e.has(n)&&e.set(n,s)}})),e}function at(t,e,s,n){if(0===t.length)return[0,-1];const r=s||J(e),o=null!=n?n:q(r);let i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const e=Z(t,r,o);i=Math.min(i,e),a=Math.max(a,e)})),[i,a]}!function(t){t.HEADER_ROW="HEADER_ROW",t.ADD_ROW_ABOVE="ADD_ROW_ABOVE",t.ADD_ROW_BELOW="ADD_ROW_BELOW",t.DELETE_ROW="DELETE_ROW",t.SELECT_ROW="SELECT_ROW"}(W||(W={}));class lt extends B{canHandle(t){return t[0]===k.ROW}execute(t,e){const s=t[1];switch(s){case W.ADD_ROW_ABOVE:case W.ADD_ROW_BELOW:this.handleInsertRow(s,e);break;case W.DELETE_ROW:this.handleDeleteRow(e);break;case W.HEADER_ROW:this.handleToggleHeader(e);break;case W.SELECT_ROW:this.handleSelectRow(e)}}handleInsertRow(t,e){const s=this.getAllSelectedRows(e);if(s.length>0){const e=t===W.ADD_ROW_ABOVE?D.ABOVE:D.BELOW,n=e===D.ABOVE?s[0]:s[s.length-1],r=n.parent instanceof RTETableBodyBlock,o=this.shouldInsertHeaderRow(n,e)||r?new v(e,s):new N(e,s);this.applyActionToTable(s[0],o)}}shouldInsertHeaderRow(t,e){if(e===D.ABOVE)return t.parent instanceof RTETableHeadBlock;{const e=t.parent;return e instanceof RTETableHeadBlock&&e.children[e.children.length-1]!==t}}handleDeleteRow(t){const e=this.getAllSelectedRows(t);if(e.length){const t=new S(e);this.applyActionToTable(e[0],t)}}handleToggleHeader(t){const e=this.getAllSelectedRows(t);if(e.length>0){const t=new x(e);this.applyActionToTable(e[0],t)}}handleSelectRow(t){const e=this.getAllSelectedRows(t);if(e.length>0&&t&&t.tableSelection){const s=e.flatMap((t=>t.children));t.tableSelection.setSelectedCells(s)}}getAllSelectedRows(t){const e=new Set;if(t&&t.tableSelection){const{tableSelection:s}=t;s.getSelectedCells().forEach((t=>{const s=U(t,RTETableRowBlock);s&&e.add(s)}))}return Array.from(e)}applyActionToTable(t,e){const s=U(t,RTETableBlock);s&&s.apply(e)}}const ct="REPLACE_TABLE_CELL";class ht extends s{constructor(t){super(),this.isFlushable=!0,this.type="REPLACE_TABLE_CELL",this.payload=t}}const ut="SPLIT_TABLE_CELL";class dt extends s{constructor(t){super(),this.isFlushable=!0,this.type="SPLIT_TABLE_CELL",this.payload=t}}class Et extends i{getBoundaryCellColumnRange(t,e,s){let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const o=Z(t,e,s);n=Math.min(n,o),r=Math.max(r,o)})),[n,r]}}class Tt extends Et{static isFullHeaderSelection(t){if(0===t.length)return!1;const e=U(t[0],RTETableBlock);if(e){const s=J(e),n=q(s),r=new Map;s.forEach((t=>{t.children.forEach((t=>r.set(t.id,t)))}));const[o,i]=at(t,e,s,n);for(const t of n)for(let e=o;e<=i;e++){const s=r.get(t[e]);if(s&&!(s instanceof RTETableHeadCellBlock))return!1}return!0}return!1}handleAction(t,e){const s=t.headerOn,n=J(e),r=q(n),[o,i]=this.getBoundaryCellColumnRange(t.tableCellHeaderRange,n,r);(s||!s&&o>0)&&this.toggleHeadRows(e,n,r,s,i,o),this.toggleBodyRows(e,n,r,s,o,i);const a=this.getRootContent(e);if(a&&t.tableCellHeaderRange[0].parent){const e=t.tableCellHeaderRange[0].parent.getFirstNode();e&&a.apply(new T(e,0))}}toggleHeadRows(t,e,s,n,r,o){var i;const a=((null===(i=t.children.find((t=>t instanceof RTETableHeadBlock)))||void 0===i?void 0:i.children)||[]).length;for(let i=0;i<a;i++)this.toggleCellType(t,e[i],s[i],0,n?r:o-1,(()=>!0),(t=>RTETableHeadCellBlock.from(t.toJSON())))}toggleBodyRows(t,e,s,n,r,o){var i;const a=s[0].length,l=(null===(i=t.children.find((t=>t instanceof RTETableBodyBlock)))||void 0===i?void 0:i.children)||[],c=e.length-l.length;for(let i=0;i<l.length;i++){const l=i+c,h=e[l],u=s[l],d=ot(u,h,a);n?d>-1&&this.toggleCellType(t,h,u,d,o,(t=>!(t instanceof RTETableHeadCellBlock)),(t=>RTETableHeadCellBlock.from(t.toJSON()))):this.toggleCellType(t,h,u,r,-1===d?a-1:d-1,(t=>t instanceof RTETableHeadCellBlock),(t=>RTETableCellBlock.from(t.toJSON())))}}toggleCellType(t,e,s,n,r,o,i){for(let a=n;a<=r;a++){const n=s[a],l=e.children.find((t=>t.id===n));if(l&&o(l)){const o=s.indexOf(n),c={table:t,cell:l,col:a,cellStartCol:o,endCol:r,targetCellType:i(l).type},h=o+l.colSpan-1;if(h>r||o<a){if(e.apply(new dt(c)),h>r)return;a=h;continue}e.apply(new ht(c))}l&&(a+=l.colSpan-1)}}}const pt="DELETE_TABLE_COLUMN";class bt extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_COLUMN",this.tableCellDeleteRange=t}}const ft="INSERT_TABLE_COLUMN";var Ct;!function(t){t.LEFT="LEFT",t.RIGHT="RIGHT"}(Ct||(Ct={}));class Lt extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="INSERT_TABLE_COLUMN",this.tableCellInsertRange=e,this.insertDirection=t}}const gt="SELECT_TABLE_COLUMN";class Rt extends s{constructor(t,e){super(),this.type="SELECT_TABLE_COLUMN",this.tableCellSelectRange=t,this.selectCellCallback=e}}const _t="TOGGLE_HEADER_TABLE_COLUMN";class Ot extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_TABLE_COLUMN",this.headerOn=!1,this.tableCellHeaderRange=t,this.headerOn=e}}var mt;!function(t){t.HEADER_COLUMN="HEADER_COLUMN",t.ADD_COLUMN_LEFT="ADD_COLUMN_LEFT",t.ADD_COLUMN_RIGHT="ADD_COLUMN_RIGHT",t.DELETE_COLUMN="DELETE_COLUMN",t.SELECT_COLUMN="SELECT_COLUMN"}(mt||(mt={}));class kt extends B{canHandle(t){return t[0]===k.COLUMN}execute(t,e){const s=e.tableSelection.getSelectedCells();if(!s||0===s.length)return;const n=t[1];switch(n){case mt.ADD_COLUMN_LEFT:case mt.ADD_COLUMN_RIGHT:this.handleInsertColumn(n,s);break;case mt.DELETE_COLUMN:this.handleDeleteColumn(s);break;case mt.SELECT_COLUMN:this.handleSelectColumn(s,e);break;case mt.HEADER_COLUMN:this.handleToggleHeaderColumn(s)}}handleInsertColumn(t,e){const s=new Lt(t===mt.ADD_COLUMN_LEFT?Ct.LEFT:Ct.RIGHT,e);this.applyActionOnTable(s,e[0])}handleDeleteColumn(t){const e=new bt(t);this.applyActionOnTable(e,t[0])}handleSelectColumn(t,e){const s=new Rt(t,(t=>{e.tableSelection.setSelectedCells(t)}));this.applyActionOnTable(s,t[0])}handleToggleHeaderColumn(t){const e=!Tt.isFullHeaderSelection(t),s=new Ot(t,e);this.applyActionOnTable(s,t[0])}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}const At="SPLIT_CELL_HORIZONTALLY";class Bt extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_HORIZONTALLY"}}const wt="SPLIT_CELL_VERTICALLY";class St extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_VERTICALLY"}}var yt;!function(t){t.SPLIT_CELL_HORIZONTALLY="SPLIT_CELL_HORIZONTALLY",t.SPLIT_CELL_VERTICALLY="SPLIT_CELL_VERTICALLY"}(yt||(yt={}));class Nt extends B{canHandle(t){return t[0]===k.SPLIT_CELL}execute(t,e){const s=e.tableSelection.getSelectedCells();if(s&&1===s.length){const e=s[0];switch(t[1]){case yt.SPLIT_CELL_HORIZONTALLY:this.handleSplitCellHorizontally(e);break;case yt.SPLIT_CELL_VERTICALLY:this.handleSplitCellVertically(e)}}}handleSplitCellHorizontally(t){const e=new Bt;t.apply(e)}handleSplitCellVertically(t){const e=new St;t.apply(e)}}export{at as $,RTETableRowBlock as A,Z as B,kt as C,D,g as E,y as F,M as G,w as H,Ct as I,I as J,ft as K,pt as L,G as M,_t as N,Tt as O,ut as P,ct as Q,m as R,B as S,k as T,At as U,C as V,wt as W,gt as X,F as Y,L as Z,mt as _,R as a,W as a0,yt as a1,st as a2,Q as a3,A as b,H as c,RTETableHeadCellBlock as d,lt as e,Nt as f,_ as g,RTETableBlock as h,V as i,RTETableCellBlock as j,RTETableHeadBlock as k,RTETableBodyBlock as l,U as m,j as n,Et as o,J as p,q,z as r,nt as s,Y as t,it as u,et as v,K as w,X as x,rt as y,P as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,M as s,V as e}from"./p-6e1ab235.js";import{O as i}from"./p-331a62d5.js";import{C as o}from"./p-2d0d575f.js";import{f as a}from"./p-
|
|
1
|
+
import{c as t,M as s,V as e}from"./p-6e1ab235.js";import{O as i}from"./p-331a62d5.js";import{C as o}from"./p-2d0d575f.js";import{f as a}from"./p-ec2a1d4c.js";import{d as c}from"./p-11e2dcf5.js";import{j as n,k as l}from"./p-3a93730e.js";var h=function(t,s,e,i){var o,a=arguments.length,c=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,e,i);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(c=(a<3?o(c):a>3?o(s,e,c):o(s,e))||c);return a>3&&c&&Object.defineProperty(s,e,c),c};class r extends e{constructor(t){super(),this.isAcceptableObserverPayload=t=>"object"==typeof t&&!!t&&t.host===this.parent,this.observerEntry=t}connectedCallback(){if(this.parent=this.getParent(),!this.parent)return;const{subStates:t}=this.observerEntry;this.subStateObserver=new i(this.isAcceptableObserverPayload,(s=>{const e=t.find((t=>t.parentStateName===s.stateName));e&&this.updateState(e,s.value)})),o.register(c.getSubject(this.parent,n),this.subStateObserver),this.observerEntry.pullStatesWhenReattached&&this.host.classList.contains("hydrated")&&(this.parent=this.getParent(),this.pullStates())}disconnectedCallback(){this.parent&&o.unregister(c.getSubject(this.parent,n),this.subStateObserver)}componentWillLoad(){this.pullStates()}getParent(){return"string"==typeof this.observerEntry.parent?a(this.host,this.observerEntry.parent):this.observerEntry.parent()}updateState(t,s){t.callback?t.callback(s):this[t.subStateName]=s}pullStates(){if(!this.parent)return;const{subStates:t}=this.observerEntry;t.forEach((t=>{o.notify(c.getSubject(this.parent,l),{host:this.parent,stateName:t.parentStateName,callback:s=>{this.updateState(t,s)}})}))}}h([t()],r.prototype,"host",void 0),h([s("connectedCallback")],r.prototype,"connectedCallback",null),h([s("disconnectedCallback")],r.prototype,"disconnectedCallback",null),h([s("componentWillLoad")],r.prototype,"componentWillLoad",null);export{r as S}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as t}from"./p-2d0d575f.js";import{O as s}from"./p-331a62d5.js";import{b as e}from"./p-
|
|
1
|
+
import{C as t}from"./p-2d0d575f.js";import{O as s}from"./p-331a62d5.js";import{b as e}from"./p-ec2a1d4c.js";class i{constructor(t,s){this.title=t,this.host=s}getDescription(){return`, this is a dom nodes subject of ${this.title}.(class name:${this.host.className}, id:${this.host.id})`}}const r=new class{constructor(){this.cache=new Map}getSubject(t,s){return this.isExist(t,s)?this.cache.get(t).get(s):this.setSubject(t,s)}isExist(t,s){return!!t&&this.cache.has(t)&&void 0!==this.cache.get(t)&&this.cache.get(t).has(s)}getSubjectFromParentNodeByEventId(t,s){let i;for(const r of this.cache)if(e(t,r[0])&&r[1].has(s)){i=r[1].get(s);break}return i}setSubject(t,s){const e=`${t.tagName}:${s.getName()}`,r=new i(e,t);return this.cache.get(t)||this.cache.set(t,new Map),this.cache.get(t).set(s,r),r}},o=()=>!0;class n{static addUniqueObserverToNode(e,i,c,a){if(e){const h=new s("function"==typeof a?a.bind(null):o,c);n.removeUniqueObserverFromNode(e,i),t.register(r.getSubject(e,i),h)}}static removeUniqueObserverFromNode(s,e){r.isExist(s,e)&&t.clearObserversBySubject(r.getSubject(s,e))}}export{n as D,r as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as
|
|
1
|
+
import{r as t,h as i,H as e,g as s}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as n,I as a}from"./p-8ce9e214.js";var h=function(t,i,e,s){var o,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(i,e,n):o(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const l=class{constructor(i){t(this,i),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new n,this.dot=!1,this.color="bg-danger",this.count=0,this.offset=[0,0]}render(){return o(i(e,null,i("div",{class:{dot:this.count>0&&this.dot,counter:this.count>0&&!this.dot,"multi-digit":this.count>=10&&!this.dot,"v-bg-danger":"bg-action"!=this.color,"v-bg-action":"bg-action"==this.color,"default-position":this.count>0},style:{right:-this.offset[0]+"px",top:`${this.offset[1]}px`}},this.renderCounter()),i("slot",null)),this.host)}renderCounter(){if(this.count>0&&!this.dot)return i("span",null,this.count>99?"99+":this.count)}get host(){return s(this)}};h([a()],l.prototype,"globalSlimmers",void 0),h([r()],l.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),l.style=':host{display:block;position:relative;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .dot{display:inline-block;position:absolute;border-radius:9999px;width:9px;height:9px}:host .counter{display:flex;position:absolute;height:20px;min-width:20px;border-radius:9999px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));justify-content:center;align-items:center;font-family:"Inter", sans-serif;font-weight:700;font-size:12px;line-height:15px}:host .default-position{top:0px;right:0px;transform:scale(1) translate(50%, -50%)}:host .multi-digit{padding-left:4px;padding-right:4px}:host .v-bg-danger{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}:host .v-bg-action{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}';export{l as vega_counter_badge}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,M as e}from"./p-6e1ab235.js";import{a9 as s,c as i,
|
|
1
|
+
import{c as t,M as e}from"./p-6e1ab235.js";import{a9 as s,c as i,ad as n,ag as o,k as r,s as a,d as c,i as h,G as d,E as f}from"./p-a2b8d49d.js";import{d as l}from"./p-1bc5b3bc.js";import{g as u}from"./p-519a7d55.js";import{C as p}from"./p-2d0d575f.js";import{d as m,D as O}from"./p-11e2dcf5.js";import{e as b,c as g}from"./p-3a93730e.js";import{O as w}from"./p-331a62d5.js";import{R as v}from"./p-72e2a587.js";import{A as C}from"./p-4d65756f.js";import{i as N}from"./p-ec2a1d4c.js";import{K as S}from"./p-296c5e52.js";let j=!1;class y{constructor(){this.rangeCount=0,this.ranges=[]}getRangeAt(t){return this.ranges[t]}addRange(t){if(this.ranges.push(t),this.rangeCount=this.ranges.length,!j){const e=window.getSelection();e.removeAllRanges(),e.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}}removeAllRanges(){this.ranges=[],this.rangeCount=0}}const R=new class{constructor(){this.supportShadowSelection="function"==typeof window.ShadowRoot.prototype.getSelection,this.supportBeforeInput="function"==typeof window.InputEvent.prototype.getTargetRanges,this.isFirefox=window.navigator.userAgent.toLowerCase().indexOf("firefox")>0,this.listen()}getSelection(t){return this.supportShadowSelection?t.getSelection():this.isFirefox?this.getFirefoxSelection():this.polyfilledShadowSelection}getFirefoxSelection(){const t=document.getSelection();if(t.rangeCount>0){const e=t.getRangeAt(0),s=e.startContainer,i=e.endContainer;if(s!==i&&s.textContent.length===e.startOffset){const t=s.nodeType===Node.TEXT_NODE?s.parentNode.nextSibling:s.nextSibling;e.setStart(t.firstChild,0)}if(i!==s&&0===e.endOffset){const t=i.nodeType===Node.TEXT_NODE?i.parentNode.previousSibling:i.previousSibling;e.setEnd(t.lastChild,t.lastChild.textContent.length)}}return t}listen(){this.isFirefox||this.supportShadowSelection||!this.supportBeforeInput||(this.polyfilledShadowSelection=new y,window.addEventListener("selectionchange",(()=>{if(!j){j=!0;const t=u();t&&t.hasAttribute("contenteditable")?document.execCommand("indent"):this.polyfilledShadowSelection.removeAllRanges(),j=!1}}),!0),window.addEventListener("beforeinput",(t=>{if(j){const e=t.getTargetRanges()[0],s=new Range;s.setStart(e.startContainer,e.startOffset),s.setEnd(e.endContainer,e.endOffset),this.polyfilledShadowSelection.removeAllRanges(),this.polyfilledShadowSelection.addRange(s),t.preventDefault(),t.stopImmediatePropagation()}}),!0))}};class k{constructor(t){this.range=t}clone(){const t=this.range.clone();return new k(t)}}var x=function(t,e,s,i){var n,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,s,r):n(e,s))||r);return o>3&&r&&Object.defineProperty(e,s,r),r};class D extends C{constructor(){super(1),this.currentRange=new v,this.handleSelectionWithDebounce=l(this.handleSelectionChange,D.SELECTION_CHANGE_DEBOUNCE_TIME,this),this.pendingRestoreSelectionNodes=[],this.doTask=async()=>{await Promise.resolve();const t=this.currentRange.toNativeRange();t&&this.setSelectionRange(t)}}connectedCallback(){this.registerSelectionRangeChangeObserver()}disconnectedCallback(){p.unregister(m.getSubject(this.host,b),this.selectionRangeChangeObserver),O.removeUniqueObserverFromNode(this.host,g)}componentDidLoad(){document.addEventListener("selectionchange",this.handleSelectionWithDebounce),this.registerUpdateCaretPositionObserver()}watchValueUpdate(){this.prepareRestoreSelectionState(),this.restoreSelection()}getCurrentRange(){return this.currentRange}getSelectedNodes(){return Array.from(this.selectionMap.values()).flat()}setSelectedNodes(t,e){this.clearSelectionMap(),this.addNodesToSelectionMap(t),e&&(this.currentRange=this.currentRange.updateRTERange(e))}getSelectedBlocks(){return Array.from(this.selectionMap.keys())}setSelectionState(t){this.selectionState=t}enqueueSelectionRangeFutureState(t,e,i,n,o=!1){t instanceof s?this.internalCodeBlockSelectionController.enqueueSelectionRangeFutureState(t,e,o):(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:i=i||t,startOffset:e,endOffset:n=n||0===n?n:e}),super.enqueueTheTaskIntoQueue(o))}setSelectionRange(t){const e=this.getSelection();e&&(e.removeAllRanges(),e.addRange(t),this.saveSelection())}getSelection(){const t=this.vegaRichTextEditorRenderer.getRichTextContentRef();return R.getSelection(t.shadowRoot)}saveSelection(){const t=this.getSelection();if(t&&t.rangeCount>0&&0===this.autoRunTaskQueue.queue.length&&!this.insertCompositionTextController.isComposing()){const e=t.getRangeAt(0),{startContainer:s,endContainer:i,startOffset:n,endOffset:o}=e;this.currentRange=this.currentRange.updateRTERange({startNode:s,endNode:i,startOffset:n,endOffset:o},e)}}restoreSelection(){if(this.selectionState){const{startNode:t,endNode:e,startOffset:s,endOffset:o}=this.selectionState.range;t instanceof i&&t===e&&0===t.text.length?this.enqueueSelectionRangeFutureState(t,n.length):t===e&&t instanceof i&&!t.isContentEditable()||this.enqueueSelectionRangeFutureState(t,s,e,o),this.selectionState=null}}handleSelectionChange(){if(this.disabled||this.sourceView)return;this.clearSelectionMap();const t=this.getSelection();if(!t||0===t.rangeCount)return;this.saveSelection();const e=t.getRangeAt(0),s=[],i=t=>{if(e.intersectsNode(t)){if(t.nodeType===Node.TEXT_NODE){const e=a.getEntityByDOM(t.parentElement);if(e instanceof h)return void s.push(e)}if(N(t)){const i=d.isDecoratorNodeContainerElement(t)?d.getDecoratorNodeElement(t):t,n=a.getEntityByDOM(i);if(n instanceof f)return void(this.internalCodeBlockSelectionController.isCodeBlockSelected(n,e)&&s.push(n.children[0]));if(n instanceof h)return void s.push(n);if(n instanceof c&&e.collapsed)return void this.tryToFindTheNearestSelectedNode(e,s)}t.childNodes.forEach(i)}};i(e.commonAncestorContainer),this.addNodesToSelectionMap(s),this.getSelectedNodes().forEach((t=>t.apply(new o(e))))}addNodesToSelectionMap(t){t.forEach((t=>{this.selectionMap.has(t.parent)?this.selectionMap.get(t.parent).push(t):this.selectionMap.set(t.parent,[t])}))}clearSelectionMap(){this.getSelectedNodes().filter((t=>"CODE_BLOCK_NODE"!==t.type)).forEach((t=>{t.annotationMap.delete(r.SELECTION_RANGE)})),this.selectionMap=new Map}isAcceptableSelectionRangeChange(){return!0}registerSelectionRangeChangeObserver(){this.selectionRangeChangeObserver=new w(this.isAcceptableSelectionRangeChange.bind(this),(t=>{t.updateDirectly?this.enqueueSelectionRangeFutureState(t.node,t.offset):this.pendingRestoreSelectionNodes.push(t.node)})),p.register(m.getSubject(this.host,b),this.selectionRangeChangeObserver)}prepareRestoreSelectionState(){if(this.pendingRestoreSelectionNodes.length>0){const t=this.pendingRestoreSelectionNodes[0],e=this.pendingRestoreSelectionNodes.length>1?this.pendingRestoreSelectionNodes[this.pendingRestoreSelectionNodes.length-1]:t,{startOffset:s,endOffset:i,endContainer:n,startContainer:o}=this.currentRange;o&&a.getDOMByEntity(t)===o.parentElement&&n&&a.getDOMByEntity(e)===n.parentElement?(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:e,startOffset:s,endOffset:i}),this.selectionState=new k(this.currentRange)):(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:e,startOffset:0,endOffset:e.getRangeEndOffset()}),this.selectionState=new k(this.currentRange)),this.pendingRestoreSelectionNodes=[]}}registerUpdateCaretPositionObserver(){O.addUniqueObserverToNode(this.host,g,(t=>{const{node:e,updateDirectly:s}=t,i="number"==typeof t.offset?t.offset:e.getRangeEndOffset();this.enqueueSelectionRangeFutureState(e,i,e,i,s)}))}tryToFindTheNearestSelectedNode(t,e){const{startContainer:s,startOffset:i,collapsed:n}=t;if(0===e.length&&N(s)&&n){const n=a.getEntityByDOM(s);if(n instanceof c&&n.children.length>=i){const s=this.detectNearestElement(n,i);if(s){const{startNode:i,startOffset:n}=s;e.push(i),this.currentRange=this.currentRange.updateRTERange({startNode:i,endNode:i,startOffset:n,endOffset:n},t)}else this.selectionMap.set(n,[])}}}detectNearestElement(t,e){if(t.children){const s=t.children[e],i=t.children[e-1];if(s&&s instanceof h)return{startNode:s,startOffset:0};if(i&&i instanceof h)return{startNode:i,startOffset:i.getRangeEndOffset()}}}}D.SELECTION_CHANGE_DEBOUNCE_TIME=50,x([t()],D.prototype,"vegaRichTextEditorRenderer",void 0),x([t({writable:!0})],D.prototype,"selectionMap",void 0),x([t()],D.prototype,"host",void 0),x([t()],D.prototype,"value",void 0),x([t()],D.prototype,"disabled",void 0),x([t()],D.prototype,"sourceView",void 0),x([t()],D.prototype,"valueController",void 0),x([t()],D.prototype,"insertCompositionTextController",void 0),x([t()],D.prototype,"historyController",void 0),x([t()],D.prototype,"internalCodeBlockSelectionController",void 0),x([e("connectedCallback")],D.prototype,"connectedCallback",null),x([e("disconnectedCallback")],D.prototype,"disconnectedCallback",null),x([e("componentDidLoad")],D.prototype,"componentDidLoad",null),x([e("watchValueUpdate")],D.prototype,"watchValueUpdate",null);class E extends S{constructor(){super((()=>this.getKeyboardShortcutOptions.call(this))),this.redoStack=[],this.undoStack=[],this.registerHistoryDelay=300,this.registerHistoryDebounced=l((t=>{this.internalRegisterHistory(t)}),this.registerHistoryDelay,this)}registerHistory(t,e=!1){e?this.internalRegisterHistory(t):this.registerHistoryDebounced(t)}internalRegisterHistory(t){this.redoStack=[],this.undoStack.push(t)}getKeyboardShortcutOptions(){const t={keyCode:"KeyZ",activeElementInScope:this.getEffectiveTargets(),activeElementOutScope:this.getIneffectiveTargets.bind(this),eventName:"keydown",modifierPressed:!0};return[Object.assign(Object.assign({},t),{shiftKey:!1,callback:t=>{t.preventDefault(),this.undoStack.length>0&&this.undo()}}),Object.assign(Object.assign({},t),{shiftKey:!0,callback:t=>{t.preventDefault(),this.redoStack.length>0&&this.redo()}})]}}export{E as C,k as R,R as S,D as a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,F as t,r as i,c as o,H as n,g as a}from"./p-6b2342e0.js";import{s}from"./p-519a7d55.js";import{c as r,M as l,V as c,I as d}from"./p-6e1ab235.js";import{s as p}from"./p-6bd5c49b.js";import{V as h,I as f}from"./p-8ce9e214.js";import{P as v}from"./p-81dd00d0.js";import{e as u}from"./p-272440e8.js";import{F as g}from"./p-dcf162e9.js";import{l as m,m as x,f as b}from"./p-ec2a1d4c.js";import{V as C}from"./p-724df1f5.js";import{I as w}from"./p-781fd6e0.js";import{g as y}from"./p-49a2e141.js";import{I as j}from"./p-6399b5ed.js";import{c as k}from"./p-04a65b3f.js";import{R as O,S as R,T as S,a as L,U as H}from"./p-2927b7a1.js";import{C as I}from"./p-2bb5a232.js";import{D as A,d as z}from"./p-11e2dcf5.js";import{O as V,P as M,Q as N,R as E,S as _}from"./p-3a93730e.js";import{c as G}from"./p-341d5e4e.js";import{B as D}from"./p-7cd2b93b.js";import{V as W}from"./p-8aee6b74.js";import{c as U}from"./p-1ec763ab.js";import{c as B}from"./p-613ddaab.js";import{C as T}from"./p-2d0d575f.js";import{O as Z}from"./p-331a62d5.js";import{S as F}from"./p-10fa27d2.js";import{c as K}from"./p-2a9960c9.js";import{f as P}from"./p-19adf714.js";import"./p-b75ee3ba.js";import"./p-982747ef.js";import"./p-1704ff25.js";import"./p-9a6bd32c.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-262ec334.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-8077b117.js";import"./p-78ba7ca9.js";import"./p-d884c644.js";import"./p-0a261b66.js";import"./p-a528714c.js";import"./p-4dd02704.js";import"./p-4866e390.js";import"./p-f0e828d8.js";import"./p-fb5ea4b2.js";import"./p-a841cf13.js";import"./p-b02b985d.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-281fa1e0.js";var X=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class $ extends v{constructor(){super({callback:()=>{this.updateMainContentUI(this.openState)}}),this.isVoiceOverClick=!1,this.triggerElement=null,this.handleClickEvent=e=>{this.isVoiceOverClick=m(e)}}componentDidLoad(){!0===this.open?(this.openState="open",g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.add("disableAnimation")):this.openState="close",window.addEventListener("click",this.handleClickEvent,{capture:!0})}componentDidRender(){}async toggle(){"close"===this.openState?(this.triggerElement=document.activeElement,this.openState="open"):this.openState="close"}watchOpen(e){this.openState=e?"open":"close"}watchOpenState(e){this.updateMainContentUI(e),"open"===e?this.open=!0:(this.open=!1,g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.contains("disableAnimation")&&this.host.classList.remove("disableAnimation")),this.stateUpdateEventEmitter.emit(this.openState),"open"===e?this.focusFirstFocusableInDialog():this.focusFirstFocusableOutsideDialog()}watchShowAsOverlay(){this.updateMainContentUI(this.openState)}setOpenState(e){this.openState=e}focusFirstFocusableInDialog(){if(!this.isVoiceOverClick)return;const e=this.host,t=x(e);t&&u((()=>t.focus()),e,300)}focusFirstFocusableOutsideDialog(){var e;const t=this.triggerElement;this.triggerElement=null;const i=this.host;if(t&&t.isConnected)return void(null!==(e=x(t))&&void 0!==e?e:t).focus();const o=this.findFirstFocusableOutside(i);o&&o.focus()}findFirstFocusableOutside(e){const t=i=>{const o=Array.from(i.children);for(const i of o){if(i===e||e.contains(i))continue;if(i.contains(e)){const e=t(i);if(e)return e;continue}const o=x(i);if(o)return o}return null};return t(document.body)}updateMainContentUI(e){const t=document.querySelector("body"),i=document.querySelector("vega-left-nav + .vega-left-nav-content");"open"===e?(this.host.style.display="flex",setTimeout((()=>{this.host.classList.add("open"),i&&!this.backdropController.shouldShowBackdrop()?(null==t||t.classList.remove("vega-overflow-hidden"),i.classList.add("open")):(null==t||t.classList.add("vega-overflow-hidden"),i&&i.classList.remove("open"))}))):(this.host.classList.remove("open"),null==t||t.classList.remove("vega-overflow-hidden"),i&&i.classList.remove("open"),u((()=>{this.open||(this.host.style.display="none")}),this.host))}}X([r()],$.prototype,"host",void 0),X([r({writable:!0})],$.prototype,"open",void 0),X([r({writable:!0})],$.prototype,"openState",void 0),X([r()],$.prototype,"stateUpdateEventEmitter",void 0),X([r()],$.prototype,"backdropController",void 0),X([l("componentDidLoad")],$.prototype,"componentDidLoad",null),X([l("componentDidRender")],$.prototype,"componentDidRender",null),X([l("toggle")],$.prototype,"toggle",null),X([l("watchOpen")],$.prototype,"watchOpen",null),X([l("watchOpenState")],$.prototype,"watchOpenState",null),X([l("watchShowAsOverlay")],$.prototype,"watchShowAsOverlay",null);const Q=()=>e("div",{class:"header-footer-separator-container"},e("div",{class:"header-footer-separator"}));var q=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class J extends c{componentWillLoad(){this.hasHeaderSlot=!!this.host.querySelector('[slot="header-slot"]')}render(){return this.renderHeader()}renderHeader(){const{title:i,subtitle:o}=this.headerConfig;return e(t,null,e("div",{class:"header-container"},this.hasHeaderSlot?e("slot",{name:"header-slot"}):i?e("div",{class:"header-title"},i):this.renderHeaderLogo(),o&&e("div",{class:"header-subtitle"},o)),e(Q,null))}renderHeaderLogo(){return"gp"===this.currentBranding?e("vega-brand-logo",{name:"global-payments",size:"small"}):"genius"===this.currentBranding?e("vega-brand-logo",{name:"genius",size:"small"}):e("vega-icon",{icon:C.getIconKey("heartland-logo")})}}C.register({"heartland-logo":{icon:'<svg width="142" height="26" viewBox="0 0 142 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H5.38012V9.88886H14.7732V0H20.2857V24.7222H14.9056V13.9144H5.42422V24.7659H0V0ZM81.3186 0H86.4784V24.7222H81.3186V0ZM141.868 0.0435179H136.708C136.708 3.19395 136.708 6.38814 136.664 9.58233C135.959 8.53217 134.856 7.78833 133.666 7.48204C131.461 6.86946 129.079 7.35077 127.227 8.70716C125.727 9.97612 124.669 11.7264 124.317 13.6516C123.92 15.4894 123.92 17.4147 124.317 19.2962C124.669 21.1339 125.684 22.7966 127.182 23.8906C128.77 24.8969 130.667 25.2907 132.519 25.0282C134.283 24.8531 135.826 23.8468 136.664 22.2716C136.664 22.824 136.703 23.3764 136.742 23.9288C136.762 24.2077 136.782 24.4867 136.796 24.7656H142C141.912 23.5843 141.868 22.3591 141.868 21.1777V0.0435179ZM129.784 13.039C130.137 11.9889 130.976 10.9388 132.166 10.6762C133.357 10.3262 134.636 10.6762 135.518 11.5514C136.444 12.4702 136.753 13.8267 136.841 15.0956C136.885 16.7583 136.753 18.4648 135.959 19.9525C135.076 21.4839 132.916 22.2716 131.284 21.3964C130.094 20.7401 129.609 19.3399 129.388 18.071C129.124 16.3645 129.256 14.6581 129.784 13.039ZM70.3382 4.15601L75.4537 2.31827V7.52523H79.5991V10.9382H75.4537V17.1515C75.4096 18.1142 75.4537 19.0768 75.5859 20.0394C75.6742 20.5645 76.1152 21.0021 76.6443 21.1334C77.6146 21.3084 78.5847 21.3084 79.5549 21.1771V24.5026C77.7469 25.0276 75.8506 25.1589 73.9984 24.9401C72.94 24.8088 71.9258 24.3276 71.2202 23.5399C70.6028 22.7085 70.3382 21.7021 70.3823 20.6958C70.3382 15.1826 70.3382 9.66925 70.3382 4.15601ZM35.5 8.2703C33.6037 7.04514 31.3106 6.56382 29.1056 7.00138C26.9889 7.35143 25.1367 8.48907 23.946 10.2831C22.4907 12.3396 22.1379 14.9212 22.2261 17.3716C22.3584 19.4718 22.9758 21.7909 24.4752 23.3224C25.9746 24.8538 28.1795 25.3789 30.2522 25.4664C32.0603 25.5539 33.9124 25.1601 35.5441 24.3725C37.264 23.4099 38.3665 21.6158 38.4546 19.6469H33.7361C33.6037 20.2595 33.2509 20.8283 32.81 21.3095C32.2808 21.7471 31.6193 22.0097 30.9577 22.0097C29.8553 22.1409 28.7969 21.7471 28.0473 20.9158C27.2534 19.9094 27.077 18.5967 27.1211 17.4153H38.8515C38.9838 15.7963 38.8075 14.1774 38.4106 12.6021C37.9696 10.8519 36.9553 9.32044 35.5 8.2703ZM27.2975 14.1774C27.2975 13.1272 27.6503 12.1208 28.3118 11.2895C29.5025 9.93302 32.0603 10.0205 32.9864 11.5958C33.4274 12.3833 33.6037 13.3022 33.6037 14.1774H27.2975ZM42.5126 8.75203C44.056 7.39558 46.2169 7.00178 48.2014 6.95802C50.1859 6.91427 52.3908 7.30807 54.0225 8.62074C55.2131 9.5834 55.6983 11.1586 55.7865 12.6463C55.8368 13.696 55.8297 14.7314 55.8225 15.7689V15.769C55.8171 16.5478 55.8117 17.3278 55.8306 18.1158C55.8389 18.5271 55.8425 18.9415 55.8461 19.3576V19.3576C55.8618 21.1545 55.8777 22.982 56.2715 24.723H51.553C51.4206 23.9791 51.3766 23.1915 51.3766 22.4039C50.4504 23.8478 48.9069 24.8105 47.1871 25.0293C45.776 25.2043 44.3207 25.0293 42.9536 24.5042C41.7629 23.9353 40.8368 22.8852 40.484 21.5725C39.9548 19.8661 40.2635 18.0283 41.2778 16.5844C42.2921 15.3154 43.6592 14.4403 45.2468 14.0465C46.9417 13.606 48.6735 13.5686 50.3747 13.5319C50.5325 13.5285 50.6901 13.5251 50.8474 13.5214C50.8474 13.4493 50.8477 13.377 50.848 13.3045V13.3038V13.3032V13.3026C50.8514 12.4946 50.8548 11.662 50.4504 10.9399C49.6567 9.80219 48.1132 9.53961 46.9666 10.3273C46.8343 10.4148 46.7461 10.5023 46.6579 10.5898C46.2169 11.0711 45.9964 11.7274 46.0847 12.3838H41.0132C40.9691 11.0711 41.4983 9.71469 42.5126 8.75203ZM47.0989 17.0657C46.4374 17.2844 45.8641 17.7657 45.5113 18.3783C45.0263 19.4285 45.3349 20.6536 46.261 21.3537C47.5399 22.1851 49.2598 21.8351 50.0977 20.5661C50.8914 19.3847 50.8914 17.9408 50.8914 16.5844C49.6126 16.4531 48.2896 16.5844 47.0989 17.0657ZM96.1373 6.95649C94.1088 6.95649 91.9474 7.35029 90.4039 8.70676C89.3901 9.66934 88.8168 11.0258 88.8605 12.426H93.9322C93.844 11.7259 94.1525 10.982 94.6821 10.5007C95.7405 9.66934 97.2394 9.80063 98.1658 10.7633C98.7448 11.5023 98.742 12.5111 98.7395 13.428C98.7393 13.4882 98.7392 13.5481 98.7392 13.6074C96.7543 13.6074 94.7704 13.6511 92.8738 14.1762C91.3741 14.5701 90.0071 15.4451 89.0816 16.7141C87.9786 18.3331 87.8021 20.3458 88.5519 22.1398C89.037 23.3212 89.9634 24.2401 91.1538 24.6777C92.477 25.0714 93.844 25.2027 95.2109 25.0277C96.8863 24.8527 98.3424 23.7151 99.2679 22.4023C99.2679 23.19 99.3125 23.9338 99.4445 24.7214H104.119C103.671 22.7031 103.674 20.573 103.678 18.5029V18.5028V18.5016V18.5003C103.678 18.3274 103.678 18.1549 103.678 17.983C103.678 16.189 103.678 14.3513 103.634 12.5135C103.502 11.1133 103.061 9.58184 101.914 8.66297C100.326 7.35029 98.1658 6.95649 96.1373 6.95649ZM93.5354 18.1143C93.9322 17.5455 94.5493 17.1516 95.2554 16.9329C96.4013 16.5828 97.5925 16.4953 98.7392 16.5828L98.7394 16.7751C98.7413 18.0786 98.7434 19.4825 97.9447 20.6084C97.1074 21.8335 95.4311 22.1835 94.1525 21.396C93.0941 20.6521 92.8293 19.2081 93.5354 18.1143ZM112.982 7.74535C114.526 6.95774 116.334 6.73897 118.01 7.13276C119.641 7.43906 121.009 8.53297 121.671 10.0644C122.123 11.1017 122.163 12.221 122.204 13.3359L122.204 13.3364C122.214 13.6322 122.225 13.9276 122.243 14.2212V24.7226H116.952V13.2148C116.952 12.2522 116.379 11.3771 115.496 10.8958C113.953 10.1957 112.145 10.8083 111.351 12.2959C110.93 13.169 110.941 14.1409 110.951 15.0687V15.0698C110.952 15.2111 110.954 15.3514 110.954 15.4901V24.6789H105.75V13.4336C105.75 13.0309 105.752 12.6264 105.754 12.2206C105.761 10.5979 105.768 8.95287 105.662 7.30779H110.602L110.63 7.84104C110.664 8.49637 110.699 9.15749 110.734 9.84562C111.263 9.01425 112.057 8.27042 112.982 7.74535ZM68.8393 7.35106C67.5163 7.21979 66.1933 7.48232 65.0026 8.09491C64.0325 8.7075 63.3268 9.58258 62.8859 10.7202C62.8859 9.6286 62.8419 8.53696 62.798 7.44526L62.7977 7.43857H57.9467C58.1672 9.58258 58.2554 11.7704 58.2114 13.9144C58.2114 15.125 58.2065 16.3356 58.2016 17.5462C58.1918 19.9674 58.1819 22.3886 58.2114 24.8097H63.3268V15.8398C63.3268 14.7021 63.5915 13.3894 64.5617 12.6893C65.7965 11.8142 67.384 11.8142 68.8393 11.9454V7.35106Z" fill="#596063" /></svg>',autoSize:!0}}),q([r()],J.prototype,"host",void 0),q([r()],J.prototype,"headerConfig",void 0),q([r()],J.prototype,"currentBranding",void 0),q([l("componentWillLoad")],J.prototype,"componentWillLoad",null);var Y=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ee extends c{componentWillLoad(){this.hasFooterSlot=!!this.host.querySelector('[slot="footer-slot"]')}render(){return this.renderFooter()}renderFooter(){return(this.footnote||this.hasFooterSlot)&&e(t,null,e(Q,null),e("div",{class:"footer-container"},this.hasFooterSlot?e("slot",{name:"footer-slot"}):e("div",{class:"footer-footnote"},this.footnote)))}}Y([r()],ee.prototype,"host",void 0),Y([r()],ee.prototype,"footnote",void 0),Y([l("componentWillLoad")],ee.prototype,"componentWillLoad",null);var te=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ie extends c{watchOpenState(){this.updateZIndex()}updateZIndex(){const e=this.backdropController.getBackdrop();"open"==this.openState?(e&&w.setZIndex(e,"base"),w.setZIndex(this.host,"base")):u((()=>{e&&w.removeZIndex(e,"base"),w.removeZIndex(this.host,"base")}),this.host,300)}}te([r()],ie.prototype,"host",void 0),te([r()],ie.prototype,"openState",void 0),te([r()],ie.prototype,"backdropController",void 0),te([l("watchOpenState")],ie.prototype,"watchOpenState",null);var oe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ne extends v{constructor(){super({callback:()=>{this.updateBackdropUI(this.openState)}}),this.backdrop=null}connectedCallback(){this.backdrop&&this.backdrop.isConnected||(this.backdrop=this.createBackdrop())}disconnectedCallback(){this.backdrop&&this.backdrop.remove(),this.backdrop=null}watchOpenState(e){this.updateBackdropUI(e)}watchShowAsOverlay(){this.updateBackdropUI(this.openState)}getBackdrop(){return this.backdrop}shouldShowBackdrop(){return!(this.isLargeScreen()&&!this.showAsOverlay)}createBackdrop(){const e=document.createElement("vega-backdrop");return e.visible=!1,e.duration=150,e.addEventListener("vegaClick",(()=>{this.openStateController.setOpenState("close")})),document.body.append(e),e}updateBackdropUI(e){const t=document.querySelector("vega-left-nav + .vega-left-nav-content"),i=this.backdrop;i&&(i.visible="open"===e&&(!t||this.shouldShowBackdrop()))}isLargeScreen(){const e=y();return"L"==e||"XL"==e}}oe([r()],ne.prototype,"openState",void 0),oe([r()],ne.prototype,"showAsOverlay",void 0),oe([r()],ne.prototype,"openStateController",void 0),oe([l("connectedCallback")],ne.prototype,"connectedCallback",null),oe([l("disconnectedCallback")],ne.prototype,"disconnectedCallback",null),oe([l("watchOpenState")],ne.prototype,"watchOpenState",null),oe([l("watchShowAsOverlay")],ne.prototype,"watchShowAsOverlay",null);class ae extends c{render(){var t;return e("div",{class:"vega-nav-list-container"},(null===(t=this.source)||void 0===t?void 0:t.length)?this.renderListBySource():e("slot",null))}renderListBySource(){return e(t,null,this.source.map((i=>e(t,null,this.renderLeftNavSourceItem(i)))))}renderLeftNavSourceItem(e){return"section"==e.type?this.renderSection(e):"group"==e.type?this.renderGroup(e):this.renderLink(e)}renderSection(t){var i;return e("vega-left-nav-section",{itemKey:t.key,sectionHeader:t.sectionHeader},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderGroup(t){var i;return e("vega-left-nav-group",{itemKey:t.key,key:t.key||t.name,icon:t.icon,label:t.name,"open-by-default":t.openByDefault},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderLink(t){return e("vega-left-nav-link",{itemKey:t.key,key:t.key||t.name,icon:t.icon,url:t.url,target:t.target,selected:t.selected,counterBadge:t.counterBadge},t.name)}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],ae.prototype,"source",void 0);var se=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class re extends c{registerMenuClickObserver(){A.addUniqueObserverToNode(this.host,V,(()=>{this.shouldAutoCollapse()&&this.openStateController.setOpenState("close")}))}unregisterMenuClickObserver(){A.removeUniqueObserverFromNode(this.host,V)}shouldAutoCollapse(){return this.autoCollapseOnOverlay&&this.backdropController.shouldShowBackdrop()&&"open"===this.openState}}se([r()],re.prototype,"host",void 0),se([r()],re.prototype,"openState",void 0),se([r()],re.prototype,"autoCollapseOnOverlay",void 0),se([r()],re.prototype,"showAsOverlay",void 0),se([r()],re.prototype,"backdropController",void 0),se([r()],re.prototype,"openStateController",void 0),se([l("connectedCallback")],re.prototype,"registerMenuClickObserver",null),se([l("disconnectedCallback")],re.prototype,"unregisterMenuClickObserver",null);const le=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!!e.source&&e.source.length>0}];var ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const de=class{constructor(e){i(this,e),this.vegaStateUpdate=o(this,"vegaStateUpdate",7),this.stateUpdate=o(this,"stateUpdate",7),this.globalSlimmers={},this.headerRenderer=new J,this.footerRenderer=new ee,this.openStateController=new $,this.backdropController=new ne,this.zIndexController=new ie,this.listRenderer=new ae,this.vegaLeftNavAutoCollapseController=new re,this.stateUpdateEventEmitter=k(de,O),this.componentGlobalStyleSlimmer=new I(".vega-left-nav-content{transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-duration:200ms;transition-property:margin}vega-left-nav.disableAnimation+.vega-left-nav-content.open{transition-duration:0s}.vega-left-nav-content.open{margin-left:300px}"),this.vegaComponentUsageRuntimeMetricsSlimmer=new h(le),this.autoCollapseGroupsNotifySlimmer=G(de,"autoCollapseGroups","watchAutoCollapseGroups"),this.brandSwitchControllerSlimmer=new D,this.currentBranding=W.getBranding(),this.openState="close",this.open=!1,this.headerConfig={},this.footnote="",this.showAsOverlay=!0,this.autoCollapseOnOverlay=!1,this.autoCollapseGroups=!1}watchOpenState(){}watchOpen(){}watchShowAsOverlay(){}watchAutoCollapseGroups(){}componentWillLoad(){"string"==typeof this.autoCollapseGroups&&(this.autoCollapseGroups.includes("true")?this.autoCollapseGroups=!0:this.autoCollapseGroups.includes("false")&&(this.autoCollapseGroups=!1))}async toggle(){}render(){return p(e("slot",null)),s(e(n,null,this.headerRenderer.render(),this.listRenderer.render(),this.footerRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{openState:["watchOpenState"],open:["watchOpen"],showAsOverlay:["watchShowAsOverlay"],autoCollapseGroups:["watchAutoCollapseGroups"]}}};ce([f()],de.prototype,"globalSlimmers",void 0),ce([d()],de.prototype,"headerRenderer",void 0),ce([d()],de.prototype,"footerRenderer",void 0),ce([d()],de.prototype,"openStateController",void 0),ce([d()],de.prototype,"backdropController",void 0),ce([d()],de.prototype,"zIndexController",void 0),ce([d()],de.prototype,"listRenderer",void 0),ce([d()],de.prototype,"vegaLeftNavAutoCollapseController",void 0),ce([d()],de.prototype,"stateUpdateEventEmitter",void 0),ce([d()],de.prototype,"componentGlobalStyleSlimmer",void 0),ce([d()],de.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ce([d()],de.prototype,"autoCollapseGroupsNotifySlimmer",void 0),ce([d()],de.prototype,"brandSwitchControllerSlimmer",void 0),ce([j((e=>[{keyCode:"Escape",activeElementInScope:()=>{const t=e.backdropController.getBackdrop();return t&&t.visible?[document.body]:[e.host]},callback:()=>{const t=e.backdropController.getBackdrop();t&&t.visible&&e.openStateController.setOpenState("close")}}]))],de.prototype,"host",void 0),de.style=':host{display:none;flex-direction:column;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:fixed;top:0px;right:0px;bottom:0px;left:0px;text-align:left;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);width:300px;transition-duration:200ms;transition-property:transform;transform:translateX(-320px)}:host(.open.disableAnimation){transition-duration:0s}:host(.open){transform:translateX(0px)}.header-container{padding-left:24px;padding-right:24px;padding-top:24px;padding-bottom:16px}.header-container .header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:28px;font-weight:700;line-height:36px;letter-spacing:0px}}.header-container .header-subtitle{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px;margin-top:2px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}.header-footer-separator-container{padding-left:12px;padding-right:12px}.header-footer-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.vega-nav-list-container{flex-grow:1;padding-left:12px;padding-right:12px;padding-top:12px;overflow-y:auto;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.footer-container{padding-top:16px;padding-bottom:16px;padding-left:24px;padding-right:24px}.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}body.vega-overflow-hidden{overflow:hidden}.header-container vega-icon[icon="v-internal-icon heartland-logo"]+.header-subtitle{margin-top:8px}';var pe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class he extends c{constructor(){super(...arguments),this.handleClick=e=>{const t=e.currentTarget;if(t&&"$1"===t.dataset.root){e.preventDefault(),this.vegaLeftNavGroupOpenStateController.toggle();const t=this.vegaLeftNavGroupOpenStateController.isOpen();this.groupClickEventEmitter.emit(t?"EXPAND":"COLLAPSE"),this.notifyOtherGroup()}}}getGroupContainer(){return this.groupContainer}render(){return e("div",{class:"vega-li-main "+(this.openByDefault?"open":""),ref:e=>this.groupContainer=e},e("a",{href:`#${this.label}`,role:"button",tabIndex:0,"data-root":"$1",onClick:this.handleClick,"aria-label":this.label||"No label defined"},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},this.label),e("div",{class:"suffix-icons"},e("vega-icon",{icon:C.getIconKey("chevron-down"),size:"size-12"}),e("vega-icon",{icon:C.getIconKey("chevron-up"),size:"size-12"}))),e("div",{class:"vega-nav-list-sub"},e("slot",null)))}notifyOtherGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,M),{host:this.host})}}C.register({"chevron-up":U,"chevron-down":B}),pe([r()],he.prototype,"host",void 0),pe([r()],he.prototype,"autoCollapseGroups",void 0),pe([r()],he.prototype,"icon",void 0),pe([r()],he.prototype,"label",void 0),pe([r()],he.prototype,"groupClickEventEmitter",void 0),pe([r()],he.prototype,"vegaLeftNavHierarchyController",void 0),pe([r()],he.prototype,"openByDefault",void 0),pe([r()],he.prototype,"itemKey",void 0),pe([r()],he.prototype,"vegaLeftNavGroupOpenStateController",void 0);var fe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ve extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,N),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,N),this.observer))}isAcceptableObserver(e){return!this.host.contains(e.host)}shouldCollapse(){return"on-link-click"===this.autoCollapseGroups||!0===this.autoCollapseGroups||!1===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}fe([r()],ve.prototype,"host",void 0),fe([r()],ve.prototype,"autoCollapseGroups",void 0),fe([r()],ve.prototype,"vegaLeftNavGroupOpenStateController",void 0),fe([r()],ve.prototype,"vegaLeftNavHierarchyController",void 0),fe([r()],ve.prototype,"openByDefault",void 0),fe([l("disconnectedCallback")],ve.prototype,"disconnectedCallback",null),fe([l("componentWillLoad")],ve.prototype,"componentWillLoad",null);var ue=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ge extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,M),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,M),this.observer))}isAcceptableObserver(e){return e.host!==this.host&&!this.host.contains(e.host)}shouldCollapse(){return 1==this.autoCollapseGroups||"on-group-click"===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}ue([r()],ge.prototype,"host",void 0),ue([r()],ge.prototype,"autoCollapseGroups",void 0),ue([r()],ge.prototype,"vegaLeftNavGroupOpenStateController",void 0),ue([r()],ge.prototype,"vegaLeftNavHierarchyController",void 0),ue([l("disconnectedCallback")],ge.prototype,"disconnectedCallback",null),ue([l("componentWillLoad")],ge.prototype,"componentWillLoad",null);var me=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class xe extends F{constructor(){super({parent:"vega-left-nav",subStates:[{subStateName:"autoCollapseGroups",parentStateName:"autoCollapseGroups"}]})}}me([r()],xe.prototype,"host",void 0),me([r({writable:!0})],xe.prototype,"autoCollapseGroups",void 0);class be extends c{isOpen(){return this.renderer.getGroupContainer().classList.contains("open")}open(){this.renderer.getGroupContainer().classList.add("open")}close(){this.renderer.getGroupContainer().classList.remove("open")}toggle(){this.isOpen()?this.close():this.open()}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],be.prototype,"renderer",void 0);var Ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class we extends c{componentWillLoad(){const e=b(this.host,"vega-left-nav"),t=b(this.host,"vega-nav-card");(e||t)&&(this.parent=e||t)}getTopParent(){return this.parent}}Ce([r()],we.prototype,"host",void 0),Ce([l("componentWillLoad")],we.prototype,"componentWillLoad",null);var ye=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class je extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,E),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&!this.openByDefault&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,E),this.observer))}isAcceptableObserver(e){return this.host.contains(e.host)}observerListener(){this.vegaLeftNavGroupOpenStateController.open()}}ye([r()],je.prototype,"host",void 0),ye([r()],je.prototype,"vegaLeftNavGroupOpenStateController",void 0),ye([r()],je.prototype,"vegaLeftNavHierarchyController",void 0),ye([r()],je.prototype,"openByDefault",void 0),ye([l("disconnectedCallback")],je.prototype,"disconnectedCallback",null),ye([l("componentWillLoad")],je.prototype,"componentWillLoad",null);var ke=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Oe=class{constructor(e){i(this,e),this.vegaGroupClick=o(this,"vegaGroupClick",7),this.groupClick=o(this,"groupClick",7),this.globalSlimmers={},this.renderer=new he,this.vegaLeftNavHierarchyController=new we,this.linkClickObserverController=new ve,this.otherGroupsClickObserverController=new ge,this.groupClickEventEmitter=k(Oe,R),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.vegaLeftNavGroupStateController=new xe,this.vegaLeftNavGroupOpenStateController=new be,this.vegaLeftNavGroupForInitializeSelectedController=new je,this.autoCollapseGroups=!1,this.label="",this.openByDefault=!1}render(){return p(e("slot",null)),e(n,{"data-key":this.itemKey},s(this.renderer.render(),this.host))}get host(){return a(this)}};ke([f()],Oe.prototype,"globalSlimmers",void 0),ke([d()],Oe.prototype,"renderer",void 0),ke([d()],Oe.prototype,"vegaLeftNavHierarchyController",void 0),ke([d()],Oe.prototype,"linkClickObserverController",void 0),ke([d()],Oe.prototype,"otherGroupsClickObserverController",void 0),ke([d()],Oe.prototype,"groupClickEventEmitter",void 0),ke([d()],Oe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupStateController",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupOpenStateController",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupForInitializeSelectedController",void 0),Oe.style=':host{display:block}.suffix-icons{padding-left:8px}.suffix-icons vega-icon,.vega-li-main.open>a>.suffix-icons vega-icon:first-of-type{display:none}.suffix-icons vega-icon:first-of-type,.vega-li-main.open>a>.suffix-icons vega-icon:last-of-type{display:inline-flex}.vega-nav-list-sub{display:none}.vega-li-main.open>.vega-nav-list-sub{display:block}.vega-li-main>a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}.vega-li-main>a:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.vega-li-main>a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}.vega-li-main>a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}.vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}::slotted(vega-left-nav-group){padding-left:32px}::slotted(vega-left-nav-link){padding-left:32px}';var Re=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Se extends c{constructor(){super(...arguments),this.handleClick=()=>{this.selected||this.customSelectionEnabled||this.controller.setSelected(!0),this.menuClickEventEmitter.emit(),this.notifyVegaLeftNav(),this.notifyVegaLeftGroup()}}render(){return e(n,{class:!0===this.selected?"selected":"","data-key":this.itemKey},e("a",{href:this.url||"javascript:void(0);",target:this.target,onClick:this.handleClick},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},e("slot",null)),!!this.deprecatedPropertySlimmer.getValue()&&e("div",{class:"vega-counter-badge"},e("vega-counter-badge",{count:this.deprecatedPropertySlimmer.getValue(),color:this.counterBadge.color}))))}notifyVegaLeftNav(){const e=b(this.host,"vega-left-nav");e&&T.notify(z.getSubject(e,V),{host:this.host})}notifyVegaLeftGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,N),{host:this.host})}}Re([r()],Se.prototype,"host",void 0),Re([r()],Se.prototype,"selected",void 0),Re([r()],Se.prototype,"url",void 0),Re([r()],Se.prototype,"counterBadge",void 0),Re([r()],Se.prototype,"icon",void 0),Re([r()],Se.prototype,"menuClickEventEmitter",void 0),Re([r()],Se.prototype,"controller",void 0),Re([r()],Se.prototype,"deprecatedPropertySlimmer",void 0),Re([r()],Se.prototype,"customSelectionEnabled",void 0),Re([r()],Se.prototype,"itemKey",void 0),Re([r()],Se.prototype,"target",void 0),Re([r()],Se.prototype,"vegaLeftNavHierarchyController",void 0);var Le=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class He extends c{disconnectedCallback(){const e=this.getObserverSubject();e&&T.unregister(e,this.observer)}componentWillLoad(){this.observer=new Z(this.isAcceptableNavListObserver.bind(this),this.observerListener.bind(this));const e=this.getObserverSubject();e&&T.register(e,this.observer)}isAcceptableNavListObserver(e){return e instanceof HTMLElement&&b(this.host,".vega-nav-list-container")===b(e,".vega-nav-list-container")}}Le([l("disconnectedCallback")],He.prototype,"disconnectedCallback",null),Le([l("componentWillLoad")],He.prototype,"componentWillLoad",null);var Ie=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ae extends He{componentWillRender(){if(this.selected){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,E),{host:this.host})}}componentDidRender(){if(this.selected){const e=this.getObserverSubject();e&&T.notify(e,this.host)}}setSelected(e){this.customSelectionEnabled||(this.selected=e)}observerListener(e){e!==this.host&&this.setSelected(!1)}getObserverSubject(){const e=this.vegaLeftNavHierarchyController.getTopParent();return e?z.getSubject(e,_):null}}Ie([r()],Ae.prototype,"host",void 0),Ie([r({writable:!0})],Ae.prototype,"selected",void 0),Ie([r()],Ae.prototype,"customSelectionEnabled",void 0),Ie([r()],Ae.prototype,"vegaLeftNavHierarchyController",void 0),Ie([l("componentWillRender")],Ae.prototype,"componentWillRender",null),Ie([l("componentDidRender")],Ae.prototype,"componentDidRender",null);var ze=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Ve=class{constructor(e){i(this,e),this.vegaMenuClick=o(this,"vegaMenuClick",7),this.menuClick=o(this,"menuClick",7),this.globalSlimmers={},this.renderer=new Se,this.vegaLeftNavHierarchyController=new we,this.controller=new Ae,this.menuClickEventEmitter=k(Ve,S),this.deprecatedPropertySlimmer=K(Ve,"counterBadge.count","counterBadge.counter",void 0),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.selected=!1,this.customSelectionEnabled=!1,this.target="_self"}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};ze([f()],Ve.prototype,"globalSlimmers",void 0),ze([d()],Ve.prototype,"renderer",void 0),ze([d()],Ve.prototype,"vegaLeftNavHierarchyController",void 0),ze([d()],Ve.prototype,"controller",void 0),ze([d()],Ve.prototype,"menuClickEventEmitter",void 0),ze([d()],Ve.prototype,"deprecatedPropertySlimmer",void 0),ze([d()],Ve.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ve.style=':host{display:block}:host(.selected) .vega-links-icon{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.selected) a{background-color:rgba(var(--v-bg-selected, 0, 151, 255, 0.3))}:host .vega-counter-badge{position:relative;width:32px;height:20px}:host vega-counter-badge{position:absolute;top:10px;left:18px}:host a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}:host a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}:host .vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}:host .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}:host(:not(.selected)) a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}:host>a:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}';var Me=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ne extends c{render(){return e(n,{"data-key":this.itemKey},this.renderSectionHeader(),e("slot",null),this.renderListSeparator())}renderListSeparator(){return e("div",{class:"list-separator-container"},e("div",{class:"list-separator"}))}renderSectionHeader(){var t;return(null===(t=this.sectionHeader)||void 0===t?void 0:t.title)&&e("div",{class:"section-header"},e("div",{class:"section-header-title"},this.sectionHeader.title),this.sectionHeader.actionTitle&&e("vega-button-link",{label:this.sectionHeader.actionTitle,size:"small",link:this.sectionHeader.actionLink,eventful:this.sectionHeader.actionEventful,ref:e=>{A.addUniqueObserverToNode(e,L,(()=>{this.actionClickEventEmitter.emit()}))}}))}}Me([r()],Ne.prototype,"sectionHeader",void 0),Me([r()],Ne.prototype,"actionClickEventEmitter",void 0),Me([r()],Ne.prototype,"itemKey",void 0);var Ee=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const _e=class{constructor(e){i(this,e),this.vegaActionClick=o(this,"vegaActionClick",7),this.actionClick=o(this,"actionClick",7),this.globalSlimmers={},this.renderer=new Ne,this.actionClickEventEmitter=k(_e,H),this.vegaComponentUsageRuntimeMetricsSlimmer=new h}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};Ee([f()],_e.prototype,"globalSlimmers",void 0),Ee([d()],_e.prototype,"renderer",void 0),Ee([d()],_e.prototype,"actionClickEventEmitter",void 0),Ee([d()],_e.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_e.style=':host{display:block}:host(:last-child) .list-separator-container{display:none}.list-separator-container{padding-left:12px;padding-right:12px;padding-top:20px;padding-bottom:20px}.list-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.section-header{display:flex;align-items:center;gap:12px;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:4px}.section-header>.section-header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;flex:1 1 0%;overflow:hidden;text-transform:uppercase}@media screen and (min-width: 768px) and (max-width: 1023px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}.section-header>vega-button-link{flex-basis:0}';var Ge=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class De extends v{constructor(){super({callback:()=>{this.updateMaxHeight()}})}watchMaxHeight(){this.updateMaxHeight()}updateMaxHeight(){const e=P(this.maxHeight,"widthAndHeight");this.currentMaxHeight=e}}Ge([r()],De.prototype,"maxHeight",void 0),Ge([r({writable:!0})],De.prototype,"currentMaxHeight",void 0),Ge([l("watchMaxHeight")],De.prototype,"watchMaxHeight",null);const We=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!!e.source&&e.source.length>0}];var Ue=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Be=class{constructor(e){i(this,e),this.globalSlimmers={},this.listRenderer=new ae,this.maxHeightController=new De,this.vegaComponentUsageRuntimeMetricsSlimmer=new h(We)}watchMaxHeight(){}render(){return p(e("slot",null)),s(e(n,{style:{maxHeight:this.currentMaxHeight}},this.listRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{maxHeight:["watchMaxHeight"]}}};Ue([f()],Be.prototype,"globalSlimmers",void 0),Ue([d()],Be.prototype,"listRenderer",void 0),Ue([d()],Be.prototype,"maxHeightController",void 0),Ue([d()],Be.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Be.style=":host{display:block;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:12px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));text-align:left;overflow-y:auto;width:300px}.vega-nav-list-container{padding:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}";export{de as vega_left_nav,Oe as vega_left_nav_group,Ve as vega_left_nav_link,_e as vega_left_nav_section,Be as vega_nav_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./p-6e1ab235.js";import{I as e,c as a}from"./p-
|
|
1
|
+
import"./p-6e1ab235.js";import{I as e,c as a}from"./p-9a6bd32c.js";const c=[{payloadKey:"IS_REGISTER_METHOD_CALLED",payloadDescription:"Indicate if the method register of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"register"===a,payloadValue:()=>!0},{payloadKey:"IS_GETICON_METHOD_CALLED",payloadDescription:"Indicate if the method getIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"getIcon"===a,payloadValue:()=>!0},{payloadKey:"IS_HASICON_METHOD_CALLED",payloadDescription:"Indicate if the method hasIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"hasIcon"===a,payloadValue:()=>!0}];class t{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=a(t,["register","getIcon","hasIcon"],c),this.icons=new Map}register(e){for(const a in e)this.icons.has(a)||this.icons.set(a,e[a])}getIcon(e){return this.icons.get(e)}hasIcon(e){return this.icons.has(e)}}!function(e,a,c,t){var o,n=arguments.length,i=n<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,c):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,a,c,t);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(i=(n<3?o(i):n>3?o(a,c,i):o(a,c))||i);n>3&&i&&Object.defineProperty(a,c,i)}([e()],t.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const o=new t;export{o as V}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as i,h as t,H as a,g as r}from"./p-6b2342e0.js";import{c as n}from"./p-3a620268.js";import{s as o}from"./p-519a7d55.js";import{C as s}from"./p-590fd123.js";import{C as c}from"./p-2d0d575f.js";import{C as h,F as l,g as d}from"./p-a528714c.js";import{O as p}from"./p-331a62d5.js";import{f as g,a as x}from"./p-ec2a1d4c.js";import{c as b,M as v,V as f,I as m}from"./p-6e1ab235.js";import{V as u,I as k}from"./p-8ce9e214.js";import{F as w}from"./p-2d694684.js";import{c as y}from"./p-04a65b3f.js";import{i as j}from"./p-2927b7a1.js";import{h as z}from"./p-3a93730e.js";import{d as C}from"./p-11e2dcf5.js";import{C as I}from"./p-ab04eff6.js";import{A as R}from"./p-bdb5180c.js";import{R as V}from"./p-280cbcdb.js";import{C as D}from"./p-75b58efe.js";import{C as O}from"./p-77fb5d5c.js";import"./p-abd7aeaa.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-0a261b66.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-10fa27d2.js";import"./p-4dd02704.js";import"./p-5f377954.js";import"./p-dcf162e9.js";import"./p-982747ef.js";var E=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};class F extends f{connectedCallback(){this.checkboxGroup=g(this.host,"vega-checkbox-group")||g(this.host,"vega-selection-tile-group"),this.fieldErrorObserver=new p(this.canAcceptFieldErrorObserver.bind(this),this.fieldErrorObserverListener.bind(this)),c.register(C.getSubject(this.checkboxGroup||this.host,z),this.fieldErrorObserver)}disconnectedCallback(){c.unregister(C.getSubject(this.checkboxGroup||this.host,z),this.fieldErrorObserver)}canAcceptFieldErrorObserver(){return!0}fieldErrorObserverListener(e){this.showError=e.showError}}E([b({writable:!0})],F.prototype,"showError",void 0),E([b()],F.prototype,"host",void 0),E([v("connectedCallback")],F.prototype,"connectedCallback",null),E([v("disconnectedCallback")],F.prototype,"disconnectedCallback",null);var G=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};const A=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.vegaCheckboxShowErrorController=new F,this.ariaAttributesValueMapper=new R((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","identifier"],defaultValue:"No label defined"}}),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new s:null}],defaultValue:e=>""!==e.identifier&&"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.inputRef]}),this.changeEventEmitter=y(A,j),this.dropdownEventPrevent=new I([j],(()=>this.host),{customPreventHandle:e=>{e.stopPropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new u,this.groupDisabled=!1,this.showError=!1,this.identifier="",this.value=""!==this.identifier&&"",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="default",this.required=!1,this.isValid=null,this.onCheckBoxChange=e=>{this.indeterminate&&(this.indeterminate=!1),this.checked=e.currentTarget.checked},this.onSelectedIconClick=e=>{e.stopPropagation()}}watchValueChange(e){this.checked=""!==this.identifier?e===this.identifier:!0===e}watchCheckedChange(){this.initValue(),this.changeEventEmitter.emit(this.value),c.notify(h,{host:this.host,detail:this.value}),c.notify(l,{host:this.host,detail:this.value})}disconnectedCallback(){this.unRegisterGroupDisabledObserver()}componentWillLoad(){!this.checked&&(""!==this.identifier?this.value===this.identifier:!0===this.value||"true"===this.value)&&(this.checked=!0),this.initValue(),this.initAndRegisterGroupDisabledObserver()}componentDidRender(){""===this.host.innerHTML.trim()&&this.labelElement.classList.add("vega-hidden"),this.syncNativeIndeterminate()}async setValue(e){this.checked=this.identifier?e===this.identifier:!0===e}render(){var e;const i="VEGA-CHECKBOX-GROUP"==(null===(e=this.host.parentElement)||void 0===e?void 0:e.nodeName);return o(t(a,{class:{"vega-flex-shrink-0 v-min-w-min":i,checked:this.checked,indeterminate:this.indeterminate,disabled:this.isDisabled()}},t("label",{class:x(["vega-checkbox-container",this.showError&&"error",this.size&&`size-${this.size}`]),ref:e=>this.inputContainerRef=e},t("input",{ref:e=>this.inputRef=e,type:"checkbox",checked:this.checked,value:this.identifier,onChange:this.onCheckBoxChange,"aria-checked":this.indeterminate?"mixed":void 0,disabled:this.isDisabled(),tabIndex:0,onKeyDown:n()}),t("span",{class:"vega-checkbox-icon",onClick:this.onSelectedIconClick,tabIndex:-1,"aria-hidden":"true"},this.renderIconDom()),t("div",{class:"vega-checkbox-label-container",ref:e=>this.labelElement=e},this.renderLabelDom(),this.renderRequireDom()))),this.host)}renderIconDom(){return this.indeterminate?t("vega-icon",{icon:"minus-sign",size:"small"===this.size?"size-12":"size-16"}):this.checked?t("vega-icon",{icon:"checkmark",size:"small"===this.size?"size-12":"size-16"}):null}renderLabelDom(){return t("span",{class:"vega-checkbox-label"},t("slot",null))}renderRequireDom(){return t("span",{class:{"vega-require":this.required}},this.required?"*":"")}initValue(){this.value=""!==this.identifier?this.checked?this.identifier:"":this.checked}syncNativeIndeterminate(){this.inputRef&&(this.inputRef.indeterminate=this.indeterminate)}isDisabled(){return this.disabled||this.groupDisabled}canAcceptGroupDisabledObserver(e){return g(this.host,"vega-checkbox-group")===e.host}groupDisabledObserverListener(e){this.groupDisabled=e.host.disabled}initAndRegisterGroupDisabledObserver(){g(this.host,"vega-checkbox-group")&&(this.groupDisabledObserver=new p(this.canAcceptGroupDisabledObserver.bind(this),this.groupDisabledObserverListener.bind(this)),c.register(d,this.groupDisabledObserver))}unRegisterGroupDisabledObserver(){this.groupDisabledObserver&&c.unregister(d,this.groupDisabledObserver)}get host(){return r(this)}static get watchers(){return{value:["watchValueChange"],checked:["watchCheckedChange"]}}};G([k()],A.prototype,"globalSlimmers",void 0),G([m()],A.prototype,"vegaCheckboxShowErrorController",void 0),G([m()],A.prototype,"ariaAttributesValueMapper",void 0),G([m()],A.prototype,"formFieldController",void 0),G([m()],A.prototype,"changeEventEmitter",void 0),G([m()],A.prototype,"dropdownEventPrevent",void 0),G([m()],A.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),A.style=':host{display:inline-block;vertical-align:middle}.vega-checkbox-container{position:relative;display:flex;-webkit-tap-highlight-color:transparent}.vega-checkbox-container>input[type=checkbox]{position:absolute;left:0px;top:0px;opacity:0;width:24px;height:24px;padding:0px;margin:0px}.vega-checkbox-container>.vega-checkbox-icon{display:inline-block;box-sizing:border-box;width:24px;height:24px;border-style:solid;border-width:2px;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1));position:relative;left:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:4px;min-width:24px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-checkbox-container>.vega-checkbox-icon:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));display:inline-flex;align-items:center;justify-content:center}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon:hover,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-checkbox-container>input[type=checkbox]:focus-visible+.vega-checkbox-icon{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px}.vega-checkbox-container>.vega-checkbox-icon:active{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon:active,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}:host(.disabled) .vega-checkbox-container{cursor:not-allowed}:host(:not(.disabled)) .vega-checkbox-container{cursor:pointer}.vega-checkbox-container .vega-require{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px;vertical-align:middle}.vega-checkbox-container.error>.vega-checkbox-icon{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon,:host(.indeterminate) .vega-checkbox-container.error>.vega-checkbox-icon{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-checkbox-container.error>.vega-checkbox-icon:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon:hover,:host(.indeterminate) .vega-checkbox-container.error>.vega-checkbox-icon:hover{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-checkbox-container.error>input[type=checkbox]:focus-visible+.vega-checkbox-icon{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon:active,:host(.indeterminate) .vega-checkbox-container.error>.vega-checkbox-icon:active{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}.vega-checkbox-container.error>.vega-checkbox-icon:active{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-danger-active, 189, 41, 71, 1))}:host(.disabled) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.checked.disabled) .vega-checkbox-container>.vega-checkbox-icon,:host(.indeterminate.disabled) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.checked.disabled) .vega-checkbox-container>.vega-checkbox-icon>vega-icon,:host(.indeterminate.disabled) .vega-checkbox-container>.vega-checkbox-icon>vega-icon{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-checkbox-container>.vega-checkbox-label-container{display:inline-block;margin-left:12px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-checkbox-container>.vega-checkbox-label-container{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){.vega-checkbox-container>.vega-checkbox-label-container{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){.vega-checkbox-container>.vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.disabled) .vega-checkbox-container>.vega-checkbox-label-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.vega-error{display:block;margin-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){.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){.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){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-checkbox-label-container.vega-hidden{display:none}.vega-hidden{display:none}.size-default input[type=checkbox]{width:24px;height:24px}.size-default .vega-checkbox-icon{width:24px;height:24px;min-width:24px;border-radius:4px}.size-default .vega-checkbox-label-container{margin-left:12px;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.size-default .vega-checkbox-label-container{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){.size-default .vega-checkbox-label-container{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){.size-default .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.size-small input[type=checkbox]{width:16px;height:16px}.size-small .vega-checkbox-icon{width:16px;height:16px;min-width:16px;border-radius:2px}.size-small .vega-checkbox-label-container{margin-left:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}';var P=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};const q=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new V:null}],defaultValue:[],validationRulesName:"validationRules",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>this.touchableAreaGetter()}),this.checkboxValueChangeObserver=new O(h,(e=>this.childCheckboxValueChange(e))),this.checkboxEventPrevent=new I([j],(()=>this.vegaFlexElement)),this.changeEventEmitter=y(q,j),this.vegaComponentUsageRuntimeMetricsSlimmer=new u,this.label="",this.value=[],this.vegaFlexProp={},this.disabled=!1,this.required=!1,this.hint="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.childCheckboxValueChange=e=>{this.syncCheckboxItemsValue(e.detail,e.host.identifier)},this.touchableAreaGetter=()=>{const e=[];return this.vegaCheckboxArray&&this.vegaCheckboxArray.forEach((async i=>{e.push(i.shadowRoot.querySelector("input"))})),e}}async watchValue(){this.initCheckboxArray(),this.changeEventEmitter.emit(this.value),c.notify(l,{host:this.host,detail:this.value})}watchVegaFlexProp(){this.setVegaFlexProperty()}async watchDisabled(){this.notifyGroupDisabledChange()}watchValidationRules(){}componentDidLoad(){this.setVegaFlexProperty(),this.initCheckboxArray(),this.notifyGroupDisabledChange()}render(){return o(t(a,null,this.renderLabelDom(),t("div",{class:"vega-checkbox-group-container",ref:e=>this.inputContainerRef=e},t("vega-flex",{ref:e=>{this.vegaFlexElement=e}},t("slot",null))),this.renderHintDom()),this.host)}renderLabelDom(){return this.label&&t("div",{class:"vega-label"},t("label",{"aria-label":this.label},this.label,this.renderRequireDom()))}renderRequireDom(){return this.required?t("span",{class:"vega-require"},"*"):null}renderHintDom(){return this.hint&&t("div",{class:"vega-hint"},t("label",null,this.hint))}setVegaFlexProperty(){this.vegaFlexProp&&Object.assign(this.vegaFlexElement,{gap:"size-16",direction:"col"},this.vegaFlexProp)}syncCheckboxItemsValue(e,i){e&&!this.value.includes(i)?this.value=[...this.value,i]:!e&&this.value.includes(i)&&(this.value=[...this.value.filter((e=>e!==i))])}initCheckboxArray(){this.vegaCheckboxArray=Array.from(this.host.querySelectorAll("vega-checkbox")),this.vegaCheckboxArray.forEach((e=>{e.checked=!!(this.value&&this.value.length>0)&&this.value.includes(e.identifier)}))}notifyGroupDisabledChange(){c.notify(d,{host:this.host})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],vegaFlexProp:["watchVegaFlexProp"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};P([k()],q.prototype,"globalSlimmers",void 0),P([m()],q.prototype,"formFieldController",void 0),P([m()],q.prototype,"checkboxValueChangeObserver",void 0),P([m()],q.prototype,"checkboxEventPrevent",void 0),P([m()],q.prototype,"changeEventEmitter",void 0),P([m()],q.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),P([D()],q.prototype,"watchVegaFlexProp",null),q.style=':host{display:block;text-align:left;line-height:normal}.vega-error{display:block;margin-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){.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){.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){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-label{margin-bottom:16px}.vega-label label{font-family:"Inter", sans-serif;font-size:18px;font-weight:500;line-height:30px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}.vega-require{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px}.vega-hint{padding-top:12px}.vega-hint>label{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){.vega-hint>label{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){.vega-hint>label{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){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}';export{A as vega_checkbox,q as vega_checkbox_group}
|