@vonage/vivid 5.1.0 → 5.3.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 +2 -1
- package/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/audio-player/definition.cjs +41 -6
- package/audio-player/definition.js +41 -6
- package/audio-player/index.cjs +27 -25
- package/audio-player/index.js +88 -62
- package/badge/index.cjs +2 -2
- package/badge/index.js +4 -4
- 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 +1 -1
- package/bundled/calendar-picker.template.js +21 -21
- 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 +66 -37
- 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 +17 -14
- package/bundled/definition19.js +85 -77
- 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 +6 -6
- package/bundled/definition6.js +34 -31
- 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 +1 -1
- package/bundled/definition9.js +1 -1
- 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/localized.cjs +1 -1
- package/bundled/localized.js +43 -31
- 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 +18 -13
- package/bundled/picker-field.template.js +45 -37
- 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/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +1 -1
- package/bundled/time-selection-picker.template.js +5 -5
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +2126 -1172
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +8 -7
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +17 -7
- package/calendar/definition.cjs +1 -1
- package/calendar/definition.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +6 -6
- package/calendar-event/index.cjs +1 -1
- package/calendar-event/index.js +1 -1
- package/card/definition.cjs +10 -2
- package/card/definition.js +10 -2
- 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 +13 -6
- package/combobox/definition.js +14 -7
- package/combobox/index.cjs +15 -11
- package/combobox/index.js +82 -75
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +1 -1
- package/custom-elements.json +1621 -325
- 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/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +2 -2
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +2 -2
- package/dial-pad/definition.cjs +55 -1
- package/dial-pad/definition.js +56 -2
- package/dial-pad/index.cjs +21 -18
- package/dial-pad/index.js +138 -104
- package/dialog/definition.cjs +4 -1
- package/dialog/definition.js +4 -1
- package/dialog/index.cjs +21 -18
- package/dialog/index.js +43 -40
- 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/index.cjs +2 -2
- package/fab/index.js +4 -4
- package/file-picker/definition.cjs +16 -7
- package/file-picker/definition.js +17 -8
- package/file-picker/index.cjs +12 -9
- package/file-picker/index.js +103 -93
- package/icon/definition.cjs +10 -6
- package/icon/definition.js +10 -6
- package/index.cjs +4 -0
- package/index.js +1 -0
- 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 +6 -2
- 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 +495 -78
- 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 +906 -894
- package/lib/date-range-picker/date-range-picker.d.ts +596 -590
- package/lib/date-time-picker/date-time-picker.d.ts +907 -895
- package/lib/dial-pad/dial-pad.d.ts +3 -2
- package/lib/dial-pad/dial-pad.template.d.ts +1 -1
- package/lib/dial-pad/locale.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +4 -4
- package/lib/divider/divider.d.ts +2 -2
- package/lib/fab/fab.d.ts +2 -2
- package/lib/file-picker/file-picker.d.ts +495 -78
- package/lib/header/header.d.ts +2 -2
- package/lib/menu/menu.d.ts +5 -4
- 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 +19 -18
- package/lib/option/option.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +2 -2
- 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/option-tag.d.ts +2 -2
- package/lib/searchable-select/searchable-select.d.ts +521 -104
- package/lib/select/select.d.ts +484 -67
- 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 +6 -6
- 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/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 -16
- package/lib/text-field/text-field.d.ts +19 -18
- package/lib/time-picker/time-picker.d.ts +579 -573
- 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 +15 -3
- package/locales/de-DE.js +15 -3
- package/locales/en-GB.cjs +15 -3
- package/locales/en-GB.js +15 -3
- package/locales/en-US.cjs +15 -3
- package/locales/en-US.js +15 -3
- package/locales/ja-JP.cjs +15 -3
- package/locales/ja-JP.js +15 -3
- package/locales/zh-CN.cjs +15 -3
- package/locales/zh-CN.js +15 -3
- package/menu/definition.cjs +8 -4
- package/menu/definition.js +9 -5
- package/note/index.cjs +2 -2
- package/note/index.js +4 -4
- package/number-field/definition.cjs +3 -3
- package/number-field/definition.js +4 -4
- package/number-field/index.cjs +8 -8
- package/number-field/index.js +41 -40
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +5 -5
- 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/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/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +2 -2
- package/rich-text-editor/index.cjs +2 -2
- package/rich-text-editor/index.js +3 -3
- package/searchable-select/definition.cjs +30 -21
- package/searchable-select/definition.js +31 -22
- package/searchable-select/index.cjs +28 -25
- package/searchable-select/index.js +149 -140
- package/select/definition.cjs +15 -7
- package/select/definition.js +16 -8
- 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 +2 -2
- 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/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/index.d.ts +1 -0
- package/shared/patterns/form-elements/with-contextual-help.d.ts +7 -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 +454 -451
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +454 -451
- 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 +600 -594
- package/shared/picker-field/mixins/single-date-picker.d.ts +746 -737
- package/shared/picker-field/mixins/single-value-picker.d.ts +451 -448
- package/shared/picker-field/mixins/time-selection-picker.d.ts +580 -574
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +579 -573
- package/shared/picker-field/picker-field.d.ts +495 -78
- 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 +28 -215
- package/simple-color-picker/definition.js +29 -216
- package/simple-color-picker/index.cjs +9 -21
- package/simple-color-picker/index.js +71 -185
- 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/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/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/text-area/index.cjs +3 -3
- package/text-area/index.js +9 -9
- package/text-field/definition.cjs +3 -3
- package/text-field/definition.js +4 -4
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +2 -2
- package/toggletip/definition.cjs +1 -1
- package/toggletip/definition.js +2 -2
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +2 -2
- 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 +1 -1
- 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 +3 -3
- package/unbundled/calendar-picker.template.js +4 -4
- package/unbundled/definition2.cjs +1 -1
- package/unbundled/definition2.js +2 -2
- package/unbundled/definition3.cjs +2 -1
- package/unbundled/definition3.js +2 -1
- 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/mixins.cjs +34 -27
- package/unbundled/mixins.js +35 -28
- package/unbundled/picker-field.template.cjs +13 -5
- package/unbundled/picker-field.template.js +14 -6
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.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/unbundled/with-contextual-help.cjs +11 -0
- package/unbundled/with-contextual-help.js +11 -0
- package/video-player/definition.cjs +69007 -1
- package/video-player/definition.js +69007 -1
- package/video-player/index.cjs +35 -35
- package/video-player/index.js +1358 -1384
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +1 -1
- package/vivid.api.json +347 -69
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { P, p as
|
|
1
|
+
import { B as z, c as E, b as P } from "../bundled/definition3.js";
|
|
2
|
+
import { P as L, p as B } from "../bundled/definition9.js";
|
|
3
3
|
import { I as M, i as I } from "../bundled/definition2.js";
|
|
4
|
-
import { P as
|
|
5
|
-
import { V as
|
|
6
|
-
import { W as K, f as
|
|
7
|
-
import { s as
|
|
8
|
-
import { D as
|
|
9
|
-
import { F as
|
|
10
|
-
import { W as
|
|
11
|
-
import { W as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
4
|
+
import { P as A, p as W } from "../bundled/definition15.js";
|
|
5
|
+
import { V as F, O as T, U as N, a as f, n as D, o as d, h as p, c as H, d as R } from "../bundled/vivid-element.js";
|
|
6
|
+
import { W as K, f as j } from "../bundled/mixins.js";
|
|
7
|
+
import { s as q } from "../bundled/scrollIntoView.js";
|
|
8
|
+
import { D as U, d as G } from "../bundled/delegates-aria.js";
|
|
9
|
+
import { F as J } from "../bundled/form-associated.js";
|
|
10
|
+
import { W as Q } from "../bundled/with-contextual-help.js";
|
|
11
|
+
import { W as X } from "../bundled/with-error-text.js";
|
|
12
|
+
import { W as Y } from "../bundled/with-success-text.js";
|
|
13
|
+
import { F as Z } from "../bundled/form-element.js";
|
|
14
|
+
import { A as ee, a as te, I as oe } from "../bundled/affix.js";
|
|
15
|
+
import { L as V } from "../bundled/localized.js";
|
|
16
|
+
import { i as ae } from "../bundled/option.js";
|
|
16
17
|
import { w as v } from "../bundled/when.js";
|
|
18
|
+
import { s as O } from "../bundled/slotted.js";
|
|
17
19
|
import { r as x } from "../bundled/ref.js";
|
|
18
|
-
import {
|
|
19
|
-
import { c as
|
|
20
|
-
import { r as y } from "../bundled/repeat.js";
|
|
21
|
-
|
|
22
|
-
var se = Object.defineProperty, r = (s, t, e, a) => {
|
|
20
|
+
import { r as w } from "../bundled/repeat.js";
|
|
21
|
+
import { c as y } from "../bundled/class-names.js";
|
|
22
|
+
const ie = ".chevron{display:flex;flex-shrink:0;font:var(--vvd-typography-base-extended);transform:rotate(0);transition:transform .2s}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:not(.disabled) .chevron{cursor:pointer}.disabled .chevron{color:var(--_low-ink-color);cursor:not-allowed}:host(:focus-visible){outline:none}:host{display:inline-block;inline-size:300px;--_low-ink-color: var(--vvd-color-neutral-600)}:host([disabled]){--_low-ink-color: var(--vvd-color-neutral-400);cursor:not-allowed}.control-wrapper{display:flex;flex-direction:column;gap:4px}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.selection-count{color:var(--_low-ink-color);font:var(--vvd-typography-base)}.fieldset{--_connotation-color-primary: var(--vvd-searchable-select-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-searchable-select-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-searchable-select-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-searchable-select-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-searchable-select-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-searchable-select-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-searchable-select-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-searchable-select-accent-fierce, var(--vvd-color-neutral-700))}.fieldset{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.fieldset.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.fieldset:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-700)}.fieldset.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.fieldset:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset:disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.fieldset.disabled.appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.fieldset.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.fieldset.error:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.fieldset.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.fieldset.success:where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.fieldset.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.fieldset{display:flex;align-items:center;justify-content:space-between;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);gap:8px;padding-block:8px;padding-inline:16px;transition:box-shadow .2s,background-color .2s}@supports selector(:has(*)){.fieldset:not(.has-highlighted-option):has(input:focus){box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}@supports not selector(:has(*)){.fieldset:not(.has-highlighted-option):focus-within{box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}}:host(:not([shape=pill])) .fieldset{border-radius:8px}:host([shape=pill]) .fieldset{border-radius:24px}.popup-wrapper{position:relative}.content-area{display:flex;overflow:hidden;flex:1;flex-direction:column;gap:8px;min-block-size:24px}.tag-row{display:flex;gap:8px;inline-size:100%}.tag-row.contains-only-input:not(:focus-within){display:contents}.tag-wrapper{overflow:hidden}.tag{max-inline-size:100%}input{box-sizing:border-box;flex:1;border:none;background:none;block-size:24px;font:var(--vvd-typography-base);max-inline-size:100%;min-inline-size:min(100px,40%);outline:none}.contains-only-input input:not(:focus){position:absolute;block-size:0;inline-size:0;min-inline-size:0;opacity:0;pointer-events:none}.listbox{display:flex;flex-direction:column;padding:4px;gap:2px;max-block-size:var(--searchable-select-height, 408px);overflow-y:auto}.empty-message{display:flex;align-items:center;justify-content:center;color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);min-block-size:40px;text-align:center}::part(popup-base){inline-size:max-content;min-inline-size:var(--_searchable-select-fixed-width, 100%)}slot[name=icon]{font-size:20px}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}::slotted([data-vvd-component=option][data-highlighted]){border-radius:8px;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent}.label-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--label-wrapper-gap, 8px)}.label-wrapper[hidden]{display:none}.label-wrapper .label{flex:1 1 auto}.label-wrapper slot[name=contextual-help]::slotted([data-vvd-component=contextual-help]){margin-inline-start:auto}", se = '.base.connotation-cta{--_connotation-color-contrast: var(--vvd-option-tag-cta-contrast, var(--vvd-color-cta-800))}.base:not(.connotation-cta){--_connotation-color-contrast: var(--vvd-option-tag-accent-contrast, var(--vvd-color-neutral-800))}.base{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;background-color:var(--fill-color);block-size:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)));box-shadow:inset 0 0 0 1px var(--outline-color);color:var(--text-color);column-gap:8px;font:var(--vvd-typography-base-bold);max-inline-size:100%;padding-inline:8px;user-select:none;vertical-align:middle}.base:not(.disabled){--text-color: var(--_connotation-color-contrast);--fill-color: var(--_connotation-color-soft);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base:not(.disabled){--fill-color: color-mix( in srgb, var(--_connotation-color-contrast), transparent 87.5% )}}.base.disabled{--text-color: var(--vvd-color-neutral-300);--fill-color: var(--vvd-color-neutral-200);--outline-color: transparent}@supports (background-color: color-mix(in srgb,black 50%,white)){.base.disabled{--fill-color: color-mix( in srgb, var(--vvd-color-neutral-800), transparent 87.5% )}}.base:not(.shape-pill){border-radius:4px}.base.shape-pill{border-radius:16px}.label{overflow:hidden;max-inline-size:100%;text-overflow:ellipsis;white-space:nowrap}slot[name=icon]{font-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5);line-height:1}.icon-placeholder{inline-size:calc(calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2))) / 1.5)}.remove-button{display:flex;align-items:center;border-radius:inherit;cursor:pointer;outline:none}.disabled .remove-button{pointer-events:none}.remove-button:focus-visible:before{--focus-stroke-gap-color: transparent;box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px));position:absolute;z-index:1;display:block;border-radius:inherit;content:"";inset:0;pointer-events:none}';
|
|
23
|
+
var le = Object.defineProperty, r = (s, t, e, a) => {
|
|
23
24
|
for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
|
|
24
25
|
(g = s[l]) && (i = g(t, e, i) || i);
|
|
25
|
-
return i &&
|
|
26
|
+
return i && le(t, e, i), i;
|
|
26
27
|
};
|
|
27
|
-
const m = 8,
|
|
28
|
-
class n extends
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
const m = 8, ne = 100, S = 10, re = (s) => typeof s == "string";
|
|
29
|
+
class n extends Q(
|
|
30
|
+
K(
|
|
31
|
+
X(
|
|
32
|
+
Y(
|
|
33
|
+
Z(
|
|
34
|
+
U(
|
|
35
|
+
ee(V(J(F)))
|
|
36
|
+
)
|
|
34
37
|
)
|
|
35
38
|
)
|
|
36
39
|
)
|
|
@@ -42,8 +45,8 @@ class n extends K(
|
|
|
42
45
|
t.selected && !this.values.includes(t.value) ? this.values = [...this.values, t.value] : !t.selected && this.values.includes(t.value) && (this.values = this.values.filter((a) => a !== t.value));
|
|
43
46
|
}
|
|
44
47
|
}, this.#t = /* @__PURE__ */ new Map(), this._filteredOptions = [], this._filteredEnabledOptions = [], this.loading = !1, this._highlightedOptionIndex = null, this._numElidedTags = 0, this._tagRows = [], this._lastTagRow = [], this.clearable = !1, this.maxSelected = null, this._slottedDisabledOptions = [], this.proxy = document.createElement("input"), this.setFormValue = (t, e) => {
|
|
45
|
-
|
|
46
|
-
}, this._changeDescription = "", this.#
|
|
48
|
+
re(t) || super.setFormValue(t, e);
|
|
49
|
+
}, this._changeDescription = "", this.#p = new ResizeObserver(() => {
|
|
47
50
|
this.#u();
|
|
48
51
|
});
|
|
49
52
|
}
|
|
@@ -62,8 +65,8 @@ class n extends K(
|
|
|
62
65
|
this.values = [this.values[0]];
|
|
63
66
|
return;
|
|
64
67
|
}
|
|
65
|
-
if (this.values.some((t) => !this.#
|
|
66
|
-
this.values = this.values.filter((t) => this.#
|
|
68
|
+
if (this.values.some((t) => !this.#d(t))) {
|
|
69
|
+
this.values = this.values.filter((t) => this.#d(t));
|
|
67
70
|
return;
|
|
68
71
|
}
|
|
69
72
|
this.value = this.values.length ? this.values[0] : "", this.#c(), this.#m(), this.$fastController.isConnected && this.#u(), this.#g();
|
|
@@ -86,7 +89,7 @@ class n extends K(
|
|
|
86
89
|
initialValuesChanged() {
|
|
87
90
|
this.dirtyValue || (this.values = this.initialValues, this.dirtyValue = !1);
|
|
88
91
|
}
|
|
89
|
-
#
|
|
92
|
+
#d(t) {
|
|
90
93
|
return this._slottedOptions.some((e) => e.value === t);
|
|
91
94
|
}
|
|
92
95
|
/**
|
|
@@ -172,13 +175,13 @@ class n extends K(
|
|
|
172
175
|
this.open = !0;
|
|
173
176
|
break;
|
|
174
177
|
}
|
|
175
|
-
return this.#
|
|
178
|
+
return this.#w(), !1;
|
|
176
179
|
case "End":
|
|
177
180
|
if (!this.open) {
|
|
178
181
|
this.open = !0;
|
|
179
182
|
break;
|
|
180
183
|
}
|
|
181
|
-
return this.#
|
|
184
|
+
return this.#y(), !1;
|
|
182
185
|
case "PageUp":
|
|
183
186
|
if (!this.open) {
|
|
184
187
|
this.open = !0;
|
|
@@ -304,7 +307,7 @@ class n extends K(
|
|
|
304
307
|
Math.min(this._filteredEnabledOptions.length - 1, t)
|
|
305
308
|
) : t = null), this._highlightedOptionIndex = t, typeof this._highlightedOptionIndex == "number") {
|
|
306
309
|
const e = this._filteredEnabledOptions[this._highlightedOptionIndex];
|
|
307
|
-
e._highlighted = !0, e.setAttribute("data-highlighted", ""),
|
|
310
|
+
e._highlighted = !0, e.setAttribute("data-highlighted", ""), q(e, this._listbox, "nearest"), this._changeDescription = this.locale.searchableSelect.optionFocusedMessage(
|
|
308
311
|
e._getAccessibleName(),
|
|
309
312
|
this._highlightedOptionIndex + 1,
|
|
310
313
|
this._filteredEnabledOptions.length,
|
|
@@ -317,22 +320,22 @@ class n extends K(
|
|
|
317
320
|
this._filteredEnabledOptions[this._highlightedOptionIndex]
|
|
318
321
|
);
|
|
319
322
|
}
|
|
320
|
-
#
|
|
323
|
+
#w() {
|
|
321
324
|
this.#e(0);
|
|
322
325
|
}
|
|
323
|
-
#
|
|
326
|
+
#y() {
|
|
324
327
|
this.#e(
|
|
325
328
|
this._filteredEnabledOptions.length - 1
|
|
326
329
|
);
|
|
327
330
|
}
|
|
328
331
|
#$() {
|
|
329
332
|
this.#e(
|
|
330
|
-
(this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) -
|
|
333
|
+
(this._highlightedOptionIndex ?? this._filteredEnabledOptions.length) - S
|
|
331
334
|
);
|
|
332
335
|
}
|
|
333
336
|
#T() {
|
|
334
337
|
this.#e(
|
|
335
|
-
(this._highlightedOptionIndex ?? -1) +
|
|
338
|
+
(this._highlightedOptionIndex ?? -1) + S
|
|
336
339
|
);
|
|
337
340
|
}
|
|
338
341
|
#O() {
|
|
@@ -395,7 +398,7 @@ class n extends K(
|
|
|
395
398
|
return;
|
|
396
399
|
}
|
|
397
400
|
const t = this._contentArea.getBoundingClientRect().width, e = [[]];
|
|
398
|
-
let a = 0, i =
|
|
401
|
+
let a = 0, i = ne, l;
|
|
399
402
|
for (l = this.values.length - 1; l >= 0; l--) {
|
|
400
403
|
const h = this.maxLines && a === this.maxLines - 1, u = this.#n(
|
|
401
404
|
this._tagLabelForValue(this.values[l]),
|
|
@@ -451,7 +454,7 @@ class n extends K(
|
|
|
451
454
|
case "Delete":
|
|
452
455
|
case "Enter":
|
|
453
456
|
case " ": {
|
|
454
|
-
this._onTagRemoved(this.values[e]),
|
|
457
|
+
this._onTagRemoved(this.values[e]), N.process(), this.#i(this.#C(e));
|
|
455
458
|
break;
|
|
456
459
|
}
|
|
457
460
|
case "ArrowLeft":
|
|
@@ -482,7 +485,7 @@ class n extends K(
|
|
|
482
485
|
return e;
|
|
483
486
|
return null;
|
|
484
487
|
}
|
|
485
|
-
#
|
|
488
|
+
#C(t) {
|
|
486
489
|
return this.#v(t - 1) ?? this.#r(t);
|
|
487
490
|
}
|
|
488
491
|
/**
|
|
@@ -532,6 +535,12 @@ class n extends K(
|
|
|
532
535
|
for (const e of t)
|
|
533
536
|
e.disabled = !1;
|
|
534
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* @internal
|
|
540
|
+
*/
|
|
541
|
+
get _hasSelectionCount() {
|
|
542
|
+
return this.multiple && this.maxSelected && this.maxSelected >= 1;
|
|
543
|
+
}
|
|
535
544
|
#f() {
|
|
536
545
|
return this.initialValues.length ? this.initialValues : this.initialValue ? [this.initialValue] : [];
|
|
537
546
|
}
|
|
@@ -557,7 +566,7 @@ class n extends K(
|
|
|
557
566
|
formResetCallback() {
|
|
558
567
|
super.formResetCallback(), this.#a(this.#f());
|
|
559
568
|
}
|
|
560
|
-
#
|
|
569
|
+
#p;
|
|
561
570
|
/**
|
|
562
571
|
* @internal
|
|
563
572
|
*/
|
|
@@ -571,10 +580,10 @@ class n extends K(
|
|
|
571
580
|
return this.open ? (this.open = !1, !1) : !0;
|
|
572
581
|
}
|
|
573
582
|
connectedCallback() {
|
|
574
|
-
super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#
|
|
583
|
+
super.connectedCallback(), this.values.length || (this.values = this.#f()), this.#p.observe(this._contentArea);
|
|
575
584
|
}
|
|
576
585
|
disconnectedCallback() {
|
|
577
|
-
super.disconnectedCallback(), this.#
|
|
586
|
+
super.disconnectedCallback(), this.#p.disconnect();
|
|
578
587
|
}
|
|
579
588
|
/**
|
|
580
589
|
* @internal
|
|
@@ -593,7 +602,7 @@ class n extends K(
|
|
|
593
602
|
*/
|
|
594
603
|
_onMouseDown(t) {
|
|
595
604
|
const e = t.composedPath()[0];
|
|
596
|
-
return !t.defaultPrevented && e !== this._input ? (this._input.focus(), !1) : !0;
|
|
605
|
+
return !t.defaultPrevented && e !== this._input && !this._isFromContextualHelp(t) ? (this._input.focus(), !1) : !0;
|
|
597
606
|
}
|
|
598
607
|
}
|
|
599
608
|
r([
|
|
@@ -618,31 +627,31 @@ r([
|
|
|
618
627
|
f({ attribute: "external-tags", mode: "boolean" })
|
|
619
628
|
], n.prototype, "externalTags");
|
|
620
629
|
r([
|
|
621
|
-
f({ attribute: "max-lines", converter:
|
|
630
|
+
f({ attribute: "max-lines", converter: D })
|
|
622
631
|
], n.prototype, "maxLines");
|
|
623
632
|
r([
|
|
624
|
-
|
|
633
|
+
d
|
|
625
634
|
], n.prototype, "values");
|
|
626
635
|
r([
|
|
627
|
-
|
|
636
|
+
d
|
|
628
637
|
], n.prototype, "initialValues");
|
|
629
638
|
r([
|
|
630
|
-
|
|
639
|
+
d
|
|
631
640
|
], n.prototype, "_input");
|
|
632
641
|
r([
|
|
633
|
-
|
|
642
|
+
d
|
|
634
643
|
], n.prototype, "_currentSearchText");
|
|
635
644
|
r([
|
|
636
|
-
|
|
645
|
+
d
|
|
637
646
|
], n.prototype, "_slottedOptions");
|
|
638
647
|
r([
|
|
639
|
-
|
|
648
|
+
d
|
|
640
649
|
], n.prototype, "optionFilter");
|
|
641
650
|
r([
|
|
642
|
-
|
|
651
|
+
d
|
|
643
652
|
], n.prototype, "_filteredOptions");
|
|
644
653
|
r([
|
|
645
|
-
|
|
654
|
+
d
|
|
646
655
|
], n.prototype, "_filteredEnabledOptions");
|
|
647
656
|
r([
|
|
648
657
|
f({
|
|
@@ -650,44 +659,44 @@ r([
|
|
|
650
659
|
})
|
|
651
660
|
], n.prototype, "loading");
|
|
652
661
|
r([
|
|
653
|
-
|
|
662
|
+
d
|
|
654
663
|
], n.prototype, "_highlightedOptionIndex");
|
|
655
664
|
r([
|
|
656
|
-
|
|
665
|
+
d
|
|
657
666
|
], n.prototype, "_contentArea");
|
|
658
667
|
r([
|
|
659
|
-
|
|
668
|
+
d
|
|
660
669
|
], n.prototype, "_numElidedTags");
|
|
661
670
|
r([
|
|
662
|
-
|
|
671
|
+
d
|
|
663
672
|
], n.prototype, "_tagRows");
|
|
664
673
|
r([
|
|
665
|
-
|
|
674
|
+
d
|
|
666
675
|
], n.prototype, "_lastTagRow");
|
|
667
676
|
r([
|
|
668
|
-
|
|
677
|
+
d
|
|
669
678
|
], n.prototype, "_listbox");
|
|
670
679
|
r([
|
|
671
680
|
f({ mode: "boolean" })
|
|
672
681
|
], n.prototype, "clearable");
|
|
673
682
|
r([
|
|
674
|
-
f({ attribute: "max-selected", converter:
|
|
683
|
+
f({ attribute: "max-selected", converter: D })
|
|
675
684
|
], n.prototype, "maxSelected");
|
|
676
685
|
r([
|
|
677
|
-
|
|
686
|
+
d
|
|
678
687
|
], n.prototype, "_slottedDisabledOptions");
|
|
679
688
|
r([
|
|
680
|
-
|
|
689
|
+
d
|
|
681
690
|
], n.prototype, "_changeDescription");
|
|
682
691
|
r([
|
|
683
|
-
|
|
692
|
+
d
|
|
684
693
|
], n.prototype, "_anchor");
|
|
685
|
-
var
|
|
694
|
+
var ce = Object.defineProperty, _ = (s, t, e, a) => {
|
|
686
695
|
for (var i = void 0, l = s.length - 1, g; l >= 0; l--)
|
|
687
696
|
(g = s[l]) && (i = g(t, e, i) || i);
|
|
688
|
-
return i &&
|
|
697
|
+
return i && ce(t, e, i), i;
|
|
689
698
|
};
|
|
690
|
-
class b extends
|
|
699
|
+
class b extends V(F) {
|
|
691
700
|
constructor() {
|
|
692
701
|
super(...arguments), this.removable = !1, this.disabled = !1, this.hasIconPlaceholder = !1;
|
|
693
702
|
}
|
|
@@ -701,7 +710,7 @@ _([
|
|
|
701
710
|
f
|
|
702
711
|
], b.prototype, "shape");
|
|
703
712
|
_([
|
|
704
|
-
|
|
713
|
+
d
|
|
705
714
|
], b.prototype, "connotation");
|
|
706
715
|
_([
|
|
707
716
|
f
|
|
@@ -713,9 +722,9 @@ _([
|
|
|
713
722
|
f({ mode: "boolean" })
|
|
714
723
|
], b.prototype, "disabled");
|
|
715
724
|
_([
|
|
716
|
-
|
|
725
|
+
d
|
|
717
726
|
], b.prototype, "hasIconPlaceholder");
|
|
718
|
-
const
|
|
727
|
+
const pe = (s) => y(
|
|
719
728
|
["disabled", s.disabled],
|
|
720
729
|
[`appearance-${s.appearance}`, !!s.appearance],
|
|
721
730
|
[`shape-${s.shape}`, !!s.shape],
|
|
@@ -724,12 +733,12 @@ const ce = (s) => w(
|
|
|
724
733
|
["has-highlighted-option", s._highlightedOptionIndex !== null]
|
|
725
734
|
);
|
|
726
735
|
function de() {
|
|
727
|
-
return
|
|
736
|
+
return p`
|
|
728
737
|
<label for="control" class="label" id="label"> ${(s) => s.label} </label>
|
|
729
738
|
`;
|
|
730
739
|
}
|
|
731
|
-
function
|
|
732
|
-
return
|
|
740
|
+
function he() {
|
|
741
|
+
return p`
|
|
733
742
|
<span
|
|
734
743
|
id="selection-count"
|
|
735
744
|
class="selection-count"
|
|
@@ -741,9 +750,9 @@ function pe() {
|
|
|
741
750
|
>
|
|
742
751
|
`;
|
|
743
752
|
}
|
|
744
|
-
const
|
|
753
|
+
const k = (s, t) => {
|
|
745
754
|
const e = s.tagFor(b);
|
|
746
|
-
return
|
|
755
|
+
return p`
|
|
747
756
|
<div class="tag-wrapper">
|
|
748
757
|
<${e}
|
|
749
758
|
class="tag"
|
|
@@ -761,9 +770,9 @@ const S = (s, t) => {
|
|
|
761
770
|
</${e}>
|
|
762
771
|
</div>
|
|
763
772
|
`;
|
|
764
|
-
},
|
|
773
|
+
}, C = (s, t) => {
|
|
765
774
|
const e = s.tagFor(b);
|
|
766
|
-
return
|
|
775
|
+
return p`
|
|
767
776
|
<${e}
|
|
768
777
|
class="tag"
|
|
769
778
|
tabindex="-1"
|
|
@@ -774,37 +783,37 @@ const S = (s, t) => {
|
|
|
774
783
|
</${e}>
|
|
775
784
|
`;
|
|
776
785
|
};
|
|
777
|
-
function
|
|
778
|
-
const t = s.tagFor(
|
|
786
|
+
function ue(s) {
|
|
787
|
+
const t = s.tagFor(z), e = s.tagFor(A), a = te(s), i = E(s), l = k(s, (o) => o.parent), g = k(
|
|
779
788
|
s,
|
|
780
789
|
(o) => o.parentContext.parent
|
|
781
|
-
), h =
|
|
790
|
+
), h = C(s, (o, c) => o), u = C(
|
|
782
791
|
s,
|
|
783
792
|
(o, c) => c.parent
|
|
784
793
|
);
|
|
785
|
-
return
|
|
794
|
+
return p`
|
|
786
795
|
<div
|
|
787
|
-
class="fieldset ${
|
|
796
|
+
class="fieldset ${pe}"
|
|
788
797
|
@click="${(o, c) => o._onFieldsetClick(c.event)}"
|
|
789
798
|
${x("_anchor")}
|
|
790
799
|
>
|
|
791
|
-
${(o) => a(o.icon,
|
|
800
|
+
${(o) => a(o.icon, oe.Slot)}
|
|
792
801
|
<div class="content-area" ${x("_contentArea")}>
|
|
793
|
-
${
|
|
802
|
+
${w(
|
|
794
803
|
(o) => o._tagRows,
|
|
795
|
-
|
|
804
|
+
p`
|
|
796
805
|
<div class="tag-row">
|
|
797
806
|
${v(
|
|
798
807
|
(o, c) => c.isFirst && c.parent._numElidedTags,
|
|
799
808
|
u
|
|
800
809
|
)}
|
|
801
|
-
${
|
|
810
|
+
${w((o) => o, g)}
|
|
802
811
|
</div>
|
|
803
812
|
`,
|
|
804
813
|
{ positioning: !0 }
|
|
805
814
|
)}
|
|
806
815
|
<div
|
|
807
|
-
class="tag-row ${(o) =>
|
|
816
|
+
class="tag-row ${(o) => y([
|
|
808
817
|
"contains-only-input",
|
|
809
818
|
o._tagRows.length > 0 && o._lastTagRow.length === 0
|
|
810
819
|
])}"
|
|
@@ -813,14 +822,14 @@ function he(s) {
|
|
|
813
822
|
(o) => o._tagRows.length === 0 && o._numElidedTags,
|
|
814
823
|
h
|
|
815
824
|
)}
|
|
816
|
-
${
|
|
825
|
+
${w((o) => o._lastTagRow, l)}
|
|
817
826
|
<input
|
|
818
827
|
id="control"
|
|
819
828
|
class="control"
|
|
820
829
|
autocomplete="off"
|
|
821
830
|
aria-controls="listbox"
|
|
822
831
|
aria-describedby="${(o) => o._feedbackDescribedBy} ${(o) => o.multiple && o.maxSelected && o.maxSelected >= 1 ? "selection-count" : null}"
|
|
823
|
-
${
|
|
832
|
+
${G({
|
|
824
833
|
role: "combobox",
|
|
825
834
|
ariaAutoComplete: "list",
|
|
826
835
|
ariaHasPopup: "listbox",
|
|
@@ -846,7 +855,7 @@ function he(s) {
|
|
|
846
855
|
<slot name="meta"></slot>
|
|
847
856
|
${v(
|
|
848
857
|
(o) => o._shouldShowClearButton,
|
|
849
|
-
|
|
858
|
+
p`<${t}
|
|
850
859
|
aria-label="${(o) => o.locale.searchableSelect.clearButtonLabel}"
|
|
851
860
|
@click="${(o) => o._onClearButtonClick()}"
|
|
852
861
|
@mousedown="${() => !1}"
|
|
@@ -861,45 +870,45 @@ function he(s) {
|
|
|
861
870
|
<div @mousedown="${() => !1}" @click="${(o) => o._onChevronClick()}">
|
|
862
871
|
${v(
|
|
863
872
|
(o) => o.loading,
|
|
864
|
-
|
|
873
|
+
p`<${e} indeterminate size="-6" aria-hidden="true"></${e}>`
|
|
865
874
|
)}
|
|
866
875
|
${v((o) => !o.loading, i)}
|
|
867
876
|
</div>
|
|
868
877
|
</div>
|
|
869
878
|
`;
|
|
870
879
|
}
|
|
871
|
-
function
|
|
880
|
+
function ve(s) {
|
|
872
881
|
return s.open && s.fixedDropdown ? `--_searchable-select-fixed-width: ${Math.round(
|
|
873
882
|
s.getBoundingClientRect().width
|
|
874
883
|
)}px` : null;
|
|
875
884
|
}
|
|
876
|
-
function
|
|
877
|
-
const t = s.tagFor(
|
|
878
|
-
return
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
</div>
|
|
889
|
-
`
|
|
885
|
+
function fe(s) {
|
|
886
|
+
const t = s.tagFor(L);
|
|
887
|
+
return p`
|
|
888
|
+
<div class="label-wrapper" ?hidden=${(e) => !e.label && !e._hasContextualHelp && !e._hasSelectionCount}>
|
|
889
|
+
${v(
|
|
890
|
+
(e) => e.label || e._hasSelectionCount,
|
|
891
|
+
p`
|
|
892
|
+
<div>
|
|
893
|
+
${v((e) => e.label, de())}
|
|
894
|
+
${v((e) => e._hasSelectionCount, he())}
|
|
895
|
+
</div>
|
|
896
|
+
`
|
|
890
897
|
)}
|
|
898
|
+
<slot name="contextual-help" ${O("_contextualHelpSlottedContent")}></slot>
|
|
899
|
+
</div>
|
|
891
900
|
<span aria-live="assertive" aria-relevant="text" class="visually-hidden">
|
|
892
901
|
${(e) => e._changeDescription}
|
|
893
902
|
</span>
|
|
894
903
|
<div>
|
|
895
|
-
${
|
|
904
|
+
${ue(s)}
|
|
896
905
|
<div class="popup-wrapper">
|
|
897
906
|
<${t}
|
|
898
907
|
:anchor="${(e) => e._anchor}"
|
|
899
908
|
:open="${(e) => e.open}"
|
|
900
909
|
class="popup"
|
|
901
910
|
placement="bottom-start"
|
|
902
|
-
style="${
|
|
911
|
+
style="${ve}"
|
|
903
912
|
strategy="${(e) => e.fixedDropdown ? "fixed" : "absolute"}">
|
|
904
913
|
<div
|
|
905
914
|
class="listbox"
|
|
@@ -911,30 +920,30 @@ function ve(s) {
|
|
|
911
920
|
@mousedown="${() => !1}"
|
|
912
921
|
>
|
|
913
922
|
<slot
|
|
914
|
-
${
|
|
915
|
-
filter:
|
|
923
|
+
${O({
|
|
924
|
+
filter: ae,
|
|
916
925
|
flatten: !0,
|
|
917
926
|
property: "_slottedOptions"
|
|
918
927
|
})}>
|
|
919
928
|
</slot>
|
|
920
929
|
${v(
|
|
921
930
|
(e) => e._filteredOptions.length === 0,
|
|
922
|
-
|
|
931
|
+
p`<div class="empty-message">
|
|
923
932
|
${v(
|
|
924
933
|
(e) => e.loading,
|
|
925
|
-
|
|
934
|
+
p`<slot name="loading-options">
|
|
926
935
|
${(e) => e.locale.searchableSelect.loadingOptionsMessage}
|
|
927
936
|
</slot>`
|
|
928
937
|
)}
|
|
929
938
|
${v(
|
|
930
939
|
(e) => !e.loading && e.searchText === "",
|
|
931
|
-
|
|
940
|
+
p`<slot name="no-options">
|
|
932
941
|
${(e) => e.locale.searchableSelect.noOptionsMessage}
|
|
933
942
|
</slot>`
|
|
934
943
|
)}
|
|
935
944
|
${v(
|
|
936
945
|
(e) => !e.loading && e.searchText !== "",
|
|
937
|
-
|
|
946
|
+
p`<slot name="no-matches">
|
|
938
947
|
${(e) => e.locale.searchableSelect.noMatchesMessage}
|
|
939
948
|
</slot>`
|
|
940
949
|
)}
|
|
@@ -946,27 +955,27 @@ function ve(s) {
|
|
|
946
955
|
</div>
|
|
947
956
|
`;
|
|
948
957
|
}
|
|
949
|
-
const
|
|
950
|
-
const t = s.tagFor(b);
|
|
951
|
-
return
|
|
958
|
+
const ge = (s) => {
|
|
959
|
+
const t = s.tagFor(b, !0);
|
|
960
|
+
return p`
|
|
952
961
|
<template
|
|
953
962
|
:_optionTagTagName="${() => t}"
|
|
954
963
|
@mousedown="${(e, a) => e._onMouseDown(a.event)}"
|
|
955
964
|
>
|
|
956
965
|
<div class="control-wrapper">
|
|
957
|
-
${
|
|
966
|
+
${fe(s)} ${(e) => e._getFeedbackTemplate(s)}
|
|
958
967
|
</div>
|
|
959
968
|
</template>
|
|
960
969
|
`;
|
|
961
|
-
},
|
|
970
|
+
}, be = ({ shape: s, connotation: t, disabled: e, removable: a }) => y(
|
|
962
971
|
"base",
|
|
963
972
|
["disabled", e],
|
|
964
973
|
["removable", a],
|
|
965
974
|
[`shape-${s}`, !!s],
|
|
966
975
|
[`connotation-${t}`, !!t]
|
|
967
976
|
);
|
|
968
|
-
function
|
|
969
|
-
return
|
|
977
|
+
function me(s) {
|
|
978
|
+
return p`
|
|
970
979
|
<span
|
|
971
980
|
class="remove-button"
|
|
972
981
|
aria-label="${(t) => t.locale.searchableSelect.removeTagButtonLabel(t.label)}"
|
|
@@ -978,48 +987,48 @@ function be(s) {
|
|
|
978
987
|
</span>
|
|
979
988
|
`;
|
|
980
989
|
}
|
|
981
|
-
const
|
|
990
|
+
const _e = (s) => {
|
|
982
991
|
const t = s.tagFor(M);
|
|
983
|
-
return
|
|
992
|
+
return p`<span class="${be}" aria-disabled="${(e) => e.disabled}">
|
|
984
993
|
<slot name="icon" aria-hidden="true">
|
|
985
994
|
${v(
|
|
986
995
|
(e) => e.hasIconPlaceholder,
|
|
987
|
-
|
|
996
|
+
p`<div class="icon-placeholder"></div>`
|
|
988
997
|
)}
|
|
989
998
|
</slot>
|
|
990
999
|
${v(
|
|
991
1000
|
(e) => e.label,
|
|
992
|
-
(e) =>
|
|
1001
|
+
(e) => p`<span class="label">${e.label}</span>`
|
|
993
1002
|
)}
|
|
994
|
-
${v((e) => e.removable,
|
|
1003
|
+
${v((e) => e.removable, me(t))}
|
|
995
1004
|
</span>`;
|
|
996
|
-
},
|
|
1005
|
+
}, xe = R(
|
|
997
1006
|
"option-tag",
|
|
998
1007
|
b,
|
|
999
|
-
|
|
1008
|
+
_e,
|
|
1000
1009
|
[I],
|
|
1001
1010
|
{
|
|
1002
|
-
styles: [
|
|
1011
|
+
styles: [se],
|
|
1003
1012
|
shadowOptions: {
|
|
1004
1013
|
delegatesFocus: !0
|
|
1005
1014
|
}
|
|
1006
1015
|
}
|
|
1007
|
-
),
|
|
1016
|
+
), we = R(
|
|
1008
1017
|
"searchable-select",
|
|
1009
1018
|
n,
|
|
1010
|
-
|
|
1019
|
+
ge,
|
|
1011
1020
|
[
|
|
1012
|
-
|
|
1013
|
-
|
|
1021
|
+
P,
|
|
1022
|
+
B,
|
|
1014
1023
|
I,
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1024
|
+
xe,
|
|
1025
|
+
W,
|
|
1026
|
+
j
|
|
1018
1027
|
],
|
|
1019
1028
|
{
|
|
1020
|
-
styles:
|
|
1029
|
+
styles: ie
|
|
1021
1030
|
}
|
|
1022
|
-
), ye =
|
|
1023
|
-
|
|
1031
|
+
), ye = H(
|
|
1032
|
+
we
|
|
1024
1033
|
);
|
|
1025
1034
|
ye();
|