@vonage/vivid 4.14.0 → 4.14.2
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 +152 -197
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.template.d.ts +1 -1
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/radio/radio.form-associated.d.ts +2 -0
- package/lib/tabs/tabs.d.ts +0 -5
- package/lib/text-anchor/text-anchor.d.ts +2 -2
- package/lib/tree-item/tree-item.d.ts +2 -2
- package/lib/tree-view/tree-view.d.ts +2 -2
- package/package.json +1 -1
- package/shared/affix.cjs +8 -8
- package/shared/affix.js +2 -2
- package/shared/anchor.cjs +10 -10
- package/shared/anchor.js +1 -1
- package/shared/anchored.cjs +6 -6
- package/shared/anchored.js +1 -1
- package/shared/apply-mixins.cjs +3 -3
- package/shared/apply-mixins.js +1 -1
- package/shared/apply-mixins2.cjs +3 -3
- package/shared/apply-mixins2.js +1 -1
- package/shared/applyMixinsWithObservables.cjs +3 -3
- package/shared/applyMixinsWithObservables.js +1 -1
- package/shared/aria-global.cjs +20 -20
- package/shared/aria-global.js +1 -1
- package/shared/base-progress.cjs +7 -8
- package/shared/base-progress.js +2 -3
- package/shared/breadcrumb-item.cjs +2 -3
- package/shared/breadcrumb-item.js +1 -2
- package/shared/button.cjs +10 -11
- package/shared/button.js +1 -2
- package/shared/calendar-event.cjs +7 -8
- package/shared/calendar-event.js +1 -2
- package/shared/children.cjs +2 -2
- package/shared/children.js +1 -1
- package/shared/definition.cjs +14 -15
- package/shared/definition.js +2 -3
- package/shared/definition10.cjs +5 -6
- package/shared/definition10.js +1 -2
- package/shared/definition11.cjs +29 -29
- package/shared/definition11.js +2 -2
- package/shared/definition12.cjs +6 -6
- package/shared/definition12.js +1 -1
- package/shared/definition13.cjs +13 -14
- package/shared/definition13.js +1 -2
- package/shared/definition14.cjs +23 -24
- package/shared/definition14.js +1 -2
- package/shared/definition15.cjs +15 -16
- package/shared/definition15.js +1 -2
- package/shared/definition16.cjs +21 -21
- package/shared/definition16.js +5 -5
- package/shared/definition17.cjs +62 -61
- package/shared/definition17.js +10 -9
- package/shared/definition18.cjs +4 -4
- package/shared/definition18.js +1 -1
- package/shared/definition19.cjs +12 -12
- package/shared/definition19.js +1 -1
- package/shared/definition2.cjs +6 -7
- package/shared/definition2.js +1 -2
- package/shared/definition20.cjs +20 -21
- package/shared/definition20.js +1 -2
- package/shared/definition21.cjs +27 -28
- package/shared/definition21.js +3 -4
- package/shared/definition22.cjs +7 -7
- package/shared/definition22.js +3 -3
- package/shared/definition23.cjs +10 -11
- package/shared/definition23.js +1 -2
- package/shared/definition24.cjs +8 -8
- package/shared/definition24.js +3 -3
- package/shared/definition25.cjs +13 -14
- package/shared/definition25.js +1 -2
- package/shared/definition26.cjs +5 -6
- package/shared/definition26.js +1 -2
- package/shared/definition27.cjs +12 -13
- package/shared/definition27.js +2 -3
- package/shared/definition28.cjs +9 -10
- package/shared/definition28.js +2 -3
- package/shared/definition29.cjs +44 -45
- package/shared/definition29.js +3 -4
- package/shared/definition3.cjs +8 -9
- package/shared/definition3.js +1 -2
- package/shared/definition30.cjs +9 -10
- package/shared/definition30.js +2 -3
- package/shared/definition31.cjs +5 -5
- package/shared/definition31.js +2 -2
- package/shared/definition32.cjs +3 -4
- package/shared/definition32.js +1 -2
- package/shared/definition33.cjs +6 -7
- package/shared/definition33.js +2 -3
- package/shared/definition34.cjs +112 -45
- package/shared/definition34.js +73 -6
- package/shared/definition35.cjs +9 -209
- package/shared/definition35.js +4 -202
- package/shared/definition36.cjs +15 -16
- package/shared/definition36.js +1 -2
- package/shared/definition37.cjs +9 -9
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +10 -10
- package/shared/definition38.js +1 -1
- package/shared/definition39.cjs +12 -13
- package/shared/definition39.js +1 -2
- package/shared/definition4.cjs +19 -20
- package/shared/definition4.js +2 -3
- package/shared/definition40.cjs +61 -13
- package/shared/definition40.js +52 -4
- package/shared/definition41.cjs +29 -30
- package/shared/definition41.js +1 -2
- package/shared/definition42.cjs +52 -53
- package/shared/definition42.js +3 -4
- package/shared/definition43.cjs +40 -40
- package/shared/definition43.js +6 -6
- package/shared/definition44.cjs +14 -15
- package/shared/definition44.js +1 -2
- package/shared/definition45.cjs +9 -10
- package/shared/definition45.js +1 -2
- package/shared/definition46.cjs +26 -27
- package/shared/definition46.js +1 -2
- package/shared/definition47.cjs +17 -18
- package/shared/definition47.js +2 -3
- package/shared/definition48.cjs +9 -10
- package/shared/definition48.js +1 -2
- package/shared/definition49.cjs +3 -4
- package/shared/definition49.js +1 -2
- package/shared/definition5.cjs +30 -31
- package/shared/definition5.js +1 -2
- package/shared/definition50.cjs +12 -13
- package/shared/definition50.js +2 -3
- package/shared/definition51.cjs +109 -72
- package/shared/definition51.js +78 -41
- package/shared/definition52.cjs +4 -5
- package/shared/definition52.js +1 -2
- package/shared/definition53.cjs +15 -16
- package/shared/definition53.js +2 -3
- package/shared/definition54.cjs +20 -21
- package/shared/definition54.js +1 -2
- package/shared/definition55.cjs +5 -5
- package/shared/definition55.js +1 -1
- package/shared/definition56.cjs +18 -19
- package/shared/definition56.js +1 -2
- package/shared/definition57.cjs +10 -11
- package/shared/definition57.js +1 -2
- package/shared/definition58.cjs +7 -8
- package/shared/definition58.js +1 -2
- package/shared/definition59.cjs +16 -17
- package/shared/definition59.js +3 -4
- package/shared/definition6.cjs +11 -12
- package/shared/definition6.js +1 -2
- package/shared/definition60.cjs +9 -10
- package/shared/definition60.js +2 -3
- package/shared/definition61.cjs +27 -30
- package/shared/definition61.js +17 -20
- package/shared/definition62.cjs +12 -9
- package/shared/definition62.js +8 -5
- package/shared/definition63.cjs +13 -14
- package/shared/definition63.js +1 -2
- package/shared/definition7.cjs +9 -10
- package/shared/definition7.js +2 -3
- package/shared/definition8.cjs +14 -15
- package/shared/definition8.js +2 -3
- package/shared/definition9.cjs +7 -7
- package/shared/definition9.js +1 -1
- package/shared/form-associated.cjs +14 -14
- package/shared/form-associated.js +1 -1
- package/shared/form-associated2.cjs +10 -10
- package/shared/form-associated2.js +1 -1
- package/shared/form-elements.cjs +13 -13
- package/shared/form-elements.js +1 -1
- package/shared/foundation/progress/base-progress.d.ts +2 -2
- package/shared/foundation-element.cjs +11 -11
- package/shared/foundation-element.js +1 -1
- package/shared/key-codes2.cjs +0 -56
- package/shared/key-codes2.js +1 -53
- package/shared/listbox.cjs +15 -16
- package/shared/listbox.js +2 -3
- package/shared/localized.cjs +2 -2
- package/shared/localized.js +1 -1
- package/shared/option.cjs +205 -0
- package/shared/option.js +202 -0
- package/shared/presentationDate.cjs +42 -43
- package/shared/presentationDate.js +1 -2
- package/shared/ref.cjs +2 -2
- package/shared/ref.js +1 -1
- package/shared/repeat.cjs +15 -15
- package/shared/repeat.js +1 -1
- package/shared/slider.template.cjs +4 -4
- package/shared/slider.template.js +1 -1
- package/shared/slotted.cjs +4 -4
- package/shared/slotted.js +1 -1
- package/shared/start-end.cjs +52 -0
- package/shared/start-end.js +50 -0
- package/shared/text-anchor.cjs +5 -6
- package/shared/text-anchor.js +3 -4
- package/shared/text-anchor.template.cjs +2 -2
- package/shared/text-anchor.template.js +1 -1
- package/shared/text-field2.cjs +23 -24
- package/shared/text-field2.js +2 -3
- package/shared/vivid-element.cjs +2610 -2
- package/shared/vivid-element.js +2591 -2
- package/styles/core/all.css +40 -1
- package/styles/core/theme.css +40 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +25 -4
- package/styles/tokens/theme-light.css +25 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/text-anchor/index.cjs +3 -3
- package/text-anchor/index.js +1 -1
- package/lib/listbox/definition.d.ts +0 -2
- package/lib/listbox/listbox.d.ts +0 -14
- package/lib/listbox/listbox.template.d.ts +0 -2
- package/listbox/index.cjs +0 -54
- package/listbox/index.js +0 -52
- package/shared/aria-global2.cjs +0 -75
- package/shared/aria-global2.js +0 -73
- package/shared/defineVividComponent.cjs +0 -2612
- package/shared/defineVividComponent.js +0 -2592
- package/shared/listbox2.cjs +0 -1268
- package/shared/listbox2.js +0 -1265
- package/shared/strings2.cjs +0 -37
- package/shared/strings2.js +0 -33
package/shared/anchor.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const ariaGlobal = require('./aria-global.cjs');
|
|
4
4
|
const applyMixins = require('./apply-mixins.cjs');
|
|
5
|
-
const
|
|
5
|
+
const vividElement = require('./vivid-element.cjs');
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -17,41 +17,41 @@ class Anchor {
|
|
|
17
17
|
}
|
|
18
18
|
// @ts-expect-error Type is incorrectly non-optional
|
|
19
19
|
__decorateClass([
|
|
20
|
-
|
|
20
|
+
vividElement.attr
|
|
21
21
|
], Anchor.prototype, "download");
|
|
22
22
|
// @ts-expect-error Type is incorrectly non-optional
|
|
23
23
|
__decorateClass([
|
|
24
|
-
|
|
24
|
+
vividElement.attr
|
|
25
25
|
], Anchor.prototype, "href");
|
|
26
26
|
// @ts-expect-error Type is incorrectly non-optional
|
|
27
27
|
__decorateClass([
|
|
28
|
-
|
|
28
|
+
vividElement.attr
|
|
29
29
|
], Anchor.prototype, "hreflang");
|
|
30
30
|
// @ts-expect-error Type is incorrectly non-optional
|
|
31
31
|
__decorateClass([
|
|
32
|
-
|
|
32
|
+
vividElement.attr
|
|
33
33
|
], Anchor.prototype, "ping");
|
|
34
34
|
// @ts-expect-error Type is incorrectly non-optional
|
|
35
35
|
__decorateClass([
|
|
36
|
-
|
|
36
|
+
vividElement.attr
|
|
37
37
|
], Anchor.prototype, "referrerpolicy");
|
|
38
38
|
// @ts-expect-error Type is incorrectly non-optional
|
|
39
39
|
__decorateClass([
|
|
40
|
-
|
|
40
|
+
vividElement.attr
|
|
41
41
|
], Anchor.prototype, "rel");
|
|
42
42
|
// @ts-expect-error Type is incorrectly non-optional
|
|
43
43
|
__decorateClass([
|
|
44
|
-
|
|
44
|
+
vividElement.attr
|
|
45
45
|
], Anchor.prototype, "target");
|
|
46
46
|
// @ts-expect-error Type is incorrectly non-optional
|
|
47
47
|
__decorateClass([
|
|
48
|
-
|
|
48
|
+
vividElement.attr
|
|
49
49
|
], Anchor.prototype, "type");
|
|
50
50
|
class DelegatesARIALink {
|
|
51
51
|
}
|
|
52
52
|
// @ts-expect-error Type is incorrectly non-optional
|
|
53
53
|
__decorateClass([
|
|
54
|
-
|
|
54
|
+
vividElement.attr({ attribute: "aria-expanded" })
|
|
55
55
|
], DelegatesARIALink.prototype, "ariaExpanded");
|
|
56
56
|
applyMixins.applyMixins(DelegatesARIALink, ariaGlobal.ARIAGlobalStatesAndProperties);
|
|
57
57
|
applyMixins.applyMixins(Anchor, DelegatesARIALink);
|
package/shared/anchor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
2
2
|
import { a as applyMixins } from './apply-mixins.js';
|
|
3
|
-
import { a as attr } from './
|
|
3
|
+
import { a as attr } from './vivid-element.js';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
package/shared/anchored.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
const slotted = require('./slotted.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -27,7 +27,7 @@ function anchored(constructor) {
|
|
|
27
27
|
const isOccupied = Boolean(
|
|
28
28
|
this._slottedAnchor && this._slottedAnchor.length > 0
|
|
29
29
|
);
|
|
30
|
-
|
|
30
|
+
vividElement.DOM.setBooleanAttribute(
|
|
31
31
|
this,
|
|
32
32
|
"slotted-anchor",
|
|
33
33
|
isOccupied
|
|
@@ -79,17 +79,17 @@ function anchored(constructor) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
__decorateClass([
|
|
82
|
-
|
|
82
|
+
vividElement.attr
|
|
83
83
|
], Decorated.prototype, "anchor");
|
|
84
84
|
__decorateClass([
|
|
85
|
-
|
|
85
|
+
vividElement.observable
|
|
86
86
|
], Decorated.prototype, "_slottedAnchor");
|
|
87
87
|
__decorateClass([
|
|
88
|
-
|
|
88
|
+
vividElement.observable
|
|
89
89
|
], Decorated.prototype, "_anchorEl");
|
|
90
90
|
return Decorated;
|
|
91
91
|
}
|
|
92
|
-
const anchorSlotTemplateFactory = () =>
|
|
92
|
+
const anchorSlotTemplateFactory = () => vividElement.html`<slot name="anchor" ${slotted.slotted("_slottedAnchor")}></slot>`;
|
|
93
93
|
|
|
94
94
|
exports.anchorSlotTemplateFactory = anchorSlotTemplateFactory;
|
|
95
95
|
exports.anchored = anchored;
|
package/shared/anchored.js
CHANGED
package/shared/apply-mixins.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
|
|
5
5
|
function applyMixins(derivedCtor, ...baseCtors) {
|
|
6
|
-
const derivedAttributes =
|
|
6
|
+
const derivedAttributes = vividElement.AttributeConfiguration.locate(derivedCtor);
|
|
7
7
|
baseCtors.forEach((baseCtor) => {
|
|
8
8
|
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
|
|
9
9
|
if (name !== "constructor") {
|
|
@@ -15,7 +15,7 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
const baseAttributes =
|
|
18
|
+
const baseAttributes = vividElement.AttributeConfiguration.locate(baseCtor);
|
|
19
19
|
baseAttributes.forEach((x) => derivedAttributes.push(x));
|
|
20
20
|
});
|
|
21
21
|
}
|
package/shared/apply-mixins.js
CHANGED
package/shared/apply-mixins2.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Apply mixins to a constructor.
|
|
@@ -8,7 +8,7 @@ const defineVividComponent = require('./defineVividComponent.cjs');
|
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
function applyMixins(derivedCtor, ...baseCtors) {
|
|
11
|
-
const derivedAttributes =
|
|
11
|
+
const derivedAttributes = vividElement.AttributeConfiguration.locate(derivedCtor);
|
|
12
12
|
baseCtors.forEach(baseCtor => {
|
|
13
13
|
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
|
|
14
14
|
if (name !== "constructor") {
|
|
@@ -17,7 +17,7 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
17
17
|
Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const baseAttributes =
|
|
20
|
+
const baseAttributes = vividElement.AttributeConfiguration.locate(baseCtor);
|
|
21
21
|
baseAttributes.forEach(x => derivedAttributes.push(x));
|
|
22
22
|
});
|
|
23
23
|
}
|
package/shared/apply-mixins2.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const applyMixins = require('./apply-mixins2.cjs');
|
|
4
|
-
const
|
|
4
|
+
const vividElement = require('./vivid-element.cjs');
|
|
5
5
|
|
|
6
6
|
function applyMixinsWithObservables(derivedCtor, ...baseCtors) {
|
|
7
7
|
applyMixins.applyMixins(derivedCtor, ...baseCtors);
|
|
8
8
|
baseCtors.forEach((baseCtor) => {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
vividElement.Observable.getAccessors(baseCtor.prototype).forEach((accessor) => {
|
|
10
|
+
vividElement.Observable.defineProperty(derivedCtor.prototype, accessor.name);
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as applyMixins } from './apply-mixins2.js';
|
|
2
|
-
import { O as Observable } from './
|
|
2
|
+
import { O as Observable } from './vivid-element.js';
|
|
3
3
|
|
|
4
4
|
function applyMixinsWithObservables(derivedCtor, ...baseCtors) {
|
|
5
5
|
applyMixins(derivedCtor, ...baseCtors);
|
package/shared/aria-global.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -15,79 +15,79 @@ class ARIAGlobalStatesAndProperties {
|
|
|
15
15
|
}
|
|
16
16
|
// @ts-expect-error Type is incorrectly non-optional
|
|
17
17
|
__decorateClass([
|
|
18
|
-
|
|
18
|
+
vividElement.attr({ attribute: "aria-atomic" })
|
|
19
19
|
], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic");
|
|
20
20
|
// @ts-expect-error Type is incorrectly non-optional
|
|
21
21
|
__decorateClass([
|
|
22
|
-
|
|
22
|
+
vividElement.attr({ attribute: "aria-busy" })
|
|
23
23
|
], ARIAGlobalStatesAndProperties.prototype, "ariaBusy");
|
|
24
24
|
// @ts-expect-error Type is incorrectly non-optional
|
|
25
25
|
__decorateClass([
|
|
26
|
-
|
|
26
|
+
vividElement.attr({ attribute: "aria-controls" })
|
|
27
27
|
], ARIAGlobalStatesAndProperties.prototype, "ariaControls");
|
|
28
28
|
// @ts-expect-error Type is incorrectly non-optional
|
|
29
29
|
__decorateClass([
|
|
30
|
-
|
|
30
|
+
vividElement.attr({ attribute: "aria-current" })
|
|
31
31
|
], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent");
|
|
32
32
|
// @ts-expect-error Type is incorrectly non-optional
|
|
33
33
|
__decorateClass([
|
|
34
|
-
|
|
34
|
+
vividElement.attr({ attribute: "aria-describedby" })
|
|
35
35
|
], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby");
|
|
36
36
|
// @ts-expect-error Type is incorrectly non-optional
|
|
37
37
|
__decorateClass([
|
|
38
|
-
|
|
38
|
+
vividElement.attr({ attribute: "aria-details" })
|
|
39
39
|
], ARIAGlobalStatesAndProperties.prototype, "ariaDetails");
|
|
40
40
|
// @ts-expect-error Type is incorrectly non-optional
|
|
41
41
|
__decorateClass([
|
|
42
|
-
|
|
42
|
+
vividElement.attr({ attribute: "aria-disabled" })
|
|
43
43
|
], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled");
|
|
44
44
|
// @ts-expect-error Type is incorrectly non-optional
|
|
45
45
|
__decorateClass([
|
|
46
|
-
|
|
46
|
+
vividElement.attr({ attribute: "aria-errormessage" })
|
|
47
47
|
], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage");
|
|
48
48
|
// @ts-expect-error Type is incorrectly non-optional
|
|
49
49
|
__decorateClass([
|
|
50
|
-
|
|
50
|
+
vividElement.attr({ attribute: "aria-flowto" })
|
|
51
51
|
], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto");
|
|
52
52
|
// @ts-expect-error Type is incorrectly non-optional
|
|
53
53
|
__decorateClass([
|
|
54
|
-
|
|
54
|
+
vividElement.attr({ attribute: "aria-haspopup" })
|
|
55
55
|
], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup");
|
|
56
56
|
// @ts-expect-error Type is incorrectly non-optional
|
|
57
57
|
__decorateClass([
|
|
58
|
-
|
|
58
|
+
vividElement.attr({ attribute: "aria-hidden" })
|
|
59
59
|
], ARIAGlobalStatesAndProperties.prototype, "ariaHidden");
|
|
60
60
|
// @ts-expect-error Type is incorrectly non-optional
|
|
61
61
|
__decorateClass([
|
|
62
|
-
|
|
62
|
+
vividElement.attr({ attribute: "aria-invalid" })
|
|
63
63
|
], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid");
|
|
64
64
|
// @ts-expect-error Type is incorrectly non-optional
|
|
65
65
|
__decorateClass([
|
|
66
|
-
|
|
66
|
+
vividElement.attr({ attribute: "aria-keyshortcuts" })
|
|
67
67
|
], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts");
|
|
68
68
|
// @ts-expect-error Type is incorrectly non-optional
|
|
69
69
|
__decorateClass([
|
|
70
|
-
|
|
70
|
+
vividElement.attr({ attribute: "aria-label" })
|
|
71
71
|
], ARIAGlobalStatesAndProperties.prototype, "ariaLabel");
|
|
72
72
|
// @ts-expect-error Type is incorrectly non-optional
|
|
73
73
|
__decorateClass([
|
|
74
|
-
|
|
74
|
+
vividElement.attr({ attribute: "aria-labelledby" })
|
|
75
75
|
], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby");
|
|
76
76
|
// @ts-expect-error Type is incorrectly non-optional
|
|
77
77
|
__decorateClass([
|
|
78
|
-
|
|
78
|
+
vividElement.attr({ attribute: "aria-live" })
|
|
79
79
|
], ARIAGlobalStatesAndProperties.prototype, "ariaLive");
|
|
80
80
|
// @ts-expect-error Type is incorrectly non-optional
|
|
81
81
|
__decorateClass([
|
|
82
|
-
|
|
82
|
+
vividElement.attr({ attribute: "aria-owns" })
|
|
83
83
|
], ARIAGlobalStatesAndProperties.prototype, "ariaOwns");
|
|
84
84
|
// @ts-expect-error Type is incorrectly non-optional
|
|
85
85
|
__decorateClass([
|
|
86
|
-
|
|
86
|
+
vividElement.attr({ attribute: "aria-relevant" })
|
|
87
87
|
], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant");
|
|
88
88
|
// @ts-expect-error Type is incorrectly non-optional
|
|
89
89
|
__decorateClass([
|
|
90
|
-
|
|
90
|
+
vividElement.attr({ attribute: "aria-roledescription" })
|
|
91
91
|
], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription");
|
|
92
92
|
|
|
93
93
|
exports.ARIAGlobalStatesAndProperties = ARIAGlobalStatesAndProperties;
|
package/shared/aria-global.js
CHANGED
package/shared/base-progress.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
5
4
|
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
7
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -12,7 +11,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
12
11
|
if (result) __defProp(target, key, result);
|
|
13
12
|
return result;
|
|
14
13
|
};
|
|
15
|
-
class BaseProgress extends
|
|
14
|
+
class BaseProgress extends vividElement.VividElement {
|
|
16
15
|
constructor() {
|
|
17
16
|
super(...arguments);
|
|
18
17
|
this.percentComplete = 0;
|
|
@@ -58,22 +57,22 @@ class BaseProgress extends foundationElement.FoundationElement {
|
|
|
58
57
|
}
|
|
59
58
|
// @ts-expect-error Type is incorrectly non-optional
|
|
60
59
|
__decorateClass([
|
|
61
|
-
|
|
60
|
+
vividElement.attr({ converter: vividElement.nullableNumberConverter })
|
|
62
61
|
], BaseProgress.prototype, "value");
|
|
63
62
|
// @ts-expect-error Type is incorrectly non-optional
|
|
64
63
|
__decorateClass([
|
|
65
|
-
|
|
64
|
+
vividElement.attr({ converter: vividElement.nullableNumberConverter })
|
|
66
65
|
], BaseProgress.prototype, "min");
|
|
67
66
|
// @ts-expect-error Type is incorrectly non-optional
|
|
68
67
|
__decorateClass([
|
|
69
|
-
|
|
68
|
+
vividElement.attr({ converter: vividElement.nullableNumberConverter })
|
|
70
69
|
], BaseProgress.prototype, "max");
|
|
71
70
|
// @ts-expect-error Type is incorrectly non-optional
|
|
72
71
|
__decorateClass([
|
|
73
|
-
|
|
72
|
+
vividElement.attr({ mode: "boolean" })
|
|
74
73
|
], BaseProgress.prototype, "paused");
|
|
75
74
|
__decorateClass([
|
|
76
|
-
|
|
75
|
+
vividElement.observable
|
|
77
76
|
], BaseProgress.prototype, "percentComplete");
|
|
78
77
|
|
|
79
78
|
exports.BaseProgress = BaseProgress;
|
package/shared/base-progress.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as attr, n as nullableNumberConverter, o as observable } from './defineVividComponent.js';
|
|
1
|
+
import { V as VividElement, a as attr, n as nullableNumberConverter, o as observable } from './vivid-element.js';
|
|
3
2
|
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -10,7 +9,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
10
9
|
if (result) __defProp(target, key, result);
|
|
11
10
|
return result;
|
|
12
11
|
};
|
|
13
|
-
class BaseProgress extends
|
|
12
|
+
class BaseProgress extends VividElement {
|
|
14
13
|
constructor() {
|
|
15
14
|
super(...arguments);
|
|
16
15
|
this.percentComplete = 0;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const anchor = require('./anchor.cjs');
|
|
4
4
|
const vividElement = require('./vivid-element.cjs');
|
|
5
5
|
const applyMixins = require('./apply-mixins.cjs');
|
|
6
|
-
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
7
6
|
|
|
8
7
|
var __defProp = Object.defineProperty;
|
|
9
8
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -21,10 +20,10 @@ class BreadcrumbItem extends vividElement.VividElement {
|
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
__decorateClass([
|
|
24
|
-
|
|
23
|
+
vividElement.attr
|
|
25
24
|
], BreadcrumbItem.prototype, "text");
|
|
26
25
|
__decorateClass([
|
|
27
|
-
|
|
26
|
+
vividElement.observable
|
|
28
27
|
], BreadcrumbItem.prototype, "separator");
|
|
29
28
|
applyMixins.applyMixins(BreadcrumbItem, anchor.Anchor);
|
|
30
29
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { A as Anchor } from './anchor.js';
|
|
2
|
-
import { V as VividElement } from './vivid-element.js';
|
|
2
|
+
import { V as VividElement, a as attr, o as observable } from './vivid-element.js';
|
|
3
3
|
import { a as applyMixins } from './apply-mixins.js';
|
|
4
|
-
import { a as attr, o as observable } from './defineVividComponent.js';
|
|
5
4
|
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
7
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
package/shared/button.cjs
CHANGED
|
@@ -4,7 +4,6 @@ const applyMixins = require('./apply-mixins.cjs');
|
|
|
4
4
|
const formAssociated = require('./form-associated.cjs');
|
|
5
5
|
const vividElement = require('./vivid-element.cjs');
|
|
6
6
|
const ariaGlobal = require('./aria-global.cjs');
|
|
7
|
-
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
8
7
|
|
|
9
8
|
class _FoundationButton extends vividElement.VividElement {
|
|
10
9
|
}
|
|
@@ -141,36 +140,36 @@ class VividFoundationButton extends FormAssociatedButton {
|
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
142
|
__decorateClass([
|
|
144
|
-
|
|
143
|
+
vividElement.attr({ mode: "boolean" })
|
|
145
144
|
], VividFoundationButton.prototype, "autofocus");
|
|
146
145
|
__decorateClass([
|
|
147
|
-
|
|
146
|
+
vividElement.attr({ attribute: "form" })
|
|
148
147
|
], VividFoundationButton.prototype, "formId");
|
|
149
148
|
__decorateClass([
|
|
150
|
-
|
|
149
|
+
vividElement.attr
|
|
151
150
|
], VividFoundationButton.prototype, "formaction");
|
|
152
151
|
__decorateClass([
|
|
153
|
-
|
|
152
|
+
vividElement.attr
|
|
154
153
|
], VividFoundationButton.prototype, "formenctype");
|
|
155
154
|
__decorateClass([
|
|
156
|
-
|
|
155
|
+
vividElement.attr
|
|
157
156
|
], VividFoundationButton.prototype, "formmethod");
|
|
158
157
|
__decorateClass([
|
|
159
|
-
|
|
158
|
+
vividElement.attr({ mode: "boolean" })
|
|
160
159
|
], VividFoundationButton.prototype, "formnovalidate");
|
|
161
160
|
__decorateClass([
|
|
162
|
-
|
|
161
|
+
vividElement.attr
|
|
163
162
|
], VividFoundationButton.prototype, "formtarget");
|
|
164
163
|
__decorateClass([
|
|
165
|
-
|
|
164
|
+
vividElement.attr
|
|
166
165
|
], VividFoundationButton.prototype, "type");
|
|
167
166
|
class DelegatesARIAButton {
|
|
168
167
|
}
|
|
169
168
|
__decorateClass([
|
|
170
|
-
|
|
169
|
+
vividElement.attr({ attribute: "aria-expanded" })
|
|
171
170
|
], DelegatesARIAButton.prototype, "ariaExpanded");
|
|
172
171
|
__decorateClass([
|
|
173
|
-
|
|
172
|
+
vividElement.attr({ attribute: "aria-pressed" })
|
|
174
173
|
], DelegatesARIAButton.prototype, "ariaPressed");
|
|
175
174
|
applyMixins.applyMixins(DelegatesARIAButton, ariaGlobal.ARIAGlobalStatesAndProperties);
|
|
176
175
|
applyMixins.applyMixins(VividFoundationButton, DelegatesARIAButton);
|
package/shared/button.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { a as applyMixins } from './apply-mixins.js';
|
|
2
2
|
import { F as FormAssociated } from './form-associated.js';
|
|
3
|
-
import { V as VividElement } from './vivid-element.js';
|
|
3
|
+
import { V as VividElement, a as attr } from './vivid-element.js';
|
|
4
4
|
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
5
|
-
import { a as attr } from './defineVividComponent.js';
|
|
6
5
|
|
|
7
6
|
class _FoundationButton extends VividElement {
|
|
8
7
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const vividElement = require('./vivid-element.cjs');
|
|
4
|
-
const defineVividComponent = require('./defineVividComponent.cjs');
|
|
5
4
|
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
7
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -16,25 +15,25 @@ class CalendarEvent extends vividElement.VividElement {
|
|
|
16
15
|
// TODO should be converted to allowed range
|
|
17
16
|
}
|
|
18
17
|
__decorateClass([
|
|
19
|
-
|
|
18
|
+
vividElement.attr
|
|
20
19
|
], CalendarEvent.prototype, "heading");
|
|
21
20
|
__decorateClass([
|
|
22
|
-
|
|
21
|
+
vividElement.attr
|
|
23
22
|
], CalendarEvent.prototype, "description");
|
|
24
23
|
__decorateClass([
|
|
25
|
-
|
|
24
|
+
vividElement.attr
|
|
26
25
|
], CalendarEvent.prototype, "connotation");
|
|
27
26
|
__decorateClass([
|
|
28
|
-
|
|
27
|
+
vividElement.attr
|
|
29
28
|
], CalendarEvent.prototype, "appearance");
|
|
30
29
|
__decorateClass([
|
|
31
|
-
|
|
30
|
+
vividElement.attr({ converter: vividElement.nullableNumberConverter, attribute: "overlap-count" })
|
|
32
31
|
], CalendarEvent.prototype, "overlapCount");
|
|
33
32
|
__decorateClass([
|
|
34
|
-
|
|
33
|
+
vividElement.attr({ converter: vividElement.nullableNumberConverter })
|
|
35
34
|
], CalendarEvent.prototype, "start");
|
|
36
35
|
__decorateClass([
|
|
37
|
-
|
|
36
|
+
vividElement.attr({ converter: vividElement.nullableNumberConverter })
|
|
38
37
|
], CalendarEvent.prototype, "duration");
|
|
39
38
|
|
|
40
39
|
exports.CalendarEvent = CalendarEvent;
|
package/shared/calendar-event.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { V as VividElement } from './vivid-element.js';
|
|
2
|
-
import { a as attr, n as nullableNumberConverter } from './defineVividComponent.js';
|
|
1
|
+
import { V as VividElement, a as attr, n as nullableNumberConverter } from './vivid-element.js';
|
|
3
2
|
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __decorateClass = (decorators, target, key, kind) => {
|
package/shared/children.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
const slotted = require('./slotted.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -55,7 +55,7 @@ function children(propertyOrOptions) {
|
|
|
55
55
|
property: propertyOrOptions,
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
return new
|
|
58
|
+
return new vividElement.AttachedBehaviorHTMLDirective("fast-children", ChildrenBehavior, propertyOrOptions);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
exports.children = children;
|
package/shared/children.js
CHANGED
package/shared/definition.cjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const vividElement = require('./vivid-element.cjs');
|
|
4
4
|
const definition = require('./definition27.cjs');
|
|
5
5
|
const affix = require('./affix.cjs');
|
|
6
6
|
const applyMixins = require('./apply-mixins.cjs');
|
|
7
|
-
const vividElement = require('./vivid-element.cjs');
|
|
8
7
|
const ref = require('./ref.cjs');
|
|
9
8
|
const when = require('./when.cjs');
|
|
10
9
|
|
|
@@ -38,36 +37,36 @@ class AccordionItem extends vividElement.VividElement {
|
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
__decorateClass([
|
|
41
|
-
|
|
40
|
+
vividElement.attr({
|
|
42
41
|
attribute: "heading-level",
|
|
43
42
|
mode: "fromView",
|
|
44
|
-
converter:
|
|
43
|
+
converter: vividElement.nullableNumberConverter
|
|
45
44
|
})
|
|
46
45
|
], AccordionItem.prototype, "headinglevel");
|
|
47
46
|
__decorateClass([
|
|
48
|
-
|
|
47
|
+
vividElement.attr({ mode: "boolean" })
|
|
49
48
|
], AccordionItem.prototype, "expanded");
|
|
50
49
|
// @ts-expect-error Type is incorrectly non-optional
|
|
51
50
|
__decorateClass([
|
|
52
|
-
|
|
51
|
+
vividElement.attr
|
|
53
52
|
], AccordionItem.prototype, "id");
|
|
54
53
|
__decorateClass([
|
|
55
|
-
|
|
54
|
+
vividElement.attr
|
|
56
55
|
], AccordionItem.prototype, "heading");
|
|
57
56
|
__decorateClass([
|
|
58
|
-
|
|
57
|
+
vividElement.attr({ mode: "boolean", attribute: "no-indicator" })
|
|
59
58
|
], AccordionItem.prototype, "noIndicator");
|
|
60
59
|
__decorateClass([
|
|
61
|
-
|
|
60
|
+
vividElement.attr
|
|
62
61
|
], AccordionItem.prototype, "meta");
|
|
63
62
|
__decorateClass([
|
|
64
|
-
|
|
63
|
+
vividElement.attr
|
|
65
64
|
], AccordionItem.prototype, "size");
|
|
66
65
|
applyMixins.applyMixins(AccordionItem, affix.AffixIconWithTrailing);
|
|
67
66
|
|
|
68
67
|
const header = (context, hTag) => {
|
|
69
68
|
const affixIconTemplate = affix.affixIconTemplateFactory(context);
|
|
70
|
-
return
|
|
69
|
+
return vividElement.html`
|
|
71
70
|
<${hTag} class="heading-container">
|
|
72
71
|
<button
|
|
73
72
|
class="heading-button ${(x) => x.size ? `size-${x.size}` : ""}"
|
|
@@ -82,7 +81,7 @@ const header = (context, hTag) => {
|
|
|
82
81
|
|
|
83
82
|
<span class="heading-content">${(x) => x.heading}</span>
|
|
84
83
|
|
|
85
|
-
${when.when((x) => x.meta,
|
|
84
|
+
${when.when((x) => x.meta, vividElement.html`<span class="meta">${(x) => x.meta}</span>`)}
|
|
86
85
|
|
|
87
86
|
${(x) => x.icon && x.iconTrailing ? affixIconTemplate(x.icon) : null}
|
|
88
87
|
${(x) => !(x.icon && x.iconTrailing) && !x.noIndicator ? affixIconTemplate(
|
|
@@ -93,7 +92,7 @@ const header = (context, hTag) => {
|
|
|
93
92
|
</${hTag}>
|
|
94
93
|
`;
|
|
95
94
|
};
|
|
96
|
-
const AccordionItemTemplate = (context) =>
|
|
95
|
+
const AccordionItemTemplate = (context) => vividElement.html`
|
|
97
96
|
${(x) => header(context, "h" + x.headinglevel)}
|
|
98
97
|
<div
|
|
99
98
|
id="${(x) => x.id}-panel"
|
|
@@ -105,7 +104,7 @@ const AccordionItemTemplate = (context) => defineVividComponent.html`
|
|
|
105
104
|
</div>
|
|
106
105
|
`;
|
|
107
106
|
|
|
108
|
-
const accordionItemDefinition =
|
|
107
|
+
const accordionItemDefinition = vividElement.defineVividComponent(
|
|
109
108
|
"accordion-item",
|
|
110
109
|
AccordionItem,
|
|
111
110
|
AccordionItemTemplate,
|
|
@@ -114,7 +113,7 @@ const accordionItemDefinition = defineVividComponent.defineVividComponent(
|
|
|
114
113
|
styles
|
|
115
114
|
}
|
|
116
115
|
);
|
|
117
|
-
const registerAccordionItem =
|
|
116
|
+
const registerAccordionItem = vividElement.createRegisterFunction(
|
|
118
117
|
accordionItemDefinition
|
|
119
118
|
);
|
|
120
119
|
|