bp-aicc-editor 1.2.521 → 1.2.522
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/lib/{ScreenPreview-CV95NWOd.js → ScreenPreview-yUHo60be.js} +51 -105
- package/lib/atlas-BMjKIOwk.js +3891 -0
- package/lib/{button-base-DHNVBrQ9.js → button-base-CXl1z-_m.js} +1 -1
- package/lib/{cache-lsjsKZHu.js → cache-DbHSDjJy.js} +1 -1
- package/lib/config-provider-Bui8m4GV.js +62 -0
- package/lib/{container-group-DqAcKEBy.js → container-group-D6Extorz.js} +1 -1
- package/lib/{copy-C5Pi6nJh.js → copy-CsCmPy4J.js} +1 -1
- package/lib/{datav-BER95ty-.js → datav-BTD-HJhV.js} +27 -27
- package/lib/{delete-C2EW4JCs.js → delete-COj0ilHh.js} +1 -1
- package/lib/{divider-BazBGRgV.js → divider-B3K_URZc.js} +1 -1
- package/lib/dropdown-CWvnuJsO.js +105 -0
- package/lib/{edit-B2pfd2q1.js → edit-vdJaEine.js} +1 -1
- package/lib/{el-form-item-BDdxk5F5.js → el-form-item-BbaNohQv.js} +51 -51
- package/lib/{el-link-D2ol9BHQ.js → el-link-Dq721Q7-.js} +12 -12
- package/lib/{el-loading-Cgwgez55.js → el-loading-DOxnN3bm.js} +17 -17
- package/lib/{fullscreen-OChDsSnk.js → fullscreen-DXSogbcG.js} +1 -1
- package/lib/{image-C5ZAY3yt.js → image-Cu7JTK9-.js} +1 -1
- package/lib/{index-Ci8AbyIq.js → index-68soBnbK.js} +8 -8
- package/lib/{index-BatyRVpL.js → index-B-d8WIg1.js} +7 -7
- package/lib/{index-BfIEunKC.js → index-B4zV3cxV.js} +18 -17
- package/lib/{index-CZJriuFt.js → index-B8QqTLfg.js} +4974 -4898
- package/lib/index-BBMItxtW.js +619 -0
- package/lib/{index-CGrR_i0u.js → index-BMm0MRz5.js} +14 -15
- package/lib/index-BMn8EzMD.js +1027 -0
- package/lib/index-BNTW8F-9.js +322 -0
- package/lib/index-BTI518b1.js +69 -0
- package/lib/{index-BWPVi43E.js → index-BZxUAT4z.js} +4 -4
- package/lib/{index-Ck7uFsPE.js → index-BdYTc41r.js} +24 -24
- package/lib/index-BfI55Ioc.js +404 -0
- package/lib/{index-BhP9eBCp.js → index-BmAcetSf.js} +19 -20
- package/lib/index-C35Yp3i8.js +545 -0
- package/lib/{index-B19lEYui.js → index-C6GUNRx9.js} +2 -2
- package/lib/index-CC28_8Jl.js +567 -0
- package/lib/index-CDhmvVt8.js +338 -0
- package/lib/index-CDx0y0fp.js +144 -0
- package/lib/{el-button-DvLKp6Ga.js → index-CJjljoJG.js} +106 -106
- package/lib/index-CNCgXPiO.js +235 -0
- package/lib/{index-CWbZmzNT.js → index-CPa_MnOD.js} +30 -29
- package/lib/index-CW6ljdNf.js +1582 -0
- package/lib/index-C_WopEui.js +513 -0
- package/lib/{index-CX_Ghcb6.js → index-CejowjGd.js} +56 -53
- package/lib/{index-BwCQWH-N.js → index-CfZXOvi-.js} +42 -40
- package/lib/{index-CVsy2qTh.js → index-CgzRTmPh.js} +16 -15
- package/lib/index-CmzuNM9v.js +32 -0
- package/lib/index-CrxcAFt8.js +5343 -0
- package/lib/{index-C7k49L2T.js → index-CuHA7QXu.js} +10 -10
- package/lib/{index-qVyixI57.js → index-CyBGAB7D.js} +21 -20
- package/lib/index-D6J7coU0.js +129 -0
- package/lib/index-DDHxrdAo.js +1773 -0
- package/lib/index-DDL-yqq0.js +1401 -0
- package/lib/{index-BPcvYtHf.js → index-DOxy-bey.js} +6 -6
- package/lib/{index-CVE37oE7.js → index-DOyr0BHr.js} +7 -7
- package/lib/index-DPOanmXI.js +887 -0
- package/lib/{index-3pzVrvby.js → index-DR_husZg.js} +46 -46
- package/lib/{el-tab-pane-DD2eM9rB.js → index-DUzOCQrW.js} +125 -124
- package/lib/{index-CGFEhUh9.js → index-DVYI-g8Q.js} +53 -52
- package/lib/index-DVyjilLy.js +51 -0
- package/lib/{index-CJyYGViv.js → index-DWAJ9GyC.js} +9 -9
- package/lib/index-Dj2qCwPD.js +178 -0
- package/lib/{index-D4X0_jbv.js → index-Dx2Gld1J.js} +32 -32
- package/lib/{index-C2XeCqtq.js → index-E9T-y2Yz.js} +3 -3
- package/lib/{index-Buoc0ISP.js → index-FlmXAW0Z.js} +60 -58
- package/lib/index-NqqOvc6V.js +169 -0
- package/lib/{index-BkdiXCRY.js → index-ObKRNOmJ.js} +6 -7
- package/lib/index-bOWjoplU.js +448 -0
- package/lib/{index-CXQ258ID.js → index-buU8mDzi.js} +15 -16
- package/lib/{index-tbhuYbb0.js → index-mGKAWDJZ.js} +11 -12
- package/lib/index.es.js +4 -4
- package/lib/index.umd.js +46 -40
- package/lib/{layer-setting-panel-VvDSQ-cn.js → layer-setting-panel-BGPj32nP.js} +2 -2
- package/lib/{line-show-Bp4G-LqO.js → line-show-DUn1bu_P.js} +1 -1
- package/lib/{multi-layout-config-drSy7ezf.js → multi-layout-config-BTWxJeuc.js} +7 -8
- package/lib/{multiline-text-D89kYrA2.js → multiline-text-CPJdCWJ7.js} +1 -1
- package/lib/{navigation-YAGxZ0OT.js → navigation-ZLJaBOUj.js} +1 -1
- package/lib/page-config-CHP07Ndf.js +253 -0
- package/lib/{page-tabs-wFeNBY4c.js → page-tabs-CKLhgrip.js} +45 -41
- package/lib/{plus-3mdO6yXY.js → plus-xgpQU22I.js} +1 -1
- package/lib/raf-CJog_tcv.js +6 -0
- package/lib/refs-DZMysoBI.js +8 -0
- package/lib/{requestOld-DRcjsmRQ.js → requestOld-CaGzCXrV.js} +97 -96
- package/lib/{schema-BsnIOGBI.js → schema-BaFWGeFt.js} +1 -1
- package/lib/{schema-_APJMUW3.js → schema-CUR-UK2S.js} +44 -41
- package/lib/{schema-BavJE-SK.js → schema-WUk7XVq7.js} +58 -54
- package/lib/{schema-qKI1F8Bt.js → schema-geZfujv8.js} +1 -1
- package/lib/{schema-BflqDw-a.js → schema-iosjRxCC.js} +1 -1
- package/lib/{schema-Bo30dbBx.js → schema-tuPllxn6.js} +1 -1
- package/lib/scroll-CWfl60Tu.js +58 -0
- package/lib/{setting-panel-BgzN3BUP.js → setting-panel-0qLcwYyT.js} +154 -151
- package/lib/{show-C4AeWlKj.js → show-BCwE3hGY.js} +1 -1
- package/lib/{stepper-D5EFeJWG.js → stepper-Bud1Jppr.js} +1 -1
- package/lib/strings-BvUQWzDM.js +6 -0
- package/lib/{switch-B0dR4LM_.js → switch-VlaUmSpJ.js} +1 -1
- package/lib/{unlock-Cq9PLhBA.js → unlock-B2FVPQlm.js} +1 -1
- package/lib/{use-env-url-BM9dgwx_.js → use-env-url-D1p8ib2L.js} +1 -1
- package/lib/use-global-config-D_yoqf3Q.js +90 -0
- package/lib/validator-BOXH2OMA.js +5 -0
- package/lib/{vnode-B_Dj8zxu.js → vnode-Bxs1g06p.js} +1 -1
- package/package.json +1 -1
- package/lib/atlas-DsmLq2V0.js +0 -38
- package/lib/el-overlay-BK0_UIU6.js +0 -704
- package/lib/index-B1yAU2Cb.js +0 -390
- package/lib/index-BCFXuK7k.js +0 -68
- package/lib/index-BD4Jwo8Z.js +0 -449
- package/lib/index-BMWqf88L.js +0 -356
- package/lib/index-Belsn8kt.js +0 -107
- package/lib/index-CIADz1i0.js +0 -8494
- package/lib/index-DKTrbqcA.js +0 -56
- package/lib/index-Ge_d2xqD.js +0 -127
- package/lib/page-config-Cmsi8Vpr.js +0 -582
- package/lib/strings-_mHAdgA4.js +0 -6
- package/lib/use-global-config-CflpFoxU.js +0 -115
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import { inject as L, computed as p, getCurrentInstance as Z, watch as ee, nextTick as le, ref as G, toRaw as J, defineComponent as R, useSlots as ae, createBlock as z, openBlock as V, resolveDynamicComponent as F, unref as c, normalizeClass as S, withCtx as te, createElementVNode as I, createElementBlock as B, createCommentVNode as $, withDirectives as ne, mergeProps as U, isRef as oe, withModifiers as ue, vModelCheckbox as se, renderSlot as j, Fragment as ie, createTextVNode as re, toDisplayString as ce, normalizeStyle as Se, provide as Le, toRefs as Ee, renderList as Be } from "vue";
|
|
2
|
+
import { V as Q, i as X, ak as P, bq as de, a6 as be, ah as N, bD as _e, aU as O, aC as ve, b2 as K, a5 as me, a0 as T, R as _, aV as A, j as Ie, $ as fe, at as Y, bl as he, g as M, h as q, e as Ne, f as w, bR as we, bu as De, w as Ge, an as pe } from "./index-B8QqTLfg.js";
|
|
3
|
+
import { u as D } from "./index-BZxUAT4z.js";
|
|
4
|
+
const ke = {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: [Number, String, Boolean],
|
|
7
|
+
default: void 0
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
type: [String, Boolean, Number, Object],
|
|
11
|
+
default: void 0
|
|
12
|
+
},
|
|
13
|
+
value: {
|
|
14
|
+
type: [String, Boolean, Number, Object],
|
|
15
|
+
default: void 0
|
|
16
|
+
},
|
|
17
|
+
indeterminate: Boolean,
|
|
18
|
+
disabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
checked: Boolean,
|
|
23
|
+
name: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
trueValue: {
|
|
28
|
+
type: [String, Number],
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
falseValue: {
|
|
32
|
+
type: [String, Number],
|
|
33
|
+
default: void 0
|
|
34
|
+
},
|
|
35
|
+
trueLabel: {
|
|
36
|
+
type: [String, Number],
|
|
37
|
+
default: void 0
|
|
38
|
+
},
|
|
39
|
+
falseLabel: {
|
|
40
|
+
type: [String, Number],
|
|
41
|
+
default: void 0
|
|
42
|
+
},
|
|
43
|
+
id: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: void 0
|
|
46
|
+
},
|
|
47
|
+
border: Boolean,
|
|
48
|
+
size: be,
|
|
49
|
+
tabindex: [String, Number],
|
|
50
|
+
validateEvent: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !0
|
|
53
|
+
},
|
|
54
|
+
ariaLabel: String,
|
|
55
|
+
...de(["ariaControls"])
|
|
56
|
+
}, xe = {
|
|
57
|
+
[N]: (e) => Q(e) || X(e) || P(e),
|
|
58
|
+
change: (e) => Q(e) || X(e) || P(e)
|
|
59
|
+
}, E = Symbol("checkboxGroupContextKey"), ze = ({
|
|
60
|
+
model: e,
|
|
61
|
+
isChecked: t
|
|
62
|
+
}) => {
|
|
63
|
+
const r = L(E, void 0), a = L(_e, void 0), m = p(() => {
|
|
64
|
+
var d, o;
|
|
65
|
+
const h = (d = r?.max) == null ? void 0 : d.value, v = (o = r?.min) == null ? void 0 : o.value;
|
|
66
|
+
return !O(h) && e.value.length >= h && !t.value || !O(v) && e.value.length <= v && t.value;
|
|
67
|
+
});
|
|
68
|
+
return {
|
|
69
|
+
isDisabled: ve(
|
|
70
|
+
p(() => {
|
|
71
|
+
var d, o;
|
|
72
|
+
return r === void 0 ? (d = a?.disabled) != null ? d : m.value : ((o = r.disabled) == null ? void 0 : o.value) || m.value;
|
|
73
|
+
})
|
|
74
|
+
),
|
|
75
|
+
isLimitDisabled: m
|
|
76
|
+
};
|
|
77
|
+
}, Fe = (e, {
|
|
78
|
+
model: t,
|
|
79
|
+
isLimitExceeded: r,
|
|
80
|
+
hasOwnLabel: a,
|
|
81
|
+
isDisabled: m,
|
|
82
|
+
isLabeledByFormItem: f
|
|
83
|
+
}) => {
|
|
84
|
+
const d = L(E, void 0), { formItem: o } = K(), { emit: h } = Z();
|
|
85
|
+
function v(n) {
|
|
86
|
+
var l, u, b, i;
|
|
87
|
+
return [!0, e.trueValue, e.trueLabel].includes(n) ? (u = (l = e.trueValue) != null ? l : e.trueLabel) != null ? u : !0 : (i = (b = e.falseValue) != null ? b : e.falseLabel) != null ? i : !1;
|
|
88
|
+
}
|
|
89
|
+
function s(n, l) {
|
|
90
|
+
h(T, v(n), l);
|
|
91
|
+
}
|
|
92
|
+
function g(n) {
|
|
93
|
+
if (r.value)
|
|
94
|
+
return;
|
|
95
|
+
const l = n.target;
|
|
96
|
+
h(T, v(l.checked), n);
|
|
97
|
+
}
|
|
98
|
+
async function x(n) {
|
|
99
|
+
r.value || !a.value && !m.value && f.value && (n.composedPath().some(
|
|
100
|
+
(b) => b.tagName === "LABEL"
|
|
101
|
+
) || (t.value = v(
|
|
102
|
+
[!1, e.falseValue, e.falseLabel].includes(t.value)
|
|
103
|
+
), await le(), s(t.value, n)));
|
|
104
|
+
}
|
|
105
|
+
const y = p(
|
|
106
|
+
() => d?.validateEvent || e.validateEvent
|
|
107
|
+
);
|
|
108
|
+
return ee(
|
|
109
|
+
() => e.modelValue,
|
|
110
|
+
() => {
|
|
111
|
+
y.value && o?.validate("change").catch((n) => me(n));
|
|
112
|
+
}
|
|
113
|
+
), {
|
|
114
|
+
handleChange: g,
|
|
115
|
+
onClickRoot: x
|
|
116
|
+
};
|
|
117
|
+
}, $e = (e) => {
|
|
118
|
+
const t = G(!1), { emit: r } = Z(), a = L(E, void 0), m = p(() => O(a) === !1), f = G(!1), d = p({
|
|
119
|
+
get() {
|
|
120
|
+
var o, h;
|
|
121
|
+
return m.value ? (o = a?.modelValue) == null ? void 0 : o.value : (h = e.modelValue) != null ? h : t.value;
|
|
122
|
+
},
|
|
123
|
+
set(o) {
|
|
124
|
+
var h, v;
|
|
125
|
+
m.value && _(o) ? (f.value = ((h = a?.max) == null ? void 0 : h.value) !== void 0 && o.length > a?.max.value && o.length > d.value.length, f.value === !1 && ((v = a?.changeEvent) == null || v.call(a, o))) : (r(N, o), t.value = o);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
return {
|
|
129
|
+
model: d,
|
|
130
|
+
isGroup: m,
|
|
131
|
+
isLimitExceeded: f
|
|
132
|
+
};
|
|
133
|
+
}, Pe = (e, t, { model: r }) => {
|
|
134
|
+
const a = L(E, void 0), m = G(!1), f = p(() => A(e.value) ? e.label : e.value), d = p(() => {
|
|
135
|
+
const s = r.value;
|
|
136
|
+
return P(s) ? s : _(s) ? Ie(f.value) ? s.map(J).some((g) => fe(g, f.value)) : s.map(J).includes(f.value) : s != null ? s === e.trueValue || s === e.trueLabel : !!s;
|
|
137
|
+
}), o = Y(
|
|
138
|
+
p(() => {
|
|
139
|
+
var s;
|
|
140
|
+
return (s = a?.size) == null ? void 0 : s.value;
|
|
141
|
+
}),
|
|
142
|
+
{
|
|
143
|
+
prop: !0
|
|
144
|
+
}
|
|
145
|
+
), h = Y(p(() => {
|
|
146
|
+
var s;
|
|
147
|
+
return (s = a?.size) == null ? void 0 : s.value;
|
|
148
|
+
})), v = p(() => !!t.default || !A(f.value));
|
|
149
|
+
return {
|
|
150
|
+
checkboxButtonSize: o,
|
|
151
|
+
isChecked: d,
|
|
152
|
+
isFocused: m,
|
|
153
|
+
checkboxSize: h,
|
|
154
|
+
hasOwnLabel: v,
|
|
155
|
+
actualValue: f
|
|
156
|
+
};
|
|
157
|
+
}, ge = (e, t) => {
|
|
158
|
+
const { formItem: r } = K(), { model: a, isGroup: m, isLimitExceeded: f } = $e(e), {
|
|
159
|
+
isFocused: d,
|
|
160
|
+
isChecked: o,
|
|
161
|
+
checkboxButtonSize: h,
|
|
162
|
+
checkboxSize: v,
|
|
163
|
+
hasOwnLabel: s,
|
|
164
|
+
actualValue: g
|
|
165
|
+
} = Pe(e, t, { model: a }), { isDisabled: x } = ze({ model: a, isChecked: o }), { inputId: y, isLabeledByFormItem: n } = he(e, {
|
|
166
|
+
formItemContext: r,
|
|
167
|
+
disableIdGeneration: s,
|
|
168
|
+
disableIdManagement: m
|
|
169
|
+
}), { handleChange: l, onClickRoot: u } = Fe(e, {
|
|
170
|
+
model: a,
|
|
171
|
+
isLimitExceeded: f,
|
|
172
|
+
hasOwnLabel: s,
|
|
173
|
+
isDisabled: x,
|
|
174
|
+
isLabeledByFormItem: n
|
|
175
|
+
});
|
|
176
|
+
return (() => {
|
|
177
|
+
function i() {
|
|
178
|
+
var k, C;
|
|
179
|
+
_(a.value) && !a.value.includes(g.value) ? a.value.push(g.value) : a.value = (C = (k = e.trueValue) != null ? k : e.trueLabel) != null ? C : !0;
|
|
180
|
+
}
|
|
181
|
+
e.checked && i();
|
|
182
|
+
})(), D(
|
|
183
|
+
{
|
|
184
|
+
from: "label act as value",
|
|
185
|
+
replacement: "value",
|
|
186
|
+
version: "3.0.0",
|
|
187
|
+
scope: "el-checkbox",
|
|
188
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
189
|
+
},
|
|
190
|
+
p(() => m.value && A(e.value))
|
|
191
|
+
), D(
|
|
192
|
+
{
|
|
193
|
+
from: "true-label",
|
|
194
|
+
replacement: "true-value",
|
|
195
|
+
version: "3.0.0",
|
|
196
|
+
scope: "el-checkbox",
|
|
197
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
198
|
+
},
|
|
199
|
+
p(() => !!e.trueLabel)
|
|
200
|
+
), D(
|
|
201
|
+
{
|
|
202
|
+
from: "false-label",
|
|
203
|
+
replacement: "false-value",
|
|
204
|
+
version: "3.0.0",
|
|
205
|
+
scope: "el-checkbox",
|
|
206
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
207
|
+
},
|
|
208
|
+
p(() => !!e.falseLabel)
|
|
209
|
+
), {
|
|
210
|
+
inputId: y,
|
|
211
|
+
isLabeledByFormItem: n,
|
|
212
|
+
isChecked: o,
|
|
213
|
+
isDisabled: x,
|
|
214
|
+
isFocused: d,
|
|
215
|
+
checkboxButtonSize: h,
|
|
216
|
+
checkboxSize: v,
|
|
217
|
+
hasOwnLabel: s,
|
|
218
|
+
model: a,
|
|
219
|
+
actualValue: g,
|
|
220
|
+
handleChange: l,
|
|
221
|
+
onClickRoot: u
|
|
222
|
+
};
|
|
223
|
+
}, Oe = ["id", "indeterminate", "name", "tabindex", "disabled"], Te = R({
|
|
224
|
+
name: "ElCheckbox",
|
|
225
|
+
__name: "checkbox",
|
|
226
|
+
props: ke,
|
|
227
|
+
emits: xe,
|
|
228
|
+
setup(e) {
|
|
229
|
+
const t = e, r = ae(), {
|
|
230
|
+
inputId: a,
|
|
231
|
+
isLabeledByFormItem: m,
|
|
232
|
+
isChecked: f,
|
|
233
|
+
isDisabled: d,
|
|
234
|
+
isFocused: o,
|
|
235
|
+
checkboxSize: h,
|
|
236
|
+
hasOwnLabel: v,
|
|
237
|
+
model: s,
|
|
238
|
+
actualValue: g,
|
|
239
|
+
handleChange: x,
|
|
240
|
+
onClickRoot: y
|
|
241
|
+
} = ge(t, r), n = p(() => {
|
|
242
|
+
var i, k, C, W;
|
|
243
|
+
return t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
244
|
+
"true-value": (k = (i = t.trueValue) != null ? i : t.trueLabel) != null ? k : !0,
|
|
245
|
+
"false-value": (W = (C = t.falseValue) != null ? C : t.falseLabel) != null ? W : !1
|
|
246
|
+
} : {
|
|
247
|
+
value: g.value
|
|
248
|
+
};
|
|
249
|
+
}), l = q("checkbox"), u = p(() => [
|
|
250
|
+
l.b(),
|
|
251
|
+
l.m(h.value),
|
|
252
|
+
l.is("disabled", d.value),
|
|
253
|
+
l.is("bordered", t.border),
|
|
254
|
+
l.is("checked", f.value)
|
|
255
|
+
]), b = p(() => [
|
|
256
|
+
l.e("input"),
|
|
257
|
+
l.is("disabled", d.value),
|
|
258
|
+
l.is("checked", f.value),
|
|
259
|
+
l.is("indeterminate", t.indeterminate),
|
|
260
|
+
l.is("focus", o.value)
|
|
261
|
+
]);
|
|
262
|
+
return (i, k) => (V(), z(F(!c(v) && c(m) ? "span" : "label"), {
|
|
263
|
+
for: !c(v) && c(m) ? null : c(a),
|
|
264
|
+
class: S(u.value),
|
|
265
|
+
"aria-controls": i.indeterminate ? i.ariaControls : null,
|
|
266
|
+
"aria-checked": i.indeterminate ? "mixed" : void 0,
|
|
267
|
+
"aria-label": i.ariaLabel,
|
|
268
|
+
onClick: c(y)
|
|
269
|
+
}, {
|
|
270
|
+
default: te(() => [
|
|
271
|
+
I(
|
|
272
|
+
"span",
|
|
273
|
+
{
|
|
274
|
+
class: S(b.value)
|
|
275
|
+
},
|
|
276
|
+
[
|
|
277
|
+
ne(I("input", U({
|
|
278
|
+
id: c(a),
|
|
279
|
+
"onUpdate:modelValue": k[0] || (k[0] = (C) => oe(s) ? s.value = C : null),
|
|
280
|
+
class: c(l).e("original"),
|
|
281
|
+
type: "checkbox",
|
|
282
|
+
indeterminate: i.indeterminate,
|
|
283
|
+
name: i.name,
|
|
284
|
+
tabindex: i.tabindex,
|
|
285
|
+
disabled: c(d)
|
|
286
|
+
}, n.value, {
|
|
287
|
+
onChange: k[1] || (k[1] = (...C) => c(x) && c(x)(...C)),
|
|
288
|
+
onFocus: k[2] || (k[2] = (C) => o.value = !0),
|
|
289
|
+
onBlur: k[3] || (k[3] = (C) => o.value = !1),
|
|
290
|
+
onClick: k[4] || (k[4] = ue(() => {
|
|
291
|
+
}, ["stop"]))
|
|
292
|
+
}), null, 16, Oe), [
|
|
293
|
+
[se, c(s)]
|
|
294
|
+
]),
|
|
295
|
+
I(
|
|
296
|
+
"span",
|
|
297
|
+
{
|
|
298
|
+
class: S(c(l).e("inner"))
|
|
299
|
+
},
|
|
300
|
+
null,
|
|
301
|
+
2
|
|
302
|
+
)
|
|
303
|
+
],
|
|
304
|
+
2
|
|
305
|
+
),
|
|
306
|
+
c(v) ? (V(), B(
|
|
307
|
+
"span",
|
|
308
|
+
{
|
|
309
|
+
key: 0,
|
|
310
|
+
class: S(c(l).e("label"))
|
|
311
|
+
},
|
|
312
|
+
[
|
|
313
|
+
j(i.$slots, "default"),
|
|
314
|
+
i.$slots.default ? $("v-if", !0) : (V(), B(
|
|
315
|
+
ie,
|
|
316
|
+
{ key: 0 },
|
|
317
|
+
[
|
|
318
|
+
re(
|
|
319
|
+
ce(i.label),
|
|
320
|
+
1
|
|
321
|
+
)
|
|
322
|
+
],
|
|
323
|
+
64
|
|
324
|
+
))
|
|
325
|
+
],
|
|
326
|
+
2
|
|
327
|
+
)) : $("v-if", !0)
|
|
328
|
+
]),
|
|
329
|
+
_: 3
|
|
330
|
+
}, 8, ["for", "class", "aria-controls", "aria-checked", "aria-label", "onClick"]));
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
var Ce = /* @__PURE__ */ M(Te, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);
|
|
334
|
+
const Ae = ["name", "tabindex", "disabled"], Re = R({
|
|
335
|
+
name: "ElCheckboxButton",
|
|
336
|
+
__name: "checkbox-button",
|
|
337
|
+
props: ke,
|
|
338
|
+
emits: xe,
|
|
339
|
+
setup(e) {
|
|
340
|
+
const t = e, r = ae(), {
|
|
341
|
+
isFocused: a,
|
|
342
|
+
isChecked: m,
|
|
343
|
+
isDisabled: f,
|
|
344
|
+
checkboxButtonSize: d,
|
|
345
|
+
model: o,
|
|
346
|
+
actualValue: h,
|
|
347
|
+
handleChange: v
|
|
348
|
+
} = ge(t, r), s = p(() => {
|
|
349
|
+
var l, u, b, i;
|
|
350
|
+
return t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
|
|
351
|
+
"true-value": (u = (l = t.trueValue) != null ? l : t.trueLabel) != null ? u : !0,
|
|
352
|
+
"false-value": (i = (b = t.falseValue) != null ? b : t.falseLabel) != null ? i : !1
|
|
353
|
+
} : {
|
|
354
|
+
value: h.value
|
|
355
|
+
};
|
|
356
|
+
}), g = L(E, void 0), x = q("checkbox"), y = p(() => {
|
|
357
|
+
var l, u, b, i;
|
|
358
|
+
const k = (u = (l = g?.fill) == null ? void 0 : l.value) != null ? u : "";
|
|
359
|
+
return {
|
|
360
|
+
backgroundColor: k,
|
|
361
|
+
borderColor: k,
|
|
362
|
+
color: (i = (b = g?.textColor) == null ? void 0 : b.value) != null ? i : "",
|
|
363
|
+
boxShadow: k ? `-1px 0 0 0 ${k}` : void 0
|
|
364
|
+
};
|
|
365
|
+
}), n = p(() => [
|
|
366
|
+
x.b("button"),
|
|
367
|
+
x.bm("button", d.value),
|
|
368
|
+
x.is("disabled", f.value),
|
|
369
|
+
x.is("checked", m.value),
|
|
370
|
+
x.is("focus", a.value)
|
|
371
|
+
]);
|
|
372
|
+
return (l, u) => (V(), B(
|
|
373
|
+
"label",
|
|
374
|
+
{
|
|
375
|
+
class: S(n.value)
|
|
376
|
+
},
|
|
377
|
+
[
|
|
378
|
+
ne(I("input", U({
|
|
379
|
+
"onUpdate:modelValue": u[0] || (u[0] = (b) => oe(o) ? o.value = b : null),
|
|
380
|
+
class: c(x).be("button", "original"),
|
|
381
|
+
type: "checkbox",
|
|
382
|
+
name: l.name,
|
|
383
|
+
tabindex: l.tabindex,
|
|
384
|
+
disabled: c(f)
|
|
385
|
+
}, s.value, {
|
|
386
|
+
onChange: u[1] || (u[1] = (...b) => c(v) && c(v)(...b)),
|
|
387
|
+
onFocus: u[2] || (u[2] = (b) => a.value = !0),
|
|
388
|
+
onBlur: u[3] || (u[3] = (b) => a.value = !1),
|
|
389
|
+
onClick: u[4] || (u[4] = ue(() => {
|
|
390
|
+
}, ["stop"]))
|
|
391
|
+
}), null, 16, Ae), [
|
|
392
|
+
[se, c(o)]
|
|
393
|
+
]),
|
|
394
|
+
l.$slots.default || l.label ? (V(), B(
|
|
395
|
+
"span",
|
|
396
|
+
{
|
|
397
|
+
key: 0,
|
|
398
|
+
class: S(c(x).be("button", "inner")),
|
|
399
|
+
style: Se(c(m) ? y.value : void 0)
|
|
400
|
+
},
|
|
401
|
+
[
|
|
402
|
+
j(l.$slots, "default", {}, () => [
|
|
403
|
+
re(
|
|
404
|
+
ce(l.label),
|
|
405
|
+
1
|
|
406
|
+
)
|
|
407
|
+
])
|
|
408
|
+
],
|
|
409
|
+
6
|
|
410
|
+
)) : $("v-if", !0)
|
|
411
|
+
],
|
|
412
|
+
2
|
|
413
|
+
));
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
var H = /* @__PURE__ */ M(Re, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);
|
|
417
|
+
const Ue = Ne({
|
|
418
|
+
modelValue: {
|
|
419
|
+
type: w(Array),
|
|
420
|
+
default: () => []
|
|
421
|
+
},
|
|
422
|
+
disabled: {
|
|
423
|
+
type: Boolean,
|
|
424
|
+
default: void 0
|
|
425
|
+
},
|
|
426
|
+
min: Number,
|
|
427
|
+
max: Number,
|
|
428
|
+
size: be,
|
|
429
|
+
fill: String,
|
|
430
|
+
textColor: String,
|
|
431
|
+
tag: {
|
|
432
|
+
type: String,
|
|
433
|
+
default: "div"
|
|
434
|
+
},
|
|
435
|
+
validateEvent: {
|
|
436
|
+
type: Boolean,
|
|
437
|
+
default: !0
|
|
438
|
+
},
|
|
439
|
+
options: {
|
|
440
|
+
type: w(Array)
|
|
441
|
+
},
|
|
442
|
+
props: {
|
|
443
|
+
type: w(Object),
|
|
444
|
+
default: () => ye
|
|
445
|
+
},
|
|
446
|
+
type: {
|
|
447
|
+
type: String,
|
|
448
|
+
values: ["checkbox", "button"],
|
|
449
|
+
default: "checkbox"
|
|
450
|
+
},
|
|
451
|
+
...de(["ariaLabel"])
|
|
452
|
+
}), je = {
|
|
453
|
+
[N]: (e) => _(e),
|
|
454
|
+
change: (e) => _(e)
|
|
455
|
+
}, ye = {
|
|
456
|
+
label: "label",
|
|
457
|
+
value: "value",
|
|
458
|
+
disabled: "disabled"
|
|
459
|
+
}, Ke = R({
|
|
460
|
+
name: "ElCheckboxGroup",
|
|
461
|
+
__name: "checkbox-group",
|
|
462
|
+
props: Ue,
|
|
463
|
+
emits: je,
|
|
464
|
+
setup(e, { emit: t }) {
|
|
465
|
+
const r = e, a = t, m = q("checkbox"), f = ve(), { formItem: d } = K(), { inputId: o, isLabeledByFormItem: h } = he(r, {
|
|
466
|
+
formItemContext: d
|
|
467
|
+
}), v = async (n) => {
|
|
468
|
+
a(N, n), await le(), a(T, n);
|
|
469
|
+
}, s = p({
|
|
470
|
+
get() {
|
|
471
|
+
return r.modelValue;
|
|
472
|
+
},
|
|
473
|
+
set(n) {
|
|
474
|
+
v(n);
|
|
475
|
+
}
|
|
476
|
+
}), g = p(() => ({
|
|
477
|
+
...ye,
|
|
478
|
+
...r.props
|
|
479
|
+
})), x = (n) => {
|
|
480
|
+
const { label: l, value: u, disabled: b } = g.value, i = {
|
|
481
|
+
label: n[l],
|
|
482
|
+
value: n[u],
|
|
483
|
+
disabled: n[b]
|
|
484
|
+
};
|
|
485
|
+
return { ...De(n, [l, u, b]), ...i };
|
|
486
|
+
}, y = p(
|
|
487
|
+
() => r.type === "button" ? H : Ce
|
|
488
|
+
);
|
|
489
|
+
return Le(E, {
|
|
490
|
+
...we(Ee(r), [
|
|
491
|
+
"size",
|
|
492
|
+
"min",
|
|
493
|
+
"max",
|
|
494
|
+
"validateEvent",
|
|
495
|
+
"fill",
|
|
496
|
+
"textColor"
|
|
497
|
+
]),
|
|
498
|
+
disabled: f,
|
|
499
|
+
modelValue: s,
|
|
500
|
+
changeEvent: v
|
|
501
|
+
}), ee(
|
|
502
|
+
() => r.modelValue,
|
|
503
|
+
(n, l) => {
|
|
504
|
+
r.validateEvent && !fe(n, l) && d?.validate("change").catch((u) => me(u));
|
|
505
|
+
}
|
|
506
|
+
), (n, l) => {
|
|
507
|
+
var u;
|
|
508
|
+
return V(), z(F(n.tag), {
|
|
509
|
+
id: c(o),
|
|
510
|
+
class: S(c(m).b("group")),
|
|
511
|
+
role: "group",
|
|
512
|
+
"aria-label": c(h) ? void 0 : n.ariaLabel || "checkbox-group",
|
|
513
|
+
"aria-labelledby": c(h) ? (u = c(d)) == null ? void 0 : u.labelId : void 0
|
|
514
|
+
}, {
|
|
515
|
+
default: te(() => [
|
|
516
|
+
j(n.$slots, "default", {}, () => [
|
|
517
|
+
(V(!0), B(
|
|
518
|
+
ie,
|
|
519
|
+
null,
|
|
520
|
+
Be(n.options, (b, i) => (V(), z(
|
|
521
|
+
F(y.value),
|
|
522
|
+
U({ key: i }, { ref_for: !0 }, x(b)),
|
|
523
|
+
null,
|
|
524
|
+
16
|
|
525
|
+
))),
|
|
526
|
+
128
|
|
527
|
+
))
|
|
528
|
+
])
|
|
529
|
+
]),
|
|
530
|
+
_: 3
|
|
531
|
+
}, 8, ["id", "class", "aria-label", "aria-labelledby"]);
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
var Ve = /* @__PURE__ */ M(Ke, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);
|
|
536
|
+
const We = Ge(Ce, {
|
|
537
|
+
CheckboxButton: H,
|
|
538
|
+
CheckboxGroup: Ve
|
|
539
|
+
});
|
|
540
|
+
pe(H);
|
|
541
|
+
const Je = pe(Ve);
|
|
542
|
+
export {
|
|
543
|
+
We as E,
|
|
544
|
+
Je as a
|
|
545
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as u, resolveComponent as h, createElementBlock as r, openBlock as c, createElementVNode as n, Fragment as v, renderList as C, createVNode as x, toDisplayString as S } from "vue";
|
|
2
|
-
import { c as b, l as y } from "./datav-
|
|
3
|
-
import { u as E, a as k,
|
|
2
|
+
import { c as b, l as y } from "./datav-BTD-HJhV.js";
|
|
3
|
+
import { u as E, a as k, bh as w, _ as D } from "./index-B8QqTLfg.js";
|
|
4
4
|
import { u as L } from "./toolbar-Dhf_BVAU.js";
|
|
5
5
|
const B = { class: "component-library" }, M = { class: "component-categories" }, N = { class: "component-grid" }, T = ["draggable", "onDragstart", "onClick"], V = { class: "component-preview flex-center" }, A = { class: "component-name" }, F = /* @__PURE__ */ g({
|
|
6
6
|
__name: "index",
|