super-page-runtime 2.2.0 → 2.2.1
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/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
- package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
- package/dist/es/components/runtime/utils/barcode-util.js +1 -2
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
- package/dist/es/components/runtime/utils/common-util.js +7 -14
- package/dist/es/components/runtime/utils/events/event-util.js +97 -115
- package/dist/es/components/runtime/utils/events/print-label.js +20 -21
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
- package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
- package/dist/es/components/runtime/utils/global-refs.js +7 -14
- package/dist/es/components/runtime/utils/i18n-util.js +1 -2
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +65 -69
- package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +4 -8
- package/dist/es/components/runtime/utils/tree-utils.js +13 -15
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +171 -182
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +74 -74
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u,
|
|
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
2
|
import x from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
4
|
import { handleAfterInitEvent as d } from "../../../../utils/events/event-util.js";
|
|
@@ -10,7 +10,7 @@ const C = e({ __name: "container-runtime", props: { pageContext: {}, configure:
|
|
|
10
10
|
});
|
|
11
11
|
}), (e3, t2) => {
|
|
12
12
|
const n2 = u("el-aside"), o2 = u("el-main"), d2 = u("el-container");
|
|
13
|
-
return
|
|
13
|
+
return i(), l(d2, { ref_key: "thisRef", ref: _ }, { default: r(() => [e3.configure.props.useLeft ? (i(), l(n2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(o2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? (i(), l(n2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
|
|
14
14
|
};
|
|
15
15
|
} });
|
|
16
16
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as s, resolveComponent as l,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as s, resolveComponent as l, createBlock as i, openBlock as o, normalizeClass as a, normalizeStyle as u, unref as r, withCtx as f, createElementBlock as p, Fragment as g, renderList as m, withDirectives as c, createVNode as y, vShow as x } from "vue";
|
|
2
2
|
import d from "../../object-render.vue.js";
|
|
3
3
|
import { PageDimensions as C } from "../../../../utils/interfaces/page-design-types.js";
|
|
4
4
|
import { handleAfterInitEvent as v } from "../../../../utils/events/event-util.js";
|
|
@@ -17,7 +17,7 @@ const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} },
|
|
|
17
17
|
});
|
|
18
18
|
}), (e3, t2) => {
|
|
19
19
|
const n2 = l("el-col"), s2 = l("el-row");
|
|
20
|
-
return
|
|
20
|
+
return o(), i(s2, { 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(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as i, nextTick as l, resolveComponent as o, createElementBlock as r, openBlock as u, createVNode as s, normalizeClass as n, normalizeStyle as a, unref as p, withCtx as c, createCommentVNode as m, toDisplayString as f, Fragment as g, renderList as d, createBlock as y } from "vue";
|
|
2
2
|
import b from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
4
|
import "agilebuilder-ui/src/utils/common-util";
|
|
@@ -17,7 +17,7 @@ const x = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
|
|
|
17
17
|
});
|
|
18
18
|
}), (e3, t2) => {
|
|
19
19
|
const i2 = o("el-form");
|
|
20
|
-
return
|
|
20
|
+
return u(), r("div", null, [s(i2, { ref_key: "thisRef", ref: w, "label-width": p(j).labelWidth, "label-position": p(j).labelPosition, size: p(j).componentSize, style: a(h.value), class: n(p(_)) }, { default: c(() => [p(j).formTitle ? (u(), r("div", { key: 0, class: "amb-widget-form-title", style: a(k.value) }, f(p(j).formTitle), 5)) : m("", true), (u(true), r(g, null, d(e3.configure.items, (t3, i3) => (u(), y(b, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as r,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as r, createElementBlock as i, openBlock as o, normalizeStyle as s, normalizeClass as a, unref as u } from "vue";
|
|
2
2
|
import "../../../../utils/global-refs.js";
|
|
3
3
|
import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2) {
|
|
@@ -7,7 +7,7 @@ const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
7
7
|
r(() => {
|
|
8
8
|
l(null, p2.pageContext, p2.configure, { componentRef: c.value, entity: p2.pageContext.entity.data, pageData: p2.pageContext.entity.page });
|
|
9
9
|
});
|
|
10
|
-
}), (e3, t2) => (
|
|
10
|
+
}), (e3, t2) => (o(), i("iframe", { ref_key: "thisRef", ref: c, src: e3.configure.props.src, class: a(["amb-widget-container-iframe", u(x)]), style: s(u(m)) }, null, 14, f));
|
|
11
11
|
} });
|
|
12
12
|
export {
|
|
13
13
|
p as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createBlock as a, openBlock as i, unref as l, normalizeClass as u, normalizeStyle as r, withCtx as c, createElementBlock as p, Fragment as s, renderList as g, createElementVNode as f, createCommentVNode as m, toDisplayString as d } from "vue";
|
|
2
2
|
import { ElTabs as b, ElTabPane as y } from "element-plus";
|
|
3
3
|
import x from "../../object-render.vue.js";
|
|
4
4
|
import { SuperIcon as C } from "agilebuilder-ui";
|
|
@@ -34,7 +34,7 @@ const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
34
34
|
t2.code && e3.push(document.querySelector("." + t2.code));
|
|
35
35
|
}), v(null, V2.pageContext, V2.configure, { componentRef: _.value, tabsDom: e3, entity: V2.pageContext.entity.data, pageData: V2.pageContext.entity.page });
|
|
36
36
|
});
|
|
37
|
-
}), (e3, t2) => (
|
|
37
|
+
}), (e3, t2) => (i(), a(l(b), { ref_key: "thisRef", ref: _, modelValue: k.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => k.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: r(l(N)), class: u(l(R)), onTabClick: E, onTabChange: O, onTabRemove: S, onTabAdd: q, onEdit: A }, { default: c(() => [(i(true), p(s, null, g(e3.configure.items, (t3, n2) => (i(), a(l(y), { label: t3.label, name: t3.index }, { label: c(() => [f("span", { class: u(t3.code) }, [t3.iconType && t3.iconValue ? (i(), a(l(C), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : m("", true), f("span", { style: r(l(D)) }, d(l(h)(t3.label)), 5)], 2)]), default: c(() => [f("div", null, [(i(true), p(s, null, g(t3.items, (t4, n3) => (i(), a(x, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128))])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
|
|
38
38
|
} });
|
|
39
39
|
export {
|
|
40
40
|
V as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, createElementBlock as a, openBlock as r, createElementVNode as s, normalizeStyle as u, normalizeClass as l, unref as p, Fragment as g, renderList as c, createBlock as f } from "vue";
|
|
2
2
|
import d from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
4
|
import { handleAfterInitEvent as m } from "../../../../utils/events/event-util.js";
|
|
@@ -27,7 +27,7 @@ const v = { class: "amb-widget-tools-parent" }, x = e({ __name: "tools-runtime",
|
|
|
27
27
|
m(null, x2.pageContext, x2.configure, { componentRef: b.value, entity: x2.pageContext.entity.data, pageData: x2.pageContext.entity.page });
|
|
28
28
|
});
|
|
29
29
|
}), i(() => {
|
|
30
|
-
}), (e3, t2) => (
|
|
30
|
+
}), (e3, t2) => (r(), a("div", v, [s("div", { class: l(["amb-widget-container-tool amb-widget-tools", p(w)]), style: u(y.value), ref_key: "thisRef", ref: b }, [(r(true), a(g, null, c(e3.configure.items, (t3, o2) => (r(), f(d, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
|
|
31
31
|
} });
|
|
32
32
|
export {
|
|
33
33
|
x as default
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, 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";
|
|
5
5
|
import { generateCodeByRule as b } from "../../../../utils/barcode-util.js";
|
|
6
|
-
import {
|
|
6
|
+
import { setVariableValue as h, getVariableValue as x } from "../../../../utils/page-helper-util.js";
|
|
7
7
|
import { handleEvent as C } from "../../../../utils/events/event-util.js";
|
|
8
8
|
import w from "agilebuilder-ui/src/utils/request";
|
|
9
9
|
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
10
10
|
const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
|
|
11
11
|
const q = e2, N = q.pageContext.entity ? q.pageContext.entity : {};
|
|
12
12
|
let k = y(q.pageContext, q.configure);
|
|
13
|
-
const A = t({ get: () =>
|
|
14
|
-
|
|
13
|
+
const A = t({ get: () => x(N, k), set(e3) {
|
|
14
|
+
h(N, k, e3);
|
|
15
15
|
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
|
|
16
16
|
function F(e3) {
|
|
17
|
-
return
|
|
17
|
+
return h(N, k, e3);
|
|
18
18
|
}
|
|
19
19
|
function J(e3) {
|
|
20
20
|
L(e3), F(e3), C(e3, q.pageContext, q.configure, "change", { entity: N });
|
|
@@ -56,10 +56,10 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
56
56
|
}).catch((e3) => {
|
|
57
57
|
})), A.value && L(A.value);
|
|
58
58
|
}), D2({ getValue: function() {
|
|
59
|
-
return
|
|
59
|
+
return x(N, k);
|
|
60
60
|
}, setValue: F }), (e3, t2) => {
|
|
61
61
|
const a2 = o("el-form-item");
|
|
62
|
-
return
|
|
62
|
+
return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
63
63
|
};
|
|
64
64
|
} });
|
|
65
65
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a,
|
|
2
|
-
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as f, doBeforeClickEvent as d,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, createVNode as u, unref as s } from "vue";
|
|
2
|
+
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as f, doBeforeClickEvent as d, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getBaseUrl as D, getListCode as O, getRealRestApiPath as k, isWorkflowPage as I, isVariableInvalidValue as T } from "../../../../utils/common-util.js";
|
|
4
4
|
import { getAdditionalParamMap as R, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
|
|
5
5
|
import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
|
|
@@ -35,24 +35,22 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
35
35
|
const t3 = $(e4.fieldName);
|
|
36
36
|
t3 && t3.length > 1 && ne.push(t3[1]);
|
|
37
37
|
}), ne.length > 0 && function() {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
n3 && n3.length > 1 && e4.push(n3[1]);
|
|
44
|
-
}
|
|
45
|
-
}), 0 === e4.length)
|
|
46
|
-
We();
|
|
47
|
-
else {
|
|
48
|
-
const t3 = ze();
|
|
49
|
-
e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (Oe(t3), We()) : ne.forEach((t4) => {
|
|
50
|
-
o(() => W.pageContext.entity.page[t4], () => {
|
|
51
|
-
const t5 = ze();
|
|
52
|
-
0 === e4.length ? Oe(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && Oe(t5));
|
|
53
|
-
}, { immediate: true });
|
|
54
|
-
});
|
|
38
|
+
let e4 = [];
|
|
39
|
+
W.pageContext.toolsInputComponents && W.pageContext.toolsInputComponents.length > 0 && W.pageContext.toolsInputComponents.forEach((t3) => {
|
|
40
|
+
if (G.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
|
|
41
|
+
const n3 = $(t3.prop);
|
|
42
|
+
n3 && n3.length > 1 && e4.push(n3[1]);
|
|
55
43
|
}
|
|
44
|
+
});
|
|
45
|
+
if (0 === e4.length) We();
|
|
46
|
+
else {
|
|
47
|
+
const t3 = ze();
|
|
48
|
+
e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (Oe(t3), We()) : ne.forEach((t4) => {
|
|
49
|
+
o(() => W.pageContext.entity.page[t4], () => {
|
|
50
|
+
const t5 = ze();
|
|
51
|
+
0 === e4.length ? Oe(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && Oe(t5));
|
|
52
|
+
}, { immediate: true });
|
|
53
|
+
});
|
|
56
54
|
}
|
|
57
55
|
}());
|
|
58
56
|
return function(e4) {
|
|
@@ -93,16 +91,14 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
93
91
|
});
|
|
94
92
|
}
|
|
95
93
|
function he(e3) {
|
|
96
|
-
if (!e3)
|
|
97
|
-
return;
|
|
94
|
+
if (!e3) return;
|
|
98
95
|
let t2;
|
|
99
|
-
const n2 =
|
|
96
|
+
const n2 = y(e3.events, "click");
|
|
100
97
|
if (n2) {
|
|
101
98
|
if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = Ce : "lineEditUpdate" === n2 ? t2 = ye : "lineEditDelete" === n2 && (t2 = Ee), !t2) {
|
|
102
|
-
t2 =
|
|
99
|
+
t2 = x(q, e3.events, "click");
|
|
103
100
|
}
|
|
104
|
-
} else
|
|
105
|
-
te.value[e3.uuid] = e3, t2 = Te;
|
|
101
|
+
} else te.value[e3.uuid] = e3, t2 = Te;
|
|
106
102
|
return t2;
|
|
107
103
|
}
|
|
108
104
|
function be({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
@@ -128,8 +124,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
128
124
|
const a2 = te.value.restoreEdit, l2 = G;
|
|
129
125
|
a2.props.base.tableUuid = l2.uuid;
|
|
130
126
|
const r2 = d(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
131
|
-
if (!r2)
|
|
132
|
-
return;
|
|
127
|
+
if (!r2) return;
|
|
133
128
|
N(r2) ? r2.then((e4) => {
|
|
134
129
|
e4 && ie.value.restoreRow(i2, le);
|
|
135
130
|
}) : ie.value.restoreRow(i2, le);
|
|
@@ -162,43 +157,39 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
162
157
|
}) : De(e3, t2, n2, o2, i2, a2));
|
|
163
158
|
}
|
|
164
159
|
function De(e3, t2, n2, o2, i2, a2) {
|
|
165
|
-
if (n2.id || n2.ID)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
});
|
|
160
|
+
if (n2.id || n2.ID) q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
|
|
161
|
+
if (true === e4.canExecute) {
|
|
162
|
+
const e5 = [];
|
|
163
|
+
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: q, configureObj: a2, ids: e5 });
|
|
164
|
+
}
|
|
165
|
+
}).finally(() => {
|
|
166
|
+
q.editData = null;
|
|
167
|
+
});
|
|
174
168
|
else {
|
|
175
169
|
Ce(e3, t2, n2, o2, i2);
|
|
176
170
|
f(q, G, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
177
171
|
}
|
|
178
172
|
}
|
|
179
173
|
function Oe(e3) {
|
|
180
|
-
if (!q.dataTypeMaps)
|
|
181
|
-
return;
|
|
174
|
+
if (!q.dataTypeMaps) return;
|
|
182
175
|
const t2 = q.dataTypeMaps;
|
|
183
176
|
let n2 = [];
|
|
184
|
-
if (e3)
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
if (
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const n3 = {};
|
|
193
|
-
n3.leftBracket = 0 === i2 ? "((" : "(", n3.propName = o2, n3.propDbName = o2, n3.dataType = t2[o2] ? t2[o2] : "TEXT", n3.operator = "EQ", n3.propValue = a2[i2], i2 === a2.length - 1 ? (n3.rightBracket = "))", n3.joinSign = "and") : (n3.rightBracket = ")", n3.joinSign = "or"), e4.push(n3);
|
|
194
|
-
}
|
|
195
|
-
n2 = n2.concat(e4);
|
|
196
|
-
}
|
|
197
|
-
} else {
|
|
198
|
-
const e4 = { leftBracket: "(" };
|
|
199
|
-
e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
|
|
177
|
+
if (e3) for (var o2 in e3) {
|
|
178
|
+
const a2 = e3[o2];
|
|
179
|
+
if (null != a2 && "" !== a2) if (a2 instanceof Array) {
|
|
180
|
+
if (a2.length > 0) {
|
|
181
|
+
const e4 = [];
|
|
182
|
+
for (var i2 = 0; i2 < a2.length; i2++) {
|
|
183
|
+
const n3 = {};
|
|
184
|
+
n3.leftBracket = 0 === i2 ? "((" : "(", n3.propName = o2, n3.propDbName = o2, n3.dataType = t2[o2] ? t2[o2] : "TEXT", n3.operator = "EQ", n3.propValue = a2[i2], i2 === a2.length - 1 ? (n3.rightBracket = "))", n3.joinSign = "and") : (n3.rightBracket = ")", n3.joinSign = "or"), e4.push(n3);
|
|
200
185
|
}
|
|
186
|
+
n2 = n2.concat(e4);
|
|
187
|
+
}
|
|
188
|
+
} else {
|
|
189
|
+
const e4 = { leftBracket: "(" };
|
|
190
|
+
e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
|
|
201
191
|
}
|
|
192
|
+
}
|
|
202
193
|
ie.value.toolbarRefresh(null, null, n2);
|
|
203
194
|
}
|
|
204
195
|
function ke(e3) {
|
|
@@ -209,49 +200,47 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
209
200
|
}
|
|
210
201
|
}
|
|
211
202
|
function Ie() {
|
|
212
|
-
if (!ie.value)
|
|
213
|
-
return;
|
|
203
|
+
if (!ie.value) return;
|
|
214
204
|
const e3 = F(W.pageContext, W.configure);
|
|
215
205
|
if (e3 && e3.isCalcHeight) {
|
|
216
206
|
let e4 = ie.value.$el;
|
|
217
|
-
if (e4 || (e4 = ie.value), !e4)
|
|
218
|
-
return;
|
|
207
|
+
if (e4 || (e4 = ie.value), !e4) return;
|
|
219
208
|
const t2 = e4.getBoundingClientRect();
|
|
220
209
|
return window.innerHeight - t2.y - 90;
|
|
221
210
|
}
|
|
222
211
|
}
|
|
223
212
|
function Te(e3, t2, n2, o2, i2, a2) {
|
|
224
213
|
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2 }, r2 = te.value[a2.sourceButton.uuid], u2 = G;
|
|
225
|
-
r2.props.base.tableUuid = u2.uuid,
|
|
214
|
+
r2.props.base.tableUuid = u2.uuid, E(null, q, r2, "click", l2);
|
|
226
215
|
}
|
|
227
216
|
function Re(e3) {
|
|
228
217
|
"close_open_win" === e3.data && ie.value && ie.value.refresh();
|
|
229
218
|
}
|
|
230
219
|
function Ve(e3, t2) {
|
|
231
220
|
ue.value = e3;
|
|
232
|
-
|
|
221
|
+
g(q, G, { selection: e3, row: t2 });
|
|
233
222
|
}
|
|
234
223
|
function je(e3) {
|
|
235
224
|
ue.value = e3;
|
|
236
|
-
|
|
225
|
+
m(q, G, { selection: e3 });
|
|
237
226
|
}
|
|
238
227
|
function Ne(e3) {
|
|
239
|
-
|
|
228
|
+
v(q, G, { newSelection: e3 });
|
|
240
229
|
}
|
|
241
230
|
function Pe(e3, t2, n2, o2) {
|
|
242
|
-
|
|
231
|
+
h(q, G, { row: e3, column: t2, cell: n2, event: o2 });
|
|
243
232
|
}
|
|
244
233
|
function Ue(e3, t2, n2, o2) {
|
|
245
|
-
|
|
234
|
+
b(q, G, { row: e3, column: t2, cell: n2, event: o2 });
|
|
246
235
|
}
|
|
247
236
|
function Be(e3, t2, n2) {
|
|
248
|
-
|
|
237
|
+
w(q, G, { row: e3, column: t2, event: n2 });
|
|
249
238
|
}
|
|
250
239
|
function Me(e3, t2, n2) {
|
|
251
|
-
|
|
240
|
+
S(q, G, { row: e3, column: t2, event: n2 });
|
|
252
241
|
}
|
|
253
242
|
function $e(e3, t2) {
|
|
254
|
-
|
|
243
|
+
C(q, G, { column: e3, event: t2 });
|
|
255
244
|
}
|
|
256
245
|
function Fe() {
|
|
257
246
|
ue.value = [];
|
|
@@ -298,8 +287,8 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
298
287
|
Oe(W.pageContext.entity.data);
|
|
299
288
|
}), i(() => {
|
|
300
289
|
B.$off(re + "-close-component-page-dialog"), B.$off(re + "_close-dialog-get-entity"), B.$off(le + "-pickFileDone"), B.$off(le + "-scanDone");
|
|
301
|
-
}), H2({ refresh: function() {
|
|
302
|
-
return ie.value.refresh();
|
|
290
|
+
}), H2({ refresh: function(e3, t2, n2, o2) {
|
|
291
|
+
return ie.value.refresh(e3, t2, n2, o2);
|
|
303
292
|
}, createRow: function() {
|
|
304
293
|
return ie.value.createRow(le, {}, { getDefaultValueFunc: M });
|
|
305
294
|
}, clearSelections: Fe, getSelections: function() {
|
|
@@ -318,15 +307,14 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
318
307
|
}, showMobileSearch: function() {
|
|
319
308
|
de.value && ie.value.showMobileSearch();
|
|
320
309
|
}, getTableSelectOptions: function() {
|
|
321
|
-
if (ie.value)
|
|
322
|
-
return ie.value.getTableSelectOptions(le);
|
|
310
|
+
if (ie.value) return ie.value.getTableSelectOptions(le);
|
|
323
311
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
324
312
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
325
313
|
}, doLayout: function(e3) {
|
|
326
314
|
ie.value && ie.value.doLayout(e3);
|
|
327
315
|
} }), (e3, t2) => {
|
|
328
316
|
const n2 = a("super-grid");
|
|
329
|
-
return
|
|
317
|
+
return r(), l("div", null, [u(n2, { ref_key: "gridRef", ref: ie, url: s(ae), options: oe.value, code: s(le), settings: s(fe), "search-form-info": ce.value, "list-toolbar-form-data": s(se), onSelect: Ve, onSelectAll: je, onSelectionChange: Ne, onCellClick: Pe, onCellDblclick: Ue, onRowClick: Be, onRowDblclick: Me, onHeaderClick: $e, onRefresh: Fe, onNewOpenGridDialog: s(U), onCanShowMobileSearch: _e }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])]);
|
|
330
318
|
};
|
|
331
319
|
} });
|
|
332
320
|
export {
|