@dazhicheng/ui 1.6.41 → 1.6.43
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/dist/assets/svg/download.svg.js +1 -1
- package/dist/components/tt-api-component/index.vue2.js +73 -73
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-button/index.d.ts +91 -105
- package/dist/components/tt-button/index.vue.d.ts +52 -60
- package/dist/components/tt-button/index.vue2.js +1 -1
- package/dist/components/tt-drawer/index.d.ts +352 -326
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +196 -184
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-empty/index.d.ts +4 -4
- package/dist/components/tt-empty/index.js +1 -1
- package/dist/components/tt-form/index.js +1 -1
- package/dist/components/tt-form/src/components/FormActions.vue2.js +1 -1
- package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +106 -110
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +12 -12
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +164 -164
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +34 -34
- package/dist/components/tt-form/src/form-render/expandable.js +20 -25
- package/dist/components/tt-form/src/form-render/form.vue2.js +1 -1
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +1 -1
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +124 -124
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +99 -99
- package/dist/components/tt-form/src/index.vue.d.ts +8 -12
- package/dist/components/tt-form/src/index.vue2.js +1 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +30 -126
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +15 -63
- package/dist/components/tt-icon/components/AddIcon.vue.js +6 -6
- package/dist/components/tt-icon/components/SubIcon.vue.js +6 -6
- package/dist/components/tt-icon/index.d.ts +4 -4
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-icon/index.vue2.js +28 -28
- package/dist/components/tt-image/index.d.ts +29 -29
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
- package/dist/components/tt-image/tt-image.d.ts +29 -29
- package/dist/components/tt-input-textarea/index.vue.d.ts +424 -440
- package/dist/components/tt-input-textarea/index.vue.js +153 -153
- package/dist/components/tt-keep-alive/core/Suspense.d.ts +3 -0
- package/dist/components/tt-keep-alive/core/Suspense.js +10 -0
- package/dist/components/tt-keep-alive/core/apiAsyncComponent.d.ts +2 -0
- package/dist/components/tt-keep-alive/core/apiAsyncComponent.js +6 -0
- package/dist/components/tt-keep-alive/core/component.d.ts +2 -0
- package/dist/components/tt-keep-alive/core/component.js +7 -0
- package/dist/components/tt-keep-alive/core/componentPublicInstance.d.ts +5 -0
- package/dist/components/tt-keep-alive/core/devtools.d.ts +2 -0
- package/dist/components/tt-keep-alive/core/errorHandling.d.ts +17 -0
- package/dist/components/tt-keep-alive/core/errorHandling.js +4 -0
- package/dist/components/tt-keep-alive/core/renderer.d.ts +32 -0
- package/dist/components/tt-keep-alive/core/renderer.js +8 -0
- package/dist/components/tt-keep-alive/core/shapeFlags.d.ts +13 -0
- package/dist/components/tt-keep-alive/core/vnode.d.ts +6 -0
- package/dist/components/tt-keep-alive/core/vnode.js +8 -0
- package/dist/components/tt-keep-alive/index.d.ts +26 -0
- package/dist/components/tt-keep-alive/index.js +139 -0
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue2.js +22 -22
- package/dist/components/tt-log/index.vue.js +1 -1
- package/dist/components/tt-modal/index.d.ts +182 -162
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +54 -54
- package/dist/components/tt-modal/src/RenderModal.vue.js +236 -228
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +1 -1
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +26 -22
- package/dist/components/tt-modal/src/utils/resolve-modal-target.js +57 -53
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +123 -123
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +24 -24
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +63 -67
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +145 -145
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +10 -12
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +48 -48
- package/dist/components/tt-panel-select/src/index.vue.d.ts +63 -67
- package/dist/components/tt-panel-select/src/index.vue.js +137 -137
- package/dist/components/tt-radio-group/index.vue.js +1 -1
- package/dist/components/tt-select/src/Select.vue.d.ts +8 -12
- package/dist/components/tt-select/src/Select.vue.js +1 -1
- package/dist/components/tt-select/src/components/SelectTable.vue.js +1 -1
- package/dist/components/tt-select/src/components/Table.vue.js +1 -1
- package/dist/components/tt-table/index.d.ts +20 -24
- package/dist/components/tt-table/index.js +1 -1
- package/dist/components/tt-table/src/Table.vue.d.ts +40 -48
- package/dist/components/tt-table/src/Table.vue.js +1 -1
- package/dist/components/tt-table/src/TableForm.vue.d.ts +8 -12
- package/dist/components/tt-table/src/TableForm.vue.js +1 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +1 -1
- package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +40 -48
- package/dist/components/tt-text/index.vue2.js +22 -22
- package/dist/components/tt-upload/index.d.ts +60 -60
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
- package/dist/components/tt-upload/src/TtUpload.vue.js +1 -1
- package/dist/components/tt-upload/src/typing.d.ts +17 -17
- package/dist/hooks/useScreenshotOss.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +80 -78
- package/dist/node_modules/.pnpm/@vue_shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js +17 -0
- package/dist/packages/hooks/src/propTypes.js +1 -1
- package/dist/plugins/vxeTable/switchStatus.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
- /package/dist/node_modules/.pnpm/{vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_ → vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_}/node_modules/vue-types/shim/index.modern.js +0 -0
|
@@ -7,21 +7,21 @@ export declare function setDefaultModalProps(props: Partial<ModalProps>): void;
|
|
|
7
7
|
export declare function useModalRender<TParentModalProps extends ModalProps = ModalProps>(options?: ModalApiOptions, MODAL_KEY?: symbol): readonly [import('vue').DefineSetupFnComponent<TParentModalProps, {}, {}, TParentModalProps & {}, import('vue').PublicProps>, TtModalExtendedModalApi] | readonly [import('vue').DefineSetupFnComponent<ModalProps, {}, {}, Partial<{
|
|
8
8
|
title: any;
|
|
9
9
|
visible: boolean;
|
|
10
|
-
appendTo: import('element-plus/es/utils/
|
|
11
|
-
transition: import('element-plus/es/utils/
|
|
10
|
+
appendTo: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | null)[], unknown, unknown>;
|
|
11
|
+
transition: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | null)[], unknown, unknown>;
|
|
12
12
|
size: "small" | "medium" | "mini";
|
|
13
13
|
center: boolean;
|
|
14
14
|
height: any;
|
|
15
15
|
draggable: boolean;
|
|
16
|
-
showClose: import('element-plus/es/utils/
|
|
16
|
+
showClose: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
17
17
|
loading: boolean;
|
|
18
18
|
modelValue: boolean;
|
|
19
|
-
closeOnPressEscape: import('element-plus/es/utils/
|
|
19
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
20
20
|
scrollTop: boolean;
|
|
21
21
|
minHeight: any;
|
|
22
22
|
showFooter: boolean;
|
|
23
23
|
fullscreen: boolean;
|
|
24
|
-
overflow: import('element-plus/es/utils/
|
|
24
|
+
overflow: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
25
25
|
testId: any;
|
|
26
26
|
modal: boolean;
|
|
27
27
|
cancelText: string;
|
|
@@ -38,28 +38,32 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
38
38
|
isBottom: boolean;
|
|
39
39
|
appendToBody: boolean;
|
|
40
40
|
destroyOnClose: boolean;
|
|
41
|
-
closeOnClickModal: import('element-plus/es/utils/
|
|
42
|
-
lockScroll: import('element-plus/es/utils/
|
|
41
|
+
closeOnClickModal: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
42
|
+
lockScroll: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
43
43
|
modalPenetrable: boolean;
|
|
44
44
|
openDelay: number;
|
|
45
45
|
closeDelay: number;
|
|
46
|
+
modalClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
46
47
|
trapFocus: boolean;
|
|
47
48
|
headerAriaLevel: string;
|
|
48
|
-
alignCenter: import('element-plus/es/utils/
|
|
49
|
+
alignCenter: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
50
|
+
headerClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
51
|
+
bodyClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
52
|
+
footerClass: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
49
53
|
ariaLevel: string;
|
|
50
54
|
modalApi: TtModalExtendedModalApi;
|
|
51
55
|
}> & Omit<{
|
|
52
56
|
readonly title: any;
|
|
53
57
|
readonly visible: boolean;
|
|
54
|
-
readonly appendTo: import('element-plus/es/utils/
|
|
58
|
+
readonly appendTo: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | null)[], unknown, unknown>;
|
|
55
59
|
readonly size: "small" | "medium" | "mini";
|
|
56
60
|
readonly center: boolean;
|
|
57
61
|
readonly height: any;
|
|
58
62
|
readonly draggable: boolean;
|
|
59
|
-
readonly showClose: import('element-plus/es/utils/
|
|
63
|
+
readonly showClose: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
60
64
|
readonly loading: boolean;
|
|
61
65
|
readonly modelValue: boolean;
|
|
62
|
-
readonly closeOnPressEscape: import('element-plus/es/utils/
|
|
66
|
+
readonly closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
63
67
|
readonly scrollTop: boolean;
|
|
64
68
|
readonly minHeight: any;
|
|
65
69
|
readonly showFooter: boolean;
|
|
@@ -80,8 +84,8 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
80
84
|
readonly isBottom: boolean;
|
|
81
85
|
readonly appendToBody: boolean;
|
|
82
86
|
readonly destroyOnClose: boolean;
|
|
83
|
-
readonly closeOnClickModal: import('element-plus/es/utils/
|
|
84
|
-
readonly lockScroll: import('element-plus/es/utils/
|
|
87
|
+
readonly closeOnClickModal: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
|
+
readonly lockScroll: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
85
89
|
readonly modalPenetrable: boolean;
|
|
86
90
|
readonly openDelay: number;
|
|
87
91
|
readonly closeDelay: number;
|
|
@@ -90,21 +94,21 @@ export declare function useModalRender<TParentModalProps extends ModalProps = Mo
|
|
|
90
94
|
readonly ariaLevel: string;
|
|
91
95
|
readonly top?: string | undefined;
|
|
92
96
|
readonly zIndex?: number | undefined;
|
|
93
|
-
readonly transition?: import('element-plus/es/utils/
|
|
97
|
+
readonly transition?: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | ((new (...args: any[]) => string | import('vue').TransitionProps) | (() => import('element-plus').DialogTransition) | null)[], unknown, unknown> | undefined;
|
|
94
98
|
readonly width?: string | number | undefined;
|
|
95
|
-
readonly closeIcon?: import('element-plus/es/utils/
|
|
99
|
+
readonly closeIcon?: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | null)[], unknown, unknown> | undefined;
|
|
96
100
|
readonly beforeClose?: import('element-plus').DialogBeforeCloseFn | undefined;
|
|
97
|
-
readonly overflow?: import('element-plus/es/utils/
|
|
101
|
+
readonly overflow?: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
98
102
|
readonly closeFunc?: (() => Promise<boolean>) | undefined;
|
|
99
103
|
readonly loadingTip?: string | undefined;
|
|
100
|
-
readonly modalClass?:
|
|
101
|
-
readonly alignCenter?: import('element-plus/es/utils/
|
|
102
|
-
readonly headerClass?:
|
|
103
|
-
readonly bodyClass?:
|
|
104
|
-
readonly footerClass?:
|
|
104
|
+
readonly modalClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
105
|
+
readonly alignCenter?: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
106
|
+
readonly headerClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
107
|
+
readonly bodyClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
108
|
+
readonly footerClass?: import('element-plus/es/utils/typescript.mjs').ClassValue;
|
|
105
109
|
readonly modalApi?: TtModalExtendedModalApi | undefined;
|
|
106
110
|
readonly "onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
107
111
|
readonly "onVisible-change"?: ((args_0: boolean) => any) | undefined;
|
|
108
112
|
readonly onRegister?: ((args_0: import('../typing').ModalMethods, args_1: string) => any) | undefined;
|
|
109
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "visible" | "appendTo" | "transition" | "size" | "center" | "height" | "draggable" | "showClose" | "loading" | "modelValue" | "closeOnPressEscape" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "overflow" | "testId" | "modal" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom" | "appendToBody" | "destroyOnClose" | "closeOnClickModal" | "lockScroll" | "modalPenetrable" | "openDelay" | "closeDelay" | "trapFocus" | "headerAriaLevel" | "alignCenter" | "ariaLevel" | "modalApi"> & Partial<import('element-plus').DialogProps> & {}, import('vue').PublicProps>, TtModalExtendedModalApi];
|
|
113
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "visible" | "appendTo" | "transition" | "size" | "center" | "height" | "draggable" | "showClose" | "loading" | "modelValue" | "closeOnPressEscape" | "scrollTop" | "minHeight" | "showFooter" | "fullscreen" | "overflow" | "testId" | "modal" | "cancelText" | "okText" | "resizer" | "showCancelBtn" | "showOkBtn" | "confirmLoading" | "cancelLoading" | "okButtonProps" | "cancelButtonProps" | "isBottom" | "appendToBody" | "destroyOnClose" | "closeOnClickModal" | "lockScroll" | "modalPenetrable" | "openDelay" | "closeDelay" | "modalClass" | "trapFocus" | "headerAriaLevel" | "alignCenter" | "headerClass" | "bodyClass" | "footerClass" | "ariaLevel" | "modalApi"> & Partial<import('element-plus').DialogProps> & {}, import('vue').PublicProps>, TtModalExtendedModalApi];
|
|
110
114
|
export declare function showTtModal<T extends Component>(app: App, component: T, options: ModalApiOptions): TtModalExtendedModalApi;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { getClientDocument as
|
|
2
|
-
import { getOpenModalUids as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
1
|
+
import { getClientDocument as b, isSameMicroAppScope as C, resolveScanDocument as A } from "./modal-scope.js";
|
|
2
|
+
import { getOpenModalUids as E } from "./modal-stack.js";
|
|
3
|
+
const M = 48, y = 8, a = "tt-modal-overlay--contained", O = "tt-modal-overlay";
|
|
4
|
+
function m(t) {
|
|
5
|
+
return `.${O}.tt-id-${t}`;
|
|
6
|
+
}
|
|
7
|
+
const f = "tt-modal-overlay-contained-style-v2";
|
|
8
|
+
function w(t = document) {
|
|
5
9
|
var r;
|
|
6
10
|
if (typeof t > "u") return;
|
|
7
11
|
const o = `
|
|
@@ -42,37 +46,37 @@ function M(t = document) {
|
|
|
42
46
|
overflow: auto !important;
|
|
43
47
|
}
|
|
44
48
|
`.trim();
|
|
45
|
-
let e = t.getElementById(
|
|
49
|
+
let e = t.getElementById(f);
|
|
46
50
|
if (e) {
|
|
47
51
|
e.textContent = o;
|
|
48
52
|
return;
|
|
49
53
|
}
|
|
50
|
-
(r = t.getElementById("tt-modal-overlay-contained-style")) == null || r.remove(), e = t.createElement("style"), e.id =
|
|
54
|
+
(r = t.getElementById("tt-modal-overlay-contained-style")) == null || r.remove(), e = t.createElement("style"), e.id = f, e.textContent = o;
|
|
51
55
|
const n = t.head || t.documentElement;
|
|
52
56
|
n == null || n.appendChild(e);
|
|
53
57
|
}
|
|
54
|
-
function
|
|
58
|
+
function v(t) {
|
|
55
59
|
t.style.setProperty("position", "absolute", "important"), t.style.setProperty("top", "0", "important"), t.style.setProperty("right", "0", "important"), t.style.setProperty("bottom", "0", "important"), t.style.setProperty("left", "0", "important"), t.style.setProperty("height", "100%", "important");
|
|
56
60
|
}
|
|
57
|
-
function
|
|
61
|
+
function g(t) {
|
|
58
62
|
["position", "top", "right", "bottom", "left", "height"].forEach((o) => t.style.removeProperty(o));
|
|
59
63
|
}
|
|
60
|
-
function
|
|
61
|
-
const e = o.querySelector(
|
|
64
|
+
function I(t, o = document) {
|
|
65
|
+
const e = o.querySelector(m(t));
|
|
62
66
|
if (!e) return;
|
|
63
67
|
const n = e.querySelector(".el-overlay-dialog"), r = !!e.closest("micro-app-body");
|
|
64
68
|
if (!e.classList.contains(a) && !r) {
|
|
65
|
-
|
|
69
|
+
g(e), n && g(n);
|
|
66
70
|
return;
|
|
67
71
|
}
|
|
68
|
-
|
|
72
|
+
v(e), n && v(n);
|
|
69
73
|
}
|
|
70
|
-
function
|
|
71
|
-
const e = o.querySelector(
|
|
74
|
+
function h(t, o = document) {
|
|
75
|
+
const e = o.querySelector(m(t));
|
|
72
76
|
return e ? (e.dataset.ttModalSuspended = "1", e.style.setProperty("display", "none", "important"), !0) : !1;
|
|
73
77
|
}
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
78
|
+
function D(t, o = document, e = 3e3) {
|
|
79
|
+
if (h(t, o)) return () => {
|
|
76
80
|
};
|
|
77
81
|
const n = o.body || o.documentElement;
|
|
78
82
|
if (!n) return () => {
|
|
@@ -81,58 +85,58 @@ function B(t, o = document, e = 3e3) {
|
|
|
81
85
|
const i = () => {
|
|
82
86
|
r || (r = !0, s.disconnect(), clearTimeout(c));
|
|
83
87
|
}, s = new MutationObserver(() => {
|
|
84
|
-
|
|
88
|
+
h(t, o) && i();
|
|
85
89
|
});
|
|
86
90
|
s.observe(n, { childList: !0, subtree: !0 });
|
|
87
91
|
const c = window.setTimeout(i, e);
|
|
88
92
|
return i;
|
|
89
93
|
}
|
|
90
|
-
function
|
|
91
|
-
const e = o.querySelector(
|
|
92
|
-
!e || e.dataset.ttModalSuspended !== "1" || (delete e.dataset.ttModalSuspended, e.style.removeProperty("display"),
|
|
94
|
+
function H(t, o = document) {
|
|
95
|
+
const e = o.querySelector(m(t));
|
|
96
|
+
!e || e.dataset.ttModalSuspended !== "1" || (delete e.dataset.ttModalSuspended, e.style.removeProperty("display"), I(t, o));
|
|
93
97
|
}
|
|
94
|
-
function
|
|
98
|
+
function S(t) {
|
|
95
99
|
const o = t.style.zIndex || getComputedStyle(t).zIndex, e = Number.parseInt(o, 10);
|
|
96
100
|
return Number.isNaN(e) ? 0 : e;
|
|
97
101
|
}
|
|
98
|
-
function
|
|
99
|
-
const o = t ??
|
|
100
|
-
return o ? Array.from(
|
|
102
|
+
function P(t) {
|
|
103
|
+
const o = t ?? b();
|
|
104
|
+
return o ? Array.from(A(o).querySelectorAll(`.${O}`)).filter(
|
|
101
105
|
(e) => e.isConnected && e.dataset.ttModalSuspended !== "1" && e.style.display !== "none"
|
|
102
106
|
) : [];
|
|
103
107
|
}
|
|
104
|
-
function
|
|
105
|
-
const n =
|
|
108
|
+
function V(t, o, e) {
|
|
109
|
+
const n = b(), r = o ?? (n == null ? void 0 : n.body);
|
|
106
110
|
if (!n || !r) return null;
|
|
107
|
-
const i =
|
|
108
|
-
if (t != null && l.classList.contains(`tt-id-${t}`) || !i.some((
|
|
111
|
+
const i = E().map((l) => `tt-id-${l}`), s = P(n).filter((l) => {
|
|
112
|
+
if (t != null && l.classList.contains(`tt-id-${t}`) || !i.some((_) => l.classList.contains(_))) return !1;
|
|
109
113
|
const u = l.parentElement;
|
|
110
|
-
return !!u &&
|
|
114
|
+
return !!u && C(u, r);
|
|
111
115
|
});
|
|
112
|
-
return s.length === 0 ? null : s.reduce((l, u) =>
|
|
113
|
-
}
|
|
114
|
-
function P(t) {
|
|
115
|
-
return t.isConnected ? t.getClientRects().length > 0 : !1;
|
|
116
|
+
return s.length === 0 ? null : s.reduce((l, u) => S(u) >= S(l) ? u : l).parentElement;
|
|
116
117
|
}
|
|
117
118
|
function T(t) {
|
|
118
|
-
return t.isConnected ?
|
|
119
|
+
return t.isConnected ? t.getClientRects().length > 0 : !1;
|
|
119
120
|
}
|
|
120
121
|
function x(t) {
|
|
122
|
+
return t.isConnected ? (t.clientHeight || t.getBoundingClientRect().height) >= M : !1;
|
|
123
|
+
}
|
|
124
|
+
function N(t) {
|
|
121
125
|
const o = window.innerHeight || document.documentElement.clientHeight || 0;
|
|
122
126
|
if (o === 0) return !0;
|
|
123
127
|
const e = t.getBoundingClientRect();
|
|
124
|
-
return e.height > o +
|
|
128
|
+
return e.height > o + y ? !1 : e.top >= -y;
|
|
125
129
|
}
|
|
126
130
|
function p(t) {
|
|
127
131
|
return !!t.closest("micro-app-body");
|
|
128
132
|
}
|
|
129
133
|
function d(t, o = !0) {
|
|
130
|
-
return !t || !t.isConnected || o && !
|
|
134
|
+
return !t || !t.isConnected || o && !x(t) || o && !T(t) ? null : t;
|
|
131
135
|
}
|
|
132
|
-
function
|
|
136
|
+
function R(t) {
|
|
133
137
|
getComputedStyle(t).position === "static" && (t.style.position = "relative");
|
|
134
138
|
}
|
|
135
|
-
function
|
|
139
|
+
function $() {
|
|
136
140
|
const t = window.__MICRO_APP_NAME__;
|
|
137
141
|
if (t) {
|
|
138
142
|
const i = typeof CSS < "u" && CSS.escape ? CSS.escape(t) : t, s = document.querySelector(`micro-app[name="${i}"] micro-app-body #app`), c = d(s, !1);
|
|
@@ -151,7 +155,7 @@ function R() {
|
|
|
151
155
|
const n = document.body;
|
|
152
156
|
return n && (n.tagName === "MICRO-APP-BODY" || p(n)) ? n : document.querySelector("micro-app-body");
|
|
153
157
|
}
|
|
154
|
-
function
|
|
158
|
+
function L() {
|
|
155
159
|
const t = document.querySelector("#app-content");
|
|
156
160
|
if (t && !p(t)) {
|
|
157
161
|
const e = d(t, !0);
|
|
@@ -166,22 +170,22 @@ function $() {
|
|
|
166
170
|
}
|
|
167
171
|
return null;
|
|
168
172
|
}
|
|
169
|
-
function
|
|
173
|
+
function Y() {
|
|
170
174
|
if (typeof document > "u") return null;
|
|
171
|
-
|
|
172
|
-
const t = window.__MICRO_APP_ENVIRONMENT__ ?
|
|
173
|
-
return !t || !
|
|
175
|
+
w();
|
|
176
|
+
const t = window.__MICRO_APP_ENVIRONMENT__ ? $() : L();
|
|
177
|
+
return !t || !N(t) ? null : (R(t), t);
|
|
174
178
|
}
|
|
175
179
|
export {
|
|
176
|
-
|
|
180
|
+
O as MODAL_OVERLAY_CLASS,
|
|
177
181
|
a as MODAL_OVERLAY_CONTAINED_CLASS,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
I as applyContainedOverlayInline,
|
|
183
|
+
w as ensureContainedOverlayStyle,
|
|
184
|
+
V as findTopOpenModalOverlayHost,
|
|
185
|
+
P as getOpenModalOverlays,
|
|
186
|
+
S as readOverlayZIndex,
|
|
187
|
+
Y as resolveModalTarget,
|
|
188
|
+
H as resumeOverlayByUid,
|
|
189
|
+
h as suspendOverlayByUid,
|
|
190
|
+
D as watchOverlayThenSuspend
|
|
187
191
|
};
|