@heartlandone/vega 2.68.1 → 2.69.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-f7106a22.js → app-globals-2dfd2b65.js} +3 -3
- package/dist/cjs/{design-token-e14a4e66.js → design-token-bab85370.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-7ee27ab3.js → element-appender-slimmer-2b4eccdc.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-2a091912.js → form-field-controller-slimmer-f865d397.js} +1 -1
- package/dist/cjs/{function-extension-f0e845f2.js → function-extension-7c4f55ab.js} +9 -6
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{language-extension-d0103d1a.js → language-extension-9f771818.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{responsive-format-facade-347db035.js → responsive-format-facade-d673f4bd.js} +2 -2
- package/dist/cjs/{style-formatter-0a09f0dd.js → style-formatter-72a8b6ac.js} +1 -1
- package/dist/cjs/{translation-f5adcb9f.js → translation-5f9f9c0c.js} +2 -0
- package/dist/cjs/{translation-slimmer-4b6239d1.js → translation-slimmer-f0ebe710.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +4 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-calendar_4.cjs.entry.js +2 -2
- package/dist/cjs/vega-card.cjs.entry.js +4 -4
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-chip.cjs.entry.js +4 -4
- package/dist/cjs/vega-code-block.cjs.entry.js +2 -2
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +2 -2
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-dialog_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-divider.cjs.entry.js +4 -4
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +15 -6
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-flag-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-flex.cjs.entry.js +5 -5
- package/dist/cjs/vega-font.cjs.entry.js +4 -4
- package/dist/cjs/vega-form.cjs.entry.js +2 -2
- package/dist/cjs/vega-grid.cjs.entry.js +4 -4
- package/dist/cjs/vega-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-numeric.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-passcode.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-select.cjs.entry.js +139 -13
- package/dist/cjs/vega-input.cjs.entry.js +89 -29
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +4 -4
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
- package/dist/cjs/vega-popover_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-signature-capture.cjs.entry.js +8 -6
- package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-table_11.cjs.entry.js +4 -4
- package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega.cjs.js +5 -5
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.js +4 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +27 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-password-eye-renderer.js +41 -0
- package/dist/collection/components/vega-input/vega-input.css +13 -0
- package/dist/collection/components/vega-input/vega-input.js +21 -3
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.js +4 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.js +18 -4
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +17 -3
- package/dist/collection/components/vega-input-select/vega-input-select.js +14 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +9 -6
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +1 -0
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.js +1 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +2 -2
- package/dist/collection/components/vega-textarea/vega-textarea.js +2 -2
- package/dist/collection/global/icons/eye-slash.js +3 -0
- package/dist/collection/global/icons/eye.js +3 -0
- package/dist/collection/helpers/translation/locales/en.js +2 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +2 -0
- package/dist/collection/helpers/validator/rules/input-select-value-in-source-rule.js +85 -0
- package/dist/collection/helpers/validator/test/rules/input-select-value-in-source-rule.test.js +99 -0
- package/dist/esm/{app-globals-2f689986.js → app-globals-92d24d99.js} +3 -3
- package/dist/esm/{design-token-e9e6b011.js → design-token-64e09c2a.js} +1 -1
- package/dist/esm/{element-appender-slimmer-8dbc8387.js → element-appender-slimmer-5c85b48f.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-b23d9ff3.js → form-field-controller-slimmer-bf071b75.js} +1 -1
- package/dist/esm/{function-extension-eb1d062f.js → function-extension-7ce27a8e.js} +9 -6
- package/dist/esm/index.js +5 -5
- package/dist/esm/{language-extension-3331131f.js → language-extension-44413556.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{responsive-format-facade-b0712993.js → responsive-format-facade-f88850c5.js} +2 -2
- package/dist/esm/{style-formatter-a20a1ef4.js → style-formatter-7dd2c026.js} +1 -1
- package/dist/esm/{translation-f10b1e19.js → translation-96e5debd.js} +2 -0
- package/dist/esm/{translation-slimmer-984c9ce6.js → translation-slimmer-c936cb1b.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +4 -4
- package/dist/esm/vega-app-header-button.entry.js +4 -4
- package/dist/esm/vega-box.entry.js +5 -5
- package/dist/esm/vega-button-circle.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +3 -3
- package/dist/esm/vega-calendar_4.entry.js +2 -2
- package/dist/esm/vega-card.entry.js +4 -4
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +2 -2
- package/dist/esm/vega-chip.entry.js +4 -4
- package/dist/esm/vega-code-block.entry.js +2 -2
- package/dist/esm/vega-color-picker.entry.js +2 -2
- package/dist/esm/vega-combo-box.entry.js +2 -2
- package/dist/esm/vega-date-picker_2.entry.js +6 -6
- package/dist/esm/vega-dialog_2.entry.js +4 -4
- package/dist/esm/vega-divider.entry.js +4 -4
- package/dist/esm/vega-dropdown_5.entry.js +15 -6
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +3 -3
- package/dist/esm/vega-flag-icon.entry.js +4 -4
- package/dist/esm/vega-flex.entry.js +5 -5
- package/dist/esm/vega-font.entry.js +4 -4
- package/dist/esm/vega-form.entry.js +2 -2
- package/dist/esm/vega-grid.entry.js +4 -4
- package/dist/esm/vega-icon.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +5 -5
- package/dist/esm/vega-input-credit-card.entry.js +2 -2
- package/dist/esm/vega-input-numeric.entry.js +2 -2
- package/dist/esm/vega-input-passcode.entry.js +2 -2
- package/dist/esm/vega-input-phone-number.entry.js +3 -3
- package/dist/esm/vega-input-range.entry.js +3 -3
- package/dist/esm/vega-input-select.entry.js +139 -13
- package/dist/esm/vega-input.entry.js +90 -30
- package/dist/esm/vega-left-nav_5.entry.js +4 -4
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +4 -4
- package/dist/esm/vega-popover_2.entry.js +5 -5
- package/dist/esm/vega-radio_2.entry.js +2 -2
- package/dist/esm/vega-rich-text-editor_4.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +4 -4
- package/dist/esm/vega-selection-tile_2.entry.js +2 -2
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +8 -6
- package/dist/esm/vega-stepper.entry.js +2 -2
- package/dist/esm/vega-tab-group_2.entry.js +1 -1
- package/dist/esm/vega-table_11.entry.js +4 -4
- package/dist/esm/vega-textarea.entry.js +3 -3
- package/dist/esm/vega-time-picker_2.entry.js +6 -6
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega-tooltip_2.entry.js +4 -4
- package/dist/esm/vega.js +5 -5
- package/dist/sri/vega-sri-manifest.json +215 -215
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +6 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-password-eye-renderer.d.ts +9 -0
- package/dist/types/components/vega-input/vega-input.d.ts +4 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.d.ts +1 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.d.ts +1 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +1 -0
- package/dist/types/components/vega-input-select/types.d.ts +1 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +1 -0
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +1 -1
- package/dist/types/components/vega-textarea/vega-textarea.d.ts +1 -1
- package/dist/types/components.d.ts +14 -4
- package/dist/types/global/icons/eye-slash.d.ts +3 -0
- package/dist/types/global/icons/eye.d.ts +3 -0
- package/dist/types/helpers/translation/interface.d.ts +2 -0
- package/dist/types/helpers/validator/rules/input-select-value-in-source-rule.d.ts +60 -0
- package/dist/types/helpers/validator/test/rules/input-select-value-in-source-rule.test.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-bb0f2b5f.entry.js → p-001a56b3.entry.js} +1 -1
- package/dist/vega/{p-b78670c9.entry.js → p-04134522.entry.js} +1 -1
- package/dist/vega/{p-2c945862.entry.js → p-05d64537.entry.js} +1 -1
- package/dist/vega/{p-7dde3be9.entry.js → p-0cefecb6.entry.js} +1 -1
- package/dist/vega/{p-018d70a5.js → p-0fe9cff6.js} +1 -1
- package/dist/vega/{p-a6fb5a40.entry.js → p-1d5f57ec.entry.js} +1 -1
- package/dist/vega/{p-9fb6fbcc.js → p-1f26de89.js} +1 -1
- package/dist/vega/{p-76b1dae4.entry.js → p-235bf01b.entry.js} +1 -1
- package/dist/vega/{p-85407fb9.js → p-2c8e5ecb.js} +1 -1
- package/dist/vega/{p-e0979451.entry.js → p-2e6ce1e9.entry.js} +1 -1
- package/dist/vega/p-304275ae.entry.js +1 -0
- package/dist/vega/p-35cd469a.entry.js +1 -0
- package/dist/vega/p-366825fa.entry.js +1 -0
- package/dist/vega/{p-19256107.entry.js → p-3c865f86.entry.js} +1 -1
- package/dist/vega/{p-16d68187.js → p-3d13b234.js} +1 -1
- package/dist/vega/{p-56636a58.entry.js → p-3e040167.entry.js} +1 -1
- package/dist/vega/{p-3b800f1b.entry.js → p-45dd1adf.entry.js} +1 -1
- package/dist/vega/{p-b8558278.entry.js → p-4fe4d946.entry.js} +1 -1
- package/dist/vega/{p-238afe1b.entry.js → p-52efaadb.entry.js} +1 -1
- package/dist/vega/{p-5a555092.entry.js → p-54776c23.entry.js} +1 -1
- package/dist/vega/{p-99bf5993.entry.js → p-560d29f8.entry.js} +1 -1
- package/dist/vega/{p-48bc03fa.entry.js → p-58769a72.entry.js} +1 -1
- package/dist/vega/{p-de02f404.entry.js → p-5972c101.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-6078bbac.entry.js +1 -0
- package/dist/vega/{p-6609d87e.entry.js → p-652626b6.entry.js} +1 -1
- package/dist/vega/{p-787caad3.entry.js → p-67db4cea.entry.js} +1 -1
- package/dist/vega/{p-b5060e84.entry.js → p-69335c91.entry.js} +1 -1
- package/dist/vega/{p-0a55f984.entry.js → p-71e36fae.entry.js} +1 -1
- package/dist/vega/{p-d5ff8b7f.js → p-75f981ce.js} +1 -1
- package/dist/vega/{p-c26332ae.entry.js → p-796d840c.entry.js} +1 -1
- package/dist/vega/{p-8dba59a6.entry.js → p-7a590741.entry.js} +1 -1
- package/dist/vega/{p-ad5393f0.entry.js → p-7b42da4f.entry.js} +1 -1
- package/dist/vega/{p-69d27eaf.entry.js → p-7cd09051.entry.js} +1 -1
- package/dist/vega/{p-83a50ac2.entry.js → p-85935dd4.entry.js} +1 -1
- package/dist/vega/{p-0849f85e.js → p-895560eb.js} +1 -1
- package/dist/vega/{p-56f77466.entry.js → p-91d71ae9.entry.js} +1 -1
- package/dist/vega/{p-d3905af1.entry.js → p-97e2b6c8.entry.js} +1 -1
- package/dist/vega/{p-626246b4.entry.js → p-997308b1.entry.js} +1 -1
- package/dist/vega/{p-22fe8c61.entry.js → p-9a507d97.entry.js} +1 -1
- package/dist/vega/{p-1dcb1fcd.entry.js → p-a31e6ff6.entry.js} +1 -1
- package/dist/vega/{p-24419ebe.entry.js → p-a5ec6ca4.entry.js} +1 -1
- package/dist/vega/{p-00376f71.entry.js → p-bcdd3495.entry.js} +1 -1
- package/dist/vega/{p-f0fb3fdd.entry.js → p-c4b9fbc8.entry.js} +1 -1
- package/dist/vega/{p-de8c5fae.entry.js → p-c73aeafc.entry.js} +1 -1
- package/dist/vega/{p-f3399ef1.entry.js → p-cdac385a.entry.js} +1 -1
- package/dist/vega/{p-94e167b8.entry.js → p-cebd6896.entry.js} +1 -1
- package/dist/vega/{p-1922303e.entry.js → p-d6934517.entry.js} +1 -1
- package/dist/vega/p-d70e178a.js +1 -0
- package/dist/vega/{p-1dd7f8b2.entry.js → p-dbcd70cc.entry.js} +1 -1
- package/dist/vega/{p-2478f65e.js → p-dda5a984.js} +1 -1
- package/dist/vega/{p-bd0e55a2.entry.js → p-dde03224.entry.js} +1 -1
- package/dist/vega/{p-a2506cb5.entry.js → p-df58f29b.entry.js} +1 -1
- package/dist/vega/{p-30a8d9d6.entry.js → p-e2ab52cd.entry.js} +1 -1
- package/dist/vega/{p-7747c163.js → p-e9c323a4.js} +1 -1
- package/dist/vega/{p-d67200e8.entry.js → p-ea96635b.entry.js} +1 -1
- package/dist/vega/{p-2e32fbe6.entry.js → p-ed111a57.entry.js} +1 -1
- package/dist/vega/p-f69f84a7.js +1 -0
- package/dist/vega/{p-c54148fb.entry.js → p-f6d84ffc.entry.js} +1 -1
- package/dist/vega/{p-82ef2de0.entry.js → p-fd43d473.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-113d305b.entry.js +0 -1
- package/dist/vega/p-16358fec.entry.js +0 -1
- package/dist/vega/p-240d9d35.entry.js +0 -1
- package/dist/vega/p-39482a1a.js +0 -1
- package/dist/vega/p-437f865f.js +0 -1
- package/dist/vega/p-705dad87.entry.js +0 -1
|
@@ -7,10 +7,10 @@ import { a as VegaInternalIconManager } from './internal-icon-manager-f0486245.j
|
|
|
7
7
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
8
8
|
import { p as VegaDropdownRenderItemInternalOverridden, l as VegaInputSelectRenderPrefixIconInternalOverridden, q as VegaDropdownSearchInternalOverridden } from './vega-internal-event-id-5c3e5f7f.js';
|
|
9
9
|
import './vega-env-manager-8f8dc473.js';
|
|
10
|
-
import './function-extension-
|
|
10
|
+
import './function-extension-7ce27a8e.js';
|
|
11
11
|
import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
12
12
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
13
|
-
import './translation-
|
|
13
|
+
import './translation-96e5debd.js';
|
|
14
14
|
import './dto-renderer-manager-7abc53bf.js';
|
|
15
15
|
import './vega-nonce-manager-87615d3c.js';
|
|
16
16
|
import './code-block-e8839202.js';
|
|
@@ -19,7 +19,7 @@ import { S as StringFormatStrategy } from './string-format-strategy.abstract-452
|
|
|
19
19
|
import { i as isNonNullable } from './type-guard-12f7654b.js';
|
|
20
20
|
import { F as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-52f93124.js';
|
|
21
21
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
22
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
22
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-bf071b75.js';
|
|
23
23
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
24
24
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-4e28e9f8.js';
|
|
25
25
|
import { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
|
|
@@ -4,7 +4,7 @@ import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod,
|
|
|
4
4
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
5
5
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-4e28e9f8.js';
|
|
6
6
|
import { D as DomNodeSubjectObserverFactory, f as VegaChange } from './dom-node-subject-observer-factory-dca87b70.js';
|
|
7
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
7
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-bf071b75.js';
|
|
8
8
|
import { i as isArrayEqual } from './array-7888f339.js';
|
|
9
9
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
10
10
|
import { F as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-52f93124.js';
|
|
@@ -13,7 +13,7 @@ import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-
|
|
|
13
13
|
import { I as InputRangeRequiredRule } from './input-range-required-rule-3ad74776.js';
|
|
14
14
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
15
15
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
16
|
-
import { T as TranslationSlimmer } from './translation-slimmer-
|
|
16
|
+
import { T as TranslationSlimmer } from './translation-slimmer-c936cb1b.js';
|
|
17
17
|
import './dynamic-slimmer-90b8af32.js';
|
|
18
18
|
import './internal-vega-event-manager-516aa721.js';
|
|
19
19
|
import './try-get-document-bef0f526.js';
|
|
@@ -21,7 +21,7 @@ import './observer-3959f9dd.js';
|
|
|
21
21
|
import './string-a953eafc.js';
|
|
22
22
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
23
23
|
import './vega-internal-event-id-5c3e5f7f.js';
|
|
24
|
-
import './translation-
|
|
24
|
+
import './translation-96e5debd.js';
|
|
25
25
|
import './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
26
26
|
import './ui-8424715a.js';
|
|
27
27
|
import './breakpoints-d9faf11c.js';
|
|
@@ -4,7 +4,7 @@ import { s as sanitizeVegaComponent } from './component-7d906393.js';
|
|
|
4
4
|
import { P as PageResizeObserverSlimmer, g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
5
5
|
import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod, L as LogUtility, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
6
6
|
import { a as arrayToClassString } from './ui-bb99c0c2.js';
|
|
7
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
7
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-f88850c5.js';
|
|
8
8
|
import { D as DomNodeSubjectObserverFactory, u as VegaLabelButtonClick, p as VegaDropdownShow, q as VegaDropdownHide, V as VegaDropdownClick, s as VegaDropdownSearch, t as VegaSearchTrigger, r as VegaReset, d as domNodeSubjectFactory, f as VegaChange, n as VegaSearch, I as VegaShow, J as VegaHide } from './dom-node-subject-observer-factory-dca87b70.js';
|
|
9
9
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
10
10
|
import { j as VegaInternalDropdownTemplateItemsChange, k as VegaInternalVirtualScrollToBottom, l as VegaInputSelectRenderPrefixIconInternalOverridden } from './vega-internal-event-id-5c3e5f7f.js';
|
|
@@ -15,22 +15,22 @@ import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0f
|
|
|
15
15
|
import { c as chevronUp } from './chevron-up-b1989751.js';
|
|
16
16
|
import { c as chevronDown } from './chevron-down-4a75d28e.js';
|
|
17
17
|
import { a as VegaInternalIconManager } from './internal-icon-manager-f0486245.js';
|
|
18
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
18
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-bf071b75.js';
|
|
19
19
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-4e28e9f8.js';
|
|
20
20
|
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-76331524.js';
|
|
21
21
|
import { Q as isArrayOfType, U as isSelectSourceItemType } from './type-guard-12f7654b.js';
|
|
22
22
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-58ebc13c.js';
|
|
23
23
|
import { T as TagNameMutationFilter } from './mutation-observer-filters-1a054fb0.js';
|
|
24
|
-
import { T as TranslationSlimmer } from './translation-slimmer-
|
|
24
|
+
import { T as TranslationSlimmer } from './translation-slimmer-c936cb1b.js';
|
|
25
25
|
import { r as remoteInvocationRegistry } from './remote-invocation-registry-d69245c2.js';
|
|
26
|
-
import './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
26
|
+
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
27
27
|
import './ui-8424715a.js';
|
|
28
28
|
import './breakpoints-d9faf11c.js';
|
|
29
29
|
import './try-get-document-bef0f526.js';
|
|
30
30
|
import './number-4398f2e1.js';
|
|
31
31
|
import './pixel-f32c07ce.js';
|
|
32
32
|
import './vega-env-manager-8f8dc473.js';
|
|
33
|
-
import './function-extension-
|
|
33
|
+
import './function-extension-7ce27a8e.js';
|
|
34
34
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
35
35
|
import './dynamic-slimmer-90b8af32.js';
|
|
36
36
|
import './dark-mode-style-controller-b7e85b6a.js';
|
|
@@ -46,7 +46,7 @@ import './base-renderer-101f6d04.js';
|
|
|
46
46
|
import './feature-flag-controller-51659753.js';
|
|
47
47
|
import './index-e9da316f.js';
|
|
48
48
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
49
|
-
import './translation-
|
|
49
|
+
import './translation-96e5debd.js';
|
|
50
50
|
import './sub-state-observer-slimmer-3504e2f2.js';
|
|
51
51
|
import './typography-396de03f.js';
|
|
52
52
|
|
|
@@ -225,9 +225,15 @@ class VegaInputSelectValueController extends VegaSlimmer {
|
|
|
225
225
|
if (this.selectType === 'multiple') {
|
|
226
226
|
newValue = newValue;
|
|
227
227
|
oldValue = oldValue;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
let validValue;
|
|
229
|
+
if (newValue) {
|
|
230
|
+
validValue = !this.vegaDropdownProps.preserveValueIfNotInSource
|
|
231
|
+
? newValue.filter((value) => this.sourceController.getItem(value))
|
|
232
|
+
: newValue;
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
validValue = [];
|
|
236
|
+
}
|
|
231
237
|
if (!isArrayEqual(validValue, oldValue, true)) {
|
|
232
238
|
this.setValue(validValue);
|
|
233
239
|
this.changeEventEmitter.emit(validValue);
|
|
@@ -243,7 +249,12 @@ class VegaInputSelectValueController extends VegaSlimmer {
|
|
|
243
249
|
else {
|
|
244
250
|
if (newValue !== oldValue) {
|
|
245
251
|
const sourceItem = this.sourceController.getItem(newValue);
|
|
246
|
-
this.
|
|
252
|
+
if (!this.vegaDropdownProps.preserveValueIfNotInSource) {
|
|
253
|
+
this.setValue(sourceItem ? sourceItem.id : '');
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
this.setValue(newValue);
|
|
257
|
+
}
|
|
247
258
|
this.changeEventEmitter.emit(this.value);
|
|
248
259
|
ChangeManager.notify(FORM_ELEMENT_VALUE_CHANGE, {
|
|
249
260
|
host: this.host,
|
|
@@ -297,6 +308,9 @@ __decorate$6([
|
|
|
297
308
|
__decorate$6([
|
|
298
309
|
MapToComponentField()
|
|
299
310
|
], VegaInputSelectValueController.prototype, "sourceController", void 0);
|
|
311
|
+
__decorate$6([
|
|
312
|
+
MapToComponentField()
|
|
313
|
+
], VegaInputSelectValueController.prototype, "vegaDropdownProps", void 0);
|
|
300
314
|
__decorate$6([
|
|
301
315
|
MapToComponentMethod('watchValue')
|
|
302
316
|
], VegaInputSelectValueController.prototype, "handleValueChange", void 0);
|
|
@@ -342,9 +356,14 @@ class VegaInputSelectDropdownRenderer extends VegaSlimmer {
|
|
|
342
356
|
};
|
|
343
357
|
this.renderSingleSelected = () => {
|
|
344
358
|
const item = this.sourceController.getItem(this.value);
|
|
345
|
-
if (item) {
|
|
359
|
+
if (item || (this.vegaDropdownProps.preserveValueIfNotInSource && this.value)) {
|
|
346
360
|
return (h("span", { class: "vega-input-select-selected", part: "selected-box" },
|
|
347
|
-
h("vega-text", { overflow: "ellipsis", tooltip: { placement: 'bottom' }, key:
|
|
361
|
+
h("vega-text", { overflow: "ellipsis", tooltip: { placement: 'bottom' }, key: this.vegaDropdownProps.preserveValueIfNotInSource
|
|
362
|
+
? this.value
|
|
363
|
+
: // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
364
|
+
item.displayName },
|
|
365
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
366
|
+
this.vegaDropdownProps.preserveValueIfNotInSource ? this.value : item.displayName)));
|
|
348
367
|
}
|
|
349
368
|
else {
|
|
350
369
|
return (h("div", { class: "vega-input-select-placeholder", part: "placeholder" }, this.translationSlimmer.t(this.placeholder)));
|
|
@@ -354,6 +373,12 @@ class VegaInputSelectDropdownRenderer extends VegaSlimmer {
|
|
|
354
373
|
return Object.assign({ searchable: true, caseSensitive: false }, this.vegaDropdownProps);
|
|
355
374
|
};
|
|
356
375
|
}
|
|
376
|
+
watchVegaDropdownProps() {
|
|
377
|
+
if (this.vegaDropdownProps && this.vegaDropdownProps.preserveValueIfNotInSource !== undefined) {
|
|
378
|
+
this.dropdown.preserveValueIfNotInSource = this.vegaDropdownProps.preserveValueIfNotInSource;
|
|
379
|
+
this.dropdown.selectedSourceKey = this.value;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
357
382
|
show() {
|
|
358
383
|
return this.dropdown.show();
|
|
359
384
|
}
|
|
@@ -445,6 +470,9 @@ __decorate$5([
|
|
|
445
470
|
__decorate$5([
|
|
446
471
|
MapToComponentField()
|
|
447
472
|
], VegaInputSelectDropdownRenderer.prototype, "disabled", void 0);
|
|
473
|
+
__decorate$5([
|
|
474
|
+
MapToComponentMethod('watchVegaDropdownProps')
|
|
475
|
+
], VegaInputSelectDropdownRenderer.prototype, "watchVegaDropdownProps", null);
|
|
448
476
|
|
|
449
477
|
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
450
478
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -582,6 +610,7 @@ class VegaInputSelectSourceController extends VegaSlimmer {
|
|
|
582
610
|
* convert the dropdown source when the component watchSource call
|
|
583
611
|
*/
|
|
584
612
|
this.handleSourceChange = () => {
|
|
613
|
+
this.host.dataset.source = JSON.stringify(this.source);
|
|
585
614
|
this.source = isArrayOfType(this.source, isSelectSourceItemType) ? this.source : [];
|
|
586
615
|
};
|
|
587
616
|
}
|
|
@@ -605,6 +634,9 @@ class VegaInputSelectSourceController extends VegaSlimmer {
|
|
|
605
634
|
return this.source.find((item) => item.id === id);
|
|
606
635
|
}
|
|
607
636
|
}
|
|
637
|
+
__decorate$3([
|
|
638
|
+
MapToComponentField()
|
|
639
|
+
], VegaInputSelectSourceController.prototype, "host", void 0);
|
|
608
640
|
__decorate$3([
|
|
609
641
|
MapToComponentField({ writable: true })
|
|
610
642
|
], VegaInputSelectSourceController.prototype, "source", void 0);
|
|
@@ -716,6 +748,91 @@ __decorate$1([
|
|
|
716
748
|
MapToComponentMethod('connectedCallback')
|
|
717
749
|
], VegaInputSelectPrefixIconRenderer.prototype, "connectedCallback", null);
|
|
718
750
|
|
|
751
|
+
/**
|
|
752
|
+
* A rule that checks if the value exists in the source or not
|
|
753
|
+
*
|
|
754
|
+
* @augments {InternalFormFieldValidationRule<SelectValueType<SelectType>>}
|
|
755
|
+
*/
|
|
756
|
+
class InputSelectValueInSourceRule extends InternalFormFieldValidationRule {
|
|
757
|
+
/**
|
|
758
|
+
* It creates a new instance of the class with the given config.
|
|
759
|
+
*
|
|
760
|
+
* @param {() => SelectSourceItem[]} inputSelectSourceGetter - The input select source getter function
|
|
761
|
+
*/
|
|
762
|
+
constructor(inputSelectSourceGetter) {
|
|
763
|
+
super();
|
|
764
|
+
this.inputSelectSourceGetter = inputSelectSourceGetter;
|
|
765
|
+
/**
|
|
766
|
+
* Generate an invalid result
|
|
767
|
+
*
|
|
768
|
+
* @param {string} message Error message
|
|
769
|
+
* @returns {EvaluateResultTranslation} invalid validation result
|
|
770
|
+
*/
|
|
771
|
+
this.invalidResult = (message) => ({
|
|
772
|
+
isValid: false,
|
|
773
|
+
message,
|
|
774
|
+
});
|
|
775
|
+
/**
|
|
776
|
+
* Generate a valid result
|
|
777
|
+
*
|
|
778
|
+
* @returns {EvaluateResultTranslation} invalid validation result
|
|
779
|
+
*/
|
|
780
|
+
this.validResult = () => ({
|
|
781
|
+
isValid: true,
|
|
782
|
+
message: '',
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* If the input is accepted and the status is not disabled and visible, then return true
|
|
787
|
+
*
|
|
788
|
+
* @param {unknown} input - The input to be evaluated.
|
|
789
|
+
* @param {FormFieldStatusMeta} [status] - FormFieldStatusMeta
|
|
790
|
+
* @returns {boolean} A boolean value.
|
|
791
|
+
*/
|
|
792
|
+
canEvaluate(input, status) {
|
|
793
|
+
return status
|
|
794
|
+
? this.isAcceptedInputType(input) && !status.disabled && status.visible
|
|
795
|
+
: this.isAcceptedInputType(input);
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* check if the value exists in the source
|
|
799
|
+
*
|
|
800
|
+
* @param {SelectValueType<SelectType>} input - The input to be evaluated.
|
|
801
|
+
* @returns {EvaluateResultTranslation} - The result of the evaluation.
|
|
802
|
+
*/
|
|
803
|
+
evaluate(input) {
|
|
804
|
+
if (typeof input === 'string' &&
|
|
805
|
+
!this.inputSelectSourceGetter().find((item) => item.id === input)) {
|
|
806
|
+
return this.invalidResult(`The value does not exist in the source`);
|
|
807
|
+
}
|
|
808
|
+
else if (Array.isArray(input) &&
|
|
809
|
+
!input.every((value) => this.inputSelectSourceGetter().find((item) => item.id === value))) {
|
|
810
|
+
return this.invalidResult(`There are values that do not exist in the source`);
|
|
811
|
+
}
|
|
812
|
+
return this.validResult();
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* If the field is not disabled, visible, and has been touched or modified, then show the error
|
|
816
|
+
*
|
|
817
|
+
* @param {FormFieldStatusMeta} status - FormFieldStatusMeta
|
|
818
|
+
* @returns {boolean} A boolean value.
|
|
819
|
+
*/
|
|
820
|
+
shouldShowError(status) {
|
|
821
|
+
return !status.disabled && status.visible && (status.touched || status.modified);
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* It returns true if the input is a string or an array of two strings, and each string is a valid string
|
|
825
|
+
*
|
|
826
|
+
* @param {unknown} input - The input value to be validated.
|
|
827
|
+
* @returns {boolean} A boolean value.
|
|
828
|
+
*/
|
|
829
|
+
isAcceptedInputType(input) {
|
|
830
|
+
return ((typeof input === 'string' ||
|
|
831
|
+
(Array.isArray(input) && input.every((item) => typeof item === 'string'))) &&
|
|
832
|
+
input.length > 0);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
719
836
|
const vegaInputSelectCss = ":host{display:inline-block;width:100%;min-width:0px;text-align:left;line-height:normal}:host(.default) .vega-input-select-container{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px}:host(.small) .vega-input-select-container{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px}vega-field-label{margin-bottom:8px}:host .vega-input-select-container{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;gap:8px;display:block;display:flex;align-items:center;cursor:pointer}:host .vega-input-select-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-input-select-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .error .vega-input-select-container{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .error .vega-input-select-container:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .error .vega-input-select-container:focus{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}:host(.vega-input-select-disabled) vega-dropdown{pointer-events:none}:host(.vega-input-select-disabled) .vega-input-select-container{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1));background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host(.vega-input-select-disabled) .vega-input-select-container:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.vega-input-select-disabled) vega-icon{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host .vega-input-select-select-container{flex-grow:1;min-width:0px}:host .vega-input-select-selected{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));display:block;min-height:24px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-select-selected{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-select-selected{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-select-selected{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.vega-input-select-disabled) .vega-input-select-selected{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host .vega-input-select-placeholder{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:24px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-select-placeholder{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-select-placeholder{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-select-placeholder{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-input-select-prefix-icon{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}:host .vega-input-select-toggle-icon{width:16px;height:16px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}:host .vega-input-select-hint{padding-left:8px;padding-right:8px;padding-top:12px;font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-select-hint{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-select-hint{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-select-hint{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host vega-dropdown{display:block}";
|
|
720
837
|
|
|
721
838
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -756,6 +873,12 @@ const VegaInputSelect = class {
|
|
|
756
873
|
propertyName: 'required',
|
|
757
874
|
ruleFactory: (isRequired) => (isRequired ? new RequiredFieldRule() : null),
|
|
758
875
|
},
|
|
876
|
+
{
|
|
877
|
+
propertyName: 'data-source',
|
|
878
|
+
ruleFactory: () => {
|
|
879
|
+
return new InputSelectValueInSourceRule(() => this.source);
|
|
880
|
+
},
|
|
881
|
+
},
|
|
759
882
|
],
|
|
760
883
|
validationRulesName: 'validationRules',
|
|
761
884
|
defaultValue: (target) => (target.selectType === 'multiple' ? [] : ''),
|
|
@@ -897,6 +1020,8 @@ const VegaInputSelect = class {
|
|
|
897
1020
|
}
|
|
898
1021
|
watchValidationRules() {
|
|
899
1022
|
}
|
|
1023
|
+
watchVegaDropdownProps() {
|
|
1024
|
+
}
|
|
900
1025
|
componentWillLoad() {
|
|
901
1026
|
}
|
|
902
1027
|
/**
|
|
@@ -931,7 +1056,8 @@ const VegaInputSelect = class {
|
|
|
931
1056
|
static get watchers() { return {
|
|
932
1057
|
"source": ["watchSource"],
|
|
933
1058
|
"value": ["watchValue"],
|
|
934
|
-
"validationRules": ["watchValidationRules"]
|
|
1059
|
+
"validationRules": ["watchValidationRules"],
|
|
1060
|
+
"vegaDropdownProps": ["watchVegaDropdownProps"]
|
|
935
1061
|
}; }
|
|
936
1062
|
};
|
|
937
1063
|
__decorate([
|
|
@@ -9,9 +9,9 @@ import { C as ComponentLoadRequired } from './component-load-required-db42032a.j
|
|
|
9
9
|
import { c as MapToComponentField, V as VegaSlimmer, M as MapToComponentMethod, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
10
10
|
import { s as slotPlaceholder } from './placeholder-bf562081.js';
|
|
11
11
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-a84cc93e.js';
|
|
12
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
12
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-bf071b75.js';
|
|
13
13
|
import { c as createEventEmitSlimmer } from './event-emit-slimmer-4e28e9f8.js';
|
|
14
|
-
import { f as VegaChange, C as VegaFocus, E as VegaBlur, u as VegaLabelButtonClick, F as VegaPaste
|
|
14
|
+
import { D as DomNodeSubjectObserverFactory, a as VegaClick, f as VegaChange, C as VegaFocus, E as VegaBlur, u as VegaLabelButtonClick, F as VegaPaste } from './dom-node-subject-observer-factory-dca87b70.js';
|
|
15
15
|
import { F as FORM_ELEMENT_VALUE_CHANGE } from './static-subject-title-52f93124.js';
|
|
16
16
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
17
17
|
import { S as StringMaskStrategy } from './string-mask-strategy-6232a1c1.js';
|
|
@@ -22,6 +22,7 @@ import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0
|
|
|
22
22
|
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-3504e2f2.js';
|
|
23
23
|
import { i as isArrayEqual } from './array-7888f339.js';
|
|
24
24
|
import { d as deepEqual } from './object-66c37948.js';
|
|
25
|
+
import { a as VegaInternalIconManager } from './internal-icon-manager-f0486245.js';
|
|
25
26
|
import './number-4398f2e1.js';
|
|
26
27
|
import './string-a953eafc.js';
|
|
27
28
|
import './observer-3959f9dd.js';
|
|
@@ -29,7 +30,7 @@ import './ui-bb99c0c2.js';
|
|
|
29
30
|
import './create-public-api-runtime-metrics-slimmer-bedf3a1e.js';
|
|
30
31
|
import './dynamic-slimmer-90b8af32.js';
|
|
31
32
|
import './vega-internal-event-id-5c3e5f7f.js';
|
|
32
|
-
import './translation-
|
|
33
|
+
import './translation-96e5debd.js';
|
|
33
34
|
import './mutation-observer-slimmer-58ebc13c.js';
|
|
34
35
|
import './mutation-observer-filters-1a054fb0.js';
|
|
35
36
|
import './internal-vega-event-manager-516aa721.js';
|
|
@@ -103,7 +104,7 @@ class EmailFieldRule extends InternalFormFieldValidationRule {
|
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
|
|
106
|
-
var __decorate$
|
|
107
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
107
108
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
108
109
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
109
110
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -142,11 +143,11 @@ class VegaInputCopyPasteController extends VegaSlimmer {
|
|
|
142
143
|
e.preventDefault();
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
|
-
__decorate$
|
|
146
|
+
__decorate$6([
|
|
146
147
|
MapToComponentField()
|
|
147
148
|
], VegaInputCopyPasteController.prototype, "disableCopyPaste", void 0);
|
|
148
149
|
|
|
149
|
-
var __decorate$
|
|
150
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
150
151
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
151
152
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
152
153
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -175,10 +176,10 @@ class VegaInputPrefixSlotRenderer extends VegaSlimmer {
|
|
|
175
176
|
return this.host.querySelector('[slot="prefix-icon"]') ? true : false;
|
|
176
177
|
}
|
|
177
178
|
}
|
|
178
|
-
__decorate$
|
|
179
|
+
__decorate$5([
|
|
179
180
|
MapToComponentField()
|
|
180
181
|
], VegaInputPrefixSlotRenderer.prototype, "host", void 0);
|
|
181
|
-
__decorate$
|
|
182
|
+
__decorate$5([
|
|
182
183
|
MapToComponentField()
|
|
183
184
|
], VegaInputPrefixSlotRenderer.prototype, "prefixIcon", void 0);
|
|
184
185
|
|
|
@@ -461,7 +462,7 @@ class NumberThousandCommaStrategy extends NumberMaskStrategy {
|
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
464
|
|
|
464
|
-
var __decorate$
|
|
465
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
465
466
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
466
467
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
467
468
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -601,16 +602,16 @@ class VegaInputMaskConfigController extends StringInputFormatterSlimmer {
|
|
|
601
602
|
return maskConfig.type === 'custom' && maskConfig.trigger === 'blur';
|
|
602
603
|
}
|
|
603
604
|
}
|
|
604
|
-
__decorate$
|
|
605
|
+
__decorate$4([
|
|
605
606
|
MapToComponentField()
|
|
606
607
|
], VegaInputMaskConfigController.prototype, "maskConfig", void 0);
|
|
607
|
-
__decorate$
|
|
608
|
+
__decorate$4([
|
|
608
609
|
MapToComponentField()
|
|
609
610
|
], VegaInputMaskConfigController.prototype, "disableCopyPaste", void 0);
|
|
610
|
-
__decorate$
|
|
611
|
+
__decorate$4([
|
|
611
612
|
MapToComponentField()
|
|
612
613
|
], VegaInputMaskConfigController.prototype, "type", void 0);
|
|
613
|
-
__decorate$
|
|
614
|
+
__decorate$4([
|
|
614
615
|
MapToComponentMethod('watchValue')
|
|
615
616
|
], VegaInputMaskConfigController.prototype, "watchValue", null);
|
|
616
617
|
|
|
@@ -665,7 +666,7 @@ const VegaInputRuntimeMetricsPayloadDefinition = [
|
|
|
665
666
|
},
|
|
666
667
|
];
|
|
667
668
|
|
|
668
|
-
var __decorate$
|
|
669
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
669
670
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
670
671
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
671
672
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -759,32 +760,32 @@ class VegaInputCompactWidthController extends VegaSlimmer {
|
|
|
759
760
|
return this.calculateTextWidthContainer;
|
|
760
761
|
}
|
|
761
762
|
}
|
|
762
|
-
__decorate$
|
|
763
|
+
__decorate$3([
|
|
763
764
|
MapToComponentField()
|
|
764
765
|
], VegaInputCompactWidthController.prototype, "host", void 0);
|
|
765
|
-
__decorate$
|
|
766
|
+
__decorate$3([
|
|
766
767
|
MapToComponentField()
|
|
767
768
|
], VegaInputCompactWidthController.prototype, "value", void 0);
|
|
768
|
-
__decorate$
|
|
769
|
+
__decorate$3([
|
|
769
770
|
MapToComponentField()
|
|
770
771
|
], VegaInputCompactWidthController.prototype, "placeholder", void 0);
|
|
771
|
-
__decorate$
|
|
772
|
+
__decorate$3([
|
|
772
773
|
MapToComponentField()
|
|
773
774
|
], VegaInputCompactWidthController.prototype, "isCompactInputWidth", void 0);
|
|
774
|
-
__decorate$
|
|
775
|
+
__decorate$3([
|
|
775
776
|
MapToComponentField()
|
|
776
777
|
], VegaInputCompactWidthController.prototype, "suffixText", void 0);
|
|
777
|
-
__decorate$
|
|
778
|
+
__decorate$3([
|
|
778
779
|
MapToComponentMethod('componentDidLoad')
|
|
779
780
|
], VegaInputCompactWidthController.prototype, "componentDidLoad", null);
|
|
780
|
-
__decorate$
|
|
781
|
+
__decorate$3([
|
|
781
782
|
MapToComponentMethod('watchValue')
|
|
782
783
|
], VegaInputCompactWidthController.prototype, "watchValue", null);
|
|
783
|
-
__decorate$
|
|
784
|
+
__decorate$3([
|
|
784
785
|
MapToComponentMethod('watchSuffixText')
|
|
785
786
|
], VegaInputCompactWidthController.prototype, "watchSuffixText", null);
|
|
786
787
|
|
|
787
|
-
var __decorate$
|
|
788
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
788
789
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
789
790
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
790
791
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -816,20 +817,63 @@ class VegaInputStateController extends SubStateObserverSlimmer {
|
|
|
816
817
|
});
|
|
817
818
|
}
|
|
818
819
|
}
|
|
819
|
-
__decorate$
|
|
820
|
+
__decorate$2([
|
|
820
821
|
MapToComponentField()
|
|
821
822
|
], VegaInputStateController.prototype, "host", void 0);
|
|
822
|
-
__decorate$
|
|
823
|
+
__decorate$2([
|
|
823
824
|
MapToComponentField({ writable: true })
|
|
824
825
|
], VegaInputStateController.prototype, "prefixText", void 0);
|
|
825
|
-
__decorate$
|
|
826
|
+
__decorate$2([
|
|
826
827
|
MapToComponentField({ writable: true })
|
|
827
828
|
], VegaInputStateController.prototype, "suffixText", void 0);
|
|
828
|
-
__decorate$
|
|
829
|
+
__decorate$2([
|
|
829
830
|
MapToComponentField({ writable: true })
|
|
830
831
|
], VegaInputStateController.prototype, "isCompactInputWidth", void 0);
|
|
831
832
|
|
|
832
|
-
const
|
|
833
|
+
const eye = {
|
|
834
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><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>`,
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
const eyeSlash = {
|
|
838
|
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><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>`,
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
842
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
843
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
844
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
845
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
846
|
+
};
|
|
847
|
+
class VegaInputPasswordEyeRenderer extends VegaSlimmer {
|
|
848
|
+
render() {
|
|
849
|
+
const iconKey = this.isPasswordDisplay ? 'eye' : 'eye-slash';
|
|
850
|
+
return (h("vega-button-circle", { icon: VegaInternalIconManager.getIconKey(iconKey), variant: "icon-only", size: "small", class: "password-eye-button", ref: (ref) => {
|
|
851
|
+
this.addEyeIconObserver(ref);
|
|
852
|
+
} }));
|
|
853
|
+
}
|
|
854
|
+
addEyeIconObserver(eyeIconRef) {
|
|
855
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(eyeIconRef, VegaClick, () => {
|
|
856
|
+
this.isPasswordDisplay = !this.isPasswordDisplay;
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
(() => {
|
|
861
|
+
VegaInternalIconManager.register({
|
|
862
|
+
'eye': eye,
|
|
863
|
+
'eye-slash': eyeSlash,
|
|
864
|
+
});
|
|
865
|
+
})();
|
|
866
|
+
__decorate$1([
|
|
867
|
+
MapToComponentField()
|
|
868
|
+
], VegaInputPasswordEyeRenderer.prototype, "host", void 0);
|
|
869
|
+
__decorate$1([
|
|
870
|
+
MapToComponentField({ writable: true })
|
|
871
|
+
], VegaInputPasswordEyeRenderer.prototype, "isPasswordDisplay", void 0);
|
|
872
|
+
__decorate$1([
|
|
873
|
+
MapToComponentField()
|
|
874
|
+
], VegaInputPasswordEyeRenderer.prototype, "type", void 0);
|
|
875
|
+
|
|
876
|
+
const vegaInputCss = ":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))}";
|
|
833
877
|
|
|
834
878
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
835
879
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -910,6 +954,7 @@ const VegaInput = class {
|
|
|
910
954
|
this.labelButtonClickEventEmitter = createEventEmitSlimmer(VegaInput, VegaLabelButtonClick);
|
|
911
955
|
this.pasteEventEmitter = createEventEmitSlimmer(VegaInput, VegaPaste);
|
|
912
956
|
this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer(VegaInputRuntimeMetricsPayloadDefinition);
|
|
957
|
+
this.passwordEyeRenderer = new VegaInputPasswordEyeRenderer();
|
|
913
958
|
/**
|
|
914
959
|
* Specifies the label or title for the input field.
|
|
915
960
|
*
|
|
@@ -1213,7 +1258,7 @@ const VegaInput = class {
|
|
|
1213
1258
|
return sanitizeVegaComponent(h(Host, { class: this.type === 'hidden' ? 'vega-input-hidden' : 'vega-input-inline-block' }, this.groupDom()), this.host);
|
|
1214
1259
|
}
|
|
1215
1260
|
containerDom() {
|
|
1216
|
-
return (h("div", { class: "vega-input-input" }, h("input", Object.assign({ part: "input", name: this.name, type: this.
|
|
1261
|
+
return (h("div", { class: "vega-input-input" }, h("input", Object.assign({ part: "input", name: this.name, type: this.getInputType(), autoComplete: this.autocomplete, value: this.value, ref: this.setInputRef, placeholder: this.placeholder, disabled: this.disabled, "aria-label": this.label || 'No label defined', minLength: this.minLength, maxLength: this.maxLength,
|
|
1217
1262
|
/* eslint-disable-next-line react/jsx-no-bind */
|
|
1218
1263
|
onBlur: (e) => this.handleInputBlur(e),
|
|
1219
1264
|
/* eslint-disable-next-line react/jsx-no-bind */
|
|
@@ -1221,6 +1266,16 @@ const VegaInput = class {
|
|
|
1221
1266
|
/* eslint-disable-next-line react/jsx-no-bind */
|
|
1222
1267
|
onPaste: (e) => this.handleInputPaste(e) }, this.copyPasteController.getCopyPasteProps()))));
|
|
1223
1268
|
}
|
|
1269
|
+
getInputType() {
|
|
1270
|
+
switch (this.type) {
|
|
1271
|
+
case 'number':
|
|
1272
|
+
return 'text';
|
|
1273
|
+
case 'password':
|
|
1274
|
+
return this.isPasswordDisplay ? 'text' : 'password';
|
|
1275
|
+
default:
|
|
1276
|
+
return this.type;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1224
1279
|
groupDom() {
|
|
1225
1280
|
let containerClass = 'vega-input-container';
|
|
1226
1281
|
if (this.value) {
|
|
@@ -1230,7 +1285,9 @@ const VegaInput = class {
|
|
|
1230
1285
|
containerClass += this.disabled ? ' vega-input-disabled' : '';
|
|
1231
1286
|
if (this.isCompactInputWidth)
|
|
1232
1287
|
containerClass += ' compact-input-width';
|
|
1233
|
-
return (h("div", { class: "vega-input", part: "container-wrapper" }, this.renderLabelDom(), h("div", { ref: (e) => (this.inputContainerRef = e), part: "input-container", class: containerClass, onClick: this.focusInput, "aria-label": "input container", "aria-disabled": `${this.disabled}`, role: "textbox", tabIndex: !this.disabled ? -1 : null, onKeyDown: createEnterKeyHandlerToTriggerClick() }, this.prefixSlotRenderer.render(), this.renderPrefixText(), this.containerDom(), this.renderSuffixText(), this.
|
|
1288
|
+
return (h("div", { class: "vega-input", part: "container-wrapper" }, this.renderLabelDom(), h("div", { ref: (e) => (this.inputContainerRef = e), part: "input-container", class: containerClass, onClick: this.focusInput, "aria-label": "input container", "aria-disabled": `${this.disabled}`, role: "textbox", tabIndex: !this.disabled ? -1 : null, onKeyDown: createEnterKeyHandlerToTriggerClick() }, this.prefixSlotRenderer.render(), this.renderPrefixText(), this.containerDom(), this.renderSuffixText(), this.type === 'password'
|
|
1289
|
+
? this.passwordEyeRenderer.render()
|
|
1290
|
+
: this.showClearIcon && this.renderClearIcon()), this.renderHintDom()));
|
|
1234
1291
|
}
|
|
1235
1292
|
renderLabelDom() {
|
|
1236
1293
|
return (h("vega-field-label", { onClick: this.focusInput, "is-field-required": this.required, disabled: this.disabled, label: this.label, suffixButtonProps: this.labelSuffixButtonProps, suffixButtonConfig: this.labelSuffixButtonConfig, ref: (node) => {
|
|
@@ -1308,6 +1365,9 @@ __decorate([
|
|
|
1308
1365
|
__decorate([
|
|
1309
1366
|
InjectVegaSlimmer()
|
|
1310
1367
|
], VegaInput.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
|
|
1368
|
+
__decorate([
|
|
1369
|
+
InjectVegaSlimmer()
|
|
1370
|
+
], VegaInput.prototype, "passwordEyeRenderer", void 0);
|
|
1311
1371
|
__decorate([
|
|
1312
1372
|
ComponentLoadRequired()
|
|
1313
1373
|
], VegaInput.prototype, "watchMaskChange", null);
|