@vonage/vivid 3.0.0-next.19 → 3.0.0-next.21
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/index.js +3 -0
- package/action-group/index.js +1 -1
- package/badge/index.js +4 -1
- package/banner/index.js +4 -1
- package/breadcrumb/index.js +2 -0
- package/breadcrumb-item/index.js +3 -0
- package/button/index.js +4 -1
- package/calendar/index.js +6 -0
- package/calendar-event/index.js +130 -0
- package/card/index.js +3 -0
- package/fab/index.js +4 -1
- package/icon/index.js +3 -1
- package/index.js +4 -0
- package/lib/badge/badge.d.ts +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/calendar-event/calendar-event.d.ts +12 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/components.d.ts +1 -0
- package/lib/enums.d.ts +1 -2
- package/lib/fab/fab.d.ts +1 -1
- package/lib/icon/icon.d.ts +1 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +1 -1
- package/lib/text/text.d.ts +1 -1
- package/lib/text-field/text-field.d.ts +1 -0
- package/note/index.js +4 -1
- package/package.json +6 -5
- package/popup/index.js +24 -24
- package/progress/index.js +5 -3
- package/progress-ring/index.js +4 -3
- package/shared/anchor.js +8 -1
- package/shared/base-progress.js +5 -0
- package/shared/button.js +8 -1
- package/shared/enums.js +1 -2
- package/shared/es.object.assign.js +7 -7
- package/shared/export.js +972 -0
- package/shared/icon.js +499 -498
- package/shared/index.js +55 -54
- package/shared/object-keys.js +13 -0
- package/shared/object-set-prototype-of.js +12 -960
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +25 -32
- package/side-drawer/index.js +2 -0
- package/sidenav-item/index.js +3 -0
- package/text/index.js +3 -1
- package/text-anchor/index.js +3 -0
- package/text-field/index.js +40 -11
- package/tooltip/index.js +3 -0
package/popup/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import '../elevation/index.js';
|
|
2
2
|
import '../button/index.js';
|
|
3
3
|
import { F as FoundationElement, c as __classPrivateFieldGet, g as __classPrivateFieldSet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { s as speciesConstructor$1, f as functionApply } from '../shared/icon.js';
|
|
5
|
+
import { o as objectCreate } from '../shared/web.dom-collections.iterator.js';
|
|
6
6
|
import '../shared/es.object.assign.js';
|
|
7
|
-
import {
|
|
7
|
+
import { a as anObject$3, f as fails$5, q as global$3, m as functionCall, y as functionUncurryThis, Q as shared$1, p as internalState, _ as _export, w as wellKnownSymbol$2, j as defineBuiltIn$1, l as createNonEnumerableProperty$1, H as isObject$1, r as classofRaw, K as requireObjectCoercible$2, R as toIntegerOrInfinity$1, S as toPropertyKey$1, o as objectDefineProperty, k as createPropertyDescriptor$1, J as lengthOfArrayLike$1, T as toAbsoluteIndex$1, i as isCallable$1, U as toLength$1, I as getMethod$1 } from '../shared/export.js';
|
|
8
|
+
import { t as toString$3 } from '../shared/to-string.js';
|
|
8
9
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
9
10
|
import { w as when } from '../shared/when.js';
|
|
10
11
|
import { r as ref } from '../shared/aria-global.js';
|
|
11
12
|
import { c as classNames } from '../shared/class-names.js';
|
|
12
13
|
import '../icon/index.js';
|
|
14
|
+
import '../shared/object-set-prototype-of.js';
|
|
13
15
|
import '../shared/_has.js';
|
|
14
16
|
import '../focus/index.js';
|
|
15
17
|
import '../shared/focus.js';
|
|
@@ -17,6 +19,7 @@ import '../shared/affix.js';
|
|
|
17
19
|
import '../shared/button.js';
|
|
18
20
|
import '../shared/apply-mixins.js';
|
|
19
21
|
import '../shared/focus2.js';
|
|
22
|
+
import '../shared/object-keys.js';
|
|
20
23
|
|
|
21
24
|
var anObject$2 = anObject$3;
|
|
22
25
|
|
|
@@ -25,6 +28,7 @@ var anObject$2 = anObject$3;
|
|
|
25
28
|
var regexpFlags$1 = function () {
|
|
26
29
|
var that = anObject$2(this);
|
|
27
30
|
var result = '';
|
|
31
|
+
if (that.hasIndices) result += 'd';
|
|
28
32
|
if (that.global) result += 'g';
|
|
29
33
|
if (that.ignoreCase) result += 'i';
|
|
30
34
|
if (that.multiline) result += 'm';
|
|
@@ -35,10 +39,10 @@ var regexpFlags$1 = function () {
|
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
var fails$4 = fails$5;
|
|
38
|
-
var global$
|
|
42
|
+
var global$2 = global$3;
|
|
39
43
|
|
|
40
44
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
41
|
-
var $RegExp$2 = global$
|
|
45
|
+
var $RegExp$2 = global$2.RegExp;
|
|
42
46
|
|
|
43
47
|
var UNSUPPORTED_Y$2 = fails$4(function () {
|
|
44
48
|
var re = $RegExp$2('a', 'y');
|
|
@@ -66,10 +70,10 @@ var regexpStickyHelpers = {
|
|
|
66
70
|
};
|
|
67
71
|
|
|
68
72
|
var fails$3 = fails$5;
|
|
69
|
-
var global$
|
|
73
|
+
var global$1 = global$3;
|
|
70
74
|
|
|
71
75
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
72
|
-
var $RegExp$1 = global$
|
|
76
|
+
var $RegExp$1 = global$1.RegExp;
|
|
73
77
|
|
|
74
78
|
var regexpUnsupportedDotAll = fails$3(function () {
|
|
75
79
|
var re = $RegExp$1('.', 's');
|
|
@@ -77,10 +81,10 @@ var regexpUnsupportedDotAll = fails$3(function () {
|
|
|
77
81
|
});
|
|
78
82
|
|
|
79
83
|
var fails$2 = fails$5;
|
|
80
|
-
var global
|
|
84
|
+
var global = global$3;
|
|
81
85
|
|
|
82
86
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
83
|
-
var $RegExp = global
|
|
87
|
+
var $RegExp = global.RegExp;
|
|
84
88
|
|
|
85
89
|
var regexpUnsupportedNcg = fails$2(function () {
|
|
86
90
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -217,7 +221,7 @@ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
|
217
221
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
218
222
|
|
|
219
223
|
var uncurryThis$2 = functionUncurryThis;
|
|
220
|
-
var
|
|
224
|
+
var defineBuiltIn = defineBuiltIn$1;
|
|
221
225
|
var regexpExec$2 = regexpExec$3;
|
|
222
226
|
var fails$1 = fails$5;
|
|
223
227
|
var wellKnownSymbol$1 = wellKnownSymbol$2;
|
|
@@ -281,8 +285,8 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
281
285
|
return { done: false };
|
|
282
286
|
});
|
|
283
287
|
|
|
284
|
-
|
|
285
|
-
|
|
288
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
289
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
286
290
|
}
|
|
287
291
|
|
|
288
292
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
@@ -356,32 +360,30 @@ var createProperty$1 = function (object, key, value) {
|
|
|
356
360
|
else object[propertyKey] = value;
|
|
357
361
|
};
|
|
358
362
|
|
|
359
|
-
var global$1 = global$5;
|
|
360
363
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
361
364
|
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
362
365
|
var createProperty = createProperty$1;
|
|
363
366
|
|
|
364
|
-
var Array
|
|
367
|
+
var $Array = Array;
|
|
365
368
|
var max$2 = Math.max;
|
|
366
369
|
|
|
367
370
|
var arraySliceSimple = function (O, start, end) {
|
|
368
371
|
var length = lengthOfArrayLike(O);
|
|
369
372
|
var k = toAbsoluteIndex(start, length);
|
|
370
373
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
371
|
-
var result = Array
|
|
374
|
+
var result = $Array(max$2(fin - k, 0));
|
|
372
375
|
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
373
376
|
result.length = n;
|
|
374
377
|
return result;
|
|
375
378
|
};
|
|
376
379
|
|
|
377
|
-
var global = global$5;
|
|
378
380
|
var call$1 = functionCall;
|
|
379
381
|
var anObject$1 = anObject$3;
|
|
380
382
|
var isCallable = isCallable$1;
|
|
381
383
|
var classof = classofRaw;
|
|
382
384
|
var regexpExec$1 = regexpExec$3;
|
|
383
385
|
|
|
384
|
-
var TypeError =
|
|
386
|
+
var $TypeError = TypeError;
|
|
385
387
|
|
|
386
388
|
// `RegExpExec` abstract operation
|
|
387
389
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -393,7 +395,7 @@ var regexpExecAbstract = function (R, S) {
|
|
|
393
395
|
return result;
|
|
394
396
|
}
|
|
395
397
|
if (classof(R) === 'RegExp') return call$1(regexpExec$1, R, S);
|
|
396
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
398
|
+
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
397
399
|
};
|
|
398
400
|
|
|
399
401
|
var apply = functionApply;
|
|
@@ -824,9 +826,7 @@ async function detectOverflow(middlewareArguments, options) {
|
|
|
824
826
|
} : rects.reference,
|
|
825
827
|
offsetParent: await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)),
|
|
826
828
|
strategy
|
|
827
|
-
}) : rects[elementContext]);
|
|
828
|
-
// 0 or negative = within the clipping rect
|
|
829
|
-
|
|
829
|
+
}) : rects[elementContext]);
|
|
830
830
|
return {
|
|
831
831
|
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
|
|
832
832
|
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
|
|
@@ -1726,9 +1726,9 @@ function getOverflowAncestors(node, list) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
|
|
1728
1728
|
function contains(parent, child) {
|
|
1729
|
-
const rootNode = child
|
|
1729
|
+
const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method
|
|
1730
1730
|
|
|
1731
|
-
if (parent
|
|
1731
|
+
if (parent.contains(child)) {
|
|
1732
1732
|
return true;
|
|
1733
1733
|
} // then fallback to custom implementation with Shadow DOM support
|
|
1734
1734
|
else if (rootNode && isShadowRoot(rootNode)) {
|
|
@@ -2069,7 +2069,7 @@ __decorate([attr({
|
|
|
2069
2069
|
|
|
2070
2070
|
__decorate([attr, __metadata("design:type", String)], Popup.prototype, "anchor", void 0);
|
|
2071
2071
|
|
|
2072
|
-
var css_248z = ".control {\n background-color: var(--vvd-color-surface-4dp);\n border-radius: inherit;\n contain: layout;\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n}\n.control:not(.open) {\n display: none;\n}\n\n.popup-wrapper {\n position: fixed;\n border-radius: 6px;\n}\n\n.popup-content {\n display: grid;\n color: var(--vvd-color-on-canvas)
|
|
2072
|
+
var css_248z = ".control {\n background-color: var(--vvd-color-surface-4dp);\n border-radius: inherit;\n contain: layout;\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n}\n.control:not(.open) {\n display: none;\n}\n\n.popup-wrapper {\n position: fixed;\n border-radius: 6px;\n}\n\n.popup-content {\n display: grid;\n color: var(--vvd-color-on-canvas); /* neutral-100 */\n}\n.dismissible .popup-content {\n align-content: start;\n grid-template-columns: 1fr auto;\n}\n\n.arrow {\n position: absolute;\n z-index: -1;\n width: 8px;\n height: 8px;\n background-color: var(--vvd-color-surface-4dp);\n transform: rotate(45deg);\n}\n\n.dismissible-button {\n align-self: flex-start;\n margin-block-start: 0.25rem;\n margin-inline-end: 0.25rem;\n}";
|
|
2073
2073
|
styleInject(css_248z);
|
|
2074
2074
|
|
|
2075
2075
|
let _ = t => t,
|
package/progress/index.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
2
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
3
|
import '../shared/web.dom-collections.iterator.js';
|
|
4
|
-
import {
|
|
4
|
+
import { r as classofRaw, _ as _export, y as functionUncurryThis } from '../shared/export.js';
|
|
5
5
|
import { B as BaseProgress } from '../shared/base-progress.js';
|
|
6
6
|
import { w as when } from '../shared/when.js';
|
|
7
7
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
|
+
import '../shared/object-keys.js';
|
|
9
|
+
import '../shared/object-set-prototype-of.js';
|
|
8
10
|
|
|
9
|
-
var css_248z = ".base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --
|
|
11
|
+
var css_248z = ".base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-info-30), var(--vvd-color-cta-70));\n}\n\n.indeterminate {\n display: flex;\n overflow: hidden;\n width: 100%;\n height: 100%;\n border-radius: 3px;\n}\n\n.progress {\n position: relative;\n display: flex;\n align-items: center;\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 100%;\n}\n.progress .indeterminate {\n background-color: var(--_connotation-color-primary);\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: 3px;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n\n.indeterminate-indicator-1, .indeterminate-indicator-2 {\n position: absolute;\n animation: indeterminate-1 2s infinite;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-20);\n block-size: 100%;\n inline-size: 30%;\n opacity: 0;\n}\n\n.indeterminate-indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.connotation-pacific .indeterminate-indicator-1, .connotation-pacific .indeterminate-indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n\n.reverse .indeterminate-indicator-1, .reverse .indeterminate-indicator-2 {\n animation-direction: reverse;\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n\n.base.shape-sharp .determinate, .base.shape-sharp .indeterminate {\n border-radius: 0;\n}\n\n.base.paused .indeterminate-indicator-1,\n.base.paused .indeterminate-indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n\n.base.paused .determinate {\n background-color: var(--vvd-color-neutral-40);\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
|
|
10
12
|
styleInject(css_248z);
|
|
11
13
|
|
|
12
14
|
var classof = classofRaw;
|
|
13
15
|
|
|
14
16
|
// `IsArray` abstract operation
|
|
15
17
|
// https://tc39.es/ecma262/#sec-isarray
|
|
16
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
18
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
17
19
|
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
18
20
|
return classof(argument) == 'Array';
|
|
19
21
|
};
|
package/progress-ring/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { B as BaseProgress } from '../shared/base-progress.js';
|
|
|
4
4
|
import { w as when } from '../shared/when.js';
|
|
5
5
|
import { c as classNames } from '../shared/class-names.js';
|
|
6
6
|
|
|
7
|
-
var css_248z = ".base {\n align-items: center;\n block-size: var(--_density);\n inline-size: var(--_density);\n outline: none;\n}\n.base.connotation-cta {\n --
|
|
7
|
+
var css_248z = ".base {\n align-items: center;\n block-size: var(--_density);\n color: var(--_appearance-color-text);\n inline-size: var(--_density);\n outline: none;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: transaprent;\n --_appearance-color-outline: transaprent;\n}\n.base.density-4 {\n --_density: calc(4 * 4px);\n}\n.base.density-5 {\n --_density: calc(5 * 4px);\n}\n.base.density-6 {\n --_density: calc(6 * 4px);\n}\n.base.density-7 {\n --_density: calc(7 * 4px);\n}\n.base.density-8 {\n --_density: calc(8 * 4px);\n}\n.base.density-10 {\n --_density: calc(10 * 4px);\n}\n.base.density-11 {\n --_density: calc(11 * 4px);\n}\n.base.density-12 {\n --_density: calc(12 * 4px);\n}\n.base:not(.density-4, .density-5, .density-6, .density-7, .density-8, .density-10, .density-11, .density-12) {\n --_density: calc(9 * 4px);\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 2px;\n}\n\n.determinate {\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
|
|
8
8
|
styleInject(css_248z);
|
|
9
9
|
|
|
10
10
|
class ProgressRing extends BaseProgress {}
|
|
@@ -20,8 +20,9 @@ let _2 = t => t,
|
|
|
20
20
|
|
|
21
21
|
const getClasses = ({
|
|
22
22
|
connotation,
|
|
23
|
-
density
|
|
24
|
-
|
|
23
|
+
density,
|
|
24
|
+
paused
|
|
25
|
+
}) => classNames('base', ['disabled', !!paused], [`connotation-${connotation}`, !!connotation], [`density-${(density ? Number(density) : 0) + 9}`, !!density]);
|
|
25
26
|
|
|
26
27
|
const progressSegments = 44;
|
|
27
28
|
const ProgressRingTemplate = _ => html(_t || (_t = _2`
|
package/shared/anchor.js
CHANGED
|
@@ -6,6 +6,12 @@ import { A as ARIAGlobalStatesAndProperties, S as StartEnd } from './aria-global
|
|
|
6
6
|
* An Anchor Custom HTML Element.
|
|
7
7
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a | <a> element }.
|
|
8
8
|
*
|
|
9
|
+
* @slot start - Content which can be provided before the anchor content
|
|
10
|
+
* @slot end - Content which can be provided after the anchor content
|
|
11
|
+
* @slot - The default slot for anchor content
|
|
12
|
+
* @csspart control - The anchor element
|
|
13
|
+
* @csspart content - The element wrapping anchor content
|
|
14
|
+
*
|
|
9
15
|
* @public
|
|
10
16
|
*/
|
|
11
17
|
class Anchor extends FoundationElement {
|
|
@@ -20,7 +26,8 @@ class Anchor extends FoundationElement {
|
|
|
20
26
|
var _a;
|
|
21
27
|
// Check to see if delegatesFocus is supported
|
|
22
28
|
if (window.ShadowRoot &&
|
|
23
|
-
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
29
|
+
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
30
|
+
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
24
31
|
this.focus = () => {
|
|
25
32
|
this.control.focus();
|
|
26
33
|
};
|
package/shared/base-progress.js
CHANGED
|
@@ -4,6 +4,11 @@ import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumber
|
|
|
4
4
|
* An Progress HTML Element.
|
|
5
5
|
* Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
|
|
6
6
|
*
|
|
7
|
+
* @slot indeterminate - The slot for a custom indeterminate indicator
|
|
8
|
+
* @csspart progress - Represents the progress element
|
|
9
|
+
* @csspart determinate - The determinate indicator
|
|
10
|
+
* @csspart indeterminate - The indeterminate indicator
|
|
11
|
+
*
|
|
7
12
|
* @public
|
|
8
13
|
*/
|
|
9
14
|
class BaseProgress extends FoundationElement {
|
package/shared/button.js
CHANGED
|
@@ -21,6 +21,12 @@ class FormAssociatedButton extends FormAssociated(_Button) {
|
|
|
21
21
|
* A Button Custom HTML Element.
|
|
22
22
|
* Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element }.
|
|
23
23
|
*
|
|
24
|
+
* @slot start - Content which can be provided before the button content
|
|
25
|
+
* @slot end - Content which can be provided after the button content
|
|
26
|
+
* @slot - The default slot for button content
|
|
27
|
+
* @csspart control - The button element
|
|
28
|
+
* @csspart content - The element wrapping button content
|
|
29
|
+
*
|
|
24
30
|
* @public
|
|
25
31
|
*/
|
|
26
32
|
class Button extends FormAssociatedButton {
|
|
@@ -72,7 +78,8 @@ class Button extends FormAssociatedButton {
|
|
|
72
78
|
var _a;
|
|
73
79
|
// Check to see if delegatesFocus is supported
|
|
74
80
|
if (window.ShadowRoot &&
|
|
75
|
-
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
81
|
+
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
82
|
+
((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
|
|
76
83
|
this.focus = () => {
|
|
77
84
|
this.control.focus();
|
|
78
85
|
};
|
package/shared/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as descriptors,
|
|
2
|
-
import { o as objectKeys$1 } from './
|
|
1
|
+
import { d as descriptors, y as functionUncurryThis, m as functionCall, f as fails$1, g as toObject$1, M as indexedObject, N as objectGetOwnPropertySymbols, O as objectPropertyIsEnumerable, _ as _export } from './export.js';
|
|
2
|
+
import { o as objectKeys$1 } from './object-keys.js';
|
|
3
3
|
|
|
4
4
|
var DESCRIPTORS = descriptors;
|
|
5
5
|
var uncurryThis = functionUncurryThis;
|
|
@@ -11,9 +11,9 @@ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
|
11
11
|
var toObject = toObject$1;
|
|
12
12
|
var IndexedObject = indexedObject;
|
|
13
13
|
|
|
14
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
|
14
|
+
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
15
15
|
var $assign = Object.assign;
|
|
16
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
16
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
17
17
|
var defineProperty = Object.defineProperty;
|
|
18
18
|
var concat = uncurryThis([].concat);
|
|
19
19
|
|
|
@@ -33,7 +33,7 @@ var objectAssign = !$assign || fails(function () {
|
|
|
33
33
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
34
34
|
var A = {};
|
|
35
35
|
var B = {};
|
|
36
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
|
36
|
+
// eslint-disable-next-line es-x/no-symbol -- safe
|
|
37
37
|
var symbol = Symbol();
|
|
38
38
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
39
39
|
A[symbol] = 7;
|
|
@@ -63,7 +63,7 @@ var assign = objectAssign;
|
|
|
63
63
|
|
|
64
64
|
// `Object.assign` method
|
|
65
65
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
66
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
67
|
-
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
66
|
+
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
|
67
|
+
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
68
68
|
assign: assign
|
|
69
69
|
});
|