super-page-runtime 2.1.57 → 2.1.62

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 (49) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +17 -14
  2. package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
  3. package/dist/es/components/runtime/utils/events/event-util.js +4 -0
  4. package/dist/es/components/runtime/utils/events/standard-event.js +105 -37
  5. package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
  6. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  7. package/dist/es/components/runtime/utils/table-utils.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/table-utils.js +36 -1
  9. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +12 -2
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -1
  11. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +14 -2
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +16 -2
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +11 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +13 -2
  15. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +4 -2
  16. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +11 -1
  17. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +11 -1
  18. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +11 -1
  19. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +11 -1
  20. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +14 -2
  21. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +11 -1
  22. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +30 -10
  23. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +9 -1
  24. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +13 -30
  25. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
  26. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +29 -2
  27. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +24 -2
  28. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +31 -2
  29. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -2
  30. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -2
  31. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +26 -2
  32. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +29 -2
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +27 -2
  34. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -5
  35. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +29 -2
  36. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +26 -4
  38. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +31 -5
  39. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +22 -3
  40. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +27 -2
  41. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +18 -1
  42. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -4
  43. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +25 -2
  44. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +29 -2
  45. package/dist/es/components/runtime/views/super-page.vue.js +3 -3
  46. package/dist/es/i18n/langs/cn.js +3 -1
  47. package/dist/es/i18n/langs/en.js +3 -1
  48. package/dist/es/style.css +1 -1
  49. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, nextTick, 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
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  import { $t } from "../../../../utils/i18n-util.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "switch-runtime",
@@ -28,7 +28,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  const switchStyle = runtimeInfo.switchStyle;
29
29
  const dynamicModelMethod = computed({
30
30
  get() {
31
- debugger;
32
31
  let val = getVariableValue(entity, dynamicFields);
33
32
  if (val !== void 0 && val !== null) {
34
33
  val = val + "";
@@ -36,14 +35,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
35
  return val;
37
36
  },
38
37
  set(value) {
39
- debugger;
40
38
  setVariableValue(entity, dynamicFields, value);
41
39
  }
42
40
  });
41
+ const formItemRef = ref(null);
42
+ const componentRef = ref(null);
43
+ const titleRef = ref(null);
44
+ onMounted(() => {
45
+ nextTick(() => {
46
+ const value = dynamicModelMethod.value;
47
+ handleAfterInitEvent(
48
+ value,
49
+ props.pageContext,
50
+ props.configure,
51
+ {
52
+ formItemRef: formItemRef.value,
53
+ componentRef: componentRef.value,
54
+ titleRef: titleRef.value,
55
+ value,
56
+ entity: props.pageContext.entity.data,
57
+ pageData: props.pageContext.entity.page
58
+ }
59
+ );
60
+ });
61
+ });
43
62
  return (_ctx, _cache) => {
44
63
  const _component_el_switch = resolveComponent("el-switch");
45
64
  const _component_el_form_item = resolveComponent("el-form-item");
46
65
  return openBlock(), createBlock(_component_el_form_item, {
66
+ ref_key: "formItemRef",
67
+ ref: formItemRef,
47
68
  required: designProperty.value.required,
48
69
  class: normalizeClass(unref(runtimeClass)),
49
70
  "label-width": designProperty.value.labelWidth,
@@ -52,11 +73,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
73
  label: withCtx(() => [
53
74
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
54
75
  key: 0,
76
+ ref_key: "titleRef",
77
+ ref: titleRef,
55
78
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
56
79
  }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
57
80
  ]),
58
81
  default: withCtx(() => [
59
82
  createVNode(_component_el_switch, {
83
+ ref_key: "componentRef",
84
+ ref: componentRef,
60
85
  disabled: designProperty.value.state === "disabled",
61
86
  "active-value": designProperty.value.activeValue,
62
87
  "active-text": designProperty.value.activeText,
@@ -1,7 +1,7 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, createTextVNode } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, createTextVNode } from "vue";
2
2
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
4
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  import { $t } from "../../../../utils/i18n-util.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "tag-runtime",
@@ -67,10 +67,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
67
  }
68
68
  handleFormEvent($event, props.pageContext, props.configure, "remove");
69
69
  }
70
+ const formItemRef = ref(null);
71
+ const titleRef = ref(null);
72
+ onMounted(() => {
73
+ nextTick(() => {
74
+ const value = dynamicValues.value;
75
+ handleAfterInitEvent(
76
+ value,
77
+ props.pageContext,
78
+ props.configure,
79
+ {
80
+ formItemRef: formItemRef.value,
81
+ titleRef: titleRef.value,
82
+ value,
83
+ entity: props.pageContext.entity.data,
84
+ pageData: props.pageContext.entity.page
85
+ }
86
+ );
87
+ });
88
+ });
70
89
  return (_ctx, _cache) => {
71
90
  const _component_el_tag = resolveComponent("el-tag");
72
91
  const _component_el_form_item = resolveComponent("el-form-item");
73
92
  return openBlock(), createBlock(_component_el_form_item, {
93
+ ref_key: "formItemRef",
94
+ ref: formItemRef,
74
95
  required: designProperty.value.required,
75
96
  class: normalizeClass(unref(runtimeClass)),
76
97
  "label-width": designProperty.value.labelWidth,
@@ -79,6 +100,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
100
  label: withCtx(() => [
80
101
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
81
102
  key: 0,
103
+ ref_key: "titleRef",
104
+ ref: titleRef,
82
105
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
83
106
  }, toDisplayString(unref($t)(designProperty.value.title)), 5)) : createCommentVNode("", true)
84
107
  ]),
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed, ref, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
1
+ import { defineComponent, computed, ref, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, normalizeStyle, withCtx, createBlock, Fragment, createTextVNode, 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
- import { handleFormEvent } from "../../../../utils/events/event-util.js";
4
+ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
5
5
  import _sfc_main$1 from "../common/title-suffix-element.vue.js";
6
6
  import { $t } from "../../../../utils/i18n-util.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -28,11 +28,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  const runtimeClass = runtimeInfo.class;
29
29
  const headerStyle = runtimeInfo.headerStyle;
30
30
  const titleExceedStyle = runtimeInfo.titleExceedStyle;
31
+ const formItemRef = ref(null);
32
+ const componentRef = ref(null);
33
+ const titleRef = ref(null);
34
+ onMounted(() => {
35
+ nextTick(() => {
36
+ const value = dynamicModelMethod.value;
37
+ handleAfterInitEvent(
38
+ value,
39
+ props.pageContext,
40
+ props.configure,
41
+ {
42
+ formItemRef: formItemRef.value,
43
+ componentRef: componentRef.value,
44
+ titleRef: titleRef.value,
45
+ value,
46
+ entity: props.pageContext.entity.data,
47
+ pageData: props.pageContext.entity.page
48
+ }
49
+ );
50
+ });
51
+ });
31
52
  return (_ctx, _cache) => {
32
53
  const _component_el_input = resolveComponent("el-input");
33
54
  const _component_el_form_item = resolveComponent("el-form-item");
34
55
  return openBlock(), createElementBlock("div", null, [
35
56
  createVNode(_component_el_form_item, {
57
+ ref_key: "formItemRef",
58
+ ref: formItemRef,
36
59
  required: designProperty.value.required ? true : false,
37
60
  class: normalizeClass(unref(runtimeClass)),
38
61
  "label-width": designProperty.value.labelWidth,
@@ -41,6 +64,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
64
  label: withCtx(() => [
42
65
  designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
43
66
  key: 0,
67
+ ref_key: "titleRef",
68
+ ref: titleRef,
44
69
  style: normalizeStyle({ ...unref(headerStyle), ...unref(titleExceedStyle) })
45
70
  }, [
46
71
  designProperty.value.prefixType ? (openBlock(), createBlock(_sfc_main$1, {
@@ -54,6 +79,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
79
  ]),
55
80
  default: withCtx(() => [
56
81
  createVNode(_component_el_input, {
82
+ ref_key: "componentRef",
83
+ ref: componentRef,
57
84
  disabled: designProperty.value.state === "disabled",
58
85
  readonly: designProperty.value.state === "readonly",
59
86
  size: designProperty.value.size,
@@ -408,6 +408,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
408
408
  } else {
409
409
  const myJumpPageSetting = configureObj && configureObj["props"] && configureObj["props"].linkPage ? configureObj["props"].linkPage : null;
410
410
  if (myJumpPageSetting && myJumpPageSetting.jumpPageUrl) {
411
+ if (myJumpPageSetting.isNewPage !== false && myJumpPageSetting.isNewPage !== true) {
412
+ myJumpPageSetting.isNewPage = true;
413
+ }
411
414
  const additionalParamMap = getAdditionalParamMap(pageContext);
412
415
  const isNeedId = ((_a = parentConfigureObj.value.props.linkPage) == null ? void 0 : _a.isNeedId) ? true : false;
413
416
  console.log(
@@ -449,7 +452,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
449
452
  const loginName = getUsername();
450
453
  return new Promise((resolve, reject) => {
451
454
  if (loginName) {
452
- debugger;
453
455
  if ((jumpMode === "popup" || isMobile) && parentPageContext.value.systemCode !== popPageSetting.customSystem) {
454
456
  const systemCode = popPageSetting.customSystem;
455
457
  imatrixUiStore.dispatch("getCurrentUserPermissions", { loginName, systemCode }).then(() => {
@@ -528,7 +530,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
528
530
  });
529
531
  }
530
532
  function closeFunc(params) {
531
- debugger;
532
533
  const jumpMode = params.jumpMode;
533
534
  if (jumpMode && jumpMode === "popup" || isMobile && jumpMode === "refresh") {
534
535
  closeDialog(params);
@@ -537,7 +538,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
537
538
  }
538
539
  }
539
540
  function closeDialog(params) {
540
- debugger;
541
541
  const closeEventName = jumpPageSetting.value.closeEvent;
542
542
  const isRefreshWhenClosePopup = jumpPageSetting.value.isRefreshWhenClosePopup;
543
543
  let dataModel;
@@ -47,7 +47,9 @@ const cn = {
47
47
  formatMismatch: "{label}格式不匹配",
48
48
  overMaxLength: "{label}最多只能输入{value}字符",
49
49
  limitMinLength: "{label}至少输入{value}字符",
50
- flowNotStart: "流程未提交"
50
+ flowNotStart: "流程未提交",
51
+ pleaseInputOpinion: "请输入意见",
52
+ opinion: "意见"
51
53
  }
52
54
  };
53
55
  export {
@@ -47,7 +47,9 @@ const en = {
47
47
  formatMismatch: "{label} Format mismatch",
48
48
  overMaxLength: "{label} can only input a maximum of {value} characters",
49
49
  limitMinLength: "Enter at least {value} characters for {label}",
50
- flowNotStart: "Workflow Not Started"
50
+ flowNotStart: "Workflow Not Started",
51
+ pleaseInputOpinion: "Please input opinion",
52
+ opinion: "Opinion"
51
53
  }
52
54
  };
53
55
  export {
package/dist/es/style.css CHANGED
@@ -1,3 +1,3 @@
1
- .el-form-item[data-v-a0860ff0] {
1
+ .el-form-item[data-v-96fc65d8] {
2
2
  margin-bottom: 0px;
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.57",
3
+ "version": "2.1.62",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.0.89",
51
+ "agilebuilder-ui": "1.0.90",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",