super-page-runtime 2.3.41-sit1 → 2.3.42-sit1

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.
@@ -21,7 +21,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
21
21
  const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
22
22
  oe.value = function() {
23
23
  var _a2, _b, _c, _d;
24
- const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Le, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
24
+ const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
25
25
  return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
26
26
  const t2 = z.props ? z.props.dataOrigin : {};
27
27
  if (t2.treeTable) {
@@ -47,7 +47,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
47
47
  }
48
48
  t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
49
49
  let n2 = C(j, z);
50
- n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Ue;
50
+ n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Be;
51
51
  }
52
52
  function re() {
53
53
  if (z.props && z.props.otherSettings) {
@@ -76,6 +76,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
76
76
  }
77
77
  function be(e3) {
78
78
  e3 || (e3 = oe.value), function(e4) {
79
+ var _a2;
79
80
  e4 || (e4 = oe.value);
80
81
  const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
81
82
  if (t3 && null != t3) {
@@ -92,18 +93,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
92
93
  }
93
94
  e4.operations || (e4.operations = {});
94
95
  const o2 = function() {
95
- let e5 = [], t4 = w($.pageContext, z.props.base.showOperationCondition);
96
- if (t4 && Se(null, null, null, null, null, true, "canAdd")) {
97
- const t5 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we, isStandard: true };
98
- e5.push(t5);
96
+ let e5 = [];
97
+ if (we(null, null, null, null, null, true, "canAdd")) {
98
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: Te, isStandard: true };
99
+ e5.push(t4);
99
100
  }
100
- if (t4 && Te(null, null, null, null, null, true)) {
101
- const t5 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
102
- e5.push(t5);
101
+ if (xe(null, null, null, null, null, true)) {
102
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Ce, isStandard: true };
103
+ e5.push(t4);
103
104
  }
104
- return R(j, z, e5, ve), e5;
105
+ return R(j, z, e5, he), e5;
105
106
  }();
106
- e4.operations.operation = o2, e4.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
107
+ ((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = me);
108
+ e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete");
107
109
  }(e3), c(e3, B, j, z);
108
110
  const t2 = j.customEvents;
109
111
  t2 && (e3.eventCallBack = t2), ee.value = true, ge();
@@ -111,6 +113,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
111
113
  function ge() {
112
114
  j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
113
115
  }
116
+ function me() {
117
+ return w($.pageContext, z.props.base.showOperationCondition);
118
+ }
114
119
  n(() => {
115
120
  const e3 = z.uuid, t2 = j.subTableWatchProps;
116
121
  P.$on("_refreshSubTable_" + e3, (n2) => {
@@ -122,7 +127,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
122
127
  ae();
123
128
  }), P.$on("_refreshChildData_" + e3, (e4) => {
124
129
  !function(e5) {
125
- Ve(e5), de = setTimeout(() => {
130
+ Ge(e5), de = setTimeout(() => {
126
131
  ie.value && (ie.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
127
132
  }, 10);
128
133
  }(e4);
@@ -136,16 +141,16 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
136
141
  const e3 = z.uuid;
137
142
  P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
138
143
  });
139
- const me = t({});
140
- function ve(e3) {
144
+ const ve = t({});
145
+ function he(e3) {
141
146
  if (!e3) return;
142
- return me.value[e3.uuid] = e3, he;
147
+ return ve.value[e3.uuid] = e3, Se;
143
148
  }
144
- function he(e3, t2, n2, o2, l2, i2) {
145
- const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 = z;
149
+ function Se(e3, t2, n2, o2, l2, i2) {
150
+ const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], r2 = z;
146
151
  u2.props.base.tableUuid = r2.uuid, S(null, j, u2, "click", a2);
147
152
  }
148
- function Se(e3, t2, n2, o2, l2, i2, a2) {
153
+ function we(e3, t2, n2, o2, l2, i2, a2) {
149
154
  a2 || (a2 = "canAdd");
150
155
  if (!w($.pageContext, z.props.base.showOperationCondition)) return false;
151
156
  const u2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
@@ -160,11 +165,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
160
165
  }
161
166
  return s2;
162
167
  }
163
- function we(e3, t2, n2, o2, l2, i2) {
164
- let a2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
168
+ function Te(e3, t2, n2, o2, l2, i2) {
169
+ let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
165
170
  return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
166
171
  }
167
- function Te(e3, t2, n2, o2, l2, i2) {
172
+ function xe(e3, t2, n2, o2, l2, i2) {
168
173
  const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
169
174
  let r2 = true;
170
175
  if (a2 && null !== a2) {
@@ -184,94 +189,94 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
184
189
  }
185
190
  return r2;
186
191
  }
187
- function xe(e3, t2, n2, o2, l2, i2) {
188
- let a2 = Te(0, 0, n2, 0, 0, i2);
192
+ function Ce(e3, t2, n2, o2, l2, i2) {
193
+ let a2 = xe(0, 0, n2, 0, 0, i2);
189
194
  return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
190
195
  }
191
- function Ce(e3, t2, n2, o2, l2) {
196
+ function De(e3, t2, n2, o2, l2) {
192
197
  ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
193
- Be(l2);
198
+ qe(l2);
194
199
  });
195
200
  }
196
- function De(e3, t2, n2, o2, l2, i2, a2, u2) {
201
+ function ye(e3, t2, n2, o2, l2, i2, a2, u2) {
197
202
  ie.value.deleteRow(l2, G, false, a2, u2, n2);
198
203
  }
199
- function ye(e3) {
204
+ function Pe(e3) {
200
205
  T(X, Y, e3);
201
206
  }
202
- function Pe(e3) {
207
+ function Ie(e3) {
203
208
  j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
204
209
  }
205
- function Ie(e3) {
210
+ function Re(e3) {
206
211
  const t2 = e3.key, n2 = e3.value;
207
212
  j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
208
213
  }
209
- function Re(e3) {
214
+ function Oe(e3) {
210
215
  const t2 = j.code + "_";
211
216
  P.$emit(t2 + "prohibit-edit", e3);
212
217
  }
213
- function Oe(e3) {
218
+ function _e(e3) {
214
219
  const t2 = j.entity.data;
215
220
  if (e3) for (const n2 in e3) t2[n2] = e3[n2];
216
221
  }
217
- function _e(e3, t2) {
222
+ function ke(e3, t2) {
218
223
  if (void 0 !== t2) {
219
224
  q.value = e3;
220
225
  p(j, z, { selection: e3, row: t2 });
221
226
  }
222
227
  }
223
- function ke(e3) {
228
+ function Ae(e3) {
224
229
  q.value = e3;
225
230
  d(j, z, { selection: e3 });
226
231
  }
227
- function Ae(e3) {
232
+ function Me(e3) {
228
233
  f(j, z, { newSelection: e3 });
229
234
  }
230
- function Me(e3, t2, n2, o2) {
235
+ function Ee(e3, t2, n2, o2) {
231
236
  b(j, z, { row: e3, column: t2, cell: n2, event: o2 });
232
237
  }
233
- function Ee(e3, t2, n2, o2) {
238
+ function Ne(e3, t2, n2, o2) {
234
239
  g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
235
240
  }
236
- function Ne(e3, t2, n2) {
241
+ function Fe(e3, t2, n2) {
237
242
  m(j, z, { row: e3, column: t2, event: n2 });
238
243
  }
239
- function Fe(e3, t2, n2) {
244
+ function $e(e3, t2, n2) {
240
245
  v(j, z, { row: e3, column: t2, event: n2 });
241
246
  }
242
- function $e(e3, t2) {
247
+ function je(e3, t2) {
243
248
  h(j, z, { column: e3, event: t2 });
244
249
  }
245
- function je(e3) {
250
+ function ze(e3) {
246
251
  j.entity.data = e3;
247
252
  }
248
- function ze() {
253
+ function Ve() {
249
254
  return x(X, Y);
250
255
  }
251
- function Ve(e3) {
256
+ function Ge(e3) {
252
257
  return T(X, Y, e3);
253
258
  }
254
- function Ge(e3) {
259
+ function He(e3) {
255
260
  return A(e3, null, $);
256
261
  }
257
- function He(e3) {
262
+ function Le(e3) {
258
263
  return M(e3, e3.cellStyle, $);
259
264
  }
260
- function Le(e3) {
265
+ function Ue(e3) {
261
266
  const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
262
267
  return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
263
268
  }
264
- function Ue({ row: e3, editConditions: t2 }) {
269
+ function Be({ row: e3, editConditions: t2 }) {
265
270
  let n2 = true;
266
271
  return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
267
272
  }
268
- function Be(e3) {
273
+ function qe(e3) {
269
274
  var _a2;
270
275
  (_a2 = ie.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
271
276
  }
272
277
  return function(e3) {
273
278
  const t2 = re();
274
- t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = ze(), be(e3));
279
+ t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), be(e3));
275
280
  }(oe.value), N2({ createRow: function() {
276
281
  return ie.value.createRow(G);
277
282
  }, getSelections: function() {
@@ -287,7 +292,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
287
292
  return z;
288
293
  }, validatorSunTableListData: function() {
289
294
  return ie.value.validatorSunTableListData();
290
- }, getValue: ze, setValue: Ve, getTableSelectOptions: function() {
295
+ }, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
291
296
  if (ie.value) return ie.value.getTableSelectOptions(G);
292
297
  }, dynamicControlTableEdit: function(e3, t2, n2) {
293
298
  ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
@@ -308,7 +313,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
308
313
  }, setCurrentRowIndex: function(e3) {
309
314
  var _a2;
310
315
  (_a2 = ie.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
311
- }, setScrollTopByRowIndex: Be, getTableData: function() {
316
+ }, setScrollTopByRowIndex: qe, getTableData: function() {
312
317
  var _a2;
313
318
  return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
314
319
  }, addRequiredClass: function(e3, t2, n2) {
@@ -322,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
322
327
  (_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
323
328
  } }), (e3, t2) => {
324
329
  const n2 = l("super-grid");
325
- return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Ae, onCellClick: Me, onCellDblclick: Ee, onRowClick: Ne, onRowDblclick: Fe, onHeaderClick: $e, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: je }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
330
+ return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
326
331
  };
327
332
  } });
328
333
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./label-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-40f0b5f4"]]);
4
+ const t = r(e, [["__scopeId", "data-v-c76703c3"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as h, formatValueByType as k } from "../../../../utils/page-helper-util.js";
4
- import { SuperIcon as w } from "agilebuilder-ui";
5
- import { getCustomFunc as T, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
3
+ import { getVariableValue as h, formatValueByType as w } from "../../../../utils/page-helper-util.js";
4
+ import { SuperIcon as T } from "agilebuilder-ui";
5
+ import { getCustomFunc as k, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
6
6
  import { $t as I } from "../../../../utils/i18n-util.js";
7
7
  const b = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, V = { style: { overflow: "hidden", "white-space": "nowrap" } }, j = ["title"], R = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: R2 }) {
8
8
  const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
@@ -14,9 +14,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
14
14
  let t2 = null;
15
15
  B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
16
16
  } else if ("custom" === G) {
17
- const t2 = T(S.pageContext, W.value.formatFunc);
17
+ const t2 = k(S.pageContext, W.value.formatFunc);
18
18
  t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
19
- } else e3 = k(e3, G, W.value);
19
+ } else e3 = w(e3, G, W.value);
20
20
  return e3 = null == e3 ? "" : e3, e3;
21
21
  }), J = t(null), K = t(null), L = t(null);
22
22
  return n(() => {
@@ -28,7 +28,7 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
28
28
  B.value = e3 || [];
29
29
  } }), (e3, t2) => {
30
30
  const l2 = u("el-form-item");
31
- return W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(w), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d("  " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), o(f(w), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(W.value.suffixTxt), 7)) : m("", true)]));
31
+ return W.value.whetherTitle || W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(f(I)(W.value.title)), 1)], 6)) : W.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d("  " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), o(f(T), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(f(I)(W.value.suffixTxt)), 7)) : m("", true)]));
32
32
  };
33
33
  } });
34
34
  export {
@@ -11,118 +11,121 @@ import { usePageContextStore as B } from "../../utils/page-store.js";
11
11
  import { isHasFieldAuth as H } from "../../utils/table-utils.js";
12
12
  import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
13
13
  import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
14
- const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
14
+ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
15
15
  var _a, _b, _c;
16
- const k2 = e2;
17
- null == k2.configure.style && (k2.configure.style = {});
18
- let D = null;
19
- const E = w(k2.configure, k2.pageContext);
20
- k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = E);
21
- const J = R(E || "true", k2.pageContext.systemCode), L = H(k2.pageContext, k2.configure), W = J && L;
22
- k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = W), j(k2.pageContext, k2.configure, W);
16
+ const L2 = e2;
17
+ null == L2.configure.style && (L2.configure.style = {});
18
+ let k = null;
19
+ const D = w(L2.configure, L2.pageContext);
20
+ L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
21
+ const E = R(D || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
22
+ L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
23
23
  let q = o(null), z = o(true), G = o("");
24
- if (k2.configure && k2.configure.props) {
24
+ if (L2.configure && L2.configure.props) {
25
25
  let e3 = [];
26
- ((_a = k2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof k2.configure.props.base.showConditions ? JSON.parse(k2.configure.props.base.showConditions) : k2.configure.props.base.showConditions), z = t(() => {
26
+ ((_a = L2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof L2.configure.props.base.showConditions ? JSON.parse(L2.configure.props.base.showConditions) : L2.configure.props.base.showConditions), z = t(() => {
27
27
  var _a2;
28
28
  let o2 = true;
29
29
  if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
30
- else if (O(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = V(k2.pageContext, e3);
30
+ else if (O(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
31
31
  else {
32
- const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
32
+ const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
33
33
  e4 && "hidden" === e4 && (o2 = false);
34
34
  }
35
35
  else o2 = false;
36
36
  else o2 = false;
37
37
  return o2;
38
38
  });
39
- if (k2.configure._dynamicShowFlag = z, (_b = k2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
40
- if (k2.pageContext.hiddenNotValidatorCodes || (k2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === k2.configure.name) D = k2.configure.code ? k2.configure.code : k2.configure.uuid;
39
+ if (L2.configure._dynamicShowFlag = z, (_b = L2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
40
+ if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name) k = L2.configure.code ? L2.configure.code : L2.configure.uuid;
41
41
  else {
42
- let e4 = N(k2.configure);
43
- D = e4 && e4.length > 0 ? e4[1] : null;
42
+ let e4 = N(L2.configure);
43
+ k = e4 && e4.length > 0 ? e4[1] : null;
44
44
  }
45
45
  n(z, (e4) => {
46
- e4 ? k2.pageContext.hiddenNotValidatorCodes.delete(D) : k2.pageContext.hiddenNotValidatorCodes.add(D);
46
+ e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(k) : L2.pageContext.hiddenNotValidatorCodes.add(k);
47
47
  }, { immediate: true });
48
48
  }
49
- if ((_c = k2.configure.props.base) == null ? void 0 : _c.editConditions) {
50
- const e4 = k2.configure.props.base.editConditions;
49
+ if ((_c = L2.configure.props.base) == null ? void 0 : _c.editConditions) {
50
+ const e4 = L2.configure.props.base.editConditions;
51
51
  if (e4.length > 0) {
52
- const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
53
- if (n2.rawSate = n2.state, S(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
54
- const e5 = k2.configure.props.base;
52
+ const o2 = L2.configure.runtime ? L2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
53
+ if (n2.rawSate = n2.state, S(L2.pageContext) && L2.pageContext.fieldPermissionMap) {
54
+ const e5 = L2.configure.props.base;
55
55
  if (e5 && e5.prop) {
56
56
  let o3 = e5.prop;
57
57
  o3 = _(o3);
58
- const t2 = k2.pageContext.fieldPermissionMap.get(o3);
58
+ const t2 = L2.pageContext.fieldPermissionMap.get(o3);
59
59
  t2 && false === t2.canEdit && (G.value = "disabled");
60
60
  }
61
61
  }
62
62
  n2.state = t({ get() {
63
63
  if ("disabled" === G.value) return G.value;
64
- return V(k2.pageContext, e4) ? "" : "disabled";
64
+ return V(L2.pageContext, e4) ? "" : "disabled";
65
65
  }, set() {
66
66
  } });
67
67
  }
68
68
  }
69
69
  }
70
70
  const I = o({});
71
- I.value = i(h(k2.configure.name));
71
+ I.value = i(h(L2.configure.name));
72
72
  const K = o(true);
73
73
  null == I.value && (I.value = v, K.value = false);
74
- const Q = o(null), U = o({}), X = o(""), Y = T(k2.configure);
74
+ const Q = o(null), U = o({}), X = o(""), Y = T(L2.configure);
75
75
  Y && (X.value = Y);
76
- const Z = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
76
+ const Z = L2.configure.runtime && L2.configure.runtime.common ? L2.configure.runtime.common : {};
77
77
  if (Z.class && (X.value += " " + Z.class), Z.style) {
78
78
  Object.assign(U.value, Z.style);
79
- const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : b.PC, o2 = Z.style[e3 + "_style"];
79
+ const e3 = L2.pageContext && L2.pageContext.dimensions ? L2.pageContext.dimensions : b.PC, o2 = Z.style[e3 + "_style"];
80
80
  o2 && Object.assign(U.value, o2);
81
81
  const t2 = Z.style[e3 + "_class"];
82
82
  t2 && (X.value += " " + t2);
83
83
  }
84
84
  const ee = B();
85
- function oe(e3) {
85
+ let oe = false;
86
+ function te(e3) {
87
+ var _a2, _b2, _c2;
88
+ if (!e3) return;
86
89
  if (Q.value = e3, e3 && !e3.show && (e3.show = function() {
87
90
  q.value = "show";
88
91
  }), e3 && !e3.hide && (e3.hide = function() {
89
92
  q.value = "hide";
90
93
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
91
- return k2.configure;
92
- }), k2.configure.uuid && x(k2.pageContext, k2.configure.uuid, Q), k2.configure.code) y(k2.pageContext, k2.configure.code, Q);
93
- else if ("table" === k2.configure.name) y(k2.pageContext, k2.configure.uuid, Q);
94
- else if (k2.configure.props && k2.configure.props.base) {
95
- const e4 = k2.configure.props.base;
94
+ return L2.configure;
95
+ }), L2.configure.uuid && x(L2.pageContext, L2.configure.uuid, Q), L2.configure.code) y(L2.pageContext, L2.configure.code, Q);
96
+ else if ("table" === L2.configure.name) y(L2.pageContext, L2.configure.uuid, Q);
97
+ else if (L2.configure.props && L2.configure.props.base) {
98
+ const e4 = L2.configure.props.base;
96
99
  if (e4.prop) {
97
100
  let o3 = e4.prop;
98
- o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(k2.pageContext, o3, Q);
101
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(L2.pageContext, o3, Q);
99
102
  }
100
103
  }
101
- const o2 = k2.configure.props ? k2.configure.props.base : null;
104
+ const o2 = L2.configure.props ? L2.configure.props.base : null;
102
105
  if (o2 && o2.prop) {
103
106
  let e4 = o2.prop;
104
- e4 = _(e4), M(k2.pageContext, e4), k2.pageContext.propTitleMap = k2.pageContext.propTitleMap || {}, k2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
107
+ e4 = _(e4), M(L2.pageContext, e4), L2.pageContext.propTitleMap = L2.pageContext.propTitleMap || {}, L2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
105
108
  }
106
109
  !function() {
107
110
  if (!Q.value) return;
108
- const e4 = A(k2.pageContext, k2.configure);
109
- "table" !== k2.configure.name && e4 && e4.isCalcHeight && C(() => {
110
- var _a2;
111
- if (!(((_a2 = Q.value) == null ? void 0 : _a2.$el) || Q.value)) return;
111
+ const e4 = A(L2.pageContext, L2.configure);
112
+ "table" !== L2.configure.name && e4 && e4.isCalcHeight && C(() => {
113
+ var _a3;
114
+ if (!(((_a3 = Q.value) == null ? void 0 : _a3.$el) || Q.value)) return;
112
115
  const e5 = (o3 = 0) => {
113
116
  if (!Q.value) return;
114
117
  let t2 = Q.value.$el || Q.value;
115
118
  if (!t2) return;
116
119
  const n2 = t2.getBoundingClientRect();
117
- null !== ne && Math.abs(n2.y - ne) < 1 ? te() : o3 < 10 ? (ne = n2.y, ie = setTimeout(() => {
120
+ null !== ie && Math.abs(n2.y - ie) < 1 ? ne() : o3 < 10 ? (ie = n2.y, re = setTimeout(() => {
118
121
  e5(o3 + 1);
119
- }, 50)) : te();
122
+ }, 50)) : ne();
120
123
  };
121
- ne = null, e5();
124
+ ie = null, e5();
122
125
  });
123
- }();
126
+ }(), se(), oe || (oe = true, ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = L2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(L2.configure.uuid, L2.configure.props.base.autoAnchorConditions));
124
127
  }
125
- function te() {
128
+ function ne() {
126
129
  if (!Q.value) return;
127
130
  let e3 = Q.value.$el;
128
131
  e3 || (e3 = Q.value);
@@ -130,34 +133,33 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
130
133
  if (!e3 || !o2) return;
131
134
  const t2 = e3.getBoundingClientRect();
132
135
  let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
133
- if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
136
+ if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
134
137
  const o3 = e3.closest(".runtime-page-container");
135
138
  if (o3) {
136
139
  const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
137
140
  n2 = e4.height - r2 - 30, i2 = n2 + "px";
138
141
  }
139
142
  } else $(n2) && (i2 = n2 + "px");
140
- U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
143
+ U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
141
144
  }
142
145
  r(() => {
143
- var _a2, _b2, _c2;
144
- re(), ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = k2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(k2.configure.uuid, k2.configure.props.base.autoAnchorConditions);
146
+ W && P(L2.configure) || ee.countComponentsLoadedNumber();
145
147
  }), s(() => {
146
148
  var _a2;
147
- ie && clearTimeout(ie), D && ((_a2 = k2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(D));
149
+ re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
148
150
  });
149
- let ne = null, ie = null;
150
- const re = () => {
151
+ let ie = null, re = null;
152
+ const se = () => {
151
153
  if (!Q.value) return;
152
154
  let e3 = Q.value.$el;
153
155
  e3 || (e3 = Q.value);
154
156
  const o2 = e3.parentNode;
155
157
  if (!e3 || !o2) return;
156
- const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
158
+ const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
157
159
  "top" == i2 || "bottom" == i2 || n2.position;
158
160
  };
159
- return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: oe, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
161
+ return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
160
162
  } });
161
163
  export {
162
- k as default
164
+ L as default
163
165
  };
@@ -3,6 +3,7 @@ import { PageDesign } from '../utils/interfaces/page-design-types';
3
3
 
4
4
  declare function pickFileDone(data: any): void;
5
5
  declare function uploadFileDone(data: any): void;
6
+ declare function uploadFileError(data: any): void;
6
7
  declare function scanDone(data: any): void;
7
8
  declare function getFormFormatData(): any;
8
9
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -61,6 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
61
62
  }>, {
62
63
  pickFileDone: typeof pickFileDone;
63
64
  uploadFileDone: typeof uploadFileDone;
65
+ uploadFileError: typeof uploadFileError;
64
66
  scanDone: typeof scanDone;
65
67
  getFormFormatData: typeof getFormFormatData;
66
68
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-85a253d1"]]);
4
+ const r = p(e, [["__scopeId", "data-v-76cf1d44"]]);
5
5
  export {
6
6
  r as default
7
7
  };