@web-utils/component 5.0.0-beta02 → 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 +24 -30
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.D0ByhRTi.mjs → EditableTree.CV8b95tW.mjs} +11 -20
- package/chunks/{ElementBaseInfo.B3pY8TkD.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.D_lXbe--.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Cufwd4bp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.BhY8NY2z.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.DX1ZJ9w2.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.BRafADXp.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.B6pqRir_.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.Dvwji23j.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.LL-vXDIE.mjs → FlowDesigner.DH1ypcUw.mjs} +15 -15
- package/chunks/{FormCascader.DMY3uNc8.mjs → FormCascader.BXL8lKww.mjs} +348 -346
- package/chunks/{FormInputTime.BC4FfWwY.mjs → FormInputTime.DzTPiDNh.mjs} +243 -242
- package/chunks/{FormItem.BSXI2cZU.mjs → FormItem.B8iPLduv.mjs} +1 -1
- package/chunks/{FormItemGroup.D2Htta7J.mjs → FormItemGroup.CCGqEapT.mjs} +27 -22
- package/chunks/{FormSelect.CY0K-izg.mjs → FormSelect.t0jbTL_K.mjs} +396 -394
- package/chunks/{FormSwitch.DLqFXaFF.mjs → FormSwitch.uoFQ-xp_.mjs} +26 -25
- package/chunks/{FormTemp.PJFfNRls.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.CgyGhetD.mjs} +15 -13
- package/chunks/{FyFormDesign.BCxVyiWY.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/{ImagePreview.ByEWJYdu.mjs → ImagePreview.DDFrZgo5.mjs} +97 -87
- package/chunks/{PageableTable.Ba3XSbZ5.mjs → PageableTable.DR-REJN5.mjs} +5 -6
- package/chunks/{SignalAndMessage.DYhKWs3X.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.72HOXQkb.mjs → TableColumn.Cq9Bvevm.mjs} +2 -2
- package/chunks/{TableView.BxfsOAxU.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.CkeyTpnn.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.DEvY5-i7.mjs → VueCron.BmPnLuu3.mjs} +3 -39
- package/chunks/{VueTreeSelect.C6Ycu28Z.mjs → VueTreeSelect.GHx4Z2lG.mjs} +10 -6
- 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.CNNpjPL2.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.Dv4XTu8B.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.FbvlqAGe.mjs → focus-trap.CuUc8N2C.mjs} +27 -27
- package/chunks/{form-input.BUGZmAI1.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.Ca8U2bIR.mjs → form-item.fYYCXvCs.mjs} +110 -106
- package/chunks/{icon.CxCY22-F.mjs → icon.AJYLfX1m.mjs} +7 -7
- package/chunks/{icon.ym7735_x.mjs → icon.niAg1zTC.mjs} +3 -3
- package/chunks/{init.6jGmuY99.mjs → init.CtUEiRbU.mjs} +5 -5
- package/chunks/input.B_wW4aF-.mjs +548 -0
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.C4NdvfbE.mjs → message.DnTACuzV.mjs} +100 -99
- package/chunks/overlay.Rhu_rfhx.mjs +122 -0
- package/chunks/{radio.CeLeSOEo.mjs → radio.BMkZBhl5.mjs} +45 -44
- package/chunks/{scroll.DWjS-gnW.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.ZhEIVRpP.mjs → tag.B6yUaGj-.mjs} +15 -15
- package/chunks/teleport.87mkIv8m.mjs +22 -0
- package/chunks/{tooltip.DNiltmX1.mjs → tooltip.Dzjs7LZ8.mjs} +397 -410
- 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.D8KYIiKR.mjs → use-empty-values.CxYKjLV9.mjs} +3 -3
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/use-id.CyzdvfQn.mjs +15 -0
- package/chunks/{use-locale.Be9HCpTQ.mjs → use-locale.CBoQRFjH.mjs} +1 -1
- package/chunks/{typescript.CLl-2siQ.mjs → use-size.CoorvF12.mjs} +4 -4
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.C3PXzhmg.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-table-picker/index.mjs +2 -6
- 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 +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- 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 +1 -1
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +5 -5
- package/form-input-id-card/index.mjs +4 -4
- package/form-input-phone-number/index.mjs +4 -4
- 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/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 -4
- package/helper-function.mjs +31 -22
- 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 +1 -1
- package/index.d.ts +1 -2
- package/index.mjs +91 -92
- package/input-number-range/index.mjs +0 -2
- package/keyboard/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 +11 -13
- 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/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/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 -143
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +250 -382
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
- package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
- package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/input.C2GWsuXE.mjs +0 -547
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
- package/chunks/use-global-config.DRovgom9.mjs +0 -57
- package/chunks/validator.DuBSEj8O.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FormBlock.Co7l6USP.mjs → FormBlock.D6kZl7sm.mjs} +0 -0
- /package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{Keyboard.4hi7CjGc.mjs → Keyboard.DBspwbYo.mjs} +0 -0
- /package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.Bq9d6JSz.mjs} +0 -0
- /package/chunks/{RecordVideo.VRFTaHSp.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Bwe5Rc0J.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.BVziVmyT.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DXaMPWGV.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.CteBVoOe.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.C0abEij9.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.BRhZD-WH.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.DT5kumy4.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.CUvMwtPN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BLDb9e6G.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.C-IUDxQQ.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BxnG4lip.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.DT5QwXL-.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.CRX7ERxJ.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.7zuMMM1E.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.Ce4MHRmD.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.BttmSVX6.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.BGJfM4oG.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.CSPl1l4f.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as
|
|
3
|
-
import { c as
|
|
4
|
-
import { r as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { i as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
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 { d as c, g as l, o as u, p as d, s as f, t as p } from "./install.BJl2MN77.mjs";
|
|
7
|
+
import { B as m, E as h, F as g, L as _, M as v, O as y, S as ee, _ as b, b as x, d as te, j as S, p as ne, u as re, z as ie } from "./style.CraPDfJA.mjs";
|
|
8
|
+
import { t as ae } from "./input.B_wW4aF-.mjs";
|
|
9
|
+
import { n as oe } from "./use-locale.CBoQRFjH.mjs";
|
|
10
|
+
import { n as C } from "./scroll.BJIpzi2Q.mjs";
|
|
11
|
+
import { n as w, r as se, t as ce } from "./tooltip.Dzjs7LZ8.mjs";
|
|
12
|
+
import { i as le, r as ue, t as de } from "./use-form-item.DMDTkMq9.mjs";
|
|
13
|
+
import { t as fe } from "./use-id.CyzdvfQn.mjs";
|
|
14
|
+
import { n as T, t as pe } from "./use-composition.BMPJBvYs.mjs";
|
|
15
|
+
import { h as E, i as D, l as me, n as he, s as ge, t as O } from "./icon.niAg1zTC.mjs";
|
|
16
|
+
import { a as k } from "./icon.AJYLfX1m.mjs";
|
|
17
|
+
import { i as _e, n as A } from "./form-item.fYYCXvCs.mjs";
|
|
18
|
+
import { t as ve } from "./scrollbar.CvxOszy3.mjs";
|
|
19
|
+
import { n as ye, r as be, t as xe } from "./tag.B6yUaGj-.mjs";
|
|
20
|
+
import { t as j } from "./checkbox.AmhCpaBZ.mjs";
|
|
21
|
+
import { t as Se } from "./radio.BMkZBhl5.mjs";
|
|
22
|
+
import { d as M, n as Ce, u as N } from "./util.fjuzrmWz.mjs";
|
|
23
|
+
import { t as P } from "./form-input.DdSb45Tz.mjs";
|
|
24
|
+
import { t as we } from "./form-pick.BEC7lrNH.mjs";
|
|
25
|
+
import { t as Te } from "./dictionary.DXYdZefs.mjs";
|
|
26
|
+
import { Comment as Ee, Fragment as F, computed as I, createBlock as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createSlots as De, createTextVNode as Oe, createVNode as V, defineComponent as ke, getCurrentInstance as Ae, inject as H, mergeProps as je, nextTick as Me, normalizeClass as U, normalizeStyle as Ne, onBeforeUpdate as W, onMounted as Pe, openBlock as G, provide as Fe, reactive as Ie, ref as K, renderList as Le, renderSlot as q, resolveComponent as Re, resolveDynamicComponent as ze, toDisplayString as J, toHandlers as Be, unref as Y, useAttrs as Ve, useSlots as He, vModelText as Ue, vShow as We, watch as X, withCtx as Z, withDirectives as Ge, withKeys as Ke, withModifiers as qe } from "vue";
|
|
27
|
+
import { findTreeChildren as Je, isArray as Ye, isString as Xe, setParent as Ze } from "@web-utils/core";
|
|
28
|
+
import { cloneDeep as Qe } from "@web-utils/integrations/lodash";
|
|
29
|
+
import { cloneDeep as $e, flattenDeep as et, isEqual as Q } from "lodash-unified";
|
|
30
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/cascader-panel/src/config.mjs
|
|
29
31
|
var tt = S({
|
|
30
32
|
modelValue: { type: v([
|
|
31
33
|
Number,
|
|
@@ -47,7 +49,7 @@ var tt = S({
|
|
|
47
49
|
checkStrictly: !1,
|
|
48
50
|
emitPath: !0,
|
|
49
51
|
lazy: !1,
|
|
50
|
-
lazyLoad:
|
|
52
|
+
lazyLoad: f,
|
|
51
53
|
value: "value",
|
|
52
54
|
label: "label",
|
|
53
55
|
children: "children",
|
|
@@ -65,8 +67,8 @@ var tt = S({
|
|
|
65
67
|
},
|
|
66
68
|
renderLabel: { type: Function }
|
|
67
69
|
}), it = (e) => !0, $ = {
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
+
[a]: it,
|
|
71
|
+
[o]: it,
|
|
70
72
|
close: () => !0,
|
|
71
73
|
"expand-change": (e) => e
|
|
72
74
|
}, at = (e) => I(() => ({
|
|
@@ -74,25 +76,25 @@ var tt = S({
|
|
|
74
76
|
...e.props
|
|
75
77
|
})), ot = Symbol();
|
|
76
78
|
//#endregion
|
|
77
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
78
|
-
function st(
|
|
79
|
-
return !!(e
|
|
79
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/cascader-panel/src/node-content.mjs
|
|
80
|
+
function st(e) {
|
|
81
|
+
return !!(c(e) ? e.every(({ type: e }) => e === Ee) : (e == null ? void 0 : e.type) === Ee);
|
|
80
82
|
}
|
|
81
|
-
var ct = /* @__PURE__ */
|
|
83
|
+
var ct = /* @__PURE__ */ ke({
|
|
82
84
|
name: "NodeContent",
|
|
83
85
|
props: { node: {
|
|
84
86
|
type: Object,
|
|
85
87
|
required: !0
|
|
86
88
|
} },
|
|
87
89
|
setup(e) {
|
|
88
|
-
let t =
|
|
89
|
-
let e =
|
|
90
|
-
node:
|
|
91
|
-
data:
|
|
90
|
+
let t = u("cascader-node"), { renderLabelFn: n } = H(ot), { node: r } = e, { data: i, label: a } = r, o = () => {
|
|
91
|
+
let e = n == null ? void 0 : n({
|
|
92
|
+
node: r,
|
|
93
|
+
data: i
|
|
92
94
|
});
|
|
93
|
-
return st(e) ?
|
|
95
|
+
return st(e) ? a : e ?? a;
|
|
94
96
|
};
|
|
95
|
-
return () => V("span", { class: t.e("label") }, [
|
|
97
|
+
return () => V("span", { class: t.e("label") }, [o()]);
|
|
96
98
|
}
|
|
97
99
|
}), lt = [
|
|
98
100
|
"id",
|
|
@@ -100,7 +102,7 @@ var ct = /* @__PURE__ */ H({
|
|
|
100
102
|
"aria-owns",
|
|
101
103
|
"aria-expanded",
|
|
102
104
|
"tabindex"
|
|
103
|
-
], ut = /* @__PURE__ */
|
|
105
|
+
], ut = /* @__PURE__ */ ke({
|
|
104
106
|
name: "ElCascaderNode",
|
|
105
107
|
__name: "node",
|
|
106
108
|
props: {
|
|
@@ -112,46 +114,46 @@ var ct = /* @__PURE__ */ H({
|
|
|
112
114
|
},
|
|
113
115
|
emits: ["expand"],
|
|
114
116
|
setup(e, { emit: t }) {
|
|
115
|
-
let
|
|
117
|
+
let n = e, r = t, i = H(ot), a = u("cascader-node"), o = I(() => i.isHoverMenu), s = I(() => i.config.multiple), c = I(() => i.config.checkStrictly), l = I(() => i.config.showPrefix), d = I(() => {
|
|
116
118
|
var e;
|
|
117
|
-
return (e =
|
|
118
|
-
}), f = I(() =>
|
|
119
|
+
return (e = i.checkedNodes[0]) == null ? void 0 : e.uid;
|
|
120
|
+
}), f = I(() => n.node.isDisabled), p = I(() => n.node.isLeaf), m = I(() => c.value && !p.value || !f.value), h = I(() => _(i.expandingNode)), g = I(() => c.value && i.checkedNodes.some(_)), _ = (e) => {
|
|
119
121
|
var t;
|
|
120
|
-
let { level:
|
|
121
|
-
return (e == null || (t = e.pathNodes[
|
|
122
|
+
let { level: r, uid: i } = n.node;
|
|
123
|
+
return (e == null || (t = e.pathNodes[r - 1]) == null ? void 0 : t.uid) === i;
|
|
122
124
|
}, v = () => {
|
|
123
|
-
h.value ||
|
|
125
|
+
h.value || i.expandNode(n.node);
|
|
124
126
|
}, y = (e) => {
|
|
125
|
-
let { node: t } =
|
|
126
|
-
e !== t.checked &&
|
|
127
|
+
let { node: t } = n;
|
|
128
|
+
e !== t.checked && i.handleCheckChange(t, e);
|
|
127
129
|
}, ee = () => {
|
|
128
|
-
|
|
130
|
+
i.lazyLoad(n.node, () => {
|
|
129
131
|
p.value || v();
|
|
130
132
|
});
|
|
131
133
|
}, b = (e) => {
|
|
132
|
-
|
|
134
|
+
o.value && (x(), !p.value && r("expand", e));
|
|
133
135
|
}, x = () => {
|
|
134
|
-
let { node: e } =
|
|
136
|
+
let { node: e } = n;
|
|
135
137
|
!m.value || e.loading || (e.loaded ? v() : ee());
|
|
136
138
|
}, te = () => {
|
|
137
|
-
p.value && !f.value && !
|
|
139
|
+
p.value && !f.value && !c.value && !s.value ? ne(!0) : (i.config.checkOnClickNode && (s.value || c.value) || p.value && i.config.checkOnClickLeaf) && !f.value ? S(!n.node.checked) : o.value || x();
|
|
138
140
|
}, S = (e) => {
|
|
139
|
-
|
|
141
|
+
c.value ? (y(e), n.node.loaded && v()) : ne(e);
|
|
140
142
|
}, ne = (e) => {
|
|
141
|
-
|
|
143
|
+
n.node.loaded ? (y(e), !c.value && v()) : ee();
|
|
142
144
|
};
|
|
143
|
-
return (t, n) => (
|
|
145
|
+
return (t, n) => (G(), z("li", {
|
|
144
146
|
id: `${e.menuId}-${e.node.uid}`,
|
|
145
147
|
role: "menuitem",
|
|
146
148
|
"aria-haspopup": !p.value,
|
|
147
149
|
"aria-owns": p.value ? void 0 : e.menuId,
|
|
148
150
|
"aria-expanded": h.value,
|
|
149
151
|
tabindex: m.value ? -1 : void 0,
|
|
150
|
-
class:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
class: U([
|
|
153
|
+
Y(a).b(),
|
|
154
|
+
Y(a).is("selectable", c.value),
|
|
155
|
+
Y(a).is("active", e.node.checked),
|
|
156
|
+
Y(a).is("disabled", !m.value),
|
|
155
157
|
h.value && "in-active-path",
|
|
156
158
|
g.value && "in-checked-path"
|
|
157
159
|
]),
|
|
@@ -160,57 +162,57 @@ var ct = /* @__PURE__ */ H({
|
|
|
160
162
|
onClick: te
|
|
161
163
|
}, [
|
|
162
164
|
R(" prefix "),
|
|
163
|
-
|
|
165
|
+
s.value && l.value ? (G(), L(Y(j), {
|
|
164
166
|
key: 0,
|
|
165
167
|
"model-value": e.node.checked,
|
|
166
168
|
indeterminate: e.node.indeterminate,
|
|
167
169
|
disabled: f.value,
|
|
168
|
-
onClick: n[0] || (n[0] =
|
|
170
|
+
onClick: n[0] || (n[0] = qe(() => {}, ["stop"])),
|
|
169
171
|
"onUpdate:modelValue": S
|
|
170
172
|
}, null, 8, [
|
|
171
173
|
"model-value",
|
|
172
174
|
"indeterminate",
|
|
173
175
|
"disabled"
|
|
174
|
-
])) :
|
|
176
|
+
])) : c.value && l.value ? (G(), L(Y(Se), {
|
|
175
177
|
key: 1,
|
|
176
178
|
"model-value": d.value,
|
|
177
179
|
label: e.node.uid,
|
|
178
180
|
disabled: f.value,
|
|
179
181
|
"onUpdate:modelValue": S,
|
|
180
|
-
onClick: n[1] || (n[1] =
|
|
182
|
+
onClick: n[1] || (n[1] = qe(() => {}, ["stop"]))
|
|
181
183
|
}, {
|
|
182
|
-
default:
|
|
184
|
+
default: Z(() => [R("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "), n[2] || (n[2] = B("span", null, null, -1))]),
|
|
183
185
|
_: 1
|
|
184
186
|
}, 8, [
|
|
185
187
|
"model-value",
|
|
186
188
|
"label",
|
|
187
189
|
"disabled"
|
|
188
|
-
])) : p.value && e.node.checked ? (
|
|
190
|
+
])) : p.value && e.node.checked ? (G(), L(Y(O), {
|
|
189
191
|
key: 2,
|
|
190
|
-
class:
|
|
192
|
+
class: U(Y(a).e("prefix"))
|
|
191
193
|
}, {
|
|
192
|
-
default:
|
|
194
|
+
default: Z(() => [V(Y(ge))]),
|
|
193
195
|
_: 1
|
|
194
196
|
}, 8, ["class"])) : R("v-if", !0),
|
|
195
197
|
R(" content "),
|
|
196
|
-
V(
|
|
198
|
+
V(Y(ct), { node: e.node }, null, 8, ["node"]),
|
|
197
199
|
R(" postfix "),
|
|
198
|
-
p.value ? R("v-if", !0) : (
|
|
200
|
+
p.value ? R("v-if", !0) : (G(), z(F, { key: 3 }, [e.node.loading ? (G(), L(Y(O), {
|
|
199
201
|
key: 0,
|
|
200
|
-
class:
|
|
202
|
+
class: U([Y(a).is("loading"), Y(a).e("postfix")])
|
|
201
203
|
}, {
|
|
202
|
-
default:
|
|
204
|
+
default: Z(() => [V(Y(E))]),
|
|
203
205
|
_: 1
|
|
204
|
-
}, 8, ["class"])) : (
|
|
206
|
+
}, 8, ["class"])) : (G(), L(Y(O), {
|
|
205
207
|
key: 1,
|
|
206
|
-
class:
|
|
208
|
+
class: U(["arrow-right", Y(a).e("postfix")])
|
|
207
209
|
}, {
|
|
208
|
-
default:
|
|
210
|
+
default: Z(() => [V(Y(D))]),
|
|
209
211
|
_: 1
|
|
210
212
|
}, 8, ["class"]))], 64))
|
|
211
213
|
], 42, lt));
|
|
212
214
|
}
|
|
213
|
-
}), dt = /* @__PURE__ */
|
|
215
|
+
}), dt = /* @__PURE__ */ ke({
|
|
214
216
|
name: "ElCascaderMenu",
|
|
215
217
|
__name: "menu",
|
|
216
218
|
props: {
|
|
@@ -224,58 +226,58 @@ var ct = /* @__PURE__ */ H({
|
|
|
224
226
|
}
|
|
225
227
|
},
|
|
226
228
|
setup(e) {
|
|
227
|
-
let t = e,
|
|
228
|
-
|
|
229
|
+
let t = e, n = Ae(), r = u("cascader-menu"), { t: i } = oe(), a = fe(), o, s, c = H(ot), l = K(), d = I(() => !t.nodes.length), f = I(() => !c.initialLoaded), p = I(() => `${a.value}-${t.index}`), m = (e) => {
|
|
230
|
+
o = e.target;
|
|
229
231
|
}, h = (e) => {
|
|
230
|
-
if (!(!
|
|
232
|
+
if (!(!c.isHoverMenu || !o || !l.value)) if (o.contains(e.target)) {
|
|
231
233
|
var t;
|
|
232
234
|
g();
|
|
233
|
-
let
|
|
234
|
-
|
|
235
|
-
<path style="pointer-events: auto;" fill="transparent" d="M${
|
|
236
|
-
<path style="pointer-events: auto;" fill="transparent" d="M${
|
|
235
|
+
let i = n.vnode.el, { left: a } = i.getBoundingClientRect(), { offsetWidth: s, offsetHeight: c } = i, u = e.clientX - a, d = o.offsetTop, f = d + o.offsetHeight, p = ((t = i.querySelector(`.${r.e("wrap")}`)) == null ? void 0 : t.scrollTop) || 0;
|
|
236
|
+
l.value.innerHTML = `
|
|
237
|
+
<path style="pointer-events: auto;" fill="transparent" d="M${u} ${d} L${s} ${p} V${d} Z" />
|
|
238
|
+
<path style="pointer-events: auto;" fill="transparent" d="M${u} ${f} L${s} ${c + p} V${f} Z" />
|
|
237
239
|
`;
|
|
238
|
-
} else
|
|
240
|
+
} else s || (s = window.setTimeout(_, c.config.hoverThreshold));
|
|
239
241
|
}, g = () => {
|
|
240
|
-
|
|
242
|
+
s && (clearTimeout(s), s = void 0);
|
|
241
243
|
}, _ = () => {
|
|
242
|
-
|
|
244
|
+
l.value && (l.value.innerHTML = "", g());
|
|
243
245
|
};
|
|
244
|
-
return (t, n) => (
|
|
246
|
+
return (t, n) => (G(), L(Y(ve), {
|
|
245
247
|
key: p.value,
|
|
246
248
|
tag: "ul",
|
|
247
249
|
role: "menu",
|
|
248
|
-
class:
|
|
249
|
-
"wrap-class":
|
|
250
|
-
"view-class": [
|
|
250
|
+
class: U(Y(r).b()),
|
|
251
|
+
"wrap-class": Y(r).e("wrap"),
|
|
252
|
+
"view-class": [Y(r).e("list"), Y(r).is("empty", d.value)],
|
|
251
253
|
onMousemove: h,
|
|
252
254
|
onMouseleave: _
|
|
253
255
|
}, {
|
|
254
|
-
default:
|
|
256
|
+
default: Z(() => {
|
|
255
257
|
var n;
|
|
256
258
|
return [
|
|
257
|
-
(
|
|
259
|
+
(G(!0), z(F, null, Le(e.nodes, (e) => (G(), L(ut, {
|
|
258
260
|
key: e.uid,
|
|
259
261
|
node: e,
|
|
260
262
|
"menu-id": p.value,
|
|
261
263
|
onExpand: m
|
|
262
264
|
}, null, 8, ["node", "menu-id"]))), 128)),
|
|
263
|
-
f.value ? (
|
|
265
|
+
f.value ? (G(), z("div", {
|
|
264
266
|
key: 0,
|
|
265
|
-
class:
|
|
266
|
-
}, [V(
|
|
267
|
+
class: U(Y(r).e("empty-text"))
|
|
268
|
+
}, [V(Y(O), {
|
|
267
269
|
size: "14",
|
|
268
|
-
class:
|
|
270
|
+
class: U(Y(r).is("loading"))
|
|
269
271
|
}, {
|
|
270
|
-
default:
|
|
272
|
+
default: Z(() => [V(Y(E))]),
|
|
271
273
|
_: 1
|
|
272
|
-
}, 8, ["class"]), Oe(" " + Y(
|
|
274
|
+
}, 8, ["class"]), Oe(" " + J(Y(i)("el.cascader.loading")), 1)], 2)) : d.value ? (G(), z("div", {
|
|
273
275
|
key: 1,
|
|
274
|
-
class:
|
|
275
|
-
}, [
|
|
276
|
+
class: U(Y(r).e("empty-text"))
|
|
277
|
+
}, [q(t.$slots, "empty", {}, () => [Oe(J(Y(i)("el.cascader.noData")), 1)])], 2)) : (n = Y(c)) != null && n.isHoverMenu ? (G(), z(F, { key: 2 }, [R(" eslint-disable vue/html-self-closing "), (G(), z("svg", {
|
|
276
278
|
ref_key: "hoverZone",
|
|
277
|
-
ref:
|
|
278
|
-
class:
|
|
279
|
+
ref: l,
|
|
280
|
+
class: U(Y(r).e("hover-zone"))
|
|
279
281
|
}, null, 2))], 2112)) : R("v-if", !0),
|
|
280
282
|
R(" eslint-enable vue/html-self-closing ")
|
|
281
283
|
];
|
|
@@ -291,26 +293,26 @@ var ct = /* @__PURE__ */ H({
|
|
|
291
293
|
let t = [e], { parent: n } = e;
|
|
292
294
|
for (; n;) t.unshift(n), n = n.parent;
|
|
293
295
|
return t;
|
|
294
|
-
}, mt = class
|
|
295
|
-
constructor(
|
|
296
|
-
this.data =
|
|
297
|
-
let { value: a, label: o, children: s } = n, c =
|
|
298
|
-
this.level = i ? 0 : r ? r.level + 1 : 1, this.value =
|
|
296
|
+
}, mt = class e {
|
|
297
|
+
constructor(t, n, r, i = !1) {
|
|
298
|
+
this.data = t, this.config = n, this.parent = r, this.root = i, this.uid = ft++, this.checked = !1, this.indeterminate = !1, this.loading = !1;
|
|
299
|
+
let { value: a, label: o, children: s } = n, c = t[s], l = pt(this);
|
|
300
|
+
this.level = i ? 0 : r ? r.level + 1 : 1, this.value = t[a], this.label = t[o], this.pathNodes = l, this.pathValues = l.map((e) => e.value), this.pathLabels = l.map((e) => e.label), this.childrenData = c, this.children = (c || []).map((t) => new e(t, n, this)), this.loaded = !n.lazy || this.isLeaf || !_(c), this.text = "";
|
|
299
301
|
}
|
|
300
302
|
get isDisabled() {
|
|
301
|
-
let { data: e, parent: t, config: n } = this, { disabled:
|
|
302
|
-
return (r
|
|
303
|
+
let { data: e, parent: t, config: n } = this, { disabled: r, checkStrictly: i } = n;
|
|
304
|
+
return (d(r) ? r(e, this) : !!e[r]) || !i && !!(t != null && t.isDisabled);
|
|
303
305
|
}
|
|
304
306
|
get isLeaf() {
|
|
305
|
-
let { data:
|
|
306
|
-
return m(
|
|
307
|
+
let { data: e, config: t, childrenData: n, loaded: r } = this, { lazy: i, leaf: a } = t, o = d(a) ? a(e, this) : e[a];
|
|
308
|
+
return m(o) ? i && !r ? !1 : !(c(n) && n.length) : !!o;
|
|
307
309
|
}
|
|
308
310
|
get valueByOption() {
|
|
309
311
|
return this.config.emitPath ? this.pathValues : this.value;
|
|
310
312
|
}
|
|
311
|
-
appendChild(
|
|
312
|
-
let { childrenData:
|
|
313
|
-
return
|
|
313
|
+
appendChild(t) {
|
|
314
|
+
let { childrenData: n, children: r } = this, i = new e(t, this.config, this);
|
|
315
|
+
return c(n) ? n.push(t) : this.childrenData = [t], r.push(i), i;
|
|
314
316
|
}
|
|
315
317
|
calcText(e, t) {
|
|
316
318
|
let n = e ? this.pathLabels.join(t) : this.label;
|
|
@@ -372,10 +374,10 @@ var ct = /* @__PURE__ */ H({
|
|
|
372
374
|
});
|
|
373
375
|
}
|
|
374
376
|
getNodeByValue(e, t = !1) {
|
|
375
|
-
return ie(e) ? null : this.getFlattedNodes(t).find((t) =>
|
|
377
|
+
return ie(e) ? null : this.getFlattedNodes(t).find((t) => Q(t.value, e) || Q(t.pathValues, e)) || null;
|
|
376
378
|
}
|
|
377
379
|
getSameNode(e) {
|
|
378
|
-
return e && this.getFlattedNodes(!1).find(({ value: t, level: n }) =>
|
|
380
|
+
return e && this.getFlattedNodes(!1).find(({ value: t, level: n }) => Q(e.value, t) && e.level === n) || null;
|
|
379
381
|
}
|
|
380
382
|
}, _t = (e) => {
|
|
381
383
|
if (!e) return 0;
|
|
@@ -391,133 +393,133 @@ var ct = /* @__PURE__ */ H({
|
|
|
391
393
|
return i > -1 && (e.push(t), n.splice(i, 1), r.splice(i, 1)), e;
|
|
392
394
|
}, []);
|
|
393
395
|
return i.push(...n), i;
|
|
394
|
-
}, bt =
|
|
396
|
+
}, bt = p(/* @__PURE__ */ ke({
|
|
395
397
|
name: "ElCascaderPanel",
|
|
396
398
|
__name: "index",
|
|
397
399
|
props: rt,
|
|
398
400
|
emits: $,
|
|
399
|
-
setup(e, { expose:
|
|
400
|
-
let
|
|
401
|
-
let { options: e } =
|
|
402
|
-
|
|
401
|
+
setup(e, { expose: r, emit: i }) {
|
|
402
|
+
let s = e, c = i, l = !1, d = u("cascader"), f = at(s), p = He(), m, h = K(!0), g = K(!1), v = K([]), y = K(), b = K([]), x = K(), S = K([]), ne = I(() => f.value.expandTrigger === "hover"), ie = I(() => s.renderLabel || p.default), ae = () => {
|
|
403
|
+
let { options: e } = s, t = f.value;
|
|
404
|
+
l = !1, m = new gt(e, t), b.value = [m.getNodes()], t.lazy && _(s.options) ? (h.value = !1, oe(void 0, (e) => {
|
|
403
405
|
e && (m = new gt(e, t), b.value = [m.getNodes()]), h.value = !0, T(!1, !0);
|
|
404
406
|
})) : T(!1, !0);
|
|
405
|
-
},
|
|
406
|
-
let n =
|
|
407
|
+
}, oe = (e, t) => {
|
|
408
|
+
let n = f.value;
|
|
407
409
|
e = e || new mt({}, n, void 0, !0), e.loading = !0, n.lazyLoad(e, (n) => {
|
|
408
410
|
let r = e, i = r.root ? null : r;
|
|
409
411
|
r.loading = !1, r.loaded = !0, r.childrenData = r.childrenData || [], n && (m == null || m.appendNodes(n, i)), n && (t == null || t(n)), e.level === 0 && (g.value = !0);
|
|
410
412
|
}, () => {
|
|
411
413
|
e.loading = !1, e.loaded = !1, e.level === 0 && (h.value = !0);
|
|
412
414
|
});
|
|
413
|
-
},
|
|
415
|
+
}, w = (e, t) => {
|
|
414
416
|
var n;
|
|
415
|
-
let { level: r } = e, i = b.value.slice(0, r),
|
|
416
|
-
e.isLeaf ?
|
|
417
|
-
},
|
|
418
|
-
let { checkStrictly: r, multiple: i } =
|
|
419
|
-
|
|
420
|
-
},
|
|
421
|
-
e && (e = e.parent,
|
|
417
|
+
let { level: r } = e, i = b.value.slice(0, r), a;
|
|
418
|
+
e.isLeaf ? a = e.pathNodes[r - 2] : (a = e, i.push(e.children)), ((n = x.value) == null ? void 0 : n.uid) !== (a == null ? void 0 : a.uid) && (x.value = e, b.value = i, !t && c("expand-change", (e == null ? void 0 : e.pathValues) || []));
|
|
419
|
+
}, se = (e, t, n = !0) => {
|
|
420
|
+
let { checkStrictly: r, multiple: i } = f.value, a = S.value[0];
|
|
421
|
+
l = !0, !i && (a == null || a.doCheck(!1)), e.doCheck(t), fe(), n && !i && !r && c("close"), !n && !i && ce(e);
|
|
422
|
+
}, ce = (e) => {
|
|
423
|
+
e && (e = e.parent, ce(e), e && w(e));
|
|
422
424
|
}, le = (e) => m == null ? void 0 : m.getFlattedNodes(e), ue = (e) => {
|
|
423
425
|
var t;
|
|
424
426
|
return (t = le(e)) == null ? void 0 : t.filter(({ checked: e }) => e !== !1);
|
|
425
427
|
}, de = () => {
|
|
426
|
-
S.value.forEach((e) => e.doCheck(!1)), fe(), b.value = b.value.slice(0, 1), x.value = void 0,
|
|
428
|
+
S.value.forEach((e) => e.doCheck(!1)), fe(), b.value = b.value.slice(0, 1), x.value = void 0, c("expand-change", []);
|
|
427
429
|
}, fe = () => {
|
|
428
|
-
let { checkStrictly: e, multiple: t } =
|
|
430
|
+
let { checkStrictly: e, multiple: t } = f.value, n = S.value, r = yt(n, ue(!e)), i = r.map((e) => e.valueByOption);
|
|
429
431
|
S.value = r, y.value = t ? i : i[0] ?? null;
|
|
430
432
|
}, T = (e = !1, t = !1) => {
|
|
431
|
-
let { modelValue: n } =
|
|
432
|
-
if (!(!h.value ||
|
|
433
|
-
let e = _e(
|
|
433
|
+
let { modelValue: n } = s, { lazy: r, multiple: i, checkStrictly: a } = f.value, o = !a;
|
|
434
|
+
if (!(!h.value || l || !t && Q(n, y.value))) if (r && !e) {
|
|
435
|
+
let e = _e(et(A(n))).map((e) => m == null ? void 0 : m.getNodeByValue(e)).filter((e) => !!e && !e.loaded && !e.loading);
|
|
434
436
|
e.length ? e.forEach((e) => {
|
|
435
|
-
|
|
437
|
+
oe(e, () => T(!1, t));
|
|
436
438
|
}) : T(!0, t);
|
|
437
|
-
} else pe(_e((
|
|
439
|
+
} else pe(_e((i ? A(n) : [n]).map((e) => m == null ? void 0 : m.getNodeByValue(e, o))), t), y.value = $e(n ?? void 0);
|
|
438
440
|
}, pe = (e, t = !0) => {
|
|
439
|
-
let { checkStrictly: n } =
|
|
440
|
-
o ? o.pathNodes.forEach((e) =>
|
|
441
|
+
let { checkStrictly: n } = f.value, r = S.value, i = e.filter((e) => !!e && (n || e.isLeaf)), a = m == null ? void 0 : m.getSameNode(x.value), o = t && a || i[0];
|
|
442
|
+
o ? o.pathNodes.forEach((e) => w(e, !0)) : x.value = void 0, r.forEach((e) => e.doCheck(!1)), Ie(i).forEach((e) => e.doCheck(!0)), S.value = i, Me(E);
|
|
441
443
|
}, E = () => {
|
|
442
444
|
ee && v.value.forEach((e) => {
|
|
443
445
|
let t = e == null ? void 0 : e.$el;
|
|
444
446
|
if (t) {
|
|
445
|
-
let e = t.querySelector(`.${
|
|
447
|
+
let e = t.querySelector(`.${d.namespace.value}-scrollbar__wrap`), n = t.querySelector(`.${d.b("node")}.in-active-path`);
|
|
446
448
|
if (!n) {
|
|
447
|
-
let e = t.querySelectorAll(`.${
|
|
449
|
+
let e = t.querySelectorAll(`.${d.b("node")}.${d.is("active")}`);
|
|
448
450
|
n = e[e.length - 1];
|
|
449
451
|
}
|
|
450
|
-
|
|
452
|
+
C(e, n);
|
|
451
453
|
}
|
|
452
454
|
});
|
|
453
455
|
}, D = (e) => {
|
|
454
|
-
let
|
|
455
|
-
switch (
|
|
456
|
-
case
|
|
457
|
-
case
|
|
458
|
-
e.preventDefault(), re(te(
|
|
456
|
+
let r = e.target, i = t(e);
|
|
457
|
+
switch (i) {
|
|
458
|
+
case n.up:
|
|
459
|
+
case n.down:
|
|
460
|
+
e.preventDefault(), re(te(r, i === n.up ? -1 : 1, `.${d.b("node")}[tabindex="-1"]`));
|
|
459
461
|
break;
|
|
460
|
-
case
|
|
461
|
-
var
|
|
462
|
-
e.preventDefault(), re((
|
|
462
|
+
case n.left:
|
|
463
|
+
var a;
|
|
464
|
+
e.preventDefault(), re((a = v.value[_t(r) - 1]) == null ? void 0 : a.$el.querySelector(`.${d.b("node")}[aria-expanded="true"]`));
|
|
463
465
|
break;
|
|
464
|
-
case
|
|
465
|
-
var
|
|
466
|
-
e.preventDefault(), re((
|
|
466
|
+
case n.right:
|
|
467
|
+
var o;
|
|
468
|
+
e.preventDefault(), re((o = v.value[_t(r) + 1]) == null ? void 0 : o.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`));
|
|
467
469
|
break;
|
|
468
|
-
case
|
|
469
|
-
case
|
|
470
|
-
vt(
|
|
470
|
+
case n.enter:
|
|
471
|
+
case n.numpadEnter:
|
|
472
|
+
vt(r);
|
|
471
473
|
break;
|
|
472
474
|
}
|
|
473
475
|
};
|
|
474
|
-
return
|
|
475
|
-
config:
|
|
476
|
+
return Fe(ot, Ie({
|
|
477
|
+
config: f,
|
|
476
478
|
expandingNode: x,
|
|
477
479
|
checkedNodes: S,
|
|
478
480
|
isHoverMenu: ne,
|
|
479
481
|
initialLoaded: h,
|
|
480
482
|
renderLabelFn: ie,
|
|
481
|
-
lazyLoad:
|
|
482
|
-
expandNode:
|
|
483
|
-
handleCheckChange:
|
|
484
|
-
})),
|
|
485
|
-
|
|
486
|
-
}, { immediate: !0 }),
|
|
487
|
-
|
|
488
|
-
}, { deep: !0 }),
|
|
489
|
-
|
|
490
|
-
}),
|
|
483
|
+
lazyLoad: oe,
|
|
484
|
+
expandNode: w,
|
|
485
|
+
handleCheckChange: se
|
|
486
|
+
})), X(f, (e, t) => {
|
|
487
|
+
Q(e, t) || ae();
|
|
488
|
+
}, { immediate: !0 }), X(() => s.options, ae, { deep: !0 }), X(() => s.modelValue, () => {
|
|
489
|
+
l = !1, T();
|
|
490
|
+
}, { deep: !0 }), X(() => y.value, (e) => {
|
|
491
|
+
Q(e, s.modelValue) || (c(a, e), c(o, e));
|
|
492
|
+
}), W(() => v.value = []), Pe(() => !_(s.modelValue) && T()), r({
|
|
491
493
|
menuList: v,
|
|
492
494
|
menus: b,
|
|
493
495
|
checkedNodes: S,
|
|
494
496
|
handleKeyDown: D,
|
|
495
|
-
handleCheckChange:
|
|
497
|
+
handleCheckChange: se,
|
|
496
498
|
getFlattedNodes: le,
|
|
497
499
|
getCheckedNodes: ue,
|
|
498
500
|
clearCheckedNodes: de,
|
|
499
501
|
calculateCheckedValue: fe,
|
|
500
502
|
scrollToExpandingNode: E,
|
|
501
503
|
loadLazyRootNodes: () => {
|
|
502
|
-
g.value ||
|
|
504
|
+
g.value || ae();
|
|
503
505
|
}
|
|
504
|
-
}), (t, n) => (
|
|
505
|
-
class:
|
|
506
|
+
}), (t, n) => (G(), z("div", {
|
|
507
|
+
class: U([Y(d).b("panel"), Y(d).is("bordered", e.border)]),
|
|
506
508
|
onKeydown: D
|
|
507
|
-
}, [(
|
|
509
|
+
}, [(G(!0), z(F, null, Le(b.value, (e, n) => (G(), L(dt, {
|
|
508
510
|
key: n,
|
|
509
511
|
ref_for: !0,
|
|
510
512
|
ref: (e) => v.value[n] = e,
|
|
511
513
|
index: n,
|
|
512
514
|
nodes: [...e]
|
|
513
515
|
}, {
|
|
514
|
-
empty:
|
|
516
|
+
empty: Z(() => [q(t.$slots, "empty")]),
|
|
515
517
|
_: 3
|
|
516
518
|
}, 8, ["index", "nodes"]))), 128))], 34));
|
|
517
519
|
}
|
|
518
520
|
})), xt = S({
|
|
519
521
|
...tt,
|
|
520
|
-
size:
|
|
522
|
+
size: s,
|
|
521
523
|
placeholder: String,
|
|
522
524
|
disabled: {
|
|
523
525
|
type: Boolean,
|
|
@@ -558,7 +560,7 @@ var ct = /* @__PURE__ */ H({
|
|
|
558
560
|
},
|
|
559
561
|
placement: {
|
|
560
562
|
type: v(String),
|
|
561
|
-
values:
|
|
563
|
+
values: se,
|
|
562
564
|
default: "bottom-start"
|
|
563
565
|
},
|
|
564
566
|
fallbackPlacements: {
|
|
@@ -572,9 +574,9 @@ var ct = /* @__PURE__ */ H({
|
|
|
572
574
|
"left"
|
|
573
575
|
]
|
|
574
576
|
},
|
|
575
|
-
popperClass:
|
|
576
|
-
popperStyle:
|
|
577
|
-
teleported:
|
|
577
|
+
popperClass: w.popperClass,
|
|
578
|
+
popperStyle: w.popperStyle,
|
|
579
|
+
teleported: w.teleported,
|
|
578
580
|
effect: {
|
|
579
581
|
type: v(String),
|
|
580
582
|
default: "light"
|
|
@@ -605,23 +607,23 @@ var ct = /* @__PURE__ */ H({
|
|
|
605
607
|
type: Boolean,
|
|
606
608
|
default: !0
|
|
607
609
|
},
|
|
608
|
-
...
|
|
610
|
+
...i
|
|
609
611
|
}), St = (e) => !0, Ct = {
|
|
610
|
-
[
|
|
611
|
-
[
|
|
612
|
+
[a]: St,
|
|
613
|
+
[o]: St,
|
|
612
614
|
focus: (e) => e instanceof FocusEvent,
|
|
613
615
|
blur: (e) => e instanceof FocusEvent,
|
|
614
616
|
clear: () => !0,
|
|
615
617
|
visibleChange: (e) => g(e),
|
|
616
618
|
expandChange: (e) => !!e,
|
|
617
619
|
removeTag: (e) => !!e
|
|
618
|
-
}, wt = ["placeholder"], Tt = ["onClick"], Et = N(
|
|
620
|
+
}, wt = ["placeholder"], Tt = ["onClick"], Et = N(p(/* @__PURE__ */ ke({
|
|
619
621
|
name: "ElCascader",
|
|
620
622
|
__name: "cascader",
|
|
621
623
|
props: xt,
|
|
622
624
|
emits: Ct,
|
|
623
|
-
setup(e, { expose:
|
|
624
|
-
let
|
|
625
|
+
setup(e, { expose: i, emit: s }) {
|
|
626
|
+
let c = { modifiers: [{
|
|
625
627
|
name: "arrowPosition",
|
|
626
628
|
enabled: !0,
|
|
627
629
|
phase: "main",
|
|
@@ -635,17 +637,17 @@ var ct = /* @__PURE__ */ H({
|
|
|
635
637
|
].includes(n) || t.arrow && (t.arrow.x = 35);
|
|
636
638
|
},
|
|
637
639
|
requires: ["arrow"]
|
|
638
|
-
}] },
|
|
640
|
+
}] }, d = e, f = s, p = Ve(), m = He(), g = 0, _ = 0, v = u("cascader"), S = u("input"), ne = {
|
|
639
641
|
small: 7,
|
|
640
642
|
default: 11,
|
|
641
643
|
large: 15
|
|
642
|
-
}, { t: ie } =
|
|
644
|
+
}, { t: ie } = oe(), { formItem: C } = de(), w = ue(), { valueOnClear: se } = r(d), { isComposing: fe, handleComposition: E } = pe({ afterComposition(e) {
|
|
643
645
|
var t;
|
|
644
646
|
Et((t = e.target) == null ? void 0 : t.value);
|
|
645
|
-
} }), D =
|
|
647
|
+
} }), D = K(), me = K(), k = K(), _e = K(), A = K(), ye = K(), j = K(!1), Se = K(!1), M = K(!1), Ce = K(""), N = K(""), P = K([]), we = K([]), Te = I(() => d.props.multiple ? d.collapseTags ? P.value.slice(0, d.maxCollapseTags) : P.value : []), Ee = I(() => d.props.multiple && d.collapseTags ? P.value.slice(d.maxCollapseTags) : []), Oe = I(() => p.style), ke = I(() => d.placeholder ?? ie("el.cascader.placeholder")), Ae = I(() => N.value || P.value.length > 0 || fe.value ? "" : ke.value), H = le(), je = I(() => H.value === "small" ? "small" : "default"), W = I(() => !!d.props.multiple), Fe = I(() => !d.filterable || W.value), Ie = I(() => W.value ? N.value : Ce.value), Re = I(() => {
|
|
646
648
|
var e;
|
|
647
649
|
return ((e = A.value) == null ? void 0 : e.checkedNodes) || [];
|
|
648
|
-
}), { wrapperRef:
|
|
650
|
+
}), { wrapperRef: Be, isFocused: Je, handleBlur: Ye } = T(k, {
|
|
649
651
|
disabled: w,
|
|
650
652
|
beforeBlur(e) {
|
|
651
653
|
var t, n;
|
|
@@ -653,47 +655,47 @@ var ct = /* @__PURE__ */ H({
|
|
|
653
655
|
},
|
|
654
656
|
afterBlur() {
|
|
655
657
|
var e;
|
|
656
|
-
|
|
658
|
+
d.validateEvent && (C == null || (e = C.validate) == null || e.call(C, "blur").catch((e) => y(e)));
|
|
657
659
|
}
|
|
658
|
-
}),
|
|
659
|
-
let { showAllLevels: e, separator: t } =
|
|
660
|
-
return n.length ?
|
|
661
|
-
}),
|
|
660
|
+
}), Xe = I(() => !d.clearable || w.value || M.value || !Se.value && !Je.value ? !1 : !!Re.value.length), Ze = I(() => {
|
|
661
|
+
let { showAllLevels: e, separator: t } = d, n = Re.value;
|
|
662
|
+
return n.length ? W.value ? "" : n[0].calcText(e, t) : "";
|
|
663
|
+
}), Qe = I(() => (C == null ? void 0 : C.validateState) || ""), et = I({
|
|
662
664
|
get() {
|
|
663
|
-
return
|
|
665
|
+
return $e(d.modelValue);
|
|
664
666
|
},
|
|
665
667
|
set(e) {
|
|
666
|
-
let t = e ??
|
|
667
|
-
|
|
668
|
+
let t = e ?? se.value;
|
|
669
|
+
f(a, t), f(o, t), d.validateEvent && (C == null || C.validate("change").catch((e) => y(e)));
|
|
668
670
|
}
|
|
669
|
-
}),
|
|
671
|
+
}), Q = I(() => [
|
|
670
672
|
v.b(),
|
|
671
|
-
v.m(
|
|
673
|
+
v.m(H.value),
|
|
672
674
|
v.is("disabled", w.value),
|
|
673
675
|
p.class
|
|
674
676
|
]), tt = I(() => [
|
|
675
677
|
S.e("icon"),
|
|
676
678
|
"icon-arrow-down",
|
|
677
679
|
v.is("reverse", j.value)
|
|
678
|
-
]), nt = I(() => v.is("focus",
|
|
680
|
+
]), nt = I(() => v.is("focus", Je.value)), rt = I(() => {
|
|
679
681
|
var e;
|
|
680
682
|
return (e = D.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
|
|
681
683
|
}), it = (e) => {
|
|
682
|
-
|
|
684
|
+
Je.value && Ye(new FocusEvent("blur", e)), $(!1);
|
|
683
685
|
}, $ = (e) => {
|
|
684
686
|
if (!w.value && (e = e ?? !j.value, e !== j.value)) {
|
|
685
687
|
var t;
|
|
686
|
-
j.value = e, (t = k.value) == null || (t = t.input) == null || t.setAttribute("aria-expanded", `${e}`), e ? (at(), A.value &&
|
|
688
|
+
j.value = e, (t = k.value) == null || (t = t.input) == null || t.setAttribute("aria-expanded", `${e}`), e ? (at(), A.value && Me(A.value.scrollToExpandingNode)) : d.filterable && vt(), f("visibleChange", e);
|
|
687
689
|
}
|
|
688
690
|
}, at = () => {
|
|
689
|
-
|
|
691
|
+
Me(() => {
|
|
690
692
|
var e;
|
|
691
693
|
(e = D.value) == null || e.updatePopper();
|
|
692
694
|
});
|
|
693
695
|
}, ot = () => {
|
|
694
696
|
M.value = !1;
|
|
695
697
|
}, st = (e) => {
|
|
696
|
-
let { showAllLevels: t, separator: n } =
|
|
698
|
+
let { showAllLevels: t, separator: n } = d;
|
|
697
699
|
return {
|
|
698
700
|
node: e,
|
|
699
701
|
key: e.uid,
|
|
@@ -704,10 +706,10 @@ var ct = /* @__PURE__ */ H({
|
|
|
704
706
|
}, ct = (e) => {
|
|
705
707
|
var t;
|
|
706
708
|
let n = e.node;
|
|
707
|
-
n.doCheck(!1), (t = A.value) == null || t.calculateCheckedValue(),
|
|
709
|
+
n.doCheck(!1), (t = A.value) == null || t.calculateCheckedValue(), f("removeTag", n.valueByOption);
|
|
708
710
|
}, lt = () => {
|
|
709
|
-
switch (
|
|
710
|
-
case "child": return
|
|
711
|
+
switch (d.showCheckedStrategy) {
|
|
712
|
+
case "child": return Re.value;
|
|
711
713
|
case "parent": {
|
|
712
714
|
let e = mt(!1), t = e.map((e) => e.value);
|
|
713
715
|
return e.filter((e) => !e.parent || !t.includes(e.parent.value));
|
|
@@ -715,13 +717,13 @@ var ct = /* @__PURE__ */ H({
|
|
|
715
717
|
default: return [];
|
|
716
718
|
}
|
|
717
719
|
}, ut = () => {
|
|
718
|
-
if (!
|
|
720
|
+
if (!W.value) return;
|
|
719
721
|
let e = lt(), t = [];
|
|
720
722
|
e.forEach((e) => t.push(st(e))), P.value = t;
|
|
721
723
|
}, dt = () => {
|
|
722
724
|
var e;
|
|
723
|
-
let { filterMethod: t, showAllLevels: n, separator: r } =
|
|
724
|
-
|
|
725
|
+
let { filterMethod: t, showAllLevels: n, separator: r } = d, i = (e = A.value) == null || (e = e.getFlattedNodes(!d.props.checkStrictly)) == null ? void 0 : e.filter((e) => e.isDisabled ? !1 : (e.calcText(n, r), t(e, Ie.value)));
|
|
726
|
+
W.value && P.value.forEach((e) => {
|
|
725
727
|
e.hitState = !1;
|
|
726
728
|
}), M.value = !0, we.value = i, at();
|
|
727
729
|
}, ft = () => {
|
|
@@ -741,7 +743,7 @@ var ct = /* @__PURE__ */ H({
|
|
|
741
743
|
if (n.style.height = t, m.prefix) {
|
|
742
744
|
var a;
|
|
743
745
|
let e = (a = k.value) == null ? void 0 : a.$el.querySelector(`.${S.e("prefix")}`), t = 0;
|
|
744
|
-
e && (t = e.offsetWidth, t > 0 && (t += ne[
|
|
746
|
+
e && (t = e.offsetWidth, t > 0 && (t += ne[H.value || "default"])), r.style.left = `${t}px`;
|
|
745
747
|
} else r.style.left = "0";
|
|
746
748
|
at();
|
|
747
749
|
}
|
|
@@ -750,83 +752,83 @@ var ct = /* @__PURE__ */ H({
|
|
|
750
752
|
var t;
|
|
751
753
|
return (t = A.value) == null ? void 0 : t.getCheckedNodes(e);
|
|
752
754
|
}, ht = (e) => {
|
|
753
|
-
at(),
|
|
755
|
+
at(), f("expandChange", e);
|
|
754
756
|
}, gt = (e) => {
|
|
755
|
-
if (!
|
|
756
|
-
case
|
|
757
|
-
case
|
|
757
|
+
if (!fe.value) switch (t(e)) {
|
|
758
|
+
case n.enter:
|
|
759
|
+
case n.numpadEnter:
|
|
758
760
|
$();
|
|
759
761
|
break;
|
|
760
|
-
case
|
|
761
|
-
$(!0),
|
|
762
|
+
case n.down:
|
|
763
|
+
$(!0), Me(ft), e.preventDefault();
|
|
762
764
|
break;
|
|
763
|
-
case
|
|
765
|
+
case n.esc:
|
|
764
766
|
j.value === !0 && (e.preventDefault(), e.stopPropagation(), $(!1));
|
|
765
767
|
break;
|
|
766
|
-
case
|
|
768
|
+
case n.tab:
|
|
767
769
|
$(!1);
|
|
768
770
|
break;
|
|
769
771
|
}
|
|
770
772
|
}, _t = () => {
|
|
771
773
|
var e;
|
|
772
|
-
(e = A.value) == null || e.clearCheckedNodes(), !j.value &&
|
|
774
|
+
(e = A.value) == null || e.clearCheckedNodes(), !j.value && d.filterable && vt(), $(!1), f("clear");
|
|
773
775
|
}, vt = () => {
|
|
774
|
-
let { value: e } =
|
|
776
|
+
let { value: e } = Ze;
|
|
775
777
|
Ce.value = e, N.value = e;
|
|
776
778
|
}, yt = (e) => {
|
|
777
779
|
var t;
|
|
778
780
|
let { checked: n } = e;
|
|
779
|
-
if (
|
|
781
|
+
if (W.value) (t = A.value) == null || t.handleCheckChange(e, !n, !1);
|
|
780
782
|
else {
|
|
781
783
|
var r;
|
|
782
784
|
!n && ((r = A.value) == null || r.handleCheckChange(e, !0, !1)), $(!1);
|
|
783
785
|
}
|
|
784
786
|
}, xt = (e) => {
|
|
785
|
-
let
|
|
786
|
-
switch (
|
|
787
|
-
case
|
|
788
|
-
case
|
|
789
|
-
e.preventDefault(), re(te(
|
|
787
|
+
let r = e.target, i = t(e);
|
|
788
|
+
switch (i) {
|
|
789
|
+
case n.up:
|
|
790
|
+
case n.down:
|
|
791
|
+
e.preventDefault(), re(te(r, i === n.up ? -1 : 1, `.${v.e("suggestion-item")}[tabindex="-1"]`));
|
|
790
792
|
break;
|
|
791
|
-
case
|
|
792
|
-
case
|
|
793
|
-
|
|
793
|
+
case n.enter:
|
|
794
|
+
case n.numpadEnter:
|
|
795
|
+
r.click();
|
|
794
796
|
break;
|
|
795
797
|
}
|
|
796
798
|
}, St = () => {
|
|
797
799
|
let e = P.value[P.value.length - 1];
|
|
798
|
-
_ = N.value ? 0 : _ + 1, !(!e || !_ ||
|
|
800
|
+
_ = N.value ? 0 : _ + 1, !(!e || !_ || d.collapseTags && P.value.length > 1) && (e.hitState ? ct(e) : e.hitState = !0);
|
|
799
801
|
}, Ct = h(() => {
|
|
800
|
-
let { value: e } =
|
|
802
|
+
let { value: e } = Ie;
|
|
801
803
|
if (!e) return;
|
|
802
|
-
let
|
|
803
|
-
t
|
|
804
|
-
}, I(() =>
|
|
804
|
+
let t = d.beforeFilter(e);
|
|
805
|
+
l(t) ? t.then(dt).catch(() => {}) : t === !1 ? ot() : dt();
|
|
806
|
+
}, I(() => d.debounce)), Et = (e, t) => {
|
|
805
807
|
!j.value && $(!0), !(t != null && t.isComposing) && (e ? Ct() : ot());
|
|
806
808
|
}, Dt = (e) => Number.parseFloat(b(S.cssVarName("input-height"), e).value) - 2;
|
|
807
|
-
return
|
|
808
|
-
|
|
809
|
+
return X(M, at), X([
|
|
810
|
+
Re,
|
|
809
811
|
w,
|
|
810
|
-
() =>
|
|
811
|
-
() =>
|
|
812
|
-
], ut),
|
|
813
|
-
|
|
814
|
-
}),
|
|
815
|
-
await
|
|
812
|
+
() => d.collapseTags,
|
|
813
|
+
() => d.maxCollapseTags
|
|
814
|
+
], ut), X(P, () => {
|
|
815
|
+
Me(() => pt());
|
|
816
|
+
}), X(H, async () => {
|
|
817
|
+
await Me();
|
|
816
818
|
let e = k.value.input;
|
|
817
819
|
g = Dt(e) || g, pt();
|
|
818
|
-
}),
|
|
820
|
+
}), X(Ze, vt, { immediate: !0 }), X(() => j.value, (e) => {
|
|
819
821
|
var t;
|
|
820
|
-
e &&
|
|
821
|
-
}),
|
|
822
|
+
e && d.props.lazy && d.props.lazyLoad && ((t = A.value) == null || t.loadLazyRootNodes());
|
|
823
|
+
}), Pe(() => {
|
|
822
824
|
let e = k.value.input, t = Dt(e);
|
|
823
825
|
g = e.offsetHeight || t, x(e, pt);
|
|
824
|
-
}),
|
|
826
|
+
}), i({
|
|
825
827
|
getCheckedNodes: mt,
|
|
826
828
|
cascaderPanelRef: A,
|
|
827
829
|
togglePopperVisible: $,
|
|
828
830
|
contentRef: rt,
|
|
829
|
-
presentText:
|
|
831
|
+
presentText: Ze,
|
|
830
832
|
focus: () => {
|
|
831
833
|
var e;
|
|
832
834
|
(e = k.value) == null || e.focus();
|
|
@@ -835,69 +837,69 @@ var ct = /* @__PURE__ */ H({
|
|
|
835
837
|
var e;
|
|
836
838
|
(e = k.value) == null || e.blur();
|
|
837
839
|
}
|
|
838
|
-
}), (t, n) => (
|
|
840
|
+
}), (t, n) => (G(), L(Y(ce), {
|
|
839
841
|
ref_key: "tooltipRef",
|
|
840
842
|
ref: D,
|
|
841
843
|
visible: j.value,
|
|
842
844
|
teleported: e.teleported,
|
|
843
|
-
"popper-class": [
|
|
845
|
+
"popper-class": [Y(v).e("dropdown"), e.popperClass],
|
|
844
846
|
"popper-style": e.popperStyle,
|
|
845
|
-
"popper-options":
|
|
847
|
+
"popper-options": c,
|
|
846
848
|
"fallback-placements": e.fallbackPlacements,
|
|
847
849
|
"stop-popper-mouse-event": !1,
|
|
848
850
|
"gpu-acceleration": !1,
|
|
849
851
|
placement: e.placement,
|
|
850
|
-
transition: `${
|
|
852
|
+
transition: `${Y(v).namespace.value}-zoom-in-top`,
|
|
851
853
|
effect: e.effect,
|
|
852
854
|
pure: "",
|
|
853
855
|
persistent: e.persistent,
|
|
854
856
|
onHide: ot
|
|
855
857
|
}, {
|
|
856
|
-
default:
|
|
858
|
+
default: Z(() => [Ge((G(), z("div", {
|
|
857
859
|
ref_key: "wrapperRef",
|
|
858
|
-
ref:
|
|
859
|
-
class:
|
|
860
|
-
style:
|
|
861
|
-
onClick: n[8] || (n[8] = () => $(
|
|
860
|
+
ref: Be,
|
|
861
|
+
class: U(Q.value),
|
|
862
|
+
style: Ne(Oe.value),
|
|
863
|
+
onClick: n[8] || (n[8] = () => $(Fe.value ? void 0 : !0)),
|
|
862
864
|
onKeydown: gt,
|
|
863
865
|
onMouseenter: n[9] || (n[9] = (e) => Se.value = !0),
|
|
864
866
|
onMouseleave: n[10] || (n[10] = (e) => Se.value = !1)
|
|
865
|
-
}, [V(
|
|
867
|
+
}, [V(Y(ae), {
|
|
866
868
|
ref_key: "inputRef",
|
|
867
869
|
ref: k,
|
|
868
870
|
modelValue: Ce.value,
|
|
869
871
|
"onUpdate:modelValue": n[1] || (n[1] = (e) => Ce.value = e),
|
|
870
|
-
placeholder:
|
|
871
|
-
readonly:
|
|
872
|
-
disabled:
|
|
872
|
+
placeholder: Ae.value,
|
|
873
|
+
readonly: Fe.value,
|
|
874
|
+
disabled: Y(w),
|
|
873
875
|
"validate-event": !1,
|
|
874
|
-
size:
|
|
875
|
-
class:
|
|
876
|
-
tabindex:
|
|
877
|
-
onCompositionstart:
|
|
878
|
-
onCompositionupdate:
|
|
879
|
-
onCompositionend:
|
|
876
|
+
size: Y(H),
|
|
877
|
+
class: U(nt.value),
|
|
878
|
+
tabindex: W.value && e.filterable && !Y(w) ? -1 : void 0,
|
|
879
|
+
onCompositionstart: Y(E),
|
|
880
|
+
onCompositionupdate: Y(E),
|
|
881
|
+
onCompositionend: Y(E),
|
|
880
882
|
onInput: Et
|
|
881
883
|
}, De({
|
|
882
|
-
suffix:
|
|
884
|
+
suffix: Z(() => [Xe.value ? (G(), L(Y(O), {
|
|
883
885
|
key: "clear",
|
|
884
|
-
class:
|
|
885
|
-
onClick:
|
|
886
|
+
class: U([Y(S).e("icon"), "icon-circle-close"]),
|
|
887
|
+
onClick: qe(_t, ["stop"])
|
|
886
888
|
}, {
|
|
887
|
-
default:
|
|
889
|
+
default: Z(() => [(G(), L(ze(e.clearIcon)))]),
|
|
888
890
|
_: 1
|
|
889
|
-
}, 8, ["class"])) : (
|
|
891
|
+
}, 8, ["class"])) : (G(), L(Y(O), {
|
|
890
892
|
key: "arrow-down",
|
|
891
|
-
class:
|
|
892
|
-
onClick: n[0] || (n[0] =
|
|
893
|
+
class: U(tt.value),
|
|
894
|
+
onClick: n[0] || (n[0] = qe((e) => $(), ["stop"]))
|
|
893
895
|
}, {
|
|
894
|
-
default:
|
|
896
|
+
default: Z(() => [V(Y(he))]),
|
|
895
897
|
_: 1
|
|
896
898
|
}, 8, ["class"]))]),
|
|
897
899
|
_: 2
|
|
898
900
|
}, [t.$slots.prefix ? {
|
|
899
901
|
name: "prefix",
|
|
900
|
-
fn:
|
|
902
|
+
fn: Z(() => [q(t.$slots, "prefix")]),
|
|
901
903
|
key: "0"
|
|
902
904
|
} : void 0]), 1032, [
|
|
903
905
|
"modelValue",
|
|
@@ -910,26 +912,26 @@ var ct = /* @__PURE__ */ H({
|
|
|
910
912
|
"onCompositionstart",
|
|
911
913
|
"onCompositionupdate",
|
|
912
914
|
"onCompositionend"
|
|
913
|
-
]),
|
|
915
|
+
]), W.value ? (G(), z("div", {
|
|
914
916
|
key: 0,
|
|
915
917
|
ref_key: "tagWrapper",
|
|
916
918
|
ref: _e,
|
|
917
|
-
class:
|
|
919
|
+
class: U([Y(v).e("tags"), Y(v).is("validate", !!Qe.value)])
|
|
918
920
|
}, [
|
|
919
|
-
|
|
921
|
+
q(t.$slots, "tag", {
|
|
920
922
|
data: P.value,
|
|
921
923
|
deleteTag: ct
|
|
922
|
-
}, () => [(
|
|
924
|
+
}, () => [(G(!0), z(F, null, Le(Te.value, (t) => (G(), L(Y(xe), {
|
|
923
925
|
key: t.key,
|
|
924
926
|
type: e.tagType,
|
|
925
|
-
size:
|
|
927
|
+
size: je.value,
|
|
926
928
|
effect: e.tagEffect,
|
|
927
929
|
hit: t.hitState,
|
|
928
930
|
closable: t.closable,
|
|
929
931
|
"disable-transitions": "",
|
|
930
932
|
onClose: (e) => ct(t)
|
|
931
933
|
}, {
|
|
932
|
-
default:
|
|
934
|
+
default: Z(() => [B("span", null, J(t.text), 1)]),
|
|
933
935
|
_: 2
|
|
934
936
|
}, 1032, [
|
|
935
937
|
"type",
|
|
@@ -939,7 +941,7 @@ var ct = /* @__PURE__ */ H({
|
|
|
939
941
|
"closable",
|
|
940
942
|
"onClose"
|
|
941
943
|
]))), 128))]),
|
|
942
|
-
e.collapseTags && P.value.length > e.maxCollapseTags ? (
|
|
944
|
+
e.collapseTags && P.value.length > e.maxCollapseTags ? (G(), L(Y(ce), {
|
|
943
945
|
key: 0,
|
|
944
946
|
ref_key: "tagTooltipRef",
|
|
945
947
|
ref: me,
|
|
@@ -956,36 +958,36 @@ var ct = /* @__PURE__ */ H({
|
|
|
956
958
|
effect: e.effect,
|
|
957
959
|
persistent: e.persistent
|
|
958
960
|
}, {
|
|
959
|
-
default:
|
|
961
|
+
default: Z(() => [V(Y(xe), {
|
|
960
962
|
closable: !1,
|
|
961
|
-
size:
|
|
963
|
+
size: je.value,
|
|
962
964
|
type: e.tagType,
|
|
963
965
|
effect: e.tagEffect,
|
|
964
966
|
"disable-transitions": ""
|
|
965
967
|
}, {
|
|
966
|
-
default:
|
|
968
|
+
default: Z(() => [B("span", { class: U(Y(v).e("tags-text")) }, " + " + J(P.value.length - e.maxCollapseTags), 3)]),
|
|
967
969
|
_: 1
|
|
968
970
|
}, 8, [
|
|
969
971
|
"size",
|
|
970
972
|
"type",
|
|
971
973
|
"effect"
|
|
972
974
|
])]),
|
|
973
|
-
content:
|
|
974
|
-
default:
|
|
975
|
+
content: Z(() => [V(Y(ve), { "max-height": e.maxCollapseTagsTooltipHeight }, {
|
|
976
|
+
default: Z(() => [B("div", { class: U(Y(v).e("collapse-tags")) }, [(G(!0), z(F, null, Le(Ee.value, (t, n) => (G(), z("div", {
|
|
975
977
|
key: n,
|
|
976
|
-
class:
|
|
977
|
-
}, [(
|
|
978
|
+
class: U(Y(v).e("collapse-tag"))
|
|
979
|
+
}, [(G(), L(Y(xe), {
|
|
978
980
|
key: t.key,
|
|
979
981
|
class: "in-tooltip",
|
|
980
982
|
type: e.tagType,
|
|
981
|
-
size:
|
|
983
|
+
size: je.value,
|
|
982
984
|
effect: e.tagEffect,
|
|
983
985
|
hit: t.hitState,
|
|
984
986
|
closable: t.closable,
|
|
985
987
|
"disable-transitions": "",
|
|
986
988
|
onClose: (e) => ct(t)
|
|
987
989
|
}, {
|
|
988
|
-
default:
|
|
990
|
+
default: Z(() => [B("span", null, J(t.text), 1)]),
|
|
989
991
|
_: 2
|
|
990
992
|
}, 1032, [
|
|
991
993
|
"type",
|
|
@@ -1005,75 +1007,75 @@ var ct = /* @__PURE__ */ H({
|
|
|
1005
1007
|
"effect",
|
|
1006
1008
|
"persistent"
|
|
1007
1009
|
])) : R("v-if", !0),
|
|
1008
|
-
e.filterable && !
|
|
1010
|
+
e.filterable && !Y(w) ? Ge((G(), z("input", {
|
|
1009
1011
|
key: 1,
|
|
1010
1012
|
"onUpdate:modelValue": n[2] || (n[2] = (e) => N.value = e),
|
|
1011
1013
|
type: "text",
|
|
1012
|
-
class:
|
|
1013
|
-
placeholder:
|
|
1014
|
+
class: U(Y(v).e("search-input")),
|
|
1015
|
+
placeholder: Ze.value ? "" : ke.value,
|
|
1014
1016
|
onInput: n[3] || (n[3] = (e) => Et(N.value, e)),
|
|
1015
|
-
onClick: n[4] || (n[4] =
|
|
1016
|
-
onKeydown:
|
|
1017
|
-
onCompositionstart: n[5] || (n[5] = (...e) =>
|
|
1018
|
-
onCompositionupdate: n[6] || (n[6] = (...e) =>
|
|
1019
|
-
onCompositionend: n[7] || (n[7] = (...e) =>
|
|
1020
|
-
}, null, 42, wt)), [[
|
|
1017
|
+
onClick: n[4] || (n[4] = qe((e) => $(!0), ["stop"])),
|
|
1018
|
+
onKeydown: Ke(St, ["delete"]),
|
|
1019
|
+
onCompositionstart: n[5] || (n[5] = (...e) => Y(E) && Y(E)(...e)),
|
|
1020
|
+
onCompositionupdate: n[6] || (n[6] = (...e) => Y(E) && Y(E)(...e)),
|
|
1021
|
+
onCompositionend: n[7] || (n[7] = (...e) => Y(E) && Y(E)(...e))
|
|
1022
|
+
}, null, 42, wt)), [[Ue, N.value]]) : R("v-if", !0)
|
|
1021
1023
|
], 2)) : R("v-if", !0)], 38)), [[
|
|
1022
|
-
|
|
1024
|
+
Y(be),
|
|
1023
1025
|
it,
|
|
1024
1026
|
rt.value
|
|
1025
1027
|
]])]),
|
|
1026
|
-
content:
|
|
1027
|
-
t.$slots.header ? (
|
|
1028
|
+
content: Z(() => [
|
|
1029
|
+
t.$slots.header ? (G(), z("div", {
|
|
1028
1030
|
key: 0,
|
|
1029
|
-
class:
|
|
1030
|
-
onClick: n[11] || (n[11] =
|
|
1031
|
-
}, [
|
|
1032
|
-
|
|
1031
|
+
class: U(Y(v).e("header")),
|
|
1032
|
+
onClick: n[11] || (n[11] = qe(() => {}, ["stop"]))
|
|
1033
|
+
}, [q(t.$slots, "header")], 2)) : R("v-if", !0),
|
|
1034
|
+
Ge(V(Y(bt), {
|
|
1033
1035
|
ref_key: "cascaderPanelRef",
|
|
1034
1036
|
ref: A,
|
|
1035
|
-
modelValue:
|
|
1036
|
-
"onUpdate:modelValue": n[12] || (n[12] = (e) =>
|
|
1037
|
+
modelValue: et.value,
|
|
1038
|
+
"onUpdate:modelValue": n[12] || (n[12] = (e) => et.value = e),
|
|
1037
1039
|
options: e.options,
|
|
1038
|
-
props:
|
|
1040
|
+
props: d.props,
|
|
1039
1041
|
border: !1,
|
|
1040
1042
|
"render-label": t.$slots.default,
|
|
1041
1043
|
onExpandChange: ht,
|
|
1042
1044
|
onClose: n[13] || (n[13] = (e) => t.$nextTick(() => $(!1)))
|
|
1043
1045
|
}, {
|
|
1044
|
-
empty:
|
|
1046
|
+
empty: Z(() => [q(t.$slots, "empty")]),
|
|
1045
1047
|
_: 3
|
|
1046
1048
|
}, 8, [
|
|
1047
1049
|
"modelValue",
|
|
1048
1050
|
"options",
|
|
1049
1051
|
"props",
|
|
1050
1052
|
"render-label"
|
|
1051
|
-
]), [[
|
|
1052
|
-
e.filterable ?
|
|
1053
|
+
]), [[We, !M.value]]),
|
|
1054
|
+
e.filterable ? Ge((G(), L(Y(ve), {
|
|
1053
1055
|
key: 1,
|
|
1054
1056
|
ref_key: "suggestionPanel",
|
|
1055
1057
|
ref: ye,
|
|
1056
1058
|
tag: "ul",
|
|
1057
|
-
class:
|
|
1058
|
-
"view-class":
|
|
1059
|
+
class: U(Y(v).e("suggestion-panel")),
|
|
1060
|
+
"view-class": Y(v).e("suggestion-list"),
|
|
1059
1061
|
onKeydown: xt
|
|
1060
1062
|
}, {
|
|
1061
|
-
default:
|
|
1063
|
+
default: Z(() => [we.value.length ? (G(!0), z(F, { key: 0 }, Le(we.value, (e) => (G(), z("li", {
|
|
1062
1064
|
key: e.uid,
|
|
1063
|
-
class:
|
|
1065
|
+
class: U([Y(v).e("suggestion-item"), Y(v).is("checked", e.checked)]),
|
|
1064
1066
|
tabindex: -1,
|
|
1065
1067
|
onClick: (t) => yt(e)
|
|
1066
|
-
}, [
|
|
1067
|
-
default:
|
|
1068
|
+
}, [q(t.$slots, "suggestion-item", { item: e }, () => [B("span", null, J(e.text), 1), e.checked ? (G(), L(Y(O), { key: 0 }, {
|
|
1069
|
+
default: Z(() => [V(Y(ge))]),
|
|
1068
1070
|
_: 1
|
|
1069
|
-
})) : R("v-if", !0)])], 10, Tt))), 128)) :
|
|
1071
|
+
})) : R("v-if", !0)])], 10, Tt))), 128)) : q(t.$slots, "empty", { key: 1 }, () => [B("li", { class: U(Y(v).e("empty-text")) }, J(Y(ie)("el.cascader.noMatch")), 3)])]),
|
|
1070
1072
|
_: 3
|
|
1071
|
-
}, 8, ["class", "view-class"])), [[
|
|
1072
|
-
t.$slots.footer ? (
|
|
1073
|
+
}, 8, ["class", "view-class"])), [[We, M.value]]) : R("v-if", !0),
|
|
1074
|
+
t.$slots.footer ? (G(), z("div", {
|
|
1073
1075
|
key: 2,
|
|
1074
|
-
class:
|
|
1075
|
-
onClick: n[14] || (n[14] =
|
|
1076
|
-
}, [
|
|
1076
|
+
class: U(Y(v).e("footer")),
|
|
1077
|
+
onClick: n[14] || (n[14] = qe(() => {}, ["stop"]))
|
|
1078
|
+
}, [q(t.$slots, "footer")], 2)) : R("v-if", !0)
|
|
1077
1079
|
]),
|
|
1078
1080
|
_: 3
|
|
1079
1081
|
}, 8, [
|
|
@@ -1089,7 +1091,7 @@ var ct = /* @__PURE__ */ H({
|
|
|
1089
1091
|
]));
|
|
1090
1092
|
}
|
|
1091
1093
|
}))).filter((e) => ![
|
|
1092
|
-
"
|
|
1094
|
+
"modelValue",
|
|
1093
1095
|
"placeholder",
|
|
1094
1096
|
"disabled",
|
|
1095
1097
|
"options",
|
|
@@ -1104,7 +1106,7 @@ var ct = /* @__PURE__ */ H({
|
|
|
1104
1106
|
Te
|
|
1105
1107
|
],
|
|
1106
1108
|
props: {
|
|
1107
|
-
|
|
1109
|
+
modelValue: [
|
|
1108
1110
|
String,
|
|
1109
1111
|
Number,
|
|
1110
1112
|
Array
|
|
@@ -1157,24 +1159,24 @@ var ct = /* @__PURE__ */ H({
|
|
|
1157
1159
|
}, Et);
|
|
1158
1160
|
},
|
|
1159
1161
|
inputVal() {
|
|
1160
|
-
if (this.join) return
|
|
1162
|
+
if (this.join) return Ye(this.modelValue) ? this.modelValue : Xe(this.modelValue) ? this.modelValue.split(this.separator) : [];
|
|
1161
1163
|
if (this.last) {
|
|
1162
|
-
let [e] =
|
|
1164
|
+
let [e] = Je(this.innerOptions, (e) => e[this.valueKey] === this.modelValue), t = [];
|
|
1163
1165
|
for (; e;) t.push(e[this.valueKey]), e = e.parent;
|
|
1164
1166
|
return t.reverse();
|
|
1165
1167
|
}
|
|
1166
|
-
return this.
|
|
1168
|
+
return this.modelValue;
|
|
1167
1169
|
},
|
|
1168
1170
|
innerOptions() {
|
|
1169
1171
|
if (this.dictType) return this.dictItems;
|
|
1170
1172
|
if (this.options) {
|
|
1171
|
-
let e =
|
|
1172
|
-
return this.last &&
|
|
1173
|
+
let e = Qe(this.options);
|
|
1174
|
+
return this.last && Ze(e), e;
|
|
1173
1175
|
} else return [];
|
|
1174
1176
|
}
|
|
1175
1177
|
},
|
|
1176
1178
|
methods: { emitInput(e) {
|
|
1177
|
-
if (this.join &&
|
|
1179
|
+
if (this.join && Ye(e)) this.$emit("input", e.join(this.separator));
|
|
1178
1180
|
else {
|
|
1179
1181
|
let t = this.last ? e[e.length - 1] : e;
|
|
1180
1182
|
this.$emit("input", t);
|
|
@@ -1182,16 +1184,16 @@ var ct = /* @__PURE__ */ H({
|
|
|
1182
1184
|
} }
|
|
1183
1185
|
};
|
|
1184
1186
|
function Ot(e, t, n, r, i, a) {
|
|
1185
|
-
let o =
|
|
1186
|
-
return
|
|
1187
|
+
let o = Re("ElCascader"), s = Re("FormItem");
|
|
1188
|
+
return G(), L(s, je(e.formItemProps, {
|
|
1187
1189
|
rules: e.computeRules,
|
|
1188
1190
|
disabled: e.inputDisabled
|
|
1189
1191
|
}), {
|
|
1190
|
-
default:
|
|
1192
|
+
default: Z(() => [q(e.$slots, "default", {}, () => [V(o, je({
|
|
1191
1193
|
clearable: "",
|
|
1192
1194
|
style: { width: "100%" },
|
|
1193
1195
|
class: { "is-readonly": e.readonly },
|
|
1194
|
-
|
|
1196
|
+
modelValue: a.inputVal,
|
|
1195
1197
|
"show-all-levels": n.showAllLevels,
|
|
1196
1198
|
separator: n.separator,
|
|
1197
1199
|
readonly: e.readonly,
|
|
@@ -1205,9 +1207,9 @@ function Ot(e, t, n, r, i, a) {
|
|
|
1205
1207
|
},
|
|
1206
1208
|
disabled: e.inputDisabled,
|
|
1207
1209
|
placeholder: e.computePlaceholder
|
|
1208
|
-
}, a.inputProps,
|
|
1210
|
+
}, a.inputProps, Be(e.listeners), { onInput: a.emitInput }), null, 16, [
|
|
1209
1211
|
"class",
|
|
1210
|
-
"
|
|
1212
|
+
"modelValue",
|
|
1211
1213
|
"show-all-levels",
|
|
1212
1214
|
"separator",
|
|
1213
1215
|
"readonly",
|
|
@@ -1217,11 +1219,11 @@ function Ot(e, t, n, r, i, a) {
|
|
|
1217
1219
|
"placeholder",
|
|
1218
1220
|
"onInput"
|
|
1219
1221
|
])])]),
|
|
1220
|
-
error:
|
|
1221
|
-
label:
|
|
1222
|
+
error: Z(({ error: t }) => [q(e.$slots, "error", { error: t })]),
|
|
1223
|
+
label: Z(() => [q(e.$slots, "label")]),
|
|
1222
1224
|
_: 3
|
|
1223
1225
|
}, 16, ["rules", "disabled"]);
|
|
1224
1226
|
}
|
|
1225
|
-
var kt = /* @__PURE__ */
|
|
1227
|
+
var kt = /* @__PURE__ */ e(Dt, [["render", Ot]]);
|
|
1226
1228
|
//#endregion
|
|
1227
1229
|
export { kt as t };
|