@web-utils/component 5.0.0-beta02 → 5.0.0-beta03

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 (212) hide show
  1. package/awesome-button/index.mjs +24 -30
  2. package/{utils/style.css → base.css} +1 -1
  3. package/chat/index.mjs +3 -12
  4. package/chunks/{EditableTree.D0ByhRTi.mjs → EditableTree.CV8b95tW.mjs} +11 -20
  5. package/chunks/{ElementBaseInfo.B3pY8TkD.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
  6. package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
  7. package/chunks/{ElementForm.D_lXbe--.mjs → ElementForm.C7yebHWH.mjs} +12 -39
  8. package/chunks/{ElementListeners.Cufwd4bp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
  9. package/chunks/{ElementMultiInstance.BhY8NY2z.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
  10. package/chunks/{ElementOtherConfig.DX1ZJ9w2.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
  11. package/chunks/{ElementProperties.BRafADXp.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
  12. package/chunks/{ElementTaskConfig.B6pqRir_.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
  13. package/chunks/{FlowCondition.Dvwji23j.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
  14. package/chunks/{FlowDesigner.LL-vXDIE.mjs → FlowDesigner.DH1ypcUw.mjs} +15 -15
  15. package/chunks/{FormCascader.DMY3uNc8.mjs → FormCascader.BXL8lKww.mjs} +348 -346
  16. package/chunks/{FormInputTime.BC4FfWwY.mjs → FormInputTime.DzTPiDNh.mjs} +243 -242
  17. package/chunks/{FormItem.BSXI2cZU.mjs → FormItem.B8iPLduv.mjs} +1 -1
  18. package/chunks/{FormItemGroup.D2Htta7J.mjs → FormItemGroup.CCGqEapT.mjs} +27 -22
  19. package/chunks/{FormSelect.CY0K-izg.mjs → FormSelect.t0jbTL_K.mjs} +396 -394
  20. package/chunks/{FormSwitch.DLqFXaFF.mjs → FormSwitch.uoFQ-xp_.mjs} +26 -25
  21. package/chunks/{FormTemp.PJFfNRls.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
  22. package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
  23. package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.CgyGhetD.mjs} +15 -13
  24. package/chunks/{FyFormDesign.BCxVyiWY.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
  25. package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
  26. package/chunks/{ImagePreview.ByEWJYdu.mjs → ImagePreview.DDFrZgo5.mjs} +97 -87
  27. package/chunks/{PageableTable.Ba3XSbZ5.mjs → PageableTable.DR-REJN5.mjs} +5 -6
  28. package/chunks/{SignalAndMessage.DYhKWs3X.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
  29. package/chunks/{TableColumn.72HOXQkb.mjs → TableColumn.Cq9Bvevm.mjs} +2 -2
  30. package/chunks/{TableView.BxfsOAxU.mjs → TableView.DMWMaGLA.mjs} +26 -33
  31. package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
  32. package/chunks/{UserTaskListeners.CkeyTpnn.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
  33. package/chunks/{VueCron.DEvY5-i7.mjs → VueCron.BmPnLuu3.mjs} +3 -39
  34. package/chunks/{VueTreeSelect.C6Ycu28Z.mjs → VueTreeSelect.GHx4Z2lG.mjs} +10 -6
  35. package/chunks/button.gVyl7Y__.mjs +927 -0
  36. package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
  37. package/chunks/chunk.A6TnG60p.mjs +13 -0
  38. package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
  39. package/chunks/constants.Dw7hXt67.mjs +4 -0
  40. package/chunks/{dictionary.CNNpjPL2.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
  41. package/chunks/{event.Dv4XTu8B.mjs → event.CmOTnori.mjs} +4 -7
  42. package/chunks/event.ZRs4J5TN.mjs +4 -0
  43. package/chunks/{focus-trap.FbvlqAGe.mjs → focus-trap.CuUc8N2C.mjs} +27 -27
  44. package/chunks/{form-input.BUGZmAI1.mjs → form-input.DdSb45Tz.mjs} +3 -3
  45. package/chunks/{form-item.Ca8U2bIR.mjs → form-item.fYYCXvCs.mjs} +110 -106
  46. package/chunks/{icon.CxCY22-F.mjs → icon.AJYLfX1m.mjs} +7 -7
  47. package/chunks/{icon.ym7735_x.mjs → icon.niAg1zTC.mjs} +3 -3
  48. package/chunks/{init.6jGmuY99.mjs → init.CtUEiRbU.mjs} +5 -5
  49. package/chunks/input.B_wW4aF-.mjs +548 -0
  50. package/chunks/install.BJl2MN77.mjs +73 -0
  51. package/chunks/message-box.wGWcYSSd.mjs +463 -0
  52. package/chunks/{message.C4NdvfbE.mjs → message.DnTACuzV.mjs} +100 -99
  53. package/chunks/overlay.Rhu_rfhx.mjs +122 -0
  54. package/chunks/{radio.CeLeSOEo.mjs → radio.BMkZBhl5.mjs} +45 -44
  55. package/chunks/{scroll.DWjS-gnW.mjs → scroll.BJIpzi2Q.mjs} +2 -2
  56. package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
  57. package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
  58. package/chunks/{tag.ZhEIVRpP.mjs → tag.B6yUaGj-.mjs} +15 -15
  59. package/chunks/teleport.87mkIv8m.mjs +22 -0
  60. package/chunks/{tooltip.DNiltmX1.mjs → tooltip.Dzjs7LZ8.mjs} +397 -410
  61. package/chunks/typescript.D0a40c7B.mjs +4 -0
  62. package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
  63. package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
  64. package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
  65. package/chunks/{use-empty-values.D8KYIiKR.mjs → use-empty-values.CxYKjLV9.mjs} +3 -3
  66. package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
  67. package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
  68. package/chunks/use-id.CyzdvfQn.mjs +15 -0
  69. package/chunks/{use-locale.Be9HCpTQ.mjs → use-locale.CBoQRFjH.mjs} +1 -1
  70. package/chunks/{typescript.CLl-2siQ.mjs → use-size.CoorvF12.mjs} +4 -4
  71. package/chunks/validator.Drv0r2Nb.mjs +5 -0
  72. package/chunks/{vnode.C3PXzhmg.mjs → vnode.raM3wMJz.mjs} +2 -2
  73. package/confirm-button/index.mjs +1 -1
  74. package/confirmable/index.mjs +1 -1
  75. package/context-menu/index.mjs +39 -38
  76. package/data-table-picker/index.mjs +2 -6
  77. package/dynamic-table/index.mjs +1 -2
  78. package/editable-tree/index.mjs +1 -1
  79. package/element-dialog/index.mjs +1 -1
  80. package/element-dialog/style.css +1 -1
  81. package/empty-view/index.mjs +18 -20
  82. package/error-view/index.mjs +17 -19
  83. package/flex-column/index.mjs +1 -1
  84. package/flex-item/index.mjs +1 -1
  85. package/flex-row/index.mjs +1 -1
  86. package/flow/index.mjs +1 -1
  87. package/flow-designer/index.mjs +1 -1
  88. package/form-block/index.mjs +1 -1
  89. package/form-cascader/index.mjs +1 -1
  90. package/form-checkbox/index.mjs +4 -4
  91. package/form-checkbox-group/index.mjs +6 -6
  92. package/form-date-picker/index.mjs +3 -3
  93. package/form-holder/index.mjs +1 -1
  94. package/form-input/index.mjs +4 -4
  95. package/form-input-cron-expression/index.mjs +4 -4
  96. package/form-input-email/index.mjs +5 -5
  97. package/form-input-id-card/index.mjs +4 -4
  98. package/form-input-phone-number/index.mjs +4 -4
  99. package/form-input-tag/index.mjs +2 -2
  100. package/form-input-time/index.mjs +1 -1
  101. package/form-item/index.mjs +1 -1
  102. package/form-item-group/index.mjs +1 -1
  103. package/form-radio-group/index.mjs +6 -6
  104. package/form-select/index.mjs +1 -1
  105. package/form-switch/index.mjs +1 -1
  106. package/form-table/index.mjs +2 -2
  107. package/form-table-plus/index.mjs +4 -4
  108. package/form-textarea/index.mjs +4 -4
  109. package/form-tree-select/index.mjs +3 -3
  110. package/form-tree-select-multiple/index.mjs +3 -3
  111. package/fy-array/index.mjs +1 -1
  112. package/fy-cascader/index.mjs +1 -1
  113. package/fy-checkbox/index.mjs +1 -1
  114. package/fy-code/index.mjs +2 -2
  115. package/fy-curd/index.mjs +1 -1
  116. package/fy-date/index.mjs +1 -1
  117. package/fy-dynamic/index.mjs +3 -7
  118. package/fy-form/index.mjs +1 -1
  119. package/fy-form/style.css +1 -1
  120. package/fy-form-design/index.mjs +1 -1
  121. package/fy-form-design/style.css +1 -1
  122. package/fy-input/index.mjs +1 -1
  123. package/fy-input-color/index.mjs +1 -2
  124. package/fy-input-icon/index.mjs +37 -32
  125. package/fy-input-map/index.mjs +1 -1
  126. package/fy-input-number/index.mjs +1 -1
  127. package/fy-input-table/index.mjs +1 -1
  128. package/fy-input-tree/index.mjs +3 -3
  129. package/fy-input-tree/style.css +1 -1
  130. package/fy-radio/index.mjs +2 -2
  131. package/fy-rate/index.mjs +2 -2
  132. package/fy-select/index.mjs +5 -5
  133. package/fy-slider/index.mjs +1 -1
  134. package/fy-switch/index.mjs +2 -2
  135. package/fy-time/index.mjs +1 -1
  136. package/fy-title/index.mjs +1 -1
  137. package/fy-tree/index.mjs +1 -1
  138. package/fy-u-editor/index.mjs +1 -1
  139. package/fy-upload/index.mjs +1 -1
  140. package/guide-steps/index.mjs +1 -1
  141. package/helper-function.d.ts +3 -4
  142. package/helper-function.mjs +31 -22
  143. package/iframe-window/index.mjs +30 -29
  144. package/image-cropper/index.mjs +144 -163
  145. package/image-cropper/style.css +1 -1
  146. package/image-preview/index.mjs +1 -1
  147. package/index.d.ts +1 -2
  148. package/index.mjs +91 -92
  149. package/input-number-range/index.mjs +0 -2
  150. package/keyboard/index.mjs +1 -1
  151. package/monaco-editor/index.mjs +1 -1
  152. package/nav-bar/index.mjs +1 -1
  153. package/notice/index.mjs +1 -4
  154. package/package.json +11 -13
  155. package/pageable-table/index.mjs +1 -1
  156. package/pageable-view/index.mjs +2 -2
  157. package/photo-swipe/index.mjs +1 -1
  158. package/picker-table-view/index.mjs +4 -8
  159. package/record-video/index.mjs +1 -1
  160. package/resize-observer/index.mjs +1 -1
  161. package/search/index.mjs +2 -2
  162. package/split-pane/index.mjs +1 -1
  163. package/static-pageable-table/index.mjs +1 -4
  164. package/sub-table/index.mjs +2 -5
  165. package/sub-table-plus/index.mjs +3 -6
  166. package/tab/index.mjs +1 -1
  167. package/tab-item/index.mjs +1 -1
  168. package/table-column/index.mjs +1 -1
  169. package/table-view/index.mjs +1 -1
  170. package/tag-render/index.mjs +28 -24
  171. package/toolbar/index.mjs +1 -1
  172. package/toolbar-button/index.mjs +2 -143
  173. package/vue-cron/index.mjs +1 -1
  174. package/vue-tags-input/index.mjs +1 -1
  175. package/vue-tree-select/index.mjs +1 -1
  176. package/watermark/index.mjs +1 -1
  177. package/web-types.json +250 -382
  178. package/x-input-tag/index.mjs +0 -3
  179. package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
  180. package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
  181. package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
  182. package/chunks/event.B4iwtUNO.mjs +0 -4
  183. package/chunks/input.C2GWsuXE.mjs +0 -547
  184. package/chunks/install.yLcn5MLL.mjs +0 -84
  185. package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
  186. package/chunks/use-global-config.DRovgom9.mjs +0 -57
  187. package/chunks/validator.DuBSEj8O.mjs +0 -5
  188. package/login/index.mjs +0 -252
  189. package/login/style.css +0 -1
  190. /package/chunks/{FormBlock.Co7l6USP.mjs → FormBlock.D6kZl7sm.mjs} +0 -0
  191. /package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
  192. /package/chunks/{Keyboard.4hi7CjGc.mjs → Keyboard.DBspwbYo.mjs} +0 -0
  193. /package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.Bq9d6JSz.mjs} +0 -0
  194. /package/chunks/{RecordVideo.VRFTaHSp.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
  195. /package/chunks/{SplitPane.Bwe5Rc0J.mjs → SplitPane.DNNid7WB.mjs} +0 -0
  196. /package/chunks/{Toolbar.BVziVmyT.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
  197. /package/chunks/{core.DXaMPWGV.mjs → core.Blrh_Fjl.mjs} +0 -0
  198. /package/chunks/{dataformat.CteBVoOe.mjs → dataformat.F7GtAoiN.mjs} +0 -0
  199. /package/chunks/{dic.C0abEij9.mjs → dic.NZCGhtA7.mjs} +0 -0
  200. /package/chunks/{dictionary.BRhZD-WH.mjs → dictionary.DXYdZefs.mjs} +0 -0
  201. /package/chunks/{form-pick.DT5kumy4.mjs → form-pick.BEC7lrNH.mjs} +0 -0
  202. /package/chunks/{form-validate.CUvMwtPN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
  203. /package/chunks/{packages.BLDb9e6G.mjs → packages.CONbEH13.mjs} +0 -0
  204. /package/chunks/{permission.C-IUDxQQ.mjs → permission.8WDtOmzA.mjs} +0 -0
  205. /package/chunks/{photo-swipe.BxnG4lip.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
  206. /package/chunks/{slot.DT5QwXL-.mjs → slot.CZCo32Cw.mjs} +0 -0
  207. /package/chunks/{sub-table-plus-props.CRX7ERxJ.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
  208. /package/chunks/{tab-mixin.7zuMMM1E.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
  209. /package/chunks/{util.Ce4MHRmD.mjs → util.fjuzrmWz.mjs} +0 -0
  210. /package/chunks/{utilSelf.BttmSVX6.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
  211. /package/chunks/{utils.BGJfM4oG.mjs → utils.C37EhJ-u.mjs} +0 -0
  212. /package/chunks/{utils.CSPl1l4f.mjs → utils.C8RvIGLM.mjs} +0 -0
@@ -1,17 +1,18 @@
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, l as s, r as c } from "./use-empty-values.D8KYIiKR.mjs";
3
- import { i as l, t as u } from "./typescript.CLl-2siQ.mjs";
4
- import { D as d, F as f, I as p, M as m, O as h, R as g, S as _, b as ee, j as v, n as y, v as te } from "./style.BmlGmjpO.mjs";
5
- import { t as b } from "./icon.ym7735_x.mjs";
6
- import { i as x, n as S, t as ne } from "./icon.CxCY22-F.mjs";
7
- import { n as re, t as C } from "./use-global-config.DRovgom9.mjs";
1
+ import { c as e, l as t, r as n } from "./use-empty-values.CxYKjLV9.mjs";
2
+ import { r } from "./use-size.CoorvF12.mjs";
3
+ import { _ as i, l as a, n as o, o as s, p as c, t as l } from "./install.BJl2MN77.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.CraPDfJA.mjs";
5
+ import { t as y } from "./icon.niAg1zTC.mjs";
6
+ import { a as b, n as ne, r as x } from "./icon.AJYLfX1m.mjs";
7
+ import { t as S } from "./typescript.D0a40c7B.mjs";
8
+ import { n as re, t as C } from "./use-global-config.Dkt91Ob3.mjs";
8
9
  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
10
  //#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({
11
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/badge/index.mjs
12
+ var de = l(/* @__PURE__ */ M({
12
13
  name: "ElBadge",
13
14
  __name: "badge",
14
- props: v({
15
+ props: _({
15
16
  value: {
16
17
  type: [String, Number],
17
18
  default: ""
@@ -38,63 +39,63 @@ var de = a(/* @__PURE__ */ M({
38
39
  default: !0
39
40
  },
40
41
  color: String,
41
- badgeStyle: { type: m([
42
+ badgeStyle: { type: p([
42
43
  String,
43
44
  Object,
44
45
  Array
45
46
  ]) },
46
47
  offset: {
47
- type: m(Array),
48
+ type: p(Array),
48
49
  default: () => [0, 0]
49
50
  },
50
51
  badgeClass: { type: String }
51
52
  }),
52
53
  setup(e, { expose: t }) {
53
- let n = e, i = r("badge"), a = T(() => n.isDot ? "" : g(n.value) && g(n.max) && n.max < n.value ? `${n.max}+` : `${n.value}`), o = T(() => [{
54
+ let n = e, r = s("badge"), i = T(() => n.isDot ? "" : h(n.value) && h(n.max) && n.max < n.value ? `${n.max}+` : `${n.value}`), a = T(() => [{
54
55
  backgroundColor: n.color,
55
- marginRight: y(-n.offset[0]),
56
- marginTop: y(n.offset[1])
56
+ marginRight: v(-n.offset[0]),
57
+ marginTop: v(n.offset[1])
57
58
  }, 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", {
59
+ return t({ content: i }), (t, n) => (I(), O("div", { class: P(H(r).b()) }, [z(t.$slots, "default"), j(w, { name: `${H(r).namespace.value}-zoom-in-center` }, {
60
+ default: W(() => [!e.hidden && (i.value || e.isDot || t.$slots.content) ? (I(), O("sup", {
60
61
  key: 0,
61
62
  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),
63
+ H(r).e("content"),
64
+ H(r).em("content", e.type),
65
+ H(r).is("fixed", !!t.$slots.default),
66
+ H(r).is("dot", e.isDot),
67
+ H(r).is("hide-zero", !e.showZero && e.value === 0),
67
68
  e.badgeClass
68
69
  ]),
69
- style: F(o.value)
70
- }, [z(t.$slots, "content", { value: a.value }, () => [A(V(a.value), 1)])], 6)) : D("v-if", !0)]),
70
+ style: F(a.value)
71
+ }, [z(t.$slots, "content", { value: i.value }, () => [A(V(i.value), 1)])], 6)) : D("v-if", !0)]),
71
72
  _: 3
72
73
  }, 8, ["name"])], 2));
73
74
  }
74
- })), G = v({
75
+ })), G = _({
75
76
  a11y: {
76
77
  type: Boolean,
77
78
  default: !0
78
79
  },
79
- locale: { type: m(Object) },
80
- size: l,
81
- button: { type: m(Object) },
82
- card: { type: m(Object) },
83
- dialog: { type: m(Object) },
84
- link: { type: m(Object) },
85
- experimentalFeatures: { type: m(Object) },
80
+ locale: { type: p(Object) },
81
+ size: r,
82
+ button: { type: p(Object) },
83
+ card: { type: p(Object) },
84
+ dialog: { type: p(Object) },
85
+ link: { type: p(Object) },
86
+ experimentalFeatures: { type: p(Object) },
86
87
  keyboardNavigation: {
87
88
  type: Boolean,
88
89
  default: !0
89
90
  },
90
- message: { type: m(Object) },
91
+ message: { type: p(Object) },
91
92
  zIndex: Number,
92
93
  namespace: {
93
94
  type: String,
94
95
  default: "el"
95
96
  },
96
- table: { type: m(Object) },
97
- ...c
97
+ table: { type: p(Object) },
98
+ ...n
98
99
  }), K = { placement: "top" };
99
100
  M({
100
101
  name: "ElConfigProvider",
@@ -111,7 +112,7 @@ M({
111
112
  }
112
113
  });
113
114
  //#endregion
114
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/message/src/message.mjs
115
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/message/src/message.mjs
115
116
  var q = [
116
117
  "primary",
117
118
  "success",
@@ -125,7 +126,7 @@ var q = [
125
126
  "bottom",
126
127
  "bottom-left",
127
128
  "bottom-right"
128
- ], Y = u({
129
+ ], Y = S({
129
130
  customClass: "",
130
131
  dangerouslyUseHTMLString: !1,
131
132
  duration: 3e3,
@@ -141,8 +142,8 @@ var q = [
141
142
  zIndex: 0,
142
143
  grouping: !1,
143
144
  repeatNum: 1,
144
- appendTo: _ ? document.body : void 0
145
- }), fe = v({
145
+ appendTo: g ? document.body : void 0
146
+ }), fe = _({
146
147
  customClass: {
147
148
  type: String,
148
149
  default: Y.customClass
@@ -156,7 +157,7 @@ var q = [
156
157
  default: Y.duration
157
158
  },
158
159
  icon: {
159
- type: x,
160
+ type: b,
160
161
  default: Y.icon
161
162
  },
162
163
  id: {
@@ -164,7 +165,7 @@ var q = [
164
165
  default: Y.id
165
166
  },
166
167
  message: {
167
- type: m([
168
+ type: p([
168
169
  String,
169
170
  Object,
170
171
  Function
@@ -172,7 +173,7 @@ var q = [
172
173
  default: Y.message
173
174
  },
174
175
  onClose: {
175
- type: m(Function),
176
+ type: p(Function),
176
177
  default: Y.onClose
177
178
  },
178
179
  showClose: {
@@ -223,18 +224,18 @@ var q = [
223
224
  __name: "message",
224
225
  props: fe,
225
226
  emits: pe,
226
- setup(e, { expose: t, emit: n }) {
227
- let { Close: r } = ne, i = e, a = n, c = L(!1), { ns: l, zIndex: u } = re("message"), { currentZIndex: f, nextZIndex: p } = u, m = L(), h = L(!1), g = L(0), _, v = T(() => i.type ? i.type === "error" ? "danger" : i.type : "info"), y = T(() => {
228
- let e = i.type;
229
- return { [l.bm("icon", e)]: e && S[e] };
230
- }), x = T(() => i.icon || S[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(() => ({
227
+ setup(n, { expose: r, emit: i }) {
228
+ let { Close: a } = ne, o = n, s = i, c = L(!1), { ns: l, zIndex: d } = re("message"), { currentZIndex: f, nextZIndex: p } = d, m = L(), h = L(!1), g = L(0), _, v = T(() => o.type ? o.type === "error" ? "danger" : o.type : "info"), b = T(() => {
229
+ let e = o.type;
230
+ return { [l.bm("icon", e)]: e && x[e] };
231
+ }), S = T(() => o.icon || x[o.type] || ""), C = T(() => o.placement || "top"), A = T(() => ge(o.id, C.value)), M = T(() => _e(o.id, o.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
232
  [B.value]: `${M.value}px`,
232
233
  zIndex: f.value
233
234
  }));
234
235
  function K() {
235
- i.duration !== 0 && ({stop: _} = d(() => {
236
+ o.duration !== 0 && ({stop: _} = u(() => {
236
237
  J();
237
- }, i.duration));
238
+ }, o.duration));
238
239
  }
239
240
  function q() {
240
241
  _ == null || _();
@@ -243,51 +244,51 @@ var q = [
243
244
  h.value = !1, ae(() => {
244
245
  if (!c.value) {
245
246
  var e;
246
- (e = i.onClose) == null || e.call(i), a("destroy");
247
+ (e = o.onClose) == null || e.call(o), s("destroy");
247
248
  }
248
249
  });
249
250
  }
250
- function Y(e) {
251
- o(e) === s.esc && J();
251
+ function Y(n) {
252
+ e(n) === t.esc && J();
252
253
  }
253
254
  return oe(() => {
254
255
  K(), p(), h.value = !0;
255
- }), U(() => i.repeatNum, () => {
256
+ }), U(() => o.repeatNum, () => {
256
257
  q(), K();
257
258
  }), te(document, "keydown", Y), ee(m, () => {
258
259
  g.value = m.value.getBoundingClientRect().height;
259
- }), t({
260
+ }), r({
260
261
  visible: h,
261
262
  bottom: N,
262
263
  close: J
263
- }), (t, n) => (I(), E(w, {
264
+ }), (e, t) => (I(), E(w, {
264
265
  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")),
266
+ onBeforeEnter: t[0] || (t[0] = (e) => c.value = !0),
267
+ onBeforeLeave: n.onClose,
268
+ onAfterLeave: t[1] || (t[1] = (t) => e.$emit("destroy")),
268
269
  persisted: ""
269
270
  }, {
270
271
  default: W(() => [le(k("div", {
271
- id: e.id,
272
+ id: n.id,
272
273
  ref_key: "messageRef",
273
274
  ref: m,
274
275
  class: P([
275
276
  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),
277
+ { [H(l).m(n.type)]: n.type },
278
+ H(l).is("closable", n.showClose),
279
+ H(l).is("plain", n.plain),
279
280
  H(l).is("bottom", B.value === "bottom"),
280
281
  R.value,
281
- e.customClass
282
+ n.customClass
282
283
  ]),
283
284
  style: F(G.value),
284
285
  role: "alert",
285
286
  onMouseenter: q,
286
287
  onMouseleave: K
287
288
  }, [
288
- e.repeatNum > 1 ? (I(), E(H(de), {
289
+ n.repeatNum > 1 ? (I(), E(H(de), {
289
290
  key: 0,
290
- value: e.repeatNum,
291
+ value: n.repeatNum,
291
292
  type: v.value,
292
293
  class: P(H(l).e("badge"))
293
294
  }, null, 8, [
@@ -295,46 +296,46 @@ var q = [
295
296
  "type",
296
297
  "class"
297
298
  ])) : D("v-if", !0),
298
- x.value ? (I(), E(H(b), {
299
+ S.value ? (I(), E(H(y), {
299
300
  key: 1,
300
- class: P([H(l).e("icon"), y.value])
301
+ class: P([H(l).e("icon"), b.value])
301
302
  }, {
302
- default: W(() => [(I(), E(se(x.value)))]),
303
+ default: W(() => [(I(), E(se(S.value)))]),
303
304
  _: 1
304
305
  }, 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
+ z(e.$slots, "default", {}, () => [n.dangerouslyUseHTMLString ? (I(), O(ie, { key: 1 }, [D(" Caution here, message could've been compromised, never use user's input as message "), k("p", {
306
307
  class: P(H(l).e("content")),
307
- innerHTML: e.message
308
+ innerHTML: n.message
308
309
  }, null, 10, Z)], 2112)) : (I(), O("p", {
309
310
  key: 0,
310
311
  class: P(H(l).e("content"))
311
- }, V(e.message), 3))]),
312
- e.showClose ? (I(), E(H(b), {
312
+ }, V(n.message), 3))]),
313
+ n.showClose ? (I(), E(H(y), {
313
314
  key: 2,
314
315
  class: P(H(l).e("closeBtn")),
315
316
  onClick: ue(J, ["stop"])
316
317
  }, {
317
- default: W(() => [j(H(r))]),
318
+ default: W(() => [j(H(a))]),
318
319
  _: 1
319
320
  }, 8, ["class"])) : D("v-if", !0)
320
321
  ], 46, ve), [[ce, h.value]])]),
321
322
  _: 3
322
323
  }, 8, ["name", "onBeforeLeave"]));
323
324
  }
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
- p(e) || (h("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), e = document.body), t.appendTo = e;
325
+ }), be = 1, xe = (e) => {
326
+ if (!e.appendTo) e.appendTo = document.body;
327
+ else if (i(e.appendTo)) {
328
+ let t = document.querySelector(e.appendTo);
329
+ f(t) || (m("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), t = document.body), e.appendTo = t;
329
330
  }
330
- }, Se = (t) => {
331
- !t.placement && e(K.placement) && K.placement && (t.placement = K.placement), t.placement || (t.placement = "top"), J.includes(t.placement) || (h("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 = {
331
+ }, Se = (e) => {
332
+ !e.placement && i(K.placement) && K.placement && (e.placement = K.placement), e.placement || (e.placement = "top"), J.includes(e.placement) || (m("ElMessage", `Invalid placement: ${e.placement}. Falling back to 'top'.`), e.placement = "top");
333
+ }, Q = (e) => {
334
+ let t = !e || i(e) || N(e) || c(e) ? { message: e } : e, n = {
334
335
  ...Y,
335
- ...n
336
+ ...t
336
337
  };
337
- return xe(r), Se(r), f(K.grouping) && !r.grouping && (r.grouping = K.grouping), g(K.duration) && r.duration === 3e3 && (r.duration = K.duration), g(K.offset) && r.offset === 16 && (r.offset = K.offset), f(K.showClose) && !r.showClose && (r.showClose = K.showClose), f(K.plain) && !r.plain && (r.plain = K.plain), r;
338
+ return xe(n), Se(n), d(K.grouping) && !n.grouping && (n.grouping = K.grouping), h(K.duration) && n.duration === 3e3 && (n.duration = K.duration), h(K.offset) && n.offset === 16 && (n.offset = K.offset), d(K.showClose) && !n.showClose && (n.showClose = K.showClose), d(K.plain) && !n.plain && (n.plain = K.plain), n;
338
339
  }, Ce = (e) => {
339
340
  let t = X[e.props.placement || "top"], n = t.indexOf(e);
340
341
  if (n === -1) return;
@@ -342,29 +343,29 @@ var q = [
342
343
  let { handler: r } = e;
343
344
  r.close();
344
345
  }, we = ({ appendTo: e, ...t }, n) => {
345
- let r = `message_${be++}`, a = t.onClose, o = document.createElement("div"), s = {
346
+ let r = `message_${be++}`, i = t.onClose, a = document.createElement("div"), o = {
346
347
  ...t,
347
348
  id: r,
348
349
  onClose: () => {
349
- a == null || a(), Ce(u);
350
+ i == null || i(), Ce(u);
350
351
  },
351
352
  onDestroy: () => {
352
- R(null, o);
353
+ R(null, a);
353
354
  }
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 = {
355
+ }, s = j(ye, o, c(o.message) || N(o.message) ? { default: c(o.message) ? o.message : () => o.message } : null);
356
+ s.appContext = n || $._context, R(s, a), e.appendChild(a.firstElementChild);
357
+ let l = s.component, u = {
357
358
  id: r,
358
- vnode: c,
359
+ vnode: s,
359
360
  vm: l,
360
361
  handler: { close: () => {
361
362
  l.exposed.close();
362
363
  } },
363
- props: c.component.props
364
+ props: s.component.props
364
365
  };
365
366
  return u;
366
367
  }, $ = (e = {}, t) => {
367
- if (!_) return { close: () => void 0 };
368
+ if (!g) return { close: () => void 0 };
368
369
  let n = Q(e), r = me(n.placement || "top");
369
370
  if (n.grouping && r.length) {
370
371
  let e = r.find(({ vnode: e }) => {
@@ -373,7 +374,7 @@ var q = [
373
374
  });
374
375
  if (e) return e.props.repeatNum += 1, e.props.type = n.type, e.handler;
375
376
  }
376
- if (g(K.max) && r.length >= K.max) return { close: () => void 0 };
377
+ if (h(K.max) && r.length >= K.max) return { close: () => void 0 };
377
378
  let i = we(n, t);
378
379
  return r.push(i), i.handler;
379
380
  };
@@ -384,9 +385,9 @@ q.forEach((e) => {
384
385
  }, n);
385
386
  });
386
387
  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();
388
+ for (let t in X) if (a(X, t)) {
389
+ let n = [...X[t]];
390
+ for (let t of n) (!e || e === t.props.type) && t.handler.close();
390
391
  }
391
392
  }
392
393
  function Ee(e) {
@@ -394,7 +395,7 @@ function Ee(e) {
394
395
  }
395
396
  $.closeAll = Te, $.closeAllByPlacement = Ee, $._context = null;
396
397
  //#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");
398
+ //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/message/index.mjs
399
+ var De = o($, "$message");
399
400
  //#endregion
400
401
  export { De as t };
@@ -0,0 +1,122 @@
1
+ import { o as e, s as t } from "./install.BJl2MN77.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.CraPDfJA.mjs";
3
+ import { t as u } from "./scroll.BJIpzi2Q.mjs";
4
+ import { t as d } from "./vnode.raM3wMJz.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_b86181ecd25892dfea09546870d44c51/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 };