@farris/ui-vue 1.6.5-beta.8 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +334 -334
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +4 -4
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +136 -133
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +4 -4
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3416 -3350
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +4 -4
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +170 -170
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +699 -696
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +446 -446
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +377 -374
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +204 -204
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +427 -427
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +212 -212
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +160 -160
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +314 -314
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +468 -463
- package/components/order/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +215 -215
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4 -4
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +944 -941
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +498 -492
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +211 -211
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +377 -374
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +78 -77
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +579 -579
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +219 -219
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +382 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15439 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22330 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1098 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4689 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6985 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +9619 -9535
- package/farris.all.umd.cjs +24 -24
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -635,7 +635,7 @@ function tl(e, t) {
|
|
|
635
635
|
c.value && ((c.value.n || c.value.s) && ((L = u.value) != null && L.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"), s.value && ((G = s.value) != null && G.x && (ee.style.left = s.value.x + "px"), (W = s.value) != null && W.y && (ee.style.top = s.value.y + "px")));
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function M() {
|
|
639
639
|
const L = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
|
|
640
640
|
u.value && s.value && c.value && l.value && (u.value.height < L && (u.value.height = L, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - L))), u.value.width < j && (u.value.width = j, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - j))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && c.value.n && (s.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - e.maxWidth))));
|
|
641
641
|
}
|
|
@@ -653,7 +653,7 @@ function tl(e, t) {
|
|
|
653
653
|
return;
|
|
654
654
|
L.subtract(o.value);
|
|
655
655
|
const j = L.x, G = L.y;
|
|
656
|
-
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(),
|
|
656
|
+
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(), M(), B();
|
|
657
657
|
}
|
|
658
658
|
function x(L) {
|
|
659
659
|
if (!h.value)
|
|
@@ -661,7 +661,7 @@ function tl(e, t) {
|
|
|
661
661
|
const j = re.fromEvent(L);
|
|
662
662
|
j && y(j);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function E() {
|
|
665
665
|
if (n.value) {
|
|
666
666
|
const {
|
|
667
667
|
width: L,
|
|
@@ -684,7 +684,7 @@ function tl(e, t) {
|
|
|
684
684
|
}
|
|
685
685
|
function I(L) {
|
|
686
686
|
if (n.value) {
|
|
687
|
-
const j =
|
|
687
|
+
const j = E();
|
|
688
688
|
r.value = j;
|
|
689
689
|
}
|
|
690
690
|
o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", I);
|
|
@@ -692,48 +692,48 @@ function tl(e, t) {
|
|
|
692
692
|
function R() {
|
|
693
693
|
document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function O(L) {
|
|
696
696
|
L instanceof MouseEvent && L.button === 2 || g.value && (document.body.click(), L.stopPropagation(), L.preventDefault(), o.value = re.fromEvent(L), h.value = L.target, k(L), R());
|
|
697
697
|
}
|
|
698
698
|
function F(L) {
|
|
699
699
|
return n.value = L, m.value && v(ot, null, [v("div", {
|
|
700
700
|
class: "fv-resizable-handle fv-resizable-n",
|
|
701
701
|
type: "n",
|
|
702
|
-
onMousedown: (j) =>
|
|
702
|
+
onMousedown: (j) => O(j)
|
|
703
703
|
}, null), v("div", {
|
|
704
704
|
class: "fv-resizable-handle fv-resizable-e",
|
|
705
705
|
type: "e",
|
|
706
|
-
onMousedown: (j) =>
|
|
706
|
+
onMousedown: (j) => O(j)
|
|
707
707
|
}, null), v("div", {
|
|
708
708
|
class: "fv-resizable-handle fv-resizable-s",
|
|
709
709
|
type: "s",
|
|
710
|
-
onMousedown: (j) =>
|
|
710
|
+
onMousedown: (j) => O(j)
|
|
711
711
|
}, null), v("div", {
|
|
712
712
|
class: "fv-resizable-handle fv-resizable-w",
|
|
713
713
|
type: "w",
|
|
714
|
-
onMousedown: (j) =>
|
|
714
|
+
onMousedown: (j) => O(j)
|
|
715
715
|
}, null), v("div", {
|
|
716
716
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
717
717
|
type: "ne",
|
|
718
|
-
onMousedown: (j) =>
|
|
718
|
+
onMousedown: (j) => O(j)
|
|
719
719
|
}, null), v("div", {
|
|
720
720
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
721
721
|
type: "se",
|
|
722
|
-
onMousedown: (j) =>
|
|
722
|
+
onMousedown: (j) => O(j)
|
|
723
723
|
}, null), v("div", {
|
|
724
724
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
725
725
|
type: "sw",
|
|
726
|
-
onMousedown: (j) =>
|
|
726
|
+
onMousedown: (j) => O(j)
|
|
727
727
|
}, null), v("div", {
|
|
728
728
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
729
729
|
type: "nw",
|
|
730
|
-
onMousedown: (j) =>
|
|
730
|
+
onMousedown: (j) => O(j)
|
|
731
731
|
}, null)]);
|
|
732
732
|
}
|
|
733
733
|
function S(L = !0) {
|
|
734
734
|
document.body.click();
|
|
735
735
|
const j = a.value || document.body, G = nt.getCurrent(j), W = n.value;
|
|
736
|
-
L && W && (d.value =
|
|
736
|
+
L && W && (d.value = E(), d.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
|
|
737
737
|
size: u.value,
|
|
738
738
|
position: {
|
|
739
739
|
x: 0,
|
|
@@ -797,33 +797,33 @@ function nl(e, t, n) {
|
|
|
797
797
|
Z(() => n.value, (x) => {
|
|
798
798
|
i.value.style.cursor = x ? "move" : "default";
|
|
799
799
|
});
|
|
800
|
-
function m(x,
|
|
801
|
-
if (
|
|
800
|
+
function m(x, E) {
|
|
801
|
+
if (E.tagName === "BUTTON")
|
|
802
802
|
return !1;
|
|
803
|
-
if (
|
|
803
|
+
if (E === x)
|
|
804
804
|
return !0;
|
|
805
|
-
for (const I in
|
|
806
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
805
|
+
for (const I in E.children)
|
|
806
|
+
if (Object.prototype.hasOwnProperty.call(E.children, I) && m(x, E.children[I]))
|
|
807
807
|
return !0;
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
810
|
function d() {
|
|
811
|
-
var R,
|
|
812
|
-
let x = f.value.x + h.value.x,
|
|
813
|
-
l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (
|
|
814
|
-
const I = `translate3d(${Math.round(x)}px, ${Math.round(
|
|
815
|
-
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y =
|
|
811
|
+
var R, O;
|
|
812
|
+
let x = f.value.x + h.value.x, E = f.value.y + h.value.y;
|
|
813
|
+
l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (E = ((O = c.value) == null ? void 0 : O.y) || 0, f.value.y = 0);
|
|
814
|
+
const I = `translate3d(${Math.round(x)}px, ${Math.round(E)}px, 0px)`;
|
|
815
|
+
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = E;
|
|
816
816
|
}
|
|
817
817
|
function g() {
|
|
818
818
|
if (!u.value || !a.value)
|
|
819
819
|
return null;
|
|
820
|
-
const x = u.value.getBoundingClientRect(),
|
|
821
|
-
top: x.top <
|
|
822
|
-
right: x.right >
|
|
823
|
-
bottom: x.bottom >
|
|
824
|
-
left: x.left <
|
|
820
|
+
const x = u.value.getBoundingClientRect(), E = a.value.getBoundingClientRect(), I = {
|
|
821
|
+
top: x.top < E.top,
|
|
822
|
+
right: x.right > E.right,
|
|
823
|
+
bottom: x.bottom > E.bottom,
|
|
824
|
+
left: x.left < E.left
|
|
825
825
|
};
|
|
826
|
-
return I.top || (f.value.y -=
|
|
826
|
+
return I.top || (f.value.y -= E.top - x.top), I.bottom || (f.value.y -= E.bottom - x.bottom), I.right || (f.value.x -= E.right - x.right), I.left || (f.value.x -= E.left - x.left), d(), I;
|
|
827
827
|
}
|
|
828
828
|
function p(x) {
|
|
829
829
|
x && (c.value && x.subtract(c.value), f.value.set(x), d(), g());
|
|
@@ -838,7 +838,7 @@ function nl(e, t, n) {
|
|
|
838
838
|
function B() {
|
|
839
839
|
!s.value && i.value && (s.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function M() {
|
|
842
842
|
if (a.value) {
|
|
843
843
|
const x = re.getTransformInfo(a.value);
|
|
844
844
|
h.value.set(x);
|
|
@@ -849,27 +849,27 @@ function nl(e, t, n) {
|
|
|
849
849
|
function b(x) {
|
|
850
850
|
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
851
851
|
return;
|
|
852
|
-
const
|
|
853
|
-
i.value !== void 0 &&
|
|
852
|
+
const E = x.target || x.srcElement;
|
|
853
|
+
i.value !== void 0 && E && !m(E, i.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), M(), B());
|
|
854
854
|
}
|
|
855
|
-
function y(x,
|
|
856
|
-
if (o.value &&
|
|
855
|
+
function y(x, E, I) {
|
|
856
|
+
if (o.value && E) {
|
|
857
857
|
if (x)
|
|
858
858
|
i.value = x;
|
|
859
859
|
else if (e.dragHandle) {
|
|
860
860
|
if (e.dragHandle instanceof HTMLElement)
|
|
861
861
|
i.value = e.dragHandle;
|
|
862
862
|
else if (typeof e.dragHandle == "string") {
|
|
863
|
-
const R =
|
|
863
|
+
const R = E.querySelector(e.dragHandle);
|
|
864
864
|
R && (i.value = R);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
a.value =
|
|
867
|
+
a.value = E, u.value = I, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", b)) : o.value = !1;
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
return {
|
|
871
871
|
registerDraggle: y,
|
|
872
|
-
resetTranslate:
|
|
872
|
+
resetTranslate: M
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
function Vn(e, t) {
|
|
@@ -906,9 +906,9 @@ const at = /* @__PURE__ */ oe({
|
|
|
906
906
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
907
907
|
setup(e, t) {
|
|
908
908
|
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), h = C(e.showCloseButton), f = C(e.showMaxButton), r = C(!1), m = C(e.dialogType), d = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
|
|
909
|
-
t:
|
|
909
|
+
t: M
|
|
910
910
|
} = St();
|
|
911
|
-
w.value === "错误提示" && (w.value =
|
|
911
|
+
w.value === "错误提示" && (w.value = M("messageBox.errorTitle"));
|
|
912
912
|
const b = C(!1);
|
|
913
913
|
function y($, Q) {
|
|
914
914
|
const ue = Q ? "accept" : "cancel";
|
|
@@ -923,19 +923,19 @@ const at = /* @__PURE__ */ oe({
|
|
|
923
923
|
}
|
|
924
924
|
const x = [{
|
|
925
925
|
name: "cancel",
|
|
926
|
-
text:
|
|
926
|
+
text: M("messageBox.cancel") || "取消",
|
|
927
927
|
class: "btn btn-secondary",
|
|
928
928
|
handle: ($) => {
|
|
929
929
|
y($, !1);
|
|
930
930
|
}
|
|
931
931
|
}, {
|
|
932
932
|
name: "accept",
|
|
933
|
-
text:
|
|
933
|
+
text: M("messageBox.ok") || "确定",
|
|
934
934
|
class: "btn btn-primary",
|
|
935
935
|
handle: ($) => {
|
|
936
936
|
y($, !0);
|
|
937
937
|
}
|
|
938
|
-
}],
|
|
938
|
+
}], E = C(e.buttons && e.buttons.length ? e.buttons : x), I = N(() => !!c.value), R = N(() => !!p.value && !!E.value), O = C(), F = C(), S = C(!1), {
|
|
939
939
|
renderResizeBar: T,
|
|
940
940
|
maximize: P,
|
|
941
941
|
restore: V,
|
|
@@ -958,7 +958,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
958
958
|
$ !== Q && (w.value = $);
|
|
959
959
|
}), Z(() => e.modelValue, ($, Q) => {
|
|
960
960
|
$ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
|
|
961
|
-
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(
|
|
961
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(O.value, F.value, _.value), W());
|
|
962
962
|
}), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, j.value = e.draggable);
|
|
963
963
|
}), Z(() => e.showHeader, ($, Q) => {
|
|
964
964
|
$ !== Q && (s.value = $);
|
|
@@ -1042,13 +1042,13 @@ const at = /* @__PURE__ */ oe({
|
|
|
1042
1042
|
$.handle && await $.handle(Q, $) && t.emit("closed", Q);
|
|
1043
1043
|
}
|
|
1044
1044
|
function Ae($) {
|
|
1045
|
-
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (
|
|
1045
|
+
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (E.value = $.buttons), $.title && (w.value = $.title);
|
|
1046
1046
|
}
|
|
1047
1047
|
let ze = null, Oe = null;
|
|
1048
1048
|
Da(() => {
|
|
1049
1049
|
b.value = ce();
|
|
1050
1050
|
}), be(() => {
|
|
1051
|
-
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(
|
|
1051
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(O.value, F.value, _.value)), X.value && document.body.classList.add("modal-open"), ze = al(e, t), Oe = ol(e, t);
|
|
1052
1052
|
}), wt(() => {
|
|
1053
1053
|
G && G(), ze && ze.remove(), Oe && Oe.remove();
|
|
1054
1054
|
}), t.expose({
|
|
@@ -1081,7 +1081,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1081
1081
|
return v("div", {
|
|
1082
1082
|
class: "modal-footer",
|
|
1083
1083
|
style: rt.value
|
|
1084
|
-
}, [
|
|
1084
|
+
}, [E.value && E.value.map(($) => {
|
|
1085
1085
|
const Q = C($.disabled);
|
|
1086
1086
|
return v("button", {
|
|
1087
1087
|
name: $.name,
|
|
@@ -1098,7 +1098,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1098
1098
|
}
|
|
1099
1099
|
function Qe() {
|
|
1100
1100
|
return v("div", {
|
|
1101
|
-
ref:
|
|
1101
|
+
ref: O,
|
|
1102
1102
|
class: "modal-header",
|
|
1103
1103
|
style: $e.value
|
|
1104
1104
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
@@ -1676,16 +1676,16 @@ function zn(e, t, n) {
|
|
|
1676
1676
|
const p = d.$converter || g;
|
|
1677
1677
|
return typeof p == "string" && p && a.has(p) ? a.get(p) || null : p || null;
|
|
1678
1678
|
}
|
|
1679
|
-
function h(d, g, p, w, k, B = "",
|
|
1679
|
+
function h(d, g, p, w, k, B = "", M = "") {
|
|
1680
1680
|
return Object.keys(d).map((y) => {
|
|
1681
|
-
const x = C(1),
|
|
1681
|
+
const x = C(1), E = y, I = d[y], R = Object.keys(I), O = I.title, F = I.type, S = o.get(F) || { type: "input-group", enableClear: !1 }, T = I.editor ? Object.assign({}, S, I.editor) : Object.assign({}, S), P = u(R, I, g), V = s(R, I, g);
|
|
1682
1682
|
T.readonly = T.readonly === void 0 ? V() : T.readonly;
|
|
1683
|
-
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B,
|
|
1684
|
-
let j = c(I,
|
|
1683
|
+
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, M) : [], L = !0;
|
|
1684
|
+
let j = c(I, M);
|
|
1685
1685
|
const G = N({
|
|
1686
1686
|
get() {
|
|
1687
1687
|
if (x.value) {
|
|
1688
|
-
if (["class", "style"].find((de) => de ===
|
|
1688
|
+
if (["class", "style"].find((de) => de === E) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
1689
1689
|
return j.convertFrom(p, y, k, B);
|
|
1690
1690
|
const le = p[y];
|
|
1691
1691
|
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (le === void 0 || typeof le == "string" && le === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : le;
|
|
@@ -1695,42 +1695,42 @@ function zn(e, t, n) {
|
|
|
1695
1695
|
set(le) {
|
|
1696
1696
|
x.value += 1, j && j.convertTo ? (j.convertTo(w, y, le, k, B), j.convertTo(p, y, le, k, B)) : (w[y] = le, p[y] = le);
|
|
1697
1697
|
}
|
|
1698
|
-
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID:
|
|
1699
|
-
return g[
|
|
1698
|
+
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: E, propertyName: O, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: V, cascadeConfig: _, hideCascadeTitle: L, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
1699
|
+
return g[E] = X, X;
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
1702
|
function f(d, g, p = {}) {
|
|
1703
1703
|
const w = {}, k = e[d];
|
|
1704
|
-
return k && k.categories ? Object.keys(k.categories).map((
|
|
1705
|
-
const b = k.categories[
|
|
1706
|
-
return { categoryId:
|
|
1704
|
+
return k && k.categories ? Object.keys(k.categories).map((M) => {
|
|
1705
|
+
const b = k.categories[M], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
|
|
1706
|
+
return { categoryId: M, categoryName: y, properties: x };
|
|
1707
1707
|
}) : [];
|
|
1708
1708
|
}
|
|
1709
1709
|
function r(d, g, p, w, k = "") {
|
|
1710
|
-
const B = g.$ref.schema,
|
|
1710
|
+
const B = g.$ref.schema, M = g.$ref.converter, b = p[B], y = b.type, x = n(b), E = {}, I = e[y];
|
|
1711
1711
|
if (I && I.categories) {
|
|
1712
|
-
const R = I.categories[d],
|
|
1713
|
-
|
|
1714
|
-
R.properties[T].$converter =
|
|
1712
|
+
const R = I.categories[d], O = R == null ? void 0 : R.title;
|
|
1713
|
+
M && Object.keys(R.properties).forEach((T) => {
|
|
1714
|
+
R.properties[T].$converter = M;
|
|
1715
1715
|
});
|
|
1716
|
-
const F = (R == null ? void 0 : R.properties) || {}, S = h(F,
|
|
1717
|
-
return { categoryId: d, categoryName:
|
|
1716
|
+
const F = (R == null ? void 0 : R.properties) || {}, S = h(F, E, x, b, w, k);
|
|
1717
|
+
return { categoryId: d, categoryName: O, properties: S };
|
|
1718
1718
|
}
|
|
1719
1719
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
1720
1720
|
}
|
|
1721
1721
|
function m(d, g, p, w, k) {
|
|
1722
|
-
const B = d.type,
|
|
1722
|
+
const B = d.type, M = n(d), b = {};
|
|
1723
1723
|
let y = k || e[B];
|
|
1724
1724
|
if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
|
|
1725
1725
|
const x = [];
|
|
1726
|
-
return Object.keys(y.categories).map((
|
|
1727
|
-
const I = y.categories[
|
|
1726
|
+
return Object.keys(y.categories).map((E) => {
|
|
1727
|
+
const I = y.categories[E];
|
|
1728
1728
|
if (I.$ref) {
|
|
1729
|
-
x.push(r(
|
|
1729
|
+
x.push(r(E, I, d, g, w));
|
|
1730
1730
|
return;
|
|
1731
1731
|
}
|
|
1732
|
-
const R = I == null ? void 0 : I.title,
|
|
1733
|
-
x.push({ categoryId:
|
|
1732
|
+
const R = I == null ? void 0 : I.title, O = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName, S = I == null ? void 0 : I.hide, T = I == null ? void 0 : I.hideTitle, P = h(I.properties || {}, b, M, d, g, w, I.$converter), { setPropertyRelates: V } = I, _ = I == null ? void 0 : I.parentPropertyID;
|
|
1733
|
+
x.push({ categoryId: E, categoryName: R, tabId: O, tabName: F, hide: S, properties: P, hideTitle: T, setPropertyRelates: V, parentPropertyID: _ });
|
|
1734
1734
|
}), x;
|
|
1735
1735
|
}
|
|
1736
1736
|
return [];
|
|
@@ -2092,11 +2092,11 @@ var zl = { exports: {} };
|
|
|
2092
2092
|
2: [function(n, a, o) {
|
|
2093
2093
|
(function(l) {
|
|
2094
2094
|
var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
|
|
2095
|
-
function f(
|
|
2095
|
+
function f(O, F) {
|
|
2096
2096
|
var S = arguments.length;
|
|
2097
|
-
S === 1 && Array.isArray(
|
|
2097
|
+
S === 1 && Array.isArray(O) === !1 && (F = O, O = []);
|
|
2098
2098
|
var T, P, V, _, L, j, G, W, ee, ce = null, ve, X, le = !1, de = 0, ne, U = F || {};
|
|
2099
|
-
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = mt), U.containers === void 0 && (U.containers =
|
|
2099
|
+
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = mt), U.containers === void 0 && (U.containers = O || []), U.isContainer === void 0 && (U.isContainer = w), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = c.body);
|
|
2100
2100
|
var ae = i({
|
|
2101
2101
|
containers: U.containers,
|
|
2102
2102
|
start: Oe,
|
|
@@ -2161,7 +2161,7 @@ var zl = { exports: {} };
|
|
|
2161
2161
|
return;
|
|
2162
2162
|
var H = b(D);
|
|
2163
2163
|
if (H && !U.invalid(D, z)) {
|
|
2164
|
-
var Y = U.moves(D, H, z,
|
|
2164
|
+
var Y = U.moves(D, H, z, E(D));
|
|
2165
2165
|
if (Y)
|
|
2166
2166
|
return {
|
|
2167
2167
|
item: D,
|
|
@@ -2178,7 +2178,7 @@ var zl = { exports: {} };
|
|
|
2178
2178
|
z && He(z);
|
|
2179
2179
|
}
|
|
2180
2180
|
function He(D) {
|
|
2181
|
-
Xt(D.item, D.source) && (W = D.item.cloneNode(!0), ae.emit("cloned", W, D.item, "copy")), P = D.source, V = D.item, j = G =
|
|
2181
|
+
Xt(D.item, D.source) && (W = D.item.cloneNode(!0), ae.emit("cloned", W, D.item, "copy")), P = D.source, V = D.item, j = G = E(D.item), ae.dragging = !0, ae.emit("drag", V, P);
|
|
2182
2182
|
}
|
|
2183
2183
|
function mt() {
|
|
2184
2184
|
return !1;
|
|
@@ -2220,7 +2220,7 @@ var zl = { exports: {} };
|
|
|
2220
2220
|
}
|
|
2221
2221
|
function ue(D, z) {
|
|
2222
2222
|
var H;
|
|
2223
|
-
return z !== void 0 ? H = z : T ? H = G : H =
|
|
2223
|
+
return z !== void 0 ? H = z : T ? H = G : H = E(W || V), D === P && H === j;
|
|
2224
2224
|
}
|
|
2225
2225
|
function fe(D, z, H) {
|
|
2226
2226
|
for (var Y = D; Y && !K(); )
|
|
@@ -2268,7 +2268,7 @@ var zl = { exports: {} };
|
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
2270
|
function Vt(D, z, H) {
|
|
2271
|
-
(D === z || D ===
|
|
2271
|
+
(D === z || D === E(z)) && (G = E(z)), (D === null && H || D !== z && D !== E(z)) && (G = D);
|
|
2272
2272
|
}
|
|
2273
2273
|
function $t(D) {
|
|
2274
2274
|
s.rm(D, "gu-hide");
|
|
@@ -2384,17 +2384,17 @@ var zl = { exports: {} };
|
|
|
2384
2384
|
var Ee = Y - pe.top, xe = H - pe.left, he = pe.bottom - Y, vt = pe.right - H, ht = Math.min(xe, vt, Ee, he), gt;
|
|
2385
2385
|
return le ? gt = vt < xe : gt = he === ht || vt === ht || xe === ht, Me(gt);
|
|
2386
2386
|
}
|
|
2387
|
-
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top +
|
|
2387
|
+
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + M(pe) / 2);
|
|
2388
2388
|
}
|
|
2389
2389
|
function Me(pe) {
|
|
2390
|
-
return pe ?
|
|
2390
|
+
return pe ? E(z) : z;
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
2393
|
function Xt(D, z) {
|
|
2394
2394
|
return typeof U.copy == "boolean" ? U.copy : U.copy(D, z);
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
|
-
function r(
|
|
2397
|
+
function r(O) {
|
|
2398
2398
|
const F = Array.from(window.scrollContainerList);
|
|
2399
2399
|
if (F.length === 1) {
|
|
2400
2400
|
const T = Array.from(window.scrollContainerList)[0];
|
|
@@ -2402,18 +2402,18 @@ var zl = { exports: {} };
|
|
|
2402
2402
|
}
|
|
2403
2403
|
const S = m(F);
|
|
2404
2404
|
for (const T of S)
|
|
2405
|
-
if (T.contains(
|
|
2405
|
+
if (T.contains(O))
|
|
2406
2406
|
return T;
|
|
2407
2407
|
return null;
|
|
2408
2408
|
}
|
|
2409
|
-
function m(
|
|
2409
|
+
function m(O) {
|
|
2410
2410
|
const F = [];
|
|
2411
|
-
return
|
|
2411
|
+
return O.forEach((S) => {
|
|
2412
2412
|
const T = document.getElementById(S);
|
|
2413
2413
|
T && F.push(T);
|
|
2414
2414
|
}), F.sort((S, T) => S.contains(T) ? 1 : T.contains(S) ? -1 : 0), F;
|
|
2415
2415
|
}
|
|
2416
|
-
function d(
|
|
2416
|
+
function d(O, F, S, T) {
|
|
2417
2417
|
var P = {
|
|
2418
2418
|
mouseup: "touchend",
|
|
2419
2419
|
mousedown: "touchstart",
|
|
@@ -2427,23 +2427,23 @@ var zl = { exports: {} };
|
|
|
2427
2427
|
mousedown: "MSPointerDown",
|
|
2428
2428
|
mousemove: "MSPointerMove"
|
|
2429
2429
|
};
|
|
2430
|
-
l.navigator.pointerEnabled ? u[F](
|
|
2430
|
+
l.navigator.pointerEnabled ? u[F](O, V[S], T) : l.navigator.msPointerEnabled ? u[F](O, _[S], T) : (u[F](O, P[S], T), u[F](O, S, T));
|
|
2431
2431
|
}
|
|
2432
|
-
function g(
|
|
2433
|
-
if (
|
|
2434
|
-
return
|
|
2435
|
-
if (
|
|
2436
|
-
return
|
|
2437
|
-
if (
|
|
2438
|
-
return
|
|
2439
|
-
var F =
|
|
2432
|
+
function g(O) {
|
|
2433
|
+
if (O.touches !== void 0)
|
|
2434
|
+
return O.touches.length;
|
|
2435
|
+
if (O.which !== void 0 && O.which !== 0)
|
|
2436
|
+
return O.which;
|
|
2437
|
+
if (O.buttons !== void 0)
|
|
2438
|
+
return O.buttons;
|
|
2439
|
+
var F = O.button;
|
|
2440
2440
|
if (F !== void 0)
|
|
2441
2441
|
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2442
2442
|
}
|
|
2443
|
-
function p(
|
|
2444
|
-
|
|
2445
|
-
var T =
|
|
2446
|
-
return
|
|
2443
|
+
function p(O, F, S) {
|
|
2444
|
+
O = O || {};
|
|
2445
|
+
var T = O.className || "", P;
|
|
2446
|
+
return O.className += " gu-hide", P = c.elementFromPoint(F, S), O.className = T, P;
|
|
2447
2447
|
}
|
|
2448
2448
|
function w() {
|
|
2449
2449
|
return !1;
|
|
@@ -2451,42 +2451,42 @@ var zl = { exports: {} };
|
|
|
2451
2451
|
function k() {
|
|
2452
2452
|
return !0;
|
|
2453
2453
|
}
|
|
2454
|
-
function B(
|
|
2455
|
-
return
|
|
2454
|
+
function B(O) {
|
|
2455
|
+
return O.width || O.right - O.left;
|
|
2456
2456
|
}
|
|
2457
|
-
function O
|
|
2458
|
-
return
|
|
2457
|
+
function M(O) {
|
|
2458
|
+
return O.height || O.bottom - O.top;
|
|
2459
2459
|
}
|
|
2460
|
-
function b(
|
|
2461
|
-
return
|
|
2460
|
+
function b(O) {
|
|
2461
|
+
return O.parentNode === c ? null : O.parentNode;
|
|
2462
2462
|
}
|
|
2463
|
-
function y(
|
|
2464
|
-
return
|
|
2463
|
+
function y(O) {
|
|
2464
|
+
return O.tagName === "INPUT" || O.tagName === "TEXTAREA" || O.tagName === "SELECT" || x(O);
|
|
2465
2465
|
}
|
|
2466
|
-
function x(
|
|
2467
|
-
return !
|
|
2466
|
+
function x(O) {
|
|
2467
|
+
return !O || O.contentEditable === "false" ? !1 : O.contentEditable === "true" ? !0 : x(b(O));
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2470
|
-
return
|
|
2469
|
+
function E(O) {
|
|
2470
|
+
return O.nextElementSibling || F();
|
|
2471
2471
|
function F() {
|
|
2472
|
-
var S =
|
|
2472
|
+
var S = O;
|
|
2473
2473
|
do
|
|
2474
2474
|
S = S.nextSibling;
|
|
2475
2475
|
while (S && S.nodeType !== 1);
|
|
2476
2476
|
return S;
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
|
-
function I(
|
|
2480
|
-
return
|
|
2479
|
+
function I(O) {
|
|
2480
|
+
return O.targetTouches && O.targetTouches.length ? O.targetTouches[0] : O.changedTouches && O.changedTouches.length ? O.changedTouches[0] : O;
|
|
2481
2481
|
}
|
|
2482
|
-
function R(
|
|
2482
|
+
function R(O, F) {
|
|
2483
2483
|
var S = I(F), T = {
|
|
2484
2484
|
pageX: "clientX",
|
|
2485
2485
|
// IE8
|
|
2486
2486
|
pageY: "clientY"
|
|
2487
2487
|
// IE8
|
|
2488
2488
|
};
|
|
2489
|
-
return
|
|
2489
|
+
return O in T && !(O in S) && T[O] in S && (O = T[O]), S[O];
|
|
2490
2490
|
}
|
|
2491
2491
|
a.exports = f;
|
|
2492
2492
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2549,26 +2549,26 @@ var zl = { exports: {} };
|
|
|
2549
2549
|
remove: h,
|
|
2550
2550
|
fabricate: p
|
|
2551
2551
|
};
|
|
2552
|
-
function r(b, y, x,
|
|
2553
|
-
return b.addEventListener(y, x,
|
|
2552
|
+
function r(b, y, x, E) {
|
|
2553
|
+
return b.addEventListener(y, x, E);
|
|
2554
2554
|
}
|
|
2555
2555
|
function m(b, y, x) {
|
|
2556
2556
|
return b.attachEvent("on" + y, k(b, y, x));
|
|
2557
2557
|
}
|
|
2558
|
-
function d(b, y, x,
|
|
2559
|
-
return b.removeEventListener(y, x,
|
|
2558
|
+
function d(b, y, x, E) {
|
|
2559
|
+
return b.removeEventListener(y, x, E);
|
|
2560
2560
|
}
|
|
2561
2561
|
function g(b, y, x) {
|
|
2562
|
-
var
|
|
2563
|
-
if (
|
|
2564
|
-
return b.detachEvent("on" + y,
|
|
2562
|
+
var E = B(b, y, x);
|
|
2563
|
+
if (E)
|
|
2564
|
+
return b.detachEvent("on" + y, E);
|
|
2565
2565
|
}
|
|
2566
2566
|
function p(b, y, x) {
|
|
2567
|
-
var
|
|
2568
|
-
b.dispatchEvent ? b.dispatchEvent(
|
|
2567
|
+
var E = u.indexOf(y) === -1 ? R() : I();
|
|
2568
|
+
b.dispatchEvent ? b.dispatchEvent(E) : b.fireEvent("on" + y, E);
|
|
2569
2569
|
function I() {
|
|
2570
|
-
var
|
|
2571
|
-
return s.createEvent ? (
|
|
2570
|
+
var O;
|
|
2571
|
+
return s.createEvent ? (O = s.createEvent("Event"), O.initEvent(y, !0, !0)) : s.createEventObject && (O = s.createEventObject()), O;
|
|
2572
2572
|
}
|
|
2573
2573
|
function R() {
|
|
2574
2574
|
return new i(y, { detail: x });
|
|
@@ -2585,26 +2585,26 @@ var zl = { exports: {} };
|
|
|
2585
2585
|
};
|
|
2586
2586
|
}
|
|
2587
2587
|
function k(b, y, x) {
|
|
2588
|
-
var
|
|
2588
|
+
var E = B(b, y, x) || w(b, y, x);
|
|
2589
2589
|
return f.push({
|
|
2590
|
-
wrapper:
|
|
2590
|
+
wrapper: E,
|
|
2591
2591
|
element: b,
|
|
2592
2592
|
type: y,
|
|
2593
2593
|
fn: x
|
|
2594
|
-
}),
|
|
2594
|
+
}), E;
|
|
2595
2595
|
}
|
|
2596
2596
|
function B(b, y, x) {
|
|
2597
|
-
var
|
|
2598
|
-
if (
|
|
2599
|
-
var I = f[
|
|
2600
|
-
return f.splice(
|
|
2597
|
+
var E = M(b, y, x);
|
|
2598
|
+
if (E) {
|
|
2599
|
+
var I = f[E].wrapper;
|
|
2600
|
+
return f.splice(E, 1), I;
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
var
|
|
2605
|
-
for (
|
|
2606
|
-
if (I = f[
|
|
2607
|
-
return
|
|
2603
|
+
function M(b, y, x) {
|
|
2604
|
+
var E, I;
|
|
2605
|
+
for (E = 0; E < f.length; E++)
|
|
2606
|
+
if (I = f[E], I.element === b && I.type === y && I.fn === x)
|
|
2607
|
+
return E;
|
|
2608
2608
|
}
|
|
2609
2609
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2610
2610
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2662,33 +2662,33 @@ var zl = { exports: {} };
|
|
|
2662
2662
|
u = c;
|
|
2663
2663
|
}
|
|
2664
2664
|
})();
|
|
2665
|
-
function h(
|
|
2665
|
+
function h(M) {
|
|
2666
2666
|
if (i === setTimeout)
|
|
2667
|
-
return setTimeout(
|
|
2667
|
+
return setTimeout(M, 0);
|
|
2668
2668
|
if ((i === s || !i) && setTimeout)
|
|
2669
|
-
return i = setTimeout, setTimeout(
|
|
2669
|
+
return i = setTimeout, setTimeout(M, 0);
|
|
2670
2670
|
try {
|
|
2671
|
-
return i(
|
|
2671
|
+
return i(M, 0);
|
|
2672
2672
|
} catch {
|
|
2673
2673
|
try {
|
|
2674
|
-
return i.call(null,
|
|
2674
|
+
return i.call(null, M, 0);
|
|
2675
2675
|
} catch {
|
|
2676
|
-
return i.call(this,
|
|
2676
|
+
return i.call(this, M, 0);
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
}
|
|
2680
|
-
function f(
|
|
2680
|
+
function f(M) {
|
|
2681
2681
|
if (u === clearTimeout)
|
|
2682
|
-
return clearTimeout(
|
|
2682
|
+
return clearTimeout(M);
|
|
2683
2683
|
if ((u === c || !u) && clearTimeout)
|
|
2684
|
-
return u = clearTimeout, clearTimeout(
|
|
2684
|
+
return u = clearTimeout, clearTimeout(M);
|
|
2685
2685
|
try {
|
|
2686
|
-
return u(
|
|
2686
|
+
return u(M);
|
|
2687
2687
|
} catch {
|
|
2688
2688
|
try {
|
|
2689
|
-
return u.call(null,
|
|
2689
|
+
return u.call(null, M);
|
|
2690
2690
|
} catch {
|
|
2691
|
-
return u.call(this,
|
|
2691
|
+
return u.call(this, M);
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
@@ -2698,38 +2698,38 @@ var zl = { exports: {} };
|
|
|
2698
2698
|
}
|
|
2699
2699
|
function w() {
|
|
2700
2700
|
if (!m) {
|
|
2701
|
-
var
|
|
2701
|
+
var M = h(p);
|
|
2702
2702
|
m = !0;
|
|
2703
2703
|
for (var b = r.length; b; ) {
|
|
2704
2704
|
for (d = r, r = []; ++g < b; )
|
|
2705
2705
|
d && d[g].run();
|
|
2706
2706
|
g = -1, b = r.length;
|
|
2707
2707
|
}
|
|
2708
|
-
d = null, m = !1, f(
|
|
2708
|
+
d = null, m = !1, f(M);
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
|
-
l.nextTick = function(
|
|
2711
|
+
l.nextTick = function(M) {
|
|
2712
2712
|
var b = new Array(arguments.length - 1);
|
|
2713
2713
|
if (arguments.length > 1)
|
|
2714
2714
|
for (var y = 1; y < arguments.length; y++)
|
|
2715
2715
|
b[y - 1] = arguments[y];
|
|
2716
|
-
r.push(new k(
|
|
2716
|
+
r.push(new k(M, b)), r.length === 1 && !m && h(w);
|
|
2717
2717
|
};
|
|
2718
|
-
function k(
|
|
2719
|
-
this.fun =
|
|
2718
|
+
function k(M, b) {
|
|
2719
|
+
this.fun = M, this.array = b;
|
|
2720
2720
|
}
|
|
2721
2721
|
k.prototype.run = function() {
|
|
2722
2722
|
this.fun.apply(null, this.array);
|
|
2723
2723
|
}, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
|
|
2724
2724
|
function B() {
|
|
2725
2725
|
}
|
|
2726
|
-
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(
|
|
2726
|
+
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(M) {
|
|
2727
2727
|
return [];
|
|
2728
|
-
}, l.binding = function(
|
|
2728
|
+
}, l.binding = function(M) {
|
|
2729
2729
|
throw new Error("process.binding is not supported");
|
|
2730
2730
|
}, l.cwd = function() {
|
|
2731
2731
|
return "/";
|
|
2732
|
-
}, l.chdir = function(
|
|
2732
|
+
}, l.chdir = function(M) {
|
|
2733
2733
|
throw new Error("process.chdir is not supported");
|
|
2734
2734
|
}, l.umask = function() {
|
|
2735
2735
|
return 0;
|
|
@@ -2810,12 +2810,12 @@ const Hl = {
|
|
|
2810
2810
|
locale: n,
|
|
2811
2811
|
t: a
|
|
2812
2812
|
} = St(), o = C(e.animate), l = "fadeOut", i = N(() => e.options), u = C(!1), s = N(() => i.value.title && i.value.message), c = N(() => !i.value.title && i.value.message), h = N(() => {
|
|
2813
|
-
const
|
|
2813
|
+
const M = {
|
|
2814
2814
|
animated: u.value,
|
|
2815
2815
|
toast: !0,
|
|
2816
2816
|
"toast--only-content": !s.value
|
|
2817
2817
|
};
|
|
2818
|
-
return
|
|
2818
|
+
return M[e.animate] = !1, M[l] = u.value, M["toasty-type-" + i.value.type] = !0, i.value.theme && (M[i.value.theme] = !0), M;
|
|
2819
2819
|
}), f = N(() => {
|
|
2820
2820
|
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
2821
2821
|
"f-icon": !0
|
|
@@ -2825,24 +2825,24 @@ const Hl = {
|
|
|
2825
2825
|
wordBreak: "keep-all",
|
|
2826
2826
|
overflowWrap: "break-word"
|
|
2827
2827
|
} : {});
|
|
2828
|
-
function p(
|
|
2829
|
-
|
|
2828
|
+
function p(M) {
|
|
2829
|
+
M.stopPropagation(), M.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2830
2830
|
t.emit("close", i.value);
|
|
2831
2831
|
}, 200);
|
|
2832
2832
|
}
|
|
2833
|
-
function w(
|
|
2833
|
+
function w(M, b) {
|
|
2834
2834
|
}
|
|
2835
|
-
function k(
|
|
2836
|
-
return `f-preten-link ${
|
|
2835
|
+
function k(M) {
|
|
2836
|
+
return `f-preten-link ${M.customClass ? M.customClass : ""}`;
|
|
2837
2837
|
}
|
|
2838
2838
|
Z(o, () => {
|
|
2839
2839
|
o.value;
|
|
2840
2840
|
});
|
|
2841
2841
|
const B = () => {
|
|
2842
|
-
var
|
|
2842
|
+
var M;
|
|
2843
2843
|
return v(ot, null, [v("div", {
|
|
2844
2844
|
class: "after-toast-msg text-right"
|
|
2845
|
-
}, [!t.slots.default && ((
|
|
2845
|
+
}, [!t.slots.default && ((M = i.value.buttons) == null ? void 0 : M.map((b) => v("span", {
|
|
2846
2846
|
class: k(b),
|
|
2847
2847
|
onClick: (y) => void 0
|
|
2848
2848
|
}, [b.text]))), t.slots.default && t.slots.default()])]);
|
|
@@ -3213,19 +3213,19 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3213
3213
|
} = l, {
|
|
3214
3214
|
columnContext: k,
|
|
3215
3215
|
hasLeftFixedColumn: B,
|
|
3216
|
-
hasRightFixedColumn:
|
|
3216
|
+
hasRightFixedColumn: M
|
|
3217
3217
|
} = i, {
|
|
3218
3218
|
gridDataStyle: b,
|
|
3219
3219
|
leftFixedGridDataStyle: y,
|
|
3220
3220
|
rightFixedGridDataStyle: x
|
|
3221
3221
|
} = m, {
|
|
3222
|
-
renderDataRow:
|
|
3223
|
-
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [
|
|
3222
|
+
renderDataRow: E
|
|
3223
|
+
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [E];
|
|
3224
3224
|
function R(P, V) {
|
|
3225
3225
|
const _ = w(P);
|
|
3226
3226
|
return p.value.filter((L) => L.visible !== !1).map((L, j) => I[L.type](L, _, V, j));
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function O() {
|
|
3229
3229
|
return v("div", {
|
|
3230
3230
|
ref: a,
|
|
3231
3231
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3254,7 +3254,7 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
function T() {
|
|
3256
3256
|
const P = [];
|
|
3257
|
-
return B.value && P.push(
|
|
3257
|
+
return B.value && P.push(O()), P.push(F()), M.value && P.push(S()), P;
|
|
3258
3258
|
}
|
|
3259
3259
|
return {
|
|
3260
3260
|
renderDataArea: T
|
|
@@ -3271,14 +3271,14 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3271
3271
|
} = i, s = C(), c = C(), h = C(), f = C(), r = C(), m = C([]), d = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), p = Xa(e, i), w = Ja(e, t), k = Qa(e), {
|
|
3272
3272
|
collapseField: B
|
|
3273
3273
|
} = k, {
|
|
3274
|
-
showLoading:
|
|
3274
|
+
showLoading: M,
|
|
3275
3275
|
renderLoading: b
|
|
3276
3276
|
} = Za(e, s), y = Ka(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3277
3277
|
dataView: x
|
|
3278
|
-
} = y,
|
|
3278
|
+
} = y, E = eo(e, y, i, m, t), {
|
|
3279
3279
|
showSelection: I,
|
|
3280
3280
|
selectedValues: R
|
|
3281
|
-
} =
|
|
3281
|
+
} = E, O = to(e, m, y, i, E, t), F = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), T = no(e, y), {
|
|
3282
3282
|
shouldRenderPagination: P
|
|
3283
3283
|
} = T, {
|
|
3284
3284
|
containerStyleObject: V
|
|
@@ -3297,9 +3297,9 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3297
3297
|
updateColumnRenderContext: X
|
|
3298
3298
|
} = W;
|
|
3299
3299
|
ce(y, ee);
|
|
3300
|
-
const le = so(e, ve), de = uo(e, t,
|
|
3300
|
+
const le = so(e, ve), de = uo(e, t, E, i), ne = co(e, t, i, de, m), U = fo(e), ae = po(e, ne, U), Xe = mo(e, y, ne, k, i, U, ae), $e = yo(e, l, y, S, 0, Xe), {
|
|
3301
3301
|
getVisualData: Be
|
|
3302
|
-
} = $e, it = vo(e, ve), Je = ho(e,
|
|
3302
|
+
} = $e, it = vo(e, ve), Je = ho(e, E), {
|
|
3303
3303
|
sidebarWidth: rt
|
|
3304
3304
|
} = Je, se = go(e, y, m, ve, $e, S, 0, rt), {
|
|
3305
3305
|
onWheel: pt,
|
|
@@ -3324,13 +3324,13 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3324
3324
|
"fv-grid-wrap-content": g.value
|
|
3325
3325
|
})), {
|
|
3326
3326
|
renderDataArea: ue
|
|
3327
|
-
} = Ul(e, t, h, f, r, it, W, y, ne, k, de,
|
|
3327
|
+
} = Ul(e, t, h, f, r, it, W, y, ne, k, de, E, O, se, $e, U, m), {
|
|
3328
3328
|
renderGridHeader: fe,
|
|
3329
3329
|
renderGridColumnResizeOverlay: Ne,
|
|
3330
3330
|
shouldShowHeader: Vt
|
|
3331
|
-
} = So(e, t, c, f, r, W, y, ut, st, w, We, Qe, le,
|
|
3331
|
+
} = So(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, E, Je, ee, se, Oe, m), {
|
|
3332
3332
|
renderDataGridSidebar: $t
|
|
3333
|
-
} = xo(e, de,
|
|
3333
|
+
} = xo(e, de, E, Je, se), {
|
|
3334
3334
|
renderDisableMask: At
|
|
3335
3335
|
} = Fo(), {
|
|
3336
3336
|
renderHorizontalScrollbar: zt
|
|
@@ -3347,7 +3347,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3347
3347
|
be(() => {
|
|
3348
3348
|
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0, S.value + 0 - 1), Ua(c.value, Wt), Pe(), Ue(() => {
|
|
3349
3349
|
c.value && (Ae.value = c.value.clientWidth), h.value && (Oe.value = h.value.clientWidth, ze.value = h.value.clientHeight);
|
|
3350
|
-
})),
|
|
3350
|
+
})), M.value && b();
|
|
3351
3351
|
}), wt(() => {
|
|
3352
3352
|
}), Z(Oe, () => {
|
|
3353
3353
|
c.value && Pe();
|
|
@@ -3359,7 +3359,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3359
3359
|
y.expandTo(q), y.reOrderVisibleIndex(), He();
|
|
3360
3360
|
}
|
|
3361
3361
|
function yt() {
|
|
3362
|
-
const q =
|
|
3362
|
+
const q = E.getSelectionRow();
|
|
3363
3363
|
return q ? q.dataIndex - 1 : -1;
|
|
3364
3364
|
}
|
|
3365
3365
|
function Gt() {
|
|
@@ -3375,8 +3375,8 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3375
3375
|
y.insertNewChildDataItems(q, ge);
|
|
3376
3376
|
}
|
|
3377
3377
|
function Yt() {
|
|
3378
|
-
const q = yt(), J =
|
|
3379
|
-
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J &&
|
|
3378
|
+
const q = yt(), J = O.getNextSelectableHierarchyItemId(q);
|
|
3379
|
+
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && O.selectItemById(J);
|
|
3380
3380
|
}
|
|
3381
3381
|
function Tt(q) {
|
|
3382
3382
|
ne.onEditingRow(q);
|
|
@@ -3397,7 +3397,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3397
3397
|
q && (y.load(q), y.reOrderVisibleIndex(), J != null && J.keepScrollPosition ? se.scrollTo(se.offsetY.value) : He());
|
|
3398
3398
|
}
|
|
3399
3399
|
function Y(q) {
|
|
3400
|
-
|
|
3400
|
+
O.selectItemById(q);
|
|
3401
3401
|
}
|
|
3402
3402
|
function K(q) {
|
|
3403
3403
|
const J = m.value.find((me) => me.raw[i.idField.value] === q);
|
|
@@ -3407,25 +3407,25 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3407
3407
|
de.activeRowById(q);
|
|
3408
3408
|
}
|
|
3409
3409
|
function Te(q) {
|
|
3410
|
-
|
|
3410
|
+
O.selectItemByIds(q);
|
|
3411
3411
|
}
|
|
3412
3412
|
function Ce() {
|
|
3413
|
-
return
|
|
3413
|
+
return E.getSelectedItems();
|
|
3414
3414
|
}
|
|
3415
3415
|
function Se() {
|
|
3416
|
-
|
|
3416
|
+
E.clearSelection();
|
|
3417
3417
|
}
|
|
3418
3418
|
const Me = N(() => !m.value || !m.value.length), {
|
|
3419
3419
|
renderEmpty: pe
|
|
3420
3420
|
} = Oo(e, t);
|
|
3421
3421
|
function Ee() {
|
|
3422
|
-
return
|
|
3422
|
+
return E.getSelectionRow();
|
|
3423
3423
|
}
|
|
3424
3424
|
function xe(q) {
|
|
3425
|
-
|
|
3425
|
+
O.unSelectItemByIds(q);
|
|
3426
3426
|
}
|
|
3427
3427
|
function he() {
|
|
3428
|
-
return
|
|
3428
|
+
return E.currentSelectedDataId.value;
|
|
3429
3429
|
}
|
|
3430
3430
|
function vt(q, J, me) {
|
|
3431
3431
|
const ge = x.value.find((Fe) => Fe[u.value] === q);
|
|
@@ -3479,7 +3479,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3479
3479
|
me && de.changeRow(me);
|
|
3480
3480
|
}
|
|
3481
3481
|
function Sa() {
|
|
3482
|
-
|
|
3482
|
+
E.keepSelectingOnPaging.value || Se(), y.updateVisibleDataSummary(m.value);
|
|
3483
3483
|
}
|
|
3484
3484
|
t.expose({
|
|
3485
3485
|
activeRowById: te,
|
|
@@ -3517,7 +3517,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3517
3517
|
...V.value,
|
|
3518
3518
|
borderRadius: "5px"
|
|
3519
3519
|
}));
|
|
3520
|
-
Mo(e, t, y, se, T,
|
|
3520
|
+
Mo(e, t, y, se, T, E);
|
|
3521
3521
|
const Ta = N(() => ({
|
|
3522
3522
|
"d-flex": !0,
|
|
3523
3523
|
"justify-content-between": P.value && I.value,
|
|
@@ -3687,7 +3687,7 @@ const Jl = "https://json-schema.org/draft/2020-12/schema", Ql = "https://farris-
|
|
|
3687
3687
|
};
|
|
3688
3688
|
Ve(ui, ai, Yl, Xl, si);
|
|
3689
3689
|
function Zn(e, t, n) {
|
|
3690
|
-
var
|
|
3690
|
+
var O;
|
|
3691
3691
|
const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
|
|
3692
3692
|
let i;
|
|
3693
3693
|
function u() {
|
|
@@ -3746,7 +3746,7 @@ function Zn(e, t, n) {
|
|
|
3746
3746
|
if (n && n.getPropsConfig)
|
|
3747
3747
|
return n.getPropsConfig(...F);
|
|
3748
3748
|
}
|
|
3749
|
-
function
|
|
3749
|
+
function M(F) {
|
|
3750
3750
|
if (!F)
|
|
3751
3751
|
return;
|
|
3752
3752
|
const S = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
|
|
@@ -3762,7 +3762,7 @@ function Zn(e, t, n) {
|
|
|
3762
3762
|
T.removeCommunicationInComponent(S);
|
|
3763
3763
|
}
|
|
3764
3764
|
function y(F) {
|
|
3765
|
-
n && n.onRemoveComponent && n.onRemoveComponent(),
|
|
3765
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), M(F), b(F), t != null && t.schema.contents && t.schema.contents.map((S) => {
|
|
3766
3766
|
let T = S.id;
|
|
3767
3767
|
S.type === "component-ref" && (T = S.component);
|
|
3768
3768
|
const P = e.value.querySelectorAll(`#${T}-design-item`);
|
|
@@ -3776,7 +3776,7 @@ function Zn(e, t, n) {
|
|
|
3776
3776
|
if (n && n.getCustomButtons)
|
|
3777
3777
|
return n.getCustomButtons();
|
|
3778
3778
|
}
|
|
3779
|
-
function
|
|
3779
|
+
function E(F) {
|
|
3780
3780
|
var T, P;
|
|
3781
3781
|
if (!((T = t == null ? void 0 : t.schema) != null && T.id))
|
|
3782
3782
|
return;
|
|
@@ -3799,7 +3799,7 @@ function Zn(e, t, n) {
|
|
|
3799
3799
|
function I(F) {
|
|
3800
3800
|
var V;
|
|
3801
3801
|
const { changeObject: S } = F, { propertyID: T, propertyValue: P } = S;
|
|
3802
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((V = F == null ? void 0 : F.changeObject) == null ? void 0 : V.propertyID) && T && P && (
|
|
3802
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((V = F == null ? void 0 : F.changeObject) == null ? void 0 : V.propertyID) && T && P && (E(), i)) {
|
|
3803
3803
|
const _ = i.getControlBasicInfoMap(), L = _.keys().toArray().filter((j) => {
|
|
3804
3804
|
var G, W;
|
|
3805
3805
|
return ((G = _.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
@@ -3821,7 +3821,7 @@ function Zn(e, t, n) {
|
|
|
3821
3821
|
canNested: !h(),
|
|
3822
3822
|
contents: t == null ? void 0 : t.schema.contents,
|
|
3823
3823
|
elementRef: e,
|
|
3824
|
-
parent: (
|
|
3824
|
+
parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
|
|
3825
3825
|
schema: t == null ? void 0 : t.schema,
|
|
3826
3826
|
styles: a,
|
|
3827
3827
|
designerClass: o,
|
|
@@ -3839,7 +3839,7 @@ function Zn(e, t, n) {
|
|
|
3839
3839
|
onRemoveComponent: y,
|
|
3840
3840
|
getCustomButtons: x,
|
|
3841
3841
|
onPropertyChanged: R,
|
|
3842
|
-
setComponentBasicInfoMap:
|
|
3842
|
+
setComponentBasicInfoMap: E,
|
|
3843
3843
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
3844
3844
|
}, l;
|
|
3845
3845
|
}
|
|
@@ -4660,44 +4660,44 @@ function Qi(e, t, n, a, o) {
|
|
|
4660
4660
|
"f-state-focus": d.value,
|
|
4661
4661
|
"input-group--has-clear": e.enableClear && c.value
|
|
4662
4662
|
}));
|
|
4663
|
-
function w(
|
|
4664
|
-
n.value =
|
|
4663
|
+
function w(O, F = !0) {
|
|
4664
|
+
n.value = O, F && (t.emit("change", O), t.emit("update:modelValue", O));
|
|
4665
4665
|
}
|
|
4666
|
-
function k(
|
|
4667
|
-
u.value = !1, w(
|
|
4666
|
+
function k(O) {
|
|
4667
|
+
u.value = !1, w(O, !0);
|
|
4668
4668
|
}
|
|
4669
4669
|
Z(
|
|
4670
4670
|
() => e.modelValue,
|
|
4671
|
-
(
|
|
4672
|
-
n.value =
|
|
4671
|
+
(O) => {
|
|
4672
|
+
n.value = O;
|
|
4673
4673
|
}
|
|
4674
4674
|
);
|
|
4675
|
-
function B(
|
|
4676
|
-
m.value = !1, t.emit("blur",
|
|
4675
|
+
function B(O) {
|
|
4676
|
+
m.value = !1, t.emit("blur", O), O.stopPropagation();
|
|
4677
4677
|
}
|
|
4678
|
-
function O
|
|
4679
|
-
t.emit("click",
|
|
4678
|
+
function M(O) {
|
|
4679
|
+
t.emit("click", O), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
|
|
4680
4680
|
}
|
|
4681
|
-
function b(
|
|
4682
|
-
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus",
|
|
4681
|
+
function b(O) {
|
|
4682
|
+
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", O), i.value && !u.value && o.popup()));
|
|
4683
4683
|
}
|
|
4684
|
-
function y(
|
|
4685
|
-
t.emit("input",
|
|
4686
|
-
const F =
|
|
4684
|
+
function y(O) {
|
|
4685
|
+
t.emit("input", O);
|
|
4686
|
+
const F = O.target.value;
|
|
4687
4687
|
a.value = F, n.value !== F && w(F, e.updateOn === "change"), l.value && !u.value && o.popup();
|
|
4688
4688
|
}
|
|
4689
|
-
function x(
|
|
4690
|
-
|
|
4689
|
+
function x(O) {
|
|
4690
|
+
O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4693
|
-
t.emit("keydown",
|
|
4692
|
+
function E(O) {
|
|
4693
|
+
t.emit("keydown", O);
|
|
4694
4694
|
}
|
|
4695
|
-
function I(
|
|
4696
|
-
|
|
4695
|
+
function I(O) {
|
|
4696
|
+
O.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", O);
|
|
4697
4697
|
}
|
|
4698
|
-
function R(
|
|
4699
|
-
const F =
|
|
4700
|
-
|
|
4698
|
+
function R(O) {
|
|
4699
|
+
const F = O.target.value;
|
|
4700
|
+
O.stopPropagation(), w(F);
|
|
4701
4701
|
}
|
|
4702
4702
|
return {
|
|
4703
4703
|
hasFocusedTextBox: d,
|
|
@@ -4710,10 +4710,10 @@ function Qi(e, t, n, a, o) {
|
|
|
4710
4710
|
changeTextBoxValue: w,
|
|
4711
4711
|
commitValue: k,
|
|
4712
4712
|
onBlurTextBox: B,
|
|
4713
|
-
onClickTextBox:
|
|
4713
|
+
onClickTextBox: M,
|
|
4714
4714
|
onFocusTextBox: b,
|
|
4715
4715
|
onInput: y,
|
|
4716
|
-
onKeyDownTextBox:
|
|
4716
|
+
onKeyDownTextBox: E,
|
|
4717
4717
|
onKeyUpTextBox: I,
|
|
4718
4718
|
onMouseDownTextBox: x,
|
|
4719
4719
|
onTextBoxValueChange: R
|
|
@@ -4783,12 +4783,12 @@ function Ki(e, t, n) {
|
|
|
4783
4783
|
"border-bottom-right-radius": "6px"
|
|
4784
4784
|
}));
|
|
4785
4785
|
be(() => {
|
|
4786
|
-
var x,
|
|
4787
|
-
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((
|
|
4786
|
+
var x, E;
|
|
4787
|
+
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((E = a.value) == null || E.focus({
|
|
4788
4788
|
preventScroll: !0
|
|
4789
4789
|
})), p.value || (p.value = "button-edit_" + w(8)), p.value = p.value + "-textbox";
|
|
4790
4790
|
});
|
|
4791
|
-
const B = C(!1),
|
|
4791
|
+
const B = C(!1), M = (x) => {
|
|
4792
4792
|
x.preventDefault(), B.value = !0;
|
|
4793
4793
|
}, b = (x) => {
|
|
4794
4794
|
x.preventDefault(), B.value = !1, f(x);
|
|
@@ -4821,7 +4821,7 @@ function Ki(e, t, n) {
|
|
|
4821
4821
|
onKeyup: m,
|
|
4822
4822
|
onMousedown: d,
|
|
4823
4823
|
onCompositionend: b,
|
|
4824
|
-
onCompositionstart:
|
|
4824
|
+
onCompositionstart: M
|
|
4825
4825
|
}, null);
|
|
4826
4826
|
}
|
|
4827
4827
|
function er(e, t, n) {
|
|
@@ -4950,7 +4950,7 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4950
4950
|
} = r, p = Ji(e, t, o, m, f, r), {
|
|
4951
4951
|
onMouseEnterTextBox: w,
|
|
4952
4952
|
onMouseLeaveTextBox: k
|
|
4953
|
-
} = p, B = C(!1),
|
|
4953
|
+
} = p, B = C(!1), M = N(() => {
|
|
4954
4954
|
const V = {
|
|
4955
4955
|
"f-button-edit": !0,
|
|
4956
4956
|
"f-cmp-inputgroup": !0,
|
|
@@ -4970,24 +4970,24 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4970
4970
|
const _ = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
4971
4971
|
return _ && _.length && (V = _.map((L) => L.offsetTop).filter((L) => L > 20).length), V;
|
|
4972
4972
|
}
|
|
4973
|
-
const
|
|
4973
|
+
const E = C(x());
|
|
4974
4974
|
an(() => {
|
|
4975
|
-
|
|
4975
|
+
E.value = x();
|
|
4976
4976
|
});
|
|
4977
4977
|
function I() {
|
|
4978
|
-
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!
|
|
4978
|
+
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!E.value && v("div", {
|
|
4979
4979
|
class: "d-flex flex-row mr-2 more-tags",
|
|
4980
4980
|
"more-tags": !0
|
|
4981
4981
|
}, [v("span", {
|
|
4982
4982
|
class: "multi--more-text"
|
|
4983
|
-
}, [ie("+"),
|
|
4983
|
+
}, [ie("+"), E.value])])]) : Ki(e, o, r);
|
|
4984
4984
|
}
|
|
4985
4985
|
let R = I();
|
|
4986
4986
|
Z([() => e.multiSelect, () => e.inputType], () => {
|
|
4987
4987
|
R = I();
|
|
4988
4988
|
});
|
|
4989
4989
|
const {
|
|
4990
|
-
renderButtonGroup:
|
|
4990
|
+
renderButtonGroup: O,
|
|
4991
4991
|
buttonHandleElement: F
|
|
4992
4992
|
} = tr(e, t, h, p), S = nr(e, t, l), T = C(i.value), P = {
|
|
4993
4993
|
displayText: f,
|
|
@@ -5039,7 +5039,7 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
5039
5039
|
var V, _;
|
|
5040
5040
|
return v(ot, null, [v("div", kt(t.attrs, {
|
|
5041
5041
|
ref: n,
|
|
5042
|
-
class:
|
|
5042
|
+
class: M.value,
|
|
5043
5043
|
id: e.id ? e.id : void 0,
|
|
5044
5044
|
style: b.value
|
|
5045
5045
|
}), [v("div", {
|
|
@@ -5048,7 +5048,7 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
5048
5048
|
style: y.value,
|
|
5049
5049
|
onMouseenter: w,
|
|
5050
5050
|
onMouseleave: k
|
|
5051
|
-
}, [(_ = (V = t.slots).precontent) == null ? void 0 : _.call(V), R(),
|
|
5051
|
+
}, [(_ = (V = t.slots).precontent) == null ? void 0 : _.call(V), R(), O()])]), T.value && S()]);
|
|
5052
5052
|
};
|
|
5053
5053
|
}
|
|
5054
5054
|
}), ar = "https://json-schema.org/draft/2020-12/schema", or = "https://farris-design.gitee.io/field-selector.schema.json", lr = "field-selector", ir = "A Farris Input Component", rr = "object", sr = {
|
|
@@ -5471,9 +5471,9 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
5471
5471
|
type: "boolean",
|
|
5472
5472
|
default: !1
|
|
5473
5473
|
},
|
|
5474
|
-
|
|
5474
|
+
onChange: {
|
|
5475
5475
|
description: "",
|
|
5476
|
-
type: "
|
|
5476
|
+
type: "string"
|
|
5477
5477
|
}
|
|
5478
5478
|
}, gr = [
|
|
5479
5479
|
"type"
|
|
@@ -5733,8 +5733,8 @@ const un = {
|
|
|
5733
5733
|
const k = (p = s.value) == null ? void 0 : p[0];
|
|
5734
5734
|
let B = k;
|
|
5735
5735
|
if (!Ie(k)) {
|
|
5736
|
-
const
|
|
5737
|
-
b === "number" &&
|
|
5736
|
+
const M = typeof k, b = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
|
|
5737
|
+
b === "number" && M !== b && (B = Number(k)), b === "boolean" && M !== b && (B = k === "true" ? !0 : k === "false" ? !1 : k), g(B);
|
|
5738
5738
|
}
|
|
5739
5739
|
}
|
|
5740
5740
|
}), t.expose({
|
|
@@ -5768,8 +5768,8 @@ function Fr(e) {
|
|
|
5768
5768
|
function i(r) {
|
|
5769
5769
|
const m = e.multiSelect ? String(r).split(e.separator) : [String(r)], d = m.map((w) => [w, !0]), g = new Map(d);
|
|
5770
5770
|
return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
|
|
5771
|
-
const B = m.indexOf(w[e.valueField]),
|
|
5772
|
-
return B -
|
|
5771
|
+
const B = m.indexOf(w[e.valueField]), M = m.indexOf(k[e.valueField]);
|
|
5772
|
+
return B - M;
|
|
5773
5773
|
});
|
|
5774
5774
|
}
|
|
5775
5775
|
function u(r) {
|
|
@@ -5796,9 +5796,9 @@ function Fr(e) {
|
|
|
5796
5796
|
const { url: r, method: m = "GET", headers: d = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, p = m.toLowerCase() === "get" ? { method: m, headers: d } : { method: m, headers: d, body: g };
|
|
5797
5797
|
let w = !1;
|
|
5798
5798
|
fetch(new Request(r, p)).then((k) => {
|
|
5799
|
-
var
|
|
5799
|
+
var M, b;
|
|
5800
5800
|
if (k.status === 200)
|
|
5801
|
-
return w = !!((b = (
|
|
5801
|
+
return w = !!((b = (M = k.headers) == null ? void 0 : M.get("content-type")) != null && b.includes("application/json")), w ? k.text() : k.json();
|
|
5802
5802
|
throw k.status === 405 ? new Error(t("comboList.remoteError")) : new Error(k.statusText);
|
|
5803
5803
|
}).then((k) => {
|
|
5804
5804
|
k.length && (o.value = w ? JSON.parse(k) : k);
|
|
@@ -5838,14 +5838,14 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5838
5838
|
function B() {
|
|
5839
5839
|
!w.value && o.value && o.value.hidePopup();
|
|
5840
5840
|
}
|
|
5841
|
-
function
|
|
5841
|
+
function M(S) {
|
|
5842
5842
|
h.value = S.map((P) => P[e.textField]).join(e.separator);
|
|
5843
5843
|
let T = "";
|
|
5844
5844
|
S.length === 1 ? T = S[0][e.valueField] : T = S.map((P) => P[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", S, r.value));
|
|
5845
5845
|
}
|
|
5846
5846
|
function b() {
|
|
5847
5847
|
const S = g(r.value);
|
|
5848
|
-
|
|
5848
|
+
M(S);
|
|
5849
5849
|
}
|
|
5850
5850
|
function y() {
|
|
5851
5851
|
s.value || h.value;
|
|
@@ -5854,24 +5854,26 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5854
5854
|
var T;
|
|
5855
5855
|
r.value = "", (T = a.value) == null || T.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
5856
5856
|
}
|
|
5857
|
-
function
|
|
5857
|
+
function E(S) {
|
|
5858
5858
|
var T, P;
|
|
5859
5859
|
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(S)), (P = a.value) == null || P.activeRowById(S), t.emit("change", [r.value], r.value);
|
|
5860
5860
|
}
|
|
5861
5861
|
function I(S) {
|
|
5862
5862
|
if (e.multiSelect) {
|
|
5863
|
-
const T =
|
|
5863
|
+
const T = d(S);
|
|
5864
|
+
e.viewType;
|
|
5865
|
+
const V = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5864
5866
|
r.value !== V && (r.value = V, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
5865
5867
|
}
|
|
5866
5868
|
}
|
|
5867
5869
|
function R() {
|
|
5868
5870
|
return h.value;
|
|
5869
5871
|
}
|
|
5870
|
-
function
|
|
5872
|
+
function O(S) {
|
|
5871
5873
|
const {
|
|
5872
5874
|
value: T
|
|
5873
5875
|
} = S.target;
|
|
5874
|
-
|
|
5876
|
+
E(T), t.emit("input", T);
|
|
5875
5877
|
}
|
|
5876
5878
|
function F() {
|
|
5877
5879
|
o.value.hidePopup();
|
|
@@ -5904,7 +5906,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5904
5906
|
onClick: y,
|
|
5905
5907
|
onChange: I,
|
|
5906
5908
|
onBlur: b,
|
|
5907
|
-
onInput:
|
|
5909
|
+
onInput: O,
|
|
5908
5910
|
beforeOpen: e.beforeOpen,
|
|
5909
5911
|
placement: e.placement,
|
|
5910
5912
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -5927,7 +5929,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5927
5929
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
5928
5930
|
width: e.fitEditor ? k.value : void 0,
|
|
5929
5931
|
onSelectionChange: (S) => {
|
|
5930
|
-
|
|
5932
|
+
M(S), B();
|
|
5931
5933
|
}
|
|
5932
5934
|
}, null)]
|
|
5933
5935
|
});
|
|
@@ -5943,7 +5945,7 @@ class Tr extends Do {
|
|
|
5943
5945
|
super(t, n);
|
|
5944
5946
|
}
|
|
5945
5947
|
getCommonEditorProperties(t) {
|
|
5946
|
-
var n, a, o
|
|
5948
|
+
var n, a, o;
|
|
5947
5949
|
return {
|
|
5948
5950
|
viewType: {
|
|
5949
5951
|
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
@@ -5977,14 +5979,15 @@ class Tr extends Do {
|
|
|
5977
5979
|
title: "允许编辑",
|
|
5978
5980
|
type: "boolean",
|
|
5979
5981
|
refreshPanelAfterChanged: !0,
|
|
5980
|
-
readonly:
|
|
5981
|
-
|
|
5982
|
-
enableHighlightSearch: {
|
|
5983
|
-
visible: !!((u = t.editor) != null && u.editable),
|
|
5984
|
-
description: "编辑状态下启用高亮搜索",
|
|
5985
|
-
title: "启用高亮搜索",
|
|
5986
|
-
type: "boolean"
|
|
5982
|
+
readonly: !0
|
|
5983
|
+
// readonly: !!propertyData.editor?.multiSelect && (propertyData.editor?.viewType === 'tag' || !propertyData.editor!.viewType)
|
|
5987
5984
|
}
|
|
5985
|
+
// enableHighlightSearch: {
|
|
5986
|
+
// visible: !!propertyData.editor?.editable,
|
|
5987
|
+
// description: "编辑状态下启用高亮搜索",
|
|
5988
|
+
// title: "启用高亮搜索",
|
|
5989
|
+
// type: "boolean"
|
|
5990
|
+
// },
|
|
5988
5991
|
};
|
|
5989
5992
|
}
|
|
5990
5993
|
getEditorProperties(t) {
|
|
@@ -6411,19 +6414,19 @@ function ra(e) {
|
|
|
6411
6414
|
return o.value > 0 && (p.cursor = "n-resize"), p;
|
|
6412
6415
|
});
|
|
6413
6416
|
function h(p, w, k, B) {
|
|
6414
|
-
const
|
|
6415
|
-
if (
|
|
6416
|
-
const { left: b, right: y, width: x } =
|
|
6417
|
-
let
|
|
6418
|
-
B === "right" && (
|
|
6417
|
+
const M = e.value;
|
|
6418
|
+
if (M) {
|
|
6419
|
+
const { left: b, right: y, width: x } = M.getBoundingClientRect();
|
|
6420
|
+
let E = p.clientX - b;
|
|
6421
|
+
B === "right" && (E = y - p.clientX), E > w && (E = w), E < k && (E = k), B === "right" && (E = x - E), a.value = E;
|
|
6419
6422
|
}
|
|
6420
6423
|
}
|
|
6421
6424
|
function f(p, w, k, B) {
|
|
6422
|
-
const
|
|
6423
|
-
if (
|
|
6424
|
-
const { top: b, bottom: y, height: x } =
|
|
6425
|
-
let
|
|
6426
|
-
B === "bottom" && (
|
|
6425
|
+
const M = e.value;
|
|
6426
|
+
if (M) {
|
|
6427
|
+
const { top: b, bottom: y, height: x } = M.getBoundingClientRect();
|
|
6428
|
+
let E = p.clientY - b;
|
|
6429
|
+
B === "bottom" && (E = y - p.clientY), E > w && (E = w), E < k && (E = k), B === "bottom" && (E = x - E), o.value = E;
|
|
6427
6430
|
}
|
|
6428
6431
|
}
|
|
6429
6432
|
function r() {
|
|
@@ -6444,20 +6447,20 @@ function ra(e) {
|
|
|
6444
6447
|
function d(p, w) {
|
|
6445
6448
|
const k = r(), B = m();
|
|
6446
6449
|
if (k && B) {
|
|
6447
|
-
const
|
|
6450
|
+
const M = B == null ? void 0 : B.right, b = B == null ? void 0 : B.left;
|
|
6448
6451
|
if (p === "left" && b)
|
|
6449
|
-
return
|
|
6450
|
-
if (p === "right" &&
|
|
6452
|
+
return M ? k.width - M.clientWidth - w : k.width - w;
|
|
6453
|
+
if (p === "right" && M)
|
|
6451
6454
|
return b ? k.width - b.clientWidth - w : k.width - w;
|
|
6452
6455
|
}
|
|
6453
6456
|
}
|
|
6454
6457
|
function g(p, w) {
|
|
6455
6458
|
const k = r(), B = m();
|
|
6456
6459
|
if (k && B) {
|
|
6457
|
-
const
|
|
6460
|
+
const M = B == null ? void 0 : B.bottom, b = B == null ? void 0 : B.top;
|
|
6458
6461
|
if (p === "top" && b)
|
|
6459
|
-
return
|
|
6460
|
-
if (p === "bottom" &&
|
|
6462
|
+
return M ? k.height - M.clientHeight - w : k.height - w;
|
|
6463
|
+
if (p === "bottom" && M)
|
|
6461
6464
|
return b ? k.height - b.clientHeight - w : k.height - w;
|
|
6462
6465
|
}
|
|
6463
6466
|
}
|
|
@@ -6719,38 +6722,38 @@ function ua(e, t, n, a, o) {
|
|
|
6719
6722
|
let g = "", p, w, k;
|
|
6720
6723
|
function B(y) {
|
|
6721
6724
|
if ((g === "left" || g === "right") && w) {
|
|
6722
|
-
const { left: x } = w.getBoundingClientRect(), { width:
|
|
6723
|
-
let R = g === "left" ? (
|
|
6725
|
+
const { left: x } = w.getBoundingClientRect(), { width: E } = p.getBoundingClientRect(), I = y.clientX - x;
|
|
6726
|
+
let R = g === "left" ? (E || 0) + (I - l.value) : (E || 0) - (I - l.value);
|
|
6724
6727
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6725
|
-
const
|
|
6726
|
-
|
|
6728
|
+
const O = d(g, n.value);
|
|
6729
|
+
O != null && (R = O > R ? R : O), e.value = R;
|
|
6727
6730
|
}
|
|
6728
6731
|
if ((g === "top" || g === "bottom") && w) {
|
|
6729
|
-
const { top: x } = w.getBoundingClientRect(), { height:
|
|
6730
|
-
let R = g === "top" ? (
|
|
6732
|
+
const { top: x } = w.getBoundingClientRect(), { height: E } = p.getBoundingClientRect(), I = y.clientY - x;
|
|
6733
|
+
let R = g === "top" ? (E || 0) + (I - c.value) : (E || 0) - (I - c.value);
|
|
6731
6734
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6732
|
-
const
|
|
6733
|
-
|
|
6735
|
+
const O = m(g, a.value);
|
|
6736
|
+
O != null && (R = O > R ? R : O), t.value = R;
|
|
6734
6737
|
}
|
|
6735
6738
|
i.value = 0, h.value = 0, l.value = -1, c.value = -1, u.value = !1, s.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", g = "", p = null, w = null;
|
|
6736
6739
|
}
|
|
6737
|
-
function
|
|
6738
|
-
if (g = x, p =
|
|
6739
|
-
const { left: R } = w.getBoundingClientRect(),
|
|
6740
|
-
i.value =
|
|
6740
|
+
function M(y, x, E) {
|
|
6741
|
+
if (g = x, p = E, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6742
|
+
const { left: R } = w.getBoundingClientRect(), O = y.clientX - R;
|
|
6743
|
+
i.value = O, l.value = O;
|
|
6741
6744
|
const F = d(g, n.value) || 0;
|
|
6742
6745
|
k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6743
6746
|
}
|
|
6744
6747
|
}
|
|
6745
|
-
function b(y, x,
|
|
6746
|
-
if (g = x, p =
|
|
6748
|
+
function b(y, x, E) {
|
|
6749
|
+
if (g = x, p = E, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6747
6750
|
const { top: R } = w.getBoundingClientRect();
|
|
6748
6751
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6749
|
-
const
|
|
6750
|
-
k = (F) => r(F,
|
|
6752
|
+
const O = m(g, a.value) || 0;
|
|
6753
|
+
k = (F) => r(F, O, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6751
6754
|
}
|
|
6752
6755
|
}
|
|
6753
|
-
return { onClickHorizontalResizeBar:
|
|
6756
|
+
return { onClickHorizontalResizeBar: M, onClickVerticalResizeBar: b };
|
|
6754
6757
|
}
|
|
6755
6758
|
const je = /* @__PURE__ */ oe({
|
|
6756
6759
|
name: "FLayoutPane",
|
|
@@ -6783,14 +6786,14 @@ const je = /* @__PURE__ */ oe({
|
|
|
6783
6786
|
"f-page-content-main": c.value === "center"
|
|
6784
6787
|
};
|
|
6785
6788
|
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6786
|
-
}),
|
|
6789
|
+
}), M = N(() => {
|
|
6787
6790
|
const b = {};
|
|
6788
6791
|
return (u.value && c.value === "left" || c.value === "right") && (b.width = `${u.value}px`), (i.value && c.value === "bottom" || c.value === "top") && (b.height = `${i.value}px`), e.visible || (b.display = "none"), b;
|
|
6789
6792
|
});
|
|
6790
6793
|
return () => v("div", {
|
|
6791
6794
|
ref: s,
|
|
6792
6795
|
class: B.value,
|
|
6793
|
-
style:
|
|
6796
|
+
style: M.value,
|
|
6794
6797
|
"data-position": c.value
|
|
6795
6798
|
}, [t.slots.default && t.slots.default(), w.value && v("span", {
|
|
6796
6799
|
class: p.value,
|
|
@@ -6880,7 +6883,7 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6880
6883
|
"f-page-content-main": f.value === "center"
|
|
6881
6884
|
};
|
|
6882
6885
|
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6883
|
-
}),
|
|
6886
|
+
}), M = N(() => {
|
|
6884
6887
|
const b = {
|
|
6885
6888
|
flex: "1"
|
|
6886
6889
|
};
|
|
@@ -6889,7 +6892,7 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6889
6892
|
return () => v("div", {
|
|
6890
6893
|
ref: n,
|
|
6891
6894
|
class: B.value,
|
|
6892
|
-
style:
|
|
6895
|
+
style: M.value
|
|
6893
6896
|
}, [v("div", {
|
|
6894
6897
|
ref: a,
|
|
6895
6898
|
class: "drag-container",
|
|
@@ -9677,7 +9680,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9677
9680
|
item: T
|
|
9678
9681
|
});
|
|
9679
9682
|
}
|
|
9680
|
-
function
|
|
9683
|
+
function M({
|
|
9681
9684
|
$event: S,
|
|
9682
9685
|
node: T
|
|
9683
9686
|
}) {
|
|
@@ -9692,7 +9695,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9692
9695
|
return v(nu, {
|
|
9693
9696
|
data: u.value,
|
|
9694
9697
|
formatter: c,
|
|
9695
|
-
onDblclickNode:
|
|
9698
|
+
onDblclickNode: M
|
|
9696
9699
|
}, null);
|
|
9697
9700
|
}
|
|
9698
9701
|
function y() {
|
|
@@ -9730,8 +9733,8 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9730
9733
|
h.value[S] = !0;
|
|
9731
9734
|
}
|
|
9732
9735
|
});
|
|
9733
|
-
function
|
|
9734
|
-
const P = S.children.map((_) =>
|
|
9736
|
+
function E(S, T) {
|
|
9737
|
+
const P = S.children.map((_) => E(_, T)).filter((_) => _ !== null);
|
|
9735
9738
|
return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
|
|
9736
9739
|
data: {
|
|
9737
9740
|
...S.data
|
|
@@ -9746,13 +9749,13 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9746
9749
|
} : null;
|
|
9747
9750
|
}
|
|
9748
9751
|
function I(S, T) {
|
|
9749
|
-
return S.map((P) =>
|
|
9752
|
+
return S.map((P) => E(P, T)).filter((P) => P !== null);
|
|
9750
9753
|
}
|
|
9751
9754
|
function R() {
|
|
9752
9755
|
const S = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9753
9756
|
u.value = S;
|
|
9754
9757
|
}
|
|
9755
|
-
function
|
|
9758
|
+
function O() {
|
|
9756
9759
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9757
9760
|
}
|
|
9758
9761
|
function F(S) {
|
|
@@ -9782,7 +9785,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9782
9785
|
modelValue: i.value,
|
|
9783
9786
|
"onUpdate:modelValue": (S) => i.value = S,
|
|
9784
9787
|
onClickButton: R,
|
|
9785
|
-
onClear:
|
|
9788
|
+
onClear: O,
|
|
9786
9789
|
onKeyup: F
|
|
9787
9790
|
}, null)]), b()])]), v("li", {
|
|
9788
9791
|
class: r.value("variables")
|
|
@@ -9862,10 +9865,10 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9862
9865
|
}
|
|
9863
9866
|
Z(() => a.value, (b, y, x) => {
|
|
9864
9867
|
if (b) {
|
|
9865
|
-
const
|
|
9868
|
+
const E = setTimeout(() => {
|
|
9866
9869
|
m(b);
|
|
9867
9870
|
}, 200);
|
|
9868
|
-
x(() => clearTimeout(
|
|
9871
|
+
x(() => clearTimeout(E));
|
|
9869
9872
|
}
|
|
9870
9873
|
});
|
|
9871
9874
|
function w() {
|
|
@@ -9877,7 +9880,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9877
9880
|
function B(b) {
|
|
9878
9881
|
b.key === "Enter" && w();
|
|
9879
9882
|
}
|
|
9880
|
-
function
|
|
9883
|
+
function M() {
|
|
9881
9884
|
return r.value.length ? r.value.map((b) => v("li", {
|
|
9882
9885
|
"function-type": b,
|
|
9883
9886
|
class: c.value(b)
|
|
@@ -9935,7 +9938,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9935
9938
|
default: () => [v("ul", {
|
|
9936
9939
|
class: "w-100 functions-list",
|
|
9937
9940
|
style: "user-select: none"
|
|
9938
|
-
}, [
|
|
9941
|
+
}, [M()])]
|
|
9939
9942
|
}), v(je, {
|
|
9940
9943
|
"custom-class": "position-relative",
|
|
9941
9944
|
position: "bottom",
|
|
@@ -10011,8 +10014,8 @@ function ru(e, t, n) {
|
|
|
10011
10014
|
if (a.value) {
|
|
10012
10015
|
let w = Object.keys(p);
|
|
10013
10016
|
const { types: k, functions: B } = a.value;
|
|
10014
|
-
return k && k.length && (w = w.filter((
|
|
10015
|
-
|
|
10017
|
+
return k && k.length && (w = w.filter((M) => k.includes(M))), B && B.length && Object.values(p).forEach((M) => {
|
|
10018
|
+
M.items.forEach((b) => {
|
|
10016
10019
|
B.includes(b.name) && (b.visible = !1);
|
|
10017
10020
|
});
|
|
10018
10021
|
}), p;
|
|
@@ -10050,20 +10053,20 @@ function ru(e, t, n) {
|
|
|
10050
10053
|
if (!p)
|
|
10051
10054
|
return "";
|
|
10052
10055
|
const w = o(p), k = l(n, "name2key");
|
|
10053
|
-
for (let
|
|
10056
|
+
for (let M = 0; M < w.length; M++) {
|
|
10054
10057
|
let b = 0;
|
|
10055
|
-
if (b === 0 && k && w[
|
|
10056
|
-
const y = w[
|
|
10057
|
-
if (k.has(y) && w[
|
|
10058
|
+
if (b === 0 && k && w[M].length > 2 && w[M][0] === '"' && w[M][w[M].length - 1] === '"') {
|
|
10059
|
+
const y = w[M].substring(1, w[M].length - 1);
|
|
10060
|
+
if (k.has(y) && w[M - 1] === "(" && w[M + 1] === ")") {
|
|
10058
10061
|
const x = k.get(y);
|
|
10059
|
-
x !== void 0 && (w[
|
|
10062
|
+
x !== void 0 && (w[M] = `"${x}"`, b = 1);
|
|
10060
10063
|
}
|
|
10061
10064
|
}
|
|
10062
10065
|
if (b === 0) {
|
|
10063
10066
|
const y = Object.values(t).map((x) => x.items).flat();
|
|
10064
10067
|
for (let x = 0; x < y.length; x++)
|
|
10065
|
-
if (w[
|
|
10066
|
-
w[
|
|
10068
|
+
if (w[M] === y[x].name) {
|
|
10069
|
+
w[M] = y[x].keyFront + "." + y[x].key, b = 1;
|
|
10067
10070
|
break;
|
|
10068
10071
|
}
|
|
10069
10072
|
}
|
|
@@ -10072,13 +10075,13 @@ function ru(e, t, n) {
|
|
|
10072
10075
|
return JSON.stringify({ expr: B, sexpr: "" });
|
|
10073
10076
|
}
|
|
10074
10077
|
function m(p, w, k, B) {
|
|
10075
|
-
let
|
|
10078
|
+
let M = "";
|
|
10076
10079
|
const b = [];
|
|
10077
10080
|
for (const y of w)
|
|
10078
10081
|
y.keyFront === "Math" && b.push(y.key);
|
|
10079
10082
|
for (let y = 0; y < p.length; y++) {
|
|
10080
10083
|
if (p[y] === "Math" && p[y + 1] === "." && !b.includes(p[y + 2])) {
|
|
10081
|
-
|
|
10084
|
+
M = M + p[y] + p[y + 1] + p[y + 2], y = y + 2;
|
|
10082
10085
|
continue;
|
|
10083
10086
|
}
|
|
10084
10087
|
if (B.includes(p[y]) && p[y + 1] === ".") {
|
|
@@ -10087,23 +10090,23 @@ function ru(e, t, n) {
|
|
|
10087
10090
|
} else {
|
|
10088
10091
|
let x = 0;
|
|
10089
10092
|
if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10090
|
-
const
|
|
10091
|
-
if (k.has(
|
|
10092
|
-
const I = k.get(
|
|
10093
|
-
I !== void 0 && (
|
|
10093
|
+
const E = p[y].substring(1, p[y].length - 1);
|
|
10094
|
+
if (k.has(E) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10095
|
+
const I = k.get(E);
|
|
10096
|
+
I !== void 0 && (M = M + `"${I}"`, x = 1);
|
|
10094
10097
|
}
|
|
10095
10098
|
}
|
|
10096
10099
|
if (x === 0) {
|
|
10097
|
-
for (let
|
|
10098
|
-
if (p[y] === w[
|
|
10099
|
-
|
|
10100
|
+
for (let E = 0; E < w.length; E++)
|
|
10101
|
+
if (p[y] === w[E].key && w[E].type.toLowerCase() !== "advanced") {
|
|
10102
|
+
M = M + w[E].name, x = 1;
|
|
10100
10103
|
break;
|
|
10101
10104
|
}
|
|
10102
10105
|
}
|
|
10103
|
-
x === 0 && (
|
|
10106
|
+
x === 0 && (M = M + p[y]);
|
|
10104
10107
|
}
|
|
10105
10108
|
}
|
|
10106
|
-
return
|
|
10109
|
+
return M;
|
|
10107
10110
|
}
|
|
10108
10111
|
function d(p) {
|
|
10109
10112
|
if (!p)
|
|
@@ -10151,7 +10154,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10151
10154
|
props: Mr,
|
|
10152
10155
|
emits: [],
|
|
10153
10156
|
setup(e, t) {
|
|
10154
|
-
var
|
|
10157
|
+
var O;
|
|
10155
10158
|
const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
|
|
10156
10159
|
label: "提示",
|
|
10157
10160
|
value: "info"
|
|
@@ -10193,8 +10196,8 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10193
10196
|
return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
|
|
10194
10197
|
}, []);
|
|
10195
10198
|
}
|
|
10196
|
-
const B = k(((
|
|
10197
|
-
function
|
|
10199
|
+
const B = k(((O = e == null ? void 0 : e.entities) == null ? void 0 : O.fields) || []);
|
|
10200
|
+
function M(F) {
|
|
10198
10201
|
return F.map((S) => {
|
|
10199
10202
|
const T = B.find((P) => P.bindingPath === S);
|
|
10200
10203
|
return T && T.type === "entity" ? `${S}[0]` : S;
|
|
@@ -10208,7 +10211,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10208
10211
|
}) {
|
|
10209
10212
|
var L;
|
|
10210
10213
|
const V = f(S);
|
|
10211
|
-
T = e.isServerSide ?
|
|
10214
|
+
T = e.isServerSide ? M(S.parents) : T;
|
|
10212
10215
|
let _ = `${T}.${V}`;
|
|
10213
10216
|
P === V && (_ = V), (L = i.value) == null || L.insertText(`${_}`);
|
|
10214
10217
|
}
|
|
@@ -10224,7 +10227,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10224
10227
|
var F;
|
|
10225
10228
|
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10226
10229
|
}
|
|
10227
|
-
function
|
|
10230
|
+
function E() {
|
|
10228
10231
|
var S;
|
|
10229
10232
|
const F = (S = i.value) == null ? void 0 : S.getContent();
|
|
10230
10233
|
return {
|
|
@@ -10247,7 +10250,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10247
10250
|
}
|
|
10248
10251
|
}), t.expose({
|
|
10249
10252
|
getExpressionContext: x,
|
|
10250
|
-
getExpressionValue:
|
|
10253
|
+
getExpressionValue: E,
|
|
10251
10254
|
resetExpression: R
|
|
10252
10255
|
}), () => v("div", {
|
|
10253
10256
|
ref: n,
|
|
@@ -10541,11 +10544,11 @@ const gu = /* @__PURE__ */ oe({
|
|
|
10541
10544
|
if (typeof k == "object") {
|
|
10542
10545
|
const {
|
|
10543
10546
|
canClose: B,
|
|
10544
|
-
message:
|
|
10547
|
+
message: M
|
|
10545
10548
|
} = k;
|
|
10546
10549
|
if (!B)
|
|
10547
|
-
return
|
|
10548
|
-
message:
|
|
10550
|
+
return M && (n == null || n.error({
|
|
10551
|
+
message: M
|
|
10549
10552
|
})), !1;
|
|
10550
10553
|
}
|
|
10551
10554
|
}
|
|
@@ -11247,7 +11250,7 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11247
11250
|
return F ? F.shown : !1;
|
|
11248
11251
|
}), {
|
|
11249
11252
|
onValueChange: B,
|
|
11250
|
-
resetDataSource:
|
|
11253
|
+
resetDataSource: M
|
|
11251
11254
|
} = ju({
|
|
11252
11255
|
comboEditorRef: n,
|
|
11253
11256
|
dataSource: f,
|
|
@@ -11269,7 +11272,7 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11269
11272
|
}
|
|
11270
11273
|
b();
|
|
11271
11274
|
}
|
|
11272
|
-
function
|
|
11275
|
+
function E(F) {
|
|
11273
11276
|
var S;
|
|
11274
11277
|
d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
|
|
11275
11278
|
}
|
|
@@ -11282,7 +11285,7 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11282
11285
|
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, V]) => {
|
|
11283
11286
|
a.value = F, m.value = S, o.value = T, l.value = P, i.value = V;
|
|
11284
11287
|
});
|
|
11285
|
-
const
|
|
11288
|
+
const O = () => {
|
|
11286
11289
|
if (s.value = Le(f.value), w.value && d.value) {
|
|
11287
11290
|
const F = [];
|
|
11288
11291
|
p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
|
|
@@ -11305,11 +11308,11 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11305
11308
|
popupOnClick: !0,
|
|
11306
11309
|
modelValue: r.value,
|
|
11307
11310
|
"onUpdate:modelValue": (F) => r.value = F,
|
|
11308
|
-
onClear:
|
|
11311
|
+
onClear: E,
|
|
11309
11312
|
onInput: B,
|
|
11310
11313
|
focusOnCreated: e.focusOnCreated,
|
|
11311
11314
|
selectOnCreated: e.selectOnCreated,
|
|
11312
|
-
beforeOpen:
|
|
11315
|
+
beforeOpen: O,
|
|
11313
11316
|
placement: e.placement,
|
|
11314
11317
|
popupMinWidth: e.minPanelWidth
|
|
11315
11318
|
}, {
|
|
@@ -11332,7 +11335,7 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11332
11335
|
searchHandler: B,
|
|
11333
11336
|
onUnSelectItem: I,
|
|
11334
11337
|
onSelectItem: R,
|
|
11335
|
-
onClearSearch:
|
|
11338
|
+
onClearSearch: M
|
|
11336
11339
|
}, null)]
|
|
11337
11340
|
});
|
|
11338
11341
|
}
|
|
@@ -11422,14 +11425,14 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11422
11425
|
itemIntoView: g
|
|
11423
11426
|
} = ba(e, t, s), p = C(e.expressionOptions || {});
|
|
11424
11427
|
function w(B) {
|
|
11425
|
-
var
|
|
11428
|
+
var M, b;
|
|
11426
11429
|
switch (B.expresstype) {
|
|
11427
11430
|
case Re.Variable:
|
|
11428
11431
|
return v(qa, {
|
|
11429
11432
|
modelValue: B.value,
|
|
11430
11433
|
"onUpdate:modelValue": (y) => B.value = y,
|
|
11431
11434
|
showOutline: !1,
|
|
11432
|
-
fieldData: (
|
|
11435
|
+
fieldData: (M = e.formContextData) == null ? void 0 : M.fieldData,
|
|
11433
11436
|
varData: (b = e.formContextData) == null ? void 0 : b.varData
|
|
11434
11437
|
}, null);
|
|
11435
11438
|
case Re.Expression:
|
|
@@ -11448,9 +11451,9 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11448
11451
|
}, null);
|
|
11449
11452
|
}
|
|
11450
11453
|
}
|
|
11451
|
-
function k(B,
|
|
11454
|
+
function k(B, M, b) {
|
|
11452
11455
|
return v(lt, {
|
|
11453
|
-
data:
|
|
11456
|
+
data: M,
|
|
11454
11457
|
modelValue: B[b],
|
|
11455
11458
|
"onUpdate:modelValue": (y) => B[b] = y,
|
|
11456
11459
|
textField: "label",
|
|
@@ -11489,24 +11492,24 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11489
11492
|
style: "width: 60px"
|
|
11490
11493
|
}, [v("b", null, [ie("关系")])])])]), v("tbody", {
|
|
11491
11494
|
ref: s
|
|
11492
|
-
}, [c.value.map((B,
|
|
11493
|
-
index:
|
|
11494
|
-
class: d.value(
|
|
11495
|
-
onClick: (b) => m(B,
|
|
11495
|
+
}, [c.value.map((B, M) => v("tr", {
|
|
11496
|
+
index: M,
|
|
11497
|
+
class: d.value(M),
|
|
11498
|
+
onClick: (b) => m(B, M)
|
|
11496
11499
|
}, [v("td", {
|
|
11497
11500
|
style: "text-overflow: unset;",
|
|
11498
11501
|
align: "center",
|
|
11499
11502
|
class: "px-1"
|
|
11500
11503
|
}, [v("button", {
|
|
11501
11504
|
title: "插入",
|
|
11502
|
-
onClick: (b) => f(
|
|
11505
|
+
onClick: (b) => f(M, b),
|
|
11503
11506
|
type: "button",
|
|
11504
11507
|
class: "btn btn-link p-1 mr-0"
|
|
11505
11508
|
}, [v("span", {
|
|
11506
11509
|
class: "f-icon f-icon-plus"
|
|
11507
11510
|
}, null)]), v("button", {
|
|
11508
11511
|
title: "移除",
|
|
11509
|
-
onClick: (b) => r(
|
|
11512
|
+
onClick: (b) => r(M, b),
|
|
11510
11513
|
type: "button",
|
|
11511
11514
|
class: "btn btn-link p-1 m-0"
|
|
11512
11515
|
}, [v("span", {
|
|
@@ -11748,14 +11751,14 @@ function $u(e, t) {
|
|
|
11748
11751
|
function B({ index: y }) {
|
|
11749
11752
|
n.value = y;
|
|
11750
11753
|
}
|
|
11751
|
-
function
|
|
11754
|
+
function M(y) {
|
|
11752
11755
|
if (y.length % 2 !== 0)
|
|
11753
11756
|
return !1;
|
|
11754
11757
|
let x = "";
|
|
11755
|
-
for (const
|
|
11756
|
-
if (
|
|
11757
|
-
x +=
|
|
11758
|
-
else if (
|
|
11758
|
+
for (const E of y)
|
|
11759
|
+
if (E === "(")
|
|
11760
|
+
x += E;
|
|
11761
|
+
else if (E === ")") {
|
|
11759
11762
|
if (!x.endsWith("("))
|
|
11760
11763
|
return !1;
|
|
11761
11764
|
x = x.slice(0, -1);
|
|
@@ -11766,18 +11769,18 @@ function $u(e, t) {
|
|
|
11766
11769
|
const y = t.value.length;
|
|
11767
11770
|
if (!y)
|
|
11768
11771
|
return !0;
|
|
11769
|
-
let x = !0,
|
|
11772
|
+
let x = !0, E = !0;
|
|
11770
11773
|
if (e.editorType !== "sort") {
|
|
11771
|
-
t.value[y - 1].relation = ct.Empty,
|
|
11774
|
+
t.value[y - 1].relation = ct.Empty, E = !t.value.slice(0, -1).some(
|
|
11772
11775
|
(F) => F.relation === ct.Empty || !F.relation
|
|
11773
11776
|
);
|
|
11774
|
-
const
|
|
11775
|
-
x = O
|
|
11777
|
+
const O = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11778
|
+
x = M(O);
|
|
11776
11779
|
}
|
|
11777
11780
|
const I = t.value.some((R) => !R[i]);
|
|
11778
11781
|
return [
|
|
11779
11782
|
{ result: x, message: "括号不匹配,请检查。" },
|
|
11780
|
-
{ result:
|
|
11783
|
+
{ result: E, message: "关系设置不完整,请检查。" },
|
|
11781
11784
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11782
11785
|
].find((R) => !R.result);
|
|
11783
11786
|
}
|
|
@@ -11818,18 +11821,18 @@ const en = /* @__PURE__ */ oe({
|
|
|
11818
11821
|
onMoveTop: w,
|
|
11819
11822
|
onInsert: k,
|
|
11820
11823
|
onRemove: B,
|
|
11821
|
-
activeRowIndex:
|
|
11824
|
+
activeRowIndex: M,
|
|
11822
11825
|
onSelectRow: b,
|
|
11823
11826
|
canClear: y,
|
|
11824
11827
|
canMove: x,
|
|
11825
|
-
validateCondition:
|
|
11828
|
+
validateCondition: E,
|
|
11826
11829
|
resetActiveRow: I
|
|
11827
11830
|
} = $u(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11828
|
-
function
|
|
11831
|
+
function O() {
|
|
11829
11832
|
return e.editorType === "sort" ? v(Vu, {
|
|
11830
11833
|
conditions: c.value,
|
|
11831
11834
|
fields: u.value,
|
|
11832
|
-
activeIndex:
|
|
11835
|
+
activeIndex: M.value,
|
|
11833
11836
|
onInsert: (j) => k(j),
|
|
11834
11837
|
onRemove: (j) => B(j),
|
|
11835
11838
|
idField: e.idField,
|
|
@@ -11841,7 +11844,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11841
11844
|
conditions: c.value,
|
|
11842
11845
|
fields: u.value,
|
|
11843
11846
|
idField: e.idField,
|
|
11844
|
-
activeIndex:
|
|
11847
|
+
activeIndex: M.value,
|
|
11845
11848
|
onInsert: (j) => k(j),
|
|
11846
11849
|
onRemove: (j) => B(j),
|
|
11847
11850
|
onRowClick: (j) => b(j),
|
|
@@ -11859,7 +11862,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11859
11862
|
originalConditions: h,
|
|
11860
11863
|
FMessageBoxService: ft
|
|
11861
11864
|
});
|
|
11862
|
-
return o == null || o.clearAll(), j && (
|
|
11865
|
+
return o == null || o.clearAll(), j && (M.value = -1, a.success("过滤条件配置成功!")), j;
|
|
11863
11866
|
}
|
|
11864
11867
|
return !0;
|
|
11865
11868
|
}
|
|
@@ -11874,7 +11877,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11874
11877
|
resizeable: !0,
|
|
11875
11878
|
draggable: !0,
|
|
11876
11879
|
closedCallback: () => {
|
|
11877
|
-
|
|
11880
|
+
M.value = -1;
|
|
11878
11881
|
},
|
|
11879
11882
|
buttons: [{
|
|
11880
11883
|
name: "cancel",
|
|
@@ -11887,7 +11890,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11887
11890
|
class: "btn btn-primary",
|
|
11888
11891
|
disabled: S,
|
|
11889
11892
|
handle: async (j) => {
|
|
11890
|
-
const G =
|
|
11893
|
+
const G = E();
|
|
11891
11894
|
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
11892
11895
|
}
|
|
11893
11896
|
}]
|
|
@@ -11950,7 +11953,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11950
11953
|
}, [v("div", {
|
|
11951
11954
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
11952
11955
|
class: "shading-border-top"
|
|
11953
|
-
}, null),
|
|
11956
|
+
}, null), O(), v(Lu, {
|
|
11954
11957
|
canClear: y,
|
|
11955
11958
|
canMove: x,
|
|
11956
11959
|
onAdd: r,
|