@web-utils/component 2.13.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/address-input/index.mjs +9 -9
- package/address-input/style.css +1 -1
- package/affix/index.mjs +1 -1
- package/affix/style.css +1 -1
- package/aside-menu/index.mjs +20 -20
- package/aside-menu/style.css +1 -1
- package/avatar/index.mjs +1 -1
- package/avatar/style.css +1 -1
- package/awesome-button/index.mjs +1 -1
- package/base.css +1 -1
- package/capsule-tab/index.mjs +10 -10
- package/capsule-tab/style.css +1 -1
- package/card/index.mjs +23 -23
- package/card/style.css +1 -1
- package/carousel/index.mjs +5 -5
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunk-file-uploader/index.mjs +3 -3
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{FormTemp.a70cc55d.mjs → FormTemp.FX8xmbVB.mjs} +4 -4
- package/chunks/{confirmable-mixin.d89088b0.mjs → confirmable-mixin.rTUMhoRH.mjs} +25 -24
- package/chunks/{dataformat.504544b2.mjs → dataformat.X_61lMA7.mjs} +1 -1
- package/chunks/{dic.9277cfae.mjs → dic.6tk91Dmq.mjs} +1 -1
- package/chunks/{event.67cfd4fb.mjs → event.NHA7rYFE.mjs} +3 -3
- package/chunks/{form-input-mixin.4632ad36.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
- package/chunks/{form-item-mixin.ad148e7b.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
- package/chunks/{init.7338d214.mjs → init.Ac4dKUJB.mjs} +3 -3
- package/code-mirror-editor/index.mjs +36 -36
- package/code-mirror-editor/style.css +1 -1
- package/color-picker/index.mjs +1 -1
- package/comment/index.mjs +18 -18
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +2 -2
- package/confirmable/index.mjs +2 -2
- package/context-menu/index.mjs +9 -9
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +6 -6
- package/data-box/index.mjs +8 -8
- package/data-box/style.css +1 -1
- package/data-card/index.mjs +19 -19
- package/data-card/style.css +1 -1
- package/data-cardtext/index.mjs +22 -22
- package/data-cardtext/style.css +1 -1
- package/data-display/index.mjs +24 -24
- package/data-display/style.css +1 -1
- package/data-icons/index.mjs +13 -13
- package/data-icons/style.css +1 -1
- package/data-imgtext/index.mjs +18 -18
- package/data-imgtext/style.css +1 -1
- package/data-operatext/index.mjs +28 -28
- package/data-operatext/style.css +1 -1
- package/data-panel/index.mjs +15 -15
- package/data-panel/style.css +1 -1
- package/data-pay/index.mjs +7 -7
- package/data-pay/style.css +1 -1
- package/data-price/index.mjs +5 -5
- package/data-price/style.css +1 -1
- package/data-progress/index.mjs +16 -16
- package/data-progress/style.css +1 -1
- package/data-rotate/index.mjs +7 -7
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -2
- package/data-tabs/index.mjs +6 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +47 -47
- package/dialog-form/style.css +1 -1
- package/dynamic-table/index.mjs +15 -15
- package/dynamic-table/style.css +1 -1
- package/e-charts/index.mjs +7 -7
- package/e-charts/style.css +1 -1
- package/easy-popup/index.mjs +15 -15
- package/easy-popup/style.css +1 -1
- package/editable-progress/index.mjs +1 -1
- package/editable-progress/style.css +1 -1
- package/editable-tree/index.mjs +5 -5
- package/editable-tree/style.css +1 -1
- package/egd-collapse/index.mjs +1 -1
- package/egd-collapse-item/index.mjs +1 -1
- package/element-dialog/index.mjs +8 -8
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +9 -9
- package/empty-view/style.css +1 -1
- package/error-view/index.mjs +13 -13
- package/error-view/style.css +1 -1
- package/flex-column/index.mjs +2 -2
- package/flex-item/index.mjs +2 -2
- package/flex-row/index.mjs +2 -2
- package/flex-scroller/index.mjs +5 -5
- package/flex-scroller/style.css +1 -1
- package/flow/index.mjs +2 -2
- package/flow/style.css +1 -1
- package/flow-designer/index.mjs +31 -31
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/flow-viewer/index.mjs +4 -4
- package/flow-viewer/style.css +1 -1
- package/form-block/index.mjs +16 -16
- package/form-block/style.css +1 -1
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +4 -4
- package/form-holder/index.mjs +2 -2
- package/form-input/index.mjs +3 -3
- package/form-input-email/index.mjs +3 -3
- package/form-input-id-card/index.mjs +3 -3
- package/form-input-number/index.mjs +8 -8
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +3 -3
- package/form-input-tag/index.mjs +3 -3
- package/form-input-time/index.mjs +3 -3
- package/form-item/index.mjs +18 -18
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-group/index.mjs +4 -4
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +37 -37
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +4 -4
- package/form-switch/index.mjs +3 -3
- package/form-textarea/index.mjs +3 -3
- package/form-view/index.mjs +7 -7
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +9 -9
- package/fy-array/style.css +1 -1
- package/fy-article/index.mjs +7 -7
- package/fy-article/style.css +1 -1
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +6 -6
- package/fy-checkbox/style.css +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +9 -9
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +8 -8
- package/fy-date/style.css +1 -1
- package/fy-draggable/index.mjs +2 -2
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +7 -7
- package/fy-dynamic/style.css +1 -1
- package/fy-empty/index.mjs +10 -10
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +42 -42
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +3 -3
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-icon/index.mjs +5 -5
- package/fy-input-icon/style.css +1 -1
- package/fy-input-map/index.mjs +8 -8
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +2 -2
- package/fy-input-table/style.css +1 -1
- package/fy-input-tree/index.mjs +6 -6
- package/fy-input-tree/style.css +1 -1
- package/fy-progress/index.mjs +1 -1
- package/fy-radio/index.mjs +6 -6
- package/fy-radio/style.css +1 -1
- package/fy-rate/index.mjs +4 -4
- package/fy-rate/style.css +1 -1
- package/fy-select/index.mjs +27 -27
- package/fy-select/style.css +1 -1
- package/fy-slider/index.mjs +3 -3
- package/fy-switch/index.mjs +2 -2
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +2 -2
- package/fy-title/index.mjs +14 -14
- package/fy-title/style.css +1 -1
- package/fy-tree/index.mjs +3 -3
- package/fy-tree/style.css +1 -1
- package/fy-u-editor/index.mjs +14 -14
- package/fy-u-editor/style.css +1 -1
- package/fy-upload/index.mjs +17 -17
- package/fy-upload/style.css +1 -1
- package/guide-steps/index.mjs +12 -12
- package/guide-steps/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/icon-card/index.mjs +9 -9
- package/icon-card/style.css +1 -1
- package/icon-temp/index.mjs +16 -16
- package/icon-temp/style.css +1 -1
- package/iframe-window/index.mjs +5 -5
- package/iframe-window/style.css +1 -1
- package/image-cropper/index.mjs +10 -10
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +7 -7
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +5 -5
- package/image-viewer/style.css +1 -1
- package/input-number/index.mjs +2 -2
- package/input-number/style.css +1 -1
- package/input-number-range/index.mjs +7 -7
- package/input-number-range/style.css +1 -1
- package/keep-view-alive/index.mjs +1 -1
- package/keyboard/index.mjs +12 -12
- package/keyboard/style.css +1 -1
- package/license/index.mjs +2 -2
- package/loading-view/index.mjs +5 -5
- package/loading-view/style.css +1 -1
- package/login/index.mjs +4 -4
- package/login/style.css +1 -1
- package/monaco-editor/index.mjs +2 -2
- package/name-avatar/index.mjs +6 -6
- package/name-avatar/style.css +1 -1
- package/nav-bar/index.mjs +8 -8
- package/nav-bar/style.css +1 -1
- package/not-implement/index.mjs +15 -15
- package/not-implement/style.css +1 -1
- package/notice/index.mjs +1 -1
- package/notice/style.css +1 -1
- package/package.json +5 -2
- package/page/index.mjs +8 -8
- package/page/style.css +1 -1
- package/page-header/index.mjs +6 -6
- package/page-header/style.css +1 -1
- package/page-index/index.mjs +19 -19
- package/page-index/style.css +1 -1
- package/page-index-top/index.mjs +1 -1
- package/page-skeleton/index.mjs +21 -21
- package/page-skeleton/style.css +1 -1
- package/page-skeleton-new/index.mjs +3 -3
- package/page-skeleton-new/style.css +1 -1
- package/pageable-table/index.mjs +12 -12
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +28 -28
- package/pageable-view/style.css +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/present-view/index.mjs +7 -7
- package/present-view/style.css +1 -1
- package/queue/index.mjs +4 -4
- package/queue/style.css +1 -1
- package/record-video/index.mjs +14 -14
- package/record-video/style.css +1 -1
- package/resize-observer/index.mjs +6 -6
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +6 -6
- package/search/style.css +1 -1
- package/search-popover/index.mjs +6 -6
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +31 -31
- package/sign/style.css +1 -1
- package/sign-panel/index.mjs +5 -5
- package/sign-panel/style.css +1 -1
- package/skeleton/index.mjs +10 -10
- package/skeleton/style.css +1 -1
- package/split-pane/index.mjs +18 -18
- package/split-pane/style.css +1 -1
- package/stateful/index.mjs +12 -12
- package/stateful/style.css +1 -1
- package/static-pageable-table/index.mjs +9 -9
- package/static-pageable-table/style.css +1 -1
- package/swiper/index.mjs +7 -7
- package/swiper/style.css +1 -1
- package/tab/index.mjs +2 -2
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +29 -29
- package/tag-render/style.css +1 -1
- package/text-ellipsis/index.mjs +8 -8
- package/text-ellipsis/style.css +1 -1
- package/tinymce-editor/index.mjs +70 -70
- package/tinymce-editor/style.css +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +6 -6
- package/toolbar-button/style.css +1 -1
- package/verify/index.mjs +10 -10
- package/verify/style.css +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-cron/style.css +1 -1
- package/vue-qr-code/index.mjs +1 -1
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-quill-editor/style.css +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tags-input/style.css +1 -1
- package/vue-tree-select/index.mjs +364 -369
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +25 -25
- package/vue-video-player/style.css +1 -1
- package/watermark/index.mjs +11 -11
- package/watermark/style.css +1 -1
- package/web-types.json +27 -3
- package/x-input-tag/index.mjs +13 -13
- package/x-input-tag/style.css +1 -1
- /package/chunks/{form-pick-mixin.61ad06b2.mjs → form-pick-mixin.y-qhZJi6.mjs} +0 -0
- /package/chunks/{index.57f871af.mjs → index.LGsb2aDq.mjs} +0 -0
- /package/chunks/{input-number-mixin.41a066be.mjs → input-number-mixin.GE2zr_3s.mjs} +0 -0
- /package/chunks/{json-beautifier.21cfffea.mjs → json-beautifier.fUZFSW5j.mjs} +0 -0
- /package/chunks/{packages.1fc9ccba.mjs → packages.v6r2Hr7E.mjs} +0 -0
- /package/chunks/{permission.ce5d2121.mjs → permission.E9kZbW48.mjs} +0 -0
- /package/chunks/{slot.4b391395.mjs → slot.j1uMmBnG.mjs} +0 -0
- /package/chunks/{tab-mixin.e2b9c6a4.mjs → tab-mixin.tM9jcRT8.mjs} +0 -0
- /package/chunks/{util.c5724c4a.mjs → util.C2Bhx22L.mjs} +0 -0
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → vueComponentNormalizer.JwmUNtgn.mjs} +0 -0
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Fe = Object.defineProperty, ke = Object.defineProperties;
|
|
2
|
+
var He = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var J = Object.getOwnPropertySymbols;
|
|
4
|
+
var Pe = Object.prototype.hasOwnProperty, We = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Z = (e, t, s) => t in e ? Fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, _ = (e, t) => {
|
|
6
6
|
for (var s in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var s of
|
|
10
|
-
|
|
7
|
+
Pe.call(t, s) && Z(e, s, t[s]);
|
|
8
|
+
if (J)
|
|
9
|
+
for (var s of J(t))
|
|
10
|
+
We.call(t, s) && Z(e, s, t[s]);
|
|
11
11
|
return e;
|
|
12
|
-
}, b = (e, t) =>
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import Ue from "lodash/identity";
|
|
18
|
-
import Z from "lodash/constant";
|
|
19
|
-
import ee from "lodash/last";
|
|
20
|
-
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
21
|
-
import Ye from "vue";
|
|
12
|
+
}, b = (e, t) => ke(e, He(t));
|
|
13
|
+
import w from "lodash-es";
|
|
14
|
+
import { isPromise as Oe } from "@web-utils/core";
|
|
15
|
+
import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
16
|
+
import je from "vue";
|
|
22
17
|
const S = process.env.NODE_ENV === "production" ? (
|
|
23
18
|
/* istanbul ignore next */
|
|
24
|
-
|
|
19
|
+
w
|
|
25
20
|
) : function(t, s) {
|
|
26
21
|
if (!t()) {
|
|
27
22
|
const n = ["[Vue-TreeSelect Warning]"].concat(s());
|
|
@@ -33,43 +28,43 @@ function N(e) {
|
|
|
33
28
|
s.type === "mousedown" && s.button === 0 && e.call(this, s, ...n);
|
|
34
29
|
};
|
|
35
30
|
}
|
|
36
|
-
function
|
|
31
|
+
function Qe(e, t) {
|
|
37
32
|
const s = e.getBoundingClientRect(), n = t.getBoundingClientRect(), i = t.offsetHeight / 3;
|
|
38
33
|
n.bottom + i > s.bottom ? e.scrollTop = Math.min(
|
|
39
34
|
t.offsetTop + t.clientHeight - e.offsetHeight + i,
|
|
40
35
|
e.scrollHeight
|
|
41
36
|
) : n.top - i < s.top && (e.scrollTop = Math.max(t.offsetTop - i, 0));
|
|
42
37
|
}
|
|
43
|
-
function
|
|
38
|
+
function ye(e, t) {
|
|
44
39
|
const s = e.indexOf(t);
|
|
45
40
|
s !== -1 && e.splice(s, 1);
|
|
46
41
|
}
|
|
47
|
-
let
|
|
48
|
-
const
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
42
|
+
let q;
|
|
43
|
+
const D = [], Ke = 100;
|
|
44
|
+
function qe() {
|
|
45
|
+
q = setInterval(() => {
|
|
46
|
+
D.forEach(Ee);
|
|
47
|
+
}, Ke);
|
|
53
48
|
}
|
|
54
|
-
function
|
|
55
|
-
clearInterval(
|
|
49
|
+
function Ue() {
|
|
50
|
+
clearInterval(q), q = null;
|
|
56
51
|
}
|
|
57
|
-
function
|
|
52
|
+
function Ee(e) {
|
|
58
53
|
const { $el: t, listener: s, lastWidth: n, lastHeight: i } = e, o = t.offsetWidth, r = t.offsetHeight;
|
|
59
54
|
(n !== o || i !== r) && (e.lastWidth = o, e.lastHeight = r, s({ width: o, height: r }));
|
|
60
55
|
}
|
|
61
|
-
function
|
|
56
|
+
function Ye(e, t) {
|
|
62
57
|
const s = {
|
|
63
58
|
$el: e,
|
|
64
59
|
listener: t,
|
|
65
60
|
lastWidth: null,
|
|
66
61
|
lastHeight: null
|
|
67
62
|
}, n = () => {
|
|
68
|
-
|
|
63
|
+
ye(D, s), D.length || Ue();
|
|
69
64
|
};
|
|
70
|
-
return
|
|
65
|
+
return D.push(s), Ee(s), qe(), n;
|
|
71
66
|
}
|
|
72
|
-
function
|
|
67
|
+
function Xe(e, t) {
|
|
73
68
|
const s = document.createElement("_"), n = s.appendChild(document.createElement("_")), i = s.appendChild(document.createElement("_")), o = n.appendChild(document.createElement("_"));
|
|
74
69
|
let r, c;
|
|
75
70
|
return n.style.cssText = s.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", o.style.cssText = i.style.cssText = "display:block;height:100%;transition:0s;width:100%", o.style.width = o.style.height = "200%", e.appendChild(s), d(), m;
|
|
@@ -85,25 +80,25 @@ function tt(e, t) {
|
|
|
85
80
|
a(), e.removeChild(s);
|
|
86
81
|
}
|
|
87
82
|
}
|
|
88
|
-
function
|
|
83
|
+
function Ne(e, t) {
|
|
89
84
|
const s = document.documentMode === 9;
|
|
90
85
|
let n = !0;
|
|
91
|
-
const r = (s ?
|
|
86
|
+
const r = (s ? Ye : Xe)(e, (...c) => n || t(...c));
|
|
92
87
|
return n = !1, r;
|
|
93
88
|
}
|
|
94
|
-
function
|
|
89
|
+
function Ge(e) {
|
|
95
90
|
const t = [];
|
|
96
91
|
let s = e.parentNode;
|
|
97
92
|
for (; s && s.nodeName !== "BODY" && s.nodeType === document.ELEMENT_NODE; )
|
|
98
|
-
|
|
93
|
+
Je(s) && t.push(s), s = s.parentNode;
|
|
99
94
|
return t.push(window), t;
|
|
100
95
|
}
|
|
101
|
-
function
|
|
96
|
+
function Je(e) {
|
|
102
97
|
const { overflow: t, overflowX: s, overflowY: n } = getComputedStyle(e);
|
|
103
98
|
return /(auto|scroll|overlay)/.test(t + n + s);
|
|
104
99
|
}
|
|
105
|
-
function
|
|
106
|
-
const s =
|
|
100
|
+
function be(e, t) {
|
|
101
|
+
const s = Ge(e);
|
|
107
102
|
return window.addEventListener("resize", t, { passive: !0 }), s.forEach((n) => {
|
|
108
103
|
n.addEventListener("scroll", t, { passive: !0 });
|
|
109
104
|
}), function() {
|
|
@@ -112,33 +107,33 @@ function $e(e, t) {
|
|
|
112
107
|
});
|
|
113
108
|
};
|
|
114
109
|
}
|
|
115
|
-
function
|
|
110
|
+
function $e(e) {
|
|
116
111
|
return Number.isNaN(e);
|
|
117
112
|
}
|
|
118
113
|
const g = () => /* @__PURE__ */ Object.create(null);
|
|
119
|
-
function
|
|
114
|
+
function we(e) {
|
|
120
115
|
return e == null || typeof e != "object" ? !1 : Object.getPrototypeOf(e) === Object.prototype;
|
|
121
116
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
117
|
+
function Ze(e, t, s) {
|
|
118
|
+
we(s) ? (e[t] || (e[t] = {}), U(e[t], s)) : e[t] = s;
|
|
124
119
|
}
|
|
125
|
-
function
|
|
126
|
-
if (
|
|
120
|
+
function U(e, t) {
|
|
121
|
+
if (we(t)) {
|
|
127
122
|
const s = Object.keys(t);
|
|
128
123
|
for (let n = 0, i = s.length; n < i; n++)
|
|
129
|
-
|
|
124
|
+
Ze(e, s[n], t[s[n]]);
|
|
130
125
|
}
|
|
131
126
|
return e;
|
|
132
127
|
}
|
|
133
128
|
function O(e, t) {
|
|
134
129
|
return e.indexOf(t) !== -1;
|
|
135
130
|
}
|
|
136
|
-
function
|
|
131
|
+
function Ce(e, t, s) {
|
|
137
132
|
for (let n = 0, i = e.length; n < i; n++)
|
|
138
133
|
if (t.call(s, e[n], n, e))
|
|
139
134
|
return e[n];
|
|
140
135
|
}
|
|
141
|
-
function
|
|
136
|
+
function B(e, t) {
|
|
142
137
|
if (e.length !== t.length)
|
|
143
138
|
return !0;
|
|
144
139
|
for (let s = 0; s < e.length; s++)
|
|
@@ -146,7 +141,7 @@ function V(e, t) {
|
|
|
146
141
|
return !0;
|
|
147
142
|
return !1;
|
|
148
143
|
}
|
|
149
|
-
function
|
|
144
|
+
function et(e, t) {
|
|
150
145
|
const s = t.length, n = e.length;
|
|
151
146
|
if (n > s)
|
|
152
147
|
return !1;
|
|
@@ -162,7 +157,7 @@ function rt(e, t) {
|
|
|
162
157
|
}
|
|
163
158
|
return !0;
|
|
164
159
|
}
|
|
165
|
-
const E = null,
|
|
160
|
+
const E = null, Y = 0, Le = 1, Me = 2, $ = "ALL_CHILDREN", C = "ALL_DESCENDANTS", L = "LEAF_CHILDREN", M = "LEAF_DESCENDANTS", tt = "LOAD_ROOT_OPTIONS", st = "LOAD_CHILDREN_OPTIONS", nt = "ASYNC_SEARCH", z = "ALL", T = "BRANCH_PRIORITY", F = "LEAF_PRIORITY", k = "ALL_WITH_INDETERMINATE", ee = "ORDER_SELECTED", te = "LEVEL", se = "INDEX", h = {
|
|
166
161
|
BACKSPACE: 8,
|
|
167
162
|
ENTER: 13,
|
|
168
163
|
ESCAPE: 27,
|
|
@@ -173,14 +168,14 @@ const E = null, U = 0, Me = 1, xe = 2, $ = "ALL_CHILDREN", w = "ALL_DESCENDANTS"
|
|
|
173
168
|
ARROW_RIGHT: 39,
|
|
174
169
|
ARROW_DOWN: 40,
|
|
175
170
|
DELETE: 46
|
|
176
|
-
},
|
|
171
|
+
}, it = process.env.NODE_ENV === "testing" ? (
|
|
177
172
|
/* to speed up unit testing */
|
|
178
173
|
10
|
|
179
174
|
) : (
|
|
180
175
|
/* istanbul ignore next */
|
|
181
176
|
200
|
|
182
|
-
),
|
|
183
|
-
function
|
|
177
|
+
), ne = 5, ie = 40;
|
|
178
|
+
function xe(e, t) {
|
|
184
179
|
let s = 0;
|
|
185
180
|
do {
|
|
186
181
|
if (e.level < s)
|
|
@@ -192,28 +187,28 @@ function Te(e, t) {
|
|
|
192
187
|
s++;
|
|
193
188
|
} while (!0);
|
|
194
189
|
}
|
|
195
|
-
function
|
|
196
|
-
return e.level === t.level ?
|
|
190
|
+
function rt(e, t) {
|
|
191
|
+
return e.level === t.level ? xe(e, t) : e.level - t.level;
|
|
197
192
|
}
|
|
198
|
-
function
|
|
193
|
+
function H() {
|
|
199
194
|
return {
|
|
200
195
|
isLoaded: !1,
|
|
201
196
|
isLoading: !1,
|
|
202
197
|
loadingError: ""
|
|
203
198
|
};
|
|
204
199
|
}
|
|
205
|
-
function
|
|
206
|
-
return typeof e == "string" ? e : typeof e == "number" &&
|
|
200
|
+
function ot(e) {
|
|
201
|
+
return typeof e == "string" ? e : typeof e == "number" && !$e(e) ? `${e}` : "";
|
|
207
202
|
}
|
|
208
|
-
function
|
|
209
|
-
return e ?
|
|
203
|
+
function re(e, t, s) {
|
|
204
|
+
return e ? et(t, s) : O(s, t);
|
|
210
205
|
}
|
|
211
|
-
function
|
|
206
|
+
function P(e) {
|
|
212
207
|
return e.message || /* istanbul ignore next */
|
|
213
208
|
String(e);
|
|
214
209
|
}
|
|
215
|
-
let
|
|
216
|
-
const
|
|
210
|
+
let lt = 0;
|
|
211
|
+
const at = {
|
|
217
212
|
provide() {
|
|
218
213
|
return {
|
|
219
214
|
// Enable access to the instance of root component of vue-treeselect
|
|
@@ -314,7 +309,7 @@ const pt = {
|
|
|
314
309
|
*/
|
|
315
310
|
beforeClearAll: {
|
|
316
311
|
type: Function,
|
|
317
|
-
default:
|
|
312
|
+
default: () => !0
|
|
318
313
|
},
|
|
319
314
|
/**
|
|
320
315
|
* Show branch nodes before leaf nodes?
|
|
@@ -444,7 +439,7 @@ const pt = {
|
|
|
444
439
|
*/
|
|
445
440
|
instanceId: {
|
|
446
441
|
// Add two trailing "$" to distinguish from explictly specified ids.
|
|
447
|
-
default: () => `${
|
|
442
|
+
default: () => `${lt++}$$`,
|
|
448
443
|
type: [String, Number]
|
|
449
444
|
},
|
|
450
445
|
/**
|
|
@@ -491,7 +486,7 @@ const pt = {
|
|
|
491
486
|
*/
|
|
492
487
|
matchKeys: {
|
|
493
488
|
type: Array,
|
|
494
|
-
default:
|
|
489
|
+
default: () => ["label"]
|
|
495
490
|
},
|
|
496
491
|
/**
|
|
497
492
|
* Sets `maxHeight` style value of the menu.
|
|
@@ -540,7 +535,7 @@ const pt = {
|
|
|
540
535
|
*/
|
|
541
536
|
normalizer: {
|
|
542
537
|
type: Function,
|
|
543
|
-
default:
|
|
538
|
+
default: w
|
|
544
539
|
},
|
|
545
540
|
/**
|
|
546
541
|
* By default (`auto`), the menu will open below the control. If there is not
|
|
@@ -650,7 +645,7 @@ const pt = {
|
|
|
650
645
|
type: String,
|
|
651
646
|
default: $,
|
|
652
647
|
validator(e) {
|
|
653
|
-
return O([$,
|
|
648
|
+
return O([$, C, L, M], e);
|
|
654
649
|
}
|
|
655
650
|
},
|
|
656
651
|
/**
|
|
@@ -669,9 +664,9 @@ const pt = {
|
|
|
669
664
|
*/
|
|
670
665
|
sortValueBy: {
|
|
671
666
|
type: String,
|
|
672
|
-
default:
|
|
667
|
+
default: ee,
|
|
673
668
|
validator(e) {
|
|
674
|
-
return O([te, se
|
|
669
|
+
return O([ee, te, se], e);
|
|
675
670
|
}
|
|
676
671
|
},
|
|
677
672
|
/**
|
|
@@ -699,9 +694,9 @@ const pt = {
|
|
|
699
694
|
*/
|
|
700
695
|
valueConsistsOf: {
|
|
701
696
|
type: String,
|
|
702
|
-
default:
|
|
697
|
+
default: T,
|
|
703
698
|
validator(e) {
|
|
704
|
-
return O([
|
|
699
|
+
return O([z, T, F, k], e);
|
|
705
700
|
}
|
|
706
701
|
},
|
|
707
702
|
/**
|
|
@@ -755,7 +750,7 @@ const pt = {
|
|
|
755
750
|
selectedNodeMap: g()
|
|
756
751
|
},
|
|
757
752
|
// States of root options.
|
|
758
|
-
rootOptionsStates:
|
|
753
|
+
rootOptionsStates: H(),
|
|
759
754
|
localSearch: {
|
|
760
755
|
// Has user entered any query to search local options?
|
|
761
756
|
active: !1,
|
|
@@ -783,19 +778,19 @@ const pt = {
|
|
|
783
778
|
*/
|
|
784
779
|
internalValue() {
|
|
785
780
|
let e;
|
|
786
|
-
if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf ===
|
|
781
|
+
if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === z)
|
|
787
782
|
e = this.forest.selectedNodeIds.slice();
|
|
788
|
-
else if (this.valueConsistsOf ===
|
|
783
|
+
else if (this.valueConsistsOf === T)
|
|
789
784
|
e = this.forest.selectedNodeIds.filter((t) => {
|
|
790
785
|
const s = this.getNode(t);
|
|
791
786
|
return s.isRootNode ? !0 : !this.isSelected(s.parentNode);
|
|
792
787
|
});
|
|
793
|
-
else if (this.valueConsistsOf ===
|
|
788
|
+
else if (this.valueConsistsOf === F)
|
|
794
789
|
e = this.forest.selectedNodeIds.filter((t) => {
|
|
795
790
|
const s = this.getNode(t);
|
|
796
791
|
return s.isLeaf ? !0 : s.children.length === 0;
|
|
797
792
|
});
|
|
798
|
-
else if (this.valueConsistsOf ===
|
|
793
|
+
else if (this.valueConsistsOf === k) {
|
|
799
794
|
const t = [];
|
|
800
795
|
e = this.forest.selectedNodeIds.slice(), this.selectedNodes.forEach((s) => {
|
|
801
796
|
s.ancestors.forEach((n) => {
|
|
@@ -803,7 +798,7 @@ const pt = {
|
|
|
803
798
|
});
|
|
804
799
|
}), e.push(...t);
|
|
805
800
|
}
|
|
806
|
-
return this.sortValueBy ===
|
|
801
|
+
return this.sortValueBy === te ? e.sort((t, s) => rt(this.getNode(t), this.getNode(s))) : this.sortValueBy === se && e.sort((t, s) => xe(this.getNode(t), this.getNode(s))), e;
|
|
807
802
|
},
|
|
808
803
|
/**
|
|
809
804
|
* Has any option been selected?
|
|
@@ -874,7 +869,7 @@ const pt = {
|
|
|
874
869
|
this.initialize();
|
|
875
870
|
},
|
|
876
871
|
internalValue(e, t) {
|
|
877
|
-
|
|
872
|
+
B(e, t) && this.$emit("input", this.getValue(), this.getInstanceId());
|
|
878
873
|
},
|
|
879
874
|
matchKeys() {
|
|
880
875
|
this.initialize();
|
|
@@ -894,7 +889,7 @@ const pt = {
|
|
|
894
889
|
},
|
|
895
890
|
value() {
|
|
896
891
|
const e = this.extractCheckedNodeIdsFromValue();
|
|
897
|
-
|
|
892
|
+
B(e, this.internalValue) && this.fixSelectedNodeIds(e);
|
|
898
893
|
}
|
|
899
894
|
},
|
|
900
895
|
methods: {
|
|
@@ -972,16 +967,16 @@ const pt = {
|
|
|
972
967
|
if (this.valueFormat === "id")
|
|
973
968
|
return t;
|
|
974
969
|
const s = this.multiple ? Array.isArray(this.value) ? this.value : [] : this.value ? [this.value] : [];
|
|
975
|
-
return
|
|
970
|
+
return Ce(
|
|
976
971
|
s,
|
|
977
972
|
(i) => i && this.enhancedNormalizer(i).id === e
|
|
978
973
|
) || t;
|
|
979
974
|
},
|
|
980
975
|
fixSelectedNodeIds(e) {
|
|
981
976
|
let t = [];
|
|
982
|
-
if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf ===
|
|
977
|
+
if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === z)
|
|
983
978
|
t = e;
|
|
984
|
-
else if (this.valueConsistsOf ===
|
|
979
|
+
else if (this.valueConsistsOf === T)
|
|
985
980
|
e.forEach((n) => {
|
|
986
981
|
t.push(n);
|
|
987
982
|
const i = this.getNode(n);
|
|
@@ -989,13 +984,13 @@ const pt = {
|
|
|
989
984
|
t.push(o.id);
|
|
990
985
|
});
|
|
991
986
|
});
|
|
992
|
-
else if (this.valueConsistsOf ===
|
|
987
|
+
else if (this.valueConsistsOf === F) {
|
|
993
988
|
const n = g(), i = e.slice();
|
|
994
989
|
for (; i.length; ) {
|
|
995
990
|
const o = i.shift(), r = this.getNode(o);
|
|
996
991
|
t.push(o), !r.isRootNode && (r.parentNode.id in n || (n[r.parentNode.id] = r.parentNode.children.length), --n[r.parentNode.id] === 0 && i.push(r.parentNode.id));
|
|
997
992
|
}
|
|
998
|
-
} else if (this.valueConsistsOf ===
|
|
993
|
+
} else if (this.valueConsistsOf === k) {
|
|
999
994
|
const n = g(), i = e.filter((o) => {
|
|
1000
995
|
const r = this.getNode(o);
|
|
1001
996
|
return r.isLeaf || r.children.length === 0;
|
|
@@ -1005,7 +1000,7 @@ const pt = {
|
|
|
1005
1000
|
t.push(o), !r.isRootNode && (r.parentNode.id in n || (n[r.parentNode.id] = r.parentNode.children.length), --n[r.parentNode.id] === 0 && i.push(r.parentNode.id));
|
|
1006
1001
|
}
|
|
1007
1002
|
}
|
|
1008
|
-
|
|
1003
|
+
B(this.forest.selectedNodeIds, t) && (this.forest.selectedNodeIds = t), this.buildForestState();
|
|
1009
1004
|
},
|
|
1010
1005
|
keepDataOfSelectedNodes(e) {
|
|
1011
1006
|
this.forest.selectedNodeIds.forEach((t) => {
|
|
@@ -1077,18 +1072,18 @@ const pt = {
|
|
|
1077
1072
|
this.localSearch.active = !0, this.localSearch.noResults = !0, this.traverseAllNodesDFS((i) => {
|
|
1078
1073
|
i.isBranch && (i.isExpandedOnSearch = !1, i.showAllChildrenOnSearch = !1, i.isMatched = !1, i.hasMatchedDescendants = !1, this.$set(this.localSearch.countMap, i.id, {
|
|
1079
1074
|
[$]: 0,
|
|
1080
|
-
[w]: 0,
|
|
1081
1075
|
[C]: 0,
|
|
1082
|
-
[L]: 0
|
|
1076
|
+
[L]: 0,
|
|
1077
|
+
[M]: 0
|
|
1083
1078
|
}));
|
|
1084
1079
|
});
|
|
1085
1080
|
const s = e.trim().toLocaleLowerCase(), n = s.replace(/\s+/g, " ").split(" ");
|
|
1086
1081
|
this.traverseAllNodesDFS((i) => {
|
|
1087
1082
|
this.searchNested && n.length > 1 ? i.isMatched = n.every(
|
|
1088
|
-
(o) =>
|
|
1083
|
+
(o) => re(!1, o, i.nestedSearchLabel)
|
|
1089
1084
|
) : i.isMatched = this.matchKeys.some(
|
|
1090
|
-
(o) =>
|
|
1091
|
-
), i.isMatched && (this.localSearch.noResults = !1, i.ancestors.forEach((o) => this.localSearch.countMap[o.id][
|
|
1085
|
+
(o) => re(!this.disableFuzzyMatching, s, i.lowerCased[o])
|
|
1086
|
+
), i.isMatched && (this.localSearch.noResults = !1, i.ancestors.forEach((o) => this.localSearch.countMap[o.id][C]++), i.isLeaf && i.ancestors.forEach((o) => this.localSearch.countMap[o.id][M]++), i.parentNode !== E && (this.localSearch.countMap[i.parentNode.id][$] += 1, i.isLeaf && (this.localSearch.countMap[i.parentNode.id][L] += 1))), (i.isMatched || i.isBranch && i.isExpandedOnSearch) && i.parentNode !== E && (i.parentNode.isExpandedOnSearch = !0, i.parentNode.hasMatchedDescendants = !0);
|
|
1092
1087
|
}), t();
|
|
1093
1088
|
},
|
|
1094
1089
|
handleRemoteSearch() {
|
|
@@ -1098,7 +1093,7 @@ const pt = {
|
|
|
1098
1093
|
if ((e === "" || this.cacheOptions) && t.isLoaded)
|
|
1099
1094
|
return s();
|
|
1100
1095
|
this.callLoadOptionsProp({
|
|
1101
|
-
action:
|
|
1096
|
+
action: nt,
|
|
1102
1097
|
args: { searchQuery: e },
|
|
1103
1098
|
isPending() {
|
|
1104
1099
|
return t.isLoading;
|
|
@@ -1110,7 +1105,7 @@ const pt = {
|
|
|
1110
1105
|
t.isLoaded = !0, t.options = n, this.trigger.searchQuery === e && s();
|
|
1111
1106
|
},
|
|
1112
1107
|
fail: (n) => {
|
|
1113
|
-
t.loadingError =
|
|
1108
|
+
t.loadingError = P(n);
|
|
1114
1109
|
},
|
|
1115
1110
|
end: () => {
|
|
1116
1111
|
t.isLoading = !1;
|
|
@@ -1118,7 +1113,7 @@ const pt = {
|
|
|
1118
1113
|
});
|
|
1119
1114
|
},
|
|
1120
1115
|
getRemoteSearchEntry() {
|
|
1121
|
-
const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || b(_({},
|
|
1116
|
+
const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || b(_({}, H()), {
|
|
1122
1117
|
options: []
|
|
1123
1118
|
});
|
|
1124
1119
|
if (this.$watch(
|
|
@@ -1156,7 +1151,7 @@ const pt = {
|
|
|
1156
1151
|
if (s != null && s in this.forest.nodeMap && (this.forest.nodeMap[s].isHighlighted = !1), this.menu.current = e.id, e.isHighlighted = !0, this.menu.isOpen && t) {
|
|
1157
1152
|
const n = () => {
|
|
1158
1153
|
const i = this.getMenu(), o = i.querySelector(`.vue-treeselect__option[data-id="${e.id}"]`);
|
|
1159
|
-
o &&
|
|
1154
|
+
o && Qe(i, o);
|
|
1160
1155
|
};
|
|
1161
1156
|
this.getMenu() ? n() : this.$nextTick(n);
|
|
1162
1157
|
}
|
|
@@ -1190,7 +1185,7 @@ const pt = {
|
|
|
1190
1185
|
highlightLastOption() {
|
|
1191
1186
|
if (!this.hasVisibleOptions)
|
|
1192
1187
|
return;
|
|
1193
|
-
const e =
|
|
1188
|
+
const e = w(this.visibleOptionIds);
|
|
1194
1189
|
this.setCurrentHighlightedOption(this.getNode(e));
|
|
1195
1190
|
},
|
|
1196
1191
|
resetSearchQuery() {
|
|
@@ -1216,10 +1211,10 @@ const pt = {
|
|
|
1216
1211
|
}), this.forest.selectedNodeMap = e;
|
|
1217
1212
|
const t = g();
|
|
1218
1213
|
this.multiple && (this.traverseAllNodesByIndex((s) => {
|
|
1219
|
-
t[s.id] =
|
|
1214
|
+
t[s.id] = Y;
|
|
1220
1215
|
}), this.selectedNodes.forEach((s) => {
|
|
1221
|
-
t[s.id] =
|
|
1222
|
-
this.isSelected(n) || (t[n.id] =
|
|
1216
|
+
t[s.id] = Me, !this.flat && !this.disableBranchNodes && s.ancestors.forEach((n) => {
|
|
1217
|
+
this.isSelected(n) || (t[n.id] = Le);
|
|
1223
1218
|
});
|
|
1224
1219
|
})), this.forest.checkedStateMap = t;
|
|
1225
1220
|
},
|
|
@@ -1229,26 +1224,26 @@ const pt = {
|
|
|
1229
1224
|
normalize(e, t, s) {
|
|
1230
1225
|
let n = t.map((i) => [this.enhancedNormalizer(i), i]).map(([i, o], r) => {
|
|
1231
1226
|
this.checkDuplication(i), this.verifyNodeShape(i);
|
|
1232
|
-
const { id: c, label: d, children: a, isDefaultExpanded: m } = i, p = e === E, y = p ? 0 : e.level + 1,
|
|
1233
|
-
[
|
|
1234
|
-
}), {}),
|
|
1235
|
-
if (this.$set(l, "id", c), this.$set(l, "label", d), this.$set(l, "level", y), this.$set(l, "ancestors", p ? [] : [e].concat(e.ancestors)), this.$set(l, "index", (p ? [] : e.index).concat(r)), this.$set(l, "parentNode", e), this.$set(l, "lowerCased",
|
|
1227
|
+
const { id: c, label: d, children: a, isDefaultExpanded: m } = i, p = e === E, y = p ? 0 : e.level + 1, I = Array.isArray(a) || a === null, A = !I, G = !!i.isDisabled || !this.flat && !p && e.isDisabled, Be = !!i.isNew, V = this.matchKeys.reduce((u, x) => b(_({}, u), {
|
|
1228
|
+
[x]: ot(i[x]).toLocaleLowerCase()
|
|
1229
|
+
}), {}), ze = p ? V.label : `${e.nestedSearchLabel} ${V.label}`, l = this.$set(this.forest.nodeMap, c, g());
|
|
1230
|
+
if (this.$set(l, "id", c), this.$set(l, "label", d), this.$set(l, "level", y), this.$set(l, "ancestors", p ? [] : [e].concat(e.ancestors)), this.$set(l, "index", (p ? [] : e.index).concat(r)), this.$set(l, "parentNode", e), this.$set(l, "lowerCased", V), this.$set(l, "nestedSearchLabel", ze), this.$set(l, "isDisabled", G), this.$set(l, "isNew", Be), this.$set(l, "isMatched", !1), this.$set(l, "isHighlighted", !1), this.$set(l, "isBranch", I), this.$set(l, "isLeaf", A), this.$set(l, "isRootNode", p), this.$set(l, "raw", o), I) {
|
|
1236
1231
|
const u = Array.isArray(a);
|
|
1237
|
-
this.$set(l, "childrenStates", b(_({},
|
|
1232
|
+
this.$set(l, "childrenStates", b(_({}, H()), {
|
|
1238
1233
|
isLoaded: u
|
|
1239
1234
|
})), this.$set(l, "isExpanded", typeof m == "boolean" ? m : y < this.defaultExpandLevel), this.$set(l, "hasMatchedDescendants", !1), this.$set(l, "hasDisabledDescendants", !1), this.$set(l, "isExpandedOnSearch", !1), this.$set(l, "showAllChildrenOnSearch", !1), this.$set(l, "count", {
|
|
1240
1235
|
[$]: 0,
|
|
1241
|
-
[w]: 0,
|
|
1242
1236
|
[C]: 0,
|
|
1243
|
-
[L]: 0
|
|
1244
|
-
|
|
1245
|
-
|
|
1237
|
+
[L]: 0,
|
|
1238
|
+
[M]: 0
|
|
1239
|
+
}), this.$set(l, "children", u ? this.normalize(l, a, s) : []), m === !0 && l.ancestors.forEach((x) => {
|
|
1240
|
+
x.isExpanded = !0;
|
|
1246
1241
|
}), !u && typeof this.loadOptions != "function" ? S(
|
|
1247
1242
|
() => !1,
|
|
1248
1243
|
() => 'Unloaded branch node detected. "loadOptions" prop is required to load its children.'
|
|
1249
1244
|
) : !u && l.isExpanded && this.loadChildrenOptions(l);
|
|
1250
1245
|
}
|
|
1251
|
-
if (l.ancestors.forEach((u) => u.count[
|
|
1246
|
+
if (l.ancestors.forEach((u) => u.count[C]++), A && l.ancestors.forEach((u) => u.count[M]++), p || (e.count[$] += 1, A && (e.count[L] += 1), G && (e.hasDisabledDescendants = !0)), s && s[c]) {
|
|
1252
1247
|
const u = s[c];
|
|
1253
1248
|
l.isMatched = u.isMatched, l.showAllChildrenOnSearch = u.showAllChildrenOnSearch, l.isHighlighted = u.isHighlighted, u.isBranch && l.isBranch && (l.isExpanded = u.isExpanded, l.isExpandedOnSearch = u.isExpandedOnSearch, u.childrenStates.isLoaded && !l.childrenStates.isLoaded ? l.isExpanded = !1 : l.childrenStates = _({}, u.childrenStates));
|
|
1254
1249
|
}
|
|
@@ -1262,7 +1257,7 @@ const pt = {
|
|
|
1262
1257
|
},
|
|
1263
1258
|
loadRootOptions() {
|
|
1264
1259
|
this.callLoadOptionsProp({
|
|
1265
|
-
action:
|
|
1260
|
+
action: tt,
|
|
1266
1261
|
isPending: () => this.rootOptionsStates.isLoading,
|
|
1267
1262
|
start: () => {
|
|
1268
1263
|
this.rootOptionsStates.isLoading = !0, this.rootOptionsStates.loadingError = "";
|
|
@@ -1273,7 +1268,7 @@ const pt = {
|
|
|
1273
1268
|
});
|
|
1274
1269
|
},
|
|
1275
1270
|
fail: (e) => {
|
|
1276
|
-
this.rootOptionsStates.loadingError =
|
|
1271
|
+
this.rootOptionsStates.loadingError = P(e);
|
|
1277
1272
|
},
|
|
1278
1273
|
end: () => {
|
|
1279
1274
|
this.rootOptionsStates.isLoading = !1;
|
|
@@ -1283,7 +1278,7 @@ const pt = {
|
|
|
1283
1278
|
loadChildrenOptions(e) {
|
|
1284
1279
|
const { id: t, raw: s } = e;
|
|
1285
1280
|
this.callLoadOptionsProp({
|
|
1286
|
-
action:
|
|
1281
|
+
action: st,
|
|
1287
1282
|
args: {
|
|
1288
1283
|
// We always pass the raw node instead of the normalized node to any
|
|
1289
1284
|
// callback provided by the user of this component.
|
|
@@ -1299,7 +1294,7 @@ const pt = {
|
|
|
1299
1294
|
this.getNode(t).childrenStates.isLoaded = !0;
|
|
1300
1295
|
},
|
|
1301
1296
|
fail: (n) => {
|
|
1302
|
-
this.getNode(t).childrenStates.loadingError =
|
|
1297
|
+
this.getNode(t).childrenStates.loadingError = P(n);
|
|
1303
1298
|
},
|
|
1304
1299
|
end: () => {
|
|
1305
1300
|
this.getNode(t).childrenStates.isLoading = !1;
|
|
@@ -1310,7 +1305,7 @@ const pt = {
|
|
|
1310
1305
|
if (!this.loadOptions || s())
|
|
1311
1306
|
return;
|
|
1312
1307
|
n();
|
|
1313
|
-
const c =
|
|
1308
|
+
const c = w((a, m) => {
|
|
1314
1309
|
a ? o(a) : i(m), r();
|
|
1315
1310
|
}), d = this.loadOptions(b(_({
|
|
1316
1311
|
id: this.getInstanceId(),
|
|
@@ -1319,7 +1314,7 @@ const pt = {
|
|
|
1319
1314
|
}, t), {
|
|
1320
1315
|
callback: c
|
|
1321
1316
|
}));
|
|
1322
|
-
|
|
1317
|
+
Oe(d) && d.then(() => {
|
|
1323
1318
|
c();
|
|
1324
1319
|
}, (a) => {
|
|
1325
1320
|
c(a);
|
|
@@ -1343,7 +1338,7 @@ const pt = {
|
|
|
1343
1338
|
if (this.disabled || e.isDisabled)
|
|
1344
1339
|
return;
|
|
1345
1340
|
this.single && this.clear();
|
|
1346
|
-
const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] ===
|
|
1341
|
+
const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === Y : !this.isSelected(e);
|
|
1347
1342
|
t ? this._selectNode(e) : this._deselectNode(e), this.buildForestState(), t ? this.$emit("select", e.raw, this.getInstanceId()) : this.$emit("deselect", e.raw, this.getInstanceId()), this.localSearch.active && t && (this.single || this.clearOnSelect) && this.resetSearchQuery(), this.single && this.closeOnSelect && (this.closeMenu(), this.searchable && (this._blurOnSelect = !0));
|
|
1348
1343
|
},
|
|
1349
1344
|
clear() {
|
|
@@ -1402,14 +1397,14 @@ const pt = {
|
|
|
1402
1397
|
this.forest.selectedNodeIds.push(e.id), this.forest.selectedNodeMap[e.id] = !0;
|
|
1403
1398
|
},
|
|
1404
1399
|
removeValue(e) {
|
|
1405
|
-
|
|
1400
|
+
ye(this.forest.selectedNodeIds, e.id), delete this.forest.selectedNodeMap[e.id];
|
|
1406
1401
|
},
|
|
1407
1402
|
removeLastValue() {
|
|
1408
1403
|
if (!this.hasValue)
|
|
1409
1404
|
return;
|
|
1410
1405
|
if (this.single)
|
|
1411
1406
|
return this.clear();
|
|
1412
|
-
const e =
|
|
1407
|
+
const e = w(this.internalValue), t = this.getNode(e);
|
|
1413
1408
|
this.select(t);
|
|
1414
1409
|
},
|
|
1415
1410
|
saveMenuScrollPosition() {
|
|
@@ -1431,10 +1426,10 @@ const pt = {
|
|
|
1431
1426
|
this.toggleClickOutsideEvent(!1);
|
|
1432
1427
|
}
|
|
1433
1428
|
};
|
|
1434
|
-
function
|
|
1435
|
-
return typeof e == "string" ? e : e != null &&
|
|
1429
|
+
function ct(e) {
|
|
1430
|
+
return typeof e == "string" ? e : e != null && !$e(e) ? JSON.stringify(e) : "";
|
|
1436
1431
|
}
|
|
1437
|
-
const
|
|
1432
|
+
const ut = {
|
|
1438
1433
|
name: "VueTreeSelectHiddenFields",
|
|
1439
1434
|
functional: !0,
|
|
1440
1435
|
inject: ["instance"],
|
|
@@ -1444,7 +1439,7 @@ const mt = {
|
|
|
1444
1439
|
} = t.injections;
|
|
1445
1440
|
if (!n.name || n.disabled || !n.hasValue)
|
|
1446
1441
|
return null;
|
|
1447
|
-
let i = n.internalValue.map(
|
|
1442
|
+
let i = n.internalValue.map(ct);
|
|
1448
1443
|
return n.multiple && n.joinValues && (i = [i.join(n.delimiter)]), i.map((o, r) => s("input", {
|
|
1449
1444
|
attrs: {
|
|
1450
1445
|
type: "hidden",
|
|
@@ -1457,47 +1452,47 @@ const mt = {
|
|
|
1457
1452
|
}));
|
|
1458
1453
|
}
|
|
1459
1454
|
};
|
|
1460
|
-
let
|
|
1461
|
-
const
|
|
1462
|
-
var
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1455
|
+
let ht, dt;
|
|
1456
|
+
const oe = {};
|
|
1457
|
+
var pt = /* @__PURE__ */ f(
|
|
1458
|
+
ut,
|
|
1459
|
+
ht,
|
|
1460
|
+
dt,
|
|
1466
1461
|
!1,
|
|
1467
|
-
|
|
1462
|
+
ft,
|
|
1468
1463
|
null,
|
|
1469
1464
|
null,
|
|
1470
1465
|
null
|
|
1471
1466
|
);
|
|
1472
|
-
function
|
|
1473
|
-
for (let t in
|
|
1474
|
-
this[t] =
|
|
1467
|
+
function ft(e) {
|
|
1468
|
+
for (let t in oe)
|
|
1469
|
+
this[t] = oe[t];
|
|
1475
1470
|
}
|
|
1476
|
-
const
|
|
1477
|
-
return
|
|
1471
|
+
const mt = /* @__PURE__ */ function() {
|
|
1472
|
+
return pt.exports;
|
|
1478
1473
|
}();
|
|
1479
|
-
function
|
|
1474
|
+
function gt(e) {
|
|
1480
1475
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1481
1476
|
}
|
|
1482
|
-
function
|
|
1483
|
-
return
|
|
1477
|
+
function X() {
|
|
1478
|
+
return X = Object.assign ? Object.assign.bind() : function(e) {
|
|
1484
1479
|
for (var t, s = 1; s < arguments.length; s++)
|
|
1485
1480
|
for (var n in t = arguments[s], t)
|
|
1486
1481
|
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
1487
1482
|
return e;
|
|
1488
|
-
},
|
|
1483
|
+
}, X.apply(this, arguments);
|
|
1489
1484
|
}
|
|
1490
|
-
var
|
|
1485
|
+
var _t = ["attrs", "props", "domProps"], vt = ["class", "style", "directives"], St = ["on", "nativeOn"], Ot = function(e) {
|
|
1491
1486
|
return e.reduce(function(t, s) {
|
|
1492
1487
|
for (var n in s)
|
|
1493
1488
|
if (!t[n])
|
|
1494
1489
|
t[n] = s[n];
|
|
1495
|
-
else if (
|
|
1496
|
-
t[n] =
|
|
1497
|
-
else if (
|
|
1490
|
+
else if (_t.indexOf(n) !== -1)
|
|
1491
|
+
t[n] = X({}, t[n], s[n]);
|
|
1492
|
+
else if (vt.indexOf(n) !== -1) {
|
|
1498
1493
|
var i = t[n] instanceof Array ? t[n] : [t[n]], o = s[n] instanceof Array ? s[n] : [s[n]];
|
|
1499
1494
|
t[n] = [].concat(i, o);
|
|
1500
|
-
} else if (
|
|
1495
|
+
} else if (St.indexOf(n) !== -1)
|
|
1501
1496
|
for (var r in s[n])
|
|
1502
1497
|
if (t[n][r]) {
|
|
1503
1498
|
var c = t[n][r] instanceof Array ? t[n][r] : [t[n][r]], d = s[n][r] instanceof Array ? s[n][r] : [s[n][r]];
|
|
@@ -1506,21 +1501,21 @@ var Et = ["attrs", "props", "domProps"], Nt = ["class", "style", "directives"],
|
|
|
1506
1501
|
t[n][r] = s[n][r];
|
|
1507
1502
|
else if (n === "hook")
|
|
1508
1503
|
for (var a in s[n])
|
|
1509
|
-
t[n][a] = t[n][a] ?
|
|
1504
|
+
t[n][a] = t[n][a] ? yt(t[n][a], s[n][a]) : s[n][a];
|
|
1510
1505
|
else
|
|
1511
1506
|
t[n] = s[n];
|
|
1512
1507
|
return t;
|
|
1513
1508
|
}, {});
|
|
1514
|
-
},
|
|
1509
|
+
}, yt = function(e, t) {
|
|
1515
1510
|
return function() {
|
|
1516
1511
|
e && e.apply(this, arguments), t && t.apply(this, arguments);
|
|
1517
1512
|
};
|
|
1518
|
-
},
|
|
1519
|
-
const
|
|
1513
|
+
}, Et = Ot;
|
|
1514
|
+
const R = /* @__PURE__ */ gt(Et), Nt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.ARROW_UP, h.ARROW_RIGHT, h.ARROW_DOWN], bt = {
|
|
1520
1515
|
name: "VueTreeSelectInput",
|
|
1521
1516
|
inject: ["instance"],
|
|
1522
1517
|
data: () => ({
|
|
1523
|
-
inputWidth:
|
|
1518
|
+
inputWidth: ne,
|
|
1524
1519
|
value: ""
|
|
1525
1520
|
}),
|
|
1526
1521
|
computed: {
|
|
@@ -1545,7 +1540,7 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
|
|
|
1545
1540
|
}
|
|
1546
1541
|
},
|
|
1547
1542
|
created() {
|
|
1548
|
-
this.debouncedCallback =
|
|
1543
|
+
this.debouncedCallback = w(this.updateSearchQuery, it, {
|
|
1549
1544
|
leading: !0,
|
|
1550
1545
|
trailing: !0
|
|
1551
1546
|
});
|
|
@@ -1596,7 +1591,7 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
|
|
|
1596
1591
|
e.keyCode
|
|
1597
1592
|
);
|
|
1598
1593
|
if (!(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)) {
|
|
1599
|
-
if (!t.menu.isOpen && O(
|
|
1594
|
+
if (!t.menu.isOpen && O(Nt, s))
|
|
1600
1595
|
return e.preventDefault(), t.openMenu();
|
|
1601
1596
|
switch (s) {
|
|
1602
1597
|
case h.BACKSPACE: {
|
|
@@ -1658,18 +1653,18 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
|
|
|
1658
1653
|
const e = this.$createElement, {
|
|
1659
1654
|
instance: t
|
|
1660
1655
|
} = this, s = {}, n = [];
|
|
1661
|
-
return t.searchable && !t.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), t.searchable ||
|
|
1656
|
+
return t.searchable && !t.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), t.searchable || U(s, {
|
|
1662
1657
|
on: {
|
|
1663
1658
|
focus: this.onFocus,
|
|
1664
1659
|
blur: this.onBlur,
|
|
1665
1660
|
keydown: this.onKeyDown
|
|
1666
1661
|
},
|
|
1667
1662
|
ref: "input"
|
|
1668
|
-
}), !t.searchable && !t.disabled &&
|
|
1663
|
+
}), !t.searchable && !t.disabled && U(s, {
|
|
1669
1664
|
attrs: {
|
|
1670
1665
|
tabIndex: t.tabIndex
|
|
1671
1666
|
}
|
|
1672
|
-
}), e("div",
|
|
1667
|
+
}), e("div", R([{
|
|
1673
1668
|
class: "vue-treeselect__input-container"
|
|
1674
1669
|
}, s]), [n]);
|
|
1675
1670
|
},
|
|
@@ -1707,7 +1702,7 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
|
|
|
1707
1702
|
}, [this.value]);
|
|
1708
1703
|
},
|
|
1709
1704
|
updateInputWidth() {
|
|
1710
|
-
this.inputWidth = Math.max(
|
|
1705
|
+
this.inputWidth = Math.max(ne, this.$refs.sizer.scrollWidth + 15);
|
|
1711
1706
|
},
|
|
1712
1707
|
updateSearchQuery() {
|
|
1713
1708
|
const {
|
|
@@ -1720,25 +1715,25 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
|
|
|
1720
1715
|
return this.renderInputContainer();
|
|
1721
1716
|
}
|
|
1722
1717
|
};
|
|
1723
|
-
let
|
|
1724
|
-
const
|
|
1725
|
-
var
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1718
|
+
let $t, wt;
|
|
1719
|
+
const le = {};
|
|
1720
|
+
var Ct = /* @__PURE__ */ f(
|
|
1721
|
+
bt,
|
|
1722
|
+
$t,
|
|
1723
|
+
wt,
|
|
1729
1724
|
!1,
|
|
1730
|
-
|
|
1725
|
+
Lt,
|
|
1731
1726
|
null,
|
|
1732
1727
|
null,
|
|
1733
1728
|
null
|
|
1734
1729
|
);
|
|
1735
|
-
function
|
|
1736
|
-
for (let t in
|
|
1737
|
-
this[t] =
|
|
1730
|
+
function Lt(e) {
|
|
1731
|
+
for (let t in le)
|
|
1732
|
+
this[t] = le[t];
|
|
1738
1733
|
}
|
|
1739
|
-
const
|
|
1740
|
-
return
|
|
1741
|
-
}(),
|
|
1734
|
+
const Te = /* @__PURE__ */ function() {
|
|
1735
|
+
return Ct.exports;
|
|
1736
|
+
}(), Mt = {
|
|
1742
1737
|
name: "VueTreeSelectPlaceholder",
|
|
1743
1738
|
inject: ["instance"],
|
|
1744
1739
|
render() {
|
|
@@ -1754,25 +1749,25 @@ const De = /* @__PURE__ */ function() {
|
|
|
1754
1749
|
}, [t.placeholder]);
|
|
1755
1750
|
}
|
|
1756
1751
|
};
|
|
1757
|
-
let
|
|
1758
|
-
const
|
|
1759
|
-
var
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1752
|
+
let xt, Tt;
|
|
1753
|
+
const ae = {};
|
|
1754
|
+
var Dt = /* @__PURE__ */ f(
|
|
1755
|
+
Mt,
|
|
1756
|
+
xt,
|
|
1757
|
+
Tt,
|
|
1763
1758
|
!1,
|
|
1764
|
-
|
|
1759
|
+
Rt,
|
|
1765
1760
|
null,
|
|
1766
1761
|
null,
|
|
1767
1762
|
null
|
|
1768
1763
|
);
|
|
1769
|
-
function
|
|
1770
|
-
for (let t in
|
|
1771
|
-
this[t] =
|
|
1764
|
+
function Rt(e) {
|
|
1765
|
+
for (let t in ae)
|
|
1766
|
+
this[t] = ae[t];
|
|
1772
1767
|
}
|
|
1773
|
-
const
|
|
1774
|
-
return
|
|
1775
|
-
}(),
|
|
1768
|
+
const De = /* @__PURE__ */ function() {
|
|
1769
|
+
return Dt.exports;
|
|
1770
|
+
}(), It = {
|
|
1776
1771
|
name: "VueTreeSelectSingleValue",
|
|
1777
1772
|
inject: ["instance"],
|
|
1778
1773
|
methods: {
|
|
@@ -1794,31 +1789,31 @@ const Re = /* @__PURE__ */ function() {
|
|
|
1794
1789
|
} = this, n = t.hasValue && !t.trigger.searchQuery;
|
|
1795
1790
|
return s([n && e("div", {
|
|
1796
1791
|
class: "vue-treeselect__single-value"
|
|
1797
|
-
}, [this.renderSingleValueLabel()]), e(
|
|
1792
|
+
}, [this.renderSingleValueLabel()]), e(De), e(Te, {
|
|
1798
1793
|
ref: "input"
|
|
1799
1794
|
})]);
|
|
1800
1795
|
}
|
|
1801
1796
|
};
|
|
1802
|
-
let
|
|
1803
|
-
const
|
|
1804
|
-
var
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1797
|
+
let At, Vt;
|
|
1798
|
+
const ce = {};
|
|
1799
|
+
var Bt = /* @__PURE__ */ f(
|
|
1800
|
+
It,
|
|
1801
|
+
At,
|
|
1802
|
+
Vt,
|
|
1808
1803
|
!1,
|
|
1809
|
-
|
|
1804
|
+
zt,
|
|
1810
1805
|
null,
|
|
1811
1806
|
null,
|
|
1812
1807
|
null
|
|
1813
1808
|
);
|
|
1814
|
-
function
|
|
1815
|
-
for (let t in
|
|
1816
|
-
this[t] =
|
|
1809
|
+
function zt(e) {
|
|
1810
|
+
for (let t in ce)
|
|
1811
|
+
this[t] = ce[t];
|
|
1817
1812
|
}
|
|
1818
|
-
const
|
|
1819
|
-
return
|
|
1813
|
+
const Ft = /* @__PURE__ */ function() {
|
|
1814
|
+
return Bt.exports;
|
|
1820
1815
|
}();
|
|
1821
|
-
var
|
|
1816
|
+
var kt = function() {
|
|
1822
1817
|
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
1823
1818
|
return s("svg", {
|
|
1824
1819
|
attrs: {
|
|
@@ -1830,27 +1825,27 @@ var Qt = function() {
|
|
|
1830
1825
|
d: "M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z"
|
|
1831
1826
|
}
|
|
1832
1827
|
})]);
|
|
1833
|
-
},
|
|
1834
|
-
const
|
|
1828
|
+
}, Ht = [];
|
|
1829
|
+
const Pt = {
|
|
1835
1830
|
name: "VueTreeSelectDelete"
|
|
1836
|
-
},
|
|
1837
|
-
var
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1831
|
+
}, ue = {};
|
|
1832
|
+
var Wt = /* @__PURE__ */ f(
|
|
1833
|
+
Pt,
|
|
1834
|
+
kt,
|
|
1835
|
+
Ht,
|
|
1841
1836
|
!1,
|
|
1842
|
-
|
|
1837
|
+
jt,
|
|
1843
1838
|
null,
|
|
1844
1839
|
null,
|
|
1845
1840
|
null
|
|
1846
1841
|
);
|
|
1847
|
-
function
|
|
1848
|
-
for (let t in
|
|
1849
|
-
this[t] =
|
|
1842
|
+
function jt(e) {
|
|
1843
|
+
for (let t in ue)
|
|
1844
|
+
this[t] = ue[t];
|
|
1850
1845
|
}
|
|
1851
|
-
const
|
|
1852
|
-
return
|
|
1853
|
-
}(),
|
|
1846
|
+
const Re = /* @__PURE__ */ function() {
|
|
1847
|
+
return Wt.exports;
|
|
1848
|
+
}(), Qt = {
|
|
1854
1849
|
name: "VueTreeSelectMultiValueItem",
|
|
1855
1850
|
inject: ["instance"],
|
|
1856
1851
|
props: {
|
|
@@ -1890,28 +1885,28 @@ const Ie = /* @__PURE__ */ function() {
|
|
|
1890
1885
|
class: "vue-treeselect__multi-value-label"
|
|
1891
1886
|
}, [o]), e("span", {
|
|
1892
1887
|
class: "vue-treeselect__icon vue-treeselect__value-remove"
|
|
1893
|
-
}, [e(
|
|
1888
|
+
}, [e(Re)])])]);
|
|
1894
1889
|
}
|
|
1895
1890
|
};
|
|
1896
|
-
let
|
|
1897
|
-
const
|
|
1898
|
-
var
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1891
|
+
let Kt, qt;
|
|
1892
|
+
const he = {};
|
|
1893
|
+
var Ut = /* @__PURE__ */ f(
|
|
1894
|
+
Qt,
|
|
1895
|
+
Kt,
|
|
1896
|
+
qt,
|
|
1902
1897
|
!1,
|
|
1903
|
-
|
|
1898
|
+
Yt,
|
|
1904
1899
|
null,
|
|
1905
1900
|
null,
|
|
1906
1901
|
null
|
|
1907
1902
|
);
|
|
1908
|
-
function
|
|
1909
|
-
for (let t in
|
|
1910
|
-
this[t] =
|
|
1903
|
+
function Yt(e) {
|
|
1904
|
+
for (let t in he)
|
|
1905
|
+
this[t] = he[t];
|
|
1911
1906
|
}
|
|
1912
|
-
const
|
|
1913
|
-
return
|
|
1914
|
-
}(),
|
|
1907
|
+
const Xt = /* @__PURE__ */ function() {
|
|
1908
|
+
return Ut.exports;
|
|
1909
|
+
}(), Gt = {
|
|
1915
1910
|
name: "VueTreeSelectMultiValue",
|
|
1916
1911
|
inject: ["instance"],
|
|
1917
1912
|
methods: {
|
|
@@ -1919,7 +1914,7 @@ const ts = /* @__PURE__ */ function() {
|
|
|
1919
1914
|
const e = this.$createElement, {
|
|
1920
1915
|
instance: t
|
|
1921
1916
|
} = this;
|
|
1922
|
-
return t.internalValue.slice(0, t.limit).map(t.getNode).map((s) => e(
|
|
1917
|
+
return t.internalValue.slice(0, t.limit).map(t.getNode).map((s) => e(Xt, {
|
|
1923
1918
|
key: `multi-value-item-${s.id}`,
|
|
1924
1919
|
attrs: {
|
|
1925
1920
|
node: s
|
|
@@ -1942,7 +1937,7 @@ const ts = /* @__PURE__ */ function() {
|
|
|
1942
1937
|
const e = arguments[0], {
|
|
1943
1938
|
renderValueContainer: t
|
|
1944
1939
|
} = this.$parent;
|
|
1945
|
-
return t(e("transition-group",
|
|
1940
|
+
return t(e("transition-group", R([{
|
|
1946
1941
|
class: "vue-treeselect__multi-value"
|
|
1947
1942
|
}, {
|
|
1948
1943
|
props: {
|
|
@@ -1950,34 +1945,34 @@ const ts = /* @__PURE__ */ function() {
|
|
|
1950
1945
|
name: "vue-treeselect__multi-value-item--transition",
|
|
1951
1946
|
appear: !0
|
|
1952
1947
|
}
|
|
1953
|
-
}]), [this.renderMultiValueItems(), this.renderExceedLimitTip(), e(
|
|
1948
|
+
}]), [this.renderMultiValueItems(), this.renderExceedLimitTip(), e(De, {
|
|
1954
1949
|
key: "placeholder"
|
|
1955
|
-
}), e(
|
|
1950
|
+
}), e(Te, {
|
|
1956
1951
|
ref: "input",
|
|
1957
1952
|
key: "input"
|
|
1958
1953
|
})]));
|
|
1959
1954
|
}
|
|
1960
1955
|
};
|
|
1961
|
-
let
|
|
1962
|
-
const
|
|
1963
|
-
var
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1956
|
+
let Jt, Zt;
|
|
1957
|
+
const de = {};
|
|
1958
|
+
var es = /* @__PURE__ */ f(
|
|
1959
|
+
Gt,
|
|
1960
|
+
Jt,
|
|
1961
|
+
Zt,
|
|
1967
1962
|
!1,
|
|
1968
|
-
|
|
1963
|
+
ts,
|
|
1969
1964
|
null,
|
|
1970
1965
|
null,
|
|
1971
1966
|
null
|
|
1972
1967
|
);
|
|
1973
|
-
function
|
|
1974
|
-
for (let t in
|
|
1975
|
-
this[t] =
|
|
1968
|
+
function ts(e) {
|
|
1969
|
+
for (let t in de)
|
|
1970
|
+
this[t] = de[t];
|
|
1976
1971
|
}
|
|
1977
|
-
const
|
|
1978
|
-
return
|
|
1972
|
+
const ss = /* @__PURE__ */ function() {
|
|
1973
|
+
return es.exports;
|
|
1979
1974
|
}();
|
|
1980
|
-
var
|
|
1975
|
+
var ns = function() {
|
|
1981
1976
|
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
1982
1977
|
return s("svg", {
|
|
1983
1978
|
attrs: {
|
|
@@ -1989,27 +1984,27 @@ var as = function() {
|
|
|
1989
1984
|
d: "M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z"
|
|
1990
1985
|
}
|
|
1991
1986
|
})]);
|
|
1992
|
-
},
|
|
1993
|
-
const
|
|
1987
|
+
}, is = [];
|
|
1988
|
+
const rs = {
|
|
1994
1989
|
name: "VueTreeSelectArrow"
|
|
1995
|
-
},
|
|
1996
|
-
var
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
1990
|
+
}, pe = {};
|
|
1991
|
+
var os = /* @__PURE__ */ f(
|
|
1992
|
+
rs,
|
|
1993
|
+
ns,
|
|
1994
|
+
is,
|
|
2000
1995
|
!1,
|
|
2001
|
-
|
|
1996
|
+
ls,
|
|
2002
1997
|
null,
|
|
2003
1998
|
null,
|
|
2004
1999
|
null
|
|
2005
2000
|
);
|
|
2006
|
-
function
|
|
2007
|
-
for (let t in
|
|
2008
|
-
this[t] =
|
|
2001
|
+
function ls(e) {
|
|
2002
|
+
for (let t in pe)
|
|
2003
|
+
this[t] = pe[t];
|
|
2009
2004
|
}
|
|
2010
|
-
const
|
|
2011
|
-
return
|
|
2012
|
-
}(),
|
|
2005
|
+
const Ie = /* @__PURE__ */ function() {
|
|
2006
|
+
return os.exports;
|
|
2007
|
+
}(), as = {
|
|
2013
2008
|
name: "VueTreeSelectControl",
|
|
2014
2009
|
inject: ["instance"],
|
|
2015
2010
|
computed: {
|
|
@@ -2059,7 +2054,7 @@ const Ae = /* @__PURE__ */ function() {
|
|
|
2059
2054
|
on: {
|
|
2060
2055
|
mousedown: this.handleMouseDownOnX
|
|
2061
2056
|
}
|
|
2062
|
-
}, [e(
|
|
2057
|
+
}, [e(Re, {
|
|
2063
2058
|
class: "vue-treeselect__x"
|
|
2064
2059
|
})]) : null;
|
|
2065
2060
|
},
|
|
@@ -2075,7 +2070,7 @@ const Ae = /* @__PURE__ */ function() {
|
|
|
2075
2070
|
on: {
|
|
2076
2071
|
mousedown: this.handleMouseDownOnArrow
|
|
2077
2072
|
}
|
|
2078
|
-
}, [e(
|
|
2073
|
+
}, [e(Ie, {
|
|
2079
2074
|
class: s
|
|
2080
2075
|
})]) : null;
|
|
2081
2076
|
},
|
|
@@ -2086,7 +2081,7 @@ const Ae = /* @__PURE__ */ function() {
|
|
|
2086
2081
|
} = this, n = s.beforeClearAll(), i = (o) => {
|
|
2087
2082
|
o && s.clear();
|
|
2088
2083
|
};
|
|
2089
|
-
|
|
2084
|
+
Oe(n) ? n.then(i) : setTimeout(() => i(n), 0);
|
|
2090
2085
|
}),
|
|
2091
2086
|
handleMouseDownOnArrow: N(function(t) {
|
|
2092
2087
|
t.preventDefault(), t.stopPropagation();
|
|
@@ -2106,7 +2101,7 @@ const Ae = /* @__PURE__ */ function() {
|
|
|
2106
2101
|
render() {
|
|
2107
2102
|
const e = arguments[0], {
|
|
2108
2103
|
instance: t
|
|
2109
|
-
} = this, s = t.single ?
|
|
2104
|
+
} = this, s = t.single ? Ft : ss;
|
|
2110
2105
|
return e("div", {
|
|
2111
2106
|
class: "vue-treeselect__control",
|
|
2112
2107
|
on: {
|
|
@@ -2117,25 +2112,25 @@ const Ae = /* @__PURE__ */ function() {
|
|
|
2117
2112
|
}), this.renderX(), this.renderArrow()]);
|
|
2118
2113
|
}
|
|
2119
2114
|
};
|
|
2120
|
-
let
|
|
2121
|
-
const
|
|
2122
|
-
var
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2115
|
+
let cs, us;
|
|
2116
|
+
const fe = {};
|
|
2117
|
+
var hs = /* @__PURE__ */ f(
|
|
2118
|
+
as,
|
|
2119
|
+
cs,
|
|
2120
|
+
us,
|
|
2126
2121
|
!1,
|
|
2127
|
-
|
|
2122
|
+
ds,
|
|
2128
2123
|
null,
|
|
2129
2124
|
null,
|
|
2130
2125
|
null
|
|
2131
2126
|
);
|
|
2132
|
-
function
|
|
2133
|
-
for (let t in
|
|
2134
|
-
this[t] =
|
|
2127
|
+
function ds(e) {
|
|
2128
|
+
for (let t in fe)
|
|
2129
|
+
this[t] = fe[t];
|
|
2135
2130
|
}
|
|
2136
|
-
const
|
|
2137
|
-
return
|
|
2138
|
-
}(),
|
|
2131
|
+
const ps = /* @__PURE__ */ function() {
|
|
2132
|
+
return hs.exports;
|
|
2133
|
+
}(), fs = {
|
|
2139
2134
|
name: "VueTreeSelectTip",
|
|
2140
2135
|
functional: !0,
|
|
2141
2136
|
props: {
|
|
@@ -2164,27 +2159,27 @@ const vs = /* @__PURE__ */ function() {
|
|
|
2164
2159
|
}, [i])]);
|
|
2165
2160
|
}
|
|
2166
2161
|
};
|
|
2167
|
-
let
|
|
2168
|
-
const
|
|
2169
|
-
var
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2162
|
+
let ms, gs;
|
|
2163
|
+
const me = {};
|
|
2164
|
+
var _s = /* @__PURE__ */ f(
|
|
2165
|
+
fs,
|
|
2166
|
+
ms,
|
|
2167
|
+
gs,
|
|
2173
2168
|
!1,
|
|
2174
|
-
|
|
2169
|
+
vs,
|
|
2175
2170
|
null,
|
|
2176
2171
|
null,
|
|
2177
2172
|
null
|
|
2178
2173
|
);
|
|
2179
|
-
function
|
|
2180
|
-
for (let t in
|
|
2181
|
-
this[t] =
|
|
2174
|
+
function vs(e) {
|
|
2175
|
+
for (let t in me)
|
|
2176
|
+
this[t] = me[t];
|
|
2182
2177
|
}
|
|
2183
2178
|
const v = /* @__PURE__ */ function() {
|
|
2184
|
-
return
|
|
2179
|
+
return _s.exports;
|
|
2185
2180
|
}();
|
|
2186
|
-
let
|
|
2187
|
-
const
|
|
2181
|
+
let W, j, Q;
|
|
2182
|
+
const Ae = {
|
|
2188
2183
|
name: "VueTreeSelectOption",
|
|
2189
2184
|
inject: ["instance"],
|
|
2190
2185
|
props: {
|
|
@@ -2260,15 +2255,15 @@ const Ve = {
|
|
|
2260
2255
|
on: {
|
|
2261
2256
|
mousedown: this.handleMouseDownOnArrow
|
|
2262
2257
|
}
|
|
2263
|
-
}, [e("transition",
|
|
2258
|
+
}, [e("transition", R([{}, n]), [e(Ie, {
|
|
2264
2259
|
class: i
|
|
2265
2260
|
})])]);
|
|
2266
2261
|
}
|
|
2267
2262
|
return (
|
|
2268
2263
|
/* node.isLeaf && */
|
|
2269
|
-
t.hasBranchNodes ? (
|
|
2264
|
+
t.hasBranchNodes ? (W || (W = e("div", {
|
|
2270
2265
|
class: "vue-treeselect__option-arrow-placeholder"
|
|
2271
|
-
}, [" "])),
|
|
2266
|
+
}, [" "])), W) : null
|
|
2272
2267
|
);
|
|
2273
2268
|
},
|
|
2274
2269
|
renderLabelContainer(e) {
|
|
@@ -2295,18 +2290,18 @@ const Ve = {
|
|
|
2295
2290
|
node: s
|
|
2296
2291
|
} = this, n = t.forest.checkedStateMap[s.id], i = {
|
|
2297
2292
|
"vue-treeselect__checkbox": !0,
|
|
2298
|
-
"vue-treeselect__checkbox--checked": n ===
|
|
2299
|
-
"vue-treeselect__checkbox--indeterminate": n ===
|
|
2300
|
-
"vue-treeselect__checkbox--unchecked": n ===
|
|
2293
|
+
"vue-treeselect__checkbox--checked": n === Me,
|
|
2294
|
+
"vue-treeselect__checkbox--indeterminate": n === Le,
|
|
2295
|
+
"vue-treeselect__checkbox--unchecked": n === Y,
|
|
2301
2296
|
"vue-treeselect__checkbox--disabled": s.isDisabled
|
|
2302
2297
|
};
|
|
2303
|
-
return
|
|
2298
|
+
return j || (j = e("span", {
|
|
2304
2299
|
class: "vue-treeselect__check-mark"
|
|
2305
|
-
})),
|
|
2300
|
+
})), Q || (Q = e("span", {
|
|
2306
2301
|
class: "vue-treeselect__minus-mark"
|
|
2307
2302
|
})), e("span", {
|
|
2308
2303
|
class: i
|
|
2309
|
-
}, [
|
|
2304
|
+
}, [j, Q]);
|
|
2310
2305
|
},
|
|
2311
2306
|
renderLabel() {
|
|
2312
2307
|
const e = this.$createElement, {
|
|
@@ -2329,7 +2324,7 @@ const Ve = {
|
|
|
2329
2324
|
const e = this.$createElement, {
|
|
2330
2325
|
node: t
|
|
2331
2326
|
} = this;
|
|
2332
|
-
return t.childrenStates.isLoaded ? t.children.map((s) => e(
|
|
2327
|
+
return t.childrenStates.isLoaded ? t.children.map((s) => e(Ae, {
|
|
2333
2328
|
attrs: {
|
|
2334
2329
|
node: s
|
|
2335
2330
|
},
|
|
@@ -2422,33 +2417,33 @@ const Ve = {
|
|
|
2422
2417
|
};
|
|
2423
2418
|
return e("div", {
|
|
2424
2419
|
class: n
|
|
2425
|
-
}, [this.renderOption(), t.isBranch && e("transition",
|
|
2420
|
+
}, [this.renderOption(), t.isBranch && e("transition", R([{}, i]), [this.renderSubOptionsList()])]);
|
|
2426
2421
|
}
|
|
2427
2422
|
};
|
|
2428
|
-
let
|
|
2429
|
-
const
|
|
2430
|
-
var
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2423
|
+
let Ss, Os;
|
|
2424
|
+
const ge = {};
|
|
2425
|
+
var ys = /* @__PURE__ */ f(
|
|
2426
|
+
Ae,
|
|
2427
|
+
Ss,
|
|
2428
|
+
Os,
|
|
2434
2429
|
!1,
|
|
2435
|
-
|
|
2430
|
+
Es,
|
|
2436
2431
|
null,
|
|
2437
2432
|
null,
|
|
2438
2433
|
null
|
|
2439
2434
|
);
|
|
2440
|
-
function
|
|
2441
|
-
for (let t in
|
|
2442
|
-
this[t] =
|
|
2435
|
+
function Es(e) {
|
|
2436
|
+
for (let t in ge)
|
|
2437
|
+
this[t] = ge[t];
|
|
2443
2438
|
}
|
|
2444
|
-
const
|
|
2445
|
-
return
|
|
2446
|
-
}(),
|
|
2439
|
+
const Ns = /* @__PURE__ */ function() {
|
|
2440
|
+
return ys.exports;
|
|
2441
|
+
}(), bs = {
|
|
2447
2442
|
top: "top",
|
|
2448
2443
|
bottom: "bottom",
|
|
2449
2444
|
above: "top",
|
|
2450
2445
|
below: "bottom"
|
|
2451
|
-
},
|
|
2446
|
+
}, $s = {
|
|
2452
2447
|
name: "VueTreeSelectMenu",
|
|
2453
2448
|
inject: ["instance"],
|
|
2454
2449
|
computed: {
|
|
@@ -2536,7 +2531,7 @@ const Ls = /* @__PURE__ */ function() {
|
|
|
2536
2531
|
} = this;
|
|
2537
2532
|
return e("div", {
|
|
2538
2533
|
class: "vue-treeselect__list"
|
|
2539
|
-
}, [t.forest.normalizedOptions.map((s) => e(
|
|
2534
|
+
}, [t.forest.normalizedOptions.map((s) => e(Ns, {
|
|
2540
2535
|
attrs: {
|
|
2541
2536
|
node: s
|
|
2542
2537
|
},
|
|
@@ -2637,15 +2632,15 @@ const Ls = /* @__PURE__ */ function() {
|
|
|
2637
2632
|
} = this;
|
|
2638
2633
|
if (!e.menu.isOpen)
|
|
2639
2634
|
return;
|
|
2640
|
-
const t = e.getMenu(), s = e.getControl(), n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = n.height, r = window.innerHeight, c = i.top, d = window.innerHeight - i.bottom, a = i.top >= 0 && i.top <= r || i.top < 0 && i.bottom > 0, m = d > o +
|
|
2641
|
-
a ? e.openDirection !== "auto" ? e.menu.placement =
|
|
2635
|
+
const t = e.getMenu(), s = e.getControl(), n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = n.height, r = window.innerHeight, c = i.top, d = window.innerHeight - i.bottom, a = i.top >= 0 && i.top <= r || i.top < 0 && i.bottom > 0, m = d > o + ie, p = c > o + ie;
|
|
2636
|
+
a ? e.openDirection !== "auto" ? e.menu.placement = bs[e.openDirection] : m || !p ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
|
|
2642
2637
|
},
|
|
2643
2638
|
setupMenuSizeWatcher() {
|
|
2644
2639
|
const {
|
|
2645
2640
|
instance: e
|
|
2646
2641
|
} = this, t = e.getMenu();
|
|
2647
2642
|
this.menuSizeWatcher || (this.menuSizeWatcher = {
|
|
2648
|
-
remove:
|
|
2643
|
+
remove: Ne(t, this.adjustMenuOpenDirection)
|
|
2649
2644
|
});
|
|
2650
2645
|
},
|
|
2651
2646
|
setupMenuResizeAndScrollEventListeners() {
|
|
@@ -2653,7 +2648,7 @@ const Ls = /* @__PURE__ */ function() {
|
|
|
2653
2648
|
instance: e
|
|
2654
2649
|
} = this, t = e.getControl();
|
|
2655
2650
|
this.menuResizeAndScrollEventListeners || (this.menuResizeAndScrollEventListeners = {
|
|
2656
|
-
remove:
|
|
2651
|
+
remove: be(t, this.adjustMenuOpenDirection)
|
|
2657
2652
|
});
|
|
2658
2653
|
},
|
|
2659
2654
|
removeMenuSizeWatcher() {
|
|
@@ -2676,25 +2671,25 @@ const Ls = /* @__PURE__ */ function() {
|
|
|
2676
2671
|
}, [this.renderMenu()])]);
|
|
2677
2672
|
}
|
|
2678
2673
|
};
|
|
2679
|
-
let
|
|
2680
|
-
const
|
|
2681
|
-
var
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2674
|
+
let ws, Cs;
|
|
2675
|
+
const _e = {};
|
|
2676
|
+
var Ls = /* @__PURE__ */ f(
|
|
2677
|
+
$s,
|
|
2678
|
+
ws,
|
|
2679
|
+
Cs,
|
|
2685
2680
|
!1,
|
|
2686
|
-
|
|
2681
|
+
Ms,
|
|
2687
2682
|
null,
|
|
2688
2683
|
null,
|
|
2689
2684
|
null
|
|
2690
2685
|
);
|
|
2691
|
-
function
|
|
2692
|
-
for (let t in
|
|
2693
|
-
this[t] =
|
|
2686
|
+
function Ms(e) {
|
|
2687
|
+
for (let t in _e)
|
|
2688
|
+
this[t] = _e[t];
|
|
2694
2689
|
}
|
|
2695
|
-
const
|
|
2696
|
-
return
|
|
2697
|
-
}(),
|
|
2690
|
+
const Ve = /* @__PURE__ */ function() {
|
|
2691
|
+
return Ls.exports;
|
|
2692
|
+
}(), xs = {
|
|
2698
2693
|
name: "VueTreeSelectPortalTarget",
|
|
2699
2694
|
inject: ["instance"],
|
|
2700
2695
|
watch: {
|
|
@@ -2726,7 +2721,7 @@ const Be = /* @__PURE__ */ function() {
|
|
|
2726
2721
|
instance: e
|
|
2727
2722
|
} = this, t = e.getControl();
|
|
2728
2723
|
this.controlResizeAndScrollEventListeners || (this.controlResizeAndScrollEventListeners = {
|
|
2729
|
-
remove:
|
|
2724
|
+
remove: be(t, this.updateMenuContainerOffset)
|
|
2730
2725
|
});
|
|
2731
2726
|
},
|
|
2732
2727
|
setupControlSizeWatcher() {
|
|
@@ -2734,7 +2729,7 @@ const Be = /* @__PURE__ */ function() {
|
|
|
2734
2729
|
instance: e
|
|
2735
2730
|
} = this, t = e.getControl();
|
|
2736
2731
|
this.controlSizeWatcher || (this.controlSizeWatcher = {
|
|
2737
|
-
remove:
|
|
2732
|
+
remove: Ne(t, () => {
|
|
2738
2733
|
this.updateWidth(), this.updateMenuContainerOffset();
|
|
2739
2734
|
})
|
|
2740
2735
|
});
|
|
@@ -2754,7 +2749,7 @@ const Be = /* @__PURE__ */ function() {
|
|
|
2754
2749
|
updateMenuContainerOffset() {
|
|
2755
2750
|
const {
|
|
2756
2751
|
instance: e
|
|
2757
|
-
} = this, t = e.getControl(), s = this.$el, n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = e.menu.placement === "bottom" ? n.height : 0, r = `${Math.round(n.left - i.left)}px`, c = `${Math.round(n.top - i.top + o)}px`, d = this.$refs.menu.$refs["menu-container"].style, m =
|
|
2752
|
+
} = this, t = e.getControl(), s = this.$el, n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = e.menu.placement === "bottom" ? n.height : 0, r = `${Math.round(n.left - i.left)}px`, c = `${Math.round(n.top - i.top + o)}px`, d = this.$refs.menu.$refs["menu-container"].style, m = Ce(["transform", "webkitTransform", "MozTransform", "msTransform"], (p) => p in document.body.style);
|
|
2758
2753
|
d[m] = `translate(${r}, ${c})`;
|
|
2759
2754
|
}
|
|
2760
2755
|
},
|
|
@@ -2770,7 +2765,7 @@ const Be = /* @__PURE__ */ function() {
|
|
|
2770
2765
|
attrs: {
|
|
2771
2766
|
"data-instance-id": t.getInstanceId()
|
|
2772
2767
|
}
|
|
2773
|
-
}, [e(
|
|
2768
|
+
}, [e(Ve, {
|
|
2774
2769
|
ref: "menu"
|
|
2775
2770
|
})]);
|
|
2776
2771
|
},
|
|
@@ -2778,8 +2773,8 @@ const Be = /* @__PURE__ */ function() {
|
|
|
2778
2773
|
this.removeHandlers();
|
|
2779
2774
|
}
|
|
2780
2775
|
};
|
|
2781
|
-
let
|
|
2782
|
-
const
|
|
2776
|
+
let K;
|
|
2777
|
+
const Ts = {
|
|
2783
2778
|
name: "VueTreeSelectMenuPortal",
|
|
2784
2779
|
created() {
|
|
2785
2780
|
this.portalTarget = null;
|
|
@@ -2793,10 +2788,10 @@ const Vs = {
|
|
|
2793
2788
|
methods: {
|
|
2794
2789
|
setup() {
|
|
2795
2790
|
const e = document.createElement("div");
|
|
2796
|
-
document.body.appendChild(e), this.portalTarget = new
|
|
2791
|
+
document.body.appendChild(e), this.portalTarget = new je(_({
|
|
2797
2792
|
el: e,
|
|
2798
2793
|
parent: this
|
|
2799
|
-
},
|
|
2794
|
+
}, xs));
|
|
2800
2795
|
},
|
|
2801
2796
|
teardown() {
|
|
2802
2797
|
document.body.removeChild(this.portalTarget.$el), this.portalTarget.$el.innerHTML = "", this.portalTarget.$destroy(), this.portalTarget = null;
|
|
@@ -2804,32 +2799,32 @@ const Vs = {
|
|
|
2804
2799
|
},
|
|
2805
2800
|
render() {
|
|
2806
2801
|
const e = arguments[0];
|
|
2807
|
-
return
|
|
2802
|
+
return K || (K = e("div", {
|
|
2808
2803
|
class: "vue-treeselect__menu-placeholder"
|
|
2809
|
-
})),
|
|
2804
|
+
})), K;
|
|
2810
2805
|
}
|
|
2811
2806
|
};
|
|
2812
|
-
let
|
|
2813
|
-
const
|
|
2814
|
-
var
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2807
|
+
let Ds, Rs;
|
|
2808
|
+
const ve = {};
|
|
2809
|
+
var Is = /* @__PURE__ */ f(
|
|
2810
|
+
Ts,
|
|
2811
|
+
Ds,
|
|
2812
|
+
Rs,
|
|
2818
2813
|
!1,
|
|
2819
|
-
|
|
2814
|
+
As,
|
|
2820
2815
|
null,
|
|
2821
2816
|
null,
|
|
2822
2817
|
null
|
|
2823
2818
|
);
|
|
2824
|
-
function
|
|
2825
|
-
for (let t in
|
|
2826
|
-
this[t] =
|
|
2819
|
+
function As(e) {
|
|
2820
|
+
for (let t in ve)
|
|
2821
|
+
this[t] = ve[t];
|
|
2827
2822
|
}
|
|
2828
|
-
const
|
|
2829
|
-
return
|
|
2830
|
-
}(),
|
|
2823
|
+
const Vs = /* @__PURE__ */ function() {
|
|
2824
|
+
return Is.exports;
|
|
2825
|
+
}(), Bs = {
|
|
2831
2826
|
name: "VueTreeSelect",
|
|
2832
|
-
mixins: [
|
|
2827
|
+
mixins: [at],
|
|
2833
2828
|
computed: {
|
|
2834
2829
|
wrapperClass() {
|
|
2835
2830
|
return {
|
|
@@ -2853,34 +2848,34 @@ const Hs = /* @__PURE__ */ function() {
|
|
|
2853
2848
|
return e("div", {
|
|
2854
2849
|
ref: "wrapper",
|
|
2855
2850
|
class: this.wrapperClass
|
|
2856
|
-
}, [e(
|
|
2851
|
+
}, [e(mt), e(ps, {
|
|
2857
2852
|
ref: "control"
|
|
2858
|
-
}), this.appendToBody ? e(
|
|
2853
|
+
}), this.appendToBody ? e(Vs, {
|
|
2859
2854
|
ref: "portal"
|
|
2860
|
-
}) : e(
|
|
2855
|
+
}) : e(Ve, {
|
|
2861
2856
|
ref: "menu"
|
|
2862
2857
|
})]);
|
|
2863
2858
|
}
|
|
2864
2859
|
};
|
|
2865
|
-
let
|
|
2866
|
-
const
|
|
2867
|
-
var
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2860
|
+
let zs, Fs;
|
|
2861
|
+
const Se = {};
|
|
2862
|
+
var ks = /* @__PURE__ */ f(
|
|
2863
|
+
Bs,
|
|
2864
|
+
zs,
|
|
2865
|
+
Fs,
|
|
2871
2866
|
!1,
|
|
2872
|
-
|
|
2867
|
+
Hs,
|
|
2873
2868
|
null,
|
|
2874
2869
|
null,
|
|
2875
2870
|
null
|
|
2876
2871
|
);
|
|
2877
|
-
function
|
|
2878
|
-
for (let t in
|
|
2879
|
-
this[t] =
|
|
2872
|
+
function Hs(e) {
|
|
2873
|
+
for (let t in Se)
|
|
2874
|
+
this[t] = Se[t];
|
|
2880
2875
|
}
|
|
2881
|
-
const
|
|
2882
|
-
return
|
|
2876
|
+
const qs = /* @__PURE__ */ function() {
|
|
2877
|
+
return ks.exports;
|
|
2883
2878
|
}();
|
|
2884
2879
|
export {
|
|
2885
|
-
|
|
2880
|
+
qs as default
|
|
2886
2881
|
};
|