@vonage/vivid 3.51.0 → 3.52.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/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/appearance-ui/index.cjs +19 -11
- package/appearance-ui/index.js +19 -11
- package/audio-player/index.cjs +2 -1
- package/audio-player/index.js +2 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/combobox/index.cjs +2 -5
- package/combobox/index.js +2 -5
- package/custom-elements.json +1357 -529
- package/date-picker/index.cjs +3 -6
- package/date-picker/index.js +3 -6
- package/date-range-picker/index.cjs +2 -5
- package/date-range-picker/index.js +2 -5
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -1
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/file-picker/index.cjs +0 -2
- package/file-picker/index.js +0 -2
- package/header/index.cjs +1 -1
- package/header/index.js +1 -1
- package/index.cjs +60 -58
- package/index.js +22 -23
- package/lib/avatar/definition.d.ts +1 -1
- package/lib/button/button.d.ts +1 -0
- package/lib/button/definition.d.ts +1 -1
- package/lib/calendar-event/definition.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/layout/definition.d.ts +1 -1
- package/lib/menu-item/menu-item.d.ts +3 -0
- package/lib/range-slider/definition.d.ts +3 -0
- package/lib/range-slider/locale.d.ts +4 -0
- package/lib/range-slider/range-slider.d.ts +32 -0
- package/lib/range-slider/range-slider.form-associated.d.ts +10 -0
- package/lib/range-slider/range-slider.template.d.ts +4 -0
- package/lib/range-slider/utils/lerp.d.ts +2 -0
- package/lib/range-slider/utils/roundToStepValue.d.ts +1 -0
- package/lib/slider/slider.template.d.ts +1 -0
- package/lib/split-button/definition.d.ts +1 -1
- package/listbox/index.cjs +23 -22
- package/listbox/index.js +23 -22
- package/locales/en-GB.cjs +4 -0
- package/locales/en-GB.js +4 -0
- package/locales/en-US.cjs +4 -0
- package/locales/en-US.js +4 -0
- package/locales/ja-JP.cjs +5 -1
- package/locales/ja-JP.js +5 -1
- package/locales/zh-CN.cjs +4 -0
- package/locales/zh-CN.js +4 -0
- package/menu/index.cjs +3 -3
- package/menu/index.js +3 -3
- package/menu-item/index.cjs +2 -2
- package/menu-item/index.js +2 -2
- package/number-field/index.cjs +0 -2
- package/number-field/index.js +0 -2
- package/package.json +34 -34
- package/popup/index.cjs +2 -2
- package/popup/index.js +2 -2
- package/range-slider/index.cjs +22 -0
- package/range-slider/index.js +20 -0
- package/select/index.cjs +3 -3
- package/select/index.js +3 -3
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/shared/Reflector.cjs +5 -1
- package/shared/Reflector.js +5 -1
- package/shared/affix.cjs +11 -4
- package/shared/affix.js +12 -4
- package/shared/anchored.cjs +8 -2
- package/shared/anchored.js +8 -2
- package/shared/definition.cjs +8 -3
- package/shared/definition.js +8 -3
- package/shared/definition10.cjs +5 -5
- package/shared/definition10.js +5 -5
- package/shared/definition11.cjs +75 -47
- package/shared/definition11.js +76 -48
- package/shared/definition12.cjs +12 -14
- package/shared/definition12.js +12 -14
- package/shared/definition13.cjs +118 -75
- package/shared/definition13.js +118 -75
- package/shared/definition14.cjs +33 -32
- package/shared/definition14.js +33 -32
- package/shared/definition15.cjs +20 -7
- package/shared/definition15.js +20 -7
- package/shared/definition16.cjs +37 -42
- package/shared/definition16.js +36 -41
- package/shared/definition17.cjs +125 -65
- package/shared/definition17.js +126 -66
- package/shared/definition18.cjs +30 -14
- package/shared/definition18.js +30 -14
- package/shared/definition19.cjs +116 -80
- package/shared/definition19.js +116 -80
- package/shared/definition2.cjs +10 -5
- package/shared/definition2.js +10 -5
- package/shared/definition20.cjs +16 -15
- package/shared/definition20.js +16 -15
- package/shared/definition21.cjs +6 -10
- package/shared/definition21.js +6 -10
- package/shared/definition22.cjs +14 -18
- package/shared/definition22.js +14 -18
- package/shared/definition23.cjs +34 -35
- package/shared/definition23.js +34 -35
- package/shared/definition24.cjs +116 -69
- package/shared/definition24.js +116 -69
- package/shared/definition25.cjs +2 -4
- package/shared/definition25.js +2 -4
- package/shared/definition26.cjs +9 -8
- package/shared/definition26.js +9 -8
- package/shared/definition27.cjs +7 -5
- package/shared/definition27.js +7 -5
- package/shared/definition28.cjs +209 -143
- package/shared/definition28.js +209 -143
- package/shared/definition29.cjs +10 -4
- package/shared/definition29.js +10 -4
- package/shared/definition3.cjs +7 -10
- package/shared/definition3.js +7 -10
- package/shared/definition30.cjs +7 -5
- package/shared/definition30.js +7 -5
- package/shared/definition31.cjs +2 -4
- package/shared/definition31.js +2 -4
- package/shared/definition32.cjs +1 -3
- package/shared/definition32.js +1 -3
- package/shared/definition33.cjs +7 -10
- package/shared/definition33.js +7 -10
- package/shared/definition34.cjs +76 -59
- package/shared/definition34.js +76 -59
- package/shared/definition35.cjs +19 -20
- package/shared/definition35.js +19 -20
- package/shared/definition36.cjs +30 -14
- package/shared/definition36.js +30 -14
- package/shared/definition37.cjs +33 -46
- package/shared/definition37.js +33 -46
- package/shared/definition38.cjs +31 -33
- package/shared/definition38.js +31 -33
- package/shared/definition39.cjs +13 -4
- package/shared/definition39.js +13 -4
- package/shared/definition4.cjs +23 -11
- package/shared/definition4.js +23 -11
- package/shared/definition40.cjs +19 -14
- package/shared/definition40.js +19 -14
- package/shared/definition41.cjs +534 -635
- package/shared/definition41.js +534 -635
- package/shared/definition42.cjs +674 -106
- package/shared/definition42.js +673 -105
- package/shared/definition43.cjs +122 -79
- package/shared/definition43.js +120 -77
- package/shared/definition44.cjs +72 -567
- package/shared/definition44.js +71 -565
- package/shared/definition45.cjs +520 -118
- package/shared/definition45.js +518 -117
- package/shared/definition46.cjs +117 -130
- package/shared/definition46.js +116 -129
- package/shared/definition47.cjs +152 -18
- package/shared/definition47.js +151 -17
- package/shared/definition48.cjs +20 -77
- package/shared/definition48.js +19 -76
- package/shared/definition49.cjs +52 -495
- package/shared/definition49.js +51 -494
- package/shared/definition5.cjs +20 -17
- package/shared/definition5.js +20 -17
- package/shared/definition50.cjs +525 -24
- package/shared/definition50.js +524 -23
- package/shared/definition51.cjs +28 -119
- package/shared/definition51.js +26 -118
- package/shared/definition52.cjs +113 -266
- package/shared/definition52.js +113 -265
- package/shared/definition53.cjs +285 -245
- package/shared/definition53.js +285 -245
- package/shared/definition54.cjs +285 -751
- package/shared/definition54.js +284 -750
- package/shared/definition55.cjs +828 -99
- package/shared/definition55.js +827 -98
- package/shared/definition56.cjs +126 -77
- package/shared/definition56.js +125 -76
- package/shared/definition57.cjs +125 -71
- package/shared/definition57.js +124 -70
- package/shared/definition58.cjs +73 -287
- package/shared/definition58.js +74 -288
- package/shared/definition59.cjs +298 -40
- package/shared/definition59.js +297 -39
- package/shared/definition6.cjs +3 -4
- package/shared/definition6.js +3 -4
- package/shared/definition60.cjs +24 -1784
- package/shared/definition60.js +23 -1783
- package/shared/definition61.cjs +1819 -11
- package/shared/definition61.js +1818 -11
- package/shared/definition7.cjs +6 -4
- package/shared/definition7.js +6 -4
- package/shared/definition8.cjs +25 -18
- package/shared/definition8.js +25 -18
- package/shared/definition9.cjs +6 -9
- package/shared/definition9.js +6 -9
- package/shared/icon.cjs +7 -2
- package/shared/icon.js +7 -2
- package/shared/index2.cjs +1 -1
- package/shared/index2.js +1 -1
- package/shared/key-codes2.cjs +8 -0
- package/shared/key-codes2.js +5 -1
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/patterns/index.d.ts +0 -1
- package/shared/presentationDate.cjs +126 -78
- package/shared/presentationDate.js +126 -78
- package/shared/slider.template.cjs +71 -0
- package/shared/slider.template.js +67 -0
- package/shared/text-anchor.template.cjs +30 -35
- package/shared/text-anchor.template.js +30 -35
- package/shared/text-field.cjs +1 -1
- package/shared/text-field.js +1 -1
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.cjs +2 -1
- package/slider/index.js +2 -1
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/fonts/spezia-variable.css +39 -13
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +4 -2
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.cjs +3 -3
- package/tabs/index.js +3 -3
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +1 -1
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +1 -1
- package/text-field/index.cjs +1 -4
- package/text-field/index.js +1 -4
- package/time-picker/index.cjs +4 -7
- package/time-picker/index.js +4 -7
- package/toggletip/index.cjs +3 -3
- package/toggletip/index.js +3 -3
- package/tooltip/index.cjs +3 -3
- package/tooltip/index.js +3 -3
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +117 -1
- package/focus/index.cjs +0 -7
- package/focus/index.js +0 -5
- package/lib/focus/definition.d.ts +0 -3
- package/lib/focus/focus.d.ts +0 -3
- package/lib/focus/focus.template.d.ts +0 -4
- package/lib/popup/popup.d.ts +0 -21
- package/shared/focus.cjs +0 -8
- package/shared/focus.js +0 -6
- package/shared/focus2.cjs +0 -11
- package/shared/focus2.js +0 -9
- package/shared/patterns/focus.d.ts +0 -3
package/listbox/index.cjs
CHANGED
|
@@ -29,41 +29,42 @@ const getClasses = ({ appearance, shape, disabled, orientation }) => classNames.
|
|
|
29
29
|
);
|
|
30
30
|
const ListboxTemplate = () => {
|
|
31
31
|
return index.html`
|
|
32
|
-
<template
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<slot
|
|
48
|
-
${slotted.slotted({
|
|
32
|
+
<template
|
|
33
|
+
aria-activedescendant="${(x) => x.ariaActiveDescendant}"
|
|
34
|
+
aria-multiselectable="${(x) => x.ariaMultiSelectable}"
|
|
35
|
+
aria-orientation="${(x) => x.ariaOrientation}"
|
|
36
|
+
aria-label="listbox"
|
|
37
|
+
role="listbox"
|
|
38
|
+
@click="${(x, c) => x.clickHandler(c.event)}"
|
|
39
|
+
@focusin="${(x, c) => x.focusinHandler(c.event)}"
|
|
40
|
+
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
41
|
+
@mousedown="${(x, c) => x.mousedownHandler(c.event)}"
|
|
42
|
+
tabindex="${(x) => !x.disabled ? "0" : null}"
|
|
43
|
+
>
|
|
44
|
+
<div class="${getClasses}">
|
|
45
|
+
<slot
|
|
46
|
+
${slotted.slotted({
|
|
49
47
|
filter: listbox.ListboxElement.slottedOptionFilter,
|
|
50
48
|
flatten: true,
|
|
51
49
|
property: "slottedOptions"
|
|
52
50
|
})}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</template>
|
|
51
|
+
></slot>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
56
54
|
`;
|
|
57
55
|
};
|
|
58
56
|
|
|
59
|
-
const styles = ":host{display:inline-block;inline-size:fit-content}:host(:focus-within){outline:none}:host([disabled]){cursor:not-allowed}.base{display:inline-flex;box-sizing:border-box;padding:4px;
|
|
57
|
+
const styles = ":host{display:inline-block;inline-size:fit-content}:host(:focus-within){outline:none}:host([disabled]){cursor:not-allowed}.base{display:inline-flex;box-sizing:border-box;padding:4px;border-radius:var(--_listbox-border-radius);background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);contain:paint;gap:4px;inline-size:100%}.base{--_connotation-color-intermediate: var(--vvd-listbox-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-primary: var(--vvd-listbox-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-listbox-accent-soft, var(--vvd-color-neutral-100))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.disabled,: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)}.base:where(.disabled,:disabled).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:not(.orientation-horizontal){flex-direction:column}.base:not(.shape-pill){--_listbox-border-radius: 8px}.base.shape-pill{--_listbox-border-radius: 24px}:host(:focus-within) .base{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}::slotted([role=option]){border-radius:var(--_listbox-border-radius);contain:content}.base.disabled ::slotted([role=option]){--_option-appearance-color-text: var(--_appearance-color-outline);pointer-events:none}\n";
|
|
60
58
|
|
|
61
59
|
const listboxDefinition = listbox.Listbox.compose({
|
|
62
60
|
baseName: "listbox",
|
|
63
61
|
template: ListboxTemplate,
|
|
64
62
|
styles
|
|
65
63
|
});
|
|
66
|
-
const listboxRegistries = [
|
|
64
|
+
const listboxRegistries = [
|
|
65
|
+
listboxDefinition(),
|
|
66
|
+
...definition.listboxOptionRegistries
|
|
67
|
+
];
|
|
67
68
|
const registerListbox = index.registerFactory(listboxRegistries);
|
|
68
69
|
|
|
69
70
|
registerListbox();
|
package/listbox/index.js
CHANGED
|
@@ -27,41 +27,42 @@ const getClasses = ({ appearance, shape, disabled, orientation }) => classNames(
|
|
|
27
27
|
);
|
|
28
28
|
const ListboxTemplate = () => {
|
|
29
29
|
return html`
|
|
30
|
-
<template
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<slot
|
|
46
|
-
${slotted({
|
|
30
|
+
<template
|
|
31
|
+
aria-activedescendant="${(x) => x.ariaActiveDescendant}"
|
|
32
|
+
aria-multiselectable="${(x) => x.ariaMultiSelectable}"
|
|
33
|
+
aria-orientation="${(x) => x.ariaOrientation}"
|
|
34
|
+
aria-label="listbox"
|
|
35
|
+
role="listbox"
|
|
36
|
+
@click="${(x, c) => x.clickHandler(c.event)}"
|
|
37
|
+
@focusin="${(x, c) => x.focusinHandler(c.event)}"
|
|
38
|
+
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
39
|
+
@mousedown="${(x, c) => x.mousedownHandler(c.event)}"
|
|
40
|
+
tabindex="${(x) => !x.disabled ? "0" : null}"
|
|
41
|
+
>
|
|
42
|
+
<div class="${getClasses}">
|
|
43
|
+
<slot
|
|
44
|
+
${slotted({
|
|
47
45
|
filter: ListboxElement.slottedOptionFilter,
|
|
48
46
|
flatten: true,
|
|
49
47
|
property: "slottedOptions"
|
|
50
48
|
})}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</template>
|
|
49
|
+
></slot>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
54
52
|
`;
|
|
55
53
|
};
|
|
56
54
|
|
|
57
|
-
const styles = ":host{display:inline-block;inline-size:fit-content}:host(:focus-within){outline:none}:host([disabled]){cursor:not-allowed}.base{display:inline-flex;box-sizing:border-box;padding:4px;
|
|
55
|
+
const styles = ":host{display:inline-block;inline-size:fit-content}:host(:focus-within){outline:none}:host([disabled]){cursor:not-allowed}.base{display:inline-flex;box-sizing:border-box;padding:4px;border-radius:var(--_listbox-border-radius);background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);contain:paint;gap:4px;inline-size:100%}.base{--_connotation-color-intermediate: var(--vvd-listbox-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-primary: var(--vvd-listbox-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-listbox-accent-soft, var(--vvd-color-neutral-100))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.disabled,: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)}.base:where(.disabled,:disabled).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:not(.orientation-horizontal){flex-direction:column}.base:not(.shape-pill){--_listbox-border-radius: 8px}.base.shape-pill{--_listbox-border-radius: 24px}:host(:focus-within) .base{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}::slotted([role=option]){border-radius:var(--_listbox-border-radius);contain:content}.base.disabled ::slotted([role=option]){--_option-appearance-color-text: var(--_appearance-color-outline);pointer-events:none}\n";
|
|
58
56
|
|
|
59
57
|
const listboxDefinition = Listbox.compose({
|
|
60
58
|
baseName: "listbox",
|
|
61
59
|
template: ListboxTemplate,
|
|
62
60
|
styles
|
|
63
61
|
});
|
|
64
|
-
const listboxRegistries = [
|
|
62
|
+
const listboxRegistries = [
|
|
63
|
+
listboxDefinition(),
|
|
64
|
+
...listboxOptionRegistries
|
|
65
|
+
];
|
|
65
66
|
const registerListbox = registerFactory(listboxRegistries);
|
|
66
67
|
|
|
67
68
|
registerListbox();
|
package/locales/en-GB.cjs
CHANGED
package/locales/en-GB.js
CHANGED
package/locales/en-US.cjs
CHANGED
package/locales/en-US.js
CHANGED
package/locales/ja-JP.cjs
CHANGED
|
@@ -114,7 +114,11 @@ const jaJP = {
|
|
|
114
114
|
decrementButtonLabel: "減少"
|
|
115
115
|
},
|
|
116
116
|
splitButton: {
|
|
117
|
-
showMoreActionsLabel: "
|
|
117
|
+
showMoreActionsLabel: "その他の操作を表示"
|
|
118
|
+
},
|
|
119
|
+
rangeSlider: {
|
|
120
|
+
startThumbLabel: "最小",
|
|
121
|
+
endThumbLabel: "最大"
|
|
118
122
|
}
|
|
119
123
|
};
|
|
120
124
|
|
package/locales/ja-JP.js
CHANGED
|
@@ -112,7 +112,11 @@ const jaJP = {
|
|
|
112
112
|
decrementButtonLabel: "減少"
|
|
113
113
|
},
|
|
114
114
|
splitButton: {
|
|
115
|
-
showMoreActionsLabel: "
|
|
115
|
+
showMoreActionsLabel: "その他の操作を表示"
|
|
116
|
+
},
|
|
117
|
+
rangeSlider: {
|
|
118
|
+
startThumbLabel: "最小",
|
|
119
|
+
endThumbLabel: "最大"
|
|
116
120
|
}
|
|
117
121
|
};
|
|
118
122
|
|
package/locales/zh-CN.cjs
CHANGED
package/locales/zh-CN.js
CHANGED
package/menu/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const definition = require('../shared/definition29.cjs');
|
|
4
4
|
require('../shared/index.cjs');
|
|
5
|
-
require('../shared/
|
|
5
|
+
require('../shared/definition61.cjs');
|
|
6
6
|
require('../shared/definition11.cjs');
|
|
7
7
|
require('../shared/definition26.cjs');
|
|
8
8
|
require('../shared/icon.cjs');
|
|
@@ -21,10 +21,10 @@ require('../shared/aria-global.cjs');
|
|
|
21
21
|
require('../shared/start-end.cjs');
|
|
22
22
|
require('../shared/ref.cjs');
|
|
23
23
|
require('../shared/enums.cjs');
|
|
24
|
-
require('../shared/
|
|
24
|
+
require('../shared/definition60.cjs');
|
|
25
25
|
require('../shared/definition28.cjs');
|
|
26
|
-
require('../shared/direction.cjs');
|
|
27
26
|
require('../shared/anchored.cjs');
|
|
27
|
+
require('../shared/direction.cjs');
|
|
28
28
|
require('../shared/dom.cjs');
|
|
29
29
|
|
|
30
30
|
definition.registerMenu();
|
package/menu/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerMenu } from '../shared/definition29.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition61.js';
|
|
4
4
|
import '../shared/definition11.js';
|
|
5
5
|
import '../shared/definition26.js';
|
|
6
6
|
import '../shared/icon.js';
|
|
@@ -19,10 +19,10 @@ import '../shared/aria-global.js';
|
|
|
19
19
|
import '../shared/start-end.js';
|
|
20
20
|
import '../shared/ref.js';
|
|
21
21
|
import '../shared/enums.js';
|
|
22
|
-
import '../shared/
|
|
22
|
+
import '../shared/definition60.js';
|
|
23
23
|
import '../shared/definition28.js';
|
|
24
|
-
import '../shared/direction.js';
|
|
25
24
|
import '../shared/anchored.js';
|
|
25
|
+
import '../shared/direction.js';
|
|
26
26
|
import '../shared/dom.js';
|
|
27
27
|
|
|
28
28
|
registerMenu();
|
package/menu-item/index.cjs
CHANGED
|
@@ -9,12 +9,12 @@ require('../shared/class-names.cjs');
|
|
|
9
9
|
require('../shared/when.cjs');
|
|
10
10
|
require('../shared/affix.cjs');
|
|
11
11
|
require('../shared/slotted.cjs');
|
|
12
|
-
require('../shared/
|
|
12
|
+
require('../shared/anchored.cjs');
|
|
13
13
|
require('../shared/start-end.cjs');
|
|
14
14
|
require('../shared/ref.cjs');
|
|
15
15
|
require('../shared/direction.cjs');
|
|
16
|
+
require('../shared/apply-mixins.cjs');
|
|
16
17
|
require('../shared/key-codes.cjs');
|
|
17
|
-
require('../shared/anchored.cjs');
|
|
18
18
|
require('../shared/dom.cjs');
|
|
19
19
|
|
|
20
20
|
definition.registerMenuItem();
|
package/menu-item/index.js
CHANGED
|
@@ -7,12 +7,12 @@ import '../shared/class-names.js';
|
|
|
7
7
|
import '../shared/when.js';
|
|
8
8
|
import '../shared/affix.js';
|
|
9
9
|
import '../shared/slotted.js';
|
|
10
|
-
import '../shared/
|
|
10
|
+
import '../shared/anchored.js';
|
|
11
11
|
import '../shared/start-end.js';
|
|
12
12
|
import '../shared/ref.js';
|
|
13
13
|
import '../shared/direction.js';
|
|
14
|
+
import '../shared/apply-mixins.js';
|
|
14
15
|
import '../shared/key-codes.js';
|
|
15
|
-
import '../shared/anchored.js';
|
|
16
16
|
import '../shared/dom.js';
|
|
17
17
|
|
|
18
18
|
registerMenuItem();
|
package/number-field/index.cjs
CHANGED
package/number-field/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
"name": "@vonage/vivid",
|
|
3
|
+
"version": "3.52.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"module": "./index.js",
|
|
6
|
+
"main": "./index.cjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"import": "./index.js",
|
|
11
|
+
"require": "./index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./*": {
|
|
14
|
+
"types": "./*/index.d.ts",
|
|
15
|
+
"import": "./*/index.js",
|
|
16
|
+
"require": "./*/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./locales/*": {
|
|
19
|
+
"types": "./locales/*.d.ts",
|
|
20
|
+
"import": "./locales/*.js",
|
|
21
|
+
"require": "./locales/*.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./*.css": "./*.css"
|
|
24
|
+
},
|
|
25
|
+
"customElements": "./custom-elements.json",
|
|
26
|
+
"homepage": "https://vivid.deno.dev",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/vonage/vivid-3",
|
|
30
|
+
"directory": "libs/components"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/Vonage/vivid-3/issues"
|
|
34
|
+
},
|
|
35
|
+
"license": "Apache-2.0"
|
|
36
36
|
}
|
package/popup/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const definition = require('../shared/
|
|
3
|
+
const definition = require('../shared/definition61.cjs');
|
|
4
4
|
require('../shared/index.cjs');
|
|
5
5
|
require('../shared/definition11.cjs');
|
|
6
6
|
require('../shared/definition26.cjs');
|
|
@@ -20,6 +20,6 @@ require('../shared/aria-global.cjs');
|
|
|
20
20
|
require('../shared/start-end.cjs');
|
|
21
21
|
require('../shared/ref.cjs');
|
|
22
22
|
require('../shared/enums.cjs');
|
|
23
|
-
require('../shared/
|
|
23
|
+
require('../shared/definition60.cjs');
|
|
24
24
|
|
|
25
25
|
definition.registerPopup();
|
package/popup/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerPopup } from '../shared/
|
|
1
|
+
import { r as registerPopup } from '../shared/definition61.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
3
|
import '../shared/definition11.js';
|
|
4
4
|
import '../shared/definition26.js';
|
|
@@ -18,6 +18,6 @@ import '../shared/aria-global.js';
|
|
|
18
18
|
import '../shared/start-end.js';
|
|
19
19
|
import '../shared/ref.js';
|
|
20
20
|
import '../shared/enums.js';
|
|
21
|
-
import '../shared/
|
|
21
|
+
import '../shared/definition60.js';
|
|
22
22
|
|
|
23
23
|
registerPopup();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const definition = require('../shared/definition41.cjs');
|
|
4
|
+
require('../shared/index.cjs');
|
|
5
|
+
require('../shared/key-codes2.cjs');
|
|
6
|
+
require('../shared/affix.cjs');
|
|
7
|
+
require('../shared/icon.cjs');
|
|
8
|
+
require('../shared/_has.cjs');
|
|
9
|
+
require('../shared/slotted.cjs');
|
|
10
|
+
require('../shared/index2.cjs');
|
|
11
|
+
require('../shared/when.cjs');
|
|
12
|
+
require('../locales/en-US.cjs');
|
|
13
|
+
require('../shared/localized.cjs');
|
|
14
|
+
require('../shared/form-associated.cjs');
|
|
15
|
+
require('../shared/key-codes.cjs');
|
|
16
|
+
require('../shared/slider.template.cjs');
|
|
17
|
+
require('../shared/aria2.cjs');
|
|
18
|
+
require('../shared/ref.cjs');
|
|
19
|
+
require('../shared/class-names.cjs');
|
|
20
|
+
require('../shared/apply-mixins.cjs');
|
|
21
|
+
|
|
22
|
+
definition.registerRangeSlider();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { b as registerRangeSlider } from '../shared/definition41.js';
|
|
2
|
+
import '../shared/index.js';
|
|
3
|
+
import '../shared/key-codes2.js';
|
|
4
|
+
import '../shared/affix.js';
|
|
5
|
+
import '../shared/icon.js';
|
|
6
|
+
import '../shared/_has.js';
|
|
7
|
+
import '../shared/slotted.js';
|
|
8
|
+
import '../shared/index2.js';
|
|
9
|
+
import '../shared/when.js';
|
|
10
|
+
import '../locales/en-US.js';
|
|
11
|
+
import '../shared/localized.js';
|
|
12
|
+
import '../shared/form-associated.js';
|
|
13
|
+
import '../shared/key-codes.js';
|
|
14
|
+
import '../shared/slider.template.js';
|
|
15
|
+
import '../shared/aria2.js';
|
|
16
|
+
import '../shared/ref.js';
|
|
17
|
+
import '../shared/class-names.js';
|
|
18
|
+
import '../shared/apply-mixins.js';
|
|
19
|
+
|
|
20
|
+
registerRangeSlider();
|
package/select/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const definition = require('../shared/
|
|
3
|
+
const definition = require('../shared/definition42.cjs');
|
|
4
4
|
require('../shared/index.cjs');
|
|
5
|
-
require('../shared/
|
|
5
|
+
require('../shared/definition61.cjs');
|
|
6
6
|
require('../shared/definition11.cjs');
|
|
7
7
|
require('../shared/definition26.cjs');
|
|
8
8
|
require('../shared/icon.cjs');
|
|
@@ -21,7 +21,7 @@ require('../shared/aria-global.cjs');
|
|
|
21
21
|
require('../shared/start-end.cjs');
|
|
22
22
|
require('../shared/ref.cjs');
|
|
23
23
|
require('../shared/enums.cjs');
|
|
24
|
-
require('../shared/
|
|
24
|
+
require('../shared/definition60.cjs');
|
|
25
25
|
require('../shared/definition35.cjs');
|
|
26
26
|
require('../shared/dom.cjs');
|
|
27
27
|
require('../shared/index2.cjs');
|
package/select/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerSelect } from '../shared/
|
|
1
|
+
import { r as registerSelect } from '../shared/definition42.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/
|
|
3
|
+
import '../shared/definition61.js';
|
|
4
4
|
import '../shared/definition11.js';
|
|
5
5
|
import '../shared/definition26.js';
|
|
6
6
|
import '../shared/icon.js';
|
|
@@ -19,7 +19,7 @@ import '../shared/aria-global.js';
|
|
|
19
19
|
import '../shared/start-end.js';
|
|
20
20
|
import '../shared/ref.js';
|
|
21
21
|
import '../shared/enums.js';
|
|
22
|
-
import '../shared/
|
|
22
|
+
import '../shared/definition60.js';
|
|
23
23
|
import '../shared/definition35.js';
|
|
24
24
|
import '../shared/dom.js';
|
|
25
25
|
import '../shared/index2.js';
|
package/selectable-box/index.cjs
CHANGED
package/selectable-box/index.js
CHANGED
package/shared/Reflector.cjs
CHANGED
|
@@ -48,7 +48,11 @@ class Reflector {
|
|
|
48
48
|
const value = source[propertyName];
|
|
49
49
|
switch (reflectedProperty.type) {
|
|
50
50
|
case "boolean-attribute":
|
|
51
|
-
index.DOM.setBooleanAttribute(
|
|
51
|
+
index.DOM.setBooleanAttribute(
|
|
52
|
+
this.#target,
|
|
53
|
+
reflectedProperty.destination,
|
|
54
|
+
Boolean(value)
|
|
55
|
+
);
|
|
52
56
|
break;
|
|
53
57
|
case "attribute":
|
|
54
58
|
index.DOM.setAttribute(this.#target, reflectedProperty.destination, value);
|
package/shared/Reflector.js
CHANGED
|
@@ -46,7 +46,11 @@ class Reflector {
|
|
|
46
46
|
const value = source[propertyName];
|
|
47
47
|
switch (reflectedProperty.type) {
|
|
48
48
|
case "boolean-attribute":
|
|
49
|
-
DOM.setBooleanAttribute(
|
|
49
|
+
DOM.setBooleanAttribute(
|
|
50
|
+
this.#target,
|
|
51
|
+
reflectedProperty.destination,
|
|
52
|
+
Boolean(value)
|
|
53
|
+
);
|
|
50
54
|
break;
|
|
51
55
|
case "attribute":
|
|
52
56
|
DOM.setAttribute(this.#target, reflectedProperty.destination, value);
|
package/shared/affix.cjs
CHANGED
|
@@ -45,20 +45,27 @@ const IconAriaHidden = {
|
|
|
45
45
|
};
|
|
46
46
|
const affixIconTemplateFactory = (context) => {
|
|
47
47
|
const iconTag = context.tagFor(icon.Icon);
|
|
48
|
-
return (icon, slottedState = IconWrapper.Span, ariaHidden = IconAriaHidden.
|
|
48
|
+
return (icon, slottedState = IconWrapper.Span, ariaHidden = IconAriaHidden.Hidden) => {
|
|
49
49
|
if (!icon && !slottedState) {
|
|
50
|
-
return index.html`<slot
|
|
50
|
+
return index.html`<slot
|
|
51
|
+
name="icon"
|
|
52
|
+
aria-hidden="${() => ariaHidden}"
|
|
53
|
+
${slotted.slotted("iconSlottedContent")}
|
|
54
|
+
></slot>`;
|
|
51
55
|
}
|
|
52
56
|
if (!icon && slottedState) {
|
|
53
57
|
return null;
|
|
54
58
|
}
|
|
55
59
|
const iconTemplate = index.html`<${iconTag} :name="${() => icon}"></${iconTag}>`;
|
|
56
|
-
return slottedState ? index.html`<span class="icon" aria-hidden="${() => ariaHidden}"
|
|
60
|
+
return slottedState ? index.html`<span class="icon" aria-hidden="${() => ariaHidden}"
|
|
61
|
+
>${iconTemplate}</span
|
|
62
|
+
>` : index.html`<slot name="icon" aria-hidden="${() => ariaHidden}"
|
|
63
|
+
>${iconTemplate}</slot
|
|
64
|
+
>`;
|
|
57
65
|
};
|
|
58
66
|
};
|
|
59
67
|
|
|
60
68
|
exports.AffixIcon = AffixIcon;
|
|
61
69
|
exports.AffixIconWithTrailing = AffixIconWithTrailing;
|
|
62
|
-
exports.IconAriaHidden = IconAriaHidden;
|
|
63
70
|
exports.IconWrapper = IconWrapper;
|
|
64
71
|
exports.affixIconTemplateFactory = affixIconTemplateFactory;
|
package/shared/affix.js
CHANGED
|
@@ -43,16 +43,24 @@ const IconAriaHidden = {
|
|
|
43
43
|
};
|
|
44
44
|
const affixIconTemplateFactory = (context) => {
|
|
45
45
|
const iconTag = context.tagFor(Icon);
|
|
46
|
-
return (icon, slottedState = IconWrapper.Span, ariaHidden = IconAriaHidden.
|
|
46
|
+
return (icon, slottedState = IconWrapper.Span, ariaHidden = IconAriaHidden.Hidden) => {
|
|
47
47
|
if (!icon && !slottedState) {
|
|
48
|
-
return html`<slot
|
|
48
|
+
return html`<slot
|
|
49
|
+
name="icon"
|
|
50
|
+
aria-hidden="${() => ariaHidden}"
|
|
51
|
+
${slotted("iconSlottedContent")}
|
|
52
|
+
></slot>`;
|
|
49
53
|
}
|
|
50
54
|
if (!icon && slottedState) {
|
|
51
55
|
return null;
|
|
52
56
|
}
|
|
53
57
|
const iconTemplate = html`<${iconTag} :name="${() => icon}"></${iconTag}>`;
|
|
54
|
-
return slottedState ? html`<span class="icon" aria-hidden="${() => ariaHidden}"
|
|
58
|
+
return slottedState ? html`<span class="icon" aria-hidden="${() => ariaHidden}"
|
|
59
|
+
>${iconTemplate}</span
|
|
60
|
+
>` : html`<slot name="icon" aria-hidden="${() => ariaHidden}"
|
|
61
|
+
>${iconTemplate}</slot
|
|
62
|
+
>`;
|
|
55
63
|
};
|
|
56
64
|
};
|
|
57
65
|
|
|
58
|
-
export { AffixIcon as A, IconWrapper as I, affixIconTemplateFactory as a, AffixIconWithTrailing as b
|
|
66
|
+
export { AffixIcon as A, IconWrapper as I, affixIconTemplateFactory as a, AffixIconWithTrailing as b };
|