@vonage/vivid 2.36.3 → 3.0.0-next.100

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 (237) hide show
  1. package/README.md +144 -0
  2. package/accordion/index.js +52 -0
  3. package/accordion-item/index.js +118 -0
  4. package/action-group/index.js +41 -0
  5. package/avatar/index.js +61 -0
  6. package/badge/index.js +51 -0
  7. package/banner/index.js +128 -0
  8. package/breadcrumb/index.js +103 -0
  9. package/breadcrumb-item/index.js +59 -0
  10. package/button/index.js +24 -0
  11. package/calendar/index.js +1526 -0
  12. package/calendar-event/index.js +112 -0
  13. package/card/index.js +114 -0
  14. package/checkbox/index.js +179 -0
  15. package/dialog/index.js +230 -0
  16. package/divider/index.js +4 -0
  17. package/elevation/index.js +3 -0
  18. package/fab/index.js +100 -0
  19. package/focus/index.js +18 -0
  20. package/header/index.js +61 -0
  21. package/icon/index.js +36 -0
  22. package/index.d.ts +2 -0
  23. package/index.js +76 -64
  24. package/layout/index.js +43 -0
  25. package/lib/accordion/accordion.d.ts +9 -0
  26. package/lib/accordion/accordion.template.d.ts +4 -0
  27. package/lib/accordion/index.d.ts +2 -0
  28. package/lib/accordion-item/accordion-item.d.ts +13 -0
  29. package/lib/accordion-item/accordion-item.template.d.ts +4 -0
  30. package/lib/accordion-item/index.d.ts +4 -0
  31. package/lib/action-group/action-group.d.ts +10 -0
  32. package/lib/action-group/action-group.template.d.ts +4 -0
  33. package/lib/action-group/index.d.ts +2 -0
  34. package/lib/avatar/avatar.d.ts +15 -0
  35. package/lib/avatar/avatar.template.d.ts +4 -0
  36. package/lib/avatar/index.d.ts +3 -0
  37. package/lib/badge/badge.d.ts +15 -0
  38. package/lib/badge/badge.template.d.ts +4 -0
  39. package/lib/badge/index.d.ts +3 -0
  40. package/lib/banner/banner.d.ts +20 -0
  41. package/lib/banner/banner.template.d.ts +4 -0
  42. package/lib/banner/index.d.ts +3 -0
  43. package/lib/breadcrumb/breadcrumb.d.ts +3 -0
  44. package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
  45. package/lib/breadcrumb/index.d.ts +2 -0
  46. package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
  47. package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -0
  48. package/lib/breadcrumb-item/index.d.ts +4 -0
  49. package/lib/button/button.d.ts +18 -0
  50. package/lib/button/button.template.d.ts +4 -0
  51. package/lib/button/index.d.ts +4 -0
  52. package/lib/calendar/calendar.d.ts +13 -0
  53. package/lib/calendar/calendar.template.d.ts +4 -0
  54. package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
  55. package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
  56. package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
  57. package/lib/calendar/index.d.ts +2 -0
  58. package/lib/calendar-event/calendar-event.d.ts +14 -0
  59. package/lib/calendar-event/calendar-event.template.d.ts +4 -0
  60. package/lib/calendar-event/index.d.ts +2 -0
  61. package/lib/card/card.d.ts +10 -0
  62. package/lib/card/card.template.d.ts +4 -0
  63. package/lib/card/index.d.ts +4 -0
  64. package/lib/checkbox/checkbox.d.ts +5 -0
  65. package/lib/checkbox/checkbox.template.d.ts +4 -0
  66. package/lib/checkbox/index.d.ts +4 -0
  67. package/lib/components.d.ts +38 -0
  68. package/lib/dialog/dialog.d.ts +20 -0
  69. package/lib/dialog/dialog.template.d.ts +4 -0
  70. package/lib/dialog/index.d.ts +5 -0
  71. package/lib/divider/divider.d.ts +3 -0
  72. package/lib/divider/divider.template.d.ts +4 -0
  73. package/lib/divider/index.d.ts +2 -0
  74. package/lib/elevation/elevation.d.ts +5 -0
  75. package/lib/elevation/elevation.template.d.ts +4 -0
  76. package/lib/elevation/index.d.ts +2 -0
  77. package/lib/enums.d.ts +59 -0
  78. package/lib/fab/fab.d.ts +13 -0
  79. package/lib/fab/fab.template.d.ts +4 -0
  80. package/lib/fab/index.d.ts +4 -0
  81. package/lib/focus/focus.d.ts +3 -0
  82. package/lib/focus/focus.template.d.ts +4 -0
  83. package/lib/focus/index.d.ts +2 -0
  84. package/lib/header/header.d.ts +5 -0
  85. package/lib/header/header.template.d.ts +4 -0
  86. package/lib/header/index.d.ts +3 -0
  87. package/lib/icon/icon.d.ts +12 -0
  88. package/lib/icon/icon.placeholder.d.ts +1 -0
  89. package/lib/icon/icon.template.d.ts +4 -0
  90. package/lib/icon/index.d.ts +2 -0
  91. package/lib/layout/index.d.ts +2 -0
  92. package/lib/layout/layout.d.ts +16 -0
  93. package/lib/layout/layout.template.d.ts +4 -0
  94. package/lib/listbox/index.d.ts +4 -0
  95. package/lib/listbox/listbox.d.ts +9 -0
  96. package/lib/listbox/listbox.template.d.ts +4 -0
  97. package/lib/listbox-option/index.d.ts +4 -0
  98. package/lib/listbox-option/listbox-option.d.ts +9 -0
  99. package/lib/listbox-option/listbox-option.template.d.ts +4 -0
  100. package/lib/menu/index.d.ts +12 -0
  101. package/lib/menu/menu.d.ts +10 -0
  102. package/lib/menu/menu.template.d.ts +3 -0
  103. package/lib/menu-item/index.d.ts +3 -0
  104. package/lib/menu-item/menu-item.d.ts +7 -0
  105. package/lib/menu-item/menu-item.template.d.ts +5 -0
  106. package/lib/nav/index.d.ts +2 -0
  107. package/lib/nav/nav.d.ts +3 -0
  108. package/lib/nav/nav.template.d.ts +4 -0
  109. package/lib/nav-disclosure/index.d.ts +4 -0
  110. package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
  111. package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
  112. package/lib/nav-item/index.d.ts +4 -0
  113. package/lib/nav-item/nav-item.d.ts +6 -0
  114. package/lib/nav-item/nav-item.template.d.ts +4 -0
  115. package/lib/note/index.d.ts +2 -0
  116. package/lib/note/note.d.ts +10 -0
  117. package/lib/note/note.template.d.ts +5 -0
  118. package/lib/number-field/index.d.ts +4 -0
  119. package/lib/number-field/number-field.d.ts +14 -0
  120. package/lib/number-field/number-field.template.d.ts +4 -0
  121. package/lib/popup/index.d.ts +4 -0
  122. package/lib/popup/popup.d.ts +18 -0
  123. package/lib/popup/popup.template.d.ts +4 -0
  124. package/lib/progress/index.d.ts +2 -0
  125. package/lib/progress/progress.d.ts +9 -0
  126. package/lib/progress/progress.template.d.ts +5 -0
  127. package/lib/progress-ring/index.d.ts +2 -0
  128. package/lib/progress-ring/progress-ring.d.ts +7 -0
  129. package/lib/progress-ring/progress-ring.template.d.ts +4 -0
  130. package/lib/radio/index.d.ts +3 -0
  131. package/lib/radio/radio.d.ts +4 -0
  132. package/lib/radio/radio.template.d.ts +4 -0
  133. package/lib/radio-group/index.d.ts +10 -0
  134. package/lib/radio-group/radio-group.d.ts +4 -0
  135. package/lib/radio-group/radio-group.template.d.ts +4 -0
  136. package/lib/side-drawer/index.d.ts +2 -0
  137. package/lib/side-drawer/side-drawer.d.ts +9 -0
  138. package/lib/side-drawer/side-drawer.template.d.ts +4 -0
  139. package/lib/slider/index.d.ts +3 -0
  140. package/lib/slider/slider.d.ts +4 -0
  141. package/lib/slider/slider.template.d.ts +4 -0
  142. package/lib/switch/index.d.ts +4 -0
  143. package/lib/switch/switch.d.ts +7 -0
  144. package/lib/switch/switch.template.d.ts +4 -0
  145. package/lib/text-anchor/index.d.ts +2 -0
  146. package/lib/text-anchor/text-anchor.d.ts +7 -0
  147. package/lib/text-anchor/text-anchor.template.d.ts +4 -0
  148. package/lib/text-area/index.d.ts +4 -0
  149. package/lib/text-area/text-area.d.ts +9 -0
  150. package/lib/text-area/text-area.template.d.ts +4 -0
  151. package/lib/text-field/index.d.ts +4 -0
  152. package/lib/text-field/text-field.d.ts +14 -0
  153. package/lib/text-field/text-field.template.d.ts +5 -0
  154. package/lib/tooltip/index.d.ts +3 -0
  155. package/lib/tooltip/tooltip.d.ts +8 -0
  156. package/lib/tooltip/tooltip.template.d.ts +4 -0
  157. package/listbox/index.js +1090 -0
  158. package/listbox-option/index.js +22 -0
  159. package/menu/index.js +371 -0
  160. package/menu-item/index.js +21 -0
  161. package/nav/index.js +17 -0
  162. package/nav-disclosure/index.js +82 -0
  163. package/nav-item/index.js +46 -0
  164. package/note/index.js +59 -0
  165. package/number-field/index.js +461 -0
  166. package/package.json +65 -323
  167. package/popup/index.js +27 -0
  168. package/progress/index.js +97 -0
  169. package/progress-ring/index.js +76 -0
  170. package/radio/index.js +47 -0
  171. package/radio-group/index.js +435 -0
  172. package/shared/_has.js +58 -0
  173. package/shared/affix.js +24 -0
  174. package/shared/anchor.js +86 -0
  175. package/shared/apply-mixins.js +23 -0
  176. package/shared/aria-global.js +72 -0
  177. package/shared/aria.js +9 -0
  178. package/shared/base-progress.js +70 -0
  179. package/shared/breadcrumb-item.js +25 -0
  180. package/shared/button.js +200 -0
  181. package/shared/calendar-event.js +19 -0
  182. package/shared/class-names.js +15 -0
  183. package/shared/design-system/index.d.ts +3 -0
  184. package/shared/dialog-polyfill.esm.js +858 -0
  185. package/shared/direction.js +20 -0
  186. package/shared/dom.js +8 -0
  187. package/shared/enums.js +70 -0
  188. package/shared/es.object.assign.js +69 -0
  189. package/shared/es.regexp.to-string.js +59 -0
  190. package/shared/export.js +1017 -0
  191. package/shared/focus.js +5 -0
  192. package/shared/focus2.js +11 -0
  193. package/shared/form-associated.js +466 -0
  194. package/shared/form-elements.js +331 -0
  195. package/shared/icon.js +1361 -0
  196. package/shared/index.js +5027 -0
  197. package/shared/index2.js +107 -0
  198. package/shared/index3.js +31 -0
  199. package/shared/index4.js +77 -0
  200. package/shared/index5.js +261 -0
  201. package/shared/index6.js +1525 -0
  202. package/shared/index7.js +349 -0
  203. package/shared/iterators.js +61 -0
  204. package/shared/key-codes.js +97 -0
  205. package/shared/numbers.js +25 -0
  206. package/shared/object-keys.js +13 -0
  207. package/shared/patterns/affix.d.ts +9 -0
  208. package/shared/patterns/focus.d.ts +3 -0
  209. package/shared/patterns/form-elements/form-elements.d.ts +28 -0
  210. package/shared/patterns/form-elements/index.d.ts +1 -0
  211. package/shared/patterns/index.d.ts +3 -0
  212. package/shared/radio.js +127 -0
  213. package/shared/ref.js +41 -0
  214. package/shared/slotted.js +119 -0
  215. package/shared/start-end.js +50 -0
  216. package/shared/string-trim.js +40 -0
  217. package/shared/text-anchor.js +10 -0
  218. package/shared/text-anchor.template.js +55 -0
  219. package/shared/to-string.js +51 -0
  220. package/shared/web.dom-collections.iterator.js +472 -0
  221. package/shared/when.js +15 -0
  222. package/side-drawer/index.js +89 -0
  223. package/slider/index.js +596 -0
  224. package/styles/core/all.css +75 -0
  225. package/styles/core/theme.css +11 -0
  226. package/styles/core/typography.css +69 -0
  227. package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
  228. package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
  229. package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
  230. package/styles/fonts/spezia.css +20 -0
  231. package/styles/tokens/theme-dark.css +230 -0
  232. package/styles/tokens/theme-light.css +230 -0
  233. package/switch/index.js +153 -0
  234. package/text-anchor/index.js +28 -0
  235. package/text-area/index.js +289 -0
  236. package/text-field/index.js +130 -0
  237. package/tooltip/index.js +65 -0
@@ -0,0 +1,72 @@
1
+ import { _ as __decorate, a as attr } from './index.js';
2
+
3
+ /**
4
+ * Some states and properties are applicable to all host language elements regardless of whether a role is applied.
5
+ * The following global states and properties are supported by all roles and by all base markup elements.
6
+ * {@link https://www.w3.org/TR/wai-aria-1.1/#global_states}
7
+ *
8
+ * This is intended to be used as a mixin. Be sure you extend FASTElement.
9
+ *
10
+ * @public
11
+ */
12
+ class ARIAGlobalStatesAndProperties {
13
+ }
14
+ __decorate([
15
+ attr({ attribute: "aria-atomic" })
16
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic", void 0);
17
+ __decorate([
18
+ attr({ attribute: "aria-busy" })
19
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaBusy", void 0);
20
+ __decorate([
21
+ attr({ attribute: "aria-controls" })
22
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaControls", void 0);
23
+ __decorate([
24
+ attr({ attribute: "aria-current" })
25
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent", void 0);
26
+ __decorate([
27
+ attr({ attribute: "aria-describedby" })
28
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby", void 0);
29
+ __decorate([
30
+ attr({ attribute: "aria-details" })
31
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaDetails", void 0);
32
+ __decorate([
33
+ attr({ attribute: "aria-disabled" })
34
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled", void 0);
35
+ __decorate([
36
+ attr({ attribute: "aria-errormessage" })
37
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage", void 0);
38
+ __decorate([
39
+ attr({ attribute: "aria-flowto" })
40
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto", void 0);
41
+ __decorate([
42
+ attr({ attribute: "aria-haspopup" })
43
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup", void 0);
44
+ __decorate([
45
+ attr({ attribute: "aria-hidden" })
46
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaHidden", void 0);
47
+ __decorate([
48
+ attr({ attribute: "aria-invalid" })
49
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid", void 0);
50
+ __decorate([
51
+ attr({ attribute: "aria-keyshortcuts" })
52
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts", void 0);
53
+ __decorate([
54
+ attr({ attribute: "aria-label" })
55
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaLabel", void 0);
56
+ __decorate([
57
+ attr({ attribute: "aria-labelledby" })
58
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby", void 0);
59
+ __decorate([
60
+ attr({ attribute: "aria-live" })
61
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaLive", void 0);
62
+ __decorate([
63
+ attr({ attribute: "aria-owns" })
64
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaOwns", void 0);
65
+ __decorate([
66
+ attr({ attribute: "aria-relevant" })
67
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant", void 0);
68
+ __decorate([
69
+ attr({ attribute: "aria-roledescription" })
70
+ ], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription", void 0);
71
+
72
+ export { ARIAGlobalStatesAndProperties as A };
package/shared/aria.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Standard orientation values
3
+ */
4
+ const Orientation = {
5
+ horizontal: "horizontal",
6
+ vertical: "vertical",
7
+ };
8
+
9
+ export { Orientation as O };
@@ -0,0 +1,70 @@
1
+ import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumberConverter, o as observable } from './index.js';
2
+
3
+ /**
4
+ * An Progress HTML Element.
5
+ * Implements the {@link https://www.w3.org/TR/wai-aria-1.1/#progressbar | ARIA progressbar }.
6
+ *
7
+ * @slot indeterminate - The slot for a custom indeterminate indicator
8
+ * @csspart progress - Represents the progress element
9
+ * @csspart determinate - The determinate indicator
10
+ * @csspart indeterminate - The indeterminate indicator
11
+ *
12
+ * @public
13
+ */
14
+ class BaseProgress extends FoundationElement {
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Indicates progress in %
19
+ * @internal
20
+ */
21
+ this.percentComplete = 0;
22
+ }
23
+ valueChanged() {
24
+ if (this.$fastController.isConnected) {
25
+ this.updatePercentComplete();
26
+ }
27
+ }
28
+ minChanged() {
29
+ if (this.$fastController.isConnected) {
30
+ this.updatePercentComplete();
31
+ }
32
+ }
33
+ maxChanged() {
34
+ if (this.$fastController.isConnected) {
35
+ this.updatePercentComplete();
36
+ }
37
+ }
38
+ /**
39
+ * @internal
40
+ */
41
+ connectedCallback() {
42
+ super.connectedCallback();
43
+ this.updatePercentComplete();
44
+ }
45
+ updatePercentComplete() {
46
+ const min = typeof this.min === "number" ? this.min : 0;
47
+ const max = typeof this.max === "number" ? this.max : 100;
48
+ const value = typeof this.value === "number" ? this.value : 0;
49
+ const range = max - min;
50
+ this.percentComplete =
51
+ range === 0 ? 0 : Math.fround(((value - min) / range) * 100);
52
+ }
53
+ }
54
+ __decorate([
55
+ attr({ converter: nullableNumberConverter })
56
+ ], BaseProgress.prototype, "value", void 0);
57
+ __decorate([
58
+ attr({ converter: nullableNumberConverter })
59
+ ], BaseProgress.prototype, "min", void 0);
60
+ __decorate([
61
+ attr({ converter: nullableNumberConverter })
62
+ ], BaseProgress.prototype, "max", void 0);
63
+ __decorate([
64
+ attr({ mode: "boolean" })
65
+ ], BaseProgress.prototype, "paused", void 0);
66
+ __decorate([
67
+ observable
68
+ ], BaseProgress.prototype, "percentComplete", void 0);
69
+
70
+ export { BaseProgress as B };
@@ -0,0 +1,25 @@
1
+ import { _ as __decorate, o as observable } from './index.js';
2
+ import { A as Anchor, D as DelegatesARIALink } from './anchor.js';
3
+ import { a as applyMixins } from './apply-mixins.js';
4
+ import { S as StartEnd } from './start-end.js';
5
+
6
+ /**
7
+ * A Breadcrumb Item Custom HTML Element.
8
+ *
9
+ * @public
10
+ */
11
+ class BreadcrumbItem extends Anchor {
12
+ constructor() {
13
+ super(...arguments);
14
+ /**
15
+ * @internal
16
+ */
17
+ this.separator = true;
18
+ }
19
+ }
20
+ __decorate([
21
+ observable
22
+ ], BreadcrumbItem.prototype, "separator", void 0);
23
+ applyMixins(BreadcrumbItem, StartEnd, DelegatesARIALink);
24
+
25
+ export { BreadcrumbItem as B };
@@ -0,0 +1,200 @@
1
+ import { F as FoundationElement, _ as __decorate, a as attr, o as observable } from './index.js';
2
+ import { a as applyMixins } from './apply-mixins.js';
3
+ import { F as FormAssociated } from './form-associated.js';
4
+ import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
5
+ import { S as StartEnd } from './start-end.js';
6
+
7
+ class _Button extends FoundationElement {
8
+ }
9
+ /**
10
+ * A form-associated base class for the {@link @microsoft/fast-foundation#(Button:class)} component.
11
+ *
12
+ * @internal
13
+ */
14
+ class FormAssociatedButton extends FormAssociated(_Button) {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.proxy = document.createElement("input");
18
+ }
19
+ }
20
+
21
+ /**
22
+ * A Button Custom HTML Element.
23
+ * Based largely on the {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button | <button> element }.
24
+ *
25
+ * @slot start - Content which can be provided before the button content
26
+ * @slot end - Content which can be provided after the button content
27
+ * @slot - The default slot for button content
28
+ * @csspart control - The button element
29
+ * @csspart content - The element wrapping button content
30
+ *
31
+ * @public
32
+ */
33
+ class Button extends FormAssociatedButton {
34
+ constructor() {
35
+ super(...arguments);
36
+ /**
37
+ * Prevent events to propagate if disabled and has no slotted content wrapped in HTML elements
38
+ * @internal
39
+ */
40
+ this.handleClick = (e) => {
41
+ var _a;
42
+ if (this.disabled && ((_a = this.defaultSlottedContent) === null || _a === void 0 ? void 0 : _a.length) <= 1) {
43
+ e.stopPropagation();
44
+ }
45
+ };
46
+ /**
47
+ * Submits the parent form
48
+ */
49
+ this.handleSubmission = () => {
50
+ if (!this.form) {
51
+ return;
52
+ }
53
+ const attached = this.proxy.isConnected;
54
+ if (!attached) {
55
+ this.attachProxy();
56
+ }
57
+ // Browser support for requestSubmit is not comprehensive
58
+ // so click the proxy if it isn't supported
59
+ typeof this.form.requestSubmit === "function"
60
+ ? this.form.requestSubmit(this.proxy)
61
+ : this.proxy.click();
62
+ if (!attached) {
63
+ this.detachProxy();
64
+ }
65
+ };
66
+ /**
67
+ * Resets the parent form
68
+ */
69
+ this.handleFormReset = () => {
70
+ var _a;
71
+ (_a = this.form) === null || _a === void 0 ? void 0 : _a.reset();
72
+ };
73
+ /**
74
+ * Overrides the focus call for where delegatesFocus is unsupported.
75
+ * This check works for Chrome, Edge Chromium, FireFox, and Safari
76
+ * Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
77
+ */
78
+ this.handleUnsupportedDelegatesFocus = () => {
79
+ var _a;
80
+ // Check to see if delegatesFocus is supported
81
+ if (window.ShadowRoot &&
82
+ !window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
83
+ ((_a = this.$fastController.definition.shadowOptions) === null || _a === void 0 ? void 0 : _a.delegatesFocus)) {
84
+ this.focus = () => {
85
+ this.control.focus();
86
+ };
87
+ }
88
+ };
89
+ }
90
+ formactionChanged() {
91
+ if (this.proxy instanceof HTMLInputElement) {
92
+ this.proxy.formAction = this.formaction;
93
+ }
94
+ }
95
+ formenctypeChanged() {
96
+ if (this.proxy instanceof HTMLInputElement) {
97
+ this.proxy.formEnctype = this.formenctype;
98
+ }
99
+ }
100
+ formmethodChanged() {
101
+ if (this.proxy instanceof HTMLInputElement) {
102
+ this.proxy.formMethod = this.formmethod;
103
+ }
104
+ }
105
+ formnovalidateChanged() {
106
+ if (this.proxy instanceof HTMLInputElement) {
107
+ this.proxy.formNoValidate = this.formnovalidate;
108
+ }
109
+ }
110
+ formtargetChanged() {
111
+ if (this.proxy instanceof HTMLInputElement) {
112
+ this.proxy.formTarget = this.formtarget;
113
+ }
114
+ }
115
+ typeChanged(previous, next) {
116
+ if (this.proxy instanceof HTMLInputElement) {
117
+ this.proxy.type = this.type;
118
+ }
119
+ next === "submit" && this.addEventListener("click", this.handleSubmission);
120
+ previous === "submit" && this.removeEventListener("click", this.handleSubmission);
121
+ next === "reset" && this.addEventListener("click", this.handleFormReset);
122
+ previous === "reset" && this.removeEventListener("click", this.handleFormReset);
123
+ }
124
+ /** {@inheritDoc (FormAssociated:interface).validate} */
125
+ validate() {
126
+ super.validate(this.control);
127
+ }
128
+ /**
129
+ * @internal
130
+ */
131
+ connectedCallback() {
132
+ var _a;
133
+ super.connectedCallback();
134
+ this.proxy.setAttribute("type", this.type);
135
+ this.handleUnsupportedDelegatesFocus();
136
+ const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
137
+ if (elements) {
138
+ elements.forEach((span) => {
139
+ span.addEventListener("click", this.handleClick);
140
+ });
141
+ }
142
+ }
143
+ /**
144
+ * @internal
145
+ */
146
+ disconnectedCallback() {
147
+ var _a;
148
+ super.disconnectedCallback();
149
+ const elements = Array.from((_a = this.control) === null || _a === void 0 ? void 0 : _a.children);
150
+ if (elements) {
151
+ elements.forEach((span) => {
152
+ span.removeEventListener("click", this.handleClick);
153
+ });
154
+ }
155
+ }
156
+ }
157
+ __decorate([
158
+ attr({ mode: "boolean" })
159
+ ], Button.prototype, "autofocus", void 0);
160
+ __decorate([
161
+ attr({ attribute: "form" })
162
+ ], Button.prototype, "formId", void 0);
163
+ __decorate([
164
+ attr
165
+ ], Button.prototype, "formaction", void 0);
166
+ __decorate([
167
+ attr
168
+ ], Button.prototype, "formenctype", void 0);
169
+ __decorate([
170
+ attr
171
+ ], Button.prototype, "formmethod", void 0);
172
+ __decorate([
173
+ attr({ mode: "boolean" })
174
+ ], Button.prototype, "formnovalidate", void 0);
175
+ __decorate([
176
+ attr
177
+ ], Button.prototype, "formtarget", void 0);
178
+ __decorate([
179
+ attr
180
+ ], Button.prototype, "type", void 0);
181
+ __decorate([
182
+ observable
183
+ ], Button.prototype, "defaultSlottedContent", void 0);
184
+ /**
185
+ * Includes ARIA states and properties relating to the ARIA button role
186
+ *
187
+ * @public
188
+ */
189
+ class DelegatesARIAButton {
190
+ }
191
+ __decorate([
192
+ attr({ attribute: "aria-expanded" })
193
+ ], DelegatesARIAButton.prototype, "ariaExpanded", void 0);
194
+ __decorate([
195
+ attr({ attribute: "aria-pressed" })
196
+ ], DelegatesARIAButton.prototype, "ariaPressed", void 0);
197
+ applyMixins(DelegatesARIAButton, ARIAGlobalStatesAndProperties);
198
+ applyMixins(Button, StartEnd, DelegatesARIAButton);
199
+
200
+ export { Button as B };
@@ -0,0 +1,19 @@
1
+ import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, n as nullableNumberConverter } from './index.js';
2
+
3
+ class CalendarEvent extends FoundationElement {}
4
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "heading", void 0);
5
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "description", void 0);
6
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "connotation", void 0);
7
+ __decorate([attr, __metadata("design:type", String)], CalendarEvent.prototype, "appearance", void 0);
8
+ __decorate([attr({
9
+ converter: nullableNumberConverter,
10
+ attribute: 'overlap-count'
11
+ }), __metadata("design:type", Number)], CalendarEvent.prototype, "overlapCount", void 0);
12
+ __decorate([attr({
13
+ converter: nullableNumberConverter
14
+ }), __metadata("design:type", Number)], CalendarEvent.prototype, "start", void 0);
15
+ __decorate([attr({
16
+ converter: nullableNumberConverter
17
+ }), __metadata("design:type", Number)], CalendarEvent.prototype, "duration", void 0);
18
+
19
+ export { CalendarEvent as C };
@@ -0,0 +1,15 @@
1
+ function classNames(...args) {
2
+ return args.reduce((accum, value) => {
3
+ const leadingChar = accum.length ? " " : "";
4
+ const normalizedValue = Array.isArray(value) && value[1]
5
+ ? classNames.call(null, value[0])
6
+ : typeof value === "function"
7
+ ? value()
8
+ : typeof value === "string"
9
+ ? value
10
+ : "";
11
+ return !normalizedValue.length ? accum : accum + leadingChar + normalizedValue;
12
+ }, "");
13
+ }
14
+
15
+ export { classNames as c };
@@ -0,0 +1,3 @@
1
+ import { DesignSystem } from '@microsoft/fast-foundation';
2
+ export declare function provideVividDesignSystem(element?: HTMLElement): DesignSystem;
3
+ export declare const designSystem: DesignSystem;