super-page-runtime 2.3.41 → 2.3.42-cdn1

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.
@@ -11,118 +11,121 @@ import { usePageContextStore as P } from "../../utils/page-store.js";
11
11
  import { isHasFieldAuth as B } 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 = B(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 = B(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 (H(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = V(k2.pageContext, e3);
30
+ else if (H(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 = P();
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);
@@ -132,34 +135,33 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
132
135
  let n2 = window.innerHeight - t2.y - 30;
133
136
  window.innerHeight, t2.y;
134
137
  let i2 = n2 + "";
135
- if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
138
+ if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
136
139
  const o3 = e3.closest(".runtime-page-container");
137
140
  if (o3) {
138
141
  const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
139
142
  n2 = e4.height - r2 - 30, i2 = n2 + "px";
140
143
  }
141
144
  } else $(n2) && (i2 = n2 + "px");
142
- 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;
145
+ 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;
143
146
  }
144
147
  r(() => {
145
- var _a2, _b2, _c2;
146
- 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);
148
+ W && O(L2.configure) || ee.countComponentsLoadedNumber();
147
149
  }), s(() => {
148
150
  var _a2;
149
- ie && clearTimeout(ie), D && ((_a2 = k2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(D));
151
+ re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
150
152
  });
151
- let ne = null, ie = null;
152
- const re = () => {
153
+ let ie = null, re = null;
154
+ const se = () => {
153
155
  if (!Q.value) return;
154
156
  let e3 = Q.value.$el;
155
157
  e3 || (e3 = Q.value);
156
158
  const o2 = e3.parentNode;
157
159
  if (!e3 || !o2) return;
158
- const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
160
+ const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
159
161
  "top" == i2 || "bottom" == i2 || n2.position;
160
162
  };
161
- return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: oe, style: d(U.value), class: f(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
163
+ return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
162
164
  } });
163
165
  export {
164
- k as default
166
+ L as default
165
167
  };
@@ -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
  };