@vonage/vivid 5.2.0 → 5.4.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 (433) hide show
  1. package/accordion-item/definition.cjs +2 -1
  2. package/accordion-item/definition.js +3 -2
  3. package/alert/definition.cjs +1 -1
  4. package/alert/definition.js +2 -2
  5. package/alert/index.cjs +1 -1
  6. package/alert/index.js +1 -1
  7. package/audio-player/definition.cjs +4 -2
  8. package/audio-player/definition.js +4 -2
  9. package/audio-player/index.cjs +5 -3
  10. package/audio-player/index.js +5 -3
  11. package/badge/definition.js +1 -1
  12. package/badge/index.cjs +2 -2
  13. package/badge/index.js +4 -4
  14. package/banner/definition.js +1 -1
  15. package/banner/index.cjs +3 -3
  16. package/banner/index.js +6 -6
  17. package/breadcrumb-item/index.cjs +1 -1
  18. package/breadcrumb-item/index.js +1 -1
  19. package/bundled/affix.cjs +7 -7
  20. package/bundled/affix.js +5 -5
  21. package/bundled/anchored.cjs +1 -1
  22. package/bundled/anchored.js +6 -6
  23. package/bundled/attribute-binding-behaviour.cjs +1 -1
  24. package/bundled/attribute-binding-behaviour.js +15 -13
  25. package/bundled/base-color-picker.cjs +13 -0
  26. package/bundled/base-color-picker.js +194 -0
  27. package/bundled/button.cjs +1 -1
  28. package/bundled/button.js +2 -2
  29. package/bundled/calendar-picker.template.cjs +7 -7
  30. package/bundled/calendar-picker.template.js +118 -118
  31. package/bundled/char-count.cjs +1 -1
  32. package/bundled/char-count.js +1 -1
  33. package/bundled/children.cjs +1 -1
  34. package/bundled/children.js +28 -20
  35. package/bundled/definition.cjs +3 -3
  36. package/bundled/definition.js +38 -38
  37. package/bundled/definition10.cjs +72 -18
  38. package/bundled/definition10.js +351 -65
  39. package/bundled/definition11.cjs +19 -10
  40. package/bundled/definition11.js +217 -36
  41. package/bundled/definition12.cjs +10 -1
  42. package/bundled/definition12.js +38 -14
  43. package/bundled/definition13.cjs +1 -73
  44. package/bundled/definition13.js +15 -354
  45. package/bundled/definition15.cjs +1 -1
  46. package/bundled/definition15.js +1 -1
  47. package/bundled/definition16.cjs +2 -2
  48. package/bundled/definition16.js +8 -8
  49. package/bundled/definition17.cjs +7 -7
  50. package/bundled/definition17.js +17 -17
  51. package/bundled/definition19.cjs +23 -24
  52. package/bundled/definition19.js +151 -163
  53. package/bundled/definition2.cjs +9 -5
  54. package/bundled/definition2.js +21 -17
  55. package/bundled/definition22.cjs +9 -9
  56. package/bundled/definition22.js +31 -31
  57. package/bundled/definition3.cjs +1 -1
  58. package/bundled/definition3.js +1 -1
  59. package/bundled/definition6.cjs +3 -3
  60. package/bundled/definition6.js +28 -28
  61. package/bundled/definition7.cjs +1 -1
  62. package/bundled/definition7.js +6 -6
  63. package/bundled/definition8.cjs +2 -2
  64. package/bundled/definition8.js +4 -4
  65. package/bundled/definition9.cjs +5 -5
  66. package/bundled/definition9.js +394 -392
  67. package/bundled/delegates-aria.cjs +1 -1
  68. package/bundled/delegates-aria.js +59 -46
  69. package/bundled/form-associated.cjs +1 -1
  70. package/bundled/form-associated.js +3 -3
  71. package/bundled/host-semantics.cjs +1 -1
  72. package/bundled/host-semantics.js +48 -34
  73. package/bundled/listbox.cjs +1 -1
  74. package/bundled/listbox.js +82 -102
  75. package/bundled/localized.cjs +1 -1
  76. package/bundled/localized.js +51 -36
  77. package/bundled/mixins.cjs +18 -18
  78. package/bundled/mixins.js +99 -93
  79. package/bundled/normalize.cjs +1 -0
  80. package/bundled/normalize.js +7 -0
  81. package/bundled/picker-field.template.cjs +1 -1
  82. package/bundled/picker-field.template.js +4 -4
  83. package/bundled/ref.cjs +1 -1
  84. package/bundled/ref.js +8 -25
  85. package/bundled/repeat.cjs +1 -1
  86. package/bundled/repeat.js +459 -233
  87. package/bundled/slider.template.cjs +1 -1
  88. package/bundled/slider.template.js +2 -2
  89. package/bundled/slotted.cjs +1 -1
  90. package/bundled/slotted.js +62 -45
  91. package/bundled/time-selection-picker.template.cjs +1 -1
  92. package/bundled/time-selection-picker.template.js +5 -5
  93. package/bundled/vivid-element.cjs +5 -1
  94. package/bundled/vivid-element.js +2159 -1162
  95. package/bundled/when.cjs +1 -1
  96. package/bundled/when.js +8 -7
  97. package/calendar/definition.cjs +1 -1
  98. package/calendar/definition.js +2 -2
  99. package/calendar/index.cjs +1 -1
  100. package/calendar/index.js +15 -15
  101. package/calendar-event/index.cjs +1 -1
  102. package/calendar-event/index.js +1 -1
  103. package/card/definition.cjs +11 -3
  104. package/card/definition.js +11 -3
  105. package/card/index.cjs +19 -11
  106. package/card/index.js +35 -27
  107. package/color-picker/definition.cjs +1079 -0
  108. package/color-picker/definition.js +1073 -0
  109. package/color-picker/index.cjs +127 -0
  110. package/color-picker/index.js +726 -0
  111. package/combobox/definition.cjs +8 -28
  112. package/combobox/definition.js +10 -30
  113. package/combobox/index.cjs +7 -7
  114. package/combobox/index.js +60 -74
  115. package/contextual-help/index.cjs +1 -1
  116. package/contextual-help/index.js +1 -1
  117. package/custom-elements.json +1670 -163
  118. package/data-grid/definition.cjs +862 -27
  119. package/data-grid/definition.js +863 -28
  120. package/data-grid/index.cjs +25 -25
  121. package/data-grid/index.js +175 -168
  122. package/date-picker/definition.cjs +1 -1
  123. package/date-picker/definition.js +1 -1
  124. package/date-picker/index.cjs +1 -1
  125. package/date-picker/index.js +2 -2
  126. package/date-range-picker/definition.cjs +1 -1
  127. package/date-range-picker/definition.js +1 -1
  128. package/date-range-picker/index.cjs +1 -1
  129. package/date-range-picker/index.js +2 -2
  130. package/date-time-picker/definition.cjs +1 -1
  131. package/date-time-picker/definition.js +1 -1
  132. package/date-time-picker/index.cjs +1 -1
  133. package/date-time-picker/index.js +2 -2
  134. package/dial-pad/definition.cjs +4 -0
  135. package/dial-pad/definition.js +4 -0
  136. package/dial-pad/index.cjs +3 -3
  137. package/dial-pad/index.js +42 -39
  138. package/dialog/definition.cjs +6 -3
  139. package/dialog/definition.js +6 -3
  140. package/dialog/index.cjs +22 -19
  141. package/dialog/index.js +48 -45
  142. package/elevation/definition.cjs +1 -1
  143. package/elevation/definition.js +1 -1
  144. package/empty-state/definition.cjs +7 -2
  145. package/empty-state/definition.js +7 -2
  146. package/empty-state/index.cjs +10 -5
  147. package/empty-state/index.js +18 -13
  148. package/fab/definition.js +1 -1
  149. package/fab/index.cjs +2 -2
  150. package/fab/index.js +4 -4
  151. package/file-picker/definition.cjs +2 -2
  152. package/file-picker/definition.js +3 -3
  153. package/file-picker/index.cjs +1 -1
  154. package/file-picker/index.js +4 -4
  155. package/header/definition.cjs +1 -1
  156. package/header/definition.js +1 -1
  157. package/icon/definition.cjs +10 -6
  158. package/icon/definition.js +10 -6
  159. package/index.cjs +7 -4
  160. package/index.js +3 -3
  161. package/lib/accordion/accordion.d.ts +1 -1
  162. package/lib/accordion/definition.d.ts +1 -1
  163. package/lib/accordion-item/accordion-item.d.ts +2 -2
  164. package/lib/action-group/action-group.d.ts +2 -2
  165. package/lib/alert/alert.d.ts +4 -4
  166. package/lib/audio-player/audio-player.d.ts +3 -3
  167. package/lib/avatar/avatar.d.ts +2 -2
  168. package/lib/badge/badge.d.ts +2 -2
  169. package/lib/banner/banner.d.ts +6 -6
  170. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  171. package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  172. package/lib/button/button.d.ts +6 -6
  173. package/lib/button/button.template.d.ts +2 -1
  174. package/lib/calendar/calendar.d.ts +1 -1
  175. package/lib/calendar-event/calendar-event.d.ts +2 -2
  176. package/lib/card/card.d.ts +2 -2
  177. package/lib/checkbox/checkbox.d.ts +12 -12
  178. package/lib/color-picker/color-picker.d.ts +2420 -0
  179. package/lib/color-picker/color-picker.template.d.ts +3 -0
  180. package/lib/color-picker/definition.d.ts +4 -0
  181. package/lib/color-picker/locale.d.ts +9 -0
  182. package/lib/combobox/combobox.d.ts +15 -14
  183. package/lib/combobox/combobox.options.d.ts +1 -1
  184. package/lib/components.d.ts +1 -0
  185. package/lib/data-grid/data-grid-cell.d.ts +4 -4
  186. package/lib/data-grid/data-grid-row.d.ts +3 -4
  187. package/lib/data-grid/data-grid.d.ts +1 -2
  188. package/lib/date-picker/date-picker.d.ts +54 -54
  189. package/lib/date-range-picker/date-range-picker.d.ts +28 -28
  190. package/lib/date-time-picker/date-time-picker.d.ts +56 -56
  191. package/lib/dial-pad/dial-pad.d.ts +3 -2
  192. package/lib/dialog/dialog.d.ts +4 -4
  193. package/lib/divider/divider.d.ts +3 -3
  194. package/lib/fab/fab.d.ts +2 -2
  195. package/lib/file-picker/file-picker.d.ts +14 -14
  196. package/lib/header/header.d.ts +2 -2
  197. package/lib/menu/menu.d.ts +4 -4
  198. package/lib/menu-item/menu-item-role.d.ts +1 -1
  199. package/lib/menu-item/menu-item.d.ts +4 -4
  200. package/lib/nav/nav.d.ts +2 -2
  201. package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
  202. package/lib/nav-item/nav-item.d.ts +4 -4
  203. package/lib/note/note.d.ts +2 -2
  204. package/lib/number-field/number-field.d.ts +18 -18
  205. package/lib/option/option.d.ts +4 -4
  206. package/lib/pagination/pagination.d.ts +2 -2
  207. package/lib/popup/popup.d.ts +1 -1
  208. package/lib/progress/progress.d.ts +2 -2
  209. package/lib/progress-ring/progress-ring.d.ts +2 -2
  210. package/lib/radio/radio.d.ts +6 -6
  211. package/lib/radio-group/radio-group.d.ts +2 -2
  212. package/lib/range-slider/range-slider.d.ts +6 -6
  213. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  214. package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
  215. package/lib/searchable-select/locale.d.ts +4 -0
  216. package/lib/searchable-select/option-tag.d.ts +2 -2
  217. package/lib/searchable-select/searchable-select.d.ts +21 -18
  218. package/lib/select/select.d.ts +19 -17
  219. package/lib/selectable-box/selectable-box.d.ts +2 -2
  220. package/lib/simple-color-picker/locale.d.ts +0 -1
  221. package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
  222. package/lib/slider/slider.d.ts +7 -7
  223. package/lib/split-button/split-button.d.ts +6 -6
  224. package/lib/switch/switch.d.ts +4 -4
  225. package/lib/tab/tab.d.ts +6 -6
  226. package/lib/tab-panel/tab-panel.d.ts +2 -2
  227. package/lib/tabs/tabs.d.ts +2 -2
  228. package/lib/tag/tag.d.ts +6 -6
  229. package/lib/tag-group/tag-group.d.ts +2 -2
  230. package/lib/tag-name-map.d.ts +2 -1
  231. package/lib/text-area/text-area.d.ts +17 -17
  232. package/lib/text-field/text-field.d.ts +19 -19
  233. package/lib/time-picker/time-picker.d.ts +28 -28
  234. package/lib/toggletip/toggletip.d.ts +4 -4
  235. package/lib/tooltip/tooltip.d.ts +2 -2
  236. package/lib/tree-item/tree-item.d.ts +4 -4
  237. package/lib/tree-view/tree-view.d.ts +2 -2
  238. package/lib/video-player/video-player.d.ts +2 -2
  239. package/locales/de-DE.cjs +17 -2
  240. package/locales/de-DE.js +17 -2
  241. package/locales/en-GB.cjs +17 -2
  242. package/locales/en-GB.js +17 -2
  243. package/locales/en-US.cjs +17 -2
  244. package/locales/en-US.js +17 -2
  245. package/locales/ja-JP.cjs +17 -2
  246. package/locales/ja-JP.js +17 -2
  247. package/locales/zh-CN.cjs +17 -2
  248. package/locales/zh-CN.js +17 -2
  249. package/menu/definition.cjs +6 -6
  250. package/menu/definition.js +7 -7
  251. package/nav-disclosure/definition.js +1 -1
  252. package/nav-item/definition.js +1 -1
  253. package/note/definition.js +1 -1
  254. package/note/index.cjs +2 -2
  255. package/note/index.js +4 -4
  256. package/number-field/definition.cjs +1 -1
  257. package/number-field/definition.js +3 -3
  258. package/number-field/index.cjs +5 -5
  259. package/number-field/index.js +21 -21
  260. package/option/definition.cjs +6 -77
  261. package/option/definition.js +3 -78
  262. package/option/index.cjs +1 -1
  263. package/option/index.js +1 -1
  264. package/package.json +34 -8
  265. package/pagination/definition.cjs +2 -1
  266. package/pagination/definition.js +2 -1
  267. package/pagination/index.cjs +12 -12
  268. package/pagination/index.js +59 -59
  269. package/popup/definition.cjs +2 -2
  270. package/popup/definition.js +2 -2
  271. package/progress/index.cjs +1 -1
  272. package/progress/index.js +1 -1
  273. package/radio/definition.cjs +9 -9
  274. package/radio/definition.js +10 -10
  275. package/radio-group/definition.cjs +2 -1
  276. package/radio-group/definition.js +2 -1
  277. package/radio-group/index.cjs +5 -5
  278. package/radio-group/index.js +80 -77
  279. package/range-slider/definition.cjs +1 -1
  280. package/range-slider/definition.js +1 -1
  281. package/range-slider/index.cjs +1 -1
  282. package/range-slider/index.js +1 -1
  283. package/rich-text-editor/definition.cjs +3 -4
  284. package/rich-text-editor/definition.js +3 -4
  285. package/rich-text-editor/index.cjs +27 -27
  286. package/rich-text-editor/index.js +1208 -1198
  287. package/searchable-select/definition.cjs +106 -14
  288. package/searchable-select/definition.js +107 -15
  289. package/searchable-select/index.cjs +81 -69
  290. package/searchable-select/index.js +362 -276
  291. package/select/definition.cjs +25 -42
  292. package/select/definition.js +26 -43
  293. package/selectable-box/definition.cjs +1 -1
  294. package/selectable-box/definition.js +1 -1
  295. package/selectable-box/index.cjs +3 -3
  296. package/selectable-box/index.js +20 -20
  297. package/shared/aria/aria-change-subscription.d.ts +0 -1
  298. package/shared/aria/aria-mixin.d.ts +3 -3
  299. package/shared/aria/delegate-aria-behavior.d.ts +5 -10
  300. package/shared/aria/delegates-aria.d.ts +3 -3
  301. package/shared/aria/host-semantics-behavior.d.ts +5 -8
  302. package/shared/aria/host-semantics.d.ts +3 -3
  303. package/shared/color-picker/base-color-picker.d.ts +436 -0
  304. package/shared/color-picker/index.d.ts +1 -0
  305. package/shared/color-picker/locale.d.ts +3 -0
  306. package/shared/color-picker/utils.d.ts +1 -0
  307. package/shared/deprecation/replaced-props.d.ts +317 -2
  308. package/shared/design-system/defineVividComponent.d.ts +2 -2
  309. package/shared/feedback/feedback-message.d.ts +2 -2
  310. package/shared/feedback/mixins.d.ts +4 -4
  311. package/shared/foundation/button/button.d.ts +4 -4
  312. package/shared/foundation/form-associated/form-associated.d.ts +4 -4
  313. package/shared/foundation/listbox/listbox.d.ts +4 -0
  314. package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
  315. package/shared/localization/Locale.d.ts +4 -0
  316. package/shared/patterns/affix.d.ts +4 -4
  317. package/shared/patterns/anchored.d.ts +4 -4
  318. package/shared/patterns/char-count/char-count.d.ts +2 -2
  319. package/shared/patterns/form-elements/form-element.d.ts +4 -4
  320. package/shared/patterns/form-elements/with-contextual-help.d.ts +6 -6
  321. package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
  322. package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
  323. package/shared/patterns/linkable.d.ts +2 -2
  324. package/shared/patterns/localized.d.ts +2 -2
  325. package/shared/patterns/trapped-focus.d.ts +2 -2
  326. package/shared/picker-field/mixins/calendar-picker.d.ts +14 -14
  327. package/shared/picker-field/mixins/calendar-picker.template.d.ts +14 -14
  328. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
  329. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +28 -28
  330. package/shared/picker-field/mixins/single-date-picker.d.ts +40 -40
  331. package/shared/picker-field/mixins/single-value-picker.d.ts +12 -12
  332. package/shared/picker-field/mixins/time-selection-picker.d.ts +29 -29
  333. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +28 -28
  334. package/shared/picker-field/picker-field.d.ts +14 -14
  335. package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
  336. package/shared/templating/render-in-light-dom.d.ts +13 -12
  337. package/side-drawer/index.cjs +1 -1
  338. package/side-drawer/index.js +1 -1
  339. package/simple-color-picker/definition.cjs +29 -216
  340. package/simple-color-picker/definition.js +30 -217
  341. package/simple-color-picker/index.cjs +9 -21
  342. package/simple-color-picker/index.js +71 -185
  343. package/slider/definition.cjs +1 -1
  344. package/slider/definition.js +1 -1
  345. package/split-button/definition.js +1 -1
  346. package/styles/core/all.css +1 -1
  347. package/styles/core/theme.css +1 -1
  348. package/styles/core/typography.css +1 -1
  349. package/styles/tokens/theme-dark.css +4 -4
  350. package/styles/tokens/theme-light.css +4 -4
  351. package/styles/tokens/vivid-2-compat.css +1 -1
  352. package/switch/index.cjs +2 -2
  353. package/switch/index.js +4 -4
  354. package/tab/definition.js +1 -1
  355. package/tabs/definition.cjs +1 -1
  356. package/tabs/definition.js +2 -2
  357. package/tabs/index.cjs +2 -2
  358. package/tabs/index.js +16 -16
  359. package/tag/definition.js +1 -1
  360. package/tag/index.cjs +1 -1
  361. package/tag/index.js +1 -1
  362. package/text-area/index.cjs +3 -3
  363. package/text-area/index.js +8 -8
  364. package/text-field/definition.cjs +2 -2
  365. package/text-field/definition.js +4 -4
  366. package/text-field/index.cjs +1 -1
  367. package/text-field/index.js +1 -1
  368. package/time-picker/definition.cjs +1 -1
  369. package/time-picker/definition.js +1 -1
  370. package/time-picker/index.cjs +1 -1
  371. package/time-picker/index.js +2 -2
  372. package/toggletip/definition.cjs +2 -2
  373. package/toggletip/definition.js +3 -3
  374. package/tooltip/definition.cjs +1 -1
  375. package/tooltip/definition.js +1 -1
  376. package/tree-item/definition.cjs +1 -1
  377. package/tree-item/definition.js +1 -1
  378. package/tree-view/definition.cjs +2 -2
  379. package/tree-view/definition.js +3 -3
  380. package/tree-view/index.cjs +2 -2
  381. package/tree-view/index.js +6 -6
  382. package/unbundled/_commonjsHelpers.cjs +36 -0
  383. package/unbundled/_commonjsHelpers.js +32 -0
  384. package/unbundled/affix.cjs +1 -1
  385. package/unbundled/affix.js +2 -2
  386. package/unbundled/attribute-binding-behaviour.cjs +11 -10
  387. package/unbundled/attribute-binding-behaviour.js +11 -10
  388. package/unbundled/base-color-picker.cjs +278 -0
  389. package/unbundled/base-color-picker.js +275 -0
  390. package/unbundled/button.cjs +1 -1
  391. package/unbundled/button.js +2 -2
  392. package/unbundled/calendar-picker.template.cjs +4 -4
  393. package/unbundled/calendar-picker.template.js +5 -5
  394. package/unbundled/definition.js +1 -1
  395. package/unbundled/definition2.cjs +1 -1
  396. package/unbundled/definition2.js +3 -3
  397. package/unbundled/definition3.cjs +222 -140
  398. package/unbundled/definition3.js +220 -138
  399. package/unbundled/definition4.cjs +145 -235
  400. package/unbundled/definition4.js +143 -233
  401. package/unbundled/definition5.cjs +269 -27
  402. package/unbundled/definition5.js +267 -26
  403. package/unbundled/definition6.cjs +56 -0
  404. package/unbundled/definition6.js +52 -0
  405. package/unbundled/delegates-aria.cjs +67 -33
  406. package/unbundled/delegates-aria.js +69 -35
  407. package/unbundled/form-associated.cjs +2 -2
  408. package/unbundled/form-associated.js +3 -3
  409. package/unbundled/host-semantics.cjs +47 -22
  410. package/unbundled/host-semantics.js +48 -23
  411. package/unbundled/listbox.cjs +41 -63
  412. package/unbundled/listbox.js +39 -61
  413. package/unbundled/mixins.cjs +34 -27
  414. package/unbundled/mixins.js +35 -28
  415. package/unbundled/picker-field.template.cjs +3 -3
  416. package/unbundled/picker-field.template.js +4 -4
  417. package/unbundled/slider.template.cjs +1 -1
  418. package/unbundled/slider.template.js +1 -1
  419. package/unbundled/time-selection-picker.template.cjs +4 -4
  420. package/unbundled/time-selection-picker.template.js +5 -5
  421. package/unbundled/vivid-element.cjs +22 -15
  422. package/unbundled/vivid-element.js +23 -15
  423. package/video-player/definition.cjs +69047 -1
  424. package/video-player/definition.js +69047 -1
  425. package/video-player/index.cjs +36 -36
  426. package/video-player/index.js +1895 -1905
  427. package/visually-hidden/index.cjs +1 -1
  428. package/visually-hidden/index.js +1 -1
  429. package/vivid.api.json +719 -224
  430. package/bundled/option.cjs +0 -1
  431. package/bundled/option.js +0 -158
  432. package/unbundled/option.cjs +0 -217
  433. package/unbundled/option.js +0 -214
@@ -2,7 +2,7 @@
2
2
 
3
3
  const fastElement = require('@microsoft/fast-element');
4
4
  const fastWebUtilities = require('@microsoft/fast-web-utilities');
5
- const option = require('./option.cjs');
5
+ const option_definition = require('./definition3.cjs');
6
6
  const vividElement = require('./vivid-element.cjs');
7
7
 
8
8
  var __defProp = Object.defineProperty;
@@ -55,14 +55,6 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
55
55
  get firstSelectedOption() {
56
56
  return this.selectedOptions[0] ?? null;
57
57
  }
58
- /**
59
- * Returns true if there is one or more selectable option.
60
- *
61
- * @internal
62
- */
63
- get hasSelectableOptions() {
64
- return this.options.length > 0 && !this.options.every((o) => o.disabled);
65
- }
66
58
  /**
67
59
  * The number of options.
68
60
  *
@@ -81,8 +73,19 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
81
73
  return this._options;
82
74
  }
83
75
  set options(value) {
76
+ const prev = this._options;
84
77
  this._options = value;
85
78
  fastElement.Observable.notify(this, "options");
79
+ if (this.$fastController.isConnected) {
80
+ const newSelectedIndex = this._newDefaultSelectedIndex(
81
+ prev,
82
+ value,
83
+ this.selectedIndex
84
+ );
85
+ if (newSelectedIndex !== null) {
86
+ this.selectedIndex = newSelectedIndex;
87
+ }
88
+ }
86
89
  }
87
90
  static {
88
91
  /**
@@ -91,7 +94,7 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
91
94
  * @param n - element to filter
92
95
  * @public
93
96
  */
94
- this.slottedOptionFilter = (n) => option.isListboxOption(n) && !n.hidden;
97
+ this.slottedOptionFilter = (n) => option_definition.isListboxOption(n) && !n.hidden;
95
98
  }
96
99
  static {
97
100
  /**
@@ -156,34 +159,11 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
156
159
  const re = new RegExp(`^${pattern}`, "gi");
157
160
  return this.options.filter((o) => o.text.trim().match(re));
158
161
  }
159
- /**
160
- * Determines the index of the next option which is selectable, if any.
161
- *
162
- * @param prev - the previous selected index
163
- * @param next - the next index to select
164
- *
165
- * @internal
166
- */
167
- getSelectableIndex(prev, next) {
168
- const direction = prev > next ? -1 : 1;
169
- const potentialDirection = prev + direction;
170
- let nextSelectableOption = null;
171
- switch (direction) {
172
- case -1: {
173
- nextSelectableOption = this.options.reduceRight(
174
- (nextSelectableOption2, thisOption, index) => !nextSelectableOption2 && !thisOption.disabled && index < potentialDirection ? thisOption : nextSelectableOption2,
175
- nextSelectableOption
176
- );
177
- break;
178
- }
179
- case 1: {
180
- nextSelectableOption = this.options.reduce(
181
- (nextSelectableOption2, thisOption, index) => !nextSelectableOption2 && !thisOption.disabled && index > potentialDirection ? thisOption : nextSelectableOption2,
182
- nextSelectableOption
183
- );
184
- break;
185
- }
186
- }
162
+ getNextSelectableIndex(fromIndex) {
163
+ const nextSelectableOption = this.options.reduce(
164
+ (nextSelectableOption2, thisOption, index) => !nextSelectableOption2 && !thisOption.disabled && index >= fromIndex ? thisOption : nextSelectableOption2,
165
+ null
166
+ );
187
167
  return this.options.indexOf(nextSelectableOption);
188
168
  }
189
169
  /**
@@ -301,18 +281,17 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
301
281
  * @internal
302
282
  */
303
283
  selectedIndexChanged(prev, next) {
304
- if (!this.hasSelectableOptions) {
305
- this.selectedIndex = -1;
306
- return;
307
- }
308
- if (this.options[this.selectedIndex]?.disabled && typeof prev === "number") {
309
- const selectableIndex = this.getSelectableIndex(prev, next);
310
- const newNext = selectableIndex > -1 ? selectableIndex : prev;
311
- this.selectedIndex = newNext;
284
+ const validNext = this._validSelectedIndex(next);
285
+ if (next !== validNext) {
286
+ this.selectedIndex = validNext;
312
287
  return;
313
288
  }
314
289
  this.setSelectedOptions();
315
290
  }
291
+ _validSelectedIndex(index) {
292
+ const outOfRange = index > this.options.length - 1 || index < -1;
293
+ return outOfRange ? -1 : index;
294
+ }
316
295
  /**
317
296
  * Updates the selectedness of each option when the list of selected options changes.
318
297
  *
@@ -367,13 +346,18 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
367
346
  this.selectedIndex = this.selectedIndex - 1;
368
347
  }
369
348
  }
370
- /**
371
- * Updates the selected index to match the first selected option.
372
- *
373
- * @internal
374
- */
375
- setDefaultSelectedOption() {
376
- this.selectedIndex = this.options.findIndex((el) => el.defaultSelected);
349
+ /// For this options change, determine if selectedIndex should change based on defaultSelected. Otherwise, returns null.
350
+ _newDefaultSelectedIndex(prev, next, currentSelectedIndex) {
351
+ for (const [index, newOption] of next.entries()) {
352
+ if (this._isDefaultSelected(newOption) && !prev.includes(newOption)) {
353
+ return index;
354
+ }
355
+ }
356
+ return null;
357
+ }
358
+ /// Whether an option should be considered defaultSelected
359
+ _isDefaultSelected(option) {
360
+ return option.defaultSelected;
377
361
  }
378
362
  /**
379
363
  * Sets an option as selected and gives it focus.
@@ -381,11 +365,9 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
381
365
  * @public
382
366
  */
383
367
  setSelectedOptions() {
384
- if (this.options.length) {
385
- this.selectedOptions = [this.options[this.selectedIndex]];
386
- this._activeDescendant = this.firstSelectedOption?.id ?? "";
387
- this.focusAndScrollOptionIntoView();
388
- }
368
+ this.selectedOptions = this.selectedIndex !== -1 ? [this.options[this.selectedIndex]] : [];
369
+ this._activeDescendant = this.firstSelectedOption?.id ?? "";
370
+ this.focusAndScrollOptionIntoView();
389
371
  }
390
372
  /**
391
373
  * Updates the list of options and resets the selected option when the slotted option content changes.
@@ -394,7 +376,7 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
394
376
  */
395
377
  slottedOptionsChanged(_, next) {
396
378
  this.options = next.reduce((options, item) => {
397
- if (option.isListboxOption(item)) {
379
+ if (option_definition.isListboxOption(item)) {
398
380
  options.push(item);
399
381
  }
400
382
  return options;
@@ -407,10 +389,6 @@ const _Listbox = class _Listbox extends vividElement.VividElement {
407
389
  option.ariaPosInSet = `${index + 1}`;
408
390
  option.ariaSetSize = setSize;
409
391
  });
410
- if (this.$fastController.isConnected) {
411
- this.setSelectedOptions();
412
- this.setDefaultSelectedOption();
413
- }
414
392
  }
415
393
  /**
416
394
  * Updates the filtered list of options when the typeahead buffer changes.
@@ -1,6 +1,6 @@
1
1
  import { Observable, attr, observable } from '@microsoft/fast-element';
2
2
  import { keySpace, keyEscape, keyEnter, keyTab, keyEnd, keyArrowUp, keyArrowDown, keyHome, findLastIndex, uniqueId } from '@microsoft/fast-web-utilities';
3
- import { i as isListboxOption } from './option.js';
3
+ import { i as isListboxOption } from './definition3.js';
4
4
  import { V as VividElement } from './vivid-element.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -53,14 +53,6 @@ const _Listbox = class _Listbox extends VividElement {
53
53
  get firstSelectedOption() {
54
54
  return this.selectedOptions[0] ?? null;
55
55
  }
56
- /**
57
- * Returns true if there is one or more selectable option.
58
- *
59
- * @internal
60
- */
61
- get hasSelectableOptions() {
62
- return this.options.length > 0 && !this.options.every((o) => o.disabled);
63
- }
64
56
  /**
65
57
  * The number of options.
66
58
  *
@@ -79,8 +71,19 @@ const _Listbox = class _Listbox extends VividElement {
79
71
  return this._options;
80
72
  }
81
73
  set options(value) {
74
+ const prev = this._options;
82
75
  this._options = value;
83
76
  Observable.notify(this, "options");
77
+ if (this.$fastController.isConnected) {
78
+ const newSelectedIndex = this._newDefaultSelectedIndex(
79
+ prev,
80
+ value,
81
+ this.selectedIndex
82
+ );
83
+ if (newSelectedIndex !== null) {
84
+ this.selectedIndex = newSelectedIndex;
85
+ }
86
+ }
84
87
  }
85
88
  static {
86
89
  /**
@@ -154,34 +157,11 @@ const _Listbox = class _Listbox extends VividElement {
154
157
  const re = new RegExp(`^${pattern}`, "gi");
155
158
  return this.options.filter((o) => o.text.trim().match(re));
156
159
  }
157
- /**
158
- * Determines the index of the next option which is selectable, if any.
159
- *
160
- * @param prev - the previous selected index
161
- * @param next - the next index to select
162
- *
163
- * @internal
164
- */
165
- getSelectableIndex(prev, next) {
166
- const direction = prev > next ? -1 : 1;
167
- const potentialDirection = prev + direction;
168
- let nextSelectableOption = null;
169
- switch (direction) {
170
- case -1: {
171
- nextSelectableOption = this.options.reduceRight(
172
- (nextSelectableOption2, thisOption, index) => !nextSelectableOption2 && !thisOption.disabled && index < potentialDirection ? thisOption : nextSelectableOption2,
173
- nextSelectableOption
174
- );
175
- break;
176
- }
177
- case 1: {
178
- nextSelectableOption = this.options.reduce(
179
- (nextSelectableOption2, thisOption, index) => !nextSelectableOption2 && !thisOption.disabled && index > potentialDirection ? thisOption : nextSelectableOption2,
180
- nextSelectableOption
181
- );
182
- break;
183
- }
184
- }
160
+ getNextSelectableIndex(fromIndex) {
161
+ const nextSelectableOption = this.options.reduce(
162
+ (nextSelectableOption2, thisOption, index) => !nextSelectableOption2 && !thisOption.disabled && index >= fromIndex ? thisOption : nextSelectableOption2,
163
+ null
164
+ );
185
165
  return this.options.indexOf(nextSelectableOption);
186
166
  }
187
167
  /**
@@ -299,18 +279,17 @@ const _Listbox = class _Listbox extends VividElement {
299
279
  * @internal
300
280
  */
301
281
  selectedIndexChanged(prev, next) {
302
- if (!this.hasSelectableOptions) {
303
- this.selectedIndex = -1;
304
- return;
305
- }
306
- if (this.options[this.selectedIndex]?.disabled && typeof prev === "number") {
307
- const selectableIndex = this.getSelectableIndex(prev, next);
308
- const newNext = selectableIndex > -1 ? selectableIndex : prev;
309
- this.selectedIndex = newNext;
282
+ const validNext = this._validSelectedIndex(next);
283
+ if (next !== validNext) {
284
+ this.selectedIndex = validNext;
310
285
  return;
311
286
  }
312
287
  this.setSelectedOptions();
313
288
  }
289
+ _validSelectedIndex(index) {
290
+ const outOfRange = index > this.options.length - 1 || index < -1;
291
+ return outOfRange ? -1 : index;
292
+ }
314
293
  /**
315
294
  * Updates the selectedness of each option when the list of selected options changes.
316
295
  *
@@ -365,13 +344,18 @@ const _Listbox = class _Listbox extends VividElement {
365
344
  this.selectedIndex = this.selectedIndex - 1;
366
345
  }
367
346
  }
368
- /**
369
- * Updates the selected index to match the first selected option.
370
- *
371
- * @internal
372
- */
373
- setDefaultSelectedOption() {
374
- this.selectedIndex = this.options.findIndex((el) => el.defaultSelected);
347
+ /// For this options change, determine if selectedIndex should change based on defaultSelected. Otherwise, returns null.
348
+ _newDefaultSelectedIndex(prev, next, currentSelectedIndex) {
349
+ for (const [index, newOption] of next.entries()) {
350
+ if (this._isDefaultSelected(newOption) && !prev.includes(newOption)) {
351
+ return index;
352
+ }
353
+ }
354
+ return null;
355
+ }
356
+ /// Whether an option should be considered defaultSelected
357
+ _isDefaultSelected(option) {
358
+ return option.defaultSelected;
375
359
  }
376
360
  /**
377
361
  * Sets an option as selected and gives it focus.
@@ -379,11 +363,9 @@ const _Listbox = class _Listbox extends VividElement {
379
363
  * @public
380
364
  */
381
365
  setSelectedOptions() {
382
- if (this.options.length) {
383
- this.selectedOptions = [this.options[this.selectedIndex]];
384
- this._activeDescendant = this.firstSelectedOption?.id ?? "";
385
- this.focusAndScrollOptionIntoView();
386
- }
366
+ this.selectedOptions = this.selectedIndex !== -1 ? [this.options[this.selectedIndex]] : [];
367
+ this._activeDescendant = this.firstSelectedOption?.id ?? "";
368
+ this.focusAndScrollOptionIntoView();
387
369
  }
388
370
  /**
389
371
  * Updates the list of options and resets the selected option when the slotted option content changes.
@@ -405,10 +387,6 @@ const _Listbox = class _Listbox extends VividElement {
405
387
  option.ariaPosInSet = `${index + 1}`;
406
388
  option.ariaSetSize = setSize;
407
389
  });
408
- if (this.$fastController.isConnected) {
409
- this.setSelectedOptions();
410
- this.setDefaultSelectedOption();
411
- }
412
390
  }
413
391
  /**
414
392
  * Updates the filtered list of options when the typeahead buffer changes.
@@ -64,35 +64,39 @@ const feedbackMessageDefinition = vividElement.defineVividComponent(
64
64
  );
65
65
 
66
66
  class RenderInLightDomBehaviour {
67
- constructor(templateBinding, isTemplateBindingVolatile) {
67
+ constructor(directive) {
68
68
  this.source = null;
69
- this.templateBindingObserver = fastElement.Observable.binding(
70
- templateBinding,
69
+ this.templateBindingObserver = directive.templateBinding.createObserver(
71
70
  this,
72
- isTemplateBindingVolatile
71
+ directive
73
72
  );
74
73
  }
75
- bind(source, context) {
76
- this.source = source;
77
- this.context = context;
74
+ bind(controller) {
75
+ this.source = controller.source;
76
+ this.context = controller.context;
77
+ this.controller = controller;
78
78
  if (!this.insertionPoint) {
79
79
  this.insertionPoint = document.createComment("");
80
- source.appendChild(this.insertionPoint);
80
+ this.source.appendChild(this.insertionPoint);
81
81
  }
82
- this.handleChange();
83
- }
84
- unbind() {
85
- this.source = null;
86
- this.view.unbind();
87
- this.templateBindingObserver.disconnect();
82
+ this.templateBindingObserver.bind(controller);
83
+ this.handleChange(this.source, this.templateBindingObserver);
88
84
  }
85
+ // unbind(): void {
86
+ // this.source = null;
87
+ // if (this.view) {
88
+ // this.view.unbind();
89
+ // }
90
+ // // The observer will be automatically cleaned up when the behavior is destroyed
91
+ // }
89
92
  /**
90
93
  * Handles change of the template itself.
91
94
  */
92
- handleChange() {
93
- this.instantiateTemplate(
94
- this.templateBindingObserver.observe(this.source, this.context)
95
- );
95
+ handleChange(source, args) {
96
+ if (args === this.templateBindingObserver) {
97
+ const template = this.templateBindingObserver.bind(this.controller);
98
+ this.instantiateTemplate(template);
99
+ }
96
100
  }
97
101
  instantiateTemplate(template) {
98
102
  if (this.view) {
@@ -103,22 +107,25 @@ class RenderInLightDomBehaviour {
103
107
  this.view.insertBefore(this.insertionPoint);
104
108
  }
105
109
  }
106
- class RenderInLightDomDirective extends fastElement.HTMLDirective {
110
+ class RenderInLightDomDirective {
107
111
  constructor(templateBinding) {
108
- super();
112
+ /**
113
+ * The structural id of the DOM node to which the created behavior will apply.
114
+ */
115
+ this.targetNodeId = "";
109
116
  this.templateBinding = templateBinding;
110
- this.createPlaceholder = fastElement.DOM.createBlockPlaceholder;
111
- this.isTemplateBindingVolatile = fastElement.Observable.isVolatileBinding(templateBinding);
117
+ this.dataBinding = templateBinding;
118
+ }
119
+ createHTML(add) {
120
+ return fastElement.Markup.comment(add(this));
112
121
  }
113
122
  createBehavior() {
114
- return new RenderInLightDomBehaviour(
115
- this.templateBinding,
116
- this.isTemplateBindingVolatile
117
- );
123
+ return new RenderInLightDomBehaviour(this);
118
124
  }
119
125
  }
126
+ fastElement.HTMLDirective.define(RenderInLightDomDirective);
120
127
  function renderInLightDOM(templateOrTemplateBinding) {
121
- const templateBinding = typeof templateOrTemplateBinding === "function" ? templateOrTemplateBinding : () => templateOrTemplateBinding;
128
+ const templateBinding = fastElement.normalizeBinding(templateOrTemplateBinding);
122
129
  return new RenderInLightDomDirective(templateBinding);
123
130
  }
124
131
 
@@ -1,4 +1,4 @@
1
- import { html, when, attr, HTMLDirective, DOM, Observable, observable, slotted } from '@microsoft/fast-element';
1
+ import { html, when, attr, normalizeBinding, Markup, HTMLDirective, observable, slotted } from '@microsoft/fast-element';
2
2
  import { v4 } from 'uuid';
3
3
  import { classNames } from '@microsoft/fast-web-utilities';
4
4
  import { iconDefinition, VwcIconElement as Icon } from '../icon/definition.js';
@@ -62,35 +62,39 @@ const feedbackMessageDefinition = defineVividComponent(
62
62
  );
63
63
 
64
64
  class RenderInLightDomBehaviour {
65
- constructor(templateBinding, isTemplateBindingVolatile) {
65
+ constructor(directive) {
66
66
  this.source = null;
67
- this.templateBindingObserver = Observable.binding(
68
- templateBinding,
67
+ this.templateBindingObserver = directive.templateBinding.createObserver(
69
68
  this,
70
- isTemplateBindingVolatile
69
+ directive
71
70
  );
72
71
  }
73
- bind(source, context) {
74
- this.source = source;
75
- this.context = context;
72
+ bind(controller) {
73
+ this.source = controller.source;
74
+ this.context = controller.context;
75
+ this.controller = controller;
76
76
  if (!this.insertionPoint) {
77
77
  this.insertionPoint = document.createComment("");
78
- source.appendChild(this.insertionPoint);
78
+ this.source.appendChild(this.insertionPoint);
79
79
  }
80
- this.handleChange();
81
- }
82
- unbind() {
83
- this.source = null;
84
- this.view.unbind();
85
- this.templateBindingObserver.disconnect();
80
+ this.templateBindingObserver.bind(controller);
81
+ this.handleChange(this.source, this.templateBindingObserver);
86
82
  }
83
+ // unbind(): void {
84
+ // this.source = null;
85
+ // if (this.view) {
86
+ // this.view.unbind();
87
+ // }
88
+ // // The observer will be automatically cleaned up when the behavior is destroyed
89
+ // }
87
90
  /**
88
91
  * Handles change of the template itself.
89
92
  */
90
- handleChange() {
91
- this.instantiateTemplate(
92
- this.templateBindingObserver.observe(this.source, this.context)
93
- );
93
+ handleChange(source, args) {
94
+ if (args === this.templateBindingObserver) {
95
+ const template = this.templateBindingObserver.bind(this.controller);
96
+ this.instantiateTemplate(template);
97
+ }
94
98
  }
95
99
  instantiateTemplate(template) {
96
100
  if (this.view) {
@@ -101,22 +105,25 @@ class RenderInLightDomBehaviour {
101
105
  this.view.insertBefore(this.insertionPoint);
102
106
  }
103
107
  }
104
- class RenderInLightDomDirective extends HTMLDirective {
108
+ class RenderInLightDomDirective {
105
109
  constructor(templateBinding) {
106
- super();
110
+ /**
111
+ * The structural id of the DOM node to which the created behavior will apply.
112
+ */
113
+ this.targetNodeId = "";
107
114
  this.templateBinding = templateBinding;
108
- this.createPlaceholder = DOM.createBlockPlaceholder;
109
- this.isTemplateBindingVolatile = Observable.isVolatileBinding(templateBinding);
115
+ this.dataBinding = templateBinding;
116
+ }
117
+ createHTML(add) {
118
+ return Markup.comment(add(this));
110
119
  }
111
120
  createBehavior() {
112
- return new RenderInLightDomBehaviour(
113
- this.templateBinding,
114
- this.isTemplateBindingVolatile
115
- );
121
+ return new RenderInLightDomBehaviour(this);
116
122
  }
117
123
  }
124
+ HTMLDirective.define(RenderInLightDomDirective);
118
125
  function renderInLightDOM(templateOrTemplateBinding) {
119
- const templateBinding = typeof templateOrTemplateBinding === "function" ? templateOrTemplateBinding : () => templateOrTemplateBinding;
126
+ const templateBinding = normalizeBinding(templateOrTemplateBinding);
120
127
  return new RenderInLightDomDirective(templateBinding);
121
128
  }
122
129
 
@@ -10,7 +10,7 @@ const withErrorText = require('./with-error-text.cjs');
10
10
  const formElement = require('./form-element.cjs');
11
11
  const localized = require('./localized.cjs');
12
12
  const fastWebUtilities = require('@microsoft/fast-web-utilities');
13
- const popup_definition = require('./definition4.cjs');
13
+ const popup_definition = require('./definition5.cjs');
14
14
  const textField_definition = require('../text-field/definition.cjs');
15
15
  const button_definition = require('./definition.cjs');
16
16
 
@@ -146,10 +146,10 @@ class PickerField extends withContextualHelp.WithContextualHelp(
146
146
  () => this.locale,
147
147
  this.#localeChangeHandler
148
148
  );
149
- this.#localeChangeObserver.observe(this, fastElement.defaultExecutionContext);
149
+ this.#localeChangeObserver.observe(this, fastElement.ExecutionContext.default);
150
150
  }
151
151
  #stopObservingLocaleChanges() {
152
- this.#localeChangeObserver.disconnect();
152
+ this.#localeChangeObserver.dispose();
153
153
  }
154
154
  #dismissOnClickOutside;
155
155
  #openPopupIfPossible() {
@@ -1,4 +1,4 @@
1
- import { Observable, defaultExecutionContext, attr, observable, ref, slotted, html } from '@microsoft/fast-element';
1
+ import { Observable, ExecutionContext, attr, observable, ref, slotted, html } from '@microsoft/fast-element';
2
2
  import { h as handleEscapeKeyAndStopPropogation } from './index.js';
3
3
  import { a as WithFeedback } from './mixins.js';
4
4
  import { F as FormAssociated } from './form-associated.js';
@@ -8,7 +8,7 @@ import { W as WithErrorText } from './with-error-text.js';
8
8
  import { F as FormElement } from './form-element.js';
9
9
  import { L as Localized } from './localized.js';
10
10
  import { classNames } from '@microsoft/fast-web-utilities';
11
- import { P as Popup } from './definition4.js';
11
+ import { P as Popup } from './definition5.js';
12
12
  import { VwcTextFieldElement as TextField } from '../text-field/definition.js';
13
13
  import { B as Button } from './definition.js';
14
14
 
@@ -144,10 +144,10 @@ class PickerField extends WithContextualHelp(
144
144
  () => this.locale,
145
145
  this.#localeChangeHandler
146
146
  );
147
- this.#localeChangeObserver.observe(this, defaultExecutionContext);
147
+ this.#localeChangeObserver.observe(this, ExecutionContext.default);
148
148
  }
149
149
  #stopObservingLocaleChanges() {
150
- this.#localeChangeObserver.disconnect();
150
+ this.#localeChangeObserver.dispose();
151
151
  }
152
152
  #dismissOnClickOutside;
153
153
  #openPopupIfPossible() {
@@ -2,7 +2,7 @@
2
2
 
3
3
  const fastWebUtilities = require('@microsoft/fast-web-utilities');
4
4
  const fastElement = require('@microsoft/fast-element');
5
- const popup_definition = require('./definition4.cjs');
5
+ const popup_definition = require('./definition5.cjs');
6
6
  const delegatesAria = require('./delegates-aria.cjs');
7
7
 
8
8
  const getDecimalPlaces = (num) => {
@@ -1,6 +1,6 @@
1
1
  import { limit, classNames, Orientation } from '@microsoft/fast-web-utilities';
2
2
  import { ref, when, html } from '@microsoft/fast-element';
3
- import { P as Popup, a as PlacementStrategy } from './definition4.js';
3
+ import { P as Popup, a as PlacementStrategy } from './definition5.js';
4
4
  import { d as delegateAria } from './delegates-aria.js';
5
5
 
6
6
  const getDecimalPlaces = (num) => {
@@ -562,10 +562,10 @@ const TimeSelectionPicker = (Base) => {
562
562
  () => this._use12hClock,
563
563
  this.#clockChangeHandler
564
564
  );
565
- this.#clockChangeObserver.observe(this, fastElement.defaultExecutionContext);
565
+ this.#clockChangeObserver.observe(this, fastElement.ExecutionContext.default);
566
566
  }
567
567
  #stopObservingClockChanges() {
568
- this.#clockChangeObserver.disconnect();
568
+ this.#clockChangeObserver.dispose();
569
569
  }
570
570
  /**
571
571
  * @internal
@@ -588,7 +588,7 @@ const TimeSelectionPicker = (Base) => {
588
588
  _onPickerButtonClick() {
589
589
  super._onPickerButtonClick();
590
590
  if (this._popupOpen) {
591
- fastElement.DOM.processUpdates();
591
+ fastElement.Updates.process();
592
592
  this._inlineTimePickerEl.scrollSelectedOptionsToTop();
593
593
  }
594
594
  }
@@ -748,7 +748,7 @@ class TimePicker extends TimeSelectionPicker(
748
748
  _onPickerButtonClick() {
749
749
  super._onPickerButtonClick();
750
750
  if (this._popupOpen) {
751
- fastElement.DOM.processUpdates();
751
+ fastElement.Updates.process();
752
752
  this._focusableElsWithinDialog()[0]?.focus();
753
753
  }
754
754
  }
@@ -1,5 +1,5 @@
1
1
  import { V as VividElement, d as defineVividComponent } from './vivid-element.js';
2
- import { when, html, repeat, observable, attr, nullableNumberConverter, Observable, defaultExecutionContext, DOM, volatile, ref } from '@microsoft/fast-element';
2
+ import { when, html, repeat, observable, attr, nullableNumberConverter, Observable, ExecutionContext, Updates, volatile, ref } from '@microsoft/fast-element';
3
3
  import { i as ignoreEventInFocusTraps, a as PickerField } from './picker-field.template.js';
4
4
  import { S as SingleValuePicker } from './single-value-picker.js';
5
5
  import { classNames } from '@microsoft/fast-web-utilities';
@@ -560,10 +560,10 @@ const TimeSelectionPicker = (Base) => {
560
560
  () => this._use12hClock,
561
561
  this.#clockChangeHandler
562
562
  );
563
- this.#clockChangeObserver.observe(this, defaultExecutionContext);
563
+ this.#clockChangeObserver.observe(this, ExecutionContext.default);
564
564
  }
565
565
  #stopObservingClockChanges() {
566
- this.#clockChangeObserver.disconnect();
566
+ this.#clockChangeObserver.dispose();
567
567
  }
568
568
  /**
569
569
  * @internal
@@ -586,7 +586,7 @@ const TimeSelectionPicker = (Base) => {
586
586
  _onPickerButtonClick() {
587
587
  super._onPickerButtonClick();
588
588
  if (this._popupOpen) {
589
- DOM.processUpdates();
589
+ Updates.process();
590
590
  this._inlineTimePickerEl.scrollSelectedOptionsToTop();
591
591
  }
592
592
  }
@@ -746,7 +746,7 @@ class TimePicker extends TimeSelectionPicker(
746
746
  _onPickerButtonClick() {
747
747
  super._onPickerButtonClick();
748
748
  if (this._popupOpen) {
749
- DOM.processUpdates();
749
+ Updates.process();
750
750
  this._focusableElsWithinDialog()[0]?.focus();
751
751
  }
752
752
  }