@cldemo/ui-kit 1.1.0 → 1.1.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 (901) hide show
  1. package/COMPONENT_CATALOG.md +125 -42
  2. package/README.md +8 -7
  3. package/buildLibs/all/{BallColor4-CYDMNYIL.js → BallColor4-B1tO7Tbf.js} +1 -1
  4. package/buildLibs/{web/BallColor4-CvdyEpUB.cjs → all/BallColor4-XAmB3sGF.cjs} +1 -1
  5. package/buildLibs/{web/ToastRing-KEtXZej2.cjs → all/ToastRing-BIV-zK0K.cjs} +1 -1
  6. package/buildLibs/{web/ToastRing-DxVDUCSx.js → all/ToastRing-D7_Cqd_W.js} +1 -1
  7. package/buildLibs/all/{Video-Bbk0_YWw.js → Video-BCsixuXq.js} +1 -1
  8. package/buildLibs/all/{Video-BV-GRW4X.cjs → Video-kyxIjktP.cjs} +1 -1
  9. package/buildLibs/all/{index-Cap0WJgK.cjs → index-0NOmwWqO.cjs} +9 -9
  10. package/buildLibs/all/{index-sPYdePtz.js → index-CIctx5VJ.js} +110 -102
  11. package/buildLibs/all/index.cjs +1 -1
  12. package/buildLibs/all/index.js +1 -1
  13. package/buildLibs/common/Element/Event/index.d.ts +2 -0
  14. package/buildLibs/common/Element/index.d.ts +2 -0
  15. package/buildLibs/common/Tools/index.d.ts +2 -0
  16. package/buildLibs/common/axios.d.ts +2 -0
  17. package/buildLibs/common/base.d.ts +2 -0
  18. package/buildLibs/common/browserProgress.cjs +1 -1
  19. package/buildLibs/common/browserProgress.d.ts +2 -0
  20. package/buildLibs/common/browserProgress.js +24 -15
  21. package/buildLibs/common/day.d.ts +2 -0
  22. package/buildLibs/common/echart.d.ts +2 -0
  23. package/buildLibs/common/globalConfig.cjs +1 -1
  24. package/buildLibs/common/globalConfig.d.ts +2 -0
  25. package/buildLibs/common/globalConfig.js +12 -8
  26. package/buildLibs/common/globalTypes.d.ts +1 -0
  27. package/buildLibs/common/i18n/index.d.ts +2 -0
  28. package/buildLibs/common/log.d.ts +2 -0
  29. package/buildLibs/common/promise.d.ts +2 -0
  30. package/buildLibs/common/tooltip.d.ts +2 -0
  31. package/buildLibs/core/alert.cjs +1 -0
  32. package/buildLibs/core/alert.d.ts +1 -0
  33. package/buildLibs/core/alert.js +1 -0
  34. package/buildLibs/core/clipboard.cjs +1 -0
  35. package/buildLibs/core/clipboard.d.ts +1 -0
  36. package/buildLibs/core/clipboard.js +1 -0
  37. package/buildLibs/core/codeHighlight.cjs +1 -0
  38. package/buildLibs/core/codeHighlight.d.ts +1 -0
  39. package/buildLibs/core/codeHighlight.js +1 -0
  40. package/buildLibs/core/languagePack.cjs +1 -0
  41. package/buildLibs/core/languagePack.d.ts +1 -0
  42. package/buildLibs/core/languagePack.js +1 -0
  43. package/buildLibs/core/lazyImage.cjs +1 -0
  44. package/buildLibs/core/lazyImage.d.ts +1 -0
  45. package/buildLibs/core/lazyImage.js +1 -0
  46. package/buildLibs/core/loadScreen.cjs +1 -0
  47. package/buildLibs/core/loadScreen.d.ts +1 -0
  48. package/buildLibs/core/loadScreen.js +1 -0
  49. package/buildLibs/core/notify.cjs +1 -0
  50. package/buildLibs/core/notify.d.ts +1 -0
  51. package/buildLibs/core/notify.js +1 -0
  52. package/buildLibs/core/notifyM.cjs +1 -0
  53. package/buildLibs/core/notifyM.d.ts +1 -0
  54. package/buildLibs/core/notifyM.js +1 -0
  55. package/buildLibs/core/preview.cjs +1 -0
  56. package/buildLibs/core/preview.d.ts +1 -0
  57. package/buildLibs/core/preview.js +1 -0
  58. package/buildLibs/core/toast.cjs +1 -0
  59. package/buildLibs/core/toast.d.ts +1 -0
  60. package/buildLibs/core/toast.js +1 -0
  61. package/buildLibs/core/tooltip.cjs +1 -0
  62. package/buildLibs/core/tooltip.d.ts +1 -0
  63. package/buildLibs/core/tooltip.js +1 -0
  64. package/buildLibs/core/validate.cjs +1 -0
  65. package/buildLibs/core/validate.d.ts +1 -0
  66. package/buildLibs/core/validate.js +1 -0
  67. package/buildLibs/core/waves.cjs +1 -0
  68. package/buildLibs/core/waves.d.ts +1 -0
  69. package/buildLibs/core/waves.js +1 -0
  70. package/buildLibs/{all/BallColor4-CaqTfMcX.cjs → mobile/BallColor4-D5cOCCwS.cjs} +1 -1
  71. package/buildLibs/mobile/{BallColor4-DogqtiHo.js → BallColor4-DW64tRd6.js} +1 -1
  72. package/buildLibs/{all/ToastRing-BW0hddZN.js → mobile/ToastRing-CBnFEhCg.js} +1 -1
  73. package/buildLibs/mobile/{ToastRing-BQAASeWu.cjs → ToastRing-DUy5-KJI.cjs} +1 -1
  74. package/buildLibs/mobile/{index-Bh4jt080.js → index-Ccqb6JSg.js} +1276 -1269
  75. package/buildLibs/mobile/{index-DmdxP8hd.cjs → index-SXa7oZIH.cjs} +5 -5
  76. package/buildLibs/mobile/index.cjs +1 -1
  77. package/buildLibs/mobile/index.js +1 -1
  78. package/buildLibs/modules/actionSheet.d.ts +1 -1
  79. package/buildLibs/modules/actionSheet.js +1 -212
  80. package/buildLibs/modules/anchorNav.d.ts +1 -1
  81. package/buildLibs/modules/anchorNav.js +1 -147
  82. package/buildLibs/modules/backTop.d.ts +1 -1
  83. package/buildLibs/modules/backTop.js +1 -139
  84. package/buildLibs/modules/badge.d.ts +1 -1
  85. package/buildLibs/modules/badge.js +1 -4
  86. package/buildLibs/modules/banner.d.ts +1 -1
  87. package/buildLibs/modules/banner.js +2 -332
  88. package/buildLibs/modules/breadcrumb.d.ts +1 -1
  89. package/buildLibs/modules/breadcrumb.js +1 -73
  90. package/buildLibs/modules/button.d.ts +1 -1
  91. package/buildLibs/modules/button.js +1 -4
  92. package/buildLibs/modules/calendar.d.ts +1 -1
  93. package/buildLibs/modules/calendar.js +1 -353
  94. package/buildLibs/modules/calendarM.d.ts +1 -1
  95. package/buildLibs/modules/calendarM.js +1 -473
  96. package/buildLibs/modules/callout.d.ts +1 -1
  97. package/buildLibs/modules/callout.js +1 -45
  98. package/buildLibs/modules/card.d.ts +1 -1
  99. package/buildLibs/modules/card.js +1 -4
  100. package/buildLibs/modules/cardColor.d.ts +1 -1
  101. package/buildLibs/modules/cardColor.js +1 -54
  102. package/buildLibs/modules/cell.d.ts +1 -1
  103. package/buildLibs/modules/cell.js +1 -109
  104. package/buildLibs/modules/cellSwipe.d.ts +1 -1
  105. package/buildLibs/modules/cellSwipe.js +1 -159
  106. package/buildLibs/modules/checkbox.d.ts +1 -1
  107. package/buildLibs/modules/checkbox.js +1 -4
  108. package/buildLibs/modules/checkboxOne.d.ts +1 -1
  109. package/buildLibs/modules/checkboxOne.js +1 -4
  110. package/buildLibs/modules/clipboard.d.ts +1 -1
  111. package/buildLibs/modules/clipboard.js +1 -4
  112. package/buildLibs/modules/codeLegend.d.ts +1 -1
  113. package/buildLibs/modules/codeLegend.js +1 -149
  114. package/buildLibs/modules/codeLegendM.d.ts +1 -1
  115. package/buildLibs/modules/codeLegendM.js +1 -196
  116. package/buildLibs/modules/collapse.d.ts +1 -1
  117. package/buildLibs/modules/collapse.js +1 -133
  118. package/buildLibs/modules/colorPicker.d.ts +1 -1
  119. package/buildLibs/modules/colorPicker.js +1 -1196
  120. package/buildLibs/modules/countDown.d.ts +1 -1
  121. package/buildLibs/modules/countDown.js +1 -139
  122. package/buildLibs/modules/cropper.d.ts +1 -1
  123. package/buildLibs/modules/cropper.js +1 -4
  124. package/buildLibs/modules/cropperM.d.ts +1 -1
  125. package/buildLibs/modules/cropperM.js +1 -450
  126. package/buildLibs/modules/cropperPreview.d.ts +1 -1
  127. package/buildLibs/modules/cropperPreview.js +1 -222
  128. package/buildLibs/modules/darg.d.ts +1 -1
  129. package/buildLibs/modules/darg.js +1 -2160
  130. package/buildLibs/modules/dateTime.d.ts +1 -1
  131. package/buildLibs/modules/dateTime.js +1 -4
  132. package/buildLibs/modules/divider.d.ts +1 -1
  133. package/buildLibs/modules/divider.js +1 -4
  134. package/buildLibs/modules/dropdownMenu.d.ts +1 -1
  135. package/buildLibs/modules/dropdownMenu.js +1 -168
  136. package/buildLibs/modules/dropdownMenuItem.d.ts +1 -1
  137. package/buildLibs/modules/dropdownMenuItem.js +1 -88
  138. package/buildLibs/modules/dropdownMenuM.d.ts +1 -1
  139. package/buildLibs/modules/dropdownMenuM.js +1 -216
  140. package/buildLibs/modules/dropdownMenuMItem.d.ts +1 -1
  141. package/buildLibs/modules/dropdownMenuMItem.js +1 -178
  142. package/buildLibs/modules/dropdownPopup.d.ts +1 -1
  143. package/buildLibs/modules/dropdownPopup.js +1 -122
  144. package/buildLibs/modules/echarts.d.ts +1 -1
  145. package/buildLibs/modules/echarts.js +1 -4
  146. package/buildLibs/modules/echartsLineAxisTag.d.ts +1 -1
  147. package/buildLibs/modules/echartsLineAxisTag.js +1 -920
  148. package/buildLibs/modules/ellipsis.d.ts +1 -1
  149. package/buildLibs/modules/ellipsis.js +1 -4
  150. package/buildLibs/modules/empty.d.ts +1 -1
  151. package/buildLibs/modules/empty.js +1 -65
  152. package/buildLibs/modules/fileUpload.d.ts +1 -1
  153. package/buildLibs/modules/fileUpload.js +1 -4
  154. package/buildLibs/modules/floatBubble.d.ts +1 -1
  155. package/buildLibs/modules/floatBubble.js +1 -192
  156. package/buildLibs/modules/floatPanel.d.ts +1 -1
  157. package/buildLibs/modules/floatPanel.js +1 -279
  158. package/buildLibs/modules/form.d.ts +1 -1
  159. package/buildLibs/modules/form.js +1 -4
  160. package/buildLibs/modules/formGroupBtns.d.ts +1 -1
  161. package/buildLibs/modules/formGroupBtns.js +1 -87
  162. package/buildLibs/modules/formGroupHorizontal.d.ts +1 -1
  163. package/buildLibs/modules/formGroupHorizontal.js +1 -4
  164. package/buildLibs/modules/formGroupVertical.d.ts +1 -1
  165. package/buildLibs/modules/formGroupVertical.js +1 -62
  166. package/buildLibs/modules/formValidate.d.ts +1 -1
  167. package/buildLibs/modules/formValidate.js +1 -4
  168. package/buildLibs/modules/framePhone.d.ts +1 -1
  169. package/buildLibs/modules/framePhone.js +1 -71
  170. package/buildLibs/modules/grid.d.ts +1 -1
  171. package/buildLibs/modules/grid.js +1 -95
  172. package/buildLibs/modules/iconFont.d.ts +1 -1
  173. package/buildLibs/modules/iconFont.js +1 -4
  174. package/buildLibs/modules/image.d.ts +1 -1
  175. package/buildLibs/modules/image.js +1 -4
  176. package/buildLibs/modules/indexBar.d.ts +1 -1
  177. package/buildLibs/modules/indexBar.js +1 -173
  178. package/buildLibs/modules/input.d.ts +1 -1
  179. package/buildLibs/modules/input.js +1 -4
  180. package/buildLibs/modules/inputCaptcha.d.ts +1 -1
  181. package/buildLibs/modules/inputCaptcha.js +1 -136
  182. package/buildLibs/modules/inputNumber.d.ts +1 -1
  183. package/buildLibs/modules/inputNumber.js +1 -4
  184. package/buildLibs/modules/inputNumberStepper.d.ts +1 -1
  185. package/buildLibs/modules/inputNumberStepper.js +1 -4
  186. package/buildLibs/modules/inputPassword.d.ts +1 -1
  187. package/buildLibs/modules/inputPassword.js +1 -149
  188. package/buildLibs/modules/inputPin.d.ts +1 -1
  189. package/buildLibs/modules/inputPin.js +1 -182
  190. package/buildLibs/modules/inputSearch.d.ts +1 -1
  191. package/buildLibs/modules/inputSearch.js +1 -4
  192. package/buildLibs/modules/inputTag.d.ts +1 -1
  193. package/buildLibs/modules/inputTag.js +1 -4
  194. package/buildLibs/modules/inputTextarea.d.ts +1 -1
  195. package/buildLibs/modules/inputTextarea.js +1 -4
  196. package/buildLibs/modules/link.d.ts +1 -1
  197. package/buildLibs/modules/link.js +1 -4
  198. package/buildLibs/modules/load.d.ts +1 -1
  199. package/buildLibs/modules/load.js +1 -4
  200. package/buildLibs/modules/loadFullCenter.d.ts +1 -1
  201. package/buildLibs/modules/loadFullCenter.js +1 -44
  202. package/buildLibs/modules/loadIng.d.ts +1 -1
  203. package/buildLibs/modules/loadIng.js +1 -4
  204. package/buildLibs/modules/loadScreen.d.ts +1 -1
  205. package/buildLibs/modules/loadScreen.js +1 -74
  206. package/buildLibs/modules/loadWarp.d.ts +1 -1
  207. package/buildLibs/modules/loadWarp.js +1 -52
  208. package/buildLibs/modules/modal.d.ts +1 -1
  209. package/buildLibs/modules/modal.js +1 -4
  210. package/buildLibs/modules/navBar.d.ts +1 -1
  211. package/buildLibs/modules/navBar.js +1 -119
  212. package/buildLibs/modules/noticeBar.d.ts +1 -1
  213. package/buildLibs/modules/noticeBar.js +1 -145
  214. package/buildLibs/modules/notifyM.d.ts +1 -1
  215. package/buildLibs/modules/notifyM.js +1 -277
  216. package/buildLibs/modules/numberKeyboard.d.ts +1 -1
  217. package/buildLibs/modules/numberKeyboard.js +1 -287
  218. package/buildLibs/modules/numberRoll.d.ts +1 -1
  219. package/buildLibs/modules/numberRoll.js +1 -96
  220. package/buildLibs/modules/overlay.d.ts +1 -1
  221. package/buildLibs/modules/overlay.js +1 -4
  222. package/buildLibs/modules/paginate.d.ts +1 -1
  223. package/buildLibs/modules/paginate.js +1 -4
  224. package/buildLibs/modules/picker.d.ts +1 -1
  225. package/buildLibs/modules/picker.js +1 -4
  226. package/buildLibs/modules/pickerArea.d.ts +1 -1
  227. package/buildLibs/modules/pickerArea.js +1 -255
  228. package/buildLibs/modules/pickerCascader.d.ts +1 -1
  229. package/buildLibs/modules/pickerCascader.js +1 -316
  230. package/buildLibs/modules/pickerDate.d.ts +1 -1
  231. package/buildLibs/modules/pickerDate.js +1 -220
  232. package/buildLibs/modules/pickerTime.d.ts +1 -1
  233. package/buildLibs/modules/pickerTime.js +1 -230
  234. package/buildLibs/modules/popup.d.ts +1 -1
  235. package/buildLibs/modules/popup.js +1 -4
  236. package/buildLibs/modules/portlet.d.ts +1 -1
  237. package/buildLibs/modules/portlet.js +1 -51
  238. package/buildLibs/modules/previewExample.d.ts +1 -1
  239. package/buildLibs/modules/previewExample.js +1 -4
  240. package/buildLibs/modules/progress.d.ts +1 -1
  241. package/buildLibs/modules/progress.js +1 -262
  242. package/buildLibs/modules/pullToRefresh.d.ts +1 -1
  243. package/buildLibs/modules/pullToRefresh.js +1 -4
  244. package/buildLibs/modules/radio.d.ts +1 -1
  245. package/buildLibs/modules/radio.js +1 -4
  246. package/buildLibs/modules/radioOne.d.ts +1 -1
  247. package/buildLibs/modules/radioOne.js +1 -4
  248. package/buildLibs/modules/rate.d.ts +1 -1
  249. package/buildLibs/modules/rate.js +1 -235
  250. package/buildLibs/modules/scrollCard.d.ts +1 -1
  251. package/buildLibs/modules/scrollCard.js +1 -368
  252. package/buildLibs/modules/scrollXFence.d.ts +1 -1
  253. package/buildLibs/modules/scrollXFence.js +1 -4
  254. package/buildLibs/modules/select.d.ts +1 -1
  255. package/buildLibs/modules/select.js +1 -4
  256. package/buildLibs/modules/selectCascade.d.ts +1 -1
  257. package/buildLibs/modules/selectCascade.js +1 -4
  258. package/buildLibs/modules/selectMove.d.ts +1 -1
  259. package/buildLibs/modules/selectMove.js +1 -1352
  260. package/buildLibs/modules/selectTag.d.ts +1 -1
  261. package/buildLibs/modules/selectTag.js +1 -4
  262. package/buildLibs/modules/selectTree.d.ts +1 -1
  263. package/buildLibs/modules/selectTree.js +1 -377
  264. package/buildLibs/modules/sharePanel.d.ts +1 -1
  265. package/buildLibs/modules/sharePanel.js +1 -151
  266. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-GSyMXu17.js → Index.vue_vue_type_script_setup_true_lang-C4t0E13G.js} +1 -1
  267. package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DtsjjKBG.js → Index.vue_vue_type_script_setup_true_lang-DfsrIstV.js} +274 -273
  268. package/buildLibs/modules/shared/Validate.vue_vue_type_script_setup_true_lang-CJNHymo3.js +419 -0
  269. package/buildLibs/modules/sideMenu.d.ts +1 -1
  270. package/buildLibs/modules/sideMenu.js +1 -227
  271. package/buildLibs/modules/sidebar.d.ts +1 -1
  272. package/buildLibs/modules/sidebar.js +1 -63
  273. package/buildLibs/modules/sidebarSelect.d.ts +1 -1
  274. package/buildLibs/modules/sidebarSelect.js +1 -86
  275. package/buildLibs/modules/signature.d.ts +1 -1
  276. package/buildLibs/modules/signature.js +1 -250
  277. package/buildLibs/modules/slider.d.ts +1 -1
  278. package/buildLibs/modules/slider.js +1 -4
  279. package/buildLibs/modules/steps.d.ts +1 -1
  280. package/buildLibs/modules/steps.js +1 -112
  281. package/buildLibs/modules/swipe.d.ts +1 -1
  282. package/buildLibs/modules/swipe.js +1 -177
  283. package/buildLibs/modules/switchery.d.ts +1 -1
  284. package/buildLibs/modules/switchery.js +1 -261
  285. package/buildLibs/modules/tabM.d.ts +1 -1
  286. package/buildLibs/modules/tabM.js +1 -115
  287. package/buildLibs/modules/tabbar.d.ts +1 -1
  288. package/buildLibs/modules/tabbar.js +1 -119
  289. package/buildLibs/modules/table.d.ts +1 -1
  290. package/buildLibs/modules/table.js +1 -2409
  291. package/buildLibs/modules/tableEdit.d.ts +1 -1
  292. package/buildLibs/modules/tableEdit.js +1 -79
  293. package/buildLibs/modules/tableSimple.d.ts +1 -1
  294. package/buildLibs/modules/tableSimple.js +1 -74
  295. package/buildLibs/modules/tabs.d.ts +1 -1
  296. package/buildLibs/modules/tabs.js +1 -358
  297. package/buildLibs/modules/tags.d.ts +1 -1
  298. package/buildLibs/modules/tags.js +1 -4
  299. package/buildLibs/modules/textHighlight.d.ts +1 -1
  300. package/buildLibs/modules/textHighlight.js +1 -68
  301. package/buildLibs/modules/toast.d.ts +1 -1
  302. package/buildLibs/modules/toast.js +1 -198
  303. package/buildLibs/modules/transitionSlideUpDown.d.ts +1 -1
  304. package/buildLibs/modules/transitionSlideUpDown.js +1 -4
  305. package/buildLibs/modules/tree.d.ts +1 -1
  306. package/buildLibs/modules/tree.js +1 -4
  307. package/buildLibs/modules/waterfall.d.ts +1 -1
  308. package/buildLibs/modules/waterfall.js +1 -174
  309. package/buildLibs/modules/waterfallImage.d.ts +1 -1
  310. package/buildLibs/modules/waterfallImage.js +1 -49
  311. package/buildLibs/modules/watermark.d.ts +1 -1
  312. package/buildLibs/modules/watermark.js +1 -77
  313. package/buildLibs/modules/weekHour.d.ts +1 -1
  314. package/buildLibs/modules/weekHour.js +1 -765
  315. package/buildLibs/modules/xEditable.d.ts +1 -1
  316. package/buildLibs/modules/xEditable.js +1 -772
  317. package/buildLibs/styles/Common/meta.json +2 -0
  318. package/buildLibs/styles/Element/__provide__/LoadScreen.css +0 -31
  319. package/buildLibs/types/Common/browserProgress.d.ts +3 -1
  320. package/buildLibs/types/Common/globalConfig.d.ts +35 -2
  321. package/buildLibs/types/Common/globalTypes.d.ts +12 -2
  322. package/buildLibs/types/Web/Preview/lazy.d.ts +21 -0
  323. package/buildLibs/utils/Element/ClBadge.cjs +1 -1
  324. package/buildLibs/utils/Element/ClBadge.d.ts +1 -1
  325. package/buildLibs/utils/Element/ClBadge.js +1 -1
  326. package/buildLibs/utils/Element/ClBreadcrumb.cjs +1 -1
  327. package/buildLibs/utils/Element/ClBreadcrumb.d.ts +1 -1
  328. package/buildLibs/utils/Element/ClBreadcrumb.js +1 -1
  329. package/buildLibs/utils/Element/ClButton.cjs +1 -1
  330. package/buildLibs/utils/Element/ClButton.d.ts +1 -1
  331. package/buildLibs/utils/Element/ClButton.js +1 -1
  332. package/buildLibs/utils/Element/ClCallout.d.ts +1 -1
  333. package/buildLibs/utils/Element/ClCard.cjs +1 -1
  334. package/buildLibs/utils/Element/ClCard.d.ts +1 -1
  335. package/buildLibs/utils/Element/ClCard.js +1 -1
  336. package/buildLibs/utils/Element/ClCardColor.d.ts +1 -1
  337. package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
  338. package/buildLibs/utils/Element/ClCheckbox.d.ts +1 -1
  339. package/buildLibs/utils/Element/ClCheckbox.js +1 -1
  340. package/buildLibs/utils/Element/ClCheckboxOne.cjs +1 -1
  341. package/buildLibs/utils/Element/ClCheckboxOne.d.ts +1 -1
  342. package/buildLibs/utils/Element/ClCheckboxOne.js +1 -1
  343. package/buildLibs/utils/Element/ClClipboard.cjs +1 -1
  344. package/buildLibs/utils/Element/ClClipboard.d.ts +1 -1
  345. package/buildLibs/utils/Element/ClClipboard.js +1 -1
  346. package/buildLibs/utils/Element/ClCollapse.cjs +1 -1
  347. package/buildLibs/utils/Element/ClCollapse.d.ts +1 -1
  348. package/buildLibs/utils/Element/ClCollapse.js +1 -1
  349. package/buildLibs/utils/Element/ClCountDown.d.ts +1 -1
  350. package/buildLibs/utils/Element/ClDarg.cjs +1 -1
  351. package/buildLibs/utils/Element/ClDarg.d.ts +1 -1
  352. package/buildLibs/utils/Element/ClDarg.js +1 -1
  353. package/buildLibs/utils/Element/ClDivider.cjs +1 -1
  354. package/buildLibs/utils/Element/ClDivider.d.ts +1 -1
  355. package/buildLibs/utils/Element/ClDivider.js +1 -1
  356. package/buildLibs/utils/Element/ClEllipsis.cjs +1 -1
  357. package/buildLibs/utils/Element/ClEllipsis.d.ts +1 -1
  358. package/buildLibs/utils/Element/ClEllipsis.js +1 -1
  359. package/buildLibs/utils/Element/ClEmpty.d.ts +1 -1
  360. package/buildLibs/utils/Element/ClForm.cjs +1 -1
  361. package/buildLibs/utils/Element/ClForm.d.ts +1 -1
  362. package/buildLibs/utils/Element/ClForm.js +1 -1
  363. package/buildLibs/utils/Element/ClFormGroupBtns.cjs +1 -1
  364. package/buildLibs/utils/Element/ClFormGroupBtns.d.ts +1 -1
  365. package/buildLibs/utils/Element/ClFormGroupBtns.js +1 -1
  366. package/buildLibs/utils/Element/ClFormGroupHorizontal.cjs +1 -1
  367. package/buildLibs/utils/Element/ClFormGroupHorizontal.d.ts +1 -1
  368. package/buildLibs/utils/Element/ClFormGroupHorizontal.js +1 -1
  369. package/buildLibs/utils/Element/ClFormGroupVertical.d.ts +1 -1
  370. package/buildLibs/utils/Element/ClFormValidate.cjs +1 -1
  371. package/buildLibs/utils/Element/ClFormValidate.d.ts +1 -1
  372. package/buildLibs/utils/Element/ClFormValidate.js +1 -1
  373. package/buildLibs/utils/Element/ClIconFont.cjs +1 -1
  374. package/buildLibs/utils/Element/ClIconFont.d.ts +1 -1
  375. package/buildLibs/utils/Element/ClIconFont.js +1 -1
  376. package/buildLibs/utils/Element/ClImage.cjs +1 -1
  377. package/buildLibs/utils/Element/ClImage.d.ts +1 -1
  378. package/buildLibs/utils/Element/ClImage.js +1 -1
  379. package/buildLibs/utils/Element/ClInput.cjs +1 -1
  380. package/buildLibs/utils/Element/ClInput.d.ts +1 -1
  381. package/buildLibs/utils/Element/ClInput.js +1 -1
  382. package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
  383. package/buildLibs/utils/Element/ClInputCaptcha.d.ts +1 -1
  384. package/buildLibs/utils/Element/ClInputCaptcha.js +2 -2
  385. package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
  386. package/buildLibs/utils/Element/ClInputNumber.d.ts +1 -1
  387. package/buildLibs/utils/Element/ClInputNumber.js +1 -1
  388. package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
  389. package/buildLibs/utils/Element/ClInputNumberStepper.d.ts +1 -1
  390. package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
  391. package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
  392. package/buildLibs/utils/Element/ClInputPassword.d.ts +1 -1
  393. package/buildLibs/utils/Element/ClInputPassword.js +2 -2
  394. package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
  395. package/buildLibs/utils/Element/ClInputSearch.d.ts +1 -1
  396. package/buildLibs/utils/Element/ClInputSearch.js +1 -1
  397. package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
  398. package/buildLibs/utils/Element/ClInputTextarea.d.ts +1 -1
  399. package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
  400. package/buildLibs/utils/Element/ClLink.cjs +1 -1
  401. package/buildLibs/utils/Element/ClLink.d.ts +1 -1
  402. package/buildLibs/utils/Element/ClLink.js +1 -1
  403. package/buildLibs/utils/Element/ClLoad.cjs +1 -1
  404. package/buildLibs/utils/Element/ClLoad.d.ts +1 -1
  405. package/buildLibs/utils/Element/ClLoad.js +1 -1
  406. package/buildLibs/utils/Element/ClLoadFullCenter.cjs +1 -1
  407. package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +1 -1
  408. package/buildLibs/utils/Element/ClLoadFullCenter.js +2 -2
  409. package/buildLibs/utils/Element/ClLoadIng.cjs +1 -1
  410. package/buildLibs/utils/Element/ClLoadIng.d.ts +1 -1
  411. package/buildLibs/utils/Element/ClLoadIng.js +1 -1
  412. package/buildLibs/utils/Element/ClLoadScreen.cjs +1 -1
  413. package/buildLibs/utils/Element/ClLoadScreen.d.ts +1 -1
  414. package/buildLibs/utils/Element/ClLoadScreen.js +2 -72
  415. package/buildLibs/utils/Element/ClLoadWarp.cjs +1 -1
  416. package/buildLibs/utils/Element/ClLoadWarp.d.ts +1 -1
  417. package/buildLibs/utils/Element/ClLoadWarp.js +1 -1
  418. package/buildLibs/utils/Element/ClModal.cjs +1 -1
  419. package/buildLibs/utils/Element/ClModal.d.ts +1 -1
  420. package/buildLibs/utils/Element/ClModal.js +1 -1
  421. package/buildLibs/utils/Element/ClNumberRoll.d.ts +1 -1
  422. package/buildLibs/utils/Element/ClOverlay.cjs +1 -1
  423. package/buildLibs/utils/Element/ClOverlay.d.ts +1 -1
  424. package/buildLibs/utils/Element/ClOverlay.js +1 -1
  425. package/buildLibs/utils/Element/ClProgress.cjs +1 -1
  426. package/buildLibs/utils/Element/ClProgress.d.ts +1 -1
  427. package/buildLibs/utils/Element/ClProgress.js +1 -1
  428. package/buildLibs/utils/Element/ClRadio.cjs +1 -1
  429. package/buildLibs/utils/Element/ClRadio.d.ts +1 -1
  430. package/buildLibs/utils/Element/ClRadio.js +1 -1
  431. package/buildLibs/utils/Element/ClRadioOne.cjs +1 -1
  432. package/buildLibs/utils/Element/ClRadioOne.d.ts +1 -1
  433. package/buildLibs/utils/Element/ClRadioOne.js +1 -1
  434. package/buildLibs/utils/Element/ClSlider.cjs +1 -1
  435. package/buildLibs/utils/Element/ClSlider.d.ts +1 -1
  436. package/buildLibs/utils/Element/ClSlider.js +1 -1
  437. package/buildLibs/utils/Element/ClSwitchery.cjs +1 -1
  438. package/buildLibs/utils/Element/ClSwitchery.d.ts +1 -1
  439. package/buildLibs/utils/Element/ClSwitchery.js +2 -2
  440. package/buildLibs/utils/Element/ClTags.cjs +1 -1
  441. package/buildLibs/utils/Element/ClTags.d.ts +1 -1
  442. package/buildLibs/utils/Element/ClTags.js +1 -1
  443. package/buildLibs/utils/Element/ClTransitionSlideUpDown.d.ts +1 -1
  444. package/buildLibs/utils/Element/ClWaterfall.d.ts +1 -1
  445. package/buildLibs/utils/Element/ClWaterfallImage.cjs +1 -1
  446. package/buildLibs/utils/Element/ClWaterfallImage.d.ts +1 -1
  447. package/buildLibs/utils/Element/ClWaterfallImage.js +2 -2
  448. package/buildLibs/utils/Element/__directive__/LazyImage.cjs +1 -0
  449. package/buildLibs/utils/Element/__directive__/LazyImage.d.ts +1 -0
  450. package/buildLibs/utils/Element/__directive__/LazyImage.js +6 -0
  451. package/buildLibs/utils/Element/__provide__/Clipboard.cjs +1 -0
  452. package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +1 -0
  453. package/buildLibs/utils/Element/__provide__/Clipboard.js +37 -0
  454. package/buildLibs/utils/Element/__provide__/LanguagePack.cjs +1 -0
  455. package/buildLibs/utils/Element/__provide__/LanguagePack.d.ts +1 -0
  456. package/buildLibs/utils/Element/__provide__/LanguagePack.js +28 -0
  457. package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +1 -0
  458. package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +1 -0
  459. package/buildLibs/utils/Element/__provide__/LoadScreen.js +23 -0
  460. package/buildLibs/utils/Element/__provide__/Validate.cjs +1 -0
  461. package/buildLibs/utils/Element/__provide__/Validate.d.ts +1 -0
  462. package/buildLibs/utils/Element/__provide__/Validate.js +104 -0
  463. package/buildLibs/utils/Element/installCommon.cjs +1 -0
  464. package/buildLibs/utils/Element/installCommon.d.ts +1 -0
  465. package/buildLibs/utils/Element/installCommon.js +24 -0
  466. package/buildLibs/utils/Mobile/ClActionSheet.cjs +1 -1
  467. package/buildLibs/utils/Mobile/ClActionSheet.d.ts +1 -1
  468. package/buildLibs/utils/Mobile/ClActionSheet.js +3 -3
  469. package/buildLibs/utils/Mobile/ClBackTop.cjs +1 -1
  470. package/buildLibs/utils/Mobile/ClBackTop.d.ts +1 -1
  471. package/buildLibs/utils/Mobile/ClBackTop.js +2 -2
  472. package/buildLibs/utils/Mobile/ClBanner.cjs +1 -1
  473. package/buildLibs/utils/Mobile/ClBanner.d.ts +1 -1
  474. package/buildLibs/utils/Mobile/ClBanner.js +3 -3
  475. package/buildLibs/utils/Mobile/ClCalendarM.cjs +1 -1
  476. package/buildLibs/utils/Mobile/ClCalendarM.d.ts +1 -1
  477. package/buildLibs/utils/Mobile/ClCalendarM.js +4 -4
  478. package/buildLibs/utils/Mobile/ClCell.cjs +1 -1
  479. package/buildLibs/utils/Mobile/ClCell.d.ts +1 -1
  480. package/buildLibs/utils/Mobile/ClCell.js +2 -2
  481. package/buildLibs/utils/Mobile/ClCellSwipe.d.ts +1 -1
  482. package/buildLibs/utils/Mobile/ClCodeLegendM.cjs +1 -1
  483. package/buildLibs/utils/Mobile/ClCodeLegendM.d.ts +1 -1
  484. package/buildLibs/utils/Mobile/ClCodeLegendM.js +2 -2
  485. package/buildLibs/utils/Mobile/ClCropperM.cjs +1 -1
  486. package/buildLibs/utils/Mobile/ClCropperM.d.ts +1 -1
  487. package/buildLibs/utils/Mobile/ClCropperM.js +4 -4
  488. package/buildLibs/utils/Mobile/ClDropdownMenuM.d.ts +1 -1
  489. package/buildLibs/utils/Mobile/ClDropdownMenuMItem.cjs +1 -1
  490. package/buildLibs/utils/Mobile/ClDropdownMenuMItem.d.ts +1 -1
  491. package/buildLibs/utils/Mobile/ClDropdownMenuMItem.js +3 -3
  492. package/buildLibs/utils/Mobile/ClFloatBubble.d.ts +1 -1
  493. package/buildLibs/utils/Mobile/ClFloatPanel.d.ts +1 -1
  494. package/buildLibs/utils/Mobile/ClGrid.cjs +1 -1
  495. package/buildLibs/utils/Mobile/ClGrid.d.ts +1 -1
  496. package/buildLibs/utils/Mobile/ClGrid.js +1 -1
  497. package/buildLibs/utils/Mobile/ClIndexBar.d.ts +1 -1
  498. package/buildLibs/utils/Mobile/ClInputPin.d.ts +1 -1
  499. package/buildLibs/utils/Mobile/ClNavBar.cjs +1 -1
  500. package/buildLibs/utils/Mobile/ClNavBar.d.ts +1 -1
  501. package/buildLibs/utils/Mobile/ClNavBar.js +1 -1
  502. package/buildLibs/utils/Mobile/ClNoticeBar.cjs +1 -1
  503. package/buildLibs/utils/Mobile/ClNoticeBar.d.ts +1 -1
  504. package/buildLibs/utils/Mobile/ClNoticeBar.js +1 -1
  505. package/buildLibs/utils/Mobile/ClNotifyM.cjs +1 -1
  506. package/buildLibs/utils/Mobile/ClNotifyM.d.ts +1 -1
  507. package/buildLibs/utils/Mobile/ClNotifyM.js +1 -1
  508. package/buildLibs/utils/Mobile/ClNumberKeyboard.cjs +1 -1
  509. package/buildLibs/utils/Mobile/ClNumberKeyboard.d.ts +1 -1
  510. package/buildLibs/utils/Mobile/ClNumberKeyboard.js +2 -2
  511. package/buildLibs/utils/Mobile/ClPicker.cjs +1 -1
  512. package/buildLibs/utils/Mobile/ClPicker.d.ts +1 -1
  513. package/buildLibs/utils/Mobile/ClPicker.js +1 -1
  514. package/buildLibs/utils/Mobile/ClPickerArea.cjs +1 -1
  515. package/buildLibs/utils/Mobile/ClPickerArea.d.ts +1 -1
  516. package/buildLibs/utils/Mobile/ClPickerArea.js +1 -1
  517. package/buildLibs/utils/Mobile/ClPickerCascader.cjs +1 -1
  518. package/buildLibs/utils/Mobile/ClPickerCascader.d.ts +1 -1
  519. package/buildLibs/utils/Mobile/ClPickerCascader.js +2 -2
  520. package/buildLibs/utils/Mobile/ClPickerDate.cjs +1 -1
  521. package/buildLibs/utils/Mobile/ClPickerDate.d.ts +1 -1
  522. package/buildLibs/utils/Mobile/ClPickerDate.js +2 -2
  523. package/buildLibs/utils/Mobile/ClPickerTime.cjs +1 -1
  524. package/buildLibs/utils/Mobile/ClPickerTime.d.ts +1 -1
  525. package/buildLibs/utils/Mobile/ClPickerTime.js +2 -2
  526. package/buildLibs/utils/Mobile/ClPopup.cjs +1 -1
  527. package/buildLibs/utils/Mobile/ClPopup.d.ts +1 -1
  528. package/buildLibs/utils/Mobile/ClPopup.js +1 -1
  529. package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +1 -1
  530. package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +1 -1
  531. package/buildLibs/utils/Mobile/ClPullToRefresh.js +1 -1
  532. package/buildLibs/utils/Mobile/ClRate.cjs +1 -1
  533. package/buildLibs/utils/Mobile/ClRate.d.ts +1 -1
  534. package/buildLibs/utils/Mobile/ClRate.js +2 -2
  535. package/buildLibs/utils/Mobile/ClScrollCard.cjs +1 -1
  536. package/buildLibs/utils/Mobile/ClScrollCard.d.ts +1 -1
  537. package/buildLibs/utils/Mobile/ClScrollCard.js +3 -3
  538. package/buildLibs/utils/Mobile/ClSharePanel.cjs +1 -1
  539. package/buildLibs/utils/Mobile/ClSharePanel.d.ts +1 -1
  540. package/buildLibs/utils/Mobile/ClSharePanel.js +2 -2
  541. package/buildLibs/utils/Mobile/ClSidebar.d.ts +1 -1
  542. package/buildLibs/utils/Mobile/ClSidebarSelect.cjs +1 -1
  543. package/buildLibs/utils/Mobile/ClSidebarSelect.d.ts +1 -1
  544. package/buildLibs/utils/Mobile/ClSidebarSelect.js +1 -1
  545. package/buildLibs/utils/Mobile/ClSignature.cjs +1 -1
  546. package/buildLibs/utils/Mobile/ClSignature.d.ts +1 -1
  547. package/buildLibs/utils/Mobile/ClSignature.js +1 -1
  548. package/buildLibs/utils/Mobile/ClSteps.cjs +1 -1
  549. package/buildLibs/utils/Mobile/ClSteps.d.ts +1 -1
  550. package/buildLibs/utils/Mobile/ClSteps.js +1 -1
  551. package/buildLibs/utils/Mobile/ClSwipe.d.ts +1 -1
  552. package/buildLibs/utils/Mobile/ClTabM.d.ts +1 -1
  553. package/buildLibs/utils/Mobile/ClTabbar.cjs +1 -1
  554. package/buildLibs/utils/Mobile/ClTabbar.d.ts +1 -1
  555. package/buildLibs/utils/Mobile/ClTabbar.js +2 -2
  556. package/buildLibs/utils/Mobile/ClTextHighlight.d.ts +1 -1
  557. package/buildLibs/utils/Mobile/ClToast.cjs +1 -1
  558. package/buildLibs/utils/Mobile/ClToast.d.ts +1 -1
  559. package/buildLibs/utils/Mobile/ClToast.js +1 -1
  560. package/buildLibs/utils/Mobile/ClWatermark.d.ts +1 -1
  561. package/buildLibs/utils/Mobile/__provide__/NotifyM.cjs +1 -1
  562. package/buildLibs/utils/Mobile/__provide__/NotifyM.d.ts +1 -1
  563. package/buildLibs/utils/Mobile/__provide__/NotifyM.js +11 -11
  564. package/buildLibs/utils/Mobile/__provide__/Toast.cjs +1 -1
  565. package/buildLibs/utils/Mobile/__provide__/Toast.d.ts +1 -1
  566. package/buildLibs/utils/Mobile/__provide__/Toast.js +17 -17
  567. package/buildLibs/utils/Shared/{Base.vue_vue_type_script_setup_true_lang-5_vbZ_4R.js → Base.vue_vue_type_script_setup_true_lang-Dl0UiFuI.js} +1 -1
  568. package/buildLibs/utils/Shared/{Base.vue_vue_type_script_setup_true_lang-BReU8HHD.js → Base.vue_vue_type_script_setup_true_lang-Dn7s_GGz.js} +1 -1
  569. package/buildLibs/utils/Shared/{BaseTransition.vue_vue_type_script_setup_true_lang-CmETUA__.js → BaseTransition.vue_vue_type_script_setup_true_lang-DA34fqR6.js} +1 -1
  570. package/buildLibs/utils/Shared/{BaseTransition.vue_vue_type_script_setup_true_lang-D4VcdHQo.js → BaseTransition.vue_vue_type_script_setup_true_lang-I6J8vBkR.js} +1 -1
  571. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BJuly3Dc.js → Index.vue_vue_type_script_setup_true_lang-2ZL3h4ke.js} +1 -1
  572. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-yQG3rOxU.js → Index.vue_vue_type_script_setup_true_lang-B2xxe-gj.js} +1 -1
  573. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BTikeo7T.js → Index.vue_vue_type_script_setup_true_lang-B4wLYUS7.js} +5 -5
  574. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B-LBJS_U.js → Index.vue_vue_type_script_setup_true_lang-B6aiJ0T_.js} +1 -1
  575. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-d8FRnWoo.js → Index.vue_vue_type_script_setup_true_lang-B6mrwacu.js} +1 -1
  576. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BC8lIalF.js +1 -0
  577. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BKNG_Cdl.js +1 -0
  578. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CPwtuGiA.js → Index.vue_vue_type_script_setup_true_lang-BKrRiRoF.js} +1 -1
  579. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D53FO2PF.js → Index.vue_vue_type_script_setup_true_lang-BPu2Wq9y.js} +2 -2
  580. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BQwt39eR.js +120 -0
  581. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BXQl9ZJr.js → Index.vue_vue_type_script_setup_true_lang-BXWa903T.js} +1 -1
  582. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DsTDQ4p-.js → Index.vue_vue_type_script_setup_true_lang-BZ0pwI22.js} +1 -1
  583. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js → Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js} +1 -1
  584. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BahSP_of.js → Index.vue_vue_type_script_setup_true_lang-BeY40OpW.js} +2 -2
  585. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BRyvdWb7.js → Index.vue_vue_type_script_setup_true_lang-Bfji2Whf.js} +1 -1
  586. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BppPP2_o.js → Index.vue_vue_type_script_setup_true_lang-Bj0lKDBR.js} +1 -1
  587. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-SE1_-Y3D.js → Index.vue_vue_type_script_setup_true_lang-BnFtwIqC.js} +1 -1
  588. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BLr46kTp.js → Index.vue_vue_type_script_setup_true_lang-Br1jq8i6.js} +6 -6
  589. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DiFMOo2n.js → Index.vue_vue_type_script_setup_true_lang-BtlpTQO-.js} +8 -8
  590. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DBEuF9lY.js → Index.vue_vue_type_script_setup_true_lang-BuEtcpnj.js} +1 -1
  591. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Butq4gj-.js +1 -0
  592. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DlaLkFjd.js → Index.vue_vue_type_script_setup_true_lang-ByrpuVbR.js} +1 -1
  593. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BO2XU-fq.js → Index.vue_vue_type_script_setup_true_lang-Bz0g83T6.js} +2 -2
  594. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BzhSu_r3.js +1 -0
  595. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DTnllTwD.js → Index.vue_vue_type_script_setup_true_lang-BzuiaXQe.js} +2 -2
  596. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B-K0phQ2.js → Index.vue_vue_type_script_setup_true_lang-C52WPuaY.js} +1 -1
  597. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CIky1_fS.js → Index.vue_vue_type_script_setup_true_lang-C7M_3HR0.js} +1 -1
  598. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BFq7G64T.js → Index.vue_vue_type_script_setup_true_lang-CCor2Ugz.js} +3 -3
  599. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B2cccX6M.js → Index.vue_vue_type_script_setup_true_lang-CFen6ULY.js} +1 -1
  600. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNLr4FbS.js +1 -0
  601. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNoHvb2F.js +1 -0
  602. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-08Gdtb7o.js → Index.vue_vue_type_script_setup_true_lang-CUq-x89X.js} +2 -2
  603. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-COprcd8r.js → Index.vue_vue_type_script_setup_true_lang-Ch6eF_cp.js} +2 -2
  604. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-PraAnYLk.js → Index.vue_vue_type_script_setup_true_lang-ChmL4TJs.js} +1 -1
  605. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D15_sdie.js → Index.vue_vue_type_script_setup_true_lang-Cl7fkQ6_.js} +1 -1
  606. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BLoX4k7J.js → Index.vue_vue_type_script_setup_true_lang-CumsUcci.js} +1 -1
  607. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CSt6K9AQ.js → Index.vue_vue_type_script_setup_true_lang-D4PQKd5b.js} +1 -1
  608. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bn3f-2m-.js → Index.vue_vue_type_script_setup_true_lang-D6yVZJvt.js} +1 -1
  609. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DjwVdgdl.js → Index.vue_vue_type_script_setup_true_lang-D7M1S5lI.js} +279 -278
  610. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-0xVPFBUW.js → Index.vue_vue_type_script_setup_true_lang-DFppMubk.js} +7 -6
  611. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cm8_ZNJ7.js → Index.vue_vue_type_script_setup_true_lang-DJYEGSnc.js} +1 -1
  612. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-b4R4PHf0.js → Index.vue_vue_type_script_setup_true_lang-DK0hs8bb.js} +1 -1
  613. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DNjo2kbg.js +74 -0
  614. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CQVg87mD.js → Index.vue_vue_type_script_setup_true_lang-DQBa9Pny.js} +1 -1
  615. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bd56L0m6.js → Index.vue_vue_type_script_setup_true_lang-DQmXTEq-.js} +3 -3
  616. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BhGGH7ms.js → Index.vue_vue_type_script_setup_true_lang-DX9SitGp.js} +11 -11
  617. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DAuZLHen.js → Index.vue_vue_type_script_setup_true_lang-D_GsoOLm.js} +1 -1
  618. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-M72THnHz.js → Index.vue_vue_type_script_setup_true_lang-DfHi5Zuv.js} +1 -1
  619. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B5MSug5Q.js → Index.vue_vue_type_script_setup_true_lang-DfvtkXRU.js} +4 -4
  620. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CgNMWZqs.js → Index.vue_vue_type_script_setup_true_lang-DjeTtNM6.js} +34 -34
  621. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B2kyuq50.js → Index.vue_vue_type_script_setup_true_lang-DmeDtJvz.js} +1 -1
  622. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dnw-Opme.js → Index.vue_vue_type_script_setup_true_lang-Dn63CT7W.js} +1 -1
  623. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-bKzsLLvg.js → Index.vue_vue_type_script_setup_true_lang-DuZNkaR0.js} +1 -1
  624. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-EG5hgxoY.js +1 -0
  625. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B9xISM7N.js → Index.vue_vue_type_script_setup_true_lang-RBYo7N7Z.js} +1 -1
  626. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CtBOIjdU.js → Index.vue_vue_type_script_setup_true_lang-_F9J4-Q1.js} +4 -4
  627. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DZSulESm.js → Index.vue_vue_type_script_setup_true_lang-_jJNPocq.js} +1 -1
  628. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B0NaQAuE.js → Index.vue_vue_type_script_setup_true_lang-bYE_Eer4.js} +3 -3
  629. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cx56SGXr.js → Index.vue_vue_type_script_setup_true_lang-bybpF3my.js} +1 -1
  630. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BRJ2Ll2r.js → Index.vue_vue_type_script_setup_true_lang-c085vJ-u.js} +1 -1
  631. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-qOys54ns.js → Index.vue_vue_type_script_setup_true_lang-ef-Lbwxl.js} +1 -1
  632. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CnLyIXBs.js → Index.vue_vue_type_script_setup_true_lang-f6va8eHF.js} +1 -1
  633. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dq-sCBRz.js → Index.vue_vue_type_script_setup_true_lang-fgqA2nof.js} +1 -1
  634. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-8-8svPDH.js → Index.vue_vue_type_script_setup_true_lang-gR6txSCA.js} +1 -1
  635. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-jyymIwdR.js +1 -0
  636. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-K7pBVuwe.js → Index.vue_vue_type_script_setup_true_lang-tmqr2c2p.js} +1 -1
  637. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BxWYROZH.js → Index.vue_vue_type_script_setup_true_lang-wPTIA5Lr.js} +1 -1
  638. package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BAUA1fQJ.js → Index.vue_vue_type_script_setup_true_lang-xW9nixd_.js} +1 -1
  639. package/buildLibs/utils/Shared/Index10.css +1 -1
  640. package/buildLibs/utils/Shared/Index11.css +1 -1
  641. package/buildLibs/utils/Shared/Index12.css +1 -1
  642. package/buildLibs/utils/Shared/Index13.css +1 -1
  643. package/buildLibs/utils/Shared/Index14.css +1 -1
  644. package/buildLibs/utils/Shared/Index15.css +1 -1
  645. package/buildLibs/utils/Shared/Index16.css +1 -1
  646. package/buildLibs/utils/Shared/Index17.css +1 -1
  647. package/buildLibs/utils/Shared/Index18.css +1 -1
  648. package/buildLibs/utils/Shared/Index19.css +1 -1
  649. package/buildLibs/utils/Shared/Index20.css +1 -1
  650. package/buildLibs/utils/Shared/Index21.css +1 -1
  651. package/buildLibs/utils/Shared/Index22.css +1 -1
  652. package/buildLibs/utils/Shared/Index23.css +1 -1
  653. package/buildLibs/utils/Shared/Index24.css +1 -1
  654. package/buildLibs/utils/Shared/Index25.css +1 -1
  655. package/buildLibs/utils/Shared/Index26.css +1 -1
  656. package/buildLibs/utils/Shared/Index27.css +1 -1
  657. package/buildLibs/utils/Shared/Index28.css +1 -1
  658. package/buildLibs/utils/Shared/Index29.css +1 -1
  659. package/buildLibs/utils/Shared/Index30.css +1 -1
  660. package/buildLibs/utils/Shared/Index31.css +1 -1
  661. package/buildLibs/utils/Shared/Index32.css +1 -1
  662. package/buildLibs/utils/Shared/Index33.css +1 -1
  663. package/buildLibs/utils/Shared/Index34.css +1 -1
  664. package/buildLibs/utils/Shared/Index35.css +1 -1
  665. package/buildLibs/utils/Shared/Index36.css +1 -1
  666. package/buildLibs/utils/Shared/Index37.css +1 -1
  667. package/buildLibs/utils/Shared/Index38.css +1 -1
  668. package/buildLibs/utils/Shared/Index39.css +1 -0
  669. package/buildLibs/utils/Shared/Index4.css +1 -1
  670. package/buildLibs/utils/Shared/Index40.css +1 -0
  671. package/buildLibs/utils/Shared/Index41.css +1 -0
  672. package/buildLibs/utils/Shared/Index5.css +1 -1
  673. package/buildLibs/utils/Shared/Index6.css +1 -1
  674. package/buildLibs/utils/Shared/Index7.css +1 -1
  675. package/buildLibs/utils/Shared/Index8.css +1 -1
  676. package/buildLibs/utils/Shared/Index9.css +1 -1
  677. package/buildLibs/utils/Shared/{Ing.vue_vue_type_script_setup_true_lang-DPFunPx2.js → Ing.vue_vue_type_script_setup_true_lang-CGFlREiD.js} +1 -1
  678. package/buildLibs/utils/Shared/{Ing.vue_vue_type_script_setup_true_lang-Zb0-4POE.js → Ing.vue_vue_type_script_setup_true_lang-CXLxBRdP.js} +1 -1
  679. package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-BLgui2Zv.js → List.vue_vue_type_script_setup_true_lang-0EtOdp73.js} +3 -3
  680. package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-DJAqJJnH.js → List.vue_vue_type_script_setup_true_lang-G2klceWn.js} +1 -1
  681. package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-BRIVGray.js → One.vue_vue_type_script_setup_true_lang-CLUQLstT.js} +2 -2
  682. package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-Du9X7x9H.js → One.vue_vue_type_script_setup_true_lang-CREhY2it.js} +2 -2
  683. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-D89MNwcx.js +1 -0
  684. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-_Oip87Q5.js +1 -0
  685. package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-d2TT0lCU.js → Popup.vue_vue_type_script_setup_true_lang-B1FPgy2w.js} +1 -1
  686. package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-hfNlyh_i.js → Popup.vue_vue_type_script_setup_true_lang-lq2pb7vN.js} +2 -2
  687. package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-BwcOP-Dw.js +321 -0
  688. package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-iQhIBpru.js +1 -0
  689. package/buildLibs/utils/Shared/core-C6MTnOZl.js +17 -0
  690. package/buildLibs/utils/Shared/core-DkTnn6Hr.js +1 -0
  691. package/buildLibs/utils/Shared/globalConfig-BjG8BDet.js +1 -0
  692. package/buildLibs/utils/Shared/globalConfig-C5mivGXK.js +20 -0
  693. package/buildLibs/utils/Shared/index-BHXq3tfy.js +1 -0
  694. package/buildLibs/utils/Shared/{language-pMmux6Js.js → index-BIzRLXG5.js} +44 -151
  695. package/buildLibs/utils/Shared/index-C2go56jd.js +1 -0
  696. package/buildLibs/utils/Shared/index-CH1kcNPT.js +23 -0
  697. package/buildLibs/utils/Shared/index-CZoT585K.js +1 -0
  698. package/buildLibs/utils/Shared/index-CmFWmRVX.js +1 -0
  699. package/buildLibs/utils/Shared/index-CmQXtjeZ.js +370 -0
  700. package/buildLibs/utils/Shared/index-CtGhbcyx.js +1 -0
  701. package/buildLibs/utils/Shared/index-DDMSc-Kb.js +59 -0
  702. package/buildLibs/utils/Shared/index-DOlH83KS.js +19 -0
  703. package/buildLibs/utils/Shared/index-Dc_m9J6h.js +1 -0
  704. package/buildLibs/utils/Shared/index-DoxFaAkn.js +420 -0
  705. package/buildLibs/utils/Shared/language-BaLIp7bA.js +111 -0
  706. package/buildLibs/utils/Shared/language-CBZjQ9dC.js +1 -0
  707. package/buildLibs/utils/Shared/{use-CRdlCpEV.js → lazy-BnJvXuIy.js} +34 -47
  708. package/buildLibs/utils/Shared/lazy-CkM9Gsf2.js +1 -0
  709. package/buildLibs/utils/Shared/{log-BbLqiWNM.js → log-CSNil8va.js} +1 -1
  710. package/buildLibs/utils/Shared/{log-C2ZbqiAV.js → log-gqSePaMZ.js} +1 -1
  711. package/buildLibs/utils/Shared/use-BDiunhgx.js +1 -0
  712. package/buildLibs/utils/Shared/use-DJuwo6MI.js +17 -0
  713. package/buildLibs/utils/Web/ClAnchorNav.cjs +1 -1
  714. package/buildLibs/utils/Web/ClAnchorNav.d.ts +1 -1
  715. package/buildLibs/utils/Web/ClAnchorNav.js +2 -2
  716. package/buildLibs/utils/Web/ClCalendar.cjs +1 -1
  717. package/buildLibs/utils/Web/ClCalendar.d.ts +1 -1
  718. package/buildLibs/utils/Web/ClCalendar.js +4 -4
  719. package/buildLibs/utils/Web/ClCodeLegend.cjs +1 -1
  720. package/buildLibs/utils/Web/ClCodeLegend.d.ts +1 -1
  721. package/buildLibs/utils/Web/ClCodeLegend.js +2 -2
  722. package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
  723. package/buildLibs/utils/Web/ClColorPicker.d.ts +1 -1
  724. package/buildLibs/utils/Web/ClColorPicker.js +5 -5
  725. package/buildLibs/utils/Web/ClCropper.cjs +1 -1
  726. package/buildLibs/utils/Web/ClCropper.d.ts +1 -1
  727. package/buildLibs/utils/Web/ClCropper.js +1 -1
  728. package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
  729. package/buildLibs/utils/Web/ClCropperPreview.d.ts +1 -1
  730. package/buildLibs/utils/Web/ClCropperPreview.js +5 -5
  731. package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
  732. package/buildLibs/utils/Web/ClDateTime.d.ts +1 -1
  733. package/buildLibs/utils/Web/ClDateTime.js +1 -1
  734. package/buildLibs/utils/Web/ClDropdownMenu.cjs +1 -1
  735. package/buildLibs/utils/Web/ClDropdownMenu.d.ts +1 -1
  736. package/buildLibs/utils/Web/ClDropdownMenu.js +2 -2
  737. package/buildLibs/utils/Web/ClDropdownMenuItem.cjs +1 -1
  738. package/buildLibs/utils/Web/ClDropdownMenuItem.d.ts +1 -1
  739. package/buildLibs/utils/Web/ClDropdownMenuItem.js +1 -1
  740. package/buildLibs/utils/Web/ClDropdownPopup.cjs +1 -1
  741. package/buildLibs/utils/Web/ClDropdownPopup.d.ts +1 -1
  742. package/buildLibs/utils/Web/ClDropdownPopup.js +2 -2
  743. package/buildLibs/utils/Web/ClEcharts.cjs +1 -1
  744. package/buildLibs/utils/Web/ClEcharts.d.ts +1 -1
  745. package/buildLibs/utils/Web/ClEcharts.js +1 -1
  746. package/buildLibs/utils/Web/ClEchartsLineAxisTag.cjs +1 -1
  747. package/buildLibs/utils/Web/ClEchartsLineAxisTag.d.ts +1 -1
  748. package/buildLibs/utils/Web/ClEchartsLineAxisTag.js +2 -2
  749. package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
  750. package/buildLibs/utils/Web/ClFileUpload.d.ts +1 -1
  751. package/buildLibs/utils/Web/ClFileUpload.js +1 -1
  752. package/buildLibs/utils/Web/ClFramePhone.d.ts +1 -1
  753. package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
  754. package/buildLibs/utils/Web/ClInputTag.d.ts +1 -1
  755. package/buildLibs/utils/Web/ClInputTag.js +1 -1
  756. package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
  757. package/buildLibs/utils/Web/ClPaginate.d.ts +1 -1
  758. package/buildLibs/utils/Web/ClPaginate.js +1 -1
  759. package/buildLibs/utils/Web/ClPortlet.d.ts +1 -1
  760. package/buildLibs/utils/Web/ClPreviewExample.cjs +1 -1
  761. package/buildLibs/utils/Web/ClPreviewExample.d.ts +1 -1
  762. package/buildLibs/utils/Web/ClPreviewExample.js +1 -1
  763. package/buildLibs/utils/Web/ClScrollXFence.cjs +1 -1
  764. package/buildLibs/utils/Web/ClScrollXFence.d.ts +1 -1
  765. package/buildLibs/utils/Web/ClScrollXFence.js +1 -1
  766. package/buildLibs/utils/Web/ClSelect.cjs +1 -1
  767. package/buildLibs/utils/Web/ClSelect.d.ts +1 -1
  768. package/buildLibs/utils/Web/ClSelect.js +1 -1
  769. package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
  770. package/buildLibs/utils/Web/ClSelectCascade.d.ts +1 -1
  771. package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
  772. package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
  773. package/buildLibs/utils/Web/ClSelectMove.d.ts +1 -1
  774. package/buildLibs/utils/Web/ClSelectMove.js +7 -7
  775. package/buildLibs/utils/Web/ClSelectTag.cjs +1 -1
  776. package/buildLibs/utils/Web/ClSelectTag.d.ts +1 -1
  777. package/buildLibs/utils/Web/ClSelectTag.js +1 -1
  778. package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
  779. package/buildLibs/utils/Web/ClSelectTree.d.ts +1 -1
  780. package/buildLibs/utils/Web/ClSelectTree.js +4 -4
  781. package/buildLibs/utils/Web/ClSideMenu.cjs +1 -1
  782. package/buildLibs/utils/Web/ClSideMenu.d.ts +1 -1
  783. package/buildLibs/utils/Web/ClSideMenu.js +2 -2
  784. package/buildLibs/utils/Web/ClTable.cjs +1 -1
  785. package/buildLibs/utils/Web/ClTable.d.ts +1 -1
  786. package/buildLibs/utils/Web/ClTable.js +10 -10
  787. package/buildLibs/utils/Web/ClTableEdit.d.ts +1 -1
  788. package/buildLibs/utils/Web/ClTableSimple.d.ts +1 -1
  789. package/buildLibs/utils/Web/ClTabs.cjs +1 -1
  790. package/buildLibs/utils/Web/ClTabs.d.ts +1 -1
  791. package/buildLibs/utils/Web/ClTabs.js +3 -3
  792. package/buildLibs/utils/Web/ClTree.cjs +1 -1
  793. package/buildLibs/utils/Web/ClTree.d.ts +1 -1
  794. package/buildLibs/utils/Web/ClTree.js +1 -1
  795. package/buildLibs/utils/Web/ClWeekHour.cjs +1 -1
  796. package/buildLibs/utils/Web/ClWeekHour.d.ts +1 -1
  797. package/buildLibs/utils/Web/ClWeekHour.js +3 -3
  798. package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
  799. package/buildLibs/utils/Web/ClXEditable.d.ts +1 -1
  800. package/buildLibs/utils/Web/ClXEditable.js +19 -19
  801. package/buildLibs/utils/Web/__directive__/CodeHighlight.cjs +1 -1
  802. package/buildLibs/utils/Web/__directive__/CodeHighlight.js +3 -16
  803. package/buildLibs/utils/Web/__directive__/Tooltip.cjs +1 -1
  804. package/buildLibs/utils/Web/__directive__/Tooltip.js +6 -410
  805. package/buildLibs/utils/Web/__directive__/Waves.cjs +1 -1
  806. package/buildLibs/utils/Web/__directive__/Waves.js +4 -51
  807. package/buildLibs/utils/Web/__provide__/Alert.cjs +1 -1
  808. package/buildLibs/utils/Web/__provide__/Alert.d.ts +1 -1
  809. package/buildLibs/utils/Web/__provide__/Alert.js +39 -39
  810. package/buildLibs/utils/Web/__provide__/Notify.cjs +1 -1
  811. package/buildLibs/utils/Web/__provide__/Notify.d.ts +1 -1
  812. package/buildLibs/utils/Web/__provide__/Notify.js +8 -8
  813. package/buildLibs/utils/Web/__provide__/Preview.cjs +1 -1
  814. package/buildLibs/utils/Web/__provide__/Preview.d.ts +1 -1
  815. package/buildLibs/utils/Web/__provide__/Preview.js +8 -365
  816. package/buildLibs/utils/core/all.cjs +1 -0
  817. package/buildLibs/utils/core/all.js +7 -0
  818. package/buildLibs/utils/core/mobile.cjs +1 -0
  819. package/buildLibs/utils/core/mobile.js +14 -0
  820. package/buildLibs/utils/core/web.cjs +1 -0
  821. package/buildLibs/utils/core/web.js +26 -0
  822. package/buildLibs/web/{BallColor4-Bk0PbmjR.js → BallColor4-CGz84e-8.js} +1 -1
  823. package/buildLibs/{mobile/BallColor4-C7lQaABY.cjs → web/BallColor4-DsHSwHqh.cjs} +1 -1
  824. package/buildLibs/{mobile/ToastRing-ZSOlED5s.js → web/ToastRing-D7GSFx_o.js} +1 -1
  825. package/buildLibs/{all/ToastRing-DqiGLTLN.cjs → web/ToastRing-DyynyXeD.cjs} +1 -1
  826. package/buildLibs/web/{Video-7bB5a3gv.cjs → Video-DbKxr-i7.cjs} +1 -1
  827. package/buildLibs/web/{Video-D36W46Pk.js → Video-b6MvLQBG.js} +1 -1
  828. package/buildLibs/web/{index-jOBQ0InH.cjs → index-By7v49Ku.cjs} +4 -4
  829. package/buildLibs/web/{index-ai_LrIsJ.js → index-CJJp0mfH.js} +120 -112
  830. package/buildLibs/web/index.cjs +1 -1
  831. package/buildLibs/web/index.js +1 -1
  832. package/docs/tools/CommonBrowserProgress.md +39 -0
  833. package/docs/tools/CommonGlobalConfig.md +46 -0
  834. package/docs/tools/clLog.md +39 -0
  835. package/docs/tools/globalTypes.md +43 -0
  836. package/package.json +42 -1
  837. package/buildLibs/common/Common/Element/Event/drag.d.ts +0 -30
  838. package/buildLibs/common/Common/Element/Event/index.d.ts +0 -9
  839. package/buildLibs/common/Common/Element/Event/resize.d.ts +0 -20
  840. package/buildLibs/common/Common/Element/index.d.ts +0 -111
  841. package/buildLibs/common/Common/Tools/animateEasing.d.ts +0 -27
  842. package/buildLibs/common/Common/Tools/cookie.d.ts +0 -8
  843. package/buildLibs/common/Common/Tools/delayFun.d.ts +0 -9
  844. package/buildLibs/common/Common/Tools/device.d.ts +0 -33
  845. package/buildLibs/common/Common/Tools/index.d.ts +0 -18
  846. package/buildLibs/common/Common/Tools/localStorage.d.ts +0 -9
  847. package/buildLibs/common/Common/Tools/number.d.ts +0 -9
  848. package/buildLibs/common/Common/axios.d.ts +0 -28
  849. package/buildLibs/common/Common/base.d.ts +0 -233
  850. package/buildLibs/common/Common/browserProgress.d.ts +0 -26
  851. package/buildLibs/common/Common/day.d.ts +0 -30
  852. package/buildLibs/common/Common/echart.d.ts +0 -91
  853. package/buildLibs/common/Common/globalConfig.d.ts +0 -28
  854. package/buildLibs/common/Common/globalTypes.d.ts +0 -88
  855. package/buildLibs/common/Common/i18n/a11y.d.ts +0 -62
  856. package/buildLibs/common/Common/i18n/en.d.ts +0 -112
  857. package/buildLibs/common/Common/i18n/index.d.ts +0 -25
  858. package/buildLibs/common/Common/i18n/zh_CN.d.ts +0 -112
  859. package/buildLibs/common/Common/index.d.ts +0 -13
  860. package/buildLibs/common/Common/log.d.ts +0 -7
  861. package/buildLibs/common/Common/promise.d.ts +0 -14
  862. package/buildLibs/common/Common/tooltip.d.ts +0 -40
  863. package/buildLibs/common/browserProgress.css +0 -1
  864. package/buildLibs/modules/shared/Validate.vue_vue_type_script_setup_true_lang-FZ6qiA6w.js +0 -411
  865. package/buildLibs/utils/Element/ClLoadScreen.css +0 -1
  866. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CDslbo4h.js +0 -1
  867. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CFNQBTiQ.js +0 -1
  868. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D4BokTL9.js +0 -1
  869. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D8TDafMl.js +0 -1
  870. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DYj0GzN0.js +0 -1
  871. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DtTJLC6m.js +0 -1
  872. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Gp7OJJx5.js +0 -1
  873. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-oFF20mhc.js +0 -152
  874. package/buildLibs/utils/Shared/Index2.css +0 -1
  875. package/buildLibs/utils/Shared/Index3.css +0 -1
  876. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BC8yzPg5.js +0 -1
  877. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BKTdt1M7.js +0 -1
  878. package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DidPD12P.js +0 -411
  879. package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DyOZ5QGN.js +0 -1
  880. package/buildLibs/utils/Shared/globalConfig-D1-9RCQO.js +0 -5
  881. package/buildLibs/utils/Shared/globalConfig-vNEDVL2C.js +0 -1
  882. package/buildLibs/utils/Shared/language-Q4AGYtUe.js +0 -1
  883. package/buildLibs/utils/Shared/use-BBpYjALT.js +0 -1
  884. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DlFdXr6k.js → Index.vue_vue_type_script_setup_true_lang-BGGMHKo2.js} +0 -0
  885. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-0GHFohjQ.js → Index.vue_vue_type_script_setup_true_lang-BHonqwfb.js} +0 -0
  886. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js → Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js} +0 -0
  887. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BbxnIsLt.js → Index.vue_vue_type_script_setup_true_lang-BwZ2C-6b.js} +0 -0
  888. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dyo4Sh1B.js → Index.vue_vue_type_script_setup_true_lang-D5_ktvRf.js} +0 -0
  889. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js → Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js} +0 -0
  890. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C242QFDV.js → Index.vue_vue_type_script_setup_true_lang-Db7kCHWV.js} +0 -0
  891. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D3h6Q_pB.js → Index.vue_vue_type_script_setup_true_lang-DfJX3uyy.js} +0 -0
  892. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cb49VSDS.js → Index.vue_vue_type_script_setup_true_lang-DyBY0DG5.js} +0 -0
  893. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CyYCIkzr.js → Index.vue_vue_type_script_setup_true_lang-KKIG3pkE.js} +0 -0
  894. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DQBXyVuV.js → Index.vue_vue_type_script_setup_true_lang-cceO6cqW.js} +0 -0
  895. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C1Z3g7mN.js → Index.vue_vue_type_script_setup_true_lang-hGx0sqwu.js} +0 -0
  896. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CAEbDVL3.js → Index.vue_vue_type_script_setup_true_lang-p_9-WY4K.js} +0 -0
  897. /package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BsE_zUs_.js → Index.vue_vue_type_script_setup_true_lang-vm_cblnn.js} +0 -0
  898. /package/buildLibs/utils/Shared/{Waves.css → index2.css} +0 -0
  899. /package/buildLibs/utils/Shared/{Tooltip.css → index3.css} +0 -0
  900. /package/buildLibs/utils/Shared/{Preview.css → index42.css} +0 -0
  901. /package/buildLibs/utils/Shared/{index39.css → index43.css} +0 -0
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("./base-DbuX_Y3x.js"),K=require("./index-rFJmbgyH.js"),Q=require("./Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js"),W=require("./Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js"),X=["id"],Y={key:2,class:"panel-toast__text"},E=e.defineComponent({name:"ClToast",__name:"Index",props:{id:String,className:String,show:Boolean,type:{type:String,default:"text",validator:l=>["text","success","fail","loading"].indexOf(l)!==-1},message:String,position:{type:String,default:"middle",validator:l=>["top","middle","bottom"].indexOf(l)!==-1},duration:{type:Number,default:2e3},isOverlay:Boolean,isForbidClick:Boolean,loadingType:{type:String,default:"spinner",validator:l=>["spinner","circular"].indexOf(l)!==-1},icon:String,iconSize:{type:[String,Number],default:36},zIndex:{type:Number,default:2e3},teleportTarget:{type:String,default:""}},emits:["update:show","onOpen","onOpened","onClose","onClosed","onClick"],setup(l,{expose:S,emit:x}){const o=l,r=x,F=o.id,m=e.ref(!1),i=e.ref(o.type),d=e.ref(o.message||""),u=e.ref(o.position),p=e.ref(t.CommonBase.isNumber(o.duration)&&t.CommonBase.isFinite(o.duration)?Math.max(0,Number(o.duration)):0),v=e.ref(o.isOverlay),g=e.ref(o.isForbidClick),_=e.ref(o.loadingType),c=e.ref(o.icon||""),f=e.ref(t.CommonBase.isNumber(o.zIndex)&&t.CommonBase.isFinite(o.zIndex)?Math.max(0,Number(o.zIndex)):2e3);let s=null;const b=e.computed(()=>m.value),M=e.computed(()=>{const a=o.teleportTarget;return a==="self"||!t.CommonBase.isString(a)||t.CommonBase.isEmpty(a.trim())?"body":a}),O=e.computed(()=>o.teleportTarget==="self"),w=e.computed(()=>v.value||g.value),T=e.computed(()=>i.value!=="text"||t.CommonBase.isNonEmptyString(c.value)),L=e.computed(()=>i.value==="loading"),N=e.computed(()=>t.CommonBase.isNonEmptyString(d.value)),q=e.computed(()=>t.CommonBase.isNonEmptyString(c.value)?c.value:i.value==="success"?"check":i.value==="fail"?"close":""),A=e.computed(()=>o.iconSize),D=e.computed(()=>{const a={"panel-toast":!0,"panel-toast--top":u.value==="top","panel-toast--middle":u.value==="middle","panel-toast--bottom":u.value==="bottom","panel-toast--icon-only":T.value&&!N.value};return t.CommonBase.getJsonMerge(a,K.CommonElement.getClassNameJson(o.className))}),P=e.computed(()=>({"panel-toast__icon--success":i.value==="success","panel-toast__icon--fail":i.value==="fail"})),V=e.computed(()=>({zIndex:f.value})),J=e.computed(()=>({zIndex:f.value+1})),y=()=>{s&&(clearTimeout(s),s=null)},I=()=>{y(),p.value>0&&(s=setTimeout(()=>{s=null,r("update:show",!1),s||(s=setTimeout(()=>{s=null,B()},300))},p.value))},B=()=>{y(),m.value=!1},R=()=>{i.value=o.type,d.value=o.message||"",u.value=o.position,p.value=t.CommonBase.isNumber(o.duration)&&t.CommonBase.isFinite(o.duration)?Math.max(0,Number(o.duration)):0,v.value=o.isOverlay,g.value=o.isForbidClick,_.value=o.loadingType,c.value=o.icon||"",f.value=t.CommonBase.isNumber(o.zIndex)&&t.CommonBase.isFinite(o.zIndex)?Math.max(0,Number(o.zIndex)):2e3},C=(a,n,H="text",h)=>{i.value=n&&n.type||H,d.value=t.CommonBase.isNonEmptyString(a)?a:o.message||"",u.value=n&&n.position||o.position;const z=n&&t.CommonBase.isNumber(n.duration)&&t.CommonBase.isFinite(n.duration)?Math.max(0,Number(n.duration)):void 0,k=z!==void 0?z:h!==void 0?Math.max(0,Number(h)):o.duration;p.value=t.CommonBase.isNumber(k)&&t.CommonBase.isFinite(k)?Math.max(0,Number(k)):t.CommonBase.isNumber(o.duration)&&t.CommonBase.isFinite(o.duration)?o.duration:0,v.value=n&&n.overlay!==void 0?n.overlay:o.isOverlay,g.value=n&&n.forbidClick!==void 0?n.forbidClick:o.isForbidClick,_.value=n&&n.loadingType||o.loadingType,c.value=n&&n.icon||o.icon||"",f.value=n&&n.zIndex!==void 0&&t.CommonBase.isNumber(n.zIndex)&&t.CommonBase.isFinite(n.zIndex)?Math.max(0,Number(n.zIndex)):t.CommonBase.isNumber(o.zIndex)&&t.CommonBase.isFinite(o.zIndex)?Math.max(0,Number(o.zIndex)):2e3,m.value=!0,I()};e.onBeforeUnmount(()=>{y()}),e.watch(()=>o.show,a=>{a?(R(),m.value=!0,I()):B()},{immediate:!0});const U=()=>{r("onClick")},Z=()=>{r("onOpen")},$=()=>{r("onOpened")},j=()=>{r("onClose")},G=()=>{r("onClosed")};return S({toast:(a,n)=>{C(a,n,"text")},success:(a,n)=>{C(a,n,"success")},fail:(a,n)=>{C(a,n,"fail")},loading:(a,n)=>{C(a,n,"loading",0)},close:(a=0)=>{t.CommonBase.isFinite(a)&&a>0?(y(),s=setTimeout(()=>{s=null,B()},a)):B()}}),(a,n)=>(e.openBlock(),e.createBlock(e.Teleport,{to:M.value,disabled:O.value},[b.value&&w.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-toast-mask",{"panel-toast-mask--overlay":v.value}]),style:e.normalizeStyle(V.value)},null,6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(e.Transition,{name:"toast-fade",onEnter:Z,onAfterEnter:$,onLeave:j,onAfterLeave:G},{default:e.withCtx(()=>[b.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(F),class:e.normalizeClass(D.value),style:e.normalizeStyle(J.value),onClick:U},[T.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-toast__icon",P.value])},[L.value?(e.openBlock(),e.createBlock(W._sfc_main,{key:0,theme:"toastRing","loading-type":_.value,color:"white"},null,8,["loading-type"])):(e.openBlock(),e.createBlock(Q._sfc_main,{key:1,name:q.value,size:A.value,color:"var(--cl-bg, #ffffff)"},null,8,["name","size"]))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),N.value?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(d.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],14,X)):e.createCommentVNode("",!0)]),_:1})],8,["to","disabled"]))}});exports._sfc_main=E;
1
+ "use strict";const e=require("vue"),t=require("./base-DbuX_Y3x.js"),K=require("./index-rFJmbgyH.js"),Q=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),W=require("./Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js"),X=["id"],Y={key:2,class:"panel-toast__text"},E=e.defineComponent({name:"ClToast",__name:"Index",props:{id:String,className:String,show:Boolean,type:{type:String,default:"text",validator:l=>["text","success","fail","loading"].indexOf(l)!==-1},message:String,position:{type:String,default:"middle",validator:l=>["top","middle","bottom"].indexOf(l)!==-1},duration:{type:Number,default:2e3},isOverlay:Boolean,isForbidClick:Boolean,loadingType:{type:String,default:"spinner",validator:l=>["spinner","circular"].indexOf(l)!==-1},icon:String,iconSize:{type:[String,Number],default:36},zIndex:{type:Number,default:2e3},teleportTarget:{type:String,default:""}},emits:["update:show","onOpen","onOpened","onClose","onClosed","onClick"],setup(l,{expose:S,emit:x}){const o=l,r=x,F=o.id,m=e.ref(!1),i=e.ref(o.type),d=e.ref(o.message||""),u=e.ref(o.position),p=e.ref(t.CommonBase.isNumber(o.duration)&&t.CommonBase.isFinite(o.duration)?Math.max(0,Number(o.duration)):0),v=e.ref(o.isOverlay),g=e.ref(o.isForbidClick),_=e.ref(o.loadingType),c=e.ref(o.icon||""),f=e.ref(t.CommonBase.isNumber(o.zIndex)&&t.CommonBase.isFinite(o.zIndex)?Math.max(0,Number(o.zIndex)):2e3);let s=null;const b=e.computed(()=>m.value),M=e.computed(()=>{const a=o.teleportTarget;return a==="self"||!t.CommonBase.isString(a)||t.CommonBase.isEmpty(a.trim())?"body":a}),O=e.computed(()=>o.teleportTarget==="self"),w=e.computed(()=>v.value||g.value),T=e.computed(()=>i.value!=="text"||t.CommonBase.isNonEmptyString(c.value)),L=e.computed(()=>i.value==="loading"),N=e.computed(()=>t.CommonBase.isNonEmptyString(d.value)),q=e.computed(()=>t.CommonBase.isNonEmptyString(c.value)?c.value:i.value==="success"?"check":i.value==="fail"?"close":""),A=e.computed(()=>o.iconSize),D=e.computed(()=>{const a={"panel-toast":!0,"panel-toast--top":u.value==="top","panel-toast--middle":u.value==="middle","panel-toast--bottom":u.value==="bottom","panel-toast--icon-only":T.value&&!N.value};return t.CommonBase.getJsonMerge(a,K.CommonElement.getClassNameJson(o.className))}),P=e.computed(()=>({"panel-toast__icon--success":i.value==="success","panel-toast__icon--fail":i.value==="fail"})),V=e.computed(()=>({zIndex:f.value})),J=e.computed(()=>({zIndex:f.value+1})),y=()=>{s&&(clearTimeout(s),s=null)},I=()=>{y(),p.value>0&&(s=setTimeout(()=>{s=null,r("update:show",!1),s||(s=setTimeout(()=>{s=null,B()},300))},p.value))},B=()=>{y(),m.value=!1},R=()=>{i.value=o.type,d.value=o.message||"",u.value=o.position,p.value=t.CommonBase.isNumber(o.duration)&&t.CommonBase.isFinite(o.duration)?Math.max(0,Number(o.duration)):0,v.value=o.isOverlay,g.value=o.isForbidClick,_.value=o.loadingType,c.value=o.icon||"",f.value=t.CommonBase.isNumber(o.zIndex)&&t.CommonBase.isFinite(o.zIndex)?Math.max(0,Number(o.zIndex)):2e3},C=(a,n,H="text",h)=>{i.value=n&&n.type||H,d.value=t.CommonBase.isNonEmptyString(a)?a:o.message||"",u.value=n&&n.position||o.position;const z=n&&t.CommonBase.isNumber(n.duration)&&t.CommonBase.isFinite(n.duration)?Math.max(0,Number(n.duration)):void 0,k=z!==void 0?z:h!==void 0?Math.max(0,Number(h)):o.duration;p.value=t.CommonBase.isNumber(k)&&t.CommonBase.isFinite(k)?Math.max(0,Number(k)):t.CommonBase.isNumber(o.duration)&&t.CommonBase.isFinite(o.duration)?o.duration:0,v.value=n&&n.overlay!==void 0?n.overlay:o.isOverlay,g.value=n&&n.forbidClick!==void 0?n.forbidClick:o.isForbidClick,_.value=n&&n.loadingType||o.loadingType,c.value=n&&n.icon||o.icon||"",f.value=n&&n.zIndex!==void 0&&t.CommonBase.isNumber(n.zIndex)&&t.CommonBase.isFinite(n.zIndex)?Math.max(0,Number(n.zIndex)):t.CommonBase.isNumber(o.zIndex)&&t.CommonBase.isFinite(o.zIndex)?Math.max(0,Number(o.zIndex)):2e3,m.value=!0,I()};e.onBeforeUnmount(()=>{y()}),e.watch(()=>o.show,a=>{a?(R(),m.value=!0,I()):B()},{immediate:!0});const U=()=>{r("onClick")},Z=()=>{r("onOpen")},$=()=>{r("onOpened")},j=()=>{r("onClose")},G=()=>{r("onClosed")};return S({toast:(a,n)=>{C(a,n,"text")},success:(a,n)=>{C(a,n,"success")},fail:(a,n)=>{C(a,n,"fail")},loading:(a,n)=>{C(a,n,"loading",0)},close:(a=0)=>{t.CommonBase.isFinite(a)&&a>0?(y(),s=setTimeout(()=>{s=null,B()},a)):B()}}),(a,n)=>(e.openBlock(),e.createBlock(e.Teleport,{to:M.value,disabled:O.value},[b.value&&w.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-toast-mask",{"panel-toast-mask--overlay":v.value}]),style:e.normalizeStyle(V.value)},null,6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(e.Transition,{name:"toast-fade",onEnter:Z,onAfterEnter:$,onLeave:j,onAfterLeave:G},{default:e.withCtx(()=>[b.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(F),class:e.normalizeClass(D.value),style:e.normalizeStyle(J.value),onClick:U},[T.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-toast__icon",P.value])},[L.value?(e.openBlock(),e.createBlock(W._sfc_main,{key:0,theme:"toastRing","loading-type":_.value,color:"white"},null,8,["loading-type"])):(e.openBlock(),e.createBlock(Q._sfc_main,{key:1,name:q.value,size:A.value,color:"var(--cl-bg, #ffffff)"},null,8,["name","size"]))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),N.value?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(d.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],14,X)):e.createCommentVNode("",!0)]),_:1})],8,["to","disabled"]))}});exports._sfc_main=E;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),s=require("./base-DbuX_Y3x.js"),h=require("./index-rFJmbgyH.js"),q=require("./language-Q4AGYtUe.js"),f=["id","aria-label"],P=e.defineComponent({name:"ClLoad",__name:"Index",props:{id:String,className:String,theme:{type:String,default:"rotaryLine",validator:r=>["rotaryLine","circleNotch","circleBubble","ballColor4","dotTyping","dotWave","dotBounce","dotPulse","dotOrbit","dotFlow","dotSlide","dotSlider","dotFold","dotSquare","barEqualizer","barWave","barPulse","barStretch","barMeter","barBounce","barRamp","ringRotate","ringDot","ringPulse","ringClip","ringFan","circleSpinner","dotRipple","dotRipple3","ringCross","squareTrace","squareTrace2","crossMove","snakePath","squareMirror","dotPulse5","diamondShuttle","barStream","newtonCradle","dotSpin","orbitSwap","typingBounce","ringGlow","toastRing"].indexOf(r)!==-1},size:{type:String,default:"small",validator:r=>["xxl","xl","large","small","xs"].indexOf(r)!==-1},color:{type:String,default:""}},setup(r){const{optA11yText:l}=q.useA11yLanguage(),n=r,m=n.id,a={rotaryLine:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RotaryLine-gaVylS7U.js"))),circleNotch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleNotch-CqNk1n5h.js"))),circleBubble:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleBubble-CEA1R5eF.js"))),ballColor4:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BallColor4-BgsHLeZA.js"))),dotTyping:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotTyping-2Er8m3ur.js"))),dotWave:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotWave-MUeiVR6m.js"))),dotBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotBounce-BQnaZfcJ.js"))),dotPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotPulse-CKKfxqGD.js"))),dotOrbit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotOrbit-D0xu7QFo.js"))),dotFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotFlow-BBlyj_lj.js"))),dotSlide:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSlide-DWRcNdph.js"))),dotSlider:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSlider-Do1HceJg.js"))),dotFold:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotFold-CjtC4tDw.js"))),dotSquare:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSquare-CM8IKj8e.js"))),barEqualizer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarEqualizer-Cwy8x_C3.js"))),barWave:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarWave-bOhZaMRH.js"))),barPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarPulse-BeJ2mVUy.js"))),barStretch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarStretch-D_lTJuLz.js"))),barMeter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarMeter-DGr1r5KD.js"))),barBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarBounce-DuO7rAdB.js"))),barRamp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarRamp-FE6E_hEX.js"))),ringRotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingRotate-DDtk_u0E.js"))),ringDot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingDot-CJdOfsZD.js"))),ringPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingPulse-0nn0N9Em.js"))),ringClip:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingClip-DbQft5T6.js"))),ringFan:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingFan-BaEOnmBk.js"))),dotRipple:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotRipple-KO-8kybz.js"))),circleSpinner:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleSpinner-CdLwNDAN.js"))),dotRipple3:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotRipple3-C8a1iP0X.js"))),ringCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingCross-C6kk0PaO.js"))),squareTrace:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareTrace-_lWLw5nc.js"))),squareTrace2:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareTrace2-BzeVrCnn.js"))),crossMove:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CrossMove-YqD8pbRc.js"))),snakePath:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SnakePath-DMWODNHb.js"))),squareMirror:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareMirror-Bew6r3iX.js"))),dotPulse5:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotPulse5-CwOM_ueL.js"))),diamondShuttle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DiamondShuttle-BeiXCdCw.js"))),barStream:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarStream-CfrjC5W9.js"))),newtonCradle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./NewtonCradle-CGKjFfXo.js"))),dotSpin:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSpin-BfrVJjVF.js"))),orbitSwap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./OrbitSwap-DtGtle-R.js"))),typingBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./TypingBounce-D3fpFids.js"))),ringGlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingGlow-BS4Oo28f.js"))),toastRing:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ToastRing-B1qc5Ig_.js")))},c=new Set(["ballColor4","diamondShuttle","orbitSwap","ringGlow"]),t=e.computed(()=>n.theme||"rotaryLine"),i=e.computed(()=>a[t.value]||null),u=e.computed(()=>n.size==="large"),d=e.computed(()=>n.size==="xl"),p=e.computed(()=>n.size==="xxl"),v=e.computed(()=>n.size==="xs"),C=e.computed(()=>{const o=n.color||"";return o?c.has(t.value)?o:s.CommonBase.isString(o)?o.split("|")[0].trim():"":""}),y=e.computed(()=>s.CommonBase.getJsonMerge({"panel-load":!0,"size-large":u.value,"size-xl":d.value,"size-xxl":p.value,"size-xs":v.value},h.CommonElement.getClassNameJson(n.className)));return(o,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(y.value),id:e.unref(m),role:"status","aria-label":e.unref(l).loading||"加载中"},[i.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{key:0,color:C.value,size:r.size},null,8,["color","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,f))}});exports._sfc_main=P;
1
+ "use strict";const e=require("vue"),s=require("./base-DbuX_Y3x.js"),h=require("./index-rFJmbgyH.js"),q=require("./language-CBZjQ9dC.js"),f=["id","aria-label"],P=e.defineComponent({name:"ClLoad",__name:"Index",props:{id:String,className:String,theme:{type:String,default:"rotaryLine",validator:r=>["rotaryLine","circleNotch","circleBubble","ballColor4","dotTyping","dotWave","dotBounce","dotPulse","dotOrbit","dotFlow","dotSlide","dotSlider","dotFold","dotSquare","barEqualizer","barWave","barPulse","barStretch","barMeter","barBounce","barRamp","ringRotate","ringDot","ringPulse","ringClip","ringFan","circleSpinner","dotRipple","dotRipple3","ringCross","squareTrace","squareTrace2","crossMove","snakePath","squareMirror","dotPulse5","diamondShuttle","barStream","newtonCradle","dotSpin","orbitSwap","typingBounce","ringGlow","toastRing"].indexOf(r)!==-1},size:{type:String,default:"small",validator:r=>["xxl","xl","large","small","xs"].indexOf(r)!==-1},color:{type:String,default:""}},setup(r){const{optA11yText:l}=q.useA11yLanguage(),n=r,m=n.id,a={rotaryLine:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RotaryLine-gaVylS7U.js"))),circleNotch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleNotch-CqNk1n5h.js"))),circleBubble:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleBubble-CEA1R5eF.js"))),ballColor4:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BallColor4-BgsHLeZA.js"))),dotTyping:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotTyping-2Er8m3ur.js"))),dotWave:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotWave-MUeiVR6m.js"))),dotBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotBounce-BQnaZfcJ.js"))),dotPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotPulse-CKKfxqGD.js"))),dotOrbit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotOrbit-D0xu7QFo.js"))),dotFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotFlow-BBlyj_lj.js"))),dotSlide:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSlide-DWRcNdph.js"))),dotSlider:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSlider-Do1HceJg.js"))),dotFold:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotFold-CjtC4tDw.js"))),dotSquare:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSquare-CM8IKj8e.js"))),barEqualizer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarEqualizer-Cwy8x_C3.js"))),barWave:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarWave-bOhZaMRH.js"))),barPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarPulse-BeJ2mVUy.js"))),barStretch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarStretch-D_lTJuLz.js"))),barMeter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarMeter-DGr1r5KD.js"))),barBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarBounce-DuO7rAdB.js"))),barRamp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarRamp-FE6E_hEX.js"))),ringRotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingRotate-DDtk_u0E.js"))),ringDot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingDot-CJdOfsZD.js"))),ringPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingPulse-0nn0N9Em.js"))),ringClip:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingClip-DbQft5T6.js"))),ringFan:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingFan-BaEOnmBk.js"))),dotRipple:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotRipple-KO-8kybz.js"))),circleSpinner:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleSpinner-CdLwNDAN.js"))),dotRipple3:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotRipple3-C8a1iP0X.js"))),ringCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingCross-C6kk0PaO.js"))),squareTrace:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareTrace-_lWLw5nc.js"))),squareTrace2:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareTrace2-BzeVrCnn.js"))),crossMove:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CrossMove-YqD8pbRc.js"))),snakePath:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SnakePath-DMWODNHb.js"))),squareMirror:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareMirror-Bew6r3iX.js"))),dotPulse5:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotPulse5-CwOM_ueL.js"))),diamondShuttle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DiamondShuttle-BeiXCdCw.js"))),barStream:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarStream-CfrjC5W9.js"))),newtonCradle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./NewtonCradle-CGKjFfXo.js"))),dotSpin:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSpin-BfrVJjVF.js"))),orbitSwap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./OrbitSwap-DtGtle-R.js"))),typingBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./TypingBounce-D3fpFids.js"))),ringGlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingGlow-BS4Oo28f.js"))),toastRing:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ToastRing-B1qc5Ig_.js")))},c=new Set(["ballColor4","diamondShuttle","orbitSwap","ringGlow"]),t=e.computed(()=>n.theme||"rotaryLine"),i=e.computed(()=>a[t.value]||null),u=e.computed(()=>n.size==="large"),d=e.computed(()=>n.size==="xl"),p=e.computed(()=>n.size==="xxl"),v=e.computed(()=>n.size==="xs"),C=e.computed(()=>{const o=n.color||"";return o?c.has(t.value)?o:s.CommonBase.isString(o)?o.split("|")[0].trim():"":""}),y=e.computed(()=>s.CommonBase.getJsonMerge({"panel-load":!0,"size-large":u.value,"size-xl":d.value,"size-xxl":p.value,"size-xs":v.value},h.CommonElement.getClassNameJson(n.className)));return(o,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(y.value),id:e.unref(m),role:"status","aria-label":e.unref(l).loading||"加载中"},[i.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{key:0,color:C.value,size:r.size},null,8,["color","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,f))}});exports._sfc_main=P;
@@ -3,8 +3,8 @@ import { defineComponent as U, ref as b, computed as _, onMounted as W, nextTick
3
3
  /* empty css */
4
4
  import { C as i } from "./base-fr2I80sU.js";
5
5
  import { C as ne } from "./index-B477PjJ3.js";
6
- import { _ as I } from "./Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js";
7
- import { tooltipDirectives as le } from "../Web/__directive__/Tooltip.js";
6
+ import { _ as I } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
7
+ import { t as le } from "./index-DoxFaAkn.js";
8
8
  const ae = ["id"], oe = {
9
9
  key: 0,
10
10
  class: "cl-plaintext-value"
@@ -1 +1 @@
1
- "use strict";var le=Object.create;var R=Object.defineProperty;var oe=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,se=Object.prototype.hasOwnProperty;var ae=(o,s,c,h)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of ie(s))!se.call(o,a)&&a!==c&&R(o,a,{get:()=>s[a],enumerable:!(h=oe(s,a))||h.enumerable});return o};var b=(o,s,c)=>(c=o!=null?le(re(o)):{},ae(s||!o||!o.__esModule?R(c,"default",{value:o,enumerable:!0}):c,o));const e=require("vue"),B=require("./base-DbuX_Y3x.js"),ce=require("./index-rFJmbgyH.js"),H=require("./Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js"),ue=require("./Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js"),de=["id"],me={class:"ptr-track"},fe={class:"ptr-text"},pe={key:0,class:"ptr-scroller-wrap"},ve={key:0,class:"ptr-loadmore"},he={key:2,class:"ptr-finished"},ge=e.defineComponent({name:"ClPullToRefresh",__name:"Index",props:{id:String,className:String,disabled:Boolean,threshold:{type:Number,default:60},list:Array,minItemSize:{type:Number,default:60},keyField:{type:String,default:"id"},isFinished:Boolean,isLoading:Boolean,pullIcon:{type:String,default:"angle-down"},pullingText:{type:String,default:"下拉即可刷新..."},readyText:{type:String,default:"释放即可刷新..."},refreshingText:{type:String,default:"加载中..."},loadingText:{type:String,default:"加载中..."},finishedText:{type:String,default:"没有更多了"},sizeDependencies:{type:Function}},emits:["onRefresh","onLoadMore"],setup(o,{expose:s,emit:c}){let h=!1;const a=()=>{h||(h=!0,Promise.resolve().then(()=>require("./vue-virtual-scroller-C_hlZMj5.js")))},Y=e.defineAsyncComponent(()=>(a(),import("vue-virtual-scroller").then(t=>t.DynamicScroller))),J=e.defineAsyncComponent(()=>(a(),import("vue-virtual-scroller").then(t=>t.DynamicScrollerItem))),U=()=>{a(),import("vue-virtual-scroller")},n=o,C=c,j=n.id,E=e.useTemplateRef("refElContent"),i=e.ref("idle"),p=e.ref(0),w=e.ref(0),u=e.ref(!1),d=e.ref(!1),S=e.ref(0);let r=null,g=0,k=0,x=0,v=null;const y=e.computed(()=>{const t=n.threshold;return B.CommonBase.isFinite(t)&&typeof t=="number"?Math.max(1,t):60}),m=e.computed(()=>B.CommonBase.isArray(n.list)),G=e.computed(()=>m.value?n.list.filter(t=>t!=null):[]),K=e.computed(()=>{const t=n.minItemSize;return B.CommonBase.isFinite(t)&&typeof t=="number"?Math.max(1,t):60}),O=e.computed(()=>{switch(i.value){case"loading":return n.refreshingText;case"ready":return n.readyText;case"pulling":return n.pullingText;default:return""}}),Q=e.computed(()=>{let t={"panel-pull-to-refresh":!0};return n.disabled&&(t["ptr-disabled"]=!0),d.value&&(t["ptr-is-pulling"]=!0),t=B.CommonBase.getJsonMerge(t,ce.CommonElement.getClassNameJson(n.className)),t}),W=e.computed(()=>({height:`${p.value}px`})),X=e.computed(()=>u.value&&d.value?{touchAction:"none"}:{}),z=t=>Math.min(t*.4,y.value*2),Z=()=>{if(m.value)return S.value<=1;const t=E.value;return t?t.scrollTop<=1:!0},L=t=>{if("touches"in t){const l=t.touches;return l.length>0?l[0].clientY:0}return t.clientY},N=(t=>A(t)),M=(t=>T(t)),ee=()=>{document.addEventListener("mousemove",N),document.addEventListener("mouseup",M)},F=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",M)},f=()=>{r!==null&&(cancelAnimationFrame(r),r=null),g=0,d.value=!1,p.value=0,i.value="idle"},te=t=>{if(n.sizeDependencies)try{return n.sizeDependencies(t)}catch{return}},ne=()=>{const t=Date.now();t-k<500||!n.isFinished&&!n.isLoading&&(k=t,C("onLoadMore"))},I=()=>{if(!m.value||n.isFinished||n.isLoading)return;const t=Date.now();if(t-x<100){v===null&&(v=window.setTimeout(()=>{v=null,I()},100));return}const l=E.value?.querySelector(".ptr-scroller");l&&(S.value=l.scrollTop||0,!(l.clientHeight<=0)&&l.scrollHeight<=l.clientHeight&&(x=t,k=t,C("onLoadMore")))},_=()=>{F(),r!==null&&(cancelAnimationFrame(r),r=null),u.value=!1};e.onMounted(()=>{U()}),e.onBeforeUnmount(()=>{_(),v!==null&&(clearTimeout(v),v=null)}),e.onDeactivated(()=>{_(),i.value!=="loading"&&f()}),e.watch(()=>n.disabled,t=>{t&&(_(),i.value!=="loading"&&f())}),e.watch(()=>m.value,t=>{t&&(S.value=0)}),e.watch(()=>[n.list,n.list?.length],async()=>{m.value&&(await e.nextTick(),I())},{immediate:!0});const V=t=>{n.disabled||i.value==="loading"||!("touches"in t)&&t.button!==0||(u.value&&(_(),f()),w.value=L(t),u.value=!0,"touches"in t||ee())},A=t=>{if(!(!u.value||n.disabled)){if(!("touches"in t)&&t.buttons===0){T();return}g=L(t)-w.value,g>0&&Z()?(d.value=!0,t.cancelable&&t.preventDefault(),r===null&&(r=requestAnimationFrame(()=>{r=null;const l=z(g);p.value=l,i.value=l>=y.value?"ready":"pulling"}))):d.value&&f()}},T=t=>{if(u.value){if(u.value=!1,F(),t?.type==="touchcancel"){f();return}if(r!==null){cancelAnimationFrame(r),r=null;const l=z(g);l>=0&&(p.value=l,i.value=l>=y.value?"ready":"pulling")}n.disabled||!(d.value&&i.value==="ready")?f():(i.value="loading",p.value=y.value,d.value=!1,C("onRefresh"))}},P=t=>{const l=t.target;S.value=l?.scrollTop||0,l&&l.scrollTop+l.clientHeight>=l.scrollHeight-1&&ne()};return s({finishRefresh:()=>{_(),f(),k=0,x=0}}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(j),class:e.normalizeClass(Q.value)},[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"ptr-indicator",style:e.normalizeStyle(W.value),role:"status","aria-live":"polite"},[e.createElementVNode("div",{class:e.normalizeClass(["ptr-indicator-inner",`ptr-state-${i.value}`])},[e.renderSlot(t.$slots,"indicator",{state:i.value,distance:p.value,threshold:y.value},()=>[i.value==="loading"?(e.openBlock(),e.createBlock(H._sfc_main,{key:0,theme:"circleSpinner",size:"small",color:"#999",className:"ptr-indicator-load"})):(e.openBlock(),e.createBlock(ue._sfc_main,{key:1,name:o.pullIcon,className:"ptr-icon-arrow","aria-hidden":"true"},null,8,["name"])),e.createElementVNode("span",fe,e.toDisplayString(O.value),1)])],2)],4),e.createElementVNode("div",{ref_key:"refElContent",ref:E,class:e.normalizeClass(["ptr-content",{"ptr-content-virtual":m.value}]),style:e.normalizeStyle(X.value),onScroll:P,onTouchstart:V,onTouchmove:A,onTouchend:T,onTouchcancel:T,onMousedown:V},[m.value?(e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(e.unref(Y),{class:"ptr-scroller",items:G.value,"min-item-size":K.value,"key-field":o.keyField,onScroll:P},{default:e.withCtx(({item:D,index:q,active:$})=>[e.createVNode(e.unref(J),{item:D,index:q,active:$,"size-dependencies":te(D)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{item:D,index:q,active:$})]),_:2},1032,["item","index","active","size-dependencies"])]),after:e.withCtx(()=>[o.isLoading?(e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(t.$slots,"loadMore",{},()=>[e.createVNode(H._sfc_main,{theme:"circleSpinner",size:"small",color:"#999",className:"ptr-loadmore-load"}),e.createElementVNode("span",null,e.toDisplayString(o.loadingText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),o.isFinished&&!o.isLoading?(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(t.$slots,"finished",{},()=>[e.createElementVNode("span",null,e.toDisplayString(o.finishedText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),_:3},8,["items","min-item-size","key-field"])])):e.renderSlot(t.$slots,"default",{key:1})],38)])],10,de))}});exports._sfc_main=ge;
1
+ "use strict";var le=Object.create;var R=Object.defineProperty;var oe=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var re=Object.getPrototypeOf,se=Object.prototype.hasOwnProperty;var ae=(o,s,c,h)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of ie(s))!se.call(o,a)&&a!==c&&R(o,a,{get:()=>s[a],enumerable:!(h=oe(s,a))||h.enumerable});return o};var b=(o,s,c)=>(c=o!=null?le(re(o)):{},ae(s||!o||!o.__esModule?R(c,"default",{value:o,enumerable:!0}):c,o));const e=require("vue"),B=require("./base-DbuX_Y3x.js"),ce=require("./index-rFJmbgyH.js"),H=require("./Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js"),ue=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),de=["id"],me={class:"ptr-track"},fe={class:"ptr-text"},pe={key:0,class:"ptr-scroller-wrap"},ve={key:0,class:"ptr-loadmore"},he={key:2,class:"ptr-finished"},ge=e.defineComponent({name:"ClPullToRefresh",__name:"Index",props:{id:String,className:String,disabled:Boolean,threshold:{type:Number,default:60},list:Array,minItemSize:{type:Number,default:60},keyField:{type:String,default:"id"},isFinished:Boolean,isLoading:Boolean,pullIcon:{type:String,default:"angle-down"},pullingText:{type:String,default:"下拉即可刷新..."},readyText:{type:String,default:"释放即可刷新..."},refreshingText:{type:String,default:"加载中..."},loadingText:{type:String,default:"加载中..."},finishedText:{type:String,default:"没有更多了"},sizeDependencies:{type:Function}},emits:["onRefresh","onLoadMore"],setup(o,{expose:s,emit:c}){let h=!1;const a=()=>{h||(h=!0,Promise.resolve().then(()=>require("./vue-virtual-scroller-C_hlZMj5.js")))},Y=e.defineAsyncComponent(()=>(a(),import("vue-virtual-scroller").then(t=>t.DynamicScroller))),J=e.defineAsyncComponent(()=>(a(),import("vue-virtual-scroller").then(t=>t.DynamicScrollerItem))),U=()=>{a(),import("vue-virtual-scroller")},n=o,C=c,j=n.id,E=e.useTemplateRef("refElContent"),i=e.ref("idle"),p=e.ref(0),w=e.ref(0),u=e.ref(!1),d=e.ref(!1),S=e.ref(0);let r=null,g=0,k=0,x=0,v=null;const y=e.computed(()=>{const t=n.threshold;return B.CommonBase.isFinite(t)&&typeof t=="number"?Math.max(1,t):60}),m=e.computed(()=>B.CommonBase.isArray(n.list)),G=e.computed(()=>m.value?n.list.filter(t=>t!=null):[]),K=e.computed(()=>{const t=n.minItemSize;return B.CommonBase.isFinite(t)&&typeof t=="number"?Math.max(1,t):60}),O=e.computed(()=>{switch(i.value){case"loading":return n.refreshingText;case"ready":return n.readyText;case"pulling":return n.pullingText;default:return""}}),Q=e.computed(()=>{let t={"panel-pull-to-refresh":!0};return n.disabled&&(t["ptr-disabled"]=!0),d.value&&(t["ptr-is-pulling"]=!0),t=B.CommonBase.getJsonMerge(t,ce.CommonElement.getClassNameJson(n.className)),t}),W=e.computed(()=>({height:`${p.value}px`})),X=e.computed(()=>u.value&&d.value?{touchAction:"none"}:{}),z=t=>Math.min(t*.4,y.value*2),Z=()=>{if(m.value)return S.value<=1;const t=E.value;return t?t.scrollTop<=1:!0},L=t=>{if("touches"in t){const l=t.touches;return l.length>0?l[0].clientY:0}return t.clientY},N=(t=>A(t)),M=(t=>T(t)),ee=()=>{document.addEventListener("mousemove",N),document.addEventListener("mouseup",M)},F=()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",M)},f=()=>{r!==null&&(cancelAnimationFrame(r),r=null),g=0,d.value=!1,p.value=0,i.value="idle"},te=t=>{if(n.sizeDependencies)try{return n.sizeDependencies(t)}catch{return}},ne=()=>{const t=Date.now();t-k<500||!n.isFinished&&!n.isLoading&&(k=t,C("onLoadMore"))},I=()=>{if(!m.value||n.isFinished||n.isLoading)return;const t=Date.now();if(t-x<100){v===null&&(v=window.setTimeout(()=>{v=null,I()},100));return}const l=E.value?.querySelector(".ptr-scroller");l&&(S.value=l.scrollTop||0,!(l.clientHeight<=0)&&l.scrollHeight<=l.clientHeight&&(x=t,k=t,C("onLoadMore")))},_=()=>{F(),r!==null&&(cancelAnimationFrame(r),r=null),u.value=!1};e.onMounted(()=>{U()}),e.onBeforeUnmount(()=>{_(),v!==null&&(clearTimeout(v),v=null)}),e.onDeactivated(()=>{_(),i.value!=="loading"&&f()}),e.watch(()=>n.disabled,t=>{t&&(_(),i.value!=="loading"&&f())}),e.watch(()=>m.value,t=>{t&&(S.value=0)}),e.watch(()=>[n.list,n.list?.length],async()=>{m.value&&(await e.nextTick(),I())},{immediate:!0});const V=t=>{n.disabled||i.value==="loading"||!("touches"in t)&&t.button!==0||(u.value&&(_(),f()),w.value=L(t),u.value=!0,"touches"in t||ee())},A=t=>{if(!(!u.value||n.disabled)){if(!("touches"in t)&&t.buttons===0){T();return}g=L(t)-w.value,g>0&&Z()?(d.value=!0,t.cancelable&&t.preventDefault(),r===null&&(r=requestAnimationFrame(()=>{r=null;const l=z(g);p.value=l,i.value=l>=y.value?"ready":"pulling"}))):d.value&&f()}},T=t=>{if(u.value){if(u.value=!1,F(),t?.type==="touchcancel"){f();return}if(r!==null){cancelAnimationFrame(r),r=null;const l=z(g);l>=0&&(p.value=l,i.value=l>=y.value?"ready":"pulling")}n.disabled||!(d.value&&i.value==="ready")?f():(i.value="loading",p.value=y.value,d.value=!1,C("onRefresh"))}},P=t=>{const l=t.target;S.value=l?.scrollTop||0,l&&l.scrollTop+l.clientHeight>=l.scrollHeight-1&&ne()};return s({finishRefresh:()=>{_(),f(),k=0,x=0}}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(j),class:e.normalizeClass(Q.value)},[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"ptr-indicator",style:e.normalizeStyle(W.value),role:"status","aria-live":"polite"},[e.createElementVNode("div",{class:e.normalizeClass(["ptr-indicator-inner",`ptr-state-${i.value}`])},[e.renderSlot(t.$slots,"indicator",{state:i.value,distance:p.value,threshold:y.value},()=>[i.value==="loading"?(e.openBlock(),e.createBlock(H._sfc_main,{key:0,theme:"circleSpinner",size:"small",color:"#999",className:"ptr-indicator-load"})):(e.openBlock(),e.createBlock(ue._sfc_main,{key:1,name:o.pullIcon,className:"ptr-icon-arrow","aria-hidden":"true"},null,8,["name"])),e.createElementVNode("span",fe,e.toDisplayString(O.value),1)])],2)],4),e.createElementVNode("div",{ref_key:"refElContent",ref:E,class:e.normalizeClass(["ptr-content",{"ptr-content-virtual":m.value}]),style:e.normalizeStyle(X.value),onScroll:P,onTouchstart:V,onTouchmove:A,onTouchend:T,onTouchcancel:T,onMousedown:V},[m.value?(e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(e.unref(Y),{class:"ptr-scroller",items:G.value,"min-item-size":K.value,"key-field":o.keyField,onScroll:P},{default:e.withCtx(({item:D,index:q,active:$})=>[e.createVNode(e.unref(J),{item:D,index:q,active:$,"size-dependencies":te(D)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"item",{item:D,index:q,active:$})]),_:2},1032,["item","index","active","size-dependencies"])]),after:e.withCtx(()=>[o.isLoading?(e.openBlock(),e.createElementBlock("div",ve,[e.renderSlot(t.$slots,"loadMore",{},()=>[e.createVNode(H._sfc_main,{theme:"circleSpinner",size:"small",color:"#999",className:"ptr-loadmore-load"}),e.createElementVNode("span",null,e.toDisplayString(o.loadingText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),o.isFinished&&!o.isLoading?(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(t.$slots,"finished",{},()=>[e.createElementVNode("span",null,e.toDisplayString(o.finishedText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),_:3},8,["items","min-item-size","key-field"])])):e.renderSlot(t.$slots,"default",{key:1})],38)])],10,de))}});exports._sfc_main=ge;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as f, defineAsyncComponent as r, computed as e, openBlock as a, createElementBlock as s, unref as p, normalizeClass as h, createBlock as z, resolveDynamicComponent as R, Fragment as B } from "vue";
2
2
  import { C as m } from "./base-fr2I80sU.js";
3
3
  import { C as w } from "./index-B477PjJ3.js";
4
- import { u as P } from "./language-pMmux6Js.js";
4
+ import { u as P } from "./language-BaLIp7bA.js";
5
5
  const q = ["id", "aria-label"], F = /* @__PURE__ */ f({
6
6
  name: "ClLoad",
7
7
  __name: "Index",
@@ -1 +1 @@
1
- "use strict";var Ee=Object.create;var ve=Object.defineProperty;var be=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var _e=(c,O,M,r)=>{if(O&&typeof O=="object"||typeof O=="function")for(let l of Ie(O))!xe.call(c,l)&&l!==M&&ve(c,l,{get:()=>O[l],enumerable:!(r=be(O,l))||r.enumerable});return c};var Se=(c,O,M)=>(M=c!=null?Ee(ke(c)):{},_e(O||!c||!c.__esModule?ve(M,"default",{value:c,enumerable:!0}):M,c));const t=require("vue"),j=require("./log-C2ZbqiAV.js"),n=require("./base-DbuX_Y3x.js"),R=require("./index-rFJmbgyH.js"),Te=require("./Index.vue_vue_type_script_setup_true_lang-CyYCIkzr.js"),Le=require("./List.vue_vue_type_script_setup_true_lang-DJAqJJnH.js"),Ve=require("./Index.vue_vue_type_script_setup_true_lang-M72THnHz.js"),Be=require("./One.vue_vue_type_script_setup_true_lang-BKTdt1M7.js"),we=require("./language-Q4AGYtUe.js"),Me=require("./Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js"),Oe=require("./Index.vue_vue_type_script_setup_true_lang-Bn3f-2m-.js");;/* empty css */const Fe=["id"],Pe={key:0,class:"select-inDropdown-search",role:"search","aria-label":"搜索选项"},Ae={key:2,class:"select-inDropdown-checkboxAll"},Ke=["aria-selected","aria-disabled","onClick"],Ne={class:"select-inDropdown-item-inner"},Re={key:0,class:"select-inDropdown-checkbox"},$e=["innerHTML"],qe={key:5,class:"select-inDropdown-body"},He={class:"select-inDropdown-empty"},ye=35,Je=210,je=20,We=t.defineComponent({name:"ClSelectInDropdown",__name:"Dropdown",props:{id:String,disabled:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||"},isMultiple:{type:Boolean,default:!1},isCheckBoxAll:{type:Boolean,default:!0},showDropDownTextFormat:String,showDropDownTextFormatSub:String,isCascade:{type:Boolean,default:!1},parentSelectable:{type:Boolean,default:!1},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},originalData:{type:Array,default:()=>[]},keyIndex:String,isOpen:{type:Boolean,default:!1},selectId:{type:Array,default:()=>[]},serverCallback:Function},emits:{onChange:c=>!0,onInitComplete:()=>!0,onError:c=>!0},setup(c,{expose:O,emit:M}){const r=t.defineAsyncComponent(()=>import("vue-virtual-scroller").then(o=>(Promise.resolve().then(()=>require("./vue-virtual-scroller-C_hlZMj5.js")),o.RecycleScroller))),l=c,x=M,{optPageLanguage:W,getPageLanguage:G}=we.useLanguage();G("common");const _=t.inject("$SelectTop",{}),V=typeof _.getSelectData=="function",E=t.useTemplateRef("refElSearch"),F=t.useTemplateRef("refElScroller"),b=t.useTemplateRef("refElRoot");let v=!0;const S={isScrollLoading:!1,hasMoreData:!0};let p=[],P=0,T=0;const X=l.id,Q=`select-inList-${l.keyIndex||""}`;let $=!1;const H=t.ref(""),k=t.ref([]),Y=t.ref([]);let Z={};const le=o=>{const s=o.id.toString();if(l.isMultiple&&l.isCascade&&o._hasChildren&&V){const f=_.getAllChildIds(s).filter(h=>!_.getSelectValueInfo(h)?.isDisabled);if(f.length===0)return 0;const C=f.filter(h=>n.CommonBase.isExistValue(l.selectId,h)).length;return C===0?0:C===f.length?2:1}return n.CommonBase.isExistValue(l.selectId,s)?2:0},se=o=>le(o)===2,me=o=>le(o)===1,he=t.computed(()=>{let o=!1;return Y.value.length>0&&l.selectId.length>=Y.value.length&&(o=n.CommonBase.isContainArr(l.selectId,Y.value)),o}),ae=o=>{if(!o||typeof o!="object")return"";let s=n.CommonBase.isNonEmptyString(l.showDropDownTextFormat)?l.showDropDownTextFormat:"";o._level>=1&&n.CommonBase.isNonEmptyString(l.showDropDownTextFormatSub)&&(s=l.showDropDownTextFormatSub);let a=n.CommonBase.isEmpty(s)?o.name:n.CommonBase.convertStringFormat(s,o);return n.CommonBase.isHtml(a)?n.CommonBase.isEmpty(s)&&n.CommonBase.isHtml(o.name)?a=n.CommonBase.encodeHTML(o.name):a=n.CommonBase.convertStringFormatEncodeHTML(s,o):typeof a=="string"&&a.indexOf("<")>-1&&(a=n.CommonBase.encodeHTML(a)),a},J=o=>{const s=Z[o]||{};if(n.CommonBase.isBoolean(s._isTypeRadio))return s._isTypeRadio;if(V){const a=_.getSelectValueInfo(o);if(n.CommonBase.isBoolean(a?._isTypeRadio))return a._isTypeRadio}return!1},ee=()=>{const o=[];Z=n.CommonBase.getJsonByList(k.value),k.value.forEach(s=>{if(!n.CommonBase.isObject(s))return;const a=typeof s.id;if(s.id==null||a!=="string"&&(a!=="number"||!n.CommonBase.isFinite(s.id)))return;const f=s.id.toString();if(!(l.isCascade&&s._hasChildren)&&!J(f)){if(n.CommonBase.isExistValue(o,f))return;s.isDisabled?n.CommonBase.isExistValue(l.selectId,f)&&o.push(f):o.push(f)}}),Y.value=o},z=o=>{const s=l.parentKey,a=l.topParentValue,f={};o.forEach(g=>{if(!n.CommonBase.isObject(g)||g.id==null||typeof g.id!="string"&&(typeof g.id!="number"||!n.CommonBase.isFinite(g.id)))return;const I=g[s],L=I!=null&&(typeof I=="string"||typeof I=="number")?I.toString():"";L!==""&&L!==String(a)&&(f[L]||(f[L]=[]),f[L].push(g))});const C=[],h=(g,I,L,B)=>{g.forEach(N=>{const oe=N.id.toString();if(B.has(oe))return;B.add(oe);const e=f[oe]||[];C.push({...N,_level:I,_parentName:L,_hasChildren:e.length>0}),e.length>0&&h(e,I+1,N.name,B)})},w=o.filter(g=>{if(!n.CommonBase.isObject(g)||g.id==null||typeof g.id!="string"&&(typeof g.id!="number"||!n.CommonBase.isFinite(g.id)))return!1;const I=g[s],L=I!=null&&(typeof I=="string"||typeof I=="number")?I.toString():"";return n.CommonBase.isEmpty(L)||L===String(a)});return h(w,0,"",new Set),C},ie=(o,s)=>{if(!V)return o;const a=o.filter(B=>B!=null&&B.id!=null&&(typeof B.id=="string"||typeof B.id=="number"&&n.CommonBase.isFinite(B.id))),f=s.filter(B=>B!=null&&B.id!=null&&(typeof B.id=="string"||typeof B.id=="number"&&n.CommonBase.isFinite(B.id))),C=l.parentKey,h=l.topParentValue,w=new Set,g=new Set(a.map(B=>B.id.toString()));a.forEach(B=>{const N=B.id.toString();w.add(N);const oe=new Set;let e=B[C];for(;e!=null&&(typeof e=="string"||typeof e=="number")&&e.toString()!==String(h);){const u=e.toString();if(oe.has(u))break;oe.add(u),g.has(u)||w.add(u),e=_.getSelectValueInfo(u)?.[C]}_.getAllChildIds(N).forEach(u=>{w.add(u)})});const I=f.filter(B=>w.has(B.id.toString())),L=new Set(I.map(B=>B.id.toString()));return w.forEach(B=>{if(!L.has(B)){const N=_.getSelectValueInfo(B);N&&Object.keys(N).length>0&&I.push(N)}}),I},ce=()=>{v&&(v=!1,S.hasMoreData=!0,l.isCascade?(p=[...l.originalData||[]],k.value=z(p)):k.value=n.CommonBase.getListClone(l.originalData).filter(o=>o!=null&&o.id!=null&&(typeof o.id=="string"||typeof o.id=="number"&&n.CommonBase.isFinite(o.id))),ee(),re(),H.value="",t.nextTick(()=>{E.value&&E.value.setValue("")}))},re=()=>{t.nextTick(()=>{if(F.value&&l.selectId.length>0){const o=k.value.findIndex(s=>s.id!=null&&n.CommonBase.isExistValue(l.selectId,s.id.toString()));o>-1&&F.value.scrollToItem(o)}})},te=o=>{const s=[],a=Z[o]||{},f=l.isCascade&&a._hasChildren;if(l.isMultiple)if(J(o))n.CommonBase.isExistValue(l.selectId,o)?l.selectId.forEach(C=>{C!==o&&s.push(C)}):(l.selectId.forEach(C=>{J(C)||s.push(C)}),s.push(o));else if(f&&V){const C=_.getAllChildIds(o),h=C.filter(g=>!_.getSelectValueInfo(g)?.isDisabled),w=h.length>0&&h.every(g=>n.CommonBase.isExistValue(l.selectId,g));l.selectId.forEach(g=>{C.includes(g)?C.includes(g)&&_.getSelectValueInfo(g)?.isDisabled&&s.push(g):s.push(g)}),w||h.forEach(g=>{n.CommonBase.isExistValue(s,g)||s.push(g)})}else l.selectId.forEach(C=>{C!==o&&s.push(C)}),n.CommonBase.isExistValue(l.selectId,o)||s.push(o);else{if(f&&!l.parentSelectable)return[...l.selectId];s.push(o)}return s},ne=o=>{const s=k.value;if(s.length===0)return;let a=-1;const f=H.value;f.length>0?(s.forEach((C,h)=>{C.id.toString()===f&&(a=h)}),a+=o,a<0?a=0:a>=s.length&&(a=s.length-1)):a=0,H.value=s[a].id.toString(),F.value&&F.value.scrollToItem(a)},q=o=>{let s=o.keyCode;if(!n.CommonBase.isUndefined(s))switch(s=s.toString(),s){case"13":{const a=b.value&&o.target instanceof Node&&b.value.contains(o.target);(o.target===document.body||a)&&(o.preventDefault(),o.stopPropagation());break}case"38":o.preventDefault(),o.stopPropagation(),ne(-1);break;case"40":o.preventDefault(),o.stopPropagation(),ne(1);break}},K=o=>{let s=o.keyCode;if(!n.CommonBase.isUndefined(s))switch(s=s.toString(),s){case"27":V&&_.closeDropdown?.();break;case"13":{const a=H.value;if(!a||l.disabled||!l.isOpen)break;const f=b.value&&o.target instanceof Node&&b.value.contains(o.target);if(o.target!==document.body&&!f||!k.value.some(w=>w.id.toString()===a)||Z[a]?.isDisabled)break;const h=te(a);x("onChange",h);break}}},ue=o=>o.map(s=>{const{_level:a,_parentName:f,_hasChildren:C,...h}=s;return h}),de=async()=>{if(l.serverCallback&&!(S.isScrollLoading||!S.hasMoreData)&&(S.isScrollLoading=!0,l.serverCallback)){const o=++T,s=k.value;try{const a={offset:s.length};if(l.isSearch&&E.value){const w=E.value.getValue();n.CommonBase.isEmpty(w)||(a.search=w)}const f=await l.serverCallback(a);if(o!==T||s!==k.value)return;if(!Array.isArray(f)){j.clLog.error("ClSelect","_loadMore 服务端返回数据格式异常(非数组):",typeof f),x("onError","服务端加载失败:返回数据格式异常");return}if(f.length===0){S.hasMoreData=!1;return}const C=new Set(s.map(w=>w?.id?.toString()).filter(Boolean)),h=f.filter(w=>{if(w?.id==null)return!1;const g=typeof w.id;return g!=="string"&&(g!=="number"||!n.CommonBase.isFinite(w.id))?!1:!C.has(w.id.toString())});if(h.length===0){S.hasMoreData=!1;return}l.isCascade?a.search?k.value=z([...k.value,...h]):(p.length===0&&(p=ue(k.value)),p.length===0&&(p=[...l.originalData]),p.push(...h),k.value=z(p)):k.value.push(...h),ee(),V&&(_.convertListToJson(h),_.refreshDisplayLabels?.())}catch(a){j.clLog.error("ClSelect","_loadMore 服务端加载失败:",a),x("onError","服务端加载失败,请稍后重试")}finally{S.isScrollLoading=!1}}},ge=()=>{ce(),x("onInitComplete")};t.onMounted(()=>{ge()}),t.onBeforeUnmount(()=>{R.CommonElement.offListener(window,"keydown",q),R.CommonElement.offListener(window,"keyup",K),$=!1}),t.onDeactivated(()=>{R.CommonElement.offListener(window,"keydown",q),R.CommonElement.offListener(window,"keyup",K),$=!1}),t.onActivated(()=>{l.isOpen&&!$&&(R.CommonElement.onListener(window,"keydown",q),R.CommonElement.onListener(window,"keyup",K),$=!0)}),t.watch(()=>l.isOpen,o=>{o?(v=!0,ce()):S.isScrollLoading=!1}),t.watch(()=>l.originalData,o=>{v=!0,l.isCascade?(p=[...o||[]],k.value=z(p)):k.value=n.CommonBase.getListClone(o).filter(s=>s!=null&&s.id!=null&&(typeof s.id=="string"||typeof s.id=="number"&&n.CommonBase.isFinite(s.id))),ee(),S.hasMoreData=!0,H.value="",t.nextTick(()=>{E.value&&E.value.setValue("")})});const fe=async o=>{const s=++P;T=Math.max(T,s+1);let a=[];if(l.isCascade&&(p=[]),S.hasMoreData=!0,l.serverCallback){try{if(a=await l.serverCallback({search:o,offset:0}),Array.isArray(a)||(j.clLog.error("ClSelect","onSearch 服务端返回数据格式异常(非数组):",typeof a),x("onError","服务端搜索失败:返回数据格式异常"),a=[]),s!==P)return;V&&_.convertListToJson(a)}catch(f){j.clLog.error("ClSelect","onSearch 服务端搜索失败:",f),x("onError","服务端搜索失败,请稍后重试"),a=[]}if(s!==P)return;l.isCascade&&(a=ie(a,l.originalData),a=z(a))}else{const f=l.originalData.filter(C=>C!=null&&C.id!=null&&(typeof C.id=="string"||typeof C.id=="number"&&n.CommonBase.isFinite(C.id)));if(n.CommonBase.isEmpty(o))a=f;else{l.searchKeyType!=="||"&&l.searchKeyType!=="&&"&&j.clLog.warn("ClSelect","onSearch searchKeyType 未知值,已降级为 OR 匹配:",l.searchKeyType);const C=o.toLowerCase(),h=n.CommonBase.isArray(l.searchKey)?l.searchKey:["name"],w=h.length;f.forEach(g=>{const I=[];for(let L=0;L<w;L++){const B=g[h[L]];if(B==null)continue;String(B).toLowerCase().indexOf(C)>-1&&I.push(!0)}if(I.length>0)switch(l.searchKeyType){case"||":a.push(g);break;case"&&":I.length===w&&a.push(g);break;default:a.push(g)}})}l.isCascade&&(n.CommonBase.isEmpty(o)||(a=ie(a,l.originalData)),a=z(a))}k.value=a.filter(f=>f!=null&&f.id!=null&&(typeof f.id=="string"||typeof f.id=="number"&&n.CommonBase.isFinite(f.id))),ee(),H.value="",V&&_.calculationDropdownPosition()},U=o=>{if(!l.disabled&&l.isMultiple){const s=[],a=[];Y.value.forEach(h=>{o.value?n.CommonBase.isExistValue(l.selectId,h)||s.push(h):n.CommonBase.isExistValue(l.selectId,h)&&(Z[h]?.isDisabled||a.push(h))});const f=n.CommonBase.getArrClone(l.selectId);a.length>0&&a.forEach(h=>{const w=f.indexOf(h);w>-1&&f.splice(w,1)}),s.length>0&&s.forEach(h=>{n.CommonBase.isExistValue(f,h)||f.push(h)});const C=[];f.forEach(h=>{(!J(h)||n.CommonBase.isExistValue(l.selectId,h))&&C.push(h)}),x("onChange",C)}},pe=o=>{if(o.id==null||typeof o.id!="string"&&(typeof o.id!="number"||!n.CommonBase.isFinite(o.id))||o.isDisabled||l.disabled)return;const s=o.id.toString(),a=te(s);x("onChange",a)};return O({initOpenShow:o=>{o?$||(R.CommonElement.onListener(window,"keydown",q),R.CommonElement.onListener(window,"keyup",K),$=!0):$&&(R.CommonElement.offListener(window,"keydown",q),R.CommonElement.offListener(window,"keyup",K),$=!1)}}),(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:"select-inDropdown-container",id:t.unref(X),ref_key:"refElRoot",ref:b},[c.isSearch?(t.openBlock(),t.createElementBlock("div",Pe,[t.createVNode(Ve._sfc_main,{ref_key:"refElSearch",ref:E,placeholder:c.searchPlaceholder,disabled:c.disabled,onOnChange:fe},null,8,["placeholder","disabled"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)),c.isMultiple&&c.isCheckBoxAll&&k.value.length>0?(t.openBlock(),t.createElementBlock("div",Ae,[t.createVNode(Be._sfc_main,{forId:`${Q}-cb-all`,label:t.unref(W).checkboxAll,value:he.value,disabled:c.disabled,onOnChange:U},null,8,["forId","label","value","disabled"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[],64)),k.value.length>0?(t.openBlock(),t.createBlock(t.unref(r),{key:4,class:"select-inDropdown-body select-inDropdown-scroller",role:"listbox",style:t.normalizeStyle({height:Math.min(k.value.length*ye,Je)+"px"}),items:k.value,"item-size":ye,"key-field":"id",ref_key:"refElScroller",ref:F,onScrollEnd:de},{default:t.withCtx(({item:a})=>[t.createElementVNode("div",{role:"option","aria-selected":se(a),"aria-disabled":a.isDisabled||!1,class:t.normalizeClass({"option-selected":se(a),"option-disabled":a.isDisabled,"option-hoverKeydown":H.value===a.id.toString(),"select-inDropdown-item-child":a._level>=1}),style:t.normalizeStyle({height:ye+"px",paddingLeft:a._level?a._level*je+"px":void 0}),onClick:f=>pe(a)},[t.createElementVNode("div",Ne,[c.isMultiple?(t.openBlock(),t.createElementBlock("div",Re,[t.createVNode(Be._sfc_main,{name:`${Q}-cb`,forId:`${Q}-cb-${a.id}`,value:se(a),indeterminate:me(a),disabled:a.isDisabled},null,8,["name","forId","value","indeterminate","disabled"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)),t.createElementVNode("div",{class:"select-inDropdown-title",innerHTML:ae(a)},null,8,$e)])],14,Ke)]),_:1},8,["style","items"])):(t.openBlock(),t.createElementBlock("div",qe,[t.createElementVNode("div",He,t.toDisplayString(t.unref(W).noResultsText),1)]))],8,Fe))}}),ze=["id"],Ue={class:"select-inTag-title"},Ge={class:"select-inTag-operate"},Xe={class:"select-inTag-body"},Qe=t.defineComponent({name:"ClSelectInTags",__name:"Tags",props:{id:String,showTextFormat:String,selectId:{type:Array,default:()=>[]}},emits:{onRemove:c=>!0},setup(c,{emit:O}){const M=c,r=O,l=M.id,{optPageLanguage:x,getPageLanguage:W}=we.useLanguage();W("common");const G=t.inject("$SelectTop",{}),_=typeof G.getSelectData=="function",V=t.computed(()=>_?n.CommonBase.isArray(M.selectId)?G.getSelectData(M.selectId):[]:[]),E=t.computed(()=>_?V.value.length:0),F=t.computed(()=>n.CommonBase.isArray(V.value)?V.value.some(S=>n.CommonBase.isObject(S)?!(n.CommonBase.isBoolean(S.isDisabled)&&S.isDisabled):!1):!1),b=()=>{const S=V.value;if(!n.CommonBase.isArray(S))return;const p=[];let P=!1;S.forEach(T=>{if(!n.CommonBase.isObject(T))return;(n.CommonBase.isBoolean(T.isDisabled)?!!T.isDisabled:!1)?(typeof T.id=="string"&&!n.CommonBase.isEmpty(T.id)||typeof T.id=="number"&&n.CommonBase.isFinite(T.id))&&p.push(T.id.toString()):P=!0}),P&&r("onRemove",p)},v=S=>{if(!n.CommonBase.isArray(M.selectId)||n.CommonBase.isEmpty(S))return;const p=String(S),P=M.selectId.findIndex(X=>String(X)===p);if(P===-1)return;const T=n.CommonBase.getArrClone(M.selectId);T.splice(P,1),r("onRemove",T)};return(S,p)=>(t.openBlock(),t.createElementBlock("div",{class:"select-inTag-container",id:t.unref(l)},[t.createElementVNode("div",Ue,[t.createElementVNode("span",null,t.toDisplayString(t.unref(x).selected)+" "+t.toDisplayString(E.value)+" "+t.toDisplayString(t.unref(x).count),1),t.createElementVNode("span",Ge,[F.value?(t.openBlock(),t.createBlock(Me._sfc_main,{key:0,class:"select-inTag-deleteAll",name:"remove",title:t.unref(x).deleteAll,"aria-label":t.unref(x).deleteAll,onClick:b},null,8,["title","aria-label"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))])]),t.createElementVNode("div",Xe,[t.createVNode(Oe._sfc_main,{showTextFormat:c.showTextFormat,list:V.value,onOnRemove:v},null,8,["showTextFormat","list"])])],8,ze))}}),Ye=["id"],Ze={key:0,class:"select-inText-num"},et=t.defineComponent({name:"ClSelect",__name:"Index",props:{id:String,value:[String,Number],className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},placeholder:String,classDropDown:String,theme:{type:String,default:"default",validator:c=>["default","noBorder"].includes(c)},multiple:{type:Boolean,default:!1},isClear:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1},isCheckBoxAll:{type:Boolean,default:!0},isShowTag:{type:Boolean,default:!0},arrowDirection:{type:String,default:"right",validator:c=>["left","right"].includes(c)},transitionLeave:{type:String,default:"zoomOutTop"},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||",validator:c=>["||","&&"].includes(c)},showTextFormat:String,showDropDownTextFormat:String,multipleRealTimeChange:{type:Boolean,default:!1},isCascade:{type:Boolean,default:!1},parentSelectable:{type:Boolean,default:!1},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},showDropDownTextFormatSub:String,isOutMerge:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","},plaintextLevelSeparator:{type:String,default:" > "},onOpenBefore:Function,serverCallback:Function,appendContainer:{type:String,default:""}},emits:{"update:value":c=>!0,"update:modelValue":c=>!0,onChange:(c,O)=>!0,onInit:()=>!0,onOpen:c=>!0,onError:c=>!0},setup(c,{expose:O,emit:M}){const r=c,l=M,x=t.useTemplateRef("refElDropdownLayer"),W=t.useTemplateRef("refElList"),G=t.useTemplateRef("refElTags"),_=`select-${n.CommonBase.getRandom(8)}`,V=r.id,E=t.reactive({isOpen:!1,dropDownPos:"down",tagHeight:"",tagLeft:"",tagDirection:"right"});let F=[],b={};const v={childrenMap:{},parentMap:{},lastChildMap:{},allChildMap:{}},S=t.ref(!1),p=t.ref([]),P=t.ref([]),T=t.ref([]);let X=!1;const Q=t.computed(()=>n.CommonBase.isNonEmptyString(r.showTextFormat)?r.showTextFormat:r.isCascade?"${name}(${parentName})":""),$=t.computed(()=>{let e={"panel-select":!0};return r.theme==="noBorder"&&(e["select-theme-noBorder"]=!0),e=n.CommonBase.getJsonMerge(e,R.CommonElement.getClassNameJson(r.className)),n.CommonBase.getStringByJson(e," ")}),H=t.computed(()=>`${$.value} cl-plaintext-value`),k=t.computed(()=>{const e=n.CommonBase.isString(r.plaintextSeparator)?r.plaintextSeparator:",";return T.value.join(e)}),Y=t.computed(()=>{let e={"select-inDropdown":!0};return r.theme==="noBorder"&&(e["select-inDropdown-noBorder"]=!0),E.isOpen&&r.multiple&&r.isShowTag&&(e["select-inTag-ext"]=!0,e[`select-inTag-${E.tagDirection}`]=!0),e=n.CommonBase.getJsonMerge(e,R.CommonElement.getClassNameJson(r.classDropDown)),n.CommonBase.getStringByJson(e," ")}),Z=t.computed(()=>{const e={"select-inTag":!0,"select-inTag-open":E.isOpen};return e[`select-inTag-${E.dropDownPos}`]=!0,e[`select-inTag-${E.tagDirection}`]=!0,e}),le=e=>{l("update:value",e),l("update:modelValue",e)},se=(e,i)=>{le(e),l("onChange",e,i)},me=()=>{X||(X=!0,t.nextTick(()=>{l("onInit")}))},he=e=>{t.nextTick(()=>{l("onOpen",e)})},ae=()=>{const e=[];return p.value.forEach(i=>{n.CommonBase.isExistJsonKey(b,i)&&e.push(i)}),e},J=e=>{if(n.CommonBase.isEmpty(e)||!n.CommonBase.isArray(e))return;const i={},u=r.parentKey,m=r.topParentValue;if(e.forEach(d=>{if(!n.CommonBase.isObject(d)){j.clLog.warn("ClSelect","_convertListToJson 跳过非对象数据项:",d);return}if(!(typeof d.id=="string"||typeof d.id=="number"&&n.CommonBase.isFinite(d.id))){j.clLog.warn("ClSelect","_convertListToJson 跳过无 id 或 id 类型异常的数据项:",d);return}const D=d.id.toString();i[D]=n.CommonBase.getJsonClone(d)}),b=n.CommonBase.getJsonMerge(b,i),r.serverCallback&&!S.value&&!n.CommonBase.isEmpty(i)&&(S.value=!0,r.value!=null&&r.value!==""&&(q(r.value),ne())),r.isCascade&&Object.keys(b).forEach(d=>{const y=b[d][u],D=y!=null&&(typeof y=="string"||typeof y=="number")?y.toString():"";if(D!==""&&D!==String(m)){const A=b[D];A?.name&&(b[d].parentName=A.name)}}),r.isCascade&&(ee(),r.isOutMerge&&r.multiple&&p.value.length>0)){const d=re(p.value);n.CommonBase.isEqualArr(p.value,d)||(p.value=d,F=d)}if(r.multiple&&p.value.length>1){const d=p.value.filter(y=>{const D=b[y];return n.CommonBase.isBoolean(D?._isTypeRadio)&&D._isTypeRadio});if(d.length>1){const y=d[d.length-1],D=p.value.filter(A=>A===y||!d.includes(A));n.CommonBase.isEqualArr(p.value,D)||(p.value=D,U())}}p.value.length>0&&(p.value=[...p.value])},ee=()=>{const e=r.parentKey,i=r.topParentValue;v.childrenMap={},v.parentMap={},v.lastChildMap={},v.allChildMap={},Object.keys(b).forEach(m=>{const y=b[m][e],D=y!=null&&(typeof y=="string"||typeof y=="number")?y.toString():"";D!==""&&D!==String(i)&&(v.parentMap[m]=D,v.childrenMap[D]||(v.childrenMap[D]=[]),v.childrenMap[D].push(m))})},z=e=>{const i=(u,m)=>{if(v.lastChildMap[u])return v.lastChildMap[u];if(m.has(u))return[];m.add(u);const d=v.childrenMap[u];if(!d||d.length===0)return v.lastChildMap[u]=[u],[u];const y=[];return d.forEach(D=>{y.push(...i(D,new Set(m)))}),v.lastChildMap[u]=y,y};return i(e,new Set)},ie=e=>{const i=(u,m)=>{if(v.allChildMap[u])return v.allChildMap[u];if(m.has(u))return[];m.add(u);const d=v.childrenMap[u];if(!d||d.length===0)return v.allChildMap[u]=[],[];const y=[];d.forEach(A=>{y.push(A),y.push(...i(A,new Set(m)))});const D=Array.from(new Set(y));return v.allChildMap[u]=D,D};return i(e,new Set)},ce=e=>{if(e.length===0)return[];const i=new Set(e),u=new Set,m=new Set;for(const d of i){const y=v.parentMap[d];y&&!m.has(y)&&u.add(y)}for(;u.size>0;){const d=u.values().next().value;if(u.delete(d),m.has(d))continue;m.add(d);const y=v.childrenMap[d];if(!y||y.length===0)continue;let D=!0;for(const A of y)if(!i.has(A)){D=!1;break}if(D){for(const De of y)i.delete(De);i.add(d);const A=v.parentMap[d];A&&!m.has(A)&&u.add(A)}}return[...i]},re=e=>{if(e.length===0)return[];const i=[];return e.forEach(u=>{i.push(...z(u))}),n.CommonBase.getArrUnique(i)},te=e=>!r.isCascade||!r.multiple?e:r.isOutMerge?ce(e):re(e),ne=()=>{if(S.value&&!n.CommonBase.isEmpty(p.value)){if(n.CommonBase.isEmpty(b)||r.serverCallback)return;const e=ae();if(!n.CommonBase.isEqualArr(p.value,e)){const i=p.value.filter(m=>!e.includes(m));i.length>0&&j.clLog.warn("ClSelect","以下 id 在数据列表中不存在,已自动清除:",i),p.value=e,F=e;const u=te(e);le(u.join(","))}}},q=e=>{if(e!=null&&typeof e!="string"&&(typeof e!="number"||!n.CommonBase.isFinite(e))){j.clLog.warn("ClSelect","setValue 收到非预期类型值:",typeof e,e);return}let i=e==null||e===""?[]:e.toString().split(",").filter(m=>m!=="");i=n.CommonBase.getArrUnique(i),r.isCascade&&r.isOutMerge&&i.length>0&&r.multiple&&(i=re(i));let u=n.CommonBase.isEqualArr(p.value,i);u&&(u=i.join(",")===p.value.join(",")),u||(F=i,p.value=i)},K=e=>n.CommonBase.isExistJsonKey(b,e)?n.CommonBase.getJsonClone(b[e]):{},ue=e=>{const i=n.CommonBase.isArray(e)?e:p.value,u=[];return i.forEach(m=>{const d=K(m);n.CommonBase.isEmpty(d)||u.push(d)}),u},de=e=>{const u=r.isCascade&&!r.multiple&&(v.childrenMap[e.id?.toString()]?.length>0||!v.parentMap[e.id?.toString()])&&n.CommonBase.isEmpty(r.showTextFormat)?"":Q.value;let m=n.CommonBase.isEmpty(u)?e.name??"":n.CommonBase.convertStringFormat(u,e);return n.CommonBase.isHtml(m)?m=n.CommonBase.isEmpty(u)?n.CommonBase.encodeHTML(e.name):n.CommonBase.convertStringFormatEncodeHTML(u,e):typeof m=="string"&&m.indexOf("<")>-1&&(m=n.CommonBase.encodeHTML(m)),m},ge=e=>{if(n.CommonBase.isNonEmptyString(r.showTextFormat))return n.CommonBase.removeHTMLTags(de(e));const i=n.CommonBase.isString(r.plaintextLevelSeparator)?r.plaintextLevelSeparator:" > ",u=n.CommonBase.isString(e?.name)?e.name:"",m=n.CommonBase.isString(e?.parentName)?e.parentName:"",d=r.isCascade&&n.CommonBase.isNonEmptyString(m)?`${m}${i}${u}`:u;return n.CommonBase.removeHTMLTags(d)},fe=()=>{const e=ue();P.value=e.map(i=>de(i)),T.value=e.map(i=>ge(i))},U=()=>{const e=ae();F=e,p.value=e;const i=te(e),u=i.join(",");let m;if(r.multiple){const d=[];i.forEach(y=>{const D=K(y);n.CommonBase.isEmpty(D)||d.push(D)}),m=d}else m=K(u),n.CommonBase.isEmpty(m)&&(m=null);se(u,m)},pe=()=>{E.isOpen||!n.CommonBase.isEqualArr(p.value,F)&&U()},Ce=()=>{S.value||(S.value=!0,J(r.list),q(r.value),ne())},o=()=>{!S.value&&r.list&&r.list.length>0&&Ce()},s=()=>{import("vue-virtual-scroller").then(()=>{Promise.resolve().then(()=>require("./vue-virtual-scroller-C_hlZMj5.js"))})};t.onMounted(()=>{r.isPlaintext||s(),t.nextTick(()=>{o()})}),t.watch(S,e=>{e&&me()}),t.watch(()=>r.list,(e,i)=>{S.value||(e&&e.length>0||i===void 0)&&(S.value=!0)}),t.watch([()=>r.value,()=>r.list],([e,i],[u,m])=>{const d=i||[];!S.value&&d.length>0&&(S.value=!0),i!==m&&(b={},v.childrenMap={},v.parentMap={},v.lastChildMap={},v.allChildMap={}),J(d),e!==void 0&&q(e),ne()}),t.watch([p,()=>r.list],([e,i])=>{i&&i.length>0&&n.CommonBase.isEmpty(b)&&J(i),fe()}),t.watch(()=>r.isOutMerge,()=>{r.isCascade&&r.multiple&&p.value.length>0&&te(ae()).join(",")!==String(r.value??"")&&U()}),t.watch([()=>r.parentKey,()=>r.topParentValue],()=>{r.isCascade&&!n.CommonBase.isEmpty(b)&&ee()});const a=e=>{e&&r.disabled||(E.isOpen=e,e?F=p.value:pe(),t.nextTick(()=>{W.value&&W.value.initOpenShow(e)}),he(e))},f=()=>{r.disabled||(p.value=[],r.multiple&&r.multipleRealTimeChange?U():pe())},C=e=>{if(E.dropDownPos=e.use.dropDownPos,r.multiple&&r.isShowTag){const i=G.value?.$el?.offsetWidth||0;E.tagHeight=r.theme==="default"?`${e.original.dropDownHeight+1}px`:`${e.original.dropDownHeight}px`;const u=e.original.winWidth-(e.original.controlOffset.left+e.original.dropDownWidth)>=i?"right":"left";E.tagDirection=u,u==="right"?E.tagLeft=`${e.original.dropDownWidth-1}px`:E.tagLeft=`${(e.original.dropDownWidth-e.original.textWidth+i+1)*-1}px`}},h=e=>{p.value=e,r.multiple?r.multipleRealTimeChange&&U():x.value?.setOpen(!1)},w=e=>{r.disabled||(p.value=e,U())},g=e=>{l("onError",e)},I=()=>{x.value&&(x.value.checkIsShowOpen()||x.value.initCompleteOpen())};t.provide("$SelectTop",{getSelectData:ue,getSelectValueInfo:K,getAllChildIds:ie,calculationDropdownPosition:()=>{x.value?.calculationPosition()},convertListToJson:J,closeDropdown:()=>{x.value?.setOpen(!1)},refreshDisplayLabels:()=>{fe()}});const L=()=>{const e=ae();return te(e).join(",")};return O({getValue:L,getValueData:()=>{const e=L();if(r.multiple){const u=e?e.split(","):[],m=[];return u.forEach(d=>{const y=K(d);n.CommonBase.isEmpty(y)||m.push(y)}),m}if(!e)return null;const i=K(e);return n.CommonBase.isEmpty(i)?null:i},setValue:e=>{q(e),ne()},runInitComplete:()=>{Ce()}}),(e,i)=>c.isPlaintext?(t.openBlock(),t.createElementBlock("div",{key:0,id:t.unref(V),class:t.normalizeClass(H.value)},t.toDisplayString(k.value),11,Ye)):(t.openBlock(),t.createBlock(Le._sfc_main,{key:1,id:t.unref(V),ref_key:"refElDropdownLayer",ref:x,classParent:$.value,classText:"select-inText",classDropDown:Y.value,placeholder:c.placeholder,isDisabled:c.disabled,isClear:c.isClear,textLabel:P.value.join(","),textArrowDirection:c.arrowDirection,transitionLeave:c.transitionLeave,appendContainer:c.appendContainer,appendFollowWidth:c.theme!=="noBorder",onOpenBeforeCallback:c.onOpenBefore,onOnChangeOpen:a,onOnClear:f,onOnChangePosition:C},{textExtend:t.withCtx(()=>[c.multiple?(t.openBlock(),t.createElementBlock("span",Ze,[P.value.length>1?(t.openBlock(),t.createBlock(Te._sfc_main,{key:0,num:P.value.length},null,8,["num"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))]),dropdown:t.withCtx(()=>[t.createVNode(We,{ref_key:"refElList",ref:W,isSearch:c.isSearch,searchPlaceholder:c.searchPlaceholder,searchKey:c.searchKey,searchKeyType:c.searchKeyType,isMultiple:c.multiple,isCheckBoxAll:c.isCheckBoxAll,showDropDownTextFormat:c.showDropDownTextFormat,showDropDownTextFormatSub:c.showDropDownTextFormatSub,isCascade:c.isCascade,parentSelectable:c.parentSelectable,parentKey:c.parentKey,topParentValue:c.topParentValue,originalData:c.list,keyIndex:_,selectId:p.value,disabled:c.disabled,isOpen:E.isOpen,serverCallback:c.serverCallback,onOnChange:h,onOnInitComplete:I,onOnError:g},null,8,["isSearch","searchPlaceholder","searchKey","searchKeyType","isMultiple","isCheckBoxAll","showDropDownTextFormat","showDropDownTextFormatSub","isCascade","parentSelectable","parentKey","topParentValue","originalData","selectId","disabled","isOpen","serverCallback"])]),dropdownExtend:t.withCtx(()=>[c.multiple&&c.isShowTag?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.value),style:t.normalizeStyle({height:E.tagHeight,left:E.tagLeft}),ref_key:"refElTags",ref:G},[t.createVNode(Qe,{showTextFormat:Q.value,selectId:p.value,onOnRemove:w},null,8,["showTextFormat","selectId"])],6)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))]),_:1},8,["id","classParent","classDropDown","placeholder","isDisabled","isClear","textLabel","textArrowDirection","transitionLeave","appendContainer","appendFollowWidth","onOpenBeforeCallback"]))}});exports._sfc_main=et;
1
+ "use strict";var Ee=Object.create;var ve=Object.defineProperty;var be=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var _e=(c,O,M,r)=>{if(O&&typeof O=="object"||typeof O=="function")for(let l of Ie(O))!xe.call(c,l)&&l!==M&&ve(c,l,{get:()=>O[l],enumerable:!(r=be(O,l))||r.enumerable});return c};var Se=(c,O,M)=>(M=c!=null?Ee(ke(c)):{},_e(O||!c||!c.__esModule?ve(M,"default",{value:c,enumerable:!0}):M,c));const t=require("vue"),j=require("./log-gqSePaMZ.js"),n=require("./base-DbuX_Y3x.js"),R=require("./index-rFJmbgyH.js"),Te=require("./Index.vue_vue_type_script_setup_true_lang-KKIG3pkE.js"),Le=require("./List.vue_vue_type_script_setup_true_lang-G2klceWn.js"),Ve=require("./Index.vue_vue_type_script_setup_true_lang-DfHi5Zuv.js"),Be=require("./One.vue_vue_type_script_setup_true_lang-D89MNwcx.js"),we=require("./language-CBZjQ9dC.js"),Me=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),Oe=require("./Index.vue_vue_type_script_setup_true_lang-D6yVZJvt.js");;/* empty css */const Fe=["id"],Pe={key:0,class:"select-inDropdown-search",role:"search","aria-label":"搜索选项"},Ae={key:2,class:"select-inDropdown-checkboxAll"},Ke=["aria-selected","aria-disabled","onClick"],Ne={class:"select-inDropdown-item-inner"},Re={key:0,class:"select-inDropdown-checkbox"},$e=["innerHTML"],qe={key:5,class:"select-inDropdown-body"},He={class:"select-inDropdown-empty"},ye=35,Je=210,je=20,We=t.defineComponent({name:"ClSelectInDropdown",__name:"Dropdown",props:{id:String,disabled:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||"},isMultiple:{type:Boolean,default:!1},isCheckBoxAll:{type:Boolean,default:!0},showDropDownTextFormat:String,showDropDownTextFormatSub:String,isCascade:{type:Boolean,default:!1},parentSelectable:{type:Boolean,default:!1},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},originalData:{type:Array,default:()=>[]},keyIndex:String,isOpen:{type:Boolean,default:!1},selectId:{type:Array,default:()=>[]},serverCallback:Function},emits:{onChange:c=>!0,onInitComplete:()=>!0,onError:c=>!0},setup(c,{expose:O,emit:M}){const r=t.defineAsyncComponent(()=>import("vue-virtual-scroller").then(o=>(Promise.resolve().then(()=>require("./vue-virtual-scroller-C_hlZMj5.js")),o.RecycleScroller))),l=c,x=M,{optPageLanguage:W,getPageLanguage:G}=we.useLanguage();G("common");const _=t.inject("$SelectTop",{}),V=typeof _.getSelectData=="function",E=t.useTemplateRef("refElSearch"),F=t.useTemplateRef("refElScroller"),b=t.useTemplateRef("refElRoot");let v=!0;const S={isScrollLoading:!1,hasMoreData:!0};let p=[],P=0,T=0;const X=l.id,Q=`select-inList-${l.keyIndex||""}`;let $=!1;const H=t.ref(""),k=t.ref([]),Y=t.ref([]);let Z={};const le=o=>{const s=o.id.toString();if(l.isMultiple&&l.isCascade&&o._hasChildren&&V){const f=_.getAllChildIds(s).filter(h=>!_.getSelectValueInfo(h)?.isDisabled);if(f.length===0)return 0;const C=f.filter(h=>n.CommonBase.isExistValue(l.selectId,h)).length;return C===0?0:C===f.length?2:1}return n.CommonBase.isExistValue(l.selectId,s)?2:0},se=o=>le(o)===2,me=o=>le(o)===1,he=t.computed(()=>{let o=!1;return Y.value.length>0&&l.selectId.length>=Y.value.length&&(o=n.CommonBase.isContainArr(l.selectId,Y.value)),o}),ae=o=>{if(!o||typeof o!="object")return"";let s=n.CommonBase.isNonEmptyString(l.showDropDownTextFormat)?l.showDropDownTextFormat:"";o._level>=1&&n.CommonBase.isNonEmptyString(l.showDropDownTextFormatSub)&&(s=l.showDropDownTextFormatSub);let a=n.CommonBase.isEmpty(s)?o.name:n.CommonBase.convertStringFormat(s,o);return n.CommonBase.isHtml(a)?n.CommonBase.isEmpty(s)&&n.CommonBase.isHtml(o.name)?a=n.CommonBase.encodeHTML(o.name):a=n.CommonBase.convertStringFormatEncodeHTML(s,o):typeof a=="string"&&a.indexOf("<")>-1&&(a=n.CommonBase.encodeHTML(a)),a},J=o=>{const s=Z[o]||{};if(n.CommonBase.isBoolean(s._isTypeRadio))return s._isTypeRadio;if(V){const a=_.getSelectValueInfo(o);if(n.CommonBase.isBoolean(a?._isTypeRadio))return a._isTypeRadio}return!1},ee=()=>{const o=[];Z=n.CommonBase.getJsonByList(k.value),k.value.forEach(s=>{if(!n.CommonBase.isObject(s))return;const a=typeof s.id;if(s.id==null||a!=="string"&&(a!=="number"||!n.CommonBase.isFinite(s.id)))return;const f=s.id.toString();if(!(l.isCascade&&s._hasChildren)&&!J(f)){if(n.CommonBase.isExistValue(o,f))return;s.isDisabled?n.CommonBase.isExistValue(l.selectId,f)&&o.push(f):o.push(f)}}),Y.value=o},z=o=>{const s=l.parentKey,a=l.topParentValue,f={};o.forEach(g=>{if(!n.CommonBase.isObject(g)||g.id==null||typeof g.id!="string"&&(typeof g.id!="number"||!n.CommonBase.isFinite(g.id)))return;const I=g[s],L=I!=null&&(typeof I=="string"||typeof I=="number")?I.toString():"";L!==""&&L!==String(a)&&(f[L]||(f[L]=[]),f[L].push(g))});const C=[],h=(g,I,L,B)=>{g.forEach(N=>{const oe=N.id.toString();if(B.has(oe))return;B.add(oe);const e=f[oe]||[];C.push({...N,_level:I,_parentName:L,_hasChildren:e.length>0}),e.length>0&&h(e,I+1,N.name,B)})},w=o.filter(g=>{if(!n.CommonBase.isObject(g)||g.id==null||typeof g.id!="string"&&(typeof g.id!="number"||!n.CommonBase.isFinite(g.id)))return!1;const I=g[s],L=I!=null&&(typeof I=="string"||typeof I=="number")?I.toString():"";return n.CommonBase.isEmpty(L)||L===String(a)});return h(w,0,"",new Set),C},ie=(o,s)=>{if(!V)return o;const a=o.filter(B=>B!=null&&B.id!=null&&(typeof B.id=="string"||typeof B.id=="number"&&n.CommonBase.isFinite(B.id))),f=s.filter(B=>B!=null&&B.id!=null&&(typeof B.id=="string"||typeof B.id=="number"&&n.CommonBase.isFinite(B.id))),C=l.parentKey,h=l.topParentValue,w=new Set,g=new Set(a.map(B=>B.id.toString()));a.forEach(B=>{const N=B.id.toString();w.add(N);const oe=new Set;let e=B[C];for(;e!=null&&(typeof e=="string"||typeof e=="number")&&e.toString()!==String(h);){const u=e.toString();if(oe.has(u))break;oe.add(u),g.has(u)||w.add(u),e=_.getSelectValueInfo(u)?.[C]}_.getAllChildIds(N).forEach(u=>{w.add(u)})});const I=f.filter(B=>w.has(B.id.toString())),L=new Set(I.map(B=>B.id.toString()));return w.forEach(B=>{if(!L.has(B)){const N=_.getSelectValueInfo(B);N&&Object.keys(N).length>0&&I.push(N)}}),I},ce=()=>{v&&(v=!1,S.hasMoreData=!0,l.isCascade?(p=[...l.originalData||[]],k.value=z(p)):k.value=n.CommonBase.getListClone(l.originalData).filter(o=>o!=null&&o.id!=null&&(typeof o.id=="string"||typeof o.id=="number"&&n.CommonBase.isFinite(o.id))),ee(),re(),H.value="",t.nextTick(()=>{E.value&&E.value.setValue("")}))},re=()=>{t.nextTick(()=>{if(F.value&&l.selectId.length>0){const o=k.value.findIndex(s=>s.id!=null&&n.CommonBase.isExistValue(l.selectId,s.id.toString()));o>-1&&F.value.scrollToItem(o)}})},te=o=>{const s=[],a=Z[o]||{},f=l.isCascade&&a._hasChildren;if(l.isMultiple)if(J(o))n.CommonBase.isExistValue(l.selectId,o)?l.selectId.forEach(C=>{C!==o&&s.push(C)}):(l.selectId.forEach(C=>{J(C)||s.push(C)}),s.push(o));else if(f&&V){const C=_.getAllChildIds(o),h=C.filter(g=>!_.getSelectValueInfo(g)?.isDisabled),w=h.length>0&&h.every(g=>n.CommonBase.isExistValue(l.selectId,g));l.selectId.forEach(g=>{C.includes(g)?C.includes(g)&&_.getSelectValueInfo(g)?.isDisabled&&s.push(g):s.push(g)}),w||h.forEach(g=>{n.CommonBase.isExistValue(s,g)||s.push(g)})}else l.selectId.forEach(C=>{C!==o&&s.push(C)}),n.CommonBase.isExistValue(l.selectId,o)||s.push(o);else{if(f&&!l.parentSelectable)return[...l.selectId];s.push(o)}return s},ne=o=>{const s=k.value;if(s.length===0)return;let a=-1;const f=H.value;f.length>0?(s.forEach((C,h)=>{C.id.toString()===f&&(a=h)}),a+=o,a<0?a=0:a>=s.length&&(a=s.length-1)):a=0,H.value=s[a].id.toString(),F.value&&F.value.scrollToItem(a)},q=o=>{let s=o.keyCode;if(!n.CommonBase.isUndefined(s))switch(s=s.toString(),s){case"13":{const a=b.value&&o.target instanceof Node&&b.value.contains(o.target);(o.target===document.body||a)&&(o.preventDefault(),o.stopPropagation());break}case"38":o.preventDefault(),o.stopPropagation(),ne(-1);break;case"40":o.preventDefault(),o.stopPropagation(),ne(1);break}},K=o=>{let s=o.keyCode;if(!n.CommonBase.isUndefined(s))switch(s=s.toString(),s){case"27":V&&_.closeDropdown?.();break;case"13":{const a=H.value;if(!a||l.disabled||!l.isOpen)break;const f=b.value&&o.target instanceof Node&&b.value.contains(o.target);if(o.target!==document.body&&!f||!k.value.some(w=>w.id.toString()===a)||Z[a]?.isDisabled)break;const h=te(a);x("onChange",h);break}}},ue=o=>o.map(s=>{const{_level:a,_parentName:f,_hasChildren:C,...h}=s;return h}),de=async()=>{if(l.serverCallback&&!(S.isScrollLoading||!S.hasMoreData)&&(S.isScrollLoading=!0,l.serverCallback)){const o=++T,s=k.value;try{const a={offset:s.length};if(l.isSearch&&E.value){const w=E.value.getValue();n.CommonBase.isEmpty(w)||(a.search=w)}const f=await l.serverCallback(a);if(o!==T||s!==k.value)return;if(!Array.isArray(f)){j.clLog.error("ClSelect","_loadMore 服务端返回数据格式异常(非数组):",typeof f),x("onError","服务端加载失败:返回数据格式异常");return}if(f.length===0){S.hasMoreData=!1;return}const C=new Set(s.map(w=>w?.id?.toString()).filter(Boolean)),h=f.filter(w=>{if(w?.id==null)return!1;const g=typeof w.id;return g!=="string"&&(g!=="number"||!n.CommonBase.isFinite(w.id))?!1:!C.has(w.id.toString())});if(h.length===0){S.hasMoreData=!1;return}l.isCascade?a.search?k.value=z([...k.value,...h]):(p.length===0&&(p=ue(k.value)),p.length===0&&(p=[...l.originalData]),p.push(...h),k.value=z(p)):k.value.push(...h),ee(),V&&(_.convertListToJson(h),_.refreshDisplayLabels?.())}catch(a){j.clLog.error("ClSelect","_loadMore 服务端加载失败:",a),x("onError","服务端加载失败,请稍后重试")}finally{S.isScrollLoading=!1}}},ge=()=>{ce(),x("onInitComplete")};t.onMounted(()=>{ge()}),t.onBeforeUnmount(()=>{R.CommonElement.offListener(window,"keydown",q),R.CommonElement.offListener(window,"keyup",K),$=!1}),t.onDeactivated(()=>{R.CommonElement.offListener(window,"keydown",q),R.CommonElement.offListener(window,"keyup",K),$=!1}),t.onActivated(()=>{l.isOpen&&!$&&(R.CommonElement.onListener(window,"keydown",q),R.CommonElement.onListener(window,"keyup",K),$=!0)}),t.watch(()=>l.isOpen,o=>{o?(v=!0,ce()):S.isScrollLoading=!1}),t.watch(()=>l.originalData,o=>{v=!0,l.isCascade?(p=[...o||[]],k.value=z(p)):k.value=n.CommonBase.getListClone(o).filter(s=>s!=null&&s.id!=null&&(typeof s.id=="string"||typeof s.id=="number"&&n.CommonBase.isFinite(s.id))),ee(),S.hasMoreData=!0,H.value="",t.nextTick(()=>{E.value&&E.value.setValue("")})});const fe=async o=>{const s=++P;T=Math.max(T,s+1);let a=[];if(l.isCascade&&(p=[]),S.hasMoreData=!0,l.serverCallback){try{if(a=await l.serverCallback({search:o,offset:0}),Array.isArray(a)||(j.clLog.error("ClSelect","onSearch 服务端返回数据格式异常(非数组):",typeof a),x("onError","服务端搜索失败:返回数据格式异常"),a=[]),s!==P)return;V&&_.convertListToJson(a)}catch(f){j.clLog.error("ClSelect","onSearch 服务端搜索失败:",f),x("onError","服务端搜索失败,请稍后重试"),a=[]}if(s!==P)return;l.isCascade&&(a=ie(a,l.originalData),a=z(a))}else{const f=l.originalData.filter(C=>C!=null&&C.id!=null&&(typeof C.id=="string"||typeof C.id=="number"&&n.CommonBase.isFinite(C.id)));if(n.CommonBase.isEmpty(o))a=f;else{l.searchKeyType!=="||"&&l.searchKeyType!=="&&"&&j.clLog.warn("ClSelect","onSearch searchKeyType 未知值,已降级为 OR 匹配:",l.searchKeyType);const C=o.toLowerCase(),h=n.CommonBase.isArray(l.searchKey)?l.searchKey:["name"],w=h.length;f.forEach(g=>{const I=[];for(let L=0;L<w;L++){const B=g[h[L]];if(B==null)continue;String(B).toLowerCase().indexOf(C)>-1&&I.push(!0)}if(I.length>0)switch(l.searchKeyType){case"||":a.push(g);break;case"&&":I.length===w&&a.push(g);break;default:a.push(g)}})}l.isCascade&&(n.CommonBase.isEmpty(o)||(a=ie(a,l.originalData)),a=z(a))}k.value=a.filter(f=>f!=null&&f.id!=null&&(typeof f.id=="string"||typeof f.id=="number"&&n.CommonBase.isFinite(f.id))),ee(),H.value="",V&&_.calculationDropdownPosition()},U=o=>{if(!l.disabled&&l.isMultiple){const s=[],a=[];Y.value.forEach(h=>{o.value?n.CommonBase.isExistValue(l.selectId,h)||s.push(h):n.CommonBase.isExistValue(l.selectId,h)&&(Z[h]?.isDisabled||a.push(h))});const f=n.CommonBase.getArrClone(l.selectId);a.length>0&&a.forEach(h=>{const w=f.indexOf(h);w>-1&&f.splice(w,1)}),s.length>0&&s.forEach(h=>{n.CommonBase.isExistValue(f,h)||f.push(h)});const C=[];f.forEach(h=>{(!J(h)||n.CommonBase.isExistValue(l.selectId,h))&&C.push(h)}),x("onChange",C)}},pe=o=>{if(o.id==null||typeof o.id!="string"&&(typeof o.id!="number"||!n.CommonBase.isFinite(o.id))||o.isDisabled||l.disabled)return;const s=o.id.toString(),a=te(s);x("onChange",a)};return O({initOpenShow:o=>{o?$||(R.CommonElement.onListener(window,"keydown",q),R.CommonElement.onListener(window,"keyup",K),$=!0):$&&(R.CommonElement.offListener(window,"keydown",q),R.CommonElement.offListener(window,"keyup",K),$=!1)}}),(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:"select-inDropdown-container",id:t.unref(X),ref_key:"refElRoot",ref:b},[c.isSearch?(t.openBlock(),t.createElementBlock("div",Pe,[t.createVNode(Ve._sfc_main,{ref_key:"refElSearch",ref:E,placeholder:c.searchPlaceholder,disabled:c.disabled,onOnChange:fe},null,8,["placeholder","disabled"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)),c.isMultiple&&c.isCheckBoxAll&&k.value.length>0?(t.openBlock(),t.createElementBlock("div",Ae,[t.createVNode(Be._sfc_main,{forId:`${Q}-cb-all`,label:t.unref(W).checkboxAll,value:he.value,disabled:c.disabled,onOnChange:U},null,8,["forId","label","value","disabled"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[],64)),k.value.length>0?(t.openBlock(),t.createBlock(t.unref(r),{key:4,class:"select-inDropdown-body select-inDropdown-scroller",role:"listbox",style:t.normalizeStyle({height:Math.min(k.value.length*ye,Je)+"px"}),items:k.value,"item-size":ye,"key-field":"id",ref_key:"refElScroller",ref:F,onScrollEnd:de},{default:t.withCtx(({item:a})=>[t.createElementVNode("div",{role:"option","aria-selected":se(a),"aria-disabled":a.isDisabled||!1,class:t.normalizeClass({"option-selected":se(a),"option-disabled":a.isDisabled,"option-hoverKeydown":H.value===a.id.toString(),"select-inDropdown-item-child":a._level>=1}),style:t.normalizeStyle({height:ye+"px",paddingLeft:a._level?a._level*je+"px":void 0}),onClick:f=>pe(a)},[t.createElementVNode("div",Ne,[c.isMultiple?(t.openBlock(),t.createElementBlock("div",Re,[t.createVNode(Be._sfc_main,{name:`${Q}-cb`,forId:`${Q}-cb-${a.id}`,value:se(a),indeterminate:me(a),disabled:a.isDisabled},null,8,["name","forId","value","indeterminate","disabled"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)),t.createElementVNode("div",{class:"select-inDropdown-title",innerHTML:ae(a)},null,8,$e)])],14,Ke)]),_:1},8,["style","items"])):(t.openBlock(),t.createElementBlock("div",qe,[t.createElementVNode("div",He,t.toDisplayString(t.unref(W).noResultsText),1)]))],8,Fe))}}),ze=["id"],Ue={class:"select-inTag-title"},Ge={class:"select-inTag-operate"},Xe={class:"select-inTag-body"},Qe=t.defineComponent({name:"ClSelectInTags",__name:"Tags",props:{id:String,showTextFormat:String,selectId:{type:Array,default:()=>[]}},emits:{onRemove:c=>!0},setup(c,{emit:O}){const M=c,r=O,l=M.id,{optPageLanguage:x,getPageLanguage:W}=we.useLanguage();W("common");const G=t.inject("$SelectTop",{}),_=typeof G.getSelectData=="function",V=t.computed(()=>_?n.CommonBase.isArray(M.selectId)?G.getSelectData(M.selectId):[]:[]),E=t.computed(()=>_?V.value.length:0),F=t.computed(()=>n.CommonBase.isArray(V.value)?V.value.some(S=>n.CommonBase.isObject(S)?!(n.CommonBase.isBoolean(S.isDisabled)&&S.isDisabled):!1):!1),b=()=>{const S=V.value;if(!n.CommonBase.isArray(S))return;const p=[];let P=!1;S.forEach(T=>{if(!n.CommonBase.isObject(T))return;(n.CommonBase.isBoolean(T.isDisabled)?!!T.isDisabled:!1)?(typeof T.id=="string"&&!n.CommonBase.isEmpty(T.id)||typeof T.id=="number"&&n.CommonBase.isFinite(T.id))&&p.push(T.id.toString()):P=!0}),P&&r("onRemove",p)},v=S=>{if(!n.CommonBase.isArray(M.selectId)||n.CommonBase.isEmpty(S))return;const p=String(S),P=M.selectId.findIndex(X=>String(X)===p);if(P===-1)return;const T=n.CommonBase.getArrClone(M.selectId);T.splice(P,1),r("onRemove",T)};return(S,p)=>(t.openBlock(),t.createElementBlock("div",{class:"select-inTag-container",id:t.unref(l)},[t.createElementVNode("div",Ue,[t.createElementVNode("span",null,t.toDisplayString(t.unref(x).selected)+" "+t.toDisplayString(E.value)+" "+t.toDisplayString(t.unref(x).count),1),t.createElementVNode("span",Ge,[F.value?(t.openBlock(),t.createBlock(Me._sfc_main,{key:0,class:"select-inTag-deleteAll",name:"remove",title:t.unref(x).deleteAll,"aria-label":t.unref(x).deleteAll,onClick:b},null,8,["title","aria-label"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))])]),t.createElementVNode("div",Xe,[t.createVNode(Oe._sfc_main,{showTextFormat:c.showTextFormat,list:V.value,onOnRemove:v},null,8,["showTextFormat","list"])])],8,ze))}}),Ye=["id"],Ze={key:0,class:"select-inText-num"},et=t.defineComponent({name:"ClSelect",__name:"Index",props:{id:String,value:[String,Number],className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},placeholder:String,classDropDown:String,theme:{type:String,default:"default",validator:c=>["default","noBorder"].includes(c)},multiple:{type:Boolean,default:!1},isClear:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1},isCheckBoxAll:{type:Boolean,default:!0},isShowTag:{type:Boolean,default:!0},arrowDirection:{type:String,default:"right",validator:c=>["left","right"].includes(c)},transitionLeave:{type:String,default:"zoomOutTop"},searchPlaceholder:String,searchKey:{type:Array,default:()=>["name"]},searchKeyType:{type:String,default:"||",validator:c=>["||","&&"].includes(c)},showTextFormat:String,showDropDownTextFormat:String,multipleRealTimeChange:{type:Boolean,default:!1},isCascade:{type:Boolean,default:!1},parentSelectable:{type:Boolean,default:!1},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},showDropDownTextFormatSub:String,isOutMerge:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","},plaintextLevelSeparator:{type:String,default:" > "},onOpenBefore:Function,serverCallback:Function,appendContainer:{type:String,default:""}},emits:{"update:value":c=>!0,"update:modelValue":c=>!0,onChange:(c,O)=>!0,onInit:()=>!0,onOpen:c=>!0,onError:c=>!0},setup(c,{expose:O,emit:M}){const r=c,l=M,x=t.useTemplateRef("refElDropdownLayer"),W=t.useTemplateRef("refElList"),G=t.useTemplateRef("refElTags"),_=`select-${n.CommonBase.getRandom(8)}`,V=r.id,E=t.reactive({isOpen:!1,dropDownPos:"down",tagHeight:"",tagLeft:"",tagDirection:"right"});let F=[],b={};const v={childrenMap:{},parentMap:{},lastChildMap:{},allChildMap:{}},S=t.ref(!1),p=t.ref([]),P=t.ref([]),T=t.ref([]);let X=!1;const Q=t.computed(()=>n.CommonBase.isNonEmptyString(r.showTextFormat)?r.showTextFormat:r.isCascade?"${name}(${parentName})":""),$=t.computed(()=>{let e={"panel-select":!0};return r.theme==="noBorder"&&(e["select-theme-noBorder"]=!0),e=n.CommonBase.getJsonMerge(e,R.CommonElement.getClassNameJson(r.className)),n.CommonBase.getStringByJson(e," ")}),H=t.computed(()=>`${$.value} cl-plaintext-value`),k=t.computed(()=>{const e=n.CommonBase.isString(r.plaintextSeparator)?r.plaintextSeparator:",";return T.value.join(e)}),Y=t.computed(()=>{let e={"select-inDropdown":!0};return r.theme==="noBorder"&&(e["select-inDropdown-noBorder"]=!0),E.isOpen&&r.multiple&&r.isShowTag&&(e["select-inTag-ext"]=!0,e[`select-inTag-${E.tagDirection}`]=!0),e=n.CommonBase.getJsonMerge(e,R.CommonElement.getClassNameJson(r.classDropDown)),n.CommonBase.getStringByJson(e," ")}),Z=t.computed(()=>{const e={"select-inTag":!0,"select-inTag-open":E.isOpen};return e[`select-inTag-${E.dropDownPos}`]=!0,e[`select-inTag-${E.tagDirection}`]=!0,e}),le=e=>{l("update:value",e),l("update:modelValue",e)},se=(e,i)=>{le(e),l("onChange",e,i)},me=()=>{X||(X=!0,t.nextTick(()=>{l("onInit")}))},he=e=>{t.nextTick(()=>{l("onOpen",e)})},ae=()=>{const e=[];return p.value.forEach(i=>{n.CommonBase.isExistJsonKey(b,i)&&e.push(i)}),e},J=e=>{if(n.CommonBase.isEmpty(e)||!n.CommonBase.isArray(e))return;const i={},u=r.parentKey,m=r.topParentValue;if(e.forEach(d=>{if(!n.CommonBase.isObject(d)){j.clLog.warn("ClSelect","_convertListToJson 跳过非对象数据项:",d);return}if(!(typeof d.id=="string"||typeof d.id=="number"&&n.CommonBase.isFinite(d.id))){j.clLog.warn("ClSelect","_convertListToJson 跳过无 id 或 id 类型异常的数据项:",d);return}const D=d.id.toString();i[D]=n.CommonBase.getJsonClone(d)}),b=n.CommonBase.getJsonMerge(b,i),r.serverCallback&&!S.value&&!n.CommonBase.isEmpty(i)&&(S.value=!0,r.value!=null&&r.value!==""&&(q(r.value),ne())),r.isCascade&&Object.keys(b).forEach(d=>{const y=b[d][u],D=y!=null&&(typeof y=="string"||typeof y=="number")?y.toString():"";if(D!==""&&D!==String(m)){const A=b[D];A?.name&&(b[d].parentName=A.name)}}),r.isCascade&&(ee(),r.isOutMerge&&r.multiple&&p.value.length>0)){const d=re(p.value);n.CommonBase.isEqualArr(p.value,d)||(p.value=d,F=d)}if(r.multiple&&p.value.length>1){const d=p.value.filter(y=>{const D=b[y];return n.CommonBase.isBoolean(D?._isTypeRadio)&&D._isTypeRadio});if(d.length>1){const y=d[d.length-1],D=p.value.filter(A=>A===y||!d.includes(A));n.CommonBase.isEqualArr(p.value,D)||(p.value=D,U())}}p.value.length>0&&(p.value=[...p.value])},ee=()=>{const e=r.parentKey,i=r.topParentValue;v.childrenMap={},v.parentMap={},v.lastChildMap={},v.allChildMap={},Object.keys(b).forEach(m=>{const y=b[m][e],D=y!=null&&(typeof y=="string"||typeof y=="number")?y.toString():"";D!==""&&D!==String(i)&&(v.parentMap[m]=D,v.childrenMap[D]||(v.childrenMap[D]=[]),v.childrenMap[D].push(m))})},z=e=>{const i=(u,m)=>{if(v.lastChildMap[u])return v.lastChildMap[u];if(m.has(u))return[];m.add(u);const d=v.childrenMap[u];if(!d||d.length===0)return v.lastChildMap[u]=[u],[u];const y=[];return d.forEach(D=>{y.push(...i(D,new Set(m)))}),v.lastChildMap[u]=y,y};return i(e,new Set)},ie=e=>{const i=(u,m)=>{if(v.allChildMap[u])return v.allChildMap[u];if(m.has(u))return[];m.add(u);const d=v.childrenMap[u];if(!d||d.length===0)return v.allChildMap[u]=[],[];const y=[];d.forEach(A=>{y.push(A),y.push(...i(A,new Set(m)))});const D=Array.from(new Set(y));return v.allChildMap[u]=D,D};return i(e,new Set)},ce=e=>{if(e.length===0)return[];const i=new Set(e),u=new Set,m=new Set;for(const d of i){const y=v.parentMap[d];y&&!m.has(y)&&u.add(y)}for(;u.size>0;){const d=u.values().next().value;if(u.delete(d),m.has(d))continue;m.add(d);const y=v.childrenMap[d];if(!y||y.length===0)continue;let D=!0;for(const A of y)if(!i.has(A)){D=!1;break}if(D){for(const De of y)i.delete(De);i.add(d);const A=v.parentMap[d];A&&!m.has(A)&&u.add(A)}}return[...i]},re=e=>{if(e.length===0)return[];const i=[];return e.forEach(u=>{i.push(...z(u))}),n.CommonBase.getArrUnique(i)},te=e=>!r.isCascade||!r.multiple?e:r.isOutMerge?ce(e):re(e),ne=()=>{if(S.value&&!n.CommonBase.isEmpty(p.value)){if(n.CommonBase.isEmpty(b)||r.serverCallback)return;const e=ae();if(!n.CommonBase.isEqualArr(p.value,e)){const i=p.value.filter(m=>!e.includes(m));i.length>0&&j.clLog.warn("ClSelect","以下 id 在数据列表中不存在,已自动清除:",i),p.value=e,F=e;const u=te(e);le(u.join(","))}}},q=e=>{if(e!=null&&typeof e!="string"&&(typeof e!="number"||!n.CommonBase.isFinite(e))){j.clLog.warn("ClSelect","setValue 收到非预期类型值:",typeof e,e);return}let i=e==null||e===""?[]:e.toString().split(",").filter(m=>m!=="");i=n.CommonBase.getArrUnique(i),r.isCascade&&r.isOutMerge&&i.length>0&&r.multiple&&(i=re(i));let u=n.CommonBase.isEqualArr(p.value,i);u&&(u=i.join(",")===p.value.join(",")),u||(F=i,p.value=i)},K=e=>n.CommonBase.isExistJsonKey(b,e)?n.CommonBase.getJsonClone(b[e]):{},ue=e=>{const i=n.CommonBase.isArray(e)?e:p.value,u=[];return i.forEach(m=>{const d=K(m);n.CommonBase.isEmpty(d)||u.push(d)}),u},de=e=>{const u=r.isCascade&&!r.multiple&&(v.childrenMap[e.id?.toString()]?.length>0||!v.parentMap[e.id?.toString()])&&n.CommonBase.isEmpty(r.showTextFormat)?"":Q.value;let m=n.CommonBase.isEmpty(u)?e.name??"":n.CommonBase.convertStringFormat(u,e);return n.CommonBase.isHtml(m)?m=n.CommonBase.isEmpty(u)?n.CommonBase.encodeHTML(e.name):n.CommonBase.convertStringFormatEncodeHTML(u,e):typeof m=="string"&&m.indexOf("<")>-1&&(m=n.CommonBase.encodeHTML(m)),m},ge=e=>{if(n.CommonBase.isNonEmptyString(r.showTextFormat))return n.CommonBase.removeHTMLTags(de(e));const i=n.CommonBase.isString(r.plaintextLevelSeparator)?r.plaintextLevelSeparator:" > ",u=n.CommonBase.isString(e?.name)?e.name:"",m=n.CommonBase.isString(e?.parentName)?e.parentName:"",d=r.isCascade&&n.CommonBase.isNonEmptyString(m)?`${m}${i}${u}`:u;return n.CommonBase.removeHTMLTags(d)},fe=()=>{const e=ue();P.value=e.map(i=>de(i)),T.value=e.map(i=>ge(i))},U=()=>{const e=ae();F=e,p.value=e;const i=te(e),u=i.join(",");let m;if(r.multiple){const d=[];i.forEach(y=>{const D=K(y);n.CommonBase.isEmpty(D)||d.push(D)}),m=d}else m=K(u),n.CommonBase.isEmpty(m)&&(m=null);se(u,m)},pe=()=>{E.isOpen||!n.CommonBase.isEqualArr(p.value,F)&&U()},Ce=()=>{S.value||(S.value=!0,J(r.list),q(r.value),ne())},o=()=>{!S.value&&r.list&&r.list.length>0&&Ce()},s=()=>{import("vue-virtual-scroller").then(()=>{Promise.resolve().then(()=>require("./vue-virtual-scroller-C_hlZMj5.js"))})};t.onMounted(()=>{r.isPlaintext||s(),t.nextTick(()=>{o()})}),t.watch(S,e=>{e&&me()}),t.watch(()=>r.list,(e,i)=>{S.value||(e&&e.length>0||i===void 0)&&(S.value=!0)}),t.watch([()=>r.value,()=>r.list],([e,i],[u,m])=>{const d=i||[];!S.value&&d.length>0&&(S.value=!0),i!==m&&(b={},v.childrenMap={},v.parentMap={},v.lastChildMap={},v.allChildMap={}),J(d),e!==void 0&&q(e),ne()}),t.watch([p,()=>r.list],([e,i])=>{i&&i.length>0&&n.CommonBase.isEmpty(b)&&J(i),fe()}),t.watch(()=>r.isOutMerge,()=>{r.isCascade&&r.multiple&&p.value.length>0&&te(ae()).join(",")!==String(r.value??"")&&U()}),t.watch([()=>r.parentKey,()=>r.topParentValue],()=>{r.isCascade&&!n.CommonBase.isEmpty(b)&&ee()});const a=e=>{e&&r.disabled||(E.isOpen=e,e?F=p.value:pe(),t.nextTick(()=>{W.value&&W.value.initOpenShow(e)}),he(e))},f=()=>{r.disabled||(p.value=[],r.multiple&&r.multipleRealTimeChange?U():pe())},C=e=>{if(E.dropDownPos=e.use.dropDownPos,r.multiple&&r.isShowTag){const i=G.value?.$el?.offsetWidth||0;E.tagHeight=r.theme==="default"?`${e.original.dropDownHeight+1}px`:`${e.original.dropDownHeight}px`;const u=e.original.winWidth-(e.original.controlOffset.left+e.original.dropDownWidth)>=i?"right":"left";E.tagDirection=u,u==="right"?E.tagLeft=`${e.original.dropDownWidth-1}px`:E.tagLeft=`${(e.original.dropDownWidth-e.original.textWidth+i+1)*-1}px`}},h=e=>{p.value=e,r.multiple?r.multipleRealTimeChange&&U():x.value?.setOpen(!1)},w=e=>{r.disabled||(p.value=e,U())},g=e=>{l("onError",e)},I=()=>{x.value&&(x.value.checkIsShowOpen()||x.value.initCompleteOpen())};t.provide("$SelectTop",{getSelectData:ue,getSelectValueInfo:K,getAllChildIds:ie,calculationDropdownPosition:()=>{x.value?.calculationPosition()},convertListToJson:J,closeDropdown:()=>{x.value?.setOpen(!1)},refreshDisplayLabels:()=>{fe()}});const L=()=>{const e=ae();return te(e).join(",")};return O({getValue:L,getValueData:()=>{const e=L();if(r.multiple){const u=e?e.split(","):[],m=[];return u.forEach(d=>{const y=K(d);n.CommonBase.isEmpty(y)||m.push(y)}),m}if(!e)return null;const i=K(e);return n.CommonBase.isEmpty(i)?null:i},setValue:e=>{q(e),ne()},runInitComplete:()=>{Ce()}}),(e,i)=>c.isPlaintext?(t.openBlock(),t.createElementBlock("div",{key:0,id:t.unref(V),class:t.normalizeClass(H.value)},t.toDisplayString(k.value),11,Ye)):(t.openBlock(),t.createBlock(Le._sfc_main,{key:1,id:t.unref(V),ref_key:"refElDropdownLayer",ref:x,classParent:$.value,classText:"select-inText",classDropDown:Y.value,placeholder:c.placeholder,isDisabled:c.disabled,isClear:c.isClear,textLabel:P.value.join(","),textArrowDirection:c.arrowDirection,transitionLeave:c.transitionLeave,appendContainer:c.appendContainer,appendFollowWidth:c.theme!=="noBorder",onOpenBeforeCallback:c.onOpenBefore,onOnChangeOpen:a,onOnClear:f,onOnChangePosition:C},{textExtend:t.withCtx(()=>[c.multiple?(t.openBlock(),t.createElementBlock("span",Ze,[P.value.length>1?(t.openBlock(),t.createBlock(Te._sfc_main,{key:0,num:P.value.length},null,8,["num"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))]),dropdown:t.withCtx(()=>[t.createVNode(We,{ref_key:"refElList",ref:W,isSearch:c.isSearch,searchPlaceholder:c.searchPlaceholder,searchKey:c.searchKey,searchKeyType:c.searchKeyType,isMultiple:c.multiple,isCheckBoxAll:c.isCheckBoxAll,showDropDownTextFormat:c.showDropDownTextFormat,showDropDownTextFormatSub:c.showDropDownTextFormatSub,isCascade:c.isCascade,parentSelectable:c.parentSelectable,parentKey:c.parentKey,topParentValue:c.topParentValue,originalData:c.list,keyIndex:_,selectId:p.value,disabled:c.disabled,isOpen:E.isOpen,serverCallback:c.serverCallback,onOnChange:h,onOnInitComplete:I,onOnError:g},null,8,["isSearch","searchPlaceholder","searchKey","searchKeyType","isMultiple","isCheckBoxAll","showDropDownTextFormat","showDropDownTextFormatSub","isCascade","parentSelectable","parentKey","topParentValue","originalData","selectId","disabled","isOpen","serverCallback"])]),dropdownExtend:t.withCtx(()=>[c.multiple&&c.isShowTag?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(Z.value),style:t.normalizeStyle({height:E.tagHeight,left:E.tagLeft}),ref_key:"refElTags",ref:G},[t.createVNode(Qe,{showTextFormat:Q.value,selectId:p.value,onOnRemove:w},null,8,["showTextFormat","selectId"])],6)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))]),_:1},8,["id","classParent","classDropDown","placeholder","isDisabled","isClear","textLabel","textArrowDirection","transitionLeave","appendContainer","appendFollowWidth","onOpenBeforeCallback"]))}});exports._sfc_main=et;
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as Ee, inject as Ve, computed as de, reactive as ve, ref as Re, onMounted as Be, nextTick as ge, watch as oe, openBlock as S, createElementBlock as C, unref as ce, normalizeClass as re, createElementVNode as B, createVNode as me, Fragment as z, toDisplayString as be, renderList as Ie, withKeys as Se, withModifiers as Ce, normalizeStyle as Le, withDirectives as ze, vShow as We, provide as Fe, createBlock as Pe, useTemplateRef as Je, readonly as qe, withCtx as Ke } from "vue";
2
- import { c as Me } from "./log-BbLqiWNM.js";
2
+ import { c as Me } from "./log-CSNil8va.js";
3
3
  import J from "dayjs";
4
4
  import { C as o } from "./base-fr2I80sU.js";
5
5
  import { C as $e } from "./index-B477PjJ3.js";
6
- import { _ as Ge } from "./List.vue_vue_type_script_setup_true_lang-BLgui2Zv.js";
7
- import { _ as _e } from "./Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js";
8
- import { a as Ne } from "./language-pMmux6Js.js";
9
- import { _ as Qe } from "./Index.vue_vue_type_script_setup_true_lang-B0NaQAuE.js";
6
+ import { _ as Ge } from "./List.vue_vue_type_script_setup_true_lang-0EtOdp73.js";
7
+ import { _ as _e } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
8
+ import { a as Ne } from "./language-BaLIp7bA.js";
9
+ import { _ as Qe } from "./Index.vue_vue_type_script_setup_true_lang-bYE_Eer4.js";
10
10
  import { C as He } from "./day-B3hhmAm_.js";
11
- import { _ as Ue } from "./Index.vue_vue_type_script_setup_true_lang-BTikeo7T.js";
11
+ import { _ as Ue } from "./Index.vue_vue_type_script_setup_true_lang-B4wLYUS7.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  const Xe = ["id"], et = { class: "table-base" }, tt = {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as Pe, defineAsyncComponent as Re, inject as Fe, useTemplateRef as pe, ref as re, computed as j, onMounted as Be, onBeforeUnmount as He, onDeactivated as Ne, onActivated as Je, watch as Q, nextTick as ce, openBlock as _, createElementBlock as O, unref as H, createVNode as he, Fragment as de, createBlock as Ee, normalizeStyle as Ve, withCtx as xe, createElementVNode as Y, normalizeClass as Oe, toDisplayString as ve, reactive as je, provide as qe } from "vue";
2
- import { c as U } from "./log-BbLqiWNM.js";
2
+ import { c as U } from "./log-CSNil8va.js";
3
3
  import { C as t } from "./base-fr2I80sU.js";
4
4
  import { C as $ } from "./index-B477PjJ3.js";
5
- import { _ as We } from "./Index.vue_vue_type_script_setup_true_lang-BsE_zUs_.js";
6
- import { _ as Ue } from "./List.vue_vue_type_script_setup_true_lang-BLgui2Zv.js";
7
- import { _ as ze } from "./Index.vue_vue_type_script_setup_true_lang-D53FO2PF.js";
8
- import { _ as Ae } from "./One.vue_vue_type_script_setup_true_lang-Du9X7x9H.js";
9
- import { a as Ke } from "./language-pMmux6Js.js";
10
- import { _ as Ge } from "./Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js";
11
- import { _ as Xe } from "./Index.vue_vue_type_script_setup_true_lang-BLoX4k7J.js";
5
+ import { _ as We } from "./Index.vue_vue_type_script_setup_true_lang-vm_cblnn.js";
6
+ import { _ as Ue } from "./List.vue_vue_type_script_setup_true_lang-0EtOdp73.js";
7
+ import { _ as ze } from "./Index.vue_vue_type_script_setup_true_lang-BPu2Wq9y.js";
8
+ import { _ as Ae } from "./One.vue_vue_type_script_setup_true_lang-CREhY2it.js";
9
+ import { a as Ke } from "./language-BaLIp7bA.js";
10
+ import { _ as Ge } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
11
+ import { _ as Xe } from "./Index.vue_vue_type_script_setup_true_lang-CumsUcci.js";
12
12
  /* empty css */
13
13
  const Qe = ["id"], Ye = {
14
14
  key: 0,
@@ -1 +1 @@
1
- "use strict";const o=require("vue"),l=require("./base-DbuX_Y3x.js"),A=require("./index-rFJmbgyH.js"),W=require("./language-Q4AGYtUe.js"),H=require("./Validate.vue_vue_type_script_setup_true_lang-DyOZ5QGN.js"),Q=require("./Index.vue_vue_type_script_setup_true_lang-SE1_-Y3D.js");;/* empty css */const X=["id"],Y=["id"],Z=o.defineComponent({name:"ClSelectCascade",__name:"Index",props:{id:String,value:[String,Number],className:{type:String,default:""},disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},placeholder:String,isClear:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},width:String,isCheckValidate:{type:Boolean,default:!1},validateRules:{type:Array,default:()=>[{r:"required"}]},isShowInMsg:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1},plaintextLevelSeparator:{type:String,default:" > "}},emits:{"update:value":m=>!0,"update:modelValue":m=>!0,onChange:m=>!0},setup(m,{expose:w,emit:L}){const c=m,S=L,{optPageLanguage:D,getPageLanguage:N}=W.useLanguage();N("common");const x=`selectCascade-${l.CommonBase.getRandom(5)}`,E=c.id,u=o.reactive({lastValue:c.value,isFirstDataFinish:!1}),g=o.ref([]),d={dataJson:{},dataGroup:{},parentIdsJson:{}},V=o.ref(0),I=o.computed(()=>D.value.pleaseSelect),F=o.computed(()=>{const{placeholder:e}=c;return l.CommonBase.isNonEmptyString(e)?e.split("|"):[]}),K=o.computed(()=>{const{width:e}=c;return l.CommonBase.isNonEmptyString(e)?e.split("|"):[]}),q=o.computed(()=>{let e={"panel-select-cascade":!0};return e=l.CommonBase.getJsonMerge(e,A.CommonElement.getClassNameJson(c.className)),e}),b=e=>{e!==u.lastValue&&(u.lastValue=e,S("update:value",e),S("update:modelValue",e),S("onChange",e))},k=e=>l.CommonBase.isExistJsonKey(d.dataGroup,e),M=e=>k(e)?d.dataGroup[e]:[],B=e=>l.CommonBase.isExistJsonKey(d.dataJson,e)?d.dataJson[e]:null,v=()=>`top_${c.topParentValue}`,J=e=>{const{parentKey:t,topParentValue:s}=c,a={},n={};l.CommonBase.isEmpty(e)||e.forEach(r=>{const i=l.CommonBase.getJsonClone(r);if(l.CommonBase.isEmpty(i?.id)||l.CommonBase.isEmpty(i?.[t]))return;const f=i.id.toString(),p=i[t].toString();a[f]=i;const h=p===s.toString()?v():p;l.CommonBase.isExistJsonKey(n,h)||(n[h]=[]),n[h].push(i)}),d.dataJson=a,d.dataGroup=n,V.value+=1},y=(e,t)=>{const s={idx:e,pId:t,placeholder:I.value,list:[],sty:{},selected:""};if(!l.CommonBase.isEmpty(t)){const i=M(t);s.list=l.CommonBase.getListClone(i)}const a=F.value,n=a.length;n>0&&(n>e?s.placeholder=l.CommonBase.isEmpty(a[e])?I.value:a[e]:n===1&&(s.placeholder=a[0]));const r=K.value;return r.length>e&&(l.CommonBase.isEmpty(r[e])||(s.sty.width=r[e],s.sty.flex="none")),s},_=(e,t)=>{const{parentKey:s,topParentValue:a}=c;let n=[];if(t&&t.indexOf(e)>-1)return[];const r=t?t.concat([e]):[e];if(l.CommonBase.isExistJsonKey(d.parentIdsJson,e))n=d.parentIdsJson[e];else{const i=B(e);if(i!=null){const f=i[s].toString();if(f!==a.toString()){const p=B(f);if(p!=null){n.push(f);const h=_(f,r);h.length>0&&(n=n.concat(h))}}}d.parentIdsJson[e]=n}return n},C=e=>{let t=l.CommonBase.isUndefined(e)?c.value:e;t!=null&&!l.CommonBase.isEmpty(t)&&!l.CommonBase.isExistJsonKey(d.dataJson,t.toString())&&(t="");const s=[];if(t==null||l.CommonBase.isEmpty(t))s.push(y(0,v())),s.push(y(1,""));else{const a=t.toString(),n=[..._(a)].reverse(),r=n.length;if(r>0){n.forEach((f,p)=>{const h=p===0?v():n[p-1],P=y(p,h);P.selected=f,s.push(P)});const i=y(r,n[r-1]);i.selected=a,s.push(i)}else{const i=y(0,v());i.selected=a,s.push(i)}}g.value=s},G=()=>{J(c.list),C(),u.isFirstDataFinish=!0,u.lastValue=c.value};o.onMounted(()=>{o.nextTick(()=>{G()})}),o.watch(()=>c.value,e=>{e!==u.lastValue&&u.isFirstDataFinish&&(C(),u.lastValue=e)}),o.watch(()=>c.list,e=>{if(!u.isFirstDataFinish){u.isFirstDataFinish=!0;return}d.parentIdsJson={},J(e);const{value:t}=c,s=t!=null&&!l.CommonBase.isEmpty(t)&&l.CommonBase.isExistJsonKey(d.dataJson,t.toString())?t:"";C(s),u.lastValue=s});const O=()=>!0,R=(e,t)=>{let s="";if(l.CommonBase.isEmpty(e)&&t===0)C("");else if(l.CommonBase.isEmpty(e)){if(g.value.splice(t+1),t>0){const a=g.value[t-1];a&&(s=a.selected)}}else{const a=e.toString();k(a)?(g.value.splice(t+1),g.value.push(y(t+1,a))):(s=e,g.value.splice(t+1))}b(s)},j=()=>u.lastValue,T=e=>{const t=_(e),s=t.length>0?t.slice().reverse().concat([e]):[e],a=[];return s.forEach(n=>{const r=d.dataJson[n];r!=null&&!l.CommonBase.isEmpty(r.name)&&a.push(r.name)}),a},$=()=>{const e=u.lastValue;let t="";return e!=null&&!l.CommonBase.isEmpty(e)&&(t=T(e.toString()).join(" → ")),{value:e,show:t||(e!=null?e.toString():"")}},U=e=>{const t=[],s=new Set;let a=e;for(;l.CommonBase.isNonEmptyString(a)&&!s.has(a);){s.add(a);const n=B(a);if(n==null)break;l.CommonBase.isNonEmptyString(n.name)&&t.unshift(n.name);const r=n[c.parentKey],i=r!=null?String(r):"";if(i===""||i===String(c.topParentValue))break;a=i}return t},z=o.computed(()=>{c.list,V.value;const e=u.lastValue;if(e==null||l.CommonBase.isEmpty(e))return"";const t=l.CommonBase.isString(c.plaintextLevelSeparator)?c.plaintextLevelSeparator:" > ",s=U(e.toString());return s.length>0?s.join(t):e.toString()});return w({getValue:j,getValueData:$,setValue:e=>{C(e),u.lastValue=e}}),(e,t)=>m.isPlaintext?(o.openBlock(),o.createElementBlock("div",{key:0,id:o.unref(E),class:"cl-plaintext-value"},o.toDisplayString(z.value),9,X)):(o.openBlock(),o.createElementBlock("div",{key:1,id:o.unref(E),class:o.normalizeClass(q.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(s,a)=>(o.openBlock(),o.createElementBlock("div",{key:`${x}-${a}`,class:"selectCascade-item",style:o.normalizeStyle(s.sty)},[o.createVNode(H._sfc_main,{isShowMsg:m.isShowInMsg,isCheck:m.isCheckValidate,checkValue:s.selected,rules:m.validateRules},{default:o.withCtx(()=>[o.createVNode(Q._sfc_main,{isClear:m.isClear,isSearch:m.isSearch,placeholder:s.placeholder,list:s.list,disabled:m.disabled,value:s.selected,"onUpdate:value":n=>s.selected=n,onOpenBefore:O,onOnChange:n=>R(n,a)},null,8,["isClear","isSearch","placeholder","list","disabled","value","onUpdate:value","onOnChange"])]),_:2},1032,["isShowMsg","isCheck","checkValue","rules"])],4))),128))],10,Y))}});exports._sfc_main=Z;
1
+ "use strict";const o=require("vue"),l=require("./base-DbuX_Y3x.js"),A=require("./index-rFJmbgyH.js"),W=require("./language-CBZjQ9dC.js"),H=require("./Validate.vue_vue_type_script_setup_true_lang-iQhIBpru.js"),Q=require("./Index.vue_vue_type_script_setup_true_lang-BnFtwIqC.js");;/* empty css */const X=["id"],Y=["id"],Z=o.defineComponent({name:"ClSelectCascade",__name:"Index",props:{id:String,value:[String,Number],className:{type:String,default:""},disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},placeholder:String,isClear:{type:Boolean,default:!1},isSearch:{type:Boolean,default:!1},parentKey:{type:String,default:"parentId"},topParentValue:{type:String,default:"0"},width:String,isCheckValidate:{type:Boolean,default:!1},validateRules:{type:Array,default:()=>[{r:"required"}]},isShowInMsg:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1},plaintextLevelSeparator:{type:String,default:" > "}},emits:{"update:value":m=>!0,"update:modelValue":m=>!0,onChange:m=>!0},setup(m,{expose:w,emit:L}){const c=m,S=L,{optPageLanguage:D,getPageLanguage:N}=W.useLanguage();N("common");const x=`selectCascade-${l.CommonBase.getRandom(5)}`,E=c.id,u=o.reactive({lastValue:c.value,isFirstDataFinish:!1}),g=o.ref([]),d={dataJson:{},dataGroup:{},parentIdsJson:{}},V=o.ref(0),I=o.computed(()=>D.value.pleaseSelect),F=o.computed(()=>{const{placeholder:e}=c;return l.CommonBase.isNonEmptyString(e)?e.split("|"):[]}),K=o.computed(()=>{const{width:e}=c;return l.CommonBase.isNonEmptyString(e)?e.split("|"):[]}),q=o.computed(()=>{let e={"panel-select-cascade":!0};return e=l.CommonBase.getJsonMerge(e,A.CommonElement.getClassNameJson(c.className)),e}),b=e=>{e!==u.lastValue&&(u.lastValue=e,S("update:value",e),S("update:modelValue",e),S("onChange",e))},k=e=>l.CommonBase.isExistJsonKey(d.dataGroup,e),M=e=>k(e)?d.dataGroup[e]:[],B=e=>l.CommonBase.isExistJsonKey(d.dataJson,e)?d.dataJson[e]:null,v=()=>`top_${c.topParentValue}`,J=e=>{const{parentKey:t,topParentValue:s}=c,a={},n={};l.CommonBase.isEmpty(e)||e.forEach(r=>{const i=l.CommonBase.getJsonClone(r);if(l.CommonBase.isEmpty(i?.id)||l.CommonBase.isEmpty(i?.[t]))return;const f=i.id.toString(),p=i[t].toString();a[f]=i;const h=p===s.toString()?v():p;l.CommonBase.isExistJsonKey(n,h)||(n[h]=[]),n[h].push(i)}),d.dataJson=a,d.dataGroup=n,V.value+=1},y=(e,t)=>{const s={idx:e,pId:t,placeholder:I.value,list:[],sty:{},selected:""};if(!l.CommonBase.isEmpty(t)){const i=M(t);s.list=l.CommonBase.getListClone(i)}const a=F.value,n=a.length;n>0&&(n>e?s.placeholder=l.CommonBase.isEmpty(a[e])?I.value:a[e]:n===1&&(s.placeholder=a[0]));const r=K.value;return r.length>e&&(l.CommonBase.isEmpty(r[e])||(s.sty.width=r[e],s.sty.flex="none")),s},_=(e,t)=>{const{parentKey:s,topParentValue:a}=c;let n=[];if(t&&t.indexOf(e)>-1)return[];const r=t?t.concat([e]):[e];if(l.CommonBase.isExistJsonKey(d.parentIdsJson,e))n=d.parentIdsJson[e];else{const i=B(e);if(i!=null){const f=i[s].toString();if(f!==a.toString()){const p=B(f);if(p!=null){n.push(f);const h=_(f,r);h.length>0&&(n=n.concat(h))}}}d.parentIdsJson[e]=n}return n},C=e=>{let t=l.CommonBase.isUndefined(e)?c.value:e;t!=null&&!l.CommonBase.isEmpty(t)&&!l.CommonBase.isExistJsonKey(d.dataJson,t.toString())&&(t="");const s=[];if(t==null||l.CommonBase.isEmpty(t))s.push(y(0,v())),s.push(y(1,""));else{const a=t.toString(),n=[..._(a)].reverse(),r=n.length;if(r>0){n.forEach((f,p)=>{const h=p===0?v():n[p-1],P=y(p,h);P.selected=f,s.push(P)});const i=y(r,n[r-1]);i.selected=a,s.push(i)}else{const i=y(0,v());i.selected=a,s.push(i)}}g.value=s},G=()=>{J(c.list),C(),u.isFirstDataFinish=!0,u.lastValue=c.value};o.onMounted(()=>{o.nextTick(()=>{G()})}),o.watch(()=>c.value,e=>{e!==u.lastValue&&u.isFirstDataFinish&&(C(),u.lastValue=e)}),o.watch(()=>c.list,e=>{if(!u.isFirstDataFinish){u.isFirstDataFinish=!0;return}d.parentIdsJson={},J(e);const{value:t}=c,s=t!=null&&!l.CommonBase.isEmpty(t)&&l.CommonBase.isExistJsonKey(d.dataJson,t.toString())?t:"";C(s),u.lastValue=s});const O=()=>!0,R=(e,t)=>{let s="";if(l.CommonBase.isEmpty(e)&&t===0)C("");else if(l.CommonBase.isEmpty(e)){if(g.value.splice(t+1),t>0){const a=g.value[t-1];a&&(s=a.selected)}}else{const a=e.toString();k(a)?(g.value.splice(t+1),g.value.push(y(t+1,a))):(s=e,g.value.splice(t+1))}b(s)},j=()=>u.lastValue,T=e=>{const t=_(e),s=t.length>0?t.slice().reverse().concat([e]):[e],a=[];return s.forEach(n=>{const r=d.dataJson[n];r!=null&&!l.CommonBase.isEmpty(r.name)&&a.push(r.name)}),a},$=()=>{const e=u.lastValue;let t="";return e!=null&&!l.CommonBase.isEmpty(e)&&(t=T(e.toString()).join(" → ")),{value:e,show:t||(e!=null?e.toString():"")}},U=e=>{const t=[],s=new Set;let a=e;for(;l.CommonBase.isNonEmptyString(a)&&!s.has(a);){s.add(a);const n=B(a);if(n==null)break;l.CommonBase.isNonEmptyString(n.name)&&t.unshift(n.name);const r=n[c.parentKey],i=r!=null?String(r):"";if(i===""||i===String(c.topParentValue))break;a=i}return t},z=o.computed(()=>{c.list,V.value;const e=u.lastValue;if(e==null||l.CommonBase.isEmpty(e))return"";const t=l.CommonBase.isString(c.plaintextLevelSeparator)?c.plaintextLevelSeparator:" > ",s=U(e.toString());return s.length>0?s.join(t):e.toString()});return w({getValue:j,getValueData:$,setValue:e=>{C(e),u.lastValue=e}}),(e,t)=>m.isPlaintext?(o.openBlock(),o.createElementBlock("div",{key:0,id:o.unref(E),class:"cl-plaintext-value"},o.toDisplayString(z.value),9,X)):(o.openBlock(),o.createElementBlock("div",{key:1,id:o.unref(E),class:o.normalizeClass(q.value)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(s,a)=>(o.openBlock(),o.createElementBlock("div",{key:`${x}-${a}`,class:"selectCascade-item",style:o.normalizeStyle(s.sty)},[o.createVNode(H._sfc_main,{isShowMsg:m.isShowInMsg,isCheck:m.isCheckValidate,checkValue:s.selected,rules:m.validateRules},{default:o.withCtx(()=>[o.createVNode(Q._sfc_main,{isClear:m.isClear,isSearch:m.isSearch,placeholder:s.placeholder,list:s.list,disabled:m.disabled,value:s.selected,"onUpdate:value":n=>s.selected=n,onOpenBefore:O,onOnChange:n=>R(n,a)},null,8,["isClear","isSearch","placeholder","list","disabled","value","onUpdate:value","onOnChange"])]),_:2},1032,["isShowMsg","isCheck","checkValue","rules"])],4))),128))],10,Y))}});exports._sfc_main=Z;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),f=require("./base-DbuX_Y3x.js"),v=require("./index-rFJmbgyH.js"),P=require("./globalConfig-BjG8BDet.js"),h=require("./index-CmFWmRVX.js"),x=["id"],S=["title"],U=e.defineComponent({name:"ClEllipsis",directives:{cltooltip:h.tooltipDirectives},__name:"Index",props:{id:String,className:String,text:String,lines:{type:Number,default:1},isUseTooltipAuto:{type:Boolean,default:!1},tooltipTheme:String,tooltipPosition:String,tooltipTrigger:String,tooltipIsHtml:{type:Boolean,default:!1},tooltipHtml:String,isShowNativeTitle:{type:Boolean,default:!1}},setup(o){const s=o,m=s.id,p=e.useTemplateRef("refElParent"),a=e.useTemplateRef("refElSpan"),i=e.reactive({isPosParent:!1,isPosSpan:!1,isUseTooltip:!1,isUseTooltipAuto:s.isUseTooltipAuto}),T=e.computed(()=>i.isUseTooltip?"":s.isShowNativeTitle&&s.text||""),u=e.computed(()=>{if(!f.CommonBase.isFinite(s.lines))return 1;const t=Number(s.lines);return t===1||t===2||t===3?t:1}),g=e.computed(()=>{let t={"panel-ellipsis":!0,"ellipsis-txt-title":!0};return t[`ellipsis-txt-lines-${u.value}`]=!0,s.tooltipTrigger==="click"&&(t["ellipsis-txt-click"]=!0),t=f.CommonBase.getJsonMerge(t,v.CommonElement.getClassNameJson(s.className)),t}),d=()=>{const t=P.getGlobalConfig("ellipsis");t&&f.CommonBase.isExistJsonKey(t,"isUseTooltipAuto")&&(i.isUseTooltipAuto=t.isUseTooltipAuto)},r=()=>{if(i.isUseTooltipAuto&&s.text&&s.text.length>0&&p.value&&a.value)if(u.value>1){const t=a.value,l=t.clientHeight;t.style.webkitLineClamp="unset";const n=t.offsetHeight;t.style.webkitLineClamp="";const c=n>l;i.isUseTooltip=c,i.isPosSpan=!0,i.isPosParent=!1}else{const t=p.value.clientWidth,l=a.value.offsetWidth;if(t>0&&l>0){const n=t>=l,c=t<l;i.isUseTooltip=c,i.isPosSpan=n,i.isPosParent=c}}};return e.onMounted(()=>{e.nextTick(()=>{d(),r()})}),e.watch(()=>s.text,()=>{e.nextTick(()=>{r()})}),e.watch(()=>s.isUseTooltipAuto,t=>{i.isUseTooltipAuto=t,t||(i.isUseTooltip=!1),e.nextTick(()=>{r()})}),e.watch(()=>s.lines,()=>{e.nextTick(()=>{r()})}),(t,l)=>{const n=e.resolveDirective("cltooltip");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"refElParent",ref:p,id:e.unref(m),class:e.normalizeClass(g.value)},[e.withDirectives((e.openBlock(),e.createElementBlock("span",{ref_key:"refElSpan",ref:a,class:e.normalizeClass(`ellipsis-txt-lines-${u.value}`),title:T.value},[e.createTextVNode(e.toDisplayString(o.text),1)],10,S)),[[n,{init:i.isUseTooltip&&i.isPosSpan,html:o.tooltipHtml||o.text,theme:o.tooltipTheme,position:o.tooltipPosition,trigger:o.tooltipTrigger,isHtml:o.tooltipIsHtml}]])],10,x)),[[n,{init:i.isUseTooltip&&i.isPosParent,html:o.tooltipHtml||o.text,theme:o.tooltipTheme,position:o.tooltipPosition,trigger:o.tooltipTrigger,isHtml:o.tooltipIsHtml}]])}}});exports._sfc_main=U;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),$=require("./Column.vue_vue_type_script_setup_true_lang-ByGDRcgX.js"),c=require("./base-DbuX_Y3x.js"),q=require("./index-rFJmbgyH.js"),R=require("./Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js"),P=["id"],j={key:0,class:"picker-toolbar"},z={class:"picker-toolbar-title"},J={key:0,class:"picker-loading-mask"},G={key:2,class:"picker-toolbar picker-toolbar--bottom"},K={class:"picker-toolbar-title"},Q=e.defineComponent({name:"ClPicker",__name:"Index",props:{id:String,value:{type:Array,default:()=>[]},className:String,columnsList:{type:Array,default:()=>[]},columnsFieldNameItem:{type:Object,default:()=>({})},title:String,submitLabel:{type:String,default:"确认"},closeLabel:{type:String,default:"取消"},toolbarPosition:{type:String,default:"top",validator:r=>["top","bottom"].indexOf(r)!==-1},isShowToolbar:{type:Boolean,default:!0},isLoading:Boolean,isReadonly:Boolean,isAllowHtml:Boolean,itemHeight:{type:Number,default:44},showNum:{type:Number,default:6},inertiaDuration:{type:Number,default:1e3}},emits:["update:value","update:modelValue","onConfirm","onCancel","onChange"],setup(r,{expose:E,emit:_}){const a=r,h=_,L=`picker-${c.CommonBase.getRandom(5)}`,F=a.id,v=e.ref([]),u=e.ref([]),b=e.computed(()=>({text:a.columnsFieldNameItem?.text||"text",value:a.columnsFieldNameItem?.value||"value",children:a.columnsFieldNameItem?.children||"children"})),k=e.computed(()=>c.CommonBase.isFinite(a.itemHeight)&&a.itemHeight>0?a.itemHeight:44),S=e.computed(()=>c.CommonBase.isFinite(a.showNum)?Math.max(1,a.showNum):6),D=e.computed(()=>c.CommonBase.isFinite(a.inertiaDuration)?Math.max(0,a.inertiaDuration):1e3),H=e.computed(()=>({height:`${S.value*k.value}px`})),O=e.computed(()=>({height:`${k.value}px`})),M=e.computed(()=>{let t={"panel-picker":!0,"picker-readonly":a.isReadonly};return t=c.CommonBase.getJsonMerge(t,q.CommonElement.getClassNameJson(a.className)),t}),y=t=>{if(c.CommonBase.isString(t)||c.CommonBase.isNumber(t))return{text:String(t),value:t};if(c.CommonBase.getTypeof(t)==="object"&&t!==null){const l=t,n=l[b.value.text],o=l[b.value.value],s=l[b.value.children],i=c.CommonBase.isString(n)?n:c.CommonBase.isNumber(n)?String(n):"",d=c.CommonBase.isString(o)||c.CommonBase.isNumber(o)?o:"",m=Array.isArray(s)?s:void 0;return{text:i,value:d,disabled:!!l.disabled,children:m?m.map(y).filter(p=>p!==null):void 0}}return null},x=()=>{const t=a.columnsList;if(!Array.isArray(t)||t.length===0)return!1;const l=t[0];return c.CommonBase.getTypeof(l)==="object"&&l!==null&&Array.isArray(l.values)},A=()=>{const t=a.columnsList;if(!Array.isArray(t)||t.length===0)return[];if(x())return t.map(s=>{const i=Array.isArray(s.values)?s.values.map(y).filter(m=>m!==null):[],d=c.CommonBase.isFinite(s.defaultIndex)?s.defaultIndex:0;return{options:i,defaultIndex:i.length>0?Math.min(Math.max(0,Math.floor(d)),i.length-1):0,className:c.CommonBase.isString(s.className)?s.className:void 0}});const l=[];let n=t.map(y).filter(s=>s!==null),o=0;for(;n.length>0&&o<20;){o++,l.push({options:n,defaultIndex:0});const i=n[u.value[l.length-1]||0]?.children;if(i&&i.length>0)n=i;else break}return l},g=()=>u.value.map((t,l)=>v.value[l]?.options[t]?.value).filter(t=>t!==void 0),f=()=>u.value.map((t,l)=>v.value[l]?.options[t]).filter(t=>!!t),B=()=>[...u.value],V=(t,l)=>t.length===l.length&&t.every((n,o)=>n===l[o]),I=()=>{const t=g(),l=Array.isArray(a.value)?a.value:[];V(t,l)||(h("update:value",t),h("update:modelValue",t))},C=t=>{const l=a.columnsList;if(!Array.isArray(l)||l.length===0){v.value=[],u.value=[];return}const n=[];if(x())l.forEach((o,s)=>{const i=Array.isArray(o.values)?o.values.map(y).filter(p=>p!==null):[],d=t?.[s];let m=i.findIndex(p=>p.value===d);if(m<0){const p=c.CommonBase.isFinite(o.defaultIndex)?o.defaultIndex:0;m=i.length>0?Math.min(Math.max(0,Math.floor(p)),i.length-1):0}n.push(m)});else{let o=l.map(y).filter(i=>i!==null),s=0;for(;o.length>0&&s<20;){s++;const i=t?.[n.length];let d=o.findIndex(p=>p.value===i);d<0&&(d=0),n.push(d);const m=o[d]?.children;if(m&&m.length>0)o=m;else break}}u.value=n,v.value=A()};e.watch(()=>a.columnsList,()=>{C(Array.isArray(a.value)?a.value:void 0)},{deep:!0,immediate:!0}),e.watch(()=>a.value,t=>{if(!Array.isArray(t))return;const l=g();V(l,t)||C(t)},{deep:!0});const T=(t,l)=>{if(u.value[t]===l)return;u.value[t]=l,u.value=u.value.slice(0,t+1),v.value=A();const n=u.value.slice(0,t+1);for(let o=n.length;o<v.value.length;o++)n.push(v.value[o].defaultIndex);u.value=n,h("onChange",{selectedValues:g(),selectedOptions:f(),selectedIndexes:B(),columnIndex:t}),I()},N=()=>{h("onConfirm",{selectedValues:g(),selectedOptions:f(),selectedIndexes:B()})},w=()=>{h("onCancel",{selectedValues:g(),selectedOptions:f(),selectedIndexes:B()})};return E({getValue:()=>g(),setValue:t=>{C(t),I()},getValueData:()=>f(),getSelectedOptions:()=>f(),confirm:()=>N()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(F),class:e.normalizeClass(M.value)},[r.isShowToolbar&&r.toolbarPosition==="top"?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--cancel",onClick:w},e.toDisplayString(r.closeLabel),1),e.createElementVNode("div",z,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(r.title),1)])]),e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--confirm",onClick:N},e.toDisplayString(r.submitLabel),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.renderSlot(t.$slots,"columnsTop"),e.createElementVNode("div",{class:"picker-columns",style:e.normalizeStyle(H.value)},[e.createElementVNode("div",{class:"picker-frame",style:e.normalizeStyle(O.value)},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(n,o)=>(e.openBlock(),e.createBlock($._sfc_main,{key:`${L}-col-${o}`,className:n.className,optionsList:n.options,valueIndex:u.value[o]||0,itemHeight:k.value,showNum:S.value,inertiaDuration:D.value,isAllowHtml:r.isAllowHtml,isReadonly:r.isReadonly,onOnSelect:s=>T(o,s)},null,8,["className","optionsList","valueIndex","itemHeight","showNum","inertiaDuration","isAllowHtml","isReadonly","onOnSelect"]))),128)),r.isLoading?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(R._sfc_main,{size:"26"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],4),e.renderSlot(t.$slots,"columnsBottom"),r.isShowToolbar&&r.toolbarPosition==="bottom"?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--cancel",onClick:w},e.toDisplayString(r.closeLabel),1),e.createElementVNode("div",K,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(r.title),1)])]),e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--confirm",onClick:N},e.toDisplayString(r.submitLabel),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,P))}});exports._sfc_main=Q;
1
+ "use strict";const e=require("vue"),$=require("./Column.vue_vue_type_script_setup_true_lang-ByGDRcgX.js"),c=require("./base-DbuX_Y3x.js"),q=require("./index-rFJmbgyH.js"),R=require("./Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js"),P=["id"],j={key:0,class:"picker-toolbar"},z={class:"picker-toolbar-title"},J={key:0,class:"picker-loading-mask"},G={key:2,class:"picker-toolbar picker-toolbar--bottom"},K={class:"picker-toolbar-title"},Q=e.defineComponent({name:"ClPicker",__name:"Index",props:{id:String,value:{type:Array,default:()=>[]},className:String,columnsList:{type:Array,default:()=>[]},columnsFieldNameItem:{type:Object,default:()=>({})},title:String,submitLabel:{type:String,default:"确认"},closeLabel:{type:String,default:"取消"},toolbarPosition:{type:String,default:"top",validator:r=>["top","bottom"].indexOf(r)!==-1},isShowToolbar:{type:Boolean,default:!0},isLoading:Boolean,isReadonly:Boolean,isAllowHtml:Boolean,itemHeight:{type:Number,default:44},showNum:{type:Number,default:6},inertiaDuration:{type:Number,default:1e3}},emits:["update:value","update:modelValue","onConfirm","onCancel","onChange"],setup(r,{expose:E,emit:_}){const a=r,h=_,L=`picker-${c.CommonBase.getRandom(5)}`,F=a.id,v=e.ref([]),u=e.ref([]),b=e.computed(()=>({text:a.columnsFieldNameItem?.text||"text",value:a.columnsFieldNameItem?.value||"value",children:a.columnsFieldNameItem?.children||"children"})),k=e.computed(()=>c.CommonBase.isFinite(a.itemHeight)&&a.itemHeight>0?a.itemHeight:44),S=e.computed(()=>c.CommonBase.isFinite(a.showNum)?Math.max(1,a.showNum):6),D=e.computed(()=>c.CommonBase.isFinite(a.inertiaDuration)?Math.max(0,a.inertiaDuration):1e3),H=e.computed(()=>({height:`${S.value*k.value}px`})),O=e.computed(()=>({height:`${k.value}px`})),M=e.computed(()=>{let t={"panel-picker":!0,"picker-readonly":a.isReadonly};return t=c.CommonBase.getJsonMerge(t,q.CommonElement.getClassNameJson(a.className)),t}),y=t=>{if(c.CommonBase.isString(t)||c.CommonBase.isNumber(t))return{text:String(t),value:t};if(c.CommonBase.getTypeof(t)==="object"&&t!==null){const l=t,n=l[b.value.text],o=l[b.value.value],s=l[b.value.children],i=c.CommonBase.isString(n)?n:c.CommonBase.isNumber(n)?String(n):"",d=c.CommonBase.isString(o)||c.CommonBase.isNumber(o)?o:"",m=Array.isArray(s)?s:void 0;return{text:i,value:d,disabled:!!l.disabled,children:m?m.map(y).filter(p=>p!==null):void 0}}return null},x=()=>{const t=a.columnsList;if(!Array.isArray(t)||t.length===0)return!1;const l=t[0];return c.CommonBase.getTypeof(l)==="object"&&l!==null&&Array.isArray(l.values)},A=()=>{const t=a.columnsList;if(!Array.isArray(t)||t.length===0)return[];if(x())return t.map(s=>{const i=Array.isArray(s.values)?s.values.map(y).filter(m=>m!==null):[],d=c.CommonBase.isFinite(s.defaultIndex)?s.defaultIndex:0;return{options:i,defaultIndex:i.length>0?Math.min(Math.max(0,Math.floor(d)),i.length-1):0,className:c.CommonBase.isString(s.className)?s.className:void 0}});const l=[];let n=t.map(y).filter(s=>s!==null),o=0;for(;n.length>0&&o<20;){o++,l.push({options:n,defaultIndex:0});const i=n[u.value[l.length-1]||0]?.children;if(i&&i.length>0)n=i;else break}return l},g=()=>u.value.map((t,l)=>v.value[l]?.options[t]?.value).filter(t=>t!==void 0),f=()=>u.value.map((t,l)=>v.value[l]?.options[t]).filter(t=>!!t),B=()=>[...u.value],V=(t,l)=>t.length===l.length&&t.every((n,o)=>n===l[o]),I=()=>{const t=g(),l=Array.isArray(a.value)?a.value:[];V(t,l)||(h("update:value",t),h("update:modelValue",t))},C=t=>{const l=a.columnsList;if(!Array.isArray(l)||l.length===0){v.value=[],u.value=[];return}const n=[];if(x())l.forEach((o,s)=>{const i=Array.isArray(o.values)?o.values.map(y).filter(p=>p!==null):[],d=t?.[s];let m=i.findIndex(p=>p.value===d);if(m<0){const p=c.CommonBase.isFinite(o.defaultIndex)?o.defaultIndex:0;m=i.length>0?Math.min(Math.max(0,Math.floor(p)),i.length-1):0}n.push(m)});else{let o=l.map(y).filter(i=>i!==null),s=0;for(;o.length>0&&s<20;){s++;const i=t?.[n.length];let d=o.findIndex(p=>p.value===i);d<0&&(d=0),n.push(d);const m=o[d]?.children;if(m&&m.length>0)o=m;else break}}u.value=n,v.value=A()};e.watch(()=>a.columnsList,()=>{C(Array.isArray(a.value)?a.value:void 0)},{deep:!0,immediate:!0}),e.watch(()=>a.value,t=>{if(!Array.isArray(t))return;const l=g();V(l,t)||C(t)},{deep:!0});const T=(t,l)=>{if(u.value[t]===l)return;u.value[t]=l,u.value=u.value.slice(0,t+1),v.value=A();const n=u.value.slice(0,t+1);for(let o=n.length;o<v.value.length;o++)n.push(v.value[o].defaultIndex);u.value=n,h("onChange",{selectedValues:g(),selectedOptions:f(),selectedIndexes:B(),columnIndex:t}),I()},N=()=>{h("onConfirm",{selectedValues:g(),selectedOptions:f(),selectedIndexes:B()})},w=()=>{h("onCancel",{selectedValues:g(),selectedOptions:f(),selectedIndexes:B()})};return E({getValue:()=>g(),setValue:t=>{C(t),I()},getValueData:()=>f(),getSelectedOptions:()=>f(),confirm:()=>N()}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(F),class:e.normalizeClass(M.value)},[r.isShowToolbar&&r.toolbarPosition==="top"?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--cancel",onClick:w},e.toDisplayString(r.closeLabel),1),e.createElementVNode("div",z,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(r.title),1)])]),e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--confirm",onClick:N},e.toDisplayString(r.submitLabel),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.renderSlot(t.$slots,"columnsTop"),e.createElementVNode("div",{class:"picker-columns",style:e.normalizeStyle(H.value)},[e.createElementVNode("div",{class:"picker-frame",style:e.normalizeStyle(O.value)},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(n,o)=>(e.openBlock(),e.createBlock($._sfc_main,{key:`${L}-col-${o}`,className:n.className,optionsList:n.options,valueIndex:u.value[o]||0,itemHeight:k.value,showNum:S.value,inertiaDuration:D.value,isAllowHtml:r.isAllowHtml,isReadonly:r.isReadonly,onOnSelect:s=>T(o,s)},null,8,["className","optionsList","valueIndex","itemHeight","showNum","inertiaDuration","isAllowHtml","isReadonly","onOnSelect"]))),128)),r.isLoading?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(R._sfc_main,{size:"26"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],4),e.renderSlot(t.$slots,"columnsBottom"),r.isShowToolbar&&r.toolbarPosition==="bottom"?(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--cancel",onClick:w},e.toDisplayString(r.closeLabel),1),e.createElementVNode("div",K,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(r.title),1)])]),e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--confirm",onClick:N},e.toDisplayString(r.submitLabel),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,P))}});exports._sfc_main=Q;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as te, ref as s, computed as a, onBeforeUnmount as ne, watch as oe, openBlock as l, createBlock as C, Teleport as ae, createElementBlock as c, normalizeStyle as L, normalizeClass as z, Fragment as S, createVNode as ie, Transition as se, withCtx as le, unref as re, toDisplayString as ue, createCommentVNode as ce } from "vue";
2
2
  import { C as n } from "./base-fr2I80sU.js";
3
3
  import { C as de } from "./index-B477PjJ3.js";
4
- import { _ as me } from "./Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js";
5
- import { _ as ve } from "./Index.vue_vue_type_script_setup_true_lang-BppPP2_o.js";
4
+ import { _ as me } from "./Index.vue_vue_type_script_setup_true_lang-BmRO42R2.js";
5
+ import { _ as ve } from "./Index.vue_vue_type_script_setup_true_lang-Bj0lKDBR.js";
6
6
  const pe = ["id"], fe = {
7
7
  key: 2,
8
8
  class: "panel-toast__text"
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");;/* empty css */;/* empty css */const o=require("./base-DbuX_Y3x.js"),P=require("./index-rFJmbgyH.js"),y=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),L=require("./index-CmFWmRVX.js"),K=["id"],R={key:0,class:"cl-plaintext-value"},z=["id","name","value","disabled","checked","onClick"],A=["for"],U={key:0},W=e.defineComponent({name:"ClRadio",directives:{cltooltip:L.tooltipDirectives},__name:"Index",props:{id:String,name:{type:String,required:!0},value:{type:[String,Number],required:!0},className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},width:String,isInline:{type:Boolean,default:!0},tipMode:{type:String,default:"tooltip",validator:m=>["tooltip","clickCallback"].includes(m)},checkChangeBefore:{type:Function,default:void 0},isPlaintext:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","onChange","onInit","onError","onTipClick"],setup(m,{expose:f,emit:S}){const i=m,d=S,v=`rd-${o.CommonBase.getRandom(8)}`,g=o.CommonBase.isEmpty(i.name)?v+"_name":i.name,x=i.id,l=e.ref(i.value?.toString()||"");let c={};const C=e.ref(0),r=e.ref(!1),u={isProcessing:!1,_initEmitted:!1},N=e.computed(()=>{if(i.isPlaintext)return[];const t=i.list;return o.CommonBase.isArray(t)?t.filter(s=>!o.CommonBase.isEmpty(s)):[]}),I=e.computed(()=>{i.list,C.value;const t=l.value;if(o.CommonBase.isEmpty(t))return"";const s=o.CommonBase.isExistJsonKey(c,t)?c[t]:void 0;return s&&o.CommonBase.isNonEmptyString(s.name)?s.name:t}),V=e.computed(()=>o.CommonBase.getJsonMerge({"panel-radio":!0},P.CommonElement.getClassNameJson(i.className))),w=e.computed(()=>{const t={radio:!0,"radio-default":!0};return t["radio-inline"]=i.isInline??!0,t}),h=t=>{d("update:value",t),d("update:modelValue",t)},b=t=>{const s=t.id?.toString()??"";h(s),d("onChange",s,o.CommonBase.getJsonClone(t))},B=()=>{u._initEmitted||(u._initEmitted=!0,e.nextTick(()=>{d("onInit")}))},D=t=>{const s={},{width:a}=i;return t&&!o.CommonBase.isEmpty(t.width)?s.width=t.width:o.CommonBase.isEmpty(a)||(s.width=i.width),s},$=()=>o.CommonBase.isExistJsonKey(c,l.value)?l.value:"",k=t=>{c=o.CommonBase.isEmpty(t)?{}:o.CommonBase.getJsonByList(t),C.value+=1},p=()=>{if(r.value){const t=o.CommonBase.isEmpty(l.value)?"":l.value;o.CommonBase.isExistJsonKey(c,t)||(l.value="",h(""))}},_=t=>{t!==l.value&&(l.value=t?.toString()||"")},q=()=>{r.value=i.list.length!==0,k(i.list),p()};e.onMounted(()=>{e.nextTick(()=>{q()})}),e.onBeforeUnmount(()=>{c={},r.value=!1,u._initEmitted=!1}),e.watch(r,t=>{t&&B()}),e.watch(()=>i.list,t=>{r.value||(r.value=!0,t.length===0&&p(),B())},{deep:!0}),e.watch([()=>i.value,()=>i.list],([t,s])=>{const a=s||[];!r.value&&a.length>0&&(r.value=!0,B()),k(a),_(t),p()},{deep:!0});const F=t=>{d("onTipClick",t)},J=async t=>{if(!(!t||t.isDisabled||i.disabled||u.isProcessing)&&!o.CommonBase.isEmpty(t.id)){u.isProcessing=!0;try{const s=String(t.id??"");if(s===l.value)return;let a=!0;if(i.checkChangeBefore)try{a=await i.checkChangeBefore(s),a=o.CommonBase.isBoolean(a)?a:!0}catch{a=!1}if(i.disabled||t.isDisabled)return;a&&(l.value=s,b(t))}catch(s){d("onError",s)}finally{u.isProcessing=!1}}},E=()=>$();return f({getValue:E,getValueData:()=>{const t=E();return o.CommonBase.isExistJsonKey(c,t)?o.CommonBase.getJsonClone(c[t]):{}},setValue:t=>{u.isProcessing||(_(t),p())},runInitComplete:()=>{r.value||(r.value=!0,k(i.list),_(i.value),p(),B())}}),(t,s)=>{const a=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(V.value),id:e.unref(x)},[m.isPlaintext?(e.openBlock(),e.createElementBlock("div",R,e.toDisplayString(I.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(n,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${v}-${n.id??""}-${T}`},[n&&(n.isShow||n.isShow===void 0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(w.value),style:e.normalizeStyle(D(n))},[e.createElementVNode("span",null,[e.createElementVNode("span",null,[e.createElementVNode("input",{type:"radio",id:`${v}_${e.unref(g)}_${n.id??""}`,name:e.unref(g),value:n.id??"",disabled:n.isDisabled||m.disabled,checked:(n.id?.toString()??"")===l.value,onClick:M=>J(n)},null,8,z),e.createElementVNode("label",{for:`${v}_${e.unref(g)}_${n.id??""}`},[e.renderSlot(t.$slots,"default",{data:n},()=>[n.icon&&n.icon.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("span",U,[e.createVNode(y._sfc_main,{name:n.icon},null,8,["name"])])),[[a,{html:n.name,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.name),1)],64))])],8,A)]),n.tipMsg&&n.tipMsg.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m.tipMode==="tooltip"?e.withDirectives((e.openBlock(),e.createBlock(y._sfc_main,{key:0,name:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"radio-icon-tip"},null,8,["name","className"])),[[a,{html:n.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createBlock(y._sfc_main,{key:1,name:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"radio-icon-tip",onClick:e.withModifiers(M=>F(n),["stop"])},null,8,["name","className","onClick"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))),128))],10,K)}}});exports._sfc_main=W;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as C, useTemplateRef as T, reactive as y, computed as m, onMounted as E, nextTick as p, watch as u, resolveDirective as k, withDirectives as P, openBlock as d, createElementBlock as v, normalizeClass as h, unref as A, createTextVNode as N, toDisplayString as w } from "vue";
2
2
  import { C as g } from "./base-fr2I80sU.js";
3
3
  import { C as B } from "./index-B477PjJ3.js";
4
- import { g as b } from "./globalConfig-D1-9RCQO.js";
5
- import { tooltipDirectives as I } from "../Web/__directive__/Tooltip.js";
4
+ import { g as b } from "./globalConfig-C5mivGXK.js";
5
+ import { t as I } from "./index-DoxFaAkn.js";
6
6
  const D = ["id"], W = ["title"], $ = /* @__PURE__ */ C({
7
7
  name: "ClEllipsis",
8
8
  directives: {
@@ -2,7 +2,7 @@ import { defineComponent as H, useTemplateRef as R, reactive as D, computed as m
2
2
  import { C as n } from "./base-fr2I80sU.js";
3
3
  import { C as E } from "./index-B477PjJ3.js";
4
4
  import { R as S } from "./resize-CyrJxi6F.js";
5
- import { _ as U } from "./Ing.vue_vue_type_script_setup_true_lang-Zb0-4POE.js";
5
+ import { _ as U } from "./Ing.vue_vue_type_script_setup_true_lang-CXLxBRdP.js";
6
6
  const Z = [
7
7
  "#2ec7c9",
8
8
  "#b6a2de",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, computed as l, watch as _, openBlock as u, createElementBlock as p, unref as d, normalizeClass as f, createElementVNode as s, Fragment as E, toDisplayString as h, renderSlot as y } from "vue";
2
- import { c as $ } from "./log-BbLqiWNM.js";
2
+ import { c as $ } from "./log-CSNil8va.js";
3
3
  import { C as a } from "./base-fr2I80sU.js";
4
4
  import { C as x } from "./index-B477PjJ3.js";
5
5
  const I = ["id", "aria-labelledby"], R = {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Z, reactive as ee, ref as N, computed as v, onMounted as te, nextTick as se, watch as x, openBlock as C, createElementBlock as V, unref as B, toDisplayString as ne, normalizeClass as ae, Fragment as oe, renderList as le, normalizeStyle as ie, createVNode as F, withCtx as re } from "vue";
2
2
  import { C as o } from "./base-fr2I80sU.js";
3
3
  import { C as ce } from "./index-B477PjJ3.js";
4
- import { a as ue } from "./language-pMmux6Js.js";
5
- import { _ as de } from "./Validate.vue_vue_type_script_setup_true_lang-DidPD12P.js";
6
- import { _ as pe } from "./Index.vue_vue_type_script_setup_true_lang-DiFMOo2n.js";
4
+ import { a as ue } from "./language-BaLIp7bA.js";
5
+ import { _ as de } from "./Validate.vue_vue_type_script_setup_true_lang-BwcOP-Dw.js";
6
+ import { _ as pe } from "./Index.vue_vue_type_script_setup_true_lang-BtlpTQO-.js";
7
7
  /* empty css */
8
8
  const fe = ["id"], he = ["id"], Ie = /* @__PURE__ */ Z({
9
9
  name: "ClSelectCascade",
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),i=require("./base-DbuX_Y3x.js"),v=require("./index-rFJmbgyH.js"),y=require("./Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js"),w=require("./Index.vue_vue_type_script_setup_true_lang-CSt6K9AQ.js"),L=require("./Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js"),M=["id"],P={class:"previewExample-image-icon"},q={class:"previewExample-video-img previewExample-image"},J=["onClick"],W={key:3,class:"previewExample-label-msg"},K={key:5,class:"previewExample-totalCount"},U=e.defineComponent({name:"ClPreviewExample",__name:"Index",props:{id:String,className:String,classContainer:String,classItem:String,type:{type:String,default:"image",validator:n=>["image","video"].includes(n)},width:{type:[Number,String],default:"auto"},height:{type:Number,required:!0},isWidthFull:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},label:String,previewIconSize:{type:String,default:"large"},isShowLoading:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isShowDelete:{type:Boolean,default:!1},showNum:{type:Number,default:-1},srcValueKey:{type:String,default:"value"},isShowCopy:{type:Boolean,default:!0},isClickImagePreview:{type:Boolean,default:!1},previewCallback:Function},emits:["onDelete"],setup(n,{emit:C}){const o=n,B=C,u=e.inject("$ClGlobals",null),E=`previewexample-${i.CommonBase.getRandom(5)}`,f=o.id,d=e.reactive({totalCount:-1}),p=e.ref([]),S=e.computed(()=>{const{width:t}=o;let l=!1;return(i.CommonBase.isEmpty(t)||typeof t=="string"&&t==="auto"||typeof t=="number"&&t<=0)&&(l=!0),l}),_=e.computed(()=>{let t={"panel-preview-example":!0,"previewExample-width-default":o.isWidthFull,"previewExample-width-auto":!o.isWidthFull};return t=i.CommonBase.getJsonMerge(t,v.CommonElement.getClassNameJson(o.className)),t}),N=e.computed(()=>{let t={"previewExample-container":!0};return t=i.CommonBase.getJsonMerge(t,v.CommonElement.getClassNameJson(o.classContainer)),t}),b=e.computed(()=>{const{type:t,previewIconSize:l}=o;let a={"previewExample-item":!0};return a[`previewExample-${t}`]=!0,a[`previewExample-iconSize-${l}`]=!0,a=i.CommonBase.getJsonMerge(a,v.CommonElement.getClassNameJson(o.classItem)),a}),k=e.computed(()=>{const t={height:`${o.height}px`};if(!S.value){let l=o.width.toString();l.indexOf("%")===-1&&(l=`${o.width}px`),t.width=l}return t}),x=t=>{B("onDelete",t)},h=()=>{const{list:t,showNum:l,srcValueKey:a}=o;let s=i.CommonBase.getListClone(t),r=t.length;l>0&&t.length>=l&&(r=l);const c=[];s.forEach((m,z)=>{if(!i.CommonBase.isEmpty(m)&&z+1<=r)if(i.CommonBase.isString(m))c.push({value:m});else{const D=i.CommonBase.isExistJsonKey(m,a)?m[a]:m.value;c.push({...m,value:D})}}),s=c,d.totalCount=t.length,p.value=s},I=()=>{h()},$=t=>{const l={};return i.CommonBase.isEmpty(t.id)||(l["data-id"]=t.id),i.CommonBase.isEmpty(t.ranId)||(l["data-ran-id"]=t.ranId),l};e.onMounted(()=>{e.nextTick(()=>{I()})}),e.watch(()=>o.list,()=>{h()},{deep:!0});const F=(t,l)=>{o.isClickImagePreview&&g(t,l,"image")},g=(t,l,a)=>{try{if(o.previewCallback)o.previewCallback(a,t,l);else{if(!u||i.CommonBase.isEmpty(u.preview))return;const{list:s}=o;let r;s.length===1?r=t.value:r=s.map(c=>i.CommonBase.isString(c)?c:c.value),u.preview.show({type:a,src:r,showIndex:l,isShowCopy:o.isShowCopy})}}catch{}},V=t=>{x(t)};return(t,l)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(f),class:e.normalizeClass(_.value)},[e.createElementVNode("div",{class:e.normalizeClass(N.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:`${E}-${s}`,class:b.value,style:k.value},{ref_for:!0},$(a)),[n.type==="image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(w._sfc_main,{src:a.value,class:e.normalizeClass({"cursor-pointer":n.isClickImagePreview}),onClick:e.withModifiers(r=>F(a,s),["stop"])},null,8,["src","class","onClick"]),e.createElementVNode("div",P,[e.createVNode(y._sfc_main,{title:"预览",name:"search","aria-label":"预览",onClick:e.withModifiers(r=>g(a,s,"image"),["stop"])},null,8,["onClick"]),n.isShowDelete?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,title:"删除",name:"close","aria-label":"删除",onClick:e.withModifiers(r=>V(s),["stop"])},null,8,["onClick"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],64)):n.type==="video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",q,[a.imgUrl&&a.imgUrl.length>0?(e.openBlock(),e.createBlock(w._sfc_main,{key:0,src:a.imgUrl},null,8,["src"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"previewExample-video-icon",onClick:e.withModifiers(r=>g(a,s,"video"),["stop"])},[e.createVNode(y._sfc_main,{name:"play","aria-label":"播放"})],8,J)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64)),n.label&&n.label.length>0||a.label&&a.label.length>0?(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString(n.label&&n.label.length>0?n.label:a.label),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64)),n.showNum>-1&&s===p.value.length-1&&d.totalCount>n.showNum?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("span",null,"共"+e.toDisplayString(d.totalCount)+e.toDisplayString(n.type==="image"?"张":"个"),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[],64)),e.renderSlot(t.$slots,"extend",{data:a,inx:s})],16))),128)),n.isShowLoading&&n.isLoading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([`previewExample-${n.type}`]),style:e.normalizeStyle(k.value)},[e.createVNode(L._sfc_main,{theme:"circleNotch",size:"large"})],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2)],10,M))}});exports._sfc_main=U;
1
+ "use strict";const e=require("vue"),i=require("./base-DbuX_Y3x.js"),v=require("./index-rFJmbgyH.js"),y=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),w=require("./Index.vue_vue_type_script_setup_true_lang-D4PQKd5b.js"),L=require("./Index.vue_vue_type_script_setup_true_lang-Bbk1BxEq.js"),M=["id"],P={class:"previewExample-image-icon"},q={class:"previewExample-video-img previewExample-image"},J=["onClick"],W={key:3,class:"previewExample-label-msg"},K={key:5,class:"previewExample-totalCount"},U=e.defineComponent({name:"ClPreviewExample",__name:"Index",props:{id:String,className:String,classContainer:String,classItem:String,type:{type:String,default:"image",validator:n=>["image","video"].includes(n)},width:{type:[Number,String],default:"auto"},height:{type:Number,required:!0},isWidthFull:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},label:String,previewIconSize:{type:String,default:"large"},isShowLoading:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isShowDelete:{type:Boolean,default:!1},showNum:{type:Number,default:-1},srcValueKey:{type:String,default:"value"},isShowCopy:{type:Boolean,default:!0},isClickImagePreview:{type:Boolean,default:!1},previewCallback:Function},emits:["onDelete"],setup(n,{emit:C}){const o=n,B=C,u=e.inject("$ClGlobals",null),E=`previewexample-${i.CommonBase.getRandom(5)}`,f=o.id,d=e.reactive({totalCount:-1}),p=e.ref([]),S=e.computed(()=>{const{width:t}=o;let l=!1;return(i.CommonBase.isEmpty(t)||typeof t=="string"&&t==="auto"||typeof t=="number"&&t<=0)&&(l=!0),l}),_=e.computed(()=>{let t={"panel-preview-example":!0,"previewExample-width-default":o.isWidthFull,"previewExample-width-auto":!o.isWidthFull};return t=i.CommonBase.getJsonMerge(t,v.CommonElement.getClassNameJson(o.className)),t}),N=e.computed(()=>{let t={"previewExample-container":!0};return t=i.CommonBase.getJsonMerge(t,v.CommonElement.getClassNameJson(o.classContainer)),t}),b=e.computed(()=>{const{type:t,previewIconSize:l}=o;let a={"previewExample-item":!0};return a[`previewExample-${t}`]=!0,a[`previewExample-iconSize-${l}`]=!0,a=i.CommonBase.getJsonMerge(a,v.CommonElement.getClassNameJson(o.classItem)),a}),k=e.computed(()=>{const t={height:`${o.height}px`};if(!S.value){let l=o.width.toString();l.indexOf("%")===-1&&(l=`${o.width}px`),t.width=l}return t}),x=t=>{B("onDelete",t)},h=()=>{const{list:t,showNum:l,srcValueKey:a}=o;let s=i.CommonBase.getListClone(t),r=t.length;l>0&&t.length>=l&&(r=l);const c=[];s.forEach((m,z)=>{if(!i.CommonBase.isEmpty(m)&&z+1<=r)if(i.CommonBase.isString(m))c.push({value:m});else{const D=i.CommonBase.isExistJsonKey(m,a)?m[a]:m.value;c.push({...m,value:D})}}),s=c,d.totalCount=t.length,p.value=s},I=()=>{h()},$=t=>{const l={};return i.CommonBase.isEmpty(t.id)||(l["data-id"]=t.id),i.CommonBase.isEmpty(t.ranId)||(l["data-ran-id"]=t.ranId),l};e.onMounted(()=>{e.nextTick(()=>{I()})}),e.watch(()=>o.list,()=>{h()},{deep:!0});const F=(t,l)=>{o.isClickImagePreview&&g(t,l,"image")},g=(t,l,a)=>{try{if(o.previewCallback)o.previewCallback(a,t,l);else{if(!u||i.CommonBase.isEmpty(u.preview))return;const{list:s}=o;let r;s.length===1?r=t.value:r=s.map(c=>i.CommonBase.isString(c)?c:c.value),u.preview.show({type:a,src:r,showIndex:l,isShowCopy:o.isShowCopy})}}catch{}},V=t=>{x(t)};return(t,l)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(f),class:e.normalizeClass(_.value)},[e.createElementVNode("div",{class:e.normalizeClass(N.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:`${E}-${s}`,class:b.value,style:k.value},{ref_for:!0},$(a)),[n.type==="image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(w._sfc_main,{src:a.value,class:e.normalizeClass({"cursor-pointer":n.isClickImagePreview}),onClick:e.withModifiers(r=>F(a,s),["stop"])},null,8,["src","class","onClick"]),e.createElementVNode("div",P,[e.createVNode(y._sfc_main,{title:"预览",name:"search","aria-label":"预览",onClick:e.withModifiers(r=>g(a,s,"image"),["stop"])},null,8,["onClick"]),n.isShowDelete?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,title:"删除",name:"close","aria-label":"删除",onClick:e.withModifiers(r=>V(s),["stop"])},null,8,["onClick"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],64)):n.type==="video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",q,[a.imgUrl&&a.imgUrl.length>0?(e.openBlock(),e.createBlock(w._sfc_main,{key:0,src:a.imgUrl},null,8,["src"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"previewExample-video-icon",onClick:e.withModifiers(r=>g(a,s,"video"),["stop"])},[e.createVNode(y._sfc_main,{name:"play","aria-label":"播放"})],8,J)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64)),n.label&&n.label.length>0||a.label&&a.label.length>0?(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString(n.label&&n.label.length>0?n.label:a.label),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64)),n.showNum>-1&&s===p.value.length-1&&d.totalCount>n.showNum?(e.openBlock(),e.createElementBlock("div",K,[e.createElementVNode("span",null,"共"+e.toDisplayString(d.totalCount)+e.toDisplayString(n.type==="image"?"张":"个"),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[],64)),e.renderSlot(t.$slots,"extend",{data:a,inx:s})],16))),128)),n.isShowLoading&&n.isLoading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([`previewExample-${n.type}`]),style:e.normalizeStyle(k.value)},[e.createVNode(L._sfc_main,{theme:"circleNotch",size:"large"})],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2)],10,M))}});exports._sfc_main=U;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");;/* empty css */;/* empty css */const o=require("./base-DbuX_Y3x.js"),M=require("./index-rFJmbgyH.js"),f=require("./Index.vue_vue_type_script_setup_true_lang-DU1H_1lY.js"),P=require("./index-CmFWmRVX.js"),A=["id"],L={key:0,class:"cl-plaintext-value"},j=["id","name","value","disabled","checked","onClick"],K=["for"],R={key:0},z=e.defineComponent({name:"ClCheckbox",directives:{cltooltip:P.tooltipDirectives},__name:"Index",props:{id:String,name:{type:String,required:!0},value:{type:String,required:!0},className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},circle:{type:Boolean,default:!1},width:String,isInline:{type:Boolean,default:!0},tipMode:{type:String,default:"tooltip",validator:u=>["tooltip","clickCallback"].includes(u)},checkChangeBefore:{type:Function,default:void 0},isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","}},emits:["update:value","update:modelValue","onChange","onInit","onError","onTipClick"],setup(u,{expose:x,emit:S}){const i=u,d=S,h=`checkbox-${o.CommonBase.getRandom(5)}`,g=o.CommonBase.isEmpty(i.name)?h+"_name":i.name,b=i.id,l=e.ref(o.CommonBase.split(i.value)),c=e.ref(!1);let r={};const y=e.ref(0),p={isProcessing:!1,_initEmitted:!1},V=e.computed(()=>{if(i.isPlaintext)return[];const t=i.list;return o.CommonBase.isArray(t)?t.filter(s=>!o.CommonBase.isEmpty(s)):[]}),N=e.computed(()=>{const t=o.CommonBase.isString(i.plaintextSeparator)?i.plaintextSeparator:",";i.list,y.value;const s=[];return l.value.forEach(a=>{const n=o.CommonBase.isExistJsonKey(r,a)?r[a]:void 0;n&&o.CommonBase.isNonEmptyString(n.name)&&s.push(n.name)}),s.join(t)}),I=e.computed(()=>o.CommonBase.getJsonMerge({"panel-checkbox":!0},M.CommonElement.getClassNameJson(i.className))),w=e.computed(()=>{const t={checkbox:!0,"checkbox-default":!0};return t["checkbox-inline"]=i.isInline,t["checkbox-circle"]=i.circle,t}),q=t=>{const s={},{width:a}=i;return t&&!o.CommonBase.isEmpty(t.width)?s.width=t.width:o.CommonBase.isEmpty(a)||(s.width=i.width),s},_=t=>{d("update:value",t),d("update:modelValue",t)},D=t=>{const s=[];o.CommonBase.isEmpty(t)||o.CommonBase.split(t).forEach(n=>{o.CommonBase.isExistJsonKey(r,n)&&s.push(o.CommonBase.getJsonClone(r[n]))});const a=s.length>0&&s.length===(i.list?.length??0);_(t),d("onChange",t,s,a)},k=()=>{p._initEmitted||(p._initEmitted=!0,e.nextTick(()=>{d("onInit")}))},E=()=>{const t=[];return l.value.forEach(s=>{o.CommonBase.isExistJsonKey(r,s)&&t.push(s)}),t},C=t=>{r=o.CommonBase.isEmpty(t)?{}:o.CommonBase.getJsonByList(t),y.value+=1},B=()=>{if(c.value&&!o.CommonBase.isEmpty(l.value)){const t=E();o.CommonBase.isEqualArr(l.value,t)||(l.value=t,_(t.join(",")))}},v=t=>{const s=o.CommonBase.split(t);let a=o.CommonBase.isEqualArr(l.value,s);a&&(a=t===l.value.join(",")),a||(l.value=s)},$=()=>{c.value=(i.list?.length??0)!==0,C(i.list),B()};e.onMounted(()=>{e.nextTick(()=>{$()})}),e.watch(c,t=>{t&&k()}),e.watch(()=>i.list,t=>{c.value||(c.value=!0,t.length===0&&B(),k())}),e.watch([()=>i.value,()=>i.list],([t,s])=>{const a=s;!c.value&&a.length>0&&(c.value=!0,k()),C(a),v(t),B()});const J=t=>{d("onTipClick",t)},T=async t=>{if(!(!t||t.isDisabled||i.disabled||p.isProcessing)&&!o.CommonBase.isEmpty(t.id)){p.isProcessing=!0;try{const s=String(t.id??"");let a=o.CommonBase.getArrClone(l.value);o.CommonBase.isExistValue(l.value,s)?a=o.CommonBase.getArrRemoveById(a,s):a.push(s);const n=a.join(",");let m=!0;if(i.checkChangeBefore)try{m=await i.checkChangeBefore(n),m=o.CommonBase.isBoolean(m)?m:!0}catch{m=!1}if(i.disabled||t.isDisabled)return;m&&(l.value=a,D(n))}catch(s){d("onError",s)}finally{p.isProcessing=!1}}};return x({getValue:()=>E().join(","),getValueData:()=>{const t=[];return l.value.forEach(s=>{o.CommonBase.isExistJsonKey(r,s)&&t.push(o.CommonBase.getJsonClone(r[s]))}),t},setValue:t=>{p.isProcessing||(v(t),B())},runInitComplete:()=>{c.value||(c.value=!0,C(i.list),v(i.value),B(),k())}}),(t,s)=>{const a=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(I.value),id:e.unref(b)},[u.isPlaintext?(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(N.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(n,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${h}-${n.id??""}-${m}`},[n.isShow||n.isShow===void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(w.value),style:e.normalizeStyle(q(n))},[e.createElementVNode("span",null,[e.createElementVNode("span",null,[e.createElementVNode("input",{type:"checkbox",id:`${h}_${e.unref(g)}_${n.id??""}`,name:e.unref(g),value:n.id??"",disabled:n.isDisabled||u.disabled,checked:l.value.includes(String(n.id??"")),onClick:F=>T(n)},null,8,j),e.createElementVNode("label",{for:`${h}_${e.unref(g)}_${n.id??""}`},[e.renderSlot(t.$slots,"default",{data:n},()=>[n.icon&&n.icon.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("span",R,[e.createVNode(f._sfc_main,{name:n.icon},null,8,["name"])])),[[a,{html:n.name,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.name),1)],64))])],8,K)]),n.tipMsg&&n.tipMsg.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.tipMode==="tooltip"?e.withDirectives((e.openBlock(),e.createBlock(f._sfc_main,{key:0,name:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"checkbox-icon-tip"},null,8,["name","className"])),[[a,{html:n.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createBlock(f._sfc_main,{key:1,name:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(o.CommonBase).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"checkbox-icon-tip",onClick:e.withModifiers(F=>J(n),["stop"])},null,8,["name","className","onClick"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))),128))],10,A)}}});exports._sfc_main=z;