@cldemo/ui-kit 1.0.5 → 1.0.7

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 (648) hide show
  1. package/package.json +2 -2
  2. package/buildLibs/all/index.cjs +0 -99
  3. package/buildLibs/all/index.cjs.map +0 -1
  4. package/buildLibs/all/index.d.ts +0 -83
  5. package/buildLibs/all/index.js +0 -168
  6. package/buildLibs/all/index.js.map +0 -1
  7. package/buildLibs/common/Element/Event/drag.d.ts +0 -24
  8. package/buildLibs/common/Element/Event/index.d.ts +0 -9
  9. package/buildLibs/common/Element/Event/resize.d.ts +0 -20
  10. package/buildLibs/common/Element/index.d.ts +0 -104
  11. package/buildLibs/common/Element_Event_drag-DeZYlveu.js +0 -430
  12. package/buildLibs/common/Element_Event_drag-DeZYlveu.js.map +0 -1
  13. package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs +0 -3
  14. package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs.map +0 -1
  15. package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs +0 -2
  16. package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs.map +0 -1
  17. package/buildLibs/common/Element_Event_resize-DqH_UT2k.js +0 -49
  18. package/buildLibs/common/Element_Event_resize-DqH_UT2k.js.map +0 -1
  19. package/buildLibs/common/Tools/animateEasing.d.ts +0 -27
  20. package/buildLibs/common/Tools/cookie.d.ts +0 -8
  21. package/buildLibs/common/Tools/delayFun.d.ts +0 -9
  22. package/buildLibs/common/Tools/index.d.ts +0 -15
  23. package/buildLibs/common/Tools/localStorage.d.ts +0 -9
  24. package/buildLibs/common/Tools/number.d.ts +0 -8
  25. package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs +0 -2
  26. package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs.map +0 -1
  27. package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js +0 -50
  28. package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js.map +0 -1
  29. package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs +0 -2
  30. package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs.map +0 -1
  31. package/buildLibs/common/Tools_cookie-DKctMXdK.js +0 -31
  32. package/buildLibs/common/Tools_cookie-DKctMXdK.js.map +0 -1
  33. package/buildLibs/common/Tools_delayFun-CA1ktv1L.js +0 -21
  34. package/buildLibs/common/Tools_delayFun-CA1ktv1L.js.map +0 -1
  35. package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs +0 -2
  36. package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs.map +0 -1
  37. package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs +0 -2
  38. package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs.map +0 -1
  39. package/buildLibs/common/Tools_localStorage-DVvhtzhL.js +0 -48
  40. package/buildLibs/common/Tools_localStorage-DVvhtzhL.js.map +0 -1
  41. package/buildLibs/common/Tools_number-Bh6hGO5U.cjs +0 -2
  42. package/buildLibs/common/Tools_number-Bh6hGO5U.cjs.map +0 -1
  43. package/buildLibs/common/Tools_number-C_MjN473.js +0 -22
  44. package/buildLibs/common/Tools_number-C_MjN473.js.map +0 -1
  45. package/buildLibs/common/axios-DZoeNi6y.cjs +0 -2
  46. package/buildLibs/common/axios-DZoeNi6y.cjs.map +0 -1
  47. package/buildLibs/common/axios-DqkFEq4Y.js +0 -242
  48. package/buildLibs/common/axios-DqkFEq4Y.js.map +0 -1
  49. package/buildLibs/common/axios.d.ts +0 -28
  50. package/buildLibs/common/base-PQGakkrl.js +0 -808
  51. package/buildLibs/common/base-PQGakkrl.js.map +0 -1
  52. package/buildLibs/common/base-iCmnU-fv.cjs +0 -2
  53. package/buildLibs/common/base-iCmnU-fv.cjs.map +0 -1
  54. package/buildLibs/common/base.d.ts +0 -222
  55. package/buildLibs/common/day-BzMalBXj.cjs +0 -2
  56. package/buildLibs/common/day-BzMalBXj.cjs.map +0 -1
  57. package/buildLibs/common/day-Dm_AnEZp.js +0 -75
  58. package/buildLibs/common/day-Dm_AnEZp.js.map +0 -1
  59. package/buildLibs/common/day.d.ts +0 -25
  60. package/buildLibs/common/echart-BtfUJ8lE.js +0 -498
  61. package/buildLibs/common/echart-BtfUJ8lE.js.map +0 -1
  62. package/buildLibs/common/echart-Cs3rQ-e9.cjs +0 -2
  63. package/buildLibs/common/echart-Cs3rQ-e9.cjs.map +0 -1
  64. package/buildLibs/common/echart.d.ts +0 -82
  65. package/buildLibs/common/i18n/en.d.ts +0 -111
  66. package/buildLibs/common/i18n/index.d.ts +0 -25
  67. package/buildLibs/common/i18n/zh_CN.d.ts +0 -111
  68. package/buildLibs/common/i18n_en-BHhFEbi6.js +0 -114
  69. package/buildLibs/common/i18n_en-BHhFEbi6.js.map +0 -1
  70. package/buildLibs/common/i18n_en-D-5antzy.cjs +0 -2
  71. package/buildLibs/common/i18n_en-D-5antzy.cjs.map +0 -1
  72. package/buildLibs/common/i18n_zh_CN-COzQ8Los.js +0 -114
  73. package/buildLibs/common/i18n_zh_CN-COzQ8Los.js.map +0 -1
  74. package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs +0 -2
  75. package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs.map +0 -1
  76. package/buildLibs/common/index.cjs +0 -2
  77. package/buildLibs/common/index.cjs.map +0 -1
  78. package/buildLibs/common/index.d.ts +0 -10
  79. package/buildLibs/common/index.js +0 -124
  80. package/buildLibs/common/index.js.map +0 -1
  81. package/buildLibs/common/promise-BtoePzHD.cjs +0 -2
  82. package/buildLibs/common/promise-BtoePzHD.cjs.map +0 -1
  83. package/buildLibs/common/promise-CPiVqqqL.js +0 -44
  84. package/buildLibs/common/promise-CPiVqqqL.js.map +0 -1
  85. package/buildLibs/common/promise.d.ts +0 -14
  86. package/buildLibs/common/tooltip-De0atcAJ.js +0 -215
  87. package/buildLibs/common/tooltip-De0atcAJ.js.map +0 -1
  88. package/buildLibs/common/tooltip-Dj_ol2ax.cjs +0 -2
  89. package/buildLibs/common/tooltip-Dj_ol2ax.cjs.map +0 -1
  90. package/buildLibs/common/tooltip.d.ts +0 -37
  91. package/buildLibs/mobile/index.cjs +0 -56
  92. package/buildLibs/mobile/index.cjs.map +0 -1
  93. package/buildLibs/mobile/index.d.ts +0 -47
  94. package/buildLibs/mobile/index.js +0 -96
  95. package/buildLibs/mobile/index.js.map +0 -1
  96. package/buildLibs/resolver/index.cjs +0 -2
  97. package/buildLibs/resolver/index.cjs.map +0 -1
  98. package/buildLibs/resolver/index.js +0 -82
  99. package/buildLibs/resolver/index.js.map +0 -1
  100. package/buildLibs/resolver/resolver.d.ts +0 -7
  101. package/buildLibs/utils/Element/ClAnchorNav.cjs +0 -2
  102. package/buildLibs/utils/Element/ClAnchorNav.cjs.map +0 -1
  103. package/buildLibs/utils/Element/ClAnchorNav.css +0 -1
  104. package/buildLibs/utils/Element/ClAnchorNav.d.ts +0 -3
  105. package/buildLibs/utils/Element/ClAnchorNav.js +0 -55
  106. package/buildLibs/utils/Element/ClAnchorNav.js.map +0 -1
  107. package/buildLibs/utils/Element/ClBadge.cjs +0 -2
  108. package/buildLibs/utils/Element/ClBadge.cjs.map +0 -1
  109. package/buildLibs/utils/Element/ClBadge.d.ts +0 -3
  110. package/buildLibs/utils/Element/ClBadge.js +0 -5
  111. package/buildLibs/utils/Element/ClBadge.js.map +0 -1
  112. package/buildLibs/utils/Element/ClButton.cjs +0 -2
  113. package/buildLibs/utils/Element/ClButton.cjs.map +0 -1
  114. package/buildLibs/utils/Element/ClButton.css +0 -1
  115. package/buildLibs/utils/Element/ClButton.d.ts +0 -3
  116. package/buildLibs/utils/Element/ClButton.js +0 -226
  117. package/buildLibs/utils/Element/ClButton.js.map +0 -1
  118. package/buildLibs/utils/Element/ClCheckbox.cjs +0 -2
  119. package/buildLibs/utils/Element/ClCheckbox.cjs.map +0 -1
  120. package/buildLibs/utils/Element/ClCheckbox.d.ts +0 -3
  121. package/buildLibs/utils/Element/ClCheckbox.js +0 -205
  122. package/buildLibs/utils/Element/ClCheckbox.js.map +0 -1
  123. package/buildLibs/utils/Element/ClCheckboxOne.d.ts +0 -3
  124. package/buildLibs/utils/Element/ClClipboard.cjs +0 -2
  125. package/buildLibs/utils/Element/ClClipboard.cjs.map +0 -1
  126. package/buildLibs/utils/Element/ClClipboard.d.ts +0 -3
  127. package/buildLibs/utils/Element/ClClipboard.js +0 -5
  128. package/buildLibs/utils/Element/ClClipboard.js.map +0 -1
  129. package/buildLibs/utils/Element/ClCountup.cjs +0 -2
  130. package/buildLibs/utils/Element/ClCountup.cjs.map +0 -1
  131. package/buildLibs/utils/Element/ClCountup.d.ts +0 -3
  132. package/buildLibs/utils/Element/ClCountup.js +0 -56
  133. package/buildLibs/utils/Element/ClCountup.js.map +0 -1
  134. package/buildLibs/utils/Element/ClCropper.cjs +0 -2
  135. package/buildLibs/utils/Element/ClCropper.cjs.map +0 -1
  136. package/buildLibs/utils/Element/ClCropper.d.ts +0 -3
  137. package/buildLibs/utils/Element/ClCropper.js +0 -5
  138. package/buildLibs/utils/Element/ClCropper.js.map +0 -1
  139. package/buildLibs/utils/Element/ClCropperPreview.css +0 -1
  140. package/buildLibs/utils/Element/ClDarg.cjs +0 -7
  141. package/buildLibs/utils/Element/ClDarg.cjs.map +0 -1
  142. package/buildLibs/utils/Element/ClDarg.css +0 -1
  143. package/buildLibs/utils/Element/ClDarg.d.ts +0 -3
  144. package/buildLibs/utils/Element/ClDarg.js +0 -1554
  145. package/buildLibs/utils/Element/ClDarg.js.map +0 -1
  146. package/buildLibs/utils/Element/ClEllipsis.cjs +0 -2
  147. package/buildLibs/utils/Element/ClEllipsis.cjs.map +0 -1
  148. package/buildLibs/utils/Element/ClEllipsis.css +0 -1
  149. package/buildLibs/utils/Element/ClEllipsis.d.ts +0 -3
  150. package/buildLibs/utils/Element/ClEllipsis.js +0 -99
  151. package/buildLibs/utils/Element/ClEllipsis.js.map +0 -1
  152. package/buildLibs/utils/Element/ClForm.cjs +0 -2
  153. package/buildLibs/utils/Element/ClForm.cjs.map +0 -1
  154. package/buildLibs/utils/Element/ClForm.css +0 -1
  155. package/buildLibs/utils/Element/ClForm.d.ts +0 -3
  156. package/buildLibs/utils/Element/ClForm.js +0 -139
  157. package/buildLibs/utils/Element/ClForm.js.map +0 -1
  158. package/buildLibs/utils/Element/ClFormGroup.cjs +0 -2
  159. package/buildLibs/utils/Element/ClFormGroup.cjs.map +0 -1
  160. package/buildLibs/utils/Element/ClFormGroup.css +0 -1
  161. package/buildLibs/utils/Element/ClFormGroup.d.ts +0 -3
  162. package/buildLibs/utils/Element/ClFormGroup.js +0 -76
  163. package/buildLibs/utils/Element/ClFormGroup.js.map +0 -1
  164. package/buildLibs/utils/Element/ClFormValidate.d.ts +0 -3
  165. package/buildLibs/utils/Element/ClIconFont.cjs +0 -2
  166. package/buildLibs/utils/Element/ClIconFont.cjs.map +0 -1
  167. package/buildLibs/utils/Element/ClIconFont.d.ts +0 -3
  168. package/buildLibs/utils/Element/ClIconFont.js +0 -5
  169. package/buildLibs/utils/Element/ClIconFont.js.map +0 -1
  170. package/buildLibs/utils/Element/ClImage.cjs +0 -2
  171. package/buildLibs/utils/Element/ClImage.cjs.map +0 -1
  172. package/buildLibs/utils/Element/ClImage.css +0 -1
  173. package/buildLibs/utils/Element/ClImage.d.ts +0 -3
  174. package/buildLibs/utils/Element/ClImage.js +0 -195
  175. package/buildLibs/utils/Element/ClImage.js.map +0 -1
  176. package/buildLibs/utils/Element/ClInput.cjs +0 -2
  177. package/buildLibs/utils/Element/ClInput.cjs.map +0 -1
  178. package/buildLibs/utils/Element/ClInput.d.ts +0 -3
  179. package/buildLibs/utils/Element/ClInput.js +0 -5
  180. package/buildLibs/utils/Element/ClInput.js.map +0 -1
  181. package/buildLibs/utils/Element/ClInputCaptcha.cjs +0 -2
  182. package/buildLibs/utils/Element/ClInputCaptcha.cjs.map +0 -1
  183. package/buildLibs/utils/Element/ClInputCaptcha.css +0 -1
  184. package/buildLibs/utils/Element/ClInputCaptcha.d.ts +0 -3
  185. package/buildLibs/utils/Element/ClInputCaptcha.js +0 -111
  186. package/buildLibs/utils/Element/ClInputCaptcha.js.map +0 -1
  187. package/buildLibs/utils/Element/ClInputNumber.cjs +0 -2
  188. package/buildLibs/utils/Element/ClInputNumber.cjs.map +0 -1
  189. package/buildLibs/utils/Element/ClInputNumber.d.ts +0 -3
  190. package/buildLibs/utils/Element/ClInputNumber.js +0 -5
  191. package/buildLibs/utils/Element/ClInputNumber.js.map +0 -1
  192. package/buildLibs/utils/Element/ClInputSearch.cjs +0 -2
  193. package/buildLibs/utils/Element/ClInputSearch.cjs.map +0 -1
  194. package/buildLibs/utils/Element/ClInputSearch.d.ts +0 -3
  195. package/buildLibs/utils/Element/ClInputSearch.js +0 -5
  196. package/buildLibs/utils/Element/ClInputSearch.js.map +0 -1
  197. package/buildLibs/utils/Element/ClInputTag.css +0 -1
  198. package/buildLibs/utils/Element/ClInputTextarea.cjs +0 -2
  199. package/buildLibs/utils/Element/ClInputTextarea.cjs.map +0 -1
  200. package/buildLibs/utils/Element/ClInputTextarea.d.ts +0 -3
  201. package/buildLibs/utils/Element/ClInputTextarea.js +0 -5
  202. package/buildLibs/utils/Element/ClInputTextarea.js.map +0 -1
  203. package/buildLibs/utils/Element/ClInputnumberButton.d.ts +0 -3
  204. package/buildLibs/utils/Element/ClLink.cjs +0 -2
  205. package/buildLibs/utils/Element/ClLink.cjs.map +0 -1
  206. package/buildLibs/utils/Element/ClLink.d.ts +0 -3
  207. package/buildLibs/utils/Element/ClLink.js +0 -5
  208. package/buildLibs/utils/Element/ClLink.js.map +0 -1
  209. package/buildLibs/utils/Element/ClLoad.cjs +0 -2
  210. package/buildLibs/utils/Element/ClLoad.cjs.map +0 -1
  211. package/buildLibs/utils/Element/ClLoad.d.ts +0 -3
  212. package/buildLibs/utils/Element/ClLoad.js +0 -5
  213. package/buildLibs/utils/Element/ClLoad.js.map +0 -1
  214. package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +0 -3
  215. package/buildLibs/utils/Element/ClLoadIng.d.ts +0 -3
  216. package/buildLibs/utils/Element/ClLoadScreen.cjs +0 -2
  217. package/buildLibs/utils/Element/ClLoadScreen.cjs.map +0 -1
  218. package/buildLibs/utils/Element/ClLoadScreen.d.ts +0 -3
  219. package/buildLibs/utils/Element/ClLoadScreen.js +0 -5
  220. package/buildLibs/utils/Element/ClLoadScreen.js.map +0 -1
  221. package/buildLibs/utils/Element/ClLoadWarp.d.ts +0 -3
  222. package/buildLibs/utils/Element/ClModal.cjs +0 -2
  223. package/buildLibs/utils/Element/ClModal.cjs.map +0 -1
  224. package/buildLibs/utils/Element/ClModal.d.ts +0 -3
  225. package/buildLibs/utils/Element/ClModal.js +0 -5
  226. package/buildLibs/utils/Element/ClModal.js.map +0 -1
  227. package/buildLibs/utils/Element/ClProgress.cjs +0 -2
  228. package/buildLibs/utils/Element/ClProgress.cjs.map +0 -1
  229. package/buildLibs/utils/Element/ClProgress.css +0 -1
  230. package/buildLibs/utils/Element/ClProgress.d.ts +0 -3
  231. package/buildLibs/utils/Element/ClProgress.js +0 -219
  232. package/buildLibs/utils/Element/ClProgress.js.map +0 -1
  233. package/buildLibs/utils/Element/ClRadio.cjs +0 -2
  234. package/buildLibs/utils/Element/ClRadio.cjs.map +0 -1
  235. package/buildLibs/utils/Element/ClRadio.d.ts +0 -3
  236. package/buildLibs/utils/Element/ClRadio.js +0 -176
  237. package/buildLibs/utils/Element/ClRadio.js.map +0 -1
  238. package/buildLibs/utils/Element/ClRadioOne.d.ts +0 -3
  239. package/buildLibs/utils/Element/ClSlider.cjs +0 -2
  240. package/buildLibs/utils/Element/ClSlider.cjs.map +0 -1
  241. package/buildLibs/utils/Element/ClSlider.css +0 -1
  242. package/buildLibs/utils/Element/ClSlider.d.ts +0 -3
  243. package/buildLibs/utils/Element/ClSlider.js +0 -721
  244. package/buildLibs/utils/Element/ClSlider.js.map +0 -1
  245. package/buildLibs/utils/Element/ClSwitchery.cjs +0 -2
  246. package/buildLibs/utils/Element/ClSwitchery.cjs.map +0 -1
  247. package/buildLibs/utils/Element/ClSwitchery.css +0 -1
  248. package/buildLibs/utils/Element/ClSwitchery.d.ts +0 -3
  249. package/buildLibs/utils/Element/ClSwitchery.js +0 -429
  250. package/buildLibs/utils/Element/ClSwitchery.js.map +0 -1
  251. package/buildLibs/utils/Element/ClTags.cjs +0 -2
  252. package/buildLibs/utils/Element/ClTags.cjs.map +0 -1
  253. package/buildLibs/utils/Element/ClTags.d.ts +0 -3
  254. package/buildLibs/utils/Element/ClTags.js +0 -5
  255. package/buildLibs/utils/Element/ClTags.js.map +0 -1
  256. package/buildLibs/utils/Element/ClTransitionSlideupdown.d.ts +0 -3
  257. package/buildLibs/utils/Element/ClWaterfall.cjs +0 -2
  258. package/buildLibs/utils/Element/ClWaterfall.cjs.map +0 -1
  259. package/buildLibs/utils/Element/ClWaterfall.css +0 -1
  260. package/buildLibs/utils/Element/ClWaterfall.d.ts +0 -3
  261. package/buildLibs/utils/Element/ClWaterfall.js +0 -167
  262. package/buildLibs/utils/Element/ClWaterfall.js.map +0 -1
  263. package/buildLibs/utils/Element/ClWaterfallImage.d.ts +0 -3
  264. package/buildLibs/utils/Element/__provide__/Clipboard.cjs +0 -2
  265. package/buildLibs/utils/Element/__provide__/Clipboard.cjs.map +0 -1
  266. package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +0 -2
  267. package/buildLibs/utils/Element/__provide__/Clipboard.js +0 -62
  268. package/buildLibs/utils/Element/__provide__/Clipboard.js.map +0 -1
  269. package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +0 -2
  270. package/buildLibs/utils/Element/__provide__/LoadScreen.cjs.map +0 -1
  271. package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +0 -2
  272. package/buildLibs/utils/Element/__provide__/LoadScreen.js +0 -17
  273. package/buildLibs/utils/Element/__provide__/LoadScreen.js.map +0 -1
  274. package/buildLibs/utils/Element/__provide__/languagePack.cjs +0 -2
  275. package/buildLibs/utils/Element/__provide__/languagePack.cjs.map +0 -1
  276. package/buildLibs/utils/Element/__provide__/languagePack.d.ts +0 -2
  277. package/buildLibs/utils/Element/__provide__/languagePack.js +0 -29
  278. package/buildLibs/utils/Element/__provide__/languagePack.js.map +0 -1
  279. package/buildLibs/utils/Mobile/ClCell.cjs +0 -2
  280. package/buildLibs/utils/Mobile/ClCell.cjs.map +0 -1
  281. package/buildLibs/utils/Mobile/ClCell.css +0 -1
  282. package/buildLibs/utils/Mobile/ClCell.d.ts +0 -3
  283. package/buildLibs/utils/Mobile/ClCell.js +0 -130
  284. package/buildLibs/utils/Mobile/ClCell.js.map +0 -1
  285. package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +0 -2
  286. package/buildLibs/utils/Mobile/ClPullToRefresh.cjs.map +0 -1
  287. package/buildLibs/utils/Mobile/ClPullToRefresh.css +0 -1
  288. package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +0 -3
  289. package/buildLibs/utils/Mobile/ClPullToRefresh.js +0 -195
  290. package/buildLibs/utils/Mobile/ClPullToRefresh.js.map +0 -1
  291. package/buildLibs/utils/Shared/Alert.css +0 -1
  292. package/buildLibs/utils/Shared/Base.css +0 -1
  293. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js +0 -2
  294. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js.map +0 -1
  295. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js +0 -354
  296. package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js.map +0 -1
  297. package/buildLibs/utils/Shared/BaseTransition.css +0 -1
  298. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js +0 -2
  299. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js.map +0 -1
  300. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js +0 -121
  301. package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js.map +0 -1
  302. package/buildLibs/utils/Shared/Highlight.css +0 -1
  303. package/buildLibs/utils/Shared/Index.css +0 -1
  304. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js +0 -233
  305. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js.map +0 -1
  306. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js +0 -75
  307. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js.map +0 -1
  308. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js +0 -2
  309. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js.map +0 -1
  310. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js +0 -2
  311. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js.map +0 -1
  312. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js +0 -2
  313. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js.map +0 -1
  314. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js +0 -143
  315. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js.map +0 -1
  316. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js +0 -2
  317. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js.map +0 -1
  318. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js +0 -24
  319. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js.map +0 -1
  320. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js +0 -1146
  321. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js.map +0 -1
  322. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js +0 -336
  323. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js.map +0 -1
  324. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js +0 -2
  325. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js.map +0 -1
  326. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js +0 -2
  327. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js.map +0 -1
  328. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js +0 -165
  329. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js.map +0 -1
  330. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js +0 -2
  331. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js.map +0 -1
  332. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js +0 -168
  333. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js.map +0 -1
  334. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js +0 -2
  335. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js.map +0 -1
  336. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js +0 -2
  337. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js.map +0 -1
  338. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js +0 -70
  339. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js.map +0 -1
  340. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js +0 -2
  341. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js.map +0 -1
  342. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js +0 -84
  343. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js.map +0 -1
  344. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js +0 -2
  345. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js.map +0 -1
  346. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js +0 -98
  347. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js.map +0 -1
  348. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js +0 -342
  349. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js.map +0 -1
  350. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js +0 -166
  351. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js.map +0 -1
  352. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js +0 -2
  353. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js.map +0 -1
  354. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js +0 -2
  355. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js.map +0 -1
  356. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js +0 -384
  357. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js.map +0 -1
  358. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js +0 -462
  359. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js.map +0 -1
  360. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js +0 -2
  361. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js.map +0 -1
  362. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js +0 -2
  363. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js.map +0 -1
  364. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js +0 -2
  365. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js.map +0 -1
  366. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js +0 -2
  367. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js.map +0 -1
  368. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js +0 -593
  369. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js.map +0 -1
  370. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js +0 -54
  371. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js.map +0 -1
  372. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js +0 -144
  373. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js.map +0 -1
  374. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js +0 -2
  375. package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js.map +0 -1
  376. package/buildLibs/utils/Shared/Index10.css +0 -1
  377. package/buildLibs/utils/Shared/Index11.css +0 -1
  378. package/buildLibs/utils/Shared/Index12.css +0 -1
  379. package/buildLibs/utils/Shared/Index13.css +0 -1
  380. package/buildLibs/utils/Shared/Index14.css +0 -1
  381. package/buildLibs/utils/Shared/Index15.css +0 -1
  382. package/buildLibs/utils/Shared/Index16.css +0 -1
  383. package/buildLibs/utils/Shared/Index17.css +0 -1
  384. package/buildLibs/utils/Shared/Index18.css +0 -1
  385. package/buildLibs/utils/Shared/Index19.css +0 -1
  386. package/buildLibs/utils/Shared/Index2.css +0 -1
  387. package/buildLibs/utils/Shared/Index3.css +0 -1
  388. package/buildLibs/utils/Shared/Index4.css +0 -1
  389. package/buildLibs/utils/Shared/Index5.css +0 -1
  390. package/buildLibs/utils/Shared/Index6.css +0 -1
  391. package/buildLibs/utils/Shared/Index7.css +0 -1
  392. package/buildLibs/utils/Shared/Index8.css +0 -1
  393. package/buildLibs/utils/Shared/Index9.css +0 -1
  394. package/buildLibs/utils/Shared/Ing-C_3NkQxd.js +0 -43
  395. package/buildLibs/utils/Shared/Ing-C_3NkQxd.js.map +0 -1
  396. package/buildLibs/utils/Shared/Ing-D_cd5IxY.js +0 -2
  397. package/buildLibs/utils/Shared/Ing-D_cd5IxY.js.map +0 -1
  398. package/buildLibs/utils/Shared/Ing.css +0 -1
  399. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js +0 -2
  400. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js.map +0 -1
  401. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js +0 -141
  402. package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js.map +0 -1
  403. package/buildLibs/utils/Shared/Notify.css +0 -1
  404. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js +0 -87
  405. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js.map +0 -1
  406. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js +0 -2
  407. package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js.map +0 -1
  408. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js +0 -109
  409. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js.map +0 -1
  410. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js +0 -2
  411. package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js.map +0 -1
  412. package/buildLibs/utils/Shared/Tooltip.css +0 -1
  413. package/buildLibs/utils/Shared/Waves.css +0 -7
  414. package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js +0 -2
  415. package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js.map +0 -1
  416. package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js +0 -10
  417. package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js.map +0 -1
  418. package/buildLibs/utils/Shared/base-PQGakkrl.js +0 -808
  419. package/buildLibs/utils/Shared/base-PQGakkrl.js.map +0 -1
  420. package/buildLibs/utils/Shared/base-iCmnU-fv.js +0 -2
  421. package/buildLibs/utils/Shared/base-iCmnU-fv.js.map +0 -1
  422. package/buildLibs/utils/Shared/day-Bz9LfelO.js +0 -75
  423. package/buildLibs/utils/Shared/day-Bz9LfelO.js.map +0 -1
  424. package/buildLibs/utils/Shared/day-CvcvgKjb.js +0 -2
  425. package/buildLibs/utils/Shared/day-CvcvgKjb.js.map +0 -1
  426. package/buildLibs/utils/Shared/drag-CzE5R222.js +0 -2
  427. package/buildLibs/utils/Shared/drag-CzE5R222.js.map +0 -1
  428. package/buildLibs/utils/Shared/drag-CzfhSB0g.js +0 -42
  429. package/buildLibs/utils/Shared/drag-CzfhSB0g.js.map +0 -1
  430. package/buildLibs/utils/Shared/index-BnerInzC.js +0 -432
  431. package/buildLibs/utils/Shared/index-BnerInzC.js.map +0 -1
  432. package/buildLibs/utils/Shared/index-C1R9HAvS.js +0 -320
  433. package/buildLibs/utils/Shared/index-C1R9HAvS.js.map +0 -1
  434. package/buildLibs/utils/Shared/index-CVBh8iTg.js +0 -2
  435. package/buildLibs/utils/Shared/index-CVBh8iTg.js.map +0 -1
  436. package/buildLibs/utils/Shared/index-Ul6uY51t.js +0 -3
  437. package/buildLibs/utils/Shared/index-Ul6uY51t.js.map +0 -1
  438. package/buildLibs/utils/Shared/language-D6gRWx8H.js +0 -2
  439. package/buildLibs/utils/Shared/language-D6gRWx8H.js.map +0 -1
  440. package/buildLibs/utils/Shared/language-DxTlvFs2.js +0 -18
  441. package/buildLibs/utils/Shared/language-DxTlvFs2.js.map +0 -1
  442. package/buildLibs/utils/Shared/resize-COkswDOq.js +0 -2
  443. package/buildLibs/utils/Shared/resize-COkswDOq.js.map +0 -1
  444. package/buildLibs/utils/Shared/resize-kOWxHVSP.js +0 -54
  445. package/buildLibs/utils/Shared/resize-kOWxHVSP.js.map +0 -1
  446. package/buildLibs/utils/Shared/vue-virtual-scroller.css +0 -1
  447. package/buildLibs/utils/Web/ClBreadcrumb.cjs +0 -2
  448. package/buildLibs/utils/Web/ClBreadcrumb.cjs.map +0 -1
  449. package/buildLibs/utils/Web/ClBreadcrumb.css +0 -1
  450. package/buildLibs/utils/Web/ClBreadcrumb.d.ts +0 -3
  451. package/buildLibs/utils/Web/ClBreadcrumb.js +0 -82
  452. package/buildLibs/utils/Web/ClBreadcrumb.js.map +0 -1
  453. package/buildLibs/utils/Web/ClCalendar.cjs +0 -2
  454. package/buildLibs/utils/Web/ClCalendar.cjs.map +0 -1
  455. package/buildLibs/utils/Web/ClCalendar.css +0 -1
  456. package/buildLibs/utils/Web/ClCalendar.d.ts +0 -3
  457. package/buildLibs/utils/Web/ClCalendar.js +0 -179
  458. package/buildLibs/utils/Web/ClCalendar.js.map +0 -1
  459. package/buildLibs/utils/Web/ClCard.cjs +0 -2
  460. package/buildLibs/utils/Web/ClCard.cjs.map +0 -1
  461. package/buildLibs/utils/Web/ClCard.d.ts +0 -3
  462. package/buildLibs/utils/Web/ClCard.js +0 -5
  463. package/buildLibs/utils/Web/ClCard.js.map +0 -1
  464. package/buildLibs/utils/Web/ClCardLegend.cjs +0 -2
  465. package/buildLibs/utils/Web/ClCardLegend.cjs.map +0 -1
  466. package/buildLibs/utils/Web/ClCardLegend.css +0 -1
  467. package/buildLibs/utils/Web/ClCardLegend.d.ts +0 -3
  468. package/buildLibs/utils/Web/ClCardLegend.js +0 -128
  469. package/buildLibs/utils/Web/ClCardLegend.js.map +0 -1
  470. package/buildLibs/utils/Web/ClCollapse.cjs +0 -2
  471. package/buildLibs/utils/Web/ClCollapse.cjs.map +0 -1
  472. package/buildLibs/utils/Web/ClCollapse.css +0 -1
  473. package/buildLibs/utils/Web/ClCollapse.d.ts +0 -3
  474. package/buildLibs/utils/Web/ClCollapse.js +0 -111
  475. package/buildLibs/utils/Web/ClCollapse.js.map +0 -1
  476. package/buildLibs/utils/Web/ClColorpicker.cjs +0 -2
  477. package/buildLibs/utils/Web/ClColorpicker.cjs.map +0 -1
  478. package/buildLibs/utils/Web/ClColorpicker.css +0 -1
  479. package/buildLibs/utils/Web/ClColorpicker.d.ts +0 -3
  480. package/buildLibs/utils/Web/ClColorpicker.js +0 -1130
  481. package/buildLibs/utils/Web/ClColorpicker.js.map +0 -1
  482. package/buildLibs/utils/Web/ClCropperPreview.cjs +0 -2
  483. package/buildLibs/utils/Web/ClCropperPreview.cjs.map +0 -1
  484. package/buildLibs/utils/Web/ClCropperPreview.d.ts +0 -3
  485. package/buildLibs/utils/Web/ClCropperPreview.js +0 -175
  486. package/buildLibs/utils/Web/ClCropperPreview.js.map +0 -1
  487. package/buildLibs/utils/Web/ClDatetime.cjs +0 -2
  488. package/buildLibs/utils/Web/ClDatetime.cjs.map +0 -1
  489. package/buildLibs/utils/Web/ClDatetime.css +0 -1
  490. package/buildLibs/utils/Web/ClDatetime.d.ts +0 -3
  491. package/buildLibs/utils/Web/ClDatetime.js +0 -2002
  492. package/buildLibs/utils/Web/ClDatetime.js.map +0 -1
  493. package/buildLibs/utils/Web/ClDropdownmenu.cjs +0 -2
  494. package/buildLibs/utils/Web/ClDropdownmenu.cjs.map +0 -1
  495. package/buildLibs/utils/Web/ClDropdownmenu.css +0 -1
  496. package/buildLibs/utils/Web/ClDropdownmenu.d.ts +0 -3
  497. package/buildLibs/utils/Web/ClDropdownmenu.js +0 -75
  498. package/buildLibs/utils/Web/ClDropdownmenu.js.map +0 -1
  499. package/buildLibs/utils/Web/ClDropdownmenuItem.d.ts +0 -3
  500. package/buildLibs/utils/Web/ClDropdownpopup.cjs +0 -2
  501. package/buildLibs/utils/Web/ClDropdownpopup.cjs.map +0 -1
  502. package/buildLibs/utils/Web/ClDropdownpopup.css +0 -1
  503. package/buildLibs/utils/Web/ClDropdownpopup.d.ts +0 -3
  504. package/buildLibs/utils/Web/ClDropdownpopup.js +0 -89
  505. package/buildLibs/utils/Web/ClDropdownpopup.js.map +0 -1
  506. package/buildLibs/utils/Web/ClEcharts.cjs +0 -2
  507. package/buildLibs/utils/Web/ClEcharts.cjs.map +0 -1
  508. package/buildLibs/utils/Web/ClEcharts.css +0 -1
  509. package/buildLibs/utils/Web/ClEcharts.d.ts +0 -3
  510. package/buildLibs/utils/Web/ClEcharts.js +0 -297
  511. package/buildLibs/utils/Web/ClEcharts.js.map +0 -1
  512. package/buildLibs/utils/Web/ClFileupload.cjs +0 -2
  513. package/buildLibs/utils/Web/ClFileupload.cjs.map +0 -1
  514. package/buildLibs/utils/Web/ClFileupload.d.ts +0 -3
  515. package/buildLibs/utils/Web/ClFileupload.js +0 -5
  516. package/buildLibs/utils/Web/ClFileupload.js.map +0 -1
  517. package/buildLibs/utils/Web/ClInputTag.cjs +0 -6
  518. package/buildLibs/utils/Web/ClInputTag.cjs.map +0 -1
  519. package/buildLibs/utils/Web/ClInputTag.d.ts +0 -3
  520. package/buildLibs/utils/Web/ClInputTag.js +0 -854
  521. package/buildLibs/utils/Web/ClInputTag.js.map +0 -1
  522. package/buildLibs/utils/Web/ClPaginate.cjs +0 -2
  523. package/buildLibs/utils/Web/ClPaginate.cjs.map +0 -1
  524. package/buildLibs/utils/Web/ClPaginate.css +0 -1
  525. package/buildLibs/utils/Web/ClPaginate.d.ts +0 -3
  526. package/buildLibs/utils/Web/ClPaginate.js +0 -167
  527. package/buildLibs/utils/Web/ClPaginate.js.map +0 -1
  528. package/buildLibs/utils/Web/ClPortlet.cjs +0 -2
  529. package/buildLibs/utils/Web/ClPortlet.cjs.map +0 -1
  530. package/buildLibs/utils/Web/ClPortlet.css +0 -1
  531. package/buildLibs/utils/Web/ClPortlet.d.ts +0 -3
  532. package/buildLibs/utils/Web/ClPortlet.js +0 -47
  533. package/buildLibs/utils/Web/ClPortlet.js.map +0 -1
  534. package/buildLibs/utils/Web/ClPreview.cjs +0 -2
  535. package/buildLibs/utils/Web/ClPreview.cjs.map +0 -1
  536. package/buildLibs/utils/Web/ClPreview.js +0 -5
  537. package/buildLibs/utils/Web/ClPreview.js.map +0 -1
  538. package/buildLibs/utils/Web/ClPreviewexample.cjs +0 -2
  539. package/buildLibs/utils/Web/ClPreviewexample.cjs.map +0 -1
  540. package/buildLibs/utils/Web/ClPreviewexample.d.ts +0 -3
  541. package/buildLibs/utils/Web/ClPreviewexample.js +0 -5
  542. package/buildLibs/utils/Web/ClPreviewexample.js.map +0 -1
  543. package/buildLibs/utils/Web/ClScrollXFence.cjs +0 -2
  544. package/buildLibs/utils/Web/ClScrollXFence.cjs.map +0 -1
  545. package/buildLibs/utils/Web/ClScrollXFence.css +0 -1
  546. package/buildLibs/utils/Web/ClScrollXFence.d.ts +0 -3
  547. package/buildLibs/utils/Web/ClScrollXFence.js +0 -107
  548. package/buildLibs/utils/Web/ClScrollXFence.js.map +0 -1
  549. package/buildLibs/utils/Web/ClSelect.cjs +0 -2
  550. package/buildLibs/utils/Web/ClSelect.cjs.map +0 -1
  551. package/buildLibs/utils/Web/ClSelect.d.ts +0 -3
  552. package/buildLibs/utils/Web/ClSelect.js +0 -5
  553. package/buildLibs/utils/Web/ClSelect.js.map +0 -1
  554. package/buildLibs/utils/Web/ClSelectCascade.cjs +0 -2
  555. package/buildLibs/utils/Web/ClSelectCascade.cjs.map +0 -1
  556. package/buildLibs/utils/Web/ClSelectCascade.css +0 -1
  557. package/buildLibs/utils/Web/ClSelectCascade.d.ts +0 -3
  558. package/buildLibs/utils/Web/ClSelectCascade.js +0 -222
  559. package/buildLibs/utils/Web/ClSelectCascade.js.map +0 -1
  560. package/buildLibs/utils/Web/ClSelectTag.cjs +0 -2
  561. package/buildLibs/utils/Web/ClSelectTag.cjs.map +0 -1
  562. package/buildLibs/utils/Web/ClSelectTag.css +0 -1
  563. package/buildLibs/utils/Web/ClSelectTag.d.ts +0 -3
  564. package/buildLibs/utils/Web/ClSelectTag.js +0 -249
  565. package/buildLibs/utils/Web/ClSelectTag.js.map +0 -1
  566. package/buildLibs/utils/Web/ClSelectTree.cjs +0 -2
  567. package/buildLibs/utils/Web/ClSelectTree.cjs.map +0 -1
  568. package/buildLibs/utils/Web/ClSelectTree.css +0 -1
  569. package/buildLibs/utils/Web/ClSelectTree.d.ts +0 -3
  570. package/buildLibs/utils/Web/ClSelectTree.js +0 -190
  571. package/buildLibs/utils/Web/ClSelectTree.js.map +0 -1
  572. package/buildLibs/utils/Web/ClSelectmove.cjs +0 -2
  573. package/buildLibs/utils/Web/ClSelectmove.cjs.map +0 -1
  574. package/buildLibs/utils/Web/ClSelectmove.css +0 -1
  575. package/buildLibs/utils/Web/ClSelectmove.d.ts +0 -3
  576. package/buildLibs/utils/Web/ClSelectmove.js +0 -1090
  577. package/buildLibs/utils/Web/ClSelectmove.js.map +0 -1
  578. package/buildLibs/utils/Web/ClSidemenu.cjs +0 -2
  579. package/buildLibs/utils/Web/ClSidemenu.cjs.map +0 -1
  580. package/buildLibs/utils/Web/ClSidemenu.css +0 -1
  581. package/buildLibs/utils/Web/ClSidemenu.d.ts +0 -3
  582. package/buildLibs/utils/Web/ClSidemenu.js +0 -190
  583. package/buildLibs/utils/Web/ClSidemenu.js.map +0 -1
  584. package/buildLibs/utils/Web/ClTable.cjs +0 -2
  585. package/buildLibs/utils/Web/ClTable.cjs.map +0 -1
  586. package/buildLibs/utils/Web/ClTable.css +0 -1
  587. package/buildLibs/utils/Web/ClTable.d.ts +0 -3
  588. package/buildLibs/utils/Web/ClTable.js +0 -1914
  589. package/buildLibs/utils/Web/ClTable.js.map +0 -1
  590. package/buildLibs/utils/Web/ClTabs.cjs +0 -2
  591. package/buildLibs/utils/Web/ClTabs.cjs.map +0 -1
  592. package/buildLibs/utils/Web/ClTabs.css +0 -1
  593. package/buildLibs/utils/Web/ClTabs.d.ts +0 -3
  594. package/buildLibs/utils/Web/ClTabs.js +0 -276
  595. package/buildLibs/utils/Web/ClTabs.js.map +0 -1
  596. package/buildLibs/utils/Web/ClTree.cjs +0 -2
  597. package/buildLibs/utils/Web/ClTree.cjs.map +0 -1
  598. package/buildLibs/utils/Web/ClTree.css +0 -1
  599. package/buildLibs/utils/Web/ClTree.d.ts +0 -3
  600. package/buildLibs/utils/Web/ClTree.js +0 -416
  601. package/buildLibs/utils/Web/ClTree.js.map +0 -1
  602. package/buildLibs/utils/Web/ClWeekhour.cjs +0 -2
  603. package/buildLibs/utils/Web/ClWeekhour.cjs.map +0 -1
  604. package/buildLibs/utils/Web/ClWeekhour.css +0 -1
  605. package/buildLibs/utils/Web/ClWeekhour.d.ts +0 -3
  606. package/buildLibs/utils/Web/ClWeekhour.js +0 -679
  607. package/buildLibs/utils/Web/ClWeekhour.js.map +0 -1
  608. package/buildLibs/utils/Web/ClXeditable.cjs +0 -2
  609. package/buildLibs/utils/Web/ClXeditable.cjs.map +0 -1
  610. package/buildLibs/utils/Web/ClXeditable.css +0 -1
  611. package/buildLibs/utils/Web/ClXeditable.d.ts +0 -3
  612. package/buildLibs/utils/Web/ClXeditable.js +0 -593
  613. package/buildLibs/utils/Web/ClXeditable.js.map +0 -1
  614. package/buildLibs/utils/Web/__directive__/Highlight.cjs +0 -4
  615. package/buildLibs/utils/Web/__directive__/Highlight.cjs.map +0 -1
  616. package/buildLibs/utils/Web/__directive__/Highlight.d.ts +0 -2
  617. package/buildLibs/utils/Web/__directive__/Highlight.js +0 -3625
  618. package/buildLibs/utils/Web/__directive__/Highlight.js.map +0 -1
  619. package/buildLibs/utils/Web/__directive__/Tooltip.cjs +0 -2
  620. package/buildLibs/utils/Web/__directive__/Tooltip.cjs.map +0 -1
  621. package/buildLibs/utils/Web/__directive__/Tooltip.d.ts +0 -2
  622. package/buildLibs/utils/Web/__directive__/Tooltip.js +0 -356
  623. package/buildLibs/utils/Web/__directive__/Tooltip.js.map +0 -1
  624. package/buildLibs/utils/Web/__directive__/Waves.cjs +0 -9
  625. package/buildLibs/utils/Web/__directive__/Waves.cjs.map +0 -1
  626. package/buildLibs/utils/Web/__directive__/Waves.d.ts +0 -2
  627. package/buildLibs/utils/Web/__directive__/Waves.js +0 -256
  628. package/buildLibs/utils/Web/__directive__/Waves.js.map +0 -1
  629. package/buildLibs/utils/Web/__provide__/Alert.cjs +0 -2
  630. package/buildLibs/utils/Web/__provide__/Alert.cjs.map +0 -1
  631. package/buildLibs/utils/Web/__provide__/Alert.d.ts +0 -2
  632. package/buildLibs/utils/Web/__provide__/Alert.js +0 -236
  633. package/buildLibs/utils/Web/__provide__/Alert.js.map +0 -1
  634. package/buildLibs/utils/Web/__provide__/Notify.cjs +0 -2
  635. package/buildLibs/utils/Web/__provide__/Notify.cjs.map +0 -1
  636. package/buildLibs/utils/Web/__provide__/Notify.d.ts +0 -2
  637. package/buildLibs/utils/Web/__provide__/Notify.js +0 -235
  638. package/buildLibs/utils/Web/__provide__/Notify.js.map +0 -1
  639. package/buildLibs/utils/Web/__provide__/Preview.cjs +0 -2
  640. package/buildLibs/utils/Web/__provide__/Preview.cjs.map +0 -1
  641. package/buildLibs/utils/Web/__provide__/Preview.d.ts +0 -2
  642. package/buildLibs/utils/Web/__provide__/Preview.js +0 -26
  643. package/buildLibs/utils/Web/__provide__/Preview.js.map +0 -1
  644. package/buildLibs/web/index.cjs +0 -97
  645. package/buildLibs/web/index.cjs.map +0 -1
  646. package/buildLibs/web/index.d.ts +0 -81
  647. package/buildLibs/web/index.js +0 -164
  648. package/buildLibs/web/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"Element_Event_drag-DeZYlveu.js","sources":["../../src/libs/Common/Element/index.ts","../../src/libs/Common/Element/Event/drag.ts"],"sourcesContent":["import CommonBase from \"../base\";\nimport CommonPromise from \"../promise\";\nclass Element {\n _elCanvasTextWidth: any;\n constructor() {\n this._elCanvasTextWidth = null;\n }\n\n private _getArrClassBySplit(cls: string) {\n return cls.split(\" \").filter((c) => !CommonBase.isEmpty(c));\n }\n\n private _getClasssByReal(classs: any[string], exist: any) {\n return classs.filter((cls: string) => !CommonBase.isExistValue(exist, cls) && !CommonBase.isEmpty(cls));\n }\n\n onListener(element: any, eventName: string, eventFun: any, useCapture = false) {\n if (element && eventName && eventFun) {\n element.addEventListener(eventName, eventFun, useCapture);\n }\n }\n\n offListener(element: any, eventName: string, eventFun: any, useCapture = false) {\n if (element && eventName && eventFun) {\n element.removeEventListener(eventName, eventFun, useCapture);\n }\n }\n\n getTextWidth(text: string, font = \"normal 12px Microsoft YaHei\"): number {\n if (!this._elCanvasTextWidth) {\n this._elCanvasTextWidth = document.createElement(\"canvas\");\n }\n const context: any = this._elCanvasTextWidth.getContext(\"2d\");\n context.font = font;\n return context.measureText(text).width;\n }\n\n /** 添加class */\n getAddClass(...classs: any) {\n let result: any = [];\n classs.forEach((cls: any) => {\n if (CommonBase.isString(cls)) {\n const tempCls = this._getArrClassBySplit(cls);\n result = result.concat(this._getClasssByReal(tempCls, result));\n } else if (CommonBase.isArray(cls)) {\n result = result.concat(this._getClasssByReal(cls, result));\n } else if (CommonBase.isObject(cls)) {\n for (const [k, v] of Object.entries(cls)) {\n if (CommonBase.isExistJsonKey(cls, k) && v) {\n result.push(k);\n } else {\n result = result.filter((c: string) => c !== k || (c === k && v));\n }\n }\n }\n });\n return result.join(\" \");\n }\n\n /** 移除class */\n getRemoveClass(classTotal: string, classs: string) {\n const arrRemove: string[] = this._getArrClassBySplit(classs);\n const result: string[] = this._getArrClassBySplit(classTotal).filter((cls) => !CommonBase.isExistValue(arrRemove, cls));\n return result.join(\" \");\n }\n checkHasClass(classTotal: string, className: string) {\n const arrTotal = this._getArrClassBySplit(classTotal);\n const arrCls = this._getArrClassBySplit(className);\n return CommonBase.isContainArr(arrTotal, arrCls);\n }\n\n /** 指定元素距离窗口信息 */\n private _getBoundingClientRect(el: any) {\n const rect = CommonBase.isUndefined(el.getBoundingClientRect) ? {} : el.getBoundingClientRect();\n const box = {\n width: rect.width || 0,\n height: rect.height || 0,\n top: rect.top || 0,\n right: 0,\n bottom: 0,\n left: rect.left || 0,\n x: rect.left || 0,\n y: rect.top || 0,\n };\n const winHeight = this.getWinHeight();\n const winWidth = this.getWinWidth();\n box.right = winWidth - rect.right || 0;\n box.bottom = winHeight - rect.bottom || 0;\n return box;\n }\n\n /* _getWindow(el: any) {\n if (CommonBase.isWindow(el)) {\n return el;\n }\n return el.nodeType === 9 ? (el.defaultView || el.parentWindow) : false;\n } */\n\n private _getWindow(el: any) {\n if (el && el.toString() !== \"[object Window]\") {\n const ownerDocument = el.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n return el;\n }\n\n isElementHtml(el: any) {\n const OwnElement = this._getWindow(el).HTMLElement;\n return el instanceof OwnElement || el instanceof HTMLElement;\n }\n\n isElementBody(el: any) {\n return CommonBase.isUndefined(el)\n ? false\n : this.isElementHtml(el) && el.tagName.toLocaleLowerCase() === \"body\";\n }\n\n getWinScrollTop() {\n return document.documentElement.scrollTop || document.body.scrollTop || window.pageYOffset;\n }\n getWinWidth() {\n return document.documentElement.clientWidth || document.body.clientWidth || window.innerWidth;\n }\n getWinHeight() {\n return document.documentElement.clientHeight || document.body.clientHeight || window.innerHeight;\n }\n /**\n * 获取元素的css\n * @param el\n * @returns\n */\n getStyle(el: any) {\n if (window.getComputedStyle) {\n return window.getComputedStyle(el, null);\n }\n return el.currentStyle;\n }\n\n private _isElementScroll(element: any) {\n const sty = this.getStyle(element);\n const overflow = sty.overflow;\n const overflowX = sty.overflowX;\n const overflowY = sty.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n }\n\n isHidden(element: any) {\n const sty = this.getStyle(element);\n const display = sty.display;\n return display === \"none\";\n }\n\n isHiddenParent(element: any) {\n let isHide = false;\n let current = element;\n let isStop = false;\n while (current && current.nodeType !== 9 && !isStop) {\n if (current.nodeType === 1) {\n isStop = this.isHidden(current);\n if (isStop) {\n isHide = true;\n }\n }\n current = current.parentNode;\n }\n return isHide;\n }\n\n /**\n * 获取上级元素,并检查parent包含el且parent非body\n * @param el 指定元素\n * @param parent 指定上级,可为string[#(id),.(class),tagName] || element; 为空时默认el.parentNode\n * @returns parentElement。当检查parentElement为body或者parent不包含el时,返回null\n */\n getParentCheckBody(el: any, parent: any, isCheckContains = true) {\n let newParentEl: any = null;\n if (parent) {\n if (CommonBase.isString(parent)) {\n if (parent.toLocaleLowerCase() !== \"body\") {\n newParentEl = this.getParent(el, parent);\n }\n } else {\n if (!this.isElementBody(parent)) {\n if (isCheckContains) {\n if (parent.contains(el)) {\n newParentEl = parent;\n }\n } else {\n newParentEl = parent;\n }\n }\n }\n } else {\n if (!this.isElementBody(el.parentNode)) {\n newParentEl = el.parentNode;\n }\n }\n return newParentEl;\n }\n\n /**\n * 获取上级元素\n * @param el 指定元素\n * @param parentAttr 指定上级,可为string[#(id),.(class),tagName]; 为空时默认el.parentNode\n * @param elUpperLimit 非必传,设置该参数时,如果在parentAttr参数之前匹配上设置值 则直接返回\n * @param isLimitReturnSelf 截止到elUpperLimit时 未匹配上parentAttr 是否返回 elUpperLimit\n * @returns parentElement\n */\n getParent(el: any, parentAttr: any, elUpperLimit?: any, isLimitReturnSelf = true) {\n const isEmpty: boolean = CommonBase.isEmpty(parentAttr);\n if (isEmpty) {\n return el.parentNode;\n }\n let pEl = null;\n const isLimit = !CommonBase.isUndefined(elUpperLimit);\n const check: any = this._checkElementByAttr(el, parentAttr);\n if (!check) {\n let current = el.parentNode;\n let isStop = false;\n while (current && current.nodeType !== 9 && !isStop) {\n if (current.nodeType === 1) {\n isStop = this._checkElementByAttr(current, parentAttr);\n if (isStop) {\n pEl = current;\n } else {\n if (isLimit) {\n isStop = current === elUpperLimit;\n if (isStop) {\n if (isLimitReturnSelf) {\n pEl = current;\n }\n }\n }\n }\n }\n current = current.parentNode;\n }\n } else {\n pEl = el;\n }\n return pEl;\n }\n\n /**\n * 获取所有上级元素\n * @param el 指定元素\n * @param parentAttr 指定上级,可为string[#(id),.(class),tagName]; 为空时默认el.parentNode\n * @returns list[parentElement]\n */\n getParentList(el: any, parentAttr: any) {\n const newAttr = CommonBase.isEmpty(parentAttr) ? \"body\" : parentAttr;\n return this._recursionParents(el, newAttr);\n }\n\n private _recursionParents(el: any, parentAttr: any): any[] {\n const list: any[] = [];\n if (this._checkElementByAttr(el, parentAttr)) {\n list.push(el);\n } else {\n if (el.parentNode && el.parentElement && !this.isElementBody(el.parentElement)) {\n list.push(el.parentNode);\n const temp = this._recursionParents(el.parentNode, parentAttr);\n list.push(...temp);\n }\n }\n return list;\n }\n\n getParentScrollList(el: any, parentAttr: any, isContainsSelf = true) {\n const scrollList: any[] = [];\n const pList = this.getParentList(el, parentAttr);\n pList.forEach((pEl: any) => {\n if (this._isElementScroll(pEl)) {\n if (isContainsSelf) {\n scrollList.push(pEl);\n } else {\n if (!this._checkElementByAttr(pEl, parentAttr)) {\n scrollList.push(pEl);\n }\n }\n }\n });\n return scrollList;\n }\n\n /**\n * 根据attr检查元素信息\n * @param el\n * @param attr\n * @returns true/false\n */\n private _checkElementByAttr(el: any, attr: any) {\n let check = false;\n if (!CommonBase.isEmpty(attr)) {\n if (CommonBase.isString(attr)) {\n const pre = attr.substr(0, 1);\n const compare = attr.substring(1);\n switch (pre) {\n case \"#\":\n check = el.id === compare;\n break;\n case \".\":\n check = CommonBase.isString(el.className) ? CommonBase.isExistValue(el.className.split(\" \"), compare) : false;\n break;\n default:\n check = el.tagName.toLocaleLowerCase() === attr;\n }\n } else {\n if (this.isElementHtml(attr)) {\n check = el === attr;\n }\n }\n }\n return check;\n }\n\n /**\n * 获取元素到窗体 偏移量\n * @param el 指定元素\n * @param viewEl 指定窗体,为空时默认window\n * @returns json { top,left }\n */\n getOffset(el: any, viewEl: any = null) {\n const box = this.getPositionView(el, viewEl);\n if (box.viewEl) {\n return {\n top: box.top + box.viewEl.scrollTop - box.viewEl.clientTop,\n left: box.left + box.viewEl.scrollLeft - box.viewEl.clientLeft,\n };\n } else {\n const doc = el && el.ownerDocument;\n const docEl = doc.documentElement;\n const winEl = this._getWindow(docEl);\n return {\n top: (box.top + (winEl.pageYOffset || docEl.scrollTop)) - (docEl.clientTop || 0),\n left: (box.left + (winEl.pageXOffset || docEl.scrollLeft)) - (docEl.clientLeft || 0),\n };\n }\n }\n\n /**\n * 获取元素相对指定容器的相对偏移\n * @param el 指定元素\n * @param viewEl 指定容器,为空时默认window\n * @returns json {top,left,viewEl}\n */\n getPositionView(el: any, viewEl: any = null) {\n const box: any = { top: 0, left: 0, viewEl: null };\n if (!this.isElementHtml(el)) {\n return box;\n }\n const tempBox = this._getBoundingClientRect(el);\n box.top = tempBox.top;\n box.right = tempBox.right;\n box.bottom = tempBox.bottom;\n box.left = tempBox.left;\n box.width = tempBox.width;\n box.height = tempBox.height;\n\n const viewBox = { top: 0, right: 0, bottom: 0, left: 0 };\n const newViewEl: any = CommonBase.isUndefined(viewEl) ? null : this.getParentCheckBody(el, viewEl, true);\n if (newViewEl) {\n const tempViewBox: any = this._getBoundingClientRect(newViewEl);\n viewBox.top = tempViewBox.top;\n viewBox.right = tempViewBox.right;\n viewBox.bottom = tempViewBox.bottom;\n viewBox.left = tempViewBox.left;\n box.viewWidth = tempViewBox.width;\n box.viewHeight = tempViewBox.height;\n\n box.top = tempBox.top - (viewBox.top < 0 ? 0 : viewBox.top);\n box.right = tempBox.right - (viewBox.right < 0 ? 0 : viewBox.right);\n box.bottom = tempBox.bottom - (viewBox.bottom < 0 ? 0 : viewBox.bottom);\n box.left = tempBox.left - (viewBox.left < 0 ? 0 : viewBox.left);\n\n box.elViewBox = {\n top: tempBox.top - viewBox.top,\n right: tempBox.right - viewBox.right,\n bottom: tempBox.bottom - viewBox.bottom,\n left: tempBox.left - viewBox.left,\n };\n }\n box.viewEl = newViewEl;\n return box;\n }\n\n /**\n * 获取元素相对指定容器的相对偏移\n * @param el 指定元素\n * @param parentAttr 指定窗体,为空时默认parentNode\n * @returns json\n */\n getPosition(el: any, parentAttr: any = null) {\n const parentEl: any = CommonBase.isUndefined(parentAttr) ? el.parentNode : parentAttr;\n return this.getPositionView(el, parentEl);\n }\n getElementIndex(el: any) {\n const prevAll = this.getPrevAll(el);\n return prevAll.length;\n }\n getPrev(el: any) {\n if (!CommonBase.isUndefined(el.previousElementSibling)) {\n return el.previousElementSibling;\n } else {\n let newEl: any = el.previousSibling;\n while (newEl && newEl.nodeType !== 1) {\n newEl = newEl.previousSibling;\n }\n return newEl;\n }\n\n }\n getPrevAll(el: any) {\n const arrEl: any = [];\n let prevEl: any = this.getPrev(el);\n while (prevEl) {\n arrEl.push(prevEl);\n prevEl = this.getPrev(prevEl);\n }\n return arrEl.reverse();\n }\n getNext(el: any) {\n if (!CommonBase.isUndefined(el.nextElementSibling)) {\n return el.nextElementSibling;\n } else {\n let newEl: any = el.nextSibling;\n while (newEl && newEl.nodeType !== 1) {\n newEl = newEl.nextSibling;\n }\n return newEl;\n }\n }\n\n insertAfter(targetEl: any, newEl: any) {\n const parentEl: any = targetEl.parentNode;\n if (parentEl.lastChild == targetEl) {// eslint-disable-line\n parentEl.appendChild(newEl);\n } else {\n parentEl.insertBefore(newEl, targetEl.nextSibling);\n }\n }\n\n getFocusSelection(targetEl: any) {\n const position: any = {};\n if (CommonBase.isUndefined(targetEl.selectionStart)) {\n targetEl.focus();\n // @ts-ignore\n const select: any = document.selection.createRange();\n position.length = select.text.length;\n select.moveStart(\"character\", -targetEl.value.length);\n position.end = select.text.length;\n position.start = position.end - position.length;\n } else {\n position.start = targetEl.selectionStart;\n position.end = targetEl.selectionEnd;\n position.length = position.end - position.start;\n }\n return position;\n }\n\n setFocusSelection(el: any, start: number, end: number) {\n if (CommonBase.isUndefined(el.selectionStart)) {\n el.focus();\n const r = el.createTextRange();\n r.collapse(true);\n r.moveEnd(\"character\", end);\n r.moveStart(\"character\", start);\n r.select();\n } else {\n el.selectionStart = start;\n el.selectionEnd = end;\n }\n }\n\n /* checkHoverInControl(controlEl, hoverInfo) {\n\n } */\n\n calculationDropdownPosition(controlEl: any, textEl: any, dropDownEl: any, arrowEl: any, containerEl: any) {\n const newContainerEl: any = containerEl ? this.getParentCheckBody(controlEl, containerEl) : null;\n const isAppendWindow = CommonBase.isUndefined(newContainerEl); // 检查是否以窗体为显示容器\n\n const textWidth = textEl.offsetWidth;\n const textHeight = textEl.offsetHeight;\n\n const dropDownWidth = dropDownEl.offsetWidth;\n const dropDownHeight = dropDownEl.offsetHeight;\n\n let arrowWidth = 0;\n let arrowHeight = 0;\n if (!CommonBase.isUndefined(arrowEl)) {\n arrowWidth = arrowEl.offsetWidth;\n arrowHeight = arrowEl.offsetHeight;\n }\n const arrowWidthHalf = (arrowWidth) / 2;\n\n const winHeight = this.getWinHeight();\n const winWidth = this.getWinWidth();\n\n let containerWidth = 0; // 容器 宽度\n let containerHeight = 0; // 容器 高度\n // let containerScrollTop = 0; // 容器 Scroll Top\n let containerScrollWidth = 0; // 容器 Scroll 宽度\n\n let controlOffset: any = { top: 0, left: 0 }; // 组件 位置 top,lef\n let controlPosView: any = { top: 0, left: 0 }; // 组件 相对位置 top,lef\n if (isAppendWindow) {\n containerWidth = winWidth;\n containerHeight = winHeight;\n // containerScrollTop = this.getWinScrollTop();\n containerScrollWidth = containerWidth - document.body.clientWidth;\n\n controlOffset = this.getOffset(controlEl);// boyd位置\n controlPosView = this.getPositionView(controlEl);// 相对window窗口位置\n } else {\n containerWidth = newContainerEl.clientWidth;\n containerHeight = newContainerEl.clientHeight;\n // containerScrollTop = this.getWinScrollTop();\n containerScrollWidth = newContainerEl.offsetWidth - containerWidth;\n\n controlOffset = this.getOffset(controlEl, newContainerEl);// 距containerEl位置\n controlPosView = this.getPositionView(controlEl, newContainerEl);// 相对controlEl窗口位置\n }\n\n const controlViewTop = controlPosView.top; /// 组件到窗体顶部的距离\n const controlDropDownTotalWidth = dropDownWidth + arrowWidth; // dropDown加箭头的总宽度\n const controlDropDownTotalHeight = dropDownHeight + arrowHeight; // dropDown加箭头的总高度\n const controlTotalHeight = textHeight + controlDropDownTotalHeight; /// 组件加dropDown加箭头的总高度\n\n const json: any = {\n winWidth,\n winHeight,\n containerWidth,\n containerHeight,\n controlOffset,\n controlPosView,\n textWidth,\n textHeight,\n dropDownWidth,\n dropDownHeight,\n arrowWidth,\n arrowHeight,\n };\n\n let posDown = \"down\";\n if (controlViewTop + controlTotalHeight > containerHeight) { /// 总体高度超过容器高度\n if (controlViewTop > controlDropDownTotalHeight) { /// 组件到视图顶部的距离大于dropDown高度\n posDown = \"up\";\n } else {\n if (controlOffset.top > controlDropDownTotalHeight) { /// 组件到顶部的距离大于dropDown高度\n posDown = \"up\";\n }\n }\n }\n json.dropDownPosDown = posDown;\n\n let posUp = \"up\";\n if (controlViewTop < controlDropDownTotalHeight) { /// 组件到视图顶部的距离小于dropDown高度\n if (controlOffset.top < controlDropDownTotalHeight) {\n posUp = \"down\";\n }\n }\n json.dropDownPosUp = posUp;\n\n let posLeft = \"left\";\n if (controlPosView.left < controlDropDownTotalWidth) { /// 组件到视图左侧的距离小于dropDown宽度时\n if (controlOffset.right >= controlDropDownTotalHeight) {\n posLeft = \"right\";\n }\n }\n json.dropDownPosLeft = posLeft;\n\n const posRight = \"right\";\n if (controlPosView.right < controlDropDownTotalWidth) { /// 组件到视图右侧的距离小于dropDown宽度时\n if (controlOffset.left >= controlDropDownTotalHeight) {\n posLeft = \"left\";\n }\n }\n json.dropDownPosRight = posRight;\n\n\n /// arrow left / right / center\n let arrowPosLeft = \"left\";\n if (containerWidth - controlOffset.left < dropDownWidth) {\n arrowPosLeft = controlOffset.left + textWidth >= dropDownWidth ? \"right\" : \"left\";\n }\n json.arrowPosLeft = arrowPosLeft;\n\n let arrowPosRight = \"right\";\n if (controlOffset.left + textWidth < dropDownWidth) {\n arrowPosRight = containerWidth - controlOffset.left >= dropDownWidth ? \"left\" : \"right\";\n }\n json.arrowPosRight = arrowPosRight;\n\n // 居中时,计算dropDown和arrow偏移量 \n let arrowPosCenterLR = \"center\";\n if ((controlOffset.left + textWidth) < (dropDownWidth / 2 - textWidth / 2)) {\n arrowPosCenterLR = controlOffset.left > (dropDownWidth / 2 - textWidth / 2) ? \"right\" : \"left\";\n }\n json.arrowPosCenterLR = arrowPosCenterLR;\n\n const arrowPosCenterLRInfo = {\n dropDownLeft: 0,\n arrowLeft: 0,\n };\n const textOffset = this.getOffset(textEl);\n const textOffsetControl = this.getOffset(textEl, controlEl);\n const textWidthHalf = textWidth / 2;\n const textOffsetLeft = textOffset.left - 5; // 5px 不靠边\n const textOffsetRight = containerWidth - textOffsetLeft - textWidth - 10 - (containerScrollWidth); // 不靠边 滚动条\n\n //const centerDropDownLeft = dropDownWidth / 2 - textWidthHalf;\n const centerDropDownLeft = dropDownEl.clientWidth / 2 - textWidthHalf;\n\n const centerDiffLeft = centerDropDownLeft - textOffsetLeft;\n const centerDiffRight = centerDropDownLeft - textOffsetRight;\n\n if (centerDiffLeft <= 0 && centerDiffRight <= 0) {\n arrowPosCenterLRInfo.dropDownLeft = (centerDropDownLeft - textOffsetControl.left) * -1;\n arrowPosCenterLRInfo.arrowLeft = centerDropDownLeft + textWidthHalf - arrowWidthHalf - 1;\n } else {\n if (centerDiffLeft > 0) {\n arrowPosCenterLRInfo.dropDownLeft = textOffsetLeft * -1;\n arrowPosCenterLRInfo.arrowLeft = textOffsetLeft + textWidthHalf - arrowWidthHalf;\n } else if (centerDiffRight > 0) {\n arrowPosCenterLRInfo.dropDownLeft = (centerDropDownLeft + centerDiffRight) * -1;\n arrowPosCenterLRInfo.arrowLeft = centerDropDownLeft + centerDiffRight + textWidthHalf - arrowWidthHalf;\n }\n }\n json.arrowPosCenterLRInfo = arrowPosCenterLRInfo;\n\n /// arrow top / bottom / center\n //const arrowPosTop = \"top\";\n /* if (containerHeight - controlViewTop) {\n\n }\n\n if (containerWidth - controlOffset.left < dropDownWidth) {\n arrowPosTop = controlOffset.left + textWidth >= dropDownWidth ? \"right\" : \"left\";\n } */\n //// todo\n json.arrowPosTop = \"top\";\n json.arrowPosBottom = \"bottom\";\n json.arrowPosCenterTB = \"center\";\n /* let posDown = \"down\";\n if (controlViewTop + controlTotalHeight > containerHeight) { /// 总体高度超过容器高度\n if (controlViewTop > controlDropDownTotalHeight) { /// 组件到视图顶部的距离大于dropDown高度\n posDown = \"up\";\n } else {\n if (controlOffset.top > controlDropDownTotalHeight) { /// 组件到顶部的距离大于dropDown高度\n posDown = \"up\";\n }\n }\n }\n json.dropDownPosDown = posDown; */\n\n\n return json;\n }\n\n getElementData(json: any) {\n const data: any = {};\n if (!CommonBase.isEmpty(json)) {\n for (const [k, v] of Object.entries(json)) {\n const temp = k.split(\"-\");\n const arr: string[] = [];\n temp.forEach((n: string, i: number) => {\n if (i > 0) {\n const newKey = n.toLowerCase();\n if (i === 1) {\n arr.push(newKey);\n } else {\n arr.push(newKey.replace(newKey[0], newKey[0].toUpperCase()));\n }\n }\n });\n if (arr.length > 0) {\n data[arr.join(\"\")] = v;\n }\n }\n }\n return data;\n }\n async getTextDataByFile(files: any) {\n const list: any = [];\n if (!CommonBase.isEmpty(files)) {\n for (let fi = 0; fi < files.length; fi++) {\n const listOne: any = await this._getTextDataFileOne(files[fi]);\n list.push(...listOne);\n }\n }\n return list;\n }\n private _getTextDataFileOne(file: any) {\n return CommonPromise.promiseFun((resolve: any) => {\n const reader = new FileReader();\n reader.readAsText(file, \"utf-8\");\n reader.onload = (e: any) => {\n const list: string[] = [];\n e.target.result.split(\"\\n\").forEach((t: string) => {\n const newTxt = CommonBase.trim(t);\n if (!CommonBase.isEmpty(newTxt)) {\n list.push(newTxt);\n }\n });\n resolve(list);\n };\n });\n }\n\n getClientXY(e: Event | MouseEvent | TouchEvent) {\n let clientX: number;\n let clientY: number;\n if (e.type === \"touchend\") {\n clientY = (e as TouchEvent).changedTouches[0].clientY;\n clientX = (e as TouchEvent).changedTouches[0].clientX;\n } else if (e.type.startsWith(\"touch\")) {\n clientY = (e as TouchEvent).touches[0].clientY;\n clientX = (e as TouchEvent).touches[0].clientX;\n } else {\n clientY = (e as MouseEvent).clientY;\n clientX = (e as MouseEvent).clientX;\n }\n return {\n clientX,\n clientY,\n };\n }\n}\nexport default new Element();\n","import CommonBase from \"../../base\";\nimport CommonElement from \"../index\";\ndeclare interface IClientXY {\n clientX: number\n clientY: number\n}\ndeclare interface IOptions {\n start?: (event: Event, clientXYInfo: IClientXY) => void\n ing?: (event: Event, clientXYInfo: IClientXY) => void\n end?: (event: Event, clientXYInfo: IClientXY) => void\n}\nclass Drag {\n optionsDrag: IOptions;\n private _isDragging: boolean;\n private _bindRunDragStart: any;\n private _bindRunDragIng: any;\n private _bindRunDragEnd: any;\n constructor(element: HTMLElement | null, options: IOptions) {\n this.optionsDrag = options;\n this._isDragging = false;\n this._init(element);\n }\n private _init(element: HTMLElement | null) {\n this._bindRunDragStart = this._runDragStart.bind(this);\n this._bindRunDragIng = this._runDraggIng.bind(this);\n this._bindRunDragEnd = this._runDragEnd.bind(this);\n CommonElement.onListener(element, \"mousedown\", this._bindRunDragStart);\n CommonElement.onListener(element, \"touchstart\", this._bindRunDragStart);\n }\n private _runDragStart(e: Event) {\n if (this._isDragging) return;\n\n const clientXYInfo = CommonElement.getClientXY(e);\n let tempRun: any = true;\n if (this.optionsDrag.start) {\n tempRun = this.optionsDrag.start(e, clientXYInfo);\n }\n tempRun = CommonBase.isBoolean(tempRun) ? tempRun : true;\n if (tempRun) {\n e.preventDefault();\n e.stopPropagation();\n\n document.onselectstart = () => false;\n document.ondragstart = () => false;\n\n this._isDragging = true;\n\n CommonElement.onListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"contextmenu\", this._bindRunDragEnd);\n } else {\n this._isDragging = false;\n }\n }\n private _runDraggIng(e: Event) {\n if (!this._isDragging) return;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.ing) {\n this.optionsDrag.ing(e, clientXYInfo);\n }\n }\n private _runDragEnd(e: Event) {\n if (!this._isDragging) return;\n this._isDragging = false;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.end) {\n this.optionsDrag.end(e, clientXYInfo);\n }\n this._offListener();\n }\n private _offListener() {\n CommonElement.offListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"contextmenu\", this._bindRunDragEnd);\n }\n end() {\n this._isDragging = false;\n this._offListener();\n }\n}\nexport default Drag;\n"],"names":["Element","cls","c","CommonBase","classs","exist","element","eventName","eventFun","useCapture","text","font","context","result","tempCls","k","v","classTotal","arrRemove","className","arrTotal","arrCls","el","rect","box","winHeight","winWidth","ownerDocument","OwnElement","sty","overflow","overflowX","overflowY","isHide","current","isStop","parent","isCheckContains","newParentEl","parentAttr","elUpperLimit","isLimitReturnSelf","pEl","isLimit","newAttr","list","temp","isContainsSelf","scrollList","attr","check","pre","compare","viewEl","docEl","winEl","tempBox","viewBox","newViewEl","tempViewBox","parentEl","newEl","arrEl","prevEl","targetEl","position","select","start","end","r","controlEl","textEl","dropDownEl","arrowEl","containerEl","newContainerEl","isAppendWindow","textWidth","textHeight","dropDownWidth","dropDownHeight","arrowWidth","arrowHeight","arrowWidthHalf","containerWidth","containerHeight","containerScrollWidth","controlOffset","controlPosView","controlViewTop","controlDropDownTotalWidth","controlDropDownTotalHeight","controlTotalHeight","json","posDown","posUp","posLeft","posRight","arrowPosLeft","arrowPosRight","arrowPosCenterLR","arrowPosCenterLRInfo","textOffset","textOffsetControl","textWidthHalf","textOffsetLeft","textOffsetRight","centerDropDownLeft","centerDiffLeft","centerDiffRight","data","arr","n","i","newKey","files","fi","listOne","file","CommonPromise","resolve","reader","e","t","newTxt","clientX","clientY","CommonElement","Drag","options","clientXYInfo","tempRun"],"mappings":";;AAEA,MAAMA,EAAQ;AAAA,EACV;AAAA,EACA,cAAc;AACV,SAAK,qBAAqB;AAAA,EAC9B;AAAA,EAEQ,oBAAoBC,GAAa;AACrC,WAAOA,EAAI,MAAM,GAAG,EAAE,OAAO,CAACC,MAAM,CAACC,EAAW,QAAQD,CAAC,CAAC;AAAA,EAC9D;AAAA,EAEQ,iBAAiBE,GAAqBC,GAAY;AACtD,WAAOD,EAAO,OAAO,CAACH,MAAgB,CAACE,EAAW,aAAaE,GAAOJ,CAAG,KAAK,CAACE,EAAW,QAAQF,CAAG,CAAC;AAAA,EAC1G;AAAA,EAEA,WAAWK,GAAcC,GAAmBC,GAAeC,IAAa,IAAO;AAC3E,IAAIH,KAAWC,KAAaC,KACxBF,EAA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Q,eAAe,KAAK,eAAe;AAAA,EACzE;AAAA,EACA,MAAM;AACF,SAAK,cAAc,IACnB,KAAK,aAAA;AAAA,EACT;AACJ;"}
@@ -1,3 +0,0 @@
1
- "use strict";const r=require("./base-iCmnU-fv.cjs"),M=require("./promise-BtoePzHD.cjs");class q{_elCanvasTextWidth;constructor(){this._elCanvasTextWidth=null}_getArrClassBySplit(t){return t.split(" ").filter(e=>!r.CommonBase.isEmpty(e))}_getClasssByReal(t,e){return t.filter(n=>!r.CommonBase.isExistValue(e,n)&&!r.CommonBase.isEmpty(n))}onListener(t,e,n,i=!1){t&&e&&n&&t.addEventListener(e,n,i)}offListener(t,e,n,i=!1){t&&e&&n&&t.removeEventListener(e,n,i)}getTextWidth(t,e="normal 12px Microsoft YaHei"){this._elCanvasTextWidth||(this._elCanvasTextWidth=document.createElement("canvas"));const n=this._elCanvasTextWidth.getContext("2d");return n.font=e,n.measureText(t).width}getAddClass(...t){let e=[];return t.forEach(n=>{if(r.CommonBase.isString(n)){const i=this._getArrClassBySplit(n);e=e.concat(this._getClasssByReal(i,e))}else if(r.CommonBase.isArray(n))e=e.concat(this._getClasssByReal(n,e));else if(r.CommonBase.isObject(n))for(const[i,o]of Object.entries(n))r.CommonBase.isExistJsonKey(n,i)&&o?e.push(i):e=e.filter(s=>s!==i||s===i&&o)}),e.join(" ")}getRemoveClass(t,e){const n=this._getArrClassBySplit(e);return this._getArrClassBySplit(t).filter(o=>!r.CommonBase.isExistValue(n,o)).join(" ")}checkHasClass(t,e){const n=this._getArrClassBySplit(t),i=this._getArrClassBySplit(e);return r.CommonBase.isContainArr(n,i)}_getBoundingClientRect(t){const e=r.CommonBase.isUndefined(t.getBoundingClientRect)?{}:t.getBoundingClientRect(),n={width:e.width||0,height:e.height||0,top:e.top||0,right:0,bottom:0,left:e.left||0,x:e.left||0,y:e.top||0},i=this.getWinHeight(),o=this.getWinWidth();return n.right=o-e.right||0,n.bottom=i-e.bottom||0,n}_getWindow(t){if(t&&t.toString()!=="[object Window]"){const e=t.ownerDocument;return e&&e.defaultView||window}return t}isElementHtml(t){const e=this._getWindow(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}isElementBody(t){return r.CommonBase.isUndefined(t)?!1:this.isElementHtml(t)&&t.tagName.toLocaleLowerCase()==="body"}getWinScrollTop(){return document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset}getWinWidth(){return document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth}getWinHeight(){return document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight}getStyle(t){return window.getComputedStyle?window.getComputedStyle(t,null):t.currentStyle}_isElementScroll(t){const e=this.getStyle(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}isHidden(t){return this.getStyle(t).display==="none"}isHiddenParent(t){let e=!1,n=t,i=!1;for(;n&&n.nodeType!==9&&!i;)n.nodeType===1&&(i=this.isHidden(n),i&&(e=!0)),n=n.parentNode;return e}getParentCheckBody(t,e,n=!0){let i=null;return e?r.CommonBase.isString(e)?e.toLocaleLowerCase()!=="body"&&(i=this.getParent(t,e)):this.isElementBody(e)||(n?e.contains(t)&&(i=e):i=e):this.isElementBody(t.parentNode)||(i=t.parentNode),i}getParent(t,e,n,i=!0){if(r.CommonBase.isEmpty(e))return t.parentNode;let s=null;const c=!r.CommonBase.isUndefined(n);if(this._checkElementByAttr(t,e))s=t;else{let l=t.parentNode,f=!1;for(;l&&l.nodeType!==9&&!f;)l.nodeType===1&&(f=this._checkElementByAttr(l,e),f?s=l:c&&(f=l===n,f&&i&&(s=l))),l=l.parentNode}return s}getParentList(t,e){const n=r.CommonBase.isEmpty(e)?"body":e;return this._recursionParents(t,n)}_recursionParents(t,e){const n=[];if(this._checkElementByAttr(t,e))n.push(t);else if(t.parentNode&&t.parentElement&&!this.isElementBody(t.parentElement)){n.push(t.parentNode);const i=this._recursionParents(t.parentNode,e);n.push(...i)}return n}getParentScrollList(t,e,n=!0){const i=[];return this.getParentList(t,e).forEach(s=>{this._isElementScroll(s)&&(n?i.push(s):this._checkElementByAttr(s,e)||i.push(s))}),i}_checkElementByAttr(t,e){let n=!1;if(!r.CommonBase.isEmpty(e))if(r.CommonBase.isString(e)){const i=e.substr(0,1),o=e.substring(1);switch(i){case"#":n=t.id===o;break;case".":n=r.CommonBase.isString(t.className)?r.CommonBase.isExistValue(t.className.split(" "),o):!1;break;default:n=t.tagName.toLocaleLowerCase()===e}}else this.isElementHtml(e)&&(n=t===e);return n}getOffset(t,e=null){const n=this.getPositionView(t,e);if(n.viewEl)return{top:n.top+n.viewEl.scrollTop-n.viewEl.clientTop,left:n.left+n.viewEl.scrollLeft-n.viewEl.clientLeft};{const o=(t&&t.ownerDocument).documentElement,s=this._getWindow(o);return{top:n.top+(s.pageYOffset||o.scrollTop)-(o.clientTop||0),left:n.left+(s.pageXOffset||o.scrollLeft)-(o.clientLeft||0)}}}getPositionView(t,e=null){const n={top:0,left:0,viewEl:null};if(!this.isElementHtml(t))return n;const i=this._getBoundingClientRect(t);n.top=i.top,n.right=i.right,n.bottom=i.bottom,n.left=i.left,n.width=i.width,n.height=i.height;const o={top:0,right:0,bottom:0,left:0},s=r.CommonBase.isUndefined(e)?null:this.getParentCheckBody(t,e,!0);if(s){const c=this._getBoundingClientRect(s);o.top=c.top,o.right=c.right,o.bottom=c.bottom,o.left=c.left,n.viewWidth=c.width,n.viewHeight=c.height,n.top=i.top-(o.top<0?0:o.top),n.right=i.right-(o.right<0?0:o.right),n.bottom=i.bottom-(o.bottom<0?0:o.bottom),n.left=i.left-(o.left<0?0:o.left),n.elViewBox={top:i.top-o.top,right:i.right-o.right,bottom:i.bottom-o.bottom,left:i.left-o.left}}return n.viewEl=s,n}getPosition(t,e=null){const n=r.CommonBase.isUndefined(e)?t.parentNode:e;return this.getPositionView(t,n)}getElementIndex(t){return this.getPrevAll(t).length}getPrev(t){if(r.CommonBase.isUndefined(t.previousElementSibling)){let e=t.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}else return t.previousElementSibling}getPrevAll(t){const e=[];let n=this.getPrev(t);for(;n;)e.push(n),n=this.getPrev(n);return e.reverse()}getNext(t){if(r.CommonBase.isUndefined(t.nextElementSibling)){let e=t.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}else return t.nextElementSibling}insertAfter(t,e){const n=t.parentNode;n.lastChild==t?n.appendChild(e):n.insertBefore(e,t.nextSibling)}getFocusSelection(t){const e={};if(r.CommonBase.isUndefined(t.selectionStart)){t.focus();const n=document.selection.createRange();e.length=n.text.length,n.moveStart("character",-t.value.length),e.end=n.text.length,e.start=e.end-e.length}else e.start=t.selectionStart,e.end=t.selectionEnd,e.length=e.end-e.start;return e}setFocusSelection(t,e,n){if(r.CommonBase.isUndefined(t.selectionStart)){t.focus();const i=t.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i.select()}else t.selectionStart=e,t.selectionEnd=n}calculationDropdownPosition(t,e,n,i,o){const s=o?this.getParentCheckBody(t,o):null,c=r.CommonBase.isUndefined(s),g=e.offsetWidth,l=e.offsetHeight,f=n.offsetWidth,W=n.offsetHeight;let D=0,E=0;r.CommonBase.isUndefined(i)||(D=i.offsetWidth,E=i.offsetHeight);const L=D/2,R=this.getWinHeight(),T=this.getWinWidth();let m=0,_=0,v=0,h={top:0,left:0},w={top:0,left:0};c?(m=T,_=R,v=m-document.body.clientWidth,h=this.getOffset(t),w=this.getPositionView(t)):(m=s.clientWidth,_=s.clientHeight,v=s.offsetWidth-m,h=this.getOffset(t,s),w=this.getPositionView(t,s));const S=w.top,H=f+D,u=W+E,V=l+u,d={winWidth:T,winHeight:R,containerWidth:m,containerHeight:_,controlOffset:h,controlPosView:w,textWidth:g,textHeight:l,dropDownWidth:f,dropDownHeight:W,arrowWidth:D,arrowHeight:E};let x="down";S+V>_&&(S>u||h.top>u)&&(x="up"),d.dropDownPosDown=x;let O="up";S<u&&h.top<u&&(O="down"),d.dropDownPosUp=O;let P="left";w.left<H&&h.right>=u&&(P="right"),d.dropDownPosLeft=P;const X="right";w.right<H&&h.left>=u&&(P="left"),d.dropDownPosRight=X;let k="left";m-h.left<f&&(k=h.left+g>=f?"right":"left"),d.arrowPosLeft=k;let A="right";h.left+g<f&&(A=m-h.left>=f?"left":"right"),d.arrowPosRight=A;let Y="center";h.left+g<f/2-g/2&&(Y=h.left>f/2-g/2?"right":"left"),d.arrowPosCenterLR=Y;const p={dropDownLeft:0,arrowLeft:0},U=this.getOffset(e),j=this.getOffset(e,t),B=g/2,b=U.left-5,F=m-b-g-10-v,C=n.clientWidth/2-B,I=C-b,y=C-F;return I<=0&&y<=0?(p.dropDownLeft=(C-j.left)*-1,p.arrowLeft=C+B-L-1):I>0?(p.dropDownLeft=b*-1,p.arrowLeft=b+B-L):y>0&&(p.dropDownLeft=(C+y)*-1,p.arrowLeft=C+y+B-L),d.arrowPosCenterLRInfo=p,d.arrowPosTop="top",d.arrowPosBottom="bottom",d.arrowPosCenterTB="center",d}getElementData(t){const e={};if(!r.CommonBase.isEmpty(t))for(const[n,i]of Object.entries(t)){const o=n.split("-"),s=[];o.forEach((c,g)=>{if(g>0){const l=c.toLowerCase();g===1?s.push(l):s.push(l.replace(l[0],l[0].toUpperCase()))}}),s.length>0&&(e[s.join("")]=i)}return e}async getTextDataByFile(t){const e=[];if(!r.CommonBase.isEmpty(t))for(let n=0;n<t.length;n++){const i=await this._getTextDataFileOne(t[n]);e.push(...i)}return e}_getTextDataFileOne(t){return M.CommonPromise.promiseFun(e=>{const n=new FileReader;n.readAsText(t,"utf-8"),n.onload=i=>{const o=[];i.target.result.split(`
2
- `).forEach(s=>{const c=r.CommonBase.trim(s);r.CommonBase.isEmpty(c)||o.push(c)}),e(o)}})}getClientXY(t){let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}}}const a=new q;class K{optionsDrag;_isDragging;_bindRunDragStart;_bindRunDragIng;_bindRunDragEnd;constructor(t,e){this.optionsDrag=e,this._isDragging=!1,this._init(t)}_init(t){this._bindRunDragStart=this._runDragStart.bind(this),this._bindRunDragIng=this._runDraggIng.bind(this),this._bindRunDragEnd=this._runDragEnd.bind(this),a.onListener(t,"mousedown",this._bindRunDragStart),a.onListener(t,"touchstart",this._bindRunDragStart)}_runDragStart(t){if(this._isDragging)return;const e=a.getClientXY(t);let n=!0;this.optionsDrag.start&&(n=this.optionsDrag.start(t,e)),n=r.CommonBase.isBoolean(n)?n:!0,n?(t.preventDefault(),t.stopPropagation(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,this._isDragging=!0,a.onListener(window,"mousemove",this._bindRunDragIng),a.onListener(window,"touchmove",this._bindRunDragIng),a.onListener(window,"mouseup",this._bindRunDragEnd),a.onListener(window,"touchend",this._bindRunDragEnd),a.onListener(window,"contextmenu",this._bindRunDragEnd)):this._isDragging=!1}_runDraggIng(t){if(!this._isDragging)return;const e=a.getClientXY(t);this.optionsDrag.ing&&this.optionsDrag.ing(t,e)}_runDragEnd(t){if(!this._isDragging)return;this._isDragging=!1;const e=a.getClientXY(t);this.optionsDrag.end&&this.optionsDrag.end(t,e),this._offListener()}_offListener(){a.offListener(window,"mousemove",this._bindRunDragIng),a.offListener(window,"touchmove",this._bindRunDragIng),a.offListener(window,"mouseup",this._bindRunDragEnd),a.offListener(window,"touchend",this._bindRunDragEnd),a.offListener(window,"contextmenu",this._bindRunDragEnd)}end(){this._isDragging=!1,this._offListener()}}exports.CommonElement=a;exports.Drag=K;
3
- //# sourceMappingURL=Element_Event_drag-L_ZT9whD.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Element_Event_drag-L_ZT9whD.cjs","sources":["../../src/libs/Common/Element/index.ts","../../src/libs/Common/Element/Event/drag.ts"],"sourcesContent":["import CommonBase from \"../base\";\nimport CommonPromise from \"../promise\";\nclass Element {\n _elCanvasTextWidth: any;\n constructor() {\n this._elCanvasTextWidth = null;\n }\n\n private _getArrClassBySplit(cls: string) {\n return cls.split(\" \").filter((c) => !CommonBase.isEmpty(c));\n }\n\n private _getClasssByReal(classs: any[string], exist: any) {\n return classs.filter((cls: string) => !CommonBase.isExistValue(exist, cls) && !CommonBase.isEmpty(cls));\n }\n\n onListener(element: any, eventName: string, eventFun: any, useCapture = false) {\n if (element && eventName && eventFun) {\n element.addEventListener(eventName, eventFun, useCapture);\n }\n }\n\n offListener(element: any, eventName: string, eventFun: any, useCapture = false) {\n if (element && eventName && eventFun) {\n element.removeEventListener(eventName, eventFun, useCapture);\n }\n }\n\n getTextWidth(text: string, font = \"normal 12px Microsoft YaHei\"): number {\n if (!this._elCanvasTextWidth) {\n this._elCanvasTextWidth = document.createElement(\"canvas\");\n }\n const context: any = this._elCanvasTextWidth.getContext(\"2d\");\n context.font = font;\n return context.measureText(text).width;\n }\n\n /** 添加class */\n getAddClass(...classs: any) {\n let result: any = [];\n classs.forEach((cls: any) => {\n if (CommonBase.isString(cls)) {\n const tempCls = this._getArrClassBySplit(cls);\n result = result.concat(this._getClasssByReal(tempCls, result));\n } else if (CommonBase.isArray(cls)) {\n result = result.concat(this._getClasssByReal(cls, result));\n } else if (CommonBase.isObject(cls)) {\n for (const [k, v] of Object.entries(cls)) {\n if (CommonBase.isExistJsonKey(cls, k) && v) {\n result.push(k);\n } else {\n result = result.filter((c: string) => c !== k || (c === k && v));\n }\n }\n }\n });\n return result.join(\" \");\n }\n\n /** 移除class */\n getRemoveClass(classTotal: string, classs: string) {\n const arrRemove: string[] = this._getArrClassBySplit(classs);\n const result: string[] = this._getArrClassBySplit(classTotal).filter((cls) => !CommonBase.isExistValue(arrRemove, cls));\n return result.join(\" \");\n }\n checkHasClass(classTotal: string, className: string) {\n const arrTotal = this._getArrClassBySplit(classTotal);\n const arrCls = this._getArrClassBySplit(className);\n return CommonBase.isContainArr(arrTotal, arrCls);\n }\n\n /** 指定元素距离窗口信息 */\n private _getBoundingClientRect(el: any) {\n const rect = CommonBase.isUndefined(el.getBoundingClientRect) ? {} : el.getBoundingClientRect();\n const box = {\n width: rect.width || 0,\n height: rect.height || 0,\n top: rect.top || 0,\n right: 0,\n bottom: 0,\n left: rect.left || 0,\n x: rect.left || 0,\n y: rect.top || 0,\n };\n const winHeight = this.getWinHeight();\n const winWidth = this.getWinWidth();\n box.right = winWidth - rect.right || 0;\n box.bottom = winHeight - rect.bottom || 0;\n return box;\n }\n\n /* _getWindow(el: any) {\n if (CommonBase.isWindow(el)) {\n return el;\n }\n return el.nodeType === 9 ? (el.defaultView || el.parentWindow) : false;\n } */\n\n private _getWindow(el: any) {\n if (el && el.toString() !== \"[object Window]\") {\n const ownerDocument = el.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n return el;\n }\n\n isElementHtml(el: any) {\n const OwnElement = this._getWindow(el).HTMLElement;\n return el instanceof OwnElement || el instanceof HTMLElement;\n }\n\n isElementBody(el: any) {\n return CommonBase.isUndefined(el)\n ? false\n : this.isElementHtml(el) && el.tagName.toLocaleLowerCase() === \"body\";\n }\n\n getWinScrollTop() {\n return document.documentElement.scrollTop || document.body.scrollTop || window.pageYOffset;\n }\n getWinWidth() {\n return document.documentElement.clientWidth || document.body.clientWidth || window.innerWidth;\n }\n getWinHeight() {\n return document.documentElement.clientHeight || document.body.clientHeight || window.innerHeight;\n }\n /**\n * 获取元素的css\n * @param el\n * @returns\n */\n getStyle(el: any) {\n if (window.getComputedStyle) {\n return window.getComputedStyle(el, null);\n }\n return el.currentStyle;\n }\n\n private _isElementScroll(element: any) {\n const sty = this.getStyle(element);\n const overflow = sty.overflow;\n const overflowX = sty.overflowX;\n const overflowY = sty.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n }\n\n isHidden(element: any) {\n const sty = this.getStyle(element);\n const display = sty.display;\n return display === \"none\";\n }\n\n isHiddenParent(element: any) {\n let isHide = false;\n let current = element;\n let isStop = false;\n while (current && current.nodeType !== 9 && !isStop) {\n if (current.nodeType === 1) {\n isStop = this.isHidden(current);\n if (isStop) {\n isHide = true;\n }\n }\n current = current.parentNode;\n }\n return isHide;\n }\n\n /**\n * 获取上级元素,并检查parent包含el且parent非body\n * @param el 指定元素\n * @param parent 指定上级,可为string[#(id),.(class),tagName] || element; 为空时默认el.parentNode\n * @returns parentElement。当检查parentElement为body或者parent不包含el时,返回null\n */\n getParentCheckBody(el: any, parent: any, isCheckContains = true) {\n let newParentEl: any = null;\n if (parent) {\n if (CommonBase.isString(parent)) {\n if (parent.toLocaleLowerCase() !== \"body\") {\n newParentEl = this.getParent(el, parent);\n }\n } else {\n if (!this.isElementBody(parent)) {\n if (isCheckContains) {\n if (parent.contains(el)) {\n newParentEl = parent;\n }\n } else {\n newParentEl = parent;\n }\n }\n }\n } else {\n if (!this.isElementBody(el.parentNode)) {\n newParentEl = el.parentNode;\n }\n }\n return newParentEl;\n }\n\n /**\n * 获取上级元素\n * @param el 指定元素\n * @param parentAttr 指定上级,可为string[#(id),.(class),tagName]; 为空时默认el.parentNode\n * @param elUpperLimit 非必传,设置该参数时,如果在parentAttr参数之前匹配上设置值 则直接返回\n * @param isLimitReturnSelf 截止到elUpperLimit时 未匹配上parentAttr 是否返回 elUpperLimit\n * @returns parentElement\n */\n getParent(el: any, parentAttr: any, elUpperLimit?: any, isLimitReturnSelf = true) {\n const isEmpty: boolean = CommonBase.isEmpty(parentAttr);\n if (isEmpty) {\n return el.parentNode;\n }\n let pEl = null;\n const isLimit = !CommonBase.isUndefined(elUpperLimit);\n const check: any = this._checkElementByAttr(el, parentAttr);\n if (!check) {\n let current = el.parentNode;\n let isStop = false;\n while (current && current.nodeType !== 9 && !isStop) {\n if (current.nodeType === 1) {\n isStop = this._checkElementByAttr(current, parentAttr);\n if (isStop) {\n pEl = current;\n } else {\n if (isLimit) {\n isStop = current === elUpperLimit;\n if (isStop) {\n if (isLimitReturnSelf) {\n pEl = current;\n }\n }\n }\n }\n }\n current = current.parentNode;\n }\n } else {\n pEl = el;\n }\n return pEl;\n }\n\n /**\n * 获取所有上级元素\n * @param el 指定元素\n * @param parentAttr 指定上级,可为string[#(id),.(class),tagName]; 为空时默认el.parentNode\n * @returns list[parentElement]\n */\n getParentList(el: any, parentAttr: any) {\n const newAttr = CommonBase.isEmpty(parentAttr) ? \"body\" : parentAttr;\n return this._recursionParents(el, newAttr);\n }\n\n private _recursionParents(el: any, parentAttr: any): any[] {\n const list: any[] = [];\n if (this._checkElementByAttr(el, parentAttr)) {\n list.push(el);\n } else {\n if (el.parentNode && el.parentElement && !this.isElementBody(el.parentElement)) {\n list.push(el.parentNode);\n const temp = this._recursionParents(el.parentNode, parentAttr);\n list.push(...temp);\n }\n }\n return list;\n }\n\n getParentScrollList(el: any, parentAttr: any, isContainsSelf = true) {\n const scrollList: any[] = [];\n const pList = this.getParentList(el, parentAttr);\n pList.forEach((pEl: any) => {\n if (this._isElementScroll(pEl)) {\n if (isContainsSelf) {\n scrollList.push(pEl);\n } else {\n if (!this._checkElementByAttr(pEl, parentAttr)) {\n scrollList.push(pEl);\n }\n }\n }\n });\n return scrollList;\n }\n\n /**\n * 根据attr检查元素信息\n * @param el\n * @param attr\n * @returns true/false\n */\n private _checkElementByAttr(el: any, attr: any) {\n let check = false;\n if (!CommonBase.isEmpty(attr)) {\n if (CommonBase.isString(attr)) {\n const pre = attr.substr(0, 1);\n const compare = attr.substring(1);\n switch (pre) {\n case \"#\":\n check = el.id === compare;\n break;\n case \".\":\n check = CommonBase.isString(el.className) ? CommonBase.isExistValue(el.className.split(\" \"), compare) : false;\n break;\n default:\n check = el.tagName.toLocaleLowerCase() === attr;\n }\n } else {\n if (this.isElementHtml(attr)) {\n check = el === attr;\n }\n }\n }\n return check;\n }\n\n /**\n * 获取元素到窗体 偏移量\n * @param el 指定元素\n * @param viewEl 指定窗体,为空时默认window\n * @returns json { top,left }\n */\n getOffset(el: any, viewEl: any = null) {\n const box = this.getPositionView(el, viewEl);\n if (box.viewEl) {\n return {\n top: box.top + box.viewEl.scrollTop - box.viewEl.clientTop,\n left: box.left + box.viewEl.scrollLeft - box.viewEl.clientLeft,\n };\n } else {\n const doc = el && el.ownerDocument;\n const docEl = doc.documentElement;\n const winEl = this._getWindow(docEl);\n return {\n top: (box.top + (winEl.pageYOffset || docEl.scrollTop)) - (docEl.clientTop || 0),\n left: (box.left + (winEl.pageXOffset || docEl.scrollLeft)) - (docEl.clientLeft || 0),\n };\n }\n }\n\n /**\n * 获取元素相对指定容器的相对偏移\n * @param el 指定元素\n * @param viewEl 指定容器,为空时默认window\n * @returns json {top,left,viewEl}\n */\n getPositionView(el: any, viewEl: any = null) {\n const box: any = { top: 0, left: 0, viewEl: null };\n if (!this.isElementHtml(el)) {\n return box;\n }\n const tempBox = this._getBoundingClientRect(el);\n box.top = tempBox.top;\n box.right = tempBox.right;\n box.bottom = tempBox.bottom;\n box.left = tempBox.left;\n box.width = tempBox.width;\n box.height = tempBox.height;\n\n const viewBox = { top: 0, right: 0, bottom: 0, left: 0 };\n const newViewEl: any = CommonBase.isUndefined(viewEl) ? null : this.getParentCheckBody(el, viewEl, true);\n if (newViewEl) {\n const tempViewBox: any = this._getBoundingClientRect(newViewEl);\n viewBox.top = tempViewBox.top;\n viewBox.right = tempViewBox.right;\n viewBox.bottom = tempViewBox.bottom;\n viewBox.left = tempViewBox.left;\n box.viewWidth = tempViewBox.width;\n box.viewHeight = tempViewBox.height;\n\n box.top = tempBox.top - (viewBox.top < 0 ? 0 : viewBox.top);\n box.right = tempBox.right - (viewBox.right < 0 ? 0 : viewBox.right);\n box.bottom = tempBox.bottom - (viewBox.bottom < 0 ? 0 : viewBox.bottom);\n box.left = tempBox.left - (viewBox.left < 0 ? 0 : viewBox.left);\n\n box.elViewBox = {\n top: tempBox.top - viewBox.top,\n right: tempBox.right - viewBox.right,\n bottom: tempBox.bottom - viewBox.bottom,\n left: tempBox.left - viewBox.left,\n };\n }\n box.viewEl = newViewEl;\n return box;\n }\n\n /**\n * 获取元素相对指定容器的相对偏移\n * @param el 指定元素\n * @param parentAttr 指定窗体,为空时默认parentNode\n * @returns json\n */\n getPosition(el: any, parentAttr: any = null) {\n const parentEl: any = CommonBase.isUndefined(parentAttr) ? el.parentNode : parentAttr;\n return this.getPositionView(el, parentEl);\n }\n getElementIndex(el: any) {\n const prevAll = this.getPrevAll(el);\n return prevAll.length;\n }\n getPrev(el: any) {\n if (!CommonBase.isUndefined(el.previousElementSibling)) {\n return el.previousElementSibling;\n } else {\n let newEl: any = el.previousSibling;\n while (newEl && newEl.nodeType !== 1) {\n newEl = newEl.previousSibling;\n }\n return newEl;\n }\n\n }\n getPrevAll(el: any) {\n const arrEl: any = [];\n let prevEl: any = this.getPrev(el);\n while (prevEl) {\n arrEl.push(prevEl);\n prevEl = this.getPrev(prevEl);\n }\n return arrEl.reverse();\n }\n getNext(el: any) {\n if (!CommonBase.isUndefined(el.nextElementSibling)) {\n return el.nextElementSibling;\n } else {\n let newEl: any = el.nextSibling;\n while (newEl && newEl.nodeType !== 1) {\n newEl = newEl.nextSibling;\n }\n return newEl;\n }\n }\n\n insertAfter(targetEl: any, newEl: any) {\n const parentEl: any = targetEl.parentNode;\n if (parentEl.lastChild == targetEl) {// eslint-disable-line\n parentEl.appendChild(newEl);\n } else {\n parentEl.insertBefore(newEl, targetEl.nextSibling);\n }\n }\n\n getFocusSelection(targetEl: any) {\n const position: any = {};\n if (CommonBase.isUndefined(targetEl.selectionStart)) {\n targetEl.focus();\n // @ts-ignore\n const select: any = document.selection.createRange();\n position.length = select.text.length;\n select.moveStart(\"character\", -targetEl.value.length);\n position.end = select.text.length;\n position.start = position.end - position.length;\n } else {\n position.start = targetEl.selectionStart;\n position.end = targetEl.selectionEnd;\n position.length = position.end - position.start;\n }\n return position;\n }\n\n setFocusSelection(el: any, start: number, end: number) {\n if (CommonBase.isUndefined(el.selectionStart)) {\n el.focus();\n const r = el.createTextRange();\n r.collapse(true);\n r.moveEnd(\"character\", end);\n r.moveStart(\"character\", start);\n r.select();\n } else {\n el.selectionStart = start;\n el.selectionEnd = end;\n }\n }\n\n /* checkHoverInControl(controlEl, hoverInfo) {\n\n } */\n\n calculationDropdownPosition(controlEl: any, textEl: any, dropDownEl: any, arrowEl: any, containerEl: any) {\n const newContainerEl: any = containerEl ? this.getParentCheckBody(controlEl, containerEl) : null;\n const isAppendWindow = CommonBase.isUndefined(newContainerEl); // 检查是否以窗体为显示容器\n\n const textWidth = textEl.offsetWidth;\n const textHeight = textEl.offsetHeight;\n\n const dropDownWidth = dropDownEl.offsetWidth;\n const dropDownHeight = dropDownEl.offsetHeight;\n\n let arrowWidth = 0;\n let arrowHeight = 0;\n if (!CommonBase.isUndefined(arrowEl)) {\n arrowWidth = arrowEl.offsetWidth;\n arrowHeight = arrowEl.offsetHeight;\n }\n const arrowWidthHalf = (arrowWidth) / 2;\n\n const winHeight = this.getWinHeight();\n const winWidth = this.getWinWidth();\n\n let containerWidth = 0; // 容器 宽度\n let containerHeight = 0; // 容器 高度\n // let containerScrollTop = 0; // 容器 Scroll Top\n let containerScrollWidth = 0; // 容器 Scroll 宽度\n\n let controlOffset: any = { top: 0, left: 0 }; // 组件 位置 top,lef\n let controlPosView: any = { top: 0, left: 0 }; // 组件 相对位置 top,lef\n if (isAppendWindow) {\n containerWidth = winWidth;\n containerHeight = winHeight;\n // containerScrollTop = this.getWinScrollTop();\n containerScrollWidth = containerWidth - document.body.clientWidth;\n\n controlOffset = this.getOffset(controlEl);// boyd位置\n controlPosView = this.getPositionView(controlEl);// 相对window窗口位置\n } else {\n containerWidth = newContainerEl.clientWidth;\n containerHeight = newContainerEl.clientHeight;\n // containerScrollTop = this.getWinScrollTop();\n containerScrollWidth = newContainerEl.offsetWidth - containerWidth;\n\n controlOffset = this.getOffset(controlEl, newContainerEl);// 距containerEl位置\n controlPosView = this.getPositionView(controlEl, newContainerEl);// 相对controlEl窗口位置\n }\n\n const controlViewTop = controlPosView.top; /// 组件到窗体顶部的距离\n const controlDropDownTotalWidth = dropDownWidth + arrowWidth; // dropDown加箭头的总宽度\n const controlDropDownTotalHeight = dropDownHeight + arrowHeight; // dropDown加箭头的总高度\n const controlTotalHeight = textHeight + controlDropDownTotalHeight; /// 组件加dropDown加箭头的总高度\n\n const json: any = {\n winWidth,\n winHeight,\n containerWidth,\n containerHeight,\n controlOffset,\n controlPosView,\n textWidth,\n textHeight,\n dropDownWidth,\n dropDownHeight,\n arrowWidth,\n arrowHeight,\n };\n\n let posDown = \"down\";\n if (controlViewTop + controlTotalHeight > containerHeight) { /// 总体高度超过容器高度\n if (controlViewTop > controlDropDownTotalHeight) { /// 组件到视图顶部的距离大于dropDown高度\n posDown = \"up\";\n } else {\n if (controlOffset.top > controlDropDownTotalHeight) { /// 组件到顶部的距离大于dropDown高度\n posDown = \"up\";\n }\n }\n }\n json.dropDownPosDown = posDown;\n\n let posUp = \"up\";\n if (controlViewTop < controlDropDownTotalHeight) { /// 组件到视图顶部的距离小于dropDown高度\n if (controlOffset.top < controlDropDownTotalHeight) {\n posUp = \"down\";\n }\n }\n json.dropDownPosUp = posUp;\n\n let posLeft = \"left\";\n if (controlPosView.left < controlDropDownTotalWidth) { /// 组件到视图左侧的距离小于dropDown宽度时\n if (controlOffset.right >= controlDropDownTotalHeight) {\n posLeft = \"right\";\n }\n }\n json.dropDownPosLeft = posLeft;\n\n const posRight = \"right\";\n if (controlPosView.right < controlDropDownTotalWidth) { /// 组件到视图右侧的距离小于dropDown宽度时\n if (controlOffset.left >= controlDropDownTotalHeight) {\n posLeft = \"left\";\n }\n }\n json.dropDownPosRight = posRight;\n\n\n /// arrow left / right / center\n let arrowPosLeft = \"left\";\n if (containerWidth - controlOffset.left < dropDownWidth) {\n arrowPosLeft = controlOffset.left + textWidth >= dropDownWidth ? \"right\" : \"left\";\n }\n json.arrowPosLeft = arrowPosLeft;\n\n let arrowPosRight = \"right\";\n if (controlOffset.left + textWidth < dropDownWidth) {\n arrowPosRight = containerWidth - controlOffset.left >= dropDownWidth ? \"left\" : \"right\";\n }\n json.arrowPosRight = arrowPosRight;\n\n // 居中时,计算dropDown和arrow偏移量 \n let arrowPosCenterLR = \"center\";\n if ((controlOffset.left + textWidth) < (dropDownWidth / 2 - textWidth / 2)) {\n arrowPosCenterLR = controlOffset.left > (dropDownWidth / 2 - textWidth / 2) ? \"right\" : \"left\";\n }\n json.arrowPosCenterLR = arrowPosCenterLR;\n\n const arrowPosCenterLRInfo = {\n dropDownLeft: 0,\n arrowLeft: 0,\n };\n const textOffset = this.getOffset(textEl);\n const textOffsetControl = this.getOffset(textEl, controlEl);\n const textWidthHalf = textWidth / 2;\n const textOffsetLeft = textOffset.left - 5; // 5px 不靠边\n const textOffsetRight = containerWidth - textOffsetLeft - textWidth - 10 - (containerScrollWidth); // 不靠边 滚动条\n\n //const centerDropDownLeft = dropDownWidth / 2 - textWidthHalf;\n const centerDropDownLeft = dropDownEl.clientWidth / 2 - textWidthHalf;\n\n const centerDiffLeft = centerDropDownLeft - textOffsetLeft;\n const centerDiffRight = centerDropDownLeft - textOffsetRight;\n\n if (centerDiffLeft <= 0 && centerDiffRight <= 0) {\n arrowPosCenterLRInfo.dropDownLeft = (centerDropDownLeft - textOffsetControl.left) * -1;\n arrowPosCenterLRInfo.arrowLeft = centerDropDownLeft + textWidthHalf - arrowWidthHalf - 1;\n } else {\n if (centerDiffLeft > 0) {\n arrowPosCenterLRInfo.dropDownLeft = textOffsetLeft * -1;\n arrowPosCenterLRInfo.arrowLeft = textOffsetLeft + textWidthHalf - arrowWidthHalf;\n } else if (centerDiffRight > 0) {\n arrowPosCenterLRInfo.dropDownLeft = (centerDropDownLeft + centerDiffRight) * -1;\n arrowPosCenterLRInfo.arrowLeft = centerDropDownLeft + centerDiffRight + textWidthHalf - arrowWidthHalf;\n }\n }\n json.arrowPosCenterLRInfo = arrowPosCenterLRInfo;\n\n /// arrow top / bottom / center\n //const arrowPosTop = \"top\";\n /* if (containerHeight - controlViewTop) {\n\n }\n\n if (containerWidth - controlOffset.left < dropDownWidth) {\n arrowPosTop = controlOffset.left + textWidth >= dropDownWidth ? \"right\" : \"left\";\n } */\n //// todo\n json.arrowPosTop = \"top\";\n json.arrowPosBottom = \"bottom\";\n json.arrowPosCenterTB = \"center\";\n /* let posDown = \"down\";\n if (controlViewTop + controlTotalHeight > containerHeight) { /// 总体高度超过容器高度\n if (controlViewTop > controlDropDownTotalHeight) { /// 组件到视图顶部的距离大于dropDown高度\n posDown = \"up\";\n } else {\n if (controlOffset.top > controlDropDownTotalHeight) { /// 组件到顶部的距离大于dropDown高度\n posDown = \"up\";\n }\n }\n }\n json.dropDownPosDown = posDown; */\n\n\n return json;\n }\n\n getElementData(json: any) {\n const data: any = {};\n if (!CommonBase.isEmpty(json)) {\n for (const [k, v] of Object.entries(json)) {\n const temp = k.split(\"-\");\n const arr: string[] = [];\n temp.forEach((n: string, i: number) => {\n if (i > 0) {\n const newKey = n.toLowerCase();\n if (i === 1) {\n arr.push(newKey);\n } else {\n arr.push(newKey.replace(newKey[0], newKey[0].toUpperCase()));\n }\n }\n });\n if (arr.length > 0) {\n data[arr.join(\"\")] = v;\n }\n }\n }\n return data;\n }\n async getTextDataByFile(files: any) {\n const list: any = [];\n if (!CommonBase.isEmpty(files)) {\n for (let fi = 0; fi < files.length; fi++) {\n const listOne: any = await this._getTextDataFileOne(files[fi]);\n list.push(...listOne);\n }\n }\n return list;\n }\n private _getTextDataFileOne(file: any) {\n return CommonPromise.promiseFun((resolve: any) => {\n const reader = new FileReader();\n reader.readAsText(file, \"utf-8\");\n reader.onload = (e: any) => {\n const list: string[] = [];\n e.target.result.split(\"\\n\").forEach((t: string) => {\n const newTxt = CommonBase.trim(t);\n if (!CommonBase.isEmpty(newTxt)) {\n list.push(newTxt);\n }\n });\n resolve(list);\n };\n });\n }\n\n getClientXY(e: Event | MouseEvent | TouchEvent) {\n let clientX: number;\n let clientY: number;\n if (e.type === \"touchend\") {\n clientY = (e as TouchEvent).changedTouches[0].clientY;\n clientX = (e as TouchEvent).changedTouches[0].clientX;\n } else if (e.type.startsWith(\"touch\")) {\n clientY = (e as TouchEvent).touches[0].clientY;\n clientX = (e as TouchEvent).touches[0].clientX;\n } else {\n clientY = (e as MouseEvent).clientY;\n clientX = (e as MouseEvent).clientX;\n }\n return {\n clientX,\n clientY,\n };\n }\n}\nexport default new Element();\n","import CommonBase from \"../../base\";\nimport CommonElement from \"../index\";\ndeclare interface IClientXY {\n clientX: number\n clientY: number\n}\ndeclare interface IOptions {\n start?: (event: Event, clientXYInfo: IClientXY) => void\n ing?: (event: Event, clientXYInfo: IClientXY) => void\n end?: (event: Event, clientXYInfo: IClientXY) => void\n}\nclass Drag {\n optionsDrag: IOptions;\n private _isDragging: boolean;\n private _bindRunDragStart: any;\n private _bindRunDragIng: any;\n private _bindRunDragEnd: any;\n constructor(element: HTMLElement | null, options: IOptions) {\n this.optionsDrag = options;\n this._isDragging = false;\n this._init(element);\n }\n private _init(element: HTMLElement | null) {\n this._bindRunDragStart = this._runDragStart.bind(this);\n this._bindRunDragIng = this._runDraggIng.bind(this);\n this._bindRunDragEnd = this._runDragEnd.bind(this);\n CommonElement.onListener(element, \"mousedown\", this._bindRunDragStart);\n CommonElement.onListener(element, \"touchstart\", this._bindRunDragStart);\n }\n private _runDragStart(e: Event) {\n if (this._isDragging) return;\n\n const clientXYInfo = CommonElement.getClientXY(e);\n let tempRun: any = true;\n if (this.optionsDrag.start) {\n tempRun = this.optionsDrag.start(e, clientXYInfo);\n }\n tempRun = CommonBase.isBoolean(tempRun) ? tempRun : true;\n if (tempRun) {\n e.preventDefault();\n e.stopPropagation();\n\n document.onselectstart = () => false;\n document.ondragstart = () => false;\n\n this._isDragging = true;\n\n CommonElement.onListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.onListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.onListener(window, \"contextmenu\", this._bindRunDragEnd);\n } else {\n this._isDragging = false;\n }\n }\n private _runDraggIng(e: Event) {\n if (!this._isDragging) return;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.ing) {\n this.optionsDrag.ing(e, clientXYInfo);\n }\n }\n private _runDragEnd(e: Event) {\n if (!this._isDragging) return;\n this._isDragging = false;\n const clientXYInfo = CommonElement.getClientXY(e);\n if (this.optionsDrag.end) {\n this.optionsDrag.end(e, clientXYInfo);\n }\n this._offListener();\n }\n private _offListener() {\n CommonElement.offListener(window, \"mousemove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"touchmove\", this._bindRunDragIng);\n CommonElement.offListener(window, \"mouseup\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"touchend\", this._bindRunDragEnd);\n CommonElement.offListener(window, \"contextmenu\", this._bindRunDragEnd);\n }\n end() {\n this._isDragging = false;\n this._offListener();\n }\n}\nexport default Drag;\n"],"names":["Element","cls","c","CommonBase","classs","exist","element","eventName","eventFun","useCapture","text","font","context","result","tempCls","k","v","classTotal","arrRemove","className","arrTotal","arrCls","el","rect","box","winHeight","winWidth","ownerDocument","OwnElement","sty","overflow","overflowX","overflowY","isHide","current","isStop","parent","isCheckContains","newParentEl","parentAttr","elUpperLimit","isLimitReturnSelf","pEl","isLimit","newAttr","list","temp","isContainsSelf","scrollList","attr","check","pre","compare","viewEl","docEl","winEl","tempBox","viewBox","newViewEl","tempViewBox","parentEl","newEl","arrEl","prevEl","targetEl","position","select","start","end","r","controlEl","textEl","dropDownEl","arrowEl","containerEl","newContainerEl","isAppendWindow","textWidth","textHeight","dropDownWidth","dropDownHeight","arrowWidth","arrowHeight","arrowWidthHalf","containerWidth","containerHeight","containerScrollWidth","controlOffset","controlPosView","controlViewTop","controlDropDownTotalWidth","controlDropDownTotalHeight","controlTotalHeight","json","posDown","posUp","posLeft","posRight","arrowPosLeft","arrowPosRight","arrowPosCenterLR","arrowPosCenterLRInfo","textOffset","textOffsetControl","textWidthHalf","textOffsetLeft","textOffsetRight","centerDropDownLeft","centerDiffLeft","centerDiffRight","data","arr","n","i","newKey","files","fi","listOne","file","CommonPromise","resolve","reader","e","t","newTxt","clientX","clientY","CommonElement","Drag","options","clientXYInfo","tempRun"],"mappings":"wFAEA,MAAMA,CAAQ,CACV,mBACA,aAAc,CACV,KAAK,mBAAqB,IAC9B,CAEQ,oBAAoBC,EAAa,CACrC,OAAOA,EAAI,MAAM,GAAG,EAAE,OAAQC,GAAM,CAACC,EAAAA,WAAW,QAAQD,CAAC,CAAC,CAC9D,CAEQ,iBAAiBE,EAAqBC,EAAY,CACtD,OAAOD,EAAO,OAAQH,GAAgB,CAACE,EAAAA,WAAW,aAAaE,EAAOJ,CAAG,GAAK,CAACE,EAAAA,WAAW,QAAQF,CAAG,CAAC,CAC1G,CAEA,WAAWK,EAAcC,EAAmBC,EAAeC,EAAa,GAAO,CACvEH,GAAWC,GAAaC,GACxBF,EAAQ,iBAAiBC,EAAWC,EAAUC,CAAU,CAEhE,CAEA,YAAYH,EAAcC,EAAmBC,EAAeC,EAAa,GAAO,CACxEH,GAAWC,GAAaC,GACxBF,EAAQ,oBAAoBC,EAAWC,EAAUC,CAAU,CAEnE,CAEA,aAAaC,EAAcC,EAAO,8BAAuC,CAChE,KAAK,qBACN,KAAK,mBAAqB,SAAS,cAAc,QAAQ,GAE7D,MAAMC,EAAe,KAAK,mBAAmB,WAAW,IAAI,EAC5D,OAAAA,EAAQ,KAAOD,EACRC,EAAQ,YAAYF,CAAI,EAAE,KACrC,CAGA,eAAeN,EAAa,CACxB,IAAIS,EAAc,CAAA,EAClB,OAAAT,EAAO,QAASH,GAAa,CACzB,GAAIE,EAAAA,WAAW,SAASF,CAAG,EAAG,CAC1B,MAAMa,EAAU,KAAK,oBAAoBb,CAAG,EAC5CY,EAASA,EAAO,OAAO,KAAK,iBAAiBC,EAASD,CAAM,CAAC,CACjE,SAAWV,EAAAA,WAAW,QAAQF,CAAG,EAC7BY,EAASA,EAAO,OAAO,KAAK,iBAAiBZ,EAAKY,CAAM,CAAC,U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CAAC,EAC5C,KAAK,YAAY,KACjB,KAAK,YAAY,IAAIA,EAAGQ,CAAY,EAExC,KAAK,aAAA,CACT,CACQ,cAAe,CACnBH,EAAc,YAAY,OAAQ,YAAa,KAAK,eAAe,EACnEA,EAAc,YAAY,OAAQ,YAAa,KAAK,eAAe,EACnEA,EAAc,YAAY,OAAQ,UAAW,KAAK,eAAe,EACjEA,EAAc,YAAY,OAAQ,WAAY,KAAK,eAAe,EAClEA,EAAc,YAAY,OAAQ,cAAe,KAAK,eAAe,CACzE,CACA,KAAM,CACF,KAAK,YAAc,GACnB,KAAK,aAAA,CACT,CACJ"}
@@ -1,2 +0,0 @@
1
- "use strict";const o=require("./Tools_delayFun-DYTkzlXE.cjs"),t=require("./Tools_animateEasing-C6TmrmvZ.cjs"),r=require("./Tools_localStorage-Cbecy4gj.cjs"),l=require("./Tools_cookie-CCTgXZb7.cjs"),a=require("./Tools_number-Bh6hGO5U.cjs"),s=require("./base-iCmnU-fv.cjs"),n=require("./Element_Event_drag-L_ZT9whD.cjs");require("js-cookie");require("decimal.js");const _={DelayFun:o.DelayFun,AnimateEasing:t.AnimateEasing,LocalStorage:r.LocalStorage,Cookie:l.Cookie,Number:a.CommNumber};class u{options;_isWinResize;_isRunDelay;_runDelayFun;_bindWinResize;_objResizeObserver;constructor(e){this._isWinResize=s.CommonBase.isUndefined(e.element),this._isRunDelay=!!(!s.CommonBase.isBoolean(e.isDelay)||e.isDelay),this.options=e,this._init()}_init(){this._isRunDelay&&(this._runDelayFun=new o.DelayFun(this.options.callback,this.options.delayTime)),this._isWinResize?(this._bindWinResize=this._onWinResize.bind(this),n.CommonElement.onListener(window,"resize",this._bindWinResize)):this._initResizeObserver()}_onWinResize(){this._isRunDelay?this._runDelayFun.run():this.options.callback&&this.options.callback()}_initResizeObserver(){window&&"ResizeObserver"in window&&(this._objResizeObserver=new ResizeObserver(e=>{const i=e[0];this._isRunDelay?this._runDelayFun.run(()=>{this.options.callback(i)}):this.options.callback(i)}),this._objResizeObserver.observe(this.options.element))}destroy(){this._isWinResize?n.CommonElement.offListener(window,"resize",this._bindWinResize):this._objResizeObserver&&(this._objResizeObserver.disconnect(),this._objResizeObserver=null)}}exports.CommonTools=_;exports.Resize=u;
2
- //# sourceMappingURL=Element_Event_resize-DA_sUt40.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Element_Event_resize-DA_sUt40.cjs","sources":["../../src/libs/Common/Tools/index.ts","../../src/libs/Common/Element/Event/resize.ts"],"sourcesContent":["import DelayFun from \"./delayFun\";\nimport AnimateEasing from \"./animateEasing\";\nimport LocalStorage from \"./localStorage\";\nimport Cookie from \"./cookie\";\nimport Number from \"./number\";\n\nconst CommonTools = {\n DelayFun,\n AnimateEasing,\n LocalStorage,\n Cookie,\n Number,\n};\n\nexport default CommonTools;\n\nexport {\n DelayFun,\n AnimateEasing,\n LocalStorage,\n Cookie,\n Number,\n};\n","import CommonBase from \"../../base\";\nimport CommonElement from \"../index\";\nimport { DelayFun } from \"../../Tools/index\";\ninterface IOptions {\n element?: HTMLElement | null\n isDelay?: boolean\n delayTime?: number\n callback: (item?: any) => void\n}\nclass Resize {\n options: IOptions;\n private _isWinResize: boolean;\n private _isRunDelay: boolean;\n private _runDelayFun: any;\n private _bindWinResize: any;\n private _objResizeObserver: any;\n constructor(options: IOptions) {\n this._isWinResize = CommonBase.isUndefined(options.element);\n this._isRunDelay = Boolean(CommonBase.isBoolean(options.isDelay) ? options.isDelay : true);\n this.options = options;\n this._init();\n }\n private _init() {\n if (this._isRunDelay) {\n this._runDelayFun = new DelayFun(this.options.callback, this.options.delayTime);\n }\n\n if (this._isWinResize) {\n this._bindWinResize = this._onWinResize.bind(this);\n CommonElement.onListener(window, \"resize\", this._bindWinResize);\n } else {\n this._initResizeObserver();\n }\n\n }\n private _onWinResize() {\n if (this._isRunDelay) {\n this._runDelayFun.run();\n } else {\n if (this.options.callback) {\n this.options.callback();\n }\n }\n }\n private _initResizeObserver() {\n if (window && \"ResizeObserver\" in window) {\n this._objResizeObserver = new ResizeObserver(entries => {\n const entry = entries[0]; // {target,contentRect}\n if (this._isRunDelay) {\n this._runDelayFun.run(() => {\n this.options.callback(entry);\n });\n } else {\n this.options.callback(entry);\n }\n });\n this._objResizeObserver.observe(this.options.element);\n }\n }\n destroy() {\n if (this._isWinResize) {\n CommonElement.offListener(window, \"resize\", this._bindWinResize);\n } else {\n if (this._objResizeObserver) {\n this._objResizeObserver.disconnect();\n this._objResizeObserver = null;\n }\n }\n }\n}\nexport default Resize;"],"names":["CommonTools","DelayFun","AnimateEasing","LocalStorage","Cookie","Number","Resize","options","CommonBase","CommonElement","entries","entry"],"mappings":"0WAMA,MAAMA,EAAc,CAAA,SAChBC,EAAAA,SAAA,cACAC,EAAAA,cAAA,aACAC,EAAAA,aAAA,OACAC,EAAAA,OAAA,OACAC,EAAAA,UACJ,ECHA,MAAMC,CAAO,CACT,QACQ,aACA,YACA,aACA,eACA,mBACR,YAAYC,EAAmB,CAC3B,KAAK,aAAeC,EAAAA,WAAW,YAAYD,EAAQ,OAAO,EAC1D,KAAK,YAAc,GAAQC,CAAAA,EAAAA,WAAW,UAAUD,EAAQ,OAAO,GAAIA,EAAQ,SAC3E,KAAK,QAAUA,EACf,KAAK,MAAA,CACT,CACQ,OAAQ,CACR,KAAK,cACL,KAAK,aAAe,IAAIN,EAAAA,SAAS,KAAK,QAAQ,SAAU,KAAK,QAAQ,SAAS,GAG9E,KAAK,cACL,KAAK,eAAiB,KAAK,aAAa,KAAK,IAAI,EACjDQ,EAAAA,cAAc,WAAW,OAAQ,SAAU,KAAK,cAAc,GAE9D,KAAK,oBAAA,CAGb,CACQ,cAAe,CACf,KAAK,YACL,KAAK,aAAa,IAAA,EAEd,KAAK,QAAQ,UACb,KAAK,QAAQ,SAAA,CAGzB,CACQ,qBAAsB,CACtB,QAAU,mBAAoB,SAC9B,KAAK,mBAAqB,IAAI,eAAeC,GAAW,CACpD,MAAMC,EAAQD,EAAQ,CAAC,EACnB,KAAK,YACL,KAAK,aAAa,IAAI,IAAM,CACxB,KAAK,QAAQ,SAASC,CAAK,CAC/B,CAAC,EAED,KAAK,QAAQ,SAASA,CAAK,CAEnC,CAAC,EACD,KAAK,mBAAmB,QAAQ,KAAK,QAAQ,OAAO,EAE5D,CACA,SAAU,CACF,KAAK,aACLF,EAAAA,cAAc,YAAY,OAAQ,SAAU,KAAK,cAAc,EAE3D,KAAK,qBACL,KAAK,mBAAmB,WAAA,EACxB,KAAK,mBAAqB,KAGtC,CACJ"}
@@ -1,49 +0,0 @@
1
- import { D as o } from "./Tools_delayFun-CA1ktv1L.js";
2
- import { A as t } from "./Tools_animateEasing-D0lY_Vn8.js";
3
- import { L as r } from "./Tools_localStorage-DVvhtzhL.js";
4
- import { C as a } from "./Tools_cookie-DKctMXdK.js";
5
- import { C as l } from "./Tools_number-C_MjN473.js";
6
- import { C as s } from "./base-PQGakkrl.js";
7
- import { C as n } from "./Element_Event_drag-DeZYlveu.js";
8
- import "js-cookie";
9
- import "decimal.js";
10
- const y = {
11
- DelayFun: o,
12
- AnimateEasing: t,
13
- LocalStorage: r,
14
- Cookie: a,
15
- Number: l
16
- };
17
- class d {
18
- options;
19
- _isWinResize;
20
- _isRunDelay;
21
- _runDelayFun;
22
- _bindWinResize;
23
- _objResizeObserver;
24
- constructor(i) {
25
- this._isWinResize = s.isUndefined(i.element), this._isRunDelay = !!(!s.isBoolean(i.isDelay) || i.isDelay), this.options = i, this._init();
26
- }
27
- _init() {
28
- this._isRunDelay && (this._runDelayFun = new o(this.options.callback, this.options.delayTime)), this._isWinResize ? (this._bindWinResize = this._onWinResize.bind(this), n.onListener(window, "resize", this._bindWinResize)) : this._initResizeObserver();
29
- }
30
- _onWinResize() {
31
- this._isRunDelay ? this._runDelayFun.run() : this.options.callback && this.options.callback();
32
- }
33
- _initResizeObserver() {
34
- window && "ResizeObserver" in window && (this._objResizeObserver = new ResizeObserver((i) => {
35
- const e = i[0];
36
- this._isRunDelay ? this._runDelayFun.run(() => {
37
- this.options.callback(e);
38
- }) : this.options.callback(e);
39
- }), this._objResizeObserver.observe(this.options.element));
40
- }
41
- destroy() {
42
- this._isWinResize ? n.offListener(window, "resize", this._bindWinResize) : this._objResizeObserver && (this._objResizeObserver.disconnect(), this._objResizeObserver = null);
43
- }
44
- }
45
- export {
46
- y as C,
47
- d as R
48
- };
49
- //# sourceMappingURL=Element_Event_resize-DqH_UT2k.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Element_Event_resize-DqH_UT2k.js","sources":["../../src/libs/Common/Tools/index.ts","../../src/libs/Common/Element/Event/resize.ts"],"sourcesContent":["import DelayFun from \"./delayFun\";\nimport AnimateEasing from \"./animateEasing\";\nimport LocalStorage from \"./localStorage\";\nimport Cookie from \"./cookie\";\nimport Number from \"./number\";\n\nconst CommonTools = {\n DelayFun,\n AnimateEasing,\n LocalStorage,\n Cookie,\n Number,\n};\n\nexport default CommonTools;\n\nexport {\n DelayFun,\n AnimateEasing,\n LocalStorage,\n Cookie,\n Number,\n};\n","import CommonBase from \"../../base\";\nimport CommonElement from \"../index\";\nimport { DelayFun } from \"../../Tools/index\";\ninterface IOptions {\n element?: HTMLElement | null\n isDelay?: boolean\n delayTime?: number\n callback: (item?: any) => void\n}\nclass Resize {\n options: IOptions;\n private _isWinResize: boolean;\n private _isRunDelay: boolean;\n private _runDelayFun: any;\n private _bindWinResize: any;\n private _objResizeObserver: any;\n constructor(options: IOptions) {\n this._isWinResize = CommonBase.isUndefined(options.element);\n this._isRunDelay = Boolean(CommonBase.isBoolean(options.isDelay) ? options.isDelay : true);\n this.options = options;\n this._init();\n }\n private _init() {\n if (this._isRunDelay) {\n this._runDelayFun = new DelayFun(this.options.callback, this.options.delayTime);\n }\n\n if (this._isWinResize) {\n this._bindWinResize = this._onWinResize.bind(this);\n CommonElement.onListener(window, \"resize\", this._bindWinResize);\n } else {\n this._initResizeObserver();\n }\n\n }\n private _onWinResize() {\n if (this._isRunDelay) {\n this._runDelayFun.run();\n } else {\n if (this.options.callback) {\n this.options.callback();\n }\n }\n }\n private _initResizeObserver() {\n if (window && \"ResizeObserver\" in window) {\n this._objResizeObserver = new ResizeObserver(entries => {\n const entry = entries[0]; // {target,contentRect}\n if (this._isRunDelay) {\n this._runDelayFun.run(() => {\n this.options.callback(entry);\n });\n } else {\n this.options.callback(entry);\n }\n });\n this._objResizeObserver.observe(this.options.element);\n }\n }\n destroy() {\n if (this._isWinResize) {\n CommonElement.offListener(window, \"resize\", this._bindWinResize);\n } else {\n if (this._objResizeObserver) {\n this._objResizeObserver.disconnect();\n this._objResizeObserver = null;\n }\n }\n }\n}\nexport default Resize;"],"names":["CommonTools","DelayFun","AnimateEasing","LocalStorage","Cookie","Number","Resize","options","CommonBase","CommonElement","entries","entry"],"mappings":";;;;;;;;;AAMA,MAAMA,IAAc;AAAA,EAChB,UAAAC;AAAA,EACA,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC;AAAA,EAAA,QACAC;AACJ;ACHA,MAAMC,EAAO;AAAA,EACT;AAAA,EACQ;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACR,YAAYC,GAAmB;AAC3B,SAAK,eAAeC,EAAW,YAAYD,EAAQ,OAAO,GAC1D,KAAK,cAAc,GAAQ,CAAAC,EAAW,UAAUD,EAAQ,OAAO,KAAIA,EAAQ,UAC3E,KAAK,UAAUA,GACf,KAAK,MAAA;AAAA,EACT;AAAA,EACQ,QAAQ;AACZ,IAAI,KAAK,gBACL,KAAK,eAAe,IAAIN,EAAS,KAAK,QAAQ,UAAU,KAAK,QAAQ,SAAS,IAG9E,KAAK,gBACL,KAAK,iBAAiB,KAAK,aAAa,KAAK,IAAI,GACjDQ,EAAc,WAAW,QAAQ,UAAU,KAAK,cAAc,KAE9D,KAAK,oBAAA;AAAA,EAGb;AAAA,EACQ,eAAe;AACnB,IAAI,KAAK,cACL,KAAK,aAAa,IAAA,IAEd,KAAK,QAAQ,YACb,KAAK,QAAQ,SAAA;AAAA,EAGzB;AAAA,EACQ,sBAAsB;AAC1B,IAAI,UAAU,oBAAoB,WAC9B,KAAK,qBAAqB,IAAI,eAAe,CAAAC,MAAW;AACpD,YAAMC,IAAQD,EAAQ,CAAC;AACvB,MAAI,KAAK,cACL,KAAK,aAAa,IAAI,MAAM;AACxB,aAAK,QAAQ,SAASC,CAAK;AAAA,MAC/B,CAAC,IAED,KAAK,QAAQ,SAASA,CAAK;AAAA,IAEnC,CAAC,GACD,KAAK,mBAAmB,QAAQ,KAAK,QAAQ,OAAO;AAAA,EAE5D;AAAA,EACA,UAAU;AACN,IAAI,KAAK,eACLF,EAAc,YAAY,QAAQ,UAAU,KAAK,cAAc,IAE3D,KAAK,uBACL,KAAK,mBAAmB,WAAA,GACxB,KAAK,qBAAqB;AAAA,EAGtC;AACJ;"}
@@ -1,27 +0,0 @@
1
- declare class AnimateEasing {
2
- startTime: number;
3
- startPos: number;
4
- endPos: number;
5
- duration: number;
6
- runEasing: any;
7
- runIngFun: any;
8
- lastPos: number;
9
- lastInterval: number;
10
- timeAnimate: any;
11
- constructor(option: any);
12
- _easing: {
13
- /**
14
- * t:动画已经消耗的时间
15
- * b:初始位置
16
- * c:目标位置
17
- * d:动画持续的总时间
18
- */
19
- linear: (t: number, b: number, c: number, d: number) => number;
20
- easeInCubic: (t: number, b: number, c: number, d: number) => number;
21
- easeOutCubic: (t: number, b: number, c: number, d: number) => number;
22
- };
23
- start(startPos: number, endPos: number, duration: number, easing?: string): Promise<unknown>;
24
- step(): boolean;
25
- stop(): void;
26
- }
27
- export default AnimateEasing;
@@ -1,8 +0,0 @@
1
- declare class Cookie {
2
- static getItem(key: string): any;
3
- static setItem(key: string, data: any): any;
4
- static removeItem(key: string): any;
5
- static removeList(arr: string[]): any;
6
- static clearAll(): any;
7
- }
8
- export default Cookie;
@@ -1,9 +0,0 @@
1
- declare class DelayFun {
2
- private _fun;
3
- private _time;
4
- private _cb;
5
- constructor(cb: any, delay?: number);
6
- stopRun(): void;
7
- run(cb?: any): void;
8
- }
9
- export default DelayFun;
@@ -1,15 +0,0 @@
1
- import { default as DelayFun } from './delayFun';
2
- import { default as AnimateEasing } from './animateEasing';
3
- import { default as LocalStorage } from './localStorage';
4
- import { default as Cookie } from './cookie';
5
- import { default as Number } from './number';
6
-
7
- declare const CommonTools: {
8
- DelayFun: typeof DelayFun;
9
- AnimateEasing: typeof AnimateEasing;
10
- LocalStorage: typeof LocalStorage;
11
- Cookie: typeof Cookie;
12
- Number: typeof Number;
13
- };
14
- export default CommonTools;
15
- export { DelayFun, AnimateEasing, LocalStorage, Cookie, Number, };
@@ -1,9 +0,0 @@
1
- declare class LocalStorage {
2
- private static _guard;
3
- static getItem(key: string): any;
4
- static setItem(key: string, data: any): any;
5
- static removeItem(key: string): any;
6
- static removeList(arr: string[]): any;
7
- static clearAll(): any;
8
- }
9
- export default LocalStorage;
@@ -1,8 +0,0 @@
1
- declare class CommNumber {
2
- static initDecimal(n: number): any;
3
- static add(n1: number, n2: number): any;
4
- static sub(n1: number, n2: number): any;
5
- static mul(n1: number, n2: number): any;
6
- static div(n1: number, n2: number): any;
7
- }
8
- export default CommNumber;
@@ -1,2 +0,0 @@
1
- "use strict";const a=require("./base-iCmnU-fv.cjs");class u{startTime;startPos;endPos;duration;runEasing;runIngFun;lastPos;lastInterval;timeAnimate;constructor(t){this.startTime=0,this.startPos=0,this.endPos=0,this.duration=0,this.runEasing=null,this.runIngFun=t.runIngCallback,this.lastPos=0,this.lastInterval=0}_easing={linear:(t,s,i,n)=>i*t/n+s,easeInCubic:(t,s,i,n)=>i*(t/=n)*t*t+s,easeOutCubic:(t,s,i,n)=>i*((t=t/n-1)*t*t+1)+s};start(t,s,i,n="linear"){const e=this;return new Promise(r=>{this.startTime=+new Date,this.startPos=t,this.endPos=s,this.duration=i,this.runEasing=e._easing[n],e.timeAnimate=a.CommonBase.requestAnimationFrame(function o(){e.step()===!1?(e.stop(),r(e.lastInterval)):e.timeAnimate=a.CommonBase.requestAnimationFrame(o)})})}step(){const t=+new Date;if(t>=this.startTime+this.duration)return this.runIngFun(this.endPos),!1;const s=this.runEasing(t-this.startTime,this.startPos,this.endPos-this.startPos,this.duration);return this.lastInterval=Math.abs(s-this.lastPos),this.lastPos=s,this.runIngFun(s),!0}stop(){this.timeAnimate&&a.CommonBase.cancelAnimationFrame(this.timeAnimate)}}exports.AnimateEasing=u;
2
- //# sourceMappingURL=Tools_animateEasing-C6TmrmvZ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tools_animateEasing-C6TmrmvZ.cjs","sources":["../../src/libs/Common/Tools/animateEasing.ts"],"sourcesContent":["import CommonBase from \"../base\";\nclass AnimateEasing {\n startTime: number;\n startPos: number;\n endPos: number;\n duration: number;\n runEasing: any;\n\n runIngFun: any;\n\n lastPos: number;\n lastInterval: number;\n\n timeAnimate: any;\n constructor(option: any) {\n this.startTime = 0;\n this.startPos = 0;\n this.endPos = 0;\n this.duration = 0;\n this.runEasing = null;\n\n this.runIngFun = option.runIngCallback;\n\n this.lastPos = 0;\n this.lastInterval = 0;\n }\n\n _easing = {\n /**\n * t:动画已经消耗的时间\n * b:初始位置\n * c:目标位置\n * d:动画持续的总时间\n */\n linear: (t: number, b: number, c: number, d: number) => c * t / d + b,\n easeInCubic: (t: number, b: number, c: number, d: number) => c * (t /= d) * t * t + b, // eslint-disable-line\n easeOutCubic: (t: number, b: number, c: number, d: number) => c * ((t = t / d - 1) * t * t + 1) + b,// eslint-disable-line\n };\n\n start(startPos: number, endPos: number, duration: number, easing = \"linear\") {\n const self: any = this;\n return new Promise((resolve) => {\n this.startTime = +new Date();\n this.startPos = startPos;\n this.endPos = endPos;\n this.duration = duration;\n this.runEasing = self._easing[easing];\n self.timeAnimate = CommonBase.requestAnimationFrame(function fnCb() {\n const stepResult = self.step();\n if (stepResult === false) {\n self.stop();\n resolve(self.lastInterval);\n } else {\n self.timeAnimate = CommonBase.requestAnimationFrame(fnCb);\n }\n });\n });\n }\n\n step() {\n const t = +new Date();\n if (t >= this.startTime + this.duration) {\n this.runIngFun(this.endPos);\n return false;\n }\n const pos = this.runEasing(t - this.startTime, this.startPos, this.endPos - this.startPos, this.duration);\n this.lastInterval = Math.abs(pos - this.lastPos);\n this.lastPos = pos;\n this.runIngFun(pos);\n return true;\n }\n\n stop() {\n if (this.timeAnimate) {\n CommonBase.cancelAnimationFrame(this.timeAnimate);\n }\n }\n}\nexport default AnimateEasing;\n"],"names":["AnimateEasing","option","b","c","d","startPos","endPos","duration","easing","self","resolve","CommonBase","fnCb","pos"],"mappings":"oDACA,MAAMA,CAAc,CAChB,UACA,SACA,OACA,SACA,UAEA,UAEA,QACA,aAEA,YACA,YAAYC,EAAa,CACrB,KAAK,UAAY,EACjB,KAAK,SAAW,EAChB,KAAK,OAAS,EACd,KAAK,SAAW,EAChB,KAAK,UAAY,KAEjB,KAAK,UAAYA,EAAO,eAExB,KAAK,QAAU,EACf,KAAK,aAAe,CACxB,CAEA,QAAU,CAON,OAAQ,CAAC,EAAWC,EAAWC,EAAWC,IAAcD,EAAI,EAAIC,EAAIF,EACpE,YAAa,CAAC,EAAWA,EAAWC,EAAWC,IAAcD,GAAK,GAAKC,GAAK,EAAI,EAAIF,EACpF,aAAc,CAAC,EAAWA,EAAWC,EAAWC,IAAcD,IAAM,EAAI,EAAIC,EAAI,GAAK,EAAI,EAAI,GAAKF,CAAA,EAGtG,MAAMG,EAAkBC,EAAgBC,EAAkBC,EAAS,SAAU,CACzE,MAAMC,EAAY,KAClB,OAAO,IAAI,QAASC,GAAY,CAC5B,KAAK,UAAY,CAAC,IAAI,KACtB,KAAK,SAAWL,EAChB,KAAK,OAASC,EACd,KAAK,SAAWC,EAChB,KAAK,UAAYE,EAAK,QAAQD,CAAM,EACpCC,EAAK,YAAcE,EAAAA,WAAW,sBAAsB,SAASC,GAAO,CAC7CH,EAAK,KAAA,IACL,IACfA,EAAK,KAAA,EACLC,EAAQD,EAAK,YAAY,GAEzBA,EAAK,YAAcE,aAAW,sBAAsBC,CAAI,CAEhE,CAAC,CACL,CAAC,CACL,CAEA,MAAO,CACH,MAAM,EAAI,CAAC,IAAI,KACf,GAAI,GAAK,KAAK,UAAY,KAAK,SAC3B,YAAK,UAAU,KAAK,MAAM,EACnB,GAEX,MAAMC,EAAM,KAAK,UAAU,EAAI,KAAK,UAAW,KAAK,SAAU,KAAK,OAAS,KAAK,SAAU,KAAK,QAAQ,EACxG,YAAK,aAAe,KAAK,IAAIA,EAAM,KAAK,OAAO,EAC/C,KAAK,QAAUA,EACf,KAAK,UAAUA,CAAG,EACX,EACX,CAEA,MAAO,CACC,KAAK,aACLF,aAAW,qBAAqB,KAAK,WAAW,CAExD,CACJ"}
@@ -1,50 +0,0 @@
1
- import { C as e } from "./base-PQGakkrl.js";
2
- class l {
3
- startTime;
4
- startPos;
5
- endPos;
6
- duration;
7
- runEasing;
8
- runIngFun;
9
- lastPos;
10
- lastInterval;
11
- timeAnimate;
12
- constructor(t) {
13
- this.startTime = 0, this.startPos = 0, this.endPos = 0, this.duration = 0, this.runEasing = null, this.runIngFun = t.runIngCallback, this.lastPos = 0, this.lastInterval = 0;
14
- }
15
- _easing = {
16
- /**
17
- * t:动画已经消耗的时间
18
- * b:初始位置
19
- * c:目标位置
20
- * d:动画持续的总时间
21
- */
22
- linear: (t, s, i, n) => i * t / n + s,
23
- easeInCubic: (t, s, i, n) => i * (t /= n) * t * t + s,
24
- // eslint-disable-line
25
- easeOutCubic: (t, s, i, n) => i * ((t = t / n - 1) * t * t + 1) + s
26
- // eslint-disable-line
27
- };
28
- start(t, s, i, n = "linear") {
29
- const a = this;
30
- return new Promise((r) => {
31
- this.startTime = +/* @__PURE__ */ new Date(), this.startPos = t, this.endPos = s, this.duration = i, this.runEasing = a._easing[n], a.timeAnimate = e.requestAnimationFrame(function o() {
32
- a.step() === !1 ? (a.stop(), r(a.lastInterval)) : a.timeAnimate = e.requestAnimationFrame(o);
33
- });
34
- });
35
- }
36
- step() {
37
- const t = +/* @__PURE__ */ new Date();
38
- if (t >= this.startTime + this.duration)
39
- return this.runIngFun(this.endPos), !1;
40
- const s = this.runEasing(t - this.startTime, this.startPos, this.endPos - this.startPos, this.duration);
41
- return this.lastInterval = Math.abs(s - this.lastPos), this.lastPos = s, this.runIngFun(s), !0;
42
- }
43
- stop() {
44
- this.timeAnimate && e.cancelAnimationFrame(this.timeAnimate);
45
- }
46
- }
47
- export {
48
- l as A
49
- };
50
- //# sourceMappingURL=Tools_animateEasing-D0lY_Vn8.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tools_animateEasing-D0lY_Vn8.js","sources":["../../src/libs/Common/Tools/animateEasing.ts"],"sourcesContent":["import CommonBase from \"../base\";\nclass AnimateEasing {\n startTime: number;\n startPos: number;\n endPos: number;\n duration: number;\n runEasing: any;\n\n runIngFun: any;\n\n lastPos: number;\n lastInterval: number;\n\n timeAnimate: any;\n constructor(option: any) {\n this.startTime = 0;\n this.startPos = 0;\n this.endPos = 0;\n this.duration = 0;\n this.runEasing = null;\n\n this.runIngFun = option.runIngCallback;\n\n this.lastPos = 0;\n this.lastInterval = 0;\n }\n\n _easing = {\n /**\n * t:动画已经消耗的时间\n * b:初始位置\n * c:目标位置\n * d:动画持续的总时间\n */\n linear: (t: number, b: number, c: number, d: number) => c * t / d + b,\n easeInCubic: (t: number, b: number, c: number, d: number) => c * (t /= d) * t * t + b, // eslint-disable-line\n easeOutCubic: (t: number, b: number, c: number, d: number) => c * ((t = t / d - 1) * t * t + 1) + b,// eslint-disable-line\n };\n\n start(startPos: number, endPos: number, duration: number, easing = \"linear\") {\n const self: any = this;\n return new Promise((resolve) => {\n this.startTime = +new Date();\n this.startPos = startPos;\n this.endPos = endPos;\n this.duration = duration;\n this.runEasing = self._easing[easing];\n self.timeAnimate = CommonBase.requestAnimationFrame(function fnCb() {\n const stepResult = self.step();\n if (stepResult === false) {\n self.stop();\n resolve(self.lastInterval);\n } else {\n self.timeAnimate = CommonBase.requestAnimationFrame(fnCb);\n }\n });\n });\n }\n\n step() {\n const t = +new Date();\n if (t >= this.startTime + this.duration) {\n this.runIngFun(this.endPos);\n return false;\n }\n const pos = this.runEasing(t - this.startTime, this.startPos, this.endPos - this.startPos, this.duration);\n this.lastInterval = Math.abs(pos - this.lastPos);\n this.lastPos = pos;\n this.runIngFun(pos);\n return true;\n }\n\n stop() {\n if (this.timeAnimate) {\n CommonBase.cancelAnimationFrame(this.timeAnimate);\n }\n }\n}\nexport default AnimateEasing;\n"],"names":["AnimateEasing","option","b","c","d","startPos","endPos","duration","easing","self","resolve","CommonBase","fnCb","pos"],"mappings":";AACA,MAAMA,EAAc;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,EACA,YAAYC,GAAa;AACrB,SAAK,YAAY,GACjB,KAAK,WAAW,GAChB,KAAK,SAAS,GACd,KAAK,WAAW,GAChB,KAAK,YAAY,MAEjB,KAAK,YAAYA,EAAO,gBAExB,KAAK,UAAU,GACf,KAAK,eAAe;AAAA,EACxB;AAAA,EAEA,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAON,QAAQ,CAAC,GAAWC,GAAWC,GAAWC,MAAcD,IAAI,IAAIC,IAAIF;AAAA,IACpE,aAAa,CAAC,GAAWA,GAAWC,GAAWC,MAAcD,KAAK,KAAKC,KAAK,IAAI,IAAIF;AAAA;AAAA,IACpF,cAAc,CAAC,GAAWA,GAAWC,GAAWC,MAAcD,MAAM,IAAI,IAAIC,IAAI,KAAK,IAAI,IAAI,KAAKF;AAAA;AAAA,EAAA;AAAA,EAGtG,MAAMG,GAAkBC,GAAgBC,GAAkBC,IAAS,UAAU;AACzE,UAAMC,IAAY;AAClB,WAAO,IAAI,QAAQ,CAACC,MAAY;AAC5B,WAAK,YAAY,CAAC,oBAAI,KAAA,GACtB,KAAK,WAAWL,GAChB,KAAK,SAASC,GACd,KAAK,WAAWC,GAChB,KAAK,YAAYE,EAAK,QAAQD,CAAM,GACpCC,EAAK,cAAcE,EAAW,sBAAsB,SAASC,IAAO;AAEhE,QADmBH,EAAK,KAAA,MACL,MACfA,EAAK,KAAA,GACLC,EAAQD,EAAK,YAAY,KAEzBA,EAAK,cAAcE,EAAW,sBAAsBC,CAAI;AAAA,MAEhE,CAAC;AAAA,IACL,CAAC;AAAA,EACL;AAAA,EAEA,OAAO;AACH,UAAM,IAAI,CAAC,oBAAI,KAAA;AACf,QAAI,KAAK,KAAK,YAAY,KAAK;AAC3B,kBAAK,UAAU,KAAK,MAAM,GACnB;AAEX,UAAMC,IAAM,KAAK,UAAU,IAAI,KAAK,WAAW,KAAK,UAAU,KAAK,SAAS,KAAK,UAAU,KAAK,QAAQ;AACxG,gBAAK,eAAe,KAAK,IAAIA,IAAM,KAAK,OAAO,GAC/C,KAAK,UAAUA,GACf,KAAK,UAAUA,CAAG,GACX;AAAA,EACX;AAAA,EAEA,OAAO;AACH,IAAI,KAAK,eACLF,EAAW,qBAAqB,KAAK,WAAW;AAAA,EAExD;AACJ;"}
@@ -1,2 +0,0 @@
1
- "use strict";const i=require("js-cookie"),o=require("./base-iCmnU-fv.cjs");class r{static getItem(t){let e=i.get(t);return o.CommonBase.isString(e)&&e.indexOf('\\"')>-1&&(e=e.replace(/\\"/gi,'"')),o.CommonBase.isJson(e)&&(e=JSON.parse(e)),e}static setItem(t,e){let s;return!o.CommonBase.isEmpty(e)&&o.CommonBase.isJson(e)&&o.CommonBase.isObject(e)&&(s=JSON.stringify(e)),i.set(t,s||e)}static removeItem(t){i.remove(t)}static removeList(t){o.CommonBase.isEmpty(t)||t.forEach(e=>{this.removeItem(e)})}static clearAll(){const t=document.cookie.split(";");for(let e=0;e<t.length;e++){const s=t[e],m=s.indexOf("="),n=m>-1?s.substring(0,m):s;this.removeItem(n)}}}exports.Cookie=r;
2
- //# sourceMappingURL=Tools_cookie-CCTgXZb7.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tools_cookie-CCTgXZb7.cjs","sources":["../../src/libs/Common/Tools/cookie.ts"],"sourcesContent":["import Cookies from \"js-cookie\";\nimport CommonBase from \"../base\";\nclass Cookie {\n static getItem(key: string): any {\n let value: any = Cookies.get(key);\n if (CommonBase.isString(value)) {\n if (value.indexOf(\"\\\\\\\"\") > -1) {\n value = value.replace(/\\\\\"/gi, \"\\\"\");\n }\n }\n if (CommonBase.isJson(value)) {\n value = JSON.parse(value);\n }\n return value;\n }\n static setItem(key: string, data: any): any {\n let convertValue: any;\n if (!CommonBase.isEmpty(data) && CommonBase.isJson(data) && CommonBase.isObject(data)) {\n convertValue = JSON.stringify(data);\n }\n return Cookies.set(key, convertValue || data);\n }\n static removeItem(key: string): any {\n Cookies.remove(key);\n }\n static removeList(arr: string[]): any {\n if (!CommonBase.isEmpty(arr)) {\n arr.forEach((k: string) => {\n this.removeItem(k);\n });\n }\n }\n static clearAll(): any {\n const arr = document.cookie.split(\";\");\n for (let i = 0; i < arr.length; i++) {\n const temp = arr[i];\n const inx = temp.indexOf(\"=\");\n const k = inx > -1 ? temp.substring(0, inx) : temp;\n this.removeItem(k);\n }\n }\n}\nexport default Cookie;\n"],"names":["Cookie","key","value","Cookies","CommonBase","data","convertValue","arr","k","i","temp","inx"],"mappings":"2EAEA,MAAMA,CAAO,CACT,OAAO,QAAQC,EAAkB,CAC7B,IAAIC,EAAaC,EAAQ,IAAIF,CAAG,EAChC,OAAIG,EAAAA,WAAW,SAASF,CAAK,GACrBA,EAAM,QAAQ,KAAM,EAAI,KACxBA,EAAQA,EAAM,QAAQ,QAAS,GAAI,GAGvCE,EAAAA,WAAW,OAAOF,CAAK,IACvBA,EAAQ,KAAK,MAAMA,CAAK,GAErBA,CACX,CACA,OAAO,QAAQD,EAAaI,EAAgB,CACxC,IAAIC,EACJ,MAAI,CAACF,EAAAA,WAAW,QAAQC,CAAI,GAAKD,EAAAA,WAAW,OAAOC,CAAI,GAAKD,EAAAA,WAAW,SAASC,CAAI,IAChFC,EAAe,KAAK,UAAUD,CAAI,GAE/BF,EAAQ,IAAIF,EAAKK,GAAgBD,CAAI,CAChD,CACA,OAAO,WAAWJ,EAAkB,CAChCE,EAAQ,OAAOF,CAAG,CACtB,CACA,OAAO,WAAWM,EAAoB,CAC7BH,EAAAA,WAAW,QAAQG,CAAG,GACvBA,EAAI,QAASC,GAAc,CACvB,KAAK,WAAWA,CAAC,CACrB,CAAC,CAET,CACA,OAAO,UAAgB,CACnB,MAAMD,EAAM,SAAS,OAAO,MAAM,GAAG,EACrC,QAASE,EAAI,EAAGA,EAAIF,EAAI,OAAQE,IAAK,CACjC,MAAMC,EAAOH,EAAIE,CAAC,EACZE,EAAMD,EAAK,QAAQ,GAAG,EACtBF,EAAIG,EAAM,GAAKD,EAAK,UAAU,EAAGC,CAAG,EAAID,EAC9C,KAAK,WAAWF,CAAC,CACrB,CACJ,CACJ"}
@@ -1,31 +0,0 @@
1
- import o from "js-cookie";
2
- import { C as s } from "./base-PQGakkrl.js";
3
- class l {
4
- static getItem(t) {
5
- let e = o.get(t);
6
- return s.isString(e) && e.indexOf('\\"') > -1 && (e = e.replace(/\\"/gi, '"')), s.isJson(e) && (e = JSON.parse(e)), e;
7
- }
8
- static setItem(t, e) {
9
- let i;
10
- return !s.isEmpty(e) && s.isJson(e) && s.isObject(e) && (i = JSON.stringify(e)), o.set(t, i || e);
11
- }
12
- static removeItem(t) {
13
- o.remove(t);
14
- }
15
- static removeList(t) {
16
- s.isEmpty(t) || t.forEach((e) => {
17
- this.removeItem(e);
18
- });
19
- }
20
- static clearAll() {
21
- const t = document.cookie.split(";");
22
- for (let e = 0; e < t.length; e++) {
23
- const i = t[e], r = i.indexOf("="), m = r > -1 ? i.substring(0, r) : i;
24
- this.removeItem(m);
25
- }
26
- }
27
- }
28
- export {
29
- l as C
30
- };
31
- //# sourceMappingURL=Tools_cookie-DKctMXdK.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tools_cookie-DKctMXdK.js","sources":["../../src/libs/Common/Tools/cookie.ts"],"sourcesContent":["import Cookies from \"js-cookie\";\nimport CommonBase from \"../base\";\nclass Cookie {\n static getItem(key: string): any {\n let value: any = Cookies.get(key);\n if (CommonBase.isString(value)) {\n if (value.indexOf(\"\\\\\\\"\") > -1) {\n value = value.replace(/\\\\\"/gi, \"\\\"\");\n }\n }\n if (CommonBase.isJson(value)) {\n value = JSON.parse(value);\n }\n return value;\n }\n static setItem(key: string, data: any): any {\n let convertValue: any;\n if (!CommonBase.isEmpty(data) && CommonBase.isJson(data) && CommonBase.isObject(data)) {\n convertValue = JSON.stringify(data);\n }\n return Cookies.set(key, convertValue || data);\n }\n static removeItem(key: string): any {\n Cookies.remove(key);\n }\n static removeList(arr: string[]): any {\n if (!CommonBase.isEmpty(arr)) {\n arr.forEach((k: string) => {\n this.removeItem(k);\n });\n }\n }\n static clearAll(): any {\n const arr = document.cookie.split(\";\");\n for (let i = 0; i < arr.length; i++) {\n const temp = arr[i];\n const inx = temp.indexOf(\"=\");\n const k = inx > -1 ? temp.substring(0, inx) : temp;\n this.removeItem(k);\n }\n }\n}\nexport default Cookie;\n"],"names":["Cookie","key","value","Cookies","CommonBase","data","convertValue","arr","k","i","temp","inx"],"mappings":";;AAEA,MAAMA,EAAO;AAAA,EACT,OAAO,QAAQC,GAAkB;AAC7B,QAAIC,IAAaC,EAAQ,IAAIF,CAAG;AAChC,WAAIG,EAAW,SAASF,CAAK,KACrBA,EAAM,QAAQ,KAAM,IAAI,OACxBA,IAAQA,EAAM,QAAQ,SAAS,GAAI,IAGvCE,EAAW,OAAOF,CAAK,MACvBA,IAAQ,KAAK,MAAMA,CAAK,IAErBA;AAAA,EACX;AAAA,EACA,OAAO,QAAQD,GAAaI,GAAgB;AACxC,QAAIC;AACJ,WAAI,CAACF,EAAW,QAAQC,CAAI,KAAKD,EAAW,OAAOC,CAAI,KAAKD,EAAW,SAASC,CAAI,MAChFC,IAAe,KAAK,UAAUD,CAAI,IAE/BF,EAAQ,IAAIF,GAAKK,KAAgBD,CAAI;AAAA,EAChD;AAAA,EACA,OAAO,WAAWJ,GAAkB;AAChC,IAAAE,EAAQ,OAAOF,CAAG;AAAA,EACtB;AAAA,EACA,OAAO,WAAWM,GAAoB;AAClC,IAAKH,EAAW,QAAQG,CAAG,KACvBA,EAAI,QAAQ,CAACC,MAAc;AACvB,WAAK,WAAWA,CAAC;AAAA,IACrB,CAAC;AAAA,EAET;AAAA,EACA,OAAO,WAAgB;AACnB,UAAMD,IAAM,SAAS,OAAO,MAAM,GAAG;AACrC,aAASE,IAAI,GAAGA,IAAIF,EAAI,QAAQE,KAAK;AACjC,YAAMC,IAAOH,EAAIE,CAAC,GACZE,IAAMD,EAAK,QAAQ,GAAG,GACtBF,IAAIG,IAAM,KAAKD,EAAK,UAAU,GAAGC,CAAG,IAAID;AAC9C,WAAK,WAAWF,CAAC;AAAA,IACrB;AAAA,EACJ;AACJ;"}
@@ -1,21 +0,0 @@
1
- class n {
2
- _fun;
3
- _time;
4
- _cb;
5
- constructor(t, s = 200) {
6
- this._cb = t, this._time = s;
7
- }
8
- stopRun() {
9
- this._fun && (clearTimeout(this._fun), this._fun = null);
10
- }
11
- run(t) {
12
- const s = t || this._cb;
13
- s && (this.stopRun(), this._fun = setTimeout(() => {
14
- s();
15
- }, this._time));
16
- }
17
- }
18
- export {
19
- n as D
20
- };
21
- //# sourceMappingURL=Tools_delayFun-CA1ktv1L.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tools_delayFun-CA1ktv1L.js","sources":["../../src/libs/Common/Tools/delayFun.ts"],"sourcesContent":["class DelayFun {\n private _fun: any;\n private _time: number;\n private _cb: any;\n constructor(cb: any, delay = 200) {\n this._cb = cb;\n this._time = delay;\n }\n stopRun() {\n if (this._fun) {\n clearTimeout(this._fun);\n this._fun = null;\n }\n }\n run(cb?: any) {\n const newCb = cb ? cb : this._cb;\n if (newCb) {\n this.stopRun();\n this._fun = setTimeout(()=>{\n newCb();\n }, this._time);\n }\n }\n}\nexport default DelayFun;"],"names":["DelayFun","cb","delay","newCb"],"mappings":"AAAA,MAAMA,EAAS;AAAA,EACH;AAAA,EACA;AAAA,EACA;AAAA,EACR,YAAYC,GAASC,IAAQ,KAAK;AAC9B,SAAK,MAAMD,GACX,KAAK,QAAQC;AAAA,EACjB;AAAA,EACA,UAAU;AACN,IAAI,KAAK,SACL,aAAa,KAAK,IAAI,GACtB,KAAK,OAAO;AAAA,EAEpB;AAAA,EACA,IAAID,GAAU;AACV,UAAME,IAAQF,KAAU,KAAK;AAC7B,IAAIE,MACA,KAAK,QAAA,GACL,KAAK,OAAO,WAAW,MAAI;AACvB,MAAAA,EAAA;AAAA,IACJ,GAAG,KAAK,KAAK;AAAA,EAErB;AACJ;"}
@@ -1,2 +0,0 @@
1
- "use strict";class i{_fun;_time;_cb;constructor(t,s=200){this._cb=t,this._time=s}stopRun(){this._fun&&(clearTimeout(this._fun),this._fun=null)}run(t){const s=t||this._cb;s&&(this.stopRun(),this._fun=setTimeout(()=>{s()},this._time))}}exports.DelayFun=i;
2
- //# sourceMappingURL=Tools_delayFun-DYTkzlXE.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tools_delayFun-DYTkzlXE.cjs","sources":["../../src/libs/Common/Tools/delayFun.ts"],"sourcesContent":["class DelayFun {\n private _fun: any;\n private _time: number;\n private _cb: any;\n constructor(cb: any, delay = 200) {\n this._cb = cb;\n this._time = delay;\n }\n stopRun() {\n if (this._fun) {\n clearTimeout(this._fun);\n this._fun = null;\n }\n }\n run(cb?: any) {\n const newCb = cb ? cb : this._cb;\n if (newCb) {\n this.stopRun();\n this._fun = setTimeout(()=>{\n newCb();\n }, this._time);\n }\n }\n}\nexport default DelayFun;"],"names":["DelayFun","cb","delay","newCb"],"mappings":"aAAA,MAAMA,CAAS,CACH,KACA,MACA,IACR,YAAYC,EAASC,EAAQ,IAAK,CAC9B,KAAK,IAAMD,EACX,KAAK,MAAQC,CACjB,CACA,SAAU,CACF,KAAK,OACL,aAAa,KAAK,IAAI,EACtB,KAAK,KAAO,KAEpB,CACA,IAAID,EAAU,CACV,MAAME,EAAQF,GAAU,KAAK,IACzBE,IACA,KAAK,QAAA,EACL,KAAK,KAAO,WAAW,IAAI,CACvBA,EAAA,CACJ,EAAG,KAAK,KAAK,EAErB,CACJ"}