morghulis 3.0.10 → 3.0.11

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.
@@ -31,11 +31,10 @@ 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;
37
34
  title: string;
38
- confirm: (data: any, done: () => void) => void;
35
+ subtitle: string;
36
+ confirmButtonText: string;
37
+ cancelButtonText: string;
39
38
  cancel: (data: any, done: () => void) => void;
40
39
  width: string | number;
41
40
  fullscreen: boolean;
@@ -46,11 +45,13 @@ declare const __VLS_component: import("vue").DefineComponent<MorghulisDialogProp
46
45
  bodyClass: string;
47
46
  footerClass: string;
48
47
  appendToBody: boolean;
48
+ appendTo: string;
49
49
  lockScroll: boolean;
50
50
  openDelay: number;
51
51
  closeDelay: number;
52
52
  closeOnClickModal: boolean;
53
53
  closeOnPressEscape: boolean;
54
+ showClose: boolean;
54
55
  beforeClose: (done: () => void) => void;
55
56
  draggable: boolean;
56
57
  overFlow: boolean;
@@ -58,10 +59,9 @@ declare const __VLS_component: import("vue").DefineComponent<MorghulisDialogProp
58
59
  alignCenter: boolean;
59
60
  destroyOnClose: boolean;
60
61
  closeIcon: string;
62
+ zIndex: number;
61
63
  headerAriaLevel: string;
62
- subtitle: string;
63
- confirmButtonText: string;
64
- cancelButtonText: 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;
@@ -10,3 +10,4 @@ export interface MorghulisMessageBoxInterface {
10
10
  warning: (content: string, title?: string) => Promise<any>;
11
11
  error: (content: string, title?: string) => Promise<any>;
12
12
  }
13
+ export type FeedbackTypes = "success" | "info" | "warning" | "error";
@@ -1,8 +1,3 @@
1
- export declare const SYSTEM_KEY: {
2
- CLIENT: string;
3
- USER: string;
4
- AUTH: string;
5
- };
6
1
  export declare function useMorghulisAuthorize(): {
7
2
  $client: string;
8
3
  user: () => any;
@@ -0,0 +1,5 @@
1
+ export declare const SYSTEM_KEY: {
2
+ CLIENT: string;
3
+ USER: string;
4
+ AUTH: string;
5
+ };
File without changes
@@ -0,0 +1,2 @@
1
+ export declare function getKeyFromPath(path: string): string;
2
+ export declare function getJsonFromCookies(key: string): any;
@@ -0,0 +1,6 @@
1
+ import 'nprogress/nprogress.css';
2
+ export declare function useMorghulisRequest(): {
3
+ getHttpRequest: (auth?: boolean) => import("axios").AxiosInstance;
4
+ getMinioRequest: () => import("axios").AxiosInstance;
5
+ all: () => void;
6
+ };
@@ -0,0 +1,3 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ import 'nprogress/nprogress.css';
3
+ export declare function wrap_interceptors(instance: AxiosInstance, auth?: boolean): AxiosInstance;
@@ -0,0 +1,4 @@
1
+ export declare function useMorghulisSockets(): {
2
+ open: () => void;
3
+ status: import("vue").Ref<string, string>;
4
+ };
@@ -1,15 +1,13 @@
1
1
  import './style.css';
2
2
  import { App } from "vue";
3
- import MButton from "./components/button/MButton.vue";
4
3
  import MDialog from "./components/dialog/MDialog.vue";
5
4
  import { MorghulisOptions } from "./hooks/use-core/types";
6
5
  declare module "vue" {
7
6
  interface GlobalComponents {
8
- MButton: typeof MButton;
9
7
  MDialog: typeof MDialog;
10
8
  }
11
9
  }
12
10
  export declare const createMorghulis: (options?: MorghulisOptions) => {
13
11
  install(Vue: App): void;
14
12
  };
15
- export { MButton, MDialog };
13
+ export { MDialog };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -25,11 +25,16 @@
25
25
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
26
26
  "@fortawesome/free-solid-svg-icons": "^6.7.2",
27
27
  "@fortawesome/vue-fontawesome": "^3.0.8",
28
+ "axios": "^1.8.1",
29
+ "nprogress": "^0.2.0",
30
+ "sortablejs": "^1.15.6",
28
31
  "element-plus": "^2.9.8",
29
32
  "js-cookie": "^3.0.5",
30
33
  "vue": "^3.5.13"
31
34
  },
32
35
  "devDependencies": {
36
+ "@types/nprogress": "^0.2.3",
37
+ "@types/sortablejs": "^1.15.8",
33
38
  "@types/js-cookie": "^3.0.6",
34
39
  "@types/node": "^22.14.0",
35
40
  "@vitejs/plugin-vue": "^5.2.3",
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- text?: string;
3
- };
4
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
- text: string;
6
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;