@farris/ui-vue 1.6.5-beta.1 → 1.6.5-beta.2
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/accordion/index.esm.js +190 -187
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/package.json +1 -1
- package/components/binding-selector/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.esm.js +745 -753
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/checkbox-group/package.json +1 -1
- package/components/code-editor/package.json +1 -1
- package/components/collection-property-editor/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/package.json +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/event-parameter/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/index.esm.js +1279 -1287
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/fieldset/package.json +1 -1
- package/components/filter-bar/index.esm.js +703 -711
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/filter-condition-editor/index.esm.js +1140 -1148
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/package.json +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/html-template/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/package.json +1 -1
- package/components/json-editor/package.json +1 -1
- package/components/language-textbox/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.esm.js +967 -975
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/menu-lookup/package.json +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/number-range/package.json +1 -1
- package/components/number-spinner/package.json +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/query-solution/index.esm.js +1193 -1201
- package/components/query-solution/index.umd.cjs +4 -4
- package/components/query-solution/package.json +1 -1
- package/components/radio/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.esm.js +1095 -1103
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/sort-condition-editor/index.esm.js +1185 -1193
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/sort-condition-editor/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.esm.js +895 -903
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/designer/data-grid/index.esm.js +1447 -1455
- package/designer/data-grid/index.umd.cjs +4 -4
- package/designer/farris-designer.all.esm.js +1789 -1797
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/radio-group/index.esm.js +1032 -1040
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +2242 -2246
- package/farris.all.umd.cjs +15 -15
- package/package.json +1 -1
- package/types/components.d.ts +4 -3
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
|
@@ -600,132 +600,132 @@ class ft {
|
|
|
600
600
|
function ca(e, t) {
|
|
601
601
|
const n = h(), o = h(), a = h(), i = h(), l = 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);
|
|
602
602
|
function M() {
|
|
603
|
-
const
|
|
604
|
-
if (!
|
|
603
|
+
const T = o.value || document.body, O = window.getComputedStyle(T);
|
|
604
|
+
if (!O || !n.value)
|
|
605
605
|
return;
|
|
606
|
-
const
|
|
606
|
+
const U = we.getTransformInfo(n.value), N = {};
|
|
607
607
|
r.value && (N.deltaL = n.value.offsetLeft - r.value.x, N.deltaT = n.value.offsetTop - r.value.y);
|
|
608
|
-
const
|
|
609
|
-
N.width =
|
|
608
|
+
const K = O.getPropertyValue("position");
|
|
609
|
+
N.width = T.clientWidth, N.height = T.clientHeight, N.pr = parseInt(O.getPropertyValue("padding-right"), 10), N.pb = parseInt(O.getPropertyValue("padding-bottom"), 10), N.position = O.getPropertyValue("position"), K === "static" && (T.style.position = "relative"), N.translateX = U.x, N.translateY = U.y, d.value = N;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function I(T) {
|
|
612
612
|
if (n.value) {
|
|
613
613
|
i.value = ft.getCurrent(n.value), l.value = we.getCurrent(n.value), u.value = i.value ? ft.copy(i.value) : null, r.value = l.value ? we.copy(l.value) : null, M();
|
|
614
|
-
const
|
|
614
|
+
const O = T.target.getAttribute("type") || "";
|
|
615
615
|
s.value = {
|
|
616
|
-
n: !!
|
|
617
|
-
s: !!
|
|
618
|
-
w: !!
|
|
619
|
-
e: !!
|
|
616
|
+
n: !!O.match(/n/),
|
|
617
|
+
s: !!O.match(/s/),
|
|
618
|
+
w: !!O.match(/w/),
|
|
619
|
+
e: !!O.match(/e/)
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
var
|
|
623
|
+
function z() {
|
|
624
|
+
var T, O, U, N;
|
|
625
625
|
if (n.value) {
|
|
626
|
-
const
|
|
627
|
-
s.value && ((s.value.n || s.value.s) && ((
|
|
626
|
+
const K = n.value;
|
|
627
|
+
s.value && ((s.value.n || s.value.s) && ((T = u.value) != null && T.height) && (K.style.height = u.value.height + "px"), (s.value.w || s.value.e) && ((O = u.value) != null && O.width) && (K.style.width = u.value.width + "px"), r.value && ((U = r.value) != null && U.x && (K.style.left = r.value.x + "px"), (N = r.value) != null && N.y && (K.style.top = r.value.y + "px")));
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
function k() {
|
|
631
|
-
const
|
|
632
|
-
u.value && r.value && s.value && i.value && (u.value.height <
|
|
631
|
+
const T = e.minHeight ? e.minHeight : 1, O = e.minWidth ? e.minWidth : 1;
|
|
632
|
+
u.value && r.value && s.value && i.value && (u.value.height < T && (u.value.height = T, s.value.n && l.value && (r.value.y = l.value.y + (i.value.height - T))), u.value.width < O && (u.value.width = O, s.value.w && l.value && (r.value.x = l.value.x + (i.value.width - O))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, l.value && s.value.n && (r.value.y = l.value.y + (i.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, s.value.w && l.value && (r.value.x = l.value.x + (i.value.width - e.maxWidth))));
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function S() {
|
|
635
635
|
if (o.value) {
|
|
636
|
-
const
|
|
636
|
+
const T = d.value;
|
|
637
637
|
if (r.value && u.value && s.value && i.value) {
|
|
638
|
-
const
|
|
639
|
-
s.value.n && r.value.y +
|
|
638
|
+
const O = T.width - T.pr - T.deltaL - T.translateX - r.value.x, U = T.height - T.pb - T.deltaT - T.translateY - r.value.y;
|
|
639
|
+
s.value.n && r.value.y + T.translateY < 0 && l.value && (r.value.y = -T.translateY, u.value.height = i.value.height + l.value.y + T.translateY), s.value.w && r.value.x + T.translateX < 0 && l.value && (r.value.x = -T.translateX, u.value.width = i.value.width + l.value.x + T.translateX), u.value.width > O && (u.value.width = O), u.value.height > U && (u.value.height = U);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function y(T) {
|
|
644
644
|
if (!a.value || !i.value || !l.value || !s.value)
|
|
645
645
|
return;
|
|
646
|
-
|
|
647
|
-
const
|
|
648
|
-
s.value.n ? (r.value.y = l.value.y +
|
|
646
|
+
T.subtract(a.value);
|
|
647
|
+
const O = T.x, U = T.y;
|
|
648
|
+
s.value.n ? (r.value.y = l.value.y + U, u.value.height = i.value.height - U) : s.value.s && (u.value.height = i.value.height + U), s.value.e ? u.value.width = i.value.width + O : s.value.w && (u.value.width = i.value.width - O, r.value.x = l.value.x + O), S(), k(), z();
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function x(T) {
|
|
651
651
|
if (!p.value)
|
|
652
652
|
return;
|
|
653
|
-
const
|
|
654
|
-
|
|
653
|
+
const O = we.fromEvent(T);
|
|
654
|
+
O && y(O);
|
|
655
655
|
}
|
|
656
656
|
function F() {
|
|
657
657
|
if (n.value) {
|
|
658
658
|
const {
|
|
659
|
-
width:
|
|
660
|
-
height:
|
|
661
|
-
x:
|
|
659
|
+
width: T,
|
|
660
|
+
height: O,
|
|
661
|
+
x: U,
|
|
662
662
|
y: N
|
|
663
|
-
} = n.value.getBoundingClientRect(),
|
|
663
|
+
} = n.value.getBoundingClientRect(), K = we.getTransformInfo(n.value);
|
|
664
664
|
return {
|
|
665
665
|
size: {
|
|
666
|
-
width:
|
|
667
|
-
height:
|
|
666
|
+
width: T,
|
|
667
|
+
height: O
|
|
668
668
|
},
|
|
669
669
|
position: {
|
|
670
|
-
x:
|
|
671
|
-
y: N -
|
|
670
|
+
x: U - K.x,
|
|
671
|
+
y: N - K.y
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
return null;
|
|
676
676
|
}
|
|
677
|
-
function D(
|
|
677
|
+
function D(T) {
|
|
678
678
|
if (n.value) {
|
|
679
|
-
const
|
|
680
|
-
m.value =
|
|
679
|
+
const O = F();
|
|
680
|
+
m.value = O;
|
|
681
681
|
}
|
|
682
|
-
a.value = void 0, i.value = null, l.value = null, u.value = null, r.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove",
|
|
682
|
+
a.value = void 0, i.value = null, l.value = null, u.value = null, r.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", D);
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
document.addEventListener("mousemove",
|
|
684
|
+
function _() {
|
|
685
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", D);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
|
|
687
|
+
function b(T) {
|
|
688
|
+
T instanceof MouseEvent && T.button === 2 || v.value && (document.body.click(), T.stopPropagation(), T.preventDefault(), a.value = we.fromEvent(T), p.value = T.target, I(T), _());
|
|
689
689
|
}
|
|
690
|
-
function G(
|
|
691
|
-
return n.value =
|
|
690
|
+
function G(T) {
|
|
691
|
+
return n.value = T, f.value && g(it, null, [g("div", {
|
|
692
692
|
class: "fv-resizable-handle fv-resizable-n",
|
|
693
693
|
type: "n",
|
|
694
|
-
onMousedown: (
|
|
694
|
+
onMousedown: (O) => b(O)
|
|
695
695
|
}, null), g("div", {
|
|
696
696
|
class: "fv-resizable-handle fv-resizable-e",
|
|
697
697
|
type: "e",
|
|
698
|
-
onMousedown: (
|
|
698
|
+
onMousedown: (O) => b(O)
|
|
699
699
|
}, null), g("div", {
|
|
700
700
|
class: "fv-resizable-handle fv-resizable-s",
|
|
701
701
|
type: "s",
|
|
702
|
-
onMousedown: (
|
|
702
|
+
onMousedown: (O) => b(O)
|
|
703
703
|
}, null), g("div", {
|
|
704
704
|
class: "fv-resizable-handle fv-resizable-w",
|
|
705
705
|
type: "w",
|
|
706
|
-
onMousedown: (
|
|
706
|
+
onMousedown: (O) => b(O)
|
|
707
707
|
}, null), g("div", {
|
|
708
708
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
709
709
|
type: "ne",
|
|
710
|
-
onMousedown: (
|
|
710
|
+
onMousedown: (O) => b(O)
|
|
711
711
|
}, null), g("div", {
|
|
712
712
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
713
713
|
type: "se",
|
|
714
|
-
onMousedown: (
|
|
714
|
+
onMousedown: (O) => b(O)
|
|
715
715
|
}, null), g("div", {
|
|
716
716
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
717
717
|
type: "sw",
|
|
718
|
-
onMousedown: (
|
|
718
|
+
onMousedown: (O) => b(O)
|
|
719
719
|
}, null), g("div", {
|
|
720
720
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
721
721
|
type: "nw",
|
|
722
|
-
onMousedown: (
|
|
722
|
+
onMousedown: (O) => b(O)
|
|
723
723
|
}, null)]);
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function j(T = !0) {
|
|
726
726
|
document.body.click();
|
|
727
|
-
const
|
|
728
|
-
|
|
727
|
+
const O = o.value || document.body, U = ft.getCurrent(O), N = n.value;
|
|
728
|
+
T && 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 = {
|
|
729
729
|
size: u.value,
|
|
730
730
|
position: {
|
|
731
731
|
x: 0,
|
|
@@ -733,134 +733,134 @@ function ca(e, t) {
|
|
|
733
733
|
}
|
|
734
734
|
}, v.value = !1, B.value = !0);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
var
|
|
736
|
+
function H() {
|
|
737
|
+
var T, O;
|
|
738
738
|
if (document.body.click(), c.value) {
|
|
739
|
-
const
|
|
739
|
+
const U = {
|
|
740
740
|
width: c.value.size.width || 0,
|
|
741
741
|
height: c.value.size.height || 0
|
|
742
742
|
}, N = {
|
|
743
|
-
x: (window.innerWidth -
|
|
744
|
-
y: (window.innerHeight -
|
|
743
|
+
x: (window.innerWidth - U.width) / 2,
|
|
744
|
+
y: (window.innerHeight - U.height) / 2
|
|
745
745
|
};
|
|
746
|
-
(
|
|
747
|
-
const
|
|
748
|
-
|
|
749
|
-
size:
|
|
746
|
+
(T = u.value) == null || T.set(U), (O = r.value) == null || O.set(N);
|
|
747
|
+
const K = n.value;
|
|
748
|
+
K.style.height = U.height + "px", K.style.width = U.width + "px", K.style.left = `${N.x}px`, K.style.top = `${N.y}px`, K.style.transform = "", m.value = {
|
|
749
|
+
size: U,
|
|
750
750
|
position: N
|
|
751
751
|
}, v.value = e.draggable, B.value = !1;
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function X() {
|
|
755
755
|
if (n.value) {
|
|
756
|
-
const
|
|
757
|
-
if (
|
|
756
|
+
const T = ft.getCurrent(n.value);
|
|
757
|
+
if (T) {
|
|
758
758
|
const {
|
|
759
|
-
width:
|
|
760
|
-
height:
|
|
761
|
-
} =
|
|
762
|
-
n.value.style.left = `${(window.innerWidth -
|
|
759
|
+
width: O,
|
|
760
|
+
height: U
|
|
761
|
+
} = T;
|
|
762
|
+
n.value.style.left = `${(window.innerWidth - O) / 2}px`, n.value.style.top = `${(window.innerHeight - U) / 2}px`, n.value.style.transform = "";
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
const
|
|
768
|
-
B.value ?
|
|
766
|
+
function te() {
|
|
767
|
+
const T = () => {
|
|
768
|
+
B.value ? j(!1) : X(), document.body.click();
|
|
769
769
|
};
|
|
770
|
-
return window.addEventListener("resize",
|
|
771
|
-
window.removeEventListener("resize",
|
|
770
|
+
return window.addEventListener("resize", T), () => {
|
|
771
|
+
window.removeEventListener("resize", T);
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
|
-
const
|
|
774
|
+
const W = te();
|
|
775
775
|
return {
|
|
776
776
|
renderResizeBar: G,
|
|
777
777
|
boundingElement: o,
|
|
778
778
|
resizedEventParam: m,
|
|
779
|
-
maximize:
|
|
780
|
-
restore:
|
|
779
|
+
maximize: j,
|
|
780
|
+
restore: H,
|
|
781
781
|
allowDrag: v,
|
|
782
782
|
isMaximized: B,
|
|
783
|
-
unWindowResizeHandle:
|
|
784
|
-
moveToCenter:
|
|
783
|
+
unWindowResizeHandle: W,
|
|
784
|
+
moveToCenter: X
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
787
|
function da(e, t, n) {
|
|
788
788
|
const o = h(), a = h(e.draggable), i = h(e.lockAxis), l = 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));
|
|
789
|
-
ve(() => n.value, (
|
|
790
|
-
l.value.style.cursor =
|
|
789
|
+
ve(() => n.value, (x) => {
|
|
790
|
+
l.value.style.cursor = x ? "move" : "default";
|
|
791
791
|
});
|
|
792
|
-
function f(
|
|
792
|
+
function f(x, F) {
|
|
793
793
|
if (F.tagName === "BUTTON")
|
|
794
794
|
return !1;
|
|
795
|
-
if (F ===
|
|
795
|
+
if (F === x)
|
|
796
796
|
return !0;
|
|
797
797
|
for (const D in F.children)
|
|
798
|
-
if (Object.prototype.hasOwnProperty.call(F.children, D) && f(
|
|
798
|
+
if (Object.prototype.hasOwnProperty.call(F.children, D) && f(x, F.children[D]))
|
|
799
799
|
return !0;
|
|
800
800
|
return !1;
|
|
801
801
|
}
|
|
802
802
|
function c() {
|
|
803
|
-
var
|
|
804
|
-
let
|
|
805
|
-
i.value === "x" ? (
|
|
806
|
-
const D = `translate3d(${Math.round(
|
|
807
|
-
o.value && (o.value.style.transform = D), m.value.x =
|
|
803
|
+
var _, b;
|
|
804
|
+
let x = d.value.x + p.value.x, F = d.value.y + p.value.y;
|
|
805
|
+
i.value === "x" ? (x = ((_ = s.value) == null ? void 0 : _.x) || 0, d.value.x = 0) : i.value === "y" && (F = ((b = s.value) == null ? void 0 : b.y) || 0, d.value.y = 0);
|
|
806
|
+
const D = `translate3d(${Math.round(x)}px, ${Math.round(F)}px, 0px)`;
|
|
807
|
+
o.value && (o.value.style.transform = D), m.value.x = x, m.value.y = F;
|
|
808
808
|
}
|
|
809
809
|
function v() {
|
|
810
810
|
if (!u.value || !o.value)
|
|
811
811
|
return null;
|
|
812
|
-
const
|
|
813
|
-
top:
|
|
814
|
-
right:
|
|
815
|
-
bottom:
|
|
816
|
-
left:
|
|
812
|
+
const x = u.value.getBoundingClientRect(), F = o.value.getBoundingClientRect(), D = {
|
|
813
|
+
top: x.top < F.top,
|
|
814
|
+
right: x.right > F.right,
|
|
815
|
+
bottom: x.bottom > F.bottom,
|
|
816
|
+
left: x.left < F.left
|
|
817
817
|
};
|
|
818
|
-
return D.top || (d.value.y -= F.top -
|
|
818
|
+
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;
|
|
819
819
|
}
|
|
820
|
-
function B(
|
|
821
|
-
|
|
820
|
+
function B(x) {
|
|
821
|
+
x && (s.value && x.subtract(s.value), d.value.set(x), c(), v());
|
|
822
822
|
}
|
|
823
|
-
function M(
|
|
824
|
-
r.value && a.value && (
|
|
823
|
+
function M(x) {
|
|
824
|
+
r.value && a.value && (x.stopPropagation(), x.preventDefault(), B(we.fromEvent(x, l.value)));
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
var
|
|
828
|
-
r.value && (r.value = !1, p.value.add(d.value), d.value.reset(), (
|
|
826
|
+
function I() {
|
|
827
|
+
var x;
|
|
828
|
+
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", M), document.removeEventListener("mouseup", I));
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
!r.value && l.value && (r.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", M), document.addEventListener("mouseup",
|
|
830
|
+
function z() {
|
|
831
|
+
!r.value && l.value && (r.value = !0, l.value.classList.add("ng-dragging"), document.addEventListener("mousemove", M), document.addEventListener("mouseup", I));
|
|
832
832
|
}
|
|
833
833
|
function k() {
|
|
834
834
|
if (o.value) {
|
|
835
|
-
const
|
|
836
|
-
p.value.set(
|
|
835
|
+
const x = we.getTransformInfo(o.value);
|
|
836
|
+
p.value.set(x);
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
839
|
p.value.reset();
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
if (!n.value ||
|
|
841
|
+
function S(x) {
|
|
842
|
+
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
843
843
|
return;
|
|
844
|
-
const F =
|
|
845
|
-
l.value !== void 0 && F && !f(F, l.value) || a.value !== !1 && (document.body.click(),
|
|
844
|
+
const F = x.target || x.srcElement;
|
|
845
|
+
l.value !== void 0 && F && !f(F, l.value) || a.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), s.value = we.fromEvent(x, o.value), k(), z());
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function y(x, F, D) {
|
|
848
848
|
if (a.value && F) {
|
|
849
|
-
if (
|
|
850
|
-
l.value =
|
|
849
|
+
if (x)
|
|
850
|
+
l.value = x;
|
|
851
851
|
else if (e.dragHandle) {
|
|
852
852
|
if (e.dragHandle instanceof HTMLElement)
|
|
853
853
|
l.value = e.dragHandle;
|
|
854
854
|
else if (typeof e.dragHandle == "string") {
|
|
855
|
-
const
|
|
856
|
-
|
|
855
|
+
const _ = F.querySelector(e.dragHandle);
|
|
856
|
+
_ && (l.value = _);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
o.value = F, u.value = D, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown",
|
|
859
|
+
o.value = F, u.value = D, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", S)) : a.value = !1;
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
return {
|
|
863
|
-
registerDraggle:
|
|
863
|
+
registerDraggle: y,
|
|
864
864
|
resetTranslate: k
|
|
865
865
|
};
|
|
866
866
|
}
|
|
@@ -897,12 +897,12 @@ const pt = /* @__PURE__ */ tt({
|
|
|
897
897
|
props: Un,
|
|
898
898
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
899
899
|
setup(e, t) {
|
|
900
|
-
const n = h(e.width || 300), o = h(e.height || 200), a = h(e.modelValue), i = h(""), l = 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), M = h(e.title),
|
|
900
|
+
const n = h(e.width || 300), o = h(e.height || 200), a = h(e.modelValue), i = h(""), l = 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), M = h(e.title), I = h(e.containment || null), z = h(), {
|
|
901
901
|
t: k
|
|
902
902
|
} = Qt();
|
|
903
903
|
M.value === "错误提示" && (M.value = k("messageBox.errorTitle"));
|
|
904
|
-
const
|
|
905
|
-
function
|
|
904
|
+
const S = h(!1);
|
|
905
|
+
function y(E, ne) {
|
|
906
906
|
const me = ne ? "accept" : "cancel";
|
|
907
907
|
Promise.resolve().then(() => {
|
|
908
908
|
var ge;
|
|
@@ -913,55 +913,55 @@ const pt = /* @__PURE__ */ tt({
|
|
|
913
913
|
ge && (a.value = !1, t.emit("update:modelValue", !1), ne != null && t.emit(ne ? "accept" : "cancel"), t.emit("closed", E));
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
|
-
const
|
|
916
|
+
const x = [{
|
|
917
917
|
name: "cancel",
|
|
918
918
|
text: k("messageBox.cancel") || "取消",
|
|
919
919
|
class: "btn btn-secondary",
|
|
920
920
|
handle: (E) => {
|
|
921
|
-
|
|
921
|
+
y(E, !1);
|
|
922
922
|
}
|
|
923
923
|
}, {
|
|
924
924
|
name: "accept",
|
|
925
925
|
text: k("messageBox.ok") || "确定",
|
|
926
926
|
class: "btn btn-primary",
|
|
927
927
|
handle: (E) => {
|
|
928
|
-
|
|
928
|
+
y(E, !0);
|
|
929
929
|
}
|
|
930
|
-
}], F = h(e.buttons && e.buttons.length ? e.buttons :
|
|
931
|
-
renderResizeBar:
|
|
932
|
-
maximize:
|
|
933
|
-
restore:
|
|
934
|
-
boundingElement:
|
|
935
|
-
resizedEventParam:
|
|
936
|
-
allowDrag:
|
|
937
|
-
unWindowResizeHandle:
|
|
930
|
+
}], F = h(e.buttons && e.buttons.length ? e.buttons : x), D = R(() => !!s.value), _ = R(() => !!B.value && !!F.value), b = h(), G = h(), j = h(!1), {
|
|
931
|
+
renderResizeBar: H,
|
|
932
|
+
maximize: X,
|
|
933
|
+
restore: te,
|
|
934
|
+
boundingElement: W,
|
|
935
|
+
resizedEventParam: T,
|
|
936
|
+
allowDrag: O,
|
|
937
|
+
unWindowResizeHandle: U,
|
|
938
938
|
moveToCenter: N
|
|
939
939
|
} = ca(e), {
|
|
940
|
-
registerDraggle:
|
|
941
|
-
} = da(e, t,
|
|
940
|
+
registerDraggle: K
|
|
941
|
+
} = da(e, t, O);
|
|
942
942
|
function ie() {
|
|
943
943
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
944
944
|
}
|
|
945
945
|
function fe() {
|
|
946
946
|
const E = document.querySelectorAll(".farris-modal").length;
|
|
947
|
-
(!E || E - 1 <= 0) && document.body.classList.remove("modal-open"),
|
|
947
|
+
(!E || E - 1 <= 0) && document.body.classList.remove("modal-open"), z.value && z.value.classList.remove("show");
|
|
948
948
|
}
|
|
949
949
|
ve(() => e.title, (E, ne) => {
|
|
950
950
|
E !== ne && (M.value = E);
|
|
951
951
|
}), ve(() => e.modelValue, (E, ne) => {
|
|
952
952
|
E !== ne && (a.value = E, a.value && e.draggable && mt(() => {
|
|
953
|
-
G.value && !
|
|
954
|
-
}), E || (
|
|
953
|
+
G.value && !I.value && (I.value = G.value.parentElement, W.value = I.value, K(b.value, G.value, W.value), N());
|
|
954
|
+
}), E || (I.value && (I.value = null), fe())), a.value ? S.value = ie() : (j.value = !1, O.value = e.draggable);
|
|
955
955
|
}), ve(() => e.showHeader, (E, ne) => {
|
|
956
956
|
E !== ne && (r.value = E);
|
|
957
957
|
}), ve(() => e.showButtons, (E, ne) => {
|
|
958
958
|
E !== ne && (B.value = E);
|
|
959
|
-
}), ve(() =>
|
|
959
|
+
}), ve(() => T.value, (E, ne) => {
|
|
960
960
|
const me = E || {}, ge = ne || {};
|
|
961
961
|
JSON.stringify(me) !== JSON.stringify(ge) && t.emit("resize", {
|
|
962
962
|
newSize: E,
|
|
963
963
|
oldSize: ne,
|
|
964
|
-
isMaximized:
|
|
964
|
+
isMaximized: j.value
|
|
965
965
|
});
|
|
966
966
|
});
|
|
967
967
|
const Q = R(() => (a.value && document.body.classList.add("modal-open"), a.value)), ae = R(() => {
|
|
@@ -993,7 +993,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
993
993
|
const E = {
|
|
994
994
|
display: "block"
|
|
995
995
|
};
|
|
996
|
-
return e.mask || (E.pointerEvents = "none", E.backgroundColor = "transparent"),
|
|
996
|
+
return e.mask || (E.pointerEvents = "none", E.backgroundColor = "transparent"), S.value && (E.backgroundColor = "transparent"), E;
|
|
997
997
|
}), se = R(() => ({
|
|
998
998
|
"modal-content": !0,
|
|
999
999
|
"modal-content-has-header": r.value
|
|
@@ -1001,11 +1001,11 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1001
1001
|
const E = {
|
|
1002
1002
|
display: r.value ? "" : "none"
|
|
1003
1003
|
};
|
|
1004
|
-
return E["pointer-events"] =
|
|
1004
|
+
return E["pointer-events"] = O.value ? "auto" : "none", E;
|
|
1005
1005
|
}), Ee = R(() => ({
|
|
1006
1006
|
"f-icon": !0,
|
|
1007
1007
|
modal_maximize: !0,
|
|
1008
|
-
modalrevert:
|
|
1008
|
+
modalrevert: j.value
|
|
1009
1009
|
})), Ie = R(() => ({
|
|
1010
1010
|
"modal-body": !0,
|
|
1011
1011
|
"f-utils-flex-column": f.value === "iframe",
|
|
@@ -1023,11 +1023,11 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1023
1023
|
return Object.assign(E, ne);
|
|
1024
1024
|
});
|
|
1025
1025
|
function Ne(E) {
|
|
1026
|
-
if (E == null || E.stopPropagation(),
|
|
1027
|
-
|
|
1026
|
+
if (E == null || E.stopPropagation(), j.value) {
|
|
1027
|
+
j.value = !1, te();
|
|
1028
1028
|
return;
|
|
1029
1029
|
}
|
|
1030
|
-
|
|
1030
|
+
X(), j.value = !0;
|
|
1031
1031
|
}
|
|
1032
1032
|
async function he(E, ne) {
|
|
1033
1033
|
E.handle && await E.handle(ne, E) && t.emit("closed", ne);
|
|
@@ -1037,17 +1037,17 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1037
1037
|
}
|
|
1038
1038
|
let ce = null, ze = null;
|
|
1039
1039
|
ho(() => {
|
|
1040
|
-
|
|
1040
|
+
S.value = ie();
|
|
1041
1041
|
}), vt(() => {
|
|
1042
|
-
G.value && !
|
|
1042
|
+
G.value && !I.value && (I.value = G.value.parentElement, W.value = I.value, K(b.value, G.value, W.value)), Q.value && document.body.classList.add("modal-open"), ce = fa(e, t), ze = ma(e, t);
|
|
1043
1043
|
}), bt(() => {
|
|
1044
|
-
|
|
1044
|
+
U && U(), ce && ce.remove(), ze && ze.remove();
|
|
1045
1045
|
}), t.expose({
|
|
1046
1046
|
modalElementRef: G,
|
|
1047
1047
|
updateModalOptions: Ke,
|
|
1048
|
-
close:
|
|
1048
|
+
close: y,
|
|
1049
1049
|
maxDialog: Ne,
|
|
1050
|
-
isMaximized:
|
|
1050
|
+
isMaximized: j
|
|
1051
1051
|
});
|
|
1052
1052
|
function He() {
|
|
1053
1053
|
return g("ul", null, [m.value && g("li", {
|
|
@@ -1062,7 +1062,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1062
1062
|
class: Ee.value
|
|
1063
1063
|
}, null)]), p.value && g("li", {
|
|
1064
1064
|
class: "f-btn-icon f-bare",
|
|
1065
|
-
onClick: (E) =>
|
|
1065
|
+
onClick: (E) => y(E, !1),
|
|
1066
1066
|
style: "pointer-events: auto;"
|
|
1067
1067
|
}, [g("span", {
|
|
1068
1068
|
class: "f-icon modal_close"
|
|
@@ -1089,7 +1089,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1089
1089
|
}
|
|
1090
1090
|
function Ae() {
|
|
1091
1091
|
return g("div", {
|
|
1092
|
-
ref:
|
|
1092
|
+
ref: b,
|
|
1093
1093
|
class: "modal-header",
|
|
1094
1094
|
style: je.value
|
|
1095
1095
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : g("div", {
|
|
@@ -1104,13 +1104,13 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1104
1104
|
}, [He()])]);
|
|
1105
1105
|
}
|
|
1106
1106
|
function Fe() {
|
|
1107
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
1107
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : _.value && $e();
|
|
1108
1108
|
}
|
|
1109
1109
|
function Ve(E) {
|
|
1110
1110
|
if (E.stopPropagation(), e.allowClickMaskToClose) {
|
|
1111
|
-
if (E.target !==
|
|
1111
|
+
if (E.target !== z.value)
|
|
1112
1112
|
return;
|
|
1113
|
-
|
|
1113
|
+
y(E, !1);
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
1116
|
function De() {
|
|
@@ -1130,7 +1130,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1130
1130
|
width: "100%",
|
|
1131
1131
|
frameborder: "0",
|
|
1132
1132
|
src: c.value
|
|
1133
|
-
}, null)]), Fe()]), !u.value && G.value && !
|
|
1133
|
+
}, null)]), Fe()]), !u.value && G.value && !j.value && H(G.value)]);
|
|
1134
1134
|
}
|
|
1135
1135
|
function Ge(E) {
|
|
1136
1136
|
return E || "body";
|
|
@@ -1143,7 +1143,7 @@ const pt = /* @__PURE__ */ tt({
|
|
|
1143
1143
|
appear: !0
|
|
1144
1144
|
}, {
|
|
1145
1145
|
default: () => [g("div", {
|
|
1146
|
-
ref:
|
|
1146
|
+
ref: z,
|
|
1147
1147
|
class: ae.value,
|
|
1148
1148
|
style: q.value,
|
|
1149
1149
|
onClick: Ve
|
|
@@ -1168,11 +1168,11 @@ function pa(e) {
|
|
|
1168
1168
|
});
|
|
1169
1169
|
const i = h(), l = 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 || (() => {
|
|
1170
1170
|
}), f = e.rejectCallback || (() => {
|
|
1171
|
-
}), c = e.closedCallback || ((
|
|
1172
|
-
}), v = e.resizeHandle || ((
|
|
1173
|
-
}), B = e.stopMoveHandle || ((
|
|
1174
|
-
}), M = Yn(e),
|
|
1175
|
-
p.value = !1, n.unmount(), c(
|
|
1171
|
+
}), c = e.closedCallback || ((z) => {
|
|
1172
|
+
}), v = e.resizeHandle || ((z) => {
|
|
1173
|
+
}), B = e.stopMoveHandle || ((z) => {
|
|
1174
|
+
}), M = Yn(e), I = (z) => {
|
|
1175
|
+
p.value = !1, n.unmount(), c(z);
|
|
1176
1176
|
};
|
|
1177
1177
|
return vt(() => {
|
|
1178
1178
|
}), a.expose({
|
|
@@ -1181,7 +1181,7 @@ function pa(e) {
|
|
|
1181
1181
|
ref: i,
|
|
1182
1182
|
class: l.value,
|
|
1183
1183
|
modelValue: p.value,
|
|
1184
|
-
"onUpdate:modelValue": (
|
|
1184
|
+
"onUpdate:modelValue": (z) => p.value = z,
|
|
1185
1185
|
title: d.value,
|
|
1186
1186
|
width: e.width,
|
|
1187
1187
|
height: e.height,
|
|
@@ -1193,7 +1193,7 @@ function pa(e) {
|
|
|
1193
1193
|
onAccept: m,
|
|
1194
1194
|
onCancel: f,
|
|
1195
1195
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1196
|
-
onClosed:
|
|
1196
|
+
onClosed: I,
|
|
1197
1197
|
onResize: v,
|
|
1198
1198
|
onStopMove: B
|
|
1199
1199
|
}, {
|
|
@@ -1250,36 +1250,36 @@ class Jn {
|
|
|
1250
1250
|
showHeader: !0
|
|
1251
1251
|
}, t)), a = h(!0), i = o.value.acceptCallback || (() => {
|
|
1252
1252
|
}), l = o.value.rejectCallback || (() => {
|
|
1253
|
-
}), u = o.value.closedCallback || ((
|
|
1254
|
-
}), r = o.value.resizeHandle || ((
|
|
1255
|
-
}), s = t.stopMoveHandle || ((
|
|
1253
|
+
}), u = o.value.closedCallback || ((S, y) => {
|
|
1254
|
+
}), r = o.value.resizeHandle || ((S) => {
|
|
1255
|
+
}), s = t.stopMoveHandle || ((S) => {
|
|
1256
1256
|
});
|
|
1257
1257
|
let p;
|
|
1258
|
-
const d = Yn(o.value), m = (
|
|
1259
|
-
var
|
|
1258
|
+
const d = Yn(o.value), m = (S) => {
|
|
1259
|
+
var x;
|
|
1260
1260
|
a.value = !1;
|
|
1261
|
-
const
|
|
1262
|
-
u(
|
|
1263
|
-
}, f = (
|
|
1264
|
-
m(
|
|
1261
|
+
const y = (x = S == null ? void 0 : S.target) == null ? void 0 : x.classList.contains("modal_close");
|
|
1262
|
+
u(S, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
|
|
1263
|
+
}, f = (S) => {
|
|
1264
|
+
m(S), p && mt(() => {
|
|
1265
1265
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], qt(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1266
|
+
const y = Object.keys(this.modalRefs).map((x) => Number(x));
|
|
1267
|
+
y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
|
|
1268
1268
|
}
|
|
1269
1269
|
this.isUseEscCloseModal.value = !1;
|
|
1270
1270
|
});
|
|
1271
|
-
}, c = (
|
|
1272
|
-
var
|
|
1273
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
1271
|
+
}, c = (S) => {
|
|
1272
|
+
var y;
|
|
1273
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((y = this.activeModalInstance.value) == null || y.close(S == null ? void 0 : S.event));
|
|
1274
1274
|
}, {
|
|
1275
1275
|
width: v,
|
|
1276
1276
|
height: B
|
|
1277
1277
|
} = o.value, M = this.adaptToWindow(v || 500, B || 320);
|
|
1278
1278
|
Object.assign(o.value, M);
|
|
1279
|
-
const
|
|
1279
|
+
const I = () => g(pt, Ht({
|
|
1280
1280
|
ref: this.modalRef,
|
|
1281
1281
|
modelValue: a.value,
|
|
1282
|
-
"onUpdate:modelValue": (
|
|
1282
|
+
"onUpdate:modelValue": (S) => a.value = S
|
|
1283
1283
|
}, o.value, {
|
|
1284
1284
|
onAccept: i,
|
|
1285
1285
|
onCancel: l,
|
|
@@ -1290,17 +1290,17 @@ class Jn {
|
|
|
1290
1290
|
}), {
|
|
1291
1291
|
default: () => [d && d(this.app)]
|
|
1292
1292
|
});
|
|
1293
|
-
return p = ((
|
|
1294
|
-
const
|
|
1295
|
-
return
|
|
1293
|
+
return p = ((S) => {
|
|
1294
|
+
const y = Co(I, S);
|
|
1295
|
+
return y.appContext = this.appContext, qt(y, n), y;
|
|
1296
1296
|
})({
|
|
1297
1297
|
...o.value
|
|
1298
1298
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
1299
1299
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
1300
|
-
update: (
|
|
1300
|
+
update: (S) => {
|
|
1301
1301
|
o.value = {
|
|
1302
1302
|
...o.value,
|
|
1303
|
-
...
|
|
1303
|
+
...S
|
|
1304
1304
|
}, p && qt(wo(p, {
|
|
1305
1305
|
...o
|
|
1306
1306
|
}), n);
|
|
@@ -1360,7 +1360,7 @@ function va(e = {}) {
|
|
|
1360
1360
|
return i(s).reduce((f, c) => f && l(c, p), !0);
|
|
1361
1361
|
}
|
|
1362
1362
|
function r(s, p) {
|
|
1363
|
-
const d = Object.keys(s), m = d.includes("allOf"), f = d.includes("anyOf"), c = m || f, M = (c ? s[c ? m ? "allOf" : "anyOf" : "allOf"] : [s]).map((
|
|
1363
|
+
const d = Object.keys(s), m = d.includes("allOf"), f = d.includes("anyOf"), c = m || f, M = (c ? s[c ? m ? "allOf" : "anyOf" : "allOf"] : [s]).map((z) => u(z, p));
|
|
1364
1364
|
return m ? !M.includes(!1) : M.includes(!0);
|
|
1365
1365
|
}
|
|
1366
1366
|
return { parseValueSchema: r };
|
|
@@ -1377,7 +1377,7 @@ const ga = {
|
|
|
1377
1377
|
e.editor && (e.editor[t] = n);
|
|
1378
1378
|
},
|
|
1379
1379
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
1380
|
-
},
|
|
1380
|
+
}, $ = {
|
|
1381
1381
|
button: { type: "button", name: "按钮" },
|
|
1382
1382
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
1383
1383
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -1428,7 +1428,7 @@ const ga = {
|
|
|
1428
1428
|
convertFrom: (e, t, n) => {
|
|
1429
1429
|
var a;
|
|
1430
1430
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
1431
|
-
return ((a =
|
|
1431
|
+
return ((a = $[o]) == null ? void 0 : a.name) || o;
|
|
1432
1432
|
}
|
|
1433
1433
|
}, Ca = {
|
|
1434
1434
|
convertTo: (e, t, n, o) => {
|
|
@@ -1664,62 +1664,62 @@ function Qn(e, t, n) {
|
|
|
1664
1664
|
const B = c.$converter || v;
|
|
1665
1665
|
return typeof B == "string" && B && o.has(B) ? o.get(B) || null : B || null;
|
|
1666
1666
|
}
|
|
1667
|
-
function p(c, v, B, M,
|
|
1668
|
-
return Object.keys(c).map((
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1671
|
-
const
|
|
1672
|
-
let
|
|
1673
|
-
const
|
|
1667
|
+
function p(c, v, B, M, I, z = "", k = "") {
|
|
1668
|
+
return Object.keys(c).map((y) => {
|
|
1669
|
+
const x = h(1), F = y, D = c[y], _ = Object.keys(D), b = D.title, G = D.type, j = a.get(G) || { type: "input-group", enableClear: !1 }, H = D.editor ? Object.assign({}, j, D.editor) : Object.assign({}, j), X = u(_, D, v), te = r(_, D, v);
|
|
1670
|
+
H.readonly = H.readonly === void 0 ? te() : H.readonly;
|
|
1671
|
+
const W = D.type === "cascade" ? p(D.properties, v, B, M, I, z, k) : [], T = !0;
|
|
1672
|
+
let O = s(D, k);
|
|
1673
|
+
const U = R({
|
|
1674
1674
|
get() {
|
|
1675
|
-
if (
|
|
1676
|
-
if (["class", "style"].find((ye) => ye === F) && !
|
|
1677
|
-
return
|
|
1678
|
-
const ae = B[
|
|
1675
|
+
if (x.value) {
|
|
1676
|
+
if (["class", "style"].find((ye) => ye === F) && !O && (O = o.get("/converter/appearance.converter") || null), O && O.convertFrom)
|
|
1677
|
+
return O.convertFrom(B, y, I, z);
|
|
1678
|
+
const ae = B[y];
|
|
1679
1679
|
return Object.prototype.hasOwnProperty.call(D, "defaultValue") && (ae === void 0 || typeof ae == "string" && ae === "") ? D.type === "boolean" ? D.defaultValue : D.defaultValue || "" : ae;
|
|
1680
1680
|
}
|
|
1681
1681
|
return null;
|
|
1682
1682
|
},
|
|
1683
1683
|
set(ae) {
|
|
1684
|
-
|
|
1684
|
+
x.value += 1, O && O.convertTo ? (O.convertTo(M, y, ae, I, z), O.convertTo(B, y, ae, I, z)) : (M[y] = ae, B[y] = ae);
|
|
1685
1685
|
}
|
|
1686
|
-
}), { refreshPanelAfterChanged: N, description:
|
|
1686
|
+
}), { refreshPanelAfterChanged: N, description: K, isExpand: ie, parentPropertyID: fe } = D, Q = { propertyID: F, propertyName: b, propertyType: G, propertyValue: U, editor: H, visible: X, readonly: te, cascadeConfig: W, hideCascadeTitle: T, refreshPanelAfterChanged: N, description: K, isExpand: ie, parentPropertyID: fe };
|
|
1687
1687
|
return v[F] = Q, Q;
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
1690
1690
|
function d(c, v, B = {}) {
|
|
1691
|
-
const M = {},
|
|
1692
|
-
return
|
|
1693
|
-
const
|
|
1694
|
-
return { categoryId: k, categoryName:
|
|
1691
|
+
const M = {}, I = e[c];
|
|
1692
|
+
return I && I.categories ? Object.keys(I.categories).map((k) => {
|
|
1693
|
+
const S = I.categories[k], y = S == null ? void 0 : S.title, x = p(S.properties || {}, M, {}, B, v);
|
|
1694
|
+
return { categoryId: k, categoryName: y, properties: x };
|
|
1695
1695
|
}) : [];
|
|
1696
1696
|
}
|
|
1697
|
-
function m(c, v, B, M,
|
|
1698
|
-
const
|
|
1697
|
+
function m(c, v, B, M, I = "") {
|
|
1698
|
+
const z = v.$ref.schema, k = v.$ref.converter, S = B[z], y = S.type, x = n(S), F = {}, D = e[y];
|
|
1699
1699
|
if (D && D.categories) {
|
|
1700
|
-
const
|
|
1701
|
-
k && Object.keys(
|
|
1702
|
-
|
|
1700
|
+
const _ = D.categories[c], b = _ == null ? void 0 : _.title;
|
|
1701
|
+
k && Object.keys(_.properties).forEach((H) => {
|
|
1702
|
+
_.properties[H].$converter = k;
|
|
1703
1703
|
});
|
|
1704
|
-
const G = (
|
|
1705
|
-
return { categoryId: c, categoryName:
|
|
1704
|
+
const G = (_ == null ? void 0 : _.properties) || {}, j = p(G, F, x, S, M, I);
|
|
1705
|
+
return { categoryId: c, categoryName: b, properties: j };
|
|
1706
1706
|
}
|
|
1707
1707
|
return { categoryId: c, categoryName: "", properties: [] };
|
|
1708
1708
|
}
|
|
1709
|
-
function f(c, v, B, M,
|
|
1710
|
-
const
|
|
1711
|
-
let
|
|
1712
|
-
if (
|
|
1713
|
-
const
|
|
1714
|
-
return Object.keys(
|
|
1715
|
-
const D =
|
|
1709
|
+
function f(c, v, B, M, I) {
|
|
1710
|
+
const z = c.type, k = n(c), S = {};
|
|
1711
|
+
let y = I || e[z];
|
|
1712
|
+
if (y && Object.keys(y).length === 0 && B && B.getPropConfig && (y = B.getPropConfig(M)), y && y.categories) {
|
|
1713
|
+
const x = [];
|
|
1714
|
+
return Object.keys(y.categories).map((F) => {
|
|
1715
|
+
const D = y.categories[F];
|
|
1716
1716
|
if (D.$ref) {
|
|
1717
|
-
|
|
1717
|
+
x.push(m(F, D, c, v, M));
|
|
1718
1718
|
return;
|
|
1719
1719
|
}
|
|
1720
|
-
const
|
|
1721
|
-
|
|
1722
|
-
}),
|
|
1720
|
+
const _ = D == null ? void 0 : D.title, b = D == null ? void 0 : D.tabId, G = D == null ? void 0 : D.tabName, j = D == null ? void 0 : D.hide, H = D == null ? void 0 : D.hideTitle, X = p(D.properties || {}, S, k, c, v, M, D.$converter), { setPropertyRelates: te } = D, W = D == null ? void 0 : D.parentPropertyID;
|
|
1721
|
+
x.push({ categoryId: F, categoryName: _, tabId: b, tabName: G, hide: j, properties: X, hideTitle: H, setPropertyRelates: te, parentPropertyID: W });
|
|
1722
|
+
}), x;
|
|
1723
1723
|
}
|
|
1724
1724
|
return [];
|
|
1725
1725
|
}
|
|
@@ -1732,7 +1732,7 @@ function Qn(e, t, n) {
|
|
|
1732
1732
|
function Zn(e, t) {
|
|
1733
1733
|
let n;
|
|
1734
1734
|
function o(d) {
|
|
1735
|
-
const { properties: m, title: f, ignore: c } = d, v = c && Array.isArray(c), B = Object.keys(m).reduce((M,
|
|
1735
|
+
const { properties: m, title: f, ignore: c } = d, v = c && Array.isArray(c), B = Object.keys(m).reduce((M, I) => ((!v || !c.find((z) => z === I)) && (M[I] = m[I].type === "object" && m[I].properties ? o(m[I]) : Nt(m[I].default)), M), {});
|
|
1736
1736
|
if (f && (!v || !c.find((M) => M === "id"))) {
|
|
1737
1737
|
const M = f.toLowerCase().replace(/-/g, "_");
|
|
1738
1738
|
B.id = `${M}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1794,8 +1794,8 @@ function Zn(e, t) {
|
|
|
1794
1794
|
return d;
|
|
1795
1795
|
const v = l(d, c), B = ((f = d.editor) == null ? void 0 : f.type) || "";
|
|
1796
1796
|
if (B) {
|
|
1797
|
-
const M = e[B],
|
|
1798
|
-
v.editor =
|
|
1797
|
+
const M = e[B], I = l(d.editor, M);
|
|
1798
|
+
v.editor = I;
|
|
1799
1799
|
}
|
|
1800
1800
|
return v;
|
|
1801
1801
|
}
|
|
@@ -1942,10 +1942,10 @@ const yt = class yt {
|
|
|
1942
1942
|
*/
|
|
1943
1943
|
static getEditorTypesByMDataType(t, n = !1, o = "") {
|
|
1944
1944
|
if (n)
|
|
1945
|
-
return [{ key:
|
|
1945
|
+
return [{ key: $["language-textbox"].type, value: $["language-textbox"].name }];
|
|
1946
1946
|
let a = yt.fieldControlTypeMapping[t];
|
|
1947
1947
|
if (o === "data-grid-column" && (a != null && a.length)) {
|
|
1948
|
-
const i = [
|
|
1948
|
+
const i = [$["check-group"].type, $["radio-group"].type];
|
|
1949
1949
|
a = a.filter((l) => !i.includes(l.key));
|
|
1950
1950
|
}
|
|
1951
1951
|
return a;
|
|
@@ -1968,7 +1968,7 @@ const yt = class yt {
|
|
|
1968
1968
|
static mappingDomPropAndSchemaProp(t, n) {
|
|
1969
1969
|
var i;
|
|
1970
1970
|
const o = (i = t.editor) == null ? void 0 : i.type, a = [];
|
|
1971
|
-
return (t.type ===
|
|
1971
|
+
return (t.type === $["data-grid-column"].type || t.type === $["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && a.push({ domField: "title", schemaField: "name" }), a.push({ domField: "label", schemaField: "name" }), a.push({ domField: "editor.required", schemaField: "require" }), a.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === $["input-group"].type || o === $.textarea.type || o === $["number-spinner"].type) && a.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === $["number-spinner"].type && a.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === $["data-grid-column"].type || t.type === $["tree-grid-column"].type) && a.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === $["combo-list"].type || o === $["radio-group"].type) && a.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === $["data-grid-column"].type || t.type === $["tree-grid-column"].type) && a.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === $["date-picker"].type && (a.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), a.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === $["number-spinner"].type && (a.push({ domField: "editor.max", schemaField: "editor.maxValue" }), a.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === $.lookup.type && (a.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), a.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), a.push({ domField: "editor.textField", schemaField: "editor.textField" }), a.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), a.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), a.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), a.push({ domField: "path", schemaField: "bindingPath" }), a.push({ domField: "binding.path", schemaField: "bindingField" }), a.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === $["data-grid-column"].type || t.type === $["tree-grid-column"].type) && a.push({ domField: "field", schemaField: "bindingPath" }), a;
|
|
1972
1972
|
}
|
|
1973
1973
|
};
|
|
1974
1974
|
/**
|
|
@@ -1976,53 +1976,53 @@ const yt = class yt {
|
|
|
1976
1976
|
*/
|
|
1977
1977
|
Pe(yt, "fieldControlTypeMapping", {
|
|
1978
1978
|
String: [
|
|
1979
|
-
{ key:
|
|
1980
|
-
{ key:
|
|
1981
|
-
{ key:
|
|
1982
|
-
{ key:
|
|
1983
|
-
{ key:
|
|
1984
|
-
{ key:
|
|
1985
|
-
{ key:
|
|
1986
|
-
{ key:
|
|
1987
|
-
{ key:
|
|
1988
|
-
{ key:
|
|
1979
|
+
{ key: $["input-group"].type, value: $["input-group"].name },
|
|
1980
|
+
{ key: $.lookup.type, value: $.lookup.name },
|
|
1981
|
+
{ key: $["date-picker"].type, value: $["date-picker"].name },
|
|
1982
|
+
{ key: $.switch.type, value: $.switch.name },
|
|
1983
|
+
{ key: $["check-box"].type, value: $["check-box"].name },
|
|
1984
|
+
{ key: $["check-group"].type, value: $["check-group"].name },
|
|
1985
|
+
{ key: $["radio-group"].type, value: $["radio-group"].name },
|
|
1986
|
+
{ key: $["combo-list"].type, value: $["combo-list"].name },
|
|
1987
|
+
{ key: $.textarea.type, value: $.textarea.name },
|
|
1988
|
+
{ key: $["time-picker"].type, value: $["time-picker"].name }
|
|
1989
1989
|
],
|
|
1990
1990
|
Text: [
|
|
1991
|
-
{ key:
|
|
1992
|
-
{ key:
|
|
1991
|
+
{ key: $.textarea.type, value: $.textarea.name },
|
|
1992
|
+
{ key: $.lookup.type, value: $.lookup.name }
|
|
1993
1993
|
],
|
|
1994
1994
|
Decimal: [
|
|
1995
|
-
{ key:
|
|
1995
|
+
{ key: $["number-spinner"].type, value: $["number-spinner"].name }
|
|
1996
1996
|
],
|
|
1997
1997
|
Integer: [
|
|
1998
|
-
{ key:
|
|
1998
|
+
{ key: $["number-spinner"].type, value: $["number-spinner"].name }
|
|
1999
1999
|
],
|
|
2000
2000
|
Number: [
|
|
2001
|
-
{ key:
|
|
2002
|
-
{ key:
|
|
2003
|
-
{ key:
|
|
2001
|
+
{ key: $["number-spinner"].type, value: $["number-spinner"].name },
|
|
2002
|
+
{ key: $.switch.type, value: $.switch.name },
|
|
2003
|
+
{ key: $["check-box"].type, value: $["check-box"].name }
|
|
2004
2004
|
],
|
|
2005
2005
|
BigNumber: [
|
|
2006
|
-
{ key:
|
|
2006
|
+
{ key: $["number-spinner"].type, value: $["number-spinner"].name }
|
|
2007
2007
|
],
|
|
2008
2008
|
Date: [
|
|
2009
|
-
{ key:
|
|
2009
|
+
{ key: $["date-picker"].type, value: $["date-picker"].name }
|
|
2010
2010
|
],
|
|
2011
2011
|
DateTime: [
|
|
2012
|
-
{ key:
|
|
2012
|
+
{ key: $["date-picker"].type, value: $["date-picker"].name }
|
|
2013
2013
|
],
|
|
2014
2014
|
Boolean: [
|
|
2015
|
-
{ key:
|
|
2016
|
-
{ key:
|
|
2015
|
+
{ key: $.switch.type, value: $.switch.name },
|
|
2016
|
+
{ key: $["check-box"].type, value: $["check-box"].name }
|
|
2017
2017
|
],
|
|
2018
2018
|
Enum: [
|
|
2019
|
-
{ key:
|
|
2020
|
-
{ key:
|
|
2019
|
+
{ key: $["combo-list"].type, value: $["combo-list"].name },
|
|
2020
|
+
{ key: $["radio-group"].type, value: $["radio-group"].name }
|
|
2021
2021
|
],
|
|
2022
2022
|
Object: [
|
|
2023
|
-
{ key:
|
|
2024
|
-
{ key:
|
|
2025
|
-
{ key:
|
|
2023
|
+
{ key: $.lookup.type, value: $.lookup.name },
|
|
2024
|
+
{ key: $["combo-list"].type, value: $["combo-list"].name },
|
|
2025
|
+
{ key: $["radio-group"].type, value: $["radio-group"].name }
|
|
2026
2026
|
]
|
|
2027
2027
|
});
|
|
2028
2028
|
let ln = yt;
|
|
@@ -2080,11 +2080,11 @@ var Ja = { exports: {} };
|
|
|
2080
2080
|
2: [function(n, o, a) {
|
|
2081
2081
|
(function(i) {
|
|
2082
2082
|
var l = n("contra/emitter"), u = n("crossvent"), r = n("./classes"), s = document, p = s.documentElement;
|
|
2083
|
-
function d(
|
|
2084
|
-
var
|
|
2085
|
-
|
|
2086
|
-
var
|
|
2087
|
-
q.moves === void 0 && (q.moves =
|
|
2083
|
+
function d(b, G) {
|
|
2084
|
+
var j = arguments.length;
|
|
2085
|
+
j === 1 && Array.isArray(b) === !1 && (G = b, b = []);
|
|
2086
|
+
var H, X, te, W, T, O, U, N, K, ie = null, fe, Q, ae = !1, ye = 0, oe, q = G || {};
|
|
2087
|
+
q.moves === void 0 && (q.moves = I), q.accepts === void 0 && (q.accepts = I), q.invalid === void 0 && (q.invalid = Ae), q.containers === void 0 && (q.containers = b || []), q.isContainer === void 0 && (q.isContainer = M), q.copy === void 0 && (q.copy = !1), q.copySortSource === void 0 && (q.copySortSource = !1), q.revertOnSpill === void 0 && (q.revertOnSpill = !1), q.removeOnSpill === void 0 && (q.removeOnSpill = !1), q.direction === void 0 && (q.direction = "vertical"), q.ignoreInputTextSelection === void 0 && (q.ignoreInputTextSelection = !0), q.mirrorContainer === void 0 && (q.mirrorContainer = s.body);
|
|
2088
2088
|
var se = l({
|
|
2089
2089
|
containers: q.containers,
|
|
2090
2090
|
start: He,
|
|
@@ -2095,158 +2095,158 @@ var Ja = { exports: {} };
|
|
|
2095
2095
|
canMove: ze,
|
|
2096
2096
|
dragging: !1
|
|
2097
2097
|
});
|
|
2098
|
-
return q.removeOnSpill === !0 && se.on("over",
|
|
2099
|
-
function je(
|
|
2100
|
-
return se.containers.indexOf(
|
|
2098
|
+
return q.removeOnSpill === !0 && se.on("over", Z).on("out", de), Ee(), se;
|
|
2099
|
+
function je(C) {
|
|
2100
|
+
return se.containers.indexOf(C) !== -1 || q.isContainer(C);
|
|
2101
2101
|
}
|
|
2102
|
-
function Ee(
|
|
2103
|
-
var
|
|
2104
|
-
c(p,
|
|
2102
|
+
function Ee(C) {
|
|
2103
|
+
var P = C ? "remove" : "add";
|
|
2104
|
+
c(p, P, "mousedown", he), c(p, P, "mouseup", De);
|
|
2105
2105
|
}
|
|
2106
|
-
function Ie(
|
|
2107
|
-
var
|
|
2108
|
-
c(p,
|
|
2106
|
+
function Ie(C) {
|
|
2107
|
+
var P = C ? "remove" : "add";
|
|
2108
|
+
c(p, P, "mousemove", Ke);
|
|
2109
2109
|
}
|
|
2110
|
-
function Xe(
|
|
2111
|
-
var
|
|
2112
|
-
u[
|
|
2110
|
+
function Xe(C) {
|
|
2111
|
+
var P = C ? "remove" : "add";
|
|
2112
|
+
u[P](p, "selectstart", Ne), u[P](p, "click", Ne);
|
|
2113
2113
|
}
|
|
2114
2114
|
function Ue() {
|
|
2115
2115
|
Ee(!0), De({});
|
|
2116
2116
|
}
|
|
2117
|
-
function Ne(
|
|
2118
|
-
fe &&
|
|
2117
|
+
function Ne(C) {
|
|
2118
|
+
fe && C.preventDefault();
|
|
2119
2119
|
}
|
|
2120
|
-
function he(
|
|
2121
|
-
|
|
2122
|
-
var
|
|
2123
|
-
if (!
|
|
2124
|
-
var
|
|
2125
|
-
J && (fe = J, Ie(),
|
|
2120
|
+
function he(C) {
|
|
2121
|
+
W = C.clientX, T = C.clientY;
|
|
2122
|
+
var P = v(C) !== 1 || C.metaKey || C.ctrlKey;
|
|
2123
|
+
if (!P) {
|
|
2124
|
+
var V = C.target, J = ce(V);
|
|
2125
|
+
J && (fe = J, Ie(), C.type === "mousedown" && (y(V) ? V.focus() : C.preventDefault()));
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
2128
|
-
function Ke(
|
|
2128
|
+
function Ke(C) {
|
|
2129
2129
|
if (fe) {
|
|
2130
|
-
if (v(
|
|
2130
|
+
if (v(C) === 0) {
|
|
2131
2131
|
De({});
|
|
2132
2132
|
return;
|
|
2133
2133
|
}
|
|
2134
|
-
if (!(
|
|
2134
|
+
if (!(C.clientX !== void 0 && Math.abs(C.clientX - W) <= (q.slideFactorX || 0) && C.clientY !== void 0 && Math.abs(C.clientY - T) <= (q.slideFactorY || 0))) {
|
|
2135
2135
|
if (q.ignoreInputTextSelection) {
|
|
2136
|
-
var
|
|
2137
|
-
if (
|
|
2136
|
+
var P = _("clientX", C) || 0, V = _("clientY", C) || 0, J = s.elementFromPoint(P, V);
|
|
2137
|
+
if (y(J))
|
|
2138
2138
|
return;
|
|
2139
2139
|
}
|
|
2140
2140
|
var re = fe;
|
|
2141
|
-
Ie(!0), Xe(), Fe(), $e(re), r.add(N ||
|
|
2141
|
+
Ie(!0), Xe(), Fe(), $e(re), r.add(N || te, "gu-transit"), pe(), Y(), ye = 0, et(C);
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
function ce(
|
|
2146
|
-
if (!(se.dragging &&
|
|
2147
|
-
for (var
|
|
2148
|
-
if (q.invalid(
|
|
2145
|
+
function ce(C) {
|
|
2146
|
+
if (!(se.dragging && H) && !je(C)) {
|
|
2147
|
+
for (var P = C; S(C) && je(S(C)) === !1; )
|
|
2148
|
+
if (q.invalid(C, P) || (C = S(C), !C))
|
|
2149
2149
|
return;
|
|
2150
|
-
var
|
|
2151
|
-
if (
|
|
2152
|
-
var J = q.moves(
|
|
2150
|
+
var V = S(C);
|
|
2151
|
+
if (V && !q.invalid(C, P)) {
|
|
2152
|
+
var J = q.moves(C, V, P, F(C));
|
|
2153
2153
|
if (J)
|
|
2154
2154
|
return {
|
|
2155
|
-
item:
|
|
2156
|
-
source:
|
|
2155
|
+
item: C,
|
|
2156
|
+
source: V
|
|
2157
2157
|
};
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
|
-
function ze(
|
|
2162
|
-
return !!ce(
|
|
2161
|
+
function ze(C) {
|
|
2162
|
+
return !!ce(C);
|
|
2163
2163
|
}
|
|
2164
|
-
function He(
|
|
2165
|
-
var
|
|
2166
|
-
|
|
2164
|
+
function He(C) {
|
|
2165
|
+
var P = ce(C);
|
|
2166
|
+
P && $e(P);
|
|
2167
2167
|
}
|
|
2168
|
-
function $e(
|
|
2169
|
-
Tt(
|
|
2168
|
+
function $e(C) {
|
|
2169
|
+
Tt(C.item, C.source) && (N = C.item.cloneNode(!0), se.emit("cloned", N, C.item, "copy")), X = C.source, te = C.item, O = U = F(C.item), se.dragging = !0, se.emit("drag", te, X);
|
|
2170
2170
|
}
|
|
2171
2171
|
function Ae() {
|
|
2172
2172
|
return !1;
|
|
2173
2173
|
}
|
|
2174
2174
|
function Fe() {
|
|
2175
2175
|
if (se.dragging) {
|
|
2176
|
-
var
|
|
2177
|
-
Ge(
|
|
2176
|
+
var C = N || te;
|
|
2177
|
+
Ge(C, S(C));
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
function Ve() {
|
|
2181
2181
|
fe = !1, Ie(!0), Xe(!0);
|
|
2182
2182
|
}
|
|
2183
|
-
function De(
|
|
2183
|
+
function De(C) {
|
|
2184
2184
|
if (Ve(), !!se.dragging) {
|
|
2185
|
-
var
|
|
2186
|
-
le && (N && q.copySortSource || !N || le !==
|
|
2185
|
+
var P = N || te, V = _("clientX", C) || 0, J = _("clientY", C) || 0, re = B(H, V, J), le = We(re, V, J);
|
|
2186
|
+
le && (N && q.copySortSource || !N || le !== X) ? Ge(P, le) : q.removeOnSpill ? E() : ne();
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
|
-
function Ge(
|
|
2190
|
-
var
|
|
2191
|
-
N && q.copySortSource &&
|
|
2189
|
+
function Ge(C, P) {
|
|
2190
|
+
var V = S(C);
|
|
2191
|
+
N && q.copySortSource && P === X && V.removeChild(te), ge(P) ? se.emit("cancel", C, X) : se.emit("drop", C, P, X, U), me();
|
|
2192
2192
|
}
|
|
2193
2193
|
function E() {
|
|
2194
2194
|
if (se.dragging) {
|
|
2195
|
-
var
|
|
2196
|
-
|
|
2195
|
+
var C = N || te, P = S(C);
|
|
2196
|
+
P && P.removeChild(C), se.emit(N ? "cancel" : "remove", C, P, X), me();
|
|
2197
2197
|
}
|
|
2198
2198
|
}
|
|
2199
|
-
function ne(
|
|
2199
|
+
function ne(C) {
|
|
2200
2200
|
if (se.dragging) {
|
|
2201
|
-
var
|
|
2202
|
-
re === !1 &&
|
|
2201
|
+
var P = arguments.length > 0 ? C : q.revertOnSpill, V = N || te, J = S(V), re = ge(J);
|
|
2202
|
+
re === !1 && P && (N ? J && J.removeChild(N) : X.insertBefore(V, O)), re || P ? se.emit("cancel", V, X, X) : se.emit("drop", V, J, X, U), me();
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
2205
|
function me() {
|
|
2206
|
-
var
|
|
2207
|
-
Ve(), Ye(), nt(),
|
|
2206
|
+
var C = N || te;
|
|
2207
|
+
Ve(), Ye(), nt(), C && r.rm(C, "gu-transit"), K && clearTimeout(K), se.dragging = !1, ie && se.emit("out", C, ie, X), se.emit("dragend", C, ye), X = te = N = O = U = K = ie = null;
|
|
2208
2208
|
}
|
|
2209
|
-
function ge(
|
|
2210
|
-
var
|
|
2211
|
-
return
|
|
2209
|
+
function ge(C, P) {
|
|
2210
|
+
var V;
|
|
2211
|
+
return P !== void 0 ? V = P : H ? V = U : V = F(N || te), C === X && V === O;
|
|
2212
2212
|
}
|
|
2213
|
-
function We(
|
|
2214
|
-
for (var J =
|
|
2215
|
-
J =
|
|
2213
|
+
function We(C, P, V) {
|
|
2214
|
+
for (var J = C; J && !re(); )
|
|
2215
|
+
J = S(J);
|
|
2216
2216
|
return J;
|
|
2217
2217
|
function re() {
|
|
2218
2218
|
var le = je(J);
|
|
2219
2219
|
if (le === !1)
|
|
2220
2220
|
return !1;
|
|
2221
|
-
var Re = Je(J,
|
|
2222
|
-
return Oe ? !0 : q.accepts(
|
|
2221
|
+
var Re = Je(J, C), Be = gt(J, Re, P, V), Oe = ge(J, Be);
|
|
2222
|
+
return Oe ? !0 : q.accepts(te, J, X, Be);
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
function et(
|
|
2226
|
-
if (!
|
|
2225
|
+
function et(C) {
|
|
2226
|
+
if (!H)
|
|
2227
2227
|
return;
|
|
2228
|
-
|
|
2229
|
-
var
|
|
2230
|
-
|
|
2231
|
-
var J = N ||
|
|
2232
|
-
(Re || le === null) && (Me(), ie = le, qe()), St(re,
|
|
2233
|
-
var Be =
|
|
2234
|
-
if (le ===
|
|
2228
|
+
C.preventDefault();
|
|
2229
|
+
var P = _("clientX", C) || 0, V = _("clientY", C) || 0;
|
|
2230
|
+
H.style.left = P - 2 + "px", H.style.top = V - 2 + "px";
|
|
2231
|
+
var J = N || te, re = B(H, P, V), le = We(re, P, V), Re = le !== null && le !== ie;
|
|
2232
|
+
(Re || le === null) && (Me(), ie = le, qe()), St(re, V);
|
|
2233
|
+
var Be = S(J);
|
|
2234
|
+
if (le === X && N && !q.copySortSource) {
|
|
2235
2235
|
Be && Be.removeChild(J);
|
|
2236
2236
|
return;
|
|
2237
2237
|
}
|
|
2238
2238
|
var Oe, _e = Je(le, re);
|
|
2239
2239
|
if (ae = lt(_e, le), _e !== null)
|
|
2240
|
-
Oe = gt(le, _e,
|
|
2240
|
+
Oe = gt(le, _e, P, V);
|
|
2241
2241
|
else if (q.revertOnSpill === !0 && !N)
|
|
2242
|
-
Oe =
|
|
2242
|
+
Oe = O, le = X;
|
|
2243
2243
|
else {
|
|
2244
2244
|
N && Be && Be.removeChild(J), N && Q && (Q.style.display = "none");
|
|
2245
2245
|
return;
|
|
2246
2246
|
}
|
|
2247
|
-
Q.style.display = "block",
|
|
2247
|
+
Q.style.display = "block", w(Oe, J, Re), Oe ? wt(_e, Oe) : xt(le);
|
|
2248
2248
|
function be(xe) {
|
|
2249
|
-
se.emit(xe, J, ie,
|
|
2249
|
+
se.emit(xe, J, ie, X);
|
|
2250
2250
|
}
|
|
2251
2251
|
function qe() {
|
|
2252
2252
|
Re && be("over");
|
|
@@ -2255,61 +2255,61 @@ var Ja = { exports: {} };
|
|
|
2255
2255
|
ie && be("out");
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2259
|
-
(
|
|
2258
|
+
function w(C, P, V) {
|
|
2259
|
+
(C === P || C === F(P)) && (U = F(P)), (C === null && V || C !== P && C !== F(P)) && (U = C);
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2262
|
-
r.rm(
|
|
2261
|
+
function Z(C) {
|
|
2262
|
+
r.rm(C, "gu-hide");
|
|
2263
2263
|
}
|
|
2264
|
-
function de(
|
|
2265
|
-
se.dragging && r.add(
|
|
2264
|
+
function de(C) {
|
|
2265
|
+
se.dragging && r.add(C, "gu-hide");
|
|
2266
2266
|
}
|
|
2267
2267
|
function Y() {
|
|
2268
|
-
|
|
2268
|
+
H || (H = document.createElement("div"), H.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;", H.innerHTML = q.getMirrorText && q.getMirrorText(te) || "控件", r.add(H, "gu-mirror"), q.mirrorContainer.appendChild(H), c(p, "add", "mousemove", et), r.add(q.mirrorContainer, "gu-unselectable"), se.emit("cloned", H, te, "mirror"));
|
|
2269
2269
|
}
|
|
2270
2270
|
function pe() {
|
|
2271
|
-
if (Q = document.createElement("div"), r.add(Q, "gu-insertion"),
|
|
2272
|
-
var
|
|
2273
|
-
Q.style.left =
|
|
2271
|
+
if (Q = document.createElement("div"), r.add(Q, "gu-insertion"), te) {
|
|
2272
|
+
var C = te.getBoundingClientRect();
|
|
2273
|
+
Q.style.left = C.left + "px", Q.style.top = C.top + "px";
|
|
2274
2274
|
}
|
|
2275
2275
|
ae = !1, q.mirrorContainer.appendChild(Q);
|
|
2276
2276
|
}
|
|
2277
2277
|
function Ye() {
|
|
2278
|
-
|
|
2278
|
+
H && (r.rm(q.mirrorContainer, "gu-unselectable"), c(p, "remove", "mousemove", et), S(H).removeChild(H), H = null);
|
|
2279
2279
|
}
|
|
2280
2280
|
function nt() {
|
|
2281
|
-
Q && (
|
|
2281
|
+
Q && (S(Q).removeChild(Q), Q = null);
|
|
2282
2282
|
}
|
|
2283
|
-
function Je(
|
|
2284
|
-
for (var
|
|
2285
|
-
|
|
2286
|
-
return
|
|
2283
|
+
function Je(C, P) {
|
|
2284
|
+
for (var V = P; V !== C && S(V) !== C; )
|
|
2285
|
+
V = S(V);
|
|
2286
|
+
return V === p ? null : V;
|
|
2287
2287
|
}
|
|
2288
|
-
function lt(
|
|
2289
|
-
if (!
|
|
2288
|
+
function lt(C, P) {
|
|
2289
|
+
if (!P)
|
|
2290
2290
|
return ae;
|
|
2291
|
-
var
|
|
2292
|
-
if (
|
|
2291
|
+
var V = C || P && P.lastElementChild;
|
|
2292
|
+
if (!V)
|
|
2293
2293
|
return !0;
|
|
2294
|
-
var J = getComputedStyle(
|
|
2294
|
+
var J = getComputedStyle(C), re = /^inline/.test(J.getPropertyValue("display")) || /^(left|right)$/.test(J.getPropertyValue("float"));
|
|
2295
2295
|
if (re)
|
|
2296
2296
|
return !0;
|
|
2297
|
-
if (
|
|
2298
|
-
var le = getComputedStyle(
|
|
2297
|
+
if (P) {
|
|
2298
|
+
var le = getComputedStyle(P), Re = le.getPropertyValue("display");
|
|
2299
2299
|
if (/flex$/.test(Re)) {
|
|
2300
2300
|
var Be = le.getPropertyValue("flex-direction") || "row";
|
|
2301
2301
|
if (Be === "row" || Be === "row-reverse")
|
|
2302
|
-
return !Ct(
|
|
2302
|
+
return !Ct(P);
|
|
2303
2303
|
}
|
|
2304
2304
|
return !1;
|
|
2305
2305
|
}
|
|
2306
2306
|
return !0;
|
|
2307
2307
|
}
|
|
2308
|
-
function Ct(
|
|
2309
|
-
if (!
|
|
2308
|
+
function Ct(C) {
|
|
2309
|
+
if (!C.children || !C.children.length)
|
|
2310
2310
|
return !1;
|
|
2311
|
-
for (const
|
|
2312
|
-
const J = (
|
|
2311
|
+
for (const P of Array.from(C.children)) {
|
|
2312
|
+
const J = (P.className && P.className.split(" ") || []).filter((re) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(re));
|
|
2313
2313
|
if (!J.length)
|
|
2314
2314
|
return !1;
|
|
2315
2315
|
for (const re of J) {
|
|
@@ -2320,161 +2320,161 @@ var Ja = { exports: {} };
|
|
|
2320
2320
|
}
|
|
2321
2321
|
return !0;
|
|
2322
2322
|
}
|
|
2323
|
-
function wt(
|
|
2324
|
-
const
|
|
2325
|
-
if (Q.style.left =
|
|
2326
|
-
if (Q.style.height =
|
|
2327
|
-
const J =
|
|
2328
|
-
J.top !==
|
|
2323
|
+
function wt(C, P) {
|
|
2324
|
+
const V = P.getBoundingClientRect();
|
|
2325
|
+
if (Q.style.left = V.left + "px", Q.style.top = V.top + "px", ae) {
|
|
2326
|
+
if (Q.style.height = V.height + "px", Q.style.width = "4px", C) {
|
|
2327
|
+
const J = C.getBoundingClientRect();
|
|
2328
|
+
J.top !== V.top && (Q.style.left = J.right + "px", Q.style.top = J.top + "px", Q.style.height = J.height + "px");
|
|
2329
2329
|
}
|
|
2330
|
-
} else if (Q.style.height = "4px", Q.style.width =
|
|
2330
|
+
} else if (Q.style.height = "4px", Q.style.width = V.width + "px", oe) {
|
|
2331
2331
|
const J = oe.getBoundingClientRect();
|
|
2332
|
-
|
|
2332
|
+
V.top < J.top && (Q.style.display = "none");
|
|
2333
2333
|
}
|
|
2334
|
-
|
|
2334
|
+
P === te && te && (Q.style.display = "none");
|
|
2335
2335
|
}
|
|
2336
|
-
function xt(
|
|
2337
|
-
|
|
2338
|
-
var
|
|
2339
|
-
if (
|
|
2340
|
-
var
|
|
2341
|
-
ae ? (Q.style.left =
|
|
2336
|
+
function xt(C) {
|
|
2337
|
+
U = null;
|
|
2338
|
+
var P = C.lastElementChild;
|
|
2339
|
+
if (P) {
|
|
2340
|
+
var V = P.getBoundingClientRect();
|
|
2341
|
+
ae ? (Q.style.left = V.right + "px", Q.style.top = V.top + "px", Q.style.height = V.height + "px", Q.style.width = "4px") : (Q.style.left = V.left + "px", Q.style.top = V.bottom + "px", Q.style.height = "4px", Q.style.width = V.width + "px"), P === te && te && (Q.style.display = "none");
|
|
2342
2342
|
} else
|
|
2343
2343
|
Q.style.display = "none";
|
|
2344
2344
|
}
|
|
2345
|
-
function St(
|
|
2346
|
-
if (!q.mirrorContainer.contains(
|
|
2345
|
+
function St(C, P) {
|
|
2346
|
+
if (!q.mirrorContainer.contains(C) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (oe = m(C), !oe || !oe.contains(C)))
|
|
2347
2347
|
return;
|
|
2348
|
-
const
|
|
2349
|
-
if (
|
|
2348
|
+
const V = document.querySelector(".dgComponentSelected"), J = oe.getBoundingClientRect();
|
|
2349
|
+
if (P - 30 < J.top && oe.scrollTop > 0) {
|
|
2350
2350
|
let re = oe.scrollTop < 10 ? oe.scrollTop : 10;
|
|
2351
|
-
oe.scrollBy(0, -1 * re),
|
|
2351
|
+
oe.scrollBy(0, -1 * re), V && oe.contains(V) && (ye = ye + -1 * re);
|
|
2352
2352
|
}
|
|
2353
|
-
if (
|
|
2353
|
+
if (P + 30 > J.bottom && oe.scrollTop < oe.scrollHeight - oe.clientHeight) {
|
|
2354
2354
|
const re = oe.scrollHeight - oe.clientHeight - oe.scrollTop;
|
|
2355
2355
|
let le = re < 10 ? re : 10;
|
|
2356
|
-
oe.scrollBy(0, le),
|
|
2356
|
+
oe.scrollBy(0, le), V && oe.contains(V) && (ye = ye + le);
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
|
-
function gt(
|
|
2360
|
-
var re = q.direction === "horizontal", le = q.direction === "mixed", Re =
|
|
2359
|
+
function gt(C, P, V, J) {
|
|
2360
|
+
var re = q.direction === "horizontal", le = q.direction === "mixed", Re = P !== C ? Oe() : Be();
|
|
2361
2361
|
return Re;
|
|
2362
2362
|
function Be() {
|
|
2363
|
-
var be =
|
|
2363
|
+
var be = C.children.length, qe, Me, xe;
|
|
2364
2364
|
for (qe = 0; qe < be; qe++)
|
|
2365
|
-
if (Me =
|
|
2365
|
+
if (Me = C.children[qe], xe = Me.getBoundingClientRect(), re && xe.left + xe.width / 2 > V || !le && !re && xe.top + xe.height / 2 > J || le && xe.left + xe.width > V && xe.top + xe.height > J)
|
|
2366
2366
|
return Me;
|
|
2367
2367
|
return null;
|
|
2368
2368
|
}
|
|
2369
2369
|
function Oe() {
|
|
2370
|
-
var be =
|
|
2370
|
+
var be = P.getBoundingClientRect();
|
|
2371
2371
|
if (le) {
|
|
2372
|
-
var qe = J - be.top, Me =
|
|
2372
|
+
var qe = J - be.top, Me = V - be.left, xe = be.bottom - J, rt = be.right - V, st = Math.min(Me, rt, qe, xe), ut;
|
|
2373
2373
|
return ae ? ut = rt < Me : ut = xe === st || rt === st || Me === st, _e(ut);
|
|
2374
2374
|
}
|
|
2375
|
-
return _e(re ?
|
|
2375
|
+
return _e(re ? V > be.left + z(be) / 2 : J > be.top + k(be) / 2);
|
|
2376
2376
|
}
|
|
2377
2377
|
function _e(be) {
|
|
2378
|
-
return be ? F(
|
|
2378
|
+
return be ? F(P) : P;
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
|
-
function Tt(
|
|
2382
|
-
return typeof q.copy == "boolean" ? q.copy : q.copy(
|
|
2381
|
+
function Tt(C, P) {
|
|
2382
|
+
return typeof q.copy == "boolean" ? q.copy : q.copy(C, P);
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
|
-
function m(
|
|
2385
|
+
function m(b) {
|
|
2386
2386
|
const G = Array.from(window.scrollContainerList);
|
|
2387
2387
|
if (G.length === 1) {
|
|
2388
|
-
const
|
|
2389
|
-
return document.getElementById(
|
|
2388
|
+
const H = Array.from(window.scrollContainerList)[0];
|
|
2389
|
+
return document.getElementById(H);
|
|
2390
2390
|
}
|
|
2391
|
-
const
|
|
2392
|
-
for (const
|
|
2393
|
-
if (
|
|
2394
|
-
return
|
|
2391
|
+
const j = f(G);
|
|
2392
|
+
for (const H of j)
|
|
2393
|
+
if (H.contains(b))
|
|
2394
|
+
return H;
|
|
2395
2395
|
return null;
|
|
2396
2396
|
}
|
|
2397
|
-
function f(
|
|
2397
|
+
function f(b) {
|
|
2398
2398
|
const G = [];
|
|
2399
|
-
return
|
|
2400
|
-
const
|
|
2401
|
-
|
|
2402
|
-
}), G.sort((
|
|
2399
|
+
return b.forEach((j) => {
|
|
2400
|
+
const H = document.getElementById(j);
|
|
2401
|
+
H && G.push(H);
|
|
2402
|
+
}), G.sort((j, H) => j.contains(H) ? 1 : H.contains(j) ? -1 : 0), G;
|
|
2403
2403
|
}
|
|
2404
|
-
function c(
|
|
2405
|
-
var
|
|
2404
|
+
function c(b, G, j, H) {
|
|
2405
|
+
var X = {
|
|
2406
2406
|
mouseup: "touchend",
|
|
2407
2407
|
mousedown: "touchstart",
|
|
2408
2408
|
mousemove: "touchmove"
|
|
2409
|
-
},
|
|
2409
|
+
}, te = {
|
|
2410
2410
|
mouseup: "pointerup",
|
|
2411
2411
|
mousedown: "pointerdown",
|
|
2412
2412
|
mousemove: "pointermove"
|
|
2413
|
-
},
|
|
2413
|
+
}, W = {
|
|
2414
2414
|
mouseup: "MSPointerUp",
|
|
2415
2415
|
mousedown: "MSPointerDown",
|
|
2416
2416
|
mousemove: "MSPointerMove"
|
|
2417
2417
|
};
|
|
2418
|
-
i.navigator.pointerEnabled ? u[G](
|
|
2418
|
+
i.navigator.pointerEnabled ? u[G](b, te[j], H) : i.navigator.msPointerEnabled ? u[G](b, W[j], H) : (u[G](b, X[j], H), u[G](b, j, H));
|
|
2419
2419
|
}
|
|
2420
|
-
function v(
|
|
2421
|
-
if (
|
|
2422
|
-
return
|
|
2423
|
-
if (
|
|
2424
|
-
return
|
|
2425
|
-
if (
|
|
2426
|
-
return
|
|
2427
|
-
var G =
|
|
2420
|
+
function v(b) {
|
|
2421
|
+
if (b.touches !== void 0)
|
|
2422
|
+
return b.touches.length;
|
|
2423
|
+
if (b.which !== void 0 && b.which !== 0)
|
|
2424
|
+
return b.which;
|
|
2425
|
+
if (b.buttons !== void 0)
|
|
2426
|
+
return b.buttons;
|
|
2427
|
+
var G = b.button;
|
|
2428
2428
|
if (G !== void 0)
|
|
2429
2429
|
return G & 1 ? 1 : G & 2 ? 3 : G & 4 ? 2 : 0;
|
|
2430
2430
|
}
|
|
2431
|
-
function B(
|
|
2432
|
-
|
|
2433
|
-
var
|
|
2434
|
-
return
|
|
2431
|
+
function B(b, G, j) {
|
|
2432
|
+
b = b || {};
|
|
2433
|
+
var H = b.className || "", X;
|
|
2434
|
+
return b.className += " gu-hide", X = s.elementFromPoint(G, j), b.className = H, X;
|
|
2435
2435
|
}
|
|
2436
2436
|
function M() {
|
|
2437
2437
|
return !1;
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function I() {
|
|
2440
2440
|
return !0;
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2443
|
-
return
|
|
2442
|
+
function z(b) {
|
|
2443
|
+
return b.width || b.right - b.left;
|
|
2444
2444
|
}
|
|
2445
|
-
function k(
|
|
2446
|
-
return
|
|
2445
|
+
function k(b) {
|
|
2446
|
+
return b.height || b.bottom - b.top;
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2449
|
-
return
|
|
2448
|
+
function S(b) {
|
|
2449
|
+
return b.parentNode === s ? null : b.parentNode;
|
|
2450
2450
|
}
|
|
2451
|
-
function b
|
|
2452
|
-
return
|
|
2451
|
+
function y(b) {
|
|
2452
|
+
return b.tagName === "INPUT" || b.tagName === "TEXTAREA" || b.tagName === "SELECT" || x(b);
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2455
|
-
return !
|
|
2454
|
+
function x(b) {
|
|
2455
|
+
return !b || b.contentEditable === "false" ? !1 : b.contentEditable === "true" ? !0 : x(S(b));
|
|
2456
2456
|
}
|
|
2457
|
-
function F(
|
|
2458
|
-
return
|
|
2457
|
+
function F(b) {
|
|
2458
|
+
return b.nextElementSibling || G();
|
|
2459
2459
|
function G() {
|
|
2460
|
-
var
|
|
2460
|
+
var j = b;
|
|
2461
2461
|
do
|
|
2462
|
-
|
|
2463
|
-
while (
|
|
2464
|
-
return
|
|
2462
|
+
j = j.nextSibling;
|
|
2463
|
+
while (j && j.nodeType !== 1);
|
|
2464
|
+
return j;
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
|
-
function D(
|
|
2468
|
-
return
|
|
2467
|
+
function D(b) {
|
|
2468
|
+
return b.targetTouches && b.targetTouches.length ? b.targetTouches[0] : b.changedTouches && b.changedTouches.length ? b.changedTouches[0] : b;
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2471
|
-
var
|
|
2470
|
+
function _(b, G) {
|
|
2471
|
+
var j = D(G), H = {
|
|
2472
2472
|
pageX: "clientX",
|
|
2473
2473
|
// IE8
|
|
2474
2474
|
pageY: "clientY"
|
|
2475
2475
|
// IE8
|
|
2476
2476
|
};
|
|
2477
|
-
return
|
|
2477
|
+
return b in H && !(b in j) && H[b] in j && (b = H[b]), j[b];
|
|
2478
2478
|
}
|
|
2479
2479
|
o.exports = d;
|
|
2480
2480
|
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2537,61 +2537,61 @@ var Ja = { exports: {} };
|
|
|
2537
2537
|
remove: p,
|
|
2538
2538
|
fabricate: B
|
|
2539
2539
|
};
|
|
2540
|
-
function m(
|
|
2541
|
-
return
|
|
2540
|
+
function m(S, y, x, F) {
|
|
2541
|
+
return S.addEventListener(y, x, F);
|
|
2542
2542
|
}
|
|
2543
|
-
function f(
|
|
2544
|
-
return
|
|
2543
|
+
function f(S, y, x) {
|
|
2544
|
+
return S.attachEvent("on" + y, I(S, y, x));
|
|
2545
2545
|
}
|
|
2546
|
-
function c(
|
|
2547
|
-
return
|
|
2546
|
+
function c(S, y, x, F) {
|
|
2547
|
+
return S.removeEventListener(y, x, F);
|
|
2548
2548
|
}
|
|
2549
|
-
function v(
|
|
2550
|
-
var F =
|
|
2549
|
+
function v(S, y, x) {
|
|
2550
|
+
var F = z(S, y, x);
|
|
2551
2551
|
if (F)
|
|
2552
|
-
return
|
|
2552
|
+
return S.detachEvent("on" + y, F);
|
|
2553
2553
|
}
|
|
2554
|
-
function B(
|
|
2555
|
-
var F = u.indexOf(
|
|
2556
|
-
|
|
2554
|
+
function B(S, y, x) {
|
|
2555
|
+
var F = u.indexOf(y) === -1 ? _() : D();
|
|
2556
|
+
S.dispatchEvent ? S.dispatchEvent(F) : S.fireEvent("on" + y, F);
|
|
2557
2557
|
function D() {
|
|
2558
|
-
var
|
|
2559
|
-
return r.createEvent ? (
|
|
2558
|
+
var b;
|
|
2559
|
+
return r.createEvent ? (b = r.createEvent("Event"), b.initEvent(y, !0, !0)) : r.createEventObject && (b = r.createEventObject()), b;
|
|
2560
2560
|
}
|
|
2561
|
-
function
|
|
2562
|
-
return new l(
|
|
2561
|
+
function _() {
|
|
2562
|
+
return new l(y, { detail: x });
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
|
-
function M(
|
|
2565
|
+
function M(S, y, x) {
|
|
2566
2566
|
return function(D) {
|
|
2567
|
-
var
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
},
|
|
2571
|
-
|
|
2572
|
-
},
|
|
2567
|
+
var _ = D || i.event;
|
|
2568
|
+
_.target = _.target || _.srcElement, _.preventDefault = _.preventDefault || function() {
|
|
2569
|
+
_.returnValue = !1;
|
|
2570
|
+
}, _.stopPropagation = _.stopPropagation || function() {
|
|
2571
|
+
_.cancelBubble = !0;
|
|
2572
|
+
}, _.which = _.which || _.keyCode, x.call(S, _);
|
|
2573
2573
|
};
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2576
|
-
var F =
|
|
2575
|
+
function I(S, y, x) {
|
|
2576
|
+
var F = z(S, y, x) || M(S, y, x);
|
|
2577
2577
|
return d.push({
|
|
2578
2578
|
wrapper: F,
|
|
2579
|
-
element:
|
|
2580
|
-
type:
|
|
2581
|
-
fn:
|
|
2579
|
+
element: S,
|
|
2580
|
+
type: y,
|
|
2581
|
+
fn: x
|
|
2582
2582
|
}), F;
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2585
|
-
var F = k(
|
|
2584
|
+
function z(S, y, x) {
|
|
2585
|
+
var F = k(S, y, x);
|
|
2586
2586
|
if (F) {
|
|
2587
2587
|
var D = d[F].wrapper;
|
|
2588
2588
|
return d.splice(F, 1), D;
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
function k(
|
|
2591
|
+
function k(S, y, x) {
|
|
2592
2592
|
var F, D;
|
|
2593
2593
|
for (F = 0; F < d.length; F++)
|
|
2594
|
-
if (D = d[F], D.element ===
|
|
2594
|
+
if (D = d[F], D.element === S && D.type === y && D.fn === x)
|
|
2595
2595
|
return F;
|
|
2596
2596
|
}
|
|
2597
2597
|
}).call(this, typeof at < "u" ? at : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2688,30 +2688,30 @@ var Ja = { exports: {} };
|
|
|
2688
2688
|
if (!f) {
|
|
2689
2689
|
var k = p(B);
|
|
2690
2690
|
f = !0;
|
|
2691
|
-
for (var
|
|
2692
|
-
for (c = m, m = []; ++v <
|
|
2691
|
+
for (var S = m.length; S; ) {
|
|
2692
|
+
for (c = m, m = []; ++v < S; )
|
|
2693
2693
|
c && c[v].run();
|
|
2694
|
-
v = -1,
|
|
2694
|
+
v = -1, S = m.length;
|
|
2695
2695
|
}
|
|
2696
2696
|
c = null, f = !1, d(k);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
i.nextTick = function(k) {
|
|
2700
|
-
var
|
|
2700
|
+
var S = new Array(arguments.length - 1);
|
|
2701
2701
|
if (arguments.length > 1)
|
|
2702
|
-
for (var
|
|
2703
|
-
|
|
2704
|
-
m.push(new
|
|
2702
|
+
for (var y = 1; y < arguments.length; y++)
|
|
2703
|
+
S[y - 1] = arguments[y];
|
|
2704
|
+
m.push(new I(k, S)), m.length === 1 && !f && p(M);
|
|
2705
2705
|
};
|
|
2706
|
-
function
|
|
2707
|
-
this.fun = k, this.array =
|
|
2706
|
+
function I(k, S) {
|
|
2707
|
+
this.fun = k, this.array = S;
|
|
2708
2708
|
}
|
|
2709
|
-
|
|
2709
|
+
I.prototype.run = function() {
|
|
2710
2710
|
this.fun.apply(null, this.array);
|
|
2711
2711
|
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
|
|
2712
|
-
function
|
|
2712
|
+
function z() {
|
|
2713
2713
|
}
|
|
2714
|
-
i.on =
|
|
2714
|
+
i.on = z, i.addListener = z, i.once = z, i.off = z, i.removeListener = z, i.removeAllListeners = z, i.emit = z, i.prependListener = z, i.prependOnceListener = z, i.listeners = function(k) {
|
|
2715
2715
|
return [];
|
|
2716
2716
|
}, i.binding = function(k) {
|
|
2717
2717
|
throw new Error("process.binding is not supported");
|
|
@@ -2805,10 +2805,10 @@ const Qa = {
|
|
|
2805
2805
|
};
|
|
2806
2806
|
return k[e.animate] = !1, k[i] = u.value, k["toasty-type-" + l.value.type] = !0, l.value.theme && (k[l.value.theme] = !0), k;
|
|
2807
2807
|
}), d = R(() => {
|
|
2808
|
-
const
|
|
2808
|
+
const y = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
2809
2809
|
"f-icon": !0
|
|
2810
2810
|
};
|
|
2811
|
-
return
|
|
2811
|
+
return x[y] = !0, x;
|
|
2812
2812
|
}), m = R(() => l.value.title || l.value.message), f = R(() => e.showCloseButton), c = R(() => !!l.value.buttons || !!t.slots.default), v = R(() => n.value === "en" ? {
|
|
2813
2813
|
wordBreak: "keep-all",
|
|
2814
2814
|
overflowWrap: "break-word"
|
|
@@ -2818,22 +2818,22 @@ const Qa = {
|
|
|
2818
2818
|
t.emit("close", l.value);
|
|
2819
2819
|
}, 200);
|
|
2820
2820
|
}
|
|
2821
|
-
function M(k,
|
|
2821
|
+
function M(k, S) {
|
|
2822
2822
|
}
|
|
2823
|
-
function
|
|
2823
|
+
function I(k) {
|
|
2824
2824
|
return `f-preten-link ${k.customClass ? k.customClass : ""}`;
|
|
2825
2825
|
}
|
|
2826
2826
|
ve(a, () => {
|
|
2827
2827
|
a.value;
|
|
2828
2828
|
});
|
|
2829
|
-
const
|
|
2829
|
+
const z = () => {
|
|
2830
2830
|
var k;
|
|
2831
2831
|
return g(it, null, [g("div", {
|
|
2832
2832
|
class: "after-toast-msg text-right"
|
|
2833
|
-
}, [!t.slots.default && ((k = l.value.buttons) == null ? void 0 : k.map((
|
|
2834
|
-
class:
|
|
2835
|
-
onClick: (
|
|
2836
|
-
}, [
|
|
2833
|
+
}, [!t.slots.default && ((k = l.value.buttons) == null ? void 0 : k.map((S) => g("span", {
|
|
2834
|
+
class: I(S),
|
|
2835
|
+
onClick: (y) => void 0
|
|
2836
|
+
}, [S.text]))), t.slots.default && t.slots.default()])]);
|
|
2837
2837
|
};
|
|
2838
2838
|
return () => g("div", {
|
|
2839
2839
|
class: p.value,
|
|
@@ -2859,7 +2859,7 @@ const Qa = {
|
|
|
2859
2859
|
class: "toast-msg",
|
|
2860
2860
|
innerHTML: l.value.message,
|
|
2861
2861
|
style: v.value
|
|
2862
|
-
}, null), c.value &&
|
|
2862
|
+
}, null), c.value && z()]), s.value && (l.value.buttons ? g("div", {
|
|
2863
2863
|
class: "toast-title-btns-wrapper d-flex"
|
|
2864
2864
|
}, [g("h5", {
|
|
2865
2865
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -2867,7 +2867,7 @@ const Qa = {
|
|
|
2867
2867
|
innerHTML: l.value.message
|
|
2868
2868
|
}, null), g("div", {
|
|
2869
2869
|
class: "after-toast-title text-right ml-auto"
|
|
2870
|
-
}, [
|
|
2870
|
+
}, [z()])]) : g("h5", {
|
|
2871
2871
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2872
2872
|
style: v.value,
|
|
2873
2873
|
innerHTML: l.value.message
|
|
@@ -3199,28 +3199,28 @@ function ti(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v, B) {
|
|
|
3199
3199
|
const {
|
|
3200
3200
|
calculateCellPositionInRow: M
|
|
3201
3201
|
} = i, {
|
|
3202
|
-
columnContext:
|
|
3203
|
-
hasLeftFixedColumn:
|
|
3202
|
+
columnContext: I,
|
|
3203
|
+
hasLeftFixedColumn: z,
|
|
3204
3204
|
hasRightFixedColumn: k
|
|
3205
3205
|
} = l, {
|
|
3206
|
-
gridDataStyle:
|
|
3207
|
-
leftFixedGridDataStyle:
|
|
3208
|
-
rightFixedGridDataStyle:
|
|
3206
|
+
gridDataStyle: S,
|
|
3207
|
+
leftFixedGridDataStyle: y,
|
|
3208
|
+
rightFixedGridDataStyle: x
|
|
3209
3209
|
} = f, {
|
|
3210
3210
|
renderDataRow: F
|
|
3211
|
-
} = Po(e, t,
|
|
3212
|
-
function
|
|
3213
|
-
const
|
|
3214
|
-
return B.value.filter((
|
|
3211
|
+
} = Po(e, t, I, B, u, r, s, p, d, m, f, c, v), D = [F];
|
|
3212
|
+
function _(X, te) {
|
|
3213
|
+
const W = M(X);
|
|
3214
|
+
return B.value.filter((T) => T.visible !== !1).map((T, O) => D[T.type](T, W, te, O));
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function b() {
|
|
3217
3217
|
return g("div", {
|
|
3218
3218
|
ref: o,
|
|
3219
3219
|
class: "fv-grid-content-left-fixed"
|
|
3220
3220
|
}, [g("div", {
|
|
3221
3221
|
class: "fv-grid-data",
|
|
3222
|
-
style:
|
|
3223
|
-
}, [
|
|
3222
|
+
style: y.value
|
|
3223
|
+
}, [_(I.value.leftColumns.filter((X) => X.visible), "left")])]);
|
|
3224
3224
|
}
|
|
3225
3225
|
function G() {
|
|
3226
3226
|
return g("div", {
|
|
@@ -3228,24 +3228,24 @@ function ti(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v, B) {
|
|
|
3228
3228
|
class: "fv-grid-content-primary"
|
|
3229
3229
|
}, [g("div", {
|
|
3230
3230
|
class: "fv-grid-data",
|
|
3231
|
-
style:
|
|
3232
|
-
}, [
|
|
3231
|
+
style: S.value
|
|
3232
|
+
}, [_(I.value.primaryColumns.filter((X) => X.visible), "primary")])]);
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function j() {
|
|
3235
3235
|
return g("div", {
|
|
3236
3236
|
ref: a,
|
|
3237
3237
|
class: "fv-grid-content-right-fixed"
|
|
3238
3238
|
}, [g("div", {
|
|
3239
3239
|
class: "fv-grid-data",
|
|
3240
|
-
style:
|
|
3241
|
-
}, [
|
|
3240
|
+
style: x.value
|
|
3241
|
+
}, [_(I.value.rightColumns.filter((X) => X.visible), "right")])]);
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3244
|
-
const
|
|
3245
|
-
return
|
|
3243
|
+
function H() {
|
|
3244
|
+
const X = [];
|
|
3245
|
+
return z.value && X.push(b()), X.push(G()), k.value && X.push(j()), X;
|
|
3246
3246
|
}
|
|
3247
3247
|
return {
|
|
3248
|
-
renderDataArea:
|
|
3248
|
+
renderDataArea: H
|
|
3249
3249
|
};
|
|
3250
3250
|
}
|
|
3251
3251
|
const ni = /* @__PURE__ */ tt({
|
|
@@ -3256,40 +3256,40 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3256
3256
|
var Mt, Et;
|
|
3257
3257
|
const o = ((Mt = e.rowOption) == null ? void 0 : Mt.height) || 28, a = h(20), i = h(e.columns), l = fn(e), {
|
|
3258
3258
|
idField: u
|
|
3259
|
-
} = l, r = h(), s = h(), p = h(), d = h(), m = h(), f = h([]), c = h(!1), v = h(((Et = e.rowOption) == null ? void 0 : Et.wrapContent) || !1), B = mn(e, l), M = pn(e, t),
|
|
3260
|
-
collapseField:
|
|
3261
|
-
} =
|
|
3259
|
+
} = l, r = h(), s = h(), p = h(), d = h(), m = h(), f = h([]), c = h(!1), v = h(((Et = e.rowOption) == null ? void 0 : Et.wrapContent) || !1), B = mn(e, l), M = pn(e, t), I = vn(e), {
|
|
3260
|
+
collapseField: z
|
|
3261
|
+
} = I, {
|
|
3262
3262
|
showLoading: k,
|
|
3263
|
-
renderLoading:
|
|
3264
|
-
} = gn(e, r),
|
|
3265
|
-
dataView:
|
|
3266
|
-
} =
|
|
3263
|
+
renderLoading: S
|
|
3264
|
+
} = gn(e, r), y = yn(e, /* @__PURE__ */ new Map(), M, I, l), {
|
|
3265
|
+
dataView: x
|
|
3266
|
+
} = y, F = hn(e, y, l, f, t), {
|
|
3267
3267
|
showSelection: D,
|
|
3268
|
-
selectedValues:
|
|
3269
|
-
} = F,
|
|
3270
|
-
shouldRenderPagination:
|
|
3271
|
-
} =
|
|
3272
|
-
containerStyleObject:
|
|
3273
|
-
} = Cn(e),
|
|
3274
|
-
applyCommands:
|
|
3275
|
-
} =
|
|
3276
|
-
|
|
3268
|
+
selectedValues: _
|
|
3269
|
+
} = F, b = jo(e, f, y, l, F, t), G = R(() => e.disabled), j = R(() => e.virtualized ? Math.min(y.dataView.value.length, a.value) : y.dataView.value.length), H = bn(e, y), {
|
|
3270
|
+
shouldRenderPagination: X
|
|
3271
|
+
} = H, {
|
|
3272
|
+
containerStyleObject: te
|
|
3273
|
+
} = Cn(e), W = wn(e), {
|
|
3274
|
+
applyCommands: T
|
|
3275
|
+
} = W;
|
|
3276
|
+
T(i);
|
|
3277
3277
|
const {
|
|
3278
|
-
applyColumnSetting:
|
|
3279
|
-
removeColumnSetting:
|
|
3278
|
+
applyColumnSetting: O,
|
|
3279
|
+
removeColumnSetting: U
|
|
3280
3280
|
} = xn(e);
|
|
3281
|
-
e.showSetting &&
|
|
3282
|
-
const N = Sn(e, t),
|
|
3281
|
+
e.showSetting && O(i);
|
|
3282
|
+
const N = Sn(e, t), K = Tn(e), {
|
|
3283
3283
|
applyColumnSorter: ie,
|
|
3284
3284
|
columnContext: fe,
|
|
3285
3285
|
updateColumnRenderContext: Q
|
|
3286
3286
|
} = N;
|
|
3287
|
-
ie(
|
|
3288
|
-
const ae = Bn(e, fe), ye = Fn(e, t, F, l), oe = kn(e, t, l, ye, f), q = In(e), se = On(e, oe, q), je = Mn(e,
|
|
3287
|
+
ie(y, K);
|
|
3288
|
+
const ae = Bn(e, fe), ye = Fn(e, t, F, l), oe = kn(e, t, l, ye, f), q = In(e), se = On(e, oe, q), je = Mn(e, y, oe, I, l, q, se), Ee = En(e, i, y, j, 0, je), {
|
|
3289
3289
|
getVisualData: Ie
|
|
3290
3290
|
} = Ee, Xe = Dn(e, fe), Ue = Rn(e, F), {
|
|
3291
3291
|
sidebarWidth: Ne
|
|
3292
|
-
} = Ue, he = Pn(e,
|
|
3292
|
+
} = Ue, he = Pn(e, y, f, fe, Ee, j, 0, Ne), {
|
|
3293
3293
|
onWheel: Ke,
|
|
3294
3294
|
dataGridWidth: ce,
|
|
3295
3295
|
viewPortHeight: ze,
|
|
@@ -3298,26 +3298,26 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3298
3298
|
updateVisibleRowsOnLatestVisibleScope: Ae
|
|
3299
3299
|
} = he, Fe = jn(e, fe, s, He, ae), {
|
|
3300
3300
|
calculateColumnsSize: Ve
|
|
3301
|
-
} = Fe, De = Nn(), Ge = Hn(s, m,
|
|
3302
|
-
const
|
|
3301
|
+
} = Fe, De = Nn(), Ge = Hn(s, m, y, De, he), E = $n(e, t, N, y, ae, B, he), ne = R(() => {
|
|
3302
|
+
const A = {
|
|
3303
3303
|
"fv-grid": !0,
|
|
3304
3304
|
"fv-grid-bordered": e.showBorder,
|
|
3305
3305
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
3306
3306
|
"fv-datagrid-strip": e.showStripe
|
|
3307
3307
|
};
|
|
3308
|
-
return cn(
|
|
3308
|
+
return cn(A, e.customClass);
|
|
3309
3309
|
}), me = R(() => ({
|
|
3310
3310
|
"fv-grid-content": !0,
|
|
3311
3311
|
"fv-grid-content-hover": c.value,
|
|
3312
3312
|
"fv-grid-wrap-content": v.value
|
|
3313
3313
|
})), {
|
|
3314
3314
|
renderDataArea: ge
|
|
3315
|
-
} = ti(e, t, p, d, m, Xe, N,
|
|
3315
|
+
} = ti(e, t, p, d, m, Xe, N, y, oe, I, ye, F, b, he, Ee, q, f), {
|
|
3316
3316
|
renderGridHeader: We,
|
|
3317
3317
|
renderGridColumnResizeOverlay: et,
|
|
3318
|
-
shouldShowHeader:
|
|
3319
|
-
} = Vn(e, t, s, d, m, N,
|
|
3320
|
-
renderDataGridSidebar:
|
|
3318
|
+
shouldShowHeader: w
|
|
3319
|
+
} = Vn(e, t, s, d, m, N, y, E, Ge, M, De, Fe, ae, F, Ue, K, he, He, f), {
|
|
3320
|
+
renderDataGridSidebar: Z
|
|
3321
3321
|
} = Ln(e, ye, F, Ue, he), {
|
|
3322
3322
|
renderDisableMask: de
|
|
3323
3323
|
} = zn(), {
|
|
@@ -3326,76 +3326,76 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3326
3326
|
renderVerticalScrollbar: pe
|
|
3327
3327
|
} = Gn(e, s, he);
|
|
3328
3328
|
function Ye() {
|
|
3329
|
-
var
|
|
3330
|
-
if (s.value && s.value.clientHeight > 0 && ((
|
|
3329
|
+
var A, ee, Ce;
|
|
3330
|
+
if (s.value && s.value.clientHeight > 0 && ((A = s.value) == null ? void 0 : A.clientWidth) > 0) {
|
|
3331
3331
|
const Se = Math.ceil(s.value.clientHeight / o);
|
|
3332
|
-
Se > a.value && (a.value = Se, Ae()), ze.value = ((
|
|
3332
|
+
Se > a.value && (a.value = Se, Ae()), ze.value = ((ee = p.value) == null ? void 0 : ee.clientHeight) || 0, ce.value = ((Ce = s.value) == null ? void 0 : Ce.clientWidth) || 0, Ve();
|
|
3333
3333
|
}
|
|
3334
3334
|
}
|
|
3335
3335
|
vt(() => {
|
|
3336
|
-
s.value && (a.value = Math.max(Math.ceil(s.value.clientHeight / o), a.value), f.value = Ie(0,
|
|
3336
|
+
s.value && (a.value = Math.max(Math.ceil(s.value.clientHeight / o), a.value), f.value = Ie(0, j.value + 0 - 1), dn(s.value, Ye), Ve(), mt(() => {
|
|
3337
3337
|
s.value && (ce.value = s.value.clientWidth), p.value && (He.value = p.value.clientWidth, ze.value = p.value.clientHeight);
|
|
3338
|
-
})), k.value &&
|
|
3338
|
+
})), k.value && S();
|
|
3339
3339
|
}), bt(() => {
|
|
3340
3340
|
}), ve(He, () => {
|
|
3341
3341
|
s.value && Ve();
|
|
3342
3342
|
});
|
|
3343
|
-
function nt(
|
|
3344
|
-
|
|
3343
|
+
function nt(A) {
|
|
3344
|
+
y.collapseTo(A), y.reOrderVisibleIndex(), $e();
|
|
3345
3345
|
}
|
|
3346
|
-
function Je(
|
|
3347
|
-
|
|
3346
|
+
function Je(A) {
|
|
3347
|
+
y.expandTo(A), y.reOrderVisibleIndex(), $e();
|
|
3348
3348
|
}
|
|
3349
3349
|
function lt() {
|
|
3350
|
-
const
|
|
3351
|
-
return
|
|
3350
|
+
const A = F.getSelectionRow();
|
|
3351
|
+
return A ? A.dataIndex - 1 : -1;
|
|
3352
3352
|
}
|
|
3353
3353
|
function Ct() {
|
|
3354
|
-
const
|
|
3355
|
-
|
|
3354
|
+
const A = lt();
|
|
3355
|
+
y.insertNewDataItem(A), f.value = Ie(0, j.value + 0 - 1);
|
|
3356
3356
|
}
|
|
3357
3357
|
function wt() {
|
|
3358
|
-
const
|
|
3359
|
-
|
|
3358
|
+
const A = lt();
|
|
3359
|
+
y.insertNewChildDataItem(A), f.value = Ie(0, j.value + 0 - 1);
|
|
3360
3360
|
}
|
|
3361
|
-
function xt(
|
|
3362
|
-
const Ce = f.value.find((ke) => ke.raw[u.value] ===
|
|
3363
|
-
|
|
3361
|
+
function xt(A, ee) {
|
|
3362
|
+
const Ce = f.value.find((ke) => ke.raw[u.value] === ee), Se = Ce ? Ce.dataIndex - 1 : -1;
|
|
3363
|
+
y.insertNewChildDataItems(A, Se);
|
|
3364
3364
|
}
|
|
3365
3365
|
function St() {
|
|
3366
|
-
const
|
|
3367
|
-
|
|
3366
|
+
const A = lt(), ee = b.getNextSelectableHierarchyItemId(A);
|
|
3367
|
+
y.removeHierarchyDataItem(A), f.value = Ie(0, j.value + 0 - 1), ee && F.selectItemById(ee);
|
|
3368
3368
|
}
|
|
3369
|
-
function gt(
|
|
3370
|
-
oe.onEditingRow(
|
|
3369
|
+
function gt(A) {
|
|
3370
|
+
oe.onEditingRow(A);
|
|
3371
3371
|
}
|
|
3372
|
-
function Tt(
|
|
3373
|
-
oe.acceptEditingRow(
|
|
3372
|
+
function Tt(A) {
|
|
3373
|
+
oe.acceptEditingRow(A);
|
|
3374
3374
|
}
|
|
3375
|
-
function
|
|
3376
|
-
oe.cancelEditingRow(
|
|
3375
|
+
function C(A) {
|
|
3376
|
+
oe.cancelEditingRow(A);
|
|
3377
3377
|
}
|
|
3378
|
-
function
|
|
3379
|
-
|
|
3378
|
+
function P(A) {
|
|
3379
|
+
A && (i.value = A, T(i), Q(i.value), ie(y, K), Ve());
|
|
3380
3380
|
}
|
|
3381
|
-
ve(() => e.columns, (
|
|
3382
|
-
|
|
3381
|
+
ve(() => e.columns, (A) => {
|
|
3382
|
+
P(A);
|
|
3383
3383
|
});
|
|
3384
|
-
function
|
|
3385
|
-
|
|
3384
|
+
function V(A, ee) {
|
|
3385
|
+
A && (y.load(A), y.reOrderVisibleIndex(), ee != null && ee.keepScrollPosition ? he.scrollTo(he.offsetY.value) : $e());
|
|
3386
3386
|
}
|
|
3387
|
-
function J(
|
|
3388
|
-
F.selectItemById(
|
|
3387
|
+
function J(A) {
|
|
3388
|
+
F.selectItemById(A);
|
|
3389
3389
|
}
|
|
3390
|
-
function re(
|
|
3391
|
-
const
|
|
3392
|
-
|
|
3390
|
+
function re(A) {
|
|
3391
|
+
const ee = f.value.find((Ce) => Ce.raw[l.idField.value] === A);
|
|
3392
|
+
ee && ye.clickRowItem(ee);
|
|
3393
3393
|
}
|
|
3394
|
-
function le(
|
|
3395
|
-
ye.activeRowById(
|
|
3394
|
+
function le(A) {
|
|
3395
|
+
ye.activeRowById(A);
|
|
3396
3396
|
}
|
|
3397
|
-
function Re(
|
|
3398
|
-
F.selectItemByIds(
|
|
3397
|
+
function Re(A) {
|
|
3398
|
+
F.selectItemByIds(A);
|
|
3399
3399
|
}
|
|
3400
3400
|
function Be() {
|
|
3401
3401
|
return F.getSelectedItems();
|
|
@@ -3409,17 +3409,17 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3409
3409
|
function qe() {
|
|
3410
3410
|
return F.getSelectionRow();
|
|
3411
3411
|
}
|
|
3412
|
-
function Me(
|
|
3413
|
-
F.unSelectItemByIds(
|
|
3412
|
+
function Me(A) {
|
|
3413
|
+
F.unSelectItemByIds(A);
|
|
3414
3414
|
}
|
|
3415
3415
|
function xe() {
|
|
3416
3416
|
return F.currentSelectedDataId.value;
|
|
3417
3417
|
}
|
|
3418
|
-
function rt(
|
|
3419
|
-
const Se =
|
|
3418
|
+
function rt(A, ee, Ce) {
|
|
3419
|
+
const Se = x.value.find((ke) => ke[u.value] === A);
|
|
3420
3420
|
if (Se) {
|
|
3421
3421
|
if (Object.keys(Se).forEach((L) => {
|
|
3422
|
-
Object.prototype.hasOwnProperty.call(
|
|
3422
|
+
Object.prototype.hasOwnProperty.call(ee, L) && (Se[L] = ee[L]);
|
|
3423
3423
|
}), Ce) {
|
|
3424
3424
|
const {
|
|
3425
3425
|
collapseField: L,
|
|
@@ -3427,9 +3427,9 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3427
3427
|
checkedField: Te,
|
|
3428
3428
|
visibleField: Le
|
|
3429
3429
|
} = Ce;
|
|
3430
|
-
L && !ot(
|
|
3430
|
+
L && !ot(ee[L]) && (Se.__fv_collapse__ = ee[L]), Te && !ot(ee[Te]) && (Se.__fv_checked__ = ee[Te]), ue && !ot(ee[ue]) && (Se.__fv_disabled__ = ee[ue]), Le && !ot(ee[Le]) && (Se.__fv_visible__ = ee[Le]);
|
|
3431
3431
|
}
|
|
3432
|
-
const ke = f.value.find((L) => L.raw[u.value] ===
|
|
3432
|
+
const ke = f.value.find((L) => L.raw[u.value] === A), Bt = f.value.findIndex((L) => L.raw[u.value] === A);
|
|
3433
3433
|
if (ke) {
|
|
3434
3434
|
if (ke.raw = Se, Object.keys(ke.data).forEach((L) => {
|
|
3435
3435
|
ke.data[L].updateData(Se);
|
|
@@ -3440,34 +3440,34 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3440
3440
|
checkedField: Te,
|
|
3441
3441
|
visibleField: Le
|
|
3442
3442
|
} = Ce;
|
|
3443
|
-
L && !ot(
|
|
3443
|
+
L && !ot(ee[L]) && (ke.collapse = ee[L]), Te && !ot(ee[Te]) && (ke.checked = ee[Te]), ue && !ot(ee[ue]) && (ke.disabled = ee[ue]), Le && !ot(ee[Le]) && (ke.visible = ee[Le]);
|
|
3444
3444
|
}
|
|
3445
|
-
f.value = [...f.value.slice(0, Bt), ke, ...f.value.slice(Bt + 1)],
|
|
3445
|
+
f.value = [...f.value.slice(0, Bt), ke, ...f.value.slice(Bt + 1)], y.updateSummary();
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
|
-
function st(
|
|
3450
|
-
return Object.prototype.hasOwnProperty.call(
|
|
3449
|
+
function st(A) {
|
|
3450
|
+
return Object.prototype.hasOwnProperty.call(A, "raw") ? y.hasRealChildren(A.raw) : y.hasRealChildren(A);
|
|
3451
3451
|
}
|
|
3452
|
-
function ut(
|
|
3453
|
-
const
|
|
3454
|
-
return
|
|
3452
|
+
function ut(A) {
|
|
3453
|
+
const ee = y.dataView.value.find((Ce) => Ce[u.value] === A);
|
|
3454
|
+
return ee ? ee[z.value] : "";
|
|
3455
3455
|
}
|
|
3456
3456
|
function Vt() {
|
|
3457
|
-
return
|
|
3457
|
+
return z.value;
|
|
3458
3458
|
}
|
|
3459
|
-
ve(() => e.showSetting, (
|
|
3460
|
-
|
|
3459
|
+
ve(() => e.showSetting, (A, ee) => {
|
|
3460
|
+
A !== ee && (A ? O(i) : U(i), P(i.value));
|
|
3461
3461
|
});
|
|
3462
|
-
function Lt(
|
|
3463
|
-
return f.value.filter((
|
|
3462
|
+
function Lt(A) {
|
|
3463
|
+
return f.value.filter((ee) => A.includes(ee.raw[e.idField]));
|
|
3464
3464
|
}
|
|
3465
|
-
function It(
|
|
3466
|
-
const
|
|
3465
|
+
function It(A) {
|
|
3466
|
+
const ee = l.idField.value, Ce = f.value.find((Se) => Se.raw[ee] === A);
|
|
3467
3467
|
Ce && ye.selectRow(Ce);
|
|
3468
3468
|
}
|
|
3469
3469
|
function zt() {
|
|
3470
|
-
F.keepSelectingOnPaging.value || Oe(),
|
|
3470
|
+
F.keepSelectingOnPaging.value || Oe(), y.updateVisibleDataSummary(f.value);
|
|
3471
3471
|
}
|
|
3472
3472
|
t.expose({
|
|
3473
3473
|
activeRowById: le,
|
|
@@ -3479,9 +3479,9 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3479
3479
|
removeDataItem: St,
|
|
3480
3480
|
editDataItem: gt,
|
|
3481
3481
|
acceptDataItem: Tt,
|
|
3482
|
-
cancelDataItem:
|
|
3483
|
-
updateColumns:
|
|
3484
|
-
updateDataSource:
|
|
3482
|
+
cancelDataItem: C,
|
|
3483
|
+
updateColumns: P,
|
|
3484
|
+
updateDataSource: V,
|
|
3485
3485
|
selectItemById: J,
|
|
3486
3486
|
selectItemByIds: Re,
|
|
3487
3487
|
getSelectedItems: Be,
|
|
@@ -3499,40 +3499,40 @@ const ni = /* @__PURE__ */ tt({
|
|
|
3499
3499
|
updateDerivedData: zt
|
|
3500
3500
|
});
|
|
3501
3501
|
const At = R(() => {
|
|
3502
|
-
const
|
|
3503
|
-
return he.shouldShowHorizontalScrollbar.value && (
|
|
3502
|
+
const A = {};
|
|
3503
|
+
return he.shouldShowHorizontalScrollbar.value && (A.paddingBottom = "10px"), he.shouldShowVirticalScrollbar.value && (A.paddingRight = "10px"), A;
|
|
3504
3504
|
}), Gt = R(() => ({
|
|
3505
|
-
...
|
|
3505
|
+
...te.value,
|
|
3506
3506
|
borderRadius: "5px"
|
|
3507
3507
|
}));
|
|
3508
|
-
_n(e, t,
|
|
3508
|
+
_n(e, t, y, he, H, F);
|
|
3509
3509
|
const Wt = R(() => ({
|
|
3510
3510
|
"d-flex": !0,
|
|
3511
|
-
"justify-content-between":
|
|
3512
|
-
"justify-content-end":
|
|
3511
|
+
"justify-content-between": X.value && D.value,
|
|
3512
|
+
"justify-content-end": X.value && !D.value,
|
|
3513
3513
|
"position-relative": !0
|
|
3514
3514
|
})), Ot = R(() => ({
|
|
3515
3515
|
"d-flex": !0,
|
|
3516
3516
|
"align-items-center": !0
|
|
3517
3517
|
})), {
|
|
3518
3518
|
renderDataGridSummary: _t
|
|
3519
|
-
} = qn(e,
|
|
3519
|
+
} = qn(e, y, N);
|
|
3520
3520
|
return () => g("div", {
|
|
3521
3521
|
ref: r,
|
|
3522
3522
|
class: ne.value,
|
|
3523
3523
|
style: Gt.value,
|
|
3524
3524
|
onWheel: Ke
|
|
3525
|
-
}, [s.value &&
|
|
3525
|
+
}, [s.value && w.value && We(), g("div", {
|
|
3526
3526
|
ref: s,
|
|
3527
3527
|
class: me.value,
|
|
3528
3528
|
onMouseover: () => c.value = !0,
|
|
3529
3529
|
onMouseleave: () => c.value = !1,
|
|
3530
3530
|
style: At.value
|
|
3531
|
-
}, [s.value &&
|
|
3531
|
+
}, [s.value && Z(f), s.value && ge(), s.value && _e.value && be(), s.value && Y(), s.value && pe()]), s.value && _t(), D.value && g("div", {
|
|
3532
3532
|
class: Wt.value
|
|
3533
3533
|
}, [D.value && g("div", {
|
|
3534
3534
|
class: Ot.value
|
|
3535
|
-
}, [g("div", null, ["已选:" +
|
|
3535
|
+
}, [g("div", null, ["已选:" + _.value.length, ht(" 条")])])]), et(), G.value && de()]);
|
|
3536
3536
|
}
|
|
3537
3537
|
});
|
|
3538
3538
|
Zt(ni);
|
|
@@ -4073,9 +4073,9 @@ function Qi(e, t) {
|
|
|
4073
4073
|
f = "" + f;
|
|
4074
4074
|
const v = f.length;
|
|
4075
4075
|
let B = "", M = 0;
|
|
4076
|
-
for (let
|
|
4077
|
-
const
|
|
4078
|
-
if (M++, encodeURI(
|
|
4076
|
+
for (let I = 0; I < v; I++) {
|
|
4077
|
+
const z = f.charAt(I);
|
|
4078
|
+
if (M++, encodeURI(z).length > 4 && M++, B = B.concat(z), M >= c)
|
|
4079
4079
|
return B = B.concat("..."), B;
|
|
4080
4080
|
}
|
|
4081
4081
|
if (M < c)
|
|
@@ -4173,10 +4173,10 @@ function el(e, t, n, o) {
|
|
|
4173
4173
|
function tl(e, t, n, o, a) {
|
|
4174
4174
|
const i = h(e.type), l = 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(() => !!(l.value && l.value.length)), f = R(() => u.value && u.value.message && u.value.detail), c = R(() => !(l.value && l.value.length) && (d.value || p.value)), v = el(e, n, o, a);
|
|
4175
4175
|
r.value === "关闭" ? r.value = a.close : r.value === "知道了" && (r.value = a.exception.roger);
|
|
4176
|
-
function B(
|
|
4176
|
+
function B(I) {
|
|
4177
4177
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
4178
4178
|
}
|
|
4179
|
-
function M(
|
|
4179
|
+
function M(I) {
|
|
4180
4180
|
i.value === "question" && t.emit("accept"), t.emit("close");
|
|
4181
4181
|
}
|
|
4182
4182
|
return () => g("div", {
|
|
@@ -4189,13 +4189,13 @@ function tl(e, t, n, o, a) {
|
|
|
4189
4189
|
type: "button",
|
|
4190
4190
|
class: "btn btn-primary btn-lg",
|
|
4191
4191
|
onClick: M
|
|
4192
|
-
}, [r.value]), m.value && l.value.length && l.value.map((
|
|
4192
|
+
}, [r.value]), m.value && l.value.length && l.value.map((I) => g("button", {
|
|
4193
4193
|
type: "button",
|
|
4194
|
-
onClick:
|
|
4195
|
-
class:
|
|
4196
|
-
}, [
|
|
4197
|
-
class:
|
|
4198
|
-
}, null),
|
|
4194
|
+
onClick: I.handle,
|
|
4195
|
+
class: I.class
|
|
4196
|
+
}, [I.iconClass && g("span", {
|
|
4197
|
+
class: I.iconClass
|
|
4198
|
+
}, null), I.text]))]);
|
|
4199
4199
|
}
|
|
4200
4200
|
function nl(e) {
|
|
4201
4201
|
const { t, locale: n } = Qt();
|
|
@@ -4233,8 +4233,8 @@ const jt = /* @__PURE__ */ tt({
|
|
|
4233
4233
|
"modal-tips": !0,
|
|
4234
4234
|
"d-flex": !0,
|
|
4235
4235
|
"flex-row": !0
|
|
4236
|
-
},
|
|
4237
|
-
return M[
|
|
4236
|
+
}, I = `messager-type-${o.value}`;
|
|
4237
|
+
return M[I] = !0, M;
|
|
4238
4238
|
}), u = R(() => {
|
|
4239
4239
|
const M = {
|
|
4240
4240
|
cursor: "default"
|
|
@@ -4401,11 +4401,11 @@ function ol(e, t, n, o, a) {
|
|
|
4401
4401
|
if (await r() && s.value) {
|
|
4402
4402
|
const B = !!t.slots.default;
|
|
4403
4403
|
if (i.value === "Modal") {
|
|
4404
|
-
const M = e.modalOptions,
|
|
4404
|
+
const M = e.modalOptions, I = p == null ? void 0 : p.open({
|
|
4405
4405
|
...M,
|
|
4406
4406
|
render: () => t.slots.default && t.slots.default()
|
|
4407
4407
|
});
|
|
4408
|
-
d.value =
|
|
4408
|
+
d.value = I == null ? void 0 : I.modalRef;
|
|
4409
4409
|
}
|
|
4410
4410
|
i.value === "Overlay" && Yo.show({
|
|
4411
4411
|
// host: buttonEditRef.value,
|
|
@@ -4476,44 +4476,44 @@ function il(e, t, n, o, a) {
|
|
|
4476
4476
|
"f-state-focus": c.value,
|
|
4477
4477
|
"input-group--has-clear": e.enableClear && s.value
|
|
4478
4478
|
}));
|
|
4479
|
-
function M(
|
|
4480
|
-
n.value =
|
|
4479
|
+
function M(b, G = !0) {
|
|
4480
|
+
n.value = b, G && (t.emit("change", b), t.emit("update:modelValue", b));
|
|
4481
4481
|
}
|
|
4482
|
-
function
|
|
4483
|
-
u.value = !1, M(
|
|
4482
|
+
function I(b) {
|
|
4483
|
+
u.value = !1, M(b, !0);
|
|
4484
4484
|
}
|
|
4485
4485
|
ve(
|
|
4486
4486
|
() => e.modelValue,
|
|
4487
|
-
(
|
|
4488
|
-
n.value =
|
|
4487
|
+
(b) => {
|
|
4488
|
+
n.value = b;
|
|
4489
4489
|
}
|
|
4490
4490
|
);
|
|
4491
|
-
function
|
|
4492
|
-
f.value = !1, t.emit("blur",
|
|
4491
|
+
function z(b) {
|
|
4492
|
+
f.value = !1, t.emit("blur", b), b.stopPropagation();
|
|
4493
4493
|
}
|
|
4494
|
-
function k(
|
|
4495
|
-
t.emit("click",
|
|
4494
|
+
function k(b) {
|
|
4495
|
+
t.emit("click", b), r(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
|
|
4496
4496
|
}
|
|
4497
|
-
function
|
|
4498
|
-
!e.disable && !e.readonly && (f.value = !0, m.value || (t.emit("focus",
|
|
4497
|
+
function S(b) {
|
|
4498
|
+
!e.disable && !e.readonly && (f.value = !0, m.value || (t.emit("focus", b), l.value && !u.value && a.popup()));
|
|
4499
4499
|
}
|
|
4500
|
-
function b
|
|
4501
|
-
t.emit("input",
|
|
4502
|
-
const G =
|
|
4500
|
+
function y(b) {
|
|
4501
|
+
t.emit("input", b);
|
|
4502
|
+
const G = b.target.value;
|
|
4503
4503
|
o.value = G, n.value !== G && M(G, e.updateOn === "change"), i.value && !u.value && a.popup();
|
|
4504
4504
|
}
|
|
4505
|
-
function
|
|
4506
|
-
|
|
4505
|
+
function x(b) {
|
|
4506
|
+
b.target.tagName !== "INPUT" && b.preventDefault(), b.stopPropagation();
|
|
4507
4507
|
}
|
|
4508
|
-
function F(
|
|
4509
|
-
t.emit("keydown",
|
|
4508
|
+
function F(b) {
|
|
4509
|
+
t.emit("keydown", b);
|
|
4510
4510
|
}
|
|
4511
|
-
function D(
|
|
4512
|
-
|
|
4511
|
+
function D(b) {
|
|
4512
|
+
b.key === "Enter" && (i.value || l.value) && a.hidePopup(), t.emit("keyup", b);
|
|
4513
4513
|
}
|
|
4514
|
-
function
|
|
4515
|
-
const G =
|
|
4516
|
-
|
|
4514
|
+
function _(b) {
|
|
4515
|
+
const G = b.target.value;
|
|
4516
|
+
b.stopPropagation(), M(G);
|
|
4517
4517
|
}
|
|
4518
4518
|
return {
|
|
4519
4519
|
hasFocusedTextBox: c,
|
|
@@ -4524,15 +4524,15 @@ function il(e, t, n, o, a) {
|
|
|
4524
4524
|
inputGroupClass: B,
|
|
4525
4525
|
hasClearClass: s,
|
|
4526
4526
|
changeTextBoxValue: M,
|
|
4527
|
-
commitValue:
|
|
4528
|
-
onBlurTextBox:
|
|
4527
|
+
commitValue: I,
|
|
4528
|
+
onBlurTextBox: z,
|
|
4529
4529
|
onClickTextBox: k,
|
|
4530
|
-
onFocusTextBox:
|
|
4531
|
-
onInput:
|
|
4530
|
+
onFocusTextBox: S,
|
|
4531
|
+
onInput: y,
|
|
4532
4532
|
onKeyDownTextBox: F,
|
|
4533
4533
|
onKeyUpTextBox: D,
|
|
4534
|
-
onMouseDownTextBox:
|
|
4535
|
-
onTextBoxValueChange:
|
|
4534
|
+
onMouseDownTextBox: x,
|
|
4535
|
+
onTextBoxValueChange: _
|
|
4536
4536
|
};
|
|
4537
4537
|
}
|
|
4538
4538
|
const dt = "FarrisVue_PopoverInstancesKey";
|
|
@@ -4594,23 +4594,20 @@ function rl(e, t, n) {
|
|
|
4594
4594
|
onTextBoxValueChange: v
|
|
4595
4595
|
} = n, B = h(e.id), {
|
|
4596
4596
|
uuid: M
|
|
4597
|
-
} = Do()
|
|
4598
|
-
"border-top-right-radius": "6px",
|
|
4599
|
-
"border-bottom-right-radius": "6px"
|
|
4600
|
-
}));
|
|
4597
|
+
} = Do();
|
|
4601
4598
|
vt(() => {
|
|
4602
|
-
var
|
|
4603
|
-
e.selectOnCreated && ((
|
|
4599
|
+
var y, x;
|
|
4600
|
+
e.selectOnCreated && ((y = o.value) == null || y.select()), e.focusOnCreated && ((x = o.value) == null || x.focus({
|
|
4604
4601
|
preventScroll: !0
|
|
4605
4602
|
})), B.value || (B.value = "button-edit_" + M(8)), B.value = B.value + "-textbox";
|
|
4606
4603
|
});
|
|
4607
|
-
const
|
|
4608
|
-
|
|
4609
|
-
},
|
|
4610
|
-
|
|
4604
|
+
const I = h(!1), z = (y) => {
|
|
4605
|
+
y.preventDefault(), I.value = !0;
|
|
4606
|
+
}, k = (y) => {
|
|
4607
|
+
y.preventDefault(), I.value = !1, d(y);
|
|
4611
4608
|
};
|
|
4612
|
-
function
|
|
4613
|
-
|
|
4609
|
+
function S(y) {
|
|
4610
|
+
I.value || d(y);
|
|
4614
4611
|
}
|
|
4615
4612
|
return () => g("input", {
|
|
4616
4613
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4618,7 +4615,6 @@ function rl(e, t, n) {
|
|
|
4618
4615
|
name: "input-group-value",
|
|
4619
4616
|
autocomplete: e.autoComplete ? "on" : "off",
|
|
4620
4617
|
class: i.value,
|
|
4621
|
-
style: O.value,
|
|
4622
4618
|
disabled: e.disable,
|
|
4623
4619
|
maxlength: e.maxLength,
|
|
4624
4620
|
minlength: e.minLength,
|
|
@@ -4632,12 +4628,12 @@ function rl(e, t, n) {
|
|
|
4632
4628
|
onChange: v,
|
|
4633
4629
|
onClick: s,
|
|
4634
4630
|
onFocus: p,
|
|
4635
|
-
onInput:
|
|
4631
|
+
onInput: S,
|
|
4636
4632
|
onKeydown: m,
|
|
4637
4633
|
onKeyup: f,
|
|
4638
4634
|
onMousedown: c,
|
|
4639
|
-
onCompositionend:
|
|
4640
|
-
onCompositionstart:
|
|
4635
|
+
onCompositionend: k,
|
|
4636
|
+
onCompositionstart: z
|
|
4641
4637
|
}, null);
|
|
4642
4638
|
}
|
|
4643
4639
|
function sl(e, t, n) {
|
|
@@ -4761,47 +4757,44 @@ const mo = /* @__PURE__ */ tt({
|
|
|
4761
4757
|
inputGroupClass: v
|
|
4762
4758
|
} = m, B = al(e, t, a, f, d, m), {
|
|
4763
4759
|
onMouseEnterTextBox: M,
|
|
4764
|
-
onMouseLeaveTextBox:
|
|
4765
|
-
} = B,
|
|
4766
|
-
const
|
|
4760
|
+
onMouseLeaveTextBox: I
|
|
4761
|
+
} = B, z = R(() => {
|
|
4762
|
+
const j = {
|
|
4767
4763
|
"f-button-edit": !0,
|
|
4768
4764
|
"f-cmp-inputgroup": !0,
|
|
4769
4765
|
"f-button-edit-nowrap": !e.wrapText
|
|
4770
4766
|
};
|
|
4771
|
-
return o.value && o.value.split(" ").reduce((
|
|
4767
|
+
return o.value && o.value.split(" ").reduce((H, X) => (H[X] = !0, H), j), j;
|
|
4772
4768
|
}), k = R(() => ({
|
|
4773
4769
|
overflow: e.wrapText ? "hidden" : ""
|
|
4774
|
-
})), T = R(() => ({
|
|
4775
|
-
paddingLeft: "3px",
|
|
4776
|
-
backgroundColor: "#fff"
|
|
4777
4770
|
}));
|
|
4778
|
-
function
|
|
4771
|
+
function S() {
|
|
4779
4772
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
4780
4773
|
return 0;
|
|
4781
|
-
let
|
|
4782
|
-
const
|
|
4783
|
-
return
|
|
4774
|
+
let j = 0;
|
|
4775
|
+
const H = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
4776
|
+
return H && H.length && (j = H.map((X) => X.offsetTop).filter((X) => X > 20).length), j;
|
|
4784
4777
|
}
|
|
4785
|
-
const
|
|
4778
|
+
const y = h(S());
|
|
4786
4779
|
To(() => {
|
|
4787
|
-
|
|
4780
|
+
y.value = S();
|
|
4788
4781
|
});
|
|
4789
|
-
function
|
|
4790
|
-
return e.multiSelect && e.inputType === "tag" ? () => g(it, null, [sl(e, a, m)(), !!
|
|
4782
|
+
function x() {
|
|
4783
|
+
return e.multiSelect && e.inputType === "tag" ? () => g(it, null, [sl(e, a, m)(), !!y.value && g("div", {
|
|
4791
4784
|
class: "d-flex flex-row mr-2 more-tags",
|
|
4792
4785
|
"more-tags": !0
|
|
4793
4786
|
}, [g("span", {
|
|
4794
4787
|
class: "multi--more-text"
|
|
4795
|
-
}, [ht("+"),
|
|
4788
|
+
}, [ht("+"), y.value])])]) : rl(e, a, m);
|
|
4796
4789
|
}
|
|
4797
|
-
let
|
|
4790
|
+
let F = x();
|
|
4798
4791
|
ve([() => e.multiSelect, () => e.inputType], () => {
|
|
4799
|
-
|
|
4792
|
+
F = x();
|
|
4800
4793
|
});
|
|
4801
4794
|
const {
|
|
4802
|
-
renderButtonGroup:
|
|
4803
|
-
buttonHandleElement:
|
|
4804
|
-
} = ul(e, t, p, B),
|
|
4795
|
+
renderButtonGroup: D,
|
|
4796
|
+
buttonHandleElement: _
|
|
4797
|
+
} = ul(e, t, p, B), b = cl(e, t, i), G = {
|
|
4805
4798
|
displayText: d,
|
|
4806
4799
|
commitValue: c,
|
|
4807
4800
|
elementRef: n,
|
|
@@ -4811,34 +4804,33 @@ const mo = /* @__PURE__ */ tt({
|
|
|
4811
4804
|
shouldPopupContent: l,
|
|
4812
4805
|
togglePopup: s,
|
|
4813
4806
|
openDialog: () => {
|
|
4814
|
-
|
|
4807
|
+
_.value && e.buttonBehavior === "Modal" && _.value.click();
|
|
4815
4808
|
},
|
|
4816
4809
|
getModal: () => {
|
|
4817
|
-
var
|
|
4818
|
-
return e.buttonBehavior === "Modal" ? (
|
|
4810
|
+
var j;
|
|
4811
|
+
return e.buttonBehavior === "Modal" ? (j = p.modalRef.value) == null ? void 0 : j.value : null;
|
|
4819
4812
|
}
|
|
4820
4813
|
};
|
|
4821
4814
|
return vt(() => {
|
|
4822
|
-
n.value.componentInstance =
|
|
4815
|
+
n.value.componentInstance = G, window.onresize = () => {
|
|
4823
4816
|
document.body.click();
|
|
4824
4817
|
};
|
|
4825
4818
|
}), Bo(() => {
|
|
4826
|
-
var
|
|
4827
|
-
window.onresize = null, (
|
|
4828
|
-
}), t.expose(
|
|
4829
|
-
var
|
|
4819
|
+
var j;
|
|
4820
|
+
window.onresize = null, (j = window[dt]) == null || j.delete(n.value);
|
|
4821
|
+
}), t.expose(G), () => {
|
|
4822
|
+
var j, H;
|
|
4830
4823
|
return g(it, null, [g("div", Ht(t.attrs, {
|
|
4831
4824
|
ref: n,
|
|
4832
|
-
class:
|
|
4825
|
+
class: z.value,
|
|
4833
4826
|
id: e.id ? e.id : void 0,
|
|
4834
4827
|
style: k.value
|
|
4835
4828
|
}), [g("div", {
|
|
4836
4829
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
4837
4830
|
class: v.value,
|
|
4838
|
-
style: T.value,
|
|
4839
4831
|
onMouseenter: M,
|
|
4840
|
-
onMouseleave:
|
|
4841
|
-
}, [(
|
|
4832
|
+
onMouseleave: I
|
|
4833
|
+
}, [(H = (j = t.slots).precontent) == null ? void 0 : H.call(j), F(), D()])]), l.value && b()]);
|
|
4842
4834
|
};
|
|
4843
4835
|
}
|
|
4844
4836
|
});
|
|
@@ -4980,33 +4972,33 @@ function fl(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v) {
|
|
|
4980
4972
|
isNull: B,
|
|
4981
4973
|
isUndefined: M
|
|
4982
4974
|
} = Ro(), {
|
|
4983
|
-
totalItems:
|
|
4984
|
-
rawView:
|
|
4975
|
+
totalItems: I,
|
|
4976
|
+
rawView: z
|
|
4985
4977
|
} = v, {
|
|
4986
4978
|
calculateCellPositionInRow: k,
|
|
4987
|
-
cellKey:
|
|
4988
|
-
cellPosition:
|
|
4989
|
-
rowKey:
|
|
4979
|
+
cellKey: S,
|
|
4980
|
+
cellPosition: y,
|
|
4981
|
+
rowKey: x,
|
|
4990
4982
|
rowPosition: F,
|
|
4991
4983
|
rowSpanCellPosition: D,
|
|
4992
|
-
groupCellPosition:
|
|
4993
|
-
summaryCellPosition:
|
|
4984
|
+
groupCellPosition: _,
|
|
4985
|
+
summaryCellPosition: b
|
|
4994
4986
|
} = l, {
|
|
4995
4987
|
cellContentClass: G,
|
|
4996
|
-
cellContentPosition:
|
|
4997
|
-
cellContentClassWithEllipsis:
|
|
4988
|
+
cellContentPosition: j,
|
|
4989
|
+
cellContentClassWithEllipsis: H
|
|
4998
4990
|
} = i, {
|
|
4999
|
-
collpaseGroupIconClass:
|
|
4991
|
+
collpaseGroupIconClass: X
|
|
5000
4992
|
} = s, {
|
|
5001
|
-
gridCellClass:
|
|
5002
|
-
gridRowClass:
|
|
5003
|
-
onClickRow:
|
|
5004
|
-
onMouseoverRow:
|
|
5005
|
-
onMouseoutRow:
|
|
4993
|
+
gridCellClass: te,
|
|
4994
|
+
gridRowClass: W,
|
|
4995
|
+
onClickRow: T,
|
|
4996
|
+
onMouseoverRow: O,
|
|
4997
|
+
onMouseoutRow: U
|
|
5006
4998
|
} = d, {
|
|
5007
4999
|
onClickCell: N
|
|
5008
5000
|
} = r, {
|
|
5009
|
-
toggleGroupRow:
|
|
5001
|
+
toggleGroupRow: K
|
|
5010
5002
|
} = m, {
|
|
5011
5003
|
columnContext: ie,
|
|
5012
5004
|
hasLeftFixedColumn: fe,
|
|
@@ -5014,9 +5006,9 @@ function fl(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v) {
|
|
|
5014
5006
|
} = u, {
|
|
5015
5007
|
navigateOnKeyUp: ae,
|
|
5016
5008
|
navigateOnKeyDown: ye
|
|
5017
|
-
} = p, oe = (
|
|
5018
|
-
var
|
|
5019
|
-
return ((de = (
|
|
5009
|
+
} = p, oe = (w) => (w || []).some((Z) => Fo(Z) ? !(Z.type === ko || Z.type === it && !oe(Z.children)) : !0) ? w : null, q = (w) => {
|
|
5010
|
+
var Z, de, Y;
|
|
5011
|
+
return ((de = (Z = w.column) == null ? void 0 : Z.editor) == null ? void 0 : de.type) === "switch" || ((Y = w.column) == null ? void 0 : Y.dataType) === "boolean" ? {
|
|
5020
5012
|
display: "flex",
|
|
5021
5013
|
flexGrow: "1",
|
|
5022
5014
|
overflow: "hidden"
|
|
@@ -5028,8 +5020,8 @@ function fl(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v) {
|
|
|
5028
5020
|
}), je = Ze({
|
|
5029
5021
|
"fv-grid-content-right-fixed": !0
|
|
5030
5022
|
});
|
|
5031
|
-
ve([
|
|
5032
|
-
!
|
|
5023
|
+
ve([I, z], (w) => {
|
|
5024
|
+
!w[0] && !w[1].length ? (se["fv-grid-content-left-fixed"] = !1, je["fv-grid-content-right-fixed"] = !1) : (se["fv-grid-content-left-fixed"] = !0, je["fv-grid-content-right-fixed"] = !0);
|
|
5033
5025
|
});
|
|
5034
5026
|
const {
|
|
5035
5027
|
gridDataStyle: Ee,
|
|
@@ -5039,134 +5031,134 @@ function fl(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v) {
|
|
|
5039
5031
|
rightFixedGridDataStyle: Ne,
|
|
5040
5032
|
rightFixedGridMergedDataStyle: he
|
|
5041
5033
|
} = f;
|
|
5042
|
-
function Ke(
|
|
5043
|
-
|
|
5034
|
+
function Ke(w, Z) {
|
|
5035
|
+
Z.collapse = !Z.collapse, c.value = K(Z.collapse ? "collapse" : "expand", Z, c.value);
|
|
5044
5036
|
}
|
|
5045
|
-
function ce(
|
|
5037
|
+
function ce(w, Z) {
|
|
5046
5038
|
const de = [];
|
|
5047
|
-
if (
|
|
5048
|
-
for (let pe = 0; pe <=
|
|
5039
|
+
if (w.groupField && Z[w.groupField]) {
|
|
5040
|
+
for (let pe = 0; pe <= w.layer; pe++)
|
|
5049
5041
|
de.push(g("div", {
|
|
5050
5042
|
class: "fv-grid-group-row-icon",
|
|
5051
|
-
onClick: (Ye) => Ke(Ye,
|
|
5043
|
+
onClick: (Ye) => Ke(Ye, w)
|
|
5052
5044
|
}, [g("span", {
|
|
5053
|
-
class:
|
|
5045
|
+
class: X(w)
|
|
5054
5046
|
}, null)]));
|
|
5055
|
-
const Y =
|
|
5047
|
+
const Y = w.data[w.groupField];
|
|
5056
5048
|
de.push(g("div", {
|
|
5057
5049
|
ref: Y.setRef,
|
|
5058
|
-
key:
|
|
5050
|
+
key: S(w, w.layer + 1),
|
|
5059
5051
|
class: "fv-grid-cell",
|
|
5060
|
-
style:
|
|
5061
|
-
}, [Y.data])), Object.values(
|
|
5052
|
+
style: _(Y, Z, w.layer)
|
|
5053
|
+
}, [Y.data])), Object.values(w.data).filter((pe) => pe.field !== w.groupField && pe.colSpan !== 0).forEach((pe) => {
|
|
5062
5054
|
de.push(g("div", {
|
|
5063
5055
|
ref: pe.setRef,
|
|
5064
|
-
key:
|
|
5056
|
+
key: S(w, pe.index),
|
|
5065
5057
|
class: "fv-grid-cell",
|
|
5066
|
-
style:
|
|
5058
|
+
style: y(pe, Z)
|
|
5067
5059
|
}, [pe.data]));
|
|
5068
5060
|
});
|
|
5069
5061
|
}
|
|
5070
5062
|
return de;
|
|
5071
5063
|
}
|
|
5072
|
-
function ze(
|
|
5073
|
-
return
|
|
5074
|
-
ref:
|
|
5075
|
-
key:
|
|
5076
|
-
class:
|
|
5077
|
-
style: F(
|
|
5078
|
-
onClick: (Y) =>
|
|
5079
|
-
onMouseover: (Y) =>
|
|
5080
|
-
}, [ce(
|
|
5081
|
-
}
|
|
5082
|
-
function He(
|
|
5064
|
+
function ze(w, Z, de) {
|
|
5065
|
+
return w.layer > -1 && g("div", {
|
|
5066
|
+
ref: w.setRef,
|
|
5067
|
+
key: x(w),
|
|
5068
|
+
class: W(w, de),
|
|
5069
|
+
style: F(w),
|
|
5070
|
+
onClick: (Y) => T(Y, w),
|
|
5071
|
+
onMouseover: (Y) => O(Y, w)
|
|
5072
|
+
}, [ce(w, Z)]);
|
|
5073
|
+
}
|
|
5074
|
+
function He(w, Z) {
|
|
5083
5075
|
const de = [];
|
|
5084
|
-
if (
|
|
5085
|
-
const Y =
|
|
5076
|
+
if (w.groupField && Z[w.groupField]) {
|
|
5077
|
+
const Y = w.data[w.groupField];
|
|
5086
5078
|
de.push(g("div", {
|
|
5087
5079
|
ref: Y.setRef,
|
|
5088
|
-
key:
|
|
5080
|
+
key: S(w, w.layer + 1),
|
|
5089
5081
|
class: "fv-grid-cell",
|
|
5090
|
-
style:
|
|
5082
|
+
style: b(Y, Z, w.layer)
|
|
5091
5083
|
}, [Y.data]));
|
|
5092
5084
|
}
|
|
5093
5085
|
return de;
|
|
5094
5086
|
}
|
|
5095
|
-
function $e(
|
|
5096
|
-
return
|
|
5097
|
-
ref:
|
|
5098
|
-
key:
|
|
5099
|
-
class:
|
|
5100
|
-
style: F(
|
|
5101
|
-
onClick: (Y) =>
|
|
5102
|
-
onMouseover: (Y) =>
|
|
5103
|
-
}, [He(
|
|
5104
|
-
}
|
|
5105
|
-
function Ae(
|
|
5087
|
+
function $e(w, Z, de) {
|
|
5088
|
+
return w.layer > -1 && g("div", {
|
|
5089
|
+
ref: w.setRef,
|
|
5090
|
+
key: x(w),
|
|
5091
|
+
class: W(w, de),
|
|
5092
|
+
style: F(w),
|
|
5093
|
+
onClick: (Y) => T(Y, w),
|
|
5094
|
+
onMouseover: (Y) => O(Y, w)
|
|
5095
|
+
}, [He(w, Z)]);
|
|
5096
|
+
}
|
|
5097
|
+
function Ae(w, Z) {
|
|
5106
5098
|
var de, Y, pe;
|
|
5107
|
-
return
|
|
5108
|
-
class:
|
|
5109
|
-
title:
|
|
5110
|
-
}, [
|
|
5111
|
-
class:
|
|
5112
|
-
}, [
|
|
5113
|
-
}
|
|
5114
|
-
function Fe(
|
|
5115
|
-
const
|
|
5116
|
-
return
|
|
5117
|
-
class:
|
|
5118
|
-
title:
|
|
5119
|
-
}, [
|
|
5120
|
-
class:
|
|
5121
|
-
}, [
|
|
5122
|
-
}
|
|
5123
|
-
function Ve(
|
|
5124
|
-
return !B(
|
|
5125
|
-
style: q(
|
|
5126
|
-
}, [
|
|
5127
|
-
}
|
|
5128
|
-
function De(
|
|
5099
|
+
return w.showTips && typeof ((de = w.column) == null ? void 0 : de.formatter) != "function" && ((Y = w.column) == null ? void 0 : Y.dataType) !== "commands" && ((pe = w.column) == null ? void 0 : pe.dataType) !== "setting" ? g("div", {
|
|
5100
|
+
class: H(w),
|
|
5101
|
+
title: w.formatter(w, Z)
|
|
5102
|
+
}, [w.formatter(w, Z)]) : g("div", {
|
|
5103
|
+
class: H(w)
|
|
5104
|
+
}, [w.formatter(w, Z)]);
|
|
5105
|
+
}
|
|
5106
|
+
function Fe(w) {
|
|
5107
|
+
const Z = !B(w.data) && !M(w.data) ? w.data.toString() : w.data;
|
|
5108
|
+
return w.showTips ? g("div", {
|
|
5109
|
+
class: H(w),
|
|
5110
|
+
title: Z
|
|
5111
|
+
}, [Z]) : g("div", {
|
|
5112
|
+
class: H(w)
|
|
5113
|
+
}, [Z]);
|
|
5114
|
+
}
|
|
5115
|
+
function Ve(w, Z) {
|
|
5116
|
+
return !B(w.data) && !M(w.data) ? w.data.toString() : w.data, w.mode === No.editing ? g("div", {
|
|
5117
|
+
style: q(w)
|
|
5118
|
+
}, [w.getEditor(w)]) : w.column.columnTemplate ? w.column.columnTemplate(w, Z) : w.formatter ? Ae(w, Z) : Fe(w);
|
|
5119
|
+
}
|
|
5120
|
+
function De(w, Z, de) {
|
|
5129
5121
|
return g("div", {
|
|
5130
|
-
ref:
|
|
5131
|
-
key:
|
|
5132
|
-
class:
|
|
5133
|
-
style: F(
|
|
5134
|
-
onClick: (Y) =>
|
|
5135
|
-
onMouseover: (Y) =>
|
|
5136
|
-
onMouseout: (Y) =>
|
|
5137
|
-
}, [Object.values(
|
|
5122
|
+
ref: w.setRef,
|
|
5123
|
+
key: x(w),
|
|
5124
|
+
class: W(w, de),
|
|
5125
|
+
style: F(w),
|
|
5126
|
+
onClick: (Y) => T(Y, w),
|
|
5127
|
+
onMouseover: (Y) => O(Y, w),
|
|
5128
|
+
onMouseout: (Y) => U(Y, w)
|
|
5129
|
+
}, [Object.values(w.data).filter((Y) => Z[Y.field] && Y.rowSpan === 1).map((Y) => {
|
|
5138
5130
|
var Ye, nt;
|
|
5139
5131
|
const pe = t.slots.cellTemplate && oe(t.slots.cellTemplate({
|
|
5140
5132
|
cell: Y,
|
|
5141
|
-
row:
|
|
5133
|
+
row: w
|
|
5142
5134
|
}));
|
|
5143
5135
|
return g("div", {
|
|
5144
5136
|
ref: Y.setRef,
|
|
5145
|
-
key:
|
|
5146
|
-
class:
|
|
5147
|
-
style:
|
|
5148
|
-
onClick: (Je) => N(Je, Y,
|
|
5137
|
+
key: S(w, Y.index),
|
|
5138
|
+
class: te(Y),
|
|
5139
|
+
style: y(Y, Z),
|
|
5140
|
+
onClick: (Je) => N(Je, Y, w, Y.column),
|
|
5149
5141
|
onKeydown: (Je) => ae(Je, Y)
|
|
5150
5142
|
}, [g("div", {
|
|
5151
5143
|
class: G(Y),
|
|
5152
|
-
style:
|
|
5144
|
+
style: j(Y)
|
|
5153
5145
|
}, [pe ? (nt = (Ye = t.slots).cellTemplate) == null ? void 0 : nt.call(Ye, {
|
|
5154
5146
|
cell: Y,
|
|
5155
|
-
row:
|
|
5156
|
-
}) : Ve(Y,
|
|
5147
|
+
row: w
|
|
5148
|
+
}) : Ve(Y, w)])]);
|
|
5157
5149
|
})]);
|
|
5158
5150
|
}
|
|
5159
5151
|
const Ge = [De, ze, $e];
|
|
5160
|
-
function E(
|
|
5161
|
-
const de = k(
|
|
5152
|
+
function E(w, Z) {
|
|
5153
|
+
const de = k(w);
|
|
5162
5154
|
return c.value.map((Y, pe) => Ge[Y.type](Y, de, pe));
|
|
5163
5155
|
}
|
|
5164
|
-
function ne(
|
|
5165
|
-
const
|
|
5166
|
-
return c.value.map((de) => Object.values(de.data).filter((Y) =>
|
|
5167
|
-
key:
|
|
5156
|
+
function ne(w) {
|
|
5157
|
+
const Z = k(w);
|
|
5158
|
+
return c.value.map((de) => Object.values(de.data).filter((Y) => Z[Y.field] && Y.rowSpan > 1).map((Y) => g("div", {
|
|
5159
|
+
key: S(de, Y.index),
|
|
5168
5160
|
class: "fv-grid-cell fv-grid-merged-cell",
|
|
5169
|
-
style: D(de, Y,
|
|
5161
|
+
style: D(de, Y, Z)
|
|
5170
5162
|
}, [Y.data])));
|
|
5171
5163
|
}
|
|
5172
5164
|
function me() {
|
|
@@ -5176,10 +5168,10 @@ function fl(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v) {
|
|
|
5176
5168
|
}, [g("div", {
|
|
5177
5169
|
class: "fv-grid-data",
|
|
5178
5170
|
style: Xe.value
|
|
5179
|
-
}, [E(ie.value.leftColumns.filter((
|
|
5171
|
+
}, [E(ie.value.leftColumns.filter((w) => w.visible))]), g("div", {
|
|
5180
5172
|
class: "fv-grid-merge-date",
|
|
5181
5173
|
style: Ue.value
|
|
5182
|
-
}, [ne(ie.value.leftColumns.filter((
|
|
5174
|
+
}, [ne(ie.value.leftColumns.filter((w) => w.visible))])]);
|
|
5183
5175
|
}
|
|
5184
5176
|
function ge() {
|
|
5185
5177
|
return g("div", {
|
|
@@ -5188,10 +5180,10 @@ function fl(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v) {
|
|
|
5188
5180
|
}, [g("div", {
|
|
5189
5181
|
class: "fv-grid-data",
|
|
5190
5182
|
style: Ee.value
|
|
5191
|
-
}, [E(ie.value.primaryColumns.filter((
|
|
5183
|
+
}, [E(ie.value.primaryColumns.filter((w) => w.visible))]), g("div", {
|
|
5192
5184
|
class: "fv-grid-merge-date",
|
|
5193
5185
|
style: Ie.value
|
|
5194
|
-
}, [ne(ie.value.primaryColumns.filter((
|
|
5186
|
+
}, [ne(ie.value.primaryColumns.filter((w) => w.visible))])]);
|
|
5195
5187
|
}
|
|
5196
5188
|
function We() {
|
|
5197
5189
|
return g("div", {
|
|
@@ -5200,14 +5192,14 @@ function fl(e, t, n, o, a, i, l, u, r, s, p, d, m, f, c, v) {
|
|
|
5200
5192
|
}, [g("div", {
|
|
5201
5193
|
class: "fv-grid-data",
|
|
5202
5194
|
style: Ne.value
|
|
5203
|
-
}, [E(ie.value.rightColumns.filter((
|
|
5195
|
+
}, [E(ie.value.rightColumns.filter((w) => w.visible))]), g("div", {
|
|
5204
5196
|
class: "fv-grid-merge-date",
|
|
5205
5197
|
style: he.value
|
|
5206
|
-
}, [ne(ie.value.rightColumns.filter((
|
|
5198
|
+
}, [ne(ie.value.rightColumns.filter((w) => w.visible))])]);
|
|
5207
5199
|
}
|
|
5208
5200
|
function et() {
|
|
5209
|
-
const
|
|
5210
|
-
return fe.value &&
|
|
5201
|
+
const w = [];
|
|
5202
|
+
return fe.value && w.push(me()), w.push(ge()), Q.value && w.push(We()), w;
|
|
5211
5203
|
}
|
|
5212
5204
|
return {
|
|
5213
5205
|
renderDataArea: et
|
|
@@ -5221,49 +5213,49 @@ const po = /* @__PURE__ */ tt({
|
|
|
5221
5213
|
var ke, Bt;
|
|
5222
5214
|
h();
|
|
5223
5215
|
const n = 0, o = ((ke = e.rowOption) == null ? void 0 : ke.height) || 28, a = h(20), i = h(e.columns), l = 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, l), B = pn(e, t), M = vn(e), {
|
|
5224
|
-
showLoading:
|
|
5225
|
-
renderLoading:
|
|
5226
|
-
} = gn(e, u), k = yn(e, /* @__PURE__ */ new Map(), B, M, l),
|
|
5227
|
-
shouldRenderPagination:
|
|
5228
|
-
} =
|
|
5216
|
+
showLoading: I,
|
|
5217
|
+
renderLoading: z
|
|
5218
|
+
} = gn(e, u), k = yn(e, /* @__PURE__ */ new Map(), B, M, l), S = bn(e, k), {
|
|
5219
|
+
shouldRenderPagination: y
|
|
5220
|
+
} = S, x = hn(e, k, l, m, t), {
|
|
5229
5221
|
showSelectAll: F,
|
|
5230
5222
|
showSelection: D,
|
|
5231
|
-
selectedValues:
|
|
5232
|
-
updateSelectAllStatus:
|
|
5233
|
-
} =
|
|
5223
|
+
selectedValues: _,
|
|
5224
|
+
updateSelectAllStatus: b
|
|
5225
|
+
} = x, G = R(() => e.disabled), j = R(() => e.virtualized ? Math.min(k.dataView.value.length, a.value) : k.dataView.value.length);
|
|
5234
5226
|
R(() => e.loadingConfig.message);
|
|
5235
5227
|
const {
|
|
5236
|
-
containerStyleObject:
|
|
5237
|
-
} = Cn(e),
|
|
5238
|
-
applyCommands:
|
|
5239
|
-
} =
|
|
5240
|
-
|
|
5228
|
+
containerStyleObject: H
|
|
5229
|
+
} = Cn(e), X = wn(e), {
|
|
5230
|
+
applyCommands: te
|
|
5231
|
+
} = X;
|
|
5232
|
+
te(i);
|
|
5241
5233
|
const {
|
|
5242
|
-
applyColumnSetting:
|
|
5243
|
-
removeColumnSetting:
|
|
5234
|
+
applyColumnSetting: W,
|
|
5235
|
+
removeColumnSetting: T
|
|
5244
5236
|
} = xn(e);
|
|
5245
|
-
e.showSetting &&
|
|
5246
|
-
const
|
|
5237
|
+
e.showSetting && W(i);
|
|
5238
|
+
const O = Sn(e, t), U = Tn(e), {
|
|
5247
5239
|
applyColumnSorter: N,
|
|
5248
|
-
columnContext:
|
|
5240
|
+
columnContext: K,
|
|
5249
5241
|
updateColumnRenderContext: ie
|
|
5250
|
-
} =
|
|
5251
|
-
N(k,
|
|
5252
|
-
const fe = Bn(e,
|
|
5242
|
+
} = O;
|
|
5243
|
+
N(k, U);
|
|
5244
|
+
const fe = Bn(e, K), Q = Fn(e, t, x, l), ae = kn(e, t, l, Q, m), ye = In(e), oe = On(e, ae, ye), q = Mn(e, k, ae, M, l, ye, oe), se = Ho(e, l, oe, q), je = $o(e, l, oe, q), Ee = En(e, i, k, j, n, q, se, je), {
|
|
5253
5245
|
getVisualData: Ie
|
|
5254
|
-
} = Ee, Xe = Vo(
|
|
5246
|
+
} = Ee, Xe = Vo(K), Ue = Dn(e, K), Ne = Rn(e, x), {
|
|
5255
5247
|
sidebarWidth: he,
|
|
5256
5248
|
showSidebarCheckBox: Ke
|
|
5257
|
-
} = Ne, ce = Pn(e, k, m,
|
|
5249
|
+
} = Ne, ce = Pn(e, k, m, K, Ee, j, n, he, ae), {
|
|
5258
5250
|
onWheel: ze,
|
|
5259
5251
|
dataGridWidth: He,
|
|
5260
5252
|
viewPortHeight: $e,
|
|
5261
5253
|
viewPortWidth: Ae,
|
|
5262
5254
|
resetScroll: Fe,
|
|
5263
5255
|
updateVisibleRowsOnLatestVisibleScope: Ve
|
|
5264
|
-
} = ce, De = jn(e,
|
|
5256
|
+
} = ce, De = jn(e, K, r, Ae, fe), {
|
|
5265
5257
|
calculateColumnsSize: Ge
|
|
5266
|
-
} = De, E = Nn(), ne = Hn(r, d, k, E, ce), me = $n(e, t,
|
|
5258
|
+
} = De, E = Nn(), ne = Hn(r, d, k, E, ce), me = $n(e, t, O, k, fe, v, ce), ge = R(() => {
|
|
5267
5259
|
const L = {
|
|
5268
5260
|
"fv-grid": !0,
|
|
5269
5261
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -5279,24 +5271,24 @@ const po = /* @__PURE__ */ tt({
|
|
|
5279
5271
|
const L = {};
|
|
5280
5272
|
return ce.shouldShowHorizontalScrollbar.value && (L.paddingBottom = "10px"), ce.shouldShowVirticalScrollbar.value && (L.paddingRight = "10px"), L;
|
|
5281
5273
|
}), {
|
|
5282
|
-
renderGridHeader:
|
|
5283
|
-
renderGridColumnResizeOverlay:
|
|
5274
|
+
renderGridHeader: w,
|
|
5275
|
+
renderGridColumnResizeOverlay: Z,
|
|
5284
5276
|
shouldShowHeader: de
|
|
5285
|
-
} = Vn(e, t, r, p, d,
|
|
5277
|
+
} = Vn(e, t, r, p, d, O, k, me, ne, B, E, De, fe, x, Ne, U, ce, Ae, m), {
|
|
5286
5278
|
renderDataGridPagination: Y
|
|
5287
|
-
} = _n(e, t, k, ce,
|
|
5279
|
+
} = _n(e, t, k, ce, S, x), {
|
|
5288
5280
|
renderDataGridSidebar: pe
|
|
5289
|
-
} = Ln(e, Q,
|
|
5281
|
+
} = Ln(e, Q, x, Ne, ce), {
|
|
5290
5282
|
renderDisableMask: Ye
|
|
5291
5283
|
} = zn(), {
|
|
5292
5284
|
renderDataGridSummary: nt
|
|
5293
|
-
} = qn(e, k,
|
|
5285
|
+
} = qn(e, k, O), {
|
|
5294
5286
|
renderHorizontalScrollbar: Je
|
|
5295
5287
|
} = An(e, r, ce), {
|
|
5296
5288
|
renderVerticalScrollbar: lt
|
|
5297
5289
|
} = Gn(e, r, ce), {
|
|
5298
5290
|
renderFilterPanel: Ct
|
|
5299
|
-
} = Lo(e,
|
|
5291
|
+
} = Lo(e, O, k, B, ce), {
|
|
5300
5292
|
renderGroupPanel: wt
|
|
5301
5293
|
} = zo(e, k, me, v, ce);
|
|
5302
5294
|
function xt() {
|
|
@@ -5305,9 +5297,9 @@ const po = /* @__PURE__ */ tt({
|
|
|
5305
5297
|
L > a.value && (a.value = L, Ve()), $e.value = ((ue = s.value) == null ? void 0 : ue.clientHeight) || 0, He.value = ((Te = r.value) == null ? void 0 : Te.clientWidth) || 0, Ge();
|
|
5306
5298
|
}
|
|
5307
5299
|
vt(() => {
|
|
5308
|
-
r.value && (a.value = Math.max(Math.ceil(r.value.clientHeight / o), a.value), m.value = Ie(0,
|
|
5300
|
+
r.value && (a.value = Math.max(Math.ceil(r.value.clientHeight / o), a.value), m.value = Ie(0, j.value + n - 1), dn(r.value, xt), Ge(), mt(() => {
|
|
5309
5301
|
r.value && (He.value = r.value.clientWidth), s.value && (Ae.value = s.value.clientWidth, $e.value = s.value.clientHeight);
|
|
5310
|
-
})),
|
|
5302
|
+
})), I.value && z();
|
|
5311
5303
|
}), bt(() => {
|
|
5312
5304
|
}), ve(Ae, () => {
|
|
5313
5305
|
});
|
|
@@ -5320,13 +5312,13 @@ const po = /* @__PURE__ */ tt({
|
|
|
5320
5312
|
function Tt(L) {
|
|
5321
5313
|
ae.onEditingRow(L);
|
|
5322
5314
|
}
|
|
5323
|
-
function
|
|
5315
|
+
function C(L) {
|
|
5324
5316
|
k.removeDataItem(L), Fe();
|
|
5325
5317
|
}
|
|
5326
|
-
function
|
|
5318
|
+
function P(L) {
|
|
5327
5319
|
k.removeDataItemById(L), Fe();
|
|
5328
5320
|
}
|
|
5329
|
-
function
|
|
5321
|
+
function V(L) {
|
|
5330
5322
|
ae.acceptEditingRow(L);
|
|
5331
5323
|
}
|
|
5332
5324
|
function J(L) {
|
|
@@ -5341,16 +5333,16 @@ const po = /* @__PURE__ */ tt({
|
|
|
5341
5333
|
});
|
|
5342
5334
|
}
|
|
5343
5335
|
function le(L) {
|
|
5344
|
-
L && (i.value = L, re(i.value),
|
|
5336
|
+
L && (i.value = L, re(i.value), te(i), e.showSetting && W(i), ie(i.value), N(k, U), Ge());
|
|
5345
5337
|
}
|
|
5346
5338
|
ve(() => e.showSetting, (L, ue) => {
|
|
5347
5339
|
L !== ue && le(i.value);
|
|
5348
5340
|
});
|
|
5349
5341
|
function Re(L, ue) {
|
|
5350
|
-
L && (k.load(L), m.value = Ie(0,
|
|
5342
|
+
L && (k.load(L), m.value = Ie(0, j.value + n - 1), ue != null && ue.keepScrollTop ? ce.scrollTo(ce.offsetY.value) : Fe(), m.value.length || (_.value = []), Ke.value && F.value && b()), ae.clear();
|
|
5351
5343
|
}
|
|
5352
5344
|
function Be(L) {
|
|
5353
|
-
|
|
5345
|
+
S.updatePagination(L);
|
|
5354
5346
|
}
|
|
5355
5347
|
ve(k.shouldGroupingData, (L, ue) => {
|
|
5356
5348
|
L !== ue && (k.updateDataView(), Fe());
|
|
@@ -5362,7 +5354,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5362
5354
|
le(L);
|
|
5363
5355
|
});
|
|
5364
5356
|
function Oe(L) {
|
|
5365
|
-
|
|
5357
|
+
x.selectItemById(L);
|
|
5366
5358
|
}
|
|
5367
5359
|
function _e(L) {
|
|
5368
5360
|
const ue = l.idField.value, Te = m.value.find((Le) => Le.raw[ue] === L);
|
|
@@ -5376,7 +5368,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5376
5368
|
Te && Q.selectRow(Te);
|
|
5377
5369
|
}
|
|
5378
5370
|
function Me(L) {
|
|
5379
|
-
|
|
5371
|
+
x.selectItemByIds(L);
|
|
5380
5372
|
}
|
|
5381
5373
|
function xe() {
|
|
5382
5374
|
return m.value;
|
|
@@ -5385,22 +5377,22 @@ const po = /* @__PURE__ */ tt({
|
|
|
5385
5377
|
return m.value.filter((ue) => L.includes(ue.raw[e.idField]));
|
|
5386
5378
|
}
|
|
5387
5379
|
function st() {
|
|
5388
|
-
return
|
|
5380
|
+
return x.getSelectedItems();
|
|
5389
5381
|
}
|
|
5390
5382
|
function ut() {
|
|
5391
|
-
return
|
|
5383
|
+
return x.getSelectionRow();
|
|
5392
5384
|
}
|
|
5393
5385
|
function Vt() {
|
|
5394
5386
|
ae.endEditCell();
|
|
5395
5387
|
}
|
|
5396
5388
|
function Lt(L) {
|
|
5397
|
-
|
|
5389
|
+
x.unSelectItemByIds(L);
|
|
5398
5390
|
}
|
|
5399
5391
|
function It() {
|
|
5400
|
-
|
|
5392
|
+
x.clearSelection();
|
|
5401
5393
|
}
|
|
5402
5394
|
function zt() {
|
|
5403
|
-
return
|
|
5395
|
+
return x.currentSelectedDataId.value;
|
|
5404
5396
|
}
|
|
5405
5397
|
function At() {
|
|
5406
5398
|
ce.scrollToBottom();
|
|
@@ -5409,7 +5401,7 @@ const po = /* @__PURE__ */ tt({
|
|
|
5409
5401
|
ce.scrollToRowByIndex(L);
|
|
5410
5402
|
}
|
|
5411
5403
|
function Wt() {
|
|
5412
|
-
|
|
5404
|
+
x.keepSelectingOnPaging.value || It(), k.updateVisibleDataSummary(m.value), Be({
|
|
5413
5405
|
total: k.dataView.value.length,
|
|
5414
5406
|
index: 1
|
|
5415
5407
|
});
|
|
@@ -5419,10 +5411,10 @@ const po = /* @__PURE__ */ tt({
|
|
|
5419
5411
|
selectRowById: qe,
|
|
5420
5412
|
addNewDataItem: St,
|
|
5421
5413
|
addNewDataItemAtLast: gt,
|
|
5422
|
-
removeDataItem:
|
|
5423
|
-
removeDataItemById:
|
|
5414
|
+
removeDataItem: C,
|
|
5415
|
+
removeDataItemById: P,
|
|
5424
5416
|
editDataItem: Tt,
|
|
5425
|
-
acceptDataItem:
|
|
5417
|
+
acceptDataItem: V,
|
|
5426
5418
|
cancelDataItem: J,
|
|
5427
5419
|
selectItemById: Oe,
|
|
5428
5420
|
selectItemByIds: Me,
|
|
@@ -5443,14 +5435,14 @@ const po = /* @__PURE__ */ tt({
|
|
|
5443
5435
|
updateDerivedData: Wt
|
|
5444
5436
|
};
|
|
5445
5437
|
t.expose(Ot);
|
|
5446
|
-
const _t = Ao(e, t, Ot,
|
|
5438
|
+
const _t = Ao(e, t, Ot, O, ae, m), {
|
|
5447
5439
|
renderDataArea: Mt
|
|
5448
|
-
} = fl(e, t, s, p, d, Xe, Ue,
|
|
5449
|
-
renderEmpty:
|
|
5450
|
-
} = Wn(e, t),
|
|
5440
|
+
} = fl(e, t, s, p, d, Xe, Ue, O, ae, v, _t, Q, Ee, ce, m, k), Et = R(() => !m.value || !m.value.length), {
|
|
5441
|
+
renderEmpty: A
|
|
5442
|
+
} = Wn(e, t), ee = R(() => ({
|
|
5451
5443
|
"d-flex": !0,
|
|
5452
|
-
"justify-content-between":
|
|
5453
|
-
"justify-content-end":
|
|
5444
|
+
"justify-content-between": y.value && D.value,
|
|
5445
|
+
"justify-content-end": y.value && !D.value,
|
|
5454
5446
|
"position-relative": !0,
|
|
5455
5447
|
"fv-datagrid-pagination": !0
|
|
5456
5448
|
})), Ce = R(() => ({
|
|
@@ -5460,29 +5452,29 @@ const po = /* @__PURE__ */ tt({
|
|
|
5460
5452
|
"align-items-center": !0
|
|
5461
5453
|
}));
|
|
5462
5454
|
return Io("dataGridContext", {
|
|
5463
|
-
useColumnComposition:
|
|
5455
|
+
useColumnComposition: O,
|
|
5464
5456
|
dataView: k,
|
|
5465
5457
|
useFilterComposition: B,
|
|
5466
5458
|
useFitColumnComposition: De,
|
|
5467
|
-
useSortComposition:
|
|
5459
|
+
useSortComposition: U,
|
|
5468
5460
|
useVirtualScrollComposition: ce
|
|
5469
5461
|
}), () => g("div", {
|
|
5470
5462
|
ref: u,
|
|
5471
5463
|
class: ge.value,
|
|
5472
|
-
style:
|
|
5464
|
+
style: H.value,
|
|
5473
5465
|
onWheel: ze
|
|
5474
|
-
}, [r.value && e.enableFilter && Ct(), r.value && wt(), r.value && de.value &&
|
|
5466
|
+
}, [r.value && e.enableFilter && Ct(), r.value && wt(), r.value && de.value && w(), g("div", {
|
|
5475
5467
|
ref: r,
|
|
5476
5468
|
class: We.value,
|
|
5477
5469
|
style: et.value,
|
|
5478
5470
|
onMouseover: () => f.value = !0,
|
|
5479
5471
|
onMouseleave: () => f.value = !1
|
|
5480
|
-
}, [r.value && pe(m), r.value && Mt(), r.value && Et.value &&
|
|
5481
|
-
class:
|
|
5472
|
+
}, [r.value && pe(m), r.value && Mt(), r.value && Et.value && A(), r.value && Je(), r.value && lt()]), r.value && nt(), (y.value || D.value) && g("div", {
|
|
5473
|
+
class: ee.value,
|
|
5482
5474
|
style: Ce.value
|
|
5483
5475
|
}, [D.value && g("div", {
|
|
5484
5476
|
class: Se.value
|
|
5485
|
-
}, [g("div", null, ["已选:" +
|
|
5477
|
+
}, [g("div", null, ["已选:" + _.value.length, ht(" 条")])]), y.value && Y()]), Z(), G.value && Ye()]);
|
|
5486
5478
|
}
|
|
5487
5479
|
});
|
|
5488
5480
|
Zt(po);
|
|
@@ -5558,10 +5550,10 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5558
5550
|
props: vo,
|
|
5559
5551
|
emits: ["submitModal", "update:modelValue"],
|
|
5560
5552
|
setup(e, t) {
|
|
5561
|
-
const n = '<i class="f-icon f-icon-lookup"></i>', o = h(), a = h(e.modelValue || {}), i = h([]), l = 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 = (
|
|
5553
|
+
const n = '<i class="f-icon f-icon-lookup"></i>', o = h(), a = h(e.modelValue || {}), i = h([]), l = 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 = (W) => ((W.raw.$type !== "SimpleField" || W.raw.selectable === !1) && (W.disabled = !0), W), m = R(() => Yt(l.value)), f = R(() => Yt(u.value)), c = (W, T, O, U) => {
|
|
5562
5554
|
var ie, fe;
|
|
5563
|
-
const N = ((ie =
|
|
5564
|
-
return N &&
|
|
5555
|
+
const N = ((ie = W.value.find((Q) => Q[U] === T)) == null ? void 0 : ie[O || "name"]) || "", K = ((fe = W.value.find((Q) => Q[U] === T)) == null ? void 0 : fe[U || "code"]) || "";
|
|
5556
|
+
return N && K ? `${N}[${K}]` : "";
|
|
5565
5557
|
}, v = [{
|
|
5566
5558
|
field: "sourceField",
|
|
5567
5559
|
title: "数据源字段",
|
|
@@ -5579,7 +5571,7 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5579
5571
|
customRowStatus: d,
|
|
5580
5572
|
displayFormatter: e.fromData.displayFormatter
|
|
5581
5573
|
},
|
|
5582
|
-
formatter: (
|
|
5574
|
+
formatter: (W, T) => c(m, T.raw.sourceField, e.fromData.textField, e.fromData.valueField)
|
|
5583
5575
|
}, {
|
|
5584
5576
|
field: "targetField",
|
|
5585
5577
|
title: "目标字段",
|
|
@@ -5599,68 +5591,68 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5599
5591
|
customRowStatus: d,
|
|
5600
5592
|
displayFormatter: e.toData.displayFormatter
|
|
5601
5593
|
},
|
|
5602
|
-
formatter: (
|
|
5594
|
+
formatter: (W, T) => T.raw.targetField ? (T.raw.targetField.indexOf(",") > -1 ? T.raw.targetField.split(",") : [T.raw.targetField]).map((U) => c(f, U, e.toData.textField, e.toData.valueField)).join(",") : ""
|
|
5603
5595
|
}];
|
|
5604
5596
|
function B() {
|
|
5605
5597
|
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
|
|
5606
5598
|
}
|
|
5607
5599
|
function M() {
|
|
5608
|
-
let
|
|
5609
|
-
return typeof
|
|
5600
|
+
let W = a.value || {};
|
|
5601
|
+
return typeof W == "string" && (W = JSON.parse(W)), Object.keys(W).map((T) => ({
|
|
5610
5602
|
id: B(),
|
|
5611
|
-
sourceField:
|
|
5612
|
-
targetField:
|
|
5603
|
+
sourceField: T,
|
|
5604
|
+
targetField: W[T]
|
|
5613
5605
|
}));
|
|
5614
5606
|
}
|
|
5615
|
-
const
|
|
5616
|
-
var
|
|
5617
|
-
return `共 ${((
|
|
5607
|
+
const I = h(M()), z = R(() => {
|
|
5608
|
+
var W;
|
|
5609
|
+
return `共 ${((W = I.value) == null ? void 0 : W.length) || 0} 项`;
|
|
5618
5610
|
});
|
|
5619
5611
|
function k() {
|
|
5620
5612
|
o.value.endEditCell(), o.value.addNewDataItemAtLast();
|
|
5621
5613
|
}
|
|
5622
|
-
function
|
|
5614
|
+
function S() {
|
|
5623
5615
|
return {
|
|
5624
5616
|
sourceField: "",
|
|
5625
5617
|
targetField: "",
|
|
5626
5618
|
id: B()
|
|
5627
5619
|
};
|
|
5628
5620
|
}
|
|
5629
|
-
function
|
|
5621
|
+
function y() {
|
|
5630
5622
|
var N;
|
|
5631
5623
|
if (!i.value.length) {
|
|
5632
5624
|
p.warning("请选择要删除的映射字段!");
|
|
5633
5625
|
return;
|
|
5634
5626
|
}
|
|
5635
5627
|
o.value.endEditCell();
|
|
5636
|
-
const
|
|
5637
|
-
if (
|
|
5628
|
+
const W = I.value.findIndex((K) => K.id === i.value[0].id);
|
|
5629
|
+
if (W === -1)
|
|
5638
5630
|
return;
|
|
5639
|
-
const
|
|
5640
|
-
if (o.value.removeDataItemById(
|
|
5631
|
+
const T = i.value[0].id;
|
|
5632
|
+
if (o.value.removeDataItemById(T), i.value = [], !I.value.length)
|
|
5641
5633
|
return;
|
|
5642
|
-
const
|
|
5643
|
-
|
|
5634
|
+
const O = Math.min(W, I.value.length - 1), U = (N = I.value[O]) == null ? void 0 : N.id;
|
|
5635
|
+
U && o.value.selectItemById(U);
|
|
5644
5636
|
}
|
|
5645
|
-
function
|
|
5637
|
+
function x() {
|
|
5646
5638
|
Ft.question("确定要清空所有映射字段吗?", "", () => {
|
|
5647
|
-
i.value = [], a.value = {},
|
|
5639
|
+
i.value = [], a.value = {}, I.value = [], o.value.updateDataSource(I.value);
|
|
5648
5640
|
}, () => {
|
|
5649
5641
|
});
|
|
5650
5642
|
}
|
|
5651
5643
|
function F() {
|
|
5652
|
-
const
|
|
5653
|
-
return
|
|
5654
|
-
|
|
5655
|
-
}),
|
|
5644
|
+
const W = {};
|
|
5645
|
+
return I.value.forEach((T) => {
|
|
5646
|
+
T.sourceField && T.targetField && (W[T.sourceField] = T.targetField);
|
|
5647
|
+
}), W;
|
|
5656
5648
|
}
|
|
5657
|
-
ve(() => e.modelValue, (
|
|
5658
|
-
a.value =
|
|
5649
|
+
ve(() => e.modelValue, (W) => {
|
|
5650
|
+
a.value = W, I.value = M();
|
|
5659
5651
|
});
|
|
5660
5652
|
function D() {
|
|
5661
|
-
return
|
|
5653
|
+
return I.value.filter((T) => !T.sourceField || !T.targetField).length;
|
|
5662
5654
|
}
|
|
5663
|
-
const
|
|
5655
|
+
const _ = {
|
|
5664
5656
|
title: e.title,
|
|
5665
5657
|
fitContent: !1,
|
|
5666
5658
|
height: e.modalHeight,
|
|
@@ -5672,68 +5664,68 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5672
5664
|
name: "cancel",
|
|
5673
5665
|
text: "取消",
|
|
5674
5666
|
class: "btn btn-secondary",
|
|
5675
|
-
handle: (
|
|
5667
|
+
handle: (W) => !0
|
|
5676
5668
|
}, {
|
|
5677
5669
|
name: "accept",
|
|
5678
5670
|
text: "确定",
|
|
5679
5671
|
class: "btn btn-primary",
|
|
5680
|
-
handle: (
|
|
5672
|
+
handle: (W) => {
|
|
5681
5673
|
if (o.value.endEditCell(), D())
|
|
5682
5674
|
return p.warning("请将映射字段填写完整!"), !1;
|
|
5683
|
-
const
|
|
5684
|
-
return a.value =
|
|
5675
|
+
const T = F();
|
|
5676
|
+
return a.value = T, t.emit("submitModal", T), t.emit("update:modelValue", T), e.onMappingFieldsChanged && typeof e.onMappingFieldsChanged == "function" && e.onMappingFieldsChanged(JSON.stringify(T)), !0;
|
|
5685
5677
|
}
|
|
5686
5678
|
}],
|
|
5687
5679
|
resizeable: !0,
|
|
5688
5680
|
draggable: !0,
|
|
5689
|
-
closedCallback: (
|
|
5690
|
-
(
|
|
5681
|
+
closedCallback: (W, T) => {
|
|
5682
|
+
(W.target.name === "cancel" || T === "icon" || T === "esc") && (a.value = e.modelValue, I.value = M(), i.value = []);
|
|
5691
5683
|
}
|
|
5692
5684
|
};
|
|
5693
|
-
function
|
|
5694
|
-
i.value =
|
|
5685
|
+
function b(W) {
|
|
5686
|
+
i.value = W;
|
|
5695
5687
|
}
|
|
5696
5688
|
function G() {
|
|
5697
|
-
var N,
|
|
5689
|
+
var N, K;
|
|
5698
5690
|
if (e.beforeOpen && typeof e.beforeOpen == "function")
|
|
5699
5691
|
return e.beforeOpen({
|
|
5700
5692
|
fromDataSource: l,
|
|
5701
5693
|
toDataSource: u,
|
|
5702
5694
|
gridColumns: v
|
|
5703
5695
|
});
|
|
5704
|
-
if (!((
|
|
5696
|
+
if (!((K = (N = e.editorParams) == null ? void 0 : N.propertyData) == null ? void 0 : K.helpId))
|
|
5705
5697
|
return p == null || p.warning({
|
|
5706
5698
|
message: "请先配置数据源!",
|
|
5707
5699
|
position: "top-center"
|
|
5708
5700
|
}), !1;
|
|
5709
|
-
const
|
|
5710
|
-
|
|
5711
|
-
const
|
|
5712
|
-
return
|
|
5713
|
-
}
|
|
5714
|
-
function W
|
|
5715
|
-
|
|
5716
|
-
|
|
5701
|
+
const T = [], O = r ? r.getData(e.editorParams) : Promise.resolve(l.value);
|
|
5702
|
+
T.push(O), typeof e.toData.dataSource == "function" ? u.value = e.toData.dataSource() : u.value = e.toData.dataSource;
|
|
5703
|
+
const U = s ? s.getData(e.editorParams) : Promise.resolve(u.value);
|
|
5704
|
+
return T.push(U), Promise.all(T).then(([ie, fe]) => (l.value = ie, u.value = fe, v[0].editor.data = ie, v[1].editor.data = fe, !0));
|
|
5705
|
+
}
|
|
5706
|
+
function j(W, T) {
|
|
5707
|
+
W.forEach((O) => {
|
|
5708
|
+
O.selectable = !T.includes(O.data.bindingPath), O.children && j(O.children, T);
|
|
5717
5709
|
});
|
|
5718
5710
|
}
|
|
5719
|
-
function
|
|
5711
|
+
function H(W) {
|
|
5720
5712
|
const {
|
|
5721
|
-
column:
|
|
5722
|
-
rawData:
|
|
5723
|
-
} =
|
|
5724
|
-
field:
|
|
5713
|
+
column: T,
|
|
5714
|
+
rawData: O
|
|
5715
|
+
} = W, {
|
|
5716
|
+
field: U,
|
|
5725
5717
|
editor: N
|
|
5726
|
-
} =
|
|
5727
|
-
if (
|
|
5728
|
-
const
|
|
5729
|
-
|
|
5718
|
+
} = T;
|
|
5719
|
+
if (U === "sourceField" && N) {
|
|
5720
|
+
const K = I.value.filter((ie) => ie.sourceField !== O.sourceField).map((ie) => ie.sourceField);
|
|
5721
|
+
j(l.value, K), N.data = Nt(l.value);
|
|
5730
5722
|
}
|
|
5731
5723
|
return !0;
|
|
5732
5724
|
}
|
|
5733
|
-
const
|
|
5725
|
+
const X = R(() => i.value.length > 0), te = R(() => I.value.length > 0);
|
|
5734
5726
|
return () => g(mo, {
|
|
5735
|
-
modelValue:
|
|
5736
|
-
"onUpdate:modelValue": (
|
|
5727
|
+
modelValue: z.value,
|
|
5728
|
+
"onUpdate:modelValue": (W) => z.value = W,
|
|
5737
5729
|
editable: !1,
|
|
5738
5730
|
disabled: e.disabled,
|
|
5739
5731
|
readonly: e.readonly,
|
|
@@ -5741,7 +5733,7 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5741
5733
|
enableClear: !1,
|
|
5742
5734
|
buttonContent: n,
|
|
5743
5735
|
buttonBehavior: "Modal",
|
|
5744
|
-
modalOptions:
|
|
5736
|
+
modalOptions: _,
|
|
5745
5737
|
beforeOpen: G
|
|
5746
5738
|
}, {
|
|
5747
5739
|
default: () => [g("div", {
|
|
@@ -5753,12 +5745,12 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5753
5745
|
onClick: k
|
|
5754
5746
|
}, [ht("新增")]), g("button", {
|
|
5755
5747
|
class: "btn btn-secondary ml-2",
|
|
5756
|
-
disabled: !
|
|
5757
|
-
onClick:
|
|
5748
|
+
disabled: !X.value,
|
|
5749
|
+
onClick: y
|
|
5758
5750
|
}, [ht("删除")]), g("button", {
|
|
5759
5751
|
class: "btn btn-secondary ml-3",
|
|
5760
|
-
disabled: !
|
|
5761
|
-
onClick:
|
|
5752
|
+
disabled: !te.value,
|
|
5753
|
+
onClick: x
|
|
5762
5754
|
}, [ht("清空")])]), g("div", {
|
|
5763
5755
|
class: " f-utils-fill p-2"
|
|
5764
5756
|
}, [g(po, {
|
|
@@ -5780,10 +5772,10 @@ const Ut = /* @__PURE__ */ tt({
|
|
|
5780
5772
|
editable: "true",
|
|
5781
5773
|
fit: !0,
|
|
5782
5774
|
columns: v,
|
|
5783
|
-
data:
|
|
5784
|
-
newDataItem:
|
|
5785
|
-
onSelectionChange:
|
|
5786
|
-
beforeEditCell:
|
|
5775
|
+
data: I.value,
|
|
5776
|
+
newDataItem: S,
|
|
5777
|
+
onSelectionChange: b,
|
|
5778
|
+
beforeEditCell: H
|
|
5787
5779
|
}, null)])])]
|
|
5788
5780
|
});
|
|
5789
5781
|
}
|