@gct-paas/core 0.0.1-dev.6 → 0.0.1-dev.7
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/index.min.cjs +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/_virtual/_commonjsHelpers.mjs +40 -0
- package/es/_virtual/index.mjs +7 -0
- package/es/constants/index.d.ts +1 -1
- package/es/constants/index.mjs +1 -1
- package/es/enums/app-designer/index.d.ts +80 -0
- package/es/enums/app-designer/index.mjs +58 -0
- package/es/enums/appEnum.d.ts +605 -0
- package/es/enums/appEnum.mjs +356 -0
- package/es/enums/appStateEnum.d.ts +14 -0
- package/es/enums/appStateEnum.mjs +12 -0
- package/es/enums/authActionEnum.d.ts +50 -0
- package/es/enums/authActionEnum.mjs +55 -0
- package/es/enums/breakpointEnum.d.ts +18 -0
- package/es/enums/breakpointEnum.mjs +28 -0
- package/es/enums/cacheEnum.d.ts +19 -0
- package/es/enums/cacheEnum.mjs +23 -0
- package/es/enums/designEnum.d.ts +82 -0
- package/es/enums/designEnum.mjs +72 -0
- package/es/enums/exceptionEnum.d.ts +17 -0
- package/es/enums/exceptionEnum.mjs +19 -0
- package/es/enums/httpEnum.d.ts +65 -0
- package/es/enums/httpEnum.mjs +63 -0
- package/es/enums/index.d.ts +15 -0
- package/es/enums/index.mjs +21 -0
- package/es/enums/menuEnum.d.ts +35 -0
- package/es/enums/menuEnum.mjs +40 -0
- package/es/enums/page-designer/designer.d.ts +277 -0
- package/es/enums/page-designer/designer.mjs +330 -0
- package/es/enums/page-designer/index.d.ts +4 -0
- package/es/enums/page-designer/index.mjs +6 -0
- package/es/enums/page-designer/panel.d.ts +243 -0
- package/es/enums/page-designer/panel.mjs +195 -0
- package/es/enums/page-designer/toolkit.d.ts +10 -0
- package/es/enums/page-designer/toolkit.mjs +14 -0
- package/es/enums/page-designer/widget.d.ts +316 -0
- package/es/enums/page-designer/widget.mjs +335 -0
- package/es/enums/pageEnum.d.ts +11 -0
- package/es/enums/pageEnum.mjs +15 -0
- package/es/enums/processEnum.d.ts +35 -0
- package/es/enums/processEnum.mjs +28 -0
- package/es/enums/roleEnum.d.ts +4 -0
- package/es/enums/roleEnum.mjs +8 -0
- package/es/enums/sizeEnum.d.ts +5 -0
- package/es/enums/sizeEnum.mjs +9 -0
- package/es/global/gct/gct.d.ts +47 -0
- package/es/global/gct/gct.mjs +49 -0
- package/es/global/index.d.ts +1 -0
- package/es/global/index.mjs +3 -0
- package/es/index.d.ts +14 -0
- package/es/index.mjs +41 -0
- package/es/interface/controller/i-designer-controller.d.ts +116 -0
- package/es/interface/controller/i-designer-controller.mjs +1 -0
- package/es/interface/controller/index.d.ts +1 -0
- package/es/interface/controller/index.mjs +1 -0
- package/es/interface/hooks/i-designer-hooks.d.ts +26 -0
- package/es/interface/hooks/i-designer-hooks.mjs +3 -0
- package/es/interface/hooks/index.d.ts +1 -0
- package/es/interface/hooks/index.mjs +1 -0
- package/es/interface/i-import-style-map/i-import-style-map.d.ts +15 -0
- package/es/interface/i-import-style-map/i-import-style-map.mjs +1 -0
- package/es/interface/i-pinia-action/i-global-actions.d.ts +14 -0
- package/es/interface/i-pinia-action/i-global-actions.mjs +1 -0
- package/es/interface/i-pinia-getter/i-global-getters.d.ts +16 -0
- package/es/interface/i-pinia-getter/i-global-getters.mjs +1 -0
- package/es/interface/i-pinia-state/i-global-state.d.ts +15 -0
- package/es/interface/i-pinia-state/i-global-state.mjs +1 -0
- package/es/interface/index.d.ts +8 -0
- package/es/interface/index.mjs +6 -0
- package/es/interface/low-code-types/index.d.ts +4 -0
- package/es/interface/low-code-types/index.mjs +5 -0
- package/es/interface/low-code-types/modal-types.d.ts +67 -0
- package/es/interface/low-code-types/modal-types.mjs +3 -0
- package/es/interface/low-code-types/model/index.d.ts +5338 -0
- package/es/interface/low-code-types/model/index.mjs +1 -0
- package/es/interface/low-code-types/schema/index.d.ts +12 -0
- package/es/interface/low-code-types/schema/index.mjs +1 -0
- package/es/interface/low-code-types/widget-basic-types.d.ts +655 -0
- package/es/interface/low-code-types/widget-basic-types.mjs +3 -0
- package/es/interface/state/i-designer-state.d.ts +39 -0
- package/es/interface/state/i-designer-state.mjs +1 -0
- package/es/interface/state/index.d.ts +1 -0
- package/es/interface/state/index.mjs +1 -0
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +541 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +73 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +2 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +100 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +2 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +47 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +5 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +24 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +94 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +146 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +149 -0
- package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +227 -0
- package/es/provider/i-designer-provider/i-designer-provider.d.ts +102 -0
- package/es/provider/i-designer-provider/i-designer-provider.mjs +1 -0
- package/es/provider/index.d.ts +1 -0
- package/es/provider/index.mjs +1 -0
- package/es/register/designer-register/designer-register.d.ts +58 -0
- package/es/register/designer-register/designer-register.mjs +70 -0
- package/es/register/index.d.ts +2 -0
- package/es/register/index.mjs +4 -0
- package/es/register/render-register/render-register.d.ts +59 -0
- package/es/register/render-register/render-register.mjs +65 -0
- package/es/state/global-pinia-state/global-pinia-state.d.ts +16 -0
- package/es/state/global-pinia-state/global-pinia-state.mjs +11 -0
- package/es/state/index.d.ts +1 -0
- package/es/state/index.mjs +3 -0
- package/es/store/global-store.d.ts +2 -0
- package/es/store/global-store.mjs +22 -0
- package/es/store/index.d.ts +20 -0
- package/es/store/index.mjs +21 -0
- package/es/types/index.d.ts +46 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +17 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +27 -0
- package/es/utils/plugin-static-resource/plugin-static-resource.d.ts +41 -0
- package/es/utils/plugin-static-resource/plugin-static-resource.mjs +46 -0
- package/package.json +15 -5
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createPinia, setActivePinia } from 'pinia';
|
|
2
|
+
import { useGlobalStore } from './global-store.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
class GlobalStoreUtil {
|
|
6
|
+
/**
|
|
7
|
+
* 全局唯一实例
|
|
8
|
+
*/
|
|
9
|
+
pinia = createPinia();
|
|
10
|
+
/**
|
|
11
|
+
* 全局状态管理实例
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
store;
|
|
15
|
+
constructor() {
|
|
16
|
+
setActivePinia(this.pinia);
|
|
17
|
+
this.store = useGlobalStore();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { GlobalStoreUtil };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import 'systemjs';
|
|
3
|
+
import type { GctGlobal } from '../global';
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
/**
|
|
7
|
+
* paas 平台全局对象
|
|
8
|
+
*/
|
|
9
|
+
const gct_paas: GctGlobal;
|
|
10
|
+
|
|
11
|
+
interface Window {
|
|
12
|
+
/**
|
|
13
|
+
* paas 平台全局对象
|
|
14
|
+
*
|
|
15
|
+
* @type {GctGlobal}
|
|
16
|
+
*/
|
|
17
|
+
gct_paas: GctGlobal;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 任意参数对象
|
|
22
|
+
*
|
|
23
|
+
* @author zhanghanrui
|
|
24
|
+
* @date 2024-03-19 19:03:20
|
|
25
|
+
* @interface IParams
|
|
26
|
+
*/
|
|
27
|
+
type IParams = Record<string | symbol, any>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 任意数据对象
|
|
31
|
+
*
|
|
32
|
+
* @author zhanghanrui
|
|
33
|
+
* @date 2024-03-19 19:03:25
|
|
34
|
+
* @interface IData
|
|
35
|
+
*/
|
|
36
|
+
type IData = Record<string | symbol, any>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 任意对象结构
|
|
40
|
+
*
|
|
41
|
+
* @author zhanghanrui
|
|
42
|
+
* @date 2024-03-19 19:03:46
|
|
43
|
+
* @interface IObject
|
|
44
|
+
*/
|
|
45
|
+
type IObject = Record<string | symbol, any>;
|
|
46
|
+
}
|
package/es/utils/index.d.ts
CHANGED
package/es/utils/index.mjs
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IStyleIMportMap } from '../../interface';
|
|
2
|
+
/**
|
|
3
|
+
* 插件包处理工具类
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @class PluginPgkUtil
|
|
7
|
+
*/
|
|
8
|
+
export declare class PluginPgkUtil {
|
|
9
|
+
/**
|
|
10
|
+
* 批量加载 system js 插件包
|
|
11
|
+
*
|
|
12
|
+
* @static
|
|
13
|
+
* @param {IStyleIMportMap[]} plugins
|
|
14
|
+
* @returns {*}
|
|
15
|
+
*/
|
|
16
|
+
static loadPlugins(plugins: IStyleIMportMap[]): Promise<unknown[]>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
class PluginPgkUtil {
|
|
3
|
+
/**
|
|
4
|
+
* 批量加载 system js 插件包
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @param {IStyleIMportMap[]} plugins
|
|
8
|
+
* @returns {*}
|
|
9
|
+
*/
|
|
10
|
+
static async loadPlugins(plugins) {
|
|
11
|
+
if (plugins.length > 0) {
|
|
12
|
+
const all = [];
|
|
13
|
+
plugins.forEach((plugin) => {
|
|
14
|
+
System.addImportMap(plugin);
|
|
15
|
+
if (plugin.imports) {
|
|
16
|
+
Object.keys(plugin.imports).forEach((key) => {
|
|
17
|
+
all.push(System.import(key));
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return Promise.all(all);
|
|
22
|
+
}
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { PluginPgkUtil };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 插件静态资源工具类
|
|
3
|
+
*
|
|
4
|
+
* @author chitanda
|
|
5
|
+
* @date 2022-11-03 10:11:08
|
|
6
|
+
* @export
|
|
7
|
+
* @class PluginStaticResource
|
|
8
|
+
*/
|
|
9
|
+
export declare class PluginStaticResource {
|
|
10
|
+
private isDev;
|
|
11
|
+
/**
|
|
12
|
+
* 计算出的静态资源跟路径
|
|
13
|
+
*
|
|
14
|
+
* @protected
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
protected baseDir: string;
|
|
18
|
+
/**
|
|
19
|
+
* mete 路径解析对象
|
|
20
|
+
*
|
|
21
|
+
* @author chitanda
|
|
22
|
+
* @date 2023-07-06 20:07:36
|
|
23
|
+
* @protected
|
|
24
|
+
* @type {URL}
|
|
25
|
+
*/
|
|
26
|
+
protected url: URL;
|
|
27
|
+
/**
|
|
28
|
+
* 插件静态资源工具类.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} mateUrl
|
|
31
|
+
* @param {boolean} [isDev=false]
|
|
32
|
+
*/
|
|
33
|
+
constructor(mateUrl: string, isDev?: boolean);
|
|
34
|
+
/**
|
|
35
|
+
* 合并输出静态资源目录
|
|
36
|
+
*
|
|
37
|
+
* @param {string} pathStr
|
|
38
|
+
* @return {*} {string}
|
|
39
|
+
*/
|
|
40
|
+
dir(pathStr: string): string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import path from '../../_virtual/index.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
class PluginStaticResource {
|
|
5
|
+
/**
|
|
6
|
+
* 插件静态资源工具类.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} mateUrl
|
|
9
|
+
* @param {boolean} [isDev=false]
|
|
10
|
+
*/
|
|
11
|
+
constructor(mateUrl, isDev = false) {
|
|
12
|
+
this.isDev = isDev;
|
|
13
|
+
this.url = new URL(mateUrl);
|
|
14
|
+
this.baseDir = path.dirname(this.url.pathname);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 计算出的静态资源跟路径
|
|
18
|
+
*
|
|
19
|
+
* @protected
|
|
20
|
+
* @type {string}
|
|
21
|
+
*/
|
|
22
|
+
baseDir;
|
|
23
|
+
/**
|
|
24
|
+
* mete 路径解析对象
|
|
25
|
+
*
|
|
26
|
+
* @author chitanda
|
|
27
|
+
* @date 2023-07-06 20:07:36
|
|
28
|
+
* @protected
|
|
29
|
+
* @type {URL}
|
|
30
|
+
*/
|
|
31
|
+
url;
|
|
32
|
+
/**
|
|
33
|
+
* 合并输出静态资源目录
|
|
34
|
+
*
|
|
35
|
+
* @param {string} pathStr
|
|
36
|
+
* @return {*} {string}
|
|
37
|
+
*/
|
|
38
|
+
dir(pathStr) {
|
|
39
|
+
if (this.isDev === true) {
|
|
40
|
+
return pathStr;
|
|
41
|
+
}
|
|
42
|
+
return this.url.origin + path.resolve(this.baseDir, pathStr);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { PluginStaticResource };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"main": "dist/index.min.cjs",
|
|
@@ -38,16 +38,26 @@
|
|
|
38
38
|
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
39
39
|
"publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
|
|
40
40
|
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
|
|
41
|
-
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
41
|
+
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/",
|
|
42
|
+
"apis": "node ./src/service/index.js"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"
|
|
45
|
+
"@gct-paas/api": "0.0.1-dev.7",
|
|
46
|
+
"axios": "^1.7.9",
|
|
47
|
+
"path-browserify": "^1.0.1",
|
|
48
|
+
"pinia": "^2.3.0",
|
|
49
|
+
"qx-util": "^0.4.8",
|
|
50
|
+
"systemjs": "^6.15.1",
|
|
51
|
+
"vue": "^3.5.13",
|
|
52
|
+
"vue-i18n": "9.6.5"
|
|
45
53
|
},
|
|
46
54
|
"devDependencies": {
|
|
47
|
-
"@gct-paas/cli": "0.0.1-dev.
|
|
55
|
+
"@gct-paas/cli": "0.0.1-dev.7",
|
|
56
|
+
"@types/path-browserify": "^1.0.3",
|
|
57
|
+
"fs-extra": "^11.2.0"
|
|
48
58
|
},
|
|
49
59
|
"peerDependencies": {
|
|
50
60
|
"vue": "^3.x"
|
|
51
61
|
},
|
|
52
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "b467be0657258b6b09979789977bcb3f141bdb9c"
|
|
53
63
|
}
|