@vonage/vivid 5.18.0 → 5.19.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 (559) hide show
  1. package/accordion/definition.cjs +0 -1
  2. package/accordion/definition.js +0 -1
  3. package/accordion/index.cjs +2 -2
  4. package/accordion/index.js +3 -4
  5. package/accordion-item/definition.cjs +0 -1
  6. package/accordion-item/definition.js +0 -1
  7. package/accordion-item/index.cjs +1 -1
  8. package/accordion-item/index.js +0 -2
  9. package/action-group/index.cjs +4 -4
  10. package/action-group/index.js +7 -7
  11. package/alert/definition.cjs +0 -1
  12. package/alert/definition.js +0 -1
  13. package/alert/index.cjs +5 -5
  14. package/alert/index.js +20 -21
  15. package/audio-player/definition.cjs +0 -1
  16. package/audio-player/definition.js +0 -1
  17. package/audio-player/index.cjs +13 -13
  18. package/audio-player/index.js +76 -77
  19. package/avatar/definition.cjs +0 -1
  20. package/avatar/definition.js +0 -1
  21. package/avatar/index.cjs +8 -8
  22. package/avatar/index.js +20 -21
  23. package/badge/definition.cjs +0 -1
  24. package/badge/definition.js +0 -1
  25. package/badge/index.cjs +1 -1
  26. package/badge/index.js +0 -2
  27. package/banner/definition.cjs +0 -1
  28. package/banner/definition.js +0 -1
  29. package/banner/index.cjs +4 -4
  30. package/banner/index.js +17 -18
  31. package/breadcrumb/index.cjs +2 -2
  32. package/breadcrumb/index.js +3 -3
  33. package/breadcrumb-item/definition.cjs +0 -1
  34. package/breadcrumb-item/definition.js +0 -1
  35. package/breadcrumb-item/index.cjs +5 -5
  36. package/breadcrumb-item/index.js +7 -8
  37. package/bundled/affix.cjs +2 -2
  38. package/bundled/affix.js +1 -1
  39. package/bundled/anchored.cjs +1 -1
  40. package/bundled/anchored.js +1 -1
  41. package/bundled/aria-binding-directive.cjs +1 -0
  42. package/bundled/aria-binding-directive.js +29 -0
  43. package/bundled/base-color-picker.cjs +3 -3
  44. package/bundled/base-color-picker.js +1 -1
  45. package/bundled/base-progress.cjs +1 -1
  46. package/bundled/base-progress.js +2 -2
  47. package/bundled/breadcrumb-item.cjs +1 -1
  48. package/bundled/breadcrumb-item.js +3 -3
  49. package/bundled/button.cjs +1 -1
  50. package/bundled/button.js +3 -3
  51. package/bundled/calendar-event.cjs +1 -1
  52. package/bundled/calendar-event.js +4 -4
  53. package/bundled/calendar-picker.template.cjs +20 -20
  54. package/bundled/calendar-picker.template.js +10 -10
  55. package/bundled/char-count.cjs +2 -2
  56. package/bundled/char-count.js +3 -3
  57. package/bundled/children.cjs +1 -1
  58. package/bundled/children.js +6 -6
  59. package/bundled/decorate.js +1 -1
  60. package/bundled/definition.cjs +1 -1
  61. package/bundled/definition.js +2 -2
  62. package/bundled/definition10.cjs +3 -3
  63. package/bundled/definition10.js +19 -19
  64. package/bundled/definition11.cjs +2 -2
  65. package/bundled/definition11.js +7 -7
  66. package/bundled/definition12.cjs +7 -7
  67. package/bundled/definition12.js +16 -16
  68. package/bundled/definition13.cjs +3 -3
  69. package/bundled/definition13.js +6 -6
  70. package/bundled/definition14.cjs +2 -2
  71. package/bundled/definition14.js +3 -3
  72. package/bundled/definition15.cjs +6 -6
  73. package/bundled/definition15.js +14 -14
  74. package/bundled/definition16.cjs +3 -3
  75. package/bundled/definition16.js +19 -19
  76. package/bundled/definition17.cjs +7 -7
  77. package/bundled/definition17.js +14 -14
  78. package/bundled/definition18.cjs +7 -7
  79. package/bundled/definition18.js +20 -20
  80. package/bundled/definition19.cjs +2 -2
  81. package/bundled/definition19.js +3 -3
  82. package/bundled/definition2.cjs +3 -3
  83. package/bundled/definition2.js +11 -11
  84. package/bundled/definition20.cjs +8 -8
  85. package/bundled/definition20.js +16 -17
  86. package/bundled/definition21.cjs +5 -5
  87. package/bundled/definition21.js +26 -26
  88. package/bundled/definition22.cjs +3 -3
  89. package/bundled/definition22.js +8 -8
  90. package/bundled/definition23.cjs +4 -4
  91. package/bundled/definition23.js +9 -9
  92. package/bundled/definition24.cjs +5 -5
  93. package/bundled/definition24.js +15 -15
  94. package/bundled/definition3.cjs +1 -1
  95. package/bundled/definition3.js +33 -33
  96. package/bundled/definition4.cjs +4 -4
  97. package/bundled/definition4.js +11 -11
  98. package/bundled/definition5.cjs +5 -5
  99. package/bundled/definition5.js +10 -10
  100. package/bundled/definition6.cjs +7 -7
  101. package/bundled/definition6.js +30 -30
  102. package/bundled/definition7.cjs +2 -2
  103. package/bundled/definition7.js +6 -6
  104. package/bundled/definition8.cjs +4 -4
  105. package/bundled/definition8.js +15 -15
  106. package/bundled/definition9.cjs +2 -2
  107. package/bundled/definition9.js +18 -18
  108. package/bundled/delegates-aria.cjs +1 -1
  109. package/bundled/delegates-aria.js +10 -49
  110. package/bundled/divider.cjs +1 -1
  111. package/bundled/divider.js +3 -3
  112. package/bundled/form-associated.cjs +1 -1
  113. package/bundled/form-associated.js +6 -6
  114. package/bundled/form-element.cjs +1 -1
  115. package/bundled/form-element.js +8 -6
  116. package/bundled/host-semantics.cjs +1 -1
  117. package/bundled/host-semantics.js +10 -39
  118. package/bundled/linkable.cjs +2 -2
  119. package/bundled/linkable.js +1 -1
  120. package/bundled/listbox.cjs +1 -1
  121. package/bundled/listbox.js +12 -12
  122. package/bundled/localized.cjs +1 -1
  123. package/bundled/localized.js +6 -6
  124. package/bundled/mixins.cjs +6 -6
  125. package/bundled/mixins.js +9 -9
  126. package/bundled/normalize.cjs +1 -1
  127. package/bundled/normalize.js +2 -2
  128. package/bundled/picker-field.template.cjs +1 -1
  129. package/bundled/picker-field.template.js +24 -23
  130. package/bundled/ref.cjs +1 -1
  131. package/bundled/ref.js +1 -1
  132. package/bundled/repeat.cjs +1 -1
  133. package/bundled/repeat.js +54 -54
  134. package/bundled/slider.template.cjs +7 -7
  135. package/bundled/slider.template.js +13 -13
  136. package/bundled/slottable-request.cjs +1 -1
  137. package/bundled/slottable-request.js +1 -1
  138. package/bundled/slotted.cjs +1 -1
  139. package/bundled/slotted.js +1 -1
  140. package/bundled/text-field.cjs +1 -1
  141. package/bundled/text-field.js +1 -1
  142. package/bundled/time-selection-picker.template.cjs +4 -4
  143. package/bundled/time-selection-picker.template.js +23 -23
  144. package/bundled/vivid-element.cjs +1 -1
  145. package/bundled/vivid-element.js +21 -19
  146. package/bundled/when.cjs +1 -1
  147. package/bundled/when.js +1 -1
  148. package/bundled/with-contextual-help.cjs +1 -1
  149. package/bundled/with-contextual-help.js +1 -1
  150. package/bundled/with-error-text.cjs +1 -1
  151. package/bundled/with-error-text.js +1 -1
  152. package/bundled/with-success-text.cjs +1 -1
  153. package/bundled/with-success-text.js +1 -1
  154. package/button/definition.cjs +0 -1
  155. package/button/definition.js +0 -1
  156. package/button/index.cjs +1 -1
  157. package/button/index.js +0 -2
  158. package/calendar/index.cjs +8 -8
  159. package/calendar/index.js +10 -10
  160. package/calendar-event/index.cjs +6 -6
  161. package/calendar-event/index.js +8 -8
  162. package/card/definition.cjs +0 -1
  163. package/card/definition.js +0 -1
  164. package/card/index.cjs +14 -14
  165. package/card/index.js +33 -34
  166. package/checkbox/definition.cjs +0 -1
  167. package/checkbox/definition.js +0 -1
  168. package/checkbox/index.cjs +1 -1
  169. package/checkbox/index.js +0 -2
  170. package/color-picker/definition.cjs +0 -1
  171. package/color-picker/definition.js +0 -1
  172. package/color-picker/index.cjs +15 -15
  173. package/color-picker/index.js +42 -42
  174. package/combobox/definition.cjs +0 -1
  175. package/combobox/definition.js +0 -1
  176. package/combobox/index.cjs +4 -4
  177. package/combobox/index.js +20 -21
  178. package/contextual-help/definition.cjs +0 -1
  179. package/contextual-help/definition.js +0 -1
  180. package/contextual-help/index.cjs +1 -1
  181. package/contextual-help/index.js +0 -2
  182. package/country/definition.cjs +0 -1
  183. package/country/definition.js +0 -1
  184. package/country/index.cjs +1 -1
  185. package/country/index.js +0 -2
  186. package/country-group/definition.cjs +0 -1
  187. package/country-group/definition.js +0 -1
  188. package/country-group/index.cjs +4 -4
  189. package/country-group/index.js +29 -29
  190. package/custom-elements.json +2544 -2688
  191. package/data-grid/definition.cjs +0 -1
  192. package/data-grid/definition.js +0 -1
  193. package/data-grid/index.cjs +14 -14
  194. package/data-grid/index.js +103 -104
  195. package/date-picker/definition.cjs +0 -1
  196. package/date-picker/definition.js +0 -1
  197. package/date-picker/index.cjs +1 -1
  198. package/date-picker/index.js +2 -3
  199. package/date-range-picker/definition.cjs +0 -1
  200. package/date-range-picker/definition.js +0 -1
  201. package/date-range-picker/index.cjs +1 -1
  202. package/date-range-picker/index.js +6 -7
  203. package/date-time-picker/definition.cjs +0 -1
  204. package/date-time-picker/definition.js +0 -1
  205. package/date-time-picker/index.cjs +2 -2
  206. package/date-time-picker/index.js +8 -9
  207. package/dial-pad/definition.cjs +0 -1
  208. package/dial-pad/definition.js +0 -1
  209. package/dial-pad/index.cjs +8 -8
  210. package/dial-pad/index.js +16 -17
  211. package/dialog/definition.cjs +0 -1
  212. package/dialog/definition.js +0 -1
  213. package/dialog/index.cjs +13 -10
  214. package/dialog/index.js +35 -33
  215. package/divider/index.cjs +1 -1
  216. package/divider/index.js +0 -1
  217. package/elevation/index.cjs +1 -1
  218. package/elevation/index.js +0 -1
  219. package/empty-state/definition.cjs +0 -1
  220. package/empty-state/definition.js +0 -1
  221. package/empty-state/index.cjs +4 -4
  222. package/empty-state/index.js +9 -10
  223. package/fab/definition.cjs +0 -1
  224. package/fab/definition.js +0 -1
  225. package/fab/index.cjs +3 -3
  226. package/fab/index.js +9 -10
  227. package/file-picker/definition.cjs +0 -1
  228. package/file-picker/definition.js +0 -1
  229. package/file-picker/index.cjs +7 -7
  230. package/file-picker/index.js +22 -23
  231. package/flag/definition.cjs +0 -1
  232. package/flag/definition.js +0 -1
  233. package/flag/index.cjs +3 -3
  234. package/flag/index.js +11 -11
  235. package/header/index.cjs +5 -5
  236. package/header/index.js +11 -11
  237. package/icon/definition.cjs +0 -1
  238. package/icon/definition.js +0 -1
  239. package/icon/index.cjs +1 -1
  240. package/icon/index.js +0 -2
  241. package/index.cjs +0 -1
  242. package/index.js +0 -1
  243. package/layout/index.cjs +2 -2
  244. package/layout/index.js +3 -3
  245. package/lib/avatar/avatar.d.ts +1 -1
  246. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  247. package/lib/button/button.d.ts +1 -1
  248. package/lib/card/card.d.ts +1 -1
  249. package/lib/nav-item/nav-item.d.ts +1 -1
  250. package/lib/rich-text-editor/rte/utils/ui.d.ts +2 -1
  251. package/locales/de-DE.cjs +1 -1
  252. package/locales/en-GB.cjs +1 -1
  253. package/locales/en-US.cjs +1 -1
  254. package/locales/ja-JP.cjs +1 -1
  255. package/locales/zh-CN.cjs +1 -1
  256. package/menu/definition.cjs +0 -1
  257. package/menu/definition.js +0 -1
  258. package/menu/index.cjs +1 -1
  259. package/menu/index.js +0 -2
  260. package/menu-item/definition.cjs +0 -1
  261. package/menu-item/definition.js +0 -1
  262. package/menu-item/index.cjs +1 -1
  263. package/menu-item/index.js +0 -2
  264. package/nav/index.cjs +2 -2
  265. package/nav/index.js +2 -2
  266. package/nav-disclosure/definition.cjs +0 -1
  267. package/nav-disclosure/definition.js +0 -1
  268. package/nav-disclosure/index.cjs +4 -4
  269. package/nav-disclosure/index.js +15 -16
  270. package/nav-item/definition.cjs +0 -1
  271. package/nav-item/definition.js +0 -1
  272. package/nav-item/index.cjs +2 -2
  273. package/nav-item/index.js +10 -11
  274. package/note/definition.cjs +0 -1
  275. package/note/definition.js +0 -1
  276. package/note/index.cjs +2 -2
  277. package/note/index.js +7 -8
  278. package/number-field/definition.cjs +0 -1
  279. package/number-field/definition.js +0 -1
  280. package/number-field/index.cjs +5 -5
  281. package/number-field/index.js +16 -17
  282. package/option/definition.cjs +0 -1
  283. package/option/definition.js +0 -1
  284. package/option/index.cjs +1 -1
  285. package/option/index.js +0 -2
  286. package/package.json +22 -22
  287. package/pagination/definition.cjs +0 -1
  288. package/pagination/definition.js +0 -1
  289. package/pagination/index.cjs +4 -4
  290. package/pagination/index.js +11 -12
  291. package/popover/definition.cjs +0 -1
  292. package/popover/definition.js +0 -1
  293. package/popover/index.cjs +6 -6
  294. package/popover/index.js +28 -29
  295. package/popup/definition.cjs +0 -1
  296. package/popup/definition.js +0 -1
  297. package/popup/index.cjs +1 -1
  298. package/popup/index.js +0 -2
  299. package/progress/index.cjs +5 -5
  300. package/progress/index.js +10 -10
  301. package/progress-ring/index.cjs +1 -1
  302. package/progress-ring/index.js +0 -1
  303. package/radio/index.cjs +1 -1
  304. package/radio/index.js +0 -1
  305. package/radio-group/definition.cjs +0 -1
  306. package/radio-group/definition.js +0 -1
  307. package/radio-group/index.cjs +6 -6
  308. package/radio-group/index.js +21 -21
  309. package/range-slider/definition.cjs +0 -1
  310. package/range-slider/definition.js +0 -1
  311. package/range-slider/index.cjs +5 -5
  312. package/range-slider/index.js +58 -59
  313. package/rich-text-editor/definition.cjs +0 -1
  314. package/rich-text-editor/definition.js +0 -1
  315. package/rich-text-editor/index.cjs +9 -9
  316. package/rich-text-editor/index.js +2016 -1947
  317. package/rich-text-view/index.cjs +1 -1
  318. package/rich-text-view/index.js +2 -2
  319. package/searchable-select/definition.cjs +0 -1
  320. package/searchable-select/definition.js +0 -1
  321. package/searchable-select/index.cjs +23 -23
  322. package/searchable-select/index.js +109 -108
  323. package/select/definition.cjs +0 -1
  324. package/select/definition.js +0 -1
  325. package/select/index.cjs +1 -1
  326. package/select/index.js +0 -2
  327. package/selectable-box/definition.cjs +0 -1
  328. package/selectable-box/definition.js +0 -1
  329. package/selectable-box/index.cjs +9 -9
  330. package/selectable-box/index.js +19 -20
  331. package/shared/aria/aria-binding-directive.d.ts +21 -0
  332. package/shared/aria/aria-change-subscription.d.ts +1 -0
  333. package/shared/aria/delegates-aria.d.ts +1 -1
  334. package/shared/aria/host-semantics.d.ts +1 -1
  335. package/shared/patterns/linkable.d.ts +1 -1
  336. package/side-drawer/index.cjs +3 -3
  337. package/side-drawer/index.js +4 -4
  338. package/simple-color-picker/definition.cjs +0 -1
  339. package/simple-color-picker/definition.js +0 -1
  340. package/simple-color-picker/index.cjs +2 -2
  341. package/simple-color-picker/index.js +19 -20
  342. package/slider/definition.cjs +0 -1
  343. package/slider/definition.js +0 -1
  344. package/slider/index.cjs +1 -1
  345. package/slider/index.js +0 -2
  346. package/split-button/definition.cjs +0 -1
  347. package/split-button/definition.js +0 -1
  348. package/split-button/index.cjs +6 -6
  349. package/split-button/index.js +17 -18
  350. package/status/definition.cjs +0 -1
  351. package/status/definition.js +0 -1
  352. package/status/index.cjs +2 -2
  353. package/status/index.js +8 -9
  354. package/switch/definition.cjs +0 -1
  355. package/switch/definition.js +0 -1
  356. package/switch/index.cjs +5 -5
  357. package/switch/index.js +9 -10
  358. package/tab/definition.cjs +0 -1
  359. package/tab/definition.js +0 -1
  360. package/tab/index.cjs +1 -1
  361. package/tab/index.js +0 -2
  362. package/tab-panel/index.cjs +1 -1
  363. package/tab-panel/index.js +0 -1
  364. package/table/definition.cjs +0 -1
  365. package/table/definition.js +0 -1
  366. package/table/index.cjs +9 -9
  367. package/table/index.js +21 -22
  368. package/tabs/definition.cjs +0 -1
  369. package/tabs/definition.js +0 -1
  370. package/tabs/index.cjs +2 -2
  371. package/tabs/index.js +25 -26
  372. package/tag/definition.cjs +0 -1
  373. package/tag/definition.js +0 -1
  374. package/tag/index.cjs +11 -11
  375. package/tag/index.js +21 -22
  376. package/tag-group/index.cjs +4 -4
  377. package/tag-group/index.js +6 -6
  378. package/text-area/definition.cjs +0 -1
  379. package/text-area/definition.js +0 -1
  380. package/text-area/index.cjs +4 -4
  381. package/text-area/index.js +24 -25
  382. package/text-field/definition.cjs +0 -1
  383. package/text-field/definition.js +0 -1
  384. package/text-field/index.cjs +1 -1
  385. package/text-field/index.js +0 -2
  386. package/time-picker/definition.cjs +0 -1
  387. package/time-picker/definition.js +0 -1
  388. package/time-picker/index.cjs +1 -1
  389. package/time-picker/index.js +2 -3
  390. package/toggletip/definition.cjs +0 -1
  391. package/toggletip/definition.js +0 -1
  392. package/toggletip/index.cjs +1 -1
  393. package/toggletip/index.js +0 -2
  394. package/tooltip/definition.cjs +0 -1
  395. package/tooltip/definition.js +0 -1
  396. package/tooltip/index.cjs +1 -1
  397. package/tooltip/index.js +0 -2
  398. package/tree-item/definition.cjs +0 -1
  399. package/tree-item/definition.js +0 -1
  400. package/tree-item/index.cjs +1 -1
  401. package/tree-item/index.js +0 -2
  402. package/tree-view/definition.cjs +0 -1
  403. package/tree-view/definition.js +0 -1
  404. package/tree-view/index.cjs +2 -2
  405. package/tree-view/index.js +5 -5
  406. package/unbundled/aria-binding-directive.cjs +42 -0
  407. package/unbundled/aria-binding-directive.js +36 -0
  408. package/unbundled/calendar-picker.template.cjs +1 -1
  409. package/unbundled/calendar-picker.template.js +1 -1
  410. package/unbundled/char-count.cjs +2 -1
  411. package/unbundled/char-count.js +2 -1
  412. package/unbundled/decorate.cjs +1 -1
  413. package/unbundled/decorate.js +1 -1
  414. package/unbundled/definition.js +1 -1
  415. package/unbundled/definition10.cjs +5 -4
  416. package/unbundled/definition10.js +6 -5
  417. package/unbundled/definition11.cjs +14 -10
  418. package/unbundled/definition11.js +15 -11
  419. package/unbundled/definition12.cjs +2 -2
  420. package/unbundled/definition12.js +3 -3
  421. package/unbundled/definition13.cjs +7 -6
  422. package/unbundled/definition13.js +8 -7
  423. package/unbundled/definition14.cjs +67 -58
  424. package/unbundled/definition14.js +68 -59
  425. package/unbundled/definition15.js +1 -1
  426. package/unbundled/definition16.js +1 -1
  427. package/unbundled/definition17.cjs +10 -8
  428. package/unbundled/definition17.js +11 -9
  429. package/unbundled/definition18.js +1 -1
  430. package/unbundled/definition19.js +1 -1
  431. package/unbundled/definition2.cjs +4 -2
  432. package/unbundled/definition2.js +5 -3
  433. package/unbundled/definition20.js +1 -1
  434. package/unbundled/definition21.js +1 -1
  435. package/unbundled/definition22.js +1 -1
  436. package/unbundled/definition23.cjs +1 -1
  437. package/unbundled/definition23.js +2 -2
  438. package/unbundled/definition24.cjs +17 -13
  439. package/unbundled/definition24.js +18 -14
  440. package/unbundled/definition25.js +1 -1
  441. package/unbundled/definition26.cjs +17 -1
  442. package/unbundled/definition26.js +18 -2
  443. package/unbundled/definition27.cjs +15 -12
  444. package/unbundled/definition27.js +16 -13
  445. package/unbundled/definition28.cjs +9 -6
  446. package/unbundled/definition28.js +10 -7
  447. package/unbundled/definition29.js +1 -1
  448. package/unbundled/definition3.js +1 -1
  449. package/unbundled/definition30.cjs +4 -2
  450. package/unbundled/definition30.js +5 -3
  451. package/unbundled/definition31.js +1 -1
  452. package/unbundled/definition32.cjs +30 -23
  453. package/unbundled/definition32.js +31 -24
  454. package/unbundled/definition33.cjs +4 -2
  455. package/unbundled/definition33.js +5 -3
  456. package/unbundled/definition34.cjs +200 -48
  457. package/unbundled/definition34.js +201 -49
  458. package/unbundled/definition35.js +1 -1
  459. package/unbundled/definition36.js +1 -1
  460. package/unbundled/definition37.js +1 -1
  461. package/unbundled/definition38.cjs +2 -1
  462. package/unbundled/definition38.js +3 -2
  463. package/unbundled/definition39.js +1 -1
  464. package/unbundled/definition4.cjs +6 -0
  465. package/unbundled/definition4.js +7 -1
  466. package/unbundled/definition40.js +1 -1
  467. package/unbundled/definition41.cjs +17 -12
  468. package/unbundled/definition41.js +18 -13
  469. package/unbundled/definition42.js +1 -1
  470. package/unbundled/definition43.js +1 -1
  471. package/unbundled/definition44.cjs +4 -3
  472. package/unbundled/definition44.js +5 -4
  473. package/unbundled/definition45.js +1 -1
  474. package/unbundled/definition46.js +1 -1
  475. package/unbundled/definition47.cjs +5 -4
  476. package/unbundled/definition47.js +6 -5
  477. package/unbundled/definition48.cjs +1 -1
  478. package/unbundled/definition48.js +2 -2
  479. package/unbundled/definition49.js +1 -1
  480. package/unbundled/definition5.js +1 -1
  481. package/unbundled/definition50.js +1 -1
  482. package/unbundled/definition51.cjs +1 -1
  483. package/unbundled/definition51.js +2 -2
  484. package/unbundled/definition52.js +1 -1
  485. package/unbundled/definition53.cjs +16 -12
  486. package/unbundled/definition53.js +17 -13
  487. package/unbundled/definition54.js +1 -1
  488. package/unbundled/definition55.cjs +25 -23
  489. package/unbundled/definition55.js +26 -24
  490. package/unbundled/definition56.cjs +2 -1
  491. package/unbundled/definition56.js +3 -2
  492. package/unbundled/definition57.cjs +72 -61
  493. package/unbundled/definition57.js +73 -62
  494. package/unbundled/definition58.cjs +34 -26
  495. package/unbundled/definition58.js +34 -26
  496. package/unbundled/definition59.cjs +1 -1
  497. package/unbundled/definition59.js +2 -2
  498. package/unbundled/definition6.js +1 -1
  499. package/unbundled/definition60.js +1 -1
  500. package/unbundled/definition61.cjs +15 -10
  501. package/unbundled/definition61.js +16 -11
  502. package/unbundled/definition62.js +1 -1
  503. package/unbundled/definition63.js +1 -1
  504. package/unbundled/definition64.cjs +20 -17
  505. package/unbundled/definition64.js +21 -18
  506. package/unbundled/definition65.js +1 -1
  507. package/unbundled/definition66.js +1 -1
  508. package/unbundled/definition67.cjs +1 -1
  509. package/unbundled/definition67.js +2 -2
  510. package/unbundled/definition68.js +1 -1
  511. package/unbundled/definition69.js +1 -1
  512. package/unbundled/definition7.js +1 -1
  513. package/unbundled/definition70.cjs +28 -23
  514. package/unbundled/definition70.js +29 -24
  515. package/unbundled/definition71.js +1 -1
  516. package/unbundled/definition72.cjs +6 -5
  517. package/unbundled/definition72.js +7 -6
  518. package/unbundled/definition73.cjs +13 -1
  519. package/unbundled/definition73.js +14 -2
  520. package/unbundled/definition74.js +1 -1
  521. package/unbundled/definition75.js +1 -1
  522. package/unbundled/definition76.cjs +2 -1
  523. package/unbundled/definition76.js +3 -2
  524. package/unbundled/definition77.cjs +1 -1
  525. package/unbundled/definition77.js +1 -1
  526. package/unbundled/definition8.js +1 -1
  527. package/unbundled/definition9.cjs +9 -7
  528. package/unbundled/definition9.js +10 -8
  529. package/unbundled/delegates-aria.cjs +5 -60
  530. package/unbundled/delegates-aria.js +6 -60
  531. package/unbundled/divider.cjs +6 -0
  532. package/unbundled/divider.js +6 -0
  533. package/unbundled/form-element.cjs +7 -5
  534. package/unbundled/form-element.js +7 -5
  535. package/unbundled/host-semantics.cjs +10 -45
  536. package/unbundled/host-semantics.js +10 -44
  537. package/unbundled/mixins.js +1 -1
  538. package/unbundled/picker-field.template.cjs +20 -15
  539. package/unbundled/picker-field.template.js +20 -15
  540. package/unbundled/text-field.cjs +1 -1
  541. package/unbundled/text-field.js +1 -1
  542. package/unbundled/time-selection-picker.template.cjs +4 -3
  543. package/unbundled/time-selection-picker.template.js +5 -4
  544. package/unbundled/vivid-element.cjs +10 -1
  545. package/unbundled/vivid-element.js +5 -2
  546. package/video-player/index.cjs +24 -24
  547. package/video-player/index.js +3087 -3010
  548. package/visually-hidden/index.cjs +1 -1
  549. package/visually-hidden/index.js +0 -1
  550. package/vivid.api.json +1 -1
  551. package/bundled/attribute-binding-behaviour.cjs +0 -1
  552. package/bundled/attribute-binding-behaviour.js +0 -18
  553. package/bundled/strings.cjs +0 -1
  554. package/bundled/strings.js +0 -7
  555. package/shared/aria/delegate-aria-behavior.d.ts +0 -23
  556. package/shared/aria/host-semantics-behavior.d.ts +0 -19
  557. package/shared/templating/attribute-binding-behaviour.d.ts +0 -14
  558. package/unbundled/attribute-binding-behaviour.cjs +0 -37
  559. package/unbundled/attribute-binding-behaviour.js +0 -31
@@ -1,7 +1,6 @@
1
- import { O as e, T as t, d as n, l as r, o as i, s as a, t as o } from "../bundled/vivid-element.js";
1
+ import { A as e, D as t, c as n, f as r, s as i, t as a, u as o } from "../bundled/vivid-element.js";
2
2
  import { t as s } from "../bundled/ref.js";
3
3
  import { t as c } from "../bundled/slotted.js";
4
- import "../bundled/numberConverter.js";
5
4
  import { t as l } from "../bundled/decorate.js";
6
5
  import { t as u } from "../bundled/class-names.js";
7
6
  import { t as d } from "../bundled/dom.js";
@@ -20,7 +19,7 @@ function w(e, t) {
20
19
  return !1;
21
20
  }) : [];
22
21
  }
23
- var T = class extends S(o) {
22
+ var T = class extends S(a) {
24
23
  constructor(...e) {
25
24
  super(...e), this.currentFocused = null, this.handleFocus = (e) => {
26
25
  if (this.slottedTreeItems.length > 0) {
@@ -88,7 +87,8 @@ var T = class extends S(o) {
88
87
  return;
89
88
  }
90
89
  }, this.setItems = () => {
91
- this.currentSelected = this.treeView.querySelector("[selected]"), (this.currentFocused === null || !this.contains(this.currentFocused)) && (this.currentFocused = this.getValidFocusableItem()), this.nested = this.checkForNestedItems(), this.getVisibleNodes().forEach((e) => {
90
+ let e = this.treeView.querySelector("[selected]");
91
+ this.currentSelected = e, (this.currentFocused === null || !this.contains(this.currentFocused)) && (this.currentFocused = this.getValidFocusableItem()), this.nested = this.checkForNestedItems(), this.getVisibleNodes().forEach((e) => {
92
92
  /* v8 ignore else -- @preserve */
93
93
  v(e) && (e.nested = this.nested);
94
94
  });
@@ -132,7 +132,7 @@ var T = class extends S(o) {
132
132
  };
133
133
  //#endregion
134
134
  //#region src/lib/tree-view/index.ts
135
- l([r({ attribute: "render-collapsed-nodes" })], T.prototype, "renderCollapsedNodes", void 0), l([t], T.prototype, "currentSelected", void 0), l([t], T.prototype, "slottedTreeItems", void 0), a(i("tree-view", T, n` <template
135
+ l([o({ attribute: "render-collapsed-nodes" })], T.prototype, "renderCollapsedNodes", void 0), l([t], T.prototype, "currentSelected", void 0), l([t], T.prototype, "slottedTreeItems", void 0), n(i("tree-view", T, r` <template
136
136
  ${s("treeView")}
137
137
  ${x({ role: "tree" })}
138
138
  @keydown="${(e, t) => e.handleKeyDown(t.event)}"
@@ -0,0 +1,42 @@
1
+ require("./chunk.cjs");
2
+ const require_vivid_element = require("./vivid-element.cjs");
3
+ let _microsoft_fast_element = require("@microsoft/fast-element");
4
+ let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
5
+ //#region src/shared/aria/aria-binding-directive.ts
6
+ var setAriaAttribute = (target, property, value) => _microsoft_fast_element.DOM.setAttribute(target, require_vivid_element.ariaAttributeName(property), value === false ? null : value);
7
+ /**
8
+ * Directive for both delegate and host semantics.
9
+ */
10
+ var AriaBindingDirective = class extends _microsoft_fast_element.StatelessAttachedAttributeDirective {
11
+ get propertyBindingBehaviours() {
12
+ if (!this._propertyBindingBehaviours) this._propertyBindingBehaviours = Object.entries(this.options.boundProperties).map(([property, binding]) => {
13
+ const attributeBindingDirective = new _microsoft_fast_element.HTMLBindingDirective((0, _microsoft_fast_element.oneWay)(binding instanceof Function ? binding : () => binding));
14
+ attributeBindingDirective.id = (0, _microsoft_fast_web_utilities.uniqueId)();
15
+ attributeBindingDirective.targetNodeId = this.targetNodeId;
16
+ attributeBindingDirective.policy = this.policy;
17
+ _microsoft_fast_element.HTMLDirective.assignAspect(attributeBindingDirective, require_vivid_element.ariaAttributeName(property));
18
+ return attributeBindingDirective.createBehavior();
19
+ });
20
+ return this._propertyBindingBehaviours;
21
+ }
22
+ bind(controller) {
23
+ const source = controller.source;
24
+ const target = controller.targets[this.targetNodeId];
25
+ if (this.options.requireHost && target !== source) throw new Error("Target element must be the same as the source element");
26
+ for (const behaviour of this.propertyBindingBehaviours) behaviour.bind(controller);
27
+ for (const key of this.options.forwardedProperties) setAriaAttribute(target, key, source[key]);
28
+ const onAriaPropertyChange = (source, property) => {
29
+ if (this.options.forwardedProperties.has(property)) setAriaAttribute(target, property, source[property]);
30
+ };
31
+ require_vivid_element.subscribeToAriaPropertyChanges(source, onAriaPropertyChange);
32
+ controller.onUnbind({ unbind: () => require_vivid_element.unsubscribeFromAriaPropertyChanges(source, onAriaPropertyChange) });
33
+ }
34
+ };
35
+ _microsoft_fast_element.HTMLDirective.define(AriaBindingDirective);
36
+ //#endregion
37
+ Object.defineProperty(exports, "AriaBindingDirective", {
38
+ enumerable: true,
39
+ get: function() {
40
+ return AriaBindingDirective;
41
+ }
42
+ });
@@ -0,0 +1,36 @@
1
+ import { a as subscribeToAriaPropertyChanges, o as unsubscribeFromAriaPropertyChanges, r as ariaAttributeName } from "./vivid-element.js";
2
+ import { DOM, HTMLBindingDirective, HTMLDirective, StatelessAttachedAttributeDirective, oneWay } from "@microsoft/fast-element";
3
+ import { uniqueId } from "@microsoft/fast-web-utilities";
4
+ //#region src/shared/aria/aria-binding-directive.ts
5
+ var setAriaAttribute = (target, property, value) => DOM.setAttribute(target, ariaAttributeName(property), value === false ? null : value);
6
+ /**
7
+ * Directive for both delegate and host semantics.
8
+ */
9
+ var AriaBindingDirective = class extends StatelessAttachedAttributeDirective {
10
+ get propertyBindingBehaviours() {
11
+ if (!this._propertyBindingBehaviours) this._propertyBindingBehaviours = Object.entries(this.options.boundProperties).map(([property, binding]) => {
12
+ const attributeBindingDirective = new HTMLBindingDirective(oneWay(binding instanceof Function ? binding : () => binding));
13
+ attributeBindingDirective.id = uniqueId();
14
+ attributeBindingDirective.targetNodeId = this.targetNodeId;
15
+ attributeBindingDirective.policy = this.policy;
16
+ HTMLDirective.assignAspect(attributeBindingDirective, ariaAttributeName(property));
17
+ return attributeBindingDirective.createBehavior();
18
+ });
19
+ return this._propertyBindingBehaviours;
20
+ }
21
+ bind(controller) {
22
+ const source = controller.source;
23
+ const target = controller.targets[this.targetNodeId];
24
+ if (this.options.requireHost && target !== source) throw new Error("Target element must be the same as the source element");
25
+ for (const behaviour of this.propertyBindingBehaviours) behaviour.bind(controller);
26
+ for (const key of this.options.forwardedProperties) setAriaAttribute(target, key, source[key]);
27
+ const onAriaPropertyChange = (source, property) => {
28
+ if (this.options.forwardedProperties.has(property)) setAriaAttribute(target, property, source[property]);
29
+ };
30
+ subscribeToAriaPropertyChanges(source, onAriaPropertyChange);
31
+ controller.onUnbind({ unbind: () => unsubscribeFromAriaPropertyChanges(source, onAriaPropertyChange) });
32
+ }
33
+ };
34
+ HTMLDirective.define(AriaBindingDirective);
35
+ //#endregion
36
+ export { AriaBindingDirective as t };
@@ -29,7 +29,7 @@ function addLeadingZeros(number, targetLength) {
29
29
  * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
30
30
  */
31
31
  var daysInYear = 365.2425;
32
- Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
32
+ -(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
33
33
  /**
34
34
  * @constant
35
35
  * @name millisecondsInWeek
@@ -28,7 +28,7 @@ function addLeadingZeros(number, targetLength) {
28
28
  * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
29
29
  */
30
30
  var daysInYear = 365.2425;
31
- Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
31
+ -(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
32
32
  /**
33
33
  * @constant
34
34
  * @name millisecondsInWeek
@@ -12,6 +12,7 @@ var WithCharCount = (Base) => {
12
12
  constructor(..._args) {
13
13
  super(..._args);
14
14
  this.charCount = false;
15
+ this.#charCountTimeout = null;
15
16
  this._charCountDescribedBy = "char-count-description";
16
17
  this._renderCharCountRemaining = () => {
17
18
  if (!this.charCount || !this.maxlength) return;
@@ -44,7 +45,7 @@ var WithCharCount = (Base) => {
44
45
  * used to debounce screen reader announcements
45
46
  * @internal
46
47
  */
47
- #charCountTimeout = null;
48
+ #charCountTimeout;
48
49
  }
49
50
  require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
50
51
  attribute: "char-count",
@@ -11,6 +11,7 @@ var WithCharCount = (Base) => {
11
11
  constructor(..._args) {
12
12
  super(..._args);
13
13
  this.charCount = false;
14
+ this.#charCountTimeout = null;
14
15
  this._charCountDescribedBy = "char-count-description";
15
16
  this._renderCharCountRemaining = () => {
16
17
  if (!this.charCount || !this.maxlength) return;
@@ -43,7 +44,7 @@ var WithCharCount = (Base) => {
43
44
  * used to debounce screen reader announcements
44
45
  * @internal
45
46
  */
46
- #charCountTimeout = null;
47
+ #charCountTimeout;
47
48
  }
48
49
  __decorate([attr({
49
50
  attribute: "char-count",
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorate.js
1
+ //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
2
2
  function __decorate(decorators, target, key, desc) {
3
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.120.0/helpers/decorate.js
1
+ //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
2
2
  function __decorate(decorators, target, key, desc) {
3
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,4 +1,4 @@
1
- import { o as defineVividComponent, s as createRegisterFunction, t as VividElement } from "./vivid-element.js";
1
+ import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
2
2
  import { html } from "@microsoft/fast-element";
3
3
  //#region src/lib/visually-hidden/visually-hidden.scss?inline
4
4
  var visually_hidden_default = ":host{display:contents}slot:not(:focus-within){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;display:inline;position:absolute;overflow:hidden}";
@@ -46,6 +46,10 @@ var Popup = class extends require_vivid_element.VividElement {
46
46
  this.animationFrame = false;
47
47
  this.strategy = "fixed";
48
48
  this.offset = null;
49
+ this.#autoUpdateCallback = () => {
50
+ this.#lastPositionUpdate = this.updatePosition();
51
+ return this.#lastPositionUpdate;
52
+ };
49
53
  }
50
54
  get #middleware() {
51
55
  let middleware = [
@@ -115,10 +119,7 @@ var Popup = class extends require_vivid_element.VividElement {
115
119
  else this.popupEl.hidePopover();
116
120
  }
117
121
  #lastPositionUpdate;
118
- #autoUpdateCallback = () => {
119
- this.#lastPositionUpdate = this.updatePosition();
120
- return this.#lastPositionUpdate;
121
- };
122
+ #autoUpdateCallback;
122
123
  /**
123
124
  * Updates popup's position
124
125
  *
@@ -1,4 +1,4 @@
1
- import { o as defineVividComponent, s as createRegisterFunction, t as VividElement } from "./vivid-element.js";
1
+ import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
2
2
  import { t as __decorate } from "./decorate.js";
3
3
  import { i as Button, t as buttonDefinition } from "./definition7.js";
4
4
  import { r as Elevation, t as elevationDefinition } from "./definition8.js";
@@ -45,6 +45,10 @@ var Popup = class extends VividElement {
45
45
  this.animationFrame = false;
46
46
  this.strategy = "fixed";
47
47
  this.offset = null;
48
+ this.#autoUpdateCallback = () => {
49
+ this.#lastPositionUpdate = this.updatePosition();
50
+ return this.#lastPositionUpdate;
51
+ };
48
52
  }
49
53
  get #middleware() {
50
54
  let middleware = [
@@ -114,10 +118,7 @@ var Popup = class extends VividElement {
114
118
  else this.popupEl.hidePopover();
115
119
  }
116
120
  #lastPositionUpdate;
117
- #autoUpdateCallback = () => {
118
- this.#lastPositionUpdate = this.updatePosition();
119
- return this.#lastPositionUpdate;
120
- };
121
+ #autoUpdateCallback;
121
122
  /**
122
123
  * Updates popup's position
123
124
  *
@@ -154,6 +154,7 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
154
154
  this.pin = false;
155
155
  this._focusVisible = false;
156
156
  this._hoveringOnThumb = false;
157
+ this.#isNonVisibleFocus = false;
157
158
  this._onFocusIn = () => {
158
159
  if (!this.#isNonVisibleFocus) this._focusVisible = true;
159
160
  this.#isNonVisibleFocus = false;
@@ -161,6 +162,15 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
161
162
  this._onFocusOut = () => {
162
163
  this._focusVisible = false;
163
164
  };
165
+ this.#onVisibilityChange = () => {
166
+ if (document.hidden && this.shadowRoot.activeElement !== null) this.#isNonVisibleFocus = true;
167
+ };
168
+ this.#onMouseOver = () => {
169
+ this._hoveringOnThumb = true;
170
+ };
171
+ this.#onMouseOut = () => {
172
+ this._hoveringOnThumb = false;
173
+ };
164
174
  }
165
175
  /**
166
176
  * @internal
@@ -324,7 +334,7 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
324
334
  get _isThumbPopupOpen() {
325
335
  return this._focusVisible || this._hoveringOnThumb || this.isDragging;
326
336
  }
327
- #isNonVisibleFocus = false;
337
+ #isNonVisibleFocus;
328
338
  #registerThumbListeners() {
329
339
  this.thumb.addEventListener("mouseover", this.#onMouseOver, { passive: true });
330
340
  this.thumb.addEventListener("mouseout", this.#onMouseOut, { passive: true });
@@ -333,15 +343,9 @@ var Slider = class extends require_localized.Localized(require_delegates_aria.De
333
343
  this.thumb.removeEventListener("mouseover", this.#onMouseOver);
334
344
  this.thumb.removeEventListener("mouseout", this.#onMouseOut);
335
345
  }
336
- #onVisibilityChange = () => {
337
- if (document.hidden && this.shadowRoot.activeElement !== null) this.#isNonVisibleFocus = true;
338
- };
339
- #onMouseOver = () => {
340
- this._hoveringOnThumb = true;
341
- };
342
- #onMouseOut = () => {
343
- this._hoveringOnThumb = false;
344
- };
346
+ #onVisibilityChange;
347
+ #onMouseOver;
348
+ #onMouseOut;
345
349
  };
346
350
  require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
347
351
  attribute: "readonly",
@@ -1,4 +1,4 @@
1
- import { o as defineVividComponent, s as createRegisterFunction, t as VividElement } from "./vivid-element.js";
1
+ import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
2
2
  import { t as __decorate } from "./decorate.js";
3
3
  import { t as DelegatesAria } from "./delegates-aria.js";
4
4
  import { n as FormAssociated } from "./form-associated.js";
@@ -153,6 +153,7 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
153
153
  this.pin = false;
154
154
  this._focusVisible = false;
155
155
  this._hoveringOnThumb = false;
156
+ this.#isNonVisibleFocus = false;
156
157
  this._onFocusIn = () => {
157
158
  if (!this.#isNonVisibleFocus) this._focusVisible = true;
158
159
  this.#isNonVisibleFocus = false;
@@ -160,6 +161,15 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
160
161
  this._onFocusOut = () => {
161
162
  this._focusVisible = false;
162
163
  };
164
+ this.#onVisibilityChange = () => {
165
+ if (document.hidden && this.shadowRoot.activeElement !== null) this.#isNonVisibleFocus = true;
166
+ };
167
+ this.#onMouseOver = () => {
168
+ this._hoveringOnThumb = true;
169
+ };
170
+ this.#onMouseOut = () => {
171
+ this._hoveringOnThumb = false;
172
+ };
163
173
  }
164
174
  /**
165
175
  * @internal
@@ -323,7 +333,7 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
323
333
  get _isThumbPopupOpen() {
324
334
  return this._focusVisible || this._hoveringOnThumb || this.isDragging;
325
335
  }
326
- #isNonVisibleFocus = false;
336
+ #isNonVisibleFocus;
327
337
  #registerThumbListeners() {
328
338
  this.thumb.addEventListener("mouseover", this.#onMouseOver, { passive: true });
329
339
  this.thumb.addEventListener("mouseout", this.#onMouseOut, { passive: true });
@@ -332,15 +342,9 @@ var Slider = class extends Localized(DelegatesAria(FormAssociated(VividElement))
332
342
  this.thumb.removeEventListener("mouseover", this.#onMouseOver);
333
343
  this.thumb.removeEventListener("mouseout", this.#onMouseOut);
334
344
  }
335
- #onVisibilityChange = () => {
336
- if (document.hidden && this.shadowRoot.activeElement !== null) this.#isNonVisibleFocus = true;
337
- };
338
- #onMouseOver = () => {
339
- this._hoveringOnThumb = true;
340
- };
341
- #onMouseOut = () => {
342
- this._hoveringOnThumb = false;
343
- };
345
+ #onVisibilityChange;
346
+ #onMouseOver;
347
+ #onMouseOut;
344
348
  };
345
349
  __decorate([attr({
346
350
  attribute: "readonly",
@@ -156,6 +156,7 @@ var MenuItem = class extends require_host_semantics.HostSemantics(require_affix.
156
156
  }
157
157
  return true;
158
158
  };
159
+ this.#syntheticClickEvents = /* @__PURE__ */ new WeakSet();
159
160
  this.addEventListener("expanded-change", this.#expandedChange);
160
161
  }
161
162
  #collapseExpandedItem() {
@@ -164,7 +165,7 @@ var MenuItem = class extends require_host_semantics.HostSemantics(require_affix.
164
165
  #expandedChange() {
165
166
  if (this.submenu) this.submenu.open = this.expanded;
166
167
  }
167
- #syntheticClickEvents = /* @__PURE__ */ new WeakSet();
168
+ #syntheticClickEvents;
168
169
  /**
169
170
  * @internal
170
171
  */
@@ -238,7 +239,6 @@ var MenuItemTemplate = (context) => {
238
239
  return _microsoft_fast_element.html`
239
240
  <template
240
241
  ${require_host_semantics.applyHostSemantics({
241
- role: MenuItemRole.menuitem,
242
242
  ariaHasPopup: (x) => x.hasSubmenu ? "menu" : void 0,
243
243
  ariaChecked: (x) => x.controlType ? x.checked : void 0,
244
244
  ariaDisabled: (x) => x.disabled,
@@ -1,4 +1,4 @@
1
- import { n as replaces, o as defineVividComponent, s as createRegisterFunction, t as VividElement } from "./vivid-element.js";
1
+ import { c as createRegisterFunction, n as replaces, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
2
2
  import { r as Icon, t as iconDefinition } from "./definition2.js";
3
3
  import { t as __decorate } from "./decorate.js";
4
4
  import { a as affixIconTemplateFactory, t as AffixIcon } from "./affix.js";
@@ -155,6 +155,7 @@ var MenuItem = class extends HostSemantics(AffixIcon(VividElement)) {
155
155
  }
156
156
  return true;
157
157
  };
158
+ this.#syntheticClickEvents = /* @__PURE__ */ new WeakSet();
158
159
  this.addEventListener("expanded-change", this.#expandedChange);
159
160
  }
160
161
  #collapseExpandedItem() {
@@ -163,7 +164,7 @@ var MenuItem = class extends HostSemantics(AffixIcon(VividElement)) {
163
164
  #expandedChange() {
164
165
  if (this.submenu) this.submenu.open = this.expanded;
165
166
  }
166
- #syntheticClickEvents = /* @__PURE__ */ new WeakSet();
167
+ #syntheticClickEvents;
167
168
  /**
168
169
  * @internal
169
170
  */
@@ -237,7 +238,6 @@ var MenuItemTemplate = (context) => {
237
238
  return html`
238
239
  <template
239
240
  ${applyHostSemantics({
240
- role: MenuItemRole.menuitem,
241
241
  ariaHasPopup: (x) => x.hasSubmenu ? "menu" : void 0,
242
242
  ariaChecked: (x) => x.controlType ? x.checked : void 0,
243
243
  ariaDisabled: (x) => x.disabled,
@@ -79,6 +79,12 @@ var Menu = class extends require_anchored.Anchored(require_delegates_aria.Delega
79
79
  this.autoDismiss = false;
80
80
  this.positionStrategy = "fixed";
81
81
  this.open = false;
82
+ this.#onAnchorClick = () => {
83
+ if (this.#triggerBehaviour === "off") return;
84
+ if (this.#triggerBehaviour === "legacy" && this.open) return;
85
+ const newValue = !this.open;
86
+ _microsoft_fast_element.Updates.enqueue(() => this.open = newValue);
87
+ };
82
88
  this._onFocusout = (e) => {
83
89
  const focusTarget = e.relatedTarget;
84
90
  const focusMovedAway = !this.contains(focusTarget) && !this._anchorEl?.contains(focusTarget);
@@ -200,12 +206,7 @@ var Menu = class extends require_anchored.Anchored(require_delegates_aria.Delega
200
206
  a.ariaExpanded = null;
201
207
  delete a.dataset.expanded;
202
208
  }
203
- #onAnchorClick = () => {
204
- if (this.#triggerBehaviour === "off") return;
205
- if (this.#triggerBehaviour === "legacy" && this.open) return;
206
- const newValue = !this.open;
207
- _microsoft_fast_element.Updates.enqueue(() => this.open = newValue);
208
- };
209
+ #onAnchorClick;
209
210
  /**
210
211
  * @internal
211
212
  */
@@ -1,4 +1,4 @@
1
- import { o as defineVividComponent, s as createRegisterFunction, t as VividElement } from "./vivid-element.js";
1
+ import { c as createRegisterFunction, s as defineVividComponent, t as VividElement } from "./vivid-element.js";
2
2
  import { t as __decorate } from "./decorate.js";
3
3
  import { n as delegateAria, t as DelegatesAria } from "./delegates-aria.js";
4
4
  import { t as handleEscapeKeyAndStopPropogation } from "./dialog.js";
@@ -78,6 +78,12 @@ var Menu = class extends Anchored(DelegatesAria(VividElement)) {
78
78
  this.autoDismiss = false;
79
79
  this.positionStrategy = "fixed";
80
80
  this.open = false;
81
+ this.#onAnchorClick = () => {
82
+ if (this.#triggerBehaviour === "off") return;
83
+ if (this.#triggerBehaviour === "legacy" && this.open) return;
84
+ const newValue = !this.open;
85
+ Updates.enqueue(() => this.open = newValue);
86
+ };
81
87
  this._onFocusout = (e) => {
82
88
  const focusTarget = e.relatedTarget;
83
89
  const focusMovedAway = !this.contains(focusTarget) && !this._anchorEl?.contains(focusTarget);
@@ -199,12 +205,7 @@ var Menu = class extends Anchored(DelegatesAria(VividElement)) {
199
205
  a.ariaExpanded = null;
200
206
  delete a.dataset.expanded;
201
207
  }
202
- #onAnchorClick = () => {
203
- if (this.#triggerBehaviour === "off") return;
204
- if (this.#triggerBehaviour === "legacy" && this.open) return;
205
- const newValue = !this.open;
206
- Updates.enqueue(() => this.open = newValue);
207
- };
208
+ #onAnchorClick;
208
209
  /**
209
210
  * @internal
210
211
  */
@@ -131,8 +131,8 @@ var AudioPlayer = class extends require_localized.Localized(require_vivid_elemen
131
131
  get #sliderEl() {
132
132
  return this.shadowRoot.querySelector(".slider");
133
133
  }
134
- #playerEl = new Audio();
135
- #isProgrammaticSliderUpdate = false;
134
+ #playerEl;
135
+ #isProgrammaticSliderUpdate;
136
136
  constructor() {
137
137
  super();
138
138
  this.playButtonAriaLabel = null;
@@ -143,7 +143,65 @@ var AudioPlayer = class extends require_localized.Localized(require_vivid_elemen
143
143
  this.disabled = false;
144
144
  this.notime = false;
145
145
  this.playbackRates = null;
146
+ this.#playerEl = new Audio();
147
+ this.#isProgrammaticSliderUpdate = false;
146
148
  this.durationFallback = false;
149
+ this.#onPlay = () => {
150
+ if (!this.#sliderEl?.isDragging) this.$emit("play", void 0, { bubbles: false });
151
+ };
152
+ this.#onPause = () => {
153
+ if (!this.#sliderEl?.isDragging) this.$emit("pause", void 0, { bubbles: false });
154
+ };
155
+ this.#pausedChanged = (pausing) => {
156
+ if (pausing === this.paused) {
157
+ this.#setPausedState();
158
+ return;
159
+ }
160
+ if (!this.paused) this.#playerEl.pause();
161
+ else {
162
+ this.#updateProgress();
163
+ this.#playerEl.play();
164
+ }
165
+ this.#setPausedState();
166
+ };
167
+ this.#updateProgress = () => {
168
+ _microsoft_fast_element.Observable.notify(this, "currentTime");
169
+ const duration = this.duration;
170
+ const currentTime = this.currentTime;
171
+ const isValid = Number.isFinite(duration) && duration > 0 && Number.isFinite(currentTime) && currentTime >= 0;
172
+ const percent = isValid ? currentTime / duration * 100 : 0;
173
+ /* v8 ignore else -- @preserve */
174
+ if (this.#sliderEl) {
175
+ this.#isProgrammaticSliderUpdate = true;
176
+ this.#sliderEl.value = percent.toString();
177
+ this.#isProgrammaticSliderUpdate = false;
178
+ }
179
+ if (isValid && percent === 100) this.pause();
180
+ };
181
+ this.#updateTotalTime = () => {
182
+ _microsoft_fast_element.Observable.notify(this, "duration");
183
+ if (!Number.isFinite(this.#playerEl.duration) || this.#playerEl.duration <= 0) {
184
+ if (this.durationFallback) this.#fetchAndCacheAudioBuffer();
185
+ }
186
+ };
187
+ this.#updateCurrentTimeOnSliderChange = () => {
188
+ if (!this.paused && this.#sliderEl.isDragging) {
189
+ this.pause();
190
+ this.#dragInterval = window.setInterval(() => {
191
+ /* v8 ignore else -- @preserve */
192
+ if (!this.#sliderEl.isDragging || !this.isConnected) {
193
+ clearInterval(this.#dragInterval);
194
+ if (this.isConnected) this.play();
195
+ }
196
+ }, 0);
197
+ }
198
+ if (this.#isProgrammaticSliderUpdate) return;
199
+ /* v8 ignore else -- @preserve */
200
+ if (this.#playerEl) this.currentTime = this.duration * Number(this.#sliderEl.value) / 100;
201
+ };
202
+ this.#setPausedState = () => {
203
+ _microsoft_fast_element.Observable.notify(this, "paused");
204
+ };
147
205
  }
148
206
  connectedCallback() {
149
207
  super.connectedCallback();
@@ -172,68 +230,19 @@ var AudioPlayer = class extends require_localized.Localized(require_vivid_elemen
172
230
  pause() {
173
231
  this.#pausedChanged(PAUSE);
174
232
  }
175
- #onPlay = () => {
176
- if (!this.#sliderEl?.isDragging) this.$emit("play", void 0, { bubbles: false });
177
- };
178
- #onPause = () => {
179
- if (!this.#sliderEl?.isDragging) this.$emit("pause", void 0, { bubbles: false });
180
- };
233
+ #onPlay;
234
+ #onPause;
181
235
  #setSliderInteractionListeners(add = true) {
182
236
  const action = add ? "addEventListener" : "removeEventListener";
183
237
  /* v8 ignore else -- @preserve */
184
238
  if (this.#sliderEl) this.#sliderEl[action]("change", this.#updateCurrentTimeOnSliderChange);
185
239
  }
186
- #pausedChanged = (pausing) => {
187
- if (pausing === this.paused) {
188
- this.#setPausedState();
189
- return;
190
- }
191
- if (!this.paused) this.#playerEl.pause();
192
- else {
193
- this.#updateProgress();
194
- this.#playerEl.play();
195
- }
196
- this.#setPausedState();
197
- };
198
- #updateProgress = () => {
199
- _microsoft_fast_element.Observable.notify(this, "currentTime");
200
- const duration = this.duration;
201
- const currentTime = this.currentTime;
202
- const isValid = Number.isFinite(duration) && duration > 0 && Number.isFinite(currentTime) && currentTime >= 0;
203
- const percent = isValid ? currentTime / duration * 100 : 0;
204
- /* v8 ignore else -- @preserve */
205
- if (this.#sliderEl) {
206
- this.#isProgrammaticSliderUpdate = true;
207
- this.#sliderEl.value = percent.toString();
208
- this.#isProgrammaticSliderUpdate = false;
209
- }
210
- if (isValid && percent === 100) this.pause();
211
- };
212
- #updateTotalTime = () => {
213
- _microsoft_fast_element.Observable.notify(this, "duration");
214
- if (!Number.isFinite(this.#playerEl.duration) || this.#playerEl.duration <= 0) {
215
- if (this.durationFallback) this.#fetchAndCacheAudioBuffer();
216
- }
217
- };
240
+ #pausedChanged;
241
+ #updateProgress;
242
+ #updateTotalTime;
218
243
  #dragInterval;
219
- #updateCurrentTimeOnSliderChange = () => {
220
- if (!this.paused && this.#sliderEl.isDragging) {
221
- this.pause();
222
- this.#dragInterval = window.setInterval(() => {
223
- /* v8 ignore else -- @preserve */
224
- if (!this.#sliderEl.isDragging || !this.isConnected) {
225
- clearInterval(this.#dragInterval);
226
- if (this.isConnected) this.play();
227
- }
228
- }, 0);
229
- }
230
- if (this.#isProgrammaticSliderUpdate) return;
231
- /* v8 ignore else -- @preserve */
232
- if (this.#playerEl) this.currentTime = this.duration * Number(this.#sliderEl.value) / 100;
233
- };
234
- #setPausedState = () => {
235
- _microsoft_fast_element.Observable.notify(this, "paused");
236
- };
244
+ #updateCurrentTimeOnSliderChange;
245
+ #setPausedState;
237
246
  /**
238
247
  * Skips the current time by the skipBy value
239
248
  *