@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.
Files changed (122) hide show
  1. package/dist/index.min.cjs +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/_virtual/_commonjsHelpers.mjs +40 -0
  4. package/es/_virtual/index.mjs +7 -0
  5. package/es/constants/index.d.ts +1 -1
  6. package/es/constants/index.mjs +1 -1
  7. package/es/enums/app-designer/index.d.ts +80 -0
  8. package/es/enums/app-designer/index.mjs +58 -0
  9. package/es/enums/appEnum.d.ts +605 -0
  10. package/es/enums/appEnum.mjs +356 -0
  11. package/es/enums/appStateEnum.d.ts +14 -0
  12. package/es/enums/appStateEnum.mjs +12 -0
  13. package/es/enums/authActionEnum.d.ts +50 -0
  14. package/es/enums/authActionEnum.mjs +55 -0
  15. package/es/enums/breakpointEnum.d.ts +18 -0
  16. package/es/enums/breakpointEnum.mjs +28 -0
  17. package/es/enums/cacheEnum.d.ts +19 -0
  18. package/es/enums/cacheEnum.mjs +23 -0
  19. package/es/enums/designEnum.d.ts +82 -0
  20. package/es/enums/designEnum.mjs +72 -0
  21. package/es/enums/exceptionEnum.d.ts +17 -0
  22. package/es/enums/exceptionEnum.mjs +19 -0
  23. package/es/enums/httpEnum.d.ts +65 -0
  24. package/es/enums/httpEnum.mjs +63 -0
  25. package/es/enums/index.d.ts +15 -0
  26. package/es/enums/index.mjs +21 -0
  27. package/es/enums/menuEnum.d.ts +35 -0
  28. package/es/enums/menuEnum.mjs +40 -0
  29. package/es/enums/page-designer/designer.d.ts +277 -0
  30. package/es/enums/page-designer/designer.mjs +330 -0
  31. package/es/enums/page-designer/index.d.ts +4 -0
  32. package/es/enums/page-designer/index.mjs +6 -0
  33. package/es/enums/page-designer/panel.d.ts +243 -0
  34. package/es/enums/page-designer/panel.mjs +195 -0
  35. package/es/enums/page-designer/toolkit.d.ts +10 -0
  36. package/es/enums/page-designer/toolkit.mjs +14 -0
  37. package/es/enums/page-designer/widget.d.ts +316 -0
  38. package/es/enums/page-designer/widget.mjs +335 -0
  39. package/es/enums/pageEnum.d.ts +11 -0
  40. package/es/enums/pageEnum.mjs +15 -0
  41. package/es/enums/processEnum.d.ts +35 -0
  42. package/es/enums/processEnum.mjs +28 -0
  43. package/es/enums/roleEnum.d.ts +4 -0
  44. package/es/enums/roleEnum.mjs +8 -0
  45. package/es/enums/sizeEnum.d.ts +5 -0
  46. package/es/enums/sizeEnum.mjs +9 -0
  47. package/es/global/gct/gct.d.ts +47 -0
  48. package/es/global/gct/gct.mjs +49 -0
  49. package/es/global/index.d.ts +1 -0
  50. package/es/global/index.mjs +3 -0
  51. package/es/index.d.ts +14 -0
  52. package/es/index.mjs +41 -0
  53. package/es/interface/controller/i-designer-controller.d.ts +116 -0
  54. package/es/interface/controller/i-designer-controller.mjs +1 -0
  55. package/es/interface/controller/index.d.ts +1 -0
  56. package/es/interface/controller/index.mjs +1 -0
  57. package/es/interface/hooks/i-designer-hooks.d.ts +26 -0
  58. package/es/interface/hooks/i-designer-hooks.mjs +3 -0
  59. package/es/interface/hooks/index.d.ts +1 -0
  60. package/es/interface/hooks/index.mjs +1 -0
  61. package/es/interface/i-import-style-map/i-import-style-map.d.ts +15 -0
  62. package/es/interface/i-import-style-map/i-import-style-map.mjs +1 -0
  63. package/es/interface/i-pinia-action/i-global-actions.d.ts +14 -0
  64. package/es/interface/i-pinia-action/i-global-actions.mjs +1 -0
  65. package/es/interface/i-pinia-getter/i-global-getters.d.ts +16 -0
  66. package/es/interface/i-pinia-getter/i-global-getters.mjs +1 -0
  67. package/es/interface/i-pinia-state/i-global-state.d.ts +15 -0
  68. package/es/interface/i-pinia-state/i-global-state.mjs +1 -0
  69. package/es/interface/index.d.ts +8 -0
  70. package/es/interface/index.mjs +6 -0
  71. package/es/interface/low-code-types/index.d.ts +4 -0
  72. package/es/interface/low-code-types/index.mjs +5 -0
  73. package/es/interface/low-code-types/modal-types.d.ts +67 -0
  74. package/es/interface/low-code-types/modal-types.mjs +3 -0
  75. package/es/interface/low-code-types/model/index.d.ts +5338 -0
  76. package/es/interface/low-code-types/model/index.mjs +1 -0
  77. package/es/interface/low-code-types/schema/index.d.ts +12 -0
  78. package/es/interface/low-code-types/schema/index.mjs +1 -0
  79. package/es/interface/low-code-types/widget-basic-types.d.ts +655 -0
  80. package/es/interface/low-code-types/widget-basic-types.mjs +3 -0
  81. package/es/interface/state/i-designer-state.d.ts +39 -0
  82. package/es/interface/state/i-designer-state.mjs +1 -0
  83. package/es/interface/state/index.d.ts +1 -0
  84. package/es/interface/state/index.mjs +1 -0
  85. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +541 -0
  86. 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
  87. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +2 -0
  88. 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
  89. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +2 -0
  90. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +47 -0
  91. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +5 -0
  92. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +24 -0
  93. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +94 -0
  94. 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
  95. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +149 -0
  96. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +227 -0
  97. package/es/provider/i-designer-provider/i-designer-provider.d.ts +102 -0
  98. package/es/provider/i-designer-provider/i-designer-provider.mjs +1 -0
  99. package/es/provider/index.d.ts +1 -0
  100. package/es/provider/index.mjs +1 -0
  101. package/es/register/designer-register/designer-register.d.ts +58 -0
  102. package/es/register/designer-register/designer-register.mjs +70 -0
  103. package/es/register/index.d.ts +2 -0
  104. package/es/register/index.mjs +4 -0
  105. package/es/register/render-register/render-register.d.ts +59 -0
  106. package/es/register/render-register/render-register.mjs +65 -0
  107. package/es/state/global-pinia-state/global-pinia-state.d.ts +16 -0
  108. package/es/state/global-pinia-state/global-pinia-state.mjs +11 -0
  109. package/es/state/index.d.ts +1 -0
  110. package/es/state/index.mjs +3 -0
  111. package/es/store/global-store.d.ts +2 -0
  112. package/es/store/global-store.mjs +22 -0
  113. package/es/store/index.d.ts +20 -0
  114. package/es/store/index.mjs +21 -0
  115. package/es/types/index.d.ts +46 -0
  116. package/es/utils/index.d.ts +2 -0
  117. package/es/utils/index.mjs +2 -0
  118. package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +17 -0
  119. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +27 -0
  120. package/es/utils/plugin-static-resource/plugin-static-resource.d.ts +41 -0
  121. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +46 -0
  122. package/package.json +15 -5
@@ -0,0 +1,116 @@
1
+ import { IDesignerHooks } from '../hooks';
2
+ import { LowCodeWidget } from '../low-code-types';
3
+ import { IDesignerState } from '../state';
4
+ /**
5
+ * 设计界面控制器接口
6
+ *
7
+ * @author zhanghanrui
8
+ * @date 2024-05-09 14:05:12
9
+ * @export
10
+ * @interface IDesignerController
11
+ */
12
+ export interface IDesignerController {
13
+ /**
14
+ * 设计界面状态
15
+ *
16
+ * @author zhanghanrui
17
+ * @date 2024-05-09 14:05:19
18
+ */
19
+ readonly state: IDesignerState;
20
+ /**
21
+ * 设计界面钩子
22
+ *
23
+ * @type {IDesignerHooks}
24
+ */
25
+ readonly hooks: IDesignerHooks;
26
+ /**
27
+ * 鼠标悬浮元素清单
28
+ *
29
+ * @author zhanghanrui
30
+ * @date 2024-05-10 10:05:47
31
+ * @type {HTMLDivElement[]}
32
+ */
33
+ readonly hoverStack: HTMLDivElement[];
34
+ /**
35
+ * 拖拽设计区容器
36
+ *
37
+ * @author zhanghanrui
38
+ * @date 2024-05-10 13:05:46
39
+ * @type {HTMLDivElement}
40
+ */
41
+ stageContainer: HTMLDivElement;
42
+ /**
43
+ * 拖拽展开定时器
44
+ *
45
+ * @type {(number | null)}
46
+ */
47
+ expansionTimer: number | null;
48
+ /**
49
+ * 设置拖拽数据
50
+ *
51
+ * @author zhanghanrui
52
+ * @date 2024-05-09 14:05:31
53
+ * @param {(IData | null)} data
54
+ */
55
+ setDragData(data: IData | null): void;
56
+ /**
57
+ * 获取当前拖拽数据
58
+ *
59
+ * @author zhanghanrui
60
+ * @date 2024-05-09 14:05:49
61
+ * @return {*} {(IData | null)}
62
+ */
63
+ getDragData(): IData | null;
64
+ /**
65
+ * 新增鼠标悬浮堆栈
66
+ *
67
+ * @author zhanghanrui
68
+ * @date 2024-05-10 10:05:02
69
+ * @param {HTMLDivElement} el
70
+ */
71
+ pushStack(el: HTMLDivElement): void;
72
+ /**
73
+ * 删除鼠标悬浮堆栈
74
+ *
75
+ * @author zhanghanrui
76
+ * @date 2024-05-08 11:05:53
77
+ * @param {HTMLDivElement} el
78
+ */
79
+ popStack(el: HTMLDivElement): void;
80
+ /**
81
+ * 重置悬浮缓存
82
+ *
83
+ * @author zhanghanrui
84
+ * @date 2024-05-15 11:05:51
85
+ */
86
+ resetStack(): void;
87
+ /**
88
+ * 添加展开容器
89
+ *
90
+ * @param {LowCodeWidget.BasicSchema[]} widgets
91
+ * @returns {*} {void}
92
+ */
93
+ setExpansion(widgets: LowCodeWidget.BasicSchema[]): void;
94
+ /**
95
+ * 取消展开容器
96
+ */
97
+ cancelExpansion(): void;
98
+ /**
99
+ * 强制设计界面重绘
100
+ */
101
+ force(): void;
102
+ /**
103
+ * 重新计算选中高亮
104
+ */
105
+ changeSelectHighlight(): void;
106
+ /**
107
+ * 重新计算悬浮高亮
108
+ */
109
+ changeHoverHighlight(): void;
110
+ /**
111
+ * 设置选中
112
+ *
113
+ * @param {string} key
114
+ */
115
+ setSelect(key: string): void;
116
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export type { IDesignerController } from './i-designer-controller';
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,26 @@
1
+ import { SyncSeriesHook } from 'qx-util';
2
+ import { LowCodeWidget } from '../low-code-types';
3
+ /**
4
+ * 设计界面钩子接口
5
+ *
6
+ * @export
7
+ * @interface IDesignerHooks
8
+ */
9
+ export interface IDesignerHooks {
10
+ /**
11
+ * 触发执行设计容器扩容展示
12
+ */
13
+ expansion: SyncSeriesHook<[], LowCodeWidget.BasicSchema[]>;
14
+ /**
15
+ * 触发选中项重选
16
+ */
17
+ selectHighlightChange: SyncSeriesHook<[]>;
18
+ /**
19
+ * 触发悬浮项重选
20
+ */
21
+ hoverHighlightChange: SyncSeriesHook<[]>;
22
+ /**
23
+ * 设置选中项
24
+ */
25
+ setSelect: SyncSeriesHook<[key: string]>;
26
+ }
@@ -0,0 +1,3 @@
1
+ import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
2
+
3
+ "use strict";
@@ -0,0 +1 @@
1
+ export type { IDesignerHooks } from './i-designer-hooks';
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * systemjs 扩展样式模块加载声明
3
+ *
4
+ * @export
5
+ * @interface IStyleIMportMap
6
+ * @extends {System.ImportMap}
7
+ */
8
+ export interface IStyleIMportMap extends System.ImportMap {
9
+ /**
10
+ * 样式静态资源相对或者绝对路径与 imports 里边对应,会在加载 import 脚本时,自动加载样式文件
11
+ *
12
+ * @type {(Record<string, string[] | string>)}
13
+ */
14
+ styles?: Record<string, string[] | string>;
15
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 全局 store 动作
3
+ *
4
+ * @export
5
+ * @interface IGlobalActions
6
+ */
7
+ export interface IGlobalActions {
8
+ /**
9
+ * 获取应用信息, todo: 等 api 包完成后,实际类型从 api 导入
10
+ *
11
+ * @returns {*} {IObject}
12
+ */
13
+ getAppInfo(): IObject;
14
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,16 @@
1
+ import { _GettersTree } from 'pinia';
2
+ import { IGlobalState } from '../i-pinia-state/i-global-state';
3
+ /**
4
+ * 全局 store 计算模式获取行为
5
+ *
6
+ * @export
7
+ * @interface IGlobalGetters
8
+ * @extends {_GettersTree<IGlobalState>}
9
+ */
10
+ export interface IGlobalGetters extends _GettersTree<IGlobalState> {
11
+ /**
12
+ * 获取应用信息,, todo: 等 api 包完成后,实际类型从 api 导入
13
+ *
14
+ */
15
+ getAppInfo: () => IObject;
16
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,15 @@
1
+ import { StateTree } from 'pinia';
2
+ /**
3
+ * 全局 store 状态
4
+ *
5
+ * @export
6
+ * @interface IGlobalState
7
+ */
8
+ export interface IGlobalState extends StateTree {
9
+ /**
10
+ * 应用信息, todo: 等 api 包完成后,实际类型从 api 导入
11
+ *
12
+ * @type {IObject}
13
+ */
14
+ appInfo: IObject;
15
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,8 @@
1
+ export * from './controller';
2
+ export * from './hooks';
3
+ export type { IStyleIMportMap } from './i-import-style-map/i-import-style-map';
4
+ export type { IGlobalActions } from './i-pinia-action/i-global-actions';
5
+ export type { IGlobalGetters } from './i-pinia-getter/i-global-getters';
6
+ export type { IGlobalState } from './i-pinia-state/i-global-state';
7
+ export * from './low-code-types';
8
+ export * from './state';
@@ -0,0 +1,6 @@
1
+ import './controller/index.mjs';
2
+ import './hooks/index.mjs';
3
+ import './low-code-types/index.mjs';
4
+ import './state/index.mjs';
5
+
6
+ "use strict";
@@ -0,0 +1,4 @@
1
+ export * from './model';
2
+ export * from './schema';
3
+ export * from './modal-types';
4
+ export type { LowCodeWidget, IVue3DndItemHooks, fieldWidgetSchema, validateRule, } from './widget-basic-types';
@@ -0,0 +1,5 @@
1
+ import './model/index.mjs';
2
+ import './schema/index.mjs';
3
+ import './modal-types.mjs';
4
+
5
+ "use strict";
@@ -0,0 +1,67 @@
1
+ import { BuiltinType, Platform } from '../../enums';
2
+ import { LowCodeWidget } from './widget-basic-types';
3
+ export declare namespace LowCodeModal {
4
+ interface Modal {
5
+ id: string;
6
+ /**系统用的name */
7
+ alias: string;
8
+ name: string;
9
+ /**默认是WEB 添加的时候会根据当前环境改变 */
10
+ platform: Platform;
11
+ /**用户新建编辑的name */
12
+ modalName: string;
13
+ /**自定义展示组件的名字 */
14
+ compName?: string;
15
+ /**自定义展示组件key的名字 */
16
+ compKey?: string;
17
+ type: BuiltinType.MODAL;
18
+ js: string;
19
+ css: string;
20
+ children: [ModalBody, ModalFooter, ModalBottomButton];
21
+ props: ModalProps;
22
+ events: LowCodeWidget.BasicEvents;
23
+ i18n?: Record<string, string>;
24
+ /** 样式 */
25
+ style: Partial<LowCodeWidget.BasicStyle>;
26
+ /**运行时需要的Js Code */
27
+ runJs?: string;
28
+ los?: Record<string, IData>;
29
+ icon: string;
30
+ /** 是否是字段类型 */
31
+ isField: boolean;
32
+ }
33
+ interface ModalBody {
34
+ id: string;
35
+ type: BuiltinType.MODAL_BODY;
36
+ children: LowCodeWidget.BasicSchema[];
37
+ }
38
+ interface ModalFooter {
39
+ id: string;
40
+ type: BuiltinType.MODAL_FOOTER;
41
+ children: LowCodeWidget.BasicSchema[];
42
+ }
43
+ interface ModalBottomButton {
44
+ id: string;
45
+ type: BuiltinType.BottomButtonContainer;
46
+ children: LowCodeWidget.BasicSchema[];
47
+ }
48
+ interface ModalProps extends LowCodeWidget.CommonProps {
49
+ modalTitle?: string;
50
+ /** web端弹框宽度单位 */
51
+ unitType: 'px' | '%';
52
+ /** web端弹框宽度 */
53
+ modalWidth: number;
54
+ /** mobile端弹框宽度单位 */
55
+ mUnitType: '%';
56
+ /** mobile端弹框宽度 */
57
+ mModalWidth: number;
58
+ /** 是否子表下的模态框 */
59
+ isSubTableModal?: boolean;
60
+ /** 关联子表 id */
61
+ bindSubTableId?: string;
62
+ /** 子表弹框新建标题名称 */
63
+ createModalTitle?: string;
64
+ /** 子表弹框编辑标题名称 */
65
+ editModalTitle?: string;
66
+ }
67
+ }
@@ -0,0 +1,3 @@
1
+ import '../../enums/index.mjs';
2
+
3
+ "use strict";