@yqg/permission 1.0.4-beta.0 → 1.0.6-beta.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/.arcconfig +8 -0
- package/.husky/commit-msg +20 -0
- package/.husky/pre-commit +4 -0
- package/README.md +126 -3
- package/arcanist/.phutil_module_cache +1 -0
- package/arcanist/__phutil_library_init__.php +3 -0
- package/arcanist/__phutil_library_map__.php +18 -0
- package/arcanist/lint/engine/YqgWebDiffLintEngine.php +68 -0
- package/commitlint.config.js +32 -0
- package/dist/{apply-modal-C7hVR1xJ.js → apply-modal-B779Z1yz.js} +1234 -1216
- package/dist/card.png +0 -0
- package/dist/{checkbox-item-Bf_S20_z.js → checkbox-item-CWDiWBTe.js} +804 -795
- package/dist/dialog.png +0 -0
- package/dist/image.png +0 -0
- package/dist/{index-B0kTXjfX.js → index-C1qXS-ty.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +52 -52
- package/dist/{yqg-permission-CbkviMn9.js → yqg-permission-CrityVMS.js} +446 -428
- package/eslint.config.js +26 -0
- package/package.json +10 -4
- package/public/card.png +0 -0
- package/public/dialog.png +0 -0
- package/public/image.png +0 -0
- package/src/App.vue +12 -3
- package/src/axios/axios.ts +1 -1
- package/src/components/apply-modal.vue +21 -6
- package/src/components/approval-steps.vue +10 -8
- package/src/components/checkbox-item.vue +23 -22
- package/src/components/success-modal.vue +16 -7
- package/src/components/yqg-permission.vue +28 -16
- package/src/i18n/zh-CH.ts +5 -1
- package/src/main.ts +1 -1
- package/src/typings/index.d.ts +2 -0
- package/src/yqg-permission/index.ts +2 -2
- package/tsconfig.app.json +10 -1
- package/tsconfig.json +2 -2
- package/dist/vite.svg +0 -1
- package/public/vite.svg +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { _ as S, Q as
|
|
3
|
-
import { p as
|
|
4
|
-
function
|
|
1
|
+
import { d as ce, c as R, f as he, k as y, i as Yn, v as Zt, e as Ue, p as Qe, b as en, s as G, w as ae, h as Me, o as Oe, P as be, F as Ke, j as Ye, W as Gn, r as Le, I as Xn, G as vt, y as ze, a as kn, z as Ie, K as Ee, R as Lt, N as ve, O as Fe, L as _e, u as ie, Q as ge, M as Ne, _ as Ht } from "./index-C1qXS-ty.js";
|
|
2
|
+
import { _ as S, Q as qn, P as A, G as Y, F as ue, bb as Qn, aE as Jn, aw as tn, bc as gt, aP as K, E as ht, R as We, an as nn, bd as xe, be as we, aD as Je, bf as Zn, bg as Se, bh as _t, bi as Bt, bj as zt, I as eo, a6 as to, a7 as no, bk as oo, au as lo, C as on, K as de, Y as bt, bl as ft, L as $e, bm as ln, J as io, bn as ao, ai as ro, a2 as so, aG as uo, bo as co, N as fo, aH as mo, am as po, aV as vo, bp as go, aL as ho, bq as bo, O as Kt, ae as Be, ad as yo, ag as So, b4 as Ce, br as wo, b6 as ke, b7 as Io } from "./yqg-permission-CrityVMS.js";
|
|
3
|
+
import { p as yt, S as Co, T as at, C as xo, Q as Oo } from "./apply-modal-B779Z1yz.js";
|
|
4
|
+
function Wt(e, n) {
|
|
5
5
|
const {
|
|
6
6
|
key: o
|
|
7
7
|
} = e;
|
|
@@ -10,7 +10,7 @@ function zt(e, n) {
|
|
|
10
10
|
value: t
|
|
11
11
|
} = e), o ?? (t !== void 0 ? t : `rc-index-key-${n}`);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function an(e, n) {
|
|
14
14
|
const {
|
|
15
15
|
label: o,
|
|
16
16
|
value: t,
|
|
@@ -22,7 +22,7 @@ function on(e, n) {
|
|
|
22
22
|
options: l || "options"
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function $o(e) {
|
|
26
26
|
let {
|
|
27
27
|
fieldNames: n,
|
|
28
28
|
childrenAsData: o
|
|
@@ -31,23 +31,23 @@ function Eo(e) {
|
|
|
31
31
|
label: l,
|
|
32
32
|
value: i,
|
|
33
33
|
options: u
|
|
34
|
-
} =
|
|
35
|
-
function a(
|
|
36
|
-
|
|
37
|
-
const
|
|
34
|
+
} = an(n, !1);
|
|
35
|
+
function a(m, r) {
|
|
36
|
+
m.forEach((s) => {
|
|
37
|
+
const f = s[l];
|
|
38
38
|
if (r || !(u in s)) {
|
|
39
39
|
const p = s[i];
|
|
40
40
|
t.push({
|
|
41
|
-
key:
|
|
41
|
+
key: Wt(s, t.length),
|
|
42
42
|
groupOption: r,
|
|
43
43
|
data: s,
|
|
44
|
-
label:
|
|
44
|
+
label: f,
|
|
45
45
|
value: p
|
|
46
46
|
});
|
|
47
47
|
} else {
|
|
48
|
-
let p =
|
|
48
|
+
let p = f;
|
|
49
49
|
p === void 0 && o && (p = s.label), t.push({
|
|
50
|
-
key:
|
|
50
|
+
key: Wt(s, t.length),
|
|
51
51
|
group: !0,
|
|
52
52
|
data: s,
|
|
53
53
|
label: p
|
|
@@ -57,36 +57,36 @@ function Eo(e) {
|
|
|
57
57
|
}
|
|
58
58
|
return a(e, !1), t;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function mt(e) {
|
|
61
61
|
const n = S({}, e);
|
|
62
62
|
return "props" in n || Object.defineProperty(n, "props", {
|
|
63
63
|
get() {
|
|
64
|
-
return
|
|
64
|
+
return qn(!1, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`."), n;
|
|
65
65
|
}
|
|
66
66
|
}), n;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function To(e, n) {
|
|
69
69
|
if (!n || !n.length)
|
|
70
70
|
return null;
|
|
71
71
|
let o = !1;
|
|
72
72
|
function t(i, u) {
|
|
73
|
-
let [a, ...
|
|
73
|
+
let [a, ...m] = u;
|
|
74
74
|
if (!a)
|
|
75
75
|
return [i];
|
|
76
76
|
const r = i.split(a);
|
|
77
|
-
return o = o || r.length > 1, r.reduce((s,
|
|
77
|
+
return o = o || r.length > 1, r.reduce((s, f) => [...s, ...t(f, m)], []).filter((s) => s);
|
|
78
78
|
}
|
|
79
79
|
const l = t(e, n);
|
|
80
80
|
return o ? l : null;
|
|
81
81
|
}
|
|
82
|
-
var
|
|
82
|
+
var Eo = function(e, n) {
|
|
83
83
|
var o = {};
|
|
84
84
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
85
85
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
86
86
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
87
87
|
return o;
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const Mo = (e) => {
|
|
90
90
|
const n = e === !0 ? 0 : 1;
|
|
91
91
|
return {
|
|
92
92
|
bottomLeft: {
|
|
@@ -122,7 +122,7 @@ const Ro = (e) => {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
},
|
|
125
|
+
}, Po = ce({
|
|
126
126
|
name: "SelectTrigger",
|
|
127
127
|
inheritAttrs: !1,
|
|
128
128
|
props: {
|
|
@@ -168,16 +168,16 @@ const Ro = (e) => {
|
|
|
168
168
|
const {
|
|
169
169
|
dropdownMatchSelectWidth: a
|
|
170
170
|
} = e;
|
|
171
|
-
return
|
|
172
|
-
}), u =
|
|
171
|
+
return Mo(a);
|
|
172
|
+
}), u = he();
|
|
173
173
|
return l({
|
|
174
174
|
getPopupElement: () => u.value
|
|
175
175
|
}), () => {
|
|
176
176
|
const a = S(S({}, e), t), {
|
|
177
|
-
empty:
|
|
178
|
-
} = a, r =
|
|
177
|
+
empty: m = !1
|
|
178
|
+
} = a, r = Eo(a, ["empty"]), {
|
|
179
179
|
visible: s,
|
|
180
|
-
dropdownAlign:
|
|
180
|
+
dropdownAlign: f,
|
|
181
181
|
prefixCls: p,
|
|
182
182
|
popupElement: w,
|
|
183
183
|
dropdownClassName: b,
|
|
@@ -204,18 +204,18 @@ const Ro = (e) => {
|
|
|
204
204
|
const M = v ? `${X}-${v}` : T, L = S({
|
|
205
205
|
minWidth: `${D}px`
|
|
206
206
|
}, x);
|
|
207
|
-
return typeof P == "number" ? L.width = `${P}px` : P && (L.width = `${D}px`), y(
|
|
207
|
+
return typeof P == "number" ? L.width = `${P}px` : P && (L.width = `${D}px`), y(Qn, Y(Y({}, e), {}, {
|
|
208
208
|
showAction: V ? ["click"] : [],
|
|
209
209
|
hideAction: V ? ["click"] : [],
|
|
210
210
|
popupPlacement: I || (O === "rtl" ? "bottomRight" : "bottomLeft"),
|
|
211
211
|
builtinPlacements: i.value,
|
|
212
212
|
prefixCls: X,
|
|
213
213
|
popupTransitionName: M,
|
|
214
|
-
popupAlign:
|
|
214
|
+
popupAlign: f,
|
|
215
215
|
popupVisible: s,
|
|
216
216
|
getPopupContainer: $,
|
|
217
|
-
popupClassName:
|
|
218
|
-
[`${X}-empty`]:
|
|
217
|
+
popupClassName: ue(b, {
|
|
218
|
+
[`${X}-empty`]: m
|
|
219
219
|
}),
|
|
220
220
|
popupStyle: L,
|
|
221
221
|
getTriggerDOMNode: N,
|
|
@@ -241,10 +241,10 @@ const Ro = (e) => {
|
|
|
241
241
|
customizeIcon: i,
|
|
242
242
|
customizeIconProps: u,
|
|
243
243
|
onMousedown: a,
|
|
244
|
-
onClick:
|
|
244
|
+
onClick: m
|
|
245
245
|
} = e;
|
|
246
246
|
let r;
|
|
247
|
-
return typeof i == "function" ? r = i(u) : r =
|
|
247
|
+
return typeof i == "function" ? r = i(u) : r = Yn(i) ? Zt(i) : i, y("span", {
|
|
248
248
|
class: l,
|
|
249
249
|
onMousedown: (s) => {
|
|
250
250
|
s.preventDefault(), a && a(s);
|
|
@@ -254,7 +254,7 @@ const Ro = (e) => {
|
|
|
254
254
|
WebkitUserSelect: "none"
|
|
255
255
|
},
|
|
256
256
|
unselectable: "on",
|
|
257
|
-
onClick:
|
|
257
|
+
onClick: m,
|
|
258
258
|
"aria-hidden": !0
|
|
259
259
|
}, [r !== void 0 ? r : y("span", {
|
|
260
260
|
class: l.split(/\s+/).map((s) => `${s}-icon`)
|
|
@@ -269,7 +269,7 @@ Pe.props = {
|
|
|
269
269
|
onMousedown: Function,
|
|
270
270
|
onClick: Function
|
|
271
271
|
};
|
|
272
|
-
const
|
|
272
|
+
const Ro = {
|
|
273
273
|
inputRef: A.any,
|
|
274
274
|
prefixCls: String,
|
|
275
275
|
id: String,
|
|
@@ -320,16 +320,16 @@ const Fo = {
|
|
|
320
320
|
onBlur: {
|
|
321
321
|
type: Function
|
|
322
322
|
}
|
|
323
|
-
},
|
|
323
|
+
}, rn = ce({
|
|
324
324
|
compatConfig: {
|
|
325
325
|
MODE: 3
|
|
326
326
|
},
|
|
327
327
|
name: "SelectInput",
|
|
328
328
|
inheritAttrs: !1,
|
|
329
|
-
props:
|
|
329
|
+
props: Ro,
|
|
330
330
|
setup(e) {
|
|
331
331
|
let n = null;
|
|
332
|
-
const o =
|
|
332
|
+
const o = Ue("VCSelectContainerEvent");
|
|
333
333
|
return () => {
|
|
334
334
|
var t;
|
|
335
335
|
const {
|
|
@@ -337,10 +337,10 @@ const Fo = {
|
|
|
337
337
|
id: i,
|
|
338
338
|
inputElement: u,
|
|
339
339
|
disabled: a,
|
|
340
|
-
tabindex:
|
|
340
|
+
tabindex: m,
|
|
341
341
|
autofocus: r,
|
|
342
342
|
autocomplete: s,
|
|
343
|
-
editable:
|
|
343
|
+
editable: f,
|
|
344
344
|
activeDescendantId: p,
|
|
345
345
|
value: w,
|
|
346
346
|
onKeydown: b,
|
|
@@ -355,7 +355,7 @@ const Fo = {
|
|
|
355
355
|
inputRef: $,
|
|
356
356
|
attrs: N
|
|
357
357
|
} = e;
|
|
358
|
-
let V = u || y(
|
|
358
|
+
let V = u || y(Jn, null, null);
|
|
359
359
|
const j = V.props || {}, {
|
|
360
360
|
onKeydown: z,
|
|
361
361
|
onInput: Q,
|
|
@@ -366,17 +366,17 @@ const Fo = {
|
|
|
366
366
|
onCompositionend: k,
|
|
367
367
|
style: ee
|
|
368
368
|
} = j;
|
|
369
|
-
return V =
|
|
369
|
+
return V = tn(V, S(S(S(S(S({
|
|
370
370
|
type: "search"
|
|
371
371
|
}, j), {
|
|
372
372
|
id: i,
|
|
373
373
|
ref: $,
|
|
374
374
|
disabled: a,
|
|
375
|
-
tabindex:
|
|
375
|
+
tabindex: m,
|
|
376
376
|
lazy: !1,
|
|
377
377
|
autocomplete: s || "off",
|
|
378
378
|
autofocus: r,
|
|
379
|
-
class:
|
|
379
|
+
class: ue(`${l}-selection-search-input`, (t = V == null ? void 0 : V.props) === null || t === void 0 ? void 0 : t.class),
|
|
380
380
|
role: "combobox",
|
|
381
381
|
"aria-expanded": T,
|
|
382
382
|
"aria-haspopup": "listbox",
|
|
@@ -385,11 +385,11 @@ const Fo = {
|
|
|
385
385
|
"aria-controls": `${i}_list`,
|
|
386
386
|
"aria-activedescendant": p
|
|
387
387
|
}), N), {
|
|
388
|
-
value:
|
|
389
|
-
readonly: !
|
|
390
|
-
unselectable:
|
|
388
|
+
value: f ? w : "",
|
|
389
|
+
readonly: !f,
|
|
390
|
+
unselectable: f ? null : "on",
|
|
391
391
|
style: S(S({}, ee), {
|
|
392
|
-
opacity:
|
|
392
|
+
opacity: f ? null : 0
|
|
393
393
|
}),
|
|
394
394
|
onKeydown: (g) => {
|
|
395
395
|
b(g), z && z(g);
|
|
@@ -422,7 +422,7 @@ const Fo = {
|
|
|
422
422
|
}), !0, !0), V;
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
|
-
}),
|
|
425
|
+
}), sn = Symbol("OverflowContextProviderKey"), pt = ce({
|
|
426
426
|
compatConfig: {
|
|
427
427
|
MODE: 3
|
|
428
428
|
},
|
|
@@ -437,20 +437,20 @@ const Fo = {
|
|
|
437
437
|
let {
|
|
438
438
|
slots: o
|
|
439
439
|
} = n;
|
|
440
|
-
return
|
|
440
|
+
return Qe(sn, R(() => e.value)), () => {
|
|
441
441
|
var t;
|
|
442
442
|
return (t = o.default) === null || t === void 0 ? void 0 : t.call(o);
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
}),
|
|
446
|
-
var
|
|
445
|
+
}), Do = () => Ue(sn, R(() => null));
|
|
446
|
+
var Fo = function(e, n) {
|
|
447
447
|
var o = {};
|
|
448
448
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
449
449
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
450
450
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
451
451
|
return o;
|
|
452
452
|
};
|
|
453
|
-
const
|
|
453
|
+
const Ae = void 0, qe = ce({
|
|
454
454
|
compatConfig: {
|
|
455
455
|
MODE: 3
|
|
456
456
|
},
|
|
@@ -474,40 +474,40 @@ const Fe = void 0, ke = ue({
|
|
|
474
474
|
slots: o,
|
|
475
475
|
expose: t
|
|
476
476
|
} = n;
|
|
477
|
-
const l = R(() => e.responsive && !e.display), i =
|
|
477
|
+
const l = R(() => e.responsive && !e.display), i = he();
|
|
478
478
|
t({
|
|
479
479
|
itemNodeRef: i
|
|
480
480
|
});
|
|
481
481
|
function u(a) {
|
|
482
482
|
e.registerSize(e.itemKey, a);
|
|
483
483
|
}
|
|
484
|
-
return
|
|
484
|
+
return en(() => {
|
|
485
485
|
u(null);
|
|
486
486
|
}), () => {
|
|
487
487
|
var a;
|
|
488
488
|
const {
|
|
489
|
-
prefixCls:
|
|
489
|
+
prefixCls: m,
|
|
490
490
|
invalidate: r,
|
|
491
491
|
item: s,
|
|
492
|
-
renderItem:
|
|
492
|
+
renderItem: f,
|
|
493
493
|
responsive: p,
|
|
494
494
|
registerSize: w,
|
|
495
495
|
itemKey: b,
|
|
496
496
|
display: x,
|
|
497
497
|
order: O,
|
|
498
498
|
component: I = "div"
|
|
499
|
-
} = e, P =
|
|
499
|
+
} = e, P = Fo(e, ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"]), D = (a = o.default) === null || a === void 0 ? void 0 : a.call(o), C = f && s !== Ae ? f(s) : D;
|
|
500
500
|
let v;
|
|
501
501
|
r || (v = {
|
|
502
502
|
opacity: l.value ? 0 : 1,
|
|
503
|
-
height: l.value ? 0 :
|
|
504
|
-
overflowY: l.value ? "hidden" :
|
|
505
|
-
order: p ? O :
|
|
506
|
-
pointerEvents: l.value ? "none" :
|
|
507
|
-
position: l.value ? "absolute" :
|
|
503
|
+
height: l.value ? 0 : Ae,
|
|
504
|
+
overflowY: l.value ? "hidden" : Ae,
|
|
505
|
+
order: p ? O : Ae,
|
|
506
|
+
pointerEvents: l.value ? "none" : Ae,
|
|
507
|
+
position: l.value ? "absolute" : Ae
|
|
508
508
|
});
|
|
509
509
|
const T = {};
|
|
510
|
-
return l.value && (T["aria-hidden"] = !0), y(
|
|
510
|
+
return l.value && (T["aria-hidden"] = !0), y(gt, {
|
|
511
511
|
disabled: !p,
|
|
512
512
|
onResize: ($) => {
|
|
513
513
|
let {
|
|
@@ -517,7 +517,7 @@ const Fe = void 0, ke = ue({
|
|
|
517
517
|
}
|
|
518
518
|
}, {
|
|
519
519
|
default: () => y(I, Y(Y(Y({
|
|
520
|
-
class:
|
|
520
|
+
class: ue(!r && m),
|
|
521
521
|
style: v
|
|
522
522
|
}, T), P), {}, {
|
|
523
523
|
ref: i
|
|
@@ -528,14 +528,14 @@ const Fe = void 0, ke = ue({
|
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
|
-
var
|
|
531
|
+
var rt = function(e, n) {
|
|
532
532
|
var o = {};
|
|
533
533
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
534
534
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
535
535
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
536
536
|
return o;
|
|
537
537
|
};
|
|
538
|
-
const
|
|
538
|
+
const No = ce({
|
|
539
539
|
compatConfig: {
|
|
540
540
|
MODE: 3
|
|
541
541
|
},
|
|
@@ -568,44 +568,44 @@ const Vo = ue({
|
|
|
568
568
|
slots: o,
|
|
569
569
|
attrs: t
|
|
570
570
|
} = n;
|
|
571
|
-
const l =
|
|
571
|
+
const l = Do();
|
|
572
572
|
return () => {
|
|
573
573
|
var i;
|
|
574
574
|
if (!l.value) {
|
|
575
575
|
const {
|
|
576
|
-
component:
|
|
577
|
-
} = e, p =
|
|
578
|
-
return y(
|
|
576
|
+
component: f = "div"
|
|
577
|
+
} = e, p = rt(e, ["component"]);
|
|
578
|
+
return y(f, Y(Y({}, p), t), {
|
|
579
579
|
default: () => [(i = o.default) === null || i === void 0 ? void 0 : i.call(o)]
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
const u = l.value, {
|
|
583
583
|
className: a
|
|
584
|
-
} = u,
|
|
584
|
+
} = u, m = rt(u, ["className"]), {
|
|
585
585
|
class: r
|
|
586
|
-
} = t, s =
|
|
587
|
-
return y(
|
|
586
|
+
} = t, s = rt(t, ["class"]);
|
|
587
|
+
return y(pt, {
|
|
588
588
|
value: null
|
|
589
589
|
}, {
|
|
590
|
-
default: () => [y(
|
|
591
|
-
class:
|
|
592
|
-
},
|
|
590
|
+
default: () => [y(qe, Y(Y(Y({
|
|
591
|
+
class: ue(a, r)
|
|
592
|
+
}, m), s), e), o)]
|
|
593
593
|
});
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
|
-
var
|
|
597
|
+
var Ao = function(e, n) {
|
|
598
598
|
var o = {};
|
|
599
599
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
600
600
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
601
601
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
602
602
|
return o;
|
|
603
603
|
};
|
|
604
|
-
const
|
|
605
|
-
function
|
|
604
|
+
const un = "responsive", cn = "invalidate";
|
|
605
|
+
function Vo(e) {
|
|
606
606
|
return `+ ${e.length} ...`;
|
|
607
607
|
}
|
|
608
|
-
const
|
|
608
|
+
const Lo = () => ({
|
|
609
609
|
id: String,
|
|
610
610
|
prefixCls: String,
|
|
611
611
|
data: Array,
|
|
@@ -631,10 +631,10 @@ const _o = () => ({
|
|
|
631
631
|
ssr: String,
|
|
632
632
|
onMousedown: Function,
|
|
633
633
|
role: String
|
|
634
|
-
}),
|
|
634
|
+
}), Ze = ce({
|
|
635
635
|
name: "Overflow",
|
|
636
636
|
inheritAttrs: !1,
|
|
637
|
-
props:
|
|
637
|
+
props: Lo(),
|
|
638
638
|
emits: ["visibleChange"],
|
|
639
639
|
setup(e, n) {
|
|
640
640
|
let {
|
|
@@ -642,7 +642,7 @@ const _o = () => ({
|
|
|
642
642
|
emit: t,
|
|
643
643
|
slots: l
|
|
644
644
|
} = n;
|
|
645
|
-
const i = R(() => e.ssr === "full"), u = G(null), a = R(() => u.value || 0),
|
|
645
|
+
const i = R(() => e.ssr === "full"), u = G(null), a = R(() => u.value || 0), m = G(/* @__PURE__ */ new Map()), r = G(0), s = G(0), f = G(0), p = G(null), w = G(null), b = R(() => w.value === null && i.value ? Number.MAX_SAFE_INTEGER : w.value || 0), x = G(!1), O = R(() => `${e.prefixCls}-item`), I = R(() => Math.max(r.value, s.value)), P = R(() => !!(e.data.length && e.maxCount === un)), D = R(() => e.maxCount === cn), C = R(() => P.value || typeof e.maxCount == "number" && e.data.length > e.maxCount), v = R(() => {
|
|
646
646
|
let M = e.data;
|
|
647
647
|
return P.value ? u.value === null && i.value ? M = e.data : M = e.data.slice(0, Math.min(e.data.length, a.value / e.itemWidth)) : typeof e.maxCount == "number" && (M = e.data.slice(0, e.maxCount)), M;
|
|
648
648
|
}), T = R(() => P.value ? e.data.slice(b.value + 1) : e.data.slice(v.value.length)), $ = (M, L) => {
|
|
@@ -653,16 +653,16 @@ const _o = () => ({
|
|
|
653
653
|
}, j = (M, L) => {
|
|
654
654
|
u.value = L.clientWidth;
|
|
655
655
|
}, z = (M, L) => {
|
|
656
|
-
const k = new Map(
|
|
657
|
-
L === null ? k.delete(M) : k.set(M, L),
|
|
656
|
+
const k = new Map(m.value);
|
|
657
|
+
L === null ? k.delete(M) : k.set(M, L), m.value = k;
|
|
658
658
|
}, Q = (M, L) => {
|
|
659
659
|
r.value = s.value, s.value = L;
|
|
660
660
|
}, X = (M, L) => {
|
|
661
|
-
|
|
662
|
-
}, U = (M) =>
|
|
663
|
-
return
|
|
661
|
+
f.value = L;
|
|
662
|
+
}, U = (M) => m.value.get($(v.value[M], M));
|
|
663
|
+
return ae([a, m, s, f, () => e.itemKey, v], () => {
|
|
664
664
|
if (a.value && I.value && v.value) {
|
|
665
|
-
let M =
|
|
665
|
+
let M = f.value;
|
|
666
666
|
const L = v.value.length, k = L - 1;
|
|
667
667
|
if (!L) {
|
|
668
668
|
V(0), p.value = null;
|
|
@@ -680,11 +680,11 @@ const _o = () => ({
|
|
|
680
680
|
V(k), p.value = null;
|
|
681
681
|
break;
|
|
682
682
|
} else if (M + I.value > a.value) {
|
|
683
|
-
V(ee - 1), p.value = M - g -
|
|
683
|
+
V(ee - 1), p.value = M - g - f.value + s.value;
|
|
684
684
|
break;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
e.suffix && U(0) +
|
|
687
|
+
e.suffix && U(0) + f.value > a.value && (p.value = null);
|
|
688
688
|
}
|
|
689
689
|
}), () => {
|
|
690
690
|
const M = x.value && !!T.value.length, {
|
|
@@ -698,11 +698,11 @@ const _o = () => ({
|
|
|
698
698
|
id: te,
|
|
699
699
|
onMousedown: oe
|
|
700
700
|
} = e, {
|
|
701
|
-
class:
|
|
701
|
+
class: re,
|
|
702
702
|
style: ne
|
|
703
|
-
} = o,
|
|
704
|
-
let
|
|
705
|
-
p.value !== null && P.value && (
|
|
703
|
+
} = o, me = Ao(o, ["class", "style"]);
|
|
704
|
+
let pe = {};
|
|
705
|
+
p.value !== null && P.value && (pe = {
|
|
706
706
|
position: "absolute",
|
|
707
707
|
left: `${p.value}px`,
|
|
708
708
|
top: 0
|
|
@@ -714,7 +714,7 @@ const _o = () => ({
|
|
|
714
714
|
invalidate: D.value
|
|
715
715
|
}, c = k ? (B, q) => {
|
|
716
716
|
const J = $(B, q);
|
|
717
|
-
return y(
|
|
717
|
+
return y(pt, {
|
|
718
718
|
key: J,
|
|
719
719
|
value: S(S({}, h), {
|
|
720
720
|
order: q,
|
|
@@ -728,7 +728,7 @@ const _o = () => ({
|
|
|
728
728
|
});
|
|
729
729
|
} : (B, q) => {
|
|
730
730
|
const J = $(B, q);
|
|
731
|
-
return y(
|
|
731
|
+
return y(qe, Y(Y({}, h), {}, {
|
|
732
732
|
order: q,
|
|
733
733
|
key: J,
|
|
734
734
|
item: B,
|
|
@@ -746,14 +746,14 @@ const _o = () => ({
|
|
|
746
746
|
display: M
|
|
747
747
|
};
|
|
748
748
|
if (ee)
|
|
749
|
-
ee && (d = () => y(
|
|
749
|
+
ee && (d = () => y(pt, {
|
|
750
750
|
value: S(S({}, h), F)
|
|
751
751
|
}, {
|
|
752
752
|
default: () => [ee(T.value)]
|
|
753
753
|
}));
|
|
754
754
|
else {
|
|
755
|
-
const B = g ||
|
|
756
|
-
d = () => y(
|
|
755
|
+
const B = g || Vo;
|
|
756
|
+
d = () => y(qe, Y(Y({}, h), F), {
|
|
757
757
|
default: () => typeof B == "function" ? B(T.value) : B
|
|
758
758
|
});
|
|
759
759
|
}
|
|
@@ -761,23 +761,23 @@ const _o = () => ({
|
|
|
761
761
|
var B;
|
|
762
762
|
return y(_, Y({
|
|
763
763
|
id: te,
|
|
764
|
-
class:
|
|
764
|
+
class: ue(!D.value && H, re),
|
|
765
765
|
style: ne,
|
|
766
766
|
onMousedown: oe,
|
|
767
767
|
role: e.role
|
|
768
|
-
},
|
|
769
|
-
default: () => [v.value.map(c), C.value ? d() : null, W && y(
|
|
768
|
+
}, me), {
|
|
769
|
+
default: () => [v.value.map(c), C.value ? d() : null, W && y(qe, Y(Y({}, h), {}, {
|
|
770
770
|
order: b.value,
|
|
771
771
|
class: `${O.value}-suffix`,
|
|
772
772
|
registerSize: X,
|
|
773
773
|
display: !0,
|
|
774
|
-
style:
|
|
774
|
+
style: pe
|
|
775
775
|
}), {
|
|
776
776
|
default: () => W
|
|
777
777
|
}), (B = l.default) === null || B === void 0 ? void 0 : B.call(l)]
|
|
778
778
|
});
|
|
779
779
|
};
|
|
780
|
-
return y(
|
|
780
|
+
return y(gt, {
|
|
781
781
|
disabled: !P.value,
|
|
782
782
|
onResize: j
|
|
783
783
|
}, {
|
|
@@ -786,14 +786,14 @@ const _o = () => ({
|
|
|
786
786
|
};
|
|
787
787
|
}
|
|
788
788
|
});
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
const
|
|
793
|
-
function
|
|
794
|
-
return
|
|
789
|
+
Ze.Item = No;
|
|
790
|
+
Ze.RESPONSIVE = un;
|
|
791
|
+
Ze.INVALIDATE = cn;
|
|
792
|
+
const Ho = Symbol("TreeSelectLegacyContextPropsKey");
|
|
793
|
+
function St() {
|
|
794
|
+
return Ue(Ho, {});
|
|
795
795
|
}
|
|
796
|
-
const
|
|
796
|
+
const _o = {
|
|
797
797
|
id: String,
|
|
798
798
|
prefixCls: String,
|
|
799
799
|
values: A.array,
|
|
@@ -837,18 +837,18 @@ const zo = {
|
|
|
837
837
|
onInputMouseDown: Function,
|
|
838
838
|
onInputCompositionStart: Function,
|
|
839
839
|
onInputCompositionEnd: Function
|
|
840
|
-
},
|
|
840
|
+
}, jt = (e) => {
|
|
841
841
|
e.preventDefault(), e.stopPropagation();
|
|
842
|
-
},
|
|
842
|
+
}, Bo = ce({
|
|
843
843
|
name: "MultipleSelectSelector",
|
|
844
844
|
inheritAttrs: !1,
|
|
845
|
-
props:
|
|
845
|
+
props: _o,
|
|
846
846
|
setup(e) {
|
|
847
|
-
const n = G(), o = G(0), t = G(!1), l =
|
|
847
|
+
const n = G(), o = G(0), t = G(!1), l = St(), i = R(() => `${e.prefixCls}-selection`), u = R(() => e.open || e.mode === "tags" ? e.searchValue : ""), a = R(() => e.mode === "tags" || e.showSearch && (e.open || t.value)), m = he("");
|
|
848
848
|
Me(() => {
|
|
849
|
-
|
|
849
|
+
m.value = u.value;
|
|
850
850
|
}), Oe(() => {
|
|
851
|
-
|
|
851
|
+
ae(m, () => {
|
|
852
852
|
o.value = n.value.scrollWidth;
|
|
853
853
|
}, {
|
|
854
854
|
flush: "post",
|
|
@@ -857,7 +857,7 @@ const zo = {
|
|
|
857
857
|
});
|
|
858
858
|
function r(b, x, O, I, P) {
|
|
859
859
|
return y("span", {
|
|
860
|
-
class:
|
|
860
|
+
class: ue(`${i.value}-item`, {
|
|
861
861
|
[`${i.value}-item-disabled`]: O
|
|
862
862
|
}),
|
|
863
863
|
title: typeof b == "string" || typeof b == "number" ? b.toString() : void 0
|
|
@@ -865,17 +865,17 @@ const zo = {
|
|
|
865
865
|
class: `${i.value}-item-content`
|
|
866
866
|
}, [x]), I && y(Pe, {
|
|
867
867
|
class: `${i.value}-item-remove`,
|
|
868
|
-
onMousedown:
|
|
868
|
+
onMousedown: jt,
|
|
869
869
|
onClick: P,
|
|
870
870
|
customizeIcon: e.removeIcon
|
|
871
871
|
}, {
|
|
872
|
-
default: () => [
|
|
872
|
+
default: () => [be("×")]
|
|
873
873
|
})]);
|
|
874
874
|
}
|
|
875
875
|
function s(b, x, O, I, P, D) {
|
|
876
876
|
var C;
|
|
877
877
|
const v = ($) => {
|
|
878
|
-
|
|
878
|
+
jt($), e.onToggleOpen(!open);
|
|
879
879
|
};
|
|
880
880
|
let T = D;
|
|
881
881
|
return l.keyEntities && (T = ((C = l.keyEntities[b]) === null || C === void 0 ? void 0 : C.node) || {}), y("span", {
|
|
@@ -890,7 +890,7 @@ const zo = {
|
|
|
890
890
|
option: T
|
|
891
891
|
})]);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function f(b) {
|
|
894
894
|
const {
|
|
895
895
|
disabled: x,
|
|
896
896
|
label: O,
|
|
@@ -916,7 +916,7 @@ const zo = {
|
|
|
916
916
|
}
|
|
917
917
|
const w = (b) => {
|
|
918
918
|
const x = b.target.composing;
|
|
919
|
-
|
|
919
|
+
m.value = b.target.value, x || e.onInputChange(b);
|
|
920
920
|
};
|
|
921
921
|
return () => {
|
|
922
922
|
const {
|
|
@@ -943,7 +943,7 @@ const zo = {
|
|
|
943
943
|
width: o.value + "px"
|
|
944
944
|
},
|
|
945
945
|
key: "input"
|
|
946
|
-
}, [y(
|
|
946
|
+
}, [y(rn, {
|
|
947
947
|
inputRef: P,
|
|
948
948
|
open: I,
|
|
949
949
|
prefixCls: x,
|
|
@@ -954,7 +954,7 @@ const zo = {
|
|
|
954
954
|
autocomplete: T,
|
|
955
955
|
editable: a.value,
|
|
956
956
|
activeDescendantId: $,
|
|
957
|
-
value:
|
|
957
|
+
value: m.value,
|
|
958
958
|
onKeydown: z,
|
|
959
959
|
onMousedown: Q,
|
|
960
960
|
onChange: w,
|
|
@@ -962,29 +962,29 @@ const zo = {
|
|
|
962
962
|
onCompositionstart: X,
|
|
963
963
|
onCompositionend: U,
|
|
964
964
|
tabindex: N,
|
|
965
|
-
attrs:
|
|
965
|
+
attrs: yt(e, !0),
|
|
966
966
|
onFocus: () => t.value = !0,
|
|
967
967
|
onBlur: () => t.value = !1
|
|
968
968
|
}, null), y("span", {
|
|
969
969
|
ref: n,
|
|
970
970
|
class: `${i.value}-search-mirror`,
|
|
971
971
|
"aria-hidden": !0
|
|
972
|
-
}, [
|
|
972
|
+
}, [m.value, be(" ")])]), L = y(Ze, {
|
|
973
973
|
prefixCls: `${i.value}-overflow`,
|
|
974
974
|
data: O,
|
|
975
|
-
renderItem:
|
|
975
|
+
renderItem: f,
|
|
976
976
|
renderRest: p,
|
|
977
977
|
suffix: M,
|
|
978
978
|
itemKey: "key",
|
|
979
979
|
maxCount: e.maxTagCount,
|
|
980
980
|
key: "overflow"
|
|
981
981
|
}, null);
|
|
982
|
-
return y(
|
|
982
|
+
return y(Ke, null, [L, !O.length && !u.value && !V && y("span", {
|
|
983
983
|
class: `${i.value}-placeholder`
|
|
984
984
|
}, [D])]);
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
|
-
}),
|
|
987
|
+
}), zo = {
|
|
988
988
|
inputElement: A.any,
|
|
989
989
|
id: String,
|
|
990
990
|
prefixCls: String,
|
|
@@ -1028,14 +1028,14 @@ const zo = {
|
|
|
1028
1028
|
onInputMouseDown: Function,
|
|
1029
1029
|
onInputCompositionStart: Function,
|
|
1030
1030
|
onInputCompositionEnd: Function
|
|
1031
|
-
},
|
|
1031
|
+
}, wt = ce({
|
|
1032
1032
|
name: "SingleSelector",
|
|
1033
1033
|
setup(e) {
|
|
1034
1034
|
const n = G(!1), o = R(() => e.mode === "combobox"), t = R(() => o.value || e.showSearch), l = R(() => {
|
|
1035
1035
|
let s = e.searchValue || "";
|
|
1036
1036
|
return o.value && e.activeValue && !n.value && (s = e.activeValue), s;
|
|
1037
|
-
}), i =
|
|
1038
|
-
|
|
1037
|
+
}), i = St();
|
|
1038
|
+
ae([o, () => e.activeValue], () => {
|
|
1039
1039
|
o.value && (n.value = !1);
|
|
1040
1040
|
}, {
|
|
1041
1041
|
immediate: !0
|
|
@@ -1043,7 +1043,7 @@ const zo = {
|
|
|
1043
1043
|
const u = R(() => e.mode !== "combobox" && !e.open && !e.showSearch ? !1 : !!l.value || e.compositionStatus), a = R(() => {
|
|
1044
1044
|
const s = e.values[0];
|
|
1045
1045
|
return s && (typeof s.label == "string" || typeof s.label == "number") ? s.label.toString() : void 0;
|
|
1046
|
-
}),
|
|
1046
|
+
}), m = () => {
|
|
1047
1047
|
if (e.values[0])
|
|
1048
1048
|
return null;
|
|
1049
1049
|
const s = u.value ? {
|
|
@@ -1057,7 +1057,7 @@ const zo = {
|
|
|
1057
1057
|
s.target.composing || (n.value = !0, e.onInputChange(s));
|
|
1058
1058
|
};
|
|
1059
1059
|
return () => {
|
|
1060
|
-
var s,
|
|
1060
|
+
var s, f, p, w;
|
|
1061
1061
|
const {
|
|
1062
1062
|
inputElement: b,
|
|
1063
1063
|
prefixCls: x,
|
|
@@ -1079,13 +1079,13 @@ const zo = {
|
|
|
1079
1079
|
} = e, M = I[0];
|
|
1080
1080
|
let L = null;
|
|
1081
1081
|
if (M && i.customSlots) {
|
|
1082
|
-
const k = (s = M.key) !== null && s !== void 0 ? s : M.value, ee = ((
|
|
1082
|
+
const k = (s = M.key) !== null && s !== void 0 ? s : M.value, ee = ((f = i.keyEntities[k]) === null || f === void 0 ? void 0 : f.node) || {};
|
|
1083
1083
|
L = i.customSlots[(p = ee.slots) === null || p === void 0 ? void 0 : p.title] || i.customSlots.title || M.label, typeof L == "function" && (L = L(ee));
|
|
1084
1084
|
} else
|
|
1085
1085
|
L = V && M ? V(M.option) : M == null ? void 0 : M.label;
|
|
1086
|
-
return y(
|
|
1086
|
+
return y(Ke, null, [y("span", {
|
|
1087
1087
|
class: `${x}-selection-search`
|
|
1088
|
-
}, [y(
|
|
1088
|
+
}, [y(rn, {
|
|
1089
1089
|
inputRef: P,
|
|
1090
1090
|
prefixCls: x,
|
|
1091
1091
|
id: O,
|
|
@@ -1104,19 +1104,19 @@ const zo = {
|
|
|
1104
1104
|
onCompositionstart: X,
|
|
1105
1105
|
onCompositionend: U,
|
|
1106
1106
|
tabindex: N,
|
|
1107
|
-
attrs:
|
|
1107
|
+
attrs: yt(e, !0)
|
|
1108
1108
|
}, null)]), !o.value && M && !u.value && y("span", {
|
|
1109
1109
|
class: `${x}-selection-item`,
|
|
1110
1110
|
title: a.value
|
|
1111
|
-
}, [y(
|
|
1111
|
+
}, [y(Ke, {
|
|
1112
1112
|
key: (w = M.key) !== null && w !== void 0 ? w : M.value
|
|
1113
|
-
}, [L])]),
|
|
1113
|
+
}, [L])]), m()]);
|
|
1114
1114
|
};
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
function
|
|
1117
|
+
wt.props = zo;
|
|
1118
|
+
wt.inheritAttrs = !1;
|
|
1119
|
+
function Ko(e) {
|
|
1120
1120
|
return ![
|
|
1121
1121
|
// System function button
|
|
1122
1122
|
K.ESC,
|
|
@@ -1147,9 +1147,9 @@ function jo(e) {
|
|
|
1147
1147
|
K.F12
|
|
1148
1148
|
].includes(e);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function dn() {
|
|
1151
1151
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, n = null, o;
|
|
1152
|
-
|
|
1152
|
+
Ye(() => {
|
|
1153
1153
|
clearTimeout(o);
|
|
1154
1154
|
});
|
|
1155
1155
|
function t(l) {
|
|
@@ -1159,13 +1159,13 @@ function un() {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
return [() => n, t];
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function je() {
|
|
1163
1163
|
const e = (n) => {
|
|
1164
1164
|
e.current = n;
|
|
1165
1165
|
};
|
|
1166
1166
|
return e;
|
|
1167
1167
|
}
|
|
1168
|
-
const
|
|
1168
|
+
const Wo = ce({
|
|
1169
1169
|
name: "Selector",
|
|
1170
1170
|
inheritAttrs: !1,
|
|
1171
1171
|
props: {
|
|
@@ -1234,18 +1234,18 @@ const Uo = ue({
|
|
|
1234
1234
|
let {
|
|
1235
1235
|
expose: o
|
|
1236
1236
|
} = n;
|
|
1237
|
-
const t =
|
|
1237
|
+
const t = je(), l = he(!1), [i, u] = dn(0), a = (I) => {
|
|
1238
1238
|
const {
|
|
1239
1239
|
which: P
|
|
1240
1240
|
} = I;
|
|
1241
|
-
(P === K.UP || P === K.DOWN) && I.preventDefault(), e.onInputKeyDown && e.onInputKeyDown(I), P === K.ENTER && e.mode === "tags" && !l.value && !e.open && e.onSearchSubmit(I.target.value),
|
|
1242
|
-
},
|
|
1241
|
+
(P === K.UP || P === K.DOWN) && I.preventDefault(), e.onInputKeyDown && e.onInputKeyDown(I), P === K.ENTER && e.mode === "tags" && !l.value && !e.open && e.onSearchSubmit(I.target.value), Ko(P) && e.onToggleOpen(!0);
|
|
1242
|
+
}, m = () => {
|
|
1243
1243
|
u(!0);
|
|
1244
1244
|
};
|
|
1245
1245
|
let r = null;
|
|
1246
1246
|
const s = (I) => {
|
|
1247
1247
|
e.onSearch(I, !0, l.value) !== !1 && e.onToggleOpen(!0);
|
|
1248
|
-
},
|
|
1248
|
+
}, f = () => {
|
|
1249
1249
|
l.value = !0;
|
|
1250
1250
|
}, p = (I) => {
|
|
1251
1251
|
l.value = !1, e.mode !== "combobox" && s(I.target.value);
|
|
@@ -1291,13 +1291,13 @@ const Uo = ue({
|
|
|
1291
1291
|
} = e, C = {
|
|
1292
1292
|
inputRef: t,
|
|
1293
1293
|
onInputKeyDown: a,
|
|
1294
|
-
onInputMouseDown:
|
|
1294
|
+
onInputMouseDown: m,
|
|
1295
1295
|
onInputChange: w,
|
|
1296
1296
|
onInputPaste: b,
|
|
1297
1297
|
compositionStatus: l.value,
|
|
1298
|
-
onInputCompositionStart:
|
|
1298
|
+
onInputCompositionStart: f,
|
|
1299
1299
|
onInputCompositionEnd: p
|
|
1300
|
-
}, v = D === "multiple" || D === "tags" ? y(
|
|
1300
|
+
}, v = D === "multiple" || D === "tags" ? y(Bo, Y(Y({}, e), C), null) : y(wt, Y(Y({}, e), C), null);
|
|
1301
1301
|
return y("div", {
|
|
1302
1302
|
ref: P,
|
|
1303
1303
|
class: `${I}-selector`,
|
|
@@ -1307,21 +1307,21 @@ const Uo = ue({
|
|
|
1307
1307
|
};
|
|
1308
1308
|
}
|
|
1309
1309
|
});
|
|
1310
|
-
function
|
|
1310
|
+
function jo(e, n, o) {
|
|
1311
1311
|
function t(l) {
|
|
1312
1312
|
var i, u, a;
|
|
1313
|
-
let
|
|
1314
|
-
|
|
1313
|
+
let m = l.target;
|
|
1314
|
+
m.shadowRoot && l.composed && (m = l.composedPath()[0] || m);
|
|
1315
1315
|
const r = [(i = e[0]) === null || i === void 0 ? void 0 : i.value, (a = (u = e[1]) === null || u === void 0 ? void 0 : u.value) === null || a === void 0 ? void 0 : a.getPopupElement()];
|
|
1316
|
-
n.value && r.every((s) => s && !s.contains(
|
|
1316
|
+
n.value && r.every((s) => s && !s.contains(m) && s !== m) && o(!1);
|
|
1317
1317
|
}
|
|
1318
1318
|
Oe(() => {
|
|
1319
1319
|
window.addEventListener("mousedown", t);
|
|
1320
|
-
}),
|
|
1320
|
+
}), Ye(() => {
|
|
1321
1321
|
window.removeEventListener("mousedown", t);
|
|
1322
1322
|
});
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Uo() {
|
|
1325
1325
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
|
|
1326
1326
|
const n = G(!1);
|
|
1327
1327
|
let o;
|
|
@@ -1336,21 +1336,21 @@ function Go() {
|
|
|
1336
1336
|
}, e);
|
|
1337
1337
|
}, t];
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1340
|
-
function
|
|
1341
|
-
return
|
|
1339
|
+
const fn = Symbol("BaseSelectContextKey");
|
|
1340
|
+
function Yo(e) {
|
|
1341
|
+
return Qe(fn, e);
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1344
|
-
return
|
|
1343
|
+
function Go() {
|
|
1344
|
+
return Ue(fn, {});
|
|
1345
1345
|
}
|
|
1346
|
-
const
|
|
1346
|
+
const Xo = () => {
|
|
1347
1347
|
if (typeof navigator > "u" || typeof window > "u")
|
|
1348
1348
|
return !1;
|
|
1349
1349
|
const e = navigator.userAgent || navigator.vendor || window.opera;
|
|
1350
1350
|
return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substring(0, 4));
|
|
1351
1351
|
};
|
|
1352
|
-
function
|
|
1353
|
-
if (!
|
|
1352
|
+
function mn(e) {
|
|
1353
|
+
if (!Gn(e)) return Le(e);
|
|
1354
1354
|
const n = new Proxy({}, {
|
|
1355
1355
|
get(o, t, l) {
|
|
1356
1356
|
return Reflect.get(e.value, t, l);
|
|
@@ -1374,16 +1374,16 @@ function dn(e) {
|
|
|
1374
1374
|
};
|
|
1375
1375
|
}
|
|
1376
1376
|
});
|
|
1377
|
-
return
|
|
1377
|
+
return Le(n);
|
|
1378
1378
|
}
|
|
1379
|
-
var
|
|
1379
|
+
var ko = function(e, n) {
|
|
1380
1380
|
var o = {};
|
|
1381
1381
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
1382
1382
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
1383
1383
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
1384
1384
|
return o;
|
|
1385
1385
|
};
|
|
1386
|
-
const
|
|
1386
|
+
const qo = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabindex", "OptionList", "notFoundContent"], Qo = () => ({
|
|
1387
1387
|
prefixCls: String,
|
|
1388
1388
|
id: String,
|
|
1389
1389
|
omitDomProps: Array,
|
|
@@ -1406,7 +1406,7 @@ const Jo = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxT
|
|
|
1406
1406
|
OptionList: A.any,
|
|
1407
1407
|
/** Tell if provided `options` is empty */
|
|
1408
1408
|
emptyOptions: Boolean
|
|
1409
|
-
}),
|
|
1409
|
+
}), pn = () => ({
|
|
1410
1410
|
showSearch: {
|
|
1411
1411
|
type: Boolean,
|
|
1412
1412
|
default: void 0
|
|
@@ -1523,17 +1523,17 @@ const Jo = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxT
|
|
|
1523
1523
|
onMouseenter: Function,
|
|
1524
1524
|
onMouseleave: Function,
|
|
1525
1525
|
onClick: Function
|
|
1526
|
-
}),
|
|
1527
|
-
function
|
|
1526
|
+
}), Jo = () => S(S({}, Qo()), pn());
|
|
1527
|
+
function It(e) {
|
|
1528
1528
|
return e === "tags" || e === "multiple";
|
|
1529
1529
|
}
|
|
1530
|
-
const
|
|
1530
|
+
const Zo = ce({
|
|
1531
1531
|
compatConfig: {
|
|
1532
1532
|
MODE: 3
|
|
1533
1533
|
},
|
|
1534
1534
|
name: "BaseSelect",
|
|
1535
1535
|
inheritAttrs: !1,
|
|
1536
|
-
props:
|
|
1536
|
+
props: ht(Jo(), {
|
|
1537
1537
|
showAction: [],
|
|
1538
1538
|
notFoundContent: "Not Found"
|
|
1539
1539
|
}),
|
|
@@ -1543,11 +1543,11 @@ const tl = ue({
|
|
|
1543
1543
|
expose: t,
|
|
1544
1544
|
slots: l
|
|
1545
1545
|
} = n;
|
|
1546
|
-
const i = R(() =>
|
|
1546
|
+
const i = R(() => It(e.mode)), u = R(() => e.showSearch !== void 0 ? e.showSearch : i.value || e.mode === "combobox"), a = G(!1);
|
|
1547
1547
|
Oe(() => {
|
|
1548
|
-
a.value =
|
|
1548
|
+
a.value = Xo();
|
|
1549
1549
|
});
|
|
1550
|
-
const
|
|
1550
|
+
const m = St(), r = G(null), s = je(), f = G(null), p = G(null), w = G(null), b = he(!1), [x, O, I] = Uo();
|
|
1551
1551
|
t({
|
|
1552
1552
|
focus: () => {
|
|
1553
1553
|
var c;
|
|
@@ -1571,7 +1571,7 @@ const tl = ue({
|
|
|
1571
1571
|
}), v = e.open !== void 0 ? e.open : e.defaultOpen, T = G(v), $ = G(v), N = (c) => {
|
|
1572
1572
|
T.value = e.open !== void 0 ? e.open : c, $.value = T.value;
|
|
1573
1573
|
};
|
|
1574
|
-
|
|
1574
|
+
ae(() => e.open, () => {
|
|
1575
1575
|
N(e.open);
|
|
1576
1576
|
});
|
|
1577
1577
|
const V = R(() => !e.notFoundContent && e.emptyOptions);
|
|
@@ -1587,7 +1587,7 @@ const tl = ue({
|
|
|
1587
1587
|
var E, B;
|
|
1588
1588
|
let q = !0, J = c;
|
|
1589
1589
|
(E = e.onActiveValueChange) === null || E === void 0 || E.call(e, null);
|
|
1590
|
-
const le = F ? null :
|
|
1590
|
+
const le = F ? null : To(c, e.tokenSeparators);
|
|
1591
1591
|
return e.mode !== "combobox" && le && (J = "", (B = e.onSearchSplit) === null || B === void 0 || B.call(e, le), z(!1), q = !1), e.onSearch && C.value !== J && e.onSearch(J, {
|
|
1592
1592
|
source: d ? "typing" : "effect"
|
|
1593
1593
|
}), q;
|
|
@@ -1597,17 +1597,17 @@ const tl = ue({
|
|
|
1597
1597
|
source: "submit"
|
|
1598
1598
|
});
|
|
1599
1599
|
};
|
|
1600
|
-
|
|
1600
|
+
ae($, () => {
|
|
1601
1601
|
!$.value && !i.value && e.mode !== "combobox" && X("", !1, !1);
|
|
1602
1602
|
}, {
|
|
1603
1603
|
immediate: !0,
|
|
1604
1604
|
flush: "post"
|
|
1605
|
-
}),
|
|
1605
|
+
}), ae(() => e.disabled, () => {
|
|
1606
1606
|
T.value && e.disabled && N(!1), e.disabled && !b.value && O(!1);
|
|
1607
1607
|
}, {
|
|
1608
1608
|
immediate: !0
|
|
1609
1609
|
});
|
|
1610
|
-
const [M, L] =
|
|
1610
|
+
const [M, L] = dn(), k = function(c) {
|
|
1611
1611
|
var d;
|
|
1612
1612
|
const F = M(), {
|
|
1613
1613
|
which: E
|
|
@@ -1615,10 +1615,10 @@ const tl = ue({
|
|
|
1615
1615
|
if (E === K.ENTER && (e.mode !== "combobox" && c.preventDefault(), $.value || z(!0)), L(!!C.value), E === K.BACKSPACE && !F && i.value && !C.value && e.displayValues.length) {
|
|
1616
1616
|
const le = [...e.displayValues];
|
|
1617
1617
|
let Z = null;
|
|
1618
|
-
for (let
|
|
1619
|
-
const
|
|
1620
|
-
if (!
|
|
1621
|
-
le.splice(
|
|
1618
|
+
for (let se = le.length - 1; se >= 0; se -= 1) {
|
|
1619
|
+
const fe = le[se];
|
|
1620
|
+
if (!fe.disabled) {
|
|
1621
|
+
le.splice(se, 1), Z = fe;
|
|
1622
1622
|
break;
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
@@ -1642,7 +1642,7 @@ const tl = ue({
|
|
|
1642
1642
|
});
|
|
1643
1643
|
}, H = G(!1), W = function() {
|
|
1644
1644
|
O(!0), e.disabled || (e.onFocus && !H.value && e.onFocus(...arguments), e.showAction && e.showAction.includes("focus") && z(!0)), H.value = !0;
|
|
1645
|
-
}, _ =
|
|
1645
|
+
}, _ = he(!1), te = function() {
|
|
1646
1646
|
if (_.value || (b.value = !0, O(!1, () => {
|
|
1647
1647
|
H.value = !1, b.value = !1, z(!1);
|
|
1648
1648
|
}), e.disabled))
|
|
@@ -1655,49 +1655,49 @@ const tl = ue({
|
|
|
1655
1655
|
})), e.onBlur && e.onBlur(...arguments);
|
|
1656
1656
|
}, oe = () => {
|
|
1657
1657
|
_.value = !0;
|
|
1658
|
-
},
|
|
1658
|
+
}, re = () => {
|
|
1659
1659
|
_.value = !1;
|
|
1660
1660
|
};
|
|
1661
|
-
|
|
1661
|
+
Qe("VCSelectContainerEvent", {
|
|
1662
1662
|
focus: W,
|
|
1663
1663
|
blur: te
|
|
1664
1664
|
});
|
|
1665
1665
|
const ne = [];
|
|
1666
1666
|
Oe(() => {
|
|
1667
1667
|
ne.forEach((c) => clearTimeout(c)), ne.splice(0, ne.length);
|
|
1668
|
-
}),
|
|
1668
|
+
}), Ye(() => {
|
|
1669
1669
|
ne.forEach((c) => clearTimeout(c)), ne.splice(0, ne.length);
|
|
1670
1670
|
});
|
|
1671
|
-
const
|
|
1671
|
+
const me = function(c) {
|
|
1672
1672
|
var d, F;
|
|
1673
1673
|
const {
|
|
1674
1674
|
target: E
|
|
1675
|
-
} = c, B = (d =
|
|
1675
|
+
} = c, B = (d = f.value) === null || d === void 0 ? void 0 : d.getPopupElement();
|
|
1676
1676
|
if (B && B.contains(E)) {
|
|
1677
1677
|
const Z = setTimeout(() => {
|
|
1678
|
-
var
|
|
1679
|
-
const
|
|
1680
|
-
|
|
1678
|
+
var se;
|
|
1679
|
+
const fe = ne.indexOf(Z);
|
|
1680
|
+
fe !== -1 && ne.splice(fe, 1), I(), !a.value && !B.contains(document.activeElement) && ((se = p.value) === null || se === void 0 || se.focus());
|
|
1681
1681
|
});
|
|
1682
1682
|
ne.push(Z);
|
|
1683
1683
|
}
|
|
1684
1684
|
for (var q = arguments.length, J = new Array(q > 1 ? q - 1 : 0), le = 1; le < q; le++)
|
|
1685
1685
|
J[le - 1] = arguments[le];
|
|
1686
1686
|
(F = e.onMousedown) === null || F === void 0 || F.call(e, c, ...J);
|
|
1687
|
-
},
|
|
1687
|
+
}, pe = G(null), h = () => {
|
|
1688
1688
|
};
|
|
1689
1689
|
return Oe(() => {
|
|
1690
|
-
|
|
1690
|
+
ae(j, () => {
|
|
1691
1691
|
var c;
|
|
1692
1692
|
if (j.value) {
|
|
1693
1693
|
const d = Math.ceil((c = r.value) === null || c === void 0 ? void 0 : c.offsetWidth);
|
|
1694
|
-
|
|
1694
|
+
pe.value !== d && !Number.isNaN(d) && (pe.value = d);
|
|
1695
1695
|
}
|
|
1696
1696
|
}, {
|
|
1697
1697
|
immediate: !0,
|
|
1698
1698
|
flush: "post"
|
|
1699
1699
|
});
|
|
1700
|
-
}),
|
|
1700
|
+
}), jo([r, f], j, z), Yo(mn(S(S({}, Xn(e)), {
|
|
1701
1701
|
open: $,
|
|
1702
1702
|
triggerOpen: j,
|
|
1703
1703
|
showSearch: u,
|
|
@@ -1715,63 +1715,63 @@ const tl = ue({
|
|
|
1715
1715
|
searchValue: le,
|
|
1716
1716
|
onSearch: Z,
|
|
1717
1717
|
// Icons
|
|
1718
|
-
allowClear:
|
|
1719
|
-
clearIcon:
|
|
1720
|
-
showArrow:
|
|
1721
|
-
inputIcon:
|
|
1718
|
+
allowClear: se,
|
|
1719
|
+
clearIcon: fe,
|
|
1720
|
+
showArrow: Ge,
|
|
1721
|
+
inputIcon: tt,
|
|
1722
1722
|
// Others
|
|
1723
1723
|
disabled: Re,
|
|
1724
1724
|
loading: De,
|
|
1725
|
-
getInputElement:
|
|
1726
|
-
getPopupContainer:
|
|
1727
|
-
placement:
|
|
1725
|
+
getInputElement: Et,
|
|
1726
|
+
getPopupContainer: xn,
|
|
1727
|
+
placement: On,
|
|
1728
1728
|
// Dropdown
|
|
1729
|
-
animation:
|
|
1730
|
-
transitionName:
|
|
1731
|
-
dropdownStyle:
|
|
1732
|
-
dropdownClassName:
|
|
1733
|
-
dropdownMatchSelectWidth:
|
|
1734
|
-
dropdownRender:
|
|
1735
|
-
dropdownAlign:
|
|
1736
|
-
showAction:
|
|
1737
|
-
direction:
|
|
1729
|
+
animation: $n,
|
|
1730
|
+
transitionName: Tn,
|
|
1731
|
+
dropdownStyle: En,
|
|
1732
|
+
dropdownClassName: Mn,
|
|
1733
|
+
dropdownMatchSelectWidth: Pn,
|
|
1734
|
+
dropdownRender: Rn,
|
|
1735
|
+
dropdownAlign: Dn,
|
|
1736
|
+
showAction: mi,
|
|
1737
|
+
direction: Fn,
|
|
1738
1738
|
// Tags
|
|
1739
|
-
tokenSeparators:
|
|
1740
|
-
tagRender:
|
|
1741
|
-
optionLabelRender:
|
|
1739
|
+
tokenSeparators: pi,
|
|
1740
|
+
tagRender: Nn,
|
|
1741
|
+
optionLabelRender: An,
|
|
1742
1742
|
// Events
|
|
1743
|
-
onPopupScroll:
|
|
1744
|
-
onDropdownVisibleChange:
|
|
1745
|
-
onFocus:
|
|
1746
|
-
onBlur:
|
|
1747
|
-
onKeyup:
|
|
1748
|
-
onKeydown:
|
|
1749
|
-
onMousedown:
|
|
1750
|
-
onClear:
|
|
1751
|
-
omitDomProps:
|
|
1752
|
-
getRawInputElement:
|
|
1753
|
-
displayValues:
|
|
1754
|
-
onDisplayValuesChange:
|
|
1755
|
-
emptyOptions:
|
|
1756
|
-
activeDescendantId:
|
|
1757
|
-
activeValue:
|
|
1758
|
-
OptionList:
|
|
1759
|
-
} = c,
|
|
1760
|
-
let
|
|
1761
|
-
|
|
1743
|
+
onPopupScroll: vi,
|
|
1744
|
+
onDropdownVisibleChange: gi,
|
|
1745
|
+
onFocus: hi,
|
|
1746
|
+
onBlur: bi,
|
|
1747
|
+
onKeyup: yi,
|
|
1748
|
+
onKeydown: Si,
|
|
1749
|
+
onMousedown: wi,
|
|
1750
|
+
onClear: nt,
|
|
1751
|
+
omitDomProps: ot,
|
|
1752
|
+
getRawInputElement: Mt,
|
|
1753
|
+
displayValues: Xe,
|
|
1754
|
+
onDisplayValuesChange: Vn,
|
|
1755
|
+
emptyOptions: Ln,
|
|
1756
|
+
activeDescendantId: Hn,
|
|
1757
|
+
activeValue: _n,
|
|
1758
|
+
OptionList: Bn
|
|
1759
|
+
} = c, zn = ko(c, ["prefixCls", "id", "open", "defaultOpen", "mode", "showSearch", "searchValue", "onSearch", "allowClear", "clearIcon", "showArrow", "inputIcon", "disabled", "loading", "getInputElement", "getPopupContainer", "placement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "optionLabelRender", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyup", "onKeydown", "onMousedown", "onClear", "omitDomProps", "getRawInputElement", "displayValues", "onDisplayValuesChange", "emptyOptions", "activeDescendantId", "activeValue", "OptionList"]), Pt = q === "combobox" && Et && Et() || null, He = typeof Mt == "function" && Mt(), lt = S({}, zn);
|
|
1760
|
+
let Rt;
|
|
1761
|
+
He && (Rt = (Te) => {
|
|
1762
1762
|
z(Te);
|
|
1763
|
-
}),
|
|
1764
|
-
delete
|
|
1765
|
-
}),
|
|
1766
|
-
delete
|
|
1763
|
+
}), qo.forEach((Te) => {
|
|
1764
|
+
delete lt[Te];
|
|
1765
|
+
}), ot == null || ot.forEach((Te) => {
|
|
1766
|
+
delete lt[Te];
|
|
1767
1767
|
});
|
|
1768
|
-
const
|
|
1769
|
-
let
|
|
1770
|
-
|
|
1771
|
-
class:
|
|
1768
|
+
const Dt = Ge !== void 0 ? Ge : De || !i.value && q !== "combobox";
|
|
1769
|
+
let Ft;
|
|
1770
|
+
Dt && (Ft = y(Pe, {
|
|
1771
|
+
class: ue(`${d}-arrow`, {
|
|
1772
1772
|
[`${d}-arrow-loading`]: De
|
|
1773
1773
|
}),
|
|
1774
|
-
customizeIcon:
|
|
1774
|
+
customizeIcon: tt,
|
|
1775
1775
|
customizeIconProps: {
|
|
1776
1776
|
loading: De,
|
|
1777
1777
|
searchValue: C.value,
|
|
@@ -1780,76 +1780,76 @@ const tl = ue({
|
|
|
1780
1780
|
showSearch: u.value
|
|
1781
1781
|
}
|
|
1782
1782
|
}, null));
|
|
1783
|
-
let
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1783
|
+
let Nt;
|
|
1784
|
+
const Kn = () => {
|
|
1785
|
+
nt == null || nt(), Vn([], {
|
|
1786
1786
|
type: "clear",
|
|
1787
|
-
values:
|
|
1787
|
+
values: Xe
|
|
1788
1788
|
}), X("", !1, !1);
|
|
1789
1789
|
};
|
|
1790
|
-
!Re &&
|
|
1790
|
+
!Re && se && (Xe.length || C.value) && (Nt = y(Pe, {
|
|
1791
1791
|
class: `${d}-clear`,
|
|
1792
|
-
onMousedown:
|
|
1793
|
-
customizeIcon:
|
|
1792
|
+
onMousedown: Kn,
|
|
1793
|
+
customizeIcon: fe
|
|
1794
1794
|
}, {
|
|
1795
|
-
default: () => [
|
|
1795
|
+
default: () => [be("×")]
|
|
1796
1796
|
}));
|
|
1797
|
-
const
|
|
1797
|
+
const Wn = y(Bn, {
|
|
1798
1798
|
ref: w
|
|
1799
|
-
}, S(S({},
|
|
1799
|
+
}, S(S({}, m.customSlots), {
|
|
1800
1800
|
option: l.option
|
|
1801
|
-
})),
|
|
1801
|
+
})), jn = ue(d, o.class, {
|
|
1802
1802
|
[`${d}-focused`]: x.value,
|
|
1803
1803
|
[`${d}-multiple`]: i.value,
|
|
1804
1804
|
[`${d}-single`]: !i.value,
|
|
1805
|
-
[`${d}-allow-clear`]:
|
|
1806
|
-
[`${d}-show-arrow`]:
|
|
1805
|
+
[`${d}-allow-clear`]: se,
|
|
1806
|
+
[`${d}-show-arrow`]: Dt,
|
|
1807
1807
|
[`${d}-disabled`]: Re,
|
|
1808
1808
|
[`${d}-loading`]: De,
|
|
1809
1809
|
[`${d}-open`]: $.value,
|
|
1810
|
-
[`${d}-customize-input`]:
|
|
1810
|
+
[`${d}-customize-input`]: Pt,
|
|
1811
1811
|
[`${d}-show-search`]: u.value
|
|
1812
|
-
}),
|
|
1813
|
-
ref:
|
|
1812
|
+
}), At = y(Po, {
|
|
1813
|
+
ref: f,
|
|
1814
1814
|
disabled: Re,
|
|
1815
1815
|
prefixCls: d,
|
|
1816
1816
|
visible: j.value,
|
|
1817
|
-
popupElement:
|
|
1818
|
-
containerWidth:
|
|
1819
|
-
animation:
|
|
1820
|
-
transitionName:
|
|
1821
|
-
dropdownStyle:
|
|
1822
|
-
dropdownClassName:
|
|
1823
|
-
direction:
|
|
1824
|
-
dropdownMatchSelectWidth:
|
|
1825
|
-
dropdownRender:
|
|
1826
|
-
dropdownAlign:
|
|
1827
|
-
placement:
|
|
1828
|
-
getPopupContainer:
|
|
1829
|
-
empty:
|
|
1817
|
+
popupElement: Wn,
|
|
1818
|
+
containerWidth: pe.value,
|
|
1819
|
+
animation: $n,
|
|
1820
|
+
transitionName: Tn,
|
|
1821
|
+
dropdownStyle: En,
|
|
1822
|
+
dropdownClassName: Mn,
|
|
1823
|
+
direction: Fn,
|
|
1824
|
+
dropdownMatchSelectWidth: Pn,
|
|
1825
|
+
dropdownRender: Rn,
|
|
1826
|
+
dropdownAlign: Dn,
|
|
1827
|
+
placement: On,
|
|
1828
|
+
getPopupContainer: xn,
|
|
1829
|
+
empty: Ln,
|
|
1830
1830
|
getTriggerDOMNode: () => s.current,
|
|
1831
|
-
onPopupVisibleChange:
|
|
1831
|
+
onPopupVisibleChange: Rt,
|
|
1832
1832
|
onPopupMouseEnter: h,
|
|
1833
1833
|
onPopupFocusin: oe,
|
|
1834
|
-
onPopupFocusout:
|
|
1834
|
+
onPopupFocusout: re
|
|
1835
1835
|
}, {
|
|
1836
|
-
default: () =>
|
|
1836
|
+
default: () => He ? We(He) && tn(He, {
|
|
1837
1837
|
ref: s
|
|
1838
|
-
}, !1, !0) : y(
|
|
1838
|
+
}, !1, !0) : y(Wo, Y(Y({}, e), {}, {
|
|
1839
1839
|
domRef: s,
|
|
1840
1840
|
prefixCls: d,
|
|
1841
|
-
inputElement:
|
|
1841
|
+
inputElement: Pt,
|
|
1842
1842
|
ref: p,
|
|
1843
1843
|
id: F,
|
|
1844
1844
|
showSearch: u.value,
|
|
1845
1845
|
mode: q,
|
|
1846
|
-
activeDescendantId:
|
|
1847
|
-
tagRender:
|
|
1848
|
-
optionLabelRender:
|
|
1849
|
-
values:
|
|
1846
|
+
activeDescendantId: Hn,
|
|
1847
|
+
tagRender: Nn,
|
|
1848
|
+
optionLabelRender: An,
|
|
1849
|
+
values: Xe,
|
|
1850
1850
|
open: $.value,
|
|
1851
1851
|
onToggleOpen: z,
|
|
1852
|
-
activeValue:
|
|
1852
|
+
activeValue: _n,
|
|
1853
1853
|
searchValue: C.value,
|
|
1854
1854
|
onSearch: X,
|
|
1855
1855
|
onSearchSubmit: U,
|
|
@@ -1857,11 +1857,11 @@ const tl = ue({
|
|
|
1857
1857
|
tokenWithEnter: Q.value
|
|
1858
1858
|
}), null)
|
|
1859
1859
|
});
|
|
1860
|
-
let
|
|
1861
|
-
return
|
|
1862
|
-
class:
|
|
1860
|
+
let it;
|
|
1861
|
+
return He ? it = At : it = y("div", Y(Y({}, lt), {}, {
|
|
1862
|
+
class: jn,
|
|
1863
1863
|
ref: r,
|
|
1864
|
-
onMousedown:
|
|
1864
|
+
onMousedown: me,
|
|
1865
1865
|
onKeydown: k,
|
|
1866
1866
|
onKeyup: ee
|
|
1867
1867
|
}), [x.value && !$.value && y("span", {
|
|
@@ -1873,16 +1873,16 @@ const tl = ue({
|
|
|
1873
1873
|
opacity: 0
|
|
1874
1874
|
},
|
|
1875
1875
|
"aria-live": "polite"
|
|
1876
|
-
}, [`${
|
|
1876
|
+
}, [`${Xe.map((Te) => {
|
|
1877
1877
|
let {
|
|
1878
|
-
label:
|
|
1879
|
-
value:
|
|
1878
|
+
label: Vt,
|
|
1879
|
+
value: Un
|
|
1880
1880
|
} = Te;
|
|
1881
|
-
return ["number", "string"].includes(typeof
|
|
1882
|
-
}).join(", ")}`]),
|
|
1881
|
+
return ["number", "string"].includes(typeof Vt) ? Vt : Un;
|
|
1882
|
+
}).join(", ")}`]), At, Ft, Nt]), it;
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
|
-
}),
|
|
1885
|
+
}), et = (e, n) => {
|
|
1886
1886
|
let {
|
|
1887
1887
|
height: o,
|
|
1888
1888
|
offset: t,
|
|
@@ -1892,11 +1892,11 @@ const tl = ue({
|
|
|
1892
1892
|
slots: u
|
|
1893
1893
|
} = n;
|
|
1894
1894
|
var a;
|
|
1895
|
-
let
|
|
1895
|
+
let m = {}, r = {
|
|
1896
1896
|
display: "flex",
|
|
1897
1897
|
flexDirection: "column"
|
|
1898
1898
|
};
|
|
1899
|
-
return t !== void 0 && (
|
|
1899
|
+
return t !== void 0 && (m = {
|
|
1900
1900
|
height: `${o}px`,
|
|
1901
1901
|
position: "relative",
|
|
1902
1902
|
overflow: "hidden"
|
|
@@ -1907,26 +1907,26 @@ const tl = ue({
|
|
|
1907
1907
|
right: 0,
|
|
1908
1908
|
top: 0
|
|
1909
1909
|
})), y("div", {
|
|
1910
|
-
style:
|
|
1911
|
-
}, [y(
|
|
1910
|
+
style: m
|
|
1911
|
+
}, [y(gt, {
|
|
1912
1912
|
onResize: (s) => {
|
|
1913
1913
|
let {
|
|
1914
|
-
offsetHeight:
|
|
1914
|
+
offsetHeight: f
|
|
1915
1915
|
} = s;
|
|
1916
|
-
|
|
1916
|
+
f && i && i();
|
|
1917
1917
|
}
|
|
1918
1918
|
}, {
|
|
1919
1919
|
default: () => [y("div", {
|
|
1920
1920
|
style: r,
|
|
1921
|
-
class:
|
|
1921
|
+
class: ue({
|
|
1922
1922
|
[`${l}-holder-inner`]: l
|
|
1923
1923
|
})
|
|
1924
1924
|
}, [(a = u.default) === null || a === void 0 ? void 0 : a.call(u)])]
|
|
1925
1925
|
})]);
|
|
1926
1926
|
};
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1927
|
+
et.displayName = "Filter";
|
|
1928
|
+
et.inheritAttrs = !1;
|
|
1929
|
+
et.props = {
|
|
1930
1930
|
prefixCls: String,
|
|
1931
1931
|
/** Virtual filler height. Should be `count * itemMinHeight` */
|
|
1932
1932
|
height: Number,
|
|
@@ -1934,30 +1934,30 @@ Ze.props = {
|
|
|
1934
1934
|
offset: Number,
|
|
1935
1935
|
onInnerResize: Function
|
|
1936
1936
|
};
|
|
1937
|
-
const
|
|
1937
|
+
const vn = (e, n) => {
|
|
1938
1938
|
let {
|
|
1939
1939
|
setRef: o
|
|
1940
1940
|
} = e, {
|
|
1941
1941
|
slots: t
|
|
1942
1942
|
} = n;
|
|
1943
1943
|
var l;
|
|
1944
|
-
const i =
|
|
1945
|
-
return i && i.length ?
|
|
1944
|
+
const i = nn((l = t.default) === null || l === void 0 ? void 0 : l.call(t));
|
|
1945
|
+
return i && i.length ? Zt(i[0], {
|
|
1946
1946
|
ref: o
|
|
1947
1947
|
}) : i;
|
|
1948
1948
|
};
|
|
1949
|
-
|
|
1949
|
+
vn.props = {
|
|
1950
1950
|
setRef: {
|
|
1951
1951
|
type: Function,
|
|
1952
1952
|
default: () => {
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
};
|
|
1956
|
-
const
|
|
1957
|
-
function
|
|
1956
|
+
const el = 20;
|
|
1957
|
+
function Ut(e) {
|
|
1958
1958
|
return "touches" in e ? e.touches[0].pageY : e.pageY;
|
|
1959
1959
|
}
|
|
1960
|
-
const
|
|
1960
|
+
const tl = ce({
|
|
1961
1961
|
compatConfig: {
|
|
1962
1962
|
MODE: 3
|
|
1963
1963
|
},
|
|
@@ -1982,10 +1982,10 @@ const ol = ue({
|
|
|
1982
1982
|
setup() {
|
|
1983
1983
|
return {
|
|
1984
1984
|
moveRaf: null,
|
|
1985
|
-
scrollbarRef:
|
|
1986
|
-
thumbRef:
|
|
1985
|
+
scrollbarRef: je(),
|
|
1986
|
+
thumbRef: je(),
|
|
1987
1987
|
visibleTimeout: null,
|
|
1988
|
-
state:
|
|
1988
|
+
state: Le({
|
|
1989
1989
|
dragging: !1,
|
|
1990
1990
|
pageY: null,
|
|
1991
1991
|
startTop: null,
|
|
@@ -2037,7 +2037,7 @@ const ol = ue({
|
|
|
2037
2037
|
passive: !1
|
|
2038
2038
|
} : !1), this.thumbRef.current.removeEventListener("touchmove", this.onMouseMove, xe ? {
|
|
2039
2039
|
passive: !1
|
|
2040
|
-
} : !1), this.thumbRef.current.removeEventListener("touchend", this.onMouseUp)),
|
|
2040
|
+
} : !1), this.thumbRef.current.removeEventListener("touchend", this.onMouseUp)), we.cancel(this.moveRaf);
|
|
2041
2041
|
},
|
|
2042
2042
|
// ======================= Thumb =======================
|
|
2043
2043
|
onMouseDown(e) {
|
|
@@ -2046,7 +2046,7 @@ const ol = ue({
|
|
|
2046
2046
|
} = this.$props;
|
|
2047
2047
|
S(this.state, {
|
|
2048
2048
|
dragging: !0,
|
|
2049
|
-
pageY:
|
|
2049
|
+
pageY: Ut(e),
|
|
2050
2050
|
startTop: this.getTop()
|
|
2051
2051
|
}), n(), this.patchEvents(), e.stopPropagation(), e.preventDefault();
|
|
2052
2052
|
},
|
|
@@ -2058,9 +2058,9 @@ const ol = ue({
|
|
|
2058
2058
|
} = this.state, {
|
|
2059
2059
|
onScroll: l
|
|
2060
2060
|
} = this.$props;
|
|
2061
|
-
if (
|
|
2062
|
-
const i =
|
|
2063
|
-
this.moveRaf =
|
|
2061
|
+
if (we.cancel(this.moveRaf), n) {
|
|
2062
|
+
const i = Ut(e) - o, u = t + i, a = this.getEnableScrollRange(), m = this.getEnableHeightRange(), r = m ? u / m : 0, s = Math.ceil(r * a);
|
|
2063
|
+
this.moveRaf = we(() => {
|
|
2064
2064
|
l(s);
|
|
2065
2065
|
});
|
|
2066
2066
|
}
|
|
@@ -2078,7 +2078,7 @@ const ol = ue({
|
|
|
2078
2078
|
scrollHeight: n
|
|
2079
2079
|
} = this.$props;
|
|
2080
2080
|
let o = e / n * 100;
|
|
2081
|
-
return o = Math.max(o,
|
|
2081
|
+
return o = Math.max(o, el), o = Math.min(o, e / 2), Math.floor(o);
|
|
2082
2082
|
},
|
|
2083
2083
|
getEnableScrollRange() {
|
|
2084
2084
|
const {
|
|
@@ -2117,7 +2117,7 @@ const ol = ue({
|
|
|
2117
2117
|
} = this.$props, t = this.getSpinHeight() + "px", l = this.getTop() + "px", i = this.showScroll(), u = i && n;
|
|
2118
2118
|
return y("div", {
|
|
2119
2119
|
ref: this.scrollbarRef,
|
|
2120
|
-
class:
|
|
2120
|
+
class: ue(`${o}-scrollbar`, {
|
|
2121
2121
|
[`${o}-scrollbar-show`]: i
|
|
2122
2122
|
}),
|
|
2123
2123
|
style: {
|
|
@@ -2132,7 +2132,7 @@ const ol = ue({
|
|
|
2132
2132
|
onMousemove: this.delayHidden
|
|
2133
2133
|
}, [y("div", {
|
|
2134
2134
|
ref: this.thumbRef,
|
|
2135
|
-
class:
|
|
2135
|
+
class: ue(`${o}-scrollbar-thumb`, {
|
|
2136
2136
|
[`${o}-scrollbar-thumb-moving`]: e
|
|
2137
2137
|
}),
|
|
2138
2138
|
style: {
|
|
@@ -2150,44 +2150,44 @@ const ol = ue({
|
|
|
2150
2150
|
}, null)]);
|
|
2151
2151
|
}
|
|
2152
2152
|
});
|
|
2153
|
-
function
|
|
2154
|
-
const l = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), u =
|
|
2155
|
-
|
|
2153
|
+
function nl(e, n, o, t) {
|
|
2154
|
+
const l = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), u = he(Symbol("update"));
|
|
2155
|
+
ae(e, () => {
|
|
2156
2156
|
u.value = Symbol("update");
|
|
2157
2157
|
});
|
|
2158
2158
|
let a;
|
|
2159
|
-
function
|
|
2160
|
-
|
|
2159
|
+
function m() {
|
|
2160
|
+
we.cancel(a);
|
|
2161
2161
|
}
|
|
2162
2162
|
function r() {
|
|
2163
|
-
|
|
2164
|
-
l.forEach((
|
|
2165
|
-
if (
|
|
2163
|
+
m(), a = we(() => {
|
|
2164
|
+
l.forEach((f, p) => {
|
|
2165
|
+
if (f && f.offsetParent) {
|
|
2166
2166
|
const {
|
|
2167
2167
|
offsetHeight: w
|
|
2168
|
-
} =
|
|
2169
|
-
i.get(p) !== w && (u.value = Symbol("update"), i.set(p,
|
|
2168
|
+
} = f;
|
|
2169
|
+
i.get(p) !== w && (u.value = Symbol("update"), i.set(p, f.offsetHeight));
|
|
2170
2170
|
}
|
|
2171
2171
|
});
|
|
2172
2172
|
});
|
|
2173
2173
|
}
|
|
2174
|
-
function s(
|
|
2175
|
-
const w = n(
|
|
2174
|
+
function s(f, p) {
|
|
2175
|
+
const w = n(f);
|
|
2176
2176
|
l.get(w), p ? (l.set(w, p.$el || p), r()) : l.delete(w);
|
|
2177
2177
|
}
|
|
2178
|
-
return
|
|
2179
|
-
|
|
2178
|
+
return en(() => {
|
|
2179
|
+
m();
|
|
2180
2180
|
}), [s, r, i, u];
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2183
|
-
let
|
|
2182
|
+
function ol(e, n, o, t, l, i, u, a) {
|
|
2183
|
+
let m;
|
|
2184
2184
|
return (r) => {
|
|
2185
2185
|
if (r == null) {
|
|
2186
2186
|
a();
|
|
2187
2187
|
return;
|
|
2188
2188
|
}
|
|
2189
|
-
|
|
2190
|
-
const s = n.value,
|
|
2189
|
+
we.cancel(m);
|
|
2190
|
+
const s = n.value, f = t.itemHeight;
|
|
2191
2191
|
if (typeof r == "number")
|
|
2192
2192
|
u(r);
|
|
2193
2193
|
else if (r && typeof r == "object") {
|
|
@@ -2212,7 +2212,7 @@ function il(e, n, o, t, l, i, u, a) {
|
|
|
2212
2212
|
const X = l(s[Q]);
|
|
2213
2213
|
$ = T;
|
|
2214
2214
|
const U = o.get(X);
|
|
2215
|
-
N = $ + (U === void 0 ?
|
|
2215
|
+
N = $ + (U === void 0 ? f : U), T = N, Q === p && U === void 0 && (D = !0);
|
|
2216
2216
|
}
|
|
2217
2217
|
const j = e.value.scrollTop;
|
|
2218
2218
|
let z = null;
|
|
@@ -2230,7 +2230,7 @@ function il(e, n, o, t, l, i, u, a) {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
z !== null && z !== j && u(z);
|
|
2232
2232
|
}
|
|
2233
|
-
|
|
2233
|
+
m = we(() => {
|
|
2234
2234
|
D && i(), x(O - 1, C);
|
|
2235
2235
|
}, 2);
|
|
2236
2236
|
};
|
|
@@ -2238,7 +2238,7 @@ function il(e, n, o, t, l, i, u, a) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
};
|
|
2240
2240
|
}
|
|
2241
|
-
const
|
|
2241
|
+
const ll = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent), gn = (e, n) => {
|
|
2242
2242
|
let o = !1, t = null;
|
|
2243
2243
|
function l() {
|
|
2244
2244
|
clearTimeout(t), o = !0, t = setTimeout(() => {
|
|
@@ -2255,87 +2255,87 @@ const al = typeof navigator == "object" && /Firefox/i.test(navigator.userAgent),
|
|
|
2255
2255
|
return u && a ? (clearTimeout(t), o = !1) : (!a || o) && l(), !o && a;
|
|
2256
2256
|
};
|
|
2257
2257
|
};
|
|
2258
|
-
function
|
|
2258
|
+
function il(e, n, o, t) {
|
|
2259
2259
|
let l = 0, i = null, u = null, a = !1;
|
|
2260
|
-
const
|
|
2261
|
-
function r(
|
|
2260
|
+
const m = gn(n, o);
|
|
2261
|
+
function r(f) {
|
|
2262
2262
|
if (!e.value) return;
|
|
2263
|
-
|
|
2263
|
+
we.cancel(i);
|
|
2264
2264
|
const {
|
|
2265
2265
|
deltaY: p
|
|
2266
|
-
} =
|
|
2267
|
-
l += p, u = p, !
|
|
2266
|
+
} = f;
|
|
2267
|
+
l += p, u = p, !m(p) && (ll || f.preventDefault(), i = we(() => {
|
|
2268
2268
|
t(l * (a ? 10 : 1)), l = 0;
|
|
2269
2269
|
}));
|
|
2270
2270
|
}
|
|
2271
|
-
function s(
|
|
2272
|
-
e.value && (a =
|
|
2271
|
+
function s(f) {
|
|
2272
|
+
e.value && (a = f.detail === u);
|
|
2273
2273
|
}
|
|
2274
2274
|
return [r, s];
|
|
2275
2275
|
}
|
|
2276
|
-
const
|
|
2277
|
-
function
|
|
2276
|
+
const al = 14 / 15;
|
|
2277
|
+
function rl(e, n, o) {
|
|
2278
2278
|
let t = !1, l = 0, i = null, u = null;
|
|
2279
2279
|
const a = () => {
|
|
2280
|
-
i && (i.removeEventListener("touchmove",
|
|
2281
|
-
},
|
|
2280
|
+
i && (i.removeEventListener("touchmove", m), i.removeEventListener("touchend", r));
|
|
2281
|
+
}, m = (p) => {
|
|
2282
2282
|
if (t) {
|
|
2283
2283
|
const w = Math.ceil(p.touches[0].pageY);
|
|
2284
2284
|
let b = l - w;
|
|
2285
2285
|
l = w, o(b) && p.preventDefault(), clearInterval(u), u = setInterval(() => {
|
|
2286
|
-
b *=
|
|
2286
|
+
b *= al, (!o(b, !0) || Math.abs(b) <= 0.1) && clearInterval(u);
|
|
2287
2287
|
}, 16);
|
|
2288
2288
|
}
|
|
2289
2289
|
}, r = () => {
|
|
2290
2290
|
t = !1, a();
|
|
2291
2291
|
}, s = (p) => {
|
|
2292
|
-
a(), p.touches.length === 1 && !t && (t = !0, l = Math.ceil(p.touches[0].pageY), i = p.target, i.addEventListener("touchmove",
|
|
2292
|
+
a(), p.touches.length === 1 && !t && (t = !0, l = Math.ceil(p.touches[0].pageY), i = p.target, i.addEventListener("touchmove", m, {
|
|
2293
2293
|
passive: !1
|
|
2294
2294
|
}), i.addEventListener("touchend", r));
|
|
2295
|
-
},
|
|
2295
|
+
}, f = () => {
|
|
2296
2296
|
};
|
|
2297
2297
|
Oe(() => {
|
|
2298
|
-
document.addEventListener("touchmove",
|
|
2298
|
+
document.addEventListener("touchmove", f, {
|
|
2299
2299
|
passive: !1
|
|
2300
|
-
}),
|
|
2300
|
+
}), ae(e, (p) => {
|
|
2301
2301
|
n.value.removeEventListener("touchstart", s), a(), clearInterval(u), p && n.value.addEventListener("touchstart", s, {
|
|
2302
2302
|
passive: !1
|
|
2303
2303
|
});
|
|
2304
2304
|
}, {
|
|
2305
2305
|
immediate: !0
|
|
2306
2306
|
});
|
|
2307
|
-
}),
|
|
2308
|
-
document.removeEventListener("touchmove",
|
|
2307
|
+
}), Ye(() => {
|
|
2308
|
+
document.removeEventListener("touchmove", f);
|
|
2309
2309
|
});
|
|
2310
2310
|
}
|
|
2311
|
-
var
|
|
2311
|
+
var sl = function(e, n) {
|
|
2312
2312
|
var o = {};
|
|
2313
2313
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
2314
2314
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
2315
2315
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
2316
2316
|
return o;
|
|
2317
2317
|
};
|
|
2318
|
-
const
|
|
2318
|
+
const ul = [], cl = {
|
|
2319
2319
|
overflowY: "auto",
|
|
2320
2320
|
overflowAnchor: "none"
|
|
2321
2321
|
};
|
|
2322
|
-
function
|
|
2322
|
+
function dl(e, n, o, t, l, i) {
|
|
2323
2323
|
let {
|
|
2324
2324
|
getKey: u
|
|
2325
2325
|
} = i;
|
|
2326
|
-
return e.slice(n, o + 1).map((a,
|
|
2327
|
-
const r = n +
|
|
2326
|
+
return e.slice(n, o + 1).map((a, m) => {
|
|
2327
|
+
const r = n + m, s = l(a, r, {
|
|
2328
2328
|
// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
|
|
2329
|
-
}),
|
|
2330
|
-
return y(
|
|
2331
|
-
key:
|
|
2329
|
+
}), f = u(a);
|
|
2330
|
+
return y(vn, {
|
|
2331
|
+
key: f,
|
|
2332
2332
|
setRef: (p) => t(a, p)
|
|
2333
2333
|
}, {
|
|
2334
2334
|
default: () => [s]
|
|
2335
2335
|
});
|
|
2336
2336
|
});
|
|
2337
2337
|
}
|
|
2338
|
-
const
|
|
2338
|
+
const fl = ce({
|
|
2339
2339
|
compatConfig: {
|
|
2340
2340
|
MODE: 3
|
|
2341
2341
|
},
|
|
@@ -2387,23 +2387,23 @@ const pl = ue({
|
|
|
2387
2387
|
data: W
|
|
2388
2388
|
} = e;
|
|
2389
2389
|
return t.value && W && H * W.length > g;
|
|
2390
|
-
}), i =
|
|
2390
|
+
}), i = Le({
|
|
2391
2391
|
scrollTop: 0,
|
|
2392
2392
|
scrollMoving: !1
|
|
2393
|
-
}), u = R(() => e.data ||
|
|
2394
|
-
|
|
2395
|
-
a.value =
|
|
2393
|
+
}), u = R(() => e.data || ul), a = G([]);
|
|
2394
|
+
ae(u, () => {
|
|
2395
|
+
a.value = vt(u.value).slice();
|
|
2396
2396
|
}, {
|
|
2397
2397
|
immediate: !0
|
|
2398
2398
|
});
|
|
2399
|
-
const
|
|
2399
|
+
const m = G((g) => {
|
|
2400
2400
|
});
|
|
2401
|
-
|
|
2402
|
-
typeof g == "function" ?
|
|
2401
|
+
ae(() => e.itemKey, (g) => {
|
|
2402
|
+
typeof g == "function" ? m.value = g : m.value = (H) => H == null ? void 0 : H[g];
|
|
2403
2403
|
}, {
|
|
2404
2404
|
immediate: !0
|
|
2405
2405
|
});
|
|
2406
|
-
const r = G(), s = G(),
|
|
2406
|
+
const r = G(), s = G(), f = G(), p = (g) => m.value(g), w = {
|
|
2407
2407
|
getKey: p
|
|
2408
2408
|
};
|
|
2409
2409
|
function b(g) {
|
|
@@ -2412,23 +2412,23 @@ const pl = ue({
|
|
|
2412
2412
|
const W = T(H);
|
|
2413
2413
|
r.value && (r.value.scrollTop = W), i.scrollTop = W;
|
|
2414
2414
|
}
|
|
2415
|
-
const [x, O, I, P] =
|
|
2415
|
+
const [x, O, I, P] = nl(a, p), D = Le({
|
|
2416
2416
|
scrollHeight: void 0,
|
|
2417
2417
|
start: 0,
|
|
2418
2418
|
end: 0,
|
|
2419
2419
|
offset: void 0
|
|
2420
2420
|
}), C = G(0);
|
|
2421
2421
|
Oe(() => {
|
|
2422
|
-
|
|
2422
|
+
ze(() => {
|
|
2423
2423
|
var g;
|
|
2424
2424
|
C.value = ((g = s.value) === null || g === void 0 ? void 0 : g.offsetHeight) || 0;
|
|
2425
2425
|
});
|
|
2426
|
-
}),
|
|
2427
|
-
|
|
2426
|
+
}), kn(() => {
|
|
2427
|
+
ze(() => {
|
|
2428
2428
|
var g;
|
|
2429
2429
|
C.value = ((g = s.value) === null || g === void 0 ? void 0 : g.offsetHeight) || 0;
|
|
2430
2430
|
});
|
|
2431
|
-
}),
|
|
2431
|
+
}), ae([t, a], () => {
|
|
2432
2432
|
t.value || S(D, {
|
|
2433
2433
|
scrollHeight: void 0,
|
|
2434
2434
|
start: 0,
|
|
@@ -2437,7 +2437,7 @@ const pl = ue({
|
|
|
2437
2437
|
});
|
|
2438
2438
|
}, {
|
|
2439
2439
|
immediate: !0
|
|
2440
|
-
}),
|
|
2440
|
+
}), ae([t, a, C, l], () => {
|
|
2441
2441
|
t.value && !l.value && S(D, {
|
|
2442
2442
|
scrollHeight: C.value,
|
|
2443
2443
|
start: 0,
|
|
@@ -2446,22 +2446,22 @@ const pl = ue({
|
|
|
2446
2446
|
}), r.value && (i.scrollTop = r.value.scrollTop);
|
|
2447
2447
|
}, {
|
|
2448
2448
|
immediate: !0
|
|
2449
|
-
}),
|
|
2449
|
+
}), ae([l, t, () => i.scrollTop, a, P, () => e.height, C], () => {
|
|
2450
2450
|
if (!t.value || !l.value)
|
|
2451
2451
|
return;
|
|
2452
2452
|
let g = 0, H, W, _;
|
|
2453
|
-
const te = a.value.length, oe = a.value,
|
|
2453
|
+
const te = a.value.length, oe = a.value, re = i.scrollTop, {
|
|
2454
2454
|
itemHeight: ne,
|
|
2455
|
-
height:
|
|
2456
|
-
} = e,
|
|
2455
|
+
height: me
|
|
2456
|
+
} = e, pe = re + me;
|
|
2457
2457
|
for (let h = 0; h < te; h += 1) {
|
|
2458
2458
|
const c = oe[h], d = p(c);
|
|
2459
2459
|
let F = I.get(d);
|
|
2460
2460
|
F === void 0 && (F = ne);
|
|
2461
2461
|
const E = g + F;
|
|
2462
|
-
H === void 0 && E >=
|
|
2462
|
+
H === void 0 && E >= re && (H = h, W = g), _ === void 0 && E > pe && (_ = h), g = E;
|
|
2463
2463
|
}
|
|
2464
|
-
H === void 0 && (H = 0, W = 0, _ = Math.ceil(
|
|
2464
|
+
H === void 0 && (H = 0, W = 0, _ = Math.ceil(me / ne)), _ === void 0 && (_ = te - 1), _ = Math.min(_ + 1, te), S(D, {
|
|
2465
2465
|
scrollHeight: g,
|
|
2466
2466
|
start: H,
|
|
2467
2467
|
end: _,
|
|
@@ -2475,7 +2475,7 @@ const pl = ue({
|
|
|
2475
2475
|
let H = g;
|
|
2476
2476
|
return Number.isNaN(v.value) || (H = Math.min(H, v.value)), H = Math.max(H, 0), H;
|
|
2477
2477
|
}
|
|
2478
|
-
const $ = R(() => i.scrollTop <= 0), N = R(() => i.scrollTop >= v.value), V =
|
|
2478
|
+
const $ = R(() => i.scrollTop <= 0), N = R(() => i.scrollTop >= v.value), V = gn($, N);
|
|
2479
2479
|
function j(g) {
|
|
2480
2480
|
b(g);
|
|
2481
2481
|
}
|
|
@@ -2486,10 +2486,10 @@ const pl = ue({
|
|
|
2486
2486
|
} = g.currentTarget;
|
|
2487
2487
|
W !== i.scrollTop && b(W), (H = e.onScroll) === null || H === void 0 || H.call(e, g);
|
|
2488
2488
|
}
|
|
2489
|
-
const [Q, X] =
|
|
2489
|
+
const [Q, X] = il(t, $, N, (g) => {
|
|
2490
2490
|
b((H) => H + g);
|
|
2491
2491
|
});
|
|
2492
|
-
|
|
2492
|
+
rl(t, r, (g, H) => V(g, H) ? !1 : (Q({
|
|
2493
2493
|
preventDefault() {
|
|
2494
2494
|
},
|
|
2495
2495
|
deltaY: g
|
|
@@ -2503,17 +2503,17 @@ const pl = ue({
|
|
|
2503
2503
|
} : !1), r.value.removeEventListener("DOMMouseScroll", X), r.value.removeEventListener("MozMousePixelScroll", U));
|
|
2504
2504
|
};
|
|
2505
2505
|
Me(() => {
|
|
2506
|
-
|
|
2506
|
+
ze(() => {
|
|
2507
2507
|
r.value && (M(), r.value.addEventListener("wheel", Q, xe ? {
|
|
2508
2508
|
passive: !1
|
|
2509
2509
|
} : !1), r.value.addEventListener("DOMMouseScroll", X), r.value.addEventListener("MozMousePixelScroll", U));
|
|
2510
2510
|
});
|
|
2511
|
-
}),
|
|
2511
|
+
}), Ye(() => {
|
|
2512
2512
|
M();
|
|
2513
2513
|
});
|
|
2514
|
-
const L =
|
|
2514
|
+
const L = ol(r, a, I, e, p, O, b, () => {
|
|
2515
2515
|
var g;
|
|
2516
|
-
(g =
|
|
2516
|
+
(g = f.value) === null || g === void 0 || g.delayHidden();
|
|
2517
2517
|
});
|
|
2518
2518
|
o({
|
|
2519
2519
|
scrollTo: L
|
|
@@ -2522,9 +2522,9 @@ const pl = ue({
|
|
|
2522
2522
|
let g = null;
|
|
2523
2523
|
return e.height && (g = S({
|
|
2524
2524
|
[e.fullHeight ? "height" : "maxHeight"]: e.height + "px"
|
|
2525
|
-
},
|
|
2525
|
+
}, cl), t.value && (g.overflowY = "hidden", i.scrollMoving && (g.pointerEvents = "none"))), g;
|
|
2526
2526
|
});
|
|
2527
|
-
return
|
|
2527
|
+
return ae([() => D.start, () => D.end, a], () => {
|
|
2528
2528
|
if (e.onVisibleChange) {
|
|
2529
2529
|
const g = a.value.slice(D.start, D.end + 1);
|
|
2530
2530
|
e.onVisibleChange(g, a.value);
|
|
@@ -2543,11 +2543,11 @@ const pl = ue({
|
|
|
2543
2543
|
collectHeight: O,
|
|
2544
2544
|
setInstance: x,
|
|
2545
2545
|
sharedConfig: w,
|
|
2546
|
-
scrollBarRef:
|
|
2546
|
+
scrollBarRef: f,
|
|
2547
2547
|
fillerInnerRef: s,
|
|
2548
2548
|
delayHideScrollBar: () => {
|
|
2549
2549
|
var g;
|
|
2550
|
-
(g =
|
|
2550
|
+
(g = f.value) === null || g === void 0 || g.delayHidden();
|
|
2551
2551
|
}
|
|
2552
2552
|
};
|
|
2553
2553
|
},
|
|
@@ -2561,12 +2561,12 @@ const pl = ue({
|
|
|
2561
2561
|
data: i,
|
|
2562
2562
|
itemKey: u,
|
|
2563
2563
|
virtual: a,
|
|
2564
|
-
component:
|
|
2564
|
+
component: m = "div",
|
|
2565
2565
|
onScroll: r,
|
|
2566
2566
|
children: s = this.$slots.default,
|
|
2567
|
-
style:
|
|
2567
|
+
style: f,
|
|
2568
2568
|
class: p
|
|
2569
|
-
} = e, w =
|
|
2569
|
+
} = e, w = sl(e, ["prefixCls", "height", "itemHeight", "fullHeight", "data", "itemKey", "virtual", "component", "onScroll", "children", "style", "class"]), b = ue(n, p), {
|
|
2570
2570
|
scrollTop: x
|
|
2571
2571
|
} = this.state, {
|
|
2572
2572
|
scrollHeight: O,
|
|
@@ -2585,27 +2585,27 @@ const pl = ue({
|
|
|
2585
2585
|
delayHideScrollBar: Q
|
|
2586
2586
|
} = this;
|
|
2587
2587
|
return y("div", Y({
|
|
2588
|
-
style: S(S({},
|
|
2588
|
+
style: S(S({}, f), {
|
|
2589
2589
|
position: "relative"
|
|
2590
2590
|
}),
|
|
2591
2591
|
class: b
|
|
2592
|
-
}, w), [y(
|
|
2592
|
+
}, w), [y(m, {
|
|
2593
2593
|
class: `${n}-holder`,
|
|
2594
2594
|
style: C,
|
|
2595
2595
|
ref: "componentRef",
|
|
2596
2596
|
onScroll: v,
|
|
2597
2597
|
onMouseenter: Q
|
|
2598
2598
|
}, {
|
|
2599
|
-
default: () => [y(
|
|
2599
|
+
default: () => [y(et, {
|
|
2600
2600
|
prefixCls: n,
|
|
2601
2601
|
height: O,
|
|
2602
2602
|
offset: I,
|
|
2603
2603
|
onInnerResize: N,
|
|
2604
2604
|
ref: "fillerInnerRef"
|
|
2605
2605
|
}, {
|
|
2606
|
-
default: () =>
|
|
2606
|
+
default: () => dl(z, P, D, j, s, V)
|
|
2607
2607
|
})]
|
|
2608
|
-
}), $ && y(
|
|
2608
|
+
}), $ && y(tl, {
|
|
2609
2609
|
ref: "scrollBarRef",
|
|
2610
2610
|
prefixCls: n,
|
|
2611
2611
|
scrollTop: x,
|
|
@@ -2622,33 +2622,33 @@ const pl = ue({
|
|
|
2622
2622
|
}, null)]);
|
|
2623
2623
|
}
|
|
2624
2624
|
});
|
|
2625
|
-
function
|
|
2626
|
-
const t =
|
|
2627
|
-
return
|
|
2625
|
+
function ml(e, n, o) {
|
|
2626
|
+
const t = he(e());
|
|
2627
|
+
return ae(n, (l, i) => {
|
|
2628
2628
|
o ? o(l, i) && (t.value = e()) : t.value = e();
|
|
2629
2629
|
}), t;
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function pl() {
|
|
2632
2632
|
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
|
|
2633
2633
|
}
|
|
2634
|
-
const
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2634
|
+
const hn = Symbol("SelectContextKey");
|
|
2635
|
+
function vl(e) {
|
|
2636
|
+
return Qe(hn, e);
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2639
|
-
return
|
|
2638
|
+
function gl() {
|
|
2639
|
+
return Ue(hn, {});
|
|
2640
2640
|
}
|
|
2641
|
-
var
|
|
2641
|
+
var hl = function(e, n) {
|
|
2642
2642
|
var o = {};
|
|
2643
2643
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
2644
2644
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
2645
2645
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
2646
2646
|
return o;
|
|
2647
2647
|
};
|
|
2648
|
-
function
|
|
2648
|
+
function Yt(e) {
|
|
2649
2649
|
return typeof e == "string" || typeof e == "number";
|
|
2650
2650
|
}
|
|
2651
|
-
const
|
|
2651
|
+
const bl = ce({
|
|
2652
2652
|
compatConfig: {
|
|
2653
2653
|
MODE: 3
|
|
2654
2654
|
},
|
|
@@ -2659,13 +2659,13 @@ const Sl = ue({
|
|
|
2659
2659
|
expose: o,
|
|
2660
2660
|
slots: t
|
|
2661
2661
|
} = n;
|
|
2662
|
-
const l =
|
|
2662
|
+
const l = Go(), i = gl(), u = R(() => `${l.prefixCls}-item`), a = ml(() => i.flattenOptions, [() => l.open, () => i.flattenOptions], (v) => v[0]), m = je(), r = (v) => {
|
|
2663
2663
|
v.preventDefault();
|
|
2664
2664
|
}, s = (v) => {
|
|
2665
|
-
|
|
2665
|
+
m.current && m.current.scrollTo(typeof v == "number" ? {
|
|
2666
2666
|
index: v
|
|
2667
2667
|
} : v);
|
|
2668
|
-
},
|
|
2668
|
+
}, f = function(v) {
|
|
2669
2669
|
let T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
2670
2670
|
const $ = a.value.length;
|
|
2671
2671
|
for (let N = 0; N < $; N += 1) {
|
|
@@ -2677,8 +2677,8 @@ const Sl = ue({
|
|
|
2677
2677
|
return V;
|
|
2678
2678
|
}
|
|
2679
2679
|
return -1;
|
|
2680
|
-
}, p =
|
|
2681
|
-
activeIndex:
|
|
2680
|
+
}, p = Le({
|
|
2681
|
+
activeIndex: f(0)
|
|
2682
2682
|
}), w = function(v) {
|
|
2683
2683
|
let T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2684
2684
|
p.activeIndex = v;
|
|
@@ -2691,27 +2691,27 @@ const Sl = ue({
|
|
|
2691
2691
|
}
|
|
2692
2692
|
i.onActiveValue(N.value, v, $);
|
|
2693
2693
|
};
|
|
2694
|
-
|
|
2695
|
-
w(i.defaultActiveFirstOption !== !1 ?
|
|
2694
|
+
ae([() => a.value.length, () => l.searchValue], () => {
|
|
2695
|
+
w(i.defaultActiveFirstOption !== !1 ? f(0) : -1);
|
|
2696
2696
|
}, {
|
|
2697
2697
|
immediate: !0
|
|
2698
2698
|
});
|
|
2699
2699
|
const b = (v) => i.rawValues.has(v) && l.mode !== "combobox";
|
|
2700
|
-
|
|
2700
|
+
ae([() => l.open, () => l.searchValue], () => {
|
|
2701
2701
|
if (!l.multiple && l.open && i.rawValues.size === 1) {
|
|
2702
|
-
const v = Array.from(i.rawValues)[0], T =
|
|
2702
|
+
const v = Array.from(i.rawValues)[0], T = vt(a.value).findIndex(($) => {
|
|
2703
2703
|
let {
|
|
2704
2704
|
data: N
|
|
2705
2705
|
} = $;
|
|
2706
2706
|
return N[i.fieldNames.value] === v;
|
|
2707
2707
|
});
|
|
2708
|
-
T !== -1 && (w(T),
|
|
2708
|
+
T !== -1 && (w(T), ze(() => {
|
|
2709
2709
|
s(T);
|
|
2710
2710
|
}));
|
|
2711
2711
|
}
|
|
2712
|
-
l.open &&
|
|
2712
|
+
l.open && ze(() => {
|
|
2713
2713
|
var v;
|
|
2714
|
-
(v =
|
|
2714
|
+
(v = m.current) === null || v === void 0 || v.scrollTo(void 0);
|
|
2715
2715
|
});
|
|
2716
2716
|
}, {
|
|
2717
2717
|
immediate: !0,
|
|
@@ -2729,7 +2729,7 @@ const Sl = ue({
|
|
|
2729
2729
|
value: N
|
|
2730
2730
|
} = $, {
|
|
2731
2731
|
group: V
|
|
2732
|
-
} = T, j =
|
|
2732
|
+
} = T, j = yt($, !0), z = O(T);
|
|
2733
2733
|
return T ? y("div", Y(Y({
|
|
2734
2734
|
"aria-label": typeof z == "string" && !V ? z : null
|
|
2735
2735
|
}, j), {}, {
|
|
@@ -2751,8 +2751,8 @@ const Sl = ue({
|
|
|
2751
2751
|
case K.UP:
|
|
2752
2752
|
case K.DOWN: {
|
|
2753
2753
|
let N = 0;
|
|
2754
|
-
if (T === K.UP ? N = -1 : T === K.DOWN ? N = 1 :
|
|
2755
|
-
const V =
|
|
2754
|
+
if (T === K.UP ? N = -1 : T === K.DOWN ? N = 1 : pl() && $ && (T === K.N ? N = 1 : T === K.P && (N = -1)), N !== 0) {
|
|
2755
|
+
const V = f(p.activeIndex + N, N);
|
|
2756
2756
|
s(V), w(V, !0);
|
|
2757
2757
|
}
|
|
2758
2758
|
break;
|
|
@@ -2790,7 +2790,7 @@ const Sl = ue({
|
|
|
2790
2790
|
id: `${v}_list`,
|
|
2791
2791
|
class: `${u.value}-empty`,
|
|
2792
2792
|
onMousedown: r
|
|
2793
|
-
}, [T]) : y(
|
|
2793
|
+
}, [T]) : y(Ke, null, [y("div", {
|
|
2794
2794
|
role: "listbox",
|
|
2795
2795
|
id: `${v}_list`,
|
|
2796
2796
|
style: {
|
|
@@ -2798,9 +2798,9 @@ const Sl = ue({
|
|
|
2798
2798
|
width: 0,
|
|
2799
2799
|
overflow: "hidden"
|
|
2800
2800
|
}
|
|
2801
|
-
}, [I(U - 1), I(U), I(U + 1)]), y(
|
|
2801
|
+
}, [I(U - 1), I(U), I(U + 1)]), y(fl, {
|
|
2802
2802
|
itemKey: "key",
|
|
2803
|
-
ref:
|
|
2803
|
+
ref: m,
|
|
2804
2804
|
data: a.value,
|
|
2805
2805
|
height: z,
|
|
2806
2806
|
itemHeight: Q,
|
|
@@ -2820,40 +2820,40 @@ const Sl = ue({
|
|
|
2820
2820
|
key: te
|
|
2821
2821
|
} = W, oe = typeof L.label == "function" ? L.label() : L.label;
|
|
2822
2822
|
if (g) {
|
|
2823
|
-
const
|
|
2823
|
+
const fe = (ee = W.title) !== null && ee !== void 0 ? ee : Yt(oe) && oe;
|
|
2824
2824
|
return y("div", {
|
|
2825
|
-
class:
|
|
2826
|
-
title:
|
|
2825
|
+
class: ue(u.value, `${u.value}-group`),
|
|
2826
|
+
title: fe
|
|
2827
2827
|
}, [X ? X(W) : oe !== void 0 ? oe : te]);
|
|
2828
2828
|
}
|
|
2829
2829
|
const {
|
|
2830
|
-
disabled:
|
|
2830
|
+
disabled: re,
|
|
2831
2831
|
title: ne,
|
|
2832
|
-
children:
|
|
2833
|
-
style:
|
|
2832
|
+
children: me,
|
|
2833
|
+
style: pe,
|
|
2834
2834
|
class: h,
|
|
2835
2835
|
className: c
|
|
2836
|
-
} = W, d =
|
|
2836
|
+
} = W, d = hl(W, ["disabled", "title", "children", "style", "class", "className"]), F = Je(d, M), E = b(_), B = `${u.value}-option`, q = ue(u.value, B, h, c, {
|
|
2837
2837
|
[`${B}-grouped`]: H,
|
|
2838
|
-
[`${B}-active`]: U === k && !
|
|
2839
|
-
[`${B}-disabled`]:
|
|
2838
|
+
[`${B}-active`]: U === k && !re,
|
|
2839
|
+
[`${B}-disabled`]: re,
|
|
2840
2840
|
[`${B}-selected`]: E
|
|
2841
2841
|
}), J = O(L), le = !N || typeof N == "function" || E, Z = typeof J == "number" ? J : J || _;
|
|
2842
|
-
let
|
|
2843
|
-
return ne !== void 0 && (
|
|
2842
|
+
let se = Yt(Z) ? Z.toString() : void 0;
|
|
2843
|
+
return ne !== void 0 && (se = ne), y("div", Y(Y({}, F), {}, {
|
|
2844
2844
|
"aria-selected": E,
|
|
2845
2845
|
class: q,
|
|
2846
|
-
title:
|
|
2847
|
-
onMousemove: (
|
|
2848
|
-
d.onMousemove && d.onMousemove(
|
|
2846
|
+
title: se,
|
|
2847
|
+
onMousemove: (fe) => {
|
|
2848
|
+
d.onMousemove && d.onMousemove(fe), !(U === k || re) && w(k);
|
|
2849
2849
|
},
|
|
2850
|
-
onClick: (
|
|
2851
|
-
|
|
2850
|
+
onClick: (fe) => {
|
|
2851
|
+
re || x(_), d.onClick && d.onClick(fe);
|
|
2852
2852
|
},
|
|
2853
|
-
style:
|
|
2853
|
+
style: pe
|
|
2854
2854
|
}), [y("div", {
|
|
2855
2855
|
class: `${B}-content`
|
|
2856
|
-
}, [X ? X(W) : Z]),
|
|
2856
|
+
}, [X ? X(W) : Z]), We(N) || E, le && y(Pe, {
|
|
2857
2857
|
class: `${u.value}-option-state`,
|
|
2858
2858
|
customizeIcon: N,
|
|
2859
2859
|
customizeIconProps: {
|
|
@@ -2867,93 +2867,93 @@ const Sl = ue({
|
|
|
2867
2867
|
};
|
|
2868
2868
|
}
|
|
2869
2869
|
});
|
|
2870
|
-
var
|
|
2870
|
+
var yl = function(e, n) {
|
|
2871
2871
|
var o = {};
|
|
2872
2872
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
2873
2873
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, t = Object.getOwnPropertySymbols(e); l < t.length; l++)
|
|
2874
2874
|
n.indexOf(t[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[l]) && (o[t[l]] = e[t[l]]);
|
|
2875
2875
|
return o;
|
|
2876
2876
|
};
|
|
2877
|
-
function
|
|
2877
|
+
function Sl(e) {
|
|
2878
2878
|
const n = e, {
|
|
2879
2879
|
key: o,
|
|
2880
2880
|
children: t
|
|
2881
2881
|
} = n, l = n.props, {
|
|
2882
2882
|
value: i,
|
|
2883
2883
|
disabled: u
|
|
2884
|
-
} = l, a =
|
|
2884
|
+
} = l, a = yl(l, ["value", "disabled"]), m = t == null ? void 0 : t.default;
|
|
2885
2885
|
return S({
|
|
2886
2886
|
key: o,
|
|
2887
2887
|
value: i !== void 0 ? i : o,
|
|
2888
|
-
children:
|
|
2888
|
+
children: m,
|
|
2889
2889
|
disabled: u || u === ""
|
|
2890
2890
|
}, a);
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function Ct(e) {
|
|
2893
2893
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2894
|
-
return
|
|
2894
|
+
return nn(e).map((t, l) => {
|
|
2895
2895
|
var i;
|
|
2896
|
-
if (!
|
|
2896
|
+
if (!We(t) || !t.type)
|
|
2897
2897
|
return null;
|
|
2898
2898
|
const {
|
|
2899
2899
|
type: {
|
|
2900
2900
|
isSelectOptGroup: u
|
|
2901
2901
|
},
|
|
2902
2902
|
key: a,
|
|
2903
|
-
children:
|
|
2903
|
+
children: m,
|
|
2904
2904
|
props: r
|
|
2905
2905
|
} = t;
|
|
2906
2906
|
if (n || !u)
|
|
2907
|
-
return
|
|
2908
|
-
const s =
|
|
2907
|
+
return Sl(t);
|
|
2908
|
+
const s = m && m.default ? m.default() : void 0, f = (r == null ? void 0 : r.label) || ((i = m.label) === null || i === void 0 ? void 0 : i.call(m)) || a;
|
|
2909
2909
|
return S(S({
|
|
2910
2910
|
key: `__RC_SELECT_GRP__${a === null ? l : String(a)}__`
|
|
2911
2911
|
}, r), {
|
|
2912
|
-
label:
|
|
2913
|
-
options:
|
|
2912
|
+
label: f,
|
|
2913
|
+
options: Ct(s || [])
|
|
2914
2914
|
});
|
|
2915
2915
|
}).filter((t) => t);
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function wl(e, n, o) {
|
|
2918
2918
|
const t = G(), l = G(), i = G(), u = G([]);
|
|
2919
|
-
return
|
|
2920
|
-
e.value ? u.value =
|
|
2919
|
+
return ae([e, n], () => {
|
|
2920
|
+
e.value ? u.value = vt(e.value).slice() : u.value = Ct(n.value);
|
|
2921
2921
|
}, {
|
|
2922
2922
|
immediate: !0,
|
|
2923
2923
|
deep: !0
|
|
2924
2924
|
}), Me(() => {
|
|
2925
|
-
const a = u.value,
|
|
2926
|
-
function
|
|
2925
|
+
const a = u.value, m = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), s = o.value;
|
|
2926
|
+
function f(p) {
|
|
2927
2927
|
let w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2928
2928
|
for (let b = 0; b < p.length; b += 1) {
|
|
2929
2929
|
const x = p[b];
|
|
2930
|
-
!x[s.options] || w ? (
|
|
2930
|
+
!x[s.options] || w ? (m.set(x[s.value], x), r.set(x[s.label], x)) : f(x[s.options], !0);
|
|
2931
2931
|
}
|
|
2932
2932
|
}
|
|
2933
|
-
|
|
2933
|
+
f(a), t.value = a, l.value = m, i.value = r;
|
|
2934
2934
|
}), {
|
|
2935
2935
|
options: t,
|
|
2936
2936
|
valueOptions: l,
|
|
2937
2937
|
labelOptions: i
|
|
2938
2938
|
};
|
|
2939
2939
|
}
|
|
2940
|
-
let
|
|
2941
|
-
const
|
|
2942
|
-
function
|
|
2940
|
+
let Gt = 0;
|
|
2941
|
+
const Il = process.env.NODE_ENV !== "test" && Zn();
|
|
2942
|
+
function Cl() {
|
|
2943
2943
|
let e;
|
|
2944
|
-
return
|
|
2944
|
+
return Il ? (e = Gt, Gt += 1) : e = "TEST_OR_SSR", e;
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2947
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2948
|
-
const n = `rc_select_${
|
|
2946
|
+
function xl() {
|
|
2947
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : he("");
|
|
2948
|
+
const n = `rc_select_${Cl()}`;
|
|
2949
2949
|
return e.value || n;
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function xt(e) {
|
|
2952
2952
|
return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
2953
2953
|
}
|
|
2954
|
-
const
|
|
2954
|
+
const Ol = typeof window < "u" && window.document && window.document.documentElement;
|
|
2955
2955
|
process.env.NODE_ENV;
|
|
2956
|
-
function
|
|
2956
|
+
function $l(e) {
|
|
2957
2957
|
const {
|
|
2958
2958
|
mode: n,
|
|
2959
2959
|
options: o,
|
|
@@ -2962,59 +2962,59 @@ function El(e) {
|
|
|
2962
2962
|
allowClear: i,
|
|
2963
2963
|
placeholder: u,
|
|
2964
2964
|
getInputElement: a,
|
|
2965
|
-
showSearch:
|
|
2965
|
+
showSearch: m,
|
|
2966
2966
|
onSearch: r,
|
|
2967
2967
|
defaultOpen: s,
|
|
2968
|
-
autofocus:
|
|
2968
|
+
autofocus: f,
|
|
2969
2969
|
labelInValue: p,
|
|
2970
2970
|
value: w,
|
|
2971
2971
|
inputValue: b,
|
|
2972
2972
|
optionLabelProp: x
|
|
2973
|
-
} = e, O =
|
|
2974
|
-
if (
|
|
2975
|
-
const D =
|
|
2976
|
-
|
|
2973
|
+
} = e, O = It(n), I = m !== void 0 ? m : O || n === "combobox", P = o || Ct(t);
|
|
2974
|
+
if (Se(n !== "tags" || P.every((D) => !D.disabled), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), Se(n !== "combobox" || !x, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), Se(n === "combobox" || !l, "`backfill` only works with `combobox` mode."), Se(n === "combobox" || !a, "`getInputElement` only work with `combobox` mode."), _t(n !== "combobox" || !a || !i || !u, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), r && !I && n !== "combobox" && n !== "tags" && Se(!1, "`onSearch` should work with `showSearch` instead of use alone."), _t(!s || f, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."), w != null) {
|
|
2975
|
+
const D = xt(w);
|
|
2976
|
+
Se(!p || D.every((C) => typeof C == "object" && ("key" in C || "value" in C)), "`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"), Se(!O || Array.isArray(w), "`value` should be array when `mode` is `multiple` or `tags`");
|
|
2977
2977
|
}
|
|
2978
2978
|
if (t) {
|
|
2979
2979
|
let D = null;
|
|
2980
2980
|
t.some((C) => {
|
|
2981
2981
|
var v;
|
|
2982
|
-
if (!
|
|
2982
|
+
if (!We(C) || !C.type)
|
|
2983
2983
|
return !1;
|
|
2984
2984
|
const {
|
|
2985
2985
|
type: T
|
|
2986
2986
|
} = C;
|
|
2987
|
-
return T.isSelectOption ? !1 : T.isSelectOptGroup ? !(((v = C.children) === null || v === void 0 ? void 0 : v.default()) || []).every((V) => !
|
|
2988
|
-
}), D &&
|
|
2987
|
+
return T.isSelectOption ? !1 : T.isSelectOptGroup ? !(((v = C.children) === null || v === void 0 ? void 0 : v.default()) || []).every((V) => !We(V) || !C.type || V.type.isSelectOption ? !0 : (D = V.type, !1)) : (D = T, !0);
|
|
2988
|
+
}), D && Se(!1, `\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${D.displayName || D.name || D}\`.`), Se(b === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2992
|
-
return
|
|
2991
|
+
function st(e, n) {
|
|
2992
|
+
return xt(e).join("").toUpperCase().includes(n);
|
|
2993
2993
|
}
|
|
2994
|
-
const
|
|
2994
|
+
const Tl = (e, n, o, t, l) => R(() => {
|
|
2995
2995
|
const i = o.value, u = l == null ? void 0 : l.value, a = t == null ? void 0 : t.value;
|
|
2996
2996
|
if (!i || a === !1)
|
|
2997
2997
|
return e.value;
|
|
2998
2998
|
const {
|
|
2999
|
-
options:
|
|
2999
|
+
options: m,
|
|
3000
3000
|
label: r,
|
|
3001
3001
|
value: s
|
|
3002
|
-
} = n.value,
|
|
3002
|
+
} = n.value, f = [], p = typeof a == "function", w = i.toUpperCase(), b = p ? a : (O, I) => u ? st(I[u], w) : I[m] ? st(I[r !== "children" ? r : "label"], w) : st(I[s], w), x = p ? (O) => mt(O) : (O) => O;
|
|
3003
3003
|
return e.value.forEach((O) => {
|
|
3004
|
-
if (O[
|
|
3004
|
+
if (O[m]) {
|
|
3005
3005
|
if (b(i, x(O)))
|
|
3006
|
-
|
|
3006
|
+
f.push(O);
|
|
3007
3007
|
else {
|
|
3008
|
-
const P = O[
|
|
3009
|
-
P.length &&
|
|
3010
|
-
[
|
|
3008
|
+
const P = O[m].filter((D) => b(i, x(D)));
|
|
3009
|
+
P.length && f.push(S(S({}, O), {
|
|
3010
|
+
[m]: P
|
|
3011
3011
|
}));
|
|
3012
3012
|
}
|
|
3013
3013
|
return;
|
|
3014
3014
|
}
|
|
3015
|
-
b(i, x(O)) &&
|
|
3016
|
-
}),
|
|
3017
|
-
}),
|
|
3015
|
+
b(i, x(O)) && f.push(O);
|
|
3016
|
+
}), f;
|
|
3017
|
+
}), El = (e, n) => {
|
|
3018
3018
|
const o = G({
|
|
3019
3019
|
values: /* @__PURE__ */ new Map(),
|
|
3020
3020
|
options: /* @__PURE__ */ new Map()
|
|
@@ -3024,18 +3024,18 @@ const Ml = (e, n, o, t, l) => R(() => {
|
|
|
3024
3024
|
values: i,
|
|
3025
3025
|
options: u
|
|
3026
3026
|
} = o.value, a = e.value.map((s) => {
|
|
3027
|
-
var
|
|
3027
|
+
var f;
|
|
3028
3028
|
return s.label === void 0 ? S(S({}, s), {
|
|
3029
|
-
label: (
|
|
3029
|
+
label: (f = i.get(s.value)) === null || f === void 0 ? void 0 : f.label
|
|
3030
3030
|
}) : s;
|
|
3031
|
-
}),
|
|
3031
|
+
}), m = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
3032
3032
|
return a.forEach((s) => {
|
|
3033
|
-
|
|
3034
|
-
}), o.value.values =
|
|
3033
|
+
m.set(s.value, s), r.set(s.value, n.value.get(s.value) || u.get(s.value));
|
|
3034
|
+
}), o.value.values = m, o.value.options = r, a;
|
|
3035
3035
|
}), (i) => n.value.get(i) || o.value.options.get(i)];
|
|
3036
|
-
},
|
|
3037
|
-
function
|
|
3038
|
-
return S(S({},
|
|
3036
|
+
}, Ml = ["inputValue"];
|
|
3037
|
+
function bn() {
|
|
3038
|
+
return S(S({}, pn()), {
|
|
3039
3039
|
prefixCls: String,
|
|
3040
3040
|
id: String,
|
|
3041
3041
|
backfill: {
|
|
@@ -3093,16 +3093,16 @@ function gn() {
|
|
|
3093
3093
|
children: Array
|
|
3094
3094
|
});
|
|
3095
3095
|
}
|
|
3096
|
-
function
|
|
3096
|
+
function Pl(e) {
|
|
3097
3097
|
return !e || typeof e != "object";
|
|
3098
3098
|
}
|
|
3099
|
-
const
|
|
3099
|
+
const Rl = ce({
|
|
3100
3100
|
compatConfig: {
|
|
3101
3101
|
MODE: 3
|
|
3102
3102
|
},
|
|
3103
3103
|
name: "VcSelect",
|
|
3104
3104
|
inheritAttrs: !1,
|
|
3105
|
-
props:
|
|
3105
|
+
props: ht(bn(), {
|
|
3106
3106
|
prefixCls: "vc-select",
|
|
3107
3107
|
autoClearSearchValue: !0,
|
|
3108
3108
|
listHeight: 200,
|
|
@@ -3115,17 +3115,17 @@ const Fl = ue({
|
|
|
3115
3115
|
attrs: t,
|
|
3116
3116
|
slots: l
|
|
3117
3117
|
} = n;
|
|
3118
|
-
const i =
|
|
3118
|
+
const i = xl(Ie(e, "id")), u = R(() => It(e.mode)), a = R(() => !!(!e.options && e.children)), m = R(() => e.filterOption === void 0 && e.mode === "combobox" ? !1 : e.filterOption), r = R(() => an(e.fieldNames, a.value)), [s, f] = Bt("", {
|
|
3119
3119
|
value: R(() => e.searchValue !== void 0 ? e.searchValue : e.inputValue),
|
|
3120
3120
|
postState: (h) => h || ""
|
|
3121
|
-
}), p =
|
|
3121
|
+
}), p = wl(Ie(e, "options"), Ie(e, "children"), r), {
|
|
3122
3122
|
valueOptions: w,
|
|
3123
3123
|
labelOptions: b,
|
|
3124
3124
|
options: x
|
|
3125
|
-
} = p, O = (h) =>
|
|
3125
|
+
} = p, O = (h) => xt(h).map((d) => {
|
|
3126
3126
|
var F, E;
|
|
3127
3127
|
let B, q, J, le;
|
|
3128
|
-
|
|
3128
|
+
Pl(d) ? B = d : (J = d.key, q = d.label, B = (F = d.value) !== null && F !== void 0 ? F : J);
|
|
3129
3129
|
const Z = w.value.get(B);
|
|
3130
3130
|
return Z && (q === void 0 && (q = Z == null ? void 0 : Z[e.optionLabelProp || r.value.label]), J === void 0 && (J = (E = Z == null ? void 0 : Z.key) !== null && E !== void 0 ? E : B), le = Z == null ? void 0 : Z.disabled), {
|
|
3131
3131
|
label: q,
|
|
@@ -3134,13 +3134,13 @@ const Fl = ue({
|
|
|
3134
3134
|
disabled: le,
|
|
3135
3135
|
option: Z
|
|
3136
3136
|
};
|
|
3137
|
-
}), [I, P] =
|
|
3138
|
-
value:
|
|
3137
|
+
}), [I, P] = Bt(e.defaultValue, {
|
|
3138
|
+
value: Ie(e, "value")
|
|
3139
3139
|
}), D = R(() => {
|
|
3140
3140
|
var h;
|
|
3141
3141
|
const c = O(I.value);
|
|
3142
3142
|
return e.mode === "combobox" && !(!((h = c[0]) === null || h === void 0) && h.value) ? [] : c;
|
|
3143
|
-
}), [C, v] =
|
|
3143
|
+
}), [C, v] = El(D, w), T = R(() => {
|
|
3144
3144
|
if (!e.mode && C.value.length === 1) {
|
|
3145
3145
|
const h = C.value[0];
|
|
3146
3146
|
if (h.value === null && (h.label === null || h.label === void 0))
|
|
@@ -3157,7 +3157,7 @@ const Fl = ue({
|
|
|
3157
3157
|
var h;
|
|
3158
3158
|
if (e.mode === "combobox") {
|
|
3159
3159
|
const c = (h = C.value[0]) === null || h === void 0 ? void 0 : h.value;
|
|
3160
|
-
c != null &&
|
|
3160
|
+
c != null && f(String(c));
|
|
3161
3161
|
}
|
|
3162
3162
|
}, {
|
|
3163
3163
|
flush: "post"
|
|
@@ -3180,7 +3180,7 @@ const Fl = ue({
|
|
|
3180
3180
|
c(F) || h.push(N(F, d.label));
|
|
3181
3181
|
}), V.value = h;
|
|
3182
3182
|
});
|
|
3183
|
-
const j =
|
|
3183
|
+
const j = Tl(V, r, s, m, Ie(e, "optionFilterProp")), z = R(() => e.mode !== "tags" || !s.value || j.value.some((h) => h[e.optionFilterProp || "value"] === s.value) ? j.value : [N(s.value), ...j.value]), Q = R(() => e.filterSort ? [...z.value].sort((h, c) => e.filterSort(h, c)) : z.value), X = R(() => $o(Q.value, {
|
|
3184
3184
|
fieldNames: r.value,
|
|
3185
3185
|
childrenAsData: a.value
|
|
3186
3186
|
})), U = (h) => {
|
|
@@ -3193,7 +3193,7 @@ const Fl = ue({
|
|
|
3193
3193
|
const d = e.labelInValue ? c.map((E) => S(S({}, E), {
|
|
3194
3194
|
originLabel: E.label,
|
|
3195
3195
|
label: typeof E.label == "function" ? E.label() : E.label
|
|
3196
|
-
})) : c.map((E) => E.value), F = c.map((E) =>
|
|
3196
|
+
})) : c.map((E) => E.value), F = c.map((E) => mt(v(E.value)));
|
|
3197
3197
|
e.onChange(
|
|
3198
3198
|
// Value
|
|
3199
3199
|
u.value ? d : d[0],
|
|
@@ -3201,7 +3201,7 @@ const Fl = ue({
|
|
|
3201
3201
|
u.value ? F : F[0]
|
|
3202
3202
|
);
|
|
3203
3203
|
}
|
|
3204
|
-
}, [M, L] =
|
|
3204
|
+
}, [M, L] = zt(null), [k, ee] = zt(0), g = R(() => e.defaultActiveFirstOption !== void 0 ? e.defaultActiveFirstOption : e.mode !== "combobox"), H = function(h, c) {
|
|
3205
3205
|
let {
|
|
3206
3206
|
source: d = "keyboard"
|
|
3207
3207
|
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -3215,7 +3215,7 @@ const Fl = ue({
|
|
|
3215
3215
|
originLabel: B,
|
|
3216
3216
|
value: h,
|
|
3217
3217
|
key: (F = E == null ? void 0 : E.key) !== null && F !== void 0 ? F : h
|
|
3218
|
-
} : h,
|
|
3218
|
+
} : h, mt(E)];
|
|
3219
3219
|
};
|
|
3220
3220
|
if (c && e.onSelect) {
|
|
3221
3221
|
const [F, E] = d();
|
|
@@ -3227,23 +3227,23 @@ const Fl = ue({
|
|
|
3227
3227
|
}, _ = (h, c) => {
|
|
3228
3228
|
let d;
|
|
3229
3229
|
const F = u.value ? c.selected : !0;
|
|
3230
|
-
F ? d = u.value ? [...C.value, h] : [h] : d = C.value.filter((E) => E.value !== h), U(d), W(h, F), e.mode === "combobox" ? L("") : (!u.value || e.autoClearSearchValue) && (
|
|
3230
|
+
F ? d = u.value ? [...C.value, h] : [h] : d = C.value.filter((E) => E.value !== h), U(d), W(h, F), e.mode === "combobox" ? L("") : (!u.value || e.autoClearSearchValue) && (f(""), L(""));
|
|
3231
3231
|
}, te = (h, c) => {
|
|
3232
3232
|
U(h), (c.type === "remove" || c.type === "clear") && c.values.forEach((d) => {
|
|
3233
3233
|
W(d.value, !1);
|
|
3234
3234
|
});
|
|
3235
3235
|
}, oe = (h, c) => {
|
|
3236
3236
|
var d;
|
|
3237
|
-
if (
|
|
3237
|
+
if (f(h), L(null), c.source === "submit") {
|
|
3238
3238
|
const F = (h || "").trim();
|
|
3239
3239
|
if (F) {
|
|
3240
3240
|
const E = Array.from(/* @__PURE__ */ new Set([...$.value, F]));
|
|
3241
|
-
U(E), W(F, !0),
|
|
3241
|
+
U(E), W(F, !0), f("");
|
|
3242
3242
|
}
|
|
3243
3243
|
return;
|
|
3244
3244
|
}
|
|
3245
3245
|
c.source !== "blur" && (e.mode === "combobox" && U(h), (d = e.onSearch) === null || d === void 0 || d.call(e, h));
|
|
3246
|
-
},
|
|
3246
|
+
}, re = (h) => {
|
|
3247
3247
|
let c = h;
|
|
3248
3248
|
e.mode !== "tags" && (c = h.map((F) => {
|
|
3249
3249
|
const E = b.value.get(F);
|
|
@@ -3254,39 +3254,39 @@ const Fl = ue({
|
|
|
3254
3254
|
W(F, !0);
|
|
3255
3255
|
});
|
|
3256
3256
|
}, ne = R(() => e.virtual !== !1 && e.dropdownMatchSelectWidth !== !1);
|
|
3257
|
-
|
|
3257
|
+
vl(mn(S(S({}, p), {
|
|
3258
3258
|
flattenOptions: X,
|
|
3259
3259
|
onActiveValue: H,
|
|
3260
3260
|
defaultActiveFirstOption: g,
|
|
3261
3261
|
onSelect: _,
|
|
3262
|
-
menuItemSelectedIcon:
|
|
3262
|
+
menuItemSelectedIcon: Ie(e, "menuItemSelectedIcon"),
|
|
3263
3263
|
rawValues: $,
|
|
3264
3264
|
fieldNames: r,
|
|
3265
3265
|
virtual: ne,
|
|
3266
|
-
listHeight:
|
|
3267
|
-
listItemHeight:
|
|
3266
|
+
listHeight: Ie(e, "listHeight"),
|
|
3267
|
+
listItemHeight: Ie(e, "listItemHeight"),
|
|
3268
3268
|
childrenAsData: a
|
|
3269
3269
|
}))), process.env.NODE_ENV !== "production" && Me(() => {
|
|
3270
|
-
|
|
3270
|
+
$l(e);
|
|
3271
3271
|
}, {
|
|
3272
3272
|
flush: "post"
|
|
3273
3273
|
});
|
|
3274
|
-
const
|
|
3274
|
+
const me = he();
|
|
3275
3275
|
o({
|
|
3276
3276
|
focus() {
|
|
3277
3277
|
var h;
|
|
3278
|
-
(h =
|
|
3278
|
+
(h = me.value) === null || h === void 0 || h.focus();
|
|
3279
3279
|
},
|
|
3280
3280
|
blur() {
|
|
3281
3281
|
var h;
|
|
3282
|
-
(h =
|
|
3282
|
+
(h = me.value) === null || h === void 0 || h.blur();
|
|
3283
3283
|
},
|
|
3284
3284
|
scrollTo(h) {
|
|
3285
3285
|
var c;
|
|
3286
|
-
(c =
|
|
3286
|
+
(c = me.value) === null || c === void 0 || c.scrollTo(h);
|
|
3287
3287
|
}
|
|
3288
3288
|
});
|
|
3289
|
-
const
|
|
3289
|
+
const pe = R(() => Je(e, [
|
|
3290
3290
|
"id",
|
|
3291
3291
|
"mode",
|
|
3292
3292
|
"prefixCls",
|
|
@@ -3319,54 +3319,54 @@ const Fl = ue({
|
|
|
3319
3319
|
"labelInValue",
|
|
3320
3320
|
"onChange"
|
|
3321
3321
|
]));
|
|
3322
|
-
return () => y(
|
|
3322
|
+
return () => y(Zo, Y(Y(Y({}, pe.value), t), {}, {
|
|
3323
3323
|
id: i,
|
|
3324
3324
|
prefixCls: e.prefixCls,
|
|
3325
|
-
ref:
|
|
3326
|
-
omitDomProps:
|
|
3325
|
+
ref: me,
|
|
3326
|
+
omitDomProps: Ml,
|
|
3327
3327
|
mode: e.mode,
|
|
3328
3328
|
displayValues: T.value,
|
|
3329
3329
|
onDisplayValuesChange: te,
|
|
3330
3330
|
searchValue: s.value,
|
|
3331
3331
|
onSearch: oe,
|
|
3332
|
-
onSearchSplit:
|
|
3332
|
+
onSearchSplit: re,
|
|
3333
3333
|
dropdownMatchSelectWidth: e.dropdownMatchSelectWidth,
|
|
3334
|
-
OptionList:
|
|
3334
|
+
OptionList: bl,
|
|
3335
3335
|
emptyOptions: !X.value.length,
|
|
3336
3336
|
activeValue: M.value,
|
|
3337
3337
|
activeDescendantId: `${i}_list_${k.value}`
|
|
3338
3338
|
}), l);
|
|
3339
3339
|
}
|
|
3340
|
-
}),
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
const
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
var
|
|
3347
|
-
function
|
|
3340
|
+
}), Ot = () => null;
|
|
3341
|
+
Ot.isSelectOption = !0;
|
|
3342
|
+
Ot.displayName = "ASelectOption";
|
|
3343
|
+
const $t = () => null;
|
|
3344
|
+
$t.isSelectOptGroup = !0;
|
|
3345
|
+
$t.displayName = "ASelectOptGroup";
|
|
3346
|
+
var Dl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" };
|
|
3347
|
+
function Xt(e) {
|
|
3348
3348
|
for (var n = 1; n < arguments.length; n++) {
|
|
3349
3349
|
var o = arguments[n] != null ? Object(arguments[n]) : {}, t = Object.keys(o);
|
|
3350
3350
|
typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(o).filter(function(l) {
|
|
3351
3351
|
return Object.getOwnPropertyDescriptor(o, l).enumerable;
|
|
3352
3352
|
}))), t.forEach(function(l) {
|
|
3353
|
-
|
|
3353
|
+
Fl(e, l, o[l]);
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
3356
|
return e;
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function Fl(e, n, o) {
|
|
3359
3359
|
return n in e ? Object.defineProperty(e, n, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = o, e;
|
|
3360
3360
|
}
|
|
3361
|
-
var
|
|
3362
|
-
var t =
|
|
3363
|
-
return y(
|
|
3364
|
-
icon:
|
|
3361
|
+
var Tt = function(n, o) {
|
|
3362
|
+
var t = Xt({}, n, o.attrs);
|
|
3363
|
+
return y(eo, Xt({}, t, {
|
|
3364
|
+
icon: Dl
|
|
3365
3365
|
}), null);
|
|
3366
3366
|
};
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
function
|
|
3367
|
+
Tt.displayName = "DownOutlined";
|
|
3368
|
+
Tt.inheritAttrs = !1;
|
|
3369
|
+
function Nl(e) {
|
|
3370
3370
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3371
3371
|
const {
|
|
3372
3372
|
loading: o,
|
|
@@ -3375,12 +3375,12 @@ function Vl(e) {
|
|
|
3375
3375
|
hasFeedback: i,
|
|
3376
3376
|
feedbackIcon: u,
|
|
3377
3377
|
showArrow: a
|
|
3378
|
-
} = e,
|
|
3378
|
+
} = e, m = e.suffixIcon || n.suffixIcon && n.suffixIcon(), r = e.clearIcon || n.clearIcon && n.clearIcon(), s = e.menuItemSelectedIcon || n.menuItemSelectedIcon && n.menuItemSelectedIcon(), f = e.removeIcon || n.removeIcon && n.removeIcon(), p = r ?? y(to, null, null), w = (I) => y(Ke, null, [a !== !1 && I, i && u]);
|
|
3379
3379
|
let b = null;
|
|
3380
|
-
if (
|
|
3381
|
-
b = w(
|
|
3380
|
+
if (m !== void 0)
|
|
3381
|
+
b = w(m);
|
|
3382
3382
|
else if (o)
|
|
3383
|
-
b = w(y(
|
|
3383
|
+
b = w(y(no, {
|
|
3384
3384
|
spin: !0
|
|
3385
3385
|
}, null));
|
|
3386
3386
|
else {
|
|
@@ -3390,24 +3390,24 @@ function Vl(e) {
|
|
|
3390
3390
|
open: D,
|
|
3391
3391
|
showSearch: C
|
|
3392
3392
|
} = P;
|
|
3393
|
-
return w(D && C ? y(
|
|
3393
|
+
return w(D && C ? y(Co, {
|
|
3394
3394
|
class: I
|
|
3395
|
-
}, null) : y(
|
|
3395
|
+
}, null) : y(Tt, {
|
|
3396
3396
|
class: I
|
|
3397
3397
|
}, null));
|
|
3398
3398
|
};
|
|
3399
3399
|
}
|
|
3400
3400
|
let x = null;
|
|
3401
|
-
s !== void 0 ? x = s : t ? x = y(
|
|
3401
|
+
s !== void 0 ? x = s : t ? x = y(oo, null, null) : x = null;
|
|
3402
3402
|
let O = null;
|
|
3403
|
-
return
|
|
3403
|
+
return f !== void 0 ? O = f : O = y(lo, null, null), {
|
|
3404
3404
|
clearIcon: p,
|
|
3405
3405
|
suffixIcon: b,
|
|
3406
3406
|
itemIcon: x,
|
|
3407
3407
|
removeIcon: O
|
|
3408
3408
|
};
|
|
3409
3409
|
}
|
|
3410
|
-
const
|
|
3410
|
+
const Al = new de("antMoveDownIn", {
|
|
3411
3411
|
"0%": {
|
|
3412
3412
|
transform: "translate3d(0, 100%, 0)",
|
|
3413
3413
|
transformOrigin: "0 0",
|
|
@@ -3418,7 +3418,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3418
3418
|
transformOrigin: "0 0",
|
|
3419
3419
|
opacity: 1
|
|
3420
3420
|
}
|
|
3421
|
-
}),
|
|
3421
|
+
}), Vl = new de("antMoveDownOut", {
|
|
3422
3422
|
"0%": {
|
|
3423
3423
|
transform: "translate3d(0, 0, 0)",
|
|
3424
3424
|
transformOrigin: "0 0",
|
|
@@ -3429,7 +3429,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3429
3429
|
transformOrigin: "0 0",
|
|
3430
3430
|
opacity: 0
|
|
3431
3431
|
}
|
|
3432
|
-
}),
|
|
3432
|
+
}), Ll = new de("antMoveLeftIn", {
|
|
3433
3433
|
"0%": {
|
|
3434
3434
|
transform: "translate3d(-100%, 0, 0)",
|
|
3435
3435
|
transformOrigin: "0 0",
|
|
@@ -3440,7 +3440,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3440
3440
|
transformOrigin: "0 0",
|
|
3441
3441
|
opacity: 1
|
|
3442
3442
|
}
|
|
3443
|
-
}),
|
|
3443
|
+
}), Hl = new de("antMoveLeftOut", {
|
|
3444
3444
|
"0%": {
|
|
3445
3445
|
transform: "translate3d(0, 0, 0)",
|
|
3446
3446
|
transformOrigin: "0 0",
|
|
@@ -3451,7 +3451,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3451
3451
|
transformOrigin: "0 0",
|
|
3452
3452
|
opacity: 0
|
|
3453
3453
|
}
|
|
3454
|
-
}),
|
|
3454
|
+
}), _l = new de("antMoveRightIn", {
|
|
3455
3455
|
"0%": {
|
|
3456
3456
|
transform: "translate3d(100%, 0, 0)",
|
|
3457
3457
|
transformOrigin: "0 0",
|
|
@@ -3462,7 +3462,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3462
3462
|
transformOrigin: "0 0",
|
|
3463
3463
|
opacity: 1
|
|
3464
3464
|
}
|
|
3465
|
-
}),
|
|
3465
|
+
}), Bl = new de("antMoveRightOut", {
|
|
3466
3466
|
"0%": {
|
|
3467
3467
|
transform: "translate3d(0, 0, 0)",
|
|
3468
3468
|
transformOrigin: "0 0",
|
|
@@ -3473,7 +3473,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3473
3473
|
transformOrigin: "0 0",
|
|
3474
3474
|
opacity: 0
|
|
3475
3475
|
}
|
|
3476
|
-
}),
|
|
3476
|
+
}), zl = new de("antMoveUpIn", {
|
|
3477
3477
|
"0%": {
|
|
3478
3478
|
transform: "translate3d(0, -100%, 0)",
|
|
3479
3479
|
transformOrigin: "0 0",
|
|
@@ -3484,7 +3484,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3484
3484
|
transformOrigin: "0 0",
|
|
3485
3485
|
opacity: 1
|
|
3486
3486
|
}
|
|
3487
|
-
}),
|
|
3487
|
+
}), Kl = new de("antMoveUpOut", {
|
|
3488
3488
|
"0%": {
|
|
3489
3489
|
transform: "translate3d(0, 0, 0)",
|
|
3490
3490
|
transformOrigin: "0 0",
|
|
@@ -3495,31 +3495,31 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3495
3495
|
transformOrigin: "0 0",
|
|
3496
3496
|
opacity: 0
|
|
3497
3497
|
}
|
|
3498
|
-
}),
|
|
3498
|
+
}), Wl = {
|
|
3499
3499
|
"move-up": {
|
|
3500
|
-
inKeyframes:
|
|
3501
|
-
outKeyframes:
|
|
3500
|
+
inKeyframes: zl,
|
|
3501
|
+
outKeyframes: Kl
|
|
3502
3502
|
},
|
|
3503
3503
|
"move-down": {
|
|
3504
|
+
inKeyframes: Al,
|
|
3505
|
+
outKeyframes: Vl
|
|
3506
|
+
},
|
|
3507
|
+
"move-left": {
|
|
3504
3508
|
inKeyframes: Ll,
|
|
3505
3509
|
outKeyframes: Hl
|
|
3506
3510
|
},
|
|
3507
|
-
"move-
|
|
3511
|
+
"move-right": {
|
|
3508
3512
|
inKeyframes: _l,
|
|
3509
3513
|
outKeyframes: Bl
|
|
3510
|
-
},
|
|
3511
|
-
"move-right": {
|
|
3512
|
-
inKeyframes: zl,
|
|
3513
|
-
outKeyframes: Kl
|
|
3514
3514
|
}
|
|
3515
|
-
},
|
|
3515
|
+
}, kt = (e, n) => {
|
|
3516
3516
|
const {
|
|
3517
3517
|
antCls: o
|
|
3518
3518
|
} = e, t = `${o}-${n}`, {
|
|
3519
3519
|
inKeyframes: l,
|
|
3520
3520
|
outKeyframes: i
|
|
3521
|
-
} =
|
|
3522
|
-
return [
|
|
3521
|
+
} = Wl[n];
|
|
3522
|
+
return [on(t, l, i, e.motionDurationMid), {
|
|
3523
3523
|
[`
|
|
3524
3524
|
${t}-enter,
|
|
3525
3525
|
${t}-appear
|
|
@@ -3531,7 +3531,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3531
3531
|
animationTimingFunction: e.motionEaseInOutCirc
|
|
3532
3532
|
}
|
|
3533
3533
|
}];
|
|
3534
|
-
},
|
|
3534
|
+
}, yn = new de("antSlideUpIn", {
|
|
3535
3535
|
"0%": {
|
|
3536
3536
|
transform: "scaleY(0.8)",
|
|
3537
3537
|
transformOrigin: "0% 0%",
|
|
@@ -3542,7 +3542,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3542
3542
|
transformOrigin: "0% 0%",
|
|
3543
3543
|
opacity: 1
|
|
3544
3544
|
}
|
|
3545
|
-
}),
|
|
3545
|
+
}), Sn = new de("antSlideUpOut", {
|
|
3546
3546
|
"0%": {
|
|
3547
3547
|
transform: "scaleY(1)",
|
|
3548
3548
|
transformOrigin: "0% 0%",
|
|
@@ -3553,7 +3553,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3553
3553
|
transformOrigin: "0% 0%",
|
|
3554
3554
|
opacity: 0
|
|
3555
3555
|
}
|
|
3556
|
-
}),
|
|
3556
|
+
}), wn = new de("antSlideDownIn", {
|
|
3557
3557
|
"0%": {
|
|
3558
3558
|
transform: "scaleY(0.8)",
|
|
3559
3559
|
transformOrigin: "100% 100%",
|
|
@@ -3564,7 +3564,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3564
3564
|
transformOrigin: "100% 100%",
|
|
3565
3565
|
opacity: 1
|
|
3566
3566
|
}
|
|
3567
|
-
}),
|
|
3567
|
+
}), In = new de("antSlideDownOut", {
|
|
3568
3568
|
"0%": {
|
|
3569
3569
|
transform: "scaleY(1)",
|
|
3570
3570
|
transformOrigin: "100% 100%",
|
|
@@ -3575,7 +3575,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3575
3575
|
transformOrigin: "100% 100%",
|
|
3576
3576
|
opacity: 0
|
|
3577
3577
|
}
|
|
3578
|
-
}),
|
|
3578
|
+
}), jl = new de("antSlideLeftIn", {
|
|
3579
3579
|
"0%": {
|
|
3580
3580
|
transform: "scaleX(0.8)",
|
|
3581
3581
|
transformOrigin: "0% 0%",
|
|
@@ -3586,7 +3586,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3586
3586
|
transformOrigin: "0% 0%",
|
|
3587
3587
|
opacity: 1
|
|
3588
3588
|
}
|
|
3589
|
-
}),
|
|
3589
|
+
}), Ul = new de("antSlideLeftOut", {
|
|
3590
3590
|
"0%": {
|
|
3591
3591
|
transform: "scaleX(1)",
|
|
3592
3592
|
transformOrigin: "0% 0%",
|
|
@@ -3597,7 +3597,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3597
3597
|
transformOrigin: "0% 0%",
|
|
3598
3598
|
opacity: 0
|
|
3599
3599
|
}
|
|
3600
|
-
}),
|
|
3600
|
+
}), Yl = new de("antSlideRightIn", {
|
|
3601
3601
|
"0%": {
|
|
3602
3602
|
transform: "scaleX(0.8)",
|
|
3603
3603
|
transformOrigin: "100% 0%",
|
|
@@ -3608,7 +3608,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3608
3608
|
transformOrigin: "100% 0%",
|
|
3609
3609
|
opacity: 1
|
|
3610
3610
|
}
|
|
3611
|
-
}),
|
|
3611
|
+
}), Gl = new de("antSlideRightOut", {
|
|
3612
3612
|
"0%": {
|
|
3613
3613
|
transform: "scaleX(1)",
|
|
3614
3614
|
transformOrigin: "100% 0%",
|
|
@@ -3619,31 +3619,31 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3619
3619
|
transformOrigin: "100% 0%",
|
|
3620
3620
|
opacity: 0
|
|
3621
3621
|
}
|
|
3622
|
-
}),
|
|
3622
|
+
}), Xl = {
|
|
3623
3623
|
"slide-up": {
|
|
3624
|
-
inKeyframes: hn,
|
|
3625
|
-
outKeyframes: bn
|
|
3626
|
-
},
|
|
3627
|
-
"slide-down": {
|
|
3628
3624
|
inKeyframes: yn,
|
|
3629
3625
|
outKeyframes: Sn
|
|
3630
3626
|
},
|
|
3627
|
+
"slide-down": {
|
|
3628
|
+
inKeyframes: wn,
|
|
3629
|
+
outKeyframes: In
|
|
3630
|
+
},
|
|
3631
3631
|
"slide-left": {
|
|
3632
|
-
inKeyframes:
|
|
3633
|
-
outKeyframes:
|
|
3632
|
+
inKeyframes: jl,
|
|
3633
|
+
outKeyframes: Ul
|
|
3634
3634
|
},
|
|
3635
3635
|
"slide-right": {
|
|
3636
|
-
inKeyframes:
|
|
3637
|
-
outKeyframes:
|
|
3636
|
+
inKeyframes: Yl,
|
|
3637
|
+
outKeyframes: Gl
|
|
3638
3638
|
}
|
|
3639
|
-
},
|
|
3639
|
+
}, qt = (e, n) => {
|
|
3640
3640
|
const {
|
|
3641
3641
|
antCls: o
|
|
3642
3642
|
} = e, t = `${o}-${n}`, {
|
|
3643
3643
|
inKeyframes: l,
|
|
3644
3644
|
outKeyframes: i
|
|
3645
|
-
} =
|
|
3646
|
-
return [
|
|
3645
|
+
} = Xl[n];
|
|
3646
|
+
return [on(t, l, i, e.motionDurationMid), {
|
|
3647
3647
|
[`
|
|
3648
3648
|
${t}-enter,
|
|
3649
3649
|
${t}-appear
|
|
@@ -3657,7 +3657,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3657
3657
|
animationTimingFunction: e.motionEaseInQuint
|
|
3658
3658
|
}
|
|
3659
3659
|
}];
|
|
3660
|
-
},
|
|
3660
|
+
}, Qt = (e) => {
|
|
3661
3661
|
const {
|
|
3662
3662
|
controlPaddingHorizontal: n
|
|
3663
3663
|
} = e;
|
|
@@ -3672,14 +3672,14 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3672
3672
|
lineHeight: e.lineHeight,
|
|
3673
3673
|
boxSizing: "border-box"
|
|
3674
3674
|
};
|
|
3675
|
-
},
|
|
3675
|
+
}, kl = (e) => {
|
|
3676
3676
|
const {
|
|
3677
3677
|
antCls: n,
|
|
3678
3678
|
componentCls: o
|
|
3679
3679
|
} = e, t = `${o}-item`;
|
|
3680
3680
|
return [
|
|
3681
3681
|
{
|
|
3682
|
-
[`${o}-dropdown`]: S(S({},
|
|
3682
|
+
[`${o}-dropdown`]: S(S({}, bt(e)), {
|
|
3683
3683
|
position: "absolute",
|
|
3684
3684
|
top: -9999,
|
|
3685
3685
|
zIndex: e.zIndexPopup,
|
|
@@ -3699,19 +3699,19 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3699
3699
|
&${n}-slide-up-enter${n}-slide-up-enter-active${o}-dropdown-placement-bottomLeft,
|
|
3700
3700
|
&${n}-slide-up-appear${n}-slide-up-appear-active${o}-dropdown-placement-bottomLeft
|
|
3701
3701
|
`]: {
|
|
3702
|
-
animationName:
|
|
3702
|
+
animationName: yn
|
|
3703
3703
|
},
|
|
3704
3704
|
[`
|
|
3705
3705
|
&${n}-slide-up-enter${n}-slide-up-enter-active${o}-dropdown-placement-topLeft,
|
|
3706
3706
|
&${n}-slide-up-appear${n}-slide-up-appear-active${o}-dropdown-placement-topLeft
|
|
3707
3707
|
`]: {
|
|
3708
|
-
animationName:
|
|
3708
|
+
animationName: wn
|
|
3709
3709
|
},
|
|
3710
3710
|
[`&${n}-slide-up-leave${n}-slide-up-leave-active${o}-dropdown-placement-bottomLeft`]: {
|
|
3711
|
-
animationName:
|
|
3711
|
+
animationName: Sn
|
|
3712
3712
|
},
|
|
3713
3713
|
[`&${n}-slide-up-leave${n}-slide-up-leave-active${o}-dropdown-placement-topLeft`]: {
|
|
3714
|
-
animationName:
|
|
3714
|
+
animationName: In
|
|
3715
3715
|
},
|
|
3716
3716
|
"&-hidden": {
|
|
3717
3717
|
display: "none"
|
|
@@ -3720,10 +3720,10 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3720
3720
|
color: e.colorTextDisabled
|
|
3721
3721
|
},
|
|
3722
3722
|
// ========================= Options =========================
|
|
3723
|
-
[`${t}-empty`]: S(S({},
|
|
3723
|
+
[`${t}-empty`]: S(S({}, Qt(e)), {
|
|
3724
3724
|
color: e.colorTextDisabled
|
|
3725
3725
|
}),
|
|
3726
|
-
[`${t}`]: S(S({},
|
|
3726
|
+
[`${t}`]: S(S({}, Qt(e)), {
|
|
3727
3727
|
cursor: "pointer",
|
|
3728
3728
|
transition: `background ${e.motionDurationSlow} ease`,
|
|
3729
3729
|
borderRadius: e.borderRadiusSM,
|
|
@@ -3738,7 +3738,7 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3738
3738
|
display: "flex",
|
|
3739
3739
|
"&-content": S({
|
|
3740
3740
|
flex: "auto"
|
|
3741
|
-
},
|
|
3741
|
+
}, ft),
|
|
3742
3742
|
"&-state": {
|
|
3743
3743
|
flex: "none"
|
|
3744
3744
|
},
|
|
@@ -3772,13 +3772,13 @@ const Ll = new ce("antMoveDownIn", {
|
|
|
3772
3772
|
})
|
|
3773
3773
|
},
|
|
3774
3774
|
// Follow code may reuse in other components
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3775
|
+
qt(e, "slide-up"),
|
|
3776
|
+
qt(e, "slide-down"),
|
|
3777
|
+
kt(e, "move-up"),
|
|
3778
|
+
kt(e, "move-down")
|
|
3779
3779
|
];
|
|
3780
|
-
},
|
|
3781
|
-
function
|
|
3780
|
+
}, Ve = 2;
|
|
3781
|
+
function Cn(e) {
|
|
3782
3782
|
let {
|
|
3783
3783
|
controlHeightSM: n,
|
|
3784
3784
|
controlHeight: o,
|
|
@@ -3787,11 +3787,11 @@ function wn(e) {
|
|
|
3787
3787
|
const l = (o - n) / 2 - t, i = Math.ceil(l / 2);
|
|
3788
3788
|
return [l, i];
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3790
|
+
function ut(e, n) {
|
|
3791
3791
|
const {
|
|
3792
3792
|
componentCls: o,
|
|
3793
3793
|
iconCls: t
|
|
3794
|
-
} = e, l = `${o}-selection-overflow`, i = e.controlHeightSM, [u] =
|
|
3794
|
+
} = e, l = `${o}-selection-overflow`, i = e.controlHeightSM, [u] = Cn(e), a = n ? `${o}-${n}` : "";
|
|
3795
3795
|
return {
|
|
3796
3796
|
[`${o}-multiple${a}`]: {
|
|
3797
3797
|
fontSize: e.fontSize,
|
|
@@ -3819,7 +3819,7 @@ function st(e, n) {
|
|
|
3819
3819
|
flexWrap: "wrap",
|
|
3820
3820
|
alignItems: "center",
|
|
3821
3821
|
// Multiple is little different that horizontal is follow the vertical
|
|
3822
|
-
padding: `${u -
|
|
3822
|
+
padding: `${u - Ve}px ${Ve * 2}px`,
|
|
3823
3823
|
borderRadius: e.borderRadius,
|
|
3824
3824
|
[`${o}-show-search&`]: {
|
|
3825
3825
|
cursor: "text"
|
|
@@ -3831,7 +3831,7 @@ function st(e, n) {
|
|
|
3831
3831
|
"&:after": {
|
|
3832
3832
|
display: "inline-block",
|
|
3833
3833
|
width: 0,
|
|
3834
|
-
margin: `${
|
|
3834
|
+
margin: `${Ve}px 0`,
|
|
3835
3835
|
lineHeight: `${i}px`,
|
|
3836
3836
|
content: '"\\a0"'
|
|
3837
3837
|
}
|
|
@@ -3850,8 +3850,8 @@ function st(e, n) {
|
|
|
3850
3850
|
boxSizing: "border-box",
|
|
3851
3851
|
maxWidth: "100%",
|
|
3852
3852
|
height: i,
|
|
3853
|
-
marginTop:
|
|
3854
|
-
marginBottom:
|
|
3853
|
+
marginTop: Ve,
|
|
3854
|
+
marginBottom: Ve,
|
|
3855
3855
|
lineHeight: `${i - e.lineWidth * 2}px`,
|
|
3856
3856
|
background: e.colorFillSecondary,
|
|
3857
3857
|
border: `${e.lineWidth}px solid ${e.colorSplit}`,
|
|
@@ -3859,7 +3859,7 @@ function st(e, n) {
|
|
|
3859
3859
|
cursor: "default",
|
|
3860
3860
|
transition: `font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,
|
|
3861
3861
|
userSelect: "none",
|
|
3862
|
-
marginInlineEnd:
|
|
3862
|
+
marginInlineEnd: Ve * 2,
|
|
3863
3863
|
paddingInlineStart: e.paddingXS,
|
|
3864
3864
|
paddingInlineEnd: e.paddingXS / 2,
|
|
3865
3865
|
[`${o}-disabled&`]: {
|
|
@@ -3875,7 +3875,7 @@ function st(e, n) {
|
|
|
3875
3875
|
whiteSpace: "pre",
|
|
3876
3876
|
textOverflow: "ellipsis"
|
|
3877
3877
|
},
|
|
3878
|
-
"&-remove": S(S({},
|
|
3878
|
+
"&-remove": S(S({}, ln()), {
|
|
3879
3879
|
display: "inline-block",
|
|
3880
3880
|
color: e.colorIcon,
|
|
3881
3881
|
fontWeight: "bold",
|
|
@@ -3934,7 +3934,7 @@ function st(e, n) {
|
|
|
3934
3934
|
}
|
|
3935
3935
|
};
|
|
3936
3936
|
}
|
|
3937
|
-
function
|
|
3937
|
+
function ql(e) {
|
|
3938
3938
|
const {
|
|
3939
3939
|
componentCls: n
|
|
3940
3940
|
} = e, o = $e(e, {
|
|
@@ -3942,12 +3942,12 @@ function Jl(e) {
|
|
|
3942
3942
|
controlHeightSM: e.controlHeightXS,
|
|
3943
3943
|
borderRadius: e.borderRadiusSM,
|
|
3944
3944
|
borderRadiusSM: e.borderRadiusXS
|
|
3945
|
-
}), [, t] =
|
|
3945
|
+
}), [, t] = Cn(e);
|
|
3946
3946
|
return [
|
|
3947
|
-
|
|
3947
|
+
ut(e),
|
|
3948
3948
|
// ======================== Small ========================
|
|
3949
3949
|
// Shared
|
|
3950
|
-
|
|
3950
|
+
ut(o, "sm"),
|
|
3951
3951
|
// Padding
|
|
3952
3952
|
{
|
|
3953
3953
|
[`${n}-multiple${n}-sm`]: {
|
|
@@ -3963,7 +3963,7 @@ function Jl(e) {
|
|
|
3963
3963
|
},
|
|
3964
3964
|
// ======================== Large ========================
|
|
3965
3965
|
// Shared
|
|
3966
|
-
|
|
3966
|
+
ut($e(e, {
|
|
3967
3967
|
fontSize: e.fontSizeLG,
|
|
3968
3968
|
controlHeight: e.controlHeightLG,
|
|
3969
3969
|
controlHeightSM: e.controlHeight,
|
|
@@ -3972,7 +3972,7 @@ function Jl(e) {
|
|
|
3972
3972
|
}), "lg")
|
|
3973
3973
|
];
|
|
3974
3974
|
}
|
|
3975
|
-
function
|
|
3975
|
+
function ct(e, n) {
|
|
3976
3976
|
const {
|
|
3977
3977
|
componentCls: o,
|
|
3978
3978
|
inputPaddingHorizontalBase: t,
|
|
@@ -3982,7 +3982,7 @@ function ut(e, n) {
|
|
|
3982
3982
|
[`${o}-single${a}`]: {
|
|
3983
3983
|
fontSize: e.fontSize,
|
|
3984
3984
|
// ========================= Selector =========================
|
|
3985
|
-
[`${o}-selector`]: S(S({},
|
|
3985
|
+
[`${o}-selector`]: S(S({}, bt(e)), {
|
|
3986
3986
|
display: "flex",
|
|
3987
3987
|
borderRadius: l,
|
|
3988
3988
|
[`${o}-selection-search`]: {
|
|
@@ -4078,15 +4078,15 @@ function ut(e, n) {
|
|
|
4078
4078
|
}
|
|
4079
4079
|
};
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4081
|
+
function Ql(e) {
|
|
4082
4082
|
const {
|
|
4083
4083
|
componentCls: n
|
|
4084
4084
|
} = e, o = e.controlPaddingHorizontalSM - e.lineWidth;
|
|
4085
4085
|
return [
|
|
4086
|
-
|
|
4086
|
+
ct(e),
|
|
4087
4087
|
// ======================== Small ========================
|
|
4088
4088
|
// Shared
|
|
4089
|
-
|
|
4089
|
+
ct($e(e, {
|
|
4090
4090
|
controlHeight: e.controlHeightSM,
|
|
4091
4091
|
borderRadius: e.borderRadiusSM
|
|
4092
4092
|
}), "sm"),
|
|
@@ -4116,14 +4116,14 @@ function Zl(e) {
|
|
|
4116
4116
|
},
|
|
4117
4117
|
// ======================== Large ========================
|
|
4118
4118
|
// Shared
|
|
4119
|
-
|
|
4119
|
+
ct($e(e, {
|
|
4120
4120
|
controlHeight: e.controlHeightLG,
|
|
4121
4121
|
fontSize: e.fontSizeLG,
|
|
4122
4122
|
borderRadius: e.borderRadiusLG
|
|
4123
4123
|
}), "lg")
|
|
4124
4124
|
];
|
|
4125
4125
|
}
|
|
4126
|
-
const
|
|
4126
|
+
const Jl = (e) => {
|
|
4127
4127
|
const {
|
|
4128
4128
|
componentCls: n
|
|
4129
4129
|
} = e;
|
|
@@ -4154,7 +4154,7 @@ const ei = (e) => {
|
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
4156
|
};
|
|
4157
|
-
},
|
|
4157
|
+
}, dt = function(e, n) {
|
|
4158
4158
|
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
4159
4159
|
const {
|
|
4160
4160
|
componentCls: t,
|
|
@@ -4182,7 +4182,7 @@ const ei = (e) => {
|
|
|
4182
4182
|
})
|
|
4183
4183
|
}
|
|
4184
4184
|
};
|
|
4185
|
-
},
|
|
4185
|
+
}, Zl = (e) => {
|
|
4186
4186
|
const {
|
|
4187
4187
|
componentCls: n
|
|
4188
4188
|
} = e;
|
|
@@ -4200,18 +4200,18 @@ const ei = (e) => {
|
|
|
4200
4200
|
}
|
|
4201
4201
|
}
|
|
4202
4202
|
};
|
|
4203
|
-
},
|
|
4203
|
+
}, ei = (e) => {
|
|
4204
4204
|
const {
|
|
4205
4205
|
componentCls: n,
|
|
4206
4206
|
inputPaddingHorizontalBase: o,
|
|
4207
4207
|
iconCls: t
|
|
4208
4208
|
} = e;
|
|
4209
4209
|
return {
|
|
4210
|
-
[n]: S(S({},
|
|
4210
|
+
[n]: S(S({}, bt(e)), {
|
|
4211
4211
|
position: "relative",
|
|
4212
4212
|
display: "inline-block",
|
|
4213
4213
|
cursor: "pointer",
|
|
4214
|
-
[`&:not(${n}-customize-input) ${n}-selector`]: S(S({},
|
|
4214
|
+
[`&:not(${n}-customize-input) ${n}-selector`]: S(S({}, Jl(e)), Zl(e)),
|
|
4215
4215
|
// [`&:not(&-disabled):hover ${selectCls}-selector`]: {
|
|
4216
4216
|
// ...genHoverStyle(token),
|
|
4217
4217
|
// },
|
|
@@ -4219,15 +4219,15 @@ const ei = (e) => {
|
|
|
4219
4219
|
[`${n}-selection-item`]: S({
|
|
4220
4220
|
flex: 1,
|
|
4221
4221
|
fontWeight: "normal"
|
|
4222
|
-
},
|
|
4222
|
+
}, ft),
|
|
4223
4223
|
// ======================= Placeholder =======================
|
|
4224
|
-
[`${n}-selection-placeholder`]: S(S({},
|
|
4224
|
+
[`${n}-selection-placeholder`]: S(S({}, ft), {
|
|
4225
4225
|
flex: 1,
|
|
4226
4226
|
color: e.colorTextPlaceholder,
|
|
4227
4227
|
pointerEvents: "none"
|
|
4228
4228
|
}),
|
|
4229
4229
|
// ========================== Arrow ==========================
|
|
4230
|
-
[`${n}-arrow`]: S(S({},
|
|
4230
|
+
[`${n}-arrow`]: S(S({}, ln()), {
|
|
4231
4231
|
position: "absolute",
|
|
4232
4232
|
top: "50%",
|
|
4233
4233
|
insetInlineStart: "auto",
|
|
@@ -4301,7 +4301,7 @@ const ei = (e) => {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
}
|
|
4303
4303
|
};
|
|
4304
|
-
},
|
|
4304
|
+
}, ti = (e) => {
|
|
4305
4305
|
const {
|
|
4306
4306
|
componentCls: n
|
|
4307
4307
|
} = e;
|
|
@@ -4324,13 +4324,13 @@ const ei = (e) => {
|
|
|
4324
4324
|
// == LTR ==
|
|
4325
4325
|
// =====================================================
|
|
4326
4326
|
// Base
|
|
4327
|
-
|
|
4327
|
+
ei(e),
|
|
4328
4328
|
// Single
|
|
4329
|
-
|
|
4329
|
+
Ql(e),
|
|
4330
4330
|
// Multiple
|
|
4331
|
-
|
|
4331
|
+
ql(e),
|
|
4332
4332
|
// Dropdown
|
|
4333
|
-
|
|
4333
|
+
kl(e),
|
|
4334
4334
|
// =====================================================
|
|
4335
4335
|
// == RTL ==
|
|
4336
4336
|
// =====================================================
|
|
@@ -4342,27 +4342,27 @@ const ei = (e) => {
|
|
|
4342
4342
|
// =====================================================
|
|
4343
4343
|
// == Status ==
|
|
4344
4344
|
// =====================================================
|
|
4345
|
-
|
|
4345
|
+
dt(n, $e(e, {
|
|
4346
4346
|
borderHoverColor: e.colorPrimaryHover,
|
|
4347
4347
|
outlineColor: e.controlOutline
|
|
4348
4348
|
})),
|
|
4349
|
-
|
|
4349
|
+
dt(`${n}-status-error`, $e(e, {
|
|
4350
4350
|
borderHoverColor: e.colorErrorHover,
|
|
4351
4351
|
outlineColor: e.colorErrorOutline
|
|
4352
4352
|
}), !0),
|
|
4353
|
-
|
|
4353
|
+
dt(`${n}-status-warning`, $e(e, {
|
|
4354
4354
|
borderHoverColor: e.colorWarningHover,
|
|
4355
4355
|
outlineColor: e.colorWarningOutline
|
|
4356
4356
|
}), !0),
|
|
4357
4357
|
// =====================================================
|
|
4358
4358
|
// == Space Compact ==
|
|
4359
4359
|
// =====================================================
|
|
4360
|
-
|
|
4360
|
+
ao(e, {
|
|
4361
4361
|
borderElCls: `${n}-selector`,
|
|
4362
4362
|
focusElCls: `${n}-focused`
|
|
4363
4363
|
})
|
|
4364
4364
|
];
|
|
4365
|
-
},
|
|
4365
|
+
}, ni = io("Select", (e, n) => {
|
|
4366
4366
|
let {
|
|
4367
4367
|
rootPrefixCls: o
|
|
4368
4368
|
} = n;
|
|
@@ -4370,39 +4370,39 @@ const ei = (e) => {
|
|
|
4370
4370
|
rootPrefixCls: o,
|
|
4371
4371
|
inputPaddingHorizontalBase: e.paddingSM - 1
|
|
4372
4372
|
});
|
|
4373
|
-
return [
|
|
4373
|
+
return [ti(t)];
|
|
4374
4374
|
}, (e) => ({
|
|
4375
4375
|
zIndexPopup: e.zIndexPopupBase + 50
|
|
4376
|
-
})),
|
|
4377
|
-
value:
|
|
4378
|
-
defaultValue:
|
|
4376
|
+
})), oi = () => S(S({}, Je(bn(), ["inputIcon", "mode", "getInputElement", "getRawInputElement", "backfill"])), {
|
|
4377
|
+
value: Kt([Array, Object, String, Number]),
|
|
4378
|
+
defaultValue: Kt([Array, Object, String, Number]),
|
|
4379
4379
|
notFoundContent: A.any,
|
|
4380
4380
|
suffixIcon: A.any,
|
|
4381
4381
|
itemIcon: A.any,
|
|
4382
|
-
size:
|
|
4383
|
-
mode:
|
|
4384
|
-
bordered:
|
|
4382
|
+
size: Be(),
|
|
4383
|
+
mode: Be(),
|
|
4384
|
+
bordered: yo(!0),
|
|
4385
4385
|
transitionName: String,
|
|
4386
|
-
choiceTransitionName:
|
|
4386
|
+
choiceTransitionName: Be(""),
|
|
4387
4387
|
popupClassName: String,
|
|
4388
4388
|
/** @deprecated Please use `popupClassName` instead */
|
|
4389
4389
|
dropdownClassName: String,
|
|
4390
|
-
placement:
|
|
4391
|
-
status:
|
|
4392
|
-
"onUpdate:value":
|
|
4393
|
-
}),
|
|
4390
|
+
placement: Be(),
|
|
4391
|
+
status: Be(),
|
|
4392
|
+
"onUpdate:value": So()
|
|
4393
|
+
}), Jt = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ye = ce({
|
|
4394
4394
|
compatConfig: {
|
|
4395
4395
|
MODE: 3
|
|
4396
4396
|
},
|
|
4397
4397
|
name: "ASelect",
|
|
4398
|
-
Option:
|
|
4399
|
-
OptGroup:
|
|
4398
|
+
Option: Ot,
|
|
4399
|
+
OptGroup: $t,
|
|
4400
4400
|
inheritAttrs: !1,
|
|
4401
|
-
props:
|
|
4401
|
+
props: ht(oi(), {
|
|
4402
4402
|
listHeight: 256,
|
|
4403
4403
|
listItemHeight: 24
|
|
4404
4404
|
}),
|
|
4405
|
-
SECRET_COMBOBOX_MODE_DO_NOT_USE:
|
|
4405
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE: Jt,
|
|
4406
4406
|
slots: Object,
|
|
4407
4407
|
setup(e, n) {
|
|
4408
4408
|
let {
|
|
@@ -4411,10 +4411,10 @@ const ei = (e) => {
|
|
|
4411
4411
|
slots: l,
|
|
4412
4412
|
expose: i
|
|
4413
4413
|
} = n;
|
|
4414
|
-
const u =
|
|
4414
|
+
const u = he(), a = ro(), m = so.useInject(), r = R(() => uo(m.status, e.status)), s = () => {
|
|
4415
4415
|
var _;
|
|
4416
4416
|
(_ = u.value) === null || _ === void 0 || _.focus();
|
|
4417
|
-
},
|
|
4417
|
+
}, f = () => {
|
|
4418
4418
|
var _;
|
|
4419
4419
|
(_ = u.value) === null || _ === void 0 || _.blur();
|
|
4420
4420
|
}, p = (_) => {
|
|
@@ -4425,9 +4425,9 @@ const ei = (e) => {
|
|
|
4425
4425
|
mode: _
|
|
4426
4426
|
} = e;
|
|
4427
4427
|
if (_ !== "combobox")
|
|
4428
|
-
return _ ===
|
|
4428
|
+
return _ === Jt ? "combobox" : _;
|
|
4429
4429
|
});
|
|
4430
|
-
process.env.NODE_ENV !== "production" &&
|
|
4430
|
+
process.env.NODE_ENV !== "production" && co(!e.dropdownClassName, "Select", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
|
|
4431
4431
|
const {
|
|
4432
4432
|
prefixCls: b,
|
|
4433
4433
|
direction: x,
|
|
@@ -4438,19 +4438,19 @@ const ei = (e) => {
|
|
|
4438
4438
|
getPopupContainer: C,
|
|
4439
4439
|
disabled: v,
|
|
4440
4440
|
select: T
|
|
4441
|
-
} =
|
|
4441
|
+
} = fo("select", e), {
|
|
4442
4442
|
compactSize: $,
|
|
4443
4443
|
compactItemClassnames: N
|
|
4444
|
-
} =
|
|
4444
|
+
} = mo(b, x), V = R(() => $.value || P.value), j = po(), z = R(() => {
|
|
4445
4445
|
var _;
|
|
4446
4446
|
return (_ = v.value) !== null && _ !== void 0 ? _ : j.value;
|
|
4447
|
-
}), [Q, X] =
|
|
4447
|
+
}), [Q, X] = ni(b), U = R(() => D()), M = R(() => e.placement !== void 0 ? e.placement : x.value === "rtl" ? "bottomRight" : "bottomLeft"), L = R(() => vo(U.value, go(M.value), e.transitionName)), k = R(() => ue({
|
|
4448
4448
|
[`${b.value}-lg`]: V.value === "large",
|
|
4449
4449
|
[`${b.value}-sm`]: V.value === "small",
|
|
4450
4450
|
[`${b.value}-rtl`]: x.value === "rtl",
|
|
4451
4451
|
[`${b.value}-borderless`]: !e.bordered,
|
|
4452
|
-
[`${b.value}-in-form-item`]:
|
|
4453
|
-
},
|
|
4452
|
+
[`${b.value}-in-form-item`]: m.isFormItemInput
|
|
4453
|
+
}, ho(b.value, r.value, m.hasFeedback), N.value, X.value)), ee = function() {
|
|
4454
4454
|
for (var _ = arguments.length, te = new Array(_), oe = 0; oe < _; oe++)
|
|
4455
4455
|
te[oe] = arguments[oe];
|
|
4456
4456
|
t("update:value", te[0]), t("change", ...te), a.onFieldChange();
|
|
@@ -4458,17 +4458,17 @@ const ei = (e) => {
|
|
|
4458
4458
|
t("blur", _), a.onFieldBlur();
|
|
4459
4459
|
};
|
|
4460
4460
|
i({
|
|
4461
|
-
blur:
|
|
4461
|
+
blur: f,
|
|
4462
4462
|
focus: s,
|
|
4463
4463
|
scrollTo: p
|
|
4464
4464
|
});
|
|
4465
4465
|
const H = R(() => w.value === "multiple" || w.value === "tags"), W = R(() => e.showArrow !== void 0 ? e.showArrow : e.loading || !(H.value || w.value === "combobox"));
|
|
4466
4466
|
return () => {
|
|
4467
|
-
var _, te, oe,
|
|
4467
|
+
var _, te, oe, re;
|
|
4468
4468
|
const {
|
|
4469
4469
|
notFoundContent: ne,
|
|
4470
|
-
listHeight:
|
|
4471
|
-
listItemHeight:
|
|
4470
|
+
listHeight: me = 256,
|
|
4471
|
+
listItemHeight: pe = 24,
|
|
4472
4472
|
popupClassName: h,
|
|
4473
4473
|
dropdownClassName: c,
|
|
4474
4474
|
virtual: d,
|
|
@@ -4479,41 +4479,41 @@ const ei = (e) => {
|
|
|
4479
4479
|
} = e, {
|
|
4480
4480
|
hasFeedback: J,
|
|
4481
4481
|
feedbackIcon: le
|
|
4482
|
-
} =
|
|
4482
|
+
} = m;
|
|
4483
4483
|
let Z;
|
|
4484
|
-
ne !== void 0 ? Z = ne : l.notFoundContent ? Z = l.notFoundContent() : w.value === "combobox" ? Z = null : Z = (I == null ? void 0 : I("Select")) || y(
|
|
4484
|
+
ne !== void 0 ? Z = ne : l.notFoundContent ? Z = l.notFoundContent() : w.value === "combobox" ? Z = null : Z = (I == null ? void 0 : I("Select")) || y(bo, {
|
|
4485
4485
|
componentName: "Select"
|
|
4486
4486
|
}, null);
|
|
4487
4487
|
const {
|
|
4488
|
-
suffixIcon:
|
|
4489
|
-
itemIcon:
|
|
4490
|
-
removeIcon:
|
|
4491
|
-
clearIcon:
|
|
4492
|
-
} =
|
|
4488
|
+
suffixIcon: se,
|
|
4489
|
+
itemIcon: fe,
|
|
4490
|
+
removeIcon: Ge,
|
|
4491
|
+
clearIcon: tt
|
|
4492
|
+
} = Nl(S(S({}, e), {
|
|
4493
4493
|
multiple: H.value,
|
|
4494
4494
|
prefixCls: b.value,
|
|
4495
4495
|
hasFeedback: J,
|
|
4496
4496
|
feedbackIcon: le,
|
|
4497
4497
|
showArrow: W.value
|
|
4498
|
-
}), l), Re =
|
|
4498
|
+
}), l), Re = Je(e, ["prefixCls", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "size", "bordered", "status"]), De = ue(h || c, {
|
|
4499
4499
|
[`${b.value}-dropdown-${x.value}`]: x.value === "rtl"
|
|
4500
4500
|
}, X.value);
|
|
4501
|
-
return Q(y(
|
|
4501
|
+
return Q(y(Rl, Y(Y(Y({
|
|
4502
4502
|
ref: u,
|
|
4503
4503
|
virtual: d,
|
|
4504
4504
|
dropdownMatchSelectWidth: F
|
|
4505
4505
|
}, Re), o), {}, {
|
|
4506
4506
|
showSearch: (te = e.showSearch) !== null && te !== void 0 ? te : (oe = T == null ? void 0 : T.value) === null || oe === void 0 ? void 0 : oe.showSearch,
|
|
4507
4507
|
placeholder: B,
|
|
4508
|
-
listHeight:
|
|
4509
|
-
listItemHeight:
|
|
4508
|
+
listHeight: me,
|
|
4509
|
+
listItemHeight: pe,
|
|
4510
4510
|
mode: w.value,
|
|
4511
4511
|
prefixCls: b.value,
|
|
4512
4512
|
direction: x.value,
|
|
4513
|
-
inputIcon:
|
|
4514
|
-
menuItemSelectedIcon:
|
|
4515
|
-
removeIcon:
|
|
4516
|
-
clearIcon:
|
|
4513
|
+
inputIcon: se,
|
|
4514
|
+
menuItemSelectedIcon: fe,
|
|
4515
|
+
removeIcon: Ge,
|
|
4516
|
+
clearIcon: tt,
|
|
4517
4517
|
notFoundContent: Z,
|
|
4518
4518
|
class: [k.value, o.class],
|
|
4519
4519
|
getPopupContainer: C == null ? void 0 : C.value,
|
|
@@ -4523,7 +4523,7 @@ const ei = (e) => {
|
|
|
4523
4523
|
id: E,
|
|
4524
4524
|
dropdownRender: Re.dropdownRender || l.dropdownRender,
|
|
4525
4525
|
transitionName: L.value,
|
|
4526
|
-
children: (
|
|
4526
|
+
children: (re = l.default) === null || re === void 0 ? void 0 : re.call(l),
|
|
4527
4527
|
tagRender: e.tagRender || l.tagRender,
|
|
4528
4528
|
optionLabelRender: l.optionLabel,
|
|
4529
4529
|
maxTagPlaceholder: e.maxTagPlaceholder || l.maxTagPlaceholder,
|
|
@@ -4535,12 +4535,15 @@ const ei = (e) => {
|
|
|
4535
4535
|
};
|
|
4536
4536
|
}
|
|
4537
4537
|
});
|
|
4538
|
-
|
|
4539
|
-
return e.component(
|
|
4538
|
+
ye.install = function(e) {
|
|
4539
|
+
return e.component(ye.name, ye), e.component(ye.Option.displayName, ye.Option), e.component(ye.OptGroup.displayName, ye.OptGroup), e;
|
|
4540
4540
|
};
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
const
|
|
4541
|
+
ye.Option;
|
|
4542
|
+
ye.OptGroup;
|
|
4543
|
+
const li = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBlVNLTgJBEK1qOrjtI4w34AhwAuQEZBJc4yyVBbCRxE2HrZoQT4CcAI7AEeYIbDUM5asGZYj0KJX0J1WvX9eXqUIm/qUpbNp6ZzHT+yzNY1iOGR796w2sc1w3B5Ujoc5D1ns/hzcxImb2OPJPqV3rwn0NYh/DR4mEJBGhxShLN7pEZAF1EsPbmAExr7C1kad9KGy6oF/RpR6R1FIGkzAvw4KPqqv4OC4jP3N1LpZ6R55aGiJd7JES4SF+CquK5JdHWnKE48o6YenjcCw8PtGTbMqtwGWSQ9/8X0p9ZY+M7DShLNKCOq9m2Cb7Ahy9P1N+m1eNgsrEz7AXJ7qQ7Cf/3IBLw71rxQzApIIkUUyAsgzDWyXSEhdcm2tY6N4xuqXxDTwrsCkGXT/VPtuyWSqHuaJtQ8cBuUkH2e0IgDcAmzEeteHD6SDr3eHMoHLKYT/IruuIF0PaR+UczjaIc4rLGpguRmfFTN1dUNncHAZyDEUoP0iclV0nxgLbz+joG32rxeGTJKKs6uFfXaw50XDK2C8hpcmbpfjHLAAAAABJRU5ErkJggg==", ii = { class: "crane-checkbox-line" }, ai = { class: "crane-flex-center crane-checkbox-label" }, ri = { class: "crane-text-overflow" }, si = { class: "crane-flex-center crane-margin-left-4" }, ui = ["src"], ci = { class: "crane-week-color crane-margin-left-4" }, di = {
|
|
4544
|
+
key: 2,
|
|
4545
|
+
class: "crane-week-color crane-margin-left-12"
|
|
4546
|
+
}, fi = /* @__PURE__ */ ce({
|
|
4544
4547
|
__name: "checkbox-item",
|
|
4545
4548
|
props: {
|
|
4546
4549
|
item: {
|
|
@@ -4562,127 +4565,133 @@ const ai = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAA
|
|
|
4562
4565
|
const n = {
|
|
4563
4566
|
L1: {
|
|
4564
4567
|
color: "green",
|
|
4565
|
-
text:
|
|
4568
|
+
text: Ce("levels.L1")
|
|
4566
4569
|
},
|
|
4567
4570
|
L2: {
|
|
4568
4571
|
color: "orange",
|
|
4569
|
-
text:
|
|
4572
|
+
text: Ce("levels.L2")
|
|
4570
4573
|
},
|
|
4571
4574
|
L3: {
|
|
4572
4575
|
color: "red",
|
|
4573
|
-
text:
|
|
4574
|
-
}
|
|
4575
|
-
}, o = {
|
|
4576
|
-
PENDING: {
|
|
4577
|
-
color: "orange",
|
|
4578
|
-
text: Se("status.PENDING")
|
|
4579
|
-
},
|
|
4580
|
-
OWNER: {
|
|
4581
|
-
color: "green",
|
|
4582
|
-
text: Se("status.OWNER")
|
|
4583
|
-
},
|
|
4584
|
-
NO: {
|
|
4585
|
-
color: "red",
|
|
4586
|
-
text: Se("status.NO")
|
|
4576
|
+
text: Ce("levels.L3")
|
|
4587
4577
|
}
|
|
4588
4578
|
};
|
|
4589
|
-
let
|
|
4590
|
-
const
|
|
4579
|
+
let o = e;
|
|
4580
|
+
const t = wo("availiables"), l = Ce("status"), i = he(""), u = (r) => {
|
|
4591
4581
|
const s = {
|
|
4592
4582
|
L1: "SIXTY_DAYS",
|
|
4593
4583
|
L2: "THIRTY_DAYS",
|
|
4594
4584
|
L3: "SEVEN_DAYS"
|
|
4595
|
-
}, { relatedDepartmentIds:
|
|
4596
|
-
return
|
|
4585
|
+
}, { relatedDepartmentIds: f = [], curDepartmentId: p = 0, securityLevel: w } = r;
|
|
4586
|
+
return f.includes(p) ? r.validTime = "NINETY_DAYS" : r.validTime = s[w], r.validTime;
|
|
4597
4587
|
}, a = (r) => {
|
|
4598
|
-
|
|
4599
|
-
},
|
|
4600
|
-
r.target.checked && (i.value = u(
|
|
4588
|
+
o.item.validTime = r, o.onChangeTime();
|
|
4589
|
+
}, m = (r) => {
|
|
4590
|
+
r.target.checked && (i.value = u(o.item));
|
|
4601
4591
|
};
|
|
4602
|
-
return (r, s) => (
|
|
4603
|
-
y(
|
|
4592
|
+
return (r, s) => (Ee(), Lt("div", ii, [
|
|
4593
|
+
y(ie(xo), {
|
|
4604
4594
|
value: e.item.roleId,
|
|
4605
|
-
disabled:
|
|
4606
|
-
onChange:
|
|
4595
|
+
disabled: ["OWNER", "PENDING", "NO"].includes(ie(o).item.businessApplyType),
|
|
4596
|
+
onChange: m
|
|
4607
4597
|
}, {
|
|
4608
|
-
default:
|
|
4609
|
-
|
|
4610
|
-
e.item.securityLevel ? (
|
|
4598
|
+
default: ve(() => [
|
|
4599
|
+
Fe("div", ai, [
|
|
4600
|
+
e.item.securityLevel ? (Ee(), _e(ie(at), {
|
|
4611
4601
|
key: 0,
|
|
4612
4602
|
bordered: !1,
|
|
4613
4603
|
color: n[e.item.securityLevel].color,
|
|
4614
4604
|
class: "crane-tag-position"
|
|
4615
4605
|
}, {
|
|
4616
|
-
default:
|
|
4617
|
-
|
|
4606
|
+
default: ve(() => [
|
|
4607
|
+
be(ge(n[e.item.securityLevel].text), 1)
|
|
4618
4608
|
]),
|
|
4619
4609
|
_: 1
|
|
4620
|
-
}, 8, ["color"])) :
|
|
4621
|
-
|
|
4622
|
-
y(
|
|
4623
|
-
content:
|
|
4624
|
-
|
|
4610
|
+
}, 8, ["color"])) : Ne("", !0),
|
|
4611
|
+
Fe("span", null, ge(ie(Ce)(`operationType.${e.item.operationType}`)) + "| ", 1),
|
|
4612
|
+
y(ie(ke), null, {
|
|
4613
|
+
content: ve(() => [
|
|
4614
|
+
be(ge(e.item.name), 1)
|
|
4625
4615
|
]),
|
|
4626
|
-
default:
|
|
4627
|
-
|
|
4616
|
+
default: ve(() => [
|
|
4617
|
+
Fe("span", ri, ge(e.item.name), 1)
|
|
4628
4618
|
]),
|
|
4629
4619
|
_: 1
|
|
4630
4620
|
}),
|
|
4631
|
-
e.item.businessApplyType ? (
|
|
4621
|
+
e.item.businessApplyType && e.item.businessApplyType !== "TEMP_OWNER" ? (Ee(), _e(ie(at), {
|
|
4632
4622
|
key: 1,
|
|
4633
4623
|
bordered: !1,
|
|
4634
|
-
class:
|
|
4624
|
+
class: Ht(["crane-tag-position crane-margin-left-4 crane-margin-right-0", ["PENDING", "TEMP_OWNER"].includes(e.item.businessApplyType) ? "" : "crane-disabled-color"])
|
|
4635
4625
|
}, {
|
|
4636
|
-
default:
|
|
4637
|
-
|
|
4626
|
+
default: ve(() => [
|
|
4627
|
+
be(ge(ie(l)[e.item.businessApplyType]), 1)
|
|
4628
|
+
]),
|
|
4629
|
+
_: 1
|
|
4630
|
+
}, 8, ["class"])) : Ne("", !0),
|
|
4631
|
+
y(ie(ke), null, {
|
|
4632
|
+
content: ve(() => {
|
|
4633
|
+
var f, p;
|
|
4634
|
+
return [
|
|
4635
|
+
be(ge(ie(Ce)("lastDays", { count: (p = (f = e.item) == null ? void 0 : f.ownStatusVO) == null ? void 0 : p.dayDiff })), 1)
|
|
4636
|
+
];
|
|
4637
|
+
}),
|
|
4638
|
+
default: ve(() => [
|
|
4639
|
+
e.item.businessApplyType === "TEMP_OWNER" ? (Ee(), _e(ie(at), {
|
|
4640
|
+
key: 0,
|
|
4641
|
+
bordered: !1,
|
|
4642
|
+
class: Ht(["crane-tag-position crane-margin-left-4 crane-margin-right-0", ["PENDING"].includes(e.item.businessApplyType) ? "" : "crane-disabled-color"])
|
|
4643
|
+
}, {
|
|
4644
|
+
default: ve(() => [
|
|
4645
|
+
be(ge(ie(l)[e.item.businessApplyType]), 1)
|
|
4646
|
+
]),
|
|
4647
|
+
_: 1
|
|
4648
|
+
}, 8, ["class"])) : Ne("", !0)
|
|
4638
4649
|
]),
|
|
4639
4650
|
_: 1
|
|
4640
|
-
}
|
|
4651
|
+
})
|
|
4641
4652
|
])
|
|
4642
4653
|
]),
|
|
4643
4654
|
_: 1
|
|
4644
4655
|
}, 8, ["value", "disabled"]),
|
|
4645
|
-
e.item.desc ? (
|
|
4646
|
-
content:
|
|
4647
|
-
|
|
4656
|
+
e.item.desc ? (Ee(), _e(ie(ke), { key: 0 }, {
|
|
4657
|
+
content: ve(() => [
|
|
4658
|
+
be(ge(e.item.desc), 1)
|
|
4648
4659
|
]),
|
|
4649
|
-
default:
|
|
4650
|
-
y(
|
|
4660
|
+
default: ve(() => [
|
|
4661
|
+
y(ie(Oo), { class: "crane-week-color" })
|
|
4651
4662
|
]),
|
|
4652
4663
|
_: 1
|
|
4653
|
-
})) :
|
|
4654
|
-
e.item.relatedDepartments ? (
|
|
4655
|
-
content:
|
|
4656
|
-
|
|
4664
|
+
})) : Ne("", !0),
|
|
4665
|
+
e.item.relatedDepartments ? (Ee(), _e(ie(ke), { key: 1 }, {
|
|
4666
|
+
content: ve(() => [
|
|
4667
|
+
be(ge(ie(Ce)("adaptDepartment")) + ":" + ge(e.item.relatedDepartments.map((f) => f.name).join("、")), 1)
|
|
4657
4668
|
]),
|
|
4658
|
-
default:
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
src:
|
|
4669
|
+
default: ve(() => [
|
|
4670
|
+
Fe("span", si, [
|
|
4671
|
+
Fe("img", {
|
|
4672
|
+
src: ie(li),
|
|
4662
4673
|
height: "14",
|
|
4663
4674
|
width: "14"
|
|
4664
|
-
}, null, 8,
|
|
4665
|
-
|
|
4675
|
+
}, null, 8, ui),
|
|
4676
|
+
Fe("span", ci, ge(e.item.relatedDepartments.length), 1)
|
|
4666
4677
|
])
|
|
4667
4678
|
]),
|
|
4668
4679
|
_: 1
|
|
4669
|
-
})) :
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
y(
|
|
4680
|
+
})) : Ne("", !0),
|
|
4681
|
+
e.checkedIds.includes(e.item.roleId) ? (Ee(), Lt("span", di, [
|
|
4682
|
+
be(ge(ie(Ce)("availableTime")) + ": ", 1),
|
|
4683
|
+
y(ie(ye), {
|
|
4673
4684
|
value: i.value,
|
|
4674
|
-
"onUpdate:value": s[0] || (s[0] = (
|
|
4685
|
+
"onUpdate:value": s[0] || (s[0] = (f) => i.value = f),
|
|
4675
4686
|
style: { width: "100px" },
|
|
4676
|
-
options:
|
|
4687
|
+
options: ie(t),
|
|
4677
4688
|
onChange: a,
|
|
4678
4689
|
size: "small"
|
|
4679
4690
|
}, null, 8, ["value", "options"])
|
|
4680
|
-
],
|
|
4681
|
-
[Qn, e.checkedIds.includes(e.item.roleId)]
|
|
4682
|
-
])
|
|
4691
|
+
])) : Ne("", !0)
|
|
4683
4692
|
]));
|
|
4684
4693
|
}
|
|
4685
|
-
}),
|
|
4694
|
+
}), Oi = /* @__PURE__ */ Io(fi, [["__scopeId", "data-v-755c8f7a"]]);
|
|
4686
4695
|
export {
|
|
4687
|
-
|
|
4696
|
+
Oi as default
|
|
4688
4697
|
};
|