@vonage/vivid 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion-item/definition.cjs +2 -1
- package/accordion-item/definition.js +3 -2
- package/alert/definition.cjs +1 -1
- package/alert/definition.js +2 -2
- package/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/audio-player/definition.cjs +4 -2
- package/audio-player/definition.js +4 -2
- package/audio-player/index.cjs +5 -3
- package/audio-player/index.js +5 -3
- package/badge/definition.js +1 -1
- package/badge/index.cjs +2 -2
- package/badge/index.js +4 -4
- package/banner/definition.js +1 -1
- package/banner/index.cjs +3 -3
- package/banner/index.js +6 -6
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/bundled/affix.cjs +7 -7
- package/bundled/affix.js +5 -5
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +15 -13
- package/bundled/base-color-picker.cjs +13 -0
- package/bundled/base-color-picker.js +194 -0
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +2 -2
- package/bundled/calendar-picker.template.cjs +7 -7
- package/bundled/calendar-picker.template.js +118 -118
- package/bundled/char-count.cjs +1 -1
- package/bundled/char-count.js +1 -1
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +28 -20
- package/bundled/definition.cjs +3 -3
- package/bundled/definition.js +38 -38
- package/bundled/definition10.cjs +72 -18
- package/bundled/definition10.js +351 -65
- package/bundled/definition11.cjs +19 -10
- package/bundled/definition11.js +217 -36
- package/bundled/definition12.cjs +10 -1
- package/bundled/definition12.js +38 -14
- package/bundled/definition13.cjs +1 -73
- package/bundled/definition13.js +15 -354
- package/bundled/definition15.cjs +1 -1
- package/bundled/definition15.js +1 -1
- package/bundled/definition16.cjs +2 -2
- package/bundled/definition16.js +8 -8
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +17 -17
- package/bundled/definition19.cjs +23 -24
- package/bundled/definition19.js +151 -163
- package/bundled/definition2.cjs +9 -5
- package/bundled/definition2.js +21 -17
- package/bundled/definition22.cjs +9 -9
- package/bundled/definition22.js +31 -31
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -1
- package/bundled/definition6.cjs +3 -3
- package/bundled/definition6.js +28 -28
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +6 -6
- package/bundled/definition8.cjs +2 -2
- package/bundled/definition8.js +4 -4
- package/bundled/definition9.cjs +5 -5
- package/bundled/definition9.js +394 -392
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +59 -46
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +3 -3
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +48 -34
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +82 -102
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +51 -36
- package/bundled/mixins.cjs +18 -18
- package/bundled/mixins.js +99 -93
- package/bundled/normalize.cjs +1 -0
- package/bundled/normalize.js +7 -0
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +4 -4
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +8 -25
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +459 -233
- package/bundled/slider.template.cjs +1 -1
- package/bundled/slider.template.js +2 -2
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +62 -45
- package/bundled/time-selection-picker.template.cjs +1 -1
- package/bundled/time-selection-picker.template.js +5 -5
- package/bundled/vivid-element.cjs +5 -1
- package/bundled/vivid-element.js +2159 -1162
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +8 -7
- package/calendar/definition.cjs +1 -1
- package/calendar/definition.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +15 -15
- package/calendar-event/index.cjs +1 -1
- package/calendar-event/index.js +1 -1
- package/card/definition.cjs +11 -3
- package/card/definition.js +11 -3
- package/card/index.cjs +19 -11
- package/card/index.js +35 -27
- package/color-picker/definition.cjs +1079 -0
- package/color-picker/definition.js +1073 -0
- package/color-picker/index.cjs +127 -0
- package/color-picker/index.js +726 -0
- package/combobox/definition.cjs +8 -28
- package/combobox/definition.js +10 -30
- package/combobox/index.cjs +7 -7
- package/combobox/index.js +60 -74
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/custom-elements.json +1670 -163
- package/data-grid/definition.cjs +862 -27
- package/data-grid/definition.js +863 -28
- package/data-grid/index.cjs +25 -25
- package/data-grid/index.js +175 -168
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +2 -2
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +2 -2
- package/dial-pad/definition.cjs +4 -0
- package/dial-pad/definition.js +4 -0
- package/dial-pad/index.cjs +3 -3
- package/dial-pad/index.js +42 -39
- package/dialog/definition.cjs +6 -3
- package/dialog/definition.js +6 -3
- package/dialog/index.cjs +22 -19
- package/dialog/index.js +48 -45
- package/elevation/definition.cjs +1 -1
- package/elevation/definition.js +1 -1
- package/empty-state/definition.cjs +7 -2
- package/empty-state/definition.js +7 -2
- package/empty-state/index.cjs +10 -5
- package/empty-state/index.js +18 -13
- package/fab/definition.js +1 -1
- package/fab/index.cjs +2 -2
- package/fab/index.js +4 -4
- package/file-picker/definition.cjs +2 -2
- package/file-picker/definition.js +3 -3
- package/file-picker/index.cjs +1 -1
- package/file-picker/index.js +4 -4
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/icon/definition.cjs +10 -6
- package/icon/definition.js +10 -6
- package/index.cjs +7 -4
- package/index.js +3 -3
- package/lib/accordion/accordion.d.ts +1 -1
- package/lib/accordion/definition.d.ts +1 -1
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/action-group/action-group.d.ts +2 -2
- package/lib/alert/alert.d.ts +4 -4
- package/lib/audio-player/audio-player.d.ts +3 -3
- package/lib/avatar/avatar.d.ts +2 -2
- package/lib/badge/badge.d.ts +2 -2
- package/lib/banner/banner.d.ts +6 -6
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
- package/lib/button/button.d.ts +6 -6
- package/lib/button/button.template.d.ts +2 -1
- package/lib/calendar/calendar.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +2 -2
- package/lib/card/card.d.ts +2 -2
- package/lib/checkbox/checkbox.d.ts +12 -12
- package/lib/color-picker/color-picker.d.ts +2420 -0
- package/lib/color-picker/color-picker.template.d.ts +3 -0
- package/lib/color-picker/definition.d.ts +4 -0
- package/lib/color-picker/locale.d.ts +9 -0
- package/lib/combobox/combobox.d.ts +15 -14
- package/lib/combobox/combobox.options.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/data-grid/data-grid-cell.d.ts +4 -4
- package/lib/data-grid/data-grid-row.d.ts +3 -4
- package/lib/data-grid/data-grid.d.ts +1 -2
- package/lib/date-picker/date-picker.d.ts +54 -54
- package/lib/date-range-picker/date-range-picker.d.ts +28 -28
- package/lib/date-time-picker/date-time-picker.d.ts +56 -56
- package/lib/dial-pad/dial-pad.d.ts +3 -2
- package/lib/dialog/dialog.d.ts +4 -4
- package/lib/divider/divider.d.ts +3 -3
- package/lib/fab/fab.d.ts +2 -2
- package/lib/file-picker/file-picker.d.ts +14 -14
- package/lib/header/header.d.ts +2 -2
- package/lib/menu/menu.d.ts +4 -4
- package/lib/menu-item/menu-item-role.d.ts +1 -1
- package/lib/menu-item/menu-item.d.ts +4 -4
- package/lib/nav/nav.d.ts +2 -2
- package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
- package/lib/nav-item/nav-item.d.ts +4 -4
- package/lib/note/note.d.ts +2 -2
- package/lib/number-field/number-field.d.ts +18 -18
- package/lib/option/option.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/popup/popup.d.ts +1 -1
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress-ring/progress-ring.d.ts +2 -2
- package/lib/radio/radio.d.ts +6 -6
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/range-slider/range-slider.d.ts +6 -6
- package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
- package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
- package/lib/searchable-select/locale.d.ts +4 -0
- package/lib/searchable-select/option-tag.d.ts +2 -2
- package/lib/searchable-select/searchable-select.d.ts +21 -18
- package/lib/select/select.d.ts +19 -17
- package/lib/selectable-box/selectable-box.d.ts +2 -2
- package/lib/simple-color-picker/locale.d.ts +0 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
- package/lib/slider/slider.d.ts +7 -7
- package/lib/split-button/split-button.d.ts +6 -6
- package/lib/switch/switch.d.ts +4 -4
- package/lib/tab/tab.d.ts +6 -6
- package/lib/tab-panel/tab-panel.d.ts +2 -2
- package/lib/tabs/tabs.d.ts +2 -2
- package/lib/tag/tag.d.ts +6 -6
- package/lib/tag-group/tag-group.d.ts +2 -2
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-area/text-area.d.ts +17 -17
- package/lib/text-field/text-field.d.ts +19 -19
- package/lib/time-picker/time-picker.d.ts +28 -28
- package/lib/toggletip/toggletip.d.ts +4 -4
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/tree-item/tree-item.d.ts +4 -4
- package/lib/tree-view/tree-view.d.ts +2 -2
- package/lib/video-player/video-player.d.ts +2 -2
- package/locales/de-DE.cjs +17 -2
- package/locales/de-DE.js +17 -2
- package/locales/en-GB.cjs +17 -2
- package/locales/en-GB.js +17 -2
- package/locales/en-US.cjs +17 -2
- package/locales/en-US.js +17 -2
- package/locales/ja-JP.cjs +17 -2
- package/locales/ja-JP.js +17 -2
- package/locales/zh-CN.cjs +17 -2
- package/locales/zh-CN.js +17 -2
- package/menu/definition.cjs +6 -6
- package/menu/definition.js +7 -7
- package/nav-disclosure/definition.js +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.js +1 -1
- package/note/index.cjs +2 -2
- package/note/index.js +4 -4
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +3 -3
- package/number-field/index.cjs +5 -5
- package/number-field/index.js +21 -21
- package/option/definition.cjs +6 -77
- package/option/definition.js +3 -78
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +34 -8
- package/pagination/definition.cjs +2 -1
- package/pagination/definition.js +2 -1
- package/pagination/index.cjs +12 -12
- package/pagination/index.js +59 -59
- package/popup/definition.cjs +2 -2
- package/popup/definition.js +2 -2
- package/progress/index.cjs +1 -1
- package/progress/index.js +1 -1
- package/radio/definition.cjs +9 -9
- package/radio/definition.js +10 -10
- package/radio-group/definition.cjs +2 -1
- package/radio-group/definition.js +2 -1
- package/radio-group/index.cjs +5 -5
- package/radio-group/index.js +80 -77
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/definition.cjs +3 -4
- package/rich-text-editor/definition.js +3 -4
- package/rich-text-editor/index.cjs +27 -27
- package/rich-text-editor/index.js +1208 -1198
- package/searchable-select/definition.cjs +106 -14
- package/searchable-select/definition.js +107 -15
- package/searchable-select/index.cjs +81 -69
- package/searchable-select/index.js +362 -276
- package/select/definition.cjs +25 -42
- package/select/definition.js +26 -43
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +3 -3
- package/selectable-box/index.js +20 -20
- package/shared/aria/aria-change-subscription.d.ts +0 -1
- package/shared/aria/aria-mixin.d.ts +3 -3
- package/shared/aria/delegate-aria-behavior.d.ts +5 -10
- package/shared/aria/delegates-aria.d.ts +3 -3
- package/shared/aria/host-semantics-behavior.d.ts +5 -8
- package/shared/aria/host-semantics.d.ts +3 -3
- package/shared/color-picker/base-color-picker.d.ts +436 -0
- package/shared/color-picker/index.d.ts +1 -0
- package/shared/color-picker/locale.d.ts +3 -0
- package/shared/color-picker/utils.d.ts +1 -0
- package/shared/deprecation/replaced-props.d.ts +317 -2
- package/shared/design-system/defineVividComponent.d.ts +2 -2
- package/shared/feedback/feedback-message.d.ts +2 -2
- package/shared/feedback/mixins.d.ts +4 -4
- package/shared/foundation/button/button.d.ts +4 -4
- package/shared/foundation/form-associated/form-associated.d.ts +4 -4
- package/shared/foundation/listbox/listbox.d.ts +4 -0
- package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
- package/shared/localization/Locale.d.ts +4 -0
- package/shared/patterns/affix.d.ts +4 -4
- package/shared/patterns/anchored.d.ts +4 -4
- package/shared/patterns/char-count/char-count.d.ts +2 -2
- package/shared/patterns/form-elements/form-element.d.ts +4 -4
- package/shared/patterns/form-elements/with-contextual-help.d.ts +6 -6
- package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
- package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
- package/shared/patterns/linkable.d.ts +2 -2
- package/shared/patterns/localized.d.ts +2 -2
- package/shared/patterns/trapped-focus.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-picker.d.ts +14 -14
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +14 -14
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +28 -28
- package/shared/picker-field/mixins/single-date-picker.d.ts +40 -40
- package/shared/picker-field/mixins/single-value-picker.d.ts +12 -12
- package/shared/picker-field/mixins/time-selection-picker.d.ts +29 -29
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +28 -28
- package/shared/picker-field/picker-field.d.ts +14 -14
- package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
- package/shared/templating/render-in-light-dom.d.ts +13 -12
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +1 -1
- package/simple-color-picker/definition.cjs +29 -216
- package/simple-color-picker/definition.js +30 -217
- package/simple-color-picker/index.cjs +9 -21
- package/simple-color-picker/index.js +71 -185
- package/slider/definition.cjs +1 -1
- package/slider/definition.js +1 -1
- package/split-button/definition.js +1 -1
- 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/switch/index.cjs +2 -2
- package/switch/index.js +4 -4
- package/tab/definition.js +1 -1
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +2 -2
- package/tabs/index.cjs +2 -2
- package/tabs/index.js +16 -16
- package/tag/definition.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text-area/index.cjs +3 -3
- package/text-area/index.js +8 -8
- package/text-field/definition.cjs +2 -2
- package/text-field/definition.js +4 -4
- 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 +2 -2
- package/toggletip/definition.cjs +2 -2
- package/toggletip/definition.js +3 -3
- package/tooltip/definition.cjs +1 -1
- package/tooltip/definition.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +2 -2
- package/tree-view/definition.js +3 -3
- package/tree-view/index.cjs +2 -2
- package/tree-view/index.js +6 -6
- package/unbundled/_commonjsHelpers.cjs +36 -0
- package/unbundled/_commonjsHelpers.js +32 -0
- package/unbundled/affix.cjs +1 -1
- package/unbundled/affix.js +2 -2
- package/unbundled/attribute-binding-behaviour.cjs +11 -10
- package/unbundled/attribute-binding-behaviour.js +11 -10
- package/unbundled/base-color-picker.cjs +278 -0
- package/unbundled/base-color-picker.js +275 -0
- package/unbundled/button.cjs +1 -1
- package/unbundled/button.js +2 -2
- package/unbundled/calendar-picker.template.cjs +4 -4
- package/unbundled/calendar-picker.template.js +5 -5
- package/unbundled/definition.js +1 -1
- package/unbundled/definition2.cjs +1 -1
- package/unbundled/definition2.js +3 -3
- package/unbundled/definition3.cjs +222 -140
- package/unbundled/definition3.js +220 -138
- package/unbundled/definition4.cjs +145 -235
- package/unbundled/definition4.js +143 -233
- package/unbundled/definition5.cjs +269 -27
- package/unbundled/definition5.js +267 -26
- package/unbundled/definition6.cjs +56 -0
- package/unbundled/definition6.js +52 -0
- package/unbundled/delegates-aria.cjs +67 -33
- package/unbundled/delegates-aria.js +69 -35
- package/unbundled/form-associated.cjs +2 -2
- package/unbundled/form-associated.js +3 -3
- package/unbundled/host-semantics.cjs +47 -22
- package/unbundled/host-semantics.js +48 -23
- package/unbundled/listbox.cjs +41 -63
- package/unbundled/listbox.js +39 -61
- package/unbundled/mixins.cjs +34 -27
- package/unbundled/mixins.js +35 -28
- package/unbundled/picker-field.template.cjs +3 -3
- package/unbundled/picker-field.template.js +4 -4
- package/unbundled/slider.template.cjs +1 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +4 -4
- package/unbundled/time-selection-picker.template.js +5 -5
- package/unbundled/vivid-element.cjs +22 -15
- package/unbundled/vivid-element.js +23 -15
- package/video-player/definition.cjs +69047 -1
- package/video-player/definition.js +69047 -1
- package/video-player/index.cjs +36 -36
- package/video-player/index.js +1895 -1905
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +1 -1
- package/vivid.api.json +719 -224
- package/bundled/option.cjs +0 -1
- package/bundled/option.js +0 -158
- package/unbundled/option.cjs +0 -217
- package/unbundled/option.js +0 -214
package/bundled/definition19.js
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
import { P as C, p as A } from "./definition9.js";
|
|
2
2
|
import { i as D } from "./definition2.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import { L as
|
|
7
|
-
import { H as
|
|
8
|
-
import { F as
|
|
3
|
+
import { L as H, l as E } from "./definition11.js";
|
|
4
|
+
import { U as V, O as u, o as p, a as c, v as F, h, c as z, d as T } from "./vivid-element.js";
|
|
5
|
+
import { a as W, f as L } from "./mixins.js";
|
|
6
|
+
import { L as S } from "./listbox.js";
|
|
7
|
+
import { H as P, a as B } from "./host-semantics.js";
|
|
8
|
+
import { F as N } from "./form-associated.js";
|
|
9
9
|
import { i as v } from "./numbers.js";
|
|
10
10
|
import { W as M } from "./with-contextual-help.js";
|
|
11
|
-
import { W as
|
|
12
|
-
import { W as
|
|
13
|
-
import { F as
|
|
14
|
-
import { A as
|
|
15
|
-
import { u as
|
|
16
|
-
import { l as
|
|
17
|
-
import { L as J } from "./option.js";
|
|
11
|
+
import { W as j } from "./with-error-text.js";
|
|
12
|
+
import { W as K } from "./with-success-text.js";
|
|
13
|
+
import { F as R } from "./form-element.js";
|
|
14
|
+
import { A as U, a as q, I as X } from "./affix.js";
|
|
15
|
+
import { u as G } from "./strings.js";
|
|
16
|
+
import { l as g, d as y, m as _, k, c as I, b as O, a as w, f as J } from "./key-codes.js";
|
|
18
17
|
import { c as Q } from "./definition3.js";
|
|
19
18
|
import { h as Y } from "./index.js";
|
|
20
|
-
import { r as
|
|
21
|
-
import { w as
|
|
22
|
-
import { s as
|
|
19
|
+
import { r as b } from "./ref.js";
|
|
20
|
+
import { w as f } from "./when.js";
|
|
21
|
+
import { s as x } from "./slotted.js";
|
|
23
22
|
import { c as Z } from "./class-names.js";
|
|
24
23
|
const ee = ".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)}:host(:focus-visible){outline:none}:host{display:inline-flex;flex-direction:column;gap:4px;--_low-ink-color: var(--vvd-color-neutral-600);--focus-stroke-gap-color: transparent}:host([disabled]){--_low-ink-color: var(--vvd-color-neutral-400);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);contain:inline-size;font:var(--vvd-typography-base)}.control{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.control.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.control: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)}.control: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}}.control.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)}.control.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}.control: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)}.control:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.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)}.control.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.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)}.control.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.control.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)}.control.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.control.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)}.control.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.control{--_connotation-color-primary: var(--vvd-select-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-select-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-select-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-select-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-select-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-select-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-select-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-select-accent-fierce, var(--vvd-color-neutral-700))}.control{border-radius:var(--_select-control-border-radius);block-size:var(--_select-block-size);padding-inline:var(--_select-padding-inline)}.control{--_select-icon-size: 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(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;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;transition:box-shadow .2s,background-color .2s}.control.size-condensed{--_select-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_select-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_select-padding-inline: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/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}:host(:focus-visible) .control{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))}.listbox{display:flex;max-height:var(--select-height, 408px);flex-direction:column;padding:4px;gap:2px;overflow-y:auto}:host([multiple]:focus-visible) .listbox{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));border-radius:8px}.selected-value{display:flex;overflow:hidden;flex-grow:1;align-items:center;column-gap:12px;white-space:nowrap}.selected-value .text{overflow:hidden;max-inline-size:100%;text-overflow:ellipsis}.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}.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}";
|
|
25
|
-
var te = Object.defineProperty, oe = Object.getOwnPropertyDescriptor,
|
|
26
|
-
for (var
|
|
27
|
-
(s =
|
|
28
|
-
return o &&
|
|
24
|
+
var te = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, l = (n, e, t, o) => {
|
|
25
|
+
for (var a = o > 1 ? void 0 : o ? oe(e, t) : e, r = n.length - 1, s; r >= 0; r--)
|
|
26
|
+
(s = n[r]) && (a = (o ? s(e, t, a) : s(a)) || a);
|
|
27
|
+
return o && a && te(e, t, a), a;
|
|
29
28
|
};
|
|
30
|
-
class
|
|
29
|
+
class i extends W(
|
|
31
30
|
M(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
j(
|
|
32
|
+
K(
|
|
33
|
+
R(
|
|
34
|
+
P(U(N(S)))
|
|
36
35
|
)
|
|
37
36
|
)
|
|
38
37
|
)
|
|
39
38
|
)
|
|
40
39
|
) {
|
|
41
40
|
constructor() {
|
|
42
|
-
super(...arguments), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId =
|
|
41
|
+
super(...arguments), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId = G("listbox-"), this.maxHeight = 0, this.fixedDropdown = !1, this._feedbackWrapper = null;
|
|
43
42
|
}
|
|
44
43
|
/**
|
|
45
44
|
* Returns the last checked option.
|
|
@@ -200,8 +199,8 @@ class r extends T(
|
|
|
200
199
|
return;
|
|
201
200
|
}
|
|
202
201
|
if (this.$fastController.isConnected) {
|
|
203
|
-
const o = this.getTypeaheadMatches(),
|
|
204
|
-
|
|
202
|
+
const o = this.getTypeaheadMatches(), a = this.options.indexOf(o[0]);
|
|
203
|
+
a > -1 && (this.activeIndex = a, this.uncheckAllOptions(), this.checkActiveIndex()), this.typeaheadExpired = !1;
|
|
205
204
|
}
|
|
206
205
|
}
|
|
207
206
|
/**
|
|
@@ -226,11 +225,11 @@ class r extends T(
|
|
|
226
225
|
if (!this.collapsible)
|
|
227
226
|
return;
|
|
228
227
|
if (this.open) {
|
|
229
|
-
this.focusAndScrollOptionIntoView(), this.indexWhenOpened = this.selectedIndex,
|
|
228
|
+
this.focusAndScrollOptionIntoView(), this.indexWhenOpened = this.selectedIndex, V.enqueue(() => this.focus());
|
|
230
229
|
return;
|
|
231
230
|
}
|
|
232
|
-
const o = e === !0 && t === !1,
|
|
233
|
-
o &&
|
|
231
|
+
const o = e === !0 && t === !1, a = this.indexWhenOpened !== this.selectedIndex;
|
|
232
|
+
o && a && this.updateValue(!0);
|
|
234
233
|
}
|
|
235
234
|
get collapsible() {
|
|
236
235
|
return !this.multiple;
|
|
@@ -239,16 +238,8 @@ class r extends T(
|
|
|
239
238
|
* @internal
|
|
240
239
|
*/
|
|
241
240
|
valueChanged(e, t) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
const i = this._options.findIndex((x) => x.value === t), l = this._options[this.selectedIndex]?.value ?? null, s = this._options[i]?.value ?? null;
|
|
245
|
-
(i === -1 || l !== s) && (o = "", this.selectedIndex = i), o = this.firstSelectedOption?.value ?? o;
|
|
246
|
-
}
|
|
247
|
-
if (t !== o) {
|
|
248
|
-
this.value = o;
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
super.valueChanged(e, t), this.updateDisplayValue();
|
|
241
|
+
const o = this.options.findIndex((s) => s.value === t), a = this._validSelectedIndex(o), r = this.options[a]?.value ?? "";
|
|
242
|
+
this.selectedIndex !== a && (this.selectedIndex = a), t === r && (super.valueChanged(e, t), this.updateDisplayValue());
|
|
252
243
|
}
|
|
253
244
|
/**
|
|
254
245
|
* Sets the value and display value to match the first selected option.
|
|
@@ -343,9 +334,9 @@ class r extends T(
|
|
|
343
334
|
* @internal
|
|
344
335
|
*/
|
|
345
336
|
selectedOptionsChanged(e, t) {
|
|
346
|
-
super.selectedOptionsChanged(e, t), this.options.forEach((o,
|
|
347
|
-
const
|
|
348
|
-
|
|
337
|
+
super.selectedOptionsChanged(e, t), this.options.forEach((o, a) => {
|
|
338
|
+
const r = this.proxy.options.item(a);
|
|
339
|
+
r && (r.selected = o.selected);
|
|
349
340
|
});
|
|
350
341
|
}
|
|
351
342
|
/**
|
|
@@ -369,31 +360,31 @@ class r extends T(
|
|
|
369
360
|
return;
|
|
370
361
|
const { key: t, shiftKey: o } = e;
|
|
371
362
|
switch (this.shouldSkipFocus = !1, t) {
|
|
372
|
-
case
|
|
363
|
+
case w: {
|
|
373
364
|
this.checkFirstOption(o);
|
|
374
365
|
return;
|
|
375
366
|
}
|
|
376
|
-
case
|
|
367
|
+
case O: {
|
|
377
368
|
this.checkNextOption(o);
|
|
378
369
|
return;
|
|
379
370
|
}
|
|
380
|
-
case
|
|
371
|
+
case I: {
|
|
381
372
|
this.checkPreviousOption(o);
|
|
382
373
|
return;
|
|
383
374
|
}
|
|
384
|
-
case
|
|
375
|
+
case k: {
|
|
385
376
|
this.checkLastOption(o);
|
|
386
377
|
return;
|
|
387
378
|
}
|
|
388
|
-
case
|
|
379
|
+
case _: {
|
|
389
380
|
this.focusAndScrollOptionIntoView();
|
|
390
381
|
return;
|
|
391
382
|
}
|
|
392
|
-
case
|
|
383
|
+
case y: {
|
|
393
384
|
this.uncheckAllOptions(), this.checkActiveIndex();
|
|
394
385
|
return;
|
|
395
386
|
}
|
|
396
|
-
case
|
|
387
|
+
case g:
|
|
397
388
|
if (e.preventDefault(), this.typeaheadExpired) {
|
|
398
389
|
this.toggleSelectedForAllCheckedOptions();
|
|
399
390
|
return;
|
|
@@ -413,27 +404,27 @@ class r extends T(
|
|
|
413
404
|
keydownHandler(e) {
|
|
414
405
|
const t = this.selectedIndex;
|
|
415
406
|
switch (this.multiple ? this.multipleKeydownHandler(e) : super.keydownHandler(e), e.key) {
|
|
416
|
-
case
|
|
407
|
+
case g: {
|
|
417
408
|
e.preventDefault(), this.collapsible && this.typeaheadExpired && (this.open = !this.open);
|
|
418
409
|
break;
|
|
419
410
|
}
|
|
420
|
-
case
|
|
421
|
-
case
|
|
411
|
+
case w:
|
|
412
|
+
case k: {
|
|
422
413
|
e.preventDefault();
|
|
423
414
|
break;
|
|
424
415
|
}
|
|
425
|
-
case
|
|
416
|
+
case J: {
|
|
426
417
|
e.preventDefault(), this.open = !this.open;
|
|
427
418
|
break;
|
|
428
419
|
}
|
|
429
|
-
case
|
|
420
|
+
case y: {
|
|
430
421
|
this.collapsible && this.open && (e.preventDefault(), this.open = !1);
|
|
431
422
|
break;
|
|
432
423
|
}
|
|
433
|
-
case
|
|
424
|
+
case _:
|
|
434
425
|
return this.collapsible && this.open && (e.preventDefault(), this.open = !1), !0;
|
|
435
426
|
}
|
|
436
|
-
return this.collapsible && !this.open && this.selectedIndex !== t && this.updateValue(!0), !(e.key ===
|
|
427
|
+
return this.collapsible && !this.open && this.selectedIndex !== t && this.updateValue(!0), !(e.key === O || e.key === I);
|
|
437
428
|
}
|
|
438
429
|
connectedCallback() {
|
|
439
430
|
super.connectedCallback(), this.addEventListener("focusout", this.focusoutHandler), this.addEventListener("contentchange", this.updateDisplayValue);
|
|
@@ -451,148 +442,145 @@ class r extends T(
|
|
|
451
442
|
get displayValue() {
|
|
452
443
|
return u.track(this, "displayValue"), this.firstSelectedOption?.getAttribute("label") ?? this.firstSelectedOption?.text ?? this.placeholder ?? "";
|
|
453
444
|
}
|
|
454
|
-
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
445
|
+
_newDefaultSelectedIndex(e, t, o) {
|
|
446
|
+
const a = super._newDefaultSelectedIndex(
|
|
447
|
+
e,
|
|
448
|
+
t,
|
|
449
|
+
o
|
|
459
450
|
);
|
|
460
|
-
if (
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
if (t !== -1 || this.placeholder !== "") {
|
|
465
|
-
this.selectedIndex = t;
|
|
466
|
-
return;
|
|
451
|
+
if (a === null && o === -1 && !this.placeholder) {
|
|
452
|
+
const r = this.getNextSelectableIndex(0);
|
|
453
|
+
if (r !== -1)
|
|
454
|
+
return r;
|
|
467
455
|
}
|
|
456
|
+
return a;
|
|
457
|
+
}
|
|
458
|
+
_isDefaultSelected(e) {
|
|
459
|
+
return super._isDefaultSelected(e) || e.value === this.initialValue;
|
|
468
460
|
}
|
|
469
461
|
/*
|
|
470
462
|
* @internal
|
|
471
463
|
*/
|
|
472
464
|
slottedOptionsChanged(e, t) {
|
|
473
|
-
this.options.forEach((
|
|
474
|
-
u.getNotifier(
|
|
475
|
-
}), super.slottedOptionsChanged(e, t), this.options.forEach((
|
|
476
|
-
u.getNotifier(
|
|
465
|
+
this.options.forEach((a) => {
|
|
466
|
+
u.getNotifier(a).unsubscribe(this, "value");
|
|
467
|
+
}), super.slottedOptionsChanged(e, t), this.options.forEach((a) => {
|
|
468
|
+
u.getNotifier(a).subscribe(this, "value");
|
|
477
469
|
}), this.setProxyOptions(), this.updateValue();
|
|
478
470
|
const o = this.getAttribute("scale") || this.scale;
|
|
479
|
-
t.forEach((
|
|
480
|
-
o && (
|
|
471
|
+
t.forEach((a) => {
|
|
472
|
+
o && (a.setAttribute("scale", o), a.scale = o);
|
|
481
473
|
}), this.proxy.value = this.value, this.validate();
|
|
482
474
|
}
|
|
483
475
|
formResetCallback() {
|
|
484
|
-
this.setProxyOptions(),
|
|
476
|
+
this.setProxyOptions(), this.selectedIndex = this._newDefaultSelectedIndex([], this.options, -1) ?? -1;
|
|
485
477
|
}
|
|
486
478
|
}
|
|
487
|
-
|
|
488
|
-
c
|
|
489
|
-
], r.prototype, "activeIndex", 2);
|
|
490
|
-
n([
|
|
491
|
-
p({ mode: "boolean" })
|
|
492
|
-
], r.prototype, "multiple", 2);
|
|
493
|
-
n([
|
|
494
|
-
p({ attribute: "open", mode: "boolean" })
|
|
495
|
-
], r.prototype, "open", 2);
|
|
496
|
-
n([
|
|
497
|
-
V
|
|
498
|
-
], r.prototype, "collapsible", 1);
|
|
499
|
-
n([
|
|
500
|
-
c
|
|
501
|
-
], r.prototype, "control", 2);
|
|
502
|
-
n([
|
|
503
|
-
c
|
|
504
|
-
], r.prototype, "maxHeight", 2);
|
|
505
|
-
n([
|
|
506
|
-
c
|
|
507
|
-
], r.prototype, "_anchor", 2);
|
|
508
|
-
n([
|
|
509
|
-
p()
|
|
510
|
-
], r.prototype, "scale", 2);
|
|
511
|
-
n([
|
|
479
|
+
l([
|
|
512
480
|
p
|
|
513
|
-
],
|
|
514
|
-
|
|
481
|
+
], i.prototype, "activeIndex", 2);
|
|
482
|
+
l([
|
|
483
|
+
c({ mode: "boolean" })
|
|
484
|
+
], i.prototype, "multiple", 2);
|
|
485
|
+
l([
|
|
486
|
+
c({ attribute: "open", mode: "boolean" })
|
|
487
|
+
], i.prototype, "open", 2);
|
|
488
|
+
l([
|
|
489
|
+
F
|
|
490
|
+
], i.prototype, "collapsible", 1);
|
|
491
|
+
l([
|
|
515
492
|
p
|
|
516
|
-
],
|
|
517
|
-
|
|
518
|
-
p({ mode: "boolean", attribute: "fixed-dropdown" })
|
|
519
|
-
], r.prototype, "fixedDropdown", 2);
|
|
520
|
-
n([
|
|
493
|
+
], i.prototype, "control", 2);
|
|
494
|
+
l([
|
|
521
495
|
p
|
|
522
|
-
],
|
|
523
|
-
|
|
496
|
+
], i.prototype, "maxHeight", 2);
|
|
497
|
+
l([
|
|
498
|
+
p
|
|
499
|
+
], i.prototype, "_anchor", 2);
|
|
500
|
+
l([
|
|
501
|
+
c()
|
|
502
|
+
], i.prototype, "scale", 2);
|
|
503
|
+
l([
|
|
524
504
|
c
|
|
525
|
-
],
|
|
526
|
-
|
|
505
|
+
], i.prototype, "appearance", 2);
|
|
506
|
+
l([
|
|
527
507
|
c
|
|
528
|
-
],
|
|
529
|
-
|
|
508
|
+
], i.prototype, "shape", 2);
|
|
509
|
+
l([
|
|
510
|
+
c({ mode: "boolean", attribute: "fixed-dropdown" })
|
|
511
|
+
], i.prototype, "fixedDropdown", 2);
|
|
512
|
+
l([
|
|
530
513
|
c
|
|
531
|
-
],
|
|
514
|
+
], i.prototype, "placeholder", 2);
|
|
515
|
+
l([
|
|
516
|
+
p
|
|
517
|
+
], i.prototype, "_feedbackWrapper", 2);
|
|
518
|
+
l([
|
|
519
|
+
p
|
|
520
|
+
], i.prototype, "metaSlottedContent", 2);
|
|
532
521
|
const ae = ({
|
|
533
|
-
shape:
|
|
522
|
+
shape: n,
|
|
534
523
|
disabled: e,
|
|
535
524
|
appearance: t,
|
|
536
525
|
metaSlottedContent: o,
|
|
537
|
-
errorValidationMessage:
|
|
538
|
-
successText:
|
|
526
|
+
errorValidationMessage: a,
|
|
527
|
+
successText: r,
|
|
539
528
|
placeholder: s,
|
|
540
|
-
value:
|
|
541
|
-
scale:
|
|
529
|
+
value: $,
|
|
530
|
+
scale: m
|
|
542
531
|
}) => Z(
|
|
543
532
|
["disabled", e],
|
|
544
533
|
[`appearance-${t}`, !!t],
|
|
545
|
-
[`shape-${
|
|
534
|
+
[`shape-${n}`, !!n],
|
|
546
535
|
["has-meta", !!o?.length],
|
|
547
|
-
["error", !!
|
|
548
|
-
["success", !!
|
|
549
|
-
["shows-placeholder", !!s &&
|
|
550
|
-
[`size-${
|
|
536
|
+
["error", !!a],
|
|
537
|
+
["success", !!r],
|
|
538
|
+
["shows-placeholder", !!s && !$],
|
|
539
|
+
[`size-${m}`, !!m]
|
|
551
540
|
);
|
|
552
|
-
function
|
|
541
|
+
function ne() {
|
|
553
542
|
return h` <label
|
|
554
|
-
for="${(
|
|
543
|
+
for="${(n) => n.multiple ? null : "control"}"
|
|
555
544
|
class="label"
|
|
556
545
|
id="label"
|
|
557
546
|
>
|
|
558
|
-
${(
|
|
547
|
+
${(n) => n.label}
|
|
559
548
|
</label>`;
|
|
560
549
|
}
|
|
561
|
-
function re(
|
|
562
|
-
const e =
|
|
550
|
+
function re(n) {
|
|
551
|
+
const e = n.tagFor(H);
|
|
563
552
|
return h`
|
|
564
|
-
<${e} ${
|
|
565
|
-
text="${(t) => t.placeholder}" hidden disabled>
|
|
553
|
+
<${e} text="${(t) => t.placeholder}" hidden disabled>
|
|
566
554
|
</${e}>`;
|
|
567
555
|
}
|
|
568
|
-
function
|
|
569
|
-
const e = q(
|
|
556
|
+
function ie(n) {
|
|
557
|
+
const e = q(n), t = Q(n);
|
|
570
558
|
return h` <div
|
|
571
559
|
class="control ${ae}"
|
|
572
|
-
${
|
|
560
|
+
${b("_anchor")}
|
|
573
561
|
id="control"
|
|
574
562
|
?disabled="${(o) => o.disabled}"
|
|
575
563
|
>
|
|
576
564
|
<div class="selected-value">
|
|
577
|
-
${(o) => e(o.icon,
|
|
565
|
+
${(o) => e(o.icon, X.Slot)}
|
|
578
566
|
<span class="text">${(o) => o.displayValue}</span>
|
|
579
|
-
<slot name="meta" ${
|
|
567
|
+
<slot name="meta" ${x("metaSlottedContent")}></slot>
|
|
580
568
|
</div>
|
|
581
569
|
${t}
|
|
582
570
|
</div>`;
|
|
583
571
|
}
|
|
584
|
-
function le(
|
|
585
|
-
return
|
|
572
|
+
function le(n) {
|
|
573
|
+
return n.open && n.fixedDropdown ? `--_select-fixed-width: ${Math.round(n.getBoundingClientRect().width)}px` : null;
|
|
586
574
|
}
|
|
587
|
-
function se(
|
|
588
|
-
const e =
|
|
575
|
+
function se(n) {
|
|
576
|
+
const e = n.tagFor(C);
|
|
589
577
|
return h`
|
|
590
578
|
<div class="label-wrapper" ?hidden=${(t) => !t.label && !t._hasContextualHelp}>
|
|
591
|
-
${
|
|
592
|
-
<slot name="contextual-help" ${
|
|
579
|
+
${f((t) => t.label, ne())}
|
|
580
|
+
<slot name="contextual-help" ${x("_contextualHelpSlottedContent")}></slot>
|
|
593
581
|
</div>
|
|
594
582
|
<div class="control-wrapper">
|
|
595
|
-
${
|
|
583
|
+
${f((t) => !t.multiple, ie(n))}
|
|
596
584
|
<${e} class="popup"
|
|
597
585
|
style="${le}"
|
|
598
586
|
?open="${(t) => t.collapsible ? t.open : !0}"
|
|
@@ -607,11 +595,11 @@ function se(a) {
|
|
|
607
595
|
aria-labelledby="${(t) => t.multiple && t.label ? "label" : null}"
|
|
608
596
|
?disabled="${(t) => t.disabled}"
|
|
609
597
|
?hidden="${(t) => t.collapsible ? !t.open : !1}"
|
|
610
|
-
${
|
|
611
|
-
${
|
|
598
|
+
${b("listbox")}>
|
|
599
|
+
${f((t) => t.placeholder, re(n))}
|
|
612
600
|
<slot
|
|
613
|
-
${
|
|
614
|
-
filter:
|
|
601
|
+
${x({
|
|
602
|
+
filter: S.slottedOptionFilter,
|
|
615
603
|
flatten: !0,
|
|
616
604
|
property: "slottedOptions"
|
|
617
605
|
})}>
|
|
@@ -621,13 +609,13 @@ function se(a) {
|
|
|
621
609
|
</div>
|
|
622
610
|
`;
|
|
623
611
|
}
|
|
624
|
-
function d(
|
|
625
|
-
return (e, t) => t.event.composedPath().includes(e._feedbackWrapper) ? !0 :
|
|
612
|
+
function d(n) {
|
|
613
|
+
return (e, t) => t.event.composedPath().includes(e._feedbackWrapper) ? !0 : n(e, t.event);
|
|
626
614
|
}
|
|
627
|
-
const ce = (
|
|
615
|
+
const ce = (n) => h`
|
|
628
616
|
<template
|
|
629
617
|
class="base"
|
|
630
|
-
${
|
|
618
|
+
${B({
|
|
631
619
|
role: "combobox",
|
|
632
620
|
ariaLabel: (e) => e.ariaLabel ?? e.label,
|
|
633
621
|
ariaHasPopup: (e) => e.collapsible ? "listbox" : "false",
|
|
@@ -648,27 +636,27 @@ const ce = (a) => h`
|
|
|
648
636
|
(e, t) => e.mousedownHandler(t)
|
|
649
637
|
)}"
|
|
650
638
|
>
|
|
651
|
-
${se(
|
|
652
|
-
<div class="feedback-wrapper" ${
|
|
653
|
-
${(e) => e._getFeedbackTemplate(
|
|
639
|
+
${se(n)}
|
|
640
|
+
<div class="feedback-wrapper" ${b("_feedbackWrapper")}>
|
|
641
|
+
${(e) => e._getFeedbackTemplate(n)}
|
|
654
642
|
</div>
|
|
655
643
|
</template>
|
|
656
|
-
`, pe =
|
|
644
|
+
`, pe = T(
|
|
657
645
|
"select",
|
|
658
|
-
|
|
646
|
+
i,
|
|
659
647
|
ce,
|
|
660
648
|
[
|
|
661
649
|
A,
|
|
662
650
|
D,
|
|
663
|
-
|
|
664
|
-
|
|
651
|
+
E,
|
|
652
|
+
L
|
|
665
653
|
],
|
|
666
654
|
{
|
|
667
655
|
styles: ee
|
|
668
656
|
}
|
|
669
|
-
),
|
|
657
|
+
), Ve = z(pe);
|
|
670
658
|
export {
|
|
671
|
-
|
|
672
|
-
|
|
659
|
+
i as S,
|
|
660
|
+
Ve as r,
|
|
673
661
|
pe as s
|
|
674
662
|
};
|
package/bundled/definition2.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("./vivid-element.cjs"),h=require("./
|
|
1
|
+
"use strict";const r=require("./vivid-element.cjs"),h=require("./definition13.cjs"),u=require("./_has.cjs"),b=require("./class-names.cjs"),d=require("./when.cjs"),w=":host{display:inline-block;vertical-align:sub}.control.connotation-accent{--_connotation-color-primary: var(--vvd-icon-accent-primary, var(--vvd-color-canvas-text))}.control.connotation-announcement{--_connotation-color-primary: var(--vvd-icon-announcement-primary, var(--vvd-color-announcement-500))}.control.connotation-cta{--_connotation-color-primary: var(--vvd-icon-cta-primary, var(--vvd-color-cta-500))}.control.connotation-success{--_connotation-color-primary: var(--vvd-icon-success-primary, var(--vvd-color-success-500))}.control.connotation-warning{--_connotation-color-primary: var(--vvd-icon-warning-primary, var(--vvd-color-warning-300))}.control.connotation-alert{--_connotation-color-primary: var(--vvd-icon-alert-primary, var(--vvd-color-alert-500))}.control.connotation-information{--_connotation-color-primary: var(--vvd-icon-information-primary, var(--vvd-color-information-500))}.control.size--6{--_icon-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)) - (1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2)))) }.control.size--5{--_icon-block-size: calc(1px*(20 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--4{--_icon-block-size: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--3{--_icon-block-size: calc(1px*(28 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--2{--_icon-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size--1{--_icon-block-size: calc(1px*(36 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.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*(44 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-2{--_icon-block-size: calc(1px*(48 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-3{--_icon-block-size: calc(1px*(52 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-4{--_icon-block-size: calc(1px*(56 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.control.size-5{--_icon-block-size: calc(1px*(60 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }.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{display:flex;margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size)}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){margin:auto;block-size:inherit;inline-size:inherit}";function x(n,o){switch(n){case 0:return function(){return o.apply(this,arguments)};case 1:return function(e){return o.apply(this,arguments)};case 2:return function(e,t){return o.apply(this,arguments)};case 3:return function(e,t,i){return o.apply(this,arguments)};case 4:return function(e,t,i,a){return o.apply(this,arguments)};case 5:return function(e,t,i,a,s){return o.apply(this,arguments)};case 6:return function(e,t,i,a,s,v){return o.apply(this,arguments)};case 7:return function(e,t,i,a,s,v,p){return o.apply(this,arguments)};case 8:return function(e,t,i,a,s,v,p,m){return o.apply(this,arguments)};case 9:return function(e,t,i,a,s,v,p,m,f){return o.apply(this,arguments)};case 10:return function(e,t,i,a,s,v,p,m,f,U){return o.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function k(n){return n}var C=u._curry1(k),L=u._curry2(function(o,e){var t={};return x(e.length,function(){var i=o.apply(this,arguments);return u._has(i,t)||(t[i]=e.apply(this,arguments)),t[i]})});const $="https://icon.resources.vonage.com",y="4.6.9",E={toView(n){return n===void 0?null:n.toString()},fromView(n){if(typeof n=="string"&&(n=parseFloat(n.toString())),typeof n=="number")return isNaN(n)||!isFinite(n)?void 0:n}},g=`<svg width="80%" height="80%" viewBox="0 0 64 64">
|
|
2
2
|
<g>
|
|
3
3
|
<g stroke-width="6" stroke-linecap="round" fill="none">
|
|
4
4
|
<path stroke="currentColor" d="M4,32 c0,15,12,28,28,28c8,0,16-4,21-9">
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
</g>
|
|
11
11
|
</g>
|
|
12
12
|
</svg>`;var O=Object.defineProperty,D=Object.getOwnPropertyDescriptor,l=(n,o,e,t)=>{for(var i=t>1?void 0:t?D(o,e):o,a=n.length-1,s;a>=0;a--)(s=n[a])&&(i=(t?s(o,e,i):s(i))||i);return t&&i&&O(o,e,i),i};const I=500,S=2e3,z=(n,o)=>[$,`v${o}`,n].join("/"),T=({ok:n,headers:o})=>{if(!n||o.get("content-type")!=="image/svg+xml")throw new Error("Something went wrong")},N=n=>(T(n),n.text()),P=(n,o)=>fetch(z([n,"svg"].join("."),y),{signal:o}).then(N),R=L(C,(n,o)=>n.trim()?P(n,o):Promise.resolve(""));class c extends r.VividElement{constructor(){super(...arguments),this.iconLoaded=!1,this.#t=null}get iconUrl(){return this.name?z(`${this.name}.svg`,y):this._svg}#t;async nameChanged(){this.#t&&this.#t.abort(),this.#t=new AbortController,this._svg=void 0,this.iconLoaded=!1;let o=setTimeout(()=>{this._svg=g,o=setTimeout(()=>{this._svg===g&&(this._svg=void 0)},S)},I);await R(this.name?this.name:"",this.#t.signal).then(e=>{this._svg=e}).catch(()=>{this._svg=void 0}).finally(()=>{clearTimeout(o),this.iconLoaded=!0})}}l([r.attr],c.prototype,"connotation",2);l([r.attr({converter:E})],c.prototype,"size",2);l([r.observable],c.prototype,"_svg",2);l([r.observable],c.prototype,"iconLoaded",2);l([r.attr],c.prototype,"label",2);l([r.attr],c.prototype,"name",2);l([r.volatile],c.prototype,"iconUrl",1);const V=({connotation:n,size:o})=>b.classNames("control",[`connotation-${n}`,!!n],[`size-${o}`,typeof o=="number"]),A=n=>{const o=n.tagFor(h.VisuallyHidden),e=t=>!t.label||t.label.trim().length===0;return r.html`
|
|
13
|
-
<figure
|
|
13
|
+
<figure
|
|
14
|
+
class="${V}"
|
|
15
|
+
?aria-hidden="${t=>e(t)}"
|
|
16
|
+
?aria-busy="${t=>!t?.iconLoaded}"
|
|
17
|
+
>
|
|
14
18
|
<slot>
|
|
15
|
-
${d.when(t=>!t
|
|
16
|
-
${d.when(t=>t
|
|
19
|
+
${d.when(t=>!t?.iconLoaded,r.html`<img alt="${t=>t?.name}" src="${t=>t?.iconUrl}" />`)}
|
|
20
|
+
${d.when(t=>t?.iconLoaded&&t?._svg,t=>r.html`${r.html.partial(t._svg)}`)}
|
|
17
21
|
</slot>
|
|
18
|
-
<${o} class="label">${t=>t
|
|
22
|
+
<${o} class="label">${t=>t?.label}</${o}>
|
|
19
23
|
</figure>
|
|
20
24
|
`},_=r.defineVividComponent("icon",c,A,[h.visuallyHiddenDefinition],{styles:w}),H=r.createRegisterFunction(_);exports.Icon=c;exports.iconDefinition=_;exports.registerIcon=H;
|
package/bundled/definition2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as f, a as
|
|
2
|
-
import { V as k, v as C } from "./
|
|
1
|
+
import { V as f, a as p, o as y, v as b, h as v, c as w, d as x } from "./vivid-element.js";
|
|
2
|
+
import { V as k, v as C } from "./definition13.js";
|
|
3
3
|
import { a as L, b as $, _ as E } from "./_has.js";
|
|
4
4
|
import { c as O } from "./class-names.js";
|
|
5
5
|
import { w as d } from "./when.js";
|
|
@@ -35,19 +35,19 @@ function T(o, n) {
|
|
|
35
35
|
return n.apply(this, arguments);
|
|
36
36
|
};
|
|
37
37
|
case 7:
|
|
38
|
-
return function(a, t, r, e, i, l,
|
|
38
|
+
return function(a, t, r, e, i, l, m) {
|
|
39
39
|
return n.apply(this, arguments);
|
|
40
40
|
};
|
|
41
41
|
case 8:
|
|
42
|
-
return function(a, t, r, e, i, l,
|
|
42
|
+
return function(a, t, r, e, i, l, m, u) {
|
|
43
43
|
return n.apply(this, arguments);
|
|
44
44
|
};
|
|
45
45
|
case 9:
|
|
46
|
-
return function(a, t, r, e, i, l,
|
|
46
|
+
return function(a, t, r, e, i, l, m, u, _) {
|
|
47
47
|
return n.apply(this, arguments);
|
|
48
48
|
};
|
|
49
49
|
case 10:
|
|
50
|
-
return function(a, t, r, e, i, l,
|
|
50
|
+
return function(a, t, r, e, i, l, m, u, _, G) {
|
|
51
51
|
return n.apply(this, arguments);
|
|
52
52
|
};
|
|
53
53
|
default:
|
|
@@ -123,10 +123,10 @@ class s extends f {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
c([
|
|
126
|
-
|
|
126
|
+
p
|
|
127
127
|
], s.prototype, "connotation", 2);
|
|
128
128
|
c([
|
|
129
|
-
|
|
129
|
+
p({ converter: P })
|
|
130
130
|
], s.prototype, "size", 2);
|
|
131
131
|
c([
|
|
132
132
|
y
|
|
@@ -135,10 +135,10 @@ c([
|
|
|
135
135
|
y
|
|
136
136
|
], s.prototype, "iconLoaded", 2);
|
|
137
137
|
c([
|
|
138
|
-
|
|
138
|
+
p
|
|
139
139
|
], s.prototype, "label", 2);
|
|
140
140
|
c([
|
|
141
|
-
|
|
141
|
+
p
|
|
142
142
|
], s.prototype, "name", 2);
|
|
143
143
|
c([
|
|
144
144
|
b
|
|
@@ -149,19 +149,23 @@ const W = ({ connotation: o, size: n }) => O(
|
|
|
149
149
|
[`size-${n}`, typeof n == "number"]
|
|
150
150
|
), Y = (o) => {
|
|
151
151
|
const n = o.tagFor(k), a = (t) => !t.label || t.label.trim().length === 0;
|
|
152
|
-
return
|
|
153
|
-
<figure
|
|
152
|
+
return v`
|
|
153
|
+
<figure
|
|
154
|
+
class="${W}"
|
|
155
|
+
?aria-hidden="${(t) => a(t)}"
|
|
156
|
+
?aria-busy="${(t) => !t?.iconLoaded}"
|
|
157
|
+
>
|
|
154
158
|
<slot>
|
|
155
159
|
${d(
|
|
156
|
-
(t) => !t
|
|
157
|
-
|
|
160
|
+
(t) => !t?.iconLoaded,
|
|
161
|
+
v`<img alt="${(t) => t?.name}" src="${(t) => t?.iconUrl}" />`
|
|
158
162
|
)}
|
|
159
163
|
${d(
|
|
160
|
-
(t) => t
|
|
161
|
-
(t) =>
|
|
164
|
+
(t) => t?.iconLoaded && t?._svg,
|
|
165
|
+
(t) => v`${v.partial(t._svg)}`
|
|
162
166
|
)}
|
|
163
167
|
</slot>
|
|
164
|
-
<${n} class="label">${(t) => t
|
|
168
|
+
<${n} class="label">${(t) => t?.label}</${n}>
|
|
165
169
|
</figure>
|
|
166
170
|
`;
|
|
167
171
|
}, q = x(
|