@vonage/vivid 4.22.0 → 4.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/custom-elements.json +1658 -370
  2. package/lib/accordion-item/accordion-item.d.ts +11 -5
  3. package/lib/action-group/action-group.d.ts +8 -6
  4. package/lib/alert/alert.d.ts +21 -9
  5. package/lib/audio-player/audio-player.d.ts +11 -5
  6. package/lib/badge/badge.d.ts +11 -5
  7. package/lib/banner/banner.d.ts +26 -12
  8. package/lib/breadcrumb/breadcrumb.d.ts +333 -1
  9. package/lib/breadcrumb/breadcrumb.template.d.ts +2 -3
  10. package/lib/breadcrumb-item/breadcrumb-item.d.ts +8 -6
  11. package/lib/button/button.d.ts +11 -5
  12. package/lib/calendar-event/calendar-event.d.ts +333 -1
  13. package/lib/checkbox/checkbox.d.ts +8 -6
  14. package/lib/combobox/combobox.d.ts +11 -5
  15. package/lib/date-picker/date-picker.d.ts +74 -50
  16. package/lib/date-range-picker/date-range-picker.d.ts +38 -26
  17. package/lib/date-time-picker/date-time-picker.d.ts +76 -52
  18. package/lib/dial-pad/dial-pad.d.ts +11 -5
  19. package/lib/dialog/dialog.d.ts +16 -8
  20. package/lib/divider/divider.d.ts +8 -6
  21. package/lib/fab/fab.d.ts +11 -5
  22. package/lib/file-picker/file-picker.d.ts +337 -1
  23. package/lib/file-picker/locale.d.ts +1 -0
  24. package/lib/header/header.d.ts +333 -1
  25. package/lib/menu/menu.d.ts +16 -8
  26. package/lib/menu-item/menu-item.d.ts +338 -2
  27. package/lib/nav/nav.d.ts +333 -1
  28. package/lib/nav-disclosure/nav-disclosure.d.ts +16 -8
  29. package/lib/nav-item/nav-item.d.ts +11 -5
  30. package/lib/note/note.d.ts +11 -5
  31. package/lib/number-field/number-field.d.ts +26 -12
  32. package/lib/option/option.d.ts +339 -3
  33. package/lib/progress/progress.d.ts +8 -6
  34. package/lib/progress-ring/progress-ring.d.ts +8 -6
  35. package/lib/radio-group/radio-group.d.ts +333 -1
  36. package/lib/range-slider/range-slider.d.ts +11 -5
  37. package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +1 -1
  38. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +7 -1
  39. package/lib/rich-text-editor/locale.d.ts +9 -0
  40. package/lib/rich-text-editor/menubar/consts.d.ts +18 -0
  41. package/lib/rich-text-editor/menubar/menubar.d.ts +337 -1
  42. package/lib/rich-text-editor/rich-text-editor.d.ts +10 -0
  43. package/lib/searchable-select/locale.d.ts +1 -0
  44. package/lib/searchable-select/option-tag.d.ts +11 -5
  45. package/lib/searchable-select/searchable-select.d.ts +350 -7
  46. package/lib/select/select.d.ts +339 -3
  47. package/lib/selectable-box/selectable-box.d.ts +8 -6
  48. package/lib/slider/slider.d.ts +16 -8
  49. package/lib/split-button/split-button.d.ts +26 -12
  50. package/lib/switch/switch.d.ts +8 -6
  51. package/lib/tab/tab.d.ts +349 -7
  52. package/lib/tab-panel/tab-panel.d.ts +333 -1
  53. package/lib/tabs/tabs.d.ts +5 -21
  54. package/lib/tag/tag.d.ts +338 -2
  55. package/lib/tag-group/tag-group.d.ts +8 -6
  56. package/lib/text-anchor/text-anchor.d.ts +16 -8
  57. package/lib/text-area/text-area.d.ts +8 -6
  58. package/lib/text-field/text-field.d.ts +16 -8
  59. package/lib/time-picker/time-picker.d.ts +38 -26
  60. package/lib/toggletip/toggletip.d.ts +9 -3
  61. package/lib/tooltip/tooltip.d.ts +9 -3
  62. package/lib/tree-item/tree-item.d.ts +338 -2
  63. package/lib/tree-view/tree-view.d.ts +333 -1
  64. package/lib/video-player/video-player.d.ts +11 -5
  65. package/locales/de-DE.cjs +15 -1
  66. package/locales/de-DE.js +15 -1
  67. package/locales/en-GB.cjs +15 -1
  68. package/locales/en-GB.js +15 -1
  69. package/locales/en-US.cjs +15 -1
  70. package/locales/en-US.js +15 -1
  71. package/locales/ja-JP.cjs +15 -1
  72. package/locales/ja-JP.js +15 -1
  73. package/locales/zh-CN.cjs +15 -1
  74. package/locales/zh-CN.js +15 -1
  75. package/package.json +1 -1
  76. package/shared/affix.js +1 -1
  77. package/shared/aria/aria-change-subscription.d.ts +6 -0
  78. package/shared/aria/aria-mixin.d.ts +338 -0
  79. package/shared/aria/delegate-aria-behavior.d.ts +31 -0
  80. package/shared/aria/delegates-aria.d.ts +14 -9
  81. package/shared/aria/host-semantics-behavior.d.ts +22 -0
  82. package/shared/aria/host-semantics.d.ts +337 -0
  83. package/shared/attribute-binding-behaviour.cjs +41 -0
  84. package/shared/attribute-binding-behaviour.js +39 -0
  85. package/shared/button.cjs +6 -3
  86. package/shared/button.js +6 -3
  87. package/shared/calendar-event.cjs +2 -1
  88. package/shared/calendar-event.js +2 -1
  89. package/shared/definition.js +1 -1
  90. package/shared/definition10.cjs +8 -2
  91. package/shared/definition10.js +9 -3
  92. package/shared/definition11.cjs +4 -28
  93. package/shared/definition11.js +5 -29
  94. package/shared/definition12.cjs +5 -2
  95. package/shared/definition12.js +6 -3
  96. package/shared/definition13.js +1 -1
  97. package/shared/definition14.js +1 -1
  98. package/shared/definition15.cjs +8 -7
  99. package/shared/definition15.js +10 -9
  100. package/shared/definition16.js +1 -1
  101. package/shared/definition17.cjs +4 -1
  102. package/shared/definition17.js +5 -2
  103. package/shared/definition18.js +1 -1
  104. package/shared/definition19.js +1 -1
  105. package/shared/definition2.js +1 -1
  106. package/shared/definition20.js +1 -1
  107. package/shared/definition21.js +1 -1
  108. package/shared/definition22.cjs +11 -4
  109. package/shared/definition22.js +13 -6
  110. package/shared/definition23.cjs +4 -2
  111. package/shared/definition23.js +6 -4
  112. package/shared/definition24.js +1 -1
  113. package/shared/definition25.cjs +2 -14
  114. package/shared/definition25.js +3 -15
  115. package/shared/definition26.cjs +19 -3
  116. package/shared/definition26.js +20 -4
  117. package/shared/definition27.cjs +3 -2
  118. package/shared/definition27.js +4 -3
  119. package/shared/definition28.js +1 -1
  120. package/shared/definition29.js +1 -1
  121. package/shared/definition3.cjs +3 -2
  122. package/shared/definition3.js +5 -4
  123. package/shared/definition30.cjs +33 -34
  124. package/shared/definition30.js +35 -36
  125. package/shared/definition31.cjs +6 -4
  126. package/shared/definition31.js +8 -6
  127. package/shared/definition32.js +1 -1
  128. package/shared/definition33.cjs +7 -2
  129. package/shared/definition33.js +8 -3
  130. package/shared/definition34.js +1 -1
  131. package/shared/definition35.cjs +2 -13
  132. package/shared/definition35.js +4 -15
  133. package/shared/definition36.cjs +8 -5
  134. package/shared/definition36.js +9 -6
  135. package/shared/definition37.js +1 -1
  136. package/shared/definition38.cjs +7 -8
  137. package/shared/definition38.js +9 -10
  138. package/shared/definition39.cjs +7 -8
  139. package/shared/definition39.js +9 -10
  140. package/shared/definition4.js +1 -1
  141. package/shared/definition40.cjs +8 -5
  142. package/shared/definition40.js +9 -6
  143. package/shared/definition41.js +1 -1
  144. package/shared/definition42.js +1 -1
  145. package/shared/definition43.cjs +558 -134
  146. package/shared/definition43.js +550 -126
  147. package/shared/definition44.cjs +83 -10
  148. package/shared/definition44.js +84 -11
  149. package/shared/definition45.cjs +20 -8
  150. package/shared/definition45.js +21 -9
  151. package/shared/definition46.cjs +18 -6
  152. package/shared/definition46.js +20 -8
  153. package/shared/definition47.js +1 -1
  154. package/shared/definition48.js +1 -1
  155. package/shared/definition49.cjs +10 -3
  156. package/shared/definition49.js +12 -5
  157. package/shared/definition5.cjs +7 -2
  158. package/shared/definition5.js +8 -3
  159. package/shared/definition50.cjs +8 -7
  160. package/shared/definition50.js +10 -9
  161. package/shared/definition51.cjs +3 -2
  162. package/shared/definition51.js +4 -3
  163. package/shared/definition52.cjs +8 -4
  164. package/shared/definition52.js +9 -5
  165. package/shared/definition53.cjs +219 -297
  166. package/shared/definition53.js +221 -299
  167. package/shared/definition54.cjs +4 -3
  168. package/shared/definition54.js +6 -5
  169. package/shared/definition55.cjs +7 -4
  170. package/shared/definition55.js +8 -5
  171. package/shared/definition56.cjs +68 -14
  172. package/shared/definition56.js +69 -15
  173. package/shared/definition57.cjs +163 -112
  174. package/shared/definition57.js +165 -114
  175. package/shared/definition58.js +1 -1
  176. package/shared/definition59.js +1 -1
  177. package/shared/definition6.js +1 -1
  178. package/shared/definition60.js +1 -1
  179. package/shared/definition61.cjs +8 -5
  180. package/shared/definition61.js +9 -6
  181. package/shared/definition62.cjs +5 -2
  182. package/shared/definition62.js +6 -3
  183. package/shared/definition63.js +1 -1
  184. package/shared/definition64.js +1 -1
  185. package/shared/definition65.js +1 -1
  186. package/shared/definition7.js +1 -1
  187. package/shared/definition8.cjs +4 -2
  188. package/shared/definition8.js +6 -4
  189. package/shared/definition9.js +1 -1
  190. package/shared/delegates-aria.cjs +106 -56
  191. package/shared/delegates-aria.js +107 -58
  192. package/shared/foundation/button/button.d.ts +8 -6
  193. package/shared/foundation/vivid-element/vivid-element.d.ts +339 -1
  194. package/shared/host-semantics.cjs +65 -0
  195. package/shared/host-semantics.js +62 -0
  196. package/shared/localization/Locale.d.ts +2 -0
  197. package/shared/option.cjs +4 -1
  198. package/shared/option.js +4 -1
  199. package/shared/patterns/affix.d.ts +22 -10
  200. package/shared/patterns/anchored.d.ts +18 -6
  201. package/shared/patterns/localized.d.ts +11 -5
  202. package/shared/patterns/trapped-focus.d.ts +11 -5
  203. package/shared/picker-field/mixins/calendar-picker.d.ts +19 -13
  204. package/shared/picker-field/mixins/calendar-picker.template.d.ts +19 -13
  205. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +11 -5
  206. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +38 -26
  207. package/shared/picker-field/mixins/single-date-picker.d.ts +55 -37
  208. package/shared/picker-field/mixins/single-value-picker.d.ts +17 -11
  209. package/shared/picker-field/mixins/time-selection-picker.d.ts +38 -26
  210. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +38 -26
  211. package/shared/picker-field/picker-field.d.ts +21 -9
  212. package/shared/picker-field.template.js +1 -1
  213. package/shared/repeat.js +1 -1
  214. package/shared/slider.template.cjs +10 -9
  215. package/shared/slider.template.js +10 -9
  216. package/shared/templating/attribute-binding-behaviour.d.ts +15 -0
  217. package/shared/templating/render-in-light-dom.d.ts +22 -0
  218. package/shared/text-anchor.template.cjs +2 -13
  219. package/shared/text-anchor.template.js +2 -13
  220. package/shared/time-selection-picker.template.js +1 -1
  221. package/shared/vivid-element.cjs +96 -2
  222. package/shared/vivid-element.js +93 -3
  223. package/styles/core/all.css +1 -1
  224. package/styles/core/theme.css +1 -1
  225. package/styles/core/typography.css +1 -1
  226. package/styles/tokens/theme-dark.css +4 -4
  227. package/styles/tokens/theme-light.css +4 -4
  228. package/styles/tokens/vivid-2-compat.css +1 -1
  229. package/text-anchor/index.js +1 -1
  230. package/vivid.api.json +188 -17
  231. package/shared/Reflector.cjs +0 -71
  232. package/shared/Reflector.js +0 -69
package/locales/zh-CN.js CHANGED
@@ -299,7 +299,8 @@ const zhCN = {
299
299
  invalidFileTypeError: "您不能选择此类型的文件。",
300
300
  maxFilesExceededError: "您不能再选择任何文件。",
301
301
  fileTooBigError: "文件太大 ({{filesize}}MiB)。最大文件大小: {{maxFilesize}}MiB。",
302
- removeFileLabel: "删除文件"
302
+ removeFileLabel: "删除文件",
303
+ invalidFilesError: "所选的一个或多个文件无效。请仅上传大小限制内的有效文件类型。"
303
304
  },
304
305
  audioPlayer: {
305
306
  playButtonLabel: "草創",
@@ -370,7 +371,20 @@ const zhCN = {
370
371
  optionFocusedMessage: (
371
372
  /* istanbul ignore next */
372
373
  (name, position, total) => `选项 ${name} 已聚焦, ${position} 的 ${total}。`
374
+ ),
375
+ maxSelectedMessage: (
376
+ /* istanbul ignore next */
377
+ (total, limit) => `已选择 ${limit} 个中的 ${total} 个。`
373
378
  )
379
+ },
380
+ richTextEditor: {
381
+ textBlockType: "文本块类型",
382
+ textSize: "文字大小",
383
+ bold: "加粗",
384
+ italics: "斜体",
385
+ underline: "下划线",
386
+ strikethrough: "删除线",
387
+ monospace: "等宽字体"
374
388
  }
375
389
  };
376
390
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vivid",
3
- "version": "4.22.0",
3
+ "version": "4.24.0",
4
4
  "type": "module",
5
5
  "module": "./index.js",
6
6
  "main": "./index.cjs",
package/shared/affix.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { I as Icon } from './definition28.js';
2
2
  import { s as slotted } from './slotted.js';
3
- import { a as attr, h as html, o as observable } from './vivid-element.js';
3
+ import { a as attr, o as observable, h as html } from './vivid-element.js';
4
4
 
5
5
  var __defProp = Object.defineProperty;
6
6
  var __decorateClass = (decorators, target, key, kind) => {
@@ -0,0 +1,6 @@
1
+ import type { AriaMixinElement, AriaPropertyName } from './aria-mixin';
2
+ type AriaChangeSubscriber = (source: AriaMixinElement, changedAriaProperty: AriaPropertyName) => void;
3
+ export declare const subscribeToAriaPropertyChanges: (source: AriaMixinElement, listener: AriaChangeSubscriber) => void;
4
+ export declare const unsubscribeFromAriaPropertyChanges: (source: AriaMixinElement, listener: AriaChangeSubscriber) => void;
5
+ export declare const publishAriaPropertyChange: (source: AriaMixinElement, changedAriaProperty: AriaPropertyName) => void;
6
+ export {};
@@ -0,0 +1,338 @@
1
+ import { type FASTElement } from '@microsoft/fast-element';
2
+ import type { Constructor, MixinType } from '../utils/mixins';
3
+ export declare const ariaMixinProperties: readonly ["role", "ariaAtomic", "ariaAutoComplete", "ariaBusy", "ariaChecked", "ariaColCount", "ariaColIndex", "ariaColIndexText", "ariaColSpan", "ariaCurrent", "ariaDescription", "ariaDisabled", "ariaExpanded", "ariaHasPopup", "ariaHidden", "ariaInvalid", "ariaKeyShortcuts", "ariaLabel", "ariaLevel", "ariaLive", "ariaModal", "ariaMultiLine", "ariaMultiSelectable", "ariaOrientation", "ariaPlaceholder", "ariaPosInSet", "ariaPressed", "ariaReadOnly", "ariaRequired", "ariaRoleDescription", "ariaRowCount", "ariaRowIndex", "ariaRowIndexText", "ariaRowSpan", "ariaSelected", "ariaSetSize", "ariaSort", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText", "ariaRelevant"];
4
+ export type AriaPropertyName = typeof ariaMixinProperties[number];
5
+ export declare const ariaAttributeName: (ariaPropertyName: AriaPropertyName) => string;
6
+ export type VividAriaBehaviour = 'default' | 'delegate' | 'host';
7
+ export declare const AriaMixin: <T extends Constructor<FASTElement & HTMLElement>>(Base: T) => {
8
+ new (...args: any[]): {
9
+ specialHandling: boolean;
10
+ _vividAriaBehaviour: VividAriaBehaviour;
11
+ readonly $fastController: import("@microsoft/fast-element").Controller;
12
+ $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
13
+ connectedCallback(): void;
14
+ disconnectedCallback(): void;
15
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
16
+ accessKey: string;
17
+ readonly accessKeyLabel: string;
18
+ autocapitalize: string;
19
+ dir: string;
20
+ draggable: boolean;
21
+ hidden: boolean;
22
+ inert: boolean;
23
+ innerText: string;
24
+ lang: string;
25
+ readonly offsetHeight: number;
26
+ readonly offsetLeft: number;
27
+ readonly offsetParent: Element | null;
28
+ readonly offsetTop: number;
29
+ readonly offsetWidth: number;
30
+ outerText: string;
31
+ spellcheck: boolean;
32
+ title: string;
33
+ translate: boolean;
34
+ attachInternals(): ElementInternals;
35
+ click(): void;
36
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
37
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
38
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
39
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
40
+ dropzone: import("dropzone");
41
+ readonly attributes: NamedNodeMap;
42
+ readonly classList: DOMTokenList;
43
+ className: string;
44
+ readonly clientHeight: number;
45
+ readonly clientLeft: number;
46
+ readonly clientTop: number;
47
+ readonly clientWidth: number;
48
+ id: string;
49
+ readonly localName: string;
50
+ readonly namespaceURI: string | null;
51
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
52
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
53
+ outerHTML: string;
54
+ readonly ownerDocument: Document;
55
+ readonly part: DOMTokenList;
56
+ readonly prefix: string | null;
57
+ readonly scrollHeight: number;
58
+ scrollLeft: number;
59
+ scrollTop: number;
60
+ readonly scrollWidth: number;
61
+ readonly shadowRoot: ShadowRoot | null;
62
+ slot: string;
63
+ readonly tagName: string;
64
+ attachShadow(init: ShadowRootInit): ShadowRoot;
65
+ checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
66
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
67
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
68
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
69
+ closest<E extends Element = Element>(selectors: string): E | null;
70
+ getAttribute(qualifiedName: string): string | null;
71
+ getAttributeNS(namespace: string | null, localName: string): string | null;
72
+ getAttributeNames(): string[];
73
+ getAttributeNode(qualifiedName: string): Attr | null;
74
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
75
+ getBoundingClientRect(): DOMRect;
76
+ getClientRects(): DOMRectList;
77
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
78
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
79
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
80
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
81
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
82
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
83
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
84
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
85
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
86
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
87
+ hasAttribute(qualifiedName: string): boolean;
88
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
89
+ hasAttributes(): boolean;
90
+ hasPointerCapture(pointerId: number): boolean;
91
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
92
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
93
+ insertAdjacentText(where: InsertPosition, data: string): void;
94
+ matches(selectors: string): boolean;
95
+ releasePointerCapture(pointerId: number): void;
96
+ removeAttribute(qualifiedName: string): void;
97
+ removeAttributeNS(namespace: string | null, localName: string): void;
98
+ removeAttributeNode(attr: Attr): Attr;
99
+ requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
100
+ requestPointerLock(): void;
101
+ scroll(options?: ScrollToOptions | undefined): void;
102
+ scroll(x: number, y: number): void;
103
+ scrollBy(options?: ScrollToOptions | undefined): void;
104
+ scrollBy(x: number, y: number): void;
105
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
106
+ scrollTo(options?: ScrollToOptions | undefined): void;
107
+ scrollTo(x: number, y: number): void;
108
+ setAttribute(qualifiedName: string, value: string): void;
109
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
110
+ setAttributeNode(attr: Attr): Attr | null;
111
+ setAttributeNodeNS(attr: Attr): Attr | null;
112
+ setPointerCapture(pointerId: number): void;
113
+ toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
114
+ webkitMatchesSelector(selectors: string): boolean;
115
+ readonly baseURI: string;
116
+ readonly childNodes: NodeListOf<ChildNode>;
117
+ readonly firstChild: ChildNode | null;
118
+ readonly isConnected: boolean;
119
+ readonly lastChild: ChildNode | null;
120
+ readonly nextSibling: ChildNode | null;
121
+ readonly nodeName: string;
122
+ readonly nodeType: number;
123
+ nodeValue: string | null;
124
+ readonly parentElement: HTMLElement | null;
125
+ readonly parentNode: ParentNode | null;
126
+ readonly previousSibling: ChildNode | null;
127
+ textContent: string | null;
128
+ appendChild<T_1 extends Node>(node: T_1): T_1;
129
+ cloneNode(deep?: boolean | undefined): Node;
130
+ compareDocumentPosition(other: Node): number;
131
+ contains(other: Node | null): boolean;
132
+ getRootNode(options?: GetRootNodeOptions | undefined): Node;
133
+ hasChildNodes(): boolean;
134
+ insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2;
135
+ isDefaultNamespace(namespace: string | null): boolean;
136
+ isEqualNode(otherNode: Node | null): boolean;
137
+ isSameNode(otherNode: Node | null): boolean;
138
+ lookupNamespaceURI(prefix: string | null): string | null;
139
+ lookupPrefix(namespace: string | null): string | null;
140
+ normalize(): void;
141
+ removeChild<T_3 extends Node>(child: T_3): T_3;
142
+ replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
143
+ readonly ELEMENT_NODE: 1;
144
+ readonly ATTRIBUTE_NODE: 2;
145
+ readonly TEXT_NODE: 3;
146
+ readonly CDATA_SECTION_NODE: 4;
147
+ readonly ENTITY_REFERENCE_NODE: 5;
148
+ readonly ENTITY_NODE: 6;
149
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
150
+ readonly COMMENT_NODE: 8;
151
+ readonly DOCUMENT_NODE: 9;
152
+ readonly DOCUMENT_TYPE_NODE: 10;
153
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
154
+ readonly NOTATION_NODE: 12;
155
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
156
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
157
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
158
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
159
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
160
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
161
+ dispatchEvent(event: Event): boolean;
162
+ ariaAtomic: string | null;
163
+ ariaAutoComplete: string | null;
164
+ ariaBusy: string | null;
165
+ ariaChecked: string | null;
166
+ ariaColCount: string | null;
167
+ ariaColIndex: string | null;
168
+ ariaColSpan: string | null;
169
+ ariaCurrent: string | null;
170
+ ariaDisabled: string | null;
171
+ ariaExpanded: string | null;
172
+ ariaHasPopup: string | null;
173
+ ariaHidden: string | null;
174
+ ariaInvalid: string | null;
175
+ ariaKeyShortcuts: string | null;
176
+ ariaLabel: string | null;
177
+ ariaLevel: string | null;
178
+ ariaLive: string | null;
179
+ ariaModal: string | null;
180
+ ariaMultiLine: string | null;
181
+ ariaMultiSelectable: string | null;
182
+ ariaOrientation: string | null;
183
+ ariaPlaceholder: string | null;
184
+ ariaPosInSet: string | null;
185
+ ariaPressed: string | null;
186
+ ariaReadOnly: string | null;
187
+ ariaRequired: string | null;
188
+ ariaRoleDescription: string | null;
189
+ ariaRowCount: string | null;
190
+ ariaRowIndex: string | null;
191
+ ariaRowSpan: string | null;
192
+ ariaSelected: string | null;
193
+ ariaSetSize: string | null;
194
+ ariaSort: string | null;
195
+ ariaValueMax: string | null;
196
+ ariaValueMin: string | null;
197
+ ariaValueNow: string | null;
198
+ ariaValueText: string | null;
199
+ role: string | null;
200
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
201
+ getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
202
+ after(...nodes: (string | Node)[]): void;
203
+ before(...nodes: (string | Node)[]): void;
204
+ remove(): void;
205
+ replaceWith(...nodes: (string | Node)[]): void;
206
+ innerHTML: string;
207
+ readonly nextElementSibling: Element | null;
208
+ readonly previousElementSibling: Element | null;
209
+ readonly childElementCount: number;
210
+ readonly children: HTMLCollection;
211
+ readonly firstElementChild: Element | null;
212
+ readonly lastElementChild: Element | null;
213
+ append(...nodes: (string | Node)[]): void;
214
+ prepend(...nodes: (string | Node)[]): void;
215
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
216
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
217
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
218
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
219
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
220
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
221
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
222
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
223
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
224
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
225
+ replaceChildren(...nodes: (string | Node)[]): void;
226
+ readonly assignedSlot: HTMLSlotElement | null;
227
+ readonly style: CSSStyleDeclaration;
228
+ contentEditable: string;
229
+ enterKeyHint: string;
230
+ inputMode: string;
231
+ readonly isContentEditable: boolean;
232
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
233
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
234
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
235
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
236
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
237
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
238
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
239
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
240
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
241
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
242
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
243
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
244
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
245
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
246
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
247
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
248
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
249
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
250
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
251
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
252
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
253
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
254
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
255
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
256
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
257
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
258
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
259
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
261
+ onerror: OnErrorEventHandler;
262
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
263
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
264
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
265
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
266
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
267
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
268
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
269
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
270
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
275
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
276
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
277
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
278
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
279
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
280
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
281
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
282
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
283
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
285
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
286
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
287
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
288
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
289
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
290
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
291
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
292
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
293
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
294
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
295
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
296
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
297
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
298
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
300
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
308
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
309
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
310
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
311
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
312
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
313
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
314
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
315
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
316
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
317
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
318
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
319
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
326
+ autofocus: boolean;
327
+ readonly dataset: DOMStringMap;
328
+ nonce?: string | undefined;
329
+ tabIndex: number;
330
+ blur(): void;
331
+ focus(options?: FocusOptions | undefined): void;
332
+ ariaColIndexText: string | null;
333
+ ariaDescription: string | null;
334
+ ariaRowIndexText: string | null;
335
+ ariaRelevant: string | null;
336
+ };
337
+ } & T;
338
+ export type AriaMixinElement = MixinType<typeof AriaMixin>;
@@ -0,0 +1,31 @@
1
+ import { type Behavior } from '@microsoft/fast-element';
2
+ import type { DelegatesAriaElement } from './delegates-aria';
3
+ import { type AriaPropertyName } from './aria-mixin';
4
+ type BoundValue = string | null | undefined | boolean | number;
5
+ type AriaBinding<T> = BoundValue | ((x: T) => BoundValue);
6
+ export type BoundAriaProperties<T> = Partial<{
7
+ [Property in AriaPropertyName]: AriaBinding<T>;
8
+ }>;
9
+ export declare class DelegateAriaBehavior<T> implements Behavior {
10
+ private target;
11
+ private readonly boundProperties;
12
+ private readonly forwardedProperties;
13
+ private readonly isMitigationDisabled;
14
+ constructor(target: HTMLElement, params: {
15
+ boundProperties: BoundAriaProperties<T>;
16
+ forwardedProperties: Set<AriaPropertyName>;
17
+ disableAccessibilityMitigation: boolean;
18
+ });
19
+ private source;
20
+ bind(source: DelegatesAriaElement): void;
21
+ unbind(): void;
22
+ private bindingBehaviours;
23
+ private bindPropertiesToTarget;
24
+ private releasePropertyBindings;
25
+ private startForwardingPropertiesToTarget;
26
+ private stopForwardingPropertiesToTarget;
27
+ private onSourceAriaPropertyChanged;
28
+ private forwardPropertyToTarget;
29
+ private mitigateAccessibilityIssues;
30
+ }
31
+ export {};
@@ -1,10 +1,20 @@
1
+ import { type CaptureType } from '@microsoft/fast-element';
1
2
  import type { Constructor, MixinType } from '../utils/mixins';
2
3
  import { VividElement } from '../foundation/vivid-element/vivid-element';
3
- declare const ariaMixinProperties: readonly ["role", "ariaAtomic", "ariaAutoComplete", "ariaBusy", "ariaChecked", "ariaColCount", "ariaColIndex", "ariaColIndexText", "ariaColSpan", "ariaCurrent", "ariaDescription", "ariaDisabled", "ariaExpanded", "ariaHasPopup", "ariaHidden", "ariaInvalid", "ariaKeyShortcuts", "ariaLabel", "ariaLevel", "ariaLive", "ariaModal", "ariaMultiLine", "ariaMultiSelectable", "ariaOrientation", "ariaPlaceholder", "ariaPosInSet", "ariaPressed", "ariaReadOnly", "ariaRequired", "ariaRoleDescription", "ariaRowCount", "ariaRowIndex", "ariaRowIndexText", "ariaRowSpan", "ariaSelected", "ariaSetSize", "ariaSort", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText", "ariaRelevant"];
4
- export type AriaPropertyName = typeof ariaMixinProperties[number];
5
- export declare const ariaAttributeName: (ariaPropertyName: AriaPropertyName) => string;
4
+ import { type BoundAriaProperties } from './delegate-aria-behavior';
5
+ type DelegateAriaOptions = {
6
+ onlySpecified?: boolean;
7
+ };
8
+ export declare function delegateAria<T>(boundProperties?: BoundAriaProperties<T>, options?: DelegateAriaOptions): CaptureType<T>;
6
9
  export declare const DelegatesAria: <T extends Constructor<VividElement>>(Base: T) => {
7
- new (...rest: any[]): {
10
+ new (...args: any[]): {
11
+ _vividAriaBehaviour: "delegate";
12
+ specialHandling: boolean;
13
+ readonly $fastController: import("@microsoft/fast-element").Controller;
14
+ $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
15
+ connectedCallback(): void;
16
+ disconnectedCallback(): void;
17
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
8
18
  accessKey: string;
9
19
  readonly accessKeyLabel: string;
10
20
  autocapitalize: string;
@@ -321,11 +331,6 @@ export declare const DelegatesAria: <T extends Constructor<VividElement>>(Base:
321
331
  tabIndex: number;
322
332
  blur(): void;
323
333
  focus(options?: FocusOptions | undefined): void;
324
- readonly $fastController: import("@microsoft/fast-element").Controller;
325
- $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
326
- connectedCallback(): void;
327
- disconnectedCallback(): void;
328
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
329
334
  ariaColIndexText: string | null;
330
335
  ariaDescription: string | null;
331
336
  ariaRowIndexText: string | null;
@@ -0,0 +1,22 @@
1
+ import type { Behavior } from '@microsoft/fast-element';
2
+ import { type AriaPropertyName } from './aria-mixin';
3
+ import type { HostSemanticsElement } from './host-semantics';
4
+ type BoundValue = string | null | undefined | boolean | number;
5
+ type AriaBinding<T> = BoundValue | ((x: T) => BoundValue);
6
+ export type BoundAriaProperties<T> = Partial<{
7
+ [Property in AriaPropertyName]: AriaBinding<T>;
8
+ }>;
9
+ export declare class HostSemanticsBehavior<T> implements Behavior {
10
+ private target;
11
+ private readonly boundProperties;
12
+ constructor(target: HTMLElement, params: {
13
+ boundProperties: BoundAriaProperties<T>;
14
+ forwardedProperties: Set<AriaPropertyName>;
15
+ });
16
+ bind(source: HostSemanticsElement): void;
17
+ unbind(source: HostSemanticsElement): void;
18
+ private bindingBehaviours;
19
+ private bindPropertiesToTarget;
20
+ private releasePropertyBindings;
21
+ }
22
+ export {};