super-page-runtime 2.0.19 → 2.0.22

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 (189) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +16 -14
  2. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
  4. package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
  5. package/dist/es/components/runtime/utils/common-util.js +7 -11
  6. package/dist/es/components/runtime/utils/events/event-util.js +9 -14
  7. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/events/standard-event.js +124 -110
  9. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  10. package/dist/es/components/runtime/utils/global-refs.js +12 -0
  11. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  12. package/dist/es/components/runtime/utils/page-helper-util.js +4 -4
  13. package/dist/es/components/runtime/utils/page-init-util.js +5 -3
  14. package/dist/es/components/runtime/utils/table-utils.js +4 -5
  15. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
  16. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
  17. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
  18. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
  19. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
  20. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -13
  21. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
  22. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
  23. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
  24. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
  25. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
  26. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  27. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
  28. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
  29. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  30. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
  31. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -39
  32. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  33. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
  34. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
  35. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
  36. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
  38. package/dist/es/components/runtime/views/super-page.vue.js +2 -2
  39. package/package.json +3 -2
  40. package/dist/lib/_virtual/AttributeMap.js +0 -4
  41. package/dist/lib/_virtual/Delta.js +0 -4
  42. package/dist/lib/_virtual/Op.js +0 -4
  43. package/dist/lib/_virtual/OpIterator.js +0 -4
  44. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  45. package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
  46. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  47. package/dist/lib/_virtual/dayjs.min.js +0 -4
  48. package/dist/lib/_virtual/index.js +0 -4
  49. package/dist/lib/_virtual/index2.js +0 -4
  50. package/dist/lib/_virtual/index3.js +0 -4
  51. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  52. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  53. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  54. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  55. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  56. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  57. package/dist/lib/components/runtime/index.d.ts +0 -4
  58. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  59. package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
  60. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
  61. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  62. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
  63. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
  64. package/dist/lib/components/runtime/utils/common-util.js +0 -94
  65. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  66. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  67. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  68. package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
  69. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  70. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
  71. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  72. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
  73. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  74. package/dist/lib/components/runtime/utils/global-refs.js +0 -65
  75. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
  76. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  77. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
  78. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
  79. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  80. package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
  81. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  82. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  83. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  84. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  85. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  86. package/dist/lib/components/runtime/utils/store.js +0 -3
  87. package/dist/lib/components/runtime/utils/table-utils.js +0 -24
  88. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  89. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  90. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  91. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  92. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  93. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  94. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  95. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
  96. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  97. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  98. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  99. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  100. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  101. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  102. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  103. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
  104. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  105. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
  106. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  107. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
  108. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  109. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
  110. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  111. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  112. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  113. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  114. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  115. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  116. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  117. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  118. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  119. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  120. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  121. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  122. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  123. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  124. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  125. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  126. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  127. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  128. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  129. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  130. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  131. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  132. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  133. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  134. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  135. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  136. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  137. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  138. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  139. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  140. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  141. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  142. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  143. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  144. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  145. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  146. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  147. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  148. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  149. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  150. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  151. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  152. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  153. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  154. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  155. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  156. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  157. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  158. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  159. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
  160. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  161. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  162. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  163. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  164. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  165. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  166. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  167. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
  168. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  169. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  170. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  171. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  172. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  173. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  174. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  175. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  176. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  177. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
  178. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  179. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  180. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  181. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  182. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
  183. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  184. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  185. package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
  186. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  187. package/dist/lib/favicon.ico +0 -0
  188. package/dist/lib/index.d.ts +0 -8
  189. package/dist/lib/index.js +0 -15
@@ -1,127 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageInitUtil = require("../../../../utils/page-init-util.js");
4
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
5
- const superUi = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js");
6
- const _hoisted_1 = { style: { "display": "flex", "width": "100%", "justify-content": "space-between" } };
7
- const _hoisted_2 = { style: { "overflow": "hidden", "white-space": "nowrap" } };
8
- const _hoisted_3 = {
9
- key: 1,
10
- style: { "display": "flex", "justify-content": "space-between" }
11
- };
12
- const _hoisted_4 = ["title"];
13
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
14
- __name: "label-runtime",
15
- props: {
16
- pageContext: {},
17
- configure: {}
18
- },
19
- setup(__props) {
20
- const props = __props;
21
- pageInitUtil.getFormModelFields(props.pageContext, props.configure);
22
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
23
- const runtimeStyle = runtimeInfo.style;
24
- const runtimeClass = runtimeInfo.class;
25
- const headerStyle = runtimeInfo.headerStyle;
26
- const appendClass = runtimeInfo.appendClass;
27
- const appendStyle = runtimeInfo.appendStyle;
28
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
29
- const listOptions = designProperty.options ? designProperty.options : [];
30
- const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
31
- const valueType = dataOrigin.optionValueSetType;
32
- if (valueType == "dynamicData" || valueType == "dynamicData" || valueType == "service") {
33
- pageHelperUtil.queryOptions(props.configure, props.pageContext, "").then((results) => {
34
- listOptions.value = results;
35
- }).catch((error) => {
36
- console.log("lable组件查询数据源失败!", error);
37
- });
38
- }
39
- let contentVariable = designProperty.formatting;
40
- if (!contentVariable) {
41
- const propsBase = props.configure.props.base ? props.configure.props.base : {};
42
- contentVariable = propsBase.prop;
43
- }
44
- if (!contentVariable) {
45
- contentVariable = "${page." + props.configure.uuid + "}";
46
- }
47
- const formatType = designProperty.formatType;
48
- const dynamicValue = Vue.computed(() => {
49
- let resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
50
- console.log("formatType", formatType);
51
- if (formatType) {
52
- if (designProperty.hasOptions) {
53
- let selItems = null;
54
- if (listOptions.value) {
55
- selItems = listOptions.value.filter((item) => item.value == resultValue);
56
- }
57
- if (selItems && selItems.length > 0) {
58
- resultValue = selItems[0].label;
59
- }
60
- } else {
61
- resultValue = pageHelperUtil.formatValueByType(resultValue, formatType, designProperty);
62
- }
63
- }
64
- return resultValue == void 0 || resultValue == null ? "" : resultValue;
65
- });
66
- return (_ctx, _cache) => {
67
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
68
- return Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
69
- key: 0,
70
- required: Vue.unref(designProperty).required ? true : false,
71
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
72
- "label-width": Vue.unref(designProperty).labelWidth,
73
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
74
- }, {
75
- label: Vue.withCtx(() => [
76
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
77
- key: 0,
78
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
79
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
80
- ]),
81
- default: Vue.withCtx(() => [
82
- Vue.createElementVNode("div", _hoisted_1, [
83
- Vue.createElementVNode("span", _hoisted_2, [
84
- Vue.unref(designProperty).preIconValue || Vue.unref(designProperty).preText ? (Vue.openBlock(), Vue.createElementBlock("span", {
85
- key: 0,
86
- class: Vue.normalizeClass({ "el-input__suffix": Vue.unref(designProperty).iconPosition != "outer", "el-input-group__append": Vue.unref(designProperty).iconPosition == "outer" }),
87
- style: Vue.normalizeStyle(Vue.unref(appendStyle))
88
- }, [
89
- Vue.unref(designProperty).preIconType && Vue.unref(designProperty).preIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
90
- key: 0,
91
- iconType: Vue.unref(designProperty).preIconType,
92
- iconValue: Vue.unref(designProperty).preIconValue
93
- }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
94
- Vue.createTextVNode(" " + Vue.toDisplayString(Vue.unref(designProperty).preText), 1)
95
- ], 6)) : Vue.createCommentVNode("", true),
96
- Vue.createTextVNode("  " + Vue.toDisplayString(dynamicValue.value), 1)
97
- ]),
98
- Vue.unref(designProperty).sufIconValue || Vue.unref(designProperty).sufText ? (Vue.openBlock(), Vue.createElementBlock("span", {
99
- key: 0,
100
- class: Vue.normalizeClass({ "el-input__suffix": Vue.unref(designProperty).iconPosition != "outer", "el-input-group__append": Vue.unref(designProperty).iconPosition == "outer" })
101
- }, [
102
- Vue.unref(designProperty).sufIconType && Vue.unref(designProperty).sufIconValue ? (Vue.openBlock(), Vue.createBlock(Vue.unref(superUi.SuperIcon), {
103
- key: 0,
104
- style: {},
105
- iconType: Vue.unref(designProperty).sufIconType,
106
- iconValue: Vue.unref(designProperty).sufIconValue
107
- }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true),
108
- Vue.createElementVNode("span", null, " " + Vue.toDisplayString(Vue.unref(designProperty).sufText), 1)
109
- ], 2)) : Vue.createCommentVNode("", true)
110
- ])
111
- ]),
112
- _: 1
113
- }, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3, [
114
- Vue.createElementVNode("span", {
115
- style: { "overflow": "hidden", "white-space": "nowrap" },
116
- title: dynamicValue.value
117
- }, Vue.toDisplayString(Vue.unref(designProperty).prefixIcon) + " " + Vue.toDisplayString(dynamicValue.value), 9, _hoisted_4),
118
- Vue.unref(designProperty).suffixTxt ? (Vue.openBlock(), Vue.createElementBlock("span", {
119
- key: 0,
120
- class: Vue.normalizeClass(Vue.unref(appendClass)),
121
- style: Vue.normalizeStyle(Vue.unref(appendStyle))
122
- }, Vue.toDisplayString(Vue.unref(designProperty).suffixTxt), 7)) : Vue.createCommentVNode("", true)
123
- ]));
124
- };
125
- }
126
- });
127
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const linkRuntime_vue_vue_type_script_setup_true_lang = require("./link-runtime.vue2.js");
3
- module.exports = linkRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,77 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageInitUtil = require("../../../../utils/page-init-util.js");
4
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
5
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
6
- __name: "link-runtime",
7
- props: {
8
- pageContext: {},
9
- configure: {}
10
- },
11
- setup(__props) {
12
- const props = __props;
13
- pageInitUtil.getFormModelFields(props.pageContext, props.configure);
14
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
- const runtimeStyle = runtimeInfo.style;
16
- const runtimeClass = runtimeInfo.class;
17
- const headerStyle = runtimeInfo.headerStyle;
18
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
19
- let contentVariable = designProperty.formatting;
20
- if (!contentVariable) {
21
- const propsBase = props.configure.props.base ? props.configure.props.base : {};
22
- contentVariable = propsBase.prop;
23
- }
24
- if (!contentVariable) {
25
- contentVariable = "${page." + props.configure.uuid + "}";
26
- }
27
- const dynamicValue = Vue.computed(() => {
28
- const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
29
- return resultValue == void 0 || resultValue == null ? "" : resultValue;
30
- });
31
- let tooltipVariable = designProperty.tooltip;
32
- const tooltipValue = Vue.computed(() => {
33
- const resultValue = pageHelperUtil.formatVariableValue(props.pageContext, tooltipVariable);
34
- return resultValue == void 0 || resultValue == null ? "" : resultValue;
35
- });
36
- return (_ctx, _cache) => {
37
- const _component_el_link = Vue.resolveComponent("el-link");
38
- const _component_el_tooltip = Vue.resolveComponent("el-tooltip");
39
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
40
- return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
41
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
42
- "label-width": Vue.unref(designProperty).labelWidth,
43
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
44
- }, {
45
- label: Vue.withCtx(() => [
46
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
47
- key: 0,
48
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
49
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
50
- ]),
51
- default: Vue.withCtx(() => [
52
- Vue.createVNode(_component_el_tooltip, {
53
- disabled: !tooltipValue.value,
54
- content: tooltipValue.value
55
- }, {
56
- default: Vue.withCtx(() => [
57
- Vue.createVNode(_component_el_link, {
58
- disabled: Vue.unref(designProperty).state === "disabled",
59
- type: Vue.unref(designProperty).type,
60
- underline: Vue.unref(designProperty).underline,
61
- onClick: _cache[0] || (_cache[0] = ($event) => Vue.unref(pageHelperUtil.openLink)(_ctx.configure, _ctx.pageContext))
62
- }, {
63
- default: Vue.withCtx(() => [
64
- Vue.createTextVNode(Vue.toDisplayString(dynamicValue.value), 1)
65
- ]),
66
- _: 1
67
- }, 8, ["disabled", "type", "underline"])
68
- ]),
69
- _: 1
70
- }, 8, ["disabled", "content"])
71
- ]),
72
- _: 1
73
- }, 8, ["class", "label-width", "style"]);
74
- };
75
- }
76
- });
77
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const placeholderRuntime_vue_vue_type_script_setup_true_lang = require("./placeholder-runtime.vue2.js");
3
- module.exports = placeholderRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const _hoisted_1 = /* @__PURE__ */ Vue.createElementVNode("div", { style: { "width": "100%", "height": "100%" } }, " ", -1);
4
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
5
- __name: "placeholder-runtime",
6
- props: {
7
- pageContext: {},
8
- configure: {}
9
- },
10
- setup(__props) {
11
- const props = __props;
12
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
13
- const runtimeStyle = runtimeInfo.style;
14
- const runtimeClass = runtimeInfo.class;
15
- return (_ctx, _cache) => {
16
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
17
- return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
18
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
19
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
20
- }, {
21
- default: Vue.withCtx(() => [
22
- _hoisted_1
23
- ]),
24
- _: 1
25
- }, 8, ["class", "style"]);
26
- };
27
- }
28
- });
29
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const radioRuntime_vue_vue_type_script_setup_true_lang = require("./radio-runtime.vue2.js");
3
- module.exports = radioRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,157 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
4
- const pageInitUtil = require("../../../../utils/page-init-util.js");
5
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
6
- __name: "radio-runtime",
7
- props: {
8
- pageContext: {},
9
- configure: {}
10
- },
11
- setup(__props, { expose: __expose }) {
12
- const props = __props;
13
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
14
- let dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
15
- const dynamicModelMethod = Vue.computed({
16
- get() {
17
- return pageHelperUtil.getVariableValue(entity, dynamicFields);
18
- },
19
- set(value) {
20
- pageHelperUtil.setVariableValue(entity, dynamicFields, value);
21
- }
22
- });
23
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
24
- const runtimeStyle = runtimeInfo.style;
25
- const runtimeClass = runtimeInfo.class;
26
- const headerStyle = runtimeInfo.headerStyle;
27
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
28
- const listOptions = Vue.ref(designProperty.options ? designProperty.options : []);
29
- const cacheOptions = pageHelperUtil.getOptionDatasFromPage(props.pageContext, props.configure);
30
- if (cacheOptions.length > 0) {
31
- listOptions.value = cacheOptions;
32
- }
33
- const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
34
- const valueType = dataOrigin.optionValueSetType;
35
- let autoSets = [];
36
- if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
37
- if (dataOrigin.autoSets) {
38
- for (let obj of dataOrigin.autoSets) {
39
- if (obj.source) {
40
- autoSets.push(obj);
41
- }
42
- }
43
- }
44
- }
45
- if (props.configure && props.configure.props && props.configure.props.base && props.configure.props.base.optionProp) {
46
- autoSets.push({
47
- source: "label",
48
- target: props.configure.props.base.optionProp
49
- });
50
- }
51
- if (autoSets.length > 0) {
52
- designProperty.changeMethod = optionChange;
53
- }
54
- const monitorFields = designProperty.monitorFields;
55
- const monitorFieldInfos = [];
56
- if (monitorFields) {
57
- const preFields = [];
58
- for (let propName of monitorFields) {
59
- if (propName.startsWith("${")) {
60
- propName = propName.substring(2, propName.length - 1);
61
- const fields = propName.split(".");
62
- if (fields[0] === "page" || fields[0] === "task" || fields[0] === "data") {
63
- monitorFieldInfos.push(fields);
64
- if (!preFields.includes(fields[0])) {
65
- preFields.push(fields[0]);
66
- }
67
- }
68
- }
69
- }
70
- for (let preField of preFields) {
71
- Vue.watch(entity[preField], () => {
72
- monitorFieldChange();
73
- });
74
- }
75
- }
76
- function getMonitorFieldValues() {
77
- let values = "";
78
- for (let fieldInfo of monitorFieldInfos) {
79
- values += "_" + pageHelperUtil.getVariableValue(entity, fieldInfo);
80
- }
81
- return values;
82
- }
83
- let initMonitorValue = getMonitorFieldValues();
84
- let monitorTimeout = false;
85
- const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
86
- function monitorFieldChange() {
87
- if (monitorTimeout) {
88
- clearTimeout(monitorTimeout);
89
- }
90
- monitorTimeout = setTimeout(function() {
91
- const newValue = getMonitorFieldValues();
92
- if (newValue == initMonitorValue) {
93
- return;
94
- }
95
- initMonitorValue = newValue;
96
- pageHelperUtil.queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((error) => {
97
- console.log("查询失败!", error);
98
- });
99
- }, 200);
100
- }
101
- function optionChange(value) {
102
- let selItems = null;
103
- if (listOptions.value && value != void 0 && value != null) {
104
- selItems = listOptions.value.filter((item) => {
105
- return value === item.value;
106
- });
107
- }
108
- pageHelperUtil.autoSetAfterSelect(props.configure, props.pageContext, autoSets, selItems);
109
- }
110
- function updateOptions(newOptions) {
111
- listOptions.value = newOptions ? newOptions : [];
112
- }
113
- __expose({
114
- updateOptions
115
- });
116
- return (_ctx, _cache) => {
117
- const _component_el_radio = Vue.resolveComponent("el-radio");
118
- const _component_el_radio_group = Vue.resolveComponent("el-radio-group");
119
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
120
- return Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
121
- required: Vue.unref(designProperty).required,
122
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
123
- "label-width": Vue.unref(designProperty).labelWidth,
124
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
125
- }, {
126
- label: Vue.withCtx(() => [
127
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
128
- key: 0,
129
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
130
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
131
- ]),
132
- default: Vue.withCtx(() => [
133
- Vue.createVNode(_component_el_radio_group, {
134
- disabled: Vue.unref(designProperty).state === "disabled",
135
- size: Vue.unref(designProperty).size,
136
- onChange: Vue.unref(designProperty).changeMethod,
137
- modelValue: dynamicModelMethod.value,
138
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
139
- }, {
140
- default: Vue.withCtx(() => [
141
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(listOptions.value, (item) => {
142
- return Vue.openBlock(), Vue.createBlock(_component_el_radio, {
143
- key: item.value,
144
- value: item.value,
145
- label: item.label
146
- }, null, 8, ["value", "label"]);
147
- }), 128))
148
- ]),
149
- _: 1
150
- }, 8, ["disabled", "size", "onChange", "modelValue"])
151
- ]),
152
- _: 1
153
- }, 8, ["required", "class", "label-width", "style"]);
154
- };
155
- }
156
- });
157
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const richtextRuntime_vue_vue_type_script_setup_true_lang = require("./richtext-runtime.vue2.js");
3
- module.exports = richtextRuntime_vue_vue_type_script_setup_true_lang;
@@ -1,164 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const pageInitUtil = require("../../../../utils/page-init-util.js");
4
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
5
- require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/quill.js");
6
- ;/* empty css */
7
- require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core.js");
8
- const quill = require("../../../../../../node_modules/.pnpm/quill@2.0.2/node_modules/quill/core/quill.js");
9
- const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
10
- const _hoisted_2 = {
11
- key: 1,
12
- style: { "width": "100%", "height": "100%" },
13
- class: "amb-widget-richtext-single"
14
- };
15
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
16
- __name: "richtext-runtime",
17
- props: {
18
- pageContext: {},
19
- configure: {}
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const entity = props.pageContext.entity ? props.pageContext.entity : {};
24
- const dynamicFields = pageInitUtil.getFormModelFields(props.pageContext, props.configure);
25
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
26
- const runtimeStyle = runtimeInfo.style;
27
- const runtimeClass = runtimeInfo.class;
28
- const headerStyle = runtimeInfo.headerStyle;
29
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
30
- let contentVariable = designProperty.value;
31
- const initValue = pageHelperUtil.formatVariableValue(props.pageContext, contentVariable);
32
- const quillEditorRef = Vue.ref(null);
33
- const quill$1 = Vue.ref(null);
34
- const fileBtn = Vue.ref(null);
35
- const fontSize = ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"];
36
- const option = Vue.ref({
37
- modules: {
38
- toolbar: [
39
- ["bold", "italic", "underline", "strike"],
40
- // 加粗 斜体 下划线 删除线
41
- ["blockquote", "code-block"],
42
- // 引用
43
- [{ list: "ordered" }, { list: "bullet" }],
44
- // 有序、无序列表
45
- [{ script: "sub" }, { script: "super" }],
46
- // 上标/下标
47
- [{ indent: "-1" }, { indent: "+1" }],
48
- // 缩进
49
- [{ direction: "rtl" }],
50
- // 文本方向
51
- [{ size: fontSize }],
52
- // 字体大小
53
- [{ header: [1, 2, 3, 4, 5, 6, false] }],
54
- // 标题
55
- [{ color: [] }, { background: [] }],
56
- // 字体颜色、字体背景颜色
57
- [{ font: [] }],
58
- // 字体种类
59
- [{ align: [] }],
60
- // 对齐方式
61
- ["clean"],
62
- // 清除文本格式
63
- ["link", "image"]
64
- // 链接、图片、视频
65
- ]
66
- },
67
- theme: "snow",
68
- placeholder: designProperty.placeholder,
69
- readOnly: designProperty.state == "readonly"
70
- });
71
- function updateEditorHeight() {
72
- if (quill$1 && quill$1.value) {
73
- if (quill$1.value.container) {
74
- const parentNode = quill$1.value.container.parentNode;
75
- const parentRect = parentNode.getBoundingClientRect();
76
- const thisRect = quill$1.value.container.getBoundingClientRect();
77
- let newHeight = parentRect.height - (thisRect.top - parentRect.top);
78
- if (newHeight < 100) {
79
- newHeight = 100;
80
- }
81
- quill$1.value.container.style.height = newHeight + "px";
82
- }
83
- }
84
- }
85
- const imgHandler = (state) => {
86
- if (fileBtn.value && state) {
87
- fileBtn.value.click();
88
- }
89
- };
90
- const handleUpload = (e) => {
91
- const files = Array.prototype.slice.call(e.target.files);
92
- if (!files) {
93
- return;
94
- }
95
- const formdata = new FormData();
96
- formdata.append("file", files[0]);
97
- alert("TODO:上传图片");
98
- };
99
- Vue.onMounted(() => {
100
- quill$1.value = new quill.default(quillEditorRef.value, option.value);
101
- quill$1.value.getModule("toolbar").addHandler("image", imgHandler);
102
- quill$1.value.on("text-change", function(delta, oldDelta, source) {
103
- if (window.updateQuillTimeout) {
104
- clearTimeout(window.updateQuillTimeout);
105
- }
106
- window.updateQuillTimeout = setTimeout(function() {
107
- pageHelperUtil.setVariableValue(entity, dynamicFields, quill$1.value.root.innerHTML);
108
- console.log("new entity", entity);
109
- }, 1e3);
110
- });
111
- updateEditorHeight();
112
- });
113
- return (_ctx, _cache) => {
114
- const _component_el_form_item = Vue.resolveComponent("el-form-item");
115
- return Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
116
- key: 0,
117
- required: Vue.unref(designProperty).required,
118
- class: Vue.normalizeClass(Vue.unref(runtimeClass)),
119
- "label-width": Vue.unref(designProperty).labelWidth,
120
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle))
121
- }, {
122
- label: Vue.withCtx(() => [
123
- Vue.unref(designProperty).tittleShow ? (Vue.openBlock(), Vue.createElementBlock("div", {
124
- key: 0,
125
- style: Vue.normalizeStyle({ ...Vue.unref(headerStyle) })
126
- }, Vue.toDisplayString(Vue.unref(designProperty).title), 5)) : Vue.createCommentVNode("", true)
127
- ]),
128
- default: Vue.withCtx(() => [
129
- Vue.createElementVNode("div", _hoisted_1, [
130
- Vue.createElementVNode("div", {
131
- ref_key: "quillEditorRef",
132
- ref: quillEditorRef,
133
- style: { "width": "100%" }
134
- }, Vue.toDisplayString(Vue.unref(initValue)), 513),
135
- Vue.createElementVNode("input", {
136
- type: "file",
137
- hidden: "",
138
- accept: ".jpg,.png",
139
- ref_key: "fileBtn",
140
- ref: fileBtn,
141
- onChange: handleUpload
142
- }, null, 544)
143
- ])
144
- ]),
145
- _: 1
146
- }, 8, ["required", "class", "label-width", "style"])) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
147
- Vue.createElementVNode("div", {
148
- ref_key: "quillEditorRef",
149
- ref: quillEditorRef,
150
- style: { "width": "100%" }
151
- }, Vue.toDisplayString(Vue.unref(initValue)), 513),
152
- Vue.createElementVNode("input", {
153
- type: "file",
154
- hidden: "",
155
- accept: ".jpg,.png",
156
- ref_key: "fileBtn",
157
- ref: fileBtn,
158
- onChange: handleUpload
159
- }, null, 544)
160
- ]));
161
- };
162
- }
163
- });
164
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const selectRuntime_vue_vue_type_script_setup_true_lang = require("./select-runtime.vue2.js");
3
- module.exports = selectRuntime_vue_vue_type_script_setup_true_lang;