@globalpayments/vega 2.86.0-beta.0 → 2.87.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-844163e7.js → app-globals-a6271a58.js} +11 -11
- package/dist/cjs/{child-nodes-event-prevent-slimmer-f3979a03.js → child-nodes-event-prevent-slimmer-d04eaffc.js} +1 -1
- package/dist/cjs/{code-block-0ec03cd3.js → code-block-8855ce20.js} +1 -1
- 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-b243e1e3.js → component-value-history-controller-slimmer.abstract-487eba5f.js} +3 -3
- package/dist/cjs/{content-state-8898e96d.js → content-state-71df26bc.js} +2 -2
- 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-1fa16774.js} +1 -1
- package/dist/cjs/{design-token-4b3509dd.js → design-token-514f0a48.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-2355d6f6.js → element-appender-slimmer-a399a2b4.js} +3 -3
- package/dist/cjs/{feature-flag-controller-9129ef52.js → feature-flag-controller-5fa21654.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-595f4138.js → form-field-controller-slimmer-95e39415.js} +1 -1
- package/dist/cjs/{icon-manager-c12c6ea9.js → icon-manager-e855446d.js} +1 -1
- package/dist/cjs/{image-annotation-action-37434c42.js → image-annotation-action-de9ea6fe.js} +3 -3
- package/dist/cjs/index.cjs.js +20 -20
- package/dist/cjs/{inject-keyboard-manager-98ae7ce1.js → inject-keyboard-manager-c40fc223.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-df8d3728.js} +4 -0
- package/dist/cjs/{keyboard-manager-d3cc662c.js → keyboard-manager-32f720fe.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-3824781d.js → keyboard-manager-slimmer-2f0a5145.js} +1 -1
- package/dist/cjs/loader.cjs.js +14 -14
- package/dist/cjs/{month-view-generator-41b6c6b6.js → month-view-generator-48f8ad07.js} +1 -1
- package/dist/cjs/{public-rules-60e4dfda.js → public-rules-f9a0910c.js} +7 -7
- package/dist/cjs/{range-a6c15539.js → range-b60eea23.js} +1 -1
- package/dist/cjs/{responsive-format-facade-5f6cd211.js → responsive-format-facade-d8605493.js} +2 -2
- package/dist/cjs/{rich-text-editor-required-rule-f69c62ea.js → rich-text-editor-required-rule-980f64a3.js} +1 -1
- package/dist/cjs/{split-cell-operation-7920e3a1.js → split-cell-operation-d1ea2acb.js} +4 -4
- package/dist/cjs/{state-border-formatter-d1c80c1d.js → state-border-formatter-6d647199.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-b39da0dd.js → string-format-strategy.abstract-54ec0c41.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-fd2fb154.js → string-input-formatter-slimmer-a32cae65.js} +1 -1
- package/dist/cjs/{string-mask-strategy-524d0f69.js → string-mask-strategy-c5174484.js} +2 -2
- package/dist/cjs/{style-formatter-c201e7d0.js → style-formatter-8de53cdb.js} +2 -2
- package/dist/cjs/{time-required-rule-ecb45905.js → time-required-rule-51c21042.js} +1 -1
- package/dist/cjs/{token-extension-364972cd.js → token-extension-f66fbf99.js} +7 -7
- package/dist/cjs/{translation-slimmer-3cd7d3b2.js → translation-slimmer-96c518cd.js} +1 -1
- package/dist/cjs/{type-guard-2e97fc56.js → type-guard-2c1ef8c7.js} +1 -1
- package/dist/cjs/{valid-credit-card-number-rule-2d7d20ce.js → valid-credit-card-number-rule-772a3763.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +30 -12
- package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
- package/dist/cjs/vega-app-header-button.cjs.entry.js +12 -12
- package/dist/cjs/vega-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/vega-banner.cjs.entry.js +6 -6
- package/dist/cjs/vega-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-box.cjs.entry.js +9 -9
- package/dist/cjs/vega-brand-logo.cjs.entry.js +4 -4
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
- package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-calendar_4.cjs.entry.js +11 -11
- package/dist/cjs/vega-card.cjs.entry.js +8 -8
- package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +9 -9
- package/dist/cjs/vega-code-block.cjs.entry.js +15 -15
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +10 -10
- package/dist/cjs/vega-color-swatch.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +9 -9
- package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +20 -20
- package/dist/cjs/{vega-dialog-controller-03ef4d9a.js → vega-dialog-controller-6df7825e.js} +1 -1
- package/dist/cjs/vega-dialog_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-divider.cjs.entry.js +8 -8
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +11 -11
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-field-label.cjs.entry.js +1 -1
- package/dist/cjs/vega-file-uploader.cjs.entry.js +7 -7
- package/dist/cjs/vega-flag-icon.cjs.entry.js +11 -11
- package/dist/cjs/vega-flex.cjs.entry.js +9 -9
- package/dist/cjs/vega-font.cjs.entry.js +8 -8
- package/dist/cjs/vega-form.cjs.entry.js +7 -7
- package/dist/cjs/vega-grid.cjs.entry.js +8 -8
- package/dist/cjs/vega-hint.cjs.entry.js +1 -1
- package/dist/cjs/vega-icon.cjs.entry.js +10 -10
- package/dist/cjs/vega-image-uploader.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-passcode.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-select.cjs.entry.js +12 -12
- package/dist/cjs/vega-input.cjs.entry.js +10 -10
- package/dist/cjs/vega-item-toggle.cjs.entry.js +1 -1
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +13 -13
- package/dist/cjs/vega-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
- package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +9 -9
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +19 -19
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +15 -15
- package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
- package/dist/cjs/vega-segment-control.cjs.entry.js +1 -1
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +9 -9
- package/dist/cjs/vega-signature-capture.cjs.entry.js +13 -13
- 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 +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_11.cjs.entry.js +11 -11
- package/dist/cjs/vega-text.cjs.entry.js +1 -1
- package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -9
- package/dist/cjs/vega.cjs.js +14 -14
- 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/global/scripts/before-vega-load.js +1 -1
- package/dist/collection/helpers/feature-control/feature-flag-controller.js +1 -1
- package/dist/collection/helpers/slimmers/component-usage-runtime-metrics.js +1 -1
- package/dist/collection/helpers/slimmers/runtime-metrics/public-api-runtime-metrics-slimmer-base.js +1 -1
- package/dist/collection/helpers/translation/locales/en.js +4 -0
- package/dist/collection/polyfill/d3/d3-time-format-polyfill.js +1 -1
- package/dist/esm/{app-globals-c5b58e3c.js → app-globals-265fcdbc.js} +11 -11
- package/dist/esm/{child-nodes-event-prevent-slimmer-75f93d85.js → child-nodes-event-prevent-slimmer-a1266ec2.js} +1 -1
- package/dist/esm/{code-block-3af53bbb.js → code-block-f9e55f6c.js} +1 -1
- 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-7f35b770.js → component-value-history-controller-slimmer.abstract-27448796.js} +3 -3
- package/dist/esm/{content-state-b3d319b4.js → content-state-8cf47f00.js} +2 -2
- 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-8c4c975c.js} +1 -1
- package/dist/esm/{design-token-57de4f4f.js → design-token-d0627261.js} +3 -3
- package/dist/esm/{element-appender-slimmer-b20308aa.js → element-appender-slimmer-fcb459a0.js} +3 -3
- package/dist/esm/{feature-flag-controller-30f7b625.js → feature-flag-controller-5ebc0cec.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-4c1976c9.js → form-field-controller-slimmer-18bbfc1a.js} +1 -1
- package/dist/esm/{icon-manager-539d7cf7.js → icon-manager-691c8682.js} +1 -1
- package/dist/esm/{image-annotation-action-0287d7f6.js → image-annotation-action-d43ab271.js} +3 -3
- package/dist/esm/index.js +20 -20
- package/dist/esm/{inject-keyboard-manager-2ec31cf2.js → inject-keyboard-manager-af4ae60e.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-18b9070e.js} +4 -0
- package/dist/esm/{keyboard-manager-394883fe.js → keyboard-manager-0c6ad52a.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-71d1c602.js → keyboard-manager-slimmer-1479c490.js} +1 -1
- package/dist/esm/loader.js +14 -14
- package/dist/esm/{month-view-generator-70c597a6.js → month-view-generator-f8aac785.js} +1 -1
- package/dist/esm/{public-rules-ae0099c8.js → public-rules-413db36c.js} +7 -7
- package/dist/esm/{range-dfb5388f.js → range-6be16f3a.js} +1 -1
- package/dist/esm/{responsive-format-facade-456a9f16.js → responsive-format-facade-c0801780.js} +2 -2
- package/dist/esm/{rich-text-editor-required-rule-cfc7aef8.js → rich-text-editor-required-rule-99260118.js} +1 -1
- package/dist/esm/{split-cell-operation-8045ac1d.js → split-cell-operation-a144ff33.js} +4 -4
- package/dist/esm/{state-border-formatter-afac8d33.js → state-border-formatter-39a4831a.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-f9907969.js → string-format-strategy.abstract-0125337f.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-27ef1fc6.js → string-input-formatter-slimmer-17ddd6c8.js} +1 -1
- package/dist/esm/{string-mask-strategy-5f655300.js → string-mask-strategy-a7384963.js} +2 -2
- package/dist/esm/{style-formatter-ee52d8d0.js → style-formatter-80825302.js} +2 -2
- package/dist/esm/{time-required-rule-db873c19.js → time-required-rule-23692991.js} +1 -1
- package/dist/esm/{token-extension-3c07558d.js → token-extension-2b778fdf.js} +7 -7
- package/dist/esm/{translation-slimmer-5e2bff5f.js → translation-slimmer-daf97b4b.js} +1 -1
- package/dist/esm/{type-guard-adc244fd.js → type-guard-78c4233f.js} +1 -1
- package/dist/esm/{valid-credit-card-number-rule-a826dd49.js → valid-credit-card-number-rule-3fdaa507.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +30 -12
- package/dist/esm/vega-app-footer.entry.js +1 -1
- package/dist/esm/vega-app-header-button.entry.js +12 -12
- package/dist/esm/vega-backdrop.entry.js +1 -1
- package/dist/esm/vega-banner.entry.js +6 -6
- package/dist/esm/vega-bar-chart.entry.js +1 -1
- package/dist/esm/vega-box.entry.js +9 -9
- package/dist/esm/vega-brand-logo.entry.js +4 -4
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +9 -9
- package/dist/esm/vega-button-group_2.entry.js +4 -4
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +7 -7
- package/dist/esm/vega-calendar_4.entry.js +11 -11
- package/dist/esm/vega-card.entry.js +8 -8
- package/dist/esm/vega-carousel.entry.js +6 -6
- package/dist/esm/vega-checkbox_2.entry.js +6 -6
- package/dist/esm/vega-chip.entry.js +9 -9
- package/dist/esm/vega-code-block.entry.js +15 -15
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-color-swatch-picker.entry.js +10 -10
- package/dist/esm/vega-color-swatch.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +9 -9
- package/dist/esm/vega-counter-badge.entry.js +1 -1
- package/dist/esm/vega-date-picker_2.entry.js +20 -20
- package/dist/esm/{vega-dialog-controller-bbb2fc52.js → vega-dialog-controller-389e7f7c.js} +1 -1
- package/dist/esm/vega-dialog_2.entry.js +7 -7
- package/dist/esm/vega-divider.entry.js +8 -8
- package/dist/esm/vega-dropdown_5.entry.js +11 -11
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-field-label.entry.js +1 -1
- package/dist/esm/vega-file-uploader.entry.js +7 -7
- package/dist/esm/vega-flag-icon.entry.js +11 -11
- package/dist/esm/vega-flex.entry.js +9 -9
- package/dist/esm/vega-font.entry.js +8 -8
- package/dist/esm/vega-form.entry.js +7 -7
- package/dist/esm/vega-grid.entry.js +8 -8
- package/dist/esm/vega-hint.entry.js +1 -1
- package/dist/esm/vega-icon.entry.js +10 -10
- package/dist/esm/vega-image-uploader.entry.js +11 -11
- package/dist/esm/vega-input-credit-card.entry.js +13 -13
- package/dist/esm/vega-input-numeric.entry.js +9 -9
- package/dist/esm/vega-input-passcode.entry.js +9 -9
- package/dist/esm/vega-input-phone-number.entry.js +11 -11
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +12 -12
- package/dist/esm/vega-input.entry.js +10 -10
- package/dist/esm/vega-item-toggle.entry.js +1 -1
- package/dist/esm/vega-left-nav_5.entry.js +13 -13
- package/dist/esm/vega-line-chart.entry.js +2 -2
- package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination.entry.js +8 -8
- package/dist/esm/vega-pie-chart.entry.js +1 -1
- package/dist/esm/vega-popover_2.entry.js +11 -11
- package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
- package/dist/esm/vega-radio_2.entry.js +9 -9
- package/dist/esm/vega-rich-text-content.entry.js +9 -9
- package/dist/esm/vega-rich-text-editor_4.entry.js +19 -19
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +15 -15
- package/dist/esm/vega-section-title.entry.js +1 -1
- package/dist/esm/vega-segment-control.entry.js +1 -1
- package/dist/esm/vega-selection-chip_2.entry.js +8 -8
- package/dist/esm/vega-selection-tile_2.entry.js +6 -6
- package/dist/esm/vega-sidenav_3.entry.js +9 -9
- package/dist/esm/vega-signature-capture.entry.js +13 -13
- 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 +6 -6
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +11 -11
- package/dist/esm/vega-text.entry.js +1 -1
- package/dist/esm/vega-textarea.entry.js +6 -6
- package/dist/esm/vega-time-picker_2.entry.js +13 -13
- package/dist/esm/vega-toggle-switch.entry.js +3 -3
- package/dist/esm/vega-tooltip_2.entry.js +9 -9
- package/dist/esm/vega.js +14 -14
- package/dist/sri/vega-sri-manifest.json +380 -380
- 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/helpers/translation/interface.d.ts +4 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-c95dbf11.js → p-0177417f.js} +1 -1
- package/dist/vega/{p-d8180e42.entry.js → p-018756ad.entry.js} +1 -1
- package/dist/vega/{p-becddd0b.js → p-028329be.js} +1 -1
- package/dist/vega/{p-97f9ad6c.js → p-047d7881.js} +1 -1
- package/dist/vega/{p-a3e40e66.entry.js → p-05140666.entry.js} +1 -1
- package/dist/vega/{p-7931e6e6.entry.js → p-073d8581.entry.js} +1 -1
- package/dist/vega/{p-87ddb52c.entry.js → p-09af8a35.entry.js} +1 -1
- package/dist/vega/p-0fc93a05.js +1 -0
- package/dist/vega/{p-91f82047.entry.js → p-1163a68c.entry.js} +1 -1
- package/dist/vega/{p-63b585de.entry.js → p-11757645.entry.js} +1 -1
- package/dist/vega/{p-2c1a85dd.entry.js → p-1250b1ab.entry.js} +1 -1
- package/dist/vega/{p-8283bf6e.entry.js → p-1663d2ac.entry.js} +1 -1
- package/dist/vega/{p-e6adf829.js → p-1704ff25.js} +1 -1
- package/dist/vega/{p-e4fdccb9.entry.js → p-1868d138.entry.js} +1 -1
- package/dist/vega/{p-0bb0b521.entry.js → p-1960a4f9.entry.js} +1 -1
- package/dist/vega/{p-2c8a205d.js → p-1aee9480.js} +1 -1
- package/dist/vega/{p-21919f19.entry.js → p-1b2e4a2d.entry.js} +1 -1
- package/dist/vega/{p-a46e977b.entry.js → p-1be90bab.entry.js} +1 -1
- package/dist/vega/{p-1a869f0e.js → p-1c5bf527.js} +1 -1
- package/dist/vega/{p-758f9809.entry.js → p-1e3ecefb.entry.js} +1 -1
- package/dist/vega/{p-cfede0b1.entry.js → p-200aa886.entry.js} +1 -1
- package/dist/vega/{p-e703a770.entry.js → p-23d881c0.entry.js} +1 -1
- package/dist/vega/{p-e4c4ea35.js → p-25983017.js} +1 -1
- package/dist/vega/{p-2d9ac3d7.entry.js → p-272308f0.entry.js} +1 -1
- package/dist/vega/{p-a4cdcdcf.entry.js → p-2852823c.entry.js} +1 -1
- package/dist/vega/{p-75636420.entry.js → p-2880b48c.entry.js} +1 -1
- package/dist/vega/{p-089ad8ac.entry.js → p-2fe20901.entry.js} +1 -1
- package/dist/vega/{p-ecbcbdab.entry.js → p-33cb4317.entry.js} +1 -1
- package/dist/vega/{p-dba16739.js → p-3432909d.js} +1 -1
- package/dist/vega/{p-c85e743d.js → p-34cb5cbd.js} +1 -1
- package/dist/vega/{p-f1eccec7.entry.js → p-35c9fca8.entry.js} +1 -1
- package/dist/vega/{p-b7721666.js → p-39090ec9.js} +1 -1
- package/dist/vega/{p-83e5600a.entry.js → p-3967fa98.entry.js} +1 -1
- package/dist/vega/{p-26c56c5c.entry.js → p-3a265f16.entry.js} +1 -1
- package/dist/vega/{p-96301146.entry.js → p-41a7aa47.entry.js} +1 -1
- package/dist/vega/{p-3b791b5d.js → p-43ed14c4.js} +1 -1
- package/dist/vega/{p-9dd58ae8.js → p-45f19787.js} +1 -1
- package/dist/vega/{p-3749e29b.entry.js → p-478a6229.entry.js} +1 -1
- package/dist/vega/{p-3b3f2e16.entry.js → p-48a182c9.entry.js} +1 -1
- package/dist/vega/{p-5bf3ab33.js → p-4b30ad1f.js} +1 -1
- package/dist/vega/{p-2b518ca7.entry.js → p-4f1a5522.entry.js} +1 -1
- package/dist/vega/{p-f9d33494.entry.js → p-4f91b230.entry.js} +1 -1
- package/dist/vega/{p-120376f6.entry.js → p-502b1318.entry.js} +1 -1
- package/dist/vega/{p-331c3e77.js → p-52bf9fa1.js} +1 -1
- package/dist/vega/{p-9aeff9b4.js → p-5302889d.js} +1 -1
- package/dist/vega/{p-e695657d.entry.js → p-5364c9a2.entry.js} +1 -1
- package/dist/vega/{p-bfafd175.entry.js → p-54de12bb.entry.js} +1 -1
- package/dist/vega/p-55e4e3d4.entry.js +1 -0
- package/dist/vega/{p-e1d2c60d.js → p-593d1a2a.js} +1 -1
- package/dist/vega/p-5a71d7bc.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-610aace7.js +1 -0
- package/dist/vega/{p-dfc9f226.entry.js → p-6826ad74.entry.js} +1 -1
- package/dist/vega/{p-f90ec132.entry.js → p-704fdd95.entry.js} +1 -1
- package/dist/vega/{p-e1fbfd20.js → p-724df1f5.js} +1 -1
- package/dist/vega/{p-1deedff2.entry.js → p-740f3325.entry.js} +1 -1
- package/dist/vega/{p-264b3309.entry.js → p-76075a1c.entry.js} +1 -1
- package/dist/vega/{p-70cd4efd.js → p-78ca326c.js} +1 -1
- package/dist/vega/{p-db90512c.entry.js → p-7bc5f81e.entry.js} +1 -1
- package/dist/vega/{p-95681890.js → p-82e9febb.js} +1 -1
- package/dist/vega/{p-031c0cf7.js → p-8561537b.js} +1 -1
- package/dist/vega/{p-1985f011.entry.js → p-8c351b5f.entry.js} +1 -1
- package/dist/vega/p-8c7a9085.entry.js +1 -0
- package/dist/vega/{p-247308c9.entry.js → p-8ccbd291.entry.js} +1 -1
- package/dist/vega/p-8ce9e214.js +1 -0
- package/dist/vega/{p-ce5b32e8.entry.js → p-915f6e4d.entry.js} +1 -1
- package/dist/vega/{p-f30d8248.entry.js → p-93252b83.entry.js} +1 -1
- package/dist/vega/{p-5373c5e6.entry.js → p-94b085b4.entry.js} +1 -1
- package/dist/vega/{p-202207a2.entry.js → p-983dfd1d.entry.js} +1 -1
- package/dist/vega/{p-1a6f0a51.js → p-98b77a21.js} +1 -1
- package/dist/vega/p-9a6bd32c.js +1 -0
- package/dist/vega/p-9e0f8b46.entry.js +1 -0
- package/dist/vega/{p-34964a53.js → p-a1b0b94f.js} +1 -1
- package/dist/vega/{p-f89d14c9.entry.js → p-a44a9a1b.entry.js} +1 -1
- package/dist/vega/{p-d7ef3516.entry.js → p-a6022174.entry.js} +1 -1
- package/dist/vega/{p-45aaaef6.entry.js → p-a94bffca.entry.js} +1 -1
- package/dist/vega/{p-7f46cc1e.entry.js → p-adc64ff6.entry.js} +1 -1
- package/dist/vega/{p-5c54bb05.entry.js → p-b340a890.entry.js} +1 -1
- package/dist/vega/{p-98e2c103.entry.js → p-b36dc726.entry.js} +1 -1
- package/dist/vega/p-b4bcc41c.entry.js +1 -0
- package/dist/vega/{p-c801c85d.js → p-b6be1f33.js} +1 -1
- package/dist/vega/{p-57edff7d.entry.js → p-b7ecd62d.entry.js} +1 -1
- package/dist/vega/{p-d564ff1e.entry.js → p-b8fc5f38.entry.js} +1 -1
- package/dist/vega/{p-0b4880bd.entry.js → p-be783294.entry.js} +1 -1
- package/dist/vega/{p-57f220b5.js → p-c0a4f6d0.js} +1 -1
- package/dist/vega/{p-12bd4bab.entry.js → p-c44cc5f0.entry.js} +1 -1
- package/dist/vega/p-c4e71db7.js +1 -0
- package/dist/vega/{p-3cea9c0f.entry.js → p-cbb78c3d.entry.js} +1 -1
- package/dist/vega/{p-b042c46d.entry.js → p-d1f19c20.entry.js} +1 -1
- package/dist/vega/{p-dc965280.entry.js → p-d4367e80.entry.js} +1 -1
- package/dist/vega/{p-b208a7cb.entry.js → p-d750c93a.entry.js} +1 -1
- package/dist/vega/{p-33a6a38d.entry.js → p-d78f3135.entry.js} +1 -1
- package/dist/vega/{p-a8a34c79.entry.js → p-d8d76aca.entry.js} +1 -1
- package/dist/vega/{p-13330f58.js → p-d8e1d97d.js} +1 -1
- package/dist/vega/{p-18e8d9b7.js → p-dcf162e9.js} +1 -1
- package/dist/vega/{p-3f854e0a.entry.js → p-de6d28b7.entry.js} +1 -1
- package/dist/vega/{p-89b2a865.entry.js → p-e01d5ee1.entry.js} +1 -1
- package/dist/vega/{p-0ef6ceee.entry.js → p-e234d51a.entry.js} +1 -1
- package/dist/vega/{p-0be4fe08.entry.js → p-e334dc8a.entry.js} +1 -1
- package/dist/vega/p-e5226de6.entry.js +1 -0
- package/dist/vega/{p-99d05b8f.entry.js → p-ea0b1a77.entry.js} +1 -1
- package/dist/vega/{p-0adb76a2.entry.js → p-eb78a2f2.entry.js} +1 -1
- package/dist/vega/{p-e27626f6.js → p-eca16761.js} +1 -1
- package/dist/vega/{p-4c210e31.entry.js → p-eee880c2.entry.js} +1 -1
- package/dist/vega/{p-801ee68b.js → p-f39bd4b1.js} +1 -1
- package/dist/vega/{p-9f99a5d7.entry.js → p-f8077fbd.entry.js} +1 -1
- package/dist/vega/{p-2946f85e.entry.js → p-f8e617fd.entry.js} +1 -1
- package/dist/vega/{p-b6d7faa2.entry.js → p-fbcfdeb5.entry.js} +1 -1
- package/dist/vega/{p-60c7ed92.entry.js → p-fd8c9a92.entry.js} +1 -1
- package/dist/vega/{p-f235be72.js → p-fda81c61.js} +1 -1
- package/dist/vega/{p-295326ca.entry.js → p-fe220f3a.entry.js} +1 -1
- package/dist/vega/p-feb6718c.entry.js +1 -0
- package/dist/vega/{p-115d6053.entry.js → p-ff5208f5.entry.js} +1 -1
- package/dist/vega/{p-b2df5cb1.js → p-ffc58d14.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +4 -4
- package/dist/vega/p-329541e0.js +0 -1
- package/dist/vega/p-358b4a06.entry.js +0 -1
- package/dist/vega/p-3f566d54.js +0 -1
- package/dist/vega/p-4415ad28.js +0 -1
- package/dist/vega/p-51fcb07f.entry.js +0 -1
- package/dist/vega/p-593e0f80.js +0 -1
- package/dist/vega/p-7b7a70b5.entry.js +0 -1
- package/dist/vega/p-9f728e0b.js +0 -1
- package/dist/vega/p-dbdc9e35.js +0 -1
- package/dist/vega/p-ef44af22.entry.js +0 -1
- package/dist/vega/p-f0388529.entry.js +0 -1
- package/dist/vega/p-fa17fe93.entry.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 t,r as e,c as i,H as s,g as n}from"./p-6b2342e0.js";import{s as a}from"./p-519a7d55.js";import{c as o,V as r,I as l}from"./p-6e1ab235.js";import{V as f,I as p}from"./p-
|
|
1
|
+
import{h as t,r as e,c as i,H as s,g as n}from"./p-6b2342e0.js";import{s as a}from"./p-519a7d55.js";import{c as o,V as r,I as l}from"./p-6e1ab235.js";import{V as f,I as p}from"./p-8ce9e214.js";import{c as h}from"./p-de7109d3.js";import{a as d,x as c}from"./p-9af0e2e7.js";import{c as m}from"./p-6ac8e655.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-11e2dcf5.js";import"./p-331a62d5.js";import"./p-ec2a1d4c.js";import"./p-f1c672e4.js";import"./p-b75ee3ba.js";var x=function(t,e,i,s){var n,a=arguments.length,o=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(o=(a<3?n(o):a>3?n(e,i,o):n(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o};class g extends r{constructor(){super(...arguments),this.handleSuffixButtonClick=t=>{t.stopPropagation(),this.suffixButtonClickEventEmitter.emit()}}render(){if(this.suffixButtonConfig||this.suffixButtonProps){const{icon:e,text:i,size:s,minWidth:n,maxWidth:a,placement:o="right",alignment:r="start",trigger:l="hover"}=this.suffixButtonConfig||this.suffixButtonProps&&{icon:this.suffixButtonProps.icon,text:this.suffixButtonProps.tooltipText,trigger:this.suffixButtonProps.trigger};return t("div",{class:"label-suffix-button",role:"button",tabIndex:0,onClick:this.handleSuffixButtonClick,onKeyDown:m()},i?t("vega-tooltip",{trigger:l,text:i,size:s,minWidth:n,maxWidth:a,alignment:r,placement:o},this.renderSuffixButton(e)):this.renderSuffixButton(e))}}renderSuffixButton(e){return t("vega-button-circle",{size:"extra-small",variant:"icon-only",iconColor:"text-link",showTooltip:!1,icon:e})}}x([o()],g.prototype,"suffixButtonProps",void 0),x([o()],g.prototype,"suffixButtonConfig",void 0),x([o()],g.prototype,"suffixButtonClickEventEmitter",void 0);var b=function(t,e,i,s){var n,a=arguments.length,o=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(o=(a<3?n(o):a>3?n(e,i,o):n(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o};const u=class{constructor(t){e(this,t),this.vegaClick=i(this,"vegaClick",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",1),this.labelButtonClick=i(this,"labelButtonClick",1),this.globalSlimmers={},this.clickEventEmitter=h(u,d),this.suffixButtonClickEventEmitter=h(u,c),this.vegaComponentUsageRuntimeMetricsSlimmer=new f,this.suffixElementRenderer=new g,this.suffixButtonProps=null,this.suffixButtonConfig=null,this.label="",this.isFieldRequired=!1,this.disabled=!1,this.handleClick=t=>{this.clickEventEmitter.emit(void 0,t)}}componentWillLoad(){""===this.label&&(this.label=this.host.textContent,this.host.textContent="")}render(){return a(t(s,{class:{hidden:""===this.label,disabled:this.disabled},onClick:this.handleClick},t("label",null,t("span",{class:"vega-field-label"},this.label),t("span",{class:{"vega-field-label-required":!0,hidden:!this.isFieldRequired}},"*")),this.suffixElementRenderer.render()),this.host)}get host(){return n(this)}};b([p()],u.prototype,"globalSlimmers",void 0),b([l()],u.prototype,"clickEventEmitter",void 0),b([l()],u.prototype,"suffixButtonClickEventEmitter",void 0),b([l()],u.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b([l()],u.prototype,"suffixElementRenderer",void 0),u.style=':host{display:inline-block}:host(.disabled){pointer-events:none}:host(.hidden){display:none}label:first-of-type{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;word-break:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){label:first-of-type{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){label:first-of-type{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){label:first-of-type{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host(.disabled)>label>span.vega-field-label{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-field-label-required{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px}.vega-field-label-required.hidden{display:none}.label-suffix-button{display:inline-block;margin-left:4px;vertical-align:top}';export{u as vega_field_label}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,r as e,c as i,H as n,g as s}from"./p-6b2342e0.js";import{I as o}from"./p-abd7aeaa.js";import{M as a,a as r}from"./p-f0ff4463.js";import{M as l,a as p}from"./p-cdbbdcc2.js";import{R as c}from"./p-280cbcdb.js";import{s as d}from"./p-519a7d55.js";import{C as h}from"./p-75b58efe.js";import{c as u,V as f,M as g,I as v}from"./p-6e1ab235.js";import{s as m}from"./p-6bd5c49b.js";import{V as x,I as b}from"./p-4415ad28.js";import{F as w}from"./p-b2df5cb1.js";import{c as y}from"./p-de7109d3.js";import{a as C,x as j,V as k,i as I,F as R,G as S,H as z,I as O,J as D}from"./p-9af0e2e7.js";import{S as E}from"./p-34964a53.js";import{S as T}from"./p-b7721666.js";import{i as V}from"./p-e4c4ea35.js";import{S as M}from"./p-9aeff9b4.js";import{i as L}from"./p-d27ae9ff.js";import{d as F}from"./p-a841cf13.js";import{o as N,p as A,q as P,l as B}from"./p-6c43d54a.js";import{D as $,d as _}from"./p-11e2dcf5.js";import{P as U}from"./p-81dd00d0.js";import{S as W}from"./p-158108ea.js";import{V as K}from"./p-e1fbfd20.js";import{c as q}from"./p-6ac8e655.js";import{C as H}from"./p-2d0d575f.js";import{F as G}from"./p-a528714c.js";import{C as J}from"./p-8187878e.js";import{A as X}from"./p-bdb5180c.js";import{M as Y}from"./p-78a57a17.js";import"./p-262ec334.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-ec2a1d4c.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-3b791b5d.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-52b8f2d2.js";import"./p-f1c672e4.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-04cef724.js";import"./p-49a2e141.js";import"./p-e6adf829.js";import"./p-593e0f80.js";const Q=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;class Z extends o{evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=Q.test(t.toLowerCase());return{isValid:e,message:e?"":"Please enter the correct email format."}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&t.length>0}}class tt extends f{getCopyPasteProps(){return this.disableCopyPaste?{onCopy:this.preventDefault,onCut:this.preventDefault,onPaste:this.preventDefault}:{}}preventDefault(t){t.preventDefault()}}!function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([u()],tt.prototype,"disableCopyPaste",void 0);var et=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class it extends f{render(){const e=this.hasPrefixSlot();if(this.prefixIcon||e)return t("div",{class:{"vega-input-prefix":!0,"vega-input-prefix-slot":e},part:"prefix-icon-container"},this.prefixIcon&&!e?t("vega-icon",{icon:this.prefixIcon,size:"size-16","aria-hidden":"true"}):null,t("slot",{name:"prefix-icon"}))}hasPrefixSlot(){return!!this.host.querySelector('[slot="prefix-icon"]')}}et([u()],it.prototype,"host",void 0),et([u()],it.prototype,"prefixIcon",void 0);class nt extends T{constructor(t=!1){super(),this.overrideValue=t}format(t){if(!t.length)return t;const e=Number(t.replace(/,/g,""));return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e.toLocaleString("en-US"):t}calculateCaretPosition(t,e){const i=this.format(t),n=t.substring(0,e),s=i.substring(0,e),o=(n.match(/,/g)||[]).length;return e+((s.match(/,/g)||[]).length-o)}}class st extends T{constructor(t,e=!1){super(),this.maskConfig={allowNegative:!0},this.skipFormat=t=>this.maskConfig.allowNegative&&"-"===t||null!=this.maskConfig.precision&&this.maskConfig.precision>0&&t.split(".").length-1==1&&t.endsWith(".")&&!t.startsWith("."),this.maskConfig=Object.assign(Object.assign({},this.maskConfig),t),this.overrideValue=e,this.mask=new RegExp(this.getRegExp())}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t)&&i.pop()}return i.join("")}calculateCaretPosition(t,e){if(V(e)){const i=this.redressAbnormalNumber(t);return e-(t.length-i.length)}}inputNeedFormat(t){return!this.mask.test(t)}redressAbnormalNumber(t){let e=t.replace(/^0+(?!$)/,"");return e.startsWith(".")&&(e=`0${e}`),e}getRegExp(){const t=this.maskConfig.allowNegative?"(\\-)?":"";let e;return e=0===this.maskConfig.precision?`^${t}(0|[1-9][0-9]*)$`:this.maskConfig.precision&&this.maskConfig.precision>0?`^${t}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`:`^${t}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`,e}}class ot extends T{constructor(t,e=!1,i=!1){super(),this.resetCaretPositionFlag=!1,this.formatter=t,this.resetCaretPositionFlag=e,this.overrideValue=i}format(t){return this.formatter(t)}calculateCaretPosition(t,e){if(!0===this.resetCaretPositionFlag)return this.format(t).length;if(V(e)){const i=t.substring(0,e);return e+(this.format(i).length-i.length)}}shouldTriggerAtInit(){return!0}}class at extends st{constructor(t,e=!1){super(t,e)}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t.replace(/,/g,""))&&i.pop()}return this.thousandCommaFormat(i.join(""))}calculateCaretPosition(t,e){const i=this.redressAbnormalNumber(t),n=this.format(t),s=t.substring(0,e),o=n.substring(0,e),a=(s.match(/,/g)||[]).length;return e+((o.match(/,/g)||[]).length-a)-(t.length-i.length)}thousandCommaFormat(t){if(!t.length)return t;const e=t.replace(/[^\d.-]/g,""),i=e.indexOf("."),n=e.length>1&&i>=1?e.slice(i):"",s=Number(e.split(".")[0]);return!isNaN(s)&&s<=Number.MAX_SAFE_INTEGER?s.toLocaleString("en-US")+n:e}}var rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class lt extends M{constructor(){super(...arguments),this.getInputElementRef=()=>this.inputRenderer.getInputRef(),this.getInputModeStrategy=()=>this.generateMaskStrategy("input"),this.getBlurModeStrategy=()=>this.generateMaskStrategy("blur")}connectedCallback(){this.initSetupMaskConfigObserver()}disconnectedCallback(){this.removeSetupMaskConfigObserver()}watchValue(t,e){t!==e&&this.formatValueAfterValueChange()}watchMaskChange(t,e){this.areMaskConfigsEqual(t,e)||this.setup()}watchTypeChange(t,e){"number"!==t&&"number"!==e||this.setup()}generateMaskStrategy(t){let e=null;Array.isArray(this.maskConfig)?e=this.maskConfig.find((e=>"blur"===t?this.isBlurModeMaskConfig(e):!this.isBlurModeMaskConfig(e))):this.maskConfig&&("blur"===t&&this.isBlurModeMaskConfig(this.maskConfig)?e=this.maskConfig:"input"!==t||this.isBlurModeMaskConfig(this.maskConfig)||(e=this.maskConfig));let i=null;switch(null==e?void 0:e.type){case"phone":i=E.getPhoneMaskStrategy(e.overrideValue);break;case"taxId":i=E.getTaxIdMaskStrategy(e.overrideValue);break;case"zipcode":i=E.getZipcodeMaskStrategy(e.overrideValue);break;case"thousand-comma":i=new nt(e.overrideValue);break;case"number":i=this.getNumberTypeMaskStrategy(e.options,e.overrideValue);break;case"custom":i=e.strategy?e.strategy():new E(e.options,e.overrideValue);break;case"custom-formatter":i=new ot(e.formatter,e.resetCaretPosition,e.overrideValue)}return"number"!==this.type||"input"!==t||e||(i=new st({},null==e?void 0:e.overrideValue)),i}getNumberTypeMaskStrategy(t,e=!1){return t&&t.thousandComma?new at(t,e):new st(t,e)}isBlurModeMaskConfig(t){return"blur"===t.trigger}areMaskConfigsEqual(t,e){const i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return L(i,n,!0,((t,e)=>F(t,e)?0:-1))}initSetupMaskConfigObserver(){$.addUniqueObserverToNode(this.host,N,this.setup.bind(this))}removeSetupMaskConfigObserver(){$.removeUniqueObserverFromNode(this.host,N)}}rt([u()],lt.prototype,"maskConfig",void 0),rt([u()],lt.prototype,"disableCopyPaste",void 0),rt([u()],lt.prototype,"type",void 0),rt([u()],lt.prototype,"inputRenderer",void 0),rt([g("connectedCallback")],lt.prototype,"connectedCallback",null),rt([g("disconnectedCallback")],lt.prototype,"disconnectedCallback",null),rt([g("watchValue")],lt.prototype,"watchValue",null),rt([g("watchMaskChange")],lt.prototype,"watchMaskChange",null),rt([g("watchTypeChange")],lt.prototype,"watchTypeChange",null);const pt=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!1===t.autoValidation},{payloadKey:"EMAIL_IS_TRUE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!0===t.email},{payloadKey:"EMAIL_IS_FALSE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!1===t.email}];var ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class dt extends f{componentDidLoad(){this.setInputAutoWidth()}watchValue(){this.setInputAutoWidth()}watchSuffixText(){this.setInputAutoWidth()}setInputAutoWidth(){const t=this.host.shadowRoot.querySelector(".vega-input-container"),e=null==t?void 0:t.querySelector(".vega-input-input"),i=null==e?void 0:e.querySelector("input");if(i&&(t.classList.remove("auto-width"),i.style.removeProperty("width"),this.isCompactInputWidth&&this.suffixText)){const n=this.getActualInputWidth();e.getBoundingClientRect().width>n&&(i.style.width=`${n}px`,t.classList.add("auto-width"))}}getActualInputWidth(){const t=this.getCalculateTextWidthContainer();t.style.display="inline-block",t.textContent=`${this.value||this.placeholder||""}`;const e=t.getBoundingClientRect().width;return t.style.display="none",e}getCalculateTextWidthContainer(){if(!this.calculateTextWidthContainer){const t=document.createElement("div");t.classList.add("v-font-field-value"),t.style.visibility="hidden",t.style.display="none",this.host.shadowRoot.append(t),this.calculateTextWidthContainer=t}return this.calculateTextWidthContainer}}ct([u()],dt.prototype,"host",void 0),ct([u()],dt.prototype,"value",void 0),ct([u()],dt.prototype,"placeholder",void 0),ct([u()],dt.prototype,"isCompactInputWidth",void 0),ct([u()],dt.prototype,"suffixText",void 0),ct([g("componentDidLoad")],dt.prototype,"componentDidLoad",null),ct([g("watchValue")],dt.prototype,"watchValue",null),ct([g("watchSuffixText")],dt.prototype,"watchSuffixText",null);var ht=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class ut extends W{constructor(){super({parent:"vega-input-numeric",subStates:[{subStateName:"prefixText",parentStateName:"prefixText"},{subStateName:"suffixText",parentStateName:"suffixText"},{subStateName:"isCompactInputWidth",parentStateName:"isCompactInputWidth"}]})}}ht([u()],ut.prototype,"host",void 0),ht([u({writable:!0})],ut.prototype,"prefixText",void 0),ht([u({writable:!0})],ut.prototype,"suffixText",void 0),ht([u({writable:!0})],ut.prototype,"isCompactInputWidth",void 0);var ft=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class gt extends f{render(){return t("vega-button-circle",{icon:K.getIconKey(this.isPasswordDisplay?"eye":"eye-slash"),variant:"icon-only",size:"small",class:"password-eye-button",ref:t=>{this.addEyeIconObserver(t)}})}addEyeIconObserver(t){$.addUniqueObserverToNode(t,C,(()=>{this.isPasswordDisplay=!this.isPasswordDisplay}))}}K.register({eye:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>'},"eye-slash":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>'}}),ft([u()],gt.prototype,"host",void 0),ft([u({writable:!0})],gt.prototype,"isPasswordDisplay",void 0),ft([u()],gt.prototype,"type",void 0);var vt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class mt extends f{constructor(){super(...arguments),this.renderPrefixText=()=>this.prefixText&&t("div",{class:"prefix-text"},this.prefixText),this.renderSuffixText=()=>this.suffixText&&t("div",{class:"suffix-text"},this.suffixText),this.onClickClearIcon=()=>{H.notify(_.getSubject(this.host,A),"")},this.isClearIconVisible=()=>!this.disabled&&Boolean(this.value),this.onClearInputFocus=()=>{this.inputContainerRef.classList.add("no-focus")},this.onClearInputBlur=()=>{this.inputContainerRef.classList.remove("no-focus")},this.onContainerClick=()=>{H.notify(_.getSubject(this.host,P),{})}}getInputContainerRef(){return this.inputContainerRef}render(){return t("div",{ref:t=>this.inputContainerRef=t,part:"input-container",class:{"vega-input-container":!0,"with-value":!!this.value,[`vega-input-size-${this.size}`]:!0,"vega-input-disabled":this.disabled,"compact-input-width":this.isCompactInputWidth},onClick:this.onContainerClick,"aria-disabled":this.disabled?"true":void 0,onKeyDown:q()},this.prefixSlotRenderer.render(),this.renderPrefixText(),this.inputRenderer.render(),this.renderSuffixText(),"password"===this.type?this.passwordEyeRenderer.render():this.showClearIcon&&this.renderClearIcon())}renderClearIcon(){return t("div",{class:{"vega-input-clear-icon":!0,invisible:!this.isClearIconVisible()},tabIndex:this.disabled?-1:0,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:q(),onFocusin:this.onClearInputFocus,onFocusout:this.onClearInputBlur},t("vega-icon",{icon:"close"}))}}vt([u()],mt.prototype,"host",void 0),vt([u()],mt.prototype,"value",void 0),vt([u()],mt.prototype,"size",void 0),vt([u()],mt.prototype,"disabled",void 0),vt([u()],mt.prototype,"type",void 0),vt([u()],mt.prototype,"showClearIcon",void 0),vt([u()],mt.prototype,"prefixText",void 0),vt([u()],mt.prototype,"suffixText",void 0),vt([u()],mt.prototype,"isCompactInputWidth",void 0),vt([u()],mt.prototype,"prefixSlotRenderer",void 0),vt([u()],mt.prototype,"passwordEyeRenderer",void 0),vt([u()],mt.prototype,"inputRenderer",void 0);var xt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class bt extends f{constructor(){super(...arguments),this.setInputRef=t=>{t&&this.inputRef!==t&&(this.inputRef=t,this.notifySetupMaskConfig())},this.handleInputFocus=t=>{this.focusEventEmitter.emit(void 0,t)},this.handleInputBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.handleInputPaste=t=>{this.pasteEventEmitter.emit(t.clipboardData).defaultPrevented&&t.preventDefault()},this.onInputHandler=()=>{"change"!==this.valueUpdateTrigger&&this.notifyInputValueChange()},this.inputChangeHandler=()=>{"change"===this.valueUpdateTrigger&&this.notifyInputValueChange()}}connectedCallback(){this.initInputFocusObserver()}disconnectedCallback(){this.removeInputFocusObserver()}doFocus(){this.focusInput()}doBlur(){this.inputRef.blur()}getInputRef(){return this.inputRef}render(){return t("div",{class:"vega-input-input"},t("input",Object.assign({part:"input",name:this.name,type:this.getInputType(),autoComplete:this.autocomplete,inputmode:this.inputmode,enterkeyhint:this.enterkeyhint,readOnly:this.readOnly,value:this.value,ref:this.setInputRef,placeholder:this.placeholder,disabled:this.disabled,minLength:this.minLength,maxLength:this.maxLength,onBlur:t=>this.handleInputBlur(t),onFocus:t=>this.handleInputFocus(t),onChange:this.inputChangeHandler,onInput:this.onInputHandler,onPaste:t=>this.handleInputPaste(t)},this.copyPasteController.getCopyPasteProps())))}getInputType(){switch(this.type){case"number":return"text";case"password":return this.isPasswordDisplay?"text":"password";default:return this.type}}notifyInputValueChange(){this.inputRef.value!==this.value&&this.nativeInputChangeEventEmitter.emit(this.inputRef.value),H.notify(_.getSubject(this.host,A),this.inputRef.value)}notifySetupMaskConfig(){H.notify(_.getSubject(this.host,N),{})}initInputFocusObserver(){$.addUniqueObserverToNode(this.host,P,this.focusInput.bind(this))}removeInputFocusObserver(){$.removeUniqueObserverFromNode(this.host,P)}focusInput(){this.inputRef.focus()}}xt([u()],bt.prototype,"host",void 0),xt([u()],bt.prototype,"value",void 0),xt([u()],bt.prototype,"disabled",void 0),xt([u()],bt.prototype,"type",void 0),xt([u()],bt.prototype,"name",void 0),xt([u()],bt.prototype,"autocomplete",void 0),xt([u()],bt.prototype,"inputmode",void 0),xt([u()],bt.prototype,"enterkeyhint",void 0),xt([u()],bt.prototype,"readOnly",void 0),xt([u()],bt.prototype,"placeholder",void 0),xt([u()],bt.prototype,"minLength",void 0),xt([u()],bt.prototype,"maxLength",void 0),xt([u()],bt.prototype,"isPasswordDisplay",void 0),xt([u()],bt.prototype,"valueUpdateTrigger",void 0),xt([u()],bt.prototype,"focusEventEmitter",void 0),xt([u()],bt.prototype,"blurEventEmitter",void 0),xt([u()],bt.prototype,"pasteEventEmitter",void 0),xt([u()],bt.prototype,"copyPasteController",void 0),xt([u()],bt.prototype,"nativeInputChangeEventEmitter",void 0),xt([g("connectedCallback")],bt.prototype,"connectedCallback",null),xt([g("disconnectedCallback")],bt.prototype,"disconnectedCallback",null),xt([g("doFocus")],bt.prototype,"doFocus",null),xt([g("doBlur")],bt.prototype,"doBlur",null);var wt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class yt extends f{constructor(){super(...arguments),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()},this.handleLabelClick=()=>{H.notify(_.getSubject(this.host,P),{})}}render(){return t("div",{class:"vega-input",part:"container-wrapper"},this.renderLabelDom(),this.renderInputContainer(),this.renderHintDom())}renderInputContainer(){return this.renderModeController.isSource()||this.renderModeController.isTemplate()?this.inputSuggestionsRenderer.render(this.inputContainerRenderer.render()):this.inputContainerRenderer.render()}renderLabelDom(){return t("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonProps:this.labelSuffixButtonProps,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{$.addUniqueObserverToNode(t,j,this.handleLabelButtonClick),$.addUniqueObserverToNode(t,C,this.handleLabelClick)}})}renderHintDom(){return""!==this.hint?t("div",{class:"vega-hint"},t("label",null,this.hint)):null}}wt([u()],yt.prototype,"host",void 0),wt([u()],yt.prototype,"disabled",void 0),wt([u()],yt.prototype,"required",void 0),wt([u()],yt.prototype,"label",void 0),wt([u()],yt.prototype,"hint",void 0),wt([u()],yt.prototype,"labelSuffixButtonProps",void 0),wt([u()],yt.prototype,"labelSuffixButtonConfig",void 0),wt([u()],yt.prototype,"labelButtonClickEventEmitter",void 0),wt([u()],yt.prototype,"inputContainerRenderer",void 0),wt([u()],yt.prototype,"inputSuggestionsRenderer",void 0),wt([u()],yt.prototype,"renderModeController",void 0);var Ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class jt extends f{connectedCallback(){this.initValueUpdateObserver()}disconnectedCallback(){this.removeValueUpdateObserver()}watchValue(t){this.changeEventEmitter.emit(t);const e=this.inputRenderer.getInputRef();e.value!==this.value&&(e.value=this.value),H.notify(G,{host:this.host,detail:this.value})}initValueUpdateObserver(){$.addUniqueObserverToNode(this.host,A,this.setValue.bind(this))}removeValueUpdateObserver(){$.removeUniqueObserverFromNode(this.host,A)}setValue(t){this.value=t}}Ct([u()],jt.prototype,"host",void 0),Ct([u({writable:!0})],jt.prototype,"value",void 0),Ct([u()],jt.prototype,"changeEventEmitter",void 0),Ct([u()],jt.prototype,"inputRenderer",void 0),Ct([g("connectedCallback")],jt.prototype,"connectedCallback",null),Ct([g("disconnectedCallback")],jt.prototype,"disconnectedCallback",null),Ct([g("watchValue")],jt.prototype,"watchValue",null);var kt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class It extends f{constructor(){super(...arguments),this.templateItems=[],this.onDropdownItemClick=async t=>{const e=this.renderModeController.isTemplate()?this.templateItems:this.suggestionsDropdownSource,i=this.findItem(e,t.detail);if(i){const t=this.suggestionItemClickEventEmitter.emit(i);H.notify(_.getSubject(this.host,A),t.defaultPrevented?this.value:i.label)}}}appendHostItemsToDropdown(){this.renderModeController.isTemplate()&&this.itemsSlotRef&&this.dropdownRef&&(this.itemsSlotRef.remove(),this.dropdownRef.append(this.host.querySelector("[slot=items]")))}async showSuggestionsDropdown(t={}){this.suggestionsDropdownConfig=t,await this.showSuggestions()}async hideSuggestionsDropdown(){await this.dropdownRef.hide()}async watchValue(){await this.searchSuggestions()}async watchSuggestionsDropdownSource(){await this.searchSuggestions()}render(e){return t("vega-dropdown",Object.assign({},this.suggestionsDropdownConfig,{source:this.suggestionsDropdownSource,trigger:new J,matchTargetWidth:!0,searchable:!1,placement:["top","bottom"],translocation:{X:0,Y:6},ref:t=>{this.dropdownRef=t,this.addDropdownObserver(t)},style:{display:"block"}}),e,this.renderItemsSlot())}renderItemsSlot(){return this.renderModeController.isTemplate()&&t("div",{slot:"items",ref:t=>{this.itemsSlotRef=t}})}addDropdownObserver(t){$.addUniqueObserverToNode(t,k,this.onDropdownItemClick.bind(this)),$.addUniqueObserverToNode(t,B,(t=>{this.templateItems=Array.from(t).map((t=>({key:t.itemKey,label:t.label})))}))}findItem(t,e){for(const i of t){if(i.children&&i.children.length>0){const t=this.findItem(i.children,e);if(t)return t}if(i.key.toString()===e)return i}return null}async showSuggestions(){this.dropdownRef&&(this.renderModeController.isSource()||this.renderModeController.isTemplate())&&await this.dropdownRef.show()}async searchSuggestions(){this.dropdownRef&&this.renderModeController.isSource()&&this.suggestionsDropdownSource.length>0&&await this.dropdownRef.search(this.value)}}kt([u()],It.prototype,"host",void 0),kt([u()],It.prototype,"value",void 0),kt([u({writable:!0})],It.prototype,"suggestionsDropdownConfig",void 0),kt([u()],It.prototype,"suggestionsDropdownSource",void 0),kt([u()],It.prototype,"renderModeController",void 0),kt([u()],It.prototype,"suggestionItemClickEventEmitter",void 0),kt([g("componentDidLoad")],It.prototype,"appendHostItemsToDropdown",null),kt([g("showSuggestionsDropdown")],It.prototype,"showSuggestionsDropdown",null),kt([g("hideSuggestionsDropdown")],It.prototype,"hideSuggestionsDropdown",null),kt([g("watchValue")],It.prototype,"watchValue",null),kt([g("watchSuggestionsDropdownSource")],It.prototype,"watchSuggestionsDropdownSource",null);var Rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class St extends f{constructor(){super(...arguments),this.hasItemsSlot=!1}connectedCallback(){this.setRenderMode()}isSource(){return Array.isArray(this.suggestionsDropdownSource)}isTemplate(){return this.hasItemsSlot}setRenderMode(){this.hasItemsSlot=!!this.host.querySelector("[slot=items]")}}Rt([u()],St.prototype,"host",void 0),Rt([u()],St.prototype,"suggestionsDropdownSource",void 0),Rt([g("connectedCallback")],St.prototype,"connectedCallback",null);var zt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends Y{constructor(t){super({options:{attributes:!0,attributeFilter:[Ot.OBSERVED_ATTRIBUTE]},callback:()=>{this.performMapping()}}),this.targetGetter=t}componentDidLoad(){this.performMapping(),super.componentDidLoad&&super.componentDidLoad()}componentDidRender(){this.performMapping()}performMapping(){const t=this.targetGetter?this.targetGetter():null;if(!t)return;const e=this.host.getAttribute(Ot.OBSERVED_ATTRIBUTE);if(this.shouldRemoveTabIndex(e))return void t.removeAttribute("tabindex");const i=String(e);t.getAttribute("tabindex")!==i&&t.setAttribute("tabindex",i)}shouldRemoveTabIndex(t){if(null==t)return!0;const e=String(t).trim().toLowerCase();return""===e||"null"===e||"undefined"===e}}Ot.OBSERVED_ATTRIBUTE="data-tabindex",zt([g("componentDidLoad")],Ot.prototype,"componentDidLoad",null),zt([g("componentDidRender")],Ot.prototype,"componentDidRender",null);var Dt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};const Et=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaNativeInputChange=i(this,"vegaNativeInputChange",7),this.nativeInputChange=i(this,"nativeInputChange",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",7),this.labelButtonClick=i(this,"labelButtonClick",7),this.vegaPaste=i(this,"vegaPaste",7),this.paste=i(this,"paste",7),this.vegaSuggestionItemClick=i(this,"vegaSuggestionItemClick",7),this.suggestionItemClick=i(this,"suggestionItemClick",7),this.globalSlimmers={},this.ariaAttributesValueMapper=new X((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"},"aria-hidden":{dependency:["data-aria-hidden"],defaultValue:null}}),this.dataTabIndexValueMapper=new Ot((()=>this.host.shadowRoot.querySelector("input"))),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new c:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new a({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new r({maxValue:t}):null},{propertyName:"minLength",ruleFactory:t=>t?new l({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new p({maxStrLength:t}):null},{propertyName:"email",ruleFactory:t=>t?new Z:null},{propertyName:"type",ruleFactory:t=>"email"===t?new Z:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRenderer.getInputContainerRef(),touchableAreaGetter:()=>[this.inputRenderer.getInputRef()]}),this.pageResizeObserverSlimmer=new U({callback:()=>this.compactWidthController.setInputAutoWidth()}),this.renderModeController=new St,this.copyPasteController=new tt,this.compactWidthController=new dt,this.stateController=new ut,this.maskConfigController=new lt,this.valueController=new jt,this.prefixSlotRenderer=new it,this.renderer=new yt,this.inputContainerRenderer=new mt,this.inputRenderer=new bt,this.inputSuggestionsRenderer=new It,this.changeEventEmitter=y(Et,I),this.nativeInputChangeEventEmitter=y(Et,R),this.focusEventEmitter=y(Et,S),this.blurEventEmitter=y(Et,z),this.labelButtonClickEventEmitter=y(Et,j),this.suggestionItemClickEventEmitter=y(Et,O),this.pasteEventEmitter=y(Et,D),this.vegaComponentUsageRuntimeMetricsSlimmer=new x(pt),this.passwordEyeRenderer=new gt,this.label="",this.labelSuffixButtonProps=null,this.labelSuffixButtonConfig=null,this.value="",this.valueUpdateTrigger="input",this.type="text",this.name="",this.autocomplete="off",this.readOnly=!1,this.email=!1,this.required=!1,this.min=null,this.max=null,this.minLength=null,this.maxLength=null,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.size="default",this.disabled=!1,this.hint="",this.disableCopyPaste=!1}watchSuffixText(){}watchValue(t){}watchTypeChange(t,e){}watchValidationRules(){}watchMaskChange(t,e){}watchSuggestionsDropdownSource(){}async doFocus(){}async doBlur(){}async showSuggestionsDropdown(t){}async hideSuggestionsDropdown(){}render(){return m(t("slot",null)),d(t(n,{class:"hidden"===this.type?"vega-input-hidden":"vega-input-inline-block"},this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{suffixText:["watchSuffixText"],value:["watchValue"],type:["watchTypeChange"],validationRules:["watchValidationRules"],maskConfig:["watchMaskChange"],suggestionsDropdownSource:["watchSuggestionsDropdownSource"]}}};Dt([b()],Et.prototype,"globalSlimmers",void 0),Dt([v()],Et.prototype,"ariaAttributesValueMapper",void 0),Dt([v()],Et.prototype,"dataTabIndexValueMapper",void 0),Dt([v()],Et.prototype,"formFieldController",void 0),Dt([v()],Et.prototype,"pageResizeObserverSlimmer",void 0),Dt([v()],Et.prototype,"renderModeController",void 0),Dt([v()],Et.prototype,"copyPasteController",void 0),Dt([v()],Et.prototype,"compactWidthController",void 0),Dt([v()],Et.prototype,"stateController",void 0),Dt([v()],Et.prototype,"maskConfigController",void 0),Dt([v()],Et.prototype,"valueController",void 0),Dt([v()],Et.prototype,"prefixSlotRenderer",void 0),Dt([v()],Et.prototype,"renderer",void 0),Dt([v()],Et.prototype,"inputContainerRenderer",void 0),Dt([v()],Et.prototype,"inputRenderer",void 0),Dt([v()],Et.prototype,"inputSuggestionsRenderer",void 0),Dt([v()],Et.prototype,"changeEventEmitter",void 0),Dt([v()],Et.prototype,"nativeInputChangeEventEmitter",void 0),Dt([v()],Et.prototype,"focusEventEmitter",void 0),Dt([v()],Et.prototype,"blurEventEmitter",void 0),Dt([v()],Et.prototype,"labelButtonClickEventEmitter",void 0),Dt([v()],Et.prototype,"suggestionItemClickEventEmitter",void 0),Dt([v()],Et.prototype,"pasteEventEmitter",void 0),Dt([v()],Et.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt([v()],Et.prototype,"passwordEyeRenderer",void 0),Dt([h()],Et.prototype,"watchMaskChange",null),Et.style=':host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{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))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):focus-within{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))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):focus-within{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))}.vega-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input input{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-input-input input{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-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.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}}.vega-error{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));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@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-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}';export{Et as vega_input}
|
|
1
|
+
import{h as t,r as e,c as i,H as n,g as s}from"./p-6b2342e0.js";import{I as o}from"./p-abd7aeaa.js";import{M as a,a as r}from"./p-f0ff4463.js";import{M as l,a as p}from"./p-cdbbdcc2.js";import{R as c}from"./p-280cbcdb.js";import{s as d}from"./p-519a7d55.js";import{C as h}from"./p-75b58efe.js";import{c as u,V as f,M as g,I as v}from"./p-6e1ab235.js";import{s as m}from"./p-6bd5c49b.js";import{V as x,I as b}from"./p-8ce9e214.js";import{F as w}from"./p-ffc58d14.js";import{c as y}from"./p-de7109d3.js";import{a as C,x as j,V as k,i as I,F as R,G as S,H as z,I as O,J as D}from"./p-9af0e2e7.js";import{S as E}from"./p-a1b0b94f.js";import{S as T}from"./p-39090ec9.js";import{i as V}from"./p-25983017.js";import{S as M}from"./p-5302889d.js";import{i as L}from"./p-d27ae9ff.js";import{d as F}from"./p-a841cf13.js";import{o as N,p as A,q as P,l as B}from"./p-6c43d54a.js";import{D as $,d as _}from"./p-11e2dcf5.js";import{P as U}from"./p-81dd00d0.js";import{S as W}from"./p-158108ea.js";import{V as K}from"./p-724df1f5.js";import{c as q}from"./p-6ac8e655.js";import{C as H}from"./p-2d0d575f.js";import{F as G}from"./p-a528714c.js";import{C as J}from"./p-8187878e.js";import{A as X}from"./p-bdb5180c.js";import{M as Y}from"./p-78a57a17.js";import"./p-262ec334.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-ec2a1d4c.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-43ed14c4.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-52b8f2d2.js";import"./p-f1c672e4.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-04cef724.js";import"./p-49a2e141.js";import"./p-1704ff25.js";import"./p-9a6bd32c.js";const Q=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;class Z extends o{evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=Q.test(t.toLowerCase());return{isValid:e,message:e?"":"Please enter the correct email format."}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&t.length>0}}class tt extends f{getCopyPasteProps(){return this.disableCopyPaste?{onCopy:this.preventDefault,onCut:this.preventDefault,onPaste:this.preventDefault}:{}}preventDefault(t){t.preventDefault()}}!function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([u()],tt.prototype,"disableCopyPaste",void 0);var et=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class it extends f{render(){const e=this.hasPrefixSlot();if(this.prefixIcon||e)return t("div",{class:{"vega-input-prefix":!0,"vega-input-prefix-slot":e},part:"prefix-icon-container"},this.prefixIcon&&!e?t("vega-icon",{icon:this.prefixIcon,size:"size-16","aria-hidden":"true"}):null,t("slot",{name:"prefix-icon"}))}hasPrefixSlot(){return!!this.host.querySelector('[slot="prefix-icon"]')}}et([u()],it.prototype,"host",void 0),et([u()],it.prototype,"prefixIcon",void 0);class nt extends T{constructor(t=!1){super(),this.overrideValue=t}format(t){if(!t.length)return t;const e=Number(t.replace(/,/g,""));return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e.toLocaleString("en-US"):t}calculateCaretPosition(t,e){const i=this.format(t),n=t.substring(0,e),s=i.substring(0,e),o=(n.match(/,/g)||[]).length;return e+((s.match(/,/g)||[]).length-o)}}class st extends T{constructor(t,e=!1){super(),this.maskConfig={allowNegative:!0},this.skipFormat=t=>this.maskConfig.allowNegative&&"-"===t||null!=this.maskConfig.precision&&this.maskConfig.precision>0&&t.split(".").length-1==1&&t.endsWith(".")&&!t.startsWith("."),this.maskConfig=Object.assign(Object.assign({},this.maskConfig),t),this.overrideValue=e,this.mask=new RegExp(this.getRegExp())}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t)&&i.pop()}return i.join("")}calculateCaretPosition(t,e){if(V(e)){const i=this.redressAbnormalNumber(t);return e-(t.length-i.length)}}inputNeedFormat(t){return!this.mask.test(t)}redressAbnormalNumber(t){let e=t.replace(/^0+(?!$)/,"");return e.startsWith(".")&&(e=`0${e}`),e}getRegExp(){const t=this.maskConfig.allowNegative?"(\\-)?":"";let e;return e=0===this.maskConfig.precision?`^${t}(0|[1-9][0-9]*)$`:this.maskConfig.precision&&this.maskConfig.precision>0?`^${t}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`:`^${t}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`,e}}class ot extends T{constructor(t,e=!1,i=!1){super(),this.resetCaretPositionFlag=!1,this.formatter=t,this.resetCaretPositionFlag=e,this.overrideValue=i}format(t){return this.formatter(t)}calculateCaretPosition(t,e){if(!0===this.resetCaretPositionFlag)return this.format(t).length;if(V(e)){const i=t.substring(0,e);return e+(this.format(i).length-i.length)}}shouldTriggerAtInit(){return!0}}class at extends st{constructor(t,e=!1){super(t,e)}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t.replace(/,/g,""))&&i.pop()}return this.thousandCommaFormat(i.join(""))}calculateCaretPosition(t,e){const i=this.redressAbnormalNumber(t),n=this.format(t),s=t.substring(0,e),o=n.substring(0,e),a=(s.match(/,/g)||[]).length;return e+((o.match(/,/g)||[]).length-a)-(t.length-i.length)}thousandCommaFormat(t){if(!t.length)return t;const e=t.replace(/[^\d.-]/g,""),i=e.indexOf("."),n=e.length>1&&i>=1?e.slice(i):"",s=Number(e.split(".")[0]);return!isNaN(s)&&s<=Number.MAX_SAFE_INTEGER?s.toLocaleString("en-US")+n:e}}var rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class lt extends M{constructor(){super(...arguments),this.getInputElementRef=()=>this.inputRenderer.getInputRef(),this.getInputModeStrategy=()=>this.generateMaskStrategy("input"),this.getBlurModeStrategy=()=>this.generateMaskStrategy("blur")}connectedCallback(){this.initSetupMaskConfigObserver()}disconnectedCallback(){this.removeSetupMaskConfigObserver()}watchValue(t,e){t!==e&&this.formatValueAfterValueChange()}watchMaskChange(t,e){this.areMaskConfigsEqual(t,e)||this.setup()}watchTypeChange(t,e){"number"!==t&&"number"!==e||this.setup()}generateMaskStrategy(t){let e=null;Array.isArray(this.maskConfig)?e=this.maskConfig.find((e=>"blur"===t?this.isBlurModeMaskConfig(e):!this.isBlurModeMaskConfig(e))):this.maskConfig&&("blur"===t&&this.isBlurModeMaskConfig(this.maskConfig)?e=this.maskConfig:"input"!==t||this.isBlurModeMaskConfig(this.maskConfig)||(e=this.maskConfig));let i=null;switch(null==e?void 0:e.type){case"phone":i=E.getPhoneMaskStrategy(e.overrideValue);break;case"taxId":i=E.getTaxIdMaskStrategy(e.overrideValue);break;case"zipcode":i=E.getZipcodeMaskStrategy(e.overrideValue);break;case"thousand-comma":i=new nt(e.overrideValue);break;case"number":i=this.getNumberTypeMaskStrategy(e.options,e.overrideValue);break;case"custom":i=e.strategy?e.strategy():new E(e.options,e.overrideValue);break;case"custom-formatter":i=new ot(e.formatter,e.resetCaretPosition,e.overrideValue)}return"number"!==this.type||"input"!==t||e||(i=new st({},null==e?void 0:e.overrideValue)),i}getNumberTypeMaskStrategy(t,e=!1){return t&&t.thousandComma?new at(t,e):new st(t,e)}isBlurModeMaskConfig(t){return"blur"===t.trigger}areMaskConfigsEqual(t,e){const i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return L(i,n,!0,((t,e)=>F(t,e)?0:-1))}initSetupMaskConfigObserver(){$.addUniqueObserverToNode(this.host,N,this.setup.bind(this))}removeSetupMaskConfigObserver(){$.removeUniqueObserverFromNode(this.host,N)}}rt([u()],lt.prototype,"maskConfig",void 0),rt([u()],lt.prototype,"disableCopyPaste",void 0),rt([u()],lt.prototype,"type",void 0),rt([u()],lt.prototype,"inputRenderer",void 0),rt([g("connectedCallback")],lt.prototype,"connectedCallback",null),rt([g("disconnectedCallback")],lt.prototype,"disconnectedCallback",null),rt([g("watchValue")],lt.prototype,"watchValue",null),rt([g("watchMaskChange")],lt.prototype,"watchMaskChange",null),rt([g("watchTypeChange")],lt.prototype,"watchTypeChange",null);const pt=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!1===t.autoValidation},{payloadKey:"EMAIL_IS_TRUE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!0===t.email},{payloadKey:"EMAIL_IS_FALSE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!1===t.email}];var ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class dt extends f{componentDidLoad(){this.setInputAutoWidth()}watchValue(){this.setInputAutoWidth()}watchSuffixText(){this.setInputAutoWidth()}setInputAutoWidth(){const t=this.host.shadowRoot.querySelector(".vega-input-container"),e=null==t?void 0:t.querySelector(".vega-input-input"),i=null==e?void 0:e.querySelector("input");if(i&&(t.classList.remove("auto-width"),i.style.removeProperty("width"),this.isCompactInputWidth&&this.suffixText)){const n=this.getActualInputWidth();e.getBoundingClientRect().width>n&&(i.style.width=`${n}px`,t.classList.add("auto-width"))}}getActualInputWidth(){const t=this.getCalculateTextWidthContainer();t.style.display="inline-block",t.textContent=`${this.value||this.placeholder||""}`;const e=t.getBoundingClientRect().width;return t.style.display="none",e}getCalculateTextWidthContainer(){if(!this.calculateTextWidthContainer){const t=document.createElement("div");t.classList.add("v-font-field-value"),t.style.visibility="hidden",t.style.display="none",this.host.shadowRoot.append(t),this.calculateTextWidthContainer=t}return this.calculateTextWidthContainer}}ct([u()],dt.prototype,"host",void 0),ct([u()],dt.prototype,"value",void 0),ct([u()],dt.prototype,"placeholder",void 0),ct([u()],dt.prototype,"isCompactInputWidth",void 0),ct([u()],dt.prototype,"suffixText",void 0),ct([g("componentDidLoad")],dt.prototype,"componentDidLoad",null),ct([g("watchValue")],dt.prototype,"watchValue",null),ct([g("watchSuffixText")],dt.prototype,"watchSuffixText",null);var ht=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class ut extends W{constructor(){super({parent:"vega-input-numeric",subStates:[{subStateName:"prefixText",parentStateName:"prefixText"},{subStateName:"suffixText",parentStateName:"suffixText"},{subStateName:"isCompactInputWidth",parentStateName:"isCompactInputWidth"}]})}}ht([u()],ut.prototype,"host",void 0),ht([u({writable:!0})],ut.prototype,"prefixText",void 0),ht([u({writable:!0})],ut.prototype,"suffixText",void 0),ht([u({writable:!0})],ut.prototype,"isCompactInputWidth",void 0);var ft=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class gt extends f{render(){return t("vega-button-circle",{icon:K.getIconKey(this.isPasswordDisplay?"eye":"eye-slash"),variant:"icon-only",size:"small",class:"password-eye-button",ref:t=>{this.addEyeIconObserver(t)}})}addEyeIconObserver(t){$.addUniqueObserverToNode(t,C,(()=>{this.isPasswordDisplay=!this.isPasswordDisplay}))}}K.register({eye:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>'},"eye-slash":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>'}}),ft([u()],gt.prototype,"host",void 0),ft([u({writable:!0})],gt.prototype,"isPasswordDisplay",void 0),ft([u()],gt.prototype,"type",void 0);var vt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class mt extends f{constructor(){super(...arguments),this.renderPrefixText=()=>this.prefixText&&t("div",{class:"prefix-text"},this.prefixText),this.renderSuffixText=()=>this.suffixText&&t("div",{class:"suffix-text"},this.suffixText),this.onClickClearIcon=()=>{H.notify(_.getSubject(this.host,A),"")},this.isClearIconVisible=()=>!this.disabled&&Boolean(this.value),this.onClearInputFocus=()=>{this.inputContainerRef.classList.add("no-focus")},this.onClearInputBlur=()=>{this.inputContainerRef.classList.remove("no-focus")},this.onContainerClick=()=>{H.notify(_.getSubject(this.host,P),{})}}getInputContainerRef(){return this.inputContainerRef}render(){return t("div",{ref:t=>this.inputContainerRef=t,part:"input-container",class:{"vega-input-container":!0,"with-value":!!this.value,[`vega-input-size-${this.size}`]:!0,"vega-input-disabled":this.disabled,"compact-input-width":this.isCompactInputWidth},onClick:this.onContainerClick,"aria-disabled":this.disabled?"true":void 0,onKeyDown:q()},this.prefixSlotRenderer.render(),this.renderPrefixText(),this.inputRenderer.render(),this.renderSuffixText(),"password"===this.type?this.passwordEyeRenderer.render():this.showClearIcon&&this.renderClearIcon())}renderClearIcon(){return t("div",{class:{"vega-input-clear-icon":!0,invisible:!this.isClearIconVisible()},tabIndex:this.disabled?-1:0,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:q(),onFocusin:this.onClearInputFocus,onFocusout:this.onClearInputBlur},t("vega-icon",{icon:"close"}))}}vt([u()],mt.prototype,"host",void 0),vt([u()],mt.prototype,"value",void 0),vt([u()],mt.prototype,"size",void 0),vt([u()],mt.prototype,"disabled",void 0),vt([u()],mt.prototype,"type",void 0),vt([u()],mt.prototype,"showClearIcon",void 0),vt([u()],mt.prototype,"prefixText",void 0),vt([u()],mt.prototype,"suffixText",void 0),vt([u()],mt.prototype,"isCompactInputWidth",void 0),vt([u()],mt.prototype,"prefixSlotRenderer",void 0),vt([u()],mt.prototype,"passwordEyeRenderer",void 0),vt([u()],mt.prototype,"inputRenderer",void 0);var xt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class bt extends f{constructor(){super(...arguments),this.setInputRef=t=>{t&&this.inputRef!==t&&(this.inputRef=t,this.notifySetupMaskConfig())},this.handleInputFocus=t=>{this.focusEventEmitter.emit(void 0,t)},this.handleInputBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.handleInputPaste=t=>{this.pasteEventEmitter.emit(t.clipboardData).defaultPrevented&&t.preventDefault()},this.onInputHandler=()=>{"change"!==this.valueUpdateTrigger&&this.notifyInputValueChange()},this.inputChangeHandler=()=>{"change"===this.valueUpdateTrigger&&this.notifyInputValueChange()}}connectedCallback(){this.initInputFocusObserver()}disconnectedCallback(){this.removeInputFocusObserver()}doFocus(){this.focusInput()}doBlur(){this.inputRef.blur()}getInputRef(){return this.inputRef}render(){return t("div",{class:"vega-input-input"},t("input",Object.assign({part:"input",name:this.name,type:this.getInputType(),autoComplete:this.autocomplete,inputmode:this.inputmode,enterkeyhint:this.enterkeyhint,readOnly:this.readOnly,value:this.value,ref:this.setInputRef,placeholder:this.placeholder,disabled:this.disabled,minLength:this.minLength,maxLength:this.maxLength,onBlur:t=>this.handleInputBlur(t),onFocus:t=>this.handleInputFocus(t),onChange:this.inputChangeHandler,onInput:this.onInputHandler,onPaste:t=>this.handleInputPaste(t)},this.copyPasteController.getCopyPasteProps())))}getInputType(){switch(this.type){case"number":return"text";case"password":return this.isPasswordDisplay?"text":"password";default:return this.type}}notifyInputValueChange(){this.inputRef.value!==this.value&&this.nativeInputChangeEventEmitter.emit(this.inputRef.value),H.notify(_.getSubject(this.host,A),this.inputRef.value)}notifySetupMaskConfig(){H.notify(_.getSubject(this.host,N),{})}initInputFocusObserver(){$.addUniqueObserverToNode(this.host,P,this.focusInput.bind(this))}removeInputFocusObserver(){$.removeUniqueObserverFromNode(this.host,P)}focusInput(){this.inputRef.focus()}}xt([u()],bt.prototype,"host",void 0),xt([u()],bt.prototype,"value",void 0),xt([u()],bt.prototype,"disabled",void 0),xt([u()],bt.prototype,"type",void 0),xt([u()],bt.prototype,"name",void 0),xt([u()],bt.prototype,"autocomplete",void 0),xt([u()],bt.prototype,"inputmode",void 0),xt([u()],bt.prototype,"enterkeyhint",void 0),xt([u()],bt.prototype,"readOnly",void 0),xt([u()],bt.prototype,"placeholder",void 0),xt([u()],bt.prototype,"minLength",void 0),xt([u()],bt.prototype,"maxLength",void 0),xt([u()],bt.prototype,"isPasswordDisplay",void 0),xt([u()],bt.prototype,"valueUpdateTrigger",void 0),xt([u()],bt.prototype,"focusEventEmitter",void 0),xt([u()],bt.prototype,"blurEventEmitter",void 0),xt([u()],bt.prototype,"pasteEventEmitter",void 0),xt([u()],bt.prototype,"copyPasteController",void 0),xt([u()],bt.prototype,"nativeInputChangeEventEmitter",void 0),xt([g("connectedCallback")],bt.prototype,"connectedCallback",null),xt([g("disconnectedCallback")],bt.prototype,"disconnectedCallback",null),xt([g("doFocus")],bt.prototype,"doFocus",null),xt([g("doBlur")],bt.prototype,"doBlur",null);var wt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class yt extends f{constructor(){super(...arguments),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()},this.handleLabelClick=()=>{H.notify(_.getSubject(this.host,P),{})}}render(){return t("div",{class:"vega-input",part:"container-wrapper"},this.renderLabelDom(),this.renderInputContainer(),this.renderHintDom())}renderInputContainer(){return this.renderModeController.isSource()||this.renderModeController.isTemplate()?this.inputSuggestionsRenderer.render(this.inputContainerRenderer.render()):this.inputContainerRenderer.render()}renderLabelDom(){return t("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonProps:this.labelSuffixButtonProps,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{$.addUniqueObserverToNode(t,j,this.handleLabelButtonClick),$.addUniqueObserverToNode(t,C,this.handleLabelClick)}})}renderHintDom(){return""!==this.hint?t("div",{class:"vega-hint"},t("label",null,this.hint)):null}}wt([u()],yt.prototype,"host",void 0),wt([u()],yt.prototype,"disabled",void 0),wt([u()],yt.prototype,"required",void 0),wt([u()],yt.prototype,"label",void 0),wt([u()],yt.prototype,"hint",void 0),wt([u()],yt.prototype,"labelSuffixButtonProps",void 0),wt([u()],yt.prototype,"labelSuffixButtonConfig",void 0),wt([u()],yt.prototype,"labelButtonClickEventEmitter",void 0),wt([u()],yt.prototype,"inputContainerRenderer",void 0),wt([u()],yt.prototype,"inputSuggestionsRenderer",void 0),wt([u()],yt.prototype,"renderModeController",void 0);var Ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class jt extends f{connectedCallback(){this.initValueUpdateObserver()}disconnectedCallback(){this.removeValueUpdateObserver()}watchValue(t){this.changeEventEmitter.emit(t);const e=this.inputRenderer.getInputRef();e.value!==this.value&&(e.value=this.value),H.notify(G,{host:this.host,detail:this.value})}initValueUpdateObserver(){$.addUniqueObserverToNode(this.host,A,this.setValue.bind(this))}removeValueUpdateObserver(){$.removeUniqueObserverFromNode(this.host,A)}setValue(t){this.value=t}}Ct([u()],jt.prototype,"host",void 0),Ct([u({writable:!0})],jt.prototype,"value",void 0),Ct([u()],jt.prototype,"changeEventEmitter",void 0),Ct([u()],jt.prototype,"inputRenderer",void 0),Ct([g("connectedCallback")],jt.prototype,"connectedCallback",null),Ct([g("disconnectedCallback")],jt.prototype,"disconnectedCallback",null),Ct([g("watchValue")],jt.prototype,"watchValue",null);var kt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class It extends f{constructor(){super(...arguments),this.templateItems=[],this.onDropdownItemClick=async t=>{const e=this.renderModeController.isTemplate()?this.templateItems:this.suggestionsDropdownSource,i=this.findItem(e,t.detail);if(i){const t=this.suggestionItemClickEventEmitter.emit(i);H.notify(_.getSubject(this.host,A),t.defaultPrevented?this.value:i.label)}}}appendHostItemsToDropdown(){this.renderModeController.isTemplate()&&this.itemsSlotRef&&this.dropdownRef&&(this.itemsSlotRef.remove(),this.dropdownRef.append(this.host.querySelector("[slot=items]")))}async showSuggestionsDropdown(t={}){this.suggestionsDropdownConfig=t,await this.showSuggestions()}async hideSuggestionsDropdown(){await this.dropdownRef.hide()}async watchValue(){await this.searchSuggestions()}async watchSuggestionsDropdownSource(){await this.searchSuggestions()}render(e){return t("vega-dropdown",Object.assign({},this.suggestionsDropdownConfig,{source:this.suggestionsDropdownSource,trigger:new J,matchTargetWidth:!0,searchable:!1,placement:["top","bottom"],translocation:{X:0,Y:6},ref:t=>{this.dropdownRef=t,this.addDropdownObserver(t)},style:{display:"block"}}),e,this.renderItemsSlot())}renderItemsSlot(){return this.renderModeController.isTemplate()&&t("div",{slot:"items",ref:t=>{this.itemsSlotRef=t}})}addDropdownObserver(t){$.addUniqueObserverToNode(t,k,this.onDropdownItemClick.bind(this)),$.addUniqueObserverToNode(t,B,(t=>{this.templateItems=Array.from(t).map((t=>({key:t.itemKey,label:t.label})))}))}findItem(t,e){for(const i of t){if(i.children&&i.children.length>0){const t=this.findItem(i.children,e);if(t)return t}if(i.key.toString()===e)return i}return null}async showSuggestions(){this.dropdownRef&&(this.renderModeController.isSource()||this.renderModeController.isTemplate())&&await this.dropdownRef.show()}async searchSuggestions(){this.dropdownRef&&this.renderModeController.isSource()&&this.suggestionsDropdownSource.length>0&&await this.dropdownRef.search(this.value)}}kt([u()],It.prototype,"host",void 0),kt([u()],It.prototype,"value",void 0),kt([u({writable:!0})],It.prototype,"suggestionsDropdownConfig",void 0),kt([u()],It.prototype,"suggestionsDropdownSource",void 0),kt([u()],It.prototype,"renderModeController",void 0),kt([u()],It.prototype,"suggestionItemClickEventEmitter",void 0),kt([g("componentDidLoad")],It.prototype,"appendHostItemsToDropdown",null),kt([g("showSuggestionsDropdown")],It.prototype,"showSuggestionsDropdown",null),kt([g("hideSuggestionsDropdown")],It.prototype,"hideSuggestionsDropdown",null),kt([g("watchValue")],It.prototype,"watchValue",null),kt([g("watchSuggestionsDropdownSource")],It.prototype,"watchSuggestionsDropdownSource",null);var Rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class St extends f{constructor(){super(...arguments),this.hasItemsSlot=!1}connectedCallback(){this.setRenderMode()}isSource(){return Array.isArray(this.suggestionsDropdownSource)}isTemplate(){return this.hasItemsSlot}setRenderMode(){this.hasItemsSlot=!!this.host.querySelector("[slot=items]")}}Rt([u()],St.prototype,"host",void 0),Rt([u()],St.prototype,"suggestionsDropdownSource",void 0),Rt([g("connectedCallback")],St.prototype,"connectedCallback",null);var zt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends Y{constructor(t){super({options:{attributes:!0,attributeFilter:[Ot.OBSERVED_ATTRIBUTE]},callback:()=>{this.performMapping()}}),this.targetGetter=t}componentDidLoad(){this.performMapping(),super.componentDidLoad&&super.componentDidLoad()}componentDidRender(){this.performMapping()}performMapping(){const t=this.targetGetter?this.targetGetter():null;if(!t)return;const e=this.host.getAttribute(Ot.OBSERVED_ATTRIBUTE);if(this.shouldRemoveTabIndex(e))return void t.removeAttribute("tabindex");const i=String(e);t.getAttribute("tabindex")!==i&&t.setAttribute("tabindex",i)}shouldRemoveTabIndex(t){if(null==t)return!0;const e=String(t).trim().toLowerCase();return""===e||"null"===e||"undefined"===e}}Ot.OBSERVED_ATTRIBUTE="data-tabindex",zt([g("componentDidLoad")],Ot.prototype,"componentDidLoad",null),zt([g("componentDidRender")],Ot.prototype,"componentDidRender",null);var Dt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};const Et=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaNativeInputChange=i(this,"vegaNativeInputChange",7),this.nativeInputChange=i(this,"nativeInputChange",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",7),this.labelButtonClick=i(this,"labelButtonClick",7),this.vegaPaste=i(this,"vegaPaste",7),this.paste=i(this,"paste",7),this.vegaSuggestionItemClick=i(this,"vegaSuggestionItemClick",7),this.suggestionItemClick=i(this,"suggestionItemClick",7),this.globalSlimmers={},this.ariaAttributesValueMapper=new X((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"},"aria-hidden":{dependency:["data-aria-hidden"],defaultValue:null}}),this.dataTabIndexValueMapper=new Ot((()=>this.host.shadowRoot.querySelector("input"))),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new c:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new a({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new r({maxValue:t}):null},{propertyName:"minLength",ruleFactory:t=>t?new l({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new p({maxStrLength:t}):null},{propertyName:"email",ruleFactory:t=>t?new Z:null},{propertyName:"type",ruleFactory:t=>"email"===t?new Z:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRenderer.getInputContainerRef(),touchableAreaGetter:()=>[this.inputRenderer.getInputRef()]}),this.pageResizeObserverSlimmer=new U({callback:()=>this.compactWidthController.setInputAutoWidth()}),this.renderModeController=new St,this.copyPasteController=new tt,this.compactWidthController=new dt,this.stateController=new ut,this.maskConfigController=new lt,this.valueController=new jt,this.prefixSlotRenderer=new it,this.renderer=new yt,this.inputContainerRenderer=new mt,this.inputRenderer=new bt,this.inputSuggestionsRenderer=new It,this.changeEventEmitter=y(Et,I),this.nativeInputChangeEventEmitter=y(Et,R),this.focusEventEmitter=y(Et,S),this.blurEventEmitter=y(Et,z),this.labelButtonClickEventEmitter=y(Et,j),this.suggestionItemClickEventEmitter=y(Et,O),this.pasteEventEmitter=y(Et,D),this.vegaComponentUsageRuntimeMetricsSlimmer=new x(pt),this.passwordEyeRenderer=new gt,this.label="",this.labelSuffixButtonProps=null,this.labelSuffixButtonConfig=null,this.value="",this.valueUpdateTrigger="input",this.type="text",this.name="",this.autocomplete="off",this.readOnly=!1,this.email=!1,this.required=!1,this.min=null,this.max=null,this.minLength=null,this.maxLength=null,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.size="default",this.disabled=!1,this.hint="",this.disableCopyPaste=!1}watchSuffixText(){}watchValue(t){}watchTypeChange(t,e){}watchValidationRules(){}watchMaskChange(t,e){}watchSuggestionsDropdownSource(){}async doFocus(){}async doBlur(){}async showSuggestionsDropdown(t){}async hideSuggestionsDropdown(){}render(){return m(t("slot",null)),d(t(n,{class:"hidden"===this.type?"vega-input-hidden":"vega-input-inline-block"},this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{suffixText:["watchSuffixText"],value:["watchValue"],type:["watchTypeChange"],validationRules:["watchValidationRules"],maskConfig:["watchMaskChange"],suggestionsDropdownSource:["watchSuggestionsDropdownSource"]}}};Dt([b()],Et.prototype,"globalSlimmers",void 0),Dt([v()],Et.prototype,"ariaAttributesValueMapper",void 0),Dt([v()],Et.prototype,"dataTabIndexValueMapper",void 0),Dt([v()],Et.prototype,"formFieldController",void 0),Dt([v()],Et.prototype,"pageResizeObserverSlimmer",void 0),Dt([v()],Et.prototype,"renderModeController",void 0),Dt([v()],Et.prototype,"copyPasteController",void 0),Dt([v()],Et.prototype,"compactWidthController",void 0),Dt([v()],Et.prototype,"stateController",void 0),Dt([v()],Et.prototype,"maskConfigController",void 0),Dt([v()],Et.prototype,"valueController",void 0),Dt([v()],Et.prototype,"prefixSlotRenderer",void 0),Dt([v()],Et.prototype,"renderer",void 0),Dt([v()],Et.prototype,"inputContainerRenderer",void 0),Dt([v()],Et.prototype,"inputRenderer",void 0),Dt([v()],Et.prototype,"inputSuggestionsRenderer",void 0),Dt([v()],Et.prototype,"changeEventEmitter",void 0),Dt([v()],Et.prototype,"nativeInputChangeEventEmitter",void 0),Dt([v()],Et.prototype,"focusEventEmitter",void 0),Dt([v()],Et.prototype,"blurEventEmitter",void 0),Dt([v()],Et.prototype,"labelButtonClickEventEmitter",void 0),Dt([v()],Et.prototype,"suggestionItemClickEventEmitter",void 0),Dt([v()],Et.prototype,"pasteEventEmitter",void 0),Dt([v()],Et.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt([v()],Et.prototype,"passwordEyeRenderer",void 0),Dt([h()],Et.prototype,"watchMaskChange",null),Et.style=':host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{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))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):focus-within{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))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):focus-within{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))}.vega-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input input{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-input-input input{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-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.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}}.vega-error{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));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@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-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}';export{Et as vega_input}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as t,c as i,H as a,g as n}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{n as s,c as r}from"./p-262ec334.js";import{D as l}from"./p-11e2dcf5.js";import{B as g,H as p,i as h,a as c,U as m}from"./p-9af0e2e7.js";import{n as f,s as v,P as u,r as d,i as b,h as x}from"./p-9dcecdd3.js";import{a as w}from"./p-ec2a1d4c.js";import{C as S}from"./p-e27626f6.js";import{c as y}from"./p-de7109d3.js";import{c as C,M as z,V as j,I as P}from"./p-6e1ab235.js";import{V as O,I as k}from"./p-4415ad28.js";import{T as I}from"./p-57f220b5.js";import{R as M}from"./p-031c0cf7.js";import{g as L}from"./p-49a2e141.js";import{P as A}from"./p-81dd00d0.js";import{t as E,u as R}from"./p-6c43d54a.js";import{F as T}from"./p-18e8d9b7.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-f1c672e4.js";import"./p-5f377954.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-3b791b5d.js";import"./p-a528714c.js";import"./p-e4c4ea35.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-5a25014f.js";const N=({pageSize:t,current:i,total:a,translationSlimmer:n})=>{const o=a>0?t*(i-1)+1:0,s=Math.min(i*t,a);return e("vega-field-label",{label:n.t("Viewing {0}-{1} of {2}",o,s,a)})},_=({onChange:t,pageCount:i,translationSlimmer:a})=>{let n;const o=()=>{if(n.value){const e=s(r(n.value,1),1,i);t(e),n.value=""}},h=e=>{e.stopPropagation()};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:a.t("Go To")}),e("vega-form",{ref:e=>{l.addUniqueObserverToNode(e,g,o)}},e("vega-input",{"data-vega-form":"paginationGoTo",type:"number",size:"small",autocomplete:"on",showClearIcon:!1,style:{width:"60px"},maskConfig:{type:"number",options:{allowNegative:!1,precision:0}},onVegaChange:h,onChange:h,ref:e=>{n=e,l.addUniqueObserverToNode(e,p,o)}})))},V=({pageSize:t,pageSizeSelectorOptions:i,dropdownProps:a,onChange:n,translationSlimmer:o,isAllActive:s})=>{const r=i.map(f),g=v(r),p=e=>{const t=Number(e.detail);n(t)},c=s?u:t;return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:o.t("Show")}),e("div",null,e("vega-input-select",{size:"small",source:g.map((e=>({id:e.value.toString(),displayName:e.label}))),value:c.toString(),placeholder:"Page Size",vegaDropdownProps:Object.assign({matchTargetWidth:!1,searchable:!1},a),ref:e=>{l.addUniqueObserverToNode(e,h,p)}})))},B=({total:t,current:i,onChange:a,pageCount:n})=>{const o=t=>{const n=i!==t;return e("li",{key:t,class:w(["vega-pagination-item",i===t?"active":""])},e("button",{onClick:()=>n&&a(t)},t))},s=(t,i,a)=>e("li",{class:w(["vega-pagination-button",i&&"disabled"])},e("vega-button-circle",{variant:"icon-only",icon:t,iconColor:"text-link",size:"small",disabled:i,ref:e=>{l.addUniqueObserverToNode(e,c,a)}}));return e("ul",{class:"vega-pagination"},s("chevron-left",0===t||1===i,(()=>{a(i-1)})),0===t?[o(1)]:((e,t,i=7)=>{if(i<7)throw new Error("Must allow at least 7 pager items");if(i%2==0)throw new Error("Must allow odd number of pager items");if(t<i)return Array(t).fill(0).map(((e,t)=>t+1));const a=Math.max(1,Math.min(t-i+1,e-Math.floor(i/2))),n=new Array(i);for(let e=0;e<i;e+=1)n[e]=e+a;return Number(n[0])>1&&(n[0]=1,n[1]="..."),Number(n[n.length-1])<=t-1&&(n[n.length-1]=t,n[n.length-2]="..."),n})(i,n).map((t=>"string"==typeof t?e("li",{class:"vega-pagination-item pager-ellipsis"},"..."):o(t))),s("chevron-right",0===t||i===n,(()=>{a(i+1)})))};var W=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class G extends j{registerPaginationPageSizeChangeObserver(){l.addUniqueObserverToNode(this.host,E,(e=>{const t=Number(e.detail);this.isAllActive=t===u,this.pageSize=d(t,this.total)}))}unregisterPaginationPageSizeChangeObserver(){l.removeUniqueObserverFromNode(this.host,E)}}W([C()],G.prototype,"host",void 0),W([C({writable:!0})],G.prototype,"pageSize",void 0),W([C({writable:!0})],G.prototype,"isAllActive",void 0),W([C()],G.prototype,"total",void 0),W([z("connectedCallback")],G.prototype,"registerPaginationPageSizeChangeObserver",null),W([z("disconnectedCallback")],G.prototype,"unregisterPaginationPageSizeChangeObserver",null);var U=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class D extends j{registerPaginationCurrentChangeObserver(){l.addUniqueObserverToNode(this.host,R,(e=>{this.current=Number(e.detail)}))}unregisterPaginationCurrentChangeObserver(){l.removeUniqueObserverFromNode(this.host,R)}}U([C()],D.prototype,"host",void 0),U([C({writable:!0})],D.prototype,"current",void 0),U([z("connectedCallback")],D.prototype,"registerPaginationCurrentChangeObserver",null),U([z("disconnectedCallback")],D.prototype,"unregisterPaginationCurrentChangeObserver",null);var F=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class H extends A{constructor(){super({callback:()=>{this.calculatePaginationLayout()}}),this.calculatePaginationLayout=()=>{if("vertical"===this.currentLayout)this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal");else{this.host.classList.remove("vega-pagination-vertical"),this.host.classList.add("vega-pagination-horizontal");const e=this.host.offsetHeight;Array.from(this.host.shadowRoot.children).filter((e=>"VEGA-FLEX"===e.tagName)).every((t=>e>t.offsetHeight))&&(this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal"))}}}componentWillLoad(){this.setCurrentLayout()}watchCurrentBreakpoint(){this.setCurrentLayout()}watchLayout(){this.setCurrentLayout(),this.calculatePaginationLayout()}setCurrentLayout(){this.currentLayout=M.formatCustom(this.layout)}}F([C()],H.prototype,"host",void 0),F([C()],H.prototype,"layout",void 0),F([z("componentWillLoad")],H.prototype,"componentWillLoad",null),F([z("watchCurrentBreakpoint")],H.prototype,"watchCurrentBreakpoint",null),F([z("watchLayout")],H.prototype,"watchLayout",null);var X=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};const $=class{constructor(a){t(this,a),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaPageSizeChange=i(this,"vegaPageSizeChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.globalSlimmers={},this.translationSlimmer=new I,this.childEventPrevent=new S([g],(()=>this.host)),this.childValueChangePrevent=new S([h],(()=>this.host),!0),this.vegaChangeEventEmitter=y($,h),this.vegaPageSizeChangeEventEmitter=y($,m),this.vegaComponentUsageRuntimeMetricsSlimmer=new O,this.vegaPaginationPageSizeObserverController=new G,this.vegaPaginationCurrentPageObserverController=new D,this.breakpointPageResizeObserverSlimmer=new A,this.vegaPaginationLayoutController=new H,this.vegaPaginationItemTypes=["currentPageLabel","pageSizeSelector","pageSelector","goTo","pageSelectorMobile","pageSizeSelectorMobile","pageSelectorMobile_goTo","pageSizeSelectorMobile_currentPageLabel"],this.currentBreakpoint=L(),this.pageCount=0,this.isAllActive=!1,this.current=1,this.total=0,this.pageSize=10,this.extensions=T.isEnabled("VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE")?{default:[["pageSizeSelectorMobile_currentPageLabel"],["pageSelectorMobile_goTo"]],M:[["pageSelector"]]}:[["pageSelector"]],this.layout="horizontal",this.pageSizeSelectorOptions=[10,20,50,100],this.renderPaginationItemsWrapper=t=>e("vega-flex",{gap:{default:"size-4",M:"size-24"},flexWrap:"wrap",alignItems:"center",justifyContent:"center",key:this.generateWrapperKey(t)},t.map((t=>e("div",{key:t},this.renderPaginationItem(t))))),this.renderPaginationItem=t=>{switch(t){case"currentPageLabel":return e(N,{total:this.total,current:this.current,pageSize:this.pageSize,translationSlimmer:this.translationSlimmer});case"pageSizeSelector":{const t=this.isAllActive||b(this.pageSizeSelectorOptions,this.pageSize)?this.pageSizeSelectorOptions:[...this.pageSizeSelectorOptions,this.pageSize];return e(V,{pageSize:this.pageSize,pageSizeSelectorOptions:t,dropdownProps:this.dropdownProps,onChange:this.onPageSizeSelectorChange,translationSlimmer:this.translationSlimmer,isAllActive:this.isAllActive})}case"pageSelector":return e(B,{current:this.current,total:this.total,onChange:this.onPageSelectorChange,pageCount:this.pageCount});case"goTo":return e(_,{onChange:this.handlePaginationGoToChange,pageCount:this.pageCount,translationSlimmer:this.translationSlimmer});case"pageSelectorMobile":case"pageSelectorMobile_goTo":return e("vega-pagination-page-selector-mobile",{type:t,pageCount:this.pageCount,current:this.current,total:this.total});case"pageSizeSelectorMobile":case"pageSizeSelectorMobile_currentPageLabel":return e("vega-pagination-page-size-selector-mobile",{type:t,pageSize:this.pageSize,current:this.current,total:this.total,pageSizeSelectorOptions:this.pageSizeSelectorOptions,dropdownProps:this.dropdownProps,isAllActive:this.isAllActive})}},this.handlePaginationGoToChange=e=>{this.current=e},this.onPageSizeSelectorChange=e=>{this.isAllActive=e===u,this.pageSize=d(e,this.total)},this.calculatePages=()=>this.total?Math.floor((this.total-1)/this.pageSize)+1:0,this.onPageSelectorChange=e=>{this.current=e},this.removeDuplicateItems=e=>{const t=[...this.vegaPaginationItemTypes];return[...e].map((e=>e.filter(((i,a)=>{const n=t.indexOf(i);return n>=0?(t.splice(n,1),!0):(e.splice(a,1),!1)})))).filter((e=>e.length>0))},this.generateWrapperKey=e=>e.map(String).reduce(((e,t)=>`${e}-${t}`)),this.currentValueGuard=()=>{0===this.pageCount?this.current=1:this.current>this.pageCount&&(this.current=this.pageCount)}}watchCurrentBreakpoint(){}watchPageCount(){this.currentValueGuard()}watchCurrent(){this.currentValueGuard(),this.vegaChangeEventEmitter.emit(this.current)}watchTotal(e){this.isAllActive&&(this.pageSize=e),this.pageCount=this.calculatePages()}watchPageSize(){this.vegaPageSizeChangeEventEmitter.emit(this.pageSize),this.pageCount=this.calculatePages()}watchLayout(){}componentWillLoad(){this.isAllActive=x(this.pageSizeSelectorOptions)&&this.pageSize===this.total&&!b(this.pageSizeSelectorOptions,this.pageSize),this.pageCount=this.calculatePages(),this.currentValueGuard(),this.isAllActive||b(this.pageSizeSelectorOptions,this.pageSize)||(this.pageSizeSelectorOptions=[...this.pageSizeSelectorOptions,this.pageSize])}render(){const t=M.formatCustom(this.extensions);return o(e(a,null,this.removeDuplicateItems(t).map(this.renderPaginationItemsWrapper)),this.host)}get host(){return n(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],pageCount:["watchPageCount"],current:["watchCurrent"],total:["watchTotal"],pageSize:["watchPageSize"],layout:["watchLayout"]}}};X([k()],$.prototype,"globalSlimmers",void 0),X([P()],$.prototype,"translationSlimmer",void 0),X([P()],$.prototype,"childEventPrevent",void 0),X([P()],$.prototype,"childValueChangePrevent",void 0),X([P()],$.prototype,"vegaChangeEventEmitter",void 0),X([P()],$.prototype,"vegaPageSizeChangeEventEmitter",void 0),X([P()],$.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),X([P()],$.prototype,"vegaPaginationPageSizeObserverController",void 0),X([P()],$.prototype,"vegaPaginationCurrentPageObserverController",void 0),X([P()],$.prototype,"breakpointPageResizeObserverSlimmer",void 0),X([P()],$.prototype,"vegaPaginationLayoutController",void 0),$.style=':host{display:flex;align-items:center;line-height:normal;flex-wrap:wrap}:host(.vega-pagination-horizontal){flex-direction:row;justify-content:space-between}:host(.vega-pagination-vertical){flex-direction:column;gap:16px;justify-content:center}@media (min-width: 320px){:host(.vega-pagination-horizontal){gap:4px}}@media (min-width: 768px){:host(.vega-pagination-horizontal){gap:24px}}.vega-pagination{display:flex;padding:0px;margin:0px}.vega-pagination .vega-pagination-item{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item button{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%;cursor:pointer;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item.pager-ellipsis{cursor:default}.vega-pagination .vega-pagination-item:not(.pager-ellipsis):not(:active):hover{text-decoration:underline;text-underline-offset:2px}.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.vega-pagination .vega-pagination-item button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border-radius:9999px}.vega-pagination .vega-pagination-button{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}';export{$ as vega_pagination}
|
|
1
|
+
import{h as e,r as t,c as i,H as a,g as n}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{n as s,c as r}from"./p-262ec334.js";import{D as l}from"./p-11e2dcf5.js";import{B as g,H as p,i as h,a as c,U as m}from"./p-9af0e2e7.js";import{n as f,s as v,P as u,r as d,i as b,h as x}from"./p-9dcecdd3.js";import{a as w}from"./p-ec2a1d4c.js";import{C as S}from"./p-eca16761.js";import{c as y}from"./p-de7109d3.js";import{c as C,M as z,V as j,I as P}from"./p-6e1ab235.js";import{V as O,I as k}from"./p-8ce9e214.js";import{T as I}from"./p-c0a4f6d0.js";import{R as M}from"./p-8561537b.js";import{g as L}from"./p-49a2e141.js";import{P as A}from"./p-81dd00d0.js";import{t as E,u as R}from"./p-6c43d54a.js";import{F as T}from"./p-dcf162e9.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-f1c672e4.js";import"./p-5f377954.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-43ed14c4.js";import"./p-a528714c.js";import"./p-25983017.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-982747ef.js";const N=({pageSize:t,current:i,total:a,translationSlimmer:n})=>{const o=a>0?t*(i-1)+1:0,s=Math.min(i*t,a);return e("vega-field-label",{label:n.t("Viewing {0}-{1} of {2}",o,s,a)})},_=({onChange:t,pageCount:i,translationSlimmer:a})=>{let n;const o=()=>{if(n.value){const e=s(r(n.value,1),1,i);t(e),n.value=""}},h=e=>{e.stopPropagation()};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:a.t("Go To")}),e("vega-form",{ref:e=>{l.addUniqueObserverToNode(e,g,o)}},e("vega-input",{"data-vega-form":"paginationGoTo",type:"number",size:"small",autocomplete:"on",showClearIcon:!1,style:{width:"60px"},maskConfig:{type:"number",options:{allowNegative:!1,precision:0}},onVegaChange:h,onChange:h,ref:e=>{n=e,l.addUniqueObserverToNode(e,p,o)}})))},V=({pageSize:t,pageSizeSelectorOptions:i,dropdownProps:a,onChange:n,translationSlimmer:o,isAllActive:s})=>{const r=i.map(f),g=v(r),p=e=>{const t=Number(e.detail);n(t)},c=s?u:t;return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:o.t("Show")}),e("div",null,e("vega-input-select",{size:"small",source:g.map((e=>({id:e.value.toString(),displayName:e.label}))),value:c.toString(),placeholder:"Page Size",vegaDropdownProps:Object.assign({matchTargetWidth:!1,searchable:!1},a),ref:e=>{l.addUniqueObserverToNode(e,h,p)}})))},B=({total:t,current:i,onChange:a,pageCount:n})=>{const o=t=>{const n=i!==t;return e("li",{key:t,class:w(["vega-pagination-item",i===t?"active":""])},e("button",{onClick:()=>n&&a(t)},t))},s=(t,i,a)=>e("li",{class:w(["vega-pagination-button",i&&"disabled"])},e("vega-button-circle",{variant:"icon-only",icon:t,iconColor:"text-link",size:"small",disabled:i,ref:e=>{l.addUniqueObserverToNode(e,c,a)}}));return e("ul",{class:"vega-pagination"},s("chevron-left",0===t||1===i,(()=>{a(i-1)})),0===t?[o(1)]:((e,t,i=7)=>{if(i<7)throw new Error("Must allow at least 7 pager items");if(i%2==0)throw new Error("Must allow odd number of pager items");if(t<i)return Array(t).fill(0).map(((e,t)=>t+1));const a=Math.max(1,Math.min(t-i+1,e-Math.floor(i/2))),n=new Array(i);for(let e=0;e<i;e+=1)n[e]=e+a;return Number(n[0])>1&&(n[0]=1,n[1]="..."),Number(n[n.length-1])<=t-1&&(n[n.length-1]=t,n[n.length-2]="..."),n})(i,n).map((t=>"string"==typeof t?e("li",{class:"vega-pagination-item pager-ellipsis"},"..."):o(t))),s("chevron-right",0===t||i===n,(()=>{a(i+1)})))};var W=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class G extends j{registerPaginationPageSizeChangeObserver(){l.addUniqueObserverToNode(this.host,E,(e=>{const t=Number(e.detail);this.isAllActive=t===u,this.pageSize=d(t,this.total)}))}unregisterPaginationPageSizeChangeObserver(){l.removeUniqueObserverFromNode(this.host,E)}}W([C()],G.prototype,"host",void 0),W([C({writable:!0})],G.prototype,"pageSize",void 0),W([C({writable:!0})],G.prototype,"isAllActive",void 0),W([C()],G.prototype,"total",void 0),W([z("connectedCallback")],G.prototype,"registerPaginationPageSizeChangeObserver",null),W([z("disconnectedCallback")],G.prototype,"unregisterPaginationPageSizeChangeObserver",null);var U=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class D extends j{registerPaginationCurrentChangeObserver(){l.addUniqueObserverToNode(this.host,R,(e=>{this.current=Number(e.detail)}))}unregisterPaginationCurrentChangeObserver(){l.removeUniqueObserverFromNode(this.host,R)}}U([C()],D.prototype,"host",void 0),U([C({writable:!0})],D.prototype,"current",void 0),U([z("connectedCallback")],D.prototype,"registerPaginationCurrentChangeObserver",null),U([z("disconnectedCallback")],D.prototype,"unregisterPaginationCurrentChangeObserver",null);var F=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class H extends A{constructor(){super({callback:()=>{this.calculatePaginationLayout()}}),this.calculatePaginationLayout=()=>{if("vertical"===this.currentLayout)this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal");else{this.host.classList.remove("vega-pagination-vertical"),this.host.classList.add("vega-pagination-horizontal");const e=this.host.offsetHeight;Array.from(this.host.shadowRoot.children).filter((e=>"VEGA-FLEX"===e.tagName)).every((t=>e>t.offsetHeight))&&(this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal"))}}}componentWillLoad(){this.setCurrentLayout()}watchCurrentBreakpoint(){this.setCurrentLayout()}watchLayout(){this.setCurrentLayout(),this.calculatePaginationLayout()}setCurrentLayout(){this.currentLayout=M.formatCustom(this.layout)}}F([C()],H.prototype,"host",void 0),F([C()],H.prototype,"layout",void 0),F([z("componentWillLoad")],H.prototype,"componentWillLoad",null),F([z("watchCurrentBreakpoint")],H.prototype,"watchCurrentBreakpoint",null),F([z("watchLayout")],H.prototype,"watchLayout",null);var X=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};const $=class{constructor(a){t(this,a),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaPageSizeChange=i(this,"vegaPageSizeChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.globalSlimmers={},this.translationSlimmer=new I,this.childEventPrevent=new S([g],(()=>this.host)),this.childValueChangePrevent=new S([h],(()=>this.host),!0),this.vegaChangeEventEmitter=y($,h),this.vegaPageSizeChangeEventEmitter=y($,m),this.vegaComponentUsageRuntimeMetricsSlimmer=new O,this.vegaPaginationPageSizeObserverController=new G,this.vegaPaginationCurrentPageObserverController=new D,this.breakpointPageResizeObserverSlimmer=new A,this.vegaPaginationLayoutController=new H,this.vegaPaginationItemTypes=["currentPageLabel","pageSizeSelector","pageSelector","goTo","pageSelectorMobile","pageSizeSelectorMobile","pageSelectorMobile_goTo","pageSizeSelectorMobile_currentPageLabel"],this.currentBreakpoint=L(),this.pageCount=0,this.isAllActive=!1,this.current=1,this.total=0,this.pageSize=10,this.extensions=T.isEnabled("VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE")?{default:[["pageSizeSelectorMobile_currentPageLabel"],["pageSelectorMobile_goTo"]],M:[["pageSelector"]]}:[["pageSelector"]],this.layout="horizontal",this.pageSizeSelectorOptions=[10,20,50,100],this.renderPaginationItemsWrapper=t=>e("vega-flex",{gap:{default:"size-4",M:"size-24"},flexWrap:"wrap",alignItems:"center",justifyContent:"center",key:this.generateWrapperKey(t)},t.map((t=>e("div",{key:t},this.renderPaginationItem(t))))),this.renderPaginationItem=t=>{switch(t){case"currentPageLabel":return e(N,{total:this.total,current:this.current,pageSize:this.pageSize,translationSlimmer:this.translationSlimmer});case"pageSizeSelector":{const t=this.isAllActive||b(this.pageSizeSelectorOptions,this.pageSize)?this.pageSizeSelectorOptions:[...this.pageSizeSelectorOptions,this.pageSize];return e(V,{pageSize:this.pageSize,pageSizeSelectorOptions:t,dropdownProps:this.dropdownProps,onChange:this.onPageSizeSelectorChange,translationSlimmer:this.translationSlimmer,isAllActive:this.isAllActive})}case"pageSelector":return e(B,{current:this.current,total:this.total,onChange:this.onPageSelectorChange,pageCount:this.pageCount});case"goTo":return e(_,{onChange:this.handlePaginationGoToChange,pageCount:this.pageCount,translationSlimmer:this.translationSlimmer});case"pageSelectorMobile":case"pageSelectorMobile_goTo":return e("vega-pagination-page-selector-mobile",{type:t,pageCount:this.pageCount,current:this.current,total:this.total});case"pageSizeSelectorMobile":case"pageSizeSelectorMobile_currentPageLabel":return e("vega-pagination-page-size-selector-mobile",{type:t,pageSize:this.pageSize,current:this.current,total:this.total,pageSizeSelectorOptions:this.pageSizeSelectorOptions,dropdownProps:this.dropdownProps,isAllActive:this.isAllActive})}},this.handlePaginationGoToChange=e=>{this.current=e},this.onPageSizeSelectorChange=e=>{this.isAllActive=e===u,this.pageSize=d(e,this.total)},this.calculatePages=()=>this.total?Math.floor((this.total-1)/this.pageSize)+1:0,this.onPageSelectorChange=e=>{this.current=e},this.removeDuplicateItems=e=>{const t=[...this.vegaPaginationItemTypes];return[...e].map((e=>e.filter(((i,a)=>{const n=t.indexOf(i);return n>=0?(t.splice(n,1),!0):(e.splice(a,1),!1)})))).filter((e=>e.length>0))},this.generateWrapperKey=e=>e.map(String).reduce(((e,t)=>`${e}-${t}`)),this.currentValueGuard=()=>{0===this.pageCount?this.current=1:this.current>this.pageCount&&(this.current=this.pageCount)}}watchCurrentBreakpoint(){}watchPageCount(){this.currentValueGuard()}watchCurrent(){this.currentValueGuard(),this.vegaChangeEventEmitter.emit(this.current)}watchTotal(e){this.isAllActive&&(this.pageSize=e),this.pageCount=this.calculatePages()}watchPageSize(){this.vegaPageSizeChangeEventEmitter.emit(this.pageSize),this.pageCount=this.calculatePages()}watchLayout(){}componentWillLoad(){this.isAllActive=x(this.pageSizeSelectorOptions)&&this.pageSize===this.total&&!b(this.pageSizeSelectorOptions,this.pageSize),this.pageCount=this.calculatePages(),this.currentValueGuard(),this.isAllActive||b(this.pageSizeSelectorOptions,this.pageSize)||(this.pageSizeSelectorOptions=[...this.pageSizeSelectorOptions,this.pageSize])}render(){const t=M.formatCustom(this.extensions);return o(e(a,null,this.removeDuplicateItems(t).map(this.renderPaginationItemsWrapper)),this.host)}get host(){return n(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],pageCount:["watchPageCount"],current:["watchCurrent"],total:["watchTotal"],pageSize:["watchPageSize"],layout:["watchLayout"]}}};X([k()],$.prototype,"globalSlimmers",void 0),X([P()],$.prototype,"translationSlimmer",void 0),X([P()],$.prototype,"childEventPrevent",void 0),X([P()],$.prototype,"childValueChangePrevent",void 0),X([P()],$.prototype,"vegaChangeEventEmitter",void 0),X([P()],$.prototype,"vegaPageSizeChangeEventEmitter",void 0),X([P()],$.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),X([P()],$.prototype,"vegaPaginationPageSizeObserverController",void 0),X([P()],$.prototype,"vegaPaginationCurrentPageObserverController",void 0),X([P()],$.prototype,"breakpointPageResizeObserverSlimmer",void 0),X([P()],$.prototype,"vegaPaginationLayoutController",void 0),$.style=':host{display:flex;align-items:center;line-height:normal;flex-wrap:wrap}:host(.vega-pagination-horizontal){flex-direction:row;justify-content:space-between}:host(.vega-pagination-vertical){flex-direction:column;gap:16px;justify-content:center}@media (min-width: 320px){:host(.vega-pagination-horizontal){gap:4px}}@media (min-width: 768px){:host(.vega-pagination-horizontal){gap:24px}}.vega-pagination{display:flex;padding:0px;margin:0px}.vega-pagination .vega-pagination-item{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item button{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%;cursor:pointer;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item.pager-ellipsis{cursor:default}.vega-pagination .vega-pagination-item:not(.pager-ellipsis):not(:active):hover{text-decoration:underline;text-underline-offset:2px}.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.vega-pagination .vega-pagination-item button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border-radius:9999px}.vega-pagination .vega-pagination-button{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}';export{$ as vega_pagination}
|