@farris/ui-vue 1.6.5-beta.8 → 1.6.6
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 +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/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 +7 -6
- 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 +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- 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 +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/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/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- 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 +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/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 +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- 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 +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- 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 +220 -220
- 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 +381 -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 +15445 -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 +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -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 +4685 -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 +6989 -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 +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- 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 go = Object.defineProperty;
|
|
2
2
|
var yo = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var je = (e, t, n) => yo(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as tt, ref as
|
|
4
|
+
import { defineComponent as tt, ref as h, computed as R, createVNode as g, Teleport as rn, createApp as Jt, onUnmounted as bt, Fragment as lt, watch as me, nextTick as mt, onBeforeMount as ho, onMounted as vt, Transition as sn, shallowRef as bo, render as qt, h as Co, cloneVNode as wo, mergeProps as Ht, reactive as Ke, createTextVNode as ht, inject as Rt, withDirectives as xo, vShow as So, onUpdated as To, onBeforeUnmount as Bo, isVNode as Fo, Comment as ko, provide as Io } from "vue";
|
|
5
5
|
import { resolveAppearance as Oo, createPropsResolver as un } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import { useI18n as Qt } from "vue-i18n";
|
|
7
7
|
import { getMaxZIndex as Eo, getCustomClass as cn, withInstall as Zt, FormSchemaEntityField$Type as nn, FormSchemaEntityFieldTypeName as on, useGuid as Mo, useCommonUtils as Do } from "../common/index.esm.js";
|
|
@@ -221,7 +221,7 @@ const _o = {
|
|
|
221
221
|
props: qo,
|
|
222
222
|
emits: ["click"],
|
|
223
223
|
setup(e, t) {
|
|
224
|
-
const n =
|
|
224
|
+
const n = h(e.popupContentPosition), o = h(e.host), a = R(() => ({
|
|
225
225
|
backgroundColor: e.backgroundColor || "",
|
|
226
226
|
pointerEvents: "auto"
|
|
227
227
|
}));
|
|
@@ -603,15 +603,15 @@ class ft {
|
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function da(e, t) {
|
|
606
|
-
const n =
|
|
606
|
+
const n = h(), o = h(), a = h(), l = h(), i = h(), u = h(), r = h(), s = h(), p = h(), d = h(), m = h(), f = h(e.resizeable), c = h(), v = h(e.draggable), B = h(!1);
|
|
607
607
|
function E() {
|
|
608
608
|
const C = o.value || document.body, I = window.getComputedStyle(C);
|
|
609
609
|
if (!I || !n.value)
|
|
610
610
|
return;
|
|
611
|
-
const
|
|
611
|
+
const U = we.getTransformInfo(n.value), N = {};
|
|
612
612
|
r.value && (N.deltaL = n.value.offsetLeft - r.value.x, N.deltaT = n.value.offsetTop - r.value.y);
|
|
613
613
|
const ee = I.getPropertyValue("position");
|
|
614
|
-
N.width = C.clientWidth, N.height = C.clientHeight, N.pr = parseInt(I.getPropertyValue("padding-right"), 10), N.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), N.position = I.getPropertyValue("position"), ee === "static" && (C.style.position = "relative"), N.translateX =
|
|
614
|
+
N.width = C.clientWidth, N.height = C.clientHeight, N.pr = parseInt(I.getPropertyValue("padding-right"), 10), N.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), N.position = I.getPropertyValue("position"), ee === "static" && (C.style.position = "relative"), N.translateX = U.x, N.translateY = U.y, d.value = N;
|
|
615
615
|
}
|
|
616
616
|
function O(C) {
|
|
617
617
|
if (n.value) {
|
|
@@ -626,10 +626,10 @@ function da(e, t) {
|
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
function L() {
|
|
629
|
-
var C, I,
|
|
629
|
+
var C, I, U, N;
|
|
630
630
|
if (n.value) {
|
|
631
631
|
const ee = n.value;
|
|
632
|
-
s.value && ((s.value.n || s.value.s) && ((C = u.value) != null && C.height) && (ee.style.height = u.value.height + "px"), (s.value.w || s.value.e) && ((I = u.value) != null && I.width) && (ee.style.width = u.value.width + "px"), r.value && ((
|
|
632
|
+
s.value && ((s.value.n || s.value.s) && ((C = u.value) != null && C.height) && (ee.style.height = u.value.height + "px"), (s.value.w || s.value.e) && ((I = u.value) != null && I.width) && (ee.style.width = u.value.width + "px"), r.value && ((U = r.value) != null && U.x && (ee.style.left = r.value.x + "px"), (N = r.value) != null && N.y && (ee.style.top = r.value.y + "px")));
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
function k() {
|
|
@@ -640,8 +640,8 @@ function da(e, t) {
|
|
|
640
640
|
if (o.value) {
|
|
641
641
|
const C = d.value;
|
|
642
642
|
if (r.value && u.value && s.value && l.value) {
|
|
643
|
-
const I = C.width - C.pr - C.deltaL - C.translateX - r.value.x,
|
|
644
|
-
s.value.n && r.value.y + C.translateY < 0 && i.value && (r.value.y = -C.translateY, u.value.height = l.value.height + i.value.y + C.translateY), s.value.w && r.value.x + C.translateX < 0 && i.value && (r.value.x = -C.translateX, u.value.width = l.value.width + i.value.x + C.translateX), u.value.width > I && (u.value.width = I), u.value.height >
|
|
643
|
+
const I = C.width - C.pr - C.deltaL - C.translateX - r.value.x, U = C.height - C.pb - C.deltaT - C.translateY - r.value.y;
|
|
644
|
+
s.value.n && r.value.y + C.translateY < 0 && i.value && (r.value.y = -C.translateY, u.value.height = l.value.height + i.value.y + C.translateY), s.value.w && r.value.x + C.translateX < 0 && i.value && (r.value.x = -C.translateX, u.value.width = l.value.width + i.value.x + C.translateX), u.value.width > I && (u.value.width = I), u.value.height > U && (u.value.height = U);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
}
|
|
@@ -649,10 +649,10 @@ function da(e, t) {
|
|
|
649
649
|
if (!a.value || !l.value || !i.value || !s.value)
|
|
650
650
|
return;
|
|
651
651
|
C.subtract(a.value);
|
|
652
|
-
const I = C.x,
|
|
653
|
-
s.value.n ? (r.value.y = i.value.y +
|
|
652
|
+
const I = C.x, U = C.y;
|
|
653
|
+
s.value.n ? (r.value.y = i.value.y + U, u.value.height = l.value.height - U) : s.value.s && (u.value.height = l.value.height + U), s.value.e ? u.value.width = l.value.width + I : s.value.w && (u.value.width = l.value.width - I, r.value.x = i.value.x + I), T(), k(), L();
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function x(C) {
|
|
656
656
|
if (!p.value)
|
|
657
657
|
return;
|
|
658
658
|
const I = we.fromEvent(C);
|
|
@@ -663,7 +663,7 @@ function da(e, t) {
|
|
|
663
663
|
const {
|
|
664
664
|
width: C,
|
|
665
665
|
height: I,
|
|
666
|
-
x:
|
|
666
|
+
x: U,
|
|
667
667
|
y: N
|
|
668
668
|
} = n.value.getBoundingClientRect(), ee = we.getTransformInfo(n.value);
|
|
669
669
|
return {
|
|
@@ -672,7 +672,7 @@ function da(e, t) {
|
|
|
672
672
|
height: I
|
|
673
673
|
},
|
|
674
674
|
position: {
|
|
675
|
-
x:
|
|
675
|
+
x: U - ee.x,
|
|
676
676
|
y: N - ee.y
|
|
677
677
|
}
|
|
678
678
|
};
|
|
@@ -684,53 +684,53 @@ function da(e, t) {
|
|
|
684
684
|
const I = F();
|
|
685
685
|
m.value = I;
|
|
686
686
|
}
|
|
687
|
-
a.value = void 0, l.value = null, i.value = null, u.value = null, r.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove",
|
|
687
|
+
a.value = void 0, l.value = null, i.value = null, u.value = null, r.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", D);
|
|
688
688
|
}
|
|
689
689
|
function q() {
|
|
690
|
-
document.addEventListener("mousemove",
|
|
690
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", D);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function y(C) {
|
|
693
693
|
C instanceof MouseEvent && C.button === 2 || v.value && (document.body.click(), C.stopPropagation(), C.preventDefault(), a.value = we.fromEvent(C), p.value = C.target, O(C), q());
|
|
694
694
|
}
|
|
695
695
|
function G(C) {
|
|
696
696
|
return n.value = C, f.value && g(lt, null, [g("div", {
|
|
697
697
|
class: "fv-resizable-handle fv-resizable-n",
|
|
698
698
|
type: "n",
|
|
699
|
-
onMousedown: (I) =>
|
|
699
|
+
onMousedown: (I) => y(I)
|
|
700
700
|
}, null), g("div", {
|
|
701
701
|
class: "fv-resizable-handle fv-resizable-e",
|
|
702
702
|
type: "e",
|
|
703
|
-
onMousedown: (I) =>
|
|
703
|
+
onMousedown: (I) => y(I)
|
|
704
704
|
}, null), g("div", {
|
|
705
705
|
class: "fv-resizable-handle fv-resizable-s",
|
|
706
706
|
type: "s",
|
|
707
|
-
onMousedown: (I) =>
|
|
707
|
+
onMousedown: (I) => y(I)
|
|
708
708
|
}, null), g("div", {
|
|
709
709
|
class: "fv-resizable-handle fv-resizable-w",
|
|
710
710
|
type: "w",
|
|
711
|
-
onMousedown: (I) =>
|
|
711
|
+
onMousedown: (I) => y(I)
|
|
712
712
|
}, null), g("div", {
|
|
713
713
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
714
714
|
type: "ne",
|
|
715
|
-
onMousedown: (I) =>
|
|
715
|
+
onMousedown: (I) => y(I)
|
|
716
716
|
}, null), g("div", {
|
|
717
717
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
718
718
|
type: "se",
|
|
719
|
-
onMousedown: (I) =>
|
|
719
|
+
onMousedown: (I) => y(I)
|
|
720
720
|
}, null), g("div", {
|
|
721
721
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
722
722
|
type: "sw",
|
|
723
|
-
onMousedown: (I) =>
|
|
723
|
+
onMousedown: (I) => y(I)
|
|
724
724
|
}, null), g("div", {
|
|
725
725
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
726
726
|
type: "nw",
|
|
727
|
-
onMousedown: (I) =>
|
|
727
|
+
onMousedown: (I) => y(I)
|
|
728
728
|
}, null)]);
|
|
729
729
|
}
|
|
730
730
|
function W(C = !0) {
|
|
731
731
|
document.body.click();
|
|
732
|
-
const I = o.value || document.body,
|
|
733
|
-
C && N && (c.value = F(), c.value.transform = N.style.transform),
|
|
732
|
+
const I = o.value || document.body, U = ft.getCurrent(I), N = n.value;
|
|
733
|
+
C && N && (c.value = F(), c.value.transform = N.style.transform), U && N && (u.value = U, u.value.height -= 14, u.value.width -= 14, N.style.height = u.value.height + "px", N.style.width = u.value.width + "px", N.style.left = "7px", N.style.top = "7px", N.style.transform = "", m.value = {
|
|
734
734
|
size: u.value,
|
|
735
735
|
position: {
|
|
736
736
|
x: 0,
|
|
@@ -741,17 +741,17 @@ function da(e, t) {
|
|
|
741
741
|
function $() {
|
|
742
742
|
var C, I;
|
|
743
743
|
if (document.body.click(), c.value) {
|
|
744
|
-
const
|
|
744
|
+
const U = {
|
|
745
745
|
width: c.value.size.width || 0,
|
|
746
746
|
height: c.value.size.height || 0
|
|
747
747
|
}, N = {
|
|
748
|
-
x: (window.innerWidth -
|
|
749
|
-
y: (window.innerHeight -
|
|
748
|
+
x: (window.innerWidth - U.width) / 2,
|
|
749
|
+
y: (window.innerHeight - U.height) / 2
|
|
750
750
|
};
|
|
751
|
-
(C = u.value) == null || C.set(
|
|
751
|
+
(C = u.value) == null || C.set(U), (I = r.value) == null || I.set(N);
|
|
752
752
|
const ee = n.value;
|
|
753
|
-
ee.style.height =
|
|
754
|
-
size:
|
|
753
|
+
ee.style.height = U.height + "px", ee.style.width = U.width + "px", ee.style.left = `${N.x}px`, ee.style.top = `${N.y}px`, ee.style.transform = "", m.value = {
|
|
754
|
+
size: U,
|
|
755
755
|
position: N
|
|
756
756
|
}, v.value = e.draggable, B.value = !1;
|
|
757
757
|
}
|
|
@@ -762,9 +762,9 @@ function da(e, t) {
|
|
|
762
762
|
if (C) {
|
|
763
763
|
const {
|
|
764
764
|
width: I,
|
|
765
|
-
height:
|
|
765
|
+
height: U
|
|
766
766
|
} = C;
|
|
767
|
-
n.value.style.left = `${(window.innerWidth - I) / 2}px`, n.value.style.top = `${(window.innerHeight -
|
|
767
|
+
n.value.style.left = `${(window.innerWidth - I) / 2}px`, n.value.style.top = `${(window.innerHeight - U) / 2}px`, n.value.style.transform = "";
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
}
|
|
@@ -790,69 +790,69 @@ function da(e, t) {
|
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
function fa(e, t, n) {
|
|
793
|
-
const o =
|
|
794
|
-
me(() => n.value, (
|
|
795
|
-
i.value.style.cursor =
|
|
793
|
+
const o = h(), a = h(e.draggable), l = h(e.lockAxis), i = h(), u = h(), r = h(!1), s = h(new we(0, 0)), p = h(new we(0, 0)), d = h(new we(0, 0)), m = h(new we(0, 0));
|
|
794
|
+
me(() => n.value, (x) => {
|
|
795
|
+
i.value.style.cursor = x ? "move" : "default";
|
|
796
796
|
});
|
|
797
|
-
function f(
|
|
797
|
+
function f(x, F) {
|
|
798
798
|
if (F.tagName === "BUTTON")
|
|
799
799
|
return !1;
|
|
800
|
-
if (F ===
|
|
800
|
+
if (F === x)
|
|
801
801
|
return !0;
|
|
802
802
|
for (const D in F.children)
|
|
803
|
-
if (Object.prototype.hasOwnProperty.call(F.children, D) && f(
|
|
803
|
+
if (Object.prototype.hasOwnProperty.call(F.children, D) && f(x, F.children[D]))
|
|
804
804
|
return !0;
|
|
805
805
|
return !1;
|
|
806
806
|
}
|
|
807
807
|
function c() {
|
|
808
|
-
var q,
|
|
809
|
-
let
|
|
810
|
-
l.value === "x" ? (
|
|
811
|
-
const D = `translate3d(${Math.round(
|
|
812
|
-
o.value && (o.value.style.transform = D), m.value.x =
|
|
808
|
+
var q, y;
|
|
809
|
+
let x = d.value.x + p.value.x, F = d.value.y + p.value.y;
|
|
810
|
+
l.value === "x" ? (x = ((q = s.value) == null ? void 0 : q.x) || 0, d.value.x = 0) : l.value === "y" && (F = ((y = s.value) == null ? void 0 : y.y) || 0, d.value.y = 0);
|
|
811
|
+
const D = `translate3d(${Math.round(x)}px, ${Math.round(F)}px, 0px)`;
|
|
812
|
+
o.value && (o.value.style.transform = D), m.value.x = x, m.value.y = F;
|
|
813
813
|
}
|
|
814
814
|
function v() {
|
|
815
815
|
if (!u.value || !o.value)
|
|
816
816
|
return null;
|
|
817
|
-
const
|
|
818
|
-
top:
|
|
819
|
-
right:
|
|
820
|
-
bottom:
|
|
821
|
-
left:
|
|
817
|
+
const x = u.value.getBoundingClientRect(), F = o.value.getBoundingClientRect(), D = {
|
|
818
|
+
top: x.top < F.top,
|
|
819
|
+
right: x.right > F.right,
|
|
820
|
+
bottom: x.bottom > F.bottom,
|
|
821
|
+
left: x.left < F.left
|
|
822
822
|
};
|
|
823
|
-
return D.top || (d.value.y -= F.top -
|
|
823
|
+
return D.top || (d.value.y -= F.top - x.top), D.bottom || (d.value.y -= F.bottom - x.bottom), D.right || (d.value.x -= F.right - x.right), D.left || (d.value.x -= F.left - x.left), c(), D;
|
|
824
824
|
}
|
|
825
|
-
function B(
|
|
826
|
-
|
|
825
|
+
function B(x) {
|
|
826
|
+
x && (s.value && x.subtract(s.value), d.value.set(x), c(), v());
|
|
827
827
|
}
|
|
828
|
-
function E(
|
|
829
|
-
r.value && a.value && (
|
|
828
|
+
function E(x) {
|
|
829
|
+
r.value && a.value && (x.stopPropagation(), x.preventDefault(), B(we.fromEvent(x, i.value)));
|
|
830
830
|
}
|
|
831
831
|
function O() {
|
|
832
|
-
var
|
|
833
|
-
r.value && (r.value = !1, p.value.add(d.value), d.value.reset(), (
|
|
832
|
+
var x;
|
|
833
|
+
r.value && (r.value = !1, p.value.add(d.value), d.value.reset(), (x = o.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", O));
|
|
834
834
|
}
|
|
835
835
|
function L() {
|
|
836
836
|
!r.value && i.value && (r.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", E), document.addEventListener("mouseup", O));
|
|
837
837
|
}
|
|
838
838
|
function k() {
|
|
839
839
|
if (o.value) {
|
|
840
|
-
const
|
|
841
|
-
p.value.set(
|
|
840
|
+
const x = we.getTransformInfo(o.value);
|
|
841
|
+
p.value.set(x);
|
|
842
842
|
return;
|
|
843
843
|
}
|
|
844
844
|
p.value.reset();
|
|
845
845
|
}
|
|
846
|
-
function T(
|
|
847
|
-
if (!n.value ||
|
|
846
|
+
function T(x) {
|
|
847
|
+
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
848
848
|
return;
|
|
849
|
-
const F =
|
|
850
|
-
i.value !== void 0 && F && !f(F, i.value) || a.value !== !1 && (document.body.click(),
|
|
849
|
+
const F = x.target || x.srcElement;
|
|
850
|
+
i.value !== void 0 && F && !f(F, i.value) || a.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), s.value = we.fromEvent(x, o.value), k(), L());
|
|
851
851
|
}
|
|
852
|
-
function b(
|
|
852
|
+
function b(x, F, D) {
|
|
853
853
|
if (a.value && F) {
|
|
854
|
-
if (
|
|
855
|
-
i.value =
|
|
854
|
+
if (x)
|
|
855
|
+
i.value = x;
|
|
856
856
|
else if (e.dragHandle) {
|
|
857
857
|
if (e.dragHandle instanceof HTMLElement)
|
|
858
858
|
i.value = e.dragHandle;
|
|
@@ -880,7 +880,7 @@ function Xn(e, t) {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
function ma(e, t) {
|
|
883
|
-
const n =
|
|
883
|
+
const n = h(e.enableEsc);
|
|
884
884
|
let o = null;
|
|
885
885
|
return n.value ? (o = Xn("Escape", (a) => {
|
|
886
886
|
t.emit("esc", { event: a.event, type: "esc" });
|
|
@@ -889,7 +889,7 @@ function ma(e, t) {
|
|
|
889
889
|
}) : null;
|
|
890
890
|
}
|
|
891
891
|
function pa(e, t) {
|
|
892
|
-
const n =
|
|
892
|
+
const n = h(e.enableEnter);
|
|
893
893
|
let o = null;
|
|
894
894
|
return n.value ? (o = Xn("Enter", (a) => {
|
|
895
895
|
t.emit("enter", { event: a.event, type: "enter" });
|
|
@@ -902,11 +902,11 @@ const pt = /* @__PURE__ */ tt({
|
|
|
902
902
|
props: Un,
|
|
903
903
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
904
904
|
setup(e, t) {
|
|
905
|
-
const n =
|
|
905
|
+
const n = h(e.width || 300), o = h(e.height || 200), a = h(e.modelValue), l = h(""), i = h(e.class), u = h(e.fitContent), r = h(e.showHeader), s = h(""), p = h(e.showCloseButton), d = h(e.showMaxButton), m = h(!1), f = h(e.dialogType), c = h(e.src), v = h(""), B = h(e.showButtons), E = h(e.title), O = h(e.containment || null), L = h(), {
|
|
906
906
|
t: k
|
|
907
907
|
} = Qt();
|
|
908
908
|
E.value === "错误提示" && (E.value = k("messageBox.errorTitle"));
|
|
909
|
-
const T =
|
|
909
|
+
const T = h(!1);
|
|
910
910
|
function b(M, ne) {
|
|
911
911
|
const ge = ne ? "accept" : "cancel";
|
|
912
912
|
Promise.resolve().then(() => {
|
|
@@ -918,7 +918,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
918
918
|
he && (a.value = !1, t.emit("update:modelValue", !1), ne != null && t.emit(ne ? "accept" : "cancel"), t.emit("closed", M));
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
const
|
|
921
|
+
const x = [{
|
|
922
922
|
name: "cancel",
|
|
923
923
|
text: k("messageBox.cancel") || "取消",
|
|
924
924
|
class: "btn btn-secondary",
|
|
@@ -932,14 +932,14 @@ const pt = /* @__PURE__ */ tt({
|
|
|
932
932
|
handle: (M) => {
|
|
933
933
|
b(M, !0);
|
|
934
934
|
}
|
|
935
|
-
}], F =
|
|
935
|
+
}], F = h(e.buttons && e.buttons.length ? e.buttons : x), D = R(() => !!s.value), q = R(() => !!B.value && !!F.value), y = h(), G = h(), W = h(!1), {
|
|
936
936
|
renderResizeBar: $,
|
|
937
937
|
maximize: J,
|
|
938
938
|
restore: _,
|
|
939
939
|
boundingElement: j,
|
|
940
940
|
resizedEventParam: C,
|
|
941
941
|
allowDrag: I,
|
|
942
|
-
unWindowResizeHandle:
|
|
942
|
+
unWindowResizeHandle: U,
|
|
943
943
|
moveToCenter: N
|
|
944
944
|
} = da(e), {
|
|
945
945
|
registerDraggle: ee
|
|
@@ -955,7 +955,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
955
955
|
M !== ne && (E.value = M);
|
|
956
956
|
}), me(() => e.modelValue, (M, ne) => {
|
|
957
957
|
M !== ne && (a.value = M, a.value && e.draggable && mt(() => {
|
|
958
|
-
G.value && !O.value && (O.value = G.value.parentElement, j.value = O.value, ee(
|
|
958
|
+
G.value && !O.value && (O.value = G.value.parentElement, j.value = O.value, ee(y.value, G.value, j.value), N());
|
|
959
959
|
}), M || (O.value && (O.value = null), fe())), a.value ? T.value = le() : (W.value = !1, I.value = e.draggable);
|
|
960
960
|
}), me(() => e.showHeader, (M, ne) => {
|
|
961
961
|
M !== ne && (r.value = M);
|
|
@@ -994,10 +994,10 @@ const pt = /* @__PURE__ */ tt({
|
|
|
994
994
|
height: u.value ? "auto" : `${o.value}px`
|
|
995
995
|
};
|
|
996
996
|
return e.mask || (M.pointerEvents = "auto"), M;
|
|
997
|
-
}),
|
|
997
|
+
}), X = () => Eo() || 1040, se = R(() => {
|
|
998
998
|
const M = {
|
|
999
999
|
display: "block",
|
|
1000
|
-
zIndex:
|
|
1000
|
+
zIndex: X()
|
|
1001
1001
|
};
|
|
1002
1002
|
return e.mask || (M.pointerEvents = "none", M.backgroundColor = "transparent"), T.value && (M.backgroundColor = "transparent"), M;
|
|
1003
1003
|
}), Ne = R(() => ({
|
|
@@ -1045,9 +1045,9 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1045
1045
|
ho(() => {
|
|
1046
1046
|
T.value = le();
|
|
1047
1047
|
}), vt(() => {
|
|
1048
|
-
G.value && !O.value && (O.value = G.value.parentElement, j.value = O.value, ee(
|
|
1048
|
+
G.value && !O.value && (O.value = G.value.parentElement, j.value = O.value, ee(y.value, G.value, j.value)), Z.value && document.body.classList.add("modal-open"), Ge = ma(e, t), Oe = pa(e, t);
|
|
1049
1049
|
}), bt(() => {
|
|
1050
|
-
|
|
1050
|
+
U && U(), Ge && Ge.remove(), Oe && Oe.remove();
|
|
1051
1051
|
}), t.expose({
|
|
1052
1052
|
modalElementRef: G,
|
|
1053
1053
|
updateModalOptions: de,
|
|
@@ -1079,7 +1079,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1079
1079
|
class: "modal-footer",
|
|
1080
1080
|
style: Ae.value
|
|
1081
1081
|
}, [F.value && F.value.map((M) => {
|
|
1082
|
-
const ne =
|
|
1082
|
+
const ne = h(M.disabled);
|
|
1083
1083
|
return g("button", {
|
|
1084
1084
|
name: M.name,
|
|
1085
1085
|
type: "button",
|
|
@@ -1095,7 +1095,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1095
1095
|
}
|
|
1096
1096
|
function Fe() {
|
|
1097
1097
|
return g("div", {
|
|
1098
|
-
ref:
|
|
1098
|
+
ref: y,
|
|
1099
1099
|
class: "modal-header",
|
|
1100
1100
|
style: De.value
|
|
1101
1101
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : g("div", {
|
|
@@ -1172,7 +1172,7 @@ function va(e) {
|
|
|
1172
1172
|
bt(() => {
|
|
1173
1173
|
document.body.removeChild(t);
|
|
1174
1174
|
});
|
|
1175
|
-
const l =
|
|
1175
|
+
const l = h(), i = h(e.class || ""), u = h(!!e.showButtons), r = h(!!e.showHeader), s = h(e.showCloseButton == null ? !0 : e.showCloseButton), p = h(!0), d = h(e.title || ""), m = e.acceptCallback || (() => {
|
|
1176
1176
|
}), f = e.rejectCallback || (() => {
|
|
1177
1177
|
}), c = e.closedCallback || ((L) => {
|
|
1178
1178
|
}), v = e.resizeHandle || ((L) => {
|
|
@@ -1212,10 +1212,10 @@ function va(e) {
|
|
|
1212
1212
|
class Jn {
|
|
1213
1213
|
constructor(t) {
|
|
1214
1214
|
je(this, "appContext", null);
|
|
1215
|
-
je(this, "modalRef",
|
|
1216
|
-
je(this, "activeModalIndex",
|
|
1215
|
+
je(this, "modalRef", h());
|
|
1216
|
+
je(this, "activeModalIndex", h(0));
|
|
1217
1217
|
je(this, "modalRefs", {});
|
|
1218
|
-
je(this, "isUseEscCloseModal",
|
|
1218
|
+
je(this, "isUseEscCloseModal", h(!1));
|
|
1219
1219
|
je(this, "activeModalInstance", R(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1220
1220
|
this.app = t, this.appContext = t ? t._context : null;
|
|
1221
1221
|
}
|
|
@@ -1254,7 +1254,7 @@ class Jn {
|
|
|
1254
1254
|
title: "",
|
|
1255
1255
|
showButtons: !0,
|
|
1256
1256
|
showHeader: !0
|
|
1257
|
-
}, t)), a =
|
|
1257
|
+
}, t)), a = h(!0), l = o.value.acceptCallback || (() => {
|
|
1258
1258
|
}), i = o.value.rejectCallback || (() => {
|
|
1259
1259
|
}), u = o.value.closedCallback || ((T, b) => {
|
|
1260
1260
|
}), r = o.value.resizeHandle || ((T) => {
|
|
@@ -1262,14 +1262,14 @@ class Jn {
|
|
|
1262
1262
|
});
|
|
1263
1263
|
let p;
|
|
1264
1264
|
const d = Yn(o.value), m = (T) => {
|
|
1265
|
-
var
|
|
1265
|
+
var x;
|
|
1266
1266
|
a.value = !1;
|
|
1267
|
-
const b = (
|
|
1267
|
+
const b = (x = T == null ? void 0 : T.target) == null ? void 0 : x.classList.contains("modal_close");
|
|
1268
1268
|
u(T, this.isUseEscCloseModal.value ? "esc" : b ? "icon" : "button");
|
|
1269
1269
|
}, f = (T) => {
|
|
1270
1270
|
m(T), p && mt(() => {
|
|
1271
1271
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], qt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
1272
|
-
const b = Object.keys(this.modalRefs).map((
|
|
1272
|
+
const b = Object.keys(this.modalRefs).map((x) => Number(x));
|
|
1273
1273
|
b.length > 0 ? this.activeModalIndex.value = Math.max(...b) : this.activeModalIndex.value = 0;
|
|
1274
1274
|
}
|
|
1275
1275
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -1675,13 +1675,13 @@ function Qn(e, t, n) {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
function p(c, v, B, E, O, L = "", k = "") {
|
|
1677
1677
|
return Object.keys(c).map((b) => {
|
|
1678
|
-
const
|
|
1678
|
+
const x = h(1), F = b, D = c[b], q = Object.keys(D), y = D.title, G = D.type, W = a.get(G) || { type: "input-group", enableClear: !1 }, $ = D.editor ? Object.assign({}, W, D.editor) : Object.assign({}, W), J = u(q, D, v), _ = r(q, D, v);
|
|
1679
1679
|
$.readonly = $.readonly === void 0 ? _() : $.readonly;
|
|
1680
1680
|
const j = D.type === "cascade" ? p(D.properties, v, B, E, O, L, k) : [], C = !0;
|
|
1681
1681
|
let I = s(D, k);
|
|
1682
|
-
const
|
|
1682
|
+
const U = R({
|
|
1683
1683
|
get() {
|
|
1684
|
-
if (
|
|
1684
|
+
if (x.value) {
|
|
1685
1685
|
if (["class", "style"].find((ye) => ye === F) && !I && (I = o.get("/converter/appearance.converter") || null), I && I.convertFrom)
|
|
1686
1686
|
return I.convertFrom(B, b, O, L);
|
|
1687
1687
|
const ae = B[b];
|
|
@@ -1690,28 +1690,28 @@ function Qn(e, t, n) {
|
|
|
1690
1690
|
return null;
|
|
1691
1691
|
},
|
|
1692
1692
|
set(ae) {
|
|
1693
|
-
|
|
1693
|
+
x.value += 1, I && I.convertTo ? (I.convertTo(E, b, ae, O, L), I.convertTo(B, b, ae, O, L)) : (E[b] = ae, B[b] = ae);
|
|
1694
1694
|
}
|
|
1695
|
-
}), { refreshPanelAfterChanged: N, description: ee, isExpand: le, parentPropertyID: fe } = D, Z = { propertyID: F, propertyName:
|
|
1695
|
+
}), { refreshPanelAfterChanged: N, description: ee, isExpand: le, parentPropertyID: fe } = D, Z = { propertyID: F, propertyName: y, propertyType: G, propertyValue: U, editor: $, visible: J, readonly: _, cascadeConfig: j, hideCascadeTitle: C, refreshPanelAfterChanged: N, description: ee, isExpand: le, parentPropertyID: fe };
|
|
1696
1696
|
return v[F] = Z, Z;
|
|
1697
1697
|
});
|
|
1698
1698
|
}
|
|
1699
1699
|
function d(c, v, B = {}) {
|
|
1700
1700
|
const E = {}, O = e[c];
|
|
1701
1701
|
return O && O.categories ? Object.keys(O.categories).map((k) => {
|
|
1702
|
-
const T = O.categories[k], b = T == null ? void 0 : T.title,
|
|
1703
|
-
return { categoryId: k, categoryName: b, properties:
|
|
1702
|
+
const T = O.categories[k], b = T == null ? void 0 : T.title, x = p(T.properties || {}, E, {}, B, v);
|
|
1703
|
+
return { categoryId: k, categoryName: b, properties: x };
|
|
1704
1704
|
}) : [];
|
|
1705
1705
|
}
|
|
1706
1706
|
function m(c, v, B, E, O = "") {
|
|
1707
|
-
const L = v.$ref.schema, k = v.$ref.converter, T = B[L], b = T.type,
|
|
1707
|
+
const L = v.$ref.schema, k = v.$ref.converter, T = B[L], b = T.type, x = n(T), F = {}, D = e[b];
|
|
1708
1708
|
if (D && D.categories) {
|
|
1709
|
-
const q = D.categories[c],
|
|
1709
|
+
const q = D.categories[c], y = q == null ? void 0 : q.title;
|
|
1710
1710
|
k && Object.keys(q.properties).forEach(($) => {
|
|
1711
1711
|
q.properties[$].$converter = k;
|
|
1712
1712
|
});
|
|
1713
|
-
const G = (q == null ? void 0 : q.properties) || {}, W = p(G, F,
|
|
1714
|
-
return { categoryId: c, categoryName:
|
|
1713
|
+
const G = (q == null ? void 0 : q.properties) || {}, W = p(G, F, x, T, E, O);
|
|
1714
|
+
return { categoryId: c, categoryName: y, properties: W };
|
|
1715
1715
|
}
|
|
1716
1716
|
return { categoryId: c, categoryName: "", properties: [] };
|
|
1717
1717
|
}
|
|
@@ -1719,16 +1719,16 @@ function Qn(e, t, n) {
|
|
|
1719
1719
|
const L = c.type, k = n(c), T = {};
|
|
1720
1720
|
let b = O || e[L];
|
|
1721
1721
|
if (b && Object.keys(b).length === 0 && B && B.getPropConfig && (b = B.getPropConfig(E)), b && b.categories) {
|
|
1722
|
-
const
|
|
1722
|
+
const x = [];
|
|
1723
1723
|
return Object.keys(b.categories).map((F) => {
|
|
1724
1724
|
const D = b.categories[F];
|
|
1725
1725
|
if (D.$ref) {
|
|
1726
|
-
|
|
1726
|
+
x.push(m(F, D, c, v, E));
|
|
1727
1727
|
return;
|
|
1728
1728
|
}
|
|
1729
|
-
const q = D == null ? void 0 : D.title,
|
|
1730
|
-
|
|
1731
|
-
}),
|
|
1729
|
+
const q = D == null ? void 0 : D.title, y = D == null ? void 0 : D.tabId, G = D == null ? void 0 : D.tabName, W = D == null ? void 0 : D.hide, $ = D == null ? void 0 : D.hideTitle, J = p(D.properties || {}, T, k, c, v, E, D.$converter), { setPropertyRelates: _ } = D, j = D == null ? void 0 : D.parentPropertyID;
|
|
1730
|
+
x.push({ categoryId: F, categoryName: q, tabId: y, tabName: G, hide: W, properties: J, hideTitle: $, setPropertyRelates: _, parentPropertyID: j });
|
|
1731
|
+
}), x;
|
|
1732
1732
|
}
|
|
1733
1733
|
return [];
|
|
1734
1734
|
}
|
|
@@ -1943,8 +1943,8 @@ kt(
|
|
|
1943
1943
|
Kt,
|
|
1944
1944
|
void 0
|
|
1945
1945
|
);
|
|
1946
|
-
|
|
1947
|
-
|
|
1946
|
+
h(0);
|
|
1947
|
+
h(0);
|
|
1948
1948
|
const yt = class yt {
|
|
1949
1949
|
/**
|
|
1950
1950
|
* 根据绑定字段类型获取可用的输入类控件
|
|
@@ -2089,13 +2089,13 @@ var Qa = { exports: {} };
|
|
|
2089
2089
|
2: [function(n, o, a) {
|
|
2090
2090
|
(function(l) {
|
|
2091
2091
|
var i = n("contra/emitter"), u = n("crossvent"), r = n("./classes"), s = document, p = s.documentElement;
|
|
2092
|
-
function d(
|
|
2092
|
+
function d(y, G) {
|
|
2093
2093
|
var W = arguments.length;
|
|
2094
|
-
W === 1 && Array.isArray(
|
|
2095
|
-
var $, J, _, j, C, I,
|
|
2096
|
-
|
|
2094
|
+
W === 1 && Array.isArray(y) === !1 && (G = y, y = []);
|
|
2095
|
+
var $, J, _, j, C, I, U, N, ee, le = null, fe, Z, ae = !1, ye = 0, oe, X = G || {};
|
|
2096
|
+
X.moves === void 0 && (X.moves = O), X.accepts === void 0 && (X.accepts = O), X.invalid === void 0 && (X.invalid = We), X.containers === void 0 && (X.containers = y || []), X.isContainer === void 0 && (X.isContainer = E), X.copy === void 0 && (X.copy = !1), X.copySortSource === void 0 && (X.copySortSource = !1), X.revertOnSpill === void 0 && (X.revertOnSpill = !1), X.removeOnSpill === void 0 && (X.removeOnSpill = !1), X.direction === void 0 && (X.direction = "vertical"), X.ignoreInputTextSelection === void 0 && (X.ignoreInputTextSelection = !0), X.mirrorContainer === void 0 && (X.mirrorContainer = s.body);
|
|
2097
2097
|
var se = i({
|
|
2098
|
-
containers:
|
|
2098
|
+
containers: X.containers,
|
|
2099
2099
|
start: Oe,
|
|
2100
2100
|
end: Fe,
|
|
2101
2101
|
cancel: M,
|
|
@@ -2104,156 +2104,156 @@ var Qa = { exports: {} };
|
|
|
2104
2104
|
canMove: Ge,
|
|
2105
2105
|
dragging: !1
|
|
2106
2106
|
});
|
|
2107
|
-
return
|
|
2108
|
-
function Ne(
|
|
2109
|
-
return se.containers.indexOf(
|
|
2107
|
+
return X.removeOnSpill === !0 && se.on("over", K).on("out", ce), De(), se;
|
|
2108
|
+
function Ne(S) {
|
|
2109
|
+
return se.containers.indexOf(S) !== -1 || X.isContainer(S);
|
|
2110
2110
|
}
|
|
2111
|
-
function De(
|
|
2112
|
-
var P =
|
|
2111
|
+
function De(S) {
|
|
2112
|
+
var P = S ? "remove" : "add";
|
|
2113
2113
|
c(p, P, "mousedown", ve), c(p, P, "mouseup", Re);
|
|
2114
2114
|
}
|
|
2115
|
-
function Ie(
|
|
2116
|
-
var P =
|
|
2115
|
+
function Ie(S) {
|
|
2116
|
+
var P = S ? "remove" : "add";
|
|
2117
2117
|
c(p, P, "mousemove", et);
|
|
2118
2118
|
}
|
|
2119
|
-
function Ye(
|
|
2120
|
-
var P =
|
|
2119
|
+
function Ye(S) {
|
|
2120
|
+
var P = S ? "remove" : "add";
|
|
2121
2121
|
u[P](p, "selectstart", Ae), u[P](p, "click", Ae);
|
|
2122
2122
|
}
|
|
2123
2123
|
function Xe() {
|
|
2124
2124
|
De(!0), Re({});
|
|
2125
2125
|
}
|
|
2126
|
-
function Ae(
|
|
2127
|
-
fe &&
|
|
2126
|
+
function Ae(S) {
|
|
2127
|
+
fe && S.preventDefault();
|
|
2128
2128
|
}
|
|
2129
|
-
function ve(
|
|
2130
|
-
j =
|
|
2131
|
-
var P = v(
|
|
2129
|
+
function ve(S) {
|
|
2130
|
+
j = S.clientX, C = S.clientY;
|
|
2131
|
+
var P = v(S) !== 1 || S.metaKey || S.ctrlKey;
|
|
2132
2132
|
if (!P) {
|
|
2133
|
-
var V =
|
|
2134
|
-
Q && (fe = Q, Ie(),
|
|
2133
|
+
var V = S.target, Q = de(V);
|
|
2134
|
+
Q && (fe = Q, Ie(), S.type === "mousedown" && (b(V) ? V.focus() : S.preventDefault()));
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
|
-
function et(
|
|
2137
|
+
function et(S) {
|
|
2138
2138
|
if (fe) {
|
|
2139
|
-
if (v(
|
|
2139
|
+
if (v(S) === 0) {
|
|
2140
2140
|
Re({});
|
|
2141
2141
|
return;
|
|
2142
2142
|
}
|
|
2143
|
-
if (!(
|
|
2144
|
-
if (
|
|
2145
|
-
var P = q("clientX",
|
|
2143
|
+
if (!(S.clientX !== void 0 && Math.abs(S.clientX - j) <= (X.slideFactorX || 0) && S.clientY !== void 0 && Math.abs(S.clientY - C) <= (X.slideFactorY || 0))) {
|
|
2144
|
+
if (X.ignoreInputTextSelection) {
|
|
2145
|
+
var P = q("clientX", S) || 0, V = q("clientY", S) || 0, Q = s.elementFromPoint(P, V);
|
|
2146
2146
|
if (b(Q))
|
|
2147
2147
|
return;
|
|
2148
2148
|
}
|
|
2149
2149
|
var re = fe;
|
|
2150
|
-
Ie(!0), Ye(), Fe(), He(re), r.add(N || _, "gu-transit"), pe(), Y(), ye = 0, Ve(
|
|
2150
|
+
Ie(!0), Ye(), Fe(), He(re), r.add(N || _, "gu-transit"), pe(), Y(), ye = 0, Ve(S);
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
|
-
function de(
|
|
2155
|
-
if (!(se.dragging && $) && !Ne(
|
|
2156
|
-
for (var P =
|
|
2157
|
-
if (
|
|
2154
|
+
function de(S) {
|
|
2155
|
+
if (!(se.dragging && $) && !Ne(S)) {
|
|
2156
|
+
for (var P = S; T(S) && Ne(T(S)) === !1; )
|
|
2157
|
+
if (X.invalid(S, P) || (S = T(S), !S))
|
|
2158
2158
|
return;
|
|
2159
|
-
var V = T(
|
|
2160
|
-
if (V && !
|
|
2161
|
-
var Q =
|
|
2159
|
+
var V = T(S);
|
|
2160
|
+
if (V && !X.invalid(S, P)) {
|
|
2161
|
+
var Q = X.moves(S, V, P, F(S));
|
|
2162
2162
|
if (Q)
|
|
2163
2163
|
return {
|
|
2164
|
-
item:
|
|
2164
|
+
item: S,
|
|
2165
2165
|
source: V
|
|
2166
2166
|
};
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
}
|
|
2170
|
-
function Ge(
|
|
2171
|
-
return !!de(
|
|
2170
|
+
function Ge(S) {
|
|
2171
|
+
return !!de(S);
|
|
2172
2172
|
}
|
|
2173
|
-
function Oe(
|
|
2174
|
-
var P = de(
|
|
2173
|
+
function Oe(S) {
|
|
2174
|
+
var P = de(S);
|
|
2175
2175
|
P && He(P);
|
|
2176
2176
|
}
|
|
2177
|
-
function He(
|
|
2178
|
-
Tt(
|
|
2177
|
+
function He(S) {
|
|
2178
|
+
Tt(S.item, S.source) && (N = S.item.cloneNode(!0), se.emit("cloned", N, S.item, "copy")), J = S.source, _ = S.item, I = U = F(S.item), se.dragging = !0, se.emit("drag", _, J);
|
|
2179
2179
|
}
|
|
2180
2180
|
function We() {
|
|
2181
2181
|
return !1;
|
|
2182
2182
|
}
|
|
2183
2183
|
function Fe() {
|
|
2184
2184
|
if (se.dragging) {
|
|
2185
|
-
var
|
|
2186
|
-
_e(
|
|
2185
|
+
var S = N || _;
|
|
2186
|
+
_e(S, T(S));
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
2189
|
function $e() {
|
|
2190
2190
|
fe = !1, Ie(!0), Ye(!0);
|
|
2191
2191
|
}
|
|
2192
|
-
function Re(
|
|
2192
|
+
function Re(S) {
|
|
2193
2193
|
if ($e(), !!se.dragging) {
|
|
2194
|
-
var P = N || _, V = q("clientX",
|
|
2195
|
-
ie && (N &&
|
|
2194
|
+
var P = N || _, V = q("clientX", S) || 0, Q = q("clientY", S) || 0, re = B($, V, Q), ie = he(re, V, Q);
|
|
2195
|
+
ie && (N && X.copySortSource || !N || ie !== J) ? _e(P, ie) : X.removeOnSpill ? Le() : M();
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
|
-
function _e(
|
|
2199
|
-
var V = T(
|
|
2200
|
-
N &&
|
|
2198
|
+
function _e(S, P) {
|
|
2199
|
+
var V = T(S);
|
|
2200
|
+
N && X.copySortSource && P === J && V.removeChild(_), ge(P) ? se.emit("cancel", S, J) : se.emit("drop", S, P, J, U), ne();
|
|
2201
2201
|
}
|
|
2202
2202
|
function Le() {
|
|
2203
2203
|
if (se.dragging) {
|
|
2204
|
-
var
|
|
2205
|
-
P && P.removeChild(
|
|
2204
|
+
var S = N || _, P = T(S);
|
|
2205
|
+
P && P.removeChild(S), se.emit(N ? "cancel" : "remove", S, P, J), ne();
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
|
-
function M(
|
|
2208
|
+
function M(S) {
|
|
2209
2209
|
if (se.dragging) {
|
|
2210
|
-
var P = arguments.length > 0 ?
|
|
2211
|
-
re === !1 && P && (N ? Q && Q.removeChild(N) : J.insertBefore(V, I)), re || P ? se.emit("cancel", V, J, J) : se.emit("drop", V, Q, J,
|
|
2210
|
+
var P = arguments.length > 0 ? S : X.revertOnSpill, V = N || _, Q = T(V), re = ge(Q);
|
|
2211
|
+
re === !1 && P && (N ? Q && Q.removeChild(N) : J.insertBefore(V, I)), re || P ? se.emit("cancel", V, J, J) : se.emit("drop", V, Q, J, U), ne();
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
2214
|
function ne() {
|
|
2215
|
-
var
|
|
2216
|
-
$e(), Je(), nt(),
|
|
2215
|
+
var S = N || _;
|
|
2216
|
+
$e(), Je(), nt(), S && r.rm(S, "gu-transit"), ee && clearTimeout(ee), se.dragging = !1, le && se.emit("out", S, le, J), se.emit("dragend", S, ye), J = _ = N = I = U = ee = le = null;
|
|
2217
2217
|
}
|
|
2218
|
-
function ge(
|
|
2218
|
+
function ge(S, P) {
|
|
2219
2219
|
var V;
|
|
2220
|
-
return P !== void 0 ? V = P : $ ? V =
|
|
2220
|
+
return P !== void 0 ? V = P : $ ? V = U : V = F(N || _), S === J && V === I;
|
|
2221
2221
|
}
|
|
2222
|
-
function he(
|
|
2223
|
-
for (var Q =
|
|
2222
|
+
function he(S, P, V) {
|
|
2223
|
+
for (var Q = S; Q && !re(); )
|
|
2224
2224
|
Q = T(Q);
|
|
2225
2225
|
return Q;
|
|
2226
2226
|
function re() {
|
|
2227
2227
|
var ie = Ne(Q);
|
|
2228
2228
|
if (ie === !1)
|
|
2229
2229
|
return !1;
|
|
2230
|
-
var Pe = Qe(Q,
|
|
2231
|
-
return Ee ? !0 :
|
|
2230
|
+
var Pe = Qe(Q, S), Be = gt(Q, Pe, P, V), Ee = ge(Q, Be);
|
|
2231
|
+
return Ee ? !0 : X.accepts(_, Q, J, Be);
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
function Ve(
|
|
2234
|
+
function Ve(S) {
|
|
2235
2235
|
if (!$)
|
|
2236
2236
|
return;
|
|
2237
|
-
|
|
2238
|
-
var P = q("clientX",
|
|
2237
|
+
S.preventDefault();
|
|
2238
|
+
var P = q("clientX", S) || 0, V = q("clientY", S) || 0;
|
|
2239
2239
|
$.style.left = P - 2 + "px", $.style.top = V - 2 + "px";
|
|
2240
2240
|
var Q = N || _, re = B($, P, V), ie = he(re, P, V), Pe = ie !== null && ie !== le;
|
|
2241
2241
|
(Pe || ie === null) && (Me(), le = ie, Ue()), St(re, V);
|
|
2242
2242
|
var Be = T(Q);
|
|
2243
|
-
if (ie === J && N && !
|
|
2243
|
+
if (ie === J && N && !X.copySortSource) {
|
|
2244
2244
|
Be && Be.removeChild(Q);
|
|
2245
2245
|
return;
|
|
2246
2246
|
}
|
|
2247
2247
|
var Ee, qe = Qe(ie, re);
|
|
2248
2248
|
if (ae = it(qe, ie), qe !== null)
|
|
2249
2249
|
Ee = gt(ie, qe, P, V);
|
|
2250
|
-
else if (
|
|
2250
|
+
else if (X.revertOnSpill === !0 && !N)
|
|
2251
2251
|
Ee = I, ie = J;
|
|
2252
2252
|
else {
|
|
2253
2253
|
N && Be && Be.removeChild(Q), N && Z && (Z.style.display = "none");
|
|
2254
2254
|
return;
|
|
2255
2255
|
}
|
|
2256
|
-
Z.style.display = "block",
|
|
2256
|
+
Z.style.display = "block", w(Ee, Q, Pe), Ee ? wt(qe, Ee) : xt(ie);
|
|
2257
2257
|
function be(xe) {
|
|
2258
2258
|
se.emit(xe, Q, le, J);
|
|
2259
2259
|
}
|
|
@@ -2264,43 +2264,43 @@ var Qa = { exports: {} };
|
|
|
2264
2264
|
le && be("out");
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
-
function S
|
|
2268
|
-
(
|
|
2267
|
+
function w(S, P, V) {
|
|
2268
|
+
(S === P || S === F(P)) && (U = F(P)), (S === null && V || S !== P && S !== F(P)) && (U = S);
|
|
2269
2269
|
}
|
|
2270
|
-
function K(
|
|
2271
|
-
r.rm(
|
|
2270
|
+
function K(S) {
|
|
2271
|
+
r.rm(S, "gu-hide");
|
|
2272
2272
|
}
|
|
2273
|
-
function ce(
|
|
2274
|
-
se.dragging && r.add(
|
|
2273
|
+
function ce(S) {
|
|
2274
|
+
se.dragging && r.add(S, "gu-hide");
|
|
2275
2275
|
}
|
|
2276
2276
|
function Y() {
|
|
2277
|
-
$ || ($ = document.createElement("div"), $.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", $.innerHTML =
|
|
2277
|
+
$ || ($ = document.createElement("div"), $.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", $.innerHTML = X.getMirrorText && X.getMirrorText(_) || "控件", r.add($, "gu-mirror"), X.mirrorContainer.appendChild($), c(p, "add", "mousemove", Ve), r.add(X.mirrorContainer, "gu-unselectable"), se.emit("cloned", $, _, "mirror"));
|
|
2278
2278
|
}
|
|
2279
2279
|
function pe() {
|
|
2280
2280
|
if (Z = document.createElement("div"), r.add(Z, "gu-insertion"), _) {
|
|
2281
|
-
var
|
|
2282
|
-
Z.style.left =
|
|
2281
|
+
var S = _.getBoundingClientRect();
|
|
2282
|
+
Z.style.left = S.left + "px", Z.style.top = S.top + "px";
|
|
2283
2283
|
}
|
|
2284
|
-
ae = !1,
|
|
2284
|
+
ae = !1, X.mirrorContainer.appendChild(Z);
|
|
2285
2285
|
}
|
|
2286
2286
|
function Je() {
|
|
2287
|
-
$ && (r.rm(
|
|
2287
|
+
$ && (r.rm(X.mirrorContainer, "gu-unselectable"), c(p, "remove", "mousemove", Ve), T($).removeChild($), $ = null);
|
|
2288
2288
|
}
|
|
2289
2289
|
function nt() {
|
|
2290
2290
|
Z && (T(Z).removeChild(Z), Z = null);
|
|
2291
2291
|
}
|
|
2292
|
-
function Qe(
|
|
2293
|
-
for (var V = P; V !==
|
|
2292
|
+
function Qe(S, P) {
|
|
2293
|
+
for (var V = P; V !== S && T(V) !== S; )
|
|
2294
2294
|
V = T(V);
|
|
2295
2295
|
return V === p ? null : V;
|
|
2296
2296
|
}
|
|
2297
|
-
function it(
|
|
2297
|
+
function it(S, P) {
|
|
2298
2298
|
if (!P)
|
|
2299
2299
|
return ae;
|
|
2300
|
-
var V =
|
|
2300
|
+
var V = S || P && P.lastElementChild;
|
|
2301
2301
|
if (!V)
|
|
2302
2302
|
return !0;
|
|
2303
|
-
var Q = getComputedStyle(
|
|
2303
|
+
var Q = getComputedStyle(S), re = /^inline/.test(Q.getPropertyValue("display")) || /^(left|right)$/.test(Q.getPropertyValue("float"));
|
|
2304
2304
|
if (re)
|
|
2305
2305
|
return !0;
|
|
2306
2306
|
if (P) {
|
|
@@ -2314,10 +2314,10 @@ var Qa = { exports: {} };
|
|
|
2314
2314
|
}
|
|
2315
2315
|
return !0;
|
|
2316
2316
|
}
|
|
2317
|
-
function Ct(
|
|
2318
|
-
if (!
|
|
2317
|
+
function Ct(S) {
|
|
2318
|
+
if (!S.children || !S.children.length)
|
|
2319
2319
|
return !1;
|
|
2320
|
-
for (const P of Array.from(
|
|
2320
|
+
for (const P of Array.from(S.children)) {
|
|
2321
2321
|
const Q = (P.className && P.className.split(" ") || []).filter((re) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(re));
|
|
2322
2322
|
if (!Q.length)
|
|
2323
2323
|
return !1;
|
|
@@ -2329,11 +2329,11 @@ var Qa = { exports: {} };
|
|
|
2329
2329
|
}
|
|
2330
2330
|
return !0;
|
|
2331
2331
|
}
|
|
2332
|
-
function wt(
|
|
2332
|
+
function wt(S, P) {
|
|
2333
2333
|
const V = P.getBoundingClientRect();
|
|
2334
2334
|
if (Z.style.left = V.left + "px", Z.style.top = V.top + "px", ae) {
|
|
2335
|
-
if (Z.style.height = V.height + "px", Z.style.width = "4px",
|
|
2336
|
-
const Q =
|
|
2335
|
+
if (Z.style.height = V.height + "px", Z.style.width = "4px", S) {
|
|
2336
|
+
const Q = S.getBoundingClientRect();
|
|
2337
2337
|
Q.top !== V.top && (Z.style.left = Q.right + "px", Z.style.top = Q.top + "px", Z.style.height = Q.height + "px");
|
|
2338
2338
|
}
|
|
2339
2339
|
} else if (Z.style.height = "4px", Z.style.width = V.width + "px", oe) {
|
|
@@ -2342,17 +2342,17 @@ var Qa = { exports: {} };
|
|
|
2342
2342
|
}
|
|
2343
2343
|
P === _ && _ && (Z.style.display = "none");
|
|
2344
2344
|
}
|
|
2345
|
-
function xt(
|
|
2346
|
-
|
|
2347
|
-
var P =
|
|
2345
|
+
function xt(S) {
|
|
2346
|
+
U = null;
|
|
2347
|
+
var P = S.lastElementChild;
|
|
2348
2348
|
if (P) {
|
|
2349
2349
|
var V = P.getBoundingClientRect();
|
|
2350
2350
|
ae ? (Z.style.left = V.right + "px", Z.style.top = V.top + "px", Z.style.height = V.height + "px", Z.style.width = "4px") : (Z.style.left = V.left + "px", Z.style.top = V.bottom + "px", Z.style.height = "4px", Z.style.width = V.width + "px"), P === _ && _ && (Z.style.display = "none");
|
|
2351
2351
|
} else
|
|
2352
2352
|
Z.style.display = "none";
|
|
2353
2353
|
}
|
|
2354
|
-
function St(
|
|
2355
|
-
if (!
|
|
2354
|
+
function St(S, P) {
|
|
2355
|
+
if (!X.mirrorContainer.contains(S) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (oe = m(S), !oe || !oe.contains(S)))
|
|
2356
2356
|
return;
|
|
2357
2357
|
const V = document.querySelector(".dgComponentSelected"), Q = oe.getBoundingClientRect();
|
|
2358
2358
|
if (P - 30 < Q.top && oe.scrollTop > 0) {
|
|
@@ -2365,13 +2365,13 @@ var Qa = { exports: {} };
|
|
|
2365
2365
|
oe.scrollBy(0, ie), V && oe.contains(V) && (ye = ye + ie);
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
|
-
function gt(
|
|
2369
|
-
var re =
|
|
2368
|
+
function gt(S, P, V, Q) {
|
|
2369
|
+
var re = X.direction === "horizontal", ie = X.direction === "mixed", Pe = P !== S ? Ee() : Be();
|
|
2370
2370
|
return Pe;
|
|
2371
2371
|
function Be() {
|
|
2372
|
-
var be =
|
|
2372
|
+
var be = S.children.length, Ue, Me, xe;
|
|
2373
2373
|
for (Ue = 0; Ue < be; Ue++)
|
|
2374
|
-
if (Me =
|
|
2374
|
+
if (Me = S.children[Ue], xe = Me.getBoundingClientRect(), re && xe.left + xe.width / 2 > V || !ie && !re && xe.top + xe.height / 2 > Q || ie && xe.left + xe.width > V && xe.top + xe.height > Q)
|
|
2375
2375
|
return Me;
|
|
2376
2376
|
return null;
|
|
2377
2377
|
}
|
|
@@ -2387,11 +2387,11 @@ var Qa = { exports: {} };
|
|
|
2387
2387
|
return be ? F(P) : P;
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
function Tt(
|
|
2391
|
-
return typeof
|
|
2390
|
+
function Tt(S, P) {
|
|
2391
|
+
return typeof X.copy == "boolean" ? X.copy : X.copy(S, P);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
|
-
function m(
|
|
2394
|
+
function m(y) {
|
|
2395
2395
|
const G = Array.from(window.scrollContainerList);
|
|
2396
2396
|
if (G.length === 1) {
|
|
2397
2397
|
const $ = Array.from(window.scrollContainerList)[0];
|
|
@@ -2399,18 +2399,18 @@ var Qa = { exports: {} };
|
|
|
2399
2399
|
}
|
|
2400
2400
|
const W = f(G);
|
|
2401
2401
|
for (const $ of W)
|
|
2402
|
-
if ($.contains(
|
|
2402
|
+
if ($.contains(y))
|
|
2403
2403
|
return $;
|
|
2404
2404
|
return null;
|
|
2405
2405
|
}
|
|
2406
|
-
function f(
|
|
2406
|
+
function f(y) {
|
|
2407
2407
|
const G = [];
|
|
2408
|
-
return
|
|
2408
|
+
return y.forEach((W) => {
|
|
2409
2409
|
const $ = document.getElementById(W);
|
|
2410
2410
|
$ && G.push($);
|
|
2411
2411
|
}), G.sort((W, $) => W.contains($) ? 1 : $.contains(W) ? -1 : 0), G;
|
|
2412
2412
|
}
|
|
2413
|
-
function c(
|
|
2413
|
+
function c(y, G, W, $) {
|
|
2414
2414
|
var J = {
|
|
2415
2415
|
mouseup: "touchend",
|
|
2416
2416
|
mousedown: "touchstart",
|
|
@@ -2424,23 +2424,23 @@ var Qa = { exports: {} };
|
|
|
2424
2424
|
mousedown: "MSPointerDown",
|
|
2425
2425
|
mousemove: "MSPointerMove"
|
|
2426
2426
|
};
|
|
2427
|
-
l.navigator.pointerEnabled ? u[G](
|
|
2427
|
+
l.navigator.pointerEnabled ? u[G](y, _[W], $) : l.navigator.msPointerEnabled ? u[G](y, j[W], $) : (u[G](y, J[W], $), u[G](y, W, $));
|
|
2428
2428
|
}
|
|
2429
|
-
function v(
|
|
2430
|
-
if (
|
|
2431
|
-
return
|
|
2432
|
-
if (
|
|
2433
|
-
return
|
|
2434
|
-
if (
|
|
2435
|
-
return
|
|
2436
|
-
var G =
|
|
2429
|
+
function v(y) {
|
|
2430
|
+
if (y.touches !== void 0)
|
|
2431
|
+
return y.touches.length;
|
|
2432
|
+
if (y.which !== void 0 && y.which !== 0)
|
|
2433
|
+
return y.which;
|
|
2434
|
+
if (y.buttons !== void 0)
|
|
2435
|
+
return y.buttons;
|
|
2436
|
+
var G = y.button;
|
|
2437
2437
|
if (G !== void 0)
|
|
2438
2438
|
return G & 1 ? 1 : G & 2 ? 3 : G & 4 ? 2 : 0;
|
|
2439
2439
|
}
|
|
2440
|
-
function B(
|
|
2441
|
-
|
|
2442
|
-
var $ =
|
|
2443
|
-
return
|
|
2440
|
+
function B(y, G, W) {
|
|
2441
|
+
y = y || {};
|
|
2442
|
+
var $ = y.className || "", J;
|
|
2443
|
+
return y.className += " gu-hide", J = s.elementFromPoint(G, W), y.className = $, J;
|
|
2444
2444
|
}
|
|
2445
2445
|
function E() {
|
|
2446
2446
|
return !1;
|
|
@@ -2448,42 +2448,42 @@ var Qa = { exports: {} };
|
|
|
2448
2448
|
function O() {
|
|
2449
2449
|
return !0;
|
|
2450
2450
|
}
|
|
2451
|
-
function L(
|
|
2452
|
-
return
|
|
2451
|
+
function L(y) {
|
|
2452
|
+
return y.width || y.right - y.left;
|
|
2453
2453
|
}
|
|
2454
|
-
function k(
|
|
2455
|
-
return
|
|
2454
|
+
function k(y) {
|
|
2455
|
+
return y.height || y.bottom - y.top;
|
|
2456
2456
|
}
|
|
2457
|
-
function T(
|
|
2458
|
-
return
|
|
2457
|
+
function T(y) {
|
|
2458
|
+
return y.parentNode === s ? null : y.parentNode;
|
|
2459
2459
|
}
|
|
2460
|
-
function b(
|
|
2461
|
-
return
|
|
2460
|
+
function b(y) {
|
|
2461
|
+
return y.tagName === "INPUT" || y.tagName === "TEXTAREA" || y.tagName === "SELECT" || x(y);
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2464
|
-
return !
|
|
2463
|
+
function x(y) {
|
|
2464
|
+
return !y || y.contentEditable === "false" ? !1 : y.contentEditable === "true" ? !0 : x(T(y));
|
|
2465
2465
|
}
|
|
2466
|
-
function F(
|
|
2467
|
-
return
|
|
2466
|
+
function F(y) {
|
|
2467
|
+
return y.nextElementSibling || G();
|
|
2468
2468
|
function G() {
|
|
2469
|
-
var W =
|
|
2469
|
+
var W = y;
|
|
2470
2470
|
do
|
|
2471
2471
|
W = W.nextSibling;
|
|
2472
2472
|
while (W && W.nodeType !== 1);
|
|
2473
2473
|
return W;
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
|
-
function D(
|
|
2477
|
-
return
|
|
2476
|
+
function D(y) {
|
|
2477
|
+
return y.targetTouches && y.targetTouches.length ? y.targetTouches[0] : y.changedTouches && y.changedTouches.length ? y.changedTouches[0] : y;
|
|
2478
2478
|
}
|
|
2479
|
-
function q(
|
|
2479
|
+
function q(y, G) {
|
|
2480
2480
|
var W = D(G), $ = {
|
|
2481
2481
|
pageX: "clientX",
|
|
2482
2482
|
// IE8
|
|
2483
2483
|
pageY: "clientY"
|
|
2484
2484
|
// IE8
|
|
2485
2485
|
};
|
|
2486
|
-
return
|
|
2486
|
+
return y in $ && !(y in W) && $[y] in W && (y = $[y]), W[y];
|
|
2487
2487
|
}
|
|
2488
2488
|
o.exports = d;
|
|
2489
2489
|
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2546,61 +2546,61 @@ var Qa = { exports: {} };
|
|
|
2546
2546
|
remove: p,
|
|
2547
2547
|
fabricate: B
|
|
2548
2548
|
};
|
|
2549
|
-
function m(T, b,
|
|
2550
|
-
return T.addEventListener(b,
|
|
2549
|
+
function m(T, b, x, F) {
|
|
2550
|
+
return T.addEventListener(b, x, F);
|
|
2551
2551
|
}
|
|
2552
|
-
function f(T, b,
|
|
2553
|
-
return T.attachEvent("on" + b, O(T, b,
|
|
2552
|
+
function f(T, b, x) {
|
|
2553
|
+
return T.attachEvent("on" + b, O(T, b, x));
|
|
2554
2554
|
}
|
|
2555
|
-
function c(T, b,
|
|
2556
|
-
return T.removeEventListener(b,
|
|
2555
|
+
function c(T, b, x, F) {
|
|
2556
|
+
return T.removeEventListener(b, x, F);
|
|
2557
2557
|
}
|
|
2558
|
-
function v(T, b,
|
|
2559
|
-
var F = L(T, b,
|
|
2558
|
+
function v(T, b, x) {
|
|
2559
|
+
var F = L(T, b, x);
|
|
2560
2560
|
if (F)
|
|
2561
2561
|
return T.detachEvent("on" + b, F);
|
|
2562
2562
|
}
|
|
2563
|
-
function B(T, b,
|
|
2563
|
+
function B(T, b, x) {
|
|
2564
2564
|
var F = u.indexOf(b) === -1 ? q() : D();
|
|
2565
2565
|
T.dispatchEvent ? T.dispatchEvent(F) : T.fireEvent("on" + b, F);
|
|
2566
2566
|
function D() {
|
|
2567
|
-
var
|
|
2568
|
-
return r.createEvent ? (
|
|
2567
|
+
var y;
|
|
2568
|
+
return r.createEvent ? (y = r.createEvent("Event"), y.initEvent(b, !0, !0)) : r.createEventObject && (y = r.createEventObject()), y;
|
|
2569
2569
|
}
|
|
2570
2570
|
function q() {
|
|
2571
|
-
return new i(b, { detail:
|
|
2571
|
+
return new i(b, { detail: x });
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
|
-
function E(T, b,
|
|
2574
|
+
function E(T, b, x) {
|
|
2575
2575
|
return function(D) {
|
|
2576
2576
|
var q = D || l.event;
|
|
2577
2577
|
q.target = q.target || q.srcElement, q.preventDefault = q.preventDefault || function() {
|
|
2578
2578
|
q.returnValue = !1;
|
|
2579
2579
|
}, q.stopPropagation = q.stopPropagation || function() {
|
|
2580
2580
|
q.cancelBubble = !0;
|
|
2581
|
-
}, q.which = q.which || q.keyCode,
|
|
2581
|
+
}, q.which = q.which || q.keyCode, x.call(T, q);
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
|
-
function O(T, b,
|
|
2585
|
-
var F = L(T, b,
|
|
2584
|
+
function O(T, b, x) {
|
|
2585
|
+
var F = L(T, b, x) || E(T, b, x);
|
|
2586
2586
|
return d.push({
|
|
2587
2587
|
wrapper: F,
|
|
2588
2588
|
element: T,
|
|
2589
2589
|
type: b,
|
|
2590
|
-
fn:
|
|
2590
|
+
fn: x
|
|
2591
2591
|
}), F;
|
|
2592
2592
|
}
|
|
2593
|
-
function L(T, b,
|
|
2594
|
-
var F = k(T, b,
|
|
2593
|
+
function L(T, b, x) {
|
|
2594
|
+
var F = k(T, b, x);
|
|
2595
2595
|
if (F) {
|
|
2596
2596
|
var D = d[F].wrapper;
|
|
2597
2597
|
return d.splice(F, 1), D;
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
|
-
function k(T, b,
|
|
2600
|
+
function k(T, b, x) {
|
|
2601
2601
|
var F, D;
|
|
2602
2602
|
for (F = 0; F < d.length; F++)
|
|
2603
|
-
if (D = d[F], D.element === T && D.type === b && D.fn ===
|
|
2603
|
+
if (D = d[F], D.element === T && D.type === b && D.fn === x)
|
|
2604
2604
|
return F;
|
|
2605
2605
|
}
|
|
2606
2606
|
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2806,7 +2806,7 @@ const Za = {
|
|
|
2806
2806
|
const {
|
|
2807
2807
|
locale: n,
|
|
2808
2808
|
t: o
|
|
2809
|
-
} = Qt(), a =
|
|
2809
|
+
} = Qt(), a = h(e.animate), l = "fadeOut", i = R(() => e.options), u = h(!1), r = R(() => i.value.title && i.value.message), s = R(() => !i.value.title && i.value.message), p = R(() => {
|
|
2810
2810
|
const k = {
|
|
2811
2811
|
animated: u.value,
|
|
2812
2812
|
toast: !0,
|
|
@@ -2814,10 +2814,10 @@ const Za = {
|
|
|
2814
2814
|
};
|
|
2815
2815
|
return k[e.animate] = !1, k[l] = u.value, k["toasty-type-" + i.value.type] = !0, i.value.theme && (k[i.value.theme] = !0), k;
|
|
2816
2816
|
}), d = R(() => {
|
|
2817
|
-
const b = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2817
|
+
const b = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
2818
2818
|
"f-icon": !0
|
|
2819
2819
|
};
|
|
2820
|
-
return
|
|
2820
|
+
return x[b] = !0, x;
|
|
2821
2821
|
}), m = R(() => i.value.title || i.value.message), f = R(() => e.showCloseButton), c = R(() => !!i.value.buttons || !!t.slots.default), v = R(() => n.value === "en" ? {
|
|
2822
2822
|
wordBreak: "keep-all",
|
|
2823
2823
|
overflowWrap: "break-word"
|
|
@@ -2894,7 +2894,7 @@ const Za = {
|
|
|
2894
2894
|
right: 12,
|
|
2895
2895
|
top: 20,
|
|
2896
2896
|
bottom: 12
|
|
2897
|
-
}, a =
|
|
2897
|
+
}, a = h(), l = h(e.options), i = h(e.showCloseButton), u = R(() => e.position || "bottom-right"), r = R(() => e.timeout != null ? e.timeout : 3e3), s = R(() => {
|
|
2898
2898
|
const m = e.bottom ? e.bottom : o.bottom, f = e.top ? e.top : o.top, c = {
|
|
2899
2899
|
transition: "all 0.2s ease",
|
|
2900
2900
|
left: u.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -2953,7 +2953,7 @@ class el {
|
|
|
2953
2953
|
const i = Jt({
|
|
2954
2954
|
setup() {
|
|
2955
2955
|
var s;
|
|
2956
|
-
const u =
|
|
2956
|
+
const u = h();
|
|
2957
2957
|
function r() {
|
|
2958
2958
|
u.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
2959
2959
|
n.updateNotifyPositionForClose(a, u), i.unmount();
|
|
@@ -3214,7 +3214,7 @@ function nl(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v, B) {
|
|
|
3214
3214
|
} = i, {
|
|
3215
3215
|
gridDataStyle: T,
|
|
3216
3216
|
leftFixedGridDataStyle: b,
|
|
3217
|
-
rightFixedGridDataStyle:
|
|
3217
|
+
rightFixedGridDataStyle: x
|
|
3218
3218
|
} = f, {
|
|
3219
3219
|
renderDataRow: F
|
|
3220
3220
|
} = jo(e, t, O, B, u, r, s, p, d, m, f, c, v), D = [F];
|
|
@@ -3222,7 +3222,7 @@ function nl(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v, B) {
|
|
|
3222
3222
|
const j = E(J);
|
|
3223
3223
|
return B.value.filter((C) => C.visible !== !1).map((C, I) => D[C.type](C, j, _, I));
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function y() {
|
|
3226
3226
|
return g("div", {
|
|
3227
3227
|
ref: o,
|
|
3228
3228
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3246,12 +3246,12 @@ function nl(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v, B) {
|
|
|
3246
3246
|
class: "fv-grid-content-right-fixed"
|
|
3247
3247
|
}, [g("div", {
|
|
3248
3248
|
class: "fv-grid-data",
|
|
3249
|
-
style:
|
|
3249
|
+
style: x.value
|
|
3250
3250
|
}, [q(O.value.rightColumns.filter((J) => J.visible), "right")])]);
|
|
3251
3251
|
}
|
|
3252
3252
|
function $() {
|
|
3253
3253
|
const J = [];
|
|
3254
|
-
return L.value && J.push(
|
|
3254
|
+
return L.value && J.push(y()), J.push(G()), k.value && J.push(W()), J;
|
|
3255
3255
|
}
|
|
3256
3256
|
return {
|
|
3257
3257
|
renderDataArea: $
|
|
@@ -3263,19 +3263,19 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3263
3263
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
3264
3264
|
setup(e, t) {
|
|
3265
3265
|
var Et, Mt;
|
|
3266
|
-
const o = ((Et = e.rowOption) == null ? void 0 : Et.height) || 28, a =
|
|
3266
|
+
const o = ((Et = e.rowOption) == null ? void 0 : Et.height) || 28, a = h(20), l = h(e.columns), i = fn(e), {
|
|
3267
3267
|
idField: u
|
|
3268
|
-
} = i, r =
|
|
3268
|
+
} = i, r = h(), s = h(), p = h(), d = h(), m = h(), f = h([]), c = h(!1), v = h(((Mt = e.rowOption) == null ? void 0 : Mt.wrapContent) || !1), B = mn(e, i), E = pn(e, t), O = vn(e), {
|
|
3269
3269
|
collapseField: L
|
|
3270
3270
|
} = O, {
|
|
3271
3271
|
showLoading: k,
|
|
3272
3272
|
renderLoading: T
|
|
3273
3273
|
} = gn(e, r), b = yn(e, /* @__PURE__ */ new Map(), E, O, i), {
|
|
3274
|
-
dataView:
|
|
3274
|
+
dataView: x
|
|
3275
3275
|
} = b, F = hn(e, b, i, f, t), {
|
|
3276
3276
|
showSelection: D,
|
|
3277
3277
|
selectedValues: q
|
|
3278
|
-
} = F,
|
|
3278
|
+
} = F, y = No(e, f, b, i, F, t), G = R(() => e.disabled), W = R(() => e.virtualized ? Math.min(b.dataView.value.length, a.value) : b.dataView.value.length), $ = bn(e, b), {
|
|
3279
3279
|
shouldRenderPagination: J
|
|
3280
3280
|
} = $, {
|
|
3281
3281
|
containerStyleObject: _
|
|
@@ -3285,7 +3285,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3285
3285
|
C(l);
|
|
3286
3286
|
const {
|
|
3287
3287
|
applyColumnSetting: I,
|
|
3288
|
-
removeColumnSetting:
|
|
3288
|
+
removeColumnSetting: U
|
|
3289
3289
|
} = xn(e);
|
|
3290
3290
|
e.showSetting && I(l);
|
|
3291
3291
|
const N = Sn(e, t), ee = Tn(e), {
|
|
@@ -3294,7 +3294,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3294
3294
|
updateColumnRenderContext: Z
|
|
3295
3295
|
} = N;
|
|
3296
3296
|
le(b, ee);
|
|
3297
|
-
const ae = Bn(e, fe), ye = Fn(e, t, F, i), oe = kn(e, t, i, ye, f),
|
|
3297
|
+
const ae = Bn(e, fe), ye = Fn(e, t, F, i), oe = kn(e, t, i, ye, f), X = In(e), se = On(e, oe, X), Ne = En(e, b, oe, O, i, X, se), De = Mn(e, l, b, W, 0, Ne), {
|
|
3298
3298
|
getVisualData: Ie
|
|
3299
3299
|
} = De, Ye = Dn(e, fe), Xe = Rn(e, F), {
|
|
3300
3300
|
sidebarWidth: Ae
|
|
@@ -3321,10 +3321,10 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3321
3321
|
"fv-grid-wrap-content": v.value
|
|
3322
3322
|
})), {
|
|
3323
3323
|
renderDataArea: ge
|
|
3324
|
-
} = nl(e, t, p, d, m, Ye, N, b, oe, O, ye, F,
|
|
3324
|
+
} = nl(e, t, p, d, m, Ye, N, b, oe, O, ye, F, y, ve, De, X, f), {
|
|
3325
3325
|
renderGridHeader: he,
|
|
3326
3326
|
renderGridColumnResizeOverlay: Ve,
|
|
3327
|
-
shouldShowHeader:
|
|
3327
|
+
shouldShowHeader: w
|
|
3328
3328
|
} = Ln(e, t, s, d, m, N, b, Le, _e, E, Re, Fe, ae, F, Xe, ee, ve, Oe, f), {
|
|
3329
3329
|
renderDataGridSidebar: K
|
|
3330
3330
|
} = Vn(e, ye, F, Xe, ve), {
|
|
@@ -3372,8 +3372,8 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3372
3372
|
b.insertNewChildDataItems(A, Se);
|
|
3373
3373
|
}
|
|
3374
3374
|
function St() {
|
|
3375
|
-
const A = it(), te =
|
|
3376
|
-
b.removeHierarchyDataItem(A), f.value = Ie(0, W.value + 0 - 1), te &&
|
|
3375
|
+
const A = it(), te = y.getNextSelectableHierarchyItemId(A);
|
|
3376
|
+
b.removeHierarchyDataItem(A), f.value = Ie(0, W.value + 0 - 1), te && y.selectItemById(te);
|
|
3377
3377
|
}
|
|
3378
3378
|
function gt(A) {
|
|
3379
3379
|
oe.onEditingRow(A);
|
|
@@ -3381,7 +3381,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3381
3381
|
function Tt(A) {
|
|
3382
3382
|
oe.acceptEditingRow(A);
|
|
3383
3383
|
}
|
|
3384
|
-
function
|
|
3384
|
+
function S(A) {
|
|
3385
3385
|
oe.cancelEditingRow(A);
|
|
3386
3386
|
}
|
|
3387
3387
|
function P(A) {
|
|
@@ -3394,7 +3394,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3394
3394
|
A && (b.load(A), b.reOrderVisibleIndex(), te != null && te.keepScrollPosition ? ve.scrollTo(ve.offsetY.value) : He());
|
|
3395
3395
|
}
|
|
3396
3396
|
function Q(A) {
|
|
3397
|
-
|
|
3397
|
+
y.selectItemById(A);
|
|
3398
3398
|
}
|
|
3399
3399
|
function re(A) {
|
|
3400
3400
|
const te = f.value.find((Ce) => Ce.raw[i.idField.value] === A);
|
|
@@ -3404,7 +3404,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3404
3404
|
ye.activeRowById(A);
|
|
3405
3405
|
}
|
|
3406
3406
|
function Pe(A) {
|
|
3407
|
-
|
|
3407
|
+
y.selectItemByIds(A);
|
|
3408
3408
|
}
|
|
3409
3409
|
function Be() {
|
|
3410
3410
|
return F.getSelectedItems();
|
|
@@ -3419,13 +3419,13 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3419
3419
|
return F.getSelectionRow();
|
|
3420
3420
|
}
|
|
3421
3421
|
function Me(A) {
|
|
3422
|
-
|
|
3422
|
+
y.unSelectItemByIds(A);
|
|
3423
3423
|
}
|
|
3424
3424
|
function xe() {
|
|
3425
3425
|
return F.currentSelectedDataId.value;
|
|
3426
3426
|
}
|
|
3427
3427
|
function rt(A, te, Ce) {
|
|
3428
|
-
const Se =
|
|
3428
|
+
const Se = x.value.find((ke) => ke[u.value] === A);
|
|
3429
3429
|
if (Se) {
|
|
3430
3430
|
if (Object.keys(Se).forEach((z) => {
|
|
3431
3431
|
Object.prototype.hasOwnProperty.call(te, z) && (Se[z] = te[z]);
|
|
@@ -3466,7 +3466,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3466
3466
|
return L.value;
|
|
3467
3467
|
}
|
|
3468
3468
|
me(() => e.showSetting, (A, te) => {
|
|
3469
|
-
A !== te && (A ? I(l) :
|
|
3469
|
+
A !== te && (A ? I(l) : U(l), P(l.value));
|
|
3470
3470
|
});
|
|
3471
3471
|
function Vt(A) {
|
|
3472
3472
|
return f.value.filter((te) => A.includes(te.raw[e.idField]));
|
|
@@ -3488,7 +3488,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3488
3488
|
removeDataItem: St,
|
|
3489
3489
|
editDataItem: gt,
|
|
3490
3490
|
acceptDataItem: Tt,
|
|
3491
|
-
cancelDataItem:
|
|
3491
|
+
cancelDataItem: S,
|
|
3492
3492
|
updateColumns: P,
|
|
3493
3493
|
updateDataSource: V,
|
|
3494
3494
|
selectItemById: Q,
|
|
@@ -3531,7 +3531,7 @@ const ol = /* @__PURE__ */ tt({
|
|
|
3531
3531
|
class: M.value,
|
|
3532
3532
|
style: Gt.value,
|
|
3533
3533
|
onWheel: et
|
|
3534
|
-
}, [s.value &&
|
|
3534
|
+
}, [s.value && w.value && he(), g("div", {
|
|
3535
3535
|
ref: s,
|
|
3536
3536
|
class: ne.value,
|
|
3537
3537
|
onMouseover: () => c.value = !0,
|
|
@@ -4004,7 +4004,7 @@ function Ul() {
|
|
|
4004
4004
|
return { onCopy: e };
|
|
4005
4005
|
}
|
|
4006
4006
|
function Xl(e, t, n, o) {
|
|
4007
|
-
const a =
|
|
4007
|
+
const a = h(14), l = h(140), i = h(""), u = h(o.value.length), r = R(() => o.value), s = R(() => ({
|
|
4008
4008
|
"font-size": `${a.value}px`,
|
|
4009
4009
|
height: "100%"
|
|
4010
4010
|
}));
|
|
@@ -4036,7 +4036,7 @@ function Yl(e, t, n, o) {
|
|
|
4036
4036
|
return { getEditorRender: i };
|
|
4037
4037
|
}
|
|
4038
4038
|
function Jl() {
|
|
4039
|
-
const e =
|
|
4039
|
+
const e = h(!1), t = h("复制成功");
|
|
4040
4040
|
return {
|
|
4041
4041
|
feedbackStyle: R(() => {
|
|
4042
4042
|
const o = {
|
|
@@ -4095,7 +4095,7 @@ function Zl(e, t) {
|
|
|
4095
4095
|
const a = R(() => !!e.value && !!e.value.date), l = R(() => {
|
|
4096
4096
|
const f = e.value && e.value.date || "";
|
|
4097
4097
|
return `${t.exception.happend} : ${f}`;
|
|
4098
|
-
}), i = R(() => !!e.value && !!e.value.detail), u = R(() => e.value ? n(e.value.detail) > 160 : !1), r =
|
|
4098
|
+
}), i = R(() => !!e.value && !!e.value.detail), u = R(() => e.value ? n(e.value.detail) > 160 : !1), r = h(!1), s = R(() => r.value ? t.exception.collapse : t.exception.expand), p = R(() => {
|
|
4099
4099
|
const f = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
4100
4100
|
return r.value ? f : o(f, 160);
|
|
4101
4101
|
}), d = R(() => ({
|
|
@@ -4128,7 +4128,7 @@ function Kl(e) {
|
|
|
4128
4128
|
}, null);
|
|
4129
4129
|
}
|
|
4130
4130
|
function ei(e, t, n, o, a) {
|
|
4131
|
-
const l =
|
|
4131
|
+
const l = h(e.exceptionInfo), i = R(() => {
|
|
4132
4132
|
const c = t.value === "question" ? "warning" : t.value, v = {
|
|
4133
4133
|
"f-icon": !0
|
|
4134
4134
|
}, B = `f-icon-${c}`;
|
|
@@ -4158,7 +4158,7 @@ function ti(e, t, n, o) {
|
|
|
4158
4158
|
onCopy: a
|
|
4159
4159
|
} = t, {
|
|
4160
4160
|
toShowFeedback: l
|
|
4161
|
-
} = n, i =
|
|
4161
|
+
} = n, i = h(o.exception.copySuccess || "复制成功"), u = h(o.exception.copy || "复制详细信息"), r = h(e.exceptionInfo || {
|
|
4162
4162
|
date: "",
|
|
4163
4163
|
message: "",
|
|
4164
4164
|
detail: ""
|
|
@@ -4180,7 +4180,7 @@ function ti(e, t, n, o) {
|
|
|
4180
4180
|
}, [u.value])]);
|
|
4181
4181
|
}
|
|
4182
4182
|
function ni(e, t, n, o, a) {
|
|
4183
|
-
const l =
|
|
4183
|
+
const l = h(e.type), i = h(e.buttons), u = h(e.exceptionInfo), r = h(a.ok || e.okButtonText), s = h(a.cancel || e.cancelButtonText), p = h(e.showCancelButton), d = h(e.showOkButton), m = R(() => !!(i.value && i.value.length)), f = R(() => !!(u.value && u.value.detail)), c = R(() => !(i.value && i.value.length) && (d.value || p.value)), v = ti(e, n, o, a);
|
|
4184
4184
|
r.value === "关闭" ? r.value = a.close : r.value === "知道了" && (r.value = a.exception.roger);
|
|
4185
4185
|
function B(O) {
|
|
4186
4186
|
l.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -4237,7 +4237,7 @@ const jt = /* @__PURE__ */ tt({
|
|
|
4237
4237
|
props: Gl,
|
|
4238
4238
|
emits: ["accept", "reject", "close"],
|
|
4239
4239
|
setup(e, t) {
|
|
4240
|
-
const n = oi(e), o =
|
|
4240
|
+
const n = oi(e), o = h(e.type), a = h(e.title), l = h(e.detail), i = R(() => {
|
|
4241
4241
|
const E = {
|
|
4242
4242
|
"modal-tips": !0,
|
|
4243
4243
|
"d-flex": !0,
|
|
@@ -4402,10 +4402,10 @@ function fo(e, t) {
|
|
|
4402
4402
|
return { judgeCanOpen: n };
|
|
4403
4403
|
}
|
|
4404
4404
|
function ai(e, t, n, o, a) {
|
|
4405
|
-
const l =
|
|
4405
|
+
const l = h(e.buttonBehavior), i = h(e.popupOnInput), u = R(() => ({
|
|
4406
4406
|
"input-group-append": !0,
|
|
4407
4407
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
4408
|
-
})), { judgeCanOpen: r } = fo(e, a), s = R(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = Rt(co, null), d =
|
|
4408
|
+
})), { judgeCanOpen: r } = fo(e, a), s = R(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), p = Rt(co, null), d = h();
|
|
4409
4409
|
async function m(v) {
|
|
4410
4410
|
if (await r() && s.value) {
|
|
4411
4411
|
const B = !!t.slots.default;
|
|
@@ -4439,7 +4439,7 @@ function ai(e, t, n, o, a) {
|
|
|
4439
4439
|
};
|
|
4440
4440
|
}
|
|
4441
4441
|
function li(e, t, n, o, a, l) {
|
|
4442
|
-
const i =
|
|
4442
|
+
const i = h(!1), u = R(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: r, hasClearClass: s } = l;
|
|
4443
4443
|
function p(c) {
|
|
4444
4444
|
i.value = c, s.value = c;
|
|
4445
4445
|
}
|
|
@@ -4471,7 +4471,7 @@ function li(e, t, n, o, a, l) {
|
|
|
4471
4471
|
};
|
|
4472
4472
|
}
|
|
4473
4473
|
function ii(e, t, n, o, a) {
|
|
4474
|
-
const l = R(() => e.popupOnInput), i = R(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: r } = a, s =
|
|
4474
|
+
const l = R(() => e.popupOnInput), i = R(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: r } = a, s = h(!1), p = R(() => e.enableTitle ? n.value : ""), d = R(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), m = R(() => e.readonly || !e.editable), f = h(!1), c = R(() => !e.disable && f.value), v = R(() => ({
|
|
4475
4475
|
"text-left": e.textAlign === "left",
|
|
4476
4476
|
"text-center": e.textAlign === "center",
|
|
4477
4477
|
"text-right": e.textAlign === "right",
|
|
@@ -4485,44 +4485,44 @@ function ii(e, t, n, o, a) {
|
|
|
4485
4485
|
"f-state-focus": c.value,
|
|
4486
4486
|
"input-group--has-clear": e.enableClear && s.value
|
|
4487
4487
|
}));
|
|
4488
|
-
function E(
|
|
4489
|
-
n.value =
|
|
4488
|
+
function E(y, G = !0) {
|
|
4489
|
+
n.value = y, G && (t.emit("change", y), t.emit("update:modelValue", y));
|
|
4490
4490
|
}
|
|
4491
|
-
function O(
|
|
4492
|
-
u.value = !1, E(
|
|
4491
|
+
function O(y) {
|
|
4492
|
+
u.value = !1, E(y, !0);
|
|
4493
4493
|
}
|
|
4494
4494
|
me(
|
|
4495
4495
|
() => e.modelValue,
|
|
4496
|
-
(
|
|
4497
|
-
n.value =
|
|
4496
|
+
(y) => {
|
|
4497
|
+
n.value = y;
|
|
4498
4498
|
}
|
|
4499
4499
|
);
|
|
4500
|
-
function L(
|
|
4501
|
-
f.value = !1, t.emit("blur",
|
|
4500
|
+
function L(y) {
|
|
4501
|
+
f.value = !1, t.emit("blur", y), y.stopPropagation();
|
|
4502
4502
|
}
|
|
4503
|
-
function k(
|
|
4504
|
-
t.emit("click",
|
|
4503
|
+
function k(y) {
|
|
4504
|
+
t.emit("click", y), r(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
|
|
4505
4505
|
}
|
|
4506
|
-
function T(
|
|
4507
|
-
!e.disable && !e.readonly && (f.value = !0, m.value || (t.emit("focus",
|
|
4506
|
+
function T(y) {
|
|
4507
|
+
!e.disable && !e.readonly && (f.value = !0, m.value || (t.emit("focus", y), i.value && !u.value && a.popup()));
|
|
4508
4508
|
}
|
|
4509
|
-
function b(
|
|
4510
|
-
t.emit("input",
|
|
4511
|
-
const G =
|
|
4509
|
+
function b(y) {
|
|
4510
|
+
t.emit("input", y);
|
|
4511
|
+
const G = y.target.value;
|
|
4512
4512
|
o.value = G, n.value !== G && E(G, e.updateOn === "change"), l.value && !u.value && a.popup();
|
|
4513
4513
|
}
|
|
4514
|
-
function
|
|
4515
|
-
|
|
4514
|
+
function x(y) {
|
|
4515
|
+
y.target.tagName !== "INPUT" && y.preventDefault(), y.stopPropagation();
|
|
4516
4516
|
}
|
|
4517
|
-
function F(
|
|
4518
|
-
t.emit("keydown",
|
|
4517
|
+
function F(y) {
|
|
4518
|
+
t.emit("keydown", y);
|
|
4519
4519
|
}
|
|
4520
|
-
function D(
|
|
4521
|
-
|
|
4520
|
+
function D(y) {
|
|
4521
|
+
y.key === "Enter" && (l.value || i.value) && a.hidePopup(), t.emit("keyup", y);
|
|
4522
4522
|
}
|
|
4523
|
-
function q(
|
|
4524
|
-
const G =
|
|
4525
|
-
|
|
4523
|
+
function q(y) {
|
|
4524
|
+
const G = y.target.value;
|
|
4525
|
+
y.stopPropagation(), E(G);
|
|
4526
4526
|
}
|
|
4527
4527
|
return {
|
|
4528
4528
|
hasFocusedTextBox: c,
|
|
@@ -4540,13 +4540,13 @@ function ii(e, t, n, o, a) {
|
|
|
4540
4540
|
onInput: b,
|
|
4541
4541
|
onKeyDownTextBox: F,
|
|
4542
4542
|
onKeyUpTextBox: D,
|
|
4543
|
-
onMouseDownTextBox:
|
|
4543
|
+
onMouseDownTextBox: x,
|
|
4544
4544
|
onTextBoxValueChange: q
|
|
4545
4545
|
};
|
|
4546
4546
|
}
|
|
4547
4547
|
const dt = "FarrisVue_PopoverInstancesKey";
|
|
4548
4548
|
function ri(e, t, n, o) {
|
|
4549
|
-
const a =
|
|
4549
|
+
const a = h(), l = h(!1), { judgeCanOpen: i } = fo(e, o);
|
|
4550
4550
|
me(() => a.value, (f, c) => {
|
|
4551
4551
|
window[dt] = window[dt] || /* @__PURE__ */ new WeakMap(), f ? window[dt].set(n.value, f) : window[dt].delete(n.value);
|
|
4552
4552
|
});
|
|
@@ -4567,7 +4567,7 @@ function ri(e, t, n, o) {
|
|
|
4567
4567
|
if (!!t.slots.default) {
|
|
4568
4568
|
if (!f && !l.value && !await i())
|
|
4569
4569
|
return;
|
|
4570
|
-
l.value = !l.value, await mt(), r();
|
|
4570
|
+
l.value = !l.value, l.value && (await mt(), r());
|
|
4571
4571
|
}
|
|
4572
4572
|
}
|
|
4573
4573
|
async function p(f = !1) {
|
|
@@ -4588,7 +4588,7 @@ function ri(e, t, n, o) {
|
|
|
4588
4588
|
return { hidePopup: d, showPopup: m, popup: p, shouldPopupContent: l, togglePopup: s, popoverRef: a, closeAllPopover: u };
|
|
4589
4589
|
}
|
|
4590
4590
|
function si(e, t, n) {
|
|
4591
|
-
const o =
|
|
4591
|
+
const o = h(), {
|
|
4592
4592
|
isTextBoxReadonly: a,
|
|
4593
4593
|
textBoxClass: l,
|
|
4594
4594
|
textBoxPlaceholder: i,
|
|
@@ -4601,25 +4601,25 @@ function si(e, t, n) {
|
|
|
4601
4601
|
onKeyUpTextBox: f,
|
|
4602
4602
|
onMouseDownTextBox: c,
|
|
4603
4603
|
onTextBoxValueChange: v
|
|
4604
|
-
} = n, B =
|
|
4604
|
+
} = n, B = h(e.id), {
|
|
4605
4605
|
uuid: E
|
|
4606
4606
|
} = Mo(), O = R(() => ({
|
|
4607
4607
|
"border-top-right-radius": "6px",
|
|
4608
4608
|
"border-bottom-right-radius": "6px"
|
|
4609
4609
|
}));
|
|
4610
4610
|
vt(() => {
|
|
4611
|
-
var
|
|
4612
|
-
e.selectOnCreated && ((
|
|
4611
|
+
var x, F;
|
|
4612
|
+
e.selectOnCreated && ((x = o.value) == null || x.select()), e.focusOnCreated && ((F = o.value) == null || F.focus({
|
|
4613
4613
|
preventScroll: !0
|
|
4614
4614
|
})), B.value || (B.value = "button-edit_" + E(8)), B.value = B.value + "-textbox";
|
|
4615
4615
|
});
|
|
4616
|
-
const L =
|
|
4617
|
-
|
|
4618
|
-
}, T = (
|
|
4619
|
-
|
|
4616
|
+
const L = h(!1), k = (x) => {
|
|
4617
|
+
x.preventDefault(), L.value = !0;
|
|
4618
|
+
}, T = (x) => {
|
|
4619
|
+
x.preventDefault(), L.value = !1, d(x);
|
|
4620
4620
|
};
|
|
4621
|
-
function b(
|
|
4622
|
-
L.value || d(
|
|
4621
|
+
function b(x) {
|
|
4622
|
+
L.value || d(x);
|
|
4623
4623
|
}
|
|
4624
4624
|
return () => g("input", {
|
|
4625
4625
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4650,7 +4650,7 @@ function si(e, t, n) {
|
|
|
4650
4650
|
}, null);
|
|
4651
4651
|
}
|
|
4652
4652
|
function ui(e, t, n) {
|
|
4653
|
-
const o =
|
|
4653
|
+
const o = h(e.separator), a = R(() => e.readonly || e.disable), {
|
|
4654
4654
|
changeTextBoxValue: l,
|
|
4655
4655
|
onFocusTextBox: i,
|
|
4656
4656
|
onBlurTextBox: u,
|
|
@@ -4666,7 +4666,7 @@ function ui(e, t, n) {
|
|
|
4666
4666
|
me(() => e.separator, (c) => {
|
|
4667
4667
|
o.value = c;
|
|
4668
4668
|
});
|
|
4669
|
-
const m =
|
|
4669
|
+
const m = h(!e.disable && !e.readonly);
|
|
4670
4670
|
me([() => e.disable, () => e.readonly], ([c, v], [B, E]) => {
|
|
4671
4671
|
m.value = !c && !v;
|
|
4672
4672
|
});
|
|
@@ -4698,7 +4698,7 @@ function ci(e, t, n, o) {
|
|
|
4698
4698
|
enableClearButton: r,
|
|
4699
4699
|
showClearButton: s,
|
|
4700
4700
|
onClearValue: p
|
|
4701
|
-
} = o, d =
|
|
4701
|
+
} = o, d = h(), m = Ro((c) => {
|
|
4702
4702
|
l(c);
|
|
4703
4703
|
}, e.buttonBehavior === "Modal" ? 0 : 200), f = () => {
|
|
4704
4704
|
t.emit("beforeClearValue");
|
|
@@ -4730,7 +4730,7 @@ function ci(e, t, n, o) {
|
|
|
4730
4730
|
};
|
|
4731
4731
|
}
|
|
4732
4732
|
function di(e, t, n) {
|
|
4733
|
-
const o =
|
|
4733
|
+
const o = h(e.popupMinWidth), {
|
|
4734
4734
|
hidePopup: a,
|
|
4735
4735
|
popoverRef: l
|
|
4736
4736
|
} = n, i = () => {
|
|
@@ -4763,19 +4763,19 @@ const mo = /* @__PURE__ */ tt({
|
|
|
4763
4763
|
props: _o,
|
|
4764
4764
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
4765
4765
|
setup(e, t) {
|
|
4766
|
-
const n =
|
|
4766
|
+
const n = h(), o = h(e.customClass), a = h(e.modelValue), l = ri(e, t, n, a), {
|
|
4767
4767
|
shouldPopupContent: i,
|
|
4768
4768
|
hidePopup: u,
|
|
4769
4769
|
showPopup: r,
|
|
4770
4770
|
togglePopup: s
|
|
4771
|
-
} = l, p = ai(e, t, n, l, a), d =
|
|
4771
|
+
} = l, p = ai(e, t, n, l, a), d = h(""), m = ii(e, t, a, d, l), {
|
|
4772
4772
|
hasFocusedTextBox: f,
|
|
4773
4773
|
commitValue: c,
|
|
4774
4774
|
inputGroupClass: v
|
|
4775
4775
|
} = m, B = li(e, t, a, f, d, m), {
|
|
4776
4776
|
onMouseEnterTextBox: E,
|
|
4777
4777
|
onMouseLeaveTextBox: O
|
|
4778
|
-
} = B, L =
|
|
4778
|
+
} = B, L = h(!1), k = R(() => {
|
|
4779
4779
|
const _ = {
|
|
4780
4780
|
"f-button-edit": !0,
|
|
4781
4781
|
"f-cmp-inputgroup": !0,
|
|
@@ -4788,16 +4788,16 @@ const mo = /* @__PURE__ */ tt({
|
|
|
4788
4788
|
paddingLeft: "3px",
|
|
4789
4789
|
backgroundColor: "#fff"
|
|
4790
4790
|
}));
|
|
4791
|
-
function
|
|
4791
|
+
function x() {
|
|
4792
4792
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
4793
4793
|
return 0;
|
|
4794
4794
|
let _ = 0;
|
|
4795
4795
|
const j = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
4796
4796
|
return j && j.length && (_ = j.map((C) => C.offsetTop).filter((C) => C > 20).length), _;
|
|
4797
4797
|
}
|
|
4798
|
-
const F =
|
|
4798
|
+
const F = h(x());
|
|
4799
4799
|
To(() => {
|
|
4800
|
-
F.value =
|
|
4800
|
+
F.value = x();
|
|
4801
4801
|
});
|
|
4802
4802
|
function D() {
|
|
4803
4803
|
return e.multiSelect && e.inputType === "tag" ? () => g(lt, null, [ui(e, a, m)(), !!F.value && g("div", {
|
|
@@ -4812,9 +4812,9 @@ const mo = /* @__PURE__ */ tt({
|
|
|
4812
4812
|
q = D();
|
|
4813
4813
|
});
|
|
4814
4814
|
const {
|
|
4815
|
-
renderButtonGroup:
|
|
4815
|
+
renderButtonGroup: y,
|
|
4816
4816
|
buttonHandleElement: G
|
|
4817
|
-
} = ci(e, t, p, B), W = di(e, t, l), $ =
|
|
4817
|
+
} = ci(e, t, p, B), W = di(e, t, l), $ = h(i.value), J = {
|
|
4818
4818
|
displayText: d,
|
|
4819
4819
|
commitValue: c,
|
|
4820
4820
|
elementRef: n,
|
|
@@ -4873,7 +4873,7 @@ const mo = /* @__PURE__ */ tt({
|
|
|
4873
4873
|
style: b.value,
|
|
4874
4874
|
onMouseenter: E,
|
|
4875
4875
|
onMouseleave: O
|
|
4876
|
-
}, [(j = (_ = t.slots).precontent) == null ? void 0 : j.call(_), q(),
|
|
4876
|
+
}, [(j = (_ = t.slots).precontent) == null ? void 0 : j.call(_), q(), y()])]), $.value && W()]);
|
|
4877
4877
|
};
|
|
4878
4878
|
}
|
|
4879
4879
|
});
|
|
@@ -5021,11 +5021,11 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5021
5021
|
calculateCellPositionInRow: k,
|
|
5022
5022
|
cellKey: T,
|
|
5023
5023
|
cellPosition: b,
|
|
5024
|
-
rowKey:
|
|
5024
|
+
rowKey: x,
|
|
5025
5025
|
rowPosition: F,
|
|
5026
5026
|
rowSpanCellPosition: D,
|
|
5027
5027
|
groupCellPosition: q,
|
|
5028
|
-
summaryCellPosition:
|
|
5028
|
+
summaryCellPosition: y
|
|
5029
5029
|
} = i, {
|
|
5030
5030
|
cellContentClass: G,
|
|
5031
5031
|
cellContentPosition: W,
|
|
@@ -5037,7 +5037,7 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5037
5037
|
gridRowClass: j,
|
|
5038
5038
|
onClickRow: C,
|
|
5039
5039
|
onMouseoverRow: I,
|
|
5040
|
-
onMouseoutRow:
|
|
5040
|
+
onMouseoutRow: U
|
|
5041
5041
|
} = d, {
|
|
5042
5042
|
onClickCell: N
|
|
5043
5043
|
} = r, {
|
|
@@ -5049,9 +5049,9 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5049
5049
|
} = u, {
|
|
5050
5050
|
navigateOnKeyUp: ae,
|
|
5051
5051
|
navigateOnKeyDown: ye
|
|
5052
|
-
} = p, oe = (
|
|
5052
|
+
} = p, oe = (w) => (w || []).some((K) => Fo(K) ? !(K.type === ko || K.type === lt && !oe(K.children)) : !0) ? w : null, X = (w) => {
|
|
5053
5053
|
var K, ce, Y;
|
|
5054
|
-
return ((ce = (K =
|
|
5054
|
+
return ((ce = (K = w.column) == null ? void 0 : K.editor) == null ? void 0 : ce.type) === "switch" || ((Y = w.column) == null ? void 0 : Y.dataType) === "boolean" ? {
|
|
5055
5055
|
display: "flex",
|
|
5056
5056
|
flexGrow: "1",
|
|
5057
5057
|
overflow: "hidden"
|
|
@@ -5063,8 +5063,8 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5063
5063
|
}), Ne = Ke({
|
|
5064
5064
|
"fv-grid-content-right-fixed": !0
|
|
5065
5065
|
});
|
|
5066
|
-
me([O, L], (
|
|
5067
|
-
!
|
|
5066
|
+
me([O, L], (w) => {
|
|
5067
|
+
!w[0] && !w[1].length ? (se["fv-grid-content-left-fixed"] = !1, Ne["fv-grid-content-right-fixed"] = !1) : (se["fv-grid-content-left-fixed"] = !0, Ne["fv-grid-content-right-fixed"] = !0);
|
|
5068
5068
|
});
|
|
5069
5069
|
const {
|
|
5070
5070
|
gridDataStyle: De,
|
|
@@ -5074,130 +5074,130 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5074
5074
|
rightFixedGridDataStyle: Ae,
|
|
5075
5075
|
rightFixedGridMergedDataStyle: ve
|
|
5076
5076
|
} = f;
|
|
5077
|
-
function et(
|
|
5077
|
+
function et(w, K) {
|
|
5078
5078
|
K.collapse = !K.collapse, c.value = ee(K.collapse ? "collapse" : "expand", K, c.value);
|
|
5079
5079
|
}
|
|
5080
|
-
function de(
|
|
5080
|
+
function de(w, K) {
|
|
5081
5081
|
const ce = [];
|
|
5082
|
-
if (
|
|
5083
|
-
for (let pe = 0; pe <=
|
|
5082
|
+
if (w.groupField && K[w.groupField]) {
|
|
5083
|
+
for (let pe = 0; pe <= w.layer; pe++)
|
|
5084
5084
|
ce.push(g("div", {
|
|
5085
5085
|
class: "fv-grid-group-row-icon",
|
|
5086
|
-
onClick: (Je) => et(Je,
|
|
5086
|
+
onClick: (Je) => et(Je, w)
|
|
5087
5087
|
}, [g("span", {
|
|
5088
|
-
class: J(
|
|
5088
|
+
class: J(w)
|
|
5089
5089
|
}, null)]));
|
|
5090
|
-
const Y =
|
|
5090
|
+
const Y = w.data[w.groupField];
|
|
5091
5091
|
ce.push(g("div", {
|
|
5092
5092
|
ref: Y.setRef,
|
|
5093
|
-
key: T(
|
|
5093
|
+
key: T(w, w.layer + 1),
|
|
5094
5094
|
class: "fv-grid-cell",
|
|
5095
|
-
style: q(Y, K,
|
|
5096
|
-
}, [Y.data])), Object.values(
|
|
5095
|
+
style: q(Y, K, w.layer)
|
|
5096
|
+
}, [Y.data])), Object.values(w.data).filter((pe) => pe.field !== w.groupField && pe.colSpan !== 0).forEach((pe) => {
|
|
5097
5097
|
ce.push(g("div", {
|
|
5098
5098
|
ref: pe.setRef,
|
|
5099
|
-
key: T(
|
|
5099
|
+
key: T(w, pe.index),
|
|
5100
5100
|
class: "fv-grid-cell",
|
|
5101
|
-
style: b(pe, K)
|
|
5101
|
+
style: b(w, pe, K)
|
|
5102
5102
|
}, [pe.data]));
|
|
5103
5103
|
});
|
|
5104
5104
|
}
|
|
5105
5105
|
return ce;
|
|
5106
5106
|
}
|
|
5107
|
-
function Ge(
|
|
5108
|
-
return
|
|
5109
|
-
ref:
|
|
5110
|
-
key: w
|
|
5111
|
-
class: j(
|
|
5112
|
-
style: F(
|
|
5113
|
-
onClick: (Y) => C(Y,
|
|
5114
|
-
onMouseover: (Y) => I(Y,
|
|
5115
|
-
}, [de(
|
|
5116
|
-
}
|
|
5117
|
-
function Oe(
|
|
5107
|
+
function Ge(w, K, ce) {
|
|
5108
|
+
return w.layer > -1 && g("div", {
|
|
5109
|
+
ref: w.setRef,
|
|
5110
|
+
key: x(w),
|
|
5111
|
+
class: j(w, ce),
|
|
5112
|
+
style: F(w),
|
|
5113
|
+
onClick: (Y) => C(Y, w),
|
|
5114
|
+
onMouseover: (Y) => I(Y, w)
|
|
5115
|
+
}, [de(w, K)]);
|
|
5116
|
+
}
|
|
5117
|
+
function Oe(w, K) {
|
|
5118
5118
|
const ce = [];
|
|
5119
|
-
if (
|
|
5120
|
-
const Y =
|
|
5119
|
+
if (w.groupField && K[w.groupField]) {
|
|
5120
|
+
const Y = w.data[w.groupField];
|
|
5121
5121
|
ce.push(g("div", {
|
|
5122
5122
|
ref: Y.setRef,
|
|
5123
|
-
key: T(
|
|
5123
|
+
key: T(w, w.layer + 1),
|
|
5124
5124
|
class: "fv-grid-cell",
|
|
5125
|
-
style:
|
|
5125
|
+
style: y(Y, K, w.layer)
|
|
5126
5126
|
}, [Y.data]));
|
|
5127
5127
|
}
|
|
5128
5128
|
return ce;
|
|
5129
5129
|
}
|
|
5130
|
-
function He(
|
|
5131
|
-
return
|
|
5132
|
-
ref:
|
|
5133
|
-
key: w
|
|
5134
|
-
class: j(
|
|
5135
|
-
style: F(
|
|
5136
|
-
onClick: (Y) => C(Y,
|
|
5137
|
-
onMouseover: (Y) => I(Y,
|
|
5138
|
-
}, [Oe(
|
|
5139
|
-
}
|
|
5140
|
-
function We(
|
|
5130
|
+
function He(w, K, ce) {
|
|
5131
|
+
return w.layer > -1 && g("div", {
|
|
5132
|
+
ref: w.setRef,
|
|
5133
|
+
key: x(w),
|
|
5134
|
+
class: j(w, ce),
|
|
5135
|
+
style: F(w),
|
|
5136
|
+
onClick: (Y) => C(Y, w),
|
|
5137
|
+
onMouseover: (Y) => I(Y, w)
|
|
5138
|
+
}, [Oe(w, K)]);
|
|
5139
|
+
}
|
|
5140
|
+
function We(w, K) {
|
|
5141
5141
|
var ce, Y, pe;
|
|
5142
|
-
return
|
|
5143
|
-
class: $(
|
|
5144
|
-
title:
|
|
5145
|
-
}, [
|
|
5146
|
-
class: $(
|
|
5147
|
-
}, [
|
|
5148
|
-
}
|
|
5149
|
-
function Fe(
|
|
5150
|
-
const K = !B(
|
|
5151
|
-
return
|
|
5152
|
-
class: $(
|
|
5142
|
+
return w.showTips && typeof ((ce = w.column) == null ? void 0 : ce.formatter) != "function" && ((Y = w.column) == null ? void 0 : Y.dataType) !== "commands" && ((pe = w.column) == null ? void 0 : pe.dataType) !== "setting" ? g("div", {
|
|
5143
|
+
class: $(w),
|
|
5144
|
+
title: w.formatter(w, K)
|
|
5145
|
+
}, [w.formatter(w, K)]) : g("div", {
|
|
5146
|
+
class: $(w)
|
|
5147
|
+
}, [w.formatter(w, K)]);
|
|
5148
|
+
}
|
|
5149
|
+
function Fe(w) {
|
|
5150
|
+
const K = !B(w.data) && !E(w.data) ? w.data.toString() : w.data;
|
|
5151
|
+
return w.showTips ? g("div", {
|
|
5152
|
+
class: $(w),
|
|
5153
5153
|
title: K
|
|
5154
5154
|
}, [K]) : g("div", {
|
|
5155
|
-
class: $(
|
|
5155
|
+
class: $(w)
|
|
5156
5156
|
}, [K]);
|
|
5157
5157
|
}
|
|
5158
|
-
function $e(
|
|
5159
|
-
return !B(
|
|
5160
|
-
style:
|
|
5161
|
-
}, [
|
|
5158
|
+
function $e(w, K) {
|
|
5159
|
+
return !B(w.data) && !E(w.data) ? w.data.toString() : w.data, w.mode === Ho.editing ? g("div", {
|
|
5160
|
+
style: X(w)
|
|
5161
|
+
}, [w.getEditor(w)]) : w.column.columnTemplate ? w.column.columnTemplate(w, K) : w.formatter ? We(w, K) : Fe(w);
|
|
5162
5162
|
}
|
|
5163
|
-
function Re(
|
|
5163
|
+
function Re(w, K, ce) {
|
|
5164
5164
|
return g("div", {
|
|
5165
|
-
ref:
|
|
5166
|
-
key: w
|
|
5167
|
-
class: j(
|
|
5168
|
-
style: F(
|
|
5169
|
-
onClick: (Y) => C(Y,
|
|
5170
|
-
onMouseover: (Y) => I(Y,
|
|
5171
|
-
onMouseout: (Y) =>
|
|
5172
|
-
}, [Object.values(
|
|
5165
|
+
ref: w.setRef,
|
|
5166
|
+
key: x(w),
|
|
5167
|
+
class: j(w, ce),
|
|
5168
|
+
style: F(w),
|
|
5169
|
+
onClick: (Y) => C(Y, w),
|
|
5170
|
+
onMouseover: (Y) => I(Y, w),
|
|
5171
|
+
onMouseout: (Y) => U(Y, w)
|
|
5172
|
+
}, [Object.values(w.data).filter((Y) => K[Y.field] && Y.rowSpan === 1).map((Y) => {
|
|
5173
5173
|
var Je, nt;
|
|
5174
5174
|
const pe = t.slots.cellTemplate && oe(t.slots.cellTemplate({
|
|
5175
5175
|
cell: Y,
|
|
5176
|
-
row:
|
|
5176
|
+
row: w
|
|
5177
5177
|
}));
|
|
5178
5178
|
return g("div", {
|
|
5179
5179
|
ref: Y.setRef,
|
|
5180
|
-
key: T(
|
|
5181
|
-
class: _(Y),
|
|
5182
|
-
style: b(Y, K),
|
|
5183
|
-
onClick: (Qe) => N(Qe, Y,
|
|
5180
|
+
key: T(w, Y.index),
|
|
5181
|
+
class: _(Y, w),
|
|
5182
|
+
style: b(w, Y, K),
|
|
5183
|
+
onClick: (Qe) => N(Qe, Y, w, Y.column),
|
|
5184
5184
|
onKeydown: (Qe) => ae(Qe, Y)
|
|
5185
5185
|
}, [g("div", {
|
|
5186
5186
|
class: G(Y),
|
|
5187
5187
|
style: W(Y)
|
|
5188
5188
|
}, [pe ? (nt = (Je = t.slots).cellTemplate) == null ? void 0 : nt.call(Je, {
|
|
5189
5189
|
cell: Y,
|
|
5190
|
-
row:
|
|
5191
|
-
}) : $e(Y,
|
|
5190
|
+
row: w
|
|
5191
|
+
}) : $e(Y, w)])]);
|
|
5192
5192
|
})]);
|
|
5193
5193
|
}
|
|
5194
5194
|
const _e = [Re, Ge, He];
|
|
5195
|
-
function Le(
|
|
5196
|
-
const ce = k(
|
|
5195
|
+
function Le(w, K) {
|
|
5196
|
+
const ce = k(w);
|
|
5197
5197
|
return c.value.map((Y, pe) => _e[Y.type](Y, ce, pe));
|
|
5198
5198
|
}
|
|
5199
|
-
function M(
|
|
5200
|
-
const K = k(
|
|
5199
|
+
function M(w) {
|
|
5200
|
+
const K = k(w);
|
|
5201
5201
|
return c.value.map((ce) => Object.values(ce.data).filter((Y) => K[Y.field] && Y.rowSpan > 1).map((Y) => g("div", {
|
|
5202
5202
|
key: T(ce, Y.index),
|
|
5203
5203
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
@@ -5211,10 +5211,10 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5211
5211
|
}, [g("div", {
|
|
5212
5212
|
class: "fv-grid-data",
|
|
5213
5213
|
style: Ye.value
|
|
5214
|
-
}, [Le(le.value.leftColumns.filter((
|
|
5214
|
+
}, [Le(le.value.leftColumns.filter((w) => w.visible))]), g("div", {
|
|
5215
5215
|
class: "fv-grid-merge-date",
|
|
5216
5216
|
style: Xe.value
|
|
5217
|
-
}, [M(le.value.leftColumns.filter((
|
|
5217
|
+
}, [M(le.value.leftColumns.filter((w) => w.visible))])]);
|
|
5218
5218
|
}
|
|
5219
5219
|
function ge() {
|
|
5220
5220
|
return g("div", {
|
|
@@ -5223,10 +5223,10 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5223
5223
|
}, [g("div", {
|
|
5224
5224
|
class: "fv-grid-data",
|
|
5225
5225
|
style: De.value
|
|
5226
|
-
}, [Le(le.value.primaryColumns.filter((
|
|
5226
|
+
}, [Le(le.value.primaryColumns.filter((w) => w.visible))]), g("div", {
|
|
5227
5227
|
class: "fv-grid-merge-date",
|
|
5228
5228
|
style: Ie.value
|
|
5229
|
-
}, [M(le.value.primaryColumns.filter((
|
|
5229
|
+
}, [M(le.value.primaryColumns.filter((w) => w.visible))])]);
|
|
5230
5230
|
}
|
|
5231
5231
|
function he() {
|
|
5232
5232
|
return g("div", {
|
|
@@ -5235,14 +5235,14 @@ function mi(e, t, n, o, a, l, i, u, r, s, p, d, m, f, c, v) {
|
|
|
5235
5235
|
}, [g("div", {
|
|
5236
5236
|
class: "fv-grid-data",
|
|
5237
5237
|
style: Ae.value
|
|
5238
|
-
}, [Le(le.value.rightColumns.filter((
|
|
5238
|
+
}, [Le(le.value.rightColumns.filter((w) => w.visible))]), g("div", {
|
|
5239
5239
|
class: "fv-grid-merge-date",
|
|
5240
5240
|
style: ve.value
|
|
5241
|
-
}, [M(le.value.rightColumns.filter((
|
|
5241
|
+
}, [M(le.value.rightColumns.filter((w) => w.visible))])]);
|
|
5242
5242
|
}
|
|
5243
5243
|
function Ve() {
|
|
5244
|
-
const
|
|
5245
|
-
return fe.value &&
|
|
5244
|
+
const w = [];
|
|
5245
|
+
return fe.value && w.push(ne()), w.push(ge()), Z.value && w.push(he()), w;
|
|
5246
5246
|
}
|
|
5247
5247
|
return {
|
|
5248
5248
|
renderDataArea: Ve
|
|
@@ -5254,18 +5254,18 @@ const po = /* @__PURE__ */ tt({
|
|
|
5254
5254
|
emits: ["changed", "clickRow", "doubleClickRow", "selectionChange", "unSelectItem", "selectItem", "enterUpInLastCell", "selectAll", "unSelectAll", "pageIndexChanged", "pageSizeChanged", "beginEditCell", "endEditCell", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
5255
5255
|
setup(e, t) {
|
|
5256
5256
|
var ke, Bt;
|
|
5257
|
-
|
|
5258
|
-
const n = 0, o = ((ke = e.rowOption) == null ? void 0 : ke.height) || 28, a =
|
|
5257
|
+
h();
|
|
5258
|
+
const n = 0, o = ((ke = e.rowOption) == null ? void 0 : ke.height) || 28, a = h(20), l = h(e.columns), i = fn(e), u = h(), r = h(), s = h(), p = h(), d = h(), m = h([]), f = h(!1), c = h(((Bt = e.rowOption) == null ? void 0 : Bt.wrapContent) || !1), v = mn(e, i), B = pn(e, t), E = vn(e), {
|
|
5259
5259
|
showLoading: O,
|
|
5260
5260
|
renderLoading: L
|
|
5261
5261
|
} = gn(e, u), k = yn(e, /* @__PURE__ */ new Map(), B, E, i), T = bn(e, k), {
|
|
5262
5262
|
shouldRenderPagination: b
|
|
5263
|
-
} = T,
|
|
5263
|
+
} = T, x = hn(e, k, i, m, t), {
|
|
5264
5264
|
showSelectAll: F,
|
|
5265
5265
|
showSelection: D,
|
|
5266
5266
|
selectedValues: q,
|
|
5267
|
-
updateSelectAllStatus:
|
|
5268
|
-
} =
|
|
5267
|
+
updateSelectAllStatus: y
|
|
5268
|
+
} = x, G = R(() => e.disabled), W = R(() => e.virtualized ? Math.min(k.dataView.value.length, a.value) : k.dataView.value.length);
|
|
5269
5269
|
R(() => e.loadingConfig.message);
|
|
5270
5270
|
const {
|
|
5271
5271
|
containerStyleObject: $
|
|
@@ -5278,15 +5278,15 @@ const po = /* @__PURE__ */ tt({
|
|
|
5278
5278
|
removeColumnSetting: C
|
|
5279
5279
|
} = xn(e);
|
|
5280
5280
|
e.showSetting && j(l);
|
|
5281
|
-
const I = Sn(e, t),
|
|
5281
|
+
const I = Sn(e, t), U = Tn(e), {
|
|
5282
5282
|
applyColumnSorter: N,
|
|
5283
5283
|
columnContext: ee,
|
|
5284
5284
|
updateColumnRenderContext: le
|
|
5285
5285
|
} = I;
|
|
5286
|
-
N(k,
|
|
5287
|
-
const fe = Bn(e, ee), Z = Fn(e, t,
|
|
5286
|
+
N(k, U);
|
|
5287
|
+
const fe = Bn(e, ee), Z = Fn(e, t, x, i), ae = kn(e, t, i, Z, m), ye = In(e), oe = On(e, ae, ye), X = En(e, k, ae, E, i, ye, oe), se = $o(e, i, oe, X), Ne = Lo(e, i, oe, X), De = Mn(e, l, k, W, n, X, se, Ne), {
|
|
5288
5288
|
getVisualData: Ie
|
|
5289
|
-
} = De, Ye = Vo(ee), Xe = Dn(e, ee), Ae = Rn(e,
|
|
5289
|
+
} = De, Ye = Vo(ee), Xe = Dn(e, ee), Ae = Rn(e, x), {
|
|
5290
5290
|
sidebarWidth: ve,
|
|
5291
5291
|
showSidebarCheckBox: et
|
|
5292
5292
|
} = Ae, de = Pn(e, k, m, ee, De, W, n, ve, ae), {
|
|
@@ -5314,14 +5314,14 @@ const po = /* @__PURE__ */ tt({
|
|
|
5314
5314
|
const z = {};
|
|
5315
5315
|
return de.shouldShowHorizontalScrollbar.value && (z.paddingBottom = "10px"), de.shouldShowVirticalScrollbar.value && (z.paddingRight = "10px"), z;
|
|
5316
5316
|
}), {
|
|
5317
|
-
renderGridHeader:
|
|
5317
|
+
renderGridHeader: w,
|
|
5318
5318
|
renderGridColumnResizeOverlay: K,
|
|
5319
5319
|
shouldShowHeader: ce
|
|
5320
|
-
} = Ln(e, t, r, p, d, I, k, ne, M, B, Le, Re, fe,
|
|
5320
|
+
} = Ln(e, t, r, p, d, I, k, ne, M, B, Le, Re, fe, x, Ae, U, de, We, m), {
|
|
5321
5321
|
renderDataGridPagination: Y
|
|
5322
|
-
} = _n(e, t, k, de, T,
|
|
5322
|
+
} = _n(e, t, k, de, T, x), {
|
|
5323
5323
|
renderDataGridSidebar: pe
|
|
5324
|
-
} = Vn(e, Z,
|
|
5324
|
+
} = Vn(e, Z, x, Ae, de), {
|
|
5325
5325
|
renderDisableMask: Je
|
|
5326
5326
|
} = zn(), {
|
|
5327
5327
|
renderDataGridSummary: nt
|
|
@@ -5355,7 +5355,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5355
5355
|
function Tt(z) {
|
|
5356
5356
|
ae.onEditingRow(z);
|
|
5357
5357
|
}
|
|
5358
|
-
function
|
|
5358
|
+
function S(z) {
|
|
5359
5359
|
k.removeDataItem(z), Fe();
|
|
5360
5360
|
}
|
|
5361
5361
|
function P(z) {
|
|
@@ -5376,13 +5376,13 @@ const po = /* @__PURE__ */ tt({
|
|
|
5376
5376
|
});
|
|
5377
5377
|
}
|
|
5378
5378
|
function ie(z) {
|
|
5379
|
-
z && (l.value = z, re(l.value), _(l), e.showSetting && j(l), le(l.value), N(k,
|
|
5379
|
+
z && (l.value = z, re(l.value), _(l), e.showSetting && j(l), le(l.value), N(k, U), _e());
|
|
5380
5380
|
}
|
|
5381
5381
|
me(() => e.showSetting, (z, ue) => {
|
|
5382
5382
|
z !== ue && ie(l.value);
|
|
5383
5383
|
});
|
|
5384
5384
|
function Pe(z, ue) {
|
|
5385
|
-
z && (k.load(z), m.value = Ie(0, W.value + n - 1), ue != null && ue.keepScrollTop ? de.scrollTo(de.offsetY.value) : Fe(), m.value.length || (q.value = []), et.value && F.value &&
|
|
5385
|
+
z && (k.load(z), m.value = Ie(0, W.value + n - 1), ue != null && ue.keepScrollTop ? de.scrollTo(de.offsetY.value) : Fe(), m.value.length || (q.value = []), et.value && F.value && y()), ae.clear();
|
|
5386
5386
|
}
|
|
5387
5387
|
function Be(z) {
|
|
5388
5388
|
T.updatePagination(z);
|
|
@@ -5397,7 +5397,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5397
5397
|
ie(z);
|
|
5398
5398
|
});
|
|
5399
5399
|
function Ee(z) {
|
|
5400
|
-
|
|
5400
|
+
x.selectItemById(z);
|
|
5401
5401
|
}
|
|
5402
5402
|
function qe(z) {
|
|
5403
5403
|
const ue = i.idField.value, Te = m.value.find((ze) => ze.raw[ue] === z);
|
|
@@ -5411,7 +5411,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5411
5411
|
Te && Z.changeRow(Te);
|
|
5412
5412
|
}
|
|
5413
5413
|
function Me(z) {
|
|
5414
|
-
|
|
5414
|
+
x.selectItemByIds(z);
|
|
5415
5415
|
}
|
|
5416
5416
|
function xe() {
|
|
5417
5417
|
return m.value;
|
|
@@ -5420,22 +5420,22 @@ const po = /* @__PURE__ */ tt({
|
|
|
5420
5420
|
return m.value.filter((ue) => z.includes(ue.raw[e.idField]));
|
|
5421
5421
|
}
|
|
5422
5422
|
function st() {
|
|
5423
|
-
return
|
|
5423
|
+
return x.getSelectedItems();
|
|
5424
5424
|
}
|
|
5425
5425
|
function ut() {
|
|
5426
|
-
return
|
|
5426
|
+
return x.getSelectionRow();
|
|
5427
5427
|
}
|
|
5428
5428
|
function Lt() {
|
|
5429
5429
|
ae.endEditCell();
|
|
5430
5430
|
}
|
|
5431
5431
|
function Vt(z) {
|
|
5432
|
-
|
|
5432
|
+
x.unSelectItemByIds(z);
|
|
5433
5433
|
}
|
|
5434
5434
|
function It() {
|
|
5435
|
-
|
|
5435
|
+
x.clearSelection();
|
|
5436
5436
|
}
|
|
5437
5437
|
function zt() {
|
|
5438
|
-
return
|
|
5438
|
+
return x.currentSelectedDataId.value;
|
|
5439
5439
|
}
|
|
5440
5440
|
function At() {
|
|
5441
5441
|
de.scrollToBottom();
|
|
@@ -5444,7 +5444,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5444
5444
|
de.scrollToRowByIndex(z);
|
|
5445
5445
|
}
|
|
5446
5446
|
function Wt() {
|
|
5447
|
-
|
|
5447
|
+
x.keepSelectingOnPaging.value || It(), k.updateVisibleDataSummary(m.value), Be({
|
|
5448
5448
|
total: k.dataView.value.length,
|
|
5449
5449
|
index: 1
|
|
5450
5450
|
});
|
|
@@ -5454,7 +5454,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5454
5454
|
selectRowById: Ue,
|
|
5455
5455
|
addNewDataItem: St,
|
|
5456
5456
|
addNewDataItemAtLast: gt,
|
|
5457
|
-
removeDataItem:
|
|
5457
|
+
removeDataItem: S,
|
|
5458
5458
|
removeDataItemById: P,
|
|
5459
5459
|
editDataItem: Tt,
|
|
5460
5460
|
acceptDataItem: V,
|
|
@@ -5499,14 +5499,14 @@ const po = /* @__PURE__ */ tt({
|
|
|
5499
5499
|
dataView: k,
|
|
5500
5500
|
useFilterComposition: B,
|
|
5501
5501
|
useFitColumnComposition: Re,
|
|
5502
|
-
useSortComposition:
|
|
5502
|
+
useSortComposition: U,
|
|
5503
5503
|
useVirtualScrollComposition: de
|
|
5504
5504
|
}), () => g("div", {
|
|
5505
5505
|
ref: u,
|
|
5506
5506
|
class: ge.value,
|
|
5507
5507
|
style: $.value,
|
|
5508
5508
|
onWheel: Ge
|
|
5509
|
-
}, [r.value && e.enableFilter && Ct(), r.value && wt(), r.value && ce.value &&
|
|
5509
|
+
}, [r.value && e.enableFilter && Ct(), r.value && wt(), r.value && ce.value && w(), g("div", {
|
|
5510
5510
|
ref: r,
|
|
5511
5511
|
class: he.value,
|
|
5512
5512
|
style: Ve.value,
|
|
@@ -5593,9 +5593,9 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5593
5593
|
props: vo,
|
|
5594
5594
|
emits: ["submitModal", "update:modelValue"],
|
|
5595
5595
|
setup(e, t) {
|
|
5596
|
-
const n = '<i class="f-icon f-icon-lookup"></i>', o =
|
|
5596
|
+
const n = '<i class="f-icon f-icon-lookup"></i>', o = h(), a = h(e.modelValue || {}), l = h([]), i = h(e.fromData.dataSource || []), u = h([]), r = e.fromData.repositoryToken ? Rt(e.fromData.repositoryToken) : null, s = e.toData.repositoryToken ? Rt(e.toData.repositoryToken) : null, p = Rt(uo), d = (j) => ((j.raw.$type !== "SimpleField" || j.raw.selectable === !1) && (j.disabled = !0), j), m = R(() => Yt(i.value)), f = R(() => Yt(u.value)), c = (j, C, I, U) => {
|
|
5597
5597
|
var le, fe;
|
|
5598
|
-
const N = ((le = j.value.find((Z) => Z[
|
|
5598
|
+
const N = ((le = j.value.find((Z) => Z[U] === C)) == null ? void 0 : le[I || "name"]) || "", ee = ((fe = j.value.find((Z) => Z[U] === C)) == null ? void 0 : fe[U || "code"]) || "";
|
|
5599
5599
|
return N && ee ? `${N}[${ee}]` : "";
|
|
5600
5600
|
}, v = [{
|
|
5601
5601
|
field: "sourceField",
|
|
@@ -5634,7 +5634,7 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5634
5634
|
customRowStatus: d,
|
|
5635
5635
|
displayFormatter: e.toData.displayFormatter
|
|
5636
5636
|
},
|
|
5637
|
-
formatter: (j, C) => C.raw.targetField ? (C.raw.targetField.indexOf(",") > -1 ? C.raw.targetField.split(",") : [C.raw.targetField]).map((
|
|
5637
|
+
formatter: (j, C) => C.raw.targetField ? (C.raw.targetField.indexOf(",") > -1 ? C.raw.targetField.split(",") : [C.raw.targetField]).map((U) => c(f, U, e.toData.textField, e.toData.valueField)).join(",") : ""
|
|
5638
5638
|
}];
|
|
5639
5639
|
function B() {
|
|
5640
5640
|
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
@@ -5647,7 +5647,7 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5647
5647
|
targetField: j[C]
|
|
5648
5648
|
}));
|
|
5649
5649
|
}
|
|
5650
|
-
const O =
|
|
5650
|
+
const O = h(E()), L = R(() => {
|
|
5651
5651
|
var j;
|
|
5652
5652
|
return `共 ${((j = O.value) == null ? void 0 : j.length) || 0} 项`;
|
|
5653
5653
|
});
|
|
@@ -5662,7 +5662,6 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5662
5662
|
};
|
|
5663
5663
|
}
|
|
5664
5664
|
function b() {
|
|
5665
|
-
var N;
|
|
5666
5665
|
if (!l.value.length) {
|
|
5667
5666
|
p.warning("请选择要删除的映射字段!");
|
|
5668
5667
|
return;
|
|
@@ -5674,10 +5673,10 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5674
5673
|
const C = l.value[0].id;
|
|
5675
5674
|
if (o.value.removeDataItemById(C), l.value = [], !O.value.length)
|
|
5676
5675
|
return;
|
|
5677
|
-
const I = Math.min(j, O.value.length - 1),
|
|
5678
|
-
|
|
5676
|
+
const I = Math.min(j, O.value.length - 1), U = O.value[I], N = U == null ? void 0 : U.id;
|
|
5677
|
+
N && (o.value.selectItemById(N), l.value = [U]);
|
|
5679
5678
|
}
|
|
5680
|
-
function
|
|
5679
|
+
function x() {
|
|
5681
5680
|
Ft.question("确定要清空所有映射字段吗?", "", () => {
|
|
5682
5681
|
l.value = [], a.value = {}, O.value = [], o.value.updateDataSource(O.value);
|
|
5683
5682
|
}, () => {
|
|
@@ -5725,7 +5724,7 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5725
5724
|
(j.target.name === "cancel" || C === "icon" || C === "esc") && (a.value = e.modelValue, O.value = E(), l.value = []);
|
|
5726
5725
|
}
|
|
5727
5726
|
};
|
|
5728
|
-
function
|
|
5727
|
+
function y(j) {
|
|
5729
5728
|
l.value = j;
|
|
5730
5729
|
}
|
|
5731
5730
|
function G() {
|
|
@@ -5743,8 +5742,8 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5743
5742
|
}), !1;
|
|
5744
5743
|
const C = [], I = r ? r.getData(e.editorParams) : Promise.resolve(i.value);
|
|
5745
5744
|
C.push(I), typeof e.toData.dataSource == "function" ? u.value = e.toData.dataSource() : u.value = e.toData.dataSource;
|
|
5746
|
-
const
|
|
5747
|
-
return C.push(
|
|
5745
|
+
const U = s ? s.getData(e.editorParams) : Promise.resolve(u.value);
|
|
5746
|
+
return C.push(U), Promise.all(C).then(([le, fe]) => (i.value = le, u.value = fe, v[0].editor.data = le, v[1].editor.data = fe, !0));
|
|
5748
5747
|
}
|
|
5749
5748
|
function W(j, C) {
|
|
5750
5749
|
j.forEach((I) => {
|
|
@@ -5756,10 +5755,10 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5756
5755
|
column: C,
|
|
5757
5756
|
rawData: I
|
|
5758
5757
|
} = j, {
|
|
5759
|
-
field:
|
|
5758
|
+
field: U,
|
|
5760
5759
|
editor: N
|
|
5761
5760
|
} = C;
|
|
5762
|
-
if (
|
|
5761
|
+
if (U === "sourceField" && N) {
|
|
5763
5762
|
const ee = O.value.filter((le) => le.sourceField !== I.sourceField).map((le) => le.sourceField);
|
|
5764
5763
|
W(i.value, ee), N.data = Nt(i.value);
|
|
5765
5764
|
}
|
|
@@ -5793,7 +5792,7 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5793
5792
|
}, [ht("删除")]), g("button", {
|
|
5794
5793
|
class: "btn btn-secondary ml-3",
|
|
5795
5794
|
disabled: !_.value,
|
|
5796
|
-
onClick:
|
|
5795
|
+
onClick: x
|
|
5797
5796
|
}, [ht("清空")])]), g("div", {
|
|
5798
5797
|
class: " f-utils-fill p-2"
|
|
5799
5798
|
}, [g(po, {
|
|
@@ -5817,7 +5816,7 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5817
5816
|
columns: v,
|
|
5818
5817
|
data: O.value,
|
|
5819
5818
|
newDataItem: T,
|
|
5820
|
-
|
|
5819
|
+
onSelectionChange: y,
|
|
5821
5820
|
beforeEditCell: $
|
|
5822
5821
|
}, null)])])]
|
|
5823
5822
|
});
|