@witlink/usercenter 1.0.0 → 1.0.2
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/dist/404.8c60a901.c3e76ee8.mjs +10 -0
- package/dist/{404.e6ab6ba0.mjs → 404.a6648431.mjs} +1 -1
- package/dist/Standard.f3edef69.f5212048.mjs +110 -0
- package/dist/{Standard.64ae6a8d.mjs → Standard.fc95c576.mjs} +38 -40
- package/dist/{WebClient.0ac67ce0.mjs → WebClient.80331fdc.mjs} +26 -27
- package/dist/WebClient.d57f9832.6ba94a3e.mjs +151 -0
- package/dist/assets/Standard.f3edef69.badeec91.css +1 -0
- package/dist/assets/WebClient.d57f9832.2a3e464e.css +1 -0
- package/dist/assets/index.2d0e9dcb.css +1 -0
- package/dist/assets/index.8b3e4f70.fb7724ee.css +1 -0
- package/dist/index.0da1fafa.015bee59.mjs +10 -0
- package/dist/index.1046a424.mjs +175799 -0
- package/dist/index.2242d1a7.66a01ef7.mjs +125 -0
- package/dist/index.2291c8e2.1c1e2758.mjs +125 -0
- package/dist/{index.ef2e93a1.mjs → index.2c2473ea.mjs} +167 -187
- package/dist/index.42fbc816.bcd3785a.mjs +10 -0
- package/dist/{index.e7802e27.mjs → index.5dce5a61.mjs} +149 -158
- package/dist/{index.da7dd593.mjs → index.69b68e45.mjs} +1 -1
- package/dist/index.8b3e4f70.550c8920.mjs +385 -0
- package/dist/index.9803c44f.5a0946eb.mjs +125 -0
- package/dist/index.9829f249.dfba489c.mjs +10 -0
- package/dist/{index.b3eb7c5d.mjs → index.cdd11689.mjs} +1 -1
- package/dist/{index.1af0e30d.mjs → index.ed4dbd01.mjs} +1 -1
- package/dist/usercenter.es.js +14 -0
- package/dist/usercenter.umd.js +6586 -354
- package/package.json +22 -9
- package/version.md +4 -1
- package/dist/Card.71482621.mjs +0 -1078
- package/dist/DictEx.754c617b.mjs +0 -156
- package/dist/FooterToolBar.2546fb1f.mjs +0 -33
- package/dist/RegionSelect.5272534b.mjs +0 -71
- package/dist/assets/FooterToolBar.d4297046.css +0 -1
- package/dist/assets/index.01a0fb63.css +0 -1
- package/dist/assets/index.19e5ba4c.css +0 -1
- package/dist/assets/index.2164de3b.css +0 -1
- package/dist/assets/index.269f5360.css +0 -1
- package/dist/assets/index.28bdbdc3.css +0 -1
- package/dist/assets/index.3150518d.css +0 -1
- package/dist/assets/index.3a0797c4.css +0 -1
- package/dist/assets/index.53c37fa8.css +0 -1
- package/dist/assets/index.7c8e2d8f.css +0 -1
- package/dist/assets/index.b965b94b.css +0 -1
- package/dist/index.003313e6.mjs +0 -69436
- package/dist/index.05ef920d.mjs +0 -1129
- package/dist/index.1953dbda.mjs +0 -498
- package/dist/index.3c2af165.mjs +0 -761
- package/dist/index.919ac6b4.mjs +0 -7431
- package/dist/index.941a34c0.mjs +0 -874
- package/dist/index.96479524.mjs +0 -754
- package/dist/index.a000e9cf.mjs +0 -1445
- package/dist/index.c9138cba.mjs +0 -1104
- package/dist/index.ceea88a4.mjs +0 -1073
- package/dist/index.e271ee9d.mjs +0 -643
- package/dist/index.f701b909.mjs +0 -142
- package/dist/index.f9becca6.mjs +0 -6
- package/dist/index.fa4bb855.mjs +0 -7645
- package/dist/index.html +0 -1
- package/dist/use-dict-by-type.c90c1d31.mjs +0 -24
package/dist/index.96479524.mjs
DELETED
|
@@ -1,754 +0,0 @@
|
|
|
1
|
-
import { T as E, d as v, a3 as B, ak as F, q as L, aN as M, j as G, K as R, m as H, r as T, k as W } from "./index.003313e6.mjs";
|
|
2
|
-
import { ref as X, shallowRef as q, watchEffect as U } from "vue";
|
|
3
|
-
globalThis && globalThis.__rest;
|
|
4
|
-
function se(e, t) {
|
|
5
|
-
if (!e)
|
|
6
|
-
return [];
|
|
7
|
-
const n = e.slice(), r = n.indexOf(t);
|
|
8
|
-
return r >= 0 && n.splice(r, 1), n;
|
|
9
|
-
}
|
|
10
|
-
function ce(e, t) {
|
|
11
|
-
const n = (e || []).slice();
|
|
12
|
-
return n.indexOf(t) === -1 && n.push(t), n;
|
|
13
|
-
}
|
|
14
|
-
function I(e) {
|
|
15
|
-
return e.split("-");
|
|
16
|
-
}
|
|
17
|
-
function D(e, t) {
|
|
18
|
-
return `${e}-${t}`;
|
|
19
|
-
}
|
|
20
|
-
function V(e) {
|
|
21
|
-
return e && e.type && e.type.isTreeNode;
|
|
22
|
-
}
|
|
23
|
-
function de(e, t) {
|
|
24
|
-
const n = [], r = t[e];
|
|
25
|
-
function o() {
|
|
26
|
-
(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).forEach((f) => {
|
|
27
|
-
let {
|
|
28
|
-
key: c,
|
|
29
|
-
children: u
|
|
30
|
-
} = f;
|
|
31
|
-
n.push(c), o(u);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return o(r.children), n;
|
|
35
|
-
}
|
|
36
|
-
function Y(e) {
|
|
37
|
-
if (e.parent) {
|
|
38
|
-
const t = I(e.pos);
|
|
39
|
-
return Number(t[t.length - 1]) === e.parent.children.length - 1;
|
|
40
|
-
}
|
|
41
|
-
return !1;
|
|
42
|
-
}
|
|
43
|
-
function J(e) {
|
|
44
|
-
const t = I(e.pos);
|
|
45
|
-
return Number(t[t.length - 1]) === 0;
|
|
46
|
-
}
|
|
47
|
-
function fe(e, t, n, r, o, i, f, c, u, s) {
|
|
48
|
-
var l;
|
|
49
|
-
const {
|
|
50
|
-
clientX: a,
|
|
51
|
-
clientY: d
|
|
52
|
-
} = e, {
|
|
53
|
-
top: h,
|
|
54
|
-
height: p
|
|
55
|
-
} = e.target.getBoundingClientRect(), g = ((s === "rtl" ? -1 : 1) * (((o == null ? void 0 : o.x) || 0) - a) - 12) / r;
|
|
56
|
-
let y = c[n.eventKey];
|
|
57
|
-
if (d < h + p / 2) {
|
|
58
|
-
const k = f.findIndex((A) => A.key === y.key), O = k <= 0 ? 0 : k - 1, z = f[O].key;
|
|
59
|
-
y = c[z];
|
|
60
|
-
}
|
|
61
|
-
const S = y.key, C = y, m = y.key;
|
|
62
|
-
let $ = 0, P = 0;
|
|
63
|
-
if (!u.has(S))
|
|
64
|
-
for (let k = 0; k < g && Y(y); k += 1)
|
|
65
|
-
y = y.parent, P += 1;
|
|
66
|
-
const x = t.eventData, w = y.node;
|
|
67
|
-
let K = !0;
|
|
68
|
-
return J(y) && y.level === 0 && d < h + p / 2 && i({
|
|
69
|
-
dragNode: x,
|
|
70
|
-
dropNode: w,
|
|
71
|
-
dropPosition: -1
|
|
72
|
-
}) && y.key === n.eventKey ? $ = -1 : (C.children || []).length && u.has(m) ? i({
|
|
73
|
-
dragNode: x,
|
|
74
|
-
dropNode: w,
|
|
75
|
-
dropPosition: 0
|
|
76
|
-
}) ? $ = 0 : K = !1 : P === 0 ? g > -1.5 ? i({
|
|
77
|
-
dragNode: x,
|
|
78
|
-
dropNode: w,
|
|
79
|
-
dropPosition: 1
|
|
80
|
-
}) ? $ = 1 : K = !1 : i({
|
|
81
|
-
dragNode: x,
|
|
82
|
-
dropNode: w,
|
|
83
|
-
dropPosition: 0
|
|
84
|
-
}) ? $ = 0 : i({
|
|
85
|
-
dragNode: x,
|
|
86
|
-
dropNode: w,
|
|
87
|
-
dropPosition: 1
|
|
88
|
-
}) ? $ = 1 : K = !1 : i({
|
|
89
|
-
dragNode: x,
|
|
90
|
-
dropNode: w,
|
|
91
|
-
dropPosition: 1
|
|
92
|
-
}) ? $ = 1 : K = !1, {
|
|
93
|
-
dropPosition: $,
|
|
94
|
-
dropLevelOffset: P,
|
|
95
|
-
dropTargetKey: y.key,
|
|
96
|
-
dropTargetPos: y.pos,
|
|
97
|
-
dragOverNodeKey: m,
|
|
98
|
-
dropContainerKey: $ === 0 ? null : ((l = y.parent) === null || l === void 0 ? void 0 : l.key) || null,
|
|
99
|
-
dropAllowed: K
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function ue(e, t) {
|
|
103
|
-
if (!e)
|
|
104
|
-
return;
|
|
105
|
-
const {
|
|
106
|
-
multiple: n
|
|
107
|
-
} = t;
|
|
108
|
-
return n ? e.slice() : e.length ? [e[0]] : e;
|
|
109
|
-
}
|
|
110
|
-
function pe(e) {
|
|
111
|
-
if (!e)
|
|
112
|
-
return null;
|
|
113
|
-
let t;
|
|
114
|
-
if (Array.isArray(e))
|
|
115
|
-
t = {
|
|
116
|
-
checkedKeys: e,
|
|
117
|
-
halfCheckedKeys: void 0
|
|
118
|
-
};
|
|
119
|
-
else if (typeof e == "object")
|
|
120
|
-
t = {
|
|
121
|
-
checkedKeys: e.checked || void 0,
|
|
122
|
-
halfCheckedKeys: e.halfChecked || void 0
|
|
123
|
-
};
|
|
124
|
-
else
|
|
125
|
-
return E(!1, "`checkedKeys` is not an array or an object"), null;
|
|
126
|
-
return t;
|
|
127
|
-
}
|
|
128
|
-
function he(e, t) {
|
|
129
|
-
const n = /* @__PURE__ */ new Set();
|
|
130
|
-
function r(o) {
|
|
131
|
-
if (n.has(o))
|
|
132
|
-
return;
|
|
133
|
-
const i = t[o];
|
|
134
|
-
if (!i)
|
|
135
|
-
return;
|
|
136
|
-
n.add(o);
|
|
137
|
-
const {
|
|
138
|
-
parent: f,
|
|
139
|
-
node: c
|
|
140
|
-
} = i;
|
|
141
|
-
c.disabled || f && r(f.key);
|
|
142
|
-
}
|
|
143
|
-
return (e || []).forEach((o) => {
|
|
144
|
-
r(o);
|
|
145
|
-
}), [...n];
|
|
146
|
-
}
|
|
147
|
-
var Q = globalThis && globalThis.__rest || function(e, t) {
|
|
148
|
-
var n = {};
|
|
149
|
-
for (var r in e)
|
|
150
|
-
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
151
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
152
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
153
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
154
|
-
return n;
|
|
155
|
-
};
|
|
156
|
-
function N(e, t) {
|
|
157
|
-
return e != null ? e : t;
|
|
158
|
-
}
|
|
159
|
-
function j(e) {
|
|
160
|
-
const {
|
|
161
|
-
title: t,
|
|
162
|
-
_title: n,
|
|
163
|
-
key: r,
|
|
164
|
-
children: o
|
|
165
|
-
} = e || {}, i = t || "title";
|
|
166
|
-
return {
|
|
167
|
-
title: i,
|
|
168
|
-
_title: n || [i],
|
|
169
|
-
key: r || "key",
|
|
170
|
-
children: o || "children"
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function ye(e) {
|
|
174
|
-
function t() {
|
|
175
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
176
|
-
return B(n).map((o) => {
|
|
177
|
-
var i, f, c, u;
|
|
178
|
-
if (!V(o))
|
|
179
|
-
return E(!o, "Tree/TreeNode can only accept TreeNode as children."), null;
|
|
180
|
-
const s = o.children || {}, l = o.key, a = {};
|
|
181
|
-
for (const [k, O] of Object.entries(o.props))
|
|
182
|
-
a[F(k)] = O;
|
|
183
|
-
const {
|
|
184
|
-
isLeaf: d,
|
|
185
|
-
checkable: h,
|
|
186
|
-
selectable: p,
|
|
187
|
-
disabled: b,
|
|
188
|
-
disableCheckbox: g
|
|
189
|
-
} = a, y = {
|
|
190
|
-
isLeaf: d || d === "" || void 0,
|
|
191
|
-
checkable: h || h === "" || void 0,
|
|
192
|
-
selectable: p || p === "" || void 0,
|
|
193
|
-
disabled: b || b === "" || void 0,
|
|
194
|
-
disableCheckbox: g || g === "" || void 0
|
|
195
|
-
}, S = v(v({}, a), y), {
|
|
196
|
-
title: C = (i = s.title) === null || i === void 0 ? void 0 : i.call(s, S),
|
|
197
|
-
icon: m = (f = s.icon) === null || f === void 0 ? void 0 : f.call(s, S),
|
|
198
|
-
switcherIcon: $ = (c = s.switcherIcon) === null || c === void 0 ? void 0 : c.call(s, S)
|
|
199
|
-
} = a, P = Q(a, ["title", "icon", "switcherIcon"]), x = (u = s.default) === null || u === void 0 ? void 0 : u.call(s), w = v(v(v({}, P), {
|
|
200
|
-
title: C,
|
|
201
|
-
icon: m,
|
|
202
|
-
switcherIcon: $,
|
|
203
|
-
key: l,
|
|
204
|
-
isLeaf: d
|
|
205
|
-
}), y), K = t(x);
|
|
206
|
-
return K.length && (w.children = K), w;
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
return t(e);
|
|
210
|
-
}
|
|
211
|
-
function ge(e, t, n) {
|
|
212
|
-
const {
|
|
213
|
-
_title: r,
|
|
214
|
-
key: o,
|
|
215
|
-
children: i
|
|
216
|
-
} = j(n), f = new Set(t === !0 ? [] : t), c = [];
|
|
217
|
-
function u(s) {
|
|
218
|
-
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
219
|
-
return s.map((a, d) => {
|
|
220
|
-
const h = D(l ? l.pos : "0", d), p = N(a[o], h);
|
|
221
|
-
let b;
|
|
222
|
-
for (let y = 0; y < r.length; y += 1) {
|
|
223
|
-
const S = r[y];
|
|
224
|
-
if (a[S] !== void 0) {
|
|
225
|
-
b = a[S];
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
const g = v(v({}, L(a, [...r, o, i])), {
|
|
230
|
-
title: b,
|
|
231
|
-
key: p,
|
|
232
|
-
parent: l,
|
|
233
|
-
pos: h,
|
|
234
|
-
children: null,
|
|
235
|
-
data: a,
|
|
236
|
-
isStart: [...l ? l.isStart : [], d === 0],
|
|
237
|
-
isEnd: [...l ? l.isEnd : [], d === s.length - 1]
|
|
238
|
-
});
|
|
239
|
-
return c.push(g), t === !0 || f.has(p) ? g.children = u(a[i] || [], g) : g.children = [], g;
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
return u(e), c;
|
|
243
|
-
}
|
|
244
|
-
function Z(e, t, n) {
|
|
245
|
-
let r = {};
|
|
246
|
-
typeof n == "object" ? r = n : r = {
|
|
247
|
-
externalGetKey: n
|
|
248
|
-
}, r = r || {};
|
|
249
|
-
const {
|
|
250
|
-
childrenPropName: o,
|
|
251
|
-
externalGetKey: i,
|
|
252
|
-
fieldNames: f
|
|
253
|
-
} = r, {
|
|
254
|
-
key: c,
|
|
255
|
-
children: u
|
|
256
|
-
} = j(f), s = o || u;
|
|
257
|
-
let l;
|
|
258
|
-
i ? typeof i == "string" ? l = (d) => d[i] : typeof i == "function" && (l = (d) => i(d)) : l = (d, h) => N(d[c], h);
|
|
259
|
-
function a(d, h, p, b) {
|
|
260
|
-
const g = d ? d[s] : e, y = d ? D(p.pos, h) : "0", S = d ? [...b, d] : [];
|
|
261
|
-
if (d) {
|
|
262
|
-
const C = l(d, y), m = {
|
|
263
|
-
node: d,
|
|
264
|
-
index: h,
|
|
265
|
-
pos: y,
|
|
266
|
-
key: C,
|
|
267
|
-
parentPos: p.node ? p.pos : null,
|
|
268
|
-
level: p.level + 1,
|
|
269
|
-
nodes: S
|
|
270
|
-
};
|
|
271
|
-
t(m);
|
|
272
|
-
}
|
|
273
|
-
g && g.forEach((C, m) => {
|
|
274
|
-
a(C, m, {
|
|
275
|
-
node: d,
|
|
276
|
-
pos: y,
|
|
277
|
-
level: p ? p.level + 1 : -1
|
|
278
|
-
}, S);
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
a(null);
|
|
282
|
-
}
|
|
283
|
-
function be(e) {
|
|
284
|
-
let {
|
|
285
|
-
initWrapper: t,
|
|
286
|
-
processEntity: n,
|
|
287
|
-
onProcessFinished: r,
|
|
288
|
-
externalGetKey: o,
|
|
289
|
-
childrenPropName: i,
|
|
290
|
-
fieldNames: f
|
|
291
|
-
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = arguments.length > 2 ? arguments[2] : void 0;
|
|
292
|
-
const u = o || c, s = {}, l = {};
|
|
293
|
-
let a = {
|
|
294
|
-
posEntities: s,
|
|
295
|
-
keyEntities: l
|
|
296
|
-
};
|
|
297
|
-
return t && (a = t(a) || a), Z(e, (d) => {
|
|
298
|
-
const {
|
|
299
|
-
node: h,
|
|
300
|
-
index: p,
|
|
301
|
-
pos: b,
|
|
302
|
-
key: g,
|
|
303
|
-
parentPos: y,
|
|
304
|
-
level: S,
|
|
305
|
-
nodes: C
|
|
306
|
-
} = d, m = {
|
|
307
|
-
node: h,
|
|
308
|
-
nodes: C,
|
|
309
|
-
index: p,
|
|
310
|
-
key: g,
|
|
311
|
-
pos: b,
|
|
312
|
-
level: S
|
|
313
|
-
}, $ = N(g, b);
|
|
314
|
-
s[b] = m, l[$] = m, m.parent = s[y], m.parent && (m.parent.children = m.parent.children || [], m.parent.children.push(m)), n && n(m, a);
|
|
315
|
-
}, {
|
|
316
|
-
externalGetKey: u,
|
|
317
|
-
childrenPropName: i,
|
|
318
|
-
fieldNames: f
|
|
319
|
-
}), r && r(a), a;
|
|
320
|
-
}
|
|
321
|
-
function me(e, t) {
|
|
322
|
-
let {
|
|
323
|
-
expandedKeysSet: n,
|
|
324
|
-
selectedKeysSet: r,
|
|
325
|
-
loadedKeysSet: o,
|
|
326
|
-
loadingKeysSet: i,
|
|
327
|
-
checkedKeysSet: f,
|
|
328
|
-
halfCheckedKeysSet: c,
|
|
329
|
-
dragOverNodeKey: u,
|
|
330
|
-
dropPosition: s,
|
|
331
|
-
keyEntities: l
|
|
332
|
-
} = t;
|
|
333
|
-
const a = l[e];
|
|
334
|
-
return {
|
|
335
|
-
eventKey: e,
|
|
336
|
-
expanded: n.has(e),
|
|
337
|
-
selected: r.has(e),
|
|
338
|
-
loaded: o.has(e),
|
|
339
|
-
loading: i.has(e),
|
|
340
|
-
checked: f.has(e),
|
|
341
|
-
halfChecked: c.has(e),
|
|
342
|
-
pos: String(a ? a.pos : ""),
|
|
343
|
-
parent: a.parent,
|
|
344
|
-
dragOver: u === e && s === 0,
|
|
345
|
-
dragOverGapTop: u === e && s === -1,
|
|
346
|
-
dragOverGapBottom: u === e && s === 1
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
function ve(e) {
|
|
350
|
-
const {
|
|
351
|
-
data: t,
|
|
352
|
-
expanded: n,
|
|
353
|
-
selected: r,
|
|
354
|
-
checked: o,
|
|
355
|
-
loaded: i,
|
|
356
|
-
loading: f,
|
|
357
|
-
halfChecked: c,
|
|
358
|
-
dragOver: u,
|
|
359
|
-
dragOverGapTop: s,
|
|
360
|
-
dragOverGapBottom: l,
|
|
361
|
-
pos: a,
|
|
362
|
-
active: d,
|
|
363
|
-
eventKey: h
|
|
364
|
-
} = e, p = v(v({
|
|
365
|
-
dataRef: t
|
|
366
|
-
}, t), {
|
|
367
|
-
expanded: n,
|
|
368
|
-
selected: r,
|
|
369
|
-
checked: o,
|
|
370
|
-
loaded: i,
|
|
371
|
-
loading: f,
|
|
372
|
-
halfChecked: c,
|
|
373
|
-
dragOver: u,
|
|
374
|
-
dragOverGapTop: s,
|
|
375
|
-
dragOverGapBottom: l,
|
|
376
|
-
pos: a,
|
|
377
|
-
active: d,
|
|
378
|
-
eventKey: h,
|
|
379
|
-
key: h
|
|
380
|
-
});
|
|
381
|
-
return "props" in p || Object.defineProperty(p, "props", {
|
|
382
|
-
get() {
|
|
383
|
-
return E(!1, "Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."), e;
|
|
384
|
-
}
|
|
385
|
-
}), p;
|
|
386
|
-
}
|
|
387
|
-
function _(e, t) {
|
|
388
|
-
const n = /* @__PURE__ */ new Set();
|
|
389
|
-
return e.forEach((r) => {
|
|
390
|
-
t.has(r) || n.add(r);
|
|
391
|
-
}), n;
|
|
392
|
-
}
|
|
393
|
-
function ee(e) {
|
|
394
|
-
const {
|
|
395
|
-
disabled: t,
|
|
396
|
-
disableCheckbox: n,
|
|
397
|
-
checkable: r
|
|
398
|
-
} = e || {};
|
|
399
|
-
return !!(t || n) || r === !1;
|
|
400
|
-
}
|
|
401
|
-
function te(e, t, n, r) {
|
|
402
|
-
const o = new Set(e), i = /* @__PURE__ */ new Set();
|
|
403
|
-
for (let c = 0; c <= n; c += 1)
|
|
404
|
-
(t.get(c) || /* @__PURE__ */ new Set()).forEach((s) => {
|
|
405
|
-
const {
|
|
406
|
-
key: l,
|
|
407
|
-
node: a,
|
|
408
|
-
children: d = []
|
|
409
|
-
} = s;
|
|
410
|
-
o.has(l) && !r(a) && d.filter((h) => !r(h.node)).forEach((h) => {
|
|
411
|
-
o.add(h.key);
|
|
412
|
-
});
|
|
413
|
-
});
|
|
414
|
-
const f = /* @__PURE__ */ new Set();
|
|
415
|
-
for (let c = n; c >= 0; c -= 1)
|
|
416
|
-
(t.get(c) || /* @__PURE__ */ new Set()).forEach((s) => {
|
|
417
|
-
const {
|
|
418
|
-
parent: l,
|
|
419
|
-
node: a
|
|
420
|
-
} = s;
|
|
421
|
-
if (r(a) || !s.parent || f.has(s.parent.key))
|
|
422
|
-
return;
|
|
423
|
-
if (r(s.parent.node)) {
|
|
424
|
-
f.add(l.key);
|
|
425
|
-
return;
|
|
426
|
-
}
|
|
427
|
-
let d = !0, h = !1;
|
|
428
|
-
(l.children || []).filter((p) => !r(p.node)).forEach((p) => {
|
|
429
|
-
let {
|
|
430
|
-
key: b
|
|
431
|
-
} = p;
|
|
432
|
-
const g = o.has(b);
|
|
433
|
-
d && !g && (d = !1), !h && (g || i.has(b)) && (h = !0);
|
|
434
|
-
}), d && o.add(l.key), h && i.add(l.key), f.add(l.key);
|
|
435
|
-
});
|
|
436
|
-
return {
|
|
437
|
-
checkedKeys: Array.from(o),
|
|
438
|
-
halfCheckedKeys: Array.from(_(i, o))
|
|
439
|
-
};
|
|
440
|
-
}
|
|
441
|
-
function ne(e, t, n, r, o) {
|
|
442
|
-
const i = new Set(e);
|
|
443
|
-
let f = new Set(t);
|
|
444
|
-
for (let u = 0; u <= r; u += 1)
|
|
445
|
-
(n.get(u) || /* @__PURE__ */ new Set()).forEach((l) => {
|
|
446
|
-
const {
|
|
447
|
-
key: a,
|
|
448
|
-
node: d,
|
|
449
|
-
children: h = []
|
|
450
|
-
} = l;
|
|
451
|
-
!i.has(a) && !f.has(a) && !o(d) && h.filter((p) => !o(p.node)).forEach((p) => {
|
|
452
|
-
i.delete(p.key);
|
|
453
|
-
});
|
|
454
|
-
});
|
|
455
|
-
f = /* @__PURE__ */ new Set();
|
|
456
|
-
const c = /* @__PURE__ */ new Set();
|
|
457
|
-
for (let u = r; u >= 0; u -= 1)
|
|
458
|
-
(n.get(u) || /* @__PURE__ */ new Set()).forEach((l) => {
|
|
459
|
-
const {
|
|
460
|
-
parent: a,
|
|
461
|
-
node: d
|
|
462
|
-
} = l;
|
|
463
|
-
if (o(d) || !l.parent || c.has(l.parent.key))
|
|
464
|
-
return;
|
|
465
|
-
if (o(l.parent.node)) {
|
|
466
|
-
c.add(a.key);
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
let h = !0, p = !1;
|
|
470
|
-
(a.children || []).filter((b) => !o(b.node)).forEach((b) => {
|
|
471
|
-
let {
|
|
472
|
-
key: g
|
|
473
|
-
} = b;
|
|
474
|
-
const y = i.has(g);
|
|
475
|
-
h && !y && (h = !1), !p && (y || f.has(g)) && (p = !0);
|
|
476
|
-
}), h || i.delete(a.key), p && f.add(a.key), c.add(a.key);
|
|
477
|
-
});
|
|
478
|
-
return {
|
|
479
|
-
checkedKeys: Array.from(i),
|
|
480
|
-
halfCheckedKeys: Array.from(_(f, i))
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
function Se(e, t, n, r, o, i) {
|
|
484
|
-
const f = [];
|
|
485
|
-
let c;
|
|
486
|
-
i ? c = i : c = ee;
|
|
487
|
-
const u = new Set(e.filter((l) => {
|
|
488
|
-
const a = !!n[l];
|
|
489
|
-
return a || f.push(l), a;
|
|
490
|
-
}));
|
|
491
|
-
M(!f.length, `Tree missing follow keys: ${f.slice(0, 100).map((l) => `'${l}'`).join(", ")}`);
|
|
492
|
-
let s;
|
|
493
|
-
return t === !0 ? s = te(u, o, r, c) : s = ne(u, t.halfCheckedKeys, o, r, c), s;
|
|
494
|
-
}
|
|
495
|
-
function $e(e) {
|
|
496
|
-
const t = X(0), n = q();
|
|
497
|
-
return U(() => {
|
|
498
|
-
const r = /* @__PURE__ */ new Map();
|
|
499
|
-
let o = 0;
|
|
500
|
-
const i = e.value || {};
|
|
501
|
-
for (const f in i)
|
|
502
|
-
if (Object.prototype.hasOwnProperty.call(i, f)) {
|
|
503
|
-
const c = i[f], {
|
|
504
|
-
level: u
|
|
505
|
-
} = c;
|
|
506
|
-
let s = r.get(u);
|
|
507
|
-
s || (s = /* @__PURE__ */ new Set(), r.set(u, s)), s.add(c), o = Math.max(o, u);
|
|
508
|
-
}
|
|
509
|
-
t.value = o, n.value = r;
|
|
510
|
-
}), {
|
|
511
|
-
maxLevel: t,
|
|
512
|
-
levelEntities: n
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
const re = new R("antCheckboxEffect", {
|
|
516
|
-
"0%": {
|
|
517
|
-
transform: "scale(1)",
|
|
518
|
-
opacity: 0.5
|
|
519
|
-
},
|
|
520
|
-
"100%": {
|
|
521
|
-
transform: "scale(1.6)",
|
|
522
|
-
opacity: 0
|
|
523
|
-
}
|
|
524
|
-
}), oe = (e) => {
|
|
525
|
-
const {
|
|
526
|
-
checkboxCls: t
|
|
527
|
-
} = e, n = `${t}-wrapper`;
|
|
528
|
-
return [
|
|
529
|
-
{
|
|
530
|
-
[`${t}-group`]: v(v({}, T(e)), {
|
|
531
|
-
display: "inline-flex",
|
|
532
|
-
flexWrap: "wrap",
|
|
533
|
-
columnGap: e.marginXS,
|
|
534
|
-
[`> ${e.antCls}-row`]: {
|
|
535
|
-
flex: 1
|
|
536
|
-
}
|
|
537
|
-
}),
|
|
538
|
-
[n]: v(v({}, T(e)), {
|
|
539
|
-
display: "inline-flex",
|
|
540
|
-
alignItems: "baseline",
|
|
541
|
-
cursor: "pointer",
|
|
542
|
-
"&:after": {
|
|
543
|
-
display: "inline-block",
|
|
544
|
-
width: 0,
|
|
545
|
-
overflow: "hidden",
|
|
546
|
-
content: "'\\a0'"
|
|
547
|
-
},
|
|
548
|
-
[`& + ${n}`]: {
|
|
549
|
-
marginInlineStart: 0
|
|
550
|
-
},
|
|
551
|
-
[`&${n}-in-form-item`]: {
|
|
552
|
-
'input[type="checkbox"]': {
|
|
553
|
-
width: 14,
|
|
554
|
-
height: 14
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}),
|
|
558
|
-
[t]: v(v({}, T(e)), {
|
|
559
|
-
position: "relative",
|
|
560
|
-
whiteSpace: "nowrap",
|
|
561
|
-
lineHeight: 1,
|
|
562
|
-
cursor: "pointer",
|
|
563
|
-
alignSelf: "center",
|
|
564
|
-
[`${t}-input`]: {
|
|
565
|
-
position: "absolute",
|
|
566
|
-
inset: 0,
|
|
567
|
-
zIndex: 1,
|
|
568
|
-
cursor: "pointer",
|
|
569
|
-
opacity: 0,
|
|
570
|
-
margin: 0,
|
|
571
|
-
[`&:focus-visible + ${t}-inner`]: v({}, W(e))
|
|
572
|
-
},
|
|
573
|
-
[`${t}-inner`]: {
|
|
574
|
-
boxSizing: "border-box",
|
|
575
|
-
position: "relative",
|
|
576
|
-
top: 0,
|
|
577
|
-
insetInlineStart: 0,
|
|
578
|
-
display: "block",
|
|
579
|
-
width: e.checkboxSize,
|
|
580
|
-
height: e.checkboxSize,
|
|
581
|
-
direction: "ltr",
|
|
582
|
-
backgroundColor: e.colorBgContainer,
|
|
583
|
-
border: `${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,
|
|
584
|
-
borderRadius: e.borderRadiusSM,
|
|
585
|
-
borderCollapse: "separate",
|
|
586
|
-
transition: `all ${e.motionDurationSlow}`,
|
|
587
|
-
"&:after": {
|
|
588
|
-
boxSizing: "border-box",
|
|
589
|
-
position: "absolute",
|
|
590
|
-
top: "50%",
|
|
591
|
-
insetInlineStart: "21.5%",
|
|
592
|
-
display: "table",
|
|
593
|
-
width: e.checkboxSize / 14 * 5,
|
|
594
|
-
height: e.checkboxSize / 14 * 8,
|
|
595
|
-
border: `${e.lineWidthBold}px solid ${e.colorWhite}`,
|
|
596
|
-
borderTop: 0,
|
|
597
|
-
borderInlineStart: 0,
|
|
598
|
-
transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
|
|
599
|
-
opacity: 0,
|
|
600
|
-
content: '""',
|
|
601
|
-
transition: `all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
"& + span": {
|
|
605
|
-
paddingInlineStart: e.paddingXS,
|
|
606
|
-
paddingInlineEnd: e.paddingXS
|
|
607
|
-
}
|
|
608
|
-
})
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
[t]: {
|
|
612
|
-
"&-indeterminate": {
|
|
613
|
-
[`${t}-inner`]: {
|
|
614
|
-
"&:after": {
|
|
615
|
-
top: "50%",
|
|
616
|
-
insetInlineStart: "50%",
|
|
617
|
-
width: e.fontSizeLG / 2,
|
|
618
|
-
height: e.fontSizeLG / 2,
|
|
619
|
-
backgroundColor: e.colorPrimary,
|
|
620
|
-
border: 0,
|
|
621
|
-
transform: "translate(-50%, -50%) scale(1)",
|
|
622
|
-
opacity: 1,
|
|
623
|
-
content: '""'
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
[`${n}:hover ${t}:after`]: {
|
|
631
|
-
visibility: "visible"
|
|
632
|
-
},
|
|
633
|
-
[`
|
|
634
|
-
${n}:not(${n}-disabled),
|
|
635
|
-
${t}:not(${t}-disabled)
|
|
636
|
-
`]: {
|
|
637
|
-
[`&:hover ${t}-inner`]: {
|
|
638
|
-
borderColor: e.colorPrimary
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
[`${n}:not(${n}-disabled)`]: {
|
|
642
|
-
[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]: {
|
|
643
|
-
backgroundColor: e.colorPrimaryHover,
|
|
644
|
-
borderColor: "transparent"
|
|
645
|
-
},
|
|
646
|
-
[`&:hover ${t}-checked:not(${t}-disabled):after`]: {
|
|
647
|
-
borderColor: e.colorPrimaryHover
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
[`${t}-checked`]: {
|
|
653
|
-
[`${t}-inner`]: {
|
|
654
|
-
backgroundColor: e.colorPrimary,
|
|
655
|
-
borderColor: e.colorPrimary,
|
|
656
|
-
"&:after": {
|
|
657
|
-
opacity: 1,
|
|
658
|
-
transform: "rotate(45deg) scale(1) translate(-50%,-50%)",
|
|
659
|
-
transition: `all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`
|
|
660
|
-
}
|
|
661
|
-
},
|
|
662
|
-
"&:after": {
|
|
663
|
-
position: "absolute",
|
|
664
|
-
top: 0,
|
|
665
|
-
insetInlineStart: 0,
|
|
666
|
-
width: "100%",
|
|
667
|
-
height: "100%",
|
|
668
|
-
borderRadius: e.borderRadiusSM,
|
|
669
|
-
visibility: "hidden",
|
|
670
|
-
border: `${e.lineWidthBold}px solid ${e.colorPrimary}`,
|
|
671
|
-
animationName: re,
|
|
672
|
-
animationDuration: e.motionDurationSlow,
|
|
673
|
-
animationTimingFunction: "ease-in-out",
|
|
674
|
-
animationFillMode: "backwards",
|
|
675
|
-
content: '""',
|
|
676
|
-
transition: `all ${e.motionDurationSlow}`
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
[`
|
|
680
|
-
${n}-checked:not(${n}-disabled),
|
|
681
|
-
${t}-checked:not(${t}-disabled)
|
|
682
|
-
`]: {
|
|
683
|
-
[`&:hover ${t}-inner`]: {
|
|
684
|
-
backgroundColor: e.colorPrimaryHover,
|
|
685
|
-
borderColor: "transparent"
|
|
686
|
-
},
|
|
687
|
-
[`&:hover ${t}:after`]: {
|
|
688
|
-
borderColor: e.colorPrimaryHover
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
[`${n}-disabled`]: {
|
|
694
|
-
cursor: "not-allowed"
|
|
695
|
-
},
|
|
696
|
-
[`${t}-disabled`]: {
|
|
697
|
-
[`&, ${t}-input`]: {
|
|
698
|
-
cursor: "not-allowed",
|
|
699
|
-
pointerEvents: "none"
|
|
700
|
-
},
|
|
701
|
-
[`${t}-inner`]: {
|
|
702
|
-
background: e.colorBgContainerDisabled,
|
|
703
|
-
borderColor: e.colorBorder,
|
|
704
|
-
"&:after": {
|
|
705
|
-
borderColor: e.colorTextDisabled
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
"&:after": {
|
|
709
|
-
display: "none"
|
|
710
|
-
},
|
|
711
|
-
"& + span": {
|
|
712
|
-
color: e.colorTextDisabled
|
|
713
|
-
},
|
|
714
|
-
[`&${t}-indeterminate ${t}-inner::after`]: {
|
|
715
|
-
background: e.colorTextDisabled
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
];
|
|
720
|
-
};
|
|
721
|
-
function ie(e, t) {
|
|
722
|
-
const n = H(t, {
|
|
723
|
-
checkboxCls: `.${e}`,
|
|
724
|
-
checkboxSize: t.controlInteractiveSize
|
|
725
|
-
});
|
|
726
|
-
return [oe(n)];
|
|
727
|
-
}
|
|
728
|
-
const Ce = G("Checkbox", (e, t) => {
|
|
729
|
-
let {
|
|
730
|
-
prefixCls: n
|
|
731
|
-
} = t;
|
|
732
|
-
return [ie(n, e)];
|
|
733
|
-
});
|
|
734
|
-
export {
|
|
735
|
-
be as a,
|
|
736
|
-
$e as b,
|
|
737
|
-
ve as c,
|
|
738
|
-
Se as d,
|
|
739
|
-
se as e,
|
|
740
|
-
ce as f,
|
|
741
|
-
me as g,
|
|
742
|
-
N as h,
|
|
743
|
-
ye as i,
|
|
744
|
-
j,
|
|
745
|
-
he as k,
|
|
746
|
-
ge as l,
|
|
747
|
-
ue as m,
|
|
748
|
-
de as n,
|
|
749
|
-
fe as o,
|
|
750
|
-
pe as p,
|
|
751
|
-
I as q,
|
|
752
|
-
ie as r,
|
|
753
|
-
Ce as u
|
|
754
|
-
};
|