@vonage/vivid 4.10.0 → 4.12.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 +8630 -6433
- package/lib/badge/badge.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +5 -3
- package/lib/checkbox/checkbox.form-associated.d.ts +10 -0
- package/lib/enums.d.ts +1 -0
- package/lib/fab/fab.d.ts +2 -2
- package/lib/file-picker/file-picker.d.ts +3 -0
- package/lib/slider/slider.d.ts +30 -6
- package/lib/slider/slider.form-associated.d.ts +10 -0
- package/lib/split-button/split-button.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +1 -0
- package/package.json +1 -1
- package/shared/aria-global2.cjs +93 -0
- package/shared/aria-global2.js +91 -0
- package/shared/breadcrumb-item.cjs +2 -89
- package/shared/breadcrumb-item.js +1 -88
- package/shared/definition11.cjs +200 -4
- package/shared/definition11.js +198 -3
- package/shared/definition15.cjs +34 -91
- package/shared/definition15.js +35 -92
- package/shared/definition16.cjs +9 -7
- package/shared/definition16.js +9 -7
- package/shared/definition20.cjs +1 -1
- package/shared/definition20.js +1 -1
- package/shared/definition21.cjs +1 -1
- package/shared/definition21.js +1 -1
- package/shared/definition24.cjs +156 -2
- package/shared/definition24.js +157 -3
- package/shared/definition25.cjs +106 -56
- package/shared/definition25.js +106 -56
- package/shared/definition35.cjs +2 -2
- package/shared/definition35.js +2 -2
- package/shared/definition37.cjs +1 -1
- package/shared/definition37.js +1 -1
- package/shared/definition4.cjs +5 -6
- package/shared/definition4.js +1 -2
- package/shared/definition40.cjs +11 -4
- package/shared/definition40.js +8 -1
- package/shared/definition42.cjs +3 -22
- package/shared/definition42.js +2 -21
- package/shared/definition43.cjs +1 -2
- package/shared/definition43.js +1 -2
- package/shared/definition44.js +1 -1
- package/shared/definition47.cjs +369 -502
- package/shared/definition47.js +370 -503
- package/shared/definition5.cjs +4 -4
- package/shared/definition5.js +1 -1
- package/shared/definition51.cjs +1 -1
- package/shared/definition51.js +1 -1
- package/shared/definition52.cjs +63 -26
- package/shared/definition52.js +63 -26
- package/shared/definition56.cjs +41 -43
- package/shared/definition56.js +41 -43
- package/shared/definition57.cjs +1 -1
- package/shared/definition57.js +1 -1
- package/shared/definition58.cjs +1 -1
- package/shared/definition58.js +1 -1
- package/shared/definition59.cjs +1 -1
- package/shared/definition59.js +1 -1
- package/shared/definition64.cjs +278 -90
- package/shared/definition64.js +278 -90
- package/shared/definition7.cjs +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.cjs +1 -1
- package/shared/definition8.js +1 -1
- package/shared/enums.cjs +1 -0
- package/shared/enums.js +1 -0
- package/shared/form-associated.js +1 -1
- package/shared/{patterns → foundation/anchor}/anchor.d.ts +1 -1
- package/shared/foundation/button/button.d.ts +27 -0
- package/shared/foundation/button/button.template.d.ts +4 -0
- package/shared/foundation/button/index.d.ts +2 -0
- package/shared/foundation/patterns/index.d.ts +1 -0
- package/shared/index.cjs +22 -2
- package/shared/index.js +22 -2
- package/shared/key-codes2.js +1 -1
- package/shared/presentationDate.cjs +4328 -4042
- package/shared/presentationDate.js +4327 -4041
- package/shared/slider.template.cjs +23 -1
- package/shared/slider.template.js +21 -2
- 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/vivid.api.json +52 -4
- package/shared/aria2.cjs +0 -11
- package/shared/aria2.js +0 -9
- package/shared/button.cjs +0 -202
- package/shared/button.js +0 -200
- /package/shared/{patterns → foundation/patterns}/aria-global.d.ts +0 -0
package/shared/definition56.js
CHANGED
|
@@ -11,59 +11,57 @@ import { w as when } from './when.js';
|
|
|
11
11
|
import { s as slotted } from './slotted.js';
|
|
12
12
|
import { c as classNames } from './class-names.js';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const byteToHex = [];
|
|
15
|
+
for (let i = 0; i < 256; ++i) {
|
|
16
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
17
|
+
}
|
|
18
|
+
function unsafeStringify(arr, offset = 0) {
|
|
19
|
+
return (byteToHex[arr[offset + 0]] +
|
|
20
|
+
byteToHex[arr[offset + 1]] +
|
|
21
|
+
byteToHex[arr[offset + 2]] +
|
|
22
|
+
byteToHex[arr[offset + 3]] +
|
|
23
|
+
'-' +
|
|
24
|
+
byteToHex[arr[offset + 4]] +
|
|
25
|
+
byteToHex[arr[offset + 5]] +
|
|
26
|
+
'-' +
|
|
27
|
+
byteToHex[arr[offset + 6]] +
|
|
28
|
+
byteToHex[arr[offset + 7]] +
|
|
29
|
+
'-' +
|
|
30
|
+
byteToHex[arr[offset + 8]] +
|
|
31
|
+
byteToHex[arr[offset + 9]] +
|
|
32
|
+
'-' +
|
|
33
|
+
byteToHex[arr[offset + 10]] +
|
|
34
|
+
byteToHex[arr[offset + 11]] +
|
|
35
|
+
byteToHex[arr[offset + 12]] +
|
|
36
|
+
byteToHex[arr[offset + 13]] +
|
|
37
|
+
byteToHex[arr[offset + 14]] +
|
|
38
|
+
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
39
|
+
}
|
|
40
|
+
|
|
17
41
|
let getRandomValues;
|
|
18
42
|
const rnds8 = new Uint8Array(16);
|
|
19
43
|
function rng() {
|
|
20
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
21
|
-
if (!getRandomValues) {
|
|
22
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
23
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
24
|
-
|
|
25
44
|
if (!getRandomValues) {
|
|
26
|
-
|
|
45
|
+
if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
|
|
46
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
47
|
+
}
|
|
48
|
+
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
27
49
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return getRandomValues(rnds8);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
35
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
const byteToHex = [];
|
|
39
|
-
|
|
40
|
-
for (let i = 0; i < 256; ++i) {
|
|
41
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function unsafeStringify(arr, offset = 0) {
|
|
45
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
46
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
47
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
50
|
+
return getRandomValues(rnds8);
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
51
|
-
const native = {
|
|
52
|
-
randomUUID
|
|
53
|
-
};
|
|
54
|
+
const native = { randomUUID };
|
|
54
55
|
|
|
55
56
|
function v4(options, buf, offset) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
65
|
-
|
|
66
|
-
return unsafeStringify(rnds);
|
|
57
|
+
if (native.randomUUID && !buf && !options) {
|
|
58
|
+
return native.randomUUID();
|
|
59
|
+
}
|
|
60
|
+
options = options || {};
|
|
61
|
+
const rnds = options.random || (options.rng || rng)();
|
|
62
|
+
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
63
|
+
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
64
|
+
return unsafeStringify(rnds);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
const generateRandomId = () => v4();
|
package/shared/definition57.cjs
CHANGED
|
@@ -746,7 +746,7 @@ const renderPicker = (id, getLabel, getSelected, setSelected, getOptions) => {
|
|
|
746
746
|
const TimePickerTemplate = (context, _) => {
|
|
747
747
|
const popupTag = context.tagFor(definition.Popup);
|
|
748
748
|
const textFieldTag = context.tagFor(definition$1.TextField);
|
|
749
|
-
const buttonTag = context.tagFor(definition$2.Button);
|
|
749
|
+
const buttonTag = context.tagFor(definition$2.Button$1);
|
|
750
750
|
return index.html`<div class="base" @keydown="${(x, { event }) => x._onBaseKeyDown(event)}">
|
|
751
751
|
<${textFieldTag} id="text-field"
|
|
752
752
|
${ref.ref("_textFieldEl")}
|
package/shared/definition57.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as FoundationElement, D as DOM, a as attr, n as nullableNumberConverter, o as observable, h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { T as TextField, a as textFieldRegistries } from './definition56.js';
|
|
3
3
|
import { P as Popup, p as popupRegistries } from './definition64.js';
|
|
4
|
-
import {
|
|
4
|
+
import { c as Button, a as buttonRegistries } from './definition11.js';
|
|
5
5
|
import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
|
|
6
6
|
import { h as handleEscapeKeyAndStopPropogation } from './index2.js';
|
|
7
7
|
import { s as scrollIntoView } from './scrollIntoView.js';
|
package/shared/definition58.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const index$1 = require('./index2.cjs');
|
|
|
7
7
|
const when = require('./when.cjs');
|
|
8
8
|
const classNames = require('./class-names.cjs');
|
|
9
9
|
|
|
10
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px;max-inline-size:var(--toggletip-max-inline-size, 30ch)}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}";
|
|
10
|
+
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px;max-inline-size:var(--toggletip-max-inline-size, 30ch)}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}";
|
|
11
11
|
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
13
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/shared/definition58.js
CHANGED
|
@@ -5,7 +5,7 @@ import { h as handleEscapeKeyAndStopPropogation } from './index2.js';
|
|
|
5
5
|
import { w as when } from './when.js';
|
|
6
6
|
import { c as classNames } from './class-names.js';
|
|
7
7
|
|
|
8
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px;max-inline-size:var(--toggletip-max-inline-size, 30ch)}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}";
|
|
8
|
+
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.content-wrapper{width:var(--toggletip-inline-size, auto);padding:16px;max-inline-size:var(--toggletip-max-inline-size, 30ch)}.headline{font:var(--vvd-typography-base-bold)}.action-items{display:flex;justify-content:flex-end;gap:10px}::slotted([slot=action-items]){margin-block-start:16px}";
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/shared/definition59.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const anchored = require('./anchored.cjs');
|
|
|
6
6
|
const index$1 = require('./index2.cjs');
|
|
7
7
|
const classNames = require('./class-names.cjs');
|
|
8
8
|
|
|
9
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto);max-inline-size:var(--tooltip-max-inline-size, 30ch)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
9
|
+
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto);max-inline-size:var(--tooltip-max-inline-size, 30ch)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/shared/definition59.js
CHANGED
|
@@ -4,7 +4,7 @@ import { b as anchored, a as anchorSlotTemplateFactory } from './anchored.js';
|
|
|
4
4
|
import { h as handleEscapeKeyAndStopPropogation } from './index2.js';
|
|
5
5
|
import { c as classNames } from './class-names.js';
|
|
6
6
|
|
|
7
|
-
const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto);max-inline-size:var(--tooltip-max-inline-size, 30ch)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
7
|
+
const styles = ":host :host{display:var(--_popup-display, inline)}:host :host([slotted-anchor]){--_popup-display: contents}.control{pointer-events:none}.tooltip{width:var(--tooltip-inline-size, auto);max-inline-size:var(--tooltip-max-inline-size, 30ch)}.tooltip-text{padding:8px 12px;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold)}";
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|