@web-utils/component 4.0.16 → 5.0.0-beta01

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 (314) hide show
  1. package/address-input/index.mjs +76 -74
  2. package/affix/index.mjs +71 -78
  3. package/aside-menu/index.mjs +20 -31
  4. package/avatar/index.mjs +94 -82
  5. package/awesome-button/index.mjs +54 -71
  6. package/capsule-tab/index.mjs +27 -32
  7. package/card/index.mjs +86 -69
  8. package/carousel/index.mjs +45 -32
  9. package/chat/index.mjs +441 -266
  10. package/chunk-file-uploader/index.mjs +2 -103
  11. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
  12. package/chunks/EditableTree.C_IJBL5b.mjs +648 -0
  13. package/chunks/ElementBaseInfo.DyuFR6fE.mjs +209 -0
  14. package/chunks/ElementDialog.C0IjriTW.mjs +681 -0
  15. package/chunks/ElementForm.ButuYDPA.mjs +627 -0
  16. package/chunks/ElementListeners.Dg3e_dmp.mjs +656 -0
  17. package/chunks/ElementMultiInstance.Dmi79FqA.mjs +290 -0
  18. package/chunks/ElementOtherConfig.C2AddGTp.mjs +51 -0
  19. package/chunks/ElementProperties.CfV8UF7L.mjs +196 -0
  20. package/chunks/ElementTaskConfig.Bn7ycGGn.mjs +446 -0
  21. package/chunks/FlowCondition.C6PdqOAW.mjs +194 -0
  22. package/chunks/FlowDesigner.uJYFfKpR.mjs +5101 -0
  23. package/chunks/FormBlock.BEENc22F.mjs +117 -0
  24. package/chunks/FormCascader.CaM-oEhv.mjs +1226 -0
  25. package/chunks/FormInputTime.Bg3UIP8H.mjs +1773 -0
  26. package/chunks/FormItem.H9OOvNzT.mjs +90 -0
  27. package/chunks/FormItemGroup.D9eRy-cZ.mjs +147 -0
  28. package/chunks/FormSelect.CanodoAI.mjs +1472 -0
  29. package/chunks/FormSwitch.DTqdaFjv.mjs +296 -0
  30. package/chunks/FormTemp.DiI5EfgK.mjs +139 -0
  31. package/chunks/FyCurd.DMj1dMK9.mjs +2622 -0
  32. package/chunks/FyForm.vgR8ujEF.mjs +904 -0
  33. package/chunks/FyFormDesign.DEWT6LsX.mjs +5600 -0
  34. package/chunks/FyUEditor.D_rEYfll.mjs +221 -0
  35. package/chunks/FyUpload.B2QKfTxF.mjs +504 -0
  36. package/chunks/Keyboard.ItiRy7Gb.mjs +379 -0
  37. package/chunks/MonacoEditor.Bd5Kui-Y.mjs +301 -0
  38. package/chunks/PageableTable.Bujb0NUx.mjs +658 -0
  39. package/chunks/RecordVideo.B35_dLty.mjs +116 -0
  40. package/chunks/SignalAndMessage.CYVzlFuL.mjs +198 -0
  41. package/chunks/SplitPane.Dw96M0Yf.mjs +219 -0
  42. package/chunks/TableColumn.DJYkznbJ.mjs +180 -0
  43. package/chunks/TableView.DyIdIxAg.mjs +484 -0
  44. package/chunks/Toolbar.DHuXJAoG.mjs +219 -0
  45. package/chunks/UserTaskListeners.Bp-2qkHs.mjs +599 -0
  46. package/chunks/VueCron.GfjodnyM.mjs +1766 -0
  47. package/chunks/VueTreeSelect.9Ywl-I8e.mjs +1872 -0
  48. package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
  49. package/chunks/checkbox.emIuFmnt.mjs +437 -0
  50. package/chunks/confirmable-mixin.BBil7dto.mjs +1646 -0
  51. package/chunks/core.DJv6Qrae.mjs +51 -0
  52. package/chunks/dataformat.Bfr4nOcA.mjs +144 -0
  53. package/chunks/dic.DgDfnovD.mjs +116 -0
  54. package/chunks/dictionary.5eKjWeAp.mjs +19 -0
  55. package/chunks/dictionary.DxZxP0ej.mjs +87 -0
  56. package/chunks/event.B4iwtUNO.mjs +4 -0
  57. package/chunks/event.eJ-c1Z3a.mjs +224 -0
  58. package/chunks/focus-trap.DT4GnqQI.mjs +211 -0
  59. package/chunks/form-input.D25eDRMq.mjs +34 -0
  60. package/chunks/form-item.CgmUuw_n.mjs +714 -0
  61. package/chunks/form-pick.Axem0gOO.mjs +7 -0
  62. package/chunks/form-validate.B1KPCHqN.mjs +11 -0
  63. package/chunks/icon.CbS8-322.mjs +259 -0
  64. package/chunks/init.DwpukyOB.mjs +115 -0
  65. package/chunks/input.PejnqwSH.mjs +547 -0
  66. package/chunks/install.yLcn5MLL.mjs +84 -0
  67. package/chunks/message.BCmee5N0.mjs +400 -0
  68. package/chunks/overlay.DubSnqma.mjs +122 -0
  69. package/chunks/packages.BGjydzjm.mjs +56 -0
  70. package/chunks/permission.DgEVNWlh.mjs +16 -0
  71. package/chunks/photo-swipe.BB0SJZg9.mjs +55 -0
  72. package/chunks/radio.BotKXqJr.mjs +274 -0
  73. package/chunks/scroll.CzORc5Zk.mjs +28 -0
  74. package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
  75. package/chunks/slot.C6Ozd2e7.mjs +25 -0
  76. package/chunks/style.BmlGmjpO.mjs +325 -0
  77. package/chunks/sub-table-plus-props.B_lLth3j.mjs +28 -0
  78. package/chunks/tab-mixin.u0EZpx3j.mjs +70 -0
  79. package/chunks/tag.DPi-PLbb.mjs +141 -0
  80. package/chunks/teleport._VGEzK4d.mjs +22 -0
  81. package/chunks/tooltip.D50x7Rva.mjs +1926 -0
  82. package/chunks/typescript.DiWBU4nj.mjs +4 -0
  83. package/chunks/use-aria.BW7nWOl1.mjs +17 -0
  84. package/chunks/use-composition.mUaomyno.mjs +47 -0
  85. package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
  86. package/chunks/use-empty-values.Dy_r78F6.mjs +263 -0
  87. package/chunks/use-form-item.wsRjehHp.mjs +47 -0
  88. package/chunks/use-global-config.C9hs-O_x.mjs +56 -0
  89. package/chunks/use-id.CFO5NeoV.mjs +15 -0
  90. package/chunks/use-size.DxrwTUwf.mjs +18 -0
  91. package/chunks/util.B3sjVZoZ.mjs +103 -0
  92. package/chunks/util.g-WQEec9.mjs +223 -0
  93. package/chunks/utilSelf.ZED4DmCU.mjs +46 -0
  94. package/chunks/utils.Cs2fYBrT.mjs +60 -0
  95. package/chunks/utils.DsGhtCIO.mjs +14 -0
  96. package/chunks/validator.C4-z_t9p.mjs +5 -0
  97. package/chunks/vnode.D_SioRnx.mjs +14 -0
  98. package/code-mirror-editor/index.mjs +89 -88
  99. package/comment/index.mjs +62 -57
  100. package/configComponents.mjs +40 -50
  101. package/confirm-button/index.mjs +34 -46
  102. package/confirmable/index.mjs +7 -17
  103. package/context-menu/index.mjs +195 -174
  104. package/count-up/index.mjs +97 -105
  105. package/custom-scrollbar/index.mjs +91 -98
  106. package/data-box/index.mjs +64 -44
  107. package/data-card/index.mjs +60 -47
  108. package/data-card-text/index.mjs +63 -49
  109. package/data-display/index.mjs +71 -51
  110. package/data-icons/index.mjs +70 -50
  111. package/data-imgtext/index.mjs +67 -43
  112. package/data-operatext/index.mjs +51 -40
  113. package/data-panel/index.mjs +57 -44
  114. package/data-pay/index.mjs +105 -48
  115. package/data-price/index.mjs +48 -40
  116. package/data-progress/index.mjs +67 -44
  117. package/data-rotate/index.mjs +61 -44
  118. package/data-table-picker/index.mjs +119 -71
  119. package/data-tabs/index.mjs +67 -44
  120. package/dialog-form/index.mjs +139 -87
  121. package/dynamic-table/index.mjs +166 -109
  122. package/e-charts/index.mjs +174 -200
  123. package/easy-popup/index.mjs +91 -102
  124. package/editable-progress/index.mjs +112 -83
  125. package/editable-tree/index.mjs +2 -481
  126. package/element-dialog/index.mjs +2 -306
  127. package/ellipsis/index.mjs +124 -148
  128. package/empty-view/index.mjs +48 -65
  129. package/error-view/index.mjs +39 -51
  130. package/flex-column/index.mjs +32 -51
  131. package/flex-item/index.mjs +54 -64
  132. package/flex-row/index.mjs +32 -39
  133. package/flex-scroller/index.mjs +29 -30
  134. package/flow/index.mjs +240 -247
  135. package/flow-designer/index.mjs +2 -4709
  136. package/flow-node/index.mjs +56 -64
  137. package/flow-viewer/index.mjs +159 -157
  138. package/form-block/index.mjs +2 -147
  139. package/form-button/index.mjs +35 -47
  140. package/form-card/index.mjs +14 -25
  141. package/form-cascader/index.mjs +2 -115
  142. package/form-checkbox/index.mjs +89 -70
  143. package/form-checkbox-group/index.mjs +161 -113
  144. package/form-date-picker/index.mjs +155 -142
  145. package/form-holder/index.mjs +137 -109
  146. package/form-input/index.mjs +113 -86
  147. package/form-input-cron-expression/index.mjs +97 -76
  148. package/form-input-email/index.mjs +64 -51
  149. package/form-input-id-card/index.mjs +72 -54
  150. package/form-input-phone-number/index.mjs +71 -56
  151. package/form-input-tag/index.mjs +88 -61
  152. package/form-input-time/index.mjs +2 -73
  153. package/form-item/index.mjs +2 -142
  154. package/form-item-config-provider/index.mjs +46 -60
  155. package/form-item-group/index.mjs +2 -157
  156. package/form-radio-group/index.mjs +161 -121
  157. package/form-select/index.mjs +2 -179
  158. package/form-switch/index.mjs +2 -54
  159. package/form-table/index.mjs +131 -84
  160. package/form-table-plus/index.mjs +164 -108
  161. package/form-textarea/index.mjs +90 -56
  162. package/form-tree-select/index.mjs +89 -71
  163. package/form-tree-select-multiple/index.mjs +92 -77
  164. package/form-view/index.mjs +275 -207
  165. package/fy-array/index.mjs +121 -70
  166. package/fy-article/index.mjs +73 -60
  167. package/fy-cascader/index.mjs +113 -90
  168. package/fy-checkbox/index.mjs +96 -64
  169. package/fy-code/index.mjs +48 -50
  170. package/fy-curd/index.mjs +2 -1879
  171. package/fy-date/index.mjs +76 -41
  172. package/fy-draggable/index.mjs +322 -317
  173. package/fy-dynamic/index.mjs +259 -224
  174. package/fy-empty/index.mjs +35 -36
  175. package/fy-form/index.mjs +2 -640
  176. package/fy-form-design/index.mjs +2 -2852
  177. package/fy-form-design/style.css +1 -1
  178. package/fy-from/crud/zh.d.ts +1 -1
  179. package/fy-input/index.mjs +117 -97
  180. package/fy-input-color/index.mjs +77 -54
  181. package/fy-input-icon/index.mjs +129 -82
  182. package/fy-input-map/index.mjs +242 -183
  183. package/fy-input-number/index.mjs +74 -49
  184. package/fy-input-table/index.mjs +160 -105
  185. package/fy-input-tree/index.mjs +259 -178
  186. package/fy-progress/index.mjs +36 -39
  187. package/fy-radio/index.mjs +53 -37
  188. package/fy-rate/index.mjs +86 -70
  189. package/fy-select/index.mjs +224 -137
  190. package/fy-slider/index.mjs +68 -43
  191. package/fy-switch/index.mjs +67 -41
  192. package/fy-tabs/index.mjs +46 -46
  193. package/fy-time/index.mjs +81 -53
  194. package/fy-title/index.mjs +18 -27
  195. package/fy-tree/index.mjs +382 -286
  196. package/fy-u-editor/index.mjs +2 -357
  197. package/fy-upload/index.mjs +2 -421
  198. package/guide-steps/index.mjs +72 -71
  199. package/helper-function.d.ts +2 -30
  200. package/helper-function.mjs +41 -67
  201. package/highlight-j-s/index.mjs +50 -59
  202. package/icon-card/index.mjs +34 -36
  203. package/icon-temp/index.mjs +27 -27
  204. package/iframe-window/index.mjs +39 -32
  205. package/image-cropper/index.mjs +171 -73
  206. package/image-preview/index.mjs +187 -116
  207. package/image-viewer/index.mjs +69 -66
  208. package/index.d.ts +3 -9
  209. package/index.mjs +174 -489
  210. package/input-number-range/index.mjs +78 -58
  211. package/j-s-x-component/index.mjs +13 -15
  212. package/keyboard/index.mjs +2 -369
  213. package/license/index.mjs +106 -115
  214. package/loading-view/index.mjs +39 -51
  215. package/login/index.mjs +252 -120
  216. package/monaco-editor/index.mjs +2 -7
  217. package/name-avatar/index.mjs +61 -53
  218. package/nav-bar/index.mjs +33 -30
  219. package/not-implement/index.mjs +10 -22
  220. package/notice/index.mjs +100 -93
  221. package/package.json +3 -3
  222. package/page/index.mjs +18 -25
  223. package/page-header/index.mjs +27 -33
  224. package/page-index/index.mjs +121 -99
  225. package/page-index-top/index.mjs +79 -74
  226. package/page-skeleton/index.mjs +47 -44
  227. package/page-skeleton-new/index.mjs +79 -49
  228. package/pageable-table/index.mjs +2 -512
  229. package/pageable-view/index.mjs +279 -274
  230. package/photo-swipe/index.d.ts +4 -0
  231. package/photo-swipe/index.mjs +33 -36
  232. package/picker-table-view/index.mjs +224 -117
  233. package/present-view/index.mjs +266 -196
  234. package/queue/index.mjs +45 -53
  235. package/record-video/index.mjs +2 -134
  236. package/resize-observer/index.mjs +43 -46
  237. package/search/index.mjs +116 -107
  238. package/sign/index.mjs +103 -110
  239. package/sign-panel/index.mjs +182 -141
  240. package/skeleton/index.mjs +51 -54
  241. package/skeleton-panel/index.mjs +33 -37
  242. package/split-pane/index.mjs +3 -196
  243. package/stateful/index.mjs +69 -73
  244. package/static-pageable-table/index.mjs +72 -64
  245. package/sub-table/index.mjs +508 -206
  246. package/sub-table-plus/index.mjs +592 -230
  247. package/swiper/index.mjs +128 -120
  248. package/tab/index.mjs +117 -119
  249. package/tab-item/index.mjs +48 -56
  250. package/table-column/index.mjs +2 -225
  251. package/table-view/index.mjs +3 -326
  252. package/tabs-view/index.mjs +109 -104
  253. package/tag-render/index.mjs +79 -67
  254. package/text-ellipsis/index.mjs +94 -77
  255. package/toolbar/index.mjs +2 -254
  256. package/toolbar-button/index.mjs +145 -120
  257. package/verify/index.mjs +58 -64
  258. package/vue-cron/index.mjs +2 -1180
  259. package/vue-qr-code/index.mjs +30 -54
  260. package/vue-quill-editor/index.mjs +123 -99
  261. package/vue-tags-input/index.mjs +348 -431
  262. package/vue-tree-select/index.mjs +2 -2627
  263. package/vue-video-player/index.mjs +135 -136
  264. package/watermark/index.mjs +46 -74
  265. package/web-types.json +197 -975
  266. package/x-input-tag/index.mjs +144 -106
  267. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  268. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  269. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  270. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  271. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  272. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  273. package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
  274. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  275. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  276. package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
  277. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  278. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  279. package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
  280. package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
  281. package/chunks/core.0Exl13Mz.mjs +0 -54
  282. package/chunks/dataformat.CpqOeGBl.mjs +0 -154
  283. package/chunks/dic.Dkl-leRW.mjs +0 -128
  284. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  285. package/chunks/dictionary.DqiP9x2m.mjs +0 -25
  286. package/chunks/event.9aDS6jcw.mjs +0 -236
  287. package/chunks/form-input.CvFdwlEV.mjs +0 -31
  288. package/chunks/form-item.LWjePsPa.mjs +0 -233
  289. package/chunks/form-pick.BFTIVn_i.mjs +0 -11
  290. package/chunks/form-validate.CVarNHKX.mjs +0 -12
  291. package/chunks/helper.BiMLcEEk.mjs +0 -41
  292. package/chunks/index.9OxHjTIE.mjs +0 -16
  293. package/chunks/index.B2TRddqf.mjs +0 -184
  294. package/chunks/index.BmYCjxZQ.mjs +0 -47
  295. package/chunks/init.DAsXSoLW.mjs +0 -122
  296. package/chunks/packages.ByyangTp.mjs +0 -58
  297. package/chunks/permission.CO31YIkD.mjs +0 -16
  298. package/chunks/slot.DXIbhGat.mjs +0 -27
  299. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  300. package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
  301. package/chunks/util.DqFv_pWg.mjs +0 -241
  302. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  303. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  304. package/color-picker/index.mjs +0 -78
  305. package/egd-collapse/index.mjs +0 -62
  306. package/egd-collapse-item/index.mjs +0 -72
  307. package/form-input-number/index.mjs +0 -69
  308. package/form-input-number/style.css +0 -1
  309. package/input-number/index.mjs +0 -232
  310. package/input-number/style.css +0 -1
  311. package/keep-view-alive/index.mjs +0 -117
  312. package/search-popover/index.mjs +0 -118
  313. package/search-popover/style.css +0 -1
  314. /package/{base.css → utils/style.css} +0 -0
@@ -0,0 +1,400 @@
1
+ import { _ as e, l as t, n, o as r, p as i, t as a } from "./install.yLcn5MLL.mjs";
2
+ import { c as o, d as s, r as c } from "./use-empty-values.Dy_r78F6.mjs";
3
+ import { r as l } from "./use-size.DxrwTUwf.mjs";
4
+ import { D as u, F as d, I as f, M as p, O as m, R as h, S as g, b as ee, j as _, n as v, v as te } from "./style.BmlGmjpO.mjs";
5
+ import { i as y, o as b, r as ne, t as x } from "./icon.CbS8-322.mjs";
6
+ import { t as S } from "./typescript.DiWBU4nj.mjs";
7
+ import { n as re, t as C } from "./use-global-config.C9hs-O_x.mjs";
8
+ import { Fragment as ie, Transition as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createTextVNode as A, createVNode as j, defineComponent as M, isVNode as N, nextTick as ae, normalizeClass as P, normalizeStyle as F, onMounted as oe, openBlock as I, ref as L, render as R, renderSlot as z, resolveDynamicComponent as se, shallowReactive as B, toDisplayString as V, unref as H, vShow as ce, watch as U, withCtx as W, withDirectives as le, withModifiers as ue } from "vue";
9
+ //#endregion
10
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/badge/index.mjs
11
+ var de = a(/* @__PURE__ */ M({
12
+ name: "ElBadge",
13
+ __name: "badge",
14
+ props: _({
15
+ value: {
16
+ type: [String, Number],
17
+ default: ""
18
+ },
19
+ max: {
20
+ type: Number,
21
+ default: 99
22
+ },
23
+ isDot: Boolean,
24
+ hidden: Boolean,
25
+ type: {
26
+ type: String,
27
+ values: [
28
+ "primary",
29
+ "success",
30
+ "warning",
31
+ "info",
32
+ "danger"
33
+ ],
34
+ default: "danger"
35
+ },
36
+ showZero: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ color: String,
41
+ badgeStyle: { type: p([
42
+ String,
43
+ Object,
44
+ Array
45
+ ]) },
46
+ offset: {
47
+ type: p(Array),
48
+ default: () => [0, 0]
49
+ },
50
+ badgeClass: { type: String }
51
+ }),
52
+ setup(e, { expose: t }) {
53
+ let n = e, i = r("badge"), a = T(() => n.isDot ? "" : h(n.value) && h(n.max) && n.max < n.value ? `${n.max}+` : `${n.value}`), o = T(() => [{
54
+ backgroundColor: n.color,
55
+ marginRight: v(-n.offset[0]),
56
+ marginTop: v(n.offset[1])
57
+ }, n.badgeStyle ?? {}]);
58
+ return t({ content: a }), (t, n) => (I(), O("div", { class: P(H(i).b()) }, [z(t.$slots, "default"), j(w, { name: `${H(i).namespace.value}-zoom-in-center` }, {
59
+ default: W(() => [!e.hidden && (a.value || e.isDot || t.$slots.content) ? (I(), O("sup", {
60
+ key: 0,
61
+ class: P([
62
+ H(i).e("content"),
63
+ H(i).em("content", e.type),
64
+ H(i).is("fixed", !!t.$slots.default),
65
+ H(i).is("dot", e.isDot),
66
+ H(i).is("hide-zero", !e.showZero && e.value === 0),
67
+ e.badgeClass
68
+ ]),
69
+ style: F(o.value)
70
+ }, [z(t.$slots, "content", { value: a.value }, () => [A(V(a.value), 1)])], 6)) : D("v-if", !0)]),
71
+ _: 3
72
+ }, 8, ["name"])], 2));
73
+ }
74
+ })), G = _({
75
+ a11y: {
76
+ type: Boolean,
77
+ default: !0
78
+ },
79
+ locale: { type: p(Object) },
80
+ size: l,
81
+ button: { type: p(Object) },
82
+ card: { type: p(Object) },
83
+ dialog: { type: p(Object) },
84
+ link: { type: p(Object) },
85
+ experimentalFeatures: { type: p(Object) },
86
+ keyboardNavigation: {
87
+ type: Boolean,
88
+ default: !0
89
+ },
90
+ message: { type: p(Object) },
91
+ zIndex: Number,
92
+ namespace: {
93
+ type: String,
94
+ default: "el"
95
+ },
96
+ table: { type: p(Object) },
97
+ ...c
98
+ }), K = { placement: "top" };
99
+ M({
100
+ name: "ElConfigProvider",
101
+ props: G,
102
+ setup(e, { slots: t }) {
103
+ let n = C(e);
104
+ return U(() => e.message, (e) => {
105
+ var t;
106
+ Object.assign(K, (n == null || (t = n.value) == null ? void 0 : t.message) ?? {}, e ?? {});
107
+ }, {
108
+ immediate: !0,
109
+ deep: !0
110
+ }), () => z(t, "default", { config: n == null ? void 0 : n.value });
111
+ }
112
+ });
113
+ //#endregion
114
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/message/src/message.mjs
115
+ var q = [
116
+ "primary",
117
+ "success",
118
+ "info",
119
+ "warning",
120
+ "error"
121
+ ], J = [
122
+ "top",
123
+ "top-left",
124
+ "top-right",
125
+ "bottom",
126
+ "bottom-left",
127
+ "bottom-right"
128
+ ], Y = S({
129
+ customClass: "",
130
+ dangerouslyUseHTMLString: !1,
131
+ duration: 3e3,
132
+ icon: void 0,
133
+ id: "",
134
+ message: "",
135
+ onClose: void 0,
136
+ showClose: !1,
137
+ type: "info",
138
+ plain: !1,
139
+ offset: 16,
140
+ placement: void 0,
141
+ zIndex: 0,
142
+ grouping: !1,
143
+ repeatNum: 1,
144
+ appendTo: g ? document.body : void 0
145
+ }), fe = _({
146
+ customClass: {
147
+ type: String,
148
+ default: Y.customClass
149
+ },
150
+ dangerouslyUseHTMLString: {
151
+ type: Boolean,
152
+ default: Y.dangerouslyUseHTMLString
153
+ },
154
+ duration: {
155
+ type: Number,
156
+ default: Y.duration
157
+ },
158
+ icon: {
159
+ type: b,
160
+ default: Y.icon
161
+ },
162
+ id: {
163
+ type: String,
164
+ default: Y.id
165
+ },
166
+ message: {
167
+ type: p([
168
+ String,
169
+ Object,
170
+ Function
171
+ ]),
172
+ default: Y.message
173
+ },
174
+ onClose: {
175
+ type: p(Function),
176
+ default: Y.onClose
177
+ },
178
+ showClose: {
179
+ type: Boolean,
180
+ default: Y.showClose
181
+ },
182
+ type: {
183
+ type: String,
184
+ values: q,
185
+ default: Y.type
186
+ },
187
+ plain: {
188
+ type: Boolean,
189
+ default: Y.plain
190
+ },
191
+ offset: {
192
+ type: Number,
193
+ default: Y.offset
194
+ },
195
+ placement: {
196
+ type: String,
197
+ values: J,
198
+ default: Y.placement
199
+ },
200
+ zIndex: {
201
+ type: Number,
202
+ default: Y.zIndex
203
+ },
204
+ grouping: {
205
+ type: Boolean,
206
+ default: Y.grouping
207
+ },
208
+ repeatNum: {
209
+ type: Number,
210
+ default: Y.repeatNum
211
+ }
212
+ }), pe = { destroy: () => !0 }, X = B({}), me = (e) => (X[e] || (X[e] = B([])), X[e]), he = (e, t) => {
213
+ let n = X[t] || [], r = n.findIndex((t) => t.id === e), i = n[r], a;
214
+ return r > 0 && (a = n[r - 1]), {
215
+ current: i,
216
+ prev: a
217
+ };
218
+ }, ge = (e, t) => {
219
+ let { prev: n } = he(e, t);
220
+ return n ? n.vm.exposed.bottom.value : 0;
221
+ }, _e = (e, t, n) => (X[n] || []).findIndex((t) => t.id === e) > 0 ? 16 : t, ve = ["id"], Z = ["innerHTML"], ye = /* @__PURE__ */ M({
222
+ name: "ElMessage",
223
+ __name: "message",
224
+ props: fe,
225
+ emits: pe,
226
+ setup(e, { expose: t, emit: n }) {
227
+ let { Close: r } = ne, i = e, a = n, c = L(!1), { ns: l, zIndex: d } = re("message"), { currentZIndex: f, nextZIndex: p } = d, m = L(), h = L(!1), g = L(0), _, v = T(() => i.type ? i.type === "error" ? "danger" : i.type : "info"), b = T(() => {
228
+ let e = i.type;
229
+ return { [l.bm("icon", e)]: e && y[e] };
230
+ }), S = T(() => i.icon || y[i.type] || ""), C = T(() => i.placement || "top"), A = T(() => ge(i.id, C.value)), M = T(() => _e(i.id, i.offset, C.value) + A.value), N = T(() => g.value + M.value), R = T(() => C.value.includes("left") ? l.is("left") : C.value.includes("right") ? l.is("right") : l.is("center")), B = T(() => C.value.startsWith("top") ? "top" : "bottom"), G = T(() => ({
231
+ [B.value]: `${M.value}px`,
232
+ zIndex: f.value
233
+ }));
234
+ function K() {
235
+ i.duration !== 0 && ({stop: _} = u(() => {
236
+ J();
237
+ }, i.duration));
238
+ }
239
+ function q() {
240
+ _ == null || _();
241
+ }
242
+ function J() {
243
+ h.value = !1, ae(() => {
244
+ if (!c.value) {
245
+ var e;
246
+ (e = i.onClose) == null || e.call(i), a("destroy");
247
+ }
248
+ });
249
+ }
250
+ function Y(e) {
251
+ o(e) === s.esc && J();
252
+ }
253
+ return oe(() => {
254
+ K(), p(), h.value = !0;
255
+ }), U(() => i.repeatNum, () => {
256
+ q(), K();
257
+ }), te(document, "keydown", Y), ee(m, () => {
258
+ g.value = m.value.getBoundingClientRect().height;
259
+ }), t({
260
+ visible: h,
261
+ bottom: N,
262
+ close: J
263
+ }), (t, n) => (I(), E(w, {
264
+ name: H(l).b("fade"),
265
+ onBeforeEnter: n[0] || (n[0] = (e) => c.value = !0),
266
+ onBeforeLeave: e.onClose,
267
+ onAfterLeave: n[1] || (n[1] = (e) => t.$emit("destroy")),
268
+ persisted: ""
269
+ }, {
270
+ default: W(() => [le(k("div", {
271
+ id: e.id,
272
+ ref_key: "messageRef",
273
+ ref: m,
274
+ class: P([
275
+ H(l).b(),
276
+ { [H(l).m(e.type)]: e.type },
277
+ H(l).is("closable", e.showClose),
278
+ H(l).is("plain", e.plain),
279
+ H(l).is("bottom", B.value === "bottom"),
280
+ R.value,
281
+ e.customClass
282
+ ]),
283
+ style: F(G.value),
284
+ role: "alert",
285
+ onMouseenter: q,
286
+ onMouseleave: K
287
+ }, [
288
+ e.repeatNum > 1 ? (I(), E(H(de), {
289
+ key: 0,
290
+ value: e.repeatNum,
291
+ type: v.value,
292
+ class: P(H(l).e("badge"))
293
+ }, null, 8, [
294
+ "value",
295
+ "type",
296
+ "class"
297
+ ])) : D("v-if", !0),
298
+ S.value ? (I(), E(H(x), {
299
+ key: 1,
300
+ class: P([H(l).e("icon"), b.value])
301
+ }, {
302
+ default: W(() => [(I(), E(se(S.value)))]),
303
+ _: 1
304
+ }, 8, ["class"])) : D("v-if", !0),
305
+ z(t.$slots, "default", {}, () => [e.dangerouslyUseHTMLString ? (I(), O(ie, { key: 1 }, [D(" Caution here, message could've been compromised, never use user's input as message "), k("p", {
306
+ class: P(H(l).e("content")),
307
+ innerHTML: e.message
308
+ }, null, 10, Z)], 2112)) : (I(), O("p", {
309
+ key: 0,
310
+ class: P(H(l).e("content"))
311
+ }, V(e.message), 3))]),
312
+ e.showClose ? (I(), E(H(x), {
313
+ key: 2,
314
+ class: P(H(l).e("closeBtn")),
315
+ onClick: ue(J, ["stop"])
316
+ }, {
317
+ default: W(() => [j(H(r))]),
318
+ _: 1
319
+ }, 8, ["class"])) : D("v-if", !0)
320
+ ], 46, ve), [[ce, h.value]])]),
321
+ _: 3
322
+ }, 8, ["name", "onBeforeLeave"]));
323
+ }
324
+ }), be = 1, xe = (t) => {
325
+ if (!t.appendTo) t.appendTo = document.body;
326
+ else if (e(t.appendTo)) {
327
+ let e = document.querySelector(t.appendTo);
328
+ f(e) || (m("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), e = document.body), t.appendTo = e;
329
+ }
330
+ }, Se = (t) => {
331
+ !t.placement && e(K.placement) && K.placement && (t.placement = K.placement), t.placement || (t.placement = "top"), J.includes(t.placement) || (m("ElMessage", `Invalid placement: ${t.placement}. Falling back to 'top'.`), t.placement = "top");
332
+ }, Q = (t) => {
333
+ let n = !t || e(t) || N(t) || i(t) ? { message: t } : t, r = {
334
+ ...Y,
335
+ ...n
336
+ };
337
+ return xe(r), Se(r), d(K.grouping) && !r.grouping && (r.grouping = K.grouping), h(K.duration) && r.duration === 3e3 && (r.duration = K.duration), h(K.offset) && r.offset === 16 && (r.offset = K.offset), d(K.showClose) && !r.showClose && (r.showClose = K.showClose), d(K.plain) && !r.plain && (r.plain = K.plain), r;
338
+ }, Ce = (e) => {
339
+ let t = X[e.props.placement || "top"], n = t.indexOf(e);
340
+ if (n === -1) return;
341
+ t.splice(n, 1);
342
+ let { handler: r } = e;
343
+ r.close();
344
+ }, we = ({ appendTo: e, ...t }, n) => {
345
+ let r = `message_${be++}`, a = t.onClose, o = document.createElement("div"), s = {
346
+ ...t,
347
+ id: r,
348
+ onClose: () => {
349
+ a == null || a(), Ce(u);
350
+ },
351
+ onDestroy: () => {
352
+ R(null, o);
353
+ }
354
+ }, c = j(ye, s, i(s.message) || N(s.message) ? { default: i(s.message) ? s.message : () => s.message } : null);
355
+ c.appContext = n || $._context, R(c, o), e.appendChild(o.firstElementChild);
356
+ let l = c.component, u = {
357
+ id: r,
358
+ vnode: c,
359
+ vm: l,
360
+ handler: { close: () => {
361
+ l.exposed.close();
362
+ } },
363
+ props: c.component.props
364
+ };
365
+ return u;
366
+ }, $ = (e = {}, t) => {
367
+ if (!g) return { close: () => void 0 };
368
+ let n = Q(e), r = me(n.placement || "top");
369
+ if (n.grouping && r.length) {
370
+ let e = r.find(({ vnode: e }) => {
371
+ var t;
372
+ return ((t = e.props) == null ? void 0 : t.message) === n.message;
373
+ });
374
+ if (e) return e.props.repeatNum += 1, e.props.type = n.type, e.handler;
375
+ }
376
+ if (h(K.max) && r.length >= K.max) return { close: () => void 0 };
377
+ let i = we(n, t);
378
+ return r.push(i), i.handler;
379
+ };
380
+ q.forEach((e) => {
381
+ $[e] = (t = {}, n) => $({
382
+ ...Q(t),
383
+ type: e
384
+ }, n);
385
+ });
386
+ function Te(e) {
387
+ for (let n in X) if (t(X, n)) {
388
+ let t = [...X[n]];
389
+ for (let n of t) (!e || e === n.props.type) && n.handler.close();
390
+ }
391
+ }
392
+ function Ee(e) {
393
+ X[e] && [...X[e]].forEach((e) => e.handler.close());
394
+ }
395
+ $.closeAll = Te, $.closeAllByPlacement = Ee, $._context = null;
396
+ //#endregion
397
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/message/index.mjs
398
+ var De = n($, "$message");
399
+ //#endregion
400
+ export { De as t };
@@ -0,0 +1,122 @@
1
+ import { o as e, s as t } from "./install.yLcn5MLL.mjs";
2
+ import { M as n, a as r, i, j as a, k as o, n as s, r as c, t as l } from "./style.BmlGmjpO.mjs";
3
+ import { t as u } from "./scroll.CzORc5Zk.mjs";
4
+ import { t as d } from "./vnode.D_SioRnx.mjs";
5
+ import { computed as f, createVNode as p, defineComponent as m, h, isRef as g, onBeforeUnmount as _, onMounted as v, onScopeDispose as y, ref as b, renderSlot as x, watch as S, watchEffect as C } from "vue";
6
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/hooks/use-draggable/index.mjs
7
+ var w = (e, t, n, r) => {
8
+ let i = {
9
+ offsetX: 0,
10
+ offsetY: 0
11
+ }, a = b(!1), o = (t, n) => {
12
+ if (e.value) {
13
+ let { offsetX: a, offsetY: o } = i, c = e.value.getBoundingClientRect(), l = c.left, u = c.top, d = c.width, f = c.height, p = document.documentElement.clientWidth, m = document.documentElement.clientHeight, h = -l + a, g = -u + o, _ = p - l - d + a, v = m - u - (f < m ? f : 0) + o;
14
+ r != null && r.value || (t = Math.min(Math.max(t, h), _), n = Math.min(Math.max(n, g), v)), i.offsetX = t, i.offsetY = n, e.value.style.transform = `translate(${s(t)}, ${s(n)})`;
15
+ }
16
+ }, c = (e) => {
17
+ let t = e.clientX, n = e.clientY, { offsetX: r, offsetY: s } = i, c = (e) => {
18
+ a.value || (a.value = !0), o(r + e.clientX - t, s + e.clientY - n);
19
+ }, l = () => {
20
+ a.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", l);
21
+ };
22
+ document.addEventListener("mousemove", c), document.addEventListener("mouseup", l);
23
+ }, l = () => {
24
+ t.value && e.value && (t.value.addEventListener("mousedown", c), window.addEventListener("resize", f));
25
+ }, u = () => {
26
+ t.value && e.value && (t.value.removeEventListener("mousedown", c), window.removeEventListener("resize", f));
27
+ }, d = () => {
28
+ i.offsetX = 0, i.offsetY = 0, e.value && (e.value.style.transform = "");
29
+ }, f = () => {
30
+ let { offsetX: e, offsetY: t } = i;
31
+ o(e, t);
32
+ };
33
+ return v(() => {
34
+ C(() => {
35
+ n.value ? l() : u();
36
+ });
37
+ }), _(() => {
38
+ u();
39
+ }), {
40
+ isDragging: a,
41
+ resetPosition: d,
42
+ updatePosition: f
43
+ };
44
+ }, T = (t, n = {}) => {
45
+ g(t) || o("[useLockscreen]", "You need to pass a ref param to this function");
46
+ let a = n.ns || e("popup"), s = f(() => a.bm("parent", "hidden")), d = 0, p = !1, m = "0", h = !1, _ = () => {
47
+ h || (h = !0, setTimeout(() => {
48
+ typeof document > "u" || p && document && (document.body.style.width = m, r(document.body, s.value));
49
+ }, 200));
50
+ };
51
+ S(t, (e) => {
52
+ if (!e) {
53
+ _();
54
+ return;
55
+ }
56
+ h = !1, p = !i(document.body, s.value), p && (m = document.body.style.width, l(document.body, s.value)), d = u(a.namespace.value);
57
+ let t = document.documentElement.clientHeight < document.body.scrollHeight, n = c(document.body, "overflowY");
58
+ d > 0 && (t || n === "scroll") && p && (document.body.style.width = `calc(100% - ${d}px)`);
59
+ }), y(() => _());
60
+ }, E = (e) => {
61
+ if (!e) return {
62
+ onClick: t,
63
+ onMousedown: t,
64
+ onMouseup: t
65
+ };
66
+ let n = !1, r = !1;
67
+ return {
68
+ onClick: (t) => {
69
+ n && r && e(t), n = r = !1;
70
+ },
71
+ onMousedown: (e) => {
72
+ n = e.target === e.currentTarget;
73
+ },
74
+ onMouseup: (e) => {
75
+ r = e.target === e.currentTarget;
76
+ }
77
+ };
78
+ }, D = a({
79
+ mask: {
80
+ type: Boolean,
81
+ default: !0
82
+ },
83
+ customMaskEvent: Boolean,
84
+ overlayClass: { type: n([
85
+ String,
86
+ Array,
87
+ Object
88
+ ]) },
89
+ zIndex: { type: n([String, Number]) }
90
+ }), O = { click: (e) => e instanceof MouseEvent }, k = "overlay", A = m({
91
+ name: "ElOverlay",
92
+ props: D,
93
+ emits: O,
94
+ setup(t, { slots: n, emit: r }) {
95
+ let i = e(k), { onClick: a, onMousedown: o, onMouseup: s } = E(t.customMaskEvent ? void 0 : (e) => {
96
+ r("click", e);
97
+ });
98
+ return () => t.mask ? p("div", {
99
+ class: [i.b(), t.overlayClass],
100
+ style: { zIndex: t.zIndex },
101
+ onClick: a,
102
+ onMousedown: o,
103
+ onMouseup: s
104
+ }, [x(n, "default")], d.STYLE | d.CLASS | d.PROPS, [
105
+ "onClick",
106
+ "onMouseup",
107
+ "onMousedown"
108
+ ]) : h("div", {
109
+ class: t.overlayClass,
110
+ style: {
111
+ zIndex: t.zIndex,
112
+ position: "fixed",
113
+ top: "0px",
114
+ right: "0px",
115
+ bottom: "0px",
116
+ left: "0px"
117
+ }
118
+ }, [x(n, "default")]);
119
+ }
120
+ });
121
+ //#endregion
122
+ export { w as i, E as n, T as r, A as t };
@@ -0,0 +1,56 @@
1
+ import { createLogger as e } from "@web-utils/core";
2
+ //#region src/components/utils/packages.ts
3
+ var t = {
4
+ AliOSS: {
5
+ url: "https://cdn.staticfile.org/ali-oss/6.17.1/aliyun-oss-sdk.min.js",
6
+ title: "阿里云云图片上传,需引入OSS的sdk",
7
+ github: "https://github.com/ali-sdk/ali-oss/"
8
+ },
9
+ Map: {
10
+ url: "https://webapi.amap.com/maps?v=1.4.11&key=xxxxx&plugin=AMap.PlaceSearch,https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",
11
+ title: "地图组件,需引入高德SDK"
12
+ },
13
+ MapUi: {
14
+ url: "https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",
15
+ title: "地图组件,需引入高德UISDK"
16
+ },
17
+ Sortable: {
18
+ url: "https://cdn.staticfile.org/Sortable/1.10.0-rc2/Sortable.min.js",
19
+ title: "拖拽,需引入sortableJs",
20
+ github: "https://github.com/SortableJS/Sortable"
21
+ },
22
+ Screenshot: {
23
+ url: "https://cdn.staticfile.org/html2canvas/0.5.0-beta4/html2canvas.min.js",
24
+ title: "需引入html2canvas依赖包",
25
+ github: "https://github.com/niklasvh/html2canvas/"
26
+ },
27
+ CryptoJS: {
28
+ url: "https://avuejs.com/cdn/CryptoJS.js",
29
+ title: "七牛云图片上传,需引入CryptoJS"
30
+ },
31
+ hljs: {
32
+ url: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js",
33
+ title: "需引入hljs框架包",
34
+ github: "https://github.com/highlightjs/highlight.js"
35
+ },
36
+ "file-saver": {
37
+ url: "https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js",
38
+ title: "需引入文件操作包",
39
+ github: "https://github.com/eligrey/FileSaver.js"
40
+ },
41
+ xlsx: {
42
+ url: "https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js",
43
+ title: "需引入excel操作包",
44
+ github: "https://github.com/protobi/js-xlsx"
45
+ },
46
+ mock: {
47
+ url: "https://cdn.staticfile.org/Mock.js/1.0.1-beta3/mock-min.js",
48
+ title: "需要引入mock模拟数据包",
49
+ github: "https://github.com/Colingo/mock"
50
+ }
51
+ }, n = { logs(n) {
52
+ let r = t[n], i = e(n);
53
+ i.warning(r.title), i.warning(`CDN:${r.url || "-"}`), i.warning(`GITHUB:${r.github || "-"}`);
54
+ } };
55
+ //#endregion
56
+ export { n as t };
@@ -0,0 +1,16 @@
1
+ //#region src/components/utils/directives/permission.ts
2
+ var e = (() => {
3
+ function e(e, t) {
4
+ t.value === !1 ? e.style.display = "none" : e.style.display = "";
5
+ }
6
+ return {
7
+ bind(t, n) {
8
+ e(t, n);
9
+ },
10
+ update(t, n) {
11
+ e(t, n);
12
+ }
13
+ };
14
+ })();
15
+ //#endregion
16
+ export { e as t };
@@ -0,0 +1,55 @@
1
+ import e from "photoswipe";
2
+ import "photoswipe/dist/photoswipe.css";
3
+ //#region src/components/photo-swipe/index.ts
4
+ function t(t) {
5
+ new e(t).init();
6
+ }
7
+ async function n(e, n, i = { selector: "chat-image" }) {
8
+ let a = e.target;
9
+ if (!(!a || a.classList.contains(i.selector) || a.tagName === "IMG")) return;
10
+ let o = n.querySelectorAll(i.selector === "img" ? i.selector : `.${i.selector}`), s = [...o].findIndex((e) => e === a);
11
+ s >= 0 && (i.index = s), await t({
12
+ dataSource: await r(o),
13
+ index: s
14
+ });
15
+ }
16
+ async function r(e) {
17
+ let t = [];
18
+ for (let n = 0, r = e.length; n < r; n++) {
19
+ let r = e[n], a = r.getAttribute("data-src") || r.getAttribute("src"), o = {
20
+ src: a,
21
+ msrc: a,
22
+ alt: r.getAttribute("data-title") || r.getAttribute("alt"),
23
+ element: r
24
+ }, s = r.getAttribute("data-height"), c = r.getAttribute("data-width"), l = {
25
+ width: c,
26
+ height: s
27
+ };
28
+ !s && !c && (l = await i(r), r.setAttribute("data-height", l.height), r.setAttribute("data-width", l.width)), o.w = l.width, o.width = l.width, o.h = l.height, o.height = l.height, t.push(o);
29
+ }
30
+ return t;
31
+ }
32
+ function i(e) {
33
+ let t = e.getAttribute("data-src") || e.getAttribute("src"), n = e.getAttribute("data-height"), r = e.getAttribute("data-width");
34
+ return n && r ? {
35
+ width: r,
36
+ height: n
37
+ } : e.complete ? {
38
+ width: e.naturalWidth,
39
+ height: e.naturalHeight
40
+ } : new Promise((e) => {
41
+ let n = new Image();
42
+ n.src = t;
43
+ let r = {
44
+ width: 0,
45
+ height: 0
46
+ };
47
+ n.complete ? (r.width = n.width, r.height = n.height, e(r)) : (n.onload = () => {
48
+ r.width = n.width, r.height = n.height, e(r);
49
+ }, n.onerror = () => {
50
+ r.width = 0, r.height = 0, e(r);
51
+ });
52
+ });
53
+ }
54
+ //#endregion
55
+ export { n as t };