super-page-runtime 2.2.3 → 2.2.9
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.js +276 -326
- 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/page-helper-util.js +58 -104
- package/dist/es/components/runtime/utils/page-init-util.js +30 -37
- 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 +33 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
- 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 +2 -2
- 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 +123 -116
- 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 +46 -57
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
- 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 +5 -5
- 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 +15 -25
- 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 +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/super-page.vue.js +25 -38
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onMounted as a, nextTick as u, resolveComponent as n,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onMounted as a, nextTick as u, resolveComponent as n, createBlock as i, openBlock as r, normalizeStyle as s, normalizeClass as p, unref as f, withCtx as c, createVNode as v, createElementBlock as g, Fragment as m, renderList as d, createCommentVNode as h, createElementVNode as y, toDisplayString as x, createTextVNode as b } from "vue";
|
|
2
|
+
import { setVariableValue as C, getVariableValue as _, getOptionDatasFromPage as k, queryOptionDatasources as w, autoSetAfterSelect as S } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as j, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import z from "../common/title-suffix-element.vue.js";
|
|
@@ -8,10 +8,10 @@ const M = { style: { float: "left" } }, V = { style: { float: "right", color: "v
|
|
|
8
8
|
const O = e2, P = O.pageContext.entity ? O.pageContext.entity : {};
|
|
9
9
|
let A = T(O.pageContext, O.configure);
|
|
10
10
|
const D = O.configure.runtime ? O.configure.runtime : {}, W = D.style, E = D.class, F = D.headerStyle, U = D.titleExceedStyle, $ = t(D.props ? D.props : {}), B = l({ get() {
|
|
11
|
-
let e3 =
|
|
11
|
+
let e3 = _(P, A);
|
|
12
12
|
return null != e3 && (e3 += ""), $.value.multiple && e3 && (e3 = e3.split(",")), e3;
|
|
13
13
|
}, set(e3) {
|
|
14
|
-
$.value.multiple && e3 && e3.length > 0 && (e3 = e3.join(",")),
|
|
14
|
+
$.value.multiple && e3 && e3.length > 0 && (e3 = e3.join(",")), C(P, A, e3);
|
|
15
15
|
} }), G = t($.value.options ? $.value.options : []), H = k(O.pageContext, O.configure);
|
|
16
16
|
H.length > 0 && (G.value = H);
|
|
17
17
|
const J = t(false), K = O.configure.props && O.configure.props.dataOrigin ? O.configure.props.dataOrigin : {}, L = K.optionValueSetType;
|
|
@@ -28,9 +28,7 @@ const M = { style: { float: "left" } }, V = { style: { float: "right", color: "v
|
|
|
28
28
|
}));
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
if (K.autoSets)
|
|
32
|
-
for (let e3 of K.autoSets)
|
|
33
|
-
e3.source && N.push(e3);
|
|
31
|
+
if (K.autoSets) for (let e3 of K.autoSets) e3.source && N.push(e3);
|
|
34
32
|
}
|
|
35
33
|
O.configure && O.configure.props && O.configure.props.base && O.configure.props.base.optionProp && N.push({ source: "label", target: O.configure.props.base.optionProp }), $.value.changeMethod = function(e3) {
|
|
36
34
|
let t2, l2 = null;
|
|
@@ -44,21 +42,18 @@ const M = { style: { float: "left" } }, V = { style: { float: "right", color: "v
|
|
|
44
42
|
const X = $.value.monitorFields, Y = [];
|
|
45
43
|
if (X) {
|
|
46
44
|
const e3 = [];
|
|
47
|
-
for (let t2 of X)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
le();
|
|
56
|
-
});
|
|
45
|
+
for (let t2 of X) if (t2.startsWith("${")) {
|
|
46
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
47
|
+
const l2 = t2.split(".");
|
|
48
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (Y.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
49
|
+
}
|
|
50
|
+
for (let t2 of e3) o(P[t2], () => {
|
|
51
|
+
le();
|
|
52
|
+
});
|
|
57
53
|
}
|
|
58
54
|
function Z() {
|
|
59
55
|
let e3 = "";
|
|
60
|
-
for (let t2 of Y)
|
|
61
|
-
e3 += "_" + C(P, t2);
|
|
56
|
+
for (let t2 of Y) e3 += "_" + _(P, t2);
|
|
62
57
|
return e3;
|
|
63
58
|
}
|
|
64
59
|
let ee = Z(), te = false;
|
|
@@ -80,7 +75,7 @@ const M = { style: { float: "left" } }, V = { style: { float: "right", color: "v
|
|
|
80
75
|
G.value = e3 || [];
|
|
81
76
|
} }), (e3, t2) => {
|
|
82
77
|
const l2 = n("el-option"), o2 = n("el-select"), a2 = n("el-form-item");
|
|
83
|
-
return
|
|
78
|
+
return r(), i(a2, { ref_key: "formItemRef", ref: oe, required: !!$.value.required, class: p(f(E)), "label-width": $.value.labelWidth, style: s(f(W)) }, { label: c(() => [$.value.tittleShow ? (r(), g("div", { key: 0, ref_key: "titleRef", ref: ue, style: s({ ...f(F), ...f(U) }) }, [$.value.prefixType ? (r(), i(z, { key: 0, pageContext: e3.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (r(), g(m, { key: 1 }, [b(x(f(I)($.value.title)), 1)], 64))], 4)) : h("", true)]), default: c(() => [v(o2, { ref_key: "componentRef", ref: ae, style: { width: "100%" }, disabled: "disabled" === $.value.state, size: $.value.size, clearable: $.value.clearable, multiple: $.value.multiple, "collapse-tags": $.value.collapseTags, "collapse-tags-tooltip": $.value.collapseTagsTooltip, filterable: $.value.filterable, "allow-create": $.value.allowCreate, placeholder: $.value.placeholder, "remote-show-suffix": $.value.remoteShowSuffix, remote: $.value.remote, "remote-method": $.value.remoteMethod, loading: J.value, onChange: $.value.changeMethod, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4) }, { default: c(() => [(r(true), g(m, null, d(G.value, (t3) => (r(), i(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(j)(t3.value, e3.pageContext, e3.configure, "click", { values: B.value }) }, { default: c(() => [t3._description_ ? (r(), g(m, { key: 0 }, [y("span", M, x(t3.label), 1), y("span", V, x(t3._description_), 1)], 64)) : h("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
84
79
|
};
|
|
85
80
|
} });
|
|
86
81
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as i, nextTick as o,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as i, nextTick as o, createElementBlock as n, openBlock as r, normalizeClass as a, normalizeStyle as p, unref as l, createElementVNode as s, createBlock as u, createCommentVNode as c, createTextVNode as g, toDisplayString as f } from "vue";
|
|
2
2
|
import { SuperIcon as m } from "agilebuilder-ui";
|
|
3
3
|
import { $t as y } from "../../../../utils/i18n-util.js";
|
|
4
4
|
import { handleAfterInitEvent as b } from "../../../../utils/events/event-util.js";
|
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (e3, t2) => (
|
|
12
|
+
}), d2({}), (e3, t2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as u,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as u, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as c, unref as r, withCtx as s, createVNode as f, createElementBlock as p, createCommentVNode as d, toDisplayString as m } from "vue";
|
|
2
2
|
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as V, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
@@ -25,7 +25,7 @@ const C = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
25
25
|
});
|
|
26
26
|
}), (e3, t2) => {
|
|
27
27
|
const l2 = u("el-switch"), a2 = u("el-form-item");
|
|
28
|
-
return
|
|
28
|
+
return v(), n(a2, { ref_key: "formItemRef", ref: E, required: z.value.required, class: c(r(k)), "label-width": z.value.labelWidth, style: o(r(j)) }, { label: s(() => [z.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: U, style: o({ ...r(S), ...r(q) }) }, m(r(b)(z.value.title)), 5)) : d("", true)]), default: s(() => [f(l2, { ref_key: "componentRef", ref: O, disabled: "disabled" === z.value.state, "active-value": z.value.activeValue, "active-text": z.value.activeText, "inactive-value": z.value.inactiveValue, "inactive-text": z.value.inactiveText, width: z.value.offOnWidth, size: z.value.size, style: o(r(W)), modelValue: D.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => D.value = e4), onChange: t2[1] || (t2[1] = (t3) => r(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
29
29
|
};
|
|
30
30
|
} });
|
|
31
31
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o, createBlock as n, openBlock as r, normalizeStyle as u, normalizeClass as s, unref as p, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createTextVNode as v, toDisplayString as y, createCommentVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as C, setVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as h, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
@@ -12,8 +12,7 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
12
12
|
const t2 = [];
|
|
13
13
|
let l2 = 1;
|
|
14
14
|
for (const a2 of e3) {
|
|
15
|
-
if (null == a2 || "" === a2)
|
|
16
|
-
continue;
|
|
15
|
+
if (null == a2 || "" === a2) continue;
|
|
17
16
|
const e4 = { value: a2, label: a2 };
|
|
18
17
|
$ && (e4.label = $.replace(/\${value}/g, e4.value).replace(/\${no}/g, l2)), t2.push(e4), l2++;
|
|
19
18
|
}
|
|
@@ -27,7 +26,7 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
27
26
|
});
|
|
28
27
|
}), (e3, t2) => {
|
|
29
28
|
const l2 = o("el-tag"), a2 = o("el-form-item");
|
|
30
|
-
return
|
|
29
|
+
return r(), n(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
|
|
31
30
|
if (I.value.closable) {
|
|
32
31
|
let e6 = C(D, A);
|
|
33
32
|
null == e6 && (e6 = []);
|
|
@@ -37,7 +36,7 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
37
36
|
a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
|
|
38
37
|
}
|
|
39
38
|
k(e5, j2.pageContext, j2.configure, "remove");
|
|
40
|
-
}(e4, a3), onClick: t2[0] || (t2[0] = (t3) =>
|
|
39
|
+
}(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
41
40
|
};
|
|
42
41
|
} });
|
|
43
42
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as l, onMounted as a, nextTick as o, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, computed as t, ref as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as r, openBlock as u, createVNode as i, normalizeStyle as p, normalizeClass as s, unref as f, withCtx as m, createCommentVNode as g, createBlock as c, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import {
|
|
3
|
+
import { setVariableValue as h, getVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import k from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
8
8
|
const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
|
|
9
9
|
let I = y(_2.pageContext, _2.configure);
|
|
10
|
-
const q = t({ get: () =>
|
|
11
|
-
|
|
10
|
+
const q = t({ get: () => C(j, I), set(e3) {
|
|
11
|
+
h(j, I, e3);
|
|
12
12
|
} }), z = _2.configure.runtime ? _2.configure.runtime : {}, S = l(z.props ? z.props : {}), V = z.style, B = z.class, D = z.headerStyle, E = z.titleExceedStyle, F = l(null), L = l(null), N = l(null);
|
|
13
13
|
return a(() => {
|
|
14
14
|
o(() => {
|
|
@@ -17,7 +17,7 @@ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
17
17
|
});
|
|
18
18
|
}), (e3, t2) => {
|
|
19
19
|
const l2 = n("el-input"), a2 = n("el-form-item");
|
|
20
|
-
return
|
|
20
|
+
return u(), r("div", null, [i(a2, { ref_key: "formItemRef", ref: F, required: !!S.value.required, class: s(f(B)), "label-width": S.value.labelWidth, style: p(f(V)) }, { label: m(() => [S.value.tittleShow ? (u(), r("div", { key: 0, ref_key: "titleRef", ref: N, style: p({ ...f(D), ...f(E) }) }, [S.value.prefixType ? (u(), c(k, { key: 0, pageContext: e3.pageContext, property: S.value }, null, 8, ["pageContext", "property"])) : (u(), r(d, { key: 1 }, [v(x(f(R)(S.value.title)), 1)], 64))], 4)) : g("", true)]), default: m(() => [i(l2, { ref_key: "componentRef", ref: L, disabled: "disabled" === S.value.state, readonly: "readonly" === S.value.state, size: S.value.size, clearable: S.value.clearable, placeholder: S.value.placeholder, modelValue: q.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => q.value = e4), rows: S.value.rows ? S.value.rows : 2, maxlength: S.value.maxLength, "show-word-limit": S.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PageContext, Component } from '../../utils/interfaces/page-design-types.js';
|
|
2
|
+
|
|
3
|
+
interface MyProps {
|
|
4
|
+
pageContext: PageContext;
|
|
5
|
+
configure: Component;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, markRaw as o, onMounted as n, resolveDirective as i, withDirectives as u, createCommentVNode as s, unref as r, createBlock as l, openBlock as c, resolveDynamicComponent as p, normalizeClass as a, normalizeStyle as f, vShow as g, nextTick as v } from "vue";
|
|
2
|
+
import m from "./error-render.vue.js";
|
|
3
|
+
import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
|
|
4
|
+
import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
+
import { addComponentRef as h, addComponentRefByCode as C } from "../../utils/global-refs.js";
|
|
6
|
+
import { getPermissionCodes as y, controlObjectRenderState as b } from "../../utils/page-init-util.js";
|
|
7
|
+
import { getFormPropName as w, getSizeConfig as j } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { getPropClassName as _, isNumber as B } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowComponent as R } from "../../utils/events/event-util.js";
|
|
10
|
+
const O = e({ __name: "home-chart-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
11
|
+
const O2 = e2;
|
|
12
|
+
null == O2.configure.style && (O2.configure.style = {});
|
|
13
|
+
const $ = y(O2.configure, O2.pageContext);
|
|
14
|
+
O2.configure && O2.configure.props && O2.configure.props.base && (O2.configure.props.base.functionCode = $);
|
|
15
|
+
let H = t(true), N = t(true);
|
|
16
|
+
const k = t({});
|
|
17
|
+
k.value = o(d(O2.configure.name));
|
|
18
|
+
const P = t(true);
|
|
19
|
+
null == k.value && (k.value = m, P.value = false);
|
|
20
|
+
const S = t(null), W = t({}), q = t(""), z = _(O2.configure);
|
|
21
|
+
z && (q.value = z);
|
|
22
|
+
const A = O2.configure.runtime && O2.configure.runtime.common ? O2.configure.runtime.common : {};
|
|
23
|
+
if (A.class && (q.value += " " + A.class), A.style) {
|
|
24
|
+
Object.assign(W.value, A.style);
|
|
25
|
+
const e3 = O2.pageContext && O2.pageContext.dimensions ? O2.pageContext.dimensions : x.PC, t2 = A.style[e3 + "_style"];
|
|
26
|
+
t2 && Object.assign(W.value, t2);
|
|
27
|
+
const o2 = A.style[e3 + "_class"];
|
|
28
|
+
o2 && (q.value += " " + o2);
|
|
29
|
+
}
|
|
30
|
+
function D(e3) {
|
|
31
|
+
if (S.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
32
|
+
H.value = true;
|
|
33
|
+
}), e3 && !e3.hide && (e3.hide = function() {
|
|
34
|
+
H.value = false;
|
|
35
|
+
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
36
|
+
return O2.configure;
|
|
37
|
+
}), O2.configure.uuid && h(O2.pageContext, O2.configure.uuid, S), O2.configure.code) C(O2.pageContext, O2.configure.code, S);
|
|
38
|
+
else if (O2.configure.props && O2.configure.props.base) {
|
|
39
|
+
const e4 = O2.configure.props.base;
|
|
40
|
+
if (e4.prop) {
|
|
41
|
+
let t3 = e4.prop;
|
|
42
|
+
t3.startsWith("${") && (t3 = t3.substring(2, t3.length - 1)), t3.includes(".") && (t3 = t3.substring(t3.indexOf(".") + 1)), C(O2.pageContext, t3, S);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const t2 = O2.configure.props ? O2.configure.props.base : null;
|
|
46
|
+
if (t2 && t2.prop) {
|
|
47
|
+
let e4 = t2.prop;
|
|
48
|
+
e4 = w(e4), b(O2.pageContext, e4);
|
|
49
|
+
}
|
|
50
|
+
!function() {
|
|
51
|
+
if (!S.value) return;
|
|
52
|
+
const e4 = j(O2.pageContext, O2.configure);
|
|
53
|
+
"table" !== O2.configure.name && e4 && e4.isCalcHeight && v(() => {
|
|
54
|
+
let e5 = S.value.$el;
|
|
55
|
+
e5 || (e5 = S.value);
|
|
56
|
+
const t3 = e5.parentNode;
|
|
57
|
+
if (!e5 || !t3) return;
|
|
58
|
+
const o2 = e5.getBoundingClientRect();
|
|
59
|
+
let n2 = window.innerHeight - o2.y - 80, i2 = n2 + "";
|
|
60
|
+
B(n2) && (i2 = n2 + "px"), W.value.height = i2, W.value["overflow-y"] = "auto", W.value["overflow-x"] = "hidden", O2.configure.sytle || (O2.configure.sytle = {}), O2.configure.sytle._heightStyle = i2;
|
|
61
|
+
});
|
|
62
|
+
}();
|
|
63
|
+
}
|
|
64
|
+
n(() => {
|
|
65
|
+
E();
|
|
66
|
+
});
|
|
67
|
+
const E = () => {
|
|
68
|
+
if (!S.value) return;
|
|
69
|
+
let e3 = S.value.$el;
|
|
70
|
+
e3 || (e3 = S.value);
|
|
71
|
+
const t2 = e3.parentNode;
|
|
72
|
+
if (!e3 || !t2) return;
|
|
73
|
+
const o2 = O2.configure.props ? O2.configure.props : {}, n2 = O2.configure.style ? O2.configure.style : {}, i2 = o2.position;
|
|
74
|
+
if ("top" == i2 || "bottom" == i2) {
|
|
75
|
+
const o3 = [t2];
|
|
76
|
+
if (o3 && o3.length > 0) {
|
|
77
|
+
const e4 = o3[0].getBoundingClientRect();
|
|
78
|
+
"top" == i2 && (W.value.top = e4.top + "px"), "bottom" == i2 && (W.value.bottom = "10px");
|
|
79
|
+
}
|
|
80
|
+
const n3 = e3.getBoundingClientRect();
|
|
81
|
+
W.value.width = n3.width + "px";
|
|
82
|
+
} else if (n2.position && (W.value.position = n2.position, "relative" != W.value.position)) {
|
|
83
|
+
if (!W.value.width) {
|
|
84
|
+
const t3 = e3.getBoundingClientRect();
|
|
85
|
+
W.value.width = t3.width + "px";
|
|
86
|
+
}
|
|
87
|
+
n2.left && (W.value.left = n2.left + "px"), n2.top && (W.value.top = n2.top + "px");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
return (e3, t2) => {
|
|
91
|
+
const o2 = i("permission");
|
|
92
|
+
return r(R)(e3.configure) ? u((c(), l(p(k.value), { key: 0, ref: D, style: f(W.value), class: a(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[g, r(N)], [o2, r($) ? r($) : "true"]]) : s("", true);
|
|
93
|
+
};
|
|
94
|
+
} });
|
|
95
|
+
export {
|
|
96
|
+
O as default
|
|
97
|
+
};
|
|
@@ -4,7 +4,7 @@ interface MyProps {
|
|
|
4
4
|
pageContext: PageContext;
|
|
5
5
|
configure: Component;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<MyProps
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
export default _default;
|
|
9
9
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
10
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, resolveDirective as s,
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, resolveDirective as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as f, normalizeStyle as g, vShow as d, nextTick as v } from "vue";
|
|
2
2
|
import m from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as C } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
|
|
@@ -19,15 +19,12 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
19
19
|
((_a = N2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof N2.configure.props.base.showConditions ? JSON.parse(N2.configure.props.base.showConditions) : N2.configure.props.base.showConditions), H = t(() => {
|
|
20
20
|
var _a2;
|
|
21
21
|
let o2 = true;
|
|
22
|
-
if (E.value)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
else
|
|
30
|
-
o2 = false;
|
|
22
|
+
if (E.value) if (e3 && e3.length > 0) o2 = _(N2.pageContext, e3);
|
|
23
|
+
else {
|
|
24
|
+
const e4 = (_a2 = N2.configure.props.base) == null ? void 0 : _a2.state;
|
|
25
|
+
e4 && "hidden" === e4 && (o2 = false);
|
|
26
|
+
}
|
|
27
|
+
else o2 = false;
|
|
31
28
|
return o2;
|
|
32
29
|
});
|
|
33
30
|
if (N2.configure._dynamicShowFlag = H, (_b = N2.configure.props.base) == null ? void 0 : _b.editConditions) {
|
|
@@ -36,8 +33,7 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
36
33
|
const o2 = N2.configure.runtime ? N2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
37
34
|
if (n2.rawSate = n2.state, P(N2.pageContext) && N2.pageContext.fieldPermissionMap) {
|
|
38
35
|
const e5 = N2.pageContext.fieldPermissionMap.get("all_fields");
|
|
39
|
-
if (false === (e5 == null ? void 0 : e5.canEdit))
|
|
40
|
-
k.value = "disabled";
|
|
36
|
+
if (false === (e5 == null ? void 0 : e5.canEdit)) k.value = "disabled";
|
|
41
37
|
else {
|
|
42
38
|
const e6 = N2.configure.props.base;
|
|
43
39
|
if (e6 && e6.prop) {
|
|
@@ -49,8 +45,7 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
49
45
|
}
|
|
50
46
|
}
|
|
51
47
|
n2.state = t({ get() {
|
|
52
|
-
if ("disabled" === k.value)
|
|
53
|
-
return k.value;
|
|
48
|
+
if ("disabled" === k.value) return k.value;
|
|
54
49
|
return _(N2.pageContext, e4) ? "" : "disabled";
|
|
55
50
|
}, set() {
|
|
56
51
|
} });
|
|
@@ -78,8 +73,7 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
78
73
|
E.value = false;
|
|
79
74
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
80
75
|
return N2.configure;
|
|
81
|
-
}), N2.configure.uuid && b(N2.pageContext, N2.configure.uuid, W), N2.configure.code)
|
|
82
|
-
h(N2.pageContext, N2.configure.code, W);
|
|
76
|
+
}), N2.configure.uuid && b(N2.pageContext, N2.configure.uuid, W), N2.configure.code) h(N2.pageContext, N2.configure.code, W);
|
|
83
77
|
else if (N2.configure.props && N2.configure.props.base) {
|
|
84
78
|
const e4 = N2.configure.props.base;
|
|
85
79
|
if (e4.prop) {
|
|
@@ -93,15 +87,13 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
93
87
|
e4 = B(e4), j(N2.pageContext, e4);
|
|
94
88
|
}
|
|
95
89
|
!function() {
|
|
96
|
-
if (!W.value)
|
|
97
|
-
return;
|
|
90
|
+
if (!W.value) return;
|
|
98
91
|
const e4 = O(N2.pageContext, N2.configure);
|
|
99
92
|
"table" !== N2.configure.name && e4 && e4.isCalcHeight && v(() => {
|
|
100
93
|
let e5 = W.value.$el;
|
|
101
94
|
e5 || (e5 = W.value);
|
|
102
95
|
const o3 = e5.parentNode;
|
|
103
|
-
if (!e5 || !o3)
|
|
104
|
-
return;
|
|
96
|
+
if (!e5 || !o3) return;
|
|
105
97
|
const t2 = e5.getBoundingClientRect();
|
|
106
98
|
let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
|
|
107
99
|
S(n2) && (i2 = n2 + "px"), q.value.height = i2, q.value["overflow-y"] = "auto", q.value["overflow-x"] = "hidden", N2.configure.sytle || (N2.configure.sytle = {}), N2.configure.sytle._heightStyle = i2;
|
|
@@ -112,13 +104,11 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
112
104
|
I();
|
|
113
105
|
});
|
|
114
106
|
const I = () => {
|
|
115
|
-
if (!W.value)
|
|
116
|
-
return;
|
|
107
|
+
if (!W.value) return;
|
|
117
108
|
let e3 = W.value.$el;
|
|
118
109
|
e3 || (e3 = W.value);
|
|
119
110
|
const o2 = e3.parentNode;
|
|
120
|
-
if (!e3 || !o2)
|
|
121
|
-
return;
|
|
111
|
+
if (!e3 || !o2) return;
|
|
122
112
|
const t2 = N2.configure.props ? N2.configure.props : {}, n2 = N2.configure.style ? N2.configure.style : {}, i2 = t2.position;
|
|
123
113
|
if ("top" == i2 || "bottom" == i2) {
|
|
124
114
|
const t3 = [o2];
|
|
@@ -138,7 +128,7 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
138
128
|
};
|
|
139
129
|
return (e3, o2) => {
|
|
140
130
|
const t2 = s("permission");
|
|
141
|
-
return
|
|
131
|
+
return l(M)(e3.configure) ? r((a(), p(c(F.value), { key: 0, ref: G, style: g(q.value), class: f(z.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, l(H)], [t2, l($) ? l($) : "true"]]) : u("", true);
|
|
142
132
|
};
|
|
143
133
|
} });
|
|
144
134
|
export {
|
package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as n, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as n, resolveComponent as o, createElementBlock as i, createBlock as r, unref as s, openBlock as a, toDisplayString as l, normalizeStyle as u } from "vue";
|
|
2
2
|
import { getWorkflowId as p } from "../../../../utils/common-util.js";
|
|
3
3
|
const f = { key: 0 }, g = e({ __name: "pictureflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
4
|
var _a;
|
|
@@ -6,14 +6,13 @@ const f = { key: 0 }, g = e({ __name: "pictureflow-runtime", props: { pageContex
|
|
|
6
6
|
if (x && (x + "").indexOf("px") > 0) {
|
|
7
7
|
const e3 = x.substring(0, x.lastIndexOf("px"));
|
|
8
8
|
m.value = Number(e3) - 20;
|
|
9
|
-
} else
|
|
10
|
-
m.value = window.innerHeight - 120;
|
|
9
|
+
} else m.value = window.innerHeight - 120;
|
|
11
10
|
const y = t(null), c = p(g2.pageContext);
|
|
12
11
|
return g2.pageContext.entity && g2.pageContext.entity.task && n(g2.pageContext.entity.task.id, () => {
|
|
13
12
|
c && y.value && y.value.refresh();
|
|
14
13
|
}, { immediate: true }), (e3, t2) => {
|
|
15
14
|
const n2 = o("workflow-history");
|
|
16
|
-
return
|
|
15
|
+
return s(c) ? (a(), r(n2, { key: 1, id: s(c), ref_key: "historyGraphRef", ref: y, style: u({ maxHeight: m.value + "px" }) }, null, 8, ["id", "style"])) : (a(), i("span", f, l(e3.$t("superPageRuntimeMessage.flowNotStart")), 1));
|
|
17
16
|
};
|
|
18
17
|
} });
|
|
19
18
|
export {
|
package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as n, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as n, resolveComponent as o, createElementBlock as i, createBlock as s, unref as r, openBlock as l, toDisplayString as a, normalizeStyle as u } from "vue";
|
|
2
2
|
import { getWorkflowId as p } from "../../../../utils/common-util.js";
|
|
3
3
|
const f = { key: 0 }, g = e({ __name: "textflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
4
|
var _a;
|
|
@@ -6,8 +6,7 @@ const f = { key: 0 }, g = e({ __name: "textflow-runtime", props: { pageContext:
|
|
|
6
6
|
if (m && (m + "").indexOf("px") > 0) {
|
|
7
7
|
const e3 = m.substring(0, m.lastIndexOf("px"));
|
|
8
8
|
x.value = Number(e3) - 20;
|
|
9
|
-
} else
|
|
10
|
-
x.value = window.innerHeight - 120;
|
|
9
|
+
} else x.value = window.innerHeight - 120;
|
|
11
10
|
const y = t(null), w = p(g2.pageContext);
|
|
12
11
|
return g2.pageContext.entity && g2.pageContext.entity.task && n(() => {
|
|
13
12
|
var _a2;
|
|
@@ -16,7 +15,7 @@ const f = { key: 0 }, g = e({ __name: "textflow-runtime", props: { pageContext:
|
|
|
16
15
|
w && y.value && g2.pageContext.entity.task && y.value.refresh();
|
|
17
16
|
}, { immediate: true }), (e3, t2) => {
|
|
18
17
|
const n2 = o("workflow-history-list");
|
|
19
|
-
return
|
|
18
|
+
return r(w) ? (l(), s(n2, { key: 1, ref_key: "historyList", ref: y, "workflow-id": r(w), style: u({ maxHeight: x.value + "px" }) }, null, 8, ["workflow-id", "style"])) : (l(), i("span", f, a(e3.$t("superPageRuntimeMessage.flowNotStart")), 1));
|
|
20
19
|
};
|
|
21
20
|
} });
|
|
22
21
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t,
|
|
1
|
+
import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as s, createCommentVNode as i } from "vue";
|
|
2
2
|
import a from "../../object-render.vue.js";
|
|
3
3
|
import { getClickEventFuncByType as c } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import { isVisibleWorkflowButton as m } from "../../../../utils/events/standard-event.js";
|
|
@@ -11,13 +11,12 @@ const l = { class: "page-runtime-header-btn" }, p = e({ __name: "workflowbutton-
|
|
|
11
11
|
const t2 = function(e5) {
|
|
12
12
|
const t3 = c(p2.pageContext, e5, "click");
|
|
13
13
|
if (t3) {
|
|
14
|
-
if (t3.isStandard)
|
|
15
|
-
return t3.event.eventName;
|
|
14
|
+
if (t3.isStandard) return t3.event.eventName;
|
|
16
15
|
}
|
|
17
16
|
}(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
|
|
18
17
|
return m(t2, g, v);
|
|
19
18
|
})(e3) && x.value.push(e3);
|
|
20
|
-
}), (e3, t2) => (
|
|
19
|
+
}), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(x.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), s(a, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
|
|
21
20
|
} });
|
|
22
21
|
export {
|
|
23
22
|
p as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as t, ref as e, onMounted as n,
|
|
1
|
+
import { defineComponent as t, ref as e, onMounted as n, createElementBlock as a, createCommentVNode as o, openBlock as p, normalizeClass as r, unref as i, createElementVNode as u, normalizeStyle as l, toDisplayString as s } from "vue";
|
|
2
2
|
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as c, setVariableValue as f } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
const m = t({ __name: "workflownode-runtime", props: { pageContext: {}, configure: {} }, setup(t2, { expose: m2 }) {
|
|
@@ -11,7 +11,7 @@ const m = t({ __name: "workflownode-runtime", props: { pageContext: {}, configur
|
|
|
11
11
|
return c(C, d);
|
|
12
12
|
}, setValue: function(t3) {
|
|
13
13
|
return f(C, d, t3);
|
|
14
|
-
} }), (t3, e2) => y.value ? (
|
|
14
|
+
} }), (t3, e2) => y.value ? (p(), a("span", { key: 0, class: r(i(T)) }, [u("span", { style: l(i(I)) }, [u("span", null, s(v.value.title), 1), u("span", null, s(i(R)), 1)], 4)], 2)) : o("", true);
|
|
15
15
|
} });
|
|
16
16
|
export {
|
|
17
17
|
m as default
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
chartCode: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
homeChartSettingUserId: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
chartCode: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
homeChartSettingUserId: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
chartCode: string;
|
|
21
|
+
homeChartSettingUserId: number;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, resolveDirective as a, withDirectives as i, createElementBlock as n, openBlock as r, createBlock as o, createCommentVNode as s, unref as l } from "vue";
|
|
2
|
+
import { deepCopy as m } from "../utils/common-util.js";
|
|
3
|
+
import u from "./assemblys/home-chart-render.vue.js";
|
|
4
|
+
import h from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { updateOptionDatasources as g, updateChartDatasources as p } from "../utils/page-helper-util.js";
|
|
6
|
+
import { initPageEvents as d } from "../utils/events/event-util.js";
|
|
7
|
+
import { setHomeChartInitConfigValue as c } from "../utils/charts/chart-util.js";
|
|
8
|
+
const f = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
|
|
9
|
+
const v2 = e2, C = t(true), y = t(false), b = t({});
|
|
10
|
+
let S = t(null);
|
|
11
|
+
return v2.chartCode && h.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + v2.chartCode).then((e3) => {
|
|
12
|
+
if (e3 && e3.designJson) {
|
|
13
|
+
const t2 = JSON.parse(e3.designJson), a2 = window.frameElement;
|
|
14
|
+
b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, a2 && (b.value.runtime.common.style.pc_style.height = a2.clientHeight + "px");
|
|
15
|
+
const i2 = { showHomepageSearch: true, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
|
|
16
|
+
if (t2.variables) {
|
|
17
|
+
const e4 = i2.entity.page;
|
|
18
|
+
for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
|
|
19
|
+
}
|
|
20
|
+
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && g(i2, t2.initOptionConfigs, void 0), c(b.value.pushHomepage.initConfig, i2, v2.homeChartSettingUserId), d(t2, i2), S.value = i2, setTimeout(() => {
|
|
21
|
+
!function(e4, t3) {
|
|
22
|
+
if (!t3 || 0 == t3.length) return;
|
|
23
|
+
e4.initChartData = {}, e4.initChartData.data = m(e4.entity.data), e4.initChartData.page = m(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
|
|
24
|
+
}(S.value, [t2.initChartServiceConfigs]);
|
|
25
|
+
}, 200);
|
|
26
|
+
} else y.value = true;
|
|
27
|
+
}).finally(() => {
|
|
28
|
+
C.value = false;
|
|
29
|
+
}), (e3, t2) => {
|
|
30
|
+
const m2 = a("loading");
|
|
31
|
+
return i((r(), n("div", f, [C.value ? s("", true) : (r(), o(u, { key: 0, configure: b.value, pageContext: l(S) }, null, 8, ["configure", "pageContext"]))])), [[m2, C.value]]);
|
|
32
|
+
};
|
|
33
|
+
} });
|
|
34
|
+
export {
|
|
35
|
+
v as default
|
|
36
|
+
};
|
|
@@ -17,17 +17,17 @@ interface MyProps {
|
|
|
17
17
|
default: null;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<MyProps
|
|
20
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
21
|
close: (...args: any[]) => void;
|
|
22
22
|
open: (...args: any[]) => void;
|
|
23
23
|
closed: (...args: any[]) => void;
|
|
24
24
|
opened: (...args: any[]) => void;
|
|
25
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & {
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{
|
|
26
26
|
onClose?: (...args: any[]) => any;
|
|
27
27
|
onOpen?: (...args: any[]) => any;
|
|
28
28
|
onClosed?: (...args: any[]) => any;
|
|
29
29
|
onOpened?: (...args: any[]) => any;
|
|
30
|
-
}, {}, {}>;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
33
|
type __VLS_TypePropsToRuntimeProps<T> = {
|