@cldemo/ui-kit 1.0.0

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 (720) hide show
  1. package/COMPONENT_CATALOG.md +210 -0
  2. package/LICENSE +21 -0
  3. package/README.md +120 -0
  4. package/buildLibs/all/index.cjs +99 -0
  5. package/buildLibs/all/index.cjs.map +1 -0
  6. package/buildLibs/all/index.d.ts +83 -0
  7. package/buildLibs/all/index.js +168 -0
  8. package/buildLibs/all/index.js.map +1 -0
  9. package/buildLibs/common/Element/Event/drag.d.ts +24 -0
  10. package/buildLibs/common/Element/Event/index.d.ts +9 -0
  11. package/buildLibs/common/Element/Event/resize.d.ts +20 -0
  12. package/buildLibs/common/Element/index.d.ts +104 -0
  13. package/buildLibs/common/Element_Event_drag-DeZYlveu.js +430 -0
  14. package/buildLibs/common/Element_Event_drag-DeZYlveu.js.map +1 -0
  15. package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs +3 -0
  16. package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs.map +1 -0
  17. package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs +2 -0
  18. package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs.map +1 -0
  19. package/buildLibs/common/Element_Event_resize-DqH_UT2k.js +49 -0
  20. package/buildLibs/common/Element_Event_resize-DqH_UT2k.js.map +1 -0
  21. package/buildLibs/common/Tools/animateEasing.d.ts +27 -0
  22. package/buildLibs/common/Tools/cookie.d.ts +8 -0
  23. package/buildLibs/common/Tools/delayFun.d.ts +9 -0
  24. package/buildLibs/common/Tools/index.d.ts +15 -0
  25. package/buildLibs/common/Tools/localStorage.d.ts +9 -0
  26. package/buildLibs/common/Tools/number.d.ts +8 -0
  27. package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs +2 -0
  28. package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs.map +1 -0
  29. package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js +50 -0
  30. package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js.map +1 -0
  31. package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs +2 -0
  32. package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs.map +1 -0
  33. package/buildLibs/common/Tools_cookie-DKctMXdK.js +31 -0
  34. package/buildLibs/common/Tools_cookie-DKctMXdK.js.map +1 -0
  35. package/buildLibs/common/Tools_delayFun-CA1ktv1L.js +21 -0
  36. package/buildLibs/common/Tools_delayFun-CA1ktv1L.js.map +1 -0
  37. package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs +2 -0
  38. package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs.map +1 -0
  39. package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs +2 -0
  40. package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs.map +1 -0
  41. package/buildLibs/common/Tools_localStorage-DVvhtzhL.js +48 -0
  42. package/buildLibs/common/Tools_localStorage-DVvhtzhL.js.map +1 -0
  43. package/buildLibs/common/Tools_number-Bh6hGO5U.cjs +2 -0
  44. package/buildLibs/common/Tools_number-Bh6hGO5U.cjs.map +1 -0
  45. package/buildLibs/common/Tools_number-C_MjN473.js +22 -0
  46. package/buildLibs/common/Tools_number-C_MjN473.js.map +1 -0
  47. package/buildLibs/common/axios-DZoeNi6y.cjs +2 -0
  48. package/buildLibs/common/axios-DZoeNi6y.cjs.map +1 -0
  49. package/buildLibs/common/axios-DqkFEq4Y.js +242 -0
  50. package/buildLibs/common/axios-DqkFEq4Y.js.map +1 -0
  51. package/buildLibs/common/axios.d.ts +28 -0
  52. package/buildLibs/common/base-PQGakkrl.js +808 -0
  53. package/buildLibs/common/base-PQGakkrl.js.map +1 -0
  54. package/buildLibs/common/base-iCmnU-fv.cjs +2 -0
  55. package/buildLibs/common/base-iCmnU-fv.cjs.map +1 -0
  56. package/buildLibs/common/base.d.ts +222 -0
  57. package/buildLibs/common/day-BzMalBXj.cjs +2 -0
  58. package/buildLibs/common/day-BzMalBXj.cjs.map +1 -0
  59. package/buildLibs/common/day-Dm_AnEZp.js +75 -0
  60. package/buildLibs/common/day-Dm_AnEZp.js.map +1 -0
  61. package/buildLibs/common/day.d.ts +25 -0
  62. package/buildLibs/common/echart-BtfUJ8lE.js +498 -0
  63. package/buildLibs/common/echart-BtfUJ8lE.js.map +1 -0
  64. package/buildLibs/common/echart-Cs3rQ-e9.cjs +2 -0
  65. package/buildLibs/common/echart-Cs3rQ-e9.cjs.map +1 -0
  66. package/buildLibs/common/echart.d.ts +82 -0
  67. package/buildLibs/common/i18n/en.d.ts +111 -0
  68. package/buildLibs/common/i18n/index.d.ts +25 -0
  69. package/buildLibs/common/i18n/zh_CN.d.ts +111 -0
  70. package/buildLibs/common/i18n_en-BHhFEbi6.js +114 -0
  71. package/buildLibs/common/i18n_en-BHhFEbi6.js.map +1 -0
  72. package/buildLibs/common/i18n_en-D-5antzy.cjs +2 -0
  73. package/buildLibs/common/i18n_en-D-5antzy.cjs.map +1 -0
  74. package/buildLibs/common/i18n_zh_CN-COzQ8Los.js +114 -0
  75. package/buildLibs/common/i18n_zh_CN-COzQ8Los.js.map +1 -0
  76. package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs +2 -0
  77. package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs.map +1 -0
  78. package/buildLibs/common/index.cjs +2 -0
  79. package/buildLibs/common/index.cjs.map +1 -0
  80. package/buildLibs/common/index.d.ts +10 -0
  81. package/buildLibs/common/index.js +124 -0
  82. package/buildLibs/common/index.js.map +1 -0
  83. package/buildLibs/common/promise-BtoePzHD.cjs +2 -0
  84. package/buildLibs/common/promise-BtoePzHD.cjs.map +1 -0
  85. package/buildLibs/common/promise-CPiVqqqL.js +44 -0
  86. package/buildLibs/common/promise-CPiVqqqL.js.map +1 -0
  87. package/buildLibs/common/promise.d.ts +14 -0
  88. package/buildLibs/common/tooltip-De0atcAJ.js +215 -0
  89. package/buildLibs/common/tooltip-De0atcAJ.js.map +1 -0
  90. package/buildLibs/common/tooltip-Dj_ol2ax.cjs +2 -0
  91. package/buildLibs/common/tooltip-Dj_ol2ax.cjs.map +1 -0
  92. package/buildLibs/common/tooltip.d.ts +37 -0
  93. package/buildLibs/mobile/index.cjs +56 -0
  94. package/buildLibs/mobile/index.cjs.map +1 -0
  95. package/buildLibs/mobile/index.d.ts +47 -0
  96. package/buildLibs/mobile/index.js +96 -0
  97. package/buildLibs/mobile/index.js.map +1 -0
  98. package/buildLibs/resolver/index.cjs +2 -0
  99. package/buildLibs/resolver/index.cjs.map +1 -0
  100. package/buildLibs/resolver/index.js +82 -0
  101. package/buildLibs/resolver/index.js.map +1 -0
  102. package/buildLibs/resolver/resolver.d.ts +7 -0
  103. package/buildLibs/utils/Element/ClAnchorNav.cjs +2 -0
  104. package/buildLibs/utils/Element/ClAnchorNav.cjs.map +1 -0
  105. package/buildLibs/utils/Element/ClAnchorNav.css +1 -0
  106. package/buildLibs/utils/Element/ClAnchorNav.d.ts +3 -0
  107. package/buildLibs/utils/Element/ClAnchorNav.js +55 -0
  108. package/buildLibs/utils/Element/ClAnchorNav.js.map +1 -0
  109. package/buildLibs/utils/Element/ClBadge.cjs +2 -0
  110. package/buildLibs/utils/Element/ClBadge.cjs.map +1 -0
  111. package/buildLibs/utils/Element/ClBadge.d.ts +3 -0
  112. package/buildLibs/utils/Element/ClBadge.js +5 -0
  113. package/buildLibs/utils/Element/ClBadge.js.map +1 -0
  114. package/buildLibs/utils/Element/ClButton.cjs +2 -0
  115. package/buildLibs/utils/Element/ClButton.cjs.map +1 -0
  116. package/buildLibs/utils/Element/ClButton.css +1 -0
  117. package/buildLibs/utils/Element/ClButton.d.ts +3 -0
  118. package/buildLibs/utils/Element/ClButton.js +226 -0
  119. package/buildLibs/utils/Element/ClButton.js.map +1 -0
  120. package/buildLibs/utils/Element/ClCheckbox.cjs +2 -0
  121. package/buildLibs/utils/Element/ClCheckbox.cjs.map +1 -0
  122. package/buildLibs/utils/Element/ClCheckbox.d.ts +3 -0
  123. package/buildLibs/utils/Element/ClCheckbox.js +205 -0
  124. package/buildLibs/utils/Element/ClCheckbox.js.map +1 -0
  125. package/buildLibs/utils/Element/ClCheckboxOne.d.ts +3 -0
  126. package/buildLibs/utils/Element/ClClipboard.cjs +2 -0
  127. package/buildLibs/utils/Element/ClClipboard.cjs.map +1 -0
  128. package/buildLibs/utils/Element/ClClipboard.d.ts +3 -0
  129. package/buildLibs/utils/Element/ClClipboard.js +5 -0
  130. package/buildLibs/utils/Element/ClClipboard.js.map +1 -0
  131. package/buildLibs/utils/Element/ClCountup.cjs +2 -0
  132. package/buildLibs/utils/Element/ClCountup.cjs.map +1 -0
  133. package/buildLibs/utils/Element/ClCountup.d.ts +3 -0
  134. package/buildLibs/utils/Element/ClCountup.js +56 -0
  135. package/buildLibs/utils/Element/ClCountup.js.map +1 -0
  136. package/buildLibs/utils/Element/ClCropper.cjs +2 -0
  137. package/buildLibs/utils/Element/ClCropper.cjs.map +1 -0
  138. package/buildLibs/utils/Element/ClCropper.d.ts +3 -0
  139. package/buildLibs/utils/Element/ClCropper.js +5 -0
  140. package/buildLibs/utils/Element/ClCropper.js.map +1 -0
  141. package/buildLibs/utils/Element/ClCropperPreview.css +1 -0
  142. package/buildLibs/utils/Element/ClDarg.cjs +7 -0
  143. package/buildLibs/utils/Element/ClDarg.cjs.map +1 -0
  144. package/buildLibs/utils/Element/ClDarg.css +1 -0
  145. package/buildLibs/utils/Element/ClDarg.d.ts +3 -0
  146. package/buildLibs/utils/Element/ClDarg.js +1554 -0
  147. package/buildLibs/utils/Element/ClDarg.js.map +1 -0
  148. package/buildLibs/utils/Element/ClEllipsis.cjs +2 -0
  149. package/buildLibs/utils/Element/ClEllipsis.cjs.map +1 -0
  150. package/buildLibs/utils/Element/ClEllipsis.css +1 -0
  151. package/buildLibs/utils/Element/ClEllipsis.d.ts +3 -0
  152. package/buildLibs/utils/Element/ClEllipsis.js +99 -0
  153. package/buildLibs/utils/Element/ClEllipsis.js.map +1 -0
  154. package/buildLibs/utils/Element/ClForm.cjs +2 -0
  155. package/buildLibs/utils/Element/ClForm.cjs.map +1 -0
  156. package/buildLibs/utils/Element/ClForm.css +1 -0
  157. package/buildLibs/utils/Element/ClForm.d.ts +3 -0
  158. package/buildLibs/utils/Element/ClForm.js +139 -0
  159. package/buildLibs/utils/Element/ClForm.js.map +1 -0
  160. package/buildLibs/utils/Element/ClFormGroup.cjs +2 -0
  161. package/buildLibs/utils/Element/ClFormGroup.cjs.map +1 -0
  162. package/buildLibs/utils/Element/ClFormGroup.css +1 -0
  163. package/buildLibs/utils/Element/ClFormGroup.d.ts +3 -0
  164. package/buildLibs/utils/Element/ClFormGroup.js +76 -0
  165. package/buildLibs/utils/Element/ClFormGroup.js.map +1 -0
  166. package/buildLibs/utils/Element/ClFormValidate.d.ts +3 -0
  167. package/buildLibs/utils/Element/ClIconFont.cjs +2 -0
  168. package/buildLibs/utils/Element/ClIconFont.cjs.map +1 -0
  169. package/buildLibs/utils/Element/ClIconFont.d.ts +3 -0
  170. package/buildLibs/utils/Element/ClIconFont.js +5 -0
  171. package/buildLibs/utils/Element/ClIconFont.js.map +1 -0
  172. package/buildLibs/utils/Element/ClImage.cjs +2 -0
  173. package/buildLibs/utils/Element/ClImage.cjs.map +1 -0
  174. package/buildLibs/utils/Element/ClImage.css +1 -0
  175. package/buildLibs/utils/Element/ClImage.d.ts +3 -0
  176. package/buildLibs/utils/Element/ClImage.js +195 -0
  177. package/buildLibs/utils/Element/ClImage.js.map +1 -0
  178. package/buildLibs/utils/Element/ClInput.cjs +2 -0
  179. package/buildLibs/utils/Element/ClInput.cjs.map +1 -0
  180. package/buildLibs/utils/Element/ClInput.d.ts +3 -0
  181. package/buildLibs/utils/Element/ClInput.js +5 -0
  182. package/buildLibs/utils/Element/ClInput.js.map +1 -0
  183. package/buildLibs/utils/Element/ClInputCaptcha.cjs +2 -0
  184. package/buildLibs/utils/Element/ClInputCaptcha.cjs.map +1 -0
  185. package/buildLibs/utils/Element/ClInputCaptcha.css +1 -0
  186. package/buildLibs/utils/Element/ClInputCaptcha.d.ts +3 -0
  187. package/buildLibs/utils/Element/ClInputCaptcha.js +111 -0
  188. package/buildLibs/utils/Element/ClInputCaptcha.js.map +1 -0
  189. package/buildLibs/utils/Element/ClInputNumber.cjs +2 -0
  190. package/buildLibs/utils/Element/ClInputNumber.cjs.map +1 -0
  191. package/buildLibs/utils/Element/ClInputNumber.d.ts +3 -0
  192. package/buildLibs/utils/Element/ClInputNumber.js +5 -0
  193. package/buildLibs/utils/Element/ClInputNumber.js.map +1 -0
  194. package/buildLibs/utils/Element/ClInputSearch.cjs +2 -0
  195. package/buildLibs/utils/Element/ClInputSearch.cjs.map +1 -0
  196. package/buildLibs/utils/Element/ClInputSearch.d.ts +3 -0
  197. package/buildLibs/utils/Element/ClInputSearch.js +5 -0
  198. package/buildLibs/utils/Element/ClInputSearch.js.map +1 -0
  199. package/buildLibs/utils/Element/ClInputTag.css +1 -0
  200. package/buildLibs/utils/Element/ClInputTextarea.cjs +2 -0
  201. package/buildLibs/utils/Element/ClInputTextarea.cjs.map +1 -0
  202. package/buildLibs/utils/Element/ClInputTextarea.d.ts +3 -0
  203. package/buildLibs/utils/Element/ClInputTextarea.js +5 -0
  204. package/buildLibs/utils/Element/ClInputTextarea.js.map +1 -0
  205. package/buildLibs/utils/Element/ClInputnumberButton.d.ts +3 -0
  206. package/buildLibs/utils/Element/ClLink.cjs +2 -0
  207. package/buildLibs/utils/Element/ClLink.cjs.map +1 -0
  208. package/buildLibs/utils/Element/ClLink.d.ts +3 -0
  209. package/buildLibs/utils/Element/ClLink.js +5 -0
  210. package/buildLibs/utils/Element/ClLink.js.map +1 -0
  211. package/buildLibs/utils/Element/ClLoad.cjs +2 -0
  212. package/buildLibs/utils/Element/ClLoad.cjs.map +1 -0
  213. package/buildLibs/utils/Element/ClLoad.d.ts +3 -0
  214. package/buildLibs/utils/Element/ClLoad.js +5 -0
  215. package/buildLibs/utils/Element/ClLoad.js.map +1 -0
  216. package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +3 -0
  217. package/buildLibs/utils/Element/ClLoadIng.d.ts +3 -0
  218. package/buildLibs/utils/Element/ClLoadScreen.cjs +2 -0
  219. package/buildLibs/utils/Element/ClLoadScreen.cjs.map +1 -0
  220. package/buildLibs/utils/Element/ClLoadScreen.d.ts +3 -0
  221. package/buildLibs/utils/Element/ClLoadScreen.js +5 -0
  222. package/buildLibs/utils/Element/ClLoadScreen.js.map +1 -0
  223. package/buildLibs/utils/Element/ClLoadWarp.d.ts +3 -0
  224. package/buildLibs/utils/Element/ClModal.cjs +2 -0
  225. package/buildLibs/utils/Element/ClModal.cjs.map +1 -0
  226. package/buildLibs/utils/Element/ClModal.d.ts +3 -0
  227. package/buildLibs/utils/Element/ClModal.js +5 -0
  228. package/buildLibs/utils/Element/ClModal.js.map +1 -0
  229. package/buildLibs/utils/Element/ClProgress.cjs +2 -0
  230. package/buildLibs/utils/Element/ClProgress.cjs.map +1 -0
  231. package/buildLibs/utils/Element/ClProgress.css +1 -0
  232. package/buildLibs/utils/Element/ClProgress.d.ts +3 -0
  233. package/buildLibs/utils/Element/ClProgress.js +219 -0
  234. package/buildLibs/utils/Element/ClProgress.js.map +1 -0
  235. package/buildLibs/utils/Element/ClRadio.cjs +2 -0
  236. package/buildLibs/utils/Element/ClRadio.cjs.map +1 -0
  237. package/buildLibs/utils/Element/ClRadio.d.ts +3 -0
  238. package/buildLibs/utils/Element/ClRadio.js +176 -0
  239. package/buildLibs/utils/Element/ClRadio.js.map +1 -0
  240. package/buildLibs/utils/Element/ClRadioOne.d.ts +3 -0
  241. package/buildLibs/utils/Element/ClSlider.cjs +2 -0
  242. package/buildLibs/utils/Element/ClSlider.cjs.map +1 -0
  243. package/buildLibs/utils/Element/ClSlider.css +1 -0
  244. package/buildLibs/utils/Element/ClSlider.d.ts +3 -0
  245. package/buildLibs/utils/Element/ClSlider.js +721 -0
  246. package/buildLibs/utils/Element/ClSlider.js.map +1 -0
  247. package/buildLibs/utils/Element/ClSwitchery.cjs +2 -0
  248. package/buildLibs/utils/Element/ClSwitchery.cjs.map +1 -0
  249. package/buildLibs/utils/Element/ClSwitchery.css +1 -0
  250. package/buildLibs/utils/Element/ClSwitchery.d.ts +3 -0
  251. package/buildLibs/utils/Element/ClSwitchery.js +429 -0
  252. package/buildLibs/utils/Element/ClSwitchery.js.map +1 -0
  253. package/buildLibs/utils/Element/ClTags.cjs +2 -0
  254. package/buildLibs/utils/Element/ClTags.cjs.map +1 -0
  255. package/buildLibs/utils/Element/ClTags.d.ts +3 -0
  256. package/buildLibs/utils/Element/ClTags.js +5 -0
  257. package/buildLibs/utils/Element/ClTags.js.map +1 -0
  258. package/buildLibs/utils/Element/ClTransitionSlideupdown.d.ts +3 -0
  259. package/buildLibs/utils/Element/ClWaterfall.cjs +2 -0
  260. package/buildLibs/utils/Element/ClWaterfall.cjs.map +1 -0
  261. package/buildLibs/utils/Element/ClWaterfall.css +1 -0
  262. package/buildLibs/utils/Element/ClWaterfall.d.ts +3 -0
  263. package/buildLibs/utils/Element/ClWaterfall.js +167 -0
  264. package/buildLibs/utils/Element/ClWaterfall.js.map +1 -0
  265. package/buildLibs/utils/Element/ClWaterfallImage.d.ts +3 -0
  266. package/buildLibs/utils/Element/__provide__/Clipboard.cjs +2 -0
  267. package/buildLibs/utils/Element/__provide__/Clipboard.cjs.map +1 -0
  268. package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +2 -0
  269. package/buildLibs/utils/Element/__provide__/Clipboard.js +62 -0
  270. package/buildLibs/utils/Element/__provide__/Clipboard.js.map +1 -0
  271. package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +2 -0
  272. package/buildLibs/utils/Element/__provide__/LoadScreen.cjs.map +1 -0
  273. package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +2 -0
  274. package/buildLibs/utils/Element/__provide__/LoadScreen.js +17 -0
  275. package/buildLibs/utils/Element/__provide__/LoadScreen.js.map +1 -0
  276. package/buildLibs/utils/Element/__provide__/languagePack.cjs +2 -0
  277. package/buildLibs/utils/Element/__provide__/languagePack.cjs.map +1 -0
  278. package/buildLibs/utils/Element/__provide__/languagePack.d.ts +2 -0
  279. package/buildLibs/utils/Element/__provide__/languagePack.js +29 -0
  280. package/buildLibs/utils/Element/__provide__/languagePack.js.map +1 -0
  281. package/buildLibs/utils/Mobile/ClCell.cjs +2 -0
  282. package/buildLibs/utils/Mobile/ClCell.cjs.map +1 -0
  283. package/buildLibs/utils/Mobile/ClCell.css +1 -0
  284. package/buildLibs/utils/Mobile/ClCell.d.ts +3 -0
  285. package/buildLibs/utils/Mobile/ClCell.js +130 -0
  286. package/buildLibs/utils/Mobile/ClCell.js.map +1 -0
  287. package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +2 -0
  288. package/buildLibs/utils/Mobile/ClPullToRefresh.cjs.map +1 -0
  289. package/buildLibs/utils/Mobile/ClPullToRefresh.css +1 -0
  290. package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +3 -0
  291. package/buildLibs/utils/Mobile/ClPullToRefresh.js +195 -0
  292. package/buildLibs/utils/Mobile/ClPullToRefresh.js.map +1 -0
  293. package/buildLibs/utils/Shared/Alert.css +1 -0
  294. package/buildLibs/utils/Shared/Base.css +1 -0
  295. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js +2 -0
  296. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js.map +1 -0
  297. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js +354 -0
  298. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js.map +1 -0
  299. package/buildLibs/utils/Shared/BaseTransition.css +1 -0
  300. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js +2 -0
  301. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js.map +1 -0
  302. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js +121 -0
  303. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js.map +1 -0
  304. package/buildLibs/utils/Shared/Highlight.css +1 -0
  305. package/buildLibs/utils/Shared/Index.css +1 -0
  306. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js +233 -0
  307. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js.map +1 -0
  308. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js +75 -0
  309. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js.map +1 -0
  310. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js +2 -0
  311. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js.map +1 -0
  312. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js +2 -0
  313. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js.map +1 -0
  314. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js +2 -0
  315. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js.map +1 -0
  316. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js +143 -0
  317. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js.map +1 -0
  318. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js +2 -0
  319. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js.map +1 -0
  320. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js +24 -0
  321. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js.map +1 -0
  322. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js +1146 -0
  323. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js.map +1 -0
  324. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js +336 -0
  325. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js.map +1 -0
  326. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js +2 -0
  327. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js.map +1 -0
  328. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js +2 -0
  329. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js.map +1 -0
  330. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js +165 -0
  331. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js.map +1 -0
  332. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js +2 -0
  333. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js.map +1 -0
  334. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js +168 -0
  335. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js.map +1 -0
  336. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js +2 -0
  337. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js.map +1 -0
  338. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js +2 -0
  339. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js.map +1 -0
  340. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js +70 -0
  341. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js.map +1 -0
  342. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js +2 -0
  343. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js.map +1 -0
  344. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js +84 -0
  345. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js.map +1 -0
  346. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js +2 -0
  347. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js.map +1 -0
  348. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js +98 -0
  349. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js.map +1 -0
  350. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js +342 -0
  351. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js.map +1 -0
  352. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js +166 -0
  353. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js.map +1 -0
  354. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js +2 -0
  355. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js.map +1 -0
  356. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js +2 -0
  357. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js.map +1 -0
  358. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js +384 -0
  359. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js.map +1 -0
  360. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js +462 -0
  361. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js.map +1 -0
  362. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js +2 -0
  363. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js.map +1 -0
  364. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js +2 -0
  365. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js.map +1 -0
  366. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js +2 -0
  367. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js.map +1 -0
  368. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js +2 -0
  369. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js.map +1 -0
  370. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js +593 -0
  371. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js.map +1 -0
  372. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js +54 -0
  373. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js.map +1 -0
  374. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js +144 -0
  375. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js.map +1 -0
  376. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js +2 -0
  377. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js.map +1 -0
  378. package/buildLibs/utils/Shared/Index10.css +1 -0
  379. package/buildLibs/utils/Shared/Index11.css +1 -0
  380. package/buildLibs/utils/Shared/Index12.css +1 -0
  381. package/buildLibs/utils/Shared/Index13.css +1 -0
  382. package/buildLibs/utils/Shared/Index14.css +1 -0
  383. package/buildLibs/utils/Shared/Index15.css +1 -0
  384. package/buildLibs/utils/Shared/Index16.css +1 -0
  385. package/buildLibs/utils/Shared/Index17.css +1 -0
  386. package/buildLibs/utils/Shared/Index18.css +1 -0
  387. package/buildLibs/utils/Shared/Index19.css +1 -0
  388. package/buildLibs/utils/Shared/Index2.css +1 -0
  389. package/buildLibs/utils/Shared/Index3.css +1 -0
  390. package/buildLibs/utils/Shared/Index4.css +1 -0
  391. package/buildLibs/utils/Shared/Index5.css +1 -0
  392. package/buildLibs/utils/Shared/Index6.css +1 -0
  393. package/buildLibs/utils/Shared/Index7.css +1 -0
  394. package/buildLibs/utils/Shared/Index8.css +1 -0
  395. package/buildLibs/utils/Shared/Index9.css +1 -0
  396. package/buildLibs/utils/Shared/Ing-C_3NkQxd.js +43 -0
  397. package/buildLibs/utils/Shared/Ing-C_3NkQxd.js.map +1 -0
  398. package/buildLibs/utils/Shared/Ing-D_cd5IxY.js +2 -0
  399. package/buildLibs/utils/Shared/Ing-D_cd5IxY.js.map +1 -0
  400. package/buildLibs/utils/Shared/Ing.css +1 -0
  401. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js +2 -0
  402. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js.map +1 -0
  403. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js +141 -0
  404. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js.map +1 -0
  405. package/buildLibs/utils/Shared/Notify.css +1 -0
  406. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js +87 -0
  407. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js.map +1 -0
  408. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js +2 -0
  409. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js.map +1 -0
  410. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js +109 -0
  411. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js.map +1 -0
  412. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js +2 -0
  413. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js.map +1 -0
  414. package/buildLibs/utils/Shared/Tooltip.css +1 -0
  415. package/buildLibs/utils/Shared/Waves.css +7 -0
  416. package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js +2 -0
  417. package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js.map +1 -0
  418. package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js +10 -0
  419. package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
  420. package/buildLibs/utils/Shared/base-PQGakkrl.js +808 -0
  421. package/buildLibs/utils/Shared/base-PQGakkrl.js.map +1 -0
  422. package/buildLibs/utils/Shared/base-iCmnU-fv.js +2 -0
  423. package/buildLibs/utils/Shared/base-iCmnU-fv.js.map +1 -0
  424. package/buildLibs/utils/Shared/day-Bz9LfelO.js +75 -0
  425. package/buildLibs/utils/Shared/day-Bz9LfelO.js.map +1 -0
  426. package/buildLibs/utils/Shared/day-CvcvgKjb.js +2 -0
  427. package/buildLibs/utils/Shared/day-CvcvgKjb.js.map +1 -0
  428. package/buildLibs/utils/Shared/drag-CzE5R222.js +2 -0
  429. package/buildLibs/utils/Shared/drag-CzE5R222.js.map +1 -0
  430. package/buildLibs/utils/Shared/drag-CzfhSB0g.js +42 -0
  431. package/buildLibs/utils/Shared/drag-CzfhSB0g.js.map +1 -0
  432. package/buildLibs/utils/Shared/index-BnerInzC.js +432 -0
  433. package/buildLibs/utils/Shared/index-BnerInzC.js.map +1 -0
  434. package/buildLibs/utils/Shared/index-C1R9HAvS.js +320 -0
  435. package/buildLibs/utils/Shared/index-C1R9HAvS.js.map +1 -0
  436. package/buildLibs/utils/Shared/index-CVBh8iTg.js +2 -0
  437. package/buildLibs/utils/Shared/index-CVBh8iTg.js.map +1 -0
  438. package/buildLibs/utils/Shared/index-Ul6uY51t.js +3 -0
  439. package/buildLibs/utils/Shared/index-Ul6uY51t.js.map +1 -0
  440. package/buildLibs/utils/Shared/language-D6gRWx8H.js +2 -0
  441. package/buildLibs/utils/Shared/language-D6gRWx8H.js.map +1 -0
  442. package/buildLibs/utils/Shared/language-DxTlvFs2.js +18 -0
  443. package/buildLibs/utils/Shared/language-DxTlvFs2.js.map +1 -0
  444. package/buildLibs/utils/Shared/resize-COkswDOq.js +2 -0
  445. package/buildLibs/utils/Shared/resize-COkswDOq.js.map +1 -0
  446. package/buildLibs/utils/Shared/resize-kOWxHVSP.js +54 -0
  447. package/buildLibs/utils/Shared/resize-kOWxHVSP.js.map +1 -0
  448. package/buildLibs/utils/Shared/vue-virtual-scroller.css +1 -0
  449. package/buildLibs/utils/Web/ClBreadcrumb.cjs +2 -0
  450. package/buildLibs/utils/Web/ClBreadcrumb.cjs.map +1 -0
  451. package/buildLibs/utils/Web/ClBreadcrumb.css +1 -0
  452. package/buildLibs/utils/Web/ClBreadcrumb.d.ts +3 -0
  453. package/buildLibs/utils/Web/ClBreadcrumb.js +82 -0
  454. package/buildLibs/utils/Web/ClBreadcrumb.js.map +1 -0
  455. package/buildLibs/utils/Web/ClCalendar.cjs +2 -0
  456. package/buildLibs/utils/Web/ClCalendar.cjs.map +1 -0
  457. package/buildLibs/utils/Web/ClCalendar.css +1 -0
  458. package/buildLibs/utils/Web/ClCalendar.d.ts +3 -0
  459. package/buildLibs/utils/Web/ClCalendar.js +179 -0
  460. package/buildLibs/utils/Web/ClCalendar.js.map +1 -0
  461. package/buildLibs/utils/Web/ClCard.cjs +2 -0
  462. package/buildLibs/utils/Web/ClCard.cjs.map +1 -0
  463. package/buildLibs/utils/Web/ClCard.d.ts +3 -0
  464. package/buildLibs/utils/Web/ClCard.js +5 -0
  465. package/buildLibs/utils/Web/ClCard.js.map +1 -0
  466. package/buildLibs/utils/Web/ClCardLegend.cjs +2 -0
  467. package/buildLibs/utils/Web/ClCardLegend.cjs.map +1 -0
  468. package/buildLibs/utils/Web/ClCardLegend.css +1 -0
  469. package/buildLibs/utils/Web/ClCardLegend.d.ts +3 -0
  470. package/buildLibs/utils/Web/ClCardLegend.js +128 -0
  471. package/buildLibs/utils/Web/ClCardLegend.js.map +1 -0
  472. package/buildLibs/utils/Web/ClCollapse.cjs +2 -0
  473. package/buildLibs/utils/Web/ClCollapse.cjs.map +1 -0
  474. package/buildLibs/utils/Web/ClCollapse.css +1 -0
  475. package/buildLibs/utils/Web/ClCollapse.d.ts +3 -0
  476. package/buildLibs/utils/Web/ClCollapse.js +111 -0
  477. package/buildLibs/utils/Web/ClCollapse.js.map +1 -0
  478. package/buildLibs/utils/Web/ClColorpicker.cjs +2 -0
  479. package/buildLibs/utils/Web/ClColorpicker.cjs.map +1 -0
  480. package/buildLibs/utils/Web/ClColorpicker.css +1 -0
  481. package/buildLibs/utils/Web/ClColorpicker.d.ts +3 -0
  482. package/buildLibs/utils/Web/ClColorpicker.js +1130 -0
  483. package/buildLibs/utils/Web/ClColorpicker.js.map +1 -0
  484. package/buildLibs/utils/Web/ClCropperPreview.cjs +2 -0
  485. package/buildLibs/utils/Web/ClCropperPreview.cjs.map +1 -0
  486. package/buildLibs/utils/Web/ClCropperPreview.d.ts +3 -0
  487. package/buildLibs/utils/Web/ClCropperPreview.js +175 -0
  488. package/buildLibs/utils/Web/ClCropperPreview.js.map +1 -0
  489. package/buildLibs/utils/Web/ClDatetime.cjs +2 -0
  490. package/buildLibs/utils/Web/ClDatetime.cjs.map +1 -0
  491. package/buildLibs/utils/Web/ClDatetime.css +1 -0
  492. package/buildLibs/utils/Web/ClDatetime.d.ts +3 -0
  493. package/buildLibs/utils/Web/ClDatetime.js +2002 -0
  494. package/buildLibs/utils/Web/ClDatetime.js.map +1 -0
  495. package/buildLibs/utils/Web/ClDropdownmenu.cjs +2 -0
  496. package/buildLibs/utils/Web/ClDropdownmenu.cjs.map +1 -0
  497. package/buildLibs/utils/Web/ClDropdownmenu.css +1 -0
  498. package/buildLibs/utils/Web/ClDropdownmenu.d.ts +3 -0
  499. package/buildLibs/utils/Web/ClDropdownmenu.js +75 -0
  500. package/buildLibs/utils/Web/ClDropdownmenu.js.map +1 -0
  501. package/buildLibs/utils/Web/ClDropdownmenuItem.d.ts +3 -0
  502. package/buildLibs/utils/Web/ClDropdownpopup.cjs +2 -0
  503. package/buildLibs/utils/Web/ClDropdownpopup.cjs.map +1 -0
  504. package/buildLibs/utils/Web/ClDropdownpopup.css +1 -0
  505. package/buildLibs/utils/Web/ClDropdownpopup.d.ts +3 -0
  506. package/buildLibs/utils/Web/ClDropdownpopup.js +89 -0
  507. package/buildLibs/utils/Web/ClDropdownpopup.js.map +1 -0
  508. package/buildLibs/utils/Web/ClEcharts.cjs +2 -0
  509. package/buildLibs/utils/Web/ClEcharts.cjs.map +1 -0
  510. package/buildLibs/utils/Web/ClEcharts.css +1 -0
  511. package/buildLibs/utils/Web/ClEcharts.d.ts +3 -0
  512. package/buildLibs/utils/Web/ClEcharts.js +297 -0
  513. package/buildLibs/utils/Web/ClEcharts.js.map +1 -0
  514. package/buildLibs/utils/Web/ClFileupload.cjs +2 -0
  515. package/buildLibs/utils/Web/ClFileupload.cjs.map +1 -0
  516. package/buildLibs/utils/Web/ClFileupload.d.ts +3 -0
  517. package/buildLibs/utils/Web/ClFileupload.js +5 -0
  518. package/buildLibs/utils/Web/ClFileupload.js.map +1 -0
  519. package/buildLibs/utils/Web/ClInputTag.cjs +6 -0
  520. package/buildLibs/utils/Web/ClInputTag.cjs.map +1 -0
  521. package/buildLibs/utils/Web/ClInputTag.d.ts +3 -0
  522. package/buildLibs/utils/Web/ClInputTag.js +854 -0
  523. package/buildLibs/utils/Web/ClInputTag.js.map +1 -0
  524. package/buildLibs/utils/Web/ClPaginate.cjs +2 -0
  525. package/buildLibs/utils/Web/ClPaginate.cjs.map +1 -0
  526. package/buildLibs/utils/Web/ClPaginate.css +1 -0
  527. package/buildLibs/utils/Web/ClPaginate.d.ts +3 -0
  528. package/buildLibs/utils/Web/ClPaginate.js +167 -0
  529. package/buildLibs/utils/Web/ClPaginate.js.map +1 -0
  530. package/buildLibs/utils/Web/ClPortlet.cjs +2 -0
  531. package/buildLibs/utils/Web/ClPortlet.cjs.map +1 -0
  532. package/buildLibs/utils/Web/ClPortlet.css +1 -0
  533. package/buildLibs/utils/Web/ClPortlet.d.ts +3 -0
  534. package/buildLibs/utils/Web/ClPortlet.js +47 -0
  535. package/buildLibs/utils/Web/ClPortlet.js.map +1 -0
  536. package/buildLibs/utils/Web/ClPreview.cjs +2 -0
  537. package/buildLibs/utils/Web/ClPreview.cjs.map +1 -0
  538. package/buildLibs/utils/Web/ClPreview.js +5 -0
  539. package/buildLibs/utils/Web/ClPreview.js.map +1 -0
  540. package/buildLibs/utils/Web/ClPreviewexample.cjs +2 -0
  541. package/buildLibs/utils/Web/ClPreviewexample.cjs.map +1 -0
  542. package/buildLibs/utils/Web/ClPreviewexample.d.ts +3 -0
  543. package/buildLibs/utils/Web/ClPreviewexample.js +5 -0
  544. package/buildLibs/utils/Web/ClPreviewexample.js.map +1 -0
  545. package/buildLibs/utils/Web/ClScrollXFence.cjs +2 -0
  546. package/buildLibs/utils/Web/ClScrollXFence.cjs.map +1 -0
  547. package/buildLibs/utils/Web/ClScrollXFence.css +1 -0
  548. package/buildLibs/utils/Web/ClScrollXFence.d.ts +3 -0
  549. package/buildLibs/utils/Web/ClScrollXFence.js +107 -0
  550. package/buildLibs/utils/Web/ClScrollXFence.js.map +1 -0
  551. package/buildLibs/utils/Web/ClSelect.cjs +2 -0
  552. package/buildLibs/utils/Web/ClSelect.cjs.map +1 -0
  553. package/buildLibs/utils/Web/ClSelect.d.ts +3 -0
  554. package/buildLibs/utils/Web/ClSelect.js +5 -0
  555. package/buildLibs/utils/Web/ClSelect.js.map +1 -0
  556. package/buildLibs/utils/Web/ClSelectCascade.cjs +2 -0
  557. package/buildLibs/utils/Web/ClSelectCascade.cjs.map +1 -0
  558. package/buildLibs/utils/Web/ClSelectCascade.css +1 -0
  559. package/buildLibs/utils/Web/ClSelectCascade.d.ts +3 -0
  560. package/buildLibs/utils/Web/ClSelectCascade.js +222 -0
  561. package/buildLibs/utils/Web/ClSelectCascade.js.map +1 -0
  562. package/buildLibs/utils/Web/ClSelectTag.cjs +2 -0
  563. package/buildLibs/utils/Web/ClSelectTag.cjs.map +1 -0
  564. package/buildLibs/utils/Web/ClSelectTag.css +1 -0
  565. package/buildLibs/utils/Web/ClSelectTag.d.ts +3 -0
  566. package/buildLibs/utils/Web/ClSelectTag.js +249 -0
  567. package/buildLibs/utils/Web/ClSelectTag.js.map +1 -0
  568. package/buildLibs/utils/Web/ClSelectTree.cjs +2 -0
  569. package/buildLibs/utils/Web/ClSelectTree.cjs.map +1 -0
  570. package/buildLibs/utils/Web/ClSelectTree.css +1 -0
  571. package/buildLibs/utils/Web/ClSelectTree.d.ts +3 -0
  572. package/buildLibs/utils/Web/ClSelectTree.js +190 -0
  573. package/buildLibs/utils/Web/ClSelectTree.js.map +1 -0
  574. package/buildLibs/utils/Web/ClSelectmove.cjs +2 -0
  575. package/buildLibs/utils/Web/ClSelectmove.cjs.map +1 -0
  576. package/buildLibs/utils/Web/ClSelectmove.css +1 -0
  577. package/buildLibs/utils/Web/ClSelectmove.d.ts +3 -0
  578. package/buildLibs/utils/Web/ClSelectmove.js +1090 -0
  579. package/buildLibs/utils/Web/ClSelectmove.js.map +1 -0
  580. package/buildLibs/utils/Web/ClSidemenu.cjs +2 -0
  581. package/buildLibs/utils/Web/ClSidemenu.cjs.map +1 -0
  582. package/buildLibs/utils/Web/ClSidemenu.css +1 -0
  583. package/buildLibs/utils/Web/ClSidemenu.d.ts +3 -0
  584. package/buildLibs/utils/Web/ClSidemenu.js +190 -0
  585. package/buildLibs/utils/Web/ClSidemenu.js.map +1 -0
  586. package/buildLibs/utils/Web/ClTable.cjs +2 -0
  587. package/buildLibs/utils/Web/ClTable.cjs.map +1 -0
  588. package/buildLibs/utils/Web/ClTable.css +1 -0
  589. package/buildLibs/utils/Web/ClTable.d.ts +3 -0
  590. package/buildLibs/utils/Web/ClTable.js +1914 -0
  591. package/buildLibs/utils/Web/ClTable.js.map +1 -0
  592. package/buildLibs/utils/Web/ClTabs.cjs +2 -0
  593. package/buildLibs/utils/Web/ClTabs.cjs.map +1 -0
  594. package/buildLibs/utils/Web/ClTabs.css +1 -0
  595. package/buildLibs/utils/Web/ClTabs.d.ts +3 -0
  596. package/buildLibs/utils/Web/ClTabs.js +276 -0
  597. package/buildLibs/utils/Web/ClTabs.js.map +1 -0
  598. package/buildLibs/utils/Web/ClTree.cjs +2 -0
  599. package/buildLibs/utils/Web/ClTree.cjs.map +1 -0
  600. package/buildLibs/utils/Web/ClTree.css +1 -0
  601. package/buildLibs/utils/Web/ClTree.d.ts +3 -0
  602. package/buildLibs/utils/Web/ClTree.js +416 -0
  603. package/buildLibs/utils/Web/ClTree.js.map +1 -0
  604. package/buildLibs/utils/Web/ClWeekhour.cjs +2 -0
  605. package/buildLibs/utils/Web/ClWeekhour.cjs.map +1 -0
  606. package/buildLibs/utils/Web/ClWeekhour.css +1 -0
  607. package/buildLibs/utils/Web/ClWeekhour.d.ts +3 -0
  608. package/buildLibs/utils/Web/ClWeekhour.js +679 -0
  609. package/buildLibs/utils/Web/ClWeekhour.js.map +1 -0
  610. package/buildLibs/utils/Web/ClXeditable.cjs +2 -0
  611. package/buildLibs/utils/Web/ClXeditable.cjs.map +1 -0
  612. package/buildLibs/utils/Web/ClXeditable.css +1 -0
  613. package/buildLibs/utils/Web/ClXeditable.d.ts +3 -0
  614. package/buildLibs/utils/Web/ClXeditable.js +593 -0
  615. package/buildLibs/utils/Web/ClXeditable.js.map +1 -0
  616. package/buildLibs/utils/Web/__directive__/Highlight.cjs +4 -0
  617. package/buildLibs/utils/Web/__directive__/Highlight.cjs.map +1 -0
  618. package/buildLibs/utils/Web/__directive__/Highlight.d.ts +2 -0
  619. package/buildLibs/utils/Web/__directive__/Highlight.js +3625 -0
  620. package/buildLibs/utils/Web/__directive__/Highlight.js.map +1 -0
  621. package/buildLibs/utils/Web/__directive__/Tooltip.cjs +2 -0
  622. package/buildLibs/utils/Web/__directive__/Tooltip.cjs.map +1 -0
  623. package/buildLibs/utils/Web/__directive__/Tooltip.d.ts +2 -0
  624. package/buildLibs/utils/Web/__directive__/Tooltip.js +356 -0
  625. package/buildLibs/utils/Web/__directive__/Tooltip.js.map +1 -0
  626. package/buildLibs/utils/Web/__directive__/Waves.cjs +9 -0
  627. package/buildLibs/utils/Web/__directive__/Waves.cjs.map +1 -0
  628. package/buildLibs/utils/Web/__directive__/Waves.d.ts +2 -0
  629. package/buildLibs/utils/Web/__directive__/Waves.js +256 -0
  630. package/buildLibs/utils/Web/__directive__/Waves.js.map +1 -0
  631. package/buildLibs/utils/Web/__provide__/Alert.cjs +2 -0
  632. package/buildLibs/utils/Web/__provide__/Alert.cjs.map +1 -0
  633. package/buildLibs/utils/Web/__provide__/Alert.d.ts +2 -0
  634. package/buildLibs/utils/Web/__provide__/Alert.js +236 -0
  635. package/buildLibs/utils/Web/__provide__/Alert.js.map +1 -0
  636. package/buildLibs/utils/Web/__provide__/Notify.cjs +2 -0
  637. package/buildLibs/utils/Web/__provide__/Notify.cjs.map +1 -0
  638. package/buildLibs/utils/Web/__provide__/Notify.d.ts +2 -0
  639. package/buildLibs/utils/Web/__provide__/Notify.js +235 -0
  640. package/buildLibs/utils/Web/__provide__/Notify.js.map +1 -0
  641. package/buildLibs/utils/Web/__provide__/Preview.cjs +2 -0
  642. package/buildLibs/utils/Web/__provide__/Preview.cjs.map +1 -0
  643. package/buildLibs/utils/Web/__provide__/Preview.d.ts +2 -0
  644. package/buildLibs/utils/Web/__provide__/Preview.js +26 -0
  645. package/buildLibs/utils/Web/__provide__/Preview.js.map +1 -0
  646. package/buildLibs/web/index.cjs +97 -0
  647. package/buildLibs/web/index.cjs.map +1 -0
  648. package/buildLibs/web/index.d.ts +81 -0
  649. package/buildLibs/web/index.js +164 -0
  650. package/buildLibs/web/index.js.map +1 -0
  651. package/docs/components/Element/AnchorNav.md +19 -0
  652. package/docs/components/Element/Badge.md +24 -0
  653. package/docs/components/Element/Button.md +45 -0
  654. package/docs/components/Element/Checkbox.md +48 -0
  655. package/docs/components/Element/Clipboard.md +34 -0
  656. package/docs/components/Element/Countup.md +12 -0
  657. package/docs/components/Element/Cropper.md +46 -0
  658. package/docs/components/Element/Darg.md +30 -0
  659. package/docs/components/Element/Ellipsis.md +12 -0
  660. package/docs/components/Element/Form.md +25 -0
  661. package/docs/components/Element/FormGroup.md +29 -0
  662. package/docs/components/Element/IconFont.md +12 -0
  663. package/docs/components/Element/Image.md +18 -0
  664. package/docs/components/Element/Input.md +65 -0
  665. package/docs/components/Element/InputCaptcha.md +27 -0
  666. package/docs/components/Element/InputNumber.md +51 -0
  667. package/docs/components/Element/InputSearch.md +43 -0
  668. package/docs/components/Element/InputTextarea.md +52 -0
  669. package/docs/components/Element/Link.md +41 -0
  670. package/docs/components/Element/Load.md +20 -0
  671. package/docs/components/Element/LoadScreen.md +19 -0
  672. package/docs/components/Element/Modal.md +51 -0
  673. package/docs/components/Element/Progress.md +28 -0
  674. package/docs/components/Element/Radio.md +41 -0
  675. package/docs/components/Element/Slider.md +33 -0
  676. package/docs/components/Element/Switchery.md +42 -0
  677. package/docs/components/Element/Tags.md +39 -0
  678. package/docs/components/Element/Waterfall.md +36 -0
  679. package/docs/components/Mobile/Cell.md +49 -0
  680. package/docs/components/Mobile/PullToRefresh.md +52 -0
  681. package/docs/components/Web/Breadcrumb.md +26 -0
  682. package/docs/components/Web/Calendar.md +34 -0
  683. package/docs/components/Web/Card.md +22 -0
  684. package/docs/components/Web/CardLegend.md +20 -0
  685. package/docs/components/Web/Collapse.md +26 -0
  686. package/docs/components/Web/Colorpicker.md +41 -0
  687. package/docs/components/Web/CropperPreview.md +43 -0
  688. package/docs/components/Web/Datetime.md +52 -0
  689. package/docs/components/Web/Dropdownmenu.md +33 -0
  690. package/docs/components/Web/Dropdownpopup.md +47 -0
  691. package/docs/components/Web/Echarts.md +43 -0
  692. package/docs/components/Web/Fileupload.md +60 -0
  693. package/docs/components/Web/InputTag.md +56 -0
  694. package/docs/components/Web/Paginate.md +30 -0
  695. package/docs/components/Web/Portlet.md +27 -0
  696. package/docs/components/Web/Preview.md +19 -0
  697. package/docs/components/Web/Previewexample.md +39 -0
  698. package/docs/components/Web/ScrollXFence.md +38 -0
  699. package/docs/components/Web/Select.md +56 -0
  700. package/docs/components/Web/SelectCascade.md +37 -0
  701. package/docs/components/Web/SelectTag.md +43 -0
  702. package/docs/components/Web/SelectTree.md +44 -0
  703. package/docs/components/Web/Selectmove.md +58 -0
  704. package/docs/components/Web/Sidemenu.md +25 -0
  705. package/docs/components/Web/Table.md +78 -0
  706. package/docs/components/Web/Tabs.md +47 -0
  707. package/docs/components/Web/Tree.md +44 -0
  708. package/docs/components/Web/Weekhour.md +29 -0
  709. package/docs/components/Web/Xeditable.md +52 -0
  710. package/docs/tools/CommonAxios.md +17 -0
  711. package/docs/tools/CommonBase.md +79 -0
  712. package/docs/tools/CommonDay.md +18 -0
  713. package/docs/tools/CommonEchart.md +19 -0
  714. package/docs/tools/CommonElement.md +42 -0
  715. package/docs/tools/CommonElementEvent.md +30 -0
  716. package/docs/tools/CommonI18n.md +18 -0
  717. package/docs/tools/CommonPromise.md +16 -0
  718. package/docs/tools/CommonTools.md +43 -0
  719. package/docs/tools/CommonTooltip.md +38 -0
  720. package/package.json +123 -0
@@ -0,0 +1,236 @@
1
+ import { defineComponent as Q, ref as w, reactive as y, watch as R, openBlock as n, createElementBlock as m, createVNode as W, withCtx as X, createElementVNode as g, normalizeClass as Y, createCommentVNode as b, toDisplayString as O, createBlock as F, nextTick as Z, createApp as ee } from "vue";
2
+ import { C as c } from "../../Shared/base-PQGakkrl.js";
3
+ import { _ as oe } from "../../Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js";
4
+ import H from "../../Element/ClButton.js";
5
+ const ce = { class: "alert-body" }, le = {
6
+ key: 0,
7
+ class: "alert-icon"
8
+ }, te = {
9
+ key: 1,
10
+ class: "alert-title"
11
+ }, ne = {
12
+ key: 2,
13
+ class: "alert-text"
14
+ }, se = ["innerHTML"], ie = { key: 1 }, ae = {
15
+ key: 3,
16
+ class: "alert-operate"
17
+ }, re = /* @__PURE__ */ Q({
18
+ name: "ClAlert",
19
+ __name: "Alert",
20
+ props: {
21
+ isBackClick: { type: Boolean },
22
+ submitLabel: {},
23
+ submitColor: {},
24
+ cancelLabel: {},
25
+ cancelColor: {}
26
+ },
27
+ setup(h, { expose: C }) {
28
+ const i = h, s = w(null), l = w(null), a = w(null), r = y({
29
+ isLoadBackClick: !0
30
+ }), o = y({
31
+ isBackClick: !1,
32
+ clsIcon: "",
33
+ isShowIcon: !1,
34
+ title: "",
35
+ isShowTitle: !1,
36
+ text: "",
37
+ html: "",
38
+ isShowTextHtml: !1,
39
+ isShowText: !1,
40
+ submitLabel: "",
41
+ submitIcon: "",
42
+ submitColor: "default",
43
+ cancelLabel: "",
44
+ cancelIcon: "",
45
+ cancelColor: "grayLight",
46
+ isShowSubmit: !1,
47
+ isShowSubmitLoad: !1,
48
+ isShowCancel: !1,
49
+ isShowOperate: !1,
50
+ isShow: !1
51
+ }), t = y({
52
+ submit: null,
53
+ cancel: null
54
+ });
55
+ let S = null;
56
+ const _ = {
57
+ icon: {
58
+ info: "clIconFont clIcon-info-circle color-default",
59
+ success: "clIconFont clIcon-check-circle color-green",
60
+ error: "clIconFont clIcon-exclamation-circle color-red",
61
+ warn: "clIconFont clIcon-warn-fill color-yellow",
62
+ doubt: "clIconFont clIcon-question-circle color-cyan"
63
+ }
64
+ }, L = () => document.querySelector("body"), I = () => document.querySelector("body>.panel-alert"), B = () => {
65
+ const e = I();
66
+ return !c.isUndefined(e);
67
+ }, N = () => {
68
+ B() ? (clearTimeout(S), S = null) : L()?.appendChild(s.value);
69
+ }, A = () => {
70
+ Z(() => {
71
+ B() && (S = setTimeout(() => {
72
+ const e = I();
73
+ L()?.removeChild(e);
74
+ }, 2 * 1e3));
75
+ });
76
+ }, M = (e) => {
77
+ const d = c.isBoolean(e.isBackClick) ? e.isBackClick : i.isBackClick ?? !0;
78
+ let u = "";
79
+ c.isEmpty(e.iconType) || (u = c.isExistJsonKey(_.icon, e.iconType) ? _.icon[e.iconType] : ""), c.isEmpty(u) && !c.isEmpty(e.icon) && (u = e.icon);
80
+ const k = !c.isEmpty(u), p = !c.isEmpty(e.title), T = !c.isEmpty(e.html), E = !c.isEmpty(e.text) || T, J = c.isEmpty(e.submitLabel) ? i.submitLabel || "确定" : e.submitLabel, z = c.isEmpty(e.submitColor) ? i.submitColor || "default" : e.submitColor, j = c.isEmpty(e.cancelLabel) ? i.cancelLabel || "取消" : e.cancelLabel, K = c.isEmpty(e.cancelColor) ? i.cancelColor || "grayLight" : e.cancelColor, x = c.isBoolean(e.isSubmit) ? e.isSubmit : !1, U = c.isBoolean(e.isLoad) ? e.isLoad : !1, v = c.isBoolean(e.isCancel) ? e.isCancel : !1, $ = x || v, G = p || E;
81
+ return {
82
+ isBackClick: d,
83
+ clsIcon: u,
84
+ isShowIcon: k,
85
+ title: e.title,
86
+ isShowTitle: p,
87
+ text: e.text,
88
+ html: e.html,
89
+ isShowTextHtml: T,
90
+ isShowText: E,
91
+ submitLabel: J,
92
+ submitIcon: e.submitIcon,
93
+ submitColor: z,
94
+ isShowSubmit: x,
95
+ isShowSubmitLoad: U,
96
+ cancelLabel: j,
97
+ cancelIcon: e.cancelIcon,
98
+ cancelColor: K,
99
+ isShowCancel: v,
100
+ isShowOperate: $,
101
+ isShow: G
102
+ };
103
+ }, P = (e) => {
104
+ const d = M(e);
105
+ if (N(), d.isShow) {
106
+ for (const [u, k] of Object.entries(d))
107
+ o[u] = k;
108
+ t.submit = e.submitCallback, t.cancel = e.cancelCallback, l.value.show();
109
+ } else
110
+ t.submit = null, t.cancel = null, l.value.hide(), o.isShow = !1;
111
+ }, f = () => {
112
+ l.value.hide(), r.isLoadBackClick = !0, o.isShow = !1;
113
+ };
114
+ R(
115
+ () => o.isShow,
116
+ (e) => {
117
+ e || A();
118
+ }
119
+ );
120
+ const V = () => {
121
+ o.isShowSubmitLoad && (r.isLoadBackClick = !1), c.isFunction(t.submit) ? t.submit() : f();
122
+ }, q = () => {
123
+ f(), c.isFunction(t.cancel) && t.cancel();
124
+ }, D = () => {
125
+ f(), c.isFunction(t.cancel) && t.cancel();
126
+ };
127
+ return C({
128
+ open: (e) => {
129
+ P(e);
130
+ },
131
+ hide: () => {
132
+ o.isShowSubmitLoad && a.value?.loadStop(), f();
133
+ },
134
+ reset: () => {
135
+ o.isShowSubmitLoad && a.value?.loadStop();
136
+ }
137
+ }), (e, d) => (n(), m("div", {
138
+ class: "panel-alert",
139
+ ref_key: "refElTopParent",
140
+ ref: s
141
+ }, [
142
+ W(oe, {
143
+ isBackClick: o.isBackClick && r.isLoadBackClick,
144
+ classTransitionEnter: "animated zoomIn",
145
+ width: "500px",
146
+ onOnClickBack: D,
147
+ ref_key: "refElTransition",
148
+ ref: l
149
+ }, {
150
+ default: X(() => [
151
+ g("div", ce, [
152
+ o.isShowIcon ? (n(), m("div", le, [
153
+ g("i", {
154
+ class: Y(o.clsIcon)
155
+ }, null, 2)
156
+ ])) : b("", !0),
157
+ o.isShowTitle ? (n(), m("div", te, O(o.title), 1)) : b("", !0),
158
+ o.isShowText ? (n(), m("div", ne, [
159
+ o.isShowTextHtml ? (n(), m("div", {
160
+ key: 0,
161
+ innerHTML: o.html
162
+ }, null, 8, se)) : (n(), m("div", ie, O(o.text), 1))
163
+ ])) : b("", !0),
164
+ o.isShowOperate ? (n(), m("div", ae, [
165
+ o.isShowSubmit ? (n(), F(H, {
166
+ key: 0,
167
+ ref_key: "refElBtnSubmit",
168
+ ref: a,
169
+ className: "alert-submit",
170
+ isShowLoad: o.isShowSubmitLoad,
171
+ isShowBackDrop: !0,
172
+ label: o.submitLabel,
173
+ icon: o.submitIcon,
174
+ color: o.submitColor,
175
+ onOnClick: V
176
+ }, null, 8, ["isShowLoad", "label", "icon", "color"])) : b("", !0),
177
+ o.isShowCancel ? (n(), F(H, {
178
+ key: 1,
179
+ className: "alert-cancel",
180
+ label: o.cancelLabel,
181
+ icon: o.cancelIcon,
182
+ color: o.cancelColor,
183
+ onOnClick: q
184
+ }, null, 8, ["label", "icon", "color"])) : b("", !0)
185
+ ])) : b("", !0)
186
+ ])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["isBackClick"])
190
+ ], 512));
191
+ }
192
+ }), Se = (h = {}) => {
193
+ const C = ee(re, h), i = document.createElement("div"), s = C.mount(i);
194
+ return {
195
+ alert: (l, a = {}) => {
196
+ const r = c.getJsonMerge(
197
+ {
198
+ isSubmit: !0
199
+ },
200
+ a,
201
+ {
202
+ title: l,
203
+ isCancel: !1,
204
+ cancelCallback: null
205
+ }
206
+ );
207
+ s.open(r);
208
+ },
209
+ confirm: (l, a) => {
210
+ const r = c.getJsonMerge(
211
+ {
212
+ isSubmit: !0,
213
+ isCancel: !0
214
+ },
215
+ a,
216
+ {
217
+ title: l
218
+ }
219
+ );
220
+ s.open(r);
221
+ },
222
+ custom: (l) => {
223
+ s.open(l);
224
+ },
225
+ close: () => {
226
+ s.hide();
227
+ },
228
+ reset: () => {
229
+ s.reset();
230
+ }
231
+ };
232
+ };
233
+ export {
234
+ Se as default
235
+ };
236
+ //# sourceMappingURL=Alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.js","sources":["../../../../src/libs/Web/Alert/Alert.vue","../../../../src/libs/Web/Alert/index.ts"],"sourcesContent":["<template>\n <div class=\"panel-alert\" ref=\"refElTopParent\">\n <ClModalBaseTransition :isBackClick=\"optItemInfo.isBackClick && optBase.isLoadBackClick\"\n classTransitionEnter=\"animated zoomIn\" width=\"500px\" @onClickBack=\"onClickBack\" ref=\"refElTransition\">\n <div class=\"alert-body\">\n <div v-if=\"optItemInfo.isShowIcon\" class=\"alert-icon\"><i :class=\"optItemInfo.clsIcon\"></i></div>\n <div v-if=\"optItemInfo.isShowTitle\" class=\"alert-title\">{{ optItemInfo.title }}</div>\n <div v-if=\"optItemInfo.isShowText\" class=\"alert-text\">\n <div v-if=\"optItemInfo.isShowTextHtml\" v-html=\"optItemInfo.html\"></div>\n <div v-else>{{ optItemInfo.text }}</div>\n </div>\n <div v-if=\"optItemInfo.isShowOperate\" class=\"alert-operate\">\n <ClButton ref=\"refElBtnSubmit\" v-if=\"optItemInfo.isShowSubmit\" className=\"alert-submit\"\n :isShowLoad=\"optItemInfo.isShowSubmitLoad\" :isShowBackDrop=\"true\" :label=\"optItemInfo.submitLabel\"\n :icon=\"optItemInfo.submitIcon\" :color=\"optItemInfo.submitColor\" @onClick=\"onSubmit\"></ClButton>\n <ClButton v-if=\"optItemInfo.isShowCancel\" className=\"alert-cancel\" :label=\"optItemInfo.cancelLabel\"\n :icon=\"optItemInfo.cancelIcon\" :color=\"optItemInfo.cancelColor\" @onClick=\"onCancel\"></ClButton>\n </div>\n </div>\n </ClModalBaseTransition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, watch, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClModalBaseTransition from '../../Element/Modal/BaseTransition.vue'\nimport ClButton from '../../Element/Button/Index.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClAlert' })\n\n// props\nconst props = defineProps<{\n isBackClick?: boolean\n submitLabel?: string\n submitColor?: string\n cancelLabel?: string\n cancelColor?: string\n}>()\n\n// refs\nconst refElTopParent = ref<HTMLElement | null>(null)\nconst refElTransition = ref<any>(null)\nconst refElBtnSubmit = ref<any>(null)\n\n// reactive\nconst optBase = reactive({\n isLoadBackClick: true,\n})\n\nconst optItemInfo = reactive({\n isBackClick: false,\n clsIcon: '',\n isShowIcon: false,\n title: '',\n isShowTitle: false,\n text: '',\n html: '',\n isShowTextHtml: false,\n isShowText: false,\n submitLabel: '',\n submitIcon: '',\n submitColor: 'default',\n cancelLabel: '',\n cancelIcon: '',\n cancelColor: 'grayLight',\n isShowSubmit: false,\n isShowSubmitLoad: false,\n isShowCancel: false,\n isShowOperate: false,\n isShow: false,\n})\n\n// 内部数据\nconst _funItemInfo = reactive({\n submit: null as any,\n cancel: null as any,\n})\n\nlet _timeOutDestroyContainer: any = null\n\n// 常量\nconst defaultAlertCommon: any = {\n icon: {\n info: 'clIconFont clIcon-info-circle color-default',\n success: 'clIconFont clIcon-check-circle color-green',\n error: 'clIconFont clIcon-exclamation-circle color-red',\n warn: 'clIconFont clIcon-warn-fill color-yellow',\n doubt: 'clIconFont clIcon-question-circle color-cyan',\n },\n}\n\n// 内部方法\nconst _getBody = () => {\n const el = document.querySelector('body')\n return el\n}\n\nconst _getTopEl = () => {\n const el = document.querySelector('body>.panel-alert')\n return el\n}\n\nconst _checkContainer = () => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody()?.appendChild(refElTopParent.value!)\n } else {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n}\n\nconst _destroyContainer = () => {\n nextTick(() => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n _getBody()?.removeChild(el!)\n }, 2 * 1000)\n }\n })\n}\n\nconst _analysisItemProps = (opt: any) => {\n const isBackClick = CommonBase.isBoolean(opt.isBackClick) ? opt.isBackClick : props.isBackClick ?? true\n\n let clsIcon = ''\n if (!CommonBase.isEmpty(opt.iconType)) {\n clsIcon = CommonBase.isExistJsonKey(defaultAlertCommon.icon, opt.iconType)\n ? defaultAlertCommon.icon[opt.iconType]\n : ''\n }\n if (CommonBase.isEmpty(clsIcon) && !CommonBase.isEmpty(opt.icon)) {\n clsIcon = opt.icon\n }\n const isShowIcon = !CommonBase.isEmpty(clsIcon)\n\n const isShowTitle = !CommonBase.isEmpty(opt.title)\n\n const isShowTextHtml = !CommonBase.isEmpty(opt.html)\n const isShowText = !CommonBase.isEmpty(opt.text) || isShowTextHtml\n\n const submitLabel = CommonBase.isEmpty(opt.submitLabel)\n ? props.submitLabel || '确定'\n : opt.submitLabel\n const submitColor = CommonBase.isEmpty(opt.submitColor) ? props.submitColor || 'default' : opt.submitColor\n const cancelLabel = CommonBase.isEmpty(opt.cancelLabel)\n ? props.cancelLabel || '取消'\n : opt.cancelLabel\n const cancelColor = CommonBase.isEmpty(opt.cancelColor) ? props.cancelColor || 'grayLight' : opt.cancelColor\n\n const isShowSubmit = CommonBase.isBoolean(opt.isSubmit) ? opt.isSubmit : false\n const isShowSubmitLoad = CommonBase.isBoolean(opt.isLoad) ? opt.isLoad : false\n const isShowCancel = CommonBase.isBoolean(opt.isCancel) ? opt.isCancel : false\n const isShowOperate = isShowSubmit || isShowCancel\n\n const isShow = isShowTitle || isShowText\n return {\n isBackClick,\n clsIcon,\n isShowIcon,\n title: opt.title,\n isShowTitle,\n text: opt.text,\n html: opt.html,\n isShowTextHtml,\n isShowText,\n submitLabel,\n submitIcon: opt.submitIcon,\n submitColor,\n isShowSubmit,\n isShowSubmitLoad,\n cancelLabel,\n cancelIcon: opt.cancelIcon,\n cancelColor,\n isShowCancel,\n isShowOperate,\n isShow,\n }\n}\n\nconst _creatorItem = (optExt: any) => {\n const newOptions = _analysisItemProps(optExt)\n _creatorContainer()\n if (newOptions.isShow) {\n for (const [ko, vo] of Object.entries(newOptions)) {\n // @ts-ignore\n optItemInfo[ko] = vo\n }\n _funItemInfo.submit = optExt.submitCallback\n _funItemInfo.cancel = optExt.cancelCallback\n refElTransition.value.show()\n } else {\n _funItemInfo.submit = null\n _funItemInfo.cancel = null\n refElTransition.value.hide()\n optItemInfo.isShow = false\n }\n}\n\nconst _closeHide = () => {\n refElTransition.value.hide()\n optBase.isLoadBackClick = true\n optItemInfo.isShow = false\n}\n\n// watch\nwatch(\n () => optItemInfo.isShow,\n (newValue: boolean) => {\n if (!newValue) {\n _destroyContainer()\n }\n }\n)\n\n// 内部触发的事件 on\nconst onSubmit = () => {\n if (optItemInfo.isShowSubmitLoad) {\n optBase.isLoadBackClick = false\n }\n if (CommonBase.isFunction(_funItemInfo.submit)) {\n _funItemInfo.submit()\n } else {\n _closeHide()\n }\n}\n\nconst onCancel = () => {\n _closeHide()\n if (CommonBase.isFunction(_funItemInfo.cancel)) {\n _funItemInfo.cancel()\n }\n}\n\nconst onClickBack = () => {\n _closeHide()\n if (CommonBase.isFunction(_funItemInfo.cancel)) {\n _funItemInfo.cancel()\n }\n}\n\n// 外部调用\nconst open = (opt: any) => {\n _creatorItem(opt)\n}\n\nconst hide = () => {\n if (optItemInfo.isShowSubmitLoad) {\n refElBtnSubmit.value?.loadStop()\n }\n _closeHide()\n}\n\nconst reset = () => {\n if (optItemInfo.isShowSubmitLoad) {\n refElBtnSubmit.value?.loadStop()\n }\n}\n\n// 暴露给外部的方法\nexport interface ClAlertExpose {\n open: () => void\n hide: () => void\n reset: () => void\n}\n\ndefineExpose({\n open,\n hide,\n reset\n})\n</script>\n","import { createApp } from \"vue\";\nimport ElementAlert from \"./Alert.vue\";\nimport CommonBase from \"../../Common/base\";\n\nexport default (options = {}) => {\n const VNotify = createApp(ElementAlert, options);\n const tempParent = document.createElement(\"div\");\n const alert: any = VNotify.mount(tempParent);\n return {\n alert: (title: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(\n {\n isSubmit: true,\n },\n optExt,\n {\n title,\n isCancel: false,\n cancelCallback: null,\n }\n );\n alert.open(opt);\n },\n confirm: (title: string, optExt: any) => {\n const opt = CommonBase.getJsonMerge(\n {\n isSubmit: true,\n isCancel: true,\n },\n optExt,\n {\n title,\n }\n );\n alert.open(opt);\n },\n custom: (opt: any) => {\n alert.open(opt);\n },\n close: () => {\n alert.hide();\n },\n reset: () => {\n alert.reset();\n },\n };\n};\n"],"names":["props","__props","refElTopParent","ref","refElTransition","refElBtnSubmit","optBase","reactive","optItemInfo","_funItemInfo","_timeOutDestroyContainer","defaultAlertCommon","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","nextTick","_analysisItemProps","opt","isBackClick","clsIcon","isShowIcon","isShowTitle","isShowTextHtml","isShowText","submitLabel","submitColor","cancelLabel","cancelColor","isShowSubmit","isShowSubmitLoad","isShowCancel","isShowOperate","isShow","_creatorItem","optExt","newOptions","ko","vo","_closeHide","watch","newValue","onSubmit","onCancel","onClickBack","__expose","_createElementBlock","_createVNode","ClModalBaseTransition","_createElementVNode","_hoisted_1","_openBlock","_hoisted_2","_normalizeClass","_hoisted_3","_toDisplayString","_hoisted_4","_hoisted_6","_hoisted_7","_createBlock","ClButton","index","options","VNotify","createApp","ElementAlert","tempParent","alert","title"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,UAAMA,IAAQC,GASRC,IAAiBC,EAAwB,IAAI,GAC7CC,IAAkBD,EAAS,IAAI,GAC/BE,IAAiBF,EAAS,IAAI,GAG9BG,IAAUC,EAAS;AAAA,MACvB,iBAAiB;AAAA,IAAA,CAClB,GAEKC,IAAcD,EAAS;AAAA,MAC3B,aAAa;AAAA,MACb,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,aAAa;AAAA,MACb,MAAM;AAA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,GAAA;AAAA;gBADvD,WAAU;AAAA,gBAAgB,OAAOvD,EAAY;AAAA,gBACpF,MAAMA,EAAY;AAAA,gBAAa,OAAOA,EAAY;AAAA,gBAAc,WAASsC;AAAA,cAAA;;;;;;;;ICZtFkB,KAAe,CAACC,IAAU,CAAA,MAAO;AAC7B,QAAMC,IAAUC,GAAUC,IAAcH,CAAO,GACzCI,IAAa,SAAS,cAAc,KAAK,GACzCC,IAAaJ,EAAQ,MAAMG,CAAU;AAC3C,SAAO;AAAA,IACH,OAAO,CAACE,GAAejC,IAAS,OAAO;AACnC,YAAMjB,IAAML,EAAW;AAAA,QACnB;AAAA,UACI,UAAU;AAAA,QAAA;AAAA,QAEdsB;AAAA,QACA;AAAA,UACI,OAAAiC;AAAA,UACA,UAAU;AAAA,UACV,gBAAgB;AAAA,QAAA;AAAA,MACpB;AAEJ,MAAAD,EAAM,KAAKjD,CAAG;AAAA,IAClB;AAAA,IACA,SAAS,CAACkD,GAAejC,MAAgB;AACrC,YAAMjB,IAAML,EAAW;AAAA,QACnB;AAAA,UACI,UAAU;AAAA,UACV,UAAU;AAAA,QAAA;AAAA,QAEdsB;AAAA,QACA;AAAA,UACI,OAAAiC;AAAA,QAAA;AAAA,MACJ;AAEJ,MAAAD,EAAM,KAAKjD,CAAG;AAAA,IAClB;AAAA,IACA,QAAQ,CAACA,MAAa;AAClB,MAAAiD,EAAM,KAAKjD,CAAG;AAAA,IAClB;AAAA,IACA,OAAO,MAAM;AACT,MAAAiD,EAAM,KAAA;AAAA,IACV;AAAA,IACA,OAAO,MAAM;AACT,MAAAA,EAAM,MAAA;AAAA,IACV;AAAA,EAAA;AAER;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("vue"),c=require("../../Shared/base-iCmnU-fv.js"),D={class:"notify-item"},P={class:"notify-icon"},x={class:"notify-text"},L=["innerHTML"],S=e.defineComponent({name:"ClNotifyItem",__name:"Notify",props:{isShow:{type:Boolean},itemInfo:{}},emits:["onMouseOver","onMouseOut","onDestroy"],setup(l,{emit:y}){const d=l,r=y,n=e.ref(!1),i=e.computed(()=>({progress:!0,"progress-hide":n.value})),a=e.computed(()=>({"progress-bar":!0,"progress-countdown":!n.value})),m=()=>{n.value=!0,r("onMouseOver",d.itemInfo.key)},C=()=>{n.value=!1,r("onMouseOut",d.itemInfo.key)},u=()=>{r("onDestroy",d.itemInfo.key)};return(v,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:"notify","enter-active-class":l.itemInfo.clsTransitionEnter,"leave-active-class":l.itemInfo.clsTransitionLeave},{default:e.withCtx(()=>[l.isShow?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.itemInfo.clsContainer),onClick:u,onMouseover:m,onMouseout:C},[e.createElementVNode("div",D,[e.createElementVNode("div",P,[e.createElementVNode("i",{class:e.normalizeClass(l.itemInfo.icon)},null,2)]),e.createElementVNode("div",x,[e.createElementVNode("div",{innerHTML:l.itemInfo.text},null,8,L)]),e.createElementVNode("button",{type:"button",class:"notify-close",title:"关闭",onClick:u},[...g[0]||(g[0]=[e.createElementVNode("i",{class:"clIconFont clIcon-close"},null,-1)])])]),l.itemInfo.isProgress?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(i.value)},[e.createElementVNode("div",{class:e.normalizeClass(a.value)},null,2)],2)):e.createCommentVNode("",!0)],34)):e.createCommentVNode("",!0)]),_:1},8,["enter-active-class","leave-active-class"]))}}),$=e.defineComponent({name:"ClNotify",__name:"Notifys",props:{position:{},isProgress:{type:Boolean}},setup(l,{expose:y}){const d=l,r=e.ref(null),n=e.ref([]),i=e.reactive({"top-right":[],"top-center":[],"bottom-right":[]}),a=e.reactive({icon:{info:"clIcon-info",success:"clIcon-check",error:"clIcon-exclamation",warn:"clIcon-warn-fill"},delay:5,autoHide:!0,showDuration:!0,isClickHide:!0}),m=e.reactive({});let C=null;const u={type:["info","success","error","warn"],position:["top-right","top-center","bottom-right"]},v=()=>document.querySelector("body"),g=()=>document.querySelector("body>.panel-notify"),B=()=>{const o=g();return!c.CommonBase.isUndefined(o)},M=()=>{B()?(clearTimeout(C),C=null):v()?.appendChild(r.value)},h=()=>{e.nextTick(()=>{B()&&(C=setTimeout(()=>{const o=g();o&&v()?.removeChild(o)},2*1e3))})},N=o=>{let s={},t=-1;const f=o.split("_")[1];return i[f].forEach((p,k)=>{p.key===o&&(s=p,t=k)}),{info:s,inx:t,pos:f}},I=o=>{const s=N(o);if(s.inx>-1){const t=n.value.indexOf(o);n.value.splice(t,1),e.nextTick(()=>{i[s.pos].splice(s.inx,1),i[s.pos].length===0&&(i[s.pos]=[]),n.value.length===0&&(n.value=[],h())})}},T=o=>{m[o]=setTimeout(()=>{I(o)},a.delay*1e3)},_=o=>{let s="animated fadeInDown",t="animated fadeOutRight";switch(o){case"top-right":s="animated fadeInDown",t="animated fadeOutRight";break;case"top-center":s="animated fadeInDown",t="animated fadeOut";break;case"bottom-right":s="animated fadeInUp",t="animated fadeOutRight";break}return{clsTransitionEnter:s,clsTransitionLeave:t}},w=o=>{if(!c.CommonBase.isEmpty(o)&&!c.CommonBase.isEmpty(o.msg)){M();const s=c.CommonBase.isExistValue(u.type,o.type)?o.type:u.type[0],t={type:s,text:o.msg,position:d.position||"top-right",isProgress:d.isProgress||!1};c.CommonBase.isEmpty(o)||(c.CommonBase.isEmpty(o.position)||(t.position=o.position),c.CommonBase.isBoolean(o.isProgress)&&(t.isProgress=o.isProgress),c.CommonBase.isEmpty(o.className)||(t.className=o.className)),t.position=c.CommonBase.isExistValue(u.position,t.position)?t.position:u.position[0],t.clsContainer={"notify-container":!0,"notify-progress":t.isProgress},t.clsContainer[`notify-${s}`]=!0,t.className&&(t.clsContainer[t.className]=!0);const f=_(t.position);t.clsTransitionEnter=f.clsTransitionEnter,t.clsTransitionLeave=f.clsTransitionLeave;const p=c.CommonBase.isExistJsonKey(a.icon,s)?a.icon[s]:u.icon[s];t.icon=`clIconFont ${p}`;const k=c.CommonBase.getRandom(7),E=`notify_${t.position}_item_${k}`;t.key=E,i[t.position].push(t),e.nextTick(()=>{n.value.push(t.key),T(E)})}},O=o=>{m[o]&&(clearTimeout(m[o]),m[o]=null)},V=o=>{T(o)},b=o=>{m[o]&&(clearTimeout(m[o]),m[o]=null),I(o)};return y({addCustom:o=>{w(o)},destroy:()=>{u.position.forEach(o=>{i[o]=[]}),n.value=[],h()}}),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:"panel-notify",ref_key:"refElTopParent",ref:r},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,(t,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`notify-${f}`},[t.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`notify-wrapper notify-${f}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,p=>(e.openBlock(),e.createBlock(S,{key:p.key,isShow:n.value.includes(p.key),itemInfo:p,onOnDestroy:b,onOnMouseOver:O,onOnMouseOut:V},null,8,["isShow","itemInfo"]))),128))],2)):e.createCommentVNode("",!0)],64))),128))],512))}}),z=(l={})=>{const y=e.createApp($,l),d=document.createElement("div"),r=y.mount(d);return{info:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"info",msg:n});r.addCustom(a)},success:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"success",msg:n});r.addCustom(a)},error:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"error",msg:n});r.addCustom(a)},warn:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"warn",msg:n});r.addCustom(a)},custom:n=>{r.addCustom(n)},destroy:()=>{r.destroy()}}};module.exports=z;
2
+ //# sourceMappingURL=Notify.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notify.cjs","sources":["../../../../src/libs/Web/Notify/Notify.vue","../../../../src/libs/Web/Notify/Notifys.vue","../../../../src/libs/Web/Notify/index.ts"],"sourcesContent":["<template>\n <transition\n name=\"notify\"\n :enter-active-class=\"itemInfo.clsTransitionEnter\"\n :leave-active-class=\"itemInfo.clsTransitionLeave\"\n >\n <div\n v-if=\"isShow\"\n :class=\"itemInfo.clsContainer\"\n @click=\"onDestroyInfo\"\n @mouseover=\"onMouseOver\"\n @mouseout=\"onMouseOut\"\n >\n <div class=\"notify-item\">\n <div class=\"notify-icon\"><i :class=\"itemInfo.icon\"></i></div>\n <div class=\"notify-text\">\n <div v-html=\"itemInfo.text\"></div>\n </div>\n <button\n type=\"button\"\n class=\"notify-close\"\n title=\"关闭\"\n @click=\"onDestroyInfo\"\n ><i class=\"clIconFont clIcon-close\"></i></button>\n </div>\n <div\n v-if=\"itemInfo.isProgress\"\n :class=\"clsProgress\"\n >\n <div :class=\"clsProgressBar\"></div>\n </div>\n </div>\n </transition>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotifyItem' })\n\n// props\nconst props = defineProps<{\n isShow: boolean\n itemInfo: any\n}>()\n\n// emit\nconst emit = defineEmits<{\n (e: 'onMouseOver', key: string): void\n (e: 'onMouseOut', key: string): void\n (e: 'onDestroy', key: string): void\n}>()\n\n// reactive\nconst optMouseType = ref(false)\n\n// computed\nconst clsProgress = computed(() => {\n const cls: any = {\n progress: true,\n 'progress-hide': optMouseType.value,\n }\n return cls\n})\n\nconst clsProgressBar = computed(() => {\n const cls: any = {\n 'progress-bar': true,\n 'progress-countdown': !optMouseType.value,\n }\n return cls\n})\n\n// 内部触发的事件 on\nconst onMouseOver = () => {\n optMouseType.value = true\n emit('onMouseOver', props.itemInfo.key)\n}\n\nconst onMouseOut = () => {\n optMouseType.value = false\n emit('onMouseOut', props.itemInfo.key)\n}\n\nconst onDestroyInfo = () => {\n emit('onDestroy', props.itemInfo.key)\n}\n</script>\n","<template>\n <div\n class=\"panel-notify\"\n ref=\"refElTopParent\"\n >\n <template\n v-for=\"(msgList, msgPosition) in optMsgList\"\n :key=\"`notify-${msgPosition}`\"\n >\n <div\n v-if=\"msgList.length > 0\"\n :class=\"`notify-wrapper notify-${msgPosition}`\"\n >\n <ClNotifyItem\n v-for=\"item in msgList\"\n :key=\"item.key\"\n :isShow=\"optShowKeys.includes(item.key)\"\n :itemInfo=\"item\"\n @onDestroy=\"onDestroyItem\"\n @onMouseOver=\"onMouseOver\"\n @onMouseOut=\"onMouseOut\"\n ></ClNotifyItem>\n </div>\n </template>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClNotifyItem from './Notify.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotify' })\n\n// props\nconst props = defineProps<{\n position?: string\n isProgress?: boolean\n}>()\n\n// refs\nconst refElTopParent = ref<HTMLElement | null>(null)\n\n// reactive\nconst optShowKeys = ref<string[]>([])\nconst optMsgList:any = reactive({\n 'top-right': [],\n 'top-center': [],\n 'bottom-right': [],\n})\n\nconst optModal:any = reactive({\n icon: {\n info: 'clIcon-info',\n success: 'clIcon-check',\n error: 'clIcon-exclamation',\n warn: 'clIcon-warn-fill',\n },\n delay: 5,\n autoHide: true,\n showDuration: true,\n isClickHide: true,\n})\n\nconst optTimeOutDelays = reactive<any>({})\nlet _timeOutDestroyContainer: any = null\n\n// 常量\nconst defaultNotifyCommon:any = {\n type: ['info', 'success', 'error', 'warn'],\n position: ['top-right', 'top-center', 'bottom-right'],\n}\n\n// 内部方法\nconst _getBody = () => {\n const el = document.querySelector('body')\n return el\n}\n\nconst _getTopEl = () => {\n const el = document.querySelector('body>.panel-notify')\n return el\n}\n\nconst _checkContainer = () => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody()?.appendChild(refElTopParent.value!)\n } else {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n}\n\nconst _destroyContainer = () => {\n nextTick(() => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n if (el) {\n _getBody()?.removeChild(el)\n }\n }, 2 * 1000)\n }\n })\n}\n\nconst _getMsgItem = (key: string) => {\n let selectInfo: any = {}\n let inx = -1\n const pos = key.split('_')[1]\n optMsgList[pos].forEach((info: any, i: number) => {\n if (info.key === key) {\n selectInfo = info\n inx = i\n }\n })\n return { info: selectInfo, inx, pos }\n}\n\nconst _removeItem = (key: string) => {\n const selectInfo = _getMsgItem(key)\n if (selectInfo.inx > -1) {\n const showIndex = optShowKeys.value.indexOf(key)\n optShowKeys.value.splice(showIndex, 1)\n nextTick(() => {\n optMsgList[selectInfo.pos].splice(selectInfo.inx, 1)\n if (optMsgList[selectInfo.pos].length === 0) {\n optMsgList[selectInfo.pos] = []\n }\n if (optShowKeys.value.length === 0) {\n optShowKeys.value = []\n _destroyContainer()\n }\n })\n }\n}\n\nconst _removeByDelay = (key: string) => {\n optTimeOutDelays[key] = setTimeout(() => {\n _removeItem(key)\n }, optModal.delay * 1000)\n}\n\nconst _getTransitionCls = (position: string) => {\n let clsTransitionEnter = 'animated fadeInDown'\n let clsTransitionLeave = 'animated fadeOutRight'\n switch (position) {\n case 'top-right':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n case 'top-center':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOut'\n break\n case 'bottom-right':\n clsTransitionEnter = 'animated fadeInUp'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n }\n return { clsTransitionEnter, clsTransitionLeave }\n}\n\nconst _creatorItem = (optExt: any) => {\n if (!CommonBase.isEmpty(optExt) && !CommonBase.isEmpty(optExt.msg)) {\n _creatorContainer()\n const newType = CommonBase.isExistValue(defaultNotifyCommon.type, optExt.type)\n ? optExt.type\n : defaultNotifyCommon.type[0]\n const options: any = {\n type: newType,\n text: optExt.msg,\n position: props.position || 'top-right',\n isProgress: props.isProgress || false,\n }\n\n if (!CommonBase.isEmpty(optExt)) {\n if (!CommonBase.isEmpty(optExt.position)) {\n options.position = optExt.position\n }\n if (CommonBase.isBoolean(optExt.isProgress)) {\n options.isProgress = optExt.isProgress\n }\n if (!CommonBase.isEmpty(optExt.className)) {\n options.className = optExt.className\n }\n }\n options.position = CommonBase.isExistValue(defaultNotifyCommon.position, options.position)\n ? options.position\n : defaultNotifyCommon.position[0]\n\n options.clsContainer = {\n 'notify-container': true,\n 'notify-progress': options.isProgress,\n }\n options.clsContainer[`notify-${newType}`] = true\n if (options.className) {\n options.clsContainer[options.className] = true\n }\n\n const itemTransitionCls = _getTransitionCls(options.position)\n options.clsTransitionEnter = itemTransitionCls.clsTransitionEnter\n options.clsTransitionLeave = itemTransitionCls.clsTransitionLeave\n\n const icon = CommonBase.isExistJsonKey(optModal.icon, newType)\n ? optModal.icon[newType]\n : defaultNotifyCommon.icon[newType]\n options.icon = `clIconFont ${icon}`\n\n const ind = CommonBase.getRandom(7)\n const notifyKey = `notify_${options.position}_item_${ind}`\n options.key = notifyKey\n\n optMsgList[options.position].push(options)\n nextTick(() => {\n optShowKeys.value.push(options.key)\n _removeByDelay(notifyKey)\n })\n }\n}\n\n// 内部触发的事件 on\nconst onMouseOver = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n}\n\nconst onMouseOut = (itemKey: string) => {\n _removeByDelay(itemKey)\n}\n\nconst onDestroyItem = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n _removeItem(itemKey)\n}\n\n// 外部调用\nconst addCustom = (opt: any) => {\n _creatorItem(opt)\n}\n\nconst destroy = () => {\n defaultNotifyCommon.position.forEach((p: string) => {\n optMsgList[p] = []\n })\n optShowKeys.value = []\n _destroyContainer()\n}\n\n// 暴露给外部的方法\nexport interface ClNotifyExpose {\n addCustom: (options: {\n title?: string\n content: string\n type?: 'success' | 'error' | 'warning' | 'info'\n duration?: number\n isShowClose?: boolean\n }) => void\n destroy: () => void\n}\n\ndefineExpose({\n addCustom,\n destroy\n})\n</script>\n","import { createApp } from \"vue\";\nimport ElementNotify from \"./Notifys.vue\";\nimport CommonBase from \"../../Common/base\";\n\nexport default (options = {}) => {\n const VNotify = createApp(ElementNotify, options);\n const tempParent = document.createElement(\"div\");\n const notify: any = VNotify.mount(tempParent);\n return {\n info: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"info\", msg });\n notify.addCustom(opt);\n },\n success: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"success\", msg });\n notify.addCustom(opt);\n },\n error: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"error\", msg });\n notify.addCustom(opt);\n },\n warn: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"warn\", msg });\n notify.addCustom(opt);\n },\n custom: (opt: any) => {\n notify.addCustom(opt);\n },\n destroy: () => {\n notify.destroy();\n },\n };\n};\n"],"names":["props","__props","emit","__emit","optMouseType","ref","clsProgress","computed","clsProgressBar","onMouseOver","onMouseOut","onDestroyInfo","_createBlock","_Transition","_createElementBlock","_normalizeClass","_createElementVNode","_hoisted_1","_hoisted_2","_hoisted_3","refElTopParent","optShowKeys","optMsgList","reactive","optModal","optTimeOutDelays","_timeOutDestroyContainer","defaultNotifyCommon","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","nextTick","_getMsgItem","key","selectInfo","inx","pos","info","i","_removeItem","showIndex","_removeByDelay","_getTransitionCls","position","clsTransitionEnter","clsTransitionLeave","_creatorItem","optExt","newType","options","itemTransitionCls","icon","ind","notifyKey","itemKey","onDestroyItem","__expose","opt","p","_openBlock","_Fragment","_renderList","msgList","msgPosition","item","ClNotifyItem","index","VNotify","createApp","ElementNotify","tempParent","notify","msg"],"mappings":"2UA0CA,MA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AAG,CACxB,EACA,QAAS,CAACe,EAAazB,EAAS,KAAO,CACnC,MAAMU,EAAM7B,EAAAA,WAAW,aAAamB,EAAQ,CAAE,KAAM,UAAW,IAAAyB,EAAK,EACpED,EAAO,UAAUd,CAAG,CACxB,EACA,MAAO,CAACe,EAAazB,EAAS,KAAO,CACjC,MAAMU,EAAM7B,EAAAA,WAAW,aAAamB,EAAQ,CAAE,KAAM,QAAS,IAAAyB,EAAK,EAClED,EAAO,UAAUd,CAAG,CACxB,EACA,KAAM,CAACe,EAAazB,EAAS,KAAO,CAChC,MAAMU,EAAM7B,EAAAA,WAAW,aAAamB,EAAQ,CAAE,KAAM,OAAQ,IAAAyB,EAAK,EACjED,EAAO,UAAUd,CAAG,CACxB,EACA,OAASA,GAAa,CAClBc,EAAO,UAAUd,CAAG,CACxB,EACA,QAAS,IAAM,CACXc,EAAO,QAAA,CACX,CAAA,CAER"}
@@ -0,0 +1,2 @@
1
+ declare const _default: (options?: Record<string, any>) => object
2
+ export default _default
@@ -0,0 +1,235 @@
1
+ import { defineComponent as S, ref as O, computed as x, openBlock as f, createBlock as $, Transition as z, withCtx as A, createElementBlock as g, normalizeClass as T, createElementVNode as y, createCommentVNode as N, reactive as M, Fragment as _, renderList as L, nextTick as w, createApp as j } from "vue";
2
+ import { C as i } from "../../Shared/base-PQGakkrl.js";
3
+ const G = { class: "notify-item" }, Q = { class: "notify-icon" }, W = { class: "notify-text" }, X = ["innerHTML"], Y = /* @__PURE__ */ S({
4
+ name: "ClNotifyItem",
5
+ __name: "Notify",
6
+ props: {
7
+ isShow: { type: Boolean },
8
+ itemInfo: {}
9
+ },
10
+ emits: ["onMouseOver", "onMouseOut", "onDestroy"],
11
+ setup(a, { emit: v }) {
12
+ const m = a, r = v, t = O(!1), s = x(() => ({
13
+ progress: !0,
14
+ "progress-hide": t.value
15
+ })), c = x(() => ({
16
+ "progress-bar": !0,
17
+ "progress-countdown": !t.value
18
+ })), l = () => {
19
+ t.value = !0, r("onMouseOver", m.itemInfo.key);
20
+ }, h = () => {
21
+ t.value = !1, r("onMouseOut", m.itemInfo.key);
22
+ }, u = () => {
23
+ r("onDestroy", m.itemInfo.key);
24
+ };
25
+ return (I, C) => (f(), $(z, {
26
+ name: "notify",
27
+ "enter-active-class": a.itemInfo.clsTransitionEnter,
28
+ "leave-active-class": a.itemInfo.clsTransitionLeave
29
+ }, {
30
+ default: A(() => [
31
+ a.isShow ? (f(), g("div", {
32
+ key: 0,
33
+ class: T(a.itemInfo.clsContainer),
34
+ onClick: u,
35
+ onMouseover: l,
36
+ onMouseout: h
37
+ }, [
38
+ y("div", G, [
39
+ y("div", Q, [
40
+ y("i", {
41
+ class: T(a.itemInfo.icon)
42
+ }, null, 2)
43
+ ]),
44
+ y("div", W, [
45
+ y("div", {
46
+ innerHTML: a.itemInfo.text
47
+ }, null, 8, X)
48
+ ]),
49
+ y("button", {
50
+ type: "button",
51
+ class: "notify-close",
52
+ title: "关闭",
53
+ onClick: u
54
+ }, [...C[0] || (C[0] = [
55
+ y("i", { class: "clIconFont clIcon-close" }, null, -1)
56
+ ])])
57
+ ]),
58
+ a.itemInfo.isProgress ? (f(), g("div", {
59
+ key: 0,
60
+ class: T(s.value)
61
+ }, [
62
+ y("div", {
63
+ class: T(c.value)
64
+ }, null, 2)
65
+ ], 2)) : N("", !0)
66
+ ], 34)) : N("", !0)
67
+ ]),
68
+ _: 1
69
+ }, 8, ["enter-active-class", "leave-active-class"]));
70
+ }
71
+ }), Z = /* @__PURE__ */ S({
72
+ name: "ClNotify",
73
+ __name: "Notifys",
74
+ props: {
75
+ position: {},
76
+ isProgress: { type: Boolean }
77
+ },
78
+ setup(a, { expose: v }) {
79
+ const m = a, r = O(null), t = O([]), s = M({
80
+ "top-right": [],
81
+ "top-center": [],
82
+ "bottom-right": []
83
+ }), c = M({
84
+ icon: {
85
+ info: "clIcon-info",
86
+ success: "clIcon-check",
87
+ error: "clIcon-exclamation",
88
+ warn: "clIcon-warn-fill"
89
+ },
90
+ delay: 5,
91
+ autoHide: !0,
92
+ showDuration: !0,
93
+ isClickHide: !0
94
+ }), l = M({});
95
+ let h = null;
96
+ const u = {
97
+ type: ["info", "success", "error", "warn"],
98
+ position: ["top-right", "top-center", "bottom-right"]
99
+ }, I = () => document.querySelector("body"), C = () => document.querySelector("body>.panel-notify"), D = () => {
100
+ const e = C();
101
+ return !i.isUndefined(e);
102
+ }, J = () => {
103
+ D() ? (clearTimeout(h), h = null) : I()?.appendChild(r.value);
104
+ }, P = () => {
105
+ w(() => {
106
+ D() && (h = setTimeout(() => {
107
+ const e = C();
108
+ e && I()?.removeChild(e);
109
+ }, 2 * 1e3));
110
+ });
111
+ }, V = (e) => {
112
+ let n = {}, o = -1;
113
+ const d = e.split("_")[1];
114
+ return s[d].forEach((p, k) => {
115
+ p.key === e && (n = p, o = k);
116
+ }), { info: n, inx: o, pos: d };
117
+ }, b = (e) => {
118
+ const n = V(e);
119
+ if (n.inx > -1) {
120
+ const o = t.value.indexOf(e);
121
+ t.value.splice(o, 1), w(() => {
122
+ s[n.pos].splice(n.inx, 1), s[n.pos].length === 0 && (s[n.pos] = []), t.value.length === 0 && (t.value = [], P());
123
+ });
124
+ }
125
+ }, B = (e) => {
126
+ l[e] = setTimeout(() => {
127
+ b(e);
128
+ }, c.delay * 1e3);
129
+ }, H = (e) => {
130
+ let n = "animated fadeInDown", o = "animated fadeOutRight";
131
+ switch (e) {
132
+ case "top-right":
133
+ n = "animated fadeInDown", o = "animated fadeOutRight";
134
+ break;
135
+ case "top-center":
136
+ n = "animated fadeInDown", o = "animated fadeOut";
137
+ break;
138
+ case "bottom-right":
139
+ n = "animated fadeInUp", o = "animated fadeOutRight";
140
+ break;
141
+ }
142
+ return { clsTransitionEnter: n, clsTransitionLeave: o };
143
+ }, R = (e) => {
144
+ if (!i.isEmpty(e) && !i.isEmpty(e.msg)) {
145
+ J();
146
+ const n = i.isExistValue(u.type, e.type) ? e.type : u.type[0], o = {
147
+ type: n,
148
+ text: e.msg,
149
+ position: m.position || "top-right",
150
+ isProgress: m.isProgress || !1
151
+ };
152
+ i.isEmpty(e) || (i.isEmpty(e.position) || (o.position = e.position), i.isBoolean(e.isProgress) && (o.isProgress = e.isProgress), i.isEmpty(e.className) || (o.className = e.className)), o.position = i.isExistValue(u.position, o.position) ? o.position : u.position[0], o.clsContainer = {
153
+ "notify-container": !0,
154
+ "notify-progress": o.isProgress
155
+ }, o.clsContainer[`notify-${n}`] = !0, o.className && (o.clsContainer[o.className] = !0);
156
+ const d = H(o.position);
157
+ o.clsTransitionEnter = d.clsTransitionEnter, o.clsTransitionLeave = d.clsTransitionLeave;
158
+ const p = i.isExistJsonKey(c.icon, n) ? c.icon[n] : u.icon[n];
159
+ o.icon = `clIconFont ${p}`;
160
+ const k = i.getRandom(7), E = `notify_${o.position}_item_${k}`;
161
+ o.key = E, s[o.position].push(o), w(() => {
162
+ t.value.push(o.key), B(E);
163
+ });
164
+ }
165
+ }, F = (e) => {
166
+ l[e] && (clearTimeout(l[e]), l[e] = null);
167
+ }, q = (e) => {
168
+ B(e);
169
+ }, U = (e) => {
170
+ l[e] && (clearTimeout(l[e]), l[e] = null), b(e);
171
+ };
172
+ return v({
173
+ addCustom: (e) => {
174
+ R(e);
175
+ },
176
+ destroy: () => {
177
+ u.position.forEach((e) => {
178
+ s[e] = [];
179
+ }), t.value = [], P();
180
+ }
181
+ }), (e, n) => (f(), g("div", {
182
+ class: "panel-notify",
183
+ ref_key: "refElTopParent",
184
+ ref: r
185
+ }, [
186
+ (f(!0), g(_, null, L(s, (o, d) => (f(), g(_, {
187
+ key: `notify-${d}`
188
+ }, [
189
+ o.length > 0 ? (f(), g("div", {
190
+ key: 0,
191
+ class: T(`notify-wrapper notify-${d}`)
192
+ }, [
193
+ (f(!0), g(_, null, L(o, (p) => (f(), $(Y, {
194
+ key: p.key,
195
+ isShow: t.value.includes(p.key),
196
+ itemInfo: p,
197
+ onOnDestroy: U,
198
+ onOnMouseOver: F,
199
+ onOnMouseOut: q
200
+ }, null, 8, ["isShow", "itemInfo"]))), 128))
201
+ ], 2)) : N("", !0)
202
+ ], 64))), 128))
203
+ ], 512));
204
+ }
205
+ }), ne = (a = {}) => {
206
+ const v = j(Z, a), m = document.createElement("div"), r = v.mount(m);
207
+ return {
208
+ info: (t, s = {}) => {
209
+ const c = i.getJsonMerge(s, { type: "info", msg: t });
210
+ r.addCustom(c);
211
+ },
212
+ success: (t, s = {}) => {
213
+ const c = i.getJsonMerge(s, { type: "success", msg: t });
214
+ r.addCustom(c);
215
+ },
216
+ error: (t, s = {}) => {
217
+ const c = i.getJsonMerge(s, { type: "error", msg: t });
218
+ r.addCustom(c);
219
+ },
220
+ warn: (t, s = {}) => {
221
+ const c = i.getJsonMerge(s, { type: "warn", msg: t });
222
+ r.addCustom(c);
223
+ },
224
+ custom: (t) => {
225
+ r.addCustom(t);
226
+ },
227
+ destroy: () => {
228
+ r.destroy();
229
+ }
230
+ };
231
+ };
232
+ export {
233
+ ne as default
234
+ };
235
+ //# sourceMappingURL=Notify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notify.js","sources":["../../../../src/libs/Web/Notify/Notify.vue","../../../../src/libs/Web/Notify/Notifys.vue","../../../../src/libs/Web/Notify/index.ts"],"sourcesContent":["<template>\n <transition\n name=\"notify\"\n :enter-active-class=\"itemInfo.clsTransitionEnter\"\n :leave-active-class=\"itemInfo.clsTransitionLeave\"\n >\n <div\n v-if=\"isShow\"\n :class=\"itemInfo.clsContainer\"\n @click=\"onDestroyInfo\"\n @mouseover=\"onMouseOver\"\n @mouseout=\"onMouseOut\"\n >\n <div class=\"notify-item\">\n <div class=\"notify-icon\"><i :class=\"itemInfo.icon\"></i></div>\n <div class=\"notify-text\">\n <div v-html=\"itemInfo.text\"></div>\n </div>\n <button\n type=\"button\"\n class=\"notify-close\"\n title=\"关闭\"\n @click=\"onDestroyInfo\"\n ><i class=\"clIconFont clIcon-close\"></i></button>\n </div>\n <div\n v-if=\"itemInfo.isProgress\"\n :class=\"clsProgress\"\n >\n <div :class=\"clsProgressBar\"></div>\n </div>\n </div>\n </transition>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotifyItem' })\n\n// props\nconst props = defineProps<{\n isShow: boolean\n itemInfo: any\n}>()\n\n// emit\nconst emit = defineEmits<{\n (e: 'onMouseOver', key: string): void\n (e: 'onMouseOut', key: string): void\n (e: 'onDestroy', key: string): void\n}>()\n\n// reactive\nconst optMouseType = ref(false)\n\n// computed\nconst clsProgress = computed(() => {\n const cls: any = {\n progress: true,\n 'progress-hide': optMouseType.value,\n }\n return cls\n})\n\nconst clsProgressBar = computed(() => {\n const cls: any = {\n 'progress-bar': true,\n 'progress-countdown': !optMouseType.value,\n }\n return cls\n})\n\n// 内部触发的事件 on\nconst onMouseOver = () => {\n optMouseType.value = true\n emit('onMouseOver', props.itemInfo.key)\n}\n\nconst onMouseOut = () => {\n optMouseType.value = false\n emit('onMouseOut', props.itemInfo.key)\n}\n\nconst onDestroyInfo = () => {\n emit('onDestroy', props.itemInfo.key)\n}\n</script>\n","<template>\n <div\n class=\"panel-notify\"\n ref=\"refElTopParent\"\n >\n <template\n v-for=\"(msgList, msgPosition) in optMsgList\"\n :key=\"`notify-${msgPosition}`\"\n >\n <div\n v-if=\"msgList.length > 0\"\n :class=\"`notify-wrapper notify-${msgPosition}`\"\n >\n <ClNotifyItem\n v-for=\"item in msgList\"\n :key=\"item.key\"\n :isShow=\"optShowKeys.includes(item.key)\"\n :itemInfo=\"item\"\n @onDestroy=\"onDestroyItem\"\n @onMouseOver=\"onMouseOver\"\n @onMouseOut=\"onMouseOut\"\n ></ClNotifyItem>\n </div>\n </template>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClNotifyItem from './Notify.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotify' })\n\n// props\nconst props = defineProps<{\n position?: string\n isProgress?: boolean\n}>()\n\n// refs\nconst refElTopParent = ref<HTMLElement | null>(null)\n\n// reactive\nconst optShowKeys = ref<string[]>([])\nconst optMsgList:any = reactive({\n 'top-right': [],\n 'top-center': [],\n 'bottom-right': [],\n})\n\nconst optModal:any = reactive({\n icon: {\n info: 'clIcon-info',\n success: 'clIcon-check',\n error: 'clIcon-exclamation',\n warn: 'clIcon-warn-fill',\n },\n delay: 5,\n autoHide: true,\n showDuration: true,\n isClickHide: true,\n})\n\nconst optTimeOutDelays = reactive<any>({})\nlet _timeOutDestroyContainer: any = null\n\n// 常量\nconst defaultNotifyCommon:any = {\n type: ['info', 'success', 'error', 'warn'],\n position: ['top-right', 'top-center', 'bottom-right'],\n}\n\n// 内部方法\nconst _getBody = () => {\n const el = document.querySelector('body')\n return el\n}\n\nconst _getTopEl = () => {\n const el = document.querySelector('body>.panel-notify')\n return el\n}\n\nconst _checkContainer = () => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody()?.appendChild(refElTopParent.value!)\n } else {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n}\n\nconst _destroyContainer = () => {\n nextTick(() => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n if (el) {\n _getBody()?.removeChild(el)\n }\n }, 2 * 1000)\n }\n })\n}\n\nconst _getMsgItem = (key: string) => {\n let selectInfo: any = {}\n let inx = -1\n const pos = key.split('_')[1]\n optMsgList[pos].forEach((info: any, i: number) => {\n if (info.key === key) {\n selectInfo = info\n inx = i\n }\n })\n return { info: selectInfo, inx, pos }\n}\n\nconst _removeItem = (key: string) => {\n const selectInfo = _getMsgItem(key)\n if (selectInfo.inx > -1) {\n const showIndex = optShowKeys.value.indexOf(key)\n optShowKeys.value.splice(showIndex, 1)\n nextTick(() => {\n optMsgList[selectInfo.pos].splice(selectInfo.inx, 1)\n if (optMsgList[selectInfo.pos].length === 0) {\n optMsgList[selectInfo.pos] = []\n }\n if (optShowKeys.value.length === 0) {\n optShowKeys.value = []\n _destroyContainer()\n }\n })\n }\n}\n\nconst _removeByDelay = (key: string) => {\n optTimeOutDelays[key] = setTimeout(() => {\n _removeItem(key)\n }, optModal.delay * 1000)\n}\n\nconst _getTransitionCls = (position: string) => {\n let clsTransitionEnter = 'animated fadeInDown'\n let clsTransitionLeave = 'animated fadeOutRight'\n switch (position) {\n case 'top-right':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n case 'top-center':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOut'\n break\n case 'bottom-right':\n clsTransitionEnter = 'animated fadeInUp'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n }\n return { clsTransitionEnter, clsTransitionLeave }\n}\n\nconst _creatorItem = (optExt: any) => {\n if (!CommonBase.isEmpty(optExt) && !CommonBase.isEmpty(optExt.msg)) {\n _creatorContainer()\n const newType = CommonBase.isExistValue(defaultNotifyCommon.type, optExt.type)\n ? optExt.type\n : defaultNotifyCommon.type[0]\n const options: any = {\n type: newType,\n text: optExt.msg,\n position: props.position || 'top-right',\n isProgress: props.isProgress || false,\n }\n\n if (!CommonBase.isEmpty(optExt)) {\n if (!CommonBase.isEmpty(optExt.position)) {\n options.position = optExt.position\n }\n if (CommonBase.isBoolean(optExt.isProgress)) {\n options.isProgress = optExt.isProgress\n }\n if (!CommonBase.isEmpty(optExt.className)) {\n options.className = optExt.className\n }\n }\n options.position = CommonBase.isExistValue(defaultNotifyCommon.position, options.position)\n ? options.position\n : defaultNotifyCommon.position[0]\n\n options.clsContainer = {\n 'notify-container': true,\n 'notify-progress': options.isProgress,\n }\n options.clsContainer[`notify-${newType}`] = true\n if (options.className) {\n options.clsContainer[options.className] = true\n }\n\n const itemTransitionCls = _getTransitionCls(options.position)\n options.clsTransitionEnter = itemTransitionCls.clsTransitionEnter\n options.clsTransitionLeave = itemTransitionCls.clsTransitionLeave\n\n const icon = CommonBase.isExistJsonKey(optModal.icon, newType)\n ? optModal.icon[newType]\n : defaultNotifyCommon.icon[newType]\n options.icon = `clIconFont ${icon}`\n\n const ind = CommonBase.getRandom(7)\n const notifyKey = `notify_${options.position}_item_${ind}`\n options.key = notifyKey\n\n optMsgList[options.position].push(options)\n nextTick(() => {\n optShowKeys.value.push(options.key)\n _removeByDelay(notifyKey)\n })\n }\n}\n\n// 内部触发的事件 on\nconst onMouseOver = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n}\n\nconst onMouseOut = (itemKey: string) => {\n _removeByDelay(itemKey)\n}\n\nconst onDestroyItem = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n _removeItem(itemKey)\n}\n\n// 外部调用\nconst addCustom = (opt: any) => {\n _creatorItem(opt)\n}\n\nconst destroy = () => {\n defaultNotifyCommon.position.forEach((p: string) => {\n optMsgList[p] = []\n })\n optShowKeys.value = []\n _destroyContainer()\n}\n\n// 暴露给外部的方法\nexport interface ClNotifyExpose {\n addCustom: (options: {\n title?: string\n content: string\n type?: 'success' | 'error' | 'warning' | 'info'\n duration?: number\n isShowClose?: boolean\n }) => void\n destroy: () => void\n}\n\ndefineExpose({\n addCustom,\n destroy\n})\n</script>\n","import { createApp } from \"vue\";\nimport ElementNotify from \"./Notifys.vue\";\nimport CommonBase from \"../../Common/base\";\n\nexport default (options = {}) => {\n const VNotify = createApp(ElementNotify, options);\n const tempParent = document.createElement(\"div\");\n const notify: any = VNotify.mount(tempParent);\n return {\n info: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"info\", msg });\n notify.addCustom(opt);\n },\n success: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"success\", msg });\n notify.addCustom(opt);\n },\n error: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"error\", msg });\n notify.addCustom(opt);\n },\n warn: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"warn\", msg });\n notify.addCustom(opt);\n },\n custom: (opt: any) => {\n notify.addCustom(opt);\n },\n destroy: () => {\n notify.destroy();\n },\n };\n};\n"],"names":["props","__props","emit","__emit","optMouseType","ref","clsProgress","computed","clsProgressBar","onMouseOver","onMouseOut","onDestroyInfo","_createBlock","_Transition","_createElementBlock","_normalizeClass","_createElementVNode","_hoisted_1","_hoisted_2","_hoisted_3","refElTopParent","optShowKeys","optMsgList","reactive","optModal","optTimeOutDelays","_timeOutDestroyContainer","defaultNotifyCommon","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","nextTick","_getMsgItem","key","selectInfo","inx","pos","info","i","_removeItem","showIndex","_removeByDelay","_getTransitionCls","position","clsTransitionEnter","clsTransitionLeave","_creatorItem","optExt","newType","options","itemTransitionCls","icon","ind","notifyKey","itemKey","onDestroyItem","__expose","opt","p","_openBlock","_Fragment","_renderList","msgList","msgPosition","item","ClNotifyItem","index","VNotify","createApp","ElementNotify","tempParent","notify","msg"],"mappings":";;;;;;;;;;;AA0CA,UAAMA,IAAQC,GAMRC,IAAOC,GAOPC,IAAeC,EAAI,EAAK,GAGxBC,IAAcC,EAAS,OACV;AAAA,MACf,UAAU;AAAA,MACV,iBAAiBH,EAAa;AAAA,IAAA,EAGjC,GAEKI,IAAiBD,EAAS,OACb;AAAA,MACf,gBAAgB;AAAA,MAChB,sBAAsB,CAACH,EAAa;AAAA,IAAA,EAGvC,GAGKK,IAAc,MAAM;AACxB,MAAAL,EAAa,QAAQ,IACrBF,EAAK,eAAeF,EAAM,SAAS,GAAG;AAAA,IACxC,GAEMU,IAAa,MAAM;AACvB,MAAAN,EAAa,QAAQ,IACrBF,EAAK,cAAcF,EAAM,SAAS,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,GAAazB,IAAS,OAAO;AAChC,YAAMU,IAAM7B,EAAW,aAAamB,GAAQ,EAAE,MAAM,QAAQ,KAAAyB,GAAK;AACjE,MAAAD,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,SAAS,CAACe,GAAazB,IAAS,OAAO;AACnC,YAAMU,IAAM7B,EAAW,aAAamB,GAAQ,EAAE,MAAM,WAAW,KAAAyB,GAAK;AACpE,MAAAD,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,OAAO,CAACe,GAAazB,IAAS,OAAO;AACjC,YAAMU,IAAM7B,EAAW,aAAamB,GAAQ,EAAE,MAAM,SAAS,KAAAyB,GAAK;AAClE,MAAAD,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,MAAM,CAACe,GAAazB,IAAS,OAAO;AAChC,YAAMU,IAAM7B,EAAW,aAAamB,GAAQ,EAAE,MAAM,QAAQ,KAAAyB,GAAK;AACjE,MAAAD,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,QAAQ,CAACA,MAAa;AAClB,MAAAc,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,SAAS,MAAM;AACX,MAAAc,EAAO,QAAA;AAAA,IACX;AAAA,EAAA;AAER;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const p=require("vue"),u=require("../../Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js"),n=require("../../Shared/base-iCmnU-fv.js"),m=(r={})=>{const c=p.createApp(u._sfc_main,r),i=document.createElement("div"),t=c.mount(i);return{image:(e,o={})=>{const s=n.CommonBase.getJsonMerge(o,{type:"image",src:e});t.show(s)},video:(e,o={})=>{const s=n.CommonBase.getJsonMerge(o,{type:"video",src:e});t.show(s)},show:e=>{t.show(e)},destroy:()=>{t.destroy()}}};module.exports=m;
2
+ //# sourceMappingURL=Preview.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Preview.cjs","sources":["../../../../src/libs/Web/Preview/index.ts"],"sourcesContent":["import { createApp } from 'vue'\nimport ElementPreview from './Index.vue'\nimport CommonBase from '../../Common/base'\n\nexport default (options = {}) => {\n const VPreview = createApp(ElementPreview, options)\n const tempParent = document.createElement('div')\n const preview: any = VPreview.mount(tempParent)\n return {\n image: (src: string | string[], optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: 'image', src })\n preview.show(opt)\n },\n video: (src: string | string[], optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: 'video', src })\n preview.show(opt)\n },\n show: (opt: any) => {\n preview.show(opt)\n },\n destroy: () => {\n preview.destroy()\n },\n }\n}\n"],"names":["index","options","VPreview","createApp","ElementPreview","tempParent","preview","src","optExt","opt","CommonBase"],"mappings":"+JAIAA,EAAe,CAACC,EAAU,CAAA,IAAO,CAC/B,MAAMC,EAAWC,EAAAA,UAAUC,EAAAA,UAAgBH,CAAO,EAC5CI,EAAa,SAAS,cAAc,KAAK,EACzCC,EAAeJ,EAAS,MAAMG,CAAU,EAC9C,MAAO,CACL,MAAO,CAACE,EAAwBC,EAAS,KAAO,CAC9C,MAAMC,EAAMC,EAAAA,WAAW,aAAaF,EAAQ,CAAE,KAAM,QAAS,IAAAD,EAAK,EAClED,EAAQ,KAAKG,CAAG,CAClB,EACA,MAAO,CAACF,EAAwBC,EAAS,KAAO,CAC9C,MAAMC,EAAMC,EAAAA,WAAW,aAAaF,EAAQ,CAAE,KAAM,QAAS,IAAAD,EAAK,EAClED,EAAQ,KAAKG,CAAG,CAClB,EACA,KAAOA,GAAa,CAClBH,EAAQ,KAAKG,CAAG,CAClB,EACA,QAAS,IAAM,CACbH,EAAQ,QAAA,CACV,CAAA,CAEJ"}
@@ -0,0 +1,2 @@
1
+ declare const _default: (options?: Record<string, any>) => object
2
+ export default _default