@threadlabs/looma 0.47.5 → 0.49.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 (933) hide show
  1. package/README.md +39 -16
  2. package/components/shared/input-modality.d.ts +2 -0
  3. package/components/shared/input-modality.js +2 -0
  4. package/components/shared/overlay.js +9 -0
  5. package/components/ui-card/ui-card.html +8 -0
  6. package/components/ui-compact-content/ui-compact-content.html +8 -0
  7. package/components/ui-compact-content/ui-compact-content.js +1 -0
  8. package/components/ui-compact-editor/ui-compact-editor.css +39 -0
  9. package/components/ui-compact-editor/ui-compact-editor.html +22 -0
  10. package/components/ui-compact-editor/ui-compact-editor.js +30 -0
  11. package/components/ui-compact-mark/ui-compact-mark.html +26 -0
  12. package/components/ui-compact-node/ui-compact-node.html +14 -0
  13. package/components/ui-dialog/ui-dialog.html +4 -1
  14. package/components/ui-editor/ui-editor.css +531 -0
  15. package/components/ui-editor/ui-editor.html +399 -0
  16. package/components/ui-editor/ui-editor.js +87 -0
  17. package/components/ui-editor-chip-editor/ui-editor-chip-editor.html +2 -1
  18. package/components/ui-editor-chip-editor/ui-editor-chip-editor.js +6 -0
  19. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.html +59 -0
  20. package/components/ui-editor-formatting-tools/ui-editor-formatting-tools.js +44 -0
  21. package/components/ui-editor-link-form/ui-editor-link-form.html +1 -0
  22. package/components/ui-editor-link-form/ui-editor-link-form.js +7 -0
  23. package/components/ui-editor-surface/ui-editor-surface.css +109 -0
  24. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
  25. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.js +7 -4
  26. package/components/ui-menu/ui-menu.html +4 -1
  27. package/components/ui-meter/ui-meter.html +7 -7
  28. package/components/ui-popover/ui-popover.html +4 -1
  29. package/components/ui-radio-group/ui-radio-group.html +3 -1
  30. package/components/ui-radio-group/ui-radio-group.js +5 -0
  31. package/dist/index.js +57 -53
  32. package/docs/README.md +5 -7
  33. package/docs/catalog.json +945 -86
  34. package/docs/catalog.mjs +2 -2
  35. package/docs/framework-examples.d.mts +7 -0
  36. package/docs/framework-examples.mjs +89 -0
  37. package/docs/index.d.ts +1 -1
  38. package/docs/render.mjs +3 -40
  39. package/editor/chunks/content.js +29 -0
  40. package/{vue/chunks/compact.js → editor/chunks/dist.js} +103 -230
  41. package/editor/chunks/expressmark.js +1 -24
  42. package/editor/chunks/extensions.js +63 -455
  43. package/editor/chunks/session.js +61 -0
  44. package/editor/chunks/{ui.js → table-overlay.js} +51 -1
  45. package/editor/compact.d.ts +22 -0
  46. package/editor/compact.js +63 -0
  47. package/editor/components.css +3699 -0
  48. package/editor/document-session.d.ts +274 -0
  49. package/editor/extensions/index.js +2 -2
  50. package/editor/index.d.ts +4 -0
  51. package/editor/index.js +15578 -4
  52. package/editor/session.d.ts +1 -1
  53. package/editor/toolbar-tooltip.d.ts +5 -1
  54. package/editor/ui.js +1 -2
  55. package/package.json +31 -46
  56. package/styles/ui-action-bar.css +1 -1
  57. package/styles/ui-affordance-scope.css +1 -1
  58. package/styles/ui-avatar-group.css +1 -1
  59. package/styles/ui-avatar.css +1 -1
  60. package/styles/ui-badge.css +1 -1
  61. package/styles/ui-breadcrumb-item.css +1 -1
  62. package/styles/ui-breadcrumbs.css +1 -1
  63. package/styles/ui-button.css +1 -1
  64. package/styles/ui-callout.css +1 -1
  65. package/styles/ui-card-group.css +1 -1
  66. package/styles/ui-card.css +9 -1
  67. package/styles/ui-checkbox.css +1 -1
  68. package/styles/ui-cluster.css +1 -1
  69. package/styles/ui-color-picker.css +1 -1
  70. package/styles/ui-combobox.css +1 -1
  71. package/styles/ui-compact-content.css +1 -0
  72. package/styles/ui-compact-editor.css +1 -0
  73. package/styles/ui-compact-mark.css +1 -0
  74. package/styles/ui-compact-node.css +1 -0
  75. package/styles/ui-container.css +1 -1
  76. package/styles/ui-context-menu.css +1 -1
  77. package/styles/ui-cover.css +1 -1
  78. package/styles/ui-curve-editor.css +1 -1
  79. package/styles/ui-cycle-button.css +1 -1
  80. package/styles/ui-description-item.css +1 -1
  81. package/styles/ui-description-list.css +1 -1
  82. package/styles/ui-dialog.css +9 -3
  83. package/styles/ui-disclosure.css +1 -1
  84. package/styles/ui-editable.css +1 -1
  85. package/styles/ui-editor-block-actions.css +1 -1
  86. package/styles/ui-editor-chip-editor.css +1 -1
  87. package/styles/ui-editor-code-language.css +1 -1
  88. package/styles/ui-editor-footnote-editor.css +1 -1
  89. package/styles/ui-editor-formatting-tools.css +1 -0
  90. package/styles/ui-editor-image-toolbar.css +1 -1
  91. package/styles/ui-editor-insert-table-grid.css +1 -1
  92. package/styles/ui-editor-link-card.css +1 -1
  93. package/styles/ui-editor-link-form.css +1 -1
  94. package/styles/ui-editor-mention-menu-item.css +1 -1
  95. package/styles/ui-editor-mention-menu.css +1 -1
  96. package/styles/ui-editor-slash-menu-group.css +1 -1
  97. package/styles/ui-editor-slash-menu-item.css +1 -1
  98. package/styles/ui-editor-slash-menu.css +1 -1
  99. package/styles/ui-editor-surface.css +1 -1
  100. package/styles/ui-editor-table-context-menu.css +1 -1
  101. package/styles/ui-editor-table-overlay.css +1 -1
  102. package/styles/ui-editor-table-toolbar.css +1 -1
  103. package/styles/ui-editor-toolbar.css +1 -1
  104. package/styles/ui-editor.css +1 -0
  105. package/styles/ui-floating-action-button.css +1 -1
  106. package/styles/ui-form-field.css +1 -1
  107. package/styles/ui-grid.css +1 -1
  108. package/styles/ui-icon-button.css +1 -1
  109. package/styles/ui-icon.css +1 -1
  110. package/styles/ui-image.css +1 -1
  111. package/styles/ui-input-group.css +1 -1
  112. package/styles/ui-input.css +1 -1
  113. package/styles/ui-light-editor.css +1 -1
  114. package/styles/ui-list-item.css +1 -1
  115. package/styles/ui-list.css +1 -1
  116. package/styles/ui-listbox.css +1 -1
  117. package/styles/ui-menu-group.css +1 -1
  118. package/styles/ui-menu-item.css +1 -1
  119. package/styles/ui-menu.css +5 -2
  120. package/styles/ui-meter.css +8 -8
  121. package/styles/ui-nav-item.css +1 -1
  122. package/styles/ui-number-input.css +1 -1
  123. package/styles/ui-page-header.css +1 -1
  124. package/styles/ui-pagination.css +1 -1
  125. package/styles/ui-popover.css +5 -2
  126. package/styles/ui-radio-group.css +1 -1
  127. package/styles/ui-radio.css +1 -1
  128. package/styles/ui-reel.css +1 -1
  129. package/styles/ui-scroll-area.css +1 -1
  130. package/styles/ui-search-result-row.css +1 -1
  131. package/styles/ui-search-shell.css +1 -1
  132. package/styles/ui-section.css +1 -1
  133. package/styles/ui-select.css +1 -1
  134. package/styles/ui-separator.css +1 -1
  135. package/styles/ui-sidebar.css +1 -1
  136. package/styles/ui-site-header.css +1 -1
  137. package/styles/ui-skeleton.css +1 -1
  138. package/styles/ui-slider.css +1 -1
  139. package/styles/ui-spinner.css +1 -1
  140. package/styles/ui-stack.css +1 -1
  141. package/styles/ui-status-message.css +1 -1
  142. package/styles/ui-swatch.css +1 -1
  143. package/styles/ui-switch.css +1 -1
  144. package/styles/ui-switcher.css +1 -1
  145. package/styles/ui-table.css +1 -1
  146. package/styles/ui-tabs.css +1 -1
  147. package/styles/ui-text.css +1 -1
  148. package/styles/ui-textarea.css +1 -1
  149. package/styles/ui-toast-region.css +1 -1
  150. package/styles/ui-toast.css +1 -1
  151. package/styles/ui-tooltip.css +1 -1
  152. package/styles/ui-top-bar.css +1 -1
  153. package/styles/ui-tree-item.css +1 -1
  154. package/styles/ui-tree.css +1 -1
  155. package/vanilla/UiActionBar.d.ts +1 -1
  156. package/vanilla/UiActionBar.js +1 -1
  157. package/vanilla/UiAffordanceScope.d.ts +1 -1
  158. package/vanilla/UiAffordanceScope.js +1 -1
  159. package/vanilla/UiAvatar.d.ts +1 -1
  160. package/vanilla/UiAvatar.js +1 -1
  161. package/vanilla/UiAvatarGroup.d.ts +1 -1
  162. package/vanilla/UiAvatarGroup.js +1 -1
  163. package/vanilla/UiBadge.d.ts +1 -1
  164. package/vanilla/UiBadge.js +1 -1
  165. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  166. package/vanilla/UiBreadcrumbItem.js +1 -1
  167. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  168. package/vanilla/UiBreadcrumbs.js +1 -1
  169. package/vanilla/UiButton.d.ts +1 -1
  170. package/vanilla/UiButton.js +1 -1
  171. package/vanilla/UiCallout.d.ts +1 -1
  172. package/vanilla/UiCallout.js +1 -1
  173. package/vanilla/UiCard.d.ts +1 -1
  174. package/vanilla/UiCard.js +1 -1
  175. package/vanilla/UiCardGroup.d.ts +1 -1
  176. package/vanilla/UiCardGroup.js +1 -1
  177. package/vanilla/UiCheckbox.d.ts +1 -1
  178. package/vanilla/UiCheckbox.js +1 -1
  179. package/vanilla/UiCluster.d.ts +1 -1
  180. package/vanilla/UiCluster.js +1 -1
  181. package/vanilla/UiColorPicker.d.ts +1 -1
  182. package/vanilla/UiColorPicker.js +1 -1
  183. package/vanilla/UiCombobox.d.ts +1 -1
  184. package/vanilla/UiCombobox.js +1 -1
  185. package/vanilla/UiCompactContent.d.ts +23 -0
  186. package/vanilla/UiCompactContent.js +51 -0
  187. package/vanilla/UiCompactEditor.d.ts +29 -0
  188. package/vanilla/UiCompactEditor.js +59 -0
  189. package/vanilla/UiCompactMark.d.ts +25 -0
  190. package/vanilla/UiCompactMark.js +206 -0
  191. package/vanilla/UiCompactNode.d.ts +23 -0
  192. package/vanilla/UiCompactNode.js +156 -0
  193. package/vanilla/UiContainer.d.ts +1 -1
  194. package/vanilla/UiContainer.js +1 -1
  195. package/vanilla/UiContextMenu.d.ts +1 -1
  196. package/vanilla/UiContextMenu.js +1 -1
  197. package/vanilla/UiCover.d.ts +1 -1
  198. package/vanilla/UiCover.js +1 -1
  199. package/vanilla/UiCurveEditor.d.ts +1 -1
  200. package/vanilla/UiCurveEditor.js +1 -1
  201. package/vanilla/UiCycleButton.d.ts +1 -1
  202. package/vanilla/UiCycleButton.js +1 -1
  203. package/vanilla/UiDescriptionItem.d.ts +1 -1
  204. package/vanilla/UiDescriptionItem.js +1 -1
  205. package/vanilla/UiDescriptionList.d.ts +1 -1
  206. package/vanilla/UiDescriptionList.js +1 -1
  207. package/vanilla/UiDialog.d.ts +1 -1
  208. package/vanilla/UiDialog.js +1 -1
  209. package/vanilla/UiDisclosure.d.ts +1 -1
  210. package/vanilla/UiDisclosure.js +1 -1
  211. package/vanilla/UiEditable.d.ts +1 -1
  212. package/vanilla/UiEditable.js +1 -1
  213. package/vanilla/UiEditor.d.ts +57 -0
  214. package/vanilla/UiEditor.js +1067 -0
  215. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  216. package/vanilla/UiEditorBlockActions.js +1 -1
  217. package/vanilla/UiEditorChipEditor.d.ts +2 -1
  218. package/vanilla/UiEditorChipEditor.js +10 -10
  219. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  220. package/vanilla/UiEditorCodeLanguage.js +1 -1
  221. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  222. package/vanilla/UiEditorFootnoteEditor.js +1 -1
  223. package/vanilla/UiEditorFormattingTools.d.ts +27 -0
  224. package/vanilla/UiEditorFormattingTools.js +188 -0
  225. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  226. package/vanilla/UiEditorImageToolbar.js +1 -1
  227. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  228. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  229. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  230. package/vanilla/UiEditorLinkCard.js +1 -1
  231. package/vanilla/UiEditorLinkForm.d.ts +2 -1
  232. package/vanilla/UiEditorLinkForm.js +41 -41
  233. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  234. package/vanilla/UiEditorMentionMenu.js +1 -1
  235. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  236. package/vanilla/UiEditorMentionMenuItem.js +1 -1
  237. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  238. package/vanilla/UiEditorSlashMenu.js +1 -1
  239. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  240. package/vanilla/UiEditorSlashMenuGroup.js +1 -1
  241. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  242. package/vanilla/UiEditorSlashMenuItem.js +1 -1
  243. package/vanilla/UiEditorSurface.d.ts +1 -1
  244. package/vanilla/UiEditorSurface.js +1 -1
  245. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  246. package/vanilla/UiEditorTableContextMenu.js +10 -5
  247. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  248. package/vanilla/UiEditorTableOverlay.js +1 -1
  249. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  250. package/vanilla/UiEditorTableToolbar.js +1 -1
  251. package/vanilla/UiEditorToolbar.d.ts +1 -1
  252. package/vanilla/UiEditorToolbar.js +1 -1
  253. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  254. package/vanilla/UiFloatingActionButton.js +1 -1
  255. package/vanilla/UiFormField.d.ts +1 -1
  256. package/vanilla/UiFormField.js +1 -1
  257. package/vanilla/UiGrid.d.ts +1 -1
  258. package/vanilla/UiGrid.js +1 -1
  259. package/vanilla/UiIcon.d.ts +1 -1
  260. package/vanilla/UiIcon.js +1 -1
  261. package/vanilla/UiIconButton.d.ts +1 -1
  262. package/vanilla/UiIconButton.js +1 -1
  263. package/vanilla/UiImage.d.ts +1 -1
  264. package/vanilla/UiImage.js +1 -1
  265. package/vanilla/UiInput.d.ts +1 -1
  266. package/vanilla/UiInput.js +1 -1
  267. package/vanilla/UiInputGroup.d.ts +1 -1
  268. package/vanilla/UiInputGroup.js +1 -1
  269. package/vanilla/UiLightEditor.d.ts +1 -1
  270. package/vanilla/UiLightEditor.js +1 -1
  271. package/vanilla/UiList.d.ts +1 -1
  272. package/vanilla/UiList.js +1 -1
  273. package/vanilla/UiListItem.d.ts +1 -1
  274. package/vanilla/UiListItem.js +1 -1
  275. package/vanilla/UiListbox.d.ts +1 -1
  276. package/vanilla/UiListbox.js +1 -1
  277. package/vanilla/UiMenu.d.ts +1 -1
  278. package/vanilla/UiMenu.js +1 -1
  279. package/vanilla/UiMenuGroup.d.ts +1 -1
  280. package/vanilla/UiMenuGroup.js +1 -1
  281. package/vanilla/UiMenuItem.d.ts +1 -1
  282. package/vanilla/UiMenuItem.js +1 -1
  283. package/vanilla/UiMeter.d.ts +1 -1
  284. package/vanilla/UiMeter.js +1 -1
  285. package/vanilla/UiNavItem.d.ts +1 -1
  286. package/vanilla/UiNavItem.js +1 -1
  287. package/vanilla/UiNumberInput.d.ts +1 -1
  288. package/vanilla/UiNumberInput.js +1 -1
  289. package/vanilla/UiPageHeader.d.ts +1 -1
  290. package/vanilla/UiPageHeader.js +1 -1
  291. package/vanilla/UiPagination.d.ts +1 -1
  292. package/vanilla/UiPagination.js +1 -1
  293. package/vanilla/UiPopover.d.ts +1 -1
  294. package/vanilla/UiPopover.js +1 -1
  295. package/vanilla/UiRadio.d.ts +1 -1
  296. package/vanilla/UiRadio.js +1 -1
  297. package/vanilla/UiRadioGroup.d.ts +2 -1
  298. package/vanilla/UiRadioGroup.js +33 -28
  299. package/vanilla/UiReel.d.ts +1 -1
  300. package/vanilla/UiReel.js +1 -1
  301. package/vanilla/UiScrollArea.d.ts +1 -1
  302. package/vanilla/UiScrollArea.js +1 -1
  303. package/vanilla/UiSearchResultRow.d.ts +1 -1
  304. package/vanilla/UiSearchResultRow.js +1 -1
  305. package/vanilla/UiSearchShell.d.ts +1 -1
  306. package/vanilla/UiSearchShell.js +1 -1
  307. package/vanilla/UiSection.d.ts +1 -1
  308. package/vanilla/UiSection.js +1 -1
  309. package/vanilla/UiSelect.d.ts +1 -1
  310. package/vanilla/UiSelect.js +1 -1
  311. package/vanilla/UiSeparator.d.ts +1 -1
  312. package/vanilla/UiSeparator.js +1 -1
  313. package/vanilla/UiSidebar.d.ts +1 -1
  314. package/vanilla/UiSidebar.js +1 -1
  315. package/vanilla/UiSiteHeader.d.ts +1 -1
  316. package/vanilla/UiSiteHeader.js +1 -1
  317. package/vanilla/UiSkeleton.d.ts +1 -1
  318. package/vanilla/UiSkeleton.js +1 -1
  319. package/vanilla/UiSlider.d.ts +1 -1
  320. package/vanilla/UiSlider.js +1 -1
  321. package/vanilla/UiSpinner.d.ts +1 -1
  322. package/vanilla/UiSpinner.js +1 -1
  323. package/vanilla/UiStack.d.ts +1 -1
  324. package/vanilla/UiStack.js +1 -1
  325. package/vanilla/UiStatusMessage.d.ts +1 -1
  326. package/vanilla/UiStatusMessage.js +1 -1
  327. package/vanilla/UiSwatch.d.ts +1 -1
  328. package/vanilla/UiSwatch.js +1 -1
  329. package/vanilla/UiSwitch.d.ts +1 -1
  330. package/vanilla/UiSwitch.js +1 -1
  331. package/vanilla/UiSwitcher.d.ts +1 -1
  332. package/vanilla/UiSwitcher.js +1 -1
  333. package/vanilla/UiTable.d.ts +1 -1
  334. package/vanilla/UiTable.js +1 -1
  335. package/vanilla/UiTabs.d.ts +1 -1
  336. package/vanilla/UiTabs.js +1 -1
  337. package/vanilla/UiText.d.ts +1 -1
  338. package/vanilla/UiText.js +1 -1
  339. package/vanilla/UiTextarea.d.ts +1 -1
  340. package/vanilla/UiTextarea.js +1 -1
  341. package/vanilla/UiToast.d.ts +1 -1
  342. package/vanilla/UiToast.js +1 -1
  343. package/vanilla/UiToastRegion.d.ts +1 -1
  344. package/vanilla/UiToastRegion.js +1 -1
  345. package/vanilla/UiTooltip.d.ts +1 -1
  346. package/vanilla/UiTooltip.js +1 -1
  347. package/vanilla/UiTopBar.d.ts +1 -1
  348. package/vanilla/UiTopBar.js +1 -1
  349. package/vanilla/UiTree.d.ts +1 -1
  350. package/vanilla/UiTree.js +1 -1
  351. package/vanilla/UiTreeItem.d.ts +1 -1
  352. package/vanilla/UiTreeItem.js +1 -1
  353. package/vanilla/index.js +6 -0
  354. package/editor/chunks/table-backgrounds.js +0 -51
  355. package/vue/UiActionBar.d.ts +0 -19
  356. package/vue/UiActionBar.js +0 -2
  357. package/vue/UiActionBar.vue +0 -90
  358. package/vue/UiAffordanceScope.d.ts +0 -35
  359. package/vue/UiAffordanceScope.js +0 -2
  360. package/vue/UiAffordanceScope.vue +0 -182
  361. package/vue/UiAvatar.d.ts +0 -71
  362. package/vue/UiAvatar.js +0 -2
  363. package/vue/UiAvatar.vue +0 -394
  364. package/vue/UiAvatarGroup.d.ts +0 -53
  365. package/vue/UiAvatarGroup.js +0 -2
  366. package/vue/UiAvatarGroup.vue +0 -305
  367. package/vue/UiBadge.d.ts +0 -49
  368. package/vue/UiBadge.js +0 -2
  369. package/vue/UiBadge.vue +0 -810
  370. package/vue/UiBreadcrumbItem.d.ts +0 -29
  371. package/vue/UiBreadcrumbItem.js +0 -2
  372. package/vue/UiBreadcrumbItem.vue +0 -192
  373. package/vue/UiBreadcrumbs.d.ts +0 -29
  374. package/vue/UiBreadcrumbs.js +0 -2
  375. package/vue/UiBreadcrumbs.vue +0 -117
  376. package/vue/UiButton.d.ts +0 -131
  377. package/vue/UiButton.js +0 -2
  378. package/vue/UiButton.vue +0 -1609
  379. package/vue/UiCallout.d.ts +0 -35
  380. package/vue/UiCallout.js +0 -2
  381. package/vue/UiCallout.vue +0 -418
  382. package/vue/UiCard.d.ts +0 -81
  383. package/vue/UiCard.js +0 -2
  384. package/vue/UiCard.vue +0 -522
  385. package/vue/UiCardGroup.d.ts +0 -41
  386. package/vue/UiCardGroup.js +0 -2
  387. package/vue/UiCardGroup.vue +0 -168
  388. package/vue/UiCheckbox.d.ts +0 -95
  389. package/vue/UiCheckbox.js +0 -2
  390. package/vue/UiCheckbox.vue +0 -601
  391. package/vue/UiCluster.d.ts +0 -65
  392. package/vue/UiCluster.js +0 -2
  393. package/vue/UiCluster.vue +0 -304
  394. package/vue/UiColorPicker.d.ts +0 -71
  395. package/vue/UiColorPicker.js +0 -2
  396. package/vue/UiColorPicker.vue +0 -563
  397. package/vue/UiCombobox.d.ts +0 -538
  398. package/vue/UiCombobox.js +0 -2
  399. package/vue/UiCombobox.vue +0 -2894
  400. package/vue/UiContainer.d.ts +0 -41
  401. package/vue/UiContainer.js +0 -2
  402. package/vue/UiContainer.vue +0 -177
  403. package/vue/UiContextMenu.d.ts +0 -69
  404. package/vue/UiContextMenu.js +0 -2
  405. package/vue/UiContextMenu.vue +0 -289
  406. package/vue/UiCover.d.ts +0 -29
  407. package/vue/UiCover.js +0 -2
  408. package/vue/UiCover.vue +0 -127
  409. package/vue/UiCurveEditor.d.ts +0 -59
  410. package/vue/UiCurveEditor.js +0 -2
  411. package/vue/UiCurveEditor.vue +0 -429
  412. package/vue/UiCycleButton.d.ts +0 -69
  413. package/vue/UiCycleButton.js +0 -2
  414. package/vue/UiCycleButton.vue +0 -403
  415. package/vue/UiDescriptionItem.d.ts +0 -29
  416. package/vue/UiDescriptionItem.js +0 -2
  417. package/vue/UiDescriptionItem.vue +0 -124
  418. package/vue/UiDescriptionList.d.ts +0 -41
  419. package/vue/UiDescriptionList.js +0 -2
  420. package/vue/UiDescriptionList.vue +0 -217
  421. package/vue/UiDialog.d.ts +0 -97
  422. package/vue/UiDialog.js +0 -2
  423. package/vue/UiDialog.vue +0 -817
  424. package/vue/UiDisclosure.d.ts +0 -107
  425. package/vue/UiDisclosure.js +0 -2
  426. package/vue/UiDisclosure.vue +0 -605
  427. package/vue/UiEditable.d.ts +0 -113
  428. package/vue/UiEditable.js +0 -2
  429. package/vue/UiEditable.vue +0 -582
  430. package/vue/UiEditorBlockActions.d.ts +0 -33
  431. package/vue/UiEditorBlockActions.js +0 -2
  432. package/vue/UiEditorBlockActions.vue +0 -163
  433. package/vue/UiEditorChipEditor.d.ts +0 -45
  434. package/vue/UiEditorChipEditor.js +0 -2
  435. package/vue/UiEditorChipEditor.vue +0 -208
  436. package/vue/UiEditorCodeLanguage.d.ts +0 -41
  437. package/vue/UiEditorCodeLanguage.js +0 -2
  438. package/vue/UiEditorCodeLanguage.vue +0 -200
  439. package/vue/UiEditorFootnoteEditor.d.ts +0 -39
  440. package/vue/UiEditorFootnoteEditor.js +0 -2
  441. package/vue/UiEditorFootnoteEditor.vue +0 -152
  442. package/vue/UiEditorImageToolbar.d.ts +0 -51
  443. package/vue/UiEditorImageToolbar.js +0 -2
  444. package/vue/UiEditorImageToolbar.vue +0 -446
  445. package/vue/UiEditorInsertTableGrid.d.ts +0 -49
  446. package/vue/UiEditorInsertTableGrid.js +0 -2
  447. package/vue/UiEditorInsertTableGrid.vue +0 -367
  448. package/vue/UiEditorLinkCard.d.ts +0 -49
  449. package/vue/UiEditorLinkCard.js +0 -2
  450. package/vue/UiEditorLinkCard.vue +0 -385
  451. package/vue/UiEditorLinkForm.d.ts +0 -131
  452. package/vue/UiEditorLinkForm.js +0 -2
  453. package/vue/UiEditorLinkForm.vue +0 -664
  454. package/vue/UiEditorMentionMenu.d.ts +0 -121
  455. package/vue/UiEditorMentionMenu.js +0 -2
  456. package/vue/UiEditorMentionMenu.vue +0 -596
  457. package/vue/UiEditorMentionMenuItem.d.ts +0 -43
  458. package/vue/UiEditorMentionMenuItem.js +0 -2
  459. package/vue/UiEditorMentionMenuItem.vue +0 -205
  460. package/vue/UiEditorSlashMenu.d.ts +0 -111
  461. package/vue/UiEditorSlashMenu.js +0 -2
  462. package/vue/UiEditorSlashMenu.vue +0 -549
  463. package/vue/UiEditorSlashMenuGroup.d.ts +0 -29
  464. package/vue/UiEditorSlashMenuGroup.js +0 -2
  465. package/vue/UiEditorSlashMenuGroup.vue +0 -113
  466. package/vue/UiEditorSlashMenuItem.d.ts +0 -53
  467. package/vue/UiEditorSlashMenuItem.js +0 -2
  468. package/vue/UiEditorSlashMenuItem.vue +0 -249
  469. package/vue/UiEditorSurface.d.ts +0 -29
  470. package/vue/UiEditorSurface.js +0 -2
  471. package/vue/UiEditorSurface.vue +0 -117
  472. package/vue/UiEditorTableContextMenu.d.ts +0 -57
  473. package/vue/UiEditorTableContextMenu.js +0 -2
  474. package/vue/UiEditorTableContextMenu.vue +0 -694
  475. package/vue/UiEditorTableOverlay.d.ts +0 -191
  476. package/vue/UiEditorTableOverlay.js +0 -2
  477. package/vue/UiEditorTableOverlay.vue +0 -1099
  478. package/vue/UiEditorTableToolbar.d.ts +0 -57
  479. package/vue/UiEditorTableToolbar.js +0 -2
  480. package/vue/UiEditorTableToolbar.vue +0 -834
  481. package/vue/UiEditorToolbar.d.ts +0 -29
  482. package/vue/UiEditorToolbar.js +0 -2
  483. package/vue/UiEditorToolbar.vue +0 -296
  484. package/vue/UiFloatingActionButton.d.ts +0 -41
  485. package/vue/UiFloatingActionButton.js +0 -2
  486. package/vue/UiFloatingActionButton.vue +0 -201
  487. package/vue/UiFormField.d.ts +0 -49
  488. package/vue/UiFormField.js +0 -2
  489. package/vue/UiFormField.vue +0 -256
  490. package/vue/UiGrid.d.ts +0 -41
  491. package/vue/UiGrid.js +0 -2
  492. package/vue/UiGrid.vue +0 -190
  493. package/vue/UiIcon.d.ts +0 -25
  494. package/vue/UiIcon.js +0 -2
  495. package/vue/UiIcon.vue +0 -612
  496. package/vue/UiIconButton.d.ts +0 -101
  497. package/vue/UiIconButton.js +0 -2
  498. package/vue/UiIconButton.vue +0 -1141
  499. package/vue/UiImage.d.ts +0 -85
  500. package/vue/UiImage.js +0 -2
  501. package/vue/UiImage.vue +0 -462
  502. package/vue/UiInput.d.ts +0 -50
  503. package/vue/UiInput.js +0 -2
  504. package/vue/UiInput.vue +0 -671
  505. package/vue/UiInputGroup.d.ts +0 -59
  506. package/vue/UiInputGroup.js +0 -2
  507. package/vue/UiInputGroup.vue +0 -447
  508. package/vue/UiLightEditor.d.ts +0 -83
  509. package/vue/UiLightEditor.js +0 -2
  510. package/vue/UiLightEditor.vue +0 -537
  511. package/vue/UiList.d.ts +0 -49
  512. package/vue/UiList.js +0 -2
  513. package/vue/UiList.vue +0 -260
  514. package/vue/UiListItem.d.ts +0 -65
  515. package/vue/UiListItem.js +0 -2
  516. package/vue/UiListItem.vue +0 -407
  517. package/vue/UiListbox.d.ts +0 -87
  518. package/vue/UiListbox.js +0 -2
  519. package/vue/UiListbox.vue +0 -554
  520. package/vue/UiMenu.d.ts +0 -99
  521. package/vue/UiMenu.js +0 -2
  522. package/vue/UiMenu.vue +0 -541
  523. package/vue/UiMenuGroup.d.ts +0 -29
  524. package/vue/UiMenuGroup.js +0 -2
  525. package/vue/UiMenuGroup.vue +0 -105
  526. package/vue/UiMenuItem.d.ts +0 -89
  527. package/vue/UiMenuItem.js +0 -2
  528. package/vue/UiMenuItem.vue +0 -532
  529. package/vue/UiMeter.d.ts +0 -73
  530. package/vue/UiMeter.js +0 -2
  531. package/vue/UiMeter.vue +0 -1112
  532. package/vue/UiNavItem.d.ts +0 -79
  533. package/vue/UiNavItem.js +0 -2
  534. package/vue/UiNavItem.vue +0 -493
  535. package/vue/UiNumberInput.d.ts +0 -89
  536. package/vue/UiNumberInput.js +0 -2
  537. package/vue/UiNumberInput.vue +0 -445
  538. package/vue/UiPageHeader.d.ts +0 -37
  539. package/vue/UiPageHeader.js +0 -2
  540. package/vue/UiPageHeader.vue +0 -192
  541. package/vue/UiPagination.d.ts +0 -115
  542. package/vue/UiPagination.js +0 -2
  543. package/vue/UiPagination.vue +0 -596
  544. package/vue/UiPopover.d.ts +0 -77
  545. package/vue/UiPopover.js +0 -2
  546. package/vue/UiPopover.vue +0 -495
  547. package/vue/UiRadio.d.ts +0 -77
  548. package/vue/UiRadio.js +0 -2
  549. package/vue/UiRadio.vue +0 -475
  550. package/vue/UiRadioGroup.d.ts +0 -95
  551. package/vue/UiRadioGroup.js +0 -2
  552. package/vue/UiRadioGroup.vue +0 -393
  553. package/vue/UiReel.d.ts +0 -41
  554. package/vue/UiReel.js +0 -2
  555. package/vue/UiReel.vue +0 -223
  556. package/vue/UiScrollArea.d.ts +0 -53
  557. package/vue/UiScrollArea.js +0 -2
  558. package/vue/UiScrollArea.vue +0 -307
  559. package/vue/UiSearchResultRow.d.ts +0 -49
  560. package/vue/UiSearchResultRow.js +0 -2
  561. package/vue/UiSearchResultRow.vue +0 -268
  562. package/vue/UiSearchShell.d.ts +0 -67
  563. package/vue/UiSearchShell.js +0 -2
  564. package/vue/UiSearchShell.vue +0 -391
  565. package/vue/UiSection.d.ts +0 -51
  566. package/vue/UiSection.js +0 -2
  567. package/vue/UiSection.vue +0 -331
  568. package/vue/UiSelect.d.ts +0 -69
  569. package/vue/UiSelect.js +0 -2
  570. package/vue/UiSelect.vue +0 -391
  571. package/vue/UiSeparator.d.ts +0 -37
  572. package/vue/UiSeparator.js +0 -2
  573. package/vue/UiSeparator.vue +0 -199
  574. package/vue/UiSidebar.d.ts +0 -99
  575. package/vue/UiSidebar.js +0 -2
  576. package/vue/UiSidebar.vue +0 -579
  577. package/vue/UiSiteHeader.d.ts +0 -59
  578. package/vue/UiSiteHeader.js +0 -2
  579. package/vue/UiSiteHeader.vue +0 -904
  580. package/vue/UiSkeleton.d.ts +0 -37
  581. package/vue/UiSkeleton.js +0 -2
  582. package/vue/UiSkeleton.vue +0 -287
  583. package/vue/UiSlider.d.ts +0 -89
  584. package/vue/UiSlider.js +0 -2
  585. package/vue/UiSlider.vue +0 -448
  586. package/vue/UiSpinner.d.ts +0 -25
  587. package/vue/UiSpinner.js +0 -2
  588. package/vue/UiSpinner.vue +0 -330
  589. package/vue/UiStack.d.ts +0 -53
  590. package/vue/UiStack.js +0 -2
  591. package/vue/UiStack.vue +0 -247
  592. package/vue/UiStatusMessage.d.ts +0 -43
  593. package/vue/UiStatusMessage.js +0 -2
  594. package/vue/UiStatusMessage.vue +0 -239
  595. package/vue/UiSwatch.d.ts +0 -19
  596. package/vue/UiSwatch.js +0 -2
  597. package/vue/UiSwatch.vue +0 -188
  598. package/vue/UiSwitch.d.ts +0 -77
  599. package/vue/UiSwitch.js +0 -2
  600. package/vue/UiSwitch.vue +0 -478
  601. package/vue/UiSwitcher.d.ts +0 -47
  602. package/vue/UiSwitcher.js +0 -2
  603. package/vue/UiSwitcher.vue +0 -258
  604. package/vue/UiTable.d.ts +0 -35
  605. package/vue/UiTable.js +0 -2
  606. package/vue/UiTable.vue +0 -280
  607. package/vue/UiTabs.d.ts +0 -81
  608. package/vue/UiTabs.js +0 -2
  609. package/vue/UiTabs.vue +0 -493
  610. package/vue/UiText.d.ts +0 -111
  611. package/vue/UiText.js +0 -2
  612. package/vue/UiText.vue +0 -836
  613. package/vue/UiTextarea.d.ts +0 -77
  614. package/vue/UiTextarea.js +0 -2
  615. package/vue/UiTextarea.vue +0 -477
  616. package/vue/UiToast.d.ts +0 -49
  617. package/vue/UiToast.js +0 -2
  618. package/vue/UiToast.vue +0 -337
  619. package/vue/UiToastRegion.d.ts +0 -61
  620. package/vue/UiToastRegion.js +0 -2
  621. package/vue/UiToastRegion.vue +0 -631
  622. package/vue/UiTooltip.d.ts +0 -93
  623. package/vue/UiTooltip.js +0 -2
  624. package/vue/UiTooltip.vue +0 -627
  625. package/vue/UiTopBar.d.ts +0 -35
  626. package/vue/UiTopBar.js +0 -2
  627. package/vue/UiTopBar.vue +0 -240
  628. package/vue/UiTree.d.ts +0 -123
  629. package/vue/UiTree.js +0 -2
  630. package/vue/UiTree.vue +0 -419
  631. package/vue/UiTreeItem.d.ts +0 -133
  632. package/vue/UiTreeItem.js +0 -2
  633. package/vue/UiTreeItem.vue +0 -1962
  634. package/vue/chunks/UiActionBar.js +0 -42
  635. package/vue/chunks/UiAffordanceScope.js +0 -136
  636. package/vue/chunks/UiAvatar.js +0 -341
  637. package/vue/chunks/UiAvatarGroup.js +0 -234
  638. package/vue/chunks/UiBadge.js +0 -188
  639. package/vue/chunks/UiBreadcrumbItem.js +0 -104
  640. package/vue/chunks/UiBreadcrumbs.js +0 -67
  641. package/vue/chunks/UiButton.js +0 -881
  642. package/vue/chunks/UiCallout.js +0 -302
  643. package/vue/chunks/UiCard.js +0 -369
  644. package/vue/chunks/UiCardGroup.js +0 -153
  645. package/vue/chunks/UiCheckbox.js +0 -361
  646. package/vue/chunks/UiCluster.js +0 -236
  647. package/vue/chunks/UiColorPicker.js +0 -375
  648. package/vue/chunks/UiCombobox.js +0 -2186
  649. package/vue/chunks/UiContainer.js +0 -122
  650. package/vue/chunks/UiContextMenu.js +0 -157
  651. package/vue/chunks/UiCover.js +0 -66
  652. package/vue/chunks/UiCurveEditor.js +0 -415
  653. package/vue/chunks/UiCycleButton.js +0 -352
  654. package/vue/chunks/UiDescriptionItem.js +0 -64
  655. package/vue/chunks/UiDescriptionList.js +0 -133
  656. package/vue/chunks/UiDialog.js +0 -367
  657. package/vue/chunks/UiDisclosure.js +0 -403
  658. package/vue/chunks/UiEditable.js +0 -436
  659. package/vue/chunks/UiEditorBlockActions.js +0 -157
  660. package/vue/chunks/UiEditorChipEditor.js +0 -191
  661. package/vue/chunks/UiEditorCodeLanguage.js +0 -181
  662. package/vue/chunks/UiEditorFootnoteEditor.js +0 -114
  663. package/vue/chunks/UiEditorImageToolbar.js +0 -531
  664. package/vue/chunks/UiEditorInsertTableGrid.js +0 -325
  665. package/vue/chunks/UiEditorLinkCard.js +0 -391
  666. package/vue/chunks/UiEditorLinkForm.js +0 -711
  667. package/vue/chunks/UiEditorMentionMenu.js +0 -618
  668. package/vue/chunks/UiEditorMentionMenuItem.js +0 -140
  669. package/vue/chunks/UiEditorSlashMenu.js +0 -555
  670. package/vue/chunks/UiEditorSlashMenuGroup.js +0 -78
  671. package/vue/chunks/UiEditorSlashMenuItem.js +0 -197
  672. package/vue/chunks/UiEditorSurface.js +0 -66
  673. package/vue/chunks/UiEditorTableContextMenu.js +0 -500
  674. package/vue/chunks/UiEditorTableOverlay.js +0 -987
  675. package/vue/chunks/UiEditorTableToolbar.js +0 -707
  676. package/vue/chunks/UiEditorToolbar.js +0 -103
  677. package/vue/chunks/UiFloatingActionButton.js +0 -123
  678. package/vue/chunks/UiFormField.js +0 -172
  679. package/vue/chunks/UiGrid.js +0 -127
  680. package/vue/chunks/UiIcon.js +0 -1361
  681. package/vue/chunks/UiIconButton.js +0 -469
  682. package/vue/chunks/UiImage.js +0 -312
  683. package/vue/chunks/UiInput.js +0 -709
  684. package/vue/chunks/UiInputGroup.js +0 -225
  685. package/vue/chunks/UiLightEditor.js +0 -365
  686. package/vue/chunks/UiList.js +0 -178
  687. package/vue/chunks/UiListItem.js +0 -219
  688. package/vue/chunks/UiListbox.js +0 -489
  689. package/vue/chunks/UiMenu.js +0 -286
  690. package/vue/chunks/UiMenuGroup.js +0 -75
  691. package/vue/chunks/UiMenuItem.js +0 -374
  692. package/vue/chunks/UiMeter.js +0 -540
  693. package/vue/chunks/UiNavItem.js +0 -380
  694. package/vue/chunks/UiNumberInput.js +0 -432
  695. package/vue/chunks/UiPageHeader.js +0 -100
  696. package/vue/chunks/UiPagination.js +0 -537
  697. package/vue/chunks/UiPopover.js +0 -243
  698. package/vue/chunks/UiRadio.js +0 -291
  699. package/vue/chunks/UiRadioGroup.js +0 -300
  700. package/vue/chunks/UiReel.js +0 -133
  701. package/vue/chunks/UiScrollArea.js +0 -219
  702. package/vue/chunks/UiSearchResultRow.js +0 -164
  703. package/vue/chunks/UiSearchShell.js +0 -215
  704. package/vue/chunks/UiSection.js +0 -228
  705. package/vue/chunks/UiSelect.js +0 -251
  706. package/vue/chunks/UiSeparator.js +0 -144
  707. package/vue/chunks/UiSidebar.js +0 -358
  708. package/vue/chunks/UiSiteHeader.js +0 -335
  709. package/vue/chunks/UiSkeleton.js +0 -183
  710. package/vue/chunks/UiSlider.js +0 -427
  711. package/vue/chunks/UiSpinner.js +0 -181
  712. package/vue/chunks/UiStack.js +0 -177
  713. package/vue/chunks/UiStatusMessage.js +0 -176
  714. package/vue/chunks/UiSwatch.js +0 -93
  715. package/vue/chunks/UiSwitch.js +0 -292
  716. package/vue/chunks/UiSwitcher.js +0 -194
  717. package/vue/chunks/UiTable.js +0 -128
  718. package/vue/chunks/UiTabs.js +0 -334
  719. package/vue/chunks/UiText.js +0 -747
  720. package/vue/chunks/UiTextarea.js +0 -313
  721. package/vue/chunks/UiToast.js +0 -174
  722. package/vue/chunks/UiToastRegion.js +0 -275
  723. package/vue/chunks/UiTooltip.js +0 -297
  724. package/vue/chunks/UiTopBar.js +0 -129
  725. package/vue/chunks/UiTree.js +0 -282
  726. package/vue/chunks/UiTreeItem.js +0 -699
  727. package/vue/chunks/_plugin-vue_export-helper.js +0 -1265
  728. package/vue/chunks/control.js +0 -214
  729. package/vue/chunks/props.js +0 -1228
  730. package/vue/components.css +0 -17539
  731. package/vue/editor/LoomaEditor.d.ts +0 -433
  732. package/vue/editor/compact/index.d.ts +0 -84
  733. package/vue/editor/compact/index.js +0 -2
  734. package/vue/editor/index.d.ts +0 -5
  735. package/vue/editor/index.js +0 -17281
  736. package/vue/editor/primitives.d.ts +0 -120
  737. package/vue/host.ts +0 -2272
  738. package/vue/index.d.ts +0 -94
  739. package/vue/index.js +0 -95
  740. package/vue/props.d.ts +0 -272
  741. /package/{vue → editor}/chunks/1c.js +0 -0
  742. /package/{vue → editor}/chunks/abnf.js +0 -0
  743. /package/{vue → editor}/chunks/accesslog.js +0 -0
  744. /package/{vue → editor}/chunks/actionscript.js +0 -0
  745. /package/{vue → editor}/chunks/ada.js +0 -0
  746. /package/{vue → editor}/chunks/angelscript.js +0 -0
  747. /package/{vue → editor}/chunks/apache.js +0 -0
  748. /package/{vue → editor}/chunks/applescript.js +0 -0
  749. /package/{vue → editor}/chunks/arcade.js +0 -0
  750. /package/{vue → editor}/chunks/arduino.js +0 -0
  751. /package/{vue → editor}/chunks/armasm.js +0 -0
  752. /package/{vue → editor}/chunks/asciidoc.js +0 -0
  753. /package/{vue → editor}/chunks/aspectj.js +0 -0
  754. /package/{vue → editor}/chunks/autohotkey.js +0 -0
  755. /package/{vue → editor}/chunks/autoit.js +0 -0
  756. /package/{vue → editor}/chunks/avrasm.js +0 -0
  757. /package/{vue → editor}/chunks/awk.js +0 -0
  758. /package/{vue → editor}/chunks/axapta.js +0 -0
  759. /package/{vue → editor}/chunks/bash.js +0 -0
  760. /package/{vue → editor}/chunks/basic.js +0 -0
  761. /package/{vue → editor}/chunks/bnf.js +0 -0
  762. /package/{vue → editor}/chunks/brainfuck.js +0 -0
  763. /package/{vue → editor}/chunks/c.js +0 -0
  764. /package/{vue → editor}/chunks/cal.js +0 -0
  765. /package/{vue → editor}/chunks/capnproto.js +0 -0
  766. /package/{vue → editor}/chunks/ceylon.js +0 -0
  767. /package/{vue → editor}/chunks/clean.js +0 -0
  768. /package/{vue → editor}/chunks/clojure-repl.js +0 -0
  769. /package/{vue → editor}/chunks/clojure.js +0 -0
  770. /package/{vue → editor}/chunks/cmake.js +0 -0
  771. /package/{vue → editor}/chunks/coffeescript.js +0 -0
  772. /package/{vue → editor}/chunks/coq.js +0 -0
  773. /package/{vue → editor}/chunks/cos.js +0 -0
  774. /package/{vue → editor}/chunks/cpp.js +0 -0
  775. /package/{vue → editor}/chunks/crmsh.js +0 -0
  776. /package/{vue → editor}/chunks/crystal.js +0 -0
  777. /package/{vue → editor}/chunks/csharp.js +0 -0
  778. /package/{vue → editor}/chunks/csp.js +0 -0
  779. /package/{vue → editor}/chunks/css.js +0 -0
  780. /package/{vue → editor}/chunks/d.js +0 -0
  781. /package/{vue → editor}/chunks/dart.js +0 -0
  782. /package/{vue → editor}/chunks/delphi.js +0 -0
  783. /package/{vue → editor}/chunks/diff.js +0 -0
  784. /package/{vue → editor}/chunks/django.js +0 -0
  785. /package/{vue → editor}/chunks/dns.js +0 -0
  786. /package/{vue → editor}/chunks/dockerfile.js +0 -0
  787. /package/{vue → editor}/chunks/dos.js +0 -0
  788. /package/{vue → editor}/chunks/dsconfig.js +0 -0
  789. /package/{vue → editor}/chunks/dts.js +0 -0
  790. /package/{vue → editor}/chunks/dust.js +0 -0
  791. /package/{vue → editor}/chunks/ebnf.js +0 -0
  792. /package/{vue → editor}/chunks/elixir.js +0 -0
  793. /package/{vue → editor}/chunks/elm.js +0 -0
  794. /package/{vue → editor}/chunks/erb.js +0 -0
  795. /package/{vue → editor}/chunks/erlang-repl.js +0 -0
  796. /package/{vue → editor}/chunks/erlang.js +0 -0
  797. /package/{vue → editor}/chunks/excel.js +0 -0
  798. /package/{vue → editor}/chunks/fix.js +0 -0
  799. /package/{vue → editor}/chunks/flix.js +0 -0
  800. /package/{vue → editor}/chunks/fortran.js +0 -0
  801. /package/{vue → editor}/chunks/fsharp.js +0 -0
  802. /package/{vue → editor}/chunks/gams.js +0 -0
  803. /package/{vue → editor}/chunks/gauss.js +0 -0
  804. /package/{vue → editor}/chunks/gcode.js +0 -0
  805. /package/{vue → editor}/chunks/gherkin.js +0 -0
  806. /package/{vue → editor}/chunks/glsl.js +0 -0
  807. /package/{vue → editor}/chunks/gml.js +0 -0
  808. /package/{vue → editor}/chunks/go.js +0 -0
  809. /package/{vue → editor}/chunks/golo.js +0 -0
  810. /package/{vue → editor}/chunks/gradle.js +0 -0
  811. /package/{vue → editor}/chunks/graphql.js +0 -0
  812. /package/{vue → editor}/chunks/groovy.js +0 -0
  813. /package/{vue → editor}/chunks/haml.js +0 -0
  814. /package/{vue → editor}/chunks/handlebars.js +0 -0
  815. /package/{vue → editor}/chunks/haskell.js +0 -0
  816. /package/{vue → editor}/chunks/haxe.js +0 -0
  817. /package/{vue → editor}/chunks/hsp.js +0 -0
  818. /package/{vue → editor}/chunks/http.js +0 -0
  819. /package/{vue → editor}/chunks/hy.js +0 -0
  820. /package/{vue → editor}/chunks/inform7.js +0 -0
  821. /package/{vue → editor}/chunks/ini.js +0 -0
  822. /package/{vue → editor}/chunks/irpf90.js +0 -0
  823. /package/{vue → editor}/chunks/isbl.js +0 -0
  824. /package/{vue → editor}/chunks/java.js +0 -0
  825. /package/{vue → editor}/chunks/javascript.js +0 -0
  826. /package/{vue → editor}/chunks/jboss-cli.js +0 -0
  827. /package/{vue → editor}/chunks/json.js +0 -0
  828. /package/{vue → editor}/chunks/julia-repl.js +0 -0
  829. /package/{vue → editor}/chunks/julia.js +0 -0
  830. /package/{vue → editor}/chunks/kotlin.js +0 -0
  831. /package/{vue → editor}/chunks/lasso.js +0 -0
  832. /package/{vue → editor}/chunks/latex.js +0 -0
  833. /package/{vue → editor}/chunks/ldif.js +0 -0
  834. /package/{vue → editor}/chunks/leaf.js +0 -0
  835. /package/{vue → editor}/chunks/less.js +0 -0
  836. /package/{vue → editor}/chunks/lisp.js +0 -0
  837. /package/{vue → editor}/chunks/livecodeserver.js +0 -0
  838. /package/{vue → editor}/chunks/livescript.js +0 -0
  839. /package/{vue → editor}/chunks/llvm.js +0 -0
  840. /package/{vue → editor}/chunks/lsl.js +0 -0
  841. /package/{vue → editor}/chunks/lua.js +0 -0
  842. /package/{vue → editor}/chunks/makefile.js +0 -0
  843. /package/{vue → editor}/chunks/markdown.js +0 -0
  844. /package/{vue → editor}/chunks/mathematica.js +0 -0
  845. /package/{vue → editor}/chunks/matlab.js +0 -0
  846. /package/{vue → editor}/chunks/maxima.js +0 -0
  847. /package/{vue → editor}/chunks/mel.js +0 -0
  848. /package/{vue → editor}/chunks/mercury.js +0 -0
  849. /package/{vue → editor}/chunks/mipsasm.js +0 -0
  850. /package/{vue → editor}/chunks/mizar.js +0 -0
  851. /package/{vue → editor}/chunks/mojolicious.js +0 -0
  852. /package/{vue → editor}/chunks/monkey.js +0 -0
  853. /package/{vue → editor}/chunks/moonscript.js +0 -0
  854. /package/{vue → editor}/chunks/n1ql.js +0 -0
  855. /package/{vue → editor}/chunks/nestedtext.js +0 -0
  856. /package/{vue → editor}/chunks/nginx.js +0 -0
  857. /package/{vue → editor}/chunks/nim.js +0 -0
  858. /package/{vue → editor}/chunks/nix.js +0 -0
  859. /package/{vue → editor}/chunks/node-repl.js +0 -0
  860. /package/{vue → editor}/chunks/nsis.js +0 -0
  861. /package/{vue → editor}/chunks/objectivec.js +0 -0
  862. /package/{vue → editor}/chunks/ocaml.js +0 -0
  863. /package/{vue → editor}/chunks/openscad.js +0 -0
  864. /package/{vue → editor}/chunks/oxygene.js +0 -0
  865. /package/{vue → editor}/chunks/parser3.js +0 -0
  866. /package/{vue → editor}/chunks/perl.js +0 -0
  867. /package/{vue → editor}/chunks/pf.js +0 -0
  868. /package/{vue → editor}/chunks/pgsql.js +0 -0
  869. /package/{vue → editor}/chunks/php-template.js +0 -0
  870. /package/{vue → editor}/chunks/php.js +0 -0
  871. /package/{vue → editor}/chunks/plaintext.js +0 -0
  872. /package/{vue → editor}/chunks/pony.js +0 -0
  873. /package/{vue → editor}/chunks/powershell.js +0 -0
  874. /package/{vue → editor}/chunks/processing.js +0 -0
  875. /package/{vue → editor}/chunks/profile.js +0 -0
  876. /package/{vue → editor}/chunks/prolog.js +0 -0
  877. /package/{vue → editor}/chunks/properties.js +0 -0
  878. /package/{vue → editor}/chunks/protobuf.js +0 -0
  879. /package/{vue → editor}/chunks/puppet.js +0 -0
  880. /package/{vue → editor}/chunks/purebasic.js +0 -0
  881. /package/{vue → editor}/chunks/python-repl.js +0 -0
  882. /package/{vue → editor}/chunks/python.js +0 -0
  883. /package/{vue → editor}/chunks/q.js +0 -0
  884. /package/{vue → editor}/chunks/qml.js +0 -0
  885. /package/{vue → editor}/chunks/r.js +0 -0
  886. /package/{vue → editor}/chunks/reasonml.js +0 -0
  887. /package/{vue → editor}/chunks/rib.js +0 -0
  888. /package/{vue → editor}/chunks/roboconf.js +0 -0
  889. /package/{vue → editor}/chunks/routeros.js +0 -0
  890. /package/{vue → editor}/chunks/rsl.js +0 -0
  891. /package/{vue → editor}/chunks/ruby.js +0 -0
  892. /package/{vue → editor}/chunks/ruleslanguage.js +0 -0
  893. /package/{vue → editor}/chunks/rust.js +0 -0
  894. /package/{vue → editor}/chunks/sas.js +0 -0
  895. /package/{vue → editor}/chunks/scala.js +0 -0
  896. /package/{vue → editor}/chunks/scheme.js +0 -0
  897. /package/{vue → editor}/chunks/scilab.js +0 -0
  898. /package/{vue → editor}/chunks/scss.js +0 -0
  899. /package/{vue → editor}/chunks/shell.js +0 -0
  900. /package/{vue → editor}/chunks/smali.js +0 -0
  901. /package/{vue → editor}/chunks/smalltalk.js +0 -0
  902. /package/{vue → editor}/chunks/sml.js +0 -0
  903. /package/{vue → editor}/chunks/sqf.js +0 -0
  904. /package/{vue → editor}/chunks/sql.js +0 -0
  905. /package/{vue → editor}/chunks/stan.js +0 -0
  906. /package/{vue → editor}/chunks/stata.js +0 -0
  907. /package/{vue → editor}/chunks/step21.js +0 -0
  908. /package/{vue → editor}/chunks/stylus.js +0 -0
  909. /package/{vue → editor}/chunks/subunit.js +0 -0
  910. /package/{vue → editor}/chunks/swift.js +0 -0
  911. /package/{vue → editor}/chunks/taggerscript.js +0 -0
  912. /package/{vue → editor}/chunks/tap.js +0 -0
  913. /package/{vue → editor}/chunks/tcl.js +0 -0
  914. /package/{vue → editor}/chunks/thrift.js +0 -0
  915. /package/{vue → editor}/chunks/tp.js +0 -0
  916. /package/{vue → editor}/chunks/twig.js +0 -0
  917. /package/{vue → editor}/chunks/typescript.js +0 -0
  918. /package/{vue → editor}/chunks/vala.js +0 -0
  919. /package/{vue → editor}/chunks/vbnet.js +0 -0
  920. /package/{vue → editor}/chunks/vbscript-html.js +0 -0
  921. /package/{vue → editor}/chunks/vbscript.js +0 -0
  922. /package/{vue → editor}/chunks/verilog.js +0 -0
  923. /package/{vue → editor}/chunks/vhdl.js +0 -0
  924. /package/{vue → editor}/chunks/vim.js +0 -0
  925. /package/{vue → editor}/chunks/wasm.js +0 -0
  926. /package/{vue → editor}/chunks/wren.js +0 -0
  927. /package/{vue → editor}/chunks/x86asm.js +0 -0
  928. /package/{vue → editor}/chunks/xl.js +0 -0
  929. /package/{vue → editor}/chunks/xml.js +0 -0
  930. /package/{vue → editor}/chunks/xquery.js +0 -0
  931. /package/{vue → editor}/chunks/yaml.js +0 -0
  932. /package/{vue → editor}/chunks/zephir.js +0 -0
  933. /package/{vue/editor/compact/extensions.d.ts → editor/compact-extensions.d.ts} +0 -0
@@ -1,1228 +0,0 @@
1
- import { computed, shallowRef, watch } from "vue";
2
- //#region .build/vue/props.ts
3
- var CSS_NAMED_COLOR_SET = /* @__PURE__ */ new Set([
4
- "accentcolor",
5
- "accentcolortext",
6
- "activetext",
7
- "aliceblue",
8
- "antiquewhite",
9
- "aqua",
10
- "aquamarine",
11
- "azure",
12
- "beige",
13
- "bisque",
14
- "black",
15
- "blanchedalmond",
16
- "blue",
17
- "blueviolet",
18
- "brown",
19
- "burlywood",
20
- "buttonborder",
21
- "buttonface",
22
- "buttontext",
23
- "cadetblue",
24
- "canvas",
25
- "canvastext",
26
- "chartreuse",
27
- "chocolate",
28
- "coral",
29
- "cornflowerblue",
30
- "cornsilk",
31
- "crimson",
32
- "currentcolor",
33
- "cyan",
34
- "darkblue",
35
- "darkcyan",
36
- "darkgoldenrod",
37
- "darkgray",
38
- "darkgreen",
39
- "darkgrey",
40
- "darkkhaki",
41
- "darkmagenta",
42
- "darkolivegreen",
43
- "darkorange",
44
- "darkorchid",
45
- "darkred",
46
- "darksalmon",
47
- "darkseagreen",
48
- "darkslateblue",
49
- "darkslategray",
50
- "darkslategrey",
51
- "darkturquoise",
52
- "darkviolet",
53
- "deeppink",
54
- "deepskyblue",
55
- "dimgray",
56
- "dimgrey",
57
- "dodgerblue",
58
- "field",
59
- "fieldtext",
60
- "firebrick",
61
- "floralwhite",
62
- "forestgreen",
63
- "fuchsia",
64
- "gainsboro",
65
- "ghostwhite",
66
- "gold",
67
- "goldenrod",
68
- "gray",
69
- "graytext",
70
- "green",
71
- "greenyellow",
72
- "grey",
73
- "highlight",
74
- "highlighttext",
75
- "honeydew",
76
- "hotpink",
77
- "indianred",
78
- "indigo",
79
- "ivory",
80
- "khaki",
81
- "lavender",
82
- "lavenderblush",
83
- "lawngreen",
84
- "lemonchiffon",
85
- "lightblue",
86
- "lightcoral",
87
- "lightcyan",
88
- "lightgoldenrodyellow",
89
- "lightgray",
90
- "lightgreen",
91
- "lightgrey",
92
- "lightpink",
93
- "lightsalmon",
94
- "lightseagreen",
95
- "lightskyblue",
96
- "lightslategray",
97
- "lightslategrey",
98
- "lightsteelblue",
99
- "lightyellow",
100
- "lime",
101
- "limegreen",
102
- "linen",
103
- "linktext",
104
- "magenta",
105
- "mark",
106
- "marktext",
107
- "maroon",
108
- "mediumaquamarine",
109
- "mediumblue",
110
- "mediumorchid",
111
- "mediumpurple",
112
- "mediumseagreen",
113
- "mediumslateblue",
114
- "mediumspringgreen",
115
- "mediumturquoise",
116
- "mediumvioletred",
117
- "midnightblue",
118
- "mintcream",
119
- "mistyrose",
120
- "moccasin",
121
- "navajowhite",
122
- "navy",
123
- "oldlace",
124
- "olive",
125
- "olivedrab",
126
- "orange",
127
- "orangered",
128
- "orchid",
129
- "palegoldenrod",
130
- "palegreen",
131
- "paleturquoise",
132
- "palevioletred",
133
- "papayawhip",
134
- "peachpuff",
135
- "peru",
136
- "pink",
137
- "plum",
138
- "powderblue",
139
- "purple",
140
- "rebeccapurple",
141
- "red",
142
- "rosybrown",
143
- "royalblue",
144
- "saddlebrown",
145
- "salmon",
146
- "sandybrown",
147
- "seagreen",
148
- "seashell",
149
- "selecteditem",
150
- "selecteditemtext",
151
- "sienna",
152
- "silver",
153
- "skyblue",
154
- "slateblue",
155
- "slategray",
156
- "slategrey",
157
- "snow",
158
- "springgreen",
159
- "steelblue",
160
- "tan",
161
- "teal",
162
- "thistle",
163
- "tomato",
164
- "transparent",
165
- "turquoise",
166
- "violet",
167
- "visitedtext",
168
- "wheat",
169
- "white",
170
- "whitesmoke",
171
- "yellow",
172
- "yellowgreen"
173
- ]);
174
- var HTML_EMAIL_PATTERN = /^[a-zA-Z0-9.!#$%&'*+/?=^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
175
- var eventType = typeof Event === "undefined" ? void 0 : Object.getOwnPropertyDescriptor(Event.prototype, "type").get;
176
- var eventBrands = /* @__PURE__ */ new WeakMap();
177
- function nativeEvent(value) {
178
- if (typeof value !== "object" || value === null || !("type" in value) || eventType === void 0) return false;
179
- const known = eventBrands.get(value);
180
- if (known !== void 0) return known;
181
- let accepted = false;
182
- try {
183
- eventType.call(value);
184
- accepted = true;
185
- } catch {}
186
- eventBrands.set(value, accepted);
187
- return accepted;
188
- }
189
- function issue(path, message) {
190
- return {
191
- ok: false,
192
- issues: [path + ": " + message]
193
- };
194
- }
195
- function pathAt(path, key) {
196
- if (typeof key === "number") return path + "[" + key + "]";
197
- return /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(key) ? path + "." + key : path + "[" + JSON.stringify(key) + "]";
198
- }
199
- function plainObject(value) {
200
- if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
201
- const prototype = Object.getPrototypeOf(value);
202
- return prototype === Object.prototype || prototype === null;
203
- }
204
- function structured(value) {
205
- return value;
206
- }
207
- function trusted(value, name) {
208
- if (typeof value !== "object" || value === null) return false;
209
- if (value.kind === name && "value" in value) return true;
210
- const expected = name === "trusted-html" ? "TrustedHTML" : "TrustedScript";
211
- return value.constructor?.name === expected || Object.prototype.toString.call(value) === "[object " + expected + "]";
212
- }
213
- function validDate(value) {
214
- const match = /^([0-9]{4,})-([0-9]{2})-([0-9]{2})$/.exec(value);
215
- if (match === null || match[1] === "0000") return false;
216
- const year = Number(match[1]);
217
- const date = /* @__PURE__ */ new Date(0);
218
- date.setUTCFullYear(year, Number(match[2]) - 1, Number(match[3]));
219
- return date.getUTCFullYear() === year && date.getUTCMonth() === Number(match[2]) - 1 && date.getUTCDate() === Number(match[3]);
220
- }
221
- function validTime(value) {
222
- const match = /^([0-9]{2}):([0-9]{2})(?::([0-9]{2})(?:\.([0-9]{1,3}))?)?$/.exec(value);
223
- return match !== null && Number(match[1]) < 24 && Number(match[2]) < 60 && Number(match[3] ?? 0) < 60;
224
- }
225
- function validFunctionalColor(value) {
226
- const match = /^(rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)\((.*)\)$/i.exec(value);
227
- if (match === null) return false;
228
- const body = match[2].trim();
229
- const parts = body.replaceAll(",", " ").replaceAll("/", " ").split(/\s+/);
230
- if (match[1].toLowerCase() === "color" && !/^(?:srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020|xyz|xyz-d50|xyz-d65)$/.test(parts.shift() ?? "")) return false;
231
- if (parts.length < 3 || parts.length > 4) return false;
232
- if (parts.length === 4 && !body.includes("/") && !body.includes(",")) return false;
233
- return parts.every((part) => part === "none" || /^[+-]?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:%|deg|rad|grad|turn)?$/.test(part));
234
- }
235
- function validFormat(value, name) {
236
- switch (name) {
237
- case "keyword": return /^[A-Za-z0-9_-]+$/.test(value);
238
- case "url": try {
239
- return new URL(value).protocol !== "";
240
- } catch {
241
- return false;
242
- }
243
- case "email": return HTML_EMAIL_PATTERN.test(value);
244
- case "date": return validDate(value);
245
- case "month": return /^(?!0000)[0-9]{4,}-(?:0[1-9]|1[0-2])$/.test(value);
246
- case "week": {
247
- const match = /^([0-9]{4,})-W([0-9]{2})$/.exec(value);
248
- if (match === null || match[1] === "0000") return false;
249
- const year = Number(match[1]);
250
- const week = Number(match[2]);
251
- const jan1 = /* @__PURE__ */ new Date(0);
252
- jan1.setUTCFullYear(year, 0, 1);
253
- const jan1Day = jan1.getUTCDay();
254
- const leap = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
255
- return week >= 1 && (week < 53 || week === 53 && (jan1Day === 4 || jan1Day === 3 && leap));
256
- }
257
- case "time": return validTime(value);
258
- case "datetime-local": {
259
- const match = /^([0-9]{4,}-[0-9]{2}-[0-9]{2})[T ](.+)$/.exec(value);
260
- return match !== null && validDate(match[1]) && validTime(match[2]);
261
- }
262
- case "datetime": {
263
- const match = /^([0-9]{4,}-[0-9]{2}-[0-9]{2})T([0-9]{2}:[0-9]{2}(?::[0-9]{2}(?:\.[0-9]{1,3})?)?)(Z|[+-](?:0[0-9]|1[0-9]|2[0-3]):[0-5][0-9])$/.exec(value);
264
- return match !== null && validDate(match[1]) && validTime(match[2]);
265
- }
266
- case "color-hex": return /^#[0-9a-fA-F]{3}(?:[0-9a-fA-F]{1}|[0-9a-fA-F]{3}(?:[0-9a-fA-F]{2})?)?$/.test(value);
267
- case "color": return validFormat(value, "color-hex") || CSS_NAMED_COLOR_SET.has(value.toLowerCase()) || validFunctionalColor(value);
268
- case "length": return /^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)(?:px|em|rem|vw|vh|vmin|vmax|ch|ex|cm|mm|in|pt|pc|q)$/.test(value) || value === "0";
269
- case "percentage": return /^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)%$/.test(value);
270
- case "duration": return /^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)(?:ms|s)$/.test(value);
271
- default: return false;
272
- }
273
- }
274
- function typeName(node) {
275
- switch (node.kind) {
276
- case "terminal": return node.name;
277
- case "separated-list": return "keyword" + (node.separator === "space" ? "+" : "#");
278
- case "keyword": return /^[A-Za-z_][A-Za-z0-9_-]*$/.test(node.value) && ![
279
- "string",
280
- "boolean",
281
- "number",
282
- "integer",
283
- "null",
284
- "absent",
285
- "trusted-html",
286
- "trusted-script",
287
- "function",
288
- "unknown",
289
- "list",
290
- "record",
291
- "object"
292
- ].includes(node.value) ? node.value : JSON.stringify(node.value);
293
- case "union": return node.members.map(typeName).join(" | ");
294
- case "constrained": return typeName(node.base) + (node.values === void 0 ? "" : " with values " + node.values.map(String).join(", "));
295
- case "list": return "list(" + typeName(node.item) + ")";
296
- case "record": return "record(" + typeName(node.value) + ")";
297
- case "object": return "object({ " + [...node.fields.map((field) => field.name + (field.optional ? "?" : "") + ": " + typeName(field.type)), ...node.open ? ["..."] : []].join(", ") + " })";
298
- }
299
- }
300
- function parse(value, node, path) {
301
- switch (node.kind) {
302
- case "terminal":
303
- switch (node.name) {
304
- case "string": return typeof value === "string" ? {
305
- ok: true,
306
- value
307
- } : issue(path, "Must be a string.");
308
- case "keyword":
309
- case "url":
310
- case "email":
311
- case "date":
312
- case "month":
313
- case "week":
314
- case "time":
315
- case "datetime-local":
316
- case "datetime":
317
- case "color":
318
- case "color-hex":
319
- case "length":
320
- case "percentage":
321
- case "duration": return typeof value === "string" && validFormat(value, node.name) ? {
322
- ok: true,
323
- value
324
- } : issue(path, "Must be a valid " + node.name + " value.");
325
- case "boolean": return typeof value === "boolean" ? {
326
- ok: true,
327
- value
328
- } : issue(path, "Must be true or false.");
329
- case "number":
330
- case "integer": {
331
- const number = typeof value === "number" ? value : NaN;
332
- if (!Number.isFinite(number)) return issue(path, node.name === "integer" ? "Must be an integer." : "Must be a finite number.");
333
- if (node.name === "integer" && !Number.isInteger(number)) return issue(path, "Must be an integer.");
334
- return {
335
- ok: true,
336
- value: number
337
- };
338
- }
339
- case "null": return value === null ? {
340
- ok: true,
341
- value
342
- } : issue(path, "Must be null.");
343
- case "absent": return value === void 0 ? {
344
- ok: true,
345
- value
346
- } : issue(path, "Must be absent.");
347
- case "trusted-html":
348
- case "trusted-script": return trusted(value, node.name) ? {
349
- ok: true,
350
- value
351
- } : issue(path, "Must be a " + (node.name === "trusted-html" ? "TrustedHTML" : "TrustedScript") + " value.");
352
- case "event": return nativeEvent(value) ? {
353
- ok: true,
354
- value
355
- } : issue(path, "Must be a native Event value.");
356
- case "function": return typeof value === "function" ? {
357
- ok: true,
358
- value
359
- } : issue(path, "Must be a function supplied through a property.");
360
- case "unknown": return {
361
- ok: true,
362
- value
363
- };
364
- }
365
- return issue(path, "Unknown declared type.");
366
- case "separated-list": {
367
- const input = typeof value === "string" ? value.split(node.separator === "space" ? /\s+/ : /\s*,\s*/) : value;
368
- return Array.isArray(input) && input.length > 0 && input.every((item) => typeof item === "string" && /^[A-Za-z0-9_-]+$/.test(item)) ? {
369
- ok: true,
370
- value: input
371
- } : issue(path, "Must be a nonempty keyword list.");
372
- }
373
- case "keyword": return value === node.value ? {
374
- ok: true,
375
- value
376
- } : issue(path, "Must be " + JSON.stringify(node.value) + ".");
377
- case "union":
378
- for (const member of node.members) {
379
- const result = parse(value, member, path);
380
- if (result.ok) return result;
381
- }
382
- return issue(path, "Must match " + typeName(node) + ".");
383
- case "constrained": {
384
- const parsed = parse(value, node.base, path);
385
- if (!parsed.ok) return parsed;
386
- if (node.values !== void 0 && !node.values.some((choice) => choice === parsed.value)) return issue(path, "Must be one of " + node.values.map(String).join(", ") + ".");
387
- const problem = boundProblem(parsed.value, node.base.kind === "terminal" ? node.base.name : "", node);
388
- return problem === void 0 ? parsed : issue(path, problem);
389
- }
390
- case "list": {
391
- const input = structured(value);
392
- if (!Array.isArray(input)) return issue(path, "Must be a list.");
393
- const output = [];
394
- const issues = [];
395
- input.forEach((item, index) => {
396
- const result = parse(item, node.item, pathAt(path, index));
397
- if (result.ok) output.push(result.value);
398
- else issues.push(...result.issues);
399
- });
400
- return issues.length === 0 ? {
401
- ok: true,
402
- value: output
403
- } : {
404
- ok: false,
405
- issues
406
- };
407
- }
408
- case "record": {
409
- const input = structured(value);
410
- if (!plainObject(input)) return issue(path, "Must be a string-keyed record.");
411
- const output = {};
412
- const issues = [];
413
- for (const [key, item] of Object.entries(input)) {
414
- const result = parse(item, node.value, pathAt(path, key));
415
- if (result.ok) output[key] = result.value;
416
- else issues.push(...result.issues);
417
- }
418
- return issues.length === 0 ? {
419
- ok: true,
420
- value: output
421
- } : {
422
- ok: false,
423
- issues
424
- };
425
- }
426
- case "object": {
427
- const input = structured(value);
428
- if (!plainObject(input)) return issue(path, "Must be an object.");
429
- const output = {};
430
- const issues = [];
431
- const fields = new Map(node.fields.map((field) => [field.name, field]));
432
- for (const field of node.fields) {
433
- if (!(field.name in input) || field.optional && input[field.name] == null) {
434
- if (!field.optional) issues.push(pathAt(path, field.name) + ": Required field is absent.");
435
- else if (field.name in input) output[field.name] = null;
436
- continue;
437
- }
438
- const result = parse(input[field.name], field.type, pathAt(path, field.name));
439
- if (result.ok) output[field.name] = result.value;
440
- else issues.push(...result.issues);
441
- }
442
- for (const [key, item] of Object.entries(input)) {
443
- if (fields.has(key)) continue;
444
- if (node.open) output[key] = item;
445
- else issues.push(pathAt(path, key) + ": Field is not declared by this closed object type.");
446
- }
447
- return issues.length === 0 ? {
448
- ok: true,
449
- value: output
450
- } : {
451
- ok: false,
452
- issues
453
- };
454
- }
455
- }
456
- }
457
- /** Return the actual selected destination, without a validation fallback. */
458
- function selectedBindingNode(selector, options) {
459
- if (selector === null || selector === void 0) return null;
460
- return options.find((candidate) => candidate.value === selector)?.type ?? null;
461
- }
462
- function selectedPropNode(selector, options) {
463
- return selectedBindingNode(selector, options) ?? {
464
- kind: "terminal",
465
- name: "null"
466
- };
467
- }
468
- function comparable(value, type) {
469
- if (typeof value === "number") return Number.isFinite(value) ? value : void 0;
470
- if (typeof value !== "string") return void 0;
471
- const date = /^([0-9]{4,})-([0-9]{2})-([0-9]{2})$/.exec(value);
472
- const month = /^([0-9]{4,})-([0-9]{2})$/.exec(value);
473
- const week = /^([0-9]{4,})-W([0-9]{2})$/.exec(value);
474
- const time = /^([0-9]{2}):([0-9]{2})(?::([0-9]{2})(?:\.([0-9]+))?)?$/.exec(value);
475
- switch (type) {
476
- case "number":
477
- case "integer": return Number.isFinite(Number(value)) ? Number(value) : void 0;
478
- case "date": return date === null ? void 0 : Number(date[1]) * 372 + Number(date[2]) * 31 + Number(date[3]);
479
- case "month": return month === null ? void 0 : Number(month[1]) * 12 + Number(month[2]);
480
- case "week": return week === null ? void 0 : Number(week[1]) * 53 + Number(week[2]);
481
- case "time": return time === null ? void 0 : Number(time[1]) * 3600 + Number(time[2]) * 60 + Number(time[3] ?? 0) + Number("0." + (time[4] ?? "0"));
482
- case "datetime-local": {
483
- const parsed = Date.parse(value.replace(" ", "T") + "Z");
484
- return Number.isFinite(parsed) ? parsed : void 0;
485
- }
486
- case "datetime": {
487
- const parsed = Date.parse(value);
488
- return Number.isFinite(parsed) ? parsed : void 0;
489
- }
490
- default: return;
491
- }
492
- }
493
- function boundProblem(value, type, bounds) {
494
- if (value === null || value === void 0 || value === "") return void 0;
495
- const actual = comparable(value, type);
496
- if (actual !== void 0) {
497
- const min = comparable(bounds.min, type);
498
- const max = comparable(bounds.max, type);
499
- if (min !== void 0 && actual < min) return "Value is below its minimum.";
500
- if (max !== void 0 && actual > max) return "Value is above its maximum.";
501
- }
502
- if (typeof value === "string") {
503
- if (bounds.minLength !== void 0 && value.length < bounds.minLength) return "Value is too short.";
504
- if (bounds.maxLength !== void 0 && value.length > bounds.maxLength) return "Value is too long.";
505
- if (bounds.pattern !== void 0) {
506
- let expression;
507
- try {
508
- expression = new RegExp("^(?:" + bounds.pattern + ")$", "v");
509
- } catch {
510
- expression = new RegExp("^(?:" + bounds.pattern + ")$", "u");
511
- }
512
- if (!expression.test(value)) return "Value does not match its pattern.";
513
- }
514
- }
515
- }
516
- function checkedProp(value, type, _required, name, accepted, inputAccepted, htmlBoolean = true) {
517
- const result = value === void 0 ? {
518
- ok: true,
519
- value: null
520
- } : checkPropInput(value, type, htmlBoolean);
521
- if (inputAccepted !== void 0) inputAccepted[name] = result.ok;
522
- if (result.ok) {
523
- if (accepted !== void 0) accepted[name] = result.value;
524
- return result.value;
525
- }
526
- return accepted?.[name] ?? null;
527
- }
528
- function checkPropInput(value, type, htmlBoolean = true, optional = true) {
529
- if (optional && value === null) return {
530
- ok: true,
531
- value: null
532
- };
533
- if (htmlBoolean && value === "" && type.kind === "terminal" && type.name === "boolean") value = true;
534
- return parse(value, type, "$");
535
- }
536
- function propValidity(binding) {
537
- const errors = [];
538
- for (const [name, prop] of Object.entries(binding.contract.props)) {
539
- const selected = prop.select === void 0 ? prop.type : selectedPropNode(binding.values[prop.select.from], prop.select.options);
540
- const incoming = binding.values[name];
541
- const value = incoming === "" && selected.kind === "terminal" && selected.name === "boolean" ? true : incoming;
542
- if (value === null || value === void 0 || value === "") {
543
- if (prop.required) errors.push({
544
- reason: "valueMissing",
545
- message: "This field is required.",
546
- path: name
547
- });
548
- continue;
549
- }
550
- if (selected.kind === "terminal" && selected.name === "null") {
551
- errors.push({
552
- reason: "typeMismatch",
553
- message: "No type option matches the selector.",
554
- path: name
555
- });
556
- continue;
557
- }
558
- const result = parse(value, selected, name);
559
- if (!result.ok) {
560
- const terminal = selected.kind === "terminal" ? selected.name : "";
561
- errors.push(...result.issues.map((message) => ({
562
- reason: terminal === "email" || terminal === "url" ? "typeMismatch" : "badInput",
563
- message,
564
- path: name
565
- })));
566
- }
567
- if (prop.values !== void 0 && !prop.values.some((choice) => choice === value)) errors.push({
568
- reason: "typeMismatch",
569
- message: "Value must be one of " + prop.values.map(String).join(", ") + ".",
570
- path: name
571
- });
572
- const type = selected.kind === "terminal" ? selected.name : "";
573
- const actual = comparable(value, type);
574
- const min = comparable(prop.min, type);
575
- const max = comparable(prop.max, type);
576
- if (actual !== void 0 && min !== void 0 && actual < min) errors.push({
577
- reason: "rangeUnderflow",
578
- message: "Value must be at least " + prop.min + ".",
579
- path: name
580
- });
581
- if (actual !== void 0 && max !== void 0 && actual > max) errors.push({
582
- reason: "rangeOverflow",
583
- message: "Value must be at most " + prop.max + ".",
584
- path: name
585
- });
586
- if (typeof value === "string") {
587
- if (prop.minLength !== void 0 && value.length < prop.minLength) errors.push({
588
- reason: "tooShort",
589
- message: "Use at least " + prop.minLength + " characters.",
590
- path: name
591
- });
592
- if (prop.maxLength !== void 0 && value.length > prop.maxLength) errors.push({
593
- reason: "tooLong",
594
- message: "Use at most " + prop.maxLength + " characters.",
595
- path: name
596
- });
597
- if (prop.pattern !== void 0) {
598
- let pattern;
599
- try {
600
- pattern = new RegExp("^(?:" + prop.pattern + ")$", "v");
601
- } catch {
602
- try {
603
- pattern = new RegExp("^(?:" + prop.pattern + ")$", "u");
604
- } catch {}
605
- }
606
- if (pattern !== void 0 && !pattern.test(value)) errors.push({
607
- reason: "patternMismatch",
608
- message: "Value does not match the required format.",
609
- path: name
610
- });
611
- }
612
- }
613
- }
614
- return {
615
- valid: errors.length === 0,
616
- errors
617
- };
618
- }
619
- function propValidityState(binding, name) {
620
- return validityFromErrors(propValidity(binding).errors.filter((error) => error.path === name));
621
- }
622
- var validityStates = /* @__PURE__ */ new WeakMap();
623
- var ariaMirrors = /* @__PURE__ */ new WeakSet();
624
- var managedValidityApis = /* @__PURE__ */ new WeakSet();
625
- var REASONS = [
626
- "valueMissing",
627
- "typeMismatch",
628
- "patternMismatch",
629
- "tooLong",
630
- "tooShort",
631
- "rangeUnderflow",
632
- "rangeOverflow",
633
- "stepMismatch",
634
- "badInput",
635
- "customError",
636
- "schemaMismatch",
637
- "untrustedValue"
638
- ];
639
- function reflectValidity(el, state) {
640
- const errors = [...state.validity.errors, ...state.external];
641
- const valid = errors.length === 0;
642
- if ([
643
- "button",
644
- "fieldset",
645
- "input",
646
- "object",
647
- "output",
648
- "select",
649
- "textarea"
650
- ].includes(el.localName) && !managedValidityApis.has(el) && "setCustomValidity" in el && typeof el.setCustomValidity === "function") {
651
- el.setCustomValidity(valid ? "" : errors[0].message);
652
- return;
653
- }
654
- el.toggleAttribute("data-valid", valid);
655
- el.toggleAttribute("data-invalid", !valid);
656
- el.toggleAttribute("data-user-invalid", state.interacted && !valid);
657
- if (valid) {
658
- if (ariaMirrors.has(el)) {
659
- el.removeAttribute("aria-invalid");
660
- ariaMirrors.delete(el);
661
- }
662
- } else if ((!el.hasAttribute("aria-invalid") || ariaMirrors.has(el)) && el.getAttribute("aria-invalid") !== "true") {
663
- el.setAttribute("aria-invalid", "true");
664
- ariaMirrors.add(el);
665
- }
666
- }
667
- function validityFromErrors(errors) {
668
- const reasons = new Set(errors.map((error) => error.reason));
669
- return Object.freeze({
670
- valid: errors.length === 0,
671
- ...Object.fromEntries(REASONS.map((reason) => [reason, reasons.has(reason)])),
672
- errors
673
- });
674
- }
675
- function validityState(state) {
676
- return validityFromErrors([...state.validity.errors, ...state.external]);
677
- }
678
- var vPropValidity = {
679
- mounted(el, binding) {
680
- const state = {
681
- current: binding.value,
682
- validity: propValidity(binding.value),
683
- external: [],
684
- interacted: false,
685
- cleanup: () => {}
686
- };
687
- validityStates.set(el, state);
688
- if (!("validity" in el)) {
689
- managedValidityApis.add(el);
690
- const target = el;
691
- Object.defineProperties(target, {
692
- validity: {
693
- configurable: true,
694
- get: () => validityState(state)
695
- },
696
- validationMessage: {
697
- configurable: true,
698
- get: () => validityState(state).errors[0]?.message ?? ""
699
- },
700
- willValidate: {
701
- configurable: true,
702
- get: () => true
703
- },
704
- checkValidity: {
705
- configurable: true,
706
- value: () => {
707
- const valid = validityState(state).valid;
708
- if (!valid) el.dispatchEvent(new Event("invalid", { cancelable: true }));
709
- return valid;
710
- }
711
- },
712
- reportValidity: {
713
- configurable: true,
714
- value: () => {
715
- state.interacted = true;
716
- reflectValidity(el, state);
717
- return target.checkValidity();
718
- }
719
- },
720
- setCustomValidity: {
721
- configurable: true,
722
- value: (message) => {
723
- state.external = message === "" ? [] : [{
724
- reason: "customError",
725
- message
726
- }];
727
- reflectValidity(el, state);
728
- }
729
- }
730
- });
731
- }
732
- const interacted = () => {
733
- state.interacted = true;
734
- reflectValidity(el, state);
735
- };
736
- el.addEventListener("input", interacted);
737
- el.addEventListener("change", interacted);
738
- el.addEventListener("blur", interacted, true);
739
- state.cleanup = () => {
740
- el.removeEventListener("input", interacted);
741
- el.removeEventListener("change", interacted);
742
- el.removeEventListener("blur", interacted, true);
743
- };
744
- reflectValidity(el, state);
745
- },
746
- updated(el, binding) {
747
- const state = validityStates.get(el);
748
- if (state === void 0) return;
749
- state.current = binding.value;
750
- state.validity = propValidity(state.current);
751
- reflectValidity(el, state);
752
- },
753
- unmounted(el) {
754
- validityStates.get(el)?.cleanup();
755
- validityStates.delete(el);
756
- }
757
- };
758
- /** Controller writes use immediate destination checks, including declared nested paths. */
759
- function acceptsControllerWrite(value, type, keys) {
760
- if (type === void 0) return true;
761
- if (keys.length === 0) {
762
- if (value === void 0 || value === null) return true;
763
- if (type.kind === "list") return Array.isArray(value);
764
- if (type.kind === "object" || type.kind === "record") return typeof value === "object" && !Array.isArray(value);
765
- if (type.kind === "union") return type.members.some((member) => acceptsControllerWrite(value, member, keys));
766
- if (type.kind === "constrained") return acceptsControllerWrite(value, type.base, keys);
767
- return parse(value, type, "$").ok;
768
- }
769
- if (type.kind === "union") return type.members.some((member) => acceptsControllerWrite(value, member, keys));
770
- if (type.kind === "constrained") return acceptsControllerWrite(value, type.base, keys);
771
- const key = keys[0];
772
- if (type.kind === "object" && !type.open && !type.fields.some((field) => field.name === key)) return value === void 0;
773
- return acceptsControllerWrite(value, type.kind === "object" ? type.fields.find((field) => field.name === key)?.type : type.kind === "list" ? /^\d+$/.test(key) ? type.item : void 0 : type.kind === "record" ? type.value : void 0, keys.slice(1));
774
- }
775
- var READY_INPUT = {
776
- ready: true,
777
- pending: false,
778
- error: null,
779
- stale: false
780
- };
781
- var UNRESOLVED_INPUT = {
782
- ready: false,
783
- pending: false,
784
- error: null,
785
- stale: false
786
- };
787
- /** A draft owns its records/lists; native and opaque objects retain their platform identity. */
788
- function copyStateSeed(value, seen) {
789
- if (value === null || typeof value !== "object") return value;
790
- const array = Array.isArray(value);
791
- const prototype = Object.getPrototypeOf(value);
792
- if (!array && prototype !== null && prototype !== Object.prototype) {
793
- const constructor = Object.getOwnPropertyDescriptor(prototype, "constructor")?.value;
794
- if (Object.getPrototypeOf(prototype) !== null || typeof constructor !== "function" || constructor.prototype !== prototype || Function.prototype.toString.call(constructor) !== Function.prototype.toString.call(Object)) return value;
795
- }
796
- const known = seen ?? /* @__PURE__ */ new WeakMap();
797
- const previous = known.get(value);
798
- if (previous !== void 0) return previous;
799
- const copy = array ? [] : Object.create(prototype);
800
- if (array) copy.length = value.length;
801
- known.set(value, copy);
802
- for (const key of Reflect.ownKeys(value)) if (Object.getOwnPropertyDescriptor(value, key)?.enumerable) Object.defineProperty(copy, key, {
803
- enumerable: true,
804
- writable: true,
805
- configurable: true,
806
- value: copyStateSeed(Reflect.get(value, key), known)
807
- });
808
- return copy;
809
- }
810
- /** Public error identity is its name/message, not the producer's object allocation. */
811
- function sameInputStatus(left, right) {
812
- return left === right || left !== void 0 && right !== void 0 && left.ready === right.ready && left.pending === right.pending && left.stale === right.stale && left.error?.name === right.error?.name && left.error?.message === right.error?.message;
813
- }
814
- var inputObservation;
815
- /** Only synchronous reads made by this evaluation contribute prerequisites. */
816
- function observingInputs() {
817
- return inputObservation !== void 0;
818
- }
819
- function observeInputStatus(status) {
820
- if (inputObservation === void 0) return;
821
- inputObservation.ready &&= status.ready;
822
- inputObservation.pending ||= status.pending;
823
- inputObservation.error ??= status.error;
824
- inputObservation.stale ||= status.stale;
825
- }
826
- /** Compiler adapters wrap declaration reads; ordinary application values keep their types. */
827
- function inputRead(value, status) {
828
- observeInputStatus(status);
829
- return value;
830
- }
831
- /** Native expression evaluation and framework computeds share status composition, not reactivity. */
832
- function evaluateInput(compute, previous, invalid = Symbol.for("html-next.invalid-result")) {
833
- const parent = inputObservation;
834
- const observed = {
835
- ready: true,
836
- pending: false,
837
- error: null,
838
- stale: false
839
- };
840
- inputObservation = observed;
841
- let value;
842
- try {
843
- value = compute();
844
- } finally {
845
- inputObservation = parent;
846
- }
847
- if (value === void 0 || value === invalid && previous?.ready !== true) observed.ready = false;
848
- if (!observed.ready) observed.stale = false;
849
- const status = sameInputStatus(previous, observed) ? previous : observed.ready && !observed.pending && observed.error === null && !observed.stale ? READY_INPUT : !observed.ready && !observed.pending && observed.error === null ? UNRESOLVED_INPUT : observed;
850
- return {
851
- value,
852
- status
853
- };
854
- }
855
- /** A fallback handles absence; only the branch supplying the result contributes availability. */
856
- function inputDefault(read, fallback, absent) {
857
- if (!observingInputs()) {
858
- const value = read();
859
- return value == null || value === absent ? fallback() : value;
860
- }
861
- const result = evaluateInput(read, READY_INPUT);
862
- if (result.value == null || result.value === absent) return fallback();
863
- observeInputStatus(result.status);
864
- return result.value;
865
- }
866
- /** The adapter supplies its own memo/computed primitive; acceptance runs only for available data. */
867
- function inputComputed(compute, make, accept, initialStatus) {
868
- let previous;
869
- const cell = make(() => {
870
- const result = evaluateInput(compute, previous?.status ?? initialStatus);
871
- const value = result.status.ready ? accept === void 0 ? result.value : accept(result.value) : null;
872
- if (previous !== void 0 && Object.is(previous.value, value) && previous.status === result.status) return previous;
873
- return previous = {
874
- value,
875
- status: result.status
876
- };
877
- });
878
- return {
879
- get: () => cell.get().value,
880
- get value() {
881
- return cell.get().value;
882
- },
883
- status: () => cell.get().status
884
- };
885
- }
886
- /** Project only the status a template may observe, retaining no mutable producer-owned object. */
887
- function publicInputStatus(status) {
888
- if (typeof status.ready !== "boolean" || typeof status.pending !== "boolean" || typeof status.stale !== "boolean" || !status.ready && status.stale) throw new TypeError("Input status requires boolean ready, pending and stale; stale requires an accepted value.");
889
- const error = status.error;
890
- if (error !== null && (typeof error.name !== "string" || typeof error.message !== "string")) throw new TypeError("An input failure requires public string name and message fields.");
891
- return {
892
- ready: status.ready,
893
- pending: status.pending,
894
- stale: status.stale,
895
- error: error === null ? null : {
896
- name: error.name,
897
- message: error.message
898
- }
899
- };
900
- }
901
- function requireInputStatus(status, handlesError) {
902
- if (!status.ready && status.error !== null && !handlesError) throw Object.assign(new Error(status.error.message), { name: status.error.name });
903
- return status;
904
- }
905
- /**
906
- * One source capability per prop. The adapter owns accepted storage and type checks; this port
907
- * owns neither a second value store nor a second reactive engine. It also enforces caller precedence
908
- * before the adapter sees any source proposal, including proposals that arrive after disposal.
909
- */
910
- function createInputPort(adapter) {
911
- const names = [...adapter.names];
912
- const readNames = [.../* @__PURE__ */ new Set([...names, ...adapter.readNames ?? []])];
913
- const owners = /* @__PURE__ */ new Map();
914
- const declared = (name) => {
915
- if (!names.includes(name)) throw new TypeError(`Input \`${name}\` is not a declared prop.`);
916
- };
917
- const readable = (name) => {
918
- if (!readNames.includes(name)) throw new TypeError(`Binding \`${name}\` is not declared in this component.`);
919
- };
920
- return {
921
- get names() {
922
- return [...names];
923
- },
924
- get readNames() {
925
- return [...readNames];
926
- },
927
- read(name) {
928
- readable(name);
929
- const value = adapter.read(name);
930
- if (observingInputs()) observeInputStatus(adapter.status(name));
931
- return value;
932
- },
933
- status(name) {
934
- readable(name);
935
- return publicInputStatus(adapter.status(name));
936
- },
937
- supplied(name) {
938
- declared(name);
939
- return adapter.supplied(name);
940
- },
941
- revision(name) {
942
- declared(name);
943
- return adapter.revision?.(name);
944
- },
945
- capture(read) {
946
- const result = evaluateInput(() => {
947
- try {
948
- return {
949
- ok: true,
950
- value: read()
951
- };
952
- } catch (error) {
953
- return {
954
- ok: false,
955
- error
956
- };
957
- }
958
- });
959
- return {
960
- ...result.value,
961
- status: publicInputStatus(result.status)
962
- };
963
- },
964
- watch: (run) => adapter.watch(run),
965
- source(name) {
966
- declared(name);
967
- if (owners.has(name)) throw new TypeError(`Input \`${name}\` already has a source.`);
968
- const token = {};
969
- owners.set(name, token);
970
- return {
971
- current: () => ({
972
- value: adapter.read(name),
973
- status: publicInputStatus(adapter.status(name))
974
- }),
975
- publish(snapshot) {
976
- if (owners.get(name) !== token) return false;
977
- return adapter.untracked(() => !adapter.supplied(name) && adapter.publish(name, {
978
- value: snapshot.value,
979
- status: publicInputStatus(snapshot.status)
980
- }));
981
- },
982
- dispose() {
983
- if (owners.get(name) === token) owners.delete(name);
984
- }
985
- };
986
- }
987
- };
988
- }
989
- /** Renderer-neutral input bookkeeping. Accepted values remain in the renderer's existing store. */
990
- var BINDING_INPUTS_PROP = "\0htmlNextInputStatus";
991
- var PropInputs = class PropInputs {
992
- #options;
993
- #records = Object.create(null);
994
- #port;
995
- #reactions;
996
- #portOwner;
997
- #baseRevisions;
998
- constructor(options) {
999
- this.#options = options;
1000
- }
1001
- /** Imperative code reads the connected instance, even during a speculative render. */
1002
- get committed() {
1003
- return this.#portOwner ?? this;
1004
- }
1005
- /** Concurrent renderers may examine a candidate without changing the connected instance. */
1006
- fork(options) {
1007
- const candidate = new PropInputs({
1008
- ...options,
1009
- defaults: this.#options.defaults,
1010
- values: { ...this.#options.values }
1011
- });
1012
- for (const [name, record] of Object.entries(this.#records)) candidate.#records[name] = { ...record };
1013
- candidate.#portOwner = this;
1014
- candidate.#baseRevisions = new Map(Object.entries(this.#records).map(([name, record]) => [name, record.revision]));
1015
- return candidate;
1016
- }
1017
- commit(candidate) {
1018
- const values = this.#options.values;
1019
- for (const [name, next] of Object.entries(candidate.#records)) {
1020
- const current = this.#record(name);
1021
- const base = candidate.#baseRevisions?.get(name) ?? 0;
1022
- if (current.revision !== base && current.source && !next.provided) this.#records[name] = {
1023
- ...current,
1024
- caller: next.caller,
1025
- refused: next.refused,
1026
- accepted: next.accepted,
1027
- input: next.refused || next.caller !== current.caller ? next.input : current.input
1028
- };
1029
- else {
1030
- values[name] = candidate.#options.values[name];
1031
- this.#records[name] = {
1032
- ...next,
1033
- revision: next.revision === base ? current.revision : Math.max(next.revision, current.revision + 1)
1034
- };
1035
- }
1036
- }
1037
- this.#options = {
1038
- ...candidate.#options,
1039
- values
1040
- };
1041
- }
1042
- #record(name) {
1043
- return this.#records[name] ??= {
1044
- caller: void 0,
1045
- input: null,
1046
- provided: false,
1047
- source: false,
1048
- refused: false,
1049
- accepted: true,
1050
- status: void 0,
1051
- revision: 0
1052
- };
1053
- }
1054
- #fallback(name) {
1055
- return Object.hasOwn(this.#options.defaults, name) ? this.#options.defaults[name] : null;
1056
- }
1057
- #status(record, status) {
1058
- const old = record.status;
1059
- if (sameInputStatus(old, status)) return;
1060
- record.status = publicInputStatus(status);
1061
- }
1062
- value(name, input, bindings, flags) {
1063
- const record = this.#record(name);
1064
- const released = record.caller !== void 0 && input === void 0;
1065
- record.caller = input;
1066
- const upstream = bindings !== void 0 && Object.hasOwn(bindings, name) ? bindings[name]() : void 0;
1067
- if (upstream !== void 0) {
1068
- if (!upstream.status.ready) {
1069
- record.revision += 1;
1070
- this.#options.values[name] = this.#fallback(name);
1071
- record.input = upstream.value ?? null;
1072
- record.provided = true;
1073
- record.source = false;
1074
- record.refused = false;
1075
- record.accepted = true;
1076
- this.#status(record, upstream.status);
1077
- } else {
1078
- const result = this.#options.check(name, upstream.value === null ? this.#fallback(name) : upstream.value, false, this.#options.values);
1079
- record.accepted = result.ok;
1080
- if (result.ok) {
1081
- record.revision += 1;
1082
- this.#options.values[name] = result.value;
1083
- record.input = upstream.value;
1084
- record.provided = true;
1085
- record.source = false;
1086
- record.refused = false;
1087
- this.#status(record, upstream.status);
1088
- }
1089
- }
1090
- } else if (input === void 0 && record.source && !released) record.accepted = true;
1091
- else {
1092
- const candidate = input === void 0 || input === null ? this.#fallback(name) : input;
1093
- const result = input === void 0 && !Object.hasOwn(this.#options.defaults, name) ? {
1094
- ok: true,
1095
- value: null
1096
- } : this.#options.check(name, candidate, false, this.#options.values);
1097
- record.input = input === void 0 ? null : input;
1098
- record.accepted = result.ok;
1099
- record.refused = !result.ok && input !== void 0;
1100
- if (result.ok) {
1101
- record.revision += 1;
1102
- this.#options.values[name] = result.value;
1103
- record.provided = input !== void 0;
1104
- record.source = false;
1105
- record.status = void 0;
1106
- }
1107
- }
1108
- if (flags !== void 0) flags[name] = record.accepted;
1109
- return this.#options.values[name];
1110
- }
1111
- read(name) {
1112
- return this.#options.values[name];
1113
- }
1114
- inputValue(name) {
1115
- return this.#record(name).input;
1116
- }
1117
- supplied(name) {
1118
- return this.#record(name).provided;
1119
- }
1120
- revision(name) {
1121
- return this.#record(name).revision;
1122
- }
1123
- status(name) {
1124
- const record = this.#record(name);
1125
- return record.status ?? (record.provided || Object.hasOwn(this.#options.defaults, name) ? READY_INPUT : UNRESOLVED_INPUT);
1126
- }
1127
- publish(name, snapshot) {
1128
- const record = this.#record(name);
1129
- if (record.provided) return false;
1130
- let value = this.#fallback(name);
1131
- if (snapshot.status.ready) {
1132
- const result = this.#options.check(name, snapshot.value === null ? this.#fallback(name) : snapshot.value, true, this.#options.values);
1133
- if (!result.ok) return false;
1134
- value = result.value;
1135
- }
1136
- this.#options.values[name] = value;
1137
- record.revision += 1;
1138
- if (!record.refused) record.input = snapshot.value ?? null;
1139
- record.source = true;
1140
- this.#status(record, !snapshot.status.ready && Object.hasOwn(this.#options.defaults, name) ? {
1141
- ...snapshot.status,
1142
- ready: true,
1143
- stale: false
1144
- } : snapshot.status);
1145
- this.#options.invalidate();
1146
- if (this.#reactions?.notify !== void 0) {
1147
- this.#reactions.notify(name, "value");
1148
- this.#reactions.notify(name, "status");
1149
- }
1150
- return true;
1151
- }
1152
- port(reactions) {
1153
- if (this.#portOwner !== void 0) return this.#portOwner.port(reactions);
1154
- this.#reactions ??= reactions;
1155
- return this.#port ??= createInputPort({
1156
- names: this.#options.names,
1157
- readNames: [...this.#options.names, ...Object.keys(reactions.declarations ?? {})],
1158
- read: (name) => {
1159
- if (!this.#options.names.includes(name)) return reactions.declarations[name].read();
1160
- reactions.track(name, "value");
1161
- return this.read(name);
1162
- },
1163
- status: (name) => {
1164
- if (!this.#options.names.includes(name)) return reactions.declarations[name].status();
1165
- reactions.track(name, "status");
1166
- return this.status(name);
1167
- },
1168
- supplied: (name) => {
1169
- reactions.track(name, "supplied");
1170
- return this.supplied(name);
1171
- },
1172
- revision: (name) => this.revision(name),
1173
- publish: (name, snapshot) => this.publish(name, snapshot),
1174
- watch: (run) => reactions.watch(run),
1175
- untracked: (run) => reactions.untracked(run)
1176
- });
1177
- }
1178
- };
1179
- function vuePropInputs(values, defaults, check, prepare) {
1180
- const version = shallowRef(0);
1181
- const inputs = new PropInputs({
1182
- names: Object.keys(values),
1183
- values,
1184
- defaults,
1185
- check,
1186
- invalidate: () => {
1187
- version.value += 1;
1188
- }
1189
- });
1190
- const reads = /* @__PURE__ */ new Map();
1191
- return {
1192
- inputs,
1193
- version,
1194
- track(name, kind) {
1195
- const key = kind + ":" + name;
1196
- let read = reads.get(key);
1197
- if (read === void 0) {
1198
- read = computed(() => {
1199
- prepare();
1200
- version.value;
1201
- return kind === "value" ? inputs.read(name) : kind === "status" ? inputs.status(name) : inputs.supplied(name);
1202
- });
1203
- reads.set(key, read);
1204
- }
1205
- read.value;
1206
- },
1207
- untracked(run) {
1208
- let value;
1209
- let error;
1210
- let failed = false;
1211
- watch(() => true, () => {
1212
- try {
1213
- value = run();
1214
- } catch (caught) {
1215
- error = caught;
1216
- failed = true;
1217
- }
1218
- }, {
1219
- immediate: true,
1220
- flush: "sync"
1221
- })();
1222
- if (failed) throw error;
1223
- return value;
1224
- }
1225
- };
1226
- }
1227
- //#endregion
1228
- export { checkPropInput as a, evaluateInput as c, inputRead as d, propValidityState as f, vuePropInputs as g, vPropValidity as h, acceptsControllerWrite as i, inputComputed as l, selectedPropNode as m, READY_INPUT as n, checkedProp as o, requireInputStatus as p, UNRESOLVED_INPUT as r, copyStateSeed as s, BINDING_INPUTS_PROP as t, inputDefault as u };