morghulis 3.0.7 → 3.0.9

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.
@@ -1,4 +1,4 @@
1
- import { type MorghulisDialogConfig, type MorghulisDialogProps } from "../../types";
1
+ import { MorghulisDialogConfig, MorghulisDialogProps } from "./index";
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;
@@ -1,4 +1,4 @@
1
- import type { MorghulisDialogConfig } from "../../types.ts";
1
+ import { MorghulisDialogConfig } from "./index";
2
2
  type __VLS_Props = {
3
3
  title: string;
4
4
  subtitle: string;
@@ -1,43 +1,3 @@
1
- import { Ref } from "vue";
2
- /**
3
- * Core
4
- */
5
- export type MorghulisOptions = {
6
- baseURL?: string;
7
- minioURL?: string;
8
- };
9
- export type MorghulisCore = {
10
- status: Ref<string>;
11
- open: () => void;
12
- channels: MorghulisChannels;
13
- options: MorghulisOptions;
14
- };
15
- /**
16
- * Channels
17
- */
18
- export type MorghulisChannel = {
19
- start?: () => void;
20
- stop?: () => void;
21
- proceed?: (payload: any) => void;
22
- };
23
- export type MorghulisChannels = {
24
- [key: string]: MorghulisChannel;
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
1
  /**
42
2
  * Dialog
43
3
  */
@@ -1,4 +1,4 @@
1
- import type { MorghulisMessageBoxInterface, MorghulisMessageInterface } from "../types";
1
+ import { MorghulisMessageBoxInterface, MorghulisMessageInterface } from "./index";
2
2
  export declare const $message: MorghulisMessageInterface;
3
3
  export declare const $alert: MorghulisMessageBoxInterface;
4
4
  export declare const $confirm: MorghulisMessageBoxInterface;
@@ -0,0 +1,12 @@
1
+ export interface MorghulisMessageInterface {
2
+ info: (content: string) => void;
3
+ success: (content: string) => void;
4
+ warning: (content: string) => void;
5
+ error: (content: string) => void;
6
+ }
7
+ export interface MorghulisMessageBoxInterface {
8
+ info: (content: string, title?: string) => Promise<any>;
9
+ success: (content: string, title?: string) => Promise<any>;
10
+ warning: (content: string, title?: string) => Promise<any>;
11
+ error: (content: string, title?: string) => Promise<any>;
12
+ }
@@ -1,2 +1,2 @@
1
- import type { MorghulisCore, MorghulisOptions } from "../types";
1
+ import { MorghulisCore, MorghulisOptions } from "./types";
2
2
  export declare function initMorghulis(options?: MorghulisOptions): MorghulisCore;
@@ -0,0 +1,19 @@
1
+ import { Ref } from "vue";
2
+ export type MorghulisChannel = {
3
+ start?: () => void;
4
+ stop?: () => void;
5
+ proceed?: (payload: any) => void;
6
+ };
7
+ export type MorghulisChannels = {
8
+ [key: string]: MorghulisChannel;
9
+ };
10
+ export type MorghulisOptions = {
11
+ baseURL?: string;
12
+ minioURL?: string;
13
+ };
14
+ export type MorghulisCore = {
15
+ status: Ref<string>;
16
+ open: () => void;
17
+ channels: MorghulisChannels;
18
+ options: MorghulisOptions;
19
+ };
@@ -1,8 +1,8 @@
1
+ import './style.css';
1
2
  import { App } from "vue";
2
3
  import MButton from "./components/button/MButton.vue";
3
- import './style.css';
4
- import type { MorghulisOptions } from "./types";
5
4
  import MDialog from "./components/dialog/MDialog.vue";
5
+ import { MorghulisOptions } from "./hooks/use-core/types";
6
6
  declare module "vue" {
7
7
  interface GlobalComponents {
8
8
  MButton: typeof MButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "3.0.7",
3
+ "version": "3.0.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"