@vonage/vivid 4.22.0 → 4.23.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/custom-elements.json +1987 -631
- package/lib/accordion-item/accordion-item.d.ts +11 -5
- package/lib/action-group/action-group.d.ts +8 -6
- package/lib/alert/alert.d.ts +21 -9
- package/lib/audio-player/audio-player.d.ts +11 -5
- package/lib/badge/badge.d.ts +11 -5
- package/lib/banner/banner.d.ts +26 -12
- package/lib/breadcrumb/breadcrumb.d.ts +333 -1
- package/lib/breadcrumb/breadcrumb.template.d.ts +2 -3
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +8 -6
- package/lib/button/button.d.ts +11 -5
- package/lib/calendar-event/calendar-event.d.ts +333 -1
- package/lib/checkbox/checkbox.d.ts +8 -6
- package/lib/combobox/combobox.d.ts +11 -5
- package/lib/date-picker/date-picker.d.ts +74 -50
- package/lib/date-range-picker/date-range-picker.d.ts +38 -26
- package/lib/date-time-picker/date-time-picker.d.ts +76 -52
- package/lib/dial-pad/dial-pad.d.ts +11 -5
- package/lib/dialog/dialog.d.ts +16 -8
- package/lib/divider/divider.d.ts +8 -6
- package/lib/fab/fab.d.ts +11 -5
- package/lib/file-picker/file-picker.d.ts +339 -3
- package/lib/header/header.d.ts +333 -1
- package/lib/menu/menu.d.ts +16 -8
- package/lib/menu-item/menu-item.d.ts +338 -2
- package/lib/nav/nav.d.ts +333 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +16 -8
- package/lib/nav-item/nav-item.d.ts +11 -5
- package/lib/note/note.d.ts +11 -5
- package/lib/number-field/number-field.d.ts +26 -12
- package/lib/option/option.d.ts +339 -3
- package/lib/progress/progress.d.ts +8 -6
- package/lib/progress-ring/progress-ring.d.ts +8 -6
- package/lib/radio-group/radio-group.d.ts +333 -1
- package/lib/range-slider/range-slider.d.ts +11 -5
- package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +1 -1
- package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +7 -1
- package/lib/rich-text-editor/menubar/consts.d.ts +18 -0
- package/lib/rich-text-editor/menubar/menubar.d.ts +3 -0
- package/lib/rich-text-editor/rich-text-editor.d.ts +10 -0
- package/lib/searchable-select/option-tag.d.ts +11 -5
- package/lib/searchable-select/searchable-select.d.ts +349 -7
- package/lib/select/select.d.ts +339 -3
- package/lib/selectable-box/selectable-box.d.ts +8 -6
- package/lib/slider/slider.d.ts +16 -8
- package/lib/split-button/split-button.d.ts +26 -12
- package/lib/switch/switch.d.ts +8 -6
- package/lib/tab/tab.d.ts +349 -7
- package/lib/tab-panel/tab-panel.d.ts +333 -1
- package/lib/tag/tag.d.ts +338 -2
- package/lib/tag-group/tag-group.d.ts +8 -6
- package/lib/text-anchor/text-anchor.d.ts +16 -8
- package/lib/text-area/text-area.d.ts +8 -6
- package/lib/text-field/text-field.d.ts +16 -8
- package/lib/time-picker/time-picker.d.ts +38 -26
- package/lib/toggletip/toggletip.d.ts +9 -3
- package/lib/tooltip/tooltip.d.ts +9 -3
- package/lib/tree-item/tree-item.d.ts +338 -2
- package/lib/tree-view/tree-view.d.ts +333 -1
- package/lib/video-player/video-player.d.ts +11 -5
- package/package.json +1 -1
- package/shared/affix.js +1 -1
- package/shared/aria/aria-change-subscription.d.ts +6 -0
- package/shared/aria/aria-mixin.d.ts +338 -0
- package/shared/aria/delegate-aria-behavior.d.ts +31 -0
- package/shared/aria/delegates-aria.d.ts +14 -9
- package/shared/aria/host-semantics-behavior.d.ts +22 -0
- package/shared/aria/host-semantics.d.ts +337 -0
- package/shared/attribute-binding-behaviour.cjs +41 -0
- package/shared/attribute-binding-behaviour.js +39 -0
- package/shared/calendar-event.cjs +2 -1
- package/shared/calendar-event.js +2 -1
- package/shared/definition.js +1 -1
- package/shared/definition10.cjs +8 -2
- package/shared/definition10.js +9 -3
- package/shared/definition11.cjs +4 -28
- package/shared/definition11.js +5 -29
- package/shared/definition12.cjs +4 -1
- package/shared/definition12.js +5 -2
- package/shared/definition13.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.cjs +8 -7
- package/shared/definition15.js +10 -9
- package/shared/definition16.js +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition18.js +1 -1
- package/shared/definition19.js +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +1 -1
- package/shared/definition21.js +1 -1
- package/shared/definition22.cjs +3 -2
- package/shared/definition22.js +5 -4
- package/shared/definition23.cjs +4 -2
- package/shared/definition23.js +6 -4
- package/shared/definition24.js +1 -1
- package/shared/definition25.cjs +2 -14
- package/shared/definition25.js +3 -15
- package/shared/definition26.cjs +7 -2
- package/shared/definition26.js +8 -3
- package/shared/definition27.cjs +3 -2
- package/shared/definition27.js +4 -3
- package/shared/definition28.js +1 -1
- package/shared/definition29.js +1 -1
- package/shared/definition3.cjs +3 -2
- package/shared/definition3.js +5 -4
- package/shared/definition30.cjs +33 -34
- package/shared/definition30.js +35 -36
- package/shared/definition31.cjs +6 -4
- package/shared/definition31.js +8 -6
- package/shared/definition32.js +1 -1
- package/shared/definition33.cjs +7 -2
- package/shared/definition33.js +8 -3
- package/shared/definition34.js +1 -1
- package/shared/definition35.cjs +2 -13
- package/shared/definition35.js +4 -15
- package/shared/definition36.cjs +8 -5
- package/shared/definition36.js +9 -6
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +7 -8
- package/shared/definition38.js +9 -10
- package/shared/definition39.cjs +7 -8
- package/shared/definition39.js +9 -10
- package/shared/definition4.js +1 -1
- package/shared/definition40.cjs +8 -5
- package/shared/definition40.js +9 -6
- package/shared/definition41.js +1 -1
- package/shared/definition42.js +1 -1
- package/shared/definition43.cjs +465 -105
- package/shared/definition43.js +457 -97
- package/shared/definition44.cjs +9 -6
- package/shared/definition44.js +10 -7
- package/shared/definition45.cjs +13 -7
- package/shared/definition45.js +14 -8
- package/shared/definition46.cjs +18 -6
- package/shared/definition46.js +20 -8
- package/shared/definition47.js +1 -1
- package/shared/definition48.js +1 -1
- package/shared/definition49.cjs +10 -3
- package/shared/definition49.js +12 -5
- package/shared/definition5.cjs +7 -2
- package/shared/definition5.js +8 -3
- package/shared/definition50.cjs +7 -6
- package/shared/definition50.js +9 -8
- package/shared/definition51.cjs +3 -2
- package/shared/definition51.js +4 -3
- package/shared/definition52.cjs +8 -4
- package/shared/definition52.js +9 -5
- package/shared/definition53.js +1 -1
- package/shared/definition54.cjs +4 -3
- package/shared/definition54.js +6 -5
- package/shared/definition55.cjs +7 -4
- package/shared/definition55.js +8 -5
- package/shared/definition56.cjs +68 -14
- package/shared/definition56.js +69 -15
- package/shared/definition57.cjs +163 -112
- package/shared/definition57.js +165 -114
- package/shared/definition58.js +1 -1
- package/shared/definition59.js +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition60.js +1 -1
- package/shared/definition61.cjs +8 -5
- package/shared/definition61.js +9 -6
- package/shared/definition62.cjs +5 -2
- package/shared/definition62.js +6 -3
- package/shared/definition63.js +1 -1
- package/shared/definition64.js +1 -1
- package/shared/definition65.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.cjs +4 -2
- package/shared/definition8.js +6 -4
- package/shared/definition9.js +1 -1
- package/shared/delegates-aria.cjs +106 -56
- package/shared/delegates-aria.js +107 -58
- package/shared/foundation/button/button.d.ts +8 -6
- package/shared/foundation/vivid-element/vivid-element.d.ts +339 -1
- package/shared/host-semantics.cjs +65 -0
- package/shared/host-semantics.js +62 -0
- package/shared/option.cjs +4 -1
- package/shared/option.js +4 -1
- package/shared/patterns/affix.d.ts +22 -10
- package/shared/patterns/anchored.d.ts +18 -6
- package/shared/patterns/localized.d.ts +11 -5
- package/shared/patterns/trapped-focus.d.ts +11 -5
- package/shared/picker-field/mixins/calendar-picker.d.ts +19 -13
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +19 -13
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +11 -5
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +38 -26
- package/shared/picker-field/mixins/single-date-picker.d.ts +55 -37
- package/shared/picker-field/mixins/single-value-picker.d.ts +17 -11
- package/shared/picker-field/mixins/time-selection-picker.d.ts +38 -26
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +38 -26
- package/shared/picker-field/picker-field.d.ts +21 -9
- package/shared/picker-field.template.js +1 -1
- package/shared/repeat.js +1 -1
- package/shared/slider.template.cjs +10 -9
- package/shared/slider.template.js +10 -9
- package/shared/templating/attribute-binding-behaviour.d.ts +15 -0
- package/shared/templating/render-in-light-dom.d.ts +22 -0
- package/shared/text-anchor.template.cjs +2 -13
- package/shared/text-anchor.template.js +2 -13
- package/shared/time-selection-picker.template.js +1 -1
- package/shared/vivid-element.cjs +96 -2
- package/shared/vivid-element.js +93 -3
- 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/text-anchor/index.js +1 -1
- package/vivid.api.json +155 -14
- package/shared/Reflector.cjs +0 -71
- package/shared/Reflector.js +0 -69
package/shared/definition38.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as attr, h as html,
|
|
1
|
+
import { a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { B as BaseProgress } from './base-progress.js';
|
|
3
|
-
import { D as DelegatesAria } from './delegates-aria.js';
|
|
3
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
4
4
|
import { c as classNames } from './class-names.js';
|
|
5
5
|
import { w as when } from './when.js';
|
|
6
6
|
|
|
@@ -31,16 +31,15 @@ const getClasses = ({ connotation, size, paused }) => classNames(
|
|
|
31
31
|
[`size-${size}`, !!size]
|
|
32
32
|
);
|
|
33
33
|
const progressSegments = 44;
|
|
34
|
-
const ProgressRingTemplate = html`<template
|
|
35
|
-
role="${(x) => x.ariaLabel ? "presentation" : null}"
|
|
36
|
-
>
|
|
34
|
+
const ProgressRingTemplate = html`<template>
|
|
37
35
|
<div
|
|
38
|
-
role="progressbar"
|
|
39
|
-
aria-label="${(x) => x.ariaLabel}"
|
|
40
|
-
aria-valuenow="${(x) => x.value}"
|
|
41
|
-
aria-valuemin="${(x) => x.min}"
|
|
42
|
-
aria-valuemax="${(x) => x.max}"
|
|
43
36
|
class="${(x) => x.paused ? "paused" : ""} ${getClasses}"
|
|
37
|
+
${delegateAria({
|
|
38
|
+
role: "progressbar",
|
|
39
|
+
ariaValueNow: (x) => x.value,
|
|
40
|
+
ariaValueMin: (x) => x.min,
|
|
41
|
+
ariaValueMax: (x) => x.max
|
|
42
|
+
})}
|
|
44
43
|
>
|
|
45
44
|
${when(
|
|
46
45
|
(x) => typeof x.value === "number",
|
package/shared/definition39.cjs
CHANGED
|
@@ -52,16 +52,15 @@ function indeterminate() {
|
|
|
52
52
|
<span class="indicator-2"></span>
|
|
53
53
|
</span>`;
|
|
54
54
|
}
|
|
55
|
-
const ProgressTemplate = vividElement.html`<template
|
|
56
|
-
role="${(x) => x.ariaLabel ? "presentation" : null}"
|
|
57
|
-
>
|
|
55
|
+
const ProgressTemplate = vividElement.html`<template>
|
|
58
56
|
<div
|
|
59
|
-
role="progressbar"
|
|
60
|
-
aria-label="${(x) => x.ariaLabel}"
|
|
61
|
-
aria-valuenow="${(x) => x.value}"
|
|
62
|
-
aria-valuemin="${(x) => x.min}"
|
|
63
|
-
aria-valuemax="${(x) => x.max}"
|
|
64
57
|
class="${getClasses}"
|
|
58
|
+
${delegatesAria.delegateAria({
|
|
59
|
+
role: "progressbar",
|
|
60
|
+
ariaValueNow: (x) => x.value,
|
|
61
|
+
ariaValueMin: (x) => x.min,
|
|
62
|
+
ariaValueMax: (x) => x.max
|
|
63
|
+
})}
|
|
65
64
|
>
|
|
66
65
|
<div class="progress">
|
|
67
66
|
${when.when((x) => typeof x.value === "number", determinate())}
|
package/shared/definition39.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as attr, h as html,
|
|
1
|
+
import { a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { B as BaseProgress } from './base-progress.js';
|
|
3
|
-
import { D as DelegatesAria } from './delegates-aria.js';
|
|
3
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
4
4
|
import { c as classNames } from './class-names.js';
|
|
5
5
|
import { w as when } from './when.js';
|
|
6
6
|
|
|
@@ -50,16 +50,15 @@ function indeterminate() {
|
|
|
50
50
|
<span class="indicator-2"></span>
|
|
51
51
|
</span>`;
|
|
52
52
|
}
|
|
53
|
-
const ProgressTemplate = html`<template
|
|
54
|
-
role="${(x) => x.ariaLabel ? "presentation" : null}"
|
|
55
|
-
>
|
|
53
|
+
const ProgressTemplate = html`<template>
|
|
56
54
|
<div
|
|
57
|
-
role="progressbar"
|
|
58
|
-
aria-label="${(x) => x.ariaLabel}"
|
|
59
|
-
aria-valuenow="${(x) => x.value}"
|
|
60
|
-
aria-valuemin="${(x) => x.min}"
|
|
61
|
-
aria-valuemax="${(x) => x.max}"
|
|
62
55
|
class="${getClasses}"
|
|
56
|
+
${delegateAria({
|
|
57
|
+
role: "progressbar",
|
|
58
|
+
ariaValueNow: (x) => x.value,
|
|
59
|
+
ariaValueMin: (x) => x.min,
|
|
60
|
+
ariaValueMax: (x) => x.max
|
|
61
|
+
})}
|
|
63
62
|
>
|
|
64
63
|
<div class="progress">
|
|
65
64
|
${when((x) => typeof x.value === "number", determinate())}
|
package/shared/definition4.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as Button, b as buttonDefinition } from './definition11.js';
|
|
2
2
|
import { E as Elevation, e as elevationDefinition } from './definition64.js';
|
|
3
|
-
import { V as VividElement, a as attr, n as nullableNumberConverter, h as html,
|
|
3
|
+
import { V as VividElement, a as attr, n as nullableNumberConverter, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
4
4
|
import { i as iconDefinition } from './definition28.js';
|
|
5
5
|
import { C as Connotation } from './enums.js';
|
|
6
6
|
import { b as AffixIcon, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
|
package/shared/definition40.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
const definition = require('./definition41.cjs');
|
|
5
5
|
const keyCodes = require('./key-codes.cjs');
|
|
6
|
+
const hostSemantics = require('./host-semantics.cjs');
|
|
6
7
|
const aria = require('./aria.cjs');
|
|
7
8
|
const slotted = require('./slotted.cjs');
|
|
8
9
|
const when = require('./when.cjs');
|
|
@@ -18,7 +19,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
19
|
if (result) __defProp(target, key, result);
|
|
19
20
|
return result;
|
|
20
21
|
};
|
|
21
|
-
class RadioGroup extends vividElement.VividElement {
|
|
22
|
+
class RadioGroup extends hostSemantics.HostSemantics(vividElement.VividElement) {
|
|
22
23
|
constructor() {
|
|
23
24
|
super(...arguments);
|
|
24
25
|
this.orientation = // eslint-disable-next-line @nrwl/nx/workspace/no-attribute-default-value
|
|
@@ -250,10 +251,12 @@ __decorateClass([
|
|
|
250
251
|
const RadioGroupTemplate = (context) => {
|
|
251
252
|
return vividElement.html`
|
|
252
253
|
<template
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
${hostSemantics.applyHostSemantics({
|
|
255
|
+
role: "radiogroup",
|
|
256
|
+
ariaDisabled: (x) => x.disabled,
|
|
257
|
+
ariaReadOnly: (x) => x.readOnly,
|
|
258
|
+
ariaOrientation: (x) => x.orientation
|
|
259
|
+
})}
|
|
257
260
|
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
258
261
|
@focusin="${(x, c) => x.focusInHandler(c.event)}"
|
|
259
262
|
>
|
package/shared/definition40.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { V as VividElement, a as attr, o as observable, h as html,
|
|
1
|
+
import { V as VividElement, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { R as Radio, r as radioDefinition } from './definition41.js';
|
|
3
3
|
import { i as keyArrowRight, h as keyArrowLeft, e as keyArrowUp, f as keyArrowDown, k as keyEnter } from './key-codes.js';
|
|
4
|
+
import { H as HostSemantics, a as applyHostSemantics } from './host-semantics.js';
|
|
4
5
|
import { O as Orientation } from './aria.js';
|
|
5
6
|
import { s as slotted, e as elements } from './slotted.js';
|
|
6
7
|
import { w as when } from './when.js';
|
|
@@ -16,7 +17,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
16
17
|
if (result) __defProp(target, key, result);
|
|
17
18
|
return result;
|
|
18
19
|
};
|
|
19
|
-
class RadioGroup extends VividElement {
|
|
20
|
+
class RadioGroup extends HostSemantics(VividElement) {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
22
23
|
this.orientation = // eslint-disable-next-line @nrwl/nx/workspace/no-attribute-default-value
|
|
@@ -248,10 +249,12 @@ __decorateClass([
|
|
|
248
249
|
const RadioGroupTemplate = (context) => {
|
|
249
250
|
return html`
|
|
250
251
|
<template
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
${applyHostSemantics({
|
|
253
|
+
role: "radiogroup",
|
|
254
|
+
ariaDisabled: (x) => x.disabled,
|
|
255
|
+
ariaReadOnly: (x) => x.readOnly,
|
|
256
|
+
ariaOrientation: (x) => x.orientation
|
|
257
|
+
})}
|
|
255
258
|
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
256
259
|
@focusin="${(x, c) => x.focusInHandler(c.event)}"
|
|
257
260
|
>
|
package/shared/definition41.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VividElement, D as DOM, a as attr, o as observable, h as html,
|
|
1
|
+
import { V as VividElement, D as DOM, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { C as CheckableFormAssociated } from './form-associated.js';
|
|
3
3
|
import { a as keySpace } from './key-codes.js';
|
|
4
4
|
import { c as classNames } from './class-names.js';
|
package/shared/definition42.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as Popup, a as PlacementStrategy, p as popupDefinition } from './definition65.js';
|
|
2
|
-
import { V as VividElement, o as observable, a as attr, n as nullableNumberConverter, h as html,
|
|
2
|
+
import { V as VividElement, o as observable, a as attr, n as nullableNumberConverter, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
3
3
|
import { g as keyHome, d as keyEnd, e as keyArrowUp, h as keyArrowLeft, f as keyArrowDown, i as keyArrowRight } from './key-codes.js';
|
|
4
4
|
import { F as FormAssociated } from './form-associated.js';
|
|
5
5
|
import { i as inverseLerp, l as lerp, r as roundToStepValue, d as defaultToOneConverter, g as getMarkersTemplate } from './slider.template.js';
|