super-page-runtime 2.3.16-sit2 → 2.3.16-sit3

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.
@@ -811,7 +811,7 @@ function me(e2) {
811
811
  const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
812
812
  let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
813
813
  if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
814
- const p2 = t2.code, d2 = ce(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
814
+ const p2 = t2.code, d2 = ce(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx", pageCode: t2.code };
815
815
  return c.post(r2, m2);
816
816
  }
817
817
  function fe(e2, t2) {
@@ -1,7 +1,7 @@
1
1
  import t from "./richtext-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(t, [["__scopeId", "data-v-dfbd71ac"]]);
4
+ const r = e(t, [["__scopeId", "data-v-aae764b5"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,31 +1,31 @@
1
1
  import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as i, onBeforeUnmount as o, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as g, normalizeStyle as p, normalizeClass as m, unref as f, withCtx as h, createElementVNode as v, toDisplayString as y } from "vue";
2
- import { getFormModelFields as b } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as x, formatVariableValue as C, setVariableValue as w, getVariableValue as k } from "../../../../utils/page-helper-util.js";
2
+ import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
+ import { getSizeConfig as b, formatVariableValue as C, setVariableValue as w, getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
4
  import q from "quill";
5
5
  import "quill/dist/quill.snow.css";
6
6
  import { handleAfterInitEvent as T, handleFormEvent as E } from "../../../../utils/events/event-util.js";
7
7
  import A from "agilebuilder-ui/src/utils/request";
8
8
  import { $t as L } from "../../../../utils/i18n-util.js";
9
- import { getBaseUrl as R, addRequiredClassUtil as j } from "../../../../utils/common-util.js";
10
- const H = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: S2 }) {
11
- const B = e2, N = t(null), _ = B.pageContext.entity ? B.pageContext.entity : {}, M = b(B.pageContext, B.configure), U = B.configure.runtime ? B.configure.runtime : {}, W = U.style, $ = U.class, D = U.headerStyle, F = U.titleExceedStyle, P = t(U.props ? U.props : {});
12
- let z = x(B.pageContext, B.configure);
13
- z && z.fixHeight && (W.height || (W.height = z.fixHeight + "px"));
14
- let I = P.value.value;
9
+ import { getBaseUrl as R, addRequiredClassUtil as S } from "../../../../utils/common-util.js";
10
+ const j = { style: { width: "100%", height: "100%" } }, H = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
11
+ const B = e2, N = t(null), _ = B.pageContext.entity ? B.pageContext.entity : {}, M = x(B.pageContext, B.configure), U = B.configure.runtime ? B.configure.runtime : {}, W = U.style, $ = U.class, z = U.headerStyle, D = U.titleExceedStyle, F = t(U.props ? U.props : {});
12
+ let P = b(B.pageContext, B.configure);
13
+ P && P.fixHeight && (W.height || (W.height = P.fixHeight + "px"));
14
+ let I = F.value.value;
15
15
  const O = C(B.pageContext, I), G = t(null);
16
16
  let J = null;
17
17
  t(null);
18
- let K = P.value.state;
18
+ let K = F.value.state;
19
19
  function Q(e3) {
20
20
  return "readonly" == e3 || "disabled" == e3;
21
21
  }
22
- const V = Q(K), X = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["small", false, "large", "huge"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: V ? "" : P.value.placeholder, readOnly: V });
23
- l(P.value, () => {
24
- const e3 = P.value.state;
22
+ const V = Q(K), X = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["small", false, "large", "huge"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: V ? "" : F.value.placeholder, readOnly: V });
23
+ l(F.value, () => {
24
+ const e3 = F.value.state;
25
25
  if (null != e3 && e3 !== K) {
26
26
  K = e3;
27
27
  const t2 = Q(K);
28
- J && (J.enable(!t2), J.root.dataset.placeholder = t2 ? "" : P.value.placeholder);
28
+ J && (J.enable(!t2), J.root.dataset.placeholder = t2 ? "" : F.value.placeholder);
29
29
  }
30
30
  });
31
31
  const Y = t([]), Z = t(false), ee = t(null), te = t(null), le = t(null);
@@ -58,7 +58,7 @@ const H = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtex
58
58
  }
59
59
  return n(() => {
60
60
  var _a;
61
- J = new q(G.value, X.value);
61
+ J = new q(G.value, X.value), J.root.style.fontSize = "16px";
62
62
  let e3 = O;
63
63
  e3 = e3.replace(/<img data-uuid="(.*?)"/g, (e4, t3) => {
64
64
  const l2 = ie(t3), n2 = B.pageContext.backendUrl;
@@ -109,15 +109,15 @@ const H = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtex
109
109
  });
110
110
  }), o(() => {
111
111
  G.value && G.value.removeEventListener("focusout", oe), ne && ne.removeEventListener("click", ae);
112
- }), S2({ addRequiredClass: function() {
113
- N.value = j();
112
+ }), H2({ addRequiredClass: function() {
113
+ N.value = S();
114
114
  } }), (e3, t2) => {
115
115
  const l2 = a("el-form-item"), n2 = a("el-image-viewer");
116
- return u(), r(s, null, [c(l2, { required: P.value.required, class: m(f($) + (N.value ? " " + N.value : "")), "label-width": P.value.labelWidth, style: p(f(W)) }, { label: h(() => [P.value.tittleShow ? (u(), r("div", { key: 0, style: p({ ...f(D), ...f(F) }) }, y(f(L)(P.value.title)), 5)) : g("", true)]), default: h(() => [v("div", H, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]), Z.value ? (u(), d(n2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
116
+ return u(), r(s, null, [c(l2, { required: F.value.required, class: m(f($) + (N.value ? " " + N.value : "")), "label-width": F.value.labelWidth, style: p(f(W)) }, { label: h(() => [F.value.tittleShow ? (u(), r("div", { key: 0, style: p({ ...f(z), ...f(D) }) }, y(f(L)(F.value.title)), 5)) : g("", true)]), default: h(() => [v("div", j, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]), Z.value ? (u(), d(n2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
117
117
  Z.value = false;
118
118
  }), "url-list": Y.value }, null, 8, ["url-list"])) : g("", true)], 64);
119
119
  };
120
120
  } });
121
121
  export {
122
- S as default
122
+ H as default
123
123
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as u, createElementBlock as n, openBlock as r, createVNode as i, normalizeStyle as s, normalizeClass as p, unref as m, withCtx as f, createCommentVNode as c, createBlock as g, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as u, openBlock as r, createVNode as i, normalizeStyle as s, normalizeClass as p, unref as m, withCtx as f, createCommentVNode as g, createBlock as c, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { setVariableValue as C, getVariableValue as h } from "../../../../utils/page-helper-util.js";
3
+ import { setVariableValue as h, getVariableValue as C } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
5
5
  import k from "../common/title-suffix-element.vue.js";
6
6
  import { $t as R } from "../../../../utils/i18n-util.js";
@@ -8,19 +8,19 @@ import { addRequiredClassUtil as j } from "../../../../utils/common-util.js";
8
8
  const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
9
  const q = e2, I = t(null), z = q.pageContext.entity ? q.pageContext.entity : {};
10
10
  let S = y(q.pageContext, q.configure);
11
- const V = l({ get: () => h(z, S), set(e3) {
12
- C(z, S, e3), null != e3 && "" !== e3 && (I.value = "");
13
- } }), B = q.configure.runtime ? q.configure.runtime : {}, D = t(B.props ? B.props : {}), E = B.style, F = B.class, L = B.headerStyle, N = B.titleExceedStyle, T = t(null), U = t(null), W = t(null);
11
+ const V = l({ get: () => C(z, S), set(e3) {
12
+ h(z, S, e3), null != e3 && "" !== e3 && (I.value = "");
13
+ } }), B = q.configure.runtime ? q.configure.runtime : {}, D = t(B.props ? B.props : {}), E = B.style, F = B.class, N = B.headerStyle, T = B.titleExceedStyle, U = t(null), W = t(null), A = t(null);
14
14
  return a(() => {
15
15
  o(() => {
16
16
  const e3 = V.value;
17
- w(e3, q.pageContext, q.configure, { formItemRef: T.value, componentRef: U.value, titleRef: W.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
17
+ w(e3, q.pageContext, q.configure, { formItemRef: U.value, componentRef: W.value, titleRef: A.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
18
18
  });
19
19
  }), _2({ addRequiredClass: function() {
20
20
  I.value = j();
21
21
  } }), (e3, t2) => {
22
- const l2 = u("el-input"), a2 = u("el-form-item");
23
- return r(), n("div", null, [i(a2, { ref_key: "formItemRef", ref: T, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), n("div", { key: 0, ref_key: "titleRef", ref: W, style: s({ ...m(L), ...m(N) }) }, [D.value.prefixType ? (r(), g(k, { key: 0, pageContext: e3.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), n(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : c("", true)]), default: f(() => [i(l2, { ref_key: "componentRef", ref: U, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => V.value = e4), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxLength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
22
+ const l2 = n("el-input"), a2 = n("el-form-item");
23
+ return r(), u("div", null, [i(a2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e3.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(l2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => V.value = e4), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
24
24
  };
25
25
  } });
26
26
  export {
package/dist/es/style.css CHANGED
@@ -524,7 +524,7 @@
524
524
  }
525
525
  .amb-widget-tools-parent[data-v-03be39c3] .amb-widget-container-tool > .el-form-item {
526
526
  margin-bottom: 0;
527
- }[data-v-dfbd71ac] .el-form-item__content {
527
+ }[data-v-aae764b5] .el-form-item__content {
528
528
  height: 100% !important;
529
529
  }.el-form-item[data-v-96fc65d8] {
530
530
  margin-bottom: 0px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.16-sit2",
3
+ "version": "2.3.16-sit3",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -49,7 +49,7 @@
49
49
  "@vitejs/plugin-vue-jsx": "^3.1.0",
50
50
  "@vue/eslint-config-prettier": "^8.0.0",
51
51
  "@vue/test-utils": "^2.4.4",
52
- "agilebuilder-ui": "1.1.58-sit5",
52
+ "agilebuilder-ui": "1.1.58-sit6",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",