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
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  const runtimeClass = runtimeInfo.class;
28
28
  const headerStyle = runtimeInfo.headerStyle;
29
29
  const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
30
- const listOptions = ref(designProperty.options ? designProperty.options : []);
30
+ const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
31
31
  const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
32
32
  if (cacheOptions.length > 0) {
33
33
  listOptions.value = cacheOptions;
@@ -36,14 +36,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
37
37
  const valueType = dataOrigin.optionValueSetType;
38
38
  let autoSets = [];
39
- const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
39
+ const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
40
40
  if (valueType == "dynamicData" || valueType == "dataTable" || valueType == "service") {
41
41
  if (dataOrigin.filterType == "remote") {
42
- designProperty.filterable = true;
43
- designProperty.remote = true;
44
- designProperty.remoteShowSuffix = true;
42
+ designProperty.value.filterable = true;
43
+ designProperty.value.remote = true;
44
+ designProperty.value.remoteShowSuffix = true;
45
45
  let hisQuery = void 0;
46
- designProperty.remoteMethod = function(query) {
46
+ designProperty.value.remoteMethod = function(query) {
47
47
  if (hisQuery === query) {
48
48
  return;
49
49
  }
@@ -72,8 +72,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  target: props.configure.props.base.optionProp
73
73
  });
74
74
  }
75
- designProperty.changeMethod = optionChange;
76
- const monitorFields = designProperty.monitorFields;
75
+ designProperty.value.changeMethod = optionChange;
76
+ const monitorFields = designProperty.value.monitorFields;
77
77
  const monitorFieldInfos = [];
78
78
  if (monitorFields) {
79
79
  const preFields = [];
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
1
+ import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import { handleEvent } from "../../../../utils/events/event-util.js";
@@ -24,32 +24,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  const runtimeStyle = runtimeInfo.style;
25
25
  const runtimeClass = runtimeInfo.class;
26
26
  const headerStyle = runtimeInfo.headerStyle;
27
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
27
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
28
28
  const switchStyle = runtimeInfo.switchStyle;
29
29
  return (_ctx, _cache) => {
30
30
  const _component_el_switch = resolveComponent("el-switch");
31
31
  const _component_el_form_item = resolveComponent("el-form-item");
32
32
  return openBlock(), createBlock(_component_el_form_item, {
33
- required: unref(designProperty).required,
33
+ required: designProperty.value.required,
34
34
  class: normalizeClass(unref(runtimeClass)),
35
- "label-width": unref(designProperty).labelWidth,
35
+ "label-width": designProperty.value.labelWidth,
36
36
  style: normalizeStyle(unref(runtimeStyle))
37
37
  }, {
38
38
  label: withCtx(() => [
39
- unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
39
+ designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
40
40
  key: 0,
41
41
  style: normalizeStyle({ ...unref(headerStyle) })
42
- }, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
42
+ }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
43
43
  ]),
44
44
  default: withCtx(() => [
45
45
  createVNode(_component_el_switch, {
46
- disabled: unref(designProperty).state === "disabled",
47
- "active-value:": unref(designProperty).activeValue,
48
- "active-text": unref(designProperty).activeText,
49
- "inactive-value": unref(designProperty).inactiveValue,
50
- "inactive-text": unref(designProperty).inactiveText,
51
- width: unref(designProperty).offOnWidth,
52
- size: unref(designProperty).size,
46
+ disabled: designProperty.value.state === "disabled",
47
+ "active-value:": designProperty.value.activeValue,
48
+ "active-text": designProperty.value.activeText,
49
+ "inactive-value": designProperty.value.inactiveValue,
50
+ "inactive-text": designProperty.value.inactiveText,
51
+ width: designProperty.value.offOnWidth,
52
+ size: designProperty.value.size,
53
53
  style: normalizeStyle(unref(switchStyle)),
54
54
  modelValue: dynamicModelMethod.value,
55
55
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, createTextVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { formatVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import { handleEvent } from "../../../../utils/events/event-util.js";
@@ -15,8 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  const runtimeStyle = runtimeInfo.style;
16
16
  const runtimeClass = runtimeInfo.class;
17
17
  const headerStyle = runtimeInfo.headerStyle;
18
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
19
- let contentVariable = designProperty.formatting;
18
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
19
+ let contentVariable = designProperty.value.formatting;
20
20
  if (!contentVariable) {
21
21
  const propsBase = props.configure.props.base ? props.configure.props.base : {};
22
22
  contentVariable = propsBase.prop;
@@ -32,22 +32,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  const _component_el_tag = resolveComponent("el-tag");
33
33
  const _component_el_form_item = resolveComponent("el-form-item");
34
34
  return openBlock(), createBlock(_component_el_form_item, {
35
- required: unref(designProperty).required,
35
+ required: designProperty.value.required,
36
36
  class: normalizeClass(unref(runtimeClass)),
37
- "label-width": unref(designProperty).labelWidth,
37
+ "label-width": designProperty.value.labelWidth,
38
38
  style: normalizeStyle(unref(runtimeStyle))
39
39
  }, {
40
40
  label: withCtx(() => [
41
- unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
41
+ designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
42
42
  key: 0,
43
43
  style: normalizeStyle({ ...unref(headerStyle) })
44
- }, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
44
+ }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
45
45
  ]),
46
46
  default: withCtx(() => [
47
47
  createVNode(_component_el_tag, {
48
- size: unref(designProperty).size,
49
- closable: unref(designProperty).closable,
50
- type: unref(designProperty).type,
48
+ size: designProperty.value.size,
49
+ closable: designProperty.value.closable,
50
+ type: designProperty.value.type,
51
51
  onClose: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "remove")),
52
52
  onClick: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
53
53
  }, {
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, unref, normalizeClass, normalizeStyle, withCtx, toDisplayString, createCommentVNode } from "vue";
1
+ import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, toDisplayString, createCommentVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
4
  import { handleEvent } from "../../../../utils/events/event-util.js";
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  }
22
22
  });
23
23
  const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
24
- const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
24
+ const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
25
25
  const runtimeStyle = runtimeInfo.style;
26
26
  const runtimeClass = runtimeInfo.class;
27
27
  const headerStyle = runtimeInfo.headerStyle;
@@ -30,29 +30,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  const _component_el_form_item = resolveComponent("el-form-item");
31
31
  return openBlock(), createElementBlock("div", null, [
32
32
  createVNode(_component_el_form_item, {
33
- required: unref(designProperty).required ? true : false,
33
+ required: designProperty.value.required ? true : false,
34
34
  class: normalizeClass(unref(runtimeClass)),
35
- "label-width": unref(designProperty).labelWidth,
35
+ "label-width": designProperty.value.labelWidth,
36
36
  style: normalizeStyle(unref(runtimeStyle))
37
37
  }, {
38
38
  label: withCtx(() => [
39
- unref(designProperty).tittleShow ? (openBlock(), createElementBlock("div", {
39
+ designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
40
40
  key: 0,
41
41
  style: normalizeStyle({ ...unref(headerStyle) })
42
- }, toDisplayString(unref(designProperty).title), 5)) : createCommentVNode("", true)
42
+ }, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
43
43
  ]),
44
44
  default: withCtx(() => [
45
45
  createVNode(_component_el_input, {
46
- disabled: unref(designProperty).state === "disabled",
47
- readonly: unref(designProperty).state === "readonly",
48
- size: unref(designProperty).size,
49
- clearable: unref(designProperty).clearable,
50
- placeholder: unref(designProperty).placeholder,
46
+ disabled: designProperty.value.state === "disabled",
47
+ readonly: designProperty.value.state === "readonly",
48
+ size: designProperty.value.size,
49
+ clearable: designProperty.value.clearable,
50
+ placeholder: designProperty.value.placeholder,
51
51
  modelValue: dynamicModelMethod.value,
52
52
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
53
- rows: unref(designProperty).rows ? unref(designProperty).rows : 2,
54
- maxlength: unref(designProperty).maxLength,
55
- "show-word-limit": unref(designProperty).showInputNum,
53
+ rows: designProperty.value.rows ? designProperty.value.rows : 2,
54
+ maxlength: designProperty.value.maxLength,
55
+ "show-word-limit": designProperty.value.showInputNum,
56
56
  type: "textarea",
57
57
  onInput: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "input")),
58
58
  onChange: _cache[2] || (_cache[2] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
@@ -61,12 +61,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
61
  thisRef.value = el;
62
62
  if (el && !el.show) {
63
63
  el.show = function() {
64
- handleShowFlag.value = true;
64
+ showFlag.value = true;
65
65
  };
66
66
  }
67
67
  if (el && !el.hide) {
68
68
  el.hide = function() {
69
- handleShowFlag.value = false;
69
+ showFlag.value = false;
70
70
  };
71
71
  }
72
72
  if (el && !el.getConfigure) {
@@ -17,14 +17,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  const completeTaskParam = props.pageContext.completeTaskParam;
18
18
  const visibleBtns = ref([]);
19
19
  props.configure.items.forEach((item) => {
20
- const pageCode = props.pageContext.code;
21
- const pageVersion = props.pageContext.version;
22
- if (isVisibleBtn(item, pageCode, pageVersion)) {
20
+ if (isVisibleBtn(item)) {
23
21
  visibleBtns.value.push(item);
24
22
  }
25
23
  });
26
- function getStandardClickEvent(events, pageCode, pageVersion) {
27
- const clickEventFunObj = getClickEventFuncByType(pageCode, pageVersion, events);
24
+ function getStandardClickEvent(events) {
25
+ const clickEventFunObj = getClickEventFuncByType(props.pageContext, events, "click");
28
26
  if (clickEventFunObj) {
29
27
  const isStandardEvent = clickEventFunObj.isStandard;
30
28
  if (isStandardEvent) {
@@ -32,9 +30,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
30
  }
33
31
  }
34
32
  }
35
- function isVisibleBtn(btnConfigure, pageCode, pageVersion) {
33
+ function isVisibleBtn(btnConfigure) {
36
34
  const events = btnConfigure.runtime && btnConfigure.runtime.events ? btnConfigure.runtime.events : [];
37
- const workflowStandardEventName = getStandardClickEvent(events, pageCode, pageVersion);
35
+ const workflowStandardEventName = getStandardClickEvent(events);
38
36
  const isVisible = isVisibleWorkflowButton(
39
37
  workflowStandardEventName,
40
38
  buttonInfo,
@@ -9,7 +9,7 @@ import _sfc_main$3 from "./assemblys/common/task-informition-dialog.vue.js";
9
9
  import _sfc_main$4 from "./assemblys/common/remove-signer-dialog.vue.js";
10
10
  import eventBus from "../utils/eventBus.js";
11
11
  import { getFormData } from "../utils/api/api-util.js";
12
- import { getTaskInformitions, getRemoveSigner, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners, updateValuesWhenCloseDialog } from "../utils/events/standard-event.js";
12
+ import { getTaskInformitions, getRemoveSigner, exportFormReport, doImportFinally, doAddSigner, doCreateCopyTask, doAssign, doReturnTaskTo, doRemoveSigners, getAdditionalParamMap, updateValuesWhenCloseDialog } from "../utils/events/standard-event.js";
13
13
  import { ElMessage } from "element-plus";
14
14
  import { useI18n } from "vue-i18n";
15
15
  import { DepartmentUserTree } from "agilebuilder-ui";
@@ -334,7 +334,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
334
334
  function openDialog(configureObj) {
335
335
  const myJumpPageSetting = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
336
336
  if (myJumpPageSetting && myJumpPageSetting.jumpPageUrl) {
337
- const additionalParamMap = pageContext.value.entity.request;
337
+ const additionalParamMap = getAdditionalParamMap(pageContext);
338
338
  let dataId;
339
339
  let ids;
340
340
  if (additionalParamMap) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.0.19",
3
+ "version": "2.0.22",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -30,6 +30,7 @@
30
30
  "nprogress": "^0.2.0",
31
31
  "qrcode": "^1.5.3",
32
32
  "quill": "^2.0.1",
33
+ "quill-delta": "5.1.0",
33
34
  "uuid": "^9.0.1",
34
35
  "vue-awesome": "^4.5.0",
35
36
  "vue-codemirror": "^6.1.1",
@@ -46,7 +47,7 @@
46
47
  "@vitejs/plugin-vue-jsx": "^3.1.0",
47
48
  "@vue/eslint-config-prettier": "^8.0.0",
48
49
  "@vue/test-utils": "^2.4.4",
49
- "agilebuilder-ui": "1.0.16",
50
+ "agilebuilder-ui": "1.0.18",
50
51
  "axios": "^1.6.8",
51
52
  "cypress": "^13.6.6",
52
53
  "element-plus": "^2.6.1",
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var AttributeMap = {};
4
- exports.__exports = AttributeMap;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var Delta = { exports: {} };
4
- exports.__module = Delta;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var Op = {};
4
- exports.__exports = Op;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var OpIterator = {};
4
- exports.__exports = OpIterator;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const path = {};
3
- module.exports = path;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
4
- function getDefaultExportFromCjs(x) {
5
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
6
- }
7
- exports.commonjsGlobal = commonjsGlobal;
8
- exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- const _export_sfc = (sfc, props) => {
3
- const target = sfc.__vccOpts || sfc;
4
- for (const [key, val] of props) {
5
- target[key] = val;
6
- }
7
- return target;
8
- };
9
- module.exports = _export_sfc;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var dayjs_min = { exports: {} };
4
- exports.__module = dayjs_min;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var lodash_clonedeep = { exports: {} };
4
- exports.__module = lodash_clonedeep;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var lodash_isequal = { exports: {} };
4
- exports.__module = lodash_isequal;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var eventemitter3 = { exports: {} };
4
- exports.__module = eventemitter3;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- color: string[];
3
- };
4
- export default _default;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- const theme1 = {
3
- // 全局样式变量
4
- color: ["red", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"]
5
- // 其他样式设置...
6
- };
7
- module.exports = theme1;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- color: string[];
3
- };
4
- export default _default;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- const theme2 = {
3
- // 全局样式变量
4
- color: ["yellow", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"]
5
- // 其他样式设置...
6
- };
7
- module.exports = theme2;
@@ -1,4 +0,0 @@
1
- declare const _default: {
2
- color: string[];
3
- };
4
- export default _default;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- const theme3 = {
3
- // 全局样式变量
4
- color: ["green", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"]
5
- // 其他样式设置...
6
- };
7
- module.exports = theme3;
@@ -1,4 +0,0 @@
1
- import { default as SuperPageNew } from './views/super-page.vue';
2
- import { default as SuperPageDialogNew } from './views/super-page-dialog.vue';
3
-
4
- export { SuperPageNew, SuperPageDialogNew };
@@ -1,11 +0,0 @@
1
- /**
2
- * 设值自定义校验规则。推荐在按钮的beforeValidateForm事件中调用该方法。
3
- * @param params 事件中的params参数
4
- * @param customRules 自定义的校验规则
5
- */
6
- export declare function setCustomRules(pageContext: any, customRules: any): void;
7
- /**
8
- * 获得表单数据
9
- * @param pageContext
10
- */
11
- export declare function getData(pageContext: any): Promise<unknown>;
@@ -1,128 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const commonUtil = require("../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js");
4
- const auth = require("../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/auth.js");
5
- const request = require("../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js");
6
- const commonUtil$1 = require("../common-util.js");
7
- const standardEvent = require("../events/standard-event.js");
8
- function getData(pageContext) {
9
- const pageType = pageContext.pageType;
10
- if (pageType && pageType === "form") {
11
- console.log("获取表单数据getData--pageContext=", pageContext);
12
- const isWorkflow = pageContext.workflowCode ? true : false;
13
- if (isWorkflow) {
14
- return getWorkflowFormData(pageContext);
15
- } else {
16
- return getCommonFormData(pageContext);
17
- }
18
- } else {
19
- return new Promise((resolve, reject) => {
20
- resolve(true);
21
- });
22
- }
23
- }
24
- function getCommonFormData(pageContext) {
25
- return new Promise((resolve, reject) => {
26
- const system = pageContext.entity.system;
27
- const pageCode = pageContext.code;
28
- const pageVersion = pageContext.version;
29
- const additionalParamMap = pageContext.entity.request;
30
- const dataId = additionalParamMap ? additionalParamMap.id : null;
31
- const ids = additionalParamMap ? additionalParamMap.ids : null;
32
- const taskId = additionalParamMap ? additionalParamMap.taskId : null;
33
- const permissionPrefix = system.code + "." + pageCode;
34
- const backendUrl = commonUtil.getSystemBackendUrl(system.backendUrl);
35
- const param = {
36
- pageCode,
37
- pageVersion,
38
- tableName: pageContext.tableName,
39
- formNoRuleCode: pageContext.formNoRuleCode,
40
- id: dataId,
41
- systemCode: system.code,
42
- functionCode: permissionPrefix + ".get",
43
- tableNames: pageContext.tableNames
44
- };
45
- if (!param.id && additionalParamMap && additionalParamMap._t_ && auth.getSessionCache(additionalParamMap._t_ + "_id")) {
46
- param.id = auth.getSessionCache(additionalParamMap._t_ + "_id");
47
- }
48
- if (ids) {
49
- param["ids"] = ids;
50
- }
51
- if (pageContext.notIdInitializationList) {
52
- param["noIdAndTaskIdInitSetting"] = JSON.stringify(pageContext.notIdInitializationList);
53
- }
54
- if (additionalParamMap) {
55
- param["additionalParamMap"] = additionalParamMap;
56
- }
57
- if (pageContext.beanName) {
58
- param["beanName"] = pageContext.beanName;
59
- }
60
- if (taskId) {
61
- param["taskId"] = taskId;
62
- }
63
- const urlForView = backendUrl + "/dsc/commons/gets";
64
- request.post(urlForView, param).then((commonEntity) => {
65
- if (commonEntity) {
66
- pageContext.entity.data = commonEntity.entity;
67
- pageContext.initFormNo = commonEntity.formNo;
68
- }
69
- resolve(commonEntity);
70
- }).catch((error) => {
71
- reject(error);
72
- });
73
- });
74
- }
75
- function getWorkflowFormData(pageContext) {
76
- return new Promise((resolve, reject) => {
77
- const system = pageContext.entity.system;
78
- const pageCode = pageContext.code;
79
- const pageVersion = pageContext.version;
80
- const additionalParamMap = pageContext.entity.request;
81
- const dataId = additionalParamMap ? additionalParamMap.id : null;
82
- const ids = additionalParamMap ? additionalParamMap.ids : null;
83
- const taskId = additionalParamMap ? additionalParamMap.taskId : null;
84
- const permissionPrefix = system.code + "." + pageCode;
85
- const param = {
86
- pageCode,
87
- pageVersion,
88
- tableName: pageContext.tableName,
89
- formNoRuleCode: pageContext.formNoRuleCode,
90
- isWorkflowEntity: true,
91
- systemCode: system.code,
92
- functionCode: permissionPrefix + ".get",
93
- tableNames: pageContext.tableNames
94
- };
95
- if (ids) {
96
- param["ids"] = ids;
97
- }
98
- if (taskId) {
99
- param["taskId"] = this.taskId;
100
- } else if (dataId) {
101
- param["id"] = dataId;
102
- } else {
103
- if (additionalParamMap && additionalParamMap._t_ && auth.getSessionCache(additionalParamMap._t_ + "_id")) {
104
- param["id"] = auth.getSessionCache(additionalParamMap._t_ + "_id");
105
- }
106
- if (pageContext.notIdInitializationList) {
107
- param["noIdAndTaskIdInitSetting"] = JSON.stringify(pageContext.notIdInitializationList);
108
- }
109
- }
110
- if (additionalParamMap) {
111
- param["additionalParamMap"] = additionalParamMap;
112
- }
113
- if (pageContext.beanName) {
114
- param["beanName"] = pageContext.beanName;
115
- }
116
- const baseUrl = commonUtil$1.getBaseUrl(system);
117
- const urlForView = baseUrl + "/dsc/workflow-commons/gets";
118
- request.post(urlForView, param).then((commonEntity) => {
119
- pageContext.definitionId = commonEntity.definitionId;
120
- pageContext.entity.task = commonEntity.taskParamMap;
121
- standardEvent.dealCompleteTaskParam(commonEntity, true, pageContext);
122
- resolve(commonEntity);
123
- }).catch((error) => {
124
- reject(error);
125
- });
126
- });
127
- }
128
- exports.getData = getData;