ele-admin-plus 1.0.0-beta.1

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 (849) hide show
  1. package/README.md +37 -0
  2. package/es/components.d.ts +43 -0
  3. package/es/components.js +88 -0
  4. package/es/ele-app/index.d.ts +4 -0
  5. package/es/ele-app/index.js +13 -0
  6. package/es/ele-app/style/common.js +1 -0
  7. package/es/ele-app/style/common.scss +116 -0
  8. package/es/ele-app/style/css-var.scss +29 -0
  9. package/es/ele-app/style/index.js +5 -0
  10. package/es/ele-app/style/index.scss +3 -0
  11. package/es/ele-app/style/message.js +2 -0
  12. package/es/ele-app/style/message.scss +101 -0
  13. package/es/ele-app/style/scrollbar.js +1 -0
  14. package/es/ele-app/style/scrollbar.scss +80 -0
  15. package/es/ele-avatar-group/index.d.ts +70 -0
  16. package/es/ele-avatar-group/index.js +178 -0
  17. package/es/ele-avatar-group/props.d.ts +37 -0
  18. package/es/ele-avatar-group/props.js +45 -0
  19. package/es/ele-avatar-group/style/index.js +4 -0
  20. package/es/ele-avatar-group/style/index.scss +36 -0
  21. package/es/ele-avatar-group/types/index.d.ts +16 -0
  22. package/es/ele-bar-code/index.d.ts +47 -0
  23. package/es/ele-bar-code/index.js +67 -0
  24. package/es/ele-bar-code/props.d.ts +15 -0
  25. package/es/ele-bar-code/props.js +14 -0
  26. package/es/ele-bar-code/style/index.js +1 -0
  27. package/es/ele-bar-code/types/index.d.ts +4 -0
  28. package/es/ele-basic-select/components/select-tag.d.ts +24 -0
  29. package/es/ele-basic-select/components/select-tag.js +65 -0
  30. package/es/ele-basic-select/index.d.ts +19250 -0
  31. package/es/ele-basic-select/index.js +227 -0
  32. package/es/ele-basic-select/props.d.ts +39 -0
  33. package/es/ele-basic-select/props.js +60 -0
  34. package/es/ele-basic-select/style/index.js +5 -0
  35. package/es/ele-basic-select/style/index.scss +104 -0
  36. package/es/ele-basic-select/types/index.d.ts +21 -0
  37. package/es/ele-bottom-bar/index.d.ts +8 -0
  38. package/es/ele-bottom-bar/index.js +34 -0
  39. package/es/ele-bottom-bar/props.d.ts +9 -0
  40. package/es/ele-bottom-bar/props.js +9 -0
  41. package/es/ele-bottom-bar/style/css-var.scss +7 -0
  42. package/es/ele-bottom-bar/style/index.js +1 -0
  43. package/es/ele-bottom-bar/style/index.scss +25 -0
  44. package/es/ele-breadcrumb/index.d.ts +194 -0
  45. package/es/ele-breadcrumb/index.js +64 -0
  46. package/es/ele-breadcrumb/props.d.ts +19 -0
  47. package/es/ele-breadcrumb/props.js +12 -0
  48. package/es/ele-breadcrumb/style/index.js +3 -0
  49. package/es/ele-breadcrumb/style/index.scss +30 -0
  50. package/es/ele-breadcrumb/types/index.d.ts +22 -0
  51. package/es/ele-card/index.d.ts +26 -0
  52. package/es/ele-card/index.js +55 -0
  53. package/es/ele-card/props.d.ts +16 -0
  54. package/es/ele-card/props.js +20 -0
  55. package/es/ele-card/style/css-var.scss +7 -0
  56. package/es/ele-card/style/index.js +2 -0
  57. package/es/ele-card/style/index.scss +61 -0
  58. package/es/ele-config-provider/index.d.ts +18 -0
  59. package/es/ele-config-provider/index.js +49 -0
  60. package/es/ele-config-provider/keys.d.ts +8 -0
  61. package/es/ele-config-provider/keys.js +6 -0
  62. package/es/ele-config-provider/props.d.ts +13 -0
  63. package/es/ele-config-provider/props.js +15 -0
  64. package/es/ele-config-provider/style/index.js +1 -0
  65. package/es/ele-config-provider/types/index.d.ts +90 -0
  66. package/es/ele-config-provider/use-receiver.d.ts +22 -0
  67. package/es/ele-config-provider/use-receiver.js +38 -0
  68. package/es/ele-count-up/index.d.ts +36 -0
  69. package/es/ele-count-up/index.js +107 -0
  70. package/es/ele-count-up/props.d.ts +23 -0
  71. package/es/ele-count-up/props.js +22 -0
  72. package/es/ele-count-up/style/index.js +1 -0
  73. package/es/ele-cropper/components/cropper-preview.d.ts +17 -0
  74. package/es/ele-cropper/components/cropper-preview.js +74 -0
  75. package/es/ele-cropper/components/cropper-tools.d.ts +55 -0
  76. package/es/ele-cropper/components/cropper-tools.js +186 -0
  77. package/es/ele-cropper/index.d.ts +108 -0
  78. package/es/ele-cropper/index.js +216 -0
  79. package/es/ele-cropper/props.d.ts +51 -0
  80. package/es/ele-cropper/props.js +59 -0
  81. package/es/ele-cropper/style/index.js +6 -0
  82. package/es/ele-cropper/style/index.scss +98 -0
  83. package/es/ele-cropper/types/index.d.ts +69 -0
  84. package/es/ele-cropper-modal/index.d.ts +99 -0
  85. package/es/ele-cropper-modal/index.js +93 -0
  86. package/es/ele-cropper-modal/props.d.ts +52 -0
  87. package/es/ele-cropper-modal/props.js +18 -0
  88. package/es/ele-cropper-modal/style/index.js +2 -0
  89. package/es/ele-dashboard/index.d.ts +16 -0
  90. package/es/ele-dashboard/index.js +70 -0
  91. package/es/ele-dashboard/props.d.ts +12 -0
  92. package/es/ele-dashboard/props.js +13 -0
  93. package/es/ele-dashboard/style/index.js +1 -0
  94. package/es/ele-dashboard/style/index.scss +78 -0
  95. package/es/ele-dashboard/types/index.d.ts +4 -0
  96. package/es/ele-dot/index.d.ts +29 -0
  97. package/es/ele-dot/index.js +44 -0
  98. package/es/ele-dot/props.d.ts +19 -0
  99. package/es/ele-dot/props.js +21 -0
  100. package/es/ele-dot/style/index.js +1 -0
  101. package/es/ele-dot/style/index.scss +67 -0
  102. package/es/ele-dot/types/index.d.ts +4 -0
  103. package/es/ele-drawer/index.d.ts +516 -0
  104. package/es/ele-drawer/index.js +139 -0
  105. package/es/ele-drawer/props.d.ts +63 -0
  106. package/es/ele-drawer/props.js +15 -0
  107. package/es/ele-drawer/style/css-var.scss +12 -0
  108. package/es/ele-drawer/style/index.js +3 -0
  109. package/es/ele-drawer/style/index.scss +61 -0
  110. package/es/ele-edit-tag/index.d.ts +856 -0
  111. package/es/ele-edit-tag/index.js +216 -0
  112. package/es/ele-edit-tag/props.d.ts +31 -0
  113. package/es/ele-edit-tag/props.js +39 -0
  114. package/es/ele-edit-tag/style/index.js +5 -0
  115. package/es/ele-edit-tag/style/index.scss +60 -0
  116. package/es/ele-edit-tag/types/index.d.ts +8 -0
  117. package/es/ele-ellipsis/index.d.ts +58 -0
  118. package/es/ele-ellipsis/index.js +103 -0
  119. package/es/ele-ellipsis/props.d.ts +27 -0
  120. package/es/ele-ellipsis/props.js +16 -0
  121. package/es/ele-ellipsis/style/index.js +3 -0
  122. package/es/ele-ellipsis/style/index.scss +23 -0
  123. package/es/ele-ellipsis/types/index.d.ts +8 -0
  124. package/es/ele-file-list/components/file-grid-item.d.ts +24409 -0
  125. package/es/ele-file-list/components/file-grid-item.js +171 -0
  126. package/es/ele-file-list/components/file-grid.d.ts +46 -0
  127. package/es/ele-file-list/components/file-grid.js +141 -0
  128. package/es/ele-file-list/components/file-sort.d.ts +16 -0
  129. package/es/ele-file-list/components/file-sort.js +35 -0
  130. package/es/ele-file-list/components/file-table-item.d.ts +24411 -0
  131. package/es/ele-file-list/components/file-table-item.js +201 -0
  132. package/es/ele-file-list/components/file-table.d.ts +60 -0
  133. package/es/ele-file-list/components/file-table.js +220 -0
  134. package/es/ele-file-list/icons.d.ts +9 -0
  135. package/es/ele-file-list/icons.js +222 -0
  136. package/es/ele-file-list/index.d.ts +1644 -0
  137. package/es/ele-file-list/index.js +276 -0
  138. package/es/ele-file-list/props.d.ts +43 -0
  139. package/es/ele-file-list/props.js +61 -0
  140. package/es/ele-file-list/style/css-var.scss +7 -0
  141. package/es/ele-file-list/style/index.js +3 -0
  142. package/es/ele-file-list/style/index.scss +415 -0
  143. package/es/ele-file-list/types/index.d.ts +86 -0
  144. package/es/ele-file-list-tool/index.d.ts +8 -0
  145. package/es/ele-file-list-tool/index.js +31 -0
  146. package/es/ele-file-list-tool/style/index.js +1 -0
  147. package/es/ele-icon-select/components/icon-grid.d.ts +36 -0
  148. package/es/ele-icon-select/components/icon-grid.js +87 -0
  149. package/es/ele-icon-select/components/icon-popper.d.ts +47 -0
  150. package/es/ele-icon-select/components/icon-popper.js +242 -0
  151. package/es/ele-icon-select/index.d.ts +149 -0
  152. package/es/ele-icon-select/index.js +142 -0
  153. package/es/ele-icon-select/props.d.ts +73 -0
  154. package/es/ele-icon-select/props.js +96 -0
  155. package/es/ele-icon-select/style/index.js +5 -0
  156. package/es/ele-icon-select/style/index.scss +197 -0
  157. package/es/ele-icon-select/types/index.d.ts +16 -0
  158. package/es/ele-loading/index.d.ts +14 -0
  159. package/es/ele-loading/index.js +34 -0
  160. package/es/ele-loading/props.d.ts +11 -0
  161. package/es/ele-loading/props.js +13 -0
  162. package/es/ele-loading/style/index.js +1 -0
  163. package/es/ele-map-picker/components/map-view.d.ts +190 -0
  164. package/es/ele-map-picker/components/map-view.js +594 -0
  165. package/es/ele-map-picker/index.d.ts +164 -0
  166. package/es/ele-map-picker/index.js +117 -0
  167. package/es/ele-map-picker/props.d.ts +137 -0
  168. package/es/ele-map-picker/props.js +108 -0
  169. package/es/ele-map-picker/style/index.js +8 -0
  170. package/es/ele-map-picker/style/index.scss +242 -0
  171. package/es/ele-map-picker/types/index.d.ts +88 -0
  172. package/es/ele-menus/index.d.ts +247 -0
  173. package/es/ele-menus/index.js +233 -0
  174. package/es/ele-menus/props.d.ts +37 -0
  175. package/es/ele-menus/props.js +30 -0
  176. package/es/ele-menus/style/css-var.scss +44 -0
  177. package/es/ele-menus/style/index.js +6 -0
  178. package/es/ele-menus/style/index.scss +541 -0
  179. package/es/ele-menus/style/scrollbar.scss +68 -0
  180. package/es/ele-menus/types/index.d.ts +57 -0
  181. package/es/ele-modal/index.d.ts +1122 -0
  182. package/es/ele-modal/index.js +326 -0
  183. package/es/ele-modal/props.d.ts +101 -0
  184. package/es/ele-modal/props.js +61 -0
  185. package/es/ele-modal/style/css-var.scss +14 -0
  186. package/es/ele-modal/style/index.js +3 -0
  187. package/es/ele-modal/style/index.scss +244 -0
  188. package/es/ele-modal/types/index.d.ts +27 -0
  189. package/es/ele-modal/util.d.ts +73 -0
  190. package/es/ele-modal/util.js +332 -0
  191. package/es/ele-page/index.d.ts +17 -0
  192. package/es/ele-page/index.js +30 -0
  193. package/es/ele-page/props.d.ts +11 -0
  194. package/es/ele-page/props.js +13 -0
  195. package/es/ele-page/style/css-var.scss +8 -0
  196. package/es/ele-page/style/index.js +1 -0
  197. package/es/ele-page/style/index.scss +62 -0
  198. package/es/ele-pagination/index.d.ts +71 -0
  199. package/es/ele-pagination/index.js +64 -0
  200. package/es/ele-pagination/props.d.ts +37 -0
  201. package/es/ele-pagination/props.js +19 -0
  202. package/es/ele-pagination/style/index.js +2 -0
  203. package/es/ele-pagination/style/index.scss +51 -0
  204. package/es/ele-pagination/types/index.d.ts +4 -0
  205. package/es/ele-pro-layout/components/header-tool.d.ts +2 -0
  206. package/es/ele-pro-layout/components/header-tool.js +21 -0
  207. package/es/ele-pro-layout/components/pro-header.d.ts +70 -0
  208. package/es/ele-pro-layout/components/pro-header.js +188 -0
  209. package/es/ele-pro-layout/components/pro-sidebar.d.ts +53 -0
  210. package/es/ele-pro-layout/components/pro-sidebar.js +98 -0
  211. package/es/ele-pro-layout/components/pro-sidebox.d.ts +36 -0
  212. package/es/ele-pro-layout/components/pro-sidebox.js +81 -0
  213. package/es/ele-pro-layout/components/pro-tab-bar.d.ts +59 -0
  214. package/es/ele-pro-layout/components/pro-tab-bar.js +203 -0
  215. package/es/ele-pro-layout/components/sidebar-tool.d.ts +2 -0
  216. package/es/ele-pro-layout/components/sidebar-tool.js +21 -0
  217. package/es/ele-pro-layout/components/tab-dropdown.d.ts +8 -0
  218. package/es/ele-pro-layout/components/tab-dropdown.js +72 -0
  219. package/es/ele-pro-layout/index.js +670 -0
  220. package/es/ele-pro-layout/props.d.ts +159 -0
  221. package/es/ele-pro-layout/props.js +203 -0
  222. package/es/ele-pro-layout/style/collapse.scss +67 -0
  223. package/es/ele-pro-layout/style/css-var.scss +36 -0
  224. package/es/ele-pro-layout/style/header.scss +87 -0
  225. package/es/ele-pro-layout/style/index.js +9 -0
  226. package/es/ele-pro-layout/style/index.scss +12 -0
  227. package/es/ele-pro-layout/style/layout-mobile.scss +56 -0
  228. package/es/ele-pro-layout/style/layout-style.scss +139 -0
  229. package/es/ele-pro-layout/style/layout-theme.scss +87 -0
  230. package/es/ele-pro-layout/style/layout.scss +56 -0
  231. package/es/ele-pro-layout/style/sidebar.scss +180 -0
  232. package/es/ele-pro-layout/style/tabs.scss +64 -0
  233. package/es/ele-pro-layout/types/index.d.ts +215 -0
  234. package/es/ele-pro-layout/util.d.ts +99 -0
  235. package/es/ele-pro-layout/util.js +216 -0
  236. package/es/ele-pro-table/components/table-tools.d.ts +43 -0
  237. package/es/ele-pro-table/components/table-tools.js +209 -0
  238. package/es/ele-pro-table/components/table-view.d.ts +838 -0
  239. package/es/ele-pro-table/components/table-view.js +82 -0
  240. package/es/ele-pro-table/components/tool-column.d.ts +57 -0
  241. package/es/ele-pro-table/components/tool-column.js +364 -0
  242. package/es/ele-pro-table/index.d.ts +2214 -0
  243. package/es/ele-pro-table/index.js +660 -0
  244. package/es/ele-pro-table/props.d.ts +215 -0
  245. package/es/ele-pro-table/props.js +140 -0
  246. package/es/ele-pro-table/style/css-var.scss +11 -0
  247. package/es/ele-pro-table/style/index.js +17 -0
  248. package/es/ele-pro-table/style/index.scss +229 -0
  249. package/es/ele-pro-table/types/index.d.ts +278 -0
  250. package/es/ele-pro-table/util.d.ts +153 -0
  251. package/es/ele-pro-table/util.js +415 -0
  252. package/es/ele-qr-code/index.d.ts +67 -0
  253. package/es/ele-qr-code/index.js +153 -0
  254. package/es/ele-qr-code/props.d.ts +37 -0
  255. package/es/ele-qr-code/props.js +41 -0
  256. package/es/ele-qr-code/qrcodegen.d.ts +95 -0
  257. package/es/ele-qr-code/qrcodegen.js +1094 -0
  258. package/es/ele-qr-code/style/index.js +1 -0
  259. package/es/ele-qr-code/types/index.d.ts +28 -0
  260. package/es/ele-qr-code/util.d.ts +26 -0
  261. package/es/ele-qr-code/util.js +90 -0
  262. package/es/ele-qr-code-svg/index.d.ts +70 -0
  263. package/es/ele-qr-code-svg/index.js +130 -0
  264. package/es/ele-qr-code-svg/style/index.js +1 -0
  265. package/es/ele-split-panel/index.d.ts +61 -0
  266. package/es/ele-split-panel/index.js +171 -0
  267. package/es/ele-split-panel/props.d.ts +30 -0
  268. package/es/ele-split-panel/props.js +41 -0
  269. package/es/ele-split-panel/style/index.js +2 -0
  270. package/es/ele-split-panel/style/index.scss +353 -0
  271. package/es/ele-steps/index.d.ts +54 -0
  272. package/es/ele-steps/index.js +50 -0
  273. package/es/ele-steps/props.d.ts +30 -0
  274. package/es/ele-steps/props.js +14 -0
  275. package/es/ele-steps/style/index.js +3 -0
  276. package/es/ele-steps/style/index.scss +120 -0
  277. package/es/ele-steps/types/index.d.ts +11 -0
  278. package/es/ele-tab-tool/index.d.ts +11 -0
  279. package/es/ele-tab-tool/index.js +24 -0
  280. package/es/ele-tab-tool/props.d.ts +9 -0
  281. package/es/ele-tab-tool/props.js +9 -0
  282. package/es/ele-tab-tool/style/index.js +1 -0
  283. package/es/ele-tab-wrap/index.d.ts +8 -0
  284. package/es/ele-tab-wrap/index.js +31 -0
  285. package/es/ele-tab-wrap/props.d.ts +10 -0
  286. package/es/ele-tab-wrap/props.js +9 -0
  287. package/es/ele-tab-wrap/style/index.js +1 -0
  288. package/es/ele-table/index.d.ts +13 -0
  289. package/es/ele-table/index.js +30 -0
  290. package/es/ele-table/props.d.ts +10 -0
  291. package/es/ele-table/props.js +11 -0
  292. package/es/ele-table/style/css-var.scss +7 -0
  293. package/es/ele-table/style/index.js +1 -0
  294. package/es/ele-table/style/index.scss +87 -0
  295. package/es/ele-table-select/index.d.ts +159 -0
  296. package/es/ele-table-select/index.js +387 -0
  297. package/es/ele-table-select/props.d.ts +74 -0
  298. package/es/ele-table-select/props.js +97 -0
  299. package/es/ele-table-select/style/index.js +3 -0
  300. package/es/ele-table-select/style/index.scss +9 -0
  301. package/es/ele-table-select/types/index.d.ts +12 -0
  302. package/es/ele-tabs/components/tab-title.d.ts +34 -0
  303. package/es/ele-tabs/components/tab-title.js +103 -0
  304. package/es/ele-tabs/index.d.ts +420 -0
  305. package/es/ele-tabs/index.js +277 -0
  306. package/es/ele-tabs/props.d.ts +75 -0
  307. package/es/ele-tabs/props.js +36 -0
  308. package/es/ele-tabs/style/css-var.scss +35 -0
  309. package/es/ele-tabs/style/index.js +5 -0
  310. package/es/ele-tabs/style/index.scss +412 -0
  311. package/es/ele-tabs/types/index.d.ts +36 -0
  312. package/es/ele-text/index.d.ts +36 -0
  313. package/es/ele-text/index.js +63 -0
  314. package/es/ele-text/props.d.ts +21 -0
  315. package/es/ele-text/props.js +26 -0
  316. package/es/ele-text/style/css-var.scss +7 -0
  317. package/es/ele-text/style/index.js +2 -0
  318. package/es/ele-text/style/index.scss +98 -0
  319. package/es/ele-text/types/index.d.ts +13 -0
  320. package/es/ele-tool/index.d.ts +27 -0
  321. package/es/ele-tool/index.js +68 -0
  322. package/es/ele-tool/props.d.ts +13 -0
  323. package/es/ele-tool/props.js +14 -0
  324. package/es/ele-tool/style/css-var.scss +11 -0
  325. package/es/ele-tool/style/index.js +2 -0
  326. package/es/ele-tool/style/index.scss +70 -0
  327. package/es/ele-toolbar/index.d.ts +14 -0
  328. package/es/ele-toolbar/index.js +62 -0
  329. package/es/ele-toolbar/props.d.ts +12 -0
  330. package/es/ele-toolbar/props.js +13 -0
  331. package/es/ele-toolbar/style/css-var.scss +11 -0
  332. package/es/ele-toolbar/style/index.js +2 -0
  333. package/es/ele-toolbar/style/index.scss +70 -0
  334. package/es/ele-toolbar/types/index.d.ts +4 -0
  335. package/es/ele-tour/index.d.ts +20788 -0
  336. package/es/ele-tour/index.js +243 -0
  337. package/es/ele-tour/props.d.ts +29 -0
  338. package/es/ele-tour/props.js +30 -0
  339. package/es/ele-tour/style/index.js +3 -0
  340. package/es/ele-tour/style/index.scss +90 -0
  341. package/es/ele-tour/types/index.d.ts +41 -0
  342. package/es/ele-tour/util.d.ts +13 -0
  343. package/es/ele-tour/util.js +30 -0
  344. package/es/ele-upload-list/components/list-item.d.ts +38 -0
  345. package/es/ele-upload-list/components/list-item.js +151 -0
  346. package/es/ele-upload-list/index.d.ts +808 -0
  347. package/es/ele-upload-list/index.js +195 -0
  348. package/es/ele-upload-list/props.d.ts +37 -0
  349. package/es/ele-upload-list/props.js +47 -0
  350. package/es/ele-upload-list/style/index.js +6 -0
  351. package/es/ele-upload-list/style/index.scss +161 -0
  352. package/es/ele-upload-list/types/index.d.ts +38 -0
  353. package/es/ele-watermark/index.d.ts +25 -0
  354. package/es/ele-watermark/index.js +169 -0
  355. package/es/ele-watermark/props.d.ts +14 -0
  356. package/es/ele-watermark/props.js +23 -0
  357. package/es/ele-watermark/style/index.js +1 -0
  358. package/es/ele-watermark/types/index.d.ts +23 -0
  359. package/es/ele-watermark/util.d.ts +17 -0
  360. package/es/ele-watermark/util.js +30 -0
  361. package/es/ele-xg-player/index.d.ts +22 -0
  362. package/es/ele-xg-player/index.js +55 -0
  363. package/es/ele-xg-player/style/index.js +1 -0
  364. package/es/icons/ArrowDown.d.ts +2 -0
  365. package/es/icons/ArrowDown.js +31 -0
  366. package/es/icons/ArrowRight.d.ts +2 -0
  367. package/es/icons/ArrowRight.js +30 -0
  368. package/es/icons/ColumnHeightOutlined.d.ts +2 -0
  369. package/es/icons/ColumnHeightOutlined.js +23 -0
  370. package/es/icons/CompressOutlined.d.ts +2 -0
  371. package/es/icons/CompressOutlined.js +23 -0
  372. package/es/icons/ExpandOutlined.d.ts +2 -0
  373. package/es/icons/ExpandOutlined.js +23 -0
  374. package/es/icons/FullscreenExitOutlined.d.ts +2 -0
  375. package/es/icons/FullscreenExitOutlined.js +23 -0
  376. package/es/icons/FullscreenOutlined.d.ts +2 -0
  377. package/es/icons/FullscreenOutlined.js +23 -0
  378. package/es/icons/HolderOutlined.d.ts +2 -0
  379. package/es/icons/HolderOutlined.js +23 -0
  380. package/es/icons/LoadingOutlined.d.ts +2 -0
  381. package/es/icons/LoadingOutlined.js +23 -0
  382. package/es/icons/VerticalLeftOutlined.d.ts +2 -0
  383. package/es/icons/VerticalLeftOutlined.js +23 -0
  384. package/es/icons/VerticalRightOutlined.d.ts +2 -0
  385. package/es/icons/VerticalRightOutlined.js +23 -0
  386. package/es/icons/index.d.ts +11 -0
  387. package/es/icons/index.js +24 -0
  388. package/es/index.d.ts +14 -0
  389. package/es/index.js +19 -0
  390. package/es/installer.d.ts +3 -0
  391. package/es/installer.js +11 -0
  392. package/es/lang/en_US.d.ts +4 -0
  393. package/es/lang/en_US.js +59 -0
  394. package/es/lang/zh_CN.d.ts +4 -0
  395. package/es/lang/zh_CN.js +59 -0
  396. package/es/lang/zh_TW.d.ts +4 -0
  397. package/es/lang/zh_TW.js +60 -0
  398. package/es/style/index.scss +31 -0
  399. package/es/style/nprogress.scss +84 -0
  400. package/es/style/themes/dark-css-var.scss +38 -0
  401. package/es/style/themes/dark.scss +61 -0
  402. package/es/style/themes/default.scss +403 -0
  403. package/es/utils/chart-theme-dark.d.ts +373 -0
  404. package/es/utils/chart-theme-dark.js +397 -0
  405. package/es/utils/chart-theme.d.ts +368 -0
  406. package/es/utils/chart-theme.js +392 -0
  407. package/es/utils/core.d.ts +137 -0
  408. package/es/utils/core.js +235 -0
  409. package/es/utils/iframe-component.d.ts +8 -0
  410. package/es/utils/iframe-component.js +70 -0
  411. package/es/utils/license-util.d.ts +9 -0
  412. package/es/utils/license-util.js +176 -0
  413. package/es/utils/menu-util.d.ts +13 -0
  414. package/es/utils/menu-util.js +60 -0
  415. package/es/utils/message.d.ts +41 -0
  416. package/es/utils/message.js +60 -0
  417. package/es/utils/printer.d.ts +100 -0
  418. package/es/utils/printer.js +612 -0
  419. package/es/utils/resolvers.d.ts +18 -0
  420. package/es/utils/resolvers.js +37 -0
  421. package/es/utils/theme-util.d.ts +6 -0
  422. package/es/utils/theme-util.js +68 -0
  423. package/es/utils/validate.d.ts +182 -0
  424. package/es/utils/validate.js +197 -0
  425. package/lib/components.d.ts +43 -0
  426. package/lib/components.js +88 -0
  427. package/lib/ele-app/index.d.ts +4 -0
  428. package/lib/ele-app/index.js +12 -0
  429. package/lib/ele-app/style/common.js +2 -0
  430. package/lib/ele-app/style/common.scss +116 -0
  431. package/lib/ele-app/style/css-var.scss +29 -0
  432. package/lib/ele-app/style/index.js +6 -0
  433. package/lib/ele-app/style/index.scss +3 -0
  434. package/lib/ele-app/style/message.js +3 -0
  435. package/lib/ele-app/style/message.scss +101 -0
  436. package/lib/ele-app/style/scrollbar.js +2 -0
  437. package/lib/ele-app/style/scrollbar.scss +80 -0
  438. package/lib/ele-avatar-group/index.d.ts +70 -0
  439. package/lib/ele-avatar-group/index.js +177 -0
  440. package/lib/ele-avatar-group/props.d.ts +37 -0
  441. package/lib/ele-avatar-group/props.js +45 -0
  442. package/lib/ele-avatar-group/style/index.js +5 -0
  443. package/lib/ele-avatar-group/style/index.scss +36 -0
  444. package/lib/ele-avatar-group/types/index.d.ts +16 -0
  445. package/lib/ele-bar-code/index.d.ts +47 -0
  446. package/lib/ele-bar-code/index.js +66 -0
  447. package/lib/ele-bar-code/props.d.ts +15 -0
  448. package/lib/ele-bar-code/props.js +14 -0
  449. package/lib/ele-bar-code/style/index.js +2 -0
  450. package/lib/ele-bar-code/types/index.d.ts +4 -0
  451. package/lib/ele-basic-select/components/select-tag.d.ts +24 -0
  452. package/lib/ele-basic-select/components/select-tag.js +64 -0
  453. package/lib/ele-basic-select/index.d.ts +19250 -0
  454. package/lib/ele-basic-select/index.js +226 -0
  455. package/lib/ele-basic-select/props.d.ts +39 -0
  456. package/lib/ele-basic-select/props.js +60 -0
  457. package/lib/ele-basic-select/style/index.js +6 -0
  458. package/lib/ele-basic-select/style/index.scss +104 -0
  459. package/lib/ele-basic-select/types/index.d.ts +21 -0
  460. package/lib/ele-bottom-bar/index.d.ts +8 -0
  461. package/lib/ele-bottom-bar/index.js +33 -0
  462. package/lib/ele-bottom-bar/props.d.ts +9 -0
  463. package/lib/ele-bottom-bar/props.js +9 -0
  464. package/lib/ele-bottom-bar/style/css-var.scss +7 -0
  465. package/lib/ele-bottom-bar/style/index.js +2 -0
  466. package/lib/ele-bottom-bar/style/index.scss +25 -0
  467. package/lib/ele-breadcrumb/index.d.ts +194 -0
  468. package/lib/ele-breadcrumb/index.js +63 -0
  469. package/lib/ele-breadcrumb/props.d.ts +19 -0
  470. package/lib/ele-breadcrumb/props.js +12 -0
  471. package/lib/ele-breadcrumb/style/index.js +4 -0
  472. package/lib/ele-breadcrumb/style/index.scss +30 -0
  473. package/lib/ele-breadcrumb/types/index.d.ts +22 -0
  474. package/lib/ele-card/index.d.ts +26 -0
  475. package/lib/ele-card/index.js +54 -0
  476. package/lib/ele-card/props.d.ts +16 -0
  477. package/lib/ele-card/props.js +20 -0
  478. package/lib/ele-card/style/css-var.scss +7 -0
  479. package/lib/ele-card/style/index.js +3 -0
  480. package/lib/ele-card/style/index.scss +61 -0
  481. package/lib/ele-config-provider/index.d.ts +18 -0
  482. package/lib/ele-config-provider/index.js +48 -0
  483. package/lib/ele-config-provider/keys.d.ts +8 -0
  484. package/lib/ele-config-provider/keys.js +6 -0
  485. package/lib/ele-config-provider/props.d.ts +13 -0
  486. package/lib/ele-config-provider/props.js +15 -0
  487. package/lib/ele-config-provider/style/index.js +2 -0
  488. package/lib/ele-config-provider/types/index.d.ts +90 -0
  489. package/lib/ele-config-provider/use-receiver.d.ts +22 -0
  490. package/lib/ele-config-provider/use-receiver.js +38 -0
  491. package/lib/ele-count-up/index.d.ts +36 -0
  492. package/lib/ele-count-up/index.js +106 -0
  493. package/lib/ele-count-up/props.d.ts +23 -0
  494. package/lib/ele-count-up/props.js +22 -0
  495. package/lib/ele-count-up/style/index.js +2 -0
  496. package/lib/ele-cropper/components/cropper-preview.d.ts +17 -0
  497. package/lib/ele-cropper/components/cropper-preview.js +73 -0
  498. package/lib/ele-cropper/components/cropper-tools.d.ts +55 -0
  499. package/lib/ele-cropper/components/cropper-tools.js +185 -0
  500. package/lib/ele-cropper/index.d.ts +108 -0
  501. package/lib/ele-cropper/index.js +215 -0
  502. package/lib/ele-cropper/props.d.ts +51 -0
  503. package/lib/ele-cropper/props.js +59 -0
  504. package/lib/ele-cropper/style/index.js +7 -0
  505. package/lib/ele-cropper/style/index.scss +98 -0
  506. package/lib/ele-cropper/types/index.d.ts +69 -0
  507. package/lib/ele-cropper-modal/index.d.ts +99 -0
  508. package/lib/ele-cropper-modal/index.js +92 -0
  509. package/lib/ele-cropper-modal/props.d.ts +52 -0
  510. package/lib/ele-cropper-modal/props.js +18 -0
  511. package/lib/ele-cropper-modal/style/index.js +3 -0
  512. package/lib/ele-dashboard/index.d.ts +16 -0
  513. package/lib/ele-dashboard/index.js +69 -0
  514. package/lib/ele-dashboard/props.d.ts +12 -0
  515. package/lib/ele-dashboard/props.js +13 -0
  516. package/lib/ele-dashboard/style/index.js +2 -0
  517. package/lib/ele-dashboard/style/index.scss +78 -0
  518. package/lib/ele-dashboard/types/index.d.ts +4 -0
  519. package/lib/ele-dot/index.d.ts +29 -0
  520. package/lib/ele-dot/index.js +43 -0
  521. package/lib/ele-dot/props.d.ts +19 -0
  522. package/lib/ele-dot/props.js +21 -0
  523. package/lib/ele-dot/style/index.js +2 -0
  524. package/lib/ele-dot/style/index.scss +67 -0
  525. package/lib/ele-dot/types/index.d.ts +4 -0
  526. package/lib/ele-drawer/index.d.ts +516 -0
  527. package/lib/ele-drawer/index.js +138 -0
  528. package/lib/ele-drawer/props.d.ts +63 -0
  529. package/lib/ele-drawer/props.js +15 -0
  530. package/lib/ele-drawer/style/css-var.scss +12 -0
  531. package/lib/ele-drawer/style/index.js +4 -0
  532. package/lib/ele-drawer/style/index.scss +61 -0
  533. package/lib/ele-edit-tag/index.d.ts +856 -0
  534. package/lib/ele-edit-tag/index.js +215 -0
  535. package/lib/ele-edit-tag/props.d.ts +31 -0
  536. package/lib/ele-edit-tag/props.js +39 -0
  537. package/lib/ele-edit-tag/style/index.js +6 -0
  538. package/lib/ele-edit-tag/style/index.scss +60 -0
  539. package/lib/ele-edit-tag/types/index.d.ts +8 -0
  540. package/lib/ele-ellipsis/index.d.ts +58 -0
  541. package/lib/ele-ellipsis/index.js +102 -0
  542. package/lib/ele-ellipsis/props.d.ts +27 -0
  543. package/lib/ele-ellipsis/props.js +16 -0
  544. package/lib/ele-ellipsis/style/index.js +4 -0
  545. package/lib/ele-ellipsis/style/index.scss +23 -0
  546. package/lib/ele-ellipsis/types/index.d.ts +8 -0
  547. package/lib/ele-file-list/components/file-grid-item.d.ts +24409 -0
  548. package/lib/ele-file-list/components/file-grid-item.js +170 -0
  549. package/lib/ele-file-list/components/file-grid.d.ts +46 -0
  550. package/lib/ele-file-list/components/file-grid.js +140 -0
  551. package/lib/ele-file-list/components/file-sort.d.ts +16 -0
  552. package/lib/ele-file-list/components/file-sort.js +34 -0
  553. package/lib/ele-file-list/components/file-table-item.d.ts +24411 -0
  554. package/lib/ele-file-list/components/file-table-item.js +200 -0
  555. package/lib/ele-file-list/components/file-table.d.ts +60 -0
  556. package/lib/ele-file-list/components/file-table.js +219 -0
  557. package/lib/ele-file-list/icons.d.ts +9 -0
  558. package/lib/ele-file-list/icons.js +222 -0
  559. package/lib/ele-file-list/index.d.ts +1644 -0
  560. package/lib/ele-file-list/index.js +275 -0
  561. package/lib/ele-file-list/props.d.ts +43 -0
  562. package/lib/ele-file-list/props.js +61 -0
  563. package/lib/ele-file-list/style/css-var.scss +7 -0
  564. package/lib/ele-file-list/style/index.js +4 -0
  565. package/lib/ele-file-list/style/index.scss +415 -0
  566. package/lib/ele-file-list/types/index.d.ts +86 -0
  567. package/lib/ele-file-list-tool/index.d.ts +8 -0
  568. package/lib/ele-file-list-tool/index.js +30 -0
  569. package/lib/ele-file-list-tool/style/index.js +2 -0
  570. package/lib/ele-icon-select/components/icon-grid.d.ts +36 -0
  571. package/lib/ele-icon-select/components/icon-grid.js +86 -0
  572. package/lib/ele-icon-select/components/icon-popper.d.ts +47 -0
  573. package/lib/ele-icon-select/components/icon-popper.js +241 -0
  574. package/lib/ele-icon-select/index.d.ts +149 -0
  575. package/lib/ele-icon-select/index.js +141 -0
  576. package/lib/ele-icon-select/props.d.ts +73 -0
  577. package/lib/ele-icon-select/props.js +96 -0
  578. package/lib/ele-icon-select/style/index.js +6 -0
  579. package/lib/ele-icon-select/style/index.scss +197 -0
  580. package/lib/ele-icon-select/types/index.d.ts +16 -0
  581. package/lib/ele-loading/index.d.ts +14 -0
  582. package/lib/ele-loading/index.js +33 -0
  583. package/lib/ele-loading/props.d.ts +11 -0
  584. package/lib/ele-loading/props.js +13 -0
  585. package/lib/ele-loading/style/index.js +2 -0
  586. package/lib/ele-map-picker/components/map-view.d.ts +190 -0
  587. package/lib/ele-map-picker/components/map-view.js +593 -0
  588. package/lib/ele-map-picker/index.d.ts +164 -0
  589. package/lib/ele-map-picker/index.js +116 -0
  590. package/lib/ele-map-picker/props.d.ts +137 -0
  591. package/lib/ele-map-picker/props.js +108 -0
  592. package/lib/ele-map-picker/style/index.js +9 -0
  593. package/lib/ele-map-picker/style/index.scss +242 -0
  594. package/lib/ele-map-picker/types/index.d.ts +88 -0
  595. package/lib/ele-menus/index.d.ts +247 -0
  596. package/lib/ele-menus/index.js +232 -0
  597. package/lib/ele-menus/props.d.ts +37 -0
  598. package/lib/ele-menus/props.js +30 -0
  599. package/lib/ele-menus/style/css-var.scss +44 -0
  600. package/lib/ele-menus/style/index.js +7 -0
  601. package/lib/ele-menus/style/index.scss +541 -0
  602. package/lib/ele-menus/style/scrollbar.scss +68 -0
  603. package/lib/ele-menus/types/index.d.ts +57 -0
  604. package/lib/ele-modal/index.d.ts +1122 -0
  605. package/lib/ele-modal/index.js +325 -0
  606. package/lib/ele-modal/props.d.ts +101 -0
  607. package/lib/ele-modal/props.js +61 -0
  608. package/lib/ele-modal/style/css-var.scss +14 -0
  609. package/lib/ele-modal/style/index.js +4 -0
  610. package/lib/ele-modal/style/index.scss +244 -0
  611. package/lib/ele-modal/types/index.d.ts +27 -0
  612. package/lib/ele-modal/util.d.ts +73 -0
  613. package/lib/ele-modal/util.js +332 -0
  614. package/lib/ele-page/index.d.ts +17 -0
  615. package/lib/ele-page/index.js +29 -0
  616. package/lib/ele-page/props.d.ts +11 -0
  617. package/lib/ele-page/props.js +13 -0
  618. package/lib/ele-page/style/css-var.scss +8 -0
  619. package/lib/ele-page/style/index.js +2 -0
  620. package/lib/ele-page/style/index.scss +62 -0
  621. package/lib/ele-pagination/index.d.ts +71 -0
  622. package/lib/ele-pagination/index.js +63 -0
  623. package/lib/ele-pagination/props.d.ts +37 -0
  624. package/lib/ele-pagination/props.js +19 -0
  625. package/lib/ele-pagination/style/index.js +3 -0
  626. package/lib/ele-pagination/style/index.scss +51 -0
  627. package/lib/ele-pagination/types/index.d.ts +4 -0
  628. package/lib/ele-pro-layout/components/header-tool.d.ts +2 -0
  629. package/lib/ele-pro-layout/components/header-tool.js +20 -0
  630. package/lib/ele-pro-layout/components/pro-header.d.ts +70 -0
  631. package/lib/ele-pro-layout/components/pro-header.js +187 -0
  632. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +53 -0
  633. package/lib/ele-pro-layout/components/pro-sidebar.js +97 -0
  634. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +36 -0
  635. package/lib/ele-pro-layout/components/pro-sidebox.js +80 -0
  636. package/lib/ele-pro-layout/components/pro-tab-bar.d.ts +59 -0
  637. package/lib/ele-pro-layout/components/pro-tab-bar.js +202 -0
  638. package/lib/ele-pro-layout/components/sidebar-tool.d.ts +2 -0
  639. package/lib/ele-pro-layout/components/sidebar-tool.js +20 -0
  640. package/lib/ele-pro-layout/components/tab-dropdown.d.ts +8 -0
  641. package/lib/ele-pro-layout/components/tab-dropdown.js +71 -0
  642. package/lib/ele-pro-layout/index.js +669 -0
  643. package/lib/ele-pro-layout/props.d.ts +159 -0
  644. package/lib/ele-pro-layout/props.js +203 -0
  645. package/lib/ele-pro-layout/style/collapse.scss +67 -0
  646. package/lib/ele-pro-layout/style/css-var.scss +36 -0
  647. package/lib/ele-pro-layout/style/header.scss +87 -0
  648. package/lib/ele-pro-layout/style/index.js +10 -0
  649. package/lib/ele-pro-layout/style/index.scss +12 -0
  650. package/lib/ele-pro-layout/style/layout-mobile.scss +56 -0
  651. package/lib/ele-pro-layout/style/layout-style.scss +139 -0
  652. package/lib/ele-pro-layout/style/layout-theme.scss +87 -0
  653. package/lib/ele-pro-layout/style/layout.scss +56 -0
  654. package/lib/ele-pro-layout/style/sidebar.scss +180 -0
  655. package/lib/ele-pro-layout/style/tabs.scss +64 -0
  656. package/lib/ele-pro-layout/types/index.d.ts +215 -0
  657. package/lib/ele-pro-layout/util.d.ts +99 -0
  658. package/lib/ele-pro-layout/util.js +216 -0
  659. package/lib/ele-pro-table/components/table-tools.d.ts +43 -0
  660. package/lib/ele-pro-table/components/table-tools.js +208 -0
  661. package/lib/ele-pro-table/components/table-view.d.ts +838 -0
  662. package/lib/ele-pro-table/components/table-view.js +81 -0
  663. package/lib/ele-pro-table/components/tool-column.d.ts +57 -0
  664. package/lib/ele-pro-table/components/tool-column.js +363 -0
  665. package/lib/ele-pro-table/index.d.ts +2214 -0
  666. package/lib/ele-pro-table/index.js +659 -0
  667. package/lib/ele-pro-table/props.d.ts +215 -0
  668. package/lib/ele-pro-table/props.js +140 -0
  669. package/lib/ele-pro-table/style/css-var.scss +11 -0
  670. package/lib/ele-pro-table/style/index.js +18 -0
  671. package/lib/ele-pro-table/style/index.scss +229 -0
  672. package/lib/ele-pro-table/types/index.d.ts +278 -0
  673. package/lib/ele-pro-table/util.d.ts +153 -0
  674. package/lib/ele-pro-table/util.js +415 -0
  675. package/lib/ele-qr-code/index.d.ts +67 -0
  676. package/lib/ele-qr-code/index.js +152 -0
  677. package/lib/ele-qr-code/props.d.ts +37 -0
  678. package/lib/ele-qr-code/props.js +41 -0
  679. package/lib/ele-qr-code/qrcodegen.d.ts +95 -0
  680. package/lib/ele-qr-code/qrcodegen.js +1093 -0
  681. package/lib/ele-qr-code/style/index.js +2 -0
  682. package/lib/ele-qr-code/types/index.d.ts +28 -0
  683. package/lib/ele-qr-code/util.d.ts +26 -0
  684. package/lib/ele-qr-code/util.js +90 -0
  685. package/lib/ele-qr-code-svg/index.d.ts +70 -0
  686. package/lib/ele-qr-code-svg/index.js +129 -0
  687. package/lib/ele-qr-code-svg/style/index.js +2 -0
  688. package/lib/ele-split-panel/index.d.ts +61 -0
  689. package/lib/ele-split-panel/index.js +170 -0
  690. package/lib/ele-split-panel/props.d.ts +30 -0
  691. package/lib/ele-split-panel/props.js +41 -0
  692. package/lib/ele-split-panel/style/index.js +3 -0
  693. package/lib/ele-split-panel/style/index.scss +353 -0
  694. package/lib/ele-steps/index.d.ts +54 -0
  695. package/lib/ele-steps/index.js +49 -0
  696. package/lib/ele-steps/props.d.ts +30 -0
  697. package/lib/ele-steps/props.js +14 -0
  698. package/lib/ele-steps/style/index.js +4 -0
  699. package/lib/ele-steps/style/index.scss +120 -0
  700. package/lib/ele-steps/types/index.d.ts +11 -0
  701. package/lib/ele-tab-tool/index.d.ts +11 -0
  702. package/lib/ele-tab-tool/index.js +23 -0
  703. package/lib/ele-tab-tool/props.d.ts +9 -0
  704. package/lib/ele-tab-tool/props.js +9 -0
  705. package/lib/ele-tab-tool/style/index.js +2 -0
  706. package/lib/ele-tab-wrap/index.d.ts +8 -0
  707. package/lib/ele-tab-wrap/index.js +30 -0
  708. package/lib/ele-tab-wrap/props.d.ts +10 -0
  709. package/lib/ele-tab-wrap/props.js +9 -0
  710. package/lib/ele-tab-wrap/style/index.js +2 -0
  711. package/lib/ele-table/index.d.ts +13 -0
  712. package/lib/ele-table/index.js +29 -0
  713. package/lib/ele-table/props.d.ts +10 -0
  714. package/lib/ele-table/props.js +11 -0
  715. package/lib/ele-table/style/css-var.scss +7 -0
  716. package/lib/ele-table/style/index.js +2 -0
  717. package/lib/ele-table/style/index.scss +87 -0
  718. package/lib/ele-table-select/index.d.ts +159 -0
  719. package/lib/ele-table-select/index.js +386 -0
  720. package/lib/ele-table-select/props.d.ts +74 -0
  721. package/lib/ele-table-select/props.js +97 -0
  722. package/lib/ele-table-select/style/index.js +4 -0
  723. package/lib/ele-table-select/style/index.scss +9 -0
  724. package/lib/ele-table-select/types/index.d.ts +12 -0
  725. package/lib/ele-tabs/components/tab-title.d.ts +34 -0
  726. package/lib/ele-tabs/components/tab-title.js +102 -0
  727. package/lib/ele-tabs/index.d.ts +420 -0
  728. package/lib/ele-tabs/index.js +276 -0
  729. package/lib/ele-tabs/props.d.ts +75 -0
  730. package/lib/ele-tabs/props.js +36 -0
  731. package/lib/ele-tabs/style/css-var.scss +35 -0
  732. package/lib/ele-tabs/style/index.js +6 -0
  733. package/lib/ele-tabs/style/index.scss +412 -0
  734. package/lib/ele-tabs/types/index.d.ts +36 -0
  735. package/lib/ele-text/index.d.ts +36 -0
  736. package/lib/ele-text/index.js +62 -0
  737. package/lib/ele-text/props.d.ts +21 -0
  738. package/lib/ele-text/props.js +26 -0
  739. package/lib/ele-text/style/css-var.scss +7 -0
  740. package/lib/ele-text/style/index.js +3 -0
  741. package/lib/ele-text/style/index.scss +98 -0
  742. package/lib/ele-text/types/index.d.ts +13 -0
  743. package/lib/ele-tool/index.d.ts +27 -0
  744. package/lib/ele-tool/index.js +67 -0
  745. package/lib/ele-tool/props.d.ts +13 -0
  746. package/lib/ele-tool/props.js +14 -0
  747. package/lib/ele-tool/style/css-var.scss +11 -0
  748. package/lib/ele-tool/style/index.js +3 -0
  749. package/lib/ele-tool/style/index.scss +70 -0
  750. package/lib/ele-toolbar/index.d.ts +14 -0
  751. package/lib/ele-toolbar/index.js +61 -0
  752. package/lib/ele-toolbar/props.d.ts +12 -0
  753. package/lib/ele-toolbar/props.js +13 -0
  754. package/lib/ele-toolbar/style/css-var.scss +11 -0
  755. package/lib/ele-toolbar/style/index.js +3 -0
  756. package/lib/ele-toolbar/style/index.scss +70 -0
  757. package/lib/ele-toolbar/types/index.d.ts +4 -0
  758. package/lib/ele-tour/index.d.ts +20788 -0
  759. package/lib/ele-tour/index.js +242 -0
  760. package/lib/ele-tour/props.d.ts +29 -0
  761. package/lib/ele-tour/props.js +30 -0
  762. package/lib/ele-tour/style/index.js +4 -0
  763. package/lib/ele-tour/style/index.scss +90 -0
  764. package/lib/ele-tour/types/index.d.ts +41 -0
  765. package/lib/ele-tour/util.d.ts +13 -0
  766. package/lib/ele-tour/util.js +30 -0
  767. package/lib/ele-upload-list/components/list-item.d.ts +38 -0
  768. package/lib/ele-upload-list/components/list-item.js +150 -0
  769. package/lib/ele-upload-list/index.d.ts +808 -0
  770. package/lib/ele-upload-list/index.js +194 -0
  771. package/lib/ele-upload-list/props.d.ts +37 -0
  772. package/lib/ele-upload-list/props.js +47 -0
  773. package/lib/ele-upload-list/style/index.js +7 -0
  774. package/lib/ele-upload-list/style/index.scss +161 -0
  775. package/lib/ele-upload-list/types/index.d.ts +38 -0
  776. package/lib/ele-watermark/index.d.ts +25 -0
  777. package/lib/ele-watermark/index.js +168 -0
  778. package/lib/ele-watermark/props.d.ts +14 -0
  779. package/lib/ele-watermark/props.js +23 -0
  780. package/lib/ele-watermark/style/index.js +2 -0
  781. package/lib/ele-watermark/types/index.d.ts +23 -0
  782. package/lib/ele-watermark/util.d.ts +17 -0
  783. package/lib/ele-watermark/util.js +30 -0
  784. package/lib/ele-xg-player/index.d.ts +22 -0
  785. package/lib/ele-xg-player/index.js +54 -0
  786. package/lib/ele-xg-player/style/index.js +2 -0
  787. package/lib/icons/ArrowDown.d.ts +2 -0
  788. package/lib/icons/ArrowDown.js +30 -0
  789. package/lib/icons/ArrowRight.d.ts +2 -0
  790. package/lib/icons/ArrowRight.js +29 -0
  791. package/lib/icons/ColumnHeightOutlined.d.ts +2 -0
  792. package/lib/icons/ColumnHeightOutlined.js +22 -0
  793. package/lib/icons/CompressOutlined.d.ts +2 -0
  794. package/lib/icons/CompressOutlined.js +22 -0
  795. package/lib/icons/ExpandOutlined.d.ts +2 -0
  796. package/lib/icons/ExpandOutlined.js +22 -0
  797. package/lib/icons/FullscreenExitOutlined.d.ts +2 -0
  798. package/lib/icons/FullscreenExitOutlined.js +22 -0
  799. package/lib/icons/FullscreenOutlined.d.ts +2 -0
  800. package/lib/icons/FullscreenOutlined.js +22 -0
  801. package/lib/icons/HolderOutlined.d.ts +2 -0
  802. package/lib/icons/HolderOutlined.js +22 -0
  803. package/lib/icons/LoadingOutlined.d.ts +2 -0
  804. package/lib/icons/LoadingOutlined.js +22 -0
  805. package/lib/icons/VerticalLeftOutlined.d.ts +2 -0
  806. package/lib/icons/VerticalLeftOutlined.js +22 -0
  807. package/lib/icons/VerticalRightOutlined.d.ts +2 -0
  808. package/lib/icons/VerticalRightOutlined.js +22 -0
  809. package/lib/icons/index.d.ts +11 -0
  810. package/lib/icons/index.js +24 -0
  811. package/lib/index.d.ts +14 -0
  812. package/lib/index.js +85 -0
  813. package/lib/installer.d.ts +3 -0
  814. package/lib/installer.js +28 -0
  815. package/lib/lang/en_US.d.ts +4 -0
  816. package/lib/lang/en_US.js +58 -0
  817. package/lib/lang/zh_CN.d.ts +4 -0
  818. package/lib/lang/zh_CN.js +58 -0
  819. package/lib/lang/zh_TW.d.ts +4 -0
  820. package/lib/lang/zh_TW.js +59 -0
  821. package/lib/style/index.scss +31 -0
  822. package/lib/style/nprogress.scss +84 -0
  823. package/lib/style/themes/dark-css-var.scss +38 -0
  824. package/lib/style/themes/dark.scss +61 -0
  825. package/lib/style/themes/default.scss +403 -0
  826. package/lib/utils/chart-theme-dark.d.ts +373 -0
  827. package/lib/utils/chart-theme-dark.js +397 -0
  828. package/lib/utils/chart-theme.d.ts +368 -0
  829. package/lib/utils/chart-theme.js +392 -0
  830. package/lib/utils/core.d.ts +137 -0
  831. package/lib/utils/core.js +235 -0
  832. package/lib/utils/iframe-component.d.ts +8 -0
  833. package/lib/utils/iframe-component.js +70 -0
  834. package/lib/utils/license-util.d.ts +9 -0
  835. package/lib/utils/license-util.js +176 -0
  836. package/lib/utils/menu-util.d.ts +13 -0
  837. package/lib/utils/menu-util.js +60 -0
  838. package/lib/utils/message.d.ts +41 -0
  839. package/lib/utils/message.js +60 -0
  840. package/lib/utils/printer.d.ts +100 -0
  841. package/lib/utils/printer.js +612 -0
  842. package/lib/utils/resolvers.d.ts +18 -0
  843. package/lib/utils/resolvers.js +37 -0
  844. package/lib/utils/theme-util.d.ts +6 -0
  845. package/lib/utils/theme-util.js +68 -0
  846. package/lib/utils/validate.d.ts +182 -0
  847. package/lib/utils/validate.js +197 -0
  848. package/package.json +93 -0
  849. package/typings/global.d.ts +50 -0
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ function toTree(option) {
4
+ const data = option.data;
5
+ const idField = option.idField || "id";
6
+ const parentIdField = option.parentIdField || "parentId";
7
+ const childrenField = option.childrenField || "children";
8
+ const parentIdIsNull = option.parentId == null;
9
+ const parentId = parentIdIsNull ? [] : option.parentId;
10
+ const addParentIds = option.addParentIds;
11
+ const parentIdsField = option.parentIdsField || "parentIds";
12
+ const parentIds = option.parentIds ?? [];
13
+ if (data == null) {
14
+ return [];
15
+ }
16
+ if (parentIdIsNull) {
17
+ data.forEach((d) => {
18
+ if (!data.some((t) => d[parentIdField] == t[idField]) && !parentId.includes(d[parentIdField])) {
19
+ parentId.push(d[parentIdField]);
20
+ }
21
+ });
22
+ }
23
+ const result = [];
24
+ data.forEach((d) => {
25
+ if (d[idField] == d[parentIdField]) {
26
+ throw new Error(
27
+ [
28
+ "data error: {",
29
+ idField + ": ",
30
+ JSON.stringify(d[idField]),
31
+ ", " + parentIdField + ": ",
32
+ JSON.stringify(d[parentIdField]),
33
+ "}"
34
+ ].join("")
35
+ );
36
+ }
37
+ if (Array.isArray(parentId) ? parentId.includes(d[parentIdField]) : d[parentIdField] == parentId) {
38
+ const t = { ...d };
39
+ const children = toTree({
40
+ data,
41
+ idField,
42
+ parentIdField,
43
+ childrenField,
44
+ parentId: d[idField],
45
+ addParentIds,
46
+ parentIdsField,
47
+ parentIds: [...parentIds, d[idField]]
48
+ });
49
+ if (children.length > 0) {
50
+ t[childrenField] = children;
51
+ }
52
+ if (addParentIds) {
53
+ t[parentIdsField] = parentIds;
54
+ }
55
+ result.push(t);
56
+ }
57
+ });
58
+ return result;
59
+ }
60
+ function eachTree(data, callback, childrenField = "children", parent) {
61
+ if (data) {
62
+ data.forEach((d, i) => {
63
+ var _a;
64
+ if (callback && callback(d, i, parent) !== false && ((_a = d[childrenField]) == null ? void 0 : _a.length)) {
65
+ eachTree(d[childrenField], callback, childrenField, d);
66
+ }
67
+ });
68
+ }
69
+ }
70
+ function mapTree(data, formatter, childrenField = "children", resultChildrenField = "children", parent) {
71
+ const result = [];
72
+ data == null ? void 0 : data.forEach((d, i) => {
73
+ var _a;
74
+ const item = formatter(d, i, parent);
75
+ if (item) {
76
+ if ((_a = d[childrenField]) == null ? void 0 : _a.length) {
77
+ item[resultChildrenField] = mapTree(
78
+ d[childrenField],
79
+ formatter,
80
+ childrenField,
81
+ resultChildrenField,
82
+ item
83
+ );
84
+ }
85
+ result.push(item);
86
+ }
87
+ });
88
+ return result;
89
+ }
90
+ function uuid(length = 32, radix) {
91
+ const str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
92
+ let result = "";
93
+ for (let i = 0; i < length; i++) {
94
+ result += str.charAt(Math.floor(Math.random() * (radix || str.length)));
95
+ }
96
+ return result;
97
+ }
98
+ function random(m, n) {
99
+ return Math.floor(Math.random() * (m - n) + n);
100
+ }
101
+ function formatNumber(num) {
102
+ return String(num ?? "").replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, "$1,");
103
+ }
104
+ function assignObject(target, source, excludes) {
105
+ Object.keys(target).forEach((key) => {
106
+ if (!(excludes == null ? void 0 : excludes.includes(key))) {
107
+ target[key] = source[key];
108
+ }
109
+ });
110
+ return target;
111
+ }
112
+ function bd09ToGcj02(point) {
113
+ const x_pi = 3.141592653589793 * 3e3 / 180;
114
+ const x = point.lng - 65e-4;
115
+ const y = point.lat - 6e-3;
116
+ const z = Math.sqrt(x * x + y * y) - 2e-5 * Math.sin(y * x_pi);
117
+ const theta = Math.atan2(y, x) - 3e-6 * Math.cos(x * x_pi);
118
+ return {
119
+ lng: z * Math.cos(theta),
120
+ lat: z * Math.sin(theta)
121
+ };
122
+ }
123
+ function gcj02ToBd09(point) {
124
+ const x_pi = 3.141592653589793 * 3e3 / 180;
125
+ const x = point.lng;
126
+ const y = point.lat;
127
+ const z = Math.sqrt(x * x + y * y) + 2e-5 * Math.sin(y * x_pi);
128
+ const theta = Math.atan2(y, x) + 3e-6 * Math.cos(x * x_pi);
129
+ return {
130
+ lng: z * Math.cos(theta) + 65e-4,
131
+ lat: z * Math.sin(theta) + 6e-3
132
+ };
133
+ }
134
+ function requestFullscreen(el) {
135
+ if (el == null) {
136
+ el = document.documentElement;
137
+ }
138
+ const func = el.requestFullscreen || el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen;
139
+ if (!func) {
140
+ throw new Error("您的浏览器不支持全屏模式");
141
+ }
142
+ func.call(el);
143
+ }
144
+ function exitFullscreen() {
145
+ const func = document.exitFullscreen || document.exitFullScreen || document.webkitCancelFullScreen || document.mozCancelFullScreen || document.msExitFullscreen;
146
+ func && func.call(document);
147
+ }
148
+ function checkFullscreen() {
149
+ return !!(document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement);
150
+ }
151
+ function screenWidth() {
152
+ return document.documentElement.clientWidth || document.body.clientWidth;
153
+ }
154
+ function screenHeight() {
155
+ return document.documentElement.clientHeight || document.body.clientHeight;
156
+ }
157
+ const contentSelector = ".ele-admin-body > .ele-admin-content";
158
+ function contentWidth() {
159
+ const el = document.querySelector(contentSelector);
160
+ return (el == null ? void 0 : el.clientWidth) ?? screenWidth();
161
+ }
162
+ function contentHeight() {
163
+ const el = document.querySelector(contentSelector);
164
+ return (el == null ? void 0 : el.clientHeight) ?? screenHeight();
165
+ }
166
+ function isExternalLink(url) {
167
+ return !!(url && (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("//")));
168
+ }
169
+ function debounce(func, wait) {
170
+ let timer = void 0;
171
+ const debounced = function(...args) {
172
+ if (timer) {
173
+ clearTimeout(timer);
174
+ }
175
+ timer = setTimeout(() => {
176
+ func.apply(this, args);
177
+ timer = void 0;
178
+ }, wait);
179
+ };
180
+ return debounced;
181
+ }
182
+ function throttle(func, wait) {
183
+ let timer = void 0;
184
+ const debounced = function(...args) {
185
+ if (!timer) {
186
+ func.apply(this, args);
187
+ timer = setTimeout(() => {
188
+ timer = void 0;
189
+ }, wait);
190
+ }
191
+ };
192
+ return debounced;
193
+ }
194
+ function omit(obj, ...fields) {
195
+ const result = Object.assign({}, obj);
196
+ if (obj) {
197
+ for (let i = 0; i < fields.length; i++) {
198
+ const key = fields[i];
199
+ delete result[key];
200
+ }
201
+ }
202
+ return result;
203
+ }
204
+ function pick(obj, ...fields) {
205
+ const result = {};
206
+ if (obj) {
207
+ for (let i = 0; i < fields.length; i++) {
208
+ const key = fields[i];
209
+ result[key] = obj[key];
210
+ }
211
+ }
212
+ return result;
213
+ }
214
+ exports.assignObject = assignObject;
215
+ exports.bd09ToGcj02 = bd09ToGcj02;
216
+ exports.checkFullscreen = checkFullscreen;
217
+ exports.contentHeight = contentHeight;
218
+ exports.contentSelector = contentSelector;
219
+ exports.contentWidth = contentWidth;
220
+ exports.debounce = debounce;
221
+ exports.eachTree = eachTree;
222
+ exports.exitFullscreen = exitFullscreen;
223
+ exports.formatNumber = formatNumber;
224
+ exports.gcj02ToBd09 = gcj02ToBd09;
225
+ exports.isExternalLink = isExternalLink;
226
+ exports.mapTree = mapTree;
227
+ exports.omit = omit;
228
+ exports.pick = pick;
229
+ exports.random = random;
230
+ exports.requestFullscreen = requestFullscreen;
231
+ exports.screenHeight = screenHeight;
232
+ exports.screenWidth = screenWidth;
233
+ exports.throttle = throttle;
234
+ exports.toTree = toTree;
235
+ exports.uuid = uuid;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 创建 iframe 组件
3
+ * @param name 组件名称
4
+ * @param url 链接地址
5
+ */
6
+ export declare function createIframe(name: string | undefined, url: string): import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
7
+ [key: string]: any;
8
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const useReceiver = require("../ele-config-provider/use-receiver");
5
+ function createIframe(name, url) {
6
+ return vue.defineComponent({
7
+ name,
8
+ setup() {
9
+ const instance = { el: null };
10
+ const config = useReceiver.useReceiver();
11
+ const rootRef = vue.ref(null);
12
+ const keepAlive = vue.computed(() => config.keepAlive);
13
+ const createIframe2 = () => {
14
+ var _a;
15
+ const el = document.createElement("iframe");
16
+ el.classList.add("ele-admin-iframe");
17
+ el.src = url;
18
+ const parentNode = (_a = rootRef.value) == null ? void 0 : _a.parentNode;
19
+ if (parentNode) {
20
+ parentNode.insertBefore(el, rootRef.value);
21
+ instance.el = el;
22
+ }
23
+ };
24
+ vue.onMounted(() => {
25
+ if (keepAlive.value) {
26
+ createIframe2();
27
+ }
28
+ });
29
+ vue.onActivated(() => {
30
+ if (instance.el) {
31
+ instance.el.style.display = "";
32
+ }
33
+ });
34
+ vue.onDeactivated(() => {
35
+ if (instance.el) {
36
+ instance.el.style.display = "none";
37
+ }
38
+ });
39
+ vue.onBeforeUnmount(() => {
40
+ if (instance.el) {
41
+ if (instance.el.parentNode) {
42
+ instance.el.parentNode.removeChild(instance.el);
43
+ }
44
+ instance.el = null;
45
+ }
46
+ });
47
+ vue.watch(keepAlive, (keepAlive2) => {
48
+ if (keepAlive2 && !instance.el) {
49
+ vue.nextTick(() => {
50
+ createIframe2();
51
+ });
52
+ }
53
+ });
54
+ return () => {
55
+ if (config.keepAlive || instance.el) {
56
+ return vue.h("div", {
57
+ ref: rootRef,
58
+ style: { display: "none" }
59
+ });
60
+ }
61
+ return vue.h("iframe", {
62
+ ref: rootRef,
63
+ class: "ele-admin-iframe",
64
+ src: url
65
+ });
66
+ };
67
+ }
68
+ });
69
+ }
70
+ exports.createIframe = createIframe;
@@ -0,0 +1,9 @@
1
+ /** 授权检查 */
2
+ import type { Ref } from 'vue';
3
+ export declare const UNAUTHORIZED_TIP = "\u60A8\u9700\u8981\u8D2D\u4E70 EleAdminPlus \u6388\u6743\u540E\u65B9\u53EF\u4F7F\u7528.";
4
+ interface UseLicenseResult {
5
+ authenticated: Ref<boolean>;
6
+ }
7
+ export declare function useLicense(): UseLicenseResult;
8
+ export declare function checkLicense(key?: string): boolean;
9
+ export {};
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const useReceiver = require("../ele-config-provider/use-receiver");
5
+ const UNAUTHORIZED_TIP = "您需要购买 EleAdminPlus 授权后方可使用.";
6
+ const KEY_ENCRYPT = "BAFEDIHGLKJONMRQPUTSXWVaZYdcbgfejihmlkponsrqvutyxw10z432765+98/C";
7
+ const VERSION_TIMESTAMP = 1659196800;
8
+ const VERSION_NAME = "1.0";
9
+ function useLicense() {
10
+ const config = useReceiver.useReceiver();
11
+ const license = vue.computed(() => config.license);
12
+ const authenticated = vue.ref(false);
13
+ vue.watch(
14
+ license,
15
+ (value) => {
16
+ authenticated.value = checkLicense(value);
17
+ },
18
+ { immediate: true }
19
+ );
20
+ return { authenticated };
21
+ }
22
+ function checkLicense(key) {
23
+ const { code, hostname, domain, expiration, version } = parseLicense(key);
24
+ if (code === 4) {
25
+ return true;
26
+ }
27
+ console.warn(new Array(60).join("*"));
28
+ const tips = "请前往 https://eleadmin.com 获取授权码.";
29
+ const invalid = `授权码不正确或授权域名不匹配, ${tips}`;
30
+ const expired = `授权码已到期或授权版本号不匹配, ${tips}`;
31
+ console.warn([invalid, expired, invalid][code - 1]);
32
+ if (code === 2) {
33
+ if (typeof expiration === "number") {
34
+ console.warn("到期时间: ", new Date(expiration * 1e3));
35
+ }
36
+ console.warn("授权版本号: ", version);
37
+ console.warn("当前版本号: ", VERSION_NAME);
38
+ }
39
+ if (code === 3) {
40
+ console.warn("授权域名: ", domain);
41
+ console.warn("当前域名: ", hostname);
42
+ }
43
+ console.warn(new Array(60).join("*"));
44
+ return false;
45
+ }
46
+ function decode(encrypt) {
47
+ let output = "";
48
+ const format = (encrypt2, length, offset) => {
49
+ const content = ((array, offset2) => {
50
+ const max = array.length - offset2;
51
+ if (max <= 0) {
52
+ return array;
53
+ }
54
+ const result = new Array(array.length);
55
+ for (let i2 = 0; i2 < array.length; i2++) {
56
+ if (i2 < offset2) {
57
+ result[i2] = array[max + i2];
58
+ } else {
59
+ result[i2] = array[i2 - offset2];
60
+ }
61
+ }
62
+ return result;
63
+ })(encrypt2.split(""), offset).join("");
64
+ const sb = [];
65
+ let start = 0;
66
+ while (start < content.length) {
67
+ let end = start + length;
68
+ if (end > content.length) {
69
+ end = content.length;
70
+ }
71
+ const item = content.substring(start, end);
72
+ sb.push(item.split("").reverse().join(""));
73
+ start = end;
74
+ }
75
+ return sb.join("");
76
+ };
77
+ const index = encrypt.indexOf("=");
78
+ const body = index === -1 ? encrypt : encrypt.substring(0, index);
79
+ const suffix = index === -1 ? "" : encrypt.substring(index);
80
+ const temp = format(body, 12, 3) + suffix;
81
+ const input = temp.replace(/[^A-Za-z0-9\+\/\=]/g, "");
82
+ const KEYS = format(KEY_ENCRYPT, 3, 1) + "=";
83
+ let chr1, chr2, chr3;
84
+ let enc1, enc2, enc3, enc4;
85
+ let i = 0;
86
+ while (i < input.length) {
87
+ enc1 = KEYS.indexOf(input.charAt(i++));
88
+ enc2 = KEYS.indexOf(input.charAt(i++));
89
+ enc3 = KEYS.indexOf(input.charAt(i++));
90
+ enc4 = KEYS.indexOf(input.charAt(i++));
91
+ chr1 = enc1 << 2 | enc2 >> 4;
92
+ chr2 = (enc2 & 15) << 4 | enc3 >> 2;
93
+ chr3 = (enc3 & 3) << 6 | enc4;
94
+ output = output + String.fromCharCode(chr1);
95
+ if (enc3 != 64) {
96
+ output = output + String.fromCharCode(chr2);
97
+ }
98
+ if (enc4 != 64) {
99
+ output = output + String.fromCharCode(chr3);
100
+ }
101
+ }
102
+ output = ((utftext) => {
103
+ let string = "";
104
+ let i2 = 0;
105
+ let c = 0;
106
+ let c2 = 0;
107
+ let c3 = 0;
108
+ while (i2 < utftext.length) {
109
+ c = utftext.charCodeAt(i2);
110
+ if (c < 128) {
111
+ string += String.fromCharCode(c);
112
+ i2++;
113
+ } else if (c > 191 && c < 224) {
114
+ c2 = utftext.charCodeAt(i2 + 1);
115
+ string += String.fromCharCode((c & 31) << 6 | c2 & 63);
116
+ i2 += 2;
117
+ } else {
118
+ c2 = utftext.charCodeAt(i2 + 1);
119
+ c3 = utftext.charCodeAt(i2 + 2);
120
+ string += String.fromCharCode(
121
+ (c & 15) << 12 | (c2 & 63) << 6 | c3 & 63
122
+ );
123
+ i2 += 3;
124
+ }
125
+ }
126
+ return string;
127
+ })(output);
128
+ return output;
129
+ }
130
+ function parseLicense(license) {
131
+ var _a;
132
+ if (typeof license !== "string") {
133
+ return { code: 1 };
134
+ }
135
+ const content = decode(license);
136
+ try {
137
+ const certificate = JSON.parse(content);
138
+ if (certificate.product !== "EleAdminPlus") {
139
+ return { ...certificate, code: 1 };
140
+ }
141
+ const version = certificate.version;
142
+ if (version && version !== VERSION_NAME) {
143
+ return { ...certificate, code: 2 };
144
+ }
145
+ const expiration = certificate.expiration;
146
+ if (expiration && expiration < VERSION_TIMESTAMP) {
147
+ return { ...certificate, code: 2 };
148
+ }
149
+ const domain = certificate.domain;
150
+ if (domain) {
151
+ const hostname = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a.hostname;
152
+ if (!hostname) {
153
+ return { ...certificate, code: 3 };
154
+ }
155
+ if ("localhost" === hostname || "127.0.0.1" === hostname) {
156
+ return { ...certificate, code: 4 };
157
+ }
158
+ const t1 = domain.split(".");
159
+ const t2 = hostname.split(".");
160
+ for (let i = t1.length - 1; i >= 0; i--) {
161
+ if (t1[i] !== t2[i]) {
162
+ return { ...certificate, code: 3, hostname };
163
+ }
164
+ }
165
+ if (t2.length > t1.length && t2[t2.length - t1.length - 1] !== "www") {
166
+ return { ...certificate, code: 3, hostname };
167
+ }
168
+ }
169
+ return { ...certificate, code: 4 };
170
+ } catch (_e) {
171
+ }
172
+ return { code: 1 };
173
+ }
174
+ exports.UNAUTHORIZED_TIP = UNAUTHORIZED_TIP;
175
+ exports.checkLicense = checkLicense;
176
+ exports.useLicense = useLicense;
@@ -0,0 +1,13 @@
1
+ import type { RouteRecordRaw, _RouteRecordBase, RouteComponent } from 'vue-router';
2
+ import type { MenuItem } from '../ele-pro-layout/types';
3
+ /**
4
+ * 获取路由组件方法
5
+ */
6
+ export type GetComponent = (component?: string, menu?: MenuItem, name?: string) => (() => Promise<RouteComponent>) | RouteComponent | undefined;
7
+ /**
8
+ * 菜单数据转为路由数据
9
+ * @param menus 菜单数据
10
+ * @param getComponent 加载组件的方法
11
+ * @param added 已添加的路由
12
+ */
13
+ export declare function menuToRoutes(menus: MenuItem[] | undefined, getComponent: GetComponent, added?: _RouteRecordBase[]): RouteRecordRaw[] | undefined;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const core = require("./core");
4
+ const iframeComponent = require("./iframe-component");
5
+ function camelCase(str) {
6
+ const val = str.replace(/[-|/](\w)/g, (_, c) => c ? c.toUpperCase() : "");
7
+ return val.charAt(0).toUpperCase() + val.slice(1);
8
+ }
9
+ function pathIsAdd(path, data) {
10
+ let isAdd = false;
11
+ core.eachTree(data, (item) => {
12
+ if (path === item.path) {
13
+ isAdd = true;
14
+ return false;
15
+ }
16
+ });
17
+ return isAdd;
18
+ }
19
+ function getRoutePath(path) {
20
+ if (!path || !path.includes("?")) {
21
+ return path;
22
+ }
23
+ return path.substring(0, path.indexOf("?"));
24
+ }
25
+ function getRouteComponent(menu, name, func) {
26
+ if (!menu.component || !core.isExternalLink(menu.component)) {
27
+ return { component: func(menu.component, menu, name) };
28
+ }
29
+ return { component: iframeComponent.createIframe(name, menu.component), link: true };
30
+ }
31
+ function menuToRoutes(menus, getComponent, added) {
32
+ if (!(menus == null ? void 0 : menus.length)) {
33
+ return;
34
+ }
35
+ const routes = [];
36
+ const addedRoutes = added ? [...added] : [];
37
+ menus.forEach((item) => {
38
+ const meta = { ...item.meta };
39
+ const path = getRoutePath(meta.routePath || item.path);
40
+ if (path && !core.isExternalLink(path) && !pathIsAdd(path, addedRoutes)) {
41
+ const name = item.name || camelCase(path);
42
+ const { component, link } = getRouteComponent(item, name, getComponent);
43
+ if (link) {
44
+ meta.iframe = item.component;
45
+ meta.hideFooter = true;
46
+ }
47
+ addedRoutes.push({ path });
48
+ routes.push({
49
+ name,
50
+ path,
51
+ component,
52
+ redirect: item.redirect,
53
+ meta,
54
+ children: menuToRoutes(item.children, getComponent, addedRoutes)
55
+ });
56
+ }
57
+ });
58
+ return routes;
59
+ }
60
+ exports.menuToRoutes = menuToRoutes;
@@ -0,0 +1,41 @@
1
+ import type { AppContext } from 'vue';
2
+ import type { MessageHandler, MessageOptions, MessageParams, MessageFn } from 'element-plus/es/components/message';
3
+ /**
4
+ * 消息提示对象型参数
5
+ */
6
+ export interface ProMessageOptions extends MessageOptions {
7
+ /** 是否为原始风格 */
8
+ original?: boolean | null;
9
+ /** 是否为简约风格 */
10
+ plain?: boolean | null;
11
+ /** 是否显示遮罩层 */
12
+ mask?: boolean | null;
13
+ /** 是否居中显示 */
14
+ centered?: boolean | null;
15
+ }
16
+ /**
17
+ * 消息提示参数
18
+ */
19
+ export type ProMessageParams = ProMessageOptions | MessageParams;
20
+ /**
21
+ * 消息提示方法
22
+ */
23
+ export type ProMessageFn = (options?: ProMessageParams, context?: null | AppContext) => MessageHandler;
24
+ /**
25
+ * 消息提示
26
+ */
27
+ export interface ProMessage extends ProMessageFn {
28
+ closeAll: MessageFn['closeAll'];
29
+ success: ProMessageFn;
30
+ warning: ProMessageFn;
31
+ error: ProMessageFn;
32
+ info: ProMessageFn;
33
+ loading: ProMessageFn;
34
+ }
35
+ /**
36
+ * 提供各种调用方法
37
+ * @param options 参数
38
+ * @param context 上下文
39
+ */
40
+ declare const EleMessage: ProMessage;
41
+ export { EleMessage };
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const elementPlus = require("element-plus");
5
+ const icons = require("../icons");
6
+ const core = require("./core");
7
+ const normalizeOptions = function(options, loading) {
8
+ var _a;
9
+ const isObj = typeof options === "object" && options != null && !vue.isVNode(options);
10
+ const opt = isObj ? { ...options } : { message: options };
11
+ const classes = [];
12
+ if (!opt.original) {
13
+ classes.push("ele-message");
14
+ if (opt.plain) {
15
+ classes.push("is-plain");
16
+ }
17
+ }
18
+ if (loading) {
19
+ classes.push("ele-message-loading");
20
+ if (opt.mask) {
21
+ classes.push("ele-message-mask");
22
+ }
23
+ opt.duration = opt.duration ?? 0;
24
+ opt.icon = opt.icon ?? vue.h(elementPlus.ElIcon, () => vue.h(icons.LoadingOutlined));
25
+ if (typeof ((_a = document == null ? void 0 : document.body) == null ? void 0 : _a.querySelector) === "function") {
26
+ const el = document.body.querySelector(":focus");
27
+ typeof (el == null ? void 0 : el.blur) === "function" && el.blur();
28
+ }
29
+ }
30
+ if (opt.centered) {
31
+ classes.push("is-centered");
32
+ }
33
+ if (opt.customClass) {
34
+ classes.push(opt.customClass);
35
+ }
36
+ opt.customClass = classes.join(" ");
37
+ return core.omit(opt, "original", "plain", "mask", "centered");
38
+ };
39
+ const EleMessage = function(options, context) {
40
+ return elementPlus.ElMessage(normalizeOptions(options), context);
41
+ };
42
+ EleMessage.success = function(options, context) {
43
+ return elementPlus.ElMessage.success(normalizeOptions(options), context);
44
+ };
45
+ EleMessage.warning = function(options, context) {
46
+ return elementPlus.ElMessage.warning(normalizeOptions(options), context);
47
+ };
48
+ EleMessage.error = function(options, context) {
49
+ return elementPlus.ElMessage.error(normalizeOptions(options), context);
50
+ };
51
+ EleMessage.info = function(options, context) {
52
+ return elementPlus.ElMessage.info(normalizeOptions(options), context);
53
+ };
54
+ EleMessage.loading = function(options, context) {
55
+ return elementPlus.ElMessage.info(normalizeOptions(options, true), context);
56
+ };
57
+ EleMessage.closeAll = function(type) {
58
+ return elementPlus.ElMessage.closeAll(type);
59
+ };
60
+ exports.EleMessage = EleMessage;