@farris/ui-vue 1.6.5-beta.8 → 1.6.5
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/components/avatar/index.esm.js +334 -334
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +4 -4
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +136 -133
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +4 -4
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3416 -3350
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +4 -4
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +170 -170
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +699 -696
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +446 -446
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +377 -374
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +204 -204
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +427 -427
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +212 -212
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +160 -160
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +314 -314
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +468 -463
- package/components/order/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +215 -215
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4 -4
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +944 -941
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +498 -492
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +211 -211
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +377 -374
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +78 -77
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +579 -579
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +219 -219
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +382 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15439 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22330 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1098 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4689 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6985 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +9619 -9535
- package/farris.all.umd.cjs +24 -24
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Dn = Object.defineProperty;
|
|
2
2
|
var Vn = (n, e, t) => e in n ? Dn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Q = (n, e, t) => Vn(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { ref as
|
|
4
|
+
import { ref as M, computed as H, defineComponent as Ee, createVNode as E, inject as st, onMounted as et, watch as Fe, Fragment as lt, reactive as Re, createApp as nn, onUnmounted as gt, Transition as on, mergeProps as Vt, nextTick as $t, createTextVNode as ft, onBeforeMount as $n, Teleport as Rn, shallowRef as jn, render as Ot, h as An, cloneVNode as zn } from "vue";
|
|
5
5
|
import { cloneDeep as ht, isPlainObject as Ht, isUndefined as Ve } from "lodash-es";
|
|
6
6
|
import { getSchemaByTypeForDesigner as Un, schemaMap as qn, createPropsResolver as an, resolveAppearance as Wn } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
import { useI18n as Rt } from "vue-i18n";
|
|
@@ -523,7 +523,7 @@ function cn(n, e, t) {
|
|
|
523
523
|
}
|
|
524
524
|
function f(d, v, g, C, B, A = "", L = "") {
|
|
525
525
|
return Object.keys(d).map((b) => {
|
|
526
|
-
const O =
|
|
526
|
+
const O = M(1), P = b, $ = d[b], X = Object.keys($), S = $.title, N = $.type, j = i.get(N) || { type: "input-group", enableClear: !1 }, h = $.editor ? Object.assign({}, j, $.editor) : Object.assign({}, j), y = u(X, $, v), k = c(X, $, v);
|
|
527
527
|
h.readonly = h.readonly === void 0 ? k() : h.readonly;
|
|
528
528
|
const _ = $.type === "cascade" ? f($.properties, v, g, C, B, A, L) : [], I = !0;
|
|
529
529
|
let T = s($, L);
|
|
@@ -540,7 +540,7 @@ function cn(n, e, t) {
|
|
|
540
540
|
set(ie) {
|
|
541
541
|
O.value += 1, T && T.convertTo ? (T.convertTo(C, b, ie, B, A), T.convertTo(g, b, ie, B, A)) : (C[b] = ie, g[b] = ie);
|
|
542
542
|
}
|
|
543
|
-
}), { refreshPanelAfterChanged:
|
|
543
|
+
}), { refreshPanelAfterChanged: F, description: z, isExpand: K, parentPropertyID: te } = $, J = { propertyID: P, propertyName: S, propertyType: N, propertyValue: R, editor: h, visible: y, readonly: k, cascadeConfig: _, hideCascadeTitle: I, refreshPanelAfterChanged: F, description: z, isExpand: K, parentPropertyID: te };
|
|
544
544
|
return v[P] = J, J;
|
|
545
545
|
});
|
|
546
546
|
}
|
|
@@ -554,12 +554,12 @@ function cn(n, e, t) {
|
|
|
554
554
|
function m(d, v, g, C, B = "") {
|
|
555
555
|
const A = v.$ref.schema, L = v.$ref.converter, x = g[A], b = x.type, O = t(x), P = {}, $ = n[b];
|
|
556
556
|
if ($ && $.categories) {
|
|
557
|
-
const X = $.categories[d],
|
|
557
|
+
const X = $.categories[d], S = X == null ? void 0 : X.title;
|
|
558
558
|
L && Object.keys(X.properties).forEach((h) => {
|
|
559
559
|
X.properties[h].$converter = L;
|
|
560
560
|
});
|
|
561
561
|
const N = (X == null ? void 0 : X.properties) || {}, j = f(N, P, O, x, C, B);
|
|
562
|
-
return { categoryId: d, categoryName:
|
|
562
|
+
return { categoryId: d, categoryName: S, properties: j };
|
|
563
563
|
}
|
|
564
564
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
565
565
|
}
|
|
@@ -574,8 +574,8 @@ function cn(n, e, t) {
|
|
|
574
574
|
O.push(m(P, $, d, v, C));
|
|
575
575
|
return;
|
|
576
576
|
}
|
|
577
|
-
const X = $ == null ? void 0 : $.title,
|
|
578
|
-
O.push({ categoryId: P, categoryName: X, tabId:
|
|
577
|
+
const X = $ == null ? void 0 : $.title, S = $ == null ? void 0 : $.tabId, N = $ == null ? void 0 : $.tabName, j = $ == null ? void 0 : $.hide, h = $ == null ? void 0 : $.hideTitle, y = f($.properties || {}, x, L, d, v, C, $.$converter), { setPropertyRelates: k } = $, _ = $ == null ? void 0 : $.parentPropertyID;
|
|
578
|
+
O.push({ categoryId: P, categoryName: X, tabId: S, tabName: N, hide: j, properties: y, hideTitle: h, setPropertyRelates: k, parentPropertyID: _ });
|
|
579
579
|
}), O;
|
|
580
580
|
}
|
|
581
581
|
return [];
|
|
@@ -691,7 +691,7 @@ const si = "https://json-schema.org/draft/2020-12/schema", li = "https://farris-
|
|
|
691
691
|
};
|
|
692
692
|
return t(i, n.customClass), i;
|
|
693
693
|
});
|
|
694
|
-
return () =>
|
|
694
|
+
return () => E("div", {
|
|
695
695
|
class: o.value,
|
|
696
696
|
style: n.customStyle
|
|
697
697
|
}, [e.slots.default && e.slots.default()]);
|
|
@@ -762,15 +762,15 @@ const si = "https://json-schema.org/draft/2020-12/schema", li = "https://farris-
|
|
|
762
762
|
props: zt,
|
|
763
763
|
emits: [],
|
|
764
764
|
setup(n, e) {
|
|
765
|
-
return () =>
|
|
765
|
+
return () => E("div", {
|
|
766
766
|
class: n.customClass,
|
|
767
767
|
style: n.customStyle
|
|
768
768
|
}, [e.slots.default && e.slots.default()]);
|
|
769
769
|
}
|
|
770
770
|
});
|
|
771
771
|
function yn(n, e, t) {
|
|
772
|
-
var
|
|
773
|
-
const o = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", a =
|
|
772
|
+
var S;
|
|
773
|
+
const o = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", a = M();
|
|
774
774
|
let r;
|
|
775
775
|
function u() {
|
|
776
776
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
@@ -789,7 +789,7 @@ function yn(n, e, t) {
|
|
|
789
789
|
return null;
|
|
790
790
|
if (N.value.schema && N.value.schema.type === "component")
|
|
791
791
|
return N.value;
|
|
792
|
-
const j =
|
|
792
|
+
const j = M(N == null ? void 0 : N.value.parent), h = l(j);
|
|
793
793
|
return h || null;
|
|
794
794
|
}
|
|
795
795
|
function m(N = e) {
|
|
@@ -870,8 +870,8 @@ function yn(n, e, t) {
|
|
|
870
870
|
if (t != null && t.getComponentTitle)
|
|
871
871
|
j = t.getComponentTitle();
|
|
872
872
|
else {
|
|
873
|
-
const { text: k, title: _, label: I, mainTitle: T, name: R, type:
|
|
874
|
-
j = k || _ || I || T || R || ((y = D[
|
|
873
|
+
const { text: k, title: _, label: I, mainTitle: T, name: R, type: F } = e.schema;
|
|
874
|
+
j = k || _ || I || T || R || ((y = D[F]) == null ? void 0 : y.name);
|
|
875
875
|
}
|
|
876
876
|
j && r.getControlBasicInfoMap().set(e.schema.id, {
|
|
877
877
|
componentTitle: j,
|
|
@@ -883,8 +883,8 @@ function yn(n, e, t) {
|
|
|
883
883
|
const { changeObject: j } = N, { propertyID: h, propertyValue: y } = j;
|
|
884
884
|
if (["text", "title", "label", "name", "mainTitle"].includes((k = N == null ? void 0 : N.changeObject) == null ? void 0 : k.propertyID) && h && y && (P(), r)) {
|
|
885
885
|
const _ = r.getControlBasicInfoMap(), I = _.keys().toArray().filter((T) => {
|
|
886
|
-
var R,
|
|
887
|
-
return ((R = _.get(T)) == null ? void 0 : R.reliedComponentId) === ((
|
|
886
|
+
var R, F;
|
|
887
|
+
return ((R = _.get(T)) == null ? void 0 : R.reliedComponentId) === ((F = e == null ? void 0 : e.schema) == null ? void 0 : F.id);
|
|
888
888
|
});
|
|
889
889
|
I != null && I.length && I.forEach((T) => {
|
|
890
890
|
const R = _.get(T).parentPathName.split(" > ");
|
|
@@ -903,7 +903,7 @@ function yn(n, e, t) {
|
|
|
903
903
|
canNested: !f(),
|
|
904
904
|
contents: e == null ? void 0 : e.schema.contents,
|
|
905
905
|
elementRef: n,
|
|
906
|
-
parent: (
|
|
906
|
+
parent: (S = e == null ? void 0 : e.parent) == null ? void 0 : S.componentInstance,
|
|
907
907
|
schema: e == null ? void 0 : e.schema,
|
|
908
908
|
styles: o,
|
|
909
909
|
designerClass: i,
|
|
@@ -916,8 +916,8 @@ function yn(n, e, t) {
|
|
|
916
916
|
onAcceptMovedChildElement: g,
|
|
917
917
|
onChildElementMovedOut: B,
|
|
918
918
|
addNewChildComponentSchema: C,
|
|
919
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
920
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
919
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
|
|
920
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1),
|
|
921
921
|
onRemoveComponent: b,
|
|
922
922
|
getCustomButtons: O,
|
|
923
923
|
onPropertyChanged: X,
|
|
@@ -925,7 +925,7 @@ function yn(n, e, t) {
|
|
|
925
925
|
updateContextSchema: e == null ? void 0 : e.updateContextSchema
|
|
926
926
|
}, a;
|
|
927
927
|
}
|
|
928
|
-
const gn =
|
|
928
|
+
const gn = M(0), xi = M(0);
|
|
929
929
|
function bn() {
|
|
930
930
|
xi.value++;
|
|
931
931
|
}
|
|
@@ -1573,7 +1573,7 @@ const Ei = /* @__PURE__ */ Ee({
|
|
|
1573
1573
|
props: At,
|
|
1574
1574
|
emits: [],
|
|
1575
1575
|
setup(n, e) {
|
|
1576
|
-
const t =
|
|
1576
|
+
const t = M(), o = st("design-item-context"), i = st("designer-host-service"), a = Fi(o, i), r = yn(t, o, a);
|
|
1577
1577
|
et(() => {
|
|
1578
1578
|
t.value.componentInstance = r;
|
|
1579
1579
|
}), e.expose(r.value);
|
|
@@ -1587,7 +1587,7 @@ const Ei = /* @__PURE__ */ Ee({
|
|
|
1587
1587
|
};
|
|
1588
1588
|
return u(s, n.customClass), s;
|
|
1589
1589
|
});
|
|
1590
|
-
return () =>
|
|
1590
|
+
return () => E("div", {
|
|
1591
1591
|
ref: t,
|
|
1592
1592
|
class: c.value,
|
|
1593
1593
|
style: "height:inherit;"
|
|
@@ -1648,11 +1648,11 @@ var Bi = { exports: {} };
|
|
|
1648
1648
|
2: [function(t, o, i) {
|
|
1649
1649
|
(function(a) {
|
|
1650
1650
|
var r = t("contra/emitter"), u = t("crossvent"), c = t("./classes"), s = document, f = s.documentElement;
|
|
1651
|
-
function l(
|
|
1651
|
+
function l(S, N) {
|
|
1652
1652
|
var j = arguments.length;
|
|
1653
|
-
j === 1 && Array.isArray(
|
|
1654
|
-
var h, y, k, _, I, T, R,
|
|
1655
|
-
q.moves === void 0 && (q.moves = B), q.accepts === void 0 && (q.accepts = B), q.invalid === void 0 && (q.invalid = nt), q.containers === void 0 && (q.containers =
|
|
1653
|
+
j === 1 && Array.isArray(S) === !1 && (N = S, S = []);
|
|
1654
|
+
var h, y, k, _, I, T, R, F, z, K = null, te, J, ie = !1, re = 0, ee, q = N || {};
|
|
1655
|
+
q.moves === void 0 && (q.moves = B), q.accepts === void 0 && (q.accepts = B), q.invalid === void 0 && (q.invalid = nt), q.containers === void 0 && (q.containers = S || []), q.isContainer === void 0 && (q.isContainer = C), q.copy === void 0 && (q.copy = !1), q.copySortSource === void 0 && (q.copySortSource = !1), q.revertOnSpill === void 0 && (q.revertOnSpill = !1), q.removeOnSpill === void 0 && (q.removeOnSpill = !1), q.direction === void 0 && (q.direction = "vertical"), q.ignoreInputTextSelection === void 0 && (q.ignoreInputTextSelection = !0), q.mirrorContainer === void 0 && (q.mirrorContainer = s.body);
|
|
1656
1656
|
var se = r({
|
|
1657
1657
|
containers: q.containers,
|
|
1658
1658
|
start: xe,
|
|
@@ -1706,7 +1706,7 @@ var Bi = { exports: {} };
|
|
|
1706
1706
|
return;
|
|
1707
1707
|
}
|
|
1708
1708
|
var oe = te;
|
|
1709
|
-
Te(!0), Ye(), ze(), Le(oe), c.add(
|
|
1709
|
+
Te(!0), Ye(), ze(), Le(oe), c.add(F || k, "gu-transit"), It(), xt(), re = 0, ke(w);
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
@@ -1734,14 +1734,14 @@ var Bi = { exports: {} };
|
|
|
1734
1734
|
U && Le(U);
|
|
1735
1735
|
}
|
|
1736
1736
|
function Le(w) {
|
|
1737
|
-
Pt(w.item, w.source) && (
|
|
1737
|
+
Pt(w.item, w.source) && (F = w.item.cloneNode(!0), se.emit("cloned", F, w.item, "copy")), y = w.source, k = w.item, T = R = P(w.item), se.dragging = !0, se.emit("drag", k, y);
|
|
1738
1738
|
}
|
|
1739
1739
|
function nt() {
|
|
1740
1740
|
return !1;
|
|
1741
1741
|
}
|
|
1742
1742
|
function ze() {
|
|
1743
1743
|
if (se.dragging) {
|
|
1744
|
-
var w =
|
|
1744
|
+
var w = F || k;
|
|
1745
1745
|
Qe(w, x(w));
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
@@ -1750,33 +1750,33 @@ var Bi = { exports: {} };
|
|
|
1750
1750
|
}
|
|
1751
1751
|
function De(w) {
|
|
1752
1752
|
if (Be(), !!se.dragging) {
|
|
1753
|
-
var U =
|
|
1754
|
-
ae && (
|
|
1753
|
+
var U = F || k, W = X("clientX", w) || 0, Y = X("clientY", w) || 0, oe = g(h, W, Y), ae = de(oe, W, Y);
|
|
1754
|
+
ae && (F && q.copySortSource || !F || ae !== y) ? Qe(U, ae) : q.removeOnSpill ? Ze() : V();
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
function Qe(w, U) {
|
|
1758
1758
|
var W = x(w);
|
|
1759
|
-
|
|
1759
|
+
F && q.copySortSource && U === y && W.removeChild(k), ue(U) ? se.emit("cancel", w, y) : se.emit("drop", w, U, y, R), ne();
|
|
1760
1760
|
}
|
|
1761
1761
|
function Ze() {
|
|
1762
1762
|
if (se.dragging) {
|
|
1763
|
-
var w =
|
|
1764
|
-
U && U.removeChild(w), se.emit(
|
|
1763
|
+
var w = F || k, U = x(w);
|
|
1764
|
+
U && U.removeChild(w), se.emit(F ? "cancel" : "remove", w, U, y), ne();
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
1767
1767
|
function V(w) {
|
|
1768
1768
|
if (se.dragging) {
|
|
1769
|
-
var U = arguments.length > 0 ? w : q.revertOnSpill, W =
|
|
1770
|
-
oe === !1 && U && (
|
|
1769
|
+
var U = arguments.length > 0 ? w : q.revertOnSpill, W = F || k, Y = x(W), oe = ue(Y);
|
|
1770
|
+
oe === !1 && U && (F ? Y && Y.removeChild(F) : y.insertBefore(W, T)), oe || U ? se.emit("cancel", W, y, y) : se.emit("drop", W, Y, y, R), ne();
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
1773
|
function ne() {
|
|
1774
|
-
var w =
|
|
1775
|
-
Be(), St(), Mt(), w && c.rm(w, "gu-transit"), z && clearTimeout(z), se.dragging = !1, K && se.emit("out", w, K, y), se.emit("dragend", w, re), y = k =
|
|
1774
|
+
var w = F || k;
|
|
1775
|
+
Be(), St(), Mt(), w && c.rm(w, "gu-transit"), z && clearTimeout(z), se.dragging = !1, K && se.emit("out", w, K, y), se.emit("dragend", w, re), y = k = F = T = R = z = K = null;
|
|
1776
1776
|
}
|
|
1777
1777
|
function ue(w, U) {
|
|
1778
1778
|
var W;
|
|
1779
|
-
return U !== void 0 ? W = U : h ? W = R : W = P(
|
|
1779
|
+
return U !== void 0 ? W = U : h ? W = R : W = P(F || k), w === y && W === T;
|
|
1780
1780
|
}
|
|
1781
1781
|
function de(w, U, W) {
|
|
1782
1782
|
for (var Y = w; Y && !oe(); )
|
|
@@ -1796,20 +1796,20 @@ var Bi = { exports: {} };
|
|
|
1796
1796
|
w.preventDefault();
|
|
1797
1797
|
var U = X("clientX", w) || 0, W = X("clientY", w) || 0;
|
|
1798
1798
|
h.style.left = U - 2 + "px", h.style.top = W - 2 + "px";
|
|
1799
|
-
var Y =
|
|
1799
|
+
var Y = F || k, oe = g(h, U, W), ae = de(oe, U, W), we = ae !== null && ae !== K;
|
|
1800
1800
|
(we || ae === null) && (be(), K = ae, Se()), kt(oe, W);
|
|
1801
1801
|
var ye = x(Y);
|
|
1802
|
-
if (ae === y &&
|
|
1802
|
+
if (ae === y && F && !q.copySortSource) {
|
|
1803
1803
|
ye && ye.removeChild(Y);
|
|
1804
1804
|
return;
|
|
1805
1805
|
}
|
|
1806
1806
|
var ge, Ie = ut(ae, oe);
|
|
1807
1807
|
if (ie = ot(Ie, ae), Ie !== null)
|
|
1808
1808
|
ge = dt(ae, Ie, U, W);
|
|
1809
|
-
else if (q.revertOnSpill === !0 && !
|
|
1809
|
+
else if (q.revertOnSpill === !0 && !F)
|
|
1810
1810
|
ge = T, ae = y;
|
|
1811
1811
|
else {
|
|
1812
|
-
|
|
1812
|
+
F && ye && ye.removeChild(Y), F && J && (J.style.display = "none");
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
1815
|
J.style.display = "block", Ct(ge, Y, we), ge ? Et(Ie, ge) : Bt(ae);
|
|
@@ -1950,7 +1950,7 @@ var Bi = { exports: {} };
|
|
|
1950
1950
|
return typeof q.copy == "boolean" ? q.copy : q.copy(w, U);
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
|
-
function m(
|
|
1953
|
+
function m(S) {
|
|
1954
1954
|
const N = Array.from(window.scrollContainerList);
|
|
1955
1955
|
if (N.length === 1) {
|
|
1956
1956
|
const h = Array.from(window.scrollContainerList)[0];
|
|
@@ -1958,18 +1958,18 @@ var Bi = { exports: {} };
|
|
|
1958
1958
|
}
|
|
1959
1959
|
const j = p(N);
|
|
1960
1960
|
for (const h of j)
|
|
1961
|
-
if (h.contains(
|
|
1961
|
+
if (h.contains(S))
|
|
1962
1962
|
return h;
|
|
1963
1963
|
return null;
|
|
1964
1964
|
}
|
|
1965
|
-
function p(
|
|
1965
|
+
function p(S) {
|
|
1966
1966
|
const N = [];
|
|
1967
|
-
return
|
|
1967
|
+
return S.forEach((j) => {
|
|
1968
1968
|
const h = document.getElementById(j);
|
|
1969
1969
|
h && N.push(h);
|
|
1970
1970
|
}), N.sort((j, h) => j.contains(h) ? 1 : h.contains(j) ? -1 : 0), N;
|
|
1971
1971
|
}
|
|
1972
|
-
function d(
|
|
1972
|
+
function d(S, N, j, h) {
|
|
1973
1973
|
var y = {
|
|
1974
1974
|
mouseup: "touchend",
|
|
1975
1975
|
mousedown: "touchstart",
|
|
@@ -1983,23 +1983,23 @@ var Bi = { exports: {} };
|
|
|
1983
1983
|
mousedown: "MSPointerDown",
|
|
1984
1984
|
mousemove: "MSPointerMove"
|
|
1985
1985
|
};
|
|
1986
|
-
a.navigator.pointerEnabled ? u[N](
|
|
1986
|
+
a.navigator.pointerEnabled ? u[N](S, k[j], h) : a.navigator.msPointerEnabled ? u[N](S, _[j], h) : (u[N](S, y[j], h), u[N](S, j, h));
|
|
1987
1987
|
}
|
|
1988
|
-
function v(
|
|
1989
|
-
if (
|
|
1990
|
-
return
|
|
1991
|
-
if (
|
|
1992
|
-
return
|
|
1993
|
-
if (
|
|
1994
|
-
return
|
|
1995
|
-
var N =
|
|
1988
|
+
function v(S) {
|
|
1989
|
+
if (S.touches !== void 0)
|
|
1990
|
+
return S.touches.length;
|
|
1991
|
+
if (S.which !== void 0 && S.which !== 0)
|
|
1992
|
+
return S.which;
|
|
1993
|
+
if (S.buttons !== void 0)
|
|
1994
|
+
return S.buttons;
|
|
1995
|
+
var N = S.button;
|
|
1996
1996
|
if (N !== void 0)
|
|
1997
1997
|
return N & 1 ? 1 : N & 2 ? 3 : N & 4 ? 2 : 0;
|
|
1998
1998
|
}
|
|
1999
|
-
function g(
|
|
2000
|
-
|
|
2001
|
-
var h =
|
|
2002
|
-
return
|
|
1999
|
+
function g(S, N, j) {
|
|
2000
|
+
S = S || {};
|
|
2001
|
+
var h = S.className || "", y;
|
|
2002
|
+
return S.className += " gu-hide", y = s.elementFromPoint(N, j), S.className = h, y;
|
|
2003
2003
|
}
|
|
2004
2004
|
function C() {
|
|
2005
2005
|
return !1;
|
|
@@ -2007,42 +2007,42 @@ var Bi = { exports: {} };
|
|
|
2007
2007
|
function B() {
|
|
2008
2008
|
return !0;
|
|
2009
2009
|
}
|
|
2010
|
-
function A(
|
|
2011
|
-
return
|
|
2010
|
+
function A(S) {
|
|
2011
|
+
return S.width || S.right - S.left;
|
|
2012
2012
|
}
|
|
2013
|
-
function L(
|
|
2014
|
-
return
|
|
2013
|
+
function L(S) {
|
|
2014
|
+
return S.height || S.bottom - S.top;
|
|
2015
2015
|
}
|
|
2016
|
-
function x(
|
|
2017
|
-
return
|
|
2016
|
+
function x(S) {
|
|
2017
|
+
return S.parentNode === s ? null : S.parentNode;
|
|
2018
2018
|
}
|
|
2019
|
-
function b(
|
|
2020
|
-
return
|
|
2019
|
+
function b(S) {
|
|
2020
|
+
return S.tagName === "INPUT" || S.tagName === "TEXTAREA" || S.tagName === "SELECT" || O(S);
|
|
2021
2021
|
}
|
|
2022
|
-
function O(
|
|
2023
|
-
return !
|
|
2022
|
+
function O(S) {
|
|
2023
|
+
return !S || S.contentEditable === "false" ? !1 : S.contentEditable === "true" ? !0 : O(x(S));
|
|
2024
2024
|
}
|
|
2025
|
-
function P(
|
|
2026
|
-
return
|
|
2025
|
+
function P(S) {
|
|
2026
|
+
return S.nextElementSibling || N();
|
|
2027
2027
|
function N() {
|
|
2028
|
-
var j =
|
|
2028
|
+
var j = S;
|
|
2029
2029
|
do
|
|
2030
2030
|
j = j.nextSibling;
|
|
2031
2031
|
while (j && j.nodeType !== 1);
|
|
2032
2032
|
return j;
|
|
2033
2033
|
}
|
|
2034
2034
|
}
|
|
2035
|
-
function $(
|
|
2036
|
-
return
|
|
2035
|
+
function $(S) {
|
|
2036
|
+
return S.targetTouches && S.targetTouches.length ? S.targetTouches[0] : S.changedTouches && S.changedTouches.length ? S.changedTouches[0] : S;
|
|
2037
2037
|
}
|
|
2038
|
-
function X(
|
|
2038
|
+
function X(S, N) {
|
|
2039
2039
|
var j = $(N), h = {
|
|
2040
2040
|
pageX: "clientX",
|
|
2041
2041
|
// IE8
|
|
2042
2042
|
pageY: "clientY"
|
|
2043
2043
|
// IE8
|
|
2044
2044
|
};
|
|
2045
|
-
return
|
|
2045
|
+
return S in h && !(S in j) && h[S] in j && (S = h[S]), j[S];
|
|
2046
2046
|
}
|
|
2047
2047
|
o.exports = l;
|
|
2048
2048
|
}).call(this, typeof $e < "u" ? $e : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2123,8 +2123,8 @@ var Bi = { exports: {} };
|
|
|
2123
2123
|
var P = u.indexOf(b) === -1 ? X() : $();
|
|
2124
2124
|
x.dispatchEvent ? x.dispatchEvent(P) : x.fireEvent("on" + b, P);
|
|
2125
2125
|
function $() {
|
|
2126
|
-
var
|
|
2127
|
-
return c.createEvent ? (
|
|
2126
|
+
var S;
|
|
2127
|
+
return c.createEvent ? (S = c.createEvent("Event"), S.initEvent(b, !0, !0)) : c.createEventObject && (S = c.createEventObject()), S;
|
|
2128
2128
|
}
|
|
2129
2129
|
function X() {
|
|
2130
2130
|
return new r(b, { detail: O });
|
|
@@ -2365,7 +2365,7 @@ const ki = {
|
|
|
2365
2365
|
const {
|
|
2366
2366
|
locale: t,
|
|
2367
2367
|
t: o
|
|
2368
|
-
} = Rt(), i =
|
|
2368
|
+
} = Rt(), i = M(n.animate), a = "fadeOut", r = H(() => n.options), u = M(!1), c = H(() => r.value.title && r.value.message), s = H(() => !r.value.title && r.value.message), f = H(() => {
|
|
2369
2369
|
const L = {
|
|
2370
2370
|
animated: u.value,
|
|
2371
2371
|
toast: !0,
|
|
@@ -2396,46 +2396,46 @@ const ki = {
|
|
|
2396
2396
|
});
|
|
2397
2397
|
const A = () => {
|
|
2398
2398
|
var L;
|
|
2399
|
-
return
|
|
2399
|
+
return E(lt, null, [E("div", {
|
|
2400
2400
|
class: "after-toast-msg text-right"
|
|
2401
|
-
}, [!e.slots.default && ((L = r.value.buttons) == null ? void 0 : L.map((x) =>
|
|
2401
|
+
}, [!e.slots.default && ((L = r.value.buttons) == null ? void 0 : L.map((x) => E("span", {
|
|
2402
2402
|
class: B(x),
|
|
2403
2403
|
onClick: (b) => void 0
|
|
2404
2404
|
}, [x.text]))), e.slots.default && e.slots.default()])]);
|
|
2405
2405
|
};
|
|
2406
|
-
return () =>
|
|
2406
|
+
return () => E("div", {
|
|
2407
2407
|
class: f.value,
|
|
2408
2408
|
style: "min-height:44px"
|
|
2409
|
-
}, [p.value &&
|
|
2409
|
+
}, [p.value && E("button", {
|
|
2410
2410
|
title: o("messageBox.close"),
|
|
2411
2411
|
class: "toast-close f-btn-icon f-bare",
|
|
2412
2412
|
onClick: g
|
|
2413
|
-
}, [
|
|
2413
|
+
}, [E("span", {
|
|
2414
2414
|
class: "f-icon modal_close"
|
|
2415
|
-
}, null)]), m.value &&
|
|
2415
|
+
}, null)]), m.value && E("section", {
|
|
2416
2416
|
class: "modal-tips"
|
|
2417
|
-
}, [!c.value &&
|
|
2417
|
+
}, [!c.value && E("div", {
|
|
2418
2418
|
class: "float-left modal-tips-iconwrap"
|
|
2419
|
-
}, [
|
|
2419
|
+
}, [E("span", {
|
|
2420
2420
|
class: l.value
|
|
2421
|
-
}, null)]),
|
|
2421
|
+
}, null)]), E("div", {
|
|
2422
2422
|
class: "modal-tips-content"
|
|
2423
|
-
}, [c.value &&
|
|
2423
|
+
}, [c.value && E(lt, null, [E("h5", {
|
|
2424
2424
|
class: "toast-title modal-tips-title",
|
|
2425
2425
|
innerHTML: r.value.title
|
|
2426
|
-
}, null),
|
|
2426
|
+
}, null), E("p", {
|
|
2427
2427
|
class: "toast-msg",
|
|
2428
2428
|
innerHTML: r.value.message,
|
|
2429
2429
|
style: v.value
|
|
2430
|
-
}, null), d.value && A()]), s.value && (r.value.buttons ?
|
|
2430
|
+
}, null), d.value && A()]), s.value && (r.value.buttons ? E("div", {
|
|
2431
2431
|
class: "toast-title-btns-wrapper d-flex"
|
|
2432
|
-
}, [
|
|
2432
|
+
}, [E("h5", {
|
|
2433
2433
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2434
2434
|
style: v.value,
|
|
2435
2435
|
innerHTML: r.value.message
|
|
2436
|
-
}, null),
|
|
2436
|
+
}, null), E("div", {
|
|
2437
2437
|
class: "after-toast-title text-right ml-auto"
|
|
2438
|
-
}, [A()])]) :
|
|
2438
|
+
}, [A()])]) : E("h5", {
|
|
2439
2439
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2440
2440
|
style: v.value,
|
|
2441
2441
|
innerHTML: r.value.message
|
|
@@ -2453,7 +2453,7 @@ const ki = {
|
|
|
2453
2453
|
right: 12,
|
|
2454
2454
|
top: 20,
|
|
2455
2455
|
bottom: 12
|
|
2456
|
-
}, i =
|
|
2456
|
+
}, i = M(), a = M(n.options), r = M(n.showCloseButton), u = H(() => n.position || "bottom-right"), c = H(() => n.timeout != null ? n.timeout : 3e3), s = H(() => {
|
|
2457
2457
|
const m = n.bottom ? n.bottom : o.bottom, p = n.top ? n.top : o.top, d = {
|
|
2458
2458
|
transition: "all 0.2s ease",
|
|
2459
2459
|
left: u.value.indexOf("left") > -1 ? `${n.left ? n.left : o.left}px` : "",
|
|
@@ -2476,11 +2476,11 @@ const ki = {
|
|
|
2476
2476
|
function l(m, p) {
|
|
2477
2477
|
f();
|
|
2478
2478
|
}
|
|
2479
|
-
return () =>
|
|
2479
|
+
return () => E("div", {
|
|
2480
2480
|
class: t.value,
|
|
2481
2481
|
style: s.value,
|
|
2482
2482
|
ref: i
|
|
2483
|
-
}, [
|
|
2483
|
+
}, [E(Dt, {
|
|
2484
2484
|
options: a.value,
|
|
2485
2485
|
showCloseButton: r.value,
|
|
2486
2486
|
animate: n.animate,
|
|
@@ -2512,7 +2512,7 @@ class Oi {
|
|
|
2512
2512
|
const r = nn({
|
|
2513
2513
|
setup() {
|
|
2514
2514
|
var s;
|
|
2515
|
-
const u =
|
|
2515
|
+
const u = M();
|
|
2516
2516
|
function c() {
|
|
2517
2517
|
u.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
2518
2518
|
t.updateNotifyPositionForClose(i, u), r.unmount();
|
|
@@ -2529,12 +2529,12 @@ class Oi {
|
|
|
2529
2529
|
document.body.removeChild(a);
|
|
2530
2530
|
}), et(() => {
|
|
2531
2531
|
t.updateNotifyPositionForCreate(i, u);
|
|
2532
|
-
}), () =>
|
|
2532
|
+
}), () => E(on, {
|
|
2533
2533
|
mode: "out-in",
|
|
2534
2534
|
name: "fade",
|
|
2535
2535
|
appear: !0
|
|
2536
2536
|
}, {
|
|
2537
|
-
default: () => [
|
|
2537
|
+
default: () => [E(mt, Vt({
|
|
2538
2538
|
ref: u
|
|
2539
2539
|
}, i, {
|
|
2540
2540
|
onClose: c
|
|
@@ -2781,36 +2781,36 @@ function Di(n, e, t, o, i, a, r, u, c, s, f, l, m, p, d, v, g) {
|
|
|
2781
2781
|
const _ = C(y);
|
|
2782
2782
|
return g.value.filter((I) => I.visible !== !1).map((I, T) => $[I.type](I, _, k, T));
|
|
2783
2783
|
}
|
|
2784
|
-
function
|
|
2785
|
-
return
|
|
2784
|
+
function S() {
|
|
2785
|
+
return E("div", {
|
|
2786
2786
|
ref: o,
|
|
2787
2787
|
class: "fv-grid-content-left-fixed"
|
|
2788
|
-
}, [
|
|
2788
|
+
}, [E("div", {
|
|
2789
2789
|
class: "fv-grid-data",
|
|
2790
2790
|
style: b.value
|
|
2791
2791
|
}, [X(B.value.leftColumns.filter((y) => y.visible), "left")])]);
|
|
2792
2792
|
}
|
|
2793
2793
|
function N() {
|
|
2794
|
-
return
|
|
2794
|
+
return E("div", {
|
|
2795
2795
|
ref: t,
|
|
2796
2796
|
class: "fv-grid-content-primary"
|
|
2797
|
-
}, [
|
|
2797
|
+
}, [E("div", {
|
|
2798
2798
|
class: "fv-grid-data",
|
|
2799
2799
|
style: x.value
|
|
2800
2800
|
}, [X(B.value.primaryColumns.filter((y) => y.visible), "primary")])]);
|
|
2801
2801
|
}
|
|
2802
2802
|
function j() {
|
|
2803
|
-
return
|
|
2803
|
+
return E("div", {
|
|
2804
2804
|
ref: i,
|
|
2805
2805
|
class: "fv-grid-content-right-fixed"
|
|
2806
|
-
}, [
|
|
2806
|
+
}, [E("div", {
|
|
2807
2807
|
class: "fv-grid-data",
|
|
2808
2808
|
style: O.value
|
|
2809
2809
|
}, [X(B.value.rightColumns.filter((y) => y.visible), "right")])]);
|
|
2810
2810
|
}
|
|
2811
2811
|
function h() {
|
|
2812
2812
|
const y = [];
|
|
2813
|
-
return A.value && y.push(
|
|
2813
|
+
return A.value && y.push(S()), y.push(N()), L.value && y.push(j()), y;
|
|
2814
2814
|
}
|
|
2815
2815
|
return {
|
|
2816
2816
|
renderDataArea: h
|
|
@@ -2822,9 +2822,9 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2822
2822
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
2823
2823
|
setup(n, e) {
|
|
2824
2824
|
var _t, Gt;
|
|
2825
|
-
const o = ((_t = n.rowOption) == null ? void 0 : _t.height) || 28, i =
|
|
2825
|
+
const o = ((_t = n.rowOption) == null ? void 0 : _t.height) || 28, i = M(20), a = M(n.columns), r = Jn(n), {
|
|
2826
2826
|
idField: u
|
|
2827
|
-
} = r, c =
|
|
2827
|
+
} = r, c = M(), s = M(), f = M(), l = M(), m = M(), p = M([]), d = M(!1), v = M(((Gt = n.rowOption) == null ? void 0 : Gt.wrapContent) || !1), g = Qn(n, r), C = Zn(n, e), B = Kn(n), {
|
|
2828
2828
|
collapseField: A
|
|
2829
2829
|
} = B, {
|
|
2830
2830
|
showLoading: L,
|
|
@@ -2834,7 +2834,7 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2834
2834
|
} = b, P = no(n, b, r, p, e), {
|
|
2835
2835
|
showSelection: $,
|
|
2836
2836
|
selectedValues: X
|
|
2837
|
-
} = P,
|
|
2837
|
+
} = P, S = oo(n, p, b, r, P, e), N = H(() => n.disabled), j = H(() => n.virtualized ? Math.min(b.dataView.value.length, i.value) : b.dataView.value.length), h = io(n, b), {
|
|
2838
2838
|
shouldRenderPagination: y
|
|
2839
2839
|
} = h, {
|
|
2840
2840
|
containerStyleObject: k
|
|
@@ -2847,11 +2847,11 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2847
2847
|
removeColumnSetting: R
|
|
2848
2848
|
} = so(n);
|
|
2849
2849
|
n.showSetting && T(a);
|
|
2850
|
-
const
|
|
2850
|
+
const F = lo(n, e), z = co(n), {
|
|
2851
2851
|
applyColumnSorter: K,
|
|
2852
2852
|
columnContext: te,
|
|
2853
2853
|
updateColumnRenderContext: J
|
|
2854
|
-
} =
|
|
2854
|
+
} = F;
|
|
2855
2855
|
K(b, z);
|
|
2856
2856
|
const ie = uo(n, te), re = po(n, e, P, r), ee = fo(n, e, r, re, p), q = mo(n), se = vo(n, ee, q), je = ho(n, b, ee, B, r, q, se), Pe = yo(n, a, b, j, 0, je), {
|
|
2857
2857
|
getVisualData: Te
|
|
@@ -2866,7 +2866,7 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2866
2866
|
updateVisibleRowsOnLatestVisibleScope: nt
|
|
2867
2867
|
} = ce, ze = wo(n, te, s, xe, ie), {
|
|
2868
2868
|
calculateColumnsSize: Be
|
|
2869
|
-
} = ze, De = To(), Qe = xo(s, m, b, De, ce), Ze = Io(n, e,
|
|
2869
|
+
} = ze, De = To(), Qe = xo(s, m, b, De, ce), Ze = Io(n, e, F, b, ie, g, ce), V = H(() => {
|
|
2870
2870
|
const G = {
|
|
2871
2871
|
"fv-grid": !0,
|
|
2872
2872
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -2880,11 +2880,11 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2880
2880
|
"fv-grid-wrap-content": v.value
|
|
2881
2881
|
})), {
|
|
2882
2882
|
renderDataArea: ue
|
|
2883
|
-
} = Di(n, e, f, l, m, Ye,
|
|
2883
|
+
} = Di(n, e, f, l, m, Ye, F, b, ee, B, re, P, S, ce, Pe, q, p), {
|
|
2884
2884
|
renderGridHeader: de,
|
|
2885
2885
|
renderGridColumnResizeOverlay: ke,
|
|
2886
2886
|
shouldShowHeader: Ct
|
|
2887
|
-
} = So(n, e, s, l, m,
|
|
2887
|
+
} = So(n, e, s, l, m, F, b, Ze, Qe, C, De, ze, ie, P, Ae, z, ce, xe, p), {
|
|
2888
2888
|
renderDataGridSidebar: wt
|
|
2889
2889
|
} = Mo(n, re, P, Ae, ce), {
|
|
2890
2890
|
renderDisableMask: Tt
|
|
@@ -2931,8 +2931,8 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2931
2931
|
b.insertNewChildDataItems(G, he);
|
|
2932
2932
|
}
|
|
2933
2933
|
function kt() {
|
|
2934
|
-
const G = ot(), Z =
|
|
2935
|
-
b.removeHierarchyDataItem(G), p.value = Te(0, j.value + 0 - 1), Z &&
|
|
2934
|
+
const G = ot(), Z = S.getNextSelectableHierarchyItemId(G);
|
|
2935
|
+
b.removeHierarchyDataItem(G), p.value = Te(0, j.value + 0 - 1), Z && S.selectItemById(Z);
|
|
2936
2936
|
}
|
|
2937
2937
|
function dt(G) {
|
|
2938
2938
|
ee.onEditingRow(G);
|
|
@@ -2953,7 +2953,7 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2953
2953
|
G && (b.load(G), b.reOrderVisibleIndex(), Z != null && Z.keepScrollPosition ? ce.scrollTo(ce.offsetY.value) : Le());
|
|
2954
2954
|
}
|
|
2955
2955
|
function Y(G) {
|
|
2956
|
-
|
|
2956
|
+
S.selectItemById(G);
|
|
2957
2957
|
}
|
|
2958
2958
|
function oe(G) {
|
|
2959
2959
|
const Z = p.value.find((fe) => fe.raw[r.idField.value] === G);
|
|
@@ -2963,7 +2963,7 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2963
2963
|
re.activeRowById(G);
|
|
2964
2964
|
}
|
|
2965
2965
|
function we(G) {
|
|
2966
|
-
|
|
2966
|
+
S.selectItemByIds(G);
|
|
2967
2967
|
}
|
|
2968
2968
|
function ye() {
|
|
2969
2969
|
return P.getSelectedItems();
|
|
@@ -2978,7 +2978,7 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
2978
2978
|
return P.getSelectionRow();
|
|
2979
2979
|
}
|
|
2980
2980
|
function be(G) {
|
|
2981
|
-
|
|
2981
|
+
S.unSelectItemByIds(G);
|
|
2982
2982
|
}
|
|
2983
2983
|
function ve() {
|
|
2984
2984
|
return P.currentSelectedDataId.value;
|
|
@@ -3084,23 +3084,23 @@ const Vi = /* @__PURE__ */ Ee({
|
|
|
3084
3084
|
"align-items-center": !0
|
|
3085
3085
|
})), {
|
|
3086
3086
|
renderDataGridSummary: Ln
|
|
3087
|
-
} = Oo(n, b,
|
|
3088
|
-
return () =>
|
|
3087
|
+
} = Oo(n, b, F);
|
|
3088
|
+
return () => E("div", {
|
|
3089
3089
|
ref: c,
|
|
3090
3090
|
class: V.value,
|
|
3091
3091
|
style: Pn.value,
|
|
3092
3092
|
onWheel: tt
|
|
3093
|
-
}, [s.value && Ct.value && de(),
|
|
3093
|
+
}, [s.value && Ct.value && de(), E("div", {
|
|
3094
3094
|
ref: s,
|
|
3095
3095
|
class: ne.value,
|
|
3096
3096
|
onMouseover: () => d.value = !0,
|
|
3097
3097
|
onMouseleave: () => d.value = !1,
|
|
3098
3098
|
style: kn.value
|
|
3099
|
-
}, [s.value && wt(p), s.value && ue(), s.value && Ie.value && pe(), s.value && xt(), s.value && It()]), s.value && Ln(), $.value &&
|
|
3099
|
+
}, [s.value && wt(p), s.value && ue(), s.value && Ie.value && pe(), s.value && xt(), s.value && It()]), s.value && Ln(), $.value && E("div", {
|
|
3100
3100
|
class: On.value
|
|
3101
|
-
}, [$.value &&
|
|
3101
|
+
}, [$.value && E("div", {
|
|
3102
3102
|
class: Nn.value
|
|
3103
|
-
}, [
|
|
3103
|
+
}, [E("div", null, ["已选:" + X.value.length, ft(" 条")])])]), ke(), N.value && Tt()]);
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
3106
|
Gn(Vi);
|
|
@@ -3896,7 +3896,7 @@ function en(n, e) {
|
|
|
3896
3896
|
const { sourceElement: k } = h, { componentInstance: _ } = k, I = e == null ? void 0 : e.formSchemaUtils;
|
|
3897
3897
|
if (!I)
|
|
3898
3898
|
return !0;
|
|
3899
|
-
const T = I.getComponentById(_.value.belongedComponentId), R = I.getViewModelById(T.viewModel),
|
|
3899
|
+
const T = I.getComponentById(_.value.belongedComponentId), R = I.getViewModelById(T.viewModel), F = I.getComponentById(n.componentInstance.value.belongedComponentId), z = I.getViewModelById(F.viewModel);
|
|
3900
3900
|
return y ? R != null && R.id && (z != null && z.id) && R.id !== z.id ? R.bindTo === z.bindTo : !0 : (R == null ? void 0 : R.id) === (z == null ? void 0 : z.id);
|
|
3901
3901
|
}
|
|
3902
3902
|
function c(h) {
|
|
@@ -3926,8 +3926,8 @@ function en(n, e) {
|
|
|
3926
3926
|
}
|
|
3927
3927
|
function l(h) {
|
|
3928
3928
|
var z;
|
|
3929
|
-
const y = h.componentInstance, k = y.value.schema, _ = e == null ? void 0 : e.formSchemaUtils, I = e == null ? void 0 : e.designViewModelUtils, T = _.getViewModelIdByComponentId(y.value.belongedComponentId), R = I.getDgViewModel(T),
|
|
3930
|
-
if (
|
|
3929
|
+
const y = h.componentInstance, k = y.value.schema, _ = e == null ? void 0 : e.formSchemaUtils, I = e == null ? void 0 : e.designViewModelUtils, T = _.getViewModelIdByComponentId(y.value.belongedComponentId), R = I.getDgViewModel(T), F = y.value.parent;
|
|
3930
|
+
if (F && ct.fieldset && ((z = F.schema) == null ? void 0 : z.type) === ct.fieldset.type && R) {
|
|
3931
3931
|
const K = { groupId: null, groupName: null };
|
|
3932
3932
|
switch (k.binding.type) {
|
|
3933
3933
|
case _e.Form: {
|
|
@@ -3944,8 +3944,8 @@ function en(n, e) {
|
|
|
3944
3944
|
function m(h, y, k) {
|
|
3945
3945
|
const _ = y.fields.find((z) => z.id === h), I = e == null ? void 0 : e.designViewModelUtils, T = I.getDgViewModel(y.id), R = T.fields.find((z) => z.id === h);
|
|
3946
3946
|
T.removeField([h]);
|
|
3947
|
-
const
|
|
3948
|
-
|
|
3947
|
+
const F = I.getDgViewModel(k);
|
|
3948
|
+
F.addField(R), _.fieldSchema && F.changeField(R.id, _.fieldSchema);
|
|
3949
3949
|
}
|
|
3950
3950
|
function p(h, y, k, _ = []) {
|
|
3951
3951
|
const I = y.id, T = h.binding.field, R = y.fields.findIndex((z) => z.id === T);
|
|
@@ -3957,18 +3957,18 @@ function en(n, e) {
|
|
|
3957
3957
|
h.binding.path = h.binding.path.replace("root-component.", "");
|
|
3958
3958
|
return;
|
|
3959
3959
|
}
|
|
3960
|
-
const
|
|
3961
|
-
|
|
3960
|
+
const F = y.states.find((z) => z.id === T);
|
|
3961
|
+
F && (k.states = k.states ? k.states : [], k.states.findIndex((z) => z.id === F.id) < 0 && (k.states.push(F), _.push(F.id)));
|
|
3962
3962
|
}
|
|
3963
3963
|
function d(h, y, k, _ = []) {
|
|
3964
3964
|
var R;
|
|
3965
3965
|
if (!h)
|
|
3966
3966
|
return;
|
|
3967
3967
|
const I = y.id === "root-viewmodel" && k.id !== "root-viewmodel", T = k.id === "root-viewmodel" && y.id !== "root-viewmodel";
|
|
3968
|
-
Object.keys(h).forEach((
|
|
3969
|
-
if (
|
|
3968
|
+
Object.keys(h).forEach((F) => {
|
|
3969
|
+
if (F === "binding")
|
|
3970
3970
|
return;
|
|
3971
|
-
const z = h[
|
|
3971
|
+
const z = h[F];
|
|
3972
3972
|
if (z && typeof z == "object" && z.type === _e.Variable && z.field) {
|
|
3973
3973
|
if (I) {
|
|
3974
3974
|
z.path && !z.path.includes("root-component.") && (z.path = "root-component." + z.path);
|
|
@@ -3990,8 +3990,8 @@ function en(n, e) {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
3992
|
}
|
|
3993
|
-
}), (R = k.states) != null && R.length && k.states.map((
|
|
3994
|
-
|
|
3993
|
+
}), (R = k.states) != null && R.length && k.states.map((F) => {
|
|
3994
|
+
F.newId && (F.id = F.newId, delete F.newId);
|
|
3995
3995
|
});
|
|
3996
3996
|
}
|
|
3997
3997
|
function v(h, y, k) {
|
|
@@ -4002,16 +4002,16 @@ function en(n, e) {
|
|
|
4002
4002
|
function g(h = [], y) {
|
|
4003
4003
|
if (!h.length)
|
|
4004
4004
|
return;
|
|
4005
|
-
const k = e == null ? void 0 : e.formSchemaUtils, _ = k.getComponentByViewModelId(y), I = [], T = (
|
|
4006
|
-
|
|
4007
|
-
const te =
|
|
4005
|
+
const k = e == null ? void 0 : e.formSchemaUtils, _ = k.getComponentByViewModelId(y), I = [], T = (F, z) => {
|
|
4006
|
+
F && (Object.keys(F).forEach((K) => {
|
|
4007
|
+
const te = F[K];
|
|
4008
4008
|
te && typeof te == "object" && te.type === _e.Variable && h.includes(te.field) && !z.includes(te.field) && z.push(te.field);
|
|
4009
|
-
}),
|
|
4009
|
+
}), F.editor && T(F.editor, z));
|
|
4010
4010
|
};
|
|
4011
4011
|
v(_, T, I);
|
|
4012
4012
|
const R = k.getViewModelById(y);
|
|
4013
|
-
h.forEach((
|
|
4014
|
-
I.includes(
|
|
4013
|
+
h.forEach((F) => {
|
|
4014
|
+
I.includes(F) || (R.states = R.states.filter((z) => z.id !== F));
|
|
4015
4015
|
});
|
|
4016
4016
|
}
|
|
4017
4017
|
function C(h) {
|
|
@@ -4040,7 +4040,7 @@ function en(n, e) {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
}
|
|
4042
4042
|
});
|
|
4043
|
-
const
|
|
4043
|
+
const F = (e == null ? void 0 : e.designViewModelUtils).getDgViewModel(k.id), z = ["valueChanging", "valueChanged"];
|
|
4044
4044
|
if (((te = h.binding) == null ? void 0 : te.type) === _e.Form) {
|
|
4045
4045
|
const ie = (J = k.fields) == null ? void 0 : J.find((re) => re.id === h.binding.field);
|
|
4046
4046
|
ie && z.forEach((re) => {
|
|
@@ -4049,30 +4049,30 @@ function en(n, e) {
|
|
|
4049
4049
|
if (!ee)
|
|
4050
4050
|
return;
|
|
4051
4051
|
if (_[ee.code])
|
|
4052
|
-
|
|
4052
|
+
F.changeField(ie.id, { [re]: _[ee.code].code });
|
|
4053
4053
|
else {
|
|
4054
4054
|
const q = C(ee);
|
|
4055
|
-
_[ee.code] = q, k.commands.push(q),
|
|
4055
|
+
_[ee.code] = q, k.commands.push(q), F.changeField(ie.id, { [re]: q.code });
|
|
4056
4056
|
}
|
|
4057
4057
|
}
|
|
4058
4058
|
});
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
4061
|
function A(h) {
|
|
4062
|
-
const y = e == null ? void 0 : e.formSchemaUtils, k = h.componentInstance, _ = k.value.schema, I = y.getViewModelIdByComponentId(k.value.belongedComponentId), T = y.getViewModelById(I), R = y.getComponentById(n.componentInstance.value.belongedComponentId),
|
|
4063
|
-
if (I !==
|
|
4062
|
+
const y = e == null ? void 0 : e.formSchemaUtils, k = h.componentInstance, _ = k.value.schema, I = y.getViewModelIdByComponentId(k.value.belongedComponentId), T = y.getViewModelById(I), R = y.getComponentById(n.componentInstance.value.belongedComponentId), F = y.getViewModelById(R.viewModel);
|
|
4063
|
+
if (I !== F.id) {
|
|
4064
4064
|
const z = _.binding.type, K = _.binding.field, te = [];
|
|
4065
4065
|
switch (z) {
|
|
4066
4066
|
case _e.Form: {
|
|
4067
|
-
m(K, T,
|
|
4067
|
+
m(K, T, F.id);
|
|
4068
4068
|
break;
|
|
4069
4069
|
}
|
|
4070
4070
|
case _e.Variable: {
|
|
4071
|
-
p(_, T,
|
|
4071
|
+
p(_, T, F, te);
|
|
4072
4072
|
break;
|
|
4073
4073
|
}
|
|
4074
4074
|
}
|
|
4075
|
-
d(_, T,
|
|
4075
|
+
d(_, T, F, te), d(_.editor, T, F, te), B(_, T, F), I !== "root-viewmodel" && g(te, I);
|
|
4076
4076
|
}
|
|
4077
4077
|
}
|
|
4078
4078
|
function L(h) {
|
|
@@ -4122,20 +4122,20 @@ function en(n, e) {
|
|
|
4122
4122
|
}
|
|
4123
4123
|
}
|
|
4124
4124
|
function $(h, y) {
|
|
4125
|
-
var T, R,
|
|
4125
|
+
var T, R, F;
|
|
4126
4126
|
const k = t;
|
|
4127
4127
|
if ((k.appearance && k.appearance.class || "").split(" ").includes("f-form-layout") && h.componentCategory === "input") {
|
|
4128
4128
|
const { label: z } = h;
|
|
4129
4129
|
let K;
|
|
4130
4130
|
const te = e == null ? void 0 : e.controlCreatorUtils;
|
|
4131
|
-
return (T = h.bindingSourceContext) != null && T.entityFieldNode ? K = te.setFormFieldProperty((R = h.bindingSourceContext) == null ? void 0 : R.entityFieldNode, y == null ? void 0 : y.type) : (K = te.createFormGroupWithoutField(y == null ? void 0 : y.type), K.label = z), O(K), P(h, (
|
|
4131
|
+
return (T = h.bindingSourceContext) != null && T.entityFieldNode ? K = te.setFormFieldProperty((R = h.bindingSourceContext) == null ? void 0 : R.entityFieldNode, y == null ? void 0 : y.type) : (K = te.createFormGroupWithoutField(y == null ? void 0 : y.type), K.label = z), O(K), P(h, (F = K.editor) == null ? void 0 : F.type), K;
|
|
4132
4132
|
}
|
|
4133
4133
|
return y;
|
|
4134
4134
|
}
|
|
4135
4135
|
function X() {
|
|
4136
4136
|
return i;
|
|
4137
4137
|
}
|
|
4138
|
-
function
|
|
4138
|
+
function S() {
|
|
4139
4139
|
return r;
|
|
4140
4140
|
}
|
|
4141
4141
|
function N() {
|
|
@@ -4146,7 +4146,7 @@ function en(n, e) {
|
|
|
4146
4146
|
}
|
|
4147
4147
|
return {
|
|
4148
4148
|
canAccepts: f,
|
|
4149
|
-
checkCanDeleteComponent:
|
|
4149
|
+
checkCanDeleteComponent: S,
|
|
4150
4150
|
checkCanMoveComponent: X,
|
|
4151
4151
|
getStyles: x,
|
|
4152
4152
|
getPropsConfig: j,
|
|
@@ -4359,7 +4359,7 @@ function za() {
|
|
|
4359
4359
|
return { onCopy: n };
|
|
4360
4360
|
}
|
|
4361
4361
|
function Ua(n, e, t, o) {
|
|
4362
|
-
const i =
|
|
4362
|
+
const i = M(14), a = M(140), r = M(""), u = M(o.value.length), c = H(() => o.value), s = H(() => ({
|
|
4363
4363
|
"font-size": `${i.value}px`,
|
|
4364
4364
|
height: "100%"
|
|
4365
4365
|
}));
|
|
@@ -4369,7 +4369,7 @@ function Ua(n, e, t, o) {
|
|
|
4369
4369
|
u.value = m.length;
|
|
4370
4370
|
}
|
|
4371
4371
|
}
|
|
4372
|
-
return () =>
|
|
4372
|
+
return () => E(lt, null, [E("textarea", {
|
|
4373
4373
|
title: "promptMessage",
|
|
4374
4374
|
name: "promptMessage",
|
|
4375
4375
|
class: "form-control",
|
|
@@ -4377,7 +4377,7 @@ function Ua(n, e, t, o) {
|
|
|
4377
4377
|
rows: "4",
|
|
4378
4378
|
maxlength: a.value,
|
|
4379
4379
|
onInput: (l) => f(l)
|
|
4380
|
-
}, [c.value]),
|
|
4380
|
+
}, [c.value]), E("span", {
|
|
4381
4381
|
class: "textarea-wordcount",
|
|
4382
4382
|
title: r.value,
|
|
4383
4383
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
@@ -4391,7 +4391,7 @@ function qa(n, e, t, o) {
|
|
|
4391
4391
|
return { getEditorRender: r };
|
|
4392
4392
|
}
|
|
4393
4393
|
function Wa() {
|
|
4394
|
-
const n =
|
|
4394
|
+
const n = M(!1), e = M("复制成功");
|
|
4395
4395
|
return {
|
|
4396
4396
|
feedbackStyle: H(() => {
|
|
4397
4397
|
const o = {
|
|
@@ -4450,7 +4450,7 @@ function Ga(n, e) {
|
|
|
4450
4450
|
const i = H(() => !!n.value && !!n.value.date), a = H(() => {
|
|
4451
4451
|
const p = n.value && n.value.date || "";
|
|
4452
4452
|
return `${e.exception.happend} : ${p}`;
|
|
4453
|
-
}), r = H(() => !!n.value && !!n.value.detail), u = H(() => n.value ? t(n.value.detail) > 160 : !1), c =
|
|
4453
|
+
}), r = H(() => !!n.value && !!n.value.detail), u = H(() => n.value ? t(n.value.detail) > 160 : !1), c = M(!1), s = H(() => c.value ? e.exception.collapse : e.exception.expand), f = H(() => {
|
|
4454
4454
|
const p = e.exception.detail + " : " + (n.value && n.value.detail) || "";
|
|
4455
4455
|
return c.value ? p : o(p, 160);
|
|
4456
4456
|
}), l = H(() => ({
|
|
@@ -4463,27 +4463,27 @@ function Ga(n, e) {
|
|
|
4463
4463
|
function m() {
|
|
4464
4464
|
c.value = !c.value;
|
|
4465
4465
|
}
|
|
4466
|
-
return () =>
|
|
4466
|
+
return () => E("div", {
|
|
4467
4467
|
class: "toast-msg-detail"
|
|
4468
|
-
}, [i.value &&
|
|
4468
|
+
}, [i.value && E("div", null, [a.value]), r.value && E("div", {
|
|
4469
4469
|
class: "exception_wrap"
|
|
4470
|
-
}, [
|
|
4470
|
+
}, [E("div", {
|
|
4471
4471
|
class: "exception_error_msg"
|
|
4472
|
-
}, [
|
|
4472
|
+
}, [E("div", {
|
|
4473
4473
|
innerHTML: f.value
|
|
4474
|
-
}, null), u.value &&
|
|
4474
|
+
}, null), u.value && E("span", {
|
|
4475
4475
|
style: l.value,
|
|
4476
4476
|
onClick: m
|
|
4477
4477
|
}, [s.value])])])]);
|
|
4478
4478
|
}
|
|
4479
4479
|
function Xa(n) {
|
|
4480
|
-
return () =>
|
|
4480
|
+
return () => E("p", {
|
|
4481
4481
|
class: "toast-msg-detail",
|
|
4482
4482
|
innerHTML: n.value
|
|
4483
4483
|
}, null);
|
|
4484
4484
|
}
|
|
4485
4485
|
function Ha(n, e, t, o, i) {
|
|
4486
|
-
const a =
|
|
4486
|
+
const a = M(n.exceptionInfo), r = H(() => {
|
|
4487
4487
|
const d = e.value === "question" ? "warning" : e.value, v = {
|
|
4488
4488
|
"f-icon": !0
|
|
4489
4489
|
}, g = `f-icon-${d}`;
|
|
@@ -4496,13 +4496,13 @@ function Ha(n, e, t, o, i) {
|
|
|
4496
4496
|
wordBreak: "keep-all",
|
|
4497
4497
|
overflowWrap: "break-word"
|
|
4498
4498
|
} : {});
|
|
4499
|
-
return () =>
|
|
4499
|
+
return () => E(lt, null, [E("div", {
|
|
4500
4500
|
class: "float-left modal-tips-iconwrap"
|
|
4501
|
-
}, [
|
|
4501
|
+
}, [E("span", {
|
|
4502
4502
|
class: r.value
|
|
4503
|
-
}, null)]),
|
|
4503
|
+
}, null)]), E("div", {
|
|
4504
4504
|
class: "modal-tips-content"
|
|
4505
|
-
}, [
|
|
4505
|
+
}, [E("p", {
|
|
4506
4506
|
class: "toast-msg-title",
|
|
4507
4507
|
innerHTML: u.value,
|
|
4508
4508
|
style: p.value
|
|
@@ -4513,7 +4513,7 @@ function Ya(n, e, t, o) {
|
|
|
4513
4513
|
onCopy: i
|
|
4514
4514
|
} = e, {
|
|
4515
4515
|
toShowFeedback: a
|
|
4516
|
-
} = t, r =
|
|
4516
|
+
} = t, r = M(o.exception.copySuccess || "复制成功"), u = M(o.exception.copy || "复制详细信息"), c = M(n.exceptionInfo || {
|
|
4517
4517
|
date: "",
|
|
4518
4518
|
message: "",
|
|
4519
4519
|
detail: ""
|
|
@@ -4527,15 +4527,15 @@ function Ya(n, e, t, o) {
|
|
|
4527
4527
|
}, 700);
|
|
4528
4528
|
});
|
|
4529
4529
|
}
|
|
4530
|
-
return () =>
|
|
4530
|
+
return () => E("span", {
|
|
4531
4531
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
4532
|
-
}, [
|
|
4532
|
+
}, [E("span", {
|
|
4533
4533
|
onClick: f,
|
|
4534
4534
|
style: "cursor: pointer;"
|
|
4535
4535
|
}, [u.value])]);
|
|
4536
4536
|
}
|
|
4537
4537
|
function Ja(n, e, t, o, i) {
|
|
4538
|
-
const a =
|
|
4538
|
+
const a = M(n.type), r = M(n.buttons), u = M(n.exceptionInfo), c = M(i.ok || n.okButtonText), s = M(i.cancel || n.cancelButtonText), f = M(n.showCancelButton), l = M(n.showOkButton), m = H(() => !!(r.value && r.value.length)), p = H(() => u.value && u.value.message && u.value.detail), d = H(() => !(r.value && r.value.length) && (l.value || f.value)), v = Ya(n, t, o, i);
|
|
4539
4539
|
c.value === "关闭" ? c.value = i.close : c.value === "知道了" && (c.value = i.exception.roger);
|
|
4540
4540
|
function g(B) {
|
|
4541
4541
|
a.value === "question" && e.emit("reject"), e.emit("close");
|
|
@@ -4543,21 +4543,21 @@ function Ja(n, e, t, o, i) {
|
|
|
4543
4543
|
function C(B) {
|
|
4544
4544
|
a.value === "question" && e.emit("accept"), e.emit("close");
|
|
4545
4545
|
}
|
|
4546
|
-
return () =>
|
|
4546
|
+
return () => E("div", {
|
|
4547
4547
|
class: "modal-footer"
|
|
4548
|
-
}, [p.value && v(), d.value && f.value &&
|
|
4548
|
+
}, [p.value && v(), d.value && f.value && E("button", {
|
|
4549
4549
|
type: "button",
|
|
4550
4550
|
class: "btn btn-secondary btn-lg",
|
|
4551
4551
|
onClick: g
|
|
4552
|
-
}, [s.value]), d.value && l.value &&
|
|
4552
|
+
}, [s.value]), d.value && l.value && E("button", {
|
|
4553
4553
|
type: "button",
|
|
4554
4554
|
class: "btn btn-primary btn-lg",
|
|
4555
4555
|
onClick: C
|
|
4556
|
-
}, [c.value]), m.value && r.value.length && r.value.map((B) =>
|
|
4556
|
+
}, [c.value]), m.value && r.value.length && r.value.map((B) => E("button", {
|
|
4557
4557
|
type: "button",
|
|
4558
4558
|
onClick: B.handle,
|
|
4559
4559
|
class: B.class
|
|
4560
|
-
}, [B.iconClass &&
|
|
4560
|
+
}, [B.iconClass && E("span", {
|
|
4561
4561
|
class: B.iconClass
|
|
4562
4562
|
}, null), B.text]))]);
|
|
4563
4563
|
}
|
|
@@ -4592,7 +4592,7 @@ const vt = /* @__PURE__ */ Ee({
|
|
|
4592
4592
|
props: $a,
|
|
4593
4593
|
emits: ["accept", "reject", "close"],
|
|
4594
4594
|
setup(n, e) {
|
|
4595
|
-
const t = Qa(n), o =
|
|
4595
|
+
const t = Qa(n), o = M(n.type), i = M(n.title), a = M(n.detail), r = H(() => {
|
|
4596
4596
|
const C = {
|
|
4597
4597
|
"modal-tips": !0,
|
|
4598
4598
|
"d-flex": !0,
|
|
@@ -4610,7 +4610,7 @@ const vt = /* @__PURE__ */ Ee({
|
|
|
4610
4610
|
} = f;
|
|
4611
4611
|
m.value = t.exception.copySuccess;
|
|
4612
4612
|
function p() {
|
|
4613
|
-
return
|
|
4613
|
+
return E("div", {
|
|
4614
4614
|
style: l.value
|
|
4615
4615
|
}, [m.value]);
|
|
4616
4616
|
}
|
|
@@ -4623,12 +4623,12 @@ const vt = /* @__PURE__ */ Ee({
|
|
|
4623
4623
|
}
|
|
4624
4624
|
}
|
|
4625
4625
|
const v = d(), g = Ja(n, e, c, f, t);
|
|
4626
|
-
return () =>
|
|
4626
|
+
return () => E("div", {
|
|
4627
4627
|
class: "farris-messager"
|
|
4628
|
-
}, [!n.exceptionInfo &&
|
|
4628
|
+
}, [!n.exceptionInfo && E("div", {
|
|
4629
4629
|
style: "height: 30px;width: 100%;position: absolute;",
|
|
4630
4630
|
class: "messager-draggable"
|
|
4631
|
-
}, null),
|
|
4631
|
+
}, null), E("section", {
|
|
4632
4632
|
class: r.value,
|
|
4633
4633
|
style: u.value
|
|
4634
4634
|
}, [v()]), g(), p()]);
|
|
@@ -4936,15 +4936,15 @@ class Ge {
|
|
|
4936
4936
|
}
|
|
4937
4937
|
}
|
|
4938
4938
|
function pr(n, e) {
|
|
4939
|
-
const t =
|
|
4939
|
+
const t = M(), o = M(), i = M(), a = M(), r = M(), u = M(), c = M(), s = M(), f = M(), l = M(), m = M(), p = M(n.resizeable), d = M(), v = M(n.draggable), g = M(!1);
|
|
4940
4940
|
function C() {
|
|
4941
4941
|
const I = o.value || document.body, T = window.getComputedStyle(I);
|
|
4942
4942
|
if (!T || !t.value)
|
|
4943
4943
|
return;
|
|
4944
|
-
const R = le.getTransformInfo(t.value),
|
|
4945
|
-
c.value && (
|
|
4944
|
+
const R = le.getTransformInfo(t.value), F = {};
|
|
4945
|
+
c.value && (F.deltaL = t.value.offsetLeft - c.value.x, F.deltaT = t.value.offsetTop - c.value.y);
|
|
4946
4946
|
const z = T.getPropertyValue("position");
|
|
4947
|
-
|
|
4947
|
+
F.width = I.clientWidth, F.height = I.clientHeight, F.pr = parseInt(T.getPropertyValue("padding-right"), 10), F.pb = parseInt(T.getPropertyValue("padding-bottom"), 10), F.position = T.getPropertyValue("position"), z === "static" && (I.style.position = "relative"), F.translateX = R.x, F.translateY = R.y, l.value = F;
|
|
4948
4948
|
}
|
|
4949
4949
|
function B(I) {
|
|
4950
4950
|
if (t.value) {
|
|
@@ -4959,10 +4959,10 @@ function pr(n, e) {
|
|
|
4959
4959
|
}
|
|
4960
4960
|
}
|
|
4961
4961
|
function A() {
|
|
4962
|
-
var I, T, R,
|
|
4962
|
+
var I, T, R, F;
|
|
4963
4963
|
if (t.value) {
|
|
4964
4964
|
const z = t.value;
|
|
4965
|
-
s.value && ((s.value.n || s.value.s) && ((I = u.value) != null && I.height) && (z.style.height = u.value.height + "px"), (s.value.w || s.value.e) && ((T = u.value) != null && T.width) && (z.style.width = u.value.width + "px"), c.value && ((R = c.value) != null && R.x && (z.style.left = c.value.x + "px"), (
|
|
4965
|
+
s.value && ((s.value.n || s.value.s) && ((I = u.value) != null && I.height) && (z.style.height = u.value.height + "px"), (s.value.w || s.value.e) && ((T = u.value) != null && T.width) && (z.style.width = u.value.width + "px"), c.value && ((R = c.value) != null && R.x && (z.style.left = c.value.x + "px"), (F = c.value) != null && F.y && (z.style.top = c.value.y + "px")));
|
|
4966
4966
|
}
|
|
4967
4967
|
}
|
|
4968
4968
|
function L() {
|
|
@@ -4997,7 +4997,7 @@ function pr(n, e) {
|
|
|
4997
4997
|
width: I,
|
|
4998
4998
|
height: T,
|
|
4999
4999
|
x: R,
|
|
5000
|
-
y:
|
|
5000
|
+
y: F
|
|
5001
5001
|
} = t.value.getBoundingClientRect(), z = le.getTransformInfo(t.value);
|
|
5002
5002
|
return {
|
|
5003
5003
|
size: {
|
|
@@ -5006,7 +5006,7 @@ function pr(n, e) {
|
|
|
5006
5006
|
},
|
|
5007
5007
|
position: {
|
|
5008
5008
|
x: R - z.x,
|
|
5009
|
-
y:
|
|
5009
|
+
y: F - z.y
|
|
5010
5010
|
}
|
|
5011
5011
|
};
|
|
5012
5012
|
}
|
|
@@ -5022,48 +5022,48 @@ function pr(n, e) {
|
|
|
5022
5022
|
function X() {
|
|
5023
5023
|
document.addEventListener("mousemove", O), document.addEventListener("mouseup", $);
|
|
5024
5024
|
}
|
|
5025
|
-
function
|
|
5025
|
+
function S(I) {
|
|
5026
5026
|
I instanceof MouseEvent && I.button === 2 || v.value && (document.body.click(), I.stopPropagation(), I.preventDefault(), i.value = le.fromEvent(I), f.value = I.target, B(I), X());
|
|
5027
5027
|
}
|
|
5028
5028
|
function N(I) {
|
|
5029
|
-
return t.value = I, p.value &&
|
|
5029
|
+
return t.value = I, p.value && E(lt, null, [E("div", {
|
|
5030
5030
|
class: "fv-resizable-handle fv-resizable-n",
|
|
5031
5031
|
type: "n",
|
|
5032
|
-
onMousedown: (T) =>
|
|
5033
|
-
}, null),
|
|
5032
|
+
onMousedown: (T) => S(T)
|
|
5033
|
+
}, null), E("div", {
|
|
5034
5034
|
class: "fv-resizable-handle fv-resizable-e",
|
|
5035
5035
|
type: "e",
|
|
5036
|
-
onMousedown: (T) =>
|
|
5037
|
-
}, null),
|
|
5036
|
+
onMousedown: (T) => S(T)
|
|
5037
|
+
}, null), E("div", {
|
|
5038
5038
|
class: "fv-resizable-handle fv-resizable-s",
|
|
5039
5039
|
type: "s",
|
|
5040
|
-
onMousedown: (T) =>
|
|
5041
|
-
}, null),
|
|
5040
|
+
onMousedown: (T) => S(T)
|
|
5041
|
+
}, null), E("div", {
|
|
5042
5042
|
class: "fv-resizable-handle fv-resizable-w",
|
|
5043
5043
|
type: "w",
|
|
5044
|
-
onMousedown: (T) =>
|
|
5045
|
-
}, null),
|
|
5044
|
+
onMousedown: (T) => S(T)
|
|
5045
|
+
}, null), E("div", {
|
|
5046
5046
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
5047
5047
|
type: "ne",
|
|
5048
|
-
onMousedown: (T) =>
|
|
5049
|
-
}, null),
|
|
5048
|
+
onMousedown: (T) => S(T)
|
|
5049
|
+
}, null), E("div", {
|
|
5050
5050
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
5051
5051
|
type: "se",
|
|
5052
|
-
onMousedown: (T) =>
|
|
5053
|
-
}, null),
|
|
5052
|
+
onMousedown: (T) => S(T)
|
|
5053
|
+
}, null), E("div", {
|
|
5054
5054
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
5055
5055
|
type: "sw",
|
|
5056
|
-
onMousedown: (T) =>
|
|
5057
|
-
}, null),
|
|
5056
|
+
onMousedown: (T) => S(T)
|
|
5057
|
+
}, null), E("div", {
|
|
5058
5058
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
5059
5059
|
type: "nw",
|
|
5060
|
-
onMousedown: (T) =>
|
|
5060
|
+
onMousedown: (T) => S(T)
|
|
5061
5061
|
}, null)]);
|
|
5062
5062
|
}
|
|
5063
5063
|
function j(I = !0) {
|
|
5064
5064
|
document.body.click();
|
|
5065
|
-
const T = o.value || document.body, R = Ge.getCurrent(T),
|
|
5066
|
-
I &&
|
|
5065
|
+
const T = o.value || document.body, R = Ge.getCurrent(T), F = t.value;
|
|
5066
|
+
I && F && (d.value = P(), d.value.transform = F.style.transform), R && F && (u.value = R, u.value.height -= 14, u.value.width -= 14, F.style.height = u.value.height + "px", F.style.width = u.value.width + "px", F.style.left = "7px", F.style.top = "7px", F.style.transform = "", m.value = {
|
|
5067
5067
|
size: u.value,
|
|
5068
5068
|
position: {
|
|
5069
5069
|
x: 0,
|
|
@@ -5077,15 +5077,15 @@ function pr(n, e) {
|
|
|
5077
5077
|
const R = {
|
|
5078
5078
|
width: d.value.size.width || 0,
|
|
5079
5079
|
height: d.value.size.height || 0
|
|
5080
|
-
},
|
|
5080
|
+
}, F = {
|
|
5081
5081
|
x: (window.innerWidth - R.width) / 2,
|
|
5082
5082
|
y: (window.innerHeight - R.height) / 2
|
|
5083
5083
|
};
|
|
5084
|
-
(I = u.value) == null || I.set(R), (T = c.value) == null || T.set(
|
|
5084
|
+
(I = u.value) == null || I.set(R), (T = c.value) == null || T.set(F);
|
|
5085
5085
|
const z = t.value;
|
|
5086
|
-
z.style.height = R.height + "px", z.style.width = R.width + "px", z.style.left = `${
|
|
5086
|
+
z.style.height = R.height + "px", z.style.width = R.width + "px", z.style.left = `${F.x}px`, z.style.top = `${F.y}px`, z.style.transform = "", m.value = {
|
|
5087
5087
|
size: R,
|
|
5088
|
-
position:
|
|
5088
|
+
position: F
|
|
5089
5089
|
}, v.value = n.draggable, g.value = !1;
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
@@ -5123,7 +5123,7 @@ function pr(n, e) {
|
|
|
5123
5123
|
};
|
|
5124
5124
|
}
|
|
5125
5125
|
function fr(n, e, t) {
|
|
5126
|
-
const o =
|
|
5126
|
+
const o = M(), i = M(n.draggable), a = M(n.lockAxis), r = M(), u = M(), c = M(!1), s = M(new le(0, 0)), f = M(new le(0, 0)), l = M(new le(0, 0)), m = M(new le(0, 0));
|
|
5127
5127
|
Fe(() => t.value, (O) => {
|
|
5128
5128
|
r.value.style.cursor = O ? "move" : "default";
|
|
5129
5129
|
});
|
|
@@ -5138,9 +5138,9 @@ function fr(n, e, t) {
|
|
|
5138
5138
|
return !1;
|
|
5139
5139
|
}
|
|
5140
5140
|
function d() {
|
|
5141
|
-
var X,
|
|
5141
|
+
var X, S;
|
|
5142
5142
|
let O = l.value.x + f.value.x, P = l.value.y + f.value.y;
|
|
5143
|
-
a.value === "x" ? (O = ((X = s.value) == null ? void 0 : X.x) || 0, l.value.x = 0) : a.value === "y" && (P = ((
|
|
5143
|
+
a.value === "x" ? (O = ((X = s.value) == null ? void 0 : X.x) || 0, l.value.x = 0) : a.value === "y" && (P = ((S = s.value) == null ? void 0 : S.y) || 0, l.value.y = 0);
|
|
5144
5144
|
const $ = `translate3d(${Math.round(O)}px, ${Math.round(P)}px, 0px)`;
|
|
5145
5145
|
o.value && (o.value.style.transform = $), m.value.x = O, m.value.y = P;
|
|
5146
5146
|
}
|
|
@@ -5213,7 +5213,7 @@ function Tn(n, e) {
|
|
|
5213
5213
|
}
|
|
5214
5214
|
}
|
|
5215
5215
|
function mr(n, e) {
|
|
5216
|
-
const t =
|
|
5216
|
+
const t = M(n.enableEsc);
|
|
5217
5217
|
let o = null;
|
|
5218
5218
|
return t.value ? (o = Tn("Escape", (i) => {
|
|
5219
5219
|
e.emit("esc", { event: i.event, type: "esc" });
|
|
@@ -5222,7 +5222,7 @@ function mr(n, e) {
|
|
|
5222
5222
|
}) : null;
|
|
5223
5223
|
}
|
|
5224
5224
|
function vr(n, e) {
|
|
5225
|
-
const t =
|
|
5225
|
+
const t = M(n.enableEnter);
|
|
5226
5226
|
let o = null;
|
|
5227
5227
|
return t.value ? (o = Tn("Enter", (i) => {
|
|
5228
5228
|
e.emit("enter", { event: i.event, type: "enter" });
|
|
@@ -5235,11 +5235,11 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5235
5235
|
props: wn,
|
|
5236
5236
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
5237
5237
|
setup(n, e) {
|
|
5238
|
-
const t =
|
|
5238
|
+
const t = M(n.width || 300), o = M(n.height || 200), i = M(n.modelValue), a = M(""), r = M(n.class), u = M(n.fitContent), c = M(n.showHeader), s = M(""), f = M(n.showCloseButton), l = M(n.showMaxButton), m = M(!1), p = M(n.dialogType), d = M(n.src), v = M(""), g = M(n.showButtons), C = M(n.title), B = M(n.containment || null), A = M(), {
|
|
5239
5239
|
t: L
|
|
5240
5240
|
} = Rt();
|
|
5241
5241
|
C.value === "错误提示" && (C.value = L("messageBox.errorTitle"));
|
|
5242
|
-
const x =
|
|
5242
|
+
const x = M(!1);
|
|
5243
5243
|
function b(V, ne) {
|
|
5244
5244
|
const ue = ne ? "accept" : "cancel";
|
|
5245
5245
|
Promise.resolve().then(() => {
|
|
@@ -5265,7 +5265,7 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5265
5265
|
handle: (V) => {
|
|
5266
5266
|
b(V, !0);
|
|
5267
5267
|
}
|
|
5268
|
-
}], P =
|
|
5268
|
+
}], P = M(n.buttons && n.buttons.length ? n.buttons : O), $ = H(() => !!s.value), X = H(() => !!g.value && !!P.value), S = M(), N = M(), j = M(!1), {
|
|
5269
5269
|
renderResizeBar: h,
|
|
5270
5270
|
maximize: y,
|
|
5271
5271
|
restore: k,
|
|
@@ -5273,7 +5273,7 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5273
5273
|
resizedEventParam: I,
|
|
5274
5274
|
allowDrag: T,
|
|
5275
5275
|
unWindowResizeHandle: R,
|
|
5276
|
-
moveToCenter:
|
|
5276
|
+
moveToCenter: F
|
|
5277
5277
|
} = pr(n), {
|
|
5278
5278
|
registerDraggle: z
|
|
5279
5279
|
} = fr(n, e, T);
|
|
@@ -5288,7 +5288,7 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5288
5288
|
V !== ne && (C.value = V);
|
|
5289
5289
|
}), Fe(() => n.modelValue, (V, ne) => {
|
|
5290
5290
|
V !== ne && (i.value = V, i.value && n.draggable && $t(() => {
|
|
5291
|
-
N.value && !B.value && (B.value = N.value.parentElement, _.value = B.value, z(
|
|
5291
|
+
N.value && !B.value && (B.value = N.value.parentElement, _.value = B.value, z(S.value, N.value, _.value), F());
|
|
5292
5292
|
}), V || (B.value && (B.value = null), te())), i.value ? x.value = K() : (j.value = !1, T.value = n.draggable);
|
|
5293
5293
|
}), Fe(() => n.showHeader, (V, ne) => {
|
|
5294
5294
|
V !== ne && (c.value = V);
|
|
@@ -5378,7 +5378,7 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5378
5378
|
$n(() => {
|
|
5379
5379
|
x.value = K();
|
|
5380
5380
|
}), et(() => {
|
|
5381
|
-
N.value && !B.value && (B.value = N.value.parentElement, _.value = B.value, z(
|
|
5381
|
+
N.value && !B.value && (B.value = N.value.parentElement, _.value = B.value, z(S.value, N.value, _.value)), J.value && document.body.classList.add("modal-open"), Ne = mr(n, e), xe = vr(n, e);
|
|
5382
5382
|
}), gt(() => {
|
|
5383
5383
|
R && R(), Ne && Ne.remove(), xe && xe.remove();
|
|
5384
5384
|
}), e.expose({
|
|
@@ -5389,31 +5389,31 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5389
5389
|
isMaximized: j
|
|
5390
5390
|
});
|
|
5391
5391
|
function Le() {
|
|
5392
|
-
return
|
|
5392
|
+
return E("ul", null, [m.value && E("li", {
|
|
5393
5393
|
class: "f-btn-icon f-bare"
|
|
5394
|
-
}, [
|
|
5394
|
+
}, [E("span", {
|
|
5395
5395
|
class: "f-icon modal_minimize"
|
|
5396
|
-
}, null)]), l.value &&
|
|
5396
|
+
}, null)]), l.value && E("li", {
|
|
5397
5397
|
onClick: ce,
|
|
5398
5398
|
class: "f-btn-icon f-bare",
|
|
5399
5399
|
style: "pointer-events: auto;"
|
|
5400
|
-
}, [
|
|
5400
|
+
}, [E("span", {
|
|
5401
5401
|
class: Te.value
|
|
5402
|
-
}, null)]), f.value &&
|
|
5402
|
+
}, null)]), f.value && E("li", {
|
|
5403
5403
|
class: "f-btn-icon f-bare",
|
|
5404
5404
|
onClick: (V) => b(V, !1),
|
|
5405
5405
|
style: "pointer-events: auto;"
|
|
5406
|
-
}, [
|
|
5406
|
+
}, [E("span", {
|
|
5407
5407
|
class: "f-icon modal_close"
|
|
5408
5408
|
}, null)])]);
|
|
5409
5409
|
}
|
|
5410
5410
|
function nt() {
|
|
5411
|
-
return
|
|
5411
|
+
return E("div", {
|
|
5412
5412
|
class: "modal-footer",
|
|
5413
5413
|
style: Je.value
|
|
5414
5414
|
}, [P.value && P.value.map((V) => {
|
|
5415
|
-
const ne =
|
|
5416
|
-
return
|
|
5415
|
+
const ne = M(V.disabled);
|
|
5416
|
+
return E("button", {
|
|
5417
5417
|
name: V.name,
|
|
5418
5418
|
type: "button",
|
|
5419
5419
|
disabled: ne.value,
|
|
@@ -5421,24 +5421,24 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5421
5421
|
onClick: (ue) => {
|
|
5422
5422
|
tt(V, ue);
|
|
5423
5423
|
}
|
|
5424
|
-
}, [!!V.iconClass &&
|
|
5424
|
+
}, [!!V.iconClass && E("i", {
|
|
5425
5425
|
class: V.iconClass
|
|
5426
5426
|
}, null), V.text]);
|
|
5427
5427
|
})]);
|
|
5428
5428
|
}
|
|
5429
5429
|
function ze() {
|
|
5430
|
-
return
|
|
5431
|
-
ref:
|
|
5430
|
+
return E("div", {
|
|
5431
|
+
ref: S,
|
|
5432
5432
|
class: "modal-header",
|
|
5433
5433
|
style: Pe.value
|
|
5434
|
-
}, [e.slots.headerTemplate ? e.slots.headerTemplate() :
|
|
5434
|
+
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : E("div", {
|
|
5435
5435
|
class: "modal-title"
|
|
5436
|
-
}, [$.value &&
|
|
5436
|
+
}, [$.value && E("span", {
|
|
5437
5437
|
class: s.value,
|
|
5438
5438
|
style: "margin-right: 8px"
|
|
5439
|
-
}, null),
|
|
5439
|
+
}, null), E("span", {
|
|
5440
5440
|
class: "modal-title-label"
|
|
5441
|
-
}, [C.value])]),
|
|
5441
|
+
}, [C.value])]), E("div", {
|
|
5442
5442
|
class: "actions"
|
|
5443
5443
|
}, [Le()])]);
|
|
5444
5444
|
}
|
|
@@ -5454,16 +5454,16 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5454
5454
|
}
|
|
5455
5455
|
function Qe() {
|
|
5456
5456
|
var V, ne;
|
|
5457
|
-
return
|
|
5457
|
+
return E("div", {
|
|
5458
5458
|
id: a.value,
|
|
5459
5459
|
class: re.value,
|
|
5460
5460
|
style: ee.value,
|
|
5461
5461
|
ref: N
|
|
5462
|
-
}, [
|
|
5462
|
+
}, [E("div", {
|
|
5463
5463
|
class: je.value
|
|
5464
|
-
}, [c.value && ze(),
|
|
5464
|
+
}, [c.value && ze(), E("div", {
|
|
5465
5465
|
class: Ye.value
|
|
5466
|
-
}, [(ne = (V = e.slots).default) == null ? void 0 : ne.call(V), p.value === "iframe" &&
|
|
5466
|
+
}, [(ne = (V = e.slots).default) == null ? void 0 : ne.call(V), p.value === "iframe" && E("iframe", {
|
|
5467
5467
|
title: a.value,
|
|
5468
5468
|
class: "f-utils-fill",
|
|
5469
5469
|
width: "100%",
|
|
@@ -5474,14 +5474,14 @@ const Xe = /* @__PURE__ */ Ee({
|
|
|
5474
5474
|
function Ze(V) {
|
|
5475
5475
|
return V || "body";
|
|
5476
5476
|
}
|
|
5477
|
-
return () =>
|
|
5477
|
+
return () => E(Rn, {
|
|
5478
5478
|
to: Ze(n.host)
|
|
5479
5479
|
}, {
|
|
5480
|
-
default: () => [J.value &&
|
|
5480
|
+
default: () => [J.value && E(on, {
|
|
5481
5481
|
name: "fade",
|
|
5482
5482
|
appear: !0
|
|
5483
5483
|
}, {
|
|
5484
|
-
default: () => [
|
|
5484
|
+
default: () => [E("div", {
|
|
5485
5485
|
ref: A,
|
|
5486
5486
|
class: ie.value,
|
|
5487
5487
|
style: se.value,
|
|
@@ -5505,7 +5505,7 @@ function hr(n) {
|
|
|
5505
5505
|
gt(() => {
|
|
5506
5506
|
document.body.removeChild(e);
|
|
5507
5507
|
});
|
|
5508
|
-
const a =
|
|
5508
|
+
const a = M(), r = M(n.class || ""), u = M(!!n.showButtons), c = M(!!n.showHeader), s = M(n.showCloseButton == null ? !0 : n.showCloseButton), f = M(!0), l = M(n.title || ""), m = n.acceptCallback || (() => {
|
|
5509
5509
|
}), p = n.rejectCallback || (() => {
|
|
5510
5510
|
}), d = n.closedCallback || ((A) => {
|
|
5511
5511
|
}), v = n.resizeHandle || ((A) => {
|
|
@@ -5516,7 +5516,7 @@ function hr(n) {
|
|
|
5516
5516
|
return et(() => {
|
|
5517
5517
|
}), i.expose({
|
|
5518
5518
|
modalRef: a
|
|
5519
|
-
}), () =>
|
|
5519
|
+
}), () => E(Xe, {
|
|
5520
5520
|
ref: a,
|
|
5521
5521
|
class: r.value,
|
|
5522
5522
|
modelValue: f.value,
|
|
@@ -5545,10 +5545,10 @@ function hr(n) {
|
|
|
5545
5545
|
class In {
|
|
5546
5546
|
constructor(e) {
|
|
5547
5547
|
Q(this, "appContext", null);
|
|
5548
|
-
Q(this, "modalRef",
|
|
5549
|
-
Q(this, "activeModalIndex",
|
|
5548
|
+
Q(this, "modalRef", M());
|
|
5549
|
+
Q(this, "activeModalIndex", M(0));
|
|
5550
5550
|
Q(this, "modalRefs", {});
|
|
5551
|
-
Q(this, "isUseEscCloseModal",
|
|
5551
|
+
Q(this, "isUseEscCloseModal", M(!1));
|
|
5552
5552
|
Q(this, "activeModalInstance", H(() => this.modalRefs[this.activeModalIndex.value]));
|
|
5553
5553
|
this.app = e, this.appContext = e ? e._context : null;
|
|
5554
5554
|
}
|
|
@@ -5587,7 +5587,7 @@ class In {
|
|
|
5587
5587
|
title: "",
|
|
5588
5588
|
showButtons: !0,
|
|
5589
5589
|
showHeader: !0
|
|
5590
|
-
}, e)), i =
|
|
5590
|
+
}, e)), i = M(!0), a = o.value.acceptCallback || (() => {
|
|
5591
5591
|
}), r = o.value.rejectCallback || (() => {
|
|
5592
5592
|
}), u = o.value.closedCallback || ((x, b) => {
|
|
5593
5593
|
}), c = o.value.resizeHandle || ((x) => {
|
|
@@ -5615,7 +5615,7 @@ class In {
|
|
|
5615
5615
|
height: g
|
|
5616
5616
|
} = o.value, C = this.adaptToWindow(v || 500, g || 320);
|
|
5617
5617
|
Object.assign(o.value, C);
|
|
5618
|
-
const B = () =>
|
|
5618
|
+
const B = () => E(Xe, Vt({
|
|
5619
5619
|
ref: this.modalRef,
|
|
5620
5620
|
modelValue: i.value,
|
|
5621
5621
|
"onUpdate:modelValue": (x) => i.value = x
|
|
@@ -5680,7 +5680,7 @@ const Me = class Me {
|
|
|
5680
5680
|
showMaxButton: !1,
|
|
5681
5681
|
draggable: !0,
|
|
5682
5682
|
dragHandle: ".messager-draggable",
|
|
5683
|
-
render: () =>
|
|
5683
|
+
render: () => E(vt, Vt(t, {
|
|
5684
5684
|
onAccept: r,
|
|
5685
5685
|
onReject: u,
|
|
5686
5686
|
onClose: f
|
|
@@ -5780,9 +5780,9 @@ function br(n, e) {
|
|
|
5780
5780
|
return !1;
|
|
5781
5781
|
}
|
|
5782
5782
|
if (C && C.componentInstance) {
|
|
5783
|
-
const { componentInstance: X } = C,
|
|
5784
|
-
if (
|
|
5785
|
-
return A.getViewModelById(
|
|
5783
|
+
const { componentInstance: X } = C, S = A.getViewModelIdByComponentId(X.value.belongedComponentId);
|
|
5784
|
+
if (S !== L && d === "form-group")
|
|
5785
|
+
return A.getViewModelById(S).bindTo === x.bindTo;
|
|
5786
5786
|
}
|
|
5787
5787
|
return !0;
|
|
5788
5788
|
}
|
|
@@ -5843,10 +5843,10 @@ const Cr = /* @__PURE__ */ Ee({
|
|
|
5843
5843
|
props: zt,
|
|
5844
5844
|
emits: [],
|
|
5845
5845
|
setup(n, e) {
|
|
5846
|
-
const t =
|
|
5846
|
+
const t = M(), o = st("design-item-context"), i = st("designer-host-service"), a = br(o, i), r = yn(t, o, a);
|
|
5847
5847
|
return et(() => {
|
|
5848
5848
|
t.value.componentInstance = r;
|
|
5849
|
-
}), e.expose(r.value), () =>
|
|
5849
|
+
}), e.expose(r.value), () => E("div", {
|
|
5850
5850
|
ref: t,
|
|
5851
5851
|
class: n.customClass,
|
|
5852
5852
|
style: "padding-right:8px;display:inherit;flex:1;",
|
|
@@ -5892,7 +5892,7 @@ function kr(n, e) {
|
|
|
5892
5892
|
"3:6:3",
|
|
5893
5893
|
"3:3:6",
|
|
5894
5894
|
"3:3:3:3"
|
|
5895
|
-
], i =
|
|
5895
|
+
], i = M([]), a = M(""), r = M(n.layout || []), u = M(!0);
|
|
5896
5896
|
function c() {
|
|
5897
5897
|
o.forEach((p) => {
|
|
5898
5898
|
i.value.push(p.split(":").map((d) => `col-${d}`));
|
|
@@ -5972,41 +5972,41 @@ const Pr = /* @__PURE__ */ Ee({
|
|
|
5972
5972
|
active: i.value === s
|
|
5973
5973
|
}));
|
|
5974
5974
|
function c() {
|
|
5975
|
-
return
|
|
5975
|
+
return E("ul", {
|
|
5976
5976
|
class: "columns-layout-list"
|
|
5977
|
-
}, [t.map((s, f) =>
|
|
5977
|
+
}, [t.map((s, f) => E("li", {
|
|
5978
5978
|
class: u.value(s),
|
|
5979
5979
|
onClick: () => r(s)
|
|
5980
|
-
}, [
|
|
5980
|
+
}, [E("div", {
|
|
5981
5981
|
class: "columns-layout-icon d-flex"
|
|
5982
|
-
}, [o.value[f].map((l) =>
|
|
5982
|
+
}, [o.value[f].map((l) => E("div", {
|
|
5983
5983
|
class: {
|
|
5984
5984
|
"columns-layout-item": !0,
|
|
5985
5985
|
[l]: !0
|
|
5986
5986
|
}
|
|
5987
|
-
}, [ft(" ")]))])])), a.value ? "" :
|
|
5987
|
+
}, [ft(" ")]))])])), a.value ? "" : E("li", {
|
|
5988
5988
|
class: "columns-layout-option active",
|
|
5989
5989
|
title: "自定义布局"
|
|
5990
|
-
}, [
|
|
5990
|
+
}, [E("div", {
|
|
5991
5991
|
class: "columns-layout-icon icon-custom"
|
|
5992
5992
|
}, [ft(" ")])])]);
|
|
5993
5993
|
}
|
|
5994
|
-
return () =>
|
|
5994
|
+
return () => E("div", {
|
|
5995
5995
|
class: "columns-layout"
|
|
5996
|
-
}, [c(), a.value ?
|
|
5996
|
+
}, [c(), a.value ? E("div", {
|
|
5997
5997
|
class: "farris-group-wrap mt-2"
|
|
5998
|
-
}, [
|
|
5998
|
+
}, [E("div", {
|
|
5999
5999
|
class: "form-group farris-form-group d-flex"
|
|
6000
|
-
}, [
|
|
6000
|
+
}, [E("label", {
|
|
6001
6001
|
class: "col-form-label mb-0",
|
|
6002
6002
|
style: "width: 89px;"
|
|
6003
|
-
}, [
|
|
6003
|
+
}, [E("div", {
|
|
6004
6004
|
class: "wrap"
|
|
6005
|
-
}, [
|
|
6005
|
+
}, [E("span", {
|
|
6006
6006
|
class: "farris-label-text"
|
|
6007
|
-
}, [ft(" 布局比例 ")])])]),
|
|
6007
|
+
}, [ft(" 布局比例 ")])])]), E("div", {
|
|
6008
6008
|
class: "farris-input-wrap"
|
|
6009
|
-
}, [
|
|
6009
|
+
}, [E("input", {
|
|
6010
6010
|
type: "input",
|
|
6011
6011
|
class: "form-control form-control-sm",
|
|
6012
6012
|
value: i.value,
|