super-page-runtime 2.3.36 → 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 (77) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/events/event-util.js +114 -114
  3. package/dist/es/components/runtime/utils/events/print-label.js +33 -34
  4. package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
  5. package/dist/es/components/runtime/utils/events/validator-util.js +126 -88
  6. package/dist/es/components/runtime/utils/page-init-util.js +26 -28
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -98
  22. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  23. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  25. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  27. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  30. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +17 -12
  32. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  33. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  39. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +37 -37
  40. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +43 -43
  42. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +62 -62
  43. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +38 -38
  44. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -60
  46. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +21 -21
  47. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -53
  48. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  49. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +26 -28
  50. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -29
  51. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +50 -50
  52. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  53. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +106 -106
  54. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +89 -90
  56. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -4
  58. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  59. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  60. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +21 -21
  61. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +96 -94
  63. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
  66. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  68. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
  70. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  71. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  72. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  73. package/dist/es/components/runtime/views/super-page.vue2.js +27 -22
  74. package/dist/es/i18n/langs/cn.js +1 -1
  75. package/dist/es/i18n/langs/en.js +1 -1
  76. package/dist/es/style.css +166 -158
  77. package/package.json +2 -2
@@ -1,55 +1,55 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as n, watch as a, resolveComponent as i, createBlock as p, openBlock as u, normalizeStyle as r, normalizeClass as s, unref as d, withCtx as f, createVNode as m, createElementBlock as c, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
2
- import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
- import { handleAfterInitEvent as C, handleFormEvent as S } from "../../../../utils/events/event-util.js";
4
- import F from "../common/title-suffix-element.vue.js";
5
- import { $t as I } from "../../../../utils/i18n-util.js";
6
- import { setVariableValue as b, getVariableValue as k, getFormPropName as w, getValueFromVariable as z } from "../../../../utils/page-helper-util.js";
7
- import { addRequiredClassUtil as R } from "../../../../utils/common-util.js";
8
- const j = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
9
- const _ = e2, T = t(null), q = t([]), W = _.pageContext.entity ? _.pageContext.entity : {};
10
- W.data || (W.data = {});
11
- const M = W.data, O = W.page;
12
- let $ = h(_.pageContext, _.configure);
13
- const D = $.length > 0 ? $[$.length - 1] : _.configure.uuid, E = _.configure.runtime ? _.configure.runtime : {}, V = t(E.props ? E.props : {}), A = E.style, B = E.class, G = E.headerStyle, H = E.titleExceedStyle;
14
- E.props.deptScope && ("field" == E.props.deptScope && E.props.deptScopeField ? (Y(), function(e3, t2) {
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as n, watch as a, resolveComponent as i, createBlock as p, openBlock as u, normalizeStyle as r, normalizeClass as s, unref as d, createSlots as f, withCtx as m, createVNode as c, createElementVNode as g, createElementBlock as v, Fragment as y, createTextVNode as x, toDisplayString as h } from "vue";
2
+ import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
+ import { handleAfterInitEvent as S, handleFormEvent as F } from "../../../../utils/events/event-util.js";
4
+ import I from "../common/title-suffix-element.vue.js";
5
+ import { $t as b } from "../../../../utils/i18n-util.js";
6
+ import { setVariableValue as k, getVariableValue as w, getFormPropName as z, getValueFromVariable as R } from "../../../../utils/page-helper-util.js";
7
+ import { addRequiredClassUtil as j } from "../../../../utils/common-util.js";
8
+ const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
+ const T = e2, q = t(null), W = t([]), M = T.pageContext.entity ? T.pageContext.entity : {};
10
+ M.data || (M.data = {});
11
+ const O = M.data, $ = M.page;
12
+ let D = C(T.pageContext, T.configure);
13
+ const E = D.length > 0 ? D[D.length - 1] : T.configure.uuid, V = T.configure.runtime ? T.configure.runtime : {}, A = t(V.props ? V.props : {}), B = V.style, G = V.class, H = V.headerStyle, J = V.titleExceedStyle;
14
+ V.props.deptScope && ("field" == V.props.deptScope && V.props.deptScopeField ? (Z(), function(e3, t2) {
15
15
  if (0 === e3.indexOf("${fixed.")) return;
16
16
  const l2 = e3.match(/\${(.*?)}/);
17
17
  if (!l2) return;
18
18
  const o2 = l2 ? l2[1].split(".") : [];
19
- o2 && o2.length > 0 && a(() => o2.reduce((e4, t3) => e4[t3], _.pageContext.entity), (e4, l3) => {
19
+ o2 && o2.length > 0 && a(() => o2.reduce((e4, t3) => e4[t3], T.pageContext.entity), (e4, l3) => {
20
20
  t2(e4, l3);
21
21
  });
22
- }(E.props.deptScopeField, (e3, t2) => {
23
- Y();
24
- })) : "depts" == E.props.deptScope && E.props.deptScopeCodes && (q.value = E.props.deptScopeCodes.split(",")));
25
- const J = t(null), K = t(null), L = t(null);
22
+ }(V.props.deptScopeField, (e3, t2) => {
23
+ Z();
24
+ })) : "depts" == V.props.deptScope && V.props.deptScopeCodes && (W.value = V.props.deptScopeCodes.split(",")));
25
+ const K = t(null), L = t(null), N = t(null);
26
26
  l(() => {
27
27
  o(() => {
28
- const e3 = M ? M[D] : null;
29
- C(e3, _.pageContext, _.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
28
+ const e3 = O ? O[E] : null;
29
+ S(e3, T.pageContext, T.configure, { formItemRef: K.value, componentRef: L.value, titleRef: N.value, value: e3, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
30
30
  });
31
31
  });
32
- const N = n({ get: () => k(W, $), set(e3) {
33
- b(W, $, e3), null != e3 && (T.value = "");
34
- } }), P = V.value.autoSetFields ? V.value.autoSetFields : [];
35
- let Q = null;
36
- function U(e3, t2) {
37
- Q ? Q === e3 && ($.length > 0 ? S(k(W, $), _.pageContext, _.configure, "change") : S(t2, _.pageContext, _.configure, "change")) : e3 === D && S(t2, _.pageContext, _.configure, "change");
38
- }
39
- function X() {
40
- S(null, _.pageContext, _.configure, "click");
32
+ const P = n({ get: () => w(M, D), set(e3) {
33
+ k(M, D, e3), null != e3 && (q.value = "");
34
+ } }), Q = A.value.autoSetFields ? A.value.autoSetFields : [];
35
+ let U = null;
36
+ function X(e3, t2) {
37
+ U ? U === e3 && (D.length > 0 ? F(w(M, D), T.pageContext, T.configure, "change") : F(t2, T.pageContext, T.configure, "change")) : e3 === E && F(t2, T.pageContext, T.configure, "change");
41
38
  }
42
39
  function Y() {
43
- const e3 = z(_.pageContext.entity, E.props.deptScopeField);
44
- q.value = e3 ? e3.split(",") : [];
40
+ F(null, T.pageContext, T.configure, "click");
41
+ }
42
+ function Z() {
43
+ const e3 = R(T.pageContext.entity, V.props.deptScopeField);
44
+ W.value = e3 ? e3.split(",") : [];
45
45
  }
46
- return P.length - 1 > 0 && P[P.length - 1] && P[P.length - 1].model && (Q = w(P[P.length - 1].model)), j2({ addRequiredClass: function() {
47
- T.value = R();
48
- } }), (t2, l2) => {
49
- const o2 = i("OrganizationInput"), n2 = i("el-form-item");
50
- return u(), p(n2, { ref_key: "formItemRef", ref: J, required: V.value.required, class: s(d(B) + (T.value ? " " + T.value : "")), "label-width": V.value.labelWidth, style: r(d(A)) }, { label: f(() => [V.value.tittleShow ? (u(), c("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...d(G), ...d(H) }) }, [V.value.prefixType ? (u(), p(F, { key: 0, pageContext: e2.pageContext, property: V.value }, null, 8, ["pageContext", "property"])) : (u(), c(v, { key: 1 }, [y(x(d(I)(V.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [m(o2, { ref_key: "componentRef", ref: K, disabled: "disabled" == V.value.state, multiple: V.value.multiple, treeType: V.value.treeType, value: N.value, models: d(M), departmentInfo: q.value, limitFilterColumn: V.value.limitFilterColumn, pageModels: d(O), fields: d(P), inputShowWay: V.value.inputShowWay, autosize: V.value.autosize, size: V.value.size, displayItem: V.value.displayItem, separator: V.value.separator, onSetValue: U, onShowTree: X }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "displayItem", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
46
+ return Q.length - 1 > 0 && Q[Q.length - 1] && Q[Q.length - 1].model && (U = z(Q[Q.length - 1].model)), _2({ addRequiredClass: function() {
47
+ q.value = j();
48
+ } }), (e3, t2) => {
49
+ const l2 = i("OrganizationInput"), o2 = i("el-form-item");
50
+ return u(), p(o2, { ref_key: "formItemRef", ref: K, required: A.value.required, class: s(d(G) + (q.value ? " " + q.value : "")), "label-width": A.value.labelWidth, style: r(d(B)) }, f({ default: m(() => [c(l2, { ref_key: "componentRef", ref: L, disabled: "disabled" == A.value.state, multiple: A.value.multiple, treeType: A.value.treeType, value: P.value, models: d(O), departmentInfo: W.value, limitFilterColumn: A.value.limitFilterColumn, pageModels: d($), fields: d(Q), inputShowWay: A.value.inputShowWay, autosize: A.value.autosize, size: A.value.size, displayItem: A.value.displayItem, separator: A.value.separator, onSetValue: X, onShowTree: Y }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "displayItem", "separator"])]), _: 2 }, [A.value.tittleShow ? { name: "label", fn: m(() => [g("div", { ref_key: "titleRef", ref: N, style: r({ ...d(H), ...d(J) }) }, [A.value.prefixType ? (u(), p(I, { key: 0, pageContext: e3.pageContext, property: A.value }, null, 8, ["pageContext", "property"])) : (u(), v(y, { key: 1 }, [x(h(d(b)(A.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
51
51
  };
52
52
  } });
53
53
  export {
54
- j as default
54
+ _ as default
55
55
  };
@@ -14,9 +14,9 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
14
14
  const e3 = b.value;
15
15
  v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
16
16
  });
17
- }), (t2, n2) => {
18
- const o2 = i("el-divider");
19
- return l(), u(o2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: n2[0] || (n2[0] = (t3) => a(g)(t3, e2.pageContext, e2.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
17
+ }), (e3, t2) => {
18
+ const n2 = i("el-divider");
19
+ return l(), u(n2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: t2[0] || (t2[0] = (t3) => a(g)(t3, e3.pageContext, e3.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
20
20
  };
21
21
  } });
22
22
  export {
@@ -1,94 +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 p, normalizeStyle as s, normalizeClass as d, unref as f, withCtx as v, createElementBlock as m, 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 x, fileUploadDeleted as b } 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) }), j.pageContext.fileuploadInfo, 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, 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
- j.pageContext.fileuploadInfo;
53
52
  }
54
- function ee(e3) {
55
- Z();
53
+ function le(e3) {
54
+ ee();
56
55
  }
57
- V(J);
58
- const le = (e3, l2, t2) => {
56
+ X(K);
57
+ const te = (e3, l2, t2) => {
59
58
  var o2;
60
- Z(), oe(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, w(j.pageContext, j.configure, o2);
61
- }, te = (e3) => {
62
- const l2 = (t2 = { file: e3 }, x(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));
63
62
  var t2;
64
- (l2 || void 0 === l2) && (oe(), function(e4) {
65
- b(j.pageContext, j.configure, e4);
63
+ (l2 || void 0 === l2) && (ie(), function(e4) {
64
+ k(z.pageContext, z.configure, e4);
66
65
  }({ file: e3 }));
67
- }, oe = () => {
66
+ }, ie = () => {
68
67
  const e3 = [], l2 = [];
69
- if (F.value.limit && M.value.length > F.value.limit) {
70
- const e4 = M.value.length - F.value.limit;
71
- 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();
72
71
  }
73
- for (let t2 = 0; t2 < M.value.length; t2++) e3.push(M.value[t2].showName), l2.push(M.value[t2].serverPath);
74
- h(j.pageContext.entity, E, l2.join(",")), h(j.pageContext.entity, U, e3.join(",")), l2.length > 0 && (z.value = "");
75
- }, 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);
76
75
  return o(() => {
77
- P.$on(H.value + "-pickFileDone", (e3) => {
78
- H.value, K.value.pickFileDone(e3);
76
+ S.$on(J.value + "-pickFileDone", (e3) => {
77
+ L.value.pickFileDone(e3);
79
78
  }), i(() => {
80
- const e3 = g($, E), l2 = { showName: g($, U), serverPath: e3 };
81
- 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 });
82
81
  });
83
82
  }), a(() => {
84
- P.$off(H.value + "-pickFileDone");
85
- }), _2({ addRequiredClass: function() {
86
- z.value = N();
87
- } }), (l2, t2) => {
88
- const o2 = n("el-form-item");
89
- return F.value.tittleShow ? (p(), u(o2, { 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: s(f(D)) }, { label: v(() => [F.value.tittleShow ? (p(), m("div", { key: 0, ref_key: "titleRef", ref: ae, style: s({ ...f(q), ...f(W) }) }, c(f(S)(F.value.title)), 5)) : r("", true)]), default: v(() => [L.value ? (p(), 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": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e2.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 ? (p(), 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": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e2.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);
83
+ S.$off(J.value + "-pickFileDone");
84
+ }), j2({ addRequiredClass: function() {
85
+ R.value = T();
86
+ } }), (e3, l2) => {
87
+ const t2 = n("el-form-item");
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);
90
89
  };
91
90
  } });
92
91
  export {
93
- _ as default
92
+ j as default
94
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 = _();
21
- } }), (t2, l2) => {
22
- const o2 = n("el-input-number"), a2 = n("el-form-item");
23
- return i(), u(a2, { 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: e2.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(o2, { 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": l2[0] || (l2[0] = (e3) => B.value = e3), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: l2[1] || (l2[1] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
19
+ }), w2({ addRequiredClass: function() {
20
+ S.value = q();
21
+ } }), (e3, t2) => {
22
+ const l2 = n("el-input-number"), o2 = n("el-form-item");
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,63 +1,62 @@
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 N } from "../../../../utils/form/scan-util.js";
7
- import P from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
- import D from "../../../../utils/eventBus.js";
10
- import { $t as J } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
12
- const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
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(q()), 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
- const ne = navigator.userAgent;
28
- le = ne.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
- const oe = !(!A.value || !le || "app" !== le), ae = t(!!((oe || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
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));
30
29
  let ue = {};
31
- ((_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) => {
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) => {
32
31
  ue = e3;
33
- }), u(() => W.value, (e3) => {
32
+ }), u(() => G.value, (e3) => {
34
33
  e3 = e3.trim();
35
- const t2 = O(e3, ue);
36
- t2 && N(L.pageContext, t2.scanSet, t2.params);
34
+ const t2 = P(e3, ue);
35
+ t2 && q(B.pageContext, t2.scanSet, t2.params);
37
36
  }));
38
- const ie = X.style, re = X.class, se = X.headerStyle, pe = X.titleExceedStyle;
37
+ const ie = Y.style, re = Y.class, se = Y.headerStyle, pe = Y.titleExceedStyle;
39
38
  function ce(e3) {
40
- return h(B, $, e3);
39
+ return b(F, A, e3);
41
40
  }
42
41
  n(() => {
43
- D.$on(H.value + "-scanDone", (e3) => {
44
- H.value, JSON.stringify(e3), ce(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");
45
44
  }), o(() => {
46
45
  var _a2;
47
- const e3 = W.value;
48
- 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 }), ae.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
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();
49
48
  });
50
49
  }), a(() => {
51
- D.$off(H.value + "-scanDone");
50
+ N.$off(U.value + "-scanDone");
52
51
  });
53
52
  const ve = t(false);
54
53
  function fe() {
55
- if (oe || ee) {
56
- const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
57
- ee && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
58
- } else if (A.value) if ("https:" === window.location.protocol) ve.value = true;
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;
59
58
  else {
60
- const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
59
+ const e3 = { type: "scan", componentId: U.value, systemCode: B.pageContext.systemCode };
61
60
  window.parent.postMessage(JSON.stringify(e3), "*");
62
61
  }
63
62
  else ve.value = true;
@@ -65,18 +64,18 @@ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
65
64
  function ye(e3) {
66
65
  ve.value = false, ce(e3);
67
66
  }
68
- return z2({ getValue: function() {
69
- return b(B, $);
67
+ return L2({ getValue: function() {
68
+ return _(F, A);
70
69
  }, setValue: ce, scanClick: fe, addRequiredClass: function() {
71
- U.value = M();
72
- } }), (t2, l2) => {
73
- const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
74
- return s(), r(a2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(re) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(se), ...v(pe) }) }, [Y.value.prefixType ? (s(), r(P, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(J)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { 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": l2[5] || (l2[5] = (e3) => W.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
75
- let t3 = b(B, $);
76
- null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e4, L.pageContext, L.configure, "blur");
77
- }(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(_)(t3, e2.pageContext, e2.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: l2[0] || (l2[0] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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: l2[1] || (l2[1] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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: l2[2] || (l2[2] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [ae.value ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => fe()) })) : 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: l2[4] || (l2[4] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
70
+ W.value = J();
71
+ } }), (e3, t2) => {
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: 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"]);
78
77
  };
79
78
  } });
80
79
  export {
81
- z as default
80
+ L as default
82
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
  };