@das-fed/ui 6.4.0-hot.1 → 6.4.0-hot.2
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/package.json +5 -5
- package/packages/business-components/app-container/index.js +255 -47
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/index.js +298 -90
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +0 -1
- package/packages/business-components/currency-page/index.js +0 -1
- package/packages/business-components/device-panel/index.js +28123 -23290
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/index.js +0 -1
- package/packages/business-components/import-button/index.js +0 -1
- package/packages/business-components/layout-breadcrumb/index.js +0 -1
- package/packages/business-components/model-table-dialog/index.js +0 -1
- package/packages/business-components/process-configuration/index.js +0 -1
- package/packages/business-components/process-form/index.js +1010 -802
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/index.js +3669 -332
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +0 -1
- package/packages/business-components/urgent-panel/index.js +2338 -1554
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +0 -1
- package/packages/business-components/video-dialog/index.js +0 -1
- package/packages/components/alert/index.js +3418 -52
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/audio-video/index.js +0 -1
- package/packages/components/autocomplete/index.js +2875 -457
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.js +271 -48
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.js +9800 -212
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/index.js +0 -1
- package/packages/components/cascader/index.js +6406 -140
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +3837 -180
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +3624 -31
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-transition/index.js +0 -1
- package/packages/components/collaspe/index.js +3624 -31
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +5346 -107
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/index.js +0 -1
- package/packages/components/date-picker/index.js +13993 -530
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.js +1835 -187
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +0 -1
- package/packages/components/drawer/index.js +1614 -39
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +4615 -55
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +0 -1
- package/packages/components/empty/index.js +800 -40
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/form/index.js +0 -1
- package/packages/components/form-item/index.js +0 -1
- package/packages/components/icon/index.js +0 -1
- package/packages/components/image-preview/index.js +1283 -34
- package/packages/components/image-preview/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +11722 -112
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +13168 -387
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +1086 -158
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/index.js +0 -1
- package/packages/components/input-number/index.js +1831 -146
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +3669 -2884
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/index.js +0 -1
- package/packages/components/map/index.js +5214 -1191
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +8297 -604
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.js +10077 -39
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/message/index.js +1289 -54
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/index.js +3269 -48
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/index.js +8025 -149
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/index.js +2495 -45
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popup-mask/index.js +0 -1
- package/packages/components/preview/index.js +0 -1
- package/packages/components/progress/index.js +517 -108
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/radio/index.js +3724 -160
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +0 -1
- package/packages/components/rich-editor/index.js +0 -1
- package/packages/components/scrollbar/index.js +1442 -916
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +5261 -90
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +1010 -921
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/index.js +10505 -380
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.js +0 -1
- package/packages/components/select-list/index.js +1433 -1174
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +2645 -197
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +2710 -260
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +3534 -49
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +0 -1
- package/packages/components/step/index.js +4085 -29
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/steps/index.js +4070 -15
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/components/switch/index.js +547 -32
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/table/index.js +17503 -5202
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/index.js +12630 -173
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tag/index.js +325 -56
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +0 -1
- package/packages/components/time-line/index.js +3397 -61
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +2174 -66
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +6747 -1882
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +2778 -359
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +0 -1
- package/packages/components/upload/index.js +11726 -116
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +2928 -87
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/watermark/index.js +368 -18
- package/packages/components/watermark/index.js.gz +0 -0
- /package/packages/business-components/app-container/{style.css → index.css} +0 -0
- /package/packages/business-components/app-container/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/change-enterprises/{style.css → index.css} +0 -0
- /package/packages/business-components/change-enterprises/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/change-pwd/{style.css → index.css} +0 -0
- /package/packages/business-components/currency-page/{style.css → index.css} +0 -0
- /package/packages/business-components/device-panel/{style.css → index.css} +0 -0
- /package/packages/business-components/device-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/export-button/{style.css → index.css} +0 -0
- /package/packages/business-components/import-button/{style.css → index.css} +0 -0
- /package/packages/business-components/layout-breadcrumb/{style.css → index.css} +0 -0
- /package/packages/business-components/model-table-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/model-table-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-configuration/{style.css → index.css} +0 -0
- /package/packages/business-components/process-configuration/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-form/{style.css → index.css} +0 -0
- /package/packages/business-components/process-log/{style.css → index.css} +0 -0
- /package/packages/business-components/process-log/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-table/{style.css → index.css} +0 -0
- /package/packages/business-components/urgent-panel/{style.css → index.css} +0 -0
- /package/packages/business-components/urgent-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/user-org-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/user-org-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/video-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/video-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/alert/{style.css → index.css} +0 -0
- /package/packages/components/alert/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/audio-video/{style.css → index.css} +0 -0
- /package/packages/components/autocomplete/{style.css → index.css} +0 -0
- /package/packages/components/autocomplete/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/breadcrumb/{style.css → index.css} +0 -0
- /package/packages/components/breadcrumb/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/button/{style.css → index.css} +0 -0
- /package/packages/components/button/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/calendar/{style.css → index.css} +0 -0
- /package/packages/components/calendar/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/cascader/{style.css → index.css} +0 -0
- /package/packages/components/cascader/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/checkbox/{style.css → index.css} +0 -0
- /package/packages/components/checkbox/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/collapse-panel/{style.css → index.css} +0 -0
- /package/packages/components/collapse-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/collapse-transition/{style.css → index.css} +0 -0
- /package/packages/components/collaspe/{style.css → index.css} +0 -0
- /package/packages/components/color-picker/{style.css → index.css} +0 -0
- /package/packages/components/color-picker/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/custom-search-item/{style.css → index.css} +0 -0
- /package/packages/components/date-picker/{style.css → index.css} +0 -0
- /package/packages/components/date-picker/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/dialog/{style.css → index.css} +0 -0
- /package/packages/components/dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/dimple-layout/{style.css → index.css} +0 -0
- /package/packages/components/dimple-layout/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/drawer/{style.css → index.css} +0 -0
- /package/packages/components/dropdown/{style.css → index.css} +0 -0
- /package/packages/components/dropdown/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/edit-table/{style.css → index.css} +0 -0
- /package/packages/components/edit-table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/empty/{style.css → index.css} +0 -0
- /package/packages/components/form/{style.css → index.css} +0 -0
- /package/packages/components/form-item/{style.css → index.css} +0 -0
- /package/packages/components/form-item/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/icon/{style.css → index.css} +0 -0
- /package/packages/components/image-upload/{style.css → index.css} +0 -0
- /package/packages/components/image-upload/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/image-viewer/{style.css → index.css} +0 -0
- /package/packages/components/image-viewer/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/input/{style.css → index.css} +0 -0
- /package/packages/components/input/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/input-dialog-select/{style.css → index.css} +0 -0
- /package/packages/components/input-dialog-select/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/input-number/{style.css → index.css} +0 -0
- /package/packages/components/input-number/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/live-player/{style.css → index.css} +0 -0
- /package/packages/components/loading/{style.css → index.css} +0 -0
- /package/packages/components/loading/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/map/{style.css → index.css} +0 -0
- /package/packages/components/menu-aside/{style.css → index.css} +0 -0
- /package/packages/components/menu-aside/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/menu-header/{style.css → index.css} +0 -0
- /package/packages/components/menu-header/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/message/{style.css → index.css} +0 -0
- /package/packages/components/message/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/notification/{style.css → index.css} +0 -0
- /package/packages/components/notification/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/pagination/{style.css → index.css} +0 -0
- /package/packages/components/pagination/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/popover/{style.css → index.css} +0 -0
- /package/packages/components/popover/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/popup-mask/{style.css → index.css} +0 -0
- /package/packages/components/preview/{style.css → index.css} +0 -0
- /package/packages/components/progress/{style.css → index.css} +0 -0
- /package/packages/components/progress/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/radio/{style.css → index.css} +0 -0
- /package/packages/components/radio/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/radio-tabs/{style.css → index.css} +0 -0
- /package/packages/components/radio-tabs/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/rich-editor/{style.css → index.css} +0 -0
- /package/packages/components/rich-editor/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/scrollbar/{style.css → index.css} +0 -0
- /package/packages/components/scrollbar/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/search/{style.css → index.css} +0 -0
- /package/packages/components/search/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/search-form/{style.css → index.css} +0 -0
- /package/packages/components/search-form/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/select/{style.css → index.css} +0 -0
- /package/packages/components/select/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/select-input/{style.css → index.css} +0 -0
- /package/packages/components/select-input/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/select-list/{style.css → index.css} +0 -0
- /package/packages/components/select-list/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/special-range-picker-month/{style.css → index.css} +0 -0
- /package/packages/components/special-range-picker-month/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/special-range-picker-year/{style.css → index.css} +0 -0
- /package/packages/components/special-range-picker-year/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/spin/{style.css → index.css} +0 -0
- /package/packages/components/spin/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/split-panel/{style.css → index.css} +0 -0
- /package/packages/components/split-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/step/{style.css → index.css} +0 -0
- /package/packages/components/steps/{style.css → index.css} +0 -0
- /package/packages/components/steps/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/switch/{style.css → index.css} +0 -0
- /package/packages/components/switch/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/table/{style.css → index.css} +0 -0
- /package/packages/components/table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tabs/{style.css → index.css} +0 -0
- /package/packages/components/tabs/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tag/{style.css → index.css} +0 -0
- /package/packages/components/tag/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/text-tooltip/{style.css → index.css} +0 -0
- /package/packages/components/text-tooltip/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/time-line/{style.css → index.css} +0 -0
- /package/packages/components/time-line/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tooltip/{style.css → index.css} +0 -0
- /package/packages/components/tooltip/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tree/{style.css → index.css} +0 -0
- /package/packages/components/tree/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tree-select/{style.css → index.css} +0 -0
- /package/packages/components/tree-select/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tree-table/{style.css → index.css} +0 -0
- /package/packages/components/tree-table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/upload/{style.css → index.css} +0 -0
- /package/packages/components/upload/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/virtual-tree/{style.css → index.css} +0 -0
- /package/packages/components/virtual-tree/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/watermark/{style.css → index.css} +0 -0
|
@@ -1,32 +1,2450 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "element-plus/
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useModelValue as Q } from "@das-fed/utils/vue";
|
|
1
|
+
import { getCurrentScope as Fo, onScopeDispose as zo, unref as v, watch as j, warn as Lo, getCurrentInstance as ft, inject as ie, ref as N, computed as P, onMounted as me, shallowRef as Mo, onBeforeUnmount as ve, onBeforeMount as Vo, provide as ge, defineComponent as H, renderSlot as K, openBlock as B, createElementBlock as ee, normalizeClass as Re, normalizeStyle as it, withDirectives as Oe, cloneVNode as Bo, Fragment as qn, Text as Do, Comment as jo, createVNode as ye, createBlock as ne, mergeProps as Ie, withCtx as J, createCommentVNode as ce, nextTick as He, toRef as Be, Teleport as Ho, Transition as Uo, vShow as _t, readonly as Ko, onDeactivated as Wo, toDisplayString as st, createTextVNode as Jn, pushScopeId as qo, popScopeId as Jo, withScopeId as Zo, markRaw as Yo, shallowReactive as Qo, resolveComponent as Go, resolveDirective as Xo, resolveDynamicComponent as fn, renderList as Zn, toHandlers as er, onUnmounted as tr, createElementVNode as dn, withModifiers as pn, isRef as nr, createSlots as or } from "vue";
|
|
2
|
+
import { withInstall as rr } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import "element-plus/theme-chalk/base.css";
|
|
4
|
+
import "element-plus/theme-chalk/el-popper.css";
|
|
5
|
+
import "element-plus/theme-chalk/el-popover.css";
|
|
6
|
+
import { DasInput as ir } from "@das-fed/ui/packages/components/input/index";
|
|
7
|
+
import { vDasTooltip as sr } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
8
|
+
import { vOverlay as ar } from "@das-fed/ui/packages/components/overlay/index";
|
|
9
|
+
import { DasTree as lr } from "@das-fed/ui/packages/components/tree/index";
|
|
10
|
+
import { useModelValue as yt } from "@das-fed/utils/vue";
|
|
12
11
|
import "@das-fed/ui/packages/global/theme";
|
|
13
|
-
|
|
12
|
+
const de = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (r) => {
|
|
13
|
+
const i = e == null ? void 0 : e(r);
|
|
14
|
+
if (n === !1 || !i)
|
|
15
|
+
return t == null ? void 0 : t(r);
|
|
16
|
+
};
|
|
17
|
+
var mn;
|
|
18
|
+
const le = typeof window < "u", ur = (e) => typeof e == "string", Yn = () => {
|
|
19
|
+
}, cr = le && ((mn = window == null ? void 0 : window.navigator) == null ? void 0 : mn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
20
|
+
function Qn(e) {
|
|
21
|
+
return typeof e == "function" ? e() : v(e);
|
|
22
|
+
}
|
|
23
|
+
function fr(e) {
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
function Gn(e) {
|
|
27
|
+
return Fo() ? (zo(e), !0) : !1;
|
|
28
|
+
}
|
|
29
|
+
function Se(e) {
|
|
30
|
+
var t;
|
|
31
|
+
const n = Qn(e);
|
|
32
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
33
|
+
}
|
|
34
|
+
const Xn = le ? window : void 0;
|
|
35
|
+
function bt(...e) {
|
|
36
|
+
let t, n, o, r;
|
|
37
|
+
if (ur(e[0]) || Array.isArray(e[0]) ? ([n, o, r] = e, t = Xn) : [t, n, o, r] = e, !t)
|
|
38
|
+
return Yn;
|
|
39
|
+
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
40
|
+
const i = [], a = () => {
|
|
41
|
+
i.forEach((p) => p()), i.length = 0;
|
|
42
|
+
}, u = (p, h, y, g) => (p.addEventListener(h, y, g), () => p.removeEventListener(h, y, g)), s = j(() => [Se(t), Qn(r)], ([p, h]) => {
|
|
43
|
+
a(), p && i.push(...n.flatMap((y) => o.map((g) => u(p, y, g, h))));
|
|
44
|
+
}, { immediate: !0, flush: "post" }), l = () => {
|
|
45
|
+
s(), a();
|
|
46
|
+
};
|
|
47
|
+
return Gn(l), l;
|
|
48
|
+
}
|
|
49
|
+
let vn = !1;
|
|
50
|
+
function dr(e, t, n = {}) {
|
|
51
|
+
const { window: o = Xn, ignore: r = [], capture: i = !0, detectIframe: a = !1 } = n;
|
|
52
|
+
if (!o)
|
|
53
|
+
return;
|
|
54
|
+
cr && !vn && (vn = !0, Array.from(o.document.body.children).forEach((y) => y.addEventListener("click", Yn)));
|
|
55
|
+
let u = !0;
|
|
56
|
+
const s = (y) => r.some((g) => {
|
|
57
|
+
if (typeof g == "string")
|
|
58
|
+
return Array.from(o.document.querySelectorAll(g)).some((m) => m === y.target || y.composedPath().includes(m));
|
|
59
|
+
{
|
|
60
|
+
const m = Se(g);
|
|
61
|
+
return m && (y.target === m || y.composedPath().includes(m));
|
|
62
|
+
}
|
|
63
|
+
}), p = [
|
|
64
|
+
bt(o, "click", (y) => {
|
|
65
|
+
const g = Se(e);
|
|
66
|
+
if (!(!g || g === y.target || y.composedPath().includes(g))) {
|
|
67
|
+
if (y.detail === 0 && (u = !s(y)), !u) {
|
|
68
|
+
u = !0;
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
t(y);
|
|
72
|
+
}
|
|
73
|
+
}, { passive: !0, capture: i }),
|
|
74
|
+
bt(o, "pointerdown", (y) => {
|
|
75
|
+
const g = Se(e);
|
|
76
|
+
g && (u = !y.composedPath().includes(g) && !s(y));
|
|
77
|
+
}, { passive: !0 }),
|
|
78
|
+
a && bt(o, "blur", (y) => {
|
|
79
|
+
var g;
|
|
80
|
+
const m = Se(e);
|
|
81
|
+
((g = o.document.activeElement) == null ? void 0 : g.tagName) === "IFRAME" && !(m != null && m.contains(o.document.activeElement)) && t(y);
|
|
82
|
+
})
|
|
83
|
+
].filter(Boolean);
|
|
84
|
+
return () => p.forEach((y) => y());
|
|
85
|
+
}
|
|
86
|
+
const hn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, gn = "__vueuse_ssr_handlers__";
|
|
87
|
+
hn[gn] = hn[gn] || {};
|
|
88
|
+
var yn;
|
|
89
|
+
(function(e) {
|
|
90
|
+
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
91
|
+
})(yn || (yn = {}));
|
|
92
|
+
var pr = Object.defineProperty, bn = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hr = (e, t) => {
|
|
93
|
+
for (var n in t || (t = {}))
|
|
94
|
+
mr.call(t, n) && wn(e, n, t[n]);
|
|
95
|
+
if (bn)
|
|
96
|
+
for (var n of bn(t))
|
|
97
|
+
vr.call(t, n) && wn(e, n, t[n]);
|
|
98
|
+
return e;
|
|
99
|
+
};
|
|
100
|
+
const gr = {
|
|
101
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
102
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
103
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
104
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
105
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
106
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
107
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
108
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
109
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
110
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
111
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
112
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
113
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
114
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
115
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
116
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
117
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
118
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
119
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
120
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
121
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
122
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
123
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
124
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
125
|
+
};
|
|
126
|
+
hr({
|
|
127
|
+
linear: fr
|
|
128
|
+
}, gr);
|
|
129
|
+
/**
|
|
130
|
+
* @vue/shared v3.4.35
|
|
131
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
132
|
+
* @license MIT
|
|
133
|
+
**/
|
|
134
|
+
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
135
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
136
|
+
const Ct = () => {
|
|
137
|
+
}, yr = Object.prototype.hasOwnProperty, En = (e, t) => yr.call(e, t), br = Array.isArray, Qe = (e) => typeof e == "function", dt = (e) => typeof e == "string", Ft = (e) => e !== null && typeof e == "object";
|
|
138
|
+
function Pt(e) {
|
|
139
|
+
for (var t = -1, n = e == null ? 0 : e.length, o = {}; ++t < n; ) {
|
|
140
|
+
var r = e[t];
|
|
141
|
+
o[r[0]] = r[1];
|
|
142
|
+
}
|
|
143
|
+
return o;
|
|
144
|
+
}
|
|
145
|
+
function zt(e) {
|
|
146
|
+
return e == null;
|
|
147
|
+
}
|
|
148
|
+
function wr(e) {
|
|
149
|
+
return e === void 0;
|
|
150
|
+
}
|
|
151
|
+
const Lt = (e) => typeof e == "boolean", Ue = (e) => typeof e == "number", at = (e) => typeof Element > "u" ? !1 : e instanceof Element, Er = (e) => dt(e) ? !Number.isNaN(Number(e)) : !1;
|
|
152
|
+
class Or extends Error {
|
|
153
|
+
constructor(t) {
|
|
154
|
+
super(t), this.name = "ElementPlusError";
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function lt(e, t) {
|
|
158
|
+
if (process.env.NODE_ENV !== "production") {
|
|
159
|
+
const n = dt(e) ? new Or(`[${e}] ${t}`) : e;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const Sr = "utils/dom/style";
|
|
163
|
+
function Tr(e, t = "px") {
|
|
164
|
+
if (!e)
|
|
165
|
+
return "";
|
|
166
|
+
if (Ue(e) || Er(e))
|
|
167
|
+
return `${e}${t}`;
|
|
168
|
+
if (dt(e))
|
|
169
|
+
return e;
|
|
170
|
+
lt(Sr, "binding value must be a string or number");
|
|
171
|
+
}
|
|
172
|
+
const eo = "__epPropKey", M = (e) => e, Ir = (e) => Ft(e) && !!e[eo], Mt = (e, t) => {
|
|
173
|
+
if (!Ft(e) || Ir(e))
|
|
174
|
+
return e;
|
|
175
|
+
const { values: n, required: o, default: r, type: i, validator: a } = e, s = {
|
|
176
|
+
type: i,
|
|
177
|
+
required: !!o,
|
|
178
|
+
validator: n || a ? (l) => {
|
|
179
|
+
let p = !1, h = [];
|
|
180
|
+
if (n && (h = Array.from(n), En(e, "default") && h.push(r), p || (p = h.includes(l))), a && (p || (p = a(l))), !p && h.length > 0) {
|
|
181
|
+
const y = [...new Set(h)].map((g) => JSON.stringify(g)).join(", ");
|
|
182
|
+
Lo(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${y}], got value ${JSON.stringify(l)}.`);
|
|
183
|
+
}
|
|
184
|
+
return p;
|
|
185
|
+
} : void 0,
|
|
186
|
+
[eo]: !0
|
|
187
|
+
};
|
|
188
|
+
return En(e, "default") && (s.default = r), s;
|
|
189
|
+
}, G = (e) => Pt(Object.entries(e).map(([t, n]) => [
|
|
190
|
+
t,
|
|
191
|
+
Mt(n, t)
|
|
192
|
+
])), _r = M([
|
|
193
|
+
String,
|
|
194
|
+
Object,
|
|
195
|
+
Function
|
|
196
|
+
]), Vt = (e, t) => {
|
|
197
|
+
if (e.install = (n) => {
|
|
198
|
+
for (const o of [e, ...Object.values(t ?? {})])
|
|
199
|
+
n.component(o.name, o);
|
|
200
|
+
}, t)
|
|
201
|
+
for (const [n, o] of Object.entries(t))
|
|
202
|
+
e[n] = o;
|
|
203
|
+
return e;
|
|
204
|
+
}, Cr = (e, t) => (e.install = (n) => {
|
|
205
|
+
n.directive(t, e);
|
|
206
|
+
}, e), ut = {
|
|
207
|
+
tab: "Tab",
|
|
208
|
+
enter: "Enter",
|
|
209
|
+
space: "Space",
|
|
210
|
+
left: "ArrowLeft",
|
|
211
|
+
up: "ArrowUp",
|
|
212
|
+
right: "ArrowRight",
|
|
213
|
+
down: "ArrowDown",
|
|
214
|
+
esc: "Escape",
|
|
215
|
+
delete: "Delete",
|
|
216
|
+
backspace: "Backspace",
|
|
217
|
+
numpadEnter: "NumpadEnter",
|
|
218
|
+
pageUp: "PageUp",
|
|
219
|
+
pageDown: "PageDown",
|
|
220
|
+
home: "Home",
|
|
221
|
+
end: "End"
|
|
222
|
+
}, wt = "el", Pr = "is-", Ee = (e, t, n, o, r) => {
|
|
223
|
+
let i = `${e}-${t}`;
|
|
224
|
+
return n && (i += `-${n}`), o && (i += `__${o}`), r && (i += `--${r}`), i;
|
|
225
|
+
}, $r = Symbol("namespaceContextKey"), Bt = (e) => {
|
|
226
|
+
const t = ft() ? ie($r, N(wt)) : N(wt);
|
|
227
|
+
return P(() => v(t) || wt);
|
|
228
|
+
}, Le = (e, t) => {
|
|
229
|
+
const n = Bt();
|
|
230
|
+
return {
|
|
231
|
+
namespace: n,
|
|
232
|
+
b: (f = "") => Ee(n.value, e, f, "", ""),
|
|
233
|
+
e: (f) => f ? Ee(n.value, e, "", f, "") : "",
|
|
234
|
+
m: (f) => f ? Ee(n.value, e, "", "", f) : "",
|
|
235
|
+
be: (f, d) => f && d ? Ee(n.value, e, f, d, "") : "",
|
|
236
|
+
em: (f, d) => f && d ? Ee(n.value, e, "", f, d) : "",
|
|
237
|
+
bm: (f, d) => f && d ? Ee(n.value, e, f, "", d) : "",
|
|
238
|
+
bem: (f, d, c) => f && d && c ? Ee(n.value, e, f, d, c) : "",
|
|
239
|
+
is: (f, ...d) => {
|
|
240
|
+
const c = d.length >= 1 ? d[0] : !0;
|
|
241
|
+
return f && c ? `${Pr}${f}` : "";
|
|
242
|
+
},
|
|
243
|
+
cssVar: (f) => {
|
|
244
|
+
const d = {};
|
|
245
|
+
for (const c in f)
|
|
246
|
+
f[c] && (d[`--${n.value}-${c}`] = f[c]);
|
|
247
|
+
return d;
|
|
248
|
+
},
|
|
249
|
+
cssVarName: (f) => `--${n.value}-${f}`,
|
|
250
|
+
cssVarBlock: (f) => {
|
|
251
|
+
const d = {};
|
|
252
|
+
for (const c in f)
|
|
253
|
+
f[c] && (d[`--${n.value}-${e}-${c}`] = f[c]);
|
|
254
|
+
return d;
|
|
255
|
+
},
|
|
256
|
+
cssVarBlockName: (f) => `--${n.value}-${e}-${f}`
|
|
257
|
+
};
|
|
258
|
+
}, Ar = Mt({
|
|
259
|
+
type: M(Boolean),
|
|
260
|
+
default: null
|
|
261
|
+
}), Rr = Mt({
|
|
262
|
+
type: M(Function)
|
|
263
|
+
}), to = (e) => {
|
|
264
|
+
const t = `update:${e}`, n = `onUpdate:${e}`, o = [t], r = {
|
|
265
|
+
[e]: Ar,
|
|
266
|
+
[n]: Rr
|
|
267
|
+
};
|
|
268
|
+
return {
|
|
269
|
+
useModelToggle: ({
|
|
270
|
+
indicator: a,
|
|
271
|
+
toggleReason: u,
|
|
272
|
+
shouldHideWhenRouteChanges: s,
|
|
273
|
+
shouldProceed: l,
|
|
274
|
+
onShow: p,
|
|
275
|
+
onHide: h
|
|
276
|
+
}) => {
|
|
277
|
+
const y = ft(), { emit: g } = y, m = y.props, f = P(() => Qe(m[n])), d = P(() => m[e] === null), c = (T) => {
|
|
278
|
+
a.value !== !0 && (a.value = !0, u && (u.value = T), Qe(p) && p(T));
|
|
279
|
+
}, E = (T) => {
|
|
280
|
+
a.value !== !1 && (a.value = !1, u && (u.value = T), Qe(h) && h(T));
|
|
281
|
+
}, I = (T) => {
|
|
282
|
+
if (m.disabled === !0 || Qe(l) && !l())
|
|
283
|
+
return;
|
|
284
|
+
const _ = f.value && le;
|
|
285
|
+
_ && g(t, !0), (d.value || !_) && c(T);
|
|
286
|
+
}, b = (T) => {
|
|
287
|
+
if (m.disabled === !0 || !le)
|
|
288
|
+
return;
|
|
289
|
+
const _ = f.value && le;
|
|
290
|
+
_ && g(t, !1), (d.value || !_) && E(T);
|
|
291
|
+
}, C = (T) => {
|
|
292
|
+
Lt(T) && (m.disabled && T ? f.value && g(t, !1) : a.value !== T && (T ? c() : E()));
|
|
293
|
+
}, x = () => {
|
|
294
|
+
a.value ? b() : I();
|
|
295
|
+
};
|
|
296
|
+
return j(() => m[e], C), s && y.appContext.config.globalProperties.$route !== void 0 && j(() => ({
|
|
297
|
+
...y.proxy.$route
|
|
298
|
+
}), () => {
|
|
299
|
+
s.value && a.value && b();
|
|
300
|
+
}), me(() => {
|
|
301
|
+
C(m[e]);
|
|
302
|
+
}), {
|
|
303
|
+
hide: b,
|
|
304
|
+
show: I,
|
|
305
|
+
toggle: x,
|
|
306
|
+
hasUpdateHandler: f
|
|
307
|
+
};
|
|
308
|
+
},
|
|
309
|
+
useModelToggleProps: r,
|
|
310
|
+
useModelToggleEmits: o
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
to("modelValue");
|
|
314
|
+
var Z = "top", oe = "bottom", re = "right", Y = "left", Dt = "auto", Je = [Z, oe, re, Y], ke = "start", Ke = "end", kr = "clippingParents", no = "viewport", Ve = "popper", Nr = "reference", On = Je.reduce(function(e, t) {
|
|
315
|
+
return e.concat([t + "-" + ke, t + "-" + Ke]);
|
|
316
|
+
}, []), jt = [].concat(Je, [Dt]).reduce(function(e, t) {
|
|
317
|
+
return e.concat([t, t + "-" + ke, t + "-" + Ke]);
|
|
318
|
+
}, []), xr = "beforeRead", Fr = "read", zr = "afterRead", Lr = "beforeMain", Mr = "main", Vr = "afterMain", Br = "beforeWrite", Dr = "write", jr = "afterWrite", Hr = [xr, Fr, zr, Lr, Mr, Vr, Br, Dr, jr];
|
|
319
|
+
function fe(e) {
|
|
320
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
321
|
+
}
|
|
322
|
+
function se(e) {
|
|
323
|
+
if (e == null) return window;
|
|
324
|
+
if (e.toString() !== "[object Window]") {
|
|
325
|
+
var t = e.ownerDocument;
|
|
326
|
+
return t && t.defaultView || window;
|
|
327
|
+
}
|
|
328
|
+
return e;
|
|
329
|
+
}
|
|
330
|
+
function Ne(e) {
|
|
331
|
+
var t = se(e).Element;
|
|
332
|
+
return e instanceof t || e instanceof Element;
|
|
333
|
+
}
|
|
334
|
+
function te(e) {
|
|
335
|
+
var t = se(e).HTMLElement;
|
|
336
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
337
|
+
}
|
|
338
|
+
function Ht(e) {
|
|
339
|
+
if (typeof ShadowRoot > "u") return !1;
|
|
340
|
+
var t = se(e).ShadowRoot;
|
|
341
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
342
|
+
}
|
|
343
|
+
function Ur(e) {
|
|
344
|
+
var t = e.state;
|
|
345
|
+
Object.keys(t.elements).forEach(function(n) {
|
|
346
|
+
var o = t.styles[n] || {}, r = t.attributes[n] || {}, i = t.elements[n];
|
|
347
|
+
!te(i) || !fe(i) || (Object.assign(i.style, o), Object.keys(r).forEach(function(a) {
|
|
348
|
+
var u = r[a];
|
|
349
|
+
u === !1 ? i.removeAttribute(a) : i.setAttribute(a, u === !0 ? "" : u);
|
|
350
|
+
}));
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
function Kr(e) {
|
|
354
|
+
var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
|
|
355
|
+
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
356
|
+
Object.keys(t.elements).forEach(function(o) {
|
|
357
|
+
var r = t.elements[o], i = t.attributes[o] || {}, a = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), u = a.reduce(function(s, l) {
|
|
358
|
+
return s[l] = "", s;
|
|
359
|
+
}, {});
|
|
360
|
+
!te(r) || !fe(r) || (Object.assign(r.style, u), Object.keys(i).forEach(function(s) {
|
|
361
|
+
r.removeAttribute(s);
|
|
362
|
+
}));
|
|
363
|
+
});
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
var oo = { name: "applyStyles", enabled: !0, phase: "write", fn: Ur, effect: Kr, requires: ["computeStyles"] };
|
|
367
|
+
function ue(e) {
|
|
368
|
+
return e.split("-")[0];
|
|
369
|
+
}
|
|
370
|
+
var Te = Math.max, ct = Math.min, xe = Math.round;
|
|
371
|
+
function Fe(e, t) {
|
|
372
|
+
t === void 0 && (t = !1);
|
|
373
|
+
var n = e.getBoundingClientRect(), o = 1, r = 1;
|
|
374
|
+
if (te(e) && t) {
|
|
375
|
+
var i = e.offsetHeight, a = e.offsetWidth;
|
|
376
|
+
a > 0 && (o = xe(n.width) / a || 1), i > 0 && (r = xe(n.height) / i || 1);
|
|
377
|
+
}
|
|
378
|
+
return { width: n.width / o, height: n.height / r, top: n.top / r, right: n.right / o, bottom: n.bottom / r, left: n.left / o, x: n.left / o, y: n.top / r };
|
|
379
|
+
}
|
|
380
|
+
function Ut(e) {
|
|
381
|
+
var t = Fe(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
382
|
+
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: o };
|
|
383
|
+
}
|
|
384
|
+
function ro(e, t) {
|
|
385
|
+
var n = t.getRootNode && t.getRootNode();
|
|
386
|
+
if (e.contains(t)) return !0;
|
|
387
|
+
if (n && Ht(n)) {
|
|
388
|
+
var o = t;
|
|
389
|
+
do {
|
|
390
|
+
if (o && e.isSameNode(o)) return !0;
|
|
391
|
+
o = o.parentNode || o.host;
|
|
392
|
+
} while (o);
|
|
393
|
+
}
|
|
394
|
+
return !1;
|
|
395
|
+
}
|
|
396
|
+
function pe(e) {
|
|
397
|
+
return se(e).getComputedStyle(e);
|
|
398
|
+
}
|
|
399
|
+
function Wr(e) {
|
|
400
|
+
return ["table", "td", "th"].indexOf(fe(e)) >= 0;
|
|
401
|
+
}
|
|
402
|
+
function be(e) {
|
|
403
|
+
return ((Ne(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
404
|
+
}
|
|
405
|
+
function pt(e) {
|
|
406
|
+
return fe(e) === "html" ? e : e.assignedSlot || e.parentNode || (Ht(e) ? e.host : null) || be(e);
|
|
407
|
+
}
|
|
408
|
+
function Sn(e) {
|
|
409
|
+
return !te(e) || pe(e).position === "fixed" ? null : e.offsetParent;
|
|
410
|
+
}
|
|
411
|
+
function qr(e) {
|
|
412
|
+
var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
|
|
413
|
+
if (n && te(e)) {
|
|
414
|
+
var o = pe(e);
|
|
415
|
+
if (o.position === "fixed") return null;
|
|
416
|
+
}
|
|
417
|
+
var r = pt(e);
|
|
418
|
+
for (Ht(r) && (r = r.host); te(r) && ["html", "body"].indexOf(fe(r)) < 0; ) {
|
|
419
|
+
var i = pe(r);
|
|
420
|
+
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none") return r;
|
|
421
|
+
r = r.parentNode;
|
|
422
|
+
}
|
|
423
|
+
return null;
|
|
424
|
+
}
|
|
425
|
+
function Ze(e) {
|
|
426
|
+
for (var t = se(e), n = Sn(e); n && Wr(n) && pe(n).position === "static"; ) n = Sn(n);
|
|
427
|
+
return n && (fe(n) === "html" || fe(n) === "body" && pe(n).position === "static") ? t : n || qr(e) || t;
|
|
428
|
+
}
|
|
429
|
+
function Kt(e) {
|
|
430
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
431
|
+
}
|
|
432
|
+
function De(e, t, n) {
|
|
433
|
+
return Te(e, ct(t, n));
|
|
434
|
+
}
|
|
435
|
+
function Jr(e, t, n) {
|
|
436
|
+
var o = De(e, t, n);
|
|
437
|
+
return o > n ? n : o;
|
|
438
|
+
}
|
|
439
|
+
function io() {
|
|
440
|
+
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
441
|
+
}
|
|
442
|
+
function so(e) {
|
|
443
|
+
return Object.assign({}, io(), e);
|
|
444
|
+
}
|
|
445
|
+
function ao(e, t) {
|
|
446
|
+
return t.reduce(function(n, o) {
|
|
447
|
+
return n[o] = e, n;
|
|
448
|
+
}, {});
|
|
449
|
+
}
|
|
450
|
+
var Zr = function(e, t) {
|
|
451
|
+
return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, so(typeof e != "number" ? e : ao(e, Je));
|
|
452
|
+
};
|
|
453
|
+
function Yr(e) {
|
|
454
|
+
var t, n = e.state, o = e.name, r = e.options, i = n.elements.arrow, a = n.modifiersData.popperOffsets, u = ue(n.placement), s = Kt(u), l = [Y, re].indexOf(u) >= 0, p = l ? "height" : "width";
|
|
455
|
+
if (!(!i || !a)) {
|
|
456
|
+
var h = Zr(r.padding, n), y = Ut(i), g = s === "y" ? Z : Y, m = s === "y" ? oe : re, f = n.rects.reference[p] + n.rects.reference[s] - a[s] - n.rects.popper[p], d = a[s] - n.rects.reference[s], c = Ze(i), E = c ? s === "y" ? c.clientHeight || 0 : c.clientWidth || 0 : 0, I = f / 2 - d / 2, b = h[g], C = E - y[p] - h[m], x = E / 2 - y[p] / 2 + I, T = De(b, x, C), _ = s;
|
|
457
|
+
n.modifiersData[o] = (t = {}, t[_] = T, t.centerOffset = T - x, t);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
function Qr(e) {
|
|
461
|
+
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
462
|
+
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || !ro(t.elements.popper, r) || (t.elements.arrow = r));
|
|
463
|
+
}
|
|
464
|
+
var Gr = { name: "arrow", enabled: !0, phase: "main", fn: Yr, effect: Qr, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
|
|
465
|
+
function ze(e) {
|
|
466
|
+
return e.split("-")[1];
|
|
467
|
+
}
|
|
468
|
+
var Xr = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
469
|
+
function ei(e) {
|
|
470
|
+
var t = e.x, n = e.y, o = window, r = o.devicePixelRatio || 1;
|
|
471
|
+
return { x: xe(t * r) / r || 0, y: xe(n * r) / r || 0 };
|
|
472
|
+
}
|
|
473
|
+
function Tn(e) {
|
|
474
|
+
var t, n = e.popper, o = e.popperRect, r = e.placement, i = e.variation, a = e.offsets, u = e.position, s = e.gpuAcceleration, l = e.adaptive, p = e.roundOffsets, h = e.isFixed, y = a.x, g = y === void 0 ? 0 : y, m = a.y, f = m === void 0 ? 0 : m, d = typeof p == "function" ? p({ x: g, y: f }) : { x: g, y: f };
|
|
475
|
+
g = d.x, f = d.y;
|
|
476
|
+
var c = a.hasOwnProperty("x"), E = a.hasOwnProperty("y"), I = Y, b = Z, C = window;
|
|
477
|
+
if (l) {
|
|
478
|
+
var x = Ze(n), T = "clientHeight", _ = "clientWidth";
|
|
479
|
+
if (x === se(n) && (x = be(n), pe(x).position !== "static" && u === "absolute" && (T = "scrollHeight", _ = "scrollWidth")), x = x, r === Z || (r === Y || r === re) && i === Ke) {
|
|
480
|
+
b = oe;
|
|
481
|
+
var z = h && x === C && C.visualViewport ? C.visualViewport.height : x[T];
|
|
482
|
+
f -= z - o.height, f *= s ? 1 : -1;
|
|
483
|
+
}
|
|
484
|
+
if (r === Y || (r === Z || r === oe) && i === Ke) {
|
|
485
|
+
I = re;
|
|
486
|
+
var O = h && x === C && C.visualViewport ? C.visualViewport.width : x[_];
|
|
487
|
+
g -= O - o.width, g *= s ? 1 : -1;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
var F = Object.assign({ position: u }, l && Xr), $ = p === !0 ? ei({ x: g, y: f }) : { x: g, y: f };
|
|
491
|
+
if (g = $.x, f = $.y, s) {
|
|
492
|
+
var R;
|
|
493
|
+
return Object.assign({}, F, (R = {}, R[b] = E ? "0" : "", R[I] = c ? "0" : "", R.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + f + "px)" : "translate3d(" + g + "px, " + f + "px, 0)", R));
|
|
494
|
+
}
|
|
495
|
+
return Object.assign({}, F, (t = {}, t[b] = E ? f + "px" : "", t[I] = c ? g + "px" : "", t.transform = "", t));
|
|
496
|
+
}
|
|
497
|
+
function ti(e) {
|
|
498
|
+
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, i = n.adaptive, a = i === void 0 ? !0 : i, u = n.roundOffsets, s = u === void 0 ? !0 : u, l = { placement: ue(t.placement), variation: ze(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: r, isFixed: t.options.strategy === "fixed" };
|
|
499
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Tn(Object.assign({}, l, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: a, roundOffsets: s })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Tn(Object.assign({}, l, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: s })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
|
|
500
|
+
}
|
|
501
|
+
var lo = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: ti, data: {} }, Ge = { passive: !0 };
|
|
502
|
+
function ni(e) {
|
|
503
|
+
var t = e.state, n = e.instance, o = e.options, r = o.scroll, i = r === void 0 ? !0 : r, a = o.resize, u = a === void 0 ? !0 : a, s = se(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
504
|
+
return i && l.forEach(function(p) {
|
|
505
|
+
p.addEventListener("scroll", n.update, Ge);
|
|
506
|
+
}), u && s.addEventListener("resize", n.update, Ge), function() {
|
|
507
|
+
i && l.forEach(function(p) {
|
|
508
|
+
p.removeEventListener("scroll", n.update, Ge);
|
|
509
|
+
}), u && s.removeEventListener("resize", n.update, Ge);
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
var uo = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
|
|
513
|
+
}, effect: ni, data: {} }, oi = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
514
|
+
function nt(e) {
|
|
515
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
516
|
+
return oi[t];
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
var ri = { start: "end", end: "start" };
|
|
520
|
+
function In(e) {
|
|
521
|
+
return e.replace(/start|end/g, function(t) {
|
|
522
|
+
return ri[t];
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
function Wt(e) {
|
|
526
|
+
var t = se(e), n = t.pageXOffset, o = t.pageYOffset;
|
|
527
|
+
return { scrollLeft: n, scrollTop: o };
|
|
528
|
+
}
|
|
529
|
+
function qt(e) {
|
|
530
|
+
return Fe(be(e)).left + Wt(e).scrollLeft;
|
|
531
|
+
}
|
|
532
|
+
function ii(e) {
|
|
533
|
+
var t = se(e), n = be(e), o = t.visualViewport, r = n.clientWidth, i = n.clientHeight, a = 0, u = 0;
|
|
534
|
+
return o && (r = o.width, i = o.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (a = o.offsetLeft, u = o.offsetTop)), { width: r, height: i, x: a + qt(e), y: u };
|
|
535
|
+
}
|
|
536
|
+
function si(e) {
|
|
537
|
+
var t, n = be(e), o = Wt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, i = Te(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = Te(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), u = -o.scrollLeft + qt(e), s = -o.scrollTop;
|
|
538
|
+
return pe(r || n).direction === "rtl" && (u += Te(n.clientWidth, r ? r.clientWidth : 0) - i), { width: i, height: a, x: u, y: s };
|
|
539
|
+
}
|
|
540
|
+
function Jt(e) {
|
|
541
|
+
var t = pe(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
|
|
542
|
+
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
543
|
+
}
|
|
544
|
+
function co(e) {
|
|
545
|
+
return ["html", "body", "#document"].indexOf(fe(e)) >= 0 ? e.ownerDocument.body : te(e) && Jt(e) ? e : co(pt(e));
|
|
546
|
+
}
|
|
547
|
+
function je(e, t) {
|
|
548
|
+
var n;
|
|
549
|
+
t === void 0 && (t = []);
|
|
550
|
+
var o = co(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = se(o), a = r ? [i].concat(i.visualViewport || [], Jt(o) ? o : []) : o, u = t.concat(a);
|
|
551
|
+
return r ? u : u.concat(je(pt(a)));
|
|
552
|
+
}
|
|
553
|
+
function $t(e) {
|
|
554
|
+
return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height });
|
|
555
|
+
}
|
|
556
|
+
function ai(e) {
|
|
557
|
+
var t = Fe(e);
|
|
558
|
+
return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
559
|
+
}
|
|
560
|
+
function _n(e, t) {
|
|
561
|
+
return t === no ? $t(ii(e)) : Ne(t) ? ai(t) : $t(si(be(e)));
|
|
562
|
+
}
|
|
563
|
+
function li(e) {
|
|
564
|
+
var t = je(pt(e)), n = ["absolute", "fixed"].indexOf(pe(e).position) >= 0, o = n && te(e) ? Ze(e) : e;
|
|
565
|
+
return Ne(o) ? t.filter(function(r) {
|
|
566
|
+
return Ne(r) && ro(r, o) && fe(r) !== "body";
|
|
567
|
+
}) : [];
|
|
568
|
+
}
|
|
569
|
+
function ui(e, t, n) {
|
|
570
|
+
var o = t === "clippingParents" ? li(e) : [].concat(t), r = [].concat(o, [n]), i = r[0], a = r.reduce(function(u, s) {
|
|
571
|
+
var l = _n(e, s);
|
|
572
|
+
return u.top = Te(l.top, u.top), u.right = ct(l.right, u.right), u.bottom = ct(l.bottom, u.bottom), u.left = Te(l.left, u.left), u;
|
|
573
|
+
}, _n(e, i));
|
|
574
|
+
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
575
|
+
}
|
|
576
|
+
function fo(e) {
|
|
577
|
+
var t = e.reference, n = e.element, o = e.placement, r = o ? ue(o) : null, i = o ? ze(o) : null, a = t.x + t.width / 2 - n.width / 2, u = t.y + t.height / 2 - n.height / 2, s;
|
|
578
|
+
switch (r) {
|
|
579
|
+
case Z:
|
|
580
|
+
s = { x: a, y: t.y - n.height };
|
|
581
|
+
break;
|
|
582
|
+
case oe:
|
|
583
|
+
s = { x: a, y: t.y + t.height };
|
|
584
|
+
break;
|
|
585
|
+
case re:
|
|
586
|
+
s = { x: t.x + t.width, y: u };
|
|
587
|
+
break;
|
|
588
|
+
case Y:
|
|
589
|
+
s = { x: t.x - n.width, y: u };
|
|
590
|
+
break;
|
|
591
|
+
default:
|
|
592
|
+
s = { x: t.x, y: t.y };
|
|
593
|
+
}
|
|
594
|
+
var l = r ? Kt(r) : null;
|
|
595
|
+
if (l != null) {
|
|
596
|
+
var p = l === "y" ? "height" : "width";
|
|
597
|
+
switch (i) {
|
|
598
|
+
case ke:
|
|
599
|
+
s[l] = s[l] - (t[p] / 2 - n[p] / 2);
|
|
600
|
+
break;
|
|
601
|
+
case Ke:
|
|
602
|
+
s[l] = s[l] + (t[p] / 2 - n[p] / 2);
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return s;
|
|
607
|
+
}
|
|
608
|
+
function We(e, t) {
|
|
609
|
+
t === void 0 && (t = {});
|
|
610
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, i = n.boundary, a = i === void 0 ? kr : i, u = n.rootBoundary, s = u === void 0 ? no : u, l = n.elementContext, p = l === void 0 ? Ve : l, h = n.altBoundary, y = h === void 0 ? !1 : h, g = n.padding, m = g === void 0 ? 0 : g, f = so(typeof m != "number" ? m : ao(m, Je)), d = p === Ve ? Nr : Ve, c = e.rects.popper, E = e.elements[y ? d : p], I = ui(Ne(E) ? E : E.contextElement || be(e.elements.popper), a, s), b = Fe(e.elements.reference), C = fo({ reference: b, element: c, strategy: "absolute", placement: r }), x = $t(Object.assign({}, c, C)), T = p === Ve ? x : b, _ = { top: I.top - T.top + f.top, bottom: T.bottom - I.bottom + f.bottom, left: I.left - T.left + f.left, right: T.right - I.right + f.right }, z = e.modifiersData.offset;
|
|
611
|
+
if (p === Ve && z) {
|
|
612
|
+
var O = z[r];
|
|
613
|
+
Object.keys(_).forEach(function(F) {
|
|
614
|
+
var $ = [re, oe].indexOf(F) >= 0 ? 1 : -1, R = [Z, oe].indexOf(F) >= 0 ? "y" : "x";
|
|
615
|
+
_[F] += O[R] * $;
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
return _;
|
|
619
|
+
}
|
|
620
|
+
function ci(e, t) {
|
|
621
|
+
t === void 0 && (t = {});
|
|
622
|
+
var n = t, o = n.placement, r = n.boundary, i = n.rootBoundary, a = n.padding, u = n.flipVariations, s = n.allowedAutoPlacements, l = s === void 0 ? jt : s, p = ze(o), h = p ? u ? On : On.filter(function(m) {
|
|
623
|
+
return ze(m) === p;
|
|
624
|
+
}) : Je, y = h.filter(function(m) {
|
|
625
|
+
return l.indexOf(m) >= 0;
|
|
626
|
+
});
|
|
627
|
+
y.length === 0 && (y = h);
|
|
628
|
+
var g = y.reduce(function(m, f) {
|
|
629
|
+
return m[f] = We(e, { placement: f, boundary: r, rootBoundary: i, padding: a })[ue(f)], m;
|
|
630
|
+
}, {});
|
|
631
|
+
return Object.keys(g).sort(function(m, f) {
|
|
632
|
+
return g[m] - g[f];
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
function fi(e) {
|
|
636
|
+
if (ue(e) === Dt) return [];
|
|
637
|
+
var t = nt(e);
|
|
638
|
+
return [In(e), t, In(t)];
|
|
639
|
+
}
|
|
640
|
+
function di(e) {
|
|
641
|
+
var t = e.state, n = e.options, o = e.name;
|
|
642
|
+
if (!t.modifiersData[o]._skip) {
|
|
643
|
+
for (var r = n.mainAxis, i = r === void 0 ? !0 : r, a = n.altAxis, u = a === void 0 ? !0 : a, s = n.fallbackPlacements, l = n.padding, p = n.boundary, h = n.rootBoundary, y = n.altBoundary, g = n.flipVariations, m = g === void 0 ? !0 : g, f = n.allowedAutoPlacements, d = t.options.placement, c = ue(d), E = c === d, I = s || (E || !m ? [nt(d)] : fi(d)), b = [d].concat(I).reduce(function(L, q) {
|
|
644
|
+
return L.concat(ue(q) === Dt ? ci(t, { placement: q, boundary: p, rootBoundary: h, padding: l, flipVariations: m, allowedAutoPlacements: f }) : q);
|
|
645
|
+
}, []), C = t.rects.reference, x = t.rects.popper, T = /* @__PURE__ */ new Map(), _ = !0, z = b[0], O = 0; O < b.length; O++) {
|
|
646
|
+
var F = b[O], $ = ue(F), R = ze(F) === ke, V = [Z, oe].indexOf($) >= 0, D = V ? "width" : "height", k = We(t, { placement: F, boundary: p, rootBoundary: h, altBoundary: y, padding: l }), S = V ? R ? re : Y : R ? oe : Z;
|
|
647
|
+
C[D] > x[D] && (S = nt(S));
|
|
648
|
+
var U = nt(S), Q = [];
|
|
649
|
+
if (i && Q.push(k[$] <= 0), u && Q.push(k[S] <= 0, k[U] <= 0), Q.every(function(L) {
|
|
650
|
+
return L;
|
|
651
|
+
})) {
|
|
652
|
+
z = F, _ = !1;
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
T.set(F, Q);
|
|
656
|
+
}
|
|
657
|
+
if (_) for (var _e = m ? 3 : 1, w = function(L) {
|
|
658
|
+
var q = b.find(function(Ce) {
|
|
659
|
+
var Me = T.get(Ce);
|
|
660
|
+
if (Me) return Me.slice(0, L).every(function(Pe) {
|
|
661
|
+
return Pe;
|
|
662
|
+
});
|
|
663
|
+
});
|
|
664
|
+
if (q) return z = q, "break";
|
|
665
|
+
}, A = _e; A > 0; A--) {
|
|
666
|
+
var W = w(A);
|
|
667
|
+
if (W === "break") break;
|
|
668
|
+
}
|
|
669
|
+
t.placement !== z && (t.modifiersData[o]._skip = !0, t.placement = z, t.reset = !0);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
var pi = { name: "flip", enabled: !0, phase: "main", fn: di, requiresIfExists: ["offset"], data: { _skip: !1 } };
|
|
673
|
+
function Cn(e, t, n) {
|
|
674
|
+
return n === void 0 && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x };
|
|
675
|
+
}
|
|
676
|
+
function Pn(e) {
|
|
677
|
+
return [Z, re, oe, Y].some(function(t) {
|
|
678
|
+
return e[t] >= 0;
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
function mi(e) {
|
|
682
|
+
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, i = t.modifiersData.preventOverflow, a = We(t, { elementContext: "reference" }), u = We(t, { altBoundary: !0 }), s = Cn(a, o), l = Cn(u, r, i), p = Pn(s), h = Pn(l);
|
|
683
|
+
t.modifiersData[n] = { referenceClippingOffsets: s, popperEscapeOffsets: l, isReferenceHidden: p, hasPopperEscaped: h }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": p, "data-popper-escaped": h });
|
|
684
|
+
}
|
|
685
|
+
var vi = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: mi };
|
|
686
|
+
function hi(e, t, n) {
|
|
687
|
+
var o = ue(e), r = [Y, Z].indexOf(o) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, a = i[0], u = i[1];
|
|
688
|
+
return a = a || 0, u = (u || 0) * r, [Y, re].indexOf(o) >= 0 ? { x: u, y: a } : { x: a, y: u };
|
|
689
|
+
}
|
|
690
|
+
function gi(e) {
|
|
691
|
+
var t = e.state, n = e.options, o = e.name, r = n.offset, i = r === void 0 ? [0, 0] : r, a = jt.reduce(function(p, h) {
|
|
692
|
+
return p[h] = hi(h, t.rects, i), p;
|
|
693
|
+
}, {}), u = a[t.placement], s = u.x, l = u.y;
|
|
694
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += l), t.modifiersData[o] = a;
|
|
695
|
+
}
|
|
696
|
+
var yi = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: gi };
|
|
697
|
+
function bi(e) {
|
|
698
|
+
var t = e.state, n = e.name;
|
|
699
|
+
t.modifiersData[n] = fo({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement });
|
|
700
|
+
}
|
|
701
|
+
var po = { name: "popperOffsets", enabled: !0, phase: "read", fn: bi, data: {} };
|
|
702
|
+
function wi(e) {
|
|
703
|
+
return e === "x" ? "y" : "x";
|
|
704
|
+
}
|
|
705
|
+
function Ei(e) {
|
|
706
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, i = r === void 0 ? !0 : r, a = n.altAxis, u = a === void 0 ? !1 : a, s = n.boundary, l = n.rootBoundary, p = n.altBoundary, h = n.padding, y = n.tether, g = y === void 0 ? !0 : y, m = n.tetherOffset, f = m === void 0 ? 0 : m, d = We(t, { boundary: s, rootBoundary: l, padding: h, altBoundary: p }), c = ue(t.placement), E = ze(t.placement), I = !E, b = Kt(c), C = wi(b), x = t.modifiersData.popperOffsets, T = t.rects.reference, _ = t.rects.popper, z = typeof f == "function" ? f(Object.assign({}, t.rects, { placement: t.placement })) : f, O = typeof z == "number" ? { mainAxis: z, altAxis: z } : Object.assign({ mainAxis: 0, altAxis: 0 }, z), F = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, $ = { x: 0, y: 0 };
|
|
707
|
+
if (x) {
|
|
708
|
+
if (i) {
|
|
709
|
+
var R, V = b === "y" ? Z : Y, D = b === "y" ? oe : re, k = b === "y" ? "height" : "width", S = x[b], U = S + d[V], Q = S - d[D], _e = g ? -_[k] / 2 : 0, w = E === ke ? T[k] : _[k], A = E === ke ? -_[k] : -T[k], W = t.elements.arrow, L = g && W ? Ut(W) : { width: 0, height: 0 }, q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : io(), Ce = q[V], Me = q[D], Pe = De(0, T[k], L[k]), Po = I ? T[k] / 2 - _e - Pe - Ce - O.mainAxis : w - Pe - Ce - O.mainAxis, $o = I ? -T[k] / 2 + _e + Pe + Me + O.mainAxis : A + Pe + Me + O.mainAxis, ht = t.elements.arrow && Ze(t.elements.arrow), Ao = ht ? b === "y" ? ht.clientTop || 0 : ht.clientLeft || 0 : 0, tn = (R = F == null ? void 0 : F[b]) != null ? R : 0, Ro = S + Po - tn - Ao, ko = S + $o - tn, nn = De(g ? ct(U, Ro) : U, S, g ? Te(Q, ko) : Q);
|
|
710
|
+
x[b] = nn, $[b] = nn - S;
|
|
711
|
+
}
|
|
712
|
+
if (u) {
|
|
713
|
+
var on, No = b === "x" ? Z : Y, xo = b === "x" ? oe : re, we = x[C], Ye = C === "y" ? "height" : "width", rn = we + d[No], sn = we - d[xo], gt = [Z, Y].indexOf(c) !== -1, an = (on = F == null ? void 0 : F[C]) != null ? on : 0, ln = gt ? rn : we - T[Ye] - _[Ye] - an + O.altAxis, un = gt ? we + T[Ye] + _[Ye] - an - O.altAxis : sn, cn = g && gt ? Jr(ln, we, un) : De(g ? ln : rn, we, g ? un : sn);
|
|
714
|
+
x[C] = cn, $[C] = cn - we;
|
|
715
|
+
}
|
|
716
|
+
t.modifiersData[o] = $;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
var Oi = { name: "preventOverflow", enabled: !0, phase: "main", fn: Ei, requiresIfExists: ["offset"] };
|
|
720
|
+
function Si(e) {
|
|
721
|
+
return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop };
|
|
722
|
+
}
|
|
723
|
+
function Ti(e) {
|
|
724
|
+
return e === se(e) || !te(e) ? Wt(e) : Si(e);
|
|
725
|
+
}
|
|
726
|
+
function Ii(e) {
|
|
727
|
+
var t = e.getBoundingClientRect(), n = xe(t.width) / e.offsetWidth || 1, o = xe(t.height) / e.offsetHeight || 1;
|
|
728
|
+
return n !== 1 || o !== 1;
|
|
729
|
+
}
|
|
730
|
+
function _i(e, t, n) {
|
|
731
|
+
n === void 0 && (n = !1);
|
|
732
|
+
var o = te(t), r = te(t) && Ii(t), i = be(t), a = Fe(e, r), u = { scrollLeft: 0, scrollTop: 0 }, s = { x: 0, y: 0 };
|
|
733
|
+
return (o || !o && !n) && ((fe(t) !== "body" || Jt(i)) && (u = Ti(t)), te(t) ? (s = Fe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = qt(i))), { x: a.left + u.scrollLeft - s.x, y: a.top + u.scrollTop - s.y, width: a.width, height: a.height };
|
|
734
|
+
}
|
|
735
|
+
function Ci(e) {
|
|
736
|
+
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
|
|
737
|
+
e.forEach(function(i) {
|
|
738
|
+
t.set(i.name, i);
|
|
739
|
+
});
|
|
740
|
+
function r(i) {
|
|
741
|
+
n.add(i.name);
|
|
742
|
+
var a = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
743
|
+
a.forEach(function(u) {
|
|
744
|
+
if (!n.has(u)) {
|
|
745
|
+
var s = t.get(u);
|
|
746
|
+
s && r(s);
|
|
747
|
+
}
|
|
748
|
+
}), o.push(i);
|
|
749
|
+
}
|
|
750
|
+
return e.forEach(function(i) {
|
|
751
|
+
n.has(i.name) || r(i);
|
|
752
|
+
}), o;
|
|
753
|
+
}
|
|
754
|
+
function Pi(e) {
|
|
755
|
+
var t = Ci(e);
|
|
756
|
+
return Hr.reduce(function(n, o) {
|
|
757
|
+
return n.concat(t.filter(function(r) {
|
|
758
|
+
return r.phase === o;
|
|
759
|
+
}));
|
|
760
|
+
}, []);
|
|
761
|
+
}
|
|
762
|
+
function $i(e) {
|
|
763
|
+
var t;
|
|
764
|
+
return function() {
|
|
765
|
+
return t || (t = new Promise(function(n) {
|
|
766
|
+
Promise.resolve().then(function() {
|
|
767
|
+
t = void 0, n(e());
|
|
768
|
+
});
|
|
769
|
+
})), t;
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
function Ai(e) {
|
|
773
|
+
var t = e.reduce(function(n, o) {
|
|
774
|
+
var r = n[o.name];
|
|
775
|
+
return n[o.name] = r ? Object.assign({}, r, o, { options: Object.assign({}, r.options, o.options), data: Object.assign({}, r.data, o.data) }) : o, n;
|
|
776
|
+
}, {});
|
|
777
|
+
return Object.keys(t).map(function(n) {
|
|
778
|
+
return t[n];
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
var $n = { placement: "bottom", modifiers: [], strategy: "absolute" };
|
|
782
|
+
function An() {
|
|
783
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
|
|
784
|
+
return !t.some(function(o) {
|
|
785
|
+
return !(o && typeof o.getBoundingClientRect == "function");
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
function Zt(e) {
|
|
789
|
+
e === void 0 && (e = {});
|
|
790
|
+
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, i = r === void 0 ? $n : r;
|
|
791
|
+
return function(a, u, s) {
|
|
792
|
+
s === void 0 && (s = i);
|
|
793
|
+
var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, $n, i), modifiersData: {}, elements: { reference: a, popper: u }, attributes: {}, styles: {} }, p = [], h = !1, y = { state: l, setOptions: function(f) {
|
|
794
|
+
var d = typeof f == "function" ? f(l.options) : f;
|
|
795
|
+
m(), l.options = Object.assign({}, i, l.options, d), l.scrollParents = { reference: Ne(a) ? je(a) : a.contextElement ? je(a.contextElement) : [], popper: je(u) };
|
|
796
|
+
var c = Pi(Ai([].concat(o, l.options.modifiers)));
|
|
797
|
+
return l.orderedModifiers = c.filter(function(E) {
|
|
798
|
+
return E.enabled;
|
|
799
|
+
}), g(), y.update();
|
|
800
|
+
}, forceUpdate: function() {
|
|
801
|
+
if (!h) {
|
|
802
|
+
var f = l.elements, d = f.reference, c = f.popper;
|
|
803
|
+
if (An(d, c)) {
|
|
804
|
+
l.rects = { reference: _i(d, Ze(c), l.options.strategy === "fixed"), popper: Ut(c) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(_) {
|
|
805
|
+
return l.modifiersData[_.name] = Object.assign({}, _.data);
|
|
806
|
+
});
|
|
807
|
+
for (var E = 0; E < l.orderedModifiers.length; E++) {
|
|
808
|
+
if (l.reset === !0) {
|
|
809
|
+
l.reset = !1, E = -1;
|
|
810
|
+
continue;
|
|
811
|
+
}
|
|
812
|
+
var I = l.orderedModifiers[E], b = I.fn, C = I.options, x = C === void 0 ? {} : C, T = I.name;
|
|
813
|
+
typeof b == "function" && (l = b({ state: l, options: x, name: T, instance: y }) || l);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}, update: $i(function() {
|
|
818
|
+
return new Promise(function(f) {
|
|
819
|
+
y.forceUpdate(), f(l);
|
|
820
|
+
});
|
|
821
|
+
}), destroy: function() {
|
|
822
|
+
m(), h = !0;
|
|
823
|
+
} };
|
|
824
|
+
if (!An(a, u)) return y;
|
|
825
|
+
y.setOptions(s).then(function(f) {
|
|
826
|
+
!h && s.onFirstUpdate && s.onFirstUpdate(f);
|
|
827
|
+
});
|
|
828
|
+
function g() {
|
|
829
|
+
l.orderedModifiers.forEach(function(f) {
|
|
830
|
+
var d = f.name, c = f.options, E = c === void 0 ? {} : c, I = f.effect;
|
|
831
|
+
if (typeof I == "function") {
|
|
832
|
+
var b = I({ state: l, name: d, instance: y, options: E }), C = function() {
|
|
833
|
+
};
|
|
834
|
+
p.push(b || C);
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
function m() {
|
|
839
|
+
p.forEach(function(f) {
|
|
840
|
+
return f();
|
|
841
|
+
}), p = [];
|
|
842
|
+
}
|
|
843
|
+
return y;
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
Zt();
|
|
847
|
+
var Ri = [uo, po, lo, oo];
|
|
848
|
+
Zt({ defaultModifiers: Ri });
|
|
849
|
+
var ki = [uo, po, lo, oo, yi, pi, Oi, Gr, vi], Ni = Zt({ defaultModifiers: ki });
|
|
850
|
+
const xi = (e, t, n = {}) => {
|
|
851
|
+
const o = {
|
|
852
|
+
name: "updateState",
|
|
853
|
+
enabled: !0,
|
|
854
|
+
phase: "write",
|
|
855
|
+
fn: ({ state: s }) => {
|
|
856
|
+
const l = Fi(s);
|
|
857
|
+
Object.assign(a.value, l);
|
|
858
|
+
},
|
|
859
|
+
requires: ["computeStyles"]
|
|
860
|
+
}, r = P(() => {
|
|
861
|
+
const { onFirstUpdate: s, placement: l, strategy: p, modifiers: h } = v(n);
|
|
862
|
+
return {
|
|
863
|
+
onFirstUpdate: s,
|
|
864
|
+
placement: l || "bottom",
|
|
865
|
+
strategy: p || "absolute",
|
|
866
|
+
modifiers: [
|
|
867
|
+
...h || [],
|
|
868
|
+
o,
|
|
869
|
+
{ name: "applyStyles", enabled: !1 }
|
|
870
|
+
]
|
|
871
|
+
};
|
|
872
|
+
}), i = Mo(), a = N({
|
|
873
|
+
styles: {
|
|
874
|
+
popper: {
|
|
875
|
+
position: v(r).strategy,
|
|
876
|
+
left: "0",
|
|
877
|
+
top: "0"
|
|
878
|
+
},
|
|
879
|
+
arrow: {
|
|
880
|
+
position: "absolute"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
attributes: {}
|
|
884
|
+
}), u = () => {
|
|
885
|
+
i.value && (i.value.destroy(), i.value = void 0);
|
|
886
|
+
};
|
|
887
|
+
return j(r, (s) => {
|
|
888
|
+
const l = v(i);
|
|
889
|
+
l && l.setOptions(s);
|
|
890
|
+
}, {
|
|
891
|
+
deep: !0
|
|
892
|
+
}), j([e, t], ([s, l]) => {
|
|
893
|
+
u(), !(!s || !l) && (i.value = Ni(s, l, v(r)));
|
|
894
|
+
}), ve(() => {
|
|
895
|
+
u();
|
|
896
|
+
}), {
|
|
897
|
+
state: P(() => {
|
|
898
|
+
var s;
|
|
899
|
+
return { ...((s = v(i)) == null ? void 0 : s.state) || {} };
|
|
900
|
+
}),
|
|
901
|
+
styles: P(() => v(a).styles),
|
|
902
|
+
attributes: P(() => v(a).attributes),
|
|
903
|
+
update: () => {
|
|
904
|
+
var s;
|
|
905
|
+
return (s = v(i)) == null ? void 0 : s.update();
|
|
906
|
+
},
|
|
907
|
+
forceUpdate: () => {
|
|
908
|
+
var s;
|
|
909
|
+
return (s = v(i)) == null ? void 0 : s.forceUpdate();
|
|
910
|
+
},
|
|
911
|
+
instanceRef: P(() => v(i))
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
function Fi(e) {
|
|
915
|
+
const t = Object.keys(e.elements), n = Pt(t.map((r) => [r, e.styles[r] || {}])), o = Pt(t.map((r) => [r, e.attributes[r]]));
|
|
916
|
+
return {
|
|
917
|
+
styles: n,
|
|
918
|
+
attributes: o
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
function Rn() {
|
|
922
|
+
let e;
|
|
923
|
+
const t = (o, r) => {
|
|
924
|
+
n(), e = window.setTimeout(o, r);
|
|
925
|
+
}, n = () => window.clearTimeout(e);
|
|
926
|
+
return Gn(() => n()), {
|
|
927
|
+
registerTimeout: t,
|
|
928
|
+
cancelTimeout: n
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
const At = {
|
|
932
|
+
prefix: Math.floor(Math.random() * 1e4),
|
|
933
|
+
current: 0
|
|
934
|
+
}, zi = Symbol("elIdInjection"), mo = () => ft() ? ie(zi, At) : At, Li = (e) => {
|
|
935
|
+
const t = mo();
|
|
936
|
+
!le && t === At && lt("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
937
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
938
|
+
prefix: number,
|
|
939
|
+
current: number,
|
|
940
|
+
})`);
|
|
941
|
+
const n = Bt();
|
|
942
|
+
return P(() => v(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
|
|
943
|
+
};
|
|
944
|
+
let Ae = [];
|
|
945
|
+
const kn = (e) => {
|
|
946
|
+
const t = e;
|
|
947
|
+
t.key === ut.esc && Ae.forEach((n) => n(t));
|
|
948
|
+
}, Mi = (e) => {
|
|
949
|
+
me(() => {
|
|
950
|
+
Ae.length === 0 && document.addEventListener("keydown", kn), le && Ae.push(e);
|
|
951
|
+
}), ve(() => {
|
|
952
|
+
Ae = Ae.filter((t) => t !== e), Ae.length === 0 && le && document.removeEventListener("keydown", kn);
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
let Nn;
|
|
956
|
+
const vo = () => {
|
|
957
|
+
const e = Bt(), t = mo(), n = P(() => `${e.value}-popper-container-${t.prefix}`), o = P(() => `#${n.value}`);
|
|
958
|
+
return {
|
|
959
|
+
id: n,
|
|
960
|
+
selector: o
|
|
961
|
+
};
|
|
962
|
+
}, Vi = (e) => {
|
|
963
|
+
const t = document.createElement("div");
|
|
964
|
+
return t.id = e, document.body.appendChild(t), t;
|
|
965
|
+
}, Bi = () => {
|
|
966
|
+
const { id: e, selector: t } = vo();
|
|
967
|
+
return Vo(() => {
|
|
968
|
+
le && (process.env.NODE_ENV === "test" || !Nn && !document.body.querySelector(t.value)) && (Nn = Vi(e.value));
|
|
969
|
+
}), {
|
|
970
|
+
id: e,
|
|
971
|
+
selector: t
|
|
972
|
+
};
|
|
973
|
+
}, Di = G({
|
|
974
|
+
showAfter: {
|
|
975
|
+
type: Number,
|
|
976
|
+
default: 0
|
|
977
|
+
},
|
|
978
|
+
hideAfter: {
|
|
979
|
+
type: Number,
|
|
980
|
+
default: 200
|
|
981
|
+
},
|
|
982
|
+
autoClose: {
|
|
983
|
+
type: Number,
|
|
984
|
+
default: 0
|
|
985
|
+
}
|
|
986
|
+
}), ji = ({
|
|
987
|
+
showAfter: e,
|
|
988
|
+
hideAfter: t,
|
|
989
|
+
autoClose: n,
|
|
990
|
+
open: o,
|
|
991
|
+
close: r
|
|
992
|
+
}) => {
|
|
993
|
+
const { registerTimeout: i } = Rn(), {
|
|
994
|
+
registerTimeout: a,
|
|
995
|
+
cancelTimeout: u
|
|
996
|
+
} = Rn();
|
|
997
|
+
return {
|
|
998
|
+
onOpen: (p) => {
|
|
999
|
+
i(() => {
|
|
1000
|
+
o(p);
|
|
1001
|
+
const h = v(n);
|
|
1002
|
+
Ue(h) && h > 0 && a(() => {
|
|
1003
|
+
r(p);
|
|
1004
|
+
}, h);
|
|
1005
|
+
}, v(e));
|
|
1006
|
+
},
|
|
1007
|
+
onClose: (p) => {
|
|
1008
|
+
u(), i(() => {
|
|
1009
|
+
r(p);
|
|
1010
|
+
}, v(t));
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
}, ho = Symbol("elForwardRef"), Hi = (e) => {
|
|
1014
|
+
ge(ho, {
|
|
1015
|
+
setForwardRef: (n) => {
|
|
1016
|
+
e.value = n;
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}, Ui = (e) => ({
|
|
1020
|
+
mounted(t) {
|
|
1021
|
+
e(t);
|
|
1022
|
+
},
|
|
1023
|
+
updated(t) {
|
|
1024
|
+
e(t);
|
|
1025
|
+
},
|
|
1026
|
+
unmounted() {
|
|
1027
|
+
e(null);
|
|
1028
|
+
}
|
|
1029
|
+
}), xn = N(0), Ki = 2e3, Wi = Symbol("zIndexContextKey"), qi = (e) => {
|
|
1030
|
+
const t = ft() ? ie(Wi, void 0) : void 0, n = P(() => {
|
|
1031
|
+
const i = v(t);
|
|
1032
|
+
return Ue(i) ? i : Ki;
|
|
1033
|
+
}), o = P(() => n.value + xn.value);
|
|
1034
|
+
return {
|
|
1035
|
+
initialZIndex: n,
|
|
1036
|
+
currentZIndex: o,
|
|
1037
|
+
nextZIndex: () => (xn.value++, o.value)
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
var ae = (e, t) => {
|
|
1041
|
+
const n = e.__vccOpts || e;
|
|
1042
|
+
for (const [o, r] of t)
|
|
1043
|
+
n[o] = r;
|
|
1044
|
+
return n;
|
|
1045
|
+
};
|
|
1046
|
+
const Fn = Symbol("formItemContextKey"), Yt = Symbol("popper"), go = Symbol("popperContent"), Ji = [
|
|
1047
|
+
"dialog",
|
|
1048
|
+
"grid",
|
|
1049
|
+
"group",
|
|
1050
|
+
"listbox",
|
|
1051
|
+
"menu",
|
|
1052
|
+
"navigation",
|
|
1053
|
+
"tooltip",
|
|
1054
|
+
"tree"
|
|
1055
|
+
], yo = G({
|
|
1056
|
+
role: {
|
|
1057
|
+
type: String,
|
|
1058
|
+
values: Ji,
|
|
1059
|
+
default: "tooltip"
|
|
1060
|
+
}
|
|
1061
|
+
}), Zi = H({
|
|
1062
|
+
name: "ElPopper",
|
|
1063
|
+
inheritAttrs: !1
|
|
1064
|
+
}), Yi = /* @__PURE__ */ H({
|
|
1065
|
+
...Zi,
|
|
1066
|
+
props: yo,
|
|
1067
|
+
setup(e, { expose: t }) {
|
|
1068
|
+
const n = e, o = N(), r = N(), i = N(), a = N(), u = P(() => n.role), s = {
|
|
1069
|
+
triggerRef: o,
|
|
1070
|
+
popperInstanceRef: r,
|
|
1071
|
+
contentRef: i,
|
|
1072
|
+
referenceRef: a,
|
|
1073
|
+
role: u
|
|
1074
|
+
};
|
|
1075
|
+
return t(s), ge(Yt, s), (l, p) => K(l.$slots, "default");
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
var Qi = /* @__PURE__ */ ae(Yi, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);
|
|
1079
|
+
const bo = G({
|
|
1080
|
+
arrowOffset: {
|
|
1081
|
+
type: Number,
|
|
1082
|
+
default: 5
|
|
1083
|
+
}
|
|
1084
|
+
}), Gi = H({
|
|
1085
|
+
name: "ElPopperArrow",
|
|
1086
|
+
inheritAttrs: !1
|
|
1087
|
+
}), Xi = /* @__PURE__ */ H({
|
|
1088
|
+
...Gi,
|
|
1089
|
+
props: bo,
|
|
1090
|
+
setup(e, { expose: t }) {
|
|
1091
|
+
const n = e, o = Le("popper"), { arrowOffset: r, arrowRef: i, arrowStyle: a } = ie(go, void 0);
|
|
1092
|
+
return j(() => n.arrowOffset, (u) => {
|
|
1093
|
+
r.value = u;
|
|
1094
|
+
}), ve(() => {
|
|
1095
|
+
i.value = void 0;
|
|
1096
|
+
}), t({
|
|
1097
|
+
arrowRef: i
|
|
1098
|
+
}), (u, s) => (B(), ee("span", {
|
|
1099
|
+
ref_key: "arrowRef",
|
|
1100
|
+
ref: i,
|
|
1101
|
+
class: Re(v(o).e("arrow")),
|
|
1102
|
+
style: it(v(a)),
|
|
1103
|
+
"data-popper-arrow": ""
|
|
1104
|
+
}, null, 6));
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
var es = /* @__PURE__ */ ae(Xi, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);
|
|
1108
|
+
const Et = "ElOnlyChild", ts = H({
|
|
1109
|
+
name: Et,
|
|
1110
|
+
setup(e, {
|
|
1111
|
+
slots: t,
|
|
1112
|
+
attrs: n
|
|
1113
|
+
}) {
|
|
1114
|
+
var o;
|
|
1115
|
+
const r = ie(ho), i = Ui((o = r == null ? void 0 : r.setForwardRef) != null ? o : Ct);
|
|
1116
|
+
return () => {
|
|
1117
|
+
var a;
|
|
1118
|
+
const u = (a = t.default) == null ? void 0 : a.call(t, n);
|
|
1119
|
+
if (!u)
|
|
1120
|
+
return null;
|
|
1121
|
+
if (u.length > 1)
|
|
1122
|
+
return lt(Et, "requires exact only one valid child."), null;
|
|
1123
|
+
const s = wo(u);
|
|
1124
|
+
return s ? Oe(Bo(s, n), [[i]]) : (lt(Et, "no valid child node found"), null);
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
function wo(e) {
|
|
1129
|
+
if (!e)
|
|
1130
|
+
return null;
|
|
1131
|
+
const t = e;
|
|
1132
|
+
for (const n of t) {
|
|
1133
|
+
if (Ft(n))
|
|
1134
|
+
switch (n.type) {
|
|
1135
|
+
case jo:
|
|
1136
|
+
continue;
|
|
1137
|
+
case Do:
|
|
1138
|
+
case "svg":
|
|
1139
|
+
return zn(n);
|
|
1140
|
+
case qn:
|
|
1141
|
+
return wo(n.children);
|
|
1142
|
+
default:
|
|
1143
|
+
return n;
|
|
1144
|
+
}
|
|
1145
|
+
return zn(n);
|
|
1146
|
+
}
|
|
1147
|
+
return null;
|
|
1148
|
+
}
|
|
1149
|
+
function zn(e) {
|
|
1150
|
+
const t = Le("only-child");
|
|
1151
|
+
return ye("span", {
|
|
1152
|
+
class: t.e("content")
|
|
1153
|
+
}, [e]);
|
|
1154
|
+
}
|
|
1155
|
+
const Eo = G({
|
|
1156
|
+
virtualRef: {
|
|
1157
|
+
type: M(Object)
|
|
1158
|
+
},
|
|
1159
|
+
virtualTriggering: Boolean,
|
|
1160
|
+
onMouseenter: {
|
|
1161
|
+
type: M(Function)
|
|
1162
|
+
},
|
|
1163
|
+
onMouseleave: {
|
|
1164
|
+
type: M(Function)
|
|
1165
|
+
},
|
|
1166
|
+
onClick: {
|
|
1167
|
+
type: M(Function)
|
|
1168
|
+
},
|
|
1169
|
+
onKeydown: {
|
|
1170
|
+
type: M(Function)
|
|
1171
|
+
},
|
|
1172
|
+
onFocus: {
|
|
1173
|
+
type: M(Function)
|
|
1174
|
+
},
|
|
1175
|
+
onBlur: {
|
|
1176
|
+
type: M(Function)
|
|
1177
|
+
},
|
|
1178
|
+
onContextmenu: {
|
|
1179
|
+
type: M(Function)
|
|
1180
|
+
},
|
|
1181
|
+
id: String,
|
|
1182
|
+
open: Boolean
|
|
1183
|
+
}), ns = H({
|
|
1184
|
+
name: "ElPopperTrigger",
|
|
1185
|
+
inheritAttrs: !1
|
|
1186
|
+
}), os = /* @__PURE__ */ H({
|
|
1187
|
+
...ns,
|
|
1188
|
+
props: Eo,
|
|
1189
|
+
setup(e, { expose: t }) {
|
|
1190
|
+
const n = e, { role: o, triggerRef: r } = ie(Yt, void 0);
|
|
1191
|
+
Hi(r);
|
|
1192
|
+
const i = P(() => u.value ? n.id : void 0), a = P(() => {
|
|
1193
|
+
if (o && o.value === "tooltip")
|
|
1194
|
+
return n.open && n.id ? n.id : void 0;
|
|
1195
|
+
}), u = P(() => {
|
|
1196
|
+
if (o && o.value !== "tooltip")
|
|
1197
|
+
return o.value;
|
|
1198
|
+
}), s = P(() => u.value ? `${n.open}` : void 0);
|
|
1199
|
+
let l;
|
|
1200
|
+
return me(() => {
|
|
1201
|
+
j(() => n.virtualRef, (p) => {
|
|
1202
|
+
p && (r.value = Se(p));
|
|
1203
|
+
}, {
|
|
1204
|
+
immediate: !0
|
|
1205
|
+
}), j(r, (p, h) => {
|
|
1206
|
+
l == null || l(), l = void 0, at(p) && ([
|
|
1207
|
+
"onMouseenter",
|
|
1208
|
+
"onMouseleave",
|
|
1209
|
+
"onClick",
|
|
1210
|
+
"onKeydown",
|
|
1211
|
+
"onFocus",
|
|
1212
|
+
"onBlur",
|
|
1213
|
+
"onContextmenu"
|
|
1214
|
+
].forEach((y) => {
|
|
1215
|
+
var g;
|
|
1216
|
+
const m = n[y];
|
|
1217
|
+
m && (p.addEventListener(y.slice(2).toLowerCase(), m), (g = h == null ? void 0 : h.removeEventListener) == null || g.call(h, y.slice(2).toLowerCase(), m));
|
|
1218
|
+
}), l = j([i, a, u, s], (y) => {
|
|
1219
|
+
[
|
|
1220
|
+
"aria-controls",
|
|
1221
|
+
"aria-describedby",
|
|
1222
|
+
"aria-haspopup",
|
|
1223
|
+
"aria-expanded"
|
|
1224
|
+
].forEach((g, m) => {
|
|
1225
|
+
zt(y[m]) ? p.removeAttribute(g) : p.setAttribute(g, y[m]);
|
|
1226
|
+
});
|
|
1227
|
+
}, { immediate: !0 })), at(h) && [
|
|
1228
|
+
"aria-controls",
|
|
1229
|
+
"aria-describedby",
|
|
1230
|
+
"aria-haspopup",
|
|
1231
|
+
"aria-expanded"
|
|
1232
|
+
].forEach((y) => h.removeAttribute(y));
|
|
1233
|
+
}, {
|
|
1234
|
+
immediate: !0
|
|
1235
|
+
});
|
|
1236
|
+
}), ve(() => {
|
|
1237
|
+
l == null || l(), l = void 0;
|
|
1238
|
+
}), t({
|
|
1239
|
+
triggerRef: r
|
|
1240
|
+
}), (p, h) => p.virtualTriggering ? ce("v-if", !0) : (B(), ne(v(ts), Ie({ key: 0 }, p.$attrs, {
|
|
1241
|
+
"aria-controls": v(i),
|
|
1242
|
+
"aria-describedby": v(a),
|
|
1243
|
+
"aria-expanded": v(s),
|
|
1244
|
+
"aria-haspopup": v(u)
|
|
1245
|
+
}), {
|
|
1246
|
+
default: J(() => [
|
|
1247
|
+
K(p.$slots, "default")
|
|
1248
|
+
]),
|
|
1249
|
+
_: 3
|
|
1250
|
+
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
1253
|
+
var rs = /* @__PURE__ */ ae(os, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);
|
|
1254
|
+
const Ot = "focus-trap.focus-after-trapped", St = "focus-trap.focus-after-released", is = "focus-trap.focusout-prevented", Ln = {
|
|
1255
|
+
cancelable: !0,
|
|
1256
|
+
bubbles: !1
|
|
1257
|
+
}, ss = {
|
|
1258
|
+
cancelable: !0,
|
|
1259
|
+
bubbles: !1
|
|
1260
|
+
}, Mn = "focusAfterTrapped", Vn = "focusAfterReleased", as = Symbol("elFocusTrap"), Qt = N(), mt = N(0), Gt = N(0);
|
|
1261
|
+
let Xe = 0;
|
|
1262
|
+
const Oo = (e) => {
|
|
1263
|
+
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1264
|
+
acceptNode: (o) => {
|
|
1265
|
+
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
1266
|
+
return o.disabled || o.hidden || r ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 || o === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1269
|
+
for (; n.nextNode(); )
|
|
1270
|
+
t.push(n.currentNode);
|
|
1271
|
+
return t;
|
|
1272
|
+
}, Bn = (e, t) => {
|
|
1273
|
+
for (const n of e)
|
|
1274
|
+
if (!ls(n, t))
|
|
1275
|
+
return n;
|
|
1276
|
+
}, ls = (e, t) => {
|
|
1277
|
+
if (process.env.NODE_ENV === "test")
|
|
1278
|
+
return !1;
|
|
1279
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
1280
|
+
return !0;
|
|
1281
|
+
for (; e; ) {
|
|
1282
|
+
if (t && e === t)
|
|
1283
|
+
return !1;
|
|
1284
|
+
if (getComputedStyle(e).display === "none")
|
|
1285
|
+
return !0;
|
|
1286
|
+
e = e.parentElement;
|
|
1287
|
+
}
|
|
1288
|
+
return !1;
|
|
1289
|
+
}, us = (e) => {
|
|
1290
|
+
const t = Oo(e), n = Bn(t, e), o = Bn(t.reverse(), e);
|
|
1291
|
+
return [n, o];
|
|
1292
|
+
}, cs = (e) => e instanceof HTMLInputElement && "select" in e, he = (e, t) => {
|
|
1293
|
+
if (e && e.focus) {
|
|
1294
|
+
const n = document.activeElement;
|
|
1295
|
+
e.focus({ preventScroll: !0 }), Gt.value = window.performance.now(), e !== n && cs(e) && t && e.select();
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
function Dn(e, t) {
|
|
1299
|
+
const n = [...e], o = e.indexOf(t);
|
|
1300
|
+
return o !== -1 && n.splice(o, 1), n;
|
|
1301
|
+
}
|
|
1302
|
+
const fs = () => {
|
|
1303
|
+
let e = [];
|
|
1304
|
+
return {
|
|
1305
|
+
push: (o) => {
|
|
1306
|
+
const r = e[0];
|
|
1307
|
+
r && o !== r && r.pause(), e = Dn(e, o), e.unshift(o);
|
|
1308
|
+
},
|
|
1309
|
+
remove: (o) => {
|
|
1310
|
+
var r, i;
|
|
1311
|
+
e = Dn(e, o), (i = (r = e[0]) == null ? void 0 : r.resume) == null || i.call(r);
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
}, ds = (e, t = !1) => {
|
|
1315
|
+
const n = document.activeElement;
|
|
1316
|
+
for (const o of e)
|
|
1317
|
+
if (he(o, t), document.activeElement !== n)
|
|
1318
|
+
return;
|
|
1319
|
+
}, jn = fs(), ps = () => mt.value > Gt.value, et = () => {
|
|
1320
|
+
Qt.value = "pointer", mt.value = window.performance.now();
|
|
1321
|
+
}, Hn = () => {
|
|
1322
|
+
Qt.value = "keyboard", mt.value = window.performance.now();
|
|
1323
|
+
}, ms = () => (me(() => {
|
|
1324
|
+
Xe === 0 && (document.addEventListener("mousedown", et), document.addEventListener("touchstart", et), document.addEventListener("keydown", Hn)), Xe++;
|
|
1325
|
+
}), ve(() => {
|
|
1326
|
+
Xe--, Xe <= 0 && (document.removeEventListener("mousedown", et), document.removeEventListener("touchstart", et), document.removeEventListener("keydown", Hn));
|
|
1327
|
+
}), {
|
|
1328
|
+
focusReason: Qt,
|
|
1329
|
+
lastUserFocusTimestamp: mt,
|
|
1330
|
+
lastAutomatedFocusTimestamp: Gt
|
|
1331
|
+
}), tt = (e) => new CustomEvent(is, {
|
|
1332
|
+
...ss,
|
|
1333
|
+
detail: e
|
|
1334
|
+
}), vs = H({
|
|
1335
|
+
name: "ElFocusTrap",
|
|
1336
|
+
inheritAttrs: !1,
|
|
1337
|
+
props: {
|
|
1338
|
+
loop: Boolean,
|
|
1339
|
+
trapped: Boolean,
|
|
1340
|
+
focusTrapEl: Object,
|
|
1341
|
+
focusStartEl: {
|
|
1342
|
+
type: [Object, String],
|
|
1343
|
+
default: "first"
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
emits: [
|
|
1347
|
+
Mn,
|
|
1348
|
+
Vn,
|
|
1349
|
+
"focusin",
|
|
1350
|
+
"focusout",
|
|
1351
|
+
"focusout-prevented",
|
|
1352
|
+
"release-requested"
|
|
1353
|
+
],
|
|
1354
|
+
setup(e, { emit: t }) {
|
|
1355
|
+
const n = N();
|
|
1356
|
+
let o, r;
|
|
1357
|
+
const { focusReason: i } = ms();
|
|
1358
|
+
Mi((m) => {
|
|
1359
|
+
e.trapped && !a.paused && t("release-requested", m);
|
|
1360
|
+
});
|
|
1361
|
+
const a = {
|
|
1362
|
+
paused: !1,
|
|
1363
|
+
pause() {
|
|
1364
|
+
this.paused = !0;
|
|
1365
|
+
},
|
|
1366
|
+
resume() {
|
|
1367
|
+
this.paused = !1;
|
|
1368
|
+
}
|
|
1369
|
+
}, u = (m) => {
|
|
1370
|
+
if (!e.loop && !e.trapped || a.paused)
|
|
1371
|
+
return;
|
|
1372
|
+
const { key: f, altKey: d, ctrlKey: c, metaKey: E, currentTarget: I, shiftKey: b } = m, { loop: C } = e, x = f === ut.tab && !d && !c && !E, T = document.activeElement;
|
|
1373
|
+
if (x && T) {
|
|
1374
|
+
const _ = I, [z, O] = us(_);
|
|
1375
|
+
if (z && O) {
|
|
1376
|
+
if (!b && T === O) {
|
|
1377
|
+
const $ = tt({
|
|
1378
|
+
focusReason: i.value
|
|
1379
|
+
});
|
|
1380
|
+
t("focusout-prevented", $), $.defaultPrevented || (m.preventDefault(), C && he(z, !0));
|
|
1381
|
+
} else if (b && [z, _].includes(T)) {
|
|
1382
|
+
const $ = tt({
|
|
1383
|
+
focusReason: i.value
|
|
1384
|
+
});
|
|
1385
|
+
t("focusout-prevented", $), $.defaultPrevented || (m.preventDefault(), C && he(O, !0));
|
|
1386
|
+
}
|
|
1387
|
+
} else if (T === _) {
|
|
1388
|
+
const $ = tt({
|
|
1389
|
+
focusReason: i.value
|
|
1390
|
+
});
|
|
1391
|
+
t("focusout-prevented", $), $.defaultPrevented || m.preventDefault();
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
ge(as, {
|
|
1396
|
+
focusTrapRef: n,
|
|
1397
|
+
onKeydown: u
|
|
1398
|
+
}), j(() => e.focusTrapEl, (m) => {
|
|
1399
|
+
m && (n.value = m);
|
|
1400
|
+
}, { immediate: !0 }), j([n], ([m], [f]) => {
|
|
1401
|
+
m && (m.addEventListener("keydown", u), m.addEventListener("focusin", p), m.addEventListener("focusout", h)), f && (f.removeEventListener("keydown", u), f.removeEventListener("focusin", p), f.removeEventListener("focusout", h));
|
|
1402
|
+
});
|
|
1403
|
+
const s = (m) => {
|
|
1404
|
+
t(Mn, m);
|
|
1405
|
+
}, l = (m) => t(Vn, m), p = (m) => {
|
|
1406
|
+
const f = v(n);
|
|
1407
|
+
if (!f)
|
|
1408
|
+
return;
|
|
1409
|
+
const d = m.target, c = m.relatedTarget, E = d && f.contains(d);
|
|
1410
|
+
e.trapped || c && f.contains(c) || (o = c), E && t("focusin", m), !a.paused && e.trapped && (E ? r = d : he(r, !0));
|
|
1411
|
+
}, h = (m) => {
|
|
1412
|
+
const f = v(n);
|
|
1413
|
+
if (!(a.paused || !f))
|
|
1414
|
+
if (e.trapped) {
|
|
1415
|
+
const d = m.relatedTarget;
|
|
1416
|
+
!zt(d) && !f.contains(d) && setTimeout(() => {
|
|
1417
|
+
if (!a.paused && e.trapped) {
|
|
1418
|
+
const c = tt({
|
|
1419
|
+
focusReason: i.value
|
|
1420
|
+
});
|
|
1421
|
+
t("focusout-prevented", c), c.defaultPrevented || he(r, !0);
|
|
1422
|
+
}
|
|
1423
|
+
}, 0);
|
|
1424
|
+
} else {
|
|
1425
|
+
const d = m.target;
|
|
1426
|
+
d && f.contains(d) || t("focusout", m);
|
|
1427
|
+
}
|
|
1428
|
+
};
|
|
1429
|
+
async function y() {
|
|
1430
|
+
await He();
|
|
1431
|
+
const m = v(n);
|
|
1432
|
+
if (m) {
|
|
1433
|
+
jn.push(a);
|
|
1434
|
+
const f = m.contains(document.activeElement) ? o : document.activeElement;
|
|
1435
|
+
if (o = f, !m.contains(f)) {
|
|
1436
|
+
const c = new Event(Ot, Ln);
|
|
1437
|
+
m.addEventListener(Ot, s), m.dispatchEvent(c), c.defaultPrevented || He(() => {
|
|
1438
|
+
let E = e.focusStartEl;
|
|
1439
|
+
dt(E) || (he(E), document.activeElement !== E && (E = "first")), E === "first" && ds(Oo(m), !0), (document.activeElement === f || E === "container") && he(m);
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
function g() {
|
|
1445
|
+
const m = v(n);
|
|
1446
|
+
if (m) {
|
|
1447
|
+
m.removeEventListener(Ot, s);
|
|
1448
|
+
const f = new CustomEvent(St, {
|
|
1449
|
+
...Ln,
|
|
1450
|
+
detail: {
|
|
1451
|
+
focusReason: i.value
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
m.addEventListener(St, l), m.dispatchEvent(f), !f.defaultPrevented && (i.value == "keyboard" || !ps() || m.contains(document.activeElement)) && he(o ?? document.body), m.removeEventListener(St, l), jn.remove(a);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
return me(() => {
|
|
1458
|
+
e.trapped && y(), j(() => e.trapped, (m) => {
|
|
1459
|
+
m ? y() : g();
|
|
1460
|
+
});
|
|
1461
|
+
}), ve(() => {
|
|
1462
|
+
e.trapped && g();
|
|
1463
|
+
}), {
|
|
1464
|
+
onKeydown: u
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
function hs(e, t, n, o, r, i) {
|
|
1469
|
+
return K(e.$slots, "default", { handleKeydown: e.onKeydown });
|
|
1470
|
+
}
|
|
1471
|
+
var gs = /* @__PURE__ */ ae(vs, [["render", hs], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
|
|
1472
|
+
const ys = ["fixed", "absolute"], bs = G({
|
|
1473
|
+
boundariesPadding: {
|
|
1474
|
+
type: Number,
|
|
1475
|
+
default: 0
|
|
1476
|
+
},
|
|
1477
|
+
fallbackPlacements: {
|
|
1478
|
+
type: M(Array),
|
|
1479
|
+
default: void 0
|
|
1480
|
+
},
|
|
1481
|
+
gpuAcceleration: {
|
|
1482
|
+
type: Boolean,
|
|
1483
|
+
default: !0
|
|
1484
|
+
},
|
|
1485
|
+
offset: {
|
|
1486
|
+
type: Number,
|
|
1487
|
+
default: 12
|
|
1488
|
+
},
|
|
1489
|
+
placement: {
|
|
1490
|
+
type: String,
|
|
1491
|
+
values: jt,
|
|
1492
|
+
default: "bottom"
|
|
1493
|
+
},
|
|
1494
|
+
popperOptions: {
|
|
1495
|
+
type: M(Object),
|
|
1496
|
+
default: () => ({})
|
|
1497
|
+
},
|
|
1498
|
+
strategy: {
|
|
1499
|
+
type: String,
|
|
1500
|
+
values: ys,
|
|
1501
|
+
default: "absolute"
|
|
1502
|
+
}
|
|
1503
|
+
}), So = G({
|
|
1504
|
+
...bs,
|
|
1505
|
+
id: String,
|
|
1506
|
+
style: {
|
|
1507
|
+
type: M([String, Array, Object])
|
|
1508
|
+
},
|
|
1509
|
+
className: {
|
|
1510
|
+
type: M([String, Array, Object])
|
|
1511
|
+
},
|
|
1512
|
+
effect: {
|
|
1513
|
+
type: String,
|
|
1514
|
+
default: "dark"
|
|
1515
|
+
},
|
|
1516
|
+
visible: Boolean,
|
|
1517
|
+
enterable: {
|
|
1518
|
+
type: Boolean,
|
|
1519
|
+
default: !0
|
|
1520
|
+
},
|
|
1521
|
+
pure: Boolean,
|
|
1522
|
+
focusOnShow: {
|
|
1523
|
+
type: Boolean,
|
|
1524
|
+
default: !1
|
|
1525
|
+
},
|
|
1526
|
+
trapping: {
|
|
1527
|
+
type: Boolean,
|
|
1528
|
+
default: !1
|
|
1529
|
+
},
|
|
1530
|
+
popperClass: {
|
|
1531
|
+
type: M([String, Array, Object])
|
|
1532
|
+
},
|
|
1533
|
+
popperStyle: {
|
|
1534
|
+
type: M([String, Array, Object])
|
|
1535
|
+
},
|
|
1536
|
+
referenceEl: {
|
|
1537
|
+
type: M(Object)
|
|
1538
|
+
},
|
|
1539
|
+
triggerTargetEl: {
|
|
1540
|
+
type: M(Object)
|
|
1541
|
+
},
|
|
1542
|
+
stopPopperMouseEvent: {
|
|
1543
|
+
type: Boolean,
|
|
1544
|
+
default: !0
|
|
1545
|
+
},
|
|
1546
|
+
ariaLabel: {
|
|
1547
|
+
type: String,
|
|
1548
|
+
default: void 0
|
|
1549
|
+
},
|
|
1550
|
+
virtualTriggering: Boolean,
|
|
1551
|
+
zIndex: Number
|
|
1552
|
+
}), ws = {
|
|
1553
|
+
mouseenter: (e) => e instanceof MouseEvent,
|
|
1554
|
+
mouseleave: (e) => e instanceof MouseEvent,
|
|
1555
|
+
focus: () => !0,
|
|
1556
|
+
blur: () => !0,
|
|
1557
|
+
close: () => !0
|
|
1558
|
+
}, Es = (e, t = []) => {
|
|
1559
|
+
const { placement: n, strategy: o, popperOptions: r } = e, i = {
|
|
1560
|
+
placement: n,
|
|
1561
|
+
strategy: o,
|
|
1562
|
+
...r,
|
|
1563
|
+
modifiers: [...Ss(e), ...t]
|
|
1564
|
+
};
|
|
1565
|
+
return Ts(i, r == null ? void 0 : r.modifiers), i;
|
|
1566
|
+
}, Os = (e) => {
|
|
1567
|
+
if (le)
|
|
1568
|
+
return Se(e);
|
|
1569
|
+
};
|
|
1570
|
+
function Ss(e) {
|
|
1571
|
+
const { offset: t, gpuAcceleration: n, fallbackPlacements: o } = e;
|
|
1572
|
+
return [
|
|
1573
|
+
{
|
|
1574
|
+
name: "offset",
|
|
1575
|
+
options: {
|
|
1576
|
+
offset: [0, t ?? 12]
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
name: "preventOverflow",
|
|
1581
|
+
options: {
|
|
1582
|
+
padding: {
|
|
1583
|
+
top: 2,
|
|
1584
|
+
bottom: 2,
|
|
1585
|
+
left: 5,
|
|
1586
|
+
right: 5
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
name: "flip",
|
|
1592
|
+
options: {
|
|
1593
|
+
padding: 5,
|
|
1594
|
+
fallbackPlacements: o
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
name: "computeStyles",
|
|
1599
|
+
options: {
|
|
1600
|
+
gpuAcceleration: n
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
];
|
|
1604
|
+
}
|
|
1605
|
+
function Ts(e, t) {
|
|
1606
|
+
t && (e.modifiers = [...e.modifiers, ...t ?? []]);
|
|
1607
|
+
}
|
|
1608
|
+
const Is = 0, _s = (e) => {
|
|
1609
|
+
const { popperInstanceRef: t, contentRef: n, triggerRef: o, role: r } = ie(Yt, void 0), i = N(), a = N(), u = P(() => ({
|
|
1610
|
+
name: "eventListeners",
|
|
1611
|
+
enabled: !!e.visible
|
|
1612
|
+
})), s = P(() => {
|
|
1613
|
+
var c;
|
|
1614
|
+
const E = v(i), I = (c = v(a)) != null ? c : Is;
|
|
1615
|
+
return {
|
|
1616
|
+
name: "arrow",
|
|
1617
|
+
enabled: !wr(E),
|
|
1618
|
+
options: {
|
|
1619
|
+
element: E,
|
|
1620
|
+
padding: I
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
}), l = P(() => ({
|
|
1624
|
+
onFirstUpdate: () => {
|
|
1625
|
+
m();
|
|
1626
|
+
},
|
|
1627
|
+
...Es(e, [
|
|
1628
|
+
v(s),
|
|
1629
|
+
v(u)
|
|
1630
|
+
])
|
|
1631
|
+
})), p = P(() => Os(e.referenceEl) || v(o)), { attributes: h, state: y, styles: g, update: m, forceUpdate: f, instanceRef: d } = xi(p, n, l);
|
|
1632
|
+
return j(d, (c) => t.value = c), me(() => {
|
|
1633
|
+
j(() => {
|
|
1634
|
+
var c;
|
|
1635
|
+
return (c = v(p)) == null ? void 0 : c.getBoundingClientRect();
|
|
1636
|
+
}, () => {
|
|
1637
|
+
m();
|
|
1638
|
+
});
|
|
1639
|
+
}), {
|
|
1640
|
+
attributes: h,
|
|
1641
|
+
arrowRef: i,
|
|
1642
|
+
contentRef: n,
|
|
1643
|
+
instanceRef: d,
|
|
1644
|
+
state: y,
|
|
1645
|
+
styles: g,
|
|
1646
|
+
role: r,
|
|
1647
|
+
forceUpdate: f,
|
|
1648
|
+
update: m
|
|
1649
|
+
};
|
|
1650
|
+
}, Cs = (e, {
|
|
1651
|
+
attributes: t,
|
|
1652
|
+
styles: n,
|
|
1653
|
+
role: o
|
|
1654
|
+
}) => {
|
|
1655
|
+
const { nextZIndex: r } = qi(), i = Le("popper"), a = P(() => v(t).popper), u = N(Ue(e.zIndex) ? e.zIndex : r()), s = P(() => [
|
|
1656
|
+
i.b(),
|
|
1657
|
+
i.is("pure", e.pure),
|
|
1658
|
+
i.is(e.effect),
|
|
1659
|
+
e.popperClass
|
|
1660
|
+
]), l = P(() => [
|
|
1661
|
+
{ zIndex: v(u) },
|
|
1662
|
+
v(n).popper,
|
|
1663
|
+
e.popperStyle || {}
|
|
1664
|
+
]), p = P(() => o.value === "dialog" ? "false" : void 0), h = P(() => v(n).arrow || {});
|
|
1665
|
+
return {
|
|
1666
|
+
ariaModal: p,
|
|
1667
|
+
arrowStyle: h,
|
|
1668
|
+
contentAttrs: a,
|
|
1669
|
+
contentClass: s,
|
|
1670
|
+
contentStyle: l,
|
|
1671
|
+
contentZIndex: u,
|
|
1672
|
+
updateZIndex: () => {
|
|
1673
|
+
u.value = Ue(e.zIndex) ? e.zIndex : r();
|
|
1674
|
+
}
|
|
1675
|
+
};
|
|
1676
|
+
}, Ps = (e, t) => {
|
|
1677
|
+
const n = N(!1), o = N();
|
|
1678
|
+
return {
|
|
1679
|
+
focusStartRef: o,
|
|
1680
|
+
trapped: n,
|
|
1681
|
+
onFocusAfterReleased: (l) => {
|
|
1682
|
+
var p;
|
|
1683
|
+
((p = l.detail) == null ? void 0 : p.focusReason) !== "pointer" && (o.value = "first", t("blur"));
|
|
1684
|
+
},
|
|
1685
|
+
onFocusAfterTrapped: () => {
|
|
1686
|
+
t("focus");
|
|
1687
|
+
},
|
|
1688
|
+
onFocusInTrap: (l) => {
|
|
1689
|
+
e.visible && !n.value && (l.target && (o.value = l.target), n.value = !0);
|
|
1690
|
+
},
|
|
1691
|
+
onFocusoutPrevented: (l) => {
|
|
1692
|
+
e.trapping || (l.detail.focusReason === "pointer" && l.preventDefault(), n.value = !1);
|
|
1693
|
+
},
|
|
1694
|
+
onReleaseRequested: () => {
|
|
1695
|
+
n.value = !1, t("close");
|
|
1696
|
+
}
|
|
1697
|
+
};
|
|
1698
|
+
}, $s = H({
|
|
1699
|
+
name: "ElPopperContent"
|
|
1700
|
+
}), As = /* @__PURE__ */ H({
|
|
1701
|
+
...$s,
|
|
1702
|
+
props: So,
|
|
1703
|
+
emits: ws,
|
|
1704
|
+
setup(e, { expose: t, emit: n }) {
|
|
1705
|
+
const o = e, {
|
|
1706
|
+
focusStartRef: r,
|
|
1707
|
+
trapped: i,
|
|
1708
|
+
onFocusAfterReleased: a,
|
|
1709
|
+
onFocusAfterTrapped: u,
|
|
1710
|
+
onFocusInTrap: s,
|
|
1711
|
+
onFocusoutPrevented: l,
|
|
1712
|
+
onReleaseRequested: p
|
|
1713
|
+
} = Ps(o, n), { attributes: h, arrowRef: y, contentRef: g, styles: m, instanceRef: f, role: d, update: c } = _s(o), {
|
|
1714
|
+
ariaModal: E,
|
|
1715
|
+
arrowStyle: I,
|
|
1716
|
+
contentAttrs: b,
|
|
1717
|
+
contentClass: C,
|
|
1718
|
+
contentStyle: x,
|
|
1719
|
+
updateZIndex: T
|
|
1720
|
+
} = Cs(o, {
|
|
1721
|
+
styles: m,
|
|
1722
|
+
attributes: h,
|
|
1723
|
+
role: d
|
|
1724
|
+
}), _ = ie(Fn, void 0), z = N();
|
|
1725
|
+
ge(go, {
|
|
1726
|
+
arrowStyle: I,
|
|
1727
|
+
arrowRef: y,
|
|
1728
|
+
arrowOffset: z
|
|
1729
|
+
}), _ && (_.addInputId || _.removeInputId) && ge(Fn, {
|
|
1730
|
+
..._,
|
|
1731
|
+
addInputId: Ct,
|
|
1732
|
+
removeInputId: Ct
|
|
1733
|
+
});
|
|
1734
|
+
let O;
|
|
1735
|
+
const F = (R = !0) => {
|
|
1736
|
+
c(), R && T();
|
|
1737
|
+
}, $ = () => {
|
|
1738
|
+
F(!1), o.visible && o.focusOnShow ? i.value = !0 : o.visible === !1 && (i.value = !1);
|
|
1739
|
+
};
|
|
1740
|
+
return me(() => {
|
|
1741
|
+
j(() => o.triggerTargetEl, (R, V) => {
|
|
1742
|
+
O == null || O(), O = void 0;
|
|
1743
|
+
const D = v(R || g.value), k = v(V || g.value);
|
|
1744
|
+
at(D) && (O = j([d, () => o.ariaLabel, E, () => o.id], (S) => {
|
|
1745
|
+
["role", "aria-label", "aria-modal", "id"].forEach((U, Q) => {
|
|
1746
|
+
zt(S[Q]) ? D.removeAttribute(U) : D.setAttribute(U, S[Q]);
|
|
1747
|
+
});
|
|
1748
|
+
}, { immediate: !0 })), k !== D && at(k) && ["role", "aria-label", "aria-modal", "id"].forEach((S) => {
|
|
1749
|
+
k.removeAttribute(S);
|
|
1750
|
+
});
|
|
1751
|
+
}, { immediate: !0 }), j(() => o.visible, $, { immediate: !0 });
|
|
1752
|
+
}), ve(() => {
|
|
1753
|
+
O == null || O(), O = void 0;
|
|
1754
|
+
}), t({
|
|
1755
|
+
popperContentRef: g,
|
|
1756
|
+
popperInstanceRef: f,
|
|
1757
|
+
updatePopper: F,
|
|
1758
|
+
contentStyle: x
|
|
1759
|
+
}), (R, V) => (B(), ee("div", Ie({
|
|
1760
|
+
ref_key: "contentRef",
|
|
1761
|
+
ref: g
|
|
1762
|
+
}, v(b), {
|
|
1763
|
+
style: v(x),
|
|
1764
|
+
class: v(C),
|
|
1765
|
+
tabindex: "-1",
|
|
1766
|
+
onMouseenter: V[0] || (V[0] = (D) => R.$emit("mouseenter", D)),
|
|
1767
|
+
onMouseleave: V[1] || (V[1] = (D) => R.$emit("mouseleave", D))
|
|
1768
|
+
}), [
|
|
1769
|
+
ye(v(gs), {
|
|
1770
|
+
trapped: v(i),
|
|
1771
|
+
"trap-on-focus-in": !0,
|
|
1772
|
+
"focus-trap-el": v(g),
|
|
1773
|
+
"focus-start-el": v(r),
|
|
1774
|
+
onFocusAfterTrapped: v(u),
|
|
1775
|
+
onFocusAfterReleased: v(a),
|
|
1776
|
+
onFocusin: v(s),
|
|
1777
|
+
onFocusoutPrevented: v(l),
|
|
1778
|
+
onReleaseRequested: v(p)
|
|
1779
|
+
}, {
|
|
1780
|
+
default: J(() => [
|
|
1781
|
+
K(R.$slots, "default")
|
|
1782
|
+
]),
|
|
1783
|
+
_: 3
|
|
1784
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
|
|
1785
|
+
], 16));
|
|
1786
|
+
}
|
|
1787
|
+
});
|
|
1788
|
+
var Rs = /* @__PURE__ */ ae(As, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);
|
|
1789
|
+
const ks = Vt(Qi), Xt = Symbol("elTooltip"), X = G({
|
|
1790
|
+
...Di,
|
|
1791
|
+
...So,
|
|
1792
|
+
appendTo: {
|
|
1793
|
+
type: M([String, Object])
|
|
1794
|
+
},
|
|
1795
|
+
content: {
|
|
1796
|
+
type: String,
|
|
1797
|
+
default: ""
|
|
1798
|
+
},
|
|
1799
|
+
rawContent: {
|
|
1800
|
+
type: Boolean,
|
|
1801
|
+
default: !1
|
|
1802
|
+
},
|
|
1803
|
+
persistent: Boolean,
|
|
1804
|
+
ariaLabel: String,
|
|
1805
|
+
visible: {
|
|
1806
|
+
type: M(Boolean),
|
|
1807
|
+
default: null
|
|
1808
|
+
},
|
|
1809
|
+
transition: String,
|
|
1810
|
+
teleported: {
|
|
1811
|
+
type: Boolean,
|
|
1812
|
+
default: !0
|
|
1813
|
+
},
|
|
1814
|
+
disabled: Boolean
|
|
1815
|
+
}), qe = G({
|
|
1816
|
+
...Eo,
|
|
1817
|
+
disabled: Boolean,
|
|
1818
|
+
trigger: {
|
|
1819
|
+
type: M([String, Array]),
|
|
1820
|
+
default: "hover"
|
|
1821
|
+
},
|
|
1822
|
+
triggerKeys: {
|
|
1823
|
+
type: M(Array),
|
|
1824
|
+
default: () => [ut.enter, ut.space]
|
|
1825
|
+
}
|
|
1826
|
+
}), {
|
|
1827
|
+
useModelToggleProps: Ns,
|
|
1828
|
+
useModelToggleEmits: xs,
|
|
1829
|
+
useModelToggle: Fs
|
|
1830
|
+
} = to("visible"), zs = G({
|
|
1831
|
+
...yo,
|
|
1832
|
+
...Ns,
|
|
1833
|
+
...X,
|
|
1834
|
+
...qe,
|
|
1835
|
+
...bo,
|
|
1836
|
+
showArrow: {
|
|
1837
|
+
type: Boolean,
|
|
1838
|
+
default: !0
|
|
1839
|
+
}
|
|
1840
|
+
}), Ls = [
|
|
1841
|
+
...xs,
|
|
1842
|
+
"before-show",
|
|
1843
|
+
"before-hide",
|
|
1844
|
+
"show",
|
|
1845
|
+
"hide",
|
|
1846
|
+
"open",
|
|
1847
|
+
"close"
|
|
1848
|
+
], Ms = (e, t) => br(e) ? e.includes(t) : e === t, $e = (e, t, n) => (o) => {
|
|
1849
|
+
Ms(v(e), t) && n(o);
|
|
1850
|
+
}, Vs = H({
|
|
1851
|
+
name: "ElTooltipTrigger"
|
|
1852
|
+
}), Bs = /* @__PURE__ */ H({
|
|
1853
|
+
...Vs,
|
|
1854
|
+
props: qe,
|
|
1855
|
+
setup(e, { expose: t }) {
|
|
1856
|
+
const n = e, o = Le("tooltip"), { controlled: r, id: i, open: a, onOpen: u, onClose: s, onToggle: l } = ie(Xt, void 0), p = N(null), h = () => {
|
|
1857
|
+
if (v(r) || n.disabled)
|
|
1858
|
+
return !0;
|
|
1859
|
+
}, y = Be(n, "trigger"), g = de(h, $e(y, "hover", u)), m = de(h, $e(y, "hover", s)), f = de(h, $e(y, "click", (b) => {
|
|
1860
|
+
b.button === 0 && l(b);
|
|
1861
|
+
})), d = de(h, $e(y, "focus", u)), c = de(h, $e(y, "focus", s)), E = de(h, $e(y, "contextmenu", (b) => {
|
|
1862
|
+
b.preventDefault(), l(b);
|
|
1863
|
+
})), I = de(h, (b) => {
|
|
1864
|
+
const { code: C } = b;
|
|
1865
|
+
n.triggerKeys.includes(C) && (b.preventDefault(), l(b));
|
|
1866
|
+
});
|
|
1867
|
+
return t({
|
|
1868
|
+
triggerRef: p
|
|
1869
|
+
}), (b, C) => (B(), ne(v(rs), {
|
|
1870
|
+
id: v(i),
|
|
1871
|
+
"virtual-ref": b.virtualRef,
|
|
1872
|
+
open: v(a),
|
|
1873
|
+
"virtual-triggering": b.virtualTriggering,
|
|
1874
|
+
class: Re(v(o).e("trigger")),
|
|
1875
|
+
onBlur: v(c),
|
|
1876
|
+
onClick: v(f),
|
|
1877
|
+
onContextmenu: v(E),
|
|
1878
|
+
onFocus: v(d),
|
|
1879
|
+
onMouseenter: v(g),
|
|
1880
|
+
onMouseleave: v(m),
|
|
1881
|
+
onKeydown: v(I)
|
|
1882
|
+
}, {
|
|
1883
|
+
default: J(() => [
|
|
1884
|
+
K(b.$slots, "default")
|
|
1885
|
+
]),
|
|
1886
|
+
_: 3
|
|
1887
|
+
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
var Ds = /* @__PURE__ */ ae(Bs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);
|
|
1891
|
+
const js = H({
|
|
1892
|
+
name: "ElTooltipContent",
|
|
1893
|
+
inheritAttrs: !1
|
|
1894
|
+
}), Hs = /* @__PURE__ */ H({
|
|
1895
|
+
...js,
|
|
1896
|
+
props: X,
|
|
1897
|
+
setup(e, { expose: t }) {
|
|
1898
|
+
const n = e, { selector: o } = vo(), r = Le("tooltip"), i = N(null), a = N(!1), {
|
|
1899
|
+
controlled: u,
|
|
1900
|
+
id: s,
|
|
1901
|
+
open: l,
|
|
1902
|
+
trigger: p,
|
|
1903
|
+
onClose: h,
|
|
1904
|
+
onOpen: y,
|
|
1905
|
+
onShow: g,
|
|
1906
|
+
onHide: m,
|
|
1907
|
+
onBeforeShow: f,
|
|
1908
|
+
onBeforeHide: d
|
|
1909
|
+
} = ie(Xt, void 0), c = P(() => n.transition || `${r.namespace.value}-fade-in-linear`), E = P(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
|
|
1910
|
+
ve(() => {
|
|
1911
|
+
a.value = !0;
|
|
1912
|
+
});
|
|
1913
|
+
const I = P(() => v(E) ? !0 : v(l)), b = P(() => n.disabled ? !1 : v(l)), C = P(() => n.appendTo || o.value), x = P(() => {
|
|
1914
|
+
var S;
|
|
1915
|
+
return (S = n.style) != null ? S : {};
|
|
1916
|
+
}), T = P(() => !v(l)), _ = () => {
|
|
1917
|
+
m();
|
|
1918
|
+
}, z = () => {
|
|
1919
|
+
if (v(u))
|
|
1920
|
+
return !0;
|
|
1921
|
+
}, O = de(z, () => {
|
|
1922
|
+
n.enterable && v(p) === "hover" && y();
|
|
1923
|
+
}), F = de(z, () => {
|
|
1924
|
+
v(p) === "hover" && h();
|
|
1925
|
+
}), $ = () => {
|
|
1926
|
+
var S, U;
|
|
1927
|
+
(U = (S = i.value) == null ? void 0 : S.updatePopper) == null || U.call(S), f == null || f();
|
|
1928
|
+
}, R = () => {
|
|
1929
|
+
d == null || d();
|
|
1930
|
+
}, V = () => {
|
|
1931
|
+
g(), k = dr(P(() => {
|
|
1932
|
+
var S;
|
|
1933
|
+
return (S = i.value) == null ? void 0 : S.popperContentRef;
|
|
1934
|
+
}), () => {
|
|
1935
|
+
if (v(u))
|
|
1936
|
+
return;
|
|
1937
|
+
v(p) !== "hover" && h();
|
|
1938
|
+
});
|
|
1939
|
+
}, D = () => {
|
|
1940
|
+
n.virtualTriggering || h();
|
|
1941
|
+
};
|
|
1942
|
+
let k;
|
|
1943
|
+
return j(() => v(l), (S) => {
|
|
1944
|
+
S || k == null || k();
|
|
1945
|
+
}, {
|
|
1946
|
+
flush: "post"
|
|
1947
|
+
}), j(() => n.content, () => {
|
|
1948
|
+
var S, U;
|
|
1949
|
+
(U = (S = i.value) == null ? void 0 : S.updatePopper) == null || U.call(S);
|
|
1950
|
+
}), t({
|
|
1951
|
+
contentRef: i
|
|
1952
|
+
}), (S, U) => (B(), ne(Ho, {
|
|
1953
|
+
disabled: !S.teleported,
|
|
1954
|
+
to: v(C)
|
|
1955
|
+
}, [
|
|
1956
|
+
ye(Uo, {
|
|
1957
|
+
name: v(c),
|
|
1958
|
+
onAfterLeave: _,
|
|
1959
|
+
onBeforeEnter: $,
|
|
1960
|
+
onAfterEnter: V,
|
|
1961
|
+
onBeforeLeave: R
|
|
1962
|
+
}, {
|
|
1963
|
+
default: J(() => [
|
|
1964
|
+
v(I) ? Oe((B(), ne(v(Rs), Ie({
|
|
1965
|
+
key: 0,
|
|
1966
|
+
id: v(s),
|
|
1967
|
+
ref_key: "contentRef",
|
|
1968
|
+
ref: i
|
|
1969
|
+
}, S.$attrs, {
|
|
1970
|
+
"aria-label": S.ariaLabel,
|
|
1971
|
+
"aria-hidden": v(T),
|
|
1972
|
+
"boundaries-padding": S.boundariesPadding,
|
|
1973
|
+
"fallback-placements": S.fallbackPlacements,
|
|
1974
|
+
"gpu-acceleration": S.gpuAcceleration,
|
|
1975
|
+
offset: S.offset,
|
|
1976
|
+
placement: S.placement,
|
|
1977
|
+
"popper-options": S.popperOptions,
|
|
1978
|
+
strategy: S.strategy,
|
|
1979
|
+
effect: S.effect,
|
|
1980
|
+
enterable: S.enterable,
|
|
1981
|
+
pure: S.pure,
|
|
1982
|
+
"popper-class": S.popperClass,
|
|
1983
|
+
"popper-style": [S.popperStyle, v(x)],
|
|
1984
|
+
"reference-el": S.referenceEl,
|
|
1985
|
+
"trigger-target-el": S.triggerTargetEl,
|
|
1986
|
+
visible: v(b),
|
|
1987
|
+
"z-index": S.zIndex,
|
|
1988
|
+
onMouseenter: v(O),
|
|
1989
|
+
onMouseleave: v(F),
|
|
1990
|
+
onBlur: D,
|
|
1991
|
+
onClose: v(h)
|
|
1992
|
+
}), {
|
|
1993
|
+
default: J(() => [
|
|
1994
|
+
a.value ? ce("v-if", !0) : K(S.$slots, "default", { key: 0 })
|
|
1995
|
+
]),
|
|
1996
|
+
_: 3
|
|
1997
|
+
}, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
|
|
1998
|
+
[_t, v(b)]
|
|
1999
|
+
]) : ce("v-if", !0)
|
|
2000
|
+
]),
|
|
2001
|
+
_: 3
|
|
2002
|
+
}, 8, ["name"])
|
|
2003
|
+
], 8, ["disabled", "to"]));
|
|
2004
|
+
}
|
|
2005
|
+
});
|
|
2006
|
+
var Us = /* @__PURE__ */ ae(Hs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);
|
|
2007
|
+
const Ks = ["innerHTML"], Ws = { key: 1 }, qs = H({
|
|
2008
|
+
name: "ElTooltip"
|
|
2009
|
+
}), Js = /* @__PURE__ */ H({
|
|
2010
|
+
...qs,
|
|
2011
|
+
props: zs,
|
|
2012
|
+
emits: Ls,
|
|
2013
|
+
setup(e, { expose: t, emit: n }) {
|
|
2014
|
+
const o = e;
|
|
2015
|
+
Bi();
|
|
2016
|
+
const r = Li(), i = N(), a = N(), u = () => {
|
|
2017
|
+
var c;
|
|
2018
|
+
const E = v(i);
|
|
2019
|
+
E && ((c = E.popperInstanceRef) == null || c.update());
|
|
2020
|
+
}, s = N(!1), l = N(), { show: p, hide: h, hasUpdateHandler: y } = Fs({
|
|
2021
|
+
indicator: s,
|
|
2022
|
+
toggleReason: l
|
|
2023
|
+
}), { onOpen: g, onClose: m } = ji({
|
|
2024
|
+
showAfter: Be(o, "showAfter"),
|
|
2025
|
+
hideAfter: Be(o, "hideAfter"),
|
|
2026
|
+
autoClose: Be(o, "autoClose"),
|
|
2027
|
+
open: p,
|
|
2028
|
+
close: h
|
|
2029
|
+
}), f = P(() => Lt(o.visible) && !y.value);
|
|
2030
|
+
ge(Xt, {
|
|
2031
|
+
controlled: f,
|
|
2032
|
+
id: r,
|
|
2033
|
+
open: Ko(s),
|
|
2034
|
+
trigger: Be(o, "trigger"),
|
|
2035
|
+
onOpen: (c) => {
|
|
2036
|
+
g(c);
|
|
2037
|
+
},
|
|
2038
|
+
onClose: (c) => {
|
|
2039
|
+
m(c);
|
|
2040
|
+
},
|
|
2041
|
+
onToggle: (c) => {
|
|
2042
|
+
v(s) ? m(c) : g(c);
|
|
2043
|
+
},
|
|
2044
|
+
onShow: () => {
|
|
2045
|
+
n("show", l.value);
|
|
2046
|
+
},
|
|
2047
|
+
onHide: () => {
|
|
2048
|
+
n("hide", l.value);
|
|
2049
|
+
},
|
|
2050
|
+
onBeforeShow: () => {
|
|
2051
|
+
n("before-show", l.value);
|
|
2052
|
+
},
|
|
2053
|
+
onBeforeHide: () => {
|
|
2054
|
+
n("before-hide", l.value);
|
|
2055
|
+
},
|
|
2056
|
+
updatePopper: u
|
|
2057
|
+
}), j(() => o.disabled, (c) => {
|
|
2058
|
+
c && s.value && (s.value = !1);
|
|
2059
|
+
});
|
|
2060
|
+
const d = (c) => {
|
|
2061
|
+
var E, I;
|
|
2062
|
+
const b = (I = (E = a.value) == null ? void 0 : E.contentRef) == null ? void 0 : I.popperContentRef, C = (c == null ? void 0 : c.relatedTarget) || document.activeElement;
|
|
2063
|
+
return b && b.contains(C);
|
|
2064
|
+
};
|
|
2065
|
+
return Wo(() => s.value && h()), t({
|
|
2066
|
+
popperRef: i,
|
|
2067
|
+
contentRef: a,
|
|
2068
|
+
isFocusInsideContent: d,
|
|
2069
|
+
updatePopper: u,
|
|
2070
|
+
onOpen: g,
|
|
2071
|
+
onClose: m,
|
|
2072
|
+
hide: h
|
|
2073
|
+
}), (c, E) => (B(), ne(v(ks), {
|
|
2074
|
+
ref_key: "popperRef",
|
|
2075
|
+
ref: i,
|
|
2076
|
+
role: c.role
|
|
2077
|
+
}, {
|
|
2078
|
+
default: J(() => [
|
|
2079
|
+
ye(Ds, {
|
|
2080
|
+
disabled: c.disabled,
|
|
2081
|
+
trigger: c.trigger,
|
|
2082
|
+
"trigger-keys": c.triggerKeys,
|
|
2083
|
+
"virtual-ref": c.virtualRef,
|
|
2084
|
+
"virtual-triggering": c.virtualTriggering
|
|
2085
|
+
}, {
|
|
2086
|
+
default: J(() => [
|
|
2087
|
+
c.$slots.default ? K(c.$slots, "default", { key: 0 }) : ce("v-if", !0)
|
|
2088
|
+
]),
|
|
2089
|
+
_: 3
|
|
2090
|
+
}, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
|
|
2091
|
+
ye(Us, {
|
|
2092
|
+
ref_key: "contentRef",
|
|
2093
|
+
ref: a,
|
|
2094
|
+
"aria-label": c.ariaLabel,
|
|
2095
|
+
"boundaries-padding": c.boundariesPadding,
|
|
2096
|
+
content: c.content,
|
|
2097
|
+
disabled: c.disabled,
|
|
2098
|
+
effect: c.effect,
|
|
2099
|
+
enterable: c.enterable,
|
|
2100
|
+
"fallback-placements": c.fallbackPlacements,
|
|
2101
|
+
"hide-after": c.hideAfter,
|
|
2102
|
+
"gpu-acceleration": c.gpuAcceleration,
|
|
2103
|
+
offset: c.offset,
|
|
2104
|
+
persistent: c.persistent,
|
|
2105
|
+
"popper-class": c.popperClass,
|
|
2106
|
+
"popper-style": c.popperStyle,
|
|
2107
|
+
placement: c.placement,
|
|
2108
|
+
"popper-options": c.popperOptions,
|
|
2109
|
+
pure: c.pure,
|
|
2110
|
+
"raw-content": c.rawContent,
|
|
2111
|
+
"reference-el": c.referenceEl,
|
|
2112
|
+
"trigger-target-el": c.triggerTargetEl,
|
|
2113
|
+
"show-after": c.showAfter,
|
|
2114
|
+
strategy: c.strategy,
|
|
2115
|
+
teleported: c.teleported,
|
|
2116
|
+
transition: c.transition,
|
|
2117
|
+
"virtual-triggering": c.virtualTriggering,
|
|
2118
|
+
"z-index": c.zIndex,
|
|
2119
|
+
"append-to": c.appendTo
|
|
2120
|
+
}, {
|
|
2121
|
+
default: J(() => [
|
|
2122
|
+
K(c.$slots, "content", {}, () => [
|
|
2123
|
+
c.rawContent ? (B(), ee("span", {
|
|
2124
|
+
key: 0,
|
|
2125
|
+
innerHTML: c.content
|
|
2126
|
+
}, null, 8, Ks)) : (B(), ee("span", Ws, st(c.content), 1))
|
|
2127
|
+
]),
|
|
2128
|
+
c.showArrow ? (B(), ne(v(es), {
|
|
2129
|
+
key: 0,
|
|
2130
|
+
"arrow-offset": c.arrowOffset
|
|
2131
|
+
}, null, 8, ["arrow-offset"])) : ce("v-if", !0)
|
|
2132
|
+
]),
|
|
2133
|
+
_: 3
|
|
2134
|
+
}, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
|
|
2135
|
+
]),
|
|
2136
|
+
_: 3
|
|
2137
|
+
}, 8, ["role"]));
|
|
2138
|
+
}
|
|
2139
|
+
});
|
|
2140
|
+
var Zs = /* @__PURE__ */ ae(Js, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);
|
|
2141
|
+
const Ys = Vt(Zs), Qs = /* @__PURE__ */ H({
|
|
2142
|
+
inheritAttrs: !1
|
|
2143
|
+
});
|
|
2144
|
+
function Gs(e, t, n, o, r, i) {
|
|
2145
|
+
return K(e.$slots, "default");
|
|
2146
|
+
}
|
|
2147
|
+
var Xs = /* @__PURE__ */ ae(Qs, [["render", Gs], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);
|
|
2148
|
+
const ea = /* @__PURE__ */ H({
|
|
2149
|
+
name: "ElCollectionItem",
|
|
2150
|
+
inheritAttrs: !1
|
|
2151
|
+
});
|
|
2152
|
+
function ta(e, t, n, o, r, i) {
|
|
2153
|
+
return K(e.$slots, "default");
|
|
2154
|
+
}
|
|
2155
|
+
var na = /* @__PURE__ */ ae(ea, [["render", ta], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
|
|
2156
|
+
const oa = "data-el-collection-item", ra = (e) => {
|
|
2157
|
+
const t = `El${e}Collection`, n = `${t}Item`, o = Symbol(t), r = Symbol(n), i = {
|
|
2158
|
+
...Xs,
|
|
2159
|
+
name: t,
|
|
2160
|
+
setup() {
|
|
2161
|
+
const u = N(null), s = /* @__PURE__ */ new Map();
|
|
2162
|
+
ge(o, {
|
|
2163
|
+
itemMap: s,
|
|
2164
|
+
getItems: () => {
|
|
2165
|
+
const p = v(u);
|
|
2166
|
+
if (!p)
|
|
2167
|
+
return [];
|
|
2168
|
+
const h = Array.from(p.querySelectorAll(`[${oa}]`));
|
|
2169
|
+
return [...s.values()].sort((g, m) => h.indexOf(g.ref) - h.indexOf(m.ref));
|
|
2170
|
+
},
|
|
2171
|
+
collectionRef: u
|
|
2172
|
+
});
|
|
2173
|
+
}
|
|
2174
|
+
}, a = {
|
|
2175
|
+
...na,
|
|
2176
|
+
name: n,
|
|
2177
|
+
setup(u, { attrs: s }) {
|
|
2178
|
+
const l = N(null), p = ie(o, void 0);
|
|
2179
|
+
ge(r, {
|
|
2180
|
+
collectionItemRef: l
|
|
2181
|
+
}), me(() => {
|
|
2182
|
+
const h = v(l);
|
|
2183
|
+
h && p.itemMap.set(h, {
|
|
2184
|
+
ref: h,
|
|
2185
|
+
...s
|
|
2186
|
+
});
|
|
2187
|
+
}), ve(() => {
|
|
2188
|
+
const h = v(l);
|
|
2189
|
+
p.itemMap.delete(h);
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
2192
|
+
};
|
|
2193
|
+
return {
|
|
2194
|
+
COLLECTION_INJECTION_KEY: o,
|
|
2195
|
+
COLLECTION_ITEM_INJECTION_KEY: r,
|
|
2196
|
+
ElCollection: i,
|
|
2197
|
+
ElCollectionItem: a
|
|
2198
|
+
};
|
|
2199
|
+
}, Tt = G({
|
|
2200
|
+
trigger: qe.trigger,
|
|
2201
|
+
effect: {
|
|
2202
|
+
...X.effect,
|
|
2203
|
+
default: "light"
|
|
2204
|
+
},
|
|
2205
|
+
type: {
|
|
2206
|
+
type: M(String)
|
|
2207
|
+
},
|
|
2208
|
+
placement: {
|
|
2209
|
+
type: M(String),
|
|
2210
|
+
default: "bottom"
|
|
2211
|
+
},
|
|
2212
|
+
popperOptions: {
|
|
2213
|
+
type: M(Object),
|
|
2214
|
+
default: () => ({})
|
|
2215
|
+
},
|
|
2216
|
+
id: String,
|
|
2217
|
+
size: {
|
|
2218
|
+
type: String,
|
|
2219
|
+
default: ""
|
|
2220
|
+
},
|
|
2221
|
+
splitButton: Boolean,
|
|
2222
|
+
hideOnClick: {
|
|
2223
|
+
type: Boolean,
|
|
2224
|
+
default: !0
|
|
2225
|
+
},
|
|
2226
|
+
loop: {
|
|
2227
|
+
type: Boolean,
|
|
2228
|
+
default: !0
|
|
2229
|
+
},
|
|
2230
|
+
showTimeout: {
|
|
2231
|
+
type: Number,
|
|
2232
|
+
default: 150
|
|
2233
|
+
},
|
|
2234
|
+
hideTimeout: {
|
|
2235
|
+
type: Number,
|
|
2236
|
+
default: 150
|
|
2237
|
+
},
|
|
2238
|
+
tabindex: {
|
|
2239
|
+
type: M([Number, String]),
|
|
2240
|
+
default: 0
|
|
2241
|
+
},
|
|
2242
|
+
maxHeight: {
|
|
2243
|
+
type: M([Number, String]),
|
|
2244
|
+
default: ""
|
|
2245
|
+
},
|
|
2246
|
+
popperClass: {
|
|
2247
|
+
type: String,
|
|
2248
|
+
default: ""
|
|
2249
|
+
},
|
|
2250
|
+
disabled: {
|
|
2251
|
+
type: Boolean,
|
|
2252
|
+
default: !1
|
|
2253
|
+
},
|
|
2254
|
+
role: {
|
|
2255
|
+
type: String,
|
|
2256
|
+
default: "menu"
|
|
2257
|
+
},
|
|
2258
|
+
buttonProps: {
|
|
2259
|
+
type: M(Object)
|
|
2260
|
+
},
|
|
2261
|
+
teleported: X.teleported
|
|
2262
|
+
});
|
|
2263
|
+
G({
|
|
2264
|
+
command: {
|
|
2265
|
+
type: [Object, String, Number],
|
|
2266
|
+
default: () => ({})
|
|
2267
|
+
},
|
|
2268
|
+
disabled: Boolean,
|
|
2269
|
+
divided: Boolean,
|
|
2270
|
+
textValue: String,
|
|
2271
|
+
icon: {
|
|
2272
|
+
type: _r
|
|
2273
|
+
}
|
|
2274
|
+
});
|
|
2275
|
+
G({
|
|
2276
|
+
onKeydown: { type: M(Function) }
|
|
2277
|
+
});
|
|
2278
|
+
ra("Dropdown");
|
|
2279
|
+
const ia = G({
|
|
2280
|
+
trigger: qe.trigger,
|
|
2281
|
+
placement: Tt.placement,
|
|
2282
|
+
disabled: qe.disabled,
|
|
2283
|
+
visible: X.visible,
|
|
2284
|
+
transition: X.transition,
|
|
2285
|
+
popperOptions: Tt.popperOptions,
|
|
2286
|
+
tabindex: Tt.tabindex,
|
|
2287
|
+
content: X.content,
|
|
2288
|
+
popperStyle: X.popperStyle,
|
|
2289
|
+
popperClass: X.popperClass,
|
|
2290
|
+
enterable: {
|
|
2291
|
+
...X.enterable,
|
|
2292
|
+
default: !0
|
|
2293
|
+
},
|
|
2294
|
+
effect: {
|
|
2295
|
+
...X.effect,
|
|
2296
|
+
default: "light"
|
|
2297
|
+
},
|
|
2298
|
+
teleported: X.teleported,
|
|
2299
|
+
title: String,
|
|
2300
|
+
width: {
|
|
2301
|
+
type: [String, Number],
|
|
2302
|
+
default: 150
|
|
2303
|
+
},
|
|
2304
|
+
offset: {
|
|
2305
|
+
type: Number,
|
|
2306
|
+
default: void 0
|
|
2307
|
+
},
|
|
2308
|
+
showAfter: {
|
|
2309
|
+
type: Number,
|
|
2310
|
+
default: 0
|
|
2311
|
+
},
|
|
2312
|
+
hideAfter: {
|
|
2313
|
+
type: Number,
|
|
2314
|
+
default: 200
|
|
2315
|
+
},
|
|
2316
|
+
autoClose: {
|
|
2317
|
+
type: Number,
|
|
2318
|
+
default: 0
|
|
2319
|
+
},
|
|
2320
|
+
showArrow: {
|
|
2321
|
+
type: Boolean,
|
|
2322
|
+
default: !0
|
|
2323
|
+
},
|
|
2324
|
+
persistent: {
|
|
2325
|
+
type: Boolean,
|
|
2326
|
+
default: !0
|
|
2327
|
+
},
|
|
2328
|
+
"onUpdate:visible": {
|
|
2329
|
+
type: Function
|
|
2330
|
+
}
|
|
2331
|
+
}), sa = {
|
|
2332
|
+
"update:visible": (e) => Lt(e),
|
|
2333
|
+
"before-enter": () => !0,
|
|
2334
|
+
"before-leave": () => !0,
|
|
2335
|
+
"after-enter": () => !0,
|
|
2336
|
+
"after-leave": () => !0
|
|
2337
|
+
}, aa = "onUpdate:visible", la = H({
|
|
2338
|
+
name: "ElPopover"
|
|
2339
|
+
}), ua = /* @__PURE__ */ H({
|
|
2340
|
+
...la,
|
|
2341
|
+
props: ia,
|
|
2342
|
+
emits: sa,
|
|
2343
|
+
setup(e, { expose: t, emit: n }) {
|
|
2344
|
+
const o = e, r = P(() => o[aa]), i = Le("popover"), a = N(), u = P(() => {
|
|
2345
|
+
var d;
|
|
2346
|
+
return (d = v(a)) == null ? void 0 : d.popperRef;
|
|
2347
|
+
}), s = P(() => [
|
|
2348
|
+
{
|
|
2349
|
+
width: Tr(o.width)
|
|
2350
|
+
},
|
|
2351
|
+
o.popperStyle
|
|
2352
|
+
]), l = P(() => [i.b(), o.popperClass, { [i.m("plain")]: !!o.content }]), p = P(() => o.transition === `${i.namespace.value}-fade-in-linear`), h = () => {
|
|
2353
|
+
var d;
|
|
2354
|
+
(d = a.value) == null || d.hide();
|
|
2355
|
+
}, y = () => {
|
|
2356
|
+
n("before-enter");
|
|
2357
|
+
}, g = () => {
|
|
2358
|
+
n("before-leave");
|
|
2359
|
+
}, m = () => {
|
|
2360
|
+
n("after-enter");
|
|
2361
|
+
}, f = () => {
|
|
2362
|
+
n("update:visible", !1), n("after-leave");
|
|
2363
|
+
};
|
|
2364
|
+
return t({
|
|
2365
|
+
popperRef: u,
|
|
2366
|
+
hide: h
|
|
2367
|
+
}), (d, c) => (B(), ne(v(Ys), Ie({
|
|
2368
|
+
ref_key: "tooltipRef",
|
|
2369
|
+
ref: a
|
|
2370
|
+
}, d.$attrs, {
|
|
2371
|
+
trigger: d.trigger,
|
|
2372
|
+
placement: d.placement,
|
|
2373
|
+
disabled: d.disabled,
|
|
2374
|
+
visible: d.visible,
|
|
2375
|
+
transition: d.transition,
|
|
2376
|
+
"popper-options": d.popperOptions,
|
|
2377
|
+
tabindex: d.tabindex,
|
|
2378
|
+
content: d.content,
|
|
2379
|
+
offset: d.offset,
|
|
2380
|
+
"show-after": d.showAfter,
|
|
2381
|
+
"hide-after": d.hideAfter,
|
|
2382
|
+
"auto-close": d.autoClose,
|
|
2383
|
+
"show-arrow": d.showArrow,
|
|
2384
|
+
"aria-label": d.title,
|
|
2385
|
+
effect: d.effect,
|
|
2386
|
+
enterable: d.enterable,
|
|
2387
|
+
"popper-class": v(l),
|
|
2388
|
+
"popper-style": v(s),
|
|
2389
|
+
teleported: d.teleported,
|
|
2390
|
+
persistent: d.persistent,
|
|
2391
|
+
"gpu-acceleration": v(p),
|
|
2392
|
+
"onUpdate:visible": v(r),
|
|
2393
|
+
onBeforeShow: y,
|
|
2394
|
+
onBeforeHide: g,
|
|
2395
|
+
onShow: m,
|
|
2396
|
+
onHide: f
|
|
2397
|
+
}), {
|
|
2398
|
+
content: J(() => [
|
|
2399
|
+
d.title ? (B(), ee("div", {
|
|
2400
|
+
key: 0,
|
|
2401
|
+
class: Re(v(i).e("title")),
|
|
2402
|
+
role: "title"
|
|
2403
|
+
}, st(d.title), 3)) : ce("v-if", !0),
|
|
2404
|
+
K(d.$slots, "default", {}, () => [
|
|
2405
|
+
Jn(st(d.content), 1)
|
|
2406
|
+
])
|
|
2407
|
+
]),
|
|
2408
|
+
default: J(() => [
|
|
2409
|
+
d.$slots.reference ? K(d.$slots, "reference", { key: 0 }) : ce("v-if", !0)
|
|
2410
|
+
]),
|
|
2411
|
+
_: 3
|
|
2412
|
+
}, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]));
|
|
2413
|
+
}
|
|
2414
|
+
});
|
|
2415
|
+
var ca = /* @__PURE__ */ ae(ua, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
|
|
2416
|
+
const Un = (e, t) => {
|
|
2417
|
+
const n = t.arg || t.value, o = n == null ? void 0 : n.popperRef;
|
|
2418
|
+
o && (o.triggerRef = e);
|
|
2419
|
+
};
|
|
2420
|
+
var fa = {
|
|
2421
|
+
mounted(e, t) {
|
|
2422
|
+
Un(e, t);
|
|
2423
|
+
},
|
|
2424
|
+
updated(e, t) {
|
|
2425
|
+
Un(e, t);
|
|
2426
|
+
}
|
|
2427
|
+
};
|
|
2428
|
+
const da = "popover", pa = Cr(fa, da), ma = Vt(ca, {
|
|
2429
|
+
directive: pa
|
|
2430
|
+
});
|
|
2431
|
+
function va() {
|
|
14
2432
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
15
2433
|
if (t > 0)
|
|
16
2434
|
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
17
|
-
var
|
|
18
|
-
if (
|
|
19
|
-
var
|
|
20
|
-
return parseInt(e.substring(
|
|
2435
|
+
var n = e.indexOf("Trident/");
|
|
2436
|
+
if (n > 0) {
|
|
2437
|
+
var o = e.indexOf("rv:");
|
|
2438
|
+
return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
|
|
21
2439
|
}
|
|
22
|
-
var
|
|
23
|
-
return
|
|
2440
|
+
var r = e.indexOf("Edge/");
|
|
2441
|
+
return r > 0 ? parseInt(e.substring(r + 5, e.indexOf(".", r)), 10) : -1;
|
|
24
2442
|
}
|
|
25
|
-
let
|
|
26
|
-
function
|
|
27
|
-
|
|
2443
|
+
let ot;
|
|
2444
|
+
function Rt() {
|
|
2445
|
+
Rt.init || (Rt.init = !0, ot = va() !== -1);
|
|
28
2446
|
}
|
|
29
|
-
var
|
|
2447
|
+
var vt = {
|
|
30
2448
|
name: "ResizeObserver",
|
|
31
2449
|
props: {
|
|
32
2450
|
emitOnMount: {
|
|
@@ -46,11 +2464,11 @@ var G = {
|
|
|
46
2464
|
"notify"
|
|
47
2465
|
],
|
|
48
2466
|
mounted() {
|
|
49
|
-
|
|
2467
|
+
Rt(), He(() => {
|
|
50
2468
|
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
51
2469
|
});
|
|
52
2470
|
const e = document.createElement("object");
|
|
53
|
-
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html",
|
|
2471
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", ot && this.$el.appendChild(e), e.data = "about:blank", ot || this.$el.appendChild(e);
|
|
54
2472
|
},
|
|
55
2473
|
beforeUnmount() {
|
|
56
2474
|
this.removeResizeHandlers();
|
|
@@ -69,133 +2487,133 @@ var G = {
|
|
|
69
2487
|
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
70
2488
|
},
|
|
71
2489
|
removeResizeHandlers() {
|
|
72
|
-
this._resizeObject && this._resizeObject.onload && (!
|
|
2490
|
+
this._resizeObject && this._resizeObject.onload && (!ot && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
73
2491
|
}
|
|
74
2492
|
}
|
|
75
2493
|
};
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
const
|
|
2494
|
+
const ha = /* @__PURE__ */ Zo("data-v-b329ee4c");
|
|
2495
|
+
qo("data-v-b329ee4c");
|
|
2496
|
+
const ga = {
|
|
79
2497
|
class: "resize-observer",
|
|
80
2498
|
tabindex: "-1"
|
|
81
2499
|
};
|
|
82
|
-
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
function
|
|
2500
|
+
Jo();
|
|
2501
|
+
const ya = /* @__PURE__ */ ha((e, t, n, o, r, i) => (B(), ne("div", ga)));
|
|
2502
|
+
vt.render = ya;
|
|
2503
|
+
vt.__scopeId = "data-v-b329ee4c";
|
|
2504
|
+
vt.__file = "src/components/ResizeObserver.vue";
|
|
2505
|
+
function rt(e) {
|
|
88
2506
|
"@babel/helpers - typeof";
|
|
89
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2507
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? rt = function(t) {
|
|
90
2508
|
return typeof t;
|
|
91
|
-
} :
|
|
2509
|
+
} : rt = function(t) {
|
|
92
2510
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
93
|
-
},
|
|
2511
|
+
}, rt(e);
|
|
94
2512
|
}
|
|
95
|
-
function
|
|
2513
|
+
function ba(e, t) {
|
|
96
2514
|
if (!(e instanceof t))
|
|
97
2515
|
throw new TypeError("Cannot call a class as a function");
|
|
98
2516
|
}
|
|
99
|
-
function
|
|
100
|
-
for (var
|
|
101
|
-
var
|
|
102
|
-
|
|
2517
|
+
function wa(e, t) {
|
|
2518
|
+
for (var n = 0; n < t.length; n++) {
|
|
2519
|
+
var o = t[n];
|
|
2520
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
|
|
103
2521
|
}
|
|
104
2522
|
}
|
|
105
|
-
function
|
|
106
|
-
return t &&
|
|
2523
|
+
function Ea(e, t, n) {
|
|
2524
|
+
return t && wa(e.prototype, t), e;
|
|
107
2525
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
2526
|
+
function Kn(e) {
|
|
2527
|
+
return Oa(e) || Sa(e) || Ta(e) || Ia();
|
|
110
2528
|
}
|
|
111
|
-
function
|
|
112
|
-
if (Array.isArray(e)) return
|
|
2529
|
+
function Oa(e) {
|
|
2530
|
+
if (Array.isArray(e)) return kt(e);
|
|
113
2531
|
}
|
|
114
|
-
function
|
|
2532
|
+
function Sa(e) {
|
|
115
2533
|
if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e);
|
|
116
2534
|
}
|
|
117
|
-
function
|
|
2535
|
+
function Ta(e, t) {
|
|
118
2536
|
if (e) {
|
|
119
|
-
if (typeof e == "string") return
|
|
120
|
-
var
|
|
121
|
-
if (
|
|
122
|
-
if (
|
|
2537
|
+
if (typeof e == "string") return kt(e, t);
|
|
2538
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2539
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
2540
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return kt(e, t);
|
|
123
2541
|
}
|
|
124
2542
|
}
|
|
125
|
-
function
|
|
2543
|
+
function kt(e, t) {
|
|
126
2544
|
(t == null || t > e.length) && (t = e.length);
|
|
127
|
-
for (var
|
|
128
|
-
return
|
|
2545
|
+
for (var n = 0, o = new Array(t); n < t; n++) o[n] = e[n];
|
|
2546
|
+
return o;
|
|
129
2547
|
}
|
|
130
|
-
function
|
|
2548
|
+
function Ia() {
|
|
131
2549
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
132
2550
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
133
2551
|
}
|
|
134
|
-
function
|
|
2552
|
+
function _a(e) {
|
|
135
2553
|
var t;
|
|
136
2554
|
return typeof e == "function" ? t = {
|
|
137
2555
|
callback: e
|
|
138
2556
|
} : t = e, t;
|
|
139
2557
|
}
|
|
140
|
-
function
|
|
141
|
-
var
|
|
142
|
-
for (var
|
|
143
|
-
|
|
144
|
-
if (
|
|
145
|
-
var
|
|
146
|
-
typeof
|
|
147
|
-
e.apply(void 0, [
|
|
2558
|
+
function Ca(e, t) {
|
|
2559
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, r, i, a = function(s) {
|
|
2560
|
+
for (var l = arguments.length, p = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++)
|
|
2561
|
+
p[h - 1] = arguments[h];
|
|
2562
|
+
if (i = p, !(o && s === r)) {
|
|
2563
|
+
var y = n.leading;
|
|
2564
|
+
typeof y == "function" && (y = y(s, r)), (!o || s !== r) && y && e.apply(void 0, [s].concat(Kn(i))), r = s, clearTimeout(o), o = setTimeout(function() {
|
|
2565
|
+
e.apply(void 0, [s].concat(Kn(i))), o = 0;
|
|
148
2566
|
}, t);
|
|
149
2567
|
}
|
|
150
2568
|
};
|
|
151
|
-
return
|
|
152
|
-
clearTimeout(
|
|
153
|
-
},
|
|
2569
|
+
return a._clear = function() {
|
|
2570
|
+
clearTimeout(o), o = null;
|
|
2571
|
+
}, a;
|
|
154
2572
|
}
|
|
155
|
-
function
|
|
2573
|
+
function To(e, t) {
|
|
156
2574
|
if (e === t) return !0;
|
|
157
|
-
if (
|
|
158
|
-
for (var
|
|
159
|
-
if (!
|
|
2575
|
+
if (rt(e) === "object") {
|
|
2576
|
+
for (var n in e)
|
|
2577
|
+
if (!To(e[n], t[n]))
|
|
160
2578
|
return !1;
|
|
161
2579
|
return !0;
|
|
162
2580
|
}
|
|
163
2581
|
return !1;
|
|
164
2582
|
}
|
|
165
|
-
var
|
|
166
|
-
function e(t,
|
|
167
|
-
|
|
2583
|
+
var Pa = /* @__PURE__ */ function() {
|
|
2584
|
+
function e(t, n, o) {
|
|
2585
|
+
ba(this, e), this.el = t, this.observer = null, this.frozen = !1, this.createObserver(n, o);
|
|
168
2586
|
}
|
|
169
|
-
return
|
|
2587
|
+
return Ea(e, [{
|
|
170
2588
|
key: "createObserver",
|
|
171
|
-
value: function(
|
|
172
|
-
var
|
|
2589
|
+
value: function(n, o) {
|
|
2590
|
+
var r = this;
|
|
173
2591
|
if (this.observer && this.destroyObserver(), !this.frozen) {
|
|
174
|
-
if (this.options =
|
|
175
|
-
|
|
2592
|
+
if (this.options = _a(n), this.callback = function(u, s) {
|
|
2593
|
+
r.options.callback(u, s), u && r.options.once && (r.frozen = !0, r.destroyObserver());
|
|
176
2594
|
}, this.callback && this.options.throttle) {
|
|
177
|
-
var
|
|
178
|
-
this.callback =
|
|
179
|
-
leading: function(
|
|
180
|
-
return
|
|
2595
|
+
var i = this.options.throttleOptions || {}, a = i.leading;
|
|
2596
|
+
this.callback = Ca(this.callback, this.options.throttle, {
|
|
2597
|
+
leading: function(s) {
|
|
2598
|
+
return a === "both" || a === "visible" && s || a === "hidden" && !s;
|
|
181
2599
|
}
|
|
182
2600
|
});
|
|
183
2601
|
}
|
|
184
|
-
this.oldResult = void 0, this.observer = new IntersectionObserver(function(
|
|
185
|
-
var
|
|
186
|
-
if (
|
|
187
|
-
var
|
|
188
|
-
return
|
|
2602
|
+
this.oldResult = void 0, this.observer = new IntersectionObserver(function(u) {
|
|
2603
|
+
var s = u[0];
|
|
2604
|
+
if (u.length > 1) {
|
|
2605
|
+
var l = u.find(function(h) {
|
|
2606
|
+
return h.isIntersecting;
|
|
189
2607
|
});
|
|
190
|
-
|
|
2608
|
+
l && (s = l);
|
|
191
2609
|
}
|
|
192
|
-
if (
|
|
193
|
-
var
|
|
194
|
-
if (
|
|
195
|
-
|
|
2610
|
+
if (r.callback) {
|
|
2611
|
+
var p = s.isIntersecting && s.intersectionRatio >= r.threshold;
|
|
2612
|
+
if (p === r.oldResult) return;
|
|
2613
|
+
r.oldResult = p, r.callback(p, s);
|
|
196
2614
|
}
|
|
197
|
-
}, this.options.intersection),
|
|
198
|
-
|
|
2615
|
+
}, this.options.intersection), He(function() {
|
|
2616
|
+
r.observer && r.observer.observe(r.el);
|
|
199
2617
|
});
|
|
200
2618
|
}
|
|
201
2619
|
}
|
|
@@ -211,64 +2629,64 @@ var ot = /* @__PURE__ */ function() {
|
|
|
211
2629
|
}
|
|
212
2630
|
}]), e;
|
|
213
2631
|
}();
|
|
214
|
-
function
|
|
215
|
-
var
|
|
216
|
-
if (
|
|
217
|
-
var
|
|
218
|
-
e._vue_visibilityState =
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
function
|
|
222
|
-
var
|
|
223
|
-
if (!
|
|
224
|
-
var
|
|
225
|
-
if (!
|
|
226
|
-
|
|
2632
|
+
function Io(e, t, n) {
|
|
2633
|
+
var o = t.value;
|
|
2634
|
+
if (o && !(typeof IntersectionObserver > "u")) {
|
|
2635
|
+
var r = new Pa(e, o, n);
|
|
2636
|
+
e._vue_visibilityState = r;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
function $a(e, t, n) {
|
|
2640
|
+
var o = t.value, r = t.oldValue;
|
|
2641
|
+
if (!To(o, r)) {
|
|
2642
|
+
var i = e._vue_visibilityState;
|
|
2643
|
+
if (!o) {
|
|
2644
|
+
_o(e);
|
|
227
2645
|
return;
|
|
228
2646
|
}
|
|
229
|
-
|
|
230
|
-
value:
|
|
231
|
-
},
|
|
2647
|
+
i ? i.createObserver(o, n) : Io(e, {
|
|
2648
|
+
value: o
|
|
2649
|
+
}, n);
|
|
232
2650
|
}
|
|
233
2651
|
}
|
|
234
|
-
function
|
|
2652
|
+
function _o(e) {
|
|
235
2653
|
var t = e._vue_visibilityState;
|
|
236
2654
|
t && (t.destroyObserver(), delete e._vue_visibilityState);
|
|
237
2655
|
}
|
|
238
|
-
var
|
|
239
|
-
beforeMount:
|
|
240
|
-
updated:
|
|
241
|
-
unmounted:
|
|
242
|
-
},
|
|
2656
|
+
var Aa = {
|
|
2657
|
+
beforeMount: Io,
|
|
2658
|
+
updated: $a,
|
|
2659
|
+
unmounted: _o
|
|
2660
|
+
}, Ra = {
|
|
243
2661
|
itemsLimit: 1e3
|
|
244
|
-
},
|
|
245
|
-
function
|
|
246
|
-
return e.parentNode === null ? t :
|
|
247
|
-
}
|
|
248
|
-
var
|
|
249
|
-
return getComputedStyle(t, null).getPropertyValue(
|
|
250
|
-
},
|
|
251
|
-
return
|
|
252
|
-
},
|
|
253
|
-
return
|
|
2662
|
+
}, ka = /(auto|scroll)/;
|
|
2663
|
+
function Co(e, t) {
|
|
2664
|
+
return e.parentNode === null ? t : Co(e.parentNode, t.concat([e]));
|
|
2665
|
+
}
|
|
2666
|
+
var It = function(t, n) {
|
|
2667
|
+
return getComputedStyle(t, null).getPropertyValue(n);
|
|
2668
|
+
}, Na = function(t) {
|
|
2669
|
+
return It(t, "overflow") + It(t, "overflow-y") + It(t, "overflow-x");
|
|
2670
|
+
}, xa = function(t) {
|
|
2671
|
+
return ka.test(Na(t));
|
|
254
2672
|
};
|
|
255
|
-
function
|
|
2673
|
+
function Wn(e) {
|
|
256
2674
|
if (e instanceof HTMLElement || e instanceof SVGElement) {
|
|
257
|
-
for (var t =
|
|
258
|
-
if (
|
|
259
|
-
return t[
|
|
2675
|
+
for (var t = Co(e.parentNode, []), n = 0; n < t.length; n += 1)
|
|
2676
|
+
if (xa(t[n]))
|
|
2677
|
+
return t[n];
|
|
260
2678
|
return document.scrollingElement || document.documentElement;
|
|
261
2679
|
}
|
|
262
2680
|
}
|
|
263
|
-
function
|
|
2681
|
+
function Nt(e) {
|
|
264
2682
|
"@babel/helpers - typeof";
|
|
265
|
-
return
|
|
2683
|
+
return Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
266
2684
|
return typeof t;
|
|
267
2685
|
} : function(t) {
|
|
268
2686
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
269
|
-
},
|
|
2687
|
+
}, Nt(e);
|
|
270
2688
|
}
|
|
271
|
-
var
|
|
2689
|
+
var Fa = {
|
|
272
2690
|
items: {
|
|
273
2691
|
type: Array,
|
|
274
2692
|
required: !0
|
|
@@ -293,33 +2711,33 @@ var mt = {
|
|
|
293
2711
|
default: "div"
|
|
294
2712
|
}
|
|
295
2713
|
};
|
|
296
|
-
function
|
|
297
|
-
return this.items.length &&
|
|
2714
|
+
function za() {
|
|
2715
|
+
return this.items.length && Nt(this.items[0]) !== "object";
|
|
298
2716
|
}
|
|
299
|
-
var
|
|
2717
|
+
var xt = !1;
|
|
300
2718
|
if (typeof window < "u") {
|
|
301
|
-
|
|
2719
|
+
xt = !1;
|
|
302
2720
|
try {
|
|
303
|
-
var
|
|
2721
|
+
var La = Object.defineProperty({}, "passive", {
|
|
304
2722
|
get: function() {
|
|
305
|
-
|
|
2723
|
+
xt = !0;
|
|
306
2724
|
}
|
|
307
2725
|
});
|
|
308
|
-
window.addEventListener("test", null,
|
|
2726
|
+
window.addEventListener("test", null, La);
|
|
309
2727
|
} catch {
|
|
310
2728
|
}
|
|
311
2729
|
}
|
|
312
|
-
let
|
|
313
|
-
var
|
|
2730
|
+
let Ma = 0;
|
|
2731
|
+
var en = {
|
|
314
2732
|
name: "RecycleScroller",
|
|
315
2733
|
components: {
|
|
316
|
-
ResizeObserver:
|
|
2734
|
+
ResizeObserver: vt
|
|
317
2735
|
},
|
|
318
2736
|
directives: {
|
|
319
|
-
ObserveVisibility:
|
|
2737
|
+
ObserveVisibility: Aa
|
|
320
2738
|
},
|
|
321
2739
|
props: {
|
|
322
|
-
...
|
|
2740
|
+
...Fa,
|
|
323
2741
|
itemSize: {
|
|
324
2742
|
type: Number,
|
|
325
2743
|
default: null
|
|
@@ -406,20 +2824,20 @@ var de = {
|
|
|
406
2824
|
if (this.itemSize === null) {
|
|
407
2825
|
const e = {
|
|
408
2826
|
"-1": { accumulator: 0 }
|
|
409
|
-
}, t = this.items,
|
|
410
|
-
let
|
|
411
|
-
for (let
|
|
412
|
-
|
|
413
|
-
return this.$_computedMinItemSize =
|
|
2827
|
+
}, t = this.items, n = this.sizeField, o = this.minItemSize;
|
|
2828
|
+
let r = 1e4, i = 0, a;
|
|
2829
|
+
for (let u = 0, s = t.length; u < s; u++)
|
|
2830
|
+
a = t[u][n] || o, a < r && (r = a), i += a, e[u] = { accumulator: i, size: a };
|
|
2831
|
+
return this.$_computedMinItemSize = r, e;
|
|
414
2832
|
}
|
|
415
2833
|
return [];
|
|
416
2834
|
},
|
|
417
|
-
simpleArray:
|
|
2835
|
+
simpleArray: za,
|
|
418
2836
|
itemIndexByKey() {
|
|
419
|
-
const { keyField: e, items: t } = this,
|
|
420
|
-
for (let
|
|
421
|
-
|
|
422
|
-
return
|
|
2837
|
+
const { keyField: e, items: t } = this, n = {};
|
|
2838
|
+
for (let o = 0, r = t.length; o < r; o++)
|
|
2839
|
+
n[t[o][e]] = o;
|
|
2840
|
+
return n;
|
|
423
2841
|
}
|
|
424
2842
|
},
|
|
425
2843
|
watch: {
|
|
@@ -460,24 +2878,24 @@ var de = {
|
|
|
460
2878
|
this.removeListeners();
|
|
461
2879
|
},
|
|
462
2880
|
methods: {
|
|
463
|
-
addView(e, t,
|
|
464
|
-
const
|
|
465
|
-
id:
|
|
2881
|
+
addView(e, t, n, o, r) {
|
|
2882
|
+
const i = Yo({
|
|
2883
|
+
id: Ma++,
|
|
466
2884
|
index: t,
|
|
467
2885
|
used: !0,
|
|
468
|
-
key:
|
|
469
|
-
type:
|
|
470
|
-
}),
|
|
471
|
-
item:
|
|
2886
|
+
key: o,
|
|
2887
|
+
type: r
|
|
2888
|
+
}), a = Qo({
|
|
2889
|
+
item: n,
|
|
472
2890
|
position: 0,
|
|
473
|
-
nr:
|
|
2891
|
+
nr: i
|
|
474
2892
|
});
|
|
475
|
-
return e.push(
|
|
2893
|
+
return e.push(a), a;
|
|
476
2894
|
},
|
|
477
2895
|
unuseView(e, t = !1) {
|
|
478
|
-
const
|
|
479
|
-
let
|
|
480
|
-
|
|
2896
|
+
const n = this.$_unusedViews, o = e.nr.type;
|
|
2897
|
+
let r = n.get(o);
|
|
2898
|
+
r || (r = [], n.set(o, r)), r.push(e), t || (e.nr.used = !1, e.position = -9999);
|
|
481
2899
|
},
|
|
482
2900
|
handleResize() {
|
|
483
2901
|
this.$emit("resize"), this.ready && this.updateVisibleItems(!1);
|
|
@@ -487,8 +2905,8 @@ var de = {
|
|
|
487
2905
|
if (this.$_scrollDirty = !0, this.$_updateTimeout) return;
|
|
488
2906
|
const t = () => requestAnimationFrame(() => {
|
|
489
2907
|
this.$_scrollDirty = !1;
|
|
490
|
-
const { continuous:
|
|
491
|
-
|
|
2908
|
+
const { continuous: n } = this.updateVisibleItems(!1, !0);
|
|
2909
|
+
n || (clearTimeout(this.$_refreshTimout), this.$_refreshTimout = setTimeout(this.handleScroll, this.updateInterval + 100));
|
|
492
2910
|
});
|
|
493
2911
|
t(), this.updateInterval && (this.$_updateTimeout = setTimeout(() => {
|
|
494
2912
|
this.$_updateTimeout = 0, this.$_scrollDirty && t();
|
|
@@ -501,102 +2919,102 @@ var de = {
|
|
|
501
2919
|
})) : this.$emit("hidden"));
|
|
502
2920
|
},
|
|
503
2921
|
updateVisibleItems(e, t = !1) {
|
|
504
|
-
const
|
|
505
|
-
let
|
|
506
|
-
if (!
|
|
507
|
-
|
|
2922
|
+
const n = this.itemSize, o = this.gridItems || 1, r = this.itemSecondarySize || n, i = this.$_computedMinItemSize, a = this.typeField, u = this.simpleArray ? null : this.keyField, s = this.items, l = s.length, p = this.sizes, h = this.$_views, y = this.$_unusedViews, g = this.pool, m = this.itemIndexByKey;
|
|
2923
|
+
let f, d, c, E, I;
|
|
2924
|
+
if (!l)
|
|
2925
|
+
f = d = E = I = c = 0;
|
|
508
2926
|
else if (this.$_prerender)
|
|
509
|
-
|
|
2927
|
+
f = E = 0, d = I = Math.min(this.prerender, s.length), c = null;
|
|
510
2928
|
else {
|
|
511
|
-
const
|
|
2929
|
+
const O = this.getScroll();
|
|
512
2930
|
if (t) {
|
|
513
|
-
let
|
|
514
|
-
if (
|
|
2931
|
+
let R = O.start - this.$_lastUpdateScrollPosition;
|
|
2932
|
+
if (R < 0 && (R = -R), n === null && R < i || R < n)
|
|
515
2933
|
return {
|
|
516
2934
|
continuous: !0
|
|
517
2935
|
};
|
|
518
2936
|
}
|
|
519
|
-
this.$_lastUpdateScrollPosition =
|
|
520
|
-
const
|
|
521
|
-
|
|
522
|
-
let
|
|
523
|
-
if (this.$refs.before && (
|
|
524
|
-
const
|
|
525
|
-
|
|
2937
|
+
this.$_lastUpdateScrollPosition = O.start;
|
|
2938
|
+
const F = this.buffer;
|
|
2939
|
+
O.start -= F, O.end += F;
|
|
2940
|
+
let $ = 0;
|
|
2941
|
+
if (this.$refs.before && ($ = this.$refs.before.scrollHeight, O.start -= $), this.$refs.after) {
|
|
2942
|
+
const R = this.$refs.after.scrollHeight;
|
|
2943
|
+
O.end += R;
|
|
526
2944
|
}
|
|
527
|
-
if (
|
|
528
|
-
let
|
|
2945
|
+
if (n === null) {
|
|
2946
|
+
let R, V = 0, D = l - 1, k = ~~(l / 2), S;
|
|
529
2947
|
do
|
|
530
|
-
|
|
531
|
-
while (
|
|
532
|
-
for (
|
|
533
|
-
for (
|
|
534
|
-
for (
|
|
2948
|
+
S = k, R = p[k].accumulator, R < O.start ? V = k : k < l - 1 && p[k + 1].accumulator > O.start && (D = k), k = ~~((V + D) / 2);
|
|
2949
|
+
while (k !== S);
|
|
2950
|
+
for (k < 0 && (k = 0), f = k, c = p[l - 1].accumulator, d = k; d < l && p[d].accumulator < O.end; d++) ;
|
|
2951
|
+
for (d === -1 ? d = s.length - 1 : (d++, d > l && (d = l)), E = f; E < l && $ + p[E].accumulator < O.start; E++) ;
|
|
2952
|
+
for (I = E; I < l && $ + p[I].accumulator < O.end; I++) ;
|
|
535
2953
|
} else {
|
|
536
|
-
|
|
537
|
-
const
|
|
538
|
-
|
|
2954
|
+
f = ~~(O.start / n * o);
|
|
2955
|
+
const R = f % o;
|
|
2956
|
+
f -= R, d = Math.ceil(O.end / n * o), E = Math.max(0, Math.floor((O.start - $) / n * o)), I = Math.floor((O.end - $) / n * o), f < 0 && (f = 0), d > l && (d = l), E < 0 && (E = 0), I > l && (I = l), c = Math.ceil(l / o) * n;
|
|
539
2957
|
}
|
|
540
2958
|
}
|
|
541
|
-
|
|
542
|
-
let
|
|
543
|
-
const
|
|
544
|
-
if (
|
|
545
|
-
for (let
|
|
546
|
-
|
|
547
|
-
const
|
|
548
|
-
let
|
|
549
|
-
for (let
|
|
550
|
-
|
|
551
|
-
const
|
|
552
|
-
if (
|
|
553
|
-
throw new Error(`Key is ${
|
|
554
|
-
if (
|
|
555
|
-
|
|
2959
|
+
d - f > Ra.itemsLimit && this.itemsLimitError(), this.totalSize = c;
|
|
2960
|
+
let b;
|
|
2961
|
+
const C = f <= this.$_endIndex && d >= this.$_startIndex;
|
|
2962
|
+
if (C)
|
|
2963
|
+
for (let O = 0, F = g.length; O < F; O++)
|
|
2964
|
+
b = g[O], b.nr.used && (e && (b.nr.index = m[b.item[u]]), (b.nr.index == null || b.nr.index < f || b.nr.index >= d) && this.unuseView(b));
|
|
2965
|
+
const x = C ? null : /* @__PURE__ */ new Map();
|
|
2966
|
+
let T, _, z;
|
|
2967
|
+
for (let O = f; O < d; O++) {
|
|
2968
|
+
T = s[O];
|
|
2969
|
+
const F = u ? T[u] : T;
|
|
2970
|
+
if (F == null)
|
|
2971
|
+
throw new Error(`Key is ${F} on item (keyField is '${u}')`);
|
|
2972
|
+
if (b = h.get(F), !n && !p[O].size) {
|
|
2973
|
+
b && this.unuseView(b);
|
|
556
2974
|
continue;
|
|
557
2975
|
}
|
|
558
|
-
|
|
559
|
-
let
|
|
560
|
-
if (!
|
|
561
|
-
|
|
562
|
-
else if (!
|
|
563
|
-
const
|
|
564
|
-
|
|
2976
|
+
_ = T[a];
|
|
2977
|
+
let $ = y.get(_), R = !1;
|
|
2978
|
+
if (!b)
|
|
2979
|
+
C ? $ && $.length ? b = $.pop() : b = this.addView(g, O, T, F, _) : (z = x.get(_) || 0, (!$ || z >= $.length) && (b = this.addView(g, O, T, F, _), this.unuseView(b, !0), $ = y.get(_)), b = $[z], x.set(_, z + 1)), h.delete(b.nr.key), b.nr.used = !0, b.nr.index = O, b.nr.key = F, b.nr.type = _, h.set(F, b), R = !0;
|
|
2980
|
+
else if (!b.nr.used && (b.nr.used = !0, R = !0, $)) {
|
|
2981
|
+
const V = $.indexOf(b);
|
|
2982
|
+
V !== -1 && $.splice(V, 1);
|
|
565
2983
|
}
|
|
566
|
-
|
|
2984
|
+
b.item = T, R && (O === s.length - 1 && this.$emit("scroll-end"), O === 0 && this.$emit("scroll-start")), n === null ? (b.position = p[O - 1].accumulator, b.offset = 0) : (b.position = Math.floor(O / o) * n, b.offset = O % o * r);
|
|
567
2985
|
}
|
|
568
|
-
return this.$_startIndex =
|
|
569
|
-
continuous:
|
|
2986
|
+
return this.$_startIndex = f, this.$_endIndex = d, this.emitUpdate && this.$emit("update", f, d, E, I), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
2987
|
+
continuous: C
|
|
570
2988
|
};
|
|
571
2989
|
},
|
|
572
2990
|
getListenerTarget() {
|
|
573
|
-
let e =
|
|
2991
|
+
let e = Wn(this.$el);
|
|
574
2992
|
return window.document && (e === window.document.documentElement || e === window.document.body) && (e = window), e;
|
|
575
2993
|
},
|
|
576
2994
|
getScroll() {
|
|
577
|
-
const { $el: e, direction: t } = this,
|
|
578
|
-
let
|
|
2995
|
+
const { $el: e, direction: t } = this, n = t === "vertical";
|
|
2996
|
+
let o;
|
|
579
2997
|
if (this.pageMode) {
|
|
580
|
-
const
|
|
581
|
-
let
|
|
582
|
-
|
|
583
|
-
start:
|
|
584
|
-
end:
|
|
2998
|
+
const r = e.getBoundingClientRect(), i = n ? r.height : r.width;
|
|
2999
|
+
let a = -(n ? r.top : r.left), u = n ? window.innerHeight : window.innerWidth;
|
|
3000
|
+
a < 0 && (u += a, a = 0), a + u > i && (u = i - a), o = {
|
|
3001
|
+
start: a,
|
|
3002
|
+
end: a + u
|
|
585
3003
|
};
|
|
586
|
-
} else
|
|
3004
|
+
} else n ? o = {
|
|
587
3005
|
start: e.scrollTop,
|
|
588
3006
|
end: e.scrollTop + e.clientHeight
|
|
589
|
-
} :
|
|
3007
|
+
} : o = {
|
|
590
3008
|
start: e.scrollLeft,
|
|
591
3009
|
end: e.scrollLeft + e.clientWidth
|
|
592
3010
|
};
|
|
593
|
-
return
|
|
3011
|
+
return o;
|
|
594
3012
|
},
|
|
595
3013
|
applyPageMode() {
|
|
596
3014
|
this.pageMode ? this.addListeners() : this.removeListeners();
|
|
597
3015
|
},
|
|
598
3016
|
addListeners() {
|
|
599
|
-
this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll,
|
|
3017
|
+
this.listenerTarget = this.getListenerTarget(), this.listenerTarget.addEventListener("scroll", this.handleScroll, xt ? {
|
|
600
3018
|
passive: !0
|
|
601
3019
|
} : !1), this.listenerTarget.addEventListener("resize", this.handleResize);
|
|
602
3020
|
},
|
|
@@ -605,18 +3023,18 @@ var de = {
|
|
|
605
3023
|
},
|
|
606
3024
|
scrollToItem(e) {
|
|
607
3025
|
let t;
|
|
608
|
-
const
|
|
609
|
-
this.itemSize === null ? t = e > 0 ? this.sizes[e - 1].accumulator : 0 : t = Math.floor(e /
|
|
3026
|
+
const n = this.gridItems || 1;
|
|
3027
|
+
this.itemSize === null ? t = e > 0 ? this.sizes[e - 1].accumulator : 0 : t = Math.floor(e / n) * this.itemSize, this.scrollToPosition(t);
|
|
610
3028
|
},
|
|
611
3029
|
scrollToPosition(e) {
|
|
612
3030
|
const t = this.direction === "vertical" ? { scroll: "scrollTop", start: "top" } : { scroll: "scrollLeft", start: "left" };
|
|
613
|
-
let
|
|
3031
|
+
let n, o, r;
|
|
614
3032
|
if (this.pageMode) {
|
|
615
|
-
const
|
|
616
|
-
|
|
3033
|
+
const i = Wn(this.$el), a = i.tagName === "HTML" ? 0 : i[t.scroll], u = i.getBoundingClientRect(), l = this.$el.getBoundingClientRect()[t.start] - u[t.start];
|
|
3034
|
+
n = i, o = t.scroll, r = e + a + l;
|
|
617
3035
|
} else
|
|
618
|
-
|
|
619
|
-
|
|
3036
|
+
n = this.$el, o = t.scroll, r = e;
|
|
3037
|
+
n[o] = r;
|
|
620
3038
|
},
|
|
621
3039
|
itemsLimitError() {
|
|
622
3040
|
throw setTimeout(() => {
|
|
@@ -627,72 +3045,72 @@ var de = {
|
|
|
627
3045
|
}
|
|
628
3046
|
}
|
|
629
3047
|
};
|
|
630
|
-
const
|
|
3048
|
+
const Va = {
|
|
631
3049
|
key: 0,
|
|
632
3050
|
ref: "before",
|
|
633
3051
|
class: "vue-recycle-scroller__slot"
|
|
634
|
-
},
|
|
3052
|
+
}, Ba = {
|
|
635
3053
|
key: 1,
|
|
636
3054
|
ref: "after",
|
|
637
3055
|
class: "vue-recycle-scroller__slot"
|
|
638
3056
|
};
|
|
639
|
-
function
|
|
640
|
-
const
|
|
641
|
-
return
|
|
3057
|
+
function Da(e, t, n, o, r, i) {
|
|
3058
|
+
const a = Go("ResizeObserver"), u = Xo("observe-visibility");
|
|
3059
|
+
return Oe((B(), ee(
|
|
642
3060
|
"div",
|
|
643
3061
|
{
|
|
644
|
-
class:
|
|
645
|
-
ready:
|
|
646
|
-
"page-mode":
|
|
3062
|
+
class: Re(["vue-recycle-scroller", {
|
|
3063
|
+
ready: r.ready,
|
|
3064
|
+
"page-mode": n.pageMode,
|
|
647
3065
|
[`direction-${e.direction}`]: !0
|
|
648
3066
|
}]),
|
|
649
|
-
onScrollPassive: t[0] || (t[0] = (...
|
|
3067
|
+
onScrollPassive: t[0] || (t[0] = (...s) => i.handleScroll && i.handleScroll(...s))
|
|
650
3068
|
},
|
|
651
3069
|
[
|
|
652
|
-
e.$slots.before ? (
|
|
3070
|
+
e.$slots.before ? (B(), ee(
|
|
653
3071
|
"div",
|
|
654
|
-
|
|
3072
|
+
Va,
|
|
655
3073
|
[
|
|
656
|
-
|
|
3074
|
+
K(e.$slots, "before")
|
|
657
3075
|
],
|
|
658
3076
|
512
|
|
659
3077
|
/* NEED_PATCH */
|
|
660
|
-
)) :
|
|
661
|
-
(
|
|
3078
|
+
)) : ce("v-if", !0),
|
|
3079
|
+
(B(), ne(fn(n.listTag), {
|
|
662
3080
|
ref: "wrapper",
|
|
663
|
-
style:
|
|
664
|
-
class:
|
|
3081
|
+
style: it({ [e.direction === "vertical" ? "minHeight" : "minWidth"]: r.totalSize + "px" }),
|
|
3082
|
+
class: Re(["vue-recycle-scroller__item-wrapper", n.listClass])
|
|
665
3083
|
}, {
|
|
666
|
-
default:
|
|
667
|
-
(
|
|
668
|
-
|
|
3084
|
+
default: J(() => [
|
|
3085
|
+
(B(!0), ee(
|
|
3086
|
+
qn,
|
|
669
3087
|
null,
|
|
670
|
-
|
|
671
|
-
key:
|
|
672
|
-
style:
|
|
673
|
-
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${
|
|
674
|
-
width:
|
|
675
|
-
height:
|
|
3088
|
+
Zn(r.pool, (s) => (B(), ne(fn(n.itemTag), Ie({
|
|
3089
|
+
key: s.nr.id,
|
|
3090
|
+
style: r.ready ? {
|
|
3091
|
+
transform: `translate${e.direction === "vertical" ? "Y" : "X"}(${s.position}px) translate${e.direction === "vertical" ? "X" : "Y"}(${s.offset}px)`,
|
|
3092
|
+
width: n.gridItems ? `${e.direction === "vertical" && n.itemSecondarySize || n.itemSize}px` : void 0,
|
|
3093
|
+
height: n.gridItems ? `${e.direction === "horizontal" && n.itemSecondarySize || n.itemSize}px` : void 0
|
|
676
3094
|
} : null,
|
|
677
3095
|
class: ["vue-recycle-scroller__item-view", [
|
|
678
|
-
|
|
3096
|
+
n.itemClass,
|
|
679
3097
|
{
|
|
680
|
-
hover: !
|
|
3098
|
+
hover: !n.skipHover && r.hoverKey === s.nr.key
|
|
681
3099
|
}
|
|
682
3100
|
]]
|
|
683
|
-
},
|
|
3101
|
+
}, er(n.skipHover ? {} : {
|
|
684
3102
|
mouseenter: () => {
|
|
685
|
-
|
|
3103
|
+
r.hoverKey = s.nr.key;
|
|
686
3104
|
},
|
|
687
3105
|
mouseleave: () => {
|
|
688
|
-
|
|
3106
|
+
r.hoverKey = null;
|
|
689
3107
|
}
|
|
690
3108
|
})), {
|
|
691
|
-
default:
|
|
692
|
-
|
|
693
|
-
item:
|
|
694
|
-
index:
|
|
695
|
-
active:
|
|
3109
|
+
default: J(() => [
|
|
3110
|
+
K(e.$slots, "default", {
|
|
3111
|
+
item: s.item,
|
|
3112
|
+
index: s.nr.index,
|
|
3113
|
+
active: s.nr.used
|
|
696
3114
|
})
|
|
697
3115
|
]),
|
|
698
3116
|
_: 2
|
|
@@ -701,31 +3119,31 @@ function wt(e, t, i, s, n, u) {
|
|
|
701
3119
|
128
|
|
702
3120
|
/* KEYED_FRAGMENT */
|
|
703
3121
|
)),
|
|
704
|
-
|
|
3122
|
+
K(e.$slots, "empty")
|
|
705
3123
|
]),
|
|
706
3124
|
_: 3
|
|
707
3125
|
/* FORWARDED */
|
|
708
3126
|
}, 8, ["style", "class"])),
|
|
709
|
-
e.$slots.after ? (
|
|
3127
|
+
e.$slots.after ? (B(), ee(
|
|
710
3128
|
"div",
|
|
711
|
-
|
|
3129
|
+
Ba,
|
|
712
3130
|
[
|
|
713
|
-
|
|
3131
|
+
K(e.$slots, "after")
|
|
714
3132
|
],
|
|
715
3133
|
512
|
|
716
3134
|
/* NEED_PATCH */
|
|
717
|
-
)) :
|
|
718
|
-
|
|
3135
|
+
)) : ce("v-if", !0),
|
|
3136
|
+
ye(a, { onNotify: i.handleResize }, null, 8, ["onNotify"])
|
|
719
3137
|
],
|
|
720
3138
|
34
|
|
721
3139
|
/* CLASS, HYDRATE_EVENTS */
|
|
722
3140
|
)), [
|
|
723
|
-
[
|
|
3141
|
+
[u, i.handleVisibilityChange]
|
|
724
3142
|
]);
|
|
725
3143
|
}
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
const
|
|
3144
|
+
en.render = Da;
|
|
3145
|
+
en.__file = "src/components/RecycleScroller.vue";
|
|
3146
|
+
const ja = ["onClick"], Ha = { style: { display: "inline-block" } }, Ua = /* @__PURE__ */ H({
|
|
729
3147
|
__name: "index",
|
|
730
3148
|
props: {
|
|
731
3149
|
modelValue: { default: "" },
|
|
@@ -749,233 +3167,233 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
|
|
|
749
3167
|
},
|
|
750
3168
|
emits: ["update:modelValue", "input", "change", "node-click", "update:path"],
|
|
751
3169
|
setup(e, { emit: t }) {
|
|
752
|
-
const
|
|
753
|
-
|
|
754
|
-
() =>
|
|
755
|
-
(
|
|
756
|
-
|
|
3170
|
+
const n = t, o = e, r = P(() => o.nodeKey || o.fieldNames.label), i = N("");
|
|
3171
|
+
j(
|
|
3172
|
+
() => o.path,
|
|
3173
|
+
(w) => {
|
|
3174
|
+
w && w !== i.value && (i.value = w);
|
|
757
3175
|
},
|
|
758
3176
|
{ immediate: !0 }
|
|
759
3177
|
);
|
|
760
|
-
const
|
|
761
|
-
function
|
|
762
|
-
|
|
3178
|
+
const a = N(null);
|
|
3179
|
+
function u() {
|
|
3180
|
+
_.value = !1;
|
|
763
3181
|
}
|
|
764
|
-
function
|
|
3182
|
+
function s() {
|
|
765
3183
|
document.documentElement.click();
|
|
766
3184
|
}
|
|
767
|
-
|
|
768
|
-
document.addEventListener("click",
|
|
769
|
-
}),
|
|
770
|
-
document.removeEventListener("click",
|
|
3185
|
+
me(() => {
|
|
3186
|
+
document.addEventListener("click", u);
|
|
3187
|
+
}), tr(() => {
|
|
3188
|
+
document.removeEventListener("click", u);
|
|
771
3189
|
});
|
|
772
|
-
const
|
|
773
|
-
var
|
|
774
|
-
return ((
|
|
775
|
-
}),
|
|
776
|
-
var
|
|
777
|
-
return ((
|
|
778
|
-
}),
|
|
779
|
-
if (
|
|
780
|
-
if (
|
|
781
|
-
|
|
3190
|
+
const l = P(() => {
|
|
3191
|
+
var w;
|
|
3192
|
+
return ((w = o == null ? void 0 : o.treeOptions) == null ? void 0 : w.load) ?? void 0;
|
|
3193
|
+
}), p = P(() => {
|
|
3194
|
+
var w;
|
|
3195
|
+
return ((w = o == null ? void 0 : o.treeOptions) == null ? void 0 : w.lazy) ?? l.value;
|
|
3196
|
+
}), h = async (w) => {
|
|
3197
|
+
if (n("update:path", w.path || ""), o.mode === "tree") {
|
|
3198
|
+
if (p.value) {
|
|
3199
|
+
o.showFullPath ? c.value = w.pathName || "" : c.value = w.name || "";
|
|
782
3200
|
return;
|
|
783
3201
|
}
|
|
784
|
-
let
|
|
785
|
-
if (
|
|
786
|
-
for (;
|
|
787
|
-
|
|
788
|
-
|
|
3202
|
+
let A = E.value.treeRef.getNode(w), W = [A.data[o.fieldNames.label] || ""];
|
|
3203
|
+
if (o.showFullPath)
|
|
3204
|
+
for (; A.parent && A.parent.data[o.fieldNames.label]; )
|
|
3205
|
+
A = A.parent, W.unshift(A.data[o.fieldNames.label]);
|
|
3206
|
+
c.value = W.join("/");
|
|
789
3207
|
} else {
|
|
790
|
-
let
|
|
791
|
-
|
|
3208
|
+
let A = w[o.fieldNames.label] || "";
|
|
3209
|
+
c.value = A;
|
|
792
3210
|
}
|
|
793
|
-
},
|
|
794
|
-
|
|
795
|
-
},
|
|
796
|
-
|
|
797
|
-
() =>
|
|
798
|
-
(
|
|
799
|
-
|
|
3211
|
+
}, y = (w) => {
|
|
3212
|
+
h(w), s(), n("node-click", w), n("update:modelValue", c.value), n("change", c.value);
|
|
3213
|
+
}, g = N(""), m = N(null), f = yt(o, "size"), d = yt(o, "isView");
|
|
3214
|
+
j(
|
|
3215
|
+
() => o.isView,
|
|
3216
|
+
(w) => {
|
|
3217
|
+
w && s();
|
|
800
3218
|
}
|
|
801
3219
|
);
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
var
|
|
806
|
-
(
|
|
3220
|
+
const c = yt(o, "modelValue"), E = N(null), I = (w) => {
|
|
3221
|
+
z.value = O(), D().then((A) => {
|
|
3222
|
+
T(A), He(() => {
|
|
3223
|
+
var W, L, q;
|
|
3224
|
+
(q = (L = (W = m.value) == null ? void 0 : W.popperRef) == null ? void 0 : L.popperInstanceRef) == null || q.forceUpdate();
|
|
807
3225
|
});
|
|
808
|
-
}),
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
|
|
3226
|
+
}), n("update:modelValue", w), n("input", w);
|
|
3227
|
+
}, b = (w) => {
|
|
3228
|
+
n("change", w);
|
|
3229
|
+
}, C = () => {
|
|
3230
|
+
g.value = "", z.value = O(), setTimeout(() => {
|
|
3231
|
+
_.value = !0;
|
|
814
3232
|
});
|
|
815
|
-
},
|
|
816
|
-
if (
|
|
817
|
-
let
|
|
818
|
-
|
|
3233
|
+
}, x = () => {
|
|
3234
|
+
if (o.showFullPath) {
|
|
3235
|
+
let w = c.value.split("/");
|
|
3236
|
+
g.value = w[w.length - 1] || "";
|
|
819
3237
|
} else
|
|
820
|
-
|
|
821
|
-
},
|
|
822
|
-
|
|
823
|
-
},
|
|
824
|
-
|
|
825
|
-
|
|
3238
|
+
g.value = c.value || "";
|
|
3239
|
+
}, T = (w) => {
|
|
3240
|
+
w.length > 0 ? (_.value = !d.value && !0, k.value = w) : _.value = !1;
|
|
3241
|
+
}, _ = N(!1), z = N(!1), O = () => c.value.length > 0, F = () => {
|
|
3242
|
+
z.value = O(), s(), _e(), D().then((w) => {
|
|
3243
|
+
T(w);
|
|
826
3244
|
});
|
|
827
|
-
},
|
|
828
|
-
|
|
829
|
-
},
|
|
830
|
-
let
|
|
831
|
-
switch (
|
|
3245
|
+
}, $ = async (w) => {
|
|
3246
|
+
w.disabled || (h(w), s(), n("node-click", w), n("update:modelValue", c.value), n("change", c.value));
|
|
3247
|
+
}, R = (w) => {
|
|
3248
|
+
let A = 0;
|
|
3249
|
+
switch (w) {
|
|
832
3250
|
case "table":
|
|
833
|
-
|
|
3251
|
+
A = 132;
|
|
834
3252
|
break;
|
|
835
3253
|
default:
|
|
836
|
-
|
|
3254
|
+
A = 230;
|
|
837
3255
|
}
|
|
838
|
-
return
|
|
839
|
-
},
|
|
840
|
-
if (!
|
|
841
|
-
let
|
|
842
|
-
for (let
|
|
843
|
-
|
|
844
|
-
return
|
|
845
|
-
},
|
|
846
|
-
|
|
847
|
-
let
|
|
848
|
-
if (!
|
|
849
|
-
|
|
850
|
-
else if (!
|
|
851
|
-
|
|
3256
|
+
return A;
|
|
3257
|
+
}, V = (w, A) => {
|
|
3258
|
+
if (!A) return w;
|
|
3259
|
+
let W = [];
|
|
3260
|
+
for (let L = 0; L < w.length; L++)
|
|
3261
|
+
w[L][o.fieldNames.label].includes(A) && W.push(w[L]), w[L][o.fieldNames.children] && w[L][o.fieldNames.children].length > 0 && W.push(...V(w[L][o.fieldNames.children], A));
|
|
3262
|
+
return W;
|
|
3263
|
+
}, D = async () => {
|
|
3264
|
+
x();
|
|
3265
|
+
let w = [];
|
|
3266
|
+
if (!p.value)
|
|
3267
|
+
w = V(o.options, g.value);
|
|
3268
|
+
else if (!c.value)
|
|
3269
|
+
w = V([""], null);
|
|
852
3270
|
else {
|
|
853
|
-
let
|
|
854
|
-
|
|
3271
|
+
let A = await o.treeOptions.search(g.value);
|
|
3272
|
+
w = V(A, g.value);
|
|
855
3273
|
}
|
|
856
|
-
return
|
|
857
|
-
},
|
|
858
|
-
var
|
|
859
|
-
if (
|
|
860
|
-
const
|
|
861
|
-
return
|
|
3274
|
+
return w;
|
|
3275
|
+
}, k = N([]), S = P(() => {
|
|
3276
|
+
var w;
|
|
3277
|
+
if (o.width) {
|
|
3278
|
+
const A = (w = o.width) == null ? void 0 : w.toString();
|
|
3279
|
+
return A.includes("%") || A.includes("px") ? A : A + "px";
|
|
862
3280
|
}
|
|
863
|
-
return
|
|
864
|
-
}),
|
|
865
|
-
var
|
|
866
|
-
const
|
|
867
|
-
|
|
3281
|
+
return R(o.size);
|
|
3282
|
+
}), U = N(), Q = N(""), _e = () => {
|
|
3283
|
+
var A;
|
|
3284
|
+
const w = (A = U.value) == null ? void 0 : A.offsetWidth;
|
|
3285
|
+
Q.value = w ? w + "px" : S.value;
|
|
868
3286
|
};
|
|
869
|
-
return
|
|
870
|
-
() =>
|
|
3287
|
+
return j(
|
|
3288
|
+
() => o.options,
|
|
871
3289
|
() => {
|
|
872
|
-
|
|
873
|
-
|
|
3290
|
+
D().then((w) => {
|
|
3291
|
+
k.value = w;
|
|
874
3292
|
});
|
|
875
3293
|
}
|
|
876
|
-
), (
|
|
877
|
-
const
|
|
878
|
-
return
|
|
3294
|
+
), (w, A) => {
|
|
3295
|
+
const W = ma;
|
|
3296
|
+
return B(), ee("div", {
|
|
879
3297
|
class: "autocomplete-page",
|
|
880
3298
|
ref_key: "$completeEL",
|
|
881
|
-
ref:
|
|
882
|
-
style:
|
|
3299
|
+
ref: U,
|
|
3300
|
+
style: it(`width:${S.value}`)
|
|
883
3301
|
}, [
|
|
884
|
-
|
|
3302
|
+
ye(W, {
|
|
885
3303
|
ref_key: "domPopover",
|
|
886
|
-
ref:
|
|
887
|
-
visible:
|
|
888
|
-
placement:
|
|
889
|
-
width:
|
|
3304
|
+
ref: m,
|
|
3305
|
+
visible: _.value,
|
|
3306
|
+
placement: w.placement,
|
|
3307
|
+
width: Q.value,
|
|
890
3308
|
"popper-class": "autocomplete-popover",
|
|
891
3309
|
"show-arrow": !1,
|
|
892
|
-
offset:
|
|
893
|
-
"popper-options":
|
|
3310
|
+
offset: w.offset,
|
|
3311
|
+
"popper-options": w.popperOptions
|
|
894
3312
|
}, {
|
|
895
|
-
reference:
|
|
896
|
-
|
|
3313
|
+
reference: J(() => [
|
|
3314
|
+
dn("div", {
|
|
897
3315
|
class: "slot-component-box",
|
|
898
|
-
onClick:
|
|
3316
|
+
onClick: pn(F, ["stop"])
|
|
899
3317
|
}, [
|
|
900
|
-
|
|
3318
|
+
ye(v(ir), Ie({
|
|
901
3319
|
ref_key: "inputRef",
|
|
902
|
-
ref:
|
|
903
|
-
modelValue:
|
|
904
|
-
"onUpdate:modelValue":
|
|
3320
|
+
ref: a,
|
|
3321
|
+
modelValue: v(c),
|
|
3322
|
+
"onUpdate:modelValue": A[3] || (A[3] = (L) => nr(c) ? c.value = L : null),
|
|
905
3323
|
modelModifiers: { trim: !0 },
|
|
906
|
-
size:
|
|
907
|
-
width:
|
|
908
|
-
isView:
|
|
909
|
-
},
|
|
910
|
-
onClear:
|
|
911
|
-
onInput:
|
|
912
|
-
onChange:
|
|
913
|
-
}),
|
|
914
|
-
|
|
915
|
-
name:
|
|
916
|
-
fn:
|
|
917
|
-
|
|
3324
|
+
size: v(f),
|
|
3325
|
+
width: S.value,
|
|
3326
|
+
isView: v(d)
|
|
3327
|
+
}, w.$attrs, {
|
|
3328
|
+
onClear: C,
|
|
3329
|
+
onInput: I,
|
|
3330
|
+
onChange: b
|
|
3331
|
+
}), or({ _: 2 }, [
|
|
3332
|
+
Zn(w.$slots, (L, q, Ce) => ({
|
|
3333
|
+
name: q,
|
|
3334
|
+
fn: J(() => [
|
|
3335
|
+
K(w.$slots, q, {}, void 0, !0)
|
|
918
3336
|
])
|
|
919
3337
|
}))
|
|
920
3338
|
]), 1040, ["modelValue", "size", "width", "isView"])
|
|
921
3339
|
])
|
|
922
3340
|
]),
|
|
923
|
-
default:
|
|
924
|
-
|
|
3341
|
+
default: J(() => [
|
|
3342
|
+
Oe((B(), ee("div", {
|
|
925
3343
|
class: "autocomplete-select-box",
|
|
926
|
-
style:
|
|
927
|
-
onClick:
|
|
3344
|
+
style: it(`max-height: ${32 * w.maxCount}px;`),
|
|
3345
|
+
onClick: A[2] || (A[2] = pn(() => {
|
|
928
3346
|
}, ["stop"]))
|
|
929
3347
|
}, [
|
|
930
|
-
|
|
931
|
-
key:
|
|
932
|
-
items:
|
|
3348
|
+
Oe((B(), ne(v(en), {
|
|
3349
|
+
key: k.value.length,
|
|
3350
|
+
items: k.value,
|
|
933
3351
|
"item-size": 32,
|
|
934
|
-
"key-field":
|
|
3352
|
+
"key-field": w.fieldNames.value || w.fieldNames.label,
|
|
935
3353
|
class: "virtual-list"
|
|
936
3354
|
}, {
|
|
937
|
-
default:
|
|
938
|
-
|
|
939
|
-
onClick: (
|
|
940
|
-
class:
|
|
3355
|
+
default: J(({ item: L, index: q }) => [
|
|
3356
|
+
dn("div", {
|
|
3357
|
+
onClick: (Ce) => $(L),
|
|
3358
|
+
class: Re([
|
|
941
3359
|
"select-label",
|
|
942
|
-
{ "current-select-label":
|
|
943
|
-
{ "is-disabled":
|
|
3360
|
+
{ "current-select-label": L[w.fieldNames.label] === g.value },
|
|
3361
|
+
{ "is-disabled": L.disabled }
|
|
944
3362
|
])
|
|
945
3363
|
}, [
|
|
946
|
-
|
|
947
|
-
|
|
3364
|
+
Oe((B(), ee("span", Ha, [
|
|
3365
|
+
Jn(st(L[w.fieldNames.label]), 1)
|
|
948
3366
|
])), [
|
|
949
|
-
[
|
|
3367
|
+
[v(sr)]
|
|
950
3368
|
])
|
|
951
|
-
], 10,
|
|
3369
|
+
], 10, ja)
|
|
952
3370
|
]),
|
|
953
3371
|
_: 1
|
|
954
3372
|
}, 8, ["items", "key-field"])), [
|
|
955
|
-
[
|
|
3373
|
+
[_t, o.mode === "list" || z.value]
|
|
956
3374
|
]),
|
|
957
|
-
|
|
3375
|
+
o.mode === "tree" ? Oe((B(), ne(v(lr), Ie({
|
|
958
3376
|
key: 0,
|
|
959
3377
|
width: "120px",
|
|
960
3378
|
filterMode: "input",
|
|
961
|
-
"node-key":
|
|
3379
|
+
"node-key": r.value,
|
|
962
3380
|
ref_key: "treeRef",
|
|
963
|
-
ref:
|
|
3381
|
+
ref: E,
|
|
964
3382
|
"is-ellipsis": "",
|
|
965
|
-
data:
|
|
3383
|
+
data: o.options,
|
|
966
3384
|
showFilterInput: !1
|
|
967
|
-
},
|
|
968
|
-
props: { ...
|
|
969
|
-
modelValue:
|
|
970
|
-
"onUpdate:modelValue":
|
|
971
|
-
path:
|
|
972
|
-
"onUpdate:path":
|
|
973
|
-
onNodeClick:
|
|
3385
|
+
}, w.treeOptions, {
|
|
3386
|
+
props: { ...w.fieldNames },
|
|
3387
|
+
modelValue: g.value,
|
|
3388
|
+
"onUpdate:modelValue": A[0] || (A[0] = (L) => g.value = L),
|
|
3389
|
+
path: i.value,
|
|
3390
|
+
"onUpdate:path": A[1] || (A[1] = (L) => i.value = L),
|
|
3391
|
+
onNodeClick: y
|
|
974
3392
|
}), null, 16, ["node-key", "data", "props", "modelValue", "path"])), [
|
|
975
|
-
[
|
|
976
|
-
]) :
|
|
3393
|
+
[_t, !z.value]
|
|
3394
|
+
]) : ce("", !0)
|
|
977
3395
|
], 4)), [
|
|
978
|
-
[
|
|
3396
|
+
[v(ar)]
|
|
979
3397
|
])
|
|
980
3398
|
]),
|
|
981
3399
|
_: 3
|
|
@@ -983,14 +3401,14 @@ const St = ["onClick"], zt = { style: { display: "inline-block" } }, _t = /* @__
|
|
|
983
3401
|
], 4);
|
|
984
3402
|
};
|
|
985
3403
|
}
|
|
986
|
-
}),
|
|
987
|
-
const
|
|
988
|
-
for (const [
|
|
989
|
-
|
|
990
|
-
return
|
|
991
|
-
},
|
|
3404
|
+
}), Ka = (e, t) => {
|
|
3405
|
+
const n = e.__vccOpts || e;
|
|
3406
|
+
for (const [o, r] of t)
|
|
3407
|
+
n[o] = r;
|
|
3408
|
+
return n;
|
|
3409
|
+
}, Wa = /* @__PURE__ */ Ka(Ua, [["__scopeId", "data-v-c2a15510"]]), rl = () => N(null), il = rr(Wa);
|
|
992
3410
|
export {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
3411
|
+
il as DasAutocomplete,
|
|
3412
|
+
rl as DasAutocompleteRef,
|
|
3413
|
+
il as default
|
|
996
3414
|
};
|