@vonage/vivid 4.31.0 → 5.0.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 (132) hide show
  1. package/custom-elements.json +116 -169
  2. package/lib/accordion-item/accordion-item.d.ts +42 -1
  3. package/lib/action-group/action-group.d.ts +42 -1
  4. package/lib/alert/alert.d.ts +84 -2
  5. package/lib/audio-player/audio-player.d.ts +42 -1
  6. package/lib/avatar/avatar.d.ts +42 -1
  7. package/lib/badge/badge.d.ts +42 -1
  8. package/lib/banner/banner.d.ts +126 -3
  9. package/lib/breadcrumb/breadcrumb.d.ts +42 -1
  10. package/lib/breadcrumb-item/breadcrumb-item.d.ts +42 -1
  11. package/lib/button/button.d.ts +126 -3
  12. package/lib/calendar-event/calendar-event.d.ts +42 -1
  13. package/lib/card/card.d.ts +42 -1
  14. package/lib/checkbox/checkbox.d.ts +252 -7
  15. package/lib/combobox/combobox.d.ts +252 -6
  16. package/lib/data-grid/data-grid-cell.d.ts +419 -2
  17. package/lib/data-grid/data-grid-row.d.ts +380 -1
  18. package/lib/date-picker/date-picker.d.ts +336 -8
  19. package/lib/date-range-picker/date-range-picker.d.ts +168 -4
  20. package/lib/date-time-picker/date-time-picker.d.ts +336 -8
  21. package/lib/dial-pad/dial-pad.d.ts +42 -1
  22. package/lib/dialog/dialog.d.ts +84 -2
  23. package/lib/divider/divider.d.ts +42 -1
  24. package/lib/fab/fab.d.ts +42 -1
  25. package/lib/file-picker/file-picker.d.ts +252 -6
  26. package/lib/file-picker/locale.d.ts +1 -0
  27. package/lib/header/header.d.ts +42 -1
  28. package/lib/menu/menu.d.ts +84 -2
  29. package/lib/menu-item/menu-item.d.ts +84 -2
  30. package/lib/nav/nav.d.ts +42 -1
  31. package/lib/nav-disclosure/nav-disclosure.d.ts +84 -2
  32. package/lib/nav-item/nav-item.d.ts +84 -2
  33. package/lib/note/note.d.ts +42 -1
  34. package/lib/number-field/number-field.d.ts +336 -8
  35. package/lib/option/option.d.ts +84 -2
  36. package/lib/pagination/pagination.d.ts +42 -1
  37. package/lib/progress/progress.d.ts +42 -1
  38. package/lib/progress-ring/progress-ring.d.ts +42 -1
  39. package/lib/radio/radio.d.ts +126 -4
  40. package/lib/radio-group/radio-group.d.ts +42 -1
  41. package/lib/range-slider/range-slider.d.ts +126 -3
  42. package/lib/rich-text-editor/menubar/menubar.d.ts +42 -1
  43. package/lib/rich-text-editor/rich-text-editor.d.ts +42 -1
  44. package/lib/searchable-select/option-tag.d.ts +42 -1
  45. package/lib/searchable-select/searchable-select.d.ts +336 -8
  46. package/lib/select/select.d.ts +294 -7
  47. package/lib/selectable-box/selectable-box.d.ts +42 -2
  48. package/lib/slider/slider.d.ts +126 -3
  49. package/lib/split-button/split-button.d.ts +126 -3
  50. package/lib/switch/switch.d.ts +84 -2
  51. package/lib/tab/tab.d.ts +126 -3
  52. package/lib/tab-panel/tab-panel.d.ts +42 -1
  53. package/lib/tag/tag.d.ts +126 -3
  54. package/lib/tag-group/tag-group.d.ts +42 -1
  55. package/lib/text-area/text-area.d.ts +294 -7
  56. package/lib/text-field/text-field.d.ts +336 -8
  57. package/lib/time-picker/time-picker.d.ts +168 -4
  58. package/lib/toggletip/toggletip.d.ts +84 -2
  59. package/lib/tooltip/tooltip.d.ts +42 -1
  60. package/lib/tree-item/tree-item.d.ts +84 -2
  61. package/lib/tree-view/tree-view.d.ts +42 -1
  62. package/lib/video-player/video-player.d.ts +42 -1
  63. package/locales/de-DE.cjs +2 -1
  64. package/locales/de-DE.js +2 -1
  65. package/locales/en-GB.cjs +2 -1
  66. package/locales/en-GB.js +2 -1
  67. package/locales/en-US.cjs +2 -1
  68. package/locales/en-US.js +2 -1
  69. package/locales/ja-JP.cjs +2 -1
  70. package/locales/ja-JP.js +2 -1
  71. package/locales/zh-CN.cjs +2 -1
  72. package/locales/zh-CN.js +2 -1
  73. package/package.json +1 -1
  74. package/shared/aria/aria-mixin.d.ts +43 -2
  75. package/shared/aria/attribute-removal.d.ts +3 -0
  76. package/shared/aria/delegate-aria-behavior.d.ts +0 -3
  77. package/shared/aria/delegates-aria.d.ts +42 -1
  78. package/shared/aria/host-semantics.d.ts +42 -1
  79. package/shared/definition15.cjs +5 -1
  80. package/shared/definition15.js +5 -1
  81. package/shared/definition17.cjs +61 -78
  82. package/shared/definition17.js +61 -78
  83. package/shared/definition26.cjs +37 -2
  84. package/shared/definition26.js +37 -2
  85. package/shared/definition30.cjs +8 -4
  86. package/shared/definition30.js +8 -4
  87. package/shared/definition31.cjs +6 -6
  88. package/shared/definition31.js +6 -6
  89. package/shared/definition42.cjs +0 -4
  90. package/shared/definition42.js +0 -4
  91. package/shared/definition47.cjs +0 -8
  92. package/shared/definition47.js +1 -9
  93. package/shared/definition54.cjs +1 -1
  94. package/shared/definition54.js +1 -1
  95. package/shared/definition62.cjs +1 -1
  96. package/shared/definition62.js +1 -1
  97. package/shared/definition63.cjs +1 -2
  98. package/shared/definition63.js +1 -2
  99. package/shared/delegates-aria.cjs +4 -25
  100. package/shared/delegates-aria.js +4 -25
  101. package/shared/divider.cjs +8 -3
  102. package/shared/divider.js +8 -3
  103. package/shared/feedback/feedback-message.d.ts +42 -1
  104. package/shared/feedback/mixins.d.ts +84 -2
  105. package/shared/foundation/button/button.d.ts +84 -2
  106. package/shared/foundation/form-associated/form-associated.d.ts +84 -2
  107. package/shared/foundation/vivid-element/vivid-element.d.ts +43 -2
  108. package/shared/listbox.cjs +1 -1
  109. package/shared/listbox.js +1 -1
  110. package/shared/option.cjs +15 -2
  111. package/shared/option.js +16 -3
  112. package/shared/patterns/affix.d.ts +84 -2
  113. package/shared/patterns/anchored.d.ts +84 -2
  114. package/shared/patterns/char-count/char-count.d.ts +42 -1
  115. package/shared/patterns/form-elements/form-element.d.ts +84 -2
  116. package/shared/patterns/form-elements/with-error-text.d.ts +126 -3
  117. package/shared/patterns/form-elements/with-success-text.d.ts +42 -1
  118. package/shared/patterns/linkable.d.ts +42 -1
  119. package/shared/patterns/localized.d.ts +42 -1
  120. package/shared/patterns/trapped-focus.d.ts +42 -1
  121. package/shared/picker-field/mixins/calendar-picker.d.ts +84 -2
  122. package/shared/picker-field/mixins/calendar-picker.template.d.ts +84 -2
  123. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +42 -1
  124. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +168 -4
  125. package/shared/picker-field/mixins/single-date-picker.d.ts +252 -6
  126. package/shared/picker-field/mixins/single-value-picker.d.ts +84 -2
  127. package/shared/picker-field/mixins/time-selection-picker.d.ts +168 -4
  128. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +168 -4
  129. package/shared/picker-field/picker-field.d.ts +252 -6
  130. package/shared/vivid-element.cjs +56 -5
  131. package/shared/vivid-element.js +56 -5
  132. package/vivid.api.json +2 -93
package/locales/de-DE.js CHANGED
@@ -310,7 +310,8 @@ const deDE = {
310
310
  maxFilesExceededError: "Sie können keine weiteren Dateien auswählen.",
311
311
  fileTooBigError: "Die Datei ist zu groß ({{filesize}}MiB). Maximale Dateigröße: {{maxFilesize}}MiB.",
312
312
  removeFileLabel: "Datei entfernen",
313
- invalidFilesError: "Eine oder mehrere ausgewählte Dateien sind ungültig. Bitte laden Sie nur gültige Dateitypen innerhalb der Größenbeschränkung hoch."
313
+ invalidFilesError: "Eine oder mehrere ausgewählte Dateien sind ungültig. Bitte laden Sie nur gültige Dateitypen innerhalb der Größenbeschränkung hoch.",
314
+ uploadFilesLabel: "Dateien hochladen"
314
315
  },
315
316
  audioPlayer: {
316
317
  playButtonLabel: "Abspielen",
package/locales/en-GB.cjs CHANGED
@@ -144,7 +144,8 @@ const enGB = {
144
144
  maxFilesExceededError: "You can't select any more files.",
145
145
  fileTooBigError: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
146
146
  removeFileLabel: "Remove file",
147
- invalidFilesError: "One or more selected files are invalid. Please upload only valid file types under the size limit."
147
+ invalidFilesError: "One or more selected files are invalid. Please upload only valid file types under the size limit.",
148
+ uploadFilesLabel: "Upload files"
148
149
  },
149
150
  audioPlayer: {
150
151
  playButtonLabel: "Play",
package/locales/en-GB.js CHANGED
@@ -142,7 +142,8 @@ const enGB = {
142
142
  maxFilesExceededError: "You can't select any more files.",
143
143
  fileTooBigError: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
144
144
  removeFileLabel: "Remove file",
145
- invalidFilesError: "One or more selected files are invalid. Please upload only valid file types under the size limit."
145
+ invalidFilesError: "One or more selected files are invalid. Please upload only valid file types under the size limit.",
146
+ uploadFilesLabel: "Upload files"
146
147
  },
147
148
  audioPlayer: {
148
149
  playButtonLabel: "Play",
package/locales/en-US.cjs CHANGED
@@ -312,7 +312,8 @@ const enUS = {
312
312
  maxFilesExceededError: "You can't select any more files.",
313
313
  fileTooBigError: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
314
314
  removeFileLabel: "Remove file",
315
- invalidFilesError: "One or more selected files are invalid. Please, upload only valid file types under the size limit."
315
+ invalidFilesError: "One or more selected files are invalid. Please, upload only valid file types under the size limit.",
316
+ uploadFilesLabel: "Upload files"
316
317
  },
317
318
  audioPlayer: {
318
319
  playButtonLabel: "Play",
package/locales/en-US.js CHANGED
@@ -310,7 +310,8 @@ const enUS = {
310
310
  maxFilesExceededError: "You can't select any more files.",
311
311
  fileTooBigError: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
312
312
  removeFileLabel: "Remove file",
313
- invalidFilesError: "One or more selected files are invalid. Please, upload only valid file types under the size limit."
313
+ invalidFilesError: "One or more selected files are invalid. Please, upload only valid file types under the size limit.",
314
+ uploadFilesLabel: "Upload files"
314
315
  },
315
316
  audioPlayer: {
316
317
  playButtonLabel: "Play",
package/locales/ja-JP.cjs CHANGED
@@ -311,7 +311,8 @@ const jaJP = {
311
311
  maxFilesExceededError: "これ以上ファイルを選択できません。",
312
312
  fileTooBigError: "ファイルが大きすぎます ({{filesize}}MiB)。最大ファイルサイズ: {{maxFilesize}}MiB。",
313
313
  removeFileLabel: "ファイルを削除",
314
- invalidFilesError: "選択したファイルの1つ以上が無効です。サイズ制限以下の有効なファイル形式のみをアップロードしてください。"
314
+ invalidFilesError: "選択したファイルの1つ以上が無効です。サイズ制限以下の有効なファイル形式のみをアップロードしてください。",
315
+ uploadFilesLabel: "ファイルをアップロード"
315
316
  },
316
317
  audioPlayer: {
317
318
  playButtonLabel: "開始",
package/locales/ja-JP.js CHANGED
@@ -309,7 +309,8 @@ const jaJP = {
309
309
  maxFilesExceededError: "これ以上ファイルを選択できません。",
310
310
  fileTooBigError: "ファイルが大きすぎます ({{filesize}}MiB)。最大ファイルサイズ: {{maxFilesize}}MiB。",
311
311
  removeFileLabel: "ファイルを削除",
312
- invalidFilesError: "選択したファイルの1つ以上が無効です。サイズ制限以下の有効なファイル形式のみをアップロードしてください。"
312
+ invalidFilesError: "選択したファイルの1つ以上が無効です。サイズ制限以下の有効なファイル形式のみをアップロードしてください。",
313
+ uploadFilesLabel: "ファイルをアップロード"
313
314
  },
314
315
  audioPlayer: {
315
316
  playButtonLabel: "開始",
package/locales/zh-CN.cjs CHANGED
@@ -313,7 +313,8 @@ const zhCN = {
313
313
  maxFilesExceededError: "您不能再选择任何文件。",
314
314
  fileTooBigError: "文件太大 ({{filesize}}MiB)。最大文件大小: {{maxFilesize}}MiB。",
315
315
  removeFileLabel: "删除文件",
316
- invalidFilesError: "所选的一个或多个文件无效。请仅上传大小限制内的有效文件类型。"
316
+ invalidFilesError: "所选的一个或多个文件无效。请仅上传大小限制内的有效文件类型。",
317
+ uploadFilesLabel: "上传文件"
317
318
  },
318
319
  audioPlayer: {
319
320
  playButtonLabel: "草創",
package/locales/zh-CN.js CHANGED
@@ -311,7 +311,8 @@ const zhCN = {
311
311
  maxFilesExceededError: "您不能再选择任何文件。",
312
312
  fileTooBigError: "文件太大 ({{filesize}}MiB)。最大文件大小: {{maxFilesize}}MiB。",
313
313
  removeFileLabel: "删除文件",
314
- invalidFilesError: "所选的一个或多个文件无效。请仅上传大小限制内的有效文件类型。"
314
+ invalidFilesError: "所选的一个或多个文件无效。请仅上传大小限制内的有效文件类型。",
315
+ uploadFilesLabel: "上传文件"
315
316
  },
316
317
  audioPlayer: {
317
318
  playButtonLabel: "草創",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vivid",
3
- "version": "4.31.0",
3
+ "version": "5.0.0",
4
4
  "type": "module",
5
5
  "module": "./index.js",
6
6
  "main": "./index.cjs",
@@ -6,11 +6,10 @@ export declare const ariaAttributeName: (ariaPropertyName: AriaPropertyName) =>
6
6
  export type VividAriaBehaviour = 'default' | 'delegate' | 'host';
7
7
  export declare const AriaMixin: <T extends Constructor<FASTElement & HTMLElement>>(Base: T) => {
8
8
  new (...args: any[]): {
9
- specialHandling: boolean;
10
9
  _vividAriaBehaviour: VividAriaBehaviour;
10
+ connectedCallback(): void;
11
11
  readonly $fastController: import("@microsoft/fast-element").Controller;
12
12
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
13
- connectedCallback(): void;
14
13
  disconnectedCallback(): void;
15
14
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
16
15
  accessKey: string;
@@ -333,6 +332,48 @@ export declare const AriaMixin: <T extends Constructor<FASTElement & HTMLElement
333
332
  ariaDescription: string | null;
334
333
  ariaRowIndexText: string | null;
335
334
  ariaRelevant: string | null;
335
+ roleChanged(prev: string | null, next: string | null): void;
336
+ ariaAtomicChanged(prev: string | null, next: string | null): void;
337
+ ariaAutoCompleteChanged(prev: string | null, next: string | null): void;
338
+ ariaBusyChanged(prev: string | null, next: string | null): void;
339
+ ariaCheckedChanged(prev: string | null, next: string | null): void;
340
+ ariaColCountChanged(prev: string | null, next: string | null): void;
341
+ ariaColIndexChanged(prev: string | null, next: string | null): void;
342
+ ariaColIndexTextChanged(prev: string | null, next: string | null): void;
343
+ ariaColSpanChanged(prev: string | null, next: string | null): void;
344
+ ariaCurrentChanged(prev: string | null, next: string | null): void;
345
+ ariaDescriptionChanged(prev: string | null, next: string | null): void;
346
+ ariaDisabledChanged(prev: string | null, next: string | null): void;
347
+ ariaExpandedChanged(prev: string | null, next: string | null): void;
348
+ ariaHasPopupChanged(prev: string | null, next: string | null): void;
349
+ ariaHiddenChanged(prev: string | null, next: string | null): void;
350
+ ariaInvalidChanged(prev: string | null, next: string | null): void;
351
+ ariaKeyShortcutsChanged(prev: string | null, next: string | null): void;
352
+ ariaLabelChanged(prev: string | null, next: string | null): void;
353
+ ariaLevelChanged(prev: string | null, next: string | null): void;
354
+ ariaLiveChanged(prev: string | null, next: string | null): void;
355
+ ariaModalChanged(prev: string | null, next: string | null): void;
356
+ ariaMultiLineChanged(prev: string | null, next: string | null): void;
357
+ ariaMultiSelectableChanged(prev: string | null, next: string | null): void;
358
+ ariaOrientationChanged(prev: string | null, next: string | null): void;
359
+ ariaPlaceholderChanged(prev: string | null, next: string | null): void;
360
+ ariaPosInSetChanged(prev: string | null, next: string | null): void;
361
+ ariaPressedChanged(prev: string | null, next: string | null): void;
362
+ ariaReadOnlyChanged(prev: string | null, next: string | null): void;
363
+ ariaRequiredChanged(prev: string | null, next: string | null): void;
364
+ ariaRoleDescriptionChanged(prev: string | null, next: string | null): void;
365
+ ariaRowCountChanged(prev: string | null, next: string | null): void;
366
+ ariaRowIndexChanged(prev: string | null, next: string | null): void;
367
+ ariaRowIndexTextChanged(prev: string | null, next: string | null): void;
368
+ ariaRowSpanChanged(prev: string | null, next: string | null): void;
369
+ ariaSelectedChanged(prev: string | null, next: string | null): void;
370
+ ariaSetSizeChanged(prev: string | null, next: string | null): void;
371
+ ariaSortChanged(prev: string | null, next: string | null): void;
372
+ ariaValueMaxChanged(prev: string | null, next: string | null): void;
373
+ ariaValueMinChanged(prev: string | null, next: string | null): void;
374
+ ariaValueNowChanged(prev: string | null, next: string | null): void;
375
+ ariaValueTextChanged(prev: string | null, next: string | null): void;
376
+ ariaRelevantChanged(prev: string | null, next: string | null): void;
336
377
  };
337
378
  } & T;
338
379
  export type AriaMixinElement = MixinType<typeof AriaMixin>;
@@ -0,0 +1,3 @@
1
+ import { type AriaMixinElement, type AriaPropertyName } from './aria-mixin';
2
+ export declare const handleAriaPropertyChange: (element: AriaMixinElement, ariaProperty: AriaPropertyName) => void;
3
+ export declare const handleElementConnectedCallback: (element: AriaMixinElement) => void;
@@ -10,11 +10,9 @@ export declare class DelegateAriaBehavior<T> implements Behavior {
10
10
  private target;
11
11
  private readonly boundProperties;
12
12
  private readonly forwardedProperties;
13
- private readonly isMitigationDisabled;
14
13
  constructor(target: HTMLElement, params: {
15
14
  boundProperties: BoundAriaProperties<T>;
16
15
  forwardedProperties: Set<AriaPropertyName>;
17
- disableAccessibilityMitigation: boolean;
18
16
  });
19
17
  private source;
20
18
  bind(source: DelegatesAriaElement): void;
@@ -26,6 +24,5 @@ export declare class DelegateAriaBehavior<T> implements Behavior {
26
24
  private stopForwardingPropertiesToTarget;
27
25
  private onSourceAriaPropertyChanged;
28
26
  private forwardPropertyToTarget;
29
- private mitigateAccessibilityIssues;
30
27
  }
31
28
  export {};
@@ -10,7 +10,6 @@ export declare const DelegatesAria: <T extends Constructor<VividElement>>(Base:
10
10
  new (...args: any[]): {
11
11
  _vividAriaBehaviour: "delegate";
12
12
  connectedCallback(): void;
13
- specialHandling: boolean;
14
13
  readonly $fastController: import("@microsoft/fast-element").Controller;
15
14
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
16
15
  disconnectedCallback(): void;
@@ -335,6 +334,48 @@ export declare const DelegatesAria: <T extends Constructor<VividElement>>(Base:
335
334
  ariaDescription: string | null;
336
335
  ariaRowIndexText: string | null;
337
336
  ariaRelevant: string | null;
337
+ roleChanged(prev: string | null, next: string | null): void;
338
+ ariaAtomicChanged(prev: string | null, next: string | null): void;
339
+ ariaAutoCompleteChanged(prev: string | null, next: string | null): void;
340
+ ariaBusyChanged(prev: string | null, next: string | null): void;
341
+ ariaCheckedChanged(prev: string | null, next: string | null): void;
342
+ ariaColCountChanged(prev: string | null, next: string | null): void;
343
+ ariaColIndexChanged(prev: string | null, next: string | null): void;
344
+ ariaColIndexTextChanged(prev: string | null, next: string | null): void;
345
+ ariaColSpanChanged(prev: string | null, next: string | null): void;
346
+ ariaCurrentChanged(prev: string | null, next: string | null): void;
347
+ ariaDescriptionChanged(prev: string | null, next: string | null): void;
348
+ ariaDisabledChanged(prev: string | null, next: string | null): void;
349
+ ariaExpandedChanged(prev: string | null, next: string | null): void;
350
+ ariaHasPopupChanged(prev: string | null, next: string | null): void;
351
+ ariaHiddenChanged(prev: string | null, next: string | null): void;
352
+ ariaInvalidChanged(prev: string | null, next: string | null): void;
353
+ ariaKeyShortcutsChanged(prev: string | null, next: string | null): void;
354
+ ariaLabelChanged(prev: string | null, next: string | null): void;
355
+ ariaLevelChanged(prev: string | null, next: string | null): void;
356
+ ariaLiveChanged(prev: string | null, next: string | null): void;
357
+ ariaModalChanged(prev: string | null, next: string | null): void;
358
+ ariaMultiLineChanged(prev: string | null, next: string | null): void;
359
+ ariaMultiSelectableChanged(prev: string | null, next: string | null): void;
360
+ ariaOrientationChanged(prev: string | null, next: string | null): void;
361
+ ariaPlaceholderChanged(prev: string | null, next: string | null): void;
362
+ ariaPosInSetChanged(prev: string | null, next: string | null): void;
363
+ ariaPressedChanged(prev: string | null, next: string | null): void;
364
+ ariaReadOnlyChanged(prev: string | null, next: string | null): void;
365
+ ariaRequiredChanged(prev: string | null, next: string | null): void;
366
+ ariaRoleDescriptionChanged(prev: string | null, next: string | null): void;
367
+ ariaRowCountChanged(prev: string | null, next: string | null): void;
368
+ ariaRowIndexChanged(prev: string | null, next: string | null): void;
369
+ ariaRowIndexTextChanged(prev: string | null, next: string | null): void;
370
+ ariaRowSpanChanged(prev: string | null, next: string | null): void;
371
+ ariaSelectedChanged(prev: string | null, next: string | null): void;
372
+ ariaSetSizeChanged(prev: string | null, next: string | null): void;
373
+ ariaSortChanged(prev: string | null, next: string | null): void;
374
+ ariaValueMaxChanged(prev: string | null, next: string | null): void;
375
+ ariaValueMinChanged(prev: string | null, next: string | null): void;
376
+ ariaValueNowChanged(prev: string | null, next: string | null): void;
377
+ ariaValueTextChanged(prev: string | null, next: string | null): void;
378
+ ariaRelevantChanged(prev: string | null, next: string | null): void;
338
379
  "__#1@#handleReplacedProp"(replacedProp: {
339
380
  newPropertyName: string;
340
381
  deprecatedPropertyName: string;
@@ -7,7 +7,6 @@ export declare const HostSemantics: <T extends Constructor<VividElement>>(Base:
7
7
  new (...args: any[]): {
8
8
  _vividAriaBehaviour: "host";
9
9
  connectedCallback(): void;
10
- specialHandling: boolean;
11
10
  readonly $fastController: import("@microsoft/fast-element").Controller;
12
11
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
13
12
  disconnectedCallback(): void;
@@ -332,6 +331,48 @@ export declare const HostSemantics: <T extends Constructor<VividElement>>(Base:
332
331
  ariaDescription: string | null;
333
332
  ariaRowIndexText: string | null;
334
333
  ariaRelevant: string | null;
334
+ roleChanged(prev: string | null, next: string | null): void;
335
+ ariaAtomicChanged(prev: string | null, next: string | null): void;
336
+ ariaAutoCompleteChanged(prev: string | null, next: string | null): void;
337
+ ariaBusyChanged(prev: string | null, next: string | null): void;
338
+ ariaCheckedChanged(prev: string | null, next: string | null): void;
339
+ ariaColCountChanged(prev: string | null, next: string | null): void;
340
+ ariaColIndexChanged(prev: string | null, next: string | null): void;
341
+ ariaColIndexTextChanged(prev: string | null, next: string | null): void;
342
+ ariaColSpanChanged(prev: string | null, next: string | null): void;
343
+ ariaCurrentChanged(prev: string | null, next: string | null): void;
344
+ ariaDescriptionChanged(prev: string | null, next: string | null): void;
345
+ ariaDisabledChanged(prev: string | null, next: string | null): void;
346
+ ariaExpandedChanged(prev: string | null, next: string | null): void;
347
+ ariaHasPopupChanged(prev: string | null, next: string | null): void;
348
+ ariaHiddenChanged(prev: string | null, next: string | null): void;
349
+ ariaInvalidChanged(prev: string | null, next: string | null): void;
350
+ ariaKeyShortcutsChanged(prev: string | null, next: string | null): void;
351
+ ariaLabelChanged(prev: string | null, next: string | null): void;
352
+ ariaLevelChanged(prev: string | null, next: string | null): void;
353
+ ariaLiveChanged(prev: string | null, next: string | null): void;
354
+ ariaModalChanged(prev: string | null, next: string | null): void;
355
+ ariaMultiLineChanged(prev: string | null, next: string | null): void;
356
+ ariaMultiSelectableChanged(prev: string | null, next: string | null): void;
357
+ ariaOrientationChanged(prev: string | null, next: string | null): void;
358
+ ariaPlaceholderChanged(prev: string | null, next: string | null): void;
359
+ ariaPosInSetChanged(prev: string | null, next: string | null): void;
360
+ ariaPressedChanged(prev: string | null, next: string | null): void;
361
+ ariaReadOnlyChanged(prev: string | null, next: string | null): void;
362
+ ariaRequiredChanged(prev: string | null, next: string | null): void;
363
+ ariaRoleDescriptionChanged(prev: string | null, next: string | null): void;
364
+ ariaRowCountChanged(prev: string | null, next: string | null): void;
365
+ ariaRowIndexChanged(prev: string | null, next: string | null): void;
366
+ ariaRowIndexTextChanged(prev: string | null, next: string | null): void;
367
+ ariaRowSpanChanged(prev: string | null, next: string | null): void;
368
+ ariaSelectedChanged(prev: string | null, next: string | null): void;
369
+ ariaSetSizeChanged(prev: string | null, next: string | null): void;
370
+ ariaSortChanged(prev: string | null, next: string | null): void;
371
+ ariaValueMaxChanged(prev: string | null, next: string | null): void;
372
+ ariaValueMinChanged(prev: string | null, next: string | null): void;
373
+ ariaValueNowChanged(prev: string | null, next: string | null): void;
374
+ ariaValueTextChanged(prev: string | null, next: string | null): void;
375
+ ariaRelevantChanged(prev: string | null, next: string | null): void;
335
376
  "__#1@#handleReplacedProp"(replacedProp: {
336
377
  newPropertyName: string;
337
378
  deprecatedPropertyName: string;
@@ -92,7 +92,11 @@ class Checkbox extends delegatesAria.DelegatesAria(
92
92
  this.proxy.readOnly = this.readOnly;
93
93
  }
94
94
  }
95
- ariaCheckedChanged() {
95
+ /**
96
+ * @internal
97
+ */
98
+ ariaCheckedChanged(oldValue, newValue) {
99
+ super.ariaCheckedChanged(oldValue, newValue);
96
100
  if (this.ariaChecked === "mixed") {
97
101
  this.indeterminate = true;
98
102
  } else {
@@ -90,7 +90,11 @@ class Checkbox extends DelegatesAria(
90
90
  this.proxy.readOnly = this.readOnly;
91
91
  }
92
92
  }
93
- ariaCheckedChanged() {
93
+ /**
94
+ * @internal
95
+ */
96
+ ariaCheckedChanged(oldValue, newValue) {
97
+ super.ariaCheckedChanged(oldValue, newValue);
94
98
  if (this.ariaChecked === "mixed") {
95
99
  this.indeterminate = true;
96
100
  } else {
@@ -5,6 +5,7 @@ const vividElement = require('./vivid-element.cjs');
5
5
  const definition = require('./definition66.cjs');
6
6
  const keyCodes = require('./key-codes.cjs');
7
7
  const repeat = require('./repeat.cjs');
8
+ const hostSemantics = require('./host-semantics.cjs');
8
9
  const children = require('./children.cjs');
9
10
  const slotted = require('./slotted.cjs');
10
11
  const localized = require('./localized.cjs');
@@ -72,7 +73,7 @@ const defaultHeaderCellContentsTemplate = vividElement.html`
72
73
  ${(x) => x.columnDefinition.title === void 0 ? x.columnDefinition.columnDataKey : x.columnDefinition.title}
73
74
  </template>
74
75
  `;
75
- class DataGridCell extends localized.Localized(vividElement.VividElement) {
76
+ class DataGridCell extends localized.Localized(hostSemantics.HostSemantics(vividElement.VividElement)) {
76
77
  constructor() {
77
78
  super(...arguments);
78
79
  // eslint-disable-next-line @repo/repo/no-attribute-default-value
@@ -90,7 +91,21 @@ class DataGridCell extends localized.Localized(vividElement.VividElement) {
90
91
  };
91
92
  this._selectable = false;
92
93
  this.selected = false;
94
+ /**
95
+ * Indicates the selected status.
96
+ *
97
+ * @deprecated For setting selected state, please use `selected` property instead.
98
+ * @public
99
+ * HTML Attribute: aria-selected
100
+ */
93
101
  this.ariaSelected = null;
102
+ /**
103
+ * Indicates the sort status.
104
+ *
105
+ * @deprecated To set the sorting visual style please use `sortDirection` property.
106
+ * @public
107
+ * HTML Attribute: aria-sort
108
+ */
94
109
  this.ariaSort = null;
95
110
  }
96
111
  /**
@@ -280,54 +295,25 @@ class DataGridCell extends localized.Localized(vividElement.VividElement) {
280
295
  this.customCellView = null;
281
296
  }
282
297
  }
283
- /**
284
- *
285
- * @private
286
- */
287
- calculateAriaSelectedValue() {
288
- if (this._selectable && this.selected) return "true";
289
- if (this._selectable && !this.selected) return "false";
290
- return null;
291
- }
292
- /**
293
- * @internal
294
- */
295
- _selectableChanged() {
296
- this.ariaSelected = this.calculateAriaSelectedValue();
297
- }
298
- /**
299
- * @internal
300
- */
301
- selectedChanged() {
302
- this.ariaSelected = this.calculateAriaSelectedValue();
303
- }
304
298
  /**
305
299
  * @internal
306
300
  */
307
- ariaSelectedChanged(_, newValue) {
301
+ ariaSelectedChanged(prevValue, newValue) {
302
+ super.ariaSelectedChanged(prevValue, newValue);
308
303
  this._selectable = newValue !== null;
309
304
  this.selected = newValue === "true";
310
305
  }
311
306
  /**
312
307
  * @internal
313
308
  */
314
- ariaSortChanged(_oldValue, newValue) {
309
+ ariaSortChanged(oldValue, newValue) {
310
+ super.ariaSortChanged(oldValue, newValue);
315
311
  if (newValue === null) {
316
312
  this.sortDirection = void 0;
317
313
  return;
318
314
  }
319
315
  this.sortDirection = newValue;
320
316
  }
321
- /**
322
- * @internal
323
- */
324
- sortDirectionChanged(_oldValue, newValue) {
325
- if (newValue === void 0) {
326
- this.ariaSort = null;
327
- return;
328
- }
329
- this.ariaSort = newValue;
330
- }
331
317
  #getColumnDataKey() {
332
318
  return this.columnDefinition && this.columnDefinition.columnDataKey ? this.columnDefinition.columnDataKey : this.textContent.trim();
333
319
  }
@@ -373,12 +359,6 @@ __decorateClass$2([
373
359
  __decorateClass$2([
374
360
  vividElement.attr({ mode: "boolean" })
375
361
  ], DataGridCell.prototype, "selected");
376
- __decorateClass$2([
377
- vividElement.attr({ attribute: "aria-selected", mode: "fromView" })
378
- ], DataGridCell.prototype, "ariaSelected");
379
- __decorateClass$2([
380
- vividElement.attr({ attribute: "aria-sort" })
381
- ], DataGridCell.prototype, "ariaSort");
382
362
  __decorateClass$2([
383
363
  vividElement.attr({ attribute: "sort-direction" })
384
364
  ], DataGridCell.prototype, "sortDirection");
@@ -392,7 +372,7 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
392
372
  if (result) __defProp$1(target, key, result);
393
373
  return result;
394
374
  };
395
- class DataGridRow extends vividElement.VividElement {
375
+ class DataGridRow extends hostSemantics.HostSemantics(vividElement.VividElement) {
396
376
  constructor() {
397
377
  super(...arguments);
398
378
  // eslint-disable-next-line @repo/repo/no-attribute-default-value
@@ -408,6 +388,13 @@ class DataGridRow extends vividElement.VividElement {
408
388
  this.updateRowStyle = () => {
409
389
  this.style.gridTemplateColumns = this.gridTemplateColumns;
410
390
  };
391
+ /**
392
+ * Indicates the selected status.
393
+ *
394
+ * @deprecated
395
+ * @public
396
+ * HTML Attribute: aria-selected
397
+ */
411
398
  this.ariaSelected = null;
412
399
  this._selectable = false;
413
400
  this.selected = false;
@@ -521,30 +508,11 @@ class DataGridRow extends vividElement.VividElement {
521
508
  /**
522
509
  * @internal
523
510
  */
524
- ariaSelectedChanged(_oldValue, newValue) {
511
+ ariaSelectedChanged(oldValue, newValue) {
512
+ super.ariaSelectedChanged(oldValue, newValue);
525
513
  this._selectable = newValue !== null;
526
514
  this.selected = newValue === "true";
527
515
  }
528
- /**
529
- * @internal
530
- */
531
- _calculateAriaSelectedValue() {
532
- if (this._selectable && this.selected) return "true";
533
- if (this._selectable && !this.selected) return "false";
534
- return null;
535
- }
536
- /**
537
- * @internal
538
- */
539
- _selectableChanged() {
540
- this.ariaSelected = this._calculateAriaSelectedValue();
541
- }
542
- /**
543
- * @internal
544
- */
545
- selectedChanged() {
546
- this.ariaSelected = this._calculateAriaSelectedValue();
547
- }
548
516
  }
549
517
  // @ts-expect-error Type is incorrectly non-optional
550
518
  __decorateClass$1([
@@ -580,9 +548,6 @@ __decorateClass$1([
580
548
  __decorateClass$1([
581
549
  vividElement.observable
582
550
  ], DataGridRow.prototype, "cellElements");
583
- __decorateClass$1([
584
- vividElement.attr({ attribute: "aria-selected" })
585
- ], DataGridRow.prototype, "ariaSelected");
586
551
  __decorateClass$1([
587
552
  vividElement.observable
588
553
  ], DataGridRow.prototype, "_selectable");
@@ -640,7 +605,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
640
605
  );
641
606
  const focusRow = this.rowElements[focusRowIndex];
642
607
  const cells = focusRow.querySelectorAll(
643
- '[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"], [cell-type]'
608
+ '[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"], [data-vvd-component="data-grid-cell"]'
644
609
  );
645
610
  const focusColumnIndex = Math.max(
646
611
  0,
@@ -656,7 +621,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
656
621
  if (mutations && mutations.length) {
657
622
  mutations.forEach((mutation) => {
658
623
  mutation.addedNodes.forEach((newNode) => {
659
- if (newNode.nodeType === 1 && newNode.getAttribute("role") === "row") {
624
+ if (newNode.nodeType === 1 && (newNode.getAttribute("role") === "row" || newNode.getAttribute("row-type") === "default")) {
660
625
  newNode.columnDefinitions = this.columnDefinitions;
661
626
  }
662
627
  });
@@ -698,7 +663,8 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
698
663
  }
699
664
  };
700
665
  this.#handleClick = ({ target, ctrlKey, shiftKey, metaKey }) => {
701
- if (target.getAttribute("role") !== "gridcell") return;
666
+ if (target.getAttribute("role") !== "gridcell" || target.getAttribute("cell-type") !== "default")
667
+ return;
702
668
  if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
703
669
  this.#handleCellSelection({ target, ctrlKey, shiftKey, metaKey });
704
670
  return;
@@ -751,10 +717,10 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
751
717
  */
752
718
  this._resetSelection = (clear = false) => {
753
719
  const cells = Array.from(
754
- this.querySelectorAll('[role="gridcell"], [cell-type]')
720
+ this.querySelectorAll('[role="gridcell"], [cell-type="default"]')
755
721
  );
756
722
  const rows = Array.from(
757
- this.querySelectorAll('[role="row"], [row-type]')
723
+ this.querySelectorAll('[role="row"], [row-type="default"]')
758
724
  );
759
725
  if (this.selectionMode === DataGridSelectionMode.singleCell || this.selectionMode === DataGridSelectionMode.multiCell) {
760
726
  for (const cell of cells) {
@@ -1158,7 +1124,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
1158
1124
  applyFixedColumnStyling() {
1159
1125
  this.rowElements.forEach((row) => {
1160
1126
  const cells = row.querySelectorAll(
1161
- '[role="cell"], [role="gridcell"], [role="columnheader"]'
1127
+ '[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]'
1162
1128
  );
1163
1129
  this.fixedColumnsPositions.forEach((position, index) => {
1164
1130
  if (index < cells.length) {
@@ -1178,7 +1144,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
1178
1144
  this.fixedColumnsPositions = [];
1179
1145
  if (this.rowElements.length === 0) return;
1180
1146
  const cells = this.rowElements[0].querySelectorAll(
1181
- '[role="cell"], [role="gridcell"], [role="columnheader"]'
1147
+ '[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]'
1182
1148
  );
1183
1149
  let accumulator = 0;
1184
1150
  for (let i = 0; i < Math.min(this.fixedColumns, cells.length); i++) {
@@ -1197,7 +1163,7 @@ const _DataGrid = class _DataGrid extends vividElement.VividElement {
1197
1163
  }
1198
1164
  this.rowElements.forEach((row) => {
1199
1165
  const cells = row.querySelectorAll(
1200
- '[role="cell"], [role="gridcell"], [role="columnheader"]'
1166
+ '[role="cell"], [role="gridcell"], [role="columnheader"], [cell-type="default"], [cell-type="columnheader"]'
1201
1167
  );
1202
1168
  this.fixedColumnsPositions.forEach((_, index) => {
1203
1169
  if (index < cells.length) {
@@ -1305,7 +1271,7 @@ const DataGridTemplate = (context) => {
1305
1271
  :defaultRowItemTemplate="${rowItemTemplate}"
1306
1272
  ${children.children({
1307
1273
  property: "rowElements",
1308
- filter: slotted.elements("[role=row]")
1274
+ filter: slotted.elements("[role=row],[data-vvd-component=data-grid-row]")
1309
1275
  })}
1310
1276
  >
1311
1277
  <div class="base">
@@ -1316,6 +1282,11 @@ const DataGridTemplate = (context) => {
1316
1282
  `;
1317
1283
  };
1318
1284
 
1285
+ function calculateAriaSelectedValue$1(x) {
1286
+ if (x._selectable && x.selected) return "true";
1287
+ if (x._selectable && !x.selected) return "false";
1288
+ return null;
1289
+ }
1319
1290
  function createCellItemTemplate(context) {
1320
1291
  const cellTag = context.tagFor(DataGridCell);
1321
1292
  return vividElement.html`
@@ -1344,14 +1315,17 @@ const DataGridRowTemplate = (context) => {
1344
1315
  const getBaseClasses = (x) => classNames.classNames("base", ["selected", !!x.selected]);
1345
1316
  return vividElement.html`
1346
1317
  <template
1347
- role="row"
1318
+ ${hostSemantics.applyHostSemantics({
1319
+ role: "row",
1320
+ ariaSelected: calculateAriaSelectedValue$1
1321
+ })}
1348
1322
  class="${(x) => x.rowType !== "default" ? x.rowType : ""}"
1349
1323
  :defaultCellItemTemplate="${cellItemTemplate}"
1350
1324
  :defaultHeaderCellItemTemplate="${headerCellItemTemplate}"
1351
1325
  ${children.children({
1352
1326
  property: "cellElements",
1353
1327
  filter: slotted.elements(
1354
- '[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],[cell-type]'
1328
+ '[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"],[data-vvd-component="data-grid-cell"]'
1355
1329
  )
1356
1330
  })}
1357
1331
  >
@@ -1377,6 +1351,11 @@ function getSortIcon(x) {
1377
1351
  }
1378
1352
  return "sort-solid";
1379
1353
  }
1354
+ function calculateAriaSelectedValue(x) {
1355
+ if (x._selectable && x.selected) return "true";
1356
+ if (x._selectable && !x.selected) return "false";
1357
+ return null;
1358
+ }
1380
1359
  function renderSortIcons(c) {
1381
1360
  const iconTag = c.tagFor(definition$1.Icon);
1382
1361
  return vividElement.html`
@@ -1400,7 +1379,11 @@ const DataGridCellTemplate = (context) => {
1400
1379
  return vividElement.html`
1401
1380
  <template
1402
1381
  tabindex="-1"
1403
- role="${(x) => DataGridCellRole[x.cellType] ?? DataGridCellRole.default}"
1382
+ ${hostSemantics.applyHostSemantics({
1383
+ role: (x) => DataGridCellRole[x.cellType] ?? DataGridCellRole.default,
1384
+ ariaSelected: calculateAriaSelectedValue,
1385
+ ariaSort: (x) => x.sortDirection ?? null
1386
+ })}
1404
1387
  @click="${(x) => x._handleInteraction()}"
1405
1388
  @keydown="${(x, c) => handleKeyDown(x, c.event)}"
1406
1389
  >
@@ -1408,7 +1391,7 @@ const DataGridCellTemplate = (context) => {
1408
1391
  class="${getBaseClasses}"
1409
1392
  role="${(x) => shouldShowSortIcons(x) ? "button" : void 0}"
1410
1393
  >
1411
- ${(x) => x.ariaSelected === "true" ? vividElement.html`<${visuallyHiddenTagName}>${(x2) => x2.locale.dataGrid.cell.selected}</${visuallyHiddenTagName}>` : null}
1394
+ ${(x) => x.selected ? vividElement.html`<${visuallyHiddenTagName}>${(x2) => x2.locale.dataGrid.cell.selected}</${visuallyHiddenTagName}>` : null}
1412
1395
  <slot></slot>
1413
1396
  ${when.when(
1414
1397
  shouldShowSortIcons,