@vonage/vivid 5.0.0 → 5.2.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/{shared/definition2.cjs → accordion/definition.cjs} +20 -20
- package/{shared/definition2.js → accordion/definition.js} +5 -7
- package/accordion/index.cjs +5 -5
- package/accordion/index.js +129 -3
- package/accordion-item/definition.cjs +145 -0
- package/accordion-item/definition.js +139 -0
- package/accordion-item/index.cjs +1 -5
- package/accordion-item/index.js +2 -3
- package/{shared/definition3.cjs → action-group/definition.cjs} +12 -9
- package/{shared/definition3.js → action-group/definition.js} +5 -4
- package/action-group/index.cjs +6 -5
- package/action-group/index.js +49 -3
- package/{shared/definition4.cjs → alert/definition.cjs} +33 -31
- package/{shared/definition4.js → alert/definition.js} +11 -11
- package/alert/index.cjs +30 -5
- package/alert/index.js +158 -3
- package/{shared/definition5.cjs → audio-player/definition.cjs} +95 -61
- package/{shared/definition5.js → audio-player/definition.js} +48 -16
- package/audio-player/index.cjs +68 -4
- package/audio-player/index.js +333 -2
- package/{shared/definition6.cjs → avatar/definition.cjs} +28 -26
- package/{shared/definition6.js → avatar/definition.js} +7 -7
- package/avatar/index.cjs +18 -5
- package/avatar/index.js +93 -3
- package/{shared/definition7.cjs → badge/definition.cjs} +18 -16
- package/{shared/definition7.js → badge/definition.js} +6 -6
- package/badge/index.cjs +4 -5
- package/badge/index.js +66 -3
- package/{shared/definition8.cjs → banner/definition.cjs} +26 -25
- package/{shared/definition8.js → banner/definition.js} +10 -11
- package/banner/index.cjs +29 -4
- package/banner/index.js +128 -2
- package/{shared/definition10.cjs → breadcrumb/definition.cjs} +11 -9
- package/{shared/definition10.js → breadcrumb/definition.js} +5 -5
- package/breadcrumb/index.cjs +12 -5
- package/breadcrumb/index.js +69 -3
- package/{shared/definition9.cjs → breadcrumb-item/definition.cjs} +18 -15
- package/{shared/definition9.js → breadcrumb-item/definition.js} +7 -7
- package/breadcrumb-item/index.cjs +5 -5
- package/breadcrumb-item/index.js +33 -3
- package/bundled/_has.cjs +1 -0
- package/bundled/_has.js +34 -0
- package/bundled/affix.cjs +13 -0
- package/bundled/affix.js +63 -0
- package/bundled/anchored.cjs +4 -0
- package/bundled/anchored.js +67 -0
- package/bundled/aria.cjs +1 -0
- package/bundled/aria.js +7 -0
- package/bundled/attribute-binding-behaviour.cjs +1 -0
- package/bundled/attribute-binding-behaviour.js +27 -0
- package/bundled/base-progress.cjs +1 -0
- package/bundled/base-progress.js +57 -0
- package/bundled/breadcrumb-item.cjs +1 -0
- package/bundled/breadcrumb-item.js +21 -0
- package/bundled/button.cjs +1 -0
- package/bundled/button.js +106 -0
- package/bundled/calendar-event.cjs +1 -0
- package/bundled/calendar-event.js +34 -0
- package/bundled/calendar-picker.template.cjs +148 -0
- package/bundled/calendar-picker.template.js +3371 -0
- package/bundled/char-count.cjs +13 -0
- package/bundled/char-count.js +54 -0
- package/bundled/children.cjs +1 -0
- package/bundled/children.js +38 -0
- package/bundled/class-names.cjs +1 -0
- package/bundled/class-names.js +9 -0
- package/bundled/definition.cjs +39 -0
- package/bundled/definition.js +122 -0
- package/bundled/definition10.cjs +19 -0
- package/bundled/definition10.js +73 -0
- package/bundled/definition11.cjs +10 -0
- package/bundled/definition11.js +44 -0
- package/bundled/definition12.cjs +1 -0
- package/bundled/definition12.js +20 -0
- package/bundled/definition13.cjs +73 -0
- package/bundled/definition13.js +359 -0
- package/bundled/definition14.cjs +5 -0
- package/bundled/definition14.js +29 -0
- package/bundled/definition15.cjs +30 -0
- package/bundled/definition15.js +80 -0
- package/bundled/definition16.cjs +19 -0
- package/bundled/definition16.js +103 -0
- package/bundled/definition17.cjs +13 -0
- package/bundled/definition17.js +137 -0
- package/bundled/definition18.cjs +12 -0
- package/bundled/definition18.js +94 -0
- package/bundled/definition19.cjs +70 -0
- package/bundled/definition19.js +674 -0
- package/bundled/definition2.cjs +20 -0
- package/bundled/definition2.js +180 -0
- package/bundled/definition20.cjs +20 -0
- package/bundled/definition20.js +106 -0
- package/bundled/definition21.cjs +5 -0
- package/bundled/definition21.js +19 -0
- package/bundled/definition22.cjs +24 -0
- package/bundled/definition22.js +151 -0
- package/bundled/definition3.cjs +29 -0
- package/bundled/definition3.js +195 -0
- package/bundled/definition4.cjs +6 -0
- package/bundled/definition4.js +42 -0
- package/bundled/definition5.cjs +1 -0
- package/bundled/definition5.js +345 -0
- package/bundled/definition6.cjs +31 -0
- package/bundled/definition6.js +268 -0
- package/bundled/definition7.cjs +30 -0
- package/bundled/definition7.js +288 -0
- package/bundled/definition8.cjs +19 -0
- package/bundled/definition8.js +145 -0
- package/bundled/definition9.cjs +14 -0
- package/bundled/definition9.js +1406 -0
- package/bundled/delegates-aria.cjs +1 -0
- package/bundled/delegates-aria.js +77 -0
- package/bundled/divider.cjs +1 -0
- package/bundled/divider.js +34 -0
- package/bundled/dom.cjs +1 -0
- package/bundled/dom.js +6 -0
- package/bundled/enums.cjs +1 -0
- package/bundled/enums.js +9 -0
- package/bundled/form-associated.cjs +1 -0
- package/bundled/form-associated.js +320 -0
- package/bundled/form-element.cjs +1 -0
- package/bundled/form-element.js +56 -0
- package/bundled/host-semantics.cjs +1 -0
- package/bundled/host-semantics.js +57 -0
- package/bundled/index.cjs +1 -0
- package/bundled/index.js +6 -0
- package/bundled/key-codes.cjs +1 -0
- package/bundled/key-codes.js +16 -0
- package/bundled/linkable.cjs +15 -0
- package/bundled/linkable.js +49 -0
- package/bundled/listbox.cjs +1 -0
- package/bundled/listbox.js +345 -0
- package/bundled/localized.cjs +1 -0
- package/bundled/localized.js +460 -0
- package/bundled/mixins.cjs +33 -0
- package/bundled/mixins.js +226 -0
- package/bundled/numbers.cjs +1 -0
- package/bundled/numbers.js +14 -0
- package/bundled/option.cjs +1 -0
- package/bundled/option.js +158 -0
- package/bundled/picker-field.template.cjs +67 -0
- package/bundled/picker-field.template.js +242 -0
- package/bundled/playbackRates.cjs +1 -0
- package/bundled/playbackRates.js +11 -0
- package/bundled/ref.cjs +1 -0
- package/bundled/ref.js +32 -0
- package/bundled/repeat.cjs +1 -0
- package/bundled/repeat.js +341 -0
- package/bundled/scrollIntoView.cjs +1 -0
- package/bundled/scrollIntoView.js +33 -0
- package/bundled/single-date-picker.cjs +1 -0
- package/bundled/single-date-picker.js +39 -0
- package/bundled/single-value-picker.cjs +1 -0
- package/bundled/single-value-picker.js +87 -0
- package/bundled/slider.template.cjs +41 -0
- package/bundled/slider.template.js +100 -0
- package/bundled/slotted.cjs +1 -0
- package/bundled/slotted.js +81 -0
- package/bundled/strings.cjs +1 -0
- package/bundled/strings.js +7 -0
- package/bundled/text-field.cjs +1 -0
- package/bundled/text-field.js +4 -0
- package/bundled/time-selection-picker.template.cjs +46 -0
- package/bundled/time-selection-picker.template.js +575 -0
- package/bundled/vivid-element.cjs +1 -0
- package/bundled/vivid-element.js +1761 -0
- package/bundled/when.cjs +1 -0
- package/bundled/when.js +11 -0
- package/bundled/with-contextual-help.cjs +1 -0
- package/bundled/with-contextual-help.js +32 -0
- package/bundled/with-error-text.cjs +1 -0
- package/bundled/with-error-text.js +39 -0
- package/bundled/with-success-text.cjs +1 -0
- package/bundled/with-success-text.js +16 -0
- package/button/definition.cjs +14 -0
- package/button/definition.js +4 -0
- package/button/index.cjs +1 -5
- package/button/index.js +2 -3
- package/{shared/definition13.cjs → calendar/definition.cjs} +27 -449
- package/{shared/definition13.js → calendar/definition.js} +7 -431
- package/calendar/index.cjs +53 -5
- package/calendar/index.js +431 -3
- package/{shared/definition12.cjs → calendar-event/definition.cjs} +12 -9
- package/{shared/definition12.js → calendar-event/definition.js} +6 -6
- package/calendar-event/index.cjs +9 -5
- package/calendar-event/index.js +43 -3
- package/card/definition.cjs +186 -0
- package/{shared/definition14.js → card/definition.js} +10 -11
- package/card/index.cjs +47 -5
- package/card/index.js +163 -3
- package/{shared/definition15.cjs → checkbox/definition.cjs} +30 -29
- package/{shared/definition15.js → checkbox/definition.js} +12 -13
- package/checkbox/index.cjs +1 -5
- package/checkbox/index.js +2 -3
- package/{shared/definition16.cjs → combobox/definition.cjs} +61 -56
- package/{shared/definition16.js → combobox/definition.js} +30 -27
- package/combobox/index.cjs +69 -5
- package/combobox/index.js +519 -3
- package/contextual-help/definition.cjs +62 -0
- package/contextual-help/definition.js +57 -0
- package/contextual-help/index.cjs +1 -0
- package/contextual-help/index.js +2 -0
- package/custom-elements.json +2504 -335
- package/{shared/definition17.cjs → data-grid/definition.cjs} +111 -121
- package/{shared/definition17.js → data-grid/definition.js} +11 -23
- package/data-grid/index.cjs +81 -5
- package/data-grid/index.js +1011 -3
- package/{shared/definition18.cjs → date-picker/definition.cjs} +20 -17
- package/{shared/definition18.js → date-picker/definition.js} +12 -11
- package/date-picker/index.cjs +1 -5
- package/date-picker/index.js +115 -3
- package/{shared/definition19.cjs → date-range-picker/definition.cjs} +26 -23
- package/{shared/definition19.js → date-range-picker/definition.js} +10 -9
- package/date-range-picker/index.cjs +1 -5
- package/date-range-picker/index.js +335 -3
- package/{shared/definition20.cjs → date-time-picker/definition.cjs} +27 -24
- package/{shared/definition20.js → date-time-picker/definition.js} +13 -12
- package/date-time-picker/index.cjs +8 -5
- package/date-time-picker/index.js +216 -3
- package/{shared/definition21.cjs → dial-pad/definition.cjs} +89 -40
- package/{shared/definition21.js → dial-pad/definition.js} +60 -13
- package/dial-pad/index.cjs +57 -5
- package/dial-pad/index.js +245 -3
- package/{shared/definition22.cjs → dialog/definition.cjs} +48 -47
- package/{shared/definition22.js → dialog/definition.js} +10 -11
- package/dialog/index.cjs +44 -5
- package/dialog/index.js +257 -3
- package/{shared/definition23.cjs → divider/definition.cjs} +10 -6
- package/{shared/definition23.js → divider/definition.js} +6 -5
- package/divider/index.cjs +1 -5
- package/divider/index.js +2 -3
- package/elevation/definition.cjs +11 -0
- package/elevation/definition.js +2 -0
- package/elevation/index.cjs +1 -5
- package/elevation/index.js +2 -3
- package/empty-state/definition.cjs +81 -0
- package/empty-state/definition.js +75 -0
- package/empty-state/index.cjs +14 -5
- package/empty-state/index.js +64 -3
- package/fab/definition.cjs +105 -0
- package/fab/definition.js +99 -0
- package/fab/index.cjs +20 -5
- package/fab/index.js +86 -3
- package/file-picker/definition.cjs +519 -0
- package/file-picker/definition.js +513 -0
- package/file-picker/index.cjs +61 -5
- package/file-picker/index.js +391 -3
- package/{shared/definition27.cjs → header/definition.cjs} +14 -11
- package/{shared/definition27.js → header/definition.js} +6 -5
- package/header/index.cjs +19 -5
- package/header/index.js +57 -3
- package/{shared/definition28.cjs → icon/definition.cjs} +25 -149
- package/{shared/definition28.js → icon/definition.js} +6 -132
- package/icon/index.cjs +1 -5
- package/icon/index.js +2 -3
- package/index.cjs +268 -264
- package/index.js +72 -71
- package/{shared/definition29.cjs → layout/definition.cjs} +13 -10
- package/{shared/definition29.js → layout/definition.js} +4 -3
- package/layout/index.cjs +3 -5
- package/layout/index.js +52 -3
- package/lib/accordion-item/accordion-item.d.ts +0 -1
- package/lib/action-group/action-group.d.ts +0 -1
- package/lib/alert/alert.d.ts +0 -2
- package/lib/audio-player/audio-player.d.ts +4 -1
- package/lib/avatar/avatar.d.ts +0 -1
- package/lib/badge/badge.d.ts +0 -1
- package/lib/banner/banner.d.ts +0 -3
- package/lib/breadcrumb/breadcrumb.d.ts +0 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +0 -1
- package/lib/button/button.d.ts +1 -3
- package/lib/calendar-event/calendar-event.d.ts +0 -1
- package/lib/card/card.d.ts +0 -1
- package/lib/checkbox/checkbox.d.ts +0 -6
- package/lib/combobox/combobox.d.ts +483 -72
- package/lib/components.d.ts +1 -0
- package/lib/contextual-help/contextual-help.d.ts +5 -0
- package/lib/contextual-help/contextual-help.template.d.ts +3 -0
- package/lib/contextual-help/definition.d.ts +1 -0
- package/lib/data-grid/data-grid-cell.d.ts +0 -2
- package/lib/data-grid/data-grid-row.d.ts +0 -1
- package/lib/date-picker/date-picker.d.ts +892 -888
- package/lib/date-range-picker/date-range-picker.d.ts +590 -588
- package/lib/date-time-picker/date-time-picker.d.ts +893 -889
- package/lib/dial-pad/dial-pad.d.ts +0 -1
- package/lib/dial-pad/dial-pad.template.d.ts +1 -1
- package/lib/dial-pad/locale.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +0 -2
- package/lib/divider/divider.d.ts +0 -1
- package/lib/fab/fab.d.ts +1 -1
- package/lib/file-picker/accept.d.ts +1 -0
- package/lib/file-picker/data-transfer.d.ts +1 -0
- package/lib/file-picker/file-picker.d.ts +490 -91
- package/lib/header/header.d.ts +0 -1
- package/lib/menu/menu.d.ts +1 -2
- package/lib/menu-item/menu-item.d.ts +0 -2
- package/lib/nav/nav.d.ts +0 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +0 -2
- package/lib/nav-item/nav-item.d.ts +0 -2
- package/lib/note/note.d.ts +0 -1
- package/lib/number-field/number-field.d.ts +505 -96
- package/lib/option/option.d.ts +1 -2
- package/lib/pagination/pagination.d.ts +0 -1
- package/lib/progress/progress.d.ts +0 -1
- package/lib/progress-ring/progress-ring.d.ts +0 -1
- package/lib/radio/radio.d.ts +0 -3
- package/lib/radio-group/radio-group.d.ts +0 -1
- package/lib/range-slider/range-slider.d.ts +0 -3
- package/lib/rich-text-editor/menubar/menubar.d.ts +0 -1
- package/lib/rich-text-editor/rich-text-editor.d.ts +0 -1
- package/lib/searchable-select/option-tag.d.ts +0 -1
- package/lib/searchable-select/searchable-select.d.ts +505 -96
- package/lib/select/select.d.ts +470 -60
- package/lib/selectable-box/selectable-box.d.ts +0 -1
- package/lib/simple-color-picker/definition.d.ts +4 -0
- package/lib/simple-color-picker/locale.d.ts +4 -0
- package/lib/simple-color-picker/simple-color-picker.d.ts +1600 -0
- package/lib/simple-color-picker/simple-color-picker.template.d.ts +3 -0
- package/lib/slider/slider.d.ts +0 -3
- package/lib/split-button/split-button.d.ts +2 -3
- package/lib/switch/switch.d.ts +0 -2
- package/lib/tab/tab.d.ts +0 -3
- package/lib/tab-panel/tab-panel.d.ts +0 -1
- package/lib/tag/tag.d.ts +0 -3
- package/lib/tag-group/tag-group.d.ts +0 -1
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-area/text-area.d.ts +494 -84
- package/lib/text-field/text-field.d.ts +505 -96
- package/lib/time-picker/time-picker.d.ts +571 -569
- package/lib/toggletip/toggletip.d.ts +0 -2
- package/lib/tooltip/tooltip.d.ts +0 -1
- package/lib/tree-item/tree-item.d.ts +0 -2
- package/lib/tree-view/tree-view.d.ts +0 -1
- package/lib/video-player/video-player.d.ts +0 -1
- package/locales/de-DE.cjs +13 -1
- package/locales/de-DE.js +13 -1
- package/locales/en-GB.cjs +13 -1
- package/locales/en-GB.js +13 -1
- package/locales/en-US.cjs +13 -1
- package/locales/en-US.js +13 -1
- package/locales/ja-JP.cjs +13 -1
- package/locales/ja-JP.js +13 -1
- package/locales/zh-CN.cjs +13 -1
- package/locales/zh-CN.js +13 -1
- package/{shared/definition31.cjs → menu/definition.cjs} +46 -42
- package/{shared/definition31.js → menu/definition.js} +16 -14
- package/menu/index.cjs +1 -5
- package/menu/index.js +2 -3
- package/menu-item/definition.cjs +14 -0
- package/menu-item/definition.js +3 -0
- package/menu-item/index.cjs +1 -5
- package/menu-item/index.js +2 -3
- package/{shared/definition34.cjs → nav/definition.cjs} +7 -4
- package/{shared/definition34.js → nav/definition.js} +4 -3
- package/nav/index.cjs +5 -5
- package/nav/index.js +13 -3
- package/nav-disclosure/definition.cjs +122 -0
- package/nav-disclosure/definition.js +116 -0
- package/nav-disclosure/index.cjs +16 -5
- package/nav-disclosure/index.js +96 -3
- package/{shared/definition33.cjs → nav-item/definition.cjs} +19 -16
- package/{shared/definition33.js → nav-item/definition.js} +9 -8
- package/nav-item/index.cjs +2 -5
- package/nav-item/index.js +59 -3
- package/{shared/definition35.cjs → note/definition.cjs} +15 -13
- package/{shared/definition35.js → note/definition.js} +6 -6
- package/note/index.cjs +9 -5
- package/note/index.js +44 -3
- package/{shared/definition36.cjs → number-field/definition.cjs} +66 -60
- package/{shared/definition36.js → number-field/definition.js} +31 -27
- package/number-field/index.cjs +60 -5
- package/number-field/index.js +370 -3
- package/option/definition.cjs +84 -0
- package/option/definition.js +78 -0
- package/option/index.cjs +1 -5
- package/option/index.js +2 -3
- package/package.json +15 -4
- package/{shared/definition38.cjs → pagination/definition.cjs} +31 -33
- package/{shared/definition38.js → pagination/definition.js} +7 -11
- package/pagination/index.cjs +43 -5
- package/pagination/index.js +194 -3
- package/popup/definition.cjs +13 -0
- package/popup/definition.js +4 -0
- package/popup/index.cjs +1 -5
- package/popup/index.js +2 -3
- package/{shared/definition40.cjs → progress/definition.cjs} +17 -15
- package/{shared/definition40.js → progress/definition.js} +6 -6
- package/progress/index.cjs +17 -5
- package/progress/index.js +69 -3
- package/{shared/definition39.cjs → progress-ring/definition.cjs} +17 -15
- package/{shared/definition39.js → progress-ring/definition.js} +7 -7
- package/progress-ring/index.cjs +1 -5
- package/progress-ring/index.js +2 -3
- package/{shared/definition42.cjs → radio/definition.cjs} +20 -19
- package/{shared/definition42.js → radio/definition.js} +8 -9
- package/radio/index.cjs +1 -5
- package/radio/index.js +2 -3
- package/{shared/definition41.cjs → radio-group/definition.cjs} +31 -30
- package/{shared/definition41.js → radio-group/definition.js} +8 -9
- package/radio-group/index.cjs +23 -5
- package/radio-group/index.js +255 -3
- package/{shared/definition43.cjs → range-slider/definition.cjs} +62 -61
- package/{shared/definition43.js → range-slider/definition.js} +13 -14
- package/range-slider/index.cjs +68 -5
- package/range-slider/index.js +456 -3
- package/rich-text-editor/definition.cjs +1206 -0
- package/rich-text-editor/definition.js +1200 -0
- package/rich-text-editor/index.cjs +133 -4
- package/rich-text-editor/index.js +10386 -2
- package/{shared/definition45.cjs → searchable-select/definition.cjs} +142 -130
- package/{shared/definition45.js → searchable-select/definition.js} +51 -41
- package/searchable-select/index.cjs +167 -5
- package/searchable-select/index.js +1034 -3
- package/{shared/definition46.cjs → select/definition.cjs} +92 -87
- package/{shared/definition46.js → select/definition.js} +32 -29
- package/select/index.cjs +1 -5
- package/select/index.js +2 -3
- package/{shared/definition47.cjs → selectable-box/definition.cjs} +26 -24
- package/{shared/definition47.js → selectable-box/definition.js} +9 -9
- package/selectable-box/index.cjs +28 -5
- package/selectable-box/index.js +136 -3
- package/shared/aria/aria-mixin.d.ts +0 -1
- package/shared/aria/delegates-aria.d.ts +0 -1
- package/shared/aria/host-semantics.d.ts +0 -1
- package/shared/color-picker/index.d.ts +2 -0
- package/shared/color-picker/types.d.ts +4 -0
- package/shared/color-picker/utils.d.ts +3 -0
- package/shared/feedback/feedback-message.d.ts +0 -1
- package/shared/feedback/mixins.d.ts +0 -2
- package/shared/foundation/button/button.d.ts +0 -2
- package/shared/foundation/form-associated/form-associated.d.ts +0 -2
- package/shared/foundation/vivid-element/vivid-element.d.ts +0 -1
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/patterns/affix.d.ts +0 -2
- package/shared/patterns/anchored.d.ts +0 -2
- package/shared/patterns/char-count/char-count.d.ts +0 -1
- package/shared/patterns/form-elements/form-element.d.ts +0 -2
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/form-elements/with-contextual-help.d.ts +1239 -0
- package/shared/patterns/form-elements/with-error-text.d.ts +0 -3
- package/shared/patterns/form-elements/with-success-text.d.ts +0 -1
- package/shared/patterns/linkable.d.ts +0 -1
- package/shared/patterns/localized.d.ts +0 -1
- package/shared/patterns/trapped-focus.d.ts +0 -1
- package/shared/picker-field/mixins/calendar-picker.d.ts +452 -451
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +452 -451
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +0 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +594 -592
- package/shared/picker-field/mixins/single-date-picker.d.ts +734 -731
- package/shared/picker-field/mixins/single-value-picker.d.ts +449 -448
- package/shared/picker-field/mixins/time-selection-picker.d.ts +571 -569
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +571 -569
- package/shared/picker-field/picker-field.d.ts +483 -72
- package/{shared/definition48.cjs → side-drawer/definition.cjs} +16 -14
- package/{shared/definition48.js → side-drawer/definition.js} +5 -5
- package/side-drawer/index.cjs +17 -3
- package/side-drawer/index.js +100 -2
- package/simple-color-picker/definition.cjs +398 -0
- package/simple-color-picker/definition.js +392 -0
- package/simple-color-picker/index.cjs +31 -0
- package/simple-color-picker/index.js +250 -0
- package/{shared/definition49.cjs → slider/definition.cjs} +46 -53
- package/{shared/definition49.js → slider/definition.js} +11 -20
- package/slider/index.cjs +1 -5
- package/slider/index.js +2 -3
- package/split-button/definition.cjs +176 -0
- package/split-button/definition.js +170 -0
- package/split-button/index.cjs +26 -5
- package/split-button/index.js +149 -3
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/{shared/definition51.cjs → switch/definition.cjs} +20 -19
- package/{shared/definition51.js → switch/definition.js} +8 -9
- package/switch/index.cjs +16 -5
- package/switch/index.js +102 -3
- package/tab/definition.cjs +127 -0
- package/tab/definition.js +121 -0
- package/tab/index.cjs +1 -5
- package/tab/index.js +2 -3
- package/{shared/definition52.cjs → tab-panel/definition.cjs} +7 -4
- package/{shared/definition52.js → tab-panel/definition.js} +4 -3
- package/tab-panel/index.cjs +1 -5
- package/tab-panel/index.js +2 -3
- package/{shared/definition54.cjs → tabs/definition.cjs} +46 -39
- package/{shared/definition54.js → tabs/definition.js} +18 -13
- package/tabs/index.cjs +31 -5
- package/tabs/index.js +321 -3
- package/tag/definition.cjs +156 -0
- package/tag/definition.js +150 -0
- package/tag/index.cjs +19 -5
- package/tag/index.js +118 -3
- package/{shared/definition55.cjs → tag-group/definition.cjs} +9 -6
- package/{shared/definition55.js → tag-group/definition.js} +5 -4
- package/tag-group/index.cjs +8 -5
- package/tag-group/index.js +26 -3
- package/{shared/definition57.cjs → text-area/definition.cjs} +62 -42
- package/{shared/definition57.js → text-area/definition.js} +38 -20
- package/text-area/index.cjs +41 -5
- package/text-area/index.js +293 -3
- package/{shared/definition58.cjs → text-field/definition.cjs} +70 -52
- package/{shared/definition58.js → text-field/definition.js} +40 -24
- package/text-field/index.cjs +1 -5
- package/text-field/index.js +2 -3
- package/time-picker/definition.cjs +43 -0
- package/{shared/definition59.js → time-picker/definition.js} +9 -8
- package/time-picker/index.cjs +1 -5
- package/time-picker/index.js +29 -3
- package/{shared/definition60.cjs → toggletip/definition.cjs} +20 -18
- package/{shared/definition60.js → toggletip/definition.js} +8 -8
- package/toggletip/index.cjs +1 -5
- package/toggletip/index.js +2 -3
- package/{shared/definition61.cjs → tooltip/definition.cjs} +16 -13
- package/{shared/definition61.js → tooltip/definition.js} +7 -6
- package/tooltip/index.cjs +1 -5
- package/tooltip/index.js +2 -3
- package/tree-item/definition.cjs +13 -0
- package/tree-item/definition.js +3 -0
- package/tree-item/index.cjs +1 -5
- package/tree-item/index.js +2 -3
- package/{shared/definition63.cjs → tree-view/definition.cjs} +41 -42
- package/{shared/definition63.js → tree-view/definition.js} +6 -9
- package/tree-view/index.cjs +13 -5
- package/tree-view/index.js +171 -3
- package/{shared → unbundled}/affix.cjs +10 -11
- package/{shared → unbundled}/affix.js +2 -3
- package/{shared → unbundled}/anchored.cjs +7 -8
- package/{shared → unbundled}/anchored.js +1 -2
- package/{shared → unbundled}/attribute-binding-behaviour.cjs +3 -3
- package/{shared → unbundled}/attribute-binding-behaviour.js +1 -1
- package/{shared → unbundled}/base-progress.cjs +6 -5
- package/{shared → unbundled}/base-progress.js +2 -1
- package/{shared → unbundled}/breadcrumb-item.cjs +3 -2
- package/{shared → unbundled}/breadcrumb-item.js +2 -1
- package/{shared → unbundled}/button.cjs +10 -9
- package/{shared → unbundled}/button.js +2 -1
- package/{shared → unbundled}/calendar-event.cjs +8 -7
- package/{shared → unbundled}/calendar-event.js +2 -1
- package/unbundled/calendar-picker.template.cjs +917 -0
- package/unbundled/calendar-picker.template.js +906 -0
- package/{shared → unbundled}/char-count.cjs +6 -7
- package/{shared → unbundled}/char-count.js +2 -3
- package/unbundled/definition.cjs +225 -0
- package/unbundled/definition.js +220 -0
- package/{shared/definition30.cjs → unbundled/definition2.cjs} +41 -42
- package/{shared/definition30.js → unbundled/definition2.js} +6 -7
- package/unbundled/definition3.cjs +207 -0
- package/{shared/definition62.js → unbundled/definition3.js} +5 -9
- package/unbundled/definition4.cjs +298 -0
- package/unbundled/definition4.js +293 -0
- package/{shared/definition65.cjs → unbundled/definition5.cjs} +7 -6
- package/{shared/definition65.js → unbundled/definition5.js} +3 -2
- package/{shared → unbundled}/delegates-aria.cjs +4 -3
- package/{shared → unbundled}/delegates-aria.js +2 -1
- package/{shared → unbundled}/divider.cjs +5 -4
- package/{shared → unbundled}/divider.js +3 -2
- package/{shared → unbundled}/form-associated.cjs +13 -13
- package/{shared → unbundled}/form-associated.js +2 -2
- package/{shared → unbundled}/form-element.cjs +3 -3
- package/{shared → unbundled}/form-element.js +1 -1
- package/{shared → unbundled}/host-semantics.cjs +2 -1
- package/{shared → unbundled}/host-semantics.js +2 -1
- package/unbundled/key-codes.cjs +10 -0
- package/unbundled/key-codes.js +7 -0
- package/{shared → unbundled}/linkable.cjs +11 -12
- package/{shared → unbundled}/linkable.js +1 -2
- package/{shared → unbundled}/listbox.cjs +21 -37
- package/{shared → unbundled}/listbox.js +3 -19
- package/{shared → unbundled}/localized.cjs +2 -2
- package/{shared → unbundled}/localized.js +1 -1
- package/{shared → unbundled}/mixins.cjs +27 -83
- package/{shared → unbundled}/mixins.js +6 -62
- package/{shared → unbundled}/option.cjs +29 -17
- package/{shared → unbundled}/option.js +14 -2
- package/{shared → unbundled}/picker-field.template.cjs +32 -24
- package/{shared → unbundled}/picker-field.template.js +18 -10
- package/{shared → unbundled}/slider.template.cjs +15 -19
- package/{shared → unbundled}/slider.template.js +3 -7
- package/unbundled/text-field.cjs +5 -0
- package/unbundled/text-field.js +3 -0
- package/{shared → unbundled}/time-selection-picker.template.cjs +28 -30
- package/{shared → unbundled}/time-selection-picker.template.js +4 -6
- package/unbundled/vivid-element.cjs +283 -0
- package/unbundled/vivid-element.js +274 -0
- package/unbundled/with-contextual-help.cjs +40 -0
- package/unbundled/with-contextual-help.js +38 -0
- package/{shared → unbundled}/with-error-text.cjs +2 -2
- package/{shared → unbundled}/with-error-text.js +1 -1
- package/{shared → unbundled}/with-success-text.cjs +2 -2
- package/{shared → unbundled}/with-success-text.js +1 -1
- package/video-player/definition.cjs +536 -0
- package/video-player/definition.js +530 -0
- package/video-player/index.cjs +536 -3
- package/video-player/index.js +35912 -2
- package/{shared/definition66.cjs → visually-hidden/definition.cjs} +6 -3
- package/{shared/definition66.js → visually-hidden/definition.js} +3 -2
- package/visually-hidden/index.cjs +1 -5
- package/visually-hidden/index.js +2 -3
- package/vivid.api.json +722 -799
- package/shared/_has.cjs +0 -58
- package/shared/_has.js +0 -54
- package/shared/aria.cjs +0 -11
- package/shared/aria.js +0 -9
- package/shared/calendar-picker.template.cjs +0 -6377
- package/shared/calendar-picker.template.js +0 -6366
- package/shared/children.cjs +0 -61
- package/shared/children.js +0 -59
- package/shared/class-names.cjs +0 -17
- package/shared/class-names.js +0 -15
- package/shared/definition.cjs +0 -145
- package/shared/definition.js +0 -141
- package/shared/definition11.cjs +0 -220
- package/shared/definition11.js +0 -215
- package/shared/definition14.cjs +0 -185
- package/shared/definition24.cjs +0 -80
- package/shared/definition24.js +0 -76
- package/shared/definition25.cjs +0 -90
- package/shared/definition25.js +0 -86
- package/shared/definition26.cjs +0 -2549
- package/shared/definition26.js +0 -2545
- package/shared/definition32.cjs +0 -120
- package/shared/definition32.js +0 -116
- package/shared/definition37.cjs +0 -71
- package/shared/definition37.js +0 -68
- package/shared/definition44.cjs +0 -14666
- package/shared/definition44.js +0 -14662
- package/shared/definition50.cjs +0 -148
- package/shared/definition50.js +0 -144
- package/shared/definition53.cjs +0 -124
- package/shared/definition53.js +0 -120
- package/shared/definition56.cjs +0 -154
- package/shared/definition56.js +0 -150
- package/shared/definition59.cjs +0 -39
- package/shared/definition62.cjs +0 -211
- package/shared/definition64.cjs +0 -69579
- package/shared/definition64.js +0 -69575
- package/shared/definition67.cjs +0 -2227
- package/shared/definition67.js +0 -2222
- package/shared/dom.cjs +0 -10
- package/shared/dom.js +0 -8
- package/shared/key-codes.cjs +0 -32
- package/shared/key-codes.js +0 -18
- package/shared/numbers.cjs +0 -38
- package/shared/numbers.js +0 -34
- package/shared/ref.cjs +0 -43
- package/shared/ref.js +0 -41
- package/shared/repeat.cjs +0 -767
- package/shared/repeat.js +0 -764
- package/shared/slotted.cjs +0 -123
- package/shared/slotted.js +0 -119
- package/shared/strings.cjs +0 -11
- package/shared/strings.js +0 -9
- package/shared/text-field.cjs +0 -5
- package/shared/text-field.js +0 -3
- package/shared/vivid-element.cjs +0 -2822
- package/shared/vivid-element.js +0 -2799
- package/shared/when.cjs +0 -31
- package/shared/when.js +0 -29
- /package/{shared → unbundled}/enums.cjs +0 -0
- /package/{shared → unbundled}/enums.js +0 -0
- /package/{shared → unbundled}/index.cjs +0 -0
- /package/{shared → unbundled}/index.js +0 -0
- /package/{shared → unbundled}/playbackRates.cjs +0 -0
- /package/{shared → unbundled}/playbackRates.js +0 -0
- /package/{shared → unbundled}/scrollIntoView.cjs +0 -0
- /package/{shared → unbundled}/scrollIntoView.js +0 -0
- /package/{shared → unbundled}/single-date-picker.cjs +0 -0
- /package/{shared → unbundled}/single-date-picker.js +0 -0
- /package/{shared → unbundled}/single-value-picker.cjs +0 -0
- /package/{shared → unbundled}/single-value-picker.js +0 -0
|
@@ -1,3 +1,1034 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { B as z, c as E, b as P } from "../bundled/definition3.js";
|
|
2
|
+
import { P as L, p as M } from "../bundled/definition9.js";
|
|
3
|
+
import { I as B, i as I } from "../bundled/definition2.js";
|
|
4
|
+
import { P as A, p as W } from "../bundled/definition15.js";
|
|
5
|
+
import { V as F, O as T, D as N, a as f, n as D, o as d, h as p, c as H, d as R } from "../bundled/vivid-element.js";
|
|
6
|
+
import { W as K, f as j } from "../bundled/mixins.js";
|
|
7
|
+
import { s as q } from "../bundled/scrollIntoView.js";
|
|
8
|
+
import { D as U, d as G } from "../bundled/delegates-aria.js";
|
|
9
|
+
import { F as J } from "../bundled/form-associated.js";
|
|
10
|
+
import { W as Q } from "../bundled/with-contextual-help.js";
|
|
11
|
+
import { W as X } from "../bundled/with-error-text.js";
|
|
12
|
+
import { W as Y } from "../bundled/with-success-text.js";
|
|
13
|
+
import { F as Z } from "../bundled/form-element.js";
|
|
14
|
+
import { A as ee, a as te, I as oe } from "../bundled/affix.js";
|
|
15
|
+
import { L as V } from "../bundled/localized.js";
|
|
16
|
+
import { i as ae } from "../bundled/option.js";
|
|
17
|
+
import { w as v } from "../bundled/when.js";
|
|
18
|
+
import { s as O } from "../bundled/slotted.js";
|
|
19
|
+
import { r as x } from "../bundled/ref.js";
|
|
20
|
+
import { c as y } from "../bundled/class-names.js";
|
|
21
|
+
import { r as w } from "../bundled/repeat.js";
|
|
22
|
+
const ie = ".chevron{display:flex;flex-shrink:0;font:var(--vvd-typography-base-extended);transform:rotate(0);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{display:inline-block;inline-size:300px;--_low-ink-color: var(--vvd-color-neutral-600)}:host([disabled]){--_low-ink-color: var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{display:flex;flex-direction:column;gap:4px}.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))}.fieldset{--_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-300);--_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-300);--_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{display:flex;align-items:center;justify-content:space-between;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);gap:8px;padding-block:8px;padding-inline:16px;transition:box-shadow .2s,background-color .2s}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){box-shadow:0 0 0 4px color-mix(in srgb,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(--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:8px}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{display:flex;overflow:hidden;flex:1;flex-direction:column;gap:8px;min-block-size:24px}.tag-row{display:flex;gap:8px;inline-size:100%}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;flex:1;border:none;background:none;block-size:24px;font:var(--vvd-typography-base);max-inline-size:100%;min-inline-size:min(100px,40%);outline:none}.contains-only-input input:not(:focus){position:absolute;block-size:0;inline-size:0;min-inline-size:0;opacity:0;pointer-events:none}.listbox{display:flex;flex-direction:column;padding:4px;gap:2px;max-block-size:var(--searchable-select-height, 408px);overflow-y:auto}.empty-message{display:flex;align-items:center;justify-content:center;color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);min-block-size:40px;text-align:center}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width, 100%)}slot[name=icon]{font-size:20px}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}::slotted([data-vvd-component=option][data-highlighted]){border-radius:8px;box-shadow:0 0 0 4px color-mix(in srgb,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}.label-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--label-wrapper-gap, 8px)}.label-wrapper[hidden]{display:none}.label-wrapper .label{flex:1 1 auto}.label-wrapper slot[name=contextual-help]::slotted([data-vvd-component=contextual-help]){margin-inline-start:auto}", se = '.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{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;background-color:var(--fill-color);block-size:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);column-gap:8px;font:var(--vvd-typography-base-bold);max-inline-size:100%;padding-inline:8px;user-select:none;vertical-align:middle}.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{overflow:hidden;max-inline-size:100%;text-overflow:ellipsis;white-space:nowrap}slot[name=icon]{font-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5)}.remove-button{display:flex;align-items:center;border-radius:inherit;cursor:pointer;outline:none}.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(--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));position:absolute;z-index:1;display:block;border-radius:inherit;content:"";inset:0;pointer-events:none}';
|
|
23
|
+
var le = Object.defineProperty, r = (s, t, e, a) => {
|
|
24
|
+
for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
|
|
25
|
+
(g = s[l]) && (i = g(t, e, i) || i);
|
|
26
|
+
return i && le(t, e, i), i;
|
|
27
|
+
};
|
|
28
|
+
const m = 8, ne = 100, S = 10, re = (s) => typeof s == "string";
|
|
29
|
+
class n extends Q(
|
|
30
|
+
K(
|
|
31
|
+
X(
|
|
32
|
+
Y(
|
|
33
|
+
Z(
|
|
34
|
+
U(
|
|
35
|
+
ee(V(J(F)))
|
|
36
|
+
)
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
)
|
|
41
|
+
) {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments), 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.#s = {
|
|
44
|
+
handleChange: (t, e) => {
|
|
45
|
+
t.selected && !this.values.includes(t.value) ? this.values = [...this.values, t.value] : !t.selected && this.values.includes(t.value) && (this.values = this.values.filter((a) => a !== t.value));
|
|
46
|
+
}
|
|
47
|
+
}, this.#t = /* @__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.proxy = document.createElement("input"), this.setFormValue = (t, e) => {
|
|
48
|
+
re(t) || super.setFormValue(t, e);
|
|
49
|
+
}, this._changeDescription = "", this.#p = new ResizeObserver(() => {
|
|
50
|
+
this.#u();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
openChanged() {
|
|
57
|
+
this.open || this.#e(null);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
valuesChanged() {
|
|
63
|
+
if (this._areOptionsInitialized) {
|
|
64
|
+
if (!this.multiple && this.values.length > 1) {
|
|
65
|
+
this.values = [this.values[0]];
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (this.values.some((t) => !this.#d(t))) {
|
|
69
|
+
this.values = this.values.filter((t) => this.#d(t));
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
this.value = this.values.length ? this.values[0] : "", this.#c(), this.#m(), this.$fastController.isConnected && this.#u(), this.#g();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
#a(t) {
|
|
76
|
+
this.values = t, this.$emit("change", void 0, {
|
|
77
|
+
bubbles: !1
|
|
78
|
+
}), this.$emit("input", void 0, {
|
|
79
|
+
bubbles: !1
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
#b(t) {
|
|
83
|
+
const e = new Set(this.values), a = new Set(t);
|
|
84
|
+
this.values = [...this.values].filter((i) => a.has(i)).concat([...t].filter((i) => !e.has(i)));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
initialValuesChanged() {
|
|
90
|
+
this.dirtyValue || (this.values = this.initialValues, this.dirtyValue = !1);
|
|
91
|
+
}
|
|
92
|
+
#d(t) {
|
|
93
|
+
return this._slottedOptions.some((e) => e.value === t);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
valueChanged(t, e) {
|
|
99
|
+
if (super.valueChanged(t, e), !this._areOptionsInitialized)
|
|
100
|
+
return;
|
|
101
|
+
const a = this._slottedOptions.some(
|
|
102
|
+
(i) => i.value === e
|
|
103
|
+
);
|
|
104
|
+
this.values[0] !== e && (this.values = a ? [e] : []);
|
|
105
|
+
}
|
|
106
|
+
get selectedIndex() {
|
|
107
|
+
return this.values.length ? this._slottedOptions.findIndex(
|
|
108
|
+
(t) => t.value === this.values[0]
|
|
109
|
+
) : -1;
|
|
110
|
+
}
|
|
111
|
+
set selectedIndex(t) {
|
|
112
|
+
this.value = this._slottedOptions[t]?.value ?? "";
|
|
113
|
+
}
|
|
114
|
+
get options() {
|
|
115
|
+
return [...this._slottedOptions];
|
|
116
|
+
}
|
|
117
|
+
get selectedOptions() {
|
|
118
|
+
return this._slottedOptions.filter(
|
|
119
|
+
(t) => this.values.includes(t.value)
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
_currentSearchTextChanged() {
|
|
126
|
+
this.#o(), this.$emit("search-text-change", void 0, {
|
|
127
|
+
bubbles: !1,
|
|
128
|
+
composed: !1
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The current search text of the component.
|
|
133
|
+
*/
|
|
134
|
+
get searchText() {
|
|
135
|
+
return this._currentSearchText ?? "";
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
get _inputValue() {
|
|
141
|
+
return this._currentSearchText ?? (!this.multiple && this.value !== "" ? this.#k(this.value) ?? "" : "");
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
_onInputInput(t) {
|
|
147
|
+
this._currentSearchText = t.target.value;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
_onInputFocus(t) {
|
|
153
|
+
this.#o();
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
_onInputBlur(t) {
|
|
159
|
+
this.open = !1, this._currentSearchText = null, this._changeDescription = "";
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
_onInputKeydown(t) {
|
|
165
|
+
if (t.ctrlKey || t.shiftKey)
|
|
166
|
+
return !0;
|
|
167
|
+
switch (t.key) {
|
|
168
|
+
case "Enter":
|
|
169
|
+
return this.#x(), this._inputValue === "" && (this.open = !this.open), !1;
|
|
170
|
+
case "Escape":
|
|
171
|
+
this.open = !1;
|
|
172
|
+
break;
|
|
173
|
+
case "Home":
|
|
174
|
+
if (!this.open) {
|
|
175
|
+
this.open = !0;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
return this.#w(), !1;
|
|
179
|
+
case "End":
|
|
180
|
+
if (!this.open) {
|
|
181
|
+
this.open = !0;
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
return this.#y(), !1;
|
|
185
|
+
case "PageUp":
|
|
186
|
+
if (!this.open) {
|
|
187
|
+
this.open = !0;
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
return this.#$(), !1;
|
|
191
|
+
case "PageDown":
|
|
192
|
+
if (!this.open) {
|
|
193
|
+
this.open = !0;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
return this.#T(), !1;
|
|
197
|
+
case "ArrowUp":
|
|
198
|
+
if (!this.open) {
|
|
199
|
+
this.open = !0;
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
return this.#O(), !1;
|
|
203
|
+
case "ArrowDown":
|
|
204
|
+
if (!this.open) {
|
|
205
|
+
this.open = !0;
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
return this.#S(), !1;
|
|
209
|
+
case "ArrowLeft":
|
|
210
|
+
return this.multiple && this._inputValue === "" && this.values.length && !this.externalTags ? (this.#i(this.#r(this.values.length)), !1) : !0;
|
|
211
|
+
case "Backspace":
|
|
212
|
+
return this.multiple && this._inputValue === "" && this.values.length ? (this._onTagRemoved(this.values[this.values.length - 1]), !1) : !0;
|
|
213
|
+
default:
|
|
214
|
+
return this.open || (this.open = !0), !0;
|
|
215
|
+
}
|
|
216
|
+
return !0;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
_slottedOptionsChanged(t, e) {
|
|
222
|
+
const a = !!this.querySelectorAll(":not([slot])").length;
|
|
223
|
+
if (!e.length && a)
|
|
224
|
+
return;
|
|
225
|
+
if (this._areOptionsInitialized = !0, t) {
|
|
226
|
+
this._slottedDisabledOptions = [];
|
|
227
|
+
for (const l of t)
|
|
228
|
+
T.getNotifier(l).unsubscribe(this.#s, "selected");
|
|
229
|
+
}
|
|
230
|
+
if (e)
|
|
231
|
+
for (const l of e)
|
|
232
|
+
l._displayCheckmark = !0, T.getNotifier(l).subscribe(this.#s, "selected");
|
|
233
|
+
const i = [];
|
|
234
|
+
for (const l of this._slottedOptions)
|
|
235
|
+
(l.selected || l.value === this.value || this.values.includes(l.value)) && i.push(l.value), l.disabled && this._slottedDisabledOptions.push(l);
|
|
236
|
+
this.#b(i), this.#o(), this.#c();
|
|
237
|
+
}
|
|
238
|
+
#s;
|
|
239
|
+
#m() {
|
|
240
|
+
for (const t of this._slottedOptions)
|
|
241
|
+
t.selected = this.values.includes(t.value), this.#_(t);
|
|
242
|
+
}
|
|
243
|
+
#h(t) {
|
|
244
|
+
const e = t.value;
|
|
245
|
+
let a, i = !1;
|
|
246
|
+
const l = !this.values.includes(e);
|
|
247
|
+
this.multiple ? (l ? a = [...this.values, e] : a = this.values.filter((u) => u !== e), i = !0) : (l ? (a = [e], i = !0) : a = [], this.open = !1), this.#a(a);
|
|
248
|
+
const g = l ? this.locale.searchableSelect.optionSelectedMessage(
|
|
249
|
+
t._getAccessibleName()
|
|
250
|
+
) : this.locale.searchableSelect.optionDeselectedMessage(
|
|
251
|
+
t._getAccessibleName()
|
|
252
|
+
), h = this.multiple && this.maxSelected && this.maxSelected >= 1 ? this.locale.searchableSelect.maxSelectedMessage(
|
|
253
|
+
this.values.length,
|
|
254
|
+
this.maxSelected
|
|
255
|
+
) : "";
|
|
256
|
+
this._changeDescription = `${g} ${h}`, i && (this._currentSearchText = null);
|
|
257
|
+
}
|
|
258
|
+
#t;
|
|
259
|
+
#l(t) {
|
|
260
|
+
return t.querySelector('[slot="tag-icon"]');
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
*/
|
|
265
|
+
_tagIconSlotName(t) {
|
|
266
|
+
return `_tag-icon-${this.values.indexOf(t)}`;
|
|
267
|
+
}
|
|
268
|
+
#_(t) {
|
|
269
|
+
if (t.selected && this.#l(t)) {
|
|
270
|
+
let e = this.#t.get(t);
|
|
271
|
+
e || (e = this.#l(t).cloneNode(!0), this.#t.set(t, e)), e.slot = this._tagIconSlotName(t.value), this.appendChild(e);
|
|
272
|
+
} else {
|
|
273
|
+
const e = this.#t.get(t);
|
|
274
|
+
e && (e.remove(), this.#t.delete(t));
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* @internal
|
|
279
|
+
*/
|
|
280
|
+
optionFilterChanged() {
|
|
281
|
+
this.#o();
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @internal
|
|
285
|
+
*/
|
|
286
|
+
loadingChanged(t, e) {
|
|
287
|
+
this._changeDescription = this.locale.searchableSelect.loadingOptionsMessage, t && !e && (this._changeDescription = "");
|
|
288
|
+
}
|
|
289
|
+
#o() {
|
|
290
|
+
const t = [], e = this.optionFilter ?? ((a, i) => a.text.toLowerCase().includes(i.toLowerCase()));
|
|
291
|
+
for (const a of this._slottedOptions ?? []) {
|
|
292
|
+
a._vvdSearchText = this.searchText;
|
|
293
|
+
const i = !this.searchText || e(a, this.searchText);
|
|
294
|
+
a._isNotMatching = !i, !a.hidden && i && t.push(a);
|
|
295
|
+
}
|
|
296
|
+
this.#e(null), this._filteredOptions = t, this._filteredEnabledOptions = t.filter(
|
|
297
|
+
(a) => !a.disabled
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
#e(t) {
|
|
301
|
+
if (typeof this._highlightedOptionIndex == "number") {
|
|
302
|
+
const e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
303
|
+
e._highlighted = !1, e.removeAttribute("data-highlighted");
|
|
304
|
+
}
|
|
305
|
+
if (typeof t == "number" && (this._filteredEnabledOptions.length ? t = Math.max(
|
|
306
|
+
0,
|
|
307
|
+
Math.min(this._filteredEnabledOptions.length - 1, t)
|
|
308
|
+
) : t = null), this._highlightedOptionIndex = t, typeof this._highlightedOptionIndex == "number") {
|
|
309
|
+
const e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
310
|
+
e._highlighted = !0, e.setAttribute("data-highlighted", ""), q(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(
|
|
311
|
+
e._getAccessibleName(),
|
|
312
|
+
this._highlightedOptionIndex + 1,
|
|
313
|
+
this._filteredEnabledOptions.length,
|
|
314
|
+
e.selected
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
#x() {
|
|
319
|
+
this._highlightedOptionIndex !== null && this.#h(
|
|
320
|
+
this._filteredEnabledOptions[this._highlightedOptionIndex]
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
#w() {
|
|
324
|
+
this.#e(0);
|
|
325
|
+
}
|
|
326
|
+
#y() {
|
|
327
|
+
this.#e(
|
|
328
|
+
this._filteredEnabledOptions.length - 1
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
#$() {
|
|
332
|
+
this.#e(
|
|
333
|
+
(this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - S
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
#T() {
|
|
337
|
+
this.#e(
|
|
338
|
+
(this._highlightedOptionIndex ?? -1) + S
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
#O() {
|
|
342
|
+
this.#e(
|
|
343
|
+
(this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - 1
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
#S() {
|
|
347
|
+
this.#e(
|
|
348
|
+
(this._highlightedOptionIndex ?? -1) + 1
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
// --- Tags ---
|
|
352
|
+
/**
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
_tagLabelForValue(t) {
|
|
356
|
+
return this._slottedOptions.find(
|
|
357
|
+
(a) => a.value === t
|
|
358
|
+
).label;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @internal
|
|
362
|
+
*/
|
|
363
|
+
_tagConnotationForValue(t) {
|
|
364
|
+
return this._slottedOptions.find(
|
|
365
|
+
(a) => a.value === t
|
|
366
|
+
).tagConnotation;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @internal
|
|
370
|
+
*/
|
|
371
|
+
_isTagDisabled(t) {
|
|
372
|
+
const e = this._slottedOptions.find(
|
|
373
|
+
(a) => a.value === t
|
|
374
|
+
);
|
|
375
|
+
return this.disabled || e.disabled;
|
|
376
|
+
}
|
|
377
|
+
#k(t) {
|
|
378
|
+
return this._slottedOptions?.find(
|
|
379
|
+
(a) => a.value === t
|
|
380
|
+
)?.label;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @internal
|
|
384
|
+
*/
|
|
385
|
+
#n(t, e, a) {
|
|
386
|
+
const i = document.createElement(this._optionTagTagName);
|
|
387
|
+
i.label = t, i.removable = e, i.style.cssText = "position: absolute; visibility: hidden;", i.hasIconPlaceholder = a, this.shadowRoot.appendChild(i);
|
|
388
|
+
const l = i.getBoundingClientRect().width;
|
|
389
|
+
return i.remove(), l;
|
|
390
|
+
}
|
|
391
|
+
#u() {
|
|
392
|
+
if (!this.multiple) {
|
|
393
|
+
this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [];
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
if (this.externalTags) {
|
|
397
|
+
this._numElidedTags = this.values.length, this._tagRows = [], this._lastTagRow = [];
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
const t = this._contentArea.getBoundingClientRect().width, e = [[]];
|
|
401
|
+
let a = 0, i = ne, l;
|
|
402
|
+
for (l = this.values.length - 1; l >= 0; l--) {
|
|
403
|
+
const h = this.maxLines && a === this.maxLines - 1, u = this.#n(
|
|
404
|
+
this._tagLabelForValue(this.values[l]),
|
|
405
|
+
!0,
|
|
406
|
+
this.#l(this.selectedOptions[l]) !== null
|
|
407
|
+
), o = {
|
|
408
|
+
value: this.values[l],
|
|
409
|
+
width: u
|
|
410
|
+
};
|
|
411
|
+
let c = 0;
|
|
412
|
+
if (h) {
|
|
413
|
+
const $ = l;
|
|
414
|
+
$ && (c = m + this.#n($.toString(), !1, !1));
|
|
415
|
+
}
|
|
416
|
+
if (i + m + u + c > t) {
|
|
417
|
+
if (h)
|
|
418
|
+
if (l === this.values.length - 1)
|
|
419
|
+
e[a].unshift(o), i += m + u;
|
|
420
|
+
else
|
|
421
|
+
break;
|
|
422
|
+
else
|
|
423
|
+
e.push([]), a++, e[a].unshift(o), i = u;
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
e[a].unshift(o), i += m + u;
|
|
427
|
+
}
|
|
428
|
+
this._numElidedTags = l + 1, e.reverse();
|
|
429
|
+
for (let h = 0; h < e.length - 1; h++) {
|
|
430
|
+
let u = e[h].map((o) => o.width).reduce((o, c) => o + c, 0) + (e[h].length - 1) * m;
|
|
431
|
+
for (h === 0 && this._numElidedTags && (u += m + this.#n(this._numElidedTags.toString(), !1, !1)); e[h + 1].length && u + m + e[h + 1][0].width <= t; ) {
|
|
432
|
+
const o = e[h + 1].shift();
|
|
433
|
+
e[h].push(o), u += m + o.width;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
const g = e.map((h) => h.map((u) => u.value));
|
|
437
|
+
this._tagRows = g.slice(0, -1), this._lastTagRow = g.slice(-1)[0];
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* @internal
|
|
441
|
+
*/
|
|
442
|
+
_onTagRemoved(t) {
|
|
443
|
+
this.#a(
|
|
444
|
+
this.values.filter((e) => e !== t)
|
|
445
|
+
), this.#o();
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* @internal
|
|
449
|
+
*/
|
|
450
|
+
_onTagKeydown(t) {
|
|
451
|
+
const e = parseInt(t.target.dataset.index);
|
|
452
|
+
switch (t.key) {
|
|
453
|
+
case "Backspace":
|
|
454
|
+
case "Delete":
|
|
455
|
+
case "Enter":
|
|
456
|
+
case " ": {
|
|
457
|
+
this._onTagRemoved(this.values[e]), N.processUpdates(), this.#i(this.#C(e));
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
case "ArrowLeft":
|
|
461
|
+
this.#i(this.#r(e) ?? e);
|
|
462
|
+
break;
|
|
463
|
+
case "ArrowRight":
|
|
464
|
+
this.#i(this.#v(e));
|
|
465
|
+
break;
|
|
466
|
+
}
|
|
467
|
+
return !0;
|
|
468
|
+
}
|
|
469
|
+
#i(t) {
|
|
470
|
+
t === null ? this._input.focus() : this.shadowRoot.querySelector(`[data-index="${t}"]`)?.focus();
|
|
471
|
+
}
|
|
472
|
+
#r(t) {
|
|
473
|
+
if (!this.values.length)
|
|
474
|
+
return null;
|
|
475
|
+
for (let e = t - 1; e >= 0; e--)
|
|
476
|
+
if (!this._isTagDisabled(this.values[e]))
|
|
477
|
+
return e;
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
#v(t) {
|
|
481
|
+
if (!this.values.length)
|
|
482
|
+
return null;
|
|
483
|
+
for (let e = t + 1; e < this.values.length; e++)
|
|
484
|
+
if (!this._isTagDisabled(this.values[e]))
|
|
485
|
+
return e;
|
|
486
|
+
return null;
|
|
487
|
+
}
|
|
488
|
+
#C(t) {
|
|
489
|
+
return this.#v(t - 1) ?? this.#r(t);
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* @internal
|
|
493
|
+
*/
|
|
494
|
+
_onListboxClick(t) {
|
|
495
|
+
if (this.disabled)
|
|
496
|
+
return;
|
|
497
|
+
const e = t.target.closest(
|
|
498
|
+
"option,[role=option],[data-vvd-component=option]"
|
|
499
|
+
);
|
|
500
|
+
e && !e.disabled && this.#h(e);
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* @internal
|
|
504
|
+
*/
|
|
505
|
+
get _shouldShowClearButton() {
|
|
506
|
+
return this.clearable && this.values.length > 0;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* @internal
|
|
510
|
+
*/
|
|
511
|
+
_onClearButtonClick() {
|
|
512
|
+
this.#a(
|
|
513
|
+
this.selectedOptions.filter((t) => t.disabled).map((t) => t.value)
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* @internal
|
|
518
|
+
*/
|
|
519
|
+
maxSelectedChanged() {
|
|
520
|
+
this.#c();
|
|
521
|
+
}
|
|
522
|
+
#c() {
|
|
523
|
+
if (!this.multiple || !this._slottedOptions || typeof this.maxSelected != "number" || this.maxSelected <= 0)
|
|
524
|
+
return;
|
|
525
|
+
const t = this._slottedOptions.filter(
|
|
526
|
+
(e) => !this._slottedDisabledOptions.includes(e)
|
|
527
|
+
);
|
|
528
|
+
if (this.values.length >= this.maxSelected) {
|
|
529
|
+
const e = t.filter(
|
|
530
|
+
(a) => !this.selectedOptions.includes(a)
|
|
531
|
+
);
|
|
532
|
+
for (const a of e)
|
|
533
|
+
a.disabled = !0;
|
|
534
|
+
} else
|
|
535
|
+
for (const e of t)
|
|
536
|
+
e.disabled = !1;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @internal
|
|
540
|
+
*/
|
|
541
|
+
get _hasSelectionCount() {
|
|
542
|
+
return this.multiple && this.maxSelected && this.maxSelected >= 1;
|
|
543
|
+
}
|
|
544
|
+
#f() {
|
|
545
|
+
return this.initialValues.length ? this.initialValues : this.initialValue ? [this.initialValue] : [];
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @internal
|
|
549
|
+
*/
|
|
550
|
+
nameChanged(t, e) {
|
|
551
|
+
super.nameChanged(t, e), this.#g();
|
|
552
|
+
}
|
|
553
|
+
#g() {
|
|
554
|
+
if (!this.name)
|
|
555
|
+
this.setFormValue(null);
|
|
556
|
+
else {
|
|
557
|
+
const t = new FormData();
|
|
558
|
+
for (const e of this.values)
|
|
559
|
+
t.append(this.name, e);
|
|
560
|
+
this.setFormValue(t);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* @internal
|
|
565
|
+
*/
|
|
566
|
+
formResetCallback() {
|
|
567
|
+
super.formResetCallback(), this.#a(this.#f());
|
|
568
|
+
}
|
|
569
|
+
#p;
|
|
570
|
+
/**
|
|
571
|
+
* @internal
|
|
572
|
+
*/
|
|
573
|
+
_onFieldsetClick(t) {
|
|
574
|
+
this.disabled || t.defaultPrevented || (this._input.focus(), this.open = !0);
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* @internal
|
|
578
|
+
*/
|
|
579
|
+
_onChevronClick() {
|
|
580
|
+
return this.open ? (this.open = !1, !1) : !0;
|
|
581
|
+
}
|
|
582
|
+
connectedCallback() {
|
|
583
|
+
super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#p.observe(this._contentArea);
|
|
584
|
+
}
|
|
585
|
+
disconnectedCallback() {
|
|
586
|
+
super.disconnectedCallback(), this.#p.disconnect();
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* @internal
|
|
590
|
+
*/
|
|
591
|
+
validate() {
|
|
592
|
+
super.validate(this._input ?? void 0);
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* @internal
|
|
596
|
+
*/
|
|
597
|
+
focus(t) {
|
|
598
|
+
this._input?.focus(t);
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* @internal
|
|
602
|
+
*/
|
|
603
|
+
_onMouseDown(t) {
|
|
604
|
+
const e = t.composedPath()[0];
|
|
605
|
+
return !t.defaultPrevented && e !== this._input && !this._isFromContextualHelp(t) ? (this._input.focus(), !1) : !0;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
r([
|
|
609
|
+
f
|
|
610
|
+
], n.prototype, "appearance");
|
|
611
|
+
r([
|
|
612
|
+
f
|
|
613
|
+
], n.prototype, "shape");
|
|
614
|
+
r([
|
|
615
|
+
f({ mode: "boolean", attribute: "fixed-dropdown" })
|
|
616
|
+
], n.prototype, "fixedDropdown");
|
|
617
|
+
r([
|
|
618
|
+
f
|
|
619
|
+
], n.prototype, "placeholder");
|
|
620
|
+
r([
|
|
621
|
+
f({ mode: "boolean" })
|
|
622
|
+
], n.prototype, "open");
|
|
623
|
+
r([
|
|
624
|
+
f({ mode: "boolean" })
|
|
625
|
+
], n.prototype, "multiple");
|
|
626
|
+
r([
|
|
627
|
+
f({ attribute: "external-tags", mode: "boolean" })
|
|
628
|
+
], n.prototype, "externalTags");
|
|
629
|
+
r([
|
|
630
|
+
f({ attribute: "max-lines", converter: D })
|
|
631
|
+
], n.prototype, "maxLines");
|
|
632
|
+
r([
|
|
633
|
+
d
|
|
634
|
+
], n.prototype, "values");
|
|
635
|
+
r([
|
|
636
|
+
d
|
|
637
|
+
], n.prototype, "initialValues");
|
|
638
|
+
r([
|
|
639
|
+
d
|
|
640
|
+
], n.prototype, "_input");
|
|
641
|
+
r([
|
|
642
|
+
d
|
|
643
|
+
], n.prototype, "_currentSearchText");
|
|
644
|
+
r([
|
|
645
|
+
d
|
|
646
|
+
], n.prototype, "_slottedOptions");
|
|
647
|
+
r([
|
|
648
|
+
d
|
|
649
|
+
], n.prototype, "optionFilter");
|
|
650
|
+
r([
|
|
651
|
+
d
|
|
652
|
+
], n.prototype, "_filteredOptions");
|
|
653
|
+
r([
|
|
654
|
+
d
|
|
655
|
+
], n.prototype, "_filteredEnabledOptions");
|
|
656
|
+
r([
|
|
657
|
+
f({
|
|
658
|
+
mode: "boolean"
|
|
659
|
+
})
|
|
660
|
+
], n.prototype, "loading");
|
|
661
|
+
r([
|
|
662
|
+
d
|
|
663
|
+
], n.prototype, "_highlightedOptionIndex");
|
|
664
|
+
r([
|
|
665
|
+
d
|
|
666
|
+
], n.prototype, "_contentArea");
|
|
667
|
+
r([
|
|
668
|
+
d
|
|
669
|
+
], n.prototype, "_numElidedTags");
|
|
670
|
+
r([
|
|
671
|
+
d
|
|
672
|
+
], n.prototype, "_tagRows");
|
|
673
|
+
r([
|
|
674
|
+
d
|
|
675
|
+
], n.prototype, "_lastTagRow");
|
|
676
|
+
r([
|
|
677
|
+
d
|
|
678
|
+
], n.prototype, "_listbox");
|
|
679
|
+
r([
|
|
680
|
+
f({ mode: "boolean" })
|
|
681
|
+
], n.prototype, "clearable");
|
|
682
|
+
r([
|
|
683
|
+
f({ attribute: "max-selected", converter: D })
|
|
684
|
+
], n.prototype, "maxSelected");
|
|
685
|
+
r([
|
|
686
|
+
d
|
|
687
|
+
], n.prototype, "_slottedDisabledOptions");
|
|
688
|
+
r([
|
|
689
|
+
d
|
|
690
|
+
], n.prototype, "_changeDescription");
|
|
691
|
+
r([
|
|
692
|
+
d
|
|
693
|
+
], n.prototype, "_anchor");
|
|
694
|
+
var ce = Object.defineProperty, _ = (s, t, e, a) => {
|
|
695
|
+
for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
|
|
696
|
+
(g = s[l]) && (i = g(t, e, i) || i);
|
|
697
|
+
return i && ce(t, e, i), i;
|
|
698
|
+
};
|
|
699
|
+
class b extends V(F) {
|
|
700
|
+
constructor() {
|
|
701
|
+
super(...arguments), this.removable = !1, this.disabled = !1, this.hasIconPlaceholder = !1;
|
|
702
|
+
}
|
|
703
|
+
_onClickRemove() {
|
|
704
|
+
this.$emit("remove", void 0, {
|
|
705
|
+
bubbles: !1
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
_([
|
|
710
|
+
f
|
|
711
|
+
], b.prototype, "shape");
|
|
712
|
+
_([
|
|
713
|
+
d
|
|
714
|
+
], b.prototype, "connotation");
|
|
715
|
+
_([
|
|
716
|
+
f
|
|
717
|
+
], b.prototype, "label");
|
|
718
|
+
_([
|
|
719
|
+
f({ mode: "boolean" })
|
|
720
|
+
], b.prototype, "removable");
|
|
721
|
+
_([
|
|
722
|
+
f({ mode: "boolean" })
|
|
723
|
+
], b.prototype, "disabled");
|
|
724
|
+
_([
|
|
725
|
+
d
|
|
726
|
+
], b.prototype, "hasIconPlaceholder");
|
|
727
|
+
const pe = (s) => y(
|
|
728
|
+
["disabled", s.disabled],
|
|
729
|
+
[`appearance-${s.appearance}`, !!s.appearance],
|
|
730
|
+
[`shape-${s.shape}`, !!s.shape],
|
|
731
|
+
["error", !!s.errorValidationMessage],
|
|
732
|
+
["success", !!s.successText],
|
|
733
|
+
["has-highlighted-option", s._highlightedOptionIndex !== null]
|
|
734
|
+
);
|
|
735
|
+
function de() {
|
|
736
|
+
return p`
|
|
737
|
+
<label for="control" class="label" id="label"> ${(s) => s.label} </label>
|
|
738
|
+
`;
|
|
739
|
+
}
|
|
740
|
+
function he() {
|
|
741
|
+
return p`
|
|
742
|
+
<span
|
|
743
|
+
id="selection-count"
|
|
744
|
+
class="selection-count"
|
|
745
|
+
aria-label="${(s) => s.locale.searchableSelect.maxSelectedMessage(
|
|
746
|
+
s.values.length,
|
|
747
|
+
s.maxSelected
|
|
748
|
+
)}"
|
|
749
|
+
>(${(s) => `${s.values.length}/${s.maxSelected}`})</span
|
|
750
|
+
>
|
|
751
|
+
`;
|
|
752
|
+
}
|
|
753
|
+
const k = (s, t) => {
|
|
754
|
+
const e = s.tagFor(b);
|
|
755
|
+
return p`
|
|
756
|
+
<div class="tag-wrapper">
|
|
757
|
+
<${e}
|
|
758
|
+
class="tag"
|
|
759
|
+
tabindex="-1"
|
|
760
|
+
data-index="${(a, i) => t(i).values.indexOf(a)}"
|
|
761
|
+
removable
|
|
762
|
+
:label="${(a, i) => t(i)._tagLabelForValue(a)}"
|
|
763
|
+
:shape="${(a, i) => t(i).shape}"
|
|
764
|
+
:connotation="${(a, i) => t(i)._tagConnotationForValue(a)}"
|
|
765
|
+
?disabled="${(a, i) => t(i)._isTagDisabled(a)}"
|
|
766
|
+
@remove="${(a, i) => t(i)._onTagRemoved(a)}"
|
|
767
|
+
@keydown="${(a, i) => t(i)._onTagKeydown(i.event)}"
|
|
768
|
+
@mousedown="${() => !1}">
|
|
769
|
+
<slot slot="icon" name="${(a, i) => t(i)._tagIconSlotName(a)}"></slot>
|
|
770
|
+
</${e}>
|
|
771
|
+
</div>
|
|
772
|
+
`;
|
|
773
|
+
}, C = (s, t) => {
|
|
774
|
+
const e = s.tagFor(b);
|
|
775
|
+
return p`
|
|
776
|
+
<${e}
|
|
777
|
+
class="tag"
|
|
778
|
+
tabindex="-1"
|
|
779
|
+
:label="${(a, i) => t(a, i)._numElidedTags.toString()}"
|
|
780
|
+
:shape="${(a, i) => t(a, i).shape}"
|
|
781
|
+
?disabled="${(a, i) => t(a, i).disabled}"
|
|
782
|
+
@mousedown="${() => !1}">
|
|
783
|
+
</${e}>
|
|
784
|
+
`;
|
|
785
|
+
};
|
|
786
|
+
function ue(s) {
|
|
787
|
+
const t = s.tagFor(z), e = s.tagFor(A), a = te(s), i = E(s), l = k(s, (o) => o.parent), g = k(
|
|
788
|
+
s,
|
|
789
|
+
(o) => o.parentContext.parent
|
|
790
|
+
), h = C(s, (o, c) => o), u = C(
|
|
791
|
+
s,
|
|
792
|
+
(o, c) => c.parent
|
|
793
|
+
);
|
|
794
|
+
return p`
|
|
795
|
+
<div
|
|
796
|
+
class="fieldset ${pe}"
|
|
797
|
+
@click="${(o, c) => o._onFieldsetClick(c.event)}"
|
|
798
|
+
${x("_anchor")}
|
|
799
|
+
>
|
|
800
|
+
${(o) => a(o.icon, oe.Slot)}
|
|
801
|
+
<div class="content-area" ${x("_contentArea")}>
|
|
802
|
+
${w(
|
|
803
|
+
(o) => o._tagRows,
|
|
804
|
+
p`
|
|
805
|
+
<div class="tag-row">
|
|
806
|
+
${v(
|
|
807
|
+
(o, c) => c.isFirst && c.parent._numElidedTags,
|
|
808
|
+
u
|
|
809
|
+
)}
|
|
810
|
+
${w((o) => o, g)}
|
|
811
|
+
</div>
|
|
812
|
+
`,
|
|
813
|
+
{ positioning: !0 }
|
|
814
|
+
)}
|
|
815
|
+
<div
|
|
816
|
+
class="tag-row ${(o) => y([
|
|
817
|
+
"contains-only-input",
|
|
818
|
+
o._tagRows.length > 0 && o._lastTagRow.length === 0
|
|
819
|
+
])}"
|
|
820
|
+
>
|
|
821
|
+
${v(
|
|
822
|
+
(o) => o._tagRows.length === 0 && o._numElidedTags,
|
|
823
|
+
h
|
|
824
|
+
)}
|
|
825
|
+
${w((o) => o._lastTagRow, l)}
|
|
826
|
+
<input
|
|
827
|
+
id="control"
|
|
828
|
+
class="control"
|
|
829
|
+
autocomplete="off"
|
|
830
|
+
aria-controls="listbox"
|
|
831
|
+
aria-describedby="${(o) => o._feedbackDescribedBy} ${(o) => o.multiple && o.maxSelected && o.maxSelected >= 1 ? "selection-count" : null}"
|
|
832
|
+
${G({
|
|
833
|
+
role: "combobox",
|
|
834
|
+
ariaAutoComplete: "list",
|
|
835
|
+
ariaHasPopup: "listbox",
|
|
836
|
+
ariaExpanded: (o) => o.open
|
|
837
|
+
})}
|
|
838
|
+
placeholder="${(o) => o.multiple && o.values.length ? "" : o.placeholder}"
|
|
839
|
+
type="text"
|
|
840
|
+
?disabled="${(o) => o.disabled}"
|
|
841
|
+
:value="${(o) => o._inputValue}"
|
|
842
|
+
@input="${(o, c) => {
|
|
843
|
+
o._onInputInput(c.event), c.event.stopPropagation();
|
|
844
|
+
}}"
|
|
845
|
+
@change="${(o, c) => {
|
|
846
|
+
c.event.stopPropagation();
|
|
847
|
+
}}"
|
|
848
|
+
@focus="${(o, c) => o._onInputFocus(c.event)}"
|
|
849
|
+
@blur="${(o, c) => o._onInputBlur(c.event)}"
|
|
850
|
+
@keydown="${(o, c) => o._onInputKeydown(c.event)}"
|
|
851
|
+
${x("_input")}
|
|
852
|
+
/>
|
|
853
|
+
</div>
|
|
854
|
+
</div>
|
|
855
|
+
<slot name="meta"></slot>
|
|
856
|
+
${v(
|
|
857
|
+
(o) => o._shouldShowClearButton,
|
|
858
|
+
p`<${t}
|
|
859
|
+
aria-label="${(o) => o.locale.searchableSelect.clearButtonLabel}"
|
|
860
|
+
@click="${(o) => o._onClearButtonClick()}"
|
|
861
|
+
@mousedown="${() => !1}"
|
|
862
|
+
?disabled="${(o) => o.disabled}"
|
|
863
|
+
:shape="${(o) => o.shape}"
|
|
864
|
+
size="super-condensed"
|
|
865
|
+
icon="close-line"
|
|
866
|
+
appearance="ghost-light"
|
|
867
|
+
tabindex="0"
|
|
868
|
+
></${t}>`
|
|
869
|
+
)}
|
|
870
|
+
<div @mousedown="${() => !1}" @click="${(o) => o._onChevronClick()}">
|
|
871
|
+
${v(
|
|
872
|
+
(o) => o.loading,
|
|
873
|
+
p`<${e} indeterminate size="-6" aria-hidden="true"></${e}>`
|
|
874
|
+
)}
|
|
875
|
+
${v((o) => !o.loading, i)}
|
|
876
|
+
</div>
|
|
877
|
+
</div>
|
|
878
|
+
`;
|
|
879
|
+
}
|
|
880
|
+
function ve(s) {
|
|
881
|
+
return s.open && s.fixedDropdown ? `--_searchable-select-fixed-width: ${Math.round(
|
|
882
|
+
s.getBoundingClientRect().width
|
|
883
|
+
)}px` : null;
|
|
884
|
+
}
|
|
885
|
+
function fe(s) {
|
|
886
|
+
const t = s.tagFor(L);
|
|
887
|
+
return p`
|
|
888
|
+
<div class="label-wrapper" ?hidden=${(e) => !e.label && !e._hasContextualHelp && !e._hasSelectionCount}>
|
|
889
|
+
${v(
|
|
890
|
+
(e) => e.label || e._hasSelectionCount,
|
|
891
|
+
p`
|
|
892
|
+
<div>
|
|
893
|
+
${v((e) => e.label, de())}
|
|
894
|
+
${v((e) => e._hasSelectionCount, he())}
|
|
895
|
+
</div>
|
|
896
|
+
`
|
|
897
|
+
)}
|
|
898
|
+
<slot name="contextual-help" ${O("_contextualHelpSlottedContent")}></slot>
|
|
899
|
+
</div>
|
|
900
|
+
<span aria-live="assertive" aria-relevant="text" class="visually-hidden">
|
|
901
|
+
${(e) => e._changeDescription}
|
|
902
|
+
</span>
|
|
903
|
+
<div>
|
|
904
|
+
${ue(s)}
|
|
905
|
+
<div class="popup-wrapper">
|
|
906
|
+
<${t}
|
|
907
|
+
:anchor="${(e) => e._anchor}"
|
|
908
|
+
:open="${(e) => e.open}"
|
|
909
|
+
class="popup"
|
|
910
|
+
placement="bottom-start"
|
|
911
|
+
style="${ve}"
|
|
912
|
+
strategy="${(e) => e.fixedDropdown ? "fixed" : "absolute"}">
|
|
913
|
+
<div
|
|
914
|
+
class="listbox"
|
|
915
|
+
role="listbox"
|
|
916
|
+
aria-multiselectable="${(e) => e.multiple}"
|
|
917
|
+
aria-required="${(e) => e.required}"
|
|
918
|
+
${x("_listbox")}
|
|
919
|
+
@click="${(e, a) => e._onListboxClick(a.event)}"
|
|
920
|
+
@mousedown="${() => !1}"
|
|
921
|
+
>
|
|
922
|
+
<slot
|
|
923
|
+
${O({
|
|
924
|
+
filter: ae,
|
|
925
|
+
flatten: !0,
|
|
926
|
+
property: "_slottedOptions"
|
|
927
|
+
})}>
|
|
928
|
+
</slot>
|
|
929
|
+
${v(
|
|
930
|
+
(e) => e._filteredOptions.length === 0,
|
|
931
|
+
p`<div class="empty-message">
|
|
932
|
+
${v(
|
|
933
|
+
(e) => e.loading,
|
|
934
|
+
p`<slot name="loading-options">
|
|
935
|
+
${(e) => e.locale.searchableSelect.loadingOptionsMessage}
|
|
936
|
+
</slot>`
|
|
937
|
+
)}
|
|
938
|
+
${v(
|
|
939
|
+
(e) => !e.loading && e.searchText === "",
|
|
940
|
+
p`<slot name="no-options">
|
|
941
|
+
${(e) => e.locale.searchableSelect.noOptionsMessage}
|
|
942
|
+
</slot>`
|
|
943
|
+
)}
|
|
944
|
+
${v(
|
|
945
|
+
(e) => !e.loading && e.searchText !== "",
|
|
946
|
+
p`<slot name="no-matches">
|
|
947
|
+
${(e) => e.locale.searchableSelect.noMatchesMessage}
|
|
948
|
+
</slot>`
|
|
949
|
+
)}
|
|
950
|
+
</div>`
|
|
951
|
+
)}
|
|
952
|
+
</div>
|
|
953
|
+
</${t}>
|
|
954
|
+
</div>
|
|
955
|
+
</div>
|
|
956
|
+
`;
|
|
957
|
+
}
|
|
958
|
+
const ge = (s) => {
|
|
959
|
+
const t = s.tagFor(b);
|
|
960
|
+
return p`
|
|
961
|
+
<template
|
|
962
|
+
:_optionTagTagName="${() => t}"
|
|
963
|
+
@mousedown="${(e, a) => e._onMouseDown(a.event)}"
|
|
964
|
+
>
|
|
965
|
+
<div class="control-wrapper">
|
|
966
|
+
${fe(s)} ${(e) => e._getFeedbackTemplate(s)}
|
|
967
|
+
</div>
|
|
968
|
+
</template>
|
|
969
|
+
`;
|
|
970
|
+
}, be = ({ shape: s, connotation: t, disabled: e, removable: a }) => y(
|
|
971
|
+
"base",
|
|
972
|
+
["disabled", e],
|
|
973
|
+
["removable", a],
|
|
974
|
+
[`shape-${s}`, !!s],
|
|
975
|
+
[`connotation-${t}`, !!t]
|
|
976
|
+
);
|
|
977
|
+
function me(s) {
|
|
978
|
+
return p`
|
|
979
|
+
<span
|
|
980
|
+
class="remove-button"
|
|
981
|
+
aria-label="${(t) => t.locale.searchableSelect.removeTagButtonLabel(t.label)}"
|
|
982
|
+
role="button"
|
|
983
|
+
tabindex="${(t) => t.disabled ? null : 0}"
|
|
984
|
+
@click="${(t) => t._onClickRemove()}"
|
|
985
|
+
>
|
|
986
|
+
<${s} name="close-line"></${s}>
|
|
987
|
+
</span>
|
|
988
|
+
`;
|
|
989
|
+
}
|
|
990
|
+
const _e = (s) => {
|
|
991
|
+
const t = s.tagFor(B);
|
|
992
|
+
return p`<span class="${be}" aria-disabled="${(e) => e.disabled}">
|
|
993
|
+
<slot name="icon" aria-hidden="true">
|
|
994
|
+
${v(
|
|
995
|
+
(e) => e.hasIconPlaceholder,
|
|
996
|
+
p`<div class="icon-placeholder"></div>`
|
|
997
|
+
)}
|
|
998
|
+
</slot>
|
|
999
|
+
${v(
|
|
1000
|
+
(e) => e.label,
|
|
1001
|
+
(e) => p`<span class="label">${e.label}</span>`
|
|
1002
|
+
)}
|
|
1003
|
+
${v((e) => e.removable, me(t))}
|
|
1004
|
+
</span>`;
|
|
1005
|
+
}, xe = R(
|
|
1006
|
+
"option-tag",
|
|
1007
|
+
b,
|
|
1008
|
+
_e,
|
|
1009
|
+
[I],
|
|
1010
|
+
{
|
|
1011
|
+
styles: [se],
|
|
1012
|
+
shadowOptions: {
|
|
1013
|
+
delegatesFocus: !0
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
), we = R(
|
|
1017
|
+
"searchable-select",
|
|
1018
|
+
n,
|
|
1019
|
+
ge,
|
|
1020
|
+
[
|
|
1021
|
+
P,
|
|
1022
|
+
M,
|
|
1023
|
+
I,
|
|
1024
|
+
xe,
|
|
1025
|
+
W,
|
|
1026
|
+
j
|
|
1027
|
+
],
|
|
1028
|
+
{
|
|
1029
|
+
styles: ie
|
|
1030
|
+
}
|
|
1031
|
+
), ye = H(
|
|
1032
|
+
we
|
|
1033
|
+
);
|
|
1034
|
+
ye();
|