@threadlabs/looma 0.21.5 → 0.22.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 (418) hide show
  1. package/components/ui-affordance-scope/ui-affordance-scope.html +1 -1
  2. package/components/ui-avatar/ui-avatar.html +4 -4
  3. package/components/ui-avatar-group/ui-avatar-group.html +14 -4
  4. package/components/ui-avatar-group/ui-avatar-group.js +1 -1
  5. package/components/ui-button/ui-button.html +10 -7
  6. package/components/ui-checkbox/ui-checkbox.html +1 -1
  7. package/components/ui-combobox/ui-combobox.html +18 -18
  8. package/components/ui-context-menu/ui-context-menu.html +1 -1
  9. package/components/ui-dialog/ui-dialog.html +2 -2
  10. package/components/ui-disclosure/ui-disclosure.html +4 -4
  11. package/components/ui-editable/ui-editable.html +3 -3
  12. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +5 -5
  13. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +5 -5
  14. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +3 -3
  15. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
  16. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -7
  17. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +6 -6
  18. package/components/ui-listbox/ui-listbox.html +6 -6
  19. package/components/ui-menu/ui-menu.html +1 -1
  20. package/components/ui-menu-item/ui-menu-item.html +1 -1
  21. package/components/ui-popover/ui-popover.html +1 -1
  22. package/components/ui-radio/ui-radio.html +1 -1
  23. package/components/ui-radio-group/ui-radio-group.html +1 -1
  24. package/components/ui-search-shell/ui-search-shell.html +1 -1
  25. package/components/ui-sidebar/ui-sidebar.html +2 -2
  26. package/components/ui-switch/ui-switch.html +1 -1
  27. package/components/ui-switcher/ui-switcher.html +1 -1
  28. package/components/ui-tabs/ui-tabs.html +2 -2
  29. package/components/ui-toast-region/ui-toast-region.html +1 -1
  30. package/components/ui-tooltip/ui-tooltip.html +1 -1
  31. package/components/ui-tree-item/ui-tree-item.html +4 -4
  32. package/dist/index.js +1 -1
  33. package/package.json +2 -2
  34. package/styles/ui-action-bar.css +1 -1
  35. package/styles/ui-affordance-scope.css +1 -1
  36. package/styles/ui-avatar-group.css +10 -1
  37. package/styles/ui-avatar.css +1 -1
  38. package/styles/ui-badge.css +1 -1
  39. package/styles/ui-breadcrumb-item.css +1 -1
  40. package/styles/ui-breadcrumbs.css +1 -1
  41. package/styles/ui-button.css +11 -7
  42. package/styles/ui-callout.css +1 -1
  43. package/styles/ui-card.css +1 -1
  44. package/styles/ui-checkbox.css +1 -1
  45. package/styles/ui-cluster.css +1 -1
  46. package/styles/ui-combobox.css +1 -1
  47. package/styles/ui-container.css +1 -1
  48. package/styles/ui-context-menu.css +1 -1
  49. package/styles/ui-cover.css +1 -1
  50. package/styles/ui-description-item.css +1 -1
  51. package/styles/ui-description-list.css +1 -1
  52. package/styles/ui-dialog.css +1 -1
  53. package/styles/ui-disclosure.css +1 -1
  54. package/styles/ui-editable.css +1 -1
  55. package/styles/ui-editor-insert-table-grid.css +1 -1
  56. package/styles/ui-editor-mention-menu-item.css +1 -1
  57. package/styles/ui-editor-mention-menu.css +1 -1
  58. package/styles/ui-editor-slash-menu-group.css +1 -1
  59. package/styles/ui-editor-slash-menu-item.css +1 -1
  60. package/styles/ui-editor-slash-menu.css +1 -1
  61. package/styles/ui-editor-table-context-menu.css +1 -1
  62. package/styles/ui-editor-table-overlay.css +1 -1
  63. package/styles/ui-editor-table-toolbar.css +1 -1
  64. package/styles/ui-editor-toolbar.css +1 -1
  65. package/styles/ui-floating-action-button.css +1 -1
  66. package/styles/ui-form-field.css +1 -1
  67. package/styles/ui-grid.css +1 -1
  68. package/styles/ui-icon-button.css +1 -1
  69. package/styles/ui-icon.css +1 -1
  70. package/styles/ui-input-group.css +1 -1
  71. package/styles/ui-input.css +1 -1
  72. package/styles/ui-list-item.css +1 -1
  73. package/styles/ui-list.css +1 -1
  74. package/styles/ui-listbox.css +1 -1
  75. package/styles/ui-menu-group.css +1 -1
  76. package/styles/ui-menu-item.css +1 -1
  77. package/styles/ui-menu.css +1 -1
  78. package/styles/ui-meter.css +1 -1
  79. package/styles/ui-nav-item.css +1 -1
  80. package/styles/ui-page-header.css +1 -1
  81. package/styles/ui-popover.css +1 -1
  82. package/styles/ui-radio-group.css +1 -1
  83. package/styles/ui-radio.css +1 -1
  84. package/styles/ui-reel.css +1 -1
  85. package/styles/ui-scroll-area.css +1 -1
  86. package/styles/ui-search-result-row.css +1 -1
  87. package/styles/ui-search-shell.css +1 -1
  88. package/styles/ui-section.css +1 -1
  89. package/styles/ui-select.css +1 -1
  90. package/styles/ui-separator.css +1 -1
  91. package/styles/ui-sidebar.css +1 -1
  92. package/styles/ui-spinner.css +1 -1
  93. package/styles/ui-stack.css +1 -1
  94. package/styles/ui-status-message.css +1 -1
  95. package/styles/ui-switch.css +1 -1
  96. package/styles/ui-switcher.css +1 -1
  97. package/styles/ui-table.css +1 -1
  98. package/styles/ui-tabs.css +1 -1
  99. package/styles/ui-text.css +1 -1
  100. package/styles/ui-textarea.css +1 -1
  101. package/styles/ui-toast-region.css +1 -1
  102. package/styles/ui-toast.css +1 -1
  103. package/styles/ui-tooltip.css +1 -1
  104. package/styles/ui-top-bar.css +1 -1
  105. package/styles/ui-tree-item.css +1 -1
  106. package/styles/ui-tree.css +1 -1
  107. package/vanilla/UiActionBar.d.ts +1 -1
  108. package/vanilla/UiActionBar.js +1 -1
  109. package/vanilla/UiAffordanceScope.d.ts +1 -1
  110. package/vanilla/UiAffordanceScope.js +2 -2
  111. package/vanilla/UiAvatar.d.ts +1 -1
  112. package/vanilla/UiAvatar.js +2 -2
  113. package/vanilla/UiAvatarGroup.d.ts +2 -2
  114. package/vanilla/UiAvatarGroup.js +2 -2
  115. package/vanilla/UiBadge.d.ts +1 -1
  116. package/vanilla/UiBadge.js +1 -1
  117. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  118. package/vanilla/UiBreadcrumbItem.js +1 -1
  119. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  120. package/vanilla/UiBreadcrumbs.js +1 -1
  121. package/vanilla/UiButton.d.ts +1 -1
  122. package/vanilla/UiButton.js +1 -1
  123. package/vanilla/UiCallout.d.ts +1 -1
  124. package/vanilla/UiCallout.js +1 -1
  125. package/vanilla/UiCard.d.ts +1 -1
  126. package/vanilla/UiCard.js +1 -1
  127. package/vanilla/UiCheckbox.d.ts +1 -1
  128. package/vanilla/UiCheckbox.js +2 -2
  129. package/vanilla/UiCluster.d.ts +1 -1
  130. package/vanilla/UiCluster.js +1 -1
  131. package/vanilla/UiCombobox.d.ts +1 -1
  132. package/vanilla/UiCombobox.js +2 -2
  133. package/vanilla/UiContainer.d.ts +1 -1
  134. package/vanilla/UiContainer.js +1 -1
  135. package/vanilla/UiContextMenu.d.ts +1 -1
  136. package/vanilla/UiContextMenu.js +2 -2
  137. package/vanilla/UiCover.d.ts +1 -1
  138. package/vanilla/UiCover.js +1 -1
  139. package/vanilla/UiDescriptionItem.d.ts +1 -1
  140. package/vanilla/UiDescriptionItem.js +1 -1
  141. package/vanilla/UiDescriptionList.d.ts +1 -1
  142. package/vanilla/UiDescriptionList.js +1 -1
  143. package/vanilla/UiDialog.d.ts +1 -1
  144. package/vanilla/UiDialog.js +2 -2
  145. package/vanilla/UiDisclosure.d.ts +1 -1
  146. package/vanilla/UiDisclosure.js +2 -2
  147. package/vanilla/UiEditable.d.ts +1 -1
  148. package/vanilla/UiEditable.js +2 -2
  149. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  150. package/vanilla/UiEditorInsertTableGrid.js +2 -2
  151. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  152. package/vanilla/UiEditorMentionMenu.js +2 -2
  153. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  154. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  155. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  156. package/vanilla/UiEditorSlashMenu.js +2 -2
  157. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  158. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  159. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  160. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  161. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  162. package/vanilla/UiEditorTableContextMenu.js +2 -2
  163. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  164. package/vanilla/UiEditorTableOverlay.js +2 -2
  165. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  166. package/vanilla/UiEditorTableToolbar.js +2 -2
  167. package/vanilla/UiEditorToolbar.d.ts +1 -1
  168. package/vanilla/UiEditorToolbar.js +1 -1
  169. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  170. package/vanilla/UiFloatingActionButton.js +1 -1
  171. package/vanilla/UiFormField.d.ts +1 -1
  172. package/vanilla/UiFormField.js +1 -1
  173. package/vanilla/UiGrid.d.ts +1 -1
  174. package/vanilla/UiGrid.js +1 -1
  175. package/vanilla/UiIcon.d.ts +1 -1
  176. package/vanilla/UiIcon.js +1 -1
  177. package/vanilla/UiIconButton.d.ts +1 -1
  178. package/vanilla/UiIconButton.js +1 -1
  179. package/vanilla/UiInput.d.ts +1 -1
  180. package/vanilla/UiInput.js +1 -1
  181. package/vanilla/UiInputGroup.d.ts +1 -1
  182. package/vanilla/UiInputGroup.js +1 -1
  183. package/vanilla/UiList.d.ts +1 -1
  184. package/vanilla/UiList.js +1 -1
  185. package/vanilla/UiListItem.d.ts +1 -1
  186. package/vanilla/UiListItem.js +1 -1
  187. package/vanilla/UiListbox.d.ts +1 -1
  188. package/vanilla/UiListbox.js +2 -2
  189. package/vanilla/UiMenu.d.ts +1 -1
  190. package/vanilla/UiMenu.js +2 -2
  191. package/vanilla/UiMenuGroup.d.ts +1 -1
  192. package/vanilla/UiMenuGroup.js +1 -1
  193. package/vanilla/UiMenuItem.d.ts +1 -1
  194. package/vanilla/UiMenuItem.js +2 -2
  195. package/vanilla/UiMeter.d.ts +1 -1
  196. package/vanilla/UiMeter.js +1 -1
  197. package/vanilla/UiNavItem.d.ts +1 -1
  198. package/vanilla/UiNavItem.js +1 -1
  199. package/vanilla/UiPageHeader.d.ts +1 -1
  200. package/vanilla/UiPageHeader.js +1 -1
  201. package/vanilla/UiPopover.d.ts +1 -1
  202. package/vanilla/UiPopover.js +2 -2
  203. package/vanilla/UiRadio.d.ts +1 -1
  204. package/vanilla/UiRadio.js +2 -2
  205. package/vanilla/UiRadioGroup.d.ts +1 -1
  206. package/vanilla/UiRadioGroup.js +2 -2
  207. package/vanilla/UiReel.d.ts +1 -1
  208. package/vanilla/UiReel.js +1 -1
  209. package/vanilla/UiScrollArea.d.ts +1 -1
  210. package/vanilla/UiScrollArea.js +1 -1
  211. package/vanilla/UiSearchResultRow.d.ts +1 -1
  212. package/vanilla/UiSearchResultRow.js +1 -1
  213. package/vanilla/UiSearchShell.d.ts +1 -1
  214. package/vanilla/UiSearchShell.js +2 -2
  215. package/vanilla/UiSection.d.ts +1 -1
  216. package/vanilla/UiSection.js +1 -1
  217. package/vanilla/UiSelect.d.ts +1 -1
  218. package/vanilla/UiSelect.js +1 -1
  219. package/vanilla/UiSeparator.d.ts +1 -1
  220. package/vanilla/UiSeparator.js +1 -1
  221. package/vanilla/UiSidebar.d.ts +1 -1
  222. package/vanilla/UiSidebar.js +2 -2
  223. package/vanilla/UiSpinner.d.ts +1 -1
  224. package/vanilla/UiSpinner.js +1 -1
  225. package/vanilla/UiStack.d.ts +1 -1
  226. package/vanilla/UiStack.js +1 -1
  227. package/vanilla/UiStatusMessage.d.ts +1 -1
  228. package/vanilla/UiStatusMessage.js +1 -1
  229. package/vanilla/UiSwitch.d.ts +1 -1
  230. package/vanilla/UiSwitch.js +2 -2
  231. package/vanilla/UiSwitcher.d.ts +1 -1
  232. package/vanilla/UiSwitcher.js +2 -2
  233. package/vanilla/UiTable.d.ts +1 -1
  234. package/vanilla/UiTable.js +1 -1
  235. package/vanilla/UiTabs.d.ts +1 -1
  236. package/vanilla/UiTabs.js +2 -2
  237. package/vanilla/UiText.d.ts +1 -1
  238. package/vanilla/UiText.js +1 -1
  239. package/vanilla/UiTextarea.d.ts +1 -1
  240. package/vanilla/UiTextarea.js +1 -1
  241. package/vanilla/UiToast.d.ts +1 -1
  242. package/vanilla/UiToast.js +1 -1
  243. package/vanilla/UiToastRegion.d.ts +1 -1
  244. package/vanilla/UiToastRegion.js +2 -2
  245. package/vanilla/UiTooltip.d.ts +1 -1
  246. package/vanilla/UiTooltip.js +2 -2
  247. package/vanilla/UiTopBar.d.ts +1 -1
  248. package/vanilla/UiTopBar.js +1 -1
  249. package/vanilla/UiTree.d.ts +1 -1
  250. package/vanilla/UiTree.js +1 -1
  251. package/vanilla/UiTreeItem.d.ts +1 -1
  252. package/vanilla/UiTreeItem.js +2 -2
  253. package/vue/UiActionBar.vue +1 -1
  254. package/vue/UiAffordanceScope.vue +25 -7
  255. package/vue/UiAvatar.vue +125 -30
  256. package/vue/UiAvatarGroup.d.ts +4 -4
  257. package/vue/UiAvatarGroup.vue +79 -24
  258. package/vue/UiBadge.vue +34 -8
  259. package/vue/UiBreadcrumbItem.vue +15 -4
  260. package/vue/UiBreadcrumbs.vue +14 -4
  261. package/vue/UiButton.vue +133 -49
  262. package/vue/UiCallout.vue +16 -4
  263. package/vue/UiCard.vue +46 -10
  264. package/vue/UiCheckbox.d.ts +5 -5
  265. package/vue/UiCheckbox.vue +73 -19
  266. package/vue/UiCluster.vue +39 -10
  267. package/vue/UiCombobox.d.ts +5 -5
  268. package/vue/UiCombobox.vue +317 -78
  269. package/vue/UiContainer.vue +23 -6
  270. package/vue/UiContextMenu.vue +24 -7
  271. package/vue/UiCover.vue +16 -4
  272. package/vue/UiDescriptionItem.vue +14 -4
  273. package/vue/UiDescriptionList.vue +33 -8
  274. package/vue/UiDialog.vue +79 -26
  275. package/vue/UiDisclosure.vue +101 -38
  276. package/vue/UiEditable.d.ts +3 -3
  277. package/vue/UiEditable.vue +107 -27
  278. package/vue/UiEditorInsertTableGrid.vue +47 -11
  279. package/vue/UiEditorMentionMenu.vue +99 -20
  280. package/vue/UiEditorMentionMenuItem.vue +29 -8
  281. package/vue/UiEditorSlashMenu.vue +85 -16
  282. package/vue/UiEditorSlashMenuGroup.vue +14 -4
  283. package/vue/UiEditorSlashMenuItem.vue +43 -12
  284. package/vue/UiEditorTableContextMenu.d.ts +1 -1
  285. package/vue/UiEditorTableContextMenu.vue +95 -19
  286. package/vue/UiEditorTableOverlay.vue +91 -7
  287. package/vue/UiEditorTableToolbar.vue +105 -16
  288. package/vue/UiEditorToolbar.vue +15 -4
  289. package/vue/UiFloatingActionButton.vue +31 -8
  290. package/vue/UiFormField.d.ts +1 -1
  291. package/vue/UiFormField.vue +31 -8
  292. package/vue/UiGrid.vue +30 -8
  293. package/vue/UiIcon.vue +15 -4
  294. package/vue/UiIconButton.vue +70 -24
  295. package/vue/UiInput.vue +114 -39
  296. package/vue/UiInputGroup.vue +15 -4
  297. package/vue/UiList.vue +47 -16
  298. package/vue/UiListItem.vue +24 -6
  299. package/vue/UiListbox.d.ts +3 -3
  300. package/vue/UiListbox.vue +72 -24
  301. package/vue/UiMenu.vue +55 -15
  302. package/vue/UiMenuGroup.vue +14 -4
  303. package/vue/UiMenuItem.d.ts +4 -4
  304. package/vue/UiMenuItem.vue +77 -27
  305. package/vue/UiMeter.vue +65 -16
  306. package/vue/UiNavItem.vue +48 -24
  307. package/vue/UiPageHeader.vue +16 -4
  308. package/vue/UiPopover.vue +46 -21
  309. package/vue/UiRadio.d.ts +4 -4
  310. package/vue/UiRadio.vue +58 -15
  311. package/vue/UiRadioGroup.d.ts +3 -3
  312. package/vue/UiRadioGroup.vue +66 -17
  313. package/vue/UiReel.d.ts +1 -1
  314. package/vue/UiReel.vue +31 -8
  315. package/vue/UiScrollArea.vue +16 -4
  316. package/vue/UiSearchResultRow.vue +23 -6
  317. package/vue/UiSearchShell.vue +38 -11
  318. package/vue/UiSection.vue +33 -8
  319. package/vue/UiSelect.d.ts +1 -1
  320. package/vue/UiSelect.vue +45 -20
  321. package/vue/UiSeparator.vue +16 -4
  322. package/vue/UiSidebar.d.ts +2 -2
  323. package/vue/UiSidebar.vue +86 -22
  324. package/vue/UiSpinner.vue +23 -6
  325. package/vue/UiStack.vue +31 -8
  326. package/vue/UiStatusMessage.vue +32 -8
  327. package/vue/UiSwitch.d.ts +4 -4
  328. package/vue/UiSwitch.vue +57 -15
  329. package/vue/UiSwitcher.vue +41 -17
  330. package/vue/UiTable.vue +24 -6
  331. package/vue/UiTabs.vue +60 -14
  332. package/vue/UiText.vue +98 -35
  333. package/vue/UiTextarea.d.ts +1 -1
  334. package/vue/UiTextarea.vue +67 -26
  335. package/vue/UiToast.vue +24 -6
  336. package/vue/UiToastRegion.vue +41 -13
  337. package/vue/UiTooltip.d.ts +1 -1
  338. package/vue/UiTooltip.vue +85 -30
  339. package/vue/UiTopBar.vue +1 -1
  340. package/vue/UiTree.vue +56 -14
  341. package/vue/UiTreeItem.d.ts +3 -3
  342. package/vue/UiTreeItem.vue +147 -36
  343. package/vue/chunks/UiActionBar.js +1 -1
  344. package/vue/chunks/UiAffordanceScope.js +34 -7
  345. package/vue/chunks/UiAvatar.js +141 -21
  346. package/vue/chunks/UiAvatarGroup.js +83 -12
  347. package/vue/chunks/UiBadge.js +57 -19
  348. package/vue/chunks/UiBreadcrumbItem.js +19 -6
  349. package/vue/chunks/UiBreadcrumbs.js +19 -6
  350. package/vue/chunks/UiButton.js +194 -42
  351. package/vue/chunks/UiCallout.js +27 -13
  352. package/vue/chunks/UiCard.js +83 -25
  353. package/vue/chunks/UiCheckbox.js +104 -17
  354. package/vue/chunks/UiCluster.js +70 -25
  355. package/vue/chunks/UiCombobox.js +441 -46
  356. package/vue/chunks/UiContainer.js +36 -11
  357. package/vue/chunks/UiContextMenu.js +33 -7
  358. package/vue/chunks/UiCover.js +20 -6
  359. package/vue/chunks/UiDescriptionItem.js +18 -5
  360. package/vue/chunks/UiDescriptionList.js +54 -17
  361. package/vue/chunks/UiDialog.js +115 -23
  362. package/vue/chunks/UiDisclosure.js +110 -24
  363. package/vue/chunks/UiEditable.js +146 -18
  364. package/vue/chunks/UiEditorInsertTableGrid.js +65 -10
  365. package/vue/chunks/UiEditorMentionMenu.js +210 -14
  366. package/vue/chunks/UiEditorMentionMenuItem.js +43 -8
  367. package/vue/chunks/UiEditorSlashMenu.js +186 -12
  368. package/vue/chunks/UiEditorSlashMenuGroup.js +19 -6
  369. package/vue/chunks/UiEditorSlashMenuItem.js +65 -10
  370. package/vue/chunks/UiEditorTableContextMenu.js +116 -16
  371. package/vue/chunks/UiEditorTableOverlay.js +188 -7
  372. package/vue/chunks/UiEditorTableToolbar.js +125 -16
  373. package/vue/chunks/UiEditorToolbar.js +19 -6
  374. package/vue/chunks/UiFloatingActionButton.js +43 -8
  375. package/vue/chunks/UiFormField.js +43 -8
  376. package/vue/chunks/UiGrid.js +52 -18
  377. package/vue/chunks/UiIcon.js +19 -6
  378. package/vue/chunks/UiIconButton.js +107 -21
  379. package/vue/chunks/UiInput.js +309 -30
  380. package/vue/chunks/UiInputGroup.js +19 -6
  381. package/vue/chunks/UiList.js +62 -10
  382. package/vue/chunks/UiListItem.js +33 -7
  383. package/vue/chunks/UiListbox.js +105 -13
  384. package/vue/chunks/UiMenu.js +79 -11
  385. package/vue/chunks/UiMenuGroup.js +19 -6
  386. package/vue/chunks/UiMenuItem.js +93 -28
  387. package/vue/chunks/UiMeter.js +96 -19
  388. package/vue/chunks/UiNavItem.js +74 -17
  389. package/vue/chunks/UiPageHeader.js +20 -6
  390. package/vue/chunks/UiPopover.js +58 -21
  391. package/vue/chunks/UiRadio.js +82 -15
  392. package/vue/chunks/UiRadioGroup.js +89 -12
  393. package/vue/chunks/UiReel.js +53 -18
  394. package/vue/chunks/UiScrollArea.js +20 -6
  395. package/vue/chunks/UiSearchResultRow.js +32 -7
  396. package/vue/chunks/UiSearchShell.js +55 -9
  397. package/vue/chunks/UiSection.js +49 -12
  398. package/vue/chunks/UiSelect.js +68 -13
  399. package/vue/chunks/UiSeparator.js +20 -6
  400. package/vue/chunks/UiSidebar.js +123 -19
  401. package/vue/chunks/UiSpinner.js +33 -7
  402. package/vue/chunks/UiStack.js +59 -24
  403. package/vue/chunks/UiStatusMessage.js +53 -16
  404. package/vue/chunks/UiSwitch.js +82 -15
  405. package/vue/chunks/UiSwitcher.js +70 -25
  406. package/vue/chunks/UiTable.js +33 -7
  407. package/vue/chunks/UiTabs.js +81 -11
  408. package/vue/chunks/UiText.js +169 -58
  409. package/vue/chunks/UiTextarea.js +101 -16
  410. package/vue/chunks/UiToast.js +39 -13
  411. package/vue/chunks/UiToastRegion.js +41 -14
  412. package/vue/chunks/UiTooltip.js +113 -30
  413. package/vue/chunks/UiTopBar.js +1 -1
  414. package/vue/chunks/UiTree.js +82 -15
  415. package/vue/chunks/UiTreeItem.js +184 -22
  416. package/vue/chunks/props.js +271 -35
  417. package/vue/components.css +1209 -1198
  418. package/vue/host.ts +6 -6
@@ -1,7 +1,7 @@
1
1
  import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
2
2
  import { r as useComponentHost, t as createDispatch } from "./host.js";
3
- import { t as checkedProp } from "./props.js";
4
- import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, renderSlot, toDisplayString, useTemplateRef, watchSyncEffect } from "vue";
3
+ import { r as vPropValidity, t as checkedProp } from "./props.js";
4
+ import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
5
5
  //#region .build/vue/UiDisclosure.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = [
7
7
  "data-density",
@@ -58,32 +58,95 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
58
58
  "close"
59
59
  ],
60
60
  setup(__props, { emit: __emit }) {
61
+ const propValidityContract = { props: {
62
+ density: {
63
+ type: {
64
+ kind: "terminal",
65
+ name: "keyword"
66
+ },
67
+ required: false,
68
+ target: { attribute: "density" },
69
+ description: "Compact trades padding and type size for rows that fit more on screen.",
70
+ values: ["comfortable", "compact"],
71
+ default: "comfortable"
72
+ },
73
+ disabled: {
74
+ type: {
75
+ kind: "terminal",
76
+ name: "boolean"
77
+ },
78
+ required: false,
79
+ target: { attribute: "disabled" },
80
+ description: "Disables the trigger and mutes its text, so the disclosure keeps its current state and the user cannot toggle it.",
81
+ default: false
82
+ },
83
+ headingLevel: {
84
+ type: {
85
+ kind: "terminal",
86
+ name: "integer"
87
+ },
88
+ required: false,
89
+ target: { attribute: "headinglevel" },
90
+ description: "Adds heading semantics around the trigger at level 2 through 6. Zero leaves it a plain disclosure; choose a level that matches the page outline.",
91
+ default: 0
92
+ },
93
+ name: {
94
+ type: {
95
+ kind: "terminal",
96
+ name: "string"
97
+ },
98
+ required: false,
99
+ target: { attribute: "name" },
100
+ description: "Disclosures with the same nonempty name form an exclusive group in one document: opening one closes the others. An empty name allows multiple open\n items.",
101
+ default: ""
102
+ },
103
+ open: {
104
+ type: {
105
+ kind: "terminal",
106
+ name: "boolean"
107
+ },
108
+ required: false,
109
+ target: { attribute: "open" },
110
+ description: "Whether the disclosure is open initially or when set externally. The trigger toggles it from there, reporting each change as an open or close event.",
111
+ default: false
112
+ },
113
+ summary: {
114
+ type: {
115
+ kind: "terminal",
116
+ name: "string"
117
+ },
118
+ required: false,
119
+ target: { attribute: "summary" },
120
+ description: "The text of the trigger row that opens and closes the disclosure. It is the trigger button's accessible name, so name what the content is.",
121
+ default: "Details"
122
+ }
123
+ } };
61
124
  const props = __props;
62
125
  const checkedProps = computed(() => ({
63
126
  density: checkedProp(props["density"], {
64
127
  kind: "terminal",
65
128
  name: "keyword"
66
- }, false, "density", void 0, ["comfortable", "compact"]),
129
+ }, false, "density"),
67
130
  disabled: checkedProp(props["disabled"], {
68
131
  kind: "terminal",
69
132
  name: "boolean"
70
- }, false, "disabled", void 0, void 0),
133
+ }, false, "disabled"),
71
134
  headingLevel: checkedProp(props["headingLevel"], {
72
135
  kind: "terminal",
73
136
  name: "integer"
74
- }, false, "headingLevel", void 0, void 0),
137
+ }, false, "headingLevel"),
75
138
  name: checkedProp(props["name"], {
76
139
  kind: "terminal",
77
140
  name: "string"
78
- }, false, "name", void 0, void 0),
141
+ }, false, "name"),
79
142
  open: checkedProp(props["open"], {
80
143
  kind: "terminal",
81
144
  name: "boolean"
82
- }, false, "open", void 0, void 0),
145
+ }, false, "open"),
83
146
  summary: checkedProp(props["summary"], {
84
147
  kind: "terminal",
85
148
  name: "string"
86
- }, false, "summary", void 0, void 0)
149
+ }, false, "summary")
87
150
  }));
88
151
  checkedProps.value;
89
152
  watchSyncEffect(() => {
@@ -110,6 +173,34 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
110
173
  const contentId = ref("");
111
174
  const headingRole = ref(null);
112
175
  const headingAriaLevel = ref(null);
176
+ const guarded = computed(() => {
177
+ if (!(headingRole.value == null || true));
178
+ return headingRole.value ?? void 0;
179
+ });
180
+ let guardedBindingPrevious;
181
+ const guardedBinding = computed(() => {
182
+ if (!(headingAriaLevel.value == null || Number.isInteger(headingAriaLevel.value))) return guardedBindingPrevious;
183
+ return guardedBindingPrevious = headingAriaLevel.value ?? void 0;
184
+ });
185
+ let guardedBinding2Previous;
186
+ const guardedBinding2 = computed(() => {
187
+ if (!(contentId.value == null || typeof contentId.value === "string")) return guardedBinding2Previous;
188
+ return guardedBinding2Previous = contentId.value;
189
+ });
190
+ let guardedBinding3Previous;
191
+ const guardedBinding3 = computed(() => {
192
+ if (!(internalOpen.value == null || typeof internalOpen.value === "boolean")) return guardedBinding3Previous;
193
+ return guardedBinding3Previous = internalOpen.value;
194
+ });
195
+ let guardedBinding4Previous;
196
+ const guardedBinding4 = computed(() => {
197
+ if (!(contentId.value == null || typeof contentId.value === "string")) return guardedBinding4Previous;
198
+ return guardedBinding4Previous = contentId.value;
199
+ });
200
+ provide("html-next:ui-disclosure:internalOpen", internalOpen);
201
+ provide("html-next:ui-disclosure:contentId", contentId);
202
+ provide("html-next:ui-disclosure:headingRole", headingRole);
203
+ provide("html-next:ui-disclosure:headingAriaLevel", headingAriaLevel);
113
204
  const hydrationNode = hydrationInstance?.vnode.el;
114
205
  if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-disclosure> has an incompatible root."), {
115
206
  name: "HtmlDiagnosticError",
@@ -155,16 +246,8 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
155
246
  headingAriaLevel
156
247
  }
157
248
  });
158
- function text(value) {
159
- if (Array.isArray(value)) return value.map(text).join(" ");
160
- return value === null || value === void 0 || typeof value === "object" ? "" : String(value);
161
- }
162
- function attribute(value) {
163
- if (value === null || value === void 0 || value === false || typeof value === "object" && !Array.isArray(value)) return void 0;
164
- return value === true ? "" : text(value);
165
- }
166
249
  return (_ctx, _cache) => {
167
- return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-disclosure" }, nativeAttrs(_ctx.$attrs), {
250
+ return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-disclosure" }, nativeAttrs(_ctx.$attrs), {
168
251
  "data-density": reflectedProp("density", "density", checkedProps.value.density, void 0, false),
169
252
  "data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
170
253
  "data-heading-level": reflectedProp("headingLevel", "heading-level", checkedProps.value.headingLevel, void 0, false),
@@ -176,13 +259,13 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
176
259
  ref: root
177
260
  }), [createElementVNode("div", {
178
261
  class: "heading",
179
- role: attribute(headingRole.value),
180
- "aria-level": typeof headingAriaLevel.value === "boolean" ? String(headingAriaLevel.value) : attribute(headingAriaLevel.value)
262
+ role: guarded.value,
263
+ "aria-level": guardedBinding.value
181
264
  }, [createElementVNode("button", {
182
265
  class: "trigger",
183
266
  type: "button",
184
- "aria-controls": contentId.value,
185
- "aria-expanded": internalOpen.value,
267
+ "aria-controls": guardedBinding2.value,
268
+ "aria-expanded": guardedBinding3.value,
186
269
  disabled: checkedProps.value.disabled ?? void 0,
187
270
  ref: "trigger"
188
271
  }, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "summary", {}, () => [createTextVNode(toDisplayString(checkedProps.value.summary), 1)], true)]), _cache[0] || (_cache[0] = createElementVNode("span", {
@@ -190,11 +273,14 @@ var UiDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
190
273
  "aria-hidden": "true"
191
274
  }, null, -1))], 8, _hoisted_3)], 8, _hoisted_2), createElementVNode("div", {
192
275
  class: "panel",
193
- id: contentId.value,
276
+ id: guardedBinding4.value,
194
277
  ref: "panel"
195
- }, [createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 8, _hoisted_5)], 16, _hoisted_1);
278
+ }, [createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 8, _hoisted_5)], 16, _hoisted_1)), [[unref(vPropValidity), {
279
+ contract: propValidityContract,
280
+ values: { ...checkedProps.value }
281
+ }]]);
196
282
  };
197
283
  }
198
- }), [["__scopeId", "data-v-edd200b7"]]);
284
+ }), [["__scopeId", "data-v-19148588"]]);
199
285
  //#endregion
200
286
  export { UiDisclosure_default as t };
@@ -1,8 +1,8 @@
1
1
  import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
2
2
  import { r as useComponentHost, t as createDispatch } from "./host.js";
3
- import { t as checkedProp } from "./props.js";
3
+ import { r as vPropValidity, t as checkedProp } from "./props.js";
4
4
  import { r as vBindControl } from "./control.js";
5
- import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, ref, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
5
+ import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeProps, openBlock, provide, ref, toDisplayString, unref, useTemplateRef, watchSyncEffect, withDirectives } from "vue";
6
6
  //#region .build/vue/UiEditable.vue?vue&type=script&setup=true&lang.ts
7
7
  var _hoisted_1 = [
8
8
  "data-actions",
@@ -103,52 +103,164 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
103
103
  "edit-change"
104
104
  ],
105
105
  setup(__props, { emit: __emit }) {
106
+ const propValidityContract = { props: {
107
+ actions: {
108
+ type: {
109
+ kind: "terminal",
110
+ name: "boolean"
111
+ },
112
+ required: false,
113
+ target: { attribute: "actions" },
114
+ description: "Show explicit Save and Cancel buttons while editing. Without them, Enter or leaving the field saves and Escape cancels.",
115
+ default: false
116
+ },
117
+ cancelLabel: {
118
+ type: {
119
+ kind: "terminal",
120
+ name: "string"
121
+ },
122
+ required: false,
123
+ target: { attribute: "cancellabel" },
124
+ description: "Visible text for the Cancel action.",
125
+ default: "Cancel"
126
+ },
127
+ disabled: {
128
+ type: {
129
+ kind: "terminal",
130
+ name: "boolean"
131
+ },
132
+ required: false,
133
+ target: { attribute: "disabled" },
134
+ description: "Prevents entering or changing edit mode.",
135
+ default: false
136
+ },
137
+ edit: {
138
+ type: {
139
+ kind: "terminal",
140
+ name: "boolean"
141
+ },
142
+ required: false,
143
+ target: { attribute: "edit" },
144
+ description: "Whether edit mode is active initially or when set externally.",
145
+ default: false
146
+ },
147
+ hint: {
148
+ type: {
149
+ kind: "terminal",
150
+ name: "string"
151
+ },
152
+ required: false,
153
+ target: { attribute: "hint" },
154
+ description: "Optional text shown beside the value to signal it is editable (for example \"Edit\").",
155
+ default: ""
156
+ },
157
+ label: {
158
+ type: {
159
+ kind: "terminal",
160
+ name: "string"
161
+ },
162
+ required: false,
163
+ target: { attribute: "aria-label" },
164
+ description: "Accessible name for the editor.",
165
+ default: "Edit value"
166
+ },
167
+ maxLength: {
168
+ type: {
169
+ kind: "terminal",
170
+ name: "number"
171
+ },
172
+ required: false,
173
+ target: { attribute: "maxlength" },
174
+ description: "Maximum draft length; 0 leaves the length unrestricted.",
175
+ default: 0
176
+ },
177
+ placeholder: {
178
+ type: {
179
+ kind: "terminal",
180
+ name: "string"
181
+ },
182
+ required: false,
183
+ target: { attribute: "placeholder" },
184
+ description: "Hint shown in the text input while the draft is empty.",
185
+ default: ""
186
+ },
187
+ required: {
188
+ type: {
189
+ kind: "terminal",
190
+ name: "boolean"
191
+ },
192
+ required: false,
193
+ target: { attribute: "required" },
194
+ description: "Prevent an empty draft from being saved.",
195
+ default: false
196
+ },
197
+ saveLabel: {
198
+ type: {
199
+ kind: "terminal",
200
+ name: "string"
201
+ },
202
+ required: false,
203
+ target: { attribute: "savelabel" },
204
+ description: "Visible text for the Save action.",
205
+ default: "Save"
206
+ },
207
+ value: {
208
+ type: {
209
+ kind: "terminal",
210
+ name: "string"
211
+ },
212
+ required: false,
213
+ target: { attribute: "value" },
214
+ description: "The displayed value, and the text the editor starts from. It is not a form field: nothing is submitted with a form, so a form that needs the value copies\n it from the change event into a field of its own.",
215
+ default: ""
216
+ }
217
+ } };
106
218
  const props = __props;
107
219
  const checkedProps = computed(() => ({
108
220
  actions: checkedProp(props["actions"], {
109
221
  kind: "terminal",
110
222
  name: "boolean"
111
- }, false, "actions", void 0, void 0),
223
+ }, false, "actions"),
112
224
  cancelLabel: checkedProp(props["cancelLabel"], {
113
225
  kind: "terminal",
114
226
  name: "string"
115
- }, false, "cancelLabel", void 0, void 0),
227
+ }, false, "cancelLabel"),
116
228
  disabled: checkedProp(props["disabled"], {
117
229
  kind: "terminal",
118
230
  name: "boolean"
119
- }, false, "disabled", void 0, void 0),
231
+ }, false, "disabled"),
120
232
  edit: checkedProp(props["edit"], {
121
233
  kind: "terminal",
122
234
  name: "boolean"
123
- }, false, "edit", void 0, void 0),
235
+ }, false, "edit"),
124
236
  hint: checkedProp(props["hint"], {
125
237
  kind: "terminal",
126
238
  name: "string"
127
- }, false, "hint", void 0, void 0),
239
+ }, false, "hint"),
128
240
  label: checkedProp(props["label"], {
129
241
  kind: "terminal",
130
242
  name: "string"
131
- }, false, "label", void 0, void 0),
243
+ }, false, "label"),
132
244
  maxLength: checkedProp(props["maxLength"], {
133
245
  kind: "terminal",
134
246
  name: "number"
135
- }, false, "maxLength", void 0, void 0),
247
+ }, false, "maxLength"),
136
248
  placeholder: checkedProp(props["placeholder"], {
137
249
  kind: "terminal",
138
250
  name: "string"
139
- }, false, "placeholder", void 0, void 0),
251
+ }, false, "placeholder"),
140
252
  required: checkedProp(props["required"], {
141
253
  kind: "terminal",
142
254
  name: "boolean"
143
- }, false, "required", void 0, void 0),
255
+ }, false, "required"),
144
256
  saveLabel: checkedProp(props["saveLabel"], {
145
257
  kind: "terminal",
146
258
  name: "string"
147
- }, false, "saveLabel", void 0, void 0),
259
+ }, false, "saveLabel"),
148
260
  value: checkedProp(props["value"], {
149
261
  kind: "terminal",
150
262
  name: "string"
151
- }, false, "value", void 0, void 0)
263
+ }, false, "value")
152
264
  }));
153
265
  checkedProps.value;
154
266
  watchSyncEffect(() => {
@@ -174,6 +286,19 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
174
286
  const internalEdit = ref(false);
175
287
  const internalValue = ref("");
176
288
  const draft = ref("");
289
+ let guardedPrevious;
290
+ const guarded = computed(() => {
291
+ if (!(internalValue.value == null || typeof internalValue.value === "string")) return guardedPrevious;
292
+ return guardedPrevious = internalValue.value;
293
+ });
294
+ let guardedBindingPrevious;
295
+ const guardedBinding = computed(() => {
296
+ if (!(internalEdit.value == null || typeof internalEdit.value === "boolean")) return guardedBindingPrevious;
297
+ return guardedBindingPrevious = checkedProps.value.disabled || !internalEdit.value;
298
+ });
299
+ provide("html-next:ui-editable:internalEdit", internalEdit);
300
+ provide("html-next:ui-editable:internalValue", internalValue);
301
+ provide("html-next:ui-editable:draft", draft);
177
302
  const hydrationNode = hydrationInstance?.vnode.el;
178
303
  if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-editable> has an incompatible root."), {
179
304
  name: "HtmlDiagnosticError",
@@ -222,7 +347,7 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
222
347
  }
223
348
  });
224
349
  return (_ctx, _cache) => {
225
- return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editable" }, nativeAttrs(_ctx.$attrs), {
350
+ return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editable" }, nativeAttrs(_ctx.$attrs), {
226
351
  "data-actions": reflectedProp("actions", "actions", checkedProps.value.actions, void 0, false),
227
352
  "data-cancel-label": reflectedProp("cancelLabel", "cancel-label", checkedProps.value.cancelLabel, void 0, false),
228
353
  "data-disabled": reflectedProp("disabled", "disabled", checkedProps.value.disabled, void 0, false),
@@ -242,13 +367,13 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
242
367
  type: "button",
243
368
  disabled: checkedProps.value.disabled ?? void 0,
244
369
  ref: "preview"
245
- }, [createElementVNode("span", _hoisted_4, toDisplayString(internalValue.value), 1), checkedProps.value.hint ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(checkedProps.value.hint), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_3), withDirectives(createElementVNode("input", {
370
+ }, [createElementVNode("span", _hoisted_4, toDisplayString(guarded.value), 1), checkedProps.value.hint ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(checkedProps.value.hint), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_3), withDirectives(createElementVNode("input", {
246
371
  class: "input",
247
372
  type: "text",
248
373
  "aria-label": checkedProps.value.label ?? void 0,
249
374
  placeholder: checkedProps.value.placeholder ?? void 0,
250
375
  required: checkedProps.value.required ?? void 0,
251
- disabled: checkedProps.value.disabled || !internalEdit.value,
376
+ disabled: guardedBinding.value,
252
377
  ref: "input"
253
378
  }, null, 8, _hoisted_6), [[unref(vBindControl), {
254
379
  tag: "input",
@@ -256,9 +381,12 @@ var UiEditable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
256
381
  value: draft.value,
257
382
  nativeProperty: true,
258
383
  defaultValue: ""
259
- }]])]), checkedProps.value.actions ? (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("button", _hoisted_8, toDisplayString(checkedProps.value.saveLabel), 1), createElementVNode("button", _hoisted_9, toDisplayString(checkedProps.value.cancelLabel), 1)])) : createCommentVNode("v-if", true)], 16, _hoisted_1);
384
+ }]])]), checkedProps.value.actions ? (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("button", _hoisted_8, toDisplayString(checkedProps.value.saveLabel), 1), createElementVNode("button", _hoisted_9, toDisplayString(checkedProps.value.cancelLabel), 1)])) : createCommentVNode("v-if", true)], 16, _hoisted_1)), [[unref(vPropValidity), {
385
+ contract: propValidityContract,
386
+ values: { ...checkedProps.value }
387
+ }]]);
260
388
  };
261
389
  }
262
- }), [["__scopeId", "data-v-8dce8e1a"]]);
390
+ }), [["__scopeId", "data-v-4d133148"]]);
263
391
  //#endregion
264
392
  export { UiEditable_default as t };
@@ -1,8 +1,8 @@
1
1
  import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
2
2
  import { r as useComponentHost, t as createDispatch } from "./host.js";
3
- import { t as checkedProp } from "./props.js";
3
+ import { r as vPropValidity, t as checkedProp } from "./props.js";
4
4
  import { r as vBindControl } from "./control.js";
5
- import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, renderList, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
5
+ import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, toDisplayString, unref, useTemplateRef, watchSyncEffect, withCtx, withDirectives } from "vue";
6
6
  //#region .build/vue/UiEditorInsertTableGrid.vue?vue&type=script&setup=true&lang.ts
7
7
  var _hoisted_1 = [
8
8
  "hidden",
@@ -49,24 +49,66 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
49
49
  },
50
50
  emits: ["insert"],
51
51
  setup(__props, { emit: __emit }) {
52
+ const propValidityContract = { props: {
53
+ headerRow: {
54
+ type: {
55
+ kind: "terminal",
56
+ name: "boolean"
57
+ },
58
+ required: false,
59
+ target: { attribute: "headerrow" },
60
+ description: "Whether table insertion initially includes a header row.",
61
+ default: false
62
+ },
63
+ maxCols: {
64
+ type: {
65
+ kind: "terminal",
66
+ name: "integer"
67
+ },
68
+ required: false,
69
+ target: { attribute: "maxcols" },
70
+ description: "The most columns the grid offers (at most 10).",
71
+ default: 8
72
+ },
73
+ maxRows: {
74
+ type: {
75
+ kind: "terminal",
76
+ name: "integer"
77
+ },
78
+ required: false,
79
+ target: { attribute: "maxrows" },
80
+ description: "The most rows the grid offers (at most 10).",
81
+ default: 8
82
+ },
83
+ open: {
84
+ type: {
85
+ kind: "terminal",
86
+ name: "boolean"
87
+ },
88
+ required: false,
89
+ target: { attribute: "open" },
90
+ description: "Whether the grid is shown.",
91
+ default: false
92
+ }
93
+ } };
52
94
  const props = __props;
53
95
  const checkedProps = computed(() => ({
54
96
  headerRow: checkedProp(props["headerRow"], {
55
97
  kind: "terminal",
56
98
  name: "boolean"
57
- }, false, "headerRow", void 0, void 0),
99
+ }, false, "headerRow"),
58
100
  maxCols: checkedProp(props["maxCols"], {
59
101
  kind: "terminal",
60
102
  name: "integer"
61
- }, false, "maxCols", void 0, void 0),
103
+ }, false, "maxCols"),
62
104
  maxRows: checkedProp(props["maxRows"], {
63
105
  kind: "terminal",
64
106
  name: "integer"
65
- }, false, "maxRows", void 0, void 0),
107
+ }, false, "maxRows"),
66
108
  open: checkedProp(props["open"], {
67
109
  kind: "terminal",
68
110
  name: "boolean"
69
- }, false, "open", void 0, void 0)
111
+ }, false, "open")
70
112
  }));
71
113
  checkedProps.value;
72
114
  watchSyncEffect(() => {
@@ -118,6 +160,16 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
118
160
  const cols = ref(8);
119
161
  const hint = ref("");
120
162
  const withHeaderRow = ref(false);
163
+ let guardedPrevious;
164
+ const guarded = computed(() => {
165
+ if (!(hint.value == null || typeof hint.value === "string")) return guardedPrevious;
166
+ return guardedPrevious = hint.value;
167
+ });
168
+ provide("html-next:ui-editor-insert-table-grid:cells", cells);
169
+ provide("html-next:ui-editor-insert-table-grid:rows", rows);
170
+ provide("html-next:ui-editor-insert-table-grid:cols", cols);
171
+ provide("html-next:ui-editor-insert-table-grid:hint", hint);
172
+ provide("html-next:ui-editor-insert-table-grid:withHeaderRow", withHeaderRow);
121
173
  const hydrationNode = hydrationInstance?.vnode.el;
122
174
  if (typeof window !== "undefined" && hydrationNode != null && (!(hydrationNode instanceof Element) || hydrationNode.localName !== "div")) throw Object.assign(/* @__PURE__ */ new Error("HR005: Server markup for <ui-editor-insert-table-grid> has an incompatible root."), {
123
175
  name: "HtmlDiagnosticError",
@@ -180,7 +232,7 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
180
232
  return items;
181
233
  }
182
234
  return (_ctx, _cache) => {
183
- return openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editor-insert-table-grid" }, nativeAttrs(_ctx.$attrs), {
235
+ return withDirectives((openBlock(), createElementBlock("div", mergeProps({ "data-component": "ui-editor-insert-table-grid" }, nativeAttrs(_ctx.$attrs), {
184
236
  hidden: !checkedProps.value.open,
185
237
  "data-header-row": reflectedProp("headerRow", "header-row", checkedProps.value.headerRow, void 0, false),
186
238
  "data-max-cols": reflectedProp("maxCols", "max-cols", checkedProps.value.maxCols, void 0, false),
@@ -189,7 +241,7 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
189
241
  ref_key: "root",
190
242
  ref: root
191
243
  }), [
192
- createElementVNode("p", _hoisted_2, toDisplayString(hint.value), 1),
244
+ createElementVNode("p", _hoisted_2, toDisplayString(guarded.value), 1),
193
245
  createElementVNode("div", {
194
246
  class: "grid",
195
247
  role: "group",
@@ -221,9 +273,12 @@ var UiEditorInsertTableGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_de
221
273
  nativeProperty: true,
222
274
  defaultChecked: false
223
275
  }]]), _cache[0] || (_cache[0] = createTextVNode(" Header row", -1))])
224
- ], 16, _hoisted_1);
276
+ ], 16, _hoisted_1)), [[unref(vPropValidity), {
277
+ contract: propValidityContract,
278
+ values: { ...checkedProps.value }
279
+ }]]);
225
280
  };
226
281
  }
227
- }), [["__scopeId", "data-v-6fee08e8"]]);
282
+ }), [["__scopeId", "data-v-1dfb5104"]]);
228
283
  //#endregion
229
284
  export { UiEditorInsertTableGrid_default as t };