@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.
- package/awesome-button/index.mjs +24 -30
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.D0ByhRTi.mjs → EditableTree.CV8b95tW.mjs} +11 -20
- package/chunks/{ElementBaseInfo.B3pY8TkD.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.D_lXbe--.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Cufwd4bp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.BhY8NY2z.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.DX1ZJ9w2.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.BRafADXp.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.B6pqRir_.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.Dvwji23j.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.LL-vXDIE.mjs → FlowDesigner.DH1ypcUw.mjs} +15 -15
- package/chunks/{FormCascader.DMY3uNc8.mjs → FormCascader.BXL8lKww.mjs} +348 -346
- package/chunks/{FormInputTime.BC4FfWwY.mjs → FormInputTime.DzTPiDNh.mjs} +243 -242
- package/chunks/{FormItem.BSXI2cZU.mjs → FormItem.B8iPLduv.mjs} +1 -1
- package/chunks/{FormItemGroup.D2Htta7J.mjs → FormItemGroup.CCGqEapT.mjs} +27 -22
- package/chunks/{FormSelect.CY0K-izg.mjs → FormSelect.t0jbTL_K.mjs} +396 -394
- package/chunks/{FormSwitch.DLqFXaFF.mjs → FormSwitch.uoFQ-xp_.mjs} +26 -25
- package/chunks/{FormTemp.PJFfNRls.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.CgyGhetD.mjs} +15 -13
- package/chunks/{FyFormDesign.BCxVyiWY.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/{ImagePreview.ByEWJYdu.mjs → ImagePreview.DDFrZgo5.mjs} +97 -87
- package/chunks/{PageableTable.Ba3XSbZ5.mjs → PageableTable.DR-REJN5.mjs} +5 -6
- package/chunks/{SignalAndMessage.DYhKWs3X.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.72HOXQkb.mjs → TableColumn.Cq9Bvevm.mjs} +2 -2
- package/chunks/{TableView.BxfsOAxU.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.CkeyTpnn.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.DEvY5-i7.mjs → VueCron.BmPnLuu3.mjs} +3 -39
- package/chunks/{VueTreeSelect.C6Ycu28Z.mjs → VueTreeSelect.GHx4Z2lG.mjs} +10 -6
- package/chunks/button.gVyl7Y__.mjs +927 -0
- package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
- package/chunks/chunk.A6TnG60p.mjs +13 -0
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
- package/chunks/constants.Dw7hXt67.mjs +4 -0
- package/chunks/{dictionary.CNNpjPL2.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.Dv4XTu8B.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.FbvlqAGe.mjs → focus-trap.CuUc8N2C.mjs} +27 -27
- package/chunks/{form-input.BUGZmAI1.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.Ca8U2bIR.mjs → form-item.fYYCXvCs.mjs} +110 -106
- package/chunks/{icon.CxCY22-F.mjs → icon.AJYLfX1m.mjs} +7 -7
- package/chunks/{icon.ym7735_x.mjs → icon.niAg1zTC.mjs} +3 -3
- package/chunks/{init.6jGmuY99.mjs → init.CtUEiRbU.mjs} +5 -5
- package/chunks/input.B_wW4aF-.mjs +548 -0
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.C4NdvfbE.mjs → message.DnTACuzV.mjs} +100 -99
- package/chunks/overlay.Rhu_rfhx.mjs +122 -0
- package/chunks/{radio.CeLeSOEo.mjs → radio.BMkZBhl5.mjs} +45 -44
- package/chunks/{scroll.DWjS-gnW.mjs → scroll.BJIpzi2Q.mjs} +2 -2
- package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
- package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
- package/chunks/{tag.ZhEIVRpP.mjs → tag.B6yUaGj-.mjs} +15 -15
- package/chunks/teleport.87mkIv8m.mjs +22 -0
- package/chunks/{tooltip.DNiltmX1.mjs → tooltip.Dzjs7LZ8.mjs} +397 -410
- package/chunks/typescript.D0a40c7B.mjs +4 -0
- package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
- package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
- package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
- package/chunks/{use-empty-values.D8KYIiKR.mjs → use-empty-values.CxYKjLV9.mjs} +3 -3
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/use-id.CyzdvfQn.mjs +15 -0
- package/chunks/{use-locale.Be9HCpTQ.mjs → use-locale.CBoQRFjH.mjs} +1 -1
- package/chunks/{typescript.CLl-2siQ.mjs → use-size.CoorvF12.mjs} +4 -4
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.C3PXzhmg.mjs → vnode.raM3wMJz.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +39 -38
- package/data-table-picker/index.mjs +2 -6
- package/dynamic-table/index.mjs +1 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +18 -20
- package/error-view/index.mjs +17 -19
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +5 -5
- package/form-input-id-card/index.mjs +4 -4
- package/form-input-phone-number/index.mjs +4 -4
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +6 -6
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +4 -4
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +3 -7
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -2
- package/fy-input-icon/index.mjs +37 -32
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +3 -3
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +5 -5
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +2 -2
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/guide-steps/index.mjs +1 -1
- package/helper-function.d.ts +3 -4
- package/helper-function.mjs +31 -22
- package/iframe-window/index.mjs +30 -29
- package/image-cropper/index.mjs +144 -163
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.d.ts +1 -2
- package/index.mjs +91 -92
- package/input-number-range/index.mjs +0 -2
- package/keyboard/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/nav-bar/index.mjs +1 -1
- package/notice/index.mjs +1 -4
- package/package.json +11 -13
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +2 -2
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -8
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/split-pane/index.mjs +1 -1
- package/static-pageable-table/index.mjs +1 -4
- package/sub-table/index.mjs +2 -5
- package/sub-table-plus/index.mjs +3 -6
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +28 -24
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +2 -143
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +250 -382
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
- package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
- package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/input.C2GWsuXE.mjs +0 -547
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
- package/chunks/use-global-config.DRovgom9.mjs +0 -57
- package/chunks/validator.DuBSEj8O.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FormBlock.Co7l6USP.mjs → FormBlock.D6kZl7sm.mjs} +0 -0
- /package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{Keyboard.4hi7CjGc.mjs → Keyboard.DBspwbYo.mjs} +0 -0
- /package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.Bq9d6JSz.mjs} +0 -0
- /package/chunks/{RecordVideo.VRFTaHSp.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Bwe5Rc0J.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.BVziVmyT.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DXaMPWGV.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.CteBVoOe.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.C0abEij9.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.BRhZD-WH.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.DT5kumy4.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.CUvMwtPN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BLDb9e6G.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.C-IUDxQQ.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BxnG4lip.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.DT5QwXL-.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.CRX7ERxJ.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.7zuMMM1E.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.Ce4MHRmD.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.BttmSVX6.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.BGJfM4oG.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.CSPl1l4f.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as
|
|
4
|
-
import { D as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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.
|
|
11
|
-
var de =
|
|
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:
|
|
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:
|
|
42
|
+
badgeStyle: { type: p([
|
|
42
43
|
String,
|
|
43
44
|
Object,
|
|
44
45
|
Array
|
|
45
46
|
]) },
|
|
46
47
|
offset: {
|
|
47
|
-
type:
|
|
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,
|
|
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:
|
|
56
|
-
marginTop:
|
|
56
|
+
marginRight: v(-n.offset[0]),
|
|
57
|
+
marginTop: v(n.offset[1])
|
|
57
58
|
}, n.badgeStyle ?? {}]);
|
|
58
|
-
return t({ content:
|
|
59
|
-
default: W(() => [!e.hidden && (
|
|
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(
|
|
63
|
-
H(
|
|
64
|
-
H(
|
|
65
|
-
H(
|
|
66
|
-
H(
|
|
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(
|
|
70
|
-
}, [z(t.$slots, "content", { value:
|
|
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 =
|
|
75
|
+
})), G = _({
|
|
75
76
|
a11y: {
|
|
76
77
|
type: Boolean,
|
|
77
78
|
default: !0
|
|
78
79
|
},
|
|
79
|
-
locale: { type:
|
|
80
|
-
size:
|
|
81
|
-
button: { type:
|
|
82
|
-
card: { type:
|
|
83
|
-
dialog: { type:
|
|
84
|
-
link: { type:
|
|
85
|
-
experimentalFeatures: { type:
|
|
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:
|
|
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:
|
|
97
|
-
...
|
|
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.
|
|
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 =
|
|
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:
|
|
145
|
-
}), fe =
|
|
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:
|
|
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:
|
|
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:
|
|
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(
|
|
227
|
-
let { Close:
|
|
228
|
-
let e =
|
|
229
|
-
return { [l.bm("icon", e)]: e &&
|
|
230
|
-
}),
|
|
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
|
-
|
|
236
|
+
o.duration !== 0 && ({stop: _} = u(() => {
|
|
236
237
|
J();
|
|
237
|
-
},
|
|
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 =
|
|
247
|
+
(e = o.onClose) == null || e.call(o), s("destroy");
|
|
247
248
|
}
|
|
248
249
|
});
|
|
249
250
|
}
|
|
250
|
-
function Y(
|
|
251
|
-
|
|
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(() =>
|
|
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
|
-
}),
|
|
260
|
+
}), r({
|
|
260
261
|
visible: h,
|
|
261
262
|
bottom: N,
|
|
262
263
|
close: J
|
|
263
|
-
}), (
|
|
264
|
+
}), (e, t) => (I(), E(w, {
|
|
264
265
|
name: H(l).b("fade"),
|
|
265
|
-
onBeforeEnter:
|
|
266
|
-
onBeforeLeave:
|
|
267
|
-
onAfterLeave:
|
|
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:
|
|
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(
|
|
277
|
-
H(l).is("closable",
|
|
278
|
-
H(l).is("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
|
-
|
|
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
|
-
|
|
289
|
+
n.repeatNum > 1 ? (I(), E(H(de), {
|
|
289
290
|
key: 0,
|
|
290
|
-
value:
|
|
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
|
-
|
|
299
|
+
S.value ? (I(), E(H(y), {
|
|
299
300
|
key: 1,
|
|
300
|
-
class: P([H(l).e("icon"),
|
|
301
|
+
class: P([H(l).e("icon"), b.value])
|
|
301
302
|
}, {
|
|
302
|
-
default: W(() => [(I(), E(se(
|
|
303
|
+
default: W(() => [(I(), E(se(S.value)))]),
|
|
303
304
|
_: 1
|
|
304
305
|
}, 8, ["class"])) : D("v-if", !0),
|
|
305
|
-
z(
|
|
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:
|
|
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(
|
|
312
|
-
|
|
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(
|
|
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 = (
|
|
325
|
-
if (!
|
|
326
|
-
else if (e
|
|
327
|
-
let
|
|
328
|
-
|
|
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 = (
|
|
331
|
-
!
|
|
332
|
-
}, Q = (
|
|
333
|
-
let
|
|
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
|
-
...
|
|
336
|
+
...t
|
|
336
337
|
};
|
|
337
|
-
return xe(
|
|
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++}`,
|
|
346
|
+
let r = `message_${be++}`, i = t.onClose, a = document.createElement("div"), o = {
|
|
346
347
|
...t,
|
|
347
348
|
id: r,
|
|
348
349
|
onClose: () => {
|
|
349
|
-
|
|
350
|
+
i == null || i(), Ce(u);
|
|
350
351
|
},
|
|
351
352
|
onDestroy: () => {
|
|
352
|
-
R(null,
|
|
353
|
+
R(null, a);
|
|
353
354
|
}
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
let l =
|
|
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:
|
|
359
|
+
vnode: s,
|
|
359
360
|
vm: l,
|
|
360
361
|
handler: { close: () => {
|
|
361
362
|
l.exposed.close();
|
|
362
363
|
} },
|
|
363
|
-
props:
|
|
364
|
+
props: s.component.props
|
|
364
365
|
};
|
|
365
366
|
return u;
|
|
366
367
|
}, $ = (e = {}, t) => {
|
|
367
|
-
if (!
|
|
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 (
|
|
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
|
|
388
|
-
let
|
|
389
|
-
for (let
|
|
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.
|
|
398
|
-
var De =
|
|
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 };
|