sunyard-szyy-ui 0.7.0 → 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 (603) hide show
  1. package/README.md +10 -3
  2. package/dist/hooks/index.d.cts +18 -0
  3. package/dist/index.full.js +2 -2
  4. package/dist/index.full.mjs +30 -30
  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/hooks/use-pro-table.d.ts.map +1 -1
  269. package/es/pro-table/src/hooks/use-pro-table.mjs +1 -1
  270. package/es/pro-table/src/variants/classic/index.d.ts +2 -0
  271. package/es/pro-table/src/variants/classic/index.d.ts.map +1 -0
  272. package/es/pro-table/src/variants/custom/index.d.ts +2 -0
  273. package/es/pro-table/src/variants/custom/index.d.ts.map +1 -0
  274. package/es/pro-table/src/variants/unify/index.d.ts +2 -0
  275. package/es/pro-table/src/variants/unify/index.d.ts.map +1 -0
  276. package/es/pro-table/style/index.d.ts +19 -0
  277. package/es/pro-table/style/index.d.ts.map +1 -0
  278. package/es/progress/index.d.ts +2 -0
  279. package/es/progress/index.d.ts.map +1 -0
  280. package/es/progress/style/index.d.ts +3 -0
  281. package/es/progress/style/index.d.ts.map +1 -0
  282. package/es/radio/index.d.ts +3 -0
  283. package/es/radio/index.d.ts.map +1 -0
  284. package/es/radio/style/index.d.ts +3 -0
  285. package/es/radio/style/index.d.ts.map +1 -0
  286. package/es/scrollbar/index.d.ts +2 -0
  287. package/es/scrollbar/index.d.ts.map +1 -0
  288. package/es/scrollbar/style/index.d.ts +3 -0
  289. package/es/scrollbar/style/index.d.ts.map +1 -0
  290. package/es/search-bar/index.d.ts +2 -0
  291. package/es/search-bar/index.d.ts.map +1 -0
  292. package/es/search-bar/style/index.d.ts +6 -0
  293. package/es/search-bar/style/index.d.ts.map +1 -0
  294. package/es/select/index.d.ts +2 -0
  295. package/es/select/index.d.ts.map +1 -0
  296. package/es/select/style/index.d.ts +3 -0
  297. package/es/select/style/index.d.ts.map +1 -0
  298. package/es/select-v2/index.d.ts +2 -0
  299. package/es/select-v2/index.d.ts.map +1 -0
  300. package/es/select-v2/style/index.d.ts +3 -0
  301. package/es/select-v2/style/index.d.ts.map +1 -0
  302. package/es/skeleton/index.d.ts +2 -0
  303. package/es/skeleton/index.d.ts.map +1 -0
  304. package/es/skeleton/style/index.d.ts +4 -0
  305. package/es/skeleton/style/index.d.ts.map +1 -0
  306. package/es/slider/index.d.ts +2 -0
  307. package/es/slider/index.d.ts.map +1 -0
  308. package/es/slider/style/index.d.ts +3 -0
  309. package/es/slider/style/index.d.ts.map +1 -0
  310. package/es/space/index.d.ts +2 -0
  311. package/es/space/index.d.ts.map +1 -0
  312. package/es/space/style/index.d.ts +3 -0
  313. package/es/space/style/index.d.ts.map +1 -0
  314. package/es/steps/index.d.ts +2 -0
  315. package/es/steps/index.d.ts.map +1 -0
  316. package/es/steps/style/index.d.ts +4 -0
  317. package/es/steps/style/index.d.ts.map +1 -0
  318. package/es/switch/index.d.ts +2 -0
  319. package/es/switch/index.d.ts.map +1 -0
  320. package/es/switch/style/index.d.ts +3 -0
  321. package/es/switch/style/index.d.ts.map +1 -0
  322. package/es/table/index.d.ts +2 -0
  323. package/es/table/index.d.ts.map +1 -0
  324. package/es/table/style/index.d.ts +3 -0
  325. package/es/table/style/index.d.ts.map +1 -0
  326. package/es/tabs/index.d.ts +2 -0
  327. package/es/tabs/index.d.ts.map +1 -0
  328. package/es/tabs/style/index.d.ts +4 -0
  329. package/es/tabs/style/index.d.ts.map +1 -0
  330. package/es/tag/index.d.ts +2 -0
  331. package/es/tag/index.d.ts.map +1 -0
  332. package/es/tag/style/index.d.ts +3 -0
  333. package/es/tag/style/index.d.ts.map +1 -0
  334. package/es/text/index.d.ts +2 -0
  335. package/es/text/index.d.ts.map +1 -0
  336. package/es/text/style/index.d.ts +3 -0
  337. package/es/text/style/index.d.ts.map +1 -0
  338. package/es/time-picker/index.d.ts +2 -0
  339. package/es/time-picker/index.d.ts.map +1 -0
  340. package/es/time-picker/style/index.d.ts +3 -0
  341. package/es/time-picker/style/index.d.ts.map +1 -0
  342. package/es/time-select/index.d.ts +2 -0
  343. package/es/time-select/index.d.ts.map +1 -0
  344. package/es/time-select/style/index.d.ts +3 -0
  345. package/es/time-select/style/index.d.ts.map +1 -0
  346. package/es/tooltip/index.d.ts +2 -0
  347. package/es/tooltip/index.d.ts.map +1 -0
  348. package/es/tooltip/style/index.d.ts +3 -0
  349. package/es/tooltip/style/index.d.ts.map +1 -0
  350. package/es/tree/index.d.ts +2 -0
  351. package/es/tree/index.d.ts.map +1 -0
  352. package/es/tree/style/index.d.ts +3 -0
  353. package/es/tree/style/index.d.ts.map +1 -0
  354. package/es/tree-select/index.d.ts +2 -0
  355. package/es/tree-select/index.d.ts.map +1 -0
  356. package/es/tree-select/style/index.d.ts +3 -0
  357. package/es/tree-select/style/index.d.ts.map +1 -0
  358. package/es/upload/index.d.ts +2 -0
  359. package/es/upload/index.d.ts.map +1 -0
  360. package/es/upload/style/index.d.ts +3 -0
  361. package/es/upload/style/index.d.ts.map +1 -0
  362. package/es/utils/dist/index.mjs +3 -3
  363. package/es/version.d.ts +1 -1
  364. package/es/version.mjs +2 -2
  365. package/lib/alert/index.d.ts +2 -0
  366. package/lib/alert/style/index.d.ts +3 -0
  367. package/lib/autocomplete/index.d.ts +2 -0
  368. package/lib/autocomplete/style/index.d.ts +3 -0
  369. package/lib/backtop/index.d.ts +2 -0
  370. package/lib/backtop/style/index.d.ts +3 -0
  371. package/lib/button/index.d.ts +2 -0
  372. package/lib/button/style/index.d.ts +3 -0
  373. package/lib/card/index.d.ts +2 -0
  374. package/lib/card/style/index.d.ts +3 -0
  375. package/lib/cascader/index.d.ts +2 -0
  376. package/lib/cascader/style/index.d.ts +3 -0
  377. package/lib/checkbox/index.d.ts +3 -0
  378. package/lib/checkbox/style/index.d.ts +3 -0
  379. package/lib/collapse/index.d.ts +2 -0
  380. package/lib/collapse/style/index.d.ts +4 -0
  381. package/lib/color-picker/index.d.ts +2 -0
  382. package/lib/color-picker/style/index.d.ts +3 -0
  383. package/lib/components/alert/index.js +1 -0
  384. package/lib/components/alert/style/index.js +1 -0
  385. package/lib/components/autocomplete/index.js +1 -0
  386. package/lib/components/autocomplete/style/index.js +1 -0
  387. package/lib/components/backtop/index.js +1 -0
  388. package/lib/components/backtop/style/index.js +1 -0
  389. package/lib/components/button/index.js +1 -0
  390. package/lib/components/button/style/index.js +1 -0
  391. package/lib/components/card/index.js +1 -0
  392. package/lib/components/card/style/index.js +1 -0
  393. package/lib/components/cascader/index.js +1 -0
  394. package/lib/components/cascader/style/index.js +1 -0
  395. package/lib/components/checkbox/index.js +1 -0
  396. package/lib/components/checkbox/style/index.js +1 -0
  397. package/lib/components/collapse/index.js +1 -0
  398. package/lib/components/collapse/style/index.js +1 -0
  399. package/lib/components/color-picker/index.js +1 -0
  400. package/lib/components/color-picker/style/index.js +1 -0
  401. package/lib/components/config-provider/index.js +1 -0
  402. package/lib/components/config-provider/style/index.js +1 -0
  403. package/lib/components/container/index.js +1 -0
  404. package/lib/components/container/style/index.js +1 -0
  405. package/lib/components/date-picker/index.js +1 -0
  406. package/lib/components/date-picker/style/index.js +1 -0
  407. package/lib/components/date-time-picker/index.js +1 -0
  408. package/lib/components/date-time-picker/style/index.js +1 -0
  409. package/lib/components/descriptions/index.js +1 -0
  410. package/lib/components/descriptions/style/index.js +1 -0
  411. package/lib/components/dialog/index.js +1 -0
  412. package/lib/components/dialog/style/index.js +1 -0
  413. package/lib/components/divider/index.js +1 -0
  414. package/lib/components/divider/style/index.js +1 -0
  415. package/lib/components/drawer/index.js +1 -0
  416. package/lib/components/drawer/style/index.js +1 -0
  417. package/lib/components/dropdown/index.js +1 -0
  418. package/lib/components/dropdown/style/index.js +1 -0
  419. package/lib/components/empty/index.js +1 -0
  420. package/lib/components/empty/style/index.js +1 -0
  421. package/lib/components/form/index.js +1 -0
  422. package/lib/components/form/style/index.js +1 -0
  423. package/lib/components/icon/index.js +1 -0
  424. package/lib/components/icon/style/index.js +1 -0
  425. package/lib/components/image/index.js +1 -0
  426. package/lib/components/image/style/index.js +1 -0
  427. package/lib/components/input/index.js +1 -0
  428. package/lib/components/input/style/index.js +1 -0
  429. package/lib/components/input-number/index.js +1 -0
  430. package/lib/components/input-number/style/index.js +1 -0
  431. package/lib/components/layout/index.js +1 -0
  432. package/lib/components/layout/style/index.js +1 -0
  433. package/lib/components/link/index.js +1 -0
  434. package/lib/components/link/style/index.js +1 -0
  435. package/lib/components/loading/index.js +1 -0
  436. package/lib/components/loading/style/index.js +1 -0
  437. package/lib/components/menu/index.js +1 -0
  438. package/lib/components/menu/style/index.js +1 -0
  439. package/lib/components/message/index.js +1 -0
  440. package/lib/components/message/style/index.js +1 -0
  441. package/lib/components/message-box/index.js +1 -0
  442. package/lib/components/message-box/style/index.js +1 -0
  443. package/lib/components/notification/index.js +1 -0
  444. package/lib/components/notification/style/index.js +1 -0
  445. package/lib/components/pagination/index.js +1 -0
  446. package/lib/components/pagination/style/index.js +1 -0
  447. package/lib/components/popconfirm/index.js +1 -0
  448. package/lib/components/popconfirm/style/index.js +1 -0
  449. package/lib/components/popover/index.js +1 -0
  450. package/lib/components/popover/style/index.js +1 -0
  451. package/lib/components/pro-form/index.js +1 -0
  452. package/lib/components/pro-form/style/index.js +1 -0
  453. package/lib/components/pro-table/index.js +1 -0
  454. package/lib/components/pro-table/style/index.js +1 -0
  455. package/lib/components/progress/index.js +1 -0
  456. package/lib/components/progress/style/index.js +1 -0
  457. package/lib/components/radio/index.js +1 -0
  458. package/lib/components/radio/style/index.js +1 -0
  459. package/lib/components/scrollbar/index.js +1 -0
  460. package/lib/components/scrollbar/style/index.js +1 -0
  461. package/lib/components/search-bar/index.js +1 -0
  462. package/lib/components/search-bar/style/index.js +1 -0
  463. package/lib/components/select/index.js +1 -0
  464. package/lib/components/select/style/index.js +1 -0
  465. package/lib/components/select-v2/index.js +1 -0
  466. package/lib/components/select-v2/style/index.js +1 -0
  467. package/lib/components/skeleton/index.js +1 -0
  468. package/lib/components/skeleton/style/index.js +1 -0
  469. package/lib/components/slider/index.js +1 -0
  470. package/lib/components/slider/style/index.js +1 -0
  471. package/lib/components/space/index.js +1 -0
  472. package/lib/components/space/style/index.js +1 -0
  473. package/lib/components/steps/index.js +1 -0
  474. package/lib/components/steps/style/index.js +1 -0
  475. package/lib/components/switch/index.js +1 -0
  476. package/lib/components/switch/style/index.js +1 -0
  477. package/lib/components/table/index.js +1 -0
  478. package/lib/components/table/style/index.js +1 -0
  479. package/lib/components/tabs/index.js +1 -0
  480. package/lib/components/tabs/style/index.js +1 -0
  481. package/lib/components/tag/index.js +1 -0
  482. package/lib/components/tag/style/index.js +1 -0
  483. package/lib/components/text/index.js +1 -0
  484. package/lib/components/text/style/index.js +1 -0
  485. package/lib/components/time-picker/index.js +1 -0
  486. package/lib/components/time-picker/style/index.js +1 -0
  487. package/lib/components/time-select/index.js +1 -0
  488. package/lib/components/time-select/style/index.js +1 -0
  489. package/lib/components/tooltip/index.js +1 -0
  490. package/lib/components/tooltip/style/index.js +1 -0
  491. package/lib/components/tree/index.js +1 -0
  492. package/lib/components/tree/style/index.js +1 -0
  493. package/lib/components/tree-select/index.js +1 -0
  494. package/lib/components/tree-select/style/index.js +1 -0
  495. package/lib/components/upload/index.js +1 -0
  496. package/lib/components/upload/style/index.js +1 -0
  497. package/lib/config-provider/index.d.ts +2 -0
  498. package/lib/config-provider/style/index.d.ts +2 -0
  499. package/lib/container/index.d.ts +2 -0
  500. package/lib/container/style/index.d.ts +7 -0
  501. package/lib/date-picker/index.d.ts +2 -0
  502. package/lib/date-picker/style/index.d.ts +3 -0
  503. package/lib/date-time-picker/index.d.ts +2 -0
  504. package/lib/date-time-picker/style/index.d.ts +3 -0
  505. package/lib/descriptions/index.d.ts +2 -0
  506. package/lib/descriptions/style/index.d.ts +4 -0
  507. package/lib/dialog/index.d.ts +2 -0
  508. package/lib/dialog/style/index.d.ts +3 -0
  509. package/lib/divider/index.d.ts +2 -0
  510. package/lib/divider/style/index.d.ts +3 -0
  511. package/lib/drawer/index.d.ts +2 -0
  512. package/lib/drawer/style/index.d.ts +3 -0
  513. package/lib/dropdown/index.d.ts +2 -0
  514. package/lib/dropdown/style/index.d.ts +3 -0
  515. package/lib/empty/index.d.ts +2 -0
  516. package/lib/empty/style/index.d.ts +3 -0
  517. package/lib/form/index.d.ts +2 -0
  518. package/lib/form/style/index.d.ts +3 -0
  519. package/lib/hooks/dist/index.js +1 -1
  520. package/lib/icon/index.d.ts +2 -0
  521. package/lib/icon/style/index.d.ts +2 -0
  522. package/lib/image/index.d.ts +2 -0
  523. package/lib/image/style/index.d.ts +3 -0
  524. package/lib/index.js +2 -2
  525. package/lib/input/index.d.ts +2 -0
  526. package/lib/input/style/index.d.ts +3 -0
  527. package/lib/input-number/index.d.ts +2 -0
  528. package/lib/input-number/style/index.d.ts +3 -0
  529. package/lib/layout/index.d.ts +2 -0
  530. package/lib/layout/style/index.d.ts +4 -0
  531. package/lib/link/index.d.ts +2 -0
  532. package/lib/link/style/index.d.ts +3 -0
  533. package/lib/loading/index.d.ts +2 -0
  534. package/lib/loading/style/index.d.ts +3 -0
  535. package/lib/make-installer.js +1 -1
  536. package/lib/menu/index.d.ts +2 -0
  537. package/lib/menu/style/index.d.ts +3 -0
  538. package/lib/message/index.d.ts +2 -0
  539. package/lib/message/style/index.d.ts +3 -0
  540. package/lib/message-box/index.d.ts +2 -0
  541. package/lib/message-box/style/index.d.ts +3 -0
  542. package/lib/notification/index.d.ts +2 -0
  543. package/lib/notification/style/index.d.ts +3 -0
  544. package/lib/pagination/index.d.ts +2 -0
  545. package/lib/pagination/style/index.d.ts +3 -0
  546. package/lib/popconfirm/index.d.ts +2 -0
  547. package/lib/popconfirm/style/index.d.ts +3 -0
  548. package/lib/popover/index.d.ts +2 -0
  549. package/lib/popover/style/index.d.ts +3 -0
  550. package/lib/pro-form/index.d.ts +2 -0
  551. package/lib/pro-form/style/index.d.ts +38 -0
  552. package/lib/pro-table/index.d.ts +2 -0
  553. package/lib/pro-table/src/hooks/use-pro-table.js +1 -1
  554. package/lib/pro-table/src/variants/classic/index.d.ts +2 -0
  555. package/lib/pro-table/src/variants/custom/index.d.ts +2 -0
  556. package/lib/pro-table/src/variants/unify/index.d.ts +2 -0
  557. package/lib/pro-table/style/index.d.ts +19 -0
  558. package/lib/progress/index.d.ts +2 -0
  559. package/lib/progress/style/index.d.ts +3 -0
  560. package/lib/radio/index.d.ts +3 -0
  561. package/lib/radio/style/index.d.ts +3 -0
  562. package/lib/scrollbar/index.d.ts +2 -0
  563. package/lib/scrollbar/style/index.d.ts +3 -0
  564. package/lib/search-bar/index.d.ts +2 -0
  565. package/lib/search-bar/style/index.d.ts +6 -0
  566. package/lib/select/index.d.ts +2 -0
  567. package/lib/select/style/index.d.ts +3 -0
  568. package/lib/select-v2/index.d.ts +2 -0
  569. package/lib/select-v2/style/index.d.ts +3 -0
  570. package/lib/skeleton/index.d.ts +2 -0
  571. package/lib/skeleton/style/index.d.ts +4 -0
  572. package/lib/slider/index.d.ts +2 -0
  573. package/lib/slider/style/index.d.ts +3 -0
  574. package/lib/space/index.d.ts +2 -0
  575. package/lib/space/style/index.d.ts +3 -0
  576. package/lib/steps/index.d.ts +2 -0
  577. package/lib/steps/style/index.d.ts +4 -0
  578. package/lib/switch/index.d.ts +2 -0
  579. package/lib/switch/style/index.d.ts +3 -0
  580. package/lib/table/index.d.ts +2 -0
  581. package/lib/table/style/index.d.ts +3 -0
  582. package/lib/tabs/index.d.ts +2 -0
  583. package/lib/tabs/style/index.d.ts +4 -0
  584. package/lib/tag/index.d.ts +2 -0
  585. package/lib/tag/style/index.d.ts +3 -0
  586. package/lib/text/index.d.ts +2 -0
  587. package/lib/text/style/index.d.ts +3 -0
  588. package/lib/time-picker/index.d.ts +2 -0
  589. package/lib/time-picker/style/index.d.ts +3 -0
  590. package/lib/time-select/index.d.ts +2 -0
  591. package/lib/time-select/style/index.d.ts +3 -0
  592. package/lib/tooltip/index.d.ts +2 -0
  593. package/lib/tooltip/style/index.d.ts +3 -0
  594. package/lib/tree/index.d.ts +2 -0
  595. package/lib/tree/style/index.d.ts +3 -0
  596. package/lib/tree-select/index.d.ts +2 -0
  597. package/lib/tree-select/style/index.d.ts +3 -0
  598. package/lib/upload/index.d.ts +2 -0
  599. package/lib/upload/style/index.d.ts +3 -0
  600. package/lib/utils/dist/index.js +3 -3
  601. package/lib/version.d.ts +1 -1
  602. package/lib/version.js +2 -2
  603. 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,7 +1,7 @@
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.0
2
+ * sunyard-szyy-ui v0.7.2
3
3
  * (c) 2026 Sunyard SZYY Base Team
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(()=>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">
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>
6
6
  <sy-button type="primary" link @click="onReset">重置</sy-button>
7
7
  </div> `),e.createCommentVNode(" 列配置表格 "),e.createVNode(e.unref(Ve),{data:i.value,"row-key":"prop",border:!0,"default-expand-all":"","tree-props":{children:"_children"}},{empty:e.withCtx(()=>[...g[1]||(g[1]=[e.createElementVNode("div",{style:{padding:"24px 0",color:"var(--el-text-color-secondary)","font-size":"13px"}},"暂无可配置列",-1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(Y),{prop:"label",label:"列名",align:"left","min-width":"100"},{default:e.withCtx(({row:b})=>{var N,V;return[e.createTextVNode(e.toDisplayString((V=(N=b.label)!=null?N:b.prop)!=null?V:"—"),1)]}),_:1}),e.createVNode(e.unref(Y),{prop:"isShow",label:"显示",align:"center",width:"80"},{default:e.withCtx(({row:b})=>[e.createVNode(e.unref(Ce),{"model-value":b.isShow!==!1,"onUpdate:modelValue":N=>{b.isShow=N}},null,8,["model-value","onUpdate:modelValue"])]),_:1}),e.createVNode(e.unref(Y),{prop:"sortable",label:"排序",align:"center",width:"80"},{default:e.withCtx(({row:b})=>[typeof b.sortable=="boolean"?(e.openBlock(),e.createBlock(e.unref(Ce),{key:0,modelValue:b.sortable,"onUpdate:modelValue":N=>b.sortable=N},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createElementBlock("span",js,"—"))]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]))}}),Xe=e.defineComponent({__name:"ProTableColSetting",props:{context:{}},setup(s,{expose:o}){const c=s.context.flatColumns,i=e.ref();function l(){var n,t;(t=(n=i.value)==null?void 0:n.open)==null||t.call(n)}return o({open:l}),(n,t)=>(e.openBlock(),e.createBlock(Us,{ref_key:"innerRef",ref:i,columns:e.unref(c)},null,8,["columns"]))}}),Hs={key:0,class:"sy-pro-table__pagination"},ve=e.defineComponent({__name:"ProTablePagination",props:{context:{}},setup(s){const o=s,r=o.context.props,c=o.context.pageable,i=o.context.handleSizeChange,l=o.context.handleCurrentChange;return(n,t)=>e.unref(r).pagination&&e.unref(c).total>0?(e.openBlock(),e.createElementBlock("div",Hs,[e.renderSlot(n.$slots,"pagination",{},()=>[e.createVNode(e.unref(je),{"current-page":e.unref(c).pageNum,"onUpdate:currentPage":t[0]||(t[0]=a=>e.unref(c).pageNum=a),"page-size":e.unref(c).pageSize,"onUpdate:pageSize":t[1]||(t[1]=a=>e.unref(c).pageSize=a),total:e.unref(c).total,"page-sizes":e.unref(r).pageSizes,layout:e.unref(r).pageLayout,background:"",onSizeChange:e.unref(i),onCurrentChange:e.unref(l)},null,8,["current-page","page-size","total","page-sizes","layout","onSizeChange","onCurrentChange"])])])):e.createCommentVNode("v-if",!0)}}),et=e.defineComponent({__name:"ProTableSearchRenderer",props:{context:{},cols:{default:4},showQueryBtn:{type:Boolean,default:!0},showResetBtn:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!0}},setup(s,{expose:o}){const r=s,c=r.context.searchParam,i=r.context.searchSchema,l=r.context.search,n=r.context.reset,t=e.ref();return o({validate:a=>{var g,b;return(b=(g=t.value)==null?void 0:g.validate)==null?void 0:b.call(g,a)},resetFields:()=>{var a,g;return(g=(a=t.value)==null?void 0:a.resetFields)==null?void 0:g.call(a)},clearValidate:a=>{var g,b;return(b=(g=t.value)==null?void 0:g.clearValidate)==null?void 0:b.call(g,a)},formRef:t}),(a,g)=>(e.openBlock(),e.createBlock(e.unref(Je),{ref_key:"innerFormRef",ref:t,model:e.unref(c),schema:e.unref(i),cols:s.cols,"show-query-btn":s.showQueryBtn,"show-reset-btn":s.showResetBtn,collapsible:s.collapsible,onSearch:e.unref(l),onReset:e.unref(n)},null,8,["model","schema","cols","show-query-btn","show-reset-btn","collapsible","onSearch","onReset"]))}}),Ks=e.defineComponent({__name:"ProTableColumn",props:{column:{}},emits:["radioChange"],setup(s){const o=s,r=e.inject("proTableEnumMap",{value:new Map}),c=e.inject("proTableSlots",{}),i=e.computed(()=>{const C=o.column.isShow;return C===void 0?!0:e.unref(C)}),l=e.computed(()=>{var P,m,f,y;const C=o.column.enum;return typeof C=="function"?(m=r.value.get((P=o.column.prop)!=null?P:""))!=null?m:[]:C?e.unref(C):(y=r.value.get((f=o.column.prop)!=null?f:""))!=null?y:[]});function n(C){var B,$;const{fieldNames:P}=o.column,m=(B=P==null?void 0:P.label)!=null?B:"label",f=($=P==null?void 0:P.value)!=null?$:"value",y=l.value.find(I=>I[f]===C);return y?y[m]:String(C!=null?C:"")}function t(C){var y;const{fieldNames:P}=o.column,m=(y=P==null?void 0:P.value)!=null?y:"value",f=l.value.find(B=>B[m]===C);return(f==null?void 0:f.tagType)||void 0}function a(C){return C.split(".").reduce((m,f,y)=>y===0?m+f:m+f.charAt(0).toUpperCase()+f.slice(1),"")}function g(C){var $;const{column:P}=o;if(P.render)return P.render(C);if(P.type==="expand"){const I="expand";return c[I]?c[I](C):null}const m=($=P.prop)!=null?$:"",f=C.row[m],y=a(m);if(c[y])return c[y](C);if(P.isFilterEnum!==!1&&l.value.length>0){if(P.tag){const I=t(f);return e.h(be,I?{type:I}:{},()=>n(f))}return e.h("span",{},n(f))}return P.tag?e.h(be,{},()=>String(f!=null?f:"")):e.h("span",{},String(f!=null?f:""))}function b(C){var f,y;const{column:P}=o;if(P.headerRender)return P.headerRender(C);const m=`${a((f=P.prop)!=null?f:"")}Header`;return c[m]?c[m](C):(y=P.label)!=null?y:""}const N=e.defineComponent({name:"ProTableExpandRenderer",props:{scope:{type:Object,required:!0}},setup(C){return()=>c.expand?c.expand(C.scope):null}}),V=e.defineComponent({name:"ProTableHeaderRenderer",props:{scope:{type:Object,required:!0}},setup(C){return()=>b(C.scope)}}),T=e.defineComponent({name:"ProTableCellRenderer",props:{scope:{type:Object,required:!0}},setup(C){return()=>g(C.scope)}});return(C,P)=>{var f;const m=e.resolveComponent("ProTableColumn",!0);return i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createCommentVNode(" 多级表头 "),(f=s.column.children)!=null&&f.length?(e.openBlock(),e.createBlock(e.unref(Y),{key:0,label:s.column.label,align:s.column.align},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.column.children,y=>{var B;return e.openBlock(),e.createBlock(m,{key:(B=y.prop)!=null?B:y.label,column:y},null,8,["column"])}),128))]),_:1},8,["label","align"])):s.column.type&&["selection","index"].includes(s.column.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 特殊列:selection / index(自闭合,无需 slot) "),e.createVNode(e.unref(Y),e.normalizeProps(e.guardReactiveProps(s.column)),null,16)],2112)):s.column.type==="expand"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createCommentVNode(" expand 列:必须通过 #default slot 提供展开行内容 "),e.createVNode(e.unref(Y),e.normalizeProps(e.guardReactiveProps(s.column)),{default:e.withCtx(y=>[e.createVNode(e.unref(N),{scope:y},null,8,["scope"])]),_:1},16)],2112)):s.column.type==="radio"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createCommentVNode(" radio 列 "),e.createVNode(e.unref(Y),e.mergeProps(s.column,{width:"60",align:"center"}),{default:e.withCtx(y=>[e.createVNode(e.unref(xe),{modelValue:y.row.__radioSelected,"onUpdate:modelValue":B=>y.row.__radioSelected=B,value:!0,onChange:()=>C.$emit("radioChange",y.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1},16)],2112)):s.column.type==="sort"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createCommentVNode(" sort 列(拖拽手柄) "),e.createVNode(e.unref(Y),e.mergeProps(s.column,{width:"60",align:"center",label:"排序"}),{default:e.withCtx(()=>[e.createVNode(e.unref(be),{class:"move",style:{cursor:"move"}},{default:e.withCtx(()=>[e.createVNode(e.unref(le),null,{default:e.withCtx(()=>[e.createVNode(e.unref(G.DCaret))]),_:1})]),_:1})]),_:1},16)],2112)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[e.createCommentVNode(" 普通列 "),e.createVNode(e.unref(Y),e.normalizeProps(e.guardReactiveProps(s.column)),{header:e.withCtx(y=>[e.createVNode(e.unref(V),{scope:y},null,8,["scope"])]),default:e.withCtx(y=>[e.createVNode(e.unref(T),{scope:y},null,8,["scope"])]),_:1},16)],2112))],64)):e.createCommentVNode("v-if",!0)}}}),Gs={class:"sy-pro-table__empty"},tt=e.defineComponent({__name:"ProTableTable",props:{context:{},onDragSort:{type:Function}},setup(s){const o=s,r=e.useAttrs(),c=o.context.props,i=o.context.tableRef,l=o.context.loading,n=o.context.tableData,t=o.context.flatColumns,a=o.context.selectionChange,g=o.context.onSortChange,b=o.context.onRadioChange;function N(T){i.value=T}function V(){var P;if(!c.columns.some(m=>m.type==="sort")||!i.value)return;const C=(P=i.value.$el)==null?void 0:P.querySelector("tbody");C&&Ae.create(C,{handle:".move",animation:150,onEnd({newIndex:m,oldIndex:f}){var $;if(m===f)return;const y=n.value,B=y.splice(f,1)[0];y.splice(m,0,B),($=o.onDragSort)==null||$.call(o,{newIndex:m,oldIndex:f})}})}return e.onMounted(()=>{e.nextTick(()=>V())}),(T,C)=>{const P=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createBlock(e.unref(Ve),e.mergeProps({ref:N,class:"sy-pro-table__table"},e.unref(r),{data:e.unref(n),border:e.unref(c).border,stripe:e.unref(c).stripe,"row-key":e.unref(c).rowKey,size:e.unref(c).size,"highlight-current-row":e.unref(c).highlightCurrentRow,onSelectionChange:e.unref(a),onSortChange:e.unref(g)}),{append:e.withCtx(()=>[e.renderSlot(T.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(T.$slots,"empty",{},()=>[e.createElementVNode("div",Gs,[e.createVNode(e.unref(Me),{description:"暂无数据"})])])]),default:e.withCtx(()=>[e.renderSlot(T.$slots,"default"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t),m=>{var f,y;return e.openBlock(),e.createBlock(Ks,{key:(y=(f=m.prop)!=null?f:m.label)!=null?y:m.type,column:m,onRadioChange:e.unref(b)},null,8,["column","onRadioChange"])}),128))]),_:3},16,["data","border","stripe","row-key","size","highlight-current-row","onSelectionChange","onSortChange"])),[[P,e.unref(l)]])}}}),Ws={class:"sy-pro-table sy-pro-table--classic"},Qs={key:0,class:"sy-pro-table__search"},Ys={class:"sy-pro-table__main"},Js={class:"sy-pro-table__header"},Zs={class:"sy-pro-table__header-left"},Xs={class:"sy-pro-table__header-right"},nt=e.defineComponent({__name:"ClassicLayout",props:{context:{},onDragSort:{type:Function}},setup(s){const o=s,r=o.context.props,c=o.context.isShowSearch,i=o.context.searchColumns,l=o.context.selectedList,n=o.context.selectedListIds,t=o.context.isSelected,a=o.context.getTableList,g=o.context.openColSetting,b=o.context.toggleSearch,N=o.context.showToolBtn,V=o.context.formRef,T=o.context.colSettingRef;function C(m){V.value=m}function P(m){T.value=m}return(m,f)=>(e.openBlock(),e.createElementBlock("div",Ws,[e.unref(r).showSearch&&e.unref(c)&&e.unref(i).length>0?(e.openBlock(),e.createElementBlock("div",Qs,[e.createVNode(et,{ref:C,context:s.context,cols:e.unref(r).searchCols},null,8,["context","cols"])])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",Ys,[e.createElementVNode("div",Js,[e.createElementVNode("div",Zs,[e.renderSlot(m.$slots,"tableHeader",{selectedList:e.unref(l),selectedListIds:e.unref(n),isSelected:e.unref(t)})]),e.createElementVNode("div",Xs,[e.renderSlot(m.$slots,"toolButton",{},()=>[e.unref(N)("refresh")?(e.openBlock(),e.createBlock(e.unref(pe),{key:0,content:"刷新",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(U),{icon:e.unref(G.Refresh),circle:"",onClick:e.unref(a)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(N)("setting")?(e.openBlock(),e.createBlock(e.unref(pe),{key:1,content:"列设置",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(U),{icon:e.unref(G.Operation),circle:"",onClick:e.unref(g)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(N)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(pe),{key:2,content:"搜索",placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(U),{icon:e.unref(G.Search),circle:"",onClick:e.unref(b)},null,8,["icon","onClick"])]),_:1})):e.createCommentVNode("v-if",!0)])])]),e.createVNode(tt,{context:s.context,"on-drag-sort":s.onDragSort},{append:e.withCtx(()=>[e.renderSlot(m.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(m.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},8,["context","on-drag-sort"]),e.createVNode(ve,{context:s.context},{pagination:e.withCtx(()=>[e.renderSlot(m.$slots,"pagination")]),_:3},8,["context"])]),e.createVNode(Xe,{ref:P,context:s.context},null,8,["context"])]))}}),vs=e.defineComponent({__name:"CustomLayout",props:{context:{},onDragSort:{type:Function}},setup(s){return(o,r)=>(e.openBlock(),e.createBlock(nt,{context:s.context,"on-drag-sort":s.onDragSort},{tableHeader:e.withCtx(c=>[e.renderSlot(o.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(c)))]),toolButton:e.withCtx(()=>[e.renderSlot(o.$slots,"toolButton")]),append:e.withCtx(()=>[e.renderSlot(o.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(o.$slots,"empty")]),pagination:e.withCtx(()=>[e.renderSlot(o.$slots,"pagination")]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["context","on-drag-sort"]))}}),eo=e.defineComponent({__name:"UnifyQuickSearch",props:{column:{},model:{},modelValue:{}},emits:["search","update:modelValue"],setup(s,{emit:o}){const r=s,c=o,i=e.computed(()=>{var g;const t=(g=r.column.search)==null?void 0:g.quick,a=typeof t=="object"&&(t==null?void 0:t.width)||220;return{width:typeof a=="number"?`${a}px`:a}}),l=e.computed(()=>{var a,g,b,N,V,T,C;const t=r.column;return{field:(b=(g=(a=t.search)==null?void 0:a.key)!=null?g:t.prop)!=null?b:"",label:t.label,component:(N=t.search)==null?void 0:N.component,props:(V=t.search)==null?void 0:V.props,fieldNames:t.fieldNames,defaultValue:(T=t.search)==null?void 0:T.defaultValue,render:(C=t.search)==null?void 0:C.render}});function n(t){c("update:modelValue",t)}return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:"sy-pro-table__unify-quick",style:e.normalizeStyle(i.value),onKeyup:a[0]||(a[0]=e.withKeys(g=>c("search"),["enter"]))},[e.createVNode(Ye,{schema:l.value,model:s.model,"model-value":s.modelValue,"onUpdate:modelValue":n},null,8,["schema","model","model-value"])],36))}}),to={class:"sy-pro-table__unify-panel-inner"},no={class:"sy-pro-table__unify-panel-footer"},so=e.defineComponent({__name:"UnifySearchPanel",props:{context:{},visible:{type:Boolean},excludeSelector:{default:""}},emits:["close"],setup(s,{emit:o}){const r=s,c=o,i=r.context.search,l=r.context.reset,n=r.context.formRef,t=e.ref();function a(N){n.value=N}let g=null;function b(N){var T;const V=N.target;V&&((T=t.value)!=null&&T.contains(V)||r.excludeSelector&&V.closest(r.excludeSelector)||V.closest(".el-popper")||V.closest(".el-overlay")||c("close"))}return e.watch(()=>r.visible,N=>{g==null||g(),g=null,N&&e.nextTick(()=>{document.addEventListener("mousedown",b,!0),g=()=>document.removeEventListener("mousedown",b,!0)})}),e.onBeforeUnmount(()=>g==null?void 0:g()),(N,V)=>(e.openBlock(),e.createBlock(e.Transition,{name:"sy-pro-table-panel",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"panelRootRef",ref:t,class:"sy-pro-table__unify-panel"},[e.createElementVNode("div",to,[e.createVNode(et,{ref:a,context:s.context,cols:1,"show-query-btn":!1,"show-reset-btn":!1,collapsible:!1},null,8,["context"]),e.createElementVNode("div",no,[e.createVNode(e.unref(U),{onClick:e.unref(l)},{default:e.withCtx(()=>[...V[0]||(V[0]=[e.createTextVNode("重置",-1)])]),_:1},8,["onClick"]),e.createVNode(e.unref(U),{type:"primary",onClick:e.unref(i)},{default:e.withCtx(()=>[...V[1]||(V[1]=[e.createTextVNode("查询",-1)])]),_:1},8,["onClick"])])])],512),[[e.vShow,s.visible]])]),_:1}))}}),oo={class:"sy-pro-table sy-pro-table--unify"},ro={class:"sy-pro-table__main sy-pro-table__main--unify"},ao={class:"sy-pro-table__header sy-pro-table__header--unify"},lo={class:"sy-pro-table__header-left"},co={class:"sy-pro-table__header-right sy-pro-table__header-right--unify"},io=e.defineComponent({__name:"UnifyLayout",props:{context:{},onDragSort:{type:Function}},setup(s){const o=s,r=o.context.props,c=o.context.isShowSearch,i=o.context.searchColumns,l=o.context.quickSearchColumns,n=o.context.searchParam,t=o.context.selectedList,a=o.context.selectedListIds,g=o.context.isSelected,b=o.context.search,N=o.context.toggleSearch,V=o.context.showToolBtn,T=o.context.colSettingRef,C=e.computed(()=>!!r.showSearch&&c.value&&i.value.length>0);function P(f){T.value=f}function m(){c.value&&N()}return(f,y)=>(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("div",ro,[e.createElementVNode("div",ao,[e.createElementVNode("div",lo,[e.renderSlot(f.$slots,"tableHeader",{selectedList:e.unref(t),selectedListIds:e.unref(a),isSelected:e.unref(g)})]),e.createElementVNode("div",co,[e.renderSlot(f.$slots,"toolButton",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),B=>{var $,I,E,j,M;return e.openBlock(),e.createBlock(eo,{key:(I=($=B.search)==null?void 0:$.key)!=null?I:B.prop,modelValue:e.unref(n)[(M=(j=(E=B.search)==null?void 0:E.key)!=null?j:B.prop)!=null?M:""],"onUpdate:modelValue":D=>{var z,K,h;return e.unref(n)[(h=(K=(z=B.search)==null?void 0:z.key)!=null?K:B.prop)!=null?h:""]=D},column:B,model:e.unref(n),onSearch:e.unref(b)},null,8,["modelValue","onUpdate:modelValue","column","model","onSearch"])}),128)),e.unref(l).length>0?(e.openBlock(),e.createBlock(e.unref(U),{key:0,type:"primary",onClick:e.unref(b)},{default:e.withCtx(()=>[...y[0]||(y[0]=[e.createTextVNode("查询",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0),e.unref(r).showSearch&&e.unref(V)("search")&&e.unref(i).length>0?(e.openBlock(),e.createBlock(e.unref(U),{key:1,class:"sy-pro-table__unify-advanced-btn",type:"primary",plain:"",onClick:e.unref(N)},{default:e.withCtx(()=>[...y[1]||(y[1]=[e.createTextVNode(" 高级筛选 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("v-if",!0)])])]),e.createVNode(so,{context:s.context,visible:C.value,"exclude-selector":".sy-pro-table__unify-advanced-btn",onClose:m},null,8,["context","visible"]),e.createVNode(tt,{context:s.context,"on-drag-sort":s.onDragSort},{append:e.withCtx(()=>[e.renderSlot(f.$slots,"append")]),empty:e.withCtx(()=>[e.renderSlot(f.$slots,"empty")]),default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},8,["context","on-drag-sort"]),e.createVNode(ve,{context:s.context},{pagination:e.withCtx(()=>[e.renderSlot(f.$slots,"pagination")]),_:3},8,["context"])]),e.createVNode(Xe,{ref:P,context:s.context},null,8,["context"])]))}}),po=e.defineComponent({name:"SyProTable",inheritAttrs:!1,__name:"ProTable",props:{columns:{},data:{},request:{},params:{},postData:{},requestError:{},manualRequest:{type:Boolean,default:!1},pagination:{type:Boolean,default:!0},rowKey:{default:"id"},border:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!0},searchCols:{default:4},toolButton:{type:[Boolean,Array],default:!0},highlightCurrentRow:{type:Boolean,default:!1},size:{},pageSizes:{default:()=>[10,20,50,100]},pageLayout:{default:"total, sizes, prev, pager, next, jumper"},type:{default:"classic"}},emits:["search","reset","dragSort"],setup(s,{expose:o,emit:r}){const c=s,i=r,l=e.useSlots(),n=qs(c,i,l);function t(a){i("dragSort",a)}return o({tableRef:n.tableRef,formRef:n.formRef,tableData:n.tableData,enumMap:n.enumMap,pageable:n.pageable,searchParam:n.searchParam,searchInitParam:n.searchInitParam,isSelected:n.isSelected,selectedList:n.selectedList,selectedListIds:n.selectedListIds,radio:n.radio,getTableList:n.getTableList,search:n.search,reset:n.reset,clearSelection:n.clearSelection,clearRadio:n.clearRadio,handleSizeChange:n.handleSizeChange,handleCurrentChange:n.handleCurrentChange}),(a,g)=>c.type==="classic"?(e.openBlock(),e.createBlock(nt,{key:0,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(b=>[e.renderSlot(a.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(b)))]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[e.unref(l).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"toolButton")]),key:"0"}:void 0,e.unref(l).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"append")]),key:"1"}:void 0,e.unref(l).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"empty")]),key:"2"}:void 0,e.unref(l).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"])):c.type==="unify"?(e.openBlock(),e.createBlock(io,{key:1,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(b=>[e.renderSlot(a.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(b)))]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[e.unref(l).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"toolButton")]),key:"0"}:void 0,e.unref(l).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"append")]),key:"1"}:void 0,e.unref(l).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"empty")]),key:"2"}:void 0,e.unref(l).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"])):(e.openBlock(),e.createBlock(vs,{key:2,context:e.unref(n),"on-drag-sort":t},e.createSlots({tableHeader:e.withCtx(b=>[e.renderSlot(a.$slots,"tableHeader",e.normalizeProps(e.guardReactiveProps(b)))]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:2},[e.unref(l).toolButton?{name:"toolButton",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"toolButton")]),key:"0"}:void 0,e.unref(l).append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"append")]),key:"1"}:void 0,e.unref(l).empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"empty")]),key:"2"}:void 0,e.unref(l).pagination?{name:"pagination",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"pagination")]),key:"3"}:void 0]),1032,["context"]))}}),mo=S.withInstall(po);p.SyAlert=yt,p.SyAside=Ut,p.SyAutocomplete=J,p.SyBacktop=Ct,p.SyButton=U,p.SyCard=At,p.SyCascader=Te,p.SyCheckbox=Re,p.SyCheckboxButton=xt,p.SyCheckboxGroup=_e,p.SyCol=Nn,p.SyCollapse=_t,p.SyCollapseItem=$t,p.SyColorPicker=It,p.SyConfigProvider=Wt,p.SyContainer=qt,p.SyDatePicker=$e,p.SyDateTimePicker=Jt,p.SyDescriptions=vt,p.SyDescriptionsItem=en,p.SyDialog=nn,p.SyDivider=on,p.SyDrawer=De,p.SyDropdown=dn,p.SyDropdownItem=mn,p.SyDropdownMenu=pn,p.SyEmpty=Me,p.SyFooter=Kt,p.SyForm=Le,p.SyFormItem=Fe,p.SyHeader=jt,p.SyIcon=le,p.SyImage=gn,p.SyInput=ke,p.SyInputNumber=Ee,p.SyLink=Bn,p.SyLoading=Tn,p.SyLoadingDirective=he,p.SyMain=Ht,p.SyMenu=Mn,p.SyMenuItem=Fn,p.SyMenuItemGroup=En,p.SyMessage=ne,p.SyMessageBox=Oe,p.SyNotification=qe,p.SyOption=Ge,p.SyPagination=je,p.SyPopconfirm=qn,p.SyPopover=Hn,p.SyProForm=Je,p.SyProTable=mo,p.SyProgress=Gn,p.SyRadio=xe,p.SyRadioButton=He,p.SyRadioGroup=Ue,p.SyRow=kn,p.SyScrollbar=Zn,p.SySelect=Ke,p.SySelectV2=ns,p.SySkeleton=rs,p.SySkeletonItem=as,p.SySlider=cs,p.SySpace=ds,p.SyStep=us,p.SySteps=fs,p.SySubMenu=Ln,p.SySwitch=Ce,p.SyTabPane=ws,p.SyTable=Ve,p.SyTableColumn=Y,p.SyTabs=bs,p.SyTag=be,p.SyText=Ns,p.SyTimePicker=We,p.SyTimeSelect=Qe,p.SyTooltip=pe,p.SyTree=Ts,p.SyTreeSelect=_s,p.SyUpload=Ds,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
@@ -26,14 +26,14 @@ var $e = (n, s, o) => new Promise((r, c) => {
26
26
  }, e = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(l, t);
27
27
  e((o = o.apply(n, s)).next());
28
28
  });
29
- import { defineComponent as f, useAttrs as S, useSlots as v, ref as I, h as p, mergeProps as h, unref as u, inject as He, computed as F, withCtx as C, onMounted as We, onUnmounted as Ot, openBlock as P, createBlock as q, withModifiers as Et, createElementVNode as te, normalizeStyle as we, createElementBlock as W, Fragment as ae, renderList as Me, createCommentVNode as E, renderSlot as V, createVNode as L, createSlots as De, toDisplayString as ye, createTextVNode as ce, resolveDynamicComponent as it, reactive as ze, watch as yt, provide as dt, toRef as qt, resolveComponent as Ut, normalizeProps as be, guardReactiveProps as Se, nextTick as vt, resolveDirective as jt, withDirectives as bt, withKeys as Ht, onBeforeUnmount as Kt, Transition as Gt, vShow as Wt } from "vue";
29
+ import { defineComponent as f, useAttrs as S, useSlots as v, ref as I, h as p, mergeProps as h, unref as u, inject as He, computed as F, withCtx as C, onMounted as We, onUnmounted as Ot, openBlock as P, createBlock as q, withModifiers as Et, createElementVNode as te, normalizeStyle as we, createElementBlock as W, Fragment as ae, renderList as Ne, createCommentVNode as E, renderSlot as V, createVNode as L, createSlots as De, toDisplayString as ye, createTextVNode as ce, resolveDynamicComponent as it, reactive as Ie, watch as yt, provide as dt, toRef as qt, resolveComponent as Ut, normalizeProps as be, guardReactiveProps as Se, nextTick as vt, resolveDirective as jt, withDirectives as bt, withKeys as Ht, onBeforeUnmount as Kt, Transition as Gt, vShow as Wt } from "vue";
30
30
  import { useNamespace as A } from "@sunyard-szyy-ui/hooks";
31
31
  import { withInstall as b } from "@sunyard-szyy-ui/utils";
32
32
  import { AdapterAutocomplete as St, AdapterAlert as Qt, AdapterBacktop as Yt, AdapterButton as Jt, AdapterCard as Zt, AdapterCascader as Xt, AdapterCheckbox as en, AdapterCheckboxGroup as tn, AdapterCheckboxButton as nn, AdapterColorPicker as gt, AdapterCollapse as sn, AdapterCollapseItem as on, AdapterAside as an, AdapterContainer as ln, AdapterFooter as rn, AdapterHeader as cn, AdapterMain as un, AdapterConfigProvider as dn, AdapterDatePicker as Ct, AdapterDescriptions as pn, AdapterDescriptionsItem as fn, AdapterDialog as mn, AdapterDivider as hn, AdapterDrawer as yn, AdapterDropdown as vn, AdapterDropdownItem as bn, AdapterDropdownMenu as Sn, AdapterEmpty as gn, AdapterForm as Cn, AdapterFormItem as An, AdapterIcon as kn, AdapterImage as xn, AdapterInput as wn, AdapterInputNumber as Rn, AdapterCol as Tn, AdapterRow as Pn, AdapterLink as _n, AdapterLoading as Ke, AdapterLoadingDirective as $n, AdapterMenu as Bn, AdapterMenuItem as Vn, AdapterMenuItemGroup as Dn, AdapterSubMenu as In, AdapterMessage as de, AdapterMessageBox as ge, AdapterNotification as ve, AdapterPagination as Ln, AdapterPopconfirm as Fn, AdapterPopover as Mn, AdapterProgress as Nn, AdapterRadio as zn, AdapterRadioGroup as On, AdapterRadioButton as En, AdapterScrollbar as qn, AdapterOption as Un, AdapterSelect as jn, AdapterSelectV2 as At, AdapterSkeleton as Hn, AdapterSkeletonItem as Kn, AdapterSlider as kt, AdapterSpace as Gn, AdapterStep as Wn, AdapterSteps as Qn, AdapterSwitch as Yn, AdapterTable as Jn, AdapterTableColumn as pt, AdapterTabPane as Zn, AdapterTabs as Xn, AdapterTag as es, AdapterText as ts, AdapterTimePicker as ns, AdapterTimeSelect as ss, AdapterTooltip as os, AdapterTree as as, AdapterTreeSelect as xt, AdapterUpload as ls } from "@sunyard-szyy-ui/adapter";
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.0
36
+ * sunyard-szyy-ui v0.7.2
37
37
  * (c) 2026 Sunyard SZYY Base Team
38
38
  */
39
39
  const fs = f({
@@ -390,7 +390,7 @@ const $s = f({
390
390
  const n = S(), s = v();
391
391
  return () => p(kn, h(n), s);
392
392
  }
393
- }), Ie = b(eo), to = f({
393
+ }), Le = b(eo), to = f({
394
394
  name: "SyImage",
395
395
  inheritAttrs: !1,
396
396
  setup(n, { expose: s }) {
@@ -495,8 +495,8 @@ function ht(n, s) {
495
495
  const o = n.getAttribute(Oe);
496
496
  return o ? o.includes(ie) || n.setAttribute(Oe, `${ie} ${o}`) : n.setAttribute(Oe, ie), s;
497
497
  }
498
- const re = $n, Le = (n, s) => Ke.service(io(n), s);
499
- Object.defineProperty(Le, "_context", {
498
+ const re = $n, Fe = (n, s) => Ke.service(io(n), s);
499
+ Object.defineProperty(Fe, "_context", {
500
500
  get() {
501
501
  return Ke.service._context;
502
502
  },
@@ -525,10 +525,10 @@ const Ee = {
525
525
  }
526
526
  }, ml = {
527
527
  install(n) {
528
- Le._context = n._context, Ee._context = n._context, n.directive("loading", Ee), n.config.globalProperties.$loading = Le;
528
+ Fe._context = n._context, Ee._context = n._context, n.directive("loading", Ee), n.config.globalProperties.$loading = Fe;
529
529
  },
530
530
  directive: Ee,
531
- service: Le
531
+ service: Fe
532
532
  }, po = f({
533
533
  name: "SyMenu",
534
534
  inheritAttrs: !1,
@@ -583,21 +583,21 @@ Object.defineProperty(Te, "_context", {
583
583
  }
584
584
  });
585
585
  const qe = "sy-message-box";
586
- function Ne(n) {
586
+ function ze(n) {
587
587
  return n ? Q(T({}, n), { customClass: n.customClass ? `${qe} ${n.customClass}` : qe }) : { customClass: qe };
588
588
  }
589
- const Pe = (n, s) => ge(Ne(n), s);
589
+ const Pe = (n, s) => ge(ze(n), s);
590
590
  Pe.alert = (...n) => {
591
591
  const [s, o, r, c] = n;
592
- return ge.alert(s, o, Ne(r), c);
592
+ return ge.alert(s, o, ze(r), c);
593
593
  };
594
594
  Pe.confirm = (...n) => {
595
595
  const [s, o, r, c] = n;
596
- return ge.confirm(s, o, Ne(r), c);
596
+ return ge.confirm(s, o, ze(r), c);
597
597
  };
598
598
  Pe.prompt = (...n) => {
599
599
  const [s, o, r, c] = n;
600
- return ge.prompt(s, o, Ne(r), c);
600
+ return ge.prompt(s, o, ze(r), c);
601
601
  };
602
602
  Pe.close = () => ge.close();
603
603
  const yo = Pe;
@@ -1012,7 +1012,7 @@ const ea = f({
1012
1012
  return p(os, h(r, { popperClass: c }), o);
1013
1013
  };
1014
1014
  }
1015
- }), Fe = b(ea), ta = f({
1015
+ }), Me = b(ea), ta = f({
1016
1016
  name: "SyTree",
1017
1017
  inheritAttrs: !1,
1018
1018
  setup(n, { expose: s }) {
@@ -1478,7 +1478,7 @@ const Pt = f({
1478
1478
  (P(!0), W(
1479
1479
  ae,
1480
1480
  null,
1481
- Me(_.value, (R, U) => {
1481
+ Ne(_.value, (R, U) => {
1482
1482
  var G;
1483
1483
  return P(), W(
1484
1484
  ae,
@@ -1530,12 +1530,12 @@ const Pt = f({
1530
1530
  1
1531
1531
  /* TEXT */
1532
1532
  ),
1533
- L(u(Fe), {
1533
+ L(u(Me), {
1534
1534
  content: R.tooltip,
1535
1535
  placement: "top"
1536
1536
  }, {
1537
1537
  default: C(() => [
1538
- L(u(Ie), {
1538
+ L(u(Le), {
1539
1539
  class: "sy-pro-form__tip-icon",
1540
1540
  style: { "margin-left": "4px", "vertical-align": "middle", cursor: "pointer" }
1541
1541
  }, {
@@ -1625,7 +1625,7 @@ const Pt = f({
1625
1625
  1
1626
1626
  /* TEXT */
1627
1627
  ),
1628
- L(u(Ie), { style: { "margin-left": "2px" } }, {
1628
+ L(u(Le), { style: { "margin-left": "2px" } }, {
1629
1629
  default: C(() => [
1630
1630
  (P(), q(it(e.value ? u(ft) : u(mt))))
1631
1631
  ]),
@@ -1698,7 +1698,7 @@ const Pt = f({
1698
1698
  1
1699
1699
  /* TEXT */
1700
1700
  ),
1701
- L(u(Ie), { style: { "margin-left": "2px" } }, {
1701
+ L(u(Le), { style: { "margin-left": "2px" } }, {
1702
1702
  default: C(() => [
1703
1703
  (P(), q(it(e.value ? u(ft) : u(mt))))
1704
1704
  ]),
@@ -1736,11 +1736,11 @@ function ua(n = "id") {
1736
1736
  };
1737
1737
  }
1738
1738
  function ia(n) {
1739
- const { request: s, params: o, searchParam: r, postData: c, requestError: l, pagination: t = !0, staticData: e } = n, a = I(!1), g = I([]), x = ze({
1739
+ const { request: s, params: o, searchParam: r, postData: c, requestError: l, pagination: t = !0, staticData: e } = n, a = I(!1), g = I([]), x = Ie({
1740
1740
  pageNum: 1,
1741
1741
  pageSize: 10,
1742
1742
  total: 0
1743
- }), _ = ze({}), M = ze({}), z = F(() => {
1743
+ }), _ = Ie({}), M = Ie({}), z = F(() => {
1744
1744
  if (!(e != null && e.value))
1745
1745
  return g.value;
1746
1746
  if (!t)
@@ -1821,7 +1821,7 @@ function _t(n) {
1821
1821
  }
1822
1822
  function da(n, s, o) {
1823
1823
  var Ye;
1824
- const r = I(), c = I(), l = I(), t = I(n.type !== "unify"), e = I(null), a = F(() => _t(n.columns)), g = I(/* @__PURE__ */ new Map());
1824
+ const r = I(), c = I(), l = I(), t = I(n.type !== "unify"), e = I(null), a = F(() => Ie(_t(n.columns))), g = I(/* @__PURE__ */ new Map());
1825
1825
  function x(w) {
1826
1826
  return $e(this, null, function* () {
1827
1827
  var Z;
@@ -2288,7 +2288,7 @@ const pa = {
2288
2288
  (P(!0), W(
2289
2289
  ae,
2290
2290
  null,
2291
- Me(n.column.children, (y) => {
2291
+ Ne(n.column.children, (y) => {
2292
2292
  var B;
2293
2293
  return P(), q(i, {
2294
2294
  key: (B = y.prop) != null ? B : y.label,
@@ -2385,7 +2385,7 @@ const pa = {
2385
2385
  style: { cursor: "move" }
2386
2386
  }, {
2387
2387
  default: C(() => [
2388
- L(u(Ie), null, {
2388
+ L(u(Le), null, {
2389
2389
  default: C(() => [
2390
2390
  L(u(cs))
2391
2391
  ]),
@@ -2497,7 +2497,7 @@ const pa = {
2497
2497
  (P(!0), W(
2498
2498
  ae,
2499
2499
  null,
2500
- Me(u(e), (i) => {
2500
+ Ne(u(e), (i) => {
2501
2501
  var d, y;
2502
2502
  return P(), q(ha, {
2503
2503
  key: (y = (d = i.prop) != null ? d : i.label) != null ? y : i.type,
@@ -2552,7 +2552,7 @@ const pa = {
2552
2552
  ]),
2553
2553
  te("div", Aa, [
2554
2554
  V(i.$slots, "toolButton", {}, () => [
2555
- u(_)("refresh") ? (P(), q(u(Fe), {
2555
+ u(_)("refresh") ? (P(), q(u(Me), {
2556
2556
  key: 0,
2557
2557
  content: "刷新",
2558
2558
  placement: "top"
@@ -2567,7 +2567,7 @@ const pa = {
2567
2567
  _: 1
2568
2568
  /* STABLE */
2569
2569
  })) : E("v-if", !0),
2570
- u(_)("setting") ? (P(), q(u(Fe), {
2570
+ u(_)("setting") ? (P(), q(u(Me), {
2571
2571
  key: 1,
2572
2572
  content: "列设置",
2573
2573
  placement: "top"
@@ -2582,7 +2582,7 @@ const pa = {
2582
2582
  _: 1
2583
2583
  /* STABLE */
2584
2584
  })) : E("v-if", !0),
2585
- u(o).showSearch && u(_)("search") && u(c).length > 0 ? (P(), q(u(Fe), {
2585
+ u(o).showSearch && u(_)("search") && u(c).length > 0 ? (P(), q(u(Me), {
2586
2586
  key: 2,
2587
2587
  content: "搜索",
2588
2588
  placement: "top"
@@ -2827,7 +2827,7 @@ const pa = {
2827
2827
  (P(!0), W(
2828
2828
  ae,
2829
2829
  null,
2830
- Me(u(l), (B) => {
2830
+ Ne(u(l), (B) => {
2831
2831
  var j, N, Y, ee, K;
2832
2832
  return P(), q(xa, {
2833
2833
  key: (N = (j = B.search) == null ? void 0 : j.key) != null ? N : B.prop,
@@ -3126,7 +3126,7 @@ export {
3126
3126
  Zs as SyForm,
3127
3127
  Xs as SyFormItem,
3128
3128
  Ja as SyHeader,
3129
- Ie as SyIcon,
3129
+ Le as SyIcon,
3130
3130
  il as SyImage,
3131
3131
  wt as SyInput,
3132
3132
  oo as SyInputNumber,
@@ -3170,7 +3170,7 @@ export {
3170
3170
  Vl as SyText,
3171
3171
  Yo as SyTimePicker,
3172
3172
  Zo as SyTimeSelect,
3173
- Fe as SyTooltip,
3173
+ Me as SyTooltip,
3174
3174
  Dl as SyTree,
3175
3175
  Il as SyTreeSelect,
3176
3176
  Ll as SyUpload