super-page-runtime 2.2.3 → 2.2.9

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 (110) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.js +276 -326
  17. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  18. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  19. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  20. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  21. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  22. package/dist/es/components/runtime/utils/page-helper-util.js +58 -104
  23. package/dist/es/components/runtime/utils/page-init-util.js +30 -37
  24. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  25. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  26. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  27. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  28. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  29. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  31. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  34. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  40. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  41. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  42. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  43. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +33 -1
  44. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
  45. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  46. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +123 -116
  50. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  51. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  53. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  54. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  55. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  65. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +46 -57
  66. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
  67. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  68. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  69. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  70. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  72. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  73. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  74. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  75. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +5 -5
  76. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  77. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  78. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  79. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  80. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  81. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  85. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  86. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  87. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  90. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  91. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  92. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  93. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  94. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  95. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -25
  96. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  97. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  98. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  99. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  100. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  101. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  102. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  103. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  104. package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
  105. package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
  106. package/dist/es/components/runtime/views/super-page.vue.js +25 -38
  107. package/dist/es/index.d.ts +2 -2
  108. package/dist/es/index.js +6 -4
  109. package/package.json +74 -74
  110. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o, openBlock as r, createElementBlock as u, createVNode as s, unref as n, normalizeStyle as a, normalizeClass as p, withCtx as c, toDisplayString as m, createCommentVNode as f, Fragment as g, renderList as d, createBlock as y } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o, createElementBlock as r, openBlock as u, createVNode as s, normalizeClass as n, normalizeStyle as a, unref as p, withCtx as c, createCommentVNode as m, toDisplayString as f, Fragment as g, renderList as d, createBlock as y } from "vue";
2
2
  import b from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
4
  import "agilebuilder-ui/src/utils/common-util";
@@ -17,7 +17,7 @@ const x = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
17
17
  });
18
18
  }), (e3, t2) => {
19
19
  const i2 = o("el-form");
20
- return r(), u("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": n(j).labelWidth, "label-position": n(j).labelPosition, size: n(j).componentSize, style: a(h.value), class: p(n(_)) }, { default: c(() => [n(j).formTitle ? (r(), u("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, m(n(j).formTitle), 5)) : f("", true), (r(true), u(g, null, d(e3.configure.items, (t3, i3) => (r(), y(b, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
20
+ return u(), r("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": p(j).labelWidth, "label-position": p(j).labelPosition, size: p(j).componentSize, style: a(h.value), class: n(p(_)) }, { default: c(() => [p(j).formTitle ? (u(), r("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, f(p(j).formTitle), 5)) : m("", true), (u(true), r(g, null, d(e3.configure.items, (t3, i3) => (u(), y(b, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as r, openBlock as i, createElementBlock as o, normalizeClass as s, unref as a, normalizeStyle as u } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as r, createElementBlock as i, openBlock as o, normalizeStyle as s, normalizeClass as a, unref as u } from "vue";
2
2
  import "../../../../utils/global-refs.js";
3
3
  import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
4
4
  const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2) {
@@ -7,7 +7,7 @@ const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, c
7
7
  r(() => {
8
8
  l(null, p2.pageContext, p2.configure, { componentRef: c.value, entity: p2.pageContext.entity.data, pageData: p2.pageContext.entity.page });
9
9
  });
10
- }), (e3, t2) => (i(), o("iframe", { ref_key: "thisRef", ref: c, src: e3.configure.props.src, class: s(["amb-widget-container-iframe", a(x)]), style: u(a(m)) }, null, 14, f));
10
+ }), (e3, t2) => (o(), i("iframe", { ref_key: "thisRef", ref: c, src: e3.configure.props.src, class: a(["amb-widget-container-iframe", u(x)]), style: s(u(m)) }, null, 14, f));
11
11
  } });
12
12
  export {
13
13
  p as default
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, openBlock as a, createBlock as i, unref as l, normalizeStyle as u, normalizeClass as r, withCtx as c, createElementBlock as p, Fragment as s, renderList as g, createElementVNode as f, createCommentVNode as m, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createBlock as a, openBlock as i, unref as l, normalizeClass as u, normalizeStyle as r, withCtx as c, createElementBlock as p, Fragment as s, renderList as g, createElementVNode as f, createCommentVNode as m, toDisplayString as d } from "vue";
2
2
  import { ElTabs as b, ElTabPane as y } from "element-plus";
3
3
  import x from "../../object-render.vue.js";
4
4
  import { SuperIcon as C } from "agilebuilder-ui";
@@ -34,7 +34,7 @@ const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
34
34
  t2.code && e3.push(document.querySelector("." + t2.code));
35
35
  }), v(null, V2.pageContext, V2.configure, { componentRef: _.value, tabsDom: e3, entity: V2.pageContext.entity.data, pageData: V2.pageContext.entity.page });
36
36
  });
37
- }), (e3, t2) => (a(), i(l(b), { ref_key: "thisRef", ref: _, modelValue: k.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => k.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: u(l(N)), class: r(l(R)), onTabClick: E, onTabChange: O, onTabRemove: S, onTabAdd: q, onEdit: A }, { default: c(() => [(a(true), p(s, null, g(e3.configure.items, (t3, n2) => (a(), i(l(y), { label: t3.label, name: t3.index }, { label: c(() => [f("span", { class: r(t3.code) }, [t3.iconType && t3.iconValue ? (a(), i(l(C), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : m("", true), f("span", { style: u(l(D)) }, d(l(h)(t3.label)), 5)], 2)]), default: c(() => [f("div", null, [(a(true), p(s, null, g(t3.items, (t4, n3) => (a(), i(x, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128))])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
37
+ }), (e3, t2) => (i(), a(l(b), { ref_key: "thisRef", ref: _, modelValue: k.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => k.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: r(l(N)), class: u(l(R)), onTabClick: E, onTabChange: O, onTabRemove: S, onTabAdd: q, onEdit: A }, { default: c(() => [(i(true), p(s, null, g(e3.configure.items, (t3, n2) => (i(), a(l(y), { label: t3.label, name: t3.index }, { label: c(() => [f("span", { class: u(t3.code) }, [t3.iconType && t3.iconValue ? (i(), a(l(C), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : m("", true), f("span", { style: r(l(D)) }, d(l(h)(t3.label)), 5)], 2)]), default: c(() => [f("div", null, [(i(true), p(s, null, g(t3.items, (t4, n3) => (i(), a(x, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128))])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
38
38
  } });
39
39
  export {
40
40
  V as default
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, openBlock as a, createElementBlock as r, createElementVNode as s, normalizeClass as u, unref as l, normalizeStyle as p, Fragment as g, renderList as c, createBlock as f } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, createElementBlock as a, openBlock as r, createElementVNode as s, normalizeStyle as u, normalizeClass as l, unref as p, Fragment as g, renderList as c, createBlock as f } from "vue";
2
2
  import d from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
4
  import { handleAfterInitEvent as m } from "../../../../utils/events/event-util.js";
@@ -27,7 +27,7 @@ const v = { class: "amb-widget-tools-parent" }, x = e({ __name: "tools-runtime",
27
27
  m(null, x2.pageContext, x2.configure, { componentRef: b.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
28
28
  });
29
29
  }), i(() => {
30
- }), (e3, t2) => (a(), r("div", v, [s("div", { class: u(["amb-widget-container-tool amb-widget-tools", l(w)]), style: p(y.value), ref_key: "thisRef", ref: b }, [(a(true), r(g, null, c(e3.configure.items, (t3, o2) => (a(), f(d, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
30
+ }), (e3, t2) => (r(), a("div", v, [s("div", { class: l(["amb-widget-container-tool amb-widget-tools", p(w)]), style: u(y.value), ref_key: "thisRef", ref: b }, [(r(true), a(g, null, c(e3.configure.items, (t3, o2) => (r(), f(d, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
31
31
  } });
32
32
  export {
33
33
  x as default
@@ -1,20 +1,20 @@
1
- import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, openBlock as u, createBlock as n, normalizeClass as i, unref as s, normalizeStyle as p, withCtx as c, createElementBlock as m, toDisplayString as f, createCommentVNode as g } from "vue";
1
+ import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
2
2
  import d from "qrcode";
3
3
  import v from "jsbarcode";
4
4
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
5
5
  import { generateCodeByRule as b } from "../../../../utils/barcode-util.js";
6
- import { getVariableValue as h, setVariableValue as x } from "../../../../utils/page-helper-util.js";
6
+ import { setVariableValue as h, getVariableValue as x } from "../../../../utils/page-helper-util.js";
7
7
  import { handleEvent as C } from "../../../../utils/events/event-util.js";
8
8
  import w from "agilebuilder-ui/src/utils/request";
9
9
  import { $t as R } from "../../../../utils/i18n-util.js";
10
10
  const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
11
11
  const q = e2, N = q.pageContext.entity ? q.pageContext.entity : {};
12
12
  let k = y(q.pageContext, q.configure);
13
- const A = t({ get: () => h(N, k), set(e3) {
14
- x(N, k, e3);
13
+ const A = t({ get: () => x(N, k), set(e3) {
14
+ h(N, k, e3);
15
15
  } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
16
16
  function F(e3) {
17
- return x(N, k, e3);
17
+ return h(N, k, e3);
18
18
  }
19
19
  function J(e3) {
20
20
  L(e3), F(e3), C(e3, q.pageContext, q.configure, "change", { entity: N });
@@ -56,10 +56,10 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
56
56
  }).catch((e3) => {
57
57
  })), A.value && L(A.value);
58
58
  }), D2({ getValue: function() {
59
- return h(N, k);
59
+ return x(N, k);
60
60
  }, setValue: F }), (e3, t2) => {
61
61
  const a2 = o("el-form-item");
62
- return u(), n(a2, { required: !!_.value.required, class: i(s(P)), "label-width": _.value.labelWidth, style: p(s(O)) }, { label: c(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: p({ ...s(S) }) }, f(s(R)(_.value.title)), 5)) : g("", true)]), default: c(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
62
+ return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
63
63
  };
64
64
  } });
65
65
  export {
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, openBlock as l, createElementBlock as r, createVNode as u, unref as s } from "vue";
2
- import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as f, doBeforeClickEvent as d, getEventNameByType as g, getEventFuncByType as m, getHandleEvent as v, gridSelectRecord as h, gridSelectAllRecords as b, gridSelectionChange as w, cellClick as S, cellDblClick as C, rowClick as y, rowDblClick as x, headerClick as E } from "../../../../utils/events/event-util.js";
1
+ import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, createVNode as u, unref as s } from "vue";
2
+ import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as f, doBeforeClickEvent as d, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
3
3
  import { getBaseUrl as D, getListCode as O, getRealRestApiPath as k, isWorkflowPage as I, isVariableInvalidValue as T } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as R, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
@@ -42,8 +42,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
42
42
  n3 && n3.length > 1 && e4.push(n3[1]);
43
43
  }
44
44
  });
45
- if (0 === e4.length)
46
- We();
45
+ if (0 === e4.length) We();
47
46
  else {
48
47
  const t3 = ze();
49
48
  e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (Oe(t3), We()) : ne.forEach((t4) => {
@@ -92,16 +91,14 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
92
91
  });
93
92
  }
94
93
  function he(e3) {
95
- if (!e3)
96
- return;
94
+ if (!e3) return;
97
95
  let t2;
98
- const n2 = g(e3.events, "click");
96
+ const n2 = y(e3.events, "click");
99
97
  if (n2) {
100
98
  if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = Ce : "lineEditUpdate" === n2 ? t2 = ye : "lineEditDelete" === n2 && (t2 = Ee), !t2) {
101
- t2 = m(q, e3.events, "click");
99
+ t2 = x(q, e3.events, "click");
102
100
  }
103
- } else
104
- te.value[e3.uuid] = e3, t2 = Te;
101
+ } else te.value[e3.uuid] = e3, t2 = Te;
105
102
  return t2;
106
103
  }
107
104
  function be({ row: e3, columns: t2, additionalParamMap: n2 }) {
@@ -127,8 +124,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
127
124
  const a2 = te.value.restoreEdit, l2 = G;
128
125
  a2.props.base.tableUuid = l2.uuid;
129
126
  const r2 = d(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
130
- if (!r2)
131
- return;
127
+ if (!r2) return;
132
128
  N(r2) ? r2.then((e4) => {
133
129
  e4 && ie.value.restoreRow(i2, le);
134
130
  }) : ie.value.restoreRow(i2, le);
@@ -161,43 +157,39 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
161
157
  }) : De(e3, t2, n2, o2, i2, a2));
162
158
  }
163
159
  function De(e3, t2, n2, o2, i2, a2) {
164
- if (n2.id || n2.ID)
165
- q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
166
- if (true === e4.canExecute) {
167
- const e5 = [];
168
- n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: q, configureObj: a2, ids: e5 });
169
- }
170
- }).finally(() => {
171
- q.editData = null;
172
- });
160
+ if (n2.id || n2.ID) q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
161
+ if (true === e4.canExecute) {
162
+ const e5 = [];
163
+ n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: q, configureObj: a2, ids: e5 });
164
+ }
165
+ }).finally(() => {
166
+ q.editData = null;
167
+ });
173
168
  else {
174
169
  Ce(e3, t2, n2, o2, i2);
175
170
  f(q, G, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
176
171
  }
177
172
  }
178
173
  function Oe(e3) {
179
- if (!q.dataTypeMaps)
180
- return;
174
+ if (!q.dataTypeMaps) return;
181
175
  const t2 = q.dataTypeMaps;
182
176
  let n2 = [];
183
- if (e3)
184
- for (var o2 in e3) {
185
- const a2 = e3[o2];
186
- if (null != a2 && "" !== a2)
187
- if (a2 instanceof Array) {
188
- if (a2.length > 0) {
189
- const e4 = [];
190
- for (var i2 = 0; i2 < a2.length; i2++) {
191
- const n3 = {};
192
- n3.leftBracket = 0 === i2 ? "((" : "(", n3.propName = o2, n3.propDbName = o2, n3.dataType = t2[o2] ? t2[o2] : "TEXT", n3.operator = "EQ", n3.propValue = a2[i2], i2 === a2.length - 1 ? (n3.rightBracket = "))", n3.joinSign = "and") : (n3.rightBracket = ")", n3.joinSign = "or"), e4.push(n3);
193
- }
194
- n2 = n2.concat(e4);
195
- }
196
- } else {
197
- const e4 = { leftBracket: "(" };
198
- e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
177
+ if (e3) for (var o2 in e3) {
178
+ const a2 = e3[o2];
179
+ if (null != a2 && "" !== a2) if (a2 instanceof Array) {
180
+ if (a2.length > 0) {
181
+ const e4 = [];
182
+ for (var i2 = 0; i2 < a2.length; i2++) {
183
+ const n3 = {};
184
+ n3.leftBracket = 0 === i2 ? "((" : "(", n3.propName = o2, n3.propDbName = o2, n3.dataType = t2[o2] ? t2[o2] : "TEXT", n3.operator = "EQ", n3.propValue = a2[i2], i2 === a2.length - 1 ? (n3.rightBracket = "))", n3.joinSign = "and") : (n3.rightBracket = ")", n3.joinSign = "or"), e4.push(n3);
199
185
  }
186
+ n2 = n2.concat(e4);
187
+ }
188
+ } else {
189
+ const e4 = { leftBracket: "(" };
190
+ e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
200
191
  }
192
+ }
201
193
  ie.value.toolbarRefresh(null, null, n2);
202
194
  }
203
195
  function ke(e3) {
@@ -208,49 +200,47 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
208
200
  }
209
201
  }
210
202
  function Ie() {
211
- if (!ie.value)
212
- return;
203
+ if (!ie.value) return;
213
204
  const e3 = F(W.pageContext, W.configure);
214
205
  if (e3 && e3.isCalcHeight) {
215
206
  let e4 = ie.value.$el;
216
- if (e4 || (e4 = ie.value), !e4)
217
- return;
207
+ if (e4 || (e4 = ie.value), !e4) return;
218
208
  const t2 = e4.getBoundingClientRect();
219
209
  return window.innerHeight - t2.y - 90;
220
210
  }
221
211
  }
222
212
  function Te(e3, t2, n2, o2, i2, a2) {
223
213
  const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2 }, r2 = te.value[a2.sourceButton.uuid], u2 = G;
224
- r2.props.base.tableUuid = u2.uuid, v(null, q, r2, "click", l2);
214
+ r2.props.base.tableUuid = u2.uuid, E(null, q, r2, "click", l2);
225
215
  }
226
216
  function Re(e3) {
227
217
  "close_open_win" === e3.data && ie.value && ie.value.refresh();
228
218
  }
229
219
  function Ve(e3, t2) {
230
220
  ue.value = e3;
231
- h(q, G, { selection: e3, row: t2 });
221
+ g(q, G, { selection: e3, row: t2 });
232
222
  }
233
223
  function je(e3) {
234
224
  ue.value = e3;
235
- b(q, G, { selection: e3 });
225
+ m(q, G, { selection: e3 });
236
226
  }
237
227
  function Ne(e3) {
238
- w(q, G, { newSelection: e3 });
228
+ v(q, G, { newSelection: e3 });
239
229
  }
240
230
  function Pe(e3, t2, n2, o2) {
241
- S(q, G, { row: e3, column: t2, cell: n2, event: o2 });
231
+ h(q, G, { row: e3, column: t2, cell: n2, event: o2 });
242
232
  }
243
233
  function Ue(e3, t2, n2, o2) {
244
- C(q, G, { row: e3, column: t2, cell: n2, event: o2 });
234
+ b(q, G, { row: e3, column: t2, cell: n2, event: o2 });
245
235
  }
246
236
  function Be(e3, t2, n2) {
247
- y(q, G, { row: e3, column: t2, event: n2 });
237
+ w(q, G, { row: e3, column: t2, event: n2 });
248
238
  }
249
239
  function Me(e3, t2, n2) {
250
- x(q, G, { row: e3, column: t2, event: n2 });
240
+ S(q, G, { row: e3, column: t2, event: n2 });
251
241
  }
252
242
  function $e(e3, t2) {
253
- E(q, G, { column: e3, event: t2 });
243
+ C(q, G, { column: e3, event: t2 });
254
244
  }
255
245
  function Fe() {
256
246
  ue.value = [];
@@ -297,8 +287,8 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
297
287
  Oe(W.pageContext.entity.data);
298
288
  }), i(() => {
299
289
  B.$off(re + "-close-component-page-dialog"), B.$off(re + "_close-dialog-get-entity"), B.$off(le + "-pickFileDone"), B.$off(le + "-scanDone");
300
- }), H2({ refresh: function() {
301
- return ie.value.refresh();
290
+ }), H2({ refresh: function(e3, t2, n2, o2) {
291
+ return ie.value.refresh(e3, t2, n2, o2);
302
292
  }, createRow: function() {
303
293
  return ie.value.createRow(le, {}, { getDefaultValueFunc: M });
304
294
  }, clearSelections: Fe, getSelections: function() {
@@ -317,15 +307,14 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
317
307
  }, showMobileSearch: function() {
318
308
  de.value && ie.value.showMobileSearch();
319
309
  }, getTableSelectOptions: function() {
320
- if (ie.value)
321
- return ie.value.getTableSelectOptions(le);
310
+ if (ie.value) return ie.value.getTableSelectOptions(le);
322
311
  }, dynamicControlTableEdit: function(e3, t2, n2) {
323
312
  ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
324
313
  }, doLayout: function(e3) {
325
314
  ie.value && ie.value.doLayout(e3);
326
315
  } }), (e3, t2) => {
327
316
  const n2 = a("super-grid");
328
- return l(), r("div", null, [u(n2, { ref_key: "gridRef", ref: ie, url: s(ae), options: oe.value, code: s(le), settings: s(fe), "search-form-info": ce.value, "list-toolbar-form-data": s(se), onSelect: Ve, onSelectAll: je, onSelectionChange: Ne, onCellClick: Pe, onCellDblclick: Ue, onRowClick: Be, onRowDblclick: Me, onHeaderClick: $e, onRefresh: Fe, onNewOpenGridDialog: s(U), onCanShowMobileSearch: _e }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])]);
317
+ return r(), l("div", null, [u(n2, { ref_key: "gridRef", ref: ie, url: s(ae), options: oe.value, code: s(le), settings: s(fe), "search-form-info": ce.value, "list-toolbar-form-data": s(se), onSelect: Ve, onSelectAll: je, onSelectionChange: Ne, onCellClick: Pe, onCellDblclick: Ue, onRowClick: Be, onRowDblclick: Me, onHeaderClick: $e, onRefresh: Fe, onNewOpenGridDialog: s(U), onCanShowMobileSearch: _e }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])]);
329
318
  };
330
319
  } });
331
320
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, openBlock as i, createElementBlock as l, createBlock as u, unref as s, createCommentVNode as r } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as i, openBlock as l, createBlock as u, createCommentVNode as s, unref as r } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h } from "../../../../utils/events/event-util.js";
3
3
  import { caculateShowCondition as S, setVariableValue as w, getVariableValue as x, getSizeConfig as T } from "../../../../utils/page-helper-util.js";
4
4
  import { getModelFields as D, getDefaultValue as C } from "../../../../utils/page-init-util.js";
@@ -100,8 +100,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
100
100
  A.tableUuids || (A.tableUuids = []), A.tableUuids.indexOf(H.uuid) < 0 && A.tableUuids.push(H.uuid);
101
101
  }
102
102
  function fe(e3, t2, n2, o2, a2, i2) {
103
- if (!S(N.pageContext, H.props.base.showOperationCondition))
104
- return false;
103
+ if (!S(N.pageContext, H.props.base.showOperationCondition)) return false;
105
104
  const l2 = A.fieldPermissionMap, u2 = A.actionPermissionMap;
106
105
  let s2 = true;
107
106
  if (l2 && null !== l2) {
@@ -127,18 +126,14 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
127
126
  }
128
127
  if (true === s2 && B && u2 && null !== u2) {
129
128
  let e4 = u2.get(B);
130
- if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (s2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes)
131
- if (e4.deleteRowIndexes.length > 0)
132
- if (i2)
133
- s2 = true;
134
- else {
135
- const t3 = function(e5) {
136
- return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
137
- }(n2);
138
- s2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
139
- }
140
- else
141
- s2 = false;
129
+ if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (s2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) s2 = true;
130
+ else {
131
+ const t3 = function(e5) {
132
+ return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
133
+ }(n2);
134
+ s2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
135
+ }
136
+ else s2 = false;
142
137
  }
143
138
  return s2;
144
139
  }
@@ -168,9 +163,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
168
163
  }
169
164
  function Te(e3) {
170
165
  const t2 = A.entity.data;
171
- if (e3)
172
- for (const n2 in e3)
173
- t2[n2] = e3[n2];
166
+ if (e3) for (const n2 in e3) t2[n2] = e3[n2];
174
167
  }
175
168
  function De(e3, t2) {
176
169
  if (void 0 !== t2) {
@@ -251,15 +244,14 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
251
244
  }, validatorSunTableListData: function() {
252
245
  return oe.value.validatorSunTableListData();
253
246
  }, getValue: Me, setValue: Fe, getTableSelectOptions: function() {
254
- if (oe.value)
255
- return oe.value.getTableSelectOptions(L);
247
+ if (oe.value) return oe.value.getTableSelectOptions(L);
256
248
  }, dynamicControlTableEdit: function(e3, t2, n2) {
257
249
  oe.value && oe.value.dynamicControlTableEdit(e3, t2, n2);
258
250
  }, doLayout: function(e3) {
259
251
  oe.value && oe.value.doLayout(e3);
260
252
  } }), (e3, t2) => {
261
253
  const n2 = a("super-grid");
262
- return i(), l("div", null, [Z.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: oe, url: s(Y) + "/dsc/commons/sub-table", options: te.value, code: s(L), settings: s(q), onSelect: De, onSelectAll: Ce, onSelectionChange: ye, onCellClick: Pe, onCellDblclick: Re, onRowClick: Ie, onRowDblclick: _e, onHeaderClick: Oe, onFnProhibitToEdit: xe, onChangeGridData: he, onReloadGrid: re, onRefresMainTableFields: Te, onSetSelectOptions: we, onChangeRowsPerPage: Se, onNewOpenGridDialog: s(P), onChangeFormData: ke }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
254
+ return l(), i("div", null, [Z.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: oe, url: r(Y) + "/dsc/commons/sub-table", options: te.value, code: r(L), settings: r(q), onSelect: De, onSelectAll: Ce, onSelectionChange: ye, onCellClick: Pe, onCellDblclick: Re, onRowClick: Ie, onRowDblclick: _e, onHeaderClick: Oe, onFnProhibitToEdit: xe, onChangeGridData: he, onReloadGrid: re, onRefresMainTableFields: Te, onSetSelectOptions: we, onChangeRowsPerPage: Se, onNewOpenGridDialog: r(P), onChangeFormData: ke }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : s("", true)]);
263
255
  };
264
256
  } });
265
257
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, openBlock as u, createElementBlock as n, unref as i, createBlock as l } from "vue";
1
+ import { defineComponent as e, ref as t, createElementBlock as u, openBlock as n, createBlock as i, unref as l } from "vue";
2
2
  import "agilebuilder-ui";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import "dayjs";
@@ -17,9 +17,8 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
17
17
  function b(e3) {
18
18
  c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
19
19
  }
20
- return a2({ refresh: function() {
21
- if (s && "list" === s)
22
- return v.value.refresh();
20
+ return a2({ refresh: function(e3, t2, u2, n2) {
21
+ if (s && "list" === s) return v.value.refresh(e3, t2, u2, n2);
23
22
  }, createRow: function() {
24
23
  return v.value.createRow();
25
24
  }, clearSelections: function() {
@@ -33,20 +32,18 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
33
32
  }, isDeleteChange: function(e3) {
34
33
  s && "list" === s && v.value.isDeleteChange(e3);
35
34
  }, validatorSunTableListData: function() {
36
- if (s && "form" === s)
37
- return v.value.validatorSunTableListData();
35
+ if (s && "form" === s) return v.value.validatorSunTableListData();
38
36
  }, showMobileSearch: function() {
39
37
  v.value.showMobileSearch();
40
38
  }, getTableSelectOptions: function() {
41
- if (v.value)
42
- return v.value.getTableSelectOptions();
39
+ if (v.value) return v.value.getTableSelectOptions();
43
40
  }, dynamicControlTableEdit: function(e3, t2, u2) {
44
41
  v.value && v.value.dynamicControlTableEdit(e3, t2, u2);
45
42
  }, getTableUuid: function() {
46
43
  return c.configure.uuid;
47
44
  }, doLayout: function(e3) {
48
45
  v.value && v.value.doLayout(e3);
49
- } }), (e3, t2) => (u(), n("div", null, [i(s) && "form" === i(s) ? (u(), l(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"])) : (u(), l(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"]))]));
46
+ } }), (e3, t2) => (n(), u("div", null, [l(s) && "form" === l(s) ? (n(), i(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"])) : (n(), i(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"]))]));
50
47
  } });
51
48
  export {
52
49
  a as default
@@ -1,14 +1,14 @@
1
- import { defineComponent as e, computed as a, ref as n, onMounted as l, nextTick as t, watch as o, resolveComponent as u, openBlock as i, createElementBlock as d, normalizeClass as c, unref as r, createBlock as p, createCommentVNode as s, normalizeStyle as v, withCtx as f, createElementVNode as g, createVNode as y, toDisplayString as h } from "vue";
1
+ import { defineComponent as e, computed as a, ref as n, onMounted as l, nextTick as t, watch as o, resolveComponent as u, createElementBlock as i, openBlock as d, normalizeClass as c, unref as r, createBlock as p, createCommentVNode as s, normalizeStyle as v, withCtx as f, createElementVNode as g, createVNode as y, toDisplayString as h } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as m, setVariableValue as C } from "../../../../utils/page-helper-util.js";
3
+ import { setVariableValue as m, getVariableValue as C } from "../../../../utils/page-helper-util.js";
4
4
  import { getMenuTreeData as k } from "../../../../utils/tree-utils.js";
5
5
  import { handleAfterInitEvent as V, handleFormEvent as T } from "../../../../utils/events/event-util.js";
6
6
  const b = ["title"], N = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
7
7
  var _a, _b;
8
8
  const I = e2, S = I.pageContext.entity ? I.pageContext.entity : {};
9
9
  let _ = x(I.pageContext, I.configure);
10
- const j = a({ get: () => m(S, _), set(e3) {
11
- C(S, _, e3);
10
+ const j = a({ get: () => C(S, _), set(e3) {
11
+ m(S, _, e3);
12
12
  } }), w = n(!!((_b = (_a = I.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.lazy)), z = I.configure.runtime ? I.configure.runtime : {}, M = z.style, W = z.class;
13
13
  z.headerStyle;
14
14
  const A = n(null), D = n(z.props ? z.props : {}), E = n({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), F = n(false), K = n(null), L = n(null), O = n(""), R = n(false);
@@ -54,7 +54,7 @@ const b = ["title"], N = e({ __name: "tree-runtime", props: { pageContext: {}, c
54
54
  A.value.getNode(e3);
55
55
  } }), (e3, a2) => {
56
56
  const n2 = u("el-input"), l2 = u("SuperIcon"), t2 = u("Folder"), o2 = u("el-icon"), x2 = u("el-tree");
57
- return i(), d("div", { class: c(r(W)) }, [D.value.filter ? (i(), p(n2, { key: 0, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), style: { width: "240px" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : s("", true), F.value ? (i(), p(x2, { key: 1, ref_key: "menuTree", ref: A, style: v(r(M)), load: B, data: K.value, props: E.value, "default-expand-all": D.value.defaultExpandAll, "expand-on-click-node": D.value.expandOnClickNode, indent: D.value.retractWidth ? D.value.retractWidth : 18, accordion: D.value.accordion, "show-checkbox": !!D.value.showCheckbox, "highlight-current": "", lazy: w.value, "node-key": "nodeId", "filter-node-method": U, onNodeClick: q }, { default: f(({ node: e4, data: a3 }) => [g("span", { title: e4.label, class: "ellipsis" }, [a3.iconValue ? (i(), p(l2, { key: 0, iconType: a3.iconType, iconValue: a3.iconValue }, null, 8, ["iconType", "iconValue"])) : D.value.iconValue ? (i(), p(l2, { key: 1, iconType: D.value.iconType, iconValue: D.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), p(o2, { key: 2 }, { default: f(() => [y(t2)]), _: 1 })), g("span", null, h(e4.label), 1)], 8, b)]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : s("", true)], 2);
57
+ return d(), i("div", { class: c(r(W)) }, [D.value.filter ? (d(), p(n2, { key: 0, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), style: { width: "240px" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : s("", true), F.value ? (d(), p(x2, { key: 1, ref_key: "menuTree", ref: A, style: v(r(M)), load: B, data: K.value, props: E.value, "default-expand-all": D.value.defaultExpandAll, "expand-on-click-node": D.value.expandOnClickNode, indent: D.value.retractWidth ? D.value.retractWidth : 18, accordion: D.value.accordion, "show-checkbox": !!D.value.showCheckbox, "highlight-current": "", lazy: w.value, "node-key": "nodeId", "filter-node-method": U, onNodeClick: q }, { default: f(({ node: e4, data: a3 }) => [g("span", { title: e4.label, class: "ellipsis" }, [a3.iconValue ? (d(), p(l2, { key: 0, iconType: a3.iconType, iconValue: a3.iconValue }, null, 8, ["iconType", "iconValue"])) : D.value.iconValue ? (d(), p(l2, { key: 1, iconType: D.value.iconType, iconValue: D.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (d(), p(o2, { key: 2 }, { default: f(() => [y(t2)]), _: 1 })), g("span", null, h(e4.label), 1)], 8, b)]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : s("", true)], 2);
58
58
  };
59
59
  } });
60
60
  export {
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  configure: {
3
3
  type: ObjectConstructor;
4
4
  default: {
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
7
7
  };
8
8
  selectWidget: ObjectConstructor;
9
9
  indexObj: ObjectConstructor;
10
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
11
  configure: {
12
12
  type: ObjectConstructor;
13
13
  default: {
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
16
16
  };
17
17
  selectWidget: ObjectConstructor;
18
18
  indexObj: ObjectConstructor;
19
- }>>, {
19
+ }>> & Readonly<{}>, {
20
20
  configure: Record<string, any>;
21
- }, {}>;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
22
  export default _default;
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, openBlock as t, createElementBlock as r, toDisplayString as n } from "vue";
2
- const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (t(), r("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
1
+ import { defineComponent as e, createElementBlock as t, openBlock as r, toDisplayString as n } from "vue";
2
+ const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (r(), t("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
3
3
  export {
4
4
  c as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as n, resolveComponent as a, openBlock as u, createBlock as i, normalizeClass as r, unref as s, normalizeStyle as p, withCtx as c, createElementBlock as f, toDisplayString as g, createCommentVNode as v, createVNode as d, Fragment as m, renderList as h } from "vue";
2
- import { getVariableValue as y, setVariableValue as x, getOptionDatasFromPage as b, monitorFieldChange as C, autoSetAfterSelect as k, queryOptionDatasources as _ } from "../../../../utils/page-helper-util.js";
1
+ import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createElementBlock as g, Fragment as v, renderList as d, createCommentVNode as m, toDisplayString as h } from "vue";
2
+ import { setVariableValue as y, getVariableValue as x, getOptionDatasFromPage as b, monitorFieldChange as C, autoSetAfterSelect as k, queryOptionDatasources as _ } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as S, handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
5
5
  import { $t as I } from "../../../../utils/i18n-util.js";
@@ -7,17 +7,15 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
7
7
  const w = e2, z = w.pageContext.entity ? w.pageContext.entity : {};
8
8
  let D = R(w.pageContext, w.configure);
9
9
  const O = t({ get() {
10
- let e3 = y(z, D);
10
+ let e3 = x(z, D);
11
11
  return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
12
12
  }, set(e3) {
13
- e3 && e3.length > 0 && (e3 = e3.join(",")), x(z, D, e3);
13
+ e3 && e3.length > 0 && (e3 = e3.join(",")), y(z, D, e3);
14
14
  } }), A = w.configure.runtime ? w.configure.runtime : {}, M = A.style, P = A.class, E = A.headerStyle, F = A.titleExceedStyle, T = l(A.props ? A.props : {}), U = l(T.value.options ? T.value.options : []), W = b(w.pageContext, w.configure);
15
15
  W.length > 0 && (U.value = W);
16
16
  const q = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, B = q.optionValueSetType;
17
17
  let G = [];
18
- if (("dynamicData" == B || "dynamicData" == B || "service" == B) && q.autoSets)
19
- for (let e3 of q.autoSets)
20
- e3.source && G.push(e3);
18
+ if (("dynamicData" == B || "dynamicData" == B || "service" == B) && q.autoSets) for (let e3 of q.autoSets) e3.source && G.push(e3);
21
19
  w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && G.push({ source: "label", target: w.configure.props.base.optionProp }), T.value.changeMethod = function(e3) {
22
20
  if (G.length > -1) {
23
21
  let t2 = null;
@@ -41,7 +39,7 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
41
39
  U.value = e3 || [];
42
40
  } }), (e3, t2) => {
43
41
  const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
44
- return u(), i(n2, { ref_key: "formItemRef", ref: K, class: r(s(P)), "label-width": T.value.labelWidth, style: p(s(M)) }, { label: c(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: N, style: p({ ...s(E), ...s(F) }) }, g(s(I)(T.value.title)), 5)) : v("", true)]), default: c(() => [d(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === T.value.state, size: T.value.size, onChange: T.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(u(true), f(m, null, h(U.value, (t3) => (u(), i(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => s(S)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
42
+ return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(P)), "label-width": T.value.labelWidth, style: r(p(M)) }, { label: c(() => [T.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: N, style: r({ ...p(E), ...p(F) }) }, h(p(I)(T.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === T.value.state, size: T.value.size, onChange: T.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(i(true), g(v, null, d(U.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(S)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
45
43
  };
46
44
  } });
47
45
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as l, resolveComponent as r, openBlock as t, createElementBlock as p, Fragment as o, createBlock as u, unref as a, isRef as i, createCommentVNode as n } from "vue";
1
+ import { defineComponent as e, computed as l, resolveComponent as r, createElementBlock as t, openBlock as p, Fragment as o, createBlock as u, createCommentVNode as a, unref as i, isRef as n } from "vue";
2
2
  import { formatVariableValue as s, setVariableValue as y, getVariableValue as f } from "../../../../utils/page-helper-util.js";
3
3
  const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property: {} }, setup(e2) {
4
4
  const x2 = e2, c = x2.pageContext.entity;
@@ -6,8 +6,7 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
6
6
  if (x2.property.prefixPro && x2.property.prefixPro.startsWith("${")) {
7
7
  let e3 = x2.property.prefixPro;
8
8
  e3 = e3.substring(2, e3.length - 1), d = e3.split(".");
9
- } else
10
- d = [];
9
+ } else d = [];
11
10
  if (d.length > 0 && x2.property.prefixDefault) {
12
11
  const e3 = x2.property.prefixDefault;
13
12
  let l2 = s(x2.pageContext, e3);
@@ -28,11 +27,10 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
28
27
  l2 || (l2 = []), Array.isArray(l2) || (l2 = [l2]);
29
28
  const r2 = l2.indexOf(h);
30
29
  e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
31
- } else
32
- y(c, d, e3);
30
+ } else y(c, d, e3);
33
31
  } })), (e3, l2) => {
34
32
  const s2 = r("el-radio"), y2 = r("el-checkbox");
35
- return t(), p(o, null, ["radio" === e3.property.prefixType ? (t(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: a(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => i(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : n("", true), "checkbox" === e3.property.prefixType ? (t(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: a(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => i(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : n("", true)], 64);
33
+ return p(), t(o, null, ["radio" === e3.property.prefixType ? (p(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: i(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e3.property.prefixType ? (p(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
36
34
  };
37
35
  } });
38
36
  export {