@vonage/vivid 5.24.0 → 5.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- 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 +10 -10
- package/avatar/index.js +29 -19
- 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 +9 -5
- package/breadcrumb-item/index.js +15 -10
- package/bundled/affix.cjs +3 -3
- package/bundled/affix.js +2 -2
- package/bundled/anchored.cjs +2 -2
- package/bundled/anchored.js +13 -1
- package/bundled/aria-binding-directive.cjs +1 -1
- package/bundled/aria-binding-directive.js +2 -2
- package/bundled/aria.cjs +1 -1
- package/bundled/base-color-picker.cjs +2 -2
- package/bundled/base-color-picker.js +1 -1
- package/bundled/base-progress.cjs +1 -1
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/button.cjs +1 -1
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +17 -4
- package/bundled/calendar-picker.template.cjs +5 -5
- package/bundled/calendar-picker.template.js +53 -55
- package/bundled/char-count.cjs +2 -2
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +1 -1
- package/bundled/class-names.cjs +1 -1
- package/bundled/component-enum.cjs +1 -0
- package/bundled/component-enum.js +9 -0
- package/bundled/data-grid.options.cjs +1 -1
- package/bundled/data-grid.options.js +7 -6
- package/bundled/decorate.cjs +1 -1
- package/bundled/decorate.js +1 -1
- package/bundled/definition.cjs +1 -1
- package/bundled/definition10.cjs +10 -19
- package/bundled/definition10.js +23 -71
- package/bundled/definition11.cjs +74 -10
- package/bundled/definition11.js +194 -23
- package/bundled/definition12.cjs +18 -70
- package/bundled/definition12.js +48 -185
- 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 +6 -6
- package/bundled/definition15.js +19 -18
- package/bundled/definition16.cjs +3 -3
- package/bundled/definition16.js +23 -17
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +22 -109
- package/bundled/definition18.cjs +3 -3
- package/bundled/definition18.js +9 -31
- package/bundled/definition19.cjs +21 -21
- package/bundled/definition19.js +68 -62
- 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 +9 -9
- package/bundled/definition21.js +25 -25
- package/bundled/definition22.cjs +5 -5
- package/bundled/definition22.js +27 -27
- package/bundled/definition23.cjs +3 -3
- package/bundled/definition23.js +26 -8
- package/bundled/definition24.cjs +4 -4
- package/bundled/definition24.js +4 -3
- package/bundled/definition25.cjs +7 -7
- package/bundled/definition25.js +37 -28
- package/bundled/definition3.cjs +25 -12
- package/bundled/definition3.js +83 -44
- package/bundled/definition4.cjs +29 -25
- package/bundled/definition4.js +50 -88
- package/bundled/definition5.cjs +28 -29
- package/bundled/definition5.js +143 -45
- package/bundled/definition6.cjs +6 -29
- package/bundled/definition6.js +20 -129
- package/bundled/definition7.cjs +14 -6
- package/bundled/definition7.js +159 -20
- package/bundled/definition8.cjs +22 -14
- package/bundled/definition8.js +88 -144
- package/bundled/definition9.cjs +20 -16
- package/bundled/definition9.js +59 -62
- 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/extractOptions.js +2 -2
- 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 -0
- package/bundled/icon.js +34 -0
- 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 +8 -7
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +33 -32
- package/bundled/mixins.cjs +9 -16
- package/bundled/mixins.js +23 -56
- package/bundled/numberConverter.cjs +2 -2
- package/bundled/numberConverter.js +1 -1
- package/bundled/numbers.cjs +1 -1
- package/bundled/optgroup.cjs +1 -0
- package/bundled/optgroup.js +27 -0
- package/bundled/option.cjs +1 -0
- package/bundled/option.js +95 -0
- package/bundled/picker-field.template.cjs +2 -2
- package/bundled/picker-field.template.js +8 -8
- package/bundled/platform.cjs +1 -1
- package/bundled/playbackRates.cjs +1 -1
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +1 -1
- package/bundled/render-in-light-dom.cjs +1 -1
- package/bundled/render-in-light-dom.js +1 -1
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +16 -15
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +1 -3
- package/bundled/single-date-picker.cjs +1 -1
- package/bundled/single-value-picker.cjs +1 -1
- package/bundled/single-value-picker.js +1 -1
- package/bundled/slider.template.cjs +12 -12
- package/bundled/slider.template.js +209 -32
- package/bundled/slottable-request.cjs +3 -3
- package/bundled/slottable-request.js +26 -17
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +1 -1
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +4 -4
- package/bundled/time-selection-picker.template.js +10 -7
- package/bundled/trapped-focus.cjs +1 -1
- package/bundled/utils.cjs +1 -1
- package/bundled/vivid-element.cjs +3 -3
- package/bundled/vivid-element.js +397 -358
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +1 -1
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +1 -1
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-success-text.cjs +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +7 -7
- package/calendar-event/index.cjs +2 -2
- package/calendar-event/index.js +10 -8
- package/card/index.cjs +24 -22
- package/card/index.js +14 -8
- package/checkbox/index.cjs +1 -1
- package/color-picker/index.cjs +13 -13
- package/color-picker/index.js +22 -19
- package/combobox/index.cjs +9 -9
- package/combobox/index.js +46 -42
- 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 +4208 -3828
- package/data-grid/index.cjs +28 -28
- package/data-grid/index.js +92 -98
- 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 +24 -23
- package/dial-pad/index.js +17 -11
- package/dialog/index.cjs +14 -14
- package/dialog/index.js +12 -8
- 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 +4 -4
- package/empty-state/index.js +20 -7
- package/fab/index.cjs +3 -3
- package/fab/index.js +14 -6
- package/file-picker/index.cjs +11 -13
- package/file-picker/index.js +28 -24
- 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/definition.cjs +2 -1
- package/icon/definition.js +2 -1
- package/icon/index.cjs +1 -1
- package/icon/index.js +1 -1
- package/index.cjs +166 -154
- package/index.js +48 -42
- 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 +12 -6
- package/lib/action-group/action-group.d.ts +10 -5
- package/lib/alert/alert.d.ts +15 -18
- package/lib/avatar/avatar.d.ts +16 -7
- package/lib/badge/badge.d.ts +17 -7
- package/lib/banner/banner.d.ts +18 -20
- package/lib/button/button.d.ts +25 -16
- package/lib/calendar-event/calendar-event.d.ts +14 -7
- package/lib/checkbox/checkbox.d.ts +31 -28
- package/lib/combobox/combobox.d.ts +38 -33
- package/lib/components.d.ts +2 -0
- package/lib/data-grid/data-grid.options.d.ts +6 -1
- package/lib/dial-pad/dial-pad.d.ts +0 -1
- package/lib/dial-pad/locale.d.ts +1 -0
- package/lib/divider/divider.d.ts +9 -6
- package/lib/elevation/definition.d.ts +2 -0
- package/lib/empty-state/empty-state.d.ts +7 -2
- package/lib/fab/fab.d.ts +3 -2
- package/lib/form-field/definition.d.ts +4 -0
- package/lib/form-field/form-field.d.ts +6 -0
- package/lib/form-field/form-field.template.d.ts +3 -0
- package/lib/kbd-key/kbd-key.d.ts +7 -2
- package/lib/listbox/definition.d.ts +3 -0
- package/lib/listbox/listbox.d.ts +1303 -0
- package/lib/listbox/listbox.template.d.ts +3 -0
- package/lib/menu/menu.d.ts +0 -1
- 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 -41
- package/lib/option/option.d.ts +13 -10
- package/lib/popup/definition.d.ts +2 -0
- package/lib/progress/progress.d.ts +10 -5
- package/lib/progress-ring/progress-ring.d.ts +9 -5
- package/lib/radio/radio.d.ts +18 -15
- package/lib/range-slider/range-slider.d.ts +19 -15
- package/lib/rich-text-editor/rich-text-editor.d.ts +9 -5
- package/lib/rich-text-editor/rte/features/base.d.ts +1 -0
- package/lib/rich-text-editor/rte/utils/default-textblock.d.ts +2 -2
- package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -1
- package/lib/searchable-select/option-tag.d.ts +12 -7
- package/lib/searchable-select/searchable-select.d.ts +7 -2
- package/lib/select/select.d.ts +45 -40
- package/lib/selectable-box/selectable-box.d.ts +9 -5
- package/lib/slider/slider.d.ts +18 -14
- package/lib/split-button/split-button.d.ts +24 -15
- package/lib/status/status.d.ts +10 -7
- package/lib/switch/switch.d.ts +13 -9
- package/lib/tab/tab.d.ts +19 -14
- package/lib/tabs/tabs.d.ts +6 -3
- package/lib/tag/tag.d.ts +24 -15
- package/lib/tag-name-map.d.ts +3 -1
- package/lib/text-field/text-field.d.ts +47 -41
- package/lib/toggletip/toggletip.d.ts +1 -0
- package/lib/tooltip/tooltip.d.ts +1 -0
- package/lib/video-player/__tests__/video-fixtures.d.ts +3 -0
- package/listbox/definition.cjs +5 -0
- package/listbox/definition.js +2 -0
- package/listbox/index.cjs +13 -0
- package/listbox/index.js +554 -0
- package/locales/de-DE.cjs +34 -33
- package/locales/de-DE.js +34 -33
- package/locales/en-GB.cjs +34 -33
- package/locales/en-GB.js +34 -33
- package/locales/ja-JP.cjs +35 -33
- package/locales/ja-JP.js +35 -33
- package/locales/zh-CN.cjs +34 -33
- package/locales/zh-CN.js +34 -33
- package/menu/index.cjs +1 -1
- package/menu-item/index.cjs +1 -1
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav/index.cjs +1 -1
- package/nav/index.js +6 -4
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +5 -5
- package/nav-disclosure/index.js +15 -9
- 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/definition.cjs +2 -1
- package/optgroup/definition.js +2 -1
- package/optgroup/index.cjs +1 -1
- package/option/definition.cjs +2 -1
- package/option/definition.js +2 -1
- package/option/index.cjs +1 -1
- package/package.json +32 -38
- 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 +5 -5
- package/popover/index.js +46 -37
- 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 +17 -14
- package/rich-text-editor/index.js +1955 -1721
- 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 +26 -26
- package/searchable-select/index.js +97 -90
- 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/listbox/commands.d.ts +17 -0
- package/shared/listbox/move.d.ts +6 -0
- package/shared/listbox/options.d.ts +12 -0
- package/shared/listbox/selection.d.ts +28 -0
- package/shared/listbox/state.d.ts +26 -0
- package/shared/listbox/typeahead.d.ts +8 -0
- package/shared/listbox/with-options-filter.d.ts +440 -0
- package/shared/listbox/with-options.d.ts +862 -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 +6 -6
- package/simple-color-picker/index.js +22 -21
- 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 +16 -14
- package/table/index.js +14 -11
- 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 +11 -11
- package/tag/index.js +31 -14
- 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 +2 -3
- package/unbundled/affix.js +1 -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 +1 -2
- package/unbundled/base-progress.js +1 -1
- package/unbundled/breadcrumb-item.cjs +0 -1
- package/unbundled/button.cjs +2 -3
- package/unbundled/button.js +2 -2
- 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 +3 -67
- package/unbundled/definition.js +5 -62
- package/unbundled/definition10.cjs +2 -343
- package/unbundled/definition10.js +4 -338
- package/unbundled/definition11.cjs +10 -10
- package/unbundled/definition11.js +9 -8
- package/unbundled/definition12.cjs +7 -6
- package/unbundled/definition12.js +8 -6
- package/unbundled/definition13.cjs +2 -2
- package/unbundled/definition13.js +2 -1
- package/unbundled/definition14.cjs +13 -4
- package/unbundled/definition14.js +13 -3
- package/unbundled/definition15.cjs +26 -5
- package/unbundled/definition15.js +26 -4
- package/unbundled/definition16.cjs +20 -14
- package/unbundled/definition16.js +20 -13
- package/unbundled/definition17.cjs +9 -5
- package/unbundled/definition17.js +9 -4
- 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 +15 -5
- package/unbundled/definition2.js +16 -5
- package/unbundled/definition20.cjs +1 -2
- package/unbundled/definition20.js +7 -6
- package/unbundled/definition21.cjs +6 -4
- package/unbundled/definition21.js +6 -3
- package/unbundled/definition22.cjs +0 -1
- package/unbundled/definition23.cjs +14 -7
- package/unbundled/definition23.js +13 -5
- package/unbundled/definition24.cjs +10 -8
- package/unbundled/definition24.js +11 -8
- package/unbundled/definition25.cjs +4 -4
- package/unbundled/definition25.js +4 -3
- package/unbundled/definition26.cjs +13 -8
- package/unbundled/definition26.js +12 -6
- package/unbundled/definition27.cjs +41 -7
- package/unbundled/definition27.js +42 -7
- package/unbundled/definition28.cjs +7 -6
- package/unbundled/definition28.js +6 -4
- package/unbundled/definition29.cjs +5 -169
- package/unbundled/definition29.js +11 -162
- package/unbundled/definition3.cjs +5 -6
- package/unbundled/definition3.js +5 -5
- package/unbundled/definition30.cjs +2 -64
- package/unbundled/definition30.js +5 -54
- package/unbundled/definition31.cjs +20 -16
- package/unbundled/definition31.js +19 -14
- package/unbundled/definition32.cjs +2 -2
- package/unbundled/definition32.js +2 -1
- package/unbundled/definition33.cjs +0 -1
- package/unbundled/definition34.cjs +0 -1
- package/unbundled/definition35.cjs +41 -52
- package/unbundled/definition35.js +42 -52
- package/unbundled/definition36.cjs +2 -3
- package/unbundled/definition36.js +9 -8
- package/unbundled/definition37.cjs +1 -2
- package/unbundled/definition37.js +1 -1
- package/unbundled/definition38.cjs +0 -1
- package/unbundled/definition39.cjs +1 -2
- package/unbundled/definition39.js +1 -1
- package/unbundled/definition4.cjs +4 -3
- package/unbundled/definition4.js +11 -6
- package/unbundled/definition40.cjs +9 -6
- package/unbundled/definition40.js +9 -5
- package/unbundled/definition41.cjs +11 -7
- package/unbundled/definition41.js +11 -6
- package/unbundled/definition42.cjs +16 -7
- package/unbundled/definition42.js +16 -6
- package/unbundled/definition43.cjs +7 -3
- package/unbundled/definition43.js +7 -2
- package/unbundled/definition44.cjs +15 -13
- package/unbundled/definition44.js +14 -11
- 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 +30 -90
- package/unbundled/definition49.js +27 -86
- package/unbundled/definition5.cjs +9 -3
- package/unbundled/definition5.js +15 -7
- package/unbundled/definition50.cjs +617 -48
- package/unbundled/definition50.js +615 -47
- package/unbundled/definition51.cjs +93 -22
- package/unbundled/definition51.js +91 -16
- package/unbundled/definition52.cjs +52 -33
- package/unbundled/definition52.js +49 -29
- package/unbundled/definition53.cjs +22 -324
- package/unbundled/definition53.js +18 -319
- package/unbundled/definition54.cjs +44 -213
- package/unbundled/definition54.js +40 -208
- package/unbundled/definition55.cjs +321 -42
- package/unbundled/definition55.js +317 -37
- package/unbundled/definition56.cjs +199 -254
- package/unbundled/definition56.js +193 -247
- package/unbundled/definition57.cjs +45 -54
- package/unbundled/definition57.js +42 -49
- package/unbundled/definition58.cjs +271 -134
- package/unbundled/definition58.js +269 -128
- package/unbundled/definition59.cjs +59 -246
- package/unbundled/definition59.js +58 -244
- package/unbundled/definition6.cjs +22 -7
- package/unbundled/definition6.js +22 -6
- package/unbundled/definition60.cjs +129 -445
- package/unbundled/definition60.js +127 -442
- package/unbundled/definition61.cjs +230 -3746
- package/unbundled/definition61.js +224 -3576
- package/unbundled/definition62.cjs +428 -742
- package/unbundled/definition62.js +426 -739
- package/unbundled/definition63.cjs +3776 -103
- package/unbundled/definition63.js +3607 -97
- package/unbundled/definition64.cjs +693 -906
- package/unbundled/definition64.js +685 -894
- package/unbundled/definition65.cjs +104 -109
- package/unbundled/definition65.js +100 -104
- package/unbundled/definition66.cjs +1004 -66
- package/unbundled/definition66.js +1003 -58
- package/unbundled/definition67.cjs +107 -156
- package/unbundled/definition67.js +103 -151
- package/unbundled/definition68.cjs +71 -123
- package/unbundled/definition68.js +67 -118
- package/unbundled/definition69.cjs +163 -52
- package/unbundled/definition69.js +159 -47
- package/unbundled/definition7.cjs +0 -1
- package/unbundled/definition7.js +10 -4
- package/unbundled/definition70.cjs +146 -76
- package/unbundled/definition70.js +145 -71
- package/unbundled/definition71.cjs +66 -22
- package/unbundled/definition71.js +63 -15
- package/unbundled/definition72.cjs +88 -76
- package/unbundled/definition72.js +85 -72
- package/unbundled/definition73.cjs +20 -306
- package/unbundled/definition73.js +16 -229
- package/unbundled/definition74.cjs +77 -316
- package/unbundled/definition74.js +76 -307
- package/unbundled/definition75.cjs +310 -31
- package/unbundled/definition75.js +233 -24
- package/unbundled/definition76.cjs +316 -110
- package/unbundled/definition76.js +307 -106
- package/unbundled/definition77.cjs +26 -251
- package/unbundled/definition77.js +22 -246
- package/unbundled/definition78.cjs +147 -27
- package/unbundled/definition78.js +139 -25
- package/unbundled/definition79.cjs +230 -117
- package/unbundled/definition79.js +227 -107
- package/unbundled/definition8.cjs +17 -10
- package/unbundled/definition8.js +17 -9
- package/unbundled/definition80.cjs +28 -203
- package/unbundled/definition80.js +26 -193
- package/unbundled/definition81.cjs +125 -477
- package/unbundled/definition81.js +118 -473
- package/unbundled/definition82.cjs +220 -0
- package/unbundled/definition82.js +203 -0
- package/unbundled/definition83.cjs +517 -0
- package/unbundled/definition83.js +498 -0
- package/unbundled/definition9.cjs +4 -3
- package/unbundled/definition9.js +4 -2
- package/unbundled/delegates-aria.cjs +4 -2
- package/unbundled/delegates-aria.js +4 -2
- package/unbundled/divider.cjs +8 -3
- package/unbundled/divider.js +3 -3
- package/unbundled/en-US.cjs +34 -33
- package/unbundled/en-US.js +34 -33
- package/unbundled/extractOptions.cjs +5 -5
- package/unbundled/extractOptions.js +2 -2
- 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 +66 -0
- package/unbundled/icon.js +61 -0
- package/unbundled/kbd-shortcut.cjs +0 -1
- package/unbundled/linkable.cjs +1 -2
- package/unbundled/linkable.js +1 -1
- package/unbundled/listbox.cjs +8 -5
- package/unbundled/listbox.js +7 -3
- package/unbundled/localized.cjs +0 -1
- package/unbundled/mixins.cjs +3 -53
- package/unbundled/mixins.js +3 -46
- package/unbundled/numberConverter.cjs +8 -3
- package/unbundled/numberConverter.js +8 -3
- package/unbundled/optgroup.cjs +65 -0
- package/unbundled/optgroup.js +54 -0
- package/unbundled/option.cjs +183 -0
- package/unbundled/option.js +166 -0
- 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 +3 -4
- package/unbundled/time-selection-picker.template.js +3 -3
- 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 +807 -1341
- 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/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/lib/{accordion/variations.browser-spec.d.ts → listbox/index.d.ts} +0 -0
- /package/unbundled/{chunk.js → rolldown-runtime.js} +0 -0
package/bundled/definition19.js
CHANGED
|
@@ -6,27 +6,30 @@ import { t as d } from "./when.js";
|
|
|
6
6
|
import { t as f } from "./decorate.js";
|
|
7
7
|
import { t as p } from "./listbox.js";
|
|
8
8
|
import { t as m } from "./class-names.js";
|
|
9
|
-
import { a as
|
|
10
|
-
import { t as
|
|
11
|
-
import { r as
|
|
12
|
-
import { t as
|
|
13
|
-
import { a as
|
|
14
|
-
import { n as
|
|
9
|
+
import { a as ee, i as h, o as g, s as _, t as v } from "./key-codes.js";
|
|
10
|
+
import { t as y } from "./numbers.js";
|
|
11
|
+
import { r as b } from "./aria-binding-directive.js";
|
|
12
|
+
import { t as x } from "./definition2.js";
|
|
13
|
+
import { a as S, i as C, n as w } from "./affix.js";
|
|
14
|
+
import { n as T, t as E } from "./host-semantics.js";
|
|
15
|
+
import { t as D } from "./component-enum.js";
|
|
15
16
|
import { n as O } from "./form-associated.js";
|
|
16
|
-
import { i as k, r as A, t as j } from "./
|
|
17
|
-
import { i as M, t as N } from "./
|
|
17
|
+
import { i as k, r as A, t as j } from "./definition5.js";
|
|
18
|
+
import { i as M, t as N } from "./definition7.js";
|
|
18
19
|
import { t as P } from "./dialog.js";
|
|
19
|
-
import { n as F
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import {
|
|
20
|
+
import { n as F } from "./feedback-message.js";
|
|
21
|
+
import { t as te } from "./form-element.js";
|
|
22
|
+
import { t as I } from "./with-contextual-help.js";
|
|
23
|
+
import { t as L } from "./with-error-text.js";
|
|
24
|
+
import { t as R } from "./with-success-text.js";
|
|
25
|
+
import { n as z } from "./mixins.js";
|
|
26
|
+
import { t as B } from "./option.js";
|
|
27
|
+
import { t as V } from "./definition17.js";
|
|
25
28
|
import { t as H } from "./definition18.js";
|
|
26
29
|
//#region src/lib/select/select.scss?inline
|
|
27
|
-
var U = ".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)}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);--focus-stroke-gap-color:transparent;flex-direction:column;gap:4px;display:inline-flex}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-600);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.control{
|
|
30
|
+
var U = ".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)}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);--focus-stroke-gap-color:transparent;flex-direction:column;gap:4px;display:inline-flex}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-600);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.control{border-radius:var(--_select-control-border-radius);block-size:var(--_select-block-size);padding-inline:var(--_select-padding-inline);--_select-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_select-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_select-padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);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:8px;transition:box-shadow .2s,background-color .2s;display:flex}.control.size-condensed{--_select-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_select-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_select-padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control.size-condensed:not(.shape-pill){--_select-control-border-radius:4px}.control-wrapper{position:relative}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}.control:not(.shape-pill){--_select-control-border-radius:8px}.control.shape-pill{--_select-control-border-radius:24px}.listbox{max-height:var(--select-height,408px);flex-direction:column;gap:2px;padding:4px;display:flex;overflow-y:auto}:host([multiple]:focus-visible) .listbox{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));border-radius:8px}.selected-value{white-space:nowrap;flex-grow:1;align-items:center;column-gap:12px;display:flex;overflow:hidden}.selected-value .text{text-overflow:ellipsis;max-inline-size:100%;overflow:hidden}.control.shows-placeholder .selected-value .text{color:var(--vvd-color-neutral-600)}.selected-value slot[name=icon]{flex:0 0 var(--_select-icon-size);font-size:var(--_select-icon-size);line-height:1}.control.has-meta .selected-value{padding-inline-end:8px}.feedback-wrapper{display:contents}::part(popup-base){inline-size:max-content;min-inline-size:var(--_select-fixed-width,100%)}:host([multiple]) ::part(popup-base){position:static}@supports selector(:has(*)){:host(:focus-within) .control:not(.has-activedescendant,:has(.clear-button:focus)){--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))}}@supports not selector(:has(*)){:host(:focus-within) .control:not(.has-activedescendant){--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}:host(:not(:focus-visible)){--_suppressable-focus-shadow:none;--_suppressable-focus-outline:none;--_suppressable-focus-outline-offset:0}:host([multiple]) .clear-button{margin-inline-start:auto}:host([multiple][clearable]) .label-wrapper{min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}", W = D(["fieldset", "ghost"], "fieldset"), G = class extends z(I(L(R(e(te(E(w(O(p))))))))) {
|
|
28
31
|
constructor(...e) {
|
|
29
|
-
super(...e), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId =
|
|
32
|
+
super(...e), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId = b("listbox-"), this.maxHeight = 0, this.fixedDropdown = !1, this._feedbackWrapper = null, this._isResetting = !1, this.clearable = !1, this._isClearButtonFocused = !1;
|
|
30
33
|
}
|
|
31
34
|
get activeOption() {
|
|
32
35
|
return this.options[this.activeIndex];
|
|
@@ -48,25 +51,25 @@ var U = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
48
51
|
checkFirstOption(e) {
|
|
49
52
|
let t = this.getNextSelectableIndex(0);
|
|
50
53
|
t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((e, n) => {
|
|
51
|
-
e.checked =
|
|
54
|
+
e.checked = y(n, t, this.rangeStartIndex + 1) && !e.disabled;
|
|
52
55
|
})) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
|
|
53
56
|
}
|
|
54
57
|
checkLastOption(e) {
|
|
55
58
|
let t = this.getPreviousSelectableIndex(this.length - 1);
|
|
56
59
|
t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((e, n) => {
|
|
57
|
-
e.checked =
|
|
60
|
+
e.checked = y(n, this.rangeStartIndex, t + 1) && !e.disabled;
|
|
58
61
|
})) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
|
|
59
62
|
}
|
|
60
63
|
checkNextOption(e) {
|
|
61
64
|
let t = this.getNextSelectableIndex(this.activeIndex + 1);
|
|
62
65
|
t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((e, n) => {
|
|
63
|
-
e.checked =
|
|
66
|
+
e.checked = y(n, this.rangeStartIndex, t + 1) && !e.disabled;
|
|
64
67
|
})) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
|
|
65
68
|
}
|
|
66
69
|
checkPreviousOption(e) {
|
|
67
70
|
let t = this.getPreviousSelectableIndex(this.activeIndex - 1);
|
|
68
71
|
t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.checkedOptions.length === 1 && (this.rangeStartIndex += 1), this.options.forEach((e, n) => {
|
|
69
|
-
e.checked =
|
|
72
|
+
e.checked = y(n, t, this.rangeStartIndex + 1) && !e.disabled;
|
|
70
73
|
})) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
|
|
71
74
|
}
|
|
72
75
|
focusAndScrollOptionIntoView() {
|
|
@@ -155,7 +158,7 @@ var U = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
155
158
|
multipleChanged(e, t) {
|
|
156
159
|
/* v8 ignore if -- @preserve */
|
|
157
160
|
this.options.forEach((e) => {
|
|
158
|
-
e.checked = t
|
|
161
|
+
e.checked = !t && void 0;
|
|
159
162
|
}), this.setSelectedOptions(), this.proxy && (this.proxy.multiple = t);
|
|
160
163
|
}
|
|
161
164
|
selectedOptionsChanged(e, t) {
|
|
@@ -175,13 +178,13 @@ var U = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
175
178
|
if (this.disabled) return;
|
|
176
179
|
let { key: t, shiftKey: n } = e;
|
|
177
180
|
switch (this.shouldSkipFocus = !1, t) {
|
|
178
|
-
case
|
|
181
|
+
case _:
|
|
179
182
|
this.checkFirstOption(n);
|
|
180
183
|
return;
|
|
181
|
-
case
|
|
184
|
+
case v:
|
|
182
185
|
this.checkNextOption(n);
|
|
183
186
|
return;
|
|
184
|
-
case
|
|
187
|
+
case h:
|
|
185
188
|
this.checkPreviousOption(n);
|
|
186
189
|
return;
|
|
187
190
|
case "End":
|
|
@@ -190,7 +193,7 @@ var U = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
190
193
|
case "Tab":
|
|
191
194
|
this.focusAndScrollOptionIntoView();
|
|
192
195
|
return;
|
|
193
|
-
case
|
|
196
|
+
case g:
|
|
194
197
|
this.uncheckAllOptions(), this.checkActiveIndex();
|
|
195
198
|
return;
|
|
196
199
|
case " ":
|
|
@@ -211,19 +214,19 @@ var U = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
211
214
|
case " ":
|
|
212
215
|
e.preventDefault(), this.collapsible && this.typeaheadExpired && (this.open = !this.open);
|
|
213
216
|
break;
|
|
214
|
-
case
|
|
217
|
+
case _:
|
|
215
218
|
case "End":
|
|
216
219
|
e.preventDefault();
|
|
217
220
|
break;
|
|
218
|
-
case
|
|
221
|
+
case ee:
|
|
219
222
|
e.preventDefault(), this.open = !this.open;
|
|
220
223
|
break;
|
|
221
|
-
case
|
|
224
|
+
case g:
|
|
222
225
|
this.collapsible && this.open && (e.preventDefault(), this.open = !1);
|
|
223
226
|
break;
|
|
224
|
-
case "Tab": return this.collapsible && this.open && (
|
|
227
|
+
case "Tab": return this.collapsible && this.open && (this.open = !1), !0;
|
|
225
228
|
}
|
|
226
|
-
return this.collapsible && !this.open && this.selectedIndex !== t && this.updateValue(!0),
|
|
229
|
+
return this.collapsible && !this.open && this.selectedIndex !== t && this.updateValue(!0), e.key !== "ArrowDown" && e.key !== "ArrowUp";
|
|
227
230
|
}
|
|
228
231
|
connectedCallback() {
|
|
229
232
|
super.connectedCallback(), this.addEventListener("focusout", this.focusoutHandler), this.addEventListener("contentchange", this.updateDisplayValue);
|
|
@@ -281,16 +284,16 @@ var U = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex
|
|
|
281
284
|
}) : this.selectedIndex = -1, this.updateValue(!0);
|
|
282
285
|
}
|
|
283
286
|
};
|
|
284
|
-
f([t],
|
|
287
|
+
f([t], G.prototype, "activeIndex", void 0), f([o({ mode: "boolean" })], G.prototype, "multiple", void 0), f([o({
|
|
285
288
|
attribute: "open",
|
|
286
289
|
mode: "boolean"
|
|
287
|
-
})],
|
|
290
|
+
})], G.prototype, "open", void 0), f([i], G.prototype, "collapsible", null), f([t], G.prototype, "control", void 0), f([t], G.prototype, "maxHeight", void 0), f([t], G.prototype, "_anchor", void 0), f([o()], G.prototype, "scale", void 0), f([o], G.prototype, "appearance", void 0), f([o], G.prototype, "shape", void 0), f([o({
|
|
288
291
|
mode: "boolean",
|
|
289
292
|
attribute: "fixed-dropdown"
|
|
290
|
-
})],
|
|
293
|
+
})], G.prototype, "fixedDropdown", void 0), f([o], G.prototype, "placeholder", void 0), f([t], G.prototype, "_feedbackWrapper", void 0), f([t], G.prototype, "metaSlottedContent", void 0), f([o({ mode: "boolean" })], G.prototype, "clearable", void 0), f([t], G.prototype, "_isClearButtonFocused", void 0);
|
|
291
294
|
//#endregion
|
|
292
295
|
//#region src/lib/select/select.template.ts
|
|
293
|
-
function
|
|
296
|
+
function K() {
|
|
294
297
|
return s` <label
|
|
295
298
|
for="${(e) => e.multiple ? null : "control"}"
|
|
296
299
|
class="label"
|
|
@@ -299,13 +302,13 @@ function G() {
|
|
|
299
302
|
${(e) => e.label}
|
|
300
303
|
</label>`;
|
|
301
304
|
}
|
|
302
|
-
function
|
|
305
|
+
function q(e) {
|
|
303
306
|
let t = e.tagFor(B);
|
|
304
307
|
return s`
|
|
305
308
|
<${t} text="${(e) => e.placeholder}" hidden disabled>
|
|
306
309
|
</${t}>`;
|
|
307
310
|
}
|
|
308
|
-
function
|
|
311
|
+
function J(e) {
|
|
309
312
|
let t = e.tagFor(k);
|
|
310
313
|
return s`
|
|
311
314
|
<${t}
|
|
@@ -330,39 +333,39 @@ function q(e) {
|
|
|
330
333
|
></${t}>
|
|
331
334
|
`;
|
|
332
335
|
}
|
|
333
|
-
function
|
|
334
|
-
let t =
|
|
336
|
+
function Y(e) {
|
|
337
|
+
let t = S(e), n = A(e);
|
|
335
338
|
return s` <div
|
|
336
|
-
class="control ${(e) => m(["has-activedescendant", !!e._activeDescendant && e.open], ["disabled", e.disabled],
|
|
339
|
+
class="control ${(e) => m(["has-activedescendant", !!e._activeDescendant && e.open], ["disabled", e.disabled], "connotation-accent", `appearance-${W.parse(e.appearance)}`, "with-idle", "with-hover", "with-disabled", "with-readonly", "with-error", "with-success", [`shape-${e.shape}`, !!e.shape], ["has-meta", !!e.metaSlottedContent?.length], ["error", !!e.errorValidationMessage], ["success", !!e.successText], ["shows-placeholder", !!e.placeholder && !e.value], [`size-${e.scale}`, !!e.scale])}"
|
|
337
340
|
${u("_anchor")}
|
|
338
341
|
id="control"
|
|
339
342
|
?disabled="${(e) => e.disabled}"
|
|
340
343
|
>
|
|
341
344
|
<div class="selected-value">
|
|
342
|
-
${(e) => t(e.icon,
|
|
345
|
+
${(e) => t(e.icon, C.Slot)}
|
|
343
346
|
<span class="text">${(e) => e.displayValue}</span>
|
|
344
347
|
<slot name="meta" ${l("metaSlottedContent")}></slot>
|
|
345
348
|
</div>
|
|
346
|
-
${d((e) => e._shouldShowClearButton,
|
|
349
|
+
${d((e) => e._shouldShowClearButton, J(e))}
|
|
347
350
|
${n}
|
|
348
351
|
</div>`;
|
|
349
352
|
}
|
|
350
|
-
function
|
|
353
|
+
function X(e) {
|
|
351
354
|
return e.open && e.fixedDropdown ? `--_select-fixed-width: ${Math.round(e.getBoundingClientRect().width)}px` : null;
|
|
352
355
|
}
|
|
353
|
-
function
|
|
356
|
+
function Z(e) {
|
|
354
357
|
let t = e.tagFor(M);
|
|
355
358
|
return s`
|
|
356
359
|
<div class="label-wrapper" ?hidden=${(e) => !e._shouldShowLabelWrapper}>
|
|
357
|
-
${d((e) => e.label,
|
|
358
|
-
${d((e) => e.multiple && e._shouldShowClearButton,
|
|
360
|
+
${d((e) => e.label, K())}
|
|
361
|
+
${d((e) => e.multiple && e._shouldShowClearButton, J(e))}
|
|
359
362
|
<slot name="contextual-help" ${l("_contextualHelpSlottedContent")}></slot>
|
|
360
363
|
</div>
|
|
361
364
|
<div class="control-wrapper">
|
|
362
|
-
${d((e) => !e.multiple,
|
|
365
|
+
${d((e) => !e.multiple, Y(e))}
|
|
363
366
|
<${t} class="popup"
|
|
364
|
-
style="${
|
|
365
|
-
?open="${(e) => e.collapsible
|
|
367
|
+
style="${X}"
|
|
368
|
+
?open="${(e) => !e.collapsible || e.open}"
|
|
366
369
|
:anchor="${(e) => e._anchor}"
|
|
367
370
|
placement="bottom-start"
|
|
368
371
|
strategy="${(e) => e.fixedDropdown ? null : "absolute"}">
|
|
@@ -375,7 +378,7 @@ function X(e) {
|
|
|
375
378
|
?disabled="${(e) => e.disabled}"
|
|
376
379
|
?hidden="${(e) => e.collapsible ? !e.open : !1}"
|
|
377
380
|
${u("listbox")}>
|
|
378
|
-
${d((e) => e.placeholder,
|
|
381
|
+
${d((e) => e.placeholder, q(e))}
|
|
379
382
|
<slot
|
|
380
383
|
${l({
|
|
381
384
|
filter: p.slottedOptionFilter,
|
|
@@ -388,7 +391,7 @@ function X(e) {
|
|
|
388
391
|
</div>
|
|
389
392
|
`;
|
|
390
393
|
}
|
|
391
|
-
function
|
|
394
|
+
function Q(e) {
|
|
392
395
|
return (t, n) => {
|
|
393
396
|
if (!n.event.composedPath().includes(t._feedbackWrapper)) {
|
|
394
397
|
e(t, n.event);
|
|
@@ -397,11 +400,14 @@ function Z(e) {
|
|
|
397
400
|
return !0;
|
|
398
401
|
};
|
|
399
402
|
}
|
|
403
|
+
function ne(e) {
|
|
404
|
+
return (t, n) => n.event.composedPath().includes(t._feedbackWrapper) ? !0 : e(t, n.event);
|
|
405
|
+
}
|
|
400
406
|
//#endregion
|
|
401
407
|
//#region src/lib/select/definition.ts
|
|
402
|
-
var
|
|
408
|
+
var $ = c("select", G, (e) => s`
|
|
403
409
|
<template
|
|
404
|
-
${
|
|
410
|
+
${T({
|
|
405
411
|
role: "combobox",
|
|
406
412
|
ariaLabel: (e) => e.ariaLabel ?? e.label,
|
|
407
413
|
ariaHasPopup: (e) => e.collapsible ? "listbox" : "false",
|
|
@@ -412,24 +418,24 @@ var Q = c("select", W, (e) => s`
|
|
|
412
418
|
aria-activedescendant="${(e) => e.open ? e._activeDescendant : null}"
|
|
413
419
|
aria-describedby="${(e) => e._feedbackDescribedBy}"
|
|
414
420
|
tabindex="${(e) => e.disabled ? null : "0"}"
|
|
415
|
-
@click="${
|
|
416
|
-
@focusin="${
|
|
417
|
-
@focusout="${
|
|
418
|
-
@keydown="${
|
|
419
|
-
@mousedown="${
|
|
421
|
+
@click="${Q((e, t) => e.clickHandler(t))}"
|
|
422
|
+
@focusin="${Q((e, t) => e.focusinHandler(t))}"
|
|
423
|
+
@focusout="${Q((e, t) => e.focusoutHandler(t))}"
|
|
424
|
+
@keydown="${ne((e, t) => (e.open && P(t), e.keydownHandler(t)))}"
|
|
425
|
+
@mousedown="${Q((e, t) => e.mousedownHandler(t))}"
|
|
420
426
|
>
|
|
421
|
-
${
|
|
427
|
+
${Z(e)}
|
|
422
428
|
<div class="feedback-wrapper" ${u("_feedbackWrapper")}>
|
|
423
429
|
${(t) => t._getFeedbackTemplate(e)}
|
|
424
430
|
</div>
|
|
425
431
|
</template>
|
|
426
432
|
`, [
|
|
427
433
|
N,
|
|
428
|
-
|
|
434
|
+
x,
|
|
429
435
|
V,
|
|
430
436
|
H,
|
|
431
437
|
j,
|
|
432
|
-
|
|
433
|
-
], { styles: U }),
|
|
438
|
+
F
|
|
439
|
+
], { styles: U }), re = r($);
|
|
434
440
|
//#endregion
|
|
435
|
-
export {
|
|
441
|
+
export { $ as n, G as r, re as t };
|
package/bundled/definition2.cjs
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
const e=require(`./localized.cjs`),t=require(`./vivid-element.cjs`),n=require(`./decorate.cjs`),r=require(`./aria.cjs`),i=require(`./key-codes.cjs`),a=require(`./numbers.cjs`),o=require(`./delegates-aria.cjs`),s=require(`./form-associated.cjs`),c=require(`./definition8.cjs`),l=require(`./slider.template.cjs`);var u;(function(e){e.ltr=`ltr`,e.rtl=`rtl`})(u||={});var d=`:host{display:inline-block}:host(:not([orientation=vertical])){inline-size:100%}:host([orientation=vertical]){block-size:100%;min-block-size:calc(var(--_thumb-interaction-indicator-size) * 5)}:host([disabled]){cursor:not-allowed}.control.connotation-cta{--_connotation-color-primary:var(--vvd-slider-cta-primary,var(--vvd-color-cta-500))}.control:not(.connotation-cta){--_connotation-color-primary:var(--vvd-slider-accent-primary,var(--vvd-color-canvas-text))}.control{--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary);--_appearance-color-outline:transparent;--_thumb-size:12px;--_thumb-interaction-indicator-size:36px;--_track-start-inset-inline-start:0;--_track-start-inset-block-start:0;cursor:pointer;user-select:none;outline:none}.control .positioning-region{position:relative}.control .track{background:var(--_track-background-color);border-radius:4px;position:absolute}.control .track-start{border-radius:inherit;background:var(--_track-start-background-color);block-size:100%;position:absolute;inset-inline-start:var(--_track-start-inset-inline-start)}.control.horizontal{block-size:var(--_thumb-interaction-indicator-size);inline-size:calc(100% - var(--_thumb-size));min-inline-size:var(--_thumb-size);margin-inline-start:calc(var(--_thumb-size) / 2)}.control.horizontal .track{top:calc((var(--_thumb-interaction-indicator-size) - 2px) / 2);block-size:2px;left:0;right:0}:host([markers]) .control.horizontal .track-start{--_track-start-inset-inline-start:1px;border-top-left-radius:0;border-bottom-left-radius:0}.control.horizontal .track .mark{block-size:6px;inline-size:100%;position:absolute;inset-block-start:-2px;inset-inline-start:0}.control.vertical{margin-top:calc(var(--_thumb-interaction-indicator-size) / 2);block-size:calc(100% - var(--_thumb-interaction-indicator-size));inline-size:var(--_thumb-interaction-indicator-size);min-block-size:var(--_thumb-interaction-indicator-size)}.control.vertical .positioning-region{block-size:100%}.control.vertical .track{left:calc((var(--_thumb-interaction-indicator-size) - 2px) / 2);block-size:100%;inline-size:2px}.control.vertical .track .mark{block-size:100%;inline-size:6px;position:absolute;inset-block-start:0;inset-inline-start:-2px}.control.vertical .track-start{block-size:auto;inline-size:100%;inset-block-start:var(--_track-start-inset-block-start)}:host([markers]) .control.vertical .track-start{--_track-start-inset-block-start:1px;border-radius:0}.control.disabled{--_track-background-color:var(--vvd-color-neutral-100);--_track-start-background-color:var(--vvd-color-neutral-300);pointer-events:none}.control:not(.disabled){--_track-background-color:var(--vvd-color-neutral-300);--_track-start-background-color:var(--_appearance-color-fill)}.control:not(.disabled) .mark{color:var(--vvd-color-neutral-950)}.control.disabled .mark{color:var(--_track-start-background-color)}.thumb-container{block-size:var(--_thumb-interaction-indicator-size);cursor:inherit;inline-size:var(--_thumb-interaction-indicator-size);touch-action:none;border-radius:50%;outline:none;position:absolute}.thumb-container.focus-visible{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;--_thumb-interaction-indicator-alpha:.05;border-radius:50%}.control.horizontal .thumb-container{transform:translateX(calc(var(--_thumb-interaction-indicator-size) / 2))}.control.vertical .thumb-container{transform:translateY(calc(var(--_thumb-interaction-indicator-size) / 2))}@media (hover:hover){.control:not(.disabled) .thumb-container:hover{--_thumb-interaction-indicator-alpha:.12}}.control:not(.disabled) .thumb-container:active{--_thumb-interaction-indicator-alpha:.25}.thumb-container:before{border-radius:inherit;background-color:var(--_track-start-background-color);block-size:var(--_thumb-interaction-indicator-size);content:"";inline-size:var(--_thumb-interaction-indicator-size);opacity:var(--_thumb-interaction-indicator-alpha,0);display:block;position:absolute}@media (prefers-reduced-motion:no-preference){.thumb-container:before{transition:opacity .2s ease-out}}.thumb-container:after{border-radius:inherit;background-color:var(--_track-start-background-color);block-size:var(--_thumb-size);content:"";inline-size:var(--_thumb-size);inset:calc((var(--_thumb-interaction-indicator-size) - var(--_thumb-size)) / 2);display:block;position:absolute}.popup{pointer-events:none}.tooltip{width:auto;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);padding:8px 12px}:host([internal-part]) .thumb-container{opacity:0}@media (prefers-reduced-motion:no-preference){:host([internal-part]) .thumb-container{transition:opacity .2s}}:host([internal-part]) .control.horizontal .track{block-size:4px;top:16px;overflow:hidden}:host([internal-part]) .control:focus .thumb-container{opacity:1}@media (hover:hover){:host([internal-part]) .control:hover .thumb-container{opacity:1}}`,f=e=>{let t=e.closest(`[dir]`);return t!==null&&t.dir===`rtl`?u.rtl:u.ltr},p={singleValue:`single-value`},m=class extends e.t(o.t(s.n(t.t))){constructor(...e){super(...e),this.proxy=document.createElement(`input`),this.direction=u.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=e=>parseFloat(e).toLocaleString(this.locale.lang),this.min=0,this.max=10,this.step=1,this.orientation=r.t.horizontal,this.mode=p.singleValue,this.keypressHandler=e=>{if(this._focusVisible=!0,!this.readOnly)if(e.key===`Home`)e.preventDefault(),this.value=`${this.min}`;else if(e.key===`End`)e.preventDefault(),this.value=`${this.max}`;else{if(e.shiftKey)return;switch(e.key){case i.r:case i.i:e.preventDefault(),this.increment();break;case i.n:case i.t:e.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{let e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{let t=e?`removeEventListener`:`addEventListener`;this[t](`keydown`,this.keypressHandler),this[t](`mousedown`,this.handleMouseDown),this.thumb[t](`mousedown`,this.handleThumbMouseDown,{passive:!0}),this.thumb[t](`touchstart`,this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue=``,this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;this.#r=!0,e.target.focus(),this.#r=!1}let t=e===null?`removeEventListener`:`addEventListener`;window[t](`mouseup`,this.handleWindowMouseUp),window[t](`mousemove`,this.handleMouseMove,{passive:!0}),window[t](`touchmove`,this.handleMouseMove,{passive:!0}),window[t](`touchend`,this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;let t=`TouchEvent`in window&&e instanceof TouchEvent?e.touches[0]:e,n=this.#t(t);this.value=`${this.#n(n)}`},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{let t=e===null?`removeEventListener`:`addEventListener`;if((e===null||!this.disabled&&!this.readOnly)&&(window[t](`mouseup`,this.handleWindowMouseUp),window.document[t](`mouseleave`,this.handleWindowMouseUp),window[t](`mousemove`,this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),this.#r=!0,e.target.focus(),this.#r=!1;let t=this.#t(e);this.value=`${this.#n(t)}`,this.isDragging=!0}},this.markers=!1,this.pin=!1,this._focusVisible=!1,this._hoveringOnThumb=!1,this.#r=!1,this._onFocusIn=()=>{this.#r||(this._focusVisible=!0),this.#r=!1},this._onFocusOut=()=>{this._focusVisible=!1},this.#o=()=>{document.hidden&&this.shadowRoot.activeElement!==null&&(this.#r=!0)},this.#s=()=>{this._hoveringOnThumb=!0},this.#c=()=>{this._hoveringOnThumb=!1}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){if(super.valueChanged(e,t),this.$fastController.isConnected){let e=parseFloat(t),n=this.#n(e).toString();if(n!==t){this.value=n;return}this.setThumbPositionForOrientation(this.direction),this.$emit(`change`)}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,`range`),this.direction=f(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),this.#i(),document.addEventListener(`visibilitychange`,this.#o)}disconnectedCallback(){this.setupListeners(!0),this.#a(),document.removeEventListener(`visibilitychange`,this.#o)}increment(){let e=this.direction!==u.rtl&&this.orientation!==r.t.vertical?Number(this.value)+this.step:Number(this.value)-this.step;this.value=this.#n(e).toString()}decrement(){let e=this.direction!==u.rtl&&this.orientation!==r.t.vertical?Number(this.value)-this.step:Number(this.value)+this.step;this.value=this.#n(e).toString()}setThumbPositionForOrientation(e){let t=this.#e(this.valueAsNumber);this.orientation===r.t.horizontal?this.position=this.isDragging?`right: ${t}%; transition: none;`:`right: ${t}%; transition: right 0.2s ease;`:this.position=this.isDragging?`bottom: ${t}%; transition: none;`:`bottom: ${t}%; transition: bottom 0.2s ease;`}#e(e){return(1-l.r(this.min,this.max,e))*100}updateStepMultiplier(){let e=String(this.step),t=this.step%1?e.length-e.indexOf(`.`)-1:0;this.stepMultiplier=10**t}get midpoint(){return`${this.#n((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value==`string`)if(this.value.length===0)this.initialValue=this.midpoint;else{let e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}#t(e){let t=this.track.getBoundingClientRect(),[n,i,a]=this.orientation===r.t.horizontal?[this.track.clientLeft,this.track.clientWidth,e.pageX-document.documentElement.scrollLeft-this.getBoundingClientRect().left]:[t.top,t.bottom,e.pageY-document.documentElement.scrollTop];return l.i(this.min,this.max,l.r(n,i,a))}#n(e){return a.n(this.min,this.max,l.o(e-this.min,this.step)+this.min)}get _isThumbPopupOpen(){return this._focusVisible||this._hoveringOnThumb||this.isDragging}#r;#i(){this.thumb.addEventListener(`mouseover`,this.#s,{passive:!0}),this.thumb.addEventListener(`mouseout`,this.#c,{passive:!0})}#a(){this.thumb.removeEventListener(`mouseover`,this.#s),this.thumb.removeEventListener(`mouseout`,this.#c)}#o;#s;#c};n.t([t.m({attribute:`readonly`,mode:`boolean`})],m.prototype,`readOnly`,void 0),n.t([t.A],m.prototype,`direction`,void 0),n.t([t.A],m.prototype,`isDragging`,void 0),n.t([t.A],m.prototype,`position`,void 0),n.t([t.A],m.prototype,`trackWidth`,void 0),n.t([t.A],m.prototype,`trackMinWidth`,void 0),n.t([t.A],m.prototype,`trackHeight`,void 0),n.t([t.A],m.prototype,`trackLeft`,void 0),n.t([t.A],m.prototype,`trackMinHeight`,void 0),n.t([t.A],m.prototype,`valueTextFormatter`,void 0),n.t([t.m({converter:t.h})],m.prototype,`min`,void 0),n.t([t.m({converter:t.h})],m.prototype,`max`,void 0),n.t([t.m({converter:l.a})],m.prototype,`step`,void 0),n.t([t.m],m.prototype,`orientation`,void 0),n.t([t.m],m.prototype,`mode`,void 0),n.t([t.m({mode:`boolean`})],m.prototype,`markers`,void 0),n.t([t.m({mode:`boolean`})],m.prototype,`pin`,void 0),n.t([t.m],m.prototype,`connotation`,void 0),n.t([t.A],m.prototype,`_focusVisible`,void 0),n.t([t.A],m.prototype,`_hoveringOnThumb`,void 0),n.t([t.j],m.prototype,`_isThumbPopupOpen`,null);var h=t.u(`slider`,m,l.t,[c.t],{styles:d,shadowOptions:{delegatesFocus:!0}}),g=t.d(h);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
|
1
|
+
const e=require("./vivid-element.cjs"),t=require("./when.cjs"),n=require("./class-names.cjs"),r=require("./icon.cjs");var i=e.u(`icon`,r.t,()=>{let r=e=>!e.label||e.label.trim().length===0;return e.p`
|
|
2
|
+
<span
|
|
3
|
+
class="${e=>n.t(`control`,[`connotation-${e.connotation}`,!!e.connotation],[`size-${e.size}`,typeof e.size==`number`])}"
|
|
4
|
+
role="${e=>r(e)?null:`img`}"
|
|
5
|
+
?aria-hidden="${e=>r(e)}"
|
|
6
|
+
aria-label="${e=>e.label||null}"
|
|
7
|
+
?aria-busy="${e=>!e?.iconLoaded}"
|
|
8
|
+
>
|
|
9
|
+
<slot aria-hidden="true">
|
|
10
|
+
${t.t(e=>e?.iconLoaded&&e?._svg,t=>e.p`${e.p.partial(t._svg)}`)}
|
|
11
|
+
</slot>
|
|
12
|
+
</span>
|
|
13
|
+
`},[],{styles:`:host{vertical-align:sub;display:inline-block}.control.size--6{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)) - 1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20))}.control.size--4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 12))}.control.size--2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.control.size--1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 4))}.control.size-0{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.control.size-1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 4))}.control.size-2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8))}.control.size-3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 12))}.control.size-4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 16))}.control.size-5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 20))}.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size:1em}.control{margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size);display:flex}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){block-size:inherit;inline-size:inherit;margin:auto}`}),a=e.d(i);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
package/bundled/definition2.js
CHANGED
|
@@ -1,187 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { i as u, n as d, r as f, t as p } from "./key-codes.js";
|
|
6
|
-
import { n as m } from "./numbers.js";
|
|
7
|
-
import { t as h } from "./delegates-aria.js";
|
|
8
|
-
import { n as g } from "./form-associated.js";
|
|
9
|
-
import { t as _ } from "./definition8.js";
|
|
10
|
-
import { a as v, i as y, o as b, r as x, t as S } from "./slider.template.js";
|
|
11
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-web-utilities@6.0.0/node_modules/@microsoft/fast-web-utilities/dist/localization.js
|
|
12
|
-
var C;
|
|
13
|
-
(function(e) {
|
|
14
|
-
e.ltr = "ltr", e.rtl = "rtl";
|
|
15
|
-
})(C ||= {});
|
|
1
|
+
import { d as e, p as t, u as n } from "./vivid-element.js";
|
|
2
|
+
import { t as r } from "./when.js";
|
|
3
|
+
import { t as i } from "./class-names.js";
|
|
4
|
+
import { t as a } from "./icon.js";
|
|
16
5
|
//#endregion
|
|
17
|
-
//#region src/lib/
|
|
18
|
-
var
|
|
19
|
-
let
|
|
20
|
-
return t
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
case p:
|
|
35
|
-
e.preventDefault(), this.decrement();
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}, this.setupTrackConstraints = () => {
|
|
40
|
-
let e = this.track.getBoundingClientRect();
|
|
41
|
-
this.trackWidth = this.track.clientWidth, this.trackMinWidth = this.track.clientLeft, this.trackHeight = e.bottom, this.trackMinHeight = e.top, this.trackLeft = this.getBoundingClientRect().left, this.trackWidth === 0 && (this.trackWidth = 1);
|
|
42
|
-
}, this.setupListeners = (e = !1) => {
|
|
43
|
-
let t = e ? "removeEventListener" : "addEventListener";
|
|
44
|
-
this[t]("keydown", this.keypressHandler), this[t]("mousedown", this.handleMouseDown), this.thumb[t]("mousedown", this.handleThumbMouseDown, { passive: !0 }), this.thumb[t]("touchstart", this.handleThumbMouseDown, { passive: !0 }), e && (this.handleMouseDown(null), this.handleThumbMouseDown(null));
|
|
45
|
-
}, this.initialValue = "", this.handleThumbMouseDown = (e) => {
|
|
46
|
-
if (e) {
|
|
47
|
-
if (this.readOnly || this.disabled || e.defaultPrevented) return;
|
|
48
|
-
this.#r = !0, e.target.focus(), this.#r = !1;
|
|
49
|
-
}
|
|
50
|
-
let t = e === null ? "removeEventListener" : "addEventListener";
|
|
51
|
-
window[t]("mouseup", this.handleWindowMouseUp), window[t]("mousemove", this.handleMouseMove, { passive: !0 }), window[t]("touchmove", this.handleMouseMove, { passive: !0 }), window[t]("touchend", this.handleWindowMouseUp), this.isDragging = e !== null;
|
|
52
|
-
}, this.handleMouseMove = (e) => {
|
|
53
|
-
if (this.readOnly || this.disabled || e.defaultPrevented) return;
|
|
54
|
-
let t = "TouchEvent" in window && e instanceof TouchEvent ? e.touches[0] : e, n = this.#t(t);
|
|
55
|
-
this.value = `${this.#n(n)}`;
|
|
56
|
-
}, this.handleWindowMouseUp = (e) => {
|
|
57
|
-
this.stopDragging();
|
|
58
|
-
}, this.stopDragging = () => {
|
|
59
|
-
this.isDragging = !1, this.handleMouseDown(null), this.handleThumbMouseDown(null);
|
|
60
|
-
}, this.handleMouseDown = (e) => {
|
|
61
|
-
let t = e === null ? "removeEventListener" : "addEventListener";
|
|
62
|
-
if ((e === null || !this.disabled && !this.readOnly) && (window[t]("mouseup", this.handleWindowMouseUp), window.document[t]("mouseleave", this.handleWindowMouseUp), window[t]("mousemove", this.handleMouseMove), e)) {
|
|
63
|
-
e.preventDefault(), this.setupTrackConstraints(), this.#r = !0, e.target.focus(), this.#r = !1;
|
|
64
|
-
let t = this.#t(e);
|
|
65
|
-
this.value = `${this.#n(t)}`, this.isDragging = !0;
|
|
66
|
-
}
|
|
67
|
-
}, this.markers = !1, this.pin = !1, this._focusVisible = !1, this._hoveringOnThumb = !1, this.#r = !1, this._onFocusIn = () => {
|
|
68
|
-
this.#r || (this._focusVisible = !0), this.#r = !1;
|
|
69
|
-
}, this._onFocusOut = () => {
|
|
70
|
-
this._focusVisible = !1;
|
|
71
|
-
}, this.#o = () => {
|
|
72
|
-
document.hidden && this.shadowRoot.activeElement !== null && (this.#r = !0);
|
|
73
|
-
}, this.#s = () => {
|
|
74
|
-
this._hoveringOnThumb = !0;
|
|
75
|
-
}, this.#c = () => {
|
|
76
|
-
this._hoveringOnThumb = !1;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
readOnlyChanged() {
|
|
80
|
-
/* v8 ignore if -- @preserve */
|
|
81
|
-
this.proxy instanceof HTMLInputElement && (this.proxy.readOnly = this.readOnly);
|
|
82
|
-
}
|
|
83
|
-
get valueAsNumber() {
|
|
84
|
-
return parseFloat(this.value);
|
|
85
|
-
}
|
|
86
|
-
set valueAsNumber(e) {
|
|
87
|
-
this.value = e.toString();
|
|
88
|
-
}
|
|
89
|
-
valueChanged(e, t) {
|
|
90
|
-
if (super.valueChanged(e, t), this.$fastController.isConnected) {
|
|
91
|
-
let e = parseFloat(t), n = this.#n(e).toString();
|
|
92
|
-
if (n !== t) {
|
|
93
|
-
this.value = n;
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
this.setThumbPositionForOrientation(this.direction), this.$emit("change");
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
minChanged() {
|
|
100
|
-
this.proxy instanceof HTMLInputElement && (this.proxy.min = `${this.min}`), this.validate();
|
|
101
|
-
}
|
|
102
|
-
maxChanged() {
|
|
103
|
-
this.proxy instanceof HTMLInputElement && (this.proxy.max = `${this.max}`), this.validate();
|
|
104
|
-
}
|
|
105
|
-
stepChanged() {
|
|
106
|
-
this.proxy instanceof HTMLInputElement && (this.proxy.step = `${this.step}`), this.updateStepMultiplier(), this.validate();
|
|
107
|
-
}
|
|
108
|
-
orientationChanged() {
|
|
109
|
-
this.$fastController.isConnected && this.setThumbPositionForOrientation(this.direction);
|
|
110
|
-
}
|
|
111
|
-
connectedCallback() {
|
|
112
|
-
super.connectedCallback(), this.proxy.setAttribute("type", "range"), this.direction = T(this), this.updateStepMultiplier(), this.setupTrackConstraints(), this.setupListeners(), this.setupDefaultValue(), this.setThumbPositionForOrientation(this.direction), this.#i(), document.addEventListener("visibilitychange", this.#o);
|
|
113
|
-
}
|
|
114
|
-
disconnectedCallback() {
|
|
115
|
-
this.setupListeners(!0), this.#a(), document.removeEventListener("visibilitychange", this.#o);
|
|
116
|
-
}
|
|
117
|
-
increment() {
|
|
118
|
-
let e = this.direction !== C.rtl && this.orientation !== l.vertical ? Number(this.value) + this.step : Number(this.value) - this.step;
|
|
119
|
-
this.value = this.#n(e).toString();
|
|
120
|
-
}
|
|
121
|
-
decrement() {
|
|
122
|
-
let e = this.direction !== C.rtl && this.orientation !== l.vertical ? Number(this.value) - this.step : Number(this.value) + this.step;
|
|
123
|
-
this.value = this.#n(e).toString();
|
|
124
|
-
}
|
|
125
|
-
setThumbPositionForOrientation(e) {
|
|
126
|
-
let t = this.#e(this.valueAsNumber);
|
|
127
|
-
this.orientation === l.horizontal ? this.position = this.isDragging ? `right: ${t}%; transition: none;` : `right: ${t}%; transition: right 0.2s ease;` : this.position = this.isDragging ? `bottom: ${t}%; transition: none;` : `bottom: ${t}%; transition: bottom 0.2s ease;`;
|
|
128
|
-
}
|
|
129
|
-
#e(e) {
|
|
130
|
-
return (1 - x(this.min, this.max, e)) * 100;
|
|
131
|
-
}
|
|
132
|
-
updateStepMultiplier() {
|
|
133
|
-
let e = String(this.step), t = this.step % 1 ? e.length - e.indexOf(".") - 1 : 0;
|
|
134
|
-
this.stepMultiplier = 10 ** t;
|
|
135
|
-
}
|
|
136
|
-
get midpoint() {
|
|
137
|
-
return `${this.#n((this.max + this.min) / 2)}`;
|
|
138
|
-
}
|
|
139
|
-
setupDefaultValue() {
|
|
140
|
-
/* v8 ignore else -- @preserve */
|
|
141
|
-
if (typeof this.value == "string") if (this.value.length === 0) this.initialValue = this.midpoint;
|
|
142
|
-
else {
|
|
143
|
-
let e = parseFloat(this.value);
|
|
144
|
-
!Number.isNaN(e) && (e < this.min || e > this.max) && (this.value = this.midpoint);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
#t(e) {
|
|
148
|
-
let t = this.track.getBoundingClientRect(), [n, r, i] = this.orientation === l.horizontal ? [
|
|
149
|
-
this.track.clientLeft,
|
|
150
|
-
this.track.clientWidth,
|
|
151
|
-
e.pageX - document.documentElement.scrollLeft - this.getBoundingClientRect().left
|
|
152
|
-
] : [
|
|
153
|
-
t.top,
|
|
154
|
-
t.bottom,
|
|
155
|
-
e.pageY - document.documentElement.scrollTop
|
|
156
|
-
];
|
|
157
|
-
return y(this.min, this.max, x(n, r, i));
|
|
158
|
-
}
|
|
159
|
-
#n(e) {
|
|
160
|
-
return m(this.min, this.max, b(e - this.min, this.step) + this.min);
|
|
161
|
-
}
|
|
162
|
-
get _isThumbPopupOpen() {
|
|
163
|
-
return this._focusVisible || this._hoveringOnThumb || this.isDragging;
|
|
164
|
-
}
|
|
165
|
-
#r;
|
|
166
|
-
#i() {
|
|
167
|
-
this.thumb.addEventListener("mouseover", this.#s, { passive: !0 }), this.thumb.addEventListener("mouseout", this.#c, { passive: !0 });
|
|
168
|
-
}
|
|
169
|
-
#a() {
|
|
170
|
-
this.thumb.removeEventListener("mouseover", this.#s), this.thumb.removeEventListener("mouseout", this.#c);
|
|
171
|
-
}
|
|
172
|
-
#o;
|
|
173
|
-
#s;
|
|
174
|
-
#c;
|
|
175
|
-
};
|
|
176
|
-
c([a({
|
|
177
|
-
attribute: "readonly",
|
|
178
|
-
mode: "boolean"
|
|
179
|
-
})], D.prototype, "readOnly", void 0), c([t], D.prototype, "direction", void 0), c([t], D.prototype, "isDragging", void 0), c([t], D.prototype, "position", void 0), c([t], D.prototype, "trackWidth", void 0), c([t], D.prototype, "trackMinWidth", void 0), c([t], D.prototype, "trackHeight", void 0), c([t], D.prototype, "trackLeft", void 0), c([t], D.prototype, "trackMinHeight", void 0), c([t], D.prototype, "valueTextFormatter", void 0), c([a({ converter: r })], D.prototype, "min", void 0), c([a({ converter: r })], D.prototype, "max", void 0), c([a({ converter: v })], D.prototype, "step", void 0), c([a], D.prototype, "orientation", void 0), c([a], D.prototype, "mode", void 0), c([a({ mode: "boolean" })], D.prototype, "markers", void 0), c([a({ mode: "boolean" })], D.prototype, "pin", void 0), c([a], D.prototype, "connotation", void 0), c([t], D.prototype, "_focusVisible", void 0), c([t], D.prototype, "_hoveringOnThumb", void 0), c([i], D.prototype, "_isThumbPopupOpen", null);
|
|
6
|
+
//#region src/lib/icon/definition.ts
|
|
7
|
+
var o = n("icon", a, () => {
|
|
8
|
+
let e = (e) => !e.label || e.label.trim().length === 0;
|
|
9
|
+
return t`
|
|
10
|
+
<span
|
|
11
|
+
class="${(e) => i("control", [`connotation-${e.connotation}`, !!e.connotation], [`size-${e.size}`, typeof e.size == "number"])}"
|
|
12
|
+
role="${(t) => e(t) ? null : "img"}"
|
|
13
|
+
?aria-hidden="${(t) => e(t)}"
|
|
14
|
+
aria-label="${(e) => e.label || null}"
|
|
15
|
+
?aria-busy="${(e) => !e?.iconLoaded}"
|
|
16
|
+
>
|
|
17
|
+
<slot aria-hidden="true">
|
|
18
|
+
${r((e) => e?.iconLoaded && e?._svg, (e) => t`${t.partial(e._svg)}`)}
|
|
19
|
+
</slot>
|
|
20
|
+
</span>
|
|
21
|
+
`;
|
|
22
|
+
}, [], { styles: ":host{vertical-align:sub;display:inline-block}.control.size--6{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)) - 1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20))}.control.size--4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 12))}.control.size--2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.control.size--1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 4))}.control.size-0{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.control.size-1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 4))}.control.size-2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8))}.control.size-3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 12))}.control.size-4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 16))}.control.size-5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 20))}.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size:1em}.control{margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size);display:flex}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){block-size:inherit;inline-size:inherit;margin:auto}" }), s = e(o);
|
|
180
23
|
//#endregion
|
|
181
|
-
|
|
182
|
-
var O = s("slider", D, S, [_], {
|
|
183
|
-
styles: w,
|
|
184
|
-
shadowOptions: { delegatesFocus: !0 }
|
|
185
|
-
}), k = n(O);
|
|
186
|
-
//#endregion
|
|
187
|
-
export { O as n, D as r, k as t };
|
|
24
|
+
export { s as n, o as t };
|
package/bundled/definition20.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const e=require(
|
|
1
|
+
const e=require("./vivid-element.cjs"),t=require("./class-names.cjs"),n=require("./host-semantics.cjs"),r=require("./divider.cjs");var i=`:host,.base{display:block}.base:not(.vertical){block-size:1px;inline-size:100%}.base.vertical{block-size:100%;inline-size:1px}.base.appearance-ghost{background-color:var(--_connotation-color-dim)}.base.appearance-subtle{background-color:var(--_connotation-color-soft)}`,a=e.p`<template
|
|
2
2
|
${n.n({role:e=>e.role||r.n.separator,ariaHidden:!0,ariaOrientation:({role:e,orientation:t})=>e===r.n.presentation?null:t})}
|
|
3
3
|
>
|
|
4
4
|
<span
|
|
5
|
-
class="${e=>t.t(`base`,[e.orientation,!!e.orientation]
|
|
5
|
+
class="${e=>t.t(`base`,`connotation-accent`,[e.orientation,!!e.orientation],`appearance-${r.r.parse(e.appearance)}`)}"
|
|
6
6
|
></span
|
|
7
|
-
></template>`,o=e.u(`divider`,r.t,a,[],{styles:i}),s=e.d(o);Object.defineProperty(exports
|
|
7
|
+
></template>`,o=e.u(`divider`,r.t,a,[],{styles:i}),s=e.d(o);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
package/bundled/definition20.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { d as e, p as t, u as n } from "./vivid-element.js";
|
|
2
2
|
import { t as r } from "./class-names.js";
|
|
3
3
|
import { n as i } from "./host-semantics.js";
|
|
4
|
-
import { n as a,
|
|
5
|
-
//#
|
|
6
|
-
|
|
7
|
-
var s = n("divider", o, t`<template
|
|
4
|
+
import { n as a, r as o, t as s } from "./divider.js";
|
|
5
|
+
//#region src/lib/divider/divider.scss?inline
|
|
6
|
+
var c = ":host,.base{display:block}.base:not(.vertical){block-size:1px;inline-size:100%}.base.vertical{block-size:100%;inline-size:1px}.base.appearance-ghost{background-color:var(--_connotation-color-dim)}.base.appearance-subtle{background-color:var(--_connotation-color-soft)}", l = t`<template
|
|
8
7
|
${i({
|
|
9
8
|
role: (e) => e.role || a.separator,
|
|
10
9
|
ariaHidden: !0,
|
|
@@ -12,8 +11,8 @@ var s = n("divider", o, t`<template
|
|
|
12
11
|
})}
|
|
13
12
|
>
|
|
14
13
|
<span
|
|
15
|
-
class="${(e) => r("base", [e.orientation, !!e.orientation],
|
|
14
|
+
class="${(e) => r("base", "connotation-accent", [e.orientation, !!e.orientation], `appearance-${o.parse(e.appearance)}`)}"
|
|
16
15
|
></span
|
|
17
|
-
></template>`, [], { styles:
|
|
16
|
+
></template>`, u = n("divider", s, l, [], { styles: c }), d = e(u);
|
|
18
17
|
//#endregion
|
|
19
|
-
export {
|
|
18
|
+
export { d as n, u as t };
|