@xtctwins/tctwins-bimx-engine 0.1.0
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/README.md +1 -0
- package/dist/AnnotationTool-j9uTpTri.mjs +181 -0
- package/dist/BIMX_Viewer_Lib.es.js +8 -0
- package/dist/BIMX_Viewer_Lib.umd.js +90165 -0
- package/dist/CommentTool-BLrsulc_.mjs +186 -0
- package/dist/InspectorTool-BouA94us.mjs +166 -0
- package/dist/MeasureTool-CbYIFTPr.mjs +1468 -0
- package/dist/RoamTool-CXZPca_M.mjs +43 -0
- package/dist/ScreenShotTool-BiNcu9RZ.mjs +368 -0
- package/dist/SectionTool-DogiOv1d.mjs +466 -0
- package/dist/SettingTool-ClISeAhW.mjs +1261 -0
- package/dist/StructureTree-CmsIBbBk.mjs +1415 -0
- package/dist/closeButton.vue_vue_type_style_index_0_scope_true_lang-CBPVV86B.mjs +52 -0
- package/dist/const-DeAig7Pj.mjs +202 -0
- package/dist/debounce-B430Iy_D.mjs +80 -0
- package/dist/el-checkbox-id3wFY0e.mjs +479 -0
- package/dist/el-input-BW5rElpS.mjs +559 -0
- package/dist/el-scrollbar-La242VUu.mjs +34 -0
- package/dist/favicon.ico +0 -0
- package/dist/icon-DZm1Csdm.mjs +193 -0
- package/dist/index-3StVDuUH.mjs +115680 -0
- package/dist/index-BgjjA9sB.mjs +502 -0
- package/dist/index-L-tY1Gou.mjs +286 -0
- package/dist/index.html +17 -0
- package/dist/style.css +1 -0
- package/dist/use-form-item-DkYURTpK.mjs +105 -0
- package/package.json +67 -0
- package/types/BIMX_Viewer_Initial/viewerInitial.d.ts +16 -0
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +10 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/ScreenShotTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +6 -0
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimX_Viewer.vue.d.ts +7 -0
- package/types/components/index.d.ts +4 -0
- package/types/components/types.d.ts +1 -0
- package/types/components/utilsComponents/closeButton.vue.d.ts +41 -0
- package/types/index.d.ts +9 -0
- package/types/main.d.ts +1 -0
- package/types/pages/mainView.vue.d.ts +7 -0
- package/types/router/index.d.ts +2 -0
- package/types/services/request/config.d.ts +13 -0
- package/types/store/components.d.ts +6 -0
- package/types/store/const.d.ts +200 -0
- package/types/store/ifcPropertyReflect.d.ts +1 -0
- package/types/store/toolbars.d.ts +96 -0
- package/types/utils/OSSHelper.d.ts +5 -0
- package/types/utils/eventBus.d.ts +2 -0
- package/types/utils/roles.d.ts +1 -0
- package/types/utils/splitType.d.ts +3 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import { inject as F, computed as k, getCurrentInstance as Y, watch as Z, nextTick as _, ref as P, toRaw as Q, defineComponent as L, useSlots as ee, openBlock as y, createBlock as le, resolveDynamicComponent as ae, unref as t, normalizeClass as x, withCtx as te, createElementVNode as W, withDirectives as z, createElementBlock as S, isRef as D, withModifiers as G, vModelCheckbox as w, renderSlot as R, Fragment as pe, createTextVNode as ne, toDisplayString as oe, createCommentVNode as T, normalizeStyle as ke, provide as he, toRefs as ge } from "vue";
|
|
2
|
+
import { d as ue, U, e as Ce, a as K, u as H, b as se, f as $ } from "./use-form-item-DkYURTpK.mjs";
|
|
3
|
+
import { I as ie, e as J, c as X, N as O, D as A, x as re, B as N, Q as M, g as xe, u as j, _ as q, a as ye, d as Se, U as Ve, w as Le, L as de } from "./index-3StVDuUH.mjs";
|
|
4
|
+
import { i as Be } from "./index-BgjjA9sB.mjs";
|
|
5
|
+
const be = {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: [Number, String, Boolean],
|
|
8
|
+
default: void 0
|
|
9
|
+
},
|
|
10
|
+
label: {
|
|
11
|
+
type: [String, Boolean, Number, Object],
|
|
12
|
+
default: void 0
|
|
13
|
+
},
|
|
14
|
+
value: {
|
|
15
|
+
type: [String, Boolean, Number, Object],
|
|
16
|
+
default: void 0
|
|
17
|
+
},
|
|
18
|
+
indeterminate: Boolean,
|
|
19
|
+
disabled: Boolean,
|
|
20
|
+
checked: Boolean,
|
|
21
|
+
name: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: void 0
|
|
24
|
+
},
|
|
25
|
+
trueValue: {
|
|
26
|
+
type: [String, Number],
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
29
|
+
falseValue: {
|
|
30
|
+
type: [String, Number],
|
|
31
|
+
default: void 0
|
|
32
|
+
},
|
|
33
|
+
trueLabel: {
|
|
34
|
+
type: [String, Number],
|
|
35
|
+
default: void 0
|
|
36
|
+
},
|
|
37
|
+
falseLabel: {
|
|
38
|
+
type: [String, Number],
|
|
39
|
+
default: void 0
|
|
40
|
+
},
|
|
41
|
+
id: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: void 0
|
|
44
|
+
},
|
|
45
|
+
controls: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: void 0
|
|
48
|
+
},
|
|
49
|
+
border: Boolean,
|
|
50
|
+
size: ue,
|
|
51
|
+
tabindex: [String, Number],
|
|
52
|
+
validateEvent: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !0
|
|
55
|
+
},
|
|
56
|
+
...ie(["ariaControls"])
|
|
57
|
+
}, ce = {
|
|
58
|
+
[U]: (e) => J(e) || X(e) || O(e),
|
|
59
|
+
change: (e) => J(e) || X(e) || O(e)
|
|
60
|
+
}, B = Symbol("checkboxGroupContextKey"), Ee = ({
|
|
61
|
+
model: e,
|
|
62
|
+
isChecked: c
|
|
63
|
+
}) => {
|
|
64
|
+
const d = F(B, void 0), n = k(() => {
|
|
65
|
+
var b, v;
|
|
66
|
+
const o = (b = d == null ? void 0 : d.max) == null ? void 0 : b.value, f = (v = d == null ? void 0 : d.min) == null ? void 0 : v.value;
|
|
67
|
+
return !A(o) && e.value.length >= o && !c.value || !A(f) && e.value.length <= f && c.value;
|
|
68
|
+
});
|
|
69
|
+
return {
|
|
70
|
+
isDisabled: Ce(k(() => (d == null ? void 0 : d.disabled.value) || n.value)),
|
|
71
|
+
isLimitDisabled: n
|
|
72
|
+
};
|
|
73
|
+
}, Ie = (e, {
|
|
74
|
+
model: c,
|
|
75
|
+
isLimitExceeded: d,
|
|
76
|
+
hasOwnLabel: n,
|
|
77
|
+
isDisabled: m,
|
|
78
|
+
isLabeledByFormItem: b
|
|
79
|
+
}) => {
|
|
80
|
+
const v = F(B, void 0), { formItem: o } = K(), { emit: f } = Y();
|
|
81
|
+
function r(l) {
|
|
82
|
+
var s, h, i, a;
|
|
83
|
+
return [!0, e.trueValue, e.trueLabel].includes(l) ? (h = (s = e.trueValue) != null ? s : e.trueLabel) != null ? h : !0 : (a = (i = e.falseValue) != null ? i : e.falseLabel) != null ? a : !1;
|
|
84
|
+
}
|
|
85
|
+
function u(l, s) {
|
|
86
|
+
f("change", r(l), s);
|
|
87
|
+
}
|
|
88
|
+
function p(l) {
|
|
89
|
+
if (d.value)
|
|
90
|
+
return;
|
|
91
|
+
const s = l.target;
|
|
92
|
+
f("change", r(s.checked), l);
|
|
93
|
+
}
|
|
94
|
+
async function g(l) {
|
|
95
|
+
d.value || !n.value && !m.value && b.value && (l.composedPath().some((i) => i.tagName === "LABEL") || (c.value = r([!1, e.falseValue, e.falseLabel].includes(c.value)), await _(), u(c.value, l)));
|
|
96
|
+
}
|
|
97
|
+
const V = k(() => (v == null ? void 0 : v.validateEvent) || e.validateEvent);
|
|
98
|
+
return Z(() => e.modelValue, () => {
|
|
99
|
+
V.value && (o == null || o.validate("change").catch((l) => re(l)));
|
|
100
|
+
}), {
|
|
101
|
+
handleChange: p,
|
|
102
|
+
onClickRoot: g
|
|
103
|
+
};
|
|
104
|
+
}, $e = (e) => {
|
|
105
|
+
const c = P(!1), { emit: d } = Y(), n = F(B, void 0), m = k(() => A(n) === !1), b = P(!1), v = k({
|
|
106
|
+
get() {
|
|
107
|
+
var o, f;
|
|
108
|
+
return m.value ? (o = n == null ? void 0 : n.modelValue) == null ? void 0 : o.value : (f = e.modelValue) != null ? f : c.value;
|
|
109
|
+
},
|
|
110
|
+
set(o) {
|
|
111
|
+
var f, r;
|
|
112
|
+
m.value && N(o) ? (b.value = ((f = n == null ? void 0 : n.max) == null ? void 0 : f.value) !== void 0 && o.length > (n == null ? void 0 : n.max.value) && o.length > v.value.length, b.value === !1 && ((r = n == null ? void 0 : n.changeEvent) == null || r.call(n, o))) : (d(U, o), c.value = o);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return {
|
|
116
|
+
model: v,
|
|
117
|
+
isGroup: m,
|
|
118
|
+
isLimitExceeded: b
|
|
119
|
+
};
|
|
120
|
+
}, Ne = (e, c, { model: d }) => {
|
|
121
|
+
const n = F(B, void 0), m = P(!1), b = k(() => M(e.value) ? e.label : e.value), v = k(() => {
|
|
122
|
+
const u = d.value;
|
|
123
|
+
return O(u) ? u : N(u) ? xe(b.value) ? u.map(Q).some((p) => Be(p, b.value)) : u.map(Q).includes(b.value) : u != null ? u === e.trueValue || u === e.trueLabel : !!u;
|
|
124
|
+
}), o = H(k(() => {
|
|
125
|
+
var u;
|
|
126
|
+
return (u = n == null ? void 0 : n.size) == null ? void 0 : u.value;
|
|
127
|
+
}), {
|
|
128
|
+
prop: !0
|
|
129
|
+
}), f = H(k(() => {
|
|
130
|
+
var u;
|
|
131
|
+
return (u = n == null ? void 0 : n.size) == null ? void 0 : u.value;
|
|
132
|
+
})), r = k(() => !!c.default || !M(b.value));
|
|
133
|
+
return {
|
|
134
|
+
checkboxButtonSize: o,
|
|
135
|
+
isChecked: v,
|
|
136
|
+
isFocused: m,
|
|
137
|
+
checkboxSize: f,
|
|
138
|
+
hasOwnLabel: r,
|
|
139
|
+
actualValue: b
|
|
140
|
+
};
|
|
141
|
+
}, ve = (e, c) => {
|
|
142
|
+
const { formItem: d } = K(), { model: n, isGroup: m, isLimitExceeded: b } = $e(e), {
|
|
143
|
+
isFocused: v,
|
|
144
|
+
isChecked: o,
|
|
145
|
+
checkboxButtonSize: f,
|
|
146
|
+
checkboxSize: r,
|
|
147
|
+
hasOwnLabel: u,
|
|
148
|
+
actualValue: p
|
|
149
|
+
} = Ne(e, c, { model: n }), { isDisabled: g } = Ee({ model: n, isChecked: o }), { inputId: V, isLabeledByFormItem: l } = se(e, {
|
|
150
|
+
formItemContext: d,
|
|
151
|
+
disableIdGeneration: u,
|
|
152
|
+
disableIdManagement: m
|
|
153
|
+
}), { handleChange: s, onClickRoot: h } = Ie(e, {
|
|
154
|
+
model: n,
|
|
155
|
+
isLimitExceeded: b,
|
|
156
|
+
hasOwnLabel: u,
|
|
157
|
+
isDisabled: g,
|
|
158
|
+
isLabeledByFormItem: l
|
|
159
|
+
});
|
|
160
|
+
return (() => {
|
|
161
|
+
function a() {
|
|
162
|
+
var E, I;
|
|
163
|
+
N(n.value) && !n.value.includes(p.value) ? n.value.push(p.value) : n.value = (I = (E = e.trueValue) != null ? E : e.trueLabel) != null ? I : !0;
|
|
164
|
+
}
|
|
165
|
+
e.checked && a();
|
|
166
|
+
})(), $({
|
|
167
|
+
from: "controls",
|
|
168
|
+
replacement: "aria-controls",
|
|
169
|
+
version: "2.8.0",
|
|
170
|
+
scope: "el-checkbox",
|
|
171
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
172
|
+
}, k(() => !!e.controls)), $({
|
|
173
|
+
from: "label act as value",
|
|
174
|
+
replacement: "value",
|
|
175
|
+
version: "3.0.0",
|
|
176
|
+
scope: "el-checkbox",
|
|
177
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
178
|
+
}, k(() => m.value && M(e.value))), $({
|
|
179
|
+
from: "true-label",
|
|
180
|
+
replacement: "true-value",
|
|
181
|
+
version: "3.0.0",
|
|
182
|
+
scope: "el-checkbox",
|
|
183
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
184
|
+
}, k(() => !!e.trueLabel)), $({
|
|
185
|
+
from: "false-label",
|
|
186
|
+
replacement: "false-value",
|
|
187
|
+
version: "3.0.0",
|
|
188
|
+
scope: "el-checkbox",
|
|
189
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
190
|
+
}, k(() => !!e.falseLabel)), {
|
|
191
|
+
inputId: V,
|
|
192
|
+
isLabeledByFormItem: l,
|
|
193
|
+
isChecked: o,
|
|
194
|
+
isDisabled: g,
|
|
195
|
+
isFocused: v,
|
|
196
|
+
checkboxButtonSize: f,
|
|
197
|
+
checkboxSize: r,
|
|
198
|
+
hasOwnLabel: u,
|
|
199
|
+
model: n,
|
|
200
|
+
actualValue: p,
|
|
201
|
+
handleChange: s,
|
|
202
|
+
onClickRoot: h
|
|
203
|
+
};
|
|
204
|
+
}, Fe = ["id", "indeterminate", "name", "tabindex", "disabled", "true-value", "false-value"], ze = ["id", "indeterminate", "disabled", "value", "name", "tabindex"], De = L({
|
|
205
|
+
name: "ElCheckbox"
|
|
206
|
+
}), Ge = /* @__PURE__ */ L({
|
|
207
|
+
...De,
|
|
208
|
+
props: be,
|
|
209
|
+
emits: ce,
|
|
210
|
+
setup(e) {
|
|
211
|
+
const c = e, d = ee(), {
|
|
212
|
+
inputId: n,
|
|
213
|
+
isLabeledByFormItem: m,
|
|
214
|
+
isChecked: b,
|
|
215
|
+
isDisabled: v,
|
|
216
|
+
isFocused: o,
|
|
217
|
+
checkboxSize: f,
|
|
218
|
+
hasOwnLabel: r,
|
|
219
|
+
model: u,
|
|
220
|
+
actualValue: p,
|
|
221
|
+
handleChange: g,
|
|
222
|
+
onClickRoot: V
|
|
223
|
+
} = ve(c, d), l = j("checkbox"), s = k(() => [
|
|
224
|
+
l.b(),
|
|
225
|
+
l.m(f.value),
|
|
226
|
+
l.is("disabled", v.value),
|
|
227
|
+
l.is("bordered", c.border),
|
|
228
|
+
l.is("checked", b.value)
|
|
229
|
+
]), h = k(() => [
|
|
230
|
+
l.e("input"),
|
|
231
|
+
l.is("disabled", v.value),
|
|
232
|
+
l.is("checked", b.value),
|
|
233
|
+
l.is("indeterminate", c.indeterminate),
|
|
234
|
+
l.is("focus", o.value)
|
|
235
|
+
]);
|
|
236
|
+
return (i, a) => (y(), le(ae(!t(r) && t(m) ? "span" : "label"), {
|
|
237
|
+
class: x(t(s)),
|
|
238
|
+
"aria-controls": i.indeterminate ? i.controls || i.ariaControls : null,
|
|
239
|
+
onClick: t(V)
|
|
240
|
+
}, {
|
|
241
|
+
default: te(() => {
|
|
242
|
+
var E, I;
|
|
243
|
+
return [
|
|
244
|
+
W("span", {
|
|
245
|
+
class: x(t(h))
|
|
246
|
+
}, [
|
|
247
|
+
i.trueValue || i.falseValue || i.trueLabel || i.falseLabel ? z((y(), S("input", {
|
|
248
|
+
key: 0,
|
|
249
|
+
id: t(n),
|
|
250
|
+
"onUpdate:modelValue": a[0] || (a[0] = (C) => D(u) ? u.value = C : null),
|
|
251
|
+
class: x(t(l).e("original")),
|
|
252
|
+
type: "checkbox",
|
|
253
|
+
indeterminate: i.indeterminate,
|
|
254
|
+
name: i.name,
|
|
255
|
+
tabindex: i.tabindex,
|
|
256
|
+
disabled: t(v),
|
|
257
|
+
"true-value": (E = i.trueValue) != null ? E : i.trueLabel,
|
|
258
|
+
"false-value": (I = i.falseValue) != null ? I : i.falseLabel,
|
|
259
|
+
onChange: a[1] || (a[1] = (...C) => t(g) && t(g)(...C)),
|
|
260
|
+
onFocus: a[2] || (a[2] = (C) => o.value = !0),
|
|
261
|
+
onBlur: a[3] || (a[3] = (C) => o.value = !1),
|
|
262
|
+
onClick: a[4] || (a[4] = G(() => {
|
|
263
|
+
}, ["stop"]))
|
|
264
|
+
}, null, 42, Fe)), [
|
|
265
|
+
[w, t(u)]
|
|
266
|
+
]) : z((y(), S("input", {
|
|
267
|
+
key: 1,
|
|
268
|
+
id: t(n),
|
|
269
|
+
"onUpdate:modelValue": a[5] || (a[5] = (C) => D(u) ? u.value = C : null),
|
|
270
|
+
class: x(t(l).e("original")),
|
|
271
|
+
type: "checkbox",
|
|
272
|
+
indeterminate: i.indeterminate,
|
|
273
|
+
disabled: t(v),
|
|
274
|
+
value: t(p),
|
|
275
|
+
name: i.name,
|
|
276
|
+
tabindex: i.tabindex,
|
|
277
|
+
onChange: a[6] || (a[6] = (...C) => t(g) && t(g)(...C)),
|
|
278
|
+
onFocus: a[7] || (a[7] = (C) => o.value = !0),
|
|
279
|
+
onBlur: a[8] || (a[8] = (C) => o.value = !1),
|
|
280
|
+
onClick: a[9] || (a[9] = G(() => {
|
|
281
|
+
}, ["stop"]))
|
|
282
|
+
}, null, 42, ze)), [
|
|
283
|
+
[w, t(u)]
|
|
284
|
+
]),
|
|
285
|
+
W("span", {
|
|
286
|
+
class: x(t(l).e("inner"))
|
|
287
|
+
}, null, 2)
|
|
288
|
+
], 2),
|
|
289
|
+
t(r) ? (y(), S("span", {
|
|
290
|
+
key: 0,
|
|
291
|
+
class: x(t(l).e("label"))
|
|
292
|
+
}, [
|
|
293
|
+
R(i.$slots, "default"),
|
|
294
|
+
i.$slots.default ? T("v-if", !0) : (y(), S(pe, { key: 0 }, [
|
|
295
|
+
ne(oe(i.label), 1)
|
|
296
|
+
], 64))
|
|
297
|
+
], 2)) : T("v-if", !0)
|
|
298
|
+
];
|
|
299
|
+
}),
|
|
300
|
+
_: 3
|
|
301
|
+
}, 8, ["class", "aria-controls", "onClick"]));
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
var we = /* @__PURE__ */ q(Ge, [["__file", "checkbox.vue"]]);
|
|
305
|
+
const Ue = ["name", "tabindex", "disabled", "true-value", "false-value"], Pe = ["name", "tabindex", "disabled", "value"], Te = L({
|
|
306
|
+
name: "ElCheckboxButton"
|
|
307
|
+
}), Oe = /* @__PURE__ */ L({
|
|
308
|
+
...Te,
|
|
309
|
+
props: be,
|
|
310
|
+
emits: ce,
|
|
311
|
+
setup(e) {
|
|
312
|
+
const c = e, d = ee(), {
|
|
313
|
+
isFocused: n,
|
|
314
|
+
isChecked: m,
|
|
315
|
+
isDisabled: b,
|
|
316
|
+
checkboxButtonSize: v,
|
|
317
|
+
model: o,
|
|
318
|
+
actualValue: f,
|
|
319
|
+
handleChange: r
|
|
320
|
+
} = ve(c, d), u = F(B, void 0), p = j("checkbox"), g = k(() => {
|
|
321
|
+
var l, s, h, i;
|
|
322
|
+
const a = (s = (l = u == null ? void 0 : u.fill) == null ? void 0 : l.value) != null ? s : "";
|
|
323
|
+
return {
|
|
324
|
+
backgroundColor: a,
|
|
325
|
+
borderColor: a,
|
|
326
|
+
color: (i = (h = u == null ? void 0 : u.textColor) == null ? void 0 : h.value) != null ? i : "",
|
|
327
|
+
boxShadow: a ? `-1px 0 0 0 ${a}` : void 0
|
|
328
|
+
};
|
|
329
|
+
}), V = k(() => [
|
|
330
|
+
p.b("button"),
|
|
331
|
+
p.bm("button", v.value),
|
|
332
|
+
p.is("disabled", b.value),
|
|
333
|
+
p.is("checked", m.value),
|
|
334
|
+
p.is("focus", n.value)
|
|
335
|
+
]);
|
|
336
|
+
return (l, s) => {
|
|
337
|
+
var h, i;
|
|
338
|
+
return y(), S("label", {
|
|
339
|
+
class: x(t(V))
|
|
340
|
+
}, [
|
|
341
|
+
l.trueValue || l.falseValue || l.trueLabel || l.falseLabel ? z((y(), S("input", {
|
|
342
|
+
key: 0,
|
|
343
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => D(o) ? o.value = a : null),
|
|
344
|
+
class: x(t(p).be("button", "original")),
|
|
345
|
+
type: "checkbox",
|
|
346
|
+
name: l.name,
|
|
347
|
+
tabindex: l.tabindex,
|
|
348
|
+
disabled: t(b),
|
|
349
|
+
"true-value": (h = l.trueValue) != null ? h : l.trueLabel,
|
|
350
|
+
"false-value": (i = l.falseValue) != null ? i : l.falseLabel,
|
|
351
|
+
onChange: s[1] || (s[1] = (...a) => t(r) && t(r)(...a)),
|
|
352
|
+
onFocus: s[2] || (s[2] = (a) => n.value = !0),
|
|
353
|
+
onBlur: s[3] || (s[3] = (a) => n.value = !1),
|
|
354
|
+
onClick: s[4] || (s[4] = G(() => {
|
|
355
|
+
}, ["stop"]))
|
|
356
|
+
}, null, 42, Ue)), [
|
|
357
|
+
[w, t(o)]
|
|
358
|
+
]) : z((y(), S("input", {
|
|
359
|
+
key: 1,
|
|
360
|
+
"onUpdate:modelValue": s[5] || (s[5] = (a) => D(o) ? o.value = a : null),
|
|
361
|
+
class: x(t(p).be("button", "original")),
|
|
362
|
+
type: "checkbox",
|
|
363
|
+
name: l.name,
|
|
364
|
+
tabindex: l.tabindex,
|
|
365
|
+
disabled: t(b),
|
|
366
|
+
value: t(f),
|
|
367
|
+
onChange: s[6] || (s[6] = (...a) => t(r) && t(r)(...a)),
|
|
368
|
+
onFocus: s[7] || (s[7] = (a) => n.value = !0),
|
|
369
|
+
onBlur: s[8] || (s[8] = (a) => n.value = !1),
|
|
370
|
+
onClick: s[9] || (s[9] = G(() => {
|
|
371
|
+
}, ["stop"]))
|
|
372
|
+
}, null, 42, Pe)), [
|
|
373
|
+
[w, t(o)]
|
|
374
|
+
]),
|
|
375
|
+
l.$slots.default || l.label ? (y(), S("span", {
|
|
376
|
+
key: 2,
|
|
377
|
+
class: x(t(p).be("button", "inner")),
|
|
378
|
+
style: ke(t(m) ? t(g) : void 0)
|
|
379
|
+
}, [
|
|
380
|
+
R(l.$slots, "default", {}, () => [
|
|
381
|
+
ne(oe(l.label), 1)
|
|
382
|
+
])
|
|
383
|
+
], 6)) : T("v-if", !0)
|
|
384
|
+
], 2);
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
var me = /* @__PURE__ */ q(Oe, [["__file", "checkbox-button.vue"]]);
|
|
389
|
+
const Ae = ye({
|
|
390
|
+
modelValue: {
|
|
391
|
+
type: Se(Array),
|
|
392
|
+
default: () => []
|
|
393
|
+
},
|
|
394
|
+
disabled: Boolean,
|
|
395
|
+
min: Number,
|
|
396
|
+
max: Number,
|
|
397
|
+
size: ue,
|
|
398
|
+
label: String,
|
|
399
|
+
fill: String,
|
|
400
|
+
textColor: String,
|
|
401
|
+
tag: {
|
|
402
|
+
type: String,
|
|
403
|
+
default: "div"
|
|
404
|
+
},
|
|
405
|
+
validateEvent: {
|
|
406
|
+
type: Boolean,
|
|
407
|
+
default: !0
|
|
408
|
+
},
|
|
409
|
+
...ie(["ariaLabel"])
|
|
410
|
+
}), Me = {
|
|
411
|
+
[U]: (e) => N(e),
|
|
412
|
+
change: (e) => N(e)
|
|
413
|
+
}, Re = L({
|
|
414
|
+
name: "ElCheckboxGroup"
|
|
415
|
+
}), Ke = /* @__PURE__ */ L({
|
|
416
|
+
...Re,
|
|
417
|
+
props: Ae,
|
|
418
|
+
emits: Me,
|
|
419
|
+
setup(e, { emit: c }) {
|
|
420
|
+
const d = e, n = j("checkbox"), { formItem: m } = K(), { inputId: b, isLabeledByFormItem: v } = se(d, {
|
|
421
|
+
formItemContext: m
|
|
422
|
+
}), o = async (r) => {
|
|
423
|
+
c(U, r), await _(), c("change", r);
|
|
424
|
+
}, f = k({
|
|
425
|
+
get() {
|
|
426
|
+
return d.modelValue;
|
|
427
|
+
},
|
|
428
|
+
set(r) {
|
|
429
|
+
o(r);
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
return he(B, {
|
|
433
|
+
...Ve(ge(d), [
|
|
434
|
+
"size",
|
|
435
|
+
"min",
|
|
436
|
+
"max",
|
|
437
|
+
"disabled",
|
|
438
|
+
"validateEvent",
|
|
439
|
+
"fill",
|
|
440
|
+
"textColor"
|
|
441
|
+
]),
|
|
442
|
+
modelValue: f,
|
|
443
|
+
changeEvent: o
|
|
444
|
+
}), $({
|
|
445
|
+
from: "label",
|
|
446
|
+
replacement: "aria-label",
|
|
447
|
+
version: "2.8.0",
|
|
448
|
+
scope: "el-checkbox-group",
|
|
449
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
450
|
+
}, k(() => !!d.label)), Z(() => d.modelValue, () => {
|
|
451
|
+
d.validateEvent && (m == null || m.validate("change").catch((r) => re(r)));
|
|
452
|
+
}), (r, u) => {
|
|
453
|
+
var p;
|
|
454
|
+
return y(), le(ae(r.tag), {
|
|
455
|
+
id: t(b),
|
|
456
|
+
class: x(t(n).b("group")),
|
|
457
|
+
role: "group",
|
|
458
|
+
"aria-label": t(v) ? void 0 : r.label || r.ariaLabel || "checkbox-group",
|
|
459
|
+
"aria-labelledby": t(v) ? (p = t(m)) == null ? void 0 : p.labelId : void 0
|
|
460
|
+
}, {
|
|
461
|
+
default: te(() => [
|
|
462
|
+
R(r.$slots, "default")
|
|
463
|
+
]),
|
|
464
|
+
_: 3
|
|
465
|
+
}, 8, ["id", "class", "aria-label", "aria-labelledby"]);
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
var fe = /* @__PURE__ */ q(Ke, [["__file", "checkbox-group.vue"]]);
|
|
470
|
+
const He = Le(we, {
|
|
471
|
+
CheckboxButton: me,
|
|
472
|
+
CheckboxGroup: fe
|
|
473
|
+
});
|
|
474
|
+
de(me);
|
|
475
|
+
const Je = de(fe);
|
|
476
|
+
export {
|
|
477
|
+
He as E,
|
|
478
|
+
Je as a
|
|
479
|
+
};
|