@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,7 +1,7 @@
|
|
|
1
|
-
import { o as H, v as V,
|
|
1
|
+
import { o as H, v as V, U as Z, a as ue, h as x } from "./vivid-element.js";
|
|
2
2
|
import { D as _e } from "./divider.js";
|
|
3
3
|
import { B as Le } from "./definition3.js";
|
|
4
|
-
import { V as ve } from "./
|
|
4
|
+
import { V as ve } from "./definition13.js";
|
|
5
5
|
import { r as F } from "./repeat.js";
|
|
6
6
|
import { w as D } from "./when.js";
|
|
7
7
|
import { c as Me } from "./class-names.js";
|
|
@@ -143,18 +143,18 @@ const Ke = {
|
|
|
143
143
|
const a = Ke[r];
|
|
144
144
|
return typeof a == "string" ? t = a : e === 1 ? t = a.one : t = a.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + t : t + " ago" : t;
|
|
145
145
|
};
|
|
146
|
-
function
|
|
146
|
+
function U(r) {
|
|
147
147
|
return (e = {}) => {
|
|
148
148
|
const n = e.width ? String(e.width) : r.defaultWidth;
|
|
149
149
|
return r.formats[n] || r.formats[r.defaultWidth];
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const Ze = {
|
|
153
153
|
full: "EEEE, MMMM do, y",
|
|
154
154
|
long: "MMMM do, y",
|
|
155
155
|
medium: "MMM d, y",
|
|
156
156
|
short: "MM/dd/yyyy"
|
|
157
|
-
},
|
|
157
|
+
}, Ue = {
|
|
158
158
|
full: "h:mm:ss a zzzz",
|
|
159
159
|
long: "h:mm:ss a z",
|
|
160
160
|
medium: "h:mm:ss a",
|
|
@@ -165,15 +165,15 @@ const Ue = {
|
|
|
165
165
|
medium: "{{date}}, {{time}}",
|
|
166
166
|
short: "{{date}}, {{time}}"
|
|
167
167
|
}, et = {
|
|
168
|
-
date:
|
|
169
|
-
formats:
|
|
168
|
+
date: U({
|
|
169
|
+
formats: Ze,
|
|
170
170
|
defaultWidth: "full"
|
|
171
171
|
}),
|
|
172
|
-
time:
|
|
173
|
-
formats:
|
|
172
|
+
time: U({
|
|
173
|
+
formats: Ue,
|
|
174
174
|
defaultWidth: "full"
|
|
175
175
|
}),
|
|
176
|
-
dateTime:
|
|
176
|
+
dateTime: U({
|
|
177
177
|
formats: Se,
|
|
178
178
|
defaultWidth: "full"
|
|
179
179
|
})
|
|
@@ -1527,7 +1527,7 @@ class Jt extends u {
|
|
|
1527
1527
|
"T"
|
|
1528
1528
|
];
|
|
1529
1529
|
}
|
|
1530
|
-
class
|
|
1530
|
+
class Zt extends u {
|
|
1531
1531
|
priority = 130;
|
|
1532
1532
|
parse(e, n) {
|
|
1533
1533
|
return j(n === "R" ? 4 : n.length, e);
|
|
@@ -1554,7 +1554,7 @@ class Ut extends u {
|
|
|
1554
1554
|
"T"
|
|
1555
1555
|
];
|
|
1556
1556
|
}
|
|
1557
|
-
class
|
|
1557
|
+
class Ut extends u {
|
|
1558
1558
|
priority = 130;
|
|
1559
1559
|
parse(e, n) {
|
|
1560
1560
|
return j(n === "u" ? 4 : n.length, e);
|
|
@@ -2557,8 +2557,8 @@ const $n = {
|
|
|
2557
2557
|
G: new zt(),
|
|
2558
2558
|
y: new Kt(),
|
|
2559
2559
|
Y: new Jt(),
|
|
2560
|
-
R: new
|
|
2561
|
-
u: new
|
|
2560
|
+
R: new Zt(),
|
|
2561
|
+
u: new Ut(),
|
|
2562
2562
|
Q: new St(),
|
|
2563
2563
|
q: new en(),
|
|
2564
2564
|
M: new tn(),
|
|
@@ -2735,8 +2735,8 @@ const zn = ({ month: r, year: e }, n) => {
|
|
|
2735
2735
|
grid: zn(r, t)
|
|
2736
2736
|
};
|
|
2737
2737
|
};
|
|
2738
|
-
var Jn = Object.defineProperty,
|
|
2739
|
-
for (var a = t > 1 ? void 0 : t ?
|
|
2738
|
+
var Jn = Object.defineProperty, Zn = Object.getOwnPropertyDescriptor, Y = (r, e, n, t) => {
|
|
2739
|
+
for (var a = t > 1 ? void 0 : t ? Zn(e, n) : e, o = r.length - 1, s; o >= 0; o--)
|
|
2740
2740
|
(s = r[o]) && (a = (t ? s(e, n, a) : s(a)) || a);
|
|
2741
2741
|
return t && a && Jn(e, n, a), a;
|
|
2742
2742
|
};
|
|
@@ -2785,7 +2785,7 @@ const hr = (r) => {
|
|
|
2785
2785
|
*/
|
|
2786
2786
|
_onPickerButtonClick() {
|
|
2787
2787
|
if (super._onPickerButtonClick(), this._popupOpen) {
|
|
2788
|
-
|
|
2788
|
+
Z.process();
|
|
2789
2789
|
const t = this._tabbableDate;
|
|
2790
2790
|
t && this.shadowRoot.querySelector(
|
|
2791
2791
|
`[data-date="${t}"]`
|
|
@@ -2931,7 +2931,7 @@ const hr = (r) => {
|
|
|
2931
2931
|
*/
|
|
2932
2932
|
_onDateKeydown(t, a) {
|
|
2933
2933
|
let o = null;
|
|
2934
|
-
return a.key === "ArrowUp" ? o = G(t, -7) : a.key === "ArrowDown" ? o = G(t, 7) : a.key === "ArrowLeft" ? o = G(t, -1) : a.key === "ArrowRight" && (o = G(t, 1)), o && this._isDateInValidRange(o) ? (this._adjustSelectedMonthToEnsureVisibilityOf(o) &&
|
|
2934
|
+
return a.key === "ArrowUp" ? o = G(t, -7) : a.key === "ArrowDown" ? o = G(t, 7) : a.key === "ArrowLeft" ? o = G(t, -1) : a.key === "ArrowRight" && (o = G(t, 1)), o && this._isDateInValidRange(o) ? (this._adjustSelectedMonthToEnsureVisibilityOf(o) && Z.process(), this._dialogEl.querySelector(
|
|
2935
2935
|
`[data-date="${o}"]`
|
|
2936
2936
|
).focus(), !1) : !0;
|
|
2937
2937
|
}
|
|
@@ -2976,7 +2976,7 @@ const hr = (r) => {
|
|
|
2976
2976
|
*/
|
|
2977
2977
|
_onMonthKeydown(t, a) {
|
|
2978
2978
|
let o = null;
|
|
2979
|
-
return a.key === "ArrowUp" ? o = M(t, -4) : a.key === "ArrowDown" ? o = M(t, Ie) : a.key === "ArrowLeft" ? o = M(t, -1) : a.key === "ArrowRight" && (o = M(t, 1)), o && this._isMonthInValidRange(o) ? (o.year !== this._monthPickerYear && (this._monthPickerYear = o.year,
|
|
2979
|
+
return a.key === "ArrowUp" ? o = M(t, -4) : a.key === "ArrowDown" ? o = M(t, Ie) : a.key === "ArrowLeft" ? o = M(t, -1) : a.key === "ArrowRight" && (o = M(t, 1)), o && this._isMonthInValidRange(o) ? (o.year !== this._monthPickerYear && (this._monthPickerYear = o.year, Z.process()), this._dialogEl.querySelector(
|
|
2980
2980
|
`[data-month="${Fe(o)}"]`
|
|
2981
2981
|
).focus(), !1) : !0;
|
|
2982
2982
|
}
|
|
@@ -3020,10 +3020,10 @@ const hr = (r) => {
|
|
|
3020
3020
|
V
|
|
3021
3021
|
], e.prototype, "_tabbableMonth", 1), e;
|
|
3022
3022
|
};
|
|
3023
|
-
var
|
|
3023
|
+
var Un = Object.defineProperty, ge = (r, e, n, t) => {
|
|
3024
3024
|
for (var a = void 0, o = r.length - 1, s; o >= 0; o--)
|
|
3025
3025
|
(s = r[o]) && (a = s(e, n, a) || a);
|
|
3026
|
-
return a &&
|
|
3026
|
+
return a && Un(e, n, a), a;
|
|
3027
3027
|
};
|
|
3028
3028
|
const xe = {
|
|
3029
3029
|
fromView: (r) => r && An(r) ? r : "",
|
package/bundled/char-count.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("./
|
|
1
|
+
"use strict";const o=require("./definition13.cjs"),u=require("./localized.cjs"),s=require("./vivid-element.cjs"),c=require("./ref.cjs");var l=Object.defineProperty,d=(i,n,a,r)=>{for(var e=void 0,t=i.length-1,h;t>=0;t--)(h=i[t])&&(e=h(n,a,e)||e);return e&&l(n,a,e),e};const C=i=>{class n extends u.Localized(i){constructor(){super(...arguments),this.charCount=!1,this.#t=null,this._charCountDescribedBy="char-count-description",this._renderCharCountRemaining=()=>{!this.charCount||!this.maxlength||(this.charCountRemaining.textContent=this.locale.charCount.charactersRemainingMessage(this.maxlength-this.value.length))},this._updateCharCountRemaining=()=>{this.#t!==null&&clearTimeout(this.#t),this.#t=setTimeout(()=>this._renderCharCountRemaining(),1e3)},this._getCharCountTemplate=r=>{const e=r.tagFor(o.VisuallyHidden);return s.html`
|
|
2
2
|
<div class="char-count">
|
|
3
3
|
<span aria-hidden="true"
|
|
4
4
|
> ${t=>t.value?t.value.length:0} / ${t=>t.maxlength}</span
|
package/bundled/char-count.js
CHANGED
package/bundled/children.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("./vivid-element.cjs"),c=require("./slotted.cjs");class o extends c.NodeObservationDirective{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,n)=>{const i=n.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=s.noop,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}s.HTMLDirective.define(o);function h(r){return s.isString(r)&&(r={property:r}),new o(r)}exports.children=h;
|
package/bundled/children.js
CHANGED
|
@@ -1,38 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { N as
|
|
3
|
-
class o extends
|
|
1
|
+
import { x as n, H as c, i as h } from "./vivid-element.js";
|
|
2
|
+
import { N as l } from "./slotted.js";
|
|
3
|
+
class o extends l {
|
|
4
4
|
/**
|
|
5
|
-
* Creates an instance of
|
|
6
|
-
* @param
|
|
7
|
-
* @param options - The options to use when observing the element children.
|
|
5
|
+
* Creates an instance of ChildrenDirective.
|
|
6
|
+
* @param options - The options to use in configuring the child observation behavior.
|
|
8
7
|
*/
|
|
9
|
-
constructor(
|
|
10
|
-
super(
|
|
8
|
+
constructor(e) {
|
|
9
|
+
super(e), this.observerProperty = Symbol(), this.handleEvent = (r, i) => {
|
|
10
|
+
const s = i.target;
|
|
11
|
+
this.updateTarget(this.getSource(s), this.computeNodes(s));
|
|
12
|
+
}, e.childList = !0;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Begins observation of the nodes.
|
|
16
|
+
* @param target - The target to observe.
|
|
14
17
|
*/
|
|
15
|
-
observe() {
|
|
16
|
-
|
|
18
|
+
observe(e) {
|
|
19
|
+
let r = e[this.observerProperty];
|
|
20
|
+
r || (r = new MutationObserver(this.handleEvent), r.toJSON = n, e[this.observerProperty] = r), r.target = e, r.observe(e, this.options);
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* Disconnects observation of the nodes.
|
|
24
|
+
* @param target - The target to unobserve.
|
|
20
25
|
*/
|
|
21
|
-
disconnect() {
|
|
22
|
-
this.
|
|
26
|
+
disconnect(e) {
|
|
27
|
+
const r = e[this.observerProperty];
|
|
28
|
+
r.target = null, r.disconnect();
|
|
23
29
|
}
|
|
24
30
|
/**
|
|
25
|
-
* Retrieves the nodes that should be assigned to the
|
|
31
|
+
* Retrieves the raw nodes that should be assigned to the source property.
|
|
32
|
+
* @param target - The target to get the node to.
|
|
26
33
|
*/
|
|
27
|
-
getNodes() {
|
|
28
|
-
return "
|
|
34
|
+
getNodes(e) {
|
|
35
|
+
return "selector" in this.options ? Array.from(e.querySelectorAll(this.options.selector)) : Array.from(e.childNodes);
|
|
29
36
|
}
|
|
30
37
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
c.define(o);
|
|
39
|
+
function v(t) {
|
|
40
|
+
return h(t) && (t = {
|
|
41
|
+
property: t
|
|
42
|
+
}), new o(t);
|
|
35
43
|
}
|
|
36
44
|
export {
|
|
37
|
-
|
|
45
|
+
v as c
|
|
38
46
|
};
|
package/bundled/definition.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";const a=require("./vivid-element.cjs"),m=require("./definition2.cjs"),d=require("./affix.cjs"),g=require("./ref.cjs"),
|
|
2
|
-
<${
|
|
1
|
+
"use strict";const a=require("./vivid-element.cjs"),m=require("./definition2.cjs"),d=require("./affix.cjs"),g=require("./ref.cjs"),s=require("./slotted.cjs"),v=require("./when.cjs"),f=require("./class-names.cjs"),_=":host{--_vvd-accordion-item-accent-firm-wrapper: var( --vvd-accordion-item-accent-firm )}.heading-button{--vvd-accordion-item-accent-firm: var( --_vvd-accordion-item-accent-firm-wrapper, var(--vvd-accordion-item-accent-primary) )}:host{display:flex;box-sizing:border-box;flex-direction:column}.heading-container{margin:0}.heading-button,.heading-button.appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.heading-button.appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}@media (hover: hover){.heading-button:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 90%);--_appearance-color-outline: transparent}.heading-button:hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}}.heading-button.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 90%);--_appearance-color-outline: transparent}.heading-button.hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.heading-button:active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button:active:where(:not(.disabled,:disabled)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 80%);--_appearance-color-outline: transparent}.heading-button:active:where(:not(.disabled,:disabled)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-fierce);--_appearance-color-outline: transparent}.heading-button.active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button.active:where(:not(.disabled,:disabled)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 80%);--_appearance-color-outline: transparent}.heading-button.active:where(:not(.disabled,:disabled)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-fierce);--_appearance-color-outline: transparent}.heading-button{--_connotation-color-primary: var(--vvd-accordion-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-accordion-item-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-accordion-item-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-accordion-item-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-accordion-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-accordion-item-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-accordion-item-accent-firm, var(--vvd-color-canvas-text))}.heading-button{--focus-stroke-gap-color: transparent;display:flex;width:100%;align-items:center;padding:16px;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;text-align:left}.heading-button:focus-visible{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))}.heading-button.size-condensed{font:var(--vvd-typography-base-extended-bold);gap:12px}.heading-button:not(.size-condensed){font:var(--vvd-typography-heading-4);gap:16px}.heading-content{flex:auto}.meta{overflow:hidden;max-width:var(--accordion-item-meta-inline-size, 20%);flex-shrink:0;color:var(--vvd-color-neutral-600);text-align:end;text-overflow:ellipsis;white-space:nowrap}.heading-button:not(.size-condensed) .meta{font:var(--vvd-typography-base-bold)}.heading-button.size-condensed .meta{font:var(--vvd-typography-base-condensed-bold)}.region{display:none;padding:8px 32px 24px 16px}.region:not(.size-condensed).padded{padding-inline-start:52px}:host([expanded]) .region{display:block}.region.size-condensed.padded{padding-inline-start:44px}slot[name=icon]{color:var(--vvd-color-neutral-600)}.heading-button:not(.size-condensed) slot[name=icon]{font:inherit}.heading-button.size-condensed slot[name=icon]{font:var(--vvd-typography-base-extended)}:host(:not([icon-trailing])) slot[name=icon]:last-of-type{color:var(--_appearance-color-text)}";var b=Object.defineProperty,r=(t,e,i,c)=>{for(var o=void 0,l=t.length-1,p;l>=0;l--)(p=t[l])&&(o=p(e,i,o)||o);return o&&b(e,i,o),o};class n extends d.AffixIconWithTrailing(a.VividElement){constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.noIndicator=!1,this.clickHandler=()=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}r([a.attr({attribute:"heading-level",mode:"fromView",converter:a.nullableNumberConverter})],n.prototype,"headinglevel");r([a.attr],n.prototype,"appearance");r([a.attr({mode:"boolean"})],n.prototype,"expanded");r([a.attr],n.prototype,"id");r([a.attr],n.prototype,"heading");r([a.observable],n.prototype,"_headingSlottedContent");r([a.attr({mode:"boolean",attribute:"no-indicator"})],n.prototype,"noIndicator");r([a.attr],n.prototype,"meta");r([a.observable],n.prototype,"_metaSlottedContent");r([a.attr],n.prototype,"size");const u=({appearance:t,size:e})=>f.classNames("heading-button",[`appearance-${t}`,!!t],[`size-${e}`,!!e]),x=(t,e)=>{const i=d.affixIconTemplateFactory(t),c=a.html.partial(e);return a.html`
|
|
2
|
+
<${c} class="heading-container">
|
|
3
3
|
<button
|
|
4
4
|
class="${u}"
|
|
5
5
|
id="${o=>o.id}"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
${o=>!(o.icon&&o.iconTrailing)&&!o.noIndicator?i(o.expanded?"chevron-up-line":"chevron-down-line"):null}
|
|
26
26
|
|
|
27
27
|
</button>
|
|
28
|
-
</${
|
|
28
|
+
</${c}>
|
|
29
29
|
`},y=t=>a.html`
|
|
30
30
|
${e=>x(t,"h"+e.headinglevel)}
|
|
31
31
|
<div
|
package/bundled/definition.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { V as
|
|
1
|
+
import { V as m, a as r, n as g, o as h, h as c, c as f, d as _ } from "./vivid-element.js";
|
|
2
2
|
import { i as b } from "./definition2.js";
|
|
3
3
|
import { A as u, a as x, I as y } from "./affix.js";
|
|
4
4
|
import { r as $ } from "./ref.js";
|
|
5
|
-
import { c as w } from "./class-names.js";
|
|
6
5
|
import { s } from "./slotted.js";
|
|
7
6
|
import { w as v } from "./when.js";
|
|
7
|
+
import { c as w } from "./class-names.js";
|
|
8
8
|
const z = ":host{--_vvd-accordion-item-accent-firm-wrapper: var( --vvd-accordion-item-accent-firm )}.heading-button{--vvd-accordion-item-accent-firm: var( --_vvd-accordion-item-accent-firm-wrapper, var(--vvd-accordion-item-accent-primary) )}:host{display:flex;box-sizing:border-box;flex-direction:column}.heading-container{margin:0}.heading-button,.heading-button.appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.heading-button.appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: transparent}@media (hover: hover){.heading-button:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 90%);--_appearance-color-outline: transparent}.heading-button:hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}}.heading-button.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 90%);--_appearance-color-outline: transparent}.heading-button.hover:where(:not(.disabled,:disabled,.readonly)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: transparent}.heading-button:active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button:active:where(:not(.disabled,:disabled)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 80%);--_appearance-color-outline: transparent}.heading-button:active:where(:not(.disabled,:disabled)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-fierce);--_appearance-color-outline: transparent}.heading-button.active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button.active:where(:not(.disabled,:disabled)).appearance-ghost-light{--_appearance-color-text: var(--_connotation-color-fierce-primary);--_appearance-color-fill: color-mix(in srgb, var(--_connotation-color-primary), transparent 80%);--_appearance-color-outline: transparent}.heading-button.active:where(:not(.disabled,:disabled)).appearance-filled{--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-fierce);--_appearance-color-outline: transparent}.heading-button{--_connotation-color-primary: var(--vvd-accordion-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-accordion-item-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-accordion-item-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-accordion-item-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-accordion-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-accordion-item-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-firm: var(--vvd-accordion-item-accent-firm, var(--vvd-color-canvas-text))}.heading-button{--focus-stroke-gap-color: transparent;display:flex;width:100%;align-items:center;padding:16px;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;text-align:left}.heading-button:focus-visible{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))}.heading-button.size-condensed{font:var(--vvd-typography-base-extended-bold);gap:12px}.heading-button:not(.size-condensed){font:var(--vvd-typography-heading-4);gap:16px}.heading-content{flex:auto}.meta{overflow:hidden;max-width:var(--accordion-item-meta-inline-size, 20%);flex-shrink:0;color:var(--vvd-color-neutral-600);text-align:end;text-overflow:ellipsis;white-space:nowrap}.heading-button:not(.size-condensed) .meta{font:var(--vvd-typography-base-bold)}.heading-button.size-condensed .meta{font:var(--vvd-typography-base-condensed-bold)}.region{display:none;padding:8px 32px 24px 16px}.region:not(.size-condensed).padded{padding-inline-start:52px}:host([expanded]) .region{display:block}.region.size-condensed.padded{padding-inline-start:44px}slot[name=icon]{color:var(--vvd-color-neutral-600)}.heading-button:not(.size-condensed) slot[name=icon]{font:inherit}.heading-button.size-condensed slot[name=icon]{font:var(--vvd-typography-base-extended)}:host(:not([icon-trailing])) slot[name=icon]:last-of-type{color:var(--_appearance-color-text)}";
|
|
9
|
-
var I = Object.defineProperty,
|
|
10
|
-
for (var
|
|
11
|
-
(p = n[d]) && (
|
|
12
|
-
return
|
|
9
|
+
var I = Object.defineProperty, t = (n, a, i, l) => {
|
|
10
|
+
for (var o = void 0, d = n.length - 1, p; d >= 0; d--)
|
|
11
|
+
(p = n[d]) && (o = p(a, i, o) || o);
|
|
12
|
+
return o && I(a, i, o), o;
|
|
13
13
|
};
|
|
14
|
-
class e extends u(
|
|
14
|
+
class e extends u(m) {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments), this.headinglevel = 2, this.expanded = !1, this.noIndicator = !1, this.clickHandler = () => {
|
|
17
17
|
this.expanded = !this.expanded, this.change();
|
|
@@ -20,48 +20,48 @@ class e extends u(h) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
t([
|
|
24
|
+
r({
|
|
25
25
|
attribute: "heading-level",
|
|
26
26
|
mode: "fromView",
|
|
27
27
|
converter: g
|
|
28
28
|
})
|
|
29
29
|
], e.prototype, "headinglevel");
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
t([
|
|
31
|
+
r
|
|
32
32
|
], e.prototype, "appearance");
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
t([
|
|
34
|
+
r({ mode: "boolean" })
|
|
35
35
|
], e.prototype, "expanded");
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
t([
|
|
37
|
+
r
|
|
38
38
|
], e.prototype, "id");
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
t([
|
|
40
|
+
r
|
|
41
41
|
], e.prototype, "heading");
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
t([
|
|
43
|
+
h
|
|
44
44
|
], e.prototype, "_headingSlottedContent");
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
t([
|
|
46
|
+
r({ mode: "boolean", attribute: "no-indicator" })
|
|
47
47
|
], e.prototype, "noIndicator");
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
t([
|
|
49
|
+
r
|
|
50
50
|
], e.prototype, "meta");
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
t([
|
|
52
|
+
h
|
|
53
53
|
], e.prototype, "_metaSlottedContent");
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
t([
|
|
55
|
+
r
|
|
56
56
|
], e.prototype, "size");
|
|
57
57
|
const C = ({ appearance: n, size: a }) => w(
|
|
58
58
|
"heading-button",
|
|
59
59
|
[`appearance-${n}`, !!n],
|
|
60
60
|
[`size-${a}`, !!a]
|
|
61
61
|
), k = (n, a) => {
|
|
62
|
-
const i = x(n);
|
|
63
|
-
return
|
|
64
|
-
<${
|
|
62
|
+
const i = x(n), l = c.partial(a);
|
|
63
|
+
return c`
|
|
64
|
+
<${l} class="heading-container">
|
|
65
65
|
<button
|
|
66
66
|
class="${C}"
|
|
67
67
|
id="${(o) => o.id}"
|
|
@@ -77,13 +77,13 @@ const C = ({ appearance: n, size: a }) => w(
|
|
|
77
77
|
<slot name="heading" ${s("_headingSlottedContent")}></slot>
|
|
78
78
|
${v(
|
|
79
79
|
(o) => o.heading && !o._headingSlottedContent?.length,
|
|
80
|
-
|
|
80
|
+
c`${(o) => o.heading}`
|
|
81
81
|
)}
|
|
82
82
|
</span>
|
|
83
83
|
|
|
84
84
|
<span class="meta">
|
|
85
85
|
<slot name="meta" ${s("_metaSlottedContent")}></slot>
|
|
86
|
-
${v((o) => o.meta && !o._metaSlottedContent?.length,
|
|
86
|
+
${v((o) => o.meta && !o._metaSlottedContent?.length, c`${(o) => o.meta}`)}
|
|
87
87
|
</span>
|
|
88
88
|
|
|
89
89
|
${(o) => o.icon && o.iconTrailing ? i(o.icon) : null}
|
|
@@ -92,9 +92,9 @@ const C = ({ appearance: n, size: a }) => w(
|
|
|
92
92
|
) : null}
|
|
93
93
|
|
|
94
94
|
</button>
|
|
95
|
-
</${
|
|
95
|
+
</${l}>
|
|
96
96
|
`;
|
|
97
|
-
},
|
|
97
|
+
}, T = (n) => c`
|
|
98
98
|
${(a) => k(n, "h" + a.headinglevel)}
|
|
99
99
|
<div
|
|
100
100
|
id="${(a) => a.id}-panel"
|
|
@@ -104,19 +104,19 @@ const C = ({ appearance: n, size: a }) => w(
|
|
|
104
104
|
>
|
|
105
105
|
<slot></slot>
|
|
106
106
|
</div>
|
|
107
|
-
`,
|
|
107
|
+
`, S = _(
|
|
108
108
|
"accordion-item",
|
|
109
109
|
e,
|
|
110
|
-
|
|
110
|
+
T,
|
|
111
111
|
[b],
|
|
112
112
|
{
|
|
113
113
|
styles: z
|
|
114
114
|
}
|
|
115
115
|
), P = f(
|
|
116
|
-
|
|
116
|
+
S
|
|
117
117
|
);
|
|
118
118
|
export {
|
|
119
119
|
e as A,
|
|
120
|
-
|
|
120
|
+
S as a,
|
|
121
121
|
P as r
|
|
122
122
|
};
|
package/bundled/definition10.cjs
CHANGED
|
@@ -1,19 +1,73 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
"use strict";const T=require("./definition2.cjs"),t=require("./vivid-element.cjs"),d=require("./mixins.cjs"),_=require("./definition13.cjs"),q=require("./definition12.cjs"),x=require("./delegates-aria.cjs"),k=require("./form-associated.cjs"),E=require("./char-count.cjs"),H=require("./with-contextual-help.cjs"),M=require("./with-error-text.cjs"),w=require("./with-success-text.cjs"),F=require("./form-element.cjs"),v=require("./affix.cjs"),L=require("./text-field.cjs"),m=require("./when.cjs"),c=require("./slotted.cjs"),D=require("./ref.cjs"),S=require("./class-names.cjs");var N=Object.defineProperty,i=(n,a,e,h)=>{for(var l=void 0,s=n.length-1,r;s>=0;s--)(r=n[s])&&(l=r(a,e,l)||l);return l&&N(a,e,l),l};const A={text:"text"},O="_vvd-3-text-field-safari-workaround",y=new t.ElementStyles([`
|
|
2
|
+
.${O}::placeholder {
|
|
3
|
+
opacity: 1 !important;
|
|
4
|
+
-webkit-text-fill-color: var(--_low-ink-color) !important;
|
|
5
|
+
}
|
|
6
|
+
`]),B=n=>{const a=n.getRootNode();y.isAttachedTo(a)||y.addStylesTo(a)};class o extends H.WithContextualHelp(d.WithLightDOMFeedback(E.WithCharCount(M.WithErrorText(w.WithSuccessText(F.FormElement(v.AffixIcon(x.DelegatesAria(k.FormAssociated(t.VividElement))))))))){constructor(){super(...arguments),this.proxy=document.createElement("input"),this.type=A.text,this.#e=d.generateRandomId()}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}valueChanged(a,e){super.valueChanged(a,e),this._updateControlValueIfNeeded(),this.charCount&&this.maxlength&&this._updateCharCountRemaining()}_updateControlValueIfNeeded(){this.control&&this.control.value!==this.value&&(this.control.value=this.value)}select(){this.control.select()}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&t.Updates.enqueue(()=>{this.focus()}),this._updateControlValueIfNeeded(),B(this),this._renderCharCountRemaining()}focus(){this.control?.focus()}#e;get _uniqueId(){return this.id||this.#e}}i([t.attr({attribute:"readonly",mode:"boolean"})],o.prototype,"readOnly");i([t.attr({mode:"boolean"})],o.prototype,"autofocus");i([t.attr],o.prototype,"placeholder");i([t.attr],o.prototype,"type");i([t.attr],o.prototype,"list");i([t.attr({converter:t.nullableNumberConverter})],o.prototype,"maxlength");i([t.attr({converter:t.nullableNumberConverter})],o.prototype,"minlength");i([t.attr],o.prototype,"pattern");i([t.attr({converter:t.nullableNumberConverter})],o.prototype,"size");i([t.attr({mode:"boolean"})],o.prototype,"spellcheck");i([t.attr],o.prototype,"appearance");i([t.attr],o.prototype,"shape");i([t.attr],o.prototype,"autoComplete");i([t.attr()],o.prototype,"scale");i([t.attr({attribute:"inputmode"})],o.prototype,"inputMode");i([t.observable],o.prototype,"actionItemsSlottedContent");i([t.observable],o.prototype,"leadingActionItemsSlottedContent");const g=n=>`vvd-text-field-control-${n}`,W=({errorValidationMessage:n,disabled:a,value:e,readOnly:h,placeholder:l,appearance:s,shape:r,label:C,successText:$,actionItemsSlottedContent:I,leadingActionItemsSlottedContent:p,icon:u,scale:f})=>S.classNames(["error",!!n],["disabled",a],["has-value",!!e],["readonly",h],["placeholder",!!l],[`appearance-${s}`,!!s],[`shape-${r}`,!!r],["no-label",!C],["has-icon",!!u],["success",!!$],["action-items",!!I?.length],["leading-action-items",!!p?.length],["no-leading",!(p?.length||u)],[`size-${f}`,!!f]),z=n=>{const a=v.affixIconTemplateFactory(n);return t.html`
|
|
7
|
+
<div class="base ${W}">
|
|
8
|
+
<div
|
|
9
|
+
class="label-suffix"
|
|
10
|
+
?hidden=${e=>!(e.charCount&&e.maxlength)&&!e._hasContextualHelp}
|
|
11
|
+
>
|
|
12
|
+
${m.when(e=>e.charCount&&e.maxlength,e=>e._getCharCountTemplate(n))}
|
|
13
|
+
<slot
|
|
14
|
+
name="contextual-help"
|
|
15
|
+
${c.slotted("_contextualHelpSlottedContent")}
|
|
16
|
+
></slot>
|
|
17
17
|
</div>
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
<slot class="label" name="_label"></slot>
|
|
19
|
+
${d.renderInLightDOM(t.html`
|
|
20
|
+
${m.when(e=>e.label,t.html`
|
|
21
|
+
<label slot="_label" for="${e=>g(e._uniqueId)}">
|
|
22
|
+
${e=>e.label}
|
|
23
|
+
</label>
|
|
24
|
+
`)}
|
|
25
|
+
`)}
|
|
26
|
+
<div class="fieldset">
|
|
27
|
+
<div class="leading-items-wrapper">
|
|
28
|
+
<slot
|
|
29
|
+
name="leading-action-items"
|
|
30
|
+
${c.slotted("leadingActionItemsSlottedContent")}
|
|
31
|
+
></slot>
|
|
32
|
+
${e=>a(e.icon)}
|
|
33
|
+
</div>
|
|
34
|
+
<div class="wrapper">
|
|
35
|
+
<slot class="control" name="_control"></slot>
|
|
36
|
+
${d.renderInLightDOM(t.html`<input
|
|
37
|
+
slot="_control"
|
|
38
|
+
id="${e=>g(e._uniqueId)}"
|
|
39
|
+
class="_vvd-3-text-field-safari-workaround"
|
|
40
|
+
@input="${e=>e.handleTextInput()}"
|
|
41
|
+
@change="${e=>e.handleChange()}"
|
|
42
|
+
@blur="${e=>{e.$emit("blur",void 0,{bubbles:!1})}}"
|
|
43
|
+
@focus="${e=>{e.$emit("focus",void 0,{bubbles:!1})}}"
|
|
44
|
+
?autofocus="${e=>e.autofocus}"
|
|
45
|
+
?disabled="${e=>e.disabled}"
|
|
46
|
+
?readonly="${e=>e.readOnly}"
|
|
47
|
+
?required="${e=>e.required}"
|
|
48
|
+
?spellcheck="${e=>e.spellcheck}"
|
|
49
|
+
list="${e=>e.list}"
|
|
50
|
+
maxlength="${e=>e.maxlength}"
|
|
51
|
+
minlength="${e=>e.minlength}"
|
|
52
|
+
pattern="${e=>e.pattern}"
|
|
53
|
+
placeholder="${e=>e.placeholder}"
|
|
54
|
+
size="${e=>e.size}"
|
|
55
|
+
autocomplete="${e=>e.autoComplete}"
|
|
56
|
+
type="${e=>e.type}"
|
|
57
|
+
inputmode="${e=>e.inputMode}"
|
|
58
|
+
aria-describedby="${e=>e._feedbackDescribedBy} ${e=>e.charCount&&e.maxlength?e._charCountDescribedBy:null}"
|
|
59
|
+
value="${e=>e.initialValue}"
|
|
60
|
+
${x.delegateAria()}
|
|
61
|
+
${D.ref("control")}
|
|
62
|
+
/>`)}
|
|
63
|
+
</div>
|
|
64
|
+
<div class="action-items-wrapper">
|
|
65
|
+
<slot
|
|
66
|
+
name="action-items"
|
|
67
|
+
${c.slotted("actionItemsSlottedContent")}
|
|
68
|
+
></slot>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
${e=>e._getFeedbackTemplate(n)}
|
|
72
|
+
</div>
|
|
73
|
+
`},b=t.defineVividComponent("text-field",o,z,[T.iconDefinition,d.feedbackMessageDefinition,_.visuallyHiddenDefinition,q.contextualHelpDefinition],{styles:L.styles,shadowOptions:{delegatesFocus:!0}}),V=t.createRegisterFunction(b);exports.TextField=o;exports.registerTextField=V;exports.textFieldDefinition=b;
|