@uninterface/backend-element-plus 0.0.0-stage → 2.14.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 (371) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/THIRD-PARTY-NOTICES.md +37 -0
  4. package/capabilities.json +168 -0
  5. package/docs/README.md +47 -0
  6. package/docs/collections.md +211 -0
  7. package/docs/contract-adaptations.md +111 -0
  8. package/docs/customization.md +131 -0
  9. package/docs/examples/NativeReference.vue +147 -0
  10. package/docs/exports.md +32 -0
  11. package/docs/floating-panels.md +53 -0
  12. package/docs/font-licenses/inter.txt +93 -0
  13. package/docs/font-licenses/noto-sans-sc.txt +93 -0
  14. package/docs/font-licenses/noto-sans-tc.txt +93 -0
  15. package/docs/icon-licenses/Element-Plus.txt +21 -0
  16. package/docs/icon-licenses/SOURCES.md +47 -0
  17. package/docs/modals.md +29 -0
  18. package/docs/native-html.md +21 -0
  19. package/docs/navigation.md +31 -0
  20. package/docs/package-build.md +20 -0
  21. package/docs/presentation.md +291 -0
  22. package/docs/progress.md +9 -0
  23. package/docs/reviewed-components.md +76 -0
  24. package/docs/segmented-selection.md +22 -0
  25. package/docs/selection-feedback-panels.md +79 -0
  26. package/docs/setup.md +159 -0
  27. package/docs/strategies.md +89 -0
  28. package/docs/table-columns.md +37 -0
  29. package/docs/testing.md +44 -0
  30. package/docs/typography.md +93 -0
  31. package/document.css +102 -0
  32. package/esm/_virtual/_plugin-vue_export-helper.js +10 -0
  33. package/esm/capabilities.json.js +14 -0
  34. package/esm/package.json.js +14 -0
  35. package/esm/src/ChoiceGroup.css +23 -0
  36. package/esm/src/ChoiceGroup.vue.js +8 -0
  37. package/esm/src/ChoiceGroup2.vue.js +221 -0
  38. package/esm/src/CollectionCard.vue.js +4 -0
  39. package/esm/src/CollectionCard2.vue.js +199 -0
  40. package/esm/src/CollectionFilterEditor.vue.js +4 -0
  41. package/esm/src/CollectionFilterEditor2.vue.js +31 -0
  42. package/esm/src/CollectionHeaderFlow.vue.js +4 -0
  43. package/esm/src/CollectionHeaderFlow2.vue.js +33 -0
  44. package/esm/src/CollectionHeaderPart.vue.js +4 -0
  45. package/esm/src/CollectionHeaderPart2.vue.js +40 -0
  46. package/esm/src/CollectionQueryBadge.vue.js +4 -0
  47. package/esm/src/CollectionQueryBadge2.vue.js +86 -0
  48. package/esm/src/CollectionSortLayout.vue.js +4 -0
  49. package/esm/src/CollectionSortLayout2.vue.js +23 -0
  50. package/esm/src/CollectionStatus.vue.js +4 -0
  51. package/esm/src/CollectionStatus2.vue.js +135 -0
  52. package/esm/src/CollectionSummary.vue.js +4 -0
  53. package/esm/src/CollectionSummary2.vue.js +70 -0
  54. package/esm/src/CollectionTableActions.vue.js +13 -0
  55. package/esm/src/DrawerDepth.vue.js +4 -0
  56. package/esm/src/DrawerDepth2.vue.js +28 -0
  57. package/esm/src/DrawerDock.vue.js +4 -0
  58. package/esm/src/DrawerDock2.vue.js +26 -0
  59. package/esm/src/EntryBranch.vue.js +4 -0
  60. package/esm/src/EntryBranch2.vue.js +357 -0
  61. package/esm/src/EntryContent.css +10 -0
  62. package/esm/src/EntryContent.vue.js +8 -0
  63. package/esm/src/EntryContent2.vue.js +79 -0
  64. package/esm/src/EntryPopup.vue.js +4 -0
  65. package/esm/src/EntryPopup2.vue.js +164 -0
  66. package/esm/src/FeedbackItem.vue.js +4 -0
  67. package/esm/src/FeedbackItem2.vue.js +145 -0
  68. package/esm/src/FeedbackViewport.vue.js +4 -0
  69. package/esm/src/FeedbackViewport2.vue.js +42 -0
  70. package/esm/src/FieldError.vue.js +4 -0
  71. package/esm/src/FieldError2.vue.js +34 -0
  72. package/esm/src/FieldFailureTooltip.vue.js +4 -0
  73. package/esm/src/FieldFailureTooltip2.vue.js +96 -0
  74. package/esm/src/FileTypeIcon.vue.js +4 -0
  75. package/esm/src/FileTypeIcon2.vue.js +32 -0
  76. package/esm/src/FooterActions.vue.js +16 -0
  77. package/esm/src/MenuBridge.vue.js +4 -0
  78. package/esm/src/MenuBridge2.vue.js +68 -0
  79. package/esm/src/NativeMenu.vue.js +4 -0
  80. package/esm/src/NativeMenu2.vue.js +90 -0
  81. package/esm/src/OverlaySurface.vue.js +4 -0
  82. package/esm/src/OverlaySurface2.vue.js +195 -0
  83. package/esm/src/TableAddRow.vue.js +4 -0
  84. package/esm/src/TableAddRow2.vue.js +66 -0
  85. package/esm/src/TableFilterButton.vue.js +4 -0
  86. package/esm/src/TableFilterButton2.vue.js +35 -0
  87. package/esm/src/TemporalAction.vue.js +4 -0
  88. package/esm/src/TemporalAction2.vue.js +46 -0
  89. package/esm/src/TemporalEditor.vue.js +4 -0
  90. package/esm/src/TemporalEditor2.vue.js +113 -0
  91. package/esm/src/TemporalInput.vue.js +4 -0
  92. package/esm/src/TemporalInput2.vue.js +269 -0
  93. package/esm/src/TemporalMode.vue.js +4 -0
  94. package/esm/src/TemporalMode2.vue.js +149 -0
  95. package/esm/src/TemporalPicker.vue.js +4 -0
  96. package/esm/src/TemporalPicker2.vue.js +155 -0
  97. package/esm/src/TemporalRangeIcon.vue.js +4 -0
  98. package/esm/src/TemporalRangeIcon2.vue.js +67 -0
  99. package/esm/src/TemporalRangePicker.vue.js +4 -0
  100. package/esm/src/TemporalRangePicker2.vue.js +199 -0
  101. package/esm/src/TemporalTimePanel.vue.js +4 -0
  102. package/esm/src/TemporalTimePanel2.vue.js +53 -0
  103. package/esm/src/UiApp.vue.js +4 -0
  104. package/esm/src/UiApp2.vue.js +57 -0
  105. package/esm/src/UiBadge.vue.js +4 -0
  106. package/esm/src/UiBadge2.vue.js +44 -0
  107. package/esm/src/UiBreadcrumbs.css +7 -0
  108. package/esm/src/UiBreadcrumbs.vue.js +8 -0
  109. package/esm/src/UiBreadcrumbs2.vue.js +110 -0
  110. package/esm/src/UiButton.vue.js +4 -0
  111. package/esm/src/UiButton2.vue.js +167 -0
  112. package/esm/src/UiCard.vue.js +4 -0
  113. package/esm/src/UiCard2.vue.js +102 -0
  114. package/esm/src/UiCheckbox.vue.js +4 -0
  115. package/esm/src/UiCheckbox2.vue.js +105 -0
  116. package/esm/src/UiCheckboxGroup.vue.js +4 -0
  117. package/esm/src/UiCheckboxGroup2.vue.js +43 -0
  118. package/esm/src/UiCollapsible.css +7 -0
  119. package/esm/src/UiCollapsible.vue.js +8 -0
  120. package/esm/src/UiCollapsible2.vue.js +59 -0
  121. package/esm/src/UiCollectionFooter.vue.js +4 -0
  122. package/esm/src/UiCollectionFooter2.vue.js +64 -0
  123. package/esm/src/UiCollectionHeader.vue.js +4 -0
  124. package/esm/src/UiCollectionHeader2.vue.js +24 -0
  125. package/esm/src/UiCollectionView.vue.js +4 -0
  126. package/esm/src/UiCollectionView2.vue.js +239 -0
  127. package/esm/src/UiContent.vue.js +4 -0
  128. package/esm/src/UiContent2.vue.js +35 -0
  129. package/esm/src/UiDateInput.vue.js +4 -0
  130. package/esm/src/UiDateInput2.vue.js +46 -0
  131. package/esm/src/UiDateTimeInput.vue.js +4 -0
  132. package/esm/src/UiDateTimeInput2.vue.js +46 -0
  133. package/esm/src/UiDrawer.vue.js +4 -0
  134. package/esm/src/UiDrawer2.vue.js +98 -0
  135. package/esm/src/UiDrawerLayout.vue.js +4 -0
  136. package/esm/src/UiDrawerLayout2.vue.js +63 -0
  137. package/esm/src/UiEmpty.vue.js +4 -0
  138. package/esm/src/UiEmpty2.vue.js +51 -0
  139. package/esm/src/UiField.vue.js +4 -0
  140. package/esm/src/UiField2.vue.js +172 -0
  141. package/esm/src/UiFileCollection.vue.js +4 -0
  142. package/esm/src/UiFileCollection2.vue.js +54 -0
  143. package/esm/src/UiFileInput.vue.js +4 -0
  144. package/esm/src/UiFileInput2.vue.js +138 -0
  145. package/esm/src/UiFilePreview.vue.js +4 -0
  146. package/esm/src/UiFilePreview2.vue.js +104 -0
  147. package/esm/src/UiFloating.vue.js +4 -0
  148. package/esm/src/UiFloating2.vue.js +108 -0
  149. package/esm/src/UiForm.vue.js +4 -0
  150. package/esm/src/UiForm2.vue.js +47 -0
  151. package/esm/src/UiIcon.css +7 -0
  152. package/esm/src/UiIcon.vue.js +8 -0
  153. package/esm/src/UiIcon2.vue.js +27 -0
  154. package/esm/src/UiImagePreview.vue.js +4 -0
  155. package/esm/src/UiImagePreview2.vue.js +92 -0
  156. package/esm/src/UiInputFrame.vue.js +4 -0
  157. package/esm/src/UiInputFrame2.vue.js +62 -0
  158. package/esm/src/UiInputFrameSpacer.vue.js +4 -0
  159. package/esm/src/UiInputFrameSpacer2.vue.js +20 -0
  160. package/esm/src/UiKeyValueItem.vue.js +4 -0
  161. package/esm/src/UiKeyValueItem2.vue.js +29 -0
  162. package/esm/src/UiKeyValueList.vue.js +4 -0
  163. package/esm/src/UiKeyValueList2.vue.js +17 -0
  164. package/esm/src/UiLayout.vue.js +4 -0
  165. package/esm/src/UiLayout2.vue.js +156 -0
  166. package/esm/src/UiLink.vue.js +4 -0
  167. package/esm/src/UiLink2.vue.js +43 -0
  168. package/esm/src/UiList.vue.js +4 -0
  169. package/esm/src/UiList2.vue.js +247 -0
  170. package/esm/src/UiLoadingIndicator.vue.js +4 -0
  171. package/esm/src/UiLoadingIndicator2.vue.js +53 -0
  172. package/esm/src/UiLoadingRegion.vue.js +4 -0
  173. package/esm/src/UiLoadingRegion2.vue.js +100 -0
  174. package/esm/src/UiMenu.vue.js +4 -0
  175. package/esm/src/UiMenu2.vue.js +70 -0
  176. package/esm/src/UiModal.vue.js +4 -0
  177. package/esm/src/UiModal2.vue.js +145 -0
  178. package/esm/src/UiMultiSelect.vue.js +4 -0
  179. package/esm/src/UiMultiSelect2.vue.js +224 -0
  180. package/esm/src/UiNavMenu.vue.js +4 -0
  181. package/esm/src/UiNavMenu2.vue.js +86 -0
  182. package/esm/src/UiNavbar.vue.js +4 -0
  183. package/esm/src/UiNavbar2.vue.js +37 -0
  184. package/esm/src/UiNotice.vue.js +4 -0
  185. package/esm/src/UiNotice2.vue.js +186 -0
  186. package/esm/src/UiPaginator.vue.js +4 -0
  187. package/esm/src/UiPaginator2.vue.js +260 -0
  188. package/esm/src/UiPaginatorJumper.vue.js +4 -0
  189. package/esm/src/UiPaginatorJumper2.vue.js +90 -0
  190. package/esm/src/UiPaginatorSizeSelect.vue.js +4 -0
  191. package/esm/src/UiPaginatorSizeSelect2.vue.js +60 -0
  192. package/esm/src/UiPopover.vue.js +4 -0
  193. package/esm/src/UiPopover2.vue.js +93 -0
  194. package/esm/src/UiPreviewRegion.vue.js +4 -0
  195. package/esm/src/UiPreviewRegion2.vue.js +62 -0
  196. package/esm/src/UiProgressBar.vue.js +4 -0
  197. package/esm/src/UiProgressBar2.vue.js +44 -0
  198. package/esm/src/UiRadioGroup.vue.js +4 -0
  199. package/esm/src/UiRadioGroup2.vue.js +43 -0
  200. package/esm/src/UiRegionLayout.vue.js +4 -0
  201. package/esm/src/UiRegionLayout2.vue.js +106 -0
  202. package/esm/src/UiSegmentedSelect.css +72 -0
  203. package/esm/src/UiSegmentedSelect.vue.js +8 -0
  204. package/esm/src/UiSegmentedSelect2.vue.js +190 -0
  205. package/esm/src/UiSelect.vue.js +4 -0
  206. package/esm/src/UiSelect2.vue.js +209 -0
  207. package/esm/src/UiSuggestions.vue.js +4 -0
  208. package/esm/src/UiSuggestions2.vue.js +151 -0
  209. package/esm/src/UiSwitch.vue.js +4 -0
  210. package/esm/src/UiSwitch2.vue.js +108 -0
  211. package/esm/src/UiTabPanel.vue.js +4 -0
  212. package/esm/src/UiTabPanel2.vue.js +40 -0
  213. package/esm/src/UiTable.vue.js +4 -0
  214. package/esm/src/UiTable2.vue.js +740 -0
  215. package/esm/src/UiTabs.vue.js +4 -0
  216. package/esm/src/UiTabs2.vue.js +85 -0
  217. package/esm/src/UiTextInput.vue.js +4 -0
  218. package/esm/src/UiTextInput2.vue.js +108 -0
  219. package/esm/src/UiTimeInput.vue.js +4 -0
  220. package/esm/src/UiTimeInput2.vue.js +46 -0
  221. package/esm/src/UiTooltip.vue.js +4 -0
  222. package/esm/src/UiTooltip2.vue.js +72 -0
  223. package/esm/src/UiUploadProgress.vue.js +4 -0
  224. package/esm/src/UiUploadProgress2.vue.js +134 -0
  225. package/esm/src/UiUploadRegion.vue.js +4 -0
  226. package/esm/src/UiUploadRegion2.vue.js +230 -0
  227. package/esm/src/checkableDescription.js +104 -0
  228. package/esm/src/controlSize.js +29 -0
  229. package/esm/src/fieldPresentation.js +50 -0
  230. package/esm/src/focus.js +6 -0
  231. package/esm/src/formPresentation.js +6 -0
  232. package/esm/src/icons/external-link.vue.js +32 -0
  233. package/esm/src/icons/globe.vue.js +59 -0
  234. package/esm/src/icons/index.js +67 -0
  235. package/esm/src/icons/more-vertical.vue.js +13 -0
  236. package/esm/src/icons/more-vertical2.vue.js +4 -0
  237. package/esm/src/index.js +18 -0
  238. package/esm/src/integration.js +45 -0
  239. package/esm/src/layout.js +13 -0
  240. package/esm/src/menuPresentation.js +229 -0
  241. package/esm/src/navigationDropdownHeight.js +43 -0
  242. package/esm/src/selectEscape.js +11 -0
  243. package/esm/src/zOrder.js +17 -0
  244. package/esm/testing/browser-control-parts.js +25 -0
  245. package/esm/testing/dom.js +48 -0
  246. package/esm/testing/index.js +120 -0
  247. package/esm/testing/presentation-mapping.js +45 -0
  248. package/esm/testing/presentation-parts.js +49 -0
  249. package/font-bundled.css +6 -0
  250. package/font-family.css +23 -0
  251. package/font.css +6 -0
  252. package/hooks/vite.d.mts +3 -0
  253. package/hooks/vite.mjs +178 -0
  254. package/native-content.css +52 -0
  255. package/package.json +83 -4
  256. package/style.css +3549 -0
  257. package/types/src/ChoiceGroup.vue.d.ts +15 -0
  258. package/types/src/CollectionCard.vue.d.ts +42 -0
  259. package/types/src/CollectionFilterEditor.vue.d.ts +16 -0
  260. package/types/src/CollectionHeaderFlow.vue.d.ts +17 -0
  261. package/types/src/CollectionHeaderPart.vue.d.ts +24 -0
  262. package/types/src/CollectionQueryBadge.vue.d.ts +26 -0
  263. package/types/src/CollectionSortLayout.vue.d.ts +17 -0
  264. package/types/src/CollectionStatus.vue.d.ts +28 -0
  265. package/types/src/CollectionSummary.vue.d.ts +22 -0
  266. package/types/src/CollectionTableActions.vue.d.ts +13 -0
  267. package/types/src/DrawerDepth.vue.d.ts +7 -0
  268. package/types/src/DrawerDock.vue.d.ts +17 -0
  269. package/types/src/EntryBranch.vue.d.ts +31 -0
  270. package/types/src/EntryContent.vue.d.ts +35 -0
  271. package/types/src/EntryPopup.vue.d.ts +24 -0
  272. package/types/src/FeedbackItem.vue.d.ts +16 -0
  273. package/types/src/FeedbackViewport.vue.d.ts +19 -0
  274. package/types/src/FieldError.vue.d.ts +9 -0
  275. package/types/src/FieldFailureTooltip.vue.d.ts +17 -0
  276. package/types/src/FileTypeIcon.vue.d.ts +6 -0
  277. package/types/src/FooterActions.vue.d.ts +13 -0
  278. package/types/src/MenuBridge.vue.d.ts +13 -0
  279. package/types/src/NativeMenu.vue.d.ts +44 -0
  280. package/types/src/OverlaySurface.vue.d.ts +38 -0
  281. package/types/src/TableAddRow.vue.d.ts +18 -0
  282. package/types/src/TableFilterButton.vue.d.ts +7 -0
  283. package/types/src/TemporalAction.vue.d.ts +13 -0
  284. package/types/src/TemporalEditor.vue.d.ts +12 -0
  285. package/types/src/TemporalInput.vue.d.ts +9 -0
  286. package/types/src/TemporalMode.vue.d.ts +20 -0
  287. package/types/src/TemporalPicker.vue.d.ts +10 -0
  288. package/types/src/TemporalRangeIcon.vue.d.ts +7 -0
  289. package/types/src/TemporalRangePicker.vue.d.ts +17 -0
  290. package/types/src/TemporalTimePanel.vue.d.ts +14 -0
  291. package/types/src/UiApp.vue.d.ts +18 -0
  292. package/types/src/UiBadge.vue.d.ts +14 -0
  293. package/types/src/UiBreadcrumbs.vue.d.ts +24 -0
  294. package/types/src/UiButton.vue.d.ts +22 -0
  295. package/types/src/UiCard.vue.d.ts +24 -0
  296. package/types/src/UiCheckbox.vue.d.ts +10 -0
  297. package/types/src/UiCheckboxGroup.vue.d.ts +12 -0
  298. package/types/src/UiCollapsible.vue.d.ts +20 -0
  299. package/types/src/UiCollectionFooter.vue.d.ts +15 -0
  300. package/types/src/UiCollectionHeader.vue.d.ts +14 -0
  301. package/types/src/UiCollectionView.vue.d.ts +56 -0
  302. package/types/src/UiContent.vue.d.ts +14 -0
  303. package/types/src/UiDateInput.vue.d.ts +6 -0
  304. package/types/src/UiDateTimeInput.vue.d.ts +6 -0
  305. package/types/src/UiDrawer.vue.d.ts +40 -0
  306. package/types/src/UiDrawerLayout.vue.d.ts +16 -0
  307. package/types/src/UiEmpty.vue.d.ts +18 -0
  308. package/types/src/UiField.vue.d.ts +17 -0
  309. package/types/src/UiFileCollection.vue.d.ts +16 -0
  310. package/types/src/UiFileInput.vue.d.ts +6 -0
  311. package/types/src/UiFilePreview.vue.d.ts +6 -0
  312. package/types/src/UiFloating.vue.d.ts +14 -0
  313. package/types/src/UiForm.vue.d.ts +25 -0
  314. package/types/src/UiIcon.vue.d.ts +14 -0
  315. package/types/src/UiImagePreview.vue.d.ts +4 -0
  316. package/types/src/UiInputFrame.vue.d.ts +26 -0
  317. package/types/src/UiInputFrameSpacer.vue.d.ts +3 -0
  318. package/types/src/UiKeyValueItem.vue.d.ts +14 -0
  319. package/types/src/UiKeyValueList.vue.d.ts +13 -0
  320. package/types/src/UiLayout.vue.d.ts +17 -0
  321. package/types/src/UiLink.vue.d.ts +16 -0
  322. package/types/src/UiList.vue.d.ts +49 -0
  323. package/types/src/UiLoadingIndicator.vue.d.ts +14 -0
  324. package/types/src/UiLoadingRegion.vue.d.ts +17 -0
  325. package/types/src/UiMenu.vue.d.ts +59 -0
  326. package/types/src/UiModal.vue.d.ts +27 -0
  327. package/types/src/UiMultiSelect.vue.d.ts +16 -0
  328. package/types/src/UiNavMenu.vue.d.ts +36 -0
  329. package/types/src/UiNavbar.vue.d.ts +17 -0
  330. package/types/src/UiNotice.vue.d.ts +18 -0
  331. package/types/src/UiPaginator.vue.d.ts +4 -0
  332. package/types/src/UiPaginatorJumper.vue.d.ts +4 -0
  333. package/types/src/UiPaginatorSizeSelect.vue.d.ts +4 -0
  334. package/types/src/UiPopover.vue.d.ts +40 -0
  335. package/types/src/UiPreviewRegion.vue.d.ts +14 -0
  336. package/types/src/UiProgressBar.vue.d.ts +4 -0
  337. package/types/src/UiRadioGroup.vue.d.ts +12 -0
  338. package/types/src/UiRegionLayout.vue.d.ts +21 -0
  339. package/types/src/UiSegmentedSelect.vue.d.ts +12 -0
  340. package/types/src/UiSelect.vue.d.ts +14 -0
  341. package/types/src/UiSuggestions.vue.d.ts +37 -0
  342. package/types/src/UiSwitch.vue.d.ts +10 -0
  343. package/types/src/UiTabPanel.vue.d.ts +14 -0
  344. package/types/src/UiTable.vue.d.ts +90 -0
  345. package/types/src/UiTabs.vue.d.ts +20 -0
  346. package/types/src/UiTextInput.vue.d.ts +24 -0
  347. package/types/src/UiTimeInput.vue.d.ts +6 -0
  348. package/types/src/UiTooltip.vue.d.ts +25 -0
  349. package/types/src/UiUploadProgress.vue.d.ts +4 -0
  350. package/types/src/UiUploadRegion.vue.d.ts +6 -0
  351. package/types/src/checkableDescription.d.ts +7 -0
  352. package/types/src/controlSize.d.ts +2 -0
  353. package/types/src/fieldPresentation.d.ts +50 -0
  354. package/types/src/focus.d.ts +3 -0
  355. package/types/src/formPresentation.d.ts +3 -0
  356. package/types/src/icons/external-link.vue.d.ts +3 -0
  357. package/types/src/icons/globe.vue.d.ts +3 -0
  358. package/types/src/icons/index.d.ts +181 -0
  359. package/types/src/icons/more-vertical.vue.d.ts +3 -0
  360. package/types/src/index.d.ts +2 -0
  361. package/types/src/integration.d.ts +1426 -0
  362. package/types/src/layout.d.ts +2 -0
  363. package/types/src/menuPresentation.d.ts +30 -0
  364. package/types/src/navigationDropdownHeight.d.ts +3 -0
  365. package/types/src/selectEscape.d.ts +1 -0
  366. package/types/src/zOrder.d.ts +3 -0
  367. package/types/testing/browser-control-parts.d.ts +2 -0
  368. package/types/testing/dom.d.mts +3 -0
  369. package/types/testing/index.d.ts +3 -0
  370. package/types/testing/presentation-mapping.d.ts +33 -0
  371. package/types/testing/presentation-parts.d.mts +20 -0
@@ -0,0 +1,224 @@
1
+ import { defineComponent, ref, useAttrs, computed, watchPostEffect, onUpdated, h, shallowRef, onDeactivated, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString } from "vue";
2
+ import { useUiZView, useUiOverlayTarget, focusUiTarget, useUiZPopup, syncUiTargetAttributes } from "@uninterface/uninterface/backend";
3
+ import { useControlSize } from "./controlSize.js";
4
+ import { useFieldPresentation } from "./fieldPresentation.js";
5
+ import { CircleClose } from "@element-plus/icons-vue";
6
+ import { useLocale, ElSelect, ElOptionGroup, ElOption } from "element-plus";
7
+ import { useSelectEscape } from "./selectEscape.js";
8
+ import { controlledPopup } from "./zOrder.js";
9
+ const _hoisted_1 = ["id", "data-uninterface-source-state"];
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...{ inheritAttrs: false },
12
+ __name: "UiMultiSelect",
13
+ props: {
14
+ binding: {},
15
+ value: {},
16
+ options: {},
17
+ placeholder: {},
18
+ available: { type: Boolean },
19
+ clearLabel: {},
20
+ clearable: { type: Boolean },
21
+ status: {}
22
+ },
23
+ emits: ["update", "clear", "blur", "requestLoad"],
24
+ setup(__props, { expose: __expose, emit: __emit }) {
25
+ useUiZView();
26
+ const overlayTarget = useUiOverlayTarget();
27
+ const presentation = useFieldPresentation();
28
+ const props = __props;
29
+ const emit = __emit;
30
+ const root = ref();
31
+ const attrs = useAttrs();
32
+ const { t } = useLocale();
33
+ const statusMessage = computed(
34
+ () => props.status.pending ? t("el.select.loading") : props.status.message
35
+ );
36
+ const groups = computed(() => {
37
+ const result = [];
38
+ for (const option of props.options.filter((option2) => !option2.hidden)) {
39
+ const last = result.at(-1);
40
+ if (last && last.label === option.group)
41
+ last.options = [...last.options, option];
42
+ else result.push({ label: option.group, options: [option] });
43
+ }
44
+ return result;
45
+ });
46
+ function requestLoad() {
47
+ if (!props.binding.disabled) emit("requestLoad");
48
+ }
49
+ const dismissOwner = useSelectEscape();
50
+ function keydown(event) {
51
+ dismissOwner(event);
52
+ if (["ArrowDown", "ArrowUp", "Home", "End", "Enter", "F4", " "].includes(
53
+ event.key
54
+ ) || event.key.length === 1 && !event.ctrlKey && !event.metaKey)
55
+ requestLoad();
56
+ }
57
+ function change(value) {
58
+ if (!Array.isArray(value) || value.some((key) => typeof key !== "string") || props.binding.disabled || !props.available)
59
+ return;
60
+ emit("update", value);
61
+ }
62
+ function syncTarget() {
63
+ const input = root.value?.querySelector('input[role="combobox"]');
64
+ if (!input) return;
65
+ syncUiTargetAttributes(input, {
66
+ ...attrs,
67
+ id: props.binding.id,
68
+ disabled: props.binding.disabled || void 0,
69
+ type: "text",
70
+ readonly: true,
71
+ role: "combobox",
72
+ "aria-required": props.binding.required || void 0,
73
+ "aria-labelledby": presentation.labelledBy(props.binding, attrs),
74
+ "aria-invalid": props.binding.invalid || void 0,
75
+ "aria-busy": props.binding.validating || props.status.pending || void 0,
76
+ "aria-describedby": [
77
+ presentation.describedBy(props.binding),
78
+ statusMessage.value ? `${props.binding.id}-source-status` : void 0
79
+ ].filter(Boolean).join(" ") || void 0
80
+ });
81
+ }
82
+ watchPostEffect(syncTarget);
83
+ onUpdated(syncTarget);
84
+ __expose({
85
+ focus: () => focusUiTarget(
86
+ () => root.value?.querySelector('input[role="combobox"]'),
87
+ () => props.binding.disabled
88
+ )
89
+ });
90
+ const ClearIcon = defineComponent(
91
+ () => () => h(
92
+ "button",
93
+ {
94
+ id: `${props.binding.id}-clear`,
95
+ type: "button",
96
+ class: "element-multiselect-clear",
97
+ "aria-label": props.clearLabel,
98
+ title: props.clearLabel,
99
+ onKeydown: (event) => {
100
+ if (event.key === "Enter" || event.key === " ")
101
+ event.stopPropagation();
102
+ }
103
+ },
104
+ [h(CircleClose)]
105
+ )
106
+ );
107
+ const controlSize = useControlSize("UiMultiSelect");
108
+ useUiZPopup(() => controlledPopup(props.binding.id), {
109
+ source: "UiMultiSelect choices"
110
+ });
111
+ const zNative = shallowRef();
112
+ onDeactivated(() => zNative.value?.blur());
113
+ return (_ctx, _cache) => {
114
+ return openBlock(), createElementBlock(
115
+ "div",
116
+ {
117
+ ref_key: "root",
118
+ ref: root,
119
+ class: normalizeClass(unref(attrs).class),
120
+ style: normalizeStyle(unref(attrs).style),
121
+ onPointerdownCapture: requestLoad,
122
+ onKeydownCapture: keydown
123
+ },
124
+ [
125
+ createVNode(unref(ElSelect), {
126
+ ref_key: "zNative",
127
+ ref: zNative,
128
+ size: unref(controlSize),
129
+ id: __props.binding.id,
130
+ multiple: "",
131
+ clearable: __props.clearable,
132
+ "clear-icon": unref(ClearIcon),
133
+ "collapse-tags": "",
134
+ "collapse-tags-tooltip": "",
135
+ "model-value": [...__props.value],
136
+ placeholder: __props.placeholder,
137
+ disabled: __props.binding.disabled,
138
+ loading: __props.status.pending,
139
+ "no-data-text": __props.status.message,
140
+ "empty-values": [null, void 0],
141
+ "validate-event": false,
142
+ teleported: true,
143
+ "append-to": unref(overlayTarget),
144
+ "onUpdate:modelValue": change,
145
+ onVisibleChange: _cache[0] || (_cache[0] = (open) => {
146
+ if (open) requestLoad();
147
+ }),
148
+ onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("blur"))
149
+ }, {
150
+ default: withCtx(() => [
151
+ (openBlock(true), createElementBlock(
152
+ Fragment,
153
+ null,
154
+ renderList(groups.value, (group, index) => {
155
+ return openBlock(), createElementBlock(
156
+ Fragment,
157
+ { key: index },
158
+ [
159
+ group.label !== void 0 ? (openBlock(), createBlock(unref(ElOptionGroup), {
160
+ key: 0,
161
+ label: group.label
162
+ }, {
163
+ default: withCtx(() => [
164
+ (openBlock(true), createElementBlock(
165
+ Fragment,
166
+ null,
167
+ renderList(group.options, (option) => {
168
+ return openBlock(), createBlock(unref(ElOption), {
169
+ key: option.value,
170
+ "data-uninterface-key": option.value,
171
+ value: option.value,
172
+ label: option.label,
173
+ disabled: !__props.available || option.disabled
174
+ }, null, 8, ["data-uninterface-key", "value", "label", "disabled"]);
175
+ }),
176
+ 128
177
+ /* KEYED_FRAGMENT */
178
+ ))
179
+ ]),
180
+ _: 2
181
+ /* DYNAMIC */
182
+ }, 1032, ["label"])) : (openBlock(true), createElementBlock(
183
+ Fragment,
184
+ { key: 1 },
185
+ renderList(group.options, (option) => {
186
+ return openBlock(), createBlock(unref(ElOption), {
187
+ key: option.value,
188
+ "data-uninterface-key": option.value,
189
+ value: option.value,
190
+ label: option.label,
191
+ disabled: !__props.available || option.disabled
192
+ }, null, 8, ["data-uninterface-key", "value", "label", "disabled"]);
193
+ }),
194
+ 128
195
+ /* KEYED_FRAGMENT */
196
+ ))
197
+ ],
198
+ 64
199
+ /* STABLE_FRAGMENT */
200
+ );
201
+ }),
202
+ 128
203
+ /* KEYED_FRAGMENT */
204
+ ))
205
+ ]),
206
+ _: 1
207
+ /* STABLE */
208
+ }, 8, ["size", "id", "clearable", "clear-icon", "model-value", "placeholder", "disabled", "loading", "no-data-text", "append-to"]),
209
+ createElementVNode("span", {
210
+ id: `${__props.binding.id}-source-status`,
211
+ "data-uninterface-source-state": __props.status.state,
212
+ class: "element-visually-hidden element-select-status",
213
+ role: "status"
214
+ }, toDisplayString(statusMessage.value), 9, _hoisted_1)
215
+ ],
216
+ 38
217
+ /* CLASS, STYLE, NEED_HYDRATION */
218
+ );
219
+ };
220
+ }
221
+ });
222
+ export {
223
+ _sfc_main as default
224
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiNavMenu2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,86 @@
1
+ import { defineComponent, ref, openBlock, createElementBlock, Fragment, createElementVNode, mergeProps, unref, createVNode, withCtx, renderSlot, normalizeProps, guardReactiveProps, createBlock, Teleport, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
2
+ import { useUiZView, useUiOverlayTarget, useUiNavigationPresentation, useUiZPopup } from "@uninterface/uninterface/backend";
3
+ import _sfc_main$1 from "./NativeMenu2.vue.js";
4
+ const _hoisted_1 = ["data-navigation-mode", "data-navigation-boundary"];
5
+ const _hoisted_2 = ["id"];
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ ...{ inheritAttrs: false },
8
+ __name: "UiNavMenu",
9
+ props: {
10
+ binding: {}
11
+ },
12
+ emits: ["activate", "expand", "retry"],
13
+ setup(__props) {
14
+ useUiZView();
15
+ const props = __props;
16
+ const navigationSurface = ref();
17
+ const navigationOverlay = useUiOverlayTarget();
18
+ const {
19
+ hint,
20
+ hintId,
21
+ hintAnchor,
22
+ events: navigationEvents
23
+ } = useUiNavigationPresentation(() => props.binding, navigationSurface);
24
+ useUiZPopup(
25
+ () => typeof document === "undefined" ? void 0 : document.getElementById(hintId),
26
+ {
27
+ tooltip: {
28
+ anchor: () => hintAnchor.value,
29
+ visible: () => Boolean(hint.value)
30
+ },
31
+ source: "navigation hint"
32
+ }
33
+ );
34
+ return (_ctx, _cache) => {
35
+ return openBlock(), createElementBlock(
36
+ Fragment,
37
+ null,
38
+ [
39
+ createElementVNode("div", mergeProps({
40
+ ref_key: "navigationSurface",
41
+ ref: navigationSurface,
42
+ class: "element-plus-navigation-surface",
43
+ "data-navigation-mode": __props.binding.presentation,
44
+ "data-navigation-boundary": __props.binding.boundary ?? (__props.binding.presentation === "horizontal" ? "block-end" : "inline-end")
45
+ }, { ..._ctx.$attrs, ...unref(navigationEvents) }), [
46
+ createVNode(_sfc_main$1, {
47
+ navigation: "",
48
+ presentation: __props.binding.presentation,
49
+ entries: __props.binding.entries,
50
+ status: __props.binding.status,
51
+ label: __props.binding.label,
52
+ onActivate: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("activate", $event)),
53
+ onExpand: _cache[1] || (_cache[1] = (key, open) => _ctx.$emit("expand", key, open)),
54
+ onRetry: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("retry", $event))
55
+ }, {
56
+ entry: withCtx((scope) => [
57
+ renderSlot(_ctx.$slots, "entry", normalizeProps(guardReactiveProps(scope)))
58
+ ]),
59
+ icon: withCtx((scope) => [
60
+ renderSlot(_ctx.$slots, "icon", normalizeProps(guardReactiveProps(scope)))
61
+ ]),
62
+ _: 3
63
+ /* FORWARDED */
64
+ }, 8, ["presentation", "entries", "status", "label"])
65
+ ], 16, _hoisted_1),
66
+ (openBlock(), createBlock(Teleport, {
67
+ to: unref(navigationOverlay) ?? "body"
68
+ }, [
69
+ unref(hint) ? (openBlock(), createElementBlock("span", {
70
+ key: 0,
71
+ id: unref(hintId),
72
+ role: "tooltip",
73
+ class: "element-plus-navigation-hint",
74
+ style: normalizeStyle({ left: `${unref(hint).x}px`, top: `${unref(hint).y}px` })
75
+ }, toDisplayString(unref(hint).label), 13, _hoisted_2)) : createCommentVNode("v-if", true)
76
+ ], 8, ["to"]))
77
+ ],
78
+ 64
79
+ /* STABLE_FRAGMENT */
80
+ );
81
+ };
82
+ }
83
+ });
84
+ export {
85
+ _sfc_main as default
86
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiNavbar2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent, openBlock, createElementBlock, renderSlot, createCommentVNode } from "vue";
2
+ import { useUiZView } from "@uninterface/uninterface/backend";
3
+ const _hoisted_1 = { class: "element-navbar" };
4
+ const _hoisted_2 = {
5
+ key: 0,
6
+ class: "element-navbar-brand"
7
+ };
8
+ const _hoisted_3 = {
9
+ key: 1,
10
+ class: "element-navbar-links"
11
+ };
12
+ const _hoisted_4 = {
13
+ key: 2,
14
+ class: "element-navbar-actions"
15
+ };
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ __name: "UiNavbar",
18
+ setup(__props) {
19
+ useUiZView();
20
+ return (_ctx, _cache) => {
21
+ return openBlock(), createElementBlock("nav", _hoisted_1, [
22
+ _ctx.$slots.brand ? (openBlock(), createElementBlock("div", _hoisted_2, [
23
+ renderSlot(_ctx.$slots, "brand")
24
+ ])) : createCommentVNode("v-if", true),
25
+ _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_3, [
26
+ renderSlot(_ctx.$slots, "default")
27
+ ])) : createCommentVNode("v-if", true),
28
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4, [
29
+ renderSlot(_ctx.$slots, "actions")
30
+ ])) : createCommentVNode("v-if", true)
31
+ ]);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ _sfc_main as default
37
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiNotice2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,186 @@
1
+ import { defineComponent, computed, useSlots, ref, onMounted, onUpdated, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createBlock, unref, withCtx, resolveDynamicComponent, createCommentVNode, createElementVNode, toDisplayString, Fragment, renderList, mergeProps, createVNode } from "vue";
2
+ import { useUiZView } from "@uninterface/uninterface/backend";
3
+ import { ElIcon } from "element-plus";
4
+ import { CircleCloseFilled, WarningFilled, SuccessFilled, InfoFilled, Close } from "@element-plus/icons-vue";
5
+ import { uiFocusPresentation } from "./focus.js";
6
+ const _hoisted_1 = ["data-variant"];
7
+ const _hoisted_2 = { class: "el-alert__content" };
8
+ const _hoisted_3 = { class: "element-notice-message" };
9
+ const _hoisted_4 = {
10
+ key: 1,
11
+ class: "el-alert__description"
12
+ };
13
+ const _hoisted_5 = { key: 0 };
14
+ const _hoisted_6 = { key: 1 };
15
+ const _hoisted_7 = {
16
+ key: 0,
17
+ class: "element-notice-actions"
18
+ };
19
+ const _hoisted_8 = ["aria-label"];
20
+ const _sfc_main = /* @__PURE__ */ defineComponent({
21
+ __name: "UiNotice",
22
+ props: {
23
+ message: {},
24
+ details: {},
25
+ kind: {},
26
+ color: {},
27
+ variant: {},
28
+ title: {},
29
+ dismissible: { type: Boolean },
30
+ dismissLabel: {},
31
+ onDismissRequest: { type: Function }
32
+ },
33
+ setup(__props) {
34
+ useUiZView();
35
+ const props = __props;
36
+ const icons = {
37
+ info: InfoFilled,
38
+ success: SuccessFilled,
39
+ warning: WarningFilled,
40
+ error: CircleCloseFilled
41
+ };
42
+ const nativeColor = computed(
43
+ () => props.color === "secondary" ? "info" : props.color === "danger" ? "error" : props.color
44
+ );
45
+ const slots = useSlots();
46
+ const root = ref();
47
+ const measuredLarge = ref();
48
+ const largeIcon = computed(
49
+ () => measuredLarge.value ?? (!!props.title && !!(slots.default || props.message || props.details?.length))
50
+ );
51
+ let observer;
52
+ let frame;
53
+ let view = null;
54
+ function measure() {
55
+ frame = void 0;
56
+ if (!root.value) return;
57
+ const height = root.value.offsetHeight;
58
+ if (!height) return;
59
+ measuredLarge.value = height >= 56;
60
+ }
61
+ function scheduleMeasure() {
62
+ if (view && frame === void 0) frame = view.requestAnimationFrame(measure);
63
+ }
64
+ onMounted(() => {
65
+ view = root.value?.ownerDocument.defaultView ?? null;
66
+ if (typeof ResizeObserver !== "undefined") {
67
+ observer = new ResizeObserver(scheduleMeasure);
68
+ observer.observe(root.value);
69
+ }
70
+ scheduleMeasure();
71
+ });
72
+ onUpdated(scheduleMeasure);
73
+ onBeforeUnmount(() => {
74
+ observer?.disconnect();
75
+ if (view && frame !== void 0) view.cancelAnimationFrame(frame);
76
+ });
77
+ return (_ctx, _cache) => {
78
+ return openBlock(), createElementBlock("div", {
79
+ ref_key: "root",
80
+ ref: root,
81
+ class: normalizeClass(["el-alert element-notice", [
82
+ nativeColor.value ? `el-alert--${nativeColor.value}` : "element-notice-neutral",
83
+ __props.variant === "filled" ? "is-dark" : "is-light",
84
+ { "element-notice-dismissible": __props.dismissible }
85
+ ]]),
86
+ "data-variant": __props.variant,
87
+ style: normalizeStyle(
88
+ !nativeColor.value ? {
89
+ "--element-notice-color": "var(--el-text-color-primary)",
90
+ "--element-notice-soft": "var(--el-fill-color-light)",
91
+ "--element-notice-on-color": "var(--el-bg-color)"
92
+ } : {
93
+ "--element-notice-color": `var(--el-color-${nativeColor.value})`,
94
+ "--element-notice-soft": `var(--el-color-${nativeColor.value}-light-9)`,
95
+ "--element-notice-on-color": "var(--el-color-white)"
96
+ }
97
+ )
98
+ }, [
99
+ _ctx.$slots.icon || __props.kind !== "custom" ? (openBlock(), createElementBlock(
100
+ "span",
101
+ {
102
+ key: 0,
103
+ class: normalizeClass(["el-alert__icon element-notice-icon", { "is-big": largeIcon.value }]),
104
+ "aria-hidden": "true"
105
+ },
106
+ [
107
+ _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", {}, void 0, void 0, 0) : __props.kind !== "custom" ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
108
+ default: withCtx(() => [
109
+ (openBlock(), createBlock(resolveDynamicComponent(icons[__props.kind])))
110
+ ]),
111
+ _: 1
112
+ /* STABLE */
113
+ })) : createCommentVNode("v-if", true)
114
+ ],
115
+ 2
116
+ /* CLASS */
117
+ )) : createCommentVNode("v-if", true),
118
+ createElementVNode("div", _hoisted_2, [
119
+ createElementVNode("div", _hoisted_3, [
120
+ __props.title ? (openBlock(), createElementBlock(
121
+ "span",
122
+ {
123
+ key: 0,
124
+ class: normalizeClass(["el-alert__title", {
125
+ "with-description": !!(_ctx.$slots.default || __props.message || __props.details?.length)
126
+ }])
127
+ },
128
+ toDisplayString(__props.title),
129
+ 3
130
+ /* TEXT, CLASS */
131
+ )) : createCommentVNode("v-if", true),
132
+ _ctx.$slots.default || __props.message || __props.details?.length ? (openBlock(), createElementBlock("div", _hoisted_4, [
133
+ renderSlot(_ctx.$slots, "default", {}, () => [
134
+ __props.message ? (openBlock(), createElementBlock(
135
+ "div",
136
+ _hoisted_5,
137
+ toDisplayString(__props.message),
138
+ 1
139
+ /* TEXT */
140
+ )) : createCommentVNode("v-if", true),
141
+ __props.details?.length ? (openBlock(), createElementBlock("ul", _hoisted_6, [
142
+ (openBlock(true), createElementBlock(
143
+ Fragment,
144
+ null,
145
+ renderList(__props.details, (detail, index) => {
146
+ return openBlock(), createElementBlock(
147
+ "li",
148
+ { key: index },
149
+ toDisplayString(detail),
150
+ 1
151
+ /* TEXT */
152
+ );
153
+ }),
154
+ 128
155
+ /* KEYED_FRAGMENT */
156
+ ))
157
+ ])) : createCommentVNode("v-if", true)
158
+ ])
159
+ ])) : createCommentVNode("v-if", true)
160
+ ]),
161
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_7, [
162
+ renderSlot(_ctx.$slots, "actions")
163
+ ])) : createCommentVNode("v-if", true)
164
+ ]),
165
+ __props.dismissible ? (openBlock(), createElementBlock("button", mergeProps({ key: 1 }, unref(uiFocusPresentation), {
166
+ type: "button",
167
+ class: "el-alert__close-btn element-notice-close",
168
+ "aria-label": __props.dismissLabel,
169
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
170
+ (...args) => __props.onDismissRequest && __props.onDismissRequest(...args))
171
+ }), [
172
+ createVNode(unref(ElIcon), null, {
173
+ default: withCtx(() => [
174
+ createVNode(unref(Close))
175
+ ]),
176
+ _: 1
177
+ /* STABLE */
178
+ })
179
+ ], 16, _hoisted_8)) : createCommentVNode("v-if", true)
180
+ ], 14, _hoisted_1);
181
+ };
182
+ }
183
+ });
184
+ export {
185
+ _sfc_main as default
186
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiPaginator2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };