@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
|
@@ -601,15 +601,15 @@ class at {
|
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
function ei(e, t) {
|
|
604
|
-
const n = C(), a = C(), o = C(), i = C(), r = C(), u = C(), d = C(), c = C(), h = C(), s = C(), l = C(), f = C(e.resizeable),
|
|
604
|
+
const n = C(), a = C(), o = C(), i = C(), r = C(), u = C(), d = C(), c = C(), h = C(), s = C(), l = C(), f = C(e.resizeable), y = C(), g = C(e.draggable), m = C(!1);
|
|
605
605
|
function w() {
|
|
606
606
|
const $ = a.value || document.body, j = window.getComputedStyle($);
|
|
607
607
|
if (!j || !n.value)
|
|
608
608
|
return;
|
|
609
|
-
const G = re.getTransformInfo(n.value),
|
|
610
|
-
d.value && (
|
|
609
|
+
const G = re.getTransformInfo(n.value), z = {};
|
|
610
|
+
d.value && (z.deltaL = n.value.offsetLeft - d.value.x, z.deltaT = n.value.offsetTop - d.value.y);
|
|
611
611
|
const ee = j.getPropertyValue("position");
|
|
612
|
-
|
|
612
|
+
z.width = $.clientWidth, z.height = $.clientHeight, z.pr = parseInt(j.getPropertyValue("padding-right"), 10), z.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), z.position = j.getPropertyValue("position"), ee === "static" && ($.style.position = "relative"), z.translateX = G.x, z.translateY = G.y, s.value = z;
|
|
613
613
|
}
|
|
614
614
|
function k($) {
|
|
615
615
|
if (n.value) {
|
|
@@ -623,11 +623,11 @@ function ei(e, t) {
|
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
var $, j, G,
|
|
626
|
+
function O() {
|
|
627
|
+
var $, j, G, z;
|
|
628
628
|
if (n.value) {
|
|
629
629
|
const ee = n.value;
|
|
630
|
-
c.value && ((c.value.n || c.value.s) && (($ = u.value) != null && $.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), d.value && ((G = d.value) != null && G.x && (ee.style.left = d.value.x + "px"), (
|
|
630
|
+
c.value && ((c.value.n || c.value.s) && (($ = u.value) != null && $.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), d.value && ((G = d.value) != null && G.x && (ee.style.left = d.value.x + "px"), (z = d.value) != null && z.y && (ee.style.top = d.value.y + "px")));
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
function B() {
|
|
@@ -643,26 +643,26 @@ function ei(e, t) {
|
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function p($) {
|
|
647
647
|
if (!o.value || !i.value || !r.value || !c.value)
|
|
648
648
|
return;
|
|
649
649
|
$.subtract(o.value);
|
|
650
650
|
const j = $.x, G = $.y;
|
|
651
|
-
c.value.n ? (d.value.y = r.value.y + G, u.value.height = i.value.height - G) : c.value.s && (u.value.height = i.value.height + G), c.value.e ? u.value.width = i.value.width + j : c.value.w && (u.value.width = i.value.width - j, d.value.x = r.value.x + j), b(), B(),
|
|
651
|
+
c.value.n ? (d.value.y = r.value.y + G, u.value.height = i.value.height - G) : c.value.s && (u.value.height = i.value.height + G), c.value.e ? u.value.width = i.value.width + j : c.value.w && (u.value.width = i.value.width - j, d.value.x = r.value.x + j), b(), B(), O();
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function F($) {
|
|
654
654
|
if (!h.value)
|
|
655
655
|
return;
|
|
656
656
|
const j = re.fromEvent($);
|
|
657
|
-
j &&
|
|
657
|
+
j && p(j);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function T() {
|
|
660
660
|
if (n.value) {
|
|
661
661
|
const {
|
|
662
662
|
width: $,
|
|
663
663
|
height: j,
|
|
664
664
|
x: G,
|
|
665
|
-
y:
|
|
665
|
+
y: z
|
|
666
666
|
} = n.value.getBoundingClientRect(), ee = re.getTransformInfo(n.value);
|
|
667
667
|
return {
|
|
668
668
|
size: {
|
|
@@ -671,7 +671,7 @@ function ei(e, t) {
|
|
|
671
671
|
},
|
|
672
672
|
position: {
|
|
673
673
|
x: G - ee.x,
|
|
674
|
-
y:
|
|
674
|
+
y: z - ee.y
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
}
|
|
@@ -679,18 +679,18 @@ function ei(e, t) {
|
|
|
679
679
|
}
|
|
680
680
|
function I($) {
|
|
681
681
|
if (n.value) {
|
|
682
|
-
const j =
|
|
682
|
+
const j = T();
|
|
683
683
|
l.value = j;
|
|
684
684
|
}
|
|
685
|
-
o.value = void 0, i.value = null, r.value = null, u.value = null, d.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove",
|
|
685
|
+
o.value = void 0, i.value = null, r.value = null, u.value = null, d.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", I);
|
|
686
686
|
}
|
|
687
687
|
function R() {
|
|
688
|
-
document.addEventListener("mousemove",
|
|
688
|
+
document.addEventListener("mousemove", F), document.addEventListener("mouseup", I);
|
|
689
689
|
}
|
|
690
690
|
function M($) {
|
|
691
691
|
$ instanceof MouseEvent && $.button === 2 || g.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), o.value = re.fromEvent($), h.value = $.target, k($), R());
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function S($) {
|
|
694
694
|
return n.value = $, f.value && v(it, null, [v("div", {
|
|
695
695
|
class: "fv-resizable-handle fv-resizable-n",
|
|
696
696
|
type: "n",
|
|
@@ -725,33 +725,33 @@ function ei(e, t) {
|
|
|
725
725
|
onMousedown: (j) => M(j)
|
|
726
726
|
}, null)]);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function x($ = !0) {
|
|
729
729
|
document.body.click();
|
|
730
|
-
const j = a.value || document.body, G = at.getCurrent(j),
|
|
731
|
-
$ &&
|
|
730
|
+
const j = a.value || document.body, G = at.getCurrent(j), z = n.value;
|
|
731
|
+
$ && z && (y.value = T(), y.value.transform = z.style.transform), G && z && (u.value = G, u.value.height -= 14, u.value.width -= 14, z.style.height = u.value.height + "px", z.style.width = u.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", l.value = {
|
|
732
732
|
size: u.value,
|
|
733
733
|
position: {
|
|
734
734
|
x: 0,
|
|
735
735
|
y: 0
|
|
736
736
|
}
|
|
737
|
-
}, g.value = !1,
|
|
737
|
+
}, g.value = !1, m.value = !0);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function E() {
|
|
740
740
|
var $, j;
|
|
741
|
-
if (document.body.click(),
|
|
741
|
+
if (document.body.click(), y.value) {
|
|
742
742
|
const G = {
|
|
743
|
-
width:
|
|
744
|
-
height:
|
|
745
|
-
},
|
|
743
|
+
width: y.value.size.width || 0,
|
|
744
|
+
height: y.value.size.height || 0
|
|
745
|
+
}, z = {
|
|
746
746
|
x: (window.innerWidth - G.width) / 2,
|
|
747
747
|
y: (window.innerHeight - G.height) / 2
|
|
748
748
|
};
|
|
749
|
-
($ = u.value) == null || $.set(G), (j = d.value) == null || j.set(
|
|
749
|
+
($ = u.value) == null || $.set(G), (j = d.value) == null || j.set(z);
|
|
750
750
|
const ee = n.value;
|
|
751
|
-
ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${
|
|
751
|
+
ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${z.x}px`, ee.style.top = `${z.y}px`, ee.style.transform = "", l.value = {
|
|
752
752
|
size: G,
|
|
753
|
-
position:
|
|
754
|
-
}, g.value = e.draggable,
|
|
753
|
+
position: z
|
|
754
|
+
}, g.value = e.draggable, m.value = !1;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
function P() {
|
|
@@ -766,104 +766,104 @@ function ei(e, t) {
|
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function W() {
|
|
770
770
|
const $ = () => {
|
|
771
|
-
|
|
771
|
+
m.value ? x(!1) : P(), document.body.click();
|
|
772
772
|
};
|
|
773
773
|
return window.addEventListener("resize", $), () => {
|
|
774
774
|
window.removeEventListener("resize", $);
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
const J =
|
|
777
|
+
const J = W();
|
|
778
778
|
return {
|
|
779
|
-
renderResizeBar:
|
|
779
|
+
renderResizeBar: S,
|
|
780
780
|
boundingElement: a,
|
|
781
781
|
resizedEventParam: l,
|
|
782
|
-
maximize:
|
|
783
|
-
restore:
|
|
782
|
+
maximize: x,
|
|
783
|
+
restore: E,
|
|
784
784
|
allowDrag: g,
|
|
785
|
-
isMaximized:
|
|
785
|
+
isMaximized: m,
|
|
786
786
|
unWindowResizeHandle: J,
|
|
787
787
|
moveToCenter: P
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
function ti(e, t, n) {
|
|
791
791
|
const a = C(), o = C(e.draggable), i = C(e.lockAxis), r = C(), u = C(), d = C(!1), c = C(new re(0, 0)), h = C(new re(0, 0)), s = C(new re(0, 0)), l = C(new re(0, 0));
|
|
792
|
-
Z(() => n.value, (
|
|
793
|
-
r.value.style.cursor =
|
|
792
|
+
Z(() => n.value, (F) => {
|
|
793
|
+
r.value.style.cursor = F ? "move" : "default";
|
|
794
794
|
});
|
|
795
|
-
function f(
|
|
796
|
-
if (
|
|
795
|
+
function f(F, T) {
|
|
796
|
+
if (T.tagName === "BUTTON")
|
|
797
797
|
return !1;
|
|
798
|
-
if (
|
|
798
|
+
if (T === F)
|
|
799
799
|
return !0;
|
|
800
|
-
for (const I in
|
|
801
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
800
|
+
for (const I in T.children)
|
|
801
|
+
if (Object.prototype.hasOwnProperty.call(T.children, I) && f(F, T.children[I]))
|
|
802
802
|
return !0;
|
|
803
803
|
return !1;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function y() {
|
|
806
806
|
var R, M;
|
|
807
|
-
let
|
|
808
|
-
i.value === "x" ? (
|
|
809
|
-
const I = `translate3d(${Math.round(
|
|
810
|
-
a.value && (a.value.style.transform = I), l.value.x =
|
|
807
|
+
let F = s.value.x + h.value.x, T = s.value.y + h.value.y;
|
|
808
|
+
i.value === "x" ? (F = ((R = c.value) == null ? void 0 : R.x) || 0, s.value.x = 0) : i.value === "y" && (T = ((M = c.value) == null ? void 0 : M.y) || 0, s.value.y = 0);
|
|
809
|
+
const I = `translate3d(${Math.round(F)}px, ${Math.round(T)}px, 0px)`;
|
|
810
|
+
a.value && (a.value.style.transform = I), l.value.x = F, l.value.y = T;
|
|
811
811
|
}
|
|
812
812
|
function g() {
|
|
813
813
|
if (!u.value || !a.value)
|
|
814
814
|
return null;
|
|
815
|
-
const
|
|
816
|
-
top:
|
|
817
|
-
right:
|
|
818
|
-
bottom:
|
|
819
|
-
left:
|
|
815
|
+
const F = u.value.getBoundingClientRect(), T = a.value.getBoundingClientRect(), I = {
|
|
816
|
+
top: F.top < T.top,
|
|
817
|
+
right: F.right > T.right,
|
|
818
|
+
bottom: F.bottom > T.bottom,
|
|
819
|
+
left: F.left < T.left
|
|
820
820
|
};
|
|
821
|
-
return I.top || (s.value.y -=
|
|
821
|
+
return I.top || (s.value.y -= T.top - F.top), I.bottom || (s.value.y -= T.bottom - F.bottom), I.right || (s.value.x -= T.right - F.right), I.left || (s.value.x -= T.left - F.left), y(), I;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
|
|
823
|
+
function m(F) {
|
|
824
|
+
F && (c.value && F.subtract(c.value), s.value.set(F), y(), g());
|
|
825
825
|
}
|
|
826
|
-
function w(
|
|
827
|
-
d.value && o.value && (
|
|
826
|
+
function w(F) {
|
|
827
|
+
d.value && o.value && (F.stopPropagation(), F.preventDefault(), m(re.fromEvent(F, r.value)));
|
|
828
828
|
}
|
|
829
829
|
function k() {
|
|
830
|
-
var
|
|
831
|
-
d.value && (d.value = !1, h.value.add(s.value), s.value.reset(), (
|
|
830
|
+
var F;
|
|
831
|
+
d.value && (d.value = !1, h.value.add(s.value), s.value.reset(), (F = a.value) == null || F.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function O() {
|
|
834
834
|
!d.value && r.value && (d.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
|
|
835
835
|
}
|
|
836
836
|
function B() {
|
|
837
837
|
if (a.value) {
|
|
838
|
-
const
|
|
839
|
-
h.value.set(
|
|
838
|
+
const F = re.getTransformInfo(a.value);
|
|
839
|
+
h.value.set(F);
|
|
840
840
|
return;
|
|
841
841
|
}
|
|
842
842
|
h.value.reset();
|
|
843
843
|
}
|
|
844
|
-
function b(
|
|
845
|
-
if (!n.value ||
|
|
844
|
+
function b(F) {
|
|
845
|
+
if (!n.value || F instanceof MouseEvent && F.button === 2)
|
|
846
846
|
return;
|
|
847
|
-
const
|
|
848
|
-
r.value !== void 0 &&
|
|
847
|
+
const T = F.target || F.srcElement;
|
|
848
|
+
r.value !== void 0 && T && !f(T, r.value) || o.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(), c.value = re.fromEvent(F, a.value), B(), O());
|
|
849
849
|
}
|
|
850
|
-
function
|
|
851
|
-
if (o.value &&
|
|
852
|
-
if (
|
|
853
|
-
r.value =
|
|
850
|
+
function p(F, T, I) {
|
|
851
|
+
if (o.value && T) {
|
|
852
|
+
if (F)
|
|
853
|
+
r.value = F;
|
|
854
854
|
else if (e.dragHandle) {
|
|
855
855
|
if (e.dragHandle instanceof HTMLElement)
|
|
856
856
|
r.value = e.dragHandle;
|
|
857
857
|
else if (typeof e.dragHandle == "string") {
|
|
858
|
-
const R =
|
|
858
|
+
const R = T.querySelector(e.dragHandle);
|
|
859
859
|
R && (r.value = R);
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
a.value =
|
|
862
|
+
a.value = T, u.value = I, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", b)) : o.value = !1;
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
return {
|
|
866
|
-
registerDraggle:
|
|
866
|
+
registerDraggle: p,
|
|
867
867
|
resetTranslate: B
|
|
868
868
|
};
|
|
869
869
|
}
|
|
@@ -900,12 +900,12 @@ const ot = /* @__PURE__ */ oe({
|
|
|
900
900
|
props: Ln,
|
|
901
901
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
902
902
|
setup(e, t) {
|
|
903
|
-
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), i = C(""), r = C(e.class), u = C(e.fitContent), d = C(e.showHeader), c = C(""), h = C(e.showCloseButton), s = C(e.showMaxButton), l = C(!1), f = C(e.dialogType),
|
|
903
|
+
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), i = C(""), r = C(e.class), u = C(e.fitContent), d = C(e.showHeader), c = C(""), h = C(e.showCloseButton), s = C(e.showMaxButton), l = C(!1), f = C(e.dialogType), y = C(e.src), g = C(""), m = C(e.showButtons), w = C(e.title), k = C(e.containment || null), O = C(), {
|
|
904
904
|
t: B
|
|
905
905
|
} = xt();
|
|
906
906
|
w.value === "错误提示" && (w.value = B("messageBox.errorTitle"));
|
|
907
907
|
const b = C(!1);
|
|
908
|
-
function
|
|
908
|
+
function p(L, Q) {
|
|
909
909
|
const se = Q ? "accept" : "cancel";
|
|
910
910
|
Promise.resolve().then(() => {
|
|
911
911
|
var ue;
|
|
@@ -916,29 +916,29 @@ const ot = /* @__PURE__ */ oe({
|
|
|
916
916
|
ue && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", L));
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
const
|
|
919
|
+
const F = [{
|
|
920
920
|
name: "cancel",
|
|
921
921
|
text: B("messageBox.cancel") || "取消",
|
|
922
922
|
class: "btn btn-secondary",
|
|
923
923
|
handle: (L) => {
|
|
924
|
-
|
|
924
|
+
p(L, !1);
|
|
925
925
|
}
|
|
926
926
|
}, {
|
|
927
927
|
name: "accept",
|
|
928
928
|
text: B("messageBox.ok") || "确定",
|
|
929
929
|
class: "btn btn-primary",
|
|
930
930
|
handle: (L) => {
|
|
931
|
-
|
|
931
|
+
p(L, !0);
|
|
932
932
|
}
|
|
933
|
-
}],
|
|
934
|
-
renderResizeBar:
|
|
933
|
+
}], T = C(e.buttons && e.buttons.length ? e.buttons : F), I = N(() => !!c.value), R = N(() => !!m.value && !!T.value), M = C(), S = C(), x = C(!1), {
|
|
934
|
+
renderResizeBar: E,
|
|
935
935
|
maximize: P,
|
|
936
|
-
restore:
|
|
936
|
+
restore: W,
|
|
937
937
|
boundingElement: J,
|
|
938
938
|
resizedEventParam: $,
|
|
939
939
|
allowDrag: j,
|
|
940
940
|
unWindowResizeHandle: G,
|
|
941
|
-
moveToCenter:
|
|
941
|
+
moveToCenter: z
|
|
942
942
|
} = ei(e), {
|
|
943
943
|
registerDraggle: ee
|
|
944
944
|
} = ti(e, t, j);
|
|
@@ -947,24 +947,24 @@ const ot = /* @__PURE__ */ oe({
|
|
|
947
947
|
}
|
|
948
948
|
function ve() {
|
|
949
949
|
const L = document.querySelectorAll(".farris-modal").length;
|
|
950
|
-
(!L || L - 1 <= 0) && document.body.classList.remove("modal-open"),
|
|
950
|
+
(!L || L - 1 <= 0) && document.body.classList.remove("modal-open"), O.value && O.value.classList.remove("show");
|
|
951
951
|
}
|
|
952
952
|
Z(() => e.title, (L, Q) => {
|
|
953
953
|
L !== Q && (w.value = L);
|
|
954
954
|
}), Z(() => e.modelValue, (L, Q) => {
|
|
955
955
|
L !== Q && (o.value = L, o.value && e.draggable && _e(() => {
|
|
956
|
-
|
|
957
|
-
}), L || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (
|
|
956
|
+
S.value && !k.value && (k.value = S.value.parentElement, J.value = k.value, ee(M.value, S.value, J.value), z());
|
|
957
|
+
}), L || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (x.value = !1, j.value = e.draggable);
|
|
958
958
|
}), Z(() => e.showHeader, (L, Q) => {
|
|
959
959
|
L !== Q && (d.value = L);
|
|
960
960
|
}), Z(() => e.showButtons, (L, Q) => {
|
|
961
|
-
L !== Q && (
|
|
961
|
+
L !== Q && (m.value = L);
|
|
962
962
|
}), Z(() => $.value, (L, Q) => {
|
|
963
963
|
const se = L || {}, ue = Q || {};
|
|
964
964
|
JSON.stringify(se) !== JSON.stringify(ue) && t.emit("resize", {
|
|
965
965
|
newSize: L,
|
|
966
966
|
oldSize: Q,
|
|
967
|
-
isMaximized:
|
|
967
|
+
isMaximized: x.value
|
|
968
968
|
});
|
|
969
969
|
});
|
|
970
970
|
const Y = N(() => (o.value && document.body.classList.add("modal-open"), o.value)), ie = N(() => {
|
|
@@ -1008,7 +1008,7 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1008
1008
|
}), Ve = N(() => ({
|
|
1009
1009
|
"f-icon": !0,
|
|
1010
1010
|
modal_maximize: !0,
|
|
1011
|
-
modalrevert:
|
|
1011
|
+
modalrevert: x.value
|
|
1012
1012
|
})), Be = N(() => ({
|
|
1013
1013
|
"modal-body": !0,
|
|
1014
1014
|
"f-utils-flex-column": f.value === "iframe",
|
|
@@ -1026,31 +1026,31 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1026
1026
|
return Object.assign(L, Q);
|
|
1027
1027
|
});
|
|
1028
1028
|
function Qe(L) {
|
|
1029
|
-
if (L == null || L.stopPropagation(),
|
|
1030
|
-
|
|
1029
|
+
if (L == null || L.stopPropagation(), x.value) {
|
|
1030
|
+
x.value = !1, W();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
P(),
|
|
1033
|
+
P(), x.value = !0;
|
|
1034
1034
|
}
|
|
1035
1035
|
async function fe(L, Q) {
|
|
1036
1036
|
L.handle && await L.handle(Q, L) && t.emit("closed", Q);
|
|
1037
1037
|
}
|
|
1038
1038
|
function ft(L) {
|
|
1039
|
-
L.width && (n.value = L.width), L.height && (a.value = L.height), L.buttons && (
|
|
1039
|
+
L.width && (n.value = L.width), L.height && (a.value = L.height), L.buttons && (T.value = L.buttons), L.title && (w.value = L.title);
|
|
1040
1040
|
}
|
|
1041
1041
|
let Me = null, $e = null;
|
|
1042
1042
|
Da(() => {
|
|
1043
1043
|
b.value = ce();
|
|
1044
1044
|
}), be(() => {
|
|
1045
|
-
|
|
1045
|
+
S.value && !k.value && (k.value = S.value.parentElement, J.value = k.value, ee(M.value, S.value, J.value)), Y.value && document.body.classList.add("modal-open"), Me = ni(e, t), $e = ai(e, t);
|
|
1046
1046
|
}), wt(() => {
|
|
1047
1047
|
G && G(), Me && Me.remove(), $e && $e.remove();
|
|
1048
1048
|
}), t.expose({
|
|
1049
|
-
modalElementRef:
|
|
1049
|
+
modalElementRef: S,
|
|
1050
1050
|
updateModalOptions: ft,
|
|
1051
|
-
close:
|
|
1051
|
+
close: p,
|
|
1052
1052
|
maxDialog: Qe,
|
|
1053
|
-
isMaximized:
|
|
1053
|
+
isMaximized: x
|
|
1054
1054
|
});
|
|
1055
1055
|
function Ae() {
|
|
1056
1056
|
return v("ul", null, [l.value && v("li", {
|
|
@@ -1065,7 +1065,7 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1065
1065
|
class: Ve.value
|
|
1066
1066
|
}, null)]), h.value && v("li", {
|
|
1067
1067
|
class: "f-btn-icon f-bare",
|
|
1068
|
-
onClick: (L) =>
|
|
1068
|
+
onClick: (L) => p(L, !1),
|
|
1069
1069
|
style: "pointer-events: auto;"
|
|
1070
1070
|
}, [v("span", {
|
|
1071
1071
|
class: "f-icon modal_close"
|
|
@@ -1075,7 +1075,7 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1075
1075
|
return v("div", {
|
|
1076
1076
|
class: "modal-footer",
|
|
1077
1077
|
style: Je.value
|
|
1078
|
-
}, [
|
|
1078
|
+
}, [T.value && T.value.map((L) => {
|
|
1079
1079
|
const Q = C(L.disabled);
|
|
1080
1080
|
return v("button", {
|
|
1081
1081
|
name: L.name,
|
|
@@ -1111,9 +1111,9 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function Pe(L) {
|
|
1113
1113
|
if (L.stopPropagation(), e.allowClickMaskToClose) {
|
|
1114
|
-
if (L.target !==
|
|
1114
|
+
if (L.target !== O.value)
|
|
1115
1115
|
return;
|
|
1116
|
-
|
|
1116
|
+
p(L, !1);
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
1119
|
function ze() {
|
|
@@ -1122,7 +1122,7 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1122
1122
|
id: i.value,
|
|
1123
1123
|
class: de.value,
|
|
1124
1124
|
style: ne.value,
|
|
1125
|
-
ref:
|
|
1125
|
+
ref: S
|
|
1126
1126
|
}, [v("div", {
|
|
1127
1127
|
class: ae.value
|
|
1128
1128
|
}, [d.value && pt(), v("div", {
|
|
@@ -1132,8 +1132,8 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1132
1132
|
class: "f-utils-fill",
|
|
1133
1133
|
width: "100%",
|
|
1134
1134
|
frameborder: "0",
|
|
1135
|
-
src:
|
|
1136
|
-
}, null)]), Ze()]), !u.value &&
|
|
1135
|
+
src: y.value
|
|
1136
|
+
}, null)]), Ze()]), !u.value && S.value && !x.value && E(S.value)]);
|
|
1137
1137
|
}
|
|
1138
1138
|
function st(L) {
|
|
1139
1139
|
return L || "body";
|
|
@@ -1146,7 +1146,7 @@ const ot = /* @__PURE__ */ oe({
|
|
|
1146
1146
|
appear: !0
|
|
1147
1147
|
}, {
|
|
1148
1148
|
default: () => [v("div", {
|
|
1149
|
-
ref:
|
|
1149
|
+
ref: O,
|
|
1150
1150
|
class: ie.value,
|
|
1151
1151
|
style: _.value,
|
|
1152
1152
|
onClick: Pe
|
|
@@ -1171,11 +1171,11 @@ function oi(e) {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
const i = C(), r = C(e.class || ""), u = C(!!e.showButtons), d = C(!!e.showHeader), c = C(e.showCloseButton == null ? !0 : e.showCloseButton), h = C(!0), s = C(e.title || ""), l = e.acceptCallback || (() => {
|
|
1173
1173
|
}), f = e.rejectCallback || (() => {
|
|
1174
|
-
}),
|
|
1175
|
-
}), g = e.resizeHandle || ((
|
|
1176
|
-
}),
|
|
1177
|
-
}), w = $n(e), k = (
|
|
1178
|
-
h.value = !1, n.unmount(),
|
|
1174
|
+
}), y = e.closedCallback || ((O) => {
|
|
1175
|
+
}), g = e.resizeHandle || ((O) => {
|
|
1176
|
+
}), m = e.stopMoveHandle || ((O) => {
|
|
1177
|
+
}), w = $n(e), k = (O) => {
|
|
1178
|
+
h.value = !1, n.unmount(), y(O);
|
|
1179
1179
|
};
|
|
1180
1180
|
return be(() => {
|
|
1181
1181
|
}), o.expose({
|
|
@@ -1184,7 +1184,7 @@ function oi(e) {
|
|
|
1184
1184
|
ref: i,
|
|
1185
1185
|
class: r.value,
|
|
1186
1186
|
modelValue: h.value,
|
|
1187
|
-
"onUpdate:modelValue": (
|
|
1187
|
+
"onUpdate:modelValue": (O) => h.value = O,
|
|
1188
1188
|
title: s.value,
|
|
1189
1189
|
width: e.width,
|
|
1190
1190
|
height: e.height,
|
|
@@ -1198,7 +1198,7 @@ function oi(e) {
|
|
|
1198
1198
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1199
1199
|
onClosed: k,
|
|
1200
1200
|
onResize: g,
|
|
1201
|
-
onStopMove:
|
|
1201
|
+
onStopMove: m
|
|
1202
1202
|
}, {
|
|
1203
1203
|
default: () => [w && w(n)]
|
|
1204
1204
|
});
|
|
@@ -1253,31 +1253,31 @@ class An {
|
|
|
1253
1253
|
showHeader: !0
|
|
1254
1254
|
}, t)), o = C(!0), i = a.value.acceptCallback || (() => {
|
|
1255
1255
|
}), r = a.value.rejectCallback || (() => {
|
|
1256
|
-
}), u = a.value.closedCallback || ((b,
|
|
1256
|
+
}), u = a.value.closedCallback || ((b, p) => {
|
|
1257
1257
|
}), d = a.value.resizeHandle || ((b) => {
|
|
1258
1258
|
}), c = t.stopMoveHandle || ((b) => {
|
|
1259
1259
|
});
|
|
1260
1260
|
let h;
|
|
1261
1261
|
const s = $n(a.value), l = (b) => {
|
|
1262
|
-
var
|
|
1262
|
+
var F;
|
|
1263
1263
|
o.value = !1;
|
|
1264
|
-
const
|
|
1265
|
-
u(b, this.isUseEscCloseModal.value ? "esc" :
|
|
1264
|
+
const p = (F = b == null ? void 0 : b.target) == null ? void 0 : F.classList.contains("modal_close");
|
|
1265
|
+
u(b, this.isUseEscCloseModal.value ? "esc" : p ? "icon" : "button");
|
|
1266
1266
|
}, f = (b) => {
|
|
1267
1267
|
l(b), h && _e(() => {
|
|
1268
1268
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Jt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
|
|
1269
|
-
const
|
|
1270
|
-
|
|
1269
|
+
const p = Object.keys(this.modalRefs).map((F) => Number(F));
|
|
1270
|
+
p.length > 0 ? this.activeModalIndex.value = Math.max(...p) : this.activeModalIndex.value = 0;
|
|
1271
1271
|
}
|
|
1272
1272
|
this.isUseEscCloseModal.value = !1;
|
|
1273
1273
|
});
|
|
1274
|
-
},
|
|
1275
|
-
var
|
|
1276
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
1274
|
+
}, y = (b) => {
|
|
1275
|
+
var p;
|
|
1276
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((p = this.activeModalInstance.value) == null || p.close(b == null ? void 0 : b.event));
|
|
1277
1277
|
}, {
|
|
1278
1278
|
width: g,
|
|
1279
|
-
height:
|
|
1280
|
-
} = a.value, w = this.adaptToWindow(g || 500,
|
|
1279
|
+
height: m
|
|
1280
|
+
} = a.value, w = this.adaptToWindow(g || 500, m || 320);
|
|
1281
1281
|
Object.assign(a.value, w);
|
|
1282
1282
|
const k = () => v(ot, kt({
|
|
1283
1283
|
ref: this.modalRef,
|
|
@@ -1288,14 +1288,14 @@ class An {
|
|
|
1288
1288
|
onCancel: r,
|
|
1289
1289
|
onClosed: f,
|
|
1290
1290
|
onResize: d,
|
|
1291
|
-
onEsc:
|
|
1291
|
+
onEsc: y,
|
|
1292
1292
|
onStopMove: c
|
|
1293
1293
|
}), {
|
|
1294
1294
|
default: () => [s && s(this.app)]
|
|
1295
1295
|
});
|
|
1296
1296
|
return h = ((b) => {
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1297
|
+
const p = Na(k, b);
|
|
1298
|
+
return p.appContext = this.appContext, Jt(p, n), p;
|
|
1299
1299
|
})({
|
|
1300
1300
|
...a.value
|
|
1301
1301
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
@@ -1319,13 +1319,13 @@ function ii(e = {}) {
|
|
|
1319
1319
|
if (typeof s == "number")
|
|
1320
1320
|
return l[c].length === s;
|
|
1321
1321
|
if (typeof s == "object") {
|
|
1322
|
-
const f = Object.keys(s)[0],
|
|
1322
|
+
const f = Object.keys(s)[0], y = s[f];
|
|
1323
1323
|
if (f === "not")
|
|
1324
|
-
return Number(l[c].length) !== Number(
|
|
1324
|
+
return Number(l[c].length) !== Number(y);
|
|
1325
1325
|
if (f === "moreThan")
|
|
1326
|
-
return Number(l[c].length) >= Number(
|
|
1326
|
+
return Number(l[c].length) >= Number(y);
|
|
1327
1327
|
if (f === "lessThan")
|
|
1328
|
-
return Number(l[c].length) <= Number(
|
|
1328
|
+
return Number(l[c].length) <= Number(y);
|
|
1329
1329
|
}
|
|
1330
1330
|
return !1;
|
|
1331
1331
|
}
|
|
@@ -1342,8 +1342,8 @@ function ii(e = {}) {
|
|
|
1342
1342
|
return typeof h == "number" ? [{ target: s, operator: "length", param: null, value: Number(h) }] : typeof h == "boolean" ? [{ target: s, operator: "getProperty", param: c, value: !!h }] : typeof h == "object" ? Object.keys(h).map((l) => {
|
|
1343
1343
|
if (l === "length")
|
|
1344
1344
|
return { target: s, operator: "length", param: null, value: h[l] };
|
|
1345
|
-
const f = l,
|
|
1346
|
-
return { target: s, operator: "getProperty", param: f, value:
|
|
1345
|
+
const f = l, y = h[l];
|
|
1346
|
+
return { target: s, operator: "getProperty", param: f, value: y };
|
|
1347
1347
|
}) : [];
|
|
1348
1348
|
}
|
|
1349
1349
|
function i(c) {
|
|
@@ -1360,10 +1360,10 @@ function ii(e = {}) {
|
|
|
1360
1360
|
return !1;
|
|
1361
1361
|
}
|
|
1362
1362
|
function u(c, h) {
|
|
1363
|
-
return i(c).reduce((f,
|
|
1363
|
+
return i(c).reduce((f, y) => f && r(y, h), !0);
|
|
1364
1364
|
}
|
|
1365
1365
|
function d(c, h) {
|
|
1366
|
-
const s = Object.keys(c), l = s.includes("allOf"), f = s.includes("anyOf"),
|
|
1366
|
+
const s = Object.keys(c), l = s.includes("allOf"), f = s.includes("anyOf"), y = l || f, w = (y ? c[y ? l ? "allOf" : "anyOf" : "allOf"] : [c]).map((O) => u(O, h));
|
|
1367
1367
|
return l ? !w.includes(!1) : w.includes(!0);
|
|
1368
1368
|
}
|
|
1369
1369
|
return { parseValueSchema: d };
|
|
@@ -1654,75 +1654,75 @@ function Hn(e, t, n) {
|
|
|
1654
1654
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
1655
1655
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
1656
1656
|
]), i = ii();
|
|
1657
|
-
function r(
|
|
1658
|
-
return () => i.parseValueSchema(
|
|
1657
|
+
function r(y, g) {
|
|
1658
|
+
return () => i.parseValueSchema(y, g);
|
|
1659
1659
|
}
|
|
1660
|
-
function u(
|
|
1661
|
-
return
|
|
1660
|
+
function u(y, g, m) {
|
|
1661
|
+
return y.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : r(g.visible, m) : () => !0;
|
|
1662
1662
|
}
|
|
1663
|
-
function d(
|
|
1664
|
-
return
|
|
1663
|
+
function d(y, g, m) {
|
|
1664
|
+
return y.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : r(g.readonly, m) : () => !1;
|
|
1665
1665
|
}
|
|
1666
|
-
function c(
|
|
1667
|
-
const
|
|
1668
|
-
return typeof
|
|
1666
|
+
function c(y, g) {
|
|
1667
|
+
const m = y.$converter || g;
|
|
1668
|
+
return typeof m == "string" && m && a.has(m) ? a.get(m) || null : m || null;
|
|
1669
1669
|
}
|
|
1670
|
-
function h(
|
|
1671
|
-
return Object.keys(
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1674
|
-
const J = I.type === "cascade" ? h(I.properties, g,
|
|
1670
|
+
function h(y, g, m, w, k, O = "", B = "") {
|
|
1671
|
+
return Object.keys(y).map((p) => {
|
|
1672
|
+
const F = C(1), T = p, I = y[p], R = Object.keys(I), M = I.title, S = I.type, x = o.get(S) || { type: "input-group", enableClear: !1 }, E = I.editor ? Object.assign({}, x, I.editor) : Object.assign({}, x), P = u(R, I, g), W = d(R, I, g);
|
|
1673
|
+
E.readonly = E.readonly === void 0 ? W() : E.readonly;
|
|
1674
|
+
const J = I.type === "cascade" ? h(I.properties, g, m, w, k, O, B) : [], $ = !0;
|
|
1675
1675
|
let j = c(I, B);
|
|
1676
1676
|
const G = N({
|
|
1677
1677
|
get() {
|
|
1678
|
-
if (
|
|
1679
|
-
if (["class", "style"].find((de) => de ===
|
|
1680
|
-
return j.convertFrom(
|
|
1681
|
-
const ie = p
|
|
1678
|
+
if (F.value) {
|
|
1679
|
+
if (["class", "style"].find((de) => de === T) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
1680
|
+
return j.convertFrom(m, p, k, O);
|
|
1681
|
+
const ie = m[p];
|
|
1682
1682
|
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (ie === void 0 || typeof ie == "string" && ie === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : ie;
|
|
1683
1683
|
}
|
|
1684
1684
|
return null;
|
|
1685
1685
|
},
|
|
1686
1686
|
set(ie) {
|
|
1687
|
-
|
|
1687
|
+
F.value += 1, j && j.convertTo ? (j.convertTo(w, p, ie, k, O), j.convertTo(m, p, ie, k, O)) : (w[p] = ie, m[p] = ie);
|
|
1688
1688
|
}
|
|
1689
|
-
}), { refreshPanelAfterChanged:
|
|
1690
|
-
return g[
|
|
1689
|
+
}), { refreshPanelAfterChanged: z, description: ee, isExpand: ce, parentPropertyID: ve } = I, Y = { propertyID: T, propertyName: M, propertyType: S, propertyValue: G, editor: E, visible: P, readonly: W, cascadeConfig: J, hideCascadeTitle: $, refreshPanelAfterChanged: z, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
1690
|
+
return g[T] = Y, Y;
|
|
1691
1691
|
});
|
|
1692
1692
|
}
|
|
1693
|
-
function s(
|
|
1694
|
-
const w = {}, k = e[
|
|
1693
|
+
function s(y, g, m = {}) {
|
|
1694
|
+
const w = {}, k = e[y];
|
|
1695
1695
|
return k && k.categories ? Object.keys(k.categories).map((B) => {
|
|
1696
|
-
const b = k.categories[B],
|
|
1697
|
-
return { categoryId: B, categoryName:
|
|
1696
|
+
const b = k.categories[B], p = b == null ? void 0 : b.title, F = h(b.properties || {}, w, {}, m, g);
|
|
1697
|
+
return { categoryId: B, categoryName: p, properties: F };
|
|
1698
1698
|
}) : [];
|
|
1699
1699
|
}
|
|
1700
|
-
function l(
|
|
1701
|
-
const
|
|
1700
|
+
function l(y, g, m, w, k = "") {
|
|
1701
|
+
const O = g.$ref.schema, B = g.$ref.converter, b = m[O], p = b.type, F = n(b), T = {}, I = e[p];
|
|
1702
1702
|
if (I && I.categories) {
|
|
1703
|
-
const R = I.categories[
|
|
1704
|
-
B && Object.keys(R.properties).forEach((
|
|
1705
|
-
R.properties[
|
|
1703
|
+
const R = I.categories[y], M = R == null ? void 0 : R.title;
|
|
1704
|
+
B && Object.keys(R.properties).forEach((E) => {
|
|
1705
|
+
R.properties[E].$converter = B;
|
|
1706
1706
|
});
|
|
1707
|
-
const
|
|
1708
|
-
return { categoryId:
|
|
1709
|
-
}
|
|
1710
|
-
return { categoryId:
|
|
1711
|
-
}
|
|
1712
|
-
function f(
|
|
1713
|
-
const
|
|
1714
|
-
let
|
|
1715
|
-
if (
|
|
1716
|
-
const
|
|
1717
|
-
return Object.keys(
|
|
1718
|
-
const I =
|
|
1707
|
+
const S = (R == null ? void 0 : R.properties) || {}, x = h(S, T, F, b, w, k);
|
|
1708
|
+
return { categoryId: y, categoryName: M, properties: x };
|
|
1709
|
+
}
|
|
1710
|
+
return { categoryId: y, categoryName: "", properties: [] };
|
|
1711
|
+
}
|
|
1712
|
+
function f(y, g, m, w, k) {
|
|
1713
|
+
const O = y.type, B = n(y), b = {};
|
|
1714
|
+
let p = k || e[O];
|
|
1715
|
+
if (p && Object.keys(p).length === 0 && m && m.getPropConfig && (p = m.getPropConfig(w)), p && p.categories) {
|
|
1716
|
+
const F = [];
|
|
1717
|
+
return Object.keys(p.categories).map((T) => {
|
|
1718
|
+
const I = p.categories[T];
|
|
1719
1719
|
if (I.$ref) {
|
|
1720
|
-
|
|
1720
|
+
F.push(l(T, I, y, g, w));
|
|
1721
1721
|
return;
|
|
1722
1722
|
}
|
|
1723
|
-
const R = I == null ? void 0 : I.title, M = I == null ? void 0 : I.tabId,
|
|
1724
|
-
|
|
1725
|
-
}),
|
|
1723
|
+
const R = I == null ? void 0 : I.title, M = I == null ? void 0 : I.tabId, S = I == null ? void 0 : I.tabName, x = I == null ? void 0 : I.hide, E = I == null ? void 0 : I.hideTitle, P = h(I.properties || {}, b, B, y, g, w, I.$converter), { setPropertyRelates: W } = I, J = I == null ? void 0 : I.parentPropertyID;
|
|
1724
|
+
F.push({ categoryId: T, categoryName: R, tabId: M, tabName: S, hide: x, properties: P, hideTitle: E, setPropertyRelates: W, parentPropertyID: J });
|
|
1725
|
+
}), F;
|
|
1726
1726
|
}
|
|
1727
1727
|
return [];
|
|
1728
1728
|
}
|
|
@@ -1735,20 +1735,20 @@ function Hn(e, t, n) {
|
|
|
1735
1735
|
function zn(e, t) {
|
|
1736
1736
|
let n;
|
|
1737
1737
|
function a(s) {
|
|
1738
|
-
const { properties: l, title: f, ignore:
|
|
1739
|
-
if (f && (!g || !
|
|
1738
|
+
const { properties: l, title: f, ignore: y } = s, g = y && Array.isArray(y), m = Object.keys(l).reduce((w, k) => ((!g || !y.find((O) => O === k)) && (w[k] = l[k].type === "object" && l[k].properties ? a(l[k]) : Re(l[k].default)), w), {});
|
|
1739
|
+
if (f && (!g || !y.find((w) => w === "id"))) {
|
|
1740
1740
|
const w = f.toLowerCase().replace(/-/g, "_");
|
|
1741
|
-
|
|
1741
|
+
m.id = `${w}_${Math.random().toString().slice(2, 6)}`;
|
|
1742
1742
|
}
|
|
1743
|
-
return
|
|
1743
|
+
return m;
|
|
1744
1744
|
}
|
|
1745
1745
|
function o(s) {
|
|
1746
|
-
const { properties: l, title: f, required:
|
|
1747
|
-
if (
|
|
1748
|
-
const g =
|
|
1749
|
-
if (f &&
|
|
1750
|
-
const
|
|
1751
|
-
g.id = `${
|
|
1746
|
+
const { properties: l, title: f, required: y } = s;
|
|
1747
|
+
if (y && Array.isArray(y)) {
|
|
1748
|
+
const g = y.reduce((m, w) => (m[w] = l[w].type === "object" && l[w].properties ? a(l[w]) : Re(l[w].default), m), {});
|
|
1749
|
+
if (f && y.find((m) => m === "id")) {
|
|
1750
|
+
const m = f.toLowerCase().replace(/-/g, "_");
|
|
1751
|
+
g.id = `${m}_${Math.random().toString().slice(2, 6)}`;
|
|
1752
1752
|
}
|
|
1753
1753
|
return g;
|
|
1754
1754
|
}
|
|
@@ -1757,47 +1757,47 @@ function zn(e, t) {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
}
|
|
1759
1759
|
function i(s, l = {}, f) {
|
|
1760
|
-
const
|
|
1761
|
-
if (
|
|
1762
|
-
let g = o(
|
|
1763
|
-
const
|
|
1764
|
-
return g =
|
|
1760
|
+
const y = e[s];
|
|
1761
|
+
if (y) {
|
|
1762
|
+
let g = o(y);
|
|
1763
|
+
const m = t[s];
|
|
1764
|
+
return g = m ? m({ getSchemaByType: i }, g, l, f) : g, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(g), g;
|
|
1765
1765
|
}
|
|
1766
1766
|
return null;
|
|
1767
1767
|
}
|
|
1768
1768
|
function r(s, l) {
|
|
1769
1769
|
const f = a(l);
|
|
1770
|
-
return Object.keys(f).reduce((
|
|
1770
|
+
return Object.keys(f).reduce((y, g) => (Object.prototype.hasOwnProperty.call(s, g) && (y[g] && yn(y[g]) && yn(s[g] || !s[g]) ? Object.assign(y[g], s[g] || {}) : y[g] = s[g]), y), f), f;
|
|
1771
1771
|
}
|
|
1772
1772
|
function u(s, l) {
|
|
1773
|
-
return Object.keys(s).filter((
|
|
1773
|
+
return Object.keys(s).filter((y) => s[y] != null).reduce((y, g) => {
|
|
1774
1774
|
if (l.has(g)) {
|
|
1775
|
-
const
|
|
1776
|
-
if (typeof
|
|
1777
|
-
m
|
|
1775
|
+
const m = l.get(g);
|
|
1776
|
+
if (typeof m == "string")
|
|
1777
|
+
y[m] = s[g];
|
|
1778
1778
|
else {
|
|
1779
|
-
const w =
|
|
1780
|
-
Object.assign(
|
|
1779
|
+
const w = m(g, s[g], s);
|
|
1780
|
+
Object.assign(y, w);
|
|
1781
1781
|
}
|
|
1782
1782
|
} else
|
|
1783
|
-
|
|
1784
|
-
return
|
|
1783
|
+
y[g] = s[g];
|
|
1784
|
+
return y;
|
|
1785
1785
|
}, {});
|
|
1786
1786
|
}
|
|
1787
1787
|
function d(s, l, f = /* @__PURE__ */ new Map()) {
|
|
1788
|
-
const
|
|
1789
|
-
return u(
|
|
1788
|
+
const y = r(s, l);
|
|
1789
|
+
return u(y, f);
|
|
1790
1790
|
}
|
|
1791
1791
|
function c(s) {
|
|
1792
1792
|
var f;
|
|
1793
1793
|
const l = s.type;
|
|
1794
1794
|
if (l) {
|
|
1795
|
-
const
|
|
1796
|
-
if (!
|
|
1795
|
+
const y = e[l];
|
|
1796
|
+
if (!y)
|
|
1797
1797
|
return s;
|
|
1798
|
-
const g = r(s,
|
|
1799
|
-
if (
|
|
1800
|
-
const w = e[
|
|
1798
|
+
const g = r(s, y), m = ((f = s.editor) == null ? void 0 : f.type) || "";
|
|
1799
|
+
if (m) {
|
|
1800
|
+
const w = e[m], k = r(s.editor, w);
|
|
1801
1801
|
g.editor = k;
|
|
1802
1802
|
}
|
|
1803
1803
|
return g;
|
|
@@ -2050,9 +2050,9 @@ var Ai = { exports: {} };
|
|
|
2050
2050
|
throw l.code = "MODULE_NOT_FOUND", l;
|
|
2051
2051
|
}
|
|
2052
2052
|
var f = o[c] = { exports: {} };
|
|
2053
|
-
a[c][0].call(f.exports, function(
|
|
2054
|
-
var g = a[c][1][
|
|
2055
|
-
return r(g ||
|
|
2053
|
+
a[c][0].call(f.exports, function(y) {
|
|
2054
|
+
var g = a[c][1][y];
|
|
2055
|
+
return r(g || y);
|
|
2056
2056
|
}, f, f.exports, n, a, o, i);
|
|
2057
2057
|
}
|
|
2058
2058
|
return o[c].exports;
|
|
@@ -2083,10 +2083,10 @@ var Ai = { exports: {} };
|
|
|
2083
2083
|
2: [function(n, a, o) {
|
|
2084
2084
|
(function(i) {
|
|
2085
2085
|
var r = n("contra/emitter"), u = n("crossvent"), d = n("./classes"), c = document, h = c.documentElement;
|
|
2086
|
-
function s(M,
|
|
2087
|
-
var
|
|
2088
|
-
|
|
2089
|
-
var
|
|
2086
|
+
function s(M, S) {
|
|
2087
|
+
var x = arguments.length;
|
|
2088
|
+
x === 1 && Array.isArray(M) === !1 && (S = M, M = []);
|
|
2089
|
+
var E, P, W, J, $, j, G, z, ee, ce = null, ve, Y, ie = !1, de = 0, ne, _ = S || {};
|
|
2090
2090
|
_.moves === void 0 && (_.moves = k), _.accepts === void 0 && (_.accepts = k), _.invalid === void 0 && (_.invalid = pt), _.containers === void 0 && (_.containers = M || []), _.isContainer === void 0 && (_.isContainer = w), _.copy === void 0 && (_.copy = !1), _.copySortSource === void 0 && (_.copySortSource = !1), _.revertOnSpill === void 0 && (_.revertOnSpill = !1), _.removeOnSpill === void 0 && (_.removeOnSpill = !1), _.direction === void 0 && (_.direction = "vertical"), _.ignoreInputTextSelection === void 0 && (_.ignoreInputTextSelection = !0), _.mirrorContainer === void 0 && (_.mirrorContainer = c.body);
|
|
2091
2091
|
var ae = r({
|
|
2092
2092
|
containers: _.containers,
|
|
@@ -2104,11 +2104,11 @@ var Ai = { exports: {} };
|
|
|
2104
2104
|
}
|
|
2105
2105
|
function Ve(D) {
|
|
2106
2106
|
var A = D ? "remove" : "add";
|
|
2107
|
-
|
|
2107
|
+
y(h, A, "mousedown", fe), y(h, A, "mouseup", ze);
|
|
2108
2108
|
}
|
|
2109
2109
|
function Be(D) {
|
|
2110
2110
|
var A = D ? "remove" : "add";
|
|
2111
|
-
|
|
2111
|
+
y(h, A, "mousemove", ft);
|
|
2112
2112
|
}
|
|
2113
2113
|
function rt(D) {
|
|
2114
2114
|
var A = D ? "remove" : "add";
|
|
@@ -2124,8 +2124,8 @@ var Ai = { exports: {} };
|
|
|
2124
2124
|
J = D.clientX, $ = D.clientY;
|
|
2125
2125
|
var A = g(D) !== 1 || D.metaKey || D.ctrlKey;
|
|
2126
2126
|
if (!A) {
|
|
2127
|
-
var
|
|
2128
|
-
U && (ve = U, Be(), D.type === "mousedown" && (
|
|
2127
|
+
var H = D.target, U = Me(H);
|
|
2128
|
+
U && (ve = U, Be(), D.type === "mousedown" && (p(H) ? H.focus() : D.preventDefault()));
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
function ft(D) {
|
|
@@ -2136,27 +2136,27 @@ var Ai = { exports: {} };
|
|
|
2136
2136
|
}
|
|
2137
2137
|
if (!(D.clientX !== void 0 && Math.abs(D.clientX - J) <= (_.slideFactorX || 0) && D.clientY !== void 0 && Math.abs(D.clientY - $) <= (_.slideFactorY || 0))) {
|
|
2138
2138
|
if (_.ignoreInputTextSelection) {
|
|
2139
|
-
var A = R("clientX", D) || 0,
|
|
2140
|
-
if (
|
|
2139
|
+
var A = R("clientX", D) || 0, H = R("clientY", D) || 0, U = c.elementFromPoint(A, H);
|
|
2140
|
+
if (p(U))
|
|
2141
2141
|
return;
|
|
2142
2142
|
}
|
|
2143
2143
|
var K = ve;
|
|
2144
|
-
Be(!0), rt(), Ze(), He(K), d.add(
|
|
2144
|
+
Be(!0), rt(), Ze(), He(K), d.add(z || W, "gu-transit"), zt(), Ht(), de = 0, mt(D);
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
2148
|
function Me(D) {
|
|
2149
|
-
if (!(ae.dragging &&
|
|
2149
|
+
if (!(ae.dragging && E) && !Xe(D)) {
|
|
2150
2150
|
for (var A = D; b(D) && Xe(b(D)) === !1; )
|
|
2151
2151
|
if (_.invalid(D, A) || (D = b(D), !D))
|
|
2152
2152
|
return;
|
|
2153
|
-
var
|
|
2154
|
-
if (
|
|
2155
|
-
var U = _.moves(D,
|
|
2153
|
+
var H = b(D);
|
|
2154
|
+
if (H && !_.invalid(D, A)) {
|
|
2155
|
+
var U = _.moves(D, H, A, T(D));
|
|
2156
2156
|
if (U)
|
|
2157
2157
|
return {
|
|
2158
2158
|
item: D,
|
|
2159
|
-
source:
|
|
2159
|
+
source: H
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
2162
2162
|
}
|
|
@@ -2169,14 +2169,14 @@ var Ai = { exports: {} };
|
|
|
2169
2169
|
A && He(A);
|
|
2170
2170
|
}
|
|
2171
2171
|
function He(D) {
|
|
2172
|
-
Xt(D.item, D.source) && (
|
|
2172
|
+
Xt(D.item, D.source) && (z = D.item.cloneNode(!0), ae.emit("cloned", z, D.item, "copy")), P = D.source, W = D.item, j = G = T(D.item), ae.dragging = !0, ae.emit("drag", W, P);
|
|
2173
2173
|
}
|
|
2174
2174
|
function pt() {
|
|
2175
2175
|
return !1;
|
|
2176
2176
|
}
|
|
2177
2177
|
function Ze() {
|
|
2178
2178
|
if (ae.dragging) {
|
|
2179
|
-
var D =
|
|
2179
|
+
var D = z || W;
|
|
2180
2180
|
st(D, b(D));
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
@@ -2185,35 +2185,35 @@ var Ai = { exports: {} };
|
|
|
2185
2185
|
}
|
|
2186
2186
|
function ze(D) {
|
|
2187
2187
|
if (Pe(), !!ae.dragging) {
|
|
2188
|
-
var A =
|
|
2189
|
-
te && (
|
|
2188
|
+
var A = z || W, H = R("clientX", D) || 0, U = R("clientY", D) || 0, K = m(E, H, U), te = We(K, H, U);
|
|
2189
|
+
te && (z && _.copySortSource || !z || te !== P) ? st(A, te) : _.removeOnSpill ? L() : Q();
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
2192
|
function st(D, A) {
|
|
2193
|
-
var
|
|
2194
|
-
|
|
2193
|
+
var H = b(D);
|
|
2194
|
+
z && _.copySortSource && A === P && H.removeChild(W), ue(A) ? ae.emit("cancel", D, P) : ae.emit("drop", D, A, P, G), se();
|
|
2195
2195
|
}
|
|
2196
2196
|
function L() {
|
|
2197
2197
|
if (ae.dragging) {
|
|
2198
|
-
var D =
|
|
2199
|
-
A && A.removeChild(D), ae.emit(
|
|
2198
|
+
var D = z || W, A = b(D);
|
|
2199
|
+
A && A.removeChild(D), ae.emit(z ? "cancel" : "remove", D, A, P), se();
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
2202
|
function Q(D) {
|
|
2203
2203
|
if (ae.dragging) {
|
|
2204
|
-
var A = arguments.length > 0 ? D : _.revertOnSpill,
|
|
2205
|
-
K === !1 && A && (
|
|
2204
|
+
var A = arguments.length > 0 ? D : _.revertOnSpill, H = z || W, U = b(H), K = ue(U);
|
|
2205
|
+
K === !1 && A && (z ? U && U.removeChild(z) : P.insertBefore(H, j)), K || A ? ae.emit("cancel", H, P, P) : ae.emit("drop", H, U, P, G), se();
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
function se() {
|
|
2209
|
-
var D =
|
|
2210
|
-
Pe(), Wt(), qt(), D && d.rm(D, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ce && ae.emit("out", D, ce, P), ae.emit("dragend", D, de), P =
|
|
2209
|
+
var D = z || W;
|
|
2210
|
+
Pe(), Wt(), qt(), D && d.rm(D, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ce && ae.emit("out", D, ce, P), ae.emit("dragend", D, de), P = W = z = j = G = ee = ce = null;
|
|
2211
2211
|
}
|
|
2212
2212
|
function ue(D, A) {
|
|
2213
|
-
var
|
|
2214
|
-
return A !== void 0 ?
|
|
2213
|
+
var H;
|
|
2214
|
+
return A !== void 0 ? H = A : E ? H = G : H = T(z || W), D === P && H === j;
|
|
2215
2215
|
}
|
|
2216
|
-
function We(D, A,
|
|
2216
|
+
function We(D, A, H) {
|
|
2217
2217
|
for (var U = D; U && !K(); )
|
|
2218
2218
|
U = b(U);
|
|
2219
2219
|
return U;
|
|
@@ -2221,30 +2221,30 @@ var Ai = { exports: {} };
|
|
|
2221
2221
|
var te = Xe(U);
|
|
2222
2222
|
if (te === !1)
|
|
2223
2223
|
return !1;
|
|
2224
|
-
var Te = St(U, D), Ce = Tt(U, Te, A,
|
|
2225
|
-
return xe ? !0 : _.accepts(
|
|
2224
|
+
var Te = St(U, D), Ce = Tt(U, Te, A, H), xe = ue(U, Ce);
|
|
2225
|
+
return xe ? !0 : _.accepts(W, U, P, Ce);
|
|
2226
2226
|
}
|
|
2227
2227
|
}
|
|
2228
2228
|
function mt(D) {
|
|
2229
|
-
if (!
|
|
2229
|
+
if (!E)
|
|
2230
2230
|
return;
|
|
2231
2231
|
D.preventDefault();
|
|
2232
|
-
var A = R("clientX", D) || 0,
|
|
2233
|
-
|
|
2234
|
-
var U =
|
|
2235
|
-
(Te || te === null) && (Fe(), ce = te, Ee()), Yt(K,
|
|
2232
|
+
var A = R("clientX", D) || 0, H = R("clientY", D) || 0;
|
|
2233
|
+
E.style.left = A - 2 + "px", E.style.top = H - 2 + "px";
|
|
2234
|
+
var U = z || W, K = m(E, A, H), te = We(K, A, H), Te = te !== null && te !== ce;
|
|
2235
|
+
(Te || te === null) && (Fe(), ce = te, Ee()), Yt(K, H);
|
|
2236
2236
|
var Ce = b(U);
|
|
2237
|
-
if (te === P &&
|
|
2237
|
+
if (te === P && z && !_.copySortSource) {
|
|
2238
2238
|
Ce && Ce.removeChild(U);
|
|
2239
2239
|
return;
|
|
2240
2240
|
}
|
|
2241
2241
|
var xe, Oe = St(te, K);
|
|
2242
2242
|
if (ie = yt(Oe, te), Oe !== null)
|
|
2243
|
-
xe = Tt(te, Oe, A,
|
|
2244
|
-
else if (_.revertOnSpill === !0 && !
|
|
2243
|
+
xe = Tt(te, Oe, A, H);
|
|
2244
|
+
else if (_.revertOnSpill === !0 && !z)
|
|
2245
2245
|
xe = j, te = P;
|
|
2246
2246
|
else {
|
|
2247
|
-
|
|
2247
|
+
z && Ce && Ce.removeChild(U), z && Y && (Y.style.display = "none");
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
2250
2250
|
Y.style.display = "block", Vt(xe, U, Te), xe ? _t(Oe, xe) : Ut(te);
|
|
@@ -2258,8 +2258,8 @@ var Ai = { exports: {} };
|
|
|
2258
2258
|
ce && pe("out");
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
|
-
function Vt(D, A,
|
|
2262
|
-
(D === A || D ===
|
|
2261
|
+
function Vt(D, A, H) {
|
|
2262
|
+
(D === A || D === T(A)) && (G = T(A)), (D === null && H || D !== A && D !== T(A)) && (G = D);
|
|
2263
2263
|
}
|
|
2264
2264
|
function $t(D) {
|
|
2265
2265
|
d.rm(D, "gu-hide");
|
|
@@ -2268,31 +2268,31 @@ var Ai = { exports: {} };
|
|
|
2268
2268
|
ae.dragging && d.add(D, "gu-hide");
|
|
2269
2269
|
}
|
|
2270
2270
|
function Ht() {
|
|
2271
|
-
|
|
2271
|
+
E || (E = document.createElement("div"), E.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;", E.innerHTML = _.getMirrorText && _.getMirrorText(W) || "控件", d.add(E, "gu-mirror"), _.mirrorContainer.appendChild(E), y(h, "add", "mousemove", mt), d.add(_.mirrorContainer, "gu-unselectable"), ae.emit("cloned", E, W, "mirror"));
|
|
2272
2272
|
}
|
|
2273
2273
|
function zt() {
|
|
2274
|
-
if (Y = document.createElement("div"), d.add(Y, "gu-insertion"),
|
|
2275
|
-
var D =
|
|
2274
|
+
if (Y = document.createElement("div"), d.add(Y, "gu-insertion"), W) {
|
|
2275
|
+
var D = W.getBoundingClientRect();
|
|
2276
2276
|
Y.style.left = D.left + "px", Y.style.top = D.top + "px";
|
|
2277
2277
|
}
|
|
2278
2278
|
ie = !1, _.mirrorContainer.appendChild(Y);
|
|
2279
2279
|
}
|
|
2280
2280
|
function Wt() {
|
|
2281
|
-
|
|
2281
|
+
E && (d.rm(_.mirrorContainer, "gu-unselectable"), y(h, "remove", "mousemove", mt), b(E).removeChild(E), E = null);
|
|
2282
2282
|
}
|
|
2283
2283
|
function qt() {
|
|
2284
2284
|
Y && (b(Y).removeChild(Y), Y = null);
|
|
2285
2285
|
}
|
|
2286
2286
|
function St(D, A) {
|
|
2287
|
-
for (var
|
|
2288
|
-
|
|
2289
|
-
return
|
|
2287
|
+
for (var H = A; H !== D && b(H) !== D; )
|
|
2288
|
+
H = b(H);
|
|
2289
|
+
return H === h ? null : H;
|
|
2290
2290
|
}
|
|
2291
2291
|
function yt(D, A) {
|
|
2292
2292
|
if (!A)
|
|
2293
2293
|
return ie;
|
|
2294
|
-
var
|
|
2295
|
-
if (!
|
|
2294
|
+
var H = D || A && A.lastElementChild;
|
|
2295
|
+
if (!H)
|
|
2296
2296
|
return !0;
|
|
2297
2297
|
var U = getComputedStyle(D), K = /^inline/.test(U.getPropertyValue("display")) || /^(left|right)$/.test(U.getPropertyValue("float"));
|
|
2298
2298
|
if (K)
|
|
@@ -2324,61 +2324,61 @@ var Ai = { exports: {} };
|
|
|
2324
2324
|
return !0;
|
|
2325
2325
|
}
|
|
2326
2326
|
function _t(D, A) {
|
|
2327
|
-
const
|
|
2328
|
-
if (Y.style.left =
|
|
2329
|
-
if (Y.style.height =
|
|
2327
|
+
const H = A.getBoundingClientRect();
|
|
2328
|
+
if (Y.style.left = H.left + "px", Y.style.top = H.top + "px", ie) {
|
|
2329
|
+
if (Y.style.height = H.height + "px", Y.style.width = "4px", D) {
|
|
2330
2330
|
const U = D.getBoundingClientRect();
|
|
2331
|
-
U.top !==
|
|
2331
|
+
U.top !== H.top && (Y.style.left = U.right + "px", Y.style.top = U.top + "px", Y.style.height = U.height + "px");
|
|
2332
2332
|
}
|
|
2333
|
-
} else if (Y.style.height = "4px", Y.style.width =
|
|
2333
|
+
} else if (Y.style.height = "4px", Y.style.width = H.width + "px", ne) {
|
|
2334
2334
|
const U = ne.getBoundingClientRect();
|
|
2335
|
-
|
|
2335
|
+
H.top < U.top && (Y.style.display = "none");
|
|
2336
2336
|
}
|
|
2337
|
-
A ===
|
|
2337
|
+
A === W && W && (Y.style.display = "none");
|
|
2338
2338
|
}
|
|
2339
2339
|
function Ut(D) {
|
|
2340
2340
|
G = null;
|
|
2341
2341
|
var A = D.lastElementChild;
|
|
2342
2342
|
if (A) {
|
|
2343
|
-
var
|
|
2344
|
-
ie ? (Y.style.left =
|
|
2343
|
+
var H = A.getBoundingClientRect();
|
|
2344
|
+
ie ? (Y.style.left = H.right + "px", Y.style.top = H.top + "px", Y.style.height = H.height + "px", Y.style.width = "4px") : (Y.style.left = H.left + "px", Y.style.top = H.bottom + "px", Y.style.height = "4px", Y.style.width = H.width + "px"), A === W && W && (Y.style.display = "none");
|
|
2345
2345
|
} else
|
|
2346
2346
|
Y.style.display = "none";
|
|
2347
2347
|
}
|
|
2348
2348
|
function Yt(D, A) {
|
|
2349
2349
|
if (!_.mirrorContainer.contains(D) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = l(D), !ne || !ne.contains(D)))
|
|
2350
2350
|
return;
|
|
2351
|
-
const
|
|
2351
|
+
const H = document.querySelector(".dgComponentSelected"), U = ne.getBoundingClientRect();
|
|
2352
2352
|
if (A - 30 < U.top && ne.scrollTop > 0) {
|
|
2353
2353
|
let K = ne.scrollTop < 10 ? ne.scrollTop : 10;
|
|
2354
|
-
ne.scrollBy(0, -1 * K),
|
|
2354
|
+
ne.scrollBy(0, -1 * K), H && ne.contains(H) && (de = de + -1 * K);
|
|
2355
2355
|
}
|
|
2356
2356
|
if (A + 30 > U.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
|
|
2357
2357
|
const K = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
|
|
2358
2358
|
let te = K < 10 ? K : 10;
|
|
2359
|
-
ne.scrollBy(0, te),
|
|
2359
|
+
ne.scrollBy(0, te), H && ne.contains(H) && (de = de + te);
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
|
-
function Tt(D, A,
|
|
2362
|
+
function Tt(D, A, H, U) {
|
|
2363
2363
|
var K = _.direction === "horizontal", te = _.direction === "mixed", Te = A !== D ? xe() : Ce();
|
|
2364
2364
|
return Te;
|
|
2365
2365
|
function Ce() {
|
|
2366
2366
|
var pe = D.children.length, Ee, Fe, he;
|
|
2367
2367
|
for (Ee = 0; Ee < pe; Ee++)
|
|
2368
|
-
if (Fe = D.children[Ee], he = Fe.getBoundingClientRect(), K && he.left + he.width / 2 >
|
|
2368
|
+
if (Fe = D.children[Ee], he = Fe.getBoundingClientRect(), K && he.left + he.width / 2 > H || !te && !K && he.top + he.height / 2 > U || te && he.left + he.width > H && he.top + he.height > U)
|
|
2369
2369
|
return Fe;
|
|
2370
2370
|
return null;
|
|
2371
2371
|
}
|
|
2372
2372
|
function xe() {
|
|
2373
2373
|
var pe = A.getBoundingClientRect();
|
|
2374
2374
|
if (te) {
|
|
2375
|
-
var Ee = U - pe.top, Fe =
|
|
2375
|
+
var Ee = U - pe.top, Fe = H - pe.left, he = pe.bottom - U, vt = pe.right - H, ht = Math.min(Fe, vt, Ee, he), gt;
|
|
2376
2376
|
return ie ? gt = vt < Fe : gt = he === ht || vt === ht || Fe === ht, Oe(gt);
|
|
2377
2377
|
}
|
|
2378
|
-
return Oe(K ?
|
|
2378
|
+
return Oe(K ? H > pe.left + O(pe) / 2 : U > pe.top + B(pe) / 2);
|
|
2379
2379
|
}
|
|
2380
2380
|
function Oe(pe) {
|
|
2381
|
-
return pe ?
|
|
2381
|
+
return pe ? T(A) : A;
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
2384
|
function Xt(D, A) {
|
|
@@ -2386,30 +2386,30 @@ var Ai = { exports: {} };
|
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
2388
|
function l(M) {
|
|
2389
|
-
const
|
|
2390
|
-
if (
|
|
2391
|
-
const
|
|
2392
|
-
return document.getElementById(
|
|
2389
|
+
const S = Array.from(window.scrollContainerList);
|
|
2390
|
+
if (S.length === 1) {
|
|
2391
|
+
const E = Array.from(window.scrollContainerList)[0];
|
|
2392
|
+
return document.getElementById(E);
|
|
2393
2393
|
}
|
|
2394
|
-
const
|
|
2395
|
-
for (const
|
|
2396
|
-
if (
|
|
2397
|
-
return
|
|
2394
|
+
const x = f(S);
|
|
2395
|
+
for (const E of x)
|
|
2396
|
+
if (E.contains(M))
|
|
2397
|
+
return E;
|
|
2398
2398
|
return null;
|
|
2399
2399
|
}
|
|
2400
2400
|
function f(M) {
|
|
2401
|
-
const
|
|
2402
|
-
return M.forEach((
|
|
2403
|
-
const
|
|
2404
|
-
|
|
2405
|
-
}),
|
|
2401
|
+
const S = [];
|
|
2402
|
+
return M.forEach((x) => {
|
|
2403
|
+
const E = document.getElementById(x);
|
|
2404
|
+
E && S.push(E);
|
|
2405
|
+
}), S.sort((x, E) => x.contains(E) ? 1 : E.contains(x) ? -1 : 0), S;
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2407
|
+
function y(M, S, x, E) {
|
|
2408
2408
|
var P = {
|
|
2409
2409
|
mouseup: "touchend",
|
|
2410
2410
|
mousedown: "touchstart",
|
|
2411
2411
|
mousemove: "touchmove"
|
|
2412
|
-
},
|
|
2412
|
+
}, W = {
|
|
2413
2413
|
mouseup: "pointerup",
|
|
2414
2414
|
mousedown: "pointerdown",
|
|
2415
2415
|
mousemove: "pointermove"
|
|
@@ -2418,7 +2418,7 @@ var Ai = { exports: {} };
|
|
|
2418
2418
|
mousedown: "MSPointerDown",
|
|
2419
2419
|
mousemove: "MSPointerMove"
|
|
2420
2420
|
};
|
|
2421
|
-
i.navigator.pointerEnabled ? u[
|
|
2421
|
+
i.navigator.pointerEnabled ? u[S](M, W[x], E) : i.navigator.msPointerEnabled ? u[S](M, J[x], E) : (u[S](M, P[x], E), u[S](M, x, E));
|
|
2422
2422
|
}
|
|
2423
2423
|
function g(M) {
|
|
2424
2424
|
if (M.touches !== void 0)
|
|
@@ -2427,14 +2427,14 @@ var Ai = { exports: {} };
|
|
|
2427
2427
|
return M.which;
|
|
2428
2428
|
if (M.buttons !== void 0)
|
|
2429
2429
|
return M.buttons;
|
|
2430
|
-
var
|
|
2431
|
-
if (
|
|
2432
|
-
return
|
|
2430
|
+
var S = M.button;
|
|
2431
|
+
if (S !== void 0)
|
|
2432
|
+
return S & 1 ? 1 : S & 2 ? 3 : S & 4 ? 2 : 0;
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2434
|
+
function m(M, S, x) {
|
|
2435
2435
|
M = M || {};
|
|
2436
|
-
var
|
|
2437
|
-
return M.className += " gu-hide", P = c.elementFromPoint(
|
|
2436
|
+
var E = M.className || "", P;
|
|
2437
|
+
return M.className += " gu-hide", P = c.elementFromPoint(S, x), M.className = E, P;
|
|
2438
2438
|
}
|
|
2439
2439
|
function w() {
|
|
2440
2440
|
return !1;
|
|
@@ -2442,7 +2442,7 @@ var Ai = { exports: {} };
|
|
|
2442
2442
|
function k() {
|
|
2443
2443
|
return !0;
|
|
2444
2444
|
}
|
|
2445
|
-
function
|
|
2445
|
+
function O(M) {
|
|
2446
2446
|
return M.width || M.right - M.left;
|
|
2447
2447
|
}
|
|
2448
2448
|
function B(M) {
|
|
@@ -2451,33 +2451,33 @@ var Ai = { exports: {} };
|
|
|
2451
2451
|
function b(M) {
|
|
2452
2452
|
return M.parentNode === c ? null : M.parentNode;
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2455
|
-
return M.tagName === "INPUT" || M.tagName === "TEXTAREA" || M.tagName === "SELECT" ||
|
|
2454
|
+
function p(M) {
|
|
2455
|
+
return M.tagName === "INPUT" || M.tagName === "TEXTAREA" || M.tagName === "SELECT" || F(M);
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2458
|
-
return !M || M.contentEditable === "false" ? !1 : M.contentEditable === "true" ? !0 :
|
|
2457
|
+
function F(M) {
|
|
2458
|
+
return !M || M.contentEditable === "false" ? !1 : M.contentEditable === "true" ? !0 : F(b(M));
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2461
|
-
return M.nextElementSibling ||
|
|
2462
|
-
function
|
|
2463
|
-
var
|
|
2460
|
+
function T(M) {
|
|
2461
|
+
return M.nextElementSibling || S();
|
|
2462
|
+
function S() {
|
|
2463
|
+
var x = M;
|
|
2464
2464
|
do
|
|
2465
|
-
|
|
2466
|
-
while (
|
|
2467
|
-
return
|
|
2465
|
+
x = x.nextSibling;
|
|
2466
|
+
while (x && x.nodeType !== 1);
|
|
2467
|
+
return x;
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
2470
|
function I(M) {
|
|
2471
2471
|
return M.targetTouches && M.targetTouches.length ? M.targetTouches[0] : M.changedTouches && M.changedTouches.length ? M.changedTouches[0] : M;
|
|
2472
2472
|
}
|
|
2473
|
-
function R(M,
|
|
2474
|
-
var
|
|
2473
|
+
function R(M, S) {
|
|
2474
|
+
var x = I(S), E = {
|
|
2475
2475
|
pageX: "clientX",
|
|
2476
2476
|
// IE8
|
|
2477
2477
|
pageY: "clientY"
|
|
2478
2478
|
// IE8
|
|
2479
2479
|
};
|
|
2480
|
-
return M in
|
|
2480
|
+
return M in E && !(M in x) && E[M] in x && (M = E[M]), x[M];
|
|
2481
2481
|
}
|
|
2482
2482
|
a.exports = s;
|
|
2483
2483
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2504,10 +2504,10 @@ var Ai = { exports: {} };
|
|
|
2504
2504
|
}, d.once = function(l, f) {
|
|
2505
2505
|
return f._once = !0, d.on(l, f), d;
|
|
2506
2506
|
}, d.off = function(l, f) {
|
|
2507
|
-
var
|
|
2508
|
-
if (
|
|
2507
|
+
var y = arguments.length;
|
|
2508
|
+
if (y === 1)
|
|
2509
2509
|
delete s[l];
|
|
2510
|
-
else if (
|
|
2510
|
+
else if (y === 0)
|
|
2511
2511
|
s = {};
|
|
2512
2512
|
else {
|
|
2513
2513
|
var g = s[l];
|
|
@@ -2522,11 +2522,11 @@ var Ai = { exports: {} };
|
|
|
2522
2522
|
}, d.emitterSnapshot = function(l) {
|
|
2523
2523
|
var f = (s[l] || []).slice(0);
|
|
2524
2524
|
return function() {
|
|
2525
|
-
var
|
|
2525
|
+
var y = i(arguments), g = this || d;
|
|
2526
2526
|
if (l === "error" && h.throws !== !1 && !f.length)
|
|
2527
|
-
throw
|
|
2527
|
+
throw y.length === 1 ? y[0] : y;
|
|
2528
2528
|
return f.forEach(function(w) {
|
|
2529
|
-
h.async ? r(w,
|
|
2529
|
+
h.async ? r(w, y, g) : w.apply(g, y), w._once && d.off(l, w);
|
|
2530
2530
|
}), d;
|
|
2531
2531
|
};
|
|
2532
2532
|
}, d;
|
|
@@ -2534,68 +2534,68 @@ var Ai = { exports: {} };
|
|
|
2534
2534
|
}, { "./debounce": 4, atoa: 3 }],
|
|
2535
2535
|
6: [function(n, a, o) {
|
|
2536
2536
|
(function(i) {
|
|
2537
|
-
var r = n("custom-event"), u = n("./eventmap"), d = i.document, c = l, h =
|
|
2537
|
+
var r = n("custom-event"), u = n("./eventmap"), d = i.document, c = l, h = y, s = [];
|
|
2538
2538
|
i.addEventListener || (c = f, h = g), a.exports = {
|
|
2539
2539
|
add: c,
|
|
2540
2540
|
remove: h,
|
|
2541
|
-
fabricate:
|
|
2541
|
+
fabricate: m
|
|
2542
2542
|
};
|
|
2543
|
-
function l(b,
|
|
2544
|
-
return b.addEventListener(
|
|
2543
|
+
function l(b, p, F, T) {
|
|
2544
|
+
return b.addEventListener(p, F, T);
|
|
2545
2545
|
}
|
|
2546
|
-
function f(b,
|
|
2547
|
-
return b.attachEvent("on" +
|
|
2546
|
+
function f(b, p, F) {
|
|
2547
|
+
return b.attachEvent("on" + p, k(b, p, F));
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return b.removeEventListener(
|
|
2549
|
+
function y(b, p, F, T) {
|
|
2550
|
+
return b.removeEventListener(p, F, T);
|
|
2551
2551
|
}
|
|
2552
|
-
function g(b,
|
|
2553
|
-
var
|
|
2554
|
-
if (
|
|
2555
|
-
return b.detachEvent("on" +
|
|
2552
|
+
function g(b, p, F) {
|
|
2553
|
+
var T = O(b, p, F);
|
|
2554
|
+
if (T)
|
|
2555
|
+
return b.detachEvent("on" + p, T);
|
|
2556
2556
|
}
|
|
2557
|
-
function
|
|
2558
|
-
var
|
|
2559
|
-
b.dispatchEvent ? b.dispatchEvent(
|
|
2557
|
+
function m(b, p, F) {
|
|
2558
|
+
var T = u.indexOf(p) === -1 ? R() : I();
|
|
2559
|
+
b.dispatchEvent ? b.dispatchEvent(T) : b.fireEvent("on" + p, T);
|
|
2560
2560
|
function I() {
|
|
2561
2561
|
var M;
|
|
2562
|
-
return d.createEvent ? (M = d.createEvent("Event"), M.initEvent(
|
|
2562
|
+
return d.createEvent ? (M = d.createEvent("Event"), M.initEvent(p, !0, !0)) : d.createEventObject && (M = d.createEventObject()), M;
|
|
2563
2563
|
}
|
|
2564
2564
|
function R() {
|
|
2565
|
-
return new r(
|
|
2565
|
+
return new r(p, { detail: F });
|
|
2566
2566
|
}
|
|
2567
2567
|
}
|
|
2568
|
-
function w(b,
|
|
2568
|
+
function w(b, p, F) {
|
|
2569
2569
|
return function(I) {
|
|
2570
2570
|
var R = I || i.event;
|
|
2571
2571
|
R.target = R.target || R.srcElement, R.preventDefault = R.preventDefault || function() {
|
|
2572
2572
|
R.returnValue = !1;
|
|
2573
2573
|
}, R.stopPropagation = R.stopPropagation || function() {
|
|
2574
2574
|
R.cancelBubble = !0;
|
|
2575
|
-
}, R.which = R.which || R.keyCode,
|
|
2575
|
+
}, R.which = R.which || R.keyCode, F.call(b, R);
|
|
2576
2576
|
};
|
|
2577
2577
|
}
|
|
2578
|
-
function k(b,
|
|
2579
|
-
var
|
|
2578
|
+
function k(b, p, F) {
|
|
2579
|
+
var T = O(b, p, F) || w(b, p, F);
|
|
2580
2580
|
return s.push({
|
|
2581
|
-
wrapper:
|
|
2581
|
+
wrapper: T,
|
|
2582
2582
|
element: b,
|
|
2583
|
-
type:
|
|
2584
|
-
fn:
|
|
2585
|
-
}),
|
|
2583
|
+
type: p,
|
|
2584
|
+
fn: F
|
|
2585
|
+
}), T;
|
|
2586
2586
|
}
|
|
2587
|
-
function
|
|
2588
|
-
var
|
|
2589
|
-
if (
|
|
2590
|
-
var I = s[
|
|
2591
|
-
return s.splice(
|
|
2587
|
+
function O(b, p, F) {
|
|
2588
|
+
var T = B(b, p, F);
|
|
2589
|
+
if (T) {
|
|
2590
|
+
var I = s[T].wrapper;
|
|
2591
|
+
return s.splice(T, 1), I;
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
|
-
function B(b,
|
|
2595
|
-
var
|
|
2596
|
-
for (
|
|
2597
|
-
if (I = s[
|
|
2598
|
-
return
|
|
2594
|
+
function B(b, p, F) {
|
|
2595
|
+
var T, I;
|
|
2596
|
+
for (T = 0; T < s.length; T++)
|
|
2597
|
+
if (I = s[T], I.element === b && I.type === p && I.fn === F)
|
|
2598
|
+
return T;
|
|
2599
2599
|
}
|
|
2600
2600
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2601
2601
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2683,27 +2683,27 @@ var Ai = { exports: {} };
|
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
2685
|
}
|
|
2686
|
-
var l = [], f = !1,
|
|
2687
|
-
function
|
|
2688
|
-
!f || !
|
|
2686
|
+
var l = [], f = !1, y, g = -1;
|
|
2687
|
+
function m() {
|
|
2688
|
+
!f || !y || (f = !1, y.length ? l = y.concat(l) : g = -1, l.length && w());
|
|
2689
2689
|
}
|
|
2690
2690
|
function w() {
|
|
2691
2691
|
if (!f) {
|
|
2692
|
-
var B = h(
|
|
2692
|
+
var B = h(m);
|
|
2693
2693
|
f = !0;
|
|
2694
2694
|
for (var b = l.length; b; ) {
|
|
2695
|
-
for (
|
|
2696
|
-
|
|
2695
|
+
for (y = l, l = []; ++g < b; )
|
|
2696
|
+
y && y[g].run();
|
|
2697
2697
|
g = -1, b = l.length;
|
|
2698
2698
|
}
|
|
2699
|
-
|
|
2699
|
+
y = null, f = !1, s(B);
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
2702
|
i.nextTick = function(B) {
|
|
2703
2703
|
var b = new Array(arguments.length - 1);
|
|
2704
2704
|
if (arguments.length > 1)
|
|
2705
|
-
for (var
|
|
2706
|
-
b[
|
|
2705
|
+
for (var p = 1; p < arguments.length; p++)
|
|
2706
|
+
b[p - 1] = arguments[p];
|
|
2707
2707
|
l.push(new k(B, b)), l.length === 1 && !f && h(w);
|
|
2708
2708
|
};
|
|
2709
2709
|
function k(B, b) {
|
|
@@ -2712,9 +2712,9 @@ var Ai = { exports: {} };
|
|
|
2712
2712
|
k.prototype.run = function() {
|
|
2713
2713
|
this.fun.apply(null, this.array);
|
|
2714
2714
|
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
|
|
2715
|
-
function
|
|
2715
|
+
function O() {
|
|
2716
2716
|
}
|
|
2717
|
-
i.on =
|
|
2717
|
+
i.on = O, i.addListener = O, i.once = O, i.off = O, i.removeListener = O, i.removeAllListeners = O, i.emit = O, i.prependListener = O, i.prependOnceListener = O, i.listeners = function(B) {
|
|
2718
2718
|
return [];
|
|
2719
2719
|
}, i.binding = function(B) {
|
|
2720
2720
|
throw new Error("process.binding is not supported");
|
|
@@ -2746,27 +2746,27 @@ var Ai = { exports: {} };
|
|
|
2746
2746
|
}, o.clearTimeout = o.clearInterval = function(f) {
|
|
2747
2747
|
f.close();
|
|
2748
2748
|
};
|
|
2749
|
-
function l(f,
|
|
2750
|
-
this._id = f, this._clearFn =
|
|
2749
|
+
function l(f, y) {
|
|
2750
|
+
this._id = f, this._clearFn = y;
|
|
2751
2751
|
}
|
|
2752
2752
|
l.prototype.unref = l.prototype.ref = function() {
|
|
2753
2753
|
}, l.prototype.close = function() {
|
|
2754
2754
|
this._clearFn.call(window, this._id);
|
|
2755
|
-
}, o.enroll = function(f,
|
|
2756
|
-
clearTimeout(f._idleTimeoutId), f._idleTimeout =
|
|
2755
|
+
}, o.enroll = function(f, y) {
|
|
2756
|
+
clearTimeout(f._idleTimeoutId), f._idleTimeout = y;
|
|
2757
2757
|
}, o.unenroll = function(f) {
|
|
2758
2758
|
clearTimeout(f._idleTimeoutId), f._idleTimeout = -1;
|
|
2759
2759
|
}, o._unrefActive = o.active = function(f) {
|
|
2760
2760
|
clearTimeout(f._idleTimeoutId);
|
|
2761
|
-
var
|
|
2762
|
-
|
|
2761
|
+
var y = f._idleTimeout;
|
|
2762
|
+
y >= 0 && (f._idleTimeoutId = setTimeout(function() {
|
|
2763
2763
|
f._onTimeout && f._onTimeout();
|
|
2764
|
-
},
|
|
2764
|
+
}, y));
|
|
2765
2765
|
}, o.setImmediate = typeof i == "function" ? i : function(f) {
|
|
2766
|
-
var
|
|
2767
|
-
return h[
|
|
2768
|
-
h[
|
|
2769
|
-
}),
|
|
2766
|
+
var y = s++, g = arguments.length < 2 ? !1 : c.call(arguments, 1);
|
|
2767
|
+
return h[y] = !0, u(function() {
|
|
2768
|
+
h[y] && (g ? f.apply(null, g) : f.call(null), o.clearImmediate(y));
|
|
2769
|
+
}), y;
|
|
2770
2770
|
}, o.clearImmediate = typeof r == "function" ? r : function(f) {
|
|
2771
2771
|
delete h[f];
|
|
2772
2772
|
};
|
|
@@ -2808,15 +2808,15 @@ const Hi = {
|
|
|
2808
2808
|
};
|
|
2809
2809
|
return B[e.animate] = !1, B[i] = u.value, B["toasty-type-" + r.value.type] = !0, r.value.theme && (B[r.value.theme] = !0), B;
|
|
2810
2810
|
}), s = N(() => {
|
|
2811
|
-
const
|
|
2811
|
+
const p = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, F = {
|
|
2812
2812
|
"f-icon": !0
|
|
2813
2813
|
};
|
|
2814
|
-
return
|
|
2815
|
-
}), l = N(() => r.value.title || r.value.message), f = N(() => e.showCloseButton),
|
|
2814
|
+
return F[p] = !0, F;
|
|
2815
|
+
}), l = N(() => r.value.title || r.value.message), f = N(() => e.showCloseButton), y = N(() => !!r.value.buttons || !!t.slots.default), g = N(() => n.value === "en" ? {
|
|
2816
2816
|
wordBreak: "keep-all",
|
|
2817
2817
|
overflowWrap: "break-word"
|
|
2818
2818
|
} : {});
|
|
2819
|
-
function
|
|
2819
|
+
function m(B) {
|
|
2820
2820
|
B.stopPropagation(), B.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2821
2821
|
t.emit("close", r.value);
|
|
2822
2822
|
}, 200);
|
|
@@ -2829,13 +2829,13 @@ const Hi = {
|
|
|
2829
2829
|
Z(o, () => {
|
|
2830
2830
|
o.value;
|
|
2831
2831
|
});
|
|
2832
|
-
const
|
|
2832
|
+
const O = () => {
|
|
2833
2833
|
var B;
|
|
2834
2834
|
return v(it, null, [v("div", {
|
|
2835
2835
|
class: "after-toast-msg text-right"
|
|
2836
2836
|
}, [!t.slots.default && ((B = r.value.buttons) == null ? void 0 : B.map((b) => v("span", {
|
|
2837
2837
|
class: k(b),
|
|
2838
|
-
onClick: (
|
|
2838
|
+
onClick: (p) => void 0
|
|
2839
2839
|
}, [b.text]))), t.slots.default && t.slots.default()])]);
|
|
2840
2840
|
};
|
|
2841
2841
|
return () => v("div", {
|
|
@@ -2844,7 +2844,7 @@ const Hi = {
|
|
|
2844
2844
|
}, [f.value && v("button", {
|
|
2845
2845
|
title: a("messageBox.close"),
|
|
2846
2846
|
class: "toast-close f-btn-icon f-bare",
|
|
2847
|
-
onClick:
|
|
2847
|
+
onClick: m
|
|
2848
2848
|
}, [v("span", {
|
|
2849
2849
|
class: "f-icon modal_close"
|
|
2850
2850
|
}, null)]), l.value && v("section", {
|
|
@@ -2862,7 +2862,7 @@ const Hi = {
|
|
|
2862
2862
|
class: "toast-msg",
|
|
2863
2863
|
innerHTML: r.value.message,
|
|
2864
2864
|
style: g.value
|
|
2865
|
-
}, null),
|
|
2865
|
+
}, null), y.value && O()]), c.value && (r.value.buttons ? v("div", {
|
|
2866
2866
|
class: "toast-title-btns-wrapper d-flex"
|
|
2867
2867
|
}, [v("h5", {
|
|
2868
2868
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -2870,7 +2870,7 @@ const Hi = {
|
|
|
2870
2870
|
innerHTML: r.value.message
|
|
2871
2871
|
}, null), v("div", {
|
|
2872
2872
|
class: "after-toast-title text-right ml-auto"
|
|
2873
|
-
}, [
|
|
2873
|
+
}, [O()])]) : v("h5", {
|
|
2874
2874
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2875
2875
|
style: g.value,
|
|
2876
2876
|
innerHTML: r.value.message
|
|
@@ -2889,14 +2889,14 @@ const Hi = {
|
|
|
2889
2889
|
top: 20,
|
|
2890
2890
|
bottom: 12
|
|
2891
2891
|
}, o = C(), i = C(e.options), r = C(e.showCloseButton), u = N(() => e.position || "bottom-right"), d = N(() => e.timeout != null ? e.timeout : 3e3), c = N(() => {
|
|
2892
|
-
const l = e.bottom ? e.bottom : a.bottom, f = e.top ? e.top : a.top,
|
|
2892
|
+
const l = e.bottom ? e.bottom : a.bottom, f = e.top ? e.top : a.top, y = {
|
|
2893
2893
|
transition: "all 0.2s ease",
|
|
2894
2894
|
left: u.value.indexOf("left") > -1 ? `${e.left ? e.left : a.left}px` : "",
|
|
2895
2895
|
right: u.value.indexOf("right") > -1 ? `${e.right ? e.right : a.right}px` : "",
|
|
2896
2896
|
top: u.value.indexOf("top") > -1 ? `${f}px` : "",
|
|
2897
2897
|
bottom: u.value.indexOf("bottom") > -1 ? `${l}px` : ""
|
|
2898
2898
|
};
|
|
2899
|
-
return u.value.indexOf("center") > -1 && (
|
|
2899
|
+
return u.value.indexOf("center") > -1 && (y.left = "50%", y.marginLeft = "calc(-24rem / 2)", u.value === "center-center" && (y.top = "50%", y.transform = "translate(-50%, -50%)")), y;
|
|
2900
2900
|
});
|
|
2901
2901
|
function h(l) {
|
|
2902
2902
|
t.emit("close");
|
|
@@ -3198,23 +3198,23 @@ const qi = {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
}
|
|
3200
3200
|
};
|
|
3201
|
-
function Gi(e, t, n, a, o, i, r, u, d, c, h, s, l, f,
|
|
3201
|
+
function Gi(e, t, n, a, o, i, r, u, d, c, h, s, l, f, y, g, m) {
|
|
3202
3202
|
const {
|
|
3203
3203
|
calculateCellPositionInRow: w
|
|
3204
3204
|
} = i, {
|
|
3205
3205
|
columnContext: k,
|
|
3206
|
-
hasLeftFixedColumn:
|
|
3206
|
+
hasLeftFixedColumn: O,
|
|
3207
3207
|
hasRightFixedColumn: B
|
|
3208
3208
|
} = r, {
|
|
3209
3209
|
gridDataStyle: b,
|
|
3210
|
-
leftFixedGridDataStyle:
|
|
3211
|
-
rightFixedGridDataStyle:
|
|
3210
|
+
leftFixedGridDataStyle: p,
|
|
3211
|
+
rightFixedGridDataStyle: F
|
|
3212
3212
|
} = f, {
|
|
3213
|
-
renderDataRow:
|
|
3214
|
-
} = _a(e, t, k,
|
|
3215
|
-
function R(P,
|
|
3213
|
+
renderDataRow: T
|
|
3214
|
+
} = _a(e, t, k, m, u, d, c, h, s, l, f, y, g), I = [T];
|
|
3215
|
+
function R(P, W) {
|
|
3216
3216
|
const J = w(P);
|
|
3217
|
-
return
|
|
3217
|
+
return m.value.filter(($) => $.visible !== !1).map(($, j) => I[$.type]($, J, W, j));
|
|
3218
3218
|
}
|
|
3219
3219
|
function M() {
|
|
3220
3220
|
return v("div", {
|
|
@@ -3222,10 +3222,10 @@ function Gi(e, t, n, a, o, i, r, u, d, c, h, s, l, f, m, g, p) {
|
|
|
3222
3222
|
class: "fv-grid-content-left-fixed"
|
|
3223
3223
|
}, [v("div", {
|
|
3224
3224
|
class: "fv-grid-data",
|
|
3225
|
-
style:
|
|
3225
|
+
style: p.value
|
|
3226
3226
|
}, [R(k.value.leftColumns.filter((P) => P.visible), "left")])]);
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function S() {
|
|
3229
3229
|
return v("div", {
|
|
3230
3230
|
ref: n,
|
|
3231
3231
|
class: "fv-grid-content-primary"
|
|
@@ -3234,21 +3234,21 @@ function Gi(e, t, n, a, o, i, r, u, d, c, h, s, l, f, m, g, p) {
|
|
|
3234
3234
|
style: b.value
|
|
3235
3235
|
}, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3237
|
+
function x() {
|
|
3238
3238
|
return v("div", {
|
|
3239
3239
|
ref: o,
|
|
3240
3240
|
class: "fv-grid-content-right-fixed"
|
|
3241
3241
|
}, [v("div", {
|
|
3242
3242
|
class: "fv-grid-data",
|
|
3243
|
-
style:
|
|
3243
|
+
style: F.value
|
|
3244
3244
|
}, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
|
|
3245
3245
|
}
|
|
3246
|
-
function
|
|
3246
|
+
function E() {
|
|
3247
3247
|
const P = [];
|
|
3248
|
-
return
|
|
3248
|
+
return O.value && P.push(M()), P.push(S()), B.value && P.push(x()), P;
|
|
3249
3249
|
}
|
|
3250
3250
|
return {
|
|
3251
|
-
renderDataArea:
|
|
3251
|
+
renderDataArea: E
|
|
3252
3252
|
};
|
|
3253
3253
|
}
|
|
3254
3254
|
const _i = /* @__PURE__ */ oe({
|
|
@@ -3259,20 +3259,20 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3259
3259
|
var fn, pn;
|
|
3260
3260
|
const a = ((fn = e.rowOption) == null ? void 0 : fn.height) || 28, o = C(20), i = C(e.columns), r = Ua(e), {
|
|
3261
3261
|
idField: u
|
|
3262
|
-
} = r, d = C(), c = C(), h = C(), s = C(), l = C(), f = C([]),
|
|
3263
|
-
collapseField:
|
|
3262
|
+
} = r, d = C(), c = C(), h = C(), s = C(), l = C(), f = C([]), y = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), m = Ya(e, r), w = Xa(e, t), k = Ja(e), {
|
|
3263
|
+
collapseField: O
|
|
3264
3264
|
} = k, {
|
|
3265
3265
|
showLoading: B,
|
|
3266
3266
|
renderLoading: b
|
|
3267
|
-
} = Qa(e, d),
|
|
3268
|
-
dataView:
|
|
3269
|
-
} =
|
|
3267
|
+
} = Qa(e, d), p = Za(e, /* @__PURE__ */ new Map(), w, k, r), {
|
|
3268
|
+
dataView: F
|
|
3269
|
+
} = p, T = Ka(e, p, r, f, t), {
|
|
3270
3270
|
showSelection: I,
|
|
3271
3271
|
selectedValues: R
|
|
3272
|
-
} =
|
|
3272
|
+
} = T, M = eo(e, f, p, r, T, t), S = N(() => e.disabled), x = N(() => e.virtualized ? Math.min(p.dataView.value.length, o.value) : p.dataView.value.length), E = to(e, p), {
|
|
3273
3273
|
shouldRenderPagination: P
|
|
3274
|
-
} =
|
|
3275
|
-
containerStyleObject:
|
|
3274
|
+
} = E, {
|
|
3275
|
+
containerStyleObject: W
|
|
3276
3276
|
} = no(e), J = ao(e), {
|
|
3277
3277
|
applyCommands: $
|
|
3278
3278
|
} = J;
|
|
@@ -3282,17 +3282,17 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3282
3282
|
removeColumnSetting: G
|
|
3283
3283
|
} = oo(e);
|
|
3284
3284
|
e.showSetting && j(i);
|
|
3285
|
-
const
|
|
3285
|
+
const z = io(e, t), ee = lo(e), {
|
|
3286
3286
|
applyColumnSorter: ce,
|
|
3287
3287
|
columnContext: ve,
|
|
3288
3288
|
updateColumnRenderContext: Y
|
|
3289
|
-
} =
|
|
3290
|
-
ce(
|
|
3291
|
-
const ie = ro(e, ve), de = so(e, t,
|
|
3289
|
+
} = z;
|
|
3290
|
+
ce(p, ee);
|
|
3291
|
+
const ie = ro(e, ve), de = so(e, t, T, r), ne = uo(e, t, r, de, f), _ = co(e), ae = fo(e, ne, _), Xe = po(e, p, ne, k, r, _, ae), Ve = mo(e, i, p, x, 0, Xe), {
|
|
3292
3292
|
getVisualData: Be
|
|
3293
|
-
} = Ve, rt = yo(e, ve), Je = vo(e,
|
|
3293
|
+
} = Ve, rt = yo(e, ve), Je = vo(e, T), {
|
|
3294
3294
|
sidebarWidth: Qe
|
|
3295
|
-
} = Je, fe = ho(e,
|
|
3295
|
+
} = Je, fe = ho(e, p, f, ve, Ve, x, 0, Qe), {
|
|
3296
3296
|
onWheel: ft,
|
|
3297
3297
|
dataGridWidth: Me,
|
|
3298
3298
|
viewPortHeight: $e,
|
|
@@ -3301,7 +3301,7 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3301
3301
|
updateVisibleRowsOnLatestVisibleScope: pt
|
|
3302
3302
|
} = fe, Ze = go(e, ve, c, Ae, ie), {
|
|
3303
3303
|
calculateColumnsSize: Pe
|
|
3304
|
-
} = Ze, ze = bo(), st = Co(c, l,
|
|
3304
|
+
} = Ze, ze = bo(), st = Co(c, l, p, ze, fe), L = wo(e, t, z, p, ie, m, fe), Q = N(() => {
|
|
3305
3305
|
const q = {
|
|
3306
3306
|
"fv-grid": !0,
|
|
3307
3307
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3311,17 +3311,17 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3311
3311
|
return In(q, e.customClass);
|
|
3312
3312
|
}), se = N(() => ({
|
|
3313
3313
|
"fv-grid-content": !0,
|
|
3314
|
-
"fv-grid-content-hover":
|
|
3314
|
+
"fv-grid-content-hover": y.value,
|
|
3315
3315
|
"fv-grid-wrap-content": g.value
|
|
3316
3316
|
})), {
|
|
3317
3317
|
renderDataArea: ue
|
|
3318
|
-
} = Gi(e, t, h, s, l, rt,
|
|
3318
|
+
} = Gi(e, t, h, s, l, rt, z, p, ne, k, de, T, M, fe, Ve, _, f), {
|
|
3319
3319
|
renderGridHeader: We,
|
|
3320
3320
|
renderGridColumnResizeOverlay: mt,
|
|
3321
3321
|
shouldShowHeader: Vt
|
|
3322
|
-
} = ko(e, t, c, s, l,
|
|
3322
|
+
} = ko(e, t, c, s, l, z, p, L, st, w, ze, Ze, ie, T, Je, ee, fe, Ae, f), {
|
|
3323
3323
|
renderDataGridSidebar: $t
|
|
3324
|
-
} = xo(e, de,
|
|
3324
|
+
} = xo(e, de, T, Je, fe), {
|
|
3325
3325
|
renderDisableMask: At
|
|
3326
3326
|
} = Fo(), {
|
|
3327
3327
|
renderHorizontalScrollbar: Ht
|
|
@@ -3336,7 +3336,7 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3336
3336
|
}
|
|
3337
3337
|
}
|
|
3338
3338
|
be(() => {
|
|
3339
|
-
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), f.value = Be(0,
|
|
3339
|
+
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), f.value = Be(0, x.value + 0 - 1), Ga(c.value, Wt), Pe(), _e(() => {
|
|
3340
3340
|
c.value && (Me.value = c.value.clientWidth), h.value && (Ae.value = h.value.clientWidth, $e.value = h.value.clientHeight);
|
|
3341
3341
|
})), B.value && b();
|
|
3342
3342
|
}), wt(() => {
|
|
@@ -3344,30 +3344,30 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3344
3344
|
c.value && Pe();
|
|
3345
3345
|
});
|
|
3346
3346
|
function qt(q) {
|
|
3347
|
-
|
|
3347
|
+
p.collapseTo(q), p.reOrderVisibleIndex(), He();
|
|
3348
3348
|
}
|
|
3349
3349
|
function St(q) {
|
|
3350
|
-
|
|
3350
|
+
p.expandTo(q), p.reOrderVisibleIndex(), He();
|
|
3351
3351
|
}
|
|
3352
3352
|
function yt() {
|
|
3353
|
-
const q =
|
|
3353
|
+
const q = T.getSelectionRow();
|
|
3354
3354
|
return q ? q.dataIndex - 1 : -1;
|
|
3355
3355
|
}
|
|
3356
3356
|
function Gt() {
|
|
3357
3357
|
const q = yt();
|
|
3358
|
-
|
|
3358
|
+
p.insertNewDataItem(q), f.value = Be(0, x.value + 0 - 1);
|
|
3359
3359
|
}
|
|
3360
3360
|
function _t() {
|
|
3361
3361
|
const q = yt();
|
|
3362
|
-
|
|
3362
|
+
p.insertNewChildDataItem(q), f.value = Be(0, x.value + 0 - 1);
|
|
3363
3363
|
}
|
|
3364
3364
|
function Ut(q, X) {
|
|
3365
3365
|
const me = f.value.find((Se) => Se.raw[u.value] === X), ge = me ? me.dataIndex - 1 : -1;
|
|
3366
|
-
|
|
3366
|
+
p.insertNewChildDataItems(q, ge);
|
|
3367
3367
|
}
|
|
3368
3368
|
function Yt() {
|
|
3369
3369
|
const q = yt(), X = M.getNextSelectableHierarchyItemId(q);
|
|
3370
|
-
|
|
3370
|
+
p.removeHierarchyDataItem(q), f.value = Be(0, x.value + 0 - 1), X && T.selectItemById(X);
|
|
3371
3371
|
}
|
|
3372
3372
|
function Tt(q) {
|
|
3373
3373
|
ne.onEditingRow(q);
|
|
@@ -3379,16 +3379,16 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3379
3379
|
ne.cancelEditingRow(q);
|
|
3380
3380
|
}
|
|
3381
3381
|
function A(q) {
|
|
3382
|
-
q && (i.value = q, $(i), Y(i.value), ce(
|
|
3382
|
+
q && (i.value = q, $(i), Y(i.value), ce(p, ee), Pe());
|
|
3383
3383
|
}
|
|
3384
3384
|
Z(() => e.columns, (q) => {
|
|
3385
3385
|
A(q);
|
|
3386
3386
|
});
|
|
3387
|
-
function
|
|
3388
|
-
q && (
|
|
3387
|
+
function H(q, X) {
|
|
3388
|
+
q && (p.load(q), p.reOrderVisibleIndex(), X != null && X.keepScrollPosition ? fe.scrollTo(fe.offsetY.value) : He());
|
|
3389
3389
|
}
|
|
3390
3390
|
function U(q) {
|
|
3391
|
-
|
|
3391
|
+
T.selectItemById(q);
|
|
3392
3392
|
}
|
|
3393
3393
|
function K(q) {
|
|
3394
3394
|
const X = f.value.find((me) => me.raw[r.idField.value] === q);
|
|
@@ -3398,28 +3398,28 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3398
3398
|
de.activeRowById(q);
|
|
3399
3399
|
}
|
|
3400
3400
|
function Te(q) {
|
|
3401
|
-
|
|
3401
|
+
T.selectItemByIds(q);
|
|
3402
3402
|
}
|
|
3403
3403
|
function Ce() {
|
|
3404
|
-
return
|
|
3404
|
+
return T.getSelectedItems();
|
|
3405
3405
|
}
|
|
3406
3406
|
function xe() {
|
|
3407
|
-
|
|
3407
|
+
T.clearSelection();
|
|
3408
3408
|
}
|
|
3409
3409
|
const Oe = N(() => !f.value || !f.value.length), {
|
|
3410
3410
|
renderEmpty: pe
|
|
3411
3411
|
} = Bo(e, t);
|
|
3412
3412
|
function Ee() {
|
|
3413
|
-
return
|
|
3413
|
+
return T.getSelectionRow();
|
|
3414
3414
|
}
|
|
3415
3415
|
function Fe(q) {
|
|
3416
|
-
|
|
3416
|
+
T.unSelectItemByIds(q);
|
|
3417
3417
|
}
|
|
3418
3418
|
function he() {
|
|
3419
|
-
return
|
|
3419
|
+
return T.currentSelectedDataId.value;
|
|
3420
3420
|
}
|
|
3421
3421
|
function vt(q, X, me) {
|
|
3422
|
-
const ge =
|
|
3422
|
+
const ge = F.value.find((Se) => Se[u.value] === q);
|
|
3423
3423
|
if (ge) {
|
|
3424
3424
|
if (Object.keys(ge).forEach((ye) => {
|
|
3425
3425
|
Object.prototype.hasOwnProperty.call(X, ye) && (ge[ye] = X[ye]);
|
|
@@ -3445,19 +3445,19 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3445
3445
|
} = me;
|
|
3446
3446
|
ye && !Ne(X[ye]) && (Se.collapse = X[ye]), et && !Ne(X[et]) && (Se.checked = X[et]), Ke && !Ne(X[Ke]) && (Se.disabled = X[Ke]), tt && !Ne(X[tt]) && (Se.visible = X[tt]);
|
|
3447
3447
|
}
|
|
3448
|
-
f.value = [...f.value.slice(0, mn), Se, ...f.value.slice(mn + 1)],
|
|
3448
|
+
f.value = [...f.value.slice(0, mn), Se, ...f.value.slice(mn + 1)], p.updateSummary();
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
3452
|
function ht(q) {
|
|
3453
|
-
return Object.prototype.hasOwnProperty.call(q, "raw") ?
|
|
3453
|
+
return Object.prototype.hasOwnProperty.call(q, "raw") ? p.hasRealChildren(q.raw) : p.hasRealChildren(q);
|
|
3454
3454
|
}
|
|
3455
3455
|
function gt(q) {
|
|
3456
|
-
const X =
|
|
3457
|
-
return X ? X[
|
|
3456
|
+
const X = p.dataView.value.find((me) => me[u.value] === q);
|
|
3457
|
+
return X ? X[O.value] : "";
|
|
3458
3458
|
}
|
|
3459
3459
|
function Ca() {
|
|
3460
|
-
return
|
|
3460
|
+
return O.value;
|
|
3461
3461
|
}
|
|
3462
3462
|
Z(() => e.showSetting, (q, X) => {
|
|
3463
3463
|
q !== X && (q ? j(i) : G(i), A(i.value));
|
|
@@ -3470,7 +3470,7 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3470
3470
|
me && de.selectRow(me);
|
|
3471
3471
|
}
|
|
3472
3472
|
function xa() {
|
|
3473
|
-
|
|
3473
|
+
T.keepSelectingOnPaging.value || xe(), p.updateVisibleDataSummary(f.value);
|
|
3474
3474
|
}
|
|
3475
3475
|
t.expose({
|
|
3476
3476
|
activeRowById: te,
|
|
@@ -3484,7 +3484,7 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3484
3484
|
acceptDataItem: Xt,
|
|
3485
3485
|
cancelDataItem: D,
|
|
3486
3486
|
updateColumns: A,
|
|
3487
|
-
updateDataSource:
|
|
3487
|
+
updateDataSource: H,
|
|
3488
3488
|
selectItemById: U,
|
|
3489
3489
|
selectItemByIds: Te,
|
|
3490
3490
|
getSelectedItems: Ce,
|
|
@@ -3505,10 +3505,10 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3505
3505
|
const q = {};
|
|
3506
3506
|
return fe.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), fe.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
|
|
3507
3507
|
}), Sa = N(() => ({
|
|
3508
|
-
...
|
|
3508
|
+
...W.value,
|
|
3509
3509
|
borderRadius: "5px"
|
|
3510
3510
|
}));
|
|
3511
|
-
Mo(e, t,
|
|
3511
|
+
Mo(e, t, p, fe, E, T);
|
|
3512
3512
|
const Ta = N(() => ({
|
|
3513
3513
|
"d-flex": !0,
|
|
3514
3514
|
"justify-content-between": P.value && I.value,
|
|
@@ -3519,7 +3519,7 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3519
3519
|
"align-items-center": !0
|
|
3520
3520
|
})), {
|
|
3521
3521
|
renderDataGridSummary: Ma
|
|
3522
|
-
} = Oo(e,
|
|
3522
|
+
} = Oo(e, p, z);
|
|
3523
3523
|
return () => v("div", {
|
|
3524
3524
|
ref: d,
|
|
3525
3525
|
class: Q.value,
|
|
@@ -3528,14 +3528,14 @@ const _i = /* @__PURE__ */ oe({
|
|
|
3528
3528
|
}, [c.value && Vt.value && We(), v("div", {
|
|
3529
3529
|
ref: c,
|
|
3530
3530
|
class: se.value,
|
|
3531
|
-
onMouseover: () =>
|
|
3532
|
-
onMouseleave: () =>
|
|
3531
|
+
onMouseover: () => y.value = !0,
|
|
3532
|
+
onMouseleave: () => y.value = !1,
|
|
3533
3533
|
style: Fa.value
|
|
3534
3534
|
}, [c.value && $t(f), c.value && ue(), c.value && Oe.value && pe(), c.value && Ht(), c.value && zt()]), c.value && Ma(), I.value && v("div", {
|
|
3535
3535
|
class: Ta.value
|
|
3536
3536
|
}, [I.value && v("div", {
|
|
3537
3537
|
class: Ba.value
|
|
3538
|
-
}, [v("div", null, ["已选:" + R.value.length, le(" 条")])])]), mt(),
|
|
3538
|
+
}, [v("div", null, ["已选:" + R.value.length, le(" 条")])])]), mt(), S.value && At()]);
|
|
3539
3539
|
}
|
|
3540
3540
|
});
|
|
3541
3541
|
It(_i);
|
|
@@ -3693,107 +3693,107 @@ function Zn(e, t, n) {
|
|
|
3693
3693
|
function h() {
|
|
3694
3694
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
3695
3695
|
}
|
|
3696
|
-
function s(
|
|
3697
|
-
if (!
|
|
3696
|
+
function s(S) {
|
|
3697
|
+
if (!S || !S.value)
|
|
3698
3698
|
return null;
|
|
3699
|
-
if (
|
|
3700
|
-
return
|
|
3701
|
-
const
|
|
3702
|
-
return
|
|
3699
|
+
if (S.value.schema && S.value.schema.type === "component")
|
|
3700
|
+
return S.value;
|
|
3701
|
+
const x = C(S == null ? void 0 : S.value.parent), E = s(x);
|
|
3702
|
+
return E || null;
|
|
3703
3703
|
}
|
|
3704
|
-
function l(
|
|
3705
|
-
var
|
|
3704
|
+
function l(S = t) {
|
|
3705
|
+
var W;
|
|
3706
3706
|
if (n != null && n.getDraggableDesignItemElement)
|
|
3707
|
-
return n.getDraggableDesignItemElement(
|
|
3708
|
-
const { componentInstance:
|
|
3709
|
-
if (!
|
|
3707
|
+
return n.getDraggableDesignItemElement(S);
|
|
3708
|
+
const { componentInstance: x, designerItemElementRef: E } = S;
|
|
3709
|
+
if (!x || !x.value)
|
|
3710
3710
|
return null;
|
|
3711
|
-
const { getCustomButtons: P } =
|
|
3712
|
-
return
|
|
3711
|
+
const { getCustomButtons: P } = x.value;
|
|
3712
|
+
return x.value.canMove || P && ((W = P()) != null && W.length) ? E : l(S.parent);
|
|
3713
3713
|
}
|
|
3714
|
-
function f(
|
|
3715
|
-
return !!n && n.canAccepts(
|
|
3714
|
+
function f(S) {
|
|
3715
|
+
return !!n && n.canAccepts(S);
|
|
3716
3716
|
}
|
|
3717
|
-
function
|
|
3717
|
+
function y() {
|
|
3718
3718
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
3719
3719
|
}
|
|
3720
3720
|
function g() {
|
|
3721
3721
|
}
|
|
3722
|
-
function
|
|
3723
|
-
var
|
|
3724
|
-
!
|
|
3722
|
+
function m(S, x) {
|
|
3723
|
+
var E;
|
|
3724
|
+
!S || !x || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(S, x), (E = t == null ? void 0 : t.setupContext) == null || E.emit("dragEnd"));
|
|
3725
3725
|
}
|
|
3726
|
-
function w(
|
|
3727
|
-
const { componentType:
|
|
3728
|
-
let P = La(
|
|
3729
|
-
n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(
|
|
3730
|
-
const
|
|
3731
|
-
return P && !P.id && P.type ===
|
|
3726
|
+
function w(S, x) {
|
|
3727
|
+
const { componentType: E } = S;
|
|
3728
|
+
let P = La(E, S, x);
|
|
3729
|
+
n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(S, P));
|
|
3730
|
+
const W = E.toLowerCase().replace(/-/g, "_");
|
|
3731
|
+
return P && !P.id && P.type === E && (P.id = `${W}_${Math.random().toString().slice(2, 6)}`), P;
|
|
3732
3732
|
}
|
|
3733
|
-
function k(
|
|
3734
|
-
|
|
3733
|
+
function k(S) {
|
|
3734
|
+
S && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(S);
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3736
|
+
function O(...S) {
|
|
3737
3737
|
if (n && n.getPropsConfig)
|
|
3738
|
-
return n.getPropsConfig(...
|
|
3738
|
+
return n.getPropsConfig(...S);
|
|
3739
3739
|
}
|
|
3740
|
-
function B(
|
|
3741
|
-
if (!
|
|
3740
|
+
function B(S) {
|
|
3741
|
+
if (!S)
|
|
3742
3742
|
return;
|
|
3743
|
-
const
|
|
3744
|
-
if (
|
|
3745
|
-
const P =
|
|
3746
|
-
P > -1 &&
|
|
3743
|
+
const x = t == null ? void 0 : t.schema, { formSchemaUtils: E } = S;
|
|
3744
|
+
if (x && E.getExpressions().length) {
|
|
3745
|
+
const P = E.getExpressions().findIndex((W) => W.target === x.id);
|
|
3746
|
+
P > -1 && E.getExpressions().splice(P, 1);
|
|
3747
3747
|
}
|
|
3748
3748
|
}
|
|
3749
|
-
function b(
|
|
3750
|
-
if (!
|
|
3749
|
+
function b(S) {
|
|
3750
|
+
if (!S || !(t != null && t.schema))
|
|
3751
3751
|
return;
|
|
3752
|
-
const
|
|
3753
|
-
|
|
3754
|
-
}
|
|
3755
|
-
function
|
|
3756
|
-
n && n.onRemoveComponent && n.onRemoveComponent(), B(
|
|
3757
|
-
let
|
|
3758
|
-
|
|
3759
|
-
const P = e.value.querySelectorAll(`#${
|
|
3760
|
-
P != null && P.length && Array.from(P).map((
|
|
3752
|
+
const x = t.schema, { formSchemaUtils: E } = S;
|
|
3753
|
+
E.removeCommunicationInComponent(x);
|
|
3754
|
+
}
|
|
3755
|
+
function p(S) {
|
|
3756
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), B(S), b(S), t != null && t.schema.contents && t.schema.contents.map((x) => {
|
|
3757
|
+
let E = x.id;
|
|
3758
|
+
x.type === "component-ref" && (E = x.component);
|
|
3759
|
+
const P = e.value.querySelectorAll(`#${E}-design-item`);
|
|
3760
|
+
P != null && P.length && Array.from(P).map((W) => {
|
|
3761
3761
|
var J;
|
|
3762
|
-
(J =
|
|
3762
|
+
(J = W == null ? void 0 : W.componentInstance) != null && J.value.onRemoveComponent && W.componentInstance.value.onRemoveComponent(S);
|
|
3763
3763
|
});
|
|
3764
3764
|
});
|
|
3765
3765
|
}
|
|
3766
|
-
function
|
|
3766
|
+
function F() {
|
|
3767
3767
|
if (n && n.getCustomButtons)
|
|
3768
3768
|
return n.getCustomButtons();
|
|
3769
3769
|
}
|
|
3770
|
-
function S
|
|
3771
|
-
var
|
|
3772
|
-
if (!((
|
|
3770
|
+
function T(S) {
|
|
3771
|
+
var E, P;
|
|
3772
|
+
if (!((E = t == null ? void 0 : t.schema) != null && E.id))
|
|
3773
3773
|
return;
|
|
3774
|
-
if (!r &&
|
|
3774
|
+
if (!r && S && (r = S.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
|
|
3775
3775
|
n.setComponentBasicInfoMap();
|
|
3776
3776
|
return;
|
|
3777
3777
|
}
|
|
3778
|
-
let
|
|
3778
|
+
let x = "";
|
|
3779
3779
|
if (n != null && n.getComponentTitle)
|
|
3780
|
-
|
|
3780
|
+
x = n.getComponentTitle();
|
|
3781
3781
|
else {
|
|
3782
|
-
const { text:
|
|
3783
|
-
|
|
3782
|
+
const { text: W, title: J, label: $, mainTitle: j, name: G, type: z } = t.schema;
|
|
3783
|
+
x = W || J || $ || j || G || ((P = V[z]) == null ? void 0 : P.name);
|
|
3784
3784
|
}
|
|
3785
|
-
|
|
3786
|
-
componentTitle:
|
|
3787
|
-
parentPathName:
|
|
3785
|
+
x && r.getControlBasicInfoMap().set(t.schema.id, {
|
|
3786
|
+
componentTitle: x,
|
|
3787
|
+
parentPathName: x
|
|
3788
3788
|
});
|
|
3789
3789
|
}
|
|
3790
|
-
function I(
|
|
3791
|
-
var
|
|
3792
|
-
const { changeObject:
|
|
3793
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((
|
|
3790
|
+
function I(S) {
|
|
3791
|
+
var W;
|
|
3792
|
+
const { changeObject: x } = S, { propertyID: E, propertyValue: P } = x;
|
|
3793
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((W = S == null ? void 0 : S.changeObject) == null ? void 0 : W.propertyID) && E && P && (T(), r)) {
|
|
3794
3794
|
const J = r.getControlBasicInfoMap(), $ = J.keys().toArray().filter((j) => {
|
|
3795
|
-
var G,
|
|
3796
|
-
return ((G = J.get(j)) == null ? void 0 : G.reliedComponentId) === ((
|
|
3795
|
+
var G, z;
|
|
3796
|
+
return ((G = J.get(j)) == null ? void 0 : G.reliedComponentId) === ((z = t == null ? void 0 : t.schema) == null ? void 0 : z.id);
|
|
3797
3797
|
});
|
|
3798
3798
|
$ != null && $.length && $.forEach((j) => {
|
|
3799
3799
|
const G = J.get(j).parentPathName.split(" > ");
|
|
@@ -3801,9 +3801,9 @@ function Zn(e, t, n) {
|
|
|
3801
3801
|
});
|
|
3802
3802
|
}
|
|
3803
3803
|
}
|
|
3804
|
-
function R(
|
|
3805
|
-
if (I(
|
|
3806
|
-
return n.onPropertyChanged(
|
|
3804
|
+
function R(S) {
|
|
3805
|
+
if (I(S), n && n.onPropertyChanged)
|
|
3806
|
+
return n.onPropertyChanged(S);
|
|
3807
3807
|
}
|
|
3808
3808
|
return i.value = {
|
|
3809
3809
|
canMove: u(),
|
|
@@ -3819,18 +3819,18 @@ function Zn(e, t, n) {
|
|
|
3819
3819
|
canAccepts: f,
|
|
3820
3820
|
getBelongedComponentInstance: s,
|
|
3821
3821
|
getDraggableDesignItemElement: l,
|
|
3822
|
-
getDraggingDisplayText:
|
|
3823
|
-
getPropConfig:
|
|
3822
|
+
getDraggingDisplayText: y,
|
|
3823
|
+
getPropConfig: O,
|
|
3824
3824
|
getDragScopeElement: g,
|
|
3825
|
-
onAcceptMovedChildElement:
|
|
3825
|
+
onAcceptMovedChildElement: m,
|
|
3826
3826
|
onChildElementMovedOut: k,
|
|
3827
3827
|
addNewChildComponentSchema: w,
|
|
3828
3828
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
3829
3829
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
|
|
3830
|
-
onRemoveComponent:
|
|
3831
|
-
getCustomButtons:
|
|
3830
|
+
onRemoveComponent: p,
|
|
3831
|
+
getCustomButtons: F,
|
|
3832
3832
|
onPropertyChanged: R,
|
|
3833
|
-
setComponentBasicInfoMap:
|
|
3833
|
+
setComponentBasicInfoMap: T,
|
|
3834
3834
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
3835
3835
|
}, i;
|
|
3836
3836
|
}
|
|
@@ -4236,24 +4236,24 @@ function zl(e, t) {
|
|
|
4236
4236
|
function n(f) {
|
|
4237
4237
|
if (f == null)
|
|
4238
4238
|
return 0;
|
|
4239
|
-
let
|
|
4239
|
+
let y = 0;
|
|
4240
4240
|
for (let g = 0; g < f.length; g++) {
|
|
4241
|
-
const
|
|
4242
|
-
|
|
4241
|
+
const m = f.charCodeAt(g);
|
|
4242
|
+
m >= 0 && m <= 128 ? y++ : y = y + 2;
|
|
4243
4243
|
}
|
|
4244
|
-
return
|
|
4244
|
+
return y;
|
|
4245
4245
|
}
|
|
4246
|
-
function a(f,
|
|
4246
|
+
function a(f, y) {
|
|
4247
4247
|
if (f !== "" && f !== void 0 && f !== null) {
|
|
4248
4248
|
f = "" + f;
|
|
4249
4249
|
const g = f.length;
|
|
4250
|
-
let
|
|
4250
|
+
let m = "", w = 0;
|
|
4251
4251
|
for (let k = 0; k < g; k++) {
|
|
4252
|
-
const
|
|
4253
|
-
if (w++, encodeURI(
|
|
4254
|
-
return
|
|
4252
|
+
const O = f.charAt(k);
|
|
4253
|
+
if (w++, encodeURI(O).length > 4 && w++, m = m.concat(O), w >= y)
|
|
4254
|
+
return m = m.concat("..."), m;
|
|
4255
4255
|
}
|
|
4256
|
-
if (w <
|
|
4256
|
+
if (w < y)
|
|
4257
4257
|
return f;
|
|
4258
4258
|
}
|
|
4259
4259
|
return "";
|
|
@@ -4295,10 +4295,10 @@ function Wl(e) {
|
|
|
4295
4295
|
}
|
|
4296
4296
|
function ql(e, t, n, a, o) {
|
|
4297
4297
|
const i = C(e.exceptionInfo), r = N(() => {
|
|
4298
|
-
const
|
|
4298
|
+
const y = t.value === "question" ? "warning" : t.value, g = {
|
|
4299
4299
|
"f-icon": !0
|
|
4300
|
-
},
|
|
4301
|
-
return g[
|
|
4300
|
+
}, m = `f-icon-${y}`;
|
|
4301
|
+
return g[m] = !0, g;
|
|
4302
4302
|
}), u = N(() => n.value || i.value && i.value.message), d = N(() => a.value), c = N(() => !!a.value), h = N(() => !!i.value);
|
|
4303
4303
|
function s() {
|
|
4304
4304
|
return h.value ? zl(i, o) : c.value ? Wl(d) : () => null;
|
|
@@ -4346,9 +4346,9 @@ function Gl(e, t, n, a) {
|
|
|
4346
4346
|
}, [u.value])]);
|
|
4347
4347
|
}
|
|
4348
4348
|
function _l(e, t, n, a, o) {
|
|
4349
|
-
const i = C(e.type), r = C(e.buttons), u = C(e.exceptionInfo), d = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), s = C(e.showOkButton), l = N(() => !!(r.value && r.value.length)), f = N(() => u.value && u.value.message && u.value.detail),
|
|
4349
|
+
const i = C(e.type), r = C(e.buttons), u = C(e.exceptionInfo), d = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), s = C(e.showOkButton), l = N(() => !!(r.value && r.value.length)), f = N(() => u.value && u.value.message && u.value.detail), y = N(() => !(r.value && r.value.length) && (s.value || h.value)), g = Gl(e, n, a, o);
|
|
4350
4350
|
d.value === "关闭" ? d.value = o.close : d.value === "知道了" && (d.value = o.exception.roger);
|
|
4351
|
-
function
|
|
4351
|
+
function m(k) {
|
|
4352
4352
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
4353
4353
|
}
|
|
4354
4354
|
function w(k) {
|
|
@@ -4356,11 +4356,11 @@ function _l(e, t, n, a, o) {
|
|
|
4356
4356
|
}
|
|
4357
4357
|
return () => v("div", {
|
|
4358
4358
|
class: "modal-footer"
|
|
4359
|
-
}, [f.value && g(),
|
|
4359
|
+
}, [f.value && g(), y.value && h.value && v("button", {
|
|
4360
4360
|
type: "button",
|
|
4361
4361
|
class: "btn btn-secondary btn-lg",
|
|
4362
|
-
onClick:
|
|
4363
|
-
}, [c.value]),
|
|
4362
|
+
onClick: m
|
|
4363
|
+
}, [c.value]), y.value && s.value && v("button", {
|
|
4364
4364
|
type: "button",
|
|
4365
4365
|
class: "btn btn-primary btn-lg",
|
|
4366
4366
|
onClick: w
|
|
@@ -4425,7 +4425,7 @@ const Et = /* @__PURE__ */ oe({
|
|
|
4425
4425
|
style: s.value
|
|
4426
4426
|
}, [l.value]);
|
|
4427
4427
|
}
|
|
4428
|
-
function
|
|
4428
|
+
function y() {
|
|
4429
4429
|
switch (a.value) {
|
|
4430
4430
|
case "prompt":
|
|
4431
4431
|
return Hl(e, c);
|
|
@@ -4433,7 +4433,7 @@ const Et = /* @__PURE__ */ oe({
|
|
|
4433
4433
|
return ql(e, a, o, i, n);
|
|
4434
4434
|
}
|
|
4435
4435
|
}
|
|
4436
|
-
const g =
|
|
4436
|
+
const g = y(), m = _l(e, t, d, h, n);
|
|
4437
4437
|
return () => v("div", {
|
|
4438
4438
|
class: "farris-messager"
|
|
4439
4439
|
}, [!e.exceptionInfo && v("div", {
|
|
@@ -4442,7 +4442,7 @@ const Et = /* @__PURE__ */ oe({
|
|
|
4442
4442
|
}, null), v("section", {
|
|
4443
4443
|
class: r.value,
|
|
4444
4444
|
style: u.value
|
|
4445
|
-
}, [g()]),
|
|
4445
|
+
}, [g()]), m(), f()]);
|
|
4446
4446
|
}
|
|
4447
4447
|
}), De = class De {
|
|
4448
4448
|
static show(t) {
|
|
@@ -4574,7 +4574,7 @@ function Yl(e, t, n, a, o) {
|
|
|
4574
4574
|
})), { judgeCanOpen: d } = ea(e, o), c = N(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), h = ke(Kn, null), s = C();
|
|
4575
4575
|
async function l(g) {
|
|
4576
4576
|
if (await d() && c.value) {
|
|
4577
|
-
const
|
|
4577
|
+
const m = !!t.slots.default;
|
|
4578
4578
|
if (i.value === "Modal") {
|
|
4579
4579
|
const w = e.modalOptions, k = h == null ? void 0 : h.open({
|
|
4580
4580
|
...w,
|
|
@@ -4587,36 +4587,36 @@ function Yl(e, t, n, a, o) {
|
|
|
4587
4587
|
host: document.body,
|
|
4588
4588
|
backgroundColor: "rgba(0,0,0,.15)",
|
|
4589
4589
|
render: () => t.slots.default && t.slots.default()
|
|
4590
|
-
}),
|
|
4590
|
+
}), m && i.value === "Popup" && a.togglePopup(!0), m && r.value && a.hidePopup(), t.emit("clickButton", { origin: g, value: e.modelValue });
|
|
4591
4591
|
}
|
|
4592
4592
|
}
|
|
4593
4593
|
function f(g) {
|
|
4594
4594
|
t.emit("mouseEnterIcon", g);
|
|
4595
4595
|
}
|
|
4596
|
-
function
|
|
4596
|
+
function y(g) {
|
|
4597
4597
|
t.emit("mouseLeaveIcon", g);
|
|
4598
4598
|
}
|
|
4599
4599
|
return {
|
|
4600
4600
|
buttonGroupClass: u,
|
|
4601
4601
|
onClickButton: l,
|
|
4602
4602
|
onMouseEnterButton: f,
|
|
4603
|
-
onMouseLeaveButton:
|
|
4603
|
+
onMouseLeaveButton: y,
|
|
4604
4604
|
modalRef: s
|
|
4605
4605
|
};
|
|
4606
4606
|
}
|
|
4607
4607
|
function Xl(e, t, n, a, o, i) {
|
|
4608
4608
|
const r = C(!1), u = N(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: d, hasClearClass: c } = i;
|
|
4609
|
-
function h(
|
|
4610
|
-
r.value =
|
|
4609
|
+
function h(y) {
|
|
4610
|
+
r.value = y, c.value = y;
|
|
4611
4611
|
}
|
|
4612
4612
|
Z(o, () => {
|
|
4613
4613
|
h(!!o.value);
|
|
4614
4614
|
});
|
|
4615
|
-
function s(
|
|
4616
|
-
const g = !e.readonly && !e.disable && e.editable,
|
|
4617
|
-
|
|
4615
|
+
function s(y) {
|
|
4616
|
+
const g = !e.readonly && !e.disable && e.editable, m = !e.editable;
|
|
4617
|
+
y.stopPropagation(), (g || m) && (d(""), o.value = "", h(!r.value), t.emit("clear"));
|
|
4618
4618
|
}
|
|
4619
|
-
function l(
|
|
4619
|
+
function l(y) {
|
|
4620
4620
|
if (u.value) {
|
|
4621
4621
|
if (!n.value) {
|
|
4622
4622
|
h(!1);
|
|
@@ -4625,7 +4625,7 @@ function Xl(e, t, n, a, o, i) {
|
|
|
4625
4625
|
!e.disable && !e.readonly && h(!0);
|
|
4626
4626
|
}
|
|
4627
4627
|
}
|
|
4628
|
-
function f(
|
|
4628
|
+
function f(y) {
|
|
4629
4629
|
u.value && h(!1);
|
|
4630
4630
|
}
|
|
4631
4631
|
return {
|
|
@@ -4637,22 +4637,22 @@ function Xl(e, t, n, a, o, i) {
|
|
|
4637
4637
|
};
|
|
4638
4638
|
}
|
|
4639
4639
|
function Jl(e, t, n, a, o) {
|
|
4640
|
-
const i = N(() => e.popupOnInput), r = N(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: d } = o, c = C(!1), h = N(() => e.enableTitle ? n.value : ""), s = N(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), l = N(() => e.readonly || !e.editable), f = C(!1),
|
|
4640
|
+
const i = N(() => e.popupOnInput), r = N(() => e.popupOnFocus), { shouldPopupContent: u, closeAllPopover: d } = o, c = C(!1), h = N(() => e.enableTitle ? n.value : ""), s = N(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), l = N(() => e.readonly || !e.editable), f = C(!1), y = N(() => !e.disable && f.value), g = N(() => ({
|
|
4641
4641
|
"text-left": e.textAlign === "left",
|
|
4642
4642
|
"text-center": e.textAlign === "center",
|
|
4643
4643
|
"text-right": e.textAlign === "right",
|
|
4644
4644
|
"form-control": !0,
|
|
4645
4645
|
"f-utils-fill": !0
|
|
4646
|
-
})),
|
|
4646
|
+
})), m = N(() => ({
|
|
4647
4647
|
"input-group": !0,
|
|
4648
4648
|
"f-state-disabled": e.disable,
|
|
4649
4649
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
4650
4650
|
"f-state-readonly": e.readonly,
|
|
4651
|
-
"f-state-focus":
|
|
4651
|
+
"f-state-focus": y.value,
|
|
4652
4652
|
"input-group--has-clear": e.enableClear && c.value
|
|
4653
4653
|
}));
|
|
4654
|
-
function w(M,
|
|
4655
|
-
n.value = M,
|
|
4654
|
+
function w(M, S = !0) {
|
|
4655
|
+
n.value = M, S && (t.emit("change", M), t.emit("update:modelValue", M));
|
|
4656
4656
|
}
|
|
4657
4657
|
function k(M) {
|
|
4658
4658
|
u.value = !1, w(M, !0);
|
|
@@ -4663,7 +4663,7 @@ function Jl(e, t, n, a, o) {
|
|
|
4663
4663
|
n.value = M;
|
|
4664
4664
|
}
|
|
4665
4665
|
);
|
|
4666
|
-
function
|
|
4666
|
+
function O(M) {
|
|
4667
4667
|
f.value = !1, t.emit("blur", M), M.stopPropagation();
|
|
4668
4668
|
}
|
|
4669
4669
|
function B(M) {
|
|
@@ -4672,56 +4672,56 @@ function Jl(e, t, n, a, o) {
|
|
|
4672
4672
|
function b(M) {
|
|
4673
4673
|
!e.disable && !e.readonly && (f.value = !0, l.value || (t.emit("focus", M), r.value && !u.value && o.popup()));
|
|
4674
4674
|
}
|
|
4675
|
-
function
|
|
4675
|
+
function p(M) {
|
|
4676
4676
|
t.emit("input", M);
|
|
4677
|
-
const
|
|
4678
|
-
a.value =
|
|
4677
|
+
const S = M.target.value;
|
|
4678
|
+
a.value = S, n.value !== S && w(S, e.updateOn === "change"), i.value && !u.value && o.popup();
|
|
4679
4679
|
}
|
|
4680
|
-
function
|
|
4680
|
+
function F(M) {
|
|
4681
4681
|
M.target.tagName !== "INPUT" && M.preventDefault(), M.stopPropagation();
|
|
4682
4682
|
}
|
|
4683
|
-
function
|
|
4683
|
+
function T(M) {
|
|
4684
4684
|
t.emit("keydown", M);
|
|
4685
4685
|
}
|
|
4686
4686
|
function I(M) {
|
|
4687
4687
|
M.key === "Enter" && (i.value || r.value) && o.hidePopup(), t.emit("keyup", M);
|
|
4688
4688
|
}
|
|
4689
4689
|
function R(M) {
|
|
4690
|
-
const
|
|
4691
|
-
M.stopPropagation(), w(
|
|
4690
|
+
const S = M.target.value;
|
|
4691
|
+
M.stopPropagation(), w(S);
|
|
4692
4692
|
}
|
|
4693
4693
|
return {
|
|
4694
|
-
hasFocusedTextBox:
|
|
4694
|
+
hasFocusedTextBox: y,
|
|
4695
4695
|
isTextBoxReadonly: l,
|
|
4696
4696
|
textBoxClass: g,
|
|
4697
4697
|
textBoxPlaceholder: s,
|
|
4698
4698
|
textBoxTitle: h,
|
|
4699
|
-
inputGroupClass:
|
|
4699
|
+
inputGroupClass: m,
|
|
4700
4700
|
hasClearClass: c,
|
|
4701
4701
|
changeTextBoxValue: w,
|
|
4702
4702
|
commitValue: k,
|
|
4703
|
-
onBlurTextBox:
|
|
4703
|
+
onBlurTextBox: O,
|
|
4704
4704
|
onClickTextBox: B,
|
|
4705
4705
|
onFocusTextBox: b,
|
|
4706
|
-
onInput:
|
|
4707
|
-
onKeyDownTextBox:
|
|
4706
|
+
onInput: p,
|
|
4707
|
+
onKeyDownTextBox: T,
|
|
4708
4708
|
onKeyUpTextBox: I,
|
|
4709
|
-
onMouseDownTextBox:
|
|
4709
|
+
onMouseDownTextBox: F,
|
|
4710
4710
|
onTextBoxValueChange: R
|
|
4711
4711
|
};
|
|
4712
4712
|
}
|
|
4713
4713
|
const nt = "FarrisVue_PopoverInstancesKey";
|
|
4714
4714
|
function Ql(e, t, n, a) {
|
|
4715
4715
|
const o = C(), i = C(!1), { judgeCanOpen: r } = ea(e, a);
|
|
4716
|
-
Z(() => o.value, (f,
|
|
4716
|
+
Z(() => o.value, (f, y) => {
|
|
4717
4717
|
window[nt] = window[nt] || /* @__PURE__ */ new WeakMap(), f ? window[nt].set(n.value, f) : window[nt].delete(n.value);
|
|
4718
4718
|
});
|
|
4719
4719
|
function u() {
|
|
4720
4720
|
if (window[nt]) {
|
|
4721
4721
|
const f = window[nt];
|
|
4722
|
-
document.querySelectorAll(".f-button-edit,.v-popover").forEach((
|
|
4723
|
-
const g = f.get(
|
|
4724
|
-
g &&
|
|
4722
|
+
document.querySelectorAll(".f-button-edit,.v-popover").forEach((y) => {
|
|
4723
|
+
const g = f.get(y);
|
|
4724
|
+
g && y !== n.value && !n.value.closest(".popover-fitcontent") && g.hide();
|
|
4725
4725
|
});
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
@@ -4765,27 +4765,24 @@ function Zl(e, t, n) {
|
|
|
4765
4765
|
onInput: s,
|
|
4766
4766
|
onKeyDownTextBox: l,
|
|
4767
4767
|
onKeyUpTextBox: f,
|
|
4768
|
-
onMouseDownTextBox:
|
|
4768
|
+
onMouseDownTextBox: y,
|
|
4769
4769
|
onTextBoxValueChange: g
|
|
4770
|
-
} = n,
|
|
4770
|
+
} = n, m = C(e.id), {
|
|
4771
4771
|
uuid: w
|
|
4772
|
-
} = za()
|
|
4773
|
-
"border-top-right-radius": "6px",
|
|
4774
|
-
"border-bottom-right-radius": "6px"
|
|
4775
|
-
}));
|
|
4772
|
+
} = za();
|
|
4776
4773
|
be(() => {
|
|
4777
|
-
var
|
|
4778
|
-
e.selectOnCreated && ((
|
|
4774
|
+
var p, F;
|
|
4775
|
+
e.selectOnCreated && ((p = a.value) == null || p.select()), e.focusOnCreated && ((F = a.value) == null || F.focus({
|
|
4779
4776
|
preventScroll: !0
|
|
4780
|
-
})),
|
|
4777
|
+
})), m.value || (m.value = "button-edit_" + w(8)), m.value = m.value + "-textbox";
|
|
4781
4778
|
});
|
|
4782
|
-
const
|
|
4783
|
-
|
|
4784
|
-
},
|
|
4785
|
-
|
|
4779
|
+
const k = C(!1), O = (p) => {
|
|
4780
|
+
p.preventDefault(), k.value = !0;
|
|
4781
|
+
}, B = (p) => {
|
|
4782
|
+
p.preventDefault(), k.value = !1, s(p);
|
|
4786
4783
|
};
|
|
4787
|
-
function
|
|
4788
|
-
|
|
4784
|
+
function b(p) {
|
|
4785
|
+
k.value || s(p);
|
|
4789
4786
|
}
|
|
4790
4787
|
return () => v("input", {
|
|
4791
4788
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4793,7 +4790,6 @@ function Zl(e, t, n) {
|
|
|
4793
4790
|
name: "input-group-value",
|
|
4794
4791
|
autocomplete: e.autoComplete ? "on" : "off",
|
|
4795
4792
|
class: i.value,
|
|
4796
|
-
style: k.value,
|
|
4797
4793
|
disabled: e.disable,
|
|
4798
4794
|
maxlength: e.maxLength,
|
|
4799
4795
|
minlength: e.minLength,
|
|
@@ -4807,12 +4803,12 @@ function Zl(e, t, n) {
|
|
|
4807
4803
|
onChange: g,
|
|
4808
4804
|
onClick: c,
|
|
4809
4805
|
onFocus: h,
|
|
4810
|
-
onInput:
|
|
4806
|
+
onInput: b,
|
|
4811
4807
|
onKeydown: l,
|
|
4812
4808
|
onKeyup: f,
|
|
4813
|
-
onMousedown:
|
|
4814
|
-
onCompositionend:
|
|
4815
|
-
onCompositionstart:
|
|
4809
|
+
onMousedown: y,
|
|
4810
|
+
onCompositionend: B,
|
|
4811
|
+
onCompositionstart: O
|
|
4816
4812
|
}, null);
|
|
4817
4813
|
}
|
|
4818
4814
|
function Kl(e, t, n) {
|
|
@@ -4822,22 +4818,22 @@ function Kl(e, t, n) {
|
|
|
4822
4818
|
onBlurTextBox: u,
|
|
4823
4819
|
onClickTextBox: d,
|
|
4824
4820
|
textBoxPlaceholder: c
|
|
4825
|
-
} = n, h = N(() => t.value ? t.value.split(a.value).map((
|
|
4826
|
-
name:
|
|
4821
|
+
} = n, h = N(() => t.value ? t.value.split(a.value).map((y) => ({
|
|
4822
|
+
name: y,
|
|
4827
4823
|
selectable: !0
|
|
4828
4824
|
})) : []);
|
|
4829
|
-
function s(
|
|
4830
|
-
i(
|
|
4825
|
+
function s(y) {
|
|
4826
|
+
i(y.map((g) => g.name).join(a.value), !0);
|
|
4831
4827
|
}
|
|
4832
|
-
Z(() => e.separator, (
|
|
4833
|
-
a.value =
|
|
4828
|
+
Z(() => e.separator, (y) => {
|
|
4829
|
+
a.value = y;
|
|
4834
4830
|
});
|
|
4835
4831
|
const l = C(!e.disable && !e.readonly);
|
|
4836
|
-
Z([() => e.disable, () => e.readonly], ([
|
|
4837
|
-
l.value = !
|
|
4832
|
+
Z([() => e.disable, () => e.readonly], ([y, g], [m, w]) => {
|
|
4833
|
+
l.value = !y && !g;
|
|
4838
4834
|
});
|
|
4839
|
-
function f(
|
|
4840
|
-
d(
|
|
4835
|
+
function f(y) {
|
|
4836
|
+
d(y);
|
|
4841
4837
|
}
|
|
4842
4838
|
return () => v($a, {
|
|
4843
4839
|
tabindex: e.tabIndex,
|
|
@@ -4864,8 +4860,8 @@ function er(e, t, n, a) {
|
|
|
4864
4860
|
enableClearButton: d,
|
|
4865
4861
|
showClearButton: c,
|
|
4866
4862
|
onClearValue: h
|
|
4867
|
-
} = a, s = C(), l = Pn((
|
|
4868
|
-
i(
|
|
4863
|
+
} = a, s = C(), l = Pn((y) => {
|
|
4864
|
+
i(y);
|
|
4869
4865
|
}, e.buttonBehavior === "Modal" ? 0 : 200), f = () => {
|
|
4870
4866
|
t.emit("beforeClearValue");
|
|
4871
4867
|
};
|
|
@@ -4888,7 +4884,7 @@ function er(e, t, n, a) {
|
|
|
4888
4884
|
class: "input-group-text input-group-append-button",
|
|
4889
4885
|
innerHTML: e.buttonContent,
|
|
4890
4886
|
ref: s,
|
|
4891
|
-
onClick: (
|
|
4887
|
+
onClick: (y) => l(y),
|
|
4892
4888
|
onMouseenter: r,
|
|
4893
4889
|
onMouseleave: u
|
|
4894
4890
|
}, null) : null]),
|
|
@@ -4932,53 +4928,50 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4932
4928
|
togglePopup: c
|
|
4933
4929
|
} = i, h = Yl(e, t, n, i, o), s = C(""), l = Jl(e, t, o, s, i), {
|
|
4934
4930
|
hasFocusedTextBox: f,
|
|
4935
|
-
commitValue:
|
|
4931
|
+
commitValue: y,
|
|
4936
4932
|
inputGroupClass: g
|
|
4937
|
-
} = l,
|
|
4933
|
+
} = l, m = Xl(e, t, o, f, s, l), {
|
|
4938
4934
|
onMouseEnterTextBox: w,
|
|
4939
4935
|
onMouseLeaveTextBox: k
|
|
4940
|
-
} =
|
|
4941
|
-
const
|
|
4936
|
+
} = m, O = N(() => {
|
|
4937
|
+
const x = {
|
|
4942
4938
|
"f-button-edit": !0,
|
|
4943
4939
|
"f-cmp-inputgroup": !0,
|
|
4944
4940
|
"f-button-edit-nowrap": !e.wrapText
|
|
4945
4941
|
};
|
|
4946
|
-
return a.value && a.value.split(" ").reduce((
|
|
4942
|
+
return a.value && a.value.split(" ").reduce((E, P) => (E[P] = !0, E), x), x;
|
|
4947
4943
|
}), B = N(() => ({
|
|
4948
4944
|
overflow: e.wrapText ? "hidden" : ""
|
|
4949
|
-
})), b = N(() => ({
|
|
4950
|
-
paddingLeft: "3px",
|
|
4951
|
-
backgroundColor: "#fff"
|
|
4952
4945
|
}));
|
|
4953
|
-
function
|
|
4946
|
+
function b() {
|
|
4954
4947
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
4955
4948
|
return 0;
|
|
4956
|
-
let
|
|
4957
|
-
const
|
|
4958
|
-
return
|
|
4949
|
+
let x = 0;
|
|
4950
|
+
const E = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
4951
|
+
return E && E.length && (x = E.map((P) => P.offsetTop).filter((P) => P > 20).length), x;
|
|
4959
4952
|
}
|
|
4960
|
-
const
|
|
4953
|
+
const p = C(b());
|
|
4961
4954
|
an(() => {
|
|
4962
|
-
|
|
4955
|
+
p.value = b();
|
|
4963
4956
|
});
|
|
4964
|
-
function
|
|
4965
|
-
return e.multiSelect && e.inputType === "tag" ? () => v(it, null, [Kl(e, o, l)(), !!
|
|
4957
|
+
function F() {
|
|
4958
|
+
return e.multiSelect && e.inputType === "tag" ? () => v(it, null, [Kl(e, o, l)(), !!p.value && v("div", {
|
|
4966
4959
|
class: "d-flex flex-row mr-2 more-tags",
|
|
4967
4960
|
"more-tags": !0
|
|
4968
4961
|
}, [v("span", {
|
|
4969
4962
|
class: "multi--more-text"
|
|
4970
|
-
}, [le("+"),
|
|
4963
|
+
}, [le("+"), p.value])])]) : Zl(e, o, l);
|
|
4971
4964
|
}
|
|
4972
|
-
let
|
|
4965
|
+
let T = F();
|
|
4973
4966
|
Z([() => e.multiSelect, () => e.inputType], () => {
|
|
4974
|
-
|
|
4967
|
+
T = F();
|
|
4975
4968
|
});
|
|
4976
4969
|
const {
|
|
4977
|
-
renderButtonGroup:
|
|
4978
|
-
buttonHandleElement:
|
|
4979
|
-
} = er(e, t, h,
|
|
4970
|
+
renderButtonGroup: I,
|
|
4971
|
+
buttonHandleElement: R
|
|
4972
|
+
} = er(e, t, h, m), M = tr(e, t, i), S = {
|
|
4980
4973
|
displayText: s,
|
|
4981
|
-
commitValue:
|
|
4974
|
+
commitValue: y,
|
|
4982
4975
|
elementRef: n,
|
|
4983
4976
|
hidePopup: u,
|
|
4984
4977
|
showPopup: d,
|
|
@@ -4986,34 +4979,33 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4986
4979
|
shouldPopupContent: r,
|
|
4987
4980
|
togglePopup: c,
|
|
4988
4981
|
openDialog: () => {
|
|
4989
|
-
|
|
4982
|
+
R.value && e.buttonBehavior === "Modal" && R.value.click();
|
|
4990
4983
|
},
|
|
4991
4984
|
getModal: () => {
|
|
4992
|
-
var
|
|
4993
|
-
return e.buttonBehavior === "Modal" ? (
|
|
4985
|
+
var x;
|
|
4986
|
+
return e.buttonBehavior === "Modal" ? (x = h.modalRef.value) == null ? void 0 : x.value : null;
|
|
4994
4987
|
}
|
|
4995
4988
|
};
|
|
4996
4989
|
return be(() => {
|
|
4997
|
-
n.value.componentInstance =
|
|
4990
|
+
n.value.componentInstance = S, window.onresize = () => {
|
|
4998
4991
|
document.body.click();
|
|
4999
4992
|
};
|
|
5000
4993
|
}), On(() => {
|
|
5001
|
-
var
|
|
5002
|
-
window.onresize = null, (
|
|
5003
|
-
}), t.expose(
|
|
5004
|
-
var
|
|
4994
|
+
var x;
|
|
4995
|
+
window.onresize = null, (x = window[nt]) == null || x.delete(n.value);
|
|
4996
|
+
}), t.expose(S), () => {
|
|
4997
|
+
var x, E;
|
|
5005
4998
|
return v(it, null, [v("div", kt(t.attrs, {
|
|
5006
4999
|
ref: n,
|
|
5007
|
-
class:
|
|
5000
|
+
class: O.value,
|
|
5008
5001
|
id: e.id ? e.id : void 0,
|
|
5009
5002
|
style: B.value
|
|
5010
5003
|
}), [v("div", {
|
|
5011
5004
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
5012
5005
|
class: g.value,
|
|
5013
|
-
style: b.value,
|
|
5014
5006
|
onMouseenter: w,
|
|
5015
5007
|
onMouseleave: k
|
|
5016
|
-
}, [(
|
|
5008
|
+
}, [(E = (x = t.slots).precontent) == null ? void 0 : E.call(x), T(), I()])]), r.value && M()]);
|
|
5017
5009
|
};
|
|
5018
5010
|
}
|
|
5019
5011
|
}), nr = "https://json-schema.org/draft/2020-12/schema", ar = "https://farris-design.gitee.io/field-selector.schema.json", or = "field-selector", ir = "A Farris Input Component", lr = "object", rr = {
|
|
@@ -5664,38 +5656,38 @@ const un = {
|
|
|
5664
5656
|
a.value = e.dataSource;
|
|
5665
5657
|
}), N(() => e.enableSearch ? "SearchBar" : "ContentHeader");
|
|
5666
5658
|
const s = N(() => {
|
|
5667
|
-
const
|
|
5668
|
-
return r.value !== void 0 && (
|
|
5659
|
+
const m = {};
|
|
5660
|
+
return r.value !== void 0 && (m.width = `${r.value}px`), u.value !== void 0 && u.value > 0 && (m.maxHeight = `${u.value}px`), m;
|
|
5669
5661
|
});
|
|
5670
|
-
function l(
|
|
5671
|
-
n.value.search(
|
|
5662
|
+
function l(m) {
|
|
5663
|
+
n.value.search(m);
|
|
5672
5664
|
}
|
|
5673
|
-
function f(
|
|
5674
|
-
o.value =
|
|
5665
|
+
function f(m) {
|
|
5666
|
+
o.value = m.map((w) => Object.assign({}, w)), d.value = m.map((w) => w[e.idField]), t.emit("selectionChange", o.value);
|
|
5675
5667
|
}
|
|
5676
|
-
function m
|
|
5668
|
+
function y(m) {
|
|
5677
5669
|
if (e.enableHighlightSearch)
|
|
5678
5670
|
return;
|
|
5679
5671
|
let w = [];
|
|
5680
5672
|
const {
|
|
5681
5673
|
searchOption: k
|
|
5682
5674
|
} = e;
|
|
5683
|
-
typeof k == "function" ? w = a.value.filter((
|
|
5675
|
+
typeof k == "function" ? w = a.value.filter((O) => k(m, O)) : w = a.value.filter((O) => O[e.valueField].indexOf(m) > -1 || O[e.textField].indexOf(m) > -1), n.value.updateDataSource(w);
|
|
5684
5676
|
}
|
|
5685
|
-
Z([() => e.selectedValues], ([
|
|
5686
|
-
e.multiSelect ? d.value =
|
|
5677
|
+
Z([() => e.selectedValues], ([m]) => {
|
|
5678
|
+
e.multiSelect ? d.value = m.split(i.value) : d.value = [m];
|
|
5687
5679
|
});
|
|
5688
|
-
function g(
|
|
5689
|
-
n.value.activeRowById(
|
|
5680
|
+
function g(m) {
|
|
5681
|
+
n.value.activeRowById(m);
|
|
5690
5682
|
}
|
|
5691
5683
|
return be(() => {
|
|
5692
|
-
var
|
|
5684
|
+
var m, w;
|
|
5693
5685
|
if (!e.multiSelect) {
|
|
5694
|
-
const k = (
|
|
5695
|
-
let
|
|
5686
|
+
const k = (m = d.value) == null ? void 0 : m[0];
|
|
5687
|
+
let O = k;
|
|
5696
5688
|
if (!Ne(k)) {
|
|
5697
5689
|
const B = typeof k, b = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
|
|
5698
|
-
b === "number" && B !== b && (
|
|
5690
|
+
b === "number" && B !== b && (O = Number(k)), b === "boolean" && B !== b && (O = k === "true" ? !0 : k === "false" ? !1 : k), g(O);
|
|
5699
5691
|
}
|
|
5700
5692
|
}
|
|
5701
5693
|
}), t.expose({
|
|
@@ -5720,27 +5712,27 @@ const un = {
|
|
|
5720
5712
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
5721
5713
|
selectionValues: d.value,
|
|
5722
5714
|
onSelectionChange: f,
|
|
5723
|
-
onAfterSearch:
|
|
5715
|
+
onAfterSearch: y
|
|
5724
5716
|
}, null)]);
|
|
5725
5717
|
}
|
|
5726
5718
|
});
|
|
5727
5719
|
function Fr(e) {
|
|
5728
5720
|
const { t } = xt(), n = C(""), a = C(e.modelValue), o = C(e.data || []), i = C(e.editable);
|
|
5729
5721
|
function r(l) {
|
|
5730
|
-
const f = e.multiSelect ? String(l).split(e.separator) : [String(l)],
|
|
5722
|
+
const f = e.multiSelect ? String(l).split(e.separator) : [String(l)], y = f.map((w) => [w, !0]), g = new Map(y);
|
|
5731
5723
|
return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
|
|
5732
|
-
const
|
|
5733
|
-
return
|
|
5724
|
+
const O = f.indexOf(w[e.valueField]), B = f.indexOf(k[e.valueField]);
|
|
5725
|
+
return O - B;
|
|
5734
5726
|
});
|
|
5735
5727
|
}
|
|
5736
5728
|
function u(l) {
|
|
5737
|
-
const f = r(l).map((
|
|
5729
|
+
const f = r(l).map((y) => y[e.textField]).join(e.separator);
|
|
5738
5730
|
n.value = i.value ? f || l : f;
|
|
5739
5731
|
}
|
|
5740
5732
|
function d(l) {
|
|
5741
5733
|
if (e.multiSelect) {
|
|
5742
|
-
const f = l.split(e.separator).map((g) => [g, !0]),
|
|
5743
|
-
return o.value.filter((g) =>
|
|
5734
|
+
const f = l.split(e.separator).map((g) => [g, !0]), y = new Map(f);
|
|
5735
|
+
return o.value.filter((g) => y.has(g[e.textField]));
|
|
5744
5736
|
}
|
|
5745
5737
|
return o.value.filter((f) => "" + f[e.textField] === l);
|
|
5746
5738
|
}
|
|
@@ -5750,13 +5742,13 @@ function Fr(e) {
|
|
|
5750
5742
|
}
|
|
5751
5743
|
function h(l) {
|
|
5752
5744
|
let f = d(l);
|
|
5753
|
-
const
|
|
5754
|
-
return i.value && !
|
|
5745
|
+
const y = f && f.length > 0;
|
|
5746
|
+
return i.value && !y && (f = c(l)), f;
|
|
5755
5747
|
}
|
|
5756
5748
|
function s() {
|
|
5757
|
-
const { url: l, method: f = "GET", headers:
|
|
5749
|
+
const { url: l, method: f = "GET", headers: y = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, m = f.toLowerCase() === "get" ? { method: f, headers: y } : { method: f, headers: y, body: g };
|
|
5758
5750
|
let w = !1;
|
|
5759
|
-
fetch(new Request(l,
|
|
5751
|
+
fetch(new Request(l, m)).then((k) => {
|
|
5760
5752
|
var B, b;
|
|
5761
5753
|
if (k.status === 200)
|
|
5762
5754
|
return w = !!((b = (B = k.headers) == null ? void 0 : B.get("content-type")) != null && b.includes("application/json")), w ? k.text() : k.json();
|
|
@@ -5771,7 +5763,7 @@ function Fr(e) {
|
|
|
5771
5763
|
o.value = e.data;
|
|
5772
5764
|
}), Z([o], ([l]) => {
|
|
5773
5765
|
if (e.modelValue != null) {
|
|
5774
|
-
const f = l.find((
|
|
5766
|
+
const f = l.find((y) => y[e.valueField] === e.modelValue);
|
|
5775
5767
|
f && (n.value = f[e.textField]);
|
|
5776
5768
|
}
|
|
5777
5769
|
}), Z(() => e.modelValue, (l) => {
|
|
@@ -5791,47 +5783,47 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5791
5783
|
editable: s,
|
|
5792
5784
|
modelValue: l,
|
|
5793
5785
|
getSelectedItemsByDisplayText: f,
|
|
5794
|
-
getItemsByDisplayText:
|
|
5786
|
+
getItemsByDisplayText: y
|
|
5795
5787
|
} = Fr(e), g = C(e.dropDownIcon);
|
|
5796
5788
|
g.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (g.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
5797
|
-
const
|
|
5789
|
+
const m = N(() => e.multiSelect), w = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
|
|
5798
5790
|
function k() {
|
|
5799
|
-
!
|
|
5791
|
+
!m.value && o.value && o.value.hidePopup();
|
|
5800
5792
|
}
|
|
5801
|
-
function
|
|
5802
|
-
h.value =
|
|
5803
|
-
let
|
|
5804
|
-
|
|
5793
|
+
function O(S) {
|
|
5794
|
+
h.value = S.map((E) => E[e.textField]).join(e.separator);
|
|
5795
|
+
let x = "";
|
|
5796
|
+
S.length === 1 ? x = S[0][e.valueField] : x = S.map((E) => E[e.valueField]).join(e.separator), l.value !== x && (l.value = x, t.emit("update:modelValue", l.value), t.emit("change", S, l.value));
|
|
5805
5797
|
}
|
|
5806
5798
|
function B() {
|
|
5807
|
-
const
|
|
5808
|
-
|
|
5799
|
+
const S = f(h.value);
|
|
5800
|
+
O(S);
|
|
5809
5801
|
}
|
|
5810
5802
|
function b() {
|
|
5811
5803
|
d.value || h.value;
|
|
5812
5804
|
}
|
|
5813
|
-
function
|
|
5814
|
-
var
|
|
5815
|
-
l.value = "", (
|
|
5805
|
+
function p(S) {
|
|
5806
|
+
var x;
|
|
5807
|
+
l.value = "", (x = a.value) == null || x.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
5816
5808
|
}
|
|
5817
|
-
function
|
|
5818
|
-
var
|
|
5819
|
-
e.enableSearch ? ((
|
|
5809
|
+
function F(S) {
|
|
5810
|
+
var x, E;
|
|
5811
|
+
e.enableSearch ? ((x = a.value) == null || x.search(S), (E = a.value) == null || E.activeRowById(S)) : (l.value = S, h.value = S, t.emit("update:modelValue", l.value), t.emit("change", [S], S));
|
|
5820
5812
|
}
|
|
5821
|
-
function S
|
|
5813
|
+
function T(S) {
|
|
5822
5814
|
if (e.multiSelect) {
|
|
5823
|
-
const
|
|
5824
|
-
l.value !== P && (l.value = P, t.emit("update:modelValue", l.value), t.emit("change",
|
|
5815
|
+
const x = y(S), P = x.map((W) => W[e.idField || e.valueField]).join(e.separator);
|
|
5816
|
+
l.value !== P && (l.value = P, t.emit("update:modelValue", l.value), t.emit("change", x, l.value));
|
|
5825
5817
|
}
|
|
5826
5818
|
}
|
|
5827
5819
|
function I() {
|
|
5828
5820
|
return h.value;
|
|
5829
5821
|
}
|
|
5830
|
-
function R(
|
|
5822
|
+
function R(S) {
|
|
5831
5823
|
const {
|
|
5832
|
-
value:
|
|
5833
|
-
} =
|
|
5834
|
-
x
|
|
5824
|
+
value: x
|
|
5825
|
+
} = S.target;
|
|
5826
|
+
F(x), t.emit("input", x);
|
|
5835
5827
|
}
|
|
5836
5828
|
function M() {
|
|
5837
5829
|
o.value.hidePopup();
|
|
@@ -5839,8 +5831,8 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5839
5831
|
return t.expose({
|
|
5840
5832
|
getDisplayText: I,
|
|
5841
5833
|
hidePopup: M
|
|
5842
|
-
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
5843
|
-
i.value =
|
|
5834
|
+
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, x, E, P, W]) => {
|
|
5835
|
+
i.value = S, s.value = x, r.value = E, u.value = P, d.value = W;
|
|
5844
5836
|
}), () => v(jn, {
|
|
5845
5837
|
ref: o,
|
|
5846
5838
|
id: e.id,
|
|
@@ -5857,12 +5849,12 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5857
5849
|
multiSelect: e.multiSelect,
|
|
5858
5850
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
5859
5851
|
modelValue: h.value,
|
|
5860
|
-
"onUpdate:modelValue": (
|
|
5852
|
+
"onUpdate:modelValue": (S) => h.value = S,
|
|
5861
5853
|
focusOnCreated: e.focusOnCreated,
|
|
5862
5854
|
selectOnCreated: e.selectOnCreated,
|
|
5863
|
-
onClear:
|
|
5855
|
+
onClear: p,
|
|
5864
5856
|
onClick: b,
|
|
5865
|
-
onChange:
|
|
5857
|
+
onChange: T,
|
|
5866
5858
|
onBlur: B,
|
|
5867
5859
|
onInput: R,
|
|
5868
5860
|
beforeOpen: e.beforeOpen,
|
|
@@ -5886,8 +5878,8 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5886
5878
|
maxHeight: e.maxHeight,
|
|
5887
5879
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
5888
5880
|
width: e.fitEditor ? w.value : void 0,
|
|
5889
|
-
onSelectionChange: (
|
|
5890
|
-
|
|
5881
|
+
onSelectionChange: (S) => {
|
|
5882
|
+
O(S), k();
|
|
5891
5883
|
}
|
|
5892
5884
|
}, null)]
|
|
5893
5885
|
});
|
|
@@ -6355,59 +6347,59 @@ function ra(e) {
|
|
|
6355
6347
|
top: `${o.value}px`,
|
|
6356
6348
|
cursor: "n-resize"
|
|
6357
6349
|
})), c = N(() => {
|
|
6358
|
-
const
|
|
6350
|
+
const m = {
|
|
6359
6351
|
display: r.value || i.value ? "block" : "none"
|
|
6360
6352
|
};
|
|
6361
|
-
return o.value > 0 && (
|
|
6353
|
+
return o.value > 0 && (m.cursor = "n-resize"), m;
|
|
6362
6354
|
});
|
|
6363
|
-
function h(
|
|
6355
|
+
function h(m, w, k, O) {
|
|
6364
6356
|
const B = e.value;
|
|
6365
6357
|
if (B) {
|
|
6366
|
-
const { left: b, right:
|
|
6367
|
-
let
|
|
6368
|
-
|
|
6358
|
+
const { left: b, right: p, width: F } = B.getBoundingClientRect();
|
|
6359
|
+
let T = m.clientX - b;
|
|
6360
|
+
O === "right" && (T = p - m.clientX), T > w && (T = w), T < k && (T = k), O === "right" && (T = F - T), a.value = T;
|
|
6369
6361
|
}
|
|
6370
6362
|
}
|
|
6371
|
-
function s(
|
|
6363
|
+
function s(m, w, k, O) {
|
|
6372
6364
|
const B = e.value;
|
|
6373
6365
|
if (B) {
|
|
6374
|
-
const { top: b, bottom:
|
|
6375
|
-
let
|
|
6376
|
-
|
|
6366
|
+
const { top: b, bottom: p, height: F } = B.getBoundingClientRect();
|
|
6367
|
+
let T = m.clientY - b;
|
|
6368
|
+
O === "bottom" && (T = p - m.clientY), T > w && (T = w), T < k && (T = k), O === "bottom" && (T = F - T), o.value = T;
|
|
6377
6369
|
}
|
|
6378
6370
|
}
|
|
6379
6371
|
function l() {
|
|
6380
|
-
const
|
|
6381
|
-
if (
|
|
6382
|
-
const { width: w, height: k } =
|
|
6372
|
+
const m = e.value;
|
|
6373
|
+
if (m) {
|
|
6374
|
+
const { width: w, height: k } = m.getBoundingClientRect();
|
|
6383
6375
|
return { width: w, height: k };
|
|
6384
6376
|
}
|
|
6385
6377
|
return null;
|
|
6386
6378
|
}
|
|
6387
6379
|
function f() {
|
|
6388
|
-
const
|
|
6389
|
-
return
|
|
6390
|
-
const
|
|
6391
|
-
return w = Object.assign(w, { [
|
|
6380
|
+
const m = e.value;
|
|
6381
|
+
return m ? Array.from(m.querySelectorAll("[data-position]")).reduce((w, k) => {
|
|
6382
|
+
const O = k.getAttribute("data-position");
|
|
6383
|
+
return w = Object.assign(w, { [O]: k }), w;
|
|
6392
6384
|
}, {}) : null;
|
|
6393
6385
|
}
|
|
6394
|
-
function m
|
|
6395
|
-
const k = l(),
|
|
6396
|
-
if (k &&
|
|
6397
|
-
const B =
|
|
6398
|
-
if (
|
|
6386
|
+
function y(m, w) {
|
|
6387
|
+
const k = l(), O = f();
|
|
6388
|
+
if (k && O) {
|
|
6389
|
+
const B = O == null ? void 0 : O.right, b = O == null ? void 0 : O.left;
|
|
6390
|
+
if (m === "left" && b)
|
|
6399
6391
|
return B ? k.width - B.clientWidth - w : k.width - w;
|
|
6400
|
-
if (
|
|
6392
|
+
if (m === "right" && B)
|
|
6401
6393
|
return b ? k.width - b.clientWidth - w : k.width - w;
|
|
6402
6394
|
}
|
|
6403
6395
|
}
|
|
6404
|
-
function g(
|
|
6405
|
-
const k = l(),
|
|
6406
|
-
if (k &&
|
|
6407
|
-
const B =
|
|
6408
|
-
if (
|
|
6396
|
+
function g(m, w) {
|
|
6397
|
+
const k = l(), O = f();
|
|
6398
|
+
if (k && O) {
|
|
6399
|
+
const B = O == null ? void 0 : O.bottom, b = O == null ? void 0 : O.top;
|
|
6400
|
+
if (m === "top" && b)
|
|
6409
6401
|
return B ? k.height - B.clientHeight - w : k.height - w;
|
|
6410
|
-
if (
|
|
6402
|
+
if (m === "bottom" && B)
|
|
6411
6403
|
return b ? k.height - b.clientHeight - w : k.height - w;
|
|
6412
6404
|
}
|
|
6413
6405
|
}
|
|
@@ -6424,7 +6416,7 @@ function ra(e) {
|
|
|
6424
6416
|
draggingHorizontalResizeHandle: h,
|
|
6425
6417
|
draggingVerticalResizeHandle: s,
|
|
6426
6418
|
getPanelMaxHeight: g,
|
|
6427
|
-
getPanelMaxWidth:
|
|
6419
|
+
getPanelMaxWidth: y
|
|
6428
6420
|
};
|
|
6429
6421
|
}
|
|
6430
6422
|
const Ue = /* @__PURE__ */ oe({
|
|
@@ -6664,40 +6656,40 @@ function ua(e, t, n, a, o) {
|
|
|
6664
6656
|
draggingHorizontalResizeHandle: s,
|
|
6665
6657
|
draggingVerticalResizeHandle: l,
|
|
6666
6658
|
getPanelMaxHeight: f,
|
|
6667
|
-
getPanelMaxWidth:
|
|
6659
|
+
getPanelMaxWidth: y
|
|
6668
6660
|
} = o;
|
|
6669
|
-
let g = "",
|
|
6670
|
-
function
|
|
6661
|
+
let g = "", m, w, k;
|
|
6662
|
+
function O(p) {
|
|
6671
6663
|
if ((g === "left" || g === "right") && w) {
|
|
6672
|
-
const { left:
|
|
6673
|
-
let R = g === "left" ? (
|
|
6664
|
+
const { left: F } = w.getBoundingClientRect(), { width: T } = m.getBoundingClientRect(), I = p.clientX - F;
|
|
6665
|
+
let R = g === "left" ? (T || 0) + (I - i.value) : (T || 0) - (I - i.value);
|
|
6674
6666
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6675
|
-
const M =
|
|
6667
|
+
const M = y(g, n.value);
|
|
6676
6668
|
M != null && (R = M > R ? R : M), e.value = R;
|
|
6677
6669
|
}
|
|
6678
6670
|
if ((g === "top" || g === "bottom") && w) {
|
|
6679
|
-
const { top:
|
|
6680
|
-
let R = g === "top" ? (
|
|
6671
|
+
const { top: F } = w.getBoundingClientRect(), { height: T } = m.getBoundingClientRect(), I = p.clientY - F;
|
|
6672
|
+
let R = g === "top" ? (T || 0) + (I - c.value) : (T || 0) - (I - c.value);
|
|
6681
6673
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6682
6674
|
const M = f(g, a.value);
|
|
6683
6675
|
M != null && (R = M > R ? R : M), t.value = R;
|
|
6684
6676
|
}
|
|
6685
|
-
r.value = 0, h.value = 0, i.value = -1, c.value = -1, u.value = !1, d.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup",
|
|
6677
|
+
r.value = 0, h.value = 0, i.value = -1, c.value = -1, u.value = !1, d.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", O), document.body.style.userSelect = "", g = "", m = null, w = null;
|
|
6686
6678
|
}
|
|
6687
|
-
function B(
|
|
6688
|
-
if (g =
|
|
6689
|
-
const { left: R } = w.getBoundingClientRect(), M =
|
|
6679
|
+
function B(p, F, T) {
|
|
6680
|
+
if (g = F, m = T, u.value = !0, w = p.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6681
|
+
const { left: R } = w.getBoundingClientRect(), M = p.clientX - R;
|
|
6690
6682
|
r.value = M, i.value = M;
|
|
6691
|
-
const
|
|
6692
|
-
k = (
|
|
6683
|
+
const S = y(g, n.value) || 0;
|
|
6684
|
+
k = (x) => s(x, S, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", O), document.body.style.userSelect = "none";
|
|
6693
6685
|
}
|
|
6694
6686
|
}
|
|
6695
|
-
function b(
|
|
6696
|
-
if (g =
|
|
6687
|
+
function b(p, F, T) {
|
|
6688
|
+
if (g = F, m = T, d.value = !0, w = p.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6697
6689
|
const { top: R } = w.getBoundingClientRect();
|
|
6698
|
-
h.value =
|
|
6690
|
+
h.value = p.clientY - R, c.value = p.clientY - R;
|
|
6699
6691
|
const M = f(g, a.value) || 0;
|
|
6700
|
-
k = (
|
|
6692
|
+
k = (S) => l(S, M, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", O), document.body.style.userSelect = "none";
|
|
6701
6693
|
}
|
|
6702
6694
|
}
|
|
6703
6695
|
return { onClickHorizontalResizeBar: B, onClickVerticalResizeBar: b };
|
|
@@ -6714,36 +6706,36 @@ const Ie = /* @__PURE__ */ oe({
|
|
|
6714
6706
|
const s = ke("layout"), {
|
|
6715
6707
|
useResizeHandleComposition: l
|
|
6716
6708
|
} = s, f = ua(u, r, a, n, l), {
|
|
6717
|
-
onClickHorizontalResizeBar:
|
|
6709
|
+
onClickHorizontalResizeBar: y,
|
|
6718
6710
|
onClickVerticalResizeBar: g
|
|
6719
|
-
} = f,
|
|
6711
|
+
} = f, m = N(() => ({
|
|
6720
6712
|
"f-layout-resize-bar": !0,
|
|
6721
6713
|
"f-layout-resize-bar-e": c.value === "left",
|
|
6722
6714
|
"f-layout-resize-bar-n": c.value === "bottom",
|
|
6723
6715
|
"f-layout-resize-bar-s": c.value === "top",
|
|
6724
6716
|
"f-layout-resize-bar-w": c.value === "right"
|
|
6725
6717
|
})), w = N(() => c.value !== "center" && h.value);
|
|
6726
|
-
function k(b,
|
|
6727
|
-
(
|
|
6718
|
+
function k(b, p) {
|
|
6719
|
+
(p === "left" || p === "right") && y(b, p, d.value), (p === "top" || p === "bottom") && g(b, p, d.value);
|
|
6728
6720
|
}
|
|
6729
|
-
const
|
|
6721
|
+
const O = N(() => {
|
|
6730
6722
|
const b = {
|
|
6731
6723
|
"f-layout-pane": !0,
|
|
6732
6724
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
6733
6725
|
"f-page-content-main": c.value === "center"
|
|
6734
6726
|
};
|
|
6735
|
-
return e.customClass && String(e.customClass).split(" ").reduce((
|
|
6727
|
+
return e.customClass && String(e.customClass).split(" ").reduce((p, F) => (p[F] = !0, p), b), b;
|
|
6736
6728
|
}), B = N(() => {
|
|
6737
6729
|
const b = {};
|
|
6738
6730
|
return (u.value && c.value === "left" || c.value === "right") && (b.width = `${u.value}px`), (r.value && c.value === "bottom" || c.value === "top") && (b.height = `${r.value}px`), e.visible || (b.display = "none"), b;
|
|
6739
6731
|
});
|
|
6740
6732
|
return () => v("div", {
|
|
6741
6733
|
ref: d,
|
|
6742
|
-
class:
|
|
6734
|
+
class: O.value,
|
|
6743
6735
|
style: B.value,
|
|
6744
6736
|
"data-position": c.value
|
|
6745
6737
|
}, [t.slots.default && t.slots.default(), w.value && v("span", {
|
|
6746
|
-
class:
|
|
6738
|
+
class: m.value,
|
|
6747
6739
|
onMousedown: (b) => k(b, c.value)
|
|
6748
6740
|
}, null)]);
|
|
6749
6741
|
}
|
|
@@ -6810,26 +6802,26 @@ const os = /* @__PURE__ */ oe({
|
|
|
6810
6802
|
}), t.expose(r.value);
|
|
6811
6803
|
const u = C(Math.max(e.minHeight, e.height)), d = C(Math.max(e.minWidth, e.width)), c = C(e.minHeight), h = C(e.minWidth), s = C(e.position), l = ke("layout"), {
|
|
6812
6804
|
useResizeHandleComposition: f
|
|
6813
|
-
} = l,
|
|
6805
|
+
} = l, y = ua(d, u, h, c, f), {
|
|
6814
6806
|
onClickHorizontalResizeBar: g,
|
|
6815
|
-
onClickVerticalResizeBar:
|
|
6816
|
-
} =
|
|
6807
|
+
onClickVerticalResizeBar: m
|
|
6808
|
+
} = y, w = N(() => ({
|
|
6817
6809
|
"f-layout-resize-bar": !0,
|
|
6818
6810
|
"f-layout-resize-bar-e": s.value === "left",
|
|
6819
6811
|
"f-layout-resize-bar-n": s.value === "bottom",
|
|
6820
6812
|
"f-layout-resize-bar-s": s.value === "top",
|
|
6821
6813
|
"f-layout-resize-bar-w": s.value === "right"
|
|
6822
6814
|
}));
|
|
6823
|
-
function k(b,
|
|
6824
|
-
(
|
|
6815
|
+
function k(b, p) {
|
|
6816
|
+
(p === "left" || p === "right") && g(b, p, n.value), (p === "top" || p === "bottom") && m(b, p, n.value);
|
|
6825
6817
|
}
|
|
6826
|
-
const
|
|
6818
|
+
const O = N(() => {
|
|
6827
6819
|
const b = {
|
|
6828
6820
|
"f-layout-pane": !0,
|
|
6829
6821
|
"f-page-content-nav": s.value === "left" || s.value === "right",
|
|
6830
6822
|
"f-page-content-main": s.value === "center"
|
|
6831
6823
|
};
|
|
6832
|
-
return e.customClass && String(e.customClass).split(" ").reduce((
|
|
6824
|
+
return e.customClass && String(e.customClass).split(" ").reduce((p, F) => (p[F] = !0, p), b), b;
|
|
6833
6825
|
}), B = N(() => {
|
|
6834
6826
|
const b = {
|
|
6835
6827
|
flex: "1"
|
|
@@ -6838,7 +6830,7 @@ const os = /* @__PURE__ */ oe({
|
|
|
6838
6830
|
});
|
|
6839
6831
|
return () => v("div", {
|
|
6840
6832
|
ref: n,
|
|
6841
|
-
class:
|
|
6833
|
+
class: O.value,
|
|
6842
6834
|
style: B.value
|
|
6843
6835
|
}, [v("div", {
|
|
6844
6836
|
ref: a,
|
|
@@ -9387,13 +9379,13 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9387
9379
|
let o = null;
|
|
9388
9380
|
const i = C(e.modelValue);
|
|
9389
9381
|
async function r() {
|
|
9390
|
-
return fetch(e.configPath).then((
|
|
9382
|
+
return fetch(e.configPath).then((y) => y.json());
|
|
9391
9383
|
}
|
|
9392
9384
|
async function u() {
|
|
9393
9385
|
if (n.value && !o) {
|
|
9394
|
-
const
|
|
9386
|
+
const y = await r(), {
|
|
9395
9387
|
vsPath: g
|
|
9396
|
-
} =
|
|
9388
|
+
} = y;
|
|
9397
9389
|
Kt.config({
|
|
9398
9390
|
paths: {
|
|
9399
9391
|
vs: window.location.origin + g
|
|
@@ -9404,8 +9396,8 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9404
9396
|
"*": "zh-cn"
|
|
9405
9397
|
}
|
|
9406
9398
|
}
|
|
9407
|
-
}), Kt.init().then((
|
|
9408
|
-
a.value =
|
|
9399
|
+
}), Kt.init().then((m) => {
|
|
9400
|
+
a.value = m, o = m.editor.create(n.value, {
|
|
9409
9401
|
value: i.value,
|
|
9410
9402
|
automaticLayout: !0,
|
|
9411
9403
|
// 自动调整布局
|
|
@@ -9431,28 +9423,28 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9431
9423
|
});
|
|
9432
9424
|
}
|
|
9433
9425
|
}
|
|
9434
|
-
Z(() => e.modelValue, (
|
|
9435
|
-
i.value =
|
|
9426
|
+
Z(() => e.modelValue, (y) => {
|
|
9427
|
+
i.value = y, o == null || o.setValue(y);
|
|
9436
9428
|
});
|
|
9437
|
-
const d = C(), c = new ResizeObserver((
|
|
9429
|
+
const d = C(), c = new ResizeObserver((y) => {
|
|
9438
9430
|
o == null || o.layout();
|
|
9439
9431
|
const {
|
|
9440
9432
|
width: g,
|
|
9441
|
-
height:
|
|
9442
|
-
} =
|
|
9433
|
+
height: m
|
|
9434
|
+
} = y[0].contentRect;
|
|
9443
9435
|
d.value = {
|
|
9444
9436
|
width: `${g - 1}px`,
|
|
9445
|
-
height: `${
|
|
9437
|
+
height: `${m}px`
|
|
9446
9438
|
};
|
|
9447
9439
|
});
|
|
9448
9440
|
function h() {
|
|
9449
9441
|
return o == null ? void 0 : o.getValue();
|
|
9450
9442
|
}
|
|
9451
|
-
function s(
|
|
9452
|
-
const g = o.getSelection(),
|
|
9443
|
+
function s(y) {
|
|
9444
|
+
const g = o.getSelection(), m = new a.value.Range(g.startLineNumber, g.startColumn, g.endLineNumber, g.endColumn);
|
|
9453
9445
|
o.executeEdits("insert-text", [{
|
|
9454
|
-
range:
|
|
9455
|
-
text:
|
|
9446
|
+
range: m,
|
|
9447
|
+
text: y,
|
|
9456
9448
|
forceMoveMarkers: !0
|
|
9457
9449
|
// 移动光标到插入后的位置
|
|
9458
9450
|
}]);
|
|
@@ -9462,8 +9454,8 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9462
9454
|
}), On(() => {
|
|
9463
9455
|
o && o.dispose(), c && n.value && (c.unobserve(n.value), c.disconnect());
|
|
9464
9456
|
});
|
|
9465
|
-
function l(
|
|
9466
|
-
o.setValue(
|
|
9457
|
+
function l(y) {
|
|
9458
|
+
o.setValue(y);
|
|
9467
9459
|
}
|
|
9468
9460
|
function f() {
|
|
9469
9461
|
l("");
|
|
@@ -9500,8 +9492,8 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9500
9492
|
let s = 0;
|
|
9501
9493
|
return document.querySelectorAll(".entity-variable .fv-grid-hierarchy-cell").forEach((f) => {
|
|
9502
9494
|
f.style.width = "auto";
|
|
9503
|
-
const
|
|
9504
|
-
|
|
9495
|
+
const y = f.scrollWidth;
|
|
9496
|
+
y > s && (s = y);
|
|
9505
9497
|
}), s;
|
|
9506
9498
|
}
|
|
9507
9499
|
Z(() => e.data, (s) => {
|
|
@@ -9570,13 +9562,13 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9570
9562
|
const n = C("dataEntity"), a = C(e.dataSource), {
|
|
9571
9563
|
entities: o,
|
|
9572
9564
|
variables: i
|
|
9573
|
-
} = a.value, r = C(""), u = C((o == null ? void 0 : o.fields) || []), d = (
|
|
9574
|
-
|
|
9575
|
-
$event:
|
|
9576
|
-
item:
|
|
9565
|
+
} = a.value, r = C(""), u = C((o == null ? void 0 : o.fields) || []), d = (x, E) => {
|
|
9566
|
+
x.stopPropagation(), t.emit("fieldClick", {
|
|
9567
|
+
$event: x,
|
|
9568
|
+
item: E.raw
|
|
9577
9569
|
});
|
|
9578
|
-
}, c = (
|
|
9579
|
-
const P = `${
|
|
9570
|
+
}, c = (x, E) => {
|
|
9571
|
+
const P = `${E.raw.name} [${E.raw.bindingPath}]`;
|
|
9580
9572
|
return v("div", {
|
|
9581
9573
|
class: "d-flex align-items-center w-100 entity-field",
|
|
9582
9574
|
style: "justify-content: space-between;"
|
|
@@ -9587,55 +9579,55 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9587
9579
|
title: "插入属性名称",
|
|
9588
9580
|
class: "btn btn-link d-none",
|
|
9589
9581
|
style: "width:24px;height:24px",
|
|
9590
|
-
onClick: (
|
|
9591
|
-
onDblclick: (
|
|
9582
|
+
onClick: (W) => d(W, E),
|
|
9583
|
+
onDblclick: (W) => W.stopPropagation()
|
|
9592
9584
|
}, [v("span", {
|
|
9593
9585
|
class: "f-icon f-icon-new-edit",
|
|
9594
9586
|
style: "font-size: 12px;"
|
|
9595
9587
|
}, null)])]);
|
|
9596
|
-
}, h = C({}), s = C(), l = N(() => (
|
|
9588
|
+
}, h = C({}), s = C(), l = N(() => (x) => ({
|
|
9597
9589
|
"list-group d-flex flex-column": !0,
|
|
9598
|
-
"f-utils-fill": n.value ===
|
|
9599
|
-
expand: n.value ===
|
|
9600
|
-
collapse: n.value !==
|
|
9601
|
-
})), f = N(() => (
|
|
9602
|
-
"f-icon f-icon-arrow-chevron-up": n.value !==
|
|
9603
|
-
"f-icon f-icon-arrow-chevron-down": n.value ===
|
|
9604
|
-
})),
|
|
9590
|
+
"f-utils-fill": n.value === x,
|
|
9591
|
+
expand: n.value === x,
|
|
9592
|
+
collapse: n.value !== x
|
|
9593
|
+
})), f = N(() => (x) => ({
|
|
9594
|
+
"f-icon f-icon-arrow-chevron-up": n.value !== x,
|
|
9595
|
+
"f-icon f-icon-arrow-chevron-down": n.value === x
|
|
9596
|
+
})), y = N(() => (x) => ({
|
|
9605
9597
|
"functions-type d-flex flex-column": !0,
|
|
9606
|
-
open: h.value[
|
|
9607
|
-
closed: !h.value[
|
|
9608
|
-
})), g = N(() => (
|
|
9609
|
-
"f-icon f-icon-arrow-chevron-down": h.value[
|
|
9610
|
-
"f-icon f-icon-arrow-chevron-right": !h.value[
|
|
9611
|
-
})),
|
|
9612
|
-
var
|
|
9598
|
+
open: h.value[x],
|
|
9599
|
+
closed: !h.value[x]
|
|
9600
|
+
})), g = N(() => (x) => ({
|
|
9601
|
+
"f-icon f-icon-arrow-chevron-down": h.value[x],
|
|
9602
|
+
"f-icon f-icon-arrow-chevron-right": !h.value[x]
|
|
9603
|
+
})), m = N(() => (x) => {
|
|
9604
|
+
var E;
|
|
9613
9605
|
return {
|
|
9614
9606
|
"functions-item pl-2": !0,
|
|
9615
|
-
selected: ((
|
|
9607
|
+
selected: ((E = s.value) == null ? void 0 : E.key) === x.key
|
|
9616
9608
|
};
|
|
9617
9609
|
});
|
|
9618
|
-
function w(
|
|
9619
|
-
|
|
9610
|
+
function w(x, E) {
|
|
9611
|
+
x.stopPropagation(), h.value = h.value || {}, h.value[E] = !h.value[E];
|
|
9620
9612
|
}
|
|
9621
|
-
function k(
|
|
9622
|
-
|
|
9613
|
+
function k(x, E) {
|
|
9614
|
+
x.stopPropagation(), s.value = E;
|
|
9623
9615
|
}
|
|
9624
|
-
function
|
|
9616
|
+
function O(x, E) {
|
|
9625
9617
|
t.emit("variableItemDblClick", {
|
|
9626
|
-
$event:
|
|
9627
|
-
item:
|
|
9618
|
+
$event: x,
|
|
9619
|
+
item: E
|
|
9628
9620
|
});
|
|
9629
9621
|
}
|
|
9630
9622
|
function B({
|
|
9631
|
-
$event:
|
|
9632
|
-
node:
|
|
9623
|
+
$event: x,
|
|
9624
|
+
node: E
|
|
9633
9625
|
}) {
|
|
9634
9626
|
t.emit("entityItemDblClick", {
|
|
9635
|
-
$event:
|
|
9636
|
-
item:
|
|
9627
|
+
$event: x,
|
|
9628
|
+
item: E.data,
|
|
9637
9629
|
entityCode: o == null ? void 0 : o.entityCode,
|
|
9638
|
-
parentCodes:
|
|
9630
|
+
parentCodes: E.data.parents.join(".")
|
|
9639
9631
|
});
|
|
9640
9632
|
}
|
|
9641
9633
|
function b() {
|
|
@@ -9645,68 +9637,68 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9645
9637
|
onDblclickNode: B
|
|
9646
9638
|
}, null);
|
|
9647
9639
|
}
|
|
9648
|
-
function
|
|
9640
|
+
function p() {
|
|
9649
9641
|
if (i)
|
|
9650
9642
|
return v("ul", {
|
|
9651
9643
|
class: "w-100 functions-list"
|
|
9652
|
-
}, [Object.keys(i).map((
|
|
9653
|
-
"variable-type":
|
|
9654
|
-
class:
|
|
9644
|
+
}, [Object.keys(i).map((x) => i[x].visible && v("li", {
|
|
9645
|
+
"variable-type": x,
|
|
9646
|
+
class: y.value(x)
|
|
9655
9647
|
}, [v("div", {
|
|
9656
9648
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9657
|
-
onClick: (
|
|
9658
|
-
w(
|
|
9649
|
+
onClick: (E) => {
|
|
9650
|
+
w(E, x);
|
|
9659
9651
|
}
|
|
9660
9652
|
}, [v("span", {
|
|
9661
|
-
class: g.value(
|
|
9662
|
-
}, null), i[
|
|
9653
|
+
class: g.value(x)
|
|
9654
|
+
}, null), i[x].name]), v("ul", {
|
|
9663
9655
|
class: "pl-3 mr-2"
|
|
9664
|
-
}, [i[
|
|
9665
|
-
class:
|
|
9666
|
-
onClick: (P) => k(P,
|
|
9667
|
-
onDblclick: (P) =>
|
|
9668
|
-
}, [
|
|
9669
|
-
}
|
|
9670
|
-
function x
|
|
9671
|
-
if (
|
|
9656
|
+
}, [i[x].items.map((E) => v("li", {
|
|
9657
|
+
class: m.value(E),
|
|
9658
|
+
onClick: (P) => k(P, E),
|
|
9659
|
+
onDblclick: (P) => O(P, E)
|
|
9660
|
+
}, [E.name]))])]))]);
|
|
9661
|
+
}
|
|
9662
|
+
function F(x, E) {
|
|
9663
|
+
if (x.stopPropagation(), n.value === E) {
|
|
9672
9664
|
n.value = "";
|
|
9673
9665
|
return;
|
|
9674
9666
|
}
|
|
9675
|
-
n.value =
|
|
9667
|
+
n.value = E;
|
|
9676
9668
|
}
|
|
9677
9669
|
be(() => {
|
|
9678
9670
|
if (i) {
|
|
9679
|
-
const
|
|
9680
|
-
h.value[
|
|
9671
|
+
const x = Object.keys(i)[0];
|
|
9672
|
+
h.value[x] = !0;
|
|
9681
9673
|
}
|
|
9682
9674
|
});
|
|
9683
|
-
function
|
|
9684
|
-
const P =
|
|
9685
|
-
return
|
|
9675
|
+
function T(x, E) {
|
|
9676
|
+
const P = x.children.map((J) => T(J, E)).filter((J) => J !== null);
|
|
9677
|
+
return x.data.name.toLowerCase().includes(E.toLowerCase()) || x.data.bindingPath.toLowerCase().includes(E.toLowerCase()) ? {
|
|
9686
9678
|
data: {
|
|
9687
|
-
...
|
|
9679
|
+
...x.data
|
|
9688
9680
|
},
|
|
9689
|
-
children:
|
|
9681
|
+
children: x.children
|
|
9690
9682
|
// 注意这里保留原始子节点
|
|
9691
9683
|
} : P.length > 0 ? {
|
|
9692
9684
|
data: {
|
|
9693
|
-
...
|
|
9685
|
+
...x.data
|
|
9694
9686
|
},
|
|
9695
9687
|
children: P
|
|
9696
9688
|
} : null;
|
|
9697
9689
|
}
|
|
9698
|
-
function I(
|
|
9699
|
-
return
|
|
9690
|
+
function I(x, E) {
|
|
9691
|
+
return x.map((P) => T(P, E)).filter((P) => P !== null);
|
|
9700
9692
|
}
|
|
9701
9693
|
function R() {
|
|
9702
|
-
const
|
|
9703
|
-
u.value =
|
|
9694
|
+
const x = I((o == null ? void 0 : o.fields) || [], r.value);
|
|
9695
|
+
u.value = x;
|
|
9704
9696
|
}
|
|
9705
9697
|
function M() {
|
|
9706
9698
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9707
9699
|
}
|
|
9708
|
-
function
|
|
9709
|
-
|
|
9700
|
+
function S(x) {
|
|
9701
|
+
x.key === "Enter" && R();
|
|
9710
9702
|
}
|
|
9711
9703
|
return () => v("div", {
|
|
9712
9704
|
class: "f-utils-fill entity-variable"
|
|
@@ -9716,7 +9708,7 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9716
9708
|
class: l.value("dataEntity")
|
|
9717
9709
|
}, [v("div", {
|
|
9718
9710
|
class: "title px-2 d-flex align-items-center",
|
|
9719
|
-
onClick: (
|
|
9711
|
+
onClick: (x) => F(x, "dataEntity")
|
|
9720
9712
|
}, [le("数据实体"), v("span", {
|
|
9721
9713
|
class: f.value("dataEntity")
|
|
9722
9714
|
}, null)]), v("div", {
|
|
@@ -9730,20 +9722,20 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9730
9722
|
popupOnClick: !0,
|
|
9731
9723
|
placeholder: "请输入名称或编号,按回车查询",
|
|
9732
9724
|
modelValue: r.value,
|
|
9733
|
-
"onUpdate:modelValue": (
|
|
9725
|
+
"onUpdate:modelValue": (x) => r.value = x,
|
|
9734
9726
|
onClickButton: R,
|
|
9735
9727
|
onClear: M,
|
|
9736
|
-
onKeyup:
|
|
9728
|
+
onKeyup: S
|
|
9737
9729
|
}, null)]), b()])]), v("li", {
|
|
9738
9730
|
class: l.value("variables")
|
|
9739
9731
|
}, [v("div", {
|
|
9740
9732
|
class: "title px-2 d-flex align-items-center",
|
|
9741
|
-
onClick: (
|
|
9733
|
+
onClick: (x) => F(x, "variables")
|
|
9742
9734
|
}, [le("变量"), v("span", {
|
|
9743
9735
|
class: f.value("variables")
|
|
9744
9736
|
}, null)]), v("div", {
|
|
9745
9737
|
class: "data-area f-utils-fill"
|
|
9746
|
-
}, [
|
|
9738
|
+
}, [p()])])])]);
|
|
9747
9739
|
}
|
|
9748
9740
|
}), au = {
|
|
9749
9741
|
functionItems: {
|
|
@@ -9774,24 +9766,24 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9774
9766
|
"f-icon f-icon-arrow-chevron-down": i.value[b],
|
|
9775
9767
|
"f-icon f-icon-arrow-chevron-right": !i.value[b]
|
|
9776
9768
|
}), s = N(() => (b) => {
|
|
9777
|
-
var
|
|
9769
|
+
var p;
|
|
9778
9770
|
return {
|
|
9779
9771
|
"functions-item pl-2": !0,
|
|
9780
|
-
selected: ((
|
|
9772
|
+
selected: ((p = o.value) == null ? void 0 : p.key) === b.key
|
|
9781
9773
|
};
|
|
9782
9774
|
}), l = C(Object.keys(d.value));
|
|
9783
9775
|
Z(() => e.functionItems, (b) => {
|
|
9784
|
-
d.value = b, l.value = Object.keys(d.value), r.value && (i.value = l.value.reduce((
|
|
9776
|
+
d.value = b, l.value = Object.keys(d.value), r.value && (i.value = l.value.reduce((p, F) => (p[F] = !0, p), {}));
|
|
9785
9777
|
});
|
|
9786
9778
|
function f(b) {
|
|
9787
9779
|
b || (b = a.value);
|
|
9788
|
-
const
|
|
9789
|
-
|
|
9780
|
+
const p = n.value.querySelector('li[function-type="' + b + '"] > div.functions-type-name');
|
|
9781
|
+
p && (n.value.querySelector(".expression-left").scrollTop = 0, p.scrollIntoViewIfNeeded ? p.scrollIntoViewIfNeeded(!0) : p.scrollIntoView({
|
|
9790
9782
|
behavior: "smooth",
|
|
9791
9783
|
block: "nearest"
|
|
9792
9784
|
}));
|
|
9793
9785
|
}
|
|
9794
|
-
function
|
|
9786
|
+
function y(b) {
|
|
9795
9787
|
if (e.singleExpand) {
|
|
9796
9788
|
if (a.value === b) {
|
|
9797
9789
|
a.value = "";
|
|
@@ -9801,21 +9793,21 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9801
9793
|
} else
|
|
9802
9794
|
i.value = i.value || {}, i.value[b] = !i.value[b];
|
|
9803
9795
|
}
|
|
9804
|
-
function g(b,
|
|
9805
|
-
b.stopPropagation(), o.value =
|
|
9796
|
+
function g(b, p) {
|
|
9797
|
+
b.stopPropagation(), o.value = p;
|
|
9806
9798
|
}
|
|
9807
|
-
function
|
|
9799
|
+
function m(b, p) {
|
|
9808
9800
|
b.stopPropagation(), t.emit("insertFunction", {
|
|
9809
9801
|
$event: b,
|
|
9810
|
-
item:
|
|
9802
|
+
item: p
|
|
9811
9803
|
});
|
|
9812
9804
|
}
|
|
9813
|
-
Z(() => a.value, (b,
|
|
9805
|
+
Z(() => a.value, (b, p, F) => {
|
|
9814
9806
|
if (b) {
|
|
9815
|
-
const
|
|
9807
|
+
const T = setTimeout(() => {
|
|
9816
9808
|
f(b);
|
|
9817
9809
|
}, 200);
|
|
9818
|
-
|
|
9810
|
+
F(() => clearTimeout(T));
|
|
9819
9811
|
}
|
|
9820
9812
|
});
|
|
9821
9813
|
function w() {
|
|
@@ -9824,7 +9816,7 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9824
9816
|
function k() {
|
|
9825
9817
|
t.emit("search", "");
|
|
9826
9818
|
}
|
|
9827
|
-
function
|
|
9819
|
+
function O(b) {
|
|
9828
9820
|
b.key === "Enter" && w();
|
|
9829
9821
|
}
|
|
9830
9822
|
function B() {
|
|
@@ -9834,25 +9826,25 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9834
9826
|
}, [v("div", {
|
|
9835
9827
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9836
9828
|
onClick: () => {
|
|
9837
|
-
|
|
9829
|
+
y(b);
|
|
9838
9830
|
}
|
|
9839
9831
|
}, [v("span", {
|
|
9840
9832
|
class: h.value(b)
|
|
9841
9833
|
}, null), d.value[b].name]), v("ul", {
|
|
9842
9834
|
class: "pl-3 mr-2"
|
|
9843
|
-
}, [d.value[b].items.map((
|
|
9844
|
-
if (
|
|
9835
|
+
}, [d.value[b].items.map((p) => {
|
|
9836
|
+
if (p.visible !== !1)
|
|
9845
9837
|
return v("li", {
|
|
9846
|
-
class: s.value(
|
|
9847
|
-
onClick: (
|
|
9848
|
-
onDblclick: (
|
|
9849
|
-
}, [b === "advanced" ?
|
|
9838
|
+
class: s.value(p),
|
|
9839
|
+
onClick: (F) => g(F, p),
|
|
9840
|
+
onDblclick: (F) => m(F, p)
|
|
9841
|
+
}, [b === "advanced" ? p.key : p.name]);
|
|
9850
9842
|
})])])) : v("li", {
|
|
9851
9843
|
class: "empty-message"
|
|
9852
9844
|
}, [u]);
|
|
9853
9845
|
}
|
|
9854
9846
|
return be(() => {
|
|
9855
|
-
a.value = l.value[0], i.value = l.value.reduce((b,
|
|
9847
|
+
a.value = l.value[0], i.value = l.value.reduce((b, p) => (b[p] = a.value === p, b), {});
|
|
9856
9848
|
}), () => v("div", {
|
|
9857
9849
|
class: "d-flex f-utils-fill flex-column",
|
|
9858
9850
|
ref: n
|
|
@@ -9876,7 +9868,7 @@ const Zs = /* @__PURE__ */ oe({
|
|
|
9876
9868
|
"onUpdate:modelValue": (b) => r.value = b,
|
|
9877
9869
|
onClickButton: w,
|
|
9878
9870
|
onClear: k,
|
|
9879
|
-
onKeyup:
|
|
9871
|
+
onKeyup: O
|
|
9880
9872
|
}, null)]
|
|
9881
9873
|
}), v(Ie, {
|
|
9882
9874
|
position: "center",
|
|
@@ -9957,25 +9949,25 @@ function iu(e) {
|
|
|
9957
9949
|
function lu(e, t, n) {
|
|
9958
9950
|
const a = C(e.disabledFunctions), { getTokens: o, getVariableMaps: i, runWithEsprima: r } = iu(e);
|
|
9959
9951
|
function u() {
|
|
9960
|
-
const
|
|
9952
|
+
const m = Re(t);
|
|
9961
9953
|
if (a.value) {
|
|
9962
|
-
let w = Object.keys(
|
|
9963
|
-
const { types: k, functions:
|
|
9964
|
-
return k && k.length && (w = w.filter((B) => k.includes(B))),
|
|
9954
|
+
let w = Object.keys(m);
|
|
9955
|
+
const { types: k, functions: O } = a.value;
|
|
9956
|
+
return k && k.length && (w = w.filter((B) => k.includes(B))), O && O.length && Object.values(m).forEach((B) => {
|
|
9965
9957
|
B.items.forEach((b) => {
|
|
9966
|
-
|
|
9958
|
+
O.includes(b.name) && (b.visible = !1);
|
|
9967
9959
|
});
|
|
9968
|
-
}),
|
|
9960
|
+
}), m;
|
|
9969
9961
|
}
|
|
9970
|
-
return
|
|
9962
|
+
return m;
|
|
9971
9963
|
}
|
|
9972
|
-
function d(
|
|
9964
|
+
function d(m) {
|
|
9973
9965
|
const w = t.analytical.items.find((k) => k.key === "GetContextParameter");
|
|
9974
9966
|
if (w)
|
|
9975
|
-
return w.name + '("' +
|
|
9967
|
+
return w.name + '("' + m.name + '")';
|
|
9976
9968
|
}
|
|
9977
|
-
function c(
|
|
9978
|
-
if (!
|
|
9969
|
+
function c(m) {
|
|
9970
|
+
if (!m || m.length === 0)
|
|
9979
9971
|
return "";
|
|
9980
9972
|
const w = (k) => {
|
|
9981
9973
|
switch (k.type) {
|
|
@@ -9987,82 +9979,82 @@ function lu(e, t, n) {
|
|
|
9987
9979
|
return k.name;
|
|
9988
9980
|
}
|
|
9989
9981
|
};
|
|
9990
|
-
return
|
|
9982
|
+
return m.map(w).join(",");
|
|
9991
9983
|
}
|
|
9992
|
-
function h(
|
|
9993
|
-
let w =
|
|
9994
|
-
return
|
|
9984
|
+
function h(m) {
|
|
9985
|
+
let w = m.name;
|
|
9986
|
+
return m.type.toLowerCase() !== "advanced" && (w += "(" + c(m.params) + ")"), w;
|
|
9995
9987
|
}
|
|
9996
|
-
function s(
|
|
9997
|
-
return
|
|
9988
|
+
function s(m) {
|
|
9989
|
+
return m == null ? void 0 : m.bindingPath;
|
|
9998
9990
|
}
|
|
9999
|
-
function l(
|
|
10000
|
-
if (!
|
|
9991
|
+
function l(m) {
|
|
9992
|
+
if (!m)
|
|
10001
9993
|
return "";
|
|
10002
|
-
const w = o(
|
|
9994
|
+
const w = o(m), k = i(n, "name2key");
|
|
10003
9995
|
for (let B = 0; B < w.length; B++) {
|
|
10004
9996
|
let b = 0;
|
|
10005
9997
|
if (b === 0 && k && w[B].length > 2 && w[B][0] === '"' && w[B][w[B].length - 1] === '"') {
|
|
10006
|
-
const
|
|
10007
|
-
if (k.has(
|
|
10008
|
-
const
|
|
10009
|
-
|
|
9998
|
+
const p = w[B].substring(1, w[B].length - 1);
|
|
9999
|
+
if (k.has(p) && w[B - 1] === "(" && w[B + 1] === ")") {
|
|
10000
|
+
const F = k.get(p);
|
|
10001
|
+
F !== void 0 && (w[B] = `"${F}"`, b = 1);
|
|
10010
10002
|
}
|
|
10011
10003
|
}
|
|
10012
10004
|
if (b === 0) {
|
|
10013
|
-
const
|
|
10014
|
-
for (let
|
|
10015
|
-
if (w[B] ===
|
|
10016
|
-
w[B] =
|
|
10005
|
+
const p = Object.values(t).map((F) => F.items).flat();
|
|
10006
|
+
for (let F = 0; F < p.length; F++)
|
|
10007
|
+
if (w[B] === p[F].name) {
|
|
10008
|
+
w[B] = p[F].keyFront + "." + p[F].key, b = 1;
|
|
10017
10009
|
break;
|
|
10018
10010
|
}
|
|
10019
10011
|
}
|
|
10020
10012
|
}
|
|
10021
|
-
const
|
|
10022
|
-
return JSON.stringify({ expr:
|
|
10013
|
+
const O = w.join("");
|
|
10014
|
+
return JSON.stringify({ expr: O, sexpr: "" });
|
|
10023
10015
|
}
|
|
10024
|
-
function f(
|
|
10016
|
+
function f(m, w, k, O) {
|
|
10025
10017
|
let B = "";
|
|
10026
10018
|
const b = [];
|
|
10027
|
-
for (const
|
|
10028
|
-
|
|
10029
|
-
for (let
|
|
10030
|
-
if (p
|
|
10031
|
-
B = B + p
|
|
10019
|
+
for (const p of w)
|
|
10020
|
+
p.keyFront === "Math" && b.push(p.key);
|
|
10021
|
+
for (let p = 0; p < m.length; p++) {
|
|
10022
|
+
if (m[p] === "Math" && m[p + 1] === "." && !b.includes(m[p + 2])) {
|
|
10023
|
+
B = B + m[p] + m[p + 1] + m[p + 2], p = p + 2;
|
|
10032
10024
|
continue;
|
|
10033
10025
|
}
|
|
10034
|
-
if (
|
|
10035
|
-
|
|
10026
|
+
if (O.includes(m[p]) && m[p + 1] === ".") {
|
|
10027
|
+
p = p + 1;
|
|
10036
10028
|
continue;
|
|
10037
10029
|
} else {
|
|
10038
|
-
let
|
|
10039
|
-
if (
|
|
10040
|
-
const
|
|
10041
|
-
if (k.has(
|
|
10042
|
-
const I = k.get(
|
|
10043
|
-
I !== void 0 && (B = B + `"${I}"`,
|
|
10030
|
+
let F = 0;
|
|
10031
|
+
if (F === 0 && m[p].length > 2 && m[p][0] === '"' && m[p][m[p].length - 1] === '"') {
|
|
10032
|
+
const T = m[p].substring(1, m[p].length - 1);
|
|
10033
|
+
if (k.has(T) && m[p - 1] === "(" && m[p + 1] === ")") {
|
|
10034
|
+
const I = k.get(T);
|
|
10035
|
+
I !== void 0 && (B = B + `"${I}"`, F = 1);
|
|
10044
10036
|
}
|
|
10045
10037
|
}
|
|
10046
|
-
if (
|
|
10047
|
-
for (let
|
|
10048
|
-
if (p
|
|
10049
|
-
B = B + w[
|
|
10038
|
+
if (F === 0) {
|
|
10039
|
+
for (let T = 0; T < w.length; T++)
|
|
10040
|
+
if (m[p] === w[T].key && w[T].type.toLowerCase() !== "advanced") {
|
|
10041
|
+
B = B + w[T].name, F = 1;
|
|
10050
10042
|
break;
|
|
10051
10043
|
}
|
|
10052
10044
|
}
|
|
10053
|
-
|
|
10045
|
+
F === 0 && (B = B + m[p]);
|
|
10054
10046
|
}
|
|
10055
10047
|
}
|
|
10056
10048
|
return B;
|
|
10057
10049
|
}
|
|
10058
|
-
function m
|
|
10059
|
-
if (!
|
|
10050
|
+
function y(m) {
|
|
10051
|
+
if (!m)
|
|
10060
10052
|
return "";
|
|
10061
|
-
const w = o(
|
|
10062
|
-
return f(w,
|
|
10053
|
+
const w = o(m), k = i(n, "key2name"), O = Object.values(t).map((b) => b.items).flat();
|
|
10054
|
+
return f(w, O, k, ["DefaultFunction", "Math", "DefaultExtendFunctionProxy"]);
|
|
10063
10055
|
}
|
|
10064
|
-
async function g(
|
|
10065
|
-
return await r(() => m
|
|
10056
|
+
async function g(m) {
|
|
10057
|
+
return await r(() => y(m));
|
|
10066
10058
|
}
|
|
10067
10059
|
return {
|
|
10068
10060
|
resetFunctionItems: u,
|
|
@@ -10118,86 +10110,86 @@ const su = /* @__PURE__ */ oe({
|
|
|
10118
10110
|
getFieldExpression: s,
|
|
10119
10111
|
getExpressionCodeValue: l,
|
|
10120
10112
|
getExpressionTextValue: f
|
|
10121
|
-
} = lu(e, ds, e.variables),
|
|
10113
|
+
} = lu(e, ds, e.variables), y = C(h()), {
|
|
10122
10114
|
onFunctionSearch: g
|
|
10123
|
-
} = ru(e,
|
|
10124
|
-
function
|
|
10125
|
-
$event:
|
|
10126
|
-
item:
|
|
10115
|
+
} = ru(e, y);
|
|
10116
|
+
function m({
|
|
10117
|
+
$event: S,
|
|
10118
|
+
item: x
|
|
10127
10119
|
}) {
|
|
10128
10120
|
var P;
|
|
10129
|
-
const
|
|
10130
|
-
(P = r.value) == null || P.insertText(
|
|
10121
|
+
const E = d(x);
|
|
10122
|
+
(P = r.value) == null || P.insertText(E);
|
|
10131
10123
|
}
|
|
10132
10124
|
function w({
|
|
10133
|
-
$event:
|
|
10134
|
-
item:
|
|
10125
|
+
$event: S,
|
|
10126
|
+
item: x
|
|
10135
10127
|
}) {
|
|
10136
10128
|
var P;
|
|
10137
|
-
const
|
|
10138
|
-
(P = r.value) == null || P.insertText(
|
|
10129
|
+
const E = c(x);
|
|
10130
|
+
(P = r.value) == null || P.insertText(E);
|
|
10139
10131
|
}
|
|
10140
|
-
function k(
|
|
10141
|
-
return
|
|
10132
|
+
function k(S) {
|
|
10133
|
+
return S.reduce((x, E) => {
|
|
10142
10134
|
var P;
|
|
10143
|
-
return
|
|
10135
|
+
return x.push(E.data), (P = E.children) != null && P.length && x.push(...k(E.children)), x;
|
|
10144
10136
|
}, []);
|
|
10145
10137
|
}
|
|
10146
|
-
const
|
|
10147
|
-
function B(
|
|
10148
|
-
return
|
|
10149
|
-
const
|
|
10150
|
-
return
|
|
10138
|
+
const O = k(((M = e == null ? void 0 : e.entities) == null ? void 0 : M.fields) || []);
|
|
10139
|
+
function B(S) {
|
|
10140
|
+
return S.map((x) => {
|
|
10141
|
+
const E = O.find((P) => P.bindingPath === x);
|
|
10142
|
+
return E && E.type === "entity" ? `${x}[0]` : x;
|
|
10151
10143
|
}).join(".");
|
|
10152
10144
|
}
|
|
10153
10145
|
function b({
|
|
10154
|
-
$event:
|
|
10155
|
-
item:
|
|
10156
|
-
parentCodes:
|
|
10146
|
+
$event: S,
|
|
10147
|
+
item: x,
|
|
10148
|
+
parentCodes: E,
|
|
10157
10149
|
entityCode: P
|
|
10158
10150
|
}) {
|
|
10159
10151
|
var $;
|
|
10160
|
-
const
|
|
10161
|
-
|
|
10162
|
-
let J = `${
|
|
10163
|
-
P ===
|
|
10164
|
-
}
|
|
10165
|
-
function
|
|
10166
|
-
$event:
|
|
10167
|
-
item:
|
|
10152
|
+
const W = s(x);
|
|
10153
|
+
E = e.isServerSide ? B(x.parents) : E;
|
|
10154
|
+
let J = `${E}.${W}`;
|
|
10155
|
+
P === W && (J = W), ($ = r.value) == null || $.insertText(`${J}`);
|
|
10156
|
+
}
|
|
10157
|
+
function p({
|
|
10158
|
+
$event: S,
|
|
10159
|
+
item: x
|
|
10168
10160
|
}) {
|
|
10169
10161
|
var P;
|
|
10170
|
-
const
|
|
10171
|
-
(P = r.value) == null || P.insertText(`${
|
|
10162
|
+
const E = s(x);
|
|
10163
|
+
(P = r.value) == null || P.insertText(`${E}`);
|
|
10172
10164
|
}
|
|
10173
|
-
function
|
|
10174
|
-
var
|
|
10175
|
-
return (
|
|
10165
|
+
function F() {
|
|
10166
|
+
var S;
|
|
10167
|
+
return (S = r.value) == null ? void 0 : S.getContent();
|
|
10176
10168
|
}
|
|
10177
|
-
function
|
|
10178
|
-
var
|
|
10179
|
-
const
|
|
10169
|
+
function T() {
|
|
10170
|
+
var x;
|
|
10171
|
+
const S = (x = r.value) == null ? void 0 : x.getContent();
|
|
10180
10172
|
return {
|
|
10181
|
-
value: l(
|
|
10173
|
+
value: l(S),
|
|
10182
10174
|
message: a.value,
|
|
10183
10175
|
messageType: o.value
|
|
10184
10176
|
};
|
|
10185
10177
|
}
|
|
10186
10178
|
const I = C("");
|
|
10187
10179
|
function R() {
|
|
10188
|
-
var
|
|
10189
|
-
(
|
|
10180
|
+
var S;
|
|
10181
|
+
(S = r.value) == null || S.clearText();
|
|
10190
10182
|
}
|
|
10191
10183
|
return be(async () => {
|
|
10192
10184
|
if (i.value) {
|
|
10193
|
-
const
|
|
10194
|
-
expr:
|
|
10195
|
-
} =
|
|
10196
|
-
|
|
10185
|
+
const S = JSON.parse(i.value), {
|
|
10186
|
+
expr: x
|
|
10187
|
+
} = S;
|
|
10188
|
+
x && (I.value = await f(x) || "");
|
|
10197
10189
|
}
|
|
10198
10190
|
}), t.expose({
|
|
10199
|
-
getExpressionContext:
|
|
10200
|
-
getExpressionValue:
|
|
10191
|
+
getExpressionContext: F,
|
|
10192
|
+
getExpressionValue: T,
|
|
10201
10193
|
resetExpression: R
|
|
10202
10194
|
}), () => v("div", {
|
|
10203
10195
|
ref: n,
|
|
@@ -10209,9 +10201,9 @@ const su = /* @__PURE__ */ oe({
|
|
|
10209
10201
|
minWidth: 130
|
|
10210
10202
|
}, {
|
|
10211
10203
|
default: () => [v(ou, {
|
|
10212
|
-
functionItems:
|
|
10204
|
+
functionItems: y.value,
|
|
10213
10205
|
singleExpand: e.singleExpand,
|
|
10214
|
-
onInsertFunction:
|
|
10206
|
+
onInsertFunction: m,
|
|
10215
10207
|
onSearch: g
|
|
10216
10208
|
}, null)]
|
|
10217
10209
|
}), v(Ie, {
|
|
@@ -10223,7 +10215,7 @@ const su = /* @__PURE__ */ oe({
|
|
|
10223
10215
|
class: "f-utils-fill my-2 ml-1"
|
|
10224
10216
|
}, [v(Zs, {
|
|
10225
10217
|
modelValue: I.value,
|
|
10226
|
-
"onUpdate:modelValue": (
|
|
10218
|
+
"onUpdate:modelValue": (S) => I.value = S,
|
|
10227
10219
|
ref: r
|
|
10228
10220
|
}, null)]), e.showMessage && v("div", {
|
|
10229
10221
|
class: "d-flex flex-column p-1",
|
|
@@ -10234,7 +10226,7 @@ const su = /* @__PURE__ */ oe({
|
|
|
10234
10226
|
style: "width: 75px",
|
|
10235
10227
|
data: u,
|
|
10236
10228
|
modelValue: o.value,
|
|
10237
|
-
"onUpdate:modelValue": (
|
|
10229
|
+
"onUpdate:modelValue": (S) => o.value = S,
|
|
10238
10230
|
textField: "label",
|
|
10239
10231
|
valueField: "value",
|
|
10240
10232
|
idField: "value",
|
|
@@ -10242,7 +10234,7 @@ const su = /* @__PURE__ */ oe({
|
|
|
10242
10234
|
minPanelWidth: 130,
|
|
10243
10235
|
placement: "auto"
|
|
10244
10236
|
}, null)]), Mn(v("textarea", {
|
|
10245
|
-
"onUpdate:modelValue": (
|
|
10237
|
+
"onUpdate:modelValue": (S) => a.value = S,
|
|
10246
10238
|
class: "form-control",
|
|
10247
10239
|
style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
|
|
10248
10240
|
}, null), [[Ra, a.value]])])]
|
|
@@ -10258,7 +10250,7 @@ const su = /* @__PURE__ */ oe({
|
|
|
10258
10250
|
},
|
|
10259
10251
|
onVariableItemDblClick: w,
|
|
10260
10252
|
onEntityItemDblClick: b,
|
|
10261
|
-
onFieldClick:
|
|
10253
|
+
onFieldClick: p
|
|
10262
10254
|
}, null)]
|
|
10263
10255
|
})]
|
|
10264
10256
|
})]);
|
|
@@ -10478,10 +10470,10 @@ const hu = /* @__PURE__ */ oe({
|
|
|
10478
10470
|
async function s() {
|
|
10479
10471
|
const {
|
|
10480
10472
|
value: g,
|
|
10481
|
-
message:
|
|
10473
|
+
message: m,
|
|
10482
10474
|
messageType: w
|
|
10483
10475
|
} = d.value.getExpressionValue();
|
|
10484
|
-
if (c.value =
|
|
10476
|
+
if (c.value = m, h.value = w, e.beforeSubmit && typeof e.beforeSubmit == "function") {
|
|
10485
10477
|
const k = await e.beforeSubmit({
|
|
10486
10478
|
notifyService: n,
|
|
10487
10479
|
expressionValue: g
|
|
@@ -10490,10 +10482,10 @@ const hu = /* @__PURE__ */ oe({
|
|
|
10490
10482
|
return !1;
|
|
10491
10483
|
if (typeof k == "object") {
|
|
10492
10484
|
const {
|
|
10493
|
-
canClose:
|
|
10485
|
+
canClose: O,
|
|
10494
10486
|
message: B
|
|
10495
10487
|
} = k;
|
|
10496
|
-
if (!
|
|
10488
|
+
if (!O)
|
|
10497
10489
|
return B && (n == null || n.error({
|
|
10498
10490
|
message: B
|
|
10499
10491
|
})), !1;
|
|
@@ -10502,11 +10494,11 @@ const hu = /* @__PURE__ */ oe({
|
|
|
10502
10494
|
if (t.emit("update:modelValue", g), i.value = g, e.onSubmitModal) {
|
|
10503
10495
|
const k = {
|
|
10504
10496
|
expression: g,
|
|
10505
|
-
message:
|
|
10497
|
+
message: m
|
|
10506
10498
|
};
|
|
10507
10499
|
e.showMessageType && (k.messageType = h.value);
|
|
10508
|
-
const
|
|
10509
|
-
e.onExpressionChanged && e.onExpressionChanged(
|
|
10500
|
+
const O = e.onSubmitModal(k);
|
|
10501
|
+
e.onExpressionChanged && e.onExpressionChanged(O);
|
|
10510
10502
|
}
|
|
10511
10503
|
return !0;
|
|
10512
10504
|
}
|
|
@@ -10526,8 +10518,8 @@ const hu = /* @__PURE__ */ oe({
|
|
|
10526
10518
|
text: "清空",
|
|
10527
10519
|
class: "btn btn-secondary mr-2",
|
|
10528
10520
|
handle: (g) => {
|
|
10529
|
-
var
|
|
10530
|
-
return (
|
|
10521
|
+
var m;
|
|
10522
|
+
return (m = d.value) == null || m.resetExpression(), !1;
|
|
10531
10523
|
}
|
|
10532
10524
|
}, {
|
|
10533
10525
|
name: "cancel",
|
|
@@ -10559,7 +10551,7 @@ const hu = /* @__PURE__ */ oe({
|
|
|
10559
10551
|
}
|
|
10560
10552
|
return !0;
|
|
10561
10553
|
}
|
|
10562
|
-
function
|
|
10554
|
+
function y() {
|
|
10563
10555
|
if (t.emit("update:modelValue", ""), i.value = "", e.onSubmitModal) {
|
|
10564
10556
|
const g = e.onSubmitModal({
|
|
10565
10557
|
expression: "",
|
|
@@ -10583,7 +10575,7 @@ const hu = /* @__PURE__ */ oe({
|
|
|
10583
10575
|
buttonBehavior: "Modal",
|
|
10584
10576
|
modalOptions: l,
|
|
10585
10577
|
beforeOpen: f,
|
|
10586
|
-
onClear:
|
|
10578
|
+
onClear: y
|
|
10587
10579
|
}, {
|
|
10588
10580
|
default: () => [v("div", {
|
|
10589
10581
|
class: "h-100 d-flex flex-column"
|
|
@@ -11011,9 +11003,9 @@ const ha = {
|
|
|
11011
11003
|
const n = C(e.data), a = C([]), o = C(e.separator), i = C(e.width), r = C(e.height), u = C(e.maxHeight), d = C(String(e.selectedValues).split(o.value)), c = C(), h = {
|
|
11012
11004
|
customRowStatus: e.customRowStatus
|
|
11013
11005
|
};
|
|
11014
|
-
Z(() => e.data, (
|
|
11006
|
+
Z(() => e.data, (m) => {
|
|
11015
11007
|
var w;
|
|
11016
|
-
n.value =
|
|
11008
|
+
n.value = m, (w = c.value) == null || w.updateDataSource(m);
|
|
11017
11009
|
});
|
|
11018
11010
|
const s = {
|
|
11019
11011
|
enableSelectRow: !0,
|
|
@@ -11028,32 +11020,32 @@ const ha = {
|
|
|
11028
11020
|
title: "",
|
|
11029
11021
|
dataType: "string",
|
|
11030
11022
|
formatter: e.formatter
|
|
11031
|
-
}]),
|
|
11032
|
-
const
|
|
11033
|
-
return i.value !== void 0 && (
|
|
11023
|
+
}]), y = N(() => {
|
|
11024
|
+
const m = {};
|
|
11025
|
+
return i.value !== void 0 && (m.width = `${i.value}px`), r.value !== void 0 && (m.height = `${r.value}px`), u.value !== void 0 && u.value > 0 && (m.maxHeight = `${u.value}px`, m.overflow = "auto"), n.value.length === 0 && (m.height = "200px"), m.position = "relative", m;
|
|
11034
11026
|
});
|
|
11035
|
-
function g(
|
|
11036
|
-
|
|
11027
|
+
function g(m = []) {
|
|
11028
|
+
m && m.length > 0 ? (a.value = [...m], d.value = a.value.map((w) => w[e.idField])) : (a.value = [], d.value = []), t.emit("selectionChange", a.value);
|
|
11037
11029
|
}
|
|
11038
11030
|
return be(() => {
|
|
11039
|
-
l && l.getData(e.editorParams).then((
|
|
11040
|
-
n.value =
|
|
11031
|
+
l && l.getData(e.editorParams).then((m) => {
|
|
11032
|
+
n.value = m;
|
|
11041
11033
|
}), d.value && c.value.activeRowById(d.value[0]);
|
|
11042
11034
|
}), t.expose({
|
|
11043
11035
|
treeInstance: c
|
|
11044
11036
|
}), () => v("div", {
|
|
11045
11037
|
class: "f-combo-tree-container",
|
|
11046
|
-
style:
|
|
11038
|
+
style: y.value
|
|
11047
11039
|
}, [e.multiSelect && e.enableSearch && v("div", {
|
|
11048
11040
|
class: "p-2",
|
|
11049
11041
|
style: "position: sticky;top:0;z-index: 2; background:white",
|
|
11050
|
-
onMousedown: (
|
|
11042
|
+
onMousedown: (m) => m.stopPropagation()
|
|
11051
11043
|
}, [v(No, {
|
|
11052
11044
|
buttonContent: '<i class="f-icon f-icon-search"></i>',
|
|
11053
11045
|
enableClear: !0,
|
|
11054
11046
|
placeholder: "请输入搜索内容",
|
|
11055
11047
|
onClear: () => t.emit("clearSearch"),
|
|
11056
|
-
onInput: (
|
|
11048
|
+
onInput: (m, w) => e.searchHandler(w)
|
|
11057
11049
|
}, null)]), v(Nn, {
|
|
11058
11050
|
ref: c,
|
|
11059
11051
|
fit: !0,
|
|
@@ -11077,26 +11069,26 @@ const ha = {
|
|
|
11077
11069
|
function Nu(e) {
|
|
11078
11070
|
const t = C(""), n = C(e.modelValue), a = C(e.data || []), o = C(e.editable);
|
|
11079
11071
|
function i(s, l = []) {
|
|
11080
|
-
return s = s || [], s.reduce((f,
|
|
11072
|
+
return s = s || [], s.reduce((f, y) => (f.push(y), y.children && y.children.length && i(y.children, f), f), l);
|
|
11081
11073
|
}
|
|
11082
11074
|
function r(s) {
|
|
11083
|
-
const l = String(s).split(e.separator).map((
|
|
11084
|
-
return i(a.value,
|
|
11085
|
-
const w =
|
|
11075
|
+
const l = String(s).split(e.separator).map((m, w) => [m, w]), f = new Map(l), y = [];
|
|
11076
|
+
return i(a.value, y), y.filter((m) => {
|
|
11077
|
+
const w = m.data ? String(m.data[e.valueField]) : String(m[e.valueField]);
|
|
11086
11078
|
return f.has(w);
|
|
11087
|
-
}).map((
|
|
11088
|
-
const k = f.get(String(
|
|
11089
|
-
return k -
|
|
11079
|
+
}).map((m) => m.data ? m.data : m).sort((m, w) => {
|
|
11080
|
+
const k = f.get(String(m[e.valueField])) || 0, O = f.get(String(w[e.valueField])) || 0;
|
|
11081
|
+
return k - O;
|
|
11090
11082
|
});
|
|
11091
11083
|
}
|
|
11092
11084
|
function u(s) {
|
|
11093
|
-
const l = r(s), f = e.displayFormatter ? e.displayFormatter(l) : l.map((
|
|
11085
|
+
const l = r(s), f = e.displayFormatter ? e.displayFormatter(l) : l.map((y) => y[e.textField]).join(e.separator);
|
|
11094
11086
|
t.value = o.value ? f || s : f;
|
|
11095
11087
|
}
|
|
11096
11088
|
function d(s) {
|
|
11097
11089
|
const l = s.split(e.separator).map((g) => [g, !0]), f = new Map(l);
|
|
11098
|
-
let
|
|
11099
|
-
return a.value[0].data ? i(a.value,
|
|
11090
|
+
let y = [];
|
|
11091
|
+
return a.value[0].data ? i(a.value, y) : y = a.value, y = y.map((g) => g.data ? g.data : g), y.filter((g) => f.has(g[e.textField]) || f.has(g[e.valueField]));
|
|
11100
11092
|
}
|
|
11101
11093
|
function c(s) {
|
|
11102
11094
|
const l = {};
|
|
@@ -11123,8 +11115,8 @@ function Iu(e) {
|
|
|
11123
11115
|
function r(s, l) {
|
|
11124
11116
|
const f = (s.children || []).map((g) => r(g, l)).filter((g) => g !== null);
|
|
11125
11117
|
return a.value.some((g) => {
|
|
11126
|
-
var
|
|
11127
|
-
return (
|
|
11118
|
+
var m;
|
|
11119
|
+
return (m = s.data[g]) == null ? void 0 : m.toString().toLowerCase().includes(l.toLowerCase());
|
|
11128
11120
|
}) ? {
|
|
11129
11121
|
data: { ...s.data },
|
|
11130
11122
|
children: s.children
|
|
@@ -11143,7 +11135,7 @@ function Iu(e) {
|
|
|
11143
11135
|
u();
|
|
11144
11136
|
return;
|
|
11145
11137
|
}
|
|
11146
|
-
const l = n.value.map((
|
|
11138
|
+
const l = n.value.map((y) => r(y, s)).filter((y) => y !== null);
|
|
11147
11139
|
o.value = Re(l);
|
|
11148
11140
|
}
|
|
11149
11141
|
const c = Pn((s) => {
|
|
@@ -11171,13 +11163,13 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11171
11163
|
displayText: s,
|
|
11172
11164
|
editable: l,
|
|
11173
11165
|
modelValue: f,
|
|
11174
|
-
getSelectedItemsByDisplayText:
|
|
11166
|
+
getSelectedItemsByDisplayText: y
|
|
11175
11167
|
} = Nu(e), g = N(() => e.multiSelect);
|
|
11176
11168
|
N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
11177
|
-
const
|
|
11178
|
-
var
|
|
11179
|
-
const
|
|
11180
|
-
return
|
|
11169
|
+
const m = N(() => {
|
|
11170
|
+
var T;
|
|
11171
|
+
const F = (T = n.value) == null ? void 0 : T.popoverRef;
|
|
11172
|
+
return F ? F.shown : !1;
|
|
11181
11173
|
}), {
|
|
11182
11174
|
onValueChange: w,
|
|
11183
11175
|
resetDataSource: k
|
|
@@ -11186,22 +11178,22 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11186
11178
|
dataSource: h,
|
|
11187
11179
|
searchFields: u,
|
|
11188
11180
|
originalValue: d,
|
|
11189
|
-
showPopover:
|
|
11181
|
+
showPopover: m
|
|
11190
11182
|
});
|
|
11191
|
-
function
|
|
11183
|
+
function O() {
|
|
11192
11184
|
!g.value && n.value && n.value.hidePopup();
|
|
11193
11185
|
}
|
|
11194
|
-
function B(
|
|
11195
|
-
s.value = e.displayFormatter ? e.displayFormatter(
|
|
11186
|
+
function B(F) {
|
|
11187
|
+
s.value = e.displayFormatter ? e.displayFormatter(F) : F.map((T) => T[e.textField]).join(e.separator), f.value = F.map((T) => T[e.valueField]).join(e.separator), t.emit("update:modelValue", f.value), t.emit("change", F, f.value), O();
|
|
11196
11188
|
}
|
|
11197
|
-
function b(
|
|
11198
|
-
var
|
|
11199
|
-
f.value = "",
|
|
11189
|
+
function b(F) {
|
|
11190
|
+
var T;
|
|
11191
|
+
f.value = "", m.value && ((T = n.value) == null || T.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, f.value), t.emit("clear");
|
|
11200
11192
|
}
|
|
11201
|
-
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
11202
|
-
a.value =
|
|
11193
|
+
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, T, I, R, M]) => {
|
|
11194
|
+
a.value = F, l.value = T, o.value = I, i.value = R, r.value = M;
|
|
11203
11195
|
});
|
|
11204
|
-
const
|
|
11196
|
+
const p = () => {
|
|
11205
11197
|
d.value = Re(h.value);
|
|
11206
11198
|
};
|
|
11207
11199
|
return () => v(jn, {
|
|
@@ -11220,16 +11212,16 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11220
11212
|
inputType: e.viewType,
|
|
11221
11213
|
popupOnClick: !0,
|
|
11222
11214
|
modelValue: s.value,
|
|
11223
|
-
"onUpdate:modelValue": (
|
|
11215
|
+
"onUpdate:modelValue": (F) => s.value = F,
|
|
11224
11216
|
onClear: b,
|
|
11225
11217
|
onInput: w,
|
|
11226
11218
|
focusOnCreated: e.focusOnCreated,
|
|
11227
11219
|
selectOnCreated: e.selectOnCreated,
|
|
11228
|
-
beforeOpen:
|
|
11220
|
+
beforeOpen: p,
|
|
11229
11221
|
placement: e.placement,
|
|
11230
11222
|
popupMinWidth: e.minPanelWidth
|
|
11231
11223
|
}, {
|
|
11232
|
-
default: () => [
|
|
11224
|
+
default: () => [m.value && v(Pu, {
|
|
11233
11225
|
ref: c,
|
|
11234
11226
|
maxHeight: e.maxHeight,
|
|
11235
11227
|
multiSelect: e.multiSelect,
|
|
@@ -11332,41 +11324,41 @@ const ju = /* @__PURE__ */ oe({
|
|
|
11332
11324
|
onInsert: s,
|
|
11333
11325
|
onRemove: l,
|
|
11334
11326
|
onRowClick: f,
|
|
11335
|
-
activeRowCls:
|
|
11327
|
+
activeRowCls: y,
|
|
11336
11328
|
itemIntoView: g
|
|
11337
|
-
} = ba(e, t, d),
|
|
11338
|
-
function w(
|
|
11329
|
+
} = ba(e, t, d), m = C(e.expressionOptions || {});
|
|
11330
|
+
function w(O) {
|
|
11339
11331
|
var B, b;
|
|
11340
|
-
switch (
|
|
11332
|
+
switch (O.expresstype) {
|
|
11341
11333
|
case je.Variable:
|
|
11342
11334
|
return v(Aa, {
|
|
11343
|
-
modelValue:
|
|
11344
|
-
"onUpdate:modelValue": (
|
|
11335
|
+
modelValue: O.value,
|
|
11336
|
+
"onUpdate:modelValue": (p) => O.value = p,
|
|
11345
11337
|
showOutline: !1,
|
|
11346
11338
|
fieldData: (B = e.formContextData) == null ? void 0 : B.fieldData,
|
|
11347
11339
|
varData: (b = e.formContextData) == null ? void 0 : b.varData
|
|
11348
11340
|
}, null);
|
|
11349
11341
|
case je.Expression:
|
|
11350
11342
|
return v(hu, kt({
|
|
11351
|
-
modelValue:
|
|
11352
|
-
"onUpdate:modelValue": (
|
|
11353
|
-
},
|
|
11343
|
+
modelValue: O.value,
|
|
11344
|
+
"onUpdate:modelValue": (p) => O.value = p
|
|
11345
|
+
}, m.value), null);
|
|
11354
11346
|
case je.Value:
|
|
11355
11347
|
default:
|
|
11356
11348
|
return v(Rt, {
|
|
11357
11349
|
enableTitle: !0,
|
|
11358
11350
|
buttonContent: "",
|
|
11359
11351
|
popupOnClick: !0,
|
|
11360
|
-
modelValue:
|
|
11361
|
-
"onUpdate:modelValue": (
|
|
11352
|
+
modelValue: O.value,
|
|
11353
|
+
"onUpdate:modelValue": (p) => O.value = p
|
|
11362
11354
|
}, null);
|
|
11363
11355
|
}
|
|
11364
11356
|
}
|
|
11365
|
-
function k(
|
|
11357
|
+
function k(O, B, b) {
|
|
11366
11358
|
return v(lt, {
|
|
11367
11359
|
data: B,
|
|
11368
|
-
modelValue:
|
|
11369
|
-
"onUpdate:modelValue": (
|
|
11360
|
+
modelValue: O[b],
|
|
11361
|
+
"onUpdate:modelValue": (p) => O[b] = p,
|
|
11370
11362
|
textField: "label",
|
|
11371
11363
|
valueField: "value",
|
|
11372
11364
|
idField: "value",
|
|
@@ -11403,10 +11395,10 @@ const ju = /* @__PURE__ */ oe({
|
|
|
11403
11395
|
style: "width: 60px"
|
|
11404
11396
|
}, [v("b", null, [le("关系")])])])]), v("tbody", {
|
|
11405
11397
|
ref: d
|
|
11406
|
-
}, [c.value.map((
|
|
11398
|
+
}, [c.value.map((O, B) => v("tr", {
|
|
11407
11399
|
index: B,
|
|
11408
|
-
class:
|
|
11409
|
-
onClick: (b) => f(
|
|
11400
|
+
class: y.value(B),
|
|
11401
|
+
onClick: (b) => f(O, B)
|
|
11410
11402
|
}, [v("td", {
|
|
11411
11403
|
style: "text-overflow: unset;",
|
|
11412
11404
|
align: "center",
|
|
@@ -11427,19 +11419,19 @@ const ju = /* @__PURE__ */ oe({
|
|
|
11427
11419
|
class: "f-icon f-icon-minus"
|
|
11428
11420
|
}, null)])]), v("td", {
|
|
11429
11421
|
class: "px-1"
|
|
11430
|
-
}, [k(
|
|
11422
|
+
}, [k(O, a, "lbracket")]), v("td", {
|
|
11431
11423
|
class: "px-1"
|
|
11432
|
-
}, [u(
|
|
11424
|
+
}, [u(O, h.value, "filterField")]), v("td", {
|
|
11433
11425
|
class: "px-1"
|
|
11434
|
-
}, [k(
|
|
11426
|
+
}, [k(O, n, "compare")]), v("td", {
|
|
11435
11427
|
class: "px-1"
|
|
11436
|
-
}, [k(
|
|
11428
|
+
}, [k(O, o, "expresstype")]), v("td", {
|
|
11437
11429
|
class: "px-1"
|
|
11438
|
-
}, [w(
|
|
11430
|
+
}, [w(O)]), v("td", {
|
|
11439
11431
|
class: "px-1"
|
|
11440
|
-
}, [k(
|
|
11432
|
+
}, [k(O, r, "rbracket")]), v("td", {
|
|
11441
11433
|
class: "px-1"
|
|
11442
|
-
}, [k(
|
|
11434
|
+
}, [k(O, i, "relation")])]))])])]);
|
|
11443
11435
|
}
|
|
11444
11436
|
}), Ru = /* @__PURE__ */ oe({
|
|
11445
11437
|
name: "filter-condition-actions",
|
|
@@ -11562,21 +11554,21 @@ const ju = /* @__PURE__ */ oe({
|
|
|
11562
11554
|
}, [i.value.map((l, f) => v("tr", {
|
|
11563
11555
|
index: f,
|
|
11564
11556
|
class: h.value(f),
|
|
11565
|
-
onClick: (
|
|
11557
|
+
onClick: (y) => c(l, f)
|
|
11566
11558
|
}, [v("td", {
|
|
11567
11559
|
style: "text-overflow: unset;",
|
|
11568
11560
|
align: "center",
|
|
11569
11561
|
class: "px-1"
|
|
11570
11562
|
}, [v("button", {
|
|
11571
11563
|
title: "插入",
|
|
11572
|
-
onClick: (
|
|
11564
|
+
onClick: (y) => u(f, y),
|
|
11573
11565
|
type: "button",
|
|
11574
11566
|
class: "btn btn-link p-1 mr-0"
|
|
11575
11567
|
}, [v("span", {
|
|
11576
11568
|
class: "f-icon f-icon-plus"
|
|
11577
11569
|
}, null)]), v("button", {
|
|
11578
11570
|
title: "移除",
|
|
11579
|
-
onClick: (
|
|
11571
|
+
onClick: (y) => d(f, y),
|
|
11580
11572
|
type: "button",
|
|
11581
11573
|
class: "btn btn-link p-1 m-0"
|
|
11582
11574
|
}, [v("span", {
|
|
@@ -11591,7 +11583,7 @@ const ju = /* @__PURE__ */ oe({
|
|
|
11591
11583
|
valueField: "value",
|
|
11592
11584
|
idField: "value",
|
|
11593
11585
|
modelValue: l.sortType,
|
|
11594
|
-
"onUpdate:modelValue": (
|
|
11586
|
+
"onUpdate:modelValue": (y) => l.sortType = y,
|
|
11595
11587
|
enableClear: !1,
|
|
11596
11588
|
minPanelWidth: 130,
|
|
11597
11589
|
placement: "auto"
|
|
@@ -11617,81 +11609,81 @@ function Vu(e, t) {
|
|
|
11617
11609
|
} : {
|
|
11618
11610
|
sortField: "",
|
|
11619
11611
|
sortType: "asc"
|
|
11620
|
-
}, d = N(() => t.value.length > 0), c = N(() => (
|
|
11612
|
+
}, d = N(() => t.value.length > 0), c = N(() => (p = "down") => t.value.length > 1 ? p === "up" ? n.value > 0 : n.value < t.value.length - 1 : !1);
|
|
11621
11613
|
function h() {
|
|
11622
11614
|
if (e.editorType === "filter")
|
|
11623
|
-
for (let
|
|
11624
|
-
const
|
|
11625
|
-
(
|
|
11615
|
+
for (let p = 0; p < t.value.length - 1; p++) {
|
|
11616
|
+
const F = t.value[p];
|
|
11617
|
+
(F.relation === ut.Empty || !F.relation) && (F.relation = ut.And);
|
|
11626
11618
|
}
|
|
11627
11619
|
}
|
|
11628
11620
|
function s() {
|
|
11629
|
-
const
|
|
11630
|
-
t.value = [...t.value,
|
|
11631
|
-
const
|
|
11632
|
-
n.value =
|
|
11621
|
+
const p = Object.assign({}, u);
|
|
11622
|
+
t.value = [...t.value, p];
|
|
11623
|
+
const F = t.value.length - 1;
|
|
11624
|
+
n.value = F, h();
|
|
11633
11625
|
}
|
|
11634
|
-
function l({ index:
|
|
11635
|
-
const
|
|
11636
|
-
e.insertType === "above" ?
|
|
11626
|
+
function l({ index: p }) {
|
|
11627
|
+
const F = Object.assign({}, u);
|
|
11628
|
+
e.insertType === "above" ? p === 0 ? t.value.unshift(F) : t.value.splice(p, 0, F) : t.value.splice(p + 1, 0, F), t.value = [...t.value], h();
|
|
11637
11629
|
}
|
|
11638
|
-
function f({ index:
|
|
11639
|
-
t.value.splice(
|
|
11630
|
+
function f({ index: p }) {
|
|
11631
|
+
t.value.splice(p, 1), t.value = [...t.value], !(n.value < 0) && (p === n.value ? t.value[p] ? n.value = p : t.value[p - 1] ? n.value = p - 1 : n.value = -1 : p < n.value && (t.value[n.value - 1] ? n.value = n.value - 1 : t.value[n.value] || (n.value = -1)));
|
|
11640
11632
|
}
|
|
11641
|
-
function
|
|
11633
|
+
function y() {
|
|
11642
11634
|
t.value = [];
|
|
11643
11635
|
}
|
|
11644
11636
|
function g() {
|
|
11645
11637
|
n.value >= 0 && (t.value.unshift(a()), t.value.splice(n.value + 1, 1), n.value = 0);
|
|
11646
11638
|
}
|
|
11647
|
-
function
|
|
11639
|
+
function m() {
|
|
11648
11640
|
if (n.value >= 0) {
|
|
11649
|
-
const
|
|
11650
|
-
t.value.splice(
|
|
11641
|
+
const p = n.value, F = t.value.splice(p, 1);
|
|
11642
|
+
t.value.splice(p - 1, 0, ...F), n.value = p - 1;
|
|
11651
11643
|
}
|
|
11652
11644
|
}
|
|
11653
11645
|
function w() {
|
|
11654
11646
|
if (n.value >= 0) {
|
|
11655
|
-
const
|
|
11656
|
-
t.value.splice(
|
|
11647
|
+
const p = n.value, F = t.value.splice(p, 1);
|
|
11648
|
+
t.value.splice(p + 1, 0, ...F), n.value = p + 1;
|
|
11657
11649
|
}
|
|
11658
11650
|
}
|
|
11659
11651
|
function k() {
|
|
11660
11652
|
n.value >= 0 && (t.value.push(a()), t.value.splice(n.value, 1), n.value = t.value.length - 1);
|
|
11661
11653
|
}
|
|
11662
|
-
function
|
|
11663
|
-
n.value =
|
|
11654
|
+
function O({ index: p }) {
|
|
11655
|
+
n.value = p;
|
|
11664
11656
|
}
|
|
11665
|
-
function B(
|
|
11666
|
-
if (
|
|
11657
|
+
function B(p) {
|
|
11658
|
+
if (p.length % 2 !== 0)
|
|
11667
11659
|
return !1;
|
|
11668
|
-
let
|
|
11669
|
-
for (const
|
|
11670
|
-
if (
|
|
11671
|
-
|
|
11672
|
-
else if (
|
|
11673
|
-
if (!
|
|
11660
|
+
let F = "";
|
|
11661
|
+
for (const T of p)
|
|
11662
|
+
if (T === "(")
|
|
11663
|
+
F += T;
|
|
11664
|
+
else if (T === ")") {
|
|
11665
|
+
if (!F.endsWith("("))
|
|
11674
11666
|
return !1;
|
|
11675
|
-
|
|
11667
|
+
F = F.slice(0, -1);
|
|
11676
11668
|
}
|
|
11677
|
-
return
|
|
11669
|
+
return F.length === 0;
|
|
11678
11670
|
}
|
|
11679
11671
|
function b() {
|
|
11680
|
-
const
|
|
11681
|
-
if (!
|
|
11672
|
+
const p = t.value.length;
|
|
11673
|
+
if (!p)
|
|
11682
11674
|
return !0;
|
|
11683
|
-
let
|
|
11675
|
+
let F = !0, T = !0;
|
|
11684
11676
|
if (e.editorType !== "sort") {
|
|
11685
|
-
t.value[
|
|
11686
|
-
(
|
|
11677
|
+
t.value[p - 1].relation = ut.Empty, T = !t.value.slice(0, -1).some(
|
|
11678
|
+
(S) => S.relation === ut.Empty || !S.relation
|
|
11687
11679
|
);
|
|
11688
|
-
const M = t.value.flatMap((
|
|
11689
|
-
|
|
11680
|
+
const M = t.value.flatMap((S) => [S.lbracket, S.rbracket]).join("");
|
|
11681
|
+
F = B(M);
|
|
11690
11682
|
}
|
|
11691
11683
|
const I = t.value.some((R) => !R[r]);
|
|
11692
11684
|
return [
|
|
11693
|
-
{ result:
|
|
11694
|
-
{ result:
|
|
11685
|
+
{ result: F, message: "括号不匹配,请检查。" },
|
|
11686
|
+
{ result: T, message: "关系设置不完整,请检查。" },
|
|
11695
11687
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11696
11688
|
].find((R) => !R.result);
|
|
11697
11689
|
}
|
|
@@ -11703,12 +11695,12 @@ function Vu(e, t) {
|
|
|
11703
11695
|
onAddFilter: s,
|
|
11704
11696
|
onRemove: f,
|
|
11705
11697
|
onInsert: l,
|
|
11706
|
-
onClear:
|
|
11698
|
+
onClear: y,
|
|
11707
11699
|
onMoveTop: g,
|
|
11708
|
-
onMovePrev:
|
|
11700
|
+
onMovePrev: m,
|
|
11709
11701
|
onMoveNext: w,
|
|
11710
11702
|
onMoveBottom: k,
|
|
11711
|
-
onSelectRow:
|
|
11703
|
+
onSelectRow: O,
|
|
11712
11704
|
validateCondition: b,
|
|
11713
11705
|
resetActiveRow: o
|
|
11714
11706
|
};
|
|
@@ -11726,17 +11718,17 @@ const en = /* @__PURE__ */ oe({
|
|
|
11726
11718
|
displayText: s,
|
|
11727
11719
|
onAddFilter: l,
|
|
11728
11720
|
onClear: f,
|
|
11729
|
-
onMoveBottom:
|
|
11721
|
+
onMoveBottom: y,
|
|
11730
11722
|
onMoveNext: g,
|
|
11731
|
-
onMovePrev:
|
|
11723
|
+
onMovePrev: m,
|
|
11732
11724
|
onMoveTop: w,
|
|
11733
11725
|
onInsert: k,
|
|
11734
|
-
onRemove:
|
|
11726
|
+
onRemove: O,
|
|
11735
11727
|
activeRowIndex: B,
|
|
11736
11728
|
onSelectRow: b,
|
|
11737
|
-
canClear:
|
|
11738
|
-
canMove:
|
|
11739
|
-
validateCondition:
|
|
11729
|
+
canClear: p,
|
|
11730
|
+
canMove: F,
|
|
11731
|
+
validateCondition: T,
|
|
11740
11732
|
resetActiveRow: I
|
|
11741
11733
|
} = Vu(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11742
11734
|
function M() {
|
|
@@ -11745,7 +11737,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11745
11737
|
fields: u.value,
|
|
11746
11738
|
activeIndex: B.value,
|
|
11747
11739
|
onInsert: (j) => k(j),
|
|
11748
|
-
onRemove: (j) =>
|
|
11740
|
+
onRemove: (j) => O(j),
|
|
11749
11741
|
idField: e.idField,
|
|
11750
11742
|
onRowClick: (j) => b(j)
|
|
11751
11743
|
}, null) : v(ju, {
|
|
@@ -11757,13 +11749,13 @@ const en = /* @__PURE__ */ oe({
|
|
|
11757
11749
|
idField: e.idField,
|
|
11758
11750
|
activeIndex: B.value,
|
|
11759
11751
|
onInsert: (j) => k(j),
|
|
11760
|
-
onRemove: (j) =>
|
|
11752
|
+
onRemove: (j) => O(j),
|
|
11761
11753
|
onRowClick: (j) => b(j),
|
|
11762
11754
|
formContextData: r.value
|
|
11763
11755
|
}, null);
|
|
11764
11756
|
}
|
|
11765
|
-
const
|
|
11766
|
-
async function
|
|
11757
|
+
const S = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), x = N(() => e.disableConfirmWhenUnchanged && S.value);
|
|
11758
|
+
async function E() {
|
|
11767
11759
|
if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
|
|
11768
11760
|
o == null || o.show();
|
|
11769
11761
|
const j = await e.onSubmitModal({
|
|
@@ -11799,14 +11791,14 @@ const en = /* @__PURE__ */ oe({
|
|
|
11799
11791
|
name: "accept",
|
|
11800
11792
|
text: "确定",
|
|
11801
11793
|
class: "btn btn-primary",
|
|
11802
|
-
disabled:
|
|
11794
|
+
disabled: x,
|
|
11803
11795
|
handle: async (j) => {
|
|
11804
|
-
const G =
|
|
11805
|
-
return
|
|
11796
|
+
const G = T();
|
|
11797
|
+
return S.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await E();
|
|
11806
11798
|
}
|
|
11807
11799
|
}]
|
|
11808
11800
|
};
|
|
11809
|
-
async function
|
|
11801
|
+
async function W() {
|
|
11810
11802
|
if (e.beforeOpen)
|
|
11811
11803
|
try {
|
|
11812
11804
|
o == null || o.show();
|
|
@@ -11817,13 +11809,13 @@ const en = /* @__PURE__ */ oe({
|
|
|
11817
11809
|
if (j) {
|
|
11818
11810
|
const {
|
|
11819
11811
|
fieldList: G,
|
|
11820
|
-
conditionList:
|
|
11812
|
+
conditionList: z,
|
|
11821
11813
|
entities: ee,
|
|
11822
11814
|
variables: ce,
|
|
11823
11815
|
formContextData: ve,
|
|
11824
11816
|
isServerSide: Y
|
|
11825
11817
|
} = j;
|
|
11826
|
-
return u.value = G || [], c.value =
|
|
11818
|
+
return u.value = G || [], c.value = z || [], h.value = JSON.parse(JSON.stringify(c.value)), i.value = {
|
|
11827
11819
|
entities: ee,
|
|
11828
11820
|
variables: ce,
|
|
11829
11821
|
isServerSide: Y
|
|
@@ -11854,7 +11846,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11854
11846
|
buttonContent: d,
|
|
11855
11847
|
buttonBehavior: "Modal",
|
|
11856
11848
|
modalOptions: P,
|
|
11857
|
-
beforeOpen:
|
|
11849
|
+
beforeOpen: W,
|
|
11858
11850
|
onClear: J,
|
|
11859
11851
|
enableTitle: e.enableTitle,
|
|
11860
11852
|
"onUpdate:modelValue": $
|
|
@@ -11865,13 +11857,13 @@ const en = /* @__PURE__ */ oe({
|
|
|
11865
11857
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
11866
11858
|
class: "shading-border-top"
|
|
11867
11859
|
}, null), M(), v(Ru, {
|
|
11868
|
-
canClear:
|
|
11869
|
-
canMove:
|
|
11860
|
+
canClear: p,
|
|
11861
|
+
canMove: F,
|
|
11870
11862
|
onAdd: l,
|
|
11871
11863
|
onClear: f,
|
|
11872
|
-
onMoveBottom:
|
|
11864
|
+
onMoveBottom: y,
|
|
11873
11865
|
onMoveNext: g,
|
|
11874
|
-
onMovePrev:
|
|
11866
|
+
onMovePrev: m,
|
|
11875
11867
|
onMoveTop: w
|
|
11876
11868
|
}, null)])]
|
|
11877
11869
|
});
|