@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,265 +1,370 @@
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_definition = require("./definition7.cjs");
5
- const require_definition$1 = require("./definition8.cjs");
4
+ const require_delegates_aria = require("./delegates-aria.cjs");
5
+ const require_form_associated = require("./form-associated.cjs");
6
+ const require_localized = require("./localized.cjs");
7
+ const require_definition = require("./definition9.cjs");
8
+ const require_key_codes = require("./key-codes.cjs");
9
+ const require_slider_template = require("./slider.template.cjs");
6
10
  let _microsoft_fast_element = require("@microsoft/fast-element");
7
11
  let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
8
- let _floating_ui_dom = require("@floating-ui/dom");
9
- //#region src/lib/popup/popup.ts
10
- var PlacementStrategy = {
11
- Flip: "flip",
12
- AutoPlacementHorizontal: "auto-placement-horizontal",
13
- AutoPlacementVertical: "auto-placement-vertical"
14
- };
15
- var placementStrategyMiddlewares = {
16
- [PlacementStrategy.Flip]: (0, _floating_ui_dom.flip)(),
17
- [PlacementStrategy.AutoPlacementHorizontal]: (0, _floating_ui_dom.autoPlacement)({ allowedPlacements: [
18
- "bottom",
19
- "top",
20
- "bottom-start",
21
- "bottom-end",
22
- "top-start",
23
- "top-end"
24
- ] }),
25
- [PlacementStrategy.AutoPlacementVertical]: (0, _floating_ui_dom.autoPlacement)({ allowedPlacements: [
26
- "left",
27
- "right",
28
- "left-start",
29
- "left-end",
30
- "right-start",
31
- "right-end"
32
- ] })
12
+ //#region src/lib/slider/slider.scss?inline
13
+ var 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);display:block;position:absolute}@media (prefers-reduced-motion:no-preference){.thumb-container:before{transition:opacity .2s ease-out}}.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}@media (prefers-reduced-motion:no-preference){:host([internal-part]) .thumb-container{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}}";
14
+ //#endregion
15
+ //#region src/shared/foundation/utilities/direction.ts
16
+ /**
17
+ * a method to determine the current localization direction of the view
18
+ * @param rootNode - the HTMLElement to begin the query from, usually "this" when used in a component controller
19
+ */
20
+ var getDirection = (rootNode) => {
21
+ const dirNode = rootNode.closest("[dir]");
22
+ return dirNode !== null && dirNode.dir === "rtl" ? _microsoft_fast_web_utilities.Direction.rtl : _microsoft_fast_web_utilities.Direction.ltr;
33
23
  };
24
+ //#endregion
25
+ //#region src/lib/slider/slider.ts
26
+ /** The selection modes of a Slider. */
27
+ var SliderMode = { singleValue: "single-value" };
34
28
  /**
35
- * @component popup
36
- * @slot - Default slot.
29
+ * @public
30
+ * @component slider
31
+ * @event {CustomEvent<undefined>} change - Fires a custom 'change' event when the slider value changes
32
+ * @vueModel modelValue value change `event.currentTarget.value`
33
+ * @vueModel valueAsNumber valueAsNumber change `event.currentTarget.valueAsNumber`
34
+ * @testSelector byLabel byLabel
35
+ * @testAction slideTo slideTo #track #thumb
36
+ * @testQuery valueAsNumber valueAsNumber
37
+ * @testRef track shadow .control
38
+ * @testRef thumb shadow .thumb-container
37
39
  */
38
- var Popup = class extends require_vivid_element.VividElement {
40
+ var Slider = class extends require_localized.Localized(require_delegates_aria.DelegatesAria(require_form_associated.FormAssociated(require_vivid_element.VividElement))) {
39
41
  constructor(..._args) {
40
42
  super(..._args);
41
- this.open = false;
42
- this.dismissible = false;
43
- this.arrow = false;
44
- this.alternate = false;
45
- this.placementStrategy = PlacementStrategy.Flip;
46
- this.animationFrame = false;
47
- this.shiftCrossAxis = false;
48
- this.strategy = "fixed";
49
- this.offset = null;
50
- this.#autoUpdateCallback = () => {
51
- this.#lastPositionUpdate = this.updatePosition();
52
- return this.#lastPositionUpdate;
43
+ this.proxy = document.createElement("input");
44
+ this.direction = _microsoft_fast_web_utilities.Direction.ltr;
45
+ this.isDragging = false;
46
+ this.trackWidth = 0;
47
+ this.trackMinWidth = 0;
48
+ this.trackHeight = 0;
49
+ this.trackLeft = 0;
50
+ this.trackMinHeight = 0;
51
+ this.valueTextFormatter = (value) => parseFloat(value).toLocaleString(this.locale.lang);
52
+ this.min = 0;
53
+ this.max = 10;
54
+ this.step = 1;
55
+ this.orientation = _microsoft_fast_web_utilities.Orientation.horizontal;
56
+ this.mode = SliderMode.singleValue;
57
+ this.keypressHandler = (e) => {
58
+ this._focusVisible = true;
59
+ if (this.readOnly) return;
60
+ if (e.key === _microsoft_fast_web_utilities.keyHome) {
61
+ e.preventDefault();
62
+ this.value = `${this.min}`;
63
+ } else if (e.key === _microsoft_fast_web_utilities.keyEnd) {
64
+ e.preventDefault();
65
+ this.value = `${this.max}`;
66
+ } else {
67
+ if (e.shiftKey) return;
68
+ switch (e.key) {
69
+ case require_key_codes.keyArrowRight:
70
+ case _microsoft_fast_web_utilities.keyArrowUp:
71
+ e.preventDefault();
72
+ this.increment();
73
+ break;
74
+ case require_key_codes.keyArrowLeft:
75
+ case _microsoft_fast_web_utilities.keyArrowDown:
76
+ e.preventDefault();
77
+ this.decrement();
78
+ break;
79
+ }
80
+ }
81
+ };
82
+ this.setupTrackConstraints = () => {
83
+ const clientRect = this.track.getBoundingClientRect();
84
+ this.trackWidth = this.track.clientWidth;
85
+ this.trackMinWidth = this.track.clientLeft;
86
+ this.trackHeight = clientRect.bottom;
87
+ this.trackMinHeight = clientRect.top;
88
+ this.trackLeft = this.getBoundingClientRect().left;
89
+ if (this.trackWidth === 0) this.trackWidth = 1;
90
+ };
91
+ this.setupListeners = (remove = false) => {
92
+ const eventAction = remove ? "removeEventListener" : "addEventListener";
93
+ this[eventAction]("keydown", this.keypressHandler);
94
+ this[eventAction]("mousedown", this.handleMouseDown);
95
+ this.thumb[eventAction]("mousedown", this.handleThumbMouseDown, { passive: true });
96
+ this.thumb[eventAction]("touchstart", this.handleThumbMouseDown, { passive: true });
97
+ if (remove) {
98
+ this.handleMouseDown(null);
99
+ this.handleThumbMouseDown(null);
100
+ }
101
+ };
102
+ this.initialValue = "";
103
+ this.handleThumbMouseDown = (event) => {
104
+ if (event) {
105
+ if (this.readOnly || this.disabled || event.defaultPrevented) return;
106
+ this.#isNonVisibleFocus = true;
107
+ event.target.focus();
108
+ this.#isNonVisibleFocus = false;
109
+ }
110
+ const eventAction = event !== null ? "addEventListener" : "removeEventListener";
111
+ window[eventAction]("mouseup", this.handleWindowMouseUp);
112
+ window[eventAction]("mousemove", this.handleMouseMove, { passive: true });
113
+ window[eventAction]("touchmove", this.handleMouseMove, { passive: true });
114
+ window[eventAction]("touchend", this.handleWindowMouseUp);
115
+ this.isDragging = event !== null;
116
+ };
117
+ this.handleMouseMove = (e) => {
118
+ if (this.readOnly || this.disabled || e.defaultPrevented) return;
119
+ const sourceEvent = "TouchEvent" in window && e instanceof TouchEvent ? e.touches[0] : e;
120
+ const value = this.#calculateValueFromMouseEvent(sourceEvent);
121
+ this.value = `${this.#roundToNearestStep(value)}`;
122
+ };
123
+ this.handleWindowMouseUp = (_) => {
124
+ this.stopDragging();
125
+ };
126
+ this.stopDragging = () => {
127
+ this.isDragging = false;
128
+ this.handleMouseDown(null);
129
+ this.handleThumbMouseDown(null);
130
+ };
131
+ this.handleMouseDown = (e) => {
132
+ const eventAction = e !== null ? "addEventListener" : "removeEventListener";
133
+ if (e === null || !this.disabled && !this.readOnly) {
134
+ window[eventAction]("mouseup", this.handleWindowMouseUp);
135
+ window.document[eventAction]("mouseleave", this.handleWindowMouseUp);
136
+ window[eventAction]("mousemove", this.handleMouseMove);
137
+ if (e) {
138
+ e.preventDefault();
139
+ this.setupTrackConstraints();
140
+ this.#isNonVisibleFocus = true;
141
+ e.target.focus();
142
+ this.#isNonVisibleFocus = false;
143
+ const value = this.#calculateValueFromMouseEvent(e);
144
+ this.value = `${this.#roundToNearestStep(value)}`;
145
+ this.isDragging = true;
146
+ }
147
+ }
148
+ };
149
+ this.markers = false;
150
+ this.pin = false;
151
+ this._focusVisible = false;
152
+ this._hoveringOnThumb = false;
153
+ this.#isNonVisibleFocus = false;
154
+ this._onFocusIn = () => {
155
+ if (!this.#isNonVisibleFocus) this._focusVisible = true;
156
+ this.#isNonVisibleFocus = false;
157
+ };
158
+ this._onFocusOut = () => {
159
+ this._focusVisible = false;
160
+ };
161
+ this.#onVisibilityChange = () => {
162
+ if (document.hidden && this.shadowRoot.activeElement !== null) this.#isNonVisibleFocus = true;
163
+ };
164
+ this.#onMouseOver = () => {
165
+ this._hoveringOnThumb = true;
166
+ };
167
+ this.#onMouseOut = () => {
168
+ this._hoveringOnThumb = false;
53
169
  };
54
170
  }
55
- get #middleware() {
56
- let middleware = [
57
- (0, _floating_ui_dom.inline)(),
58
- placementStrategyMiddlewares[this.placementStrategy],
59
- (0, _floating_ui_dom.shift)({ crossAxis: this.shiftCrossAxis }),
60
- (0, _floating_ui_dom.hide)(),
61
- (0, _floating_ui_dom.size)({ apply({ availableWidth, availableHeight, elements }) {
62
- Object.assign(elements.floating.style, {
63
- maxWidth: `${availableWidth}px`,
64
- maxHeight: `${availableHeight}px`
65
- });
66
- } })
67
- ];
68
- let offsetValue = this.offset ?? 0;
69
- if (this.arrow) {
70
- offsetValue += 12;
71
- middleware = [...middleware, (0, _floating_ui_dom.arrow)({
72
- element: this.arrowEl,
73
- padding: 10
74
- })];
75
- }
76
- if (offsetValue > 0) middleware.unshift((0, _floating_ui_dom.offset)(offsetValue));
77
- return middleware;
171
+ /** @internal */
172
+ readOnlyChanged() {
173
+ /* v8 ignore if -- @preserve */
174
+ if (this.proxy instanceof HTMLInputElement) this.proxy.readOnly = this.readOnly;
78
175
  }
79
- #cleanup;
80
- openChanged(_, newValue) {
81
- this.#togglePopover();
82
- this.#updateAutoUpdate();
83
- this.$emit(newValue ? "vwc-popup:open" : "vwc-popup:close");
176
+ /** The value property, typed as a number. */
177
+ get valueAsNumber() {
178
+ return parseFloat(this.value);
84
179
  }
85
- /**
86
- * @internal
87
- */
88
- animationFrameChanged() {
89
- this.#updateAutoUpdate();
180
+ set valueAsNumber(next) {
181
+ this.value = next.toString();
90
182
  }
91
- /**
92
- * @internal
93
- */
94
- shiftCrossAxisChanged() {
95
- this.#updateAutoUpdate();
183
+ /** @internal */
184
+ valueChanged(previous, next) {
185
+ super.valueChanged(previous, next);
186
+ if (this.$fastController.isConnected) {
187
+ const nextAsNumber = parseFloat(next);
188
+ const value = this.#roundToNearestStep(nextAsNumber).toString();
189
+ if (value !== next) {
190
+ this.value = value;
191
+ return;
192
+ }
193
+ this.setThumbPositionForOrientation(this.direction);
194
+ this.$emit("change");
195
+ }
96
196
  }
97
- /**
98
- * @internal
99
- */
100
- anchorChanged() {
101
- this.#updateAutoUpdate();
197
+ /** @internal */
198
+ minChanged() {
199
+ /* v8 ignore if -- @preserve */
200
+ if (this.proxy instanceof HTMLInputElement) this.proxy.min = `${this.min}`;
201
+ this.validate();
102
202
  }
103
- /**
104
- * @internal
105
- */
106
- strategyChanged() {
107
- this.#togglePopover();
203
+ /** @internal */
204
+ maxChanged() {
205
+ /* v8 ignore if -- @preserve */
206
+ if (this.proxy instanceof HTMLInputElement) this.proxy.max = `${this.max}`;
207
+ this.validate();
208
+ }
209
+ /** @internal */
210
+ stepChanged() {
211
+ /* v8 ignore if -- @preserve */
212
+ if (this.proxy instanceof HTMLInputElement) this.proxy.step = `${this.step}`;
213
+ this.updateStepMultiplier();
214
+ this.validate();
108
215
  }
216
+ /** @internal */
217
+ orientationChanged() {
218
+ if (this.$fastController.isConnected) this.setThumbPositionForOrientation(this.direction);
219
+ }
220
+ /** @internal */
109
221
  connectedCallback() {
110
222
  super.connectedCallback();
111
- this.#togglePopover();
112
- this.#updateAutoUpdate();
223
+ this.proxy.setAttribute("type", "range");
224
+ this.direction = getDirection(this);
225
+ this.updateStepMultiplier();
226
+ this.setupTrackConstraints();
227
+ this.setupListeners();
228
+ this.setupDefaultValue();
229
+ this.setThumbPositionForOrientation(this.direction);
230
+ this.#registerThumbListeners();
231
+ document.addEventListener("visibilitychange", this.#onVisibilityChange);
113
232
  }
233
+ /** @internal */
114
234
  disconnectedCallback() {
115
- super.disconnectedCallback();
116
- this.#updateAutoUpdate();
235
+ this.setupListeners(true);
236
+ this.#unregisterThumbListeners();
237
+ document.removeEventListener("visibilitychange", this.#onVisibilityChange);
117
238
  }
118
- #updateAutoUpdate() {
119
- this.#cleanup?.();
120
- if (!this.isConnected) return;
121
- if (this.open && this.controlEl) this.controlEl.classList.add("open");
122
- if (this.anchorEl && this.open && this.popupEl) this.#cleanup = (0, _floating_ui_dom.autoUpdate)(this.anchorEl, this.popupEl, () => void this.#autoUpdateCallback(), { animationFrame: this.animationFrame });
239
+ /** Increment the value by the step */
240
+ increment() {
241
+ const newVal = this.direction !== _microsoft_fast_web_utilities.Direction.rtl && this.orientation !== _microsoft_fast_web_utilities.Orientation.vertical ? Number(this.value) + this.step : Number(this.value) - this.step;
242
+ this.value = this.#roundToNearestStep(newVal).toString();
123
243
  }
124
- #togglePopover() {
125
- if (this.popupEl && this.strategy === "fixed") if (this.open) this.popupEl.showPopover();
126
- else this.popupEl.hidePopover();
244
+ /** Decrement the value by the step */
245
+ decrement() {
246
+ const newVal = this.direction !== _microsoft_fast_web_utilities.Direction.rtl && this.orientation !== _microsoft_fast_web_utilities.Orientation.vertical ? Number(this.value) - this.step : Number(this.value) + this.step;
247
+ this.value = this.#roundToNearestStep(newVal).toString();
127
248
  }
128
- #lastPositionUpdate;
129
- #autoUpdateCallback;
130
249
  /**
131
- * Updates popup's position
250
+ * Places the thumb based on the current value
132
251
  *
133
- * @public
252
+ * @param direction - writing mode
134
253
  */
135
- async updatePosition() {
136
- if (!this.open || !this.anchorEl) return;
137
- const positionData = await (0, _floating_ui_dom.computePosition)(this.anchorEl, this.popupEl, {
138
- placement: this.placement,
139
- strategy: this.strategy,
140
- middleware: this.#middleware
141
- });
142
- this.#assignPopupPosition(positionData);
143
- if (this.arrow) this.#assignArrowPosition(positionData);
254
+ setThumbPositionForOrientation(_) {
255
+ const percentage = this.#thumbTrackEndOffset(this.valueAsNumber);
256
+ if (this.orientation === _microsoft_fast_web_utilities.Orientation.horizontal) this.position = this.isDragging ? `right: ${percentage}%; transition: none;` : `right: ${percentage}%; transition: right 0.2s ease;`;
257
+ else this.position = this.isDragging ? `bottom: ${percentage}%; transition: none;` : `bottom: ${percentage}%; transition: bottom 0.2s ease;`;
144
258
  }
145
- #assignPopupPosition(data) {
146
- const { x: popupX, y: popupY } = data;
147
- const { referenceHidden } = data.middlewareData.hide;
148
- Object.assign(this.popupEl.style, {
149
- left: `${popupX}px`,
150
- top: `${popupY}px`,
151
- visibility: referenceHidden ? "hidden" : "visible"
152
- });
153
- }
154
- #assignArrowPosition(data) {
155
- const { x: arrowX, y: arrowY } = data.middlewareData.arrow;
156
- const styles = {
157
- left: "calc(100% - 4px)",
158
- right: "-4px",
159
- top: "calc(100% - 4px)",
160
- bottom: "-4px"
161
- };
162
- const staticAxis = data.placement.split("-")[0];
163
- Object.assign(this.arrowEl.style, {
164
- left: arrowX ? `${arrowX}px` : styles[staticAxis],
165
- top: arrowY ? `${arrowY}px` : styles[staticAxis]
166
- });
167
- }
168
- get anchorEl() {
169
- return this.anchor ?? null;
259
+ #thumbTrackEndOffset(value) {
260
+ return (1 - require_slider_template.inverseLerp(this.min, this.max, value)) * 100;
170
261
  }
171
262
  /**
172
- * Shows the popup.
173
- * Unlike toggling the `open` attribute, show() will wait for the popup to become visible and positioned correctly.
263
+ * Update the step multiplier used to ensure rounding errors from steps that
264
+ * are not whole numbers
174
265
  */
175
- show() {
176
- this.open = true;
177
- return this.#lastPositionUpdate ?? Promise.resolve();
266
+ updateStepMultiplier() {
267
+ const stepString = String(this.step);
268
+ const decimalPlacesOfStep = this.step % 1 ? stepString.length - stepString.indexOf(".") - 1 : 0;
269
+ this.stepMultiplier = Math.pow(10, decimalPlacesOfStep);
270
+ }
271
+ get midpoint() {
272
+ return `${this.#roundToNearestStep((this.max + this.min) / 2)}`;
273
+ }
274
+ setupDefaultValue() {
275
+ /* v8 ignore else -- @preserve */
276
+ if (typeof this.value === "string") if (this.value.length === 0) this.initialValue = this.midpoint;
277
+ else {
278
+ const value = parseFloat(this.value);
279
+ if (!Number.isNaN(value) && (value < this.min || value > this.max)) this.value = this.midpoint;
280
+ }
281
+ }
282
+ #calculateValueFromMouseEvent(e) {
283
+ const trackClientRect = this.track.getBoundingClientRect();
284
+ const [minPos, maxPos, valuePos] = this.orientation === _microsoft_fast_web_utilities.Orientation.horizontal ? [
285
+ this.track.clientLeft,
286
+ this.track.clientWidth,
287
+ e.pageX - document.documentElement.scrollLeft - this.getBoundingClientRect().left
288
+ ] : [
289
+ trackClientRect.top,
290
+ trackClientRect.bottom,
291
+ e.pageY - document.documentElement.scrollTop
292
+ ];
293
+ return require_slider_template.lerp(this.min, this.max, require_slider_template.inverseLerp(minPos, maxPos, valuePos));
294
+ }
295
+ #roundToNearestStep(value) {
296
+ return (0, _microsoft_fast_web_utilities.limit)(this.min, this.max, require_slider_template.roundToStepValue(value - this.min, this.step) + this.min);
297
+ }
298
+ /** @internal */
299
+ get _isThumbPopupOpen() {
300
+ return this._focusVisible || this._hoveringOnThumb || this.isDragging;
178
301
  }
179
- hide() {
180
- this.open = false;
302
+ #isNonVisibleFocus;
303
+ #registerThumbListeners() {
304
+ this.thumb.addEventListener("mouseover", this.#onMouseOver, { passive: true });
305
+ this.thumb.addEventListener("mouseout", this.#onMouseOut, { passive: true });
181
306
  }
307
+ #unregisterThumbListeners() {
308
+ this.thumb.removeEventListener("mouseover", this.#onMouseOver);
309
+ this.thumb.removeEventListener("mouseout", this.#onMouseOut);
310
+ }
311
+ #onVisibilityChange;
312
+ #onMouseOver;
313
+ #onMouseOut;
182
314
  };
183
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Popup.prototype, "open", void 0);
184
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Popup.prototype, "dismissible", void 0);
185
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Popup.prototype, "arrow", void 0);
186
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Popup.prototype, "alternate", void 0);
187
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "fromView" })], Popup.prototype, "placement", void 0);
188
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
189
- mode: "boolean",
190
- attribute: "animation-frame"
191
- })], Popup.prototype, "animationFrame", void 0);
192
315
  require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
193
- mode: "boolean",
194
- attribute: "shift-cross-axis"
195
- })], Popup.prototype, "shiftCrossAxis", void 0);
196
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "fromView" })], Popup.prototype, "strategy", void 0);
197
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
198
- attribute: "offset",
199
- converter: _microsoft_fast_element.nullableNumberConverter
200
- })], Popup.prototype, "offset", void 0);
201
- require_decorate.__decorate([_microsoft_fast_element.observable], Popup.prototype, "anchor", void 0);
202
- //#endregion
203
- //#region src/lib/popup/popup.scss?inline
204
- var popup_default = ":host{display:var(--_popup-display,inline)}.control{border-radius:inherit;background:var(--vvd-color-surface-4dp);contain:layout}.control:not(.open){display:none}.popup-wrapper{white-space:initial;--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.popup-wrapper ::-webkit-scrollbar{width:4px}.popup-wrapper ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.popup-wrapper ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.popup-wrapper{z-index:var(--_popup-z-index,10);border:none;border-radius:8px;inline-size:max-content;min-inline-size:fit-content;margin:0;padding:0;overflow:visible}.popup-wrapper:not(.absolute){position:fixed}.popup-wrapper.absolute{position:absolute;top:0;left:0}.popup-content{color:var(--vvd-color-canvas-text);display:grid}.dismissible .popup-content{grid-template-columns:1fr auto;align-content:start}.arrow{z-index:-1;background:var(--vvd-color-surface-4dp);width:8px;height:8px;position:absolute;transform:rotate(45deg)}.dismissible-button{align-self:flex-start;margin-block-start:4px;margin-inline-end:4px}";
316
+ attribute: "readonly",
317
+ mode: "boolean"
318
+ })], Slider.prototype, "readOnly", void 0);
319
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "direction", void 0);
320
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "isDragging", void 0);
321
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "position", void 0);
322
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "trackWidth", void 0);
323
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "trackMinWidth", void 0);
324
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "trackHeight", void 0);
325
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "trackLeft", void 0);
326
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "trackMinHeight", void 0);
327
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "valueTextFormatter", void 0);
328
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: _microsoft_fast_element.nullableNumberConverter })], Slider.prototype, "min", void 0);
329
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: _microsoft_fast_element.nullableNumberConverter })], Slider.prototype, "max", void 0);
330
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: require_slider_template.defaultToOneConverter })], Slider.prototype, "step", void 0);
331
+ require_decorate.__decorate([_microsoft_fast_element.attr], Slider.prototype, "orientation", void 0);
332
+ require_decorate.__decorate([_microsoft_fast_element.attr], Slider.prototype, "mode", void 0);
333
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Slider.prototype, "markers", void 0);
334
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Slider.prototype, "pin", void 0);
335
+ require_decorate.__decorate([_microsoft_fast_element.attr], Slider.prototype, "connotation", void 0);
336
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "_focusVisible", void 0);
337
+ require_decorate.__decorate([_microsoft_fast_element.observable], Slider.prototype, "_hoveringOnThumb", void 0);
338
+ require_decorate.__decorate([_microsoft_fast_element.volatile], Slider.prototype, "_isThumbPopupOpen", null);
205
339
  //#endregion
206
- //#region src/lib/popup/popup.template.ts
207
- var getClasses = ({ open, dismissible, alternate }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["open", open], ["dismissible", dismissible], ["alternate", alternate]);
208
- function handlePopover(x) {
209
- return x.strategy && x.strategy === "fixed" ? "manual" : null;
210
- }
211
- var popupTemplate = (context) => {
212
- const elevationTag = context.tagFor(require_definition$1.Elevation);
213
- const buttonTag = context.tagFor(require_definition.Button);
214
- return _microsoft_fast_element.html`
215
- <${elevationTag}>
216
- <div popover="${handlePopover}" class="popup-wrapper ${(x) => x.strategy}" ${(0, _microsoft_fast_element.ref)("popupEl")} part="popup-base">
217
- <div ${(0, _microsoft_fast_element.ref)("controlEl")} class="${getClasses}" aria-hidden="${(x) => x.open ? "false" : "true"}"
218
- part="${(x) => x.alternate ? "vvd-theme-alternate" : ""}">
219
- <div class="popup-content">
220
- <slot></slot>
221
- ${(0, _microsoft_fast_element.when)((x) => x.dismissible, _microsoft_fast_element.html`<${buttonTag} size="condensed" @click="${(x) => x.open = false}"
222
- class="dismissible-button" icon="close-small-solid" shape="pill"></${buttonTag}>`)}
223
- </div>
224
- ${(0, _microsoft_fast_element.when)((x) => x.arrow, _microsoft_fast_element.html`<div class="arrow" ${(0, _microsoft_fast_element.ref)("arrowEl")}></div>`)}
225
- </div>
226
- </div>
227
- </${elevationTag}>`;
228
- };
229
- //#endregion
230
- //#region src/lib/popup/definition.ts
231
- /**
232
- * @internal
233
- */
234
- var popupDefinition = require_vivid_element.defineVividComponent("popup", Popup, popupTemplate, [require_definition$1.elevationDefinition, require_definition.buttonDefinition], { styles: popup_default });
340
+ //#region src/lib/slider/definition.ts
341
+ /** @internal */
342
+ var sliderDefinition = require_vivid_element.defineVividComponent("slider", Slider, require_slider_template.SliderTemplate, [require_definition.popupDefinition], {
343
+ styles: slider_default,
344
+ shadowOptions: { delegatesFocus: true }
345
+ });
235
346
  /**
236
- * Registers the popup elements with the design system.
347
+ * Registers the slider elements with the design system.
237
348
  *
238
349
  * @param prefix - the prefix to use for the component name
239
350
  */
240
- var registerPopup = require_vivid_element.createRegisterFunction(popupDefinition);
351
+ var registerSlider = require_vivid_element.createRegisterFunction(sliderDefinition);
241
352
  //#endregion
242
- Object.defineProperty(exports, "PlacementStrategy", {
243
- enumerable: true,
244
- get: function() {
245
- return PlacementStrategy;
246
- }
247
- });
248
- Object.defineProperty(exports, "Popup", {
353
+ Object.defineProperty(exports, "Slider", {
249
354
  enumerable: true,
250
355
  get: function() {
251
- return Popup;
356
+ return Slider;
252
357
  }
253
358
  });
254
- Object.defineProperty(exports, "popupDefinition", {
359
+ Object.defineProperty(exports, "registerSlider", {
255
360
  enumerable: true,
256
361
  get: function() {
257
- return popupDefinition;
362
+ return registerSlider;
258
363
  }
259
364
  });
260
- Object.defineProperty(exports, "registerPopup", {
365
+ Object.defineProperty(exports, "sliderDefinition", {
261
366
  enumerable: true,
262
367
  get: function() {
263
- return registerPopup;
368
+ return sliderDefinition;
264
369
  }
265
370
  });