@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,21 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import "./chunk.A6TnG60p.mjs";
|
|
2
|
+
import { i as e } from "./use-size.CoorvF12.mjs";
|
|
3
|
+
import { _ as t, d as n, m as r, o as i, p as a, r as o, t as s } from "./install.BJl2MN77.mjs";
|
|
4
|
+
import { F as c, M as l, N as u, O as d, R as f, b as p, j as m, k as h, n as g, w as ee } from "./style.CraPDfJA.mjs";
|
|
5
|
+
import { i as te } from "./use-form-item.DMDTkMq9.mjs";
|
|
6
|
+
import { t as ne } from "./use-id.CyzdvfQn.mjs";
|
|
7
|
+
import { n as _, t as v } from "./constants.Dw7hXt67.mjs";
|
|
8
|
+
import { t as y } from "./typescript.D0a40c7B.mjs";
|
|
9
|
+
import { n as b, u as x } from "./util.fjuzrmWz.mjs";
|
|
6
10
|
import { Fragment as S, TransitionGroup as C, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as re, createElementVNode as D, createTextVNode as ie, createVNode as O, defineComponent as k, inject as A, nextTick as ae, normalizeClass as j, normalizeStyle as M, onBeforeUnmount as oe, onMounted as se, onUpdated as N, openBlock as P, provide as ce, reactive as F, ref as I, renderSlot as L, resolveDynamicComponent as le, toDisplayString as ue, toRefs as de, unref as R, useSlots as fe, watch as z, withCtx as B } from "vue";
|
|
7
11
|
import { castArray as V, cloneDeep as H } from "lodash-unified";
|
|
8
12
|
import pe from "async-validator";
|
|
9
|
-
var U =
|
|
10
|
-
...
|
|
13
|
+
var U = m({
|
|
14
|
+
...m({
|
|
11
15
|
size: {
|
|
12
16
|
type: String,
|
|
13
|
-
values:
|
|
17
|
+
values: e
|
|
14
18
|
},
|
|
15
19
|
disabled: Boolean
|
|
16
20
|
}),
|
|
17
21
|
model: Object,
|
|
18
|
-
rules: { type:
|
|
22
|
+
rules: { type: l(Object) },
|
|
19
23
|
labelPosition: {
|
|
20
24
|
type: String,
|
|
21
25
|
values: [
|
|
@@ -52,10 +56,10 @@ var U = h({
|
|
|
52
56
|
hideRequiredAsterisk: Boolean,
|
|
53
57
|
scrollToError: Boolean,
|
|
54
58
|
scrollIntoViewOptions: {
|
|
55
|
-
type:
|
|
59
|
+
type: l([Object, Boolean]),
|
|
56
60
|
default: !0
|
|
57
61
|
}
|
|
58
|
-
}), me = { validate: (
|
|
62
|
+
}), me = { validate: (e, r, i) => (n(e) || t(e)) && c(r) && t(i) }, he = m({
|
|
59
63
|
label: String,
|
|
60
64
|
labelWidth: { type: [String, Number] },
|
|
61
65
|
labelPosition: {
|
|
@@ -68,12 +72,12 @@ var U = h({
|
|
|
68
72
|
],
|
|
69
73
|
default: ""
|
|
70
74
|
},
|
|
71
|
-
prop: { type:
|
|
75
|
+
prop: { type: l([String, Array]) },
|
|
72
76
|
required: {
|
|
73
77
|
type: Boolean,
|
|
74
78
|
default: void 0
|
|
75
79
|
},
|
|
76
|
-
rules: { type:
|
|
80
|
+
rules: { type: l([Object, Array]) },
|
|
77
81
|
error: String,
|
|
78
82
|
validateStatus: {
|
|
79
83
|
type: String,
|
|
@@ -95,9 +99,9 @@ var U = h({
|
|
|
95
99
|
},
|
|
96
100
|
size: {
|
|
97
101
|
type: String,
|
|
98
|
-
values:
|
|
102
|
+
values: e
|
|
99
103
|
}
|
|
100
|
-
}), ge = (e) => [...new Set(e)], _e = (e) => !e && e !== 0 ? [] :
|
|
104
|
+
}), ge = (e) => [...new Set(e)], _e = (e) => !e && e !== 0 ? [] : n(e) ? e : [e], W = "ElForm";
|
|
101
105
|
function G() {
|
|
102
106
|
let e = I([]), t = w(() => {
|
|
103
107
|
if (!e.value.length) return "0";
|
|
@@ -106,7 +110,7 @@ function G() {
|
|
|
106
110
|
});
|
|
107
111
|
function n(n) {
|
|
108
112
|
let r = e.value.indexOf(n);
|
|
109
|
-
return r === -1 && t.value === "0" &&
|
|
113
|
+
return r === -1 && t.value === "0" && d(W, `unexpected width ${n}`), r;
|
|
110
114
|
}
|
|
111
115
|
function r(t, r) {
|
|
112
116
|
if (t && r) {
|
|
@@ -124,16 +128,16 @@ function G() {
|
|
|
124
128
|
deregisterLabelWidth: i
|
|
125
129
|
};
|
|
126
130
|
}
|
|
127
|
-
var K = (e,
|
|
128
|
-
let r = V(
|
|
131
|
+
var K = (e, t) => {
|
|
132
|
+
let r = V(t).map((e) => n(e) ? e.join(".") : e);
|
|
129
133
|
return r.length > 0 ? e.filter((e) => e.propString && r.includes(e.propString)) : e;
|
|
130
134
|
}, q = "ElForm", ve = /* @__PURE__ */ k({
|
|
131
135
|
name: q,
|
|
132
136
|
__name: "form",
|
|
133
137
|
props: U,
|
|
134
138
|
emits: me,
|
|
135
|
-
setup(e, { expose:
|
|
136
|
-
let o = e, s =
|
|
139
|
+
setup(e, { expose: t, emit: r }) {
|
|
140
|
+
let o = e, s = r, c = I(), l = F([]), f = /* @__PURE__ */ new Map(), p = te(), m = i("form"), h = w(() => {
|
|
137
141
|
let { labelPosition: e, inline: t } = o;
|
|
138
142
|
return [
|
|
139
143
|
m.b(),
|
|
@@ -143,40 +147,40 @@ var K = (e, n) => {
|
|
|
143
147
|
[m.m("inline")]: t
|
|
144
148
|
}
|
|
145
149
|
];
|
|
146
|
-
}), g = (e) => K(l, [e])[0],
|
|
147
|
-
l.push(e), e.propString && (
|
|
148
|
-
},
|
|
150
|
+
}), g = (e) => K(l, [e])[0], ee = (e) => {
|
|
151
|
+
l.push(e), e.propString && (f.has(e.propString) ? e.setInitialValue(f.get(e.propString)) : f.set(e.propString, H(e.fieldValue)));
|
|
152
|
+
}, ne = (e) => {
|
|
149
153
|
e.prop && l.splice(l.indexOf(e), 1);
|
|
150
|
-
},
|
|
154
|
+
}, _ = (e) => {
|
|
151
155
|
if (!o.model) {
|
|
152
|
-
|
|
156
|
+
d(q, "model is required for setInitialValues to work.");
|
|
153
157
|
return;
|
|
154
158
|
}
|
|
155
159
|
if (!e) {
|
|
156
|
-
|
|
160
|
+
d(q, "initModel is required for setInitialValues to work.");
|
|
157
161
|
return;
|
|
158
162
|
}
|
|
159
|
-
for (let t of
|
|
163
|
+
for (let t of f.keys()) f.set(t, H(u(e, t).value));
|
|
160
164
|
l.forEach((t) => {
|
|
161
|
-
t.prop && t.setInitialValue(
|
|
165
|
+
t.prop && t.setInitialValue(u(e, t.prop).value);
|
|
162
166
|
});
|
|
163
167
|
}, y = (e = []) => {
|
|
164
168
|
if (!o.model) {
|
|
165
|
-
|
|
169
|
+
d(q, "model is required for resetFields to work.");
|
|
166
170
|
return;
|
|
167
171
|
}
|
|
168
172
|
K(l, e).forEach((e) => e.resetField());
|
|
169
|
-
let
|
|
170
|
-
for (let e of r) !
|
|
173
|
+
let t = new Set(l.map((e) => e.propString).filter(Boolean)), r = e.length > 0 ? V(e).map((e) => n(e) ? e.join(".") : e) : [...f.keys()];
|
|
174
|
+
for (let e of r) !t.has(e) && f.has(e) && (u(o.model, e).value = H(f.get(e)));
|
|
171
175
|
}, b = (e = []) => {
|
|
172
176
|
K(l, e).forEach((e) => e.clearValidate());
|
|
173
177
|
}, x = w(() => {
|
|
174
178
|
let e = !!o.model;
|
|
175
|
-
return e ||
|
|
179
|
+
return e || d(q, "model is required for validate to work."), e;
|
|
176
180
|
}), S = (e) => {
|
|
177
181
|
if (l.length === 0) return [];
|
|
178
182
|
let t = K(l, e);
|
|
179
|
-
return t.length ? t : (
|
|
183
|
+
return t.length ? t : (d(q, "please pass correct props!"), []);
|
|
180
184
|
}, C = async (e) => E(void 0, e), T = async (e = []) => {
|
|
181
185
|
if (!x.value) return !1;
|
|
182
186
|
let t = S(e);
|
|
@@ -192,17 +196,17 @@ var K = (e, n) => {
|
|
|
192
196
|
}
|
|
193
197
|
return Object.keys(n).length === 0 ? !0 : Promise.reject(n);
|
|
194
198
|
}, E = async (e = [], t) => {
|
|
195
|
-
let n = !1, r = !
|
|
199
|
+
let n = !1, r = !a(t);
|
|
196
200
|
try {
|
|
197
201
|
return n = await T(e), n === !0 && await (t == null ? void 0 : t(n)), n;
|
|
198
202
|
} catch (e) {
|
|
199
203
|
if (e instanceof Error) throw e;
|
|
200
|
-
let
|
|
204
|
+
let a = e;
|
|
201
205
|
if (o.scrollToError) {
|
|
202
|
-
var
|
|
203
|
-
c.value && ((
|
|
206
|
+
var i;
|
|
207
|
+
c.value && ((i = c.value.querySelector(`.${m.b()}-item.is-error`)) == null || i.scrollIntoView(o.scrollIntoViewOptions));
|
|
204
208
|
}
|
|
205
|
-
return !n && await (t == null ? void 0 : t(!1,
|
|
209
|
+
return !n && await (t == null ? void 0 : t(!1, a)), r && Promise.reject(a);
|
|
206
210
|
}
|
|
207
211
|
}, D = (e) => {
|
|
208
212
|
var t;
|
|
@@ -210,22 +214,22 @@ var K = (e, n) => {
|
|
|
210
214
|
n && ((t = n.$el) == null || t.scrollIntoView(o.scrollIntoViewOptions));
|
|
211
215
|
};
|
|
212
216
|
return z(() => o.rules, () => {
|
|
213
|
-
o.validateOnRuleChange && C().catch((e) =>
|
|
217
|
+
o.validateOnRuleChange && C().catch((e) => d(e));
|
|
214
218
|
}, {
|
|
215
219
|
deep: !0,
|
|
216
220
|
flush: "post"
|
|
217
|
-
}), ce(
|
|
221
|
+
}), ce(v, F({
|
|
218
222
|
...de(o),
|
|
219
223
|
emit: s,
|
|
220
224
|
resetFields: y,
|
|
221
225
|
clearValidate: b,
|
|
222
226
|
validateField: E,
|
|
223
227
|
getField: g,
|
|
224
|
-
addField:
|
|
225
|
-
removeField:
|
|
226
|
-
setInitialValues:
|
|
228
|
+
addField: ee,
|
|
229
|
+
removeField: ne,
|
|
230
|
+
setInitialValues: _,
|
|
227
231
|
...G()
|
|
228
|
-
})),
|
|
232
|
+
})), t({
|
|
229
233
|
validate: C,
|
|
230
234
|
validateField: E,
|
|
231
235
|
resetFields: y,
|
|
@@ -233,7 +237,7 @@ var K = (e, n) => {
|
|
|
233
237
|
scrollToField: D,
|
|
234
238
|
getField: g,
|
|
235
239
|
fields: l,
|
|
236
|
-
setInitialValues:
|
|
240
|
+
setInitialValues: _
|
|
237
241
|
}), (e, t) => (P(), re("form", {
|
|
238
242
|
ref_key: "formRef",
|
|
239
243
|
ref: c,
|
|
@@ -247,9 +251,9 @@ var K = (e, n) => {
|
|
|
247
251
|
updateAll: Boolean
|
|
248
252
|
},
|
|
249
253
|
setup(e, { slots: t }) {
|
|
250
|
-
let n = A(
|
|
251
|
-
|
|
252
|
-
let a =
|
|
254
|
+
let n = A(v, void 0), r = A(_);
|
|
255
|
+
r || h(J, "usage: <el-form-item><label-wrap /></el-form-item>");
|
|
256
|
+
let a = i("form"), o = I(), s = I(0), c = () => {
|
|
253
257
|
var e;
|
|
254
258
|
if ((e = o.value) != null && e.firstElementChild) {
|
|
255
259
|
let e = window.getComputedStyle(o.value.firstElementChild).width;
|
|
@@ -266,59 +270,59 @@ var K = (e, n) => {
|
|
|
266
270
|
l("remove");
|
|
267
271
|
}), N(() => u()), z(s, (t, r) => {
|
|
268
272
|
e.updateAll && (n == null || n.registerLabelWidth(t, r));
|
|
269
|
-
}),
|
|
273
|
+
}), p(w(() => {
|
|
270
274
|
var e;
|
|
271
275
|
return ((e = o.value) == null ? void 0 : e.firstElementChild) ?? null;
|
|
272
276
|
}), u), () => {
|
|
273
|
-
var
|
|
277
|
+
var i;
|
|
274
278
|
if (!t) return null;
|
|
275
279
|
let { isAutoWidth: c } = e;
|
|
276
280
|
if (c) {
|
|
277
281
|
var l;
|
|
278
|
-
let e = n == null ? void 0 : n.autoLabelWidth,
|
|
279
|
-
if (
|
|
280
|
-
let t = Math.max(0, Number.parseInt(e, 10) - s.value),
|
|
281
|
-
t && (c[
|
|
282
|
+
let e = n == null ? void 0 : n.autoLabelWidth, i = r == null ? void 0 : r.hasLabel, c = {};
|
|
283
|
+
if (i && e && e !== "auto") {
|
|
284
|
+
let t = Math.max(0, Number.parseInt(e, 10) - s.value), i = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
|
|
285
|
+
t && (c[i] = `${t}px`);
|
|
282
286
|
}
|
|
283
287
|
return O("div", {
|
|
284
288
|
ref: o,
|
|
285
289
|
class: [a.be("item", "label-wrap")],
|
|
286
290
|
style: c
|
|
287
291
|
}, [(l = t.default) == null ? void 0 : l.call(t)]);
|
|
288
|
-
} else return O(S, { ref: o }, [(
|
|
292
|
+
} else return O(S, { ref: o }, [(i = t.default) == null ? void 0 : i.call(t)]);
|
|
289
293
|
};
|
|
290
294
|
}
|
|
291
295
|
}), be = ["role", "aria-labelledby"], Y = /* @__PURE__ */ k({
|
|
292
296
|
name: "ElFormItem",
|
|
293
297
|
__name: "form-item",
|
|
294
298
|
props: he,
|
|
295
|
-
setup(e, { expose:
|
|
296
|
-
let
|
|
297
|
-
if (N.value === "top" || s != null && s.inline || !
|
|
298
|
-
let e =
|
|
299
|
-
return !
|
|
299
|
+
setup(e, { expose: t }) {
|
|
300
|
+
let r = e, o = fe(), s = A(v, void 0), l = A(_, void 0), d = te(void 0, { formItem: !1 }), f = i("form-item"), p = ne().value, m = I([]), h = I(""), y = ee(h, 100), b = I(""), x = I(), S, k = !1, N = w(() => r.labelPosition || (s == null ? void 0 : s.labelPosition)), U = w(() => N.value === "top" ? {} : { width: g(r.labelWidth ?? (s == null ? void 0 : s.labelWidth)) }), me = w(() => {
|
|
301
|
+
if (N.value === "top" || s != null && s.inline || !r.label && !r.labelWidth && ve) return {};
|
|
302
|
+
let e = g(r.labelWidth ?? (s == null ? void 0 : s.labelWidth));
|
|
303
|
+
return !r.label && !o.label ? { marginLeft: e } : {};
|
|
300
304
|
}), he = w(() => [
|
|
301
305
|
f.b(),
|
|
302
|
-
f.m(
|
|
306
|
+
f.m(d.value),
|
|
303
307
|
f.is("error", h.value === "error"),
|
|
304
308
|
f.is("validating", h.value === "validating"),
|
|
305
309
|
f.is("success", h.value === "success"),
|
|
306
|
-
f.is("required", Ce.value ||
|
|
310
|
+
f.is("required", Ce.value || r.required),
|
|
307
311
|
f.is("no-asterisk", s == null ? void 0 : s.hideRequiredAsterisk),
|
|
308
312
|
(s == null ? void 0 : s.requireAsteriskPosition) === "right" ? "asterisk-right" : "asterisk-left",
|
|
309
313
|
{
|
|
310
314
|
[f.m("feedback")]: s == null ? void 0 : s.statusIcon,
|
|
311
315
|
[f.m(`label-${N.value}`)]: N.value
|
|
312
316
|
}
|
|
313
|
-
]), ge = w(() =>
|
|
317
|
+
]), ge = w(() => c(r.inlineMessage) ? r.inlineMessage : (s == null ? void 0 : s.inlineMessage) || !1), _e = w(() => [f.e("error"), { [f.em("error", "inline")]: ge.value }]), W = w(() => r.prop ? n(r.prop) ? r.prop.join(".") : r.prop : ""), G = w(() => !!(r.label || o.label)), K = w(() => r.for ?? (m.value.length === 1 ? m.value[0] : void 0)), q = w(() => !K.value && G.value), ve = !!l, J = w(() => {
|
|
314
318
|
let e = s == null ? void 0 : s.model;
|
|
315
|
-
if (!(!e || !
|
|
319
|
+
if (!(!e || !r.prop)) return u(e, r.prop).value;
|
|
316
320
|
}), Y = w(() => {
|
|
317
|
-
let { required: e } =
|
|
318
|
-
|
|
321
|
+
let { required: e } = r, t = [];
|
|
322
|
+
r.rules && t.push(...V(r.rules));
|
|
319
323
|
let n = s == null ? void 0 : s.rules;
|
|
320
|
-
if (n &&
|
|
321
|
-
let e =
|
|
324
|
+
if (n && r.prop) {
|
|
325
|
+
let e = u(n, r.prop).value;
|
|
322
326
|
e && t.push(...V(e));
|
|
323
327
|
}
|
|
324
328
|
if (e !== void 0) {
|
|
@@ -330,23 +334,23 @@ var K = (e, n) => {
|
|
|
330
334
|
else t.push({ required: e });
|
|
331
335
|
}
|
|
332
336
|
return t;
|
|
333
|
-
}), xe = w(() => Y.value.length > 0), Se = (e) => Y.value.filter((
|
|
337
|
+
}), xe = w(() => Y.value.length > 0), Se = (e) => Y.value.filter((t) => !t.trigger || !e ? !0 : n(t.trigger) ? t.trigger.includes(e) : t.trigger === e).map(({ trigger: e, ...t }) => t), Ce = w(() => Y.value.some((e) => e.required)), we = w(() => y.value === "error" && r.showMessage && ((s == null ? void 0 : s.showMessage) ?? !0)), X = w(() => `${r.label || ""}${(s == null ? void 0 : s.labelSuffix) || ""}`), Z = (e) => {
|
|
334
338
|
h.value = e;
|
|
335
339
|
}, Te = (e) => {
|
|
336
340
|
var t;
|
|
337
|
-
let { errors: n, fields:
|
|
338
|
-
(!n || !
|
|
341
|
+
let { errors: n, fields: i } = e;
|
|
342
|
+
(!n || !i) && console.error(e), Z("error"), b.value = n ? (n == null || (t = n[0]) == null ? void 0 : t.message) ?? `${r.prop} is required` : "", s == null || s.emit("validate", r.prop, !1, b.value);
|
|
339
343
|
}, Ee = () => {
|
|
340
|
-
Z("success"), s == null || s.emit("validate",
|
|
344
|
+
Z("success"), s == null || s.emit("validate", r.prop, !0, "");
|
|
341
345
|
}, De = async (e) => {
|
|
342
346
|
let t = W.value;
|
|
343
347
|
return new pe({ [t]: e }).validate({ [t]: J.value }, { firstFields: !0 }).then(() => (Ee(), !0)).catch((e) => (Te(e), Promise.reject(e)));
|
|
344
348
|
}, Oe = async (e, t) => {
|
|
345
|
-
if (k || !
|
|
346
|
-
let n =
|
|
349
|
+
if (k || !r.prop) return !1;
|
|
350
|
+
let n = a(t);
|
|
347
351
|
if (!xe.value) return t == null || t(!1), !1;
|
|
348
|
-
let
|
|
349
|
-
return
|
|
352
|
+
let i = Se(e);
|
|
353
|
+
return i.length === 0 ? (t == null || t(!0), !0) : (Z("validating"), De(i).then(() => (t == null || t(!0), !0)).catch((e) => {
|
|
350
354
|
let { fields: r } = e;
|
|
351
355
|
return t == null || t(!1, r), n ? !1 : Promise.reject(r);
|
|
352
356
|
}));
|
|
@@ -354,8 +358,8 @@ var K = (e, n) => {
|
|
|
354
358
|
Z(""), b.value = "", k = !1;
|
|
355
359
|
}, $ = async () => {
|
|
356
360
|
let e = s == null ? void 0 : s.model;
|
|
357
|
-
if (!e || !
|
|
358
|
-
let t =
|
|
361
|
+
if (!e || !r.prop) return;
|
|
362
|
+
let t = u(e, r.prop);
|
|
359
363
|
k = !0, t.value = H(S), await ae(), Q(), k = !1;
|
|
360
364
|
}, ke = (e) => {
|
|
361
365
|
m.value.includes(e) || m.value.push(e);
|
|
@@ -364,13 +368,13 @@ var K = (e, n) => {
|
|
|
364
368
|
}, je = (e) => {
|
|
365
369
|
S = H(e);
|
|
366
370
|
};
|
|
367
|
-
z(() =>
|
|
371
|
+
z(() => r.error, (e) => {
|
|
368
372
|
b.value = e || "", Z(e ? "error" : "");
|
|
369
|
-
}, { immediate: !0 }), z(() =>
|
|
373
|
+
}, { immediate: !0 }), z(() => r.validateStatus, (e) => Z(e || ""));
|
|
370
374
|
let Me = F({
|
|
371
|
-
...de(
|
|
375
|
+
...de(r),
|
|
372
376
|
$el: x,
|
|
373
|
-
size:
|
|
377
|
+
size: d,
|
|
374
378
|
validateMessage: b,
|
|
375
379
|
validateState: h,
|
|
376
380
|
labelId: p,
|
|
@@ -386,12 +390,12 @@ var K = (e, n) => {
|
|
|
386
390
|
propString: W,
|
|
387
391
|
setInitialValue: je
|
|
388
392
|
});
|
|
389
|
-
return ce(
|
|
390
|
-
|
|
393
|
+
return ce(_, Me), se(() => {
|
|
394
|
+
r.prop && (je(J.value), s == null || s.addField(Me));
|
|
391
395
|
}), oe(() => {
|
|
392
396
|
s == null || s.removeField(Me);
|
|
393
|
-
}),
|
|
394
|
-
size:
|
|
397
|
+
}), t({
|
|
398
|
+
size: d,
|
|
395
399
|
validateMessage: b,
|
|
396
400
|
validateState: h,
|
|
397
401
|
validate: Oe,
|
|
@@ -439,8 +443,8 @@ var K = (e, n) => {
|
|
|
439
443
|
};
|
|
440
444
|
}
|
|
441
445
|
});
|
|
442
|
-
|
|
443
|
-
var xe =
|
|
446
|
+
s(ve, { FormItem: Y });
|
|
447
|
+
var xe = o(Y), Se = m({
|
|
444
448
|
tag: {
|
|
445
449
|
type: String,
|
|
446
450
|
default: "div"
|
|
@@ -462,33 +466,33 @@ var xe = a(Y), Se = h({
|
|
|
462
466
|
default: 0
|
|
463
467
|
},
|
|
464
468
|
xs: {
|
|
465
|
-
type:
|
|
466
|
-
default: () =>
|
|
469
|
+
type: l([Number, Object]),
|
|
470
|
+
default: () => y({})
|
|
467
471
|
},
|
|
468
472
|
sm: {
|
|
469
|
-
type:
|
|
470
|
-
default: () =>
|
|
473
|
+
type: l([Number, Object]),
|
|
474
|
+
default: () => y({})
|
|
471
475
|
},
|
|
472
476
|
md: {
|
|
473
|
-
type:
|
|
474
|
-
default: () =>
|
|
477
|
+
type: l([Number, Object]),
|
|
478
|
+
default: () => y({})
|
|
475
479
|
},
|
|
476
480
|
lg: {
|
|
477
|
-
type:
|
|
478
|
-
default: () =>
|
|
481
|
+
type: l([Number, Object]),
|
|
482
|
+
default: () => y({})
|
|
479
483
|
},
|
|
480
484
|
xl: {
|
|
481
|
-
type:
|
|
482
|
-
default: () =>
|
|
485
|
+
type: l([Number, Object]),
|
|
486
|
+
default: () => y({})
|
|
483
487
|
}
|
|
484
|
-
}), Ce = Symbol("rowContextKey"), we =
|
|
488
|
+
}), Ce = Symbol("rowContextKey"), we = s(/* @__PURE__ */ k({
|
|
485
489
|
name: "ElCol",
|
|
486
490
|
__name: "col",
|
|
487
491
|
props: Se,
|
|
488
492
|
setup(e) {
|
|
489
|
-
let t = e, { gutter:
|
|
493
|
+
let t = e, { gutter: n } = A(Ce, { gutter: w(() => 0) }), a = i("col"), o = w(() => {
|
|
490
494
|
let e = {};
|
|
491
|
-
return
|
|
495
|
+
return n.value && (e.paddingLeft = e.paddingRight = `${n.value / 2}px`), e;
|
|
492
496
|
}), s = w(() => {
|
|
493
497
|
let e = [];
|
|
494
498
|
return [
|
|
@@ -498,18 +502,18 @@ var xe = a(Y), Se = h({
|
|
|
498
502
|
"push"
|
|
499
503
|
].forEach((n) => {
|
|
500
504
|
let r = t[n];
|
|
501
|
-
|
|
505
|
+
f(r) && (n === "span" ? e.push(a.b(`${t[n]}`)) : r > 0 && e.push(a.b(`${n}-${t[n]}`)));
|
|
502
506
|
}), [
|
|
503
507
|
"xs",
|
|
504
508
|
"sm",
|
|
505
509
|
"md",
|
|
506
510
|
"lg",
|
|
507
511
|
"xl"
|
|
508
|
-
].forEach((
|
|
509
|
-
|
|
510
|
-
e.push(t === "span" ? a.b(`${
|
|
512
|
+
].forEach((n) => {
|
|
513
|
+
f(t[n]) ? e.push(a.b(`${n}-${t[n]}`)) : r(t[n]) && Object.entries(t[n]).forEach(([t, r]) => {
|
|
514
|
+
e.push(t === "span" ? a.b(`${n}-${r}`) : a.b(`${n}-${t}-${r}`));
|
|
511
515
|
});
|
|
512
|
-
}),
|
|
516
|
+
}), n.value && e.push(a.is("guttered")), [a.b(), e];
|
|
513
517
|
});
|
|
514
518
|
return (t, n) => (P(), T(le(e.tag), {
|
|
515
519
|
class: j(s.value),
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { M as e } from "./style.
|
|
2
|
-
import { c as t, f as n, g as r, h as i, l as a, m as o, u as s, v as c } from "./icon.
|
|
3
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
1
|
+
import { M as e } from "./style.CraPDfJA.mjs";
|
|
2
|
+
import { c as t, f as n, g as r, h as i, l as a, m as o, u as s, v as c } from "./icon.niAg1zTC.mjs";
|
|
3
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/utils/vue/icon.mjs
|
|
4
4
|
var l = e([
|
|
5
5
|
String,
|
|
6
6
|
Object,
|
|
7
7
|
Function
|
|
8
|
-
]), u = {
|
|
8
|
+
]), u = { Close: n }, d = {
|
|
9
9
|
Close: n,
|
|
10
10
|
SuccessFilled: r,
|
|
11
11
|
InfoFilled: o,
|
|
12
12
|
WarningFilled: c,
|
|
13
13
|
CircleCloseFilled: s
|
|
14
|
-
},
|
|
14
|
+
}, f = {
|
|
15
15
|
primary: o,
|
|
16
16
|
success: r,
|
|
17
17
|
warning: c,
|
|
18
18
|
error: s,
|
|
19
19
|
info: o
|
|
20
|
-
},
|
|
20
|
+
}, p = {
|
|
21
21
|
validating: i,
|
|
22
22
|
success: t,
|
|
23
23
|
error: a
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
26
|
-
export { l as i, d as n, f as r, u as t };
|
|
26
|
+
export { l as a, p as i, d as n, f as r, u as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as e, t } from "./install.
|
|
2
|
-
import { M as n, j as r, n as i } from "./style.
|
|
1
|
+
import { o as e, t } from "./install.BJl2MN77.mjs";
|
|
2
|
+
import { M as n, j as r, n as i } from "./style.CraPDfJA.mjs";
|
|
3
3
|
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeProps as l, openBlock as u, renderSlot as d, unref as f } from "vue";
|
|
4
|
-
//#region node_modules/.pnpm/@element-plus+icons-vue@2.3.2_vue@3.5.
|
|
4
|
+
//#region node_modules/.pnpm/@element-plus+icons-vue@2.3.2_vue@3.5.32_typescript@5.9.3_/node_modules/@element-plus/icons-vue/dist/index.js
|
|
5
5
|
var p = /* @__PURE__ */ c({
|
|
6
6
|
name: "ArrowDown",
|
|
7
7
|
__name: "arrow-down",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { O as e, a as t } from "./util.g-WQEec9.mjs";
|
|
2
|
-
import { t as n } from "./slot.
|
|
3
|
-
import { i as r, n as i, r as a, t as o } from "./dic.
|
|
2
|
+
import { t as n } from "./slot.CZCo32Cw.mjs";
|
|
3
|
+
import { i as r, n as i, r as a, t as o } from "./dic.NZCGhtA7.mjs";
|
|
4
4
|
import { isBlank as s } from "@web-utils/core";
|
|
5
5
|
//#region src/components/utils/mixins/init.ts
|
|
6
6
|
var c = {
|
|
@@ -36,7 +36,7 @@ var c = {
|
|
|
36
36
|
let t = {};
|
|
37
37
|
e.forEach((e) => {
|
|
38
38
|
t[e.prop] = e;
|
|
39
|
-
}), this
|
|
39
|
+
}), this.objectOption = t;
|
|
40
40
|
},
|
|
41
41
|
deep: !0
|
|
42
42
|
},
|
|
@@ -92,8 +92,8 @@ var c = {
|
|
|
92
92
|
updateDic(e, t) {
|
|
93
93
|
let n = this.findObject(this.propOption, e);
|
|
94
94
|
s(t) && s(e) ? this.handleLoadDic() : s(t) && !s(n.dicUrl) ? r({ column: n }).then((t) => {
|
|
95
|
-
this
|
|
96
|
-
}) : this
|
|
95
|
+
this.DIC[e] = t;
|
|
96
|
+
}) : this.DIC[e] = t;
|
|
97
97
|
},
|
|
98
98
|
handleSetDic(e, t = {}) {
|
|
99
99
|
Object.keys(t).forEach((n) => {
|