super-page-runtime 2.3.42 → 2.3.43-cdn1

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.
@@ -1,36 +1,35 @@
1
- import { defineComponent as e, ref as o, computed as t, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as a, normalizeClass as u, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
1
+ import { defineComponent as e, ref as o, computed as n, onMounted as i, nextTick as t, resolveComponent as r, createBlock as s, openBlock as a, unref as l, normalizeClass as p, normalizeStyle as u, createSlots as c, withCtx as g, createElementVNode as f, createElementBlock as d, Fragment as m, renderList as y, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
2
2
  import { ElCard as b } from "element-plus";
3
3
  import { SuperIcon as h } from "agilebuilder-ui";
4
- import { ArrowUp as k, ArrowDown as T } from "@element-plus/icons-vue";
5
- import w from "../../object-render.vue.js";
6
- import { $t as j } from "../../../../utils/i18n-util.js";
7
- import { handleAfterInitEvent as S } from "../../../../utils/events/event-util.js";
8
- import { getValueFromVariable as V } from "../../../../utils/page-helper-util.js";
9
- const _ = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
4
+ import { ArrowUp as k, ArrowDown as w } from "@element-plus/icons-vue";
5
+ import T from "../../object-render.vue.js";
6
+ import { $t as S } from "../../../../utils/i18n-util.js";
7
+ import { handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
8
+ import { getValueFromVariable as V, caculateShowCondition as _ } from "../../../../utils/page-helper-util.js";
9
+ const R = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: R2 }) {
10
10
  var _a, _b;
11
- const R = e2, z = o("");
12
- if (R.configure.props.base.dynamicTexts && R.configure.props.base.dynamicTexts.length > 0) {
11
+ const z = e2, D = o("");
12
+ if (z.configure.props.base.dynamicTexts && z.configure.props.base.dynamicTexts.length > 0) {
13
13
  let e3 = "";
14
- R.configure.props.base.dynamicTexts.forEach((o2) => {
15
- e3 += V(R.pageContext.entity, o2);
16
- }), z.value = e3;
17
- } else z.value = j(R.configure.props.base.title);
18
- R.configure.items || (R.configure.items = []);
19
- const D = t(() => {
14
+ z.configure.props.base.dynamicTexts.forEach((o2) => {
15
+ e3 += V(z.pageContext.entity, o2);
16
+ }), D.value = e3;
17
+ } else D.value = S(z.configure.props.base.title);
18
+ z.configure.items || (z.configure.items = []);
19
+ const E = n(() => {
20
20
  var _a2;
21
- return [true, void 0].includes((_a2 = R.configure.props) == null ? void 0 : _a2.isCollapse);
22
- }), E = o(null), q = o(!((_a = R.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = R.configure.props) == null ? void 0 : _b.isCollapseShow)), A = R.configure.runtime ? R.configure.runtime : {}, B = A.style, F = A.class, G = A.headerStyle, H = A.contentStyle, I = () => D.value && (q.value = !q.value);
21
+ return [true, void 0].includes((_a2 = z.configure.props) == null ? void 0 : _a2.isCollapse);
22
+ }), q = o(null), A = o(!((_a = z.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = z.configure.props) == null ? void 0 : _b.isCollapseShow)), B = z.configure.runtime ? z.configure.runtime : {}, F = B.style, G = B.class, H = B.headerStyle, I = B.contentStyle, J = () => E.value && (A.value = !A.value);
23
23
  return i(() => {
24
- n(() => {
25
- S(null, R.pageContext, R.configure, { componentRef: E.value, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
24
+ var _a2, _b2;
25
+ ((_b2 = (_a2 = z.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.openCardConditions) && z.configure.props.base.openCardConditions.length > 0 && (_(z.pageContext, z.configure.props.base.openCardConditions) ? A.value = true : A.value = false), t(() => {
26
+ j(null, z.pageContext, z.configure, { componentRef: q.value, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
26
27
  });
27
- }), _2({ test: function() {
28
- R.configure.props.title = "teee";
29
- } }), (o2, t2) => {
28
+ }), R2({ isCardContextShow: A }), (o2, n2) => {
30
29
  const i2 = r("el-link");
31
- return s(), l(a(b), { ref_key: "thisRef", ref: E, style: p(a(B)), "data-collapse": String(q.value), class: u(["yx-card-box-view-main", a(F)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(a(H)) }, [(s(true), m(y, null, d(e2.configure.items, (o3, t3) => (s(), l(w, { key: o3.uuid, pageContext: e2.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e2.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: I }, [g("div", { class: "yx-card-box-view-title", style: p(a(G)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (s(), l(a(h), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(z.value), 1)], 4), D.value ? (s(), l(i2, { key: 0, underline: false, icon: q.value ? a(k) : a(T), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
30
+ return a(), s(l(b), { ref_key: "thisRef", ref: q, style: u(l(F)), "data-collapse": String(A.value), class: p(["yx-card-box-view-main", l(G)]) }, c({ default: g(() => [f("div", { class: "yx-card-box-view-context", style: u(l(I)) }, [(a(true), d(m, null, y(e2.configure.items, (o3, n3) => (a(), s(T, { key: o3.uuid, pageContext: e2.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e2.configure.props.base.tittleShow ? { name: "header", fn: g(() => [f("div", { class: "yx-card-box-view-header", onClick: J }, [f("div", { class: "yx-card-box-view-title", style: u(l(H)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (a(), s(l(h), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(D.value), 1)], 4), E.value ? (a(), s(i2, { key: 0, underline: false, icon: A.value ? l(k) : l(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
32
31
  };
33
32
  } });
34
33
  export {
35
- _ as default
34
+ R as default
36
35
  };
@@ -1,4 +1,7 @@
1
1
  import e from "./container-runtime.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = r(e, [["__scopeId", "data-v-473c727a"]]);
2
5
  export {
3
- e as default
6
+ t as default
4
7
  };
@@ -1,18 +1,27 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, createBlock as l, openBlock as i, withCtx as r, createCommentVNode as s, createVNode as a, normalizeStyle as g, unref as f, createElementBlock as p, Fragment as c, renderList as y, normalizeClass as m } from "vue";
2
- import x from "../../object-render.vue.js";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as l, resolveComponent as o, createBlock as u, openBlock as i, withCtx as s, withDirectives as a, createCommentVNode as r, createElementBlock as f, createVNode as c, normalizeStyle as p, unref as g, Fragment as d, renderList as y, vShow as m, normalizeClass as v } from "vue";
2
+ import { ArrowLeft as x, ArrowRight as C } from "@element-plus/icons-vue";
3
+ import k from "../../object-render.vue.js";
3
4
  import "../../../../utils/global-refs.js";
4
- import { handleAfterInitEvent as d } from "../../../../utils/events/event-util.js";
5
- const C = e({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
- const C2 = e2, _ = t(null), k = C2.configure.runtime ? C2.configure.runtime : {}, v = k.leftStyle, h = k.rightStyle, j = k.style, R = k.class;
5
+ import { handleAfterInitEvent as _ } from "../../../../utils/events/event-util.js";
6
+ const h = e({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: h2 }) {
7
+ const A = e2, L = t(null), R = A.configure.runtime ? A.configure.runtime : {}, b = R.leftStyle, j = R.rightStyle, S = R.style, w = R.class, D = t(true), I = t(true);
7
8
  return n(() => {
8
- o(() => {
9
- d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
9
+ l(() => {
10
+ _(null, A.pageContext, A.configure, { componentRef: L.value, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
10
11
  });
11
- }), (t2, n2) => {
12
- const o2 = u("el-aside"), d2 = u("el-main"), C3 = u("el-container");
13
- return i(), l(C3, { ref_key: "thisRef", ref: _ }, { default: r(() => [e2.configure.props.useLeft ? (i(), l(o2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(d2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e2.configure.props.useRight ? (i(), l(o2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
12
+ }), h2({ closeLeftAside: function() {
13
+ D.value = false;
14
+ }, openLeftAside: function() {
15
+ D.value = true;
16
+ }, closeRightAside: function() {
17
+ I.value = false;
18
+ }, openRightAside: function() {
19
+ I.value = true;
20
+ } }), (t2, n2) => {
21
+ const l2 = o("el-aside"), _2 = o("el-icon"), h3 = o("el-main"), A2 = o("el-container");
22
+ return i(), u(A2, { ref_key: "thisRef", ref: L }, { default: s(() => [e2.configure.props.useLeft ? a((i(), u(l2, { key: 0, style: p(g(b)) }, { default: s(() => [(i(true), f(d, null, y(e2.configure.leftAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, D.value]]) : r("", true), e2.configure.props.useLeft && e2.configure.props.showLeftAsideCollapseIcon ? (i(), f("div", { key: 1, class: "aside-collapse-btn aside-collapse-btn--left", onClick: n2[0] || (n2[0] = (e3) => D.value = !D.value) }, [c(_2, null, { default: s(() => [D.value ? (i(), u(g(x), { key: 0 })) : (i(), u(g(C), { key: 1 }))]), _: 1 })])) : r("", true), c(h3, { style: p(g(S)), class: v(g(w)) }, { default: s(() => [(i(true), f(d, null, y(e2.configure.items, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e2.configure.props.useRight ? a((i(), u(l2, { key: 2, style: p(g(j)) }, { default: s(() => [(i(true), f(d, null, y(e2.configure.rightAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, I.value]]) : r("", true)]), _: 1 }, 512);
14
23
  };
15
24
  } });
16
25
  export {
17
- C as default
26
+ h as default
18
27
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as i, openBlock as a, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as g, rowClick as m, rowDblClick as v, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
- import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
- import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as C, getSizeConfig as x } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as y, getDefaultValue as D } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
6
  import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
@@ -11,17 +11,17 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
11
11
  var _a;
12
12
  const $ = e2, j = $.pageContext;
13
13
  let z = $.configure;
14
- const V = $.configure.runtime ? $.configure.runtime : {};
15
- j.isTest ? V.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), V.value = z.runtime ? z.runtime : {});
16
- const G = O(j.code, j.version, z.uuid), H = j.entity.data, L = z.code ? z.code : G, U = k(j), B = V && V.events ? V.events : [], q = t([]), J = j.superGridItems, K = J ? J[z.uuid] : null, Q = V.style, W = V.class, X = $.pageContext.entity ? $.pageContext.entity : {};
17
- let Y = D($.configure, L), Z = _(j.backendUrl, j.isTest);
14
+ const B = $.configure.runtime ? $.configure.runtime : {};
15
+ j.isTest ? B.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), B.value = z.runtime ? z.runtime : {});
16
+ const V = O(j.code, j.version, z.uuid), G = j.entity.data, H = z.code ? z.code : V, L = k(j), U = B && B.events ? B.events : [], q = t([]), J = j.superGridItems, K = J ? J[z.uuid] : null, Q = B.style, W = B.class, X = $.pageContext.entity ? $.pageContext.entity : {};
17
+ let Y = y($.configure, H), Z = _(j.backendUrl, j.isTest);
18
18
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
19
19
  const ee = t(false);
20
20
  let te = t(0);
21
21
  const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
22
22
  oe.value = function() {
23
23
  var _a2, _b, _c, _d;
24
- const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
24
+ const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Le, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
25
25
  return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
26
26
  const t2 = z.props ? z.props.dataOrigin : {};
27
27
  if (t2.treeTable) {
@@ -38,23 +38,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
38
38
  }();
39
39
  const ie = t(null);
40
40
  function ae() {
41
- ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(G));
41
+ ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(V));
42
42
  }
43
43
  function ue(e3, t2) {
44
- if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = U, t2.extraParam.entityMap = j.entity.data, t2.extraParam.contextMap = j.entity.context, t2.extraParam.taskMap = j.entity.task, !(z.props && z.props.base && z.props.base.showOperation)) {
44
+ if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = V, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = L, t2.extraParam.entityMap = j.entity.data, t2.extraParam.contextMap = j.entity.context, t2.extraParam.taskMap = j.entity.task, !(z.props && z.props.base && z.props.base.showOperation)) {
45
45
  let e4 = t2.hiddenColumns;
46
46
  e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
47
47
  }
48
48
  t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
49
- let n2 = C(j, z);
50
- n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Be;
49
+ let n2 = x(j, z);
50
+ n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Ue;
51
51
  }
52
52
  function re() {
53
53
  if (z.props && z.props.otherSettings) {
54
54
  if (z.props.otherSettings.sourceQueryTableData && z.props.otherSettings.timeToInitializeSubTable && z.props.otherSettings.timeToInitializeSubTable.length > 0) {
55
55
  let e3 = false;
56
- if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
57
- const t2 = H[L];
56
+ if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !G.id && !G.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
57
+ const t2 = G[H];
58
58
  (!t2 || t2.length <= 0) && (e3 = true);
59
59
  }
60
60
  return e3;
@@ -66,7 +66,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
66
66
  return j.entity.data;
67
67
  }
68
68
  function ce() {
69
- return x(X, Y);
69
+ return C(X, Y);
70
70
  }
71
71
  let pe, de;
72
72
  function fe(e3, t2) {
@@ -76,11 +76,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
76
76
  }
77
77
  function be(e3) {
78
78
  e3 || (e3 = oe.value), function(e4) {
79
- var _a2;
79
+ var _a2, _b;
80
80
  e4 || (e4 = oe.value);
81
81
  const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
82
82
  if (t3 && null != t3) {
83
- let n3 = t3.get(L);
83
+ let n3 = t3.get(H);
84
84
  if (!n3) {
85
85
  const e5 = t3.get("all_fields");
86
86
  e5 && (n3 = [e5]);
@@ -88,25 +88,25 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
88
88
  e4.validateRules = n3 || null;
89
89
  }
90
90
  if (n2 && null != n2) {
91
- let t4 = n2.get(L);
91
+ let t4 = n2.get(H);
92
92
  t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
93
93
  }
94
94
  e4.operations || (e4.operations = {});
95
95
  const o2 = function() {
96
96
  let e5 = [];
97
97
  if (we(null, null, null, null, null, true, "canAdd")) {
98
- const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: Te, isStandard: true };
98
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Te, isStandard: true };
99
99
  e5.push(t4);
100
100
  }
101
- if (xe(null, null, null, null, null, true)) {
102
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Ce, isStandard: true };
101
+ if (Ce(null, null, null, null, null, true)) {
102
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
103
103
  e5.push(t4);
104
104
  }
105
105
  return R(j, z, e5, he), e5;
106
106
  }();
107
107
  ((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = me);
108
- e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete");
109
- }(e3), c(e3, B, j, z);
108
+ e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete"), ((_b = z.props.base.showCopyBtnCondition) == null ? void 0 : _b.length) > 0 ? e4.subTableCanCopy = w($.pageContext, $.configure.props.base.showCopyBtnCondition) : e4.subTableCanCopy = true;
109
+ }(e3), c(e3, U, j, z);
110
110
  const t2 = j.customEvents;
111
111
  t2 && (e3.eventCallBack = t2), ee.value = true, ge();
112
112
  }
@@ -127,19 +127,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
127
127
  ae();
128
128
  }), P.$on("_refreshChildData_" + e3, (e4) => {
129
129
  !function(e5) {
130
- Ge(e5), de = setTimeout(() => {
131
- ie.value && (ie.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
130
+ Ve(e5), de = setTimeout(() => {
131
+ ie.value && (ie.value.refreshChildData(V, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
132
132
  }, 10);
133
133
  }(e4);
134
- }), P.$on(G + "-pickFileDone", (e4) => {
134
+ }), P.$on(V + "-pickFileDone", (e4) => {
135
135
  ie.value.pickFileDone(e4);
136
- }), P.$on(G + "-scanDone", (e4) => {
136
+ }), P.$on(V + "-scanDone", (e4) => {
137
137
  ie.value.scanDone(e4);
138
138
  }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
139
139
  }), o(() => {
140
140
  pe && clearTimeout(pe), de && clearTimeout(de);
141
141
  const e3 = z.uuid;
142
- P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
142
+ P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(V + "-pickFileDone"), P.$off(V + "-scanDone");
143
143
  });
144
144
  const ve = t({});
145
145
  function he(e3) {
@@ -159,8 +159,8 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
159
159
  const e4 = u2.get("all_fields");
160
160
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
161
161
  }
162
- if (true === s2 && L && r2 && null !== r2) {
163
- let e4 = r2.get(L);
162
+ if (true === s2 && H && r2 && null !== r2) {
163
+ let e4 = r2.get(H);
164
164
  e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[a2] && false === e4[a2] && (s2 = false);
165
165
  }
166
166
  return s2;
@@ -169,15 +169,15 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
169
169
  let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
170
170
  return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
171
171
  }
172
- function xe(e3, t2, n2, o2, l2, i2) {
172
+ function Ce(e3, t2, n2, o2, l2, i2) {
173
173
  const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
174
174
  let r2 = true;
175
175
  if (a2 && null !== a2) {
176
176
  const e4 = a2.get("all_fields");
177
177
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
178
178
  }
179
- if (true === r2 && L && u2 && null !== u2) {
180
- let e4 = u2.get(L);
179
+ if (true === r2 && H && u2 && null !== u2) {
180
+ let e4 = u2.get(H);
181
181
  if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) r2 = true;
182
182
  else {
183
183
  const t3 = function(e5) {
@@ -189,23 +189,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
189
189
  }
190
190
  return r2;
191
191
  }
192
- function Ce(e3, t2, n2, o2, l2, i2) {
193
- let a2 = xe(0, 0, n2, 0, 0, i2);
192
+ function xe(e3, t2, n2, o2, l2, i2) {
193
+ let a2 = Ce(0, 0, n2, 0, 0, i2);
194
194
  return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
195
195
  }
196
- function De(e3, t2, n2, o2, l2) {
197
- ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
196
+ function ye(e3, t2, n2, o2, l2) {
197
+ ie.value.createRow(V, {}, { getDefaultValueFunc: D }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
198
198
  qe(l2);
199
199
  });
200
200
  }
201
- function ye(e3, t2, n2, o2, l2, i2, a2, u2) {
202
- ie.value.deleteRow(l2, G, false, a2, u2, n2);
201
+ function De(e3, t2, n2, o2, l2, i2, a2, u2) {
202
+ ie.value.deleteRow(l2, V, false, a2, u2, n2);
203
203
  }
204
204
  function Pe(e3) {
205
205
  T(X, Y, e3);
206
206
  }
207
207
  function Ie(e3) {
208
- j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
208
+ j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[H] || (j.subTablePageInfo[H] = {}), j.subTablePageInfo[H].title = z.title ? z.title : z.code, j.subTablePageInfo[H].pageSize = e3;
209
209
  }
210
210
  function Re(e3) {
211
211
  const t2 = e3.key, n2 = e3.value;
@@ -250,23 +250,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
250
250
  function ze(e3) {
251
251
  j.entity.data = e3;
252
252
  }
253
- function Ve() {
254
- return x(X, Y);
253
+ function Be() {
254
+ return C(X, Y);
255
255
  }
256
- function Ge(e3) {
256
+ function Ve(e3) {
257
257
  return T(X, Y, e3);
258
258
  }
259
- function He(e3) {
259
+ function Ge(e3) {
260
260
  return A(e3, null, $);
261
261
  }
262
- function Le(e3) {
262
+ function He(e3) {
263
263
  return M(e3, e3.cellStyle, $);
264
264
  }
265
- function Ue(e3) {
265
+ function Le(e3) {
266
266
  const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
267
267
  return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
268
268
  }
269
- function Be({ row: e3, editConditions: t2 }) {
269
+ function Ue({ row: e3, editConditions: t2 }) {
270
270
  let n2 = true;
271
271
  return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
272
272
  }
@@ -276,9 +276,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
276
276
  }
277
277
  return function(e3) {
278
278
  const t2 = re();
279
- t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), be(e3));
279
+ t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Be(), be(e3));
280
280
  }(oe.value), N2({ createRow: function() {
281
- return ie.value.createRow(G);
281
+ return ie.value.createRow(V);
282
282
  }, getSelections: function() {
283
283
  return q.value;
284
284
  }, getSelectionIds: function() {
@@ -292,8 +292,8 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
292
292
  return z;
293
293
  }, validatorSunTableListData: function() {
294
294
  return ie.value.validatorSunTableListData();
295
- }, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
296
- if (ie.value) return ie.value.getTableSelectOptions(G);
295
+ }, getValue: Be, setValue: Ve, getTableSelectOptions: function() {
296
+ if (ie.value) return ie.value.getTableSelectOptions(V);
297
297
  }, dynamicControlTableEdit: function(e3, t2, n2) {
298
298
  ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
299
299
  }, doLayout: function(e3) {
@@ -318,7 +318,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
318
318
  return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
319
319
  }, addRequiredClass: function(e3, t2, n2) {
320
320
  var _a2;
321
- (_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
321
+ (_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3, V, t2, n2);
322
322
  }, getColumns: function() {
323
323
  var _a2;
324
324
  return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
@@ -327,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
327
327
  (_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
328
328
  } }), (e3, t2) => {
329
329
  const n2 = l("super-grid");
330
- return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
330
+ return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(V), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
331
331
  };
332
332
  } });
333
333
  export {
@@ -2,7 +2,7 @@ import t from "./richtext-runtime.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const r = e(t, [["__scopeId", "data-v-faf97d0c"]]);
5
+ const r = e(t, [["__scopeId", "data-v-69991d69"]]);
6
6
  export {
7
7
  r as default
8
8
  };