@vonage/vivid 5.25.0 → 5.28.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 +56 -58
- 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 +12 -18
- package/bundled/definition10.js +24 -69
- 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 +8 -4
- package/bundled/definition23.js +31 -9
- 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 +144 -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 +24 -14
- package/bundled/definition8.js +90 -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 +45 -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 +4 -4
- 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 +9302 -9180
- 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 +18 -7
- package/lib/badge/badge.template.d.ts +2 -1
- 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/icon/icon.d.ts +1 -1
- 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/popover/popover.d.ts +2 -1
- package/lib/popup/definition.d.ts +2 -0
- package/lib/progress/progress.d.ts +10 -5
- package/lib/progress-ring/progress-ring.d.ts +10 -6
- 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 +436 -5
- package/lib/rich-text-editor/rte/__tests__/async-generator.d.ts +1 -0
- package/lib/rich-text-editor/rte/features/atom.d.ts +6 -2
- package/lib/rich-text-editor/rte/instance.d.ts +2 -1
- 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/table/locale.d.ts +10 -0
- package/lib/table/table-sorting-button.d.ts +425 -0
- 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 +46 -33
- package/locales/de-DE.js +46 -33
- package/locales/en-GB.cjs +46 -33
- package/locales/en-GB.js +46 -33
- package/locales/ja-JP.cjs +47 -33
- package/locales/ja-JP.js +47 -33
- package/locales/zh-CN.cjs +46 -33
- package/locales/zh-CN.js +46 -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 +82 -41
- 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 +25 -16
- package/rich-text-editor/index.js +2450 -2154
- 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/localization/Locale.d.ts +2 -0
- 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 +20 -18
- package/table/index.js +54 -42
- 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 +12 -4
- package/unbundled/definition14.js +12 -3
- package/unbundled/definition15.cjs +32 -6
- package/unbundled/definition15.js +32 -5
- 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 +9 -4
- package/unbundled/definition2.js +9 -3
- 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 +8 -8
- package/unbundled/definition24.js +9 -8
- package/unbundled/definition25.cjs +7 -4
- package/unbundled/definition25.js +7 -3
- package/unbundled/definition26.cjs +6 -4
- package/unbundled/definition26.js +5 -2
- package/unbundled/definition27.cjs +10 -7
- package/unbundled/definition27.js +10 -6
- 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 +351 -51
- package/unbundled/definition58.js +348 -46
- package/unbundled/definition59.cjs +58 -147
- package/unbundled/definition59.js +59 -144
- package/unbundled/definition6.cjs +22 -7
- package/unbundled/definition6.js +22 -6
- 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 +3788 -729
- package/unbundled/definition63.js +3617 -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 +304 -312
- package/unbundled/definition75.js +232 -304
- 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 +19 -12
- package/unbundled/definition8.js +19 -11
- 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 +46 -33
- package/unbundled/en-US.js +46 -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 +1 -2
- package/unbundled/linkable.js +1 -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 +509 -1125
- 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
|
@@ -6,34 +6,36 @@ import { t as f } from "../bundled/ref.js";
|
|
|
6
6
|
import { t as p } from "../bundled/when.js";
|
|
7
7
|
import { t as m } from "../bundled/decorate.js";
|
|
8
8
|
import { t as h } from "../bundled/class-names.js";
|
|
9
|
-
import { t as g } from "../bundled/
|
|
10
|
-
import { t as
|
|
11
|
-
import { a as
|
|
12
|
-
import { r as
|
|
13
|
-
import { n as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { i as
|
|
17
|
-
import {
|
|
9
|
+
import { t as g } from "../bundled/definition2.js";
|
|
10
|
+
import { t as ee } from "../bundled/icon.js";
|
|
11
|
+
import { a as te, i as _, n as v } from "../bundled/affix.js";
|
|
12
|
+
import { r as y, t as b } from "../bundled/definition4.js";
|
|
13
|
+
import { n as x, t as S } from "../bundled/delegates-aria.js";
|
|
14
|
+
import { t as C } from "../bundled/component-enum.js";
|
|
15
|
+
import { n as w } from "../bundled/form-associated.js";
|
|
16
|
+
import { i as ne, r as T, t as E } from "../bundled/definition5.js";
|
|
17
|
+
import { i as D, t as O } from "../bundled/definition7.js";
|
|
18
|
+
import { n as k } from "../bundled/feedback-message.js";
|
|
18
19
|
import { t as A } from "../bundled/form-element.js";
|
|
19
20
|
import { t as j } from "../bundled/with-contextual-help.js";
|
|
20
21
|
import { t as M } from "../bundled/with-error-text.js";
|
|
21
22
|
import { t as N } from "../bundled/with-success-text.js";
|
|
22
|
-
import { t as P } from "../bundled/
|
|
23
|
-
import {
|
|
24
|
-
import { t as L } from "../bundled/
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { t as
|
|
23
|
+
import { t as P } from "../bundled/mixins.js";
|
|
24
|
+
import { t as F } from "../bundled/scrollIntoView.js";
|
|
25
|
+
import { n as I, t as L } from "../bundled/option.js";
|
|
26
|
+
import { t as R } from "../bundled/definition17.js";
|
|
27
|
+
import { n as z } from "../bundled/optgroup.js";
|
|
28
|
+
import { t as B } from "../bundled/definition18.js";
|
|
29
|
+
import { t as V } from "../bundled/extractOptions.js";
|
|
30
|
+
import { t as H } from "../bundled/definition20.js";
|
|
31
|
+
import { t as U } from "../bundled/divider.js";
|
|
30
32
|
//#region src/lib/searchable-select/searchable-select.scss?inline
|
|
31
|
-
var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}.chevron{font:var(--vvd-typography-base-extended);flex-shrink:0;display:flex;transform:rotate(0)}@media (prefers-reduced-motion:no-preference){.chevron{transition:transform .2s}}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);inline-size:300px;display:inline-block}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{flex-direction:column;gap:4px;display:flex}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.selection-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.fieldset{--_connotation-color-primary:var(--vvd-searchable-select-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-searchable-select-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-searchable-select-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-intermediate:var(--vvd-searchable-select-accent-intermediate,var(--vvd-color-neutral-500));--_connotation-color-faint:var(--vvd-searchable-select-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--vvd-searchable-select-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-firm:var(--vvd-searchable-select-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-fierce:var(--vvd-searchable-select-accent-fierce,var(--vvd-color-neutral-700));--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}.fieldset.appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.fieldset:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.fieldset:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.fieldset:disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.fieldset:disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.fieldset.disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.fieldset.disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.fieldset.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.fieldset.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.fieldset.error:where(:not(.disabled,:disabled)){--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:var(--vvd-color-alert-500)}.fieldset.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:transparent}.fieldset.success:where(:not(.disabled,:disabled)){--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:var(--vvd-color-success-500)}.fieldset.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:transparent}.fieldset{--_searchable-select-block-size:24px;--_searchable-select-padding-block:8px;--_searchable-select-padding-inline:16px;--_searchable-select-icon-size:20px;--_searchable-select-border-radius:8px;--_searchable-select-gap:8px;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);justify-content:space-between;align-items:center;gap:var(--_searchable-select-gap);padding-block:var(--_searchable-select-padding-block);padding-inline:var(--_searchable-select-padding-inline);transition:box-shadow .2s,background-color .2s;display:flex}.fieldset.size-condensed{--_searchable-select-block-size:20px;--_searchable-select-padding-block:6px;--_searchable-select-padding-inline:12px;--_searchable-select-gap:6px}.fieldset.size-condensed:not(.shape-pill){--_searchable-select-border-radius:4px}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){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));--focus-stroke-gap-color:transparent}}@supports not selector(:has(*)){.fieldset:not(.has-highlighted-option):focus-within{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));--focus-stroke-gap-color:transparent}}:host(:not([shape=pill])) .fieldset{border-radius:var(--_searchable-select-border-radius)}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{gap:var(--_searchable-select-gap);min-block-size:var(--_searchable-select-block-size);flex-direction:column;flex:1;display:flex;overflow:hidden}.tag-row{gap:var(--_searchable-select-gap);inline-size:100%;display:flex}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;block-size:var(--_searchable-select-block-size);font:var(--vvd-typography-base);background:0 0;border:none;outline:none;flex:1;min-inline-size:min(100px,40%);max-inline-size:100%}.contains-only-input input:not(:focus){opacity:0;pointer-events:none;block-size:0;inline-size:0;min-inline-size:0;position:absolute}.listbox{max-block-size:var(--searchable-select-height,408px);flex-direction:column;gap:2px;padding:4px;display:flex;overflow-y:auto}.empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width,100%)}slot[name=icon]{font-size:var(--_searchable-select-icon-size)}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.divider{margin-block:10px;margin-inline:12px}", U = ":host{display:block}.base.connotation-cta{--_connotation-color-contrast:var(--vvd-option-tag-cta-contrast,var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-contrast:var(--vvd-option-tag-accent-contrast,var(--vvd-color-neutral-800))}.base{--_option-tag-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16));box-sizing:border-box;background-color:var(--fill-color);block-size:var(--_option-tag-block-size);box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);font:var(--vvd-typography-base-bold);user-select:none;align-items:center;column-gap:8px;max-inline-size:100%;padding-inline:8px;display:flex;position:relative}.base.size-condensed{--_option-tag-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20));padding-inline:4px}.base:not(.disabled){--text-color:var(--_connotation-color-contrast);--fill-color:var(--_connotation-color-soft);--outline-color:transparent}@supports (background-color:color-mix(in srgb, black 50%, white)){.base:not(.disabled){--fill-color:color-mix(in sRGB, var(--_connotation-color-contrast), transparent 87.5%)}}.base.disabled{--text-color:var(--vvd-color-neutral-300);--fill-color:var(--vvd-color-neutral-200);--outline-color:transparent}@supports (background-color:color-mix(in srgb, black 50%, white)){.base.disabled{--fill-color:color-mix(in sRGB, var(--vvd-color-neutral-800), transparent 87.5%)}}.base:not(.shape-pill){border-radius:4px}.base.shape-pill{border-radius:16px}.label{text-overflow:ellipsis;white-space:nowrap;max-inline-size:100%;overflow:hidden}slot[name=icon]{font-size:calc(var(--_option-tag-block-size) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(var(--_option-tag-block-size) / 1.5)}.remove-button{border-radius:inherit;cursor:pointer;outline:none;align-items:center;display:flex}.disabled .remove-button{pointer-events:none}.remove-button:focus-visible:before{--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));z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}", W = 8, G = 100, K = 10, q = (e) => typeof e == "string", J = class extends j(k(M(N(A(te(b(e(ne(c))))))))) {
|
|
33
|
+
var re = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}.chevron{font:var(--vvd-typography-base-extended);flex-shrink:0;display:flex;transform:rotate(0)}@media (prefers-reduced-motion:no-preference){.chevron{transition:transform .2s}}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);inline-size:300px;display:inline-block}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{flex-direction:column;gap:4px;display:flex}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.selection-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.fieldset{--_searchable-select-block-size:24px;--_searchable-select-padding-block:8px;--_searchable-select-padding-inline:16px;--_searchable-select-icon-size:20px;--_searchable-select-border-radius:8px;--_searchable-select-gap:8px;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);justify-content:space-between;align-items:center;gap:var(--_searchable-select-gap);padding-block:var(--_searchable-select-padding-block);padding-inline:var(--_searchable-select-padding-inline);transition:box-shadow .2s,background-color .2s;display:flex}.fieldset.size-condensed{--_searchable-select-block-size:20px;--_searchable-select-padding-block:6px;--_searchable-select-padding-inline:12px;--_searchable-select-gap:6px}.fieldset.size-condensed:not(.shape-pill){--_searchable-select-border-radius:4px}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){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));--focus-stroke-gap-color:transparent}}@supports not selector(:has(*)){.fieldset:not(.has-highlighted-option):focus-within{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));--focus-stroke-gap-color:transparent}}:host(:not([shape=pill])) .fieldset{border-radius:var(--_searchable-select-border-radius)}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{gap:var(--_searchable-select-gap);min-block-size:var(--_searchable-select-block-size);flex-direction:column;flex:1;display:flex;overflow:hidden}.tag-row{gap:var(--_searchable-select-gap);inline-size:100%;display:flex}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;block-size:var(--_searchable-select-block-size);font:var(--vvd-typography-base);background:0 0;border:none;outline:none;flex:1;min-inline-size:min(100px,40%);max-inline-size:100%}input:not(:focus){text-overflow:ellipsis}.contains-only-input input:not(:focus){opacity:0;pointer-events:none;block-size:0;inline-size:0;min-inline-size:0;position:absolute}.listbox{max-block-size:var(--searchable-select-height,408px);flex-direction:column;gap:2px;padding:4px;display:flex;overflow-y:auto}.empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width,100%)}slot[name=icon]{font-size:var(--_searchable-select-icon-size)}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.divider{margin-block:10px;margin-inline:12px}", W = ":host{display:block}.base{--_option-tag-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16));box-sizing:border-box;background-color:var(--fill-color);block-size:var(--_option-tag-block-size);box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);font:var(--vvd-typography-base-bold);user-select:none;align-items:center;column-gap:8px;max-inline-size:100%;padding-inline:8px;display:flex;position:relative}.base.size-condensed{--_option-tag-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20));padding-inline:4px}.base:not(.disabled){--text-color:var(--_connotation-color-contrast);--fill-color:var(--_connotation-color-soft);--outline-color:transparent}@supports (background-color:color-mix(in srgb, black 50%, white)){.base:not(.disabled){--fill-color:color-mix(in sRGB, var(--_connotation-color-contrast), transparent 87.5%)}}.base.disabled{--text-color:var(--vvd-color-neutral-300);--fill-color:var(--vvd-color-neutral-200);--outline-color:transparent}@supports (background-color:color-mix(in srgb, black 50%, white)){.base.disabled{--fill-color:color-mix(in sRGB, var(--vvd-color-neutral-800), transparent 87.5%)}}.base:not(.shape-pill){border-radius:4px}.base.shape-pill{border-radius:16px}.label{text-overflow:ellipsis;white-space:nowrap;max-inline-size:100%;overflow:hidden}slot[name=icon]{font-size:calc(var(--_option-tag-block-size) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(var(--_option-tag-block-size) / 1.5)}.remove-button{border-radius:inherit;cursor:pointer;outline:none;align-items:center;display:flex}.disabled .remove-button{pointer-events:none}.remove-button:focus-visible:before{--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));z-index:1;border-radius:inherit;content:\"\";pointer-events:none;display:block;position:absolute;inset:0}", G = C(["fieldset", "ghost"], "fieldset"), K = 8, q = 100, J = 10, Y = (e) => typeof e == "string", X = class extends j(P(M(N(A(S(v(e(w(c))))))))) {
|
|
32
34
|
constructor(...e) {
|
|
33
35
|
super(...e), this.fixedDropdown = !1, this.open = !1, this.multiple = !1, this.externalTags = !1, this.maxLines = null, this.values = [], this.initialValues = [], this._currentSearchText = null, this._areOptionsInitialized = !1, this.#r = { handleChange: (e, t) => {
|
|
34
36
|
e.selected && !this.values.includes(e.value) ? this.values = [...this.values, e.value] : !e.selected && this.values.includes(e.value) && (this.values = this.values.filter((t) => t !== e.value));
|
|
35
37
|
} }, this.#o = /* @__PURE__ */ new Map(), this._filteredOptions = [], this._filteredEnabledOptions = [], this.loading = !1, this._highlightedOptionIndex = null, this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [], this.clearable = !1, this.maxSelected = null, this._slottedDisabledOptions = [], this.enableSelectAll = !1, this.proxy = document.createElement("input"), this.setFormValue = (e, t) => {
|
|
36
|
-
|
|
38
|
+
Y(e) || super.setFormValue(e, t);
|
|
37
39
|
}, this._changeDescription = "", this.#O = new ResizeObserver(() => {
|
|
38
40
|
this.#b();
|
|
39
41
|
}), this.#k = () => {
|
|
@@ -158,7 +160,7 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
158
160
|
return !0;
|
|
159
161
|
}
|
|
160
162
|
_slottedElementsChanged() {
|
|
161
|
-
this._slottedOptions =
|
|
163
|
+
this._slottedOptions = V(this._slottedElements);
|
|
162
164
|
}
|
|
163
165
|
_slottedOptionsChanged(e, t) {
|
|
164
166
|
let n = !!this.querySelectorAll(":not([slot])").length;
|
|
@@ -213,13 +215,13 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
213
215
|
n._isNotMatching = !r, !n.hidden && r && e.push(n);
|
|
214
216
|
}
|
|
215
217
|
/* v8 ignore next -- _slottedElements not yet set if filtering is triggered before slot initialises */
|
|
216
|
-
for (let e of this._slottedElements ?? []) if (
|
|
217
|
-
let t = Array.from(e.children).some((e) =>
|
|
218
|
+
for (let e of this._slottedElements ?? []) if (z(e)) {
|
|
219
|
+
let t = Array.from(e.children).some((e) => I(e) && !e._isNotMatching && !e.hidden);
|
|
218
220
|
e.style.display = t ? "" : "none";
|
|
219
221
|
}
|
|
220
222
|
this.#u(null), this._filteredOptions = e;
|
|
221
223
|
let n = e.filter((e) => !e.disabled);
|
|
222
|
-
this.
|
|
224
|
+
this._filteredEnabledOptions = this._selectAllOption ? [this._selectAllOption, ...n] : n;
|
|
223
225
|
}
|
|
224
226
|
#u(e) {
|
|
225
227
|
if (typeof this._highlightedOptionIndex == "number") {
|
|
@@ -228,7 +230,7 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
228
230
|
}
|
|
229
231
|
if (typeof e == "number" && (e = this._filteredEnabledOptions.length ? Math.max(0, Math.min(this._filteredEnabledOptions.length - 1, e)) : null), this._highlightedOptionIndex = e, typeof this._highlightedOptionIndex == "number") {
|
|
230
232
|
let e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
231
|
-
e._highlighted = !0,
|
|
233
|
+
e._highlighted = !0, F(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(e._getAccessibleName(), this._highlightedOptionIndex + 1, this._filteredEnabledOptions.length, e.selected);
|
|
232
234
|
}
|
|
233
235
|
}
|
|
234
236
|
#d() {
|
|
@@ -247,10 +249,10 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
247
249
|
this.#u(this._filteredEnabledOptions.length - 1);
|
|
248
250
|
}
|
|
249
251
|
#m() {
|
|
250
|
-
this.#u((this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) -
|
|
252
|
+
this.#u((this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - J);
|
|
251
253
|
}
|
|
252
254
|
#h() {
|
|
253
|
-
this.#u((this._highlightedOptionIndex ?? -1) +
|
|
255
|
+
this.#u((this._highlightedOptionIndex ?? -1) + J);
|
|
254
256
|
}
|
|
255
257
|
#g() {
|
|
256
258
|
this.#u((this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - 1);
|
|
@@ -286,7 +288,7 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
286
288
|
this._numElidedTags = this.values.length, this._tagRows = [], this._lastTagRow = [];
|
|
287
289
|
return;
|
|
288
290
|
}
|
|
289
|
-
let e = this._contentArea.getBoundingClientRect().width, t = [[]], n = 0, r =
|
|
291
|
+
let e = this._contentArea.getBoundingClientRect().width, t = [[]], n = 0, r = q, i;
|
|
290
292
|
for (i = this.values.length - 1; i >= 0; i--) {
|
|
291
293
|
let a = this.maxLines && n === this.maxLines - 1, o = this.#y(this._tagLabelForValue(this.values[i]), !0, this.#s(this.selectedOptions[i]) !== null), s = {
|
|
292
294
|
value: this.values[i],
|
|
@@ -294,22 +296,23 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
294
296
|
}, c = 0;
|
|
295
297
|
if (a) {
|
|
296
298
|
let e = i;
|
|
297
|
-
e && (c =
|
|
299
|
+
e && (c = K + this.#y(e.toString(), !1, !1));
|
|
298
300
|
}
|
|
299
|
-
if (r +
|
|
300
|
-
if (a)
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
if (r + K + o + c > e) {
|
|
302
|
+
if (a) {
|
|
303
|
+
if (i === this.values.length - 1) t[n].unshift(s), r += K + o;
|
|
304
|
+
else break;
|
|
305
|
+
} else t.push([]), n++, t[n].unshift(s), r = o;
|
|
303
306
|
continue;
|
|
304
307
|
}
|
|
305
|
-
t[n].unshift(s), r +=
|
|
308
|
+
t[n].unshift(s), r += K + o;
|
|
306
309
|
}
|
|
307
310
|
this._numElidedTags = i + 1, t.reverse();
|
|
308
311
|
for (let n = 0; n < t.length - 1; n++) {
|
|
309
|
-
let r = t[n].map((e) => e.width).reduce((e, t) => e + t, 0) + (t[n].length - 1) *
|
|
310
|
-
for (n === 0 && this._numElidedTags && (r +=
|
|
312
|
+
let r = t[n].map((e) => e.width).reduce((e, t) => e + t, 0) + (t[n].length - 1) * K;
|
|
313
|
+
for (n === 0 && this._numElidedTags && (r += K + this.#y(this._numElidedTags.toString(), !1, !1)); t[n + 1].length && r + K + t[n + 1][0].width <= e;) {
|
|
311
314
|
let e = t[n + 1].shift();
|
|
312
|
-
t[n].push(e), r +=
|
|
315
|
+
t[n].push(e), r += K + e.width;
|
|
313
316
|
}
|
|
314
317
|
}
|
|
315
318
|
let a = t.map((e) => e.map((e) => e.value));
|
|
@@ -330,9 +333,7 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
330
333
|
case "ArrowLeft":
|
|
331
334
|
this.#x(this.#S(t) ?? t);
|
|
332
335
|
break;
|
|
333
|
-
case "ArrowRight":
|
|
334
|
-
this.#x(this.#C(t));
|
|
335
|
-
break;
|
|
336
|
+
case "ArrowRight": this.#x(this.#C(t));
|
|
336
337
|
}
|
|
337
338
|
return !0;
|
|
338
339
|
}
|
|
@@ -427,7 +428,7 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
427
428
|
this.disabled || e.defaultPrevented || (this._input.focus(), this.open = !0);
|
|
428
429
|
}
|
|
429
430
|
_onChevronClick() {
|
|
430
|
-
return this.open
|
|
431
|
+
return !this.open || (this.open = !1, !1);
|
|
431
432
|
}
|
|
432
433
|
connectedCallback() {
|
|
433
434
|
super.connectedCallback(), this.values.length || (this.values = this.#E()), this.#O.observe(this._contentArea), this.addEventListener("optgroup-change", this.#k);
|
|
@@ -447,25 +448,25 @@ var H = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
447
448
|
return !e.defaultPrevented && t !== this._input && !this._isFromContextualHelp(e) ? (this._input.focus(), !1) : !0;
|
|
448
449
|
}
|
|
449
450
|
};
|
|
450
|
-
m([o],
|
|
451
|
+
m([o], X.prototype, "appearance", void 0), m([o], X.prototype, "shape", void 0), m([o()], X.prototype, "scale", void 0), m([o({
|
|
451
452
|
mode: "boolean",
|
|
452
453
|
attribute: "fixed-dropdown"
|
|
453
|
-
})],
|
|
454
|
+
})], X.prototype, "fixedDropdown", void 0), m([o], X.prototype, "placeholder", void 0), m([o({ mode: "boolean" })], X.prototype, "open", void 0), m([o({ mode: "boolean" })], X.prototype, "multiple", void 0), m([o({
|
|
454
455
|
attribute: "external-tags",
|
|
455
456
|
mode: "boolean"
|
|
456
|
-
})],
|
|
457
|
+
})], X.prototype, "externalTags", void 0), m([o({
|
|
457
458
|
attribute: "max-lines",
|
|
458
459
|
converter: i
|
|
459
|
-
})],
|
|
460
|
+
})], X.prototype, "maxLines", void 0), m([t], X.prototype, "values", void 0), m([t], X.prototype, "initialValues", void 0), m([t], X.prototype, "_input", void 0), m([t], X.prototype, "_currentSearchText", void 0), m([t], X.prototype, "_slottedElements", void 0), m([t], X.prototype, "_slottedOptions", void 0), m([t], X.prototype, "optionFilter", void 0), m([t], X.prototype, "_filteredOptions", void 0), m([t], X.prototype, "_filteredEnabledOptions", void 0), m([o({ mode: "boolean" })], X.prototype, "loading", void 0), m([t], X.prototype, "_highlightedOptionIndex", void 0), m([t], X.prototype, "_contentArea", void 0), m([t], X.prototype, "_numElidedTags", void 0), m([t], X.prototype, "_tagRows", void 0), m([t], X.prototype, "_lastTagRow", void 0), m([t], X.prototype, "_listbox", void 0), m([o({ mode: "boolean" })], X.prototype, "clearable", void 0), m([o({
|
|
460
461
|
attribute: "max-selected",
|
|
461
462
|
converter: i
|
|
462
|
-
})],
|
|
463
|
+
})], X.prototype, "maxSelected", void 0), m([t], X.prototype, "_slottedDisabledOptions", void 0), m([o({
|
|
463
464
|
attribute: "enable-select-all",
|
|
464
465
|
mode: "boolean"
|
|
465
|
-
})],
|
|
466
|
+
})], X.prototype, "enableSelectAll", void 0), m([o({ attribute: "select-all-text" })], X.prototype, "selectAllText", void 0), m([o({ attribute: "deselect-all-text" })], X.prototype, "deselectAllText", void 0), m([t], X.prototype, "_selectAllOption", void 0), m([t], X.prototype, "_changeDescription", void 0), m([t], X.prototype, "_anchor", void 0);
|
|
466
467
|
//#endregion
|
|
467
468
|
//#region src/lib/searchable-select/option-tag.ts
|
|
468
|
-
var
|
|
469
|
+
var ie = C(["accent", "cta"], "accent"), Z = class extends e(c) {
|
|
469
470
|
constructor(...e) {
|
|
470
471
|
super(...e), this.removable = !1, this.disabled = !1, this.hasIconPlaceholder = !1;
|
|
471
472
|
}
|
|
@@ -473,15 +474,15 @@ var Y = class extends e(c) {
|
|
|
473
474
|
this.$emit("remove", void 0, { bubbles: !1 });
|
|
474
475
|
}
|
|
475
476
|
};
|
|
476
|
-
m([o],
|
|
477
|
+
m([o], Z.prototype, "shape", void 0), m([t], Z.prototype, "connotation", void 0), m([o], Z.prototype, "label", void 0), m([o({ mode: "boolean" })], Z.prototype, "removable", void 0), m([o({ mode: "boolean" })], Z.prototype, "disabled", void 0), m([t], Z.prototype, "hasIconPlaceholder", void 0), m([o()], Z.prototype, "scale", void 0);
|
|
477
478
|
//#endregion
|
|
478
479
|
//#region src/lib/searchable-select/searchable-select.template.ts
|
|
479
|
-
function
|
|
480
|
+
function ae() {
|
|
480
481
|
return s`
|
|
481
482
|
<label for="control" class="label" id="label"> ${(e) => e.label} </label>
|
|
482
483
|
`;
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
+
function oe() {
|
|
485
486
|
return s`
|
|
486
487
|
<span
|
|
487
488
|
id="selection-count"
|
|
@@ -491,8 +492,8 @@ function ie() {
|
|
|
491
492
|
>
|
|
492
493
|
`;
|
|
493
494
|
}
|
|
494
|
-
var
|
|
495
|
-
let n = e.tagFor(
|
|
495
|
+
var Q = (e, t) => {
|
|
496
|
+
let n = e.tagFor(Z);
|
|
496
497
|
return s`
|
|
497
498
|
<div class="tag-wrapper">
|
|
498
499
|
<${n}
|
|
@@ -512,8 +513,8 @@ var Z = (e, t) => {
|
|
|
512
513
|
</${n}>
|
|
513
514
|
</div>
|
|
514
515
|
`;
|
|
515
|
-
},
|
|
516
|
-
let n = e.tagFor(
|
|
516
|
+
}, $ = (e, t) => {
|
|
517
|
+
let n = e.tagFor(Z);
|
|
517
518
|
return s`
|
|
518
519
|
<${n}
|
|
519
520
|
class="tag"
|
|
@@ -526,15 +527,15 @@ var Z = (e, t) => {
|
|
|
526
527
|
</${n}>
|
|
527
528
|
`;
|
|
528
529
|
};
|
|
529
|
-
function
|
|
530
|
-
let t = e.tagFor(
|
|
530
|
+
function se(e) {
|
|
531
|
+
let t = e.tagFor(ne), n = e.tagFor(y), r = te(e), i = T(e), a = Q(e, (e) => e.parent), o = Q(e, (e) => e.parentContext.parent), c = $(e, (e, t) => e), l = $(e, (e, t) => t.parent);
|
|
531
532
|
return s`
|
|
532
533
|
<div
|
|
533
|
-
class="fieldset ${(e) => h(
|
|
534
|
+
class="fieldset ${(e) => h("connotation-accent", `appearance-${G.parse(e.appearance)}`, "with-idle", "with-hover", "with-disabled", "with-readonly", "with-error", "with-success", ["disabled", e.disabled], [`shape-${e.shape}`, !!e.shape], [`size-${e.scale}`, !!e.scale], ["error", !!e.errorValidationMessage], ["success", !!e.successText], ["has-highlighted-option", e._highlightedOptionIndex !== null])}"
|
|
534
535
|
@click="${(e, t) => e._onFieldsetClick(t.event)}"
|
|
535
536
|
${f("_anchor")}
|
|
536
537
|
>
|
|
537
|
-
${(e) => r(e.icon,
|
|
538
|
+
${(e) => r(e.icon, _.Slot)}
|
|
538
539
|
<div class="content-area" ${f("_contentArea")}>
|
|
539
540
|
${u((e) => e._tagRows, s`
|
|
540
541
|
<div class="tag-row">
|
|
@@ -551,7 +552,7 @@ function ae(e) {
|
|
|
551
552
|
id="control"
|
|
552
553
|
class="control"
|
|
553
554
|
autocomplete="off"
|
|
554
|
-
${
|
|
555
|
+
${x({
|
|
555
556
|
role: "combobox",
|
|
556
557
|
ariaAutoComplete: "list",
|
|
557
558
|
ariaHasPopup: "listbox",
|
|
@@ -595,11 +596,11 @@ function ae(e) {
|
|
|
595
596
|
</div>
|
|
596
597
|
`;
|
|
597
598
|
}
|
|
598
|
-
function
|
|
599
|
+
function ce(e) {
|
|
599
600
|
return e.open && e.fixedDropdown ? `--_searchable-select-fixed-width: ${Math.round(e.getBoundingClientRect().width)}px` : null;
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
-
let t = e.tagFor(
|
|
602
|
+
function le(e) {
|
|
603
|
+
let t = e.tagFor(L), n = e.tagFor(U);
|
|
603
604
|
return s`
|
|
604
605
|
<${t}
|
|
605
606
|
data-select-all
|
|
@@ -613,14 +614,14 @@ function se(e) {
|
|
|
613
614
|
<${n} class="divider"></${n}>
|
|
614
615
|
`;
|
|
615
616
|
}
|
|
616
|
-
function
|
|
617
|
-
let t = e.tagFor(
|
|
617
|
+
function ue(e) {
|
|
618
|
+
let t = e.tagFor(D);
|
|
618
619
|
return s`
|
|
619
620
|
<div class="label-wrapper" ?hidden=${(e) => !e.label && !e._hasContextualHelp && !e._hasSelectionCount}>
|
|
620
621
|
${p((e) => e.label || e._hasSelectionCount, s`
|
|
621
622
|
<div>
|
|
622
|
-
${p((e) => e.label,
|
|
623
|
-
${p((e) => e._hasSelectionCount,
|
|
623
|
+
${p((e) => e.label, ae())}
|
|
624
|
+
${p((e) => e._hasSelectionCount, oe())}
|
|
624
625
|
</div>
|
|
625
626
|
`)}
|
|
626
627
|
<slot name="contextual-help" ${d("_contextualHelpSlottedContent")}></slot>
|
|
@@ -629,14 +630,14 @@ function ce(e) {
|
|
|
629
630
|
${(e) => e._changeDescription}
|
|
630
631
|
</span>
|
|
631
632
|
<div>
|
|
632
|
-
${
|
|
633
|
+
${se(e)}
|
|
633
634
|
<div class="popup-wrapper">
|
|
634
635
|
<${t}
|
|
635
636
|
:anchor="${(e) => e._anchor}"
|
|
636
637
|
:open="${(e) => e.open}"
|
|
637
638
|
class="popup"
|
|
638
639
|
placement="bottom-start"
|
|
639
|
-
style="${
|
|
640
|
+
style="${ce}"
|
|
640
641
|
strategy="${(e) => e.fixedDropdown ? "fixed" : "absolute"}">
|
|
641
642
|
<div
|
|
642
643
|
class="listbox"
|
|
@@ -647,10 +648,10 @@ function ce(e) {
|
|
|
647
648
|
@click="${(e, t) => e._onListboxClick(t.event)}"
|
|
648
649
|
@mousedown="${() => !1}"
|
|
649
650
|
>
|
|
650
|
-
${p((e) => e.enableSelectAll && e.multiple && !e.maxSelected,
|
|
651
|
+
${p((e) => e.enableSelectAll && e.multiple && !e.maxSelected, le(e))}
|
|
651
652
|
<slot
|
|
652
653
|
${d({
|
|
653
|
-
filter: ((e) =>
|
|
654
|
+
filter: ((e) => I(e) || z(e)),
|
|
654
655
|
flatten: !0,
|
|
655
656
|
property: "_slottedElements"
|
|
656
657
|
})}>
|
|
@@ -672,22 +673,22 @@ function ce(e) {
|
|
|
672
673
|
</div>
|
|
673
674
|
`;
|
|
674
675
|
}
|
|
675
|
-
var
|
|
676
|
-
let t = e.tagFor(
|
|
676
|
+
var de = (e) => {
|
|
677
|
+
let t = e.tagFor(Z, !0);
|
|
677
678
|
return s`
|
|
678
679
|
<template
|
|
679
680
|
:_optionTagTagName="${() => t}"
|
|
680
681
|
@mousedown="${(e, t) => e._onMouseDown(t.event)}"
|
|
681
682
|
>
|
|
682
683
|
<div class="control-wrapper">
|
|
683
|
-
${
|
|
684
|
+
${ue(e)} ${(t) => t._getFeedbackTemplate(e)}
|
|
684
685
|
</div>
|
|
685
686
|
</template>
|
|
686
687
|
`;
|
|
687
688
|
};
|
|
688
689
|
//#endregion
|
|
689
690
|
//#region src/lib/searchable-select/option-tag.template.ts
|
|
690
|
-
function
|
|
691
|
+
function fe(e) {
|
|
691
692
|
return s`
|
|
692
693
|
<span
|
|
693
694
|
class="remove-button"
|
|
@@ -701,31 +702,34 @@ function $(e) {
|
|
|
701
702
|
`;
|
|
702
703
|
}
|
|
703
704
|
//#endregion
|
|
704
|
-
//#region src/lib/searchable-select/
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
l("option-tag", Y, (e) => {
|
|
710
|
-
let t = e.tagFor(_);
|
|
711
|
-
return s`<span
|
|
712
|
-
class="${(e) => h("base", ["disabled", e.disabled], ["removable", e.removable], [`shape-${e.shape}`, !!e.shape], [`connotation-${e.connotation}`, !!e.connotation], [`size-${e.scale}`, !!e.scale])}"
|
|
705
|
+
//#region src/lib/searchable-select/definition.ts
|
|
706
|
+
var pe = l("option-tag", Z, (e) => {
|
|
707
|
+
let t = e.tagFor(ee);
|
|
708
|
+
return s`<span
|
|
709
|
+
class="${(e) => h("base", ["disabled", e.disabled], ["removable", e.removable], [`shape-${e.shape}`, !!e.shape], `connotation-${ie.parse(e.connotation)}`, [`size-${e.scale}`, !!e.scale])}"
|
|
713
710
|
aria-disabled="${(e) => e.disabled}"
|
|
714
711
|
>
|
|
715
712
|
<slot name="icon" aria-hidden="true">
|
|
716
713
|
${p((e) => e.hasIconPlaceholder, s`<div class="icon-placeholder"></div>`)}
|
|
717
714
|
</slot>
|
|
718
715
|
${p((e) => e.label, (e) => s`<span class="label">${e.label}</span>`)}
|
|
719
|
-
${p((e) => e.removable,
|
|
716
|
+
${p((e) => e.removable, fe(t))}
|
|
720
717
|
</span>`;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
718
|
+
}, [g], {
|
|
719
|
+
styles: [W],
|
|
720
|
+
shadowOptions: { delegatesFocus: !0 }
|
|
721
|
+
}), me = l("searchable-select", X, de, [
|
|
722
|
+
E,
|
|
726
723
|
O,
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
724
|
+
g,
|
|
725
|
+
pe,
|
|
726
|
+
b,
|
|
727
|
+
k,
|
|
728
|
+
R,
|
|
729
|
+
B,
|
|
730
|
+
H
|
|
731
|
+
], { styles: re });
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region src/lib/searchable-select/index.ts
|
|
734
|
+
r(me)();
|
|
731
735
|
//#endregion
|
package/select/definition.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_definition = require("../unbundled/
|
|
2
|
+
const require_definition = require("../unbundled/definition64.cjs");
|
|
3
3
|
exports.VwcSelectElement = require_definition.Select;
|
|
4
4
|
exports.registerSelect = require_definition.registerSelect;
|
|
5
5
|
exports.selectDefinition = require_definition.selectDefinition;
|
package/select/definition.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as selectDefinition, r as Select, t as registerSelect } from "../unbundled/
|
|
1
|
+
import { n as selectDefinition, r as Select, t as registerSelect } from "../unbundled/definition64.js";
|
|
2
2
|
export { Select as VwcSelectElement, registerSelect, selectDefinition };
|
package/select/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(
|
|
1
|
+
require("../bundled/definition19.cjs").t();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_definition = require("../unbundled/
|
|
2
|
+
const require_definition = require("../unbundled/definition67.cjs");
|
|
3
3
|
exports.VwcSelectableBoxElement = require_definition.SelectableBox;
|
|
4
4
|
exports.registerSelectableBox = require_definition.registerSelectableBox;
|
|
5
5
|
exports.selectableBoxDefinition = require_definition.selectableBoxDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as selectableBoxDefinition, r as SelectableBox, t as registerSelectableBox } from "../unbundled/
|
|
1
|
+
import { n as selectableBoxDefinition, r as SelectableBox, t as registerSelectableBox } from "../unbundled/definition67.js";
|
|
2
2
|
export { SelectableBox as VwcSelectableBoxElement, registerSelectableBox, selectableBoxDefinition };
|
package/selectable-box/index.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("../bundled/vivid-element.cjs"),t=require("../bundled/when.cjs"),n=require("../bundled/enums.cjs"),r=require("../bundled/decorate.cjs"),i=require("../bundled/class-names.cjs"),a=require("../bundled/delegates-aria.cjs"),o=require("../bundled/component-enum.cjs"),s=require("../bundled/definition15.cjs"),c=require("../bundled/definition16.cjs");var l=`:host{display:flex}.base{--control-offset:calc(var(--selectable-box-spacing,16px) + 36px);padding:var(--selectable-box-spacing,16px);border:1px solid var(--_appearance-color-outline);background-color:var(--_appearance-color-fill);text-align:start;border-radius:8px;inline-size:100%;position:relative}.base.control-placement-end-stacked,.base.control-placement-start-stacked{padding-block-start:var(--control-offset)}.base.control-placement-start{padding-inline-start:var(--control-offset)}.base.control-placement-end{padding-inline-end:var(--control-offset)}.base: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))}.base.tight{min-height:calc(var(--selectable-box-spacing,16px) * 2 + 22px);padding:0;overflow:hidden}.base.selected{background-color:var(--selectable-box-checked-bg,var(--_appearance-color-fill))}.base.clickable{cursor:pointer}.control{position:absolute;inset-block-start:var(--selectable-box-spacing,16px)}.control.start-stacked,.control.start{inset-inline-start:var(--selectable-box-spacing,16px)}.control.end-stacked,.control.end{inset-inline-end:var(--selectable-box-spacing,16px)}`,u=o.t([`accent`,`cta`],`accent`),d=class extends a.t(e.t){constructor(...e){super(...e),this.checked=!1,this.clickableBox=!1,this.controlPlacement=`end-stacked`,this.tight=!1,this.disabled=!1}_handleCheckedChange(){this.disabled||this.controlType===`radio`&&this.checked||(this.checked=!this.checked,this.clickableBox&&this.$emit(`change`))}_handleKeydown(e){if(this.disabled)return!0;if((e.code===`Space`||e.code===`Enter`)&&this.clickableBox){this._handleCheckedChange();return}return!0}};r.t([e.m({mode:`boolean`})],d.prototype,`checked`,void 0),r.t([e.m({attribute:`clickable-box`,mode:`boolean`})],d.prototype,`clickableBox`,void 0),r.t([e.m],d.prototype,`connotation`,void 0),r.t([e.m({attribute:`control-type`})],d.prototype,`controlType`,void 0),r.t([e.m({attribute:`control-placement`,mode:`fromView`})],d.prototype,`controlPlacement`,void 0),r.t([e.m({mode:`boolean`})],d.prototype,`tight`,void 0),r.t([e.m({mode:`boolean`})],d.prototype,`disabled`,void 0);function f(e){e.clickableBox||e._handleCheckedChange()}function p(r){let i=r.tagFor(s.r);return e.p`${t.t(e=>e.controlType!==`radio`,e.p`
|
|
2
2
|
<${i}
|
|
3
3
|
${a.n({ariaLabel:e=>!e.clickableBox&&e.ariaLabel?e.ariaLabel:null},{onlySpecified:!0})}
|
|
4
|
-
@change="${e=>
|
|
4
|
+
@change="${e=>f(e)}"
|
|
5
5
|
class="control checkbox ${e=>e.controlPlacement}"
|
|
6
6
|
connotation="${e=>e.connotation===`cta`?n.n.CTA:n.n.Accent}"
|
|
7
7
|
:checked="${e=>e.checked}"
|
|
8
8
|
?disabled="${e=>e.disabled}"
|
|
9
9
|
inert="${e=>e.clickableBox?!0:null}"
|
|
10
|
-
></${i}>`)} `}function
|
|
10
|
+
></${i}>`)} `}function m(r){let i=r.tagFor(c.r);return e.p`${t.t(e=>e.controlType===`radio`,e.p`
|
|
11
11
|
<${i}
|
|
12
12
|
${a.n({ariaLabel:e=>!e.clickableBox&&e.ariaLabel?e.ariaLabel:null},{onlySpecified:!0})}
|
|
13
|
-
@change="${e=>
|
|
13
|
+
@change="${e=>f(e)}"
|
|
14
14
|
class="control radio ${e=>e.controlPlacement}"
|
|
15
15
|
connotation="${e=>e.connotation===`cta`?n.n.CTA:n.n.Accent}"
|
|
16
16
|
:checked="${e=>e.checked}"
|
|
17
17
|
?disabled="${e=>e.disabled}"
|
|
18
18
|
inert="${e=>e.clickableBox?!0:null}"
|
|
19
|
-
></${i}>`)} `}var
|
|
19
|
+
></${i}>`)} `}var h=e.u(`selectable-box`,d,t=>e.p`<template>
|
|
20
20
|
<div
|
|
21
|
-
class="${e=>i.t(`base
|
|
21
|
+
class="${e=>i.t(`base`,`connotation-${u.parse(e.connotation)}`,`appearance-duotone`,`with-idle`,`with-hover`,`with-selected`,`with-selectedAndHover`,`with-disabled`,[`tight`,e.tight],[`selected`,e.checked],[`clickable`,e.clickableBox],[`readonly`,!e.clickableBox],[`control-placement-${e.controlPlacement}`,!!e.controlPlacement],[`disabled`,e.disabled])}"
|
|
22
22
|
tabindex="${e=>e.clickableBox&&!e.disabled?`0`:null}"
|
|
23
23
|
${a.n({role:e=>e.clickableBox?`button`:null,ariaPressed:e=>e.clickableBox?e.checked?`true`:`false`:null,ariaLabel:e=>e.clickableBox?e.ariaLabel:null,ariaDisabled:e=>e.clickableBox&&e.disabled?`true`:null})}
|
|
24
24
|
@keydown="${(e,t)=>e._handleKeydown(t.event)}"
|
|
25
25
|
@click="${e=>e.clickableBox?e._handleCheckedChange():null}"
|
|
26
26
|
>
|
|
27
|
-
${
|
|
27
|
+
${p(t)} ${m(t)}
|
|
28
28
|
<slot></slot>
|
|
29
29
|
</div>
|
|
30
|
-
</template>`,[
|
|
30
|
+
</template>`,[s.t,c.t],{styles:l,shadowOptions:{delegatesFocus:!0}});e.d(h)();
|