@uninterface/backend-nuxt-ui 0.0.0-stage → 4.12.0-alpha1

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 (491) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/REKA-ARROW-LICENSE +21 -0
  4. package/capabilities.json +168 -0
  5. package/docs/README.md +47 -0
  6. package/docs/collections.md +201 -0
  7. package/docs/contract-adaptations.md +103 -0
  8. package/docs/customization.md +262 -0
  9. package/docs/examples/NativeReference.vue +132 -0
  10. package/docs/exports.md +39 -0
  11. package/docs/floating-panels.md +53 -0
  12. package/docs/font-licenses/noto-sans-sc.txt +93 -0
  13. package/docs/font-licenses/noto-sans-tc.txt +93 -0
  14. package/docs/font-licenses/public-sans.txt +93 -0
  15. package/docs/icon-licenses/Lucide.txt +39 -0
  16. package/docs/icon-licenses/SOURCES.md +47 -0
  17. package/docs/modals.md +43 -0
  18. package/docs/native-html.md +25 -0
  19. package/docs/navigation.md +21 -0
  20. package/docs/package-build.md +20 -0
  21. package/docs/presentation.md +241 -0
  22. package/docs/progress.md +9 -0
  23. package/docs/reviewed-components.md +93 -0
  24. package/docs/segmented-selection.md +22 -0
  25. package/docs/selection-feedback-panels.md +85 -0
  26. package/docs/setup.md +157 -0
  27. package/docs/strategies.md +84 -0
  28. package/docs/table-columns.md +33 -0
  29. package/docs/testing.md +29 -0
  30. package/docs/typography.md +93 -0
  31. package/esm/_virtual/_plugin-vue_export-helper.js +10 -0
  32. package/esm/capabilities.json.js +11 -0
  33. package/esm/package.json.js +14 -0
  34. package/esm/src/AppProviders.vue.js +4 -0
  35. package/esm/src/AppProviders2.vue.js +49 -0
  36. package/esm/src/CheckableFeedback.vue.js +4 -0
  37. package/esm/src/CheckableFeedback2.vue.js +33 -0
  38. package/esm/src/ChoiceGroup.vue.js +4 -0
  39. package/esm/src/ChoiceGroup2.vue.js +218 -0
  40. package/esm/src/CollectionCard.vue.js +4 -0
  41. package/esm/src/CollectionCard2.vue.js +199 -0
  42. package/esm/src/CollectionFilterEditor.vue.js +4 -0
  43. package/esm/src/CollectionFilterEditor2.vue.js +31 -0
  44. package/esm/src/CollectionHeaderFlow.vue.js +4 -0
  45. package/esm/src/CollectionHeaderFlow2.vue.js +33 -0
  46. package/esm/src/CollectionHeaderPart.vue.js +4 -0
  47. package/esm/src/CollectionHeaderPart2.vue.js +40 -0
  48. package/esm/src/CollectionQueryBadge.vue.js +4 -0
  49. package/esm/src/CollectionQueryBadge2.vue.js +90 -0
  50. package/esm/src/CollectionSortLayout.vue.js +4 -0
  51. package/esm/src/CollectionSortLayout2.vue.js +23 -0
  52. package/esm/src/CollectionStatus.vue.js +4 -0
  53. package/esm/src/CollectionStatus2.vue.js +135 -0
  54. package/esm/src/CollectionSummary.vue.js +4 -0
  55. package/esm/src/CollectionSummary2.vue.js +70 -0
  56. package/esm/src/CollectionTableActions.vue.js +13 -0
  57. package/esm/src/DrawerDepth.vue.js +4 -0
  58. package/esm/src/DrawerDepth2.vue.js +28 -0
  59. package/esm/src/DrawerDock.vue.js +4 -0
  60. package/esm/src/DrawerDock2.vue.js +26 -0
  61. package/esm/src/DrawerSurface.vue.js +4 -0
  62. package/esm/src/DrawerSurface2.vue.js +344 -0
  63. package/esm/src/EntryBranch.vue.js +4 -0
  64. package/esm/src/EntryBranch2.vue.js +321 -0
  65. package/esm/src/EntryCopy.vue.js +4 -0
  66. package/esm/src/EntryCopy2.vue.js +125 -0
  67. package/esm/src/EntrySurface.vue.js +4 -0
  68. package/esm/src/EntrySurface2.vue.js +114 -0
  69. package/esm/src/FeedbackItem.vue.js +4 -0
  70. package/esm/src/FeedbackItem2.vue.js +341 -0
  71. package/esm/src/FeedbackViewport.vue.js +4 -0
  72. package/esm/src/FeedbackViewport2.vue.js +42 -0
  73. package/esm/src/FieldContent.vue.js +4 -0
  74. package/esm/src/FieldContent2.vue.js +30 -0
  75. package/esm/src/FieldFailureTooltip.vue.js +4 -0
  76. package/esm/src/FieldFailureTooltip2.vue.js +82 -0
  77. package/esm/src/FileTypeIcon.vue.js +4 -0
  78. package/esm/src/FileTypeIcon2.vue.js +195 -0
  79. package/esm/src/FooterActions.vue.js +16 -0
  80. package/esm/src/NavigationCopy.vue.js +4 -0
  81. package/esm/src/NavigationCopy2.vue.js +80 -0
  82. package/esm/src/NavigationVertical.vue.js +4 -0
  83. package/esm/src/NavigationVertical2.vue.js +382 -0
  84. package/esm/src/NavigationViewport.vue.js +4 -0
  85. package/esm/src/NavigationViewport2.vue.js +50 -0
  86. package/esm/src/OverlaySurface.vue.js +4 -0
  87. package/esm/src/OverlaySurface2.vue.js +194 -0
  88. package/esm/src/TableAddRow.vue.js +4 -0
  89. package/esm/src/TableAddRow2.vue.js +66 -0
  90. package/esm/src/TableFilterButton.vue.js +4 -0
  91. package/esm/src/TableFilterButton2.vue.js +36 -0
  92. package/esm/src/TemporalAction.vue.js +4 -0
  93. package/esm/src/TemporalAction2.vue.js +46 -0
  94. package/esm/src/TemporalEditor.vue.js +4 -0
  95. package/esm/src/TemporalEditor2.vue.js +61 -0
  96. package/esm/src/TemporalIcon.vue.js +4 -0
  97. package/esm/src/TemporalIcon2.vue.js +81 -0
  98. package/esm/src/TemporalInput.vue.js +4 -0
  99. package/esm/src/TemporalInput2.vue.js +255 -0
  100. package/esm/src/TemporalMode.vue.js +4 -0
  101. package/esm/src/TemporalMode2.vue.js +94 -0
  102. package/esm/src/TemporalNativeEditor.vue.js +4 -0
  103. package/esm/src/TemporalNativeEditor2.vue.js +177 -0
  104. package/esm/src/TemporalNativeRange.vue.js +4 -0
  105. package/esm/src/TemporalNativeRange2.vue.js +335 -0
  106. package/esm/src/TemporalPicker.vue.js +4 -0
  107. package/esm/src/TemporalPicker2.vue.js +153 -0
  108. package/esm/src/TemporalRangeIcon.vue.js +4 -0
  109. package/esm/src/TemporalRangeIcon2.vue.js +74 -0
  110. package/esm/src/TemporalSegments.vue.js +4 -0
  111. package/esm/src/TemporalSegments2.vue.js +22 -0
  112. package/esm/src/TemporalTextEditor.vue.js +4 -0
  113. package/esm/src/TemporalTextEditor2.vue.js +107 -0
  114. package/esm/src/UiApp.vue.js +4 -0
  115. package/esm/src/UiApp2.vue.js +57 -0
  116. package/esm/src/UiBadge.vue.js +4 -0
  117. package/esm/src/UiBadge2.vue.js +27 -0
  118. package/esm/src/UiBreadcrumbs.vue.js +4 -0
  119. package/esm/src/UiBreadcrumbs2.vue.js +159 -0
  120. package/esm/src/UiButton.vue.js +4 -0
  121. package/esm/src/UiButton2.vue.js +128 -0
  122. package/esm/src/UiCard.vue.js +4 -0
  123. package/esm/src/UiCard2.vue.js +111 -0
  124. package/esm/src/UiCheckbox.vue.js +4 -0
  125. package/esm/src/UiCheckbox2.vue.js +71 -0
  126. package/esm/src/UiCheckboxGroup.vue.js +4 -0
  127. package/esm/src/UiCheckboxGroup2.vue.js +43 -0
  128. package/esm/src/UiCollapsible.vue.js +4 -0
  129. package/esm/src/UiCollapsible2.vue.js +139 -0
  130. package/esm/src/UiCollectionFooter.vue.js +4 -0
  131. package/esm/src/UiCollectionFooter2.vue.js +64 -0
  132. package/esm/src/UiCollectionHeader.vue.js +4 -0
  133. package/esm/src/UiCollectionHeader2.vue.js +24 -0
  134. package/esm/src/UiCollectionView.vue.js +4 -0
  135. package/esm/src/UiCollectionView2.vue.js +239 -0
  136. package/esm/src/UiContent.vue.js +4 -0
  137. package/esm/src/UiContent2.vue.js +35 -0
  138. package/esm/src/UiDateInput.vue.js +4 -0
  139. package/esm/src/UiDateInput2.vue.js +46 -0
  140. package/esm/src/UiDateTimeInput.vue.js +4 -0
  141. package/esm/src/UiDateTimeInput2.vue.js +46 -0
  142. package/esm/src/UiDrawer.vue.js +4 -0
  143. package/esm/src/UiDrawer2.vue.js +97 -0
  144. package/esm/src/UiDrawerLayout.vue.js +4 -0
  145. package/esm/src/UiDrawerLayout2.vue.js +63 -0
  146. package/esm/src/UiEmpty.vue.js +4 -0
  147. package/esm/src/UiEmpty2.vue.js +54 -0
  148. package/esm/src/UiField.vue.js +4 -0
  149. package/esm/src/UiField2.vue.js +248 -0
  150. package/esm/src/UiFileCollection.vue.js +4 -0
  151. package/esm/src/UiFileCollection2.vue.js +54 -0
  152. package/esm/src/UiFileInput.vue.js +4 -0
  153. package/esm/src/UiFileInput2.vue.js +149 -0
  154. package/esm/src/UiFilePreview.vue.js +4 -0
  155. package/esm/src/UiFilePreview2.vue.js +82 -0
  156. package/esm/src/UiFloating.vue.js +4 -0
  157. package/esm/src/UiFloating2.vue.js +108 -0
  158. package/esm/src/UiForm.vue.js +4 -0
  159. package/esm/src/UiForm2.vue.js +37 -0
  160. package/esm/src/UiIcon.css +8 -0
  161. package/esm/src/UiIcon.vue.js +8 -0
  162. package/esm/src/UiIcon2.vue.js +35 -0
  163. package/esm/src/UiImagePreview.vue.js +4 -0
  164. package/esm/src/UiImagePreview2.vue.js +72 -0
  165. package/esm/src/UiInputFrame.vue.js +4 -0
  166. package/esm/src/UiInputFrame2.vue.js +62 -0
  167. package/esm/src/UiInputFrameSpacer.vue.js +4 -0
  168. package/esm/src/UiInputFrameSpacer2.vue.js +20 -0
  169. package/esm/src/UiKeyValueItem.vue.js +4 -0
  170. package/esm/src/UiKeyValueItem2.vue.js +29 -0
  171. package/esm/src/UiKeyValueList.vue.js +4 -0
  172. package/esm/src/UiKeyValueList2.vue.js +17 -0
  173. package/esm/src/UiLayout.vue.js +4 -0
  174. package/esm/src/UiLayout2.vue.js +156 -0
  175. package/esm/src/UiLink.vue.js +4 -0
  176. package/esm/src/UiLink2.vue.js +37 -0
  177. package/esm/src/UiList.vue.js +4 -0
  178. package/esm/src/UiList2.vue.js +247 -0
  179. package/esm/src/UiLoadingIndicator.vue.js +4 -0
  180. package/esm/src/UiLoadingIndicator2.vue.js +49 -0
  181. package/esm/src/UiLoadingRegion.vue.js +4 -0
  182. package/esm/src/UiLoadingRegion2.vue.js +70 -0
  183. package/esm/src/UiMenu.vue.js +4 -0
  184. package/esm/src/UiMenu2.vue.js +107 -0
  185. package/esm/src/UiModal.vue.js +4 -0
  186. package/esm/src/UiModal2.vue.js +200 -0
  187. package/esm/src/UiMultiSelect.vue.js +4 -0
  188. package/esm/src/UiMultiSelect2.vue.js +221 -0
  189. package/esm/src/UiNavMenu.vue.js +4 -0
  190. package/esm/src/UiNavMenu2.vue.js +400 -0
  191. package/esm/src/UiNavbar.vue.js +4 -0
  192. package/esm/src/UiNavbar2.vue.js +37 -0
  193. package/esm/src/UiNotice.vue.js +4 -0
  194. package/esm/src/UiNotice2.vue.js +109 -0
  195. package/esm/src/UiPaginator.vue.js +4 -0
  196. package/esm/src/UiPaginator2.vue.js +254 -0
  197. package/esm/src/UiPaginatorJumper.vue.js +4 -0
  198. package/esm/src/UiPaginatorJumper2.vue.js +97 -0
  199. package/esm/src/UiPaginatorSizeSelect.vue.js +4 -0
  200. package/esm/src/UiPaginatorSizeSelect2.vue.js +51 -0
  201. package/esm/src/UiPopover.vue.js +4 -0
  202. package/esm/src/UiPopover2.vue.js +93 -0
  203. package/esm/src/UiPreviewRegion.vue.js +4 -0
  204. package/esm/src/UiPreviewRegion2.vue.js +64 -0
  205. package/esm/src/UiProgressBar.vue.js +4 -0
  206. package/esm/src/UiProgressBar2.vue.js +46 -0
  207. package/esm/src/UiRadioGroup.vue.js +4 -0
  208. package/esm/src/UiRadioGroup2.vue.js +43 -0
  209. package/esm/src/UiRegionLayout.vue.js +4 -0
  210. package/esm/src/UiRegionLayout2.vue.js +106 -0
  211. package/esm/src/UiSegmentedSelect.css +10 -0
  212. package/esm/src/UiSegmentedSelect.vue.js +8 -0
  213. package/esm/src/UiSegmentedSelect2.vue.js +192 -0
  214. package/esm/src/UiSelect.vue.js +4 -0
  215. package/esm/src/UiSelect2.vue.js +188 -0
  216. package/esm/src/UiSuggestions.vue.js +4 -0
  217. package/esm/src/UiSuggestions2.vue.js +174 -0
  218. package/esm/src/UiSwitch.vue.js +4 -0
  219. package/esm/src/UiSwitch2.vue.js +73 -0
  220. package/esm/src/UiTabPanel.vue.js +4 -0
  221. package/esm/src/UiTabPanel2.vue.js +40 -0
  222. package/esm/src/UiTable.vue.js +4 -0
  223. package/esm/src/UiTable2.vue.js +578 -0
  224. package/esm/src/UiTabs.vue.js +4 -0
  225. package/esm/src/UiTabs2.vue.js +63 -0
  226. package/esm/src/UiTextInput.vue.js +4 -0
  227. package/esm/src/UiTextInput2.vue.js +130 -0
  228. package/esm/src/UiTimeInput.vue.js +4 -0
  229. package/esm/src/UiTimeInput2.vue.js +46 -0
  230. package/esm/src/UiTooltip.vue.js +4 -0
  231. package/esm/src/UiTooltip2.vue.js +70 -0
  232. package/esm/src/UiUploadProgress.vue.js +4 -0
  233. package/esm/src/UiUploadProgress2.vue.js +138 -0
  234. package/esm/src/UiUploadRegion.vue.js +4 -0
  235. package/esm/src/UiUploadRegion2.vue.js +255 -0
  236. package/esm/src/controlSize.js +49 -0
  237. package/esm/src/dateFormat.js +35 -0
  238. package/esm/src/fieldPresentation.js +39 -0
  239. package/esm/src/fieldTheme.js +27 -0
  240. package/esm/src/focus.js +6 -0
  241. package/esm/src/icons/add.vue.js +32 -0
  242. package/esm/src/icons/arrow-down.vue.js +32 -0
  243. package/esm/src/icons/arrow-left.vue.js +32 -0
  244. package/esm/src/icons/arrow-right.vue.js +32 -0
  245. package/esm/src/icons/arrow-up.vue.js +32 -0
  246. package/esm/src/icons/attachment.vue.js +32 -0
  247. package/esm/src/icons/bookmark.vue.js +32 -0
  248. package/esm/src/icons/calendar.vue.js +41 -0
  249. package/esm/src/icons/cancel.vue.js +32 -0
  250. package/esm/src/icons/clear.vue.js +32 -0
  251. package/esm/src/icons/close.vue.js +32 -0
  252. package/esm/src/icons/collapse.vue.js +32 -0
  253. package/esm/src/icons/confirm.vue.js +32 -0
  254. package/esm/src/icons/copy.vue.js +41 -0
  255. package/esm/src/icons/delete.vue.js +32 -0
  256. package/esm/src/icons/download.vue.js +34 -0
  257. package/esm/src/icons/edit.vue.js +32 -0
  258. package/esm/src/icons/email.vue.js +40 -0
  259. package/esm/src/icons/error.vue.js +38 -0
  260. package/esm/src/icons/expand.vue.js +32 -0
  261. package/esm/src/icons/external-link.vue.js +32 -0
  262. package/esm/src/icons/file.vue.js +34 -0
  263. package/esm/src/icons/filter.vue.js +32 -0
  264. package/esm/src/icons/first.vue.js +32 -0
  265. package/esm/src/icons/globe.vue.js +38 -0
  266. package/esm/src/icons/help.vue.js +38 -0
  267. package/esm/src/icons/hide.vue.js +34 -0
  268. package/esm/src/icons/home.vue.js +34 -0
  269. package/esm/src/icons/image.vue.js +46 -0
  270. package/esm/src/icons/index.js +116 -0
  271. package/esm/src/icons/info.vue.js +38 -0
  272. package/esm/src/icons/last.vue.js +32 -0
  273. package/esm/src/icons/link.vue.js +34 -0
  274. package/esm/src/icons/location.vue.js +38 -0
  275. package/esm/src/icons/menu.vue.js +32 -0
  276. package/esm/src/icons/more-vertical.vue.js +47 -0
  277. package/esm/src/icons/more.vue.js +47 -0
  278. package/esm/src/icons/next.vue.js +32 -0
  279. package/esm/src/icons/previous.vue.js +32 -0
  280. package/esm/src/icons/refresh.vue.js +35 -0
  281. package/esm/src/icons/remove.vue.js +32 -0
  282. package/esm/src/icons/reset.vue.js +34 -0
  283. package/esm/src/icons/retry.vue.js +34 -0
  284. package/esm/src/icons/save.vue.js +34 -0
  285. package/esm/src/icons/search.vue.js +38 -0
  286. package/esm/src/icons/settings.vue.js +38 -0
  287. package/esm/src/icons/show.vue.js +38 -0
  288. package/esm/src/icons/sort-ascending.vue.js +32 -0
  289. package/esm/src/icons/sort-descending.vue.js +32 -0
  290. package/esm/src/icons/sort.vue.js +32 -0
  291. package/esm/src/icons/success.vue.js +38 -0
  292. package/esm/src/icons/time.vue.js +38 -0
  293. package/esm/src/icons/upload.vue.js +32 -0
  294. package/esm/src/icons/warning.vue.js +32 -0
  295. package/esm/src/index.js +16 -0
  296. package/esm/src/integration.js +43 -0
  297. package/esm/src/layout.js +13 -0
  298. package/esm/src/menuTheme.js +15 -0
  299. package/esm/src/nativeDirection.js +38 -0
  300. package/esm/src/selectEscape.js +14 -0
  301. package/esm/src/temporalNative.js +30 -0
  302. package/esm/src/temporalSegments.js +80 -0
  303. package/esm/src/zOrder.js +17 -0
  304. package/esm/testing/browser-control-parts.js +25 -0
  305. package/esm/testing/dom.js +51 -0
  306. package/esm/testing/index.js +122 -0
  307. package/esm/testing/presentation-mapping.js +52 -0
  308. package/esm/testing/presentation-parts.js +54 -0
  309. package/font-bundled.css +6 -0
  310. package/font-family.css +23 -0
  311. package/font.css +6 -0
  312. package/hooks/nativeIcons.mjs +73 -0
  313. package/hooks/vite.d.mts +6 -0
  314. package/hooks/vite.mjs +115 -0
  315. package/native-content.css +171 -0
  316. package/package.json +85 -4
  317. package/style.css +3039 -0
  318. package/types/src/AppProviders.vue.d.ts +18 -0
  319. package/types/src/CheckableFeedback.vue.d.ts +11 -0
  320. package/types/src/ChoiceGroup.vue.d.ts +15 -0
  321. package/types/src/CollectionCard.vue.d.ts +42 -0
  322. package/types/src/CollectionFilterEditor.vue.d.ts +16 -0
  323. package/types/src/CollectionHeaderFlow.vue.d.ts +17 -0
  324. package/types/src/CollectionHeaderPart.vue.d.ts +24 -0
  325. package/types/src/CollectionQueryBadge.vue.d.ts +28 -0
  326. package/types/src/CollectionSortLayout.vue.d.ts +17 -0
  327. package/types/src/CollectionStatus.vue.d.ts +28 -0
  328. package/types/src/CollectionSummary.vue.d.ts +22 -0
  329. package/types/src/CollectionTableActions.vue.d.ts +13 -0
  330. package/types/src/DrawerDepth.vue.d.ts +7 -0
  331. package/types/src/DrawerDock.vue.d.ts +17 -0
  332. package/types/src/DrawerSurface.vue.d.ts +37 -0
  333. package/types/src/EntryBranch.vue.d.ts +40 -0
  334. package/types/src/EntryCopy.vue.d.ts +25 -0
  335. package/types/src/EntrySurface.vue.d.ts +29 -0
  336. package/types/src/FeedbackItem.vue.d.ts +20 -0
  337. package/types/src/FeedbackViewport.vue.d.ts +19 -0
  338. package/types/src/FieldContent.vue.d.ts +16 -0
  339. package/types/src/FieldFailureTooltip.vue.d.ts +17 -0
  340. package/types/src/FileTypeIcon.vue.d.ts +6 -0
  341. package/types/src/FooterActions.vue.d.ts +13 -0
  342. package/types/src/NavigationCopy.vue.d.ts +29 -0
  343. package/types/src/NavigationVertical.vue.d.ts +42 -0
  344. package/types/src/NavigationViewport.vue.d.ts +6 -0
  345. package/types/src/OverlaySurface.vue.d.ts +37 -0
  346. package/types/src/TableAddRow.vue.d.ts +18 -0
  347. package/types/src/TableFilterButton.vue.d.ts +7 -0
  348. package/types/src/TemporalAction.vue.d.ts +13 -0
  349. package/types/src/TemporalEditor.vue.d.ts +12 -0
  350. package/types/src/TemporalIcon.vue.d.ts +6 -0
  351. package/types/src/TemporalInput.vue.d.ts +9 -0
  352. package/types/src/TemporalMode.vue.d.ts +20 -0
  353. package/types/src/TemporalNativeEditor.vue.d.ts +14 -0
  354. package/types/src/TemporalNativeRange.vue.d.ts +16 -0
  355. package/types/src/TemporalPicker.vue.d.ts +10 -0
  356. package/types/src/TemporalRangeIcon.vue.d.ts +7 -0
  357. package/types/src/TemporalSegments.vue.d.ts +6 -0
  358. package/types/src/TemporalTextEditor.vue.d.ts +15 -0
  359. package/types/src/UiApp.vue.d.ts +18 -0
  360. package/types/src/UiBadge.vue.d.ts +14 -0
  361. package/types/src/UiBreadcrumbs.vue.d.ts +24 -0
  362. package/types/src/UiButton.vue.d.ts +22 -0
  363. package/types/src/UiCard.vue.d.ts +24 -0
  364. package/types/src/UiCheckbox.vue.d.ts +10 -0
  365. package/types/src/UiCheckboxGroup.vue.d.ts +12 -0
  366. package/types/src/UiCollapsible.vue.d.ts +20 -0
  367. package/types/src/UiCollectionFooter.vue.d.ts +15 -0
  368. package/types/src/UiCollectionHeader.vue.d.ts +14 -0
  369. package/types/src/UiCollectionView.vue.d.ts +56 -0
  370. package/types/src/UiContent.vue.d.ts +14 -0
  371. package/types/src/UiDateInput.vue.d.ts +6 -0
  372. package/types/src/UiDateTimeInput.vue.d.ts +6 -0
  373. package/types/src/UiDrawer.vue.d.ts +40 -0
  374. package/types/src/UiDrawerLayout.vue.d.ts +16 -0
  375. package/types/src/UiEmpty.vue.d.ts +18 -0
  376. package/types/src/UiField.vue.d.ts +19 -0
  377. package/types/src/UiFileCollection.vue.d.ts +16 -0
  378. package/types/src/UiFileInput.vue.d.ts +6 -0
  379. package/types/src/UiFilePreview.vue.d.ts +6 -0
  380. package/types/src/UiFloating.vue.d.ts +14 -0
  381. package/types/src/UiForm.vue.d.ts +25 -0
  382. package/types/src/UiIcon.vue.d.ts +14 -0
  383. package/types/src/UiImagePreview.vue.d.ts +4 -0
  384. package/types/src/UiInputFrame.vue.d.ts +26 -0
  385. package/types/src/UiInputFrameSpacer.vue.d.ts +3 -0
  386. package/types/src/UiKeyValueItem.vue.d.ts +14 -0
  387. package/types/src/UiKeyValueList.vue.d.ts +13 -0
  388. package/types/src/UiLayout.vue.d.ts +17 -0
  389. package/types/src/UiLink.vue.d.ts +16 -0
  390. package/types/src/UiList.vue.d.ts +49 -0
  391. package/types/src/UiLoadingIndicator.vue.d.ts +14 -0
  392. package/types/src/UiLoadingRegion.vue.d.ts +17 -0
  393. package/types/src/UiMenu.vue.d.ts +59 -0
  394. package/types/src/UiModal.vue.d.ts +27 -0
  395. package/types/src/UiMultiSelect.vue.d.ts +16 -0
  396. package/types/src/UiNavMenu.vue.d.ts +34 -0
  397. package/types/src/UiNavbar.vue.d.ts +17 -0
  398. package/types/src/UiNotice.vue.d.ts +18 -0
  399. package/types/src/UiPaginator.vue.d.ts +4 -0
  400. package/types/src/UiPaginatorJumper.vue.d.ts +4 -0
  401. package/types/src/UiPaginatorSizeSelect.vue.d.ts +4 -0
  402. package/types/src/UiPopover.vue.d.ts +40 -0
  403. package/types/src/UiPreviewRegion.vue.d.ts +14 -0
  404. package/types/src/UiProgressBar.vue.d.ts +4 -0
  405. package/types/src/UiRadioGroup.vue.d.ts +12 -0
  406. package/types/src/UiRegionLayout.vue.d.ts +21 -0
  407. package/types/src/UiSegmentedSelect.vue.d.ts +12 -0
  408. package/types/src/UiSelect.vue.d.ts +14 -0
  409. package/types/src/UiSuggestions.vue.d.ts +37 -0
  410. package/types/src/UiSwitch.vue.d.ts +10 -0
  411. package/types/src/UiTabPanel.vue.d.ts +14 -0
  412. package/types/src/UiTable.vue.d.ts +66 -0
  413. package/types/src/UiTabs.vue.d.ts +29 -0
  414. package/types/src/UiTextInput.vue.d.ts +24 -0
  415. package/types/src/UiTimeInput.vue.d.ts +6 -0
  416. package/types/src/UiTooltip.vue.d.ts +25 -0
  417. package/types/src/UiUploadProgress.vue.d.ts +4 -0
  418. package/types/src/UiUploadRegion.vue.d.ts +6 -0
  419. package/types/src/controlSize.d.ts +20 -0
  420. package/types/src/dateFormat.d.ts +5 -0
  421. package/types/src/fieldPresentation.d.ts +31 -0
  422. package/types/src/fieldTheme.d.ts +5 -0
  423. package/types/src/focus.d.ts +3 -0
  424. package/types/src/icons/add.vue.d.ts +3 -0
  425. package/types/src/icons/arrow-down.vue.d.ts +3 -0
  426. package/types/src/icons/arrow-left.vue.d.ts +3 -0
  427. package/types/src/icons/arrow-right.vue.d.ts +3 -0
  428. package/types/src/icons/arrow-up.vue.d.ts +3 -0
  429. package/types/src/icons/attachment.vue.d.ts +3 -0
  430. package/types/src/icons/bookmark.vue.d.ts +3 -0
  431. package/types/src/icons/calendar.vue.d.ts +3 -0
  432. package/types/src/icons/cancel.vue.d.ts +3 -0
  433. package/types/src/icons/clear.vue.d.ts +3 -0
  434. package/types/src/icons/close.vue.d.ts +3 -0
  435. package/types/src/icons/collapse.vue.d.ts +3 -0
  436. package/types/src/icons/confirm.vue.d.ts +3 -0
  437. package/types/src/icons/copy.vue.d.ts +3 -0
  438. package/types/src/icons/delete.vue.d.ts +3 -0
  439. package/types/src/icons/download.vue.d.ts +3 -0
  440. package/types/src/icons/edit.vue.d.ts +3 -0
  441. package/types/src/icons/email.vue.d.ts +3 -0
  442. package/types/src/icons/error.vue.d.ts +3 -0
  443. package/types/src/icons/expand.vue.d.ts +3 -0
  444. package/types/src/icons/external-link.vue.d.ts +3 -0
  445. package/types/src/icons/file.vue.d.ts +3 -0
  446. package/types/src/icons/filter.vue.d.ts +3 -0
  447. package/types/src/icons/first.vue.d.ts +3 -0
  448. package/types/src/icons/globe.vue.d.ts +3 -0
  449. package/types/src/icons/help.vue.d.ts +3 -0
  450. package/types/src/icons/hide.vue.d.ts +3 -0
  451. package/types/src/icons/home.vue.d.ts +3 -0
  452. package/types/src/icons/image.vue.d.ts +3 -0
  453. package/types/src/icons/index.d.ts +181 -0
  454. package/types/src/icons/info.vue.d.ts +3 -0
  455. package/types/src/icons/last.vue.d.ts +3 -0
  456. package/types/src/icons/link.vue.d.ts +3 -0
  457. package/types/src/icons/location.vue.d.ts +3 -0
  458. package/types/src/icons/menu.vue.d.ts +3 -0
  459. package/types/src/icons/more-vertical.vue.d.ts +3 -0
  460. package/types/src/icons/more.vue.d.ts +3 -0
  461. package/types/src/icons/next.vue.d.ts +3 -0
  462. package/types/src/icons/previous.vue.d.ts +3 -0
  463. package/types/src/icons/refresh.vue.d.ts +3 -0
  464. package/types/src/icons/remove.vue.d.ts +3 -0
  465. package/types/src/icons/reset.vue.d.ts +3 -0
  466. package/types/src/icons/retry.vue.d.ts +3 -0
  467. package/types/src/icons/save.vue.d.ts +3 -0
  468. package/types/src/icons/search.vue.d.ts +3 -0
  469. package/types/src/icons/settings.vue.d.ts +3 -0
  470. package/types/src/icons/show.vue.d.ts +3 -0
  471. package/types/src/icons/sort-ascending.vue.d.ts +3 -0
  472. package/types/src/icons/sort-descending.vue.d.ts +3 -0
  473. package/types/src/icons/sort.vue.d.ts +3 -0
  474. package/types/src/icons/success.vue.d.ts +3 -0
  475. package/types/src/icons/time.vue.d.ts +3 -0
  476. package/types/src/icons/upload.vue.d.ts +3 -0
  477. package/types/src/icons/warning.vue.d.ts +3 -0
  478. package/types/src/index.d.ts +2 -0
  479. package/types/src/integration.d.ts +219 -0
  480. package/types/src/layout.d.ts +2 -0
  481. package/types/src/menuTheme.d.ts +1 -0
  482. package/types/src/nativeDirection.d.ts +2 -0
  483. package/types/src/selectEscape.d.ts +11 -0
  484. package/types/src/temporalNative.d.ts +3 -0
  485. package/types/src/temporalSegments.d.ts +15 -0
  486. package/types/src/zOrder.d.ts +3 -0
  487. package/types/testing/browser-control-parts.d.ts +2 -0
  488. package/types/testing/dom.d.mts +3 -0
  489. package/types/testing/index.d.ts +3 -0
  490. package/types/testing/presentation-mapping.d.ts +30 -0
  491. package/types/testing/presentation-parts.d.mts +20 -0
@@ -0,0 +1,248 @@
1
+ import { defineComponent, ref, provide, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createVNode, withCtx, renderSlot, createBlock, createSlots, createTextVNode } from "vue";
2
+ import { uiFocusPresentation } from "./focus.js";
3
+ import { useUiZView, useUiCollectionHeaderField, useUiFieldStrategies } from "@uninterface/uninterface/backend";
4
+ import { useControlSize } from "./controlSize.js";
5
+ import { useFieldTheme } from "./fieldTheme.js";
6
+ import { fieldPresentationKey } from "./fieldPresentation.js";
7
+ import UFormField from "@nuxt/ui/components/FormField.vue";
8
+ import { inputIdInjectionKey } from "@nuxt/ui/composables/useFormField";
9
+ import _sfc_main$1 from "./FieldFailureTooltip2.vue.js";
10
+ import _sfc_main$2 from "./FieldContent2.vue.js";
11
+ import { useComponentProps } from "@nuxt/ui/composables/useComponentProps";
12
+ const _hoisted_1 = ["data-ui-label-align", "data-ui-checkable", "data-ui-checkable-group", "data-ui-checkable-label-align", "aria-describedby", "aria-busy", "aria-invalid"];
13
+ const _hoisted_2 = ["id"];
14
+ const _hoisted_3 = ["id"];
15
+ const _hoisted_4 = { class: "nuxt-strategy-feedback" };
16
+ const _hoisted_5 = ["id"];
17
+ const _hoisted_6 = ["id"];
18
+ const _hoisted_7 = { class: "nuxt-strategy-feedback" };
19
+ const _hoisted_8 = ["id"];
20
+ const _hoisted_9 = ["id"];
21
+ const _hoisted_10 = ["id"];
22
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
+ __name: "UiField",
24
+ props: {
25
+ binding: {}
26
+ },
27
+ setup(__props) {
28
+ useUiZView();
29
+ const element = ref();
30
+ useUiCollectionHeaderField(element, ".nuxt-input-frame, .nuxt-control-focus");
31
+ const props = __props;
32
+ provide(
33
+ inputIdInjectionKey,
34
+ computed(() => props.binding.id)
35
+ );
36
+ const nativeField = useComponentProps("formField", {
37
+ orientation: void 0
38
+ });
39
+ const policy = useUiFieldStrategies(() => props.binding, {
40
+ help: "replace-help",
41
+ defaultLabels: () => nativeField.orientation === "horizontal" ? "beside-far" : "above",
42
+ failureModes: ["show-below", "show-tooltip"],
43
+ labels: (value) => props.binding.checkable ? value === "above" || value === "beside" : !checkboxes.value && (value === "above" || !props.binding.group && value === "beside")
44
+ });
45
+ const controlSize = useControlSize("UiField");
46
+ const customFeedback = computed(
47
+ () => policy.value.help === "together" || policy.value.failure === "show-tooltip"
48
+ );
49
+ const fieldTheme = useFieldTheme(() => controlSize.value);
50
+ const checkboxes = ref(0);
51
+ const outerLabel = computed(
52
+ () => !checkboxes.value || policy.value.labels !== "adjacent"
53
+ );
54
+ const checkableFeedback = computed(
55
+ () => !props.binding.group && checkboxes.value === 1 && policy.value.checkableMode === "flushed"
56
+ );
57
+ provide(fieldPresentationKey, {
58
+ feedback: computed(
59
+ () => checkableFeedback.value ? {
60
+ help: policy.value.showHelp ? props.binding.help : void 0,
61
+ issue: policy.value.failure !== "show-tooltip" ? policy.value.issue : void 0,
62
+ size: controlSize.value
63
+ } : {}
64
+ ),
65
+ binding: computed(() => props.binding.group ? void 0 : props.binding),
66
+ registerCheckbox() {
67
+ checkboxes.value++;
68
+ return () => {
69
+ checkboxes.value--;
70
+ };
71
+ }
72
+ });
73
+ return (_ctx, _cache) => {
74
+ return __props.binding.group ? (openBlock(), createElementBlock("fieldset", mergeProps({
75
+ key: 0,
76
+ ref_key: "element",
77
+ ref: element,
78
+ "data-ui-label-align": unref(policy).labelAlignment,
79
+ "data-ui-checkable": unref(policy).checkableMode,
80
+ "data-ui-checkable-group": __props.binding.checkable && __props.binding.group ? true : void 0,
81
+ "data-ui-checkable-label-align": __props.binding.checkable ? unref(policy).checkableLabelAlignment : void 0,
82
+ class: unref(fieldTheme).root({ class: "nuxt-field-group" }),
83
+ "aria-describedby": [
84
+ unref(policy).describedBy,
85
+ __props.binding.requiredLabel ? `${__props.binding.id}-required` : void 0
86
+ ].filter(Boolean).join(" ") || void 0,
87
+ "aria-busy": __props.binding.validating || void 0,
88
+ "aria-invalid": __props.binding.issue ? true : void 0
89
+ }, __props.binding.group ? unref(uiFocusPresentation) : {}), [
90
+ createElementVNode(
91
+ "legend",
92
+ {
93
+ style: normalizeStyle(
94
+ unref(policy).labels === "hidden" ? {
95
+ position: "absolute",
96
+ insetBlockStart: 0,
97
+ insetInlineStart: 0,
98
+ width: "1px",
99
+ height: "1px",
100
+ overflow: "hidden",
101
+ clipPath: "inset(50%)"
102
+ } : void 0
103
+ ),
104
+ class: normalizeClass(
105
+ unref(fieldTheme).label({
106
+ class: unref(policy).marker === "required" ? `nuxt-required${unref(policy).markerPosition === "prefix" ? " nuxt-required-prefix" : ""}` : void 0
107
+ })
108
+ )
109
+ },
110
+ toDisplayString(__props.binding.label),
111
+ 7
112
+ /* TEXT, CLASS, STYLE */
113
+ ),
114
+ __props.binding.requiredLabel ? (openBlock(), createElementBlock("span", {
115
+ key: 0,
116
+ id: `${__props.binding.id}-required`,
117
+ class: "sr-only nuxt-required-description"
118
+ }, toDisplayString(__props.binding.requiredLabel), 9, _hoisted_2)) : createCommentVNode("v-if", true),
119
+ createElementVNode(
120
+ "div",
121
+ {
122
+ class: normalizeClass(unref(fieldTheme).container({ class: "nuxt-strategy-content" }))
123
+ },
124
+ [
125
+ createVNode(_sfc_main$1, {
126
+ message: unref(policy).failure === "show-tooltip" ? unref(policy).issue : null,
127
+ id: `${__props.binding.id}-issue`
128
+ }, {
129
+ default: withCtx(() => [
130
+ renderSlot(_ctx.$slots, "default")
131
+ ]),
132
+ _: 3
133
+ /* FORWARDED */
134
+ }, 8, ["message", "id"]),
135
+ unref(policy).showHelp ? (openBlock(), createElementBlock("p", {
136
+ key: 0,
137
+ id: `${__props.binding.id}-help`,
138
+ class: normalizeClass(unref(fieldTheme).help({ class: "nuxt-strategy-help" }))
139
+ }, toDisplayString(__props.binding.help), 11, _hoisted_3)) : createCommentVNode("v-if", true),
140
+ createElementVNode("div", _hoisted_4, [
141
+ unref(policy).issue && unref(policy).failure !== "show-tooltip" ? (openBlock(), createElementBlock("p", {
142
+ key: 0,
143
+ id: `${__props.binding.id}-issue`,
144
+ class: normalizeClass(unref(fieldTheme).error())
145
+ }, toDisplayString(unref(policy).issue), 11, _hoisted_5)) : createCommentVNode("v-if", true)
146
+ ])
147
+ ],
148
+ 2
149
+ /* CLASS */
150
+ )
151
+ ], 16, _hoisted_1)) : (openBlock(), createBlock(UFormField, {
152
+ key: 1,
153
+ ref_key: "element",
154
+ ref: element,
155
+ "data-ui-label-align": unref(policy).labelAlignment,
156
+ "data-ui-checkable": unref(policy).checkableMode,
157
+ "data-ui-checkable-group": __props.binding.checkable && __props.binding.group ? true : void 0,
158
+ "data-ui-checkable-label-align": __props.binding.checkable ? unref(policy).checkableLabelAlignment : void 0,
159
+ class: normalizeClass(["nuxt-strategy-field", {
160
+ "nuxt-labels-beside": unref(policy).labels?.startsWith("beside"),
161
+ "nuxt-labels-hidden": unref(policy).labels === "hidden"
162
+ }]),
163
+ size: unref(controlSize),
164
+ orientation: unref(policy).labels.startsWith("beside") ? "horizontal" : "vertical",
165
+ label: !outerLabel.value ? void 0 : __props.binding.label,
166
+ required: outerLabel.value && unref(policy).marker === "required" && unref(policy).markerPosition === "suffix",
167
+ ui: {
168
+ container: unref(policy).labels === "hidden" ? "mt-0" : void 0,
169
+ label: outerLabel.value && unref(policy).marker === "required" ? `nuxt-required${unref(policy).markerPosition === "prefix" ? " nuxt-required-prefix" : ""}` : void 0
170
+ },
171
+ error: checkableFeedback.value || customFeedback.value ? false : unref(policy).issue || void 0,
172
+ help: checkableFeedback.value || customFeedback.value ? void 0 : __props.binding.help
173
+ }, createSlots({
174
+ default: withCtx(() => [
175
+ createVNode(_sfc_main$2, {
176
+ id: __props.binding.id
177
+ }, {
178
+ default: withCtx(() => [
179
+ createElementVNode("div", {
180
+ class: normalizeClass(["nuxt-strategy-content", {}])
181
+ }, [
182
+ createVNode(_sfc_main$1, {
183
+ message: unref(policy).failure === "show-tooltip" ? unref(policy).issue : null,
184
+ id: `${__props.binding.id}-issue`
185
+ }, {
186
+ default: withCtx(() => [
187
+ renderSlot(_ctx.$slots, "default")
188
+ ]),
189
+ _: 3
190
+ /* FORWARDED */
191
+ }, 8, ["message", "id"]),
192
+ !checkableFeedback.value && customFeedback.value && unref(policy).showHelp ? (openBlock(), createElementBlock("p", {
193
+ key: 0,
194
+ id: `${__props.binding.id}-help`,
195
+ class: normalizeClass(unref(fieldTheme).help({ class: "nuxt-strategy-help" }))
196
+ }, toDisplayString(__props.binding.help), 11, _hoisted_6)) : createCommentVNode("v-if", true),
197
+ createElementVNode("div", _hoisted_7, [
198
+ !checkableFeedback.value && customFeedback.value && unref(policy).issue && unref(policy).failure !== "show-tooltip" ? (openBlock(), createElementBlock("p", {
199
+ key: 0,
200
+ id: `${__props.binding.id}-issue`,
201
+ class: normalizeClass(unref(fieldTheme).error())
202
+ }, toDisplayString(unref(policy).issue), 11, _hoisted_8)) : createCommentVNode("v-if", true)
203
+ ])
204
+ ])
205
+ ]),
206
+ _: 3
207
+ /* FORWARDED */
208
+ }, 8, ["id"])
209
+ ]),
210
+ _: 2
211
+ /* DYNAMIC */
212
+ }, [
213
+ outerLabel.value ? {
214
+ name: "label",
215
+ fn: withCtx(() => [
216
+ createTextVNode(
217
+ toDisplayString(__props.binding.label),
218
+ 1
219
+ /* TEXT */
220
+ )
221
+ ]),
222
+ key: "0"
223
+ } : void 0,
224
+ !checkableFeedback.value && !customFeedback.value && unref(policy).issue ? {
225
+ name: "error",
226
+ fn: withCtx(() => [
227
+ createElementVNode("span", {
228
+ id: `${__props.binding.id}-issue`
229
+ }, toDisplayString(unref(policy).issue), 9, _hoisted_9)
230
+ ]),
231
+ key: "1"
232
+ } : void 0,
233
+ !checkableFeedback.value && !customFeedback.value && __props.binding.help ? {
234
+ name: "help",
235
+ fn: withCtx(() => [
236
+ createElementVNode("span", {
237
+ id: `${__props.binding.id}-help`
238
+ }, toDisplayString(__props.binding.help), 9, _hoisted_10)
239
+ ]),
240
+ key: "2"
241
+ } : void 0
242
+ ]), 1032, ["data-ui-label-align", "data-ui-checkable", "data-ui-checkable-group", "data-ui-checkable-label-align", "size", "orientation", "class", "label", "required", "ui", "error", "help"]));
243
+ };
244
+ }
245
+ });
246
+ export {
247
+ _sfc_main as default
248
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiFileCollection2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent, openBlock, createElementBlock, Fragment, renderList, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
+ import { useUiZView } from "@uninterface/uninterface/backend";
3
+ import UButton from "@nuxt/ui/components/Button.vue";
4
+ const _hoisted_1 = { class: "nuxt-ui-file-collection" };
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "UiFileCollection",
7
+ props: {
8
+ files: {},
9
+ removable: { type: Boolean },
10
+ disabled: { type: Boolean },
11
+ removeLabel: {},
12
+ remove: { type: Function }
13
+ },
14
+ setup(__props) {
15
+ useUiZView();
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createElementBlock("ul", _hoisted_1, [
18
+ (openBlock(true), createElementBlock(
19
+ Fragment,
20
+ null,
21
+ renderList(__props.files, (file) => {
22
+ return openBlock(), createElementBlock("li", {
23
+ key: file.key
24
+ }, [
25
+ renderSlot(_ctx.$slots, "default", { file }),
26
+ __props.removable ? (openBlock(), createBlock(UButton, {
27
+ key: 0,
28
+ type: "button",
29
+ disabled: __props.disabled,
30
+ "aria-label": `${__props.removeLabel}: ${file.name}`,
31
+ onClick: ($event) => __props.remove(file.key)
32
+ }, {
33
+ default: withCtx(() => [
34
+ createTextVNode(
35
+ toDisplayString(__props.removeLabel),
36
+ 1
37
+ /* TEXT */
38
+ )
39
+ ]),
40
+ _: 1
41
+ /* STABLE */
42
+ }, 8, ["disabled", "aria-label", "onClick"])) : createCommentVNode("v-if", true)
43
+ ]);
44
+ }),
45
+ 128
46
+ /* KEYED_FRAGMENT */
47
+ ))
48
+ ]);
49
+ };
50
+ }
51
+ });
52
+ export {
53
+ _sfc_main as default
54
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiFileInput2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,149 @@
1
+ import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, mergeProps, createBlock, createCommentVNode, nextTick } from "vue";
2
+ import { useUiZView, useUiFieldDescription, focusUiTarget } from "@uninterface/uninterface/backend";
3
+ import _sfc_main$1 from "./UiInputFrame2.vue.js";
4
+ import UButton from "@nuxt/ui/components/Button.vue";
5
+ const _hoisted_1 = {
6
+ class: "nuxt-ui-file-input",
7
+ "data-ui-file-input": ""
8
+ };
9
+ const _hoisted_2 = { class: "nuxt-ui-file-chooser" };
10
+ const _hoisted_3 = { key: 0 };
11
+ const _hoisted_4 = ["id", "title"];
12
+ const _hoisted_5 = ["id", "accept", "capture", "disabled", "aria-label", "aria-describedby", "aria-required", "aria-invalid", "aria-busy"];
13
+ const _hoisted_6 = ["id"];
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...{ inheritAttrs: false },
16
+ __name: "UiFileInput",
17
+ props: {
18
+ label: {},
19
+ binding: {},
20
+ file: {},
21
+ readonly: { type: Boolean },
22
+ accept: {},
23
+ capture: {},
24
+ pending: { type: Boolean },
25
+ rejection: {},
26
+ chooseLabel: {},
27
+ clearLabel: {},
28
+ select: { type: Function },
29
+ clear: { type: Function }
30
+ },
31
+ setup(__props, { expose: __expose }) {
32
+ useUiZView();
33
+ const props = __props;
34
+ const input = ref();
35
+ const fieldDescription = useUiFieldDescription(
36
+ () => props.binding,
37
+ "replace-help"
38
+ );
39
+ const description = computed(
40
+ () => [
41
+ fieldDescription.value,
42
+ props.file ? props.binding.id + "-filename" : "",
43
+ props.rejection ? props.binding.id + "-rejection" : ""
44
+ ].filter(Boolean).join(" ") || void 0
45
+ );
46
+ const frameBinding = computed(() => ({
47
+ ...props.binding,
48
+ id: props.binding.id + "-surface",
49
+ invalid: props.binding.invalid || !!props.rejection,
50
+ validating: props.binding.validating || props.pending
51
+ }));
52
+ const focus = () => focusUiTarget(
53
+ () => input.value,
54
+ () => props.binding.disabled || props.readonly
55
+ );
56
+ async function changed(event) {
57
+ const target = event.target;
58
+ const files = [...target.files ?? []];
59
+ target.value = "";
60
+ if (files.length) await props.select(files);
61
+ }
62
+ async function clearFile() {
63
+ if (props.binding.disabled || props.readonly) return;
64
+ await props.clear();
65
+ await nextTick();
66
+ await focus();
67
+ }
68
+ __expose({ focus });
69
+ return (_ctx, _cache) => {
70
+ return openBlock(), createElementBlock("div", _hoisted_1, [
71
+ createVNode(_sfc_main$1, {
72
+ binding: frameBinding.value,
73
+ "description-binding": __props.binding,
74
+ label: __props.label || __props.chooseLabel,
75
+ readonly: __props.readonly,
76
+ dirty: !!__props.file,
77
+ "focus-editor": focus
78
+ }, {
79
+ default: withCtx(() => [
80
+ createElementVNode("span", _hoisted_2, [
81
+ !__props.file ? (openBlock(), createElementBlock(
82
+ "span",
83
+ _hoisted_3,
84
+ toDisplayString(__props.chooseLabel),
85
+ 1
86
+ /* TEXT */
87
+ )) : (openBlock(), createElementBlock("span", {
88
+ key: 1,
89
+ id: __props.binding.id + "-filename",
90
+ class: "nuxt-ui-file-name",
91
+ "data-ui-file-name": "",
92
+ title: __props.file?.name
93
+ }, toDisplayString(__props.file?.name), 9, _hoisted_4)),
94
+ createElementVNode("input", mergeProps(_ctx.$attrs, {
95
+ ref_key: "input",
96
+ ref: input,
97
+ id: __props.binding.id,
98
+ type: "file",
99
+ accept: __props.accept,
100
+ capture: __props.capture,
101
+ disabled: __props.binding.disabled || __props.readonly,
102
+ "aria-label": String(_ctx.$attrs["aria-label"] ?? (__props.label || __props.chooseLabel)),
103
+ "aria-describedby": [description.value, _ctx.$attrs["aria-describedby"]].filter(Boolean).join(" ") || void 0,
104
+ "aria-required": __props.binding.required || void 0,
105
+ "aria-invalid": __props.binding.invalid || !!__props.rejection || void 0,
106
+ "aria-busy": __props.pending || __props.binding.validating || void 0,
107
+ onChange: changed
108
+ }), null, 16, _hoisted_5)
109
+ ]),
110
+ __props.file ? (openBlock(), createBlock(UButton, {
111
+ key: 0,
112
+ type: "button",
113
+ color: "neutral",
114
+ variant: "link",
115
+ class: "nuxt-input-action",
116
+ ui: { base: "p-0" },
117
+ disabled: __props.binding.disabled || __props.readonly,
118
+ "aria-label": __props.clearLabel,
119
+ "data-ui-file-clear": "",
120
+ onClick: clearFile
121
+ }, {
122
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
123
+ createElementVNode(
124
+ "span",
125
+ { "aria-hidden": "true" },
126
+ "×",
127
+ -1
128
+ /* CACHED */
129
+ )
130
+ ])]),
131
+ _: 1
132
+ /* STABLE */
133
+ }, 8, ["disabled", "aria-label"])) : createCommentVNode("v-if", true)
134
+ ]),
135
+ _: 1
136
+ /* STABLE */
137
+ }, 8, ["binding", "description-binding", "label", "readonly", "dirty"]),
138
+ __props.rejection ? (openBlock(), createElementBlock("div", {
139
+ key: 0,
140
+ id: __props.binding.id + "-rejection",
141
+ role: "status"
142
+ }, toDisplayString(__props.rejection), 9, _hoisted_6)) : createCommentVNode("v-if", true)
143
+ ]);
144
+ };
145
+ }
146
+ });
147
+ export {
148
+ _sfc_main as default
149
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiFilePreview2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,82 @@
1
+ import { defineComponent, openBlock, createBlock, createElementBlock, createElementVNode, unref, mergeProps, toHandlers, resolveDynamicComponent, toDisplayString, createCommentVNode } from "vue";
2
+ import { useUiZView, useUiFilePreviewView } from "@uninterface/uninterface/backend";
3
+ import _sfc_main$1 from "./UiImagePreview2.vue.js";
4
+ import _sfc_main$2 from "./FileTypeIcon2.vue.js";
5
+ const _hoisted_1 = ["data-presentation"];
6
+ const _hoisted_2 = ["data-file-kind"];
7
+ const _hoisted_3 = ["src"];
8
+ const _hoisted_4 = { class: "nuxt-ui-file-details" };
9
+ const _hoisted_5 = ["title"];
10
+ const _hoisted_6 = {
11
+ key: 0,
12
+ class: "nuxt-ui-file-size",
13
+ "data-file-size": ""
14
+ };
15
+ const _sfc_main = /* @__PURE__ */ defineComponent({
16
+ __name: "UiFilePreview",
17
+ props: {
18
+ thumbnail: { type: Boolean },
19
+ presentation: { default: "tile" },
20
+ mediaType: {},
21
+ name: {},
22
+ size: {},
23
+ url: {},
24
+ image: { type: Boolean },
25
+ alt: {}
26
+ },
27
+ setup(__props) {
28
+ useUiZView();
29
+ const props = __props;
30
+ const { kind, sizeLabel, icon, thumbnailImage } = useUiFilePreviewView(props);
31
+ return (_ctx, _cache) => {
32
+ return __props.image && !__props.thumbnail ? (openBlock(), createBlock(_sfc_main$1, {
33
+ key: 0,
34
+ url: __props.url,
35
+ alt: __props.alt
36
+ }, null, 8, ["url", "alt"])) : (openBlock(), createElementBlock("div", {
37
+ key: 1,
38
+ class: "nuxt-ui-file-preview",
39
+ "data-ui-file-preview": "",
40
+ "data-presentation": __props.presentation
41
+ }, [
42
+ createElementVNode("span", {
43
+ class: "nuxt-ui-file-icon",
44
+ "data-file-icon": "",
45
+ "data-file-kind": unref(kind),
46
+ "aria-hidden": "true"
47
+ }, [
48
+ unref(thumbnailImage) ? (openBlock(), createElementBlock("img", mergeProps({
49
+ key: unref(thumbnailImage).url,
50
+ src: unref(thumbnailImage).url,
51
+ alt: "",
52
+ "data-file-thumbnail": ""
53
+ }, toHandlers({ error: unref(thumbnailImage).error }, true)), null, 16, _hoisted_3)) : unref(icon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(icon)), {
54
+ key: 1,
55
+ "aria-hidden": "true",
56
+ focusable: "false"
57
+ })) : (openBlock(), createBlock(_sfc_main$2, {
58
+ key: 2,
59
+ kind: unref(kind)
60
+ }, null, 8, ["kind"]))
61
+ ], 8, _hoisted_2),
62
+ createElementVNode("div", _hoisted_4, [
63
+ createElementVNode("span", {
64
+ class: "nuxt-ui-file-preview-name",
65
+ "data-file-name": "",
66
+ title: __props.name
67
+ }, toDisplayString(__props.name), 9, _hoisted_5),
68
+ unref(sizeLabel) !== void 0 ? (openBlock(), createElementBlock(
69
+ "span",
70
+ _hoisted_6,
71
+ toDisplayString(unref(sizeLabel)),
72
+ 1
73
+ /* TEXT */
74
+ )) : createCommentVNode("v-if", true)
75
+ ])
76
+ ], 8, _hoisted_1));
77
+ };
78
+ }
79
+ });
80
+ export {
81
+ _sfc_main as default
82
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiFloating2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,108 @@
1
+ import { defineComponent, openBlock, createBlock, Teleport, unref, createElementVNode, mergeProps, renderSlot, createElementBlock, withModifiers, normalizeStyle, createTextVNode, toDisplayString, createVNode, withCtx, createCommentVNode } from "vue";
2
+ import UButton from "@nuxt/ui/components/Button.vue";
3
+ import { useUiFloatingView, useUiOverlayTarget } from "@uninterface/uninterface/backend";
4
+ const _hoisted_1 = ["value"];
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ ...{ inheritAttrs: false },
7
+ __name: "UiFloating",
8
+ props: {
9
+ edge: {},
10
+ position: {},
11
+ draggable: { type: Boolean },
12
+ active: { type: Boolean },
13
+ requestPosition: { type: Function },
14
+ moveLabel: {},
15
+ positionLabel: {},
16
+ doneLabel: {}
17
+ },
18
+ setup(__props) {
19
+ const props = __props;
20
+ const {
21
+ root,
22
+ ready,
23
+ style,
24
+ movePanel,
25
+ moveStyle,
26
+ editor,
27
+ editing,
28
+ closeMove,
29
+ attributes,
30
+ move
31
+ } = useUiFloatingView(props);
32
+ const portal = useUiOverlayTarget();
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createBlock(Teleport, {
35
+ to: unref(portal) ?? "body",
36
+ disabled: !unref(ready)
37
+ }, [
38
+ createElementVNode(
39
+ "div",
40
+ mergeProps({
41
+ ref_key: "root",
42
+ ref: root,
43
+ class: "nuxt-ui-floating",
44
+ style: unref(style)
45
+ }, { ..._ctx.$attrs, ...unref(attributes) }),
46
+ [
47
+ renderSlot(_ctx.$slots, "default"),
48
+ unref(editing) ? (openBlock(), createElementBlock(
49
+ "div",
50
+ {
51
+ key: 0,
52
+ ref_key: "movePanel",
53
+ ref: movePanel,
54
+ style: normalizeStyle(unref(moveStyle)),
55
+ class: "nuxt-ui-floating-move",
56
+ onPointerdown: _cache[1] || (_cache[1] = withModifiers(() => {
57
+ }, ["stop"])),
58
+ onContextmenu: _cache[2] || (_cache[2] = withModifiers(() => {
59
+ }, ["stop", "prevent"]))
60
+ },
61
+ [
62
+ createElementVNode("label", null, [
63
+ createTextVNode(
64
+ toDisplayString(__props.positionLabel) + " ",
65
+ 1
66
+ /* TEXT */
67
+ ),
68
+ createElementVNode("input", {
69
+ ref_key: "editor",
70
+ ref: editor,
71
+ type: "range",
72
+ min: "0",
73
+ max: "100",
74
+ step: "1",
75
+ value: __props.position * 100,
76
+ onInput: _cache[0] || (_cache[0] = ($event) => unref(move)(Number($event.target.value)))
77
+ }, null, 40, _hoisted_1)
78
+ ]),
79
+ createVNode(UButton, {
80
+ color: "primary",
81
+ variant: "outline",
82
+ onClick: unref(closeMove)
83
+ }, {
84
+ default: withCtx(() => [
85
+ createTextVNode(
86
+ toDisplayString(__props.doneLabel),
87
+ 1
88
+ /* TEXT */
89
+ )
90
+ ]),
91
+ _: 1
92
+ /* STABLE */
93
+ }, 8, ["onClick"])
94
+ ],
95
+ 36
96
+ /* STYLE, NEED_HYDRATION */
97
+ )) : createCommentVNode("v-if", true)
98
+ ],
99
+ 16
100
+ /* FULL_PROPS */
101
+ )
102
+ ], 8, ["to", "disabled"]);
103
+ };
104
+ }
105
+ });
106
+ export {
107
+ _sfc_main as default
108
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiForm2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };