@web-utils/form-ui 1.0.0-beta71 → 1.0.0-beta73
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/address-input/index.mjs +1 -1
- package/affix/index.d.ts +0 -2
- package/affix/index.mjs +2 -3
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -14
- package/chunks/-fXBgN9b2.mjs +37 -0
- package/chunks/{B3d4fdGH.mjs → -yfgKY3g.mjs} +1 -1
- package/chunks/{BeWNlclr.mjs → -zgWD713.mjs} +44 -40
- package/chunks/{5itVLmv82.mjs → 8A7LSgb4.mjs} +26 -25
- package/chunks/{DoOkwYtO.mjs → Apjns0ZM.mjs} +72 -67
- package/chunks/B0BOjeph2.mjs +108 -0
- package/chunks/BD6_5FSI.mjs +178 -0
- package/chunks/BE4V5Vf5.mjs +133 -0
- package/chunks/{DfJJr053.mjs → BGJjAw5E.mjs} +1 -1
- package/chunks/{DhQF2ZlD.mjs → BH7VEktl.mjs} +19 -17
- package/chunks/{CjmfMN1X2.mjs → BI6kCG2j2.mjs} +2 -2
- package/chunks/{6kdakei5.mjs → BYtFzO-8.mjs} +138 -133
- package/chunks/{CaRunrOV2.mjs → B_AUZSOW.mjs} +589 -760
- package/chunks/BctSGDgW2.mjs +29 -0
- package/chunks/{B5voIv4_.mjs → Bes1uXng.mjs} +28 -24
- package/chunks/BhIWiH5R.mjs +661 -0
- package/chunks/BhzlH7Az.mjs +90 -0
- package/chunks/{D6vTCC1Z2.mjs → BrelfRGo2.mjs} +14 -13
- package/chunks/{Z0BPDZlb.mjs → BsqIRxSS.mjs} +6 -5
- package/chunks/{TtxSplBB.mjs → C--HDCqy.mjs} +13 -10
- package/chunks/{DTUh8o0p2.mjs → C6mb7Nru2.mjs} +4 -4
- package/chunks/{CIybFvu92.mjs → CFoSvMJ-2.mjs} +1 -1
- package/chunks/{Ch_zaHx9.mjs → CO3taG7t2.mjs} +1 -1
- package/chunks/{DNSPORak.mjs → CZUhA3sf.mjs} +298 -4
- package/chunks/Ccxbv7uz2.mjs +34 -0
- package/chunks/Ce4tNNzg2.mjs +63 -0
- package/chunks/{B1GA44yT2.mjs → CelJ2L8A2.mjs} +2 -2
- package/chunks/CjYOitzM2.mjs +31 -0
- package/chunks/Cknuquqx.mjs +32 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/CwyebsNL2.mjs +39 -0
- package/chunks/{9rQitPz7.mjs → D6DYxngS.mjs} +132 -127
- package/chunks/D6YM84Pf2.mjs +29 -0
- package/chunks/{BkEMJ725.mjs → DTq5QLoT.mjs} +43 -39
- package/chunks/{BvcK4D8A2.mjs → DVMfVn-M.mjs} +14 -10
- package/chunks/DVdQHb_v.mjs +50 -0
- package/chunks/{BaLjN8Ow.mjs → Daa7nl7U.mjs} +19 -15
- package/chunks/{D9qn1x3X2.mjs → Dh_BQpvC2.mjs} +2 -2
- package/chunks/DizOY5i8.mjs +69 -0
- package/chunks/{BQNqBw8h2.mjs → DjaV6_cg2.mjs} +2 -2
- package/chunks/{CbbjpJFg2.mjs → Dm3gQGoV2.mjs} +2 -2
- package/chunks/DqW9QtF3.mjs +68 -0
- package/chunks/{DbtlO6wD.mjs → DqWJCka8.mjs} +9 -7
- package/chunks/{BI-ZFlSw2.mjs → DrWUdRj32.mjs} +2 -2
- package/chunks/Dv7YRB2U2.mjs +25 -0
- package/chunks/DyLQsqWJ.mjs +61 -0
- package/chunks/HsHwYW1a.mjs +99 -0
- package/chunks/KDVLIvaS.mjs +30 -0
- package/chunks/{DxL9oojv2.mjs → Lkg7bYLD2.mjs} +73 -74
- package/chunks/{T_jwNKBr.mjs → Opn85Hlx2.mjs} +1 -1
- package/chunks/{BoId6V9J.mjs → YdNYH25C.mjs} +1 -1
- package/chunks/{BvbjlaN02.mjs → gTgPZrgY2.mjs} +119 -120
- package/chunks/{3gUkQF12.mjs → jsgk7Yse2.mjs} +2 -2
- package/chunks/nL59ZuIk.mjs +58 -0
- package/chunks/{CDqVJ7U3.mjs → neuEq1De.mjs} +70 -67
- package/chunks/{B8wGY5Hs2.mjs → sWVkgzQt2.mjs} +2 -2
- package/chunks/{Wl17p0C82.mjs → tjwOOiNr2.mjs} +31 -30
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +9 -8
- package/data-card/index.mjs +8 -7
- package/data-card-text/index.mjs +8 -7
- package/data-display/index.mjs +9 -8
- package/data-icons/index.mjs +9 -8
- package/data-imgtext/index.mjs +9 -8
- package/data-operatext/index.mjs +8 -7
- package/data-panel/index.mjs +9 -8
- package/data-pay/index.mjs +10 -9
- package/data-price/index.mjs +8 -7
- package/data-progress/index.mjs +10 -9
- package/data-rotate/index.mjs +9 -8
- package/data-table-picker/index.mjs +11 -10
- package/data-tabs/index.mjs +9 -8
- package/dict-render/index.mjs +1 -1
- package/e-charts/index.mjs +2 -2
- package/easy-popup/index.mjs +1 -1
- package/editable-progress/index.mjs +8 -7
- package/editable-tree/index.mjs +595 -2
- package/element-dialog/index.mjs +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/flex-box/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flex-scroller/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/flow-viewer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +3 -3
- package/guide-steps/index.mjs +77 -2
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +12 -11
- package/image-preview/index.d.ts +1 -153
- package/image-preview/index.mjs +201 -2
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +101 -101
- package/input-number-range/index.mjs +7 -6
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -2
- package/package.json +5 -1
- package/page-index/index.mjs +14 -13
- package/page-index-top/index.mjs +12 -10
- package/pageable-table/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/props/col.mjs +1 -1
- package/props/form-item.mjs +1 -1
- package/sign-panel/index.mjs +1 -1
- package/skeleton-panel/index.mjs +3 -2
- package/split-pane/index.mjs +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +108 -106
- package/tag-render/index.mjs +21 -20
- package/text-ellipsis/index.d.ts +1 -1
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.d.ts +1 -1
- package/vue-video-player/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +47 -46
- package/year-calendar/index.mjs +1 -1
- package/chunks/49634Q2N2.mjs +0 -936
- package/chunks/77cFhiAz.mjs +0 -13
- package/chunks/7JVbVOff2.mjs +0 -46
- package/chunks/B1ATN2my.mjs +0 -26
- package/chunks/B7O8aGqC2.mjs +0 -58
- package/chunks/BBPczt0U.mjs +0 -4
- package/chunks/BBqq6o072.mjs +0 -243
- package/chunks/BCVhSMZN.mjs +0 -1328
- package/chunks/BDVLN2ly.mjs +0 -105
- package/chunks/BEysX5TF2.mjs +0 -1038
- package/chunks/BIj6pa8Z.mjs +0 -15
- package/chunks/BJby9uHB2.mjs +0 -233
- package/chunks/BUAQybGW.mjs +0 -230
- package/chunks/BVIHqL6g.mjs +0 -17
- package/chunks/BVSQ6DfJ.mjs +0 -17
- package/chunks/B__5L22p2.mjs +0 -346
- package/chunks/Baam4z-g.mjs +0 -275
- package/chunks/Bdeug17L.mjs +0 -42
- package/chunks/BecO0t0_2.mjs +0 -2430
- package/chunks/BffxPn8a.mjs +0 -34
- package/chunks/Bgw_3soo.mjs +0 -35
- package/chunks/BjCfQFUL.mjs +0 -54
- package/chunks/BjWs-r2V.mjs +0 -25
- package/chunks/BlB1fEo92.mjs +0 -8
- package/chunks/BrYtAPbN2.mjs +0 -161
- package/chunks/BsKwchVA.mjs +0 -14
- package/chunks/BsM0L7CS.mjs +0 -132
- package/chunks/C5f3Xfsc2.mjs +0 -36
- package/chunks/C7l9aZGE.mjs +0 -577
- package/chunks/CFvkR9Ze2.mjs +0 -31
- package/chunks/CGM03LI5.mjs +0 -588
- package/chunks/CPejK_GQ2.mjs +0 -383
- package/chunks/CQSTyCVP.mjs +0 -6
- package/chunks/CQxz8uUc.mjs +0 -454
- package/chunks/CR29QUwT2.mjs +0 -28
- package/chunks/CWvo-ucD.mjs +0 -446
- package/chunks/C_eGir-J.mjs +0 -17
- package/chunks/Calzy0Az.mjs +0 -1275
- package/chunks/CbgD7y-5.mjs +0 -5
- package/chunks/CbsGuLZz2.mjs +0 -105
- package/chunks/CcT5SsZk.mjs +0 -48
- package/chunks/CdBytH8S.mjs +0 -266
- package/chunks/CiFlMt6Z.mjs +0 -41
- package/chunks/Cjkq49252.mjs +0 -60
- package/chunks/CnCSm3LY2.mjs +0 -4
- package/chunks/CsLrkldT2.mjs +0 -225
- package/chunks/Csiz_xCa2.mjs +0 -273
- package/chunks/Ctd3_wOH2.mjs +0 -6
- package/chunks/Cu2A_1vk2.mjs +0 -106
- package/chunks/CuoF9V8s.mjs +0 -3091
- package/chunks/CwBq1JZV.mjs +0 -250
- package/chunks/CwWfRmD3.mjs +0 -57
- package/chunks/CwqeV7002.mjs +0 -67
- package/chunks/Cy8jqgun2.mjs +0 -41
- package/chunks/D-hj62se2.mjs +0 -525
- package/chunks/D3Xixh5v.mjs +0 -5
- package/chunks/D4oNQiIK.mjs +0 -461
- package/chunks/D8r81QxD.mjs +0 -732
- package/chunks/DL0o_C092.mjs +0 -1093
- package/chunks/DLgn1tQG2.mjs +0 -60
- package/chunks/DStwh2ne.mjs +0 -281
- package/chunks/DXiLi19u2.mjs +0 -33
- package/chunks/DZ0frL1U.mjs +0 -69
- package/chunks/D_qwjNah.mjs +0 -1094
- package/chunks/Dg9Q-Tbi2.mjs +0 -299
- package/chunks/Dls3rTka2.mjs +0 -24
- package/chunks/DnBzQ-xh.mjs +0 -4
- package/chunks/DoNfjRR1.mjs +0 -68
- package/chunks/DrKq_frR.mjs +0 -98
- package/chunks/DsYXqJLZ.mjs +0 -641
- package/chunks/DsZznbt2.mjs +0 -208
- package/chunks/Dsd58O0g.mjs +0 -25
- package/chunks/Dtq1xYk8.mjs +0 -47
- package/chunks/EA6hte7s2.mjs +0 -49
- package/chunks/FeuisuNY2.mjs +0 -88
- package/chunks/GEtlriHC.mjs +0 -188
- package/chunks/GsvG1yFW.mjs +0 -1919
- package/chunks/KGmxNbpi.mjs +0 -21
- package/chunks/Q2Mal3Qn2.mjs +0 -439
- package/chunks/akEzJ4kG.mjs +0 -18
- package/chunks/cMuWbLPt.mjs +0 -196
- package/chunks/gh52LMTG.mjs +0 -12
- package/chunks/hgAOQY9a.mjs +0 -406
- package/chunks/lGc5ksPb.mjs +0 -279
- package/chunks/mD3gmiOy2.mjs +0 -96
- package/chunks/nLBvkerV2.mjs +0 -621
- package/chunks/pZQfJv282.mjs +0 -4
- package/chunks/qrHhuZXg.mjs +0 -465
- package/chunks/uqKZ4RIo.mjs +0 -222
- /package/chunks/{B31ub5xS.mjs → BBvIPqcc.mjs} +0 -0
- /package/chunks/{e70aZf3z.mjs → BoCxKwBf.mjs} +0 -0
- /package/chunks/{h-Uhst9y.mjs → CE67pCwD.mjs} +0 -0
- /package/chunks/{BMTtnkb7.mjs → CQeEP_Tl.mjs} +0 -0
- /package/chunks/{BwYEpK-u.mjs → CaczibeD.mjs} +0 -0
- /package/chunks/{BPpMbPS8.mjs → DZCryyFG.mjs} +0 -0
- /package/chunks/{BVuwiZGi.mjs → Dq63V0CC.mjs} +0 -0
- /package/chunks/{C1RsHtGI.mjs → OEBJ-trG.mjs} +0 -0
- /package/chunks/{7Cv9Cq-02.mjs → fjtZc9Rq2.mjs} +0 -0
package/chunks/Calzy0Az.mjs
DELETED
|
@@ -1,1275 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t } from "./Bdeug17L.mjs";
|
|
2
|
-
import { r as n, t as r } from "./DnBzQ-xh.mjs";
|
|
3
|
-
import { r as i } from "./akEzJ4kG.mjs";
|
|
4
|
-
import { E as a, T as o, b as s, k as c, n as l, o as u, t as d, y as f } from "./hgAOQY9a.mjs";
|
|
5
|
-
import { A as p, E as m, M as h, O as g, g as ee, h as te, i as ne, k as _, l as re, s as ie, t as v, u as y, y as ae } from "./DrKq_frR.mjs";
|
|
6
|
-
import { t as b } from "./CiFlMt6Z.mjs";
|
|
7
|
-
import { B as x, n as oe, t as S, u as se } from "./D4oNQiIK.mjs";
|
|
8
|
-
import { n as ce } from "./GEtlriHC.mjs";
|
|
9
|
-
import { r as le } from "./BjCfQFUL.mjs";
|
|
10
|
-
import { a as ue, r as de, t as fe } from "./GsvG1yFW.mjs";
|
|
11
|
-
import { i as pe, n as me, r as he, t as ge } from "./CcT5SsZk.mjs";
|
|
12
|
-
import { t as _e } from "./BIj6pa8Z.mjs";
|
|
13
|
-
import { n as ve } from "./BsKwchVA.mjs";
|
|
14
|
-
import { n as ye, t as be } from "./Dtq1xYk8.mjs";
|
|
15
|
-
import { n as xe, r as Se } from "./BffxPn8a.mjs";
|
|
16
|
-
import { t as C } from "./BVIHqL6g.mjs";
|
|
17
|
-
import { a as w, i as Ce } from "./B1ATN2my.mjs";
|
|
18
|
-
import { n as T } from "./CQSTyCVP.mjs";
|
|
19
|
-
import { t as E } from "./BlB1fEo92.mjs";
|
|
20
|
-
import { n as we, t as D } from "./B__5L22p2.mjs";
|
|
21
|
-
import { n as Te, t as Ee } from "./CbsGuLZz2.mjs";
|
|
22
|
-
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as P, createVNode as F, defineComponent as I, getCurrentInstance as De, inject as L, isVNode as Oe, mergeProps as ke, nextTick as R, normalizeClass as z, normalizeStyle as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as B, provide as Ne, reactive as Pe, ref as V, renderList as Fe, renderSlot as H, resolveComponent as U, resolveDirective as W, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as G, toHandlerKey as Re, toRaw as ze, toRefs as Be, unref as Ve, useSlots as He, vShow as Ue, watch as K, watchEffect as We, withCtx as q, withDirectives as J, withModifiers as Y } from "vue";
|
|
23
|
-
import { clamp as Ge, findLastIndex as Ke, get as X, isEqual as Z, isNil as qe } from "lodash-unified";
|
|
24
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
|
|
25
|
-
function Je() {
|
|
26
|
-
let e = Le(), t = V(0), n = k(() => ({ minWidth: `${Math.max(t.value, 11)}px` }));
|
|
27
|
-
return s(e, () => {
|
|
28
|
-
var n;
|
|
29
|
-
t.value = ((n = e.value) == null ? void 0 : n.getBoundingClientRect().width) ?? 0;
|
|
30
|
-
}), {
|
|
31
|
-
calculatorRef: e,
|
|
32
|
-
calculatorWidth: t,
|
|
33
|
-
inputStyle: n
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/src/token.mjs
|
|
38
|
-
var Ye = Symbol("ElSelectGroup"), Xe = Symbol("ElSelect"), Ze = {
|
|
39
|
-
label: "label",
|
|
40
|
-
value: "value",
|
|
41
|
-
disabled: "disabled",
|
|
42
|
-
options: "options"
|
|
43
|
-
};
|
|
44
|
-
function Qe(e) {
|
|
45
|
-
let t = V({
|
|
46
|
-
...Ze,
|
|
47
|
-
...e.props
|
|
48
|
-
}), n = { ...e.props };
|
|
49
|
-
return K(() => e.props, (e) => {
|
|
50
|
-
Z(e, n) || (t.value = {
|
|
51
|
-
...Ze,
|
|
52
|
-
...e
|
|
53
|
-
}, n = { ...e });
|
|
54
|
-
}, { deep: !0 }), {
|
|
55
|
-
aliasProps: t,
|
|
56
|
-
getLabel: (e) => X(e, t.value.label),
|
|
57
|
-
getValue: (e) => X(e, t.value.value),
|
|
58
|
-
getDisabled: (e) => X(e, t.value.disabled),
|
|
59
|
-
getOptions: (e) => X(e, t.value.options)
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/src/select.mjs
|
|
64
|
-
var $e = re({
|
|
65
|
-
name: String,
|
|
66
|
-
id: String,
|
|
67
|
-
modelValue: {
|
|
68
|
-
type: y([
|
|
69
|
-
Array,
|
|
70
|
-
String,
|
|
71
|
-
Number,
|
|
72
|
-
Boolean,
|
|
73
|
-
Object
|
|
74
|
-
]),
|
|
75
|
-
default: void 0
|
|
76
|
-
},
|
|
77
|
-
autocomplete: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: "off"
|
|
80
|
-
},
|
|
81
|
-
automaticDropdown: Boolean,
|
|
82
|
-
size: i,
|
|
83
|
-
effect: {
|
|
84
|
-
type: y(String),
|
|
85
|
-
default: "light"
|
|
86
|
-
},
|
|
87
|
-
disabled: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: void 0
|
|
90
|
-
},
|
|
91
|
-
clearable: Boolean,
|
|
92
|
-
filterable: Boolean,
|
|
93
|
-
allowCreate: Boolean,
|
|
94
|
-
loading: Boolean,
|
|
95
|
-
popperClass: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: ""
|
|
98
|
-
},
|
|
99
|
-
popperStyle: { type: y([String, Object]) },
|
|
100
|
-
popperOptions: {
|
|
101
|
-
type: y(Object),
|
|
102
|
-
default: () => ({})
|
|
103
|
-
},
|
|
104
|
-
remote: Boolean,
|
|
105
|
-
debounce: {
|
|
106
|
-
type: Number,
|
|
107
|
-
default: 300
|
|
108
|
-
},
|
|
109
|
-
loadingText: String,
|
|
110
|
-
noMatchText: String,
|
|
111
|
-
noDataText: String,
|
|
112
|
-
remoteMethod: { type: y(Function) },
|
|
113
|
-
filterMethod: { type: y(Function) },
|
|
114
|
-
multiple: Boolean,
|
|
115
|
-
multipleLimit: {
|
|
116
|
-
type: Number,
|
|
117
|
-
default: 0
|
|
118
|
-
},
|
|
119
|
-
placeholder: { type: String },
|
|
120
|
-
defaultFirstOption: Boolean,
|
|
121
|
-
reserveKeyword: {
|
|
122
|
-
type: Boolean,
|
|
123
|
-
default: !0
|
|
124
|
-
},
|
|
125
|
-
valueKey: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: "value"
|
|
128
|
-
},
|
|
129
|
-
collapseTags: Boolean,
|
|
130
|
-
collapseTagsTooltip: Boolean,
|
|
131
|
-
tagTooltip: {
|
|
132
|
-
type: y(Object),
|
|
133
|
-
default: () => ({})
|
|
134
|
-
},
|
|
135
|
-
maxCollapseTags: {
|
|
136
|
-
type: Number,
|
|
137
|
-
default: 1
|
|
138
|
-
},
|
|
139
|
-
teleported: de.teleported,
|
|
140
|
-
persistent: {
|
|
141
|
-
type: Boolean,
|
|
142
|
-
default: !0
|
|
143
|
-
},
|
|
144
|
-
clearIcon: {
|
|
145
|
-
type: w,
|
|
146
|
-
default: se
|
|
147
|
-
},
|
|
148
|
-
fitInputWidth: Boolean,
|
|
149
|
-
suffixIcon: {
|
|
150
|
-
type: w,
|
|
151
|
-
default: oe
|
|
152
|
-
},
|
|
153
|
-
tagType: {
|
|
154
|
-
...Te.type,
|
|
155
|
-
default: "info"
|
|
156
|
-
},
|
|
157
|
-
tagEffect: {
|
|
158
|
-
...Te.effect,
|
|
159
|
-
default: "light"
|
|
160
|
-
},
|
|
161
|
-
validateEvent: {
|
|
162
|
-
type: Boolean,
|
|
163
|
-
default: !0
|
|
164
|
-
},
|
|
165
|
-
remoteShowSuffix: Boolean,
|
|
166
|
-
showArrow: {
|
|
167
|
-
type: Boolean,
|
|
168
|
-
default: !0
|
|
169
|
-
},
|
|
170
|
-
offset: {
|
|
171
|
-
type: Number,
|
|
172
|
-
default: 12
|
|
173
|
-
},
|
|
174
|
-
placement: {
|
|
175
|
-
type: y(String),
|
|
176
|
-
values: ue,
|
|
177
|
-
default: "bottom-start"
|
|
178
|
-
},
|
|
179
|
-
fallbackPlacements: {
|
|
180
|
-
type: y(Array),
|
|
181
|
-
default: [
|
|
182
|
-
"bottom-start",
|
|
183
|
-
"top-start",
|
|
184
|
-
"right",
|
|
185
|
-
"left"
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
tabindex: {
|
|
189
|
-
type: [String, Number],
|
|
190
|
-
default: 0
|
|
191
|
-
},
|
|
192
|
-
appendTo: de.appendTo,
|
|
193
|
-
options: { type: y(Array) },
|
|
194
|
-
props: {
|
|
195
|
-
type: y(Object),
|
|
196
|
-
default: () => Ze
|
|
197
|
-
},
|
|
198
|
-
...Se,
|
|
199
|
-
...C(["ariaLabel"])
|
|
200
|
-
});
|
|
201
|
-
we.scroll;
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/src/option.mjs
|
|
204
|
-
var et = "ElOption", tt = re({
|
|
205
|
-
value: {
|
|
206
|
-
type: [
|
|
207
|
-
String,
|
|
208
|
-
Number,
|
|
209
|
-
Boolean,
|
|
210
|
-
Object
|
|
211
|
-
],
|
|
212
|
-
required: !0
|
|
213
|
-
},
|
|
214
|
-
label: { type: [String, Number] },
|
|
215
|
-
created: Boolean,
|
|
216
|
-
disabled: Boolean
|
|
217
|
-
});
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/src/useOption.mjs
|
|
220
|
-
function nt(e, t) {
|
|
221
|
-
let n = L(Xe);
|
|
222
|
-
n || l(et, "usage: <el-select><el-option /></el-select/>");
|
|
223
|
-
let r = L(Ye, { disabled: !1 }), i = k(() => d(T(n.props.modelValue), e.value)), a = k(() => {
|
|
224
|
-
if (n.props.multiple) {
|
|
225
|
-
let e = T(n.props.modelValue ?? []);
|
|
226
|
-
return !i.value && e.length >= n.props.multipleLimit && n.props.multipleLimit > 0;
|
|
227
|
-
} else return !1;
|
|
228
|
-
}), o = k(() => e.label ?? (_(e.value) ? "" : e.value)), s = k(() => e.value || e.label || ""), c = k(() => e.disabled || t.groupDisabled || a.value), u = De(), d = (t = [], r) => {
|
|
229
|
-
if (_(e.value)) {
|
|
230
|
-
let e = n.props.valueKey;
|
|
231
|
-
return t && t.some((t) => ze(X(t, e)) === X(r, e));
|
|
232
|
-
} else return t && t.includes(r);
|
|
233
|
-
};
|
|
234
|
-
return K(() => o.value, () => {
|
|
235
|
-
!e.created && !n.props.remote && n.setSelected();
|
|
236
|
-
}), K(() => e.value, (t, r) => {
|
|
237
|
-
let { remote: i, valueKey: a } = n.props;
|
|
238
|
-
if ((i ? t !== r : !Z(t, r)) && (n.onOptionDestroy(r, u.proxy), n.onOptionCreate(u.proxy)), !e.created && !i) {
|
|
239
|
-
if (a && _(t) && _(r) && t[a] === r[a]) return;
|
|
240
|
-
n.setSelected();
|
|
241
|
-
}
|
|
242
|
-
}), K(() => r.disabled, () => {
|
|
243
|
-
t.groupDisabled = r.disabled;
|
|
244
|
-
}, { immediate: !0 }), {
|
|
245
|
-
select: n,
|
|
246
|
-
currentLabel: o,
|
|
247
|
-
currentValue: s,
|
|
248
|
-
itemSelected: i,
|
|
249
|
-
isDisabled: c,
|
|
250
|
-
hoverItem: () => {
|
|
251
|
-
c.value || (n.states.hoveringIndex = n.optionsArray.indexOf(u.proxy));
|
|
252
|
-
},
|
|
253
|
-
updateOption: (n) => {
|
|
254
|
-
t.visible = new RegExp(x(n), "i").test(String(o.value)) || e.created;
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/src/option.vue_vue_type_script_lang.mjs
|
|
260
|
-
var rt = I({
|
|
261
|
-
name: et,
|
|
262
|
-
componentName: et,
|
|
263
|
-
props: tt,
|
|
264
|
-
setup(e) {
|
|
265
|
-
let t = ie("select"), n = _e(), r = k(() => [
|
|
266
|
-
t.be("dropdown", "item"),
|
|
267
|
-
t.is("disabled", Ve(s)),
|
|
268
|
-
t.is("selected", Ve(o)),
|
|
269
|
-
t.is("hovering", Ve(p))
|
|
270
|
-
]), i = Pe({
|
|
271
|
-
index: -1,
|
|
272
|
-
groupDisabled: !1,
|
|
273
|
-
visible: !0,
|
|
274
|
-
hover: !1
|
|
275
|
-
}), { currentLabel: a, itemSelected: o, isDisabled: s, select: c, hoverItem: l, updateOption: d } = nt(e, i), { visible: f, hover: p } = Be(i), m = De().proxy;
|
|
276
|
-
c.onOptionCreate(m), je(() => {
|
|
277
|
-
let e = m.value;
|
|
278
|
-
R(() => {
|
|
279
|
-
let { selected: t } = c.states, n = t.some((e) => e.value === m.value);
|
|
280
|
-
c.states.cachedOptions.get(e) === m && !n && c.states.cachedOptions.delete(e);
|
|
281
|
-
}), c.onOptionDestroy(e, m);
|
|
282
|
-
});
|
|
283
|
-
function h() {
|
|
284
|
-
s.value || c.handleOptionSelect(m);
|
|
285
|
-
}
|
|
286
|
-
return {
|
|
287
|
-
ns: t,
|
|
288
|
-
id: n,
|
|
289
|
-
containerKls: r,
|
|
290
|
-
currentLabel: a,
|
|
291
|
-
itemSelected: o,
|
|
292
|
-
isDisabled: s,
|
|
293
|
-
select: c,
|
|
294
|
-
visible: f,
|
|
295
|
-
hover: p,
|
|
296
|
-
states: i,
|
|
297
|
-
hoverItem: l,
|
|
298
|
-
handleMousedown: (e) => {
|
|
299
|
-
let t = e.target, n = e.currentTarget;
|
|
300
|
-
for (; t && t !== n;) {
|
|
301
|
-
if (u(t)) return;
|
|
302
|
-
t = t.parentElement;
|
|
303
|
-
}
|
|
304
|
-
e.preventDefault();
|
|
305
|
-
},
|
|
306
|
-
updateOption: d,
|
|
307
|
-
selectOptionClick: h
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
}), Q = [
|
|
311
|
-
"id",
|
|
312
|
-
"aria-disabled",
|
|
313
|
-
"aria-selected"
|
|
314
|
-
];
|
|
315
|
-
function it(e, t, n, r, i, a) {
|
|
316
|
-
return J((B(), M("li", {
|
|
317
|
-
id: e.id,
|
|
318
|
-
class: z(e.containerKls),
|
|
319
|
-
role: "option",
|
|
320
|
-
"aria-disabled": e.isDisabled || void 0,
|
|
321
|
-
"aria-selected": e.itemSelected,
|
|
322
|
-
onMousemove: t[0] || (t[0] = (...t) => e.hoverItem && e.hoverItem(...t)),
|
|
323
|
-
onMousedown: t[1] || (t[1] = (...t) => e.handleMousedown && e.handleMousedown(...t)),
|
|
324
|
-
onClick: t[2] || (t[2] = Y((...t) => e.selectOptionClick && e.selectOptionClick(...t), ["stop"]))
|
|
325
|
-
}, [H(e.$slots, "default", {}, () => [N("span", null, G(e.currentLabel), 1)])], 42, Q)), [[Ue, e.visible]]);
|
|
326
|
-
}
|
|
327
|
-
var at = /* @__PURE__ */ E(rt, [["render", it]]), ot = I({
|
|
328
|
-
name: "ElOptionGroup",
|
|
329
|
-
componentName: "ElOptionGroup",
|
|
330
|
-
props: {
|
|
331
|
-
label: String,
|
|
332
|
-
disabled: Boolean
|
|
333
|
-
},
|
|
334
|
-
setup(e) {
|
|
335
|
-
let t = ie("select"), n = V(), r = De(), i = V([]);
|
|
336
|
-
Ne(Ye, Pe({ ...Be(e) }));
|
|
337
|
-
let a = k(() => i.value.some((e) => e.visible === !0)), o = (e) => {
|
|
338
|
-
var t;
|
|
339
|
-
return e.type.name === "ElOption" && !!((t = e.component) != null && t.proxy);
|
|
340
|
-
}, s = (e) => {
|
|
341
|
-
let t = T(e), n = [];
|
|
342
|
-
return t.forEach((e) => {
|
|
343
|
-
var t;
|
|
344
|
-
Oe(e) && (o(e) ? n.push(e.component.proxy) : m(e.children) && e.children.length ? n.push(...s(e.children)) : (t = e.component) != null && t.subTree && n.push(...s(e.component.subTree)));
|
|
345
|
-
}), n;
|
|
346
|
-
}, c = () => {
|
|
347
|
-
i.value = s(r.subTree);
|
|
348
|
-
};
|
|
349
|
-
return Me(() => {
|
|
350
|
-
c();
|
|
351
|
-
}), f(n, c, {
|
|
352
|
-
attributes: !0,
|
|
353
|
-
subtree: !0,
|
|
354
|
-
childList: !0
|
|
355
|
-
}), {
|
|
356
|
-
groupRef: n,
|
|
357
|
-
visible: a,
|
|
358
|
-
ns: t
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/src/option-group.mjs
|
|
364
|
-
function st(e, t, n, r, i, a) {
|
|
365
|
-
return J((B(), M("ul", {
|
|
366
|
-
ref: "groupRef",
|
|
367
|
-
class: z(e.ns.be("group", "wrap"))
|
|
368
|
-
}, [N("li", { class: z(e.ns.be("group", "title")) }, G(e.label), 3), N("li", null, [N("ul", { class: z(e.ns.b("group")) }, [H(e.$slots, "default")], 2)])], 2)), [[Ue, e.visible]]);
|
|
369
|
-
}
|
|
370
|
-
var ct = /* @__PURE__ */ E(ot, [["render", st]]), lt = I({
|
|
371
|
-
name: "ElSelectDropdown",
|
|
372
|
-
componentName: "ElSelectDropdown",
|
|
373
|
-
setup() {
|
|
374
|
-
let e = L(Xe), t = ie("select"), n = k(() => e.props.popperClass), r = k(() => e.props.multiple), i = k(() => e.props.fitInputWidth), a = V("");
|
|
375
|
-
function o() {
|
|
376
|
-
var t;
|
|
377
|
-
let n = (t = e.selectRef) == null ? void 0 : t.offsetWidth;
|
|
378
|
-
n ? a.value = `${n - 2}px` : a.value = "";
|
|
379
|
-
}
|
|
380
|
-
return Me(() => {
|
|
381
|
-
o(), s(e.selectRef, o);
|
|
382
|
-
}), {
|
|
383
|
-
ns: t,
|
|
384
|
-
minWidth: a,
|
|
385
|
-
popperClass: n,
|
|
386
|
-
isMultiple: r,
|
|
387
|
-
isFitInputWidth: i
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
//#endregion
|
|
392
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/src/select-dropdown.mjs
|
|
393
|
-
function ut(e, t, n, r, i, a) {
|
|
394
|
-
return B(), M("div", {
|
|
395
|
-
class: z([
|
|
396
|
-
e.ns.b("dropdown"),
|
|
397
|
-
e.ns.is("multiple", e.isMultiple),
|
|
398
|
-
e.popperClass
|
|
399
|
-
]),
|
|
400
|
-
style: Ae({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
401
|
-
}, [
|
|
402
|
-
e.$slots.header ? (B(), M("div", {
|
|
403
|
-
key: 0,
|
|
404
|
-
class: z(e.ns.be("dropdown", "header"))
|
|
405
|
-
}, [H(e.$slots, "header")], 2)) : j("v-if", !0),
|
|
406
|
-
H(e.$slots, "default"),
|
|
407
|
-
e.$slots.footer ? (B(), M("div", {
|
|
408
|
-
key: 1,
|
|
409
|
-
class: z(e.ns.be("dropdown", "footer"))
|
|
410
|
-
}, [H(e.$slots, "footer")], 2)) : j("v-if", !0)
|
|
411
|
-
], 6);
|
|
412
|
-
}
|
|
413
|
-
var dt = /* @__PURE__ */ E(lt, [["render", ut]]), ft = (i, l) => {
|
|
414
|
-
let { t: u } = ce(), f = He(), h = _e(), ne = ie("select"), re = ie("input"), v = Pe({
|
|
415
|
-
inputValue: "",
|
|
416
|
-
options: /* @__PURE__ */ new Map(),
|
|
417
|
-
cachedOptions: /* @__PURE__ */ new Map(),
|
|
418
|
-
optionValues: [],
|
|
419
|
-
selected: [],
|
|
420
|
-
selectionWidth: 0,
|
|
421
|
-
collapseItemWidth: 0,
|
|
422
|
-
selectedLabel: "",
|
|
423
|
-
hoveringIndex: -1,
|
|
424
|
-
previousQuery: null,
|
|
425
|
-
inputHovering: !1,
|
|
426
|
-
menuVisibleOnFocus: !1,
|
|
427
|
-
isBeforeHide: !1
|
|
428
|
-
}), y = V(), b = V(), x = V(), oe = V(), S = V(), se = V(), ue = V(), de = V(), fe = V(), ve = V(), Se = V(), C = V(!1), w = V(), E = V(!1), { form: we, formItem: D } = ge(), { inputId: Te } = me(i, { formItemContext: D }), { valueOnClear: Ee, isEmptyValue: O } = xe(i), { isComposing: A, handleCompositionStart: j, handleCompositionUpdate: M, handleCompositionEnd: N } = be({ afterComposition: (e) => nt(e) }), P = he(), { wrapperRef: F, isFocused: I, handleBlur: De } = ye(S, {
|
|
429
|
-
disabled: P,
|
|
430
|
-
afterFocus() {
|
|
431
|
-
i.automaticDropdown && !C.value && (C.value = !0, v.menuVisibleOnFocus = !0);
|
|
432
|
-
},
|
|
433
|
-
beforeBlur(e) {
|
|
434
|
-
var t, n;
|
|
435
|
-
return ((t = x.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n = oe.value) == null ? void 0 : n.isFocusInsideContent(e));
|
|
436
|
-
},
|
|
437
|
-
afterBlur() {
|
|
438
|
-
var e;
|
|
439
|
-
C.value = !1, v.menuVisibleOnFocus = !1, i.validateEvent && (D == null || (e = D.validate) == null || e.call(D, "blur").catch((e) => d(e)));
|
|
440
|
-
}
|
|
441
|
-
}), L = k(() => m(i.modelValue) ? i.modelValue.length > 0 : !O(i.modelValue)), Oe = k(() => (we == null ? void 0 : we.statusIcon) ?? !1), ke = k(() => i.clearable && !P.value && L.value && (I.value || v.inputHovering)), z = k(() => i.remote && i.filterable && !i.remoteShowSuffix ? "" : i.suffixIcon), Ae = k(() => ne.is("reverse", !!(z.value && C.value))), je = k(() => (D == null ? void 0 : D.validateState) || ""), B = k(() => je.value && Ce[je.value]), Ne = k(() => i.remote ? i.debounce : 0), Fe = k(() => i.remote && !v.inputValue && v.options.size === 0), H = k(() => i.loading ? i.loadingText || u("el.select.loading") : i.filterable && v.inputValue && v.options.size > 0 && U.value === 0 ? i.noMatchText || u("el.select.noMatch") : v.options.size === 0 ? i.noDataText || u("el.select.noData") : null), U = k(() => W.value.filter((e) => e.visible).length), W = k(() => {
|
|
442
|
-
let e = Array.from(v.options.values()), t = [];
|
|
443
|
-
return v.optionValues.forEach((n) => {
|
|
444
|
-
let r = e.findIndex((e) => e.value === n);
|
|
445
|
-
r > -1 && t.push(e[r]);
|
|
446
|
-
}), t.length >= e.length ? t : e;
|
|
447
|
-
}), Ie = k(() => Array.from(v.cachedOptions.values())), Le = k(() => {
|
|
448
|
-
let e = W.value.filter((e) => !e.created).some((e) => e.currentLabel === v.inputValue);
|
|
449
|
-
return i.filterable && i.allowCreate && v.inputValue !== "" && !e;
|
|
450
|
-
}), G = () => {
|
|
451
|
-
i.filterable && g(i.filterMethod) || i.filterable && i.remote && g(i.remoteMethod) || W.value.forEach((e) => {
|
|
452
|
-
var t;
|
|
453
|
-
(t = e.updateOption) == null || t.call(e, v.inputValue);
|
|
454
|
-
});
|
|
455
|
-
}, Re = pe(), ze = k(() => ["small"].includes(Re.value) ? "small" : "default"), Be = k({
|
|
456
|
-
get() {
|
|
457
|
-
return C.value && (i.loading || !Fe.value || i.remote && !!f.empty) && (!E.value || !te(v.previousQuery) || v.options.size > 0);
|
|
458
|
-
},
|
|
459
|
-
set(e) {
|
|
460
|
-
C.value = e;
|
|
461
|
-
}
|
|
462
|
-
}), Ve = k(() => {
|
|
463
|
-
if (i.multiple && !ae(i.modelValue)) return T(i.modelValue).length === 0 && !v.inputValue;
|
|
464
|
-
let e = m(i.modelValue) ? i.modelValue[0] : i.modelValue;
|
|
465
|
-
return i.filterable || ae(e) ? !v.inputValue : !0;
|
|
466
|
-
}), Ue = k(() => {
|
|
467
|
-
let e = i.placeholder ?? u("el.select.placeholder");
|
|
468
|
-
return i.multiple || !L.value ? e : v.selectedLabel;
|
|
469
|
-
}), q = k(() => a ? null : "mouseenter");
|
|
470
|
-
K(() => i.modelValue, (e, t) => {
|
|
471
|
-
i.multiple && i.filterable && !i.reserveKeyword && (v.inputValue = "", J("")), Je(), !Z(e, t) && i.validateEvent && (D == null || D.validate("change").catch((e) => d(e)));
|
|
472
|
-
}, {
|
|
473
|
-
flush: "post",
|
|
474
|
-
deep: !0
|
|
475
|
-
}), K(() => C.value, (e) => {
|
|
476
|
-
e ? J(v.inputValue) : (v.inputValue = "", v.previousQuery = null, v.isBeforeHide = !0, v.menuVisibleOnFocus = !1);
|
|
477
|
-
}), K(() => v.options.entries(), () => {
|
|
478
|
-
o && (Je(), i.defaultFirstOption && (i.filterable || i.remote) && U.value && Y());
|
|
479
|
-
}, { flush: "post" }), K([() => v.hoveringIndex, W], ([e]) => {
|
|
480
|
-
ee(e) && e > -1 ? w.value = W.value[e] || {} : w.value = {}, W.value.forEach((e) => {
|
|
481
|
-
e.hover = w.value === e;
|
|
482
|
-
});
|
|
483
|
-
}), We(() => {
|
|
484
|
-
v.isBeforeHide || G();
|
|
485
|
-
});
|
|
486
|
-
let J = (e) => {
|
|
487
|
-
v.previousQuery === e || A.value || (v.previousQuery = e, i.filterable && g(i.filterMethod) ? i.filterMethod(e) : i.filterable && i.remote && g(i.remoteMethod) && i.remoteMethod(e), i.defaultFirstOption && (i.filterable || i.remote) && U.value ? R(Y) : R(Xe));
|
|
488
|
-
}, Y = () => {
|
|
489
|
-
let e = W.value.filter((e) => e.visible && !e.disabled && !e.states.groupDisabled), t = e.find((e) => e.created), n = e[0];
|
|
490
|
-
v.hoveringIndex = lt(W.value.map((e) => e.value), t || n);
|
|
491
|
-
}, Je = () => {
|
|
492
|
-
if (i.multiple) v.selectedLabel = "";
|
|
493
|
-
else {
|
|
494
|
-
let e = Ye(m(i.modelValue) ? i.modelValue[0] : i.modelValue);
|
|
495
|
-
v.selectedLabel = e.currentLabel, v.selected = [e];
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
let e = [];
|
|
499
|
-
ae(i.modelValue) || T(i.modelValue).forEach((t) => {
|
|
500
|
-
e.push(Ye(t));
|
|
501
|
-
}), v.selected = e;
|
|
502
|
-
}, Ye = (e) => {
|
|
503
|
-
let t, n = p(e);
|
|
504
|
-
for (let r = v.cachedOptions.size - 1; r >= 0; r--) {
|
|
505
|
-
let a = Ie.value[r];
|
|
506
|
-
if (n ? X(a.value, i.valueKey) === X(e, i.valueKey) : a.value === e) {
|
|
507
|
-
t = {
|
|
508
|
-
index: W.value.filter((e) => !e.created).indexOf(a),
|
|
509
|
-
value: e,
|
|
510
|
-
currentLabel: a.currentLabel,
|
|
511
|
-
get isDisabled() {
|
|
512
|
-
return a.isDisabled;
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
break;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
return t || {
|
|
519
|
-
index: -1,
|
|
520
|
-
value: e,
|
|
521
|
-
currentLabel: n ? e.label : e ?? ""
|
|
522
|
-
};
|
|
523
|
-
}, Xe = () => {
|
|
524
|
-
let e = v.selected.length;
|
|
525
|
-
if (e > 0) {
|
|
526
|
-
let t = v.selected[e - 1];
|
|
527
|
-
v.hoveringIndex = W.value.findIndex((e) => xt(t) === xt(e));
|
|
528
|
-
} else v.hoveringIndex = -1;
|
|
529
|
-
}, Ze = () => {
|
|
530
|
-
v.selectionWidth = Number.parseFloat(window.getComputedStyle(b.value).width);
|
|
531
|
-
}, Qe = () => {
|
|
532
|
-
v.collapseItemWidth = ve.value.getBoundingClientRect().width;
|
|
533
|
-
}, $e = () => {
|
|
534
|
-
var e, t;
|
|
535
|
-
(e = x.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
536
|
-
}, et = () => {
|
|
537
|
-
var e, t;
|
|
538
|
-
(e = oe.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
539
|
-
}, tt = () => {
|
|
540
|
-
v.inputValue.length > 0 && !C.value && (C.value = !0), J(v.inputValue);
|
|
541
|
-
}, nt = (e) => {
|
|
542
|
-
if (v.inputValue = e.target.value, i.remote) E.value = !0, rt();
|
|
543
|
-
else return tt();
|
|
544
|
-
}, rt = c(() => {
|
|
545
|
-
tt(), E.value = !1;
|
|
546
|
-
}, Ne), Q = (e) => {
|
|
547
|
-
Z(i.modelValue, e) || l(r, e);
|
|
548
|
-
}, it = (e) => Ke(e, (e) => {
|
|
549
|
-
let t = v.cachedOptions.get(e);
|
|
550
|
-
return !(t != null && t.disabled) && !(t != null && t.states.groupDisabled);
|
|
551
|
-
}), at = (r) => {
|
|
552
|
-
let a = t(r);
|
|
553
|
-
if (i.multiple && a !== e.delete && r.target.value.length <= 0) {
|
|
554
|
-
let e = T(i.modelValue).slice(), t = it(e);
|
|
555
|
-
if (t < 0) return;
|
|
556
|
-
let r = e[t];
|
|
557
|
-
e.splice(t, 1), l(n, e), Q(e), l("remove-tag", r);
|
|
558
|
-
}
|
|
559
|
-
}, ot = (e, t) => {
|
|
560
|
-
let r = v.selected.indexOf(t);
|
|
561
|
-
if (r > -1 && !P.value) {
|
|
562
|
-
let e = T(i.modelValue).slice();
|
|
563
|
-
e.splice(r, 1), l(n, e), Q(e), l("remove-tag", t.value);
|
|
564
|
-
}
|
|
565
|
-
e.stopPropagation(), $();
|
|
566
|
-
}, st = (e) => {
|
|
567
|
-
e.stopPropagation();
|
|
568
|
-
let t = i.multiple ? [] : Ee.value;
|
|
569
|
-
if (i.multiple) for (let e of v.selected) e.isDisabled && t.push(e.value);
|
|
570
|
-
l(n, t), Q(t), v.hoveringIndex = -1, C.value = !1, l("clear"), $();
|
|
571
|
-
}, ct = (e) => {
|
|
572
|
-
if (i.multiple) {
|
|
573
|
-
let t = T(i.modelValue ?? []).slice(), r = lt(t, e);
|
|
574
|
-
r > -1 ? t.splice(r, 1) : (i.multipleLimit <= 0 || t.length < i.multipleLimit) && t.push(e.value), l(n, t), Q(t), e.created && J(""), i.filterable && (e.created || !i.reserveKeyword) && (v.inputValue = "");
|
|
575
|
-
} else !Z(i.modelValue, e.value) && l("update:modelValue", e.value), Q(e.value), C.value = !1;
|
|
576
|
-
$(), !C.value && R(() => {
|
|
577
|
-
ut(e);
|
|
578
|
-
});
|
|
579
|
-
}, lt = (e, t) => ae(t) ? -1 : _(t.value) ? e.findIndex((e) => Z(X(e, i.valueKey), xt(t))) : e.indexOf(t.value), ut = (e) => {
|
|
580
|
-
var t;
|
|
581
|
-
let n = m(e) ? e[e.length - 1] : e, r = null;
|
|
582
|
-
if (!qe(n == null ? void 0 : n.value)) {
|
|
583
|
-
let e = W.value.filter((e) => e.value === n.value);
|
|
584
|
-
e.length > 0 && (r = e[0].$el);
|
|
585
|
-
}
|
|
586
|
-
if (x.value && r) {
|
|
587
|
-
var i, a;
|
|
588
|
-
let e = (i = x.value) == null || (i = i.popperRef) == null || (i = i.contentRef) == null || (a = i.querySelector) == null ? void 0 : a.call(i, `.${ne.be("dropdown", "wrap")}`);
|
|
589
|
-
e && le(e, r);
|
|
590
|
-
}
|
|
591
|
-
(t = Se.value) == null || t.handleScroll();
|
|
592
|
-
}, dt = (e) => {
|
|
593
|
-
v.options.set(e.value, e), v.cachedOptions.set(e.value, e);
|
|
594
|
-
}, ft = (e, t) => {
|
|
595
|
-
v.options.get(e) === t && v.options.delete(e);
|
|
596
|
-
}, pt = k(() => {
|
|
597
|
-
var e;
|
|
598
|
-
return (e = x.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
|
|
599
|
-
}), mt = () => {
|
|
600
|
-
v.isBeforeHide = !1, R(() => {
|
|
601
|
-
var e;
|
|
602
|
-
(e = Se.value) == null || e.update(), ut(v.selected);
|
|
603
|
-
});
|
|
604
|
-
}, $ = () => {
|
|
605
|
-
var e;
|
|
606
|
-
(e = S.value) == null || e.focus();
|
|
607
|
-
}, ht = () => {
|
|
608
|
-
var e;
|
|
609
|
-
if (C.value) {
|
|
610
|
-
C.value = !1, R(() => {
|
|
611
|
-
var e;
|
|
612
|
-
return (e = S.value) == null ? void 0 : e.blur();
|
|
613
|
-
});
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
(e = S.value) == null || e.blur();
|
|
617
|
-
}, gt = (e) => {
|
|
618
|
-
st(e);
|
|
619
|
-
}, _t = (e) => {
|
|
620
|
-
if (C.value = !1, I.value) {
|
|
621
|
-
let t = new FocusEvent("blur", e);
|
|
622
|
-
R(() => De(t));
|
|
623
|
-
}
|
|
624
|
-
}, vt = () => {
|
|
625
|
-
v.inputValue.length > 0 ? v.inputValue = "" : C.value = !1;
|
|
626
|
-
}, yt = (e) => {
|
|
627
|
-
var t;
|
|
628
|
-
P.value || i.filterable && C.value && e && !((t = ue.value) != null && t.contains(e.target)) || (a && (v.inputHovering = !0), v.menuVisibleOnFocus ? v.menuVisibleOnFocus = !1 : C.value = !C.value);
|
|
629
|
-
}, bt = () => {
|
|
630
|
-
if (!C.value) yt();
|
|
631
|
-
else {
|
|
632
|
-
let e = W.value[v.hoveringIndex];
|
|
633
|
-
e && !e.isDisabled && ct(e);
|
|
634
|
-
}
|
|
635
|
-
}, xt = (e) => _(e.value) ? X(e.value, i.valueKey) : e.value, St = k(() => W.value.filter((e) => e.visible).every((e) => e.isDisabled)), Ct = k(() => i.multiple ? i.collapseTags ? v.selected.slice(0, i.maxCollapseTags) : v.selected : []), wt = k(() => i.multiple && i.collapseTags ? v.selected.slice(i.maxCollapseTags) : []), Tt = (e) => {
|
|
636
|
-
if (!C.value) {
|
|
637
|
-
C.value = !0;
|
|
638
|
-
return;
|
|
639
|
-
}
|
|
640
|
-
if (!(v.options.size === 0 || U.value === 0 || A.value) && !St.value) {
|
|
641
|
-
e === "next" ? (v.hoveringIndex++, v.hoveringIndex === v.options.size && (v.hoveringIndex = 0)) : e === "prev" && (v.hoveringIndex--, v.hoveringIndex < 0 && (v.hoveringIndex = v.options.size - 1));
|
|
642
|
-
let t = W.value[v.hoveringIndex];
|
|
643
|
-
(t.isDisabled || !t.visible) && Tt(e), R(() => ut(w.value));
|
|
644
|
-
}
|
|
645
|
-
}, Et = (e, t, n, r) => {
|
|
646
|
-
for (let i = t; i >= 0 && i < r; i += n) {
|
|
647
|
-
let t = e[i];
|
|
648
|
-
if (!(t != null && t.isDisabled) && t != null && t.visible) return i;
|
|
649
|
-
}
|
|
650
|
-
return null;
|
|
651
|
-
}, Dt = (e, t) => {
|
|
652
|
-
let n = v.options.size;
|
|
653
|
-
if (n === 0) return;
|
|
654
|
-
let r = Ge(e, 0, n - 1), i = W.value, a = t === "up" ? -1 : 1, o = Et(i, r, a, n) ?? Et(i, r - a, -a, n);
|
|
655
|
-
o != null && (v.hoveringIndex = o, R(() => ut(w.value)));
|
|
656
|
-
}, Ot = (n) => {
|
|
657
|
-
let r = t(n), i = !0;
|
|
658
|
-
switch (r) {
|
|
659
|
-
case e.up:
|
|
660
|
-
Tt("prev");
|
|
661
|
-
break;
|
|
662
|
-
case e.down:
|
|
663
|
-
Tt("next");
|
|
664
|
-
break;
|
|
665
|
-
case e.enter:
|
|
666
|
-
case e.numpadEnter:
|
|
667
|
-
A.value || bt();
|
|
668
|
-
break;
|
|
669
|
-
case e.esc:
|
|
670
|
-
vt();
|
|
671
|
-
break;
|
|
672
|
-
case e.backspace:
|
|
673
|
-
i = !1, at(n);
|
|
674
|
-
return;
|
|
675
|
-
case e.home:
|
|
676
|
-
if (!C.value) return;
|
|
677
|
-
Dt(0, "down");
|
|
678
|
-
break;
|
|
679
|
-
case e.end:
|
|
680
|
-
if (!C.value) return;
|
|
681
|
-
Dt(v.options.size - 1, "up");
|
|
682
|
-
break;
|
|
683
|
-
case e.pageUp:
|
|
684
|
-
if (!C.value) return;
|
|
685
|
-
Dt(v.hoveringIndex - 10, "up");
|
|
686
|
-
break;
|
|
687
|
-
case e.pageDown:
|
|
688
|
-
if (!C.value) return;
|
|
689
|
-
Dt(v.hoveringIndex + 10, "down");
|
|
690
|
-
break;
|
|
691
|
-
default:
|
|
692
|
-
i = !1;
|
|
693
|
-
break;
|
|
694
|
-
}
|
|
695
|
-
i && (n.preventDefault(), n.stopPropagation());
|
|
696
|
-
}, kt = () => {
|
|
697
|
-
if (!b.value) return 0;
|
|
698
|
-
let e = window.getComputedStyle(b.value);
|
|
699
|
-
return Number.parseFloat(e.gap || "6px");
|
|
700
|
-
}, At = k(() => {
|
|
701
|
-
let e = kt(), t = i.filterable ? e + 11 : 0;
|
|
702
|
-
return { maxWidth: `${ve.value && i.maxCollapseTags === 1 ? v.selectionWidth - v.collapseItemWidth - e - t : v.selectionWidth - t}px` };
|
|
703
|
-
}), jt = k(() => ({ maxWidth: `${v.selectionWidth}px` })), Mt = (e) => {
|
|
704
|
-
l("popup-scroll", e);
|
|
705
|
-
};
|
|
706
|
-
s(b, Ze), s(F, $e), s(fe, et), s(ve, Qe);
|
|
707
|
-
let Nt;
|
|
708
|
-
return K(() => Be.value, (e) => {
|
|
709
|
-
e ? Nt = s(de, $e).stop : (Nt == null || Nt(), Nt = void 0), l("visible-change", e);
|
|
710
|
-
}), Me(() => {
|
|
711
|
-
Je();
|
|
712
|
-
}), {
|
|
713
|
-
inputId: Te,
|
|
714
|
-
contentId: h,
|
|
715
|
-
nsSelect: ne,
|
|
716
|
-
nsInput: re,
|
|
717
|
-
states: v,
|
|
718
|
-
isFocused: I,
|
|
719
|
-
expanded: C,
|
|
720
|
-
optionsArray: W,
|
|
721
|
-
hoverOption: w,
|
|
722
|
-
selectSize: Re,
|
|
723
|
-
filteredOptionsCount: U,
|
|
724
|
-
updateTooltip: $e,
|
|
725
|
-
updateTagTooltip: et,
|
|
726
|
-
debouncedOnInputChange: rt,
|
|
727
|
-
onInput: nt,
|
|
728
|
-
deletePrevTag: at,
|
|
729
|
-
deleteTag: ot,
|
|
730
|
-
deleteSelected: st,
|
|
731
|
-
handleOptionSelect: ct,
|
|
732
|
-
scrollToOption: ut,
|
|
733
|
-
hasModelValue: L,
|
|
734
|
-
shouldShowPlaceholder: Ve,
|
|
735
|
-
currentPlaceholder: Ue,
|
|
736
|
-
mouseEnterEventName: q,
|
|
737
|
-
needStatusIcon: Oe,
|
|
738
|
-
showClearBtn: ke,
|
|
739
|
-
iconComponent: z,
|
|
740
|
-
iconReverse: Ae,
|
|
741
|
-
validateState: je,
|
|
742
|
-
validateIcon: B,
|
|
743
|
-
showNewOption: Le,
|
|
744
|
-
updateOptions: G,
|
|
745
|
-
collapseTagSize: ze,
|
|
746
|
-
setSelected: Je,
|
|
747
|
-
selectDisabled: P,
|
|
748
|
-
emptyText: H,
|
|
749
|
-
handleCompositionStart: j,
|
|
750
|
-
handleCompositionUpdate: M,
|
|
751
|
-
handleCompositionEnd: N,
|
|
752
|
-
handleKeydown: Ot,
|
|
753
|
-
onOptionCreate: dt,
|
|
754
|
-
onOptionDestroy: ft,
|
|
755
|
-
handleMenuEnter: mt,
|
|
756
|
-
focus: $,
|
|
757
|
-
blur: ht,
|
|
758
|
-
handleClearClick: gt,
|
|
759
|
-
handleClickOutside: _t,
|
|
760
|
-
handleEsc: vt,
|
|
761
|
-
toggleMenu: yt,
|
|
762
|
-
selectOption: bt,
|
|
763
|
-
getValueKey: xt,
|
|
764
|
-
navigateOptions: Tt,
|
|
765
|
-
dropdownMenuVisible: Be,
|
|
766
|
-
showTagList: Ct,
|
|
767
|
-
collapseTagList: wt,
|
|
768
|
-
popupScroll: Mt,
|
|
769
|
-
getOption: Ye,
|
|
770
|
-
tagStyle: At,
|
|
771
|
-
collapseTagStyle: jt,
|
|
772
|
-
popperRef: pt,
|
|
773
|
-
inputRef: S,
|
|
774
|
-
tooltipRef: x,
|
|
775
|
-
tagTooltipRef: oe,
|
|
776
|
-
prefixRef: se,
|
|
777
|
-
suffixRef: ue,
|
|
778
|
-
selectRef: y,
|
|
779
|
-
wrapperRef: F,
|
|
780
|
-
selectionRef: b,
|
|
781
|
-
scrollbarRef: Se,
|
|
782
|
-
menuRef: de,
|
|
783
|
-
tagMenuRef: fe,
|
|
784
|
-
collapseItemRef: ve
|
|
785
|
-
};
|
|
786
|
-
}, pt = I({
|
|
787
|
-
name: "ElOptions",
|
|
788
|
-
setup(e, { slots: t }) {
|
|
789
|
-
let n = L(Xe), r = [];
|
|
790
|
-
return () => {
|
|
791
|
-
var e, i;
|
|
792
|
-
let a = (e = t.default) == null ? void 0 : e.call(t), o = [];
|
|
793
|
-
function s(e) {
|
|
794
|
-
m(e) && e.forEach((e) => {
|
|
795
|
-
var t, n, r, i;
|
|
796
|
-
let a = (t = (e == null ? void 0 : e.type) || {}) == null ? void 0 : t.name;
|
|
797
|
-
a === "ElOptionGroup" ? s(!h(e.children) && !m(e.children) && g((n = e.children) == null ? void 0 : n.default) ? (r = e.children) == null ? void 0 : r.default() : e.children) : a === "ElOption" ? o.push((i = e.props) == null ? void 0 : i.value) : m(e.children) && s(e.children);
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
return a.length && s((i = a[0]) == null ? void 0 : i.children), Z(o, r) || (r = o, n && (n.states.optionValues = o)), a;
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
}), mt = "ElSelect", $ = /* @__PURE__ */ new WeakMap(), ht = (e) => (...t) => {
|
|
804
|
-
var n, r;
|
|
805
|
-
let i = t[0];
|
|
806
|
-
if (!i || i.includes("Slot \"default\" invoked outside of the render function") && (n = t[2]) != null && n.includes("ElTreeSelect")) return;
|
|
807
|
-
let a = (r = $.get(e)) == null ? void 0 : r.originalWarnHandler;
|
|
808
|
-
if (a) {
|
|
809
|
-
a(...t);
|
|
810
|
-
return;
|
|
811
|
-
}
|
|
812
|
-
console.warn(...t);
|
|
813
|
-
}, gt = (e) => {
|
|
814
|
-
let t = $.get(e);
|
|
815
|
-
return t || (t = {
|
|
816
|
-
originalWarnHandler: e.config.warnHandler,
|
|
817
|
-
handler: ht(e),
|
|
818
|
-
count: 0
|
|
819
|
-
}, $.set(e, t)), t;
|
|
820
|
-
}, _t = I({
|
|
821
|
-
name: mt,
|
|
822
|
-
componentName: mt,
|
|
823
|
-
components: {
|
|
824
|
-
ElSelectMenu: dt,
|
|
825
|
-
ElOption: at,
|
|
826
|
-
ElOptions: pt,
|
|
827
|
-
ElOptionGroup: ct,
|
|
828
|
-
ElTag: Ee,
|
|
829
|
-
ElScrollbar: D,
|
|
830
|
-
ElTooltip: fe,
|
|
831
|
-
ElIcon: S
|
|
832
|
-
},
|
|
833
|
-
directives: { ClickOutside: b },
|
|
834
|
-
props: $e,
|
|
835
|
-
emits: [
|
|
836
|
-
n,
|
|
837
|
-
r,
|
|
838
|
-
"remove-tag",
|
|
839
|
-
"clear",
|
|
840
|
-
"visible-change",
|
|
841
|
-
"focus",
|
|
842
|
-
"blur",
|
|
843
|
-
"popup-scroll"
|
|
844
|
-
],
|
|
845
|
-
setup(e, { emit: t, slots: n }) {
|
|
846
|
-
let r = De(), i = gt(r.appContext);
|
|
847
|
-
i.count += 1, r.appContext.config.warnHandler = i.handler;
|
|
848
|
-
let a = k(() => {
|
|
849
|
-
let { modelValue: t, multiple: n } = e, r = n ? [] : void 0;
|
|
850
|
-
return m(t) ? n ? t : r : n ? r : t;
|
|
851
|
-
}), o = Pe({
|
|
852
|
-
...Be(e),
|
|
853
|
-
modelValue: a
|
|
854
|
-
}), s = ft(o, t), { calculatorRef: c, inputStyle: l } = Je(), { getLabel: u, getValue: d, getOptions: f, getDisabled: p } = Qe(e), h = (e) => ({
|
|
855
|
-
label: u(e),
|
|
856
|
-
value: d(e),
|
|
857
|
-
disabled: p(e)
|
|
858
|
-
}), g = (e) => e.reduce((e, t) => (e.push(t), t.children && t.children.length > 0 && e.push(...g(t.children)), e), []), ee = (e) => {
|
|
859
|
-
ve(e || []).forEach((e) => {
|
|
860
|
-
if (_(e) && (e.type.name === "ElOption" || e.type.name === "ElTree")) {
|
|
861
|
-
var t;
|
|
862
|
-
let n = e.type.name;
|
|
863
|
-
if (n === "ElTree") g(((t = e.props) == null ? void 0 : t.data) || []).forEach((e) => {
|
|
864
|
-
e.currentLabel = e.label ?? (_(e.value) ? "" : e.value), s.onOptionCreate(e);
|
|
865
|
-
});
|
|
866
|
-
else if (n === "ElOption") {
|
|
867
|
-
let t = { ...e.props };
|
|
868
|
-
t.currentLabel = t.label ?? (_(t.value) ? "" : t.value), s.onOptionCreate(t);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
});
|
|
872
|
-
};
|
|
873
|
-
K(() => {
|
|
874
|
-
var t;
|
|
875
|
-
return [e.persistent || s.expanded.value || !n.default || (t = n.default) == null ? void 0 : t.call(n), a.value];
|
|
876
|
-
}, () => {
|
|
877
|
-
var t;
|
|
878
|
-
e.persistent || s.expanded.value || n.default && (s.states.options.clear(), ee((t = n.default) == null ? void 0 : t.call(n)));
|
|
879
|
-
}, { immediate: !0 }), Ne(Xe, Pe({
|
|
880
|
-
props: o,
|
|
881
|
-
states: s.states,
|
|
882
|
-
selectRef: s.selectRef,
|
|
883
|
-
optionsArray: s.optionsArray,
|
|
884
|
-
setSelected: s.setSelected,
|
|
885
|
-
handleOptionSelect: s.handleOptionSelect,
|
|
886
|
-
onOptionCreate: s.onOptionCreate,
|
|
887
|
-
onOptionDestroy: s.onOptionDestroy
|
|
888
|
-
}));
|
|
889
|
-
let te = k(() => e.multiple ? s.states.selected.map((e) => e.currentLabel) : s.states.selectedLabel);
|
|
890
|
-
return je(() => {
|
|
891
|
-
let e = $.get(r.appContext);
|
|
892
|
-
e && (--e.count, e.count <= 0 && (r.appContext.config.warnHandler = e.originalWarnHandler, $.delete(r.appContext)));
|
|
893
|
-
}), {
|
|
894
|
-
...s,
|
|
895
|
-
modelValue: a,
|
|
896
|
-
selectedLabel: te,
|
|
897
|
-
calculatorRef: c,
|
|
898
|
-
inputStyle: l,
|
|
899
|
-
getLabel: u,
|
|
900
|
-
getValue: d,
|
|
901
|
-
getOptions: f,
|
|
902
|
-
getDisabled: p,
|
|
903
|
-
getOptionProps: h
|
|
904
|
-
};
|
|
905
|
-
}
|
|
906
|
-
}), vt = [
|
|
907
|
-
"id",
|
|
908
|
-
"value",
|
|
909
|
-
"name",
|
|
910
|
-
"disabled",
|
|
911
|
-
"autocomplete",
|
|
912
|
-
"tabindex",
|
|
913
|
-
"readonly",
|
|
914
|
-
"aria-activedescendant",
|
|
915
|
-
"aria-controls",
|
|
916
|
-
"aria-expanded",
|
|
917
|
-
"aria-label"
|
|
918
|
-
], yt = ["textContent"], bt = { key: 1 };
|
|
919
|
-
function xt(e, t, n, r, i, a) {
|
|
920
|
-
let o = U("el-tag"), s = U("el-tooltip"), c = U("el-icon"), l = U("el-option"), u = U("el-option-group"), d = U("el-options"), f = U("el-scrollbar"), p = U("el-select-menu"), m = W("click-outside");
|
|
921
|
-
return J((B(), M("div", ke({
|
|
922
|
-
ref: "selectRef",
|
|
923
|
-
class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
|
|
924
|
-
}, { [Re(e.mouseEnterEventName)]: t[11] || (t[11] = (t) => e.states.inputHovering = !0) }, { onMouseleave: t[12] || (t[12] = (t) => e.states.inputHovering = !1) }), [F(s, {
|
|
925
|
-
ref: "tooltipRef",
|
|
926
|
-
visible: e.dropdownMenuVisible,
|
|
927
|
-
placement: e.placement,
|
|
928
|
-
teleported: e.teleported,
|
|
929
|
-
"popper-class": [e.nsSelect.e("popper"), e.popperClass],
|
|
930
|
-
"popper-style": e.popperStyle,
|
|
931
|
-
"popper-options": e.popperOptions,
|
|
932
|
-
"fallback-placements": e.fallbackPlacements,
|
|
933
|
-
effect: e.effect,
|
|
934
|
-
pure: "",
|
|
935
|
-
trigger: "click",
|
|
936
|
-
transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
|
|
937
|
-
"stop-popper-mouse-event": !1,
|
|
938
|
-
"gpu-acceleration": !1,
|
|
939
|
-
persistent: e.persistent,
|
|
940
|
-
"append-to": e.appendTo,
|
|
941
|
-
"show-arrow": e.showArrow,
|
|
942
|
-
offset: e.offset,
|
|
943
|
-
onBeforeShow: e.handleMenuEnter,
|
|
944
|
-
onHide: t[10] || (t[10] = (t) => e.states.isBeforeHide = !1)
|
|
945
|
-
}, {
|
|
946
|
-
default: q(() => {
|
|
947
|
-
var n;
|
|
948
|
-
return [N("div", {
|
|
949
|
-
ref: "wrapperRef",
|
|
950
|
-
class: z([
|
|
951
|
-
e.nsSelect.e("wrapper"),
|
|
952
|
-
e.nsSelect.is("focused", e.isFocused),
|
|
953
|
-
e.nsSelect.is("hovering", e.states.inputHovering),
|
|
954
|
-
e.nsSelect.is("filterable", e.filterable),
|
|
955
|
-
e.nsSelect.is("disabled", e.selectDisabled)
|
|
956
|
-
]),
|
|
957
|
-
onClick: t[7] || (t[7] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["prevent"]))
|
|
958
|
-
}, [
|
|
959
|
-
e.$slots.prefix ? (B(), M("div", {
|
|
960
|
-
key: 0,
|
|
961
|
-
ref: "prefixRef",
|
|
962
|
-
class: z(e.nsSelect.e("prefix"))
|
|
963
|
-
}, [H(e.$slots, "prefix")], 2)) : j("v-if", !0),
|
|
964
|
-
N("div", {
|
|
965
|
-
ref: "selectionRef",
|
|
966
|
-
class: z([e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)])
|
|
967
|
-
}, [
|
|
968
|
-
e.multiple ? H(e.$slots, "tag", {
|
|
969
|
-
key: 0,
|
|
970
|
-
data: e.states.selected,
|
|
971
|
-
deleteTag: e.deleteTag,
|
|
972
|
-
selectDisabled: e.selectDisabled
|
|
973
|
-
}, () => {
|
|
974
|
-
var t, n, r, i, a, c, l, u, d, f, p, m, h;
|
|
975
|
-
return [(B(!0), M(O, null, Fe(e.showTagList, (t) => (B(), M("div", {
|
|
976
|
-
key: e.getValueKey(t),
|
|
977
|
-
class: z(e.nsSelect.e("selected-item"))
|
|
978
|
-
}, [F(o, {
|
|
979
|
-
closable: !e.selectDisabled && !t.isDisabled,
|
|
980
|
-
size: e.collapseTagSize,
|
|
981
|
-
type: e.tagType,
|
|
982
|
-
effect: e.tagEffect,
|
|
983
|
-
"disable-transitions": "",
|
|
984
|
-
style: Ae(e.tagStyle),
|
|
985
|
-
onClose: (n) => e.deleteTag(n, t)
|
|
986
|
-
}, {
|
|
987
|
-
default: q(() => [N("span", { class: z(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
988
|
-
index: t.index,
|
|
989
|
-
label: t.currentLabel,
|
|
990
|
-
value: t.value
|
|
991
|
-
}, () => [P(G(t.currentLabel), 1)])], 2)]),
|
|
992
|
-
_: 2
|
|
993
|
-
}, 1032, [
|
|
994
|
-
"closable",
|
|
995
|
-
"size",
|
|
996
|
-
"type",
|
|
997
|
-
"effect",
|
|
998
|
-
"style",
|
|
999
|
-
"onClose"
|
|
1000
|
-
])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (B(), A(s, {
|
|
1001
|
-
key: 0,
|
|
1002
|
-
ref: "tagTooltipRef",
|
|
1003
|
-
disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
|
|
1004
|
-
"fallback-placements": ((t = e.tagTooltip) == null ? void 0 : t.fallbackPlacements) ?? [
|
|
1005
|
-
"bottom",
|
|
1006
|
-
"top",
|
|
1007
|
-
"right",
|
|
1008
|
-
"left"
|
|
1009
|
-
],
|
|
1010
|
-
effect: ((n = e.tagTooltip) == null ? void 0 : n.effect) ?? e.effect,
|
|
1011
|
-
placement: ((r = e.tagTooltip) == null ? void 0 : r.placement) ?? "bottom",
|
|
1012
|
-
"popper-class": ((i = e.tagTooltip) == null ? void 0 : i.popperClass) ?? e.popperClass,
|
|
1013
|
-
"popper-style": ((a = e.tagTooltip) == null ? void 0 : a.popperStyle) ?? e.popperStyle,
|
|
1014
|
-
teleported: ((c = e.tagTooltip) == null ? void 0 : c.teleported) ?? e.teleported,
|
|
1015
|
-
"append-to": ((l = e.tagTooltip) == null ? void 0 : l.appendTo) ?? e.appendTo,
|
|
1016
|
-
"popper-options": ((u = e.tagTooltip) == null ? void 0 : u.popperOptions) ?? e.popperOptions,
|
|
1017
|
-
transition: (d = e.tagTooltip) == null ? void 0 : d.transition,
|
|
1018
|
-
"show-after": (f = e.tagTooltip) == null ? void 0 : f.showAfter,
|
|
1019
|
-
"hide-after": (p = e.tagTooltip) == null ? void 0 : p.hideAfter,
|
|
1020
|
-
"auto-close": (m = e.tagTooltip) == null ? void 0 : m.autoClose,
|
|
1021
|
-
offset: (h = e.tagTooltip) == null ? void 0 : h.offset
|
|
1022
|
-
}, {
|
|
1023
|
-
default: q(() => [N("div", {
|
|
1024
|
-
ref: "collapseItemRef",
|
|
1025
|
-
class: z(e.nsSelect.e("selected-item"))
|
|
1026
|
-
}, [F(o, {
|
|
1027
|
-
closable: !1,
|
|
1028
|
-
size: e.collapseTagSize,
|
|
1029
|
-
type: e.tagType,
|
|
1030
|
-
effect: e.tagEffect,
|
|
1031
|
-
"disable-transitions": "",
|
|
1032
|
-
style: Ae(e.collapseTagStyle)
|
|
1033
|
-
}, {
|
|
1034
|
-
default: q(() => [N("span", { class: z(e.nsSelect.e("tags-text")) }, " + " + G(e.states.selected.length - e.maxCollapseTags), 3)]),
|
|
1035
|
-
_: 1
|
|
1036
|
-
}, 8, [
|
|
1037
|
-
"size",
|
|
1038
|
-
"type",
|
|
1039
|
-
"effect",
|
|
1040
|
-
"style"
|
|
1041
|
-
])], 2)]),
|
|
1042
|
-
content: q(() => [N("div", {
|
|
1043
|
-
ref: "tagMenuRef",
|
|
1044
|
-
class: z(e.nsSelect.e("selection"))
|
|
1045
|
-
}, [(B(!0), M(O, null, Fe(e.collapseTagList, (t) => (B(), M("div", {
|
|
1046
|
-
key: e.getValueKey(t),
|
|
1047
|
-
class: z(e.nsSelect.e("selected-item"))
|
|
1048
|
-
}, [F(o, {
|
|
1049
|
-
class: "in-tooltip",
|
|
1050
|
-
closable: !e.selectDisabled && !t.isDisabled,
|
|
1051
|
-
size: e.collapseTagSize,
|
|
1052
|
-
type: e.tagType,
|
|
1053
|
-
effect: e.tagEffect,
|
|
1054
|
-
"disable-transitions": "",
|
|
1055
|
-
onClose: (n) => e.deleteTag(n, t)
|
|
1056
|
-
}, {
|
|
1057
|
-
default: q(() => [N("span", { class: z(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
1058
|
-
index: t.index,
|
|
1059
|
-
label: t.currentLabel,
|
|
1060
|
-
value: t.value
|
|
1061
|
-
}, () => [P(G(t.currentLabel), 1)])], 2)]),
|
|
1062
|
-
_: 2
|
|
1063
|
-
}, 1032, [
|
|
1064
|
-
"closable",
|
|
1065
|
-
"size",
|
|
1066
|
-
"type",
|
|
1067
|
-
"effect",
|
|
1068
|
-
"onClose"
|
|
1069
|
-
])], 2))), 128))], 2)]),
|
|
1070
|
-
_: 3
|
|
1071
|
-
}, 8, [
|
|
1072
|
-
"disabled",
|
|
1073
|
-
"fallback-placements",
|
|
1074
|
-
"effect",
|
|
1075
|
-
"placement",
|
|
1076
|
-
"popper-class",
|
|
1077
|
-
"popper-style",
|
|
1078
|
-
"teleported",
|
|
1079
|
-
"append-to",
|
|
1080
|
-
"popper-options",
|
|
1081
|
-
"transition",
|
|
1082
|
-
"show-after",
|
|
1083
|
-
"hide-after",
|
|
1084
|
-
"auto-close",
|
|
1085
|
-
"offset"
|
|
1086
|
-
])) : j("v-if", !0)];
|
|
1087
|
-
}) : j("v-if", !0),
|
|
1088
|
-
N("div", { class: z([
|
|
1089
|
-
e.nsSelect.e("selected-item"),
|
|
1090
|
-
e.nsSelect.e("input-wrapper"),
|
|
1091
|
-
e.nsSelect.is("hidden", !e.filterable || e.selectDisabled || !e.states.inputValue && !e.isFocused)
|
|
1092
|
-
]) }, [N("input", {
|
|
1093
|
-
id: e.inputId,
|
|
1094
|
-
ref: "inputRef",
|
|
1095
|
-
value: e.states.inputValue,
|
|
1096
|
-
type: "text",
|
|
1097
|
-
name: e.name,
|
|
1098
|
-
class: z([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
|
|
1099
|
-
disabled: e.selectDisabled,
|
|
1100
|
-
autocomplete: e.autocomplete,
|
|
1101
|
-
style: Ae(e.inputStyle),
|
|
1102
|
-
tabindex: e.tabindex,
|
|
1103
|
-
role: "combobox",
|
|
1104
|
-
readonly: !e.filterable,
|
|
1105
|
-
spellcheck: "false",
|
|
1106
|
-
"aria-activedescendant": ((n = e.hoverOption) == null ? void 0 : n.id) || "",
|
|
1107
|
-
"aria-controls": e.contentId,
|
|
1108
|
-
"aria-expanded": e.dropdownMenuVisible,
|
|
1109
|
-
"aria-label": e.ariaLabel,
|
|
1110
|
-
"aria-autocomplete": "none",
|
|
1111
|
-
"aria-haspopup": "listbox",
|
|
1112
|
-
onKeydown: t[0] || (t[0] = (...t) => e.handleKeydown && e.handleKeydown(...t)),
|
|
1113
|
-
onCompositionstart: t[1] || (t[1] = (...t) => e.handleCompositionStart && e.handleCompositionStart(...t)),
|
|
1114
|
-
onCompositionupdate: t[2] || (t[2] = (...t) => e.handleCompositionUpdate && e.handleCompositionUpdate(...t)),
|
|
1115
|
-
onCompositionend: t[3] || (t[3] = (...t) => e.handleCompositionEnd && e.handleCompositionEnd(...t)),
|
|
1116
|
-
onInput: t[4] || (t[4] = (...t) => e.onInput && e.onInput(...t)),
|
|
1117
|
-
onChange: t[5] || (t[5] = Y(() => {}, ["stop"])),
|
|
1118
|
-
onClick: t[6] || (t[6] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["stop"]))
|
|
1119
|
-
}, null, 46, vt), e.filterable ? (B(), M("span", {
|
|
1120
|
-
key: 0,
|
|
1121
|
-
ref: "calculatorRef",
|
|
1122
|
-
"aria-hidden": "true",
|
|
1123
|
-
class: z(e.nsSelect.e("input-calculator")),
|
|
1124
|
-
textContent: G(e.states.inputValue)
|
|
1125
|
-
}, null, 10, yt)) : j("v-if", !0)], 2),
|
|
1126
|
-
e.shouldShowPlaceholder ? (B(), M("div", {
|
|
1127
|
-
key: 1,
|
|
1128
|
-
class: z([
|
|
1129
|
-
e.nsSelect.e("selected-item"),
|
|
1130
|
-
e.nsSelect.e("placeholder"),
|
|
1131
|
-
e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
|
|
1132
|
-
])
|
|
1133
|
-
}, [e.hasModelValue ? H(e.$slots, "label", {
|
|
1134
|
-
key: 0,
|
|
1135
|
-
index: e.getOption(e.modelValue).index,
|
|
1136
|
-
label: e.currentPlaceholder,
|
|
1137
|
-
value: e.modelValue
|
|
1138
|
-
}, () => [N("span", null, G(e.currentPlaceholder), 1)]) : (B(), M("span", bt, G(e.currentPlaceholder), 1))], 2)) : j("v-if", !0)
|
|
1139
|
-
], 2),
|
|
1140
|
-
N("div", {
|
|
1141
|
-
ref: "suffixRef",
|
|
1142
|
-
class: z(e.nsSelect.e("suffix"))
|
|
1143
|
-
}, [
|
|
1144
|
-
e.iconComponent && !e.showClearBtn ? (B(), A(c, {
|
|
1145
|
-
key: 0,
|
|
1146
|
-
class: z([
|
|
1147
|
-
e.nsSelect.e("caret"),
|
|
1148
|
-
e.nsSelect.e("icon"),
|
|
1149
|
-
e.iconReverse
|
|
1150
|
-
])
|
|
1151
|
-
}, {
|
|
1152
|
-
default: q(() => [(B(), A(Ie(e.iconComponent)))]),
|
|
1153
|
-
_: 1
|
|
1154
|
-
}, 8, ["class"])) : j("v-if", !0),
|
|
1155
|
-
e.showClearBtn && e.clearIcon ? (B(), A(c, {
|
|
1156
|
-
key: 1,
|
|
1157
|
-
class: z([
|
|
1158
|
-
e.nsSelect.e("caret"),
|
|
1159
|
-
e.nsSelect.e("icon"),
|
|
1160
|
-
e.nsSelect.e("clear")
|
|
1161
|
-
]),
|
|
1162
|
-
onClick: e.handleClearClick
|
|
1163
|
-
}, {
|
|
1164
|
-
default: q(() => [(B(), A(Ie(e.clearIcon)))]),
|
|
1165
|
-
_: 1
|
|
1166
|
-
}, 8, ["class", "onClick"])) : j("v-if", !0),
|
|
1167
|
-
e.validateState && e.validateIcon && e.needStatusIcon ? (B(), A(c, {
|
|
1168
|
-
key: 2,
|
|
1169
|
-
class: z([
|
|
1170
|
-
e.nsInput.e("icon"),
|
|
1171
|
-
e.nsInput.e("validateIcon"),
|
|
1172
|
-
e.nsInput.is("loading", e.validateState === "validating")
|
|
1173
|
-
])
|
|
1174
|
-
}, {
|
|
1175
|
-
default: q(() => [(B(), A(Ie(e.validateIcon)))]),
|
|
1176
|
-
_: 1
|
|
1177
|
-
}, 8, ["class"])) : j("v-if", !0)
|
|
1178
|
-
], 2)
|
|
1179
|
-
], 2)];
|
|
1180
|
-
}),
|
|
1181
|
-
content: q(() => [F(p, { ref: "menuRef" }, {
|
|
1182
|
-
default: q(() => [
|
|
1183
|
-
e.$slots.header ? (B(), M("div", {
|
|
1184
|
-
key: 0,
|
|
1185
|
-
class: z(e.nsSelect.be("dropdown", "header")),
|
|
1186
|
-
onClick: t[8] || (t[8] = Y(() => {}, ["stop"]))
|
|
1187
|
-
}, [H(e.$slots, "header")], 2)) : j("v-if", !0),
|
|
1188
|
-
J(F(f, {
|
|
1189
|
-
id: e.contentId,
|
|
1190
|
-
ref: "scrollbarRef",
|
|
1191
|
-
tag: "ul",
|
|
1192
|
-
"wrap-class": e.nsSelect.be("dropdown", "wrap"),
|
|
1193
|
-
"view-class": e.nsSelect.be("dropdown", "list"),
|
|
1194
|
-
class: z([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
|
|
1195
|
-
role: "listbox",
|
|
1196
|
-
"aria-label": e.ariaLabel,
|
|
1197
|
-
"aria-orientation": "vertical",
|
|
1198
|
-
onScroll: e.popupScroll
|
|
1199
|
-
}, {
|
|
1200
|
-
default: q(() => [e.showNewOption ? (B(), A(l, {
|
|
1201
|
-
key: 0,
|
|
1202
|
-
value: e.states.inputValue,
|
|
1203
|
-
created: !0
|
|
1204
|
-
}, null, 8, ["value"])) : j("v-if", !0), F(d, null, {
|
|
1205
|
-
default: q(() => [H(e.$slots, "default", {}, () => [(B(!0), M(O, null, Fe(e.options, (t, n) => {
|
|
1206
|
-
var r;
|
|
1207
|
-
return B(), M(O, { key: n }, [(r = e.getOptions(t)) != null && r.length ? (B(), A(u, {
|
|
1208
|
-
key: 0,
|
|
1209
|
-
label: e.getLabel(t),
|
|
1210
|
-
disabled: e.getDisabled(t)
|
|
1211
|
-
}, {
|
|
1212
|
-
default: q(() => [(B(!0), M(O, null, Fe(e.getOptions(t), (t) => (B(), A(l, ke({ key: e.getValue(t) }, { ref_for: !0 }, e.getOptionProps(t)), null, 16))), 128))]),
|
|
1213
|
-
_: 2
|
|
1214
|
-
}, 1032, ["label", "disabled"])) : (B(), A(l, ke({
|
|
1215
|
-
key: 1,
|
|
1216
|
-
ref_for: !0
|
|
1217
|
-
}, e.getOptionProps(t)), null, 16))], 64);
|
|
1218
|
-
}), 128))])]),
|
|
1219
|
-
_: 3
|
|
1220
|
-
})]),
|
|
1221
|
-
_: 3
|
|
1222
|
-
}, 8, [
|
|
1223
|
-
"id",
|
|
1224
|
-
"wrap-class",
|
|
1225
|
-
"view-class",
|
|
1226
|
-
"class",
|
|
1227
|
-
"aria-label",
|
|
1228
|
-
"onScroll"
|
|
1229
|
-
]), [[Ue, e.states.options.size > 0 && !e.loading]]),
|
|
1230
|
-
e.$slots.loading && e.loading ? (B(), M("div", {
|
|
1231
|
-
key: 1,
|
|
1232
|
-
class: z(e.nsSelect.be("dropdown", "loading"))
|
|
1233
|
-
}, [H(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (B(), M("div", {
|
|
1234
|
-
key: 2,
|
|
1235
|
-
class: z(e.nsSelect.be("dropdown", "empty"))
|
|
1236
|
-
}, [H(e.$slots, "empty", {}, () => [N("span", null, G(e.emptyText), 1)])], 2)) : j("v-if", !0),
|
|
1237
|
-
e.$slots.footer ? (B(), M("div", {
|
|
1238
|
-
key: 3,
|
|
1239
|
-
class: z(e.nsSelect.be("dropdown", "footer")),
|
|
1240
|
-
onClick: t[9] || (t[9] = Y(() => {}, ["stop"]))
|
|
1241
|
-
}, [H(e.$slots, "footer")], 2)) : j("v-if", !0)
|
|
1242
|
-
]),
|
|
1243
|
-
_: 3
|
|
1244
|
-
}, 512)]),
|
|
1245
|
-
_: 3
|
|
1246
|
-
}, 8, [
|
|
1247
|
-
"visible",
|
|
1248
|
-
"placement",
|
|
1249
|
-
"teleported",
|
|
1250
|
-
"popper-class",
|
|
1251
|
-
"popper-style",
|
|
1252
|
-
"popper-options",
|
|
1253
|
-
"fallback-placements",
|
|
1254
|
-
"effect",
|
|
1255
|
-
"transition",
|
|
1256
|
-
"persistent",
|
|
1257
|
-
"append-to",
|
|
1258
|
-
"show-arrow",
|
|
1259
|
-
"offset",
|
|
1260
|
-
"onBeforeShow"
|
|
1261
|
-
])], 16)), [[
|
|
1262
|
-
m,
|
|
1263
|
-
e.handleClickOutside,
|
|
1264
|
-
e.popperRef
|
|
1265
|
-
]]);
|
|
1266
|
-
}
|
|
1267
|
-
//#endregion
|
|
1268
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/select/index.mjs
|
|
1269
|
-
var St = v(/* @__PURE__ */ E(_t, [["render", xt]]), {
|
|
1270
|
-
Option: at,
|
|
1271
|
-
OptionGroup: ct
|
|
1272
|
-
}), Ct = ne(at);
|
|
1273
|
-
ne(ct);
|
|
1274
|
-
//#endregion
|
|
1275
|
-
export { St as n, Ct as t };
|