@vonage/vivid 5.23.1-preview.0 → 5.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (746) hide show
  1. package/accordion/index.cjs +1 -1
  2. package/accordion/index.js +1 -1
  3. package/accordion-item/index.cjs +1 -1
  4. package/accordion-item/index.js +1 -1
  5. package/action-group/index.cjs +1 -1
  6. package/action-group/index.js +1 -1
  7. package/alert/definition.cjs +1 -1
  8. package/alert/definition.js +1 -1
  9. package/alert/index.cjs +7 -7
  10. package/alert/index.js +13 -14
  11. package/audio-player/definition.cjs +1 -1
  12. package/audio-player/definition.js +1 -1
  13. package/audio-player/index.cjs +19 -17
  14. package/audio-player/index.js +24 -22
  15. package/avatar/definition.cjs +1 -1
  16. package/avatar/definition.js +1 -1
  17. package/avatar/index.cjs +4 -4
  18. package/avatar/index.js +6 -6
  19. package/badge/definition.cjs +1 -1
  20. package/badge/definition.js +1 -1
  21. package/badge/index.cjs +1 -1
  22. package/badge/index.js +1 -1
  23. package/banner/definition.cjs +1 -1
  24. package/banner/definition.js +1 -1
  25. package/banner/index.cjs +3 -3
  26. package/banner/index.js +8 -8
  27. package/breadcrumb/definition.cjs +1 -1
  28. package/breadcrumb/definition.js +1 -1
  29. package/breadcrumb-item/definition.cjs +1 -1
  30. package/breadcrumb-item/definition.js +1 -1
  31. package/breadcrumb-item/index.cjs +2 -2
  32. package/breadcrumb-item/index.js +5 -5
  33. package/bundled/affix.cjs +1 -1
  34. package/bundled/affix.js +1 -1
  35. package/bundled/base-color-picker.cjs +2 -2
  36. package/bundled/base-color-picker.js +5 -5
  37. package/bundled/calendar-picker.template.cjs +1 -1
  38. package/bundled/calendar-picker.template.js +1 -1
  39. package/bundled/definition11.cjs +4 -4
  40. package/bundled/definition11.js +5 -5
  41. package/bundled/definition12.cjs +9 -7
  42. package/bundled/definition12.js +28 -26
  43. package/bundled/definition13.cjs +9 -7
  44. package/bundled/definition13.js +16 -15
  45. package/bundled/definition15.cjs +8 -7
  46. package/bundled/definition15.js +26 -24
  47. package/bundled/definition16.cjs +4 -2
  48. package/bundled/definition16.js +8 -6
  49. package/bundled/definition17.cjs +8 -6
  50. package/bundled/definition17.js +15 -14
  51. package/bundled/definition18.cjs +12 -83
  52. package/bundled/definition18.js +35 -420
  53. package/bundled/definition19.cjs +87 -5
  54. package/bundled/definition19.js +432 -14
  55. package/bundled/definition2.cjs +1 -13
  56. package/bundled/definition2.js +181 -48
  57. package/bundled/definition20.cjs +7 -35
  58. package/bundled/definition20.js +17 -170
  59. package/bundled/definition21.cjs +35 -27
  60. package/bundled/definition21.js +154 -155
  61. package/bundled/definition22.cjs +29 -4
  62. package/bundled/definition22.js +171 -17
  63. package/bundled/definition23.cjs +6 -12
  64. package/bundled/definition23.js +17 -32
  65. package/bundled/definition24.cjs +12 -39
  66. package/bundled/definition24.js +32 -67
  67. package/bundled/definition25.cjs +44 -0
  68. package/bundled/definition25.js +77 -0
  69. package/bundled/definition3.cjs +13 -1
  70. package/bundled/definition3.js +48 -181
  71. package/bundled/definition4.cjs +9 -7
  72. package/bundled/definition4.js +18 -16
  73. package/bundled/definition5.cjs +5 -5
  74. package/bundled/definition5.js +9 -9
  75. package/bundled/definition6.cjs +3 -3
  76. package/bundled/definition6.js +16 -16
  77. package/bundled/definition7.cjs +1 -1
  78. package/bundled/definition7.js +1 -1
  79. package/bundled/definition8.cjs +7 -7
  80. package/bundled/definition8.js +9 -7
  81. package/bundled/definition9.cjs +4 -4
  82. package/bundled/definition9.js +12 -12
  83. package/bundled/extractOptions.cjs +1 -0
  84. package/bundled/extractOptions.js +11 -0
  85. package/bundled/listbox.cjs +1 -1
  86. package/bundled/listbox.js +24 -11
  87. package/bundled/mixins.cjs +3 -3
  88. package/bundled/mixins.js +5 -5
  89. package/bundled/numberConverter.cjs +1 -1
  90. package/bundled/numberConverter.js +36 -1
  91. package/bundled/picker-field.template.cjs +13 -13
  92. package/bundled/picker-field.template.js +16 -16
  93. package/bundled/render-in-light-dom.cjs +1 -1
  94. package/bundled/render-in-light-dom.js +16 -19
  95. package/bundled/slider.template.cjs +8 -8
  96. package/bundled/slider.template.js +9 -9
  97. package/bundled/text-field.cjs +1 -1
  98. package/bundled/text-field.js +1 -1
  99. package/bundled/time-selection-picker.template.cjs +3 -3
  100. package/bundled/time-selection-picker.template.js +9 -9
  101. package/bundled/vivid-element.cjs +1 -1
  102. package/bundled/vivid-element.js +9 -1
  103. package/button/definition.cjs +1 -1
  104. package/button/definition.js +1 -1
  105. package/calendar/definition.cjs +1 -1
  106. package/calendar/definition.js +1 -1
  107. package/calendar/index.cjs +9 -9
  108. package/calendar/index.js +7 -7
  109. package/calendar-event/definition.cjs +1 -1
  110. package/calendar-event/definition.js +1 -1
  111. package/calendar-event/index.cjs +2 -2
  112. package/calendar-event/index.js +2 -2
  113. package/card/definition.cjs +1 -1
  114. package/card/definition.js +1 -1
  115. package/card/index.cjs +3 -3
  116. package/card/index.js +6 -6
  117. package/color-picker/index.cjs +10 -10
  118. package/color-picker/index.js +52 -52
  119. package/combobox/definition.cjs +1 -1
  120. package/combobox/definition.js +1 -1
  121. package/combobox/index.cjs +11 -8
  122. package/combobox/index.js +59 -49
  123. package/country/definition.cjs +1 -1
  124. package/country/definition.js +1 -1
  125. package/country/index.cjs +1 -1
  126. package/country/index.js +1 -1
  127. package/country-group/definition.cjs +1 -1
  128. package/country-group/definition.js +1 -1
  129. package/country-group/index.cjs +1 -1
  130. package/country-group/index.js +2 -2
  131. package/custom-elements.json +837 -1225
  132. package/data-grid/definition.cjs +1 -1
  133. package/data-grid/definition.js +1 -1
  134. package/data-grid/index.cjs +8 -6
  135. package/data-grid/index.js +22 -20
  136. package/date-picker/definition.cjs +1 -1
  137. package/date-picker/definition.js +1 -1
  138. package/date-picker/index.cjs +1 -1
  139. package/date-picker/index.js +1 -1
  140. package/date-range-picker/definition.cjs +1 -1
  141. package/date-range-picker/definition.js +1 -1
  142. package/date-range-picker/index.cjs +1 -1
  143. package/date-range-picker/index.js +1 -1
  144. package/date-time-picker/definition.cjs +1 -1
  145. package/date-time-picker/definition.js +1 -1
  146. package/date-time-picker/index.cjs +1 -1
  147. package/date-time-picker/index.js +1 -1
  148. package/dial-pad/definition.cjs +1 -1
  149. package/dial-pad/definition.js +1 -1
  150. package/dial-pad/index.cjs +25 -23
  151. package/dial-pad/index.js +127 -56
  152. package/dialog/definition.cjs +1 -1
  153. package/dialog/definition.js +1 -1
  154. package/dialog/index.cjs +14 -14
  155. package/dialog/index.js +17 -18
  156. package/divider/definition.cjs +1 -1
  157. package/divider/definition.js +1 -1
  158. package/divider/index.cjs +1 -1
  159. package/divider/index.js +1 -1
  160. package/elevation/definition.cjs +1 -1
  161. package/elevation/definition.js +1 -1
  162. package/empty-state/definition.cjs +1 -1
  163. package/empty-state/definition.js +1 -1
  164. package/empty-state/index.cjs +4 -4
  165. package/empty-state/index.js +7 -11
  166. package/fab/definition.cjs +1 -1
  167. package/fab/definition.js +1 -1
  168. package/fab/index.cjs +4 -4
  169. package/fab/index.js +9 -13
  170. package/file-picker/definition.cjs +1 -1
  171. package/file-picker/definition.js +1 -1
  172. package/file-picker/index.cjs +8 -8
  173. package/file-picker/index.js +19 -19
  174. package/flag/definition.cjs +1 -1
  175. package/flag/definition.js +1 -1
  176. package/flag/index.cjs +5 -5
  177. package/flag/index.js +8 -12
  178. package/header/definition.cjs +1 -1
  179. package/header/definition.js +1 -1
  180. package/header/index.cjs +7 -7
  181. package/header/index.js +6 -10
  182. package/icon/index.cjs +1 -1
  183. package/icon/index.js +1 -1
  184. package/index.cjs +214 -209
  185. package/index.js +67 -66
  186. package/kbd-key/definition.cjs +1 -1
  187. package/kbd-key/definition.js +1 -1
  188. package/kbd-key/index.cjs +3 -3
  189. package/kbd-key/index.js +2 -6
  190. package/kbd-shortcut/definition.cjs +1 -1
  191. package/kbd-shortcut/definition.js +1 -1
  192. package/layout/definition.cjs +1 -1
  193. package/layout/definition.js +1 -1
  194. package/layout/index.cjs +3 -1
  195. package/layout/index.js +3 -1
  196. package/lib/accordion/variations.browser-spec.d.ts +1 -0
  197. package/lib/accordion-item/accordion-item.d.ts +2 -1
  198. package/lib/accordion-item/variations.browser-spec.d.ts +1 -0
  199. package/lib/action-group/action-group.d.ts +1 -1
  200. package/lib/action-group/variations.browser-spec.d.ts +1 -0
  201. package/lib/alert/alert.d.ts +2 -2
  202. package/lib/alert/variations.browser-spec.d.ts +1 -0
  203. package/lib/audio-player/audio-player.d.ts +1 -1
  204. package/lib/audio-player/variations.browser-spec.d.ts +1 -0
  205. package/lib/avatar/avatar.d.ts +1 -1
  206. package/lib/avatar/variations.browser-spec.d.ts +1 -0
  207. package/lib/badge/badge.d.ts +5 -5
  208. package/lib/badge/badge.template.d.ts +1 -2
  209. package/lib/badge/variations.browser-spec.d.ts +1 -0
  210. package/lib/banner/banner.d.ts +3 -3
  211. package/lib/banner/variations.browser-spec.d.ts +1 -0
  212. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  213. package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  214. package/lib/breadcrumb-item/variations.browser-spec.d.ts +1 -0
  215. package/lib/button/button.d.ts +3 -3
  216. package/lib/button/variations.browser-spec.d.ts +1 -0
  217. package/lib/calendar/variations.browser-spec.d.ts +1 -0
  218. package/lib/calendar-event/calendar-event.d.ts +1 -1
  219. package/lib/calendar-event/variations.browser-spec.d.ts +1 -0
  220. package/lib/card/card.d.ts +5 -5
  221. package/lib/card/variations.browser-spec.d.ts +1 -0
  222. package/lib/checkbox/checkbox.d.ts +6 -6
  223. package/lib/checkbox/variations.browser-spec.d.ts +1 -0
  224. package/lib/color-picker/color-picker.d.ts +8 -8
  225. package/lib/color-picker/variations.browser-spec.d.ts +1 -0
  226. package/lib/combobox/combobox.d.ts +7 -7
  227. package/lib/combobox/variations.browser-spec.d.ts +1 -0
  228. package/lib/components.d.ts +1 -0
  229. package/lib/contextual-help/variations.browser-spec.d.ts +1 -0
  230. package/lib/country/variations.browser-spec.d.ts +1 -0
  231. package/lib/country-group/country-group.d.ts +2 -2
  232. package/lib/data-grid/data-grid-cell.d.ts +4 -3
  233. package/lib/data-grid/data-grid-row.d.ts +3 -2
  234. package/lib/data-grid/data-grid.options.d.ts +5 -0
  235. package/lib/data-grid/variations.browser-spec.d.ts +1 -0
  236. package/lib/date-picker/date-picker.d.ts +8 -8
  237. package/lib/date-picker/variations.browser-spec.d.ts +1 -0
  238. package/lib/date-range-picker/date-range-picker.d.ts +4 -4
  239. package/lib/date-range-picker/variations.browser-spec.d.ts +1 -0
  240. package/lib/date-time-picker/date-time-picker.d.ts +8 -8
  241. package/lib/date-time-picker/variations.browser-spec.d.ts +1 -0
  242. package/lib/dial-pad/dial-pad.d.ts +2 -1
  243. package/lib/dial-pad/variations.browser-spec.d.ts +1 -0
  244. package/lib/dialog/dialog.d.ts +2 -2
  245. package/lib/dialog/variations.browser-spec.d.ts +1 -0
  246. package/lib/divider/divider.d.ts +1 -1
  247. package/lib/divider/variations.browser-spec.d.ts +1 -0
  248. package/lib/empty-state/variations.browser-spec.d.ts +1 -0
  249. package/lib/fab/fab.d.ts +6 -6
  250. package/lib/fab/variations.browser-spec.d.ts +1 -0
  251. package/lib/file-picker/file-picker.d.ts +7 -7
  252. package/lib/file-picker/variations.browser-spec.d.ts +1 -0
  253. package/lib/flag/variations.browser-spec.d.ts +1 -0
  254. package/lib/header/header.d.ts +1 -1
  255. package/lib/header/variations.browser-spec.d.ts +1 -0
  256. package/lib/icon/variations.browser-spec.d.ts +1 -0
  257. package/lib/kbd-key/variations.browser-spec.d.ts +1 -0
  258. package/lib/kbd-shortcut/variations.browser-spec.d.ts +1 -0
  259. package/lib/layout/variations.browser-spec.d.ts +1 -0
  260. package/lib/menu/menu.d.ts +2 -2
  261. package/lib/menu/variations.browser-spec.d.ts +1 -0
  262. package/lib/menu-item/menu-item.d.ts +3 -3
  263. package/lib/menu-item/variations.browser-spec.d.ts +1 -0
  264. package/lib/nav/nav.d.ts +1 -1
  265. package/lib/nav/variations.browser-spec.d.ts +1 -0
  266. package/lib/nav-disclosure/nav-disclosure.d.ts +2 -2
  267. package/lib/nav-disclosure/variations.browser-spec.d.ts +1 -0
  268. package/lib/nav-item/nav-item.d.ts +2 -2
  269. package/lib/nav-item/variations.browser-spec.d.ts +1 -0
  270. package/lib/note/note.d.ts +1 -1
  271. package/lib/note/variations.browser-spec.d.ts +1 -0
  272. package/lib/number-field/number-field.d.ts +9 -9
  273. package/lib/number-field/variations.browser-spec.d.ts +1 -0
  274. package/lib/optgroup/definition.d.ts +3 -0
  275. package/lib/optgroup/index.d.ts +1 -0
  276. package/lib/optgroup/optgroup.d.ts +430 -0
  277. package/lib/optgroup/optgroup.template.d.ts +2 -0
  278. package/lib/optgroup/variations.browser-spec.d.ts +1 -0
  279. package/lib/option/option.d.ts +2 -2
  280. package/lib/option/variations.browser-spec.d.ts +1 -0
  281. package/lib/pagination/pagination.d.ts +1 -1
  282. package/lib/pagination/variations.browser-spec.d.ts +1 -0
  283. package/lib/popover/popover.d.ts +2 -2
  284. package/lib/popover/variations.browser-spec.d.ts +1 -0
  285. package/lib/progress/progress.d.ts +1 -1
  286. package/lib/progress/variations.browser-spec.d.ts +1 -0
  287. package/lib/progress-ring/progress-ring.d.ts +1 -1
  288. package/lib/progress-ring/variations.browser-spec.d.ts +1 -0
  289. package/lib/radio/radio.d.ts +3 -3
  290. package/lib/radio/variations.browser-spec.d.ts +1 -0
  291. package/lib/radio-group/radio-group.d.ts +1 -1
  292. package/lib/radio-group/variations.browser-spec.d.ts +1 -0
  293. package/lib/range-slider/range-slider.d.ts +3 -3
  294. package/lib/range-slider/variations.browser-spec.d.ts +1 -0
  295. package/lib/rich-text-editor/rich-text-editor.d.ts +1 -1
  296. package/lib/rich-text-editor/rte/features/internal/cursor-fix.d.ts +6 -1
  297. package/lib/rich-text-editor/variations.browser-spec.d.ts +1 -0
  298. package/lib/rich-text-view/variations.browser-spec.d.ts +1 -0
  299. package/lib/searchable-select/option-tag.d.ts +1 -1
  300. package/lib/searchable-select/searchable-select.d.ts +47 -47
  301. package/lib/searchable-select/variations.browser-spec.d.ts +1 -0
  302. package/lib/select/select.d.ts +9 -9
  303. package/lib/select/variations.browser-spec.d.ts +1 -0
  304. package/lib/selectable-box/selectable-box.d.ts +1 -1
  305. package/lib/selectable-box/variations.browser-spec.d.ts +1 -0
  306. package/lib/side-drawer/variations.browser-spec.d.ts +1 -0
  307. package/lib/simple-color-picker/simple-color-picker.d.ts +4 -4
  308. package/lib/simple-color-picker/variations.browser-spec.d.ts +1 -0
  309. package/lib/slider/slider.d.ts +3 -3
  310. package/lib/slider/variations.browser-spec.d.ts +1 -0
  311. package/lib/split-button/split-button.d.ts +3 -3
  312. package/lib/split-button/variations.browser-spec.d.ts +1 -0
  313. package/lib/status/status.d.ts +1 -1
  314. package/lib/status/variations.browser-spec.d.ts +1 -0
  315. package/lib/switch/switch.d.ts +2 -2
  316. package/lib/switch/variations.browser-spec.d.ts +1 -0
  317. package/lib/tab/tab.d.ts +15 -15
  318. package/lib/tab-panel/tab-panel.d.ts +1 -1
  319. package/lib/table/table-cell.d.ts +1 -1
  320. package/lib/table/table-header-cell.d.ts +1 -1
  321. package/lib/table/table-row.d.ts +1 -1
  322. package/lib/table/table-sorting-button.d.ts +1 -1
  323. package/lib/table/variations.browser-spec.d.ts +1 -0
  324. package/lib/tabs/variations.browser-spec.d.ts +1 -0
  325. package/lib/tag/tag.d.ts +15 -15
  326. package/lib/tag/variations.browser-spec.d.ts +1 -0
  327. package/lib/tag-group/tag-group.d.ts +1 -1
  328. package/lib/tag-name-map.d.ts +2 -1
  329. package/lib/text-area/text-area.d.ts +8 -8
  330. package/lib/text-area/text-area.template.d.ts +1 -2
  331. package/lib/text-area/variations.browser-spec.d.ts +1 -0
  332. package/lib/text-field/text-field.d.ts +9 -9
  333. package/lib/text-field/variations.browser-spec.d.ts +1 -0
  334. package/lib/time-picker/time-picker.d.ts +4 -4
  335. package/lib/time-picker/variations.browser-spec.d.ts +1 -0
  336. package/lib/toggletip/toggletip.d.ts +2 -2
  337. package/lib/toggletip/variations.browser-spec.d.ts +1 -0
  338. package/lib/tooltip/tooltip.d.ts +2 -2
  339. package/lib/tooltip/variations.browser-spec.d.ts +1 -0
  340. package/lib/tree-item/tree-item.d.ts +2 -2
  341. package/lib/tree-item/variations.browser-spec.d.ts +1 -0
  342. package/lib/tree-view/tree-view.d.ts +1 -1
  343. package/lib/video-player/variations.browser-spec.d.ts +1 -0
  344. package/lib/video-player/video-player.d.ts +1 -1
  345. package/menu/definition.cjs +1 -1
  346. package/menu/definition.js +1 -1
  347. package/menu/index.cjs +1 -1
  348. package/menu/index.js +1 -1
  349. package/menu-item/definition.cjs +1 -1
  350. package/menu-item/definition.js +1 -1
  351. package/menu-item/index.cjs +1 -1
  352. package/menu-item/index.js +1 -1
  353. package/nav/definition.cjs +1 -1
  354. package/nav/definition.js +1 -1
  355. package/nav-disclosure/definition.cjs +1 -1
  356. package/nav-disclosure/definition.js +1 -1
  357. package/nav-disclosure/index.cjs +6 -6
  358. package/nav-disclosure/index.js +11 -15
  359. package/nav-item/definition.cjs +1 -1
  360. package/nav-item/definition.js +1 -1
  361. package/nav-item/index.cjs +2 -2
  362. package/nav-item/index.js +11 -15
  363. package/note/definition.cjs +1 -1
  364. package/note/definition.js +1 -1
  365. package/note/index.cjs +5 -5
  366. package/note/index.js +10 -11
  367. package/number-field/definition.cjs +1 -1
  368. package/number-field/definition.js +1 -1
  369. package/number-field/index.cjs +12 -12
  370. package/number-field/index.js +35 -36
  371. package/optgroup/definition.cjs +5 -0
  372. package/optgroup/definition.js +2 -0
  373. package/optgroup/index.cjs +1 -0
  374. package/optgroup/index.js +4 -0
  375. package/package.json +15 -6
  376. package/pagination/definition.cjs +1 -1
  377. package/pagination/definition.js +1 -1
  378. package/platform-switch/definition.cjs +1 -1
  379. package/platform-switch/definition.js +1 -1
  380. package/popover/definition.cjs +1 -1
  381. package/popover/definition.js +1 -1
  382. package/popover/index.cjs +8 -8
  383. package/popover/index.js +11 -15
  384. package/popup/definition.cjs +1 -1
  385. package/popup/definition.js +1 -1
  386. package/progress/definition.cjs +1 -1
  387. package/progress/definition.js +1 -1
  388. package/progress/index.cjs +8 -8
  389. package/progress/index.js +9 -10
  390. package/radio/definition.cjs +1 -1
  391. package/radio/definition.js +1 -1
  392. package/radio-group/definition.cjs +1 -1
  393. package/radio-group/definition.js +1 -1
  394. package/range-slider/definition.cjs +1 -1
  395. package/range-slider/definition.js +1 -1
  396. package/range-slider/index.cjs +10 -8
  397. package/range-slider/index.js +26 -24
  398. package/rich-text-editor/definition.cjs +1 -1
  399. package/rich-text-editor/definition.js +1 -1
  400. package/rich-text-editor/index.cjs +3 -3
  401. package/rich-text-editor/index.js +762 -751
  402. package/rich-text-view/definition.cjs +1 -1
  403. package/rich-text-view/definition.js +1 -1
  404. package/searchable-select/definition.cjs +2 -1
  405. package/searchable-select/definition.js +2 -2
  406. package/searchable-select/index.cjs +30 -27
  407. package/searchable-select/index.js +104 -85
  408. package/select/definition.cjs +1 -1
  409. package/select/definition.js +1 -1
  410. package/select/index.cjs +1 -1
  411. package/select/index.js +1 -1
  412. package/selectable-box/definition.cjs +1 -1
  413. package/selectable-box/definition.js +1 -1
  414. package/selectable-box/index.cjs +8 -8
  415. package/selectable-box/index.js +8 -9
  416. package/shared/aria/delegates-aria.d.ts +1 -1
  417. package/shared/aria/host-semantics.d.ts +1 -1
  418. package/shared/color-picker/base-color-picker.d.ts +1 -1
  419. package/shared/feedback/feedback-message.d.ts +1 -1
  420. package/shared/feedback/mixins.d.ts +2 -2
  421. package/shared/foundation/button/button.d.ts +2 -2
  422. package/shared/foundation/form-associated/form-associated.d.ts +2 -2
  423. package/shared/foundation/listbox/extractOptions.d.ts +2 -0
  424. package/shared/foundation/listbox/listbox.d.ts +2 -0
  425. package/shared/patterns/affix.d.ts +2 -2
  426. package/shared/patterns/anchored.d.ts +2 -2
  427. package/shared/patterns/char-count/char-count.d.ts +1 -1
  428. package/shared/patterns/form-elements/form-element.d.ts +1 -1
  429. package/shared/patterns/form-elements/with-contextual-help.d.ts +1 -1
  430. package/shared/patterns/form-elements/with-error-text.d.ts +1 -1
  431. package/shared/patterns/form-elements/with-success-text.d.ts +1 -1
  432. package/shared/patterns/kbd-shortcut.d.ts +1 -1
  433. package/shared/patterns/linkable.d.ts +1 -1
  434. package/shared/patterns/localized.d.ts +2 -2
  435. package/shared/patterns/trapped-focus.d.ts +1 -1
  436. package/shared/picker-field/mixins/calendar-picker.d.ts +2 -2
  437. package/shared/picker-field/mixins/calendar-picker.template.d.ts +2 -2
  438. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +1 -1
  439. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +2 -2
  440. package/shared/picker-field/mixins/single-date-picker.d.ts +2 -2
  441. package/shared/picker-field/mixins/single-value-picker.d.ts +2 -2
  442. package/shared/picker-field/mixins/time-selection-picker.d.ts +2 -2
  443. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +4 -4
  444. package/shared/picker-field/picker-field.d.ts +7 -7
  445. package/side-drawer/definition.cjs +1 -1
  446. package/side-drawer/definition.js +1 -1
  447. package/side-drawer/index.cjs +3 -3
  448. package/side-drawer/index.js +3 -3
  449. package/simple-color-picker/definition.cjs +1 -1
  450. package/simple-color-picker/definition.js +1 -1
  451. package/simple-color-picker/index.cjs +4 -4
  452. package/simple-color-picker/index.js +6 -6
  453. package/slider/definition.cjs +1 -1
  454. package/slider/definition.js +1 -1
  455. package/slider/index.cjs +1 -1
  456. package/slider/index.js +1 -1
  457. package/split-button/definition.cjs +1 -1
  458. package/split-button/definition.js +1 -1
  459. package/split-button/index.cjs +5 -4
  460. package/split-button/index.js +10 -9
  461. package/status/definition.cjs +1 -1
  462. package/status/definition.js +1 -1
  463. package/status/index.cjs +7 -5
  464. package/status/index.js +14 -12
  465. package/styles/core/all.css +5 -7
  466. package/styles/core/theme.css +5 -7
  467. package/styles/core/typography.css +0 -3
  468. package/styles/tokens/vivid-2-compat.css +1 -6
  469. package/switch/definition.cjs +1 -1
  470. package/switch/definition.js +1 -1
  471. package/switch/index.cjs +5 -4
  472. package/switch/index.js +14 -12
  473. package/tab/definition.cjs +1 -1
  474. package/tab/definition.js +1 -1
  475. package/tab-panel/definition.cjs +1 -1
  476. package/tab-panel/definition.js +1 -1
  477. package/table/definition.cjs +1 -1
  478. package/table/definition.js +1 -1
  479. package/table/index.cjs +10 -10
  480. package/table/index.js +12 -12
  481. package/tabs/definition.cjs +1 -1
  482. package/tabs/definition.js +1 -1
  483. package/tabs/index.cjs +6 -4
  484. package/tabs/index.js +10 -9
  485. package/tag/definition.cjs +1 -1
  486. package/tag/definition.js +1 -1
  487. package/tag/index.cjs +6 -6
  488. package/tag/index.js +8 -8
  489. package/tag-group/definition.cjs +1 -1
  490. package/tag-group/definition.js +1 -1
  491. package/text-area/definition.cjs +1 -1
  492. package/text-area/definition.js +1 -1
  493. package/text-area/index.cjs +8 -6
  494. package/text-area/index.js +20 -19
  495. package/time-picker/definition.cjs +1 -1
  496. package/time-picker/definition.js +1 -1
  497. package/tree-item/definition.cjs +1 -1
  498. package/tree-item/definition.js +1 -1
  499. package/tree-view/definition.cjs +1 -1
  500. package/tree-view/definition.js +1 -1
  501. package/unbundled/affix.cjs +2 -7
  502. package/unbundled/affix.js +2 -7
  503. package/unbundled/anchored.cjs +2 -6
  504. package/unbundled/anchored.js +2 -6
  505. package/unbundled/aria-binding-directive.cjs +1 -3
  506. package/unbundled/aria-binding-directive.js +1 -3
  507. package/unbundled/base-color-picker.cjs +18 -52
  508. package/unbundled/base-color-picker.js +18 -52
  509. package/unbundled/base-progress.cjs +4 -14
  510. package/unbundled/base-progress.js +4 -14
  511. package/unbundled/button.cjs +2 -8
  512. package/unbundled/button.js +2 -8
  513. package/unbundled/calendar-picker.template.cjs +31 -85
  514. package/unbundled/calendar-picker.template.js +30 -84
  515. package/unbundled/char-count.cjs +2 -4
  516. package/unbundled/char-count.js +2 -4
  517. package/unbundled/data-grid.options.cjs +3 -19
  518. package/unbundled/data-grid.options.js +3 -19
  519. package/unbundled/definition.cjs +3 -8
  520. package/unbundled/definition.js +3 -8
  521. package/unbundled/definition10.cjs +316 -211
  522. package/unbundled/definition10.js +313 -202
  523. package/unbundled/definition11.cjs +262 -356
  524. package/unbundled/definition11.js +248 -354
  525. package/unbundled/definition12.cjs +243 -274
  526. package/unbundled/definition12.js +241 -260
  527. package/unbundled/definition13.cjs +341 -255
  528. package/unbundled/definition13.js +338 -252
  529. package/unbundled/definition14.cjs +61 -371
  530. package/unbundled/definition14.js +57 -367
  531. package/unbundled/definition15.cjs +32 -77
  532. package/unbundled/definition15.js +28 -73
  533. package/unbundled/definition16.cjs +120 -32
  534. package/unbundled/definition16.js +117 -29
  535. package/unbundled/definition17.cjs +24 -132
  536. package/unbundled/definition17.js +24 -126
  537. package/unbundled/definition18.cjs +74 -26
  538. package/unbundled/definition18.js +67 -25
  539. package/unbundled/definition19.cjs +33 -79
  540. package/unbundled/definition19.js +32 -73
  541. package/unbundled/definition2.cjs +11 -8
  542. package/unbundled/definition2.js +11 -8
  543. package/unbundled/definition20.cjs +272 -29
  544. package/unbundled/definition20.js +264 -27
  545. package/unbundled/definition21.cjs +135 -263
  546. package/unbundled/definition21.js +133 -260
  547. package/unbundled/definition22.cjs +17 -155
  548. package/unbundled/definition22.js +13 -151
  549. package/unbundled/definition23.cjs +9 -17
  550. package/unbundled/definition23.js +10 -18
  551. package/unbundled/definition24.cjs +4 -10
  552. package/unbundled/definition24.js +4 -10
  553. package/unbundled/definition25.cjs +2 -10
  554. package/unbundled/definition25.js +2 -10
  555. package/unbundled/definition26.cjs +28 -70
  556. package/unbundled/definition26.js +28 -70
  557. package/unbundled/definition27.cjs +6 -13
  558. package/unbundled/definition27.js +6 -13
  559. package/unbundled/definition28.cjs +30 -77
  560. package/unbundled/definition28.js +30 -77
  561. package/unbundled/definition29.cjs +7 -14
  562. package/unbundled/definition29.js +7 -14
  563. package/unbundled/definition3.cjs +5 -16
  564. package/unbundled/definition3.js +5 -16
  565. package/unbundled/definition30.cjs +66 -516
  566. package/unbundled/definition30.js +58 -514
  567. package/unbundled/definition31.cjs +502 -42
  568. package/unbundled/definition31.js +500 -40
  569. package/unbundled/definition32.cjs +42 -253
  570. package/unbundled/definition32.js +39 -250
  571. package/unbundled/definition33.cjs +238 -81
  572. package/unbundled/definition33.js +235 -78
  573. package/unbundled/definition34.cjs +75 -2059
  574. package/unbundled/definition34.js +72 -2032
  575. package/unbundled/definition35.cjs +1990 -25
  576. package/unbundled/definition35.js +1960 -24
  577. package/unbundled/definition36.cjs +27 -134
  578. package/unbundled/definition36.js +24 -126
  579. package/unbundled/definition37.cjs +71 -368
  580. package/unbundled/definition37.js +66 -363
  581. package/unbundled/definition38.cjs +300 -176
  582. package/unbundled/definition38.js +295 -171
  583. package/unbundled/definition39.cjs +184 -374
  584. package/unbundled/definition39.js +180 -370
  585. package/unbundled/definition4.cjs +2 -11
  586. package/unbundled/definition4.js +2 -7
  587. package/unbundled/definition40.cjs +392 -237
  588. package/unbundled/definition40.js +389 -234
  589. package/unbundled/definition41.cjs +264 -50
  590. package/unbundled/definition41.js +259 -45
  591. package/unbundled/definition42.cjs +48 -71
  592. package/unbundled/definition42.js +46 -69
  593. package/unbundled/definition43.cjs +56 -426
  594. package/unbundled/definition43.js +55 -425
  595. package/unbundled/definition44.cjs +387 -48
  596. package/unbundled/definition44.js +383 -44
  597. package/unbundled/definition45.cjs +54 -48
  598. package/unbundled/definition45.js +50 -44
  599. package/unbundled/definition46.cjs +40 -173
  600. package/unbundled/definition46.js +36 -169
  601. package/unbundled/definition47.cjs +172 -33
  602. package/unbundled/definition47.js +168 -28
  603. package/unbundled/definition48.cjs +31 -97
  604. package/unbundled/definition48.js +23 -95
  605. package/unbundled/definition49.cjs +71 -38
  606. package/unbundled/definition49.js +68 -35
  607. package/unbundled/definition5.cjs +2 -5
  608. package/unbundled/definition5.js +2 -5
  609. package/unbundled/definition50.cjs +55 -26
  610. package/unbundled/definition50.js +53 -21
  611. package/unbundled/definition51.cjs +24 -43
  612. package/unbundled/definition51.js +18 -40
  613. package/unbundled/definition52.cjs +30 -340
  614. package/unbundled/definition52.js +28 -338
  615. package/unbundled/definition53.cjs +295 -197
  616. package/unbundled/definition53.js +292 -194
  617. package/unbundled/definition54.cjs +211 -45
  618. package/unbundled/definition54.js +207 -41
  619. package/unbundled/definition55.cjs +42 -308
  620. package/unbundled/definition55.js +38 -304
  621. package/unbundled/definition56.cjs +266 -53
  622. package/unbundled/definition56.js +263 -49
  623. package/unbundled/definition57.cjs +51 -162
  624. package/unbundled/definition57.js +49 -160
  625. package/unbundled/definition58.cjs +135 -253
  626. package/unbundled/definition58.js +130 -251
  627. package/unbundled/definition59.cjs +209 -457
  628. package/unbundled/definition59.js +206 -454
  629. package/unbundled/definition6.cjs +179 -17
  630. package/unbundled/definition6.js +170 -14
  631. package/unbundled/definition60.cjs +441 -3722
  632. package/unbundled/definition60.js +435 -3553
  633. package/unbundled/definition61.cjs +3713 -761
  634. package/unbundled/definition61.js +3540 -751
  635. package/unbundled/definition62.cjs +761 -95
  636. package/unbundled/definition62.js +758 -92
  637. package/unbundled/definition63.cjs +106 -1055
  638. package/unbundled/definition63.js +98 -1047
  639. package/unbundled/definition64.cjs +991 -103
  640. package/unbundled/definition64.js +986 -101
  641. package/unbundled/definition65.cjs +111 -83
  642. package/unbundled/definition65.js +106 -77
  643. package/unbundled/definition66.cjs +71 -179
  644. package/unbundled/definition66.js +62 -176
  645. package/unbundled/definition67.cjs +154 -120
  646. package/unbundled/definition67.js +151 -117
  647. package/unbundled/definition68.cjs +126 -52
  648. package/unbundled/definition68.js +122 -48
  649. package/unbundled/definition69.cjs +52 -94
  650. package/unbundled/definition69.js +50 -91
  651. package/unbundled/definition7.cjs +31 -177
  652. package/unbundled/definition7.js +24 -170
  653. package/unbundled/definition70.cjs +92 -22
  654. package/unbundled/definition70.js +87 -17
  655. package/unbundled/definition71.cjs +21 -93
  656. package/unbundled/definition71.js +15 -90
  657. package/unbundled/definition72.cjs +77 -309
  658. package/unbundled/definition72.js +72 -232
  659. package/unbundled/definition73.cjs +288 -335
  660. package/unbundled/definition73.js +217 -329
  661. package/unbundled/definition74.cjs +327 -29
  662. package/unbundled/definition74.js +318 -26
  663. package/unbundled/definition75.cjs +28 -129
  664. package/unbundled/definition75.js +23 -125
  665. package/unbundled/definition76.cjs +107 -271
  666. package/unbundled/definition76.js +103 -267
  667. package/unbundled/definition77.cjs +258 -27
  668. package/unbundled/definition77.js +249 -25
  669. package/unbundled/definition78.cjs +30 -155
  670. package/unbundled/definition78.js +28 -140
  671. package/unbundled/definition79.cjs +117 -183
  672. package/unbundled/definition79.js +108 -179
  673. package/unbundled/definition8.cjs +152 -36
  674. package/unbundled/definition8.js +148 -31
  675. package/unbundled/definition80.cjs +180 -492
  676. package/unbundled/definition80.js +175 -486
  677. package/unbundled/definition81.cjs +517 -0
  678. package/unbundled/definition81.js +497 -0
  679. package/unbundled/definition9.cjs +200 -135
  680. package/unbundled/definition9.js +189 -130
  681. package/unbundled/delegates-aria.cjs +1 -3
  682. package/unbundled/delegates-aria.js +1 -3
  683. package/unbundled/divider.cjs +2 -7
  684. package/unbundled/divider.js +2 -7
  685. package/unbundled/extractOptions.cjs +21 -0
  686. package/unbundled/extractOptions.js +16 -0
  687. package/unbundled/form-associated.cjs +20 -60
  688. package/unbundled/form-associated.js +20 -60
  689. package/unbundled/form-element.cjs +5 -15
  690. package/unbundled/form-element.js +5 -15
  691. package/unbundled/host-semantics.cjs +1 -3
  692. package/unbundled/host-semantics.js +1 -3
  693. package/unbundled/kbd-shortcut.cjs +1 -3
  694. package/unbundled/kbd-shortcut.js +1 -3
  695. package/unbundled/linkable.cjs +1 -3
  696. package/unbundled/linkable.js +1 -3
  697. package/unbundled/listbox.cjs +29 -26
  698. package/unbundled/listbox.js +29 -26
  699. package/unbundled/localized.cjs +3 -9
  700. package/unbundled/localized.js +3 -9
  701. package/unbundled/mixins.cjs +9 -25
  702. package/unbundled/mixins.js +9 -25
  703. package/unbundled/numberConverter.cjs +39 -9
  704. package/unbundled/numberConverter.js +39 -9
  705. package/unbundled/picker-field.template.cjs +16 -36
  706. package/unbundled/picker-field.template.js +16 -36
  707. package/unbundled/platform.cjs +1 -3
  708. package/unbundled/platform.js +1 -3
  709. package/unbundled/playbackRates.cjs +1 -3
  710. package/unbundled/playbackRates.js +1 -3
  711. package/unbundled/randomId.cjs +1 -3
  712. package/unbundled/randomId.js +1 -3
  713. package/unbundled/single-date-picker.cjs +6 -18
  714. package/unbundled/single-date-picker.js +6 -18
  715. package/unbundled/single-value-picker.cjs +7 -21
  716. package/unbundled/single-value-picker.js +7 -21
  717. package/unbundled/slider.template.cjs +6 -14
  718. package/unbundled/slider.template.js +6 -14
  719. package/unbundled/slottable-request.cjs +2 -6
  720. package/unbundled/slottable-request.js +2 -6
  721. package/unbundled/text-field.cjs +1 -1
  722. package/unbundled/text-field.js +1 -1
  723. package/unbundled/time-selection-picker.template.cjs +27 -79
  724. package/unbundled/time-selection-picker.template.js +27 -79
  725. package/unbundled/trapped-focus.cjs +1 -3
  726. package/unbundled/trapped-focus.js +1 -3
  727. package/unbundled/vivid-element.cjs +16 -19
  728. package/unbundled/vivid-element.js +16 -19
  729. package/unbundled/with-contextual-help.cjs +4 -13
  730. package/unbundled/with-contextual-help.js +4 -13
  731. package/unbundled/with-error-text.cjs +2 -6
  732. package/unbundled/with-error-text.js +2 -6
  733. package/unbundled/with-success-text.cjs +1 -3
  734. package/unbundled/with-success-text.js +1 -3
  735. package/video-player/definition.cjs +1 -1
  736. package/video-player/definition.js +1 -1
  737. package/video-player/index.cjs +3 -3
  738. package/video-player/index.js +5 -5
  739. package/visually-hidden/definition.cjs +1 -1
  740. package/visually-hidden/definition.js +1 -1
  741. package/vivid.api.json +194 -0
  742. package/shared/color-picker/index.d.ts +0 -3
  743. package/shared/foundation/button/index.d.ts +0 -2
  744. package/shared/patterns/char-count/index.d.ts +0 -1
  745. package/shared/patterns/form-elements/index.d.ts +0 -4
  746. package/shared/patterns/index.d.ts +0 -7
@@ -1,527 +1,279 @@
1
1
  require("./chunk.cjs");
2
2
  const require_vivid_element = require("./vivid-element.cjs");
3
3
  const require_decorate = require("./decorate.cjs");
4
- const require_form_associated = require("./form-associated.cjs");
5
- const require_form_element = require("./form-element.cjs");
6
- const require_localized = require("./localized.cjs");
7
- const require_definition = require("./definition10.cjs");
4
+ const require_delegates_aria = require("./delegates-aria.cjs");
8
5
  const require_key_codes = require("./key-codes.cjs");
9
- const require_slider_template = require("./slider.template.cjs");
6
+ const require_mixins = require("./mixins.cjs");
7
+ const require_definition = require("./definition58.cjs");
10
8
  let _microsoft_fast_element = require("@microsoft/fast-element");
11
9
  let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
12
- //#region src/lib/range-slider/range-slider.scss?inline
13
- var range_slider_default = ":host{display:inline-block}:host(:not([orientation=vertical])){inline-size:100%}:host([orientation=vertical]){block-size:100%;min-block-size:calc(var(--_thumb-interaction-indicator-size) * 5)}:host([disabled]){cursor:not-allowed}.control.connotation-cta{--_connotation-color-primary:var(--vvd-slider-cta-primary,var(--vvd-color-cta-500))}.control:not(.connotation-cta){--_connotation-color-primary:var(--vvd-slider-accent-primary,var(--vvd-color-canvas-text))}.control{--_appearance-color-text:var(--_connotation-color-primary-text);--_appearance-color-fill:var(--_connotation-color-primary);--_appearance-color-outline:transparent;--_thumb-size:12px;--_thumb-interaction-indicator-size:36px;--_track-start-inset-inline-start:0;--_track-start-inset-block-start:0;cursor:pointer;user-select:none;outline:none}.control .positioning-region{position:relative}.control .track{background:var(--_track-background-color);border-radius:4px;position:absolute}.control .track-start{border-radius:inherit;background:var(--_track-start-background-color);block-size:100%;position:absolute;inset-inline-start:var(--_track-start-inset-inline-start)}.control.horizontal{block-size:var(--_thumb-interaction-indicator-size);inline-size:calc(100% - var(--_thumb-size));min-inline-size:var(--_thumb-size);margin-inline-start:calc(var(--_thumb-size) / 2)}.control.horizontal .track{top:calc((var(--_thumb-interaction-indicator-size) - 2px) / 2);block-size:2px;left:0;right:0}:host([markers]) .control.horizontal .track-start{--_track-start-inset-inline-start:1px;border-top-left-radius:0;border-bottom-left-radius:0}.control.horizontal .track .mark{block-size:6px;inline-size:100%;position:absolute;inset-block-start:-2px;inset-inline-start:0}.control.vertical{margin-top:calc(var(--_thumb-interaction-indicator-size) / 2);block-size:calc(100% - var(--_thumb-interaction-indicator-size));inline-size:var(--_thumb-interaction-indicator-size);min-block-size:var(--_thumb-interaction-indicator-size)}.control.vertical .positioning-region{block-size:100%}.control.vertical .track{left:calc((var(--_thumb-interaction-indicator-size) - 2px) / 2);block-size:100%;inline-size:2px}.control.vertical .track .mark{block-size:100%;inline-size:6px;position:absolute;inset-block-start:0;inset-inline-start:-2px}.control.vertical .track-start{block-size:auto;inline-size:100%;inset-block-start:var(--_track-start-inset-block-start)}:host([markers]) .control.vertical .track-start{--_track-start-inset-block-start:1px;border-radius:0}.control.disabled{--_track-background-color:var(--vvd-color-neutral-100);--_track-start-background-color:var(--vvd-color-neutral-300);pointer-events:none}.control:not(.disabled){--_track-background-color:var(--vvd-color-neutral-300);--_track-start-background-color:var(--_appearance-color-fill)}.control:not(.disabled) .mark{color:var(--vvd-color-neutral-950)}.control.disabled .mark{color:var(--_track-start-background-color)}.thumb-container{block-size:var(--_thumb-interaction-indicator-size);cursor:inherit;inline-size:var(--_thumb-interaction-indicator-size);touch-action:none;border-radius:50%;outline:none;position:absolute}.thumb-container.focus-visible{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;--_thumb-interaction-indicator-alpha:.05;border-radius:50%}.control.horizontal .thumb-container{transform:translateX(calc(var(--_thumb-interaction-indicator-size) / 2))}.control.vertical .thumb-container{transform:translateY(calc(var(--_thumb-interaction-indicator-size) / 2))}@media (hover:hover){.control:not(.disabled) .thumb-container:hover{--_thumb-interaction-indicator-alpha:.12}}.control:not(.disabled) .thumb-container:active{--_thumb-interaction-indicator-alpha:.25}.thumb-container:before{border-radius:inherit;background-color:var(--_track-start-background-color);block-size:var(--_thumb-interaction-indicator-size);content:\"\";inline-size:var(--_thumb-interaction-indicator-size);opacity:var(--_thumb-interaction-indicator-alpha,0);transition:opacity .2s ease-out;display:block;position:absolute}.thumb-container:after{border-radius:inherit;background-color:var(--_track-start-background-color);block-size:var(--_thumb-size);content:\"\";inline-size:var(--_thumb-size);inset:calc((var(--_thumb-interaction-indicator-size) - var(--_thumb-size)) / 2);display:block;position:absolute}.popup{pointer-events:none}.tooltip{width:auto;color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base-bold);padding:8px 12px}:host([internal-part]) .thumb-container{opacity:0;transition:opacity .2s}:host([internal-part]) .control.horizontal .track{block-size:4px;top:16px;overflow:hidden}:host([internal-part]) .control:focus .thumb-container{opacity:1}@media (hover:hover){:host([internal-part]) .control:hover .thumb-container{opacity:1}}.control,:host([markers]) .control.horizontal .track-start,:host([markers]) .control.vertical .track-start{--_track-start-inset-inline-start:auto;--_track-start-inset-block-start:auto}";
10
+ //#region src/lib/radio-group/radio-group.scss?inline
11
+ var radio_group_default = ".base{--_low-ink-color:var(--vvd-color-neutral-600);flex-direction:column;gap:8px;display:flex}.positioning-region{flex-wrap:wrap;gap:8px;display:flex}.positioning-region.vertical{flex-direction:column}fieldset{border:none;margin:0;padding:0;display:block}legend{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);margin-block-end:8px;padding:0}";
14
12
  //#endregion
15
- //#region src/lib/range-slider/range-slider.ts
16
- var Direction = {
17
- Increment: 1,
18
- Decrement: -1
19
- };
13
+ //#region src/lib/radio-group/radio-group.ts
20
14
  /**
21
- * Base class for range-slider
22
- *
23
- * @component range-slider
24
15
  * @public
25
- * @event {CustomEvent<undefined>} input:start - Event emitted when the start value changes
26
- * @event {CustomEvent<undefined>} input:end - Event emitted when the end value changes
27
- * @event {CustomEvent<undefined>} input - Event emitted when either the start or end value changes.
28
- * @event {CustomEvent<undefined>} change - Event emitted when either the start or end value changes.
29
- * @vueModel start start input:start `event.currentTarget.start`
30
- * @vueModel end end input:end `event.currentTarget.end`
31
- * @vueModel startAsNumber startAsNumber input:start `event.currentTarget.startAsNumber`
32
- * @vueModel endAsNumber endAsNumber input:end `event.currentTarget.endAsNumber`
33
- * @testSelector byLabel byLabel
34
- * @testAction slideStartTo slideTo #track #startThumb
35
- * @testAction slideEndTo slideTo #track #endThumb
36
- * @testQuery range rangeAsNumber
37
- * @testRef track shadow .control
38
- * @testRef startThumb shadow #start-thumb
39
- * @testRef endThumb shadow #end-thumb
16
+ * @component radio-group
17
+ * @slot - Default slot.
18
+ * @slot helper-text - Describes how to use the text-field. Alternative to the `helper-text` attribute.
19
+ * @event {CustomEvent<undefined>} change - Fires a custom 'change' event when the value changes
20
+ * @vueModel modelValue value change `event.currentTarget.value`
40
21
  */
41
- var RangeSlider = class extends require_localized.Localized(require_form_element.FormElement(require_form_associated.FormAssociated(require_vivid_element.VividElement))) {
22
+ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element.VividElement) {
42
23
  constructor(..._args) {
43
24
  super(..._args);
44
- this.#isInternalValueUpdate = false;
45
- this.start = "";
46
- this.end = "";
47
- this.min = 0;
48
- this.max = 10;
49
- this.step = 1;
25
+ this.errorValidationMessage = "";
50
26
  this.orientation = _microsoft_fast_web_utilities.Orientation.horizontal;
51
- this.ariaStartLabel = null;
52
- this.ariaEndLabel = null;
53
- this.markers = false;
54
- this.pin = false;
55
- this.valueTextFormatter = (value) => parseFloat(value).toLocaleString(this.locale.lang);
56
- this.proxy = document.createElement("input");
57
- this._trackEl = null;
58
- this._startThumbEl = null;
59
- this._endThumbEl = null;
60
- this._draggingThumb = false;
61
- this._visiblyFocusedThumb = null;
62
- this._hoveredThumb = null;
63
- this._startThumbCss = "";
64
- this._endThumbCss = "";
65
- this._selectedRangeCss = "";
66
- this.#isNonVisibleFocus = false;
67
- this.#onThumbFocus = (e) => {
68
- if (!this.#isNonVisibleFocus) this._visiblyFocusedThumb = this.#getThumbIdFromEvent(e);
69
- this.#isNonVisibleFocus = false;
70
- };
71
- this.#onThumbBlur = () => {
72
- this._visiblyFocusedThumb = null;
27
+ this.slottedRadioButtons = [];
28
+ this.radioErrorHandler = (e) => {
29
+ const radio = e.target;
30
+ this.errorValidationMessage = radio.errorValidationMessage || "";
73
31
  };
74
- this.#onVisibilityChange = () => {
75
- if (document.hidden && (this.shadowRoot.activeElement === this._startThumbEl || this.shadowRoot.activeElement === this._endThumbEl)) this.#isNonVisibleFocus = true;
32
+ this.radioChangeHandler = (e) => {
33
+ const changedRadio = e.target;
34
+ if (changedRadio.checked) {
35
+ this.slottedRadioButtons.forEach((radio) => {
36
+ if (radio !== changedRadio) radio.checked = false;
37
+ });
38
+ this.value = changedRadio.value;
39
+ this.#setTabRovingTarget(changedRadio);
40
+ }
41
+ e.stopPropagation();
76
42
  };
77
- this.#onMouseOver = (e) => {
78
- this._hoveredThumb = this.#getThumbIdFromEvent(e);
43
+ this.moveToRadioByIndex = (group, index) => {
44
+ const radio = group[index];
45
+ if (!this.isInsideToolbar && !radio.readOnly) radio.checked = true;
46
+ radio.focus();
79
47
  };
80
- this.#onMouseOut = () => {
81
- this._hoveredThumb = null;
48
+ this.moveRightOffGroup = () => {
49
+ const next = this.nextElementSibling;
50
+ if (next instanceof HTMLElement) next.focus();
82
51
  };
83
- this.#onThumbMousedown = (event) => {
84
- if (this.disabled || event.defaultPrevented) return;
85
- let target = event.target;
86
- if (target === this._endThumbEl && this.startAsNumber === this.max && this.endAsNumber === this.max) target = this._startThumbEl;
87
- this.#focusThumbNonVisibly(target);
88
- this._draggingThumb = this.#getThumbId(target);
89
- this.#registerDragHandlers();
52
+ this.moveLeftOffGroup = () => {
53
+ const prev = this.previousElementSibling;
54
+ if (prev instanceof HTMLElement) prev.focus();
90
55
  };
91
- this.#onThumbKeydown = (e) => {
92
- const thumb = this.#getThumbIdFromEvent(e);
93
- this._visiblyFocusedThumb = thumb;
94
- if (e.key === _microsoft_fast_web_utilities.keyHome) {
95
- e.preventDefault();
96
- this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].min}` });
97
- } else if (e.key === _microsoft_fast_web_utilities.keyEnd) {
98
- e.preventDefault();
99
- this.#updateValues({ [thumb]: `${this.#thumbConstraints[thumb].max}` });
100
- } else {
101
- if (e.shiftKey) return;
102
- switch (e.key) {
103
- case require_key_codes.keyArrowRight:
104
- case _microsoft_fast_web_utilities.keyArrowDown:
105
- e.preventDefault();
106
- this.#applyStep(thumb, Direction.Increment);
107
- break;
108
- case require_key_codes.keyArrowLeft:
109
- case _microsoft_fast_web_utilities.keyArrowUp:
110
- e.preventDefault();
111
- this.#applyStep(thumb, Direction.Decrement);
112
- break;
113
- }
56
+ this.moveRight = (e) => {
57
+ const radio = e.target;
58
+ const group = this.#focusableRadioButtons;
59
+ let index = group.indexOf(radio) + 1;
60
+ if (index === group.length && this.isInsideToolbar && e.key === "ArrowRight") {
61
+ this.moveRightOffGroup();
62
+ return;
114
63
  }
64
+ if (index === group.length) index = 0;
65
+ this.moveToRadioByIndex(group, index);
115
66
  };
116
- this.#onDragMove = (e) => {
117
- if (this.disabled || e.defaultPrevented || !this._draggingThumb) return;
118
- const sourceEvent = "TouchEvent" in window && e instanceof TouchEvent ? e.touches[0] : e;
119
- const value = this.#calculateValueFromMouseEvent(sourceEvent);
120
- this.#updateValues({ [this._draggingThumb]: `${this.#roundToNearestStep(this._draggingThumb, value)}` });
67
+ this.moveLeft = (e) => {
68
+ const radio = e.target;
69
+ const group = this.#focusableRadioButtons;
70
+ let index = group.indexOf(radio) - 1;
71
+ if (this.isInsideToolbar && e.key === "ArrowLeft" && index < 0) {
72
+ this.moveLeftOffGroup();
73
+ return;
74
+ }
75
+ index = index < 0 ? group.length - 1 : index;
76
+ this.moveToRadioByIndex(group, index);
121
77
  };
122
- this.#onDragEnd = () => {
123
- this._draggingThumb = false;
124
- this.#unregisterDragListeners();
78
+ this.keydownHandler = (e) => {
79
+ switch (e.key) {
80
+ case _microsoft_fast_web_utilities.keyEnter:
81
+ this.checkFocusedRadio(e.target);
82
+ return;
83
+ case require_key_codes.keyArrowRight:
84
+ case _microsoft_fast_web_utilities.keyArrowDown:
85
+ this.moveRight(e);
86
+ return;
87
+ case require_key_codes.keyArrowLeft:
88
+ case _microsoft_fast_web_utilities.keyArrowUp:
89
+ this.moveLeft(e);
90
+ return;
91
+ default: return true;
92
+ }
125
93
  };
126
94
  }
127
- #isInternalValueUpdate;
128
- /**
129
- * @internal
130
- */
131
- startChanged() {
132
- this.currentStart = this.start;
133
- if (!this.#isInternalValueUpdate) {
134
- this.dirtyValue = true;
135
- this.#updateFormValue();
136
- }
137
- if (this.$fastController.isConnected) this.#updateThumbPositions();
138
- }
139
- /**
140
- * @internal
141
- */
142
- initialStartChanged(_, newValue) {
143
- if (newValue && !this.dirtyValue) {
144
- this.start = newValue;
145
- this.dirtyValue = false;
146
- }
147
- }
148
- /**
149
- * @internal
150
- */
151
- currentStartChanged() {
152
- this.start = this.currentStart;
153
- }
154
- /**
155
- * The start property, typed as a number.
156
- *
157
- * @public
158
- */
159
- get startAsNumber() {
160
- return parseFloat(this.start);
161
- }
162
- set startAsNumber(next) {
163
- this.start = next.toString();
164
- }
165
- /**
166
- * @internal
167
- */
168
- endChanged() {
169
- this.currentEnd = this.end;
170
- if (!this.#isInternalValueUpdate) {
171
- this.dirtyValue = true;
172
- this.#updateFormValue();
173
- }
174
- if (this.$fastController.isConnected) this.#updateThumbPositions();
175
- }
176
- /**
177
- * @internal
178
- */
179
- initialEndChanged(_, newValue) {
180
- if (newValue && !this.dirtyValue) {
181
- this.end = newValue;
182
- this.dirtyValue = false;
183
- }
184
- }
185
- /**
186
- * @internal
187
- */
188
- currentEndChanged() {
189
- this.end = this.currentEnd;
190
- }
191
- /**
192
- * The end property, typed as a number.
193
- *
194
- * @public
195
- */
196
- get endAsNumber() {
197
- return parseFloat(this.end);
198
- }
199
- set endAsNumber(next) {
200
- this.end = next.toString();
201
- }
202
- #updateValues({ start, end }, emitEvents = true) {
203
- if (start === this.start) start = void 0;
204
- if (end === this.end) end = void 0;
205
- if (start === void 0 && end === void 0) return;
206
- this.#isInternalValueUpdate = true;
207
- if (start !== void 0) this.start = start;
208
- if (end !== void 0) this.end = end;
209
- this.#isInternalValueUpdate = false;
210
- if (emitEvents) {
211
- if (start !== void 0) this.$emit("input:start");
212
- if (end !== void 0) this.$emit("input:end");
213
- this.$emit("input");
214
- this.$emit("change");
215
- this.dirtyValue = true;
216
- }
217
- this.#updateFormValue();
218
- }
219
- #applyStep(thumb, direction) {
220
- this.#updateValues({ [thumb]: this.#roundToNearestStep(thumb, Number(this[thumb]) + direction * this.step).toString() });
221
- }
222
- /**
223
- * @internal
224
- */
225
- orientationChanged() {
226
- if (this.$fastController.isConnected) this.#updateThumbPositions();
227
- }
228
- /**
229
- * @internal
230
- */
231
- nameChanged(previous, next) {
232
- super.nameChanged(previous, next);
233
- this.#updateFormValue();
234
- }
235
- #updateFormValue() {
236
- if (!this.name) this.setFormValue(null);
237
- else {
238
- const formData = new FormData();
239
- formData.append(this.name, this.start);
240
- formData.append(this.name, this.end);
241
- this.setFormValue(formData);
242
- }
243
- }
244
- formResetCallback() {
245
- this.#updateValues({
246
- start: this.initialStart ?? this.min.toString(),
247
- end: this.initialEnd ?? this.max.toString()
95
+ /** @internal */
96
+ requiredChanged() {
97
+ this.slottedRadioButtons.forEach((radio) => {
98
+ if (this.required) radio.required = true;
99
+ else radio.required = false;
248
100
  });
249
- super.formResetCallback();
250
101
  }
251
- get #thumbs() {
252
- return {
253
- start: this._startThumbEl,
254
- end: this._endThumbEl
255
- };
256
- }
257
- get #thumbConstraints() {
258
- return {
259
- start: {
260
- min: this.min,
261
- max: this.endAsNumber
262
- },
263
- end: {
264
- min: this.startAsNumber,
265
- max: this.max
266
- }
267
- };
102
+ /** @internal */
103
+ readOnlyChanged() {
104
+ this.slottedRadioButtons.forEach((radio) => {
105
+ if (this.readOnly) radio.readOnly = true;
106
+ else radio.readOnly = false;
107
+ });
268
108
  }
269
- #getThumbId(thumb) {
270
- return thumb === this._startThumbEl ? "start" : "end";
109
+ /** @internal */
110
+ disabledChanged() {
111
+ this.slottedRadioButtons.forEach((radio) => {
112
+ if (this.disabled) radio.disabled = true;
113
+ else radio.disabled = false;
114
+ });
271
115
  }
272
- #getThumbIdFromEvent(e) {
273
- return this.#getThumbId(e.target);
116
+ nameChanged() {
117
+ this.slottedRadioButtons.forEach((radio) => {
118
+ radio.setAttribute("name", this.name);
119
+ });
274
120
  }
275
- #updateThumbPositions() {
276
- const startOffsetPct = this.#thumbTrackEndOffset(this.startAsNumber);
277
- const endOffsetPct = this.#thumbTrackEndOffset(this.endAsNumber);
278
- const [dirProp, dimProp] = this.orientation === _microsoft_fast_web_utilities.Orientation.horizontal ? ["right", "width"] : ["bottom", "height"];
279
- const transition = `transition: ${this._draggingThumb ? "none" : "all 0.2s ease"};`;
280
- this._startThumbCss = `${dirProp}: ${startOffsetPct}%; ${transition}`;
281
- this._endThumbCss = `${dirProp}: ${endOffsetPct}%; ${transition}`;
282
- this._selectedRangeCss = `${dirProp}: ${endOffsetPct}%; ${dimProp}: ${startOffsetPct - endOffsetPct}%; ${transition}`;
121
+ /** @internal */
122
+ valueChanged() {
123
+ this.slottedRadioButtons.forEach((radio) => {
124
+ if (radio.value === this.value) radio.checked = true;
125
+ });
126
+ this.$emit("change");
283
127
  }
284
- #thumbTrackEndOffset(value) {
285
- return (1 - require_slider_template.inverseLerp(this.min, this.max, value)) * 100;
128
+ /** @internal */
129
+ handleSlotChange() {
130
+ if (this.errorText) this.slottedRadioButtons.forEach((radio) => {
131
+ radio.errorText = this.errorText;
132
+ });
286
133
  }
287
- #calculateValueFromMouseEvent(e) {
288
- const trackClientRect = this._trackEl.getBoundingClientRect();
289
- const [minPos, maxPos, valuePos] = this.orientation === _microsoft_fast_web_utilities.Orientation.horizontal ? [
290
- this._trackEl.clientLeft,
291
- this._trackEl.clientWidth,
292
- e.pageX - document.documentElement.scrollLeft - this.getBoundingClientRect().left
293
- ] : [
294
- trackClientRect.top,
295
- trackClientRect.bottom,
296
- e.pageY - document.documentElement.scrollTop
297
- ];
298
- return require_slider_template.lerp(this.min, this.max, require_slider_template.inverseLerp(minPos, maxPos, valuePos));
134
+ /** @internal */
135
+ errorTextChanged(_, newErrorText) {
136
+ if (newErrorText) this.errorValidationMessage = newErrorText;
137
+ else this.errorValidationMessage = "";
299
138
  }
300
- #roundToNearestStep(thumb, value) {
301
- return (0, _microsoft_fast_web_utilities.limit)(this.#thumbConstraints[thumb].min, this.#thumbConstraints[thumb].max, require_slider_template.roundToStepValue(value - this.min, this.step) + this.min);
139
+ get #focusableRadioButtons() {
140
+ return this.slottedRadioButtons.filter((radio) => !radio.disabled);
302
141
  }
303
- #isNonVisibleFocus;
304
- #focusThumbNonVisibly(thumb) {
305
- this.#isNonVisibleFocus = true;
306
- thumb.focus();
307
- this.#isNonVisibleFocus = false;
142
+ /** @internal */
143
+ slottedRadioButtonsChanged() {
144
+ if (this.slottedRadioButtons.length > 0) this.setupRadioButtons();
308
145
  }
309
- /**
310
- * @internal
311
- */
312
- _isThumbPopupOpen(thumb) {
313
- return this._visiblyFocusedThumb === thumb || this._hoveredThumb === thumb || this._draggingThumb === thumb;
146
+ get isInsideToolbar() {
147
+ return !!this.closest("[role=\"toolbar\"]");
314
148
  }
149
+ /** @internal */
315
150
  connectedCallback() {
316
151
  super.connectedCallback();
317
- this.#updateValues({
318
- start: this.start || this.initialStart || this.min.toString(),
319
- end: this.end || this.initialEnd || this.max.toString()
320
- }, false);
321
- this.#registerThumbListeners();
322
- this.#updateThumbPositions();
323
- document.addEventListener("visibilitychange", this.#onVisibilityChange);
152
+ this.setupRadioButtons();
324
153
  }
325
154
  disconnectedCallback() {
326
- super.disconnectedCallback();
327
- this.#unregisterThumbListeners();
328
- this.#unregisterDragListeners();
329
- document.removeEventListener("visibilitychange", this.#onVisibilityChange);
155
+ this.slottedRadioButtons.forEach((radio) => {
156
+ radio.removeEventListener("change", this.radioChangeHandler);
157
+ radio.removeEventListener("invalid", this.radioErrorHandler);
158
+ });
330
159
  }
331
- #registerThumbListeners() {
332
- for (const thumb of ["start", "end"]) {
333
- this.#thumbs[thumb].addEventListener("keydown", this.#onThumbKeydown);
334
- this.#thumbs[thumb].addEventListener("mousedown", this.#onThumbMousedown, { passive: true });
335
- this.#thumbs[thumb].addEventListener("touchstart", this.#onThumbMousedown, { passive: true });
336
- this.#thumbs[thumb].addEventListener("mouseover", this.#onMouseOver, { passive: true });
337
- this.#thumbs[thumb].addEventListener("mouseout", this.#onMouseOut, { passive: true });
338
- this.#thumbs[thumb].addEventListener("focus", this.#onThumbFocus);
339
- this.#thumbs[thumb].addEventListener("blur", this.#onThumbBlur);
160
+ setupRadioButtons() {
161
+ let foundMatchingVal = false;
162
+ for (const radio of this.slottedRadioButtons) {
163
+ if (this.name !== void 0) radio.setAttribute("name", this.name);
164
+ if (this.disabled) radio.disabled = true;
165
+ if (this.readOnly) radio.readOnly = true;
166
+ if (this.required) radio.required = true;
167
+ if (this.value && this.value === radio.value) {
168
+ radio.checked = true;
169
+ this.#setTabRovingTarget(radio);
170
+ foundMatchingVal = true;
171
+ } else radio.checked = false;
172
+ radio.addEventListener("change", this.radioChangeHandler);
173
+ radio.addEventListener("invalid", this.radioErrorHandler);
340
174
  }
341
- }
342
- #unregisterThumbListeners() {
343
- for (const thumb of ["start", "end"]) {
344
- this.#thumbs[thumb].removeEventListener("keydown", this.#onThumbKeydown);
345
- this.#thumbs[thumb].removeEventListener("mousedown", this.#onThumbMousedown);
346
- this.#thumbs[thumb].removeEventListener("touchstart", this.#onThumbMousedown);
347
- this.#thumbs[thumb].removeEventListener("mouseover", this.#onMouseOver);
348
- this.#thumbs[thumb].removeEventListener("mouseout", this.#onMouseOut);
349
- this.#thumbs[thumb].removeEventListener("focus", this.#onThumbFocus);
350
- this.#thumbs[thumb].removeEventListener("blur", this.#onThumbBlur);
175
+ if (this.value === void 0 && this.slottedRadioButtons.length > 0) {
176
+ const checkedRadios = this.slottedRadioButtons.filter((radio) => radio.hasAttribute("checked"));
177
+ if (checkedRadios.length > 0 && !foundMatchingVal) {
178
+ const lastCheckedRadio = checkedRadios[checkedRadios.length - 1];
179
+ lastCheckedRadio.checked = true;
180
+ this.#setTabRovingTarget(lastCheckedRadio);
181
+ } else this.#setTabRovingTarget(this.slottedRadioButtons[0]);
351
182
  }
352
183
  }
353
- /**
354
- * @internal
355
- */
356
- _onMouseDown(e) {
357
- if (this.disabled || this._draggingThumb) return;
358
- const value = this.#calculateValueFromMouseEvent(e);
359
- const startDistance = Math.abs(value - Number(this.start));
360
- const endDistance = Math.abs(value - Number(this.end));
361
- const thumb = startDistance < endDistance || startDistance === endDistance && value < Number(this.start) ? "start" : "end";
362
- this.#updateValues({ [thumb]: `${this.#roundToNearestStep(thumb, value)}` });
363
- this._draggingThumb = thumb;
364
- this.#focusThumbNonVisibly(this.#thumbs[thumb]);
365
- this.#registerDragHandlers();
184
+ /** @internal */
185
+ focusInHandler(e) {
186
+ this.#setTabRovingTarget(e.target);
366
187
  }
367
- #onThumbFocus;
368
- #onThumbBlur;
369
- #onVisibilityChange;
370
- #onMouseOver;
371
- #onMouseOut;
372
- #onThumbMousedown;
373
- #onThumbKeydown;
374
- #registerDragHandlers() {
375
- window.addEventListener("mousemove", this.#onDragMove, { passive: true });
376
- window.addEventListener("touchmove", this.#onDragMove, { passive: true });
377
- window.addEventListener("mouseup", this.#onDragEnd);
378
- window.addEventListener("touchend", this.#onDragEnd);
379
- window.document.addEventListener("mouseleave", this.#onDragEnd);
188
+ #setTabRovingTarget(radio) {
189
+ radio.setAttribute("tabindex", "0");
190
+ for (const slottedRadio of this.slottedRadioButtons) if (slottedRadio !== radio) slottedRadio.setAttribute("tabindex", "-1");
380
191
  }
381
- #unregisterDragListeners() {
382
- window.removeEventListener("mouseup", this.#onDragEnd);
383
- window.document.removeEventListener("mouseleave", this.#onDragEnd);
384
- window.removeEventListener("mousemove", this.#onDragMove);
385
- window.removeEventListener("touchmove", this.#onDragMove);
386
- window.removeEventListener("touchend", this.#onDragEnd);
192
+ checkFocusedRadio(target) {
193
+ if (!target.readOnly) target.checked = true;
387
194
  }
388
- #onDragMove;
389
- #onDragEnd;
390
195
  };
391
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "start", void 0);
196
+ require_decorate.__decorate([_microsoft_fast_element.attr], RadioGroup.prototype, "label", void 0);
392
197
  require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
393
- mode: "fromView",
394
- attribute: "start"
395
- })], RangeSlider.prototype, "initialStart", void 0);
396
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "current-start" })], RangeSlider.prototype, "currentStart", void 0);
397
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "end", void 0);
198
+ attribute: "required",
199
+ mode: "boolean"
200
+ })], RadioGroup.prototype, "required", void 0);
398
201
  require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
399
- mode: "fromView",
400
- attribute: "end"
401
- })], RangeSlider.prototype, "initialEnd", void 0);
402
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "current-end" })], RangeSlider.prototype, "currentEnd", void 0);
403
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: _microsoft_fast_element.nullableNumberConverter })], RangeSlider.prototype, "min", void 0);
404
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: _microsoft_fast_element.nullableNumberConverter })], RangeSlider.prototype, "max", void 0);
405
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: require_slider_template.defaultToOneConverter })], RangeSlider.prototype, "step", void 0);
406
- require_decorate.__decorate([_microsoft_fast_element.attr], RangeSlider.prototype, "orientation", void 0);
407
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "aria-start-label" })], RangeSlider.prototype, "ariaStartLabel", void 0);
408
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "aria-end-label" })], RangeSlider.prototype, "ariaEndLabel", void 0);
409
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], RangeSlider.prototype, "markers", void 0);
410
- require_decorate.__decorate([_microsoft_fast_element.attr], RangeSlider.prototype, "connotation", void 0);
411
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], RangeSlider.prototype, "pin", void 0);
412
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "valueTextFormatter", void 0);
413
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "_draggingThumb", void 0);
414
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "_visiblyFocusedThumb", void 0);
415
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "_hoveredThumb", void 0);
416
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "_startThumbCss", void 0);
417
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "_endThumbCss", void 0);
418
- require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "_selectedRangeCss", void 0);
202
+ attribute: "readonly",
203
+ mode: "boolean"
204
+ })], RadioGroup.prototype, "readOnly", void 0);
205
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
206
+ attribute: "disabled",
207
+ mode: "boolean"
208
+ })], RadioGroup.prototype, "disabled", void 0);
209
+ require_decorate.__decorate([_microsoft_fast_element.attr], RadioGroup.prototype, "name", void 0);
210
+ require_decorate.__decorate([_microsoft_fast_element.attr], RadioGroup.prototype, "value", void 0);
211
+ require_decorate.__decorate([_microsoft_fast_element.observable], RadioGroup.prototype, "errorValidationMessage", void 0);
212
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "error-text" })], RadioGroup.prototype, "errorText", void 0);
213
+ require_decorate.__decorate([_microsoft_fast_element.attr], RadioGroup.prototype, "orientation", void 0);
214
+ require_decorate.__decorate([_microsoft_fast_element.observable], RadioGroup.prototype, "slottedRadioButtons", void 0);
419
215
  //#endregion
420
- //#region src/lib/range-slider/range-slider.template.ts
421
- var getClasses = ({ disabled, connotation }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["disabled", disabled], [`connotation-${connotation}`, Boolean(connotation)]);
422
- var getThumbClassesFor = (thumb) => ({ _visiblyFocusedThumb }) => (0, _microsoft_fast_web_utilities.classNames)("thumb-container", ["focus-visible", _visiblyFocusedThumb === thumb]);
423
- var RangeSliderTemplate = (context) => {
424
- const popupTag = context.tagFor(require_definition.Popup);
425
- return _microsoft_fast_element.html` <template
426
- @mousedown="${(x, c) => x._onMouseDown(c.event)}"
427
- >
428
- <div class="${getClasses} ${(x) => x.orientation}">
429
- <div class="positioning-region">
430
- <div ${(0, _microsoft_fast_element.ref)("_trackEl")} class="track">
431
- <div class="track-start" style="${(x) => x._selectedRangeCss}"></div>
432
- ${(0, _microsoft_fast_element.when)((x) => x.markers, _microsoft_fast_element.html`${(x) => require_slider_template.getMarkersTemplate(x.orientation === _microsoft_fast_web_utilities.Orientation.horizontal, Math.floor((x.max - x.min) / x.step))}`)}
433
- </div>
434
- <div
435
- id="start-thumb"
436
- ${(0, _microsoft_fast_element.ref)("_startThumbEl")}
437
- class="${getThumbClassesFor("start")}"
438
- style="${(x) => x._startThumbCss}"
439
- role="slider"
440
- tabindex="${(x) => x.disabled ? null : 0}"
441
- aria-label="${(x) => x.ariaStartLabel || x.locale.rangeSlider.startThumbLabel}"
442
- aria-valuetext="${(x) => x.valueTextFormatter(x.start)}"
443
- aria-valuenow="${(x) => x.start}"
444
- aria-valuemin="${(x) => x.min}"
445
- aria-valuemax="${(x) => x.end}"
446
- aria-disabled="${(x) => x.disabled}"
447
- aria-orientation="${(x) => x.orientation}"
448
- ></div>
449
- ${(0, _microsoft_fast_element.when)((x) => x.pin, _microsoft_fast_element.html`<${popupTag}
450
- class="popup"
451
- arrow
452
- alternate
453
- :anchor="${(x) => x._startThumbEl}"
454
- :open=${(x) => x._isThumbPopupOpen("start")}
455
- :placementStrategy=${(x) => x.orientation === _microsoft_fast_web_utilities.Orientation.horizontal ? require_definition.PlacementStrategy.AutoPlacementHorizontal : require_definition.PlacementStrategy.AutoPlacementVertical}
456
- animation-frame
457
- exportparts="vvd-theme-alternate"
458
- aria-hidden="true"
459
- >
460
- <div class="tooltip">${(x) => x.valueTextFormatter(x.start)}</div>
461
- </${popupTag}>`)}
462
- <div
463
- id="end-thumb"
464
- ${(0, _microsoft_fast_element.ref)("_endThumbEl")}
465
- class="${getThumbClassesFor("end")}"
466
- style="${(x) => x._endThumbCss}"
467
- role="slider"
468
- tabindex="${(x) => x.disabled ? null : 0}"
469
- aria-label="${(x) => x.ariaEndLabel || x.locale.rangeSlider.endThumbLabel}"
470
- aria-valuetext="${(x) => x.valueTextFormatter(x.end)}"
471
- aria-valuenow="${(x) => x.end}"
472
- aria-valuemin="${(x) => x.start}"
473
- aria-valuemax="${(x) => x.max}"
474
- aria-disabled="${(x) => x.disabled}"
475
- aria-orientation="${(x) => x.orientation}"
476
- ></div>
477
- ${(0, _microsoft_fast_element.when)((x) => x.pin, _microsoft_fast_element.html`<${popupTag}
478
- class="popup"
479
- arrow
480
- alternate
481
- :anchor="${(x) => x._endThumbEl}"
482
- :open=${(x) => x._isThumbPopupOpen("end")}
483
- :placementStrategy=${(x) => x.orientation === _microsoft_fast_web_utilities.Orientation.horizontal ? require_definition.PlacementStrategy.AutoPlacementHorizontal : require_definition.PlacementStrategy.AutoPlacementVertical}
484
- animation-frame
485
- exportparts="vvd-theme-alternate"
486
- aria-hidden="true"
216
+ //#region src/lib/radio-group/radio-group.template.ts
217
+ var RadioGroupTemplate = (context) => {
218
+ const radioTagName = context.tagFor(require_definition.Radio, true);
219
+ return _microsoft_fast_element.html`
220
+ <template
221
+ @keydown="${(x, c) => x.keydownHandler(c.event)}"
222
+ @focusin="${(x, c) => x.focusInHandler(c.event)}"
223
+ >
224
+ <div class="base">
225
+ <fieldset
226
+ ${require_delegates_aria.delegateAria({
227
+ role: "radiogroup",
228
+ ariaDisabled: (x) => x.disabled,
229
+ ariaReadOnly: (x) => x.readOnly,
230
+ ariaOrientation: (x) => x.orientation,
231
+ ariaInvalid: (x) => x.errorText ? "true" : "false",
232
+ ariaLabelledBy: "label",
233
+ ariaDescribedBy: (x) => x._feedbackDescribedBy
234
+ })}
235
+ class="control positioning-region ${(x) => x.orientation === _microsoft_fast_web_utilities.Orientation.horizontal ? "horizontal" : "vertical"}"
487
236
  >
488
- <div class="tooltip">${(x) => x.valueTextFormatter(x.end)}</div>
489
- </${popupTag}>`)}
237
+ ${(0, _microsoft_fast_element.when)((x) => x.label, _microsoft_fast_element.html`<legend id="label">${(x) => x.label}</legend>`)}
238
+ <slot
239
+ ${(0, _microsoft_fast_element.slotted)({
240
+ property: "slottedRadioButtons",
241
+ filter: (0, _microsoft_fast_element.elements)(radioTagName)
242
+ })}
243
+ @slotchange="${(x) => x.handleSlotChange()}"
244
+ ></slot>
245
+ </fieldset>
246
+ ${(x) => x._getFeedbackTemplate(context)}
490
247
  </div>
491
- </div>
492
- </template>`;
248
+ </template>
249
+ `;
493
250
  };
494
251
  //#endregion
495
- //#region src/lib/range-slider/definition.ts
496
- /**
497
- * @internal
498
- */
499
- var rangeSliderDefinition = require_vivid_element.defineVividComponent("range-slider", RangeSlider, RangeSliderTemplate, [require_definition.popupDefinition], {
500
- styles: range_slider_default,
501
- shadowOptions: { delegatesFocus: true }
502
- });
252
+ //#region src/lib/radio-group/definition.ts
253
+ /** @internal */
254
+ var radioGroupDefinition = require_vivid_element.defineVividComponent("radio-group", RadioGroup, RadioGroupTemplate, [require_definition.radioDefinition, require_mixins.feedbackMessageDefinition], { styles: radio_group_default });
503
255
  /**
504
- * Registers the range-slider element with the design system.
256
+ * Registers the radio-group elements with the design system.
505
257
  *
506
258
  * @param prefix - the prefix to use for the component name
507
259
  */
508
- var registerRangeSlider = require_vivid_element.createRegisterFunction(rangeSliderDefinition);
260
+ var registerRadioGroup = require_vivid_element.createRegisterFunction(radioGroupDefinition);
509
261
  //#endregion
510
- Object.defineProperty(exports, "RangeSlider", {
262
+ Object.defineProperty(exports, "RadioGroup", {
511
263
  enumerable: true,
512
264
  get: function() {
513
- return RangeSlider;
265
+ return RadioGroup;
514
266
  }
515
267
  });
516
- Object.defineProperty(exports, "rangeSliderDefinition", {
268
+ Object.defineProperty(exports, "radioGroupDefinition", {
517
269
  enumerable: true,
518
270
  get: function() {
519
- return rangeSliderDefinition;
271
+ return radioGroupDefinition;
520
272
  }
521
273
  });
522
- Object.defineProperty(exports, "registerRangeSlider", {
274
+ Object.defineProperty(exports, "registerRadioGroup", {
523
275
  enumerable: true,
524
276
  get: function() {
525
- return registerRangeSlider;
277
+ return registerRadioGroup;
526
278
  }
527
279
  });