@web-utils/component 3.1.0 → 3.2.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 +1 -1
- package/address-input/style.css +1 -1
- package/affix/index.mjs +1 -1
- package/affix/style.css +1 -1
- package/aside-menu/index.mjs +13 -13
- package/aside-menu/style.css +1 -1
- package/avatar/index.mjs +6 -6
- package/avatar/style.css +1 -1
- package/awesome-button/index.mjs +1 -1
- package/base.css +1 -1
- package/capsule-tab/index.mjs +5 -5
- package/capsule-tab/style.css +1 -1
- package/card/index.mjs +13 -13
- package/card/style.css +1 -1
- package/carousel/index.mjs +9 -9
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunk-file-uploader/index.mjs +9 -9
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{FormTemp.aa57efb4.mjs → FormTemp.0eqGAu6W.mjs} +4 -4
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.Ab9PZnVk.mjs} +1 -1
- package/chunks/{dic.eaac0823.mjs → dic.7JBaVHv6.mjs} +1 -1
- package/chunks/{event.b5d855dd.mjs → event.lbJYeMJp.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.47f219b4.mjs → init.6oF7OO2W.mjs} +3 -3
- package/code-mirror-editor/index.mjs +24 -24
- package/code-mirror-editor/style.css +1 -1
- package/color-picker/index.mjs +1 -1
- package/comment/index.mjs +3 -3
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +2 -2
- package/confirmable/index.mjs +2 -2
- package/context-menu/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +4 -4
- package/data-box/style.css +1 -1
- package/data-card/index.mjs +10 -10
- package/data-card/style.css +1 -1
- package/data-cardtext/index.mjs +4 -4
- package/data-cardtext/style.css +1 -1
- package/data-display/index.mjs +3 -3
- package/data-display/style.css +1 -1
- package/data-icons/index.mjs +5 -5
- package/data-icons/style.css +1 -1
- package/data-imgtext/index.mjs +10 -10
- package/data-imgtext/style.css +1 -1
- package/data-operatext/index.mjs +3 -3
- package/data-operatext/style.css +1 -1
- package/data-panel/index.mjs +6 -6
- package/data-panel/style.css +1 -1
- package/data-pay/index.mjs +11 -11
- package/data-pay/style.css +1 -1
- package/data-price/index.mjs +8 -8
- package/data-price/style.css +1 -1
- package/data-progress/index.mjs +7 -7
- 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 +9 -9
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +4 -4
- package/dialog-form/style.css +1 -1
- package/dynamic-table/index.mjs +11 -11
- package/dynamic-table/style.css +1 -1
- package/e-charts/index.mjs +1 -1
- package/e-charts/style.css +1 -1
- package/easy-popup/index.mjs +6 -6
- 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 +49 -49
- 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 +14 -14
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +4 -4
- package/empty-view/style.css +1 -1
- package/error-view/index.mjs +3 -3
- 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 +3 -3
- package/flex-scroller/style.css +1 -1
- package/flow/index.mjs +5 -5
- package/flow/style.css +1 -1
- package/flow-designer/index.mjs +27 -29
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/flow-viewer/index.mjs +11 -11
- package/flow-viewer/style.css +1 -1
- package/form-block/index.mjs +14 -14
- 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 +20 -20
- 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 +9 -9
- 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 +10 -10
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-group/index.mjs +2 -2
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +25 -25
- 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 +15 -15
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +19 -19
- package/fy-array/style.css +1 -1
- package/fy-article/index.mjs +1 -1
- package/fy-article/style.css +1 -1
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +7 -7
- package/fy-checkbox/style.css +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +11 -13
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +9 -9
- 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 +5 -5
- package/fy-dynamic/style.css +1 -1
- package/fy-empty/index.mjs +5 -5
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +15 -17
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +21 -25
- 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 +26 -26
- package/fy-input-icon/style.css +1 -1
- package/fy-input-map/index.mjs +12 -12
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +6 -6
- package/fy-input-table/style.css +1 -1
- package/fy-input-tree/index.mjs +2 -2
- package/fy-input-tree/style.css +1 -1
- package/fy-progress/index.mjs +1 -1
- package/fy-radio/index.mjs +10 -10
- 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 +16 -16
- 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 +9 -9
- package/fy-title/style.css +1 -1
- package/fy-tree/index.mjs +5 -5
- package/fy-tree/style.css +1 -1
- package/fy-u-editor/index.mjs +13 -13
- 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 +24 -24
- package/guide-steps/style.css +1 -1
- package/highlight-j-s/index.mjs +3 -3
- package/highlight-j-s/style.css +1 -1
- package/icon-card/index.mjs +4 -4
- package/icon-card/style.css +1 -1
- package/icon-temp/index.mjs +3 -3
- package/icon-temp/style.css +1 -1
- package/iframe-window/index.mjs +4 -4
- package/iframe-window/style.css +1 -1
- package/image-cropper/index.mjs +5 -5
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +8 -8
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +500 -3983
- package/input-number/index.mjs +4 -4
- package/input-number/style.css +1 -1
- package/input-number-range/index.mjs +6 -6
- package/input-number-range/style.css +1 -1
- package/keep-view-alive/index.mjs +1 -1
- package/keyboard/index.mjs +6 -6
- package/keyboard/style.css +1 -1
- package/license/index.mjs +2 -2
- package/loading-view/index.mjs +7 -7
- package/loading-view/style.css +1 -1
- package/login/index.mjs +6 -6
- package/login/style.css +1 -1
- package/monaco-editor/index.mjs +2 -2
- package/name-avatar/index.mjs +1 -1
- package/name-avatar/style.css +1 -1
- package/nav-bar/index.mjs +7 -7
- package/nav-bar/style.css +1 -1
- package/not-implement/index.mjs +10 -10
- package/not-implement/style.css +1 -1
- package/notice/index.mjs +1 -1
- package/notice/style.css +1 -1
- package/package.json +5 -5
- package/page/index.mjs +6 -6
- package/page/style.css +1 -1
- package/page-header/index.mjs +3 -3
- package/page-header/style.css +1 -1
- package/page-index/index.mjs +13 -13
- package/page-index/style.css +1 -1
- package/page-index-top/index.mjs +1 -1
- package/page-skeleton/index.mjs +9 -9
- package/page-skeleton/style.css +1 -1
- package/page-skeleton-new/index.mjs +1 -1
- package/page-skeleton-new/style.css +1 -1
- package/pageable-table/index.mjs +18 -18
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +13 -13
- 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 +1 -1
- package/queue/style.css +1 -1
- package/record-video/index.mjs +2 -2
- package/record-video/style.css +1 -1
- package/resize-observer/index.mjs +4 -4
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +9 -9
- package/search/style.css +1 -1
- package/search-popover/index.mjs +18 -18
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +15 -15
- package/sign/style.css +1 -1
- package/sign-panel/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton/index.mjs +7 -7
- package/skeleton/style.css +1 -1
- package/split-pane/index.mjs +47 -48
- package/split-pane/style.css +1 -1
- package/stateful/index.mjs +19 -19
- package/stateful/style.css +1 -1
- package/static-pageable-table/index.mjs +7 -7
- package/static-pageable-table/style.css +1 -1
- package/swiper/index.mjs +4 -4
- package/swiper/style.css +1 -1
- package/tab/index.mjs +8 -8
- 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 +10 -10
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +7 -7
- package/tag-render/style.css +1 -1
- package/text-ellipsis/index.mjs +4 -4
- package/text-ellipsis/style.css +1 -1
- package/tinymce-editor/index.mjs +21 -22
- package/tinymce-editor/style.css +1 -1
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +13 -13
- package/toolbar-button/style.css +1 -1
- package/verify/index.mjs +15 -15
- package/verify/style.css +1 -1
- package/vue-cron/index.mjs +2 -3
- package/vue-cron/style.css +1 -1
- package/vue-qr-code/index.mjs +1 -1
- package/vue-quill-editor/index.mjs +1 -1
- 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 +2 -3
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +8 -8
- package/vue-video-player/style.css +1 -1
- package/watermark/index.mjs +19 -19
- package/watermark/style.css +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +5 -5
- package/x-input-tag/style.css +1 -1
- package/index.css +0 -1
- /package/chunks/{_plugin-vue2_normalizer.446f5dc4.mjs → _plugin-vue2_normalizer.JwmUNtgn.mjs} +0 -0
- /package/chunks/{confirmable-mixin.817b542f.mjs → confirmable-mixin.GqdyYLEM.mjs} +0 -0
- /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.ae730cde.mjs → util.y1gUGRqi.mjs} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4099 +1,616 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var le = Object.getOwnPropertySymbols;
|
|
4
|
-
var Kr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ce = (e, t, o) => t in e ? qr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, g = (e, t) => {
|
|
6
|
-
for (var o in t || (t = {}))
|
|
7
|
-
Kr.call(t, o) && ce(e, o, t[o]);
|
|
8
|
-
if (le)
|
|
9
|
-
for (var o of le(t))
|
|
10
|
-
Ur.call(t, o) && ce(e, o, t[o]);
|
|
11
|
-
return e;
|
|
12
|
-
}, D = (e, t) => Vr(e, Qr(t));
|
|
13
|
-
var H = (e, t, o) => new Promise((r, n) => {
|
|
14
|
-
var i = (l) => {
|
|
15
|
-
try {
|
|
16
|
-
p(o.next(l));
|
|
17
|
-
} catch (c) {
|
|
18
|
-
n(c);
|
|
19
|
-
}
|
|
20
|
-
}, a = (l) => {
|
|
21
|
-
try {
|
|
22
|
-
p(o.throw(l));
|
|
23
|
-
} catch (c) {
|
|
24
|
-
n(c);
|
|
25
|
-
}
|
|
26
|
-
}, p = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(i, a);
|
|
27
|
-
p((o = o.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import de from "@web-utils/component/address-input";
|
|
30
|
-
import { default as Kp } from "@web-utils/component/address-input";
|
|
1
|
+
import m from "@web-utils/component/address-input";
|
|
2
|
+
import { default as Cn } from "@web-utils/component/address-input";
|
|
31
3
|
import "@web-utils/component/address-input/style.css";
|
|
32
|
-
import
|
|
33
|
-
import { default as
|
|
4
|
+
import r from "@web-utils/component/affix";
|
|
5
|
+
import { default as Tn } from "@web-utils/component/affix";
|
|
34
6
|
import "@web-utils/component/affix/style.css";
|
|
35
|
-
import
|
|
36
|
-
import { default as
|
|
7
|
+
import t from "@web-utils/component/aside-menu";
|
|
8
|
+
import { default as Dn } from "@web-utils/component/aside-menu";
|
|
37
9
|
import "@web-utils/component/aside-menu/style.css";
|
|
38
|
-
import
|
|
39
|
-
import { default as
|
|
10
|
+
import e from "@web-utils/component/avatar";
|
|
11
|
+
import { default as Sn } from "@web-utils/component/avatar";
|
|
40
12
|
import "@web-utils/component/avatar/style.css";
|
|
41
|
-
import
|
|
42
|
-
import { default as
|
|
43
|
-
import
|
|
44
|
-
import { default as
|
|
13
|
+
import a from "@web-utils/component/awesome-button";
|
|
14
|
+
import { default as hn } from "@web-utils/component/awesome-button";
|
|
15
|
+
import p from "@web-utils/component/capsule-tab";
|
|
16
|
+
import { default as Nn } from "@web-utils/component/capsule-tab";
|
|
45
17
|
import "@web-utils/component/capsule-tab/style.css";
|
|
46
|
-
import
|
|
47
|
-
import { default as
|
|
18
|
+
import n from "@web-utils/component/card";
|
|
19
|
+
import { default as Rn } from "@web-utils/component/card";
|
|
48
20
|
import "@web-utils/component/card/style.css";
|
|
49
|
-
import
|
|
50
|
-
import { default as
|
|
21
|
+
import f from "@web-utils/component/carousel";
|
|
22
|
+
import { default as Bn } from "@web-utils/component/carousel";
|
|
51
23
|
import "@web-utils/component/carousel/style.css";
|
|
52
|
-
import
|
|
53
|
-
import { default as
|
|
24
|
+
import i from "@web-utils/component/chat";
|
|
25
|
+
import { default as Gn } from "@web-utils/component/chat";
|
|
54
26
|
import "@web-utils/component/chat/style.css";
|
|
55
|
-
import
|
|
56
|
-
import { default as
|
|
27
|
+
import l from "@web-utils/component/chunk-file-uploader";
|
|
28
|
+
import { default as Hn } from "@web-utils/component/chunk-file-uploader";
|
|
57
29
|
import "@web-utils/component/chunk-file-uploader/style.css";
|
|
58
|
-
import
|
|
59
|
-
import { default as
|
|
30
|
+
import d from "@web-utils/component/code-mirror-editor";
|
|
31
|
+
import { default as Qn } from "@web-utils/component/code-mirror-editor";
|
|
60
32
|
import "@web-utils/component/code-mirror-editor/style.css";
|
|
61
|
-
import
|
|
62
|
-
import { default as
|
|
63
|
-
import
|
|
64
|
-
import { default as
|
|
33
|
+
import s from "@web-utils/component/color-picker";
|
|
34
|
+
import { default as Kn } from "@web-utils/component/color-picker";
|
|
35
|
+
import c from "@web-utils/component/comment";
|
|
36
|
+
import { default as Wn } from "@web-utils/component/comment";
|
|
65
37
|
import "@web-utils/component/comment/style.css";
|
|
66
|
-
import
|
|
67
|
-
import { default as
|
|
68
|
-
import
|
|
69
|
-
import { default as
|
|
70
|
-
import
|
|
71
|
-
import { default as
|
|
38
|
+
import x from "@web-utils/component/confirmable";
|
|
39
|
+
import { default as zn } from "@web-utils/component/confirmable";
|
|
40
|
+
import F from "@web-utils/component/confirm-button";
|
|
41
|
+
import { default as qn } from "@web-utils/component/confirm-button";
|
|
42
|
+
import u from "@web-utils/component/context-menu";
|
|
43
|
+
import { default as Zn } from "@web-utils/component/context-menu";
|
|
72
44
|
import "@web-utils/component/context-menu/style.css";
|
|
73
|
-
import
|
|
74
|
-
import { default as
|
|
75
|
-
import
|
|
76
|
-
import { default as
|
|
77
|
-
import
|
|
78
|
-
import { default as
|
|
45
|
+
import y from "@web-utils/component/count-up";
|
|
46
|
+
import { default as $n } from "@web-utils/component/count-up";
|
|
47
|
+
import I from "@web-utils/component/custom-scrollbar";
|
|
48
|
+
import { default as of } from "@web-utils/component/custom-scrollbar";
|
|
49
|
+
import g from "@web-utils/component/data-box";
|
|
50
|
+
import { default as rf } from "@web-utils/component/data-box";
|
|
79
51
|
import "@web-utils/component/data-box/style.css";
|
|
80
|
-
import
|
|
81
|
-
import { default as
|
|
52
|
+
import C from "@web-utils/component/data-card";
|
|
53
|
+
import { default as ef } from "@web-utils/component/data-card";
|
|
82
54
|
import "@web-utils/component/data-card/style.css";
|
|
83
|
-
import
|
|
84
|
-
import { default as
|
|
55
|
+
import b from "@web-utils/component/data-cardtext";
|
|
56
|
+
import { default as pf } from "@web-utils/component/data-cardtext";
|
|
85
57
|
import "@web-utils/component/data-cardtext/style.css";
|
|
86
|
-
import
|
|
87
|
-
import { default as
|
|
58
|
+
import T from "@web-utils/component/data-display";
|
|
59
|
+
import { default as ff } from "@web-utils/component/data-display";
|
|
88
60
|
import "@web-utils/component/data-display/style.css";
|
|
89
|
-
import
|
|
90
|
-
import { default as
|
|
61
|
+
import P from "@web-utils/component/data-icons";
|
|
62
|
+
import { default as df } from "@web-utils/component/data-icons";
|
|
91
63
|
import "@web-utils/component/data-icons/style.css";
|
|
92
|
-
import
|
|
93
|
-
import { default as
|
|
64
|
+
import D from "@web-utils/component/data-imgtext";
|
|
65
|
+
import { default as cf } from "@web-utils/component/data-imgtext";
|
|
94
66
|
import "@web-utils/component/data-imgtext/style.css";
|
|
95
|
-
import
|
|
96
|
-
import { default as
|
|
67
|
+
import w from "@web-utils/component/data-operatext";
|
|
68
|
+
import { default as Ff } from "@web-utils/component/data-operatext";
|
|
97
69
|
import "@web-utils/component/data-operatext/style.css";
|
|
98
|
-
import
|
|
99
|
-
import { default as
|
|
70
|
+
import S from "@web-utils/component/data-panel";
|
|
71
|
+
import { default as yf } from "@web-utils/component/data-panel";
|
|
100
72
|
import "@web-utils/component/data-panel/style.css";
|
|
101
|
-
import
|
|
102
|
-
import { default as
|
|
73
|
+
import E from "@web-utils/component/data-pay";
|
|
74
|
+
import { default as gf } from "@web-utils/component/data-pay";
|
|
103
75
|
import "@web-utils/component/data-pay/style.css";
|
|
104
|
-
import
|
|
105
|
-
import { default as
|
|
76
|
+
import h from "@web-utils/component/data-price";
|
|
77
|
+
import { default as bf } from "@web-utils/component/data-price";
|
|
106
78
|
import "@web-utils/component/data-price/style.css";
|
|
107
|
-
import
|
|
108
|
-
import { default as
|
|
79
|
+
import k from "@web-utils/component/data-progress";
|
|
80
|
+
import { default as Pf } from "@web-utils/component/data-progress";
|
|
109
81
|
import "@web-utils/component/data-progress/style.css";
|
|
110
|
-
import
|
|
111
|
-
import { default as
|
|
82
|
+
import N from "@web-utils/component/data-rotate";
|
|
83
|
+
import { default as wf } from "@web-utils/component/data-rotate";
|
|
112
84
|
import "@web-utils/component/data-rotate/style.css";
|
|
113
|
-
import
|
|
114
|
-
import { default as
|
|
115
|
-
import
|
|
116
|
-
import { default as
|
|
85
|
+
import A from "@web-utils/component/data-table-picker";
|
|
86
|
+
import { default as Ef } from "@web-utils/component/data-table-picker";
|
|
87
|
+
import R from "@web-utils/component/data-tabs";
|
|
88
|
+
import { default as kf } from "@web-utils/component/data-tabs";
|
|
117
89
|
import "@web-utils/component/data-tabs/style.css";
|
|
118
|
-
import
|
|
119
|
-
import { default as
|
|
90
|
+
import v from "@web-utils/component/dialog-form";
|
|
91
|
+
import { default as Af } from "@web-utils/component/dialog-form";
|
|
120
92
|
import "@web-utils/component/dialog-form/style.css";
|
|
121
|
-
import
|
|
122
|
-
import { default as
|
|
93
|
+
import B from "@web-utils/component/dynamic-table";
|
|
94
|
+
import { default as vf } from "@web-utils/component/dynamic-table";
|
|
123
95
|
import "@web-utils/component/dynamic-table/style.css";
|
|
124
|
-
import
|
|
125
|
-
import { default as
|
|
96
|
+
import M from "@web-utils/component/easy-popup";
|
|
97
|
+
import { default as Mf } from "@web-utils/component/easy-popup";
|
|
126
98
|
import "@web-utils/component/easy-popup/style.css";
|
|
127
|
-
import
|
|
128
|
-
import { default as
|
|
99
|
+
import G from "@web-utils/component/e-charts";
|
|
100
|
+
import { default as Uf } from "@web-utils/component/e-charts";
|
|
129
101
|
import "@web-utils/component/e-charts/style.css";
|
|
130
|
-
import
|
|
131
|
-
import { default as
|
|
102
|
+
import U from "@web-utils/component/editable-progress";
|
|
103
|
+
import { default as Lf } from "@web-utils/component/editable-progress";
|
|
132
104
|
import "@web-utils/component/editable-progress/style.css";
|
|
133
|
-
import
|
|
134
|
-
import { default as
|
|
105
|
+
import H from "@web-utils/component/editable-tree";
|
|
106
|
+
import { default as Jf } from "@web-utils/component/editable-tree";
|
|
135
107
|
import "@web-utils/component/editable-tree/style.css";
|
|
136
|
-
import
|
|
137
|
-
import { default as
|
|
138
|
-
import
|
|
139
|
-
import { default as
|
|
140
|
-
import
|
|
141
|
-
import { default as
|
|
108
|
+
import L from "@web-utils/component/egd-collapse";
|
|
109
|
+
import { default as Of } from "@web-utils/component/egd-collapse";
|
|
110
|
+
import Q from "@web-utils/component/egd-collapse-item";
|
|
111
|
+
import { default as Xf } from "@web-utils/component/egd-collapse-item";
|
|
112
|
+
import J from "@web-utils/component/element-dialog";
|
|
113
|
+
import { default as jf } from "@web-utils/component/element-dialog";
|
|
142
114
|
import "@web-utils/component/element-dialog/style.css";
|
|
143
|
-
import
|
|
144
|
-
import { default as
|
|
115
|
+
import K from "@web-utils/component/empty-view";
|
|
116
|
+
import { default as Yf } from "@web-utils/component/empty-view";
|
|
145
117
|
import "@web-utils/component/empty-view/style.css";
|
|
146
|
-
import
|
|
147
|
-
import { default as
|
|
118
|
+
import O from "@web-utils/component/error-view";
|
|
119
|
+
import { default as _f } from "@web-utils/component/error-view";
|
|
148
120
|
import "@web-utils/component/error-view/style.css";
|
|
149
|
-
import
|
|
150
|
-
import { default as
|
|
151
|
-
import
|
|
152
|
-
import { default as
|
|
153
|
-
import
|
|
154
|
-
import { default as
|
|
155
|
-
import
|
|
156
|
-
import { default as
|
|
121
|
+
import W from "@web-utils/component/flex-column";
|
|
122
|
+
import { default as Vf } from "@web-utils/component/flex-column";
|
|
123
|
+
import X from "@web-utils/component/flex-item";
|
|
124
|
+
import { default as mi } from "@web-utils/component/flex-item";
|
|
125
|
+
import z from "@web-utils/component/flex-row";
|
|
126
|
+
import { default as ti } from "@web-utils/component/flex-row";
|
|
127
|
+
import j from "@web-utils/component/flex-scroller";
|
|
128
|
+
import { default as ai } from "@web-utils/component/flex-scroller";
|
|
157
129
|
import "@web-utils/component/flex-scroller/style.css";
|
|
158
|
-
import
|
|
159
|
-
import { default as
|
|
130
|
+
import q from "@web-utils/component/flow";
|
|
131
|
+
import { default as ni } from "@web-utils/component/flow";
|
|
160
132
|
import "@web-utils/component/flow/style.css";
|
|
161
|
-
import
|
|
162
|
-
import { default as
|
|
133
|
+
import Y from "@web-utils/component/flow-designer";
|
|
134
|
+
import { default as ii } from "@web-utils/component/flow-designer";
|
|
163
135
|
import "@web-utils/component/flow-designer/style.css";
|
|
164
|
-
import
|
|
165
|
-
import { default as
|
|
166
|
-
import
|
|
167
|
-
import { default as
|
|
136
|
+
import Z from "@web-utils/component/flow-node";
|
|
137
|
+
import { default as di } from "@web-utils/component/flow-node";
|
|
138
|
+
import _ from "@web-utils/component/flow-viewer";
|
|
139
|
+
import { default as ci } from "@web-utils/component/flow-viewer";
|
|
168
140
|
import "@web-utils/component/flow-viewer/style.css";
|
|
169
|
-
import
|
|
170
|
-
import
|
|
171
|
-
import
|
|
172
|
-
import
|
|
173
|
-
import { default as
|
|
174
|
-
import
|
|
175
|
-
import { default as
|
|
141
|
+
import $ from "@web-utils/component/form-block";
|
|
142
|
+
import { default as Fi } from "@web-utils/component/form-block";
|
|
143
|
+
import "@web-utils/component/form-block/style.css";
|
|
144
|
+
import V from "@web-utils/component/form-button";
|
|
145
|
+
import { default as yi } from "@web-utils/component/form-button";
|
|
146
|
+
import oo from "@web-utils/component/form-cascader";
|
|
147
|
+
import { default as gi } from "@web-utils/component/form-cascader";
|
|
148
|
+
import mo from "@web-utils/component/form-checkbox-group";
|
|
149
|
+
import { default as bi } from "@web-utils/component/form-checkbox-group";
|
|
176
150
|
import "@web-utils/component/form-checkbox-group/style.css";
|
|
177
|
-
import
|
|
178
|
-
import { default as
|
|
179
|
-
import
|
|
180
|
-
import { default as
|
|
181
|
-
import
|
|
182
|
-
import { default as
|
|
183
|
-
import
|
|
184
|
-
import { default as
|
|
185
|
-
import
|
|
186
|
-
import { default as
|
|
187
|
-
import
|
|
188
|
-
import { default as
|
|
151
|
+
import ro from "@web-utils/component/form-date-picker";
|
|
152
|
+
import { default as Pi } from "@web-utils/component/form-date-picker";
|
|
153
|
+
import to from "@web-utils/component/form-holder";
|
|
154
|
+
import { default as wi } from "@web-utils/component/form-holder";
|
|
155
|
+
import eo from "@web-utils/component/form-input";
|
|
156
|
+
import { default as Ei } from "@web-utils/component/form-input";
|
|
157
|
+
import ao from "@web-utils/component/form-input-email";
|
|
158
|
+
import { default as ki } from "@web-utils/component/form-input-email";
|
|
159
|
+
import po from "@web-utils/component/form-input-id-card";
|
|
160
|
+
import { default as Ai } from "@web-utils/component/form-input-id-card";
|
|
161
|
+
import no from "@web-utils/component/form-input-number";
|
|
162
|
+
import { default as vi } from "@web-utils/component/form-input-number";
|
|
189
163
|
import "@web-utils/component/form-input-number/style.css";
|
|
190
|
-
import
|
|
191
|
-
import { default as
|
|
192
|
-
import
|
|
193
|
-
import { default as
|
|
194
|
-
import
|
|
195
|
-
import { default as
|
|
196
|
-
import
|
|
197
|
-
import
|
|
198
|
-
import
|
|
199
|
-
import
|
|
200
|
-
import { default as
|
|
201
|
-
import
|
|
202
|
-
import { default as
|
|
164
|
+
import fo from "@web-utils/component/form-input-phone-number";
|
|
165
|
+
import { default as Mi } from "@web-utils/component/form-input-phone-number";
|
|
166
|
+
import io from "@web-utils/component/form-input-tag";
|
|
167
|
+
import { default as Ui } from "@web-utils/component/form-input-tag";
|
|
168
|
+
import lo from "@web-utils/component/form-input-time";
|
|
169
|
+
import { default as Li } from "@web-utils/component/form-input-time";
|
|
170
|
+
import so from "@web-utils/component/form-item";
|
|
171
|
+
import { default as Ji } from "@web-utils/component/form-item";
|
|
172
|
+
import "@web-utils/component/form-item/style.css";
|
|
173
|
+
import co from "@web-utils/component/form-item-config-provider";
|
|
174
|
+
import { default as Oi } from "@web-utils/component/form-item-config-provider";
|
|
175
|
+
import xo from "@web-utils/component/form-item-group";
|
|
176
|
+
import { default as Xi } from "@web-utils/component/form-item-group";
|
|
177
|
+
import "@web-utils/component/form-item-group/style.css";
|
|
178
|
+
import Fo from "@web-utils/component/form-radio-group";
|
|
179
|
+
import { default as ji } from "@web-utils/component/form-radio-group";
|
|
203
180
|
import "@web-utils/component/form-radio-group/style.css";
|
|
204
|
-
import
|
|
205
|
-
import { default as
|
|
206
|
-
import
|
|
207
|
-
import { default as
|
|
208
|
-
import
|
|
209
|
-
import { default as
|
|
210
|
-
import
|
|
211
|
-
import { default as
|
|
181
|
+
import uo from "@web-utils/component/form-select";
|
|
182
|
+
import { default as Yi } from "@web-utils/component/form-select";
|
|
183
|
+
import yo from "@web-utils/component/form-switch";
|
|
184
|
+
import { default as _i } from "@web-utils/component/form-switch";
|
|
185
|
+
import Io from "@web-utils/component/form-textarea";
|
|
186
|
+
import { default as Vi } from "@web-utils/component/form-textarea";
|
|
187
|
+
import go from "@web-utils/component/form-view";
|
|
188
|
+
import { default as ml } from "@web-utils/component/form-view";
|
|
212
189
|
import "@web-utils/component/form-view/style.css";
|
|
213
|
-
import
|
|
214
|
-
import { default as
|
|
190
|
+
import Co from "@web-utils/component/fy-array";
|
|
191
|
+
import { default as tl } from "@web-utils/component/fy-array";
|
|
215
192
|
import "@web-utils/component/fy-array/style.css";
|
|
216
|
-
import
|
|
217
|
-
import { default as
|
|
193
|
+
import bo from "@web-utils/component/fy-article";
|
|
194
|
+
import { default as al } from "@web-utils/component/fy-article";
|
|
218
195
|
import "@web-utils/component/fy-article/style.css";
|
|
219
|
-
import
|
|
220
|
-
import { default as
|
|
221
|
-
import
|
|
222
|
-
import { default as
|
|
196
|
+
import To from "@web-utils/component/fy-cascader";
|
|
197
|
+
import { default as nl } from "@web-utils/component/fy-cascader";
|
|
198
|
+
import Po from "@web-utils/component/fy-checkbox";
|
|
199
|
+
import { default as il } from "@web-utils/component/fy-checkbox";
|
|
223
200
|
import "@web-utils/component/fy-checkbox/style.css";
|
|
224
|
-
import
|
|
225
|
-
import { default as
|
|
226
|
-
import
|
|
227
|
-
import { default as
|
|
201
|
+
import Do from "@web-utils/component/fy-code";
|
|
202
|
+
import { default as dl } from "@web-utils/component/fy-code";
|
|
203
|
+
import wo from "@web-utils/component/fy-curd";
|
|
204
|
+
import { default as cl } from "@web-utils/component/fy-curd";
|
|
228
205
|
import "@web-utils/component/fy-curd/style.css";
|
|
229
|
-
import
|
|
230
|
-
import { default as
|
|
206
|
+
import So from "@web-utils/component/fy-date";
|
|
207
|
+
import { default as Fl } from "@web-utils/component/fy-date";
|
|
231
208
|
import "@web-utils/component/fy-date/style.css";
|
|
232
|
-
import
|
|
233
|
-
import { default as
|
|
209
|
+
import Eo from "@web-utils/component/fy-draggable";
|
|
210
|
+
import { default as yl } from "@web-utils/component/fy-draggable";
|
|
234
211
|
import "@web-utils/component/fy-draggable/style.css";
|
|
235
|
-
import
|
|
236
|
-
import { default as
|
|
212
|
+
import ho from "@web-utils/component/fy-dynamic";
|
|
213
|
+
import { default as gl } from "@web-utils/component/fy-dynamic";
|
|
237
214
|
import "@web-utils/component/fy-dynamic/style.css";
|
|
238
|
-
import
|
|
239
|
-
import { default as
|
|
215
|
+
import ko from "@web-utils/component/fy-empty";
|
|
216
|
+
import { default as bl } from "@web-utils/component/fy-empty";
|
|
240
217
|
import "@web-utils/component/fy-empty/style.css";
|
|
241
|
-
import
|
|
242
|
-
import { default as
|
|
218
|
+
import No from "@web-utils/component/fy-form";
|
|
219
|
+
import { default as Pl } from "@web-utils/component/fy-form";
|
|
243
220
|
import "@web-utils/component/fy-form/style.css";
|
|
244
|
-
import
|
|
245
|
-
import { default as
|
|
221
|
+
import Ao from "@web-utils/component/fy-form-design";
|
|
222
|
+
import { default as wl } from "@web-utils/component/fy-form-design";
|
|
246
223
|
import "@web-utils/component/fy-form-design/style.css";
|
|
247
|
-
import
|
|
248
|
-
import { default as
|
|
249
|
-
import
|
|
250
|
-
import { default as
|
|
251
|
-
import
|
|
252
|
-
import { default as
|
|
224
|
+
import Ro from "@web-utils/component/fy-input";
|
|
225
|
+
import { default as El } from "@web-utils/component/fy-input";
|
|
226
|
+
import vo from "@web-utils/component/fy-input-color";
|
|
227
|
+
import { default as kl } from "@web-utils/component/fy-input-color";
|
|
228
|
+
import Bo from "@web-utils/component/fy-input-icon";
|
|
229
|
+
import { default as Al } from "@web-utils/component/fy-input-icon";
|
|
253
230
|
import "@web-utils/component/fy-input-icon/style.css";
|
|
254
|
-
import
|
|
255
|
-
import { default as
|
|
231
|
+
import Mo from "@web-utils/component/fy-input-map";
|
|
232
|
+
import { default as vl } from "@web-utils/component/fy-input-map";
|
|
256
233
|
import "@web-utils/component/fy-input-map/style.css";
|
|
257
|
-
import
|
|
258
|
-
import { default as
|
|
259
|
-
import
|
|
260
|
-
import { default as
|
|
234
|
+
import Go from "@web-utils/component/fy-input-number";
|
|
235
|
+
import { default as Ml } from "@web-utils/component/fy-input-number";
|
|
236
|
+
import Uo from "@web-utils/component/fy-input-table";
|
|
237
|
+
import { default as Ul } from "@web-utils/component/fy-input-table";
|
|
261
238
|
import "@web-utils/component/fy-input-table/style.css";
|
|
262
|
-
import
|
|
263
|
-
import { default as
|
|
239
|
+
import Ho from "@web-utils/component/fy-input-tree";
|
|
240
|
+
import { default as Ll } from "@web-utils/component/fy-input-tree";
|
|
264
241
|
import "@web-utils/component/fy-input-tree/style.css";
|
|
265
|
-
import
|
|
266
|
-
import { default as
|
|
267
|
-
import
|
|
268
|
-
import { default as
|
|
242
|
+
import Lo from "@web-utils/component/fy-progress";
|
|
243
|
+
import { default as Jl } from "@web-utils/component/fy-progress";
|
|
244
|
+
import Qo from "@web-utils/component/fy-radio";
|
|
245
|
+
import { default as Ol } from "@web-utils/component/fy-radio";
|
|
269
246
|
import "@web-utils/component/fy-radio/style.css";
|
|
270
|
-
import
|
|
271
|
-
import { default as
|
|
247
|
+
import Jo from "@web-utils/component/fy-rate";
|
|
248
|
+
import { default as Xl } from "@web-utils/component/fy-rate";
|
|
272
249
|
import "@web-utils/component/fy-rate/style.css";
|
|
273
|
-
import
|
|
274
|
-
import { default as
|
|
250
|
+
import Ko from "@web-utils/component/fy-select";
|
|
251
|
+
import { default as jl } from "@web-utils/component/fy-select";
|
|
275
252
|
import "@web-utils/component/fy-select/style.css";
|
|
276
|
-
import
|
|
277
|
-
import { default as
|
|
278
|
-
import
|
|
279
|
-
import { default as
|
|
280
|
-
import
|
|
281
|
-
import { default as
|
|
282
|
-
import
|
|
283
|
-
import { default as
|
|
284
|
-
import
|
|
285
|
-
import { default as
|
|
253
|
+
import Oo from "@web-utils/component/fy-slider";
|
|
254
|
+
import { default as Yl } from "@web-utils/component/fy-slider";
|
|
255
|
+
import Wo from "@web-utils/component/fy-switch";
|
|
256
|
+
import { default as _l } from "@web-utils/component/fy-switch";
|
|
257
|
+
import Xo from "@web-utils/component/fy-tabs";
|
|
258
|
+
import { default as Vl } from "@web-utils/component/fy-tabs";
|
|
259
|
+
import zo from "@web-utils/component/fy-time";
|
|
260
|
+
import { default as md } from "@web-utils/component/fy-time";
|
|
261
|
+
import jo from "@web-utils/component/fy-title";
|
|
262
|
+
import { default as td } from "@web-utils/component/fy-title";
|
|
286
263
|
import "@web-utils/component/fy-title/style.css";
|
|
287
|
-
import
|
|
288
|
-
import { default as
|
|
264
|
+
import qo from "@web-utils/component/fy-tree";
|
|
265
|
+
import { default as ad } from "@web-utils/component/fy-tree";
|
|
289
266
|
import "@web-utils/component/fy-tree/style.css";
|
|
290
|
-
import
|
|
291
|
-
import { default as
|
|
267
|
+
import Yo from "@web-utils/component/fy-u-editor";
|
|
268
|
+
import { default as nd } from "@web-utils/component/fy-u-editor";
|
|
292
269
|
import "@web-utils/component/fy-u-editor/style.css";
|
|
293
|
-
import
|
|
294
|
-
import { default as
|
|
270
|
+
import Zo from "@web-utils/component/fy-upload";
|
|
271
|
+
import { default as id } from "@web-utils/component/fy-upload";
|
|
295
272
|
import "@web-utils/component/fy-upload/style.css";
|
|
296
|
-
import
|
|
297
|
-
import { default as
|
|
273
|
+
import _o from "@web-utils/component/guide-steps";
|
|
274
|
+
import { default as dd } from "@web-utils/component/guide-steps";
|
|
298
275
|
import "@web-utils/component/guide-steps/style.css";
|
|
299
|
-
import
|
|
300
|
-
import { default as
|
|
276
|
+
import $o from "@web-utils/component/highlight-j-s";
|
|
277
|
+
import { default as cd } from "@web-utils/component/highlight-j-s";
|
|
301
278
|
import "@web-utils/component/highlight-j-s/style.css";
|
|
302
|
-
import
|
|
303
|
-
import { default as
|
|
279
|
+
import Vo from "@web-utils/component/icon-card";
|
|
280
|
+
import { default as Fd } from "@web-utils/component/icon-card";
|
|
304
281
|
import "@web-utils/component/icon-card/style.css";
|
|
305
|
-
import
|
|
306
|
-
import { default as
|
|
282
|
+
import om from "@web-utils/component/icon-temp";
|
|
283
|
+
import { default as yd } from "@web-utils/component/icon-temp";
|
|
307
284
|
import "@web-utils/component/icon-temp/style.css";
|
|
308
|
-
import
|
|
309
|
-
import { default as
|
|
285
|
+
import mm from "@web-utils/component/iframe-window";
|
|
286
|
+
import { default as gd } from "@web-utils/component/iframe-window";
|
|
310
287
|
import "@web-utils/component/iframe-window/style.css";
|
|
311
|
-
import
|
|
312
|
-
import { default as
|
|
288
|
+
import rm from "@web-utils/component/image-cropper";
|
|
289
|
+
import { default as bd } from "@web-utils/component/image-cropper";
|
|
313
290
|
import "@web-utils/component/image-cropper/style.css";
|
|
314
|
-
import
|
|
315
|
-
import { default as
|
|
291
|
+
import tm from "@web-utils/component/image-preview";
|
|
292
|
+
import { default as Pd } from "@web-utils/component/image-preview";
|
|
316
293
|
import "@web-utils/component/image-preview/style.css";
|
|
317
|
-
import
|
|
318
|
-
import { default as
|
|
294
|
+
import em from "@web-utils/component/image-viewer";
|
|
295
|
+
import { default as wd } from "@web-utils/component/image-viewer";
|
|
319
296
|
import "@web-utils/component/image-viewer/style.css";
|
|
320
|
-
import
|
|
321
|
-
import { default as
|
|
297
|
+
import am from "@web-utils/component/input-number";
|
|
298
|
+
import { default as Ed } from "@web-utils/component/input-number";
|
|
322
299
|
import "@web-utils/component/input-number/style.css";
|
|
323
|
-
import
|
|
324
|
-
import { default as
|
|
300
|
+
import pm from "@web-utils/component/input-number-range";
|
|
301
|
+
import { default as kd } from "@web-utils/component/input-number-range";
|
|
325
302
|
import "@web-utils/component/input-number-range/style.css";
|
|
326
|
-
import
|
|
327
|
-
import { default as
|
|
328
|
-
import
|
|
329
|
-
import { default as
|
|
303
|
+
import nm from "@web-utils/component/j-s-x-component";
|
|
304
|
+
import { default as Ad } from "@web-utils/component/j-s-x-component";
|
|
305
|
+
import fm from "@web-utils/component/keep-view-alive";
|
|
306
|
+
import { default as vd } from "@web-utils/component/keep-view-alive";
|
|
307
|
+
import im from "@web-utils/component/keyboard";
|
|
308
|
+
import { default as Md } from "@web-utils/component/keyboard";
|
|
330
309
|
import "@web-utils/component/keyboard/style.css";
|
|
331
|
-
import
|
|
332
|
-
import { default as
|
|
333
|
-
import
|
|
334
|
-
import { default as
|
|
310
|
+
import lm from "@web-utils/component/license";
|
|
311
|
+
import { default as Ud } from "@web-utils/component/license";
|
|
312
|
+
import dm from "@web-utils/component/loading-view";
|
|
313
|
+
import { default as Ld } from "@web-utils/component/loading-view";
|
|
335
314
|
import "@web-utils/component/loading-view/style.css";
|
|
336
|
-
import
|
|
337
|
-
import { default as
|
|
315
|
+
import sm from "@web-utils/component/login";
|
|
316
|
+
import { default as Jd } from "@web-utils/component/login";
|
|
338
317
|
import "@web-utils/component/login/style.css";
|
|
339
|
-
import
|
|
340
|
-
import { default as
|
|
341
|
-
import
|
|
342
|
-
import { default as
|
|
318
|
+
import cm from "@web-utils/component/monaco-editor";
|
|
319
|
+
import { default as Od } from "@web-utils/component/monaco-editor";
|
|
320
|
+
import xm from "@web-utils/component/name-avatar";
|
|
321
|
+
import { default as Xd } from "@web-utils/component/name-avatar";
|
|
343
322
|
import "@web-utils/component/name-avatar/style.css";
|
|
344
|
-
import
|
|
345
|
-
import { default as
|
|
323
|
+
import Fm from "@web-utils/component/nav-bar";
|
|
324
|
+
import { default as jd } from "@web-utils/component/nav-bar";
|
|
346
325
|
import "@web-utils/component/nav-bar/style.css";
|
|
347
|
-
import
|
|
348
|
-
import { default as
|
|
326
|
+
import um from "@web-utils/component/notice";
|
|
327
|
+
import { default as Yd } from "@web-utils/component/notice";
|
|
349
328
|
import "@web-utils/component/notice/style.css";
|
|
350
|
-
import
|
|
351
|
-
import { default as
|
|
329
|
+
import ym from "@web-utils/component/not-implement";
|
|
330
|
+
import { default as _d } from "@web-utils/component/not-implement";
|
|
352
331
|
import "@web-utils/component/not-implement/style.css";
|
|
353
|
-
import
|
|
354
|
-
import { default as
|
|
332
|
+
import Im from "@web-utils/component/page";
|
|
333
|
+
import { default as Vd } from "@web-utils/component/page";
|
|
355
334
|
import "@web-utils/component/page/style.css";
|
|
356
|
-
import
|
|
357
|
-
import { default as
|
|
335
|
+
import gm from "@web-utils/component/pageable-table";
|
|
336
|
+
import { default as ms } from "@web-utils/component/pageable-table";
|
|
358
337
|
import "@web-utils/component/pageable-table/style.css";
|
|
359
|
-
import
|
|
360
|
-
import { default as
|
|
338
|
+
import Cm from "@web-utils/component/pageable-view";
|
|
339
|
+
import { default as ts } from "@web-utils/component/pageable-view";
|
|
361
340
|
import "@web-utils/component/pageable-view/style.css";
|
|
362
|
-
import
|
|
363
|
-
import { default as
|
|
341
|
+
import bm from "@web-utils/component/page-header";
|
|
342
|
+
import { default as as } from "@web-utils/component/page-header";
|
|
364
343
|
import "@web-utils/component/page-header/style.css";
|
|
365
|
-
import
|
|
366
|
-
import { default as
|
|
344
|
+
import Tm from "@web-utils/component/page-index";
|
|
345
|
+
import { default as ns } from "@web-utils/component/page-index";
|
|
367
346
|
import "@web-utils/component/page-index/style.css";
|
|
368
|
-
import
|
|
369
|
-
import { default as
|
|
370
|
-
import
|
|
371
|
-
import { default as
|
|
347
|
+
import Pm from "@web-utils/component/page-index-top";
|
|
348
|
+
import { default as is } from "@web-utils/component/page-index-top";
|
|
349
|
+
import Dm from "@web-utils/component/page-skeleton";
|
|
350
|
+
import { default as ds } from "@web-utils/component/page-skeleton";
|
|
372
351
|
import "@web-utils/component/page-skeleton/style.css";
|
|
373
|
-
import
|
|
374
|
-
import { default as
|
|
352
|
+
import wm from "@web-utils/component/page-skeleton-new";
|
|
353
|
+
import { default as cs } from "@web-utils/component/page-skeleton-new";
|
|
375
354
|
import "@web-utils/component/page-skeleton-new/style.css";
|
|
376
|
-
import
|
|
377
|
-
import { default as
|
|
378
|
-
import
|
|
379
|
-
import { default as
|
|
355
|
+
import Sm from "@web-utils/component/photo-swipe";
|
|
356
|
+
import { default as Fs } from "@web-utils/component/photo-swipe";
|
|
357
|
+
import Em from "@web-utils/component/present-view";
|
|
358
|
+
import { default as ys } from "@web-utils/component/present-view";
|
|
380
359
|
import "@web-utils/component/present-view/style.css";
|
|
381
|
-
import
|
|
382
|
-
import { default as
|
|
360
|
+
import hm from "@web-utils/component/queue";
|
|
361
|
+
import { default as gs } from "@web-utils/component/queue";
|
|
383
362
|
import "@web-utils/component/queue/style.css";
|
|
384
|
-
import
|
|
385
|
-
import { default as
|
|
363
|
+
import km from "@web-utils/component/record-video";
|
|
364
|
+
import { default as bs } from "@web-utils/component/record-video";
|
|
386
365
|
import "@web-utils/component/record-video/style.css";
|
|
387
|
-
import
|
|
388
|
-
import { default as
|
|
366
|
+
import Nm from "@web-utils/component/resize-observer";
|
|
367
|
+
import { default as Ps } from "@web-utils/component/resize-observer";
|
|
389
368
|
import "@web-utils/component/resize-observer/style.css";
|
|
390
|
-
import
|
|
391
|
-
import { default as
|
|
369
|
+
import Am from "@web-utils/component/search";
|
|
370
|
+
import { default as ws } from "@web-utils/component/search";
|
|
392
371
|
import "@web-utils/component/search/style.css";
|
|
393
|
-
import
|
|
394
|
-
import { default as
|
|
372
|
+
import Rm from "@web-utils/component/search-popover";
|
|
373
|
+
import { default as Es } from "@web-utils/component/search-popover";
|
|
395
374
|
import "@web-utils/component/search-popover/style.css";
|
|
396
|
-
import
|
|
397
|
-
import { default as
|
|
375
|
+
import vm from "@web-utils/component/sign";
|
|
376
|
+
import { default as ks } from "@web-utils/component/sign";
|
|
398
377
|
import "@web-utils/component/sign/style.css";
|
|
399
|
-
import
|
|
400
|
-
import { default as
|
|
378
|
+
import Bm from "@web-utils/component/sign-panel";
|
|
379
|
+
import { default as As } from "@web-utils/component/sign-panel";
|
|
401
380
|
import "@web-utils/component/sign-panel/style.css";
|
|
402
|
-
import
|
|
403
|
-
import { default as
|
|
381
|
+
import Mm from "@web-utils/component/skeleton";
|
|
382
|
+
import { default as vs } from "@web-utils/component/skeleton";
|
|
404
383
|
import "@web-utils/component/skeleton/style.css";
|
|
405
|
-
import
|
|
406
|
-
import { default as
|
|
384
|
+
import Gm from "@web-utils/component/split-pane";
|
|
385
|
+
import { default as Ms } from "@web-utils/component/split-pane";
|
|
407
386
|
import "@web-utils/component/split-pane/style.css";
|
|
408
|
-
import
|
|
409
|
-
import { default as
|
|
387
|
+
import Um from "@web-utils/component/stateful";
|
|
388
|
+
import { default as Us } from "@web-utils/component/stateful";
|
|
410
389
|
import "@web-utils/component/stateful/style.css";
|
|
411
|
-
import
|
|
412
|
-
import { default as
|
|
390
|
+
import Hm from "@web-utils/component/static-pageable-table";
|
|
391
|
+
import { default as Ls } from "@web-utils/component/static-pageable-table";
|
|
413
392
|
import "@web-utils/component/static-pageable-table/style.css";
|
|
414
|
-
import
|
|
415
|
-
import { default as
|
|
393
|
+
import Lm from "@web-utils/component/swiper";
|
|
394
|
+
import { default as Js } from "@web-utils/component/swiper";
|
|
416
395
|
import "@web-utils/component/swiper/style.css";
|
|
417
|
-
import
|
|
418
|
-
import { default as
|
|
396
|
+
import Qm from "@web-utils/component/tab";
|
|
397
|
+
import { default as Os } from "@web-utils/component/tab";
|
|
419
398
|
import "@web-utils/component/tab/style.css";
|
|
420
|
-
import
|
|
421
|
-
import { default as
|
|
422
|
-
import
|
|
423
|
-
import { default as
|
|
424
|
-
import
|
|
425
|
-
import { default as
|
|
399
|
+
import Jm from "@web-utils/component/tab-item";
|
|
400
|
+
import { default as Xs } from "@web-utils/component/tab-item";
|
|
401
|
+
import Km from "@web-utils/component/table-column";
|
|
402
|
+
import { default as js } from "@web-utils/component/table-column";
|
|
403
|
+
import Om from "@web-utils/component/table-view";
|
|
404
|
+
import { default as Ys } from "@web-utils/component/table-view";
|
|
426
405
|
import "@web-utils/component/table-view/style.css";
|
|
427
|
-
import
|
|
428
|
-
import { default as
|
|
406
|
+
import Wm from "@web-utils/component/tag-render";
|
|
407
|
+
import { default as _s } from "@web-utils/component/tag-render";
|
|
429
408
|
import "@web-utils/component/tag-render/style.css";
|
|
430
|
-
import
|
|
431
|
-
import { default as
|
|
409
|
+
import Xm from "@web-utils/component/text-ellipsis";
|
|
410
|
+
import { default as Vs } from "@web-utils/component/text-ellipsis";
|
|
432
411
|
import "@web-utils/component/text-ellipsis/style.css";
|
|
433
|
-
import
|
|
434
|
-
import { default as
|
|
412
|
+
import zm from "@web-utils/component/tinymce-editor";
|
|
413
|
+
import { default as mc } from "@web-utils/component/tinymce-editor";
|
|
435
414
|
import "@web-utils/component/tinymce-editor/style.css";
|
|
436
|
-
import
|
|
437
|
-
import { default as
|
|
415
|
+
import jm from "@web-utils/component/toolbar";
|
|
416
|
+
import { default as tc } from "@web-utils/component/toolbar";
|
|
417
|
+
import "@web-utils/component/toolbar/style.css";
|
|
418
|
+
import qm from "@web-utils/component/toolbar-button";
|
|
419
|
+
import { default as ac } from "@web-utils/component/toolbar-button";
|
|
438
420
|
import "@web-utils/component/toolbar-button/style.css";
|
|
439
|
-
import
|
|
440
|
-
import { default as
|
|
421
|
+
import Ym from "@web-utils/component/verify";
|
|
422
|
+
import { default as nc } from "@web-utils/component/verify";
|
|
441
423
|
import "@web-utils/component/verify/style.css";
|
|
442
|
-
import
|
|
443
|
-
import { default as
|
|
424
|
+
import Zm from "@web-utils/component/vue-cron";
|
|
425
|
+
import { default as ic } from "@web-utils/component/vue-cron";
|
|
444
426
|
import "@web-utils/component/vue-cron/style.css";
|
|
445
|
-
import
|
|
446
|
-
import { default as
|
|
447
|
-
import
|
|
448
|
-
import { default as
|
|
427
|
+
import _m from "@web-utils/component/vue-qr-code";
|
|
428
|
+
import { default as dc } from "@web-utils/component/vue-qr-code";
|
|
429
|
+
import $m from "@web-utils/component/vue-quill-editor";
|
|
430
|
+
import { default as cc } from "@web-utils/component/vue-quill-editor";
|
|
449
431
|
import "@web-utils/component/vue-quill-editor/style.css";
|
|
450
|
-
import
|
|
451
|
-
import { default as
|
|
432
|
+
import Vm from "@web-utils/component/vue-tags-input";
|
|
433
|
+
import { default as Fc } from "@web-utils/component/vue-tags-input";
|
|
452
434
|
import "@web-utils/component/vue-tags-input/style.css";
|
|
453
|
-
import
|
|
454
|
-
import
|
|
455
|
-
import
|
|
435
|
+
import or from "@web-utils/component/vue-tree-select";
|
|
436
|
+
import { default as yc } from "@web-utils/component/vue-tree-select";
|
|
437
|
+
import "@web-utils/component/vue-tree-select/style.css";
|
|
438
|
+
import mr from "@web-utils/component/vue-video-player";
|
|
439
|
+
import { default as gc } from "@web-utils/component/vue-video-player";
|
|
456
440
|
import "@web-utils/component/vue-video-player/style.css";
|
|
457
|
-
import
|
|
458
|
-
import { default as
|
|
441
|
+
import rr from "@web-utils/component/watermark";
|
|
442
|
+
import { default as bc } from "@web-utils/component/watermark";
|
|
459
443
|
import "@web-utils/component/watermark/style.css";
|
|
460
|
-
import
|
|
461
|
-
import { default as
|
|
444
|
+
import tr from "@web-utils/component/x-input-tag";
|
|
445
|
+
import { default as Pc } from "@web-utils/component/x-input-tag";
|
|
462
446
|
import "@web-utils/component/x-input-tag/style.css";
|
|
463
|
-
|
|
464
|
-
name
|
|
465
|
-
inject: {
|
|
466
|
-
elForm: {
|
|
467
|
-
default: {}
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
provide() {
|
|
471
|
-
return {
|
|
472
|
-
elForm: this.formConfig
|
|
473
|
-
};
|
|
474
|
-
},
|
|
475
|
-
props: {
|
|
476
|
-
blockTitle: String,
|
|
477
|
-
active: Boolean,
|
|
478
|
-
enabled: Boolean,
|
|
479
|
-
disabled: Boolean,
|
|
480
|
-
wrapRow: {
|
|
481
|
-
type: Boolean,
|
|
482
|
-
default: !0
|
|
483
|
-
},
|
|
484
|
-
gutter: {
|
|
485
|
-
type: Number,
|
|
486
|
-
default: 20
|
|
487
|
-
},
|
|
488
|
-
collapse: Boolean
|
|
489
|
-
},
|
|
490
|
-
data() {
|
|
491
|
-
const e = {};
|
|
492
|
-
return W.forEach((t) => {
|
|
493
|
-
e[t] = null;
|
|
494
|
-
}), {
|
|
495
|
-
expand: !0,
|
|
496
|
-
formConfig: e
|
|
497
|
-
};
|
|
498
|
-
},
|
|
499
|
-
computed: {
|
|
500
|
-
formCfg() {
|
|
501
|
-
const e = {
|
|
502
|
-
enabled: this.enabled,
|
|
503
|
-
forbidden: this.disabled
|
|
504
|
-
};
|
|
505
|
-
return W.forEach((t) => {
|
|
506
|
-
e[t] = this.elForm[t];
|
|
507
|
-
}), e;
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
watch: {
|
|
511
|
-
collapse: {
|
|
512
|
-
immediate: !0,
|
|
513
|
-
handler(e) {
|
|
514
|
-
this.expand = !e;
|
|
515
|
-
}
|
|
516
|
-
},
|
|
517
|
-
formCfg: {
|
|
518
|
-
immediate: !0,
|
|
519
|
-
handler() {
|
|
520
|
-
this.formConfig.disabled = this.available(), W.forEach((e) => {
|
|
521
|
-
var t;
|
|
522
|
-
e !== "disabled" && (nn.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
mounted() {
|
|
528
|
-
this.dispatch("FormView", "FormView.addTab", [this]);
|
|
529
|
-
},
|
|
530
|
-
beforeDestroy() {
|
|
531
|
-
this.dispatch("FormView", "FormView.removeTab", [this]);
|
|
532
|
-
},
|
|
533
|
-
methods: {
|
|
534
|
-
available() {
|
|
535
|
-
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
536
|
-
},
|
|
537
|
-
dispatch(e, t, o) {
|
|
538
|
-
let r = this.$parent || this.$root, n = r.$options.name;
|
|
539
|
-
for (; r && (!n || n !== e); )
|
|
540
|
-
r = r.$parent, r && (n = r.$options.name);
|
|
541
|
-
r && r.$emit.apply(r, [t].concat(o));
|
|
542
|
-
},
|
|
543
|
-
renderDefault() {
|
|
544
|
-
const {
|
|
545
|
-
wrapRow: e,
|
|
546
|
-
gutter: t,
|
|
547
|
-
formConfig: o,
|
|
548
|
-
$scopedSlots: r
|
|
549
|
-
} = this;
|
|
550
|
-
return e ? (
|
|
551
|
-
// eslint-disable-next-line no-undef
|
|
552
|
-
s("ElRow", {
|
|
553
|
-
attrs: {
|
|
554
|
-
gutter: t
|
|
555
|
-
}
|
|
556
|
-
}, [r.default({
|
|
557
|
-
disabled: o.disabled
|
|
558
|
-
})])
|
|
559
|
-
) : r.default({
|
|
560
|
-
disabled: o.disabled
|
|
561
|
-
});
|
|
562
|
-
},
|
|
563
|
-
toggle() {
|
|
564
|
-
this.expand = !this.expand;
|
|
565
|
-
},
|
|
566
|
-
open() {
|
|
567
|
-
this.expand = !0;
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
render() {
|
|
571
|
-
const {
|
|
572
|
-
renderDefault: e,
|
|
573
|
-
blockTitle: t,
|
|
574
|
-
active: o,
|
|
575
|
-
expand: r,
|
|
576
|
-
toggle: n
|
|
577
|
-
} = this;
|
|
578
|
-
return s("div", {
|
|
579
|
-
class: ["form-block", {
|
|
580
|
-
"default-active": o
|
|
581
|
-
}]
|
|
582
|
-
}, [s("div", {
|
|
583
|
-
class: "form-block-title",
|
|
584
|
-
on: {
|
|
585
|
-
click: n
|
|
586
|
-
}
|
|
587
|
-
}, [s("span", {
|
|
588
|
-
class: "flex-item"
|
|
589
|
-
}, [t]), " ", s("i", {
|
|
590
|
-
class: r ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
591
|
-
})]), s("ElCollapseTransition", [s("div", {
|
|
592
|
-
directives: [{
|
|
593
|
-
name: "show",
|
|
594
|
-
value: r
|
|
595
|
-
}]
|
|
596
|
-
}, [e()])])]);
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
const j = (e, t, o = !0) => {
|
|
600
|
-
if (Xr(e)) {
|
|
601
|
-
let r = t;
|
|
602
|
-
Yr(t) && (r = r.split(","));
|
|
603
|
-
const n = {};
|
|
604
|
-
return r.forEach((i) => {
|
|
605
|
-
A(e, i) && (o ? n[i] = e[i] : r.includes(i) || (n[i] = e[i]));
|
|
606
|
-
}), n;
|
|
607
|
-
}
|
|
608
|
-
return e;
|
|
609
|
-
}, sn = ["span"], Cr = [...Object.keys(vt.props || vt.default.props)], an = Cr.filter((e) => !sn.includes(e)), ln = ["label", "prop", "rules", "labelWidth", "required"], wr = [...Object.keys(yt.props || yt.default.props)], cn = wr.filter((e) => !ln.includes(e)), dn = [
|
|
610
|
-
"wrapCol",
|
|
611
|
-
"wrapFormItem",
|
|
612
|
-
"unwrap",
|
|
613
|
-
"prefixConfig",
|
|
614
|
-
"block",
|
|
615
|
-
"placeholder",
|
|
616
|
-
"prefixPick",
|
|
617
|
-
"half",
|
|
618
|
-
...Cr,
|
|
619
|
-
...wr
|
|
620
|
-
], pn = {
|
|
621
|
-
inject: {
|
|
622
|
-
elForm: {
|
|
623
|
-
default: {}
|
|
624
|
-
},
|
|
625
|
-
formItemGroup: {
|
|
626
|
-
default: {}
|
|
627
|
-
}
|
|
628
|
-
},
|
|
629
|
-
props: {
|
|
630
|
-
disabled: Boolean,
|
|
631
|
-
wrapCol: {
|
|
632
|
-
type: Boolean,
|
|
633
|
-
default: !0
|
|
634
|
-
},
|
|
635
|
-
wrapFormItem: {
|
|
636
|
-
type: Boolean,
|
|
637
|
-
default: !0
|
|
638
|
-
},
|
|
639
|
-
unwrap: Boolean,
|
|
640
|
-
half: Boolean,
|
|
641
|
-
prefixConfig: Boolean,
|
|
642
|
-
block: Boolean,
|
|
643
|
-
placeholder: {
|
|
644
|
-
type: [Boolean, String],
|
|
645
|
-
default: !0
|
|
646
|
-
},
|
|
647
|
-
formItemClass: String,
|
|
648
|
-
prefixPick: Boolean,
|
|
649
|
-
// el-form-item
|
|
650
|
-
label: String,
|
|
651
|
-
labelWidth: String,
|
|
652
|
-
prop: String,
|
|
653
|
-
required: Boolean,
|
|
654
|
-
rules: [Object, Array],
|
|
655
|
-
error: String,
|
|
656
|
-
validateStatus: String,
|
|
657
|
-
for: String,
|
|
658
|
-
inlineMessage: {
|
|
659
|
-
type: [String, Boolean],
|
|
660
|
-
default: ""
|
|
661
|
-
},
|
|
662
|
-
showMessage: {
|
|
663
|
-
type: Boolean,
|
|
664
|
-
default: !0
|
|
665
|
-
},
|
|
666
|
-
size: String,
|
|
667
|
-
// el-col
|
|
668
|
-
span: {
|
|
669
|
-
type: Number,
|
|
670
|
-
default: 12
|
|
671
|
-
},
|
|
672
|
-
tag: {
|
|
673
|
-
type: String,
|
|
674
|
-
default: "div"
|
|
675
|
-
},
|
|
676
|
-
offset: Number,
|
|
677
|
-
pull: Number,
|
|
678
|
-
push: Number,
|
|
679
|
-
xs: [Number, Object],
|
|
680
|
-
sm: [Number, Object],
|
|
681
|
-
md: [Number, Object],
|
|
682
|
-
lg: [Number, Object],
|
|
683
|
-
xl: [Number, Object]
|
|
684
|
-
},
|
|
685
|
-
computed: {
|
|
686
|
-
prefix() {
|
|
687
|
-
return this.prefixConfig ? "请配置" : this.prefixPick ? "请选择" : "请输入";
|
|
688
|
-
},
|
|
689
|
-
message() {
|
|
690
|
-
var e;
|
|
691
|
-
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
|
|
692
|
-
},
|
|
693
|
-
computeRules() {
|
|
694
|
-
const e = [...this.rules || []];
|
|
695
|
-
if (this.required) {
|
|
696
|
-
const t = e.find((o) => o.required);
|
|
697
|
-
t ? t.ref ? t.label = t.label || this.label : t.message = e.message || this.message : e.unshift(this.getRequireRule());
|
|
698
|
-
}
|
|
699
|
-
return e.concat(this.getRules());
|
|
700
|
-
},
|
|
701
|
-
computeSpan() {
|
|
702
|
-
return this.block ? 24 : this.span;
|
|
703
|
-
},
|
|
704
|
-
formItemProps() {
|
|
705
|
-
return j(g(g({}, this.$props), this.$attrs), dn);
|
|
706
|
-
},
|
|
707
|
-
elFormItemProps() {
|
|
708
|
-
return j(g(g({}, this.$props), this.$attrs), cn);
|
|
709
|
-
},
|
|
710
|
-
elColProps() {
|
|
711
|
-
return j(g(g({}, this.$props), this.$attrs), an);
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
watch: {
|
|
715
|
-
computeRules() {
|
|
716
|
-
var e, t;
|
|
717
|
-
(t = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || t.call(e, this.prop);
|
|
718
|
-
}
|
|
719
|
-
},
|
|
720
|
-
methods: {
|
|
721
|
-
getRules() {
|
|
722
|
-
return [];
|
|
723
|
-
},
|
|
724
|
-
getRequireRule() {
|
|
725
|
-
return {
|
|
726
|
-
required: !0,
|
|
727
|
-
message: this.message
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const pr = {
|
|
733
|
-
name: "FormItem",
|
|
734
|
-
mixins: [pn],
|
|
735
|
-
inject: {
|
|
736
|
-
formHolder: {
|
|
737
|
-
default: ""
|
|
738
|
-
},
|
|
739
|
-
formItemConfig: {
|
|
740
|
-
default: null
|
|
741
|
-
}
|
|
742
|
-
},
|
|
743
|
-
computed: {
|
|
744
|
-
gutter() {
|
|
745
|
-
var t;
|
|
746
|
-
let e = this.$parent;
|
|
747
|
-
for (; e && e.$options.componentName !== "ElRow"; )
|
|
748
|
-
e = e.$parent;
|
|
749
|
-
return (t = e == null ? void 0 : e.gutter) != null ? t : 0;
|
|
750
|
-
}
|
|
751
|
-
},
|
|
752
|
-
methods: {
|
|
753
|
-
renderFormItem() {
|
|
754
|
-
var se, ie, ae;
|
|
755
|
-
const {
|
|
756
|
-
label: e,
|
|
757
|
-
labelWidth: t,
|
|
758
|
-
prop: o,
|
|
759
|
-
rules: r,
|
|
760
|
-
$scopedSlots: n,
|
|
761
|
-
elFormItemProps: i,
|
|
762
|
-
elForm: a,
|
|
763
|
-
formHolder: p,
|
|
764
|
-
formItemClass: l,
|
|
765
|
-
required: c,
|
|
766
|
-
block: f,
|
|
767
|
-
half: u,
|
|
768
|
-
wrapCol: h,
|
|
769
|
-
wrapFormItem: E,
|
|
770
|
-
disabled: _,
|
|
771
|
-
formItemConfig: O,
|
|
772
|
-
getRequireRule: z
|
|
773
|
-
} = this;
|
|
774
|
-
let S = r, T = c, d = c, m = f, N = h;
|
|
775
|
-
O && (A(O, "block") && (m = O.block), A(O, "wrapCol") && (N = O.wrapCol));
|
|
776
|
-
const Wr = m && u && N ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
777
|
-
return _ || a != null && a.disabled ? (S = [], p && !p.required && !((se = p.requiredFields) != null && se.includes(o)) && (d = !1)) : (p && !p.required && !((ie = p.requiredFields) != null && ie.includes(o)) && (T = !1), T && !(S != null && S.length) && o ? S = [z()] : T || (d = !1, S && (S = S.filter((jr) => !jr.required)))), E ? (
|
|
778
|
-
// eslint-disable-next-line no-undef
|
|
779
|
-
s("ElFormItem", {
|
|
780
|
-
style: {
|
|
781
|
-
width: Wr
|
|
782
|
-
},
|
|
783
|
-
key: `${o}-${T}`,
|
|
784
|
-
class: d ? `form-item required ${l || ""}` : `${l || ""}`,
|
|
785
|
-
scopedSlots: n,
|
|
786
|
-
props: g({}, i),
|
|
787
|
-
attrs: {
|
|
788
|
-
label: e,
|
|
789
|
-
"label-width": t,
|
|
790
|
-
prop: o,
|
|
791
|
-
rules: S
|
|
792
|
-
},
|
|
793
|
-
ref: "formItem"
|
|
794
|
-
})
|
|
795
|
-
) : s("div", [(ae = n.default) == null ? void 0 : ae.call(n)]);
|
|
796
|
-
},
|
|
797
|
-
clearValidate() {
|
|
798
|
-
return H(this, null, function* () {
|
|
799
|
-
var e, t;
|
|
800
|
-
yield this.$nextTick(), (t = (e = this.$refs.formItem).clearValidate) == null || t.call(e);
|
|
801
|
-
});
|
|
802
|
-
},
|
|
803
|
-
validate() {
|
|
804
|
-
return H(this, null, function* () {
|
|
805
|
-
var e, t;
|
|
806
|
-
yield this.$nextTick(), (t = (e = this.$refs.formItem).validate) == null || t.call(e);
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
render() {
|
|
811
|
-
var l, c;
|
|
812
|
-
const {
|
|
813
|
-
computeSpan: e,
|
|
814
|
-
wrapCol: t,
|
|
815
|
-
formItemConfig: o,
|
|
816
|
-
renderFormItem: r,
|
|
817
|
-
elColProps: n,
|
|
818
|
-
$scopedSlots: i,
|
|
819
|
-
unwrap: a
|
|
820
|
-
} = this;
|
|
821
|
-
let p = t;
|
|
822
|
-
return o && A(o, "wrapCol") && (p = o.wrapCol), a ? s("div", [(l = i.default) == null ? void 0 : l.call(i)]) : p ? (
|
|
823
|
-
// eslint-disable-next-line no-undef
|
|
824
|
-
s("ElCol", {
|
|
825
|
-
props: g({}, n),
|
|
826
|
-
attrs: {
|
|
827
|
-
span: e
|
|
828
|
-
}
|
|
829
|
-
}, [r(), (c = i == null ? void 0 : i.below) == null ? void 0 : c.call(i)])
|
|
830
|
-
) : r();
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
|
-
const q = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], un = ["$emit", "validate", "clearValidate"], ur = {
|
|
834
|
-
name: "FormItemGroup",
|
|
835
|
-
inject: {
|
|
836
|
-
elForm: {
|
|
837
|
-
default: {}
|
|
838
|
-
}
|
|
839
|
-
},
|
|
840
|
-
provide() {
|
|
841
|
-
return {
|
|
842
|
-
elForm: this.formConfig,
|
|
843
|
-
formItemGroup: this
|
|
844
|
-
};
|
|
845
|
-
},
|
|
846
|
-
props: {
|
|
847
|
-
blockTitle: {
|
|
848
|
-
type: String
|
|
849
|
-
},
|
|
850
|
-
active: Boolean,
|
|
851
|
-
enabled: Boolean,
|
|
852
|
-
disabled: Boolean,
|
|
853
|
-
wrapRow: {
|
|
854
|
-
type: Boolean,
|
|
855
|
-
default: !0
|
|
856
|
-
},
|
|
857
|
-
gutter: {
|
|
858
|
-
type: Number,
|
|
859
|
-
default: 20
|
|
860
|
-
},
|
|
861
|
-
collapse: Boolean
|
|
862
|
-
},
|
|
863
|
-
data() {
|
|
864
|
-
const e = {};
|
|
865
|
-
return q.forEach((t) => {
|
|
866
|
-
e[t] = null;
|
|
867
|
-
}), {
|
|
868
|
-
expand: !0,
|
|
869
|
-
formConfig: e
|
|
870
|
-
};
|
|
871
|
-
},
|
|
872
|
-
computed: {
|
|
873
|
-
formCfg() {
|
|
874
|
-
const e = {
|
|
875
|
-
enabled: this.enabled,
|
|
876
|
-
forbidden: this.disabled
|
|
877
|
-
};
|
|
878
|
-
return q.forEach((t) => {
|
|
879
|
-
e[t] = this.elForm[t];
|
|
880
|
-
}), e;
|
|
881
|
-
}
|
|
882
|
-
},
|
|
883
|
-
watch: {
|
|
884
|
-
collapse: {
|
|
885
|
-
immediate: !0,
|
|
886
|
-
handler(e) {
|
|
887
|
-
this.expand = !e;
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
|
-
formCfg: {
|
|
891
|
-
immediate: !0,
|
|
892
|
-
handler() {
|
|
893
|
-
this.formConfig.disabled = this.isDisabled(), q.forEach((e) => {
|
|
894
|
-
var t;
|
|
895
|
-
e !== "disabled" && (un.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
mounted() {
|
|
901
|
-
this.dispatch("FormView", "FormView.addGroup", [this]);
|
|
902
|
-
},
|
|
903
|
-
beforeDestroy() {
|
|
904
|
-
this.dispatch("FormView", "FormView.removeGroup", [this]);
|
|
905
|
-
},
|
|
906
|
-
methods: {
|
|
907
|
-
isDisabled() {
|
|
908
|
-
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
909
|
-
},
|
|
910
|
-
dispatch(e, t, o) {
|
|
911
|
-
let r = this.$parent || this.$root, n = r.$options.name;
|
|
912
|
-
for (; r && (!n || n !== e); )
|
|
913
|
-
r = r.$parent, r && (n = r.$options.name);
|
|
914
|
-
r && r.$emit.apply(r, [t].concat(o));
|
|
915
|
-
},
|
|
916
|
-
renderDefault() {
|
|
917
|
-
const {
|
|
918
|
-
wrapRow: e,
|
|
919
|
-
gutter: t,
|
|
920
|
-
formConfig: o,
|
|
921
|
-
$scopedSlots: r
|
|
922
|
-
} = this;
|
|
923
|
-
return Jr(r.default) ? e ? (
|
|
924
|
-
// eslint-disable-next-line no-undef
|
|
925
|
-
s("ElRow", {
|
|
926
|
-
attrs: {
|
|
927
|
-
gutter: t
|
|
928
|
-
},
|
|
929
|
-
class: "form-item-group-row"
|
|
930
|
-
}, [r.default({
|
|
931
|
-
disabled: o.disabled
|
|
932
|
-
})])
|
|
933
|
-
) : r.default({
|
|
934
|
-
disabled: o.disabled
|
|
935
|
-
}) : s("EmptyView", {
|
|
936
|
-
attrs: {
|
|
937
|
-
"font-size": "14px",
|
|
938
|
-
"empty-tips": "暂无信息"
|
|
939
|
-
}
|
|
940
|
-
});
|
|
941
|
-
},
|
|
942
|
-
toggle() {
|
|
943
|
-
this.expand = !this.expand;
|
|
944
|
-
},
|
|
945
|
-
open() {
|
|
946
|
-
this.expand = !0;
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
render() {
|
|
950
|
-
const {
|
|
951
|
-
renderDefault: e,
|
|
952
|
-
blockTitle: t,
|
|
953
|
-
active: o,
|
|
954
|
-
expand: r,
|
|
955
|
-
toggle: n,
|
|
956
|
-
$scopedSlots: i,
|
|
957
|
-
isDisabled: a
|
|
958
|
-
} = this;
|
|
959
|
-
return s("div", {
|
|
960
|
-
class: ["form-item-group", {
|
|
961
|
-
"default-active": o,
|
|
962
|
-
"is-disabled": a()
|
|
963
|
-
}]
|
|
964
|
-
}, [s("div", {
|
|
965
|
-
class: "form-item-group-title",
|
|
966
|
-
on: {
|
|
967
|
-
click: n
|
|
968
|
-
}
|
|
969
|
-
}, [s("span", {
|
|
970
|
-
class: "flex-item"
|
|
971
|
-
}, [t, i["title-right"] ? i["title-right"]() : null]), " ", s("i", {
|
|
972
|
-
class: r ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
973
|
-
})]), s("ElCollapseTransition", [s("div", {
|
|
974
|
-
directives: [{
|
|
975
|
-
name: "show",
|
|
976
|
-
value: r
|
|
977
|
-
}]
|
|
978
|
-
}, [e()])])]);
|
|
979
|
-
}
|
|
980
|
-
}, mr = {
|
|
981
|
-
name: "JSXComponent",
|
|
982
|
-
props: {
|
|
983
|
-
msg: {
|
|
984
|
-
type: String,
|
|
985
|
-
default: ""
|
|
986
|
-
}
|
|
987
|
-
},
|
|
988
|
-
render() {
|
|
989
|
-
return s("div", [this.msg]);
|
|
990
|
-
}
|
|
991
|
-
};
|
|
992
|
-
const hr = {
|
|
993
|
-
back: {
|
|
994
|
-
label: "返回",
|
|
995
|
-
type: "primary",
|
|
996
|
-
icon: "el-icon-d-arrow-left"
|
|
997
|
-
},
|
|
998
|
-
cancel: {
|
|
999
|
-
label: "取消",
|
|
1000
|
-
icon: "fa fa-undo"
|
|
1001
|
-
},
|
|
1002
|
-
create: {
|
|
1003
|
-
label: "新增",
|
|
1004
|
-
type: "primary",
|
|
1005
|
-
icon: "el-icon-plus"
|
|
1006
|
-
},
|
|
1007
|
-
save: {
|
|
1008
|
-
label: "保存",
|
|
1009
|
-
type: "primary",
|
|
1010
|
-
icon: "fa fa-save"
|
|
1011
|
-
},
|
|
1012
|
-
withdraw: {
|
|
1013
|
-
label: "撤回",
|
|
1014
|
-
type: "primary",
|
|
1015
|
-
icon: "fa fa-undo"
|
|
1016
|
-
},
|
|
1017
|
-
edit: {
|
|
1018
|
-
label: "编辑",
|
|
1019
|
-
type: "primary",
|
|
1020
|
-
icon: "el-icon-edit-outline"
|
|
1021
|
-
},
|
|
1022
|
-
submit: {
|
|
1023
|
-
label: "提交审批",
|
|
1024
|
-
type: "primary",
|
|
1025
|
-
icon: "fa fa-check"
|
|
1026
|
-
},
|
|
1027
|
-
publish: {
|
|
1028
|
-
label: "发布",
|
|
1029
|
-
type: "primary",
|
|
1030
|
-
icon: "fa fa-send"
|
|
1031
|
-
},
|
|
1032
|
-
agree: {
|
|
1033
|
-
label: "同意",
|
|
1034
|
-
type: "primary",
|
|
1035
|
-
icon: "fa fa-check-square-o"
|
|
1036
|
-
},
|
|
1037
|
-
disagree: {
|
|
1038
|
-
label: "不同意",
|
|
1039
|
-
type: "primary",
|
|
1040
|
-
icon: "fa fa-mail-reply"
|
|
1041
|
-
},
|
|
1042
|
-
reject: {
|
|
1043
|
-
label: "退回",
|
|
1044
|
-
type: "primary",
|
|
1045
|
-
icon: "fa fa-reply"
|
|
1046
|
-
},
|
|
1047
|
-
finish: {
|
|
1048
|
-
label: "完成",
|
|
1049
|
-
type: "primary",
|
|
1050
|
-
icon: "fa fa-check-square"
|
|
1051
|
-
},
|
|
1052
|
-
enable: {
|
|
1053
|
-
label: "启用",
|
|
1054
|
-
type: "primary",
|
|
1055
|
-
icon: "el-icon-circle-check"
|
|
1056
|
-
},
|
|
1057
|
-
exp: {
|
|
1058
|
-
label: "导出",
|
|
1059
|
-
type: "primary",
|
|
1060
|
-
icon: "el-icon-download"
|
|
1061
|
-
},
|
|
1062
|
-
imp: {
|
|
1063
|
-
label: "导入",
|
|
1064
|
-
type: "primary",
|
|
1065
|
-
icon: "el-icon-upload"
|
|
1066
|
-
},
|
|
1067
|
-
del: {
|
|
1068
|
-
label: "删除",
|
|
1069
|
-
type: "primary",
|
|
1070
|
-
icon: "el-icon-delete"
|
|
1071
|
-
},
|
|
1072
|
-
disabled: {
|
|
1073
|
-
label: "禁用",
|
|
1074
|
-
type: "primary",
|
|
1075
|
-
icon: "el-icon-remove-outline"
|
|
1076
|
-
},
|
|
1077
|
-
reload: {
|
|
1078
|
-
label: "刷新",
|
|
1079
|
-
type: "primary",
|
|
1080
|
-
icon: "el-icon-refresh"
|
|
1081
|
-
},
|
|
1082
|
-
search: {
|
|
1083
|
-
label: "搜索",
|
|
1084
|
-
icon: "el-icon-search",
|
|
1085
|
-
separateLine: !1
|
|
1086
|
-
}
|
|
1087
|
-
}, fr = {
|
|
1088
|
-
name: "Toolbar",
|
|
1089
|
-
provide() {
|
|
1090
|
-
return {
|
|
1091
|
-
toolbar: this
|
|
1092
|
-
};
|
|
1093
|
-
},
|
|
1094
|
-
props: {
|
|
1095
|
-
searchable: Boolean,
|
|
1096
|
-
buttons: {
|
|
1097
|
-
type: Array,
|
|
1098
|
-
default: () => ["back"]
|
|
1099
|
-
},
|
|
1100
|
-
back: {
|
|
1101
|
-
type: Function
|
|
1102
|
-
},
|
|
1103
|
-
cancel: {
|
|
1104
|
-
type: Function
|
|
1105
|
-
},
|
|
1106
|
-
emitter: {
|
|
1107
|
-
type: String,
|
|
1108
|
-
default: "self"
|
|
1109
|
-
},
|
|
1110
|
-
footer: Boolean,
|
|
1111
|
-
label: {
|
|
1112
|
-
type: Object,
|
|
1113
|
-
default: () => ({})
|
|
1114
|
-
}
|
|
1115
|
-
},
|
|
1116
|
-
methods: {
|
|
1117
|
-
goBack() {
|
|
1118
|
-
const e = this.$route.path;
|
|
1119
|
-
this.$bus("closeTab", e, this);
|
|
1120
|
-
},
|
|
1121
|
-
fire(e, t) {
|
|
1122
|
-
this.emitter === "parent" ? this.$parent && this.$parent.$emit(e, t, this) : this.$emit(e, t, this);
|
|
1123
|
-
},
|
|
1124
|
-
createButton(e, {
|
|
1125
|
-
label: t,
|
|
1126
|
-
icon: o,
|
|
1127
|
-
type: r,
|
|
1128
|
-
separateLine: n = !0
|
|
1129
|
-
}) {
|
|
1130
|
-
var p;
|
|
1131
|
-
let i;
|
|
1132
|
-
const a = ((p = this.label) == null ? void 0 : p[e]) || t;
|
|
1133
|
-
return ["back", "cancel"].includes(e) ? i = this.goBack : i = (l) => (this.$listeners[e] || Zr)(l), s("ToolbarButton", {
|
|
1134
|
-
attrs: {
|
|
1135
|
-
"separate-line": n,
|
|
1136
|
-
icon: o,
|
|
1137
|
-
label: a,
|
|
1138
|
-
footer: this.footer,
|
|
1139
|
-
type: r
|
|
1140
|
-
},
|
|
1141
|
-
on: {
|
|
1142
|
-
click: i
|
|
1143
|
-
}
|
|
1144
|
-
});
|
|
1145
|
-
},
|
|
1146
|
-
getLeftButtons() {
|
|
1147
|
-
var o, r;
|
|
1148
|
-
const {
|
|
1149
|
-
createButton: e
|
|
1150
|
-
} = this;
|
|
1151
|
-
return ((r = (o = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : r.call(o)) || this.buttons.map((n) => {
|
|
1152
|
-
var a, p, l, c, f;
|
|
1153
|
-
const i = hr[n];
|
|
1154
|
-
return i ? ((p = (a = this.$scopedSlots)[n]) == null ? void 0 : p.call(a)) || e(n, i) : n === "slot" && (f = (c = (l = this.$scopedSlots).default) == null ? void 0 : c.call(l, {
|
|
1155
|
-
buttons: this.buttons,
|
|
1156
|
-
footer: this.footer
|
|
1157
|
-
})) != null ? f : null;
|
|
1158
|
-
});
|
|
1159
|
-
},
|
|
1160
|
-
getRightButtons() {
|
|
1161
|
-
var t, o;
|
|
1162
|
-
return ((o = (t = this.$scopedSlots)["toolbar-right"]) == null ? void 0 : o.call(t)) || this.getSearchButton();
|
|
1163
|
-
},
|
|
1164
|
-
getSearchButton() {
|
|
1165
|
-
const {
|
|
1166
|
-
createButton: e
|
|
1167
|
-
} = this;
|
|
1168
|
-
return this.searchable ? e("search", hr.search) : null;
|
|
1169
|
-
}
|
|
1170
|
-
},
|
|
1171
|
-
render() {
|
|
1172
|
-
return this.footer ? s("div", {
|
|
1173
|
-
class: "footer-bar"
|
|
1174
|
-
}, [this.getLeftButtons()]) : s("div", {
|
|
1175
|
-
class: "toolbar"
|
|
1176
|
-
}, [s("div", {
|
|
1177
|
-
class: "toolbar-left"
|
|
1178
|
-
}, [this.getLeftButtons()]), s("div", {
|
|
1179
|
-
class: "toolbar-right"
|
|
1180
|
-
}, [this.getRightButtons()])]);
|
|
1181
|
-
}
|
|
1182
|
-
}, C = process.env.NODE_ENV === "production" ? (
|
|
1183
|
-
/* istanbul ignore next */
|
|
1184
|
-
en
|
|
1185
|
-
) : function(t, o) {
|
|
1186
|
-
if (!t()) {
|
|
1187
|
-
const r = ["[Vue-TreeSelect Warning]"].concat(o());
|
|
1188
|
-
console.error(...r);
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1191
|
-
function I(e) {
|
|
1192
|
-
return function(o, ...r) {
|
|
1193
|
-
o.type === "mousedown" && o.button === 0 && e.call(this, o, ...r);
|
|
1194
|
-
};
|
|
1195
|
-
}
|
|
1196
|
-
function mn(e, t) {
|
|
1197
|
-
const o = e.getBoundingClientRect(), r = t.getBoundingClientRect(), n = t.offsetHeight / 3;
|
|
1198
|
-
r.bottom + n > o.bottom ? e.scrollTop = Math.min(
|
|
1199
|
-
t.offsetTop + t.clientHeight - e.offsetHeight + n,
|
|
1200
|
-
e.scrollHeight
|
|
1201
|
-
) : r.top - n < o.top && (e.scrollTop = Math.max(t.offsetTop - n, 0));
|
|
1202
|
-
}
|
|
1203
|
-
function Er(e, t) {
|
|
1204
|
-
const o = e.indexOf(t);
|
|
1205
|
-
o !== -1 && e.splice(o, 1);
|
|
1206
|
-
}
|
|
1207
|
-
let te;
|
|
1208
|
-
const P = [], hn = 100;
|
|
1209
|
-
function fn() {
|
|
1210
|
-
te = setInterval(() => {
|
|
1211
|
-
P.forEach(Nr);
|
|
1212
|
-
}, hn);
|
|
1213
|
-
}
|
|
1214
|
-
function gn() {
|
|
1215
|
-
clearInterval(te), te = null;
|
|
1216
|
-
}
|
|
1217
|
-
function Nr(e) {
|
|
1218
|
-
const { $el: t, listener: o, lastWidth: r, lastHeight: n } = e, i = t.offsetWidth, a = t.offsetHeight;
|
|
1219
|
-
(r !== i || n !== a) && (e.lastWidth = i, e.lastHeight = a, o({ width: i, height: a }));
|
|
1220
|
-
}
|
|
1221
|
-
function bn(e, t) {
|
|
1222
|
-
const o = {
|
|
1223
|
-
$el: e,
|
|
1224
|
-
listener: t,
|
|
1225
|
-
lastWidth: null,
|
|
1226
|
-
lastHeight: null
|
|
1227
|
-
}, r = () => {
|
|
1228
|
-
Er(P, o), P.length || gn();
|
|
1229
|
-
};
|
|
1230
|
-
return P.push(o), Nr(o), fn(), r;
|
|
1231
|
-
}
|
|
1232
|
-
function Sn(e, t) {
|
|
1233
|
-
const o = document.createElement("_"), r = o.appendChild(document.createElement("_")), n = o.appendChild(document.createElement("_")), i = r.appendChild(document.createElement("_"));
|
|
1234
|
-
let a, p;
|
|
1235
|
-
return r.style.cssText = o.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", i.style.cssText = n.style.cssText = "display:block;height:100%;transition:0s;width:100%", i.style.width = i.style.height = "200%", e.appendChild(o), l(), f;
|
|
1236
|
-
function l() {
|
|
1237
|
-
c();
|
|
1238
|
-
const u = e.offsetWidth, h = e.offsetHeight;
|
|
1239
|
-
(u !== a || h !== p) && (a = u, p = h, n.style.width = `${u * 2}px`, n.style.height = `${h * 2}px`, o.scrollLeft = o.scrollWidth, o.scrollTop = o.scrollHeight, r.scrollLeft = r.scrollWidth, r.scrollTop = r.scrollHeight, t({ width: u, height: h })), r.addEventListener("scroll", l), o.addEventListener("scroll", l);
|
|
1240
|
-
}
|
|
1241
|
-
function c() {
|
|
1242
|
-
r.removeEventListener("scroll", l), o.removeEventListener("scroll", l);
|
|
1243
|
-
}
|
|
1244
|
-
function f() {
|
|
1245
|
-
c(), e.removeChild(o);
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
function Fr(e, t) {
|
|
1249
|
-
const o = document.documentMode === 9;
|
|
1250
|
-
let r = !0;
|
|
1251
|
-
const a = (o ? bn : Sn)(e, (...p) => r || t(...p));
|
|
1252
|
-
return r = !1, a;
|
|
1253
|
-
}
|
|
1254
|
-
function vn(e) {
|
|
1255
|
-
const t = [];
|
|
1256
|
-
let o = e.parentNode;
|
|
1257
|
-
for (; o && o.nodeName !== "BODY" && o.nodeType === document.ELEMENT_NODE; )
|
|
1258
|
-
yn(o) && t.push(o), o = o.parentNode;
|
|
1259
|
-
return t.push(window), t;
|
|
1260
|
-
}
|
|
1261
|
-
function yn(e) {
|
|
1262
|
-
const { overflow: t, overflowX: o, overflowY: r } = getComputedStyle(e);
|
|
1263
|
-
return /(auto|scroll|overlay)/.test(t + r + o);
|
|
1264
|
-
}
|
|
1265
|
-
function Ir(e, t) {
|
|
1266
|
-
const o = vn(e);
|
|
1267
|
-
return window.addEventListener("resize", t, { passive: !0 }), o.forEach((r) => {
|
|
1268
|
-
r.addEventListener("scroll", t, { passive: !0 });
|
|
1269
|
-
}), function() {
|
|
1270
|
-
window.removeEventListener("resize", t, { passive: !0 }), o.forEach((n) => {
|
|
1271
|
-
n.removeEventListener("scroll", t, { passive: !0 });
|
|
1272
|
-
});
|
|
1273
|
-
};
|
|
1274
|
-
}
|
|
1275
|
-
function Tr(e) {
|
|
1276
|
-
return Number.isNaN(e);
|
|
1277
|
-
}
|
|
1278
|
-
const y = () => /* @__PURE__ */ Object.create(null);
|
|
1279
|
-
function Dr(e) {
|
|
1280
|
-
return e == null || typeof e != "object" ? !1 : Object.getPrototypeOf(e) === Object.prototype;
|
|
1281
|
-
}
|
|
1282
|
-
function xn(e, t, o) {
|
|
1283
|
-
Dr(o) ? (e[t] || (e[t] = {}), oe(e[t], o)) : e[t] = o;
|
|
1284
|
-
}
|
|
1285
|
-
function oe(e, t) {
|
|
1286
|
-
if (Dr(t)) {
|
|
1287
|
-
const o = Object.keys(t);
|
|
1288
|
-
for (let r = 0, n = o.length; r < n; r++)
|
|
1289
|
-
xn(e, o[r], t[o[r]]);
|
|
1290
|
-
}
|
|
1291
|
-
return e;
|
|
1292
|
-
}
|
|
1293
|
-
function w(e, t) {
|
|
1294
|
-
return e.indexOf(t) !== -1;
|
|
1295
|
-
}
|
|
1296
|
-
function $r(e, t, o) {
|
|
1297
|
-
for (let r = 0, n = e.length; r < n; r++)
|
|
1298
|
-
if (t.call(o, e[r], r, e))
|
|
1299
|
-
return e[r];
|
|
1300
|
-
}
|
|
1301
|
-
function V(e, t) {
|
|
1302
|
-
if (e.length !== t.length)
|
|
1303
|
-
return !0;
|
|
1304
|
-
for (let o = 0; o < e.length; o++)
|
|
1305
|
-
if (e[o] !== t[o])
|
|
1306
|
-
return !0;
|
|
1307
|
-
return !1;
|
|
1308
|
-
}
|
|
1309
|
-
function _n(e, t) {
|
|
1310
|
-
const o = t.length, r = e.length;
|
|
1311
|
-
if (r > o)
|
|
1312
|
-
return !1;
|
|
1313
|
-
if (r === o)
|
|
1314
|
-
return e === t;
|
|
1315
|
-
e:
|
|
1316
|
-
for (let n = 0, i = 0; n < r; n++) {
|
|
1317
|
-
const a = e.charCodeAt(n);
|
|
1318
|
-
for (; i < o; )
|
|
1319
|
-
if (t.charCodeAt(i++) === a)
|
|
1320
|
-
continue e;
|
|
1321
|
-
return !1;
|
|
1322
|
-
}
|
|
1323
|
-
return !0;
|
|
1324
|
-
}
|
|
1325
|
-
const F = null, re = 0, Lr = 1, Rr = 2, $ = "ALL_CHILDREN", L = "ALL_DESCENDANTS", R = "LEAF_CHILDREN", M = "LEAF_DESCENDANTS", On = "LOAD_ROOT_OPTIONS", Cn = "LOAD_CHILDREN_OPTIONS", wn = "ASYNC_SEARCH", Q = "ALL", B = "BRANCH_PRIORITY", K = "LEAF_PRIORITY", U = "ALL_WITH_INDETERMINATE", gr = "ORDER_SELECTED", br = "LEVEL", Sr = "INDEX", b = {
|
|
1326
|
-
BACKSPACE: 8,
|
|
1327
|
-
ENTER: 13,
|
|
1328
|
-
ESCAPE: 27,
|
|
1329
|
-
END: 35,
|
|
1330
|
-
HOME: 36,
|
|
1331
|
-
ARROW_LEFT: 37,
|
|
1332
|
-
ARROW_UP: 38,
|
|
1333
|
-
ARROW_RIGHT: 39,
|
|
1334
|
-
ARROW_DOWN: 40,
|
|
1335
|
-
DELETE: 46
|
|
1336
|
-
}, En = process.env.NODE_ENV === "testing" ? (
|
|
1337
|
-
/* to speed up unit testing */
|
|
1338
|
-
10
|
|
1339
|
-
) : (
|
|
1340
|
-
/* istanbul ignore next */
|
|
1341
|
-
200
|
|
1342
|
-
), vr = 5, yr = 40;
|
|
1343
|
-
function Mr(e, t) {
|
|
1344
|
-
let o = 0;
|
|
1345
|
-
do {
|
|
1346
|
-
if (e.level < o)
|
|
1347
|
-
return -1;
|
|
1348
|
-
if (t.level < o)
|
|
1349
|
-
return 1;
|
|
1350
|
-
if (e.index[o] !== t.index[o])
|
|
1351
|
-
return e.index[o] - t.index[o];
|
|
1352
|
-
o++;
|
|
1353
|
-
} while (!0);
|
|
1354
|
-
}
|
|
1355
|
-
function Nn(e, t) {
|
|
1356
|
-
return e.level === t.level ? Mr(e, t) : e.level - t.level;
|
|
1357
|
-
}
|
|
1358
|
-
function G() {
|
|
1359
|
-
return {
|
|
1360
|
-
isLoaded: !1,
|
|
1361
|
-
isLoading: !1,
|
|
1362
|
-
loadingError: ""
|
|
1363
|
-
};
|
|
1364
|
-
}
|
|
1365
|
-
function Fn(e) {
|
|
1366
|
-
return typeof e == "string" ? e : typeof e == "number" && !Tr(e) ? `${e}` : "";
|
|
1367
|
-
}
|
|
1368
|
-
function xr(e, t, o) {
|
|
1369
|
-
return e ? _n(t, o) : w(o, t);
|
|
1370
|
-
}
|
|
1371
|
-
function X(e) {
|
|
1372
|
-
return e.message || /* istanbul ignore next */
|
|
1373
|
-
String(e);
|
|
1374
|
-
}
|
|
1375
|
-
let In = 0;
|
|
1376
|
-
const Tn = {
|
|
1377
|
-
provide() {
|
|
1378
|
-
return {
|
|
1379
|
-
// Enable access to the instance of root component of vue-treeselect
|
|
1380
|
-
// across hierarchy.
|
|
1381
|
-
instance: this
|
|
1382
|
-
};
|
|
1383
|
-
},
|
|
1384
|
-
props: {
|
|
1385
|
-
/**
|
|
1386
|
-
* Whether to allow resetting value even if there are disabled selected nodes.
|
|
1387
|
-
*/
|
|
1388
|
-
allowClearingDisabled: {
|
|
1389
|
-
type: Boolean,
|
|
1390
|
-
default: !1
|
|
1391
|
-
},
|
|
1392
|
-
/**
|
|
1393
|
-
* When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.
|
|
1394
|
-
* You may want to use this in conjunction with `allowClearingDisabled` prop.
|
|
1395
|
-
*/
|
|
1396
|
-
allowSelectingDisabledDescendants: {
|
|
1397
|
-
type: Boolean,
|
|
1398
|
-
default: !1
|
|
1399
|
-
},
|
|
1400
|
-
/**
|
|
1401
|
-
* Whether the menu should be always open.
|
|
1402
|
-
*/
|
|
1403
|
-
alwaysOpen: {
|
|
1404
|
-
type: Boolean,
|
|
1405
|
-
default: !1
|
|
1406
|
-
},
|
|
1407
|
-
/**
|
|
1408
|
-
* Append the menu to <body />?
|
|
1409
|
-
*/
|
|
1410
|
-
appendToBody: {
|
|
1411
|
-
type: Boolean,
|
|
1412
|
-
default: !1
|
|
1413
|
-
},
|
|
1414
|
-
/**
|
|
1415
|
-
* Whether to enable async search mode.
|
|
1416
|
-
*/
|
|
1417
|
-
async: {
|
|
1418
|
-
type: Boolean,
|
|
1419
|
-
default: !1
|
|
1420
|
-
},
|
|
1421
|
-
/**
|
|
1422
|
-
* Automatically focus the component on mount?
|
|
1423
|
-
*/
|
|
1424
|
-
autoFocus: {
|
|
1425
|
-
type: Boolean,
|
|
1426
|
-
default: !1
|
|
1427
|
-
},
|
|
1428
|
-
/**
|
|
1429
|
-
* Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.
|
|
1430
|
-
*/
|
|
1431
|
-
autoLoadRootOptions: {
|
|
1432
|
-
type: Boolean,
|
|
1433
|
-
default: !0
|
|
1434
|
-
},
|
|
1435
|
-
/**
|
|
1436
|
-
* When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.
|
|
1437
|
-
*/
|
|
1438
|
-
autoDeselectAncestors: {
|
|
1439
|
-
type: Boolean,
|
|
1440
|
-
default: !1
|
|
1441
|
-
},
|
|
1442
|
-
/**
|
|
1443
|
-
* When user deselects a node, automatically deselect its descendants. Applies to flat mode only.
|
|
1444
|
-
*/
|
|
1445
|
-
autoDeselectDescendants: {
|
|
1446
|
-
type: Boolean,
|
|
1447
|
-
default: !1
|
|
1448
|
-
},
|
|
1449
|
-
/**
|
|
1450
|
-
* When user selects a node, automatically select its ancestors. Applies to flat mode only.
|
|
1451
|
-
*/
|
|
1452
|
-
autoSelectAncestors: {
|
|
1453
|
-
type: Boolean,
|
|
1454
|
-
default: !1
|
|
1455
|
-
},
|
|
1456
|
-
/**
|
|
1457
|
-
* When user selects a node, automatically select its descendants. Applies to flat mode only.
|
|
1458
|
-
*/
|
|
1459
|
-
autoSelectDescendants: {
|
|
1460
|
-
type: Boolean,
|
|
1461
|
-
default: !1
|
|
1462
|
-
},
|
|
1463
|
-
/**
|
|
1464
|
-
* Whether pressing backspace key removes the last item if there is no text input.
|
|
1465
|
-
*/
|
|
1466
|
-
backspaceRemoves: {
|
|
1467
|
-
type: Boolean,
|
|
1468
|
-
default: !0
|
|
1469
|
-
},
|
|
1470
|
-
/**
|
|
1471
|
-
* Function that processes before clearing all input fields.
|
|
1472
|
-
* Return `false` to prevent value from being cleared.
|
|
1473
|
-
* @type {function(): (boolean|Promise<boolean>)}
|
|
1474
|
-
*/
|
|
1475
|
-
beforeClearAll: {
|
|
1476
|
-
type: Function,
|
|
1477
|
-
default: () => !0
|
|
1478
|
-
},
|
|
1479
|
-
/**
|
|
1480
|
-
* Show branch nodes before leaf nodes?
|
|
1481
|
-
*/
|
|
1482
|
-
branchNodesFirst: {
|
|
1483
|
-
type: Boolean,
|
|
1484
|
-
default: !1
|
|
1485
|
-
},
|
|
1486
|
-
/**
|
|
1487
|
-
* Should cache results of every search request?
|
|
1488
|
-
*/
|
|
1489
|
-
cacheOptions: {
|
|
1490
|
-
type: Boolean,
|
|
1491
|
-
default: !0
|
|
1492
|
-
},
|
|
1493
|
-
/**
|
|
1494
|
-
* Show an "×" button that resets value?
|
|
1495
|
-
*/
|
|
1496
|
-
clearable: {
|
|
1497
|
-
type: Boolean,
|
|
1498
|
-
default: !0
|
|
1499
|
-
},
|
|
1500
|
-
/**
|
|
1501
|
-
* Title for the "×" button when `multiple: true`.
|
|
1502
|
-
*/
|
|
1503
|
-
clearAllText: {
|
|
1504
|
-
type: String,
|
|
1505
|
-
default: "Clear all"
|
|
1506
|
-
},
|
|
1507
|
-
/**
|
|
1508
|
-
* Whether to clear the search input after selecting.
|
|
1509
|
-
* Use only when `multiple` is `true`.
|
|
1510
|
-
* For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.
|
|
1511
|
-
*/
|
|
1512
|
-
clearOnSelect: {
|
|
1513
|
-
type: Boolean,
|
|
1514
|
-
default: !1
|
|
1515
|
-
},
|
|
1516
|
-
/**
|
|
1517
|
-
* Title for the "×" button.
|
|
1518
|
-
*/
|
|
1519
|
-
clearValueText: {
|
|
1520
|
-
type: String,
|
|
1521
|
-
default: "Clear value"
|
|
1522
|
-
},
|
|
1523
|
-
/**
|
|
1524
|
-
* Whether to close the menu after selecting an option?
|
|
1525
|
-
* Use only when `multiple` is `true`.
|
|
1526
|
-
*/
|
|
1527
|
-
closeOnSelect: {
|
|
1528
|
-
type: Boolean,
|
|
1529
|
-
default: !0
|
|
1530
|
-
},
|
|
1531
|
-
/**
|
|
1532
|
-
* How many levels of branch nodes should be automatically expanded when loaded.
|
|
1533
|
-
* Set `Infinity` to make all branch nodes expanded by default.
|
|
1534
|
-
*/
|
|
1535
|
-
defaultExpandLevel: {
|
|
1536
|
-
type: Number,
|
|
1537
|
-
default: 0
|
|
1538
|
-
},
|
|
1539
|
-
/**
|
|
1540
|
-
* The default set of options to show before the user starts searching. Used for async search mode.
|
|
1541
|
-
* When set to `true`, the results for search query as a empty string will be autoloaded.
|
|
1542
|
-
* @type {boolean|node[]}
|
|
1543
|
-
*/
|
|
1544
|
-
defaultOptions: {
|
|
1545
|
-
default: !1
|
|
1546
|
-
},
|
|
1547
|
-
/**
|
|
1548
|
-
* Whether pressing delete key removes the last item if there is no text input.
|
|
1549
|
-
*/
|
|
1550
|
-
deleteRemoves: {
|
|
1551
|
-
type: Boolean,
|
|
1552
|
-
default: !0
|
|
1553
|
-
},
|
|
1554
|
-
/**
|
|
1555
|
-
* Delimiter to use to join multiple values for the hidden field value.
|
|
1556
|
-
*/
|
|
1557
|
-
delimiter: {
|
|
1558
|
-
type: String,
|
|
1559
|
-
default: ","
|
|
1560
|
-
},
|
|
1561
|
-
/**
|
|
1562
|
-
* Only show the nodes that match the search value directly, excluding its ancestors.
|
|
1563
|
-
*
|
|
1564
|
-
* @type {Object}
|
|
1565
|
-
*/
|
|
1566
|
-
flattenSearchResults: {
|
|
1567
|
-
type: Boolean,
|
|
1568
|
-
default: !1
|
|
1569
|
-
},
|
|
1570
|
-
/**
|
|
1571
|
-
* Prevent branch nodes from being selected?
|
|
1572
|
-
*/
|
|
1573
|
-
disableBranchNodes: {
|
|
1574
|
-
type: Boolean,
|
|
1575
|
-
default: !1
|
|
1576
|
-
},
|
|
1577
|
-
/**
|
|
1578
|
-
* Disable the control?
|
|
1579
|
-
*/
|
|
1580
|
-
disabled: {
|
|
1581
|
-
type: Boolean,
|
|
1582
|
-
default: !1
|
|
1583
|
-
},
|
|
1584
|
-
/**
|
|
1585
|
-
* Disable the fuzzy matching functionality?
|
|
1586
|
-
*/
|
|
1587
|
-
disableFuzzyMatching: {
|
|
1588
|
-
type: Boolean,
|
|
1589
|
-
default: !1
|
|
1590
|
-
},
|
|
1591
|
-
/**
|
|
1592
|
-
* Whether to enable flat mode or not. Non-flat mode (default) means:
|
|
1593
|
-
* - Whenever a branch node gets checked, all its children will be checked too
|
|
1594
|
-
* - Whenever a branch node has all children checked, the branch node itself will be checked too
|
|
1595
|
-
* Set `true` to disable this mechanism
|
|
1596
|
-
*/
|
|
1597
|
-
flat: {
|
|
1598
|
-
type: Boolean,
|
|
1599
|
-
default: !1
|
|
1600
|
-
},
|
|
1601
|
-
/**
|
|
1602
|
-
* Will be passed with all events as the last param.
|
|
1603
|
-
* Useful for identifying events origin.
|
|
1604
|
-
*/
|
|
1605
|
-
instanceId: {
|
|
1606
|
-
// Add two trailing "$" to distinguish from explictly specified ids.
|
|
1607
|
-
default: () => `${In++}$$`,
|
|
1608
|
-
type: [String, Number]
|
|
1609
|
-
},
|
|
1610
|
-
/**
|
|
1611
|
-
* Joins multiple values into a single form field with the `delimiter` (legacy mode).
|
|
1612
|
-
*/
|
|
1613
|
-
joinValues: {
|
|
1614
|
-
type: Boolean,
|
|
1615
|
-
default: !1
|
|
1616
|
-
},
|
|
1617
|
-
/**
|
|
1618
|
-
* Limit the display of selected options.
|
|
1619
|
-
* The rest will be hidden within the limitText string.
|
|
1620
|
-
*/
|
|
1621
|
-
limit: {
|
|
1622
|
-
type: Number,
|
|
1623
|
-
default: 1 / 0
|
|
1624
|
-
},
|
|
1625
|
-
/**
|
|
1626
|
-
* Function that processes the message shown when selected elements pass the defined limit.
|
|
1627
|
-
* @type {function(number): string}
|
|
1628
|
-
*/
|
|
1629
|
-
limitText: {
|
|
1630
|
-
type: Function,
|
|
1631
|
-
default: function(t) {
|
|
1632
|
-
return `and ${t} more`;
|
|
1633
|
-
}
|
|
1634
|
-
},
|
|
1635
|
-
/**
|
|
1636
|
-
* Text displayed when loading options.
|
|
1637
|
-
*/
|
|
1638
|
-
loadingText: {
|
|
1639
|
-
type: String,
|
|
1640
|
-
default: "Loading..."
|
|
1641
|
-
},
|
|
1642
|
-
/**
|
|
1643
|
-
* Used for dynamically loading options.
|
|
1644
|
-
* @type {function({action: string, callback: (function((Error|string)=): void), parentNode: node=, instanceId}): void}
|
|
1645
|
-
*/
|
|
1646
|
-
loadOptions: {
|
|
1647
|
-
type: Function
|
|
1648
|
-
},
|
|
1649
|
-
/**
|
|
1650
|
-
* Which node properties to filter on.
|
|
1651
|
-
*/
|
|
1652
|
-
matchKeys: {
|
|
1653
|
-
type: Array,
|
|
1654
|
-
default: () => ["label"]
|
|
1655
|
-
},
|
|
1656
|
-
/**
|
|
1657
|
-
* Sets `maxHeight` style value of the menu.
|
|
1658
|
-
*/
|
|
1659
|
-
maxHeight: {
|
|
1660
|
-
type: Number,
|
|
1661
|
-
default: 300
|
|
1662
|
-
},
|
|
1663
|
-
/**
|
|
1664
|
-
* Set `true` to allow selecting multiple options (a.k.a., multi-select mode).
|
|
1665
|
-
*/
|
|
1666
|
-
multiple: {
|
|
1667
|
-
type: Boolean,
|
|
1668
|
-
default: !1
|
|
1669
|
-
},
|
|
1670
|
-
/**
|
|
1671
|
-
* Generates a hidden <input /> tag with this field name for html forms.
|
|
1672
|
-
*/
|
|
1673
|
-
name: {
|
|
1674
|
-
type: String
|
|
1675
|
-
},
|
|
1676
|
-
/**
|
|
1677
|
-
* Text displayed when a branch node has no children.
|
|
1678
|
-
*/
|
|
1679
|
-
noChildrenText: {
|
|
1680
|
-
type: String,
|
|
1681
|
-
default: "No sub-options."
|
|
1682
|
-
},
|
|
1683
|
-
/**
|
|
1684
|
-
* Text displayed when there are no available options.
|
|
1685
|
-
*/
|
|
1686
|
-
noOptionsText: {
|
|
1687
|
-
type: String,
|
|
1688
|
-
default: "No options available."
|
|
1689
|
-
},
|
|
1690
|
-
/**
|
|
1691
|
-
* Text displayed when there are no matching search results.
|
|
1692
|
-
*/
|
|
1693
|
-
noResultsText: {
|
|
1694
|
-
type: String,
|
|
1695
|
-
default: "No results found..."
|
|
1696
|
-
},
|
|
1697
|
-
/**
|
|
1698
|
-
* Used for normalizing source data.
|
|
1699
|
-
* @type {function(node, instanceId): node}
|
|
1700
|
-
*/
|
|
1701
|
-
normalizer: {
|
|
1702
|
-
type: Function,
|
|
1703
|
-
default: tn
|
|
1704
|
-
},
|
|
1705
|
-
/**
|
|
1706
|
-
* By default (`auto`), the menu will open below the control. If there is not
|
|
1707
|
-
* enough space, vue-treeselect will automatically flip the menu.
|
|
1708
|
-
* You can use one of other four options to force the menu to be always opened
|
|
1709
|
-
* to specified direction.
|
|
1710
|
-
* Acceptable values:
|
|
1711
|
-
* - `"auto"`
|
|
1712
|
-
* - `"below"`
|
|
1713
|
-
* - `"bottom"`
|
|
1714
|
-
* - `"above"`
|
|
1715
|
-
* - `"top"`
|
|
1716
|
-
*/
|
|
1717
|
-
openDirection: {
|
|
1718
|
-
type: String,
|
|
1719
|
-
default: "auto",
|
|
1720
|
-
validator(e) {
|
|
1721
|
-
return w(["auto", "top", "bottom", "above", "below"], e);
|
|
1722
|
-
}
|
|
1723
|
-
},
|
|
1724
|
-
/**
|
|
1725
|
-
* Whether to automatically open the menu when the control is clicked.
|
|
1726
|
-
*/
|
|
1727
|
-
openOnClick: {
|
|
1728
|
-
type: Boolean,
|
|
1729
|
-
default: !0
|
|
1730
|
-
},
|
|
1731
|
-
/**
|
|
1732
|
-
* Whether to automatically open the menu when the control is focused.
|
|
1733
|
-
*/
|
|
1734
|
-
openOnFocus: {
|
|
1735
|
-
type: Boolean,
|
|
1736
|
-
default: !1
|
|
1737
|
-
},
|
|
1738
|
-
/**
|
|
1739
|
-
* Array of available options.
|
|
1740
|
-
* @type {node[]}
|
|
1741
|
-
*/
|
|
1742
|
-
options: {
|
|
1743
|
-
type: Array
|
|
1744
|
-
},
|
|
1745
|
-
/**
|
|
1746
|
-
* Field placeholder, displayed when there's no value.
|
|
1747
|
-
*/
|
|
1748
|
-
placeholder: {
|
|
1749
|
-
type: String,
|
|
1750
|
-
default: "Select..."
|
|
1751
|
-
},
|
|
1752
|
-
/**
|
|
1753
|
-
* Applies HTML5 required attribute when needed.
|
|
1754
|
-
*/
|
|
1755
|
-
required: {
|
|
1756
|
-
type: Boolean,
|
|
1757
|
-
default: !1
|
|
1758
|
-
},
|
|
1759
|
-
/**
|
|
1760
|
-
* Text displayed asking user whether to retry loading children options.
|
|
1761
|
-
*/
|
|
1762
|
-
retryText: {
|
|
1763
|
-
type: String,
|
|
1764
|
-
default: "Retry?"
|
|
1765
|
-
},
|
|
1766
|
-
/**
|
|
1767
|
-
* Title for the retry button.
|
|
1768
|
-
*/
|
|
1769
|
-
retryTitle: {
|
|
1770
|
-
type: String,
|
|
1771
|
-
default: "Click to retry"
|
|
1772
|
-
},
|
|
1773
|
-
/**
|
|
1774
|
-
* Enable searching feature?
|
|
1775
|
-
*/
|
|
1776
|
-
searchable: {
|
|
1777
|
-
type: Boolean,
|
|
1778
|
-
default: !0
|
|
1779
|
-
},
|
|
1780
|
-
/**
|
|
1781
|
-
* Search in ancestor nodes too.
|
|
1782
|
-
*/
|
|
1783
|
-
searchNested: {
|
|
1784
|
-
type: Boolean,
|
|
1785
|
-
default: !1
|
|
1786
|
-
},
|
|
1787
|
-
/**
|
|
1788
|
-
* Text tip to prompt for async search.
|
|
1789
|
-
*/
|
|
1790
|
-
searchPromptText: {
|
|
1791
|
-
type: String,
|
|
1792
|
-
default: "Type to search..."
|
|
1793
|
-
},
|
|
1794
|
-
/**
|
|
1795
|
-
* Whether to show a children count next to the label of each branch node.
|
|
1796
|
-
*/
|
|
1797
|
-
showCount: {
|
|
1798
|
-
type: Boolean,
|
|
1799
|
-
default: !1
|
|
1800
|
-
},
|
|
1801
|
-
/**
|
|
1802
|
-
* Used in conjunction with `showCount` to specify which type of count number should be displayed.
|
|
1803
|
-
* Acceptable values:
|
|
1804
|
-
* - "ALL_CHILDREN"
|
|
1805
|
-
* - "ALL_DESCENDANTS"
|
|
1806
|
-
* - "LEAF_CHILDREN"
|
|
1807
|
-
* - "LEAF_DESCENDANTS"
|
|
1808
|
-
*/
|
|
1809
|
-
showCountOf: {
|
|
1810
|
-
type: String,
|
|
1811
|
-
default: $,
|
|
1812
|
-
validator(e) {
|
|
1813
|
-
return w([$, L, R, M], e);
|
|
1814
|
-
}
|
|
1815
|
-
},
|
|
1816
|
-
/**
|
|
1817
|
-
* Whether to show children count when searching.
|
|
1818
|
-
* Fallbacks to the value of `showCount` when not specified.
|
|
1819
|
-
* @type {boolean}
|
|
1820
|
-
*/
|
|
1821
|
-
showCountOnSearch: null,
|
|
1822
|
-
/**
|
|
1823
|
-
* In which order the selected options should be displayed in trigger & sorted in `value` array.
|
|
1824
|
-
* Used for multi-select mode only.
|
|
1825
|
-
* Acceptable values:
|
|
1826
|
-
* - "ORDER_SELECTED"
|
|
1827
|
-
* - "LEVEL"
|
|
1828
|
-
* - "INDEX"
|
|
1829
|
-
*/
|
|
1830
|
-
sortValueBy: {
|
|
1831
|
-
type: String,
|
|
1832
|
-
default: gr,
|
|
1833
|
-
validator(e) {
|
|
1834
|
-
return w([gr, br, Sr], e);
|
|
1835
|
-
}
|
|
1836
|
-
},
|
|
1837
|
-
/**
|
|
1838
|
-
* Tab index of the control.
|
|
1839
|
-
*/
|
|
1840
|
-
tabIndex: {
|
|
1841
|
-
type: Number,
|
|
1842
|
-
default: 0
|
|
1843
|
-
},
|
|
1844
|
-
/**
|
|
1845
|
-
* The value of the control.
|
|
1846
|
-
* Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.
|
|
1847
|
-
* Its format depends on the `valueFormat` prop.
|
|
1848
|
-
* For most cases, just use `v-model` instead.
|
|
1849
|
-
* @type {?Array}
|
|
1850
|
-
*/
|
|
1851
|
-
value: null,
|
|
1852
|
-
/**
|
|
1853
|
-
* Which kind of nodes should be included in the `value` array in multi-select mode.
|
|
1854
|
-
* Acceptable values:
|
|
1855
|
-
* - "ALL" - Any node that is checked will be included in the `value` array
|
|
1856
|
-
* - "BRANCH_PRIORITY" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array
|
|
1857
|
-
* - "LEAF_PRIORITY" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included
|
|
1858
|
-
* - "ALL_WITH_INDETERMINATE" - Any node that is checked will be included in the `value` array, plus indeterminate nodes
|
|
1859
|
-
*/
|
|
1860
|
-
valueConsistsOf: {
|
|
1861
|
-
type: String,
|
|
1862
|
-
default: B,
|
|
1863
|
-
validator(e) {
|
|
1864
|
-
return w([Q, B, K, U], e);
|
|
1865
|
-
}
|
|
1866
|
-
},
|
|
1867
|
-
/**
|
|
1868
|
-
* Format of `value` prop.
|
|
1869
|
-
* Note that, when set to `"object"`, only `id` & `label` properties are required in each `node` object in `value` prop.
|
|
1870
|
-
* Acceptable values:
|
|
1871
|
-
* - "id"
|
|
1872
|
-
* - "object"
|
|
1873
|
-
*/
|
|
1874
|
-
valueFormat: {
|
|
1875
|
-
type: String,
|
|
1876
|
-
default: "id"
|
|
1877
|
-
},
|
|
1878
|
-
/**
|
|
1879
|
-
* z-index of the menu.
|
|
1880
|
-
*/
|
|
1881
|
-
zIndex: {
|
|
1882
|
-
type: [Number, String],
|
|
1883
|
-
default: 999
|
|
1884
|
-
}
|
|
1885
|
-
},
|
|
1886
|
-
data() {
|
|
1887
|
-
return {
|
|
1888
|
-
trigger: {
|
|
1889
|
-
// Is the control focused?
|
|
1890
|
-
isFocused: !1,
|
|
1891
|
-
// User entered search query - value of the input.
|
|
1892
|
-
searchQuery: ""
|
|
1893
|
-
},
|
|
1894
|
-
menu: {
|
|
1895
|
-
// Is the menu opened?
|
|
1896
|
-
isOpen: !1,
|
|
1897
|
-
// Id of current highlighted option.
|
|
1898
|
-
current: null,
|
|
1899
|
-
// The scroll position before last menu closing.
|
|
1900
|
-
lastScrollPosition: 0,
|
|
1901
|
-
// Which direction to open the menu.
|
|
1902
|
-
placement: "bottom"
|
|
1903
|
-
},
|
|
1904
|
-
forest: {
|
|
1905
|
-
// Normalized options.
|
|
1906
|
-
normalizedOptions: [],
|
|
1907
|
-
// <id, node> map for quick look-up.
|
|
1908
|
-
nodeMap: y(),
|
|
1909
|
-
// <id, checkedState> map, used for multi-select mode.
|
|
1910
|
-
checkedStateMap: y(),
|
|
1911
|
-
// Id list of all selected options.
|
|
1912
|
-
selectedNodeIds: this.extractCheckedNodeIdsFromValue(),
|
|
1913
|
-
// <id, true> map for fast checking:
|
|
1914
|
-
// if (forest.selectedNodeIds.indexOf(id) !== -1) forest.selectedNodeMap[id] === true
|
|
1915
|
-
selectedNodeMap: y()
|
|
1916
|
-
},
|
|
1917
|
-
// States of root options.
|
|
1918
|
-
rootOptionsStates: G(),
|
|
1919
|
-
localSearch: {
|
|
1920
|
-
// Has user entered any query to search local options?
|
|
1921
|
-
active: !1,
|
|
1922
|
-
// Has any options matched the search query?
|
|
1923
|
-
noResults: !0,
|
|
1924
|
-
// <id, countObject> map for counting matched children/descendants.
|
|
1925
|
-
countMap: y()
|
|
1926
|
-
},
|
|
1927
|
-
// <searchQuery, remoteSearchEntry> map.
|
|
1928
|
-
remoteSearch: y()
|
|
1929
|
-
};
|
|
1930
|
-
},
|
|
1931
|
-
computed: {
|
|
1932
|
-
/* eslint-disable valid-jsdoc */
|
|
1933
|
-
/**
|
|
1934
|
-
* Normalized nodes that have been selected.
|
|
1935
|
-
* @type {node[]}
|
|
1936
|
-
*/
|
|
1937
|
-
selectedNodes() {
|
|
1938
|
-
return this.forest.selectedNodeIds.map(this.getNode);
|
|
1939
|
-
},
|
|
1940
|
-
/**
|
|
1941
|
-
* Id list of selected nodes with `sortValueBy` prop applied.
|
|
1942
|
-
* @type {nodeId[]}
|
|
1943
|
-
*/
|
|
1944
|
-
internalValue() {
|
|
1945
|
-
let e;
|
|
1946
|
-
if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === Q)
|
|
1947
|
-
e = this.forest.selectedNodeIds.slice();
|
|
1948
|
-
else if (this.valueConsistsOf === B)
|
|
1949
|
-
e = this.forest.selectedNodeIds.filter((t) => {
|
|
1950
|
-
const o = this.getNode(t);
|
|
1951
|
-
return o.isRootNode ? !0 : !this.isSelected(o.parentNode);
|
|
1952
|
-
});
|
|
1953
|
-
else if (this.valueConsistsOf === K)
|
|
1954
|
-
e = this.forest.selectedNodeIds.filter((t) => {
|
|
1955
|
-
const o = this.getNode(t);
|
|
1956
|
-
return o.isLeaf ? !0 : o.children.length === 0;
|
|
1957
|
-
});
|
|
1958
|
-
else if (this.valueConsistsOf === U) {
|
|
1959
|
-
const t = [];
|
|
1960
|
-
e = this.forest.selectedNodeIds.slice(), this.selectedNodes.forEach((o) => {
|
|
1961
|
-
o.ancestors.forEach((r) => {
|
|
1962
|
-
w(t, r.id) || w(e, r.id) || t.push(r.id);
|
|
1963
|
-
});
|
|
1964
|
-
}), e.push(...t);
|
|
1965
|
-
}
|
|
1966
|
-
return this.sortValueBy === br ? e.sort((t, o) => Nn(this.getNode(t), this.getNode(o))) : this.sortValueBy === Sr && e.sort((t, o) => Mr(this.getNode(t), this.getNode(o))), e;
|
|
1967
|
-
},
|
|
1968
|
-
/**
|
|
1969
|
-
* Has any option been selected?
|
|
1970
|
-
* @type {boolean}
|
|
1971
|
-
*/
|
|
1972
|
-
hasValue() {
|
|
1973
|
-
return this.internalValue.length > 0;
|
|
1974
|
-
},
|
|
1975
|
-
/**
|
|
1976
|
-
* Single-select mode?
|
|
1977
|
-
* @type {boolean}
|
|
1978
|
-
*/
|
|
1979
|
-
single() {
|
|
1980
|
-
return !this.multiple;
|
|
1981
|
-
},
|
|
1982
|
-
/**
|
|
1983
|
-
* Id list of nodes displayed in the menu. Nodes that are considered NOT visible:
|
|
1984
|
-
* - descendants of a collapsed branch node
|
|
1985
|
-
* - in local search mode, nodes that are not matched, unless
|
|
1986
|
-
* - it's a branch node and has matched descendants
|
|
1987
|
-
* - it's a leaf node and its parent node is explicitly set to show all children
|
|
1988
|
-
* @type {id[]}
|
|
1989
|
-
*/
|
|
1990
|
-
visibleOptionIds() {
|
|
1991
|
-
const e = [];
|
|
1992
|
-
return this.traverseAllNodesByIndex((t) => {
|
|
1993
|
-
if ((!this.localSearch.active || this.shouldOptionBeIncludedInSearchResult(t)) && e.push(t.id), t.isBranch && !this.shouldExpand(t))
|
|
1994
|
-
return !1;
|
|
1995
|
-
}), e;
|
|
1996
|
-
},
|
|
1997
|
-
/**
|
|
1998
|
-
* Has any option should be displayed in the menu?
|
|
1999
|
-
* @type {boolean}
|
|
2000
|
-
*/
|
|
2001
|
-
hasVisibleOptions() {
|
|
2002
|
-
return this.visibleOptionIds.length !== 0;
|
|
2003
|
-
},
|
|
2004
|
-
/**
|
|
2005
|
-
* Should show children count when searching?
|
|
2006
|
-
* @type {boolean}
|
|
2007
|
-
*/
|
|
2008
|
-
showCountOnSearchComputed() {
|
|
2009
|
-
return typeof this.showCountOnSearch == "boolean" ? this.showCountOnSearch : this.showCount;
|
|
2010
|
-
},
|
|
2011
|
-
/**
|
|
2012
|
-
* Is there any branch node?
|
|
2013
|
-
* @type {boolean}
|
|
2014
|
-
*/
|
|
2015
|
-
hasBranchNodes() {
|
|
2016
|
-
return this.forest.normalizedOptions.some((e) => e.isBranch);
|
|
2017
|
-
},
|
|
2018
|
-
shouldFlattenOptions() {
|
|
2019
|
-
return this.localSearch.active && this.flattenSearchResults;
|
|
2020
|
-
}
|
|
2021
|
-
/* eslint-enable valid-jsdoc */
|
|
2022
|
-
},
|
|
2023
|
-
watch: {
|
|
2024
|
-
alwaysOpen(e) {
|
|
2025
|
-
e ? this.openMenu() : this.closeMenu();
|
|
2026
|
-
},
|
|
2027
|
-
branchNodesFirst() {
|
|
2028
|
-
this.initialize();
|
|
2029
|
-
},
|
|
2030
|
-
disabled(e) {
|
|
2031
|
-
e && this.menu.isOpen ? this.closeMenu() : !e && !this.menu.isOpen && this.alwaysOpen && this.openMenu();
|
|
2032
|
-
},
|
|
2033
|
-
flat() {
|
|
2034
|
-
this.initialize();
|
|
2035
|
-
},
|
|
2036
|
-
internalValue(e, t) {
|
|
2037
|
-
V(e, t) && this.$emit("input", this.getValue(), this.getInstanceId());
|
|
2038
|
-
},
|
|
2039
|
-
matchKeys() {
|
|
2040
|
-
this.initialize();
|
|
2041
|
-
},
|
|
2042
|
-
multiple(e) {
|
|
2043
|
-
e && this.buildForestState();
|
|
2044
|
-
},
|
|
2045
|
-
options: {
|
|
2046
|
-
handler() {
|
|
2047
|
-
this.async || (this.initialize(), this.rootOptionsStates.isLoaded = Array.isArray(this.options));
|
|
2048
|
-
},
|
|
2049
|
-
deep: !0,
|
|
2050
|
-
immediate: !0
|
|
2051
|
-
},
|
|
2052
|
-
"trigger.searchQuery"() {
|
|
2053
|
-
this.async ? this.handleRemoteSearch() : this.handleLocalSearch(), this.$emit("search-change", this.trigger.searchQuery, this.getInstanceId());
|
|
2054
|
-
},
|
|
2055
|
-
value() {
|
|
2056
|
-
const e = this.extractCheckedNodeIdsFromValue();
|
|
2057
|
-
V(e, this.internalValue) && this.fixSelectedNodeIds(e);
|
|
2058
|
-
}
|
|
2059
|
-
},
|
|
2060
|
-
methods: {
|
|
2061
|
-
verifyProps() {
|
|
2062
|
-
C(
|
|
2063
|
-
() => this.async ? this.searchable : !0,
|
|
2064
|
-
() => 'For async search mode, the value of "searchable" prop must be true.'
|
|
2065
|
-
), this.options == null && !this.loadOptions && C(
|
|
2066
|
-
() => !1,
|
|
2067
|
-
() => 'Are you meant to dynamically load options? You need to use "loadOptions" prop.'
|
|
2068
|
-
), this.flat && C(
|
|
2069
|
-
() => this.multiple,
|
|
2070
|
-
() => 'You are using flat mode. But you forgot to add "multiple=true"?'
|
|
2071
|
-
), this.flat || [
|
|
2072
|
-
"autoSelectAncestors",
|
|
2073
|
-
"autoSelectDescendants",
|
|
2074
|
-
"autoDeselectAncestors",
|
|
2075
|
-
"autoDeselectDescendants"
|
|
2076
|
-
].forEach((t) => {
|
|
2077
|
-
C(
|
|
2078
|
-
() => !this[t],
|
|
2079
|
-
() => `"${t}" only applies to flat mode.`
|
|
2080
|
-
);
|
|
2081
|
-
});
|
|
2082
|
-
},
|
|
2083
|
-
resetFlags() {
|
|
2084
|
-
this._blurOnSelect = !1;
|
|
2085
|
-
},
|
|
2086
|
-
initialize() {
|
|
2087
|
-
const e = this.async ? this.getRemoteSearchEntry().options : this.options;
|
|
2088
|
-
if (Array.isArray(e)) {
|
|
2089
|
-
const t = this.forest.nodeMap;
|
|
2090
|
-
this.forest.nodeMap = y(), this.keepDataOfSelectedNodes(t), this.forest.normalizedOptions = this.normalize(F, e, t), this.fixSelectedNodeIds(this.internalValue);
|
|
2091
|
-
} else
|
|
2092
|
-
this.forest.normalizedOptions = [];
|
|
2093
|
-
},
|
|
2094
|
-
getInstanceId() {
|
|
2095
|
-
return this.instanceId == null ? this.id : this.instanceId;
|
|
2096
|
-
},
|
|
2097
|
-
getValue() {
|
|
2098
|
-
if (this.valueFormat === "id")
|
|
2099
|
-
return this.multiple ? this.internalValue.slice() : this.internalValue[0];
|
|
2100
|
-
const e = this.internalValue.map((t) => this.getNode(t).raw);
|
|
2101
|
-
return this.multiple ? e : e[0];
|
|
2102
|
-
},
|
|
2103
|
-
getNode(e) {
|
|
2104
|
-
return C(
|
|
2105
|
-
() => e != null,
|
|
2106
|
-
() => `Invalid node id: ${e}`
|
|
2107
|
-
), e == null ? null : e in this.forest.nodeMap ? this.forest.nodeMap[e] : this.createFallbackNode(e);
|
|
2108
|
-
},
|
|
2109
|
-
createFallbackNode(e) {
|
|
2110
|
-
const t = this.extractNodeFromValue(e), o = this.enhancedNormalizer(t).label || `${e} (unknown)`, r = {
|
|
2111
|
-
id: e,
|
|
2112
|
-
label: o,
|
|
2113
|
-
ancestors: [],
|
|
2114
|
-
parentNode: F,
|
|
2115
|
-
isFallbackNode: !0,
|
|
2116
|
-
isRootNode: !0,
|
|
2117
|
-
isLeaf: !0,
|
|
2118
|
-
isBranch: !1,
|
|
2119
|
-
isDisabled: !1,
|
|
2120
|
-
isNew: !1,
|
|
2121
|
-
index: [-1],
|
|
2122
|
-
level: 0,
|
|
2123
|
-
raw: t
|
|
2124
|
-
};
|
|
2125
|
-
return this.$set(this.forest.nodeMap, e, r);
|
|
2126
|
-
},
|
|
2127
|
-
extractCheckedNodeIdsFromValue() {
|
|
2128
|
-
return this.value == null ? [] : this.valueFormat === "id" ? this.multiple ? this.value.slice() : [this.value] : (this.multiple ? this.value : [this.value]).map((e) => this.enhancedNormalizer(e)).map((e) => e.id);
|
|
2129
|
-
},
|
|
2130
|
-
extractNodeFromValue(e) {
|
|
2131
|
-
const t = { id: e };
|
|
2132
|
-
if (this.valueFormat === "id")
|
|
2133
|
-
return t;
|
|
2134
|
-
const o = this.multiple ? Array.isArray(this.value) ? this.value : [] : this.value ? [this.value] : [];
|
|
2135
|
-
return $r(o, (n) => n && this.enhancedNormalizer(n).id === e) || t;
|
|
2136
|
-
},
|
|
2137
|
-
fixSelectedNodeIds(e) {
|
|
2138
|
-
let t = [];
|
|
2139
|
-
if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === Q)
|
|
2140
|
-
t = e;
|
|
2141
|
-
else if (this.valueConsistsOf === B)
|
|
2142
|
-
e.forEach((r) => {
|
|
2143
|
-
t.push(r);
|
|
2144
|
-
const n = this.getNode(r);
|
|
2145
|
-
n.isBranch && this.traverseDescendantsBFS(n, (i) => {
|
|
2146
|
-
t.push(i.id);
|
|
2147
|
-
});
|
|
2148
|
-
});
|
|
2149
|
-
else if (this.valueConsistsOf === K) {
|
|
2150
|
-
const r = y(), n = e.slice();
|
|
2151
|
-
for (; n.length; ) {
|
|
2152
|
-
const i = n.shift(), a = this.getNode(i);
|
|
2153
|
-
t.push(i), !a.isRootNode && (a.parentNode.id in r || (r[a.parentNode.id] = a.parentNode.children.length), --r[a.parentNode.id] === 0 && n.push(a.parentNode.id));
|
|
2154
|
-
}
|
|
2155
|
-
} else if (this.valueConsistsOf === U) {
|
|
2156
|
-
const r = y(), n = e.filter((i) => {
|
|
2157
|
-
const a = this.getNode(i);
|
|
2158
|
-
return a.isLeaf || a.children.length === 0;
|
|
2159
|
-
});
|
|
2160
|
-
for (; n.length; ) {
|
|
2161
|
-
const i = n.shift(), a = this.getNode(i);
|
|
2162
|
-
t.push(i), !a.isRootNode && (a.parentNode.id in r || (r[a.parentNode.id] = a.parentNode.children.length), --r[a.parentNode.id] === 0 && n.push(a.parentNode.id));
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
V(this.forest.selectedNodeIds, t) && (this.forest.selectedNodeIds = t), this.buildForestState();
|
|
2166
|
-
},
|
|
2167
|
-
keepDataOfSelectedNodes(e) {
|
|
2168
|
-
this.forest.selectedNodeIds.forEach((t) => {
|
|
2169
|
-
if (!e[t])
|
|
2170
|
-
return;
|
|
2171
|
-
const o = D(g({}, e[t]), {
|
|
2172
|
-
isFallbackNode: !0
|
|
2173
|
-
});
|
|
2174
|
-
this.$set(this.forest.nodeMap, t, o);
|
|
2175
|
-
});
|
|
2176
|
-
},
|
|
2177
|
-
isSelected(e) {
|
|
2178
|
-
return this.forest.selectedNodeMap[e.id] === !0;
|
|
2179
|
-
},
|
|
2180
|
-
traverseDescendantsBFS(e, t) {
|
|
2181
|
-
if (!e.isBranch)
|
|
2182
|
-
return;
|
|
2183
|
-
const o = e.children.slice();
|
|
2184
|
-
for (; o.length; ) {
|
|
2185
|
-
const r = o[0];
|
|
2186
|
-
r.isBranch && o.push(...r.children), t(r), o.shift();
|
|
2187
|
-
}
|
|
2188
|
-
},
|
|
2189
|
-
traverseDescendantsDFS(e, t) {
|
|
2190
|
-
e.isBranch && e.children.forEach((o) => {
|
|
2191
|
-
this.traverseDescendantsDFS(o, t), t(o);
|
|
2192
|
-
});
|
|
2193
|
-
},
|
|
2194
|
-
traverseAllNodesDFS(e) {
|
|
2195
|
-
this.forest.normalizedOptions.forEach((t) => {
|
|
2196
|
-
this.traverseDescendantsDFS(t, e), e(t);
|
|
2197
|
-
});
|
|
2198
|
-
},
|
|
2199
|
-
traverseAllNodesByIndex(e) {
|
|
2200
|
-
const t = (o) => {
|
|
2201
|
-
o.children.forEach((r) => {
|
|
2202
|
-
e(r) !== !1 && r.isBranch && t(r);
|
|
2203
|
-
});
|
|
2204
|
-
};
|
|
2205
|
-
t({ children: this.forest.normalizedOptions });
|
|
2206
|
-
},
|
|
2207
|
-
toggleClickOutsideEvent(e) {
|
|
2208
|
-
e ? document.addEventListener("mousedown", this.handleClickOutside, !1) : document.removeEventListener("mousedown", this.handleClickOutside, !1);
|
|
2209
|
-
},
|
|
2210
|
-
getValueContainer() {
|
|
2211
|
-
return this.$refs.control.$refs["value-container"];
|
|
2212
|
-
},
|
|
2213
|
-
getInput() {
|
|
2214
|
-
return this.getValueContainer().$refs.input;
|
|
2215
|
-
},
|
|
2216
|
-
focusInput() {
|
|
2217
|
-
this.getInput().focus();
|
|
2218
|
-
},
|
|
2219
|
-
blurInput() {
|
|
2220
|
-
this.getInput().blur();
|
|
2221
|
-
},
|
|
2222
|
-
handleMouseDown: I(function(t) {
|
|
2223
|
-
if (t.preventDefault(), t.stopPropagation(), this.disabled)
|
|
2224
|
-
return;
|
|
2225
|
-
this.getValueContainer().$el.contains(t.target) && !this.menu.isOpen && (this.openOnClick || this.trigger.isFocused) && this.openMenu(), this._blurOnSelect ? this.blurInput() : this.focusInput(), this.resetFlags();
|
|
2226
|
-
}),
|
|
2227
|
-
handleClickOutside(e) {
|
|
2228
|
-
this.$refs.wrapper && !this.$refs.wrapper.contains(e.target) && (this.blurInput(), this.closeMenu());
|
|
2229
|
-
},
|
|
2230
|
-
handleLocalSearch() {
|
|
2231
|
-
const { searchQuery: e } = this.trigger, t = () => this.resetHighlightedOptionWhenNecessary(!0);
|
|
2232
|
-
if (!e)
|
|
2233
|
-
return this.localSearch.active = !1, t();
|
|
2234
|
-
this.localSearch.active = !0, this.localSearch.noResults = !0, this.traverseAllNodesDFS((n) => {
|
|
2235
|
-
n.isBranch && (n.isExpandedOnSearch = !1, n.showAllChildrenOnSearch = !1, n.isMatched = !1, n.hasMatchedDescendants = !1, this.$set(this.localSearch.countMap, n.id, {
|
|
2236
|
-
[$]: 0,
|
|
2237
|
-
[L]: 0,
|
|
2238
|
-
[R]: 0,
|
|
2239
|
-
[M]: 0
|
|
2240
|
-
}));
|
|
2241
|
-
});
|
|
2242
|
-
const o = e.trim().toLocaleLowerCase(), r = o.replace(/\s+/g, " ").split(" ");
|
|
2243
|
-
this.traverseAllNodesDFS((n) => {
|
|
2244
|
-
this.searchNested && r.length > 1 ? n.isMatched = r.every((i) => xr(!1, i, n.nestedSearchLabel)) : n.isMatched = this.matchKeys.some(
|
|
2245
|
-
(i) => xr(!this.disableFuzzyMatching, o, n.lowerCased[i])
|
|
2246
|
-
), n.isMatched && (this.localSearch.noResults = !1, n.ancestors.forEach((i) => this.localSearch.countMap[i.id][L]++), n.isLeaf && n.ancestors.forEach((i) => this.localSearch.countMap[i.id][M]++), n.parentNode !== F && (this.localSearch.countMap[n.parentNode.id][$] += 1, n.isLeaf && (this.localSearch.countMap[n.parentNode.id][R] += 1))), (n.isMatched || n.isBranch && n.isExpandedOnSearch) && n.parentNode !== F && (n.parentNode.isExpandedOnSearch = !0, n.parentNode.hasMatchedDescendants = !0);
|
|
2247
|
-
}), t();
|
|
2248
|
-
},
|
|
2249
|
-
handleRemoteSearch() {
|
|
2250
|
-
const { searchQuery: e } = this.trigger, t = this.getRemoteSearchEntry(), o = () => {
|
|
2251
|
-
this.initialize(), this.resetHighlightedOptionWhenNecessary(!0);
|
|
2252
|
-
};
|
|
2253
|
-
if ((e === "" || this.cacheOptions) && t.isLoaded)
|
|
2254
|
-
return o();
|
|
2255
|
-
this.callLoadOptionsProp({
|
|
2256
|
-
action: wn,
|
|
2257
|
-
args: { searchQuery: e },
|
|
2258
|
-
isPending() {
|
|
2259
|
-
return t.isLoading;
|
|
2260
|
-
},
|
|
2261
|
-
start: () => {
|
|
2262
|
-
t.isLoading = !0, t.isLoaded = !1, t.loadingError = "";
|
|
2263
|
-
},
|
|
2264
|
-
succeed: (r) => {
|
|
2265
|
-
t.isLoaded = !0, t.options = r, this.trigger.searchQuery === e && o();
|
|
2266
|
-
},
|
|
2267
|
-
fail: (r) => {
|
|
2268
|
-
t.loadingError = X(r);
|
|
2269
|
-
},
|
|
2270
|
-
end: () => {
|
|
2271
|
-
t.isLoading = !1;
|
|
2272
|
-
}
|
|
2273
|
-
});
|
|
2274
|
-
},
|
|
2275
|
-
getRemoteSearchEntry() {
|
|
2276
|
-
const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || D(g({}, G()), {
|
|
2277
|
-
options: []
|
|
2278
|
-
});
|
|
2279
|
-
if (this.$watch(
|
|
2280
|
-
() => t.options,
|
|
2281
|
-
() => {
|
|
2282
|
-
this.trigger.searchQuery === e && this.initialize();
|
|
2283
|
-
},
|
|
2284
|
-
{ deep: !0 }
|
|
2285
|
-
), e === "") {
|
|
2286
|
-
if (Array.isArray(this.defaultOptions))
|
|
2287
|
-
return t.options = this.defaultOptions, t.isLoaded = !0, t;
|
|
2288
|
-
if (this.defaultOptions !== !0)
|
|
2289
|
-
return t.isLoaded = !0, t;
|
|
2290
|
-
}
|
|
2291
|
-
return this.remoteSearch[e] || this.$set(this.remoteSearch, e, t), t;
|
|
2292
|
-
},
|
|
2293
|
-
shouldExpand(e) {
|
|
2294
|
-
return this.localSearch.active ? e.isExpandedOnSearch : e.isExpanded;
|
|
2295
|
-
},
|
|
2296
|
-
shouldOptionBeIncludedInSearchResult(e) {
|
|
2297
|
-
return !!(e.isMatched || e.isBranch && e.hasMatchedDescendants && !this.flattenSearchResults || !e.isRootNode && e.parentNode.showAllChildrenOnSearch);
|
|
2298
|
-
},
|
|
2299
|
-
shouldShowOptionInMenu(e) {
|
|
2300
|
-
return !(this.localSearch.active && !this.shouldOptionBeIncludedInSearchResult(e));
|
|
2301
|
-
},
|
|
2302
|
-
getControl() {
|
|
2303
|
-
return this.$refs.control.$el;
|
|
2304
|
-
},
|
|
2305
|
-
getMenu() {
|
|
2306
|
-
const t = (this.appendToBody ? this.$refs.portal.portalTarget : this).$refs.menu.$refs.menu;
|
|
2307
|
-
return t && t.nodeName !== "#comment" ? t : null;
|
|
2308
|
-
},
|
|
2309
|
-
setCurrentHighlightedOption(e, t = !0) {
|
|
2310
|
-
const o = this.menu.current;
|
|
2311
|
-
if (o != null && o in this.forest.nodeMap && (this.forest.nodeMap[o].isHighlighted = !1), this.menu.current = e.id, e.isHighlighted = !0, this.menu.isOpen && t) {
|
|
2312
|
-
const r = () => {
|
|
2313
|
-
const n = this.getMenu(), i = n.querySelector(`.vue-treeselect__option[data-id="${e.id}"]`);
|
|
2314
|
-
i && mn(n, i);
|
|
2315
|
-
};
|
|
2316
|
-
this.getMenu() ? r() : this.$nextTick(r);
|
|
2317
|
-
}
|
|
2318
|
-
},
|
|
2319
|
-
resetHighlightedOptionWhenNecessary(e = !1) {
|
|
2320
|
-
const { current: t } = this.menu;
|
|
2321
|
-
(e || t == null || !(t in this.forest.nodeMap) || !this.shouldShowOptionInMenu(this.getNode(t))) && this.highlightFirstOption();
|
|
2322
|
-
},
|
|
2323
|
-
highlightFirstOption() {
|
|
2324
|
-
if (!this.hasVisibleOptions)
|
|
2325
|
-
return;
|
|
2326
|
-
const e = this.visibleOptionIds[0];
|
|
2327
|
-
this.setCurrentHighlightedOption(this.getNode(e));
|
|
2328
|
-
},
|
|
2329
|
-
highlightPrevOption() {
|
|
2330
|
-
if (!this.hasVisibleOptions)
|
|
2331
|
-
return;
|
|
2332
|
-
const e = this.visibleOptionIds.indexOf(this.menu.current) - 1;
|
|
2333
|
-
if (e === -1)
|
|
2334
|
-
return this.highlightLastOption();
|
|
2335
|
-
this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]));
|
|
2336
|
-
},
|
|
2337
|
-
highlightNextOption() {
|
|
2338
|
-
if (!this.hasVisibleOptions)
|
|
2339
|
-
return;
|
|
2340
|
-
const e = this.visibleOptionIds.indexOf(this.menu.current) + 1;
|
|
2341
|
-
if (e === this.visibleOptionIds.length)
|
|
2342
|
-
return this.highlightFirstOption();
|
|
2343
|
-
this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]));
|
|
2344
|
-
},
|
|
2345
|
-
highlightLastOption() {
|
|
2346
|
-
if (!this.hasVisibleOptions)
|
|
2347
|
-
return;
|
|
2348
|
-
const e = ir(this.visibleOptionIds);
|
|
2349
|
-
this.setCurrentHighlightedOption(this.getNode(e));
|
|
2350
|
-
},
|
|
2351
|
-
resetSearchQuery() {
|
|
2352
|
-
this.trigger.searchQuery = "";
|
|
2353
|
-
},
|
|
2354
|
-
closeMenu() {
|
|
2355
|
-
!this.menu.isOpen || !this.disabled && this.alwaysOpen || (this.saveMenuScrollPosition(), this.menu.isOpen = !1, this.toggleClickOutsideEvent(!1), this.resetSearchQuery(), this.$emit("close", this.getValue(), this.getInstanceId()));
|
|
2356
|
-
},
|
|
2357
|
-
openMenu() {
|
|
2358
|
-
this.disabled || this.menu.isOpen || (this.menu.isOpen = !0, this.$nextTick(this.resetHighlightedOptionWhenNecessary), this.$nextTick(this.restoreMenuScrollPosition), !this.options && !this.async && this.loadRootOptions(), this.toggleClickOutsideEvent(!0), this.$emit("open", this.getInstanceId()));
|
|
2359
|
-
},
|
|
2360
|
-
toggleMenu() {
|
|
2361
|
-
this.menu.isOpen ? this.closeMenu() : this.openMenu();
|
|
2362
|
-
},
|
|
2363
|
-
toggleExpanded(e) {
|
|
2364
|
-
let t;
|
|
2365
|
-
this.localSearch.active ? (t = e.isExpandedOnSearch = !e.isExpandedOnSearch, t && (e.showAllChildrenOnSearch = !0)) : t = e.isExpanded = !e.isExpanded, t && !e.childrenStates.isLoaded && this.loadChildrenOptions(e);
|
|
2366
|
-
},
|
|
2367
|
-
buildForestState() {
|
|
2368
|
-
const e = y();
|
|
2369
|
-
this.forest.selectedNodeIds.forEach((o) => {
|
|
2370
|
-
e[o] = !0;
|
|
2371
|
-
}), this.forest.selectedNodeMap = e;
|
|
2372
|
-
const t = y();
|
|
2373
|
-
this.multiple && (this.traverseAllNodesByIndex((o) => {
|
|
2374
|
-
t[o.id] = re;
|
|
2375
|
-
}), this.selectedNodes.forEach((o) => {
|
|
2376
|
-
t[o.id] = Rr, !this.flat && !this.disableBranchNodes && o.ancestors.forEach((r) => {
|
|
2377
|
-
this.isSelected(r) || (t[r.id] = Lr);
|
|
2378
|
-
});
|
|
2379
|
-
})), this.forest.checkedStateMap = t;
|
|
2380
|
-
},
|
|
2381
|
-
enhancedNormalizer(e) {
|
|
2382
|
-
return g(g({}, e), this.normalizer(e, this.getInstanceId()));
|
|
2383
|
-
},
|
|
2384
|
-
normalize(e, t, o) {
|
|
2385
|
-
let r = t.map((n) => [this.enhancedNormalizer(n), n]).map(([n, i], a) => {
|
|
2386
|
-
this.checkDuplication(n), this.verifyNodeShape(n);
|
|
2387
|
-
const { id: p, label: l, children: c, isDefaultExpanded: f } = n, u = e === F, h = u ? 0 : e.level + 1, E = Array.isArray(c) || c === null, _ = !E, O = !!n.isDisabled || !this.flat && !u && e.isDisabled, z = !!n.isNew, S = this.matchKeys.reduce(
|
|
2388
|
-
(m, N) => D(g({}, m), {
|
|
2389
|
-
[N]: Fn(n[N]).toLocaleLowerCase()
|
|
2390
|
-
}),
|
|
2391
|
-
{}
|
|
2392
|
-
), T = u ? S.label : `${e.nestedSearchLabel} ${S.label}`, d = this.$set(this.forest.nodeMap, p, y());
|
|
2393
|
-
if (this.$set(d, "id", p), this.$set(d, "label", l), this.$set(d, "level", h), this.$set(d, "ancestors", u ? [] : [e].concat(e.ancestors)), this.$set(d, "index", (u ? [] : e.index).concat(a)), this.$set(d, "parentNode", e), this.$set(d, "lowerCased", S), this.$set(d, "nestedSearchLabel", T), this.$set(d, "isDisabled", O), this.$set(d, "isNew", z), this.$set(d, "isMatched", !1), this.$set(d, "isHighlighted", !1), this.$set(d, "isBranch", E), this.$set(d, "isLeaf", _), this.$set(d, "isRootNode", u), this.$set(d, "raw", i), E) {
|
|
2394
|
-
const m = Array.isArray(c);
|
|
2395
|
-
this.$set(d, "childrenStates", D(g({}, G()), {
|
|
2396
|
-
isLoaded: m
|
|
2397
|
-
})), this.$set(
|
|
2398
|
-
d,
|
|
2399
|
-
"isExpanded",
|
|
2400
|
-
typeof f == "boolean" ? f : h < this.defaultExpandLevel
|
|
2401
|
-
), this.$set(d, "hasMatchedDescendants", !1), this.$set(d, "hasDisabledDescendants", !1), this.$set(d, "isExpandedOnSearch", !1), this.$set(d, "showAllChildrenOnSearch", !1), this.$set(d, "count", {
|
|
2402
|
-
[$]: 0,
|
|
2403
|
-
[L]: 0,
|
|
2404
|
-
[R]: 0,
|
|
2405
|
-
[M]: 0
|
|
2406
|
-
}), this.$set(d, "children", m ? this.normalize(d, c, o) : []), f === !0 && d.ancestors.forEach((N) => {
|
|
2407
|
-
N.isExpanded = !0;
|
|
2408
|
-
}), !m && typeof this.loadOptions != "function" ? C(
|
|
2409
|
-
() => !1,
|
|
2410
|
-
() => 'Unloaded branch node detected. "loadOptions" prop is required to load its children.'
|
|
2411
|
-
) : !m && d.isExpanded && this.loadChildrenOptions(d);
|
|
2412
|
-
}
|
|
2413
|
-
if (d.ancestors.forEach((m) => m.count[L]++), _ && d.ancestors.forEach((m) => m.count[M]++), u || (e.count[$] += 1, _ && (e.count[R] += 1), O && (e.hasDisabledDescendants = !0)), o && o[p]) {
|
|
2414
|
-
const m = o[p];
|
|
2415
|
-
d.isMatched = m.isMatched, d.showAllChildrenOnSearch = m.showAllChildrenOnSearch, d.isHighlighted = m.isHighlighted, m.isBranch && d.isBranch && (d.isExpanded = m.isExpanded, d.isExpandedOnSearch = m.isExpandedOnSearch, m.childrenStates.isLoaded && !d.childrenStates.isLoaded ? d.isExpanded = !1 : d.childrenStates = g({}, m.childrenStates));
|
|
2416
|
-
}
|
|
2417
|
-
return d;
|
|
2418
|
-
});
|
|
2419
|
-
if (this.branchNodesFirst) {
|
|
2420
|
-
const n = r.filter((a) => a.isBranch), i = r.filter((a) => a.isLeaf);
|
|
2421
|
-
r = n.concat(i);
|
|
2422
|
-
}
|
|
2423
|
-
return r;
|
|
2424
|
-
},
|
|
2425
|
-
loadRootOptions() {
|
|
2426
|
-
this.callLoadOptionsProp({
|
|
2427
|
-
action: On,
|
|
2428
|
-
isPending: () => this.rootOptionsStates.isLoading,
|
|
2429
|
-
start: () => {
|
|
2430
|
-
this.rootOptionsStates.isLoading = !0, this.rootOptionsStates.loadingError = "";
|
|
2431
|
-
},
|
|
2432
|
-
succeed: () => {
|
|
2433
|
-
this.rootOptionsStates.isLoaded = !0, this.$nextTick(() => {
|
|
2434
|
-
this.resetHighlightedOptionWhenNecessary(!0);
|
|
2435
|
-
});
|
|
2436
|
-
},
|
|
2437
|
-
fail: (e) => {
|
|
2438
|
-
this.rootOptionsStates.loadingError = X(e);
|
|
2439
|
-
},
|
|
2440
|
-
end: () => {
|
|
2441
|
-
this.rootOptionsStates.isLoading = !1;
|
|
2442
|
-
}
|
|
2443
|
-
});
|
|
2444
|
-
},
|
|
2445
|
-
loadChildrenOptions(e) {
|
|
2446
|
-
const { id: t, raw: o } = e;
|
|
2447
|
-
this.callLoadOptionsProp({
|
|
2448
|
-
action: Cn,
|
|
2449
|
-
args: {
|
|
2450
|
-
// We always pass the raw node instead of the normalized node to any
|
|
2451
|
-
// callback provided by the user of this component.
|
|
2452
|
-
// Because the shape of the raw node is more likely to be closing to
|
|
2453
|
-
// what the back-end API service of the application needs.
|
|
2454
|
-
parentNode: o
|
|
2455
|
-
},
|
|
2456
|
-
isPending: () => this.getNode(t).childrenStates.isLoading,
|
|
2457
|
-
start: () => {
|
|
2458
|
-
this.getNode(t).childrenStates.isLoading = !0, this.getNode(t).childrenStates.loadingError = "";
|
|
2459
|
-
},
|
|
2460
|
-
succeed: () => {
|
|
2461
|
-
this.getNode(t).childrenStates.isLoaded = !0;
|
|
2462
|
-
},
|
|
2463
|
-
fail: (r) => {
|
|
2464
|
-
this.getNode(t).childrenStates.loadingError = X(r);
|
|
2465
|
-
},
|
|
2466
|
-
end: () => {
|
|
2467
|
-
this.getNode(t).childrenStates.isLoading = !1;
|
|
2468
|
-
}
|
|
2469
|
-
});
|
|
2470
|
-
},
|
|
2471
|
-
callLoadOptionsProp({ action: e, args: t, isPending: o, start: r, succeed: n, fail: i, end: a }) {
|
|
2472
|
-
if (!this.loadOptions || o())
|
|
2473
|
-
return;
|
|
2474
|
-
r();
|
|
2475
|
-
const p = on((c, f) => {
|
|
2476
|
-
c ? i(c) : n(f), a();
|
|
2477
|
-
}), l = this.loadOptions(D(g({
|
|
2478
|
-
id: this.getInstanceId(),
|
|
2479
|
-
instanceId: this.getInstanceId(),
|
|
2480
|
-
action: e
|
|
2481
|
-
}, t), {
|
|
2482
|
-
callback: p
|
|
2483
|
-
}));
|
|
2484
|
-
Or(l) && l.then(
|
|
2485
|
-
() => {
|
|
2486
|
-
p();
|
|
2487
|
-
},
|
|
2488
|
-
(c) => {
|
|
2489
|
-
p(c);
|
|
2490
|
-
}
|
|
2491
|
-
).catch((c) => {
|
|
2492
|
-
console.error(c);
|
|
2493
|
-
});
|
|
2494
|
-
},
|
|
2495
|
-
checkDuplication(e) {
|
|
2496
|
-
C(
|
|
2497
|
-
() => !(e.id in this.forest.nodeMap && !this.forest.nodeMap[e.id].isFallbackNode),
|
|
2498
|
-
() => `Detected duplicate presence of node id ${JSON.stringify(e.id)}. Their labels are "${this.forest.nodeMap[e.id].label}" and "${e.label}" respectively.`
|
|
2499
|
-
);
|
|
2500
|
-
},
|
|
2501
|
-
verifyNodeShape(e) {
|
|
2502
|
-
C(
|
|
2503
|
-
() => !(e.children === void 0 && e.isBranch === !0),
|
|
2504
|
-
() => "Are you meant to declare an unloaded branch node? `isBranch: true` is no longer supported, please use `children: null` instead."
|
|
2505
|
-
);
|
|
2506
|
-
},
|
|
2507
|
-
select(e) {
|
|
2508
|
-
if (this.disabled || e.isDisabled)
|
|
2509
|
-
return;
|
|
2510
|
-
this.single && this.clear();
|
|
2511
|
-
const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === re : !this.isSelected(e);
|
|
2512
|
-
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));
|
|
2513
|
-
},
|
|
2514
|
-
clear() {
|
|
2515
|
-
this.hasValue && (this.single || this.allowClearingDisabled ? this.forest.selectedNodeIds = [] : this.forest.selectedNodeIds = this.forest.selectedNodeIds.filter((e) => this.getNode(e).isDisabled), this.buildForestState());
|
|
2516
|
-
},
|
|
2517
|
-
// This is meant to be called only by `select()`.
|
|
2518
|
-
_selectNode(e) {
|
|
2519
|
-
if (this.single || this.disableBranchNodes)
|
|
2520
|
-
return this.addValue(e);
|
|
2521
|
-
if (this.flat) {
|
|
2522
|
-
this.addValue(e), this.autoSelectAncestors ? e.ancestors.forEach((o) => {
|
|
2523
|
-
!this.isSelected(o) && !o.isDisabled && this.addValue(o);
|
|
2524
|
-
}) : this.autoSelectDescendants && this.traverseDescendantsBFS(e, (o) => {
|
|
2525
|
-
!this.isSelected(o) && !o.isDisabled && this.addValue(o);
|
|
2526
|
-
});
|
|
2527
|
-
return;
|
|
2528
|
-
}
|
|
2529
|
-
const t = e.isLeaf || /* node.isBranch && */
|
|
2530
|
-
!e.hasDisabledDescendants || /* node.isBranch && */
|
|
2531
|
-
this.allowSelectingDisabledDescendants;
|
|
2532
|
-
if (t && this.addValue(e), e.isBranch && this.traverseDescendantsBFS(e, (o) => {
|
|
2533
|
-
(!o.isDisabled || this.allowSelectingDisabledDescendants) && this.addValue(o);
|
|
2534
|
-
}), t) {
|
|
2535
|
-
let o = e;
|
|
2536
|
-
for (; (o = o.parentNode) !== F && o.children.every(this.isSelected); )
|
|
2537
|
-
this.addValue(o);
|
|
2538
|
-
}
|
|
2539
|
-
},
|
|
2540
|
-
// This is meant to be called only by `select()`.
|
|
2541
|
-
_deselectNode(e) {
|
|
2542
|
-
if (this.disableBranchNodes)
|
|
2543
|
-
return this.removeValue(e);
|
|
2544
|
-
if (this.flat) {
|
|
2545
|
-
this.removeValue(e), this.autoDeselectAncestors ? e.ancestors.forEach((o) => {
|
|
2546
|
-
this.isSelected(o) && !o.isDisabled && this.removeValue(o);
|
|
2547
|
-
}) : this.autoDeselectDescendants && this.traverseDescendantsBFS(e, (o) => {
|
|
2548
|
-
this.isSelected(o) && !o.isDisabled && this.removeValue(o);
|
|
2549
|
-
});
|
|
2550
|
-
return;
|
|
2551
|
-
}
|
|
2552
|
-
let t = !1;
|
|
2553
|
-
if (e.isBranch && this.traverseDescendantsDFS(e, (o) => {
|
|
2554
|
-
(!o.isDisabled || this.allowSelectingDisabledDescendants) && (this.removeValue(o), t = !0);
|
|
2555
|
-
}), e.isLeaf || /* node.isBranch && */
|
|
2556
|
-
t || /* node.isBranch && */
|
|
2557
|
-
e.children.length === 0) {
|
|
2558
|
-
this.removeValue(e);
|
|
2559
|
-
let o = e;
|
|
2560
|
-
for (; (o = o.parentNode) !== F && this.isSelected(o); )
|
|
2561
|
-
this.removeValue(o);
|
|
2562
|
-
}
|
|
2563
|
-
},
|
|
2564
|
-
addValue(e) {
|
|
2565
|
-
this.forest.selectedNodeIds.push(e.id), this.forest.selectedNodeMap[e.id] = !0;
|
|
2566
|
-
},
|
|
2567
|
-
removeValue(e) {
|
|
2568
|
-
Er(this.forest.selectedNodeIds, e.id), delete this.forest.selectedNodeMap[e.id];
|
|
2569
|
-
},
|
|
2570
|
-
removeLastValue() {
|
|
2571
|
-
if (!this.hasValue)
|
|
2572
|
-
return;
|
|
2573
|
-
if (this.single)
|
|
2574
|
-
return this.clear();
|
|
2575
|
-
const e = ir(this.internalValue), t = this.getNode(e);
|
|
2576
|
-
this.select(t);
|
|
2577
|
-
},
|
|
2578
|
-
saveMenuScrollPosition() {
|
|
2579
|
-
const e = this.getMenu();
|
|
2580
|
-
e && (this.menu.lastScrollPosition = e.scrollTop);
|
|
2581
|
-
},
|
|
2582
|
-
restoreMenuScrollPosition() {
|
|
2583
|
-
const e = this.getMenu();
|
|
2584
|
-
e && (e.scrollTop = this.menu.lastScrollPosition);
|
|
2585
|
-
}
|
|
2586
|
-
},
|
|
2587
|
-
created() {
|
|
2588
|
-
this.verifyProps(), this.resetFlags();
|
|
2589
|
-
},
|
|
2590
|
-
mounted() {
|
|
2591
|
-
this.autoFocus && this.focusInput(), !this.options && !this.async && this.autoLoadRootOptions && this.loadRootOptions(), this.alwaysOpen && this.openMenu(), this.async && this.defaultOptions && this.handleRemoteSearch();
|
|
2592
|
-
},
|
|
2593
|
-
destroyed() {
|
|
2594
|
-
this.toggleClickOutsideEvent(!1);
|
|
2595
|
-
}
|
|
2596
|
-
};
|
|
2597
|
-
function Dn(e) {
|
|
2598
|
-
return typeof e == "string" ? e : e != null && !Tr(e) ? JSON.stringify(e) : "";
|
|
2599
|
-
}
|
|
2600
|
-
const $n = {
|
|
2601
|
-
name: "VueTreeSelectHiddenFields",
|
|
2602
|
-
functional: !0,
|
|
2603
|
-
inject: ["instance"],
|
|
2604
|
-
render(e, t) {
|
|
2605
|
-
const {
|
|
2606
|
-
instance: o
|
|
2607
|
-
} = t.injections;
|
|
2608
|
-
if (!o.name || o.disabled || !o.hasValue)
|
|
2609
|
-
return null;
|
|
2610
|
-
let r = o.internalValue.map(Dn);
|
|
2611
|
-
return o.multiple && o.joinValues && (r = [r.join(o.delimiter)]), r.map((n, i) => s("input", {
|
|
2612
|
-
attrs: {
|
|
2613
|
-
type: "hidden",
|
|
2614
|
-
name: o.name
|
|
2615
|
-
},
|
|
2616
|
-
domProps: {
|
|
2617
|
-
value: n
|
|
2618
|
-
},
|
|
2619
|
-
key: `hidden-field-${i}`
|
|
2620
|
-
}));
|
|
2621
|
-
}
|
|
2622
|
-
};
|
|
2623
|
-
function v(e, t, o, r, n, i, a, p) {
|
|
2624
|
-
var l = typeof e == "function" ? e.options : e;
|
|
2625
|
-
t && (l.render = t, l.staticRenderFns = o, l._compiled = !0), r && (l.functional = !0), i && (l._scopeId = "data-v-" + i);
|
|
2626
|
-
var c;
|
|
2627
|
-
if (a ? (c = function(h) {
|
|
2628
|
-
h = h || // cached call
|
|
2629
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
2630
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !h && typeof __VUE_SSR_CONTEXT__ != "undefined" && (h = __VUE_SSR_CONTEXT__), n && n.call(this, h), h && h._registeredComponents && h._registeredComponents.add(a);
|
|
2631
|
-
}, l._ssrRegister = c) : n && (c = p ? function() {
|
|
2632
|
-
n.call(
|
|
2633
|
-
this,
|
|
2634
|
-
(l.functional ? this.parent : this).$root.$options.shadowRoot
|
|
2635
|
-
);
|
|
2636
|
-
} : n), c)
|
|
2637
|
-
if (l.functional) {
|
|
2638
|
-
l._injectStyles = c;
|
|
2639
|
-
var f = l.render;
|
|
2640
|
-
l.render = function(E, _) {
|
|
2641
|
-
return c.call(_), f(E, _);
|
|
2642
|
-
};
|
|
2643
|
-
} else {
|
|
2644
|
-
var u = l.beforeCreate;
|
|
2645
|
-
l.beforeCreate = u ? [].concat(u, c) : [c];
|
|
2646
|
-
}
|
|
2647
|
-
return {
|
|
2648
|
-
exports: e,
|
|
2649
|
-
options: l
|
|
2650
|
-
};
|
|
2651
|
-
}
|
|
2652
|
-
const Ln = null, Rn = null;
|
|
2653
|
-
var Mn = /* @__PURE__ */ v(
|
|
2654
|
-
$n,
|
|
2655
|
-
Ln,
|
|
2656
|
-
Rn,
|
|
2657
|
-
!1,
|
|
2658
|
-
null,
|
|
2659
|
-
null,
|
|
2660
|
-
null,
|
|
2661
|
-
null
|
|
2662
|
-
);
|
|
2663
|
-
const Bn = Mn.exports;
|
|
2664
|
-
function An(e) {
|
|
2665
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2666
|
-
}
|
|
2667
|
-
function ne() {
|
|
2668
|
-
return ne = Object.assign ? Object.assign.bind() : function(e) {
|
|
2669
|
-
for (var t, o = 1; o < arguments.length; o++)
|
|
2670
|
-
for (var r in t = arguments[o], t)
|
|
2671
|
-
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
2672
|
-
return e;
|
|
2673
|
-
}, ne.apply(this, arguments);
|
|
2674
|
-
}
|
|
2675
|
-
var Pn = ["attrs", "props", "domProps"], kn = ["class", "style", "directives"], zn = ["on", "nativeOn"], Hn = function(e) {
|
|
2676
|
-
return e.reduce(function(t, o) {
|
|
2677
|
-
for (var r in o)
|
|
2678
|
-
if (!t[r])
|
|
2679
|
-
t[r] = o[r];
|
|
2680
|
-
else if (Pn.indexOf(r) !== -1)
|
|
2681
|
-
t[r] = ne({}, t[r], o[r]);
|
|
2682
|
-
else if (kn.indexOf(r) !== -1) {
|
|
2683
|
-
var n = t[r] instanceof Array ? t[r] : [t[r]], i = o[r] instanceof Array ? o[r] : [o[r]];
|
|
2684
|
-
t[r] = [].concat(n, i);
|
|
2685
|
-
} else if (zn.indexOf(r) !== -1)
|
|
2686
|
-
for (var a in o[r])
|
|
2687
|
-
if (t[r][a]) {
|
|
2688
|
-
var p = t[r][a] instanceof Array ? t[r][a] : [t[r][a]], l = o[r][a] instanceof Array ? o[r][a] : [o[r][a]];
|
|
2689
|
-
t[r][a] = [].concat(p, l);
|
|
2690
|
-
} else
|
|
2691
|
-
t[r][a] = o[r][a];
|
|
2692
|
-
else if (r === "hook")
|
|
2693
|
-
for (var c in o[r])
|
|
2694
|
-
t[r][c] = t[r][c] ? Wn(t[r][c], o[r][c]) : o[r][c];
|
|
2695
|
-
else
|
|
2696
|
-
t[r] = o[r];
|
|
2697
|
-
return t;
|
|
2698
|
-
}, {});
|
|
2699
|
-
}, Wn = function(e, t) {
|
|
2700
|
-
return function() {
|
|
2701
|
-
e && e.apply(this, arguments), t && t.apply(this, arguments);
|
|
2702
|
-
};
|
|
2703
|
-
}, jn = Hn;
|
|
2704
|
-
const k = /* @__PURE__ */ An(jn), qn = [b.ENTER, b.END, b.HOME, b.ARROW_LEFT, b.ARROW_UP, b.ARROW_RIGHT, b.ARROW_DOWN], Vn = {
|
|
2705
|
-
name: "VueTreeSelectInput",
|
|
2706
|
-
inject: ["instance"],
|
|
2707
|
-
data: () => ({
|
|
2708
|
-
inputWidth: vr,
|
|
2709
|
-
value: ""
|
|
2710
|
-
}),
|
|
2711
|
-
computed: {
|
|
2712
|
-
needAutoSize() {
|
|
2713
|
-
const {
|
|
2714
|
-
instance: e
|
|
2715
|
-
} = this;
|
|
2716
|
-
return e.searchable && !e.disabled && e.multiple;
|
|
2717
|
-
},
|
|
2718
|
-
inputStyle() {
|
|
2719
|
-
return {
|
|
2720
|
-
width: this.needAutoSize ? `${this.inputWidth}px` : null
|
|
2721
|
-
};
|
|
2722
|
-
}
|
|
2723
|
-
},
|
|
2724
|
-
watch: {
|
|
2725
|
-
"instance.trigger.searchQuery"(e) {
|
|
2726
|
-
this.value = e;
|
|
2727
|
-
},
|
|
2728
|
-
value() {
|
|
2729
|
-
this.needAutoSize && this.$nextTick(this.updateInputWidth);
|
|
2730
|
-
}
|
|
2731
|
-
},
|
|
2732
|
-
created() {
|
|
2733
|
-
this.debouncedCallback = rn(this.updateSearchQuery, En, {
|
|
2734
|
-
leading: !0,
|
|
2735
|
-
trailing: !0
|
|
2736
|
-
});
|
|
2737
|
-
},
|
|
2738
|
-
methods: {
|
|
2739
|
-
clear() {
|
|
2740
|
-
this.onInput({
|
|
2741
|
-
target: {
|
|
2742
|
-
value: ""
|
|
2743
|
-
}
|
|
2744
|
-
});
|
|
2745
|
-
},
|
|
2746
|
-
focus() {
|
|
2747
|
-
const {
|
|
2748
|
-
instance: e
|
|
2749
|
-
} = this;
|
|
2750
|
-
e.disabled || this.$refs.input && this.$refs.input.focus();
|
|
2751
|
-
},
|
|
2752
|
-
blur() {
|
|
2753
|
-
this.$refs.input && this.$refs.input.blur();
|
|
2754
|
-
},
|
|
2755
|
-
onFocus() {
|
|
2756
|
-
const {
|
|
2757
|
-
instance: e
|
|
2758
|
-
} = this;
|
|
2759
|
-
e.trigger.isFocused = !0, e.openOnFocus && e.openMenu();
|
|
2760
|
-
},
|
|
2761
|
-
onBlur() {
|
|
2762
|
-
const {
|
|
2763
|
-
instance: e
|
|
2764
|
-
} = this, t = e.getMenu();
|
|
2765
|
-
if (t && document.activeElement === t)
|
|
2766
|
-
return this.focus();
|
|
2767
|
-
e.trigger.isFocused = !1, e.closeMenu();
|
|
2768
|
-
},
|
|
2769
|
-
onInput(e) {
|
|
2770
|
-
const {
|
|
2771
|
-
value: t
|
|
2772
|
-
} = e.target;
|
|
2773
|
-
this.value = t, t ? this.debouncedCallback() : (this.debouncedCallback.cancel(), this.updateSearchQuery());
|
|
2774
|
-
},
|
|
2775
|
-
// 用 keyUp 事件存在一个问题,删除输入框最后一个字符也会导致取消选中最后一项
|
|
2776
|
-
onKeyDown(e) {
|
|
2777
|
-
const {
|
|
2778
|
-
instance: t
|
|
2779
|
-
} = this, o = "which" in e ? e.which : (
|
|
2780
|
-
/* istanbul ignore next */
|
|
2781
|
-
e.keyCode
|
|
2782
|
-
);
|
|
2783
|
-
if (!(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)) {
|
|
2784
|
-
if (!t.menu.isOpen && w(qn, o))
|
|
2785
|
-
return e.preventDefault(), t.openMenu();
|
|
2786
|
-
switch (o) {
|
|
2787
|
-
case b.BACKSPACE: {
|
|
2788
|
-
t.backspaceRemoves && !this.value.length && t.removeLastValue();
|
|
2789
|
-
break;
|
|
2790
|
-
}
|
|
2791
|
-
case b.ENTER: {
|
|
2792
|
-
if (e.preventDefault(), t.menu.current === null)
|
|
2793
|
-
return;
|
|
2794
|
-
const r = t.getNode(t.menu.current);
|
|
2795
|
-
if (r.isBranch && t.disableBranchNodes)
|
|
2796
|
-
return;
|
|
2797
|
-
t.select(r);
|
|
2798
|
-
break;
|
|
2799
|
-
}
|
|
2800
|
-
case b.ESCAPE: {
|
|
2801
|
-
this.value.length ? this.clear() : t.menu.isOpen && t.closeMenu();
|
|
2802
|
-
break;
|
|
2803
|
-
}
|
|
2804
|
-
case b.END: {
|
|
2805
|
-
e.preventDefault(), t.highlightLastOption();
|
|
2806
|
-
break;
|
|
2807
|
-
}
|
|
2808
|
-
case b.HOME: {
|
|
2809
|
-
e.preventDefault(), t.highlightFirstOption();
|
|
2810
|
-
break;
|
|
2811
|
-
}
|
|
2812
|
-
case b.ARROW_LEFT: {
|
|
2813
|
-
const r = t.getNode(t.menu.current);
|
|
2814
|
-
r.isBranch && t.shouldExpand(r) ? (e.preventDefault(), t.toggleExpanded(r)) : !r.isRootNode && (r.isLeaf || r.isBranch && !t.shouldExpand(r)) && (e.preventDefault(), t.setCurrentHighlightedOption(r.parentNode));
|
|
2815
|
-
break;
|
|
2816
|
-
}
|
|
2817
|
-
case b.ARROW_UP: {
|
|
2818
|
-
e.preventDefault(), t.highlightPrevOption();
|
|
2819
|
-
break;
|
|
2820
|
-
}
|
|
2821
|
-
case b.ARROW_RIGHT: {
|
|
2822
|
-
const r = t.getNode(t.menu.current);
|
|
2823
|
-
r.isBranch && !t.shouldExpand(r) && (e.preventDefault(), t.toggleExpanded(r));
|
|
2824
|
-
break;
|
|
2825
|
-
}
|
|
2826
|
-
case b.ARROW_DOWN: {
|
|
2827
|
-
e.preventDefault(), t.highlightNextOption();
|
|
2828
|
-
break;
|
|
2829
|
-
}
|
|
2830
|
-
case b.DELETE: {
|
|
2831
|
-
t.deleteRemoves && !this.value.length && t.removeLastValue();
|
|
2832
|
-
break;
|
|
2833
|
-
}
|
|
2834
|
-
default:
|
|
2835
|
-
t.openMenu();
|
|
2836
|
-
}
|
|
2837
|
-
}
|
|
2838
|
-
},
|
|
2839
|
-
onMouseDown(e) {
|
|
2840
|
-
this.value.length && e.stopPropagation();
|
|
2841
|
-
},
|
|
2842
|
-
renderInputContainer() {
|
|
2843
|
-
const {
|
|
2844
|
-
instance: e
|
|
2845
|
-
} = this, t = {}, o = [];
|
|
2846
|
-
return e.searchable && !e.disabled && (o.push(this.renderInput()), this.needAutoSize && o.push(this.renderSizer())), e.searchable || oe(t, {
|
|
2847
|
-
on: {
|
|
2848
|
-
focus: this.onFocus,
|
|
2849
|
-
blur: this.onBlur,
|
|
2850
|
-
keydown: this.onKeyDown
|
|
2851
|
-
},
|
|
2852
|
-
ref: "input"
|
|
2853
|
-
}), !e.searchable && !e.disabled && oe(t, {
|
|
2854
|
-
attrs: {
|
|
2855
|
-
tabIndex: e.tabIndex
|
|
2856
|
-
}
|
|
2857
|
-
}), s("div", k([{
|
|
2858
|
-
class: "vue-treeselect__input-container"
|
|
2859
|
-
}, t]), [o]);
|
|
2860
|
-
},
|
|
2861
|
-
renderInput() {
|
|
2862
|
-
const {
|
|
2863
|
-
instance: e
|
|
2864
|
-
} = this;
|
|
2865
|
-
return s("input", {
|
|
2866
|
-
ref: "input",
|
|
2867
|
-
class: "vue-treeselect__input",
|
|
2868
|
-
attrs: {
|
|
2869
|
-
type: "text",
|
|
2870
|
-
autocomplete: "off",
|
|
2871
|
-
tabIndex: e.tabIndex,
|
|
2872
|
-
required: e.required && !e.hasValue
|
|
2873
|
-
},
|
|
2874
|
-
domProps: {
|
|
2875
|
-
value: this.value
|
|
2876
|
-
},
|
|
2877
|
-
style: this.inputStyle,
|
|
2878
|
-
on: {
|
|
2879
|
-
focus: this.onFocus,
|
|
2880
|
-
input: this.onInput,
|
|
2881
|
-
blur: this.onBlur,
|
|
2882
|
-
keydown: this.onKeyDown,
|
|
2883
|
-
mousedown: this.onMouseDown
|
|
2884
|
-
}
|
|
2885
|
-
});
|
|
2886
|
-
},
|
|
2887
|
-
renderSizer() {
|
|
2888
|
-
return s("div", {
|
|
2889
|
-
ref: "sizer",
|
|
2890
|
-
class: "vue-treeselect__sizer"
|
|
2891
|
-
}, [this.value]);
|
|
2892
|
-
},
|
|
2893
|
-
updateInputWidth() {
|
|
2894
|
-
this.inputWidth = Math.max(vr, this.$refs.sizer.scrollWidth + 15);
|
|
2895
|
-
},
|
|
2896
|
-
updateSearchQuery() {
|
|
2897
|
-
const {
|
|
2898
|
-
instance: e
|
|
2899
|
-
} = this;
|
|
2900
|
-
e.trigger.searchQuery = this.value;
|
|
2901
|
-
}
|
|
2902
|
-
},
|
|
2903
|
-
render() {
|
|
2904
|
-
return this.renderInputContainer();
|
|
2905
|
-
}
|
|
2906
|
-
}, Qn = null, Kn = null;
|
|
2907
|
-
var Un = /* @__PURE__ */ v(
|
|
2908
|
-
Vn,
|
|
2909
|
-
Qn,
|
|
2910
|
-
Kn,
|
|
2911
|
-
!1,
|
|
2912
|
-
null,
|
|
2913
|
-
null,
|
|
2914
|
-
null,
|
|
2915
|
-
null
|
|
2916
|
-
);
|
|
2917
|
-
const Br = Un.exports, Gn = {
|
|
2918
|
-
name: "VueTreeSelectPlaceholder",
|
|
2919
|
-
inject: ["instance"],
|
|
2920
|
-
render() {
|
|
2921
|
-
const {
|
|
2922
|
-
instance: e
|
|
2923
|
-
} = this, t = {
|
|
2924
|
-
"vue-treeselect__placeholder": !0,
|
|
2925
|
-
"vue-treeselect-helper-zoom-effect-off": !0,
|
|
2926
|
-
"vue-treeselect-helper-hide": e.hasValue || e.trigger.searchQuery
|
|
2927
|
-
};
|
|
2928
|
-
return s("div", {
|
|
2929
|
-
class: t
|
|
2930
|
-
}, [e.placeholder]);
|
|
2931
|
-
}
|
|
2932
|
-
}, Xn = null, Yn = null;
|
|
2933
|
-
var Jn = /* @__PURE__ */ v(
|
|
2934
|
-
Gn,
|
|
2935
|
-
Xn,
|
|
2936
|
-
Yn,
|
|
2937
|
-
!1,
|
|
2938
|
-
null,
|
|
2939
|
-
null,
|
|
2940
|
-
null,
|
|
2941
|
-
null
|
|
2942
|
-
);
|
|
2943
|
-
const Ar = Jn.exports, Zn = {
|
|
2944
|
-
name: "VueTreeSelectSingleValue",
|
|
2945
|
-
inject: ["instance"],
|
|
2946
|
-
methods: {
|
|
2947
|
-
renderSingleValueLabel() {
|
|
2948
|
-
const {
|
|
2949
|
-
instance: e
|
|
2950
|
-
} = this, t = e.selectedNodes[0], o = e.$scopedSlots["value-label"];
|
|
2951
|
-
return o ? o({
|
|
2952
|
-
node: t
|
|
2953
|
-
}) : t.label;
|
|
2954
|
-
}
|
|
2955
|
-
},
|
|
2956
|
-
render() {
|
|
2957
|
-
const {
|
|
2958
|
-
instance: e,
|
|
2959
|
-
$parent: {
|
|
2960
|
-
renderValueContainer: t
|
|
2961
|
-
}
|
|
2962
|
-
} = this, o = e.hasValue && !e.trigger.searchQuery;
|
|
2963
|
-
return t([o && s("div", {
|
|
2964
|
-
class: "vue-treeselect__single-value"
|
|
2965
|
-
}, [this.renderSingleValueLabel()]), s(Ar), s(Br, {
|
|
2966
|
-
ref: "input"
|
|
2967
|
-
})]);
|
|
2968
|
-
}
|
|
2969
|
-
}, es = null, ts = null;
|
|
2970
|
-
var os = /* @__PURE__ */ v(
|
|
2971
|
-
Zn,
|
|
2972
|
-
es,
|
|
2973
|
-
ts,
|
|
2974
|
-
!1,
|
|
2975
|
-
null,
|
|
2976
|
-
null,
|
|
2977
|
-
null,
|
|
2978
|
-
null
|
|
2979
|
-
);
|
|
2980
|
-
const rs = os.exports, ns = {
|
|
2981
|
-
name: "VueTreeSelectDelete"
|
|
2982
|
-
};
|
|
2983
|
-
var ss = function() {
|
|
2984
|
-
var t = this, o = t._self._c;
|
|
2985
|
-
return o("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 348.333 348.333" } }, [o("path", { attrs: { 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" } })]);
|
|
2986
|
-
}, is = [], as = /* @__PURE__ */ v(
|
|
2987
|
-
ns,
|
|
2988
|
-
ss,
|
|
2989
|
-
is,
|
|
2990
|
-
!1,
|
|
2991
|
-
null,
|
|
2992
|
-
null,
|
|
2993
|
-
null,
|
|
2994
|
-
null
|
|
2995
|
-
);
|
|
2996
|
-
const Pr = as.exports, ls = {
|
|
2997
|
-
name: "VueTreeSelectMultiValueItem",
|
|
2998
|
-
inject: ["instance"],
|
|
2999
|
-
props: {
|
|
3000
|
-
node: {
|
|
3001
|
-
type: Object,
|
|
3002
|
-
required: !0
|
|
3003
|
-
}
|
|
3004
|
-
},
|
|
3005
|
-
methods: {
|
|
3006
|
-
handleMouseDown: I(function() {
|
|
3007
|
-
const {
|
|
3008
|
-
instance: t,
|
|
3009
|
-
node: o
|
|
3010
|
-
} = this;
|
|
3011
|
-
t.select(o);
|
|
3012
|
-
})
|
|
3013
|
-
},
|
|
3014
|
-
render() {
|
|
3015
|
-
const {
|
|
3016
|
-
instance: e,
|
|
3017
|
-
node: t
|
|
3018
|
-
} = this, o = {
|
|
3019
|
-
"vue-treeselect__multi-value-item": !0,
|
|
3020
|
-
"vue-treeselect__multi-value-item-disabled": t.isDisabled,
|
|
3021
|
-
"vue-treeselect__multi-value-item-new": t.isNew
|
|
3022
|
-
}, r = e.$scopedSlots["value-label"], n = r ? r({
|
|
3023
|
-
node: t
|
|
3024
|
-
}) : t.label;
|
|
3025
|
-
return s("div", {
|
|
3026
|
-
class: "vue-treeselect__multi-value-item-container"
|
|
3027
|
-
}, [s("div", {
|
|
3028
|
-
class: o,
|
|
3029
|
-
on: {
|
|
3030
|
-
mousedown: this.handleMouseDown
|
|
3031
|
-
}
|
|
3032
|
-
}, [s("span", {
|
|
3033
|
-
class: "vue-treeselect__multi-value-label"
|
|
3034
|
-
}, [n]), s("span", {
|
|
3035
|
-
class: "vue-treeselect__icon vue-treeselect__value-remove"
|
|
3036
|
-
}, [s(Pr)])])]);
|
|
3037
|
-
}
|
|
3038
|
-
}, cs = null, ds = null;
|
|
3039
|
-
var ps = /* @__PURE__ */ v(
|
|
3040
|
-
ls,
|
|
3041
|
-
cs,
|
|
3042
|
-
ds,
|
|
3043
|
-
!1,
|
|
3044
|
-
null,
|
|
3045
|
-
null,
|
|
3046
|
-
null,
|
|
3047
|
-
null
|
|
3048
|
-
);
|
|
3049
|
-
const us = ps.exports, ms = {
|
|
3050
|
-
name: "VueTreeSelectMultiValue",
|
|
3051
|
-
inject: ["instance"],
|
|
3052
|
-
methods: {
|
|
3053
|
-
renderMultiValueItems() {
|
|
3054
|
-
const {
|
|
3055
|
-
instance: e
|
|
3056
|
-
} = this;
|
|
3057
|
-
return e.internalValue.slice(0, e.limit).map(e.getNode).map((t) => s(us, {
|
|
3058
|
-
key: `multi-value-item-${t.id}`,
|
|
3059
|
-
attrs: {
|
|
3060
|
-
node: t
|
|
3061
|
-
}
|
|
3062
|
-
}));
|
|
3063
|
-
},
|
|
3064
|
-
renderExceedLimitTip() {
|
|
3065
|
-
const {
|
|
3066
|
-
instance: e
|
|
3067
|
-
} = this, t = e.internalValue.length - e.limit;
|
|
3068
|
-
return t <= 0 ? null : s("div", {
|
|
3069
|
-
class: "vue-treeselect__limit-tip vue-treeselect-helper-zoom-effect-off",
|
|
3070
|
-
key: "exceed-limit-tip"
|
|
3071
|
-
}, [s("span", {
|
|
3072
|
-
class: "vue-treeselect__limit-tip-text"
|
|
3073
|
-
}, [e.limitText(t)])]);
|
|
3074
|
-
}
|
|
3075
|
-
},
|
|
3076
|
-
render() {
|
|
3077
|
-
const {
|
|
3078
|
-
renderValueContainer: e
|
|
3079
|
-
} = this.$parent;
|
|
3080
|
-
return e(s("transition-group", k([{
|
|
3081
|
-
class: "vue-treeselect__multi-value"
|
|
3082
|
-
}, {
|
|
3083
|
-
props: {
|
|
3084
|
-
tag: "div",
|
|
3085
|
-
name: "vue-treeselect__multi-value-item--transition",
|
|
3086
|
-
appear: !0
|
|
3087
|
-
}
|
|
3088
|
-
}]), [this.renderMultiValueItems(), this.renderExceedLimitTip(), s(Ar, {
|
|
3089
|
-
key: "placeholder"
|
|
3090
|
-
}), s(Br, {
|
|
3091
|
-
ref: "input",
|
|
3092
|
-
key: "input"
|
|
3093
|
-
})]));
|
|
3094
|
-
}
|
|
3095
|
-
}, hs = null, fs = null;
|
|
3096
|
-
var gs = /* @__PURE__ */ v(
|
|
3097
|
-
ms,
|
|
3098
|
-
hs,
|
|
3099
|
-
fs,
|
|
3100
|
-
!1,
|
|
3101
|
-
null,
|
|
3102
|
-
null,
|
|
3103
|
-
null,
|
|
3104
|
-
null
|
|
3105
|
-
);
|
|
3106
|
-
const bs = gs.exports, Ss = {
|
|
3107
|
-
name: "VueTreeSelectArrow"
|
|
3108
|
-
};
|
|
3109
|
-
var vs = function() {
|
|
3110
|
-
var t = this, o = t._self._c;
|
|
3111
|
-
return o("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 292.362 292.362" } }, [o("path", { attrs: { 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" } })]);
|
|
3112
|
-
}, ys = [], xs = /* @__PURE__ */ v(
|
|
3113
|
-
Ss,
|
|
3114
|
-
vs,
|
|
3115
|
-
ys,
|
|
3116
|
-
!1,
|
|
3117
|
-
null,
|
|
3118
|
-
null,
|
|
3119
|
-
null,
|
|
3120
|
-
null
|
|
3121
|
-
);
|
|
3122
|
-
const kr = xs.exports, _s = {
|
|
3123
|
-
name: "VueTreeSelectControl",
|
|
3124
|
-
inject: ["instance"],
|
|
3125
|
-
computed: {
|
|
3126
|
-
/* eslint-disable valid-jsdoc */
|
|
3127
|
-
/**
|
|
3128
|
-
* Should show the "×" button that resets value?
|
|
3129
|
-
* @return {boolean}
|
|
3130
|
-
*/
|
|
3131
|
-
shouldShowX() {
|
|
3132
|
-
const {
|
|
3133
|
-
instance: e
|
|
3134
|
-
} = this;
|
|
3135
|
-
return e.clearable && !e.disabled && e.hasValue && (this.hasUndisabledValue || e.allowClearingDisabled);
|
|
3136
|
-
},
|
|
3137
|
-
/**
|
|
3138
|
-
* Should show the arrow button that toggles menu?
|
|
3139
|
-
* @return {boolean}
|
|
3140
|
-
*/
|
|
3141
|
-
shouldShowArrow() {
|
|
3142
|
-
const {
|
|
3143
|
-
instance: e
|
|
3144
|
-
} = this;
|
|
3145
|
-
return e.alwaysOpen ? !e.menu.isOpen : !0;
|
|
3146
|
-
},
|
|
3147
|
-
/**
|
|
3148
|
-
* Has any undisabled option been selected?
|
|
3149
|
-
* @type {boolean}
|
|
3150
|
-
*/
|
|
3151
|
-
hasUndisabledValue() {
|
|
3152
|
-
const {
|
|
3153
|
-
instance: e
|
|
3154
|
-
} = this;
|
|
3155
|
-
return e.hasValue && e.internalValue.some((t) => !e.getNode(t).isDisabled);
|
|
3156
|
-
}
|
|
3157
|
-
/* eslint-enable valid-jsdoc */
|
|
3158
|
-
},
|
|
3159
|
-
methods: {
|
|
3160
|
-
renderX() {
|
|
3161
|
-
const {
|
|
3162
|
-
instance: e
|
|
3163
|
-
} = this, t = e.multiple ? e.clearAllText : e.clearValueText;
|
|
3164
|
-
return this.shouldShowX ? s("div", {
|
|
3165
|
-
class: "vue-treeselect__x-container",
|
|
3166
|
-
attrs: {
|
|
3167
|
-
title: t
|
|
3168
|
-
},
|
|
3169
|
-
on: {
|
|
3170
|
-
mousedown: this.handleMouseDownOnX
|
|
3171
|
-
}
|
|
3172
|
-
}, [s(Pr, {
|
|
3173
|
-
class: "vue-treeselect__x"
|
|
3174
|
-
})]) : null;
|
|
3175
|
-
},
|
|
3176
|
-
renderArrow() {
|
|
3177
|
-
const {
|
|
3178
|
-
instance: e
|
|
3179
|
-
} = this, t = {
|
|
3180
|
-
"vue-treeselect__control-arrow": !0,
|
|
3181
|
-
"vue-treeselect__control-arrow--rotated": e.menu.isOpen
|
|
3182
|
-
};
|
|
3183
|
-
return this.shouldShowArrow ? s("div", {
|
|
3184
|
-
class: "vue-treeselect__control-arrow-container",
|
|
3185
|
-
on: {
|
|
3186
|
-
mousedown: this.handleMouseDownOnArrow
|
|
3187
|
-
}
|
|
3188
|
-
}, [s(kr, {
|
|
3189
|
-
class: t
|
|
3190
|
-
})]) : null;
|
|
3191
|
-
},
|
|
3192
|
-
handleMouseDownOnX: I(function(t) {
|
|
3193
|
-
t.stopPropagation(), t.preventDefault();
|
|
3194
|
-
const {
|
|
3195
|
-
instance: o
|
|
3196
|
-
} = this, r = o.beforeClearAll(), n = (i) => {
|
|
3197
|
-
i && o.clear();
|
|
3198
|
-
};
|
|
3199
|
-
Or(r) ? r.then(n) : setTimeout(() => n(r), 0);
|
|
3200
|
-
}),
|
|
3201
|
-
handleMouseDownOnArrow: I(function(t) {
|
|
3202
|
-
t.preventDefault(), t.stopPropagation();
|
|
3203
|
-
const {
|
|
3204
|
-
instance: o
|
|
3205
|
-
} = this;
|
|
3206
|
-
o.focusInput(), o.toggleMenu();
|
|
3207
|
-
}),
|
|
3208
|
-
// This is meant to be called by child `<Value />` component.
|
|
3209
|
-
renderValueContainer(e) {
|
|
3210
|
-
return s("div", {
|
|
3211
|
-
class: "vue-treeselect__value-container"
|
|
3212
|
-
}, [e]);
|
|
3213
|
-
}
|
|
3214
|
-
},
|
|
3215
|
-
render() {
|
|
3216
|
-
const {
|
|
3217
|
-
instance: e
|
|
3218
|
-
} = this, t = e.single ? rs : bs;
|
|
3219
|
-
return s("div", {
|
|
3220
|
-
class: "vue-treeselect__control",
|
|
3221
|
-
on: {
|
|
3222
|
-
mousedown: e.handleMouseDown
|
|
3223
|
-
}
|
|
3224
|
-
}, [s(t, {
|
|
3225
|
-
ref: "value-container"
|
|
3226
|
-
}), this.renderX(), this.renderArrow()]);
|
|
3227
|
-
}
|
|
3228
|
-
}, Os = null, Cs = null;
|
|
3229
|
-
var ws = /* @__PURE__ */ v(
|
|
3230
|
-
_s,
|
|
3231
|
-
Os,
|
|
3232
|
-
Cs,
|
|
3233
|
-
!1,
|
|
3234
|
-
null,
|
|
3235
|
-
null,
|
|
3236
|
-
null,
|
|
3237
|
-
null
|
|
3238
|
-
);
|
|
3239
|
-
const Es = ws.exports, Ns = {
|
|
3240
|
-
name: "VueTreeSelectTip",
|
|
3241
|
-
functional: !0,
|
|
3242
|
-
props: {
|
|
3243
|
-
type: {
|
|
3244
|
-
type: String,
|
|
3245
|
-
required: !0
|
|
3246
|
-
},
|
|
3247
|
-
icon: {
|
|
3248
|
-
type: String,
|
|
3249
|
-
required: !0
|
|
3250
|
-
}
|
|
3251
|
-
},
|
|
3252
|
-
render(e, t) {
|
|
3253
|
-
const {
|
|
3254
|
-
props: o,
|
|
3255
|
-
children: r
|
|
3256
|
-
} = t;
|
|
3257
|
-
return s("div", {
|
|
3258
|
-
class: `vue-treeselect__tip vue-treeselect__${o.type}-tip`
|
|
3259
|
-
}, [s("div", {
|
|
3260
|
-
class: "vue-treeselect__icon-container"
|
|
3261
|
-
}, [s("span", {
|
|
3262
|
-
class: `vue-treeselect__icon-${o.icon}`
|
|
3263
|
-
})]), s("span", {
|
|
3264
|
-
class: `vue-treeselect__tip-text vue-treeselect__${o.type}-tip-text`
|
|
3265
|
-
}, [r])]);
|
|
3266
|
-
}
|
|
3267
|
-
}, Fs = null, Is = null;
|
|
3268
|
-
var Ts = /* @__PURE__ */ v(
|
|
3269
|
-
Ns,
|
|
3270
|
-
Fs,
|
|
3271
|
-
Is,
|
|
3272
|
-
!1,
|
|
3273
|
-
null,
|
|
3274
|
-
null,
|
|
3275
|
-
null,
|
|
3276
|
-
null
|
|
3277
|
-
);
|
|
3278
|
-
const x = Ts.exports;
|
|
3279
|
-
let Y, J, Z;
|
|
3280
|
-
const zr = {
|
|
3281
|
-
name: "VueTreeSelectOption",
|
|
3282
|
-
inject: ["instance"],
|
|
3283
|
-
props: {
|
|
3284
|
-
node: {
|
|
3285
|
-
type: Object,
|
|
3286
|
-
required: !0
|
|
3287
|
-
}
|
|
3288
|
-
},
|
|
3289
|
-
computed: {
|
|
3290
|
-
shouldExpand() {
|
|
3291
|
-
const {
|
|
3292
|
-
instance: e,
|
|
3293
|
-
node: t
|
|
3294
|
-
} = this;
|
|
3295
|
-
return t.isBranch && e.shouldExpand(t);
|
|
3296
|
-
},
|
|
3297
|
-
shouldShow() {
|
|
3298
|
-
const {
|
|
3299
|
-
instance: e,
|
|
3300
|
-
node: t
|
|
3301
|
-
} = this;
|
|
3302
|
-
return e.shouldShowOptionInMenu(t);
|
|
3303
|
-
}
|
|
3304
|
-
},
|
|
3305
|
-
methods: {
|
|
3306
|
-
renderOption() {
|
|
3307
|
-
const {
|
|
3308
|
-
instance: e,
|
|
3309
|
-
node: t
|
|
3310
|
-
} = this, o = {
|
|
3311
|
-
"vue-treeselect__option": !0,
|
|
3312
|
-
"vue-treeselect__option--disabled": t.isDisabled,
|
|
3313
|
-
"vue-treeselect__option--selected": e.isSelected(t),
|
|
3314
|
-
"vue-treeselect__option--highlight": t.isHighlighted,
|
|
3315
|
-
"vue-treeselect__option--matched": e.localSearch.active && t.isMatched,
|
|
3316
|
-
"vue-treeselect__option--hide": !this.shouldShow
|
|
3317
|
-
};
|
|
3318
|
-
return s("div", {
|
|
3319
|
-
class: o,
|
|
3320
|
-
on: {
|
|
3321
|
-
mouseenter: this.handleMouseEnterOption
|
|
3322
|
-
},
|
|
3323
|
-
attrs: {
|
|
3324
|
-
"data-id": t.id
|
|
3325
|
-
}
|
|
3326
|
-
}, [this.renderArrow(), this.renderLabelContainer([this.renderCheckboxContainer([this.renderCheckbox()]), this.renderLabel()])]);
|
|
3327
|
-
},
|
|
3328
|
-
renderSubOptionsList() {
|
|
3329
|
-
return this.shouldExpand ? s("div", {
|
|
3330
|
-
class: "vue-treeselect__list"
|
|
3331
|
-
}, [this.renderSubOptions(), this.renderNoChildrenTip(), this.renderLoadingChildrenTip(), this.renderLoadingChildrenErrorTip()]) : null;
|
|
3332
|
-
},
|
|
3333
|
-
renderArrow() {
|
|
3334
|
-
const {
|
|
3335
|
-
instance: e,
|
|
3336
|
-
node: t
|
|
3337
|
-
} = this;
|
|
3338
|
-
if (e.shouldFlattenOptions && this.shouldShow)
|
|
3339
|
-
return null;
|
|
3340
|
-
if (t.isBranch) {
|
|
3341
|
-
const o = {
|
|
3342
|
-
props: {
|
|
3343
|
-
name: "vue-treeselect__option-arrow--prepare",
|
|
3344
|
-
appear: !0
|
|
3345
|
-
}
|
|
3346
|
-
}, r = {
|
|
3347
|
-
"vue-treeselect__option-arrow": !0,
|
|
3348
|
-
"vue-treeselect__option-arrow--rotated": this.shouldExpand
|
|
3349
|
-
};
|
|
3350
|
-
return s("div", {
|
|
3351
|
-
class: "vue-treeselect__option-arrow-container",
|
|
3352
|
-
on: {
|
|
3353
|
-
mousedown: this.handleMouseDownOnArrow
|
|
3354
|
-
}
|
|
3355
|
-
}, [s("transition", k([{}, o]), [s(kr, {
|
|
3356
|
-
class: r
|
|
3357
|
-
})])]);
|
|
3358
|
-
}
|
|
3359
|
-
return (
|
|
3360
|
-
/* node.isLeaf && */
|
|
3361
|
-
e.hasBranchNodes ? (Y || (Y = s("div", {
|
|
3362
|
-
class: "vue-treeselect__option-arrow-placeholder"
|
|
3363
|
-
}, [" "])), Y) : null
|
|
3364
|
-
);
|
|
3365
|
-
},
|
|
3366
|
-
renderLabelContainer(e) {
|
|
3367
|
-
return s("div", {
|
|
3368
|
-
class: "vue-treeselect__label-container",
|
|
3369
|
-
on: {
|
|
3370
|
-
mousedown: this.handleMouseDownOnLabelContainer
|
|
3371
|
-
}
|
|
3372
|
-
}, [e]);
|
|
3373
|
-
},
|
|
3374
|
-
renderCheckboxContainer(e) {
|
|
3375
|
-
const {
|
|
3376
|
-
instance: t,
|
|
3377
|
-
node: o
|
|
3378
|
-
} = this;
|
|
3379
|
-
return t.single || t.disableBranchNodes && o.isBranch ? null : s("div", {
|
|
3380
|
-
class: "vue-treeselect__checkbox-container"
|
|
3381
|
-
}, [e]);
|
|
3382
|
-
},
|
|
3383
|
-
renderCheckbox() {
|
|
3384
|
-
const {
|
|
3385
|
-
instance: e,
|
|
3386
|
-
node: t
|
|
3387
|
-
} = this, o = e.forest.checkedStateMap[t.id], r = {
|
|
3388
|
-
"vue-treeselect__checkbox": !0,
|
|
3389
|
-
"vue-treeselect__checkbox--checked": o === Rr,
|
|
3390
|
-
"vue-treeselect__checkbox--indeterminate": o === Lr,
|
|
3391
|
-
"vue-treeselect__checkbox--unchecked": o === re,
|
|
3392
|
-
"vue-treeselect__checkbox--disabled": t.isDisabled
|
|
3393
|
-
};
|
|
3394
|
-
return J || (J = s("span", {
|
|
3395
|
-
class: "vue-treeselect__check-mark"
|
|
3396
|
-
})), Z || (Z = s("span", {
|
|
3397
|
-
class: "vue-treeselect__minus-mark"
|
|
3398
|
-
})), s("span", {
|
|
3399
|
-
class: r
|
|
3400
|
-
}, [J, Z]);
|
|
3401
|
-
},
|
|
3402
|
-
renderLabel() {
|
|
3403
|
-
const {
|
|
3404
|
-
instance: e,
|
|
3405
|
-
node: t
|
|
3406
|
-
} = this, o = t.isBranch && (e.localSearch.active ? e.showCountOnSearchComputed : e.showCount), r = o ? e.localSearch.active ? e.localSearch.countMap[t.id][e.showCountOf] : t.count[e.showCountOf] : NaN, n = "vue-treeselect__label", i = "vue-treeselect__count", a = e.$scopedSlots["option-label"];
|
|
3407
|
-
return a ? a({
|
|
3408
|
-
node: t,
|
|
3409
|
-
shouldShowCount: o,
|
|
3410
|
-
count: r,
|
|
3411
|
-
labelClassName: n,
|
|
3412
|
-
countClassName: i
|
|
3413
|
-
}) : s("label", {
|
|
3414
|
-
class: n
|
|
3415
|
-
}, [t.label, o && s("span", {
|
|
3416
|
-
class: i
|
|
3417
|
-
}, ["(", r, ")"])]);
|
|
3418
|
-
},
|
|
3419
|
-
renderSubOptions() {
|
|
3420
|
-
const {
|
|
3421
|
-
node: e
|
|
3422
|
-
} = this;
|
|
3423
|
-
return e.childrenStates.isLoaded ? e.children.map((t) => s(zr, {
|
|
3424
|
-
attrs: {
|
|
3425
|
-
node: t
|
|
3426
|
-
},
|
|
3427
|
-
key: t.id
|
|
3428
|
-
})) : null;
|
|
3429
|
-
},
|
|
3430
|
-
renderNoChildrenTip() {
|
|
3431
|
-
const {
|
|
3432
|
-
instance: e,
|
|
3433
|
-
node: t
|
|
3434
|
-
} = this;
|
|
3435
|
-
return !t.childrenStates.isLoaded || t.children.length ? null : s(x, {
|
|
3436
|
-
attrs: {
|
|
3437
|
-
type: "no-children",
|
|
3438
|
-
icon: "warning"
|
|
3439
|
-
}
|
|
3440
|
-
}, [e.noChildrenText]);
|
|
3441
|
-
},
|
|
3442
|
-
renderLoadingChildrenTip() {
|
|
3443
|
-
const {
|
|
3444
|
-
instance: e,
|
|
3445
|
-
node: t
|
|
3446
|
-
} = this;
|
|
3447
|
-
return t.childrenStates.isLoading ? s(x, {
|
|
3448
|
-
attrs: {
|
|
3449
|
-
type: "loading",
|
|
3450
|
-
icon: "loader"
|
|
3451
|
-
}
|
|
3452
|
-
}, [e.loadingText]) : null;
|
|
3453
|
-
},
|
|
3454
|
-
renderLoadingChildrenErrorTip() {
|
|
3455
|
-
const {
|
|
3456
|
-
instance: e,
|
|
3457
|
-
node: t
|
|
3458
|
-
} = this;
|
|
3459
|
-
return t.childrenStates.loadingError ? s(x, {
|
|
3460
|
-
attrs: {
|
|
3461
|
-
type: "error",
|
|
3462
|
-
icon: "error"
|
|
3463
|
-
}
|
|
3464
|
-
}, [t.childrenStates.loadingError, s("a", {
|
|
3465
|
-
class: "vue-treeselect__retry",
|
|
3466
|
-
attrs: {
|
|
3467
|
-
title: e.retryTitle
|
|
3468
|
-
},
|
|
3469
|
-
on: {
|
|
3470
|
-
mousedown: this.handleMouseDownOnRetry
|
|
3471
|
-
}
|
|
3472
|
-
}, [e.retryText])]) : null;
|
|
3473
|
-
},
|
|
3474
|
-
handleMouseEnterOption(e) {
|
|
3475
|
-
const {
|
|
3476
|
-
instance: t,
|
|
3477
|
-
node: o
|
|
3478
|
-
} = this;
|
|
3479
|
-
e.target === e.currentTarget && t.setCurrentHighlightedOption(o, !1);
|
|
3480
|
-
},
|
|
3481
|
-
handleMouseDownOnArrow: I(function() {
|
|
3482
|
-
const {
|
|
3483
|
-
instance: t,
|
|
3484
|
-
node: o
|
|
3485
|
-
} = this;
|
|
3486
|
-
t.toggleExpanded(o);
|
|
3487
|
-
}),
|
|
3488
|
-
handleMouseDownOnLabelContainer: I(function() {
|
|
3489
|
-
const {
|
|
3490
|
-
instance: t,
|
|
3491
|
-
node: o
|
|
3492
|
-
} = this;
|
|
3493
|
-
o.isBranch && t.disableBranchNodes ? t.toggleExpanded(o) : t.select(o);
|
|
3494
|
-
}),
|
|
3495
|
-
handleMouseDownOnRetry: I(function() {
|
|
3496
|
-
const {
|
|
3497
|
-
instance: t,
|
|
3498
|
-
node: o
|
|
3499
|
-
} = this;
|
|
3500
|
-
t.loadChildrenOptions(o);
|
|
3501
|
-
})
|
|
3502
|
-
},
|
|
3503
|
-
render() {
|
|
3504
|
-
const {
|
|
3505
|
-
node: e
|
|
3506
|
-
} = this, o = {
|
|
3507
|
-
"vue-treeselect__list-item": !0,
|
|
3508
|
-
[`vue-treeselect__indent-level-${this.instance.shouldFlattenOptions ? 0 : e.level}`]: !0
|
|
3509
|
-
}, r = {
|
|
3510
|
-
props: {
|
|
3511
|
-
name: "vue-treeselect__list--transition"
|
|
3512
|
-
}
|
|
3513
|
-
};
|
|
3514
|
-
return s("div", {
|
|
3515
|
-
class: o
|
|
3516
|
-
}, [this.renderOption(), e.isBranch && s("transition", k([{}, r]), [this.renderSubOptionsList()])]);
|
|
3517
|
-
}
|
|
3518
|
-
}, Ds = null, $s = null;
|
|
3519
|
-
var Ls = /* @__PURE__ */ v(
|
|
3520
|
-
zr,
|
|
3521
|
-
Ds,
|
|
3522
|
-
$s,
|
|
3523
|
-
!1,
|
|
3524
|
-
null,
|
|
3525
|
-
null,
|
|
3526
|
-
null,
|
|
3527
|
-
null
|
|
3528
|
-
);
|
|
3529
|
-
const Rs = Ls.exports, Ms = {
|
|
3530
|
-
top: "top",
|
|
3531
|
-
bottom: "bottom",
|
|
3532
|
-
above: "top",
|
|
3533
|
-
below: "bottom"
|
|
3534
|
-
}, Bs = {
|
|
3535
|
-
name: "VueTreeSelectMenu",
|
|
3536
|
-
inject: ["instance"],
|
|
3537
|
-
computed: {
|
|
3538
|
-
menuStyle() {
|
|
3539
|
-
const {
|
|
3540
|
-
instance: e
|
|
3541
|
-
} = this;
|
|
3542
|
-
return {
|
|
3543
|
-
maxHeight: `${e.maxHeight}px`
|
|
3544
|
-
};
|
|
3545
|
-
},
|
|
3546
|
-
menuContainerStyle() {
|
|
3547
|
-
const {
|
|
3548
|
-
instance: e
|
|
3549
|
-
} = this;
|
|
3550
|
-
return {
|
|
3551
|
-
zIndex: e.appendToBody ? null : e.zIndex
|
|
3552
|
-
};
|
|
3553
|
-
}
|
|
3554
|
-
},
|
|
3555
|
-
watch: {
|
|
3556
|
-
"instance.menu.isOpen"(e) {
|
|
3557
|
-
e ? this.$nextTick(this.onMenuOpen) : this.onMenuClose();
|
|
3558
|
-
}
|
|
3559
|
-
},
|
|
3560
|
-
created() {
|
|
3561
|
-
this.menuSizeWatcher = null, this.menuResizeAndScrollEventListeners = null;
|
|
3562
|
-
},
|
|
3563
|
-
mounted() {
|
|
3564
|
-
const {
|
|
3565
|
-
instance: e
|
|
3566
|
-
} = this;
|
|
3567
|
-
e.menu.isOpen && this.$nextTick(this.onMenuOpen);
|
|
3568
|
-
},
|
|
3569
|
-
destroyed() {
|
|
3570
|
-
this.onMenuClose();
|
|
3571
|
-
},
|
|
3572
|
-
methods: {
|
|
3573
|
-
renderMenu() {
|
|
3574
|
-
const {
|
|
3575
|
-
instance: e
|
|
3576
|
-
} = this;
|
|
3577
|
-
return e.menu.isOpen ? s("div", {
|
|
3578
|
-
ref: "menu",
|
|
3579
|
-
class: "vue-treeselect__menu",
|
|
3580
|
-
on: {
|
|
3581
|
-
mousedown: e.handleMouseDown
|
|
3582
|
-
},
|
|
3583
|
-
style: this.menuStyle
|
|
3584
|
-
}, [this.renderBeforeList(), e.async ? this.renderAsyncSearchMenuInner() : e.localSearch.active ? this.renderLocalSearchMenuInner() : this.renderNormalMenuInner(), this.renderAfterList()]) : null;
|
|
3585
|
-
},
|
|
3586
|
-
renderBeforeList() {
|
|
3587
|
-
const {
|
|
3588
|
-
instance: e
|
|
3589
|
-
} = this, t = e.$scopedSlots["before-list"];
|
|
3590
|
-
return t ? t() : null;
|
|
3591
|
-
},
|
|
3592
|
-
renderAfterList() {
|
|
3593
|
-
const {
|
|
3594
|
-
instance: e
|
|
3595
|
-
} = this, t = e.$scopedSlots["after-list"];
|
|
3596
|
-
return t ? t() : null;
|
|
3597
|
-
},
|
|
3598
|
-
renderNormalMenuInner() {
|
|
3599
|
-
const {
|
|
3600
|
-
instance: e
|
|
3601
|
-
} = this;
|
|
3602
|
-
return e.rootOptionsStates.isLoading ? this.renderLoadingOptionsTip() : e.rootOptionsStates.loadingError ? this.renderLoadingRootOptionsErrorTip() : e.rootOptionsStates.isLoaded && e.forest.normalizedOptions.length === 0 ? this.renderNoAvailableOptionsTip() : this.renderOptionList();
|
|
3603
|
-
},
|
|
3604
|
-
renderLocalSearchMenuInner() {
|
|
3605
|
-
const {
|
|
3606
|
-
instance: e
|
|
3607
|
-
} = this;
|
|
3608
|
-
return e.rootOptionsStates.isLoading ? this.renderLoadingOptionsTip() : e.rootOptionsStates.loadingError ? this.renderLoadingRootOptionsErrorTip() : e.rootOptionsStates.isLoaded && e.forest.normalizedOptions.length === 0 ? this.renderNoAvailableOptionsTip() : e.localSearch.noResults ? this.renderNoResultsTip() : this.renderOptionList();
|
|
3609
|
-
},
|
|
3610
|
-
renderAsyncSearchMenuInner() {
|
|
3611
|
-
const {
|
|
3612
|
-
instance: e
|
|
3613
|
-
} = this, t = e.getRemoteSearchEntry(), o = e.trigger.searchQuery === "" && !e.defaultOptions, r = o ? !1 : t.isLoaded && t.options.length === 0;
|
|
3614
|
-
return o ? this.renderSearchPromptTip() : t.isLoading ? this.renderLoadingOptionsTip() : t.loadingError ? this.renderAsyncSearchLoadingErrorTip() : r ? this.renderNoResultsTip() : this.renderOptionList();
|
|
3615
|
-
},
|
|
3616
|
-
renderOptionList() {
|
|
3617
|
-
const {
|
|
3618
|
-
instance: e
|
|
3619
|
-
} = this;
|
|
3620
|
-
return s("div", {
|
|
3621
|
-
class: "vue-treeselect__list"
|
|
3622
|
-
}, [e.forest.normalizedOptions.map((t) => s(Rs, {
|
|
3623
|
-
attrs: {
|
|
3624
|
-
node: t
|
|
3625
|
-
},
|
|
3626
|
-
key: t.id
|
|
3627
|
-
}))]);
|
|
3628
|
-
},
|
|
3629
|
-
renderSearchPromptTip() {
|
|
3630
|
-
const {
|
|
3631
|
-
instance: e
|
|
3632
|
-
} = this;
|
|
3633
|
-
return s(x, {
|
|
3634
|
-
attrs: {
|
|
3635
|
-
type: "search-prompt",
|
|
3636
|
-
icon: "warning"
|
|
3637
|
-
}
|
|
3638
|
-
}, [e.searchPromptText]);
|
|
3639
|
-
},
|
|
3640
|
-
renderLoadingOptionsTip() {
|
|
3641
|
-
const {
|
|
3642
|
-
instance: e
|
|
3643
|
-
} = this;
|
|
3644
|
-
return s(x, {
|
|
3645
|
-
attrs: {
|
|
3646
|
-
type: "loading",
|
|
3647
|
-
icon: "loader"
|
|
3648
|
-
}
|
|
3649
|
-
}, [e.loadingText]);
|
|
3650
|
-
},
|
|
3651
|
-
renderLoadingRootOptionsErrorTip() {
|
|
3652
|
-
const {
|
|
3653
|
-
instance: e
|
|
3654
|
-
} = this;
|
|
3655
|
-
return s(x, {
|
|
3656
|
-
attrs: {
|
|
3657
|
-
type: "error",
|
|
3658
|
-
icon: "error"
|
|
3659
|
-
}
|
|
3660
|
-
}, [e.rootOptionsStates.loadingError, s("a", {
|
|
3661
|
-
class: "vue-treeselect__retry",
|
|
3662
|
-
on: {
|
|
3663
|
-
click: e.loadRootOptions
|
|
3664
|
-
},
|
|
3665
|
-
attrs: {
|
|
3666
|
-
title: e.retryTitle
|
|
3667
|
-
}
|
|
3668
|
-
}, [e.retryText])]);
|
|
3669
|
-
},
|
|
3670
|
-
renderAsyncSearchLoadingErrorTip() {
|
|
3671
|
-
const {
|
|
3672
|
-
instance: e
|
|
3673
|
-
} = this, t = e.getRemoteSearchEntry();
|
|
3674
|
-
return s(x, {
|
|
3675
|
-
attrs: {
|
|
3676
|
-
type: "error",
|
|
3677
|
-
icon: "error"
|
|
3678
|
-
}
|
|
3679
|
-
}, [t.loadingError, s("a", {
|
|
3680
|
-
class: "vue-treeselect__retry",
|
|
3681
|
-
on: {
|
|
3682
|
-
click: e.handleRemoteSearch
|
|
3683
|
-
},
|
|
3684
|
-
attrs: {
|
|
3685
|
-
title: e.retryTitle
|
|
3686
|
-
}
|
|
3687
|
-
}, [e.retryText])]);
|
|
3688
|
-
},
|
|
3689
|
-
renderNoAvailableOptionsTip() {
|
|
3690
|
-
const {
|
|
3691
|
-
instance: e
|
|
3692
|
-
} = this;
|
|
3693
|
-
return s(x, {
|
|
3694
|
-
attrs: {
|
|
3695
|
-
type: "no-options",
|
|
3696
|
-
icon: "warning"
|
|
3697
|
-
}
|
|
3698
|
-
}, [e.noOptionsText]);
|
|
3699
|
-
},
|
|
3700
|
-
renderNoResultsTip() {
|
|
3701
|
-
const {
|
|
3702
|
-
instance: e
|
|
3703
|
-
} = this;
|
|
3704
|
-
return s(x, {
|
|
3705
|
-
attrs: {
|
|
3706
|
-
type: "no-results",
|
|
3707
|
-
icon: "warning"
|
|
3708
|
-
}
|
|
3709
|
-
}, [e.noResultsText]);
|
|
3710
|
-
},
|
|
3711
|
-
onMenuOpen() {
|
|
3712
|
-
this.adjustMenuOpenDirection(), this.setupMenuSizeWatcher(), this.setupMenuResizeAndScrollEventListeners();
|
|
3713
|
-
},
|
|
3714
|
-
onMenuClose() {
|
|
3715
|
-
this.removeMenuSizeWatcher(), this.removeMenuResizeAndScrollEventListeners();
|
|
3716
|
-
},
|
|
3717
|
-
adjustMenuOpenDirection() {
|
|
3718
|
-
const {
|
|
3719
|
-
instance: e
|
|
3720
|
-
} = this;
|
|
3721
|
-
if (!e.menu.isOpen)
|
|
3722
|
-
return;
|
|
3723
|
-
const t = e.getMenu(), o = e.getControl(), r = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = r.height, a = window.innerHeight, p = n.top, l = window.innerHeight - n.bottom, c = n.top >= 0 && n.top <= a || n.top < 0 && n.bottom > 0, f = l > i + yr, u = p > i + yr;
|
|
3724
|
-
c ? e.openDirection !== "auto" ? e.menu.placement = Ms[e.openDirection] : f || !u ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
|
|
3725
|
-
},
|
|
3726
|
-
setupMenuSizeWatcher() {
|
|
3727
|
-
const {
|
|
3728
|
-
instance: e
|
|
3729
|
-
} = this, t = e.getMenu();
|
|
3730
|
-
this.menuSizeWatcher || (this.menuSizeWatcher = {
|
|
3731
|
-
remove: Fr(t, this.adjustMenuOpenDirection)
|
|
3732
|
-
});
|
|
3733
|
-
},
|
|
3734
|
-
setupMenuResizeAndScrollEventListeners() {
|
|
3735
|
-
const {
|
|
3736
|
-
instance: e
|
|
3737
|
-
} = this, t = e.getControl();
|
|
3738
|
-
this.menuResizeAndScrollEventListeners || (this.menuResizeAndScrollEventListeners = {
|
|
3739
|
-
remove: Ir(t, this.adjustMenuOpenDirection)
|
|
3740
|
-
});
|
|
3741
|
-
},
|
|
3742
|
-
removeMenuSizeWatcher() {
|
|
3743
|
-
this.menuSizeWatcher && (this.menuSizeWatcher.remove(), this.menuSizeWatcher = null);
|
|
3744
|
-
},
|
|
3745
|
-
removeMenuResizeAndScrollEventListeners() {
|
|
3746
|
-
this.menuResizeAndScrollEventListeners && (this.menuResizeAndScrollEventListeners.remove(), this.menuResizeAndScrollEventListeners = null);
|
|
3747
|
-
}
|
|
3748
|
-
},
|
|
3749
|
-
render() {
|
|
3750
|
-
return s("div", {
|
|
3751
|
-
ref: "menu-container",
|
|
3752
|
-
class: "vue-treeselect__menu-container",
|
|
3753
|
-
style: this.menuContainerStyle
|
|
3754
|
-
}, [s("transition", {
|
|
3755
|
-
attrs: {
|
|
3756
|
-
name: "vue-treeselect__menu--transition"
|
|
3757
|
-
}
|
|
3758
|
-
}, [this.renderMenu()])]);
|
|
3759
|
-
}
|
|
3760
|
-
}, As = null, Ps = null;
|
|
3761
|
-
var ks = /* @__PURE__ */ v(
|
|
3762
|
-
Bs,
|
|
3763
|
-
As,
|
|
3764
|
-
Ps,
|
|
3765
|
-
!1,
|
|
3766
|
-
null,
|
|
3767
|
-
null,
|
|
3768
|
-
null,
|
|
3769
|
-
null
|
|
3770
|
-
);
|
|
3771
|
-
const Hr = ks.exports, zs = {
|
|
3772
|
-
name: "VueTreeSelectPortalTarget",
|
|
3773
|
-
inject: ["instance"],
|
|
3774
|
-
watch: {
|
|
3775
|
-
"instance.menu.isOpen"(e) {
|
|
3776
|
-
e ? this.setupHandlers() : this.removeHandlers();
|
|
3777
|
-
},
|
|
3778
|
-
"instance.menu.placement"() {
|
|
3779
|
-
this.updateMenuContainerOffset();
|
|
3780
|
-
}
|
|
3781
|
-
},
|
|
3782
|
-
created() {
|
|
3783
|
-
this.controlResizeAndScrollEventListeners = null, this.controlSizeWatcher = null;
|
|
3784
|
-
},
|
|
3785
|
-
mounted() {
|
|
3786
|
-
const {
|
|
3787
|
-
instance: e
|
|
3788
|
-
} = this;
|
|
3789
|
-
e.menu.isOpen && this.setupHandlers();
|
|
3790
|
-
},
|
|
3791
|
-
methods: {
|
|
3792
|
-
setupHandlers() {
|
|
3793
|
-
this.updateWidth(), this.updateMenuContainerOffset(), this.setupControlResizeAndScrollEventListeners(), this.setupControlSizeWatcher();
|
|
3794
|
-
},
|
|
3795
|
-
removeHandlers() {
|
|
3796
|
-
this.removeControlResizeAndScrollEventListeners(), this.removeControlSizeWatcher();
|
|
3797
|
-
},
|
|
3798
|
-
setupControlResizeAndScrollEventListeners() {
|
|
3799
|
-
const {
|
|
3800
|
-
instance: e
|
|
3801
|
-
} = this, t = e.getControl();
|
|
3802
|
-
this.controlResizeAndScrollEventListeners || (this.controlResizeAndScrollEventListeners = {
|
|
3803
|
-
remove: Ir(t, this.updateMenuContainerOffset)
|
|
3804
|
-
});
|
|
3805
|
-
},
|
|
3806
|
-
setupControlSizeWatcher() {
|
|
3807
|
-
const {
|
|
3808
|
-
instance: e
|
|
3809
|
-
} = this, t = e.getControl();
|
|
3810
|
-
this.controlSizeWatcher || (this.controlSizeWatcher = {
|
|
3811
|
-
remove: Fr(t, () => {
|
|
3812
|
-
this.updateWidth(), this.updateMenuContainerOffset();
|
|
3813
|
-
})
|
|
3814
|
-
});
|
|
3815
|
-
},
|
|
3816
|
-
removeControlResizeAndScrollEventListeners() {
|
|
3817
|
-
this.controlResizeAndScrollEventListeners && (this.controlResizeAndScrollEventListeners.remove(), this.controlResizeAndScrollEventListeners = null);
|
|
3818
|
-
},
|
|
3819
|
-
removeControlSizeWatcher() {
|
|
3820
|
-
this.controlSizeWatcher && (this.controlSizeWatcher.remove(), this.controlSizeWatcher = null);
|
|
3821
|
-
},
|
|
3822
|
-
updateWidth() {
|
|
3823
|
-
const {
|
|
3824
|
-
instance: e
|
|
3825
|
-
} = this, t = this.$el, r = e.getControl().getBoundingClientRect();
|
|
3826
|
-
t.style.width = `${r.width}px`;
|
|
3827
|
-
},
|
|
3828
|
-
updateMenuContainerOffset() {
|
|
3829
|
-
const {
|
|
3830
|
-
instance: e
|
|
3831
|
-
} = this, t = e.getControl(), o = this.$el, r = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = e.menu.placement === "bottom" ? r.height : 0, a = `${Math.round(r.left - n.left)}px`, p = `${Math.round(r.top - n.top + i)}px`, l = this.$refs.menu.$refs["menu-container"].style, f = $r(["transform", "webkitTransform", "MozTransform", "msTransform"], (u) => u in document.body.style);
|
|
3832
|
-
l[f] = `translate(${a}, ${p})`;
|
|
3833
|
-
}
|
|
3834
|
-
},
|
|
3835
|
-
render() {
|
|
3836
|
-
const {
|
|
3837
|
-
instance: e
|
|
3838
|
-
} = this, t = ["vue-treeselect__portal-target", e.wrapperClass], o = {
|
|
3839
|
-
zIndex: e.zIndex
|
|
3840
|
-
};
|
|
3841
|
-
return s("div", {
|
|
3842
|
-
class: t,
|
|
3843
|
-
style: o,
|
|
3844
|
-
attrs: {
|
|
3845
|
-
"data-instance-id": e.getInstanceId()
|
|
3846
|
-
}
|
|
3847
|
-
}, [s(Hr, {
|
|
3848
|
-
ref: "menu"
|
|
3849
|
-
})]);
|
|
3850
|
-
},
|
|
3851
|
-
destroyed() {
|
|
3852
|
-
this.removeHandlers();
|
|
3853
|
-
}
|
|
3854
|
-
};
|
|
3855
|
-
let ee;
|
|
3856
|
-
const Hs = {
|
|
3857
|
-
name: "VueTreeSelectMenuPortal",
|
|
3858
|
-
created() {
|
|
3859
|
-
this.portalTarget = null;
|
|
3860
|
-
},
|
|
3861
|
-
mounted() {
|
|
3862
|
-
this.setup();
|
|
3863
|
-
},
|
|
3864
|
-
destroyed() {
|
|
3865
|
-
this.teardown();
|
|
3866
|
-
},
|
|
3867
|
-
methods: {
|
|
3868
|
-
setup() {
|
|
3869
|
-
const e = document.createElement("div");
|
|
3870
|
-
document.body.appendChild(e), this.portalTarget = new Gr(g({
|
|
3871
|
-
el: e,
|
|
3872
|
-
parent: this
|
|
3873
|
-
}, zs));
|
|
3874
|
-
},
|
|
3875
|
-
teardown() {
|
|
3876
|
-
document.body.removeChild(this.portalTarget.$el), this.portalTarget.$el.innerHTML = "", this.portalTarget.$destroy(), this.portalTarget = null;
|
|
3877
|
-
}
|
|
3878
|
-
},
|
|
3879
|
-
render() {
|
|
3880
|
-
return ee || (ee = s("div", {
|
|
3881
|
-
class: "vue-treeselect__menu-placeholder"
|
|
3882
|
-
})), ee;
|
|
3883
|
-
}
|
|
3884
|
-
}, Ws = null, js = null;
|
|
3885
|
-
var qs = /* @__PURE__ */ v(
|
|
3886
|
-
Hs,
|
|
3887
|
-
Ws,
|
|
3888
|
-
js,
|
|
3889
|
-
!1,
|
|
3890
|
-
null,
|
|
3891
|
-
null,
|
|
3892
|
-
null,
|
|
3893
|
-
null
|
|
3894
|
-
);
|
|
3895
|
-
const Vs = qs.exports;
|
|
3896
|
-
const _r = {
|
|
3897
|
-
name: "VueTreeSelect",
|
|
3898
|
-
mixins: [Tn],
|
|
3899
|
-
computed: {
|
|
3900
|
-
wrapperClass() {
|
|
3901
|
-
return {
|
|
3902
|
-
"vue-treeselect": !0,
|
|
3903
|
-
"vue-treeselect--single": this.single,
|
|
3904
|
-
"vue-treeselect--multi": this.multiple,
|
|
3905
|
-
"vue-treeselect--searchable": this.searchable,
|
|
3906
|
-
"vue-treeselect--disabled": this.disabled,
|
|
3907
|
-
"vue-treeselect--focused": this.trigger.isFocused,
|
|
3908
|
-
"vue-treeselect--has-value": this.hasValue,
|
|
3909
|
-
"vue-treeselect--open": this.menu.isOpen,
|
|
3910
|
-
"vue-treeselect--open-above": this.menu.placement === "top",
|
|
3911
|
-
"vue-treeselect--open-below": this.menu.placement === "bottom",
|
|
3912
|
-
"vue-treeselect--branch-nodes-disabled": this.disableBranchNodes,
|
|
3913
|
-
"vue-treeselect--append-to-body": this.appendToBody
|
|
3914
|
-
};
|
|
3915
|
-
}
|
|
3916
|
-
},
|
|
3917
|
-
render() {
|
|
3918
|
-
return s("div", {
|
|
3919
|
-
ref: "wrapper",
|
|
3920
|
-
class: this.wrapperClass
|
|
3921
|
-
}, [s(Bn), s(Es, {
|
|
3922
|
-
ref: "control"
|
|
3923
|
-
}), this.appendToBody ? s(Vs, {
|
|
3924
|
-
ref: "portal"
|
|
3925
|
-
}) : s(Hr, {
|
|
3926
|
-
ref: "menu"
|
|
3927
|
-
})]);
|
|
3928
|
-
}
|
|
3929
|
-
};
|
|
3930
|
-
function qp(e) {
|
|
3931
|
-
e.component(de.name, de), e.component(pe.name, pe), e.component(ue.name, ue), e.component(me.name, me), e.component(he.name, he), e.component(fe.name, fe), e.component(ge.name, ge), e.component(be.name, be), e.component(Se.name, Se), e.component(ve.name, ve), e.component(ye.name, ye), e.component(xe.name, xe), e.component(_e.name, _e), e.component(Oe.name, Oe), e.component(Ce.name, Ce), e.component(we.name, we), e.component(Ee.name, Ee), e.component(Ne.name, Ne), e.component(Fe.name, Fe), e.component(Ie.name, Ie), e.component(Te.name, Te), e.component(De.name, De), e.component($e.name, $e), e.component(Le.name, Le), e.component(Re.name, Re), e.component(Me.name, Me), e.component(Be.name, Be), e.component(Ae.name, Ae), e.component(Pe.name, Pe), e.component(ke.name, ke), e.component(ze.name, ze), e.component(He.name, He), e.component(We.name, We), e.component(je.name, je), e.component(qe.name, qe), e.component(Ve.name, Ve), e.component(Qe.name, Qe), e.component(Ke.name, Ke), e.component(Ue.name, Ue), e.component(Ge.name, Ge), e.component(Xe.name, Xe), e.component(Ye.name, Ye), e.component(Je.name, Je), e.component(Ze.name, Ze), e.component(et.name, et), e.component(tt.name, tt), e.component(ot.name, ot), e.component(rt.name, rt), e.component(nt.name, nt), e.component(st.name, st), e.component(it.name, it), e.component(dr.name, dr), e.component(at.name, at), e.component(lt.name, lt), e.component(ct.name, ct), e.component(dt.name, dt), e.component(pt.name, pt), e.component(ut.name, ut), e.component(mt.name, mt), e.component(ht.name, ht), e.component(ft.name, ft), e.component(gt.name, gt), e.component(bt.name, bt), e.component(St.name, St), e.component(pr.name, pr), e.component(xt.name, xt), e.component(ur.name, ur), e.component(_t.name, _t), e.component(Ot.name, Ot), e.component(Ct.name, Ct), e.component(wt.name, wt), e.component(Et.name, Et), e.component(Nt.name, Nt), e.component(Ft.name, Ft), e.component(It.name, It), e.component(Tt.name, Tt), e.component(Dt.name, Dt), e.component($t.name, $t), e.component(Lt.name, Lt), e.component(Rt.name, Rt), e.component(Mt.name, Mt), e.component(Bt.name, Bt), e.component(At.name, At), e.component(Pt.name, Pt), e.component(kt.name, kt), e.component(zt.name, zt), e.component(Ht.name, Ht), e.component(Wt.name, Wt), e.component(jt.name, jt), e.component(qt.name, qt), e.component(Vt.name, Vt), e.component(Qt.name, Qt), e.component(Kt.name, Kt), e.component(Ut.name, Ut), e.component(Gt.name, Gt), e.component(Xt.name, Xt), e.component(Yt.name, Yt), e.component(Jt.name, Jt), e.component(Zt.name, Zt), e.component(eo.name, eo), e.component(to.name, to), e.component(oo.name, oo), e.component(ro.name, ro), e.component(no.name, no), e.component(so.name, so), e.component(io.name, io), e.component(ao.name, ao), e.component(lo.name, lo), e.component(co.name, co), e.component(po.name, po), e.component(uo.name, uo), e.component(mo.name, mo), e.component(ho.name, ho), e.component(mr.name, mr), e.component(fo.name, fo), e.component(go.name, go), e.component(bo.name, bo), e.component(So.name, So), e.component(vo.name, vo), e.component(yo.name, yo), e.component(xo.name, xo), e.component(_o.name, _o), e.component(Oo.name, Oo), e.component(Co.name, Co), e.component(wo.name, wo), e.component(Eo.name, Eo), e.component(No.name, No), e.component(Fo.name, Fo), e.component(Io.name, Io), e.component(To.name, To), e.component(Do.name, Do), e.component($o.name, $o), e.component(Lo.name, Lo), e.component(Ro.name, Ro), e.component(Mo.name, Mo), e.component(Bo.name, Bo), e.component(Ao.name, Ao), e.component(Po.name, Po), e.component(ko.name, ko), e.component(zo.name, zo), e.component(Ho.name, Ho), e.component(Wo.name, Wo), e.component(jo.name, jo), e.component(qo.name, qo), e.component(Vo.name, Vo), e.component(Qo.name, Qo), e.component(Ko.name, Ko), e.component(Uo.name, Uo), e.component(Go.name, Go), e.component(Xo.name, Xo), e.component(Yo.name, Yo), e.component(Jo.name, Jo), e.component(Zo.name, Zo), e.component(fr.name, fr), e.component(er.name, er), e.component(tr.name, tr), e.component(or.name, or), e.component(rr.name, rr), e.component(nr.name, nr), e.component(sr.name, sr), e.component(_r.name, _r), e.component(ar.name, ar), e.component(lr.name, lr), e.component(cr.name, cr);
|
|
447
|
+
function yn(o) {
|
|
448
|
+
o.component(m.name, m), o.component(r.name, r), o.component(t.name, t), o.component(e.name, e), o.component(a.name, a), o.component(p.name, p), o.component(n.name, n), o.component(f.name, f), o.component(i.name, i), o.component(l.name, l), o.component(d.name, d), o.component(s.name, s), o.component(c.name, c), o.component(x.name, x), o.component(F.name, F), o.component(u.name, u), o.component(y.name, y), o.component(I.name, I), o.component(g.name, g), o.component(C.name, C), o.component(b.name, b), o.component(T.name, T), o.component(P.name, P), o.component(D.name, D), o.component(w.name, w), o.component(S.name, S), o.component(E.name, E), o.component(h.name, h), o.component(k.name, k), o.component(N.name, N), o.component(A.name, A), o.component(R.name, R), o.component(v.name, v), o.component(B.name, B), o.component(M.name, M), o.component(G.name, G), o.component(U.name, U), o.component(H.name, H), o.component(L.name, L), o.component(Q.name, Q), o.component(J.name, J), o.component(K.name, K), o.component(O.name, O), o.component(W.name, W), o.component(X.name, X), o.component(z.name, z), o.component(j.name, j), o.component(q.name, q), o.component(Y.name, Y), o.component(Z.name, Z), o.component(_.name, _), o.component($.name, $), o.component(V.name, V), o.component(oo.name, oo), o.component(mo.name, mo), o.component(ro.name, ro), o.component(to.name, to), o.component(eo.name, eo), o.component(ao.name, ao), o.component(po.name, po), o.component(no.name, no), o.component(fo.name, fo), o.component(io.name, io), o.component(lo.name, lo), o.component(so.name, so), o.component(co.name, co), o.component(xo.name, xo), o.component(Fo.name, Fo), o.component(uo.name, uo), o.component(yo.name, yo), o.component(Io.name, Io), o.component(go.name, go), o.component(Co.name, Co), o.component(bo.name, bo), o.component(To.name, To), o.component(Po.name, Po), o.component(Do.name, Do), o.component(wo.name, wo), o.component(So.name, So), o.component(Eo.name, Eo), o.component(ho.name, ho), o.component(ko.name, ko), o.component(No.name, No), o.component(Ao.name, Ao), o.component(Ro.name, Ro), o.component(vo.name, vo), o.component(Bo.name, Bo), o.component(Mo.name, Mo), o.component(Go.name, Go), o.component(Uo.name, Uo), o.component(Ho.name, Ho), o.component(Lo.name, Lo), o.component(Qo.name, Qo), o.component(Jo.name, Jo), o.component(Ko.name, Ko), o.component(Oo.name, Oo), o.component(Wo.name, Wo), o.component(Xo.name, Xo), o.component(zo.name, zo), o.component(jo.name, jo), o.component(qo.name, qo), o.component(Yo.name, Yo), o.component(Zo.name, Zo), o.component(_o.name, _o), o.component($o.name, $o), o.component(Vo.name, Vo), o.component(om.name, om), o.component(mm.name, mm), o.component(rm.name, rm), o.component(tm.name, tm), o.component(em.name, em), o.component(am.name, am), o.component(pm.name, pm), o.component(nm.name, nm), o.component(fm.name, fm), o.component(im.name, im), o.component(lm.name, lm), o.component(dm.name, dm), o.component(sm.name, sm), o.component(cm.name, cm), o.component(xm.name, xm), o.component(Fm.name, Fm), o.component(um.name, um), o.component(ym.name, ym), o.component(Im.name, Im), o.component(gm.name, gm), o.component(Cm.name, Cm), o.component(bm.name, bm), o.component(Tm.name, Tm), o.component(Pm.name, Pm), o.component(Dm.name, Dm), o.component(wm.name, wm), o.component(Sm.name, Sm), o.component(Em.name, Em), o.component(hm.name, hm), o.component(km.name, km), o.component(Nm.name, Nm), o.component(Am.name, Am), o.component(Rm.name, Rm), o.component(vm.name, vm), o.component(Bm.name, Bm), o.component(Mm.name, Mm), o.component(Gm.name, Gm), o.component(Um.name, Um), o.component(Hm.name, Hm), o.component(Lm.name, Lm), o.component(Qm.name, Qm), o.component(Jm.name, Jm), o.component(Km.name, Km), o.component(Om.name, Om), o.component(Wm.name, Wm), o.component(Xm.name, Xm), o.component(zm.name, zm), o.component(jm.name, jm), o.component(qm.name, qm), o.component(Ym.name, Ym), o.component(Zm.name, Zm), o.component(_m.name, _m), o.component($m.name, $m), o.component(Vm.name, Vm), o.component(or.name, or), o.component(mr.name, mr), o.component(rr.name, rr), o.component(tr.name, tr);
|
|
3932
449
|
}
|
|
3933
450
|
export {
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
451
|
+
Cn as AddressInput,
|
|
452
|
+
Tn as Affix,
|
|
453
|
+
Dn as AsideMenu,
|
|
454
|
+
Sn as Avatar,
|
|
455
|
+
hn as AwesomeButton,
|
|
456
|
+
Nn as CapsuleTab,
|
|
457
|
+
Rn as Card,
|
|
458
|
+
Bn as Carousel,
|
|
459
|
+
Gn as Chat,
|
|
460
|
+
Hn as ChunkFileUploader,
|
|
461
|
+
Qn as CodeMirrorEditor,
|
|
462
|
+
Kn as ColorPicker,
|
|
463
|
+
Wn as Comment,
|
|
464
|
+
qn as ConfirmButton,
|
|
465
|
+
zn as Confirmable,
|
|
466
|
+
Zn as ContextMenu,
|
|
467
|
+
$n as CountUp,
|
|
468
|
+
of as CustomScrollbar,
|
|
469
|
+
rf as DataBox,
|
|
470
|
+
ef as DataCard,
|
|
471
|
+
pf as DataCardtext,
|
|
472
|
+
ff as DataDisplay,
|
|
473
|
+
df as DataIcons,
|
|
474
|
+
cf as DataImgtext,
|
|
475
|
+
Ff as DataOperatext,
|
|
476
|
+
yf as DataPanel,
|
|
477
|
+
gf as DataPay,
|
|
478
|
+
bf as DataPrice,
|
|
479
|
+
Pf as DataProgress,
|
|
480
|
+
wf as DataRotate,
|
|
481
|
+
Ef as DataTablePicker,
|
|
482
|
+
kf as DataTabs,
|
|
483
|
+
Af as DialogForm,
|
|
484
|
+
vf as DynamicTable,
|
|
485
|
+
Uf as ECharts,
|
|
486
|
+
Mf as EasyPopup,
|
|
487
|
+
Lf as EditableProgress,
|
|
488
|
+
Jf as EditableTree,
|
|
489
|
+
Of as EgdCollapse,
|
|
490
|
+
Xf as EgdCollapseItem,
|
|
491
|
+
jf as ElementDialog,
|
|
492
|
+
Yf as EmptyView,
|
|
493
|
+
_f as ErrorView,
|
|
494
|
+
Vf as FlexColumn,
|
|
495
|
+
mi as FlexItem,
|
|
496
|
+
ti as FlexRow,
|
|
497
|
+
ai as FlexScroller,
|
|
498
|
+
ni as Flow,
|
|
499
|
+
ii as FlowDesigner,
|
|
500
|
+
di as FlowNode,
|
|
501
|
+
ci as FlowViewer,
|
|
502
|
+
Fi as FormBlock,
|
|
503
|
+
yi as FormButton,
|
|
504
|
+
gi as FormCascader,
|
|
505
|
+
bi as FormCheckboxGroup,
|
|
506
|
+
Pi as FormDatePicker,
|
|
507
|
+
wi as FormHolder,
|
|
508
|
+
Ei as FormInput,
|
|
509
|
+
ki as FormInputEmail,
|
|
510
|
+
Ai as FormInputIdCard,
|
|
511
|
+
vi as FormInputNumber,
|
|
512
|
+
Mi as FormInputPhoneNumber,
|
|
513
|
+
Ui as FormInputTag,
|
|
514
|
+
Li as FormInputTime,
|
|
515
|
+
Ji as FormItem,
|
|
516
|
+
Oi as FormItemConfigProvider,
|
|
517
|
+
Xi as FormItemGroup,
|
|
518
|
+
ji as FormRadioGroup,
|
|
519
|
+
Yi as FormSelect,
|
|
520
|
+
_i as FormSwitch,
|
|
521
|
+
Vi as FormTextarea,
|
|
522
|
+
ml as FormView,
|
|
523
|
+
tl as FyArray,
|
|
524
|
+
al as FyArticle,
|
|
525
|
+
nl as FyCascader,
|
|
526
|
+
il as FyCheckbox,
|
|
527
|
+
dl as FyCode,
|
|
528
|
+
cl as FyCurd,
|
|
529
|
+
Fl as FyDate,
|
|
530
|
+
yl as FyDraggable,
|
|
531
|
+
gl as FyDynamic,
|
|
532
|
+
bl as FyEmpty,
|
|
533
|
+
Pl as FyForm,
|
|
534
|
+
wl as FyFormDesign,
|
|
535
|
+
El as FyInput,
|
|
536
|
+
kl as FyInputColor,
|
|
537
|
+
Al as FyInputIcon,
|
|
538
|
+
vl as FyInputMap,
|
|
539
|
+
Ml as FyInputNumber,
|
|
540
|
+
Ul as FyInputTable,
|
|
541
|
+
Ll as FyInputTree,
|
|
542
|
+
Jl as FyProgress,
|
|
543
|
+
Ol as FyRadio,
|
|
544
|
+
Xl as FyRate,
|
|
545
|
+
jl as FySelect,
|
|
546
|
+
Yl as FySlider,
|
|
547
|
+
_l as FySwitch,
|
|
548
|
+
Vl as FyTabs,
|
|
549
|
+
md as FyTime,
|
|
550
|
+
td as FyTitle,
|
|
551
|
+
ad as FyTree,
|
|
552
|
+
nd as FyUEditor,
|
|
553
|
+
id as FyUpload,
|
|
554
|
+
dd as GuideSteps,
|
|
555
|
+
cd as HighlightJS,
|
|
556
|
+
Fd as IconCard,
|
|
557
|
+
yd as IconTemp,
|
|
558
|
+
gd as IframeWindow,
|
|
559
|
+
bd as ImageCropper,
|
|
560
|
+
Pd as ImagePreview,
|
|
561
|
+
wd as ImageViewer,
|
|
562
|
+
Ed as InputNumber,
|
|
563
|
+
kd as InputNumberRange,
|
|
564
|
+
Ad as JSXComponent,
|
|
565
|
+
vd as KeepViewAlive,
|
|
566
|
+
Md as Keyboard,
|
|
567
|
+
Ud as License,
|
|
568
|
+
Ld as LoadingView,
|
|
569
|
+
Jd as Login,
|
|
570
|
+
Od as MonacoEditor,
|
|
571
|
+
Xd as NameAvatar,
|
|
572
|
+
jd as NavBar,
|
|
573
|
+
_d as NotImplement,
|
|
574
|
+
Yd as Notice,
|
|
575
|
+
Vd as Page,
|
|
576
|
+
as as PageHeader,
|
|
577
|
+
ns as PageIndex,
|
|
578
|
+
is as PageIndexTop,
|
|
579
|
+
ds as PageSkeleton,
|
|
580
|
+
cs as PageSkeletonNew,
|
|
581
|
+
ms as PageableTable,
|
|
582
|
+
ts as PageableView,
|
|
583
|
+
Fs as PhotoSwipe,
|
|
584
|
+
ys as PresentView,
|
|
585
|
+
gs as Queue,
|
|
586
|
+
bs as RecordVideo,
|
|
587
|
+
Ps as ResizeObserver,
|
|
588
|
+
ws as Search,
|
|
589
|
+
Es as SearchPopover,
|
|
590
|
+
ks as Sign,
|
|
591
|
+
As as SignPanel,
|
|
592
|
+
vs as Skeleton,
|
|
593
|
+
Ms as SplitPane,
|
|
594
|
+
Us as Stateful,
|
|
595
|
+
Ls as StaticPageableTable,
|
|
596
|
+
Js as Swiper,
|
|
597
|
+
Os as Tab,
|
|
598
|
+
Xs as TabItem,
|
|
599
|
+
js as TableColumn,
|
|
600
|
+
Ys as TableView,
|
|
601
|
+
_s as TagRender,
|
|
602
|
+
Vs as TextEllipsis,
|
|
603
|
+
mc as TinymceEditor,
|
|
604
|
+
tc as Toolbar,
|
|
605
|
+
ac as ToolbarButton,
|
|
606
|
+
nc as Verify,
|
|
607
|
+
ic as VueCron,
|
|
608
|
+
dc as VueQrCode,
|
|
609
|
+
cc as VueQuillEditor,
|
|
610
|
+
Fc as VueTagsInput,
|
|
611
|
+
yc as VueTreeSelect,
|
|
612
|
+
gc as VueVideoPlayer,
|
|
613
|
+
bc as Watermark,
|
|
614
|
+
Pc as XInputTag,
|
|
615
|
+
yn as default
|
|
4099
616
|
};
|