super-page-runtime 2.3.50 → 2.3.51-sit1
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 +136 -136
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/charts/chart-util.js +121 -90
- package/dist/es/components/runtime/utils/events/event-util.js +123 -122
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +92 -92
- package/dist/es/components/runtime/utils/events/validator-util.js +206 -209
- package/dist/es/components/runtime/utils/page-init-util.js +45 -47
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +8 -7
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +26 -14
- 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 +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- 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 +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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 +9 -11
- 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 +0 -2
- 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.vue.js +1 -1
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -3
- 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 +97 -55
- 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 +6 -8
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- 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 +48 -49
- 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 +49 -29
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +61 -62
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
- 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 +9 -11
- 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/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +27 -23
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue2.js +98 -99
- package/dist/es/style.css +41 -34
- package/package.json +3 -3
|
@@ -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 i, openBlock as r, normalizeStyle as s, normalizeClass as a, unref as c } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as l } 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
|
-
|
|
29
|
+
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
|
+
l(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) => (r(), i("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: a(["amb-widget-container-iframe", c(w)]), style: s(c(y)) }, null, 14, f));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
g as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./tabs-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = e(t, [["__scopeId", "data-v-71f33e38"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -86,9 +86,9 @@ const P = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
86
86
|
V.configure.items.forEach((t2) => {
|
|
87
87
|
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
88
|
}), A.value = [...new Set(n2)];
|
|
89
|
-
} }), (
|
|
90
|
-
const
|
|
91
|
-
return u(), c(l(x), { ref_key: "thisRef", ref: I, modelValue: _.value, "onUpdate:modelValue":
|
|
89
|
+
} }), (e3, n2) => {
|
|
90
|
+
const t2 = i("el-button");
|
|
91
|
+
return u(), c(l(x), { ref_key: "thisRef", ref: I, modelValue: _.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => _.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(l(j)), class: r([l(B), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: U, onEdit: q }, { default: p(() => [(u(true), f(d, null, m(V.configure.items, (n3, t3) => (u(), c(l(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (u(), c(l(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(z)) }, y(l(O)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === _.value ? (u(true), f(d, { key: 0 }, m(n3.items, (n4) => (u(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (u(), c(t2, { key: 0, type: "text", circle: "", onClick: v(G, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || l(O)("superPageRuntimeMessage.reset")), 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 a, onMounted as r, watch as o, resolveComponent as l, 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";
|
|
@@ -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 : {}, _ = 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
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,16 +22,15 @@ 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 || ($.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);
|
|
31
30
|
}
|
|
32
31
|
}(e3);
|
|
33
32
|
}
|
|
34
|
-
return
|
|
33
|
+
return r(() => {
|
|
35
34
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
36
35
|
o(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
37
36
|
null != e4 && function() {
|
|
@@ -39,15 +38,15 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
39
38
|
V.value.forEach((t3) => {
|
|
40
39
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
41
40
|
}), e5 && J(function(e6, t3) {
|
|
42
|
-
const
|
|
43
|
-
return e6.replace(
|
|
41
|
+
const a2 = /\$\{(\w+)\}/g;
|
|
42
|
+
return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
|
|
44
43
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
45
44
|
}();
|
|
46
45
|
});
|
|
47
46
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/component/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
48
47
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
49
48
|
t2.forEach((e4) => {
|
|
50
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5,
|
|
49
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
|
|
51
50
|
if (null != e5) {
|
|
52
51
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
53
52
|
e6 && J(e6);
|
|
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
55
54
|
}));
|
|
56
55
|
});
|
|
57
56
|
}).catch((e3) => {
|
|
58
|
-
console.error("获取条码规则失败:", e3);
|
|
59
57
|
})), A.value && L(A.value);
|
|
60
58
|
}), D2({ getValue: function() {
|
|
61
59
|
return x(N, k);
|
|
62
60
|
}, setValue: F }), (e3, t2) => {
|
|
63
|
-
const
|
|
64
|
-
return
|
|
61
|
+
const a2 = l("el-form-item");
|
|
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"]);
|
|
65
63
|
};
|
|
66
64
|
} });
|
|
67
65
|
export {
|
|
@@ -19,12 +19,12 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
19
19
|
ie || (ie = window.$vueApp.config.globalProperties.baseURL);
|
|
20
20
|
const ae = t({}), le = [], re = t({});
|
|
21
21
|
re.value = function() {
|
|
22
|
-
var _a, _b, _c, _d, _e2;
|
|
22
|
+
var _a, _b, _c, _d, _e2, _f, _g;
|
|
23
23
|
const e3 = J.systemCode, t2 = J.code;
|
|
24
24
|
let n2 = K.props && K.props.dataOrigin && "[]" !== K.props.dataOrigin.sqlFilterCondition ? K.props.dataOrigin.sqlFilterCondition : null;
|
|
25
25
|
null == n2 && (n2 = []);
|
|
26
|
-
const o2 = (_a = K.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: J.beanName, functionCode: t2 + ".listData", tableName: oe, systemCode: e3, pageCode: J.code, pageVersion: J.version, isMobile: N() }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Te }, indexContinuous: !(!K.props || !K.props.otherSettings) && K.props.otherSettings.serialNumberContinuous, initSearch: !K.props || false !== K.props.dataOrigin.initializationQuery, resizeHeight: Ne, pageCode: J.code, pageVersion: J.version, additionalParamMap: I(J), showOverflowTooltip: (_c = (_b = K == null ? void 0 : K.props) == null ? void 0 : _b.otherSettings) == null ? void 0 : _c.showOverflowTooltip, isEnableEnterEvent: K.props && K.props.otherSettings && K.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(K.props && K.props.otherSettings && K.props.otherSettings.isWithDataPermission) && K.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(J), tableClass: ee, tableStyle: Z, pageContext: J, configureObj: K, backendUrl: ie, cellStyleRender: Qe, rowStyleRender: qe, titleStyleRender: Ye, validateEitConditions: Ze, showOperationCondition: null };
|
|
27
|
-
((
|
|
26
|
+
const o2 = (_a = K.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: J.beanName, functionCode: t2 + ".listData", tableName: oe, systemCode: e3, pageCode: J.code, pageVersion: J.version, isMobile: N() }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Te }, indexContinuous: !(!K.props || !K.props.otherSettings) && K.props.otherSettings.serialNumberContinuous, initSearch: !K.props || false !== K.props.dataOrigin.initializationQuery, resizeHeight: Ne, pageCode: J.code, pageVersion: J.version, additionalParamMap: I(J), showOverflowTooltip: (_c = (_b = K == null ? void 0 : K.props) == null ? void 0 : _b.otherSettings) == null ? void 0 : _c.showOverflowTooltip, titleOverflow: (_e2 = (_d = K == null ? void 0 : K.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.titleOverflow, isEnableEnterEvent: K.props && K.props.otherSettings && K.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(K.props && K.props.otherSettings && K.props.otherSettings.isWithDataPermission) && K.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(J), tableClass: ee, tableStyle: Z, pageContext: J, configureObj: K, backendUrl: ie, cellStyleRender: Qe, rowStyleRender: qe, titleStyleRender: Ye, validateEitConditions: Ze, showOperationCondition: null };
|
|
27
|
+
((_g = (_f = K == null ? void 0 : K.props) == null ? void 0 : _f.base) == null ? void 0 : _g.showOperationCondition) && (i2.showOperationCondition = K.props.base.showOperationCondition);
|
|
28
28
|
return function(e4) {
|
|
29
29
|
var _a2;
|
|
30
30
|
((_a2 = K.props.highOrder) == null ? void 0 : _a2.mergeFields) && K.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = K.props.highOrder.mergeFields.join(","));
|
|
@@ -289,7 +289,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
289
289
|
}
|
|
290
290
|
n(() => {
|
|
291
291
|
const e3 = Xe();
|
|
292
|
-
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle
|
|
292
|
+
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 }) {
|
|
293
293
|
se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
294
294
|
}), H.$on(de + "_close-dialog-get-entity", () => {
|
|
295
295
|
H.$emit(de + "_close-super-dialog");
|
|
@@ -20,8 +20,8 @@ const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
20
20
|
let ne = t(0);
|
|
21
21
|
const oe = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, le = t({}), ie = F;
|
|
22
22
|
le.value = function() {
|
|
23
|
-
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: oe, 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: ee, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (
|
|
23
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
24
|
+
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: oe, 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, titleOverflow: (_d = (_c = z == null ? void 0 : z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.titleOverflow, backendUrl: ee, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_f = (_e2 = z.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.allEditable, deleteConfirm: true === ((_h = (_g = z.props) == null ? void 0 : _g.base) == null ? void 0 : _h.deleteConfirm) };
|
|
25
25
|
return W && (e3.tableStyle = W), X && (e3.tableClass = X), 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) {
|
|
@@ -99,7 +99,7 @@ const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
99
99
|
e5.push(t4);
|
|
100
100
|
}
|
|
101
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: Pe, isShow: De, isStandard: true };
|
|
102
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Pe, isShow: De, isStandard: true, isDelete: true };
|
|
103
103
|
e5.push(t4);
|
|
104
104
|
}
|
|
105
105
|
return O(j, z, e5, we), e5;
|
|
@@ -83,7 +83,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
83
83
|
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
84
84
|
var _a;
|
|
85
85
|
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
86
|
-
} }), (
|
|
86
|
+
} }), (e3, t2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e3.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: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
87
87
|
} });
|
|
88
88
|
export {
|
|
89
89
|
f as default
|
|
@@ -112,29 +112,29 @@ const W = { key: 0, class: "custom-tree-node" }, z = ["title"], B = { key: 0, cl
|
|
|
112
112
|
te.value.setCheckedKeys(e3, a2);
|
|
113
113
|
}, setChecked: (e3, a2, t2) => {
|
|
114
114
|
te.value.setChecked(e3, a2, t2);
|
|
115
|
-
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (
|
|
115
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (e3, a2) => {
|
|
116
116
|
var _a2;
|
|
117
|
-
const
|
|
118
|
-
return d(), s("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (d(), c(
|
|
119
|
-
"" !== pe.value ? (
|
|
120
|
-
Ce(
|
|
121
|
-
}) : E(
|
|
122
|
-
Ce(
|
|
117
|
+
const t2 = o("el-input"), n2 = o("el-button"), l2 = o("SuperIcon"), u2 = o("el-tree");
|
|
118
|
+
return d(), s("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (d(), c(t2, { key: 0, modelValue: de.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => de.value = e4), style: { width: "100%" }, placeholder: r(D)("superPageRuntimeMessage.pleaseInputSearchCondition") }, null, 8, ["modelValue", "placeholder"])) : p("", true), ue.value ? (d(), c(u2, { key: 1, ref_key: "menuTreeRef", ref: te, style: g(r(ee)), load: fe, data: oe.value, "node-key": "nodeId", props: le.value, "default-expand-all": ne.value.defaultExpandAll, "expand-on-click-node": ne.value.expandOnClickNode, indent: ne.value.retractWidth ? ne.value.retractWidth : 18, accordion: ne.value.accordion, "show-checkbox": !!ne.value.showCheckbox, "highlight-current": "", lazy: Q.value, "filter-node-method": ve, onNodeClick: ge, onNodeContextmenu: he }, { default: f(({ node: u3, data: o2 }) => [o2.nodeId === re.value ? (d(), s("div", W, [m(t2, { modelValue: pe.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e4) => pe.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
|
|
119
|
+
"" !== pe.value ? (e5.data.name = pe.value, ce.value && e5.data.nodeId === ce.value ? b(e5, X.configure, X.pageContext).then((a3) => {
|
|
120
|
+
Ce(e5, a3.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
121
|
+
}) : E(e5, X.configure, X.pageContext).then((a3) => {
|
|
122
|
+
Ce(e5, a3.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
123
123
|
})) : _.warning(D("superPageRuntimeMessage.pleaseInputNodeName"));
|
|
124
|
-
})(
|
|
125
|
-
ce.value &&
|
|
126
|
-
})(
|
|
127
|
-
if (me.value && "standard" ===
|
|
128
|
-
else if ("delete" ===
|
|
129
|
-
Ne(
|
|
124
|
+
})(u3) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.save")), 1)]), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e4) => {
|
|
125
|
+
ce.value && e4.data.nodeId === ce.value && te.value.remove(e4), xe();
|
|
126
|
+
})(u3, e3.configure, e3.pageContext) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.undo")), 1)]), _: 2 }, 1032, ["onClick"])])])) : (d(), s("span", { key: 1, title: u3.label, class: "ellipsis" }, [o2.iconValue ? (d(), c(l2, { key: 0, iconType: o2.iconType, iconValue: o2.iconValue }, null, 8, ["iconType", "iconValue"])) : ne.value.iconValue ? (d(), c(l2, { key: 1, iconType: ne.value.iconType, iconValue: ne.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (d(), s(x, { key: 2 }, [o2.isLeaf ? (d(), s("div", H, [a2[3] || (a2[3] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])) : (d(), s("div", B, [h("div", O, [a2[2] || (a2[2] = h("img", { src: M, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])]))], 64))], 8, z))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: A, class: "context-menu" }, [(d(true), s(x, null, k(q.value, (e4, a3) => (d(), s("li", { key: a3, tabindex: "-1", class: "menu__item", onClick: (a4) => ((e5) => {
|
|
127
|
+
if (me.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) re.value = me.value.data.nodeId, pe.value = me.value.data.name;
|
|
128
|
+
else if ("delete" === e5.standardEvent) me.value.childNodes && me.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = D("superPageRuntimeMessage.confirmDeleteNodeWithChildren")), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
|
|
129
|
+
Ne(e5);
|
|
130
130
|
}).catch(() => {
|
|
131
131
|
me.value = null;
|
|
132
|
-
})) : Ne(
|
|
132
|
+
})) : Ne(e5);
|
|
133
133
|
else {
|
|
134
134
|
const a5 = ke();
|
|
135
|
-
re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" ===
|
|
135
|
+
re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" === e5.standardEvent ? (a5.isLeaf = me.value.data.isLeaf, me.value.parent && me.value.parent.level > 0 ? te.value.append(a5, me.value.parent) : oe.value.push(a5)) : "addChildNode" === e5.standardEvent && (a5.isLeaf = true, me.value.data.isLeaf = false, te.value.append(a5, me.value), te.value.setCurrentKey(a5.nodeId, true));
|
|
136
136
|
}
|
|
137
|
-
})(
|
|
137
|
+
})(e4) }, [h("span", null, C(e4.name), 1)], 8, U))), 128))], 512)], 512), [[N, F.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
138
138
|
};
|
|
139
139
|
} });
|
|
140
140
|
export {
|
|
@@ -56,9 +56,9 @@ const z = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
56
56
|
});
|
|
57
57
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
58
58
|
}
|
|
59
|
-
} }), (
|
|
60
|
-
const
|
|
61
|
-
return i(), u(
|
|
59
|
+
} }), (e3, t2) => {
|
|
60
|
+
const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
|
|
61
|
+
return i(), u(n2, { ref_key: "formItemRef", ref: X, class: s(c(F) + (E.value ? " " + E.value : "")), required: !!B.value.required, "label-width": B.value.labelWidth, style: r(c(T)) }, p({ default: f(() => [g(o2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Z, style: r({ ...c(U), ...c(W) }), class: "amb-form-item-label" }, y(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
|
|
62
62
|
};
|
|
63
63
|
} });
|
|
64
64
|
export {
|
|
@@ -28,9 +28,9 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
|
|
|
28
28
|
const r2 = l2.indexOf(h);
|
|
29
29
|
e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
|
|
30
30
|
} else y(c, d, e3);
|
|
31
|
-
} })), (
|
|
32
|
-
const
|
|
33
|
-
return p(), t(o, null, ["radio" ===
|
|
31
|
+
} })), (e3, l2) => {
|
|
32
|
+
const s2 = r("el-radio"), y2 = r("el-checkbox");
|
|
33
|
+
return p(), t(o, null, ["radio" === e3.property.prefixType ? (p(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: i(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e3.property.prefixType ? (p(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
|
|
34
34
|
};
|
|
35
35
|
} });
|
|
36
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as f, unref as m, createSlots as d, withCtx as g, resolveDynamicComponent as v, createElementVNode as C, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as b, getVariableValue as h, formatVariableValue as j, getFormPropName as R, setVariableValueWithProp as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as V, handleEvent as _ } from "../../../../utils/events/event-util.js";
|
|
@@ -24,7 +24,7 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
24
24
|
k(H, e3, t2);
|
|
25
25
|
}
|
|
26
26
|
function T(e3) {
|
|
27
|
-
q.isHasFieldAuthPermission(G.configure)
|
|
27
|
+
q.isHasFieldAuthPermission(G.configure) && D(G.pageContext, e3);
|
|
28
28
|
}
|
|
29
29
|
function X() {
|
|
30
30
|
const e3 = G.pageContext.tableUuids;
|
|
@@ -43,7 +43,7 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
43
43
|
const t2 = e3.result;
|
|
44
44
|
b(H, P, t2);
|
|
45
45
|
}), U.$on(Z.value + "-pickFileDone", (e3) => {
|
|
46
|
-
|
|
46
|
+
ee.value.pickFileDone(e3);
|
|
47
47
|
}), n(() => {
|
|
48
48
|
const e3 = I.value;
|
|
49
49
|
V(e3, G.pageContext, G.configure, { formItemRef: te.value, componentRef: ee.value, titleRef: oe.value, value: e3, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
|
|
@@ -59,9 +59,9 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
59
59
|
return ee.value && "function" == typeof ee.value[e3];
|
|
60
60
|
}, addRequiredClass: function() {
|
|
61
61
|
requiredClass.value = addRequiredClassUtil();
|
|
62
|
-
} }), (
|
|
63
|
-
const
|
|
64
|
-
return K.value.tittleShow ? (p(), l(
|
|
62
|
+
} }), (e3, t2) => {
|
|
63
|
+
const o2 = u("el-form-item");
|
|
64
|
+
return K.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: te, required: K.value.required, class: f(m(W)), "label-width": K.value.labelWidth, style: c(m(B)) }, d({ default: g(() => [N.value ? (p(), r("div", $, [(p(), l(v(N.value), { ref_key: "customRef", ref: ee, size: K.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(R)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(L), modelValue: I.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => I.value = e4), disabled: "disabled" === K.value.state, "additional-param-map": m(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: t2[1] || (t2[1] = (t3) => m(_)(I.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 2 }, [K.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: oe, style: c({ ...m(J) }), class: "amb-form-item-label" }, x(m(S)(K.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : N.value ? (p(), r("div", O, [(p(), l(v(N.value), { ref_key: "customRef", ref: ee, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(R)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(L), modelValue: I.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => I.value = e4), disabled: "disabled" === K.value.state, "additional-param-map": m(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: t2[3] || (t2[3] = (t3) => m(_)(I.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
65
65
|
};
|
|
66
66
|
} });
|
|
67
67
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as d, unref as s, createSlots as c, withCtx as p, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import { getModelFieldFromPageContext as
|
|
5
|
-
import { handleAfterInitEvent as
|
|
4
|
+
import { getModelFieldFromPageContext as b, getValueFromVariable as x, setVariableValue as V, getVariableValue as T, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent as F, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import j from "../common/title-suffix-element.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import { $t as
|
|
7
|
+
import w from "dayjs";
|
|
8
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
9
9
|
import { addRequiredClassUtil as D } from "../../../../utils/common-util.js";
|
|
10
|
-
import { DatePickerRange as
|
|
11
|
-
const
|
|
10
|
+
import { DatePickerRange as L, DateQuarterPicker as O } from "agilebuilder-ui";
|
|
11
|
+
const Y = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: Y2 }) {
|
|
12
12
|
var _a;
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
if (
|
|
16
|
-
const e3 =
|
|
13
|
+
const _ = e2, q = a(null), S = _.pageContext.entity ? _.pageContext.entity : {}, B = _.configure.runtime ? _.configure.runtime : {}, E = B.style, U = B.class, A = B.headerStyle, I = B.titleExceedStyle, M = a(B.props ? B.props : {});
|
|
14
|
+
let G = y(_.pageContext, _.configure, M.value.prop);
|
|
15
|
+
if (_.pageContext.modelFieldsMap && G && G.length > 0 && "data" === G[0]) {
|
|
16
|
+
const e3 = b(G, _.pageContext);
|
|
17
17
|
e3 && function(e4) {
|
|
18
18
|
const a2 = e4.dataType;
|
|
19
|
-
k(a2) && ("year" ===
|
|
19
|
+
k(a2) && ("year" === M.value.dateType && "YYYY" === M.value.valueFormat || "month" === M.value.dateType && "YYYY-MM" === M.value.valueFormat) && (M.value.valueFormat = "x");
|
|
20
20
|
}(e3);
|
|
21
21
|
}
|
|
22
|
-
let
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
let e3 =
|
|
26
|
-
e3 && e3.startsWith("${") || (e3 = "${page." +
|
|
27
|
-
const a2 =
|
|
28
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
29
|
-
const e4 =
|
|
30
|
-
if (null != e4 && "" !== e4)
|
|
31
|
-
else if (((_a =
|
|
32
|
-
const e5 =
|
|
22
|
+
let N = null, W = false;
|
|
23
|
+
if (M.value.dateType && M.value.dateType.includes("range")) {
|
|
24
|
+
W = true;
|
|
25
|
+
let e3 = M.value.prop2;
|
|
26
|
+
e3 && e3.startsWith("${") || (e3 = "${page." + _.configure.uuid + "-2}");
|
|
27
|
+
const a2 = x(S, e3, null);
|
|
28
|
+
if (e3 = e3.substring(2, e3.length - 1), N = e3.split("."), !(a2 || S.data && (S.data.id || S.data.ID)) && M.value.defaultValue2) {
|
|
29
|
+
const e4 = x(S, M.value.defaultValue2);
|
|
30
|
+
if (null != e4 && "" !== e4) V(S, N, e4);
|
|
31
|
+
else if (((_a = M.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
|
|
32
|
+
const e5 = M.value.moreDefaultValue2;
|
|
33
33
|
for (let a3 = 0; a3 < e5.length; a3++) {
|
|
34
|
-
const l2 =
|
|
34
|
+
const l2 = x(S, e5[a3]);
|
|
35
35
|
if (null != l2 && "" !== l2) {
|
|
36
|
-
|
|
36
|
+
V(S, N, l2);
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
43
|
+
const $ = a(null), H = a(null), J = a(null);
|
|
44
|
+
function K(e3, a2) {
|
|
45
45
|
if (!e3) return e3;
|
|
46
46
|
if (a2) {
|
|
47
47
|
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
48
48
|
try {
|
|
49
|
-
const l2 =
|
|
49
|
+
const l2 = w(e3);
|
|
50
50
|
let t2 = null;
|
|
51
|
-
return t2 = "x" === a2 ? l2.toDate().getTime() :
|
|
51
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : w(e3).format(a2), "Invalid Date" === t2 ? e3 : t2;
|
|
52
52
|
} catch (a3) {
|
|
53
|
-
return
|
|
53
|
+
return e3;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return e3;
|
|
@@ -58,45 +58,87 @@ const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
58
58
|
if (l(() => {
|
|
59
59
|
t(() => {
|
|
60
60
|
const e3 = Q.value;
|
|
61
|
-
|
|
61
|
+
F(e3, _.pageContext, _.configure, { formItemRef: $.value, componentRef: H.value, titleRef: J.value, value: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
const e3 =
|
|
65
|
-
e3 !== a2 &&
|
|
63
|
+
}), G) {
|
|
64
|
+
const e3 = T(S, G), a2 = K(e3, M.value.valueFormat);
|
|
65
|
+
e3 !== a2 && V(S, G, a2);
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
const e3 =
|
|
69
|
-
e3 !== a2 &&
|
|
67
|
+
if (N) {
|
|
68
|
+
const e3 = T(S, N), a2 = K(e3, M.value.valueFormat);
|
|
69
|
+
e3 !== a2 && V(S, N, a2);
|
|
70
70
|
}
|
|
71
|
-
const Q =
|
|
72
|
-
if (
|
|
71
|
+
const Q = r({ get() {
|
|
72
|
+
if (W) {
|
|
73
73
|
const e3 = [];
|
|
74
|
-
let a2 =
|
|
75
|
-
e3.push(
|
|
76
|
-
let l2 =
|
|
77
|
-
return e3.push(
|
|
74
|
+
let a2 = T(S, G);
|
|
75
|
+
e3.push(K(a2, M.value.valueFormat));
|
|
76
|
+
let l2 = T(S, N);
|
|
77
|
+
return e3.push(K(l2, M.value.valueFormat)), e3;
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return K(T(S, G), M.value.valueFormat);
|
|
80
80
|
}, set(e3) {
|
|
81
|
-
|
|
82
|
-
} }), X = a(C(
|
|
83
|
-
if (
|
|
84
|
-
const e3 = z(
|
|
81
|
+
W ? Array.isArray(e3) ? (V(S, G, e3[0]), V(S, N, e3[1]), q.value = "") : null === e3 && (V(S, G, null), V(S, N, null)) : (V(S, G, e3), null != e3 && (q.value = ""));
|
|
82
|
+
} }), X = a(C(M.value.dateScopeDetails, M.value.sourceType, M.value.dateType));
|
|
83
|
+
if (M.value.shortcutsFunc) {
|
|
84
|
+
const e3 = z(_.pageContext, M.value.shortcutsFunc);
|
|
85
85
|
if (e3) {
|
|
86
|
-
let a2 = e3.apply(e3, [{ pageContext:
|
|
86
|
+
let a2 = e3.apply(e3, [{ pageContext: _.pageContext, configureObj: _.configure }]);
|
|
87
87
|
if (a2) {
|
|
88
88
|
Array.isArray(a2) || (a2 = [a2]), X.value || (X.value = []);
|
|
89
89
|
for (let e4 of a2) e4.text && e4.value && X.value.push(e4);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const t2 =
|
|
97
|
-
|
|
93
|
+
function Z(e3, a2) {
|
|
94
|
+
const l2 = w(e3);
|
|
95
|
+
if (!l2.isValid()) return null;
|
|
96
|
+
const t2 = l2.startOf("day");
|
|
97
|
+
switch (a2) {
|
|
98
|
+
case "week":
|
|
99
|
+
return t2.subtract((t2.day() + 6) % 7, "day");
|
|
100
|
+
case "month":
|
|
101
|
+
return t2.startOf("month");
|
|
102
|
+
case "quarter":
|
|
103
|
+
return t2.startOf("month").subtract(t2.month() % 3, "month");
|
|
104
|
+
case "year":
|
|
105
|
+
return t2.startOf("year");
|
|
106
|
+
default:
|
|
107
|
+
return t2;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function ee(e3) {
|
|
111
|
+
const a2 = M.value || {};
|
|
112
|
+
if (true !== a2.dateLimitEnabled) return false;
|
|
113
|
+
let l2 = /* @__PURE__ */ new Date();
|
|
114
|
+
if ("variable" === a2.dateLimitBase) {
|
|
115
|
+
if (!a2.dateLimitVariable) return false;
|
|
116
|
+
const e4 = _.pageContext.entity ? _.pageContext.entity : {};
|
|
117
|
+
if (l2 = x(e4, a2.dateLimitVariable), null == l2 || "" === l2) return false;
|
|
118
|
+
}
|
|
119
|
+
const t2 = a2.dateLimitUnit || "day", r2 = Z(e3, t2), o2 = Z(l2, t2);
|
|
120
|
+
if (!r2 || !o2) return false;
|
|
121
|
+
const u2 = r2.valueOf(), n2 = o2.valueOf();
|
|
122
|
+
switch (a2.dateLimitOperator || "GE") {
|
|
123
|
+
case "GT":
|
|
124
|
+
return u2 <= n2;
|
|
125
|
+
case "GE":
|
|
126
|
+
return u2 < n2;
|
|
127
|
+
case "LT":
|
|
128
|
+
return u2 >= n2;
|
|
129
|
+
case "LE":
|
|
130
|
+
return u2 > n2;
|
|
131
|
+
default:
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return Y2({ addRequiredClass: function() {
|
|
136
|
+
q.value = D();
|
|
137
|
+
} }), (e3, a2) => {
|
|
138
|
+
const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
|
|
139
|
+
return n(), u(r2, { ref_key: "formItemRef", ref: $, required: M.value.required, class: d(s(U) + (q.value ? " " + q.value : "")), "label-width": M.value.labelWidth, style: i(s(E)) }, c({ default: p(() => ["time" == M.value.dateType || "timerange" == M.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: H, "is-range": "timerange" == M.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: M.value.clearable, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, size: M.value.size, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), "unlink-panels": true, format: M.value.format, "value-format": M.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => Q.value = e4), shortcuts: X.value, type: M.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== M.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes(M.value.dateType) ? (n(), u(s(L), { key: 1, modelValue: Q.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => Q.value = e4), type: M.value.dateType, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, clearable: M.value.clearable, format: M.value.format, "value-format": M.value.valueFormat, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), size: M.value.size, shortcuts: X.value, "disabled-date": ee, onChange: a2[8] || (a2[8] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === M.value.dateType ? (n(), u(s(O), { key: 2, modelValue: Q.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e4) => Q.value = e4), type: M.value.dateType, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, clearable: M.value.clearable, format: M.value.format, "value-format": M.value.valueFormat, placeholder: s(R)(M.value.placeholder), size: M.value.size, "disabled-date": ee, onChange: a2[15] || (a2[15] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[16] || (a2[16] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[17] || (a2[17] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onClear: a2[18] || (a2[18] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), u(t2, { key: 3, ref_key: "componentRef", ref: H, clearable: M.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, size: M.value.size, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), format: M.value.format, "value-format": M.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[19] || (a2[19] = (e4) => Q.value = e4), shortcuts: X.value, type: M.value.dateType, "disabled-date": ee, onChange: a2[20] || (a2[20] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[21] || (a2[21] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[22] || (a2[22] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[23] || (a2[23] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[24] || (a2[24] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[25] || (a2[25] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [M.value.tittleShow ? { name: "label", fn: p(() => [v("div", { ref_key: "titleRef", ref: J, style: i({ ...s(A), ...s(I) }) }, [M.value.prefixType ? (n(), u(j, { key: 0, pageContext: e3.pageContext, property: M.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(s(R)(M.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
98
140
|
};
|
|
99
141
|
} });
|
|
100
142
|
export {
|
|
101
|
-
|
|
143
|
+
Y as default
|
|
102
144
|
};
|