morghulis 3.0.6 → 3.0.8
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/index.css +1 -1
- package/dist/morghulis.es.js +13657 -2947
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +581 -17
- package/dist/morghulis.umd.js.map +1 -1
- package/dist/types/components/dialog/MDialog.vue.d.ts +6 -6
- package/dist/types/components/dialog/MDialogHeader.vue.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/tools/feedback.d.ts +1 -1
- package/dist/types/types/dialog.d.ts +44 -0
- package/dist/types/types/feedback.d.ts +15 -0
- package/dist/types/types.d.ts +0 -59
- package/package.json +4 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { MorghulisDialogConfig, MorghulisDialogProps } from "../../types/dialog";
|
2
2
|
declare function open(data?: any, config?: MorghulisDialogConfig): void;
|
3
3
|
declare function close(): void;
|
4
4
|
declare var __VLS_11: {
|
@@ -31,15 +31,12 @@ declare const __VLS_component: import("vue").DefineComponent<MorghulisDialogProp
|
|
31
31
|
"onUpdate:title"?: ((...args: any[]) => any) | undefined;
|
32
32
|
"onUpdate:subtitle"?: ((...args: any[]) => any) | undefined;
|
33
33
|
}>, {
|
34
|
-
title: string;
|
35
|
-
subtitle: string;
|
36
|
-
confirmButtonText: string;
|
37
|
-
cancelButtonText: string;
|
38
|
-
cancel: (data: any, done: () => void) => void;
|
39
34
|
showClose: boolean;
|
40
35
|
zIndex: number;
|
41
36
|
appendTo: string;
|
37
|
+
title: string;
|
42
38
|
confirm: (data: any, done: () => void) => void;
|
39
|
+
cancel: (data: any, done: () => void) => void;
|
43
40
|
width: string | number;
|
44
41
|
fullscreen: boolean;
|
45
42
|
top: string;
|
@@ -62,6 +59,9 @@ declare const __VLS_component: import("vue").DefineComponent<MorghulisDialogProp
|
|
62
59
|
destroyOnClose: boolean;
|
63
60
|
closeIcon: string;
|
64
61
|
headerAriaLevel: string;
|
62
|
+
subtitle: string;
|
63
|
+
confirmButtonText: string;
|
64
|
+
cancelButtonText: string;
|
65
65
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
66
66
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
67
67
|
export default _default;
|
package/dist/types/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { App } from "vue";
|
2
|
-
import MButton from "./components/button/MButton.vue";
|
3
1
|
import './style.css';
|
2
|
+
import { App } from "vue";
|
4
3
|
import type { MorghulisOptions } from "./types";
|
4
|
+
import MButton from "./components/button/MButton.vue";
|
5
5
|
import MDialog from "./components/dialog/MDialog.vue";
|
6
6
|
declare module "vue" {
|
7
7
|
interface GlobalComponents {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { MorghulisMessageBoxInterface, MorghulisMessageInterface } from "../types/feedback";
|
2
2
|
export declare const $message: MorghulisMessageInterface;
|
3
3
|
export declare const $alert: MorghulisMessageBoxInterface;
|
4
4
|
export declare const $confirm: MorghulisMessageBoxInterface;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/**
|
2
|
+
* Dialog
|
3
|
+
*/
|
4
|
+
type DialogProps = {
|
5
|
+
width?: string | number;
|
6
|
+
fullscreen?: boolean;
|
7
|
+
top?: string;
|
8
|
+
modal?: boolean;
|
9
|
+
modalClass?: string;
|
10
|
+
headerClass?: string;
|
11
|
+
bodyClass?: string;
|
12
|
+
footerClass?: string;
|
13
|
+
appendToBody?: boolean;
|
14
|
+
appendTo?: string;
|
15
|
+
lockScroll?: boolean;
|
16
|
+
openDelay?: number;
|
17
|
+
closeDelay?: number;
|
18
|
+
closeOnClickModal?: boolean;
|
19
|
+
closeOnPressEscape?: boolean;
|
20
|
+
showClose?: boolean;
|
21
|
+
beforeClose?: (done: () => void) => void;
|
22
|
+
draggable?: boolean;
|
23
|
+
overFlow?: boolean;
|
24
|
+
center?: boolean;
|
25
|
+
alignCenter?: boolean;
|
26
|
+
destroyOnClose?: boolean;
|
27
|
+
closeIcon?: string;
|
28
|
+
zIndex?: number;
|
29
|
+
headerAriaLevel?: string;
|
30
|
+
};
|
31
|
+
export type MorghulisDialogProps = DialogProps & {
|
32
|
+
title?: string;
|
33
|
+
subtitle?: string;
|
34
|
+
confirm?: (data: any, done: () => void) => void;
|
35
|
+
cancel?: (data: any, done: () => void) => void;
|
36
|
+
confirmButtonText?: string;
|
37
|
+
cancelButtonText?: string;
|
38
|
+
};
|
39
|
+
export declare const morghulisDialogPropsDefaults: MorghulisDialogProps;
|
40
|
+
export type MorghulisDialogConfig = {
|
41
|
+
title?: string;
|
42
|
+
subtitle?: string;
|
43
|
+
};
|
44
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Feedback
|
3
|
+
*/
|
4
|
+
export interface MorghulisMessageInterface {
|
5
|
+
info: (content: string) => void;
|
6
|
+
success: (content: string) => void;
|
7
|
+
warning: (content: string) => void;
|
8
|
+
error: (content: string) => void;
|
9
|
+
}
|
10
|
+
export interface MorghulisMessageBoxInterface {
|
11
|
+
info: (content: string, title?: string) => Promise<any>;
|
12
|
+
success: (content: string, title?: string) => Promise<any>;
|
13
|
+
warning: (content: string, title?: string) => Promise<any>;
|
14
|
+
error: (content: string, title?: string) => Promise<any>;
|
15
|
+
}
|
package/dist/types/types.d.ts
CHANGED
@@ -23,62 +23,3 @@ export type MorghulisChannel = {
|
|
23
23
|
export type MorghulisChannels = {
|
24
24
|
[key: string]: MorghulisChannel;
|
25
25
|
};
|
26
|
-
/**
|
27
|
-
* Feedback
|
28
|
-
*/
|
29
|
-
export interface MorghulisMessageInterface {
|
30
|
-
info: (content: string) => void;
|
31
|
-
success: (content: string) => void;
|
32
|
-
warning: (content: string) => void;
|
33
|
-
error: (content: string) => void;
|
34
|
-
}
|
35
|
-
export interface MorghulisMessageBoxInterface {
|
36
|
-
info: (content: string, title?: string) => Promise<any>;
|
37
|
-
success: (content: string, title?: string) => Promise<any>;
|
38
|
-
warning: (content: string, title?: string) => Promise<any>;
|
39
|
-
error: (content: string, title?: string) => Promise<any>;
|
40
|
-
}
|
41
|
-
/**
|
42
|
-
* Dialog
|
43
|
-
*/
|
44
|
-
type DialogProps = {
|
45
|
-
width?: string | number;
|
46
|
-
fullscreen?: boolean;
|
47
|
-
top?: string;
|
48
|
-
modal?: boolean;
|
49
|
-
modalClass?: string;
|
50
|
-
headerClass?: string;
|
51
|
-
bodyClass?: string;
|
52
|
-
footerClass?: string;
|
53
|
-
appendToBody?: boolean;
|
54
|
-
appendTo?: string;
|
55
|
-
lockScroll?: boolean;
|
56
|
-
openDelay?: number;
|
57
|
-
closeDelay?: number;
|
58
|
-
closeOnClickModal?: boolean;
|
59
|
-
closeOnPressEscape?: boolean;
|
60
|
-
showClose?: boolean;
|
61
|
-
beforeClose?: (done: () => void) => void;
|
62
|
-
draggable?: boolean;
|
63
|
-
overFlow?: boolean;
|
64
|
-
center?: boolean;
|
65
|
-
alignCenter?: boolean;
|
66
|
-
destroyOnClose?: boolean;
|
67
|
-
closeIcon?: string;
|
68
|
-
zIndex?: number;
|
69
|
-
headerAriaLevel?: string;
|
70
|
-
};
|
71
|
-
export type MorghulisDialogProps = DialogProps & {
|
72
|
-
title?: string;
|
73
|
-
subtitle?: string;
|
74
|
-
confirm?: (data: any, done: () => void) => void;
|
75
|
-
cancel?: (data: any, done: () => void) => void;
|
76
|
-
confirmButtonText?: string;
|
77
|
-
cancelButtonText?: string;
|
78
|
-
};
|
79
|
-
export declare const morghulisDialogPropsDefaults: MorghulisDialogProps;
|
80
|
-
export type MorghulisDialogConfig = {
|
81
|
-
title?: string;
|
82
|
-
subtitle?: string;
|
83
|
-
};
|
84
|
-
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "morghulis",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.8",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -22,6 +22,9 @@
|
|
22
22
|
"preview": "vite preview"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
+
"@fortawesome/fontawesome-svg-core": "^6.7.2",
|
26
|
+
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
27
|
+
"@fortawesome/vue-fontawesome": "^3.0.8",
|
25
28
|
"element-plus": "^2.9.8",
|
26
29
|
"js-cookie": "^3.0.5",
|
27
30
|
"vue": "^3.5.13"
|