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.
- package/dist/composables/viewStack.d.ts +1 -1
- package/dist/index.js +479 -511
- package/dist/store/global.d.ts +2 -2
- package/dist/store/index.d.ts +0 -1
- package/dist/utils/axios.d.ts +1 -1
- package/dist/utils/dialog.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/provideInject.d.ts +3 -0
- package/dist/utils/viewMgr.d.ts +8 -0
- package/package.json +26 -25
- package/dist/store/viewMgr.d.ts +0 -29
- /package/dist/{en-iuzmkt0n.js → i18n-en-iuzmkt0n.js} +0 -0
- /package/dist/{zhHans-m6y1by9n.js → i18n-zhHans-m6y1by9n.js} +0 -0
package/dist/store/global.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PermissionObjects } from '../utils';
|
|
2
|
-
export declare const useGlobalStore: import("pinia").StoreDefinition<"global",
|
|
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"
|
|
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>;
|
package/dist/store/index.d.ts
CHANGED
package/dist/utils/axios.d.ts
CHANGED
package/dist/utils/dialog.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface PromptParams {
|
|
|
19
19
|
cancel?: ButtonOptions;
|
|
20
20
|
confirm?: ButtonOptions;
|
|
21
21
|
}
|
|
22
|
-
export declare function openPromptDlg(params: PromptParams): Promise<
|
|
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 {};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -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.
|
|
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
|
|
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": "^
|
|
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.
|
|
31
|
-
"pinia": "^2.2.
|
|
32
|
-
"pinia-plugin-persistedstate": "^
|
|
33
|
-
"vue": "^3.5.
|
|
34
|
-
"vue-i18n": "^
|
|
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.
|
|
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": "^
|
|
43
|
-
"@vitejs/plugin-vue": "^5.
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"eslint": "^
|
|
47
|
-
"eslint-plugin-vue": "^9.
|
|
48
|
-
"husky": "^9.
|
|
49
|
-
"lint-staged": "^15.2.
|
|
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.
|
|
52
|
-
"typescript": "^5.
|
|
53
|
-
"
|
|
54
|
-
"vite
|
|
55
|
-
"vite-plugin-
|
|
56
|
-
"
|
|
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
|
}
|
package/dist/store/viewMgr.d.ts
DELETED
|
@@ -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
|
|
File without changes
|