@gopowerteam/modal-render 0.0.45 → 0.0.47
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/cjs/components/modal-container.vue.d.ts +60 -60
- package/dist/cjs/components/modal-dialog.vue.d.ts +14 -14
- package/dist/cjs/components/modal-footer.vue.d.ts +4 -2
- package/dist/cjs/components/modal-header.vue.d.ts +4 -2
- package/dist/cjs/components/modal-loading.vue.d.ts +2 -2
- package/dist/cjs/components/modal-provider.vue.d.ts +8 -8
- package/dist/cjs/constants.d.ts +1 -1
- package/dist/cjs/hooks/use-modal.d.ts +3 -3
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +5 -5
- package/dist/cjs/interfaces.d.ts +1 -1
- package/dist/es/components/modal-container.vue.d.ts +60 -60
- package/dist/es/components/modal-dialog.vue.d.ts +14 -14
- package/dist/es/components/modal-footer.vue.d.ts +4 -2
- package/dist/es/components/modal-header.vue.d.ts +4 -2
- package/dist/es/components/modal-loading.vue.d.ts +2 -2
- package/dist/es/components/modal-provider.vue.d.ts +8 -8
- package/dist/es/constants.d.ts +1 -1
- package/dist/es/hooks/use-modal.d.ts +3 -3
- package/dist/es/index.d.ts +5 -5
- package/dist/es/index.mjs +116 -116
- package/dist/es/interfaces.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
2
|
default?(_: {}): any;
|
|
3
|
-
}
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
4
6
|
export default _default;
|
|
5
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
8
|
new (): {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
2
|
default?(_: {}): any;
|
|
3
|
-
}
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
4
6
|
export default _default;
|
|
5
7
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
8
|
new (): {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
text?: string
|
|
2
|
+
text?: string;
|
|
3
3
|
}>, {
|
|
4
4
|
text: string;
|
|
5
5
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
-
text?: string
|
|
6
|
+
text?: string;
|
|
7
7
|
}>, {
|
|
8
8
|
text: string;
|
|
9
9
|
}>>>, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModalElement, OpenModalOptions, SizeOptions } from '../interfaces';
|
|
2
1
|
import { Component } from 'vue';
|
|
2
|
+
import { ModalElement, OpenModalOptions, SizeOptions } from '../interfaces';
|
|
3
3
|
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
appendToBody: boolean | string;
|
|
@@ -7,9 +7,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
7
7
|
maxWidth: string | number;
|
|
8
8
|
maxHeight: string | number;
|
|
9
9
|
offset?: {
|
|
10
|
-
x?: number
|
|
11
|
-
y?: number
|
|
12
|
-
}
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
};
|
|
13
13
|
}>, {
|
|
14
14
|
appendToBody: boolean;
|
|
15
15
|
maxWidth: string;
|
|
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
25
25
|
};
|
|
26
26
|
}>, {
|
|
27
27
|
elements: import('vue').ShallowRef<ModalElement[]>;
|
|
28
|
-
open: (component: Component |
|
|
28
|
+
open: (component: Component | "confirm" | "info" | "warning" | "error" | "success", props?: Record<string, any>, options?: OpenModalOptions) => Promise<unknown> & {
|
|
29
29
|
close: () => void;
|
|
30
30
|
};
|
|
31
31
|
close: (id: string, data?: any) => void;
|
|
@@ -36,9 +36,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
36
36
|
maxWidth: string | number;
|
|
37
37
|
maxHeight: string | number;
|
|
38
38
|
offset?: {
|
|
39
|
-
x?: number
|
|
40
|
-
y?: number
|
|
41
|
-
}
|
|
39
|
+
x?: number;
|
|
40
|
+
y?: number;
|
|
41
|
+
};
|
|
42
42
|
}>, {
|
|
43
43
|
appendToBody: boolean;
|
|
44
44
|
maxWidth: string;
|
package/dist/es/constants.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OpenModalOptions, ShowLoadingOptions } from '../interfaces';
|
|
2
1
|
import { Component } from 'vue';
|
|
2
|
+
import { OpenModalOptions, ShowLoadingOptions } from '../interfaces';
|
|
3
3
|
|
|
4
4
|
export declare function useModal(): {
|
|
5
5
|
open: {
|
|
6
|
-
(component:
|
|
6
|
+
(component: "confirm", props: {
|
|
7
7
|
title?: string;
|
|
8
8
|
content: string;
|
|
9
9
|
onOk?: () => Promise<void> | void;
|
|
@@ -12,7 +12,7 @@ export declare function useModal(): {
|
|
|
12
12
|
}): Promise<any> & {
|
|
13
13
|
close: () => void;
|
|
14
14
|
};
|
|
15
|
-
(component:
|
|
15
|
+
(component: "info" | "warning" | "error" | "success", props: {
|
|
16
16
|
title?: string;
|
|
17
17
|
content: string;
|
|
18
18
|
}): Promise<any> & {
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ModalKey } from './constants';
|
|
2
|
-
import { useModal } from './hooks/use-modal';
|
|
3
|
-
import { default as ModalHeader } from './components/modal-header.vue';
|
|
4
|
-
import { default as ModalFooter } from './components/modal-footer.vue';
|
|
5
|
-
import { default as ModalContainer } from './components/modal-container.vue';
|
|
6
1
|
import { default as ModalProvider } from './components/modal-provider.vue';
|
|
2
|
+
import { default as ModalContainer } from './components/modal-container.vue';
|
|
3
|
+
import { default as ModalFooter } from './components/modal-footer.vue';
|
|
4
|
+
import { default as ModalHeader } from './components/modal-header.vue';
|
|
5
|
+
import { useModal } from './hooks/use-modal';
|
|
6
|
+
import { ModalKey } from './constants';
|
|
7
7
|
|
|
8
8
|
export { onSubmit } from './hooks/on-submit';
|
|
9
9
|
export * from './interfaces';
|