@vonage/vivid 5.1.0 → 5.3.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 (386) hide show
  1. package/accordion-item/definition.cjs +2 -1
  2. package/accordion-item/definition.js +2 -1
  3. package/alert/index.cjs +1 -1
  4. package/alert/index.js +1 -1
  5. package/audio-player/definition.cjs +41 -6
  6. package/audio-player/definition.js +41 -6
  7. package/audio-player/index.cjs +27 -25
  8. package/audio-player/index.js +88 -62
  9. package/badge/index.cjs +2 -2
  10. package/badge/index.js +4 -4
  11. package/banner/index.cjs +3 -3
  12. package/banner/index.js +6 -6
  13. package/breadcrumb-item/index.cjs +1 -1
  14. package/breadcrumb-item/index.js +1 -1
  15. package/bundled/affix.cjs +7 -7
  16. package/bundled/affix.js +5 -5
  17. package/bundled/anchored.cjs +1 -1
  18. package/bundled/anchored.js +6 -6
  19. package/bundled/attribute-binding-behaviour.cjs +1 -1
  20. package/bundled/attribute-binding-behaviour.js +15 -13
  21. package/bundled/base-color-picker.cjs +13 -0
  22. package/bundled/base-color-picker.js +194 -0
  23. package/bundled/button.cjs +1 -1
  24. package/bundled/button.js +2 -2
  25. package/bundled/calendar-picker.template.cjs +1 -1
  26. package/bundled/calendar-picker.template.js +21 -21
  27. package/bundled/char-count.cjs +1 -1
  28. package/bundled/char-count.js +1 -1
  29. package/bundled/children.cjs +1 -1
  30. package/bundled/children.js +28 -20
  31. package/bundled/definition.cjs +3 -3
  32. package/bundled/definition.js +38 -38
  33. package/bundled/definition10.cjs +72 -18
  34. package/bundled/definition10.js +351 -65
  35. package/bundled/definition11.cjs +19 -10
  36. package/bundled/definition11.js +66 -37
  37. package/bundled/definition12.cjs +10 -1
  38. package/bundled/definition12.js +38 -14
  39. package/bundled/definition13.cjs +1 -73
  40. package/bundled/definition13.js +15 -354
  41. package/bundled/definition15.cjs +1 -1
  42. package/bundled/definition15.js +1 -1
  43. package/bundled/definition16.cjs +2 -2
  44. package/bundled/definition16.js +8 -8
  45. package/bundled/definition17.cjs +7 -7
  46. package/bundled/definition17.js +17 -17
  47. package/bundled/definition19.cjs +17 -14
  48. package/bundled/definition19.js +85 -77
  49. package/bundled/definition2.cjs +9 -5
  50. package/bundled/definition2.js +21 -17
  51. package/bundled/definition22.cjs +9 -9
  52. package/bundled/definition22.js +31 -31
  53. package/bundled/definition3.cjs +1 -1
  54. package/bundled/definition3.js +1 -1
  55. package/bundled/definition6.cjs +6 -6
  56. package/bundled/definition6.js +34 -31
  57. package/bundled/definition7.cjs +1 -1
  58. package/bundled/definition7.js +6 -6
  59. package/bundled/definition8.cjs +2 -2
  60. package/bundled/definition8.js +4 -4
  61. package/bundled/definition9.cjs +1 -1
  62. package/bundled/definition9.js +1 -1
  63. package/bundled/delegates-aria.cjs +1 -1
  64. package/bundled/delegates-aria.js +59 -46
  65. package/bundled/form-associated.cjs +1 -1
  66. package/bundled/form-associated.js +3 -3
  67. package/bundled/host-semantics.cjs +1 -1
  68. package/bundled/host-semantics.js +48 -34
  69. package/bundled/localized.cjs +1 -1
  70. package/bundled/localized.js +43 -31
  71. package/bundled/mixins.cjs +18 -18
  72. package/bundled/mixins.js +99 -93
  73. package/bundled/normalize.cjs +1 -0
  74. package/bundled/normalize.js +7 -0
  75. package/bundled/picker-field.template.cjs +18 -13
  76. package/bundled/picker-field.template.js +45 -37
  77. package/bundled/ref.cjs +1 -1
  78. package/bundled/ref.js +8 -25
  79. package/bundled/repeat.cjs +1 -1
  80. package/bundled/repeat.js +459 -233
  81. package/bundled/slider.template.cjs +1 -1
  82. package/bundled/slider.template.js +2 -2
  83. package/bundled/slotted.cjs +1 -1
  84. package/bundled/slotted.js +62 -45
  85. package/bundled/text-field.cjs +1 -1
  86. package/bundled/text-field.js +1 -1
  87. package/bundled/time-selection-picker.template.cjs +1 -1
  88. package/bundled/time-selection-picker.template.js +5 -5
  89. package/bundled/vivid-element.cjs +1 -1
  90. package/bundled/vivid-element.js +2126 -1172
  91. package/bundled/when.cjs +1 -1
  92. package/bundled/when.js +8 -7
  93. package/bundled/with-contextual-help.cjs +1 -1
  94. package/bundled/with-contextual-help.js +17 -7
  95. package/calendar/definition.cjs +1 -1
  96. package/calendar/definition.js +2 -2
  97. package/calendar/index.cjs +1 -1
  98. package/calendar/index.js +6 -6
  99. package/calendar-event/index.cjs +1 -1
  100. package/calendar-event/index.js +1 -1
  101. package/card/definition.cjs +10 -2
  102. package/card/definition.js +10 -2
  103. package/card/index.cjs +19 -11
  104. package/card/index.js +35 -27
  105. package/color-picker/definition.cjs +1079 -0
  106. package/color-picker/definition.js +1073 -0
  107. package/color-picker/index.cjs +127 -0
  108. package/color-picker/index.js +726 -0
  109. package/combobox/definition.cjs +13 -6
  110. package/combobox/definition.js +14 -7
  111. package/combobox/index.cjs +15 -11
  112. package/combobox/index.js +82 -75
  113. package/contextual-help/index.cjs +1 -1
  114. package/contextual-help/index.js +1 -1
  115. package/custom-elements.json +1621 -325
  116. package/data-grid/definition.cjs +862 -27
  117. package/data-grid/definition.js +863 -28
  118. package/data-grid/index.cjs +25 -25
  119. package/data-grid/index.js +175 -168
  120. package/date-picker/index.cjs +1 -1
  121. package/date-picker/index.js +2 -2
  122. package/date-range-picker/index.cjs +1 -1
  123. package/date-range-picker/index.js +2 -2
  124. package/date-time-picker/index.cjs +1 -1
  125. package/date-time-picker/index.js +2 -2
  126. package/dial-pad/definition.cjs +55 -1
  127. package/dial-pad/definition.js +56 -2
  128. package/dial-pad/index.cjs +21 -18
  129. package/dial-pad/index.js +138 -104
  130. package/dialog/definition.cjs +4 -1
  131. package/dialog/definition.js +4 -1
  132. package/dialog/index.cjs +21 -18
  133. package/dialog/index.js +43 -40
  134. package/empty-state/definition.cjs +7 -2
  135. package/empty-state/definition.js +7 -2
  136. package/empty-state/index.cjs +10 -5
  137. package/empty-state/index.js +18 -13
  138. package/fab/index.cjs +2 -2
  139. package/fab/index.js +4 -4
  140. package/file-picker/definition.cjs +16 -7
  141. package/file-picker/definition.js +17 -8
  142. package/file-picker/index.cjs +12 -9
  143. package/file-picker/index.js +103 -93
  144. package/icon/definition.cjs +10 -6
  145. package/icon/definition.js +10 -6
  146. package/index.cjs +4 -0
  147. package/index.js +1 -0
  148. package/lib/accordion-item/accordion-item.d.ts +2 -2
  149. package/lib/action-group/action-group.d.ts +2 -2
  150. package/lib/alert/alert.d.ts +4 -4
  151. package/lib/audio-player/audio-player.d.ts +6 -2
  152. package/lib/avatar/avatar.d.ts +2 -2
  153. package/lib/badge/badge.d.ts +2 -2
  154. package/lib/banner/banner.d.ts +6 -6
  155. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  156. package/lib/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  157. package/lib/button/button.d.ts +6 -6
  158. package/lib/button/button.template.d.ts +2 -1
  159. package/lib/calendar/calendar.d.ts +1 -1
  160. package/lib/calendar-event/calendar-event.d.ts +2 -2
  161. package/lib/card/card.d.ts +2 -2
  162. package/lib/checkbox/checkbox.d.ts +12 -12
  163. package/lib/color-picker/color-picker.d.ts +2420 -0
  164. package/lib/color-picker/color-picker.template.d.ts +3 -0
  165. package/lib/color-picker/definition.d.ts +4 -0
  166. package/lib/color-picker/locale.d.ts +9 -0
  167. package/lib/combobox/combobox.d.ts +495 -78
  168. package/lib/components.d.ts +1 -0
  169. package/lib/data-grid/data-grid-cell.d.ts +4 -4
  170. package/lib/data-grid/data-grid-row.d.ts +3 -4
  171. package/lib/data-grid/data-grid.d.ts +1 -2
  172. package/lib/date-picker/date-picker.d.ts +906 -894
  173. package/lib/date-range-picker/date-range-picker.d.ts +596 -590
  174. package/lib/date-time-picker/date-time-picker.d.ts +907 -895
  175. package/lib/dial-pad/dial-pad.d.ts +3 -2
  176. package/lib/dial-pad/dial-pad.template.d.ts +1 -1
  177. package/lib/dial-pad/locale.d.ts +1 -0
  178. package/lib/dialog/dialog.d.ts +4 -4
  179. package/lib/divider/divider.d.ts +2 -2
  180. package/lib/fab/fab.d.ts +2 -2
  181. package/lib/file-picker/file-picker.d.ts +495 -78
  182. package/lib/header/header.d.ts +2 -2
  183. package/lib/menu/menu.d.ts +5 -4
  184. package/lib/menu-item/menu-item.d.ts +4 -4
  185. package/lib/nav/nav.d.ts +2 -2
  186. package/lib/nav-disclosure/nav-disclosure.d.ts +4 -4
  187. package/lib/nav-item/nav-item.d.ts +4 -4
  188. package/lib/note/note.d.ts +2 -2
  189. package/lib/number-field/number-field.d.ts +19 -18
  190. package/lib/option/option.d.ts +4 -4
  191. package/lib/pagination/pagination.d.ts +2 -2
  192. package/lib/progress/progress.d.ts +2 -2
  193. package/lib/progress-ring/progress-ring.d.ts +2 -2
  194. package/lib/radio/radio.d.ts +6 -6
  195. package/lib/radio-group/radio-group.d.ts +2 -2
  196. package/lib/range-slider/range-slider.d.ts +6 -6
  197. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  198. package/lib/rich-text-editor/rich-text-editor.d.ts +2 -2
  199. package/lib/searchable-select/option-tag.d.ts +2 -2
  200. package/lib/searchable-select/searchable-select.d.ts +521 -104
  201. package/lib/select/select.d.ts +484 -67
  202. package/lib/selectable-box/selectable-box.d.ts +2 -2
  203. package/lib/simple-color-picker/locale.d.ts +0 -1
  204. package/lib/simple-color-picker/simple-color-picker.d.ts +47 -821
  205. package/lib/slider/slider.d.ts +6 -6
  206. package/lib/split-button/split-button.d.ts +6 -6
  207. package/lib/switch/switch.d.ts +4 -4
  208. package/lib/tab/tab.d.ts +6 -6
  209. package/lib/tab-panel/tab-panel.d.ts +2 -2
  210. package/lib/tag/tag.d.ts +6 -6
  211. package/lib/tag-group/tag-group.d.ts +2 -2
  212. package/lib/tag-name-map.d.ts +2 -1
  213. package/lib/text-area/text-area.d.ts +17 -16
  214. package/lib/text-field/text-field.d.ts +19 -18
  215. package/lib/time-picker/time-picker.d.ts +579 -573
  216. package/lib/toggletip/toggletip.d.ts +4 -4
  217. package/lib/tooltip/tooltip.d.ts +2 -2
  218. package/lib/tree-item/tree-item.d.ts +4 -4
  219. package/lib/tree-view/tree-view.d.ts +2 -2
  220. package/lib/video-player/video-player.d.ts +2 -2
  221. package/locales/de-DE.cjs +15 -3
  222. package/locales/de-DE.js +15 -3
  223. package/locales/en-GB.cjs +15 -3
  224. package/locales/en-GB.js +15 -3
  225. package/locales/en-US.cjs +15 -3
  226. package/locales/en-US.js +15 -3
  227. package/locales/ja-JP.cjs +15 -3
  228. package/locales/ja-JP.js +15 -3
  229. package/locales/zh-CN.cjs +15 -3
  230. package/locales/zh-CN.js +15 -3
  231. package/menu/definition.cjs +8 -4
  232. package/menu/definition.js +9 -5
  233. package/note/index.cjs +2 -2
  234. package/note/index.js +4 -4
  235. package/number-field/definition.cjs +3 -3
  236. package/number-field/definition.js +4 -4
  237. package/number-field/index.cjs +8 -8
  238. package/number-field/index.js +41 -40
  239. package/option/index.cjs +1 -1
  240. package/option/index.js +1 -1
  241. package/package.json +5 -5
  242. package/pagination/definition.cjs +2 -1
  243. package/pagination/definition.js +2 -1
  244. package/pagination/index.cjs +12 -12
  245. package/pagination/index.js +59 -59
  246. package/progress/index.cjs +1 -1
  247. package/progress/index.js +1 -1
  248. package/radio/definition.cjs +9 -9
  249. package/radio/definition.js +10 -10
  250. package/radio-group/definition.cjs +2 -1
  251. package/radio-group/definition.js +2 -1
  252. package/radio-group/index.cjs +5 -5
  253. package/radio-group/index.js +80 -77
  254. package/range-slider/index.cjs +1 -1
  255. package/range-slider/index.js +1 -1
  256. package/rich-text-editor/definition.cjs +1 -1
  257. package/rich-text-editor/definition.js +2 -2
  258. package/rich-text-editor/index.cjs +2 -2
  259. package/rich-text-editor/index.js +3 -3
  260. package/searchable-select/definition.cjs +30 -21
  261. package/searchable-select/definition.js +31 -22
  262. package/searchable-select/index.cjs +28 -25
  263. package/searchable-select/index.js +149 -140
  264. package/select/definition.cjs +15 -7
  265. package/select/definition.js +16 -8
  266. package/selectable-box/definition.cjs +1 -1
  267. package/selectable-box/definition.js +1 -1
  268. package/selectable-box/index.cjs +3 -3
  269. package/selectable-box/index.js +20 -20
  270. package/shared/aria/aria-change-subscription.d.ts +0 -1
  271. package/shared/aria/aria-mixin.d.ts +2 -2
  272. package/shared/aria/delegate-aria-behavior.d.ts +5 -10
  273. package/shared/aria/delegates-aria.d.ts +3 -3
  274. package/shared/aria/host-semantics-behavior.d.ts +5 -8
  275. package/shared/aria/host-semantics.d.ts +3 -3
  276. package/shared/color-picker/base-color-picker.d.ts +436 -0
  277. package/shared/color-picker/index.d.ts +1 -0
  278. package/shared/color-picker/locale.d.ts +3 -0
  279. package/shared/color-picker/utils.d.ts +1 -0
  280. package/shared/deprecation/replaced-props.d.ts +317 -2
  281. package/shared/design-system/defineVividComponent.d.ts +2 -2
  282. package/shared/feedback/feedback-message.d.ts +2 -2
  283. package/shared/feedback/mixins.d.ts +4 -4
  284. package/shared/foundation/button/button.d.ts +4 -4
  285. package/shared/foundation/form-associated/form-associated.d.ts +4 -4
  286. package/shared/foundation/vivid-element/vivid-element.d.ts +335 -8
  287. package/shared/localization/Locale.d.ts +4 -0
  288. package/shared/patterns/affix.d.ts +4 -4
  289. package/shared/patterns/anchored.d.ts +4 -4
  290. package/shared/patterns/char-count/char-count.d.ts +2 -2
  291. package/shared/patterns/form-elements/form-element.d.ts +4 -4
  292. package/shared/patterns/form-elements/index.d.ts +1 -0
  293. package/shared/patterns/form-elements/with-contextual-help.d.ts +7 -6
  294. package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
  295. package/shared/patterns/form-elements/with-success-text.d.ts +2 -2
  296. package/shared/patterns/linkable.d.ts +2 -2
  297. package/shared/patterns/localized.d.ts +2 -2
  298. package/shared/patterns/trapped-focus.d.ts +2 -2
  299. package/shared/picker-field/mixins/calendar-picker.d.ts +454 -451
  300. package/shared/picker-field/mixins/calendar-picker.template.d.ts +454 -451
  301. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +2 -2
  302. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +600 -594
  303. package/shared/picker-field/mixins/single-date-picker.d.ts +746 -737
  304. package/shared/picker-field/mixins/single-value-picker.d.ts +451 -448
  305. package/shared/picker-field/mixins/time-selection-picker.d.ts +580 -574
  306. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +579 -573
  307. package/shared/picker-field/picker-field.d.ts +495 -78
  308. package/shared/templating/attribute-binding-behaviour.d.ts +3 -4
  309. package/shared/templating/render-in-light-dom.d.ts +13 -12
  310. package/side-drawer/index.cjs +1 -1
  311. package/side-drawer/index.js +1 -1
  312. package/simple-color-picker/definition.cjs +28 -215
  313. package/simple-color-picker/definition.js +29 -216
  314. package/simple-color-picker/index.cjs +9 -21
  315. package/simple-color-picker/index.js +71 -185
  316. package/styles/core/all.css +1 -1
  317. package/styles/core/theme.css +1 -1
  318. package/styles/core/typography.css +1 -1
  319. package/styles/tokens/theme-dark.css +4 -4
  320. package/styles/tokens/theme-light.css +4 -4
  321. package/styles/tokens/vivid-2-compat.css +1 -1
  322. package/switch/index.cjs +2 -2
  323. package/switch/index.js +4 -4
  324. package/tabs/definition.cjs +1 -1
  325. package/tabs/definition.js +2 -2
  326. package/tabs/index.cjs +2 -2
  327. package/tabs/index.js +16 -16
  328. package/tag/index.cjs +1 -1
  329. package/tag/index.js +1 -1
  330. package/text-area/definition.cjs +1 -1
  331. package/text-area/definition.js +1 -1
  332. package/text-area/index.cjs +3 -3
  333. package/text-area/index.js +9 -9
  334. package/text-field/definition.cjs +3 -3
  335. package/text-field/definition.js +4 -4
  336. package/text-field/index.cjs +1 -1
  337. package/text-field/index.js +1 -1
  338. package/time-picker/index.cjs +1 -1
  339. package/time-picker/index.js +2 -2
  340. package/toggletip/definition.cjs +1 -1
  341. package/toggletip/definition.js +2 -2
  342. package/tree-view/definition.cjs +1 -1
  343. package/tree-view/definition.js +2 -2
  344. package/tree-view/index.cjs +2 -2
  345. package/tree-view/index.js +6 -6
  346. package/unbundled/_commonjsHelpers.cjs +36 -0
  347. package/unbundled/_commonjsHelpers.js +32 -0
  348. package/unbundled/affix.cjs +1 -1
  349. package/unbundled/affix.js +1 -1
  350. package/unbundled/attribute-binding-behaviour.cjs +11 -10
  351. package/unbundled/attribute-binding-behaviour.js +11 -10
  352. package/unbundled/base-color-picker.cjs +278 -0
  353. package/unbundled/base-color-picker.js +275 -0
  354. package/unbundled/button.cjs +1 -1
  355. package/unbundled/button.js +2 -2
  356. package/unbundled/calendar-picker.template.cjs +3 -3
  357. package/unbundled/calendar-picker.template.js +4 -4
  358. package/unbundled/definition2.cjs +1 -1
  359. package/unbundled/definition2.js +2 -2
  360. package/unbundled/definition3.cjs +2 -1
  361. package/unbundled/definition3.js +2 -1
  362. package/unbundled/delegates-aria.cjs +67 -33
  363. package/unbundled/delegates-aria.js +69 -35
  364. package/unbundled/form-associated.cjs +2 -2
  365. package/unbundled/form-associated.js +3 -3
  366. package/unbundled/host-semantics.cjs +47 -22
  367. package/unbundled/host-semantics.js +48 -23
  368. package/unbundled/mixins.cjs +34 -27
  369. package/unbundled/mixins.js +35 -28
  370. package/unbundled/picker-field.template.cjs +13 -5
  371. package/unbundled/picker-field.template.js +14 -6
  372. package/unbundled/text-field.cjs +1 -1
  373. package/unbundled/text-field.js +1 -1
  374. package/unbundled/time-selection-picker.template.cjs +4 -4
  375. package/unbundled/time-selection-picker.template.js +5 -5
  376. package/unbundled/vivid-element.cjs +22 -15
  377. package/unbundled/vivid-element.js +23 -15
  378. package/unbundled/with-contextual-help.cjs +11 -0
  379. package/unbundled/with-contextual-help.js +11 -0
  380. package/video-player/definition.cjs +69007 -1
  381. package/video-player/definition.js +69007 -1
  382. package/video-player/index.cjs +35 -35
  383. package/video-player/index.js +1358 -1384
  384. package/visually-hidden/index.cjs +1 -1
  385. package/visually-hidden/index.js +1 -1
  386. package/vivid.api.json +347 -69
@@ -5,10 +5,10 @@ declare const Toggletip_base: {
5
5
  readonly locale: import("../../shared/localization/Locale").Locale;
6
6
  connectedCallback(): void;
7
7
  _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
8
- readonly $fastController: import("@microsoft/fast-element").Controller;
8
+ readonly $fastController: import("@microsoft/fast-element").ElementController<HTMLElement>;
9
9
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
10
10
  disconnectedCallback(): void;
11
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
11
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
12
12
  accessKey: string;
13
13
  readonly accessKeyLabel: string;
14
14
  autocapitalize: string;
@@ -391,9 +391,9 @@ declare const Toggletip_base: {
391
391
  connectedCallback(): void;
392
392
  disconnectedCallback(): void;
393
393
  _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
394
- readonly $fastController: import("@microsoft/fast-element").Controller;
394
+ readonly $fastController: import("@microsoft/fast-element").ElementController<HTMLElement>;
395
395
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
396
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
396
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
397
397
  accessKey: string;
398
398
  readonly accessKeyLabel: string;
399
399
  autocapitalize: string;
@@ -14,9 +14,9 @@ declare const Tooltip_base: {
14
14
  connectedCallback(): void;
15
15
  disconnectedCallback(): void;
16
16
  _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
17
- readonly $fastController: import("@microsoft/fast-element").Controller;
17
+ readonly $fastController: import("@microsoft/fast-element").ElementController<HTMLElement>;
18
18
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
19
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
19
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
20
20
  accessKey: string;
21
21
  readonly accessKeyLabel: string;
22
22
  autocapitalize: string;
@@ -4,10 +4,10 @@ declare const TreeItem_base: {
4
4
  new (...args: any[]): {
5
5
  _vividAriaBehaviour: "host";
6
6
  connectedCallback(): void;
7
- readonly $fastController: import("@microsoft/fast-element").Controller;
7
+ readonly $fastController: import("@microsoft/fast-element").ElementController<HTMLElement>;
8
8
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
9
9
  disconnectedCallback(): void;
10
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
10
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
11
11
  accessKey: string;
12
12
  readonly accessKeyLabel: string;
13
13
  autocapitalize: string;
@@ -382,10 +382,10 @@ declare const TreeItem_base: {
382
382
  iconSlottedContent?: HTMLElement[] | undefined;
383
383
  connectedCallback(): void;
384
384
  _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
385
- readonly $fastController: import("@microsoft/fast-element").Controller;
385
+ readonly $fastController: import("@microsoft/fast-element").ElementController<HTMLElement>;
386
386
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
387
387
  disconnectedCallback(): void;
388
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
388
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
389
389
  accessKey: string;
390
390
  readonly accessKeyLabel: string;
391
391
  autocapitalize: string;
@@ -5,10 +5,10 @@ declare const TreeView_base: {
5
5
  new (...args: any[]): {
6
6
  _vividAriaBehaviour: "host";
7
7
  connectedCallback(): void;
8
- readonly $fastController: import("@microsoft/fast-element").Controller;
8
+ readonly $fastController: import("@microsoft/fast-element").ElementController<HTMLElement>;
9
9
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
10
10
  disconnectedCallback(): void;
11
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
11
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
12
12
  accessKey: string;
13
13
  readonly accessKeyLabel: string;
14
14
  autocapitalize: string;
@@ -8,10 +8,10 @@ declare const VideoPlayer_base: {
8
8
  readonly locale: import("../../shared/localization/Locale").Locale;
9
9
  connectedCallback(): void;
10
10
  _vividAriaBehaviour: import("../../shared/aria/aria-mixin").VividAriaBehaviour;
11
- readonly $fastController: import("@microsoft/fast-element").Controller;
11
+ readonly $fastController: import("@microsoft/fast-element").ElementController<HTMLElement>;
12
12
  $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail"> | undefined): boolean | void;
13
13
  disconnectedCallback(): void;
14
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
14
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
15
15
  accessKey: string;
16
16
  readonly accessKeyLabel: string;
17
17
  autocapitalize: string;
package/locales/de-DE.cjs CHANGED
@@ -369,7 +369,8 @@ const deDE = {
369
369
  digitNineLabel: "9 WXYZ",
370
370
  digitAsteriskLabel: "*",
371
371
  digitZeroLabel: "0",
372
- digitHashtagLabel: "#"
372
+ digitHashtagLabel: "#",
373
+ errorLabel: "Fehler:"
373
374
  },
374
375
  tab: {
375
376
  dismissButtonLabel: "Drücken Sie die ENTF-Taste, um diese Registerkarte zu schließen"
@@ -462,8 +463,7 @@ const deDE = {
462
463
  (ariaLabel) => ariaLabel ? `Weitere Informationen zu ${ariaLabel} anzeigen` : `Weitere Informationen anzeigen`
463
464
  )
464
465
  },
465
- simpleColorPicker: {
466
- colorPaletteLabel: "Farbpalette",
466
+ baseColorPicker: {
467
467
  colorSwatchLabel: (
468
468
  /* istanbul ignore next */
469
469
  (value, label, selected) => {
@@ -472,6 +472,18 @@ const deDE = {
472
472
  return swatchLabel;
473
473
  }
474
474
  )
475
+ },
476
+ simpleColorPicker: {
477
+ colorPaletteLabel: "Farbpalette"
478
+ },
479
+ colorPicker: {
480
+ popupLabel: "Farbwähler",
481
+ swatchesLabel: "Gespeicherte Farben:",
482
+ pickerButtonLabel: "Farbwähler öffnen",
483
+ saveButtonLabel: "Aktuelle Farbe speichern",
484
+ closeButtonLabel: "Farbwähler schließen",
485
+ copyButtonLabel: "Farbe in die Zwischenablage kopieren",
486
+ copyErrorText: "Kopieren fehlgeschlagen. Zugriff auf die Zwischenablage wurde blockiert. Versuchen Sie es erneut."
475
487
  }
476
488
  };
477
489
 
package/locales/de-DE.js CHANGED
@@ -367,7 +367,8 @@ const deDE = {
367
367
  digitNineLabel: "9 WXYZ",
368
368
  digitAsteriskLabel: "*",
369
369
  digitZeroLabel: "0",
370
- digitHashtagLabel: "#"
370
+ digitHashtagLabel: "#",
371
+ errorLabel: "Fehler:"
371
372
  },
372
373
  tab: {
373
374
  dismissButtonLabel: "Drücken Sie die ENTF-Taste, um diese Registerkarte zu schließen"
@@ -460,8 +461,7 @@ const deDE = {
460
461
  (ariaLabel) => ariaLabel ? `Weitere Informationen zu ${ariaLabel} anzeigen` : `Weitere Informationen anzeigen`
461
462
  )
462
463
  },
463
- simpleColorPicker: {
464
- colorPaletteLabel: "Farbpalette",
464
+ baseColorPicker: {
465
465
  colorSwatchLabel: (
466
466
  /* istanbul ignore next */
467
467
  (value, label, selected) => {
@@ -470,6 +470,18 @@ const deDE = {
470
470
  return swatchLabel;
471
471
  }
472
472
  )
473
+ },
474
+ simpleColorPicker: {
475
+ colorPaletteLabel: "Farbpalette"
476
+ },
477
+ colorPicker: {
478
+ popupLabel: "Farbwähler",
479
+ swatchesLabel: "Gespeicherte Farben:",
480
+ pickerButtonLabel: "Farbwähler öffnen",
481
+ saveButtonLabel: "Aktuelle Farbe speichern",
482
+ closeButtonLabel: "Farbwähler schließen",
483
+ copyButtonLabel: "Farbe in die Zwischenablage kopieren",
484
+ copyErrorText: "Kopieren fehlgeschlagen. Zugriff auf die Zwischenablage wurde blockiert. Versuchen Sie es erneut."
473
485
  }
474
486
  };
475
487
 
package/locales/en-GB.cjs CHANGED
@@ -201,7 +201,8 @@ const enGB = {
201
201
  digitNineLabel: "9 WXYZ",
202
202
  digitAsteriskLabel: "*",
203
203
  digitZeroLabel: "0",
204
- digitHashtagLabel: "#"
204
+ digitHashtagLabel: "#",
205
+ errorLabel: "Error:"
205
206
  },
206
207
  tab: {
207
208
  dismissButtonLabel: "Press the DELETE key to close this tab"
@@ -294,8 +295,7 @@ const enGB = {
294
295
  (ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
295
296
  )
296
297
  },
297
- simpleColorPicker: {
298
- colorPaletteLabel: "Color palette",
298
+ baseColorPicker: {
299
299
  colorSwatchLabel: (
300
300
  /* istanbul ignore next */
301
301
  (value, label, selected) => {
@@ -304,6 +304,18 @@ const enGB = {
304
304
  return swatchLabel;
305
305
  }
306
306
  )
307
+ },
308
+ simpleColorPicker: {
309
+ colorPaletteLabel: "Colour palette"
310
+ },
311
+ colorPicker: {
312
+ popupLabel: "Colour Picker",
313
+ swatchesLabel: "Saved colours:",
314
+ pickerButtonLabel: "Open Colour Picker",
315
+ saveButtonLabel: "Save current colour",
316
+ closeButtonLabel: "Close Colour Picker",
317
+ copyButtonLabel: "Copy Colour to Clipboard",
318
+ copyErrorText: "Copy failed. Clipboard access was blocked. Try again."
307
319
  }
308
320
  };
309
321
 
package/locales/en-GB.js CHANGED
@@ -199,7 +199,8 @@ const enGB = {
199
199
  digitNineLabel: "9 WXYZ",
200
200
  digitAsteriskLabel: "*",
201
201
  digitZeroLabel: "0",
202
- digitHashtagLabel: "#"
202
+ digitHashtagLabel: "#",
203
+ errorLabel: "Error:"
203
204
  },
204
205
  tab: {
205
206
  dismissButtonLabel: "Press the DELETE key to close this tab"
@@ -292,8 +293,7 @@ const enGB = {
292
293
  (ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
293
294
  )
294
295
  },
295
- simpleColorPicker: {
296
- colorPaletteLabel: "Color palette",
296
+ baseColorPicker: {
297
297
  colorSwatchLabel: (
298
298
  /* istanbul ignore next */
299
299
  (value, label, selected) => {
@@ -302,6 +302,18 @@ const enGB = {
302
302
  return swatchLabel;
303
303
  }
304
304
  )
305
+ },
306
+ simpleColorPicker: {
307
+ colorPaletteLabel: "Colour palette"
308
+ },
309
+ colorPicker: {
310
+ popupLabel: "Colour Picker",
311
+ swatchesLabel: "Saved colours:",
312
+ pickerButtonLabel: "Open Colour Picker",
313
+ saveButtonLabel: "Save current colour",
314
+ closeButtonLabel: "Close Colour Picker",
315
+ copyButtonLabel: "Copy Colour to Clipboard",
316
+ copyErrorText: "Copy failed. Clipboard access was blocked. Try again."
305
317
  }
306
318
  };
307
319
 
package/locales/en-US.cjs CHANGED
@@ -369,7 +369,8 @@ const enUS = {
369
369
  digitNineLabel: "9 WXYZ",
370
370
  digitAsteriskLabel: "*",
371
371
  digitZeroLabel: "0",
372
- digitHashtagLabel: "#"
372
+ digitHashtagLabel: "#",
373
+ errorLabel: "Error:"
373
374
  },
374
375
  tab: {
375
376
  dismissButtonLabel: "Press the DELETE key to close this tab"
@@ -462,8 +463,7 @@ const enUS = {
462
463
  (ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
463
464
  )
464
465
  },
465
- simpleColorPicker: {
466
- colorPaletteLabel: "Color palette",
466
+ baseColorPicker: {
467
467
  colorSwatchLabel: (
468
468
  /* istanbul ignore next */
469
469
  (value, label, selected) => {
@@ -472,6 +472,18 @@ const enUS = {
472
472
  return swatchLabel;
473
473
  }
474
474
  )
475
+ },
476
+ simpleColorPicker: {
477
+ colorPaletteLabel: "Color palette"
478
+ },
479
+ colorPicker: {
480
+ popupLabel: "Color Picker",
481
+ swatchesLabel: "Saved colors:",
482
+ pickerButtonLabel: "Open Color Picker",
483
+ saveButtonLabel: "Save current color",
484
+ closeButtonLabel: "Close Color Picker",
485
+ copyButtonLabel: "Copy Color to Clipboard",
486
+ copyErrorText: "Copy failed. Clipboard access was blocked. Try again."
475
487
  }
476
488
  };
477
489
 
package/locales/en-US.js CHANGED
@@ -367,7 +367,8 @@ const enUS = {
367
367
  digitNineLabel: "9 WXYZ",
368
368
  digitAsteriskLabel: "*",
369
369
  digitZeroLabel: "0",
370
- digitHashtagLabel: "#"
370
+ digitHashtagLabel: "#",
371
+ errorLabel: "Error:"
371
372
  },
372
373
  tab: {
373
374
  dismissButtonLabel: "Press the DELETE key to close this tab"
@@ -460,8 +461,7 @@ const enUS = {
460
461
  (ariaLabel) => ariaLabel ? `Show more information about ${ariaLabel}` : `Show more information`
461
462
  )
462
463
  },
463
- simpleColorPicker: {
464
- colorPaletteLabel: "Color palette",
464
+ baseColorPicker: {
465
465
  colorSwatchLabel: (
466
466
  /* istanbul ignore next */
467
467
  (value, label, selected) => {
@@ -470,6 +470,18 @@ const enUS = {
470
470
  return swatchLabel;
471
471
  }
472
472
  )
473
+ },
474
+ simpleColorPicker: {
475
+ colorPaletteLabel: "Color palette"
476
+ },
477
+ colorPicker: {
478
+ popupLabel: "Color Picker",
479
+ swatchesLabel: "Saved colors:",
480
+ pickerButtonLabel: "Open Color Picker",
481
+ saveButtonLabel: "Save current color",
482
+ closeButtonLabel: "Close Color Picker",
483
+ copyButtonLabel: "Copy Color to Clipboard",
484
+ copyErrorText: "Copy failed. Clipboard access was blocked. Try again."
473
485
  }
474
486
  };
475
487
 
package/locales/ja-JP.cjs CHANGED
@@ -368,7 +368,8 @@ const jaJP = {
368
368
  digitNineLabel: "9 WXYZ",
369
369
  digitAsteriskLabel: "*",
370
370
  digitZeroLabel: "0",
371
- digitHashtagLabel: "#"
371
+ digitHashtagLabel: "#",
372
+ errorLabel: "エラー:"
372
373
  },
373
374
  tab: {
374
375
  dismissButtonLabel: "このタブを閉じるにはDELETEキーを押してください"
@@ -461,8 +462,7 @@ const jaJP = {
461
462
  (ariaLabel) => ariaLabel ? `さらに情報を表示 ${ariaLabel}` : `さらに情報を表示`
462
463
  )
463
464
  },
464
- simpleColorPicker: {
465
- colorPaletteLabel: "カラーパレット",
465
+ baseColorPicker: {
466
466
  colorSwatchLabel: (
467
467
  /* istanbul ignore next */
468
468
  (value, label, selected) => {
@@ -471,6 +471,18 @@ const jaJP = {
471
471
  return swatchLabel;
472
472
  }
473
473
  )
474
+ },
475
+ simpleColorPicker: {
476
+ colorPaletteLabel: "カラーパレット"
477
+ },
478
+ colorPicker: {
479
+ popupLabel: "カラーピッカー",
480
+ swatchesLabel: "保存された色:",
481
+ pickerButtonLabel: "カラーピッカーを開く",
482
+ saveButtonLabel: "現在の色を保存",
483
+ closeButtonLabel: "カラーピッカーを閉じる",
484
+ copyButtonLabel: "色をクリップボードにコピー",
485
+ copyErrorText: "コピーに失敗しました。クリップボードへのアクセスがブロックされました。もう一度お試しください。"
474
486
  }
475
487
  };
476
488
 
package/locales/ja-JP.js CHANGED
@@ -366,7 +366,8 @@ const jaJP = {
366
366
  digitNineLabel: "9 WXYZ",
367
367
  digitAsteriskLabel: "*",
368
368
  digitZeroLabel: "0",
369
- digitHashtagLabel: "#"
369
+ digitHashtagLabel: "#",
370
+ errorLabel: "エラー:"
370
371
  },
371
372
  tab: {
372
373
  dismissButtonLabel: "このタブを閉じるにはDELETEキーを押してください"
@@ -459,8 +460,7 @@ const jaJP = {
459
460
  (ariaLabel) => ariaLabel ? `さらに情報を表示 ${ariaLabel}` : `さらに情報を表示`
460
461
  )
461
462
  },
462
- simpleColorPicker: {
463
- colorPaletteLabel: "カラーパレット",
463
+ baseColorPicker: {
464
464
  colorSwatchLabel: (
465
465
  /* istanbul ignore next */
466
466
  (value, label, selected) => {
@@ -469,6 +469,18 @@ const jaJP = {
469
469
  return swatchLabel;
470
470
  }
471
471
  )
472
+ },
473
+ simpleColorPicker: {
474
+ colorPaletteLabel: "カラーパレット"
475
+ },
476
+ colorPicker: {
477
+ popupLabel: "カラーピッカー",
478
+ swatchesLabel: "保存された色:",
479
+ pickerButtonLabel: "カラーピッカーを開く",
480
+ saveButtonLabel: "現在の色を保存",
481
+ closeButtonLabel: "カラーピッカーを閉じる",
482
+ copyButtonLabel: "色をクリップボードにコピー",
483
+ copyErrorText: "コピーに失敗しました。クリップボードへのアクセスがブロックされました。もう一度お試しください。"
472
484
  }
473
485
  };
474
486
 
package/locales/zh-CN.cjs CHANGED
@@ -370,7 +370,8 @@ const zhCN = {
370
370
  digitNineLabel: "9 WXYZ",
371
371
  digitAsteriskLabel: "*",
372
372
  digitZeroLabel: "0",
373
- digitHashtagLabel: "#"
373
+ digitHashtagLabel: "#",
374
+ errorLabel: "错误:"
374
375
  },
375
376
  tab: {
376
377
  dismissButtonLabel: "按 DELETE 键关闭此选项卡"
@@ -463,8 +464,7 @@ const zhCN = {
463
464
  (ariaLabel) => ariaLabel ? `关于 ${ariaLabel} 的更多信息` : `显示更多信息`
464
465
  )
465
466
  },
466
- simpleColorPicker: {
467
- colorPaletteLabel: "调色板",
467
+ baseColorPicker: {
468
468
  colorSwatchLabel: (
469
469
  /* istanbul ignore next */
470
470
  (value, label, selected) => {
@@ -473,6 +473,18 @@ const zhCN = {
473
473
  return swatchLabel;
474
474
  }
475
475
  )
476
+ },
477
+ simpleColorPicker: {
478
+ colorPaletteLabel: "调色板"
479
+ },
480
+ colorPicker: {
481
+ popupLabel: "颜色选择器",
482
+ swatchesLabel: "已保存的颜色",
483
+ pickerButtonLabel: "打开颜色选择器",
484
+ saveButtonLabel: "保存当前颜色",
485
+ closeButtonLabel: "关闭颜色选择器",
486
+ copyButtonLabel: "将颜色复制到剪贴板",
487
+ copyErrorText: "复制失败。剪贴板访问已被阻止。请重试。"
476
488
  }
477
489
  };
478
490
 
package/locales/zh-CN.js CHANGED
@@ -368,7 +368,8 @@ const zhCN = {
368
368
  digitNineLabel: "9 WXYZ",
369
369
  digitAsteriskLabel: "*",
370
370
  digitZeroLabel: "0",
371
- digitHashtagLabel: "#"
371
+ digitHashtagLabel: "#",
372
+ errorLabel: "错误:"
372
373
  },
373
374
  tab: {
374
375
  dismissButtonLabel: "按 DELETE 键关闭此选项卡"
@@ -461,8 +462,7 @@ const zhCN = {
461
462
  (ariaLabel) => ariaLabel ? `关于 ${ariaLabel} 的更多信息` : `显示更多信息`
462
463
  )
463
464
  },
464
- simpleColorPicker: {
465
- colorPaletteLabel: "调色板",
465
+ baseColorPicker: {
466
466
  colorSwatchLabel: (
467
467
  /* istanbul ignore next */
468
468
  (value, label, selected) => {
@@ -471,6 +471,18 @@ const zhCN = {
471
471
  return swatchLabel;
472
472
  }
473
473
  )
474
+ },
475
+ simpleColorPicker: {
476
+ colorPaletteLabel: "调色板"
477
+ },
478
+ colorPicker: {
479
+ popupLabel: "颜色选择器",
480
+ swatchesLabel: "已保存的颜色",
481
+ pickerButtonLabel: "打开颜色选择器",
482
+ saveButtonLabel: "保存当前颜色",
483
+ closeButtonLabel: "关闭颜色选择器",
484
+ copyButtonLabel: "将颜色复制到剪贴板",
485
+ copyErrorText: "复制失败。剪贴板访问已被阻止。请重试。"
474
486
  }
475
487
  };
476
488
 
@@ -12,7 +12,7 @@ const delegatesAria = require('../unbundled/delegates-aria.cjs');
12
12
  const divider = require('../unbundled/divider.cjs');
13
13
  const index = require('../unbundled/index.cjs');
14
14
 
15
- const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.base{display:flex;overflow:hidden auto;box-sizing:border-box;flex-direction:column;padding:4px;gap:8px;inline-size:max-content;max-block-size:var(--menu-block-size, 408px);min-inline-size:var(--menu-min-inline-size)}@media not all and (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size, 300px)}}@media (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size)}}::slotted(a){color:var(--vvd-color-canvas-text);text-decoration:none}::slotted(a[data-vvd-component=menuitem]:focus-visible){box-shadow:0 0 0 4px color-mix(in srgb,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;display:block}.header{padding-block-start:4px;padding-inline:8px}.hide-header .header{display:none}.body{display:flex;flex-direction:column;row-gap:1px}.hide-body .body{display:none}.action-items{display:flex;justify-content:flex-end;gap:8px;padding-block-end:4px;padding-inline:12px}.hide-actions .action-items{display:none}";
15
+ const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.base{display:flex;overflow:hidden auto;box-sizing:border-box;flex-direction:column;padding:4px;gap:8px;inline-size:max-content;max-block-size:var(--menu-block-size, 408px);min-inline-size:var(--menu-min-inline-size)}@media not all and (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size, 300px)}}@media (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size)}}::slotted(a){color:var(--vvd-color-canvas-text);text-decoration:none}::slotted(a[data-vvd-component=menuitem]:focus-visible){box-shadow:0 0 0 4px color-mix(in srgb,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;display:block}.header{padding:4px}.hide-header .header{display:none}.body{display:flex;flex-direction:column;row-gap:1px}.hide-body .body{display:none}.action-items{display:flex;justify-content:flex-end;gap:8px;padding-block-end:4px;padding-inline:12px}.hide-actions .action-items{display:none}";
16
16
 
17
17
  var __defProp = Object.defineProperty;
18
18
  var __decorateClass = (decorators, target, key, kind) => {
@@ -30,6 +30,7 @@ const isMenuItemElement = (el) => el instanceof menuItem_definition.MenuItem ? t
30
30
  class Menu extends anchored.Anchored(delegatesAria.DelegatesAria(vividElement.VividElement)) {
31
31
  constructor() {
32
32
  super(...arguments);
33
+ this.offset = null;
33
34
  this.expandedItem = null;
34
35
  /**
35
36
  * The index of the focusable element in the items array
@@ -104,7 +105,7 @@ class Menu extends anchored.Anchored(delegatesAria.DelegatesAria(vividElement.Vi
104
105
  return;
105
106
  }
106
107
  const newValue = !this.open;
107
- fastElement.DOM.queueUpdate(() => this.open = newValue);
108
+ fastElement.Updates.enqueue(() => this.open = newValue);
108
109
  };
109
110
  this._onFocusout = (e) => {
110
111
  const focusTarget = e.relatedTarget;
@@ -127,7 +128,7 @@ class Menu extends anchored.Anchored(delegatesAria.DelegatesAria(vividElement.Vi
127
128
  */
128
129
  connectedCallback() {
129
130
  super.connectedCallback();
130
- fastElement.DOM.queueUpdate(() => {
131
+ fastElement.Updates.enqueue(() => {
131
132
  this.setItems();
132
133
  });
133
134
  }
@@ -285,6 +286,9 @@ class Menu extends anchored.Anchored(delegatesAria.DelegatesAria(vividElement.Vi
285
286
  return true;
286
287
  }
287
288
  }
289
+ __decorateClass([
290
+ fastElement.attr({ attribute: "offset", converter: fastElement.nullableNumberConverter })
291
+ ], Menu.prototype, "offset");
288
292
  __decorateClass([
289
293
  fastElement.observable
290
294
  ], Menu.prototype, "items");
@@ -346,7 +350,7 @@ const MenuTemplate = (context) => {
346
350
  :open=${(x) => x.open}
347
351
  :anchor=${(x) => x._anchorEl}
348
352
  :strategy="${(x) => x.positionStrategy}"
349
- :offset=${(x) => x._popupOffset}
353
+ :offset=${(x) => x.offset || x._popupOffset}
350
354
  @keydown="${(x, c) => handleEscapeKey(x, c.event)}"
351
355
  @vwc-popup:open="${(x, c) => handlePopupEvents(x, c.event, true)}"
352
356
  @vwc-popup:close="${(x, c) => handlePopupEvents(x, c.event, false)}"
@@ -1,14 +1,14 @@
1
1
  import { P as Popup, p as popupDefinition } from '../unbundled/definition4.js';
2
2
  import { M as MenuItem, a as MenuItemRole, m as menuItemDefinition, b as menuName } from '../unbundled/definition2.js';
3
3
  import { V as VividElement, d as defineVividComponent, c as createRegisterFunction } from '../unbundled/vivid-element.js';
4
- import { DOM, observable, attr, ref, slotted, html } from '@microsoft/fast-element';
4
+ import { Updates, attr, nullableNumberConverter, observable, ref, slotted, html } from '@microsoft/fast-element';
5
5
  import { keyHome, keyEnd, keyArrowUp, keyArrowDown, classNames } from '@microsoft/fast-web-utilities';
6
6
  import { A as Anchored, a as anchorSlotTemplateFactory } from '../unbundled/anchored.js';
7
7
  import { D as DelegatesAria, d as delegateAria } from '../unbundled/delegates-aria.js';
8
8
  import { D as Divider } from '../unbundled/divider.js';
9
9
  import { h as handleEscapeKeyAndStopPropogation } from '../unbundled/index.js';
10
10
 
11
- const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.base{display:flex;overflow:hidden auto;box-sizing:border-box;flex-direction:column;padding:4px;gap:8px;inline-size:max-content;max-block-size:var(--menu-block-size, 408px);min-inline-size:var(--menu-min-inline-size)}@media not all and (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size, 300px)}}@media (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size)}}::slotted(a){color:var(--vvd-color-canvas-text);text-decoration:none}::slotted(a[data-vvd-component=menuitem]:focus-visible){box-shadow:0 0 0 4px color-mix(in srgb,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;display:block}.header{padding-block-start:4px;padding-inline:8px}.hide-header .header{display:none}.body{display:flex;flex-direction:column;row-gap:1px}.hide-body .body{display:none}.action-items{display:flex;justify-content:flex-end;gap:8px;padding-block-end:4px;padding-inline:12px}.hide-actions .action-items{display:none}";
11
+ const styles = ":host{display:var(--_popup-display, inline)}:host([slotted-anchor]){--_popup-display: contents}.base{display:flex;overflow:hidden auto;box-sizing:border-box;flex-direction:column;padding:4px;gap:8px;inline-size:max-content;max-block-size:var(--menu-block-size, 408px);min-inline-size:var(--menu-min-inline-size)}@media not all and (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size, 300px)}}@media (width >= 600px){.base{max-inline-size:var(--menu-max-inline-size)}}::slotted(a){color:var(--vvd-color-canvas-text);text-decoration:none}::slotted(a[data-vvd-component=menuitem]:focus-visible){box-shadow:0 0 0 4px color-mix(in srgb,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;display:block}.header{padding:4px}.hide-header .header{display:none}.body{display:flex;flex-direction:column;row-gap:1px}.hide-body .body{display:none}.action-items{display:flex;justify-content:flex-end;gap:8px;padding-block-end:4px;padding-inline:12px}.hide-actions .action-items{display:none}";
12
12
 
13
13
  var __defProp = Object.defineProperty;
14
14
  var __decorateClass = (decorators, target, key, kind) => {
@@ -26,6 +26,7 @@ const isMenuItemElement = (el) => el instanceof MenuItem ? true : Boolean(el.rol
26
26
  class Menu extends Anchored(DelegatesAria(VividElement)) {
27
27
  constructor() {
28
28
  super(...arguments);
29
+ this.offset = null;
29
30
  this.expandedItem = null;
30
31
  /**
31
32
  * The index of the focusable element in the items array
@@ -100,7 +101,7 @@ class Menu extends Anchored(DelegatesAria(VividElement)) {
100
101
  return;
101
102
  }
102
103
  const newValue = !this.open;
103
- DOM.queueUpdate(() => this.open = newValue);
104
+ Updates.enqueue(() => this.open = newValue);
104
105
  };
105
106
  this._onFocusout = (e) => {
106
107
  const focusTarget = e.relatedTarget;
@@ -123,7 +124,7 @@ class Menu extends Anchored(DelegatesAria(VividElement)) {
123
124
  */
124
125
  connectedCallback() {
125
126
  super.connectedCallback();
126
- DOM.queueUpdate(() => {
127
+ Updates.enqueue(() => {
127
128
  this.setItems();
128
129
  });
129
130
  }
@@ -281,6 +282,9 @@ class Menu extends Anchored(DelegatesAria(VividElement)) {
281
282
  return true;
282
283
  }
283
284
  }
285
+ __decorateClass([
286
+ attr({ attribute: "offset", converter: nullableNumberConverter })
287
+ ], Menu.prototype, "offset");
284
288
  __decorateClass([
285
289
  observable
286
290
  ], Menu.prototype, "items");
@@ -342,7 +346,7 @@ const MenuTemplate = (context) => {
342
346
  :open=${(x) => x.open}
343
347
  :anchor=${(x) => x._anchorEl}
344
348
  :strategy="${(x) => x.positionStrategy}"
345
- :offset=${(x) => x._popupOffset}
349
+ :offset=${(x) => x.offset || x._popupOffset}
346
350
  @keydown="${(x, c) => handleEscapeKey(x, c.event)}"
347
351
  @vwc-popup:open="${(x, c) => handlePopupEvents(x, c.event, true)}"
348
352
  @vwc-popup:close="${(x, c) => handlePopupEvents(x, c.event, false)}"
package/note/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";const s=require("../bundled/definition2.cjs"),n=require("../bundled/vivid-element.cjs"),i=require("../bundled/affix.cjs"),d=require("../bundled/class-names.cjs"),f=require("../bundled/when.cjs"),m=".base.connotation-success{--_connotation-color-intermediate: var(--vvd-note-success-intermediate, var(--vvd-color-success-500));--_connotation-color-faint: var(--vvd-note-success-faint, var(--vvd-color-success-50));--_connotation-color-fierce: var(--vvd-note-success-fierce, var(--vvd-color-success-700))}.base.connotation-information{--_connotation-color-intermediate: var(--vvd-note-information-intermediate, var(--vvd-color-information-500));--_connotation-color-faint: var(--vvd-note-information-faint, var(--vvd-color-information-50));--_connotation-color-fierce: var(--vvd-note-information-fierce, var(--vvd-color-information-700))}.base.connotation-alert{--_connotation-color-intermediate: var(--vvd-note-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-faint: var(--vvd-note-alert-faint, var(--vvd-color-alert-50));--_connotation-color-fierce: var(--vvd-note-alert-fierce, var(--vvd-color-alert-700))}.base.connotation-warning{--_connotation-color-intermediate: var(--vvd-note-warning-intermediate, var(--vvd-color-warning-300));--_connotation-color-faint: var(--vvd-note-warning-faint, var(--vvd-color-warning-50));--_connotation-color-fierce: var(--vvd-note-warning-fierce, var(--vvd-color-warning-700))}.base.connotation-announcement{--_connotation-color-intermediate: var(--vvd-note-announcement-intermediate, var(--vvd-color-announcement-500));--_connotation-color-faint: var(--vvd-note-announcement-faint, var(--vvd-color-announcement-50));--_connotation-color-fierce: var(--vvd-note-announcement-fierce, var(--vvd-color-announcement-700))}.base:not(.connotation-success,.connotation-information,.connotation-alert,.connotation-warning,.connotation-announcement){--_connotation-color-intermediate: var(--vvd-note-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-note-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-fierce: var(--vvd-note-accent-fierce, var(--vvd-color-neutral-700))}.base{--_appearance-color-text: var(--_connotation-color-fierce);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base{display:flex;align-items:flex-start;padding:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));border-radius:8px;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--vvd-color-canvas-text);column-gap:16px}@supports (contain: content){.base{contain:content}}@supports not (contain: content){.base{overflow:hidden}}slot[name=icon]{color:var(--_appearance-color-outline);font-size:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.text{display:flex;min-height:24px;flex-direction:column;flex-grow:1;align-items:flex-start;justify-content:center;gap:4px;text-align:start}.text .headline{font:var(--vvd-typography-base-bold)}.text .message{font:var(--vvd-typography-base)}";var p=Object.defineProperty,l=(o,a,t,h)=>{for(var e=void 0,r=o.length-1,v;r>=0;r--)(v=o[r])&&(e=v(a,t,e)||e);return e&&p(a,t,e),e};class c extends i.AffixIcon(n.VividElement){}l([n.attr],c.prototype,"headline");l([n.attr],c.prototype,"connotation");const u=({connotation:o})=>d.classNames("base",`connotation-${o}`);function _(){return n.html`<div class="headline">${o=>o.headline}</div>`}const x=o=>{const a=i.affixIconTemplateFactory(o);return n.html`
1
+ "use strict";const s=require("../bundled/definition2.cjs"),n=require("../bundled/vivid-element.cjs"),i=require("../bundled/affix.cjs"),d=require("../bundled/when.cjs"),f=require("../bundled/class-names.cjs"),m=".base.connotation-success{--_connotation-color-intermediate: var(--vvd-note-success-intermediate, var(--vvd-color-success-500));--_connotation-color-faint: var(--vvd-note-success-faint, var(--vvd-color-success-50));--_connotation-color-fierce: var(--vvd-note-success-fierce, var(--vvd-color-success-700))}.base.connotation-information{--_connotation-color-intermediate: var(--vvd-note-information-intermediate, var(--vvd-color-information-500));--_connotation-color-faint: var(--vvd-note-information-faint, var(--vvd-color-information-50));--_connotation-color-fierce: var(--vvd-note-information-fierce, var(--vvd-color-information-700))}.base.connotation-alert{--_connotation-color-intermediate: var(--vvd-note-alert-intermediate, var(--vvd-color-alert-500));--_connotation-color-faint: var(--vvd-note-alert-faint, var(--vvd-color-alert-50));--_connotation-color-fierce: var(--vvd-note-alert-fierce, var(--vvd-color-alert-700))}.base.connotation-warning{--_connotation-color-intermediate: var(--vvd-note-warning-intermediate, var(--vvd-color-warning-300));--_connotation-color-faint: var(--vvd-note-warning-faint, var(--vvd-color-warning-50));--_connotation-color-fierce: var(--vvd-note-warning-fierce, var(--vvd-color-warning-700))}.base.connotation-announcement{--_connotation-color-intermediate: var(--vvd-note-announcement-intermediate, var(--vvd-color-announcement-500));--_connotation-color-faint: var(--vvd-note-announcement-faint, var(--vvd-color-announcement-50));--_connotation-color-fierce: var(--vvd-note-announcement-fierce, var(--vvd-color-announcement-700))}.base:not(.connotation-success,.connotation-information,.connotation-alert,.connotation-warning,.connotation-announcement){--_connotation-color-intermediate: var(--vvd-note-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-note-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-fierce: var(--vvd-note-accent-fierce, var(--vvd-color-neutral-700))}.base{--_appearance-color-text: var(--_connotation-color-fierce);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base{display:flex;align-items:flex-start;padding:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));border-radius:8px;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--vvd-color-canvas-text);column-gap:16px}@supports (contain: content){.base{contain:content}}@supports not (contain: content){.base{overflow:hidden}}slot[name=icon]{color:var(--_appearance-color-outline);font-size:calc(1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.text{display:flex;min-height:24px;flex-direction:column;flex-grow:1;align-items:flex-start;justify-content:center;gap:4px;text-align:start}.text .headline{font:var(--vvd-typography-base-bold)}.text .message{font:var(--vvd-typography-base)}";var p=Object.defineProperty,l=(o,a,t,h)=>{for(var e=void 0,r=o.length-1,v;r>=0;r--)(v=o[r])&&(e=v(a,t,e)||e);return e&&p(a,t,e),e};class c extends i.AffixIcon(n.VividElement){}l([n.attr],c.prototype,"headline");l([n.attr],c.prototype,"connotation");const u=({connotation:o})=>f.classNames("base",`connotation-${o}`);function _(){return n.html`<div class="headline">${o=>o.headline}</div>`}const x=o=>{const a=i.affixIconTemplateFactory(o);return n.html`
2
2
  <div class="${u}">
3
3
  ${t=>a(t.icon,i.IconWrapper.Slot)}
4
4
  <div class="text">
5
- ${f.when(t=>t.headline,_())}
5
+ ${d.when(t=>t.headline,_())}
6
6
  <slot class="message"></slot>
7
7
  </div>
8
8
  </div>