xframelib 1.1.7 → 1.1.8

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,12 +1,10 @@
1
1
  import { ISysRoleRight } from '../model/IRole';
2
2
  /**
3
- * 获取 系统角色权限 对象
4
- * @returns
3
+ * 获取系统角色权限对象
5
4
  */
6
5
  export declare function getRight(): ISysRoleRight | undefined;
7
6
  /**
8
- * 设置 系统角色权限 对象
9
- * @param sysRoleRight 系统角色权限对象
7
+ * 设置系统角色权限对象
10
8
  */
11
9
  export declare function setRight(sysRoleRight?: ISysRoleRight): void;
12
10
  /**
@@ -39,6 +39,7 @@ declare class NavigatorPlugin {
39
39
  */
40
40
  static OffBatteryStatusHandler(): void;
41
41
  private static onlineChangeCallback;
42
+ private static networkStatusChangeHandler;
42
43
  private static networkStatusChange;
43
44
  /**
44
45
  * 联网状态
@@ -1,3 +1,4 @@
1
+ declare function getGlobalStorage(type: 'localStorage' | 'sessionStorage'): Storage;
1
2
  /**
2
3
  * 创建本地缓存对象
3
4
  */
@@ -64,3 +65,4 @@ declare class StorageHelper {
64
65
  }
65
66
  export declare const storage: StorageHelper;
66
67
  export default StorageHelper;
68
+ export { getGlobalStorage };
@@ -1,13 +1,16 @@
1
1
  /**
2
2
  * 编码/解码
3
3
  */
4
- declare const iconvWorker: any;
4
+ export declare function getIconvWorker(): any;
5
5
  /**
6
- * 通用数学计算;前端大图片,瓦片化加载-webworker
6
+ * 通用数学计算;前端大图片、瓦片化加载 webworker
7
7
  */
8
- declare const xmathWorker: any;
8
+ export declare function getXmathWorker(): any;
9
9
  /**
10
- * 前端缓存层-webworker
10
+ * 前端缓存层 webworker
11
11
  */
12
+ export declare function getWebCacheWorker(): any;
13
+ declare const iconvWorker: any;
14
+ declare const xmathWorker: any;
12
15
  declare const webCacheWorker: any;
13
- export { xmathWorker, iconvWorker, webCacheWorker, };
16
+ export { xmathWorker, iconvWorker, webCacheWorker };
package/package.json CHANGED
@@ -1,77 +1,88 @@
1
- {
2
- "name": "xframelib",
3
- "version": "1.1.7",
4
- "description": "The accumulated front-end development foundation library originates from projects and serves projects.",
5
- "main": "dist/index.js",
6
- "common": "dist/index.cjs",
7
- "typings": "dist/index.d.ts",
8
- "type": "module",
9
- "scripts": {
10
- "build": "vite build",
11
- "clean": "rimraf dist && rimraf package-lock.json && rimraf node_modules/.cache && rimraf node_modules/.vite"
12
- },
13
- "keywords": [
14
- "xframelib",
15
- "widget",
16
- "typescript",
17
- "hprose",
18
- "vue",
19
- "H5Tool",
20
- "XWindow"
21
- ],
22
- "author": {
23
- "name": "zorrowm",
24
- "email": "zorrowm@126.com"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "https://github.com/zorrowm/vue-widget-template.git"
29
- },
30
- "homepage": "http://www.ysgis.com",
31
- "license": "MIT",
32
- "dependencies": {
33
- "@hprose/io": "^3.0.10",
34
- "@hprose/rpc-core": "^3.0.10",
35
- "@hprose/rpc-html5": "^3.0.10",
36
- "@iconify-icons/ant-design": "^1.2.7",
37
- "@iconify/vue": "^5.0.1",
38
- "@microsoft/signalr": "^10.0.0",
39
- "axios": "^1.18.1",
40
- "buffer": "^6.0.3",
41
- "fflate": "^0.8.3",
42
- "iconv-lite": "^0.7.2",
43
- "localforage": "^1.10.0",
44
- "loglevel": "^1.9.2",
45
- "lru-cache": "^11.5.1",
46
- "qs": "^6.15.3",
47
- "spark-md5": "^3.0.2",
48
- "tippy.js": "^6.3.7",
49
- "xhr": "^2.6.0"
50
- },
51
- "devDependencies": {
52
- "@rollup/plugin-alias": "^6.0.0",
53
- "@rollup/plugin-commonjs": "^29.0.3",
54
- "@rollup/plugin-terser": "^1.0.0",
55
- "@rollup/plugin-typescript": "^12.3.0",
56
- "@types/node": "^26.1.0",
57
- "@vitejs/plugin-vue": "^6.0.7",
58
- "@vue/language-core": "^3.3.6",
59
- "comlink": "^4.4.2",
60
- "esbuild": "^0.28.1",
61
- "rollup-plugin-copy": "^3.5.0",
62
- "rollup-plugin-esbuild": "^6.2.1",
63
- "rollup-plugin-scss": "^4.0.1",
64
- "rollup-plugin-vue": "^6.0.0",
65
- "sass": "^1.101.0",
66
- "tslib": "^2.8.1",
67
- "typescript": "^6.0.3",
68
- "unplugin-dts": "1.0.3",
69
- "vite": "^8.1.3",
70
- "vite-plugin-comlink": "^5.3.0",
71
- "vite-plugin-commonjs": "^0.10.4",
72
- "vite-plugin-node-polyfills": "^0.28.0",
73
- "vite-plugin-static-copy": "^4.1.1",
74
- "vue": "^3.5.39",
75
- "vue-router": "^5.1.0"
76
- }
77
- }
1
+ {
2
+ "name": "xframelib",
3
+ "version": "1.1.8",
4
+ "description": "The accumulated front-end development foundation library originates from projects and serves projects.",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "typings": "dist/index.d.ts",
9
+ "type": "module",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ },
16
+ "./style.css": "./dist/index.css",
17
+ "./index.css": "./dist/index.css",
18
+ "./dist/index.css": "./dist/index.css"
19
+ },
20
+ "scripts": {
21
+ "build": "vite build",
22
+ "clean": "rimraf dist && rimraf package-lock.json && rimraf node_modules/.cache && rimraf node_modules/.vite"
23
+ },
24
+ "keywords": [
25
+ "xframelib",
26
+ "widget",
27
+ "typescript",
28
+ "hprose",
29
+ "vue",
30
+ "H5Tool",
31
+ "XWindow"
32
+ ],
33
+ "author": {
34
+ "name": "zorrowm",
35
+ "email": "zorrowm@126.com"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/zorrowm/vue-widget-template.git"
40
+ },
41
+ "homepage": "http://www.ysgis.com",
42
+ "license": "MIT",
43
+ "dependencies": {
44
+ "@hprose/io": "^3.0.10",
45
+ "@hprose/rpc-core": "^3.0.10",
46
+ "@hprose/rpc-html5": "^3.0.10",
47
+ "@iconify-icons/ant-design": "^1.2.7",
48
+ "@iconify/vue": "^5.0.1",
49
+ "@microsoft/signalr": "^10.0.0",
50
+ "axios": "^1.18.1",
51
+ "buffer": "^6.0.3",
52
+ "fflate": "^0.8.3",
53
+ "iconv-lite": "^0.7.3",
54
+ "localforage": "^1.10.0",
55
+ "loglevel": "^1.9.2",
56
+ "lru-cache": "^11.5.1",
57
+ "qs": "^6.15.3",
58
+ "spark-md5": "^3.0.2",
59
+ "tippy.js": "^6.3.7",
60
+ "xhr": "^2.6.0"
61
+ },
62
+ "devDependencies": {
63
+ "@rollup/plugin-alias": "^6.0.0",
64
+ "@rollup/plugin-commonjs": "^29.0.3",
65
+ "@rollup/plugin-terser": "^1.0.0",
66
+ "@rollup/plugin-typescript": "^12.3.0",
67
+ "@types/node": "^26.1.0",
68
+ "@vitejs/plugin-vue": "^6.0.7",
69
+ "@vue/language-core": "^3.3.6",
70
+ "comlink": "^4.4.2",
71
+ "esbuild": "^0.28.1",
72
+ "rollup-plugin-copy": "^3.5.0",
73
+ "rollup-plugin-esbuild": "^6.2.1",
74
+ "rollup-plugin-scss": "^4.0.1",
75
+ "rollup-plugin-vue": "^6.0.0",
76
+ "sass": "^1.101.0",
77
+ "tslib": "^2.8.1",
78
+ "typescript": "^6.0.3",
79
+ "unplugin-dts": "1.0.3",
80
+ "vite": "^8.1.3",
81
+ "vite-plugin-comlink": "^5.3.0",
82
+ "vite-plugin-commonjs": "^0.10.4",
83
+ "vite-plugin-node-polyfills": "^0.28.0",
84
+ "vite-plugin-static-copy": "^4.1.1",
85
+ "vue": "^3.5.39",
86
+ "vue-router": "^5.1.0"
87
+ }
88
+ }