@vonage/vivid 5.19.0 → 5.20.1

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 (648) hide show
  1. package/accordion/definition.cjs +1 -1
  2. package/accordion/definition.js +1 -1
  3. package/accordion/index.cjs +2 -2
  4. package/accordion/index.js +2 -2
  5. package/accordion-item/definition.cjs +1 -1
  6. package/accordion-item/definition.js +1 -1
  7. package/action-group/definition.cjs +1 -1
  8. package/action-group/definition.js +1 -1
  9. package/action-group/index.cjs +2 -2
  10. package/action-group/index.js +2 -2
  11. package/alert/index.cjs +5 -5
  12. package/alert/index.js +8 -8
  13. package/audio-player/index.cjs +10 -10
  14. package/audio-player/index.js +28 -28
  15. package/avatar/index.cjs +7 -7
  16. package/avatar/index.js +14 -14
  17. package/banner/index.cjs +5 -5
  18. package/banner/index.js +9 -9
  19. package/breadcrumb/index.cjs +2 -2
  20. package/breadcrumb/index.js +3 -3
  21. package/breadcrumb-item/index.cjs +5 -5
  22. package/breadcrumb-item/index.js +1 -1
  23. package/bundled/affix.cjs +2 -2
  24. package/bundled/affix.js +11 -11
  25. package/bundled/anchored.cjs +1 -1
  26. package/bundled/anchored.js +6 -6
  27. package/bundled/aria-binding-directive.cjs +1 -1
  28. package/bundled/aria-binding-directive.js +88 -16
  29. package/bundled/base-color-picker.cjs +3 -3
  30. package/bundled/base-color-picker.js +5 -5
  31. package/bundled/base-progress.cjs +1 -1
  32. package/bundled/base-progress.js +3 -3
  33. package/bundled/breadcrumb-item.cjs +1 -1
  34. package/bundled/breadcrumb-item.js +3 -3
  35. package/bundled/button.cjs +1 -1
  36. package/bundled/button.js +3 -3
  37. package/bundled/calendar-event.cjs +1 -1
  38. package/bundled/calendar-event.js +4 -4
  39. package/bundled/calendar-picker.template.cjs +23 -24
  40. package/bundled/calendar-picker.template.js +35 -36
  41. package/bundled/char-count.cjs +2 -2
  42. package/bundled/char-count.js +8 -8
  43. package/bundled/children.cjs +1 -1
  44. package/bundled/children.js +11 -13
  45. package/bundled/definition.cjs +1 -1
  46. package/bundled/definition.js +2 -2
  47. package/bundled/definition10.cjs +3 -3
  48. package/bundled/definition10.js +5 -5
  49. package/bundled/definition11.cjs +2 -2
  50. package/bundled/definition11.js +7 -7
  51. package/bundled/definition12.cjs +15 -16
  52. package/bundled/definition12.js +22 -22
  53. package/bundled/definition13.cjs +3 -3
  54. package/bundled/definition13.js +5 -5
  55. package/bundled/definition14.cjs +2 -2
  56. package/bundled/definition14.js +2 -2
  57. package/bundled/definition15.cjs +7 -8
  58. package/bundled/definition15.js +14 -14
  59. package/bundled/definition16.cjs +3 -3
  60. package/bundled/definition16.js +8 -8
  61. package/bundled/definition17.cjs +7 -7
  62. package/bundled/definition17.js +13 -13
  63. package/bundled/definition18.cjs +18 -18
  64. package/bundled/definition18.js +36 -36
  65. package/bundled/definition19.cjs +2 -2
  66. package/bundled/definition19.js +1 -1
  67. package/bundled/definition2.cjs +10 -9
  68. package/bundled/definition2.js +24 -24
  69. package/bundled/definition20.cjs +19 -14
  70. package/bundled/definition20.js +51 -39
  71. package/bundled/definition21.cjs +6 -6
  72. package/bundled/definition21.js +18 -18
  73. package/bundled/definition22.cjs +3 -3
  74. package/bundled/definition22.js +7 -7
  75. package/bundled/definition23.cjs +4 -4
  76. package/bundled/definition23.js +8 -8
  77. package/bundled/definition24.cjs +8 -8
  78. package/bundled/definition24.js +17 -17
  79. package/bundled/definition3.cjs +1 -1
  80. package/bundled/definition3.js +5 -5
  81. package/bundled/definition4.cjs +9 -9
  82. package/bundled/definition4.js +16 -16
  83. package/bundled/definition5.cjs +4 -4
  84. package/bundled/definition5.js +5 -5
  85. package/bundled/definition6.cjs +6 -6
  86. package/bundled/definition6.js +21 -21
  87. package/bundled/definition7.cjs +2 -2
  88. package/bundled/definition7.js +4 -4
  89. package/bundled/definition8.cjs +4 -4
  90. package/bundled/definition8.js +7 -7
  91. package/bundled/definition9.cjs +10 -6
  92. package/bundled/definition9.js +48 -34
  93. package/bundled/delegates-aria.cjs +1 -1
  94. package/bundled/delegates-aria.js +20 -9
  95. package/bundled/divider.cjs +1 -1
  96. package/bundled/divider.js +3 -3
  97. package/bundled/form-associated.cjs +1 -1
  98. package/bundled/form-associated.js +6 -6
  99. package/bundled/form-element.cjs +1 -1
  100. package/bundled/form-element.js +1 -1
  101. package/bundled/host-semantics.cjs +1 -1
  102. package/bundled/host-semantics.js +2 -1
  103. package/bundled/kbd-shortcut.cjs +1 -0
  104. package/bundled/kbd-shortcut.js +14 -0
  105. package/bundled/linkable.cjs +2 -2
  106. package/bundled/linkable.js +5 -5
  107. package/bundled/listbox.cjs +1 -1
  108. package/bundled/listbox.js +4 -4
  109. package/bundled/localized.cjs +1 -1
  110. package/bundled/localized.js +3 -2
  111. package/bundled/mixins.cjs +16 -16
  112. package/bundled/mixins.js +39 -105
  113. package/bundled/picker-field.template.cjs +6 -6
  114. package/bundled/picker-field.template.js +15 -15
  115. package/bundled/platform.cjs +1 -0
  116. package/bundled/platform.js +9 -0
  117. package/bundled/ref.cjs +1 -1
  118. package/bundled/ref.js +2 -2
  119. package/bundled/render-in-light-dom.cjs +1 -0
  120. package/bundled/render-in-light-dom.js +57 -0
  121. package/bundled/repeat.cjs +1 -1
  122. package/bundled/repeat.js +117 -107
  123. package/bundled/slider.template.cjs +3 -3
  124. package/bundled/slider.template.js +1 -1
  125. package/bundled/slotted.cjs +1 -1
  126. package/bundled/slotted.js +2 -2
  127. package/bundled/time-selection-picker.template.cjs +4 -4
  128. package/bundled/time-selection-picker.template.js +18 -18
  129. package/bundled/vivid-element.cjs +3 -3
  130. package/bundled/vivid-element.js +626 -550
  131. package/bundled/when.cjs +1 -1
  132. package/bundled/when.js +2 -2
  133. package/bundled/with-contextual-help.cjs +1 -1
  134. package/bundled/with-contextual-help.js +1 -1
  135. package/bundled/with-error-text.cjs +1 -1
  136. package/bundled/with-error-text.js +1 -1
  137. package/bundled/with-success-text.cjs +1 -1
  138. package/bundled/with-success-text.js +1 -1
  139. package/calendar/index.cjs +8 -8
  140. package/calendar/index.js +9 -9
  141. package/calendar-event/index.cjs +4 -4
  142. package/calendar-event/index.js +1 -1
  143. package/card/index.cjs +24 -25
  144. package/card/index.js +29 -30
  145. package/color-picker/index.cjs +26 -26
  146. package/color-picker/index.js +90 -90
  147. package/combobox/index.cjs +13 -13
  148. package/combobox/index.js +22 -22
  149. package/country-group/index.cjs +4 -4
  150. package/country-group/index.js +3 -3
  151. package/custom-elements.json +849 -12
  152. package/data-grid/index.cjs +34 -34
  153. package/data-grid/index.js +37 -38
  154. package/date-picker/definition.cjs +1 -1
  155. package/date-picker/definition.js +1 -1
  156. package/date-picker/index.cjs +1 -1
  157. package/date-picker/index.js +2 -2
  158. package/date-range-picker/definition.cjs +1 -1
  159. package/date-range-picker/definition.js +1 -1
  160. package/date-range-picker/index.cjs +1 -1
  161. package/date-range-picker/index.js +4 -4
  162. package/date-time-picker/definition.cjs +1 -1
  163. package/date-time-picker/definition.js +1 -1
  164. package/date-time-picker/index.cjs +2 -2
  165. package/date-time-picker/index.js +6 -6
  166. package/dial-pad/definition.cjs +1 -1
  167. package/dial-pad/definition.js +1 -1
  168. package/dial-pad/index.cjs +8 -8
  169. package/dial-pad/index.js +15 -15
  170. package/dialog/definition.cjs +1 -1
  171. package/dialog/definition.js +1 -1
  172. package/dialog/index.cjs +16 -17
  173. package/dialog/index.js +29 -27
  174. package/divider/definition.cjs +1 -1
  175. package/divider/definition.js +1 -1
  176. package/empty-state/definition.cjs +1 -1
  177. package/empty-state/definition.js +1 -1
  178. package/empty-state/index.cjs +5 -5
  179. package/empty-state/index.js +9 -9
  180. package/fab/definition.cjs +1 -1
  181. package/fab/definition.js +1 -1
  182. package/fab/index.cjs +2 -2
  183. package/fab/index.js +6 -6
  184. package/file-picker/definition.cjs +1 -1
  185. package/file-picker/definition.js +1 -1
  186. package/file-picker/index.cjs +9 -10
  187. package/file-picker/index.js +21 -22
  188. package/flag/index.cjs +3 -3
  189. package/flag/index.js +7 -7
  190. package/header/definition.cjs +1 -1
  191. package/header/definition.js +1 -1
  192. package/header/index.cjs +2 -2
  193. package/header/index.js +8 -8
  194. package/icon/definition.cjs +1 -1
  195. package/icon/definition.js +1 -1
  196. package/index.cjs +184 -172
  197. package/index.js +52 -49
  198. package/kbd-key/definition.cjs +5 -0
  199. package/kbd-key/definition.js +2 -0
  200. package/kbd-key/index.cjs +5 -0
  201. package/kbd-key/index.js +65 -0
  202. package/kbd-shortcut/definition.cjs +5 -0
  203. package/kbd-shortcut/definition.js +2 -0
  204. package/kbd-shortcut/index.cjs +3 -0
  205. package/kbd-shortcut/index.js +27 -0
  206. package/layout/definition.cjs +1 -1
  207. package/layout/definition.js +1 -1
  208. package/layout/index.cjs +2 -2
  209. package/layout/index.js +2 -2
  210. package/lib/accordion-item/accordion-item.d.ts +18 -1
  211. package/lib/action-group/action-group.d.ts +18 -1
  212. package/lib/alert/alert.d.ts +36 -2
  213. package/lib/audio-player/audio-player.d.ts +18 -1
  214. package/lib/avatar/avatar.d.ts +18 -1
  215. package/lib/badge/badge.d.ts +18 -1
  216. package/lib/banner/banner.d.ts +54 -3
  217. package/lib/breadcrumb/breadcrumb.d.ts +18 -1
  218. package/lib/breadcrumb-item/breadcrumb-item.d.ts +18 -1
  219. package/lib/button/button.d.ts +54 -3
  220. package/lib/calendar-event/calendar-event.d.ts +18 -1
  221. package/lib/card/card.d.ts +18 -1
  222. package/lib/checkbox/checkbox.d.ts +107 -5
  223. package/lib/color-picker/color-picker.d.ts +126 -7
  224. package/lib/combobox/combobox.d.ts +124 -5
  225. package/lib/components.d.ts +4 -1
  226. package/lib/country-group/country-group.d.ts +36 -2
  227. package/lib/data-grid/data-grid-cell.d.ts +36 -2
  228. package/lib/data-grid/data-grid-row.d.ts +18 -1
  229. package/lib/date-picker/date-picker.d.ts +140 -4
  230. package/lib/date-range-picker/date-range-picker.d.ts +70 -2
  231. package/lib/date-time-picker/date-time-picker.d.ts +140 -4
  232. package/lib/dial-pad/dial-pad.d.ts +18 -1
  233. package/lib/dialog/dialog.d.ts +36 -2
  234. package/lib/divider/divider.d.ts +18 -1
  235. package/lib/fab/fab.d.ts +18 -1
  236. package/lib/file-picker/file-picker.d.ts +124 -5
  237. package/lib/header/header.d.ts +18 -1
  238. package/lib/icon/icon.template.d.ts +1 -2
  239. package/lib/kbd-key/definition.d.ts +4 -0
  240. package/lib/kbd-key/index.d.ts +1 -0
  241. package/lib/kbd-key/kbd-key.d.ts +18 -0
  242. package/lib/kbd-key/kbd-key.template.d.ts +4 -0
  243. package/lib/kbd-shortcut/definition.d.ts +3 -0
  244. package/lib/kbd-shortcut/index.d.ts +1 -0
  245. package/lib/kbd-shortcut/kbd-shortcut.d.ts +4 -0
  246. package/lib/kbd-shortcut/kbd-shortcut.template.d.ts +4 -0
  247. package/lib/menu/menu.d.ts +35 -1
  248. package/lib/menu-item/menu-item.d.ts +463 -2
  249. package/lib/nav/nav.d.ts +18 -1
  250. package/lib/nav-disclosure/nav-disclosure.d.ts +36 -2
  251. package/lib/nav-item/nav-item.d.ts +36 -2
  252. package/lib/note/note.d.ts +18 -1
  253. package/lib/number-field/number-field.d.ts +160 -7
  254. package/lib/option/option.d.ts +36 -2
  255. package/lib/pagination/pagination.d.ts +18 -1
  256. package/lib/platform-switch/definition.d.ts +3 -0
  257. package/lib/platform-switch/index.d.ts +1 -0
  258. package/lib/platform-switch/platform-switch.d.ts +4 -0
  259. package/lib/platform-switch/platform-switch.template.d.ts +4 -0
  260. package/lib/popover/popover.d.ts +36 -2
  261. package/lib/progress/progress.d.ts +18 -1
  262. package/lib/progress-ring/progress-ring.d.ts +18 -1
  263. package/lib/radio/radio.d.ts +53 -2
  264. package/lib/radio-group/radio-group.d.ts +18 -1
  265. package/lib/range-slider/range-slider.d.ts +52 -1
  266. package/lib/rich-text-editor/locale.d.ts +1 -0
  267. package/lib/rich-text-editor/popover.d.ts +1 -0
  268. package/lib/rich-text-editor/rich-text-editor.d.ts +17 -0
  269. package/lib/rich-text-editor/rte/utils/ui.d.ts +3 -0
  270. package/lib/searchable-select/option-tag.d.ts +18 -1
  271. package/lib/searchable-select/searchable-select.d.ts +160 -7
  272. package/lib/select/select.d.ts +160 -7
  273. package/lib/selectable-box/selectable-box.d.ts +18 -1
  274. package/lib/simple-color-picker/simple-color-picker.d.ts +35 -1
  275. package/lib/slider/slider.d.ts +53 -2
  276. package/lib/split-button/split-button.d.ts +54 -3
  277. package/lib/status/status.d.ts +18 -1
  278. package/lib/switch/switch.d.ts +36 -2
  279. package/lib/tab/tab.d.ts +54 -3
  280. package/lib/tab-panel/tab-panel.d.ts +18 -1
  281. package/lib/table/table-cell.d.ts +18 -1
  282. package/lib/table/table-header-cell.d.ts +18 -1
  283. package/lib/table/table-row.d.ts +18 -1
  284. package/lib/table/table-sorting-button.d.ts +18 -1
  285. package/lib/tag/tag.d.ts +54 -3
  286. package/lib/tag-group/tag-group.d.ts +18 -1
  287. package/lib/tag-name-map.d.ts +4 -1
  288. package/lib/text-area/text-area.d.ts +142 -6
  289. package/lib/text-field/text-field.d.ts +160 -7
  290. package/lib/time-picker/time-picker.d.ts +70 -2
  291. package/lib/toggletip/toggletip.d.ts +35 -1
  292. package/lib/tooltip/tooltip.d.ts +444 -0
  293. package/lib/tree-item/tree-item.d.ts +36 -2
  294. package/lib/tree-view/tree-view.d.ts +18 -1
  295. package/lib/video-player/video-player.d.ts +18 -1
  296. package/locales/de-DE.cjs +1 -0
  297. package/locales/de-DE.js +1 -0
  298. package/locales/en-GB.cjs +1 -0
  299. package/locales/en-GB.js +1 -0
  300. package/locales/en-US.cjs +1 -0
  301. package/locales/en-US.js +1 -0
  302. package/locales/ja-JP.cjs +1 -0
  303. package/locales/ja-JP.js +1 -0
  304. package/locales/zh-CN.cjs +1 -0
  305. package/locales/zh-CN.js +1 -0
  306. package/nav/definition.cjs +1 -1
  307. package/nav/definition.js +1 -1
  308. package/nav/index.cjs +2 -2
  309. package/nav/index.js +2 -2
  310. package/nav-disclosure/definition.cjs +1 -1
  311. package/nav-disclosure/definition.js +1 -1
  312. package/nav-disclosure/index.cjs +3 -4
  313. package/nav-disclosure/index.js +11 -11
  314. package/nav-item/definition.cjs +1 -1
  315. package/nav-item/definition.js +1 -1
  316. package/nav-item/index.cjs +2 -2
  317. package/nav-item/index.js +6 -6
  318. package/note/definition.cjs +1 -1
  319. package/note/definition.js +1 -1
  320. package/note/index.cjs +2 -2
  321. package/note/index.js +7 -7
  322. package/number-field/definition.cjs +1 -1
  323. package/number-field/definition.js +1 -1
  324. package/number-field/index.cjs +8 -9
  325. package/number-field/index.js +16 -17
  326. package/package.json +6 -6
  327. package/pagination/definition.cjs +1 -1
  328. package/pagination/definition.js +1 -1
  329. package/pagination/index.cjs +9 -9
  330. package/pagination/index.js +16 -16
  331. package/platform-switch/definition.cjs +5 -0
  332. package/platform-switch/definition.js +2 -0
  333. package/platform-switch/index.cjs +1 -0
  334. package/platform-switch/index.js +28 -0
  335. package/popover/definition.cjs +1 -1
  336. package/popover/definition.js +1 -1
  337. package/popover/index.cjs +6 -6
  338. package/popover/index.js +12 -12
  339. package/progress/definition.cjs +1 -1
  340. package/progress/definition.js +1 -1
  341. package/progress/index.cjs +4 -4
  342. package/progress/index.js +5 -5
  343. package/progress-ring/definition.cjs +1 -1
  344. package/progress-ring/definition.js +1 -1
  345. package/radio/definition.cjs +1 -1
  346. package/radio/definition.js +1 -1
  347. package/radio-group/definition.cjs +1 -1
  348. package/radio-group/definition.js +1 -1
  349. package/radio-group/index.cjs +5 -8
  350. package/radio-group/index.js +16 -16
  351. package/range-slider/definition.cjs +1 -1
  352. package/range-slider/definition.js +1 -1
  353. package/range-slider/index.cjs +5 -5
  354. package/range-slider/index.js +9 -9
  355. package/rich-text-editor/definition.cjs +1 -1
  356. package/rich-text-editor/definition.js +1 -1
  357. package/rich-text-editor/index.cjs +8 -6
  358. package/rich-text-editor/index.js +136 -94
  359. package/rich-text-view/definition.cjs +1 -1
  360. package/rich-text-view/definition.js +1 -1
  361. package/rich-text-view/index.cjs +1 -1
  362. package/rich-text-view/index.js +3 -3
  363. package/searchable-select/definition.cjs +1 -1
  364. package/searchable-select/definition.js +1 -1
  365. package/searchable-select/index.cjs +38 -40
  366. package/searchable-select/index.js +64 -64
  367. package/select/definition.cjs +1 -1
  368. package/select/definition.js +1 -1
  369. package/selectable-box/definition.cjs +1 -1
  370. package/selectable-box/definition.js +1 -1
  371. package/selectable-box/index.cjs +4 -4
  372. package/selectable-box/index.js +13 -13
  373. package/shared/aria/aria-binding-directive.d.ts +4 -4
  374. package/shared/aria/aria-mixin.d.ts +21 -3
  375. package/shared/aria/delegates-aria.d.ts +18 -1
  376. package/shared/aria/host-semantics.d.ts +18 -1
  377. package/shared/aria/idrefs-controller.d.ts +17 -0
  378. package/shared/color-picker/base-color-picker.d.ts +18 -1
  379. package/shared/feedback/feedback-message.d.ts +18 -1
  380. package/shared/feedback/mixins.d.ts +36 -2
  381. package/shared/foundation/button/button.d.ts +35 -1
  382. package/shared/foundation/form-associated/form-associated.d.ts +35 -1
  383. package/shared/foundation/vivid-element/vivid-element.d.ts +375 -0
  384. package/shared/framework/reactive-controller.d.ts +373 -0
  385. package/shared/patterns/affix.d.ts +36 -2
  386. package/shared/patterns/anchored.d.ts +34 -0
  387. package/shared/patterns/char-count/char-count.d.ts +18 -1
  388. package/shared/patterns/form-elements/form-element.d.ts +17 -0
  389. package/shared/patterns/form-elements/with-contextual-help.d.ts +18 -1
  390. package/shared/patterns/form-elements/with-error-text.d.ts +18 -1
  391. package/shared/patterns/form-elements/with-success-text.d.ts +18 -1
  392. package/shared/patterns/index.d.ts +1 -0
  393. package/shared/patterns/kbd-shortcut.d.ts +431 -0
  394. package/shared/patterns/linkable.d.ts +18 -1
  395. package/shared/patterns/localized.d.ts +35 -1
  396. package/shared/patterns/trapped-focus.d.ts +18 -1
  397. package/shared/picker-field/mixins/calendar-picker.d.ts +35 -1
  398. package/shared/picker-field/mixins/calendar-picker.template.d.ts +35 -1
  399. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +18 -1
  400. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +35 -1
  401. package/shared/picker-field/mixins/single-date-picker.d.ts +35 -1
  402. package/shared/picker-field/mixins/single-value-picker.d.ts +35 -1
  403. package/shared/picker-field/mixins/time-selection-picker.d.ts +35 -1
  404. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +70 -2
  405. package/shared/picker-field/picker-field.d.ts +124 -5
  406. package/shared/templating/render-in-light-dom.d.ts +7 -20
  407. package/shared/utils/platform.d.ts +1 -0
  408. package/side-drawer/definition.cjs +1 -1
  409. package/side-drawer/definition.js +1 -1
  410. package/side-drawer/index.cjs +3 -3
  411. package/side-drawer/index.js +3 -3
  412. package/simple-color-picker/definition.cjs +1 -1
  413. package/simple-color-picker/definition.js +1 -1
  414. package/simple-color-picker/index.cjs +2 -2
  415. package/simple-color-picker/index.js +6 -6
  416. package/split-button/definition.cjs +1 -1
  417. package/split-button/definition.js +1 -1
  418. package/split-button/index.cjs +5 -6
  419. package/split-button/index.js +8 -8
  420. package/status/definition.cjs +1 -1
  421. package/status/definition.js +1 -1
  422. package/status/index.cjs +4 -4
  423. package/status/index.js +9 -9
  424. package/styles/core/all.css +24 -2
  425. package/styles/core/typography.css +24 -2
  426. package/styles/fonts/spezia-variable.css +6 -0
  427. package/styles/tokens/theme-dark.css +2 -0
  428. package/styles/tokens/theme-light.css +2 -0
  429. package/switch/definition.cjs +1 -1
  430. package/switch/definition.js +1 -1
  431. package/switch/index.cjs +3 -3
  432. package/switch/index.js +4 -4
  433. package/tab/definition.cjs +1 -1
  434. package/tab/definition.js +1 -1
  435. package/tab-panel/definition.cjs +1 -1
  436. package/tab-panel/definition.js +1 -1
  437. package/table/definition.cjs +1 -1
  438. package/table/definition.js +1 -1
  439. package/table/index.cjs +9 -9
  440. package/table/index.js +19 -19
  441. package/tabs/definition.cjs +1 -1
  442. package/tabs/definition.js +1 -1
  443. package/tabs/index.cjs +8 -8
  444. package/tabs/index.js +14 -14
  445. package/tag/definition.cjs +1 -1
  446. package/tag/definition.js +1 -1
  447. package/tag/index.cjs +8 -8
  448. package/tag/index.js +11 -11
  449. package/tag-group/definition.cjs +1 -1
  450. package/tag-group/definition.js +1 -1
  451. package/tag-group/index.cjs +2 -2
  452. package/tag-group/index.js +2 -2
  453. package/text-area/definition.cjs +1 -1
  454. package/text-area/definition.js +1 -1
  455. package/text-area/index.cjs +8 -9
  456. package/text-area/index.js +25 -26
  457. package/time-picker/definition.cjs +1 -1
  458. package/time-picker/definition.js +1 -1
  459. package/time-picker/index.cjs +1 -1
  460. package/time-picker/index.js +1 -1
  461. package/tree-item/definition.cjs +1 -1
  462. package/tree-item/definition.js +1 -1
  463. package/tree-view/definition.cjs +1 -1
  464. package/tree-view/definition.js +1 -1
  465. package/tree-view/index.cjs +4 -4
  466. package/tree-view/index.js +7 -7
  467. package/unbundled/affix.cjs +1 -1
  468. package/unbundled/affix.js +1 -1
  469. package/unbundled/aria-binding-directive.cjs +112 -2
  470. package/unbundled/aria-binding-directive.js +108 -4
  471. package/unbundled/calendar-picker.template.cjs +8 -10
  472. package/unbundled/calendar-picker.template.js +8 -10
  473. package/unbundled/char-count.cjs +1 -1
  474. package/unbundled/char-count.js +1 -1
  475. package/unbundled/definition.cjs +91 -17
  476. package/unbundled/definition.js +88 -14
  477. package/unbundled/definition10.js +1 -1
  478. package/unbundled/definition11.js +1 -1
  479. package/unbundled/definition12.cjs +15 -2
  480. package/unbundled/definition12.js +17 -4
  481. package/unbundled/definition13.js +1 -1
  482. package/unbundled/definition14.js +1 -1
  483. package/unbundled/definition15.cjs +1 -1
  484. package/unbundled/definition15.js +2 -2
  485. package/unbundled/definition16.cjs +1 -1
  486. package/unbundled/definition16.js +2 -2
  487. package/unbundled/definition17.cjs +1 -1
  488. package/unbundled/definition17.js +2 -2
  489. package/unbundled/definition18.cjs +1 -1
  490. package/unbundled/definition18.js +2 -2
  491. package/unbundled/definition19.js +1 -1
  492. package/unbundled/definition2.cjs +96 -77
  493. package/unbundled/definition2.js +94 -75
  494. package/unbundled/definition20.js +1 -1
  495. package/unbundled/definition21.js +1 -1
  496. package/unbundled/definition22.cjs +2 -3
  497. package/unbundled/definition22.js +3 -4
  498. package/unbundled/definition23.cjs +3 -3
  499. package/unbundled/definition23.js +5 -5
  500. package/unbundled/definition24.js +1 -1
  501. package/unbundled/definition25.cjs +1 -1
  502. package/unbundled/definition25.js +2 -2
  503. package/unbundled/definition26.cjs +8 -8
  504. package/unbundled/definition26.js +6 -6
  505. package/unbundled/definition27.cjs +26 -12
  506. package/unbundled/definition27.js +28 -14
  507. package/unbundled/definition28.cjs +1 -1
  508. package/unbundled/definition28.js +3 -3
  509. package/unbundled/definition29.cjs +1 -1
  510. package/unbundled/definition29.js +2 -2
  511. package/unbundled/definition3.cjs +154 -95
  512. package/unbundled/definition3.js +146 -93
  513. package/unbundled/definition30.cjs +1 -1
  514. package/unbundled/definition30.js +3 -3
  515. package/unbundled/definition31.cjs +1 -1
  516. package/unbundled/definition31.js +2 -2
  517. package/unbundled/definition32.js +1 -1
  518. package/unbundled/definition33.cjs +1 -1
  519. package/unbundled/definition33.js +2 -2
  520. package/unbundled/definition34.cjs +103 -65
  521. package/unbundled/definition34.js +102 -64
  522. package/unbundled/definition35.cjs +26 -326
  523. package/unbundled/definition35.js +24 -247
  524. package/unbundled/definition36.cjs +131 -25
  525. package/unbundled/definition36.js +124 -23
  526. package/unbundled/definition37.cjs +326 -51
  527. package/unbundled/definition37.js +324 -49
  528. package/unbundled/definition38.cjs +137 -317
  529. package/unbundled/definition38.js +135 -315
  530. package/unbundled/definition39.cjs +337 -173
  531. package/unbundled/definition39.js +334 -170
  532. package/unbundled/definition4.cjs +34 -159
  533. package/unbundled/definition4.js +25 -151
  534. package/unbundled/definition40.cjs +234 -339
  535. package/unbundled/definition40.js +230 -335
  536. package/unbundled/definition41.cjs +48 -271
  537. package/unbundled/definition41.js +44 -267
  538. package/unbundled/definition42.cjs +68 -49
  539. package/unbundled/definition42.js +65 -46
  540. package/unbundled/definition43.cjs +424 -56
  541. package/unbundled/definition43.js +422 -54
  542. package/unbundled/definition44.cjs +45 -428
  543. package/unbundled/definition44.js +42 -425
  544. package/unbundled/definition45.cjs +45 -54
  545. package/unbundled/definition45.js +42 -51
  546. package/unbundled/definition46.cjs +178 -30
  547. package/unbundled/definition46.js +175 -26
  548. package/unbundled/definition47.cjs +29 -94
  549. package/unbundled/definition47.js +25 -91
  550. package/unbundled/definition48.cjs +76 -36
  551. package/unbundled/definition48.js +73 -33
  552. package/unbundled/definition49.cjs +56 -23
  553. package/unbundled/definition49.js +54 -18
  554. package/unbundled/definition5.cjs +56 -38
  555. package/unbundled/definition5.js +52 -28
  556. package/unbundled/definition50.cjs +23 -40
  557. package/unbundled/definition50.js +18 -38
  558. package/unbundled/definition51.cjs +30 -338
  559. package/unbundled/definition51.js +30 -338
  560. package/unbundled/definition52.cjs +317 -187
  561. package/unbundled/definition52.js +314 -184
  562. package/unbundled/definition53.cjs +194 -289
  563. package/unbundled/definition53.js +189 -284
  564. package/unbundled/definition54.cjs +47 -54
  565. package/unbundled/definition54.js +44 -50
  566. package/unbundled/definition55.cjs +279 -133
  567. package/unbundled/definition55.js +277 -130
  568. package/unbundled/definition56.cjs +50 -262
  569. package/unbundled/definition56.js +48 -261
  570. package/unbundled/definition57.cjs +128 -460
  571. package/unbundled/definition57.js +126 -459
  572. package/unbundled/definition58.cjs +235 -3604
  573. package/unbundled/definition58.js +231 -3437
  574. package/unbundled/definition59.cjs +419 -729
  575. package/unbundled/definition59.js +417 -727
  576. package/unbundled/definition6.cjs +18 -64
  577. package/unbundled/definition6.js +15 -60
  578. package/unbundled/definition60.cjs +3699 -106
  579. package/unbundled/definition60.js +3531 -101
  580. package/unbundled/definition61.cjs +625 -878
  581. package/unbundled/definition61.js +619 -872
  582. package/unbundled/definition62.cjs +106 -108
  583. package/unbundled/definition62.js +103 -105
  584. package/unbundled/definition63.cjs +1045 -71
  585. package/unbundled/definition63.js +1041 -66
  586. package/unbundled/definition64.cjs +105 -173
  587. package/unbundled/definition64.js +102 -170
  588. package/unbundled/definition65.cjs +70 -113
  589. package/unbundled/definition65.js +66 -110
  590. package/unbundled/definition66.cjs +185 -54
  591. package/unbundled/definition66.js +182 -51
  592. package/unbundled/definition67.cjs +110 -77
  593. package/unbundled/definition67.js +111 -77
  594. package/unbundled/definition68.cjs +58 -21
  595. package/unbundled/definition68.js +56 -16
  596. package/unbundled/definition69.cjs +82 -75
  597. package/unbundled/definition69.js +81 -75
  598. package/unbundled/definition7.cjs +2 -2
  599. package/unbundled/definition7.js +3 -3
  600. package/unbundled/definition70.cjs +19 -349
  601. package/unbundled/definition70.js +15 -341
  602. package/unbundled/definition71.cjs +88 -26
  603. package/unbundled/definition71.js +86 -23
  604. package/unbundled/definition72.cjs +309 -119
  605. package/unbundled/definition72.js +234 -116
  606. package/unbundled/definition73.cjs +293 -229
  607. package/unbundled/definition73.js +287 -230
  608. package/unbundled/definition74.cjs +39 -30
  609. package/unbundled/definition74.js +29 -28
  610. package/unbundled/definition75.cjs +106 -121
  611. package/unbundled/definition75.js +104 -113
  612. package/unbundled/definition76.cjs +260 -179
  613. package/unbundled/definition76.js +258 -176
  614. package/unbundled/definition77.cjs +29 -514
  615. package/unbundled/definition77.js +27 -503
  616. package/unbundled/definition78.cjs +171 -0
  617. package/unbundled/definition78.js +147 -0
  618. package/unbundled/definition79.cjs +233 -0
  619. package/unbundled/definition79.js +214 -0
  620. package/unbundled/definition8.js +1 -1
  621. package/unbundled/definition80.cjs +533 -0
  622. package/unbundled/definition80.js +513 -0
  623. package/unbundled/definition9.cjs +1 -1
  624. package/unbundled/definition9.js +2 -2
  625. package/unbundled/delegates-aria.cjs +15 -1
  626. package/unbundled/delegates-aria.js +17 -3
  627. package/unbundled/host-semantics.cjs +2 -1
  628. package/unbundled/host-semantics.js +2 -1
  629. package/unbundled/kbd-shortcut.cjs +26 -0
  630. package/unbundled/kbd-shortcut.js +20 -0
  631. package/unbundled/mixins.cjs +7 -77
  632. package/unbundled/mixins.js +6 -64
  633. package/unbundled/platform.cjs +17 -0
  634. package/unbundled/platform.js +12 -0
  635. package/unbundled/randomId.cjs +47 -0
  636. package/unbundled/randomId.js +35 -0
  637. package/unbundled/time-selection-picker.template.js +1 -1
  638. package/unbundled/vivid-element.cjs +82 -9
  639. package/unbundled/vivid-element.js +63 -8
  640. package/video-player/definition.cjs +1 -1
  641. package/video-player/definition.js +1 -1
  642. package/video-player/index.cjs +3 -3
  643. package/video-player/index.js +5 -5
  644. package/visually-hidden/definition.cjs +1 -1
  645. package/visually-hidden/definition.js +1 -1
  646. package/vivid.api.json +604 -6
  647. package/bundled/normalize.cjs +0 -1
  648. package/bundled/normalize.js +0 -7
@@ -1,233 +1,314 @@
1
1
  require("./chunk.cjs");
2
2
  const require_vivid_element = require("./vivid-element.cjs");
3
3
  const require_decorate = require("./decorate.cjs");
4
- const require_host_semantics = require("./host-semantics.cjs");
5
- const require_definition = require("./definition75.cjs");
4
+ const require_delegates_aria = require("./delegates-aria.cjs");
5
+ const require_form_associated = require("./form-associated.cjs");
6
+ const require_form_element = require("./form-element.cjs");
7
+ const require_with_success_text = require("./with-success-text.cjs");
8
+ const require_with_error_text = require("./with-error-text.cjs");
9
+ const require_with_contextual_help = require("./with-contextual-help.cjs");
10
+ const require_definition = require("./definition6.cjs");
11
+ const require_char_count = require("./char-count.cjs");
12
+ const require_mixins = require("./mixins.cjs");
13
+ const require_definition$1 = require("./definition25.cjs");
6
14
  let _microsoft_fast_element = require("@microsoft/fast-element");
7
15
  let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
8
- //#region src/lib/tree-view/tree-view.scss?inline
9
- var tree_view_default = ".control{flex-direction:column;gap:4px;display:flex;position:relative}";
16
+ //#region src/lib/text-area/text-area.scss?inline
17
+ var text_area_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}:host{display:inline-block}.base{--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}.base.appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.base:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.base:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.base.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.base.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.base:disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.base:disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.base.disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.base.disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.base.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.base.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.base.error:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:var(--vvd-color-alert-500)}.base.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:transparent}.base.success:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:var(--vvd-color-success-500)}.base.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:transparent}.base.connotation-success{--_connotation-color-primary:var(--vvd-text-area-success-primary,var(--vvd-color-success-500));--_connotation-color-primary-text:var(--vvd-text-area-success-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-text-area-success-primary-increment,var(--vvd-color-success-600));--_connotation-color-intermediate:var(--vvd-text-area-success-intermediate,var(--vvd-color-success-500));--_connotation-color-firm:var(--vvd-text-area-success-firm,var(--vvd-color-success-600));--_connotation-color-fierce:var(--vvd-text-area-success-fierce,var(--vvd-color-success-700));--_connotation-color-faint:var(--vvd-text-area-success-faint,var(--vvd-color-success-50));--_connotation-color-soft:var(--vvd-text-area-success-soft,var(--vvd-color-success-100))}.base.connotation-alert{--_connotation-color-primary:var(--vvd-text-area-alert-primary,var(--vvd-color-alert-500));--_connotation-color-primary-text:var(--vvd-text-area-alert-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-text-area-alert-primary-increment,var(--vvd-color-alert-600));--_connotation-color-intermediate:var(--vvd-text-area-alert-intermediate,var(--vvd-color-alert-500));--_connotation-color-firm:var(--vvd-text-area-alert-firm,var(--vvd-color-alert-600));--_connotation-color-fierce:var(--vvd-text-area-alert-fierce,var(--vvd-color-alert-700));--_connotation-color-faint:var(--vvd-text-area-alert-faint,var(--vvd-color-alert-50));--_connotation-color-soft:var(--vvd-text-area-alert-soft,var(--vvd-color-alert-100))}.base:not(.connotation-success,.connotation-alert){--_connotation-color-primary:var(--vvd-text-area-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-text-area-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-text-area-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-intermediate:var(--vvd-text-area-accent-intermediate,var(--vvd-color-neutral-500));--_connotation-color-firm:var(--vvd-text-area-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-fierce:var(--vvd-text-area-accent-fierce,var(--vvd-color-neutral-700));--_connotation-color-faint:var(--vvd-text-area-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--vvd-text-area-accent-soft,var(--vvd-color-neutral-100))}.base{grid-template-columns:1fr max-content;row-gap:4px;inline-size:100%;display:inline-grid}@supports (user-select:none){.base{user-select:none}}.base:not(.disabled){--_low-ink-color:var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color:var(--_appearance-color-text);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);line-height:20px}.label-wrapper{grid-area:1/1/auto/2}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base);grid-column:2/-1}.control{--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in srgb, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin}.control ::-webkit-scrollbar{width:4px}.control ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.control ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.control{box-sizing:border-box;appearance:none;background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));resize:none;border:0;border-radius:8px;grid-column:1/-1;padding:8px 16px;transition:box-shadow .2s,background-color .2s,color .2s}@supports selector(::-webkit-resizer){.control::-webkit-resizer{background-image:linear-gradient(315deg, transparent 0, transparent 2px, var(--vvd-color-canvas-text) 2px, var(--vvd-color-canvas-text) 3px, transparent 3px, transparent 5px, var(--vvd-color-canvas-text) 5px, var(--vvd-color-canvas-text) 6px, transparent 6px, transparent 8px, transparent 100%);background-repeat:no-repeat;background-size:10px 10px;block-size:10px;inline-size:10px}}.control:disabled{opacity:1;pointer-events:none;-webkit-text-fill-color:var(--_appearance-color-text)}.control::placeholder,.control:disabled::placeholder{opacity:1;pointer-events:none;-webkit-text-fill-color:var(--_low-ink-color)}.control:focus-visible{--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}:host([resize=both]) .control{resize:both}:host([resize=horizontal]) .control{resize:horizontal}:host([resize=vertical]) .control{resize:vertical}";
10
18
  //#endregion
11
- //#region src/lib/tree-view/tree-view.ts
12
- function getDisplayedNodes(rootNode, selector) {
13
- if ((0, _microsoft_fast_web_utilities.isHTMLElement)(rootNode)) return Array.from(rootNode.querySelectorAll(selector)).filter((node) => {
14
- if (node.parentElement instanceof require_definition.TreeItem) {
15
- if (node.parentElement.expanded) return true;
16
- } else return true;
17
- return false;
18
- });
19
- return [];
20
- }
19
+ //#region src/shared/utils/Reflector.ts
20
+ /**
21
+ * Reflects observable properties of the source object to the target, either as attributes or as properties.
22
+ */
23
+ var Reflector = class {
24
+ #reflectedProperties = /* @__PURE__ */ new Map();
25
+ #source;
26
+ #target;
27
+ constructor(source, target) {
28
+ this.#source = source;
29
+ this.#target = target;
30
+ }
31
+ attribute(propertyName, attributeName) {
32
+ this.#addReflectedProperty(propertyName, {
33
+ type: "attribute",
34
+ destination: attributeName
35
+ });
36
+ }
37
+ booleanAttribute(propertyName, attributeName) {
38
+ this.#addReflectedProperty(propertyName, {
39
+ type: "boolean-attribute",
40
+ destination: attributeName
41
+ });
42
+ }
43
+ property(propertyName, targetProperty, skipIfEqual = false) {
44
+ this.#addReflectedProperty(propertyName, {
45
+ type: "property",
46
+ destination: targetProperty,
47
+ skipIfEqual
48
+ });
49
+ }
50
+ destroy() {
51
+ const notifier = _microsoft_fast_element.Observable.getNotifier(this.#source);
52
+ for (const prop of this.#reflectedProperties.keys()) notifier.unsubscribe(this.#propertyChangeHandler, prop);
53
+ this.#reflectedProperties.clear();
54
+ }
55
+ #addReflectedProperty(name, reflected) {
56
+ this.#reflectedProperties.set(name, reflected);
57
+ _microsoft_fast_element.Observable.getNotifier(this.#source).subscribe(this.#propertyChangeHandler, name);
58
+ this.#propertyChangeHandler.handleChange(this.#source, name);
59
+ }
60
+ #propertyChangeHandler = { handleChange: (source, propertyName) => {
61
+ const reflectedProperty = this.#reflectedProperties.get(propertyName);
62
+ const value = source[propertyName];
63
+ switch (reflectedProperty.type) {
64
+ case "boolean-attribute":
65
+ _microsoft_fast_element.DOM.setBooleanAttribute(this.#target, reflectedProperty.destination, Boolean(value));
66
+ break;
67
+ case "attribute":
68
+ _microsoft_fast_element.DOM.setAttribute(this.#target, reflectedProperty.destination, value);
69
+ break;
70
+ case "property":
71
+ if (reflectedProperty.skipIfEqual && this.#target[reflectedProperty.destination] === value) return;
72
+ this.#target[reflectedProperty.destination] = value;
73
+ break;
74
+ }
75
+ } };
76
+ };
77
+ //#endregion
78
+ //#region src/lib/text-area/text-area.ts
21
79
  /**
80
+ * Resize mode for a TextArea
22
81
  * @public
23
- * @component tree-view
24
- * @slot - Default slot.
25
82
  */
26
- var TreeView = class extends require_host_semantics.HostSemantics(require_vivid_element.VividElement) {
83
+ var TextAreaResize = {
84
+ /**
85
+ * No resize.
86
+ */
87
+ none: "none",
88
+ /**
89
+ * Resize vertically and horizontally.
90
+ */
91
+ both: "both",
92
+ /**
93
+ * Resize horizontally.
94
+ */
95
+ horizontal: "horizontal",
96
+ /**
97
+ * Resize vertically.
98
+ */
99
+ vertical: "vertical"
100
+ };
101
+ /**
102
+ * @public
103
+ * @component text-area
104
+ * @slot helper-text - Describes how to use the text-area. Alternative to the `helper-text` attribute.
105
+ * @event {CustomEvent<undefined>} change - Emits a custom 'change' event when the textarea emits a change event
106
+ * @event {Event} input - Fires when the value of the element changes.
107
+ * @vueModel modelValue value input,@lazy:change `event.currentTarget.value`
108
+ * @testAction fill fill #control
109
+ * @testAction clear clear #control
110
+ * @testRef control shadow .control
111
+ */
112
+ var TextArea = class extends require_with_contextual_help.WithContextualHelp(require_mixins.WithFeedback(require_char_count.WithCharCount(require_with_error_text.WithErrorText(require_with_success_text.WithSuccessText(require_form_element.FormElement(require_delegates_aria.DelegatesAria(require_form_associated.FormAssociated(require_vivid_element.VividElement)))))))) {
27
113
  constructor(..._args) {
28
114
  super(..._args);
29
- this.currentFocused = null;
30
- this.handleFocus = (e) => {
31
- if (this.slottedTreeItems.length > 0) {
32
- if (e.target === this) {
33
- /* v8 ignore else -- @preserve */
34
- if (this.currentFocused !== null) require_definition.TreeItem.focusItem(this.currentFocused);
35
- return;
36
- }
37
- /* v8 ignore else -- @preserve */
38
- if (this.contains(e.target)) {
39
- this.setAttribute("tabindex", "-1");
40
- this.currentFocused = e.target;
41
- }
42
- }
43
- };
44
- this.handleBlur = (e) => {
45
- if (e.target instanceof HTMLElement && (e.relatedTarget === null || !this.contains(e.relatedTarget))) this.setAttribute("tabindex", "0");
46
- };
47
- this.handleKeyDown = (e) => {
48
- if (this.slottedTreeItems.length < 1) return true;
49
- /* v8 ignore else -- @preserve */
50
- if (!e.defaultPrevented) {
51
- const treeItems = this.getVisibleNodes();
52
- switch (e.key) {
53
- case _microsoft_fast_web_utilities.keyHome:
54
- /* v8 ignore else -- @preserve */
55
- if (treeItems.length) require_definition.TreeItem.focusItem(treeItems[0]);
56
- return;
57
- case _microsoft_fast_web_utilities.keyEnd:
58
- /* v8 ignore else -- @preserve */
59
- if (treeItems.length) require_definition.TreeItem.focusItem(treeItems[treeItems.length - 1]);
60
- return;
61
- case _microsoft_fast_web_utilities.keyArrowLeft:
62
- /* v8 ignore else -- @preserve */
63
- if (e.target && this.isFocusableElement(e.target)) {
64
- const item = e.target;
65
- /* v8 ignore else -- @preserve */
66
- if (item instanceof require_definition.TreeItem && item.childItemLength() > 0 && item.expanded) item.expanded = false;
67
- else if (item instanceof require_definition.TreeItem && item.parentElement instanceof require_definition.TreeItem) require_definition.TreeItem.focusItem(item.parentElement);
68
- }
69
- return false;
70
- case _microsoft_fast_web_utilities.keyArrowRight:
71
- /* v8 ignore else -- @preserve */
72
- if (e.target && this.isFocusableElement(e.target)) {
73
- const item = e.target;
74
- /* v8 ignore else -- @preserve */
75
- if (item instanceof require_definition.TreeItem && item.childItemLength() > 0 && !item.expanded) item.expanded = true;
76
- else if (item instanceof require_definition.TreeItem && item.childItemLength() > 0) this.focusNextNode(1, e.target);
77
- }
78
- return;
79
- case _microsoft_fast_web_utilities.keyArrowDown:
80
- /* v8 ignore else -- @preserve */
81
- if (e.target && this.isFocusableElement(e.target)) this.focusNextNode(1, e.target);
82
- return;
83
- case _microsoft_fast_web_utilities.keyArrowUp:
84
- /* v8 ignore else -- @preserve */
85
- if (e.target && this.isFocusableElement(e.target)) this.focusNextNode(-1, e.target);
86
- return;
87
- case _microsoft_fast_web_utilities.keyEnter:
88
- this.handleClick(e);
89
- return;
90
- }
91
- }
92
- return true;
93
- };
94
- this.handleSelectedChange = (e) => {
95
- /* v8 ignore else -- @preserve */
96
- if (!e.defaultPrevented) {
97
- if (!(e.target instanceof Element) || !require_definition.isTreeItemElement(e.target)) return true;
98
- const item = e.target;
99
- /* v8 ignore else -- @preserve */
100
- if (item.selected) {
101
- if (this.currentSelected && this.currentSelected !== item) this.currentSelected.selected = false;
102
- this.currentSelected = item;
103
- } else if (!item.selected && this.currentSelected === item) this.currentSelected = null;
104
- return;
105
- }
106
- };
107
- this.setItems = () => {
108
- const selectedItem = this.treeView.querySelector("[selected]");
109
- this.currentSelected = selectedItem;
110
- if (this.currentFocused === null || !this.contains(this.currentFocused)) this.currentFocused = this.getValidFocusableItem();
111
- this.nested = this.checkForNestedItems();
112
- this.getVisibleNodes().forEach((node) => {
113
- /* v8 ignore else -- @preserve */
114
- if (require_definition.isTreeItemElement(node)) node.nested = this.nested;
115
- });
116
- };
117
- this.isFocusableElement = (el) => {
118
- return require_definition.isTreeItemElement(el);
119
- };
120
- this.isSelectedElement = (el) => {
121
- return el.selected;
115
+ this.proxy = document.createElement("textarea");
116
+ this.resize = TextAreaResize.none;
117
+ this.cols = 20;
118
+ this.handleTextInput = () => {
119
+ this.value = this.control.value;
122
120
  };
123
121
  }
124
122
  /**
125
123
  * @internal
126
124
  */
127
- slottedTreeItemsChanged() {
128
- if (this.$fastController.isConnected) this.setItems();
125
+ readOnlyChanged() {
126
+ /* v8 ignore if -- @preserve */
127
+ if (this.proxy instanceof HTMLTextAreaElement) this.proxy.readOnly = this.readOnly;
129
128
  }
130
- connectedCallback() {
131
- super.connectedCallback();
132
- this.setAttribute("tabindex", "0");
133
- _microsoft_fast_element.Updates.enqueue(() => {
134
- this.setItems();
135
- });
129
+ /**
130
+ * @internal
131
+ */
132
+ autofocusChanged() {
133
+ /* v8 ignore if -- @preserve */
134
+ if (this.proxy instanceof HTMLTextAreaElement) this.proxy.autofocus = this.autofocus;
136
135
  }
137
136
  /**
138
- * Handles click events bubbling up
139
- *
140
- * @internal
137
+ * @internal
141
138
  */
142
- handleClick(e) {
143
- if (!e.defaultPrevented) {
144
- if (!(e.target instanceof Element) || !require_definition.isTreeItemElement(e.target)) return true;
145
- const item = e.target;
146
- if (!item.disabled) item.selected = !item.selected;
147
- return;
148
- }
139
+ listChanged() {
140
+ /* v8 ignore if -- @preserve */
141
+ if (this.proxy instanceof HTMLTextAreaElement) this.proxy.setAttribute("list", this.list);
149
142
  }
150
143
  /**
151
- * Move focus to a tree item based on its offset from the provided item
144
+ * @internal
152
145
  */
153
- focusNextNode(delta, item) {
154
- const visibleNodes = this.getVisibleNodes();
155
- /* v8 ignore else -- @preserve */
156
- if (visibleNodes) {
157
- const focusItem = visibleNodes[visibleNodes.indexOf(item) + delta];
158
- /* v8 ignore else -- @preserve */
159
- if ((0, _microsoft_fast_web_utilities.isHTMLElement)(focusItem)) require_definition.TreeItem.focusItem(focusItem);
160
- }
146
+ maxlengthChanged() {
147
+ /* v8 ignore if -- @preserve */
148
+ if (this.proxy instanceof HTMLTextAreaElement) this.proxy.maxLength = this.maxlength;
161
149
  }
162
150
  /**
163
- * checks if there are any nested tree items
151
+ * @internal
164
152
  */
165
- getValidFocusableItem() {
166
- const treeItems = this.getVisibleNodes();
167
- let focusIndex = treeItems.findIndex(this.isSelectedElement);
168
- if (focusIndex === -1) focusIndex = treeItems.findIndex(this.isFocusableElement);
169
- if (focusIndex !== -1) return treeItems[focusIndex];
170
- return null;
153
+ minlengthChanged() {
154
+ /* v8 ignore if -- @preserve */
155
+ if (this.proxy instanceof HTMLTextAreaElement) this.proxy.minLength = this.minlength;
171
156
  }
172
157
  /**
173
- * checks if there are any nested tree items
158
+ * @internal
174
159
  */
175
- checkForNestedItems() {
176
- return this.slottedTreeItems.some((node) => {
177
- return require_definition.isTreeItemElement(node) && node.querySelector("[data-vvd-component='tree-item']");
178
- });
160
+ spellcheckChanged() {
161
+ /* v8 ignore if -- @preserve */
162
+ if (this.proxy instanceof HTMLTextAreaElement) this.proxy.spellcheck = this.spellcheck;
163
+ }
164
+ /**
165
+ * Selects all the text in the text area
166
+ *
167
+ * @public
168
+ */
169
+ select() {
170
+ this.control.select();
171
+ }
172
+ /**
173
+ * @internal
174
+ */
175
+ valueChanged(previous, next) {
176
+ super.valueChanged(previous, next);
177
+ if (this.charCount && this.maxlength) this._updateCharCountRemaining();
179
178
  }
180
- getVisibleNodes() {
181
- return getDisplayedNodes(this, "[data-vvd-component='tree-item']");
179
+ /**
180
+ * Change event handler for inner control.
181
+ * @remarks
182
+ * "Change" events are not `composable` so they will not
183
+ * permeate the shadow DOM boundary. This fn effectively proxies
184
+ * the change event, emitting a `change` event whenever the internal
185
+ * control emits a `change` event
186
+ * @internal
187
+ */
188
+ handleChange() {
189
+ this.$emit("change");
190
+ }
191
+ /** {@inheritDoc (FormAssociated:interface).validate} */
192
+ validate() {
193
+ super.validate(this.control);
194
+ }
195
+ #reflectToTextArea;
196
+ connectedCallback() {
197
+ super.connectedCallback();
198
+ this.#reflectToTextArea = new Reflector(this, this.control);
199
+ this.#reflectToTextArea.property("value", "value", true);
200
+ this._renderCharCountRemaining();
201
+ }
202
+ disconnectedCallback() {
203
+ super.disconnectedCallback();
204
+ this.#reflectToTextArea.destroy();
182
205
  }
183
206
  };
184
- require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "render-collapsed-nodes" })], TreeView.prototype, "renderCollapsedNodes", void 0);
185
- require_decorate.__decorate([_microsoft_fast_element.observable], TreeView.prototype, "currentSelected", void 0);
186
- require_decorate.__decorate([_microsoft_fast_element.observable], TreeView.prototype, "slottedTreeItems", void 0);
207
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], TextArea.prototype, "readOnly", void 0);
208
+ require_decorate.__decorate([_microsoft_fast_element.attr], TextArea.prototype, "resize", void 0);
209
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], TextArea.prototype, "autofocus", void 0);
210
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ attribute: "form" })], TextArea.prototype, "formId", void 0);
211
+ require_decorate.__decorate([_microsoft_fast_element.attr], TextArea.prototype, "list", void 0);
212
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: _microsoft_fast_element.nullableNumberConverter })], TextArea.prototype, "maxlength", void 0);
213
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ converter: _microsoft_fast_element.nullableNumberConverter })], TextArea.prototype, "minlength", void 0);
214
+ require_decorate.__decorate([_microsoft_fast_element.attr], TextArea.prototype, "placeholder", void 0);
215
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
216
+ converter: _microsoft_fast_element.nullableNumberConverter,
217
+ mode: "fromView"
218
+ })], TextArea.prototype, "cols", void 0);
219
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
220
+ converter: _microsoft_fast_element.nullableNumberConverter,
221
+ mode: "fromView"
222
+ })], TextArea.prototype, "rows", void 0);
223
+ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], TextArea.prototype, "spellcheck", void 0);
224
+ require_decorate.__decorate([_microsoft_fast_element.observable], TextArea.prototype, "defaultSlottedNodes", void 0);
225
+ require_decorate.__decorate([_microsoft_fast_element.attr], TextArea.prototype, "wrap", void 0);
187
226
  //#endregion
188
- //#region src/lib/tree-view/tree-view.template.ts
189
- var getClasses = (_) => (0, _microsoft_fast_web_utilities.classNames)("control");
190
- var TreeViewTemplate = _microsoft_fast_element.html` <template
191
- ${(0, _microsoft_fast_element.ref)("treeView")}
192
- ${require_host_semantics.applyHostSemantics({ role: "tree" })}
193
- @keydown="${(x, c) => x.handleKeyDown(c.event)}"
194
- @focusin="${(x, c) => x.handleFocus(c.event)}"
195
- @focusout="${(x, c) => x.handleBlur(c.event)}"
196
- @click="${(x, c) => x.handleClick(c.event)}"
197
- @selected-change="${(x, c) => x.handleSelectedChange(c.event)}"
198
- >
199
- <div class="${getClasses}">
200
- <slot ${(0, _microsoft_fast_element.slotted)("slottedTreeItems")}></slot>
201
- </div>
202
- </template>`;
227
+ //#region src/lib/text-area/text-area.template.ts
228
+ var getClasses = ({ value, errorValidationMessage, disabled, placeholder, readOnly, successText }) => (0, _microsoft_fast_web_utilities.classNames)("base", ["readonly", readOnly], ["placeholder", Boolean(placeholder)], ["disabled", disabled], ["error", Boolean(errorValidationMessage)], ["has-value", Boolean(value)], ["success", !!successText]);
229
+ /**
230
+ *
231
+ */
232
+ function renderLabel() {
233
+ return _microsoft_fast_element.html` <label for="control" class="label">
234
+ ${(x) => x.label}
235
+ </label>`;
236
+ }
237
+ var TextAreaTemplate = (context) => {
238
+ return _microsoft_fast_element.html`
239
+ <div class="${getClasses}">
240
+ ${(0, _microsoft_fast_element.when)((x) => x.charCount && x.maxlength, (x) => x._getCharCountTemplate(context))}
241
+ <div
242
+ class="label-wrapper"
243
+ ?hidden=${(x) => !x.label && !x._hasContextualHelp}
244
+ >
245
+ ${(0, _microsoft_fast_element.when)((x) => x.label, renderLabel())}
246
+ <slot
247
+ name="contextual-help"
248
+ ${(0, _microsoft_fast_element.slotted)("_contextualHelpSlottedContent")}
249
+ ></slot>
250
+ </div>
251
+ <textarea
252
+ class="control"
253
+ id="control"
254
+ ?autofocus="${(x) => x.autofocus}"
255
+ placeholder="${(x) => x.placeholder ? x.placeholder : null}"
256
+ name="${(x) => x.name ? x.name : null}"
257
+ list="${(x) => x.list}"
258
+ minlength="${(x) => x.minlength ? x.minlength : null}"
259
+ maxlength="${(x) => x.maxlength ? x.maxlength : null}"
260
+ rows="${(x) => x.rows ? x.rows : null}"
261
+ cols="${(x) => x.cols ? x.cols : null}"
262
+ wrap="${(x) => x.wrap ? x.wrap : null}"
263
+ ?readonly="${(x) => x.readOnly}"
264
+ ?disabled="${(x) => x.disabled}"
265
+ ?required="${(x) => x.required}"
266
+ ?spellcheck="${(x) => x.spellcheck}"
267
+ ${require_delegates_aria.delegateAria({ ariaDescribedBy: (x) => `${x._feedbackDescribedBy} ${x.charCount && x.maxlength ? x._charCountDescribedBy : null}` })}
268
+ @input="${(x) => x.handleTextInput()}"
269
+ @change="${(x) => x.handleChange()}"
270
+ ${(0, _microsoft_fast_element.ref)("control")}
271
+ >
272
+ </textarea>
273
+ ${(x) => x._getFeedbackTemplate(context)}
274
+ </div>
275
+ `;
276
+ };
203
277
  //#endregion
204
- //#region src/lib/tree-view/definition.ts
278
+ //#region src/lib/text-area/definition.ts
205
279
  /**
206
280
  * @internal
207
281
  */
208
- var treeViewDefinition = require_vivid_element.defineVividComponent("tree-view", TreeView, TreeViewTemplate, [require_definition.treeItemDefinition], { styles: tree_view_default });
282
+ var textAreaDefinition = require_vivid_element.defineVividComponent("text-area", TextArea, TextAreaTemplate, [
283
+ require_mixins.feedbackMessageDefinition,
284
+ require_definition.visuallyHiddenDefinition,
285
+ require_definition$1.contextualHelpDefinition
286
+ ], {
287
+ styles: text_area_default,
288
+ shadowOptions: { delegatesFocus: true }
289
+ });
209
290
  /**
210
- * Registers the tree-view element with the design system.
291
+ * Registers the text-field elements with the design system.
211
292
  *
212
293
  * @param prefix - the prefix to use for the component name
213
294
  */
214
- var registerTreeView = require_vivid_element.createRegisterFunction(treeViewDefinition);
295
+ var registerTextArea = require_vivid_element.createRegisterFunction(textAreaDefinition);
215
296
  //#endregion
216
- Object.defineProperty(exports, "TreeView", {
297
+ Object.defineProperty(exports, "TextArea", {
217
298
  enumerable: true,
218
299
  get: function() {
219
- return TreeView;
300
+ return TextArea;
220
301
  }
221
302
  });
222
- Object.defineProperty(exports, "registerTreeView", {
303
+ Object.defineProperty(exports, "registerTextArea", {
223
304
  enumerable: true,
224
305
  get: function() {
225
- return registerTreeView;
306
+ return registerTextArea;
226
307
  }
227
308
  });
228
- Object.defineProperty(exports, "treeViewDefinition", {
309
+ Object.defineProperty(exports, "textAreaDefinition", {
229
310
  enumerable: true,
230
311
  get: function() {
231
- return treeViewDefinition;
312
+ return textAreaDefinition;
232
313
  }
233
314
  });