super-page-runtime 2.3.36-sit2 → 2.3.37-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.
Files changed (32) hide show
  1. package/dist/es/components/runtime/utils/events/validator-util.js +125 -87
  2. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -1
  3. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -11
  4. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
  5. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
  6. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +35 -35
  7. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +41 -41
  8. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +59 -59
  9. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +36 -36
  10. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +57 -57
  11. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +19 -19
  12. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +59 -59
  13. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +24 -24
  15. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +25 -25
  16. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +48 -48
  17. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +106 -106
  19. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +87 -87
  21. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  22. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +19 -19
  24. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +94 -90
  25. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  26. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
  27. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
  29. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  30. package/dist/es/components/runtime/views/super-page.vue2.js +9 -3
  31. package/dist/es/style.css +166 -158
  32. package/package.json +2 -2
@@ -1,93 +1,93 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as s, normalizeStyle as p, normalizeClass as d, unref as f, withCtx as m, createElementBlock as v, toDisplayString as c } from "vue";
2
- import { getVariableValue as g, setVariableValue as h } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadUploaded as w, fileUploadBeforeDelete as b, fileUploadDeleted as x } from "../../../../utils/events/event-util.js";
4
- import k from "agilebuilder-ui/src/utils/request";
5
- import { FsUploadNew as I } from "agilebuilder-ui";
6
- import P from "../../../../utils/eventBus.js";
7
- import { $t as S } from "../../../../utils/i18n-util.js";
8
- import { addRequiredClassUtil as N } from "../../../../utils/common-util.js";
9
- import { getRelativeBaseUrl as T } from "agilebuilder-ui/src/utils/common-util";
10
- const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as s, normalizeStyle as p, normalizeClass as d, unref as f, createSlots as m, withCtx as v, createElementVNode as c, toDisplayString as g } from "vue";
2
+ import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
+ import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadUploaded as b, fileUploadBeforeDelete as x, fileUploadDeleted as k } from "../../../../utils/events/event-util.js";
4
+ import I from "agilebuilder-ui/src/utils/request";
5
+ import { FsUploadNew as P } from "agilebuilder-ui";
6
+ import S from "../../../../utils/eventBus.js";
7
+ import { $t as N } from "../../../../utils/i18n-util.js";
8
+ import { addRequiredClassUtil as T } from "../../../../utils/common-util.js";
9
+ import { getRelativeBaseUrl as _ } from "agilebuilder-ui/src/utils/common-util";
10
+ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
11
11
  var _a, _b, _c, _d, _e, _f, _g;
12
- const j = e2, z = l(null), R = j.configure.runtime ? j.configure.runtime : {}, F = l(R.props ? R.props : {}), D = R.style, O = R.class, q = R.headerStyle, W = R.titleExceedStyle, $ = j.pageContext.entity ? j.pageContext.entity : {}, A = j.configure.props.base ? j.configure.props.base : {}, E = X(A.prop), U = X(A.propName);
13
- let B = l({});
14
- B.value.isShowWatermark = void 0 === ((_b = (_a = j.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = j.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", B.value.content = ((_e = (_d = j.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = j.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", E && E.length > 1 && t(() => j.pageContext.entity[E[0]][E[1]], (e3) => {
15
- V(g($, E));
12
+ const z = e2, R = l(null), F = z.configure.runtime ? z.configure.runtime : {}, D = l(F.props ? F.props : {}), O = F.style, q = F.class, W = F.headerStyle, $ = F.titleExceedStyle, A = z.pageContext.entity ? z.pageContext.entity : {}, E = z.configure.props.base ? z.configure.props.base : {}, U = Y(E.prop), B = Y(E.propName);
13
+ let G = l({});
14
+ G.value.isShowWatermark = void 0 === ((_b = (_a = z.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = z.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", G.value.content = ((_e = (_d = z.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = z.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", U && U.length > 1 && t(() => z.pageContext.entity[U[0]][U[1]], (e3) => {
15
+ X(h(A, U));
16
16
  });
17
- const G = j.pageContext.code, H = l(E ? G + "__" + E.join("__") : null), J = g($, E), K = l(null), L = l(false), M = l([]), Q = l({});
18
- function V(e3) {
17
+ const H = z.pageContext.code, J = l(U ? H + "__" + U.join("__") : null), K = h(A, U), L = l(null), M = l(false), Q = l([]), V = l({});
18
+ function X(e3) {
19
19
  if (e3) {
20
20
  const l2 = e3.split(",");
21
21
  if (l2.length > 0) {
22
- const e4 = T(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
23
- k.post(e4, l2).then((e5) => {
24
- M.value = [];
22
+ const e4 = _(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
23
+ I.post(e4, l2).then((e5) => {
24
+ Q.value = [];
25
25
  const t2 = [], o2 = {};
26
26
  e5.forEach((e6) => {
27
27
  o2[e6.uuid] = e6;
28
28
  });
29
29
  for (let e6 = 0; e6 < l2.length; e6++) {
30
30
  const i2 = l2[e6];
31
- t2.push(o2[i2].fileName), M.value.push({ showName: o2[i2].fileName, serverPath: i2, fileSize: o2[i2].fileSize });
31
+ t2.push(o2[i2].fileName), Q.value.push({ showName: o2[i2].fileName, serverPath: i2, fileSize: o2[i2].fileSize });
32
32
  }
33
- "input" === F.value.displayType && (Q.value.showName = t2.join(","), Q.value.serverPath = l2.join(","));
33
+ "input" === D.value.displayType && (V.value.showName = t2.join(","), V.value.serverPath = l2.join(","));
34
34
  }).finally(() => {
35
- L.value = true;
35
+ M.value = true;
36
36
  });
37
- } else L.value = true;
38
- } else M.value = [], Q.value = {}, L.value = true;
37
+ } else M.value = true;
38
+ } else Q.value = [], V.value = {}, M.value = true;
39
39
  }
40
- function X(e3) {
40
+ function Y(e3) {
41
41
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
42
42
  }
43
- function Y(e3) {
44
- j.pageContext.fileuploadInfo || (j.pageContext.fileuploadInfo = []);
45
- return -1 === j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid) && j.pageContext.fileuploadInfo.push({ uuid: j.configure.uuid, label: S(F.value.title) }), C(e3);
43
+ function Z(e3) {
44
+ z.pageContext.fileuploadInfo || (z.pageContext.fileuploadInfo = []);
45
+ return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: N(D.value.title) }), w(e3);
46
46
  }
47
- function Z() {
48
- if (j.pageContext.fileuploadInfo && j.configure.uuid) {
49
- const e3 = j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid);
50
- -1 !== e3 && j.pageContext.fileuploadInfo.splice(e3, 1);
47
+ function ee() {
48
+ if (z.pageContext.fileuploadInfo && z.configure.uuid) {
49
+ const e3 = z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid);
50
+ -1 !== e3 && z.pageContext.fileuploadInfo.splice(e3, 1);
51
51
  }
52
52
  }
53
- function ee(e3) {
54
- Z();
53
+ function le(e3) {
54
+ ee();
55
55
  }
56
- V(J);
57
- const le = (e3, l2, t2) => {
56
+ X(K);
57
+ const te = (e3, l2, t2) => {
58
58
  var o2;
59
- Z(), oe(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, w(j.pageContext, j.configure, o2);
60
- }, te = (e3) => {
61
- const l2 = (t2 = { file: e3 }, b(j.pageContext, j.configure, t2));
59
+ ee(), ie(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, b(z.pageContext, z.configure, o2);
60
+ }, oe = (e3) => {
61
+ const l2 = (t2 = { file: e3 }, x(z.pageContext, z.configure, t2));
62
62
  var t2;
63
- (l2 || void 0 === l2) && (oe(), function(e4) {
64
- x(j.pageContext, j.configure, e4);
63
+ (l2 || void 0 === l2) && (ie(), function(e4) {
64
+ k(z.pageContext, z.configure, e4);
65
65
  }({ file: e3 }));
66
- }, oe = () => {
66
+ }, ie = () => {
67
67
  const e3 = [], l2 = [];
68
- if (F.value.limit && M.value.length > F.value.limit) {
69
- const e4 = M.value.length - F.value.limit;
70
- for (let l3 = 0; l3 < e4; l3++) M.value.shift();
68
+ if (D.value.limit && Q.value.length > D.value.limit) {
69
+ const e4 = Q.value.length - D.value.limit;
70
+ for (let l3 = 0; l3 < e4; l3++) Q.value.shift();
71
71
  }
72
- for (let t2 = 0; t2 < M.value.length; t2++) e3.push(M.value[t2].showName), l2.push(M.value[t2].serverPath);
73
- h(j.pageContext.entity, E, l2.join(",")), h(j.pageContext.entity, U, e3.join(",")), l2.length > 0 && (z.value = "");
74
- }, ie = l(null), ae = l(null);
72
+ for (let t2 = 0; t2 < Q.value.length; t2++) e3.push(Q.value[t2].showName), l2.push(Q.value[t2].serverPath);
73
+ y(z.pageContext.entity, U, l2.join(",")), y(z.pageContext.entity, B, e3.join(",")), l2.length > 0 && (R.value = "");
74
+ }, ae = l(null), ne = l(null);
75
75
  return o(() => {
76
- P.$on(H.value + "-pickFileDone", (e3) => {
77
- K.value.pickFileDone(e3);
76
+ S.$on(J.value + "-pickFileDone", (e3) => {
77
+ L.value.pickFileDone(e3);
78
78
  }), i(() => {
79
- const e3 = g($, E), l2 = { showName: g($, U), serverPath: e3 };
80
- y(l2, j.pageContext, j.configure, { formItemRef: ie.value, componentRef: K.value, titleRef: ae.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
79
+ const e3 = h(A, U), l2 = { showName: h(A, B), serverPath: e3 };
80
+ C(l2, z.pageContext, z.configure, { formItemRef: ae.value, componentRef: L.value, titleRef: ne.value, value: l2, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
81
81
  });
82
82
  }), a(() => {
83
- P.$off(H.value + "-pickFileDone");
84
- }), _2({ addRequiredClass: function() {
85
- z.value = N();
83
+ S.$off(J.value + "-pickFileDone");
84
+ }), j2({ addRequiredClass: function() {
85
+ R.value = T();
86
86
  } }), (e3, l2) => {
87
87
  const t2 = n("el-form-item");
88
- return F.value.tittleShow ? (s(), u(t2, { key: 0, ref_key: "formItemRef", ref: ie, required: F.value.required, class: d(f(O) + (z.value ? " " + z.value : "")), "label-width": F.value.labelWidth, style: p(f(D)) }, { label: m(() => [F.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: ae, style: p({ ...f(q), ...f(W) }) }, c(f(S)(F.value.title)), 5)) : r("", true)]), default: m(() => [L.value ? (s(), u(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (s(), u(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
88
+ return D.value.tittleShow ? (s(), u(t2, { key: 0, ref_key: "formItemRef", ref: ae, required: D.value.required, class: d(f(q) + (R.value ? " " + R.value : "")), "label-width": D.value.labelWidth, style: p(f(O)) }, m({ default: v(() => [M.value ? (s(), u(f(P), { key: 0, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: f(G), "on-success": te, "on-remove": oe, "before-upload": Z, "on-error": le, pageContext: e3.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [D.value.tittleShow ? { name: "label", fn: v(() => [c("div", { ref_key: "titleRef", ref: ne, style: p({ ...f(W), ...f($) }) }, g(f(N)(D.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : M.value ? (s(), u(f(P), { key: 1, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: f(G), "on-success": te, "on-remove": oe, "before-upload": Z, "on-error": le, pageContext: e3.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
89
89
  };
90
90
  } });
91
91
  export {
92
- _ as default
92
+ j as default
93
93
  };
@@ -1,28 +1,28 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as a, resolveComponent as n, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as m, createVNode as f, createElementBlock as c, createCommentVNode as d, Fragment as v, createTextVNode as g, toDisplayString as y } from "vue";
2
- import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { setVariableValue as C, getVariableValue as h } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent as b, handleFormEvent as R } from "../../../../utils/events/event-util.js";
5
- import j from "../common/title-suffix-element.vue.js";
6
- import { $t as k } from "../../../../utils/i18n-util.js";
7
- import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
8
- const q = e({ __name: "input-number-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
9
- const w = e2, z = t(null), S = w.pageContext.entity ? w.pageContext.entity : {};
10
- let V = x(w.pageContext, w.configure);
11
- const B = l({ get: () => h(S, V), set(e3) {
12
- C(S, V, e3), null != e3 && (z.value = "");
13
- } }), I = w.configure.runtime ? w.configure.runtime : {}, D = I.style, E = I.class, F = I.headerStyle, T = I.titleExceedStyle, U = t(I.props ? I.props : {}), W = t(null), A = t(null), G = t(null);
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as a, resolveComponent as n, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as m, withCtx as f, createVNode as c, createElementVNode as d, createElementBlock as v, Fragment as g, createTextVNode as y, toDisplayString as x } from "vue";
2
+ import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
+ import { setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as R, handleFormEvent as j } from "../../../../utils/events/event-util.js";
5
+ import k from "../common/title-suffix-element.vue.js";
6
+ import { $t as _ } from "../../../../utils/i18n-util.js";
7
+ import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
8
+ const w = e({ __name: "input-number-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
9
+ const z = e2, S = t(null), V = z.pageContext.entity ? z.pageContext.entity : {};
10
+ let B = C(z.pageContext, z.configure);
11
+ const I = l({ get: () => b(V, B), set(e3) {
12
+ h(V, B, e3), null != e3 && (S.value = "");
13
+ } }), D = z.configure.runtime ? z.configure.runtime : {}, E = D.style, F = D.class, T = D.headerStyle, U = D.titleExceedStyle, W = t(D.props ? D.props : {}), A = t(null), G = t(null), H = t(null);
14
14
  return o(() => {
15
15
  a(() => {
16
- const e3 = B.value;
17
- b(e3, w.pageContext, w.configure, { formItemRef: W.value, componentRef: A.value, titleRef: G.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
16
+ const e3 = I.value;
17
+ R(e3, z.pageContext, z.configure, { formItemRef: A.value, componentRef: G.value, titleRef: H.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
18
18
  });
19
- }), q2({ addRequiredClass: function() {
20
- z.value = _();
19
+ }), w2({ addRequiredClass: function() {
20
+ S.value = q();
21
21
  } }), (e3, t2) => {
22
22
  const l2 = n("el-input-number"), o2 = n("el-form-item");
23
- return i(), u(o2, { ref_key: "formItemRef", ref: W, required: U.value.required, class: s(p(E) + (z.value ? " " + z.value : "")), "label-width": U.value.labelWidth, style: r(p(D)) }, { label: m(() => [U.value.tittleShow ? (i(), c("div", { key: 0, ref_key: "titleRef", ref: G, style: r({ ...p(F), ...p(T) }) }, [U.value.prefixType ? (i(), u(j, { key: 0, pageContext: e3.pageContext, property: U.value }, null, 8, ["pageContext", "property"])) : (i(), c(v, { key: 1 }, [g(y(p(k)(U.value.title)), 1)], 64))], 4)) : d("", true)]), default: m(() => [f(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === U.value.state, readonly: "readonly" === U.value.state, controls: U.value.showButton, size: U.value.size, placeholder: U.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: t2[1] || (t2[1] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
23
+ return i(), u(o2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: s(p(F) + (S.value ? " " + S.value : "")), "label-width": W.value.labelWidth, style: r(p(E)) }, m({ default: f(() => [c(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: W.value.placeholder, modelValue: I.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => I.value = e4), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: t2[1] || (t2[1] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [d("div", { ref_key: "titleRef", ref: H, style: r({ ...p(T), ...p(U) }) }, [W.value.prefixType ? (i(), u(k, { key: 0, pageContext: e3.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (i(), v(g, { key: 1 }, [y(x(p(_)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
24
24
  };
25
25
  } });
26
26
  export {
27
- q as default
27
+ w as default
28
28
  };
@@ -1,81 +1,81 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
- import { SuperIcon as T } from "agilebuilder-ui";
3
- import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
- import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
- import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
7
- import q from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
9
- import M from "../../../../utils/eventBus.js";
10
- import { $t as N } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
12
- const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as y, createVNode as g, createCommentVNode as m, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as I, Fragment as T } from "vue";
2
+ import { SuperIcon as k } from "agilebuilder-ui";
3
+ import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
4
+ import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
+ import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
6
+ import { formatScanRuleSets as O, analysisScanValue as P, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
7
+ import D from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as M } from "agilebuilder-ui/src/utils/common-util";
9
+ import N from "../../../../utils/eventBus.js";
10
+ import { $t as z } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as J } from "../../../../utils/common-util.js";
12
+ const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
13
13
  var _a, _b, _c;
14
- const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
15
- let $ = k(L.pageContext, L.configure);
16
- if (L.pageContext.modelFieldsMap) {
17
- const e3 = w($, L.pageContext);
18
- e3 && (F.value = V(e3.dataType) ? "number" : "text");
14
+ const B = e2, F = B.pageContext.entity ? B.pageContext.entity : {}, $ = t("text");
15
+ let A = w(B.pageContext, B.configure);
16
+ if (B.pageContext.modelFieldsMap) {
17
+ const e3 = V(A, B.pageContext);
18
+ e3 && ($.value = h(e3.dataType) ? "number" : "text");
19
19
  }
20
- const A = t(D()), E = L.pageContext.code, H = t($ && $.length > 0 ? E + "__" + $.join("__") : null), U = t(null), W = l({ get: () => b(B, $), set(e3) {
21
- h(B, $, e3), null != e3 && "" !== e3 && (U.value = "");
22
- } }), G = t(null), K = t(null), Q = t(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = t(X.props ? X.props : {}), Z = t(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
23
- let ee = false;
24
- const te = window.localStorage.getItem("auth_source");
25
- te && "dingtalk" === te && (ee = true);
26
- let le = "";
27
- le = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
28
- const ne = !(!A.value || !le || "app" !== le), oe = t(!!((ne || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
29
- let ae = {};
30
- ((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
31
- ae = e3;
32
- }), u(() => W.value, (e3) => {
20
+ const E = t(M()), H = B.pageContext.code, U = t(A && A.length > 0 ? H + "__" + A.join("__") : null), W = t(null), G = l({ get: () => _(F, A), set(e3) {
21
+ b(F, A, e3), null != e3 && "" !== e3 && (W.value = "");
22
+ } }), K = t(null), Q = t(null), X = t(null), Y = B.configure.runtime ? B.configure.runtime : {}, Z = t(Y.props ? Y.props : {}), ee = t(!!((_a = Z.value.scan) == null ? void 0 : _a.enable));
23
+ let te = false;
24
+ const le = window.localStorage.getItem("auth_source");
25
+ le && "dingtalk" === le && (te = true);
26
+ let ne = "";
27
+ ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
28
+ const oe = !(!E.value || !ne || "app" !== ne), ae = t(!!((oe || te) && ee.value || E.value && ee.value && "https:" === window.location.protocol));
29
+ let ue = {};
30
+ ((_b = Z.value.scan) == null ? void 0 : _b.enable) && ((_c = Z.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(Z.value.scan.ruleList).then((e3) => {
31
+ ue = e3;
32
+ }), u(() => G.value, (e3) => {
33
33
  e3 = e3.trim();
34
- const t2 = O(e3, ae);
35
- t2 && P(L.pageContext, t2.scanSet, t2.params);
34
+ const t2 = P(e3, ue);
35
+ t2 && q(B.pageContext, t2.scanSet, t2.params);
36
36
  }));
37
- const ue = X.style, ie = X.class, re = X.headerStyle, se = X.titleExceedStyle;
38
- function pe(e3) {
39
- return h(B, $, e3);
37
+ const ie = Y.style, re = Y.class, se = Y.headerStyle, pe = Y.titleExceedStyle;
38
+ function ce(e3) {
39
+ return b(F, A, e3);
40
40
  }
41
41
  n(() => {
42
- M.$on(H.value + "-scanDone", (e3) => {
43
- pe(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
42
+ N.$on(U.value + "-scanDone", (e3) => {
43
+ ce(e3.result), S(e3.result, B.pageContext, B.configure, "afterScanDone");
44
44
  }), o(() => {
45
45
  var _a2;
46
- const e3 = W.value;
47
- S(e3, L.pageContext, L.configure, { formItemRef: G.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), oe.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
46
+ const e3 = G.value;
47
+ j(e3, B.pageContext, B.configure, { formItemRef: K.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page }), ae.value && ((_a2 = Z.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
48
48
  });
49
49
  }), a(() => {
50
- M.$off(H.value + "-scanDone");
50
+ N.$off(U.value + "-scanDone");
51
51
  });
52
- const ce = t(false);
53
- function ve() {
54
- if (ne || ee) {
55
- const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
56
- ee && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
57
- } else if (A.value) if ("https:" === window.location.protocol) ce.value = true;
52
+ const ve = t(false);
53
+ function fe() {
54
+ if (oe || te) {
55
+ const e3 = { type: "scan", componentId: U.value, systemCode: B.pageContext.systemCode };
56
+ te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
57
+ } else if (E.value) if ("https:" === window.location.protocol) ve.value = true;
58
58
  else {
59
- const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
59
+ const e3 = { type: "scan", componentId: U.value, systemCode: B.pageContext.systemCode };
60
60
  window.parent.postMessage(JSON.stringify(e3), "*");
61
61
  }
62
- else ce.value = true;
62
+ else ve.value = true;
63
63
  }
64
- function fe(e3) {
65
- ce.value = false, pe(e3);
64
+ function ye(e3) {
65
+ ve.value = false, ce(e3);
66
66
  }
67
- return J2({ getValue: function() {
68
- return b(B, $);
69
- }, setValue: pe, scanClick: ve, addRequiredClass: function() {
70
- U.value = z();
67
+ return L2({ getValue: function() {
68
+ return _(F, A);
69
+ }, setValue: ce, scanClick: fe, addRequiredClass: function() {
70
+ W.value = J();
71
71
  } }), (e3, t2) => {
72
72
  const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
73
- return s(), r(o2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(ie) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ue)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(re), ...v(se) }) }, [Y.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(N)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: W.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => W.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (e4) => function(e5) {
74
- let t3 = b(B, $);
75
- null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
76
- }(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ve()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ce.value ? (s(), r(n2, { key: 0, onClose: fe })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
73
+ return s(), r(o2, { ref_key: "formItemRef", ref: K, required: !!Z.value.required, class: c(v(re) + (W.value ? " " + W.value : "")), "label-width": Z.value.labelWidth, style: p(v(ie)) }, f({ default: y(() => [g(l2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === Z.value.state, readonly: "readonly" === Z.value.state, size: Z.value.size, clearable: Z.value.clearable, placeholder: Z.value.placeholder, maxlength: Z.value.maxLength, "show-word-limit": Z.value.showInputNum, type: $.value, modelValue: G.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => G.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(S)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(S)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (e4) => function(e5) {
74
+ let t3 = _(F, A);
75
+ null != t3 && (t3 = t3.trim()), b(F, A, t3), S(e5, B.pageContext, B.configure, "blur");
76
+ }(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(S)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(S)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(S)(t3, e3.pageContext, e3.configure, "clear")) }, f({ _: 2 }, ["outer" != Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prefix", fn: y(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(R)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(Z.value.preText)), 1)]), key: "0" } : void 0, "outer" == Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prepend", fn: y(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(R)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(Z.value.preText)), 1)]), key: "1" } : void 0, "outer" != Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "suffix", fn: y(() => [Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(R)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(Z.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "append", fn: y(() => [ae.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => fe()) })) : m("", true), Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(R)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(Z.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(n2, { key: 0, onClose: ye })) : m("", true)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: y(() => [C("div", { ref_key: "titleRef", ref: X, style: p({ ...v(se), ...v(pe) }) }, [Z.value.prefixType ? (s(), r(D, { key: 0, pageContext: e3.pageContext, property: Z.value }, null, 8, ["pageContext", "property"])) : (s(), I(T, { key: 1 }, [d(x(v(z)(Z.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
77
77
  };
78
78
  } });
79
79
  export {
80
- J as default
80
+ L as default
81
81
  };
@@ -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-2ffad4a6"]]);
4
+ const t = r(e, [["__scopeId", "data-v-8357ca43"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,36 +1,36 @@
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, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
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 d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
- import { SuperIcon as k } from "agilebuilder-ui";
5
- import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
6
- import { $t as _ } from "../../../../utils/i18n-util.js";
7
- const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
8
- const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
- let P = x(R.pageContext, R.configure);
10
- const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
11
- const W = t(N.value.options ? N.value.options : []), B = N.value.formatType, G = l(() => {
12
- let e3 = d(S, P);
13
- if (B) if (N.value.hasOptions) {
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";
6
+ import { $t as I } from "../../../../utils/i18n-util.js";
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
+ const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
9
+ let q = x(S.pageContext, S.configure);
10
+ const O = S.configure.runtime ? S.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
11
+ const B = t(W.value.options ? W.value.options : []), G = W.value.formatType, H = l(() => {
12
+ let e3 = h(P, q);
13
+ if (G) if (W.value.hasOptions) {
14
14
  let t2 = null;
15
- W.value && (t2 = W.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
16
- } else if ("custom" === B) {
17
- const t2 = w(R.pageContext, N.value.formatFunc);
18
- t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
19
- } else e3 = h(e3, B, N.value);
15
+ B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
16
+ } else if ("custom" === G) {
17
+ const t2 = T(S.pageContext, W.value.formatFunc);
18
+ t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
19
+ } else e3 = k(e3, G, W.value);
20
20
  return e3 = null == e3 ? "" : e3, e3;
21
- }), H = t(null), J = t(null), K = t(null);
21
+ }), J = t(null), K = t(null), L = t(null);
22
22
  return n(() => {
23
23
  a(() => {
24
- const e3 = G.value;
25
- T(e3, R.pageContext, R.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
24
+ const e3 = H.value;
25
+ C(e3, S.pageContext, S.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
26
26
  });
27
- }), j2({ updateOptions: function(e3) {
28
- W.value = e3 || [];
27
+ }), R2({ updateOptions: function(e3) {
28
+ B.value = e3 || [];
29
29
  } }), (e3, t2) => {
30
30
  const l2 = u("el-form-item");
31
- return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
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)]));
32
32
  };
33
33
  } });
34
34
  export {
35
- j as default
35
+ R as default
36
36
  };
@@ -1,41 +1,41 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as f, createVNode as c, createCommentVNode as g, createTextVNode as d, toDisplayString as m, createElementBlock as v } from "vue";
2
- import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent as x, handleEvent as b } from "../../../../utils/events/event-util.js";
5
- import { $t as C } from "../../../../utils/i18n-util.js";
6
- import { SuperIcon as _ } from "agilebuilder-ui";
7
- import { analysisValue as h } from "agilebuilder-ui/src/utils/util";
8
- const R = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as p, unref as s, createSlots as f, withCtx as c, createVNode as d, createCommentVNode as g, createTextVNode as m, toDisplayString as v, createElementVNode as y } from "vue";
2
+ import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as x } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as b, handleEvent as C } from "../../../../utils/events/event-util.js";
5
+ import { $t as _ } from "../../../../utils/i18n-util.js";
6
+ import { SuperIcon as h } from "agilebuilder-ui";
7
+ import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
8
+ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
9
  var _a;
10
- const R2 = e2, T = y(R2.pageContext, R2.configure), j = R2.configure.runtime ? R2.configure.runtime : {}, w = j.style, V = j.class, I = j.headerStyle, P = t(j.props ? j.props : {}), S = t();
11
- ((_a = R2.configure.props) == null ? void 0 : _a.linkPage) && (S.value = R2.configure.props.linkPage);
12
- let $ = P.value.formatting;
13
- const q = R2.pageContext.entity ? R2.pageContext.entity : {}, D = l(() => {
10
+ const T2 = e2, j = k(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {}), $ = t();
11
+ ((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
12
+ let q = S.value.formatting;
13
+ const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
14
14
  var _a2;
15
- let e3 = k(q, T);
16
- if (e3 = null == e3 || null == e3 ? "" : e3, $) e3 = $.replace(/\${value}/g, e3);
17
- else if (S.value && S.value.displayTextJudge && ((_a2 = S.value.dynamicTags) == null ? void 0 : _a2.length) > 0) {
18
- const e4 = h(S.value.dynamicTags.join("-#-#"), q.data, q.request, q.context, R2.pageContext);
15
+ let e3 = x(D, j);
16
+ if (e3 = null == e3 || null == e3 ? "" : e3, q) e3 = q.replace(/\${value}/g, e3);
17
+ else if ($.value && $.value.displayTextJudge && ((_a2 = $.value.dynamicTags) == null ? void 0 : _a2.length) > 0) {
18
+ const e4 = R($.value.dynamicTags.join("-#-#"), D.data, D.request, D.context, T2.pageContext);
19
19
  if (e4) return e4;
20
20
  }
21
21
  return e3;
22
22
  });
23
- let J = P.value.tooltip, W = null;
24
- J && (W = l(() => {
25
- let e3 = k(q, T);
26
- return e3 = null == e3 || null == e3 ? "" : e3, J.replace(/\${value}/g, e3);
23
+ let W = S.value.tooltip, z = null;
24
+ W && (z = l(() => {
25
+ let e3 = x(D, j);
26
+ return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
27
27
  }));
28
- const z = t(null), A = t(null), B = t(null);
28
+ const A = t(null), B = t(null), E = t(null);
29
29
  return i(() => {
30
30
  n(() => {
31
- const e3 = D.value;
32
- x(e3, R2.pageContext, R2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: R2.pageContext.entity.data, pageData: R2.pageContext.entity.page });
31
+ const e3 = J.value;
32
+ b(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
33
33
  });
34
34
  }), (e3, t2) => {
35
35
  const l2 = a("el-link"), i2 = a("el-tooltip"), n2 = a("el-form-item");
36
- return o(), u(n2, { ref_key: "formItemRef", ref: z, class: p(s(V)), "label-width": P.value.labelWidth, style: r(s(w)) }, { label: f(() => [P.value.tittleShow ? (o(), v("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...s(I) }) }, m(s(C)(P.value.title)), 5)) : g("", true)]), default: f(() => [c(i2, { disabled: !s(W), content: s(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === P.value.state, type: P.value.type, underline: P.value.underline, onClick: t2[0] || (t2[0] = (t3) => s(b)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [S.value ? (o(), u(s(_), { key: 0, iconType: S.value.iconType, iconValue: S.value.icon }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + m(D.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
36
+ return o(), u(n2, { ref_key: "formItemRef", ref: A, class: p(s(I)), "label-width": S.value.labelWidth, style: r(s(V)) }, f({ default: c(() => [d(i2, { disabled: !s(z), content: s(z) }, { default: c(() => [d(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => s(C)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(s(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...s(P) }) }, v(s(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
37
37
  };
38
38
  } });
39
39
  export {
40
- R as default
40
+ T as default
41
41
  };