@vonage/vivid 3.2.0 → 3.4.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 +366 -1
- package/data-grid/index.js +7 -1047
- package/dialog/index.js +1 -1
- package/divider/index.js +1 -1
- package/fab/index.js +1 -1
- package/header/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +33 -31
- package/layout/index.js +1 -1
- package/lib/accordion/definition.d.ts +1 -0
- package/lib/action-group/action-group.d.ts +1 -2
- package/lib/action-group/definition.d.ts +1 -0
- package/lib/avatar/avatar.d.ts +2 -3
- package/lib/avatar/definition.d.ts +1 -0
- package/lib/badge/badge.d.ts +3 -4
- package/lib/badge/definition.d.ts +1 -0
- package/lib/banner/definition.d.ts +1 -0
- package/lib/button/button.d.ts +3 -4
- package/lib/button/definition.d.ts +1 -0
- package/lib/calendar-event/calendar-event.d.ts +2 -3
- package/lib/calendar-event/definition.d.ts +1 -0
- package/lib/combobox/combobox.d.ts +1 -2
- package/lib/combobox/definition.d.ts +1 -0
- package/lib/components.d.ts +1 -0
- package/lib/dialog/definition.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +1 -2
- package/lib/fab/definition.d.ts +1 -0
- package/lib/fab/fab.d.ts +1 -2
- package/lib/icon/definition.d.ts +1 -0
- package/lib/icon/icon.d.ts +1 -2
- package/lib/layout/definition.d.ts +1 -0
- package/lib/layout/layout.d.ts +3 -4
- package/lib/listbox/definition.d.ts +1 -0
- package/lib/menu/definition.d.ts +1 -0
- package/lib/note/definition.d.ts +1 -0
- package/lib/number-field/definition.d.ts +1 -0
- package/lib/number-field/number-field.d.ts +2 -3
- package/lib/option/option.d.ts +3 -0
- package/lib/popup/definition.d.ts +2 -0
- package/lib/progress/definition.d.ts +1 -0
- package/lib/progress-ring/definition.d.ts +1 -0
- package/lib/select/definition.d.ts +1 -0
- package/lib/select/select.d.ts +3 -3
- package/lib/switch/definition.d.ts +1 -0
- package/lib/text-area/definition.d.ts +1 -0
- package/lib/text-area/text-area.d.ts +1 -2
- package/lib/text-field/definition.d.ts +1 -0
- package/lib/text-field/text-field.d.ts +2 -3
- package/listbox/index.js +1 -1
- package/menu/index.js +2 -2
- package/menu-item/index.js +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +1 -1
- package/number-field/index.js +2 -2
- package/package.json +1 -1
- package/progress/index.js +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.js +1 -1
- package/select/index.js +1 -1
- package/shared/definition.js +1 -1
- package/shared/definition11.js +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition13.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition16.js +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition18.js +2 -2
- package/shared/definition19.js +11 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +1035 -203
- package/shared/definition21.js +206 -67
- package/shared/definition22.js +68 -77
- package/shared/definition23.js +76 -47
- package/shared/definition24.js +46 -32
- package/shared/definition25.js +35 -49
- package/shared/definition26.js +48 -338
- package/shared/definition27.js +267 -282
- package/shared/definition28.js +356 -14
- package/shared/definition29.js +13 -67
- package/shared/definition30.js +65 -21
- package/shared/definition31.js +21 -39
- package/shared/definition32.js +31 -432
- package/shared/definition33.js +432 -76
- package/shared/definition34.js +76 -59
- package/shared/definition35.js +67 -35
- package/shared/definition36.js +31 -422
- package/shared/definition37.js +357 -555
- package/shared/definition38.js +624 -74
- package/shared/definition39.js +70 -573
- package/shared/definition4.js +1 -1
- package/shared/definition40.js +527 -81
- package/shared/definition41.js +127 -47
- package/shared/definition42.js +51 -16
- package/shared/definition43.js +17 -425
- package/shared/definition44.js +367 -209
- package/shared/definition45.js +248 -85
- package/shared/definition46.js +110 -68
- package/shared/definition47.js +65 -111
- package/shared/definition48.js +68 -440
- package/shared/definition49.js +305 -0
- package/shared/definition5.js +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.js +1 -1
- package/shared/definition9.js +1 -1
- package/shared/enums.js +1 -1
- package/shared/form-elements.js +1 -1
- package/shared/patterns/form-elements/form-elements.d.ts +2 -2
- package/shared/text-field.js +1 -1
- package/shared/tree-item.js +151 -0
- package/side-drawer/index.js +1 -1
- package/slider/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/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/switch/index.js +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.js +3 -3
- package/text-area/index.js +1 -1
- package/text-field/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/index.js +3 -72
- package/tree-view/index.js +2 -1
- package/vivid.api.json +4526 -336
package/shared/definition34.js
CHANGED
|
@@ -1,13 +1,49 @@
|
|
|
1
|
-
import { _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
1
|
+
import { c as classofRaw, G as _export, k as functionUncurryThis, _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { B as BaseProgress } from './base-progress.js';
|
|
3
3
|
import { w as when } from './when.js';
|
|
4
4
|
import { c as classNames } from './class-names.js';
|
|
5
5
|
|
|
6
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
6
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 16 Mar 2023 08:36:16 GMT\n */\n.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-500);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-information-200), var(--vvd-color-cta-600));\n}\n\n.progress {\n position: relative;\n display: flex;\n overflow: hidden;\n align-items: center;\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n inline-size: 100%;\n /* Shape */\n}\n.base:not(.shape-sharp) .progress {\n border-radius: 3px;\n}\n\n.indeterminate {\n display: flex;\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n inline-size: 100%;\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n.paused .determinate {\n background-color: var(--vvd-color-neutral-300);\n}\n\n.indicator-1 {\n animation: indeterminate-1 2s infinite;\n inline-size: 30%;\n}\n\n.indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.indicator-1,\n.indicator-2 {\n position: absolute;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n opacity: 0;\n}\n.connotation-pacific .indicator-1,\n.connotation-pacific .indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n.paused .indicator-1,\n.paused .indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n.reverse .indicator-1,\n.reverse .indicator-2 {\n animation-direction: reverse;\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}";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var classof = classofRaw;
|
|
9
|
+
|
|
10
|
+
// `IsArray` abstract operation
|
|
11
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
12
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
13
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
14
|
+
return classof(argument) == 'Array';
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var $ = _export;
|
|
18
|
+
var uncurryThis = functionUncurryThis;
|
|
19
|
+
var isArray = isArray$1;
|
|
20
|
+
|
|
21
|
+
var nativeReverse = uncurryThis([].reverse);
|
|
22
|
+
var test = [1, 2];
|
|
23
|
+
|
|
24
|
+
// `Array.prototype.reverse` method
|
|
25
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
26
|
+
// fix for Safari 12.0 bug
|
|
27
|
+
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
28
|
+
$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
29
|
+
reverse: function reverse() {
|
|
30
|
+
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
31
|
+
if (isArray(this)) this.length = this.length;
|
|
32
|
+
return nativeReverse(this);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
class Progress extends BaseProgress {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.reverse = false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "shape", void 0);
|
|
43
|
+
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "connotation", void 0);
|
|
44
|
+
__decorate([attr({
|
|
45
|
+
mode: 'boolean'
|
|
46
|
+
}), __metadata("design:type", Object)], Progress.prototype, "reverse", void 0);
|
|
11
47
|
|
|
12
48
|
let _2 = t => t,
|
|
13
49
|
_t,
|
|
@@ -15,63 +51,44 @@ let _2 = t => t,
|
|
|
15
51
|
_t3;
|
|
16
52
|
const getClasses = ({
|
|
17
53
|
connotation,
|
|
18
|
-
|
|
54
|
+
shape,
|
|
55
|
+
reverse,
|
|
19
56
|
paused
|
|
20
|
-
}) => classNames('base', [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
57
|
+
}) => classNames('base', [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ['reverse', Boolean(reverse)], ['paused', Boolean(paused)]);
|
|
58
|
+
function determinate() {
|
|
59
|
+
return html(_t || (_t = _2`
|
|
60
|
+
<span class="determinate" style="width: ${0}%"></span>`), x => x.percentComplete);
|
|
61
|
+
}
|
|
62
|
+
function indeterminate() {
|
|
63
|
+
return html(_t2 || (_t2 = _2`
|
|
64
|
+
<span class="indeterminate" name="indeterminate">
|
|
65
|
+
<span class="indicator-1"></span>
|
|
66
|
+
<span class="indicator-2"></span>
|
|
67
|
+
</span>`));
|
|
68
|
+
}
|
|
69
|
+
const ProgressTemplate = _ => {
|
|
70
|
+
return html(_t3 || (_t3 = _2`
|
|
71
|
+
<div
|
|
72
|
+
role="progressbar"
|
|
73
|
+
aria-valuenow="${0}"
|
|
74
|
+
aria-valuemin="${0}"
|
|
75
|
+
aria-valuemax="${0}"
|
|
76
|
+
class="${0}"
|
|
29
77
|
>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
>
|
|
38
|
-
<circle
|
|
39
|
-
class="background"
|
|
40
|
-
cx="8px"
|
|
41
|
-
cy="8px"
|
|
42
|
-
r="7px"
|
|
43
|
-
></circle>
|
|
44
|
-
<circle
|
|
45
|
-
class="determinate"
|
|
46
|
-
style="stroke-dasharray: ${0}px ${0}px"
|
|
47
|
-
cx="8px"
|
|
48
|
-
cy="8px"
|
|
49
|
-
r="7px"
|
|
50
|
-
></circle>
|
|
51
|
-
</svg>
|
|
52
|
-
`), x => progressSegments * x.percentComplete / 100, progressSegments)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
|
|
53
|
-
<svg class="progress" viewBox="0 0 16 16">
|
|
54
|
-
<circle
|
|
55
|
-
class="background"
|
|
56
|
-
cx="8px"
|
|
57
|
-
cy="8px"
|
|
58
|
-
r="7px"
|
|
59
|
-
></circle>
|
|
60
|
-
<circle
|
|
61
|
-
class="indeterminate-indicator-1"
|
|
62
|
-
cx="8px"
|
|
63
|
-
cy="8px"
|
|
64
|
-
r="7px"
|
|
65
|
-
></circle>
|
|
66
|
-
</svg>
|
|
67
|
-
`))));
|
|
78
|
+
<div class="progress">
|
|
79
|
+
${0}
|
|
80
|
+
${0}
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
`), x => x.value, x => x.min, x => x.max, getClasses, when(x => typeof x.value === 'number', determinate()), when(x => typeof x.value !== 'number', indeterminate()));
|
|
84
|
+
};
|
|
68
85
|
|
|
69
|
-
const
|
|
70
|
-
baseName: 'progress
|
|
71
|
-
template:
|
|
86
|
+
const progressDefinition = Progress.compose({
|
|
87
|
+
baseName: 'progress',
|
|
88
|
+
template: ProgressTemplate,
|
|
72
89
|
styles: css_248z
|
|
73
90
|
});
|
|
74
|
-
const
|
|
75
|
-
const
|
|
91
|
+
const progressRegistries = [progressDefinition()];
|
|
92
|
+
const registerProgress = registerFactory(progressRegistries);
|
|
76
93
|
|
|
77
|
-
export {
|
|
94
|
+
export { progressRegistries as a, progressDefinition as p, registerProgress as r };
|
package/shared/definition35.js
CHANGED
|
@@ -1,45 +1,77 @@
|
|
|
1
|
-
import { h as html, r as registerFactory } from './index.js';
|
|
2
|
-
import {
|
|
3
|
-
import { R as Radio } from './radio.js';
|
|
4
|
-
import { f as focusTemplateFactory } from './focus2.js';
|
|
1
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, r as registerFactory } from './index.js';
|
|
2
|
+
import { B as BaseProgress } from './base-progress.js';
|
|
5
3
|
import { w as when } from './when.js';
|
|
6
4
|
import { c as classNames } from './class-names.js';
|
|
7
5
|
|
|
8
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on
|
|
6
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Thu, 16 Mar 2023 08:36:16 GMT\n */\n.base {\n align-items: center;\n block-size: var(--_size);\n color: var(--_appearance-color-text);\n inline-size: var(--_size);\n outline: none;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base.size--5 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20));\n}\n.base.size--4 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 16));\n}\n.base.size--3 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 12));\n}\n.base.size--2 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 8));\n}\n.base.size--1 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 4));\n}\n.base.size-1 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 4));\n}\n.base.size-2 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n}\n.base.size-3 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 12));\n}\n.base.size-4 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 16));\n}\n.base.size-5 {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 20));\n}\n.base:not(.size--5, .size--4, .size--3, .size--2, .size--1, .size-1, .size-2, .size-3, .size-4, .size-5) {\n --_size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 1px;\n}\n\n.determinate {\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 1px;\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: 1px;\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}";
|
|
9
7
|
|
|
10
|
-
|
|
8
|
+
class ProgressRing extends BaseProgress {}
|
|
9
|
+
__decorate([attr, __metadata("design:type", String)], ProgressRing.prototype, "connotation", void 0);
|
|
10
|
+
__decorate([attr, __metadata("design:type", Number)], ProgressRing.prototype, "size", void 0);
|
|
11
|
+
|
|
12
|
+
let _2 = t => t,
|
|
11
13
|
_t,
|
|
12
|
-
_t2
|
|
14
|
+
_t2,
|
|
15
|
+
_t3;
|
|
13
16
|
const getClasses = ({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}) => classNames('base', ['
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
connotation,
|
|
18
|
+
size,
|
|
19
|
+
paused
|
|
20
|
+
}) => classNames('base', ['disabled', !!paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
|
|
21
|
+
const progressSegments = 44;
|
|
22
|
+
const ProgressRingTemplate = _ => html(_t || (_t = _2`
|
|
23
|
+
<div
|
|
24
|
+
role="progressbar"
|
|
25
|
+
aria-valuenow="${0}"
|
|
26
|
+
aria-valuemin="${0}"
|
|
27
|
+
aria-valuemax="${0}"
|
|
28
|
+
class="${0} ${0}"
|
|
29
|
+
>
|
|
30
|
+
${0}
|
|
31
|
+
${0}
|
|
32
|
+
</div>
|
|
33
|
+
`), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
|
|
34
|
+
<svg
|
|
35
|
+
class="progress"
|
|
36
|
+
viewBox="0 0 16 16"
|
|
37
|
+
>
|
|
38
|
+
<circle
|
|
39
|
+
class="background"
|
|
40
|
+
cx="8px"
|
|
41
|
+
cy="8px"
|
|
42
|
+
r="7px"
|
|
43
|
+
></circle>
|
|
44
|
+
<circle
|
|
45
|
+
class="determinate"
|
|
46
|
+
style="stroke-dasharray: ${0}px ${0}px"
|
|
47
|
+
cx="8px"
|
|
48
|
+
cy="8px"
|
|
49
|
+
r="7px"
|
|
50
|
+
></circle>
|
|
51
|
+
</svg>
|
|
52
|
+
`), x => progressSegments * x.percentComplete / 100, progressSegments)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
|
|
53
|
+
<svg class="progress" viewBox="0 0 16 16">
|
|
54
|
+
<circle
|
|
55
|
+
class="background"
|
|
56
|
+
cx="8px"
|
|
57
|
+
cy="8px"
|
|
58
|
+
r="7px"
|
|
59
|
+
></circle>
|
|
60
|
+
<circle
|
|
61
|
+
class="indeterminate-indicator-1"
|
|
62
|
+
cx="8px"
|
|
63
|
+
cy="8px"
|
|
64
|
+
r="7px"
|
|
65
|
+
></circle>
|
|
66
|
+
</svg>
|
|
67
|
+
`))));
|
|
36
68
|
|
|
37
|
-
const
|
|
38
|
-
baseName: '
|
|
39
|
-
template:
|
|
69
|
+
const progressRingDefinition = ProgressRing.compose({
|
|
70
|
+
baseName: 'progress-ring',
|
|
71
|
+
template: ProgressRingTemplate,
|
|
40
72
|
styles: css_248z
|
|
41
73
|
});
|
|
42
|
-
const
|
|
43
|
-
const
|
|
74
|
+
const progressRingRegistries = [progressRingDefinition()];
|
|
75
|
+
const registerProgressRing = registerFactory(progressRingRegistries);
|
|
44
76
|
|
|
45
|
-
export {
|
|
77
|
+
export { progressRingRegistries as a, progressRingDefinition as p, registerProgressRing as r };
|