@vonage/vivid 5.25.0 → 5.27.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/accordion/index.cjs +1 -1
- package/accordion/index.js +8 -8
- package/accordion-item/index.cjs +1 -1
- package/action-group/index.cjs +3 -3
- package/action-group/index.js +10 -5
- package/alert/index.cjs +7 -7
- package/alert/index.js +47 -35
- package/audio-player/index.cjs +18 -18
- package/audio-player/index.js +15 -11
- package/avatar/index.cjs +9 -9
- package/avatar/index.js +27 -18
- package/badge/index.cjs +1 -1
- package/banner/index.cjs +5 -5
- package/banner/index.js +33 -27
- package/breadcrumb/index.cjs +1 -1
- package/breadcrumb/index.js +5 -1
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +6 -6
- package/bundled/affix.cjs +3 -3
- package/bundled/affix.js +1 -1
- package/bundled/anchored.cjs +2 -2
- package/bundled/anchored.js +13 -1
- package/bundled/aria-binding-directive.cjs +1 -1
- package/bundled/aria-binding-directive.js +2 -2
- package/bundled/aria.cjs +1 -1
- package/bundled/base-color-picker.cjs +2 -2
- package/bundled/base-color-picker.js +1 -1
- package/bundled/base-progress.cjs +1 -1
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/button.cjs +1 -1
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +17 -4
- package/bundled/calendar-picker.template.cjs +5 -5
- package/bundled/calendar-picker.template.js +53 -55
- package/bundled/char-count.cjs +2 -2
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +1 -1
- package/bundled/class-names.cjs +1 -1
- package/bundled/component-enum.cjs +1 -0
- package/bundled/component-enum.js +9 -0
- package/bundled/data-grid.options.cjs +1 -1
- package/bundled/data-grid.options.js +7 -6
- package/bundled/decorate.cjs +1 -1
- package/bundled/decorate.js +1 -1
- package/bundled/definition.cjs +1 -1
- package/bundled/definition10.cjs +10 -20
- package/bundled/definition10.js +23 -72
- package/bundled/definition11.cjs +74 -10
- package/bundled/definition11.js +194 -24
- package/bundled/definition12.cjs +18 -70
- package/bundled/definition12.js +48 -186
- package/bundled/definition13.cjs +5 -22
- package/bundled/definition13.js +9 -58
- package/bundled/definition14.cjs +1 -5
- package/bundled/definition14.js +9 -9
- package/bundled/definition15.cjs +3 -3
- package/bundled/definition15.js +18 -18
- package/bundled/definition16.cjs +3 -3
- package/bundled/definition16.js +23 -17
- package/bundled/definition17.cjs +6 -6
- package/bundled/definition17.js +8 -8
- package/bundled/definition18.cjs +2 -2
- package/bundled/definition19.cjs +21 -21
- package/bundled/definition19.js +66 -61
- package/bundled/definition2.cjs +13 -1
- package/bundled/definition2.js +22 -185
- package/bundled/definition20.cjs +3 -3
- package/bundled/definition20.js +6 -7
- package/bundled/definition21.cjs +7 -7
- package/bundled/definition21.js +22 -23
- package/bundled/definition22.cjs +3 -3
- package/bundled/definition22.js +25 -25
- package/bundled/definition23.cjs +3 -3
- package/bundled/definition23.js +26 -8
- package/bundled/definition24.cjs +2 -2
- package/bundled/definition24.js +1 -1
- package/bundled/definition25.cjs +5 -5
- package/bundled/definition25.js +16 -11
- package/bundled/definition3.cjs +25 -12
- package/bundled/definition3.js +90 -21
- package/bundled/definition4.cjs +29 -25
- package/bundled/definition4.js +50 -89
- package/bundled/definition5.cjs +28 -29
- package/bundled/definition5.js +143 -45
- package/bundled/definition6.cjs +6 -29
- package/bundled/definition6.js +20 -130
- package/bundled/definition7.cjs +14 -6
- package/bundled/definition7.js +159 -20
- package/bundled/definition8.cjs +22 -14
- package/bundled/definition8.js +88 -144
- package/bundled/definition9.cjs +20 -22
- package/bundled/definition9.js +54 -80
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +3 -2
- package/bundled/dialog.cjs +1 -1
- package/bundled/dialog.js +1 -1
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +9 -9
- package/bundled/dom.cjs +1 -1
- package/bundled/enums.cjs +1 -1
- package/bundled/extractOptions.cjs +1 -1
- package/bundled/feedback-message.cjs +8 -0
- package/bundled/feedback-message.js +41 -0
- package/bundled/floating-ui.dom.cjs +1 -1
- package/bundled/floating-ui.dom.js +163 -197
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +3 -4
- package/bundled/form-element.cjs +1 -1
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/icon.cjs +1 -1
- package/bundled/kbd-shortcut.cjs +1 -1
- package/bundled/key-codes.cjs +1 -1
- package/bundled/linkable.cjs +2 -2
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +3 -5
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +33 -32
- package/bundled/mixins.cjs +9 -16
- package/bundled/mixins.js +23 -57
- package/bundled/numberConverter.cjs +2 -2
- package/bundled/numberConverter.js +1 -1
- package/bundled/numbers.cjs +1 -1
- package/bundled/optgroup.cjs +1 -1
- package/bundled/option.cjs +1 -1
- package/bundled/option.js +9 -7
- package/bundled/picker-field.template.cjs +2 -2
- package/bundled/picker-field.template.js +8 -8
- package/bundled/platform.cjs +1 -1
- package/bundled/playbackRates.cjs +1 -1
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +1 -1
- package/bundled/render-in-light-dom.cjs +1 -1
- package/bundled/render-in-light-dom.js +1 -1
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +16 -15
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +1 -3
- package/bundled/single-date-picker.cjs +1 -1
- package/bundled/single-value-picker.cjs +1 -1
- package/bundled/single-value-picker.js +1 -1
- package/bundled/slider.template.cjs +12 -12
- package/bundled/slider.template.js +209 -32
- package/bundled/slottable-request.cjs +3 -3
- package/bundled/slottable-request.js +26 -17
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +1 -1
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +4 -4
- package/bundled/time-selection-picker.template.js +10 -7
- package/bundled/trapped-focus.cjs +1 -1
- package/bundled/utils.cjs +1 -1
- package/bundled/vivid-element.cjs +3 -3
- package/bundled/vivid-element.js +397 -358
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +1 -1
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +1 -1
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-success-text.cjs +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +7 -7
- package/calendar-event/index.cjs +2 -2
- package/calendar-event/index.js +10 -8
- package/card/index.cjs +4 -2
- package/card/index.js +12 -7
- package/checkbox/index.cjs +1 -1
- package/color-picker/index.cjs +17 -17
- package/color-picker/index.js +19 -17
- package/combobox/index.cjs +9 -9
- package/combobox/index.js +46 -44
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/country/index.cjs +1 -1
- package/country-group/index.cjs +1 -1
- package/country-group/index.js +8 -4
- package/custom-elements.json +7322 -7254
- package/data-grid/index.cjs +6 -6
- package/data-grid/index.js +92 -99
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +10 -6
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +13 -9
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +11 -7
- package/dial-pad/index.cjs +4 -3
- package/dial-pad/index.js +14 -9
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +9 -6
- package/divider/index.cjs +1 -1
- package/elevation/definition.cjs +1 -0
- package/elevation/definition.js +2 -2
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/empty-state/index.cjs +3 -3
- package/empty-state/index.js +18 -6
- package/fab/index.cjs +3 -3
- package/fab/index.js +14 -6
- package/file-picker/index.cjs +8 -10
- package/file-picker/index.js +25 -22
- package/flag/index.cjs +1 -1
- package/flag/index.js +7 -3
- package/form-field/definition.cjs +5 -0
- package/form-field/definition.js +2 -0
- package/form-field/index.cjs +29 -0
- package/form-field/index.js +57 -0
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/header/index.cjs +1 -1
- package/header/index.js +9 -5
- package/icon/index.cjs +1 -1
- package/icon/index.js +1 -1
- package/index.cjs +159 -154
- package/index.js +42 -40
- package/kbd-key/definition.cjs +1 -1
- package/kbd-key/definition.js +1 -1
- package/kbd-key/index.cjs +3 -3
- package/kbd-key/index.js +22 -13
- package/kbd-shortcut/definition.cjs +1 -1
- package/kbd-shortcut/definition.js +1 -1
- package/kbd-shortcut/index.cjs +1 -1
- package/kbd-shortcut/index.js +6 -6
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +7 -3
- package/lib/accordion-item/accordion-item.d.ts +11 -6
- package/lib/action-group/action-group.d.ts +10 -5
- package/lib/alert/alert.d.ts +15 -18
- package/lib/avatar/avatar.d.ts +16 -7
- package/lib/badge/badge.d.ts +17 -7
- package/lib/banner/banner.d.ts +18 -20
- package/lib/button/button.d.ts +25 -16
- package/lib/calendar-event/calendar-event.d.ts +14 -7
- package/lib/checkbox/checkbox.d.ts +31 -28
- package/lib/combobox/combobox.d.ts +37 -32
- package/lib/components.d.ts +1 -0
- package/lib/data-grid/data-grid.options.d.ts +6 -1
- package/lib/dial-pad/locale.d.ts +1 -0
- package/lib/divider/divider.d.ts +9 -6
- package/lib/elevation/definition.d.ts +2 -0
- package/lib/empty-state/empty-state.d.ts +7 -2
- package/lib/fab/fab.d.ts +3 -2
- package/lib/form-field/definition.d.ts +4 -0
- package/lib/form-field/form-field.d.ts +6 -0
- package/lib/form-field/form-field.template.d.ts +3 -0
- package/lib/kbd-key/kbd-key.d.ts +7 -2
- package/lib/listbox/listbox.d.ts +1 -0
- package/lib/menu-item/menu-item.d.ts +17 -14
- package/lib/nav-disclosure/nav-disclosure.d.ts +18 -11
- package/lib/nav-item/nav-item.d.ts +19 -12
- package/lib/note/note.d.ts +10 -6
- package/lib/number-field/number-field.d.ts +45 -40
- package/lib/option/option.d.ts +13 -10
- package/lib/popup/definition.d.ts +2 -0
- package/lib/progress/progress.d.ts +10 -5
- package/lib/progress-ring/progress-ring.d.ts +9 -5
- package/lib/radio/radio.d.ts +18 -15
- package/lib/range-slider/range-slider.d.ts +19 -15
- package/lib/rich-text-editor/rich-text-editor.d.ts +9 -5
- package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -1
- package/lib/searchable-select/option-tag.d.ts +12 -7
- package/lib/searchable-select/searchable-select.d.ts +7 -2
- package/lib/select/select.d.ts +45 -40
- package/lib/selectable-box/selectable-box.d.ts +9 -5
- package/lib/slider/slider.d.ts +18 -14
- package/lib/split-button/split-button.d.ts +24 -15
- package/lib/status/status.d.ts +10 -7
- package/lib/switch/switch.d.ts +13 -9
- package/lib/tab/tab.d.ts +19 -14
- package/lib/tabs/tabs.d.ts +6 -3
- package/lib/tag/tag.d.ts +24 -15
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-field/text-field.d.ts +46 -41
- package/lib/video-player/__tests__/video-fixtures.d.ts +3 -0
- package/listbox/definition.cjs +1 -1
- package/listbox/definition.js +1 -1
- package/listbox/index.cjs +7 -5
- package/listbox/index.js +24 -10
- package/locales/de-DE.cjs +34 -33
- package/locales/de-DE.js +34 -33
- package/locales/en-GB.cjs +34 -33
- package/locales/en-GB.js +34 -33
- package/locales/ja-JP.cjs +35 -33
- package/locales/ja-JP.js +35 -33
- package/locales/zh-CN.cjs +34 -33
- package/locales/zh-CN.js +34 -33
- package/menu/index.cjs +1 -1
- package/menu-item/index.cjs +1 -1
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav/index.cjs +1 -1
- package/nav/index.js +6 -4
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +3 -3
- package/nav-disclosure/index.js +13 -8
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +15 -10
- package/note/definition.cjs +1 -1
- package/note/definition.js +1 -1
- package/note/index.cjs +6 -4
- package/note/index.js +22 -9
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +1 -1
- package/number-field/index.cjs +11 -11
- package/number-field/index.js +41 -36
- package/optgroup/index.cjs +1 -1
- package/option/index.cjs +1 -1
- package/package.json +29 -36
- package/pagination/definition.cjs +1 -1
- package/pagination/definition.js +1 -1
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +9 -9
- package/platform-switch/definition.cjs +1 -1
- package/platform-switch/definition.js +1 -1
- package/platform-switch/index.cjs +1 -1
- package/platform-switch/index.js +6 -2
- package/popover/definition.cjs +1 -1
- package/popover/definition.js +1 -1
- package/popover/index.cjs +2 -2
- package/popover/index.js +43 -35
- package/popup/definition.cjs +1 -0
- package/popup/definition.js +2 -2
- package/popup/index.cjs +1 -1
- package/popup/index.js +1 -1
- package/progress/definition.cjs +1 -1
- package/progress/definition.js +1 -1
- package/progress/index.cjs +7 -7
- package/progress/index.js +21 -11
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/definition.cjs +1 -1
- package/radio/definition.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio-group/definition.cjs +1 -1
- package/radio-group/definition.js +1 -1
- package/radio-group/index.cjs +2 -2
- package/radio-group/index.js +14 -9
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/range-slider/index.cjs +8 -8
- package/range-slider/index.js +31 -32
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +1 -1
- package/rich-text-editor/index.cjs +13 -10
- package/rich-text-editor/index.js +1942 -1711
- package/rich-text-view/definition.cjs +1 -1
- package/rich-text-view/definition.js +1 -1
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +6 -4
- package/searchable-select/definition.cjs +1 -1
- package/searchable-select/definition.js +1 -1
- package/searchable-select/index.cjs +22 -22
- package/searchable-select/index.js +97 -93
- package/select/definition.cjs +1 -1
- package/select/definition.js +1 -1
- package/select/index.cjs +1 -1
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +8 -8
- package/selectable-box/index.js +24 -20
- package/shared/patterns/anchored.d.ts +2 -0
- package/shared/styles/appearance.d.ts +2 -0
- package/shared/styles/connotation.d.ts +2 -0
- package/shared/styles/connotationOverrides.d.ts +1 -0
- package/shared/utils/component-enum.d.ts +7 -0
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +1 -1
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +10 -7
- package/simple-color-picker/definition.cjs +1 -1
- package/simple-color-picker/definition.js +1 -1
- package/simple-color-picker/index.cjs +2 -2
- package/simple-color-picker/index.js +20 -20
- package/slider/definition.cjs +2 -1
- package/slider/definition.js +2 -1
- package/slider/index.cjs +1 -1
- package/slider/index.js +1 -1
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +1 -1
- package/split-button/index.cjs +9 -7
- package/split-button/index.js +58 -37
- package/status/definition.cjs +1 -1
- package/status/definition.js +1 -1
- package/status/index.cjs +5 -5
- package/status/index.js +22 -13
- package/switch/definition.cjs +1 -1
- package/switch/definition.js +1 -1
- package/switch/index.cjs +3 -3
- package/switch/index.js +22 -11
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +1 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/definition.cjs +1 -1
- package/tab-panel/definition.js +1 -1
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +1 -1
- package/table/definition.cjs +1 -1
- package/table/definition.js +1 -1
- package/table/index.cjs +4 -2
- package/table/index.js +12 -10
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +1 -1
- package/tabs/index.cjs +4 -4
- package/tabs/index.js +32 -30
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +1 -1
- package/tag/index.cjs +6 -6
- package/tag/index.js +28 -12
- package/tag-group/definition.cjs +1 -1
- package/tag-group/definition.js +1 -1
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +6 -4
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/text-area/index.cjs +5 -5
- package/text-area/index.js +18 -15
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +9 -6
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +7 -5
- package/unbundled/affix.cjs +0 -1
- package/unbundled/anchored.cjs +39 -1
- package/unbundled/anchored.js +28 -1
- package/unbundled/aria-binding-directive.cjs +2 -2
- package/unbundled/aria-binding-directive.js +2 -1
- package/unbundled/base-color-picker.cjs +0 -1
- package/unbundled/base-progress.cjs +0 -1
- package/unbundled/breadcrumb-item.cjs +0 -1
- package/unbundled/button.cjs +0 -1
- package/unbundled/calendar-event.cjs +29 -1
- package/unbundled/calendar-event.js +18 -1
- package/unbundled/calendar-picker.template.cjs +109 -91
- package/unbundled/calendar-picker.template.js +109 -90
- package/unbundled/char-count.cjs +0 -1
- package/unbundled/component-enum.cjs +18 -0
- package/unbundled/component-enum.js +13 -0
- package/unbundled/data-grid.options.cjs +8 -0
- package/unbundled/data-grid.options.js +3 -1
- package/unbundled/decorate.cjs +1 -1
- package/unbundled/decorate.js +1 -1
- package/unbundled/definition.cjs +1 -2
- package/unbundled/definition.js +1 -1
- package/unbundled/definition10.cjs +2 -343
- package/unbundled/definition10.js +4 -338
- package/unbundled/definition11.cjs +6 -7
- package/unbundled/definition11.js +6 -6
- package/unbundled/definition12.cjs +4 -4
- package/unbundled/definition12.js +5 -4
- package/unbundled/definition13.cjs +2 -2
- package/unbundled/definition13.js +2 -1
- package/unbundled/definition14.cjs +11 -3
- package/unbundled/definition14.js +11 -2
- package/unbundled/definition15.cjs +26 -5
- package/unbundled/definition15.js +26 -4
- package/unbundled/definition16.cjs +20 -14
- package/unbundled/definition16.js +20 -13
- package/unbundled/definition17.cjs +0 -1
- package/unbundled/definition18.cjs +4 -3
- package/unbundled/definition18.js +4 -2
- package/unbundled/definition19.cjs +2 -3
- package/unbundled/definition19.js +9 -8
- package/unbundled/definition2.cjs +8 -3
- package/unbundled/definition2.js +8 -2
- package/unbundled/definition20.cjs +1 -2
- package/unbundled/definition20.js +7 -6
- package/unbundled/definition21.cjs +4 -3
- package/unbundled/definition21.js +4 -2
- package/unbundled/definition22.cjs +0 -1
- package/unbundled/definition23.cjs +12 -6
- package/unbundled/definition23.js +11 -4
- package/unbundled/definition24.cjs +4 -4
- package/unbundled/definition24.js +5 -4
- package/unbundled/definition25.cjs +2 -3
- package/unbundled/definition25.js +2 -2
- package/unbundled/definition26.cjs +6 -4
- package/unbundled/definition26.js +5 -2
- package/unbundled/definition27.cjs +2 -2
- package/unbundled/definition27.js +2 -1
- package/unbundled/definition28.cjs +3 -3
- package/unbundled/definition28.js +2 -1
- package/unbundled/definition29.cjs +2 -3
- package/unbundled/definition29.js +3 -3
- package/unbundled/definition3.cjs +5 -6
- package/unbundled/definition3.js +5 -5
- package/unbundled/definition30.cjs +0 -1
- package/unbundled/definition31.cjs +15 -13
- package/unbundled/definition31.js +14 -11
- package/unbundled/definition32.cjs +0 -1
- package/unbundled/definition33.cjs +0 -1
- package/unbundled/definition34.cjs +0 -1
- package/unbundled/definition35.cjs +39 -51
- package/unbundled/definition35.js +40 -51
- package/unbundled/definition36.cjs +2 -3
- package/unbundled/definition36.js +9 -8
- package/unbundled/definition37.cjs +0 -1
- package/unbundled/definition38.cjs +0 -1
- package/unbundled/definition39.cjs +0 -1
- package/unbundled/definition4.cjs +4 -3
- package/unbundled/definition4.js +11 -6
- package/unbundled/definition40.cjs +5 -4
- package/unbundled/definition40.js +5 -3
- package/unbundled/definition41.cjs +0 -1
- package/unbundled/definition42.cjs +11 -3
- package/unbundled/definition42.js +11 -2
- package/unbundled/definition43.cjs +7 -3
- package/unbundled/definition43.js +7 -2
- package/unbundled/definition44.cjs +12 -11
- package/unbundled/definition44.js +11 -9
- package/unbundled/definition45.cjs +73 -52
- package/unbundled/definition45.js +69 -47
- package/unbundled/definition46.cjs +53 -46
- package/unbundled/definition46.js +49 -41
- package/unbundled/definition47.cjs +40 -165
- package/unbundled/definition47.js +36 -160
- package/unbundled/definition48.cjs +177 -32
- package/unbundled/definition48.js +174 -22
- package/unbundled/definition49.cjs +32 -596
- package/unbundled/definition49.js +29 -591
- package/unbundled/definition5.cjs +9 -3
- package/unbundled/definition5.js +15 -7
- package/unbundled/definition50.cjs +609 -78
- package/unbundled/definition50.js +605 -75
- package/unbundled/definition51.cjs +74 -34
- package/unbundled/definition51.js +70 -29
- package/unbundled/definition52.cjs +59 -24
- package/unbundled/definition52.js +57 -18
- package/unbundled/definition53.cjs +23 -40
- package/unbundled/definition53.js +19 -35
- package/unbundled/definition54.cjs +40 -316
- package/unbundled/definition54.js +38 -313
- package/unbundled/definition55.cjs +305 -196
- package/unbundled/definition55.js +301 -191
- package/unbundled/definition56.cjs +210 -41
- package/unbundled/definition56.js +206 -36
- package/unbundled/definition57.cjs +42 -271
- package/unbundled/definition57.js +38 -266
- package/unbundled/definition58.cjs +286 -51
- package/unbundled/definition58.js +283 -46
- package/unbundled/definition59.cjs +58 -147
- package/unbundled/definition59.js +59 -144
- package/unbundled/definition6.cjs +20 -6
- package/unbundled/definition6.js +20 -5
- package/unbundled/definition60.cjs +129 -226
- package/unbundled/definition60.js +126 -222
- package/unbundled/definition61.cjs +200 -420
- package/unbundled/definition61.js +197 -416
- package/unbundled/definition62.cjs +442 -3743
- package/unbundled/definition62.js +433 -3570
- package/unbundled/definition63.cjs +3729 -729
- package/unbundled/definition63.js +3558 -721
- package/unbundled/definition64.cjs +784 -98
- package/unbundled/definition64.js +781 -94
- package/unbundled/definition65.cjs +100 -1003
- package/unbundled/definition65.js +98 -997
- package/unbundled/definition66.cjs +996 -94
- package/unbundled/definition66.js +992 -89
- package/unbundled/definition67.cjs +111 -74
- package/unbundled/definition67.js +107 -63
- package/unbundled/definition68.cjs +69 -157
- package/unbundled/definition68.js +65 -152
- package/unbundled/definition69.cjs +156 -120
- package/unbundled/definition69.js +152 -115
- package/unbundled/definition7.cjs +0 -1
- package/unbundled/definition7.js +10 -4
- package/unbundled/definition70.cjs +154 -50
- package/unbundled/definition70.js +150 -45
- package/unbundled/definition71.cjs +58 -86
- package/unbundled/definition71.js +57 -81
- package/unbundled/definition72.cjs +99 -20
- package/unbundled/definition72.js +98 -15
- package/unbundled/definition73.cjs +20 -89
- package/unbundled/definition73.js +16 -84
- package/unbundled/definition74.cjs +79 -296
- package/unbundled/definition74.js +73 -217
- package/unbundled/definition75.cjs +291 -312
- package/unbundled/definition75.js +221 -306
- package/unbundled/definition76.cjs +328 -27
- package/unbundled/definition76.js +320 -23
- package/unbundled/definition77.cjs +27 -125
- package/unbundled/definition77.js +23 -120
- package/unbundled/definition78.cjs +120 -233
- package/unbundled/definition78.js +116 -228
- package/unbundled/definition79.cjs +258 -26
- package/unbundled/definition79.js +249 -23
- package/unbundled/definition8.cjs +17 -10
- package/unbundled/definition8.js +17 -9
- package/unbundled/definition80.cjs +29 -149
- package/unbundled/definition80.js +27 -134
- package/unbundled/definition81.cjs +118 -174
- package/unbundled/definition81.js +109 -169
- package/unbundled/definition82.cjs +180 -477
- package/unbundled/definition82.js +178 -472
- package/unbundled/definition83.cjs +517 -0
- package/unbundled/definition83.js +498 -0
- package/unbundled/definition9.cjs +4 -3
- package/unbundled/definition9.js +4 -2
- package/unbundled/delegates-aria.cjs +4 -2
- package/unbundled/delegates-aria.js +4 -2
- package/unbundled/divider.cjs +8 -3
- package/unbundled/divider.js +3 -3
- package/unbundled/en-US.cjs +34 -33
- package/unbundled/en-US.js +34 -33
- package/unbundled/feedback-message.cjs +59 -0
- package/unbundled/feedback-message.js +48 -0
- package/unbundled/form-associated.cjs +1 -4
- package/unbundled/form-associated.js +1 -3
- package/unbundled/form-element.cjs +0 -1
- package/unbundled/icon.cjs +0 -1
- package/unbundled/kbd-shortcut.cjs +0 -1
- package/unbundled/linkable.cjs +0 -1
- package/unbundled/listbox.cjs +0 -2
- package/unbundled/listbox.js +0 -1
- package/unbundled/localized.cjs +0 -1
- package/unbundled/mixins.cjs +3 -54
- package/unbundled/mixins.js +3 -47
- package/unbundled/numberConverter.cjs +8 -3
- package/unbundled/numberConverter.js +8 -3
- package/unbundled/optgroup.cjs +0 -1
- package/unbundled/option.cjs +8 -1
- package/unbundled/option.js +3 -1
- package/unbundled/picker-field.template.cjs +1 -2
- package/unbundled/picker-field.template.js +1 -1
- package/unbundled/randomId.cjs +0 -1
- package/unbundled/{chunk.cjs → rolldown-runtime.cjs} +1 -1
- package/unbundled/scrollIntoView.cjs +0 -1
- package/unbundled/scrollIntoView.js +0 -1
- package/unbundled/slider.template.cjs +340 -2
- package/unbundled/slider.template.js +338 -5
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +2 -3
- package/unbundled/time-selection-picker.template.js +2 -2
- package/unbundled/vivid-element.cjs +63 -4
- package/unbundled/vivid-element.js +63 -3
- package/unbundled/with-contextual-help.cjs +0 -1
- package/unbundled/with-error-text.cjs +0 -1
- package/unbundled/with-success-text.cjs +0 -1
- package/video-player/definition.cjs +1 -1
- package/video-player/definition.js +1 -1
- package/video-player/index.cjs +31 -31
- package/video-player/index.js +2094 -2085
- package/visually-hidden/index.cjs +1 -1
- package/vivid.api.json +488 -1165
- package/lib/accordion/variations.browser-spec.d.ts +0 -1
- package/lib/action-group/variations.browser-spec.d.ts +0 -1
- package/lib/alert/variations.browser-spec.d.ts +0 -1
- package/lib/audio-player/variations.browser-spec.d.ts +0 -1
- package/lib/avatar/variations.browser-spec.d.ts +0 -1
- package/lib/badge/variations.browser-spec.d.ts +0 -1
- package/lib/banner/variations.browser-spec.d.ts +0 -1
- package/lib/breadcrumb-item/variations.browser-spec.d.ts +0 -1
- package/lib/button/variations.browser-spec.d.ts +0 -1
- package/lib/calendar/variations.browser-spec.d.ts +0 -1
- package/lib/calendar-event/variations.browser-spec.d.ts +0 -1
- package/lib/card/variations.browser-spec.d.ts +0 -1
- package/lib/checkbox/variations.browser-spec.d.ts +0 -1
- package/lib/color-picker/variations.browser-spec.d.ts +0 -1
- package/lib/combobox/variations.browser-spec.d.ts +0 -1
- package/lib/contextual-help/variations.browser-spec.d.ts +0 -1
- package/lib/country/variations.browser-spec.d.ts +0 -1
- package/lib/data-grid/variations.browser-spec.d.ts +0 -1
- package/lib/date-picker/variations.browser-spec.d.ts +0 -1
- package/lib/date-range-picker/variations.browser-spec.d.ts +0 -1
- package/lib/date-time-picker/variations.browser-spec.d.ts +0 -1
- package/lib/dial-pad/variations.browser-spec.d.ts +0 -1
- package/lib/dialog/variations.browser-spec.d.ts +0 -1
- package/lib/divider/variations.browser-spec.d.ts +0 -1
- package/lib/empty-state/variations.browser-spec.d.ts +0 -1
- package/lib/fab/variations.browser-spec.d.ts +0 -1
- package/lib/file-picker/variations.browser-spec.d.ts +0 -1
- package/lib/flag/variations.browser-spec.d.ts +0 -1
- package/lib/header/variations.browser-spec.d.ts +0 -1
- package/lib/icon/variations.browser-spec.d.ts +0 -1
- package/lib/kbd-key/variations.browser-spec.d.ts +0 -1
- package/lib/kbd-shortcut/variations.browser-spec.d.ts +0 -1
- package/lib/layout/variations.browser-spec.d.ts +0 -1
- package/lib/listbox/variations.browser-spec.d.ts +0 -1
- package/lib/menu/variations.browser-spec.d.ts +0 -1
- package/lib/menu-item/variations.browser-spec.d.ts +0 -1
- package/lib/nav/variations.browser-spec.d.ts +0 -1
- package/lib/nav-disclosure/variations.browser-spec.d.ts +0 -1
- package/lib/nav-item/variations.browser-spec.d.ts +0 -1
- package/lib/note/variations.browser-spec.d.ts +0 -1
- package/lib/number-field/variations.browser-spec.d.ts +0 -1
- package/lib/optgroup/variations.browser-spec.d.ts +0 -1
- package/lib/option/variations.browser-spec.d.ts +0 -1
- package/lib/pagination/variations.browser-spec.d.ts +0 -1
- package/lib/popover/variations.browser-spec.d.ts +0 -1
- package/lib/progress/variations.browser-spec.d.ts +0 -1
- package/lib/progress-ring/variations.browser-spec.d.ts +0 -1
- package/lib/radio/variations.browser-spec.d.ts +0 -1
- package/lib/radio-group/variations.browser-spec.d.ts +0 -1
- package/lib/range-slider/variations.browser-spec.d.ts +0 -1
- package/lib/rich-text-editor/variations.browser-spec.d.ts +0 -1
- package/lib/rich-text-view/variations.browser-spec.d.ts +0 -1
- package/lib/searchable-select/variations.browser-spec.d.ts +0 -1
- package/lib/select/variations.browser-spec.d.ts +0 -1
- package/lib/selectable-box/variations.browser-spec.d.ts +0 -1
- package/lib/side-drawer/variations.browser-spec.d.ts +0 -1
- package/lib/simple-color-picker/variations.browser-spec.d.ts +0 -1
- package/lib/slider/variations.browser-spec.d.ts +0 -1
- package/lib/split-button/variations.browser-spec.d.ts +0 -1
- package/lib/status/variations.browser-spec.d.ts +0 -1
- package/lib/switch/variations.browser-spec.d.ts +0 -1
- package/lib/table/variations.browser-spec.d.ts +0 -1
- package/lib/tabs/variations.browser-spec.d.ts +0 -1
- package/lib/tag/variations.browser-spec.d.ts +0 -1
- package/lib/text-area/variations.browser-spec.d.ts +0 -1
- package/lib/text-field/variations.browser-spec.d.ts +0 -1
- package/lib/time-picker/variations.browser-spec.d.ts +0 -1
- package/lib/toggletip/variations.browser-spec.d.ts +0 -1
- package/lib/tooltip/variations.browser-spec.d.ts +0 -1
- package/lib/tree-item/variations.browser-spec.d.ts +0 -1
- package/lib/video-player/variations.browser-spec.d.ts +0 -1
- /package/lib/{accordion-item/variations.browser-spec.d.ts → form-field/index.d.ts} +0 -0
- /package/unbundled/{chunk.js → rolldown-runtime.js} +0 -0
package/bundled/definition10.js
CHANGED
|
@@ -1,79 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//#region src/lib/toggletip/toggletip.scss?inline
|
|
10
|
-
var h = ":host :host{display:var(--_popup-display,inline)}:host :host([slotted-anchor]){--_popup-display:contents}.content-wrapper{width:var(--toggletip-inline-size,auto);max-inline-size:var(--toggletip-max-inline-size,30ch);padding:16px}.headline{font:var(--vvd-typography-base-bold);margin:0}.text-secondary{color:var(--vvd-color-neutral-600);font:var(--vvd-typography-base);margin:4px 0 0}.text-secondary:first-child{margin-block-start:0}.action-items{justify-content:flex-end;gap:10px;display:flex}::slotted([slot=action-items]){margin-block-start:16px}", g = class extends e(p(a)) {
|
|
1
|
+
import { d as e, m as t, p as n, t as r, u as i } from "./vivid-element.js";
|
|
2
|
+
import { t as a } from "./decorate.js";
|
|
3
|
+
import { t as o } from "./class-names.js";
|
|
4
|
+
import { t as s } from "./definition2.js";
|
|
5
|
+
import { t as c } from "./icon.js";
|
|
6
|
+
import { n as l, r as u } from "./definition9.js";
|
|
7
|
+
//#region src/lib/contextual-help/contextual-help.ts
|
|
8
|
+
var d = class extends r {
|
|
11
9
|
constructor(...e) {
|
|
12
|
-
super(...e), this
|
|
13
|
-
this.open || t.enqueue(() => this.open = !0);
|
|
14
|
-
}, this.#o = (e) => {
|
|
15
|
-
let t = !this.contains(e.target), n = this._anchorEl?.contains(e.target);
|
|
16
|
-
(t || n) && (this.open = !1);
|
|
17
|
-
}, this.#s = (e) => {
|
|
18
|
-
/* v8 ignore else -- @preserve */
|
|
19
|
-
e.key === "Escape" && (this.open = !1);
|
|
20
|
-
};
|
|
10
|
+
super(...e), this.placement = "right";
|
|
21
11
|
}
|
|
22
|
-
#e;
|
|
23
|
-
openChanged(e, t) {
|
|
24
|
-
e !== void 0 && (t ? this.setAttribute("role", "status") : this.removeAttribute("role"), this.#a(), this._anchorEl && this.#n(this._anchorEl));
|
|
25
|
-
}
|
|
26
|
-
connectedCallback() {
|
|
27
|
-
super.connectedCallback(), this.#a();
|
|
28
|
-
}
|
|
29
|
-
disconnectedCallback() {
|
|
30
|
-
super.disconnectedCallback(), this.#a();
|
|
31
|
-
}
|
|
32
|
-
_anchorElChanged(e, t) {
|
|
33
|
-
e && this.#r(e), t && this.#t(t);
|
|
34
|
-
}
|
|
35
|
-
#t(e) {
|
|
36
|
-
e.addEventListener("click", this.#i, !0), this.#e = e.ariaLabel, e.ariaLabel = this.locale.toggletip.anchorLabel(e.ariaLabel || ""), this.#n(e);
|
|
37
|
-
}
|
|
38
|
-
#n(e) {
|
|
39
|
-
e.setAttribute("aria-expanded", this.open.toString()), e.setAttribute("data-expanded", this.open.toString());
|
|
40
|
-
}
|
|
41
|
-
#r(e) {
|
|
42
|
-
/* v8 ignore else -- @preserve */
|
|
43
|
-
e.removeEventListener("click", this.#i, !0), e.removeAttribute("aria-expanded"), e.removeAttribute("data-expanded"), e.ariaLabel &&= this.#e;
|
|
44
|
-
}
|
|
45
|
-
#i;
|
|
46
|
-
#a() {
|
|
47
|
-
document.removeEventListener("click", this.#o), document.removeEventListener("keydown", this.#s), this.open && this.isConnected && (document.addEventListener("click", this.#o), document.addEventListener("keydown", this.#s));
|
|
48
|
-
}
|
|
49
|
-
#o;
|
|
50
|
-
#s;
|
|
51
12
|
};
|
|
52
|
-
|
|
13
|
+
a([t({ mode: "fromView" })], d.prototype, "placement", void 0);
|
|
53
14
|
//#endregion
|
|
54
|
-
//#region src/lib/
|
|
55
|
-
var
|
|
56
|
-
let t = e.tagFor(u);
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
?alternate="${(e) => !e.alternate}"
|
|
66
|
-
placement="${(e) => e.placement}"
|
|
67
|
-
exportparts="vvd-theme-alternate"
|
|
68
|
-
>
|
|
69
|
-
<div class="content-wrapper">
|
|
70
|
-
${s((e) => e.headline, i`<h2 class="headline">${(e) => e.headline}</h2>`)}
|
|
71
|
-
${s((e) => e.textSecondary, i`<p class="text-secondary">${(e) => e.textSecondary}</p>`)}
|
|
72
|
-
<slot></slot>
|
|
73
|
-
<div class="action-items"><slot name="action-items"></slot></div>
|
|
74
|
-
</div>
|
|
15
|
+
//#region src/lib/contextual-help/contextual-help.template.ts
|
|
16
|
+
var f = (e) => o("control", "connotation-accent", "appearance-ghost", "with-idle", "with-hover", "with-active"), p = i("contextual-help", d, (e) => {
|
|
17
|
+
let t = e.tagFor(u), r = e.tagFor(c);
|
|
18
|
+
return n`
|
|
19
|
+
<${t} class="base" exportparts="vvd-theme-alternate">
|
|
20
|
+
<button class="${f}" slot="anchor">
|
|
21
|
+
<slot name="icon" slot="icon">
|
|
22
|
+
<${r} name="help-solid"></${r}>
|
|
23
|
+
</slot>
|
|
24
|
+
</button>
|
|
25
|
+
<slot></slot>
|
|
75
26
|
</${t}>
|
|
76
27
|
`;
|
|
77
|
-
}, [
|
|
28
|
+
}, [s, l], { styles: ".control{--focus-stroke-gap-color:transparent;box-sizing:border-box;background-color:var(--_appearance-color-fill);block-size:var(--_button-block-size,24px);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);cursor:pointer;padding-inline:calc(var(--_button-block-size,24px) / 6);vertical-align:middle;border:0;border-radius:50%;justify-content:center;align-items:center;margin:0;display:inline-flex}@supports (aspect-ratio:auto){.control{aspect-ratio:1;padding:0}}.control:focus-visible{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}slot[name=icon]{font-size:var(--_button-icon-size,16px);line-height:1}" }), m = e(p);
|
|
78
29
|
//#endregion
|
|
79
|
-
export {
|
|
30
|
+
export { m as n, p as t };
|
package/bundled/definition11.cjs
CHANGED
|
@@ -1,10 +1,74 @@
|
|
|
1
|
-
const e=require(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
const e=require("./vivid-element.cjs"),t=require("./slotted.cjs"),n=require("./ref.cjs"),r=require("./when.cjs"),i=require("./definition.cjs"),a=require("./decorate.cjs"),o=require("./class-names.cjs"),s=require("./definition2.cjs"),c=require("./affix.cjs"),l=require("./delegates-aria.cjs"),u=require("./component-enum.cjs"),d=require("./form-associated.cjs"),f=require("./render-in-light-dom.cjs"),p=require("./feedback-message.cjs"),m=require("./definition10.cjs"),h=require("./form-element.cjs"),g=require("./char-count.cjs"),_=require("./with-contextual-help.cjs"),v=require("./with-error-text.cjs"),y=require("./with-success-text.cjs"),b=require("./mixins.cjs"),x=require("./text-field.cjs");var S=u.t([`fieldset`,`ghost`],`fieldset`),C={email:`email`,password:`password`,search:`search`,tel:`tel`,text:`text`,url:`url`},w=new e.w([`
|
|
2
|
+
._vvd-3-text-field-safari-workaround::placeholder {
|
|
3
|
+
opacity: 1 !important;
|
|
4
|
+
-webkit-text-fill-color: var(--_low-ink-color) !important;
|
|
5
|
+
}
|
|
6
|
+
`]),T=e=>{let t=e.getRootNode();w.isAttachedTo(t)||w.addStylesTo(t)},E=class extends _.t(b.n(g.t(v.t(y.t(h.t(c.t(l.t(d.n(e.t))))))))){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.type=C.text,this.#e=f.n()}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute(`list`,this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}valueChanged(e,t){super.valueChanged(e,t),this._updateControlValueIfNeeded(),this.charCount&&this.maxlength&&this._updateCharCountRemaining()}_updateControlValueIfNeeded(){this.control&&this.control.value!==this.value&&(this.control.value=this.value)}select(){this.control.select()}handleTextInput(e){this.value=this.control.value,e.stopPropagation(),this.$emit(`input`)}handleChange(){this.$emit(`change`)}validate(){super.validate(this.control)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,this.type),this.validate(),this.autofocus&&e.M.enqueue(()=>{this.focus()}),this._updateControlValueIfNeeded(),T(this),this._renderCharCountRemaining()}focus(){this.control?.focus()}#e;get _uniqueId(){return this.id||this.#e}};a.t([e.m({attribute:`readonly`,mode:`boolean`})],E.prototype,`readOnly`,void 0),a.t([e.m({mode:`boolean`})],E.prototype,`autofocus`,void 0),a.t([e.m],E.prototype,`placeholder`,void 0),a.t([e.m],E.prototype,`type`,void 0),a.t([e.m],E.prototype,`list`,void 0),a.t([e.m({converter:e.h})],E.prototype,`maxlength`,void 0),a.t([e.m({converter:e.h})],E.prototype,`minlength`,void 0),a.t([e.m],E.prototype,`pattern`,void 0),a.t([e.m({converter:e.h})],E.prototype,`size`,void 0),a.t([e.m({mode:`boolean`})],E.prototype,`spellcheck`,void 0),a.t([e.m],E.prototype,`appearance`,void 0),a.t([e.m],E.prototype,`shape`,void 0),a.t([e.m],E.prototype,`autoComplete`,void 0),a.t([e.m()],E.prototype,`scale`,void 0),a.t([e.m({attribute:`inputmode`})],E.prototype,`inputMode`,void 0),a.t([e.A],E.prototype,`actionItemsSlottedContent`,void 0),a.t([e.A],E.prototype,`leadingActionItemsSlottedContent`,void 0);var D=e=>`vvd-text-field-control-${e}`,O=e.u(`text-field`,E,i=>{let a=c.a(i);return e.p`
|
|
7
|
+
<div
|
|
8
|
+
class="base ${e=>o.t(`connotation-accent`,`appearance-${S.parse(e.appearance)}`,`with-idle`,`with-hover`,`with-disabled`,`with-readonly`,`with-error`,`with-success`,[`error`,!!e.errorValidationMessage],[`disabled`,e.disabled],[`has-value`,!!e.value],[`readonly`,e.readOnly],[`placeholder`,!!e.placeholder],[`shape-${e.shape}`,!!e.shape],[`no-label`,!e.label],[`has-icon`,!!e.icon],[`success`,!!e.successText],[`action-items`,!!e.actionItemsSlottedContent?.length],[`leading-action-items`,!!e.leadingActionItemsSlottedContent?.length],[`no-leading`,!(e.leadingActionItemsSlottedContent?.length||e.icon)],[`size-${e.scale}`,!!e.scale])}"
|
|
9
|
+
>
|
|
10
|
+
${r.t(e=>e.charCount&&e.maxlength,e=>e._getCharCountTemplate(i))}
|
|
11
|
+
<div
|
|
12
|
+
class="label-wrapper"
|
|
13
|
+
?hidden=${e=>!e.label&&!e._hasContextualHelp}
|
|
14
|
+
>
|
|
15
|
+
<slot class="label" name="_label"></slot>
|
|
16
|
+
<slot
|
|
17
|
+
name="contextual-help"
|
|
18
|
+
${t.t(`_contextualHelpSlottedContent`)}
|
|
19
|
+
></slot>
|
|
20
|
+
</div>
|
|
21
|
+
${f.t(e.p`
|
|
22
|
+
${r.t(e=>e.label,e.p`
|
|
23
|
+
<label slot="_label" for="${e=>D(e._uniqueId)}">
|
|
24
|
+
${e=>e.label}
|
|
25
|
+
</label>
|
|
26
|
+
`)}
|
|
27
|
+
`)}
|
|
28
|
+
<div class="fieldset">
|
|
29
|
+
<div class="leading-items-wrapper">
|
|
30
|
+
<slot
|
|
31
|
+
name="leading-action-items"
|
|
32
|
+
${t.t(`leadingActionItemsSlottedContent`)}
|
|
33
|
+
></slot>
|
|
34
|
+
${e=>a(e.icon)}
|
|
35
|
+
</div>
|
|
36
|
+
<div class="wrapper">
|
|
37
|
+
<slot class="control" name="_control"></slot>
|
|
38
|
+
${f.t(e.p`<input
|
|
39
|
+
slot="_control"
|
|
40
|
+
id="${e=>D(e._uniqueId)}"
|
|
41
|
+
class="_vvd-3-text-field-safari-workaround"
|
|
42
|
+
@input="${(e,t)=>e.handleTextInput(t.event)}"
|
|
43
|
+
@change="${e=>e.handleChange()}"
|
|
44
|
+
@blur="${e=>{e.$emit(`blur`,void 0,{bubbles:!1})}}"
|
|
45
|
+
@focus="${e=>{e.$emit(`focus`,void 0,{bubbles:!1})}}"
|
|
46
|
+
?autofocus="${e=>e.autofocus}"
|
|
47
|
+
?disabled="${e=>e.disabled}"
|
|
48
|
+
?readonly="${e=>e.readOnly}"
|
|
49
|
+
?required="${e=>e.required}"
|
|
50
|
+
?spellcheck="${e=>e.spellcheck}"
|
|
51
|
+
list="${e=>e.list}"
|
|
52
|
+
maxlength="${e=>e.maxlength}"
|
|
53
|
+
minlength="${e=>e.minlength}"
|
|
54
|
+
pattern="${e=>e.pattern}"
|
|
55
|
+
placeholder="${e=>e.placeholder}"
|
|
56
|
+
size="${e=>e.size}"
|
|
57
|
+
autocomplete="${e=>e.autoComplete}"
|
|
58
|
+
type="${e=>e.type}"
|
|
59
|
+
inputmode="${e=>e.inputMode}"
|
|
60
|
+
value="${e=>e.initialValue}"
|
|
61
|
+
${l.n({ariaDescribedBy:e=>`${e._feedbackDescribedBy} ${e.charCount&&e.maxlength?e._charCountDescribedBy:null}`})}
|
|
62
|
+
${n.t(`control`)}
|
|
63
|
+
/>`)}
|
|
64
|
+
</div>
|
|
65
|
+
<div class="action-items-wrapper">
|
|
66
|
+
<slot
|
|
67
|
+
name="action-items"
|
|
68
|
+
${t.t(`actionItemsSlottedContent`)}
|
|
69
|
+
></slot>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
${e=>e._getFeedbackTemplate(i)}
|
|
73
|
+
</div>
|
|
74
|
+
`},[s.t,p.n,i.n,m.t],{styles:x.t,shadowOptions:{delegatesFocus:!0}}),k=e.d(O);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return k}});
|
package/bundled/definition11.js
CHANGED
|
@@ -1,30 +1,200 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { A as e, M as t, d as n, h as r, m as i, p as a, t as o, u as s, w as c } from "./vivid-element.js";
|
|
2
|
+
import { t as l } from "./slotted.js";
|
|
3
|
+
import { t as u } from "./ref.js";
|
|
4
|
+
import { t as d } from "./when.js";
|
|
5
|
+
import { n as f } from "./definition.js";
|
|
6
|
+
import { t as p } from "./decorate.js";
|
|
7
|
+
import { t as m } from "./class-names.js";
|
|
8
|
+
import { t as h } from "./definition2.js";
|
|
9
|
+
import { a as g, t as _ } from "./affix.js";
|
|
10
|
+
import { n as v, t as y } from "./delegates-aria.js";
|
|
11
|
+
import { t as b } from "./component-enum.js";
|
|
12
|
+
import { n as x } from "./form-associated.js";
|
|
13
|
+
import { n as S, t as C } from "./render-in-light-dom.js";
|
|
14
|
+
import { n as w } from "./feedback-message.js";
|
|
15
|
+
import { t as T } from "./definition10.js";
|
|
16
|
+
import { t as E } from "./form-element.js";
|
|
17
|
+
import { t as D } from "./char-count.js";
|
|
18
|
+
import { t as O } from "./with-contextual-help.js";
|
|
19
|
+
import { t as k } from "./with-error-text.js";
|
|
20
|
+
import { t as A } from "./with-success-text.js";
|
|
21
|
+
import { n as j } from "./mixins.js";
|
|
22
|
+
import { t as M } from "./text-field.js";
|
|
23
|
+
//#region src/lib/text-field/text-field.ts
|
|
24
|
+
var N = b(["fieldset", "ghost"], "fieldset"), P = {
|
|
25
|
+
email: "email",
|
|
26
|
+
password: "password",
|
|
27
|
+
search: "search",
|
|
28
|
+
tel: "tel",
|
|
29
|
+
text: "text",
|
|
30
|
+
url: "url"
|
|
31
|
+
}, F = new c(["\n ._vvd-3-text-field-safari-workaround::placeholder {\n opacity: 1 !important;\n -webkit-text-fill-color: var(--_low-ink-color) !important;\n }\n"]), I = (e) => {
|
|
32
|
+
let t = e.getRootNode();
|
|
33
|
+
F.isAttachedTo(t) || F.addStylesTo(t);
|
|
34
|
+
}, L = class extends O(j(D(k(A(E(_(y(x(o))))))))) {
|
|
9
35
|
constructor(...e) {
|
|
10
|
-
super(...e), this.
|
|
36
|
+
super(...e), this.proxy = document.createElement("input"), this.type = P.text, this.#e = S();
|
|
37
|
+
}
|
|
38
|
+
readOnlyChanged() {
|
|
39
|
+
/* v8 ignore if -- @preserve */
|
|
40
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.readOnly = this.readOnly, this.validate());
|
|
41
|
+
}
|
|
42
|
+
autofocusChanged() {
|
|
43
|
+
/* v8 ignore if -- @preserve */
|
|
44
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.autofocus = this.autofocus, this.validate());
|
|
45
|
+
}
|
|
46
|
+
placeholderChanged() {
|
|
47
|
+
/* v8 ignore if -- @preserve */
|
|
48
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.placeholder = this.placeholder);
|
|
49
|
+
}
|
|
50
|
+
typeChanged() {
|
|
51
|
+
/* v8 ignore if -- @preserve */
|
|
52
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.type = this.type, this.validate());
|
|
53
|
+
}
|
|
54
|
+
listChanged() {
|
|
55
|
+
/* v8 ignore if -- @preserve */
|
|
56
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.setAttribute("list", this.list), this.validate());
|
|
57
|
+
}
|
|
58
|
+
maxlengthChanged() {
|
|
59
|
+
/* v8 ignore if -- @preserve */
|
|
60
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.maxLength = this.maxlength, this.validate());
|
|
61
|
+
}
|
|
62
|
+
minlengthChanged() {
|
|
63
|
+
/* v8 ignore if -- @preserve */
|
|
64
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.minLength = this.minlength, this.validate());
|
|
65
|
+
}
|
|
66
|
+
patternChanged() {
|
|
67
|
+
/* v8 ignore if -- @preserve */
|
|
68
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.pattern = this.pattern, this.validate());
|
|
69
|
+
}
|
|
70
|
+
sizeChanged() {
|
|
71
|
+
/* v8 ignore if -- @preserve */
|
|
72
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.size = this.size);
|
|
73
|
+
}
|
|
74
|
+
spellcheckChanged() {
|
|
75
|
+
/* v8 ignore if -- @preserve */
|
|
76
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.spellcheck = this.spellcheck);
|
|
77
|
+
}
|
|
78
|
+
valueChanged(e, t) {
|
|
79
|
+
super.valueChanged(e, t), this._updateControlValueIfNeeded(), this.charCount && this.maxlength && this._updateCharCountRemaining();
|
|
80
|
+
}
|
|
81
|
+
_updateControlValueIfNeeded() {
|
|
82
|
+
this.control && this.control.value !== this.value && (this.control.value = this.value);
|
|
83
|
+
}
|
|
84
|
+
select() {
|
|
85
|
+
this.control.select();
|
|
86
|
+
}
|
|
87
|
+
handleTextInput(e) {
|
|
88
|
+
this.value = this.control.value, e.stopPropagation(), this.$emit("input");
|
|
89
|
+
}
|
|
90
|
+
handleChange() {
|
|
91
|
+
this.$emit("change");
|
|
92
|
+
}
|
|
93
|
+
validate() {
|
|
94
|
+
super.validate(this.control);
|
|
95
|
+
}
|
|
96
|
+
connectedCallback() {
|
|
97
|
+
super.connectedCallback(), this.proxy.setAttribute("type", this.type), this.validate(), this.autofocus && t.enqueue(() => {
|
|
98
|
+
this.focus();
|
|
99
|
+
}), this._updateControlValueIfNeeded(), I(this), this._renderCharCountRemaining();
|
|
100
|
+
}
|
|
101
|
+
focus() {
|
|
102
|
+
this.control?.focus();
|
|
103
|
+
}
|
|
104
|
+
#e;
|
|
105
|
+
get _uniqueId() {
|
|
106
|
+
return this.id || this.#e;
|
|
11
107
|
}
|
|
12
108
|
};
|
|
13
|
-
|
|
109
|
+
p([i({
|
|
110
|
+
attribute: "readonly",
|
|
111
|
+
mode: "boolean"
|
|
112
|
+
})], L.prototype, "readOnly", void 0), p([i({ mode: "boolean" })], L.prototype, "autofocus", void 0), p([i], L.prototype, "placeholder", void 0), p([i], L.prototype, "type", void 0), p([i], L.prototype, "list", void 0), p([i({ converter: r })], L.prototype, "maxlength", void 0), p([i({ converter: r })], L.prototype, "minlength", void 0), p([i], L.prototype, "pattern", void 0), p([i({ converter: r })], L.prototype, "size", void 0), p([i({ mode: "boolean" })], L.prototype, "spellcheck", void 0), p([i], L.prototype, "appearance", void 0), p([i], L.prototype, "shape", void 0), p([i], L.prototype, "autoComplete", void 0), p([i()], L.prototype, "scale", void 0), p([i({ attribute: "inputmode" })], L.prototype, "inputMode", void 0), p([e], L.prototype, "actionItemsSlottedContent", void 0), p([e], L.prototype, "leadingActionItemsSlottedContent", void 0);
|
|
14
113
|
//#endregion
|
|
15
|
-
//#region src/lib/
|
|
16
|
-
var
|
|
17
|
-
let t =
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
114
|
+
//#region src/lib/text-field/text-field.template.ts
|
|
115
|
+
var R = (e) => `vvd-text-field-control-${e}`, z = s("text-field", L, (e) => {
|
|
116
|
+
let t = g(e);
|
|
117
|
+
return a`
|
|
118
|
+
<div
|
|
119
|
+
class="base ${(e) => m("connotation-accent", `appearance-${N.parse(e.appearance)}`, "with-idle", "with-hover", "with-disabled", "with-readonly", "with-error", "with-success", ["error", !!e.errorValidationMessage], ["disabled", e.disabled], ["has-value", !!e.value], ["readonly", e.readOnly], ["placeholder", !!e.placeholder], [`shape-${e.shape}`, !!e.shape], ["no-label", !e.label], ["has-icon", !!e.icon], ["success", !!e.successText], ["action-items", !!e.actionItemsSlottedContent?.length], ["leading-action-items", !!e.leadingActionItemsSlottedContent?.length], ["no-leading", !(e.leadingActionItemsSlottedContent?.length || e.icon)], [`size-${e.scale}`, !!e.scale])}"
|
|
120
|
+
>
|
|
121
|
+
${d((e) => e.charCount && e.maxlength, (t) => t._getCharCountTemplate(e))}
|
|
122
|
+
<div
|
|
123
|
+
class="label-wrapper"
|
|
124
|
+
?hidden=${(e) => !e.label && !e._hasContextualHelp}
|
|
125
|
+
>
|
|
126
|
+
<slot class="label" name="_label"></slot>
|
|
127
|
+
<slot
|
|
128
|
+
name="contextual-help"
|
|
129
|
+
${l("_contextualHelpSlottedContent")}
|
|
130
|
+
></slot>
|
|
131
|
+
</div>
|
|
132
|
+
${C(a`
|
|
133
|
+
${d((e) => e.label, a`
|
|
134
|
+
<label slot="_label" for="${(e) => R(e._uniqueId)}">
|
|
135
|
+
${(e) => e.label}
|
|
136
|
+
</label>
|
|
137
|
+
`)}
|
|
138
|
+
`)}
|
|
139
|
+
<div class="fieldset">
|
|
140
|
+
<div class="leading-items-wrapper">
|
|
141
|
+
<slot
|
|
142
|
+
name="leading-action-items"
|
|
143
|
+
${l("leadingActionItemsSlottedContent")}
|
|
144
|
+
></slot>
|
|
145
|
+
${(e) => t(e.icon)}
|
|
146
|
+
</div>
|
|
147
|
+
<div class="wrapper">
|
|
148
|
+
<slot class="control" name="_control"></slot>
|
|
149
|
+
${C(a`<input
|
|
150
|
+
slot="_control"
|
|
151
|
+
id="${(e) => R(e._uniqueId)}"
|
|
152
|
+
class="_vvd-3-text-field-safari-workaround"
|
|
153
|
+
@input="${(e, t) => e.handleTextInput(t.event)}"
|
|
154
|
+
@change="${(e) => e.handleChange()}"
|
|
155
|
+
@blur="${(e) => {
|
|
156
|
+
e.$emit("blur", void 0, { bubbles: !1 });
|
|
157
|
+
}}"
|
|
158
|
+
@focus="${(e) => {
|
|
159
|
+
e.$emit("focus", void 0, { bubbles: !1 });
|
|
160
|
+
}}"
|
|
161
|
+
?autofocus="${(e) => e.autofocus}"
|
|
162
|
+
?disabled="${(e) => e.disabled}"
|
|
163
|
+
?readonly="${(e) => e.readOnly}"
|
|
164
|
+
?required="${(e) => e.required}"
|
|
165
|
+
?spellcheck="${(e) => e.spellcheck}"
|
|
166
|
+
list="${(e) => e.list}"
|
|
167
|
+
maxlength="${(e) => e.maxlength}"
|
|
168
|
+
minlength="${(e) => e.minlength}"
|
|
169
|
+
pattern="${(e) => e.pattern}"
|
|
170
|
+
placeholder="${(e) => e.placeholder}"
|
|
171
|
+
size="${(e) => e.size}"
|
|
172
|
+
autocomplete="${(e) => e.autoComplete}"
|
|
173
|
+
type="${(e) => e.type}"
|
|
174
|
+
inputmode="${(e) => e.inputMode}"
|
|
175
|
+
value="${(e) => e.initialValue}"
|
|
176
|
+
${v({ ariaDescribedBy: (e) => `${e._feedbackDescribedBy} ${e.charCount && e.maxlength ? e._charCountDescribedBy : null}` })}
|
|
177
|
+
${u("control")}
|
|
178
|
+
/>`)}
|
|
179
|
+
</div>
|
|
180
|
+
<div class="action-items-wrapper">
|
|
181
|
+
<slot
|
|
182
|
+
name="action-items"
|
|
183
|
+
${l("actionItemsSlottedContent")}
|
|
184
|
+
></slot>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
${(t) => t._getFeedbackTemplate(e)}
|
|
188
|
+
</div>
|
|
27
189
|
`;
|
|
28
|
-
}, [
|
|
190
|
+
}, [
|
|
191
|
+
h,
|
|
192
|
+
w,
|
|
193
|
+
f,
|
|
194
|
+
T
|
|
195
|
+
], {
|
|
196
|
+
styles: M,
|
|
197
|
+
shadowOptions: { delegatesFocus: !0 }
|
|
198
|
+
}), B = n(z);
|
|
29
199
|
//#endregion
|
|
30
|
-
export {
|
|
200
|
+
export { z as n, L as r, B as t };
|
package/bundled/definition12.cjs
CHANGED
|
@@ -1,74 +1,22 @@
|
|
|
1
|
-
const e=require(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const e=require("./localized.cjs"),t=require("./vivid-element.cjs"),n=require("./decorate.cjs"),r=require("./class-names.cjs"),i=require("./definition2.cjs"),a=require("./affix.cjs"),o=require("./host-semantics.cjs"),s=require("./component-enum.cjs");var c=`:host{--_vvd-tab-accent-firm-wrapper:var(--vvd-tab-accent-firm);--_vvd-tab-cta-firm-wrapper:var(--vvd-tab-cta-firm)}.base{--vvd-tab-accent-firm:var(--_vvd-tab-accent-firm-wrapper,var(--vvd-tab-accent-primary));--vvd-tab-cta-firm:var(--_vvd-tab-cta-firm-wrapper,var(--vvd-tab-cta-primary))}:host(.vertical){grid-column:1;justify-content:end}:host([disabled]){cursor:not-allowed}:host([removable]){position:relative}:host(:focus-visible){outline:none}.base{box-sizing:border-box;align-items:center;justify-content:var(--_tab-justify-content);padding:var(--_tabs-tablist-gutter);background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base-bold);gap:var(--_tabs-tablist-gutter);vertical-align:middle;white-space:nowrap;user-select:none;min-block-size:40px;display:flex;position:relative}.base:not(.shape-sharp){border-radius:8px}.base:not(.disabled){cursor:pointer}.base.disabled{pointer-events:none}.base.removable{padding-inline-end:40px}:host(:focus-visible) .base{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host(.vertical) .base{margin-inline-start:var(--_tabs-active-indicator-stroke-width)}slot[name=icon]{font-size:20px;line-height:1}.icon-trailing slot[name=icon]{order:1;margin-inline-start:auto;display:inline-block}.close{background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;block-size:24px;inline-size:24px;display:flex;position:absolute;inset-block-start:50%;inset-inline-end:4px;transform:translateY(-50%)}.close:focus-visible{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}.close vwc-icon{font-size:12px}.close .icon{justify-content:center;align-items:center;display:flex}`,l=s.t([`accent`,`cta`],`accent`),u=class extends o.t(a.n(e.t(t.t))){constructor(...e){super(...e),this.removable=!1,this.tabIndex=`-1`,this.active=!1}_handleCloseClick(e){e.stopImmediatePropagation(),this.$emit(`close`)}_onKeyDown(e){return!this.removable||e.key!==`Delete`||(e.stopImmediatePropagation(),this.$emit(`close`),!1)}};n.t([t.m({mode:`boolean`})],u.prototype,`disabled`,void 0),n.t([t.m],u.prototype,`connotation`,void 0),n.t([t.m],u.prototype,`shape`,void 0),n.t([t.m],u.prototype,`label`,void 0),n.t([t.m({mode:`boolean`})],u.prototype,`removable`,void 0),n.t([t.m({mode:`fromView`})],u.prototype,`tabIndex`,void 0),n.t([t.A],u.prototype,`active`,void 0);function d(e){let n=a.a(e);return t.p`<button
|
|
2
|
+
aria-label="${e=>e.locale.tab.dismissButtonLabel}"
|
|
3
|
+
class="close"
|
|
4
|
+
id="close-btn"
|
|
5
|
+
@click="${(e,t)=>e._handleCloseClick(t.event)}"
|
|
6
|
+
>
|
|
7
|
+
${()=>n(`close-line`,a.i.Span)}
|
|
8
|
+
</button>`}var f=t.u(`tab`,u,e=>{let n=a.a(e);return t.p`
|
|
9
|
+
<template
|
|
10
|
+
slot="tab"
|
|
11
|
+
?active="${e=>e.active}"
|
|
12
|
+
${o.n({role:`tab`,ariaDisabled:e=>e.disabled,ariaSelected:e=>e.active})}
|
|
13
|
+
@keydown="${(e,t)=>e._onKeyDown(t.event)}"
|
|
9
14
|
>
|
|
10
|
-
${r.t(e=>e.charCount&&e.maxlength,e=>e._getCharCountTemplate(i))}
|
|
11
15
|
<div
|
|
12
|
-
class="
|
|
13
|
-
?hidden=${e=>!e.label&&!e._hasContextualHelp}
|
|
16
|
+
class="${e=>r.t(`base`,`connotation-${e.active?l.parse(e.connotation):`accent`}`,`appearance-ghost`,`with-idle`,`with-hover`,`with-active`,`with-disabled`,[`shape-${e.shape}`,!!e.shape],[`disabled`,e.disabled],[`selected`,e.active],[`icon-trailing`,e.iconTrailing],[`removable`,e.removable])}"
|
|
14
17
|
>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
name="contextual-help"
|
|
18
|
-
${t.t(`_contextualHelpSlottedContent`)}
|
|
19
|
-
></slot>
|
|
18
|
+
${e=>n(e.icon,a.i.Slot)} ${e=>e.label}
|
|
19
|
+
${t=>t.removable?d(e):null}
|
|
20
20
|
</div>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<label slot="_label" for="${e=>w(e._uniqueId)}">
|
|
24
|
-
${e=>e.label}
|
|
25
|
-
</label>
|
|
26
|
-
`)}
|
|
27
|
-
`)}
|
|
28
|
-
<div class="fieldset">
|
|
29
|
-
<div class="leading-items-wrapper">
|
|
30
|
-
<slot
|
|
31
|
-
name="leading-action-items"
|
|
32
|
-
${t.t(`leadingActionItemsSlottedContent`)}
|
|
33
|
-
></slot>
|
|
34
|
-
${e=>a(e.icon)}
|
|
35
|
-
</div>
|
|
36
|
-
<div class="wrapper">
|
|
37
|
-
<slot class="control" name="_control"></slot>
|
|
38
|
-
${d.t(e.p`<input
|
|
39
|
-
slot="_control"
|
|
40
|
-
id="${e=>w(e._uniqueId)}"
|
|
41
|
-
class="_vvd-3-text-field-safari-workaround"
|
|
42
|
-
@input="${(e,t)=>e.handleTextInput(t.event)}"
|
|
43
|
-
@change="${e=>e.handleChange()}"
|
|
44
|
-
@blur="${e=>{e.$emit(`blur`,void 0,{bubbles:!1})}}"
|
|
45
|
-
@focus="${e=>{e.$emit(`focus`,void 0,{bubbles:!1})}}"
|
|
46
|
-
?autofocus="${e=>e.autofocus}"
|
|
47
|
-
?disabled="${e=>e.disabled}"
|
|
48
|
-
?readonly="${e=>e.readOnly}"
|
|
49
|
-
?required="${e=>e.required}"
|
|
50
|
-
?spellcheck="${e=>e.spellcheck}"
|
|
51
|
-
list="${e=>e.list}"
|
|
52
|
-
maxlength="${e=>e.maxlength}"
|
|
53
|
-
minlength="${e=>e.minlength}"
|
|
54
|
-
pattern="${e=>e.pattern}"
|
|
55
|
-
placeholder="${e=>e.placeholder}"
|
|
56
|
-
size="${e=>e.size}"
|
|
57
|
-
autocomplete="${e=>e.autoComplete}"
|
|
58
|
-
type="${e=>e.type}"
|
|
59
|
-
inputmode="${e=>e.inputMode}"
|
|
60
|
-
value="${e=>e.initialValue}"
|
|
61
|
-
${l.n({ariaDescribedBy:e=>`${e._feedbackDescribedBy} ${e.charCount&&e.maxlength?e._charCountDescribedBy:null}`})}
|
|
62
|
-
${n.t(`control`)}
|
|
63
|
-
/>`)}
|
|
64
|
-
</div>
|
|
65
|
-
<div class="action-items-wrapper">
|
|
66
|
-
<slot
|
|
67
|
-
name="action-items"
|
|
68
|
-
${t.t(`actionItemsSlottedContent`)}
|
|
69
|
-
></slot>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
${e=>e._getFeedbackTemplate(i)}
|
|
73
|
-
</div>
|
|
74
|
-
`},[s.t,f.r,i.n,p.t],{styles:y.t,shadowOptions:{delegatesFocus:!0}}),E=e.d(T);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return E}});
|
|
21
|
+
</template>
|
|
22
|
+
`},[i.t],{styles:c}),p=t.d(f);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|