@uninterface/backend-element-plus 0.0.0-stage → 2.14.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 (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 +157 -0
  27. package/docs/strategies.md +89 -0
  28. package/docs/table-columns.md +37 -0
  29. package/docs/testing.md +29 -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 +30 -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 +167 -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 +79 -4
  256. package/style.css +3546 -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 +8 -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 +49 -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,199 @@
1
+ import { defineComponent, shallowRef, ref, watch, computed, shallowReactive, onDeactivated, openBlock, createBlock, unref, withCtx, createElementVNode, withKeys, withModifiers, createCommentVNode, createVNode, nextTick } from "vue";
2
+ import { useUiZPopup, useUiOverlayTarget, useUiControlFrameParticipant } from "@uninterface/uninterface/backend";
3
+ import { popupTarget } from "./zOrder.js";
4
+ import { ElPopover, ElDatePickerPanel, ElButton, ElIcon, parseDate } from "element-plus";
5
+ import { Calendar } from "@element-plus/icons-vue";
6
+ import { useUiResponsive, useUiI18n } from "@uninterface/uninterface";
7
+ const _hoisted_1 = ["aria-label", "onKeydown"];
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "TemporalRangePicker",
10
+ props: {
11
+ frame: {},
12
+ binding: {},
13
+ precision: {},
14
+ dateFormatWish: {},
15
+ presentation: {},
16
+ readonly: { type: Boolean },
17
+ label: {},
18
+ eligible: { type: Function },
19
+ blur: { type: Function },
20
+ kind: {},
21
+ value: {},
22
+ update: { type: Function }
23
+ },
24
+ setup(__props, { expose: __expose }) {
25
+ const zPopup = shallowRef();
26
+ useUiZPopup(() => popupTarget(zPopup.value));
27
+ const props = __props;
28
+ const open = ref(false);
29
+ const trigger = ref();
30
+ const portal = useUiOverlayTarget();
31
+ const { context } = useUiResponsive();
32
+ const i18n = useUiI18n();
33
+ const { setEngaged } = useUiControlFrameParticipant({
34
+ focus: async () => null
35
+ });
36
+ watch(open, setEngaged, { flush: "sync" });
37
+ const pickerLabel = computed(
38
+ () => i18n.text({
39
+ namespace: "uninterface",
40
+ key: props.kind === "date" ? "pickDate" : "pickDateTime"
41
+ }) + " — " + props.label
42
+ );
43
+ const dateFormat = computed(
44
+ () => ({ YMD: "YYYY-MM-DD", DMY: "DD/MM/YYYY", MDY: "MM/DD/YYYY" })[props.dateFormatWish ?? "YMD"]
45
+ );
46
+ const clockFormat = computed(
47
+ () => props.precision === "minute" ? "HH:mm" : "HH:mm:ss"
48
+ );
49
+ const timeFormat = computed(
50
+ () => props.presentation?.hourCycle === "h12" ? clockFormat.value.replace("HH", "hh") + " A" : clockFormat.value
51
+ );
52
+ const valueFormat = computed(
53
+ () => props.kind === "date" ? "YYYY-MM-DD" : "YYYY-MM-DD[T]" + clockFormat.value
54
+ );
55
+ function nativeValue(value) {
56
+ const text = value.split(".")[0];
57
+ const parsed = parseDate(text, valueFormat.value, "en");
58
+ return parsed?.isValid() && parsed.format(valueFormat.value) === text ? text : void 0;
59
+ }
60
+ const model = computed((previous) => {
61
+ const pair = [nativeValue(props.value.start), nativeValue(props.value.end)];
62
+ const next = pair.every((value) => value !== void 0) ? pair : [];
63
+ return previous?.length === next.length && next.every((value, index) => value === previous[index]) ? previous : next;
64
+ });
65
+ const defaultTime = shallowReactive([
66
+ new Date(2e3, 0, 1),
67
+ new Date(2e3, 0, 1)
68
+ ]);
69
+ watch(
70
+ () => [props.value.start, props.value.end],
71
+ (values) => values.forEach((value, index) => {
72
+ const clock = /T(\d{2}):(\d{2})(?::(\d{2}))?/.exec(value);
73
+ defaultTime[index] = new Date(
74
+ 2e3,
75
+ 0,
76
+ 1,
77
+ Number(clock?.[1] ?? 0),
78
+ Number(clock?.[2] ?? 0),
79
+ Number(clock?.[3] ?? 0)
80
+ );
81
+ }),
82
+ { immediate: true }
83
+ );
84
+ function close() {
85
+ open.value = false;
86
+ void nextTick(() => trigger.value?.$el?.focus());
87
+ }
88
+ function choose(value) {
89
+ if (props.binding.disabled || props.readonly || !Array.isArray(value) || value.length !== 2 || !value.every((item) => typeof item === "string"))
90
+ return;
91
+ const endpoints = value.map(
92
+ (item, index) => props.kind === "datetime" && props.precision === "millisecond" ? item.split(".")[0] + ([props.value.start, props.value.end][index].match(
93
+ /\.\d{1,3}$/
94
+ )?.[0] ?? ".000") : item
95
+ );
96
+ if (!endpoints.every(props.eligible)) return;
97
+ props.update({ start: endpoints[0], end: endpoints[1] });
98
+ void nextTick(() => props.blur());
99
+ if (props.kind === "date") close();
100
+ }
101
+ function dateString(date) {
102
+ return `${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
103
+ }
104
+ function calendarChange(value) {
105
+ if (props.kind === "date" && Array.isArray(value) && value.length === 2 && value.every((item) => item instanceof Date) && dateString(value[0]) === props.value.start && dateString(value[1]) === props.value.end)
106
+ close();
107
+ }
108
+ watch(
109
+ () => [props.binding.disabled, props.readonly],
110
+ () => {
111
+ if (props.binding.disabled || props.readonly) open.value = false;
112
+ }
113
+ );
114
+ onDeactivated(() => {
115
+ open.value = false;
116
+ });
117
+ __expose({
118
+ show() {
119
+ if (!props.binding.disabled && !props.readonly) open.value = true;
120
+ }
121
+ });
122
+ return (_ctx, _cache) => {
123
+ return openBlock(), createBlock(unref(ElPopover), {
124
+ visible: open.value,
125
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => open.value = $event),
126
+ trigger: "click",
127
+ role: "dialog",
128
+ "aria-label": pickerLabel.value,
129
+ placement: "bottom-start",
130
+ width: "auto",
131
+ "append-to": unref(portal),
132
+ persistent: false,
133
+ disabled: __props.binding.disabled || __props.readonly,
134
+ "popper-style": { padding: "0" }
135
+ }, {
136
+ reference: withCtx(() => [
137
+ createVNode(unref(ElButton), {
138
+ ref_key: "trigger",
139
+ ref: trigger,
140
+ text: "",
141
+ circle: "",
142
+ "native-type": "button",
143
+ disabled: __props.binding.disabled || __props.readonly,
144
+ "aria-label": pickerLabel.value,
145
+ "aria-expanded": open.value,
146
+ "aria-haspopup": "dialog",
147
+ onKeydown: withKeys(withModifiers(close, ["stop", "prevent"]), ["esc"]),
148
+ "data-temporal-trigger": "",
149
+ "data-temporal-range-trigger": ""
150
+ }, {
151
+ default: withCtx(() => [
152
+ createVNode(unref(ElIcon), null, {
153
+ default: withCtx(() => [
154
+ createVNode(unref(Calendar))
155
+ ]),
156
+ _: 1
157
+ /* STABLE */
158
+ })
159
+ ]),
160
+ _: 1
161
+ /* STABLE */
162
+ }, 8, ["disabled", "aria-label", "aria-expanded", "onKeydown"])
163
+ ]),
164
+ default: withCtx(() => [
165
+ createElementVNode("div", {
166
+ ref_key: "zPopup",
167
+ ref: zPopup,
168
+ "data-temporal-popup": "",
169
+ "data-temporal-range-popup": "",
170
+ "aria-label": pickerLabel.value,
171
+ onKeydown: withKeys(withModifiers(close, ["stop", "prevent"]), ["esc"])
172
+ }, [
173
+ open.value ? (openBlock(), createBlock(unref(ElDatePickerPanel), {
174
+ key: 0,
175
+ "cell-class-name": (date) => "element-calendar-day-" + dateString(date),
176
+ type: __props.kind === "date" ? "daterange" : "datetimerange",
177
+ "model-value": model.value,
178
+ "value-format": valueFormat.value,
179
+ "date-format": dateFormat.value,
180
+ "time-format": timeFormat.value,
181
+ "default-time": __props.kind === "datetime" ? unref(defaultTime) : void 0,
182
+ "single-panel": unref(context) === "mobile",
183
+ clearable: false,
184
+ "show-footer": false,
185
+ "disabled-date": __props.kind === "date" ? (date) => !__props.eligible(dateString(date)) : void 0,
186
+ onCalendarChange: calendarChange,
187
+ "onUpdate:modelValue": choose
188
+ }, null, 8, ["cell-class-name", "type", "model-value", "value-format", "date-format", "time-format", "default-time", "single-panel", "disabled-date"])) : createCommentVNode("v-if", true)
189
+ ], 40, _hoisted_1)
190
+ ]),
191
+ _: 1
192
+ /* STABLE */
193
+ }, 8, ["visible", "aria-label", "append-to", "disabled"]);
194
+ };
195
+ }
196
+ });
197
+ export {
198
+ _sfc_main as default
199
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./TemporalTimePanel2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,53 @@
1
+ import { defineComponent, computed, provide, openBlock, createBlock, unref } from "vue";
2
+ import { parseDate, PICKER_BASE_INJECTION_KEY, TimePickPanel } from "element-plus";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "TemporalTimePanel",
5
+ props: {
6
+ value: {},
7
+ precision: {},
8
+ hourCycle: {}
9
+ },
10
+ emits: ["pick", "close"],
11
+ setup(__props, { emit: __emit }) {
12
+ const props = __props;
13
+ const emit = __emit;
14
+ const canonicalFormat = computed(
15
+ () => props.precision === "minute" ? "HH:mm" : "HH:mm:ss"
16
+ );
17
+ const format = computed(
18
+ () => props.hourCycle === "h12" ? canonicalFormat.value.replace("HH", "hh") + " A" : canonicalFormat.value
19
+ );
20
+ const parsed = computed(() => {
21
+ const clock = props.value.split(".")[0];
22
+ return (/^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/.test(clock) ? parseDate("2000-01-01T" + clock, void 0, "en") : void 0) ?? parseDate("2000-01-01T00:00:00", void 0, "en");
23
+ });
24
+ provide(PICKER_BASE_INJECTION_KEY, {
25
+ props: {
26
+ get modelValue() {
27
+ return parsed.value.toDate();
28
+ },
29
+ arrowControl: false,
30
+ defaultValue: new Date(2e3, 0, 1)
31
+ }
32
+ });
33
+ function pick(value, visible) {
34
+ let time = value.format(canonicalFormat.value);
35
+ if (props.precision === "millisecond")
36
+ time += props.value.match(/\.\d{1,3}$/)?.[0] ?? ".000";
37
+ emit("pick", time);
38
+ if (!visible) emit("close");
39
+ }
40
+ return (_ctx, _cache) => {
41
+ return openBlock(), createBlock(unref(TimePickPanel), {
42
+ visible: true,
43
+ "actual-visible": true,
44
+ "parsed-value": parsed.value,
45
+ format: format.value,
46
+ onPick: pick
47
+ }, null, 8, ["parsed-value", "format"]);
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ _sfc_main as default
53
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiApp2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,57 @@
1
+ import { defineComponent, ref, onMounted, watch, nextTick, onUnmounted, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
+ import { useUiZView } from "@uninterface/uninterface/backend";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "UiApp",
5
+ props: {
6
+ hosting: {}
7
+ },
8
+ emits: ["availableHeight"],
9
+ setup(__props, { emit: __emit }) {
10
+ useUiZView();
11
+ const props = __props;
12
+ const emit = __emit;
13
+ const root = ref();
14
+ let observer;
15
+ const measure = () => emit(
16
+ "availableHeight",
17
+ props.hosting === "viewport" ? Math.max(0, root.value?.getBoundingClientRect().height ?? 0) : void 0
18
+ );
19
+ onMounted(() => {
20
+ if (typeof ResizeObserver !== "undefined") {
21
+ observer = new ResizeObserver(measure);
22
+ observer.observe(root.value);
23
+ }
24
+ window.addEventListener("resize", measure);
25
+ measure();
26
+ });
27
+ watch(
28
+ () => props.hosting,
29
+ async () => {
30
+ await nextTick();
31
+ measure();
32
+ }
33
+ );
34
+ onUnmounted(() => {
35
+ observer?.disconnect();
36
+ window.removeEventListener("resize", measure);
37
+ });
38
+ return (_ctx, _cache) => {
39
+ return openBlock(), createElementBlock(
40
+ "div",
41
+ {
42
+ ref_key: "root",
43
+ ref: root,
44
+ class: normalizeClass(["element-app", { "element-app-viewport": __props.hosting === "viewport" }])
45
+ },
46
+ [
47
+ renderSlot(_ctx.$slots, "default")
48
+ ],
49
+ 2
50
+ /* CLASS */
51
+ );
52
+ };
53
+ }
54
+ });
55
+ export {
56
+ _sfc_main as default
57
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiBadge2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent, computed, openBlock, createBlock, unref, withCtx, renderSlot } from "vue";
2
+ import { useUiZView } from "@uninterface/uninterface/backend";
3
+ import { ElTag } from "element-plus";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "UiBadge",
6
+ props: {
7
+ color: {}
8
+ },
9
+ setup(__props) {
10
+ useUiZView();
11
+ const props = __props;
12
+ const type = computed(() => {
13
+ switch (props.color) {
14
+ case "primary":
15
+ case "success":
16
+ case "danger":
17
+ case "warning":
18
+ case "info":
19
+ return props.color;
20
+ case "secondary":
21
+ return "info";
22
+ default:
23
+ throw new Error(`Unsupported Element Plus theme color: ${props.color}`);
24
+ }
25
+ });
26
+ return (_ctx, _cache) => {
27
+ return openBlock(), createBlock(unref(ElTag), {
28
+ class: "element-badge",
29
+ type: type.value,
30
+ closable: false,
31
+ "disable-transitions": true
32
+ }, {
33
+ default: withCtx(() => [
34
+ renderSlot(_ctx.$slots, "default")
35
+ ]),
36
+ _: 3
37
+ /* FORWARDED */
38
+ }, 8, ["type"]);
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ _sfc_main as default
44
+ };
@@ -0,0 +1,7 @@
1
+
2
+ .element-breadcrumb-list[data-v-4d592d6c] {
3
+ display: flow-root;
4
+ margin: 0;
5
+ padding: 0;
6
+ list-style: none;
7
+ }
@@ -0,0 +1,8 @@
1
+ import "./UiBreadcrumbs.css";
2
+ import _sfc_main from "./UiBreadcrumbs2.vue.js";
3
+ /* empty css */
4
+ import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
5
+ const UiBreadcrumbs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d592d6c"]]);
6
+ export {
7
+ UiBreadcrumbs as default
8
+ };
@@ -0,0 +1,110 @@
1
+ import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, withDirectives, normalizeClass, resolveDynamicComponent, mergeProps, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
+ import { useUiZView, useUiZPart } from "@uninterface/uninterface/backend";
3
+ import { useNamespace, ElBreadcrumb, ElButton } from "element-plus";
4
+ const _hoisted_1 = { class: "element-breadcrumb-list" };
5
+ const _hoisted_2 = ["aria-current"];
6
+ const _hoisted_3 = ["aria-busy"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "UiBreadcrumbs",
9
+ props: {
10
+ status: {},
11
+ retry: { type: Function },
12
+ label: {},
13
+ items: {}
14
+ },
15
+ setup(__props) {
16
+ useUiZView();
17
+ const vUiZPart = useUiZPart();
18
+ const ns = useNamespace("breadcrumb");
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createBlock(unref(ElBreadcrumb), { "aria-label": __props.label }, {
21
+ default: withCtx(() => [
22
+ createElementVNode("ol", _hoisted_1, [
23
+ (openBlock(true), createElementBlock(
24
+ Fragment,
25
+ null,
26
+ renderList(__props.items, (item) => {
27
+ return withDirectives((openBlock(), createElementBlock("li", {
28
+ key: item.key,
29
+ class: normalizeClass(unref(ns).e("item")),
30
+ "aria-current": item.current ? "page" : void 0
31
+ }, [
32
+ createElementVNode(
33
+ "span",
34
+ {
35
+ class: normalizeClass(unref(ns).e("inner"))
36
+ },
37
+ [
38
+ (openBlock(), createBlock(resolveDynamicComponent(
39
+ item.href === void 0 ? item.actionable ? "button" : "span" : "a"
40
+ ), mergeProps({ ref_for: true }, item.attributes, {
41
+ href: item.href,
42
+ type: item.actionable && item.href === void 0 ? "button" : void 0,
43
+ "aria-disabled": item.disabled || void 0
44
+ }), {
45
+ default: withCtx(() => [
46
+ renderSlot(_ctx.$slots, "default", { item }, void 0, true)
47
+ ]),
48
+ _: 2
49
+ /* DYNAMIC */
50
+ }, 1040, ["href", "type", "aria-disabled"]))
51
+ ],
52
+ 2
53
+ /* CLASS */
54
+ ),
55
+ !item.current ? (openBlock(), createElementBlock(
56
+ "span",
57
+ {
58
+ key: 0,
59
+ class: normalizeClass(unref(ns).e("separator")),
60
+ role: "presentation",
61
+ "aria-hidden": "true"
62
+ },
63
+ " / ",
64
+ 2
65
+ /* CLASS */
66
+ )) : createCommentVNode("v-if", true)
67
+ ], 10, _hoisted_2)), [
68
+ [unref(vUiZPart), item.z]
69
+ ]);
70
+ }),
71
+ 128
72
+ /* KEYED_FRAGMENT */
73
+ ))
74
+ ]),
75
+ __props.status?.message ? (openBlock(), createElementBlock("div", {
76
+ key: 0,
77
+ role: "status",
78
+ "aria-busy": __props.status.pending || void 0
79
+ }, [
80
+ createTextVNode(
81
+ toDisplayString(__props.status.message) + " ",
82
+ 1
83
+ /* TEXT */
84
+ ),
85
+ __props.status.failed ? (openBlock(), createBlock(unref(ElButton), {
86
+ key: 0,
87
+ text: "",
88
+ onClick: _cache[0] || (_cache[0] = ($event) => __props.retry?.())
89
+ }, {
90
+ default: withCtx(() => [
91
+ createTextVNode(
92
+ toDisplayString(__props.status.retryLabel),
93
+ 1
94
+ /* TEXT */
95
+ )
96
+ ]),
97
+ _: 1
98
+ /* STABLE */
99
+ })) : createCommentVNode("v-if", true)
100
+ ], 8, _hoisted_3)) : createCommentVNode("v-if", true)
101
+ ]),
102
+ _: 3
103
+ /* FORWARDED */
104
+ }, 8, ["aria-label"]);
105
+ };
106
+ }
107
+ });
108
+ export {
109
+ _sfc_main as default
110
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiButton2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,167 @@
1
+ import { defineComponent, inject, provide, computed, ref, openBlock, createElementBlock, unref, createVNode, mergeProps, createSlots, withCtx, renderSlot, createCommentVNode, createElementVNode, normalizeClass, toDisplayString } from "vue";
2
+ import { useUiZView, focusUiTarget, useUiButtonPresentation } from "@uninterface/uninterface/backend";
3
+ import { useControlSize } from "./controlSize.js";
4
+ import { formContextKey, ElButton } from "element-plus";
5
+ import { formPresentationKey } from "./formPresentation.js";
6
+ const _hoisted_1 = ["data-ui-button-width", "data-ui-control-frame"];
7
+ const _hoisted_2 = {
8
+ class: "element-button-icon",
9
+ "aria-hidden": "true"
10
+ };
11
+ const _hoisted_3 = {
12
+ key: 0,
13
+ class: "element-button-icon",
14
+ "aria-hidden": "true"
15
+ };
16
+ const _hoisted_4 = {
17
+ class: "element-visually-hidden element-button-status",
18
+ role: "status",
19
+ "aria-live": "polite"
20
+ };
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
22
+ ...{ inheritAttrs: false },
23
+ __name: "UiButton",
24
+ props: {
25
+ frame: {},
26
+ form: {},
27
+ type: {},
28
+ color: { default: "secondary" },
29
+ collectionAction: {},
30
+ variant: {},
31
+ disabled: { type: Boolean },
32
+ loading: { type: Boolean },
33
+ loadingLabel: {}
34
+ },
35
+ setup(__props, { expose: __expose }) {
36
+ useUiZView();
37
+ const props = __props;
38
+ const nativeForm = inject(formContextKey, void 0);
39
+ if (nativeForm && inject(formPresentationKey, false)) {
40
+ const resetFields = () => {
41
+ };
42
+ provide(
43
+ formContextKey,
44
+ new Proxy(nativeForm, {
45
+ get(target, key, receiver) {
46
+ return key === "resetFields" ? resetFields : Reflect.get(target, key, receiver);
47
+ }
48
+ })
49
+ );
50
+ }
51
+ const toolkitType = computed(() => {
52
+ switch (props.color) {
53
+ case "secondary":
54
+ return "info";
55
+ case "primary":
56
+ return "primary";
57
+ case "success":
58
+ return "success";
59
+ case "danger":
60
+ return "danger";
61
+ case "warning":
62
+ return "warning";
63
+ case "info":
64
+ return "info";
65
+ default:
66
+ throw new Error(`Unsupported Element Plus theme color: ${props.color}`);
67
+ }
68
+ });
69
+ const element = ref();
70
+ __expose({
71
+ focus: () => focusUiTarget(
72
+ () => element.value?.$el,
73
+ () => Boolean(props.disabled || props.loading)
74
+ )
75
+ });
76
+ const {
77
+ variant: buttonVariant,
78
+ width: buttonWidth,
79
+ iconOnly,
80
+ hint
81
+ } = useUiButtonPresentation(props, { collectionActionVariant: "bordered" });
82
+ const controlSize = useControlSize("UiButton");
83
+ function neutralStyle() {
84
+ if (buttonVariant() !== "neutral" || props.color === "primary")
85
+ return void 0;
86
+ const token = "--el-color-" + toolkitType.value;
87
+ return {
88
+ "--el-button-hover-text-color": "var(" + token + ")",
89
+ "--el-button-hover-bg-color": "var(" + token + "-light-9)",
90
+ "--el-button-hover-border-color": "var(" + token + "-light-7)",
91
+ "--el-button-active-border-color": "var(" + token + ")",
92
+ "--el-button-outline-color": "var(" + token + "-light-5)"
93
+ };
94
+ }
95
+ return (_ctx, _cache) => {
96
+ return openBlock(), createElementBlock("span", {
97
+ class: "element-button-host",
98
+ "data-ui-button-width": unref(buttonWidth)(),
99
+ "data-ui-control-frame": __props.frame?.owner
100
+ }, [
101
+ createVNode(unref(ElButton), mergeProps({
102
+ size: unref(controlSize),
103
+ ref_key: "element",
104
+ ref: element
105
+ }, _ctx.$attrs, {
106
+ "native-type": __props.type,
107
+ form: __props.form,
108
+ title: unref(hint)(),
109
+ "data-ui-button-variant": unref(buttonVariant)(),
110
+ type: unref(buttonVariant)() === "neutral" ? "" : toolkitType.value,
111
+ style: neutralStyle(),
112
+ plain: unref(buttonVariant)() === void 0 ? void 0 : unref(buttonVariant)() === "outline" || unref(buttonVariant)() === "soft",
113
+ circle: unref(iconOnly)(),
114
+ text: unref(buttonVariant)() === void 0 ? void 0 : unref(buttonVariant)() === "text" || unref(buttonVariant)() === "icon",
115
+ class: [{
116
+ "element-button-outline": unref(buttonVariant)() === "outline",
117
+ "element-button-icon-only": unref(iconOnly)()
118
+ }, "element-button"],
119
+ loading: __props.loading,
120
+ disabled: __props.disabled || __props.loading,
121
+ "aria-busy": __props.loading || void 0
122
+ }), createSlots({
123
+ default: withCtx(() => [
124
+ unref(iconOnly)() ? (openBlock(), createElementBlock("span", _hoisted_3, [
125
+ renderSlot(_ctx.$slots, "icon")
126
+ ])) : createCommentVNode("v-if", true),
127
+ createElementVNode(
128
+ "span",
129
+ {
130
+ class: normalizeClass(["element-button-label", {
131
+ "element-visually-hidden element-button-label-hidden": unref(iconOnly)()
132
+ }])
133
+ },
134
+ [
135
+ renderSlot(_ctx.$slots, "default")
136
+ ],
137
+ 2
138
+ /* CLASS */
139
+ )
140
+ ]),
141
+ _: 2
142
+ /* DYNAMIC */
143
+ }, [
144
+ _ctx.$slots.icon && !unref(iconOnly)() ? {
145
+ name: "icon",
146
+ fn: withCtx(() => [
147
+ createElementVNode("span", _hoisted_2, [
148
+ renderSlot(_ctx.$slots, "icon")
149
+ ])
150
+ ]),
151
+ key: "0"
152
+ } : void 0
153
+ ]), 1040, ["size", "native-type", "form", "title", "data-ui-button-variant", "type", "style", "plain", "circle", "text", "class", "loading", "disabled", "aria-busy"]),
154
+ createElementVNode(
155
+ "span",
156
+ _hoisted_4,
157
+ toDisplayString(__props.loading ? __props.loadingLabel : ""),
158
+ 1
159
+ /* TEXT */
160
+ )
161
+ ], 8, _hoisted_1);
162
+ };
163
+ }
164
+ });
165
+ export {
166
+ _sfc_main as default
167
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./UiCard2.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };