x-essential-lib 0.7.2 → 0.7.4

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,11 +1,11 @@
1
1
  import { PermissionObjects } from '../utils';
2
- export declare const useGlobalStore: import("pinia").StoreDefinition<"global", import("pinia")._UnwrapAll<Pick<{
2
+ export declare const useGlobalStore: import("pinia").StoreDefinition<"global", Pick<{
3
3
  dark: import("vue").Ref<boolean | undefined, boolean | undefined>;
4
4
  locale: import("vue").Ref<string, string>;
5
5
  permissionObjects: import("vue").Ref<PermissionObjects, PermissionObjects>;
6
6
  permissionChecksum: import("vue").Ref<string, string>;
7
7
  lastAppPath: import("vue").Ref<string, string>;
8
- }, "dark" | "locale" | "permissionObjects" | "permissionChecksum" | "lastAppPath">>, Pick<{
8
+ }, "dark" | "locale" | "permissionObjects" | "permissionChecksum" | "lastAppPath">, Pick<{
9
9
  dark: import("vue").Ref<boolean | undefined, boolean | undefined>;
10
10
  locale: import("vue").Ref<string, string>;
11
11
  permissionObjects: import("vue").Ref<PermissionObjects, PermissionObjects>;
@@ -1,2 +1 @@
1
1
  export * from './global';
2
- export * from './viewMgr';
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- type OnError = (error: any) => void;
2
+ type OnError = (error: unknown) => void;
3
3
  interface Options {
4
4
  baseUrl: string;
5
5
  onError: OnError;
@@ -19,7 +19,7 @@ interface PromptParams {
19
19
  cancel?: ButtonOptions;
20
20
  confirm?: ButtonOptions;
21
21
  }
22
- export declare function openPromptDlg(params: PromptParams): Promise<any>;
22
+ export declare function openPromptDlg(params: PromptParams): Promise<string | undefined>;
23
23
  export declare function openWaitDlg(text?: string): void;
24
24
  export declare function closeWaitDlg(): void;
25
25
  export {};
@@ -3,4 +3,6 @@ export * from './dialog';
3
3
  export * from './message';
4
4
  export * from './misc';
5
5
  export * from './permission';
6
+ export * from './provideInject';
6
7
  export * from './router';
8
+ export * from './viewMgr';
@@ -0,0 +1,3 @@
1
+ import { Ref } from 'vue';
2
+ export declare function provideViews(views: Ref<string[]>): void;
3
+ export declare function injectViews(): Ref<string[]>;
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export declare function isEmpty(views: Ref<string[]>): boolean;
3
+ export declare function lastView(views: Ref<string[]>): string | undefined;
4
+ export declare function hasView(views: Ref<string[]>, name: string): boolean;
5
+ export declare function addView(views: Ref<string[]>, name: string): void;
6
+ export declare function delView(views: Ref<string[]>, name: string): void;
7
+ export declare function popView(views: Ref<string[]>): void;
8
+ export declare function clearViews(views: Ref<string[]>): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.7.2",
4
+ "version": "0.7.4",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -12,47 +12,48 @@
12
12
  "dev": "vite",
13
13
  "build": "vue-tsc && vite build",
14
14
  "preview": "vite preview",
15
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
15
+ "lint": "eslint --fix --ignore-pattern dist/ --ignore-pattern public/ .",
16
16
  "format": "prettier --write .",
17
17
  "lint-staged": "lint-staged",
18
18
  "prepare": "husky"
19
19
  },
20
20
  "lint-staged": {
21
- "*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix",
21
+ "*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix --ignore-pattern dist/ --ignore-pattern public/ .",
22
22
  "*": "prettier --write ."
23
23
  },
24
24
  "dependencies": {
25
- "@vueuse/core": "^10.11.0",
25
+ "@vueuse/core": "^11.1.0",
26
26
  "js-cookie": "^3.0.5",
27
27
  "mitt": "^3.0.1"
28
28
  },
29
29
  "peerDependencies": {
30
- "axios": "^1.7.2",
31
- "pinia": "^2.2.2",
32
- "pinia-plugin-persistedstate": "^3.2.1",
33
- "vue": "^3.5.5",
34
- "vue-i18n": "^9.14.0",
30
+ "axios": "^1.7.7",
31
+ "pinia": "^2.2.4",
32
+ "pinia-plugin-persistedstate": "^4.1.1",
33
+ "vue": "^3.5.12",
34
+ "vue-i18n": "^10.0.4",
35
35
  "vue-router": "^4.4.3",
36
- "vuetify": "^3.7.1"
36
+ "vuetify": "^3.7.3"
37
37
  },
38
38
  "devDependencies": {
39
+ "@eslint/js": "^10.0.0",
39
40
  "@mdi/js": "^7.4.47",
40
- "@rushstack/eslint-patch": "^1.10.3",
41
41
  "@types/js-cookie": "^3.0.6",
42
- "@types/node": "^20.14.10",
43
- "@vitejs/plugin-vue": "^5.0.5",
44
- "@vue/eslint-config-prettier": "^9.0.0",
45
- "@vue/eslint-config-typescript": "^13.0.0",
46
- "eslint": "^8.57.0",
47
- "eslint-plugin-vue": "^9.27.0",
48
- "husky": "^9.0.11",
49
- "lint-staged": "^15.2.7",
42
+ "@types/node": "^22.7.7",
43
+ "@vitejs/plugin-vue": "^5.1.4",
44
+ "eslint": "^9.13.0",
45
+ "eslint-config-prettier": "^9.1.0",
46
+ "eslint-plugin-prettier": "^5.2.1",
47
+ "eslint-plugin-vue": "^9.29.1",
48
+ "husky": "^9.1.6",
49
+ "lint-staged": "^15.2.10",
50
50
  "prettier": "3.3.3",
51
- "sass": "^1.77.7",
52
- "typescript": "^5.5.3",
53
- "vite": "^5.3.3",
54
- "vite-plugin-css-injected-by-js": "^3.5.1",
55
- "vite-plugin-vuetify": "^2.0.3",
56
- "vue-tsc": "^2.0.26"
51
+ "sass": "^1.80.3",
52
+ "typescript": "^5.6.3",
53
+ "typescript-eslint": "^8.11.0",
54
+ "vite": "^5.4.9",
55
+ "vite-plugin-css-injected-by-js": "^3.5.2",
56
+ "vite-plugin-vuetify": "^2.0.4",
57
+ "vue-tsc": "^2.1.6"
57
58
  }
58
59
  }
@@ -1,29 +0,0 @@
1
- import 'pinia-plugin-persistedstate';
2
- export declare const useViewMgrStore: import("pinia").StoreDefinition<"viewMgr", import("pinia")._UnwrapAll<Pick<{
3
- views: import("vue").Ref<string[], string[]>;
4
- isEmpty: () => boolean;
5
- lastView: () => string | undefined;
6
- hasView: (name: string) => boolean;
7
- addView: (name: string) => void;
8
- delView: (name: string) => void;
9
- popView: () => void;
10
- clearViews: () => void;
11
- }, "views">>, Pick<{
12
- views: import("vue").Ref<string[], string[]>;
13
- isEmpty: () => boolean;
14
- lastView: () => string | undefined;
15
- hasView: (name: string) => boolean;
16
- addView: (name: string) => void;
17
- delView: (name: string) => void;
18
- popView: () => void;
19
- clearViews: () => void;
20
- }, never>, Pick<{
21
- views: import("vue").Ref<string[], string[]>;
22
- isEmpty: () => boolean;
23
- lastView: () => string | undefined;
24
- hasView: (name: string) => boolean;
25
- addView: (name: string) => void;
26
- delView: (name: string) => void;
27
- popView: () => void;
28
- clearViews: () => void;
29
- }, "isEmpty" | "lastView" | "hasView" | "addView" | "delView" | "popView" | "clearViews">>;
File without changes