sunyard-szyy-ui 0.7.1 → 0.7.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 (600) hide show
  1. package/README.md +10 -3
  2. package/dist/hooks/index.d.cts +18 -0
  3. package/dist/index.full.js +1 -1
  4. package/dist/index.full.mjs +1 -1
  5. package/dist/utils/index.cjs +36 -0
  6. package/dist/utils/index.d.cts +224 -0
  7. package/dist/utils/index.d.ts +153 -120
  8. package/dist/utils/index.js +35 -0
  9. package/es/alert/index.d.ts +2 -0
  10. package/es/alert/index.d.ts.map +1 -0
  11. package/es/alert/style/index.d.ts +3 -0
  12. package/es/alert/style/index.d.ts.map +1 -0
  13. package/es/autocomplete/index.d.ts +2 -0
  14. package/es/autocomplete/index.d.ts.map +1 -0
  15. package/es/autocomplete/style/index.d.ts +3 -0
  16. package/es/autocomplete/style/index.d.ts.map +1 -0
  17. package/es/backtop/index.d.ts +2 -0
  18. package/es/backtop/index.d.ts.map +1 -0
  19. package/es/backtop/style/index.d.ts +3 -0
  20. package/es/backtop/style/index.d.ts.map +1 -0
  21. package/es/button/index.d.ts +2 -0
  22. package/es/button/index.d.ts.map +1 -0
  23. package/es/button/style/index.d.ts +3 -0
  24. package/es/button/style/index.d.ts.map +1 -0
  25. package/es/card/index.d.ts +2 -0
  26. package/es/card/index.d.ts.map +1 -0
  27. package/es/card/style/index.d.ts +3 -0
  28. package/es/card/style/index.d.ts.map +1 -0
  29. package/es/cascader/index.d.ts +2 -0
  30. package/es/cascader/index.d.ts.map +1 -0
  31. package/es/cascader/style/index.d.ts +3 -0
  32. package/es/cascader/style/index.d.ts.map +1 -0
  33. package/es/checkbox/index.d.ts +3 -0
  34. package/es/checkbox/index.d.ts.map +1 -0
  35. package/es/checkbox/style/index.d.ts +3 -0
  36. package/es/checkbox/style/index.d.ts.map +1 -0
  37. package/es/collapse/index.d.ts +2 -0
  38. package/es/collapse/index.d.ts.map +1 -0
  39. package/es/collapse/style/index.d.ts +4 -0
  40. package/es/collapse/style/index.d.ts.map +1 -0
  41. package/es/color-picker/index.d.ts +2 -0
  42. package/es/color-picker/index.d.ts.map +1 -0
  43. package/es/color-picker/style/index.d.ts +3 -0
  44. package/es/color-picker/style/index.d.ts.map +1 -0
  45. package/es/components/alert/index.mjs +1 -0
  46. package/es/components/alert/style/index.mjs +1 -0
  47. package/es/components/autocomplete/index.mjs +1 -0
  48. package/es/components/autocomplete/style/index.mjs +1 -0
  49. package/es/components/backtop/index.mjs +1 -0
  50. package/es/components/backtop/style/index.mjs +1 -0
  51. package/es/components/button/index.mjs +1 -0
  52. package/es/components/button/style/index.mjs +1 -0
  53. package/es/components/card/index.mjs +1 -0
  54. package/es/components/card/style/index.mjs +1 -0
  55. package/es/components/cascader/index.mjs +1 -0
  56. package/es/components/cascader/style/index.mjs +1 -0
  57. package/es/components/checkbox/index.mjs +1 -0
  58. package/es/components/checkbox/style/index.mjs +1 -0
  59. package/es/components/collapse/index.mjs +1 -0
  60. package/es/components/collapse/style/index.mjs +1 -0
  61. package/es/components/color-picker/index.mjs +1 -0
  62. package/es/components/color-picker/style/index.mjs +1 -0
  63. package/es/components/config-provider/index.mjs +1 -0
  64. package/es/components/config-provider/style/index.mjs +1 -0
  65. package/es/components/container/index.mjs +1 -0
  66. package/es/components/container/style/index.mjs +1 -0
  67. package/es/components/date-picker/index.mjs +1 -0
  68. package/es/components/date-picker/style/index.mjs +1 -0
  69. package/es/components/date-time-picker/index.mjs +1 -0
  70. package/es/components/date-time-picker/style/index.mjs +1 -0
  71. package/es/components/descriptions/index.mjs +1 -0
  72. package/es/components/descriptions/style/index.mjs +1 -0
  73. package/es/components/dialog/index.mjs +1 -0
  74. package/es/components/dialog/style/index.mjs +1 -0
  75. package/es/components/divider/index.mjs +1 -0
  76. package/es/components/divider/style/index.mjs +1 -0
  77. package/es/components/drawer/index.mjs +1 -0
  78. package/es/components/drawer/style/index.mjs +1 -0
  79. package/es/components/dropdown/index.mjs +1 -0
  80. package/es/components/dropdown/style/index.mjs +1 -0
  81. package/es/components/empty/index.mjs +1 -0
  82. package/es/components/empty/style/index.mjs +1 -0
  83. package/es/components/form/index.mjs +1 -0
  84. package/es/components/form/style/index.mjs +1 -0
  85. package/es/components/icon/index.mjs +1 -0
  86. package/es/components/icon/style/index.mjs +1 -0
  87. package/es/components/image/index.mjs +1 -0
  88. package/es/components/image/style/index.mjs +1 -0
  89. package/es/components/input/index.mjs +1 -0
  90. package/es/components/input/style/index.mjs +1 -0
  91. package/es/components/input-number/index.mjs +1 -0
  92. package/es/components/input-number/style/index.mjs +1 -0
  93. package/es/components/layout/index.mjs +1 -0
  94. package/es/components/layout/style/index.mjs +1 -0
  95. package/es/components/link/index.mjs +1 -0
  96. package/es/components/link/style/index.mjs +1 -0
  97. package/es/components/loading/index.mjs +1 -0
  98. package/es/components/loading/style/index.mjs +1 -0
  99. package/es/components/menu/index.mjs +1 -0
  100. package/es/components/menu/style/index.mjs +1 -0
  101. package/es/components/message/index.mjs +1 -0
  102. package/es/components/message/style/index.mjs +1 -0
  103. package/es/components/message-box/index.mjs +1 -0
  104. package/es/components/message-box/style/index.mjs +1 -0
  105. package/es/components/notification/index.mjs +1 -0
  106. package/es/components/notification/style/index.mjs +1 -0
  107. package/es/components/pagination/index.mjs +1 -0
  108. package/es/components/pagination/style/index.mjs +1 -0
  109. package/es/components/popconfirm/index.mjs +1 -0
  110. package/es/components/popconfirm/style/index.mjs +1 -0
  111. package/es/components/popover/index.mjs +1 -0
  112. package/es/components/popover/style/index.mjs +1 -0
  113. package/es/components/pro-form/index.mjs +1 -0
  114. package/es/components/pro-form/style/index.mjs +1 -0
  115. package/es/components/pro-table/index.mjs +1 -0
  116. package/es/components/pro-table/style/index.mjs +1 -0
  117. package/es/components/progress/index.mjs +1 -0
  118. package/es/components/progress/style/index.mjs +1 -0
  119. package/es/components/radio/index.mjs +1 -0
  120. package/es/components/radio/style/index.mjs +1 -0
  121. package/es/components/scrollbar/index.mjs +1 -0
  122. package/es/components/scrollbar/style/index.mjs +1 -0
  123. package/es/components/search-bar/index.mjs +1 -0
  124. package/es/components/search-bar/style/index.mjs +1 -0
  125. package/es/components/select/index.mjs +1 -0
  126. package/es/components/select/style/index.mjs +1 -0
  127. package/es/components/select-v2/index.mjs +1 -0
  128. package/es/components/select-v2/style/index.mjs +1 -0
  129. package/es/components/skeleton/index.mjs +1 -0
  130. package/es/components/skeleton/style/index.mjs +1 -0
  131. package/es/components/slider/index.mjs +1 -0
  132. package/es/components/slider/style/index.mjs +1 -0
  133. package/es/components/space/index.mjs +1 -0
  134. package/es/components/space/style/index.mjs +1 -0
  135. package/es/components/steps/index.mjs +1 -0
  136. package/es/components/steps/style/index.mjs +1 -0
  137. package/es/components/switch/index.mjs +1 -0
  138. package/es/components/switch/style/index.mjs +1 -0
  139. package/es/components/table/index.mjs +1 -0
  140. package/es/components/table/style/index.mjs +1 -0
  141. package/es/components/tabs/index.mjs +1 -0
  142. package/es/components/tabs/style/index.mjs +1 -0
  143. package/es/components/tag/index.mjs +1 -0
  144. package/es/components/tag/style/index.mjs +1 -0
  145. package/es/components/text/index.mjs +1 -0
  146. package/es/components/text/style/index.mjs +1 -0
  147. package/es/components/time-picker/index.mjs +1 -0
  148. package/es/components/time-picker/style/index.mjs +1 -0
  149. package/es/components/time-select/index.mjs +1 -0
  150. package/es/components/time-select/style/index.mjs +1 -0
  151. package/es/components/tooltip/index.mjs +1 -0
  152. package/es/components/tooltip/style/index.mjs +1 -0
  153. package/es/components/tree/index.mjs +1 -0
  154. package/es/components/tree/style/index.mjs +1 -0
  155. package/es/components/tree-select/index.mjs +1 -0
  156. package/es/components/tree-select/style/index.mjs +1 -0
  157. package/es/components/upload/index.mjs +1 -0
  158. package/es/components/upload/style/index.mjs +1 -0
  159. package/es/config-provider/index.d.ts +2 -0
  160. package/es/config-provider/index.d.ts.map +1 -0
  161. package/es/config-provider/style/index.d.ts +2 -0
  162. package/es/config-provider/style/index.d.ts.map +1 -0
  163. package/es/container/index.d.ts +2 -0
  164. package/es/container/index.d.ts.map +1 -0
  165. package/es/container/style/index.d.ts +7 -0
  166. package/es/container/style/index.d.ts.map +1 -0
  167. package/es/date-picker/index.d.ts +2 -0
  168. package/es/date-picker/index.d.ts.map +1 -0
  169. package/es/date-picker/style/index.d.ts +3 -0
  170. package/es/date-picker/style/index.d.ts.map +1 -0
  171. package/es/date-time-picker/index.d.ts +2 -0
  172. package/es/date-time-picker/index.d.ts.map +1 -0
  173. package/es/date-time-picker/style/index.d.ts +3 -0
  174. package/es/date-time-picker/style/index.d.ts.map +1 -0
  175. package/es/descriptions/index.d.ts +2 -0
  176. package/es/descriptions/index.d.ts.map +1 -0
  177. package/es/descriptions/style/index.d.ts +4 -0
  178. package/es/descriptions/style/index.d.ts.map +1 -0
  179. package/es/dialog/index.d.ts +2 -0
  180. package/es/dialog/index.d.ts.map +1 -0
  181. package/es/dialog/style/index.d.ts +3 -0
  182. package/es/dialog/style/index.d.ts.map +1 -0
  183. package/es/divider/index.d.ts +2 -0
  184. package/es/divider/index.d.ts.map +1 -0
  185. package/es/divider/style/index.d.ts +3 -0
  186. package/es/divider/style/index.d.ts.map +1 -0
  187. package/es/drawer/index.d.ts +2 -0
  188. package/es/drawer/index.d.ts.map +1 -0
  189. package/es/drawer/style/index.d.ts +3 -0
  190. package/es/drawer/style/index.d.ts.map +1 -0
  191. package/es/dropdown/index.d.ts +2 -0
  192. package/es/dropdown/index.d.ts.map +1 -0
  193. package/es/dropdown/style/index.d.ts +3 -0
  194. package/es/dropdown/style/index.d.ts.map +1 -0
  195. package/es/empty/index.d.ts +2 -0
  196. package/es/empty/index.d.ts.map +1 -0
  197. package/es/empty/style/index.d.ts +3 -0
  198. package/es/empty/style/index.d.ts.map +1 -0
  199. package/es/form/index.d.ts +2 -0
  200. package/es/form/index.d.ts.map +1 -0
  201. package/es/form/style/index.d.ts +3 -0
  202. package/es/form/style/index.d.ts.map +1 -0
  203. package/es/hooks/dist/index.mjs +1 -1
  204. package/es/icon/index.d.ts +2 -0
  205. package/es/icon/index.d.ts.map +1 -0
  206. package/es/icon/style/index.d.ts +2 -0
  207. package/es/icon/style/index.d.ts.map +1 -0
  208. package/es/image/index.d.ts +2 -0
  209. package/es/image/index.d.ts.map +1 -0
  210. package/es/image/style/index.d.ts +3 -0
  211. package/es/image/style/index.d.ts.map +1 -0
  212. package/es/index.mjs +3 -3
  213. package/es/input/index.d.ts +2 -0
  214. package/es/input/index.d.ts.map +1 -0
  215. package/es/input/style/index.d.ts +3 -0
  216. package/es/input/style/index.d.ts.map +1 -0
  217. package/es/input-number/index.d.ts +2 -0
  218. package/es/input-number/index.d.ts.map +1 -0
  219. package/es/input-number/style/index.d.ts +3 -0
  220. package/es/input-number/style/index.d.ts.map +1 -0
  221. package/es/layout/index.d.ts +2 -0
  222. package/es/layout/index.d.ts.map +1 -0
  223. package/es/layout/style/index.d.ts +4 -0
  224. package/es/layout/style/index.d.ts.map +1 -0
  225. package/es/link/index.d.ts +2 -0
  226. package/es/link/index.d.ts.map +1 -0
  227. package/es/link/style/index.d.ts +3 -0
  228. package/es/link/style/index.d.ts.map +1 -0
  229. package/es/loading/index.d.ts +2 -0
  230. package/es/loading/index.d.ts.map +1 -0
  231. package/es/loading/style/index.d.ts +3 -0
  232. package/es/loading/style/index.d.ts.map +1 -0
  233. package/es/make-installer.mjs +1 -1
  234. package/es/menu/index.d.ts +2 -0
  235. package/es/menu/index.d.ts.map +1 -0
  236. package/es/menu/style/index.d.ts +3 -0
  237. package/es/menu/style/index.d.ts.map +1 -0
  238. package/es/message/index.d.ts +2 -0
  239. package/es/message/index.d.ts.map +1 -0
  240. package/es/message/style/index.d.ts +3 -0
  241. package/es/message/style/index.d.ts.map +1 -0
  242. package/es/message-box/index.d.ts +2 -0
  243. package/es/message-box/index.d.ts.map +1 -0
  244. package/es/message-box/style/index.d.ts +3 -0
  245. package/es/message-box/style/index.d.ts.map +1 -0
  246. package/es/notification/index.d.ts +2 -0
  247. package/es/notification/index.d.ts.map +1 -0
  248. package/es/notification/style/index.d.ts +3 -0
  249. package/es/notification/style/index.d.ts.map +1 -0
  250. package/es/pagination/index.d.ts +2 -0
  251. package/es/pagination/index.d.ts.map +1 -0
  252. package/es/pagination/style/index.d.ts +3 -0
  253. package/es/pagination/style/index.d.ts.map +1 -0
  254. package/es/popconfirm/index.d.ts +2 -0
  255. package/es/popconfirm/index.d.ts.map +1 -0
  256. package/es/popconfirm/style/index.d.ts +3 -0
  257. package/es/popconfirm/style/index.d.ts.map +1 -0
  258. package/es/popover/index.d.ts +2 -0
  259. package/es/popover/index.d.ts.map +1 -0
  260. package/es/popover/style/index.d.ts +3 -0
  261. package/es/popover/style/index.d.ts.map +1 -0
  262. package/es/pro-form/index.d.ts +2 -0
  263. package/es/pro-form/index.d.ts.map +1 -0
  264. package/es/pro-form/style/index.d.ts +38 -0
  265. package/es/pro-form/style/index.d.ts.map +1 -0
  266. package/es/pro-table/index.d.ts +2 -0
  267. package/es/pro-table/index.d.ts.map +1 -0
  268. package/es/pro-table/src/variants/classic/index.d.ts +2 -0
  269. package/es/pro-table/src/variants/classic/index.d.ts.map +1 -0
  270. package/es/pro-table/src/variants/custom/index.d.ts +2 -0
  271. package/es/pro-table/src/variants/custom/index.d.ts.map +1 -0
  272. package/es/pro-table/src/variants/unify/index.d.ts +2 -0
  273. package/es/pro-table/src/variants/unify/index.d.ts.map +1 -0
  274. package/es/pro-table/style/index.d.ts +19 -0
  275. package/es/pro-table/style/index.d.ts.map +1 -0
  276. package/es/progress/index.d.ts +2 -0
  277. package/es/progress/index.d.ts.map +1 -0
  278. package/es/progress/style/index.d.ts +3 -0
  279. package/es/progress/style/index.d.ts.map +1 -0
  280. package/es/radio/index.d.ts +3 -0
  281. package/es/radio/index.d.ts.map +1 -0
  282. package/es/radio/style/index.d.ts +3 -0
  283. package/es/radio/style/index.d.ts.map +1 -0
  284. package/es/scrollbar/index.d.ts +2 -0
  285. package/es/scrollbar/index.d.ts.map +1 -0
  286. package/es/scrollbar/style/index.d.ts +3 -0
  287. package/es/scrollbar/style/index.d.ts.map +1 -0
  288. package/es/search-bar/index.d.ts +2 -0
  289. package/es/search-bar/index.d.ts.map +1 -0
  290. package/es/search-bar/style/index.d.ts +6 -0
  291. package/es/search-bar/style/index.d.ts.map +1 -0
  292. package/es/select/index.d.ts +2 -0
  293. package/es/select/index.d.ts.map +1 -0
  294. package/es/select/style/index.d.ts +3 -0
  295. package/es/select/style/index.d.ts.map +1 -0
  296. package/es/select-v2/index.d.ts +2 -0
  297. package/es/select-v2/index.d.ts.map +1 -0
  298. package/es/select-v2/style/index.d.ts +3 -0
  299. package/es/select-v2/style/index.d.ts.map +1 -0
  300. package/es/skeleton/index.d.ts +2 -0
  301. package/es/skeleton/index.d.ts.map +1 -0
  302. package/es/skeleton/style/index.d.ts +4 -0
  303. package/es/skeleton/style/index.d.ts.map +1 -0
  304. package/es/slider/index.d.ts +2 -0
  305. package/es/slider/index.d.ts.map +1 -0
  306. package/es/slider/style/index.d.ts +3 -0
  307. package/es/slider/style/index.d.ts.map +1 -0
  308. package/es/space/index.d.ts +2 -0
  309. package/es/space/index.d.ts.map +1 -0
  310. package/es/space/style/index.d.ts +3 -0
  311. package/es/space/style/index.d.ts.map +1 -0
  312. package/es/steps/index.d.ts +2 -0
  313. package/es/steps/index.d.ts.map +1 -0
  314. package/es/steps/style/index.d.ts +4 -0
  315. package/es/steps/style/index.d.ts.map +1 -0
  316. package/es/switch/index.d.ts +2 -0
  317. package/es/switch/index.d.ts.map +1 -0
  318. package/es/switch/style/index.d.ts +3 -0
  319. package/es/switch/style/index.d.ts.map +1 -0
  320. package/es/table/index.d.ts +2 -0
  321. package/es/table/index.d.ts.map +1 -0
  322. package/es/table/style/index.d.ts +3 -0
  323. package/es/table/style/index.d.ts.map +1 -0
  324. package/es/tabs/index.d.ts +2 -0
  325. package/es/tabs/index.d.ts.map +1 -0
  326. package/es/tabs/style/index.d.ts +4 -0
  327. package/es/tabs/style/index.d.ts.map +1 -0
  328. package/es/tag/index.d.ts +2 -0
  329. package/es/tag/index.d.ts.map +1 -0
  330. package/es/tag/style/index.d.ts +3 -0
  331. package/es/tag/style/index.d.ts.map +1 -0
  332. package/es/text/index.d.ts +2 -0
  333. package/es/text/index.d.ts.map +1 -0
  334. package/es/text/style/index.d.ts +3 -0
  335. package/es/text/style/index.d.ts.map +1 -0
  336. package/es/time-picker/index.d.ts +2 -0
  337. package/es/time-picker/index.d.ts.map +1 -0
  338. package/es/time-picker/style/index.d.ts +3 -0
  339. package/es/time-picker/style/index.d.ts.map +1 -0
  340. package/es/time-select/index.d.ts +2 -0
  341. package/es/time-select/index.d.ts.map +1 -0
  342. package/es/time-select/style/index.d.ts +3 -0
  343. package/es/time-select/style/index.d.ts.map +1 -0
  344. package/es/tooltip/index.d.ts +2 -0
  345. package/es/tooltip/index.d.ts.map +1 -0
  346. package/es/tooltip/style/index.d.ts +3 -0
  347. package/es/tooltip/style/index.d.ts.map +1 -0
  348. package/es/tree/index.d.ts +2 -0
  349. package/es/tree/index.d.ts.map +1 -0
  350. package/es/tree/style/index.d.ts +3 -0
  351. package/es/tree/style/index.d.ts.map +1 -0
  352. package/es/tree-select/index.d.ts +2 -0
  353. package/es/tree-select/index.d.ts.map +1 -0
  354. package/es/tree-select/style/index.d.ts +3 -0
  355. package/es/tree-select/style/index.d.ts.map +1 -0
  356. package/es/upload/index.d.ts +2 -0
  357. package/es/upload/index.d.ts.map +1 -0
  358. package/es/upload/style/index.d.ts +3 -0
  359. package/es/upload/style/index.d.ts.map +1 -0
  360. package/es/utils/dist/index.mjs +3 -3
  361. package/es/version.d.ts +1 -1
  362. package/es/version.mjs +2 -2
  363. package/lib/alert/index.d.ts +2 -0
  364. package/lib/alert/style/index.d.ts +3 -0
  365. package/lib/autocomplete/index.d.ts +2 -0
  366. package/lib/autocomplete/style/index.d.ts +3 -0
  367. package/lib/backtop/index.d.ts +2 -0
  368. package/lib/backtop/style/index.d.ts +3 -0
  369. package/lib/button/index.d.ts +2 -0
  370. package/lib/button/style/index.d.ts +3 -0
  371. package/lib/card/index.d.ts +2 -0
  372. package/lib/card/style/index.d.ts +3 -0
  373. package/lib/cascader/index.d.ts +2 -0
  374. package/lib/cascader/style/index.d.ts +3 -0
  375. package/lib/checkbox/index.d.ts +3 -0
  376. package/lib/checkbox/style/index.d.ts +3 -0
  377. package/lib/collapse/index.d.ts +2 -0
  378. package/lib/collapse/style/index.d.ts +4 -0
  379. package/lib/color-picker/index.d.ts +2 -0
  380. package/lib/color-picker/style/index.d.ts +3 -0
  381. package/lib/components/alert/index.js +1 -0
  382. package/lib/components/alert/style/index.js +1 -0
  383. package/lib/components/autocomplete/index.js +1 -0
  384. package/lib/components/autocomplete/style/index.js +1 -0
  385. package/lib/components/backtop/index.js +1 -0
  386. package/lib/components/backtop/style/index.js +1 -0
  387. package/lib/components/button/index.js +1 -0
  388. package/lib/components/button/style/index.js +1 -0
  389. package/lib/components/card/index.js +1 -0
  390. package/lib/components/card/style/index.js +1 -0
  391. package/lib/components/cascader/index.js +1 -0
  392. package/lib/components/cascader/style/index.js +1 -0
  393. package/lib/components/checkbox/index.js +1 -0
  394. package/lib/components/checkbox/style/index.js +1 -0
  395. package/lib/components/collapse/index.js +1 -0
  396. package/lib/components/collapse/style/index.js +1 -0
  397. package/lib/components/color-picker/index.js +1 -0
  398. package/lib/components/color-picker/style/index.js +1 -0
  399. package/lib/components/config-provider/index.js +1 -0
  400. package/lib/components/config-provider/style/index.js +1 -0
  401. package/lib/components/container/index.js +1 -0
  402. package/lib/components/container/style/index.js +1 -0
  403. package/lib/components/date-picker/index.js +1 -0
  404. package/lib/components/date-picker/style/index.js +1 -0
  405. package/lib/components/date-time-picker/index.js +1 -0
  406. package/lib/components/date-time-picker/style/index.js +1 -0
  407. package/lib/components/descriptions/index.js +1 -0
  408. package/lib/components/descriptions/style/index.js +1 -0
  409. package/lib/components/dialog/index.js +1 -0
  410. package/lib/components/dialog/style/index.js +1 -0
  411. package/lib/components/divider/index.js +1 -0
  412. package/lib/components/divider/style/index.js +1 -0
  413. package/lib/components/drawer/index.js +1 -0
  414. package/lib/components/drawer/style/index.js +1 -0
  415. package/lib/components/dropdown/index.js +1 -0
  416. package/lib/components/dropdown/style/index.js +1 -0
  417. package/lib/components/empty/index.js +1 -0
  418. package/lib/components/empty/style/index.js +1 -0
  419. package/lib/components/form/index.js +1 -0
  420. package/lib/components/form/style/index.js +1 -0
  421. package/lib/components/icon/index.js +1 -0
  422. package/lib/components/icon/style/index.js +1 -0
  423. package/lib/components/image/index.js +1 -0
  424. package/lib/components/image/style/index.js +1 -0
  425. package/lib/components/input/index.js +1 -0
  426. package/lib/components/input/style/index.js +1 -0
  427. package/lib/components/input-number/index.js +1 -0
  428. package/lib/components/input-number/style/index.js +1 -0
  429. package/lib/components/layout/index.js +1 -0
  430. package/lib/components/layout/style/index.js +1 -0
  431. package/lib/components/link/index.js +1 -0
  432. package/lib/components/link/style/index.js +1 -0
  433. package/lib/components/loading/index.js +1 -0
  434. package/lib/components/loading/style/index.js +1 -0
  435. package/lib/components/menu/index.js +1 -0
  436. package/lib/components/menu/style/index.js +1 -0
  437. package/lib/components/message/index.js +1 -0
  438. package/lib/components/message/style/index.js +1 -0
  439. package/lib/components/message-box/index.js +1 -0
  440. package/lib/components/message-box/style/index.js +1 -0
  441. package/lib/components/notification/index.js +1 -0
  442. package/lib/components/notification/style/index.js +1 -0
  443. package/lib/components/pagination/index.js +1 -0
  444. package/lib/components/pagination/style/index.js +1 -0
  445. package/lib/components/popconfirm/index.js +1 -0
  446. package/lib/components/popconfirm/style/index.js +1 -0
  447. package/lib/components/popover/index.js +1 -0
  448. package/lib/components/popover/style/index.js +1 -0
  449. package/lib/components/pro-form/index.js +1 -0
  450. package/lib/components/pro-form/style/index.js +1 -0
  451. package/lib/components/pro-table/index.js +1 -0
  452. package/lib/components/pro-table/style/index.js +1 -0
  453. package/lib/components/progress/index.js +1 -0
  454. package/lib/components/progress/style/index.js +1 -0
  455. package/lib/components/radio/index.js +1 -0
  456. package/lib/components/radio/style/index.js +1 -0
  457. package/lib/components/scrollbar/index.js +1 -0
  458. package/lib/components/scrollbar/style/index.js +1 -0
  459. package/lib/components/search-bar/index.js +1 -0
  460. package/lib/components/search-bar/style/index.js +1 -0
  461. package/lib/components/select/index.js +1 -0
  462. package/lib/components/select/style/index.js +1 -0
  463. package/lib/components/select-v2/index.js +1 -0
  464. package/lib/components/select-v2/style/index.js +1 -0
  465. package/lib/components/skeleton/index.js +1 -0
  466. package/lib/components/skeleton/style/index.js +1 -0
  467. package/lib/components/slider/index.js +1 -0
  468. package/lib/components/slider/style/index.js +1 -0
  469. package/lib/components/space/index.js +1 -0
  470. package/lib/components/space/style/index.js +1 -0
  471. package/lib/components/steps/index.js +1 -0
  472. package/lib/components/steps/style/index.js +1 -0
  473. package/lib/components/switch/index.js +1 -0
  474. package/lib/components/switch/style/index.js +1 -0
  475. package/lib/components/table/index.js +1 -0
  476. package/lib/components/table/style/index.js +1 -0
  477. package/lib/components/tabs/index.js +1 -0
  478. package/lib/components/tabs/style/index.js +1 -0
  479. package/lib/components/tag/index.js +1 -0
  480. package/lib/components/tag/style/index.js +1 -0
  481. package/lib/components/text/index.js +1 -0
  482. package/lib/components/text/style/index.js +1 -0
  483. package/lib/components/time-picker/index.js +1 -0
  484. package/lib/components/time-picker/style/index.js +1 -0
  485. package/lib/components/time-select/index.js +1 -0
  486. package/lib/components/time-select/style/index.js +1 -0
  487. package/lib/components/tooltip/index.js +1 -0
  488. package/lib/components/tooltip/style/index.js +1 -0
  489. package/lib/components/tree/index.js +1 -0
  490. package/lib/components/tree/style/index.js +1 -0
  491. package/lib/components/tree-select/index.js +1 -0
  492. package/lib/components/tree-select/style/index.js +1 -0
  493. package/lib/components/upload/index.js +1 -0
  494. package/lib/components/upload/style/index.js +1 -0
  495. package/lib/config-provider/index.d.ts +2 -0
  496. package/lib/config-provider/style/index.d.ts +2 -0
  497. package/lib/container/index.d.ts +2 -0
  498. package/lib/container/style/index.d.ts +7 -0
  499. package/lib/date-picker/index.d.ts +2 -0
  500. package/lib/date-picker/style/index.d.ts +3 -0
  501. package/lib/date-time-picker/index.d.ts +2 -0
  502. package/lib/date-time-picker/style/index.d.ts +3 -0
  503. package/lib/descriptions/index.d.ts +2 -0
  504. package/lib/descriptions/style/index.d.ts +4 -0
  505. package/lib/dialog/index.d.ts +2 -0
  506. package/lib/dialog/style/index.d.ts +3 -0
  507. package/lib/divider/index.d.ts +2 -0
  508. package/lib/divider/style/index.d.ts +3 -0
  509. package/lib/drawer/index.d.ts +2 -0
  510. package/lib/drawer/style/index.d.ts +3 -0
  511. package/lib/dropdown/index.d.ts +2 -0
  512. package/lib/dropdown/style/index.d.ts +3 -0
  513. package/lib/empty/index.d.ts +2 -0
  514. package/lib/empty/style/index.d.ts +3 -0
  515. package/lib/form/index.d.ts +2 -0
  516. package/lib/form/style/index.d.ts +3 -0
  517. package/lib/hooks/dist/index.js +1 -1
  518. package/lib/icon/index.d.ts +2 -0
  519. package/lib/icon/style/index.d.ts +2 -0
  520. package/lib/image/index.d.ts +2 -0
  521. package/lib/image/style/index.d.ts +3 -0
  522. package/lib/index.js +2 -2
  523. package/lib/input/index.d.ts +2 -0
  524. package/lib/input/style/index.d.ts +3 -0
  525. package/lib/input-number/index.d.ts +2 -0
  526. package/lib/input-number/style/index.d.ts +3 -0
  527. package/lib/layout/index.d.ts +2 -0
  528. package/lib/layout/style/index.d.ts +4 -0
  529. package/lib/link/index.d.ts +2 -0
  530. package/lib/link/style/index.d.ts +3 -0
  531. package/lib/loading/index.d.ts +2 -0
  532. package/lib/loading/style/index.d.ts +3 -0
  533. package/lib/make-installer.js +1 -1
  534. package/lib/menu/index.d.ts +2 -0
  535. package/lib/menu/style/index.d.ts +3 -0
  536. package/lib/message/index.d.ts +2 -0
  537. package/lib/message/style/index.d.ts +3 -0
  538. package/lib/message-box/index.d.ts +2 -0
  539. package/lib/message-box/style/index.d.ts +3 -0
  540. package/lib/notification/index.d.ts +2 -0
  541. package/lib/notification/style/index.d.ts +3 -0
  542. package/lib/pagination/index.d.ts +2 -0
  543. package/lib/pagination/style/index.d.ts +3 -0
  544. package/lib/popconfirm/index.d.ts +2 -0
  545. package/lib/popconfirm/style/index.d.ts +3 -0
  546. package/lib/popover/index.d.ts +2 -0
  547. package/lib/popover/style/index.d.ts +3 -0
  548. package/lib/pro-form/index.d.ts +2 -0
  549. package/lib/pro-form/style/index.d.ts +38 -0
  550. package/lib/pro-table/index.d.ts +2 -0
  551. package/lib/pro-table/src/variants/classic/index.d.ts +2 -0
  552. package/lib/pro-table/src/variants/custom/index.d.ts +2 -0
  553. package/lib/pro-table/src/variants/unify/index.d.ts +2 -0
  554. package/lib/pro-table/style/index.d.ts +19 -0
  555. package/lib/progress/index.d.ts +2 -0
  556. package/lib/progress/style/index.d.ts +3 -0
  557. package/lib/radio/index.d.ts +3 -0
  558. package/lib/radio/style/index.d.ts +3 -0
  559. package/lib/scrollbar/index.d.ts +2 -0
  560. package/lib/scrollbar/style/index.d.ts +3 -0
  561. package/lib/search-bar/index.d.ts +2 -0
  562. package/lib/search-bar/style/index.d.ts +6 -0
  563. package/lib/select/index.d.ts +2 -0
  564. package/lib/select/style/index.d.ts +3 -0
  565. package/lib/select-v2/index.d.ts +2 -0
  566. package/lib/select-v2/style/index.d.ts +3 -0
  567. package/lib/skeleton/index.d.ts +2 -0
  568. package/lib/skeleton/style/index.d.ts +4 -0
  569. package/lib/slider/index.d.ts +2 -0
  570. package/lib/slider/style/index.d.ts +3 -0
  571. package/lib/space/index.d.ts +2 -0
  572. package/lib/space/style/index.d.ts +3 -0
  573. package/lib/steps/index.d.ts +2 -0
  574. package/lib/steps/style/index.d.ts +4 -0
  575. package/lib/switch/index.d.ts +2 -0
  576. package/lib/switch/style/index.d.ts +3 -0
  577. package/lib/table/index.d.ts +2 -0
  578. package/lib/table/style/index.d.ts +3 -0
  579. package/lib/tabs/index.d.ts +2 -0
  580. package/lib/tabs/style/index.d.ts +4 -0
  581. package/lib/tag/index.d.ts +2 -0
  582. package/lib/tag/style/index.d.ts +3 -0
  583. package/lib/text/index.d.ts +2 -0
  584. package/lib/text/style/index.d.ts +3 -0
  585. package/lib/time-picker/index.d.ts +2 -0
  586. package/lib/time-picker/style/index.d.ts +3 -0
  587. package/lib/time-select/index.d.ts +2 -0
  588. package/lib/time-select/style/index.d.ts +3 -0
  589. package/lib/tooltip/index.d.ts +2 -0
  590. package/lib/tooltip/style/index.d.ts +3 -0
  591. package/lib/tree/index.d.ts +2 -0
  592. package/lib/tree/style/index.d.ts +3 -0
  593. package/lib/tree-select/index.d.ts +2 -0
  594. package/lib/tree-select/style/index.d.ts +3 -0
  595. package/lib/upload/index.d.ts +2 -0
  596. package/lib/upload/style/index.d.ts +3 -0
  597. package/lib/utils/dist/index.js +3 -3
  598. package/lib/version.d.ts +1 -1
  599. package/lib/version.js +2 -2
  600. package/package.json +4 -4
package/README.md CHANGED
@@ -61,16 +61,23 @@ import vue from '@vitejs/plugin-vue';
61
61
  import AutoImport from 'unplugin-auto-import/vite';
62
62
  import Components from 'unplugin-vue-components/vite';
63
63
  import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
64
- import { SunyardSzyyUIResolver } from 'sunyard-szyy-ui/utils';
64
+ import { SunyardSzyyUIResolver, SunyardSzyyUIAutoImportResolver } from 'sunyard-szyy-ui/utils';
65
65
 
66
66
  export default defineConfig({
67
67
  plugins: [
68
68
  vue(),
69
69
  AutoImport({
70
- resolvers: [ElementPlusResolver()]
70
+ resolvers: [
71
+ ElementPlusResolver(),
72
+ SunyardSzyyUIAutoImportResolver() // SyMessage / SyMessageBox 等函数式 API 自动导入
73
+ ]
71
74
  }),
75
+ // SY resolver 放在 EP 之前,确保 v-loading 指令优先走 SyLoadingDirective
72
76
  Components({
73
- resolvers: [ElementPlusResolver({ importStyle: 'sass' }), SunyardSzyyUIResolver()]
77
+ resolvers: [
78
+ ...SunyardSzyyUIResolver(), // 注意:返回数组,需要展开
79
+ ElementPlusResolver({ importStyle: 'sass' })
80
+ ]
74
81
  })
75
82
  ],
76
83
  css: {
@@ -0,0 +1,18 @@
1
+ import { Ref } from 'vue';
2
+
3
+ declare function useNamespace(block: string): {
4
+ namespace: string;
5
+ b: () => string;
6
+ e: (el: string) => string;
7
+ m: (mod: string) => string;
8
+ is: (name: string, state?: boolean) => string;
9
+ };
10
+ /**
11
+ * 防抖 hook
12
+ * @param value 要防抖的值
13
+ * @param delay 延迟时间(毫秒),默认 300
14
+ * @returns 防抖后的值
15
+ */
16
+ declare function useDebounce<T>(value: Ref<T>, delay?: number): Ref<T>;
17
+
18
+ export { useDebounce, useNamespace };
@@ -1,5 +1,5 @@
1
1
  (function(p,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("@sunyard-szyy-ui/hooks"),require("@sunyard-szyy-ui/utils"),require("@sunyard-szyy-ui/adapter"),require("@element-plus/icons-vue"),require("sortablejs")):typeof define=="function"&&define.amd?define(["exports","vue","@sunyard-szyy-ui/hooks","@sunyard-szyy-ui/utils","@sunyard-szyy-ui/adapter","@element-plus/icons-vue","sortablejs"],e):(p=typeof globalThis!="undefined"?globalThis:p||self,e(p.SunyardSzyyUI={},p.Vue,p.hooks,p.utils,p.adapter,p.iconsVue,p.Sortable))})(this,function(p,e,u,S,d,G,Ae){"use strict";var fo=Object.defineProperty,uo=Object.defineProperties;var ho=Object.getOwnPropertyDescriptors;var ht=Object.getOwnPropertySymbols;var So=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable;var St=(p,e,u)=>e in p?fo(p,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):p[e]=u,k=(p,e)=>{for(var u in e||(e={}))So.call(e,u)&&St(p,u,e[u]);if(ht)for(var u of ht(e))yo.call(e,u)&&St(p,u,e[u]);return p},F=(p,e)=>uo(p,ho(e));var we=(p,e,u)=>new Promise((S,d)=>{var G=J=>{try{re(u.next(J))}catch(ae){d(ae)}},Ae=J=>{try{re(u.throw(J))}catch(ae){d(ae)}},re=J=>J.done?S(J.value):Promise.resolve(J.value).then(G,Ae);re((u=u.apply(p,e)).next())});/*!
2
- * sunyard-szyy-ui v0.7.1
2
+ * sunyard-szyy-ui v0.7.2
3
3
  * (c) 2026 Sunyard SZYY Base Team
4
4
  */const re=e.defineComponent({name:"SyAutocomplete",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("autocomplete"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},close:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.close)==null?void 0:t.call(n)},highlight:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.highlight)==null?void 0:a.call(t,n)},handleKeyEnter:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleKeyEnter)==null?void 0:t.call(n)},handleSelect:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.handleSelect)==null?void 0:a.call(t,n)}}),()=>e.h(d.AdapterAutocomplete,e.mergeProps({ref:l,class:r.b()},c),i)}}),J=S.withInstall(re),ae=e.defineComponent({name:"SyAlert",inheritAttrs:!1,setup(){const s=u.useNamespace("alert"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterAlert,e.mergeProps({class:s.b()},o),r)}}),yt=S.withInstall(ae),gt=e.defineComponent({name:"SyBacktop",inheritAttrs:!1,setup(){const s=u.useNamespace("backtop"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterBacktop,e.mergeProps({class:s.b()},o),r)}}),Ct=S.withInstall(gt),bt=e.defineComponent({name:"SyButton",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("button"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterButton,e.mergeProps({ref:l,class:r.b()},c),i)}}),U=S.withInstall(bt),wt=e.defineComponent({name:"SyCard",inheritAttrs:!1,setup(){const s=u.useNamespace("card"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCard,e.mergeProps({class:s.b()},o),r)}}),At=S.withInstall(wt),kt=e.defineComponent({name:"SyCascader",inheritAttrs:!1,setup(){const s=u.useNamespace("cascader"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCascader,e.mergeProps({class:s.b()},o),r)}}),Te=S.withInstall(kt),Nt=e.defineComponent({name:"SyCheckbox",inheritAttrs:!1,setup(){const s=u.useNamespace("checkbox"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCheckbox,e.mergeProps({class:s.b()},o),r)}}),Pt=e.defineComponent({name:"SyCheckboxGroup",inheritAttrs:!1,setup(){const s=u.useNamespace("checkbox-group"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCheckboxGroup,e.mergeProps({class:s.b()},o),r)}}),Re=S.withInstall(Nt),_e=S.withInstall(Pt),Bt=e.defineComponent({name:"SyCheckboxButton",inheritAttrs:!1,setup(){const s=u.useNamespace("checkbox-button"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCheckboxButton,e.mergeProps({class:s.b()},o),r)}}),xt=S.withInstall(Bt),Vt=e.defineComponent({name:"SyColorPicker",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("color-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({show:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.show)==null?void 0:t.call(n)},hide:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.hide)==null?void 0:t.call(n)},focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterColorPicker,e.mergeProps({ref:l,class:r.b()},c),i)}}),It=S.withInstall(Vt),Tt=e.defineComponent({name:"SyCollapse",inheritAttrs:!1,setup(){const s=u.useNamespace("collapse"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCollapse,e.mergeProps({class:s.b()},o),r)}}),Rt=e.defineComponent({name:"SyCollapseItem",inheritAttrs:!1,setup(){const s=u.useNamespace("collapse-item"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCollapseItem,e.mergeProps({class:s.b()},o),r)}}),_t=S.withInstall(Tt),$t=S.withInstall(Rt),Dt=new Set(["SyHeader","SyFooter","ElHeader","ElFooter"]);function Mt(s){return s.some(o=>{var c;const r=(c=o.type)==null?void 0:c.name;return!!r&&Dt.has(r)})}const Lt=e.defineComponent({name:"SyContainer",inheritAttrs:!1,setup(){const s=u.useNamespace("container"),o=e.useAttrs(),r=e.useSlots();return()=>{const c={class:s.b()};if(!("direction"in o)&&r.default){const i=r.default();Mt(i)&&(c.direction="vertical")}return e.h(d.AdapterContainer,e.mergeProps(c,o),r)}}}),Ft=e.defineComponent({name:"SyHeader",inheritAttrs:!1,setup(){const s=u.useNamespace("header"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterHeader,e.mergeProps({class:s.b()},o),r)}}),Et=e.defineComponent({name:"SyAside",inheritAttrs:!1,setup(){const s=u.useNamespace("aside"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterAside,e.mergeProps({class:s.b()},o),r)}}),zt=e.defineComponent({name:"SyMain",inheritAttrs:!1,setup(){const s=u.useNamespace("main"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMain,e.mergeProps({class:s.b()},o),r)}}),Ot=e.defineComponent({name:"SyFooter",inheritAttrs:!1,setup(){const s=u.useNamespace("footer"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterFooter,e.mergeProps({class:s.b()},o),r)}}),qt=S.withInstall(Lt),jt=S.withInstall(Ft),Ut=S.withInstall(Et),Ht=S.withInstall(zt),Kt=S.withInstall(Ot),Gt=e.defineComponent({name:"SyConfigProvider",inheritAttrs:!1,setup(s,{expose:o}){const r=e.useAttrs(),c=e.useSlots(),i=e.ref();return o({}),()=>e.h(d.AdapterConfigProvider,e.mergeProps({ref:i},r),c)}}),Wt=S.withInstall(Gt),Qt=e.defineComponent({name:"SyDatePicker",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("date-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterDatePicker,e.mergeProps({ref:l,class:r.b()},c),i)}}),$e=S.withInstall(Qt),Yt=e.defineComponent({name:"SyDateTimePicker",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("date-time-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterDatePicker,e.mergeProps({ref:l,class:r.b(),type:"datetime"},c),i)}}),Jt=S.withInstall(Yt),Zt=e.defineComponent({name:"SyDescriptions",inheritAttrs:!1,setup(){const s=u.useNamespace("descriptions"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDescriptions,e.mergeProps({class:s.b()},o),r)}}),Xt=e.defineComponent({name:"ElDescriptionsItem",inheritAttrs:!1,setup(){const s=u.useNamespace("descriptions-item"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDescriptionsItem,e.mergeProps({class:s.b()},o),r)}}),vt=S.withInstall(Zt),en=S.withInstall(Xt,"SyDescriptionsItem"),tn=e.defineComponent({name:"SyDialog",inheritAttrs:!1,setup(){const s=u.useNamespace("dialog"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDialog,e.mergeProps({class:s.b()},o),r)}}),nn=S.withInstall(tn),sn=e.defineComponent({name:"SyDivider",inheritAttrs:!1,setup(){const s=u.useNamespace("divider"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDivider,e.mergeProps({class:s.b()},o),r)}}),on=S.withInstall(sn),rn=e.defineComponent({name:"SyDrawer",inheritAttrs:!1,setup(){const s=u.useNamespace("drawer"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDrawer,e.mergeProps({class:s.b()},o),r)}}),De=S.withInstall(rn),an=e.defineComponent({name:"SyDropdown",inheritAttrs:!1,setup(){const s=u.useNamespace("dropdown"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDropdown,e.mergeProps({class:s.b()},o),r)}}),ln=e.defineComponent({name:"SyDropdownMenu",inheritAttrs:!1,setup(){const s=u.useNamespace("dropdown-menu"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDropdownMenu,e.mergeProps({class:s.b()},o),r)}}),cn=e.defineComponent({name:"SyDropdownItem",inheritAttrs:!1,setup(){const s=u.useNamespace("dropdown-item"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterDropdownItem,e.mergeProps({class:s.b()},o),r)}}),dn=S.withInstall(an),pn=S.withInstall(ln),mn=S.withInstall(cn),fn=e.defineComponent({name:"SyEmpty",inheritAttrs:!1,setup(){const s=u.useNamespace("empty"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterEmpty,e.mergeProps({class:s.b()},o),r)}}),Me=S.withInstall(fn),un=e.defineComponent({name:"SyForm",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("form"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({validate:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.validate)==null?void 0:a.call(t,...n)},validateField:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.validateField)==null?void 0:a.call(t,...n)},resetFields:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.resetFields)==null?void 0:a.call(t,...n)},scrollToField:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollToField)==null?void 0:a.call(t,...n)},clearValidate:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.clearValidate)==null?void 0:a.call(t,...n)}}),()=>e.h(d.AdapterForm,e.mergeProps({ref:l,class:r.b()},c),i)}}),hn=e.defineComponent({name:"SyFormItem",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("form-item"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({resetField:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.resetField)==null?void 0:t.call(n)},clearValidate:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clearValidate)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterFormItem,e.mergeProps({ref:l,class:r.b()},c),i)}}),Le=S.withInstall(un),Fe=S.withInstall(hn),Sn=e.defineComponent({name:"SyIcon",inheritAttrs:!1,setup(){const s=e.useAttrs(),o=e.useSlots();return()=>e.h(d.AdapterIcon,e.mergeProps(s),o)}}),le=S.withInstall(Sn),yn=e.defineComponent({name:"SyImage",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("image"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({showPreview:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.showPreview)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterImage,e.mergeProps({ref:l,class:r.b()},c),i)}}),gn=S.withInstall(yn),Cn=e.defineComponent({name:"SyInput",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("input"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},clear:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clear)==null?void 0:t.call(n)},select:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.select)==null?void 0:t.call(n)},resizeTextarea:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.resizeTextarea)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterInput,e.mergeProps({ref:l,class:r.b()},c),i)}}),ke=S.withInstall(Cn),bn=e.defineComponent({name:"SyInputNumber",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("input-number"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterInputNumber,e.mergeProps({ref:l,class:r.b()},c),i)}}),Ee=S.withInstall(bn),wn=e.defineComponent({name:"SyRow",inheritAttrs:!1,setup(){const s=u.useNamespace("row"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRow,e.mergeProps({class:s.b()},o),r)}}),An=e.defineComponent({name:"SyCol",inheritAttrs:!1,setup(){const s=u.useNamespace("col"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterCol,e.mergeProps({class:s.b()},o),r)}}),kn=S.withInstall(wn),Nn=S.withInstall(An),Pn=e.defineComponent({name:"SyLink",inheritAttrs:!1,setup(){const s=u.useNamespace("link"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterLink,e.mergeProps({class:s.b()},o),r)}}),Bn=S.withInstall(Pn),Z="sy-loading",Ne="element-loading-custom-class";function xn(s){return s!==null&&typeof s=="object"&&!Array.isArray(s)}function Vn(s){if(s==null||s==="")return Z;const o=String(e.unref(s));return o.includes(Z)?o:`${Z} ${o}`}function In(s){if(s===void 0)return{customClass:Z};const o=k({},s),r=o.customClass;return r===void 0?o.customClass=Z:typeof r=="string"&&(o.customClass=`${Z} ${r}`),o}function ze(s,o){if(!o.value)return o;if(xn(o.value))return F(k({},o),{value:F(k({},o.value),{customClass:Vn(o.value.customClass)})});const r=s.getAttribute(Ne);return r?r.includes(Z)||s.setAttribute(Ne,`${Z} ${r}`):s.setAttribute(Ne,Z),o}const W=d.AdapterLoadingDirective,ue=(s,o)=>d.AdapterLoading.service(In(s),o);Object.defineProperty(ue,"_context",{get(){return d.AdapterLoading.service._context},set(s){d.AdapterLoading.service._context=s}});const he={mounted(s,o,r,c){var i;(i=W.mounted)==null||i.call(W,s,ze(s,o),r,c)},updated(s,o,r,c){var i;(i=W.updated)==null||i.call(W,s,ze(s,o),r,c)},unmounted(s,o,r,c){var i;(i=W.unmounted)==null||i.call(W,s,o,r,c)},get _context(){return W._context},set _context(s){W._context=s}},Tn={install(s){ue._context=s._context,he._context=s._context,s.directive("loading",he),s.config.globalProperties.$loading=ue},directive:he,service:ue},Rn=e.defineComponent({name:"SyMenu",inheritAttrs:!1,setup(){const s=u.useNamespace("menu"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMenu,e.mergeProps({class:s.b()},o),r)}}),_n=e.defineComponent({name:"SySubMenu",inheritAttrs:!1,setup(){const s=u.useNamespace("sub-menu"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSubMenu,e.mergeProps({class:s.b()},o),r)}}),$n=e.defineComponent({name:"SyMenuItem",inheritAttrs:!1,setup(){const s=u.useNamespace("menu-item"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMenuItem,e.mergeProps({class:s.b()},o),r)}}),Dn=e.defineComponent({name:"SyMenuItemGroup",inheritAttrs:!1,setup(){const s=u.useNamespace("menu-item-group"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterMenuItemGroup,e.mergeProps({class:s.b()},o),r)}}),Mn=S.withInstall(Rn),Ln=S.withInstall(_n),Fn=S.withInstall($n),En=S.withInstall(Dn),Se="sy-message";function ce(s){if(s===void 0)return{customClass:Se};if(typeof s!="object"||s.__v_isVNode===!0)return{message:s,customClass:Se};const o=s;return F(k({},o),{customClass:o.customClass?`${Se} ${o.customClass}`:Se})}const Pe=(s,o)=>d.AdapterMessage(ce(s),o);Pe.closeAll=s=>d.AdapterMessage.closeAll(s),Pe.closeAllByPlacement=s=>d.AdapterMessage.closeAllByPlacement(s);const ne=Pe;ne.success=(s,o)=>d.AdapterMessage.success(ce(s),o),ne.warning=(s,o)=>d.AdapterMessage.warning(ce(s),o),ne.info=(s,o)=>d.AdapterMessage.info(ce(s),o),ne.error=(s,o)=>d.AdapterMessage.error(ce(s),o),Object.defineProperty(ne,"_context",{get(){return d.AdapterMessage._context},set(s){d.AdapterMessage._context=s}});const Be="sy-message-box";function ye(s){return s?F(k({},s),{customClass:s.customClass?`${Be} ${s.customClass}`:Be}):{customClass:Be}}const ie=(s,o)=>d.AdapterMessageBox(ye(s),o);ie.alert=(...s)=>{const[o,r,c,i]=s;return d.AdapterMessageBox.alert(o,r,ye(c),i)},ie.confirm=(...s)=>{const[o,r,c,i]=s;return d.AdapterMessageBox.confirm(o,r,ye(c),i)},ie.prompt=(...s)=>{const[o,r,c,i]=s;return d.AdapterMessageBox.prompt(o,r,ye(c),i)},ie.close=()=>d.AdapterMessageBox.close();const Oe=ie;Object.defineProperty(Oe,"_context",{get(){return d.AdapterMessageBox._context},set(s){d.AdapterMessageBox._context=s}});const ge="sy-notification";function de(s){if(s===void 0)return{customClass:ge};if(typeof s!="object"||s.__v_isVNode===!0)return{message:s,customClass:ge};const o=s;return F(k({},o),{customClass:o.customClass?`${ge} ${o.customClass}`:ge})}const se=(s,o)=>d.AdapterNotification(de(s),o);se.success=(s,o)=>d.AdapterNotification.success(de(s),o),se.warning=(s,o)=>d.AdapterNotification.warning(de(s),o),se.info=(s,o)=>d.AdapterNotification.info(de(s),o),se.error=(s,o)=>d.AdapterNotification.error(de(s),o),se.closeAll=()=>d.AdapterNotification.closeAll();const qe=se;Object.defineProperty(qe,"_context",{get(){return d.AdapterNotification._context},set(s){d.AdapterNotification._context=s}});const zn=e.defineComponent({name:"SyPagination",inheritAttrs:!1,setup(){const s=u.useNamespace("pagination"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterPagination,e.mergeProps({class:s.b()},o),r)}}),je=S.withInstall(zn),On=e.defineComponent({name:"SyPopconfirm",inheritAttrs:!1,setup(){const s=u.useNamespace("popconfirm"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterPopconfirm,e.mergeProps({class:s.b()},o),r)}}),qn=S.withInstall(On);function jn(s,o){var n;const r=k({},s),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const l=[o,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:l.length?l:[o]}}const Un=e.defineComponent({name:"SyPopover",inheritAttrs:!1,setup(){const s=u.useNamespace("popover"),o=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=jn(o,s.b());return e.h(d.AdapterPopover,e.mergeProps(c,{popperClass:i}),r)}}}),Hn=S.withInstall(Un),Kn=e.defineComponent({name:"SyProgress",inheritAttrs:!1,setup(){const s=u.useNamespace("progress"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterProgress,e.mergeProps({class:s.b()},o),r)}}),Gn=S.withInstall(Kn),Wn=e.defineComponent({name:"SyRadio",inheritAttrs:!1,setup(){const s=u.useNamespace("radio"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRadio,e.mergeProps({class:s.b()},o),r)}}),Qn=e.defineComponent({name:"SyRadioGroup",inheritAttrs:!1,setup(){const s=u.useNamespace("radio-group"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRadioGroup,e.mergeProps({class:s.b()},o),r)}}),xe=S.withInstall(Wn),Ue=S.withInstall(Qn),Yn=e.defineComponent({name:"SyRadioButton",inheritAttrs:!1,setup(){const s=u.useNamespace("radio-button"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterRadioButton,e.mergeProps({class:s.b()},o),r)}}),He=S.withInstall(Yn),Jn=e.defineComponent({name:"SyScrollbar",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("scrollbar"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({handleScroll:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleScroll)==null?void 0:t.call(n)},scrollTo:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollTo)==null?void 0:a.call(t,...n)},setScrollTop:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollTop)==null?void 0:a.call(t,n)},setScrollLeft:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollLeft)==null?void 0:a.call(t,n)},update:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.update)==null?void 0:t.call(n)},wrapRef:()=>{var n;return(n=l.value)==null?void 0:n.wrapRef}}),()=>e.h(d.AdapterScrollbar,e.mergeProps({ref:l,class:r.b()},c),i)}}),Zn=S.withInstall(Jn),Xn=e.defineComponent({name:"SySelect",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("select"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterSelect,e.mergeProps({ref:l,class:r.b()},c),i)}}),vn=e.defineComponent({name:"SyOption",inheritAttrs:!1,setup(){const s=u.useNamespace("option"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterOption,e.mergeProps({class:s.b()},o),r)}}),Ke=S.withInstall(Xn),Ge=S.withInstall(vn),es=d.AdapterSelectV2,ts=e.defineComponent({name:"SySelectV2",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("select-v2"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},scrollTo:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollTo)==null?void 0:a.call(t,n)},toggleMenu:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.toggleMenu)==null?void 0:t.call(n)}}),()=>e.h(es,e.mergeProps({ref:l,class:r.b()},c),i)}}),ns=S.withInstall(ts),ss=e.defineComponent({name:"SySkeleton",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("skeleton"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({get uiLoading(){var n;return(n=l.value)==null?void 0:n.uiLoading}}),()=>e.h(d.AdapterSkeleton,e.mergeProps({ref:l,class:r.b()},c),i)}}),os=e.defineComponent({name:"SySkeletonItem",inheritAttrs:!1,setup(){const s=u.useNamespace("skeleton-item"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSkeletonItem,e.mergeProps({class:s.b()},o),r)}}),rs=S.withInstall(ss),as=S.withInstall(os),ls=e.defineComponent({name:"SySlider",inheritAttrs:!1,setup(){const s=u.useNamespace("slider"),o=e.useAttrs(),r=e.useSlots(),c=e.ref();return()=>e.h(d.AdapterSlider,e.mergeProps({ref:c,class:s.b()},o),r)}}),cs=S.withInstall(ls),is=e.defineComponent({name:"SySpace",inheritAttrs:!1,setup(){const s=u.useNamespace("space"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSpace,e.mergeProps({class:s.b()},o),r)}}),ds=S.withInstall(is),ps=e.defineComponent({name:"SySteps",inheritAttrs:!1,setup(){const s=u.useNamespace("steps"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterSteps,e.mergeProps({class:s.b()},o),r)}}),ms=e.defineComponent({name:"SyStep",inheritAttrs:!1,setup(){const s=u.useNamespace("step"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterStep,e.mergeProps({class:s.b()},o),r)}}),fs=S.withInstall(ps),us=S.withInstall(ms),hs=e.defineComponent({name:"SySwitch",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("switch"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterSwitch,e.mergeProps({ref:l,class:r.b()},c),i)}}),Ce=S.withInstall(hs),Ss=e.defineComponent({name:"SyTable",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("table"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({clearSelection:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clearSelection)==null?void 0:t.call(n)},getSelectionRows:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.getSelectionRows)==null?void 0:t.call(n)},toggleRowSelection:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.toggleRowSelection)==null?void 0:a.call(t,...n)},toggleAllSelection:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.toggleAllSelection)==null?void 0:t.call(n)},toggleRowExpansion:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.toggleRowExpansion)==null?void 0:a.call(t,...n)},setCurrentRow:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCurrentRow)==null?void 0:a.call(t,...n)},clearSort:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.clearSort)==null?void 0:t.call(n)},clearFilter:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.clearFilter)==null?void 0:a.call(t,...n)},doLayout:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.doLayout)==null?void 0:t.call(n)},sort:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.sort)==null?void 0:a.call(t,...n)},scrollTo:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.scrollTo)==null?void 0:a.call(t,...n)},setScrollTop:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollTop)==null?void 0:a.call(t,...n)},setScrollLeft:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setScrollLeft)==null?void 0:a.call(t,...n)}}),()=>e.h(d.AdapterTable,e.mergeProps({ref:l,class:r.b()},c),i)}}),ys=e.defineComponent({name:"SyTableColumn",inheritAttrs:!1,setup(){const s=u.useNamespace("table-column"),o=e.useAttrs(),r=e.useSlots();return()=>{const c=r.default?F(k({},r),{default:(...i)=>{var l;return((l=r.default(...i))!=null?l:[]).map(n=>{var t;return((t=n==null?void 0:n.type)==null?void 0:t.name)==="SyTableColumn"?e.h(d.AdapterTableColumn,n.props,n.children):n})}}):r;return e.h(d.AdapterTableColumn,e.mergeProps({class:s.b()},o),c)}}}),Ve=S.withInstall(Ss),Y=S.withInstall(ys),gs=e.defineComponent({name:"SyTabs",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("tabs"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({get currentName(){var n;return(n=l.value)==null?void 0:n.currentName},get tabNavRef(){var n;return(n=l.value)==null?void 0:n.tabNavRef}}),()=>e.h(d.AdapterTabs,e.mergeProps({ref:l,class:r.b()},c),i)}}),Cs=e.defineComponent({name:"SyTabPane",inheritAttrs:!1,setup(){const s=u.useNamespace("tab-pane"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterTabPane,e.mergeProps({class:s.b()},o),r)}}),bs=S.withInstall(gs),ws=S.withInstall(Cs),As=e.defineComponent({name:"SyTag",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("tag"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({ref:()=>l.value}),()=>e.h(d.AdapterTag,e.mergeProps({ref:l,class:r.b()},c),i)}}),be=S.withInstall(As),ks=e.defineComponent({name:"SyText",inheritAttrs:!1,setup(){const s=u.useNamespace("text"),o=e.useAttrs(),r=e.useSlots();return()=>e.h(d.AdapterText,e.mergeProps({class:s.b()},o),r)}}),Ns=S.withInstall(ks),Ps=e.defineComponent({name:"SyTimePicker",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("time-picker"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},handleOpen:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleOpen)==null?void 0:t.call(n)},handleClose:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.handleClose)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterTimePicker,e.mergeProps({ref:l,class:r.b()},c),i)}}),We=S.withInstall(Ps),Bs=e.defineComponent({name:"SyTimeSelect",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("time-select"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)}}),()=>e.h(d.AdapterTimeSelect,e.mergeProps({ref:l,class:r.b()},c),i)}}),Qe=S.withInstall(Bs);function xs(s,o){var n;const r=k({},s),c=r.class,i=(n=r.popperClass)!=null?n:r["popper-class"];delete r.class,delete r.popperClass,delete r["popper-class"];const l=[o,i,c].flat(10).filter(t=>typeof t=="string"&&t.length>0);return{rest:r,popperClass:l.length?l:[o]}}const Vs=e.defineComponent({name:"SyTooltip",inheritAttrs:!1,setup(){const s=u.useNamespace("tooltip"),o=e.useAttrs(),r=e.useSlots();return()=>{const{rest:c,popperClass:i}=xs(o,s.b());return e.h(d.AdapterTooltip,e.mergeProps(c,{popperClass:i}),r)}}}),pe=S.withInstall(Vs),Is=e.defineComponent({name:"SyTree",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("tree"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({filter:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.filter)==null?void 0:a.call(t,...n)},updateKeyChildren:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.updateKeyChildren)==null?void 0:a.call(t,...n)},getCheckedNodes:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCheckedNodes)==null?void 0:a.call(t,...n)},getCheckedKeys:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCheckedKeys)==null?void 0:a.call(t,...n)},setCheckedNodes:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCheckedNodes)==null?void 0:a.call(t,...n)},setCheckedKeys:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCheckedKeys)==null?void 0:a.call(t,...n)},setChecked:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setChecked)==null?void 0:a.call(t,...n)},getHalfCheckedNodes:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getHalfCheckedNodes)==null?void 0:a.call(t,...n)},getHalfCheckedKeys:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getHalfCheckedKeys)==null?void 0:a.call(t,...n)},getCurrentKey:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCurrentKey)==null?void 0:a.call(t,...n)},getCurrentNode:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getCurrentNode)==null?void 0:a.call(t,...n)},setCurrentKey:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCurrentKey)==null?void 0:a.call(t,...n)},setCurrentNode:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.setCurrentNode)==null?void 0:a.call(t,...n)},getNode:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.getNode)==null?void 0:a.call(t,...n)},remove:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.remove)==null?void 0:a.call(t,...n)},append:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.append)==null?void 0:a.call(t,...n)},insertBefore:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.insertBefore)==null?void 0:a.call(t,...n)},insertAfter:(...n)=>{var t,a;return(a=(t=l.value)==null?void 0:t.insertAfter)==null?void 0:a.call(t,...n)}}),()=>e.h(d.AdapterTree,e.mergeProps({ref:l,class:r.b()},c),i)}}),Ts=S.withInstall(Is),Rs=e.defineComponent({name:"SyTreeSelect",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("tree-select"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({focus:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.focus)==null?void 0:t.call(n)},blur:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.blur)==null?void 0:t.call(n)},filter:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.filter)==null?void 0:a.call(t,n)},updateKeyChildren:(n,t)=>{var a,g;return(g=(a=l.value)==null?void 0:a.updateKeyChildren)==null?void 0:g.call(a,n,t)}}),()=>e.h(d.AdapterTreeSelect,e.mergeProps({ref:l,class:r.b()},c),i)}}),_s=S.withInstall(Rs),$s=e.defineComponent({name:"SyUpload",inheritAttrs:!1,setup(s,{expose:o}){const r=u.useNamespace("upload"),c=e.useAttrs(),i=e.useSlots(),l=e.ref();return o({abort:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.abort)==null?void 0:a.call(t,n)},submit:()=>{var n,t;return(t=(n=l.value)==null?void 0:n.submit)==null?void 0:t.call(n)},clearFiles:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.clearFiles)==null?void 0:a.call(t,n)},handleStart:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.handleStart)==null?void 0:a.call(t,n)},handleRemove:n=>{var t,a;return(a=(t=l.value)==null?void 0:t.handleRemove)==null?void 0:a.call(t,n)}}),()=>e.h(d.AdapterUpload,e.mergeProps({ref:l,class:r.b()},c),i)}}),Ds=S.withInstall($s),Ms={input:ke,"input-number":Ee,"time-picker":We,"time-select":Qe,autocomplete:d.AdapterAutocomplete,switch:Ce,slider:d.AdapterSlider,"color-picker":d.AdapterColorPicker},Ie={input:s=>({placeholder:s.placeholder,clearable:s.clearable,style:"width: 100%"}),"input-number":s=>({placeholder:s.placeholder,style:"width: 100%"}),"time-picker":s=>({placeholder:s.placeholder,clearable:s.clearable,style:"width: 100%"}),"time-select":s=>({placeholder:s.placeholder,clearable:s.clearable,style:"width: 100%"}),autocomplete:s=>({placeholder:s.placeholder,clearable:s.clearable,style:"width: 100%"}),switch:()=>({}),slider:()=>({style:"width: 100%; padding: 0 6px"}),"color-picker":()=>({})};function Ls(s){return s?Object.fromEntries(Object.entries(s).map(([o,r])=>[o.startsWith("on")?o:`on${o[0].toUpperCase()}${o.slice(1)}`,r])):{}}const Ye=e.defineComponent({name:"ProFormItem",props:{schema:{type:Object,required:!0},model:{type:Object,required:!0},modelValue:{default:void 0}},emits:["update:modelValue"],setup(s,{emit:o}){const r=e.inject("proTableEnumMap",{value:new Map}),c=e.computed({get:()=>s.modelValue,set:m=>o("update:modelValue",m)}),i=e.computed(()=>{var m,f;return(f=(m=s.schema.fieldNames)==null?void 0:m.label)!=null?f:"label"}),l=e.computed(()=>{var m,f;return(f=(m=s.schema.fieldNames)==null?void 0:m.value)!=null?f:"value"}),n=e.computed(()=>{var m,f;return(f=(m=s.schema.fieldNames)==null?void 0:m.children)!=null?f:"children"}),t=e.computed(()=>{var m,f;return(m=s.schema.options)!=null&&m.length?s.schema.options:(f=r.value.get(s.schema.field))!=null?f:[]}),a=e.computed(()=>{const{label:m,value:f}={label:i.value,value:l.value};return m==="label"&&f==="value"?t.value:t.value.map(y=>F(k({},y),{label:y[m],value:y[f]}))}),g=e.computed(()=>{const m=k({},s.schema.props),{label:f,value:y,children:B}={label:i.value,value:l.value,children:n.value};return F(k({},m),{props:F(k({},m.props),{label:f,children:B}),nodeKey:y})}),b=e.computed(()=>{const m=k({},s.schema.props),{label:f,value:y,children:B}={label:i.value,value:l.value,children:n.value};return F(k({},m),{props:F(k({},m.props),{label:f,value:y,children:B})})}),N=e.computed(()=>k({},s.schema.props)),V=e.computed(()=>{var f,y,B;const m=(y=(f=s.schema.props)==null?void 0:f.type)!=null?y:"";return["daterange","datetimerange","monthrange","yearrange"].includes(m)||!!((B=s.schema.props)!=null&&B.isRange)}),T=e.computed(()=>{var f,y;if(((f=s.schema.props)==null?void 0:f.placeholder)!=null)return s.schema.props.placeholder;const m=(y=s.schema.component)!=null?y:"input";return["input","input-number","autocomplete"].includes(m)?"请输入":"请选择"}),C=e.computed(()=>{var m;return((m=s.schema.props)==null?void 0:m.clearable)!=null?s.schema.props.clearable:s.schema.defaultValue==null}),P=e.computed(()=>{var f,y,B;const m=k({},s.schema.props);return V.value?F(k({},m),{rangeSeparator:(f=m.rangeSeparator)!=null?f:"至",startPlaceholder:(y=m.startPlaceholder)!=null?y:"开始时间",endPlaceholder:(B=m.endPlaceholder)!=null?B:"结束时间",clearable:C.value}):F(k({},m),{placeholder:T.value,clearable:C.value})});return()=>{var I,E,j,M;const{schema:m}=s,f=(I=m.component)!=null?I:"input",y=Ls(m.events),B={modelValue:c.value,"onUpdate:modelValue":D=>c.value=D};if(m.render)return m.render(s.model);if(f==="text")return e.h("span",{class:"sy-pro-form-item__text"},String((E=c.value)!=null?E:""));if(f==="select")return e.h(Ke,F(k(k(k({},B),N.value),y),{placeholder:T.value,clearable:C.value,style:"width: 100%"}),{default:e.withCtx(()=>t.value.map(D=>e.h(Ge,{key:D[l.value],label:D[i.value],value:D[l.value]})))});if(f==="select-v2")return e.h(d.AdapterSelectV2,F(k(k(k({},B),N.value),y),{placeholder:T.value,clearable:C.value,options:a.value,style:"width: 100%"}));if(f==="tree-select")return e.h(d.AdapterTreeSelect,F(k(k(k({},B),g.value),y),{placeholder:T.value,clearable:C.value,data:t.value,style:"width: 100%"}));if(f==="cascader")return e.h(Te,F(k(k(k({},B),b.value),y),{placeholder:T.value,clearable:C.value,options:t.value,style:"width: 100%"}));if(f==="radio"||f==="radio-button"){const D=f==="radio"?xe:He;return e.h(Ue,k(k(k({},B),N.value),y),{default:()=>t.value.map(z=>e.h(D,{key:z[l.value],value:z[l.value]},{default:()=>String(z[i.value])}))})}if(f==="checkbox")return e.h(_e,k(k(k({},B),N.value),y),{default:()=>t.value.map(D=>e.h(Re,{key:D[l.value],value:D[l.value]},{default:()=>String(D[i.value])}))});if(f==="date-picker")return e.h($e,F(k(k(k({},B),P.value),y),{style:"width: 100%"}));const $=Ms[f];if($){const D=(M=(j=Ie[f])==null?void 0:j.call(Ie,{placeholder:T.value,clearable:C.value}))!=null?M:{};return e.h($,k(k(k(k({},B),N.value),y),D))}return e.h(ke,F(k(k(k({},B),N.value),y),{placeholder:T.value,clearable:C.value,style:"width: 100%"}))}}}),Fs=2,Es=e.defineComponent({name:"SyProForm",__name:"ProForm",props:{model:{},schema:{},cols:{default:4},labelWidth:{default:"auto"},labelPosition:{default:"right"},disabled:{type:Boolean,default:!1},size:{},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},queryBtnText:{default:"查询"},resetBtnText:{default:"重置"},loading:{type:Boolean,default:!1},collapsible:{type:[Boolean,Number],default:!1},defaultCollapsed:{type:Boolean,default:!0},buttonAlign:{default:"inline"}},emits:["search","reset"],setup(s,{expose:o,emit:r}){const c=e.useSlots(),i=s,l=r;u.useNamespace("pro-form");const n=e.ref(),t=e.ref(i.defaultCollapsed),a=e.ref("xl");function g(){const h=window.innerWidth;return h<768?"xs":h<992?"sm":h<1200?"md":h<1920?"lg":"xl"}function b(){a.value=g()}e.onMounted(()=>{a.value=g(),window.addEventListener("resize",b)}),e.onUnmounted(()=>{window.removeEventListener("resize",b)});const N=e.computed(()=>i.schema.filter(h=>typeof h.hidden=="function"?!h.hidden(i.model):!h.hidden).sort((h,x)=>{var A,_;return((A=h.order)!=null?A:0)-((_=x.order)!=null?_:0)}));function V(h){var A,_,L;const x=a.value;return(L=(_=(A=h[x])==null?void 0:A.span)!=null?_:h.span)!=null?L:1}function T(h){var A,_,L;const x=a.value;return(L=(_=(A=h[x])==null?void 0:A.offset)!=null?_:h.offset)!=null?L:0}const C=e.computed(()=>{var A,_,L,X,oe,v;const h=i.cols;if(typeof h=="number")return h;const x=a.value;return(v=(oe=(X=(L=(_=(A=h==null?void 0:h[x])!=null?A:h==null?void 0:h.xl)!=null?_:h==null?void 0:h.lg)!=null?L:h==null?void 0:h.md)!=null?X:h==null?void 0:h.sm)!=null?oe:h==null?void 0:h.xs)!=null?v:4}),P=e.computed(()=>{const h=i.collapsible;return typeof h=="number"&&h>0?h:1}),m=e.computed(()=>{if(!i.collapsible)return-1;const h=i.buttonAlign==="inline"&&(i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons),x=C.value*P.value-(h?Fs:0);if(x<=0)return 0;let A=0;for(let _=0;_<N.value.length;_++){const L=N.value[_];if(A+=V(L)+T(L),A>x)return _}return-1}),f=e.computed(()=>m.value>=0),y=e.computed(()=>({display:"grid",gridTemplateColumns:`repeat(${C.value}, 1fr)`,gap:"0 16px"}));function B(h){const x=V(h),A=T(h),_={gridColumn:`span ${x}`};return A>0&&(_.marginLeft=`calc(${A/C.value*100}% + ${A*16}px)`),_}const $=e.computed(()=>{const h=C.value,x=N.value,A=i.collapsible&&t.value&&m.value>=0?m.value:x.length;let _=0;for(let L=0;L<A;L++){const X=V(x[L]),oe=T(x[L]),v=_+X+oe;_=v>=h?v%h:v}return _}),I=e.computed(()=>{const h=$.value;return{gridColumn:`${h===0?1:h+1} / -1`}}),E={left:"flex-start",center:"center",right:"flex-end"},j=e.computed(()=>{var x;const h={display:"flex",alignItems:"center",justifyContent:(x=E[i.buttonAlign])!=null?x:"flex-start",gap:"8px",marginTop:"4px",flexWrap:"wrap"};if(i.buttonAlign==="left"&&i.labelPosition!=="top"){const A=i.labelWidth;A&&A!=="auto"&&(h.paddingLeft=typeof A=="number"?`${A}px`:String(A))}return h}),M=e.computed(()=>i.showQueryBtn||i.showResetBtn||!!c["extra-buttons"]||!!c.buttons);function D(h,x){i.model[h]=x}function z(){var h;(h=n.value)==null||h.validate(x=>{x&&l("search",i.model)})}function K(){var h,x;for(const A of i.schema)D(A.field,(h=A.defaultValue)!=null?h:null);(x=n.value)==null||x.clearValidate(),l("reset",i.model)}return o({formRef:n,validate:h=>{var x;return(x=n.value)==null?void 0:x.validate(h)},validateField:(h,x)=>{var A;return(A=n.value)==null?void 0:A.validateField(h,x)},resetFields:K,clearValidate:h=>{var x;return(x=n.value)==null?void 0:x.clearValidate(h)}}),(h,x)=>(e.openBlock(),e.createBlock(e.unref(Le),{ref_key:"formRef",ref:n,class:"sy-pro-form",model:s.model,"label-width":s.labelWidth,"label-position":s.labelPosition,disabled:s.disabled,size:s.size,onSubmit:x[2]||(x[2]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"sy-pro-form__grid",style:e.normalizeStyle(y.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(A,_)=>{var L;return e.openBlock(),e.createElementBlock(e.Fragment,{key:A.field},[!s.collapsible||!t.value||m.value<0||_<m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item",style:e.normalizeStyle(B(A))},[e.createCommentVNode(" slot 类型:渲染具名插槽,用户自行提供完整的 sy-form-item 内容 "),A.component==="slot"?e.renderSlot(h.$slots,A.field,{key:0,item:A}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 内置组件类型:走原有渲染路径 "),e.createVNode(e.unref(Fe),e.mergeProps({prop:A.field,label:(L=A.label)!=null?L:""},{ref_for:!0},A.labelWidth!=null?{labelWidth:A.labelWidth}:{},{rules:A.rules}),e.createSlots({default:e.withCtx(()=>[e.createVNode(Ye,{"model-value":s.model[A.field],schema:A,model:s.model,"onUpdate:modelValue":X=>D(A.field,X)},null,8,["model-value","schema","model","onUpdate:modelValue"])]),_:2},[A.tooltip?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(A.label),1),e.createVNode(e.unref(pe),{content:A.tooltip,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(le),{class:"sy-pro-form__tip-icon",style:{"margin-left":"4px","vertical-align":"middle",cursor:"pointer"}},{default:e.withCtx(()=>[e.createVNode(e.unref(G.InfoFilled))]),_:1})]),_:1},8,["content"])]),key:"0"}:void 0]),1040,["prop","label","rules"])],2112))],4)):e.createCommentVNode("v-if",!0)],64)}),128)),e.createCommentVNode(" 默认插槽:额外自定义字段 "),e.renderSlot(h.$slots,"default"),e.createCommentVNode(" 按钮区 —— inline 模式:在网格内贴右 "),s.buttonAlign==="inline"&&(M.value||s.collapsible&&f.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__grid-item sy-pro-form__buttons",style:e.normalizeStyle(I.value)},[e.renderSlot(h.$slots,"buttons",{},()=>[s.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(U),{key:0,type:"primary",loading:s.loading,onClick:z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),s.showResetBtn?(e.openBlock(),e.createBlock(e.unref(U),{key:1,onClick:K},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"extra-buttons")]),s.collapsible&&f.value?(e.openBlock(),e.createBlock(e.unref(U),{key:0,type:"primary",link:"",onClick:x[0]||(x[0]=A=>t.value=!t.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value?"展开":"合并")+" ",1),e.createVNode(e.unref(le),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.value?e.unref(G.ArrowDown):e.unref(G.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)],4),e.createCommentVNode(" 按钮区 —— 独立成行模式(left / center / right) "),s.buttonAlign!=="inline"&&(M.value||s.collapsible&&f.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"sy-pro-form__footer",style:e.normalizeStyle(j.value)},[e.renderSlot(h.$slots,"buttons",{},()=>[s.showQueryBtn?(e.openBlock(),e.createBlock(e.unref(U),{key:0,type:"primary",loading:s.loading,onClick:z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.queryBtnText),1)]),_:1},8,["loading"])):e.createCommentVNode("v-if",!0),s.showResetBtn?(e.openBlock(),e.createBlock(e.unref(U),{key:1,onClick:K},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.resetBtnText),1)]),_:1})):e.createCommentVNode("v-if",!0),e.renderSlot(h.$slots,"extra-buttons")]),s.collapsible&&f.value?(e.openBlock(),e.createBlock(e.unref(U),{key:0,type:"primary",link:"",onClick:x[1]||(x[1]=A=>t.value=!t.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value?"展开":"合并")+" ",1),e.createVNode(e.unref(le),{style:{"margin-left":"2px"}},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.value?e.unref(G.ArrowDown):e.unref(G.ArrowUp))))]),_:1})]),_:1})):e.createCommentVNode("v-if",!0)],4)):e.createCommentVNode("v-if",!0)]),_:3},8,["model","label-width","label-position","disabled","size"]))}}),Je=S.withInstall(Es);function zs(s="id"){const o=e.ref([]),r=e.computed(()=>o.value.length>0),c=e.computed(()=>o.value.map(n=>n[s]));function i(n){o.value=n}function l(){o.value=[]}return{selectedList:o,isSelected:r,selectedListIds:c,selectionChange:i,clearSelection:l}}function Os(s){const{request:o,params:r,searchParam:c,postData:i,requestError:l,pagination:n=!0,staticData:t}=s,a=e.ref(!1),g=e.ref([]),b=e.reactive({pageNum:1,pageSize:10,total:0}),N=e.reactive({}),V=e.reactive({}),T=e.computed(()=>{if(!(t!=null&&t.value))return g.value;if(!n)return t.value;const I=(b.pageNum-1)*b.pageSize;return t.value.slice(I,I+b.pageSize)});function C(I,E){for(const[j,M]of Object.entries(I))(M!=null&&M!==""||M===!1||M===0)&&(E[j]=M)}function P(){const I={};return C(V,I),c!=null&&c.value&&C(c.value,I),I}function m(){return we(this,null,function*(){var I,E,j;if(t!=null&&t.value){b.total=t.value.length;return}if(o)try{a.value=!0;const M=P(),D=k(k(k({},N),M),(I=r==null?void 0:r.value)!=null?I:{});n&&(D.pageNum=b.pageNum,D.pageSize=b.pageSize);const z=yield o(D);if(!z.success){l==null||l(z);return}let K=(E=z.data)!=null?E:[];i&&(K=i(K)),g.value=K,n&&(b.total=(j=z.total)!=null?j:0)}catch(M){l==null||l(M)}finally{a.value=!1}})}function f(){b.pageNum=1,m()}function y(){var I;b.pageNum=1;for(const E of Object.keys(V))V[E]=(I=N[E])!=null?I:null;m()}function B(I){b.pageSize=I,b.pageNum=1,m()}function $(I){b.pageNum=I,m()}return r&&e.watch(r,()=>m(),{deep:!0}),{loading:a,tableData:g,pageable:b,processTableData:T,searchParam:V,searchInitParam:N,getTableList:m,search:f,reset:y,handleSizeChange:B,handleCurrentChange:$}}function Ze(s){var r;const o=[];for(const c of s)(r=c.children)!=null&&r.length?o.push(c,...Ze(c.children)):o.push(c);return o}function qs(s,o,r){var st;const c=e.ref(),i=e.ref(),l=e.ref(),n=e.ref(s.type!=="unify"),t=e.ref(null),a=e.computed(()=>e.reactive(Ze(s.columns))),g=e.ref(new Map);function b(w){return we(this,null,function*(){var O;if(!w.enum||!w.prop)return;const R=w.enum;if(typeof R=="function"){g.value.set(w.prop,[]);try{const H=yield R();g.value.set(w.prop,H)}catch(H){}}else g.value.set(w.prop,Array.isArray(R)?R:(O=R.value)!=null?O:[])})}e.provide("proTableEnumMap",g),e.provide("proTableSlots",r);const N=e.computed(()=>a.value.filter(w=>{var R,O;return((R=w.search)==null?void 0:R.component)||((O=w.search)==null?void 0:O.render)}).sort((w,R)=>{var O,H,Q,q;return((H=(O=w.search)==null?void 0:O.order)!=null?H:0)-((q=(Q=R.search)==null?void 0:Q.order)!=null?q:0)})),V=e.computed(()=>N.value.filter(w=>{var R;return!!((R=w.search)!=null&&R.quick)}).sort((w,R)=>{var Q,q,ee,te,me,fe;const O=typeof((Q=w.search)==null?void 0:Q.quick)=="object"&&(ee=(q=w.search)==null?void 0:q.quick.order)!=null?ee:0,H=typeof((te=R.search)==null?void 0:te.quick)=="object"&&(fe=(me=R.search)==null?void 0:me.quick.order)!=null?fe:0;return O-H})),T=e.computed(()=>N.value.map(w=>{var R,O,H,Q,q,ee,te,me,fe,ot,rt,at,lt,ct,it;return{field:(H=(O=(R=w.search)==null?void 0:R.key)!=null?O:w.prop)!=null?H:"",label:w.label,component:(Q=w.search)==null?void 0:Q.component,props:(q=w.search)==null?void 0:q.props,options:(()=>{var dt,pt,mt,ft,ut;if(!(!w.enum||(pt=(dt=w.search)==null?void 0:dt.component)!=null&&pt.includes("tree")))return typeof w.enum=="function"?(ft=g.value.get((mt=w.prop)!=null?mt:""))!=null?ft:void 0:Array.isArray(w.enum)?w.enum:(ut=e.unref(w.enum))!=null?ut:void 0})(),fieldNames:w.fieldNames,defaultValue:(ee=w.search)==null?void 0:ee.defaultValue,span:(te=w.search)==null?void 0:te.span,offset:(me=w.search)==null?void 0:me.offset,order:(fe=w.search)==null?void 0:fe.order,render:(ot=w.search)==null?void 0:ot.render,xs:(rt=w.search)==null?void 0:rt.xs,sm:(at=w.search)==null?void 0:at.sm,md:(lt=w.search)==null?void 0:lt.md,lg:(ct=w.search)==null?void 0:ct.lg,xl:(it=w.search)==null?void 0:it.xl}})),C=e.ref({}),P={};function m(){var w,R,O,H,Q;for(const q of Object.keys(C.value))delete C.value[q];for(const q of Object.keys(P))delete P[q];for(const q of N.value){const ee=(O=(R=(w=q.search)==null?void 0:w.key)!=null?R:q.prop)!=null?O:"",te=(Q=(H=q.search)==null?void 0:H.defaultValue)!=null?Q:null;C.value[ee]=te,P[ee]=te}}const{loading:f,processTableData:y,pageable:B,getTableList:$,handleSizeChange:I,handleCurrentChange:E}=Os({request:s.request,params:e.toRef(s,"params"),searchParam:C,postData:s.postData,requestError:s.requestError,pagination:s.pagination,staticData:e.computed(()=>s.data)});function j(){Object.assign(B,{pageNum:1}),$(),o("search")}function M(){m(),Object.assign(B,{pageNum:1}),$(),o("reset")}const{selectedList:D,isSelected:z,selectedListIds:K,selectionChange:h,clearSelection:x}=zs(s.rowKey);function A(w){var R;t.value=w[(R=s.rowKey)!=null?R:"id"]}function _(){var w,R;t.value=null,(R=(w=c.value)==null?void 0:w.setCurrentRow)==null||R.call(w,void 0)}function L(w){$()}function X(w){return s.toolButton===!0?!0:s.toolButton===!1?!1:s.toolButton.includes(w)}function oe(){n.value=!n.value}function v(){var w,R;(R=(w=l.value)==null?void 0:w.open)==null||R.call(w)}return e.onMounted(()=>we(this,null,function*(){for(const w of a.value)b(w);m(),s.manualRequest||$()})),{props:s,type:(st=s.type)!=null?st:"classic",tableRef:c,formRef:i,colSettingRef:l,flatColumns:a,enumMap:g,searchColumns:N,quickSearchColumns:V,searchSchema:T,searchParam:C,searchInitParam:P,loading:f,tableData:y,pageable:B,selectedList:D,selectedListIds:K,isSelected:z,radio:t,isShowSearch:n,getTableList:$,search:j,reset:M,clearSelection:x,clearRadio:_,handleSizeChange:I,handleCurrentChange:E,onSortChange:L,onRadioChange:A,selectionChange:h,showToolBtn:X,toggleSearch:oe,openColSetting:v}}const js={key:1,style:{color:"var(--el-text-color-placeholder)"}},Us=e.defineComponent({__name:"ColSetting",props:{columns:{}},setup(s,{expose:o}){const r=s,c=e.ref(!1),i=e.computed(()=>r.columns.filter(a=>{if(a.type&&["selection","index","expand","radio","sort"].includes(a.type))return!1;const g=a.isSetting;return g===void 0||g===!0}));e.computed(()=>i.value.every(a=>a.isShow!==!1)),e.computed(()=>{const a=i.value.length,g=i.value.filter(b=>b.isShow!==!1).length;return g>0&&g<a});const l=new WeakMap;function n(){i.value.forEach(a=>{l.has(a)||l.set(a,{isShow:a.isShow!==!1,sortable:a.sortable})})}function t(){n(),c.value=!0}return o({open:t}),(a,g)=>(e.openBlock(),e.createBlock(e.unref(De),{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=b=>c.value=b),title:"列设置",size:"380px","append-to-body":!0,class:"sy-pro-table__col-setting"},{default:e.withCtx(()=>[e.createCommentVNode(" 全选 + 重置 "),e.createCommentVNode(` <div class="sy-pro-table__col-setting-toolbar">
5
5
  <sy-checkbox :model-value="checkAll" :indeterminate="isIndeterminate" @change="onCheckAll"> 全部显示 </sy-checkbox>
@@ -33,7 +33,7 @@ import { AdapterAutocomplete as St, AdapterAlert as Qt, AdapterBacktop as Yt, Ad
33
33
  import { InfoFilled as rs, ArrowDown as ft, ArrowUp as mt, DCaret as cs, Refresh as us, Operation as is, Search as ds } from "@element-plus/icons-vue";
34
34
  import ps from "sortablejs";
35
35
  /*!
36
- * sunyard-szyy-ui v0.7.1
36
+ * sunyard-szyy-ui v0.7.2
37
37
  * (c) 2026 Sunyard SZYY Base Team
38
38
  */
39
39
  const fs = f({
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ SunyardSzyyUIAutoImportResolver: () => SunyardSzyyUIAutoImportResolver,
23
24
  SunyardSzyyUIResolver: () => SunyardSzyyUIResolver,
24
25
  debounce: () => debounce,
25
26
  deepClone: () => deepClone,
@@ -30,6 +31,40 @@ __export(index_exports, {
30
31
  module.exports = __toCommonJS(index_exports);
31
32
 
32
33
  // src/resolver.ts
34
+ var FUNCTION_API_STYLES = {
35
+ SyMessage: ["element-plus/es/components/message/style/css"],
36
+ SyMessageBox: ["element-plus/es/components/message-box/style/css"],
37
+ SyNotification: ["element-plus/es/components/notification/style/css"],
38
+ SyLoading: ["element-plus/es/components/loading/style/css"]
39
+ };
40
+ function apiNameToDir(name, prefix = "Sy") {
41
+ return name.slice(prefix.length).replace(/([A-Z])/g, "-$1").toLowerCase().slice(1);
42
+ }
43
+ function SunyardSzyyUIAutoImportResolver(options = {}) {
44
+ const { libraryName = "sunyard-szyy-ui", importStyle = true, devMode = false, importMetaUrl, fileURLToPath } = options;
45
+ return (name) => {
46
+ if (!(name in FUNCTION_API_STYLES)) return;
47
+ const dirName = apiNameToDir(name);
48
+ if (devMode && importMetaUrl && fileURLToPath) {
49
+ const styleFile = importStyle === "scss" ? "index.ts" : "css.ts";
50
+ const sideEffects2 = importStyle ? [fileURLToPath(new URL(`../packages/core/components/src/${dirName}/style/${styleFile}`, importMetaUrl))] : void 0;
51
+ return {
52
+ name,
53
+ from: fileURLToPath(new URL(`../packages/core/components/src/${dirName}/index.ts`, importMetaUrl)),
54
+ sideEffects: sideEffects2
55
+ };
56
+ }
57
+ let sideEffects;
58
+ if (importStyle) {
59
+ if (importStyle === "scss") {
60
+ sideEffects = [`${libraryName}/es/components/${dirName}/style/index`];
61
+ } else {
62
+ sideEffects = [`${libraryName}/es/components/${dirName}/style/css`];
63
+ }
64
+ }
65
+ return { name, from: libraryName, sideEffects };
66
+ };
67
+ }
33
68
  function pascalToKebab(str, prefix = "Sy") {
34
69
  return str.slice(prefix.length).replace(/([A-Z])/g, "-$1").toLowerCase().slice(1);
35
70
  }
@@ -235,6 +270,7 @@ function deepClone(obj) {
235
270
  }
236
271
  // Annotate the CommonJS export names for ESM import in node:
237
272
  0 && (module.exports = {
273
+ SunyardSzyyUIAutoImportResolver,
238
274
  SunyardSzyyUIResolver,
239
275
  debounce,
240
276
  deepClone,
@@ -0,0 +1,224 @@
1
+ import * as vue from 'vue';
2
+
3
+ /**
4
+ * 函数式 API auto-import 解析结果
5
+ */
6
+ interface AutoImportResolveResult {
7
+ name: string;
8
+ from: string;
9
+ sideEffects?: string | string[];
10
+ }
11
+ /**
12
+ * SunyardSzyyUIAutoImportResolver 配置选项
13
+ */
14
+ interface SunyardSzyyUIAutoImportResolverOptions {
15
+ /**
16
+ * 组件库名称
17
+ * @default 'sunyard-szyy-ui'
18
+ */
19
+ libraryName?: string;
20
+ /**
21
+ * 是否导入样式(包含 EP 底层 CSS 和 SY theme CSS)
22
+ * @default true
23
+ */
24
+ importStyle?: boolean | 'css' | 'scss';
25
+ /**
26
+ * 是否为源码开发模式(monorepo 内部开发)
27
+ * @default false
28
+ */
29
+ devMode?: boolean;
30
+ /**
31
+ * import.meta.url(devMode 启用时必须提供)
32
+ */
33
+ importMetaUrl?: string;
34
+ /**
35
+ * fileURLToPath 函数(devMode 启用时必须提供)
36
+ */
37
+ fileURLToPath?: (url: string | URL) => string;
38
+ }
39
+ /**
40
+ * sunyard-szyy-ui 函数式 API 自动导入 resolver
41
+ *
42
+ * 用于 `unplugin-auto-import` 插件,检测代码中 SyMessage 等函数式 API 的使用,
43
+ * 自动注入 import 语句和对应的 CSS sideEffects,无需在 main.ts 或单个文件里手动引入样式。
44
+ *
45
+ * @example
46
+ * // play/vite.config.ts
47
+ * import { SunyardSzyyUIAutoImportResolver } from '../packages/core/utils/src/resolver';
48
+ * import { fileURLToPath } from 'node:url';
49
+ *
50
+ * AutoImport({
51
+ * resolvers: [
52
+ * SunyardSzyyUIAutoImportResolver({
53
+ * devMode: true,
54
+ * importMetaUrl: import.meta.url,
55
+ * fileURLToPath,
56
+ * importStyle: 'scss' // 'css' | 'scss' | true(默认 css) | false(不注入样式)
57
+ * })
58
+ * ]
59
+ * })
60
+ */
61
+ declare function SunyardSzyyUIAutoImportResolver(options?: SunyardSzyyUIAutoImportResolverOptions): (name: string) => AutoImportResolveResult | void;
62
+ /**
63
+ * 组件解析器类型(兼容 unplugin-vue-components)
64
+ */
65
+ interface ComponentResolver {
66
+ type: 'component' | 'directive';
67
+ resolve: (name: string) => ComponentResolveResult | void | null | undefined;
68
+ }
69
+ /**
70
+ * 组件解析结果
71
+ */
72
+ interface ComponentResolveResult {
73
+ name?: string;
74
+ from: string;
75
+ sideEffects?: string | string[];
76
+ [key: string]: any;
77
+ }
78
+ /**
79
+ * Resolver 配置选项
80
+ */
81
+ interface SunyardSzyyUIResolverOptions {
82
+ /**
83
+ * 组件前缀
84
+ * @default 'Sy'
85
+ */
86
+ prefix?: string;
87
+ /**
88
+ * 是否导入样式
89
+ * @default true
90
+ */
91
+ importStyle?: boolean | 'css' | 'scss';
92
+ /**
93
+ * 组件库名称
94
+ * @default 'sunyard-szyy-ui'
95
+ */
96
+ libraryName?: string;
97
+ /**
98
+ * 样式包名称
99
+ * @default 'sunyard-szyy-ui/theme-chalk'
100
+ */
101
+ styleLibraryName?: string;
102
+ /**
103
+ * 组件目录名称
104
+ * @default '@sunyard-szyy-ui/components'
105
+ */
106
+ componentsLibraryName?: string;
107
+ /**
108
+ * 是否为源码开发模式(monorepo 内部开发)
109
+ *
110
+ * 启用后会自动使用 monorepo 源码路径,无需手动配置 dirResolver
111
+ *
112
+ * @default false
113
+ *
114
+ * @example
115
+ * // 在 monorepo 开发环境中使用
116
+ * import { fileURLToPath } from 'node:url';
117
+ *
118
+ * SunyardSzyyUIResolver({
119
+ * devMode: true,
120
+ * importMetaUrl: import.meta.url,
121
+ * fileURLToPath: fileURLToPath
122
+ * })
123
+ */
124
+ devMode?: boolean;
125
+ /**
126
+ * import.meta.url(devMode 启用时必须提供)
127
+ *
128
+ * 用于解析 monorepo 源码的绝对路径
129
+ *
130
+ * @example
131
+ * import.meta.url
132
+ */
133
+ importMetaUrl?: string;
134
+ /**
135
+ * fileURLToPath 函数(devMode 启用时必须提供)
136
+ *
137
+ * 用于将 URL 转换为文件系统路径
138
+ *
139
+ * @example
140
+ * import { fileURLToPath } from 'node:url';
141
+ * // 然后传入: fileURLToPath: fileURLToPath
142
+ */
143
+ fileURLToPath?: (url: string | URL) => string;
144
+ /**
145
+ * 自定义目录解析器(高级用法,一般不需要)
146
+ *
147
+ * 如果提供了此选项,会覆盖 devMode 的默认行为
148
+ *
149
+ * @deprecated 推荐使用 devMode + importMetaUrl 替代
150
+ */
151
+ dirResolver?: (name: string) => {
152
+ /**
153
+ * 组件源码路径(开发模式使用)
154
+ */
155
+ componentPath?: string;
156
+ /**
157
+ * 样式源码路径(开发模式使用)
158
+ */
159
+ stylePath?: string;
160
+ };
161
+ }
162
+ /**
163
+ * sunyard-szyy-ui 组件自动导入 resolver
164
+ *
165
+ * 返回 resolver 数组(component + directive),可直接展开到 `Components({ resolvers: [...] })`。
166
+ *
167
+ * 支持组件和样式的按需自动导入,适用于:
168
+ * - ✅ 外部项目使用(npm 包方式)
169
+ * - ✅ Monorepo 内部开发(源码方式)
170
+ *
171
+ * @example
172
+ * // 外部项目使用
173
+ * Components({ resolvers: [...SunyardSzyyUIResolver()] })
174
+ *
175
+ * @example
176
+ * // Monorepo 内部开发
177
+ * Components({
178
+ * resolvers: [
179
+ * ...SunyardSzyyUIResolver({
180
+ * devMode: true,
181
+ * importMetaUrl: import.meta.url,
182
+ * fileURLToPath
183
+ * })
184
+ * ]
185
+ * })
186
+ */
187
+ declare function SunyardSzyyUIResolver(options?: SunyardSzyyUIResolverOptions): ComponentResolver[];
188
+
189
+ type SFCWithInstall<T> = T & {
190
+ install(app: vue.App): void;
191
+ };
192
+ declare function withInstall<T>(component: T & {
193
+ name?: string;
194
+ }, installName?: string): SFCWithInstall<T>;
195
+
196
+ /**
197
+ * 防抖函数
198
+ * @param fn 要防抖的函数
199
+ * @param delay 延迟时间(毫秒)
200
+ * @returns 防抖后的函数
201
+ */
202
+ declare function debounce<T extends (...args: any[]) => any>(fn: T, delay?: number): (...args: Parameters<T>) => void;
203
+ /**
204
+ * 节流函数
205
+ * @param fn 要节流的函数
206
+ * @param delay 延迟时间(毫秒)
207
+ * @returns 节流后的函数
208
+ */
209
+ declare function throttle<T extends (...args: any[]) => any>(fn: T, delay?: number): (...args: Parameters<T>) => void;
210
+ /**
211
+ * 格式化日期
212
+ * @param date 日期对象或时间戳
213
+ * @param format 格式化字符串,默认 'YYYY-MM-DD HH:mm:ss'
214
+ * @returns 格式化后的日期字符串
215
+ */
216
+ declare function formatDate(date: Date | number, format?: string): string;
217
+ /**
218
+ * 深拷贝
219
+ * @param obj 要拷贝的对象
220
+ * @returns 拷贝后的对象
221
+ */
222
+ declare function deepClone<T>(obj: T): T;
223
+
224
+ export { type AutoImportResolveResult, type ComponentResolveResult, type ComponentResolver, type SFCWithInstall, SunyardSzyyUIAutoImportResolver, type SunyardSzyyUIAutoImportResolverOptions, SunyardSzyyUIResolver, type SunyardSzyyUIResolverOptions, debounce, deepClone, formatDate, throttle, withInstall };