morghulis 3.0.15 → 3.0.16

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.
@@ -0,0 +1,12 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
+ export default _default;
8
+ type __VLS_WithSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
@@ -31,11 +31,15 @@ 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
+ showClose: boolean;
35
+ zIndex: number;
36
+ appendTo: string;
34
37
  title: string;
38
+ confirm: (data: any, done: () => void) => void;
39
+ cancel: (data: any, done: () => void) => void;
35
40
  subtitle: string;
36
41
  confirmButtonText: string;
37
42
  cancelButtonText: string;
38
- cancel: (data: any, done: () => void) => void;
39
43
  width: string | number;
40
44
  fullscreen: boolean;
41
45
  top: string;
@@ -45,13 +49,11 @@ declare const __VLS_component: import("vue").DefineComponent<MorghulisDialogProp
45
49
  bodyClass: string;
46
50
  footerClass: string;
47
51
  appendToBody: boolean;
48
- appendTo: string;
49
52
  lockScroll: boolean;
50
53
  openDelay: number;
51
54
  closeDelay: number;
52
55
  closeOnClickModal: boolean;
53
56
  closeOnPressEscape: boolean;
54
- showClose: boolean;
55
57
  beforeClose: (done: () => void) => void;
56
58
  draggable: boolean;
57
59
  overFlow: boolean;
@@ -59,9 +61,7 @@ declare const __VLS_component: import("vue").DefineComponent<MorghulisDialogProp
59
61
  alignCenter: boolean;
60
62
  destroyOnClose: boolean;
61
63
  closeIcon: string;
62
- zIndex: number;
63
64
  headerAriaLevel: string;
64
- confirm: (data: any, done: () => void) => void;
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;
@@ -1,17 +1,19 @@
1
1
  import './style.css';
2
2
  import { App } from "vue";
3
- import MDialog from "./components/dialog/MDialog.vue";
4
3
  import { useMRequest } from "./hooks/use-request";
5
4
  import { useMChannel } from "./hooks/use-channel";
6
5
  import { useMSockets } from "./hooks/use-socket";
7
6
  import { MorghulisOptions } from "./hooks/use-morghulis/types";
8
7
  import type { MorghulisChannelConfig } from "./hooks/use-channel/types";
8
+ import MApp from "./MApp.vue";
9
+ import MDialog from "./components/dialog/MDialog.vue";
9
10
  declare module "vue" {
10
11
  interface GlobalComponents {
12
+ MApp: typeof MApp;
11
13
  MDialog: typeof MDialog;
12
14
  }
13
15
  }
14
- export declare const createMorghulis: (options?: MorghulisOptions) => {
16
+ declare const createMorghulis: (options?: MorghulisOptions) => {
15
17
  install(Vue: App): void;
16
18
  };
17
- export { MDialog, useMRequest, useMChannel, useMSockets, MorghulisChannelConfig };
19
+ export { MApp, MDialog, createMorghulis, useMRequest, useMChannel, useMSockets, MorghulisChannelConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "3.0.15",
3
+ "version": "3.0.16",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"