@web-utils/component 5.0.0-beta01 → 5.0.0-beta03
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/awesome-button/index.mjs +25 -31
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.CV8b95tW.mjs} +130 -139
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.DH1ypcUw.mjs} +17 -18
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.D6kZl7sm.mjs} +8 -8
- package/chunks/FormCascader.BXL8lKww.mjs +1229 -0
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.DzTPiDNh.mjs} +339 -337
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.B8iPLduv.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.CCGqEapT.mjs} +38 -31
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.t0jbTL_K.mjs} +470 -467
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.uoFQ-xp_.mjs} +53 -51
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.CgyGhetD.mjs} +25 -21
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/ImagePreview.DDFrZgo5.mjs +649 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.DBspwbYo.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.Bq9d6JSz.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.DR-REJN5.mjs} +84 -83
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.Cq9Bvevm.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.BmPnLuu3.mjs} +163 -142
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.GHx4Z2lG.mjs} +48 -43
- package/chunks/button.gVyl7Y__.mjs +927 -0
- package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
- package/chunks/chunk.A6TnG60p.mjs +13 -0
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
- package/chunks/constants.Dw7hXt67.mjs +4 -0
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.CuUc8N2C.mjs} +26 -26
- package/chunks/{form-input.D25eDRMq.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.fYYCXvCs.mjs} +77 -75
- package/chunks/icon.AJYLfX1m.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.niAg1zTC.mjs} +31 -39
- package/chunks/{init.DwpukyOB.mjs → init.CtUEiRbU.mjs} +6 -6
- package/chunks/{input.PejnqwSH.mjs → input.B_wW4aF-.mjs} +107 -106
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.BCmee5N0.mjs → message.DnTACuzV.mjs} +76 -75
- package/chunks/{overlay.DubSnqma.mjs → overlay.Rhu_rfhx.mjs} +5 -5
- package/chunks/{radio.BotKXqJr.mjs → radio.BMkZBhl5.mjs} +45 -45
- package/chunks/{scroll.CzORc5Zk.mjs → scroll.BJIpzi2Q.mjs} +2 -2
- package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
- package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
- package/chunks/{tag.DPi-PLbb.mjs → tag.B6yUaGj-.mjs} +25 -25
- package/chunks/{teleport._VGEzK4d.mjs → teleport.87mkIv8m.mjs} +3 -3
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.Dzjs7LZ8.mjs} +108 -108
- package/chunks/typescript.D0a40c7B.mjs +4 -0
- package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
- package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
- package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
- package/chunks/use-empty-values.CxYKjLV9.mjs +81 -0
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/{use-id.CFO5NeoV.mjs → use-id.CyzdvfQn.mjs} +3 -3
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.CBoQRFjH.mjs} +12 -87
- package/chunks/{use-size.DxrwTUwf.mjs → use-size.CoorvF12.mjs} +2 -2
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.D_SioRnx.mjs → vnode.raM3wMJz.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +39 -38
- package/data-box/style.css +1 -1
- package/data-card/style.css +1 -1
- package/data-display/style.css +1 -1
- package/data-icons/style.css +1 -1
- package/data-imgtext/style.css +1 -1
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-progress/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +18 -20
- package/error-view/index.mjs +17 -19
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +10 -9
- package/form-input-id-card/index.mjs +10 -9
- package/form-input-phone-number/index.mjs +11 -10
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +6 -6
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +4 -4
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/form-view/index.mjs +13 -8
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +3 -7
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -2
- package/fy-input-icon/index.mjs +37 -32
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +3 -3
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +5 -5
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +2 -2
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/guide-steps/index.mjs +1 -1
- package/helper-function.d.ts +3 -3
- package/helper-function.mjs +36 -20
- package/iframe-window/index.mjs +30 -29
- package/image-cropper/index.mjs +144 -163
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +2 -187
- package/index.d.ts +1 -2
- package/index.mjs +153 -154
- package/input-number-range/index.mjs +0 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/nav-bar/index.mjs +1 -1
- package/notice/index.mjs +1 -4
- package/package.json +12 -14
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +2 -2
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -8
- package/present-view/index.mjs +18 -13
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -4
- package/sub-table/index.mjs +2 -5
- package/sub-table-plus/index.mjs +3 -6
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +28 -24
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +2 -146
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +265 -363
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/FormCascader.CaM-oEhv.mjs +0 -1226
- package/chunks/checkbox.emIuFmnt.mjs +0 -437
- package/chunks/confirmable-mixin.BBil7dto.mjs +0 -1646
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-global-config.C9hs-O_x.mjs +0 -56
- package/chunks/validator.C4-z_t9p.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as
|
|
3
|
-
import { c as
|
|
4
|
-
import { r as
|
|
5
|
-
import { r as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { n as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import "./chunk.A6TnG60p.mjs";
|
|
2
|
+
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
3
|
+
import { c as t, l as n, n as r, r as i } from "./use-empty-values.CxYKjLV9.mjs";
|
|
4
|
+
import { r as a, t as o } from "./event.ZRs4J5TN.mjs";
|
|
5
|
+
import { r as s } from "./use-size.CoorvF12.mjs";
|
|
6
|
+
import { _ as c, d as l, h as u, m as d, o as f, p, r as m, t as h } from "./install.BJl2MN77.mjs";
|
|
7
|
+
import { B as ee, C as te, E as ne, L as re, M as g, O as ie, R as ae, S as oe, b as _, j as v, k as se, o as y, y as b } from "./style.CraPDfJA.mjs";
|
|
8
|
+
import { n as ce } from "./use-locale.CBoQRFjH.mjs";
|
|
9
|
+
import { n as x } from "./focus-trap.CuUc8N2C.mjs";
|
|
10
|
+
import { n as le } from "./scroll.BJIpzi2Q.mjs";
|
|
11
|
+
import { n as S, r as ue, t as de } from "./tooltip.Dzjs7LZ8.mjs";
|
|
12
|
+
import { i as fe, n as pe, r as me, t as he } from "./use-form-item.DMDTkMq9.mjs";
|
|
13
|
+
import { t as ge } from "./use-id.CyzdvfQn.mjs";
|
|
14
|
+
import { n as _e } from "./vnode.raM3wMJz.mjs";
|
|
15
|
+
import { n as ve, t as ye } from "./use-composition.BMPJBvYs.mjs";
|
|
16
|
+
import { t as be } from "./use-aria.B9uqqWAE.mjs";
|
|
17
|
+
import { l as xe, n as Se, t as C } from "./icon.niAg1zTC.mjs";
|
|
18
|
+
import { a as w, i as Ce } from "./icon.AJYLfX1m.mjs";
|
|
19
|
+
import { r as T } from "./form-item.fYYCXvCs.mjs";
|
|
20
|
+
import { n as we, t as Te } from "./scrollbar.CvxOszy3.mjs";
|
|
21
|
+
import { n as E, r as Ee, t as De } from "./tag.B6yUaGj-.mjs";
|
|
22
|
+
import { d as Oe, n as ke, u as Ae } from "./util.fjuzrmWz.mjs";
|
|
23
|
+
import { t as je } from "./form-input.DdSb45Tz.mjs";
|
|
24
|
+
import { t as Me } from "./form-pick.BEC7lrNH.mjs";
|
|
25
|
+
import { t as Ne } from "./dictionary.DXYdZefs.mjs";
|
|
26
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as Pe, createVNode as N, defineComponent as Fe, getCurrentInstance as P, inject as Ie, isVNode as Le, mergeProps as Re, nextTick as F, normalizeClass as I, normalizeStyle as L, onBeforeUnmount as R, onMounted as ze, openBlock as z, provide as Be, reactive as Ve, ref as B, renderList as V, renderSlot as H, resolveComponent as U, resolveDirective as He, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as W, toHandlerKey as Ge, toHandlers as Ke, toRaw as qe, toRefs as G, unref as Je, useSlots as Ye, vShow as Xe, watch as K, watchEffect as Ze, withCtx as q, withDirectives as J, withModifiers as Y } from "vue";
|
|
27
|
+
import { isNumber as Qe, isPlainObject as $e, isString as et } from "@web-utils/core";
|
|
28
|
+
import { clamp as tt, findLastIndex as nt, get as X, isEqual as Z, isNil as rt } from "lodash-unified";
|
|
29
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
|
|
30
|
+
function it() {
|
|
31
|
+
let e = We(), t = B(0), n = O(() => ({ minWidth: `${Math.max(t.value, 11)}px` }));
|
|
29
32
|
return _(e, () => {
|
|
30
33
|
var n;
|
|
31
34
|
t.value = ((n = e.value) == null ? void 0 : n.getBoundingClientRect().width) ?? 0;
|
|
@@ -36,34 +39,34 @@ function rt() {
|
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
41
|
//#endregion
|
|
39
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
40
|
-
var
|
|
42
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/token.mjs
|
|
43
|
+
var at = Symbol("ElSelectGroup"), ot = Symbol("ElSelect"), st = {
|
|
41
44
|
label: "label",
|
|
42
45
|
value: "value",
|
|
43
46
|
disabled: "disabled",
|
|
44
47
|
options: "options"
|
|
45
48
|
};
|
|
46
|
-
function
|
|
47
|
-
let t =
|
|
48
|
-
...
|
|
49
|
+
function ct(e) {
|
|
50
|
+
let t = B({
|
|
51
|
+
...st,
|
|
49
52
|
...e.props
|
|
50
53
|
}), n = { ...e.props };
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
...
|
|
54
|
+
return K(() => e.props, (e) => {
|
|
55
|
+
Z(e, n) || (t.value = {
|
|
56
|
+
...st,
|
|
54
57
|
...e
|
|
55
58
|
}, n = { ...e });
|
|
56
59
|
}, { deep: !0 }), {
|
|
57
60
|
aliasProps: t,
|
|
58
|
-
getLabel: (e) =>
|
|
59
|
-
getValue: (e) =>
|
|
60
|
-
getDisabled: (e) =>
|
|
61
|
-
getOptions: (e) =>
|
|
61
|
+
getLabel: (e) => X(e, t.value.label),
|
|
62
|
+
getValue: (e) => X(e, t.value.value),
|
|
63
|
+
getDisabled: (e) => X(e, t.value.disabled),
|
|
64
|
+
getOptions: (e) => X(e, t.value.options)
|
|
62
65
|
};
|
|
63
66
|
}
|
|
64
67
|
//#endregion
|
|
65
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
66
|
-
var
|
|
68
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/select.mjs
|
|
69
|
+
var lt = v({
|
|
67
70
|
name: String,
|
|
68
71
|
id: String,
|
|
69
72
|
modelValue: {
|
|
@@ -81,7 +84,7 @@ var ct = v({
|
|
|
81
84
|
default: "off"
|
|
82
85
|
},
|
|
83
86
|
automaticDropdown: Boolean,
|
|
84
|
-
size:
|
|
87
|
+
size: s,
|
|
85
88
|
effect: {
|
|
86
89
|
type: g(String),
|
|
87
90
|
default: "light"
|
|
@@ -144,13 +147,13 @@ var ct = v({
|
|
|
144
147
|
default: !0
|
|
145
148
|
},
|
|
146
149
|
clearIcon: {
|
|
147
|
-
type:
|
|
148
|
-
default:
|
|
150
|
+
type: w,
|
|
151
|
+
default: xe
|
|
149
152
|
},
|
|
150
153
|
fitInputWidth: Boolean,
|
|
151
154
|
suffixIcon: {
|
|
152
|
-
type:
|
|
153
|
-
default:
|
|
155
|
+
type: w,
|
|
156
|
+
default: Se
|
|
154
157
|
},
|
|
155
158
|
tagType: {
|
|
156
159
|
...E.type,
|
|
@@ -195,15 +198,15 @@ var ct = v({
|
|
|
195
198
|
options: { type: g(Array) },
|
|
196
199
|
props: {
|
|
197
200
|
type: g(Object),
|
|
198
|
-
default: () =>
|
|
201
|
+
default: () => st
|
|
199
202
|
},
|
|
200
|
-
...
|
|
203
|
+
...i,
|
|
201
204
|
...be(["ariaLabel"])
|
|
202
205
|
});
|
|
203
206
|
we.scroll;
|
|
204
207
|
//#endregion
|
|
205
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
206
|
-
var
|
|
208
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option.mjs
|
|
209
|
+
var ut = "ElOption", Q = v({
|
|
207
210
|
value: {
|
|
208
211
|
type: [
|
|
209
212
|
String,
|
|
@@ -218,86 +221,86 @@ var lt = "ElOption", ut = v({
|
|
|
218
221
|
disabled: Boolean
|
|
219
222
|
});
|
|
220
223
|
//#endregion
|
|
221
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
224
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/useOption.mjs
|
|
222
225
|
function dt(e, t) {
|
|
223
|
-
let n =
|
|
224
|
-
n ||
|
|
225
|
-
let
|
|
226
|
+
let n = Ie(ot);
|
|
227
|
+
n || se(ut, "usage: <el-select><el-option /></el-select/>");
|
|
228
|
+
let r = Ie(at, { disabled: !1 }), i = O(() => u(T(n.props.modelValue), e.value)), a = O(() => {
|
|
226
229
|
if (n.props.multiple) {
|
|
227
230
|
let e = T(n.props.modelValue ?? []);
|
|
228
|
-
return !
|
|
231
|
+
return !i.value && e.length >= n.props.multipleLimit && n.props.multipleLimit > 0;
|
|
229
232
|
} else return !1;
|
|
230
|
-
}),
|
|
231
|
-
if (
|
|
233
|
+
}), o = O(() => e.label ?? (d(e.value) ? "" : e.value)), s = O(() => e.value || e.label || ""), c = O(() => e.disabled || t.groupDisabled || a.value), l = P(), u = (t = [], r) => {
|
|
234
|
+
if (d(e.value)) {
|
|
232
235
|
let e = n.props.valueKey;
|
|
233
|
-
return t && t.some((t) =>
|
|
234
|
-
} else return t && t.includes(
|
|
236
|
+
return t && t.some((t) => qe(X(t, e)) === X(r, e));
|
|
237
|
+
} else return t && t.includes(r);
|
|
235
238
|
};
|
|
236
|
-
return
|
|
239
|
+
return K(() => o.value, () => {
|
|
237
240
|
!e.created && !n.props.remote && n.setSelected();
|
|
238
|
-
}),
|
|
239
|
-
let { remote:
|
|
240
|
-
if ((
|
|
241
|
-
if (
|
|
241
|
+
}), K(() => e.value, (t, r) => {
|
|
242
|
+
let { remote: i, valueKey: a } = n.props;
|
|
243
|
+
if ((i ? t !== r : !Z(t, r)) && (n.onOptionDestroy(r, l.proxy), n.onOptionCreate(l.proxy)), !e.created && !i) {
|
|
244
|
+
if (a && d(t) && d(r) && t[a] === r[a]) return;
|
|
242
245
|
n.setSelected();
|
|
243
246
|
}
|
|
244
|
-
}),
|
|
245
|
-
t.groupDisabled =
|
|
247
|
+
}), K(() => r.disabled, () => {
|
|
248
|
+
t.groupDisabled = r.disabled;
|
|
246
249
|
}, { immediate: !0 }), {
|
|
247
250
|
select: n,
|
|
248
|
-
currentLabel:
|
|
249
|
-
currentValue:
|
|
250
|
-
itemSelected:
|
|
251
|
-
isDisabled:
|
|
251
|
+
currentLabel: o,
|
|
252
|
+
currentValue: s,
|
|
253
|
+
itemSelected: i,
|
|
254
|
+
isDisabled: c,
|
|
252
255
|
hoverItem: () => {
|
|
253
|
-
|
|
256
|
+
c.value || (n.states.hoveringIndex = n.optionsArray.indexOf(l.proxy));
|
|
254
257
|
},
|
|
255
258
|
updateOption: (n) => {
|
|
256
|
-
t.visible = new RegExp(y(n), "i").test(String(
|
|
259
|
+
t.visible = new RegExp(y(n), "i").test(String(o.value)) || e.created;
|
|
257
260
|
}
|
|
258
261
|
};
|
|
259
262
|
}
|
|
260
263
|
//#endregion
|
|
261
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
262
|
-
var ft =
|
|
263
|
-
name:
|
|
264
|
-
componentName:
|
|
265
|
-
props:
|
|
264
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option.vue_vue_type_script_lang.mjs
|
|
265
|
+
var ft = Fe({
|
|
266
|
+
name: ut,
|
|
267
|
+
componentName: ut,
|
|
268
|
+
props: Q,
|
|
266
269
|
setup(e) {
|
|
267
|
-
let t =
|
|
270
|
+
let t = f("select"), n = ge(), r = O(() => [
|
|
268
271
|
t.be("dropdown", "item"),
|
|
269
|
-
t.is("disabled",
|
|
270
|
-
t.is("selected",
|
|
271
|
-
t.is("hovering",
|
|
272
|
-
]),
|
|
272
|
+
t.is("disabled", Je(s)),
|
|
273
|
+
t.is("selected", Je(o)),
|
|
274
|
+
t.is("hovering", Je(p))
|
|
275
|
+
]), i = Ve({
|
|
273
276
|
index: -1,
|
|
274
277
|
groupDisabled: !1,
|
|
275
278
|
visible: !0,
|
|
276
279
|
hover: !1
|
|
277
|
-
}), { currentLabel:
|
|
278
|
-
|
|
280
|
+
}), { currentLabel: a, itemSelected: o, isDisabled: s, select: c, hoverItem: l, updateOption: u } = dt(e, i), { visible: d, hover: p } = G(i), m = P().proxy;
|
|
281
|
+
c.onOptionCreate(m), R(() => {
|
|
279
282
|
let e = m.value;
|
|
280
|
-
|
|
281
|
-
let { selected: t } =
|
|
282
|
-
|
|
283
|
-
}),
|
|
283
|
+
F(() => {
|
|
284
|
+
let { selected: t } = c.states, n = t.some((e) => e.value === m.value);
|
|
285
|
+
c.states.cachedOptions.get(e) === m && !n && c.states.cachedOptions.delete(e);
|
|
286
|
+
}), c.onOptionDestroy(e, m);
|
|
284
287
|
});
|
|
285
288
|
function h() {
|
|
286
|
-
|
|
289
|
+
s.value || c.handleOptionSelect(m);
|
|
287
290
|
}
|
|
288
291
|
return {
|
|
289
292
|
ns: t,
|
|
290
293
|
id: n,
|
|
291
294
|
containerKls: r,
|
|
292
|
-
currentLabel:
|
|
293
|
-
itemSelected:
|
|
294
|
-
isDisabled:
|
|
295
|
-
select:
|
|
296
|
-
visible:
|
|
295
|
+
currentLabel: a,
|
|
296
|
+
itemSelected: o,
|
|
297
|
+
isDisabled: s,
|
|
298
|
+
select: c,
|
|
299
|
+
visible: d,
|
|
297
300
|
hover: p,
|
|
298
|
-
states:
|
|
299
|
-
hoverItem:
|
|
300
|
-
updateOption:
|
|
301
|
+
states: i,
|
|
302
|
+
hoverItem: l,
|
|
303
|
+
updateOption: u,
|
|
301
304
|
selectOptionClick: h
|
|
302
305
|
};
|
|
303
306
|
}
|
|
@@ -307,17 +310,17 @@ var ft = Pe({
|
|
|
307
310
|
"aria-selected"
|
|
308
311
|
];
|
|
309
312
|
function mt(e, t, n, r, i, a) {
|
|
310
|
-
return
|
|
313
|
+
return J((z(), j("li", {
|
|
311
314
|
id: e.id,
|
|
312
|
-
class:
|
|
315
|
+
class: I(e.containerKls),
|
|
313
316
|
role: "option",
|
|
314
317
|
"aria-disabled": e.isDisabled || void 0,
|
|
315
318
|
"aria-selected": e.itemSelected,
|
|
316
319
|
onMousemove: t[0] || (t[0] = (...t) => e.hoverItem && e.hoverItem(...t)),
|
|
317
|
-
onClick: t[1] || (t[1] =
|
|
318
|
-
}, [
|
|
320
|
+
onClick: t[1] || (t[1] = Y((...t) => e.selectOptionClick && e.selectOptionClick(...t), ["stop"]))
|
|
321
|
+
}, [H(e.$slots, "default", {}, () => [M("span", null, W(e.currentLabel), 1)])], 42, pt)), [[Xe, e.visible]]);
|
|
319
322
|
}
|
|
320
|
-
var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht =
|
|
323
|
+
var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = Fe({
|
|
321
324
|
name: "ElOptionGroup",
|
|
322
325
|
componentName: "ElOptionGroup",
|
|
323
326
|
props: {
|
|
@@ -325,86 +328,86 @@ var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = Pe({
|
|
|
325
328
|
disabled: Boolean
|
|
326
329
|
},
|
|
327
330
|
setup(e) {
|
|
328
|
-
let
|
|
329
|
-
|
|
330
|
-
let
|
|
331
|
+
let t = f("select"), n = B(), r = P(), i = B([]);
|
|
332
|
+
Be(at, Ve({ ...G(e) }));
|
|
333
|
+
let a = O(() => i.value.some((e) => e.visible === !0)), o = (e) => {
|
|
331
334
|
var t;
|
|
332
335
|
return e.type.name === "ElOption" && !!((t = e.component) != null && t.proxy);
|
|
333
|
-
},
|
|
334
|
-
let
|
|
335
|
-
return
|
|
336
|
-
var
|
|
337
|
-
|
|
338
|
-
}),
|
|
339
|
-
},
|
|
340
|
-
|
|
336
|
+
}, s = (e) => {
|
|
337
|
+
let t = T(e), n = [];
|
|
338
|
+
return t.forEach((e) => {
|
|
339
|
+
var t;
|
|
340
|
+
Le(e) && (o(e) ? n.push(e.component.proxy) : l(e.children) && e.children.length ? n.push(...s(e.children)) : (t = e.component) != null && t.subTree && n.push(...s(e.component.subTree)));
|
|
341
|
+
}), n;
|
|
342
|
+
}, c = () => {
|
|
343
|
+
i.value = s(r.subTree);
|
|
341
344
|
};
|
|
342
|
-
return
|
|
343
|
-
|
|
344
|
-
}), b(
|
|
345
|
+
return ze(() => {
|
|
346
|
+
c();
|
|
347
|
+
}), b(n, c, {
|
|
345
348
|
attributes: !0,
|
|
346
349
|
subtree: !0,
|
|
347
350
|
childList: !0
|
|
348
351
|
}), {
|
|
349
|
-
groupRef:
|
|
350
|
-
visible:
|
|
351
|
-
ns:
|
|
352
|
+
groupRef: n,
|
|
353
|
+
visible: a,
|
|
354
|
+
ns: t
|
|
352
355
|
};
|
|
353
356
|
}
|
|
354
357
|
});
|
|
355
358
|
//#endregion
|
|
356
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
359
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option-group.mjs
|
|
357
360
|
function gt(e, t, n, r, i, a) {
|
|
358
|
-
return
|
|
361
|
+
return J((z(), j("ul", {
|
|
359
362
|
ref: "groupRef",
|
|
360
|
-
class:
|
|
361
|
-
}, [
|
|
363
|
+
class: I(e.ns.be("group", "wrap"))
|
|
364
|
+
}, [M("li", { class: I(e.ns.be("group", "title")) }, W(e.label), 3), M("li", null, [M("ul", { class: I(e.ns.b("group")) }, [H(e.$slots, "default")], 2)])], 2)), [[Xe, e.visible]]);
|
|
362
365
|
}
|
|
363
|
-
var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt =
|
|
366
|
+
var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt = Fe({
|
|
364
367
|
name: "ElSelectDropdown",
|
|
365
368
|
componentName: "ElSelectDropdown",
|
|
366
369
|
setup() {
|
|
367
|
-
let e =
|
|
368
|
-
function
|
|
370
|
+
let e = Ie(ot), t = f("select"), n = O(() => e.props.popperClass), r = O(() => e.props.multiple), i = O(() => e.props.fitInputWidth), a = B("");
|
|
371
|
+
function o() {
|
|
369
372
|
var t;
|
|
370
373
|
let n = (t = e.selectRef) == null ? void 0 : t.offsetWidth;
|
|
371
|
-
n ?
|
|
374
|
+
n ? a.value = `${n - 2}px` : a.value = "";
|
|
372
375
|
}
|
|
373
|
-
return
|
|
374
|
-
|
|
376
|
+
return ze(() => {
|
|
377
|
+
o(), _(e.selectRef, o);
|
|
375
378
|
}), {
|
|
376
379
|
ns: t,
|
|
377
|
-
minWidth:
|
|
380
|
+
minWidth: a,
|
|
378
381
|
popperClass: n,
|
|
379
382
|
isMultiple: r,
|
|
380
|
-
isFitInputWidth:
|
|
383
|
+
isFitInputWidth: i
|
|
381
384
|
};
|
|
382
385
|
}
|
|
383
386
|
});
|
|
384
387
|
//#endregion
|
|
385
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
388
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/select-dropdown.mjs
|
|
386
389
|
function yt(e, t, n, r, i, a) {
|
|
387
|
-
return
|
|
388
|
-
class:
|
|
390
|
+
return z(), j("div", {
|
|
391
|
+
class: I([
|
|
389
392
|
e.ns.b("dropdown"),
|
|
390
393
|
e.ns.is("multiple", e.isMultiple),
|
|
391
394
|
e.popperClass
|
|
392
395
|
]),
|
|
393
|
-
style:
|
|
396
|
+
style: L({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
394
397
|
}, [
|
|
395
|
-
e.$slots.header ? (
|
|
398
|
+
e.$slots.header ? (z(), j("div", {
|
|
396
399
|
key: 0,
|
|
397
|
-
class:
|
|
398
|
-
}, [
|
|
399
|
-
|
|
400
|
-
e.$slots.footer ? (
|
|
400
|
+
class: I(e.ns.be("dropdown", "header"))
|
|
401
|
+
}, [H(e.$slots, "header")], 2)) : A("v-if", !0),
|
|
402
|
+
H(e.$slots, "default"),
|
|
403
|
+
e.$slots.footer ? (z(), j("div", {
|
|
401
404
|
key: 1,
|
|
402
|
-
class:
|
|
403
|
-
}, [
|
|
405
|
+
class: I(e.ns.be("dropdown", "footer"))
|
|
406
|
+
}, [H(e.$slots, "footer")], 2)) : A("v-if", !0)
|
|
404
407
|
], 6);
|
|
405
408
|
}
|
|
406
|
-
var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e,
|
|
407
|
-
let { t: s } =
|
|
409
|
+
var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, i) => {
|
|
410
|
+
let { t: s } = ce(), c = Ye(), m = ge(), h = f("select"), g = f("input"), v = Ve({
|
|
408
411
|
inputValue: "",
|
|
409
412
|
options: /* @__PURE__ */ new Map(),
|
|
410
413
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -418,8 +421,8 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
418
421
|
inputHovering: !1,
|
|
419
422
|
menuVisibleOnFocus: !1,
|
|
420
423
|
isBeforeHide: !1
|
|
421
|
-
}),
|
|
422
|
-
disabled:
|
|
424
|
+
}), se = B(), y = B(), b = B(), x = B(), S = B(), ue = B(), de = B(), _e = B(), be = B(), xe = B(), Se = B(), C = B(!1), w = B(), we = B(!1), { form: Te, formItem: E } = he(), { inputId: Ee } = pe(e, { formItemContext: E }), { valueOnClear: De, isEmptyValue: Oe } = r(e), { isComposing: ke, handleCompositionStart: Ae, handleCompositionUpdate: je, handleCompositionEnd: Me } = ye({ afterComposition: (e) => $e(e) }), Ne = me(), { wrapperRef: D, isFocused: k, handleBlur: A } = ve(S, {
|
|
425
|
+
disabled: Ne,
|
|
423
426
|
afterFocus() {
|
|
424
427
|
e.automaticDropdown && !C.value && (C.value = !0, v.menuVisibleOnFocus = !0);
|
|
425
428
|
},
|
|
@@ -429,76 +432,76 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
429
432
|
},
|
|
430
433
|
afterBlur() {
|
|
431
434
|
var t;
|
|
432
|
-
C.value = !1, v.menuVisibleOnFocus = !1, e.validateEvent && (E == null || (t = E.validate) == null || t.call(E, "blur").catch((e) =>
|
|
435
|
+
C.value = !1, v.menuVisibleOnFocus = !1, e.validateEvent && (E == null || (t = E.validate) == null || t.call(E, "blur").catch((e) => ie(e)));
|
|
433
436
|
}
|
|
434
|
-
}),
|
|
437
|
+
}), j = O(() => l(e.modelValue) ? e.modelValue.length > 0 : !Oe(e.modelValue)), M = O(() => (Te == null ? void 0 : Te.statusIcon) ?? !1), Pe = O(() => e.clearable && !Ne.value && j.value && (k.value || v.inputHovering)), N = O(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Fe = O(() => h.is("reverse", !!(N.value && C.value))), P = O(() => (E == null ? void 0 : E.validateState) || ""), Ie = O(() => P.value && Ce[P.value]), Le = O(() => e.remote ? e.debounce : 0), Re = O(() => e.remote && !v.inputValue && v.options.size === 0), I = O(() => e.loading ? e.loadingText || s("el.select.loading") : e.filterable && v.inputValue && v.options.size > 0 && L.value === 0 ? e.noMatchText || s("el.select.noMatch") : v.options.size === 0 ? e.noDataText || s("el.select.noData") : null), L = O(() => R.value.filter((e) => e.visible).length), R = O(() => {
|
|
435
438
|
let e = Array.from(v.options.values()), t = [];
|
|
436
439
|
return v.optionValues.forEach((n) => {
|
|
437
440
|
let r = e.findIndex((e) => e.value === n);
|
|
438
441
|
r > -1 && t.push(e[r]);
|
|
439
442
|
}), t.length >= e.length ? t : e;
|
|
440
|
-
}),
|
|
441
|
-
let t =
|
|
443
|
+
}), z = O(() => Array.from(v.cachedOptions.values())), Be = O(() => {
|
|
444
|
+
let t = R.value.filter((e) => !e.created).some((e) => e.currentLabel === v.inputValue);
|
|
442
445
|
return e.filterable && e.allowCreate && v.inputValue !== "" && !t;
|
|
443
|
-
}),
|
|
444
|
-
e.filterable &&
|
|
446
|
+
}), V = () => {
|
|
447
|
+
e.filterable && p(e.filterMethod) || e.filterable && e.remote && p(e.remoteMethod) || R.value.forEach((e) => {
|
|
445
448
|
var t;
|
|
446
449
|
(t = e.updateOption) == null || t.call(e, v.inputValue);
|
|
447
450
|
});
|
|
448
|
-
},
|
|
451
|
+
}, H = fe(), U = O(() => ["small"].includes(H.value) ? "small" : "default"), He = O({
|
|
449
452
|
get() {
|
|
450
|
-
return C.value && (e.loading || !
|
|
453
|
+
return C.value && (e.loading || !Re.value || e.remote && !!c.empty) && (!we.value || !re(v.previousQuery) || v.options.size > 0);
|
|
451
454
|
},
|
|
452
455
|
set(e) {
|
|
453
456
|
C.value = e;
|
|
454
457
|
}
|
|
455
|
-
}),
|
|
456
|
-
if (e.multiple && !
|
|
457
|
-
let
|
|
458
|
-
return e.filterable ||
|
|
459
|
-
}),
|
|
458
|
+
}), Ue = O(() => {
|
|
459
|
+
if (e.multiple && !ee(e.modelValue)) return T(e.modelValue).length === 0 && !v.inputValue;
|
|
460
|
+
let t = l(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
461
|
+
return e.filterable || ee(t) ? !v.inputValue : !0;
|
|
462
|
+
}), We = O(() => {
|
|
460
463
|
let t = e.placeholder ?? s("el.select.placeholder");
|
|
461
|
-
return e.multiple || !
|
|
462
|
-
}),
|
|
463
|
-
|
|
464
|
-
e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "",
|
|
464
|
+
return e.multiple || !j.value ? t : v.selectedLabel;
|
|
465
|
+
}), W = O(() => te ? null : "mouseenter");
|
|
466
|
+
K(() => e.modelValue, (t, n) => {
|
|
467
|
+
e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "", Ge("")), qe(), !Z(t, n) && e.validateEvent && (E == null || E.validate("change").catch((e) => ie(e)));
|
|
465
468
|
}, {
|
|
466
469
|
flush: "post",
|
|
467
470
|
deep: !0
|
|
468
|
-
}),
|
|
469
|
-
e ?
|
|
470
|
-
}),
|
|
471
|
-
|
|
472
|
-
}, { flush: "post" }),
|
|
473
|
-
|
|
471
|
+
}), K(() => C.value, (e) => {
|
|
472
|
+
e ? Ge(v.inputValue) : (v.inputValue = "", v.previousQuery = null, v.isBeforeHide = !0, v.menuVisibleOnFocus = !1);
|
|
473
|
+
}), K(() => v.options.entries(), () => {
|
|
474
|
+
oe && (qe(), e.defaultFirstOption && (e.filterable || e.remote) && L.value && Ke());
|
|
475
|
+
}, { flush: "post" }), K([() => v.hoveringIndex, R], ([e]) => {
|
|
476
|
+
ae(e) && e > -1 ? w.value = R.value[e] || {} : w.value = {}, R.value.forEach((e) => {
|
|
474
477
|
e.hover = w.value === e;
|
|
475
478
|
});
|
|
476
|
-
}),
|
|
477
|
-
v.isBeforeHide ||
|
|
479
|
+
}), Ze(() => {
|
|
480
|
+
v.isBeforeHide || V();
|
|
478
481
|
});
|
|
479
|
-
let
|
|
480
|
-
v.previousQuery === t || ke.value || (v.previousQuery = t, e.filterable &&
|
|
481
|
-
},
|
|
482
|
-
let e =
|
|
483
|
-
v.hoveringIndex =
|
|
484
|
-
},
|
|
482
|
+
let Ge = (t) => {
|
|
483
|
+
v.previousQuery === t || ke.value || (v.previousQuery = t, e.filterable && p(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && p(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && L.value ? F(Ke) : F(Je));
|
|
484
|
+
}, Ke = () => {
|
|
485
|
+
let e = R.value.filter((e) => e.visible && !e.disabled && !e.states.groupDisabled), t = e.find((e) => e.created), n = e[0];
|
|
486
|
+
v.hoveringIndex = ut(R.value.map((e) => e.value), t || n);
|
|
487
|
+
}, qe = () => {
|
|
485
488
|
if (e.multiple) v.selectedLabel = "";
|
|
486
489
|
else {
|
|
487
|
-
let
|
|
488
|
-
v.selectedLabel =
|
|
490
|
+
let t = G(l(e.modelValue) ? e.modelValue[0] : e.modelValue);
|
|
491
|
+
v.selectedLabel = t.currentLabel, v.selected = [t];
|
|
489
492
|
return;
|
|
490
493
|
}
|
|
491
|
-
let
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}), v.selected =
|
|
495
|
-
},
|
|
496
|
-
let
|
|
497
|
-
for (let
|
|
498
|
-
let a =
|
|
499
|
-
if (
|
|
500
|
-
|
|
501
|
-
index:
|
|
494
|
+
let t = [];
|
|
495
|
+
ee(e.modelValue) || T(e.modelValue).forEach((e) => {
|
|
496
|
+
t.push(G(e));
|
|
497
|
+
}), v.selected = t;
|
|
498
|
+
}, G = (t) => {
|
|
499
|
+
let n, r = u(t);
|
|
500
|
+
for (let i = v.cachedOptions.size - 1; i >= 0; i--) {
|
|
501
|
+
let a = z.value[i];
|
|
502
|
+
if (r ? X(a.value, e.valueKey) === X(t, e.valueKey) : a.value === t) {
|
|
503
|
+
n = {
|
|
504
|
+
index: R.value.filter((e) => !e.created).indexOf(a),
|
|
502
505
|
value: t,
|
|
503
506
|
currentLabel: a.currentLabel,
|
|
504
507
|
get isDisabled() {
|
|
@@ -508,91 +511,91 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
508
511
|
break;
|
|
509
512
|
}
|
|
510
513
|
}
|
|
511
|
-
return
|
|
514
|
+
return n || {
|
|
512
515
|
index: -1,
|
|
513
516
|
value: t,
|
|
514
|
-
currentLabel:
|
|
517
|
+
currentLabel: r ? t.label : t ?? ""
|
|
515
518
|
};
|
|
516
|
-
},
|
|
519
|
+
}, Je = () => {
|
|
517
520
|
let e = v.selected.length;
|
|
518
521
|
if (e > 0) {
|
|
519
522
|
let t = v.selected[e - 1];
|
|
520
|
-
v.hoveringIndex =
|
|
523
|
+
v.hoveringIndex = R.value.findIndex((e) => xt(t) === xt(e));
|
|
521
524
|
} else v.hoveringIndex = -1;
|
|
522
|
-
},
|
|
525
|
+
}, Xe = () => {
|
|
523
526
|
v.selectionWidth = Number.parseFloat(window.getComputedStyle(y.value).width);
|
|
527
|
+
}, q = () => {
|
|
528
|
+
v.collapseItemWidth = xe.value.getBoundingClientRect().width;
|
|
524
529
|
}, J = () => {
|
|
525
|
-
v.collapseItemWidth = Se.value.getBoundingClientRect().width;
|
|
526
|
-
}, Y = () => {
|
|
527
530
|
var e, t;
|
|
528
531
|
(e = b.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
529
|
-
},
|
|
532
|
+
}, Y = () => {
|
|
530
533
|
var e, t;
|
|
531
534
|
(e = x.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
532
|
-
},
|
|
533
|
-
v.inputValue.length > 0 && !C.value && (C.value = !0),
|
|
534
|
-
},
|
|
535
|
-
if (v.inputValue = t.target.value, e.remote) we.value = !0,
|
|
536
|
-
else return
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
},
|
|
540
|
-
|
|
541
|
-
},
|
|
535
|
+
}, Qe = () => {
|
|
536
|
+
v.inputValue.length > 0 && !C.value && (C.value = !0), Ge(v.inputValue);
|
|
537
|
+
}, $e = (t) => {
|
|
538
|
+
if (v.inputValue = t.target.value, e.remote) we.value = !0, et();
|
|
539
|
+
else return Qe();
|
|
540
|
+
}, et = ne(() => {
|
|
541
|
+
Qe(), we.value = !1;
|
|
542
|
+
}, Le), it = (t) => {
|
|
543
|
+
Z(e.modelValue, t) || i(o, t);
|
|
544
|
+
}, at = (e) => nt(e, (e) => {
|
|
542
545
|
let t = v.cachedOptions.get(e);
|
|
543
546
|
return !(t != null && t.disabled) && !(t != null && t.states.groupDisabled);
|
|
544
|
-
}),
|
|
545
|
-
let
|
|
546
|
-
if (e.multiple &&
|
|
547
|
-
let t = T(e.modelValue).slice(), n =
|
|
547
|
+
}), ot = (r) => {
|
|
548
|
+
let o = t(r);
|
|
549
|
+
if (e.multiple && o !== n.delete && r.target.value.length <= 0) {
|
|
550
|
+
let t = T(e.modelValue).slice(), n = at(t);
|
|
548
551
|
if (n < 0) return;
|
|
549
552
|
let r = t[n];
|
|
550
|
-
t.splice(n, 1),
|
|
553
|
+
t.splice(n, 1), i(a, t), it(t), i("remove-tag", r);
|
|
551
554
|
}
|
|
552
|
-
},
|
|
555
|
+
}, st = (t, n) => {
|
|
553
556
|
let r = v.selected.indexOf(n);
|
|
554
|
-
if (r > -1 && !
|
|
557
|
+
if (r > -1 && !Ne.value) {
|
|
555
558
|
let t = T(e.modelValue).slice();
|
|
556
|
-
t.splice(r, 1),
|
|
559
|
+
t.splice(r, 1), i(a, t), it(t), i("remove-tag", n.value);
|
|
557
560
|
}
|
|
558
561
|
t.stopPropagation(), $();
|
|
559
|
-
},
|
|
562
|
+
}, ct = (t) => {
|
|
560
563
|
t.stopPropagation();
|
|
561
564
|
let n = e.multiple ? [] : De.value;
|
|
562
565
|
if (e.multiple) for (let e of v.selected) e.isDisabled && n.push(e.value);
|
|
563
|
-
|
|
564
|
-
},
|
|
566
|
+
i(a, n), it(n), v.hoveringIndex = -1, C.value = !1, i("clear"), $();
|
|
567
|
+
}, lt = (t) => {
|
|
565
568
|
if (e.multiple) {
|
|
566
|
-
let n = T(e.modelValue ?? []).slice(), r =
|
|
567
|
-
r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value),
|
|
568
|
-
} else !
|
|
569
|
-
$(), !C.value &&
|
|
570
|
-
|
|
569
|
+
let n = T(e.modelValue ?? []).slice(), r = ut(n, t);
|
|
570
|
+
r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value), i(a, n), it(n), t.created && Ge(""), e.filterable && (t.created || !e.reserveKeyword) && (v.inputValue = "");
|
|
571
|
+
} else !Z(e.modelValue, t.value) && i("update:modelValue", t.value), it(t.value), C.value = !1;
|
|
572
|
+
$(), !C.value && F(() => {
|
|
573
|
+
Q(t);
|
|
571
574
|
});
|
|
572
|
-
},
|
|
573
|
-
var
|
|
574
|
-
let
|
|
575
|
-
if (!
|
|
576
|
-
let e =
|
|
577
|
-
e.length > 0 && (
|
|
575
|
+
}, ut = (t, n) => ee(n) ? -1 : d(n.value) ? t.findIndex((t) => Z(X(t, e.valueKey), xt(n))) : t.indexOf(n.value), Q = (e) => {
|
|
576
|
+
var t;
|
|
577
|
+
let n = l(e) ? e[e.length - 1] : e, r = null;
|
|
578
|
+
if (!rt(n == null ? void 0 : n.value)) {
|
|
579
|
+
let e = R.value.filter((e) => e.value === n.value);
|
|
580
|
+
e.length > 0 && (r = e[0].$el);
|
|
578
581
|
}
|
|
579
|
-
if (b.value &&
|
|
580
|
-
var
|
|
581
|
-
let e = (
|
|
582
|
-
e && le(e,
|
|
582
|
+
if (b.value && r) {
|
|
583
|
+
var i, a;
|
|
584
|
+
let e = (i = b.value) == null || (i = i.popperRef) == null || (i = i.contentRef) == null || (a = i.querySelector) == null ? void 0 : a.call(i, `.${h.be("dropdown", "wrap")}`);
|
|
585
|
+
e && le(e, r);
|
|
583
586
|
}
|
|
584
|
-
(
|
|
587
|
+
(t = Se.value) == null || t.handleScroll();
|
|
585
588
|
}, dt = (e) => {
|
|
586
589
|
v.options.set(e.value, e), v.cachedOptions.set(e.value, e);
|
|
587
590
|
}, ft = (e, t) => {
|
|
588
591
|
v.options.get(e) === t && v.options.delete(e);
|
|
589
|
-
}, pt =
|
|
592
|
+
}, pt = O(() => {
|
|
590
593
|
var e;
|
|
591
594
|
return (e = b.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
|
|
592
595
|
}), mt = () => {
|
|
593
|
-
v.isBeforeHide = !1,
|
|
596
|
+
v.isBeforeHide = !1, F(() => {
|
|
594
597
|
var e;
|
|
595
|
-
(e =
|
|
598
|
+
(e = Se.value) == null || e.update(), Q(v.selected);
|
|
596
599
|
});
|
|
597
600
|
}, $ = () => {
|
|
598
601
|
var e;
|
|
@@ -600,7 +603,7 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
600
603
|
}, ht = () => {
|
|
601
604
|
var e;
|
|
602
605
|
if (C.value) {
|
|
603
|
-
C.value = !1,
|
|
606
|
+
C.value = !1, F(() => {
|
|
604
607
|
var e;
|
|
605
608
|
return (e = S.value) == null ? void 0 : e.blur();
|
|
606
609
|
});
|
|
@@ -608,32 +611,32 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
608
611
|
}
|
|
609
612
|
(e = S.value) == null || e.blur();
|
|
610
613
|
}, gt = (e) => {
|
|
611
|
-
|
|
614
|
+
ct(e);
|
|
612
615
|
}, _t = (e) => {
|
|
613
|
-
if (C.value = !1,
|
|
616
|
+
if (C.value = !1, k.value) {
|
|
614
617
|
let t = new FocusEvent("blur", e);
|
|
615
|
-
|
|
618
|
+
F(() => A(t));
|
|
616
619
|
}
|
|
617
620
|
}, vt = () => {
|
|
618
621
|
v.inputValue.length > 0 ? v.inputValue = "" : C.value = !1;
|
|
619
622
|
}, yt = (t) => {
|
|
620
623
|
var n;
|
|
621
|
-
|
|
624
|
+
Ne.value || e.filterable && C.value && t && !((n = de.value) != null && n.contains(t.target)) || (te && (v.inputHovering = !0), v.menuVisibleOnFocus ? v.menuVisibleOnFocus = !1 : C.value = !C.value);
|
|
622
625
|
}, bt = () => {
|
|
623
626
|
if (!C.value) yt();
|
|
624
627
|
else {
|
|
625
|
-
let e =
|
|
626
|
-
e && !e.isDisabled &&
|
|
628
|
+
let e = R.value[v.hoveringIndex];
|
|
629
|
+
e && !e.isDisabled && lt(e);
|
|
627
630
|
}
|
|
628
|
-
}, xt = (t) =>
|
|
631
|
+
}, xt = (t) => d(t.value) ? X(t.value, e.valueKey) : t.value, St = O(() => R.value.filter((e) => e.visible).every((e) => e.isDisabled)), Ct = O(() => e.multiple ? e.collapseTags ? v.selected.slice(0, e.maxCollapseTags) : v.selected : []), wt = O(() => e.multiple && e.collapseTags ? v.selected.slice(e.maxCollapseTags) : []), Tt = (e) => {
|
|
629
632
|
if (!C.value) {
|
|
630
633
|
C.value = !0;
|
|
631
634
|
return;
|
|
632
635
|
}
|
|
633
|
-
if (!(v.options.size === 0 ||
|
|
636
|
+
if (!(v.options.size === 0 || L.value === 0 || ke.value) && !St.value) {
|
|
634
637
|
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));
|
|
635
|
-
let t =
|
|
636
|
-
(t.isDisabled || !t.visible) && Tt(e),
|
|
638
|
+
let t = R.value[v.hoveringIndex];
|
|
639
|
+
(t.isDisabled || !t.visible) && Tt(e), F(() => Q(w.value));
|
|
637
640
|
}
|
|
638
641
|
}, Et = (e, t, n, r) => {
|
|
639
642
|
for (let i = t; i >= 0 && i < r; i += n) {
|
|
@@ -644,101 +647,101 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
644
647
|
}, Dt = (e, t) => {
|
|
645
648
|
let n = v.options.size;
|
|
646
649
|
if (n === 0) return;
|
|
647
|
-
let r =
|
|
648
|
-
o != null && (v.hoveringIndex = o,
|
|
650
|
+
let r = tt(e, 0, n - 1), i = R.value, a = t === "up" ? -1 : 1, o = Et(i, r, a, n) ?? Et(i, r - a, -a, n);
|
|
651
|
+
o != null && (v.hoveringIndex = o, F(() => Q(w.value)));
|
|
649
652
|
}, Ot = (e) => {
|
|
650
|
-
let
|
|
651
|
-
switch (
|
|
652
|
-
case
|
|
653
|
+
let r = t(e), i = !0;
|
|
654
|
+
switch (r) {
|
|
655
|
+
case n.up:
|
|
653
656
|
Tt("prev");
|
|
654
657
|
break;
|
|
655
|
-
case
|
|
658
|
+
case n.down:
|
|
656
659
|
Tt("next");
|
|
657
660
|
break;
|
|
658
|
-
case
|
|
659
|
-
case
|
|
661
|
+
case n.enter:
|
|
662
|
+
case n.numpadEnter:
|
|
660
663
|
ke.value || bt();
|
|
661
664
|
break;
|
|
662
|
-
case
|
|
665
|
+
case n.esc:
|
|
663
666
|
vt();
|
|
664
667
|
break;
|
|
665
|
-
case
|
|
666
|
-
|
|
668
|
+
case n.backspace:
|
|
669
|
+
i = !1, ot(e);
|
|
667
670
|
return;
|
|
668
|
-
case
|
|
671
|
+
case n.home:
|
|
669
672
|
if (!C.value) return;
|
|
670
673
|
Dt(0, "down");
|
|
671
674
|
break;
|
|
672
|
-
case
|
|
675
|
+
case n.end:
|
|
673
676
|
if (!C.value) return;
|
|
674
677
|
Dt(v.options.size - 1, "up");
|
|
675
678
|
break;
|
|
676
|
-
case
|
|
679
|
+
case n.pageUp:
|
|
677
680
|
if (!C.value) return;
|
|
678
681
|
Dt(v.hoveringIndex - 10, "up");
|
|
679
682
|
break;
|
|
680
|
-
case
|
|
683
|
+
case n.pageDown:
|
|
681
684
|
if (!C.value) return;
|
|
682
685
|
Dt(v.hoveringIndex + 10, "down");
|
|
683
686
|
break;
|
|
684
687
|
default:
|
|
685
|
-
|
|
688
|
+
i = !1;
|
|
686
689
|
break;
|
|
687
690
|
}
|
|
688
|
-
|
|
691
|
+
i && (e.preventDefault(), e.stopPropagation());
|
|
689
692
|
}, kt = () => {
|
|
690
693
|
if (!y.value) return 0;
|
|
691
694
|
let e = window.getComputedStyle(y.value);
|
|
692
695
|
return Number.parseFloat(e.gap || "6px");
|
|
693
|
-
}, At =
|
|
696
|
+
}, At = O(() => {
|
|
694
697
|
let t = kt(), n = e.filterable ? t + 11 : 0;
|
|
695
|
-
return { maxWidth: `${
|
|
696
|
-
}), jt =
|
|
697
|
-
|
|
698
|
+
return { maxWidth: `${xe.value && e.maxCollapseTags === 1 ? v.selectionWidth - v.collapseItemWidth - t - n : v.selectionWidth - n}px` };
|
|
699
|
+
}), jt = O(() => ({ maxWidth: `${v.selectionWidth}px` })), Mt = (e) => {
|
|
700
|
+
i("popup-scroll", e);
|
|
698
701
|
};
|
|
699
|
-
_(y,
|
|
702
|
+
_(y, Xe), _(D, J), _(be, Y), _(xe, q);
|
|
700
703
|
let Nt;
|
|
701
|
-
return
|
|
702
|
-
e ? Nt = _(_e,
|
|
703
|
-
}),
|
|
704
|
-
|
|
704
|
+
return K(() => He.value, (e) => {
|
|
705
|
+
e ? Nt = _(_e, J).stop : (Nt == null || Nt(), Nt = void 0), i("visible-change", e);
|
|
706
|
+
}), ze(() => {
|
|
707
|
+
qe();
|
|
705
708
|
}), {
|
|
706
709
|
inputId: Ee,
|
|
707
|
-
contentId:
|
|
708
|
-
nsSelect:
|
|
710
|
+
contentId: m,
|
|
711
|
+
nsSelect: h,
|
|
709
712
|
nsInput: g,
|
|
710
713
|
states: v,
|
|
711
|
-
isFocused:
|
|
714
|
+
isFocused: k,
|
|
712
715
|
expanded: C,
|
|
713
|
-
optionsArray:
|
|
716
|
+
optionsArray: R,
|
|
714
717
|
hoverOption: w,
|
|
715
|
-
selectSize:
|
|
716
|
-
filteredOptionsCount:
|
|
717
|
-
updateTooltip:
|
|
718
|
-
updateTagTooltip:
|
|
719
|
-
debouncedOnInputChange:
|
|
720
|
-
onInput:
|
|
721
|
-
deletePrevTag:
|
|
722
|
-
deleteTag:
|
|
723
|
-
deleteSelected:
|
|
724
|
-
handleOptionSelect:
|
|
725
|
-
scrollToOption:
|
|
726
|
-
hasModelValue:
|
|
727
|
-
shouldShowPlaceholder:
|
|
728
|
-
currentPlaceholder:
|
|
729
|
-
mouseEnterEventName:
|
|
730
|
-
needStatusIcon:
|
|
731
|
-
showClearBtn:
|
|
732
|
-
iconComponent:
|
|
733
|
-
iconReverse:
|
|
734
|
-
validateState:
|
|
735
|
-
validateIcon:
|
|
736
|
-
showNewOption:
|
|
737
|
-
updateOptions:
|
|
738
|
-
collapseTagSize:
|
|
739
|
-
setSelected:
|
|
740
|
-
selectDisabled:
|
|
741
|
-
emptyText:
|
|
718
|
+
selectSize: H,
|
|
719
|
+
filteredOptionsCount: L,
|
|
720
|
+
updateTooltip: J,
|
|
721
|
+
updateTagTooltip: Y,
|
|
722
|
+
debouncedOnInputChange: et,
|
|
723
|
+
onInput: $e,
|
|
724
|
+
deletePrevTag: ot,
|
|
725
|
+
deleteTag: st,
|
|
726
|
+
deleteSelected: ct,
|
|
727
|
+
handleOptionSelect: lt,
|
|
728
|
+
scrollToOption: Q,
|
|
729
|
+
hasModelValue: j,
|
|
730
|
+
shouldShowPlaceholder: Ue,
|
|
731
|
+
currentPlaceholder: We,
|
|
732
|
+
mouseEnterEventName: W,
|
|
733
|
+
needStatusIcon: M,
|
|
734
|
+
showClearBtn: Pe,
|
|
735
|
+
iconComponent: N,
|
|
736
|
+
iconReverse: Fe,
|
|
737
|
+
validateState: P,
|
|
738
|
+
validateIcon: Ie,
|
|
739
|
+
showNewOption: Be,
|
|
740
|
+
updateOptions: V,
|
|
741
|
+
collapseTagSize: U,
|
|
742
|
+
setSelected: qe,
|
|
743
|
+
selectDisabled: Ne,
|
|
744
|
+
emptyText: I,
|
|
742
745
|
handleCompositionStart: Ae,
|
|
743
746
|
handleCompositionUpdate: je,
|
|
744
747
|
handleCompositionEnd: Me,
|
|
@@ -755,11 +758,11 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
755
758
|
selectOption: bt,
|
|
756
759
|
getValueKey: xt,
|
|
757
760
|
navigateOptions: Tt,
|
|
758
|
-
dropdownMenuVisible:
|
|
761
|
+
dropdownMenuVisible: He,
|
|
759
762
|
showTagList: Ct,
|
|
760
763
|
collapseTagList: wt,
|
|
761
764
|
popupScroll: Mt,
|
|
762
|
-
getOption:
|
|
765
|
+
getOption: G,
|
|
763
766
|
tagStyle: At,
|
|
764
767
|
collapseTagStyle: jt,
|
|
765
768
|
popperRef: pt,
|
|
@@ -768,29 +771,29 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
768
771
|
tagTooltipRef: x,
|
|
769
772
|
prefixRef: ue,
|
|
770
773
|
suffixRef: de,
|
|
771
|
-
selectRef:
|
|
772
|
-
wrapperRef:
|
|
774
|
+
selectRef: se,
|
|
775
|
+
wrapperRef: D,
|
|
773
776
|
selectionRef: y,
|
|
774
|
-
scrollbarRef:
|
|
777
|
+
scrollbarRef: Se,
|
|
775
778
|
menuRef: _e,
|
|
776
779
|
tagMenuRef: be,
|
|
777
|
-
collapseItemRef:
|
|
780
|
+
collapseItemRef: xe
|
|
778
781
|
};
|
|
779
|
-
}, St =
|
|
782
|
+
}, St = Fe({
|
|
780
783
|
name: "ElOptions",
|
|
781
|
-
setup(
|
|
782
|
-
let
|
|
784
|
+
setup(e, { slots: t }) {
|
|
785
|
+
let n = Ie(ot), r = [];
|
|
783
786
|
return () => {
|
|
784
|
-
var
|
|
785
|
-
let
|
|
786
|
-
function
|
|
787
|
-
|
|
788
|
-
var
|
|
789
|
-
let
|
|
790
|
-
|
|
787
|
+
var e, i;
|
|
788
|
+
let a = (e = t.default) == null ? void 0 : e.call(t), o = [];
|
|
789
|
+
function s(e) {
|
|
790
|
+
l(e) && e.forEach((e) => {
|
|
791
|
+
var t, n, r, i;
|
|
792
|
+
let a = (t = (e == null ? void 0 : e.type) || {}) == null ? void 0 : t.name;
|
|
793
|
+
a === "ElOptionGroup" ? s(!c(e.children) && !l(e.children) && p((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) : l(e.children) && s(e.children);
|
|
791
794
|
});
|
|
792
795
|
}
|
|
793
|
-
return
|
|
796
|
+
return a.length && s((i = a[0]) == null ? void 0 : i.children), Z(o, r) || (r = o, n && (n.states.optionValues = o)), a;
|
|
794
797
|
};
|
|
795
798
|
}
|
|
796
799
|
}), Ct = "ElSelect", wt = /* @__PURE__ */ new WeakMap(), Tt = (e) => (...t) => {
|
|
@@ -810,7 +813,7 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
810
813
|
handler: Tt(e),
|
|
811
814
|
count: 0
|
|
812
815
|
}, wt.set(e, t)), t;
|
|
813
|
-
}, Dt =
|
|
816
|
+
}, Dt = Fe({
|
|
814
817
|
name: Ct,
|
|
815
818
|
componentName: Ct,
|
|
816
819
|
components: {
|
|
@@ -821,13 +824,13 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
821
824
|
ElTag: De,
|
|
822
825
|
ElScrollbar: Te,
|
|
823
826
|
ElTooltip: de,
|
|
824
|
-
ElIcon:
|
|
827
|
+
ElIcon: C
|
|
825
828
|
},
|
|
826
829
|
directives: { ClickOutside: Ee },
|
|
827
|
-
props:
|
|
830
|
+
props: lt,
|
|
828
831
|
emits: [
|
|
829
|
-
|
|
830
|
-
|
|
832
|
+
a,
|
|
833
|
+
o,
|
|
831
834
|
"remove-tag",
|
|
832
835
|
"clear",
|
|
833
836
|
"visible-change",
|
|
@@ -835,60 +838,60 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
835
838
|
"blur",
|
|
836
839
|
"popup-scroll"
|
|
837
840
|
],
|
|
838
|
-
setup(e, { emit:
|
|
839
|
-
let
|
|
840
|
-
|
|
841
|
-
let
|
|
842
|
-
let { modelValue:
|
|
843
|
-
return t
|
|
844
|
-
}),
|
|
845
|
-
...
|
|
846
|
-
modelValue:
|
|
847
|
-
}),
|
|
841
|
+
setup(e, { emit: t, slots: n }) {
|
|
842
|
+
let r = P(), i = Et(r.appContext);
|
|
843
|
+
i.count += 1, r.appContext.config.warnHandler = i.handler;
|
|
844
|
+
let a = O(() => {
|
|
845
|
+
let { modelValue: t, multiple: n } = e, r = n ? [] : void 0;
|
|
846
|
+
return l(t) ? n ? t : r : n ? r : t;
|
|
847
|
+
}), o = Ve({
|
|
848
|
+
...G(e),
|
|
849
|
+
modelValue: a
|
|
850
|
+
}), s = xt(o, t), { calculatorRef: c, inputStyle: u } = it(), { getLabel: f, getValue: p, getOptions: m, getDisabled: h } = ct(e), ee = (e) => ({
|
|
848
851
|
label: f(e),
|
|
849
852
|
value: p(e),
|
|
850
853
|
disabled: h(e)
|
|
851
854
|
}), te = (e) => e.reduce((e, t) => (e.push(t), t.children && t.children.length > 0 && e.push(...te(t.children)), e), []), ne = (e) => {
|
|
852
855
|
_e(e || []).forEach((e) => {
|
|
853
|
-
if (
|
|
856
|
+
if (d(e) && (e.type.name === "ElOption" || e.type.name === "ElTree")) {
|
|
854
857
|
var t;
|
|
855
858
|
let n = e.type.name;
|
|
856
859
|
if (n === "ElTree") te(((t = e.props) == null ? void 0 : t.data) || []).forEach((e) => {
|
|
857
|
-
e.currentLabel = e.label ?? (
|
|
860
|
+
e.currentLabel = e.label ?? (d(e.value) ? "" : e.value), s.onOptionCreate(e);
|
|
858
861
|
});
|
|
859
862
|
else if (n === "ElOption") {
|
|
860
863
|
let t = { ...e.props };
|
|
861
|
-
t.currentLabel = t.label ?? (
|
|
864
|
+
t.currentLabel = t.label ?? (d(t.value) ? "" : t.value), s.onOptionCreate(t);
|
|
862
865
|
}
|
|
863
866
|
}
|
|
864
867
|
});
|
|
865
868
|
};
|
|
866
|
-
|
|
869
|
+
K(() => {
|
|
867
870
|
var t;
|
|
868
|
-
return [e.persistent ||
|
|
871
|
+
return [e.persistent || s.expanded.value || !n.default || (t = n.default) == null ? void 0 : t.call(n), a.value];
|
|
869
872
|
}, () => {
|
|
870
873
|
var t;
|
|
871
|
-
e.persistent ||
|
|
872
|
-
}, { immediate: !0 }),
|
|
873
|
-
props:
|
|
874
|
-
states:
|
|
875
|
-
selectRef:
|
|
876
|
-
optionsArray:
|
|
877
|
-
setSelected:
|
|
878
|
-
handleOptionSelect:
|
|
879
|
-
onOptionCreate:
|
|
880
|
-
onOptionDestroy:
|
|
874
|
+
e.persistent || s.expanded.value || n.default && (s.states.options.clear(), ne((t = n.default) == null ? void 0 : t.call(n)));
|
|
875
|
+
}, { immediate: !0 }), Be(ot, Ve({
|
|
876
|
+
props: o,
|
|
877
|
+
states: s.states,
|
|
878
|
+
selectRef: s.selectRef,
|
|
879
|
+
optionsArray: s.optionsArray,
|
|
880
|
+
setSelected: s.setSelected,
|
|
881
|
+
handleOptionSelect: s.handleOptionSelect,
|
|
882
|
+
onOptionCreate: s.onOptionCreate,
|
|
883
|
+
onOptionDestroy: s.onOptionDestroy
|
|
881
884
|
}));
|
|
882
|
-
let re =
|
|
883
|
-
return
|
|
884
|
-
let e = wt.get(
|
|
885
|
-
e && (--e.count, e.count <= 0 && (
|
|
885
|
+
let re = O(() => e.multiple ? s.states.selected.map((e) => e.currentLabel) : s.states.selectedLabel);
|
|
886
|
+
return R(() => {
|
|
887
|
+
let e = wt.get(r.appContext);
|
|
888
|
+
e && (--e.count, e.count <= 0 && (r.appContext.config.warnHandler = e.originalWarnHandler, wt.delete(r.appContext)));
|
|
886
889
|
}), {
|
|
887
|
-
...
|
|
888
|
-
modelValue:
|
|
890
|
+
...s,
|
|
891
|
+
modelValue: a,
|
|
889
892
|
selectedLabel: re,
|
|
890
|
-
calculatorRef:
|
|
891
|
-
inputStyle:
|
|
893
|
+
calculatorRef: c,
|
|
894
|
+
inputStyle: u,
|
|
892
895
|
getLabel: f,
|
|
893
896
|
getValue: p,
|
|
894
897
|
getOptions: m,
|
|
@@ -910,11 +913,11 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
910
913
|
"aria-label"
|
|
911
914
|
], kt = ["textContent"], At = { key: 1 };
|
|
912
915
|
function jt(e, t, n, r, i, a) {
|
|
913
|
-
let o =
|
|
914
|
-
return
|
|
916
|
+
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 = He("click-outside");
|
|
917
|
+
return J((z(), j("div", Re({
|
|
915
918
|
ref: "selectRef",
|
|
916
919
|
class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
|
|
917
|
-
}, { [
|
|
920
|
+
}, { [Ge(e.mouseEnterEventName)]: t[11] || (t[11] = (t) => e.states.inputHovering = !0) }, { onMouseleave: t[12] || (t[12] = (t) => e.states.inputHovering = !1) }), [N(s, {
|
|
918
921
|
ref: "tooltipRef",
|
|
919
922
|
visible: e.dropdownMenuVisible,
|
|
920
923
|
placement: e.placement,
|
|
@@ -936,52 +939,52 @@ function jt(e, t, n, r, i, a) {
|
|
|
936
939
|
onBeforeShow: e.handleMenuEnter,
|
|
937
940
|
onHide: t[10] || (t[10] = (t) => e.states.isBeforeHide = !1)
|
|
938
941
|
}, {
|
|
939
|
-
default:
|
|
942
|
+
default: q(() => {
|
|
940
943
|
var n;
|
|
941
|
-
return [
|
|
944
|
+
return [M("div", {
|
|
942
945
|
ref: "wrapperRef",
|
|
943
|
-
class:
|
|
946
|
+
class: I([
|
|
944
947
|
e.nsSelect.e("wrapper"),
|
|
945
948
|
e.nsSelect.is("focused", e.isFocused),
|
|
946
949
|
e.nsSelect.is("hovering", e.states.inputHovering),
|
|
947
950
|
e.nsSelect.is("filterable", e.filterable),
|
|
948
951
|
e.nsSelect.is("disabled", e.selectDisabled)
|
|
949
952
|
]),
|
|
950
|
-
onClick: t[7] || (t[7] =
|
|
953
|
+
onClick: t[7] || (t[7] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["prevent"]))
|
|
951
954
|
}, [
|
|
952
|
-
e.$slots.prefix ? (
|
|
955
|
+
e.$slots.prefix ? (z(), j("div", {
|
|
953
956
|
key: 0,
|
|
954
957
|
ref: "prefixRef",
|
|
955
|
-
class:
|
|
956
|
-
}, [
|
|
957
|
-
|
|
958
|
+
class: I(e.nsSelect.e("prefix"))
|
|
959
|
+
}, [H(e.$slots, "prefix")], 2)) : A("v-if", !0),
|
|
960
|
+
M("div", {
|
|
958
961
|
ref: "selectionRef",
|
|
959
|
-
class:
|
|
962
|
+
class: I([e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)])
|
|
960
963
|
}, [
|
|
961
|
-
e.multiple ?
|
|
964
|
+
e.multiple ? H(e.$slots, "tag", {
|
|
962
965
|
key: 0,
|
|
963
966
|
data: e.states.selected,
|
|
964
967
|
deleteTag: e.deleteTag,
|
|
965
968
|
selectDisabled: e.selectDisabled
|
|
966
969
|
}, () => {
|
|
967
970
|
var t, n, r, i, a, c, l, u, d, f, p, m, h;
|
|
968
|
-
return [(
|
|
971
|
+
return [(z(!0), j(D, null, V(e.showTagList, (t) => (z(), j("div", {
|
|
969
972
|
key: e.getValueKey(t),
|
|
970
|
-
class:
|
|
971
|
-
}, [
|
|
973
|
+
class: I(e.nsSelect.e("selected-item"))
|
|
974
|
+
}, [N(o, {
|
|
972
975
|
closable: !e.selectDisabled && !t.isDisabled,
|
|
973
976
|
size: e.collapseTagSize,
|
|
974
977
|
type: e.tagType,
|
|
975
978
|
effect: e.tagEffect,
|
|
976
979
|
"disable-transitions": "",
|
|
977
|
-
style:
|
|
980
|
+
style: L(e.tagStyle),
|
|
978
981
|
onClose: (n) => e.deleteTag(n, t)
|
|
979
982
|
}, {
|
|
980
|
-
default:
|
|
983
|
+
default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
981
984
|
index: t.index,
|
|
982
985
|
label: t.currentLabel,
|
|
983
986
|
value: t.value
|
|
984
|
-
}, () => [
|
|
987
|
+
}, () => [Pe(W(t.currentLabel), 1)])], 2)]),
|
|
985
988
|
_: 2
|
|
986
989
|
}, 1032, [
|
|
987
990
|
"closable",
|
|
@@ -990,7 +993,7 @@ function jt(e, t, n, r, i, a) {
|
|
|
990
993
|
"effect",
|
|
991
994
|
"style",
|
|
992
995
|
"onClose"
|
|
993
|
-
])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (
|
|
996
|
+
])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (z(), k(s, {
|
|
994
997
|
key: 0,
|
|
995
998
|
ref: "tagTooltipRef",
|
|
996
999
|
disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
|
|
@@ -1013,18 +1016,18 @@ function jt(e, t, n, r, i, a) {
|
|
|
1013
1016
|
"auto-close": (m = e.tagTooltip) == null ? void 0 : m.autoClose,
|
|
1014
1017
|
offset: (h = e.tagTooltip) == null ? void 0 : h.offset
|
|
1015
1018
|
}, {
|
|
1016
|
-
default:
|
|
1019
|
+
default: q(() => [M("div", {
|
|
1017
1020
|
ref: "collapseItemRef",
|
|
1018
|
-
class:
|
|
1019
|
-
}, [
|
|
1021
|
+
class: I(e.nsSelect.e("selected-item"))
|
|
1022
|
+
}, [N(o, {
|
|
1020
1023
|
closable: !1,
|
|
1021
1024
|
size: e.collapseTagSize,
|
|
1022
1025
|
type: e.tagType,
|
|
1023
1026
|
effect: e.tagEffect,
|
|
1024
1027
|
"disable-transitions": "",
|
|
1025
|
-
style:
|
|
1028
|
+
style: L(e.collapseTagStyle)
|
|
1026
1029
|
}, {
|
|
1027
|
-
default:
|
|
1030
|
+
default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, " + " + W(e.states.selected.length - e.maxCollapseTags), 3)]),
|
|
1028
1031
|
_: 1
|
|
1029
1032
|
}, 8, [
|
|
1030
1033
|
"size",
|
|
@@ -1032,13 +1035,13 @@ function jt(e, t, n, r, i, a) {
|
|
|
1032
1035
|
"effect",
|
|
1033
1036
|
"style"
|
|
1034
1037
|
])], 2)]),
|
|
1035
|
-
content:
|
|
1038
|
+
content: q(() => [M("div", {
|
|
1036
1039
|
ref: "tagMenuRef",
|
|
1037
|
-
class:
|
|
1038
|
-
}, [(
|
|
1040
|
+
class: I(e.nsSelect.e("selection"))
|
|
1041
|
+
}, [(z(!0), j(D, null, V(e.collapseTagList, (t) => (z(), j("div", {
|
|
1039
1042
|
key: e.getValueKey(t),
|
|
1040
|
-
class:
|
|
1041
|
-
}, [
|
|
1043
|
+
class: I(e.nsSelect.e("selected-item"))
|
|
1044
|
+
}, [N(o, {
|
|
1042
1045
|
class: "in-tooltip",
|
|
1043
1046
|
closable: !e.selectDisabled && !t.isDisabled,
|
|
1044
1047
|
size: e.collapseTagSize,
|
|
@@ -1047,11 +1050,11 @@ function jt(e, t, n, r, i, a) {
|
|
|
1047
1050
|
"disable-transitions": "",
|
|
1048
1051
|
onClose: (n) => e.deleteTag(n, t)
|
|
1049
1052
|
}, {
|
|
1050
|
-
default:
|
|
1053
|
+
default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
1051
1054
|
index: t.index,
|
|
1052
1055
|
label: t.currentLabel,
|
|
1053
1056
|
value: t.value
|
|
1054
|
-
}, () => [
|
|
1057
|
+
}, () => [Pe(W(t.currentLabel), 1)])], 2)]),
|
|
1055
1058
|
_: 2
|
|
1056
1059
|
}, 1032, [
|
|
1057
1060
|
"closable",
|
|
@@ -1076,22 +1079,22 @@ function jt(e, t, n, r, i, a) {
|
|
|
1076
1079
|
"hide-after",
|
|
1077
1080
|
"auto-close",
|
|
1078
1081
|
"offset"
|
|
1079
|
-
])) :
|
|
1080
|
-
}) :
|
|
1081
|
-
|
|
1082
|
+
])) : A("v-if", !0)];
|
|
1083
|
+
}) : A("v-if", !0),
|
|
1084
|
+
M("div", { class: I([
|
|
1082
1085
|
e.nsSelect.e("selected-item"),
|
|
1083
1086
|
e.nsSelect.e("input-wrapper"),
|
|
1084
1087
|
e.nsSelect.is("hidden", !e.filterable || e.selectDisabled || !e.states.inputValue && !e.isFocused)
|
|
1085
|
-
]) }, [
|
|
1088
|
+
]) }, [M("input", {
|
|
1086
1089
|
id: e.inputId,
|
|
1087
1090
|
ref: "inputRef",
|
|
1088
1091
|
value: e.states.inputValue,
|
|
1089
1092
|
type: "text",
|
|
1090
1093
|
name: e.name,
|
|
1091
|
-
class:
|
|
1094
|
+
class: I([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
|
|
1092
1095
|
disabled: e.selectDisabled,
|
|
1093
1096
|
autocomplete: e.autocomplete,
|
|
1094
|
-
style:
|
|
1097
|
+
style: L(e.inputStyle),
|
|
1095
1098
|
tabindex: e.tabindex,
|
|
1096
1099
|
role: "combobox",
|
|
1097
1100
|
readonly: !e.filterable,
|
|
@@ -1107,104 +1110,104 @@ function jt(e, t, n, r, i, a) {
|
|
|
1107
1110
|
onCompositionupdate: t[2] || (t[2] = (...t) => e.handleCompositionUpdate && e.handleCompositionUpdate(...t)),
|
|
1108
1111
|
onCompositionend: t[3] || (t[3] = (...t) => e.handleCompositionEnd && e.handleCompositionEnd(...t)),
|
|
1109
1112
|
onInput: t[4] || (t[4] = (...t) => e.onInput && e.onInput(...t)),
|
|
1110
|
-
onChange: t[5] || (t[5] =
|
|
1111
|
-
onClick: t[6] || (t[6] =
|
|
1112
|
-
}, null, 46, Ot), e.filterable ? (
|
|
1113
|
+
onChange: t[5] || (t[5] = Y(() => {}, ["stop"])),
|
|
1114
|
+
onClick: t[6] || (t[6] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["stop"]))
|
|
1115
|
+
}, null, 46, Ot), e.filterable ? (z(), j("span", {
|
|
1113
1116
|
key: 0,
|
|
1114
1117
|
ref: "calculatorRef",
|
|
1115
1118
|
"aria-hidden": "true",
|
|
1116
|
-
class:
|
|
1117
|
-
textContent:
|
|
1118
|
-
}, null, 10, kt)) :
|
|
1119
|
-
e.shouldShowPlaceholder ? (
|
|
1119
|
+
class: I(e.nsSelect.e("input-calculator")),
|
|
1120
|
+
textContent: W(e.states.inputValue)
|
|
1121
|
+
}, null, 10, kt)) : A("v-if", !0)], 2),
|
|
1122
|
+
e.shouldShowPlaceholder ? (z(), j("div", {
|
|
1120
1123
|
key: 1,
|
|
1121
|
-
class:
|
|
1124
|
+
class: I([
|
|
1122
1125
|
e.nsSelect.e("selected-item"),
|
|
1123
1126
|
e.nsSelect.e("placeholder"),
|
|
1124
1127
|
e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
|
|
1125
1128
|
])
|
|
1126
|
-
}, [e.hasModelValue ?
|
|
1129
|
+
}, [e.hasModelValue ? H(e.$slots, "label", {
|
|
1127
1130
|
key: 0,
|
|
1128
1131
|
index: e.getOption(e.modelValue).index,
|
|
1129
1132
|
label: e.currentPlaceholder,
|
|
1130
1133
|
value: e.modelValue
|
|
1131
|
-
}, () => [
|
|
1134
|
+
}, () => [M("span", null, W(e.currentPlaceholder), 1)]) : (z(), j("span", At, W(e.currentPlaceholder), 1))], 2)) : A("v-if", !0)
|
|
1132
1135
|
], 2),
|
|
1133
|
-
|
|
1136
|
+
M("div", {
|
|
1134
1137
|
ref: "suffixRef",
|
|
1135
|
-
class:
|
|
1138
|
+
class: I(e.nsSelect.e("suffix"))
|
|
1136
1139
|
}, [
|
|
1137
|
-
e.iconComponent && !e.showClearBtn ? (
|
|
1140
|
+
e.iconComponent && !e.showClearBtn ? (z(), k(c, {
|
|
1138
1141
|
key: 0,
|
|
1139
|
-
class:
|
|
1142
|
+
class: I([
|
|
1140
1143
|
e.nsSelect.e("caret"),
|
|
1141
1144
|
e.nsSelect.e("icon"),
|
|
1142
1145
|
e.iconReverse
|
|
1143
1146
|
])
|
|
1144
1147
|
}, {
|
|
1145
|
-
default:
|
|
1148
|
+
default: q(() => [(z(), k(Ue(e.iconComponent)))]),
|
|
1146
1149
|
_: 1
|
|
1147
|
-
}, 8, ["class"])) :
|
|
1148
|
-
e.showClearBtn && e.clearIcon ? (
|
|
1150
|
+
}, 8, ["class"])) : A("v-if", !0),
|
|
1151
|
+
e.showClearBtn && e.clearIcon ? (z(), k(c, {
|
|
1149
1152
|
key: 1,
|
|
1150
|
-
class:
|
|
1153
|
+
class: I([
|
|
1151
1154
|
e.nsSelect.e("caret"),
|
|
1152
1155
|
e.nsSelect.e("icon"),
|
|
1153
1156
|
e.nsSelect.e("clear")
|
|
1154
1157
|
]),
|
|
1155
1158
|
onClick: e.handleClearClick
|
|
1156
1159
|
}, {
|
|
1157
|
-
default:
|
|
1160
|
+
default: q(() => [(z(), k(Ue(e.clearIcon)))]),
|
|
1158
1161
|
_: 1
|
|
1159
|
-
}, 8, ["class", "onClick"])) :
|
|
1160
|
-
e.validateState && e.validateIcon && e.needStatusIcon ? (
|
|
1162
|
+
}, 8, ["class", "onClick"])) : A("v-if", !0),
|
|
1163
|
+
e.validateState && e.validateIcon && e.needStatusIcon ? (z(), k(c, {
|
|
1161
1164
|
key: 2,
|
|
1162
|
-
class:
|
|
1165
|
+
class: I([
|
|
1163
1166
|
e.nsInput.e("icon"),
|
|
1164
1167
|
e.nsInput.e("validateIcon"),
|
|
1165
1168
|
e.nsInput.is("loading", e.validateState === "validating")
|
|
1166
1169
|
])
|
|
1167
1170
|
}, {
|
|
1168
|
-
default:
|
|
1171
|
+
default: q(() => [(z(), k(Ue(e.validateIcon)))]),
|
|
1169
1172
|
_: 1
|
|
1170
|
-
}, 8, ["class"])) :
|
|
1173
|
+
}, 8, ["class"])) : A("v-if", !0)
|
|
1171
1174
|
], 2)
|
|
1172
1175
|
], 2)];
|
|
1173
1176
|
}),
|
|
1174
|
-
content:
|
|
1175
|
-
default:
|
|
1176
|
-
e.$slots.header ? (
|
|
1177
|
+
content: q(() => [N(p, { ref: "menuRef" }, {
|
|
1178
|
+
default: q(() => [
|
|
1179
|
+
e.$slots.header ? (z(), j("div", {
|
|
1177
1180
|
key: 0,
|
|
1178
|
-
class:
|
|
1179
|
-
onClick: t[8] || (t[8] =
|
|
1180
|
-
}, [
|
|
1181
|
-
|
|
1181
|
+
class: I(e.nsSelect.be("dropdown", "header")),
|
|
1182
|
+
onClick: t[8] || (t[8] = Y(() => {}, ["stop"]))
|
|
1183
|
+
}, [H(e.$slots, "header")], 2)) : A("v-if", !0),
|
|
1184
|
+
J(N(f, {
|
|
1182
1185
|
id: e.contentId,
|
|
1183
1186
|
ref: "scrollbarRef",
|
|
1184
1187
|
tag: "ul",
|
|
1185
1188
|
"wrap-class": e.nsSelect.be("dropdown", "wrap"),
|
|
1186
1189
|
"view-class": e.nsSelect.be("dropdown", "list"),
|
|
1187
|
-
class:
|
|
1190
|
+
class: I([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
|
|
1188
1191
|
role: "listbox",
|
|
1189
1192
|
"aria-label": e.ariaLabel,
|
|
1190
1193
|
"aria-orientation": "vertical",
|
|
1191
1194
|
onScroll: e.popupScroll
|
|
1192
1195
|
}, {
|
|
1193
|
-
default:
|
|
1196
|
+
default: q(() => [e.showNewOption ? (z(), k(l, {
|
|
1194
1197
|
key: 0,
|
|
1195
1198
|
value: e.states.inputValue,
|
|
1196
1199
|
created: !0
|
|
1197
|
-
}, null, 8, ["value"])) :
|
|
1198
|
-
default:
|
|
1200
|
+
}, null, 8, ["value"])) : A("v-if", !0), N(d, null, {
|
|
1201
|
+
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), j(D, null, V(e.options, (t, n) => {
|
|
1199
1202
|
var r;
|
|
1200
|
-
return
|
|
1203
|
+
return z(), j(D, { key: n }, [(r = e.getOptions(t)) != null && r.length ? (z(), k(u, {
|
|
1201
1204
|
key: 0,
|
|
1202
1205
|
label: e.getLabel(t),
|
|
1203
1206
|
disabled: e.getDisabled(t)
|
|
1204
1207
|
}, {
|
|
1205
|
-
default:
|
|
1208
|
+
default: q(() => [(z(!0), j(D, null, V(e.getOptions(t), (t) => (z(), k(l, Re({ key: e.getValue(t) }, { ref_for: !0 }, e.getOptionProps(t)), null, 16))), 128))]),
|
|
1206
1209
|
_: 2
|
|
1207
|
-
}, 1032, ["label", "disabled"])) : (
|
|
1210
|
+
}, 1032, ["label", "disabled"])) : (z(), k(l, Re({
|
|
1208
1211
|
key: 1,
|
|
1209
1212
|
ref_for: !0
|
|
1210
1213
|
}, e.getOptionProps(t)), null, 16))], 64);
|
|
@@ -1219,19 +1222,19 @@ function jt(e, t, n, r, i, a) {
|
|
|
1219
1222
|
"class",
|
|
1220
1223
|
"aria-label",
|
|
1221
1224
|
"onScroll"
|
|
1222
|
-
]), [[
|
|
1223
|
-
e.$slots.loading && e.loading ? (
|
|
1225
|
+
]), [[Xe, e.states.options.size > 0 && !e.loading]]),
|
|
1226
|
+
e.$slots.loading && e.loading ? (z(), j("div", {
|
|
1224
1227
|
key: 1,
|
|
1225
|
-
class:
|
|
1226
|
-
}, [
|
|
1228
|
+
class: I(e.nsSelect.be("dropdown", "loading"))
|
|
1229
|
+
}, [H(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (z(), j("div", {
|
|
1227
1230
|
key: 2,
|
|
1228
|
-
class:
|
|
1229
|
-
}, [
|
|
1230
|
-
e.$slots.footer ? (
|
|
1231
|
+
class: I(e.nsSelect.be("dropdown", "empty"))
|
|
1232
|
+
}, [H(e.$slots, "empty", {}, () => [M("span", null, W(e.emptyText), 1)])], 2)) : A("v-if", !0),
|
|
1233
|
+
e.$slots.footer ? (z(), j("div", {
|
|
1231
1234
|
key: 3,
|
|
1232
|
-
class:
|
|
1233
|
-
onClick: t[9] || (t[9] =
|
|
1234
|
-
}, [
|
|
1235
|
+
class: I(e.nsSelect.be("dropdown", "footer")),
|
|
1236
|
+
onClick: t[9] || (t[9] = Y(() => {}, ["stop"]))
|
|
1237
|
+
}, [H(e.$slots, "footer")], 2)) : A("v-if", !0)
|
|
1235
1238
|
]),
|
|
1236
1239
|
_: 3
|
|
1237
1240
|
}, 512)]),
|
|
@@ -1258,12 +1261,12 @@ function jt(e, t, n, r, i, a) {
|
|
|
1258
1261
|
]]);
|
|
1259
1262
|
}
|
|
1260
1263
|
//#endregion
|
|
1261
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
1262
|
-
var Mt =
|
|
1264
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/index.mjs
|
|
1265
|
+
var Mt = h(/* @__PURE__ */ x(Dt, [["render", jt]]), {
|
|
1263
1266
|
Option: $,
|
|
1264
1267
|
OptionGroup: _t
|
|
1265
1268
|
});
|
|
1266
|
-
|
|
1269
|
+
m($), m(_t);
|
|
1267
1270
|
//#endregion
|
|
1268
1271
|
//#region src/components/form/FormSelect.vue
|
|
1269
1272
|
var Nt = Ae(Mt).filter((e) => ![
|
|
@@ -1275,7 +1278,7 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1275
1278
|
mixins: [
|
|
1276
1279
|
je,
|
|
1277
1280
|
Me,
|
|
1278
|
-
|
|
1281
|
+
Ne
|
|
1279
1282
|
],
|
|
1280
1283
|
props: {
|
|
1281
1284
|
options: {
|
|
@@ -1364,7 +1367,7 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1364
1367
|
}));
|
|
1365
1368
|
if (this.year) {
|
|
1366
1369
|
let e = (/* @__PURE__ */ new Date()).getFullYear(), t = [], n = 10;
|
|
1367
|
-
|
|
1370
|
+
Qe(this.year) && (n = this.year);
|
|
1368
1371
|
for (let r = -n; r <= n; r++) {
|
|
1369
1372
|
let n = e + r;
|
|
1370
1373
|
t.push({
|
|
@@ -1395,10 +1398,10 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1395
1398
|
var t;
|
|
1396
1399
|
this.loading = !0;
|
|
1397
1400
|
let n = await this.remoteMethod(e, this.prop);
|
|
1398
|
-
((t = n.data.data) == null ? void 0 : t.length) >= 0 ?
|
|
1401
|
+
((t = n.data.data) == null ? void 0 : t.length) >= 0 ? et(n.data.data[0]) ? this.remoteOptions = n.data.data.map((e) => ({
|
|
1399
1402
|
[this.props.value]: e,
|
|
1400
1403
|
[this.props.label]: e
|
|
1401
|
-
})) :
|
|
1404
|
+
})) : $e(n.data.data[0]) && (this.remoteOptions = n.data.data) : this.remoteOptions = [];
|
|
1402
1405
|
} catch {}
|
|
1403
1406
|
this.loading = !1;
|
|
1404
1407
|
},
|
|
@@ -1417,12 +1420,12 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1417
1420
|
class: "el-form-item__error"
|
|
1418
1421
|
};
|
|
1419
1422
|
function Lt(e, t, n, r, i, a) {
|
|
1420
|
-
let o =
|
|
1421
|
-
return
|
|
1423
|
+
let o = U("ElOption"), s = U("ElSelect"), c = U("FormItem");
|
|
1424
|
+
return z(), k(c, Re(e.formItemProps, {
|
|
1422
1425
|
rules: e.computeRules,
|
|
1423
1426
|
disabled: e.inputDisabled
|
|
1424
1427
|
}), {
|
|
1425
|
-
default:
|
|
1428
|
+
default: q(() => [N(s, Re({
|
|
1426
1429
|
value: i.innerValue,
|
|
1427
1430
|
filterable: n.filterable || !!n.year,
|
|
1428
1431
|
placeholder: e.inputDisabled ? "--" : e.computePlaceholder,
|
|
@@ -1436,11 +1439,11 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1436
1439
|
"remote-method": a.fetchOptions,
|
|
1437
1440
|
clearable: "",
|
|
1438
1441
|
onClear: a.reloadOptions
|
|
1439
|
-
},
|
|
1440
|
-
default:
|
|
1442
|
+
}, Ke(e.listeners), { onInput: a.emitInput }), {
|
|
1443
|
+
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), j(D, null, V(a.innerOptions, (t) => H(e.$slots, "option", {
|
|
1441
1444
|
value: t[n.props.value],
|
|
1442
1445
|
label: t[n.props.label]
|
|
1443
|
-
}, () => [(
|
|
1446
|
+
}, () => [(z(), k(o, {
|
|
1444
1447
|
key: t[n.props.value],
|
|
1445
1448
|
value: t[n.props.value],
|
|
1446
1449
|
label: t[n.props.label]
|
|
@@ -1459,14 +1462,14 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1459
1462
|
"remote-method",
|
|
1460
1463
|
"onClear",
|
|
1461
1464
|
"onInput"
|
|
1462
|
-
]), e.$slots.warn ? (
|
|
1463
|
-
error:
|
|
1464
|
-
label:
|
|
1465
|
-
below:
|
|
1466
|
-
tips:
|
|
1465
|
+
]), e.$slots.warn ? (z(), j("div", Ft, [H(e.$slots, "warn")])) : A("v-if", !0)]),
|
|
1466
|
+
error: q(({ error: t }) => [e.$slots.error && e.$slots.error(t) ? (z(), j("div", It, [H(e.$slots, "error", { error: t }, () => [Pe(W(t), 1)])])) : A("v-if", !0)]),
|
|
1467
|
+
label: q(() => [H(e.$slots, "label")]),
|
|
1468
|
+
below: q(() => [H(e.$slots, "below")]),
|
|
1469
|
+
tips: q(() => [H(e.$slots, "tips")]),
|
|
1467
1470
|
_: 3
|
|
1468
1471
|
}, 16, ["rules", "disabled"]);
|
|
1469
1472
|
}
|
|
1470
|
-
var Rt = /* @__PURE__ */
|
|
1473
|
+
var Rt = /* @__PURE__ */ e(Pt, [["render", Lt]]);
|
|
1471
1474
|
//#endregion
|
|
1472
1475
|
export { Rt as t };
|