@vonage/vivid 4.14.0 → 4.14.1

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.
Files changed (207) hide show
  1. package/custom-elements.json +130 -23
  2. package/lib/elevation/elevation.d.ts +1 -0
  3. package/lib/radio/radio.form-associated.d.ts +2 -0
  4. package/lib/tabs/tabs.d.ts +0 -5
  5. package/lib/text-anchor/text-anchor.d.ts +2 -2
  6. package/lib/tree-item/tree-item.d.ts +2 -2
  7. package/lib/tree-view/tree-view.d.ts +2 -2
  8. package/listbox/index.cjs +4 -4
  9. package/listbox/index.js +1 -1
  10. package/package.json +1 -1
  11. package/shared/affix.cjs +8 -8
  12. package/shared/affix.js +1 -1
  13. package/shared/anchor.cjs +10 -10
  14. package/shared/anchor.js +1 -1
  15. package/shared/anchored.cjs +6 -6
  16. package/shared/anchored.js +1 -1
  17. package/shared/apply-mixins.cjs +3 -3
  18. package/shared/apply-mixins.js +1 -1
  19. package/shared/apply-mixins2.cjs +3 -3
  20. package/shared/apply-mixins2.js +1 -1
  21. package/shared/applyMixinsWithObservables.cjs +3 -3
  22. package/shared/applyMixinsWithObservables.js +1 -1
  23. package/shared/aria-global.cjs +20 -20
  24. package/shared/aria-global.js +1 -1
  25. package/shared/aria-global2.cjs +40 -40
  26. package/shared/aria-global2.js +2 -2
  27. package/shared/base-progress.cjs +7 -8
  28. package/shared/base-progress.js +2 -3
  29. package/shared/breadcrumb-item.cjs +2 -3
  30. package/shared/breadcrumb-item.js +1 -2
  31. package/shared/button.cjs +10 -11
  32. package/shared/button.js +1 -2
  33. package/shared/calendar-event.cjs +7 -8
  34. package/shared/calendar-event.js +1 -2
  35. package/shared/children.cjs +2 -2
  36. package/shared/children.js +1 -1
  37. package/shared/definition.cjs +14 -15
  38. package/shared/definition.js +1 -2
  39. package/shared/definition10.cjs +5 -6
  40. package/shared/definition10.js +1 -2
  41. package/shared/definition11.cjs +29 -29
  42. package/shared/definition11.js +1 -1
  43. package/shared/definition12.cjs +6 -6
  44. package/shared/definition12.js +1 -1
  45. package/shared/definition13.cjs +13 -14
  46. package/shared/definition13.js +1 -2
  47. package/shared/definition14.cjs +23 -24
  48. package/shared/definition14.js +1 -2
  49. package/shared/definition15.cjs +15 -16
  50. package/shared/definition15.js +1 -2
  51. package/shared/definition16.cjs +20 -19
  52. package/shared/definition16.js +3 -2
  53. package/shared/definition17.cjs +53 -54
  54. package/shared/definition17.js +1 -2
  55. package/shared/definition18.cjs +4 -4
  56. package/shared/definition18.js +1 -1
  57. package/shared/definition19.cjs +12 -12
  58. package/shared/definition19.js +1 -1
  59. package/shared/definition2.cjs +6 -7
  60. package/shared/definition2.js +1 -2
  61. package/shared/definition20.cjs +20 -21
  62. package/shared/definition20.js +1 -2
  63. package/shared/definition21.cjs +27 -28
  64. package/shared/definition21.js +3 -4
  65. package/shared/definition22.cjs +5 -6
  66. package/shared/definition22.js +1 -2
  67. package/shared/definition23.cjs +10 -11
  68. package/shared/definition23.js +1 -2
  69. package/shared/definition24.cjs +8 -8
  70. package/shared/definition24.js +2 -2
  71. package/shared/definition25.cjs +13 -14
  72. package/shared/definition25.js +1 -2
  73. package/shared/definition26.cjs +5 -6
  74. package/shared/definition26.js +1 -2
  75. package/shared/definition27.cjs +11 -12
  76. package/shared/definition27.js +1 -2
  77. package/shared/definition28.cjs +9 -10
  78. package/shared/definition28.js +2 -3
  79. package/shared/definition29.cjs +44 -45
  80. package/shared/definition29.js +2 -3
  81. package/shared/definition3.cjs +8 -9
  82. package/shared/definition3.js +1 -2
  83. package/shared/definition30.cjs +9 -10
  84. package/shared/definition30.js +1 -2
  85. package/shared/definition31.cjs +5 -5
  86. package/shared/definition31.js +1 -1
  87. package/shared/definition32.cjs +3 -4
  88. package/shared/definition32.js +1 -2
  89. package/shared/definition33.cjs +6 -7
  90. package/shared/definition33.js +1 -2
  91. package/shared/definition34.cjs +50 -52
  92. package/shared/definition34.js +2 -4
  93. package/shared/definition35.cjs +24 -25
  94. package/shared/definition35.js +1 -2
  95. package/shared/definition36.cjs +15 -16
  96. package/shared/definition36.js +1 -2
  97. package/shared/definition37.cjs +9 -9
  98. package/shared/definition37.js +1 -1
  99. package/shared/definition38.cjs +10 -10
  100. package/shared/definition38.js +1 -1
  101. package/shared/definition39.cjs +12 -13
  102. package/shared/definition39.js +1 -2
  103. package/shared/definition4.cjs +19 -20
  104. package/shared/definition4.js +1 -2
  105. package/shared/definition40.cjs +61 -13
  106. package/shared/definition40.js +52 -4
  107. package/shared/definition41.cjs +29 -30
  108. package/shared/definition41.js +1 -2
  109. package/shared/definition42.cjs +53 -54
  110. package/shared/definition42.js +2 -3
  111. package/shared/definition43.cjs +31 -31
  112. package/shared/definition43.js +1 -1
  113. package/shared/definition44.cjs +14 -15
  114. package/shared/definition44.js +1 -2
  115. package/shared/definition45.cjs +9 -10
  116. package/shared/definition45.js +1 -2
  117. package/shared/definition46.cjs +26 -27
  118. package/shared/definition46.js +1 -2
  119. package/shared/definition47.cjs +17 -18
  120. package/shared/definition47.js +1 -2
  121. package/shared/definition48.cjs +9 -10
  122. package/shared/definition48.js +1 -2
  123. package/shared/definition49.cjs +3 -4
  124. package/shared/definition49.js +1 -2
  125. package/shared/definition5.cjs +30 -31
  126. package/shared/definition5.js +1 -2
  127. package/shared/definition50.cjs +12 -13
  128. package/shared/definition50.js +1 -2
  129. package/shared/definition51.cjs +87 -72
  130. package/shared/definition51.js +56 -41
  131. package/shared/definition52.cjs +4 -5
  132. package/shared/definition52.js +1 -2
  133. package/shared/definition53.cjs +15 -16
  134. package/shared/definition53.js +1 -2
  135. package/shared/definition54.cjs +20 -21
  136. package/shared/definition54.js +1 -2
  137. package/shared/definition55.cjs +5 -5
  138. package/shared/definition55.js +1 -1
  139. package/shared/definition56.cjs +18 -19
  140. package/shared/definition56.js +1 -2
  141. package/shared/definition57.cjs +10 -11
  142. package/shared/definition57.js +1 -2
  143. package/shared/definition58.cjs +7 -8
  144. package/shared/definition58.js +1 -2
  145. package/shared/definition59.cjs +16 -17
  146. package/shared/definition59.js +2 -3
  147. package/shared/definition6.cjs +11 -12
  148. package/shared/definition6.js +1 -2
  149. package/shared/definition60.cjs +9 -10
  150. package/shared/definition60.js +2 -3
  151. package/shared/definition61.cjs +27 -30
  152. package/shared/definition61.js +17 -20
  153. package/shared/definition62.cjs +12 -9
  154. package/shared/definition62.js +8 -5
  155. package/shared/definition63.cjs +13 -14
  156. package/shared/definition63.js +1 -2
  157. package/shared/definition7.cjs +9 -10
  158. package/shared/definition7.js +1 -2
  159. package/shared/definition8.cjs +14 -15
  160. package/shared/definition8.js +1 -2
  161. package/shared/definition9.cjs +7 -7
  162. package/shared/definition9.js +1 -1
  163. package/shared/form-associated.cjs +14 -14
  164. package/shared/form-associated.js +1 -1
  165. package/shared/form-associated2.cjs +10 -10
  166. package/shared/form-associated2.js +1 -1
  167. package/shared/form-elements.cjs +13 -13
  168. package/shared/form-elements.js +1 -1
  169. package/shared/foundation/progress/base-progress.d.ts +2 -2
  170. package/shared/key-codes2.cjs +1416 -3
  171. package/shared/key-codes2.js +1413 -2
  172. package/shared/listbox.cjs +12 -13
  173. package/shared/listbox.js +1 -2
  174. package/shared/listbox2.cjs +59 -60
  175. package/shared/listbox2.js +2 -3
  176. package/shared/localized.cjs +2 -2
  177. package/shared/localized.js +1 -1
  178. package/shared/presentationDate.cjs +42 -43
  179. package/shared/presentationDate.js +1 -2
  180. package/shared/ref.cjs +2 -2
  181. package/shared/ref.js +1 -1
  182. package/shared/repeat.cjs +15 -15
  183. package/shared/repeat.js +1 -1
  184. package/shared/slider.template.cjs +4 -4
  185. package/shared/slider.template.js +1 -1
  186. package/shared/slotted.cjs +4 -4
  187. package/shared/slotted.js +1 -1
  188. package/shared/text-anchor.cjs +5 -6
  189. package/shared/text-anchor.js +2 -3
  190. package/shared/text-anchor.template.cjs +2 -2
  191. package/shared/text-anchor.template.js +1 -1
  192. package/shared/text-field2.cjs +23 -24
  193. package/shared/text-field2.js +1 -2
  194. package/shared/vivid-element.cjs +2610 -2
  195. package/shared/vivid-element.js +2591 -2
  196. package/styles/core/all.css +40 -1
  197. package/styles/core/theme.css +40 -1
  198. package/styles/core/typography.css +1 -1
  199. package/styles/tokens/theme-dark.css +25 -4
  200. package/styles/tokens/theme-light.css +25 -4
  201. package/styles/tokens/vivid-2-compat.css +1 -1
  202. package/text-anchor/index.cjs +3 -3
  203. package/text-anchor/index.js +1 -1
  204. package/shared/defineVividComponent.cjs +0 -2612
  205. package/shared/defineVividComponent.js +0 -2592
  206. package/shared/foundation-element.cjs +0 -1417
  207. package/shared/foundation-element.js +0 -1414
@@ -1,5 +1,5 @@
1
1
  import { a as applyMixins } from './apply-mixins2.js';
2
- import { O as Observable } from './defineVividComponent.js';
2
+ import { O as Observable } from './vivid-element.js';
3
3
 
4
4
  function applyMixinsWithObservables(derivedCtor, ...baseCtors) {
5
5
  applyMixins(derivedCtor, ...baseCtors);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const defineVividComponent = require('./defineVividComponent.cjs');
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
- defineVividComponent.attr({ attribute: "aria-atomic" })
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
- defineVividComponent.attr({ attribute: "aria-busy" })
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
- defineVividComponent.attr({ attribute: "aria-controls" })
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
- defineVividComponent.attr({ attribute: "aria-current" })
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
- defineVividComponent.attr({ attribute: "aria-describedby" })
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
- defineVividComponent.attr({ attribute: "aria-details" })
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
- defineVividComponent.attr({ attribute: "aria-disabled" })
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
- defineVividComponent.attr({ attribute: "aria-errormessage" })
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
- defineVividComponent.attr({ attribute: "aria-flowto" })
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
- defineVividComponent.attr({ attribute: "aria-haspopup" })
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
- defineVividComponent.attr({ attribute: "aria-hidden" })
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
- defineVividComponent.attr({ attribute: "aria-invalid" })
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
- defineVividComponent.attr({ attribute: "aria-keyshortcuts" })
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
- defineVividComponent.attr({ attribute: "aria-label" })
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
- defineVividComponent.attr({ attribute: "aria-labelledby" })
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
- defineVividComponent.attr({ attribute: "aria-live" })
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
- defineVividComponent.attr({ attribute: "aria-owns" })
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
- defineVividComponent.attr({ attribute: "aria-relevant" })
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
- defineVividComponent.attr({ attribute: "aria-roledescription" })
90
+ vividElement.attr({ attribute: "aria-roledescription" })
91
91
  ], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription");
92
92
 
93
93
  exports.ARIAGlobalStatesAndProperties = ARIAGlobalStatesAndProperties;
@@ -1,4 +1,4 @@
1
- import { a as attr } from './defineVividComponent.js';
1
+ import { a as attr } from './vivid-element.js';
2
2
 
3
3
  var __defProp = Object.defineProperty;
4
4
  var __decorateClass = (decorators, target, key, kind) => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const foundationElement = require('./foundation-element.cjs');
4
- const defineVividComponent = require('./defineVividComponent.cjs');
3
+ const keyCodes = require('./key-codes2.cjs');
4
+ const vividElement = require('./vivid-element.cjs');
5
5
 
6
6
  /**
7
7
  * Some states and properties are applicable to all host language elements regardless of whether a role is applied.
@@ -14,62 +14,62 @@ const defineVividComponent = require('./defineVividComponent.cjs');
14
14
  */
15
15
  class ARIAGlobalStatesAndProperties {
16
16
  }
17
- foundationElement.__decorate([
18
- defineVividComponent.attr({ attribute: "aria-atomic" })
17
+ keyCodes.__decorate([
18
+ vividElement.attr({ attribute: "aria-atomic" })
19
19
  ], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", void 0);
20
- foundationElement.__decorate([
21
- defineVividComponent.attr({ attribute: "aria-busy" })
20
+ keyCodes.__decorate([
21
+ vividElement.attr({ attribute: "aria-busy" })
22
22
  ], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", void 0);
23
- foundationElement.__decorate([
24
- defineVividComponent.attr({ attribute: "aria-controls" })
23
+ keyCodes.__decorate([
24
+ vividElement.attr({ attribute: "aria-controls" })
25
25
  ], ARIAGlobalStatesAndProperties.prototype, "ariaControls", void 0);
26
- foundationElement.__decorate([
27
- defineVividComponent.attr({ attribute: "aria-current" })
26
+ keyCodes.__decorate([
27
+ vividElement.attr({ attribute: "aria-current" })
28
28
  ], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", void 0);
29
- foundationElement.__decorate([
30
- defineVividComponent.attr({ attribute: "aria-describedby" })
29
+ keyCodes.__decorate([
30
+ vividElement.attr({ attribute: "aria-describedby" })
31
31
  ], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", void 0);
32
- foundationElement.__decorate([
33
- defineVividComponent.attr({ attribute: "aria-details" })
32
+ keyCodes.__decorate([
33
+ vividElement.attr({ attribute: "aria-details" })
34
34
  ], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", void 0);
35
- foundationElement.__decorate([
36
- defineVividComponent.attr({ attribute: "aria-disabled" })
35
+ keyCodes.__decorate([
36
+ vividElement.attr({ attribute: "aria-disabled" })
37
37
  ], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", void 0);
38
- foundationElement.__decorate([
39
- defineVividComponent.attr({ attribute: "aria-errormessage" })
38
+ keyCodes.__decorate([
39
+ vividElement.attr({ attribute: "aria-errormessage" })
40
40
  ], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", void 0);
41
- foundationElement.__decorate([
42
- defineVividComponent.attr({ attribute: "aria-flowto" })
41
+ keyCodes.__decorate([
42
+ vividElement.attr({ attribute: "aria-flowto" })
43
43
  ], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", void 0);
44
- foundationElement.__decorate([
45
- defineVividComponent.attr({ attribute: "aria-haspopup" })
44
+ keyCodes.__decorate([
45
+ vividElement.attr({ attribute: "aria-haspopup" })
46
46
  ], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", void 0);
47
- foundationElement.__decorate([
48
- defineVividComponent.attr({ attribute: "aria-hidden" })
47
+ keyCodes.__decorate([
48
+ vividElement.attr({ attribute: "aria-hidden" })
49
49
  ], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", void 0);
50
- foundationElement.__decorate([
51
- defineVividComponent.attr({ attribute: "aria-invalid" })
50
+ keyCodes.__decorate([
51
+ vividElement.attr({ attribute: "aria-invalid" })
52
52
  ], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", void 0);
53
- foundationElement.__decorate([
54
- defineVividComponent.attr({ attribute: "aria-keyshortcuts" })
53
+ keyCodes.__decorate([
54
+ vividElement.attr({ attribute: "aria-keyshortcuts" })
55
55
  ], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", void 0);
56
- foundationElement.__decorate([
57
- defineVividComponent.attr({ attribute: "aria-label" })
56
+ keyCodes.__decorate([
57
+ vividElement.attr({ attribute: "aria-label" })
58
58
  ], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", void 0);
59
- foundationElement.__decorate([
60
- defineVividComponent.attr({ attribute: "aria-labelledby" })
59
+ keyCodes.__decorate([
60
+ vividElement.attr({ attribute: "aria-labelledby" })
61
61
  ], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", void 0);
62
- foundationElement.__decorate([
63
- defineVividComponent.attr({ attribute: "aria-live" })
62
+ keyCodes.__decorate([
63
+ vividElement.attr({ attribute: "aria-live" })
64
64
  ], ARIAGlobalStatesAndProperties.prototype, "ariaLive", void 0);
65
- foundationElement.__decorate([
66
- defineVividComponent.attr({ attribute: "aria-owns" })
65
+ keyCodes.__decorate([
66
+ vividElement.attr({ attribute: "aria-owns" })
67
67
  ], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", void 0);
68
- foundationElement.__decorate([
69
- defineVividComponent.attr({ attribute: "aria-relevant" })
68
+ keyCodes.__decorate([
69
+ vividElement.attr({ attribute: "aria-relevant" })
70
70
  ], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", void 0);
71
- foundationElement.__decorate([
72
- defineVividComponent.attr({ attribute: "aria-roledescription" })
71
+ keyCodes.__decorate([
72
+ vividElement.attr({ attribute: "aria-roledescription" })
73
73
  ], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
74
74
 
75
75
  exports.ARIAGlobalStatesAndProperties = ARIAGlobalStatesAndProperties;
@@ -1,5 +1,5 @@
1
- import { _ as __decorate } from './foundation-element.js';
2
- import { a as attr } from './defineVividComponent.js';
1
+ import { _ as __decorate } from './key-codes2.js';
2
+ import { a as attr } from './vivid-element.js';
3
3
 
4
4
  /**
5
5
  * Some states and properties are applicable to all host language elements regardless of whether a role is applied.
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const foundationElement = require('./foundation-element.cjs');
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 foundationElement.FoundationElement {
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
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
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
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
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
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
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
- defineVividComponent.attr({ mode: "boolean" })
72
+ vividElement.attr({ mode: "boolean" })
74
73
  ], BaseProgress.prototype, "paused");
75
74
  __decorateClass([
76
- defineVividComponent.observable
75
+ vividElement.observable
77
76
  ], BaseProgress.prototype, "percentComplete");
78
77
 
79
78
  exports.BaseProgress = BaseProgress;
@@ -1,5 +1,4 @@
1
- import { F as FoundationElement } from './foundation-element.js';
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 FoundationElement {
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
- defineVividComponent.attr
23
+ vividElement.attr
25
24
  ], BreadcrumbItem.prototype, "text");
26
25
  __decorateClass([
27
- defineVividComponent.observable
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
- defineVividComponent.attr({ mode: "boolean" })
143
+ vividElement.attr({ mode: "boolean" })
145
144
  ], VividFoundationButton.prototype, "autofocus");
146
145
  __decorateClass([
147
- defineVividComponent.attr({ attribute: "form" })
146
+ vividElement.attr({ attribute: "form" })
148
147
  ], VividFoundationButton.prototype, "formId");
149
148
  __decorateClass([
150
- defineVividComponent.attr
149
+ vividElement.attr
151
150
  ], VividFoundationButton.prototype, "formaction");
152
151
  __decorateClass([
153
- defineVividComponent.attr
152
+ vividElement.attr
154
153
  ], VividFoundationButton.prototype, "formenctype");
155
154
  __decorateClass([
156
- defineVividComponent.attr
155
+ vividElement.attr
157
156
  ], VividFoundationButton.prototype, "formmethod");
158
157
  __decorateClass([
159
- defineVividComponent.attr({ mode: "boolean" })
158
+ vividElement.attr({ mode: "boolean" })
160
159
  ], VividFoundationButton.prototype, "formnovalidate");
161
160
  __decorateClass([
162
- defineVividComponent.attr
161
+ vividElement.attr
163
162
  ], VividFoundationButton.prototype, "formtarget");
164
163
  __decorateClass([
165
- defineVividComponent.attr
164
+ vividElement.attr
166
165
  ], VividFoundationButton.prototype, "type");
167
166
  class DelegatesARIAButton {
168
167
  }
169
168
  __decorateClass([
170
- defineVividComponent.attr({ attribute: "aria-expanded" })
169
+ vividElement.attr({ attribute: "aria-expanded" })
171
170
  ], DelegatesARIAButton.prototype, "ariaExpanded");
172
171
  __decorateClass([
173
- defineVividComponent.attr({ attribute: "aria-pressed" })
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
- defineVividComponent.attr
18
+ vividElement.attr
20
19
  ], CalendarEvent.prototype, "heading");
21
20
  __decorateClass([
22
- defineVividComponent.attr
21
+ vividElement.attr
23
22
  ], CalendarEvent.prototype, "description");
24
23
  __decorateClass([
25
- defineVividComponent.attr
24
+ vividElement.attr
26
25
  ], CalendarEvent.prototype, "connotation");
27
26
  __decorateClass([
28
- defineVividComponent.attr
27
+ vividElement.attr
29
28
  ], CalendarEvent.prototype, "appearance");
30
29
  __decorateClass([
31
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter, attribute: "overlap-count" })
30
+ vividElement.attr({ converter: vividElement.nullableNumberConverter, attribute: "overlap-count" })
32
31
  ], CalendarEvent.prototype, "overlapCount");
33
32
  __decorateClass([
34
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
33
+ vividElement.attr({ converter: vividElement.nullableNumberConverter })
35
34
  ], CalendarEvent.prototype, "start");
36
35
  __decorateClass([
37
- defineVividComponent.attr({ converter: defineVividComponent.nullableNumberConverter })
36
+ vividElement.attr({ converter: vividElement.nullableNumberConverter })
38
37
  ], CalendarEvent.prototype, "duration");
39
38
 
40
39
  exports.CalendarEvent = CalendarEvent;
@@ -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) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const defineVividComponent = require('./defineVividComponent.cjs');
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 defineVividComponent.AttachedBehaviorHTMLDirective("fast-children", ChildrenBehavior, propertyOrOptions);
58
+ return new vividElement.AttachedBehaviorHTMLDirective("fast-children", ChildrenBehavior, propertyOrOptions);
59
59
  }
60
60
 
61
61
  exports.children = children;
@@ -1,4 +1,4 @@
1
- import { b as AttachedBehaviorHTMLDirective } from './defineVividComponent.js';
1
+ import { b as AttachedBehaviorHTMLDirective } from './vivid-element.js';
2
2
  import { N as NodeObservationBehavior } from './slotted.js';
3
3
 
4
4
  /**
@@ -1,10 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const defineVividComponent = require('./defineVividComponent.cjs');
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
- defineVividComponent.attr({
40
+ vividElement.attr({
42
41
  attribute: "heading-level",
43
42
  mode: "fromView",
44
- converter: defineVividComponent.nullableNumberConverter
43
+ converter: vividElement.nullableNumberConverter
45
44
  })
46
45
  ], AccordionItem.prototype, "headinglevel");
47
46
  __decorateClass([
48
- defineVividComponent.attr({ mode: "boolean" })
47
+ vividElement.attr({ mode: "boolean" })
49
48
  ], AccordionItem.prototype, "expanded");
50
49
  // @ts-expect-error Type is incorrectly non-optional
51
50
  __decorateClass([
52
- defineVividComponent.attr
51
+ vividElement.attr
53
52
  ], AccordionItem.prototype, "id");
54
53
  __decorateClass([
55
- defineVividComponent.attr
54
+ vividElement.attr
56
55
  ], AccordionItem.prototype, "heading");
57
56
  __decorateClass([
58
- defineVividComponent.attr({ mode: "boolean", attribute: "no-indicator" })
57
+ vividElement.attr({ mode: "boolean", attribute: "no-indicator" })
59
58
  ], AccordionItem.prototype, "noIndicator");
60
59
  __decorateClass([
61
- defineVividComponent.attr
60
+ vividElement.attr
62
61
  ], AccordionItem.prototype, "meta");
63
62
  __decorateClass([
64
- defineVividComponent.attr
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 defineVividComponent.html`
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, defineVividComponent.html`<span class="meta">${(x) => x.meta}</span>`)}
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) => defineVividComponent.html`
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 = defineVividComponent.defineVividComponent(
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 = defineVividComponent.createRegisterFunction(
116
+ const registerAccordionItem = vividElement.createRegisterFunction(
118
117
  accordionItemDefinition
119
118
  );
120
119
 
@@ -1,8 +1,7 @@
1
- import { a as attr, n as nullableNumberConverter, h as html, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
1
+ import { V as VividElement, a as attr, n as nullableNumberConverter, h as html, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
2
2
  import { i as iconDefinition } from './definition27.js';
3
3
  import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
4
4
  import { a as applyMixins } from './apply-mixins.js';
5
- import { V as VividElement } from './vivid-element.js';
6
5
  import { r as ref } from './ref.js';
7
6
  import { w as when } from './when.js';
8
7
 
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const defineVividComponent = require('./defineVividComponent.cjs');
3
+ const vividElement = require('./vivid-element.cjs');
4
4
  const slotted = require('./slotted.cjs');
5
5
  const breadcrumbItem = require('./breadcrumb-item.cjs');
6
- const vividElement = require('./vivid-element.cjs');
7
6
 
8
- const breadcrumbTemplate = defineVividComponent.html`
7
+ const breadcrumbTemplate = vividElement.html`
9
8
  <nav aria-label="breadcrumbs" class="base">
10
9
  <div role="list" class="list">
11
10
  <slot
@@ -71,10 +70,10 @@ class Breadcrumb extends vividElement.VividElement {
71
70
  }
72
71
  }
73
72
  __decorateClass([
74
- defineVividComponent.observable
73
+ vividElement.observable
75
74
  ], Breadcrumb.prototype, "slottedBreadcrumbItems");
76
75
 
77
- const breadcrumbDefinition = defineVividComponent.defineVividComponent(
76
+ const breadcrumbDefinition = vividElement.defineVividComponent(
78
77
  "breadcrumb",
79
78
  Breadcrumb,
80
79
  breadcrumbTemplate,
@@ -83,7 +82,7 @@ const breadcrumbDefinition = defineVividComponent.defineVividComponent(
83
82
  styles
84
83
  }
85
84
  );
86
- const registerBreadcrumb = defineVividComponent.createRegisterFunction(breadcrumbDefinition);
85
+ const registerBreadcrumb = vividElement.createRegisterFunction(breadcrumbDefinition);
87
86
 
88
87
  exports.breadcrumbDefinition = breadcrumbDefinition;
89
88
  exports.registerBreadcrumb = registerBreadcrumb;
@@ -1,7 +1,6 @@
1
- import { h as html, o as observable, d as defineVividComponent, f as createRegisterFunction } from './defineVividComponent.js';
1
+ import { h as html, V as VividElement, o as observable, d as defineVividComponent, f as createRegisterFunction } from './vivid-element.js';
2
2
  import { s as slotted, e as elements } from './slotted.js';
3
3
  import { B as BreadcrumbItem } from './breadcrumb-item.js';
4
- import { V as VividElement } from './vivid-element.js';
5
4
 
6
5
  const breadcrumbTemplate = html`
7
6
  <nav aria-label="breadcrumbs" class="base">