super-page-runtime 2.3.40-sit2 → 2.3.41-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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +151 -139
- package/dist/es/components/runtime/utils/events/event-util.js +234 -222
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +483 -504
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +48 -48
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -46
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -8
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +53 -52
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +10 -10
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as n, createVNode as i, createTextVNode as p, toDisplayString as r } from "vue";
|
|
2
2
|
import { packageTemplateFiles as s } from "../../../utils/common-util.js";
|
|
3
3
|
import { ElMessage as m } from "element-plus";
|
|
4
4
|
const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
|
|
@@ -7,7 +7,7 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
|
|
|
7
7
|
function w(e3) {
|
|
8
8
|
let t2, a2, l2 = e3;
|
|
9
9
|
const o2 = l2.indexOf(c), u2 = l2.indexOf(d);
|
|
10
|
-
return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), l2 = l2.replace(a2, "")), w(l2)) : h.value;
|
|
10
|
+
return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), h.value, l2 = l2.replace(a2, "")), w(l2)) : h.value;
|
|
11
11
|
}
|
|
12
12
|
function N(e3) {
|
|
13
13
|
x("export", f.configure, e3);
|
|
@@ -17,16 +17,18 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
|
|
|
17
17
|
}
|
|
18
18
|
return a(() => {
|
|
19
19
|
C.templateFiles && C.templateFiles.length > 0 ? b.value = s(C.templateFiles, f.pageContext, f.configure) : C.templateUuid && C.templateName && b.value.push({ templateUuid: C.templateUuid, templateName: C.templateName }), b.value.forEach((e3) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
e3 && e3.templateName && (e3.templateName = function(e4) {
|
|
21
|
+
const t2 = w(e4);
|
|
22
|
+
return t2.forEach((t3) => {
|
|
23
|
+
const a2 = c + t3 + d;
|
|
24
|
+
let l2;
|
|
25
|
+
-1 !== e4.indexOf(a2) && Object.prototype.hasOwnProperty.call(y, t3) && (l2 = y[t3] ? y[t3] : "", e4 = e4.replace(a2, l2));
|
|
26
|
+
}), e4;
|
|
27
|
+
}(e3.templateName));
|
|
26
28
|
}), b.value && 0 !== b.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), x("close")), 1 === (b == null ? void 0 : b.value.length) ? (N(b.value[0]), x("close")) : v.value = true;
|
|
27
29
|
}), (e3, t2) => {
|
|
28
30
|
const a2 = l("el-table-column"), s2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
|
|
29
|
-
return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default:
|
|
31
|
+
return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: n(() => [i(m2, { data: b.value, style: { width: "100%" } }, { default: n(() => [i(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: n((e4) => [p(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), i(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: n((t3) => [i(s2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: n(() => [p(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 1 }, 8, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
|
|
30
32
|
};
|
|
31
33
|
} });
|
|
32
34
|
export {
|
package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js
CHANGED
|
@@ -27,7 +27,7 @@ const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dial
|
|
|
27
27
|
p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
|
|
28
28
|
});
|
|
29
29
|
var l3;
|
|
30
|
-
} }, { default: u(() => [s(y2)]), _:
|
|
30
|
+
} }, { default: u(() => [s(y2)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
31
31
|
};
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
@@ -26,9 +26,9 @@ const _ = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
|
|
|
26
26
|
});
|
|
27
27
|
}), _2({ test: function() {
|
|
28
28
|
R.configure.props.title = "teee";
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
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(
|
|
29
|
+
} }), (o2, t2) => {
|
|
30
|
+
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"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js
CHANGED
|
@@ -11,9 +11,9 @@ const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {
|
|
|
11
11
|
o(() => {
|
|
12
12
|
j(null, _2.pageContext, _2.configure, { componentRef: b.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
13
13
|
});
|
|
14
|
-
}), (
|
|
15
|
-
const
|
|
16
|
-
return u(), i(
|
|
14
|
+
}), (t2, n2) => {
|
|
15
|
+
const o2 = l("SuperIcon"), j2 = l("el-collapse-item"), _3 = l("el-collapse");
|
|
16
|
+
return u(), i(_3, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => s(h) ? h.value = e3 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e2.configure.items, (t3, n3) => (u(), i(j2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(o2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n4) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -8,9 +8,9 @@ const C = e({ __name: "container-runtime", props: { pageContext: {}, configure:
|
|
|
8
8
|
o(() => {
|
|
9
9
|
d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
|
|
10
10
|
});
|
|
11
|
-
}), (
|
|
12
|
-
const
|
|
13
|
-
return i(), l(
|
|
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);
|
|
14
14
|
};
|
|
15
15
|
} });
|
|
16
16
|
export {
|
|
@@ -19,6 +19,7 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
19
19
|
B.value = l2 ?? 0, R(n2 || i2 || false, e3);
|
|
20
20
|
}
|
|
21
21
|
} catch (e3) {
|
|
22
|
+
console.error(e3);
|
|
22
23
|
}
|
|
23
24
|
}, R = (e3, t2) => {
|
|
24
25
|
var _a;
|
|
@@ -55,6 +56,7 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
55
56
|
})();
|
|
56
57
|
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
57
58
|
} catch (e3) {
|
|
59
|
+
console.error(e3);
|
|
58
60
|
}
|
|
59
61
|
});
|
|
60
62
|
}, 100);
|
|
@@ -15,9 +15,9 @@ const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} },
|
|
|
15
15
|
s(() => {
|
|
16
16
|
v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
|
-
}), (
|
|
19
|
-
const
|
|
20
|
-
return o(), i(
|
|
18
|
+
}), (t2, n2) => {
|
|
19
|
+
const s2 = l("el-col"), C2 = l("el-row");
|
|
20
|
+
return o(), i(C2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e2.configure.items, (t3, n3) => c((o(), i(s2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -15,9 +15,9 @@ const P = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
|
|
|
15
15
|
o(() => {
|
|
16
16
|
C(null, P2.pageContext, P2.configure, "afterFormLoad", { componentRef: R.value, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
|
-
}), (
|
|
19
|
-
const
|
|
20
|
-
return l(), n("div", null, [r(
|
|
18
|
+
}), (t2, i2) => {
|
|
19
|
+
const o2 = s("el-form");
|
|
20
|
+
return l(), n("div", null, [r(o2, { ref_key: "thisRef", ref: R, "label-width": p(S).labelWidth, "label-position": O.value, size: p(S).componentSize, "require-asterisk-position": h.value, style: u(_.value), class: a(p(w)) }, { default: f(() => [p(S).formTitle ? (l(), n("div", { key: 0, class: "amb-widget-form-title", style: u(z.value) }, g(p(S).formTitle), 5)) : m("", true), (l(true), n(c, null, d(e2.configure.items, (t3, i3) => (l(), y(v, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "require-asterisk-position", "style", "class"])]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as
|
|
2
|
-
import { handleAfterInitEvent as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as r, openBlock as i, normalizeStyle as a, normalizeClass as s, unref as l } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as c } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getSystemFrontendUrl as u } from "agilebuilder-ui/src/utils/common-util.js";
|
|
4
4
|
const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2, { expose: g2 }) {
|
|
5
5
|
const p = e2, m = t(null), d = p.configure.runtime ? p.configure.runtime : {}, y = d.style, w = d.class, h = t();
|
|
@@ -26,7 +26,7 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
26
26
|
t2(n3);
|
|
27
27
|
} else n2(new Error("System not found"));
|
|
28
28
|
}).catch((e4) => {
|
|
29
|
-
n2(e4);
|
|
29
|
+
console.error("Failed to load page for iframe:", e4), n2(e4);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -35,11 +35,11 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
35
35
|
}
|
|
36
36
|
return n(() => {
|
|
37
37
|
o(() => {
|
|
38
|
-
|
|
38
|
+
c(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
|
|
39
39
|
});
|
|
40
40
|
}), g2({ changeIframeSrc: b, changeIframeSrcByPage: v, getPagePathByCode: P, refreshIframe: function() {
|
|
41
41
|
m.value && m.value.contentWindow.location.reload();
|
|
42
|
-
} }), (e3, t2) => (
|
|
42
|
+
} }), (e3, t2) => (i(), r("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: s(["amb-widget-container-iframe", l(w)]), style: a(l(y)) }, null, 14, f));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
g as default
|
|
@@ -86,9 +86,9 @@ const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
86
86
|
_.configure.items.forEach((t2) => {
|
|
87
87
|
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
88
|
}), I.value = [...new Set(n2)];
|
|
89
|
-
} }), (
|
|
90
|
-
const
|
|
91
|
-
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue":
|
|
89
|
+
} }), (n2, t2) => {
|
|
90
|
+
const o2 = i("el-button");
|
|
91
|
+
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => A.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(d, null, m(_.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (l(), c(o2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
2
|
import d from "qrcode";
|
|
3
3
|
import v from "jsbarcode";
|
|
4
4
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
12
12
|
let k = y(q.pageContext, q.configure);
|
|
13
13
|
const A = t({ get: () => x(N, k), set(e3) {
|
|
14
14
|
h(N, k, e3);
|
|
15
|
-
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ =
|
|
15
|
+
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
|
|
16
16
|
function F(e3) {
|
|
17
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,15 +22,16 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
22
22
|
function L(e3) {
|
|
23
23
|
var t2;
|
|
24
24
|
"QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
|
|
25
|
-
e4
|
|
25
|
+
e4 ? console.error(e4) : $.value = t3;
|
|
26
26
|
})) : function(e4) {
|
|
27
27
|
try {
|
|
28
28
|
v(I.value, e4, { format: Q.value });
|
|
29
29
|
} catch (e5) {
|
|
30
|
+
console.error("生成条形码时发生错误:", e5);
|
|
30
31
|
}
|
|
31
32
|
}(e3);
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return a(() => {
|
|
34
35
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
35
36
|
o(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
36
37
|
null != e4 && function() {
|
|
@@ -38,15 +39,15 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
38
39
|
V.value.forEach((t3) => {
|
|
39
40
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
40
41
|
}), e5 && J(function(e6, t3) {
|
|
41
|
-
const
|
|
42
|
-
return e6.replace(
|
|
42
|
+
const r2 = /\$\{(\w+)\}/g;
|
|
43
|
+
return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
|
|
43
44
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
44
45
|
}();
|
|
45
46
|
});
|
|
46
47
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/component/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
47
48
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
48
49
|
t2.forEach((e4) => {
|
|
49
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5,
|
|
50
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
|
|
50
51
|
if (null != e5) {
|
|
51
52
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
52
53
|
e6 && J(e6);
|
|
@@ -54,12 +55,13 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
54
55
|
}));
|
|
55
56
|
});
|
|
56
57
|
}).catch((e3) => {
|
|
58
|
+
console.error("获取条码规则失败:", e3);
|
|
57
59
|
})), A.value && L(A.value);
|
|
58
60
|
}), D2({ getValue: function() {
|
|
59
61
|
return x(N, k);
|
|
60
62
|
}, setValue: F }), (e3, t2) => {
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
+
const r2 = l("el-form-item");
|
|
64
|
+
return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
63
65
|
};
|
|
64
66
|
} });
|
|
65
67
|
export {
|
|
@@ -284,7 +284,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
284
284
|
}
|
|
285
285
|
n(() => {
|
|
286
286
|
const e3 = Xe();
|
|
287
|
-
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
287
|
+
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle && Y.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
288
288
|
se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
289
289
|
}), H.$on(de + "_close-dialog-get-entity", () => {
|
|
290
290
|
H.$emit(de + "_close-super-dialog");
|
|
@@ -21,7 +21,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
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:
|
|
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 };
|
|
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) {
|
|
@@ -47,7 +47,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
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
49
|
let n2 = C(j, z);
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
50
|
+
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Be;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
53
|
if (z.props && z.props.otherSettings) {
|
|
@@ -76,6 +76,7 @@ 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
80
|
e4 || (e4 = oe.value);
|
|
80
81
|
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
81
82
|
if (t3 && null != t3) {
|
|
@@ -92,18 +93,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
92
93
|
}
|
|
93
94
|
e4.operations || (e4.operations = {});
|
|
94
95
|
const o2 = function() {
|
|
95
|
-
let e5 = []
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
e5.push(
|
|
96
|
+
let e5 = [];
|
|
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 };
|
|
99
|
+
e5.push(t4);
|
|
99
100
|
}
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
e5.push(
|
|
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 };
|
|
103
|
+
e5.push(t4);
|
|
103
104
|
}
|
|
104
|
-
return R(j, z, e5,
|
|
105
|
+
return R(j, z, e5, he), e5;
|
|
105
106
|
}();
|
|
106
|
-
|
|
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");
|
|
107
109
|
}(e3), c(e3, B, j, z);
|
|
108
110
|
const t2 = j.customEvents;
|
|
109
111
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
@@ -111,6 +113,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
111
113
|
function ge() {
|
|
112
114
|
j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
|
|
113
115
|
}
|
|
116
|
+
function me() {
|
|
117
|
+
return w($.pageContext, z.props.base.showOperationCondition);
|
|
118
|
+
}
|
|
114
119
|
n(() => {
|
|
115
120
|
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
116
121
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
@@ -122,7 +127,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
122
127
|
ae();
|
|
123
128
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
124
129
|
!function(e5) {
|
|
125
|
-
|
|
130
|
+
Ge(e5), de = setTimeout(() => {
|
|
126
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);
|
|
127
132
|
}, 10);
|
|
128
133
|
}(e4);
|
|
@@ -136,16 +141,16 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
136
141
|
const e3 = z.uuid;
|
|
137
142
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
143
|
});
|
|
139
|
-
const
|
|
140
|
-
function
|
|
144
|
+
const ve = t({});
|
|
145
|
+
function he(e3) {
|
|
141
146
|
if (!e3) return;
|
|
142
|
-
return
|
|
147
|
+
return ve.value[e3.uuid] = e3, Se;
|
|
143
148
|
}
|
|
144
|
-
function
|
|
145
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 =
|
|
149
|
+
function Se(e3, t2, n2, o2, l2, i2) {
|
|
150
|
+
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], r2 = z;
|
|
146
151
|
u2.props.base.tableUuid = r2.uuid, S(null, j, u2, "click", a2);
|
|
147
152
|
}
|
|
148
|
-
function
|
|
153
|
+
function we(e3, t2, n2, o2, l2, i2, a2) {
|
|
149
154
|
a2 || (a2 = "canAdd");
|
|
150
155
|
if (!w($.pageContext, z.props.base.showOperationCondition)) return false;
|
|
151
156
|
const u2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
|
|
@@ -160,11 +165,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
160
165
|
}
|
|
161
166
|
return s2;
|
|
162
167
|
}
|
|
163
|
-
function
|
|
164
|
-
let a2 =
|
|
168
|
+
function Te(e3, t2, n2, o2, l2, i2) {
|
|
169
|
+
let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
|
|
165
170
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
166
171
|
}
|
|
167
|
-
function
|
|
172
|
+
function xe(e3, t2, n2, o2, l2, i2) {
|
|
168
173
|
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
169
174
|
let r2 = true;
|
|
170
175
|
if (a2 && null !== a2) {
|
|
@@ -184,94 +189,94 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
184
189
|
}
|
|
185
190
|
return r2;
|
|
186
191
|
}
|
|
187
|
-
function
|
|
188
|
-
let a2 =
|
|
192
|
+
function Ce(e3, t2, n2, o2, l2, i2) {
|
|
193
|
+
let a2 = xe(0, 0, n2, 0, 0, i2);
|
|
189
194
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
190
195
|
}
|
|
191
|
-
function
|
|
196
|
+
function De(e3, t2, n2, o2, l2) {
|
|
192
197
|
ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
193
|
-
|
|
198
|
+
qe(l2);
|
|
194
199
|
});
|
|
195
200
|
}
|
|
196
|
-
function
|
|
201
|
+
function ye(e3, t2, n2, o2, l2, i2, a2, u2) {
|
|
197
202
|
ie.value.deleteRow(l2, G, false, a2, u2, n2);
|
|
198
203
|
}
|
|
199
|
-
function
|
|
204
|
+
function Pe(e3) {
|
|
200
205
|
T(X, Y, e3);
|
|
201
206
|
}
|
|
202
|
-
function
|
|
207
|
+
function Ie(e3) {
|
|
203
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;
|
|
204
209
|
}
|
|
205
|
-
function
|
|
210
|
+
function Re(e3) {
|
|
206
211
|
const t2 = e3.key, n2 = e3.value;
|
|
207
212
|
j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
|
|
208
213
|
}
|
|
209
|
-
function
|
|
214
|
+
function Oe(e3) {
|
|
210
215
|
const t2 = j.code + "_";
|
|
211
216
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
212
217
|
}
|
|
213
|
-
function
|
|
218
|
+
function _e(e3) {
|
|
214
219
|
const t2 = j.entity.data;
|
|
215
220
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
216
221
|
}
|
|
217
|
-
function
|
|
222
|
+
function ke(e3, t2) {
|
|
218
223
|
if (void 0 !== t2) {
|
|
219
224
|
q.value = e3;
|
|
220
225
|
p(j, z, { selection: e3, row: t2 });
|
|
221
226
|
}
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function Ae(e3) {
|
|
224
229
|
q.value = e3;
|
|
225
230
|
d(j, z, { selection: e3 });
|
|
226
231
|
}
|
|
227
|
-
function
|
|
232
|
+
function Me(e3) {
|
|
228
233
|
f(j, z, { newSelection: e3 });
|
|
229
234
|
}
|
|
230
|
-
function
|
|
235
|
+
function Ee(e3, t2, n2, o2) {
|
|
231
236
|
b(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
237
|
}
|
|
233
|
-
function
|
|
238
|
+
function Ne(e3, t2, n2, o2) {
|
|
234
239
|
g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
240
|
}
|
|
236
|
-
function
|
|
241
|
+
function Fe(e3, t2, n2) {
|
|
237
242
|
m(j, z, { row: e3, column: t2, event: n2 });
|
|
238
243
|
}
|
|
239
|
-
function
|
|
244
|
+
function $e(e3, t2, n2) {
|
|
240
245
|
v(j, z, { row: e3, column: t2, event: n2 });
|
|
241
246
|
}
|
|
242
|
-
function
|
|
247
|
+
function je(e3, t2) {
|
|
243
248
|
h(j, z, { column: e3, event: t2 });
|
|
244
249
|
}
|
|
245
|
-
function
|
|
250
|
+
function ze(e3) {
|
|
246
251
|
j.entity.data = e3;
|
|
247
252
|
}
|
|
248
|
-
function
|
|
253
|
+
function Ve() {
|
|
249
254
|
return x(X, Y);
|
|
250
255
|
}
|
|
251
|
-
function
|
|
256
|
+
function Ge(e3) {
|
|
252
257
|
return T(X, Y, e3);
|
|
253
258
|
}
|
|
254
|
-
function
|
|
259
|
+
function He(e3) {
|
|
255
260
|
return A(e3, null, $);
|
|
256
261
|
}
|
|
257
|
-
function
|
|
262
|
+
function Le(e3) {
|
|
258
263
|
return M(e3, e3.cellStyle, $);
|
|
259
264
|
}
|
|
260
|
-
function
|
|
265
|
+
function Ue(e3) {
|
|
261
266
|
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
262
267
|
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
263
268
|
}
|
|
264
|
-
function
|
|
269
|
+
function Be({ row: e3, editConditions: t2 }) {
|
|
265
270
|
let n2 = true;
|
|
266
271
|
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
267
272
|
}
|
|
268
|
-
function
|
|
273
|
+
function qe(e3) {
|
|
269
274
|
var _a2;
|
|
270
275
|
(_a2 = ie.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
|
|
271
276
|
}
|
|
272
277
|
return function(e3) {
|
|
273
278
|
const t2 = re();
|
|
274
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
279
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), be(e3));
|
|
275
280
|
}(oe.value), N2({ createRow: function() {
|
|
276
281
|
return ie.value.createRow(G);
|
|
277
282
|
}, getSelections: function() {
|
|
@@ -287,7 +292,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
287
292
|
return z;
|
|
288
293
|
}, validatorSunTableListData: function() {
|
|
289
294
|
return ie.value.validatorSunTableListData();
|
|
290
|
-
}, getValue:
|
|
295
|
+
}, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
|
|
291
296
|
if (ie.value) return ie.value.getTableSelectOptions(G);
|
|
292
297
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
293
298
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
@@ -308,7 +313,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
308
313
|
}, setCurrentRowIndex: function(e3) {
|
|
309
314
|
var _a2;
|
|
310
315
|
(_a2 = ie.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
|
|
311
|
-
}, setScrollTopByRowIndex:
|
|
316
|
+
}, setScrollTopByRowIndex: qe, getTableData: function() {
|
|
312
317
|
var _a2;
|
|
313
318
|
return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
|
|
314
319
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
@@ -322,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
322
327
|
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
323
328
|
} }), (e3, t2) => {
|
|
324
329
|
const n2 = l("super-grid");
|
|
325
|
-
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:
|
|
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)]);
|
|
326
331
|
};
|
|
327
332
|
} });
|
|
328
333
|
export {
|
|
@@ -81,7 +81,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
81
81
|
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
82
82
|
var _a;
|
|
83
83
|
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
84
|
-
} }), (
|
|
84
|
+
} }), (t2, n2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (l(), o(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
85
85
|
} });
|
|
86
86
|
export {
|
|
87
87
|
f as default
|