@ug666/ui-vue 0.2.0 → 0.3.0-beta.2

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 (427) hide show
  1. package/dist/THIRD_PARTY_NOTICES.txt +98 -0
  2. package/dist/aliases.d.ts +96 -30
  3. package/dist/aliases.d.ts.map +1 -1
  4. package/dist/blocks/feature-grid.vue.d.ts +21 -13
  5. package/dist/blocks/feature-grid.vue.d.ts.map +1 -1
  6. package/dist/blocks/index.cjs +1 -1
  7. package/dist/blocks/index.cjs.map +1 -1
  8. package/dist/blocks/index.js +1 -136
  9. package/dist/blocks/index.js.map +1 -1
  10. package/dist/blocks/landing-hero.vue.d.ts +31 -20
  11. package/dist/blocks/landing-hero.vue.d.ts.map +1 -1
  12. package/dist/button-CnI0brH7.js +2 -0
  13. package/dist/button-CnI0brH7.js.map +1 -0
  14. package/dist/button-Czk6W5mp.cjs +2 -0
  15. package/dist/button-Czk6W5mp.cjs.map +1 -0
  16. package/dist/components/accordion.vue.d.ts +36 -7
  17. package/dist/components/accordion.vue.d.ts.map +1 -1
  18. package/dist/components/alert.vue.d.ts +14 -8
  19. package/dist/components/alert.vue.d.ts.map +1 -1
  20. package/dist/components/autocomplete.vue.d.ts +53 -0
  21. package/dist/components/autocomplete.vue.d.ts.map +1 -0
  22. package/dist/components/avatar-group.vue.d.ts +3 -2
  23. package/dist/components/avatar-group.vue.d.ts.map +1 -1
  24. package/dist/components/avatar.vue.d.ts +6 -5
  25. package/dist/components/avatar.vue.d.ts.map +1 -1
  26. package/dist/components/backtop.vue.d.ts +24 -0
  27. package/dist/components/backtop.vue.d.ts.map +1 -0
  28. package/dist/components/badge.vue.d.ts +28 -16
  29. package/dist/components/badge.vue.d.ts.map +1 -1
  30. package/dist/components/bar-chart.vue.d.ts +36 -0
  31. package/dist/components/bar-chart.vue.d.ts.map +1 -0
  32. package/dist/components/breadcrumb.vue.d.ts +24 -11
  33. package/dist/components/breadcrumb.vue.d.ts.map +1 -1
  34. package/dist/components/button-group.vue.d.ts +92 -0
  35. package/dist/components/button-group.vue.d.ts.map +1 -0
  36. package/dist/components/button.vue.d.ts +77 -39
  37. package/dist/components/button.vue.d.ts.map +1 -1
  38. package/dist/components/calendar.vue.d.ts +78 -0
  39. package/dist/components/calendar.vue.d.ts.map +1 -0
  40. package/dist/components/card.vue.d.ts +27 -11
  41. package/dist/components/card.vue.d.ts.map +1 -1
  42. package/dist/components/carousel.vue.d.ts +77 -0
  43. package/dist/components/carousel.vue.d.ts.map +1 -0
  44. package/dist/components/cascader.vue.d.ts +57 -0
  45. package/dist/components/cascader.vue.d.ts.map +1 -0
  46. package/dist/components/checkbox-group.vue.d.ts +43 -0
  47. package/dist/components/checkbox-group.vue.d.ts.map +1 -0
  48. package/dist/components/checkbox.vue.d.ts +23 -24
  49. package/dist/components/checkbox.vue.d.ts.map +1 -1
  50. package/dist/components/collapsible.vue.d.ts +73 -0
  51. package/dist/components/collapsible.vue.d.ts.map +1 -0
  52. package/dist/components/color-picker.vue.d.ts +35 -0
  53. package/dist/components/color-picker.vue.d.ts.map +1 -0
  54. package/dist/components/config-provider.vue.d.ts +79 -0
  55. package/dist/components/config-provider.vue.d.ts.map +1 -0
  56. package/dist/components/container.vue.d.ts +141 -0
  57. package/dist/components/container.vue.d.ts.map +1 -0
  58. package/dist/components/context/accordion-context.d.ts +9 -2
  59. package/dist/components/context/accordion-context.d.ts.map +1 -1
  60. package/dist/components/context/button-group.d.ts +40 -0
  61. package/dist/components/context/button-group.d.ts.map +1 -0
  62. package/dist/components/context/checkbox-context.d.ts +14 -0
  63. package/dist/components/context/checkbox-context.d.ts.map +1 -0
  64. package/dist/components/context/context-menu-context.d.ts +4 -0
  65. package/dist/components/context/context-menu-context.d.ts.map +1 -1
  66. package/dist/components/context/drawer-context.d.ts +26 -0
  67. package/dist/components/context/drawer-context.d.ts.map +1 -1
  68. package/dist/components/context/dropdown-context.d.ts +10 -0
  69. package/dist/components/context/dropdown-context.d.ts.map +1 -1
  70. package/dist/components/context/form-context.d.ts +31 -1
  71. package/dist/components/context/form-context.d.ts.map +1 -1
  72. package/dist/components/context/navigation-menu-context.d.ts +11 -0
  73. package/dist/components/context/navigation-menu-context.d.ts.map +1 -1
  74. package/dist/components/context/popover-context.d.ts +2 -0
  75. package/dist/components/context/popover-context.d.ts.map +1 -1
  76. package/dist/components/context/radio-context.d.ts +11 -3
  77. package/dist/components/context/radio-context.d.ts.map +1 -1
  78. package/dist/components/context/tabs-context.d.ts +18 -0
  79. package/dist/components/context/tabs-context.d.ts.map +1 -1
  80. package/dist/components/context/tooltip-context.d.ts +4 -0
  81. package/dist/components/context/tooltip-context.d.ts.map +1 -1
  82. package/dist/components/context-menu.vue.d.ts +6 -5
  83. package/dist/components/context-menu.vue.d.ts.map +1 -1
  84. package/dist/components/data-panel.vue.d.ts +58 -0
  85. package/dist/components/data-panel.vue.d.ts.map +1 -0
  86. package/dist/components/date-picker.vue.d.ts +65 -0
  87. package/dist/components/date-picker.vue.d.ts.map +1 -0
  88. package/dist/components/date-range-picker.vue.d.ts +62 -0
  89. package/dist/components/date-range-picker.vue.d.ts.map +1 -0
  90. package/dist/components/date-time-picker.vue.d.ts +71 -0
  91. package/dist/components/date-time-picker.vue.d.ts.map +1 -0
  92. package/dist/components/descriptions.vue.d.ts +12 -18
  93. package/dist/components/descriptions.vue.d.ts.map +1 -1
  94. package/dist/components/dialog.vue.d.ts +19 -3
  95. package/dist/components/dialog.vue.d.ts.map +1 -1
  96. package/dist/components/dock.vue.d.ts +76 -0
  97. package/dist/components/dock.vue.d.ts.map +1 -0
  98. package/dist/components/donut-chart.vue.d.ts +34 -0
  99. package/dist/components/donut-chart.vue.d.ts.map +1 -0
  100. package/dist/components/drawer.vue.d.ts +71 -16
  101. package/dist/components/drawer.vue.d.ts.map +1 -1
  102. package/dist/components/dropdown.vue.d.ts +55 -12
  103. package/dist/components/dropdown.vue.d.ts.map +1 -1
  104. package/dist/components/empty-state.vue.d.ts +20 -20
  105. package/dist/components/empty-state.vue.d.ts.map +1 -1
  106. package/dist/components/fab.vue.d.ts +79 -0
  107. package/dist/components/fab.vue.d.ts.map +1 -0
  108. package/dist/components/fieldset.vue.d.ts +45 -0
  109. package/dist/components/fieldset.vue.d.ts.map +1 -0
  110. package/dist/components/file-input.vue.d.ts +45 -0
  111. package/dist/components/file-input.vue.d.ts.map +1 -0
  112. package/dist/components/form.vue.d.ts +101 -23
  113. package/dist/components/form.vue.d.ts.map +1 -1
  114. package/dist/components/gauge-chart.vue.d.ts +34 -0
  115. package/dist/components/gauge-chart.vue.d.ts.map +1 -0
  116. package/dist/components/heatmap-chart.vue.d.ts +42 -0
  117. package/dist/components/heatmap-chart.vue.d.ts.map +1 -0
  118. package/dist/components/icon.vue.d.ts +28 -0
  119. package/dist/components/icon.vue.d.ts.map +1 -0
  120. package/dist/components/image-viewer.vue.d.ts +28 -0
  121. package/dist/components/image-viewer.vue.d.ts.map +1 -0
  122. package/dist/components/image.vue.d.ts +37 -0
  123. package/dist/components/image.vue.d.ts.map +1 -0
  124. package/dist/components/index.cjs +1 -1
  125. package/dist/components/index.d.ts +78 -12
  126. package/dist/components/index.d.ts.map +1 -1
  127. package/dist/components/index.js +1 -5
  128. package/dist/components/indicator.vue.d.ts +43 -0
  129. package/dist/components/indicator.vue.d.ts.map +1 -0
  130. package/dist/components/infinite-scroll.vue.d.ts +42 -0
  131. package/dist/components/infinite-scroll.vue.d.ts.map +1 -0
  132. package/dist/components/input.vue.d.ts +75 -29
  133. package/dist/components/input.vue.d.ts.map +1 -1
  134. package/dist/components/join.vue.d.ts +35 -0
  135. package/dist/components/join.vue.d.ts.map +1 -0
  136. package/dist/components/kbd.vue.d.ts +21 -0
  137. package/dist/components/kbd.vue.d.ts.map +1 -0
  138. package/dist/components/label.vue.d.ts +12 -19
  139. package/dist/components/label.vue.d.ts.map +1 -1
  140. package/dist/components/layout.d.ts +194 -0
  141. package/dist/components/layout.d.ts.map +1 -0
  142. package/dist/components/link.vue.d.ts +55 -0
  143. package/dist/components/link.vue.d.ts.map +1 -0
  144. package/dist/components/list.vue.d.ts +74 -0
  145. package/dist/components/list.vue.d.ts.map +1 -0
  146. package/dist/components/loading.vue.d.ts +25 -0
  147. package/dist/components/loading.vue.d.ts.map +1 -0
  148. package/dist/components/modal.vue.d.ts +42 -26
  149. package/dist/components/modal.vue.d.ts.map +1 -1
  150. package/dist/components/navbar.vue.d.ts +132 -0
  151. package/dist/components/navbar.vue.d.ts.map +1 -0
  152. package/dist/components/navigation-menu.vue.d.ts +80 -16
  153. package/dist/components/navigation-menu.vue.d.ts.map +1 -1
  154. package/dist/components/notification.vue.d.ts +29 -0
  155. package/dist/components/notification.vue.d.ts.map +1 -0
  156. package/dist/components/number-input.vue.d.ts +53 -25
  157. package/dist/components/number-input.vue.d.ts.map +1 -1
  158. package/dist/components/otp-input.vue.d.ts +21 -9
  159. package/dist/components/otp-input.vue.d.ts.map +1 -1
  160. package/dist/components/pagination.vue.d.ts +37 -15
  161. package/dist/components/pagination.vue.d.ts.map +1 -1
  162. package/dist/components/popconfirm.vue.d.ts +49 -0
  163. package/dist/components/popconfirm.vue.d.ts.map +1 -0
  164. package/dist/components/popover.vue.d.ts +11 -10
  165. package/dist/components/popover.vue.d.ts.map +1 -1
  166. package/dist/components/progress.vue.d.ts +29 -5
  167. package/dist/components/progress.vue.d.ts.map +1 -1
  168. package/dist/components/radar-chart.vue.d.ts +37 -0
  169. package/dist/components/radar-chart.vue.d.ts.map +1 -0
  170. package/dist/components/radial-progress.vue.d.ts +22 -0
  171. package/dist/components/radial-progress.vue.d.ts.map +1 -0
  172. package/dist/components/radio-group.vue.d.ts +29 -30
  173. package/dist/components/radio-group.vue.d.ts.map +1 -1
  174. package/dist/components/radio.vue.d.ts +32 -17
  175. package/dist/components/radio.vue.d.ts.map +1 -1
  176. package/dist/components/ranking-list.vue.d.ts +33 -0
  177. package/dist/components/ranking-list.vue.d.ts.map +1 -0
  178. package/dist/components/rating.vue.d.ts +36 -0
  179. package/dist/components/rating.vue.d.ts.map +1 -0
  180. package/dist/components/result.vue.d.ts +28 -0
  181. package/dist/components/result.vue.d.ts.map +1 -0
  182. package/dist/components/scrollbar.vue.d.ts +65 -0
  183. package/dist/components/scrollbar.vue.d.ts.map +1 -0
  184. package/dist/components/select.vue.d.ts +83 -35
  185. package/dist/components/select.vue.d.ts.map +1 -1
  186. package/dist/components/separator.vue.d.ts +19 -8
  187. package/dist/components/separator.vue.d.ts.map +1 -1
  188. package/dist/components/sheet.vue.d.ts +26 -27
  189. package/dist/components/sheet.vue.d.ts.map +1 -1
  190. package/dist/components/sidebar.vue.d.ts +61 -44
  191. package/dist/components/sidebar.vue.d.ts.map +1 -1
  192. package/dist/components/skeleton.vue.d.ts +3 -2
  193. package/dist/components/skeleton.vue.d.ts.map +1 -1
  194. package/dist/components/slider.vue.d.ts +56 -22
  195. package/dist/components/slider.vue.d.ts.map +1 -1
  196. package/dist/components/space.vue.d.ts +35 -0
  197. package/dist/components/space.vue.d.ts.map +1 -0
  198. package/dist/components/spinner.vue.d.ts +10 -5
  199. package/dist/components/spinner.vue.d.ts.map +1 -1
  200. package/dist/components/splitter.vue.d.ts +244 -0
  201. package/dist/components/splitter.vue.d.ts.map +1 -0
  202. package/dist/components/stack.vue.d.ts +28 -0
  203. package/dist/components/stack.vue.d.ts.map +1 -0
  204. package/dist/components/stacked-bar-chart.vue.d.ts +36 -0
  205. package/dist/components/stacked-bar-chart.vue.d.ts.map +1 -0
  206. package/dist/components/statistic-card.vue.d.ts +54 -0
  207. package/dist/components/statistic-card.vue.d.ts.map +1 -0
  208. package/dist/components/statistic.vue.d.ts +24 -21
  209. package/dist/components/statistic.vue.d.ts.map +1 -1
  210. package/dist/components/steps.vue.d.ts +13 -19
  211. package/dist/components/steps.vue.d.ts.map +1 -1
  212. package/dist/components/switch.vue.d.ts +50 -19
  213. package/dist/components/switch.vue.d.ts.map +1 -1
  214. package/dist/components/table.vue.d.ts +29 -11
  215. package/dist/components/table.vue.d.ts.map +1 -1
  216. package/dist/components/tabs.vue.d.ts +87 -10
  217. package/dist/components/tabs.vue.d.ts.map +1 -1
  218. package/dist/components/tag.vue.d.ts +16 -20
  219. package/dist/components/tag.vue.d.ts.map +1 -1
  220. package/dist/components/text.vue.d.ts +32 -0
  221. package/dist/components/text.vue.d.ts.map +1 -0
  222. package/dist/components/textarea.vue.d.ts +58 -26
  223. package/dist/components/textarea.vue.d.ts.map +1 -1
  224. package/dist/components/theme-controller.vue.d.ts +43 -0
  225. package/dist/components/theme-controller.vue.d.ts.map +1 -0
  226. package/dist/components/time-picker.vue.d.ts +53 -0
  227. package/dist/components/time-picker.vue.d.ts.map +1 -0
  228. package/dist/components/time-range-picker.vue.d.ts +50 -0
  229. package/dist/components/time-range-picker.vue.d.ts.map +1 -0
  230. package/dist/components/time-select.vue.d.ts +47 -0
  231. package/dist/components/time-select.vue.d.ts.map +1 -0
  232. package/dist/components/timeline.vue.d.ts +81 -0
  233. package/dist/components/timeline.vue.d.ts.map +1 -0
  234. package/dist/components/toast-state.d.ts +76 -9
  235. package/dist/components/toast-state.d.ts.map +1 -1
  236. package/dist/components/toast.vue.d.ts +15 -3
  237. package/dist/components/toast.vue.d.ts.map +1 -1
  238. package/dist/components/tooltip.vue.d.ts +12 -6
  239. package/dist/components/tooltip.vue.d.ts.map +1 -1
  240. package/dist/components/transfer.vue.d.ts +48 -0
  241. package/dist/components/transfer.vue.d.ts.map +1 -0
  242. package/dist/components/tree-select.vue.d.ts +66 -0
  243. package/dist/components/tree-select.vue.d.ts.map +1 -0
  244. package/dist/components/tree.vue.d.ts +88 -0
  245. package/dist/components/tree.vue.d.ts.map +1 -0
  246. package/dist/components/trend-chart.vue.d.ts +47 -0
  247. package/dist/components/trend-chart.vue.d.ts.map +1 -0
  248. package/dist/components/types/forms.d.ts +15 -0
  249. package/dist/components/types/forms.d.ts.map +1 -0
  250. package/dist/components/types/foundation.d.ts +5 -0
  251. package/dist/components/types/foundation.d.ts.map +1 -0
  252. package/dist/components/upload.vue.d.ts +48 -0
  253. package/dist/components/upload.vue.d.ts.map +1 -0
  254. package/dist/composables/index.cjs +1 -1
  255. package/dist/composables/index.d.ts +2 -1
  256. package/dist/composables/index.d.ts.map +1 -1
  257. package/dist/composables/index.js +1 -3
  258. package/dist/composables/use-copy-to-clipboard.d.ts.map +1 -1
  259. package/dist/composables/use-event-listener.d.ts.map +1 -1
  260. package/dist/composables/use-form.d.ts +41 -28
  261. package/dist/composables/use-form.d.ts.map +1 -1
  262. package/dist/composables/use-local-storage.d.ts.map +1 -1
  263. package/dist/composables/use-media-query.d.ts.map +1 -1
  264. package/dist/composables/use-pagination.d.ts.map +1 -1
  265. package/dist/composables/use-toast.d.ts +2 -2
  266. package/dist/composables/use-toast.d.ts.map +1 -1
  267. package/dist/composables-BKdJUtth.cjs +2 -0
  268. package/dist/composables-BKdJUtth.cjs.map +1 -0
  269. package/dist/composables-CeSrWzj1.js +2 -0
  270. package/dist/composables-CeSrWzj1.js.map +1 -0
  271. package/dist/global.cjs +1 -1
  272. package/dist/global.d.ts +95 -0
  273. package/dist/global.d.ts.map +1 -1
  274. package/dist/icon-Che64mHe.cjs +2 -0
  275. package/dist/icon-Che64mHe.cjs.map +1 -0
  276. package/dist/icon-F_GVho3U.js +2 -0
  277. package/dist/icon-F_GVho3U.js.map +1 -0
  278. package/dist/index.cjs +1 -1
  279. package/dist/index.cjs.map +1 -1
  280. package/dist/index.d.ts +88 -21
  281. package/dist/index.d.ts.map +1 -1
  282. package/dist/index.js +1 -334
  283. package/dist/index.js.map +1 -1
  284. package/dist/input-Bdyp6ABh.cjs +2 -0
  285. package/dist/input-Bdyp6ABh.cjs.map +1 -0
  286. package/dist/input-DERQW5r8.js +2 -0
  287. package/dist/input-DERQW5r8.js.map +1 -0
  288. package/dist/internal/admin-horizontal-navigation.vue.d.ts +10 -0
  289. package/dist/internal/admin-horizontal-navigation.vue.d.ts.map +1 -0
  290. package/dist/internal/data-table-header.vue.d.ts +35 -0
  291. package/dist/internal/data-table-header.vue.d.ts.map +1 -0
  292. package/dist/internal/date-mode-panel.vue.d.ts +15 -0
  293. package/dist/internal/date-mode-panel.vue.d.ts.map +1 -0
  294. package/dist/internal/date-time-control.vue.d.ts +76 -0
  295. package/dist/internal/date-time-control.vue.d.ts.map +1 -0
  296. package/dist/internal/date-time-picker-panel.vue.d.ts +16 -0
  297. package/dist/internal/date-time-picker-panel.vue.d.ts.map +1 -0
  298. package/dist/internal/date-time-range-control.vue.d.ts +70 -0
  299. package/dist/internal/date-time-range-control.vue.d.ts.map +1 -0
  300. package/dist/internal/date-time-range-panel.vue.d.ts +13 -0
  301. package/dist/internal/date-time-range-panel.vue.d.ts.map +1 -0
  302. package/dist/internal/notification-item.vue.d.ts +14 -0
  303. package/dist/internal/notification-item.vue.d.ts.map +1 -0
  304. package/dist/internal/option-window.vue.d.ts +28 -0
  305. package/dist/internal/option-window.vue.d.ts.map +1 -0
  306. package/dist/internal/sidebar-navigation.d.ts +31 -0
  307. package/dist/internal/sidebar-navigation.d.ts.map +1 -0
  308. package/dist/internal/time-panel.vue.d.ts +15 -0
  309. package/dist/internal/time-panel.vue.d.ts.map +1 -0
  310. package/dist/internal/time-picker-panel.vue.d.ts +14 -0
  311. package/dist/internal/time-picker-panel.vue.d.ts.map +1 -0
  312. package/dist/internal/use-cascader-lazy.d.ts +20 -0
  313. package/dist/internal/use-cascader-lazy.d.ts.map +1 -0
  314. package/dist/internal/use-overlay-focus.d.ts +3 -0
  315. package/dist/internal/use-overlay-focus.d.ts.map +1 -0
  316. package/dist/internal/use-overlay-lifecycle.d.ts +3 -0
  317. package/dist/internal/use-overlay-lifecycle.d.ts.map +1 -0
  318. package/dist/internal/use-presence.d.ts +8 -0
  319. package/dist/internal/use-presence.d.ts.map +1 -0
  320. package/dist/internal/use-transfer-remote.d.ts +32 -0
  321. package/dist/internal/use-transfer-remote.d.ts.map +1 -0
  322. package/dist/internal/use-tree-data.d.ts +8 -0
  323. package/dist/internal/use-tree-data.d.ts.map +1 -0
  324. package/dist/patterns/admin-shell.vue.d.ts +121 -19
  325. package/dist/patterns/admin-shell.vue.d.ts.map +1 -1
  326. package/dist/patterns/app-tabs.vue.d.ts +51 -0
  327. package/dist/patterns/app-tabs.vue.d.ts.map +1 -0
  328. package/dist/patterns/confirm-dialog.vue.d.ts +14 -16
  329. package/dist/patterns/confirm-dialog.vue.d.ts.map +1 -1
  330. package/dist/patterns/copy-field.vue.d.ts +21 -15
  331. package/dist/patterns/copy-field.vue.d.ts.map +1 -1
  332. package/dist/patterns/data-table-identity.vue.d.ts +26 -0
  333. package/dist/patterns/data-table-identity.vue.d.ts.map +1 -0
  334. package/dist/patterns/data-table-toolbar.vue.d.ts +32 -0
  335. package/dist/patterns/data-table-toolbar.vue.d.ts.map +1 -0
  336. package/dist/patterns/data-table.vue.d.ts +105 -0
  337. package/dist/patterns/data-table.vue.d.ts.map +1 -0
  338. package/dist/patterns/index.cjs +1 -1
  339. package/dist/patterns/index.cjs.map +1 -1
  340. package/dist/patterns/index.d.ts +25 -0
  341. package/dist/patterns/index.d.ts.map +1 -1
  342. package/dist/patterns/index.js +1 -294
  343. package/dist/patterns/index.js.map +1 -1
  344. package/dist/patterns/page-header.vue.d.ts +31 -23
  345. package/dist/patterns/page-header.vue.d.ts.map +1 -1
  346. package/dist/patterns/quick-access.vue.d.ts +43 -0
  347. package/dist/patterns/quick-access.vue.d.ts.map +1 -0
  348. package/dist/patterns/selection-list.vue.d.ts +51 -0
  349. package/dist/patterns/selection-list.vue.d.ts.map +1 -0
  350. package/dist/patterns/theme-configurator-choice-group.vue.d.ts +22 -0
  351. package/dist/patterns/theme-configurator-choice-group.vue.d.ts.map +1 -0
  352. package/dist/patterns/theme-configurator-dialog.vue.d.ts +58 -0
  353. package/dist/patterns/theme-configurator-dialog.vue.d.ts.map +1 -0
  354. package/dist/patterns/theme-configurator.vue.d.ts +44 -0
  355. package/dist/patterns/theme-configurator.vue.d.ts.map +1 -0
  356. package/dist/patterns/tree-table.vue.d.ts +100 -0
  357. package/dist/patterns/tree-table.vue.d.ts.map +1 -0
  358. package/dist/plugin.d.ts.map +1 -1
  359. package/dist/primitives/index.cjs +1 -1
  360. package/dist/primitives/index.d.ts +19 -3
  361. package/dist/primitives/index.d.ts.map +1 -1
  362. package/dist/primitives/index.js +1 -3
  363. package/dist/resolver.cjs +1 -1
  364. package/dist/resolver.cjs.map +1 -1
  365. package/dist/resolver.d.ts.map +1 -1
  366. package/dist/resolver.js +1 -32
  367. package/dist/resolver.js.map +1 -1
  368. package/dist/sidebar-O1_kmFSE.js +2 -0
  369. package/dist/sidebar-O1_kmFSE.js.map +1 -0
  370. package/dist/sidebar-VFEdi6LG.cjs +2 -0
  371. package/dist/sidebar-VFEdi6LG.cjs.map +1 -0
  372. package/dist/styles.css +2 -2502
  373. package/dist/theme.cjs +2 -0
  374. package/dist/theme.cjs.map +1 -0
  375. package/dist/theme.d.ts +177 -74
  376. package/dist/theme.d.ts.map +1 -1
  377. package/dist/theme.js +2 -0
  378. package/dist/theme.js.map +1 -0
  379. package/dist/themes/default.css +1 -0
  380. package/dist/themes/mecha.css +1 -0
  381. package/dist/themes/minimal.css +1 -0
  382. package/dist/toast-state-Ba1YMGgq.js +2 -0
  383. package/dist/toast-state-Ba1YMGgq.js.map +1 -0
  384. package/dist/toast-state-DoeeKJ8T.cjs +2 -0
  385. package/dist/toast-state-DoeeKJ8T.cjs.map +1 -0
  386. package/dist/tokens.css +2 -86
  387. package/dist/tree-select-CEkJjZWg.cjs +2 -0
  388. package/dist/tree-select-CEkJjZWg.cjs.map +1 -0
  389. package/dist/tree-select-Ca9zSsoU.js +2 -0
  390. package/dist/tree-select-Ca9zSsoU.js.map +1 -0
  391. package/dist/use-media-query-CkB_D997.cjs +2 -0
  392. package/dist/use-media-query-CkB_D997.cjs.map +1 -0
  393. package/dist/use-media-query-RMDst192.js +2 -0
  394. package/dist/use-media-query-RMDst192.js.map +1 -0
  395. package/package.json +25 -17
  396. package/dist/aliases-CKe0wVQy.cjs +0 -2
  397. package/dist/aliases-CKe0wVQy.cjs.map +0 -1
  398. package/dist/aliases-u3xep8jx.js +0 -2732
  399. package/dist/aliases-u3xep8jx.js.map +0 -1
  400. package/dist/button-C10AiP5_.cjs +0 -2
  401. package/dist/button-C10AiP5_.cjs.map +0 -1
  402. package/dist/button-Sy9e0tiI.js +0 -1742
  403. package/dist/button-Sy9e0tiI.js.map +0 -1
  404. package/dist/component-layers.d.ts +0 -199
  405. package/dist/component-layers.d.ts.map +0 -1
  406. package/dist/composables-GXmQiqgg.cjs +0 -2
  407. package/dist/composables-GXmQiqgg.cjs.map +0 -1
  408. package/dist/composables-YMNfao5g.js +0 -251
  409. package/dist/composables-YMNfao5g.js.map +0 -1
  410. package/dist/labs/index.cjs +0 -2
  411. package/dist/labs/index.cjs.map +0 -1
  412. package/dist/labs/index.d.ts +0 -10
  413. package/dist/labs/index.d.ts.map +0 -1
  414. package/dist/labs/index.js +0 -9
  415. package/dist/labs/index.js.map +0 -1
  416. package/dist/separator-BnNQAp6A.js +0 -259
  417. package/dist/separator-BnNQAp6A.js.map +0 -1
  418. package/dist/separator-Bynwn-we.cjs +0 -2
  419. package/dist/separator-Bynwn-we.cjs.map +0 -1
  420. package/dist/sidebar-BnZB7vlK.js +0 -344
  421. package/dist/sidebar-BnZB7vlK.js.map +0 -1
  422. package/dist/sidebar-xKPzL0NQ.cjs +0 -2
  423. package/dist/sidebar-xKPzL0NQ.cjs.map +0 -1
  424. package/dist/toast-state-BBoVvR0u.cjs +0 -2
  425. package/dist/toast-state-BBoVvR0u.cjs.map +0 -1
  426. package/dist/toast-state-Crugc-IE.js +0 -50
  427. package/dist/toast-state-Crugc-IE.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-Bdyp6ABh.cjs","names":["$slots","_useModel","getCurrentInstance","ref","useAttrs","useUIConfig","useId","computed","resolveDisabled","resolveControlSize","countTextCharacters","cn","isAriaInvalid","_useSlots","isControlComposing","limitTextByCount","nextTick","_openBlock","_createElementBlock","_toDisplayString","_createCommentVNode","_createElementVNode","_normalizeClass","_unref","_renderSlot","_createBlock","_resolveDynamicComponent","_createTextVNode","_mergeProps","X","EyeOff","Eye","_sfc_main","require_button","require","vue","_lucide_vue","_ug666_ui_core","_ug666_ui_web","_hoisted_1","_hoisted_2","_hoisted_3","class","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","input_default","defineComponent","name","inheritAttrs","__name","props","mergeModels","label","default","error","helperText","id","type","disabled","Boolean","readonly","size","placeholder","prefix","suffix","prefixIcon","suffixIcon","clearIcon","passwordVisibleIcon","passwordHiddenIcon","clearable","showPassword","showWordLimit","wordLimitPosition","countCharacters","maxlength","formatter","Function","parser","modelValue","modelModifiers","emits","setup","__props","expose","__expose","emit","__emit","useModel","instance","getCurrentInstance","localValue","ref","hasModelValue","Object","prototype","hasOwnProperty","call","vnode","commitValue","value","attrs","useAttrs","config","useUIConfig","generatedId","useId","inputRef","focused","composing","compositionValue","lastCompositionValue","passwordVisible","resetForm","resetActive","resetTasks","Set","inputId","computed","messageId","resolvedDisabled","resolveDisabled","resolvedSize","resolveControlSize","rawValue","boundValue","String","displayValue","canClear","length","canTogglePassword","resolvedType","hasMessage","characterCount","countTextCharacters","hasInsideCount","usesCanonicalSubmitValue","state","resolvedInvalid","filter","join","sizeClass","paddingClass","wrapperClasses","cn","inputClasses","slots","ariaDescribedBy","ariaInvalid","isAriaInvalid","inputAttrs","nextAttrs","onKeydown","useSlots","handleInput","event","target","isControlComposing","parsedValue","nextValue","limitTextByCount","handleCompositionStart","handleCompositionEnd","handleKeyDown","handlers","handler","Array","isArray","handleChange","handleBlur","handleFocus","clear","focus","handleFormReset","owner","task","setTimeout","delete","defaultPrevented","form","add","bindFormReset","nextForm","removeEventListener","addEventListener","onMounted","nextTick","watch","onBeforeUnmount","clearTimeout","blur","select","el","_ctx","_cache","openBlock","createElementBlock","for","toDisplayString","createCommentVNode","createElementVNode","$slots","prepend","normalizeClass","unref","renderSlot","append","createBlock","resolveDynamicComponent","createTextVNode","mergeProps","ref_key","onBlur","onChange","onCompositionend","onCompositionstart","onFocus","onInput","onClick","X","$event","EyeOff","Eye","defineProperty","exports","enumerable","get"],"sources":["../src/components/input.vue","../src/components/input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { TextCountFunction } from '@ug666/ui-core'\nimport type { Component } from 'vue'\nimport type { ControlSize } from './config-provider.vue'\n\nexport interface InputProps {\n label?: string\n error?: string\n helperText?: string\n id?: string\n type?: string\n disabled?: boolean\n readonly?: boolean\n size?: ControlSize\n placeholder?: string\n prefix?: string | number\n suffix?: string | number\n prefixIcon?: Component\n suffixIcon?: Component\n clearIcon?: Component\n passwordVisibleIcon?: Component\n passwordHiddenIcon?: Component\n clearable?: boolean\n showPassword?: boolean\n showWordLimit?: boolean\n wordLimitPosition?: 'inside' | 'outside'\n countCharacters?: TextCountFunction\n maxlength?: number\n formatter?: (value: string) => string\n parser?: (value: string) => string\n class?: string\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, useId, watch } from 'vue'\nimport { Eye, EyeOff, X } from '@lucide/vue'\nimport { countTextCharacters, limitTextByCount } from '@ug666/ui-core'\nimport { isControlComposing } from '@ug666/ui-web'\nimport { cn } from '../internal/cn'\nimport { isAriaInvalid, resolveControlSize, resolveDisabled, useUIConfig } from './config-provider.vue'\n\ndefineOptions({ name: 'UInput', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<InputProps>(), {\n label: undefined,\n error: undefined,\n helperText: undefined,\n id: undefined,\n type: 'text',\n disabled: undefined,\n readonly: false,\n size: undefined,\n placeholder: undefined,\n prefix: undefined,\n suffix: undefined,\n prefixIcon: undefined,\n suffixIcon: undefined,\n clearIcon: undefined,\n passwordVisibleIcon: undefined,\n passwordHiddenIcon: undefined,\n clearable: false,\n showPassword: false,\n showWordLimit: false,\n wordLimitPosition: 'inside',\n countCharacters: undefined,\n maxlength: undefined,\n formatter: undefined,\n parser: undefined,\n class: undefined,\n})\n\nconst emit = defineEmits<{\n blur: [event: FocusEvent]\n focus: [event: FocusEvent]\n input: [event: Event]\n change: [event: Event]\n clear: []\n compositionend: [event: CompositionEvent]\n compositionstart: [event: CompositionEvent]\n}>()\n\nconst modelValue = defineModel<string | number | undefined>()\nconst instance = getCurrentInstance()\nconst localValue = ref<string | number | undefined>()\nconst hasModelValue = () => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'modelValue') || Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'model-value')\nfunction commitValue(value: string) {\n if (hasModelValue()) modelValue.value = value\n else { localValue.value = value; instance?.emit('update:modelValue', value) }\n}\nconst attrs = useAttrs()\nconst config = useUIConfig()\nconst generatedId = useId()\nconst inputRef = ref<HTMLInputElement | null>(null)\nconst focused = ref(false)\nconst composing = ref(false)\nconst compositionValue = ref<string | undefined>()\nlet lastCompositionValue: string | undefined\nconst passwordVisible = ref(false)\nlet resetForm: HTMLFormElement | null = null\nlet resetActive = true\nconst resetTasks = new Set<ReturnType<typeof setTimeout>>()\n\nconst inputId = computed(() => props.id ?? generatedId)\nconst messageId = computed(() => `${inputId.value}-message`)\nconst resolvedDisabled = computed(() => resolveDisabled(props.disabled, config.value.disabled))\nconst resolvedSize = computed(() => resolveControlSize(props.size, config.value.size))\nconst rawValue = computed(() => {\n const boundValue = instance?.props.modelValue as string | number | undefined\n const value = hasModelValue() ? boundValue : localValue.value\n return value === undefined || value === null ? '' : String(value)\n})\nconst displayValue = computed(() =>\n composing.value ? compositionValue.value ?? rawValue.value : props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value,\n)\nconst canClear = computed(\n () => props.clearable && rawValue.value.length > 0 && !resolvedDisabled.value && !props.readonly,\n)\nconst canTogglePassword = computed(() => props.showPassword && props.type === 'password' && !resolvedDisabled.value)\nconst resolvedType = computed(() =>\n props.showPassword && props.type === 'password' && passwordVisible.value ? 'text' : props.type,\n)\nconst hasMessage = computed(() => Boolean(props.error || props.helperText || (props.showWordLimit && props.maxlength)))\nconst characterCount = computed(() => countTextCharacters(rawValue.value, props.countCharacters))\nconst hasInsideCount = computed(() => props.showWordLimit && props.maxlength && props.wordLimitPosition === 'inside')\nconst usesCanonicalSubmitValue = computed(() => Boolean(props.formatter && attrs.name))\nconst state = computed(\n () =>\n [\n resolvedDisabled.value && 'disabled',\n resolvedInvalid.value && 'invalid',\n props.readonly && 'readonly',\n focused.value && 'focused',\n ]\n .filter(Boolean)\n .join(' ') || 'default',\n)\n\nconst sizeClass = computed(() => ({\n 'h-[var(--control-height-sm)]': resolvedSize.value === 'sm',\n 'h-[var(--control-height-md)]': resolvedSize.value === 'default',\n 'h-[var(--control-height-lg)]': resolvedSize.value === 'lg',\n}))\nconst paddingClass = computed(() => ({\n 'px-[var(--control-padding-x-sm)]': resolvedSize.value === 'sm',\n 'px-[var(--control-padding-x-md)]': resolvedSize.value === 'default',\n 'px-[var(--control-padding-x-lg)]': resolvedSize.value === 'lg',\n}))\nconst wrapperClasses = computed(() =>\n cn(\n 'flex min-w-0 flex-1 items-center',\n sizeClass.value,\n\n ),\n)\nconst inputClasses = computed(() =>\n cn(\n 'h-full min-w-0 flex-1 border-0 bg-transparent py-0 outline-none',\n paddingClass.value,\n (slots.prefix || props.prefix !== undefined || props.prefixIcon) && 'pl-2',\n (slots.suffix || props.suffix !== undefined || props.suffixIcon || canClear.value || canTogglePassword.value || hasInsideCount.value) && 'pr-2',\n resolvedDisabled.value && 'cursor-not-allowed',\n props.class,\n ),\n)\nconst ariaDescribedBy = computed(() =>\n typeof attrs['aria-describedby'] === 'string'\n ? attrs['aria-describedby']\n : hasMessage.value\n ? messageId.value\n : undefined,\n)\ntype AriaInvalidValue = boolean | 'true' | 'false' | 'grammar' | 'spelling'\nconst ariaInvalid = computed<AriaInvalidValue | undefined>(() => {\n const value = attrs['aria-invalid']\n if (\n typeof value === 'boolean' ||\n value === 'true' ||\n value === 'false' ||\n value === 'grammar' ||\n value === 'spelling'\n )\n return value\n return props.error ? true : undefined\n})\nconst resolvedInvalid = computed(() => Boolean(props.error) || isAriaInvalid(ariaInvalid.value))\nconst inputAttrs = computed(() => {\n const nextAttrs = { ...attrs }\n delete nextAttrs.class\n delete nextAttrs.onKeydown\n delete nextAttrs['aria-describedby']\n delete nextAttrs['aria-invalid']\n if (usesCanonicalSubmitValue.value) delete nextAttrs.name\n return nextAttrs\n})\nconst slots = defineSlots<{\n default?: () => unknown\n prefix?: () => unknown\n suffix?: () => unknown\n prepend?: () => unknown\n append?: () => unknown\n clearIcon?: () => unknown\n passwordVisibleIcon?: () => unknown\n passwordHiddenIcon?: () => unknown\n}>()\n\n// 组合草稿/末次提交去重改写自 Arco React Input/useComposition.ts (MIT),\n// 同时核对 Arco Vue 2.58.0 input.tsx 的原生 composition 事务。\n// Copyright (c) 2021 Bytedance, Inc. and its affiliates.\n// https://github.com/arco-design/arco-design/blob/fbf2ec0a8cc28a5d20f1f82de6c2c4196ef66950/components/Input/useComposition.ts\n// https://github.com/arco-design/arco-design-vue/blob/5a707cc60c1130d8dae3aefb2e93616541952a66/packages/web-vue/components/input/input.tsx\n// 完整许可保留于 ui-web/src/control-behavior.ts;UG 保留原生 input,只延迟 modelValue。\nfunction handleInput(event: Event) {\n const target = event.target as HTMLInputElement\n if (isControlComposing(event as InputEvent, composing.value)) {\n compositionValue.value = target.value\n emit('input', event)\n return\n }\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n if (lastCompositionValue !== nextValue) commitValue(nextValue)\n lastCompositionValue = undefined\n emit('input', event)\n}\n\nfunction handleCompositionStart(event: CompositionEvent) {\n composing.value = true\n compositionValue.value = (event.target as HTMLInputElement).value\n lastCompositionValue = undefined\n emit('compositionstart', event)\n}\n\nfunction handleCompositionEnd(event: CompositionEvent) {\n composing.value = false\n compositionValue.value = undefined\n const target = event.target as HTMLInputElement\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n lastCompositionValue = nextValue\n if (nextValue !== rawValue.value) commitValue(nextValue)\n emit('compositionend', event)\n}\n\nfunction handleKeyDown(event: KeyboardEvent) {\n if (isControlComposing(event, composing.value)) return\n const handlers = attrs.onKeydown\n for (const handler of Array.isArray(handlers) ? handlers : [handlers]) {\n if (typeof handler === 'function') handler(event)\n }\n}\n\nfunction handleChange(event: Event) {\n emit('change', event)\n}\n\nfunction handleBlur(event: FocusEvent) {\n focused.value = false\n emit('blur', event)\n}\n\nfunction handleFocus(event: FocusEvent) {\n focused.value = true\n emit('focus', event)\n}\n\nfunction clear() {\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n commitValue('')\n emit('clear')\n inputRef.value?.focus()\n}\n\nfunction focus() {\n inputRef.value?.focus()\n}\n\nfunction blur() {\n inputRef.value?.blur()\n}\n\nfunction select() {\n inputRef.value?.select()\n}\n\nfunction handleFormReset(event: Event) {\n const owner = resetForm\n const task = setTimeout(() => {\n resetTasks.delete(task)\n if (!resetActive || event.defaultPrevented || inputRef.value?.form !== owner) return\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n passwordVisible.value = false\n if (!hasModelValue()) localValue.value = undefined\n inputRef.value.value = props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value\n }, 0)\n resetTasks.add(task)\n}\n\nfunction bindFormReset() {\n const nextForm = inputRef.value?.form ?? null\n if (resetForm === nextForm) return\n resetForm?.removeEventListener('reset', handleFormReset)\n resetForm = nextForm\n resetForm?.addEventListener('reset', handleFormReset)\n}\n\nonMounted(() => void nextTick(bindFormReset))\nwatch(\n () => attrs.form,\n () => void nextTick(bindFormReset),\n)\nonBeforeUnmount(() => {\n resetActive = false\n resetForm?.removeEventListener('reset', handleFormReset)\n for (const task of resetTasks) clearTimeout(task)\n})\n\ndefineExpose({ focus, blur, select, clear, el: inputRef })\n</script>\n\n<template>\n <div\n class=\"flex min-w-0 flex-col gap-1\"\n :data-size=\"resolvedSize\"\n :data-state=\"state\"\n data-ug=\"input\"\n data-ug-slot=\"root\"\n data-variant=\"default\"\n >\n <label\n v-if=\"label\"\n :for=\"inputId\"\n class=\"min-w-0 text-sm font-medium text-text-primary [overflow-wrap:anywhere]\"\n data-ug-slot=\"label\"\n >\n {{ label }}\n </label>\n\n <div class=\"flex w-full min-w-0\" data-ug-slot=\"group\">\n <span\n v-if=\"$slots.prepend\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-r-0 border-border-base bg-surface-2 text-text-secondary [border-end-start-radius:var(--radius-control)] [border-start-start-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"prepend\"\n >\n <slot name=\"prepend\" />\n </span>\n\n <div\n :class=\"wrapperClasses\"\n :data-has-append=\"$slots.append ? 'true' : undefined\"\n :data-has-prepend=\"$slots.prepend ? 'true' : undefined\"\n data-ug-slot=\"wrapper\"\n >\n <span\n v-if=\"$slots.prefix || prefix !== undefined || prefixIcon\"\n aria-hidden=\"true\"\n :class=\"cn('inline-flex shrink-0 items-center pr-0', paddingClass)\"\n data-ug-slot=\"prefix\"\n >\n <slot name=\"prefix\"><component :is=\"prefixIcon\" v-if=\"prefixIcon\" />{{ prefix }}</slot>\n </span>\n\n <input\n v-bind=\"inputAttrs\"\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-invalid=\"ariaInvalid\"\n :class=\"inputClasses\"\n data-ug-slot=\"control\"\n :disabled=\"resolvedDisabled\"\n :maxlength=\"countCharacters ? undefined : maxlength\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :type=\"resolvedType\"\n :value=\"displayValue\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @compositionend=\"handleCompositionEnd\"\n @compositionstart=\"handleCompositionStart\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @keydown=\"handleKeyDown\"\n />\n\n <span\n v-if=\"hasInsideCount\"\n aria-hidden=\"true\"\n class=\"shrink-0 whitespace-nowrap text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n <button\n v-if=\"canClear\"\n aria-label=\"清空输入\"\n :aria-controls=\"inputId\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"clear\"\n type=\"button\"\n @click=\"clear\"\n >\n <slot name=\"clearIcon\">\n <component :is=\"clearIcon || X\" aria-hidden=\"true\" :size=\"14\" />\n </slot>\n </button>\n <button\n v-if=\"canTogglePassword\"\n :aria-label=\"passwordVisible ? '隐藏密码' : '显示密码'\"\n :aria-controls=\"inputId\"\n :aria-pressed=\"passwordVisible\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"password-toggle\"\n type=\"button\"\n @click=\"passwordVisible = !passwordVisible\"\n >\n <slot v-if=\"passwordVisible\" name=\"passwordVisibleIcon\">\n <component :is=\"passwordVisibleIcon || EyeOff\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n <slot v-else name=\"passwordHiddenIcon\">\n <component :is=\"passwordHiddenIcon || Eye\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n </button>\n\n <span\n v-if=\"$slots.suffix || suffix !== undefined || suffixIcon\"\n :class=\"cn('inline-flex shrink-0 items-center pl-0', paddingClass)\"\n data-ug-slot=\"suffix\"\n >\n <slot name=\"suffix\"><component :is=\"suffixIcon\" v-if=\"suffixIcon\" />{{ suffix }}</slot>\n </span>\n </div>\n\n <span\n v-if=\"$slots.append\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-l-0 border-border-base bg-surface-2 text-text-secondary [border-end-end-radius:var(--radius-control)] [border-start-end-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"append\"\n >\n <slot name=\"append\" />\n </span>\n </div>\n\n <input\n v-if=\"usesCanonicalSubmitValue\"\n :disabled=\"resolvedDisabled\"\n :form=\"typeof attrs.form === 'string' ? attrs.form : undefined\"\n :name=\"typeof attrs.name === 'string' ? attrs.name : undefined\"\n type=\"hidden\"\n :value=\"rawValue\"\n />\n <span\n v-if=\"showWordLimit && maxlength && wordLimitPosition === 'outside'\"\n aria-hidden=\"true\"\n class=\"self-end text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n\n <p v-if=\"error\" :id=\"messageId\" class=\"min-w-0 text-xs text-danger [overflow-wrap:anywhere]\" data-ug-slot=\"message\">\n {{ error }}\n </p>\n <p\n v-else-if=\"helperText\"\n :id=\"messageId\"\n class=\"min-w-0 text-xs text-text-secondary [overflow-wrap:anywhere]\"\n data-ug-slot=\"message\"\n >\n {{ helperText }}\n </p>\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { TextCountFunction } from '@ug666/ui-core'\nimport type { Component } from 'vue'\nimport type { ControlSize } from './config-provider.vue'\n\nexport interface InputProps {\n label?: string\n error?: string\n helperText?: string\n id?: string\n type?: string\n disabled?: boolean\n readonly?: boolean\n size?: ControlSize\n placeholder?: string\n prefix?: string | number\n suffix?: string | number\n prefixIcon?: Component\n suffixIcon?: Component\n clearIcon?: Component\n passwordVisibleIcon?: Component\n passwordHiddenIcon?: Component\n clearable?: boolean\n showPassword?: boolean\n showWordLimit?: boolean\n wordLimitPosition?: 'inside' | 'outside'\n countCharacters?: TextCountFunction\n maxlength?: number\n formatter?: (value: string) => string\n parser?: (value: string) => string\n class?: string\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, useId, watch } from 'vue'\nimport { Eye, EyeOff, X } from '@lucide/vue'\nimport { countTextCharacters, limitTextByCount } from '@ug666/ui-core'\nimport { isControlComposing } from '@ug666/ui-web'\nimport { cn } from '../internal/cn'\nimport { isAriaInvalid, resolveControlSize, resolveDisabled, useUIConfig } from './config-provider.vue'\n\ndefineOptions({ name: 'UInput', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<InputProps>(), {\n label: undefined,\n error: undefined,\n helperText: undefined,\n id: undefined,\n type: 'text',\n disabled: undefined,\n readonly: false,\n size: undefined,\n placeholder: undefined,\n prefix: undefined,\n suffix: undefined,\n prefixIcon: undefined,\n suffixIcon: undefined,\n clearIcon: undefined,\n passwordVisibleIcon: undefined,\n passwordHiddenIcon: undefined,\n clearable: false,\n showPassword: false,\n showWordLimit: false,\n wordLimitPosition: 'inside',\n countCharacters: undefined,\n maxlength: undefined,\n formatter: undefined,\n parser: undefined,\n class: undefined,\n})\n\nconst emit = defineEmits<{\n blur: [event: FocusEvent]\n focus: [event: FocusEvent]\n input: [event: Event]\n change: [event: Event]\n clear: []\n compositionend: [event: CompositionEvent]\n compositionstart: [event: CompositionEvent]\n}>()\n\nconst modelValue = defineModel<string | number | undefined>()\nconst instance = getCurrentInstance()\nconst localValue = ref<string | number | undefined>()\nconst hasModelValue = () => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'modelValue') || Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'model-value')\nfunction commitValue(value: string) {\n if (hasModelValue()) modelValue.value = value\n else { localValue.value = value; instance?.emit('update:modelValue', value) }\n}\nconst attrs = useAttrs()\nconst config = useUIConfig()\nconst generatedId = useId()\nconst inputRef = ref<HTMLInputElement | null>(null)\nconst focused = ref(false)\nconst composing = ref(false)\nconst compositionValue = ref<string | undefined>()\nlet lastCompositionValue: string | undefined\nconst passwordVisible = ref(false)\nlet resetForm: HTMLFormElement | null = null\nlet resetActive = true\nconst resetTasks = new Set<ReturnType<typeof setTimeout>>()\n\nconst inputId = computed(() => props.id ?? generatedId)\nconst messageId = computed(() => `${inputId.value}-message`)\nconst resolvedDisabled = computed(() => resolveDisabled(props.disabled, config.value.disabled))\nconst resolvedSize = computed(() => resolveControlSize(props.size, config.value.size))\nconst rawValue = computed(() => {\n const boundValue = instance?.props.modelValue as string | number | undefined\n const value = hasModelValue() ? boundValue : localValue.value\n return value === undefined || value === null ? '' : String(value)\n})\nconst displayValue = computed(() =>\n composing.value ? compositionValue.value ?? rawValue.value : props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value,\n)\nconst canClear = computed(\n () => props.clearable && rawValue.value.length > 0 && !resolvedDisabled.value && !props.readonly,\n)\nconst canTogglePassword = computed(() => props.showPassword && props.type === 'password' && !resolvedDisabled.value)\nconst resolvedType = computed(() =>\n props.showPassword && props.type === 'password' && passwordVisible.value ? 'text' : props.type,\n)\nconst hasMessage = computed(() => Boolean(props.error || props.helperText || (props.showWordLimit && props.maxlength)))\nconst characterCount = computed(() => countTextCharacters(rawValue.value, props.countCharacters))\nconst hasInsideCount = computed(() => props.showWordLimit && props.maxlength && props.wordLimitPosition === 'inside')\nconst usesCanonicalSubmitValue = computed(() => Boolean(props.formatter && attrs.name))\nconst state = computed(\n () =>\n [\n resolvedDisabled.value && 'disabled',\n resolvedInvalid.value && 'invalid',\n props.readonly && 'readonly',\n focused.value && 'focused',\n ]\n .filter(Boolean)\n .join(' ') || 'default',\n)\n\nconst sizeClass = computed(() => ({\n 'h-[var(--control-height-sm)]': resolvedSize.value === 'sm',\n 'h-[var(--control-height-md)]': resolvedSize.value === 'default',\n 'h-[var(--control-height-lg)]': resolvedSize.value === 'lg',\n}))\nconst paddingClass = computed(() => ({\n 'px-[var(--control-padding-x-sm)]': resolvedSize.value === 'sm',\n 'px-[var(--control-padding-x-md)]': resolvedSize.value === 'default',\n 'px-[var(--control-padding-x-lg)]': resolvedSize.value === 'lg',\n}))\nconst wrapperClasses = computed(() =>\n cn(\n 'flex min-w-0 flex-1 items-center',\n sizeClass.value,\n\n ),\n)\nconst inputClasses = computed(() =>\n cn(\n 'h-full min-w-0 flex-1 border-0 bg-transparent py-0 outline-none',\n paddingClass.value,\n (slots.prefix || props.prefix !== undefined || props.prefixIcon) && 'pl-2',\n (slots.suffix || props.suffix !== undefined || props.suffixIcon || canClear.value || canTogglePassword.value || hasInsideCount.value) && 'pr-2',\n resolvedDisabled.value && 'cursor-not-allowed',\n props.class,\n ),\n)\nconst ariaDescribedBy = computed(() =>\n typeof attrs['aria-describedby'] === 'string'\n ? attrs['aria-describedby']\n : hasMessage.value\n ? messageId.value\n : undefined,\n)\ntype AriaInvalidValue = boolean | 'true' | 'false' | 'grammar' | 'spelling'\nconst ariaInvalid = computed<AriaInvalidValue | undefined>(() => {\n const value = attrs['aria-invalid']\n if (\n typeof value === 'boolean' ||\n value === 'true' ||\n value === 'false' ||\n value === 'grammar' ||\n value === 'spelling'\n )\n return value\n return props.error ? true : undefined\n})\nconst resolvedInvalid = computed(() => Boolean(props.error) || isAriaInvalid(ariaInvalid.value))\nconst inputAttrs = computed(() => {\n const nextAttrs = { ...attrs }\n delete nextAttrs.class\n delete nextAttrs.onKeydown\n delete nextAttrs['aria-describedby']\n delete nextAttrs['aria-invalid']\n if (usesCanonicalSubmitValue.value) delete nextAttrs.name\n return nextAttrs\n})\nconst slots = defineSlots<{\n default?: () => unknown\n prefix?: () => unknown\n suffix?: () => unknown\n prepend?: () => unknown\n append?: () => unknown\n clearIcon?: () => unknown\n passwordVisibleIcon?: () => unknown\n passwordHiddenIcon?: () => unknown\n}>()\n\n// 组合草稿/末次提交去重改写自 Arco React Input/useComposition.ts (MIT),\n// 同时核对 Arco Vue 2.58.0 input.tsx 的原生 composition 事务。\n// Copyright (c) 2021 Bytedance, Inc. and its affiliates.\n// https://github.com/arco-design/arco-design/blob/fbf2ec0a8cc28a5d20f1f82de6c2c4196ef66950/components/Input/useComposition.ts\n// https://github.com/arco-design/arco-design-vue/blob/5a707cc60c1130d8dae3aefb2e93616541952a66/packages/web-vue/components/input/input.tsx\n// 完整许可保留于 ui-web/src/control-behavior.ts;UG 保留原生 input,只延迟 modelValue。\nfunction handleInput(event: Event) {\n const target = event.target as HTMLInputElement\n if (isControlComposing(event as InputEvent, composing.value)) {\n compositionValue.value = target.value\n emit('input', event)\n return\n }\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n if (lastCompositionValue !== nextValue) commitValue(nextValue)\n lastCompositionValue = undefined\n emit('input', event)\n}\n\nfunction handleCompositionStart(event: CompositionEvent) {\n composing.value = true\n compositionValue.value = (event.target as HTMLInputElement).value\n lastCompositionValue = undefined\n emit('compositionstart', event)\n}\n\nfunction handleCompositionEnd(event: CompositionEvent) {\n composing.value = false\n compositionValue.value = undefined\n const target = event.target as HTMLInputElement\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n lastCompositionValue = nextValue\n if (nextValue !== rawValue.value) commitValue(nextValue)\n emit('compositionend', event)\n}\n\nfunction handleKeyDown(event: KeyboardEvent) {\n if (isControlComposing(event, composing.value)) return\n const handlers = attrs.onKeydown\n for (const handler of Array.isArray(handlers) ? handlers : [handlers]) {\n if (typeof handler === 'function') handler(event)\n }\n}\n\nfunction handleChange(event: Event) {\n emit('change', event)\n}\n\nfunction handleBlur(event: FocusEvent) {\n focused.value = false\n emit('blur', event)\n}\n\nfunction handleFocus(event: FocusEvent) {\n focused.value = true\n emit('focus', event)\n}\n\nfunction clear() {\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n commitValue('')\n emit('clear')\n inputRef.value?.focus()\n}\n\nfunction focus() {\n inputRef.value?.focus()\n}\n\nfunction blur() {\n inputRef.value?.blur()\n}\n\nfunction select() {\n inputRef.value?.select()\n}\n\nfunction handleFormReset(event: Event) {\n const owner = resetForm\n const task = setTimeout(() => {\n resetTasks.delete(task)\n if (!resetActive || event.defaultPrevented || inputRef.value?.form !== owner) return\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n passwordVisible.value = false\n if (!hasModelValue()) localValue.value = undefined\n inputRef.value.value = props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value\n }, 0)\n resetTasks.add(task)\n}\n\nfunction bindFormReset() {\n const nextForm = inputRef.value?.form ?? null\n if (resetForm === nextForm) return\n resetForm?.removeEventListener('reset', handleFormReset)\n resetForm = nextForm\n resetForm?.addEventListener('reset', handleFormReset)\n}\n\nonMounted(() => void nextTick(bindFormReset))\nwatch(\n () => attrs.form,\n () => void nextTick(bindFormReset),\n)\nonBeforeUnmount(() => {\n resetActive = false\n resetForm?.removeEventListener('reset', handleFormReset)\n for (const task of resetTasks) clearTimeout(task)\n})\n\ndefineExpose({ focus, blur, select, clear, el: inputRef })\n</script>\n\n<template>\n <div\n class=\"flex min-w-0 flex-col gap-1\"\n :data-size=\"resolvedSize\"\n :data-state=\"state\"\n data-ug=\"input\"\n data-ug-slot=\"root\"\n data-variant=\"default\"\n >\n <label\n v-if=\"label\"\n :for=\"inputId\"\n class=\"min-w-0 text-sm font-medium text-text-primary [overflow-wrap:anywhere]\"\n data-ug-slot=\"label\"\n >\n {{ label }}\n </label>\n\n <div class=\"flex w-full min-w-0\" data-ug-slot=\"group\">\n <span\n v-if=\"$slots.prepend\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-r-0 border-border-base bg-surface-2 text-text-secondary [border-end-start-radius:var(--radius-control)] [border-start-start-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"prepend\"\n >\n <slot name=\"prepend\" />\n </span>\n\n <div\n :class=\"wrapperClasses\"\n :data-has-append=\"$slots.append ? 'true' : undefined\"\n :data-has-prepend=\"$slots.prepend ? 'true' : undefined\"\n data-ug-slot=\"wrapper\"\n >\n <span\n v-if=\"$slots.prefix || prefix !== undefined || prefixIcon\"\n aria-hidden=\"true\"\n :class=\"cn('inline-flex shrink-0 items-center pr-0', paddingClass)\"\n data-ug-slot=\"prefix\"\n >\n <slot name=\"prefix\"><component :is=\"prefixIcon\" v-if=\"prefixIcon\" />{{ prefix }}</slot>\n </span>\n\n <input\n v-bind=\"inputAttrs\"\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-invalid=\"ariaInvalid\"\n :class=\"inputClasses\"\n data-ug-slot=\"control\"\n :disabled=\"resolvedDisabled\"\n :maxlength=\"countCharacters ? undefined : maxlength\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :type=\"resolvedType\"\n :value=\"displayValue\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @compositionend=\"handleCompositionEnd\"\n @compositionstart=\"handleCompositionStart\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @keydown=\"handleKeyDown\"\n />\n\n <span\n v-if=\"hasInsideCount\"\n aria-hidden=\"true\"\n class=\"shrink-0 whitespace-nowrap text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n <button\n v-if=\"canClear\"\n aria-label=\"清空输入\"\n :aria-controls=\"inputId\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"clear\"\n type=\"button\"\n @click=\"clear\"\n >\n <slot name=\"clearIcon\">\n <component :is=\"clearIcon || X\" aria-hidden=\"true\" :size=\"14\" />\n </slot>\n </button>\n <button\n v-if=\"canTogglePassword\"\n :aria-label=\"passwordVisible ? '隐藏密码' : '显示密码'\"\n :aria-controls=\"inputId\"\n :aria-pressed=\"passwordVisible\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"password-toggle\"\n type=\"button\"\n @click=\"passwordVisible = !passwordVisible\"\n >\n <slot v-if=\"passwordVisible\" name=\"passwordVisibleIcon\">\n <component :is=\"passwordVisibleIcon || EyeOff\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n <slot v-else name=\"passwordHiddenIcon\">\n <component :is=\"passwordHiddenIcon || Eye\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n </button>\n\n <span\n v-if=\"$slots.suffix || suffix !== undefined || suffixIcon\"\n :class=\"cn('inline-flex shrink-0 items-center pl-0', paddingClass)\"\n data-ug-slot=\"suffix\"\n >\n <slot name=\"suffix\"><component :is=\"suffixIcon\" v-if=\"suffixIcon\" />{{ suffix }}</slot>\n </span>\n </div>\n\n <span\n v-if=\"$slots.append\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-l-0 border-border-base bg-surface-2 text-text-secondary [border-end-end-radius:var(--radius-control)] [border-start-end-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"append\"\n >\n <slot name=\"append\" />\n </span>\n </div>\n\n <input\n v-if=\"usesCanonicalSubmitValue\"\n :disabled=\"resolvedDisabled\"\n :form=\"typeof attrs.form === 'string' ? attrs.form : undefined\"\n :name=\"typeof attrs.name === 'string' ? attrs.name : undefined\"\n type=\"hidden\"\n :value=\"rawValue\"\n />\n <span\n v-if=\"showWordLimit && maxlength && wordLimitPosition === 'outside'\"\n aria-hidden=\"true\"\n class=\"self-end text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n\n <p v-if=\"error\" :id=\"messageId\" class=\"min-w-0 text-xs text-danger [overflow-wrap:anywhere]\" data-ug-slot=\"message\">\n {{ error }}\n </p>\n <p\n v-else-if=\"helperText\"\n :id=\"messageId\"\n class=\"min-w-0 text-xs text-text-secondary [overflow-wrap:anywhere]\"\n data-ug-slot=\"message\"\n >\n {{ helperText }}\n </p>\n </div>\n</template>\n"],"mappings":"A,gwDA4CA,MAAM0D,EAAQiC,EA4BRG,EAAOC,EAUPR,GAAA,EAAatF,EAAAA,UAAwC0F,EAAA,cACrDM,GAAA,EAAW/F,EAAAA,sBACXiG,GAAA,EAAahG,EAAAA,OACbkG,cAAA,IAAsBC,OAAOC,UAAUC,eAAeC,KAAKR,GAAUS,MAAMhD,OAAS,CAAC,EAAG,eAAiB4C,OAAOC,UAAUC,eAAeC,KAAKR,GAAUS,MAAMhD,OAAS,CAAC,EAAG,eACjL,SAASiD,YAAYC,GACfP,gBAAiBd,EAAWqB,MAAQA,GACjCT,EAAWS,MAAQA,EAAOX,GAAUH,KAAK,oBAAqBc,GACvE,CACA,MAAMC,GAAA,EAAQzG,EAAAA,YACR2G,EAAS1G,EAAAA,cACT4G,GAAA,EAAc3G,EAAAA,SACd6G,GAAA,EAAWhH,EAAAA,KAA6B,MACxCiH,GAAA,EAAUjH,EAAAA,MAAI,GACdkH,GAAA,EAAYlH,EAAAA,MAAI,GAChBmH,GAAA,EAAmBnH,EAAAA,OACzB,IAAIoH,EACJ,MAAMC,GAAA,EAAkBrH,EAAAA,MAAI,GAC5B,IAAIsH,EAAoC,KACpCC,GAAc,EAClB,MAAMC,EAAa,IAAIC,IAEjBC,GAAA,EAAUtH,EAAAA,UAAAA,IAAemD,EAAMM,IAAMiD,GACrCc,GAAA,EAAYxH,EAAAA,UAAAA,IAAe,GAAGsH,EAAQjB,iBACtCoB,GAAA,EAAmBzH,EAAAA,UAAAA,IAAeC,EAAAA,gBAAgBkD,EAAMQ,SAAU6C,EAAOH,MAAM1C,WAC/EgE,GAAA,EAAe3H,EAAAA,UAAAA,IAAeE,EAAAA,mBAAmBiD,EAAMW,KAA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from"./button-CnI0brH7.js";import{computed as r,createBlock as n,createCommentVNode as i,createElementBlock as s,createElementVNode as d,createTextVNode as u,defineComponent as v,getCurrentInstance as c,mergeModels as p,mergeProps as f,nextTick as m,normalizeClass as x,onBeforeUnmount as h,onMounted as y,openBlock as b,ref as g,renderSlot as w,resolveDynamicComponent as k,toDisplayString as I,unref as C,useAttrs as $,useId as V,useModel as B,useSlots as F,watch as L}from"vue";import{Eye as P,EyeOff as z,X as R}from"@lucide/vue";import{countTextCharacters as j,limitTextByCount as T}from"@ug666/ui-core";import{isControlComposing as E}from"@ug666/ui-web";var K=["data-size","data-state"],O=["for"],S={class:"flex w-full min-w-0","data-ug-slot":"group"},W=["data-has-append","data-has-prepend"],A=["id","aria-describedby","aria-invalid","disabled","maxlength","placeholder","readonly","type","value"],H={key:1,"aria-hidden":"true",class:"shrink-0 whitespace-nowrap text-xs tabular-nums text-text-tertiary","data-ug-slot":"count"},_=["aria-controls"],D=["aria-label","aria-controls","aria-pressed"],M=["disabled","form","name","value"],U={key:2,"aria-hidden":"true",class:"self-end text-xs tabular-nums text-text-tertiary","data-ug-slot":"count"},q=["id"],G=["id"],J=/*@__PURE__*/v({name:"UInput",inheritAttrs:!1,__name:"input",props:/*@__PURE__*/p({label:{default:void 0},error:{default:void 0},helperText:{default:void 0},id:{default:void 0},type:{default:"text"},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:!1},size:{default:void 0},placeholder:{default:void 0},prefix:{default:void 0},suffix:{default:void 0},prefixIcon:{default:void 0},suffixIcon:{default:void 0},clearIcon:{default:void 0},passwordVisibleIcon:{default:void 0},passwordHiddenIcon:{default:void 0},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},wordLimitPosition:{default:"inside"},countCharacters:{default:void 0},maxlength:{default:void 0},formatter:{type:Function,default:void 0},parser:{type:Function,default:void 0},class:{default:void 0}},{modelValue:{},modelModifiers:{}}),emits:/*@__PURE__*/p(["blur","focus","input","change","clear","compositionend","compositionstart"],["update:modelValue"]),setup(v,{expose:p,emit:J}){const N=v,Q=J,X=B(v,"modelValue"),Y=c(),Z=g(),hasModelValue=()=>Object.prototype.hasOwnProperty.call(Y?.vnode.props??{},"modelValue")||Object.prototype.hasOwnProperty.call(Y?.vnode.props??{},"model-value");function commitValue(e){hasModelValue()?X.value=e:(Z.value=e,Y?.emit("update:modelValue",e))}const ee=$(),ae=a(),te=V(),le=g(null),oe=g(!1),re=g(!1),ne=g();let ie;const se=g(!1);let de=null,ue=!0;const ve=/* @__PURE__ */new Set,ce=r(()=>N.id??te),pe=r(()=>`${ce.value}-message`),fe=r(()=>o(N.disabled,ae.value.disabled)),me=r(()=>l(N.size,ae.value.size)),xe=r(()=>{const e=Y?.props.modelValue,a=hasModelValue()?e:Z.value;return null==a?"":String(a)}),he=r(()=>re.value?ne.value??xe.value:N.formatter&&""!==xe.value?N.formatter(xe.value):xe.value),ye=r(()=>N.clearable&&xe.value.length>0&&!fe.value&&!N.readonly),be=r(()=>N.showPassword&&"password"===N.type&&!fe.value),ge=r(()=>N.showPassword&&"password"===N.type&&se.value?"text":N.type),we=r(()=>Boolean(N.error||N.helperText||N.showWordLimit&&N.maxlength)),ke=r(()=>j(xe.value,N.countCharacters)),Ie=r(()=>N.showWordLimit&&N.maxlength&&"inside"===N.wordLimitPosition),Ce=r(()=>Boolean(N.formatter&&ee.name)),$e=r(()=>[fe.value&&"disabled",Re.value&&"invalid",N.readonly&&"readonly",oe.value&&"focused"].filter(Boolean).join(" ")||"default"),Ve=r(()=>({"h-[var(--control-height-sm)]":"sm"===me.value,"h-[var(--control-height-md)]":"default"===me.value,"h-[var(--control-height-lg)]":"lg"===me.value})),Be=r(()=>({"px-[var(--control-padding-x-sm)]":"sm"===me.value,"px-[var(--control-padding-x-md)]":"default"===me.value,"px-[var(--control-padding-x-lg)]":"lg"===me.value})),Fe=r(()=>t("flex min-w-0 flex-1 items-center",Ve.value)),Le=r(()=>t("h-full min-w-0 flex-1 border-0 bg-transparent py-0 outline-none",Be.value,(Te.prefix||void 0!==N.prefix||N.prefixIcon)&&"pl-2",(Te.suffix||void 0!==N.suffix||N.suffixIcon||ye.value||be.value||Ie.value)&&"pr-2",fe.value&&"cursor-not-allowed",N.class)),Pe=r(()=>"string"==typeof ee["aria-describedby"]?ee["aria-describedby"]:we.value?pe.value:void 0),ze=r(()=>{const e=ee["aria-invalid"];return"boolean"==typeof e||"true"===e||"false"===e||"grammar"===e||"spelling"===e?e:!!N.error||void 0}),Re=r(()=>Boolean(N.error)||e(ze.value)),je=r(()=>{const e={...ee};return delete e.class,delete e.onKeydown,delete e["aria-describedby"],delete e["aria-invalid"],Ce.value&&delete e.name,e}),Te=F();function handleInput(e){const a=e.target;if(E(e,re.value))return ne.value=a.value,void Q("input",e);const t=N.parser?N.parser(a.value):a.value,l=T(t,N.maxlength,N.countCharacters);l!==a.value&&(a.value=l),ie!==l&&commitValue(l),ie=void 0,Q("input",e)}function handleCompositionStart(e){re.value=!0,ne.value=e.target.value,ie=void 0,Q("compositionstart",e)}function handleCompositionEnd(e){re.value=!1,ne.value=void 0;const a=e.target,t=N.parser?N.parser(a.value):a.value,l=T(t,N.maxlength,N.countCharacters);l!==a.value&&(a.value=l),ie=l,l!==xe.value&&commitValue(l),Q("compositionend",e)}function handleKeyDown(e){if(E(e,re.value))return;const a=ee.onKeydown;for(const t of Array.isArray(a)?a:[a])"function"==typeof t&&t(e)}function handleChange(e){Q("change",e)}function handleBlur(e){oe.value=!1,Q("blur",e)}function handleFocus(e){oe.value=!0,Q("focus",e)}function clear(){re.value=!1,ne.value=void 0,ie=void 0,commitValue(""),Q("clear"),le.value?.focus()}function handleFormReset(e){const a=de,t=setTimeout(()=>{ve.delete(t),ue&&!e.defaultPrevented&&le.value?.form===a&&(re.value=!1,ne.value=void 0,ie=void 0,se.value=!1,hasModelValue()||(Z.value=void 0),le.value.value=N.formatter&&""!==xe.value?N.formatter(xe.value):xe.value)},0);ve.add(t)}function bindFormReset(){const e=le.value?.form??null;de!==e&&(de?.removeEventListener("reset",handleFormReset),de=e,de?.addEventListener("reset",handleFormReset))}return y(()=>{m(bindFormReset)}),L(()=>ee.form,()=>{m(bindFormReset)}),h(()=>{ue=!1,de?.removeEventListener("reset",handleFormReset);for(const e of ve)clearTimeout(e)}),p({focus:function focus(){le.value?.focus()},blur:function blur(){le.value?.blur()},select:function select(){le.value?.select()},clear:clear,el:le}),(e,a)=>(b(),s("div",{class:"flex min-w-0 flex-col gap-1","data-size":me.value,"data-state":$e.value,"data-ug":"input","data-ug-slot":"root","data-variant":"default"},[v.label?(b(),s("label",{key:0,for:ce.value,class:"min-w-0 text-sm font-medium text-text-primary [overflow-wrap:anywhere]","data-ug-slot":"label"},I(v.label),9,O)):i("",!0),d("div",S,[e.$slots.prepend?(b(),s("span",{key:0,class:x(C(t)("inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-r-0 border-border-base bg-surface-2 text-text-secondary [border-end-start-radius:var(--radius-control)] [border-start-start-radius:var(--radius-control)]",Ve.value,Be.value)),"data-ug-slot":"prepend"},[w(e.$slots,"prepend")],2)):i("",!0),d("div",{class:x(Fe.value),"data-has-append":e.$slots.append?"true":void 0,"data-has-prepend":e.$slots.prepend?"true":void 0,"data-ug-slot":"wrapper"},[e.$slots.prefix||void 0!==v.prefix||v.prefixIcon?(b(),s("span",{key:0,"aria-hidden":"true",class:x(C(t)("inline-flex shrink-0 items-center pr-0",Be.value)),"data-ug-slot":"prefix"},[w(e.$slots,"prefix",{},()=>[v.prefixIcon?(b(),n(k(v.prefixIcon),{key:0})):i("",!0),u(I(v.prefix),1)])],2)):i("",!0),d("input",f(je.value,{id:ce.value,ref_key:"inputRef",ref:le,"aria-describedby":Pe.value,"aria-invalid":ze.value,class:Le.value,"data-ug-slot":"control",disabled:fe.value,maxlength:v.countCharacters?void 0:v.maxlength,placeholder:v.placeholder,readonly:v.readonly,type:ge.value,value:he.value,onBlur:handleBlur,onChange:handleChange,onCompositionend:handleCompositionEnd,onCompositionstart:handleCompositionStart,onFocus:handleFocus,onInput:handleInput,onKeydown:handleKeyDown}),null,16,A),Ie.value?(b(),s("span",H,I(ke.value)+"/"+I(v.maxlength),1)):i("",!0),ye.value?(b(),s("button",{key:2,"aria-label":"清空输入","aria-controls":ce.value,class:"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary","data-ug-slot":"clear",type:"button",onClick:clear},[w(e.$slots,"clearIcon",{},()=>[(b(),n(k(v.clearIcon||C(R)),{"aria-hidden":"true",size:14}))])],8,_)):i("",!0),be.value?(b(),s("button",{key:3,"aria-label":se.value?"隐藏密码":"显示密码","aria-controls":ce.value,"aria-pressed":se.value,class:"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary","data-ug-slot":"password-toggle",type:"button",onClick:a[0]||(a[0]=e=>se.value=!se.value)},[se.value?w(e.$slots,"passwordVisibleIcon",{},()=>[(b(),n(k(v.passwordVisibleIcon||C(z)),{"aria-hidden":"true",size:15}))],void 0,0):w(e.$slots,"passwordHiddenIcon",{},()=>[(b(),n(k(v.passwordHiddenIcon||C(P)),{"aria-hidden":"true",size:15}))],void 0,1)],8,D)):i("",!0),e.$slots.suffix||void 0!==v.suffix||v.suffixIcon?(b(),s("span",{key:4,class:x(C(t)("inline-flex shrink-0 items-center pl-0",Be.value)),"data-ug-slot":"suffix"},[w(e.$slots,"suffix",{},()=>[v.suffixIcon?(b(),n(k(v.suffixIcon),{key:0})):i("",!0),u(I(v.suffix),1)])],2)):i("",!0)],10,W),e.$slots.append?(b(),s("span",{key:1,class:x(C(t)("inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-l-0 border-border-base bg-surface-2 text-text-secondary [border-end-end-radius:var(--radius-control)] [border-start-end-radius:var(--radius-control)]",Ve.value,Be.value)),"data-ug-slot":"append"},[w(e.$slots,"append")],2)):i("",!0)]),Ce.value?(b(),s("input",{key:1,disabled:fe.value,form:"string"==typeof C(ee).form?C(ee).form:void 0,name:"string"==typeof C(ee).name?C(ee).name:void 0,type:"hidden",value:xe.value},null,8,M)):i("",!0),v.showWordLimit&&v.maxlength&&"outside"===v.wordLimitPosition?(b(),s("span",U,I(ke.value)+"/"+I(v.maxlength),1)):i("",!0),v.error?(b(),s("p",{key:3,id:pe.value,class:"min-w-0 text-xs text-danger [overflow-wrap:anywhere]","data-ug-slot":"message"},I(v.error),9,q)):v.helperText?(b(),s("p",{key:4,id:pe.value,class:"min-w-0 text-xs text-text-secondary [overflow-wrap:anywhere]","data-ug-slot":"message"},I(v.helperText),9,G)):i("",!0)],8,K))}});export{J as t};
2
+ //# sourceMappingURL=input-DERQW5r8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-DERQW5r8.js","names":["$slots","_useModel","_useSlots","_openBlock","_createElementBlock","_toDisplayString","_createCommentVNode","_createElementVNode","_normalizeClass","_unref","_renderSlot","_createBlock","_resolveDynamicComponent","_createTextVNode","_mergeProps","_sfc_main","isAriaInvalid","useUIConfig","cn","resolveControlSize","resolveDisabled","computed","createBlock","createCommentVNode","createElementBlock","createElementVNode","createTextVNode","defineComponent","getCurrentInstance","mergeModels","mergeProps","nextTick","normalizeClass","onBeforeUnmount","onMounted","openBlock","ref","renderSlot","resolveDynamicComponent","toDisplayString","unref","useAttrs","useId","useModel","useSlots","watch","Eye","EyeOff","X","countTextCharacters","limitTextByCount","isControlComposing","_hoisted_1","_hoisted_2","_hoisted_3","class","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","input_default","name","inheritAttrs","__name","props","label","default","error","helperText","id","type","disabled","Boolean","readonly","size","placeholder","prefix","suffix","prefixIcon","suffixIcon","clearIcon","passwordVisibleIcon","passwordHiddenIcon","clearable","showPassword","showWordLimit","wordLimitPosition","countCharacters","maxlength","formatter","Function","parser","modelValue","modelModifiers","emits","setup","__props","expose","__expose","emit","__emit","instance","localValue","hasModelValue","Object","prototype","hasOwnProperty","call","vnode","commitValue","value","attrs","config","generatedId","inputRef","focused","composing","compositionValue","lastCompositionValue","passwordVisible","resetForm","resetActive","resetTasks","Set","inputId","messageId","resolvedDisabled","resolvedSize","rawValue","boundValue","String","displayValue","canClear","length","canTogglePassword","resolvedType","hasMessage","characterCount","hasInsideCount","usesCanonicalSubmitValue","state","resolvedInvalid","filter","join","sizeClass","paddingClass","wrapperClasses","inputClasses","slots","ariaDescribedBy","ariaInvalid","inputAttrs","nextAttrs","onKeydown","handleInput","event","target","parsedValue","nextValue","handleCompositionStart","handleCompositionEnd","handleKeyDown","handlers","handler","Array","isArray","handleChange","handleBlur","handleFocus","clear","focus","handleFormReset","owner","task","setTimeout","delete","defaultPrevented","form","add","bindFormReset","nextForm","removeEventListener","addEventListener","clearTimeout","blur","select","el","_ctx","_cache","for","$slots","prepend","append","ref_key","onBlur","onChange","onCompositionend","onCompositionstart","onFocus","onInput","onClick","$event"],"sources":["../src/components/input.vue","../src/components/input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { TextCountFunction } from '@ug666/ui-core'\nimport type { Component } from 'vue'\nimport type { ControlSize } from './config-provider.vue'\n\nexport interface InputProps {\n label?: string\n error?: string\n helperText?: string\n id?: string\n type?: string\n disabled?: boolean\n readonly?: boolean\n size?: ControlSize\n placeholder?: string\n prefix?: string | number\n suffix?: string | number\n prefixIcon?: Component\n suffixIcon?: Component\n clearIcon?: Component\n passwordVisibleIcon?: Component\n passwordHiddenIcon?: Component\n clearable?: boolean\n showPassword?: boolean\n showWordLimit?: boolean\n wordLimitPosition?: 'inside' | 'outside'\n countCharacters?: TextCountFunction\n maxlength?: number\n formatter?: (value: string) => string\n parser?: (value: string) => string\n class?: string\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, useId, watch } from 'vue'\nimport { Eye, EyeOff, X } from '@lucide/vue'\nimport { countTextCharacters, limitTextByCount } from '@ug666/ui-core'\nimport { isControlComposing } from '@ug666/ui-web'\nimport { cn } from '../internal/cn'\nimport { isAriaInvalid, resolveControlSize, resolveDisabled, useUIConfig } from './config-provider.vue'\n\ndefineOptions({ name: 'UInput', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<InputProps>(), {\n label: undefined,\n error: undefined,\n helperText: undefined,\n id: undefined,\n type: 'text',\n disabled: undefined,\n readonly: false,\n size: undefined,\n placeholder: undefined,\n prefix: undefined,\n suffix: undefined,\n prefixIcon: undefined,\n suffixIcon: undefined,\n clearIcon: undefined,\n passwordVisibleIcon: undefined,\n passwordHiddenIcon: undefined,\n clearable: false,\n showPassword: false,\n showWordLimit: false,\n wordLimitPosition: 'inside',\n countCharacters: undefined,\n maxlength: undefined,\n formatter: undefined,\n parser: undefined,\n class: undefined,\n})\n\nconst emit = defineEmits<{\n blur: [event: FocusEvent]\n focus: [event: FocusEvent]\n input: [event: Event]\n change: [event: Event]\n clear: []\n compositionend: [event: CompositionEvent]\n compositionstart: [event: CompositionEvent]\n}>()\n\nconst modelValue = defineModel<string | number | undefined>()\nconst instance = getCurrentInstance()\nconst localValue = ref<string | number | undefined>()\nconst hasModelValue = () => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'modelValue') || Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'model-value')\nfunction commitValue(value: string) {\n if (hasModelValue()) modelValue.value = value\n else { localValue.value = value; instance?.emit('update:modelValue', value) }\n}\nconst attrs = useAttrs()\nconst config = useUIConfig()\nconst generatedId = useId()\nconst inputRef = ref<HTMLInputElement | null>(null)\nconst focused = ref(false)\nconst composing = ref(false)\nconst compositionValue = ref<string | undefined>()\nlet lastCompositionValue: string | undefined\nconst passwordVisible = ref(false)\nlet resetForm: HTMLFormElement | null = null\nlet resetActive = true\nconst resetTasks = new Set<ReturnType<typeof setTimeout>>()\n\nconst inputId = computed(() => props.id ?? generatedId)\nconst messageId = computed(() => `${inputId.value}-message`)\nconst resolvedDisabled = computed(() => resolveDisabled(props.disabled, config.value.disabled))\nconst resolvedSize = computed(() => resolveControlSize(props.size, config.value.size))\nconst rawValue = computed(() => {\n const boundValue = instance?.props.modelValue as string | number | undefined\n const value = hasModelValue() ? boundValue : localValue.value\n return value === undefined || value === null ? '' : String(value)\n})\nconst displayValue = computed(() =>\n composing.value ? compositionValue.value ?? rawValue.value : props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value,\n)\nconst canClear = computed(\n () => props.clearable && rawValue.value.length > 0 && !resolvedDisabled.value && !props.readonly,\n)\nconst canTogglePassword = computed(() => props.showPassword && props.type === 'password' && !resolvedDisabled.value)\nconst resolvedType = computed(() =>\n props.showPassword && props.type === 'password' && passwordVisible.value ? 'text' : props.type,\n)\nconst hasMessage = computed(() => Boolean(props.error || props.helperText || (props.showWordLimit && props.maxlength)))\nconst characterCount = computed(() => countTextCharacters(rawValue.value, props.countCharacters))\nconst hasInsideCount = computed(() => props.showWordLimit && props.maxlength && props.wordLimitPosition === 'inside')\nconst usesCanonicalSubmitValue = computed(() => Boolean(props.formatter && attrs.name))\nconst state = computed(\n () =>\n [\n resolvedDisabled.value && 'disabled',\n resolvedInvalid.value && 'invalid',\n props.readonly && 'readonly',\n focused.value && 'focused',\n ]\n .filter(Boolean)\n .join(' ') || 'default',\n)\n\nconst sizeClass = computed(() => ({\n 'h-[var(--control-height-sm)]': resolvedSize.value === 'sm',\n 'h-[var(--control-height-md)]': resolvedSize.value === 'default',\n 'h-[var(--control-height-lg)]': resolvedSize.value === 'lg',\n}))\nconst paddingClass = computed(() => ({\n 'px-[var(--control-padding-x-sm)]': resolvedSize.value === 'sm',\n 'px-[var(--control-padding-x-md)]': resolvedSize.value === 'default',\n 'px-[var(--control-padding-x-lg)]': resolvedSize.value === 'lg',\n}))\nconst wrapperClasses = computed(() =>\n cn(\n 'flex min-w-0 flex-1 items-center',\n sizeClass.value,\n\n ),\n)\nconst inputClasses = computed(() =>\n cn(\n 'h-full min-w-0 flex-1 border-0 bg-transparent py-0 outline-none',\n paddingClass.value,\n (slots.prefix || props.prefix !== undefined || props.prefixIcon) && 'pl-2',\n (slots.suffix || props.suffix !== undefined || props.suffixIcon || canClear.value || canTogglePassword.value || hasInsideCount.value) && 'pr-2',\n resolvedDisabled.value && 'cursor-not-allowed',\n props.class,\n ),\n)\nconst ariaDescribedBy = computed(() =>\n typeof attrs['aria-describedby'] === 'string'\n ? attrs['aria-describedby']\n : hasMessage.value\n ? messageId.value\n : undefined,\n)\ntype AriaInvalidValue = boolean | 'true' | 'false' | 'grammar' | 'spelling'\nconst ariaInvalid = computed<AriaInvalidValue | undefined>(() => {\n const value = attrs['aria-invalid']\n if (\n typeof value === 'boolean' ||\n value === 'true' ||\n value === 'false' ||\n value === 'grammar' ||\n value === 'spelling'\n )\n return value\n return props.error ? true : undefined\n})\nconst resolvedInvalid = computed(() => Boolean(props.error) || isAriaInvalid(ariaInvalid.value))\nconst inputAttrs = computed(() => {\n const nextAttrs = { ...attrs }\n delete nextAttrs.class\n delete nextAttrs.onKeydown\n delete nextAttrs['aria-describedby']\n delete nextAttrs['aria-invalid']\n if (usesCanonicalSubmitValue.value) delete nextAttrs.name\n return nextAttrs\n})\nconst slots = defineSlots<{\n default?: () => unknown\n prefix?: () => unknown\n suffix?: () => unknown\n prepend?: () => unknown\n append?: () => unknown\n clearIcon?: () => unknown\n passwordVisibleIcon?: () => unknown\n passwordHiddenIcon?: () => unknown\n}>()\n\n// 组合草稿/末次提交去重改写自 Arco React Input/useComposition.ts (MIT),\n// 同时核对 Arco Vue 2.58.0 input.tsx 的原生 composition 事务。\n// Copyright (c) 2021 Bytedance, Inc. and its affiliates.\n// https://github.com/arco-design/arco-design/blob/fbf2ec0a8cc28a5d20f1f82de6c2c4196ef66950/components/Input/useComposition.ts\n// https://github.com/arco-design/arco-design-vue/blob/5a707cc60c1130d8dae3aefb2e93616541952a66/packages/web-vue/components/input/input.tsx\n// 完整许可保留于 ui-web/src/control-behavior.ts;UG 保留原生 input,只延迟 modelValue。\nfunction handleInput(event: Event) {\n const target = event.target as HTMLInputElement\n if (isControlComposing(event as InputEvent, composing.value)) {\n compositionValue.value = target.value\n emit('input', event)\n return\n }\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n if (lastCompositionValue !== nextValue) commitValue(nextValue)\n lastCompositionValue = undefined\n emit('input', event)\n}\n\nfunction handleCompositionStart(event: CompositionEvent) {\n composing.value = true\n compositionValue.value = (event.target as HTMLInputElement).value\n lastCompositionValue = undefined\n emit('compositionstart', event)\n}\n\nfunction handleCompositionEnd(event: CompositionEvent) {\n composing.value = false\n compositionValue.value = undefined\n const target = event.target as HTMLInputElement\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n lastCompositionValue = nextValue\n if (nextValue !== rawValue.value) commitValue(nextValue)\n emit('compositionend', event)\n}\n\nfunction handleKeyDown(event: KeyboardEvent) {\n if (isControlComposing(event, composing.value)) return\n const handlers = attrs.onKeydown\n for (const handler of Array.isArray(handlers) ? handlers : [handlers]) {\n if (typeof handler === 'function') handler(event)\n }\n}\n\nfunction handleChange(event: Event) {\n emit('change', event)\n}\n\nfunction handleBlur(event: FocusEvent) {\n focused.value = false\n emit('blur', event)\n}\n\nfunction handleFocus(event: FocusEvent) {\n focused.value = true\n emit('focus', event)\n}\n\nfunction clear() {\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n commitValue('')\n emit('clear')\n inputRef.value?.focus()\n}\n\nfunction focus() {\n inputRef.value?.focus()\n}\n\nfunction blur() {\n inputRef.value?.blur()\n}\n\nfunction select() {\n inputRef.value?.select()\n}\n\nfunction handleFormReset(event: Event) {\n const owner = resetForm\n const task = setTimeout(() => {\n resetTasks.delete(task)\n if (!resetActive || event.defaultPrevented || inputRef.value?.form !== owner) return\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n passwordVisible.value = false\n if (!hasModelValue()) localValue.value = undefined\n inputRef.value.value = props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value\n }, 0)\n resetTasks.add(task)\n}\n\nfunction bindFormReset() {\n const nextForm = inputRef.value?.form ?? null\n if (resetForm === nextForm) return\n resetForm?.removeEventListener('reset', handleFormReset)\n resetForm = nextForm\n resetForm?.addEventListener('reset', handleFormReset)\n}\n\nonMounted(() => void nextTick(bindFormReset))\nwatch(\n () => attrs.form,\n () => void nextTick(bindFormReset),\n)\nonBeforeUnmount(() => {\n resetActive = false\n resetForm?.removeEventListener('reset', handleFormReset)\n for (const task of resetTasks) clearTimeout(task)\n})\n\ndefineExpose({ focus, blur, select, clear, el: inputRef })\n</script>\n\n<template>\n <div\n class=\"flex min-w-0 flex-col gap-1\"\n :data-size=\"resolvedSize\"\n :data-state=\"state\"\n data-ug=\"input\"\n data-ug-slot=\"root\"\n data-variant=\"default\"\n >\n <label\n v-if=\"label\"\n :for=\"inputId\"\n class=\"min-w-0 text-sm font-medium text-text-primary [overflow-wrap:anywhere]\"\n data-ug-slot=\"label\"\n >\n {{ label }}\n </label>\n\n <div class=\"flex w-full min-w-0\" data-ug-slot=\"group\">\n <span\n v-if=\"$slots.prepend\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-r-0 border-border-base bg-surface-2 text-text-secondary [border-end-start-radius:var(--radius-control)] [border-start-start-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"prepend\"\n >\n <slot name=\"prepend\" />\n </span>\n\n <div\n :class=\"wrapperClasses\"\n :data-has-append=\"$slots.append ? 'true' : undefined\"\n :data-has-prepend=\"$slots.prepend ? 'true' : undefined\"\n data-ug-slot=\"wrapper\"\n >\n <span\n v-if=\"$slots.prefix || prefix !== undefined || prefixIcon\"\n aria-hidden=\"true\"\n :class=\"cn('inline-flex shrink-0 items-center pr-0', paddingClass)\"\n data-ug-slot=\"prefix\"\n >\n <slot name=\"prefix\"><component :is=\"prefixIcon\" v-if=\"prefixIcon\" />{{ prefix }}</slot>\n </span>\n\n <input\n v-bind=\"inputAttrs\"\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-invalid=\"ariaInvalid\"\n :class=\"inputClasses\"\n data-ug-slot=\"control\"\n :disabled=\"resolvedDisabled\"\n :maxlength=\"countCharacters ? undefined : maxlength\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :type=\"resolvedType\"\n :value=\"displayValue\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @compositionend=\"handleCompositionEnd\"\n @compositionstart=\"handleCompositionStart\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @keydown=\"handleKeyDown\"\n />\n\n <span\n v-if=\"hasInsideCount\"\n aria-hidden=\"true\"\n class=\"shrink-0 whitespace-nowrap text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n <button\n v-if=\"canClear\"\n aria-label=\"清空输入\"\n :aria-controls=\"inputId\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"clear\"\n type=\"button\"\n @click=\"clear\"\n >\n <slot name=\"clearIcon\">\n <component :is=\"clearIcon || X\" aria-hidden=\"true\" :size=\"14\" />\n </slot>\n </button>\n <button\n v-if=\"canTogglePassword\"\n :aria-label=\"passwordVisible ? '隐藏密码' : '显示密码'\"\n :aria-controls=\"inputId\"\n :aria-pressed=\"passwordVisible\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"password-toggle\"\n type=\"button\"\n @click=\"passwordVisible = !passwordVisible\"\n >\n <slot v-if=\"passwordVisible\" name=\"passwordVisibleIcon\">\n <component :is=\"passwordVisibleIcon || EyeOff\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n <slot v-else name=\"passwordHiddenIcon\">\n <component :is=\"passwordHiddenIcon || Eye\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n </button>\n\n <span\n v-if=\"$slots.suffix || suffix !== undefined || suffixIcon\"\n :class=\"cn('inline-flex shrink-0 items-center pl-0', paddingClass)\"\n data-ug-slot=\"suffix\"\n >\n <slot name=\"suffix\"><component :is=\"suffixIcon\" v-if=\"suffixIcon\" />{{ suffix }}</slot>\n </span>\n </div>\n\n <span\n v-if=\"$slots.append\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-l-0 border-border-base bg-surface-2 text-text-secondary [border-end-end-radius:var(--radius-control)] [border-start-end-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"append\"\n >\n <slot name=\"append\" />\n </span>\n </div>\n\n <input\n v-if=\"usesCanonicalSubmitValue\"\n :disabled=\"resolvedDisabled\"\n :form=\"typeof attrs.form === 'string' ? attrs.form : undefined\"\n :name=\"typeof attrs.name === 'string' ? attrs.name : undefined\"\n type=\"hidden\"\n :value=\"rawValue\"\n />\n <span\n v-if=\"showWordLimit && maxlength && wordLimitPosition === 'outside'\"\n aria-hidden=\"true\"\n class=\"self-end text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n\n <p v-if=\"error\" :id=\"messageId\" class=\"min-w-0 text-xs text-danger [overflow-wrap:anywhere]\" data-ug-slot=\"message\">\n {{ error }}\n </p>\n <p\n v-else-if=\"helperText\"\n :id=\"messageId\"\n class=\"min-w-0 text-xs text-text-secondary [overflow-wrap:anywhere]\"\n data-ug-slot=\"message\"\n >\n {{ helperText }}\n </p>\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { TextCountFunction } from '@ug666/ui-core'\nimport type { Component } from 'vue'\nimport type { ControlSize } from './config-provider.vue'\n\nexport interface InputProps {\n label?: string\n error?: string\n helperText?: string\n id?: string\n type?: string\n disabled?: boolean\n readonly?: boolean\n size?: ControlSize\n placeholder?: string\n prefix?: string | number\n suffix?: string | number\n prefixIcon?: Component\n suffixIcon?: Component\n clearIcon?: Component\n passwordVisibleIcon?: Component\n passwordHiddenIcon?: Component\n clearable?: boolean\n showPassword?: boolean\n showWordLimit?: boolean\n wordLimitPosition?: 'inside' | 'outside'\n countCharacters?: TextCountFunction\n maxlength?: number\n formatter?: (value: string) => string\n parser?: (value: string) => string\n class?: string\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, useId, watch } from 'vue'\nimport { Eye, EyeOff, X } from '@lucide/vue'\nimport { countTextCharacters, limitTextByCount } from '@ug666/ui-core'\nimport { isControlComposing } from '@ug666/ui-web'\nimport { cn } from '../internal/cn'\nimport { isAriaInvalid, resolveControlSize, resolveDisabled, useUIConfig } from './config-provider.vue'\n\ndefineOptions({ name: 'UInput', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<InputProps>(), {\n label: undefined,\n error: undefined,\n helperText: undefined,\n id: undefined,\n type: 'text',\n disabled: undefined,\n readonly: false,\n size: undefined,\n placeholder: undefined,\n prefix: undefined,\n suffix: undefined,\n prefixIcon: undefined,\n suffixIcon: undefined,\n clearIcon: undefined,\n passwordVisibleIcon: undefined,\n passwordHiddenIcon: undefined,\n clearable: false,\n showPassword: false,\n showWordLimit: false,\n wordLimitPosition: 'inside',\n countCharacters: undefined,\n maxlength: undefined,\n formatter: undefined,\n parser: undefined,\n class: undefined,\n})\n\nconst emit = defineEmits<{\n blur: [event: FocusEvent]\n focus: [event: FocusEvent]\n input: [event: Event]\n change: [event: Event]\n clear: []\n compositionend: [event: CompositionEvent]\n compositionstart: [event: CompositionEvent]\n}>()\n\nconst modelValue = defineModel<string | number | undefined>()\nconst instance = getCurrentInstance()\nconst localValue = ref<string | number | undefined>()\nconst hasModelValue = () => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'modelValue') || Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'model-value')\nfunction commitValue(value: string) {\n if (hasModelValue()) modelValue.value = value\n else { localValue.value = value; instance?.emit('update:modelValue', value) }\n}\nconst attrs = useAttrs()\nconst config = useUIConfig()\nconst generatedId = useId()\nconst inputRef = ref<HTMLInputElement | null>(null)\nconst focused = ref(false)\nconst composing = ref(false)\nconst compositionValue = ref<string | undefined>()\nlet lastCompositionValue: string | undefined\nconst passwordVisible = ref(false)\nlet resetForm: HTMLFormElement | null = null\nlet resetActive = true\nconst resetTasks = new Set<ReturnType<typeof setTimeout>>()\n\nconst inputId = computed(() => props.id ?? generatedId)\nconst messageId = computed(() => `${inputId.value}-message`)\nconst resolvedDisabled = computed(() => resolveDisabled(props.disabled, config.value.disabled))\nconst resolvedSize = computed(() => resolveControlSize(props.size, config.value.size))\nconst rawValue = computed(() => {\n const boundValue = instance?.props.modelValue as string | number | undefined\n const value = hasModelValue() ? boundValue : localValue.value\n return value === undefined || value === null ? '' : String(value)\n})\nconst displayValue = computed(() =>\n composing.value ? compositionValue.value ?? rawValue.value : props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value,\n)\nconst canClear = computed(\n () => props.clearable && rawValue.value.length > 0 && !resolvedDisabled.value && !props.readonly,\n)\nconst canTogglePassword = computed(() => props.showPassword && props.type === 'password' && !resolvedDisabled.value)\nconst resolvedType = computed(() =>\n props.showPassword && props.type === 'password' && passwordVisible.value ? 'text' : props.type,\n)\nconst hasMessage = computed(() => Boolean(props.error || props.helperText || (props.showWordLimit && props.maxlength)))\nconst characterCount = computed(() => countTextCharacters(rawValue.value, props.countCharacters))\nconst hasInsideCount = computed(() => props.showWordLimit && props.maxlength && props.wordLimitPosition === 'inside')\nconst usesCanonicalSubmitValue = computed(() => Boolean(props.formatter && attrs.name))\nconst state = computed(\n () =>\n [\n resolvedDisabled.value && 'disabled',\n resolvedInvalid.value && 'invalid',\n props.readonly && 'readonly',\n focused.value && 'focused',\n ]\n .filter(Boolean)\n .join(' ') || 'default',\n)\n\nconst sizeClass = computed(() => ({\n 'h-[var(--control-height-sm)]': resolvedSize.value === 'sm',\n 'h-[var(--control-height-md)]': resolvedSize.value === 'default',\n 'h-[var(--control-height-lg)]': resolvedSize.value === 'lg',\n}))\nconst paddingClass = computed(() => ({\n 'px-[var(--control-padding-x-sm)]': resolvedSize.value === 'sm',\n 'px-[var(--control-padding-x-md)]': resolvedSize.value === 'default',\n 'px-[var(--control-padding-x-lg)]': resolvedSize.value === 'lg',\n}))\nconst wrapperClasses = computed(() =>\n cn(\n 'flex min-w-0 flex-1 items-center',\n sizeClass.value,\n\n ),\n)\nconst inputClasses = computed(() =>\n cn(\n 'h-full min-w-0 flex-1 border-0 bg-transparent py-0 outline-none',\n paddingClass.value,\n (slots.prefix || props.prefix !== undefined || props.prefixIcon) && 'pl-2',\n (slots.suffix || props.suffix !== undefined || props.suffixIcon || canClear.value || canTogglePassword.value || hasInsideCount.value) && 'pr-2',\n resolvedDisabled.value && 'cursor-not-allowed',\n props.class,\n ),\n)\nconst ariaDescribedBy = computed(() =>\n typeof attrs['aria-describedby'] === 'string'\n ? attrs['aria-describedby']\n : hasMessage.value\n ? messageId.value\n : undefined,\n)\ntype AriaInvalidValue = boolean | 'true' | 'false' | 'grammar' | 'spelling'\nconst ariaInvalid = computed<AriaInvalidValue | undefined>(() => {\n const value = attrs['aria-invalid']\n if (\n typeof value === 'boolean' ||\n value === 'true' ||\n value === 'false' ||\n value === 'grammar' ||\n value === 'spelling'\n )\n return value\n return props.error ? true : undefined\n})\nconst resolvedInvalid = computed(() => Boolean(props.error) || isAriaInvalid(ariaInvalid.value))\nconst inputAttrs = computed(() => {\n const nextAttrs = { ...attrs }\n delete nextAttrs.class\n delete nextAttrs.onKeydown\n delete nextAttrs['aria-describedby']\n delete nextAttrs['aria-invalid']\n if (usesCanonicalSubmitValue.value) delete nextAttrs.name\n return nextAttrs\n})\nconst slots = defineSlots<{\n default?: () => unknown\n prefix?: () => unknown\n suffix?: () => unknown\n prepend?: () => unknown\n append?: () => unknown\n clearIcon?: () => unknown\n passwordVisibleIcon?: () => unknown\n passwordHiddenIcon?: () => unknown\n}>()\n\n// 组合草稿/末次提交去重改写自 Arco React Input/useComposition.ts (MIT),\n// 同时核对 Arco Vue 2.58.0 input.tsx 的原生 composition 事务。\n// Copyright (c) 2021 Bytedance, Inc. and its affiliates.\n// https://github.com/arco-design/arco-design/blob/fbf2ec0a8cc28a5d20f1f82de6c2c4196ef66950/components/Input/useComposition.ts\n// https://github.com/arco-design/arco-design-vue/blob/5a707cc60c1130d8dae3aefb2e93616541952a66/packages/web-vue/components/input/input.tsx\n// 完整许可保留于 ui-web/src/control-behavior.ts;UG 保留原生 input,只延迟 modelValue。\nfunction handleInput(event: Event) {\n const target = event.target as HTMLInputElement\n if (isControlComposing(event as InputEvent, composing.value)) {\n compositionValue.value = target.value\n emit('input', event)\n return\n }\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n if (lastCompositionValue !== nextValue) commitValue(nextValue)\n lastCompositionValue = undefined\n emit('input', event)\n}\n\nfunction handleCompositionStart(event: CompositionEvent) {\n composing.value = true\n compositionValue.value = (event.target as HTMLInputElement).value\n lastCompositionValue = undefined\n emit('compositionstart', event)\n}\n\nfunction handleCompositionEnd(event: CompositionEvent) {\n composing.value = false\n compositionValue.value = undefined\n const target = event.target as HTMLInputElement\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n lastCompositionValue = nextValue\n if (nextValue !== rawValue.value) commitValue(nextValue)\n emit('compositionend', event)\n}\n\nfunction handleKeyDown(event: KeyboardEvent) {\n if (isControlComposing(event, composing.value)) return\n const handlers = attrs.onKeydown\n for (const handler of Array.isArray(handlers) ? handlers : [handlers]) {\n if (typeof handler === 'function') handler(event)\n }\n}\n\nfunction handleChange(event: Event) {\n emit('change', event)\n}\n\nfunction handleBlur(event: FocusEvent) {\n focused.value = false\n emit('blur', event)\n}\n\nfunction handleFocus(event: FocusEvent) {\n focused.value = true\n emit('focus', event)\n}\n\nfunction clear() {\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n commitValue('')\n emit('clear')\n inputRef.value?.focus()\n}\n\nfunction focus() {\n inputRef.value?.focus()\n}\n\nfunction blur() {\n inputRef.value?.blur()\n}\n\nfunction select() {\n inputRef.value?.select()\n}\n\nfunction handleFormReset(event: Event) {\n const owner = resetForm\n const task = setTimeout(() => {\n resetTasks.delete(task)\n if (!resetActive || event.defaultPrevented || inputRef.value?.form !== owner) return\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n passwordVisible.value = false\n if (!hasModelValue()) localValue.value = undefined\n inputRef.value.value = props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value\n }, 0)\n resetTasks.add(task)\n}\n\nfunction bindFormReset() {\n const nextForm = inputRef.value?.form ?? null\n if (resetForm === nextForm) return\n resetForm?.removeEventListener('reset', handleFormReset)\n resetForm = nextForm\n resetForm?.addEventListener('reset', handleFormReset)\n}\n\nonMounted(() => void nextTick(bindFormReset))\nwatch(\n () => attrs.form,\n () => void nextTick(bindFormReset),\n)\nonBeforeUnmount(() => {\n resetActive = false\n resetForm?.removeEventListener('reset', handleFormReset)\n for (const task of resetTasks) clearTimeout(task)\n})\n\ndefineExpose({ focus, blur, select, clear, el: inputRef })\n</script>\n\n<template>\n <div\n class=\"flex min-w-0 flex-col gap-1\"\n :data-size=\"resolvedSize\"\n :data-state=\"state\"\n data-ug=\"input\"\n data-ug-slot=\"root\"\n data-variant=\"default\"\n >\n <label\n v-if=\"label\"\n :for=\"inputId\"\n class=\"min-w-0 text-sm font-medium text-text-primary [overflow-wrap:anywhere]\"\n data-ug-slot=\"label\"\n >\n {{ label }}\n </label>\n\n <div class=\"flex w-full min-w-0\" data-ug-slot=\"group\">\n <span\n v-if=\"$slots.prepend\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-r-0 border-border-base bg-surface-2 text-text-secondary [border-end-start-radius:var(--radius-control)] [border-start-start-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"prepend\"\n >\n <slot name=\"prepend\" />\n </span>\n\n <div\n :class=\"wrapperClasses\"\n :data-has-append=\"$slots.append ? 'true' : undefined\"\n :data-has-prepend=\"$slots.prepend ? 'true' : undefined\"\n data-ug-slot=\"wrapper\"\n >\n <span\n v-if=\"$slots.prefix || prefix !== undefined || prefixIcon\"\n aria-hidden=\"true\"\n :class=\"cn('inline-flex shrink-0 items-center pr-0', paddingClass)\"\n data-ug-slot=\"prefix\"\n >\n <slot name=\"prefix\"><component :is=\"prefixIcon\" v-if=\"prefixIcon\" />{{ prefix }}</slot>\n </span>\n\n <input\n v-bind=\"inputAttrs\"\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-invalid=\"ariaInvalid\"\n :class=\"inputClasses\"\n data-ug-slot=\"control\"\n :disabled=\"resolvedDisabled\"\n :maxlength=\"countCharacters ? undefined : maxlength\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :type=\"resolvedType\"\n :value=\"displayValue\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @compositionend=\"handleCompositionEnd\"\n @compositionstart=\"handleCompositionStart\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @keydown=\"handleKeyDown\"\n />\n\n <span\n v-if=\"hasInsideCount\"\n aria-hidden=\"true\"\n class=\"shrink-0 whitespace-nowrap text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n <button\n v-if=\"canClear\"\n aria-label=\"清空输入\"\n :aria-controls=\"inputId\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"clear\"\n type=\"button\"\n @click=\"clear\"\n >\n <slot name=\"clearIcon\">\n <component :is=\"clearIcon || X\" aria-hidden=\"true\" :size=\"14\" />\n </slot>\n </button>\n <button\n v-if=\"canTogglePassword\"\n :aria-label=\"passwordVisible ? '隐藏密码' : '显示密码'\"\n :aria-controls=\"inputId\"\n :aria-pressed=\"passwordVisible\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"password-toggle\"\n type=\"button\"\n @click=\"passwordVisible = !passwordVisible\"\n >\n <slot v-if=\"passwordVisible\" name=\"passwordVisibleIcon\">\n <component :is=\"passwordVisibleIcon || EyeOff\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n <slot v-else name=\"passwordHiddenIcon\">\n <component :is=\"passwordHiddenIcon || Eye\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n </button>\n\n <span\n v-if=\"$slots.suffix || suffix !== undefined || suffixIcon\"\n :class=\"cn('inline-flex shrink-0 items-center pl-0', paddingClass)\"\n data-ug-slot=\"suffix\"\n >\n <slot name=\"suffix\"><component :is=\"suffixIcon\" v-if=\"suffixIcon\" />{{ suffix }}</slot>\n </span>\n </div>\n\n <span\n v-if=\"$slots.append\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-l-0 border-border-base bg-surface-2 text-text-secondary [border-end-end-radius:var(--radius-control)] [border-start-end-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"append\"\n >\n <slot name=\"append\" />\n </span>\n </div>\n\n <input\n v-if=\"usesCanonicalSubmitValue\"\n :disabled=\"resolvedDisabled\"\n :form=\"typeof attrs.form === 'string' ? attrs.form : undefined\"\n :name=\"typeof attrs.name === 'string' ? attrs.name : undefined\"\n type=\"hidden\"\n :value=\"rawValue\"\n />\n <span\n v-if=\"showWordLimit && maxlength && wordLimitPosition === 'outside'\"\n aria-hidden=\"true\"\n class=\"self-end text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n\n <p v-if=\"error\" :id=\"messageId\" class=\"min-w-0 text-xs text-danger [overflow-wrap:anywhere]\" data-ug-slot=\"message\">\n {{ error }}\n </p>\n <p\n v-else-if=\"helperText\"\n :id=\"messageId\"\n class=\"min-w-0 text-xs text-text-secondary [overflow-wrap:anywhere]\"\n data-ug-slot=\"message\"\n >\n {{ helperText }}\n </p>\n </div>\n</template>\n"],"mappings":"Y,uxEA4CA,MAAMsE,EAAQgC,EA4BRG,EAAOC,EAUPR,EAAajG,EAAwCqG,EAAA,cACrDK,EAAW/E,IACXgF,EAAaxE,IACbyE,cAAA,IAAsBC,OAAOC,UAAUC,eAAeC,KAAKN,GAAUO,MAAM5C,OAAS,CAAC,EAAG,eAAiBwC,OAAOC,UAAUC,eAAeC,KAAKN,GAAUO,MAAM5C,OAAS,CAAC,EAAG,eACjL,SAAS6C,YAAYC,GACfP,gBAAiBX,EAAWkB,MAAQA,GACjCR,EAAWQ,MAAQA,EAAOT,GAAUF,KAAK,oBAAqBW,GACvE,CACA,MAAMC,GAAQ5E,IACR6E,GAASrG,IACTsG,GAAc7E,IACd8E,GAAWpF,EAA6B,MACxCqF,GAAUrF,GAAI,GACdsF,GAAYtF,GAAI,GAChBuF,GAAmBvF,IACzB,IAAIwF,GACJ,MAAMC,GAAk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A2C8I,GAAAnC,QACrD,eAAa,U,CAEb1G,EAAuFuL,EAAAG,OAAA,SAAA,CAAA,EAAA,IAAA,CAAjC9F,EAAAjB,YAAlClF,IAAAQ,EAAgDC,EAAhC0F,EAAAjB,YAAU,CAAA1B,IAAA,K,SAAyB9C,EAAAR,EAAAiG,EAAAnB,QAAM,M,oBAKzEnF,EAAAA,OAAOsM,QADfnM,IAAAC,EAYO,OAAA,C,MAVJmD,MAAK/C,EAAaC,EAAAS,EAAAT,C,0QAAuS6I,GAAAlC,MAAuBmC,GAAAnC,QAOjV,eAAa,U,CAEb1G,EAAsBuL,EAAAG,OAAA,W,eAKlBnD,GAAA7B,OADRjH,IAAAC,EAOE,QAAA,C,MALCyE,SAAUuD,GAAAhB,MACVmE,KAAuB,iBAAV9K,EAAA4G,IAAMkE,KAAoB9K,EAAA4G,IAAMkE,UAAO,EACpDpH,KAAuB,iBAAV1D,EAAA4G,IAAMlD,KAAoB1D,EAAA4G,IAAMlD,UAAO,EACrDS,KAAK,SACJwC,MAAOkB,GAAAlB,O,oBAGFd,EAAAX,eAAiBW,EAAAR,WAA8B,YAAjBQ,EAAAV,mBADtCzF,IAAAC,EAOO,OAPP2D,EAOO1D,EADF0I,GAAA3B,OAAiB,IAAC/G,EAAGiG,EAAAR,WAAS,I,SAG1BQ,EAAA7B,OAATtE,IAAAC,EAEI,IAAA,C,MAFauE,GAAIwD,GAAAf,MAAW7D,MAAM,uDAAuD,eAAa,WACrGlD,EAAAiG,EAAA7B,OAAK,EAAAT,IAGGsC,EAAA5B,YADbvE,IAAAC,EAOI,IAAA,C,MALDuE,GAAIwD,GAAAf,MACL7D,MAAM,+DACN,eAAa,WAEVlD,EAAAiG,EAAA5B,YAAU,EAAAT,I"}
@@ -0,0 +1,10 @@
1
+ import { SidebarActiveStyle, SidebarDensity, SidebarItem } from '../components/sidebar.vue';
2
+ type __VLS_Props = {
3
+ items: SidebarItem[];
4
+ activeStyle: SidebarActiveStyle;
5
+ density: SidebarDensity;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ //# sourceMappingURL=admin-horizontal-navigation.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-horizontal-navigation.vue.d.ts","sourceRoot":"","sources":["../../src/internal/admin-horizontal-navigation.vue"],"names":[],"mappings":"AAKA;AA0OA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAYhG,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;CACxB,CAAC;AAmcF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,35 @@
1
+ import { TableColumnLayout, TableHeaderCell } from '@ug666/ui-core';
2
+ import { DataTableColumn } from '../patterns/data-table.vue';
3
+ type __VLS_Props = {
4
+ headers: TableHeaderCell<DataTableColumn>[][];
5
+ layout: TableColumnLayout[];
6
+ widths: number[];
7
+ offset: number;
8
+ selection: boolean;
9
+ actions: boolean;
10
+ sort?: string;
11
+ order: 'asc' | 'desc';
12
+ reorderable?: boolean;
13
+ };
14
+ declare var __VLS_20: {}, __VLS_89: {};
15
+ type __VLS_Slots = {} & {
16
+ selection?: (props: typeof __VLS_20) => any;
17
+ } & {
18
+ actions?: (props: typeof __VLS_89) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ move: (source: string, target: string, after?: boolean | undefined) => any;
22
+ sortChange: (id: string, order: "desc" | "asc") => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onMove?: ((source: string, target: string, after?: boolean | undefined) => any) | undefined;
25
+ onSortChange?: ((id: string, order: "desc" | "asc") => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
35
+ //# sourceMappingURL=data-table-header.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-header.vue.d.ts","sourceRoot":"","sources":["../../src/internal/data-table-header.vue"],"names":[],"mappings":"AACA;AAgEA,OAAO,EAA4C,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACvH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,eAAe,CAAC,eAAe,CAAC,EAAE,EAAE,CAAA;IAC7C,MAAM,EAAE,iBAAiB,EAAE,CAAA;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,GAAG,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA2XF,QAAA,IAAI,QAAQ,IAAY,EAAE,QAAQ,IAAY,CAAC;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC/C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { DatePickerMode } from '@ug666/ui-core';
2
+ type __VLS_Props = {
3
+ value: string;
4
+ mode: DatePickerMode;
5
+ select: (value: string) => void;
6
+ close: () => void;
7
+ locale: string;
8
+ min?: string;
9
+ max?: string;
10
+ disabledDate?: (date: Date) => boolean;
11
+ };
12
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ //# sourceMappingURL=date-mode-panel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-mode-panel.vue.d.ts","sourceRoot":"","sources":["../../src/internal/date-mode-panel.vue"],"names":[],"mappings":"AACA;AAiCA,OAAO,EAAgG,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAIlJ,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,cAAc,CAAC;IAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAA;CAAE,CAAC;AAgPnM,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,76 @@
1
+ import { ControlSize } from '../components/config-provider.vue';
2
+ type __VLS_Props = {
3
+ modelValue?: string;
4
+ defaultValue?: string;
5
+ open?: boolean;
6
+ defaultOpen?: boolean;
7
+ id?: string;
8
+ name?: string;
9
+ form?: string;
10
+ label?: string;
11
+ placeholder?: string;
12
+ disabled?: boolean;
13
+ readonly?: boolean;
14
+ required?: boolean;
15
+ clearable?: boolean;
16
+ clearLabel?: string;
17
+ error?: string;
18
+ helperText?: string;
19
+ size?: ControlSize;
20
+ class?: string;
21
+ kind: 'date-picker' | 'time-picker' | 'date-time-picker';
22
+ panelLabel: string;
23
+ validate: (value: string) => string | undefined;
24
+ closeOnSelect?: boolean;
25
+ nativeValues?: (value: string) => readonly string[];
26
+ clearValue?: () => void;
27
+ };
28
+ declare function close(): void;
29
+ declare function select(next: string): void;
30
+ declare var __VLS_68: {
31
+ value: string;
32
+ open: boolean;
33
+ select: typeof select;
34
+ close: typeof close;
35
+ };
36
+ type __VLS_Slots = {} & {
37
+ default?: (props: typeof __VLS_68) => any;
38
+ };
39
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
40
+ el: import('vue').ComputedRef<HTMLInputElement | null | undefined>;
41
+ focus: () => void | undefined;
42
+ blur: () => void | undefined;
43
+ isClearTarget: (target: EventTarget | null) => boolean;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ blur: (event: FocusEvent) => any;
46
+ clear: () => any;
47
+ "update:modelValue": (value: string) => any;
48
+ "update:open": (value: boolean) => any;
49
+ openChange: (value: boolean) => any;
50
+ valueCommit: (value: string) => any;
51
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
52
+ onBlur?: ((event: FocusEvent) => any) | undefined;
53
+ onClear?: (() => any) | undefined;
54
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
56
+ onOpenChange?: ((value: boolean) => any) | undefined;
57
+ onValueCommit?: ((value: string) => any) | undefined;
58
+ }>, {
59
+ size: ControlSize;
60
+ disabled: boolean;
61
+ open: boolean;
62
+ clearable: boolean;
63
+ defaultValue: string;
64
+ defaultOpen: boolean;
65
+ clearLabel: string;
66
+ closeOnSelect: boolean;
67
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
68
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
69
+ declare const _default: typeof __VLS_export;
70
+ export default _default;
71
+ type __VLS_WithSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
76
+ //# sourceMappingURL=date-time-control.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-control.vue.d.ts","sourceRoot":"","sources":["../../src/internal/date-time-control.vue"],"names":[],"mappings":"AACA;AAoKA,OAAO,EAAoD,KAAK,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAItH,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,O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
+ min?: string;
4
+ max?: string;
5
+ disabledTime?: (value: string) => boolean;
6
+ disabledDate?: (date: Date) => boolean;
7
+ value: string;
8
+ open: boolean;
9
+ locale: string;
10
+ select: (value: string) => void;
11
+ close: () => void;
12
+ };
13
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ //# sourceMappingURL=date-time-picker-panel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-picker-panel.vue.d.ts","sourceRoot":"","sources":["../../src/internal/date-time-picker-panel.vue"],"names":[],"mappings":"AACA;AAyDA,KAAK,WAAW,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAkJ9P,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,70 @@
1
+ import { DateTimeRangeValue, DateTimeValueConstraints } from '@ug666/ui-core';
2
+ import { ControlSize } from '../components/config-provider.vue';
3
+ type __VLS_Props = {
4
+ rangeValue?: DateTimeRangeValue;
5
+ defaultRangeValue?: DateTimeRangeValue;
6
+ startLabel?: string;
7
+ endLabel?: string;
8
+ startName?: string;
9
+ endName?: string;
10
+ startInputId?: string;
11
+ endInputId?: string;
12
+ label?: string;
13
+ open?: boolean;
14
+ defaultOpen?: boolean;
15
+ disabled?: boolean;
16
+ readonly?: boolean;
17
+ required?: boolean;
18
+ size?: ControlSize;
19
+ form?: string;
20
+ id?: string;
21
+ error?: string;
22
+ helperText?: string;
23
+ clearable?: boolean;
24
+ policy: DateTimeValueConstraints;
25
+ };
26
+ declare function close(): void;
27
+ declare function apply(next: DateTimeRangeValue): void;
28
+ declare var __VLS_14: {
29
+ value: readonly [string, string];
30
+ open: boolean;
31
+ select: typeof apply;
32
+ close: typeof close;
33
+ };
34
+ type __VLS_Slots = {} & {
35
+ default?: (props: typeof __VLS_14) => any;
36
+ };
37
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
38
+ el: import('vue').ComputedRef<HTMLInputElement | null | undefined>;
39
+ focus: () => void | undefined;
40
+ blur: () => void | undefined;
41
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ clear: () => any;
43
+ "update:open": (value: boolean) => any;
44
+ openChange: (value: boolean) => any;
45
+ "update:rangeValue": (value: DateTimeRangeValue) => any;
46
+ rangeValueCommit: (value: DateTimeRangeValue) => any;
47
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
48
+ onClear?: (() => any) | undefined;
49
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
50
+ onOpenChange?: ((value: boolean) => any) | undefined;
51
+ "onUpdate:rangeValue"?: ((value: DateTimeRangeValue) => any) | undefined;
52
+ onRangeValueCommit?: ((value: DateTimeRangeValue) => any) | undefined;
53
+ }>, {
54
+ size: ControlSize;
55
+ disabled: boolean;
56
+ open: boolean;
57
+ clearable: boolean;
58
+ startLabel: string;
59
+ endLabel: string;
60
+ defaultRangeValue: DateTimeRangeValue;
61
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
62
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
63
+ declare const _default: typeof __VLS_export;
64
+ export default _default;
65
+ type __VLS_WithSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
70
+ //# sourceMappingURL=date-time-range-control.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-range-control.vue.d.ts","sourceRoot":"","sources":["../../src/internal/date-time-range-control.vue"],"names":[],"mappings":"AACA;AA0CA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACnH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAKpE,KAAK,WAAW,GAAG;IAAE,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,wBAAwB,CAAA;CAAE,CAAC;AAiBxd,iBAAS,KAAK,SAAkG;AAIhH,iBAAS,KAAK,CAAC,IAAI,EAAE,kBAAkB,QAAmJ;AAsN1L,QAAA,IAAI,QAAQ;;;;;CAAY,CAAC;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { DateTimeRangeValue, DateTimeValueConstraints } from '@ug666/ui-core';
2
+ type __VLS_Props = {
3
+ value: DateTimeRangeValue;
4
+ open: boolean;
5
+ select: (value: DateTimeRangeValue) => void;
6
+ close: () => void;
7
+ locale: string;
8
+ policy: DateTimeValueConstraints;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ //# sourceMappingURL=date-time-range-panel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-range-panel.vue.d.ts","sourceRoot":"","sources":["../../src/internal/date-time-range-panel.vue"],"names":[],"mappings":"AACA;AAoBA,OAAO,EAA8B,KAAK,kBAAkB,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAInH,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,kBAAkB,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,wBAAwB,CAAA;CAAE,CAAC;AAoJlL,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,14 @@
1
+ import { NotificationItem } from '../components/notification.vue';
2
+ type __VLS_Props = {
3
+ item: NotificationItem;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ close: (id: string) => any;
7
+ action: (id: string) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onClose?: ((id: string) => any) | undefined;
10
+ onAction?: ((id: string) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ //# sourceMappingURL=notification-item.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-item.vue.d.ts","sourceRoot":"","sources":["../../src/internal/notification-item.vue"],"names":[],"mappings":"AACA;AAkEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAGtE,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAAC;AA8L9C,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,28 @@
1
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<{
3
+ items: readonly T[];
4
+ size?: number;
5
+ label: string;
6
+ }> & (typeof globalThis extends {
7
+ __VLS_PROPS_FALLBACK: infer P;
8
+ } ? P : {});
9
+ expose: (exposed: {}) => void;
10
+ attrs: any;
11
+ slots: {
12
+ default?: (props: {
13
+ item: T;
14
+ index: number;
15
+ }) => any;
16
+ };
17
+ emit: {};
18
+ }>) => import('vue').VNode & {
19
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
20
+ };
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
24
+ [K in keyof T]: T[K];
25
+ } : {
26
+ [K in keyof T as K]: T[K];
27
+ }) & {};
28
+ //# sourceMappingURL=option-window.vue.d.ts.map