super-page-designer 2.3.17-sit3-design2 → 2.3.17-sit4-design1

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,29 +1,29 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getFormPropName as t } from "./page-helper-util.js";
3
- import { getDesignEvents as r } from "./assemblys-config.js";
4
- import { addI18nKey as a } from "./page-i18n-util.js";
5
- import { findDesignItemByUuid as o } from "./common-util.js";
6
- import { getComponentOptionConfigsBase as i } from "super-page-runtime";
7
- function n(t2, r2, a2) {
3
+ import { getDesignEvents as r, getDesignConfByName as a } from "./assemblys-config.js";
4
+ import { addI18nKey as o } from "./page-i18n-util.js";
5
+ import { findDesignItemByUuid as i } from "./common-util.js";
6
+ import { getComponentOptionConfigsBase as n } from "super-page-runtime";
7
+ function s(t2, r2, a2) {
8
8
  let o2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
9
9
  return o2 += "?tableName=" + (a2 || ""), e.get(o2);
10
10
  }
11
- function s(t2) {
11
+ function p(t2) {
12
12
  return t2 ? e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/sub-data-tables/tables/" + t2) : Promise.resolve([]);
13
13
  }
14
- function p(e2, r2) {
15
- const o2 = JSON.stringify(e2), i2 = JSON.parse(o2);
16
- r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[i2.uuid] = function(e3, r3, o3) {
14
+ function l(e2, r2) {
15
+ const a2 = JSON.stringify(e2), i2 = JSON.parse(a2);
16
+ r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[i2.uuid] = function(e3, r3, a3) {
17
17
  var _a;
18
- const i3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, n3 = { configure: o3, code: i3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria ? JSON.stringify(e3.props.dataOrigin.defaultQueryCriteria) : "", queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: !!e3.props.base && (void 0 === e3.props.base.isDragColumn || e3.props.base.isDragColumn), border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
18
+ const i3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, n3 = { configure: a3, code: i3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria ? JSON.stringify(e3.props.dataOrigin.defaultQueryCriteria) : "", queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: !!e3.props.base && (void 0 === e3.props.base.isDragColumn || e3.props.base.isDragColumn), border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
19
19
  return n3.items = function(e4, r4) {
20
20
  var _a2;
21
- const o4 = [];
21
+ const a4 = [];
22
22
  return (_a2 = e4.items) == null ? void 0 : _a2.forEach((e5) => {
23
- const i4 = { controlName: c(e5) };
24
- let n4 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: b(e5), valueSet: l(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: i4.controlName, controlConfig: g(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: d(e5), orgTreeSet: f(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: T(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
25
- r4.i18nKeys && a(e5.props.base.name, r4), e5.functionCodes && e5.functionCodes.length > 0 && (n4.functionCode = e5.functionCodes.join(",")), o4.push(n4);
26
- }), o4;
23
+ const i4 = { controlName: f(e5) };
24
+ let n4 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: y(e5), valueSet: u(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: i4.controlName, controlConfig: b(e5), eventType: C(e5), displayOrder: e5.props.base.displayOrder, fileSet: g(e5), orgTreeSet: d(e5), dynamicColumnJson: T(e5), valueSetOptions: m(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: O(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
25
+ r4.i18nKeys && o(e5.props.base.name, r4), e5.functionCodes && e5.functionCodes.length > 0 && (n4.functionCode = e5.functionCodes.join(",")), a4.push(n4);
26
+ }), a4;
27
27
  }(e3, r3), n3.groupHeaders = function(e4) {
28
28
  const t2 = [];
29
29
  e4.props.base.isEnableGroupHeader && e4.props.groupHeaders && e4.props.groupHeaders.forEach((e5) => {
@@ -32,14 +32,14 @@ function p(e2, r2) {
32
32
  });
33
33
  return t2.sort((e5, t3) => e5.displayOrder - t3.displayOrder), t2;
34
34
  }(e3), n3;
35
- }(i2, r2, o2), delete e2.btnList, delete e2.items, delete e2.modelFields;
35
+ }(i2, r2, a2), delete e2.btnList, delete e2.items, delete e2.modelFields;
36
36
  const n2 = i2.runtime;
37
37
  if (n2 && (n2.events || n2.common)) {
38
38
  const { events: t2, common: r3 } = n2;
39
39
  e2.runtime = { events: t2, common: r3 };
40
40
  } else delete e2.runtime;
41
41
  }
42
- function l(e2) {
42
+ function u(e2) {
43
43
  const t2 = e2.props;
44
44
  if ("inputNumber" === e2.name) return null;
45
45
  if (t2.dataOrigin && t2.dataOrigin.optionValueSetType && "none" !== t2.dataOrigin.optionValueSetType) {
@@ -53,7 +53,7 @@ function l(e2) {
53
53
  if ("service" === e3) return `${e3}:${t2.dataOrigin.serveName}`;
54
54
  }
55
55
  }
56
- function u(e2, t2, r2) {
56
+ function m(e2, t2, r2) {
57
57
  if (!e2) return;
58
58
  const a2 = e2.props;
59
59
  if ("inputNumber" === e2.name) {
@@ -62,22 +62,22 @@ function u(e2, t2, r2) {
62
62
  }
63
63
  if ("switch" === e2.name) return JSON.stringify({ activeText: a2.base.activeText, activeValue: a2.base.activeValue, inactiveText: a2.base.inactiveText, inactiveValue: a2.base.inactiveValue, offColor: a2.base.offColor, onColor: a2.base.onColor });
64
64
  if (a2.dataOrigin && a2.dataOrigin.optionValueSetType) {
65
- const o2 = a2.dataOrigin.optionValueSetType, n2 = a2.dataOrigin;
66
- if ("dynamicData" === o2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: n2.dynamicDataSourceCode, filterType: n2.filterType, valueSetOptions: m(n2), valueLabelSwitch: !!n2.valueLabelSwitch });
65
+ const o2 = a2.dataOrigin.optionValueSetType, i2 = a2.dataOrigin;
66
+ if ("dynamicData" === o2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: i2.dynamicDataSourceCode, filterType: i2.filterType, valueSetOptions: c(i2), valueLabelSwitch: !!i2.valueLabelSwitch });
67
67
  {
68
- const a3 = i(e2, t2, r2);
69
- return a3 ? (a3.valueSetOptions = m(n2), JSON.stringify(a3)) : null;
68
+ const a3 = n(e2, t2, r2);
69
+ return a3 ? (a3.valueSetOptions = c(i2), JSON.stringify(a3)) : null;
70
70
  }
71
71
  }
72
72
  }
73
- function m(e2) {
73
+ function c(e2) {
74
74
  const t2 = [];
75
75
  return e2.autoSets.forEach((e3) => {
76
- const r2 = y(e3.target);
77
- t2.push({ columnName: y(e3.source), valueField: r2, valueColumn: { name: r2, dbColumnName: r2.toUpperCase() } });
76
+ const r2 = S(e3.target);
77
+ t2.push({ columnName: S(e3.source), valueField: r2, valueColumn: { name: r2, dbColumnName: r2.toUpperCase() } });
78
78
  }), t2;
79
79
  }
80
- function c(e2) {
80
+ function f(e2) {
81
81
  if (!e2.name) return null;
82
82
  switch (e2.name) {
83
83
  case "input-text":
@@ -144,25 +144,25 @@ function c(e2) {
144
144
  return "custom:" + e2.props.base.customComponent;
145
145
  }
146
146
  }
147
- function f(e2) {
147
+ function d(e2) {
148
148
  if ("dept-tree" === e2.name) {
149
149
  const t2 = [];
150
150
  return e2.props.base.otherFieldSets && e2.props.base.otherFieldSets.length > 0 && e2.props.base.otherFieldSets.forEach((e3) => {
151
- t2.push({ type: e3.source, model: y(e3.target) });
151
+ t2.push({ type: e3.source, model: S(e3.target) });
152
152
  }), JSON.stringify({ orgTreeSetArr: t2 });
153
153
  }
154
154
  return null;
155
155
  }
156
- function d(e2) {
156
+ function g(e2) {
157
157
  var _a, _b;
158
158
  if ("file-upload" === e2.name) {
159
- const t2 = y(e2.props.base.prop), r2 = y(e2.props.format ? e2.props.format.fileUuid : null);
159
+ const t2 = S(e2.props.base.prop), r2 = S(e2.props.format ? e2.props.format.fileUuid : null);
160
160
  let a2 = {};
161
161
  return t2 && (a2.showNameData = { name: t2, dbName: t2.toUpperCase() }), r2 && (a2.serverNameData = { name: r2, dbName: r2.toUpperCase() }), e2.props.uploadConfig && (e2.props.uploadConfig.multiple ? a2.multiple = true : a2.multiple = false, e2.props.uploadConfig.accept ? a2.accept = e2.props.uploadConfig.accept : a2.accept = null, e2.props.uploadConfig.limitFileSize ? a2.limitFileSize = e2.props.uploadConfig.limitFileSize : a2.limitFileSize = null, e2.props.uploadConfig.openCameraOrChoosePhoto ? a2.openCameraOrChoosePhoto = e2.props.uploadConfig.openCameraOrChoosePhoto : a2.openCameraOrChoosePhoto = null, e2.props.watermark ? (a2.watermark = {}, ((_a = e2.props.watermark) == null ? void 0 : _a.isShowWatermark) ? a2.watermark.isShowWatermark = true : a2.watermark.isShowWatermark = false, ((_b = e2.props.watermark) == null ? void 0 : _b.content) ? a2.watermark.content = e2.props.watermark.content : a2.watermark.content = null) : a2.watermark = {}), JSON.stringify(a2);
162
162
  }
163
163
  return null;
164
164
  }
165
- function g(e2) {
165
+ function b(e2) {
166
166
  var _a, _b, _c, _d, _e, _f;
167
167
  let t2 = {};
168
168
  if ("select" === e2.name) {
@@ -175,7 +175,7 @@ function g(e2) {
175
175
  } else "custom" === e2.name ? t2.customParams = e2.props.parameter : "datePicker" === e2.name ? (t2.format = e2.props.base.format, t2.valueFormat = e2.props.base.valueFormat) : "dept-tree" === e2.name && (t2.limitFilterColumn = e2.props.base.limitFilterColumn, t2.deptScope = e2.props.base.deptScope, t2.deptScopeField = e2.props.base.deptScopeField, t2.deptScopeCodes = e2.props.base.deptScopeDepts);
176
176
  return ((_c = e2.style) == null ? void 0 : _c.cellStyle) && (t2.cellStyle = e2.style.cellStyle), ((_d = e2.style) == null ? void 0 : _d.titleStyle) && (t2.titleStyle = e2.style.titleStyle), ((_f = (_e = e2.props) == null ? void 0 : _e.base) == null ? void 0 : _f.editConditions) && e2.props.base.editConditions.length > 0 && (t2.editConditions = e2.props.base.editConditions), t2 ? JSON.stringify(t2) : null;
177
177
  }
178
- function b(e2) {
178
+ function y(e2) {
179
179
  var _a, _b, _c;
180
180
  if (e2.props.format) {
181
181
  if ("hyperlinks" === e2.props.format.type && ((_a = e2.props.linkPage) == null ? void 0 : _a.length) > 0) {
@@ -202,50 +202,50 @@ function b(e2) {
202
202
  }
203
203
  return null;
204
204
  }
205
- function y(e2) {
205
+ function S(e2) {
206
206
  if (e2) {
207
207
  const t2 = e2.match(/\${(.*?)\.(.*?)}/);
208
208
  if (t2) return t2[2];
209
209
  }
210
210
  return e2;
211
211
  }
212
- function S(e2, t2) {
212
+ function C(e2, t2) {
213
213
  let r2 = null;
214
214
  return e2.events && (e2.events.forEach((e3) => {
215
215
  e3.jsContent && e3.jsContent.trim() && (r2 || (r2 = {}), r2[e3.name] = e3.componentUuid + "_" + e3.name);
216
216
  }), r2) ? JSON.stringify(r2) : r2;
217
217
  }
218
- function C(e2, t2) {
218
+ function T(e2, t2) {
219
219
  return e2.props.base.prop && "dynamicColumnSelect" === e2.props.base.prop ? (function(e3) {
220
220
  if (!e3 || !e3.columnModelTable) return;
221
221
  e3.columnModelTable.forEach((e4) => {
222
222
  var _a, _b, _c, _d, _e, _f;
223
223
  const t4 = e4.componentConfig;
224
224
  if (t4) {
225
- e4.format = b(t4), e4.defaultValue = (_b = (_a = t4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.defaultValue, e4.controlName = c(t4), e4.controlConfig = g(t4), e4.eventType = S(t4), e4.fileSet = d(t4), e4.orgTreeSet = f(t4), e4.required = (_d = (_c = t4.props) == null ? void 0 : _c.verification) == null ? void 0 : _d.required, e4.pattern = (_f = (_e = t4.props) == null ? void 0 : _e.verification) == null ? void 0 : _f.verifyRegex, e4.checkType = T(t4.props.verification.type);
226
- const r3 = l(t4);
225
+ e4.format = y(t4), e4.defaultValue = (_b = (_a = t4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.defaultValue, e4.controlName = f(t4), e4.controlConfig = b(t4), e4.eventType = C(t4), e4.fileSet = g(t4), e4.orgTreeSet = d(t4), e4.required = (_d = (_c = t4.props) == null ? void 0 : _c.verification) == null ? void 0 : _d.required, e4.pattern = (_f = (_e = t4.props) == null ? void 0 : _e.verification) == null ? void 0 : _f.verifyRegex, e4.checkType = O(t4.props.verification.type);
226
+ const r3 = u(t4);
227
227
  e4.valueSet = r3, e4.functionCodes && e4.functionCodes.length > 0 ? e4.functionCode = e4.functionCodes.join(",") : e4.functionCode = "";
228
228
  } else e4.format = null, e4.defaultValue = null, e4.controlName = null, e4.controlConfig = null, e4.eventType = null, e4.fileSet = null, e4.orgTreeSet = null, e4.required = null, e4.pattern = null, e4.checkType = null, e4.valueSet = null;
229
- let r2 = u(t4, null, null);
229
+ let r2 = m(t4, null, null);
230
230
  r2 || (r2 = e4.valueSetOptions), e4.valueSetOptions = r2;
231
231
  const a2 = e4.titleValueSetComponentConfig;
232
232
  if (a2) {
233
- const t5 = l(a2);
233
+ const t5 = u(a2);
234
234
  e4.titleValueSet = t5;
235
- let r3 = u(a2, null, null);
235
+ let r3 = m(a2, null, null);
236
236
  e4.titleValueSetOptions = r3;
237
237
  } else e4.titleValueSet = null, e4.titleValueSetOptions = null;
238
238
  });
239
239
  const t3 = e3.groupTitleDynamicConfigure;
240
240
  if (t3) {
241
- const r2 = l(t3);
241
+ const r2 = u(t3);
242
242
  r2 ? (e3.groupTitleValueSet || (e3.groupTitleValueSet = {}), e3.groupTitleValueSet.valueSet = r2) : e3.groupTitleValueSet && e3.groupTitleValueSet.valueSet && (e3.groupTitleValueSet.valueSet = null);
243
- let a2 = u(t3, null, null);
243
+ let a2 = m(t3, null, null);
244
244
  a2 ? (e3.groupTitleValueSet || (e3.groupTitleValueSet = {}), e3.groupTitleValueSet.valueSetOptions = a2) : e3.groupTitleValueSet && e3.groupTitleValueSet.valueSetOptions && (e3.groupTitleValueSet.valueSetOptions = null);
245
245
  } else e3.groupTitleValueSet = null;
246
246
  }(e2.props.dynamicColumnData), JSON.stringify(e2.props.dynamicColumnData)) : null;
247
247
  }
248
- function T(e2) {
248
+ function O(e2) {
249
249
  if (Array.isArray(e2) && e2.length > 0) {
250
250
  const t2 = [];
251
251
  return e2.forEach((e3) => {
@@ -254,38 +254,40 @@ function T(e2) {
254
254
  }
255
255
  return Array.isArray(e2) && 0 === e2.length ? null : e2;
256
256
  }
257
- function O(e2, t2) {
258
- let a2 = { uuid: e2.uuid, base: e2.props.base, dataOrigin: e2.props.dataOrigin, dynamicColumnData: e2.props.dynamicColumnData, editLine: e2.props.editLine, format: e2.props.format, verification: e2.props.verification, definition: e2.props.definition, size: e2.props.size };
259
- e2.props = {}, e2.uuid = a2.uuid, e2.props.base = a2.base, e2.props.dataOrigin = a2.dataOrigin, e2.props.dynamicColumnData = a2.dynamicColumnData, e2.props.editLine = a2.editLine, e2.props.format = a2.format, e2.props.verification = a2.verification, e2.props.definition = a2.definition, e2.props.size = a2.size, e2.events = r(t2), e2.name = t2;
260
- }
261
257
  function h(e2, t2) {
258
+ let o2 = { uuid: e2.uuid, base: e2.props.base, dataOrigin: e2.props.dataOrigin, dynamicColumnData: e2.props.dynamicColumnData, editLine: e2.props.editLine, format: e2.props.format, verification: e2.props.verification, definition: e2.props.definition, size: e2.props.size };
259
+ e2.props = {}, e2.uuid = o2.uuid, e2.props.base = o2.base, e2.props.dataOrigin = o2.dataOrigin, e2.props.dynamicColumnData = o2.dynamicColumnData, e2.props.editLine = o2.editLine, e2.props.format = o2.format, e2.props.verification = o2.verification, e2.props.definition = o2.definition, e2.props.size = o2.size, e2.events = r(t2), e2.name = t2;
260
+ const i2 = a(t2);
261
+ "file-upload" === t2 && (e2.props.uploadConfig = i2.props.uploadConfig);
262
+ }
263
+ function v(e2, t2) {
262
264
  return e2 = {}, t2.forEach((t3) => {
263
265
  e2[t3.dbColumnName] = t3;
264
266
  }), e2;
265
267
  }
266
- function v(e2, t2) {
268
+ function N(e2, t2) {
267
269
  let r2, a2 = e2.tableName;
268
270
  return a2 || (e2.tableRuntimes && t2 && e2.tableRuntimes[t2] && e2.pageType && "list" === e2.pageType && (r2 = JSON.parse(e2.tableRuntimes[t2].configure)), r2 && r2.props && r2.props.dataOrigin ? r2.props.dataOrigin.tableName : null);
269
271
  }
270
- function N(e2) {
272
+ function w(e2) {
271
273
  let t2 = [];
272
274
  return e2 && e2.forEach((e3) => {
273
275
  t2.push({ value: e3.dbColumnName, label: e3.alias, alias: e3.alias, dataType: e3.dataType });
274
276
  }), t2;
275
277
  }
276
- function w(e2, t2, r2) {
278
+ function V(e2, t2, r2) {
277
279
  var _a;
278
280
  const a2 = e2 ? e2.pageType : null;
279
- let i2, n2;
280
- return r2 ? i2 = r2 : (t2 == null ? void 0 : t2.props.base.tableUuid) ? (n2 = t2.props.base.tableUuid, i2 = o(e2, n2)) : a2 && "list" === a2 && ((_a = e2 == null ? void 0 : e2.tableUuids) == null ? void 0 : _a.length) > 0 ? (n2 = e2 == null ? void 0 : e2.tableUuids[0], i2 = o(e2, n2)) : (e2 == null ? void 0 : e2.currentTableConfig) && (i2 = e2.currentTableConfig), i2;
281
+ let o2, n2;
282
+ return r2 ? o2 = r2 : (t2 == null ? void 0 : t2.props.base.tableUuid) ? (n2 = t2.props.base.tableUuid, o2 = i(e2, n2)) : a2 && "list" === a2 && ((_a = e2 == null ? void 0 : e2.tableUuids) == null ? void 0 : _a.length) > 0 ? (n2 = e2 == null ? void 0 : e2.tableUuids[0], o2 = i(e2, n2)) : (e2 == null ? void 0 : e2.currentTableConfig) && (o2 = e2.currentTableConfig), o2;
281
283
  }
282
284
  export {
283
- h as changeFeieldToMap,
284
- N as getModelOptionsByFields,
285
- w as getTableConfigByTableUuid,
286
- v as getTableNameByTableUuid,
287
- s as querySublist,
288
- n as queryTableFields,
289
- p as setTableRuntimesFromConfigure,
290
- O as tableResetConfigIndo
285
+ v as changeFeieldToMap,
286
+ w as getModelOptionsByFields,
287
+ V as getTableConfigByTableUuid,
288
+ N as getTableNameByTableUuid,
289
+ p as querySublist,
290
+ s as queryTableFields,
291
+ l as setTableRuntimesFromConfigure,
292
+ h as tableResetConfigIndo
291
293
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as y, normalizeClass as b, toDisplayString as V } from "vue";
2
- import O from "../../form/common/dataorigin-input-table.vue2.js";
2
+ import O from "../../form/common/dataorigin-input-table.vue.js";
3
3
  import { Codemirror as _ } from "vue-codemirror";
4
4
  import C from "../../workflow/component/combination.vue.js";
5
5
  import S from "./return-set-table.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as y, normalizeClass as v } from "vue";
2
- import V from "./dataorigin-input-table.vue2.js";
2
+ import V from "./dataorigin-input-table.vue.js";
3
3
  import g from "./condition.vue.js";
4
4
  import S from "./row-ul-li.vue.js";
5
5
  import "uuid";
@@ -1,4 +1,28 @@
1
- import t from "./dataorigin-input-table.vue2.js";
1
+ import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
+ import { Search as p } from "@element-plus/icons-vue";
3
+ const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
4
+ const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
+ function y() {
6
+ if (_.value.length > 0) {
7
+ let e3 = "";
8
+ _.value.forEach((l2) => {
9
+ e3 = e3 + l2.name + ",";
10
+ }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
+ } else b.value = false;
12
+ }
13
+ function S(e3) {
14
+ _.value = e3;
15
+ }
16
+ function w() {
17
+ b.value = true;
18
+ }
19
+ return a(() => c.modelValue, (e3) => {
20
+ g.value = e3;
21
+ }), (e3, l2) => {
22
+ const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
+ return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
+ };
25
+ } });
2
26
  export {
3
- t as default
27
+ v as default
4
28
  };
@@ -1,28 +1,4 @@
1
- import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
- import { Search as p } from "@element-plus/icons-vue";
3
- const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
4
- const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
- function y() {
6
- if (_.value.length > 0) {
7
- let e3 = "";
8
- _.value.forEach((l2) => {
9
- e3 = e3 + l2.name + ",";
10
- }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
- } else b.value = false;
12
- }
13
- function S(e3) {
14
- _.value = e3;
15
- }
16
- function w() {
17
- b.value = true;
18
- }
19
- return a(() => c.modelValue, (e3) => {
20
- g.value = e3;
21
- }), (e3, l2) => {
22
- const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
- return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
- };
25
- } });
1
+ import t from "./dataorigin-input-table.vue.js";
26
2
  export {
27
- v as default
3
+ t as default
28
4
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./label-design.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-abc299d9"]]);
4
+ const r = o(e, [["__scopeId", "data-v-111be6ab"]]);
5
5
  export {
6
6
  r as default
7
7
  };
package/dist/es/style.css CHANGED
@@ -10241,40 +10241,40 @@ fieldset.amb-design-item-selected {
10241
10241
  margin-bottom: 20px;
10242
10242
  }
10243
10243
 
10244
- .el-form-item[data-v-abc299d9] {
10244
+ .el-form-item[data-v-111be6ab] {
10245
10245
  margin-bottom: 0px;
10246
10246
  }
10247
10247
 
10248
- /* 整体对齐样式 - 靠右 */
10249
- .form-item-align-right[data-v-abc299d9] {
10250
- justify-content: flex-end;
10248
+ /* 整体对齐样式 - 靠左 */
10249
+ .form-item-align-flex-start[data-v-111be6ab] {
10250
+ justify-content: flex-start;
10251
10251
  }
10252
- .form-item-align-right[data-v-abc299d9] .el-form-item__label {
10252
+ .form-item-align-flex-start[data-v-111be6ab] .el-form-item__label {
10253
10253
  flex: none;
10254
10254
  }
10255
- .form-item-align-right[data-v-abc299d9] .el-form-item__content {
10255
+ .form-item-align-flex-start[data-v-111be6ab] .el-form-item__content {
10256
10256
  flex: none;
10257
10257
  }
10258
10258
 
10259
10259
  /* 整体对齐样式 - 居中 */
10260
- .form-item-align-center[data-v-abc299d9] {
10260
+ .form-item-align-center[data-v-111be6ab] {
10261
10261
  justify-content: center;
10262
10262
  }
10263
- .form-item-align-center[data-v-abc299d9] .el-form-item__label {
10263
+ .form-item-align-center[data-v-111be6ab] .el-form-item__label {
10264
10264
  flex: none;
10265
10265
  }
10266
- .form-item-align-center[data-v-abc299d9] .el-form-item__content {
10266
+ .form-item-align-center[data-v-111be6ab] .el-form-item__content {
10267
10267
  flex: none;
10268
10268
  }
10269
10269
 
10270
- /* 整体对齐样式 - 靠左 */
10271
- .form-item-align-left[data-v-abc299d9] {
10272
- justify-content: flex-start;
10270
+ /* 整体对齐样式 - 靠右 */
10271
+ .form-item-align-flex-end[data-v-111be6ab] {
10272
+ justify-content: flex-end;
10273
10273
  }
10274
- .form-item-align-left[data-v-abc299d9] .el-form-item__label {
10274
+ .form-item-align-flex-end[data-v-111be6ab] .el-form-item__label {
10275
10275
  flex: none;
10276
10276
  }
10277
- .form-item-align-left[data-v-abc299d9] .el-form-item__content {
10277
+ .form-item-align-flex-end[data-v-111be6ab] .el-form-item__content {
10278
10278
  flex: none;
10279
10279
  }
10280
10280
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.3.17-sit3-design2",
3
+ "version": "2.3.17-sit4-design1",
4
4
  "description": "AgileBuilder super page designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -29,7 +29,7 @@
29
29
  "@vitejs/plugin-vue": "^5.0.4",
30
30
  "@vueuse/core": "^10.9.0",
31
31
  "agilebuilder-private-libs": "1.0.26",
32
- "agilebuilder-ui": "1.1.59-sit6",
32
+ "agilebuilder-ui": "1.1.59-sit7",
33
33
  "echarts": "^5.5.0",
34
34
  "element-plus": "^2.6.1",
35
35
  "font-awesome": "^4.7.0",
@@ -40,8 +40,8 @@
40
40
  "pinia": "^2.1.7",
41
41
  "qrcode": "^1.5.3",
42
42
  "quill": "^2.0.1",
43
- "service-flow-designer": "2.3.17-sit3-flow1",
44
- "super-page-runtime": "2.3.17-sit3",
43
+ "service-flow-designer": "2.3.17-sit4-flow1",
44
+ "super-page-runtime": "2.3.17-sit4",
45
45
  "uuid": "^9.0.1",
46
46
  "vite": "^5.1.6",
47
47
  "vite-plugin-node-stdlib-browser": "^0.2.1",