super-page-runtime 2.2.26 → 2.2.29-tmp2

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 (165) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +7 -5
  2. package/dist/es/assets/chart-themes/theme1.js +6 -2
  3. package/dist/es/assets/chart-themes/theme2.js +6 -2
  4. package/dist/es/assets/chart-themes/theme3.js +6 -2
  5. package/dist/es/components/runtime/utils/api/api-util.js +7 -4
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +443 -135
  7. package/dist/es/components/runtime/utils/assemblys-config.js +369 -13
  8. package/dist/es/components/runtime/utils/barcode-util.js +33 -9
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +306 -122
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +68 -29
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +152 -68
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +124 -46
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +99 -36
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +522 -224
  15. package/dist/es/components/runtime/utils/common-util.js +156 -76
  16. package/dist/es/components/runtime/utils/eventBus.js +8 -3
  17. package/dist/es/components/runtime/utils/events/event-util.js +775 -362
  18. package/dist/es/components/runtime/utils/events/print-label.js +140 -72
  19. package/dist/es/components/runtime/utils/events/standard-event.js +2320 -808
  20. package/dist/es/components/runtime/utils/events/validator-util.js +560 -224
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +88 -28
  22. package/dist/es/components/runtime/utils/form/scan-util.js +162 -61
  23. package/dist/es/components/runtime/utils/global-refs.js +84 -53
  24. package/dist/es/components/runtime/utils/i18n-util.js +20 -11
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +7 -2
  26. package/dist/es/components/runtime/utils/page-helper-util.js +660 -279
  27. package/dist/es/components/runtime/utils/page-init-util.js +406 -141
  28. package/dist/es/components/runtime/utils/page-permission-util.js +531 -22
  29. package/dist/es/components/runtime/utils/page-store.js +68 -23
  30. package/dist/es/components/runtime/utils/store-util.js +13 -9
  31. package/dist/es/components/runtime/utils/store.js +2 -2
  32. package/dist/es/components/runtime/utils/table-utils.js +81 -40
  33. package/dist/es/components/runtime/utils/tree-utils.js +37 -17
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +83 -21
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +46 -14
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +132 -36
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +18 -4
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +107 -17
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +198 -50
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +42 -12
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +60 -7
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +203 -52
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +162 -46
  54. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +109 -32
  56. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +166 -43
  58. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +117 -32
  60. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +118 -32
  62. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +597 -246
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +42 -4
  64. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +62 -8
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +160 -29
  68. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +62 -13
  70. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +594 -212
  73. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +139 -29
  74. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  75. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +125 -21
  76. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +102 -16
  78. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  80. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +81 -18
  81. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +82 -17
  83. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +86 -14
  85. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +79 -21
  87. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +61 -16
  89. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +37 -10
  91. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +127 -38
  93. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +76 -28
  95. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  96. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +178 -61
  97. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +810 -302
  98. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  99. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +635 -262
  100. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  101. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +115 -40
  103. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  104. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +215 -56
  105. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +21 -3
  106. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  107. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  108. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +154 -42
  109. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +98 -34
  110. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  111. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +200 -52
  113. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +239 -68
  115. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +109 -31
  117. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +59 -21
  119. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +188 -56
  121. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +103 -22
  123. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +245 -57
  125. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +174 -32
  127. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  128. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +107 -28
  129. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  130. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +50 -13
  131. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  132. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +194 -64
  133. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +249 -88
  135. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +263 -80
  137. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +57 -13
  139. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +155 -30
  141. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +129 -40
  143. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  144. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +107 -22
  145. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +188 -89
  146. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
  147. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +272 -133
  148. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  149. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  150. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +46 -18
  151. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +49 -21
  153. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  154. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +58 -20
  155. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  156. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +53 -16
  157. package/dist/es/components/runtime/views/home-chart.vue.js +160 -40
  158. package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
  159. package/dist/es/components/runtime/views/super-page-dialog.vue.js +139 -20
  160. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  161. package/dist/es/components/runtime/views/super-page.vue.js +754 -226
  162. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  163. package/dist/es/i18n/langs/cn.js +55 -2
  164. package/dist/es/i18n/langs/en.js +55 -2
  165. package/package.json +2 -2
@@ -1,21 +1,86 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as l, createBlock as i, openBlock as u, normalizeClass as r, unref as a, normalizeStyle as p, isRef as s, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createElementVNode as d, createCommentVNode as y, createTextVNode as x, toDisplayString as v } from "vue";
2
- import C from "../../object-render.vue.js";
1
+ import { defineComponent, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeClass, unref, normalizeStyle, isRef, withCtx, createElementBlock, Fragment, renderList, createElementVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
+ import _sfc_main$1 from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
- import { $t as V } from "../../../../utils/i18n-util.js";
5
- import { handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
6
- const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
- const _2 = e2;
8
- _2.configure.props || (_2.configure.props = {});
9
- const h = _2.configure.props.defaultOpens ? _2.configure.props.defaultOpens : [1], T = !!_2.configure.props.accordion, b = t(null), k = _2.configure.runtime ? _2.configure.runtime : {}, O = k.style, R = k.class, S = k.headerStyle;
10
- return n(() => {
11
- o(() => {
12
- j(null, _2.pageContext, _2.configure, { componentRef: b.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
4
+ import { $t } from "../../../../utils/i18n-util.js";
5
+ import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "collapse-runtime",
8
+ props: {
9
+ pageContext: {},
10
+ configure: {}
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ if (!props.configure.props) {
15
+ props.configure.props = {};
16
+ }
17
+ const activeName = props.configure.props.defaultOpens ? props.configure.props.defaultOpens : [1];
18
+ const accordion = props.configure.props.accordion ? true : false;
19
+ const thisRef = ref(null);
20
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
21
+ const runtimeStyle = runtimeInfo.style;
22
+ const runtimeClass = runtimeInfo.class;
23
+ const headerStyle = runtimeInfo.headerStyle;
24
+ onMounted(() => {
25
+ nextTick(() => {
26
+ handleAfterInitEvent(null, props.pageContext, props.configure, {
27
+ componentRef: thisRef.value,
28
+ entity: props.pageContext.entity.data,
29
+ pageData: props.pageContext.entity.page
30
+ });
31
+ });
13
32
  });
14
- }), (e3, t2) => {
15
- const n2 = l("SuperIcon"), o2 = l("el-collapse-item"), j2 = l("el-collapse");
16
- return u(), i(j2, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => s(h) ? h.value = e4 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e3.configure.items, (t3, l2) => (u(), i(o2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(n2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n3) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
17
- };
18
- } });
33
+ return (_ctx, _cache) => {
34
+ const _component_SuperIcon = resolveComponent("SuperIcon");
35
+ const _component_el_collapse_item = resolveComponent("el-collapse-item");
36
+ const _component_el_collapse = resolveComponent("el-collapse");
37
+ return openBlock(), createBlock(_component_el_collapse, {
38
+ ref_key: "thisRef",
39
+ ref: thisRef,
40
+ modelValue: unref(activeName),
41
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
42
+ style: normalizeStyle(unref(runtimeStyle)),
43
+ accordion: unref(accordion),
44
+ class: normalizeClass(unref(runtimeClass))
45
+ }, {
46
+ default: withCtx(() => [
47
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (item, index) => {
48
+ return openBlock(), createBlock(_component_el_collapse_item, {
49
+ name: item.index
50
+ }, {
51
+ title: withCtx(() => [
52
+ createElementVNode("div", {
53
+ style: normalizeStyle([unref(headerStyle), { "width": "100%" }])
54
+ }, [
55
+ item.iconType && item.iconValue ? (openBlock(), createBlock(_component_SuperIcon, {
56
+ key: 0,
57
+ iconType: item.iconType,
58
+ iconValue: item.iconValue,
59
+ style: { "margin-right": "2px" }
60
+ }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
61
+ createTextVNode(" " + toDisplayString(unref($t)(item.label)), 1)
62
+ ], 4)
63
+ ]),
64
+ default: withCtx(() => [
65
+ createElementVNode("div", null, [
66
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (element, itemIndex) => {
67
+ return openBlock(), createBlock(_sfc_main$1, {
68
+ key: element.uuid,
69
+ configure: element,
70
+ pageContext: _ctx.pageContext
71
+ }, null, 8, ["configure", "pageContext"]);
72
+ }), 128))
73
+ ])
74
+ ]),
75
+ _: 2
76
+ }, 1032, ["name"]);
77
+ }), 256))
78
+ ]),
79
+ _: 1
80
+ }, 8, ["modelValue", "style", "accordion", "class"]);
81
+ };
82
+ }
83
+ });
19
84
  export {
20
- _ as default
85
+ _sfc_main as default
21
86
  };
@@ -1,4 +1,4 @@
1
- import e from "./container-runtime.vue2.js";
1
+ import _sfc_main from "./container-runtime.vue2.js";
2
2
  export {
3
- e as default
3
+ _sfc_main as default
4
4
  };
@@ -1,18 +1,90 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, createBlock as l, openBlock as i, withCtx as r, createCommentVNode as s, createVNode as a, normalizeStyle as g, unref as f, createElementBlock as p, Fragment as c, renderList as y, normalizeClass as m } from "vue";
2
- import x from "../../object-render.vue.js";
1
+ import { defineComponent, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, withCtx, createCommentVNode, createVNode, normalizeStyle, unref, createElementBlock, Fragment, renderList, normalizeClass } from "vue";
2
+ import _sfc_main$1 from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
- import { handleAfterInitEvent as d } from "../../../../utils/events/event-util.js";
5
- const C = e({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
- const C2 = e2, _ = t(null), k = C2.configure.runtime ? C2.configure.runtime : {}, v = k.leftStyle, h = k.rightStyle, j = k.style, R = k.class;
7
- return n(() => {
8
- o(() => {
9
- d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
4
+ import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "container-runtime",
7
+ props: {
8
+ pageContext: {},
9
+ configure: {}
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const thisRef = ref(null);
14
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
+ const leftStyle = runtimeInfo.leftStyle;
16
+ const rightStyle = runtimeInfo.rightStyle;
17
+ const mainStyle = runtimeInfo.style;
18
+ const mainClass = runtimeInfo.class;
19
+ onMounted(() => {
20
+ nextTick(() => {
21
+ handleAfterInitEvent(null, props.pageContext, props.configure, {
22
+ componentRef: thisRef.value,
23
+ entity: props.pageContext.entity.data,
24
+ pageData: props.pageContext.entity.page
25
+ });
26
+ });
10
27
  });
11
- }), (e3, t2) => {
12
- const n2 = u("el-aside"), o2 = u("el-main"), d2 = u("el-container");
13
- return i(), l(d2, { ref_key: "thisRef", ref: _ }, { default: r(() => [e3.configure.props.useLeft ? (i(), l(n2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(o2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? (i(), l(n2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
14
- };
15
- } });
28
+ return (_ctx, _cache) => {
29
+ const _component_el_aside = resolveComponent("el-aside");
30
+ const _component_el_main = resolveComponent("el-main");
31
+ const _component_el_container = resolveComponent("el-container");
32
+ return openBlock(), createBlock(_component_el_container, {
33
+ ref_key: "thisRef",
34
+ ref: thisRef
35
+ }, {
36
+ default: withCtx(() => [
37
+ _ctx.configure.props.useLeft ? (openBlock(), createBlock(_component_el_aside, {
38
+ key: 0,
39
+ style: normalizeStyle(unref(leftStyle))
40
+ }, {
41
+ default: withCtx(() => [
42
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.leftAslides, (element, itemIndex) => {
43
+ return openBlock(), createBlock(_sfc_main$1, {
44
+ key: element.uuid,
45
+ pageContext: _ctx.pageContext,
46
+ configure: element
47
+ }, null, 8, ["pageContext", "configure"]);
48
+ }), 128))
49
+ ]),
50
+ _: 1
51
+ }, 8, ["style"])) : createCommentVNode("", true),
52
+ createVNode(_component_el_main, {
53
+ style: normalizeStyle(unref(mainStyle)),
54
+ class: normalizeClass(unref(mainClass))
55
+ }, {
56
+ default: withCtx(() => [
57
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
58
+ return openBlock(), createBlock(_sfc_main$1, {
59
+ key: element.uuid,
60
+ pageContext: _ctx.pageContext,
61
+ configure: element
62
+ }, null, 8, ["pageContext", "configure"]);
63
+ }), 128))
64
+ ]),
65
+ _: 1
66
+ }, 8, ["style", "class"]),
67
+ _ctx.configure.props.useRight ? (openBlock(), createBlock(_component_el_aside, {
68
+ key: 1,
69
+ style: normalizeStyle(unref(rightStyle))
70
+ }, {
71
+ default: withCtx(() => [
72
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.rightAslides, (element, itemIndex) => {
73
+ return openBlock(), createBlock(_sfc_main$1, {
74
+ key: element.uuid,
75
+ pageContext: _ctx.pageContext,
76
+ configure: element
77
+ }, null, 8, ["pageContext", "configure"]);
78
+ }), 128))
79
+ ]),
80
+ _: 1
81
+ }, 8, ["style"])) : createCommentVNode("", true)
82
+ ]),
83
+ _: 1
84
+ }, 512);
85
+ };
86
+ }
87
+ });
16
88
  export {
17
- C as default
89
+ _sfc_main as default
18
90
  };
@@ -1,4 +1,4 @@
1
- import e from "./flex-runtime.vue2.js";
1
+ import _sfc_main from "./flex-runtime.vue2.js";
2
2
  export {
3
- e as default
3
+ _sfc_main as default
4
4
  };
@@ -1,25 +1,83 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as s, resolveComponent as l, createBlock as i, openBlock as o, normalizeClass as a, normalizeStyle as u, unref as r, withCtx as f, createElementBlock as p, Fragment as g, renderList as m, withDirectives as c, createVNode as y, vShow as x } from "vue";
2
- import d from "../../object-render.vue.js";
3
- import { PageDimensions as C } from "../../../../utils/interfaces/page-design-types.js";
4
- import { handleAfterInitEvent as v } from "../../../../utils/events/event-util.js";
5
- const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
- const _2 = e2, j = t(null), S = _2.configure.runtime ? _2.configure.runtime : {}, h = S.style, w = S.class, b = t(S.props ? S.props : {});
7
- if (_2.configure.items) {
8
- const e3 = _2.pageContext && _2.pageContext.dimensions ? _2.pageContext.dimensions : C.PC;
9
- for (let t2 of _2.configure.items) {
10
- const n2 = t2.runtime && t2.runtime.common ? t2.runtime.common : {}, s2 = n2.style ? n2.style[e3 + "_style"] : void 0, l2 = {};
11
- s2 && (t2.flexSpan = s2.flexSpan ? s2.flexSpan : -2, Object.assign(l2, s2), delete l2.height, delete s2.width), t2.itemStyle = l2, n2.style && (n2.style[e3 + "_class"] = "");
1
+ import { defineComponent, ref, onMounted, nextTick, resolveComponent, createBlock, openBlock, normalizeClass, normalizeStyle, unref, withCtx, createElementBlock, Fragment, renderList, withDirectives, createVNode, vShow } from "vue";
2
+ import _sfc_main$1 from "../../object-render.vue.js";
3
+ import { PageDimensions } from "../../../../utils/interfaces/page-design-types.js";
4
+ import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "flex-runtime",
7
+ props: {
8
+ pageContext: {},
9
+ configure: {}
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const thisRef = ref(null);
14
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
+ const runtimeStyle = runtimeInfo.style;
16
+ const runtimeClass = runtimeInfo.class;
17
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
18
+ if (props.configure.items) {
19
+ const pageDimensions = props.pageContext && props.pageContext.dimensions ? props.pageContext.dimensions : PageDimensions.PC;
20
+ for (let item of props.configure.items) {
21
+ const itemCommon = item.runtime && item.runtime.common ? item.runtime.common : {};
22
+ const sizeStyle = itemCommon.style ? itemCommon.style[pageDimensions + "_style"] : void 0;
23
+ const itemStyle = {};
24
+ if (sizeStyle) {
25
+ item.flexSpan = sizeStyle.flexSpan ? sizeStyle.flexSpan : -2;
26
+ Object.assign(itemStyle, sizeStyle);
27
+ delete itemStyle.height;
28
+ delete sizeStyle.width;
29
+ }
30
+ item.itemStyle = itemStyle;
31
+ if (itemCommon.style) {
32
+ itemCommon.style[pageDimensions + "_class"] = "";
33
+ }
34
+ }
12
35
  }
13
- }
14
- return n(() => {
15
- s(() => {
16
- v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
36
+ onMounted(() => {
37
+ nextTick(() => {
38
+ handleAfterInitEvent(null, props.pageContext, props.configure, {
39
+ componentRef: thisRef.value,
40
+ entity: props.pageContext.entity.data,
41
+ pageData: props.pageContext.entity.page
42
+ });
43
+ });
17
44
  });
18
- }), (e3, t2) => {
19
- const n2 = l("el-col"), s2 = l("el-row");
20
- return o(), i(s2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
21
- };
22
- } });
45
+ return (_ctx, _cache) => {
46
+ const _component_el_col = resolveComponent("el-col");
47
+ const _component_el_row = resolveComponent("el-row");
48
+ return openBlock(), createBlock(_component_el_row, {
49
+ ref_key: "thisRef",
50
+ ref: thisRef,
51
+ justify: designProperty.value.flexJustify,
52
+ gutter: designProperty.value.flexGutter,
53
+ align: designProperty.value.alignItems,
54
+ style: normalizeStyle([{ "display": "flex" }, unref(runtimeStyle)]),
55
+ class: normalizeClass(unref(runtimeClass))
56
+ }, {
57
+ default: withCtx(() => [
58
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
59
+ return withDirectives((openBlock(), createBlock(_component_el_col, {
60
+ key: element.uuid,
61
+ style: normalizeStyle(element.itemStyle),
62
+ span: element.flexSpan
63
+ }, {
64
+ default: withCtx(() => [
65
+ createVNode(_sfc_main$1, {
66
+ pageContext: _ctx.pageContext,
67
+ configure: element
68
+ }, null, 8, ["pageContext", "configure"])
69
+ ]),
70
+ _: 2
71
+ }, 1032, ["style", "span"])), [
72
+ [vShow, element._dynamicShowFlag]
73
+ ]);
74
+ }), 128))
75
+ ]),
76
+ _: 1
77
+ }, 8, ["justify", "gutter", "align", "style", "class"]);
78
+ };
79
+ }
80
+ });
23
81
  export {
24
- _ as default
82
+ _sfc_main as default
25
83
  };
@@ -1,4 +1,4 @@
1
- import r from "./form-runtime.vue2.js";
1
+ import _sfc_main from "./form-runtime.vue2.js";
2
2
  export {
3
- r as default
3
+ _sfc_main as default
4
4
  };
@@ -1,25 +1,70 @@
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 m, withCtx as p, createCommentVNode as c, toDisplayString as f, Fragment as g, renderList as d, createBlock as y } from "vue";
2
- import b from "../../object-render.vue.js";
1
+ import { defineComponent, ref, onMounted, nextTick, resolveComponent, createElementBlock, openBlock, createVNode, normalizeClass, normalizeStyle, unref, withCtx, createCommentVNode, toDisplayString, Fragment, renderList, createBlock } from "vue";
2
+ import _sfc_main$1 from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
4
  import "agilebuilder-ui/src/utils/common-util";
5
5
  import "agilebuilder-ui/src/utils/util";
6
6
  import "agilebuilder-ui/src/utils/request";
7
7
  import "dayjs";
8
8
  import "agilebuilder-ui/src/utils/calculator/calculator-util";
9
- import { handleFormEvent as v } from "../../../../utils/events/event-util.js";
10
- const x = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
11
- const x2 = e2;
12
- x2.configure.items || (x2.configure.items = []);
13
- const C = x2.configure.runtime ? x2.configure.runtime : {}, j = C.props ? C.props : {}, h = t(C.style ? C.style : {}), _ = C.class, k = t(C.titleStyle ? C.titleStyle : {}), w = t(null);
14
- return i(() => {
15
- l(() => {
16
- v(null, x2.pageContext, x2.configure, "afterFormLoad", { componentRef: w.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
9
+ import { handleFormEvent } from "../../../../utils/events/event-util.js";
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "form-runtime",
12
+ props: {
13
+ pageContext: {},
14
+ configure: {}
15
+ },
16
+ setup(__props) {
17
+ const props = __props;
18
+ if (!props.configure.items) {
19
+ props.configure.items = [];
20
+ }
21
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
22
+ const runtimeProps = runtimeInfo.props ? runtimeInfo.props : {};
23
+ const runtimeStyle = ref(runtimeInfo.style ? runtimeInfo.style : {});
24
+ const runtimeClass = runtimeInfo.class;
25
+ const titleStyle = ref(runtimeInfo.titleStyle ? runtimeInfo.titleStyle : {});
26
+ const thisRef = ref(null);
27
+ onMounted(() => {
28
+ nextTick(() => {
29
+ handleFormEvent(null, props.pageContext, props.configure, "afterFormLoad", {
30
+ componentRef: thisRef.value,
31
+ entity: props.pageContext.entity.data,
32
+ pageData: props.pageContext.entity.page
33
+ });
34
+ });
17
35
  });
18
- }), (e3, t2) => {
19
- const i2 = o("el-form");
20
- return u(), r("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": m(j).labelWidth, "label-position": m(j).labelPosition, size: m(j).componentSize, style: a(h.value), class: n(m(_)) }, { default: p(() => [m(j).formTitle ? (u(), r("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, f(m(j).formTitle), 5)) : c("", 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
- };
22
- } });
36
+ return (_ctx, _cache) => {
37
+ const _component_el_form = resolveComponent("el-form");
38
+ return openBlock(), createElementBlock("div", null, [
39
+ createVNode(_component_el_form, {
40
+ ref_key: "thisRef",
41
+ ref: thisRef,
42
+ "label-width": unref(runtimeProps).labelWidth,
43
+ "label-position": unref(runtimeProps).labelPosition,
44
+ size: unref(runtimeProps).componentSize,
45
+ style: normalizeStyle(runtimeStyle.value),
46
+ class: normalizeClass(unref(runtimeClass))
47
+ }, {
48
+ default: withCtx(() => [
49
+ unref(runtimeProps).formTitle ? (openBlock(), createElementBlock("div", {
50
+ key: 0,
51
+ class: "amb-widget-form-title",
52
+ style: normalizeStyle(titleStyle.value)
53
+ }, toDisplayString(unref(runtimeProps).formTitle), 5)) : createCommentVNode("", true),
54
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (element, itemIndex) => {
55
+ return openBlock(), createBlock(_sfc_main$1, {
56
+ key: element.uuid,
57
+ pageContext: _ctx.pageContext,
58
+ configure: element
59
+ }, null, 8, ["pageContext", "configure"]);
60
+ }), 128))
61
+ ]),
62
+ _: 1
63
+ }, 8, ["label-width", "label-position", "size", "style", "class"])
64
+ ]);
65
+ };
66
+ }
67
+ });
23
68
  export {
24
- x as default
69
+ _sfc_main as default
25
70
  };
@@ -1,4 +1,4 @@
1
- import e from "./iframe-runtime.vue2.js";
1
+ import _sfc_main from "./iframe-runtime.vue2.js";
2
2
  export {
3
- e as default
3
+ _sfc_main as default
4
4
  };
@@ -1,14 +1,41 @@
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";
1
+ import { defineComponent, ref, onMounted, nextTick, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref } from "vue";
2
2
  import "../../../../utils/global-refs.js";
3
- import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
4
- const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2) {
5
- const p2 = e2, c = t(null), g = p2.configure.runtime ? p2.configure.runtime : {}, m = g.style, x = g.class;
6
- return n(() => {
7
- r(() => {
8
- l(null, p2.pageContext, p2.configure, { componentRef: c.value, entity: p2.pageContext.entity.data, pageData: p2.pageContext.entity.page });
3
+ import { handleAfterInitEvent } from "../../../../utils/events/event-util.js";
4
+ const _hoisted_1 = ["src"];
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "iframe-runtime",
7
+ props: {
8
+ pageContext: {},
9
+ configure: {},
10
+ indexObj: {},
11
+ selectWidget: {}
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const thisRef = ref(null);
16
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
17
+ const runtimeStyle = runtimeInfo.style;
18
+ const runtimeClass = runtimeInfo.class;
19
+ onMounted(() => {
20
+ nextTick(() => {
21
+ handleAfterInitEvent(null, props.pageContext, props.configure, {
22
+ componentRef: thisRef.value,
23
+ entity: props.pageContext.entity.data,
24
+ pageData: props.pageContext.entity.page
25
+ });
26
+ });
9
27
  });
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
- } });
28
+ return (_ctx, _cache) => {
29
+ return openBlock(), createElementBlock("iframe", {
30
+ ref_key: "thisRef",
31
+ ref: thisRef,
32
+ src: _ctx.configure.props.src,
33
+ class: normalizeClass(["amb-widget-container-iframe", unref(runtimeClass)]),
34
+ style: normalizeStyle(unref(runtimeStyle))
35
+ }, null, 14, _hoisted_1);
36
+ };
37
+ }
38
+ });
12
39
  export {
13
- p as default
40
+ _sfc_main as default
14
41
  };
@@ -1,4 +1,4 @@
1
- import t from "./tabs-runtime.vue2.js";
1
+ import _sfc_main from "./tabs-runtime.vue2.js";
2
2
  export {
3
- t as default
3
+ _sfc_main as default
4
4
  };