super-page-designer 2.0.5 → 2.0.9

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 (30) hide show
  1. package/dist/es/components/design/utils/common-util.d.ts +24 -0
  2. package/dist/es/components/design/utils/container-design-util.d.ts +23 -0
  3. package/dist/es/components/design/utils/data-table-util.d.ts +29 -0
  4. package/dist/es/components/design/utils/form-design-util.d.ts +177 -0
  5. package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +264 -0
  6. package/dist/es/components/design/utils/interfaces/select.d.ts +7 -0
  7. package/dist/es/components/design/utils/page-design-util.d.ts +3 -0
  8. package/dist/es/components/design/utils/page-explore-util.d.ts +14 -0
  9. package/dist/es/components/design/utils/page-helper-util.d.ts +36 -0
  10. package/dist/es/components/design/utils/page-permission-util.d.ts +38 -0
  11. package/dist/es/components/design/utils/page-table-util.d.ts +30 -0
  12. package/dist/es/components/design/utils/system.d.ts +6 -0
  13. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.d.ts +12 -0
  15. package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +1 -1
  17. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  18. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +1 -1
  19. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +2 -2
  20. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +2 -2
  21. package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.d.ts +1 -1
  22. package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue.js +1 -75
  23. package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue2.js +75 -1
  24. package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue3.js +2 -2
  25. package/dist/es/components/design/views/assemblys/form/common/title.vue.js +2 -2
  26. package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue.js +1 -1
  27. package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +1 -1
  28. package/dist/es/stores/page-store.d.ts +23 -0
  29. package/dist/es/style.css +75 -75
  30. package/package.json +4 -5
@@ -0,0 +1,24 @@
1
+ import { Component } from './interfaces/page-design-types';
2
+
3
+ /**
4
+ * 深度复制
5
+ * @returns
6
+ */
7
+ export declare function deepCopy(srcObj: any): any;
8
+ /**
9
+ * 获取路径的请求地址
10
+ * 从Src下去获取
11
+ * @param {*} url
12
+ * @returns
13
+ */
14
+ export declare function getSrcFileUrl(url: string): string;
15
+ /**
16
+ * 获取UUID,去掉破折号
17
+ * @returns
18
+ */
19
+ export declare function getUuidv4(): string;
20
+ /**
21
+ * 根据UUID获取页面设计对象中的组件
22
+ * @returns
23
+ */
24
+ export declare function findDesignItemByUuid(data: any, uuid: string): Component | null;
@@ -0,0 +1,23 @@
1
+ import { PageDesign } from './interfaces/page-design-types';
2
+
3
+ /**
4
+ * 计算页面所需的样式
5
+ * @param configure
6
+ * @param designStyle
7
+ * @param designClass
8
+ */
9
+ export declare function caculatePageStyle(configure: PageDesign, designStyle: any, designClass: any): void;
10
+ /**
11
+ * 计算通用的样式
12
+ * @param configure
13
+ * @param designStyle
14
+ * @param designClass
15
+ */
16
+ export declare function caculateCommonStyle(configure: any, designStyle: any, designClass: any): void;
17
+ /**
18
+ * 样式转换
19
+ * @param configure
20
+ * @param designStyle 动态样式名
21
+ * @param designClass 动态class
22
+ */
23
+ export declare function caculateComponentStyle(configure: any, designStyle: any, designClass: any, designHeaderStyle: any): void;
@@ -0,0 +1,29 @@
1
+ export declare function formatConditionList(conditionList: any, attributeMap: [], fieldMap: []): string;
2
+ export declare function getOperators(item: object): {
3
+ name: string;
4
+ label: string;
5
+ }[];
6
+ export declare function addColumnToGroupHeaders(column: any, parentUuid: any, groupHeaders: any): void;
7
+ /**
8
+ * 设置字段在组合表头中的顺序
9
+ * @param parentUuid
10
+ * @param draggingGroupData
11
+ * @param groupHeaders
12
+ */
13
+ export declare function setGroupHeaderDataDisplayOrder(parentUuid: any, draggingGroupData: any, groupHeaders: any): void;
14
+ /**
15
+ * 根据字段uuid删除组合表头
16
+ * @param groupHeaders
17
+ * @param columnUuid
18
+ */
19
+ export declare function deleteGroupHeaderByColumnUuid(groupHeaders: any, columnUuid: any): void;
20
+ export declare function getTopGroupHeaderList(groupHeaders: any): any[];
21
+ export declare function isLeafNode(headerCol: any, groupHeaders: any): boolean;
22
+ /**
23
+ * 获得子节点
24
+ * @param parentUuid
25
+ * @param groupHeaders
26
+ * @returns
27
+ */
28
+ export declare function getChildrenList(parentUuid: any, groupHeaders: any): any[];
29
+ export declare function getColumnsWithGroupHeader(tableConfigure: any): any[];
@@ -0,0 +1,177 @@
1
+ import { Component } from './interfaces/page-design-types';
2
+
3
+ /**
4
+ * @description: 转换组件样式
5
+ * @Date: 2024-04-18 15:26:55
6
+ * @param {*}
7
+ * @return {*}
8
+ */
9
+ export declare function caculateDetailComponentStyle(configure: any, designStyle: any, designClass: any, designHeaderStyle?: any): void;
10
+ /**
11
+ * @description: 转换组件属性
12
+ * @Date: 2024-04-18 15:28:00
13
+ * @param {*}
14
+ * @return {*}
15
+ */
16
+ export declare function caculateComponentProps(configure: any, property: any): void;
17
+ /**
18
+ * 移除组件的数据源对象
19
+ * @param configure
20
+ */
21
+ export declare function removComponentOptionConfigs(configure: Component): void;
22
+ /**
23
+ * @description: 转换table column样式
24
+ * @Date: 2024-04-18 15:26:55
25
+ * @param {*}
26
+ * @return {*}
27
+ */
28
+ export declare function columnTittleStyle(configure: any): void;
29
+ export declare function columnCustomTittleClass(configure: any): void;
30
+ export declare function columnContentStyle(configure: any): void;
31
+ export declare function columnContentClass(configure: any): void;
32
+ export declare function setDefaultValue(baseProperty: object, setting: object): void;
33
+ /**
34
+ *
35
+ * // pageDesign中rules的格式:
36
+ // {prop1:[{
37
+ // required: true,
38
+ // message: 'xx必填',
39
+ // label:'xx'
40
+ // },
41
+ // {
42
+ // type: 'number',
43
+ // message: 'xxx格式不匹配',
44
+ // label:'xx'
45
+ // },
46
+ // {
47
+ // pattern: '\d\',
48
+ // message: 'xxx格式不匹配',
49
+ // label:'xx'
50
+ // }],
51
+ // prop2:[{
52
+ // required: true,
53
+ // message: 'xxx必填',
54
+ // label:'xx'
55
+ // },
56
+ // {
57
+ // type: 'number',
58
+ // message: 'xxx格式不匹配',
59
+ // label:'xx'
60
+ // },
61
+ // {
62
+ // pattern: '\d\',
63
+ // message: 'xxx格式不匹配',
64
+ // label:'xx'
65
+ // }],
66
+ // ... ...
67
+ // }
68
+
69
+ 必填的格式是:{
70
+ // required: true,
71
+ // message: 'xx必填',
72
+ // label:'xx'
73
+ // }
74
+ * @param pageDesign
75
+ * @param configure
76
+ * @param isRequired
77
+ */
78
+ export declare function watchRequiredValidate(pageDesign: any, configure: any, isRequired: any, fieldInfo: any): void;
79
+ /**
80
+ *
81
+ * // pageDesign中rules的格式:
82
+ // {prop1:[{
83
+ // required: true,
84
+ // message: 'xx必填',
85
+ // label:'xx'
86
+ // },
87
+ // {
88
+ // type: 'number',
89
+ // message: 'xxx格式不匹配',
90
+ // label:'xx'
91
+ // },
92
+ // {
93
+ // pattern: '\d\',
94
+ // message: 'xxx格式不匹配',
95
+ // label:'xx'
96
+ // }],
97
+ // prop2:[{
98
+ // required: true,
99
+ // message: 'xxx必填',
100
+ // label:'xx'
101
+ // },
102
+ // {
103
+ // type: 'number',
104
+ // message: 'xxx格式不匹配',
105
+ // label:'xx'
106
+ // },
107
+ // {
108
+ // pattern: '\d\',
109
+ // message: 'xxx格式不匹配',
110
+ // label:'xx'
111
+ // }],
112
+ // ... ...
113
+ // }
114
+
115
+ 校验类型 的格式是: {
116
+ type: 'number',
117
+ message: 'xxx格式不匹配',
118
+ label:'xx'
119
+ }
120
+ * @param pageDesign
121
+ * @param configure
122
+ * @param type string、integer、number、boolean、float、email、ip
123
+ */
124
+ export declare function watchValidateType(pageDesign: any, configure: any, type: any, fieldInfo: any): void;
125
+ /**
126
+ *
127
+ * // pageDesign中rules的格式:
128
+ // {prop1:[{
129
+ // required: true,
130
+ // message: 'xx必填',
131
+ // label:'xx'
132
+ // },
133
+ // {
134
+ // type: 'number',
135
+ // message: 'xxx格式不匹配',
136
+ // label:'xx'
137
+ // },
138
+ // {
139
+ // pattern: '\d\',
140
+ // message: 'xxx格式不匹配',
141
+ // label:'xx'
142
+ // }],
143
+ // prop2:[{
144
+ // required: true,
145
+ // message: 'xxx必填',
146
+ // label:'xx'
147
+ // },
148
+ // {
149
+ // type: 'number',
150
+ // message: 'xxx格式不匹配',
151
+ // label:'xx'
152
+ // },
153
+ // {
154
+ // pattern: '\d\',
155
+ // message: 'xxx格式不匹配',
156
+ // label:'xx'
157
+ // }],
158
+ // ... ...
159
+ // }
160
+
161
+ 正则表达式 的格式是: {
162
+ pattern: '\d\',
163
+ message: 'xxx格式不匹配',
164
+ label:'xx'
165
+ }
166
+ * @param pageDesign
167
+ * @param configure
168
+ * @param pattern 正则表达式
169
+ */
170
+ export declare function watchPatternValidate(pageDesign: any, configure: any, pattern: any, fieldInfo: any): void;
171
+ export declare function watchMaxOrMinValidate(pageDesign: any, configure: any, type: any, isEnable: any, value: any, fieldInfo: any): void;
172
+ /**
173
+ * 删除指定组件的校验规则
174
+ * @param pageDesign
175
+ * @param configure
176
+ */
177
+ export declare function deleteRule(pageDesign: any, configure: any): void;
@@ -0,0 +1,264 @@
1
+ /**
2
+ * 状态
3
+ */
4
+ export declare enum EnableStates {
5
+ ENABLE = "ENABLE",
6
+ DISABLE = "DISABLE"
7
+ }
8
+ /**
9
+ * 屏幕尺寸
10
+ */
11
+ export declare enum PageDimensions {
12
+ PC = "pc",
13
+ IPAD = "ipad",
14
+ PHONE = "phone"
15
+ }
16
+ /**
17
+ * 组件对象
18
+ */
19
+ export interface Component extends Object {
20
+ uuid: string;
21
+ name: string;
22
+ label: string;
23
+ desc?: string;
24
+ icon?: string;
25
+ version?: number;
26
+ releaseDate?: string;
27
+ creator?: string;
28
+ auditor?: string;
29
+ snapshot?: string;
30
+ docHref?: string;
31
+ parent?: Component;
32
+ items?: Component[];
33
+ props?: any;
34
+ style?: any;
35
+ events?: ComponentEvent[];
36
+ methods?: ComponentMethod[];
37
+ advance?: any;
38
+ runtime?: any;
39
+ [otherProp: string]: any;
40
+ }
41
+ /**
42
+ * 页面对象
43
+ */
44
+ export interface PageDesign extends Component {
45
+ systemCode: string;
46
+ systemVersion: number;
47
+ code: string;
48
+ dimensions?: string;
49
+ tableSysCode?: string;
50
+ tableSysVersion?: number;
51
+ tableName: string;
52
+ tableAlias: string;
53
+ workflowCode: string;
54
+ workflowVersion: number;
55
+ variables?: CustomVariable[];
56
+ logicDesigns?: object[];
57
+ modelFields?: ModelField[];
58
+ pagePermissions?: PagePermission[];
59
+ initOptionConfigs?: Array<any>;
60
+ rules?: object;
61
+ tableUuids?: Array<any>;
62
+ tableNames?: Array<any>;
63
+ formNoRuleCode?: string;
64
+ judgeHeavyList?: Array<any>;
65
+ conversionCodes?: Array<any>;
66
+ pageType?: string;
67
+ beanName?: string;
68
+ importBeanName?: string;
69
+ label: string;
70
+ notIdInitializationList?: Array<any>;
71
+ subTablePageInfo?: object;
72
+ customValidatorUuids?: Array<string>;
73
+ customEvents?: Array<any>;
74
+ tableRuntimes?: {
75
+ [uuid: string]: object;
76
+ };
77
+ i18nLabels?: Array<object>;
78
+ }
79
+ /**
80
+ * 页面资源
81
+ */
82
+ export interface PagePermission extends Object {
83
+ uuid: string;
84
+ simpleCode: string;
85
+ code: string;
86
+ name: string;
87
+ funcType: 'AUTHENTICATED' | 'ANONYMOUS' | 'AUTHORIZED';
88
+ path: string;
89
+ type: 'serivce' | 'custom' | 'standard';
90
+ source: 'auto' | 'custom';
91
+ uuids: Array<string> | undefined;
92
+ }
93
+ /**
94
+ * 事件对象
95
+ */
96
+ export interface ComponentEvent extends Object {
97
+ name: string;
98
+ label: string;
99
+ params?: ComponentEventParam[];
100
+ }
101
+ /**
102
+ * 事件对象
103
+ */
104
+ export interface ComponentEventParam extends Object {
105
+ name: string;
106
+ label: string;
107
+ type: string;
108
+ }
109
+ /**
110
+ * 方法对象
111
+ */
112
+ export interface ComponentMethod extends Object {
113
+ name: string;
114
+ label: string;
115
+ inParams: ComponentEventParam[];
116
+ outParams: ComponentEventParam[];
117
+ }
118
+ /**
119
+ * 方法参数描述
120
+ */
121
+ export interface ComponentMethodParam extends Object {
122
+ name: string;
123
+ type: string;
124
+ }
125
+ /**
126
+ * 自定义变量对象
127
+ */
128
+ export interface CustomVariable extends Object {
129
+ name: string;
130
+ alias: string;
131
+ defaultValue?: string;
132
+ isArrayElement?: boolean;
133
+ items?: CustomVariable[];
134
+ [otherProp: string]: any;
135
+ }
136
+ /**
137
+ * 自定义变量对象
138
+ */
139
+ export interface ModelField extends Object {
140
+ name: string;
141
+ alias: string;
142
+ dataType: string;
143
+ displayOrder: number;
144
+ }
145
+ /**
146
+ * 前端逻辑对象
147
+ */
148
+ export interface LogicDesign extends Object {
149
+ code: string;
150
+ name: string;
151
+ props?: any;
152
+ variables?: CustomVariable[];
153
+ flow: {
154
+ nodes?: LogicNode[];
155
+ };
156
+ triggerSource?: LogicTriggerSource[];
157
+ }
158
+ /**
159
+ * 前端逻辑节点对象
160
+ */
161
+ export interface LogicNode extends Object {
162
+ id: string;
163
+ type: string;
164
+ x: number;
165
+ y: number;
166
+ properties?: any;
167
+ }
168
+ /**
169
+ * 前端逻辑节点触发来源
170
+ */
171
+ export interface LogicTriggerSource extends Object {
172
+ assemblyIndex: number;
173
+ assemblyType: string;
174
+ triggerType: string;
175
+ triggerName: string;
176
+ }
177
+ export interface ListView {
178
+ code: string;
179
+ name: string;
180
+ totalType: string;
181
+ remark: string;
182
+ pagination: boolean;
183
+ rowNum: number;
184
+ optionalRows: string;
185
+ layout: string;
186
+ startQuery: string;
187
+ popUp: boolean;
188
+ isAdvancedQuery?: boolean;
189
+ isSearchFaint?: boolean;
190
+ isInitializationQuery: boolean;
191
+ defaultQueryCriteria: string;
192
+ queryLabelPosition: string;
193
+ editable: boolean;
194
+ columnWidth?: number;
195
+ fieldForOrder?: string;
196
+ urlToSaveOrder?: string;
197
+ urlToSaveRow?: string;
198
+ urlToDeleteRow?: string;
199
+ urlToListData: string;
200
+ isSql: boolean;
201
+ customConfig: boolean;
202
+ tableName: string;
203
+ systemCode?: string;
204
+ isDefaultListView?: boolean;
205
+ totalable: boolean;
206
+ defaultSortField: string;
207
+ titleAlign: string;
208
+ contAlign: string;
209
+ /**
210
+ * 显示效果
211
+ * default 默认
212
+ * covered 铺满
213
+ */
214
+ displayEffect: string;
215
+ imageName?: string;
216
+ imageUuid?: string;
217
+ isDragColumn?: boolean;
218
+ border?: boolean;
219
+ i18nKey?: string;
220
+ items?: any;
221
+ groupHeaders?: any;
222
+ configure: string;
223
+ }
224
+ export interface ListColumn {
225
+ headerName: string;
226
+ prop: string;
227
+ width: number;
228
+ listColumnSort: string;
229
+ filterable: boolean;
230
+ visible: boolean;
231
+ exportable: boolean;
232
+ total: boolean;
233
+ listColumnFixed: string;
234
+ format: string;
235
+ valueSet: string;
236
+ querySettingName: string;
237
+ queryMatching: string;
238
+ querySetting: string;
239
+ editable: boolean;
240
+ defaultValue: string;
241
+ controlName: string;
242
+ controlConfig: string;
243
+ eventType: string;
244
+ /**
245
+ * 显示顺序,多层级关系,可能值有重复
246
+ * 如有第一层级的顺序1,有第二层级的顺序1
247
+ */
248
+ displayOrder: number;
249
+ fileSet: string;
250
+ orgTreeSet: string;
251
+ dynamicColumnJson: string;
252
+ valueSetOptions: string;
253
+ required: boolean;
254
+ pattern: string;
255
+ checkType: string;
256
+ contAlign: string;
257
+ i18nKey: string;
258
+ /**
259
+ * 字段类型为文本,行编辑控件类型为多选下拉框multiselect时,数据库是否存储多个值,用于控制台账查询功能
260
+ * 如果是false表示数据库存储的不是多个值,只是查询时需要多个值使用“等号符号”进行or查询,
261
+ * 如果是true表示数据库存储了多个值(一般是以逗号隔开),则查询时需要多个值使用“包含符号”进行or查询。
262
+ */
263
+ ifMultiData: boolean;
264
+ }
@@ -0,0 +1,7 @@
1
+ export interface Option {
2
+ value: string | number | boolean;
3
+ label: string;
4
+ [otherProp: string]: any;
5
+ }
6
+ export declare const tfOptions: Option[];
7
+ export declare const dataTypeOptions: Option[];
@@ -0,0 +1,3 @@
1
+ export declare function queryWorkflowsRequest(tableName: any): any;
2
+ export declare function createWorkflowRequest(tableName: any, pageName: any): any;
3
+ export declare function getHighestVersionDefinition(wfDefinitionCode: any, defVersion: any): any;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 树对象定义
3
+ */
4
+ export interface Tree {
5
+ name: string;
6
+ label: string;
7
+ componentIndex: number;
8
+ uuid: string;
9
+ children?: Tree[];
10
+ }
11
+ /**
12
+ * 页面大纲树的管理类
13
+ */
14
+ export declare function convertToExploreTreeDatas(designItems: any, searchItemName: string | null, cachePageItemMap: any, eventResult: any): any;
@@ -0,0 +1,36 @@
1
+ import { RemovableRef } from '@vueuse/core';
2
+ import { PageDesign } from './interfaces/page-design-types';
3
+
4
+ /**
5
+ * 初始化页面引用对象
6
+ * @param pageCode
7
+ * @param pageVersion
8
+ */
9
+ export declare function initComponentRefState(pageDesign: PageDesign): RemovableRef<any>;
10
+ /**
11
+ * 添加组件引用对象
12
+ * @param pageDesign 页面设计对象
13
+ * @param componentIndex 对象ID
14
+ * @param refObj 引用对象
15
+ * @returns
16
+ */
17
+ export declare function addComponentRef(pageDesign: PageDesign, componentIndex: number, refObj: object): RemovableRef<any>;
18
+ /**
19
+ * 获取组件引用对象
20
+ * @param pageDesign 页面设计对象
21
+ * @param componentIndex 对象ID
22
+ * @returns
23
+ */
24
+ export declare function getComponentRef(pageDesign: PageDesign, componentIndex: number): object | undefined;
25
+ /**
26
+ * 初始化页面引用对象
27
+ * @param pageCode
28
+ * @param pageVersion
29
+ */
30
+ export declare function initPageDesignState(pageDesign: PageDesign): RemovableRef<any>;
31
+ /**
32
+ * 获取页面设计对象
33
+ * @param pageCode
34
+ * @param pageVersion
35
+ */
36
+ export declare function getPageDesign(pageCode: string, pageVersion: number): RemovableRef<PageDesign> | null;
@@ -0,0 +1,38 @@
1
+ import { Component, PageDesign } from './interfaces/page-design-types';
2
+
3
+ /**
4
+ * 获取可选功能类型
5
+ * @returns
6
+ */
7
+ export declare function getFunctionTypes(): Array<any>;
8
+ /**
9
+ * 添加资源
10
+ * @param pageDesign 页面设计对象
11
+ * @param eventName 功能
12
+ * @param name 资源名称
13
+ * @param funcType 资源类型
14
+ * @param uuid 组件UUID
15
+ */
16
+ export declare function addPermission(pageDesign: PageDesign, eventName: any, name: any, uuid: any): any;
17
+ /**
18
+ * 自动更新资源
19
+ */
20
+ export declare function batchUpdatePermissions(configure: Component, pageDesign: PageDesign): void;
21
+ /**
22
+ * 批量移除资源
23
+ * @param pageDesign
24
+ * @param uuid
25
+ */
26
+ export declare function batchRemovePermissions(pageDesign: PageDesign, uuid: any): any;
27
+ /**
28
+ * 删除资源
29
+ * @param pageDesign 页面设计对象
30
+ * @param simpleCode 简码
31
+ * @param uuid 组件的uuid
32
+ */
33
+ export declare function delPermission(pageDesign: PageDesign, simpleCode: any, uuid: any): any;
34
+ /**
35
+ * 附加权限的编码、路径
36
+ * @param pageDesign
37
+ */
38
+ export declare function appendOtherPermissionFields(pageDesign: PageDesign): void;
@@ -0,0 +1,30 @@
1
+ import { Component, PageDesign } from './interfaces/page-design-types';
2
+
3
+ /**
4
+ * 查询表字的字段
5
+ * @param systemCode
6
+ * @param systemVersion
7
+ * @param tableName
8
+ * @returns
9
+ */
10
+ export declare function queryTableFields(systemCode: string, systemVersion: number, tableName: string): Promise<any>;
11
+ /**
12
+ * 查询表字的字段和字段map
13
+ * @param systemCode
14
+ * @param systemVersion
15
+ * @param tableName
16
+ * @returns
17
+ */
18
+ export declare function queryTableFieldsOrMap(systemCode: string, systemVersion: number, tableName: string): Promise<any>;
19
+ /**
20
+ * 查询子表
21
+ * @param systemCode
22
+ * @param systemVersion 数据表版本
23
+ * @param publishVersion 页面版本
24
+ * @returns
25
+ */
26
+ export declare function querySublist(systemCode: string, systemVersion: number, publishVersion: string): Promise<any>;
27
+ /**
28
+ * 设置tableRuntimes
29
+ */
30
+ export declare function setTableRuntimesFromConfigure(tableConfigure: Component, pageDesign: PageDesign): void;
@@ -0,0 +1,6 @@
1
+ export declare function getSystem(): any;
2
+ export declare function getSystemId(): any;
3
+ export declare function getSystemCode(): any;
4
+ export declare function getSystemName(): any;
5
+ export declare function getPublishVersion(): any;
6
+ export declare function getStandard(): any;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, withDirectives, vShow } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import "../../../../../../stores/page-store.js";
4
- import "../../form/common/dimension-input.vue2.js";
4
+ import "../../form/common/dimension-input.vue.js";
5
5
  import _sfc_main$2 from "../../common/common-icon-bind.vue.js";
6
6
  import http from "agilebuilder-ui/src/utils/request";
7
7
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
@@ -0,0 +1,12 @@
1
+ interface Option {
2
+ value: string | number | boolean;
3
+ label: string;
4
+ [otherProp: string]: any;
5
+ }
6
+ declare const contextVarOptions: Option[];
7
+ declare const taskVarOptions: Option[];
8
+ declare function getTypeOptions(types: Array<string>, needParams: boolean | undefined): {
9
+ value: string;
10
+ label: string;
11
+ }[];
12
+ export { contextVarOptions, taskVarOptions, getTypeOptions };
@@ -2,7 +2,7 @@ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import "@element-plus/icons-vue";
4
4
  import _sfc_main$2 from "../../common/common-attr-size.vue.js";
5
- import "../../form/common/dimension-input.vue2.js";
5
+ import "../../form/common/dimension-input.vue.js";
6
6
  import "@element-plus/icons";
7
7
  import "agilebuilder-ui/src/utils/request";
8
8
  import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, createBlock, createCommentVNode } from "vue";
2
- import "../../form/common/dimension-input.vue2.js";
2
+ import "../../form/common/dimension-input.vue.js";
3
3
  import RowBackgroudColor from "./row-backgroud-color.vue.js";
4
4
  import _sfc_main$1 from "../../common/common-style-position.vue.js";
5
5
  import _sfc_main$2 from "../../common/common-style-margin.vue.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createCommentVNode, createTextVNode, unref, createElementBlock, Fragment, renderList } from "vue";
2
2
  import { Setting, Search } from "@element-plus/icons-vue";
3
3
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
4
- import "../../form/common/dimension-input.vue2.js";
4
+ import "../../form/common/dimension-input.vue.js";
5
5
  import _sfc_main$3 from "../component/formatting.vue.js";
6
6
  import _sfc_main$4 from "../component/querySetting.vue.js";
7
7
  import DataOrigin from "../../form/common/data-origin.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
2
- import "../../form/common/dimension-input.vue2.js";
2
+ import "../../form/common/dimension-input.vue.js";
3
3
  import RowBackgroudColor from "../component/row-backgroud-color.vue.js";
4
4
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
5
5
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
- import _sfc_main$1 from "../../form/common/dimension-input.vue.js";
4
- import "../../form/common/dimension-input.vue2.js";
3
+ import _sfc_main$1 from "../../form/common/dimension-input.vue2.js";
4
+ import "../../form/common/dimension-input.vue.js";
5
5
  import IconSetDialog from "../../form/common/icon-set-dialog.vue.js";
6
6
  import _sfc_main$2 from "../../form/common/dataorigin-input-table.vue.js";
7
7
  import DataOriginTree from "../component/data-origin-tree.vue.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode } from "vue";
2
2
  import _sfc_main$1 from "../../form/common/attr-style.vue.js";
3
- import _sfc_main$2 from "../../form/common/dimension-input.vue.js";
4
- import "../../form/common/dimension-input.vue2.js";
3
+ import _sfc_main$2 from "../../form/common/dimension-input.vue2.js";
4
+ import "../../form/common/dimension-input.vue.js";
5
5
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "tree-attr-style",
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<{
17
17
  default: () => any[];
18
18
  };
19
19
  }>>, {
20
- configure: Record<string, any>;
21
20
  events: unknown[];
21
+ configure: Record<string, any>;
22
22
  }, {}>;
23
23
  export default _default;
@@ -1,75 +1 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
2
- const _sfc_main = /* @__PURE__ */ defineComponent({
3
- __name: "dimension-input",
4
- props: {
5
- modelValue: {
6
- type: [Number],
7
- default: null
8
- },
9
- selectedUnit: {
10
- type: String,
11
- default: "px"
12
- }
13
- },
14
- emits: ["update:modelValue", "update:selectedUnit"],
15
- setup(__props, { emit: __emit }) {
16
- const props = __props;
17
- const emit = __emit;
18
- const inputValue = ref(props.modelValue);
19
- const unit = ref(props.selectedUnit);
20
- const units = [
21
- { label: "px", value: "px" },
22
- { label: "em", value: "em" },
23
- { label: "ex", value: "ex" },
24
- { label: "cm", value: "cm" },
25
- { label: "vh", value: "vh" }
26
- ];
27
- function onInput(val) {
28
- emit("update:modelValue", val);
29
- emit("update:selectedUnit", unit);
30
- }
31
- function onChange(newUnit) {
32
- unit.value = newUnit;
33
- emit("update:selectedUnit", newUnit);
34
- }
35
- return (_ctx, _cache) => {
36
- const _component_el_option = resolveComponent("el-option");
37
- const _component_el_select = resolveComponent("el-select");
38
- const _component_el_input = resolveComponent("el-input");
39
- return openBlock(), createBlock(_component_el_input, {
40
- modelValue: inputValue.value,
41
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputValue.value = $event),
42
- modelModifiers: { number: true },
43
- placeholder: "",
44
- class: "input-with-select",
45
- onInput
46
- }, {
47
- append: withCtx(() => [
48
- createVNode(_component_el_select, {
49
- ref: "select",
50
- modelValue: unit.value,
51
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unit.value = $event),
52
- style: { width: "60px" },
53
- placeholder: "",
54
- onChange
55
- }, {
56
- default: withCtx(() => [
57
- (openBlock(), createElementBlock(Fragment, null, renderList(units, (unit2) => {
58
- return createVNode(_component_el_option, {
59
- key: unit2.value,
60
- label: unit2.label,
61
- value: unit2.value
62
- }, null, 8, ["label", "value"]);
63
- }), 64))
64
- ]),
65
- _: 1
66
- }, 8, ["modelValue"])
67
- ]),
68
- _: 1
69
- }, 8, ["modelValue"]);
70
- };
71
- }
72
- });
73
- export {
74
- _sfc_main as default
75
- };
1
+
@@ -1 +1,75 @@
1
-
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, renderList } from "vue";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "dimension-input",
4
+ props: {
5
+ modelValue: {
6
+ type: [Number],
7
+ default: null
8
+ },
9
+ selectedUnit: {
10
+ type: String,
11
+ default: "px"
12
+ }
13
+ },
14
+ emits: ["update:modelValue", "update:selectedUnit"],
15
+ setup(__props, { emit: __emit }) {
16
+ const props = __props;
17
+ const emit = __emit;
18
+ const inputValue = ref(props.modelValue);
19
+ const unit = ref(props.selectedUnit);
20
+ const units = [
21
+ { label: "px", value: "px" },
22
+ { label: "em", value: "em" },
23
+ { label: "ex", value: "ex" },
24
+ { label: "cm", value: "cm" },
25
+ { label: "vh", value: "vh" }
26
+ ];
27
+ function onInput(val) {
28
+ emit("update:modelValue", val);
29
+ emit("update:selectedUnit", unit);
30
+ }
31
+ function onChange(newUnit) {
32
+ unit.value = newUnit;
33
+ emit("update:selectedUnit", newUnit);
34
+ }
35
+ return (_ctx, _cache) => {
36
+ const _component_el_option = resolveComponent("el-option");
37
+ const _component_el_select = resolveComponent("el-select");
38
+ const _component_el_input = resolveComponent("el-input");
39
+ return openBlock(), createBlock(_component_el_input, {
40
+ modelValue: inputValue.value,
41
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputValue.value = $event),
42
+ modelModifiers: { number: true },
43
+ placeholder: "",
44
+ class: "input-with-select",
45
+ onInput
46
+ }, {
47
+ append: withCtx(() => [
48
+ createVNode(_component_el_select, {
49
+ ref: "select",
50
+ modelValue: unit.value,
51
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unit.value = $event),
52
+ style: { width: "60px" },
53
+ placeholder: "",
54
+ onChange
55
+ }, {
56
+ default: withCtx(() => [
57
+ (openBlock(), createElementBlock(Fragment, null, renderList(units, (unit2) => {
58
+ return createVNode(_component_el_option, {
59
+ key: unit2.value,
60
+ label: unit2.label,
61
+ value: unit2.value
62
+ }, null, 8, ["label", "value"]);
63
+ }), 64))
64
+ ]),
65
+ _: 1
66
+ }, 8, ["modelValue"])
67
+ ]),
68
+ _: 1
69
+ }, 8, ["modelValue"]);
70
+ };
71
+ }
72
+ });
73
+ export {
74
+ _sfc_main as default
75
+ };
@@ -1,5 +1,5 @@
1
- import _sfc_main from "./dimension-input.vue.js";
2
- import "./dimension-input.vue2.js";
1
+ import _sfc_main from "./dimension-input.vue2.js";
2
+ import "./dimension-input.vue.js";
3
3
  export {
4
4
  _sfc_main as default
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode } from "vue";
2
- import _sfc_main$1 from "./dimension-input.vue.js";
3
- import "./dimension-input.vue2.js";
2
+ import _sfc_main$1 from "./dimension-input.vue2.js";
3
+ import "./dimension-input.vue.js";
4
4
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "title",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import _sfc_main$1 from "../../common/common-attr-size.vue.js";
4
- import "../../form/common/dimension-input.vue2.js";
4
+ import "../../form/common/dimension-input.vue.js";
5
5
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "pictureflow-attr-base",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode } from "vue";
2
2
  import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
3
3
  import _sfc_main$1 from "../../common/common-attr-size.vue.js";
4
- import "../../form/common/dimension-input.vue2.js";
4
+ import "../../form/common/dimension-input.vue.js";
5
5
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
6
6
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -0,0 +1,23 @@
1
+ interface PageContextVarOptions {
2
+ [otherProp: string]: any;
3
+ }
4
+ export declare const usePageContextStore: import('pinia').StoreDefinition<"pageContextUtil", import('pinia')._UnwrapAll<Pick<{
5
+ pageContext: any;
6
+ pageContextVarOptions: import('vue').Ref<PageContextVarOptions>;
7
+ setPageContext: (newPageContext: any) => void;
8
+ getModelField: (fieldName: string) => any | null;
9
+ getPagePermissionOptions: () => Array<any>;
10
+ }, "pageContext" | "pageContextVarOptions">>, Pick<{
11
+ pageContext: any;
12
+ pageContextVarOptions: import('vue').Ref<PageContextVarOptions>;
13
+ setPageContext: (newPageContext: any) => void;
14
+ getModelField: (fieldName: string) => any | null;
15
+ getPagePermissionOptions: () => Array<any>;
16
+ }, "pageContext">, Pick<{
17
+ pageContext: any;
18
+ pageContextVarOptions: import('vue').Ref<PageContextVarOptions>;
19
+ setPageContext: (newPageContext: any) => void;
20
+ getModelField: (fieldName: string) => any | null;
21
+ getPagePermissionOptions: () => Array<any>;
22
+ }, "pageContext" | "setPageContext" | "getModelField" | "getPagePermissionOptions">>;
23
+ export {};
package/dist/es/style.css CHANGED
@@ -7814,56 +7814,6 @@ fieldset.amb-design-item-selected {
7814
7814
  .remove-formLabel-formContent-blankStyle > .el-form-item__content{
7815
7815
  padding-right: 0 !important;
7816
7816
  }
7817
-
7818
- /*不显示列样式*/
7819
- .hiddenBorder{
7820
- border-right: solid 1px #ebebeb !important;
7821
- border-left: solid 1px #ebebeb !important;
7822
- background-color: #ebebeb !important;
7823
- }
7824
- /*选中列样式*/
7825
- .addBorder{
7826
- border-right: solid 1px #5893ef !important;
7827
- border-left: solid 1px #5893ef !important;
7828
- background-color: #5893ef !important;
7829
- color: #FFFFFF;
7830
- }
7831
- .ghost {
7832
- opacity: 0.5;
7833
- background: #c8ebfb;
7834
- }
7835
-
7836
- li[data-v-7d20e187] {
7837
- color: #333;
7838
- }
7839
- .context-menu[data-v-7d20e187] {
7840
- position: fixed;
7841
- background: #fff;
7842
- z-index: 999;
7843
- padding: 5px;
7844
- margin: 0;
7845
- margin-top: 30px;
7846
- }
7847
- .context-menu li[data-v-7d20e187] {
7848
- min-width: 75px;
7849
- height: 28px;
7850
- line-height: 28px;
7851
- text-align: left;
7852
- color: #1a1a1a;
7853
- cursor: pointer;
7854
- }
7855
- .context-menu li[data-v-7d20e187]:hover {
7856
- background: #5893ef;
7857
- color: #fff;
7858
- }
7859
- .context-menu[data-v-7d20e187] {
7860
- border: 1px solid #eee;
7861
- box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
7862
- border-radius: 5px;
7863
- }
7864
- li[data-v-7d20e187] {
7865
- list-style-type: none;
7866
- }
7867
7817
  .el-tree-node__content {
7868
7818
  height: 34px !important;
7869
7819
  }
@@ -8421,6 +8371,56 @@ fieldset.amb-design-item-selected {
8421
8371
  .remove-formLabel-formContent-blankStyle > .el-form-item__content{
8422
8372
  padding-right: 0 !important;
8423
8373
  }
8374
+
8375
+ /*不显示列样式*/
8376
+ .hiddenBorder{
8377
+ border-right: solid 1px #ebebeb !important;
8378
+ border-left: solid 1px #ebebeb !important;
8379
+ background-color: #ebebeb !important;
8380
+ }
8381
+ /*选中列样式*/
8382
+ .addBorder{
8383
+ border-right: solid 1px #5893ef !important;
8384
+ border-left: solid 1px #5893ef !important;
8385
+ background-color: #5893ef !important;
8386
+ color: #FFFFFF;
8387
+ }
8388
+ .ghost {
8389
+ opacity: 0.5;
8390
+ background: #c8ebfb;
8391
+ }
8392
+
8393
+ li[data-v-7d20e187] {
8394
+ color: #333;
8395
+ }
8396
+ .context-menu[data-v-7d20e187] {
8397
+ position: fixed;
8398
+ background: #fff;
8399
+ z-index: 999;
8400
+ padding: 5px;
8401
+ margin: 0;
8402
+ margin-top: 30px;
8403
+ }
8404
+ .context-menu li[data-v-7d20e187] {
8405
+ min-width: 75px;
8406
+ height: 28px;
8407
+ line-height: 28px;
8408
+ text-align: left;
8409
+ color: #1a1a1a;
8410
+ cursor: pointer;
8411
+ }
8412
+ .context-menu li[data-v-7d20e187]:hover {
8413
+ background: #5893ef;
8414
+ color: #fff;
8415
+ }
8416
+ .context-menu[data-v-7d20e187] {
8417
+ border: 1px solid #eee;
8418
+ box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
8419
+ border-radius: 5px;
8420
+ }
8421
+ li[data-v-7d20e187] {
8422
+ list-style-type: none;
8423
+ }
8424
8424
  .el-tree-node__content {
8425
8425
  height: 34px !important;
8426
8426
  }
@@ -13434,10 +13434,6 @@ fieldset.amb-design-item-selected {
13434
13434
  .remove-formLabel-formContent-blankStyle > .el-form-item__content{
13435
13435
  padding-right: 0 !important;
13436
13436
  }
13437
-
13438
- [data-v-bbacb76f] .el-form-item__label{
13439
- padding: 0;
13440
- }
13441
13437
  .el-tree-node__content {
13442
13438
  height: 34px !important;
13443
13439
  }
@@ -13996,6 +13992,10 @@ fieldset.amb-design-item-selected {
13996
13992
  padding-right: 0 !important;
13997
13993
  }
13998
13994
 
13995
+ [data-v-bbacb76f] .el-form-item__label{
13996
+ padding: 0;
13997
+ }
13998
+
13999
13999
  .amb-design-attr-header[data-v-228a52e4] {
14000
14000
  position: sticky;
14001
14001
  position: -webkit-sticky;
@@ -14080,15 +14080,15 @@ fieldset.amb-design-item-selected {
14080
14080
  padding-bottom:5px;
14081
14081
  }
14082
14082
 
14083
+ [data-v-7a7f7d66] .el-cascader-menu {
14084
+ min-width: 120px !important;
14085
+ }
14086
+
14083
14087
  .seleteSort[data-v-d6967820] {
14084
14088
  border-radius: 5px;
14085
14089
  border: 1px solid rgba(88, 147, 239);
14086
14090
  }
14087
14091
 
14088
- [data-v-7a7f7d66] .el-cascader-menu {
14089
- min-width: 120px !important;
14090
- }
14091
-
14092
14092
  .input-with-select .el-input-group__append {
14093
14093
  background-color: var(--el-fill-color-blank);
14094
14094
  }
@@ -14139,6 +14139,23 @@ fieldset.amb-design-item-selected {
14139
14139
  border: 1px solid rgba(88, 147, 239);
14140
14140
  }
14141
14141
 
14142
+ .row-backgroud-header-tittle[data-v-b203475d]{
14143
+ display: flex;
14144
+ justify-content: space-between;
14145
+ text-align: center
14146
+ }
14147
+ .row-backgroud-header-tittle > div[data-v-b203475d]{
14148
+ width: 100%
14149
+ }
14150
+
14151
+ .stateBtn[data-v-ae2798fb]{
14152
+ display: flex;
14153
+ }
14154
+ .stateText[data-v-ae2798fb]{
14155
+ margin-left: 10px;
14156
+ color: #7b7b7b;
14157
+ }
14158
+
14142
14159
  li[data-v-73667c88] {
14143
14160
  color: #333;
14144
14161
  }
@@ -14176,23 +14193,6 @@ li[data-v-73667c88] {
14176
14193
  list-style-type: none;
14177
14194
  }
14178
14195
 
14179
- .stateBtn[data-v-ae2798fb]{
14180
- display: flex;
14181
- }
14182
- .stateText[data-v-ae2798fb]{
14183
- margin-left: 10px;
14184
- color: #7b7b7b;
14185
- }
14186
-
14187
- .row-backgroud-header-tittle[data-v-b203475d]{
14188
- display: flex;
14189
- justify-content: space-between;
14190
- text-align: center
14191
- }
14192
- .row-backgroud-header-tittle > div[data-v-b203475d]{
14193
- width: 100%
14194
- }
14195
-
14196
14196
  .el-tag[data-v-665d3bf4]{
14197
14197
  margin-left: 10px;
14198
14198
  }
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.0.5",
3
+ "version": "2.0.9",
4
4
  "description": "AgileBuilder super page designer",
5
5
  "license": "ISC",
6
- "type": "module",
7
- "main": "dist/es/index.ts",
6
+ "main": "dist/es/index.js",
8
7
  "files": [
9
8
  "dist/*"
10
9
  ],
@@ -36,8 +35,8 @@
36
35
  "pinia": "^2.1.7",
37
36
  "qrcode": "^1.5.3",
38
37
  "quill": "^2.0.1",
39
- "service-flow-designer": "2.0.5",
40
- "super-page-runtime": "2.0.4",
38
+ "service-flow-designer": "2.0.7",
39
+ "super-page-runtime": "2.0.8",
41
40
  "uuid": "^9.0.1",
42
41
  "vite": "^5.1.6",
43
42
  "vite-plugin-node-stdlib-browser": "^0.2.1",