@farris/ui-vue 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -2
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +7 -5
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +3 -2
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +498 -495
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +3 -2
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +256 -254
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +416 -394
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +388 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +80 -81
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +237 -237
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +9 -3
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +114 -112
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +485 -463
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +544 -545
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +6 -4
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +9 -7
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +77 -78
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +5 -3
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +1 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -2
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +211 -211
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +1 -1
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +25 -26
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +15 -9
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +917 -916
- package/designer/farris-designer.all.umd.cjs +5 -5
- package/designer/input-group/index.esm.js +2 -1
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +685 -689
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/radio-group/index.esm.js +7 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +5641 -5603
- package/farris.all.umd.cjs +21 -21
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +2 -1
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +2 -1
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ var Ea = (e, t, n) => t in e ? Ma(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var we = (e, t, n) => Ea(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { defineComponent as oe, ref as C, computed as N, createVNode as v, Teleport as Tn, createApp as nn, onUnmounted as wt, Fragment as ot, watch as Z, nextTick as Ue, onBeforeMount as Da, onMounted as be, Transition as Bn, shallowRef as Pa, render as Jt, h as Na, cloneVNode as Ia, mergeProps as kt, reactive as Ge, createTextVNode as ie, inject as ke, withDirectives as On, vShow as ja, onUpdated as an, onBeforeUnmount as Mn, provide as En, vModelText as Ra } from "vue";
|
|
5
5
|
import { resolveAppearance as Dn, createPropsResolver as on, getSchemaByTypeForDesigner as La } from "../dynamic-resolver/index.esm.js";
|
|
6
|
-
import { useI18n as
|
|
6
|
+
import { useI18n as xt } from "vue-i18n";
|
|
7
7
|
import { getMaxZIndex as Va, getCustomClass as Pn, withInstall as Nt, FormSchemaEntityField$Type as yn, FormSchemaEntityFieldTypeName as vn, useGuid as $a, FormSchemaEntityFieldType$Type as Aa, getCustomStyle as za } from "../common/index.esm.js";
|
|
8
8
|
import { LocaleService as It } from "../locale/index.esm.js";
|
|
9
9
|
import { cloneDeep as Le, isPlainObject as hn, isUndefined as Ie, debounce as Nn } from "lodash-es";
|
|
@@ -84,7 +84,7 @@ import "../external-container/index.esm.js";
|
|
|
84
84
|
import "../language-textbox/index.esm.js";
|
|
85
85
|
import { useDesignerComponent as Ga } from "../designer-canvas/index.esm.js";
|
|
86
86
|
import { useResizeObserver as Ua } from "@vueuse/core";
|
|
87
|
-
import { getHierarchyRow as _a, useIdentify as Ya, useGroupData as Xa, useFilter as Ja, useHierarchy as Qa, useLoading as Za, useDataView as Ka, useSelection as eo, useSelectHierarchyItem as to, usePagination as no, useDataViewContainerStyle as ao, useCommandColumn as oo, useSettingColumn as lo, useColumn as io, useSort as ro, useGroupColumn as so, useRow as uo, useEdit as co, useVisualDataBound as fo, useVisualDataCell as po, useVisualDataRow as mo, useVisualData as yo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as go, useFitColumn as bo, useFilterHistory as Co, useColumnFilter as wo, useDragColumn as ko, getColumnHeader as
|
|
87
|
+
import { getHierarchyRow as _a, useIdentify as Ya, useGroupData as Xa, useFilter as Ja, useHierarchy as Qa, useLoading as Za, useDataView as Ka, useSelection as eo, useSelectHierarchyItem as to, usePagination as no, useDataViewContainerStyle as ao, useCommandColumn as oo, useSettingColumn as lo, useColumn as io, useSort as ro, useGroupColumn as so, useRow as uo, useEdit as co, useVisualDataBound as fo, useVisualDataCell as po, useVisualDataRow as mo, useVisualData as yo, useCellPosition as vo, useSidebar as ho, useVirtualScroll as go, useFitColumn as bo, useFilterHistory as Co, useColumnFilter as wo, useDragColumn as ko, getColumnHeader as xo, getSidebar as So, getDisableMask as Fo, getHorizontalScrollbar as To, getVerticalScrollbar as Bo, getEmpty as Oo, getPagination as Mo, getSummary as Eo } from "../data-view/index.esm.js";
|
|
88
88
|
import { InputBaseProperty as Do } from "../property-panel/index.esm.js";
|
|
89
89
|
import "../notify/index.esm.js";
|
|
90
90
|
import Po from "../popover/index.esm.js";
|
|
@@ -655,7 +655,7 @@ function tl(e, t) {
|
|
|
655
655
|
const j = L.x, G = L.y;
|
|
656
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
|
-
function
|
|
658
|
+
function S(L) {
|
|
659
659
|
if (!h.value)
|
|
660
660
|
return;
|
|
661
661
|
const j = re.fromEvent(L);
|
|
@@ -687,10 +687,10 @@ function tl(e, t) {
|
|
|
687
687
|
const j = E();
|
|
688
688
|
r.value = j;
|
|
689
689
|
}
|
|
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",
|
|
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", S), document.removeEventListener("mouseup", I);
|
|
691
691
|
}
|
|
692
692
|
function R() {
|
|
693
|
-
document.addEventListener("mousemove",
|
|
693
|
+
document.addEventListener("mousemove", S), document.addEventListener("mouseup", I);
|
|
694
694
|
}
|
|
695
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());
|
|
@@ -730,7 +730,7 @@ function tl(e, t) {
|
|
|
730
730
|
onMousedown: (j) => O(j)
|
|
731
731
|
}, null)]);
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function x(L = !0) {
|
|
734
734
|
document.body.click();
|
|
735
735
|
const j = a.value || document.body, G = nt.getCurrent(j), W = n.value;
|
|
736
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 = {
|
|
@@ -773,7 +773,7 @@ function tl(e, t) {
|
|
|
773
773
|
}
|
|
774
774
|
function V() {
|
|
775
775
|
const L = () => {
|
|
776
|
-
p.value ?
|
|
776
|
+
p.value ? x(!1) : P(), document.body.click();
|
|
777
777
|
};
|
|
778
778
|
return window.addEventListener("resize", L), () => {
|
|
779
779
|
window.removeEventListener("resize", L);
|
|
@@ -784,7 +784,7 @@ function tl(e, t) {
|
|
|
784
784
|
renderResizeBar: F,
|
|
785
785
|
boundingElement: a,
|
|
786
786
|
resizedEventParam: r,
|
|
787
|
-
maximize:
|
|
787
|
+
maximize: x,
|
|
788
788
|
restore: T,
|
|
789
789
|
allowDrag: g,
|
|
790
790
|
isMaximized: p,
|
|
@@ -794,68 +794,68 @@ function tl(e, t) {
|
|
|
794
794
|
}
|
|
795
795
|
function nl(e, t, n) {
|
|
796
796
|
const a = C(), o = C(e.draggable), l = C(e.lockAxis), i = C(), u = C(), s = C(!1), c = C(new re(0, 0)), h = C(new re(0, 0)), f = C(new re(0, 0)), r = C(new re(0, 0));
|
|
797
|
-
Z(() => n.value, (
|
|
798
|
-
i.value.style.cursor =
|
|
797
|
+
Z(() => n.value, (S) => {
|
|
798
|
+
i.value.style.cursor = S ? "move" : "default";
|
|
799
799
|
});
|
|
800
|
-
function m(
|
|
800
|
+
function m(S, E) {
|
|
801
801
|
if (E.tagName === "BUTTON")
|
|
802
802
|
return !1;
|
|
803
|
-
if (E ===
|
|
803
|
+
if (E === S)
|
|
804
804
|
return !0;
|
|
805
805
|
for (const I in E.children)
|
|
806
|
-
if (Object.prototype.hasOwnProperty.call(E.children, I) && m(
|
|
806
|
+
if (Object.prototype.hasOwnProperty.call(E.children, I) && m(S, E.children[I]))
|
|
807
807
|
return !0;
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
810
|
function d() {
|
|
811
811
|
var R, O;
|
|
812
|
-
let
|
|
813
|
-
l.value === "x" ? (
|
|
814
|
-
const I = `translate3d(${Math.round(
|
|
815
|
-
a.value && (a.value.style.transform = I), r.value.x =
|
|
812
|
+
let S = f.value.x + h.value.x, E = f.value.y + h.value.y;
|
|
813
|
+
l.value === "x" ? (S = ((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(S)}px, ${Math.round(E)}px, 0px)`;
|
|
815
|
+
a.value && (a.value.style.transform = I), r.value.x = S, r.value.y = E;
|
|
816
816
|
}
|
|
817
817
|
function g() {
|
|
818
818
|
if (!u.value || !a.value)
|
|
819
819
|
return null;
|
|
820
|
-
const
|
|
821
|
-
top:
|
|
822
|
-
right:
|
|
823
|
-
bottom:
|
|
824
|
-
left:
|
|
820
|
+
const S = u.value.getBoundingClientRect(), E = a.value.getBoundingClientRect(), I = {
|
|
821
|
+
top: S.top < E.top,
|
|
822
|
+
right: S.right > E.right,
|
|
823
|
+
bottom: S.bottom > E.bottom,
|
|
824
|
+
left: S.left < E.left
|
|
825
825
|
};
|
|
826
|
-
return I.top || (f.value.y -= E.top -
|
|
826
|
+
return I.top || (f.value.y -= E.top - S.top), I.bottom || (f.value.y -= E.bottom - S.bottom), I.right || (f.value.x -= E.right - S.right), I.left || (f.value.x -= E.left - S.left), d(), I;
|
|
827
827
|
}
|
|
828
|
-
function p(
|
|
829
|
-
|
|
828
|
+
function p(S) {
|
|
829
|
+
S && (c.value && S.subtract(c.value), f.value.set(S), d(), g());
|
|
830
830
|
}
|
|
831
|
-
function w(
|
|
832
|
-
s.value && o.value && (
|
|
831
|
+
function w(S) {
|
|
832
|
+
s.value && o.value && (S.stopPropagation(), S.preventDefault(), p(re.fromEvent(S, i.value)));
|
|
833
833
|
}
|
|
834
834
|
function k() {
|
|
835
|
-
var
|
|
836
|
-
s.value && (s.value = !1, h.value.add(f.value), f.value.reset(), (
|
|
835
|
+
var S;
|
|
836
|
+
s.value && (s.value = !1, h.value.add(f.value), f.value.reset(), (S = a.value) == null || S.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
|
|
837
837
|
}
|
|
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
841
|
function M() {
|
|
842
842
|
if (a.value) {
|
|
843
|
-
const
|
|
844
|
-
h.value.set(
|
|
843
|
+
const S = re.getTransformInfo(a.value);
|
|
844
|
+
h.value.set(S);
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
847
847
|
h.value.reset();
|
|
848
848
|
}
|
|
849
|
-
function b(
|
|
850
|
-
if (!n.value ||
|
|
849
|
+
function b(S) {
|
|
850
|
+
if (!n.value || S instanceof MouseEvent && S.button === 2)
|
|
851
851
|
return;
|
|
852
|
-
const E =
|
|
853
|
-
i.value !== void 0 && E && !m(E, i.value) || o.value !== !1 && (document.body.click(),
|
|
852
|
+
const E = S.target || S.srcElement;
|
|
853
|
+
i.value !== void 0 && E && !m(E, i.value) || o.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), c.value = re.fromEvent(S, a.value), M(), B());
|
|
854
854
|
}
|
|
855
|
-
function y(
|
|
855
|
+
function y(S, E, I) {
|
|
856
856
|
if (o.value && E) {
|
|
857
|
-
if (
|
|
858
|
-
i.value =
|
|
857
|
+
if (S)
|
|
858
|
+
i.value = S;
|
|
859
859
|
else if (e.dragHandle) {
|
|
860
860
|
if (e.dragHandle instanceof HTMLElement)
|
|
861
861
|
i.value = e.dragHandle;
|
|
@@ -907,7 +907,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
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
909
|
t: M
|
|
910
|
-
} =
|
|
910
|
+
} = xt();
|
|
911
911
|
w.value === "错误提示" && (w.value = M("messageBox.errorTitle"));
|
|
912
912
|
const b = C(!1);
|
|
913
913
|
function y($, Q) {
|
|
@@ -921,7 +921,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
921
921
|
fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed", $));
|
|
922
922
|
});
|
|
923
923
|
}
|
|
924
|
-
const
|
|
924
|
+
const S = [{
|
|
925
925
|
name: "cancel",
|
|
926
926
|
text: M("messageBox.cancel") || "取消",
|
|
927
927
|
class: "btn btn-secondary",
|
|
@@ -935,7 +935,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
935
935
|
handle: ($) => {
|
|
936
936
|
y($, !0);
|
|
937
937
|
}
|
|
938
|
-
}], E = C(e.buttons && e.buttons.length ? e.buttons :
|
|
938
|
+
}], E = C(e.buttons && e.buttons.length ? e.buttons : S), I = N(() => !!c.value), R = N(() => !!p.value && !!E.value), O = C(), F = C(), x = C(!1), {
|
|
939
939
|
renderResizeBar: T,
|
|
940
940
|
maximize: P,
|
|
941
941
|
restore: V,
|
|
@@ -959,7 +959,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
959
959
|
}), Z(() => e.modelValue, ($, Q) => {
|
|
960
960
|
$ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
|
|
961
961
|
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(O.value, F.value, _.value), W());
|
|
962
|
-
}), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (
|
|
962
|
+
}), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (x.value = !1, j.value = e.draggable);
|
|
963
963
|
}), Z(() => e.showHeader, ($, Q) => {
|
|
964
964
|
$ !== Q && (s.value = $);
|
|
965
965
|
}), Z(() => e.showButtons, ($, Q) => {
|
|
@@ -969,7 +969,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
969
969
|
JSON.stringify(ue) !== JSON.stringify(fe) && t.emit("resize", {
|
|
970
970
|
newSize: $,
|
|
971
971
|
oldSize: Q,
|
|
972
|
-
isMaximized:
|
|
972
|
+
isMaximized: x.value
|
|
973
973
|
});
|
|
974
974
|
});
|
|
975
975
|
const X = N(() => (o.value && document.body.classList.add("modal-open"), o.value)), le = N(() => {
|
|
@@ -1014,7 +1014,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1014
1014
|
}), Be = N(() => ({
|
|
1015
1015
|
"f-icon": !0,
|
|
1016
1016
|
modal_maximize: !0,
|
|
1017
|
-
modalrevert:
|
|
1017
|
+
modalrevert: x.value
|
|
1018
1018
|
})), it = N(() => ({
|
|
1019
1019
|
"modal-body": !0,
|
|
1020
1020
|
"f-utils-flex-column": m.value === "iframe",
|
|
@@ -1032,11 +1032,11 @@ const at = /* @__PURE__ */ oe({
|
|
|
1032
1032
|
return Object.assign($, Q);
|
|
1033
1033
|
});
|
|
1034
1034
|
function se($) {
|
|
1035
|
-
if ($ == null || $.stopPropagation(),
|
|
1036
|
-
|
|
1035
|
+
if ($ == null || $.stopPropagation(), x.value) {
|
|
1036
|
+
x.value = !1, V();
|
|
1037
1037
|
return;
|
|
1038
1038
|
}
|
|
1039
|
-
P(),
|
|
1039
|
+
P(), x.value = !0;
|
|
1040
1040
|
}
|
|
1041
1041
|
async function pt($, Q) {
|
|
1042
1042
|
$.handle && await $.handle(Q, $) && t.emit("closed", Q);
|
|
@@ -1056,7 +1056,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1056
1056
|
updateModalOptions: Ae,
|
|
1057
1057
|
close: y,
|
|
1058
1058
|
maxDialog: se,
|
|
1059
|
-
isMaximized:
|
|
1059
|
+
isMaximized: x
|
|
1060
1060
|
});
|
|
1061
1061
|
function He() {
|
|
1062
1062
|
return v("ul", null, [r.value && v("li", {
|
|
@@ -1139,7 +1139,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1139
1139
|
width: "100%",
|
|
1140
1140
|
frameborder: "0",
|
|
1141
1141
|
src: d.value
|
|
1142
|
-
}, null)]), Pe()]), !u.value && F.value && !
|
|
1142
|
+
}, null)]), Pe()]), !u.value && F.value && !x.value && T(F.value)]);
|
|
1143
1143
|
}
|
|
1144
1144
|
function ut($) {
|
|
1145
1145
|
return $ || "body";
|
|
@@ -1265,14 +1265,14 @@ class An {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
let h;
|
|
1267
1267
|
const f = $n(a.value), r = (b) => {
|
|
1268
|
-
var
|
|
1268
|
+
var S;
|
|
1269
1269
|
o.value = !1;
|
|
1270
|
-
const y = (
|
|
1270
|
+
const y = (S = b == null ? void 0 : b.target) == null ? void 0 : S.classList.contains("modal_close");
|
|
1271
1271
|
u(b, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
|
|
1272
1272
|
}, m = (b) => {
|
|
1273
1273
|
r(b), h && Ue(() => {
|
|
1274
1274
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Jt(null, n), h = null, this.modalRef.value = null, this.modalRefs) {
|
|
1275
|
-
const y = Object.keys(this.modalRefs).map((
|
|
1275
|
+
const y = Object.keys(this.modalRefs).map((S) => Number(S));
|
|
1276
1276
|
y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
|
|
1277
1277
|
}
|
|
1278
1278
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -1569,12 +1569,12 @@ const rl = {
|
|
|
1569
1569
|
convertTo: (e, t, n) => {
|
|
1570
1570
|
e[t] = n;
|
|
1571
1571
|
}
|
|
1572
|
-
},
|
|
1572
|
+
}, xl = {
|
|
1573
1573
|
convertTo: (e, t, n, a) => {
|
|
1574
1574
|
e.size || (e.size = {}), e.size[t] = n;
|
|
1575
1575
|
},
|
|
1576
1576
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
1577
|
-
},
|
|
1577
|
+
}, Sl = {
|
|
1578
1578
|
convertFrom: (e, t, n) => {
|
|
1579
1579
|
var a, o;
|
|
1580
1580
|
return (a = e.formatter) != null && a.data && t === "formatterEnumData" && !e.formatterEnumData ? (o = e.formatter) == null ? void 0 : o.data : e.formatterEnumData;
|
|
@@ -1633,8 +1633,8 @@ function zn(e, t, n) {
|
|
|
1633
1633
|
["/converter/pagination.converter", gl],
|
|
1634
1634
|
["/converter/row-number.converter", bl],
|
|
1635
1635
|
["/converter/grid-selection.converter", Cl],
|
|
1636
|
-
["/converter/size.converter",
|
|
1637
|
-
["/converter/change-formatter-enum.converter",
|
|
1636
|
+
["/converter/size.converter", xl],
|
|
1637
|
+
["/converter/change-formatter-enum.converter", Sl],
|
|
1638
1638
|
["/converter/grid-sort.converter", Fl],
|
|
1639
1639
|
["/converter/grid-filter.converter", Tl],
|
|
1640
1640
|
["/converter/row-option.converter", Bl]
|
|
@@ -1678,13 +1678,13 @@ function zn(e, t, n) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
function h(d, g, p, w, k, B = "", M = "") {
|
|
1680
1680
|
return Object.keys(d).map((y) => {
|
|
1681
|
-
const
|
|
1681
|
+
const S = C(1), E = y, I = d[y], R = Object.keys(I), O = I.title, F = I.type, x = o.get(F) || { type: "input-group", enableClear: !1 }, T = I.editor ? Object.assign({}, x, I.editor) : Object.assign({}, x), P = u(R, I, g), V = s(R, I, g);
|
|
1682
1682
|
T.readonly = T.readonly === void 0 ? V() : T.readonly;
|
|
1683
1683
|
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, M) : [], L = !0;
|
|
1684
1684
|
let j = c(I, M);
|
|
1685
1685
|
const G = N({
|
|
1686
1686
|
get() {
|
|
1687
|
-
if (
|
|
1687
|
+
if (S.value) {
|
|
1688
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];
|
|
@@ -1693,7 +1693,7 @@ function zn(e, t, n) {
|
|
|
1693
1693
|
return null;
|
|
1694
1694
|
},
|
|
1695
1695
|
set(le) {
|
|
1696
|
-
|
|
1696
|
+
S.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
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
1699
|
return g[E] = X, X;
|
|
@@ -1702,19 +1702,19 @@ function zn(e, t, n) {
|
|
|
1702
1702
|
function f(d, g, p = {}) {
|
|
1703
1703
|
const w = {}, k = e[d];
|
|
1704
1704
|
return k && k.categories ? Object.keys(k.categories).map((M) => {
|
|
1705
|
-
const b = k.categories[M], y = b == null ? void 0 : b.title,
|
|
1706
|
-
return { categoryId: M, categoryName: y, properties:
|
|
1705
|
+
const b = k.categories[M], y = b == null ? void 0 : b.title, S = h(b.properties || {}, w, {}, p, g);
|
|
1706
|
+
return { categoryId: M, categoryName: y, properties: S };
|
|
1707
1707
|
}) : [];
|
|
1708
1708
|
}
|
|
1709
1709
|
function r(d, g, p, w, k = "") {
|
|
1710
|
-
const B = g.$ref.schema, M = g.$ref.converter, b = p[B], y = b.type,
|
|
1710
|
+
const B = g.$ref.schema, M = g.$ref.converter, b = p[B], y = b.type, S = n(b), E = {}, I = e[y];
|
|
1711
1711
|
if (I && I.categories) {
|
|
1712
1712
|
const R = I.categories[d], O = R == null ? void 0 : R.title;
|
|
1713
1713
|
M && Object.keys(R.properties).forEach((T) => {
|
|
1714
1714
|
R.properties[T].$converter = M;
|
|
1715
1715
|
});
|
|
1716
|
-
const F = (R == null ? void 0 : R.properties) || {},
|
|
1717
|
-
return { categoryId: d, categoryName: O, properties:
|
|
1716
|
+
const F = (R == null ? void 0 : R.properties) || {}, x = h(F, E, S, b, w, k);
|
|
1717
|
+
return { categoryId: d, categoryName: O, properties: x };
|
|
1718
1718
|
}
|
|
1719
1719
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
1720
1720
|
}
|
|
@@ -1722,16 +1722,16 @@ function zn(e, t, n) {
|
|
|
1722
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
|
-
const
|
|
1725
|
+
const S = [];
|
|
1726
1726
|
return Object.keys(y.categories).map((E) => {
|
|
1727
1727
|
const I = y.categories[E];
|
|
1728
1728
|
if (I.$ref) {
|
|
1729
|
-
|
|
1729
|
+
S.push(r(E, I, d, g, w));
|
|
1730
1730
|
return;
|
|
1731
1731
|
}
|
|
1732
|
-
const R = I == null ? void 0 : I.title, O = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName,
|
|
1733
|
-
|
|
1734
|
-
}),
|
|
1732
|
+
const R = I == null ? void 0 : I.title, O = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName, x = 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
|
+
S.push({ categoryId: E, categoryName: R, tabId: O, tabName: F, hide: x, properties: P, hideTitle: T, setPropertyRelates: V, parentPropertyID: _ });
|
|
1734
|
+
}), S;
|
|
1735
1735
|
}
|
|
1736
1736
|
return [];
|
|
1737
1737
|
}
|
|
@@ -1818,7 +1818,7 @@ function Hn(e, t) {
|
|
|
1818
1818
|
}
|
|
1819
1819
|
return { getSchemaByType: l, resolveSchemaWithDefaultValue: c, resolveSchemaToProps: s, mappingSchemaToProps: u, setDesignerContext: h };
|
|
1820
1820
|
}
|
|
1821
|
-
const Wn = {}, qn = {}, { getSchemaByType:
|
|
1821
|
+
const Wn = {}, qn = {}, { getSchemaByType: xd, resolveSchemaWithDefaultValue: Ol, resolveSchemaToProps: Sd, mappingSchemaToProps: Fd, setDesignerContext: Td } = Hn(Wn, qn), Gn = {}, Un = {};
|
|
1822
1822
|
zn(Gn, Un, Ol);
|
|
1823
1823
|
const _n = {}, Yn = {}, { getSchemaByType: Bd, resolveSchemaWithDefaultValue: Ml, resolveSchemaToProps: El, mappingSchemaToProps: Dl, setDesignerContext: Od } = Hn(_n, Yn), Xn = {}, Jn = {};
|
|
1824
1824
|
zn(Xn, Jn, Ml);
|
|
@@ -2093,8 +2093,8 @@ var zl = { exports: {} };
|
|
|
2093
2093
|
(function(l) {
|
|
2094
2094
|
var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
|
|
2095
2095
|
function f(O, F) {
|
|
2096
|
-
var
|
|
2097
|
-
|
|
2096
|
+
var x = arguments.length;
|
|
2097
|
+
x === 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
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({
|
|
@@ -2230,8 +2230,8 @@ var zl = { exports: {} };
|
|
|
2230
2230
|
var te = Xe(Y);
|
|
2231
2231
|
if (te === !1)
|
|
2232
2232
|
return !1;
|
|
2233
|
-
var Te = Ft(Y, D), Ce = Tt(Y, Te, z, H),
|
|
2234
|
-
return
|
|
2233
|
+
var Te = Ft(Y, D), Ce = Tt(Y, Te, z, H), xe = ue(Y, Ce);
|
|
2234
|
+
return xe ? !0 : U.accepts(V, Y, P, Ce);
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
2237
|
function Ne(D) {
|
|
@@ -2241,29 +2241,29 @@ var zl = { exports: {} };
|
|
|
2241
2241
|
var z = R("clientX", D) || 0, H = R("clientY", D) || 0;
|
|
2242
2242
|
T.style.left = z - 2 + "px", T.style.top = H - 2 + "px";
|
|
2243
2243
|
var Y = W || V, K = p(T, z, H), te = fe(K, z, H), Te = te !== null && te !== ce;
|
|
2244
|
-
(Te || te === null) && (
|
|
2244
|
+
(Te || te === null) && (Se(), ce = te, Ee()), Yt(K, H);
|
|
2245
2245
|
var Ce = b(Y);
|
|
2246
2246
|
if (te === P && W && !U.copySortSource) {
|
|
2247
2247
|
Ce && Ce.removeChild(Y);
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
2250
|
-
var
|
|
2250
|
+
var xe, Me = Ft(te, K);
|
|
2251
2251
|
if (le = yt(Me, te), Me !== null)
|
|
2252
|
-
|
|
2252
|
+
xe = Tt(te, Me, z, H);
|
|
2253
2253
|
else if (U.revertOnSpill === !0 && !W)
|
|
2254
|
-
|
|
2254
|
+
xe = j, te = P;
|
|
2255
2255
|
else {
|
|
2256
2256
|
W && Ce && Ce.removeChild(Y), W && X && (X.style.display = "none");
|
|
2257
2257
|
return;
|
|
2258
2258
|
}
|
|
2259
|
-
X.style.display = "block", Vt(
|
|
2259
|
+
X.style.display = "block", Vt(xe, Y, Te), xe ? Ut(Me, xe) : _t(te);
|
|
2260
2260
|
function pe(he) {
|
|
2261
2261
|
ae.emit(he, Y, ce, P);
|
|
2262
2262
|
}
|
|
2263
2263
|
function Ee() {
|
|
2264
2264
|
Te && pe("over");
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function Se() {
|
|
2267
2267
|
ce && pe("out");
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
@@ -2369,20 +2369,20 @@ var zl = { exports: {} };
|
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
function Tt(D, z, H, Y) {
|
|
2372
|
-
var K = U.direction === "horizontal", te = U.direction === "mixed", Te = z !== D ?
|
|
2372
|
+
var K = U.direction === "horizontal", te = U.direction === "mixed", Te = z !== D ? xe() : Ce();
|
|
2373
2373
|
return Te;
|
|
2374
2374
|
function Ce() {
|
|
2375
|
-
var pe = D.children.length, Ee,
|
|
2375
|
+
var pe = D.children.length, Ee, Se, he;
|
|
2376
2376
|
for (Ee = 0; Ee < pe; Ee++)
|
|
2377
|
-
if (
|
|
2378
|
-
return
|
|
2377
|
+
if (Se = D.children[Ee], he = Se.getBoundingClientRect(), K && he.left + he.width / 2 > H || !te && !K && he.top + he.height / 2 > Y || te && he.left + he.width > H && he.top + he.height > Y)
|
|
2378
|
+
return Se;
|
|
2379
2379
|
return null;
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function xe() {
|
|
2382
2382
|
var pe = z.getBoundingClientRect();
|
|
2383
2383
|
if (te) {
|
|
2384
|
-
var Ee = Y - pe.top,
|
|
2385
|
-
return le ? gt = vt <
|
|
2384
|
+
var Ee = Y - pe.top, Se = H - pe.left, he = pe.bottom - Y, vt = pe.right - H, ht = Math.min(Se, vt, Ee, he), gt;
|
|
2385
|
+
return le ? gt = vt < Se : gt = he === ht || vt === ht || Se === ht, Me(gt);
|
|
2386
2386
|
}
|
|
2387
2387
|
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + M(pe) / 2);
|
|
2388
2388
|
}
|
|
@@ -2400,20 +2400,20 @@ var zl = { exports: {} };
|
|
|
2400
2400
|
const T = Array.from(window.scrollContainerList)[0];
|
|
2401
2401
|
return document.getElementById(T);
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2404
|
-
for (const T of
|
|
2403
|
+
const x = m(F);
|
|
2404
|
+
for (const T of x)
|
|
2405
2405
|
if (T.contains(O))
|
|
2406
2406
|
return T;
|
|
2407
2407
|
return null;
|
|
2408
2408
|
}
|
|
2409
2409
|
function m(O) {
|
|
2410
2410
|
const F = [];
|
|
2411
|
-
return O.forEach((
|
|
2412
|
-
const T = document.getElementById(
|
|
2411
|
+
return O.forEach((x) => {
|
|
2412
|
+
const T = document.getElementById(x);
|
|
2413
2413
|
T && F.push(T);
|
|
2414
|
-
}), F.sort((
|
|
2414
|
+
}), F.sort((x, T) => x.contains(T) ? 1 : T.contains(x) ? -1 : 0), F;
|
|
2415
2415
|
}
|
|
2416
|
-
function d(O, F,
|
|
2416
|
+
function d(O, F, x, T) {
|
|
2417
2417
|
var P = {
|
|
2418
2418
|
mouseup: "touchend",
|
|
2419
2419
|
mousedown: "touchstart",
|
|
@@ -2427,7 +2427,7 @@ var zl = { exports: {} };
|
|
|
2427
2427
|
mousedown: "MSPointerDown",
|
|
2428
2428
|
mousemove: "MSPointerMove"
|
|
2429
2429
|
};
|
|
2430
|
-
l.navigator.pointerEnabled ? u[F](O, V[
|
|
2430
|
+
l.navigator.pointerEnabled ? u[F](O, V[x], T) : l.navigator.msPointerEnabled ? u[F](O, _[x], T) : (u[F](O, P[x], T), u[F](O, x, T));
|
|
2431
2431
|
}
|
|
2432
2432
|
function g(O) {
|
|
2433
2433
|
if (O.touches !== void 0)
|
|
@@ -2440,10 +2440,10 @@ var zl = { exports: {} };
|
|
|
2440
2440
|
if (F !== void 0)
|
|
2441
2441
|
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2442
2442
|
}
|
|
2443
|
-
function p(O, F,
|
|
2443
|
+
function p(O, F, x) {
|
|
2444
2444
|
O = O || {};
|
|
2445
2445
|
var T = O.className || "", P;
|
|
2446
|
-
return O.className += " gu-hide", P = c.elementFromPoint(F,
|
|
2446
|
+
return O.className += " gu-hide", P = c.elementFromPoint(F, x), O.className = T, P;
|
|
2447
2447
|
}
|
|
2448
2448
|
function w() {
|
|
2449
2449
|
return !1;
|
|
@@ -2461,32 +2461,32 @@ var zl = { exports: {} };
|
|
|
2461
2461
|
return O.parentNode === c ? null : O.parentNode;
|
|
2462
2462
|
}
|
|
2463
2463
|
function y(O) {
|
|
2464
|
-
return O.tagName === "INPUT" || O.tagName === "TEXTAREA" || O.tagName === "SELECT" ||
|
|
2464
|
+
return O.tagName === "INPUT" || O.tagName === "TEXTAREA" || O.tagName === "SELECT" || S(O);
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
return !O || O.contentEditable === "false" ? !1 : O.contentEditable === "true" ? !0 :
|
|
2466
|
+
function S(O) {
|
|
2467
|
+
return !O || O.contentEditable === "false" ? !1 : O.contentEditable === "true" ? !0 : S(b(O));
|
|
2468
2468
|
}
|
|
2469
2469
|
function E(O) {
|
|
2470
2470
|
return O.nextElementSibling || F();
|
|
2471
2471
|
function F() {
|
|
2472
|
-
var
|
|
2472
|
+
var x = O;
|
|
2473
2473
|
do
|
|
2474
|
-
|
|
2475
|
-
while (
|
|
2476
|
-
return
|
|
2474
|
+
x = x.nextSibling;
|
|
2475
|
+
while (x && x.nodeType !== 1);
|
|
2476
|
+
return x;
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
2479
|
function I(O) {
|
|
2480
2480
|
return O.targetTouches && O.targetTouches.length ? O.targetTouches[0] : O.changedTouches && O.changedTouches.length ? O.changedTouches[0] : O;
|
|
2481
2481
|
}
|
|
2482
2482
|
function R(O, F) {
|
|
2483
|
-
var
|
|
2483
|
+
var x = I(F), T = {
|
|
2484
2484
|
pageX: "clientX",
|
|
2485
2485
|
// IE8
|
|
2486
2486
|
pageY: "clientY"
|
|
2487
2487
|
// IE8
|
|
2488
2488
|
};
|
|
2489
|
-
return O in T && !(O in
|
|
2489
|
+
return O in T && !(O in x) && T[O] in x && (O = T[O]), x[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,21 +2549,21 @@ var zl = { exports: {} };
|
|
|
2549
2549
|
remove: h,
|
|
2550
2550
|
fabricate: p
|
|
2551
2551
|
};
|
|
2552
|
-
function r(b, y,
|
|
2553
|
-
return b.addEventListener(y,
|
|
2552
|
+
function r(b, y, S, E) {
|
|
2553
|
+
return b.addEventListener(y, S, E);
|
|
2554
2554
|
}
|
|
2555
|
-
function m(b, y,
|
|
2556
|
-
return b.attachEvent("on" + y, k(b, y,
|
|
2555
|
+
function m(b, y, S) {
|
|
2556
|
+
return b.attachEvent("on" + y, k(b, y, S));
|
|
2557
2557
|
}
|
|
2558
|
-
function d(b, y,
|
|
2559
|
-
return b.removeEventListener(y,
|
|
2558
|
+
function d(b, y, S, E) {
|
|
2559
|
+
return b.removeEventListener(y, S, E);
|
|
2560
2560
|
}
|
|
2561
|
-
function g(b, y,
|
|
2562
|
-
var E = B(b, y,
|
|
2561
|
+
function g(b, y, S) {
|
|
2562
|
+
var E = B(b, y, S);
|
|
2563
2563
|
if (E)
|
|
2564
2564
|
return b.detachEvent("on" + y, E);
|
|
2565
2565
|
}
|
|
2566
|
-
function p(b, y,
|
|
2566
|
+
function p(b, y, S) {
|
|
2567
2567
|
var E = u.indexOf(y) === -1 ? R() : I();
|
|
2568
2568
|
b.dispatchEvent ? b.dispatchEvent(E) : b.fireEvent("on" + y, E);
|
|
2569
2569
|
function I() {
|
|
@@ -2571,39 +2571,39 @@ var zl = { exports: {} };
|
|
|
2571
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
|
-
return new i(y, { detail:
|
|
2574
|
+
return new i(y, { detail: S });
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
|
-
function w(b, y,
|
|
2577
|
+
function w(b, y, S) {
|
|
2578
2578
|
return function(I) {
|
|
2579
2579
|
var R = I || l.event;
|
|
2580
2580
|
R.target = R.target || R.srcElement, R.preventDefault = R.preventDefault || function() {
|
|
2581
2581
|
R.returnValue = !1;
|
|
2582
2582
|
}, R.stopPropagation = R.stopPropagation || function() {
|
|
2583
2583
|
R.cancelBubble = !0;
|
|
2584
|
-
}, R.which = R.which || R.keyCode,
|
|
2584
|
+
}, R.which = R.which || R.keyCode, S.call(b, R);
|
|
2585
2585
|
};
|
|
2586
2586
|
}
|
|
2587
|
-
function k(b, y,
|
|
2588
|
-
var E = B(b, y,
|
|
2587
|
+
function k(b, y, S) {
|
|
2588
|
+
var E = B(b, y, S) || w(b, y, S);
|
|
2589
2589
|
return f.push({
|
|
2590
2590
|
wrapper: E,
|
|
2591
2591
|
element: b,
|
|
2592
2592
|
type: y,
|
|
2593
|
-
fn:
|
|
2593
|
+
fn: S
|
|
2594
2594
|
}), E;
|
|
2595
2595
|
}
|
|
2596
|
-
function B(b, y,
|
|
2597
|
-
var E = M(b, y,
|
|
2596
|
+
function B(b, y, S) {
|
|
2597
|
+
var E = M(b, y, S);
|
|
2598
2598
|
if (E) {
|
|
2599
2599
|
var I = f[E].wrapper;
|
|
2600
2600
|
return f.splice(E, 1), I;
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
function M(b, y,
|
|
2603
|
+
function M(b, y, S) {
|
|
2604
2604
|
var E, I;
|
|
2605
2605
|
for (E = 0; E < f.length; E++)
|
|
2606
|
-
if (I = f[E], I.element === b && I.type === y && I.fn ===
|
|
2606
|
+
if (I = f[E], I.element === b && I.type === y && I.fn === S)
|
|
2607
2607
|
return E;
|
|
2608
2608
|
}
|
|
2609
2609
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2809,7 +2809,7 @@ const Hl = {
|
|
|
2809
2809
|
const {
|
|
2810
2810
|
locale: n,
|
|
2811
2811
|
t: a
|
|
2812
|
-
} =
|
|
2812
|
+
} = xt(), 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
2813
|
const M = {
|
|
2814
2814
|
animated: u.value,
|
|
2815
2815
|
toast: !0,
|
|
@@ -2817,10 +2817,10 @@ const Hl = {
|
|
|
2817
2817
|
};
|
|
2818
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
|
-
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2820
|
+
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, S = {
|
|
2821
2821
|
"f-icon": !0
|
|
2822
2822
|
};
|
|
2823
|
-
return
|
|
2823
|
+
return S[y] = !0, S;
|
|
2824
2824
|
}), r = N(() => i.value.title || i.value.message), m = N(() => e.showCloseButton), d = N(() => !!i.value.buttons || !!t.slots.default), g = N(() => n.value === "en" ? {
|
|
2825
2825
|
wordBreak: "keep-all",
|
|
2826
2826
|
overflowWrap: "break-word"
|
|
@@ -3217,7 +3217,7 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3217
3217
|
} = i, {
|
|
3218
3218
|
gridDataStyle: b,
|
|
3219
3219
|
leftFixedGridDataStyle: y,
|
|
3220
|
-
rightFixedGridDataStyle:
|
|
3220
|
+
rightFixedGridDataStyle: S
|
|
3221
3221
|
} = m, {
|
|
3222
3222
|
renderDataRow: E
|
|
3223
3223
|
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [E];
|
|
@@ -3243,18 +3243,18 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3243
3243
|
style: b.value
|
|
3244
3244
|
}, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
|
|
3245
3245
|
}
|
|
3246
|
-
function
|
|
3246
|
+
function x() {
|
|
3247
3247
|
return v("div", {
|
|
3248
3248
|
ref: o,
|
|
3249
3249
|
class: "fv-grid-content-right-fixed"
|
|
3250
3250
|
}, [v("div", {
|
|
3251
3251
|
class: "fv-grid-data",
|
|
3252
|
-
style:
|
|
3252
|
+
style: S.value
|
|
3253
3253
|
}, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
|
|
3254
3254
|
}
|
|
3255
3255
|
function T() {
|
|
3256
3256
|
const P = [];
|
|
3257
|
-
return B.value && P.push(O()), P.push(F()), M.value && P.push(
|
|
3257
|
+
return B.value && P.push(O()), P.push(F()), M.value && P.push(x()), P;
|
|
3258
3258
|
}
|
|
3259
3259
|
return {
|
|
3260
3260
|
renderDataArea: T
|
|
@@ -3274,11 +3274,11 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3274
3274
|
showLoading: M,
|
|
3275
3275
|
renderLoading: b
|
|
3276
3276
|
} = Za(e, s), y = Ka(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3277
|
-
dataView:
|
|
3277
|
+
dataView: S
|
|
3278
3278
|
} = y, E = eo(e, y, i, m, t), {
|
|
3279
3279
|
showSelection: I,
|
|
3280
3280
|
selectedValues: R
|
|
3281
|
-
} = E, O = to(e, m, y, i, E, t), F = N(() => e.disabled),
|
|
3281
|
+
} = E, O = to(e, m, y, i, E, t), F = N(() => e.disabled), x = 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,11 +3297,11 @@ 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, 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,
|
|
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, x, 0, Xe), {
|
|
3301
3301
|
getVisualData: Be
|
|
3302
3302
|
} = $e, it = vo(e, ve), Je = ho(e, E), {
|
|
3303
3303
|
sidebarWidth: rt
|
|
3304
|
-
} = Je, se = go(e, y, m, ve, $e,
|
|
3304
|
+
} = Je, se = go(e, y, m, ve, $e, x, 0, rt), {
|
|
3305
3305
|
onWheel: pt,
|
|
3306
3306
|
dataGridWidth: Ae,
|
|
3307
3307
|
viewPortHeight: ze,
|
|
@@ -3328,9 +3328,9 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3328
3328
|
renderGridHeader: fe,
|
|
3329
3329
|
renderGridColumnResizeOverlay: Ne,
|
|
3330
3330
|
shouldShowHeader: Vt
|
|
3331
|
-
} =
|
|
3331
|
+
} = xo(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, E, Je, ee, se, Oe, m), {
|
|
3332
3332
|
renderDataGridSidebar: $t
|
|
3333
|
-
} =
|
|
3333
|
+
} = So(e, de, E, Je, se), {
|
|
3334
3334
|
renderDisableMask: At
|
|
3335
3335
|
} = Fo(), {
|
|
3336
3336
|
renderHorizontalScrollbar: zt
|
|
@@ -3345,7 +3345,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3345
3345
|
}
|
|
3346
3346
|
}
|
|
3347
3347
|
be(() => {
|
|
3348
|
-
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0,
|
|
3348
|
+
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0, x.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(() => {
|
|
@@ -3364,11 +3364,11 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3364
3364
|
}
|
|
3365
3365
|
function Gt() {
|
|
3366
3366
|
const q = yt();
|
|
3367
|
-
y.insertNewDataItem(q), m.value = Be(0,
|
|
3367
|
+
y.insertNewDataItem(q), m.value = Be(0, x.value + 0 - 1);
|
|
3368
3368
|
}
|
|
3369
3369
|
function Ut() {
|
|
3370
3370
|
const q = yt();
|
|
3371
|
-
y.insertNewChildDataItem(q), m.value = Be(0,
|
|
3371
|
+
y.insertNewChildDataItem(q), m.value = Be(0, x.value + 0 - 1);
|
|
3372
3372
|
}
|
|
3373
3373
|
function _t(q, J) {
|
|
3374
3374
|
const me = m.value.find((Fe) => Fe.raw[u.value] === J), ge = me ? me.dataIndex - 1 : -1;
|
|
@@ -3376,7 +3376,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3376
3376
|
}
|
|
3377
3377
|
function Yt() {
|
|
3378
3378
|
const q = yt(), J = O.getNextSelectableHierarchyItemId(q);
|
|
3379
|
-
y.removeHierarchyDataItem(q), m.value = Be(0,
|
|
3379
|
+
y.removeHierarchyDataItem(q), m.value = Be(0, x.value + 0 - 1), J && O.selectItemById(J);
|
|
3380
3380
|
}
|
|
3381
3381
|
function Tt(q) {
|
|
3382
3382
|
ne.onEditingRow(q);
|
|
@@ -3412,7 +3412,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3412
3412
|
function Ce() {
|
|
3413
3413
|
return E.getSelectedItems();
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3415
|
+
function xe() {
|
|
3416
3416
|
E.clearSelection();
|
|
3417
3417
|
}
|
|
3418
3418
|
const Me = N(() => !m.value || !m.value.length), {
|
|
@@ -3421,14 +3421,14 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3421
3421
|
function Ee() {
|
|
3422
3422
|
return E.getSelectionRow();
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3424
|
+
function Se(q) {
|
|
3425
3425
|
O.unSelectItemByIds(q);
|
|
3426
3426
|
}
|
|
3427
3427
|
function he() {
|
|
3428
3428
|
return E.currentSelectedDataId.value;
|
|
3429
3429
|
}
|
|
3430
3430
|
function vt(q, J, me) {
|
|
3431
|
-
const ge =
|
|
3431
|
+
const ge = S.value.find((Fe) => Fe[u.value] === q);
|
|
3432
3432
|
if (ge) {
|
|
3433
3433
|
if (Object.keys(ge).forEach((ye) => {
|
|
3434
3434
|
Object.prototype.hasOwnProperty.call(J, ye) && (ge[ye] = J[ye]);
|
|
@@ -3478,8 +3478,8 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3478
3478
|
const J = i.idField.value, me = m.value.find((ge) => ge.raw[J] === q);
|
|
3479
3479
|
me && de.changeRow(me);
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3482
|
-
E.keepSelectingOnPaging.value ||
|
|
3481
|
+
function xa() {
|
|
3482
|
+
E.keepSelectingOnPaging.value || xe(), y.updateVisibleDataSummary(m.value);
|
|
3483
3483
|
}
|
|
3484
3484
|
t.expose({
|
|
3485
3485
|
activeRowById: te,
|
|
@@ -3497,10 +3497,10 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3497
3497
|
selectItemById: Y,
|
|
3498
3498
|
selectItemByIds: Te,
|
|
3499
3499
|
getSelectedItems: Ce,
|
|
3500
|
-
clearSelection:
|
|
3500
|
+
clearSelection: xe,
|
|
3501
3501
|
getSelectionRow: Ee,
|
|
3502
3502
|
clickRowItemById: K,
|
|
3503
|
-
unSelectItemByIds:
|
|
3503
|
+
unSelectItemByIds: Se,
|
|
3504
3504
|
getCurrentRowId: he,
|
|
3505
3505
|
reassignRowData: vt,
|
|
3506
3506
|
hasChildren: ht,
|
|
@@ -3508,9 +3508,9 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3508
3508
|
getCollapseStatusById: gt,
|
|
3509
3509
|
getVisibleDataByIds: wa,
|
|
3510
3510
|
selectRowById: ka,
|
|
3511
|
-
updateDerivedData:
|
|
3511
|
+
updateDerivedData: xa
|
|
3512
3512
|
});
|
|
3513
|
-
const
|
|
3513
|
+
const Sa = N(() => {
|
|
3514
3514
|
const q = {};
|
|
3515
3515
|
return se.shouldShowHorizontalScrollbar.value && (q.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && (q.paddingRight = "10px"), q;
|
|
3516
3516
|
}), Fa = N(() => ({
|
|
@@ -3539,7 +3539,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3539
3539
|
class: Q.value,
|
|
3540
3540
|
onMouseover: () => d.value = !0,
|
|
3541
3541
|
onMouseleave: () => d.value = !1,
|
|
3542
|
-
style:
|
|
3542
|
+
style: Sa.value
|
|
3543
3543
|
}, [c.value && $t(m), c.value && ue(), c.value && Me.value && pe(), c.value && zt(), c.value && Ht()]), c.value && Oa(), I.value && v("div", {
|
|
3544
3544
|
class: Ta.value
|
|
3545
3545
|
}, [I.value && v("div", {
|
|
@@ -3707,18 +3707,18 @@ function Zn(e, t, n) {
|
|
|
3707
3707
|
return null;
|
|
3708
3708
|
if (F.value.schema && F.value.schema.type === "component")
|
|
3709
3709
|
return F.value;
|
|
3710
|
-
const
|
|
3710
|
+
const x = C(F == null ? void 0 : F.value.parent), T = f(x);
|
|
3711
3711
|
return T || null;
|
|
3712
3712
|
}
|
|
3713
3713
|
function r(F = t) {
|
|
3714
3714
|
var V;
|
|
3715
3715
|
if (n != null && n.getDraggableDesignItemElement)
|
|
3716
3716
|
return n.getDraggableDesignItemElement(F);
|
|
3717
|
-
const { componentInstance:
|
|
3718
|
-
if (!
|
|
3717
|
+
const { componentInstance: x, designerItemElementRef: T } = F;
|
|
3718
|
+
if (!x || !x.value)
|
|
3719
3719
|
return null;
|
|
3720
|
-
const { getCustomButtons: P } =
|
|
3721
|
-
return
|
|
3720
|
+
const { getCustomButtons: P } = x.value;
|
|
3721
|
+
return x.value.canMove || P && ((V = P()) != null && V.length) ? T : r(F.parent);
|
|
3722
3722
|
}
|
|
3723
3723
|
function m(F) {
|
|
3724
3724
|
return !!n && n.canAccepts(F);
|
|
@@ -3728,13 +3728,13 @@ function Zn(e, t, n) {
|
|
|
3728
3728
|
}
|
|
3729
3729
|
function g() {
|
|
3730
3730
|
}
|
|
3731
|
-
function p(F,
|
|
3731
|
+
function p(F, x) {
|
|
3732
3732
|
var T;
|
|
3733
|
-
!F || !
|
|
3733
|
+
!F || !x || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, x), (T = t == null ? void 0 : t.setupContext) == null || T.emit("dragEnd"));
|
|
3734
3734
|
}
|
|
3735
|
-
function w(F,
|
|
3735
|
+
function w(F, x) {
|
|
3736
3736
|
const { componentType: T } = F;
|
|
3737
|
-
let P = La(T, F,
|
|
3737
|
+
let P = La(T, F, x);
|
|
3738
3738
|
n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(F, P));
|
|
3739
3739
|
const V = T.toLowerCase().replace(/-/g, "_");
|
|
3740
3740
|
return P && !P.id && P.type === T && (P.id = `${V}_${Math.random().toString().slice(2, 6)}`), P;
|
|
@@ -3749,22 +3749,22 @@ function Zn(e, t, n) {
|
|
|
3749
3749
|
function M(F) {
|
|
3750
3750
|
if (!F)
|
|
3751
3751
|
return;
|
|
3752
|
-
const
|
|
3753
|
-
if (
|
|
3754
|
-
const P = T.getExpressions().findIndex((V) => V.target ===
|
|
3752
|
+
const x = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
|
|
3753
|
+
if (x && T.getExpressions().length) {
|
|
3754
|
+
const P = T.getExpressions().findIndex((V) => V.target === x.id);
|
|
3755
3755
|
P > -1 && T.getExpressions().splice(P, 1);
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
3758
|
function b(F) {
|
|
3759
3759
|
if (!F || !(t != null && t.schema))
|
|
3760
3760
|
return;
|
|
3761
|
-
const
|
|
3762
|
-
T.removeCommunicationInComponent(
|
|
3761
|
+
const x = t.schema, { formSchemaUtils: T } = F;
|
|
3762
|
+
T.removeCommunicationInComponent(x);
|
|
3763
3763
|
}
|
|
3764
3764
|
function y(F) {
|
|
3765
|
-
n && n.onRemoveComponent && n.onRemoveComponent(), M(F), b(F), t != null && t.schema.contents && t.schema.contents.map((
|
|
3766
|
-
let T =
|
|
3767
|
-
|
|
3765
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), M(F), b(F), t != null && t.schema.contents && t.schema.contents.map((x) => {
|
|
3766
|
+
let T = x.id;
|
|
3767
|
+
x.type === "component-ref" && (T = x.component);
|
|
3768
3768
|
const P = e.value.querySelectorAll(`#${T}-design-item`);
|
|
3769
3769
|
P != null && P.length && Array.from(P).map((V) => {
|
|
3770
3770
|
var _;
|
|
@@ -3772,7 +3772,7 @@ function Zn(e, t, n) {
|
|
|
3772
3772
|
});
|
|
3773
3773
|
});
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function S() {
|
|
3776
3776
|
if (n && n.getCustomButtons)
|
|
3777
3777
|
return n.getCustomButtons();
|
|
3778
3778
|
}
|
|
@@ -3784,21 +3784,21 @@ function Zn(e, t, n) {
|
|
|
3784
3784
|
n.setComponentBasicInfoMap();
|
|
3785
3785
|
return;
|
|
3786
3786
|
}
|
|
3787
|
-
let
|
|
3787
|
+
let x = "";
|
|
3788
3788
|
if (n != null && n.getComponentTitle)
|
|
3789
|
-
|
|
3789
|
+
x = n.getComponentTitle();
|
|
3790
3790
|
else {
|
|
3791
3791
|
const { text: V, title: _, label: L, mainTitle: j, name: G, type: W } = t.schema;
|
|
3792
|
-
|
|
3792
|
+
x = V || _ || L || j || G || ((P = A[W]) == null ? void 0 : P.name);
|
|
3793
3793
|
}
|
|
3794
|
-
|
|
3795
|
-
componentTitle:
|
|
3796
|
-
parentPathName:
|
|
3794
|
+
x && i.getControlBasicInfoMap().set(t.schema.id, {
|
|
3795
|
+
componentTitle: x,
|
|
3796
|
+
parentPathName: x
|
|
3797
3797
|
});
|
|
3798
3798
|
}
|
|
3799
3799
|
function I(F) {
|
|
3800
3800
|
var V;
|
|
3801
|
-
const { changeObject:
|
|
3801
|
+
const { changeObject: x } = F, { propertyID: T, propertyValue: P } = x;
|
|
3802
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;
|
|
@@ -3837,7 +3837,7 @@ function Zn(e, t, n) {
|
|
|
3837
3837
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
3838
3838
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
|
|
3839
3839
|
onRemoveComponent: y,
|
|
3840
|
-
getCustomButtons:
|
|
3840
|
+
getCustomButtons: S,
|
|
3841
3841
|
onPropertyChanged: R,
|
|
3842
3842
|
setComponentBasicInfoMap: E,
|
|
3843
3843
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
@@ -4053,7 +4053,7 @@ const mi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-
|
|
|
4053
4053
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
4054
4054
|
};
|
|
4055
4055
|
Ve(ki, wi, ln, fi);
|
|
4056
|
-
function
|
|
4056
|
+
function xi() {
|
|
4057
4057
|
function e(t, n) {
|
|
4058
4058
|
var i;
|
|
4059
4059
|
if (!t)
|
|
@@ -4068,7 +4068,7 @@ function Si() {
|
|
|
4068
4068
|
basalDragulaRuleForContainer: e
|
|
4069
4069
|
};
|
|
4070
4070
|
}
|
|
4071
|
-
const
|
|
4071
|
+
const Si = {
|
|
4072
4072
|
id: { type: String, default: "" },
|
|
4073
4073
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
4074
4074
|
editor: { type: Object, default: {} },
|
|
@@ -4084,7 +4084,7 @@ const xi = {
|
|
|
4084
4084
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
4085
4085
|
};
|
|
4086
4086
|
Ve(
|
|
4087
|
-
|
|
4087
|
+
Si,
|
|
4088
4088
|
Qn,
|
|
4089
4089
|
ln,
|
|
4090
4090
|
void 0
|
|
@@ -4355,7 +4355,7 @@ function Ui(e, t, n, a) {
|
|
|
4355
4355
|
}, [u.value])]);
|
|
4356
4356
|
}
|
|
4357
4357
|
function _i(e, t, n, a, o) {
|
|
4358
|
-
const l = C(e.type), i = C(e.buttons), u = C(e.exceptionInfo), s = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), f = C(e.showOkButton), r = N(() => !!(i.value && i.value.length)), m = N(() => u.value && u.value.
|
|
4358
|
+
const l = C(e.type), i = C(e.buttons), u = C(e.exceptionInfo), s = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), f = C(e.showOkButton), r = N(() => !!(i.value && i.value.length)), m = N(() => !!(u.value && u.value.detail)), d = N(() => !(i.value && i.value.length) && (f.value || h.value)), g = Ui(e, n, a, o);
|
|
4359
4359
|
s.value === "关闭" ? s.value = o.close : s.value === "知道了" && (s.value = o.exception.roger);
|
|
4360
4360
|
function p(k) {
|
|
4361
4361
|
l.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -4382,7 +4382,7 @@ function _i(e, t, n, a, o) {
|
|
|
4382
4382
|
}, null), k.text]))]);
|
|
4383
4383
|
}
|
|
4384
4384
|
function Yi(e) {
|
|
4385
|
-
const { t, locale: n } =
|
|
4385
|
+
const { t, locale: n } = xt();
|
|
4386
4386
|
function a(o, l, i) {
|
|
4387
4387
|
return l === i ? t(o) : l;
|
|
4388
4388
|
}
|
|
@@ -4686,7 +4686,7 @@ function Qi(e, t, n, a, o) {
|
|
|
4686
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
|
|
4689
|
+
function S(O) {
|
|
4690
4690
|
O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
|
|
4691
4691
|
}
|
|
4692
4692
|
function E(O) {
|
|
@@ -4715,7 +4715,7 @@ function Qi(e, t, n, a, o) {
|
|
|
4715
4715
|
onInput: y,
|
|
4716
4716
|
onKeyDownTextBox: E,
|
|
4717
4717
|
onKeyUpTextBox: I,
|
|
4718
|
-
onMouseDownTextBox:
|
|
4718
|
+
onMouseDownTextBox: S,
|
|
4719
4719
|
onTextBoxValueChange: R
|
|
4720
4720
|
};
|
|
4721
4721
|
}
|
|
@@ -4742,7 +4742,7 @@ function Zi(e, t, n, a) {
|
|
|
4742
4742
|
if (!!t.slots.default) {
|
|
4743
4743
|
if (!m && !l.value && !await i())
|
|
4744
4744
|
return;
|
|
4745
|
-
l.value = !l.value, await Ue(), s();
|
|
4745
|
+
l.value = !l.value, l.value && (await Ue(), s());
|
|
4746
4746
|
}
|
|
4747
4747
|
}
|
|
4748
4748
|
async function h(m = !1) {
|
|
@@ -4783,18 +4783,18 @@ function Ki(e, t, n) {
|
|
|
4783
4783
|
"border-bottom-right-radius": "6px"
|
|
4784
4784
|
}));
|
|
4785
4785
|
be(() => {
|
|
4786
|
-
var
|
|
4787
|
-
e.selectOnCreated && ((
|
|
4786
|
+
var S, E;
|
|
4787
|
+
e.selectOnCreated && ((S = a.value) == null || S.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), M = (
|
|
4792
|
-
|
|
4793
|
-
}, b = (
|
|
4794
|
-
|
|
4791
|
+
const B = C(!1), M = (S) => {
|
|
4792
|
+
S.preventDefault(), B.value = !0;
|
|
4793
|
+
}, b = (S) => {
|
|
4794
|
+
S.preventDefault(), B.value = !1, f(S);
|
|
4795
4795
|
};
|
|
4796
|
-
function y(
|
|
4797
|
-
B.value || f(
|
|
4796
|
+
function y(S) {
|
|
4797
|
+
B.value || f(S);
|
|
4798
4798
|
}
|
|
4799
4799
|
return () => v("input", {
|
|
4800
4800
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4963,16 +4963,16 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4963
4963
|
paddingLeft: "3px",
|
|
4964
4964
|
backgroundColor: "#fff"
|
|
4965
4965
|
}));
|
|
4966
|
-
function
|
|
4966
|
+
function S() {
|
|
4967
4967
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
4968
4968
|
return 0;
|
|
4969
4969
|
let V = 0;
|
|
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 E = C(
|
|
4973
|
+
const E = C(S());
|
|
4974
4974
|
an(() => {
|
|
4975
|
-
E.value =
|
|
4975
|
+
E.value = S();
|
|
4976
4976
|
});
|
|
4977
4977
|
function I() {
|
|
4978
4978
|
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!E.value && v("div", {
|
|
@@ -4989,7 +4989,7 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4989
4989
|
const {
|
|
4990
4990
|
renderButtonGroup: O,
|
|
4991
4991
|
buttonHandleElement: F
|
|
4992
|
-
} = tr(e, t, h, p),
|
|
4992
|
+
} = tr(e, t, h, p), x = nr(e, t, l), T = C(i.value), P = {
|
|
4993
4993
|
displayText: f,
|
|
4994
4994
|
commitValue: d,
|
|
4995
4995
|
elementRef: n,
|
|
@@ -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(), O()])]), T.value &&
|
|
5051
|
+
}, [(_ = (V = t.slots).precontent) == null ? void 0 : _.call(V), R(), O()])]), T.value && x()]);
|
|
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
|
+
"onUpdate:modelValue": {
|
|
5475
5475
|
description: "",
|
|
5476
|
-
type: "
|
|
5476
|
+
type: "object"
|
|
5477
5477
|
}
|
|
5478
5478
|
}, gr = [
|
|
5479
5479
|
"type"
|
|
@@ -5665,7 +5665,7 @@ const un = {
|
|
|
5665
5665
|
popupOnClick: { type: Boolean, default: !0 }
|
|
5666
5666
|
}, kr = Object.assign({}, un, {
|
|
5667
5667
|
readonly: {}
|
|
5668
|
-
}), aa = on(un, Cr, dr, wr),
|
|
5668
|
+
}), aa = on(un, Cr, dr, wr), xr = {
|
|
5669
5669
|
dataSource: { type: Array, default: [] },
|
|
5670
5670
|
enableSearch: { type: Boolean, default: !1 },
|
|
5671
5671
|
idField: { type: String, default: "id" },
|
|
@@ -5686,9 +5686,9 @@ const un = {
|
|
|
5686
5686
|
},
|
|
5687
5687
|
// 搜索启用高亮
|
|
5688
5688
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
5689
|
-
},
|
|
5689
|
+
}, Sr = /* @__PURE__ */ oe({
|
|
5690
5690
|
name: "FComboListContainer",
|
|
5691
|
-
props:
|
|
5691
|
+
props: xr,
|
|
5692
5692
|
emits: ["selectionChange"],
|
|
5693
5693
|
setup(e, t) {
|
|
5694
5694
|
const n = C(), a = C(e.dataSource), o = C([]), l = C(e.separator), i = C(e.width), u = C(e.maxHeight), s = C(String(e.selectedValues).split(l.value)), c = N(() => e.multiSelect), h = N(() => ({
|
|
@@ -5764,7 +5764,7 @@ const un = {
|
|
|
5764
5764
|
}
|
|
5765
5765
|
});
|
|
5766
5766
|
function Fr(e) {
|
|
5767
|
-
const { t } =
|
|
5767
|
+
const { t } = xt(), n = C(""), a = C(e.modelValue), o = C(e.data || []), l = C(e.editable);
|
|
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) => {
|
|
@@ -5824,7 +5824,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5824
5824
|
setup(e, t) {
|
|
5825
5825
|
const {
|
|
5826
5826
|
t: n
|
|
5827
|
-
} =
|
|
5827
|
+
} = xt(), a = C(), o = C(), l = C(e.disabled || e.readonly), i = C(e.enableClear), u = C(e.enableSearch), s = C(e.readonly), {
|
|
5828
5828
|
dataSource: c,
|
|
5829
5829
|
displayText: h,
|
|
5830
5830
|
editable: f,
|
|
@@ -5838,29 +5838,29 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5838
5838
|
function B() {
|
|
5839
5839
|
!w.value && o.value && o.value.hidePopup();
|
|
5840
5840
|
}
|
|
5841
|
-
function M(
|
|
5842
|
-
h.value =
|
|
5841
|
+
function M(x) {
|
|
5842
|
+
h.value = x.map((P) => P[e.textField]).join(e.separator);
|
|
5843
5843
|
let T = "";
|
|
5844
|
-
|
|
5844
|
+
x.length === 1 ? T = x[0][e.valueField] : T = x.map((P) => P[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", x, r.value));
|
|
5845
5845
|
}
|
|
5846
5846
|
function b() {
|
|
5847
|
-
const
|
|
5848
|
-
M(
|
|
5847
|
+
const x = g(r.value);
|
|
5848
|
+
M(x);
|
|
5849
5849
|
}
|
|
5850
5850
|
function y() {
|
|
5851
5851
|
s.value || h.value;
|
|
5852
5852
|
}
|
|
5853
|
-
function x
|
|
5853
|
+
function S(x) {
|
|
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 E(
|
|
5857
|
+
function E(x) {
|
|
5858
5858
|
var T, P;
|
|
5859
|
-
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(
|
|
5859
|
+
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(x)), (P = a.value) == null || P.activeRowById(x), t.emit("change", [r.value], r.value);
|
|
5860
5860
|
}
|
|
5861
|
-
function I(
|
|
5861
|
+
function I(x) {
|
|
5862
5862
|
if (e.multiSelect) {
|
|
5863
|
-
const T = d(
|
|
5863
|
+
const T = d(x);
|
|
5864
5864
|
e.viewType;
|
|
5865
5865
|
const V = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5866
5866
|
r.value !== V && (r.value = V, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
@@ -5869,10 +5869,10 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5869
5869
|
function R() {
|
|
5870
5870
|
return h.value;
|
|
5871
5871
|
}
|
|
5872
|
-
function O(
|
|
5872
|
+
function O(x) {
|
|
5873
5873
|
const {
|
|
5874
5874
|
value: T
|
|
5875
|
-
} =
|
|
5875
|
+
} = x.target;
|
|
5876
5876
|
E(T), t.emit("input", T);
|
|
5877
5877
|
}
|
|
5878
5878
|
function F() {
|
|
@@ -5881,8 +5881,8 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5881
5881
|
return t.expose({
|
|
5882
5882
|
getDisplayText: R,
|
|
5883
5883
|
hidePopup: F
|
|
5884
|
-
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
5885
|
-
l.value =
|
|
5884
|
+
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([x, T, P, V, _]) => {
|
|
5885
|
+
l.value = x, f.value = T, i.value = P, u.value = V, s.value = _;
|
|
5886
5886
|
}), () => v(jn, {
|
|
5887
5887
|
ref: o,
|
|
5888
5888
|
id: e.id,
|
|
@@ -5899,10 +5899,10 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5899
5899
|
multiSelect: e.multiSelect,
|
|
5900
5900
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
5901
5901
|
modelValue: h.value,
|
|
5902
|
-
"onUpdate:modelValue": (
|
|
5902
|
+
"onUpdate:modelValue": (x) => h.value = x,
|
|
5903
5903
|
focusOnCreated: e.focusOnCreated,
|
|
5904
5904
|
selectOnCreated: e.selectOnCreated,
|
|
5905
|
-
onClear:
|
|
5905
|
+
onClear: S,
|
|
5906
5906
|
onClick: y,
|
|
5907
5907
|
onChange: I,
|
|
5908
5908
|
onBlur: b,
|
|
@@ -5914,7 +5914,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5914
5914
|
popupOnClick: e.popupOnClick,
|
|
5915
5915
|
limitContentBySpace: !0
|
|
5916
5916
|
}, {
|
|
5917
|
-
default: () => [v(
|
|
5917
|
+
default: () => [v(Sr, {
|
|
5918
5918
|
ref: a,
|
|
5919
5919
|
idField: e.idField,
|
|
5920
5920
|
valueField: e.valueField,
|
|
@@ -5928,8 +5928,8 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5928
5928
|
maxHeight: e.maxHeight,
|
|
5929
5929
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
5930
5930
|
width: e.fitEditor ? k.value : void 0,
|
|
5931
|
-
onSelectionChange: (
|
|
5932
|
-
M(
|
|
5931
|
+
onSelectionChange: (x) => {
|
|
5932
|
+
M(x), B();
|
|
5933
5933
|
}
|
|
5934
5934
|
}, null)]
|
|
5935
5935
|
});
|
|
@@ -6054,7 +6054,7 @@ class Tr extends Do {
|
|
|
6054
6054
|
// },
|
|
6055
6055
|
// },
|
|
6056
6056
|
body: {
|
|
6057
|
-
visible:
|
|
6057
|
+
visible: !1,
|
|
6058
6058
|
$converter: bn,
|
|
6059
6059
|
description: "",
|
|
6060
6060
|
title: "服务端API参数",
|
|
@@ -6086,7 +6086,8 @@ class Tr extends Do {
|
|
|
6086
6086
|
editor: {
|
|
6087
6087
|
nullable: !0,
|
|
6088
6088
|
min: 0,
|
|
6089
|
-
useThousands: !1
|
|
6089
|
+
useThousands: !1,
|
|
6090
|
+
needValid: !0
|
|
6090
6091
|
}
|
|
6091
6092
|
},
|
|
6092
6093
|
...this.getCommonEditorProperties(t)
|
|
@@ -6163,7 +6164,8 @@ class Tr extends Do {
|
|
|
6163
6164
|
editor: {
|
|
6164
6165
|
nullable: !0,
|
|
6165
6166
|
min: 0,
|
|
6166
|
-
useThousands: !1
|
|
6167
|
+
useThousands: !1,
|
|
6168
|
+
needValid: !0
|
|
6167
6169
|
}
|
|
6168
6170
|
},
|
|
6169
6171
|
...this.getCommonEditorProperties(t)
|
|
@@ -6416,17 +6418,17 @@ function ra(e) {
|
|
|
6416
6418
|
function h(p, w, k, B) {
|
|
6417
6419
|
const M = e.value;
|
|
6418
6420
|
if (M) {
|
|
6419
|
-
const { left: b, right: y, width:
|
|
6421
|
+
const { left: b, right: y, width: S } = M.getBoundingClientRect();
|
|
6420
6422
|
let E = p.clientX - b;
|
|
6421
|
-
B === "right" && (E = y - p.clientX), E > w && (E = w), E < k && (E = k), B === "right" && (E =
|
|
6423
|
+
B === "right" && (E = y - p.clientX), E > w && (E = w), E < k && (E = k), B === "right" && (E = S - E), a.value = E;
|
|
6422
6424
|
}
|
|
6423
6425
|
}
|
|
6424
6426
|
function f(p, w, k, B) {
|
|
6425
6427
|
const M = e.value;
|
|
6426
6428
|
if (M) {
|
|
6427
|
-
const { top: b, bottom: y, height:
|
|
6429
|
+
const { top: b, bottom: y, height: S } = M.getBoundingClientRect();
|
|
6428
6430
|
let E = p.clientY - b;
|
|
6429
|
-
B === "bottom" && (E = y - p.clientY), E > w && (E = w), E < k && (E = k), B === "bottom" && (E =
|
|
6431
|
+
B === "bottom" && (E = y - p.clientY), E > w && (E = w), E < k && (E = k), B === "bottom" && (E = S - E), o.value = E;
|
|
6430
6432
|
}
|
|
6431
6433
|
}
|
|
6432
6434
|
function r() {
|
|
@@ -6722,14 +6724,14 @@ function ua(e, t, n, a, o) {
|
|
|
6722
6724
|
let g = "", p, w, k;
|
|
6723
6725
|
function B(y) {
|
|
6724
6726
|
if ((g === "left" || g === "right") && w) {
|
|
6725
|
-
const { left:
|
|
6727
|
+
const { left: S } = w.getBoundingClientRect(), { width: E } = p.getBoundingClientRect(), I = y.clientX - S;
|
|
6726
6728
|
let R = g === "left" ? (E || 0) + (I - l.value) : (E || 0) - (I - l.value);
|
|
6727
6729
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6728
6730
|
const O = d(g, n.value);
|
|
6729
6731
|
O != null && (R = O > R ? R : O), e.value = R;
|
|
6730
6732
|
}
|
|
6731
6733
|
if ((g === "top" || g === "bottom") && w) {
|
|
6732
|
-
const { top:
|
|
6734
|
+
const { top: S } = w.getBoundingClientRect(), { height: E } = p.getBoundingClientRect(), I = y.clientY - S;
|
|
6733
6735
|
let R = g === "top" ? (E || 0) + (I - c.value) : (E || 0) - (I - c.value);
|
|
6734
6736
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6735
6737
|
const O = m(g, a.value);
|
|
@@ -6737,16 +6739,16 @@ function ua(e, t, n, a, o) {
|
|
|
6737
6739
|
}
|
|
6738
6740
|
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;
|
|
6739
6741
|
}
|
|
6740
|
-
function M(y,
|
|
6741
|
-
if (g =
|
|
6742
|
+
function M(y, S, E) {
|
|
6743
|
+
if (g = S, p = E, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6742
6744
|
const { left: R } = w.getBoundingClientRect(), O = y.clientX - R;
|
|
6743
6745
|
i.value = O, l.value = O;
|
|
6744
6746
|
const F = d(g, n.value) || 0;
|
|
6745
|
-
k = (
|
|
6747
|
+
k = (x) => f(x, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6746
6748
|
}
|
|
6747
6749
|
}
|
|
6748
|
-
function b(y,
|
|
6749
|
-
if (g =
|
|
6750
|
+
function b(y, S, E) {
|
|
6751
|
+
if (g = S, p = E, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6750
6752
|
const { top: R } = w.getBoundingClientRect();
|
|
6751
6753
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6752
6754
|
const O = m(g, a.value) || 0;
|
|
@@ -6785,7 +6787,7 @@ const je = /* @__PURE__ */ oe({
|
|
|
6785
6787
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
6786
6788
|
"f-page-content-main": c.value === "center"
|
|
6787
6789
|
};
|
|
6788
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6790
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, S) => (y[S] = !0, y), b), b;
|
|
6789
6791
|
}), M = N(() => {
|
|
6790
6792
|
const b = {};
|
|
6791
6793
|
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;
|
|
@@ -6842,7 +6844,7 @@ const as = /* @__PURE__ */ oe({
|
|
|
6842
6844
|
function os(e, t) {
|
|
6843
6845
|
const n = e.schema;
|
|
6844
6846
|
function a(l) {
|
|
6845
|
-
return !!
|
|
6847
|
+
return !!xi().basalDragulaRuleForContainer(l);
|
|
6846
6848
|
}
|
|
6847
6849
|
function o() {
|
|
6848
6850
|
const l = ["f-layout-pane"];
|
|
@@ -6882,7 +6884,7 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6882
6884
|
"f-page-content-nav": f.value === "left" || f.value === "right",
|
|
6883
6885
|
"f-page-content-main": f.value === "center"
|
|
6884
6886
|
};
|
|
6885
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6887
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, S) => (y[S] = !0, y), b), b;
|
|
6886
6888
|
}), M = N(() => {
|
|
6887
6889
|
const b = {
|
|
6888
6890
|
flex: "1"
|
|
@@ -9124,7 +9126,7 @@ function ws(e, t, n) {
|
|
|
9124
9126
|
writable: !0
|
|
9125
9127
|
}) : e[t] = n, e;
|
|
9126
9128
|
}
|
|
9127
|
-
function
|
|
9129
|
+
function xn(e, t) {
|
|
9128
9130
|
var n = Object.keys(e);
|
|
9129
9131
|
if (Object.getOwnPropertySymbols) {
|
|
9130
9132
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -9134,12 +9136,12 @@ function Sn(e, t) {
|
|
|
9134
9136
|
}
|
|
9135
9137
|
return n;
|
|
9136
9138
|
}
|
|
9137
|
-
function
|
|
9139
|
+
function Sn(e) {
|
|
9138
9140
|
for (var t = 1; t < arguments.length; t++) {
|
|
9139
9141
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9140
|
-
t % 2 ?
|
|
9142
|
+
t % 2 ? xn(Object(n), !0).forEach(function(a) {
|
|
9141
9143
|
ws(e, a, n[a]);
|
|
9142
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9144
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xn(Object(n)).forEach(function(a) {
|
|
9143
9145
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
9144
9146
|
});
|
|
9145
9147
|
}
|
|
@@ -9168,18 +9170,18 @@ function bt(e) {
|
|
|
9168
9170
|
function Dt(e) {
|
|
9169
9171
|
return {}.toString.call(e).includes("Object");
|
|
9170
9172
|
}
|
|
9171
|
-
function
|
|
9173
|
+
function xs(e) {
|
|
9172
9174
|
return !Object.keys(e).length;
|
|
9173
9175
|
}
|
|
9174
9176
|
function Ct(e) {
|
|
9175
9177
|
return typeof e == "function";
|
|
9176
9178
|
}
|
|
9177
|
-
function
|
|
9179
|
+
function Ss(e, t) {
|
|
9178
9180
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
9179
9181
|
}
|
|
9180
9182
|
function Fs(e, t) {
|
|
9181
9183
|
return Dt(t) || Ye("changeType"), Object.keys(t).some(function(n) {
|
|
9182
|
-
return !
|
|
9184
|
+
return !Ss(e, n);
|
|
9183
9185
|
}) && Ye("changeField"), t;
|
|
9184
9186
|
}
|
|
9185
9187
|
function Ts(e) {
|
|
@@ -9191,7 +9193,7 @@ function Bs(e) {
|
|
|
9191
9193
|
}) && Ye("handlersType");
|
|
9192
9194
|
}
|
|
9193
9195
|
function Os(e) {
|
|
9194
|
-
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"),
|
|
9196
|
+
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"), xs(e) && Ye("initialContent");
|
|
9195
9197
|
}
|
|
9196
9198
|
function Ms(e, t) {
|
|
9197
9199
|
throw new Error(e[t] || e.default);
|
|
@@ -9233,7 +9235,7 @@ function Ps(e, t) {
|
|
|
9233
9235
|
return Ct(t) ? t(e.current) : t;
|
|
9234
9236
|
}
|
|
9235
9237
|
function Ns(e, t) {
|
|
9236
|
-
return e.current =
|
|
9238
|
+
return e.current = Sn(Sn({}, e.current), t), t;
|
|
9237
9239
|
}
|
|
9238
9240
|
function Is(e, t, n) {
|
|
9239
9241
|
return Ct(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
|
|
@@ -9325,7 +9327,7 @@ var Gs = js.create({
|
|
|
9325
9327
|
resolve: null,
|
|
9326
9328
|
reject: null,
|
|
9327
9329
|
monaco: null
|
|
9328
|
-
}), fa = vs(Gs, 2),
|
|
9330
|
+
}), fa = vs(Gs, 2), St = fa[0], Lt = fa[1];
|
|
9329
9331
|
function Us(e) {
|
|
9330
9332
|
var t = Hs.config(e), n = t.monaco, a = ys(t, ["monaco"]);
|
|
9331
9333
|
Lt(function(o) {
|
|
@@ -9336,7 +9338,7 @@ function Us(e) {
|
|
|
9336
9338
|
});
|
|
9337
9339
|
}
|
|
9338
9340
|
function _s() {
|
|
9339
|
-
var e =
|
|
9341
|
+
var e = St(function(t) {
|
|
9340
9342
|
var n = t.monaco, a = t.isInitialized, o = t.resolve;
|
|
9341
9343
|
return {
|
|
9342
9344
|
monaco: n,
|
|
@@ -9363,7 +9365,7 @@ function Xs(e) {
|
|
|
9363
9365
|
return e && (t.src = e), t;
|
|
9364
9366
|
}
|
|
9365
9367
|
function Js(e) {
|
|
9366
|
-
var t =
|
|
9368
|
+
var t = St(function(a) {
|
|
9367
9369
|
var o = a.config, l = a.reject;
|
|
9368
9370
|
return {
|
|
9369
9371
|
config: o,
|
|
@@ -9375,7 +9377,7 @@ function Js(e) {
|
|
|
9375
9377
|
}, n.onerror = t.reject, n;
|
|
9376
9378
|
}
|
|
9377
9379
|
function Qs() {
|
|
9378
|
-
var e =
|
|
9380
|
+
var e = St(function(n) {
|
|
9379
9381
|
var a = n.config, o = n.resolve, l = n.reject;
|
|
9380
9382
|
return {
|
|
9381
9383
|
config: a,
|
|
@@ -9390,12 +9392,12 @@ function Qs() {
|
|
|
9390
9392
|
});
|
|
9391
9393
|
}
|
|
9392
9394
|
function pa(e) {
|
|
9393
|
-
|
|
9395
|
+
St().monaco || Lt({
|
|
9394
9396
|
monaco: e
|
|
9395
9397
|
});
|
|
9396
9398
|
}
|
|
9397
9399
|
function Zs() {
|
|
9398
|
-
return
|
|
9400
|
+
return St(function(e) {
|
|
9399
9401
|
var t = e.monaco;
|
|
9400
9402
|
return t;
|
|
9401
9403
|
});
|
|
@@ -9623,12 +9625,12 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9623
9625
|
const n = C("dataEntity"), a = C(e.dataSource), {
|
|
9624
9626
|
entities: o,
|
|
9625
9627
|
variables: l
|
|
9626
|
-
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (
|
|
9627
|
-
|
|
9628
|
-
$event:
|
|
9628
|
+
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (x, T) => {
|
|
9629
|
+
x.stopPropagation(), t.emit("fieldClick", {
|
|
9630
|
+
$event: x,
|
|
9629
9631
|
item: T.raw
|
|
9630
9632
|
});
|
|
9631
|
-
}, c = (
|
|
9633
|
+
}, c = (x, T) => {
|
|
9632
9634
|
const P = `${T.raw.name} [${T.raw.bindingPath}]`;
|
|
9633
9635
|
return v("div", {
|
|
9634
9636
|
class: "d-flex align-items-center w-100 entity-field",
|
|
@@ -9646,46 +9648,46 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9646
9648
|
class: "f-icon f-icon-new-edit",
|
|
9647
9649
|
style: "font-size: 12px;"
|
|
9648
9650
|
}, null)])]);
|
|
9649
|
-
}, h = C({}), f = C(), r = N(() => (
|
|
9651
|
+
}, h = C({}), f = C(), r = N(() => (x) => ({
|
|
9650
9652
|
"list-group d-flex flex-column": !0,
|
|
9651
|
-
"f-utils-fill": n.value ===
|
|
9652
|
-
expand: n.value ===
|
|
9653
|
-
collapse: n.value !==
|
|
9654
|
-
})), m = N(() => (
|
|
9655
|
-
"f-icon f-icon-arrow-chevron-up": n.value !==
|
|
9656
|
-
"f-icon f-icon-arrow-chevron-down": n.value ===
|
|
9657
|
-
})), d = N(() => (
|
|
9653
|
+
"f-utils-fill": n.value === x,
|
|
9654
|
+
expand: n.value === x,
|
|
9655
|
+
collapse: n.value !== x
|
|
9656
|
+
})), m = N(() => (x) => ({
|
|
9657
|
+
"f-icon f-icon-arrow-chevron-up": n.value !== x,
|
|
9658
|
+
"f-icon f-icon-arrow-chevron-down": n.value === x
|
|
9659
|
+
})), d = N(() => (x) => ({
|
|
9658
9660
|
"functions-type d-flex flex-column": !0,
|
|
9659
|
-
open: h.value[
|
|
9660
|
-
closed: !h.value[
|
|
9661
|
-
})), g = N(() => (
|
|
9662
|
-
"f-icon f-icon-arrow-chevron-down": h.value[
|
|
9663
|
-
"f-icon f-icon-arrow-chevron-right": !h.value[
|
|
9664
|
-
})), p = N(() => (
|
|
9661
|
+
open: h.value[x],
|
|
9662
|
+
closed: !h.value[x]
|
|
9663
|
+
})), g = N(() => (x) => ({
|
|
9664
|
+
"f-icon f-icon-arrow-chevron-down": h.value[x],
|
|
9665
|
+
"f-icon f-icon-arrow-chevron-right": !h.value[x]
|
|
9666
|
+
})), p = N(() => (x) => {
|
|
9665
9667
|
var T;
|
|
9666
9668
|
return {
|
|
9667
9669
|
"functions-item pl-2": !0,
|
|
9668
|
-
selected: ((T = f.value) == null ? void 0 : T.key) ===
|
|
9670
|
+
selected: ((T = f.value) == null ? void 0 : T.key) === x.key
|
|
9669
9671
|
};
|
|
9670
9672
|
});
|
|
9671
|
-
function w(
|
|
9672
|
-
|
|
9673
|
+
function w(x, T) {
|
|
9674
|
+
x.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
|
|
9673
9675
|
}
|
|
9674
|
-
function k(
|
|
9675
|
-
|
|
9676
|
+
function k(x, T) {
|
|
9677
|
+
x.stopPropagation(), f.value = T;
|
|
9676
9678
|
}
|
|
9677
|
-
function B(
|
|
9679
|
+
function B(x, T) {
|
|
9678
9680
|
t.emit("variableItemDblClick", {
|
|
9679
|
-
$event:
|
|
9681
|
+
$event: x,
|
|
9680
9682
|
item: T
|
|
9681
9683
|
});
|
|
9682
9684
|
}
|
|
9683
9685
|
function M({
|
|
9684
|
-
$event:
|
|
9686
|
+
$event: x,
|
|
9685
9687
|
node: T
|
|
9686
9688
|
}) {
|
|
9687
9689
|
t.emit("entityItemDblClick", {
|
|
9688
|
-
$event:
|
|
9690
|
+
$event: x,
|
|
9689
9691
|
item: T.data,
|
|
9690
9692
|
entityCode: o == null ? void 0 : o.entityCode,
|
|
9691
9693
|
parentCodes: T.data.parents.join(".")
|
|
@@ -9702,26 +9704,26 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9702
9704
|
if (l)
|
|
9703
9705
|
return v("ul", {
|
|
9704
9706
|
class: "w-100 functions-list"
|
|
9705
|
-
}, [Object.keys(l).map((
|
|
9706
|
-
"variable-type":
|
|
9707
|
-
class: d.value(
|
|
9707
|
+
}, [Object.keys(l).map((x) => l[x].visible && v("li", {
|
|
9708
|
+
"variable-type": x,
|
|
9709
|
+
class: d.value(x)
|
|
9708
9710
|
}, [v("div", {
|
|
9709
9711
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9710
9712
|
onClick: (T) => {
|
|
9711
|
-
w(T,
|
|
9713
|
+
w(T, x);
|
|
9712
9714
|
}
|
|
9713
9715
|
}, [v("span", {
|
|
9714
|
-
class: g.value(
|
|
9715
|
-
}, null), l[
|
|
9716
|
+
class: g.value(x)
|
|
9717
|
+
}, null), l[x].name]), v("ul", {
|
|
9716
9718
|
class: "pl-3 mr-2"
|
|
9717
|
-
}, [l[
|
|
9719
|
+
}, [l[x].items.map((T) => v("li", {
|
|
9718
9720
|
class: p.value(T),
|
|
9719
9721
|
onClick: (P) => k(P, T),
|
|
9720
9722
|
onDblclick: (P) => B(P, T)
|
|
9721
9723
|
}, [T.name]))])]))]);
|
|
9722
9724
|
}
|
|
9723
|
-
function x
|
|
9724
|
-
if (
|
|
9725
|
+
function S(x, T) {
|
|
9726
|
+
if (x.stopPropagation(), n.value === T) {
|
|
9725
9727
|
n.value = "";
|
|
9726
9728
|
return;
|
|
9727
9729
|
}
|
|
@@ -9729,37 +9731,37 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9729
9731
|
}
|
|
9730
9732
|
be(() => {
|
|
9731
9733
|
if (l) {
|
|
9732
|
-
const
|
|
9733
|
-
h.value[
|
|
9734
|
+
const x = Object.keys(l)[0];
|
|
9735
|
+
h.value[x] = !0;
|
|
9734
9736
|
}
|
|
9735
9737
|
});
|
|
9736
|
-
function E(
|
|
9737
|
-
const P =
|
|
9738
|
-
return
|
|
9738
|
+
function E(x, T) {
|
|
9739
|
+
const P = x.children.map((_) => E(_, T)).filter((_) => _ !== null);
|
|
9740
|
+
return x.data.name.toLowerCase().includes(T.toLowerCase()) || x.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
|
|
9739
9741
|
data: {
|
|
9740
|
-
...
|
|
9742
|
+
...x.data
|
|
9741
9743
|
},
|
|
9742
|
-
children:
|
|
9744
|
+
children: x.children
|
|
9743
9745
|
// 注意这里保留原始子节点
|
|
9744
9746
|
} : P.length > 0 ? {
|
|
9745
9747
|
data: {
|
|
9746
|
-
...
|
|
9748
|
+
...x.data
|
|
9747
9749
|
},
|
|
9748
9750
|
children: P
|
|
9749
9751
|
} : null;
|
|
9750
9752
|
}
|
|
9751
|
-
function I(
|
|
9752
|
-
return
|
|
9753
|
+
function I(x, T) {
|
|
9754
|
+
return x.map((P) => E(P, T)).filter((P) => P !== null);
|
|
9753
9755
|
}
|
|
9754
9756
|
function R() {
|
|
9755
|
-
const
|
|
9756
|
-
u.value =
|
|
9757
|
+
const x = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9758
|
+
u.value = x;
|
|
9757
9759
|
}
|
|
9758
9760
|
function O() {
|
|
9759
9761
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9760
9762
|
}
|
|
9761
|
-
function F(
|
|
9762
|
-
|
|
9763
|
+
function F(x) {
|
|
9764
|
+
x.key === "Enter" && R();
|
|
9763
9765
|
}
|
|
9764
9766
|
return () => v("div", {
|
|
9765
9767
|
class: "f-utils-fill entity-variable"
|
|
@@ -9769,7 +9771,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9769
9771
|
class: r.value("dataEntity")
|
|
9770
9772
|
}, [v("div", {
|
|
9771
9773
|
class: "title px-2 d-flex align-items-center",
|
|
9772
|
-
onClick: (
|
|
9774
|
+
onClick: (x) => S(x, "dataEntity")
|
|
9773
9775
|
}, [ie("数据实体"), v("span", {
|
|
9774
9776
|
class: m.value("dataEntity")
|
|
9775
9777
|
}, null)]), v("div", {
|
|
@@ -9783,7 +9785,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9783
9785
|
popupOnClick: !0,
|
|
9784
9786
|
placeholder: "请输入名称或编号,按回车查询",
|
|
9785
9787
|
modelValue: i.value,
|
|
9786
|
-
"onUpdate:modelValue": (
|
|
9788
|
+
"onUpdate:modelValue": (x) => i.value = x,
|
|
9787
9789
|
onClickButton: R,
|
|
9788
9790
|
onClear: O,
|
|
9789
9791
|
onKeyup: F
|
|
@@ -9791,7 +9793,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9791
9793
|
class: r.value("variables")
|
|
9792
9794
|
}, [v("div", {
|
|
9793
9795
|
class: "title px-2 d-flex align-items-center",
|
|
9794
|
-
onClick: (
|
|
9796
|
+
onClick: (x) => S(x, "variables")
|
|
9795
9797
|
}, [ie("变量"), v("span", {
|
|
9796
9798
|
class: m.value("variables")
|
|
9797
9799
|
}, null)]), v("div", {
|
|
@@ -9834,7 +9836,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9834
9836
|
};
|
|
9835
9837
|
}), r = C(Object.keys(s.value));
|
|
9836
9838
|
Z(() => e.functionItems, (b) => {
|
|
9837
|
-
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y,
|
|
9839
|
+
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, S) => (y[S] = !0, y), {}));
|
|
9838
9840
|
});
|
|
9839
9841
|
function m(b) {
|
|
9840
9842
|
b || (b = a.value);
|
|
@@ -9863,12 +9865,12 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9863
9865
|
item: y
|
|
9864
9866
|
});
|
|
9865
9867
|
}
|
|
9866
|
-
Z(() => a.value, (b, y,
|
|
9868
|
+
Z(() => a.value, (b, y, S) => {
|
|
9867
9869
|
if (b) {
|
|
9868
9870
|
const E = setTimeout(() => {
|
|
9869
9871
|
m(b);
|
|
9870
9872
|
}, 200);
|
|
9871
|
-
|
|
9873
|
+
S(() => clearTimeout(E));
|
|
9872
9874
|
}
|
|
9873
9875
|
});
|
|
9874
9876
|
function w() {
|
|
@@ -9897,8 +9899,8 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9897
9899
|
if (y.visible !== !1)
|
|
9898
9900
|
return v("li", {
|
|
9899
9901
|
class: f.value(y),
|
|
9900
|
-
onClick: (
|
|
9901
|
-
onDblclick: (
|
|
9902
|
+
onClick: (S) => g(S, y),
|
|
9903
|
+
onDblclick: (S) => p(S, y)
|
|
9902
9904
|
}, [b === "advanced" ? y.key : y.name]);
|
|
9903
9905
|
})])])) : v("li", {
|
|
9904
9906
|
class: "empty-message"
|
|
@@ -10058,15 +10060,15 @@ function ru(e, t, n) {
|
|
|
10058
10060
|
if (b === 0 && k && w[M].length > 2 && w[M][0] === '"' && w[M][w[M].length - 1] === '"') {
|
|
10059
10061
|
const y = w[M].substring(1, w[M].length - 1);
|
|
10060
10062
|
if (k.has(y) && w[M - 1] === "(" && w[M + 1] === ")") {
|
|
10061
|
-
const
|
|
10062
|
-
|
|
10063
|
+
const S = k.get(y);
|
|
10064
|
+
S !== void 0 && (w[M] = `"${S}"`, b = 1);
|
|
10063
10065
|
}
|
|
10064
10066
|
}
|
|
10065
10067
|
if (b === 0) {
|
|
10066
|
-
const y = Object.values(t).map((
|
|
10067
|
-
for (let
|
|
10068
|
-
if (w[M] === y[
|
|
10069
|
-
w[M] = y[
|
|
10068
|
+
const y = Object.values(t).map((S) => S.items).flat();
|
|
10069
|
+
for (let S = 0; S < y.length; S++)
|
|
10070
|
+
if (w[M] === y[S].name) {
|
|
10071
|
+
w[M] = y[S].keyFront + "." + y[S].key, b = 1;
|
|
10070
10072
|
break;
|
|
10071
10073
|
}
|
|
10072
10074
|
}
|
|
@@ -10088,22 +10090,22 @@ function ru(e, t, n) {
|
|
|
10088
10090
|
y = y + 1;
|
|
10089
10091
|
continue;
|
|
10090
10092
|
} else {
|
|
10091
|
-
let
|
|
10092
|
-
if (
|
|
10093
|
+
let S = 0;
|
|
10094
|
+
if (S === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10093
10095
|
const E = p[y].substring(1, p[y].length - 1);
|
|
10094
10096
|
if (k.has(E) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10095
10097
|
const I = k.get(E);
|
|
10096
|
-
I !== void 0 && (M = M + `"${I}"`,
|
|
10098
|
+
I !== void 0 && (M = M + `"${I}"`, S = 1);
|
|
10097
10099
|
}
|
|
10098
10100
|
}
|
|
10099
|
-
if (
|
|
10101
|
+
if (S === 0) {
|
|
10100
10102
|
for (let E = 0; E < w.length; E++)
|
|
10101
10103
|
if (p[y] === w[E].key && w[E].type.toLowerCase() !== "advanced") {
|
|
10102
|
-
M = M + w[E].name,
|
|
10104
|
+
M = M + w[E].name, S = 1;
|
|
10103
10105
|
break;
|
|
10104
10106
|
}
|
|
10105
10107
|
}
|
|
10106
|
-
|
|
10108
|
+
S === 0 && (M = M + p[y]);
|
|
10107
10109
|
}
|
|
10108
10110
|
}
|
|
10109
10111
|
return M;
|
|
@@ -10176,60 +10178,60 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10176
10178
|
} = su(e, d);
|
|
10177
10179
|
function p({
|
|
10178
10180
|
$event: F,
|
|
10179
|
-
item:
|
|
10181
|
+
item: x
|
|
10180
10182
|
}) {
|
|
10181
10183
|
var P;
|
|
10182
|
-
const T = s(
|
|
10184
|
+
const T = s(x);
|
|
10183
10185
|
(P = i.value) == null || P.insertText(T);
|
|
10184
10186
|
}
|
|
10185
10187
|
function w({
|
|
10186
10188
|
$event: F,
|
|
10187
|
-
item:
|
|
10189
|
+
item: x
|
|
10188
10190
|
}) {
|
|
10189
10191
|
var P;
|
|
10190
|
-
const T = c(
|
|
10192
|
+
const T = c(x);
|
|
10191
10193
|
(P = i.value) == null || P.insertText(T);
|
|
10192
10194
|
}
|
|
10193
10195
|
function k(F) {
|
|
10194
|
-
return F.reduce((
|
|
10196
|
+
return F.reduce((x, T) => {
|
|
10195
10197
|
var P;
|
|
10196
|
-
return
|
|
10198
|
+
return x.push(T.data), (P = T.children) != null && P.length && x.push(...k(T.children)), x;
|
|
10197
10199
|
}, []);
|
|
10198
10200
|
}
|
|
10199
10201
|
const B = k(((O = e == null ? void 0 : e.entities) == null ? void 0 : O.fields) || []);
|
|
10200
10202
|
function M(F) {
|
|
10201
|
-
return F.map((
|
|
10202
|
-
const T = B.find((P) => P.bindingPath ===
|
|
10203
|
-
return T && T.type === "entity" ? `${
|
|
10203
|
+
return F.map((x) => {
|
|
10204
|
+
const T = B.find((P) => P.bindingPath === x);
|
|
10205
|
+
return T && T.type === "entity" ? `${x}[0]` : x;
|
|
10204
10206
|
}).join(".");
|
|
10205
10207
|
}
|
|
10206
10208
|
function b({
|
|
10207
10209
|
$event: F,
|
|
10208
|
-
item:
|
|
10210
|
+
item: x,
|
|
10209
10211
|
parentCodes: T,
|
|
10210
10212
|
entityCode: P
|
|
10211
10213
|
}) {
|
|
10212
10214
|
var L;
|
|
10213
|
-
const V = f(
|
|
10214
|
-
T = e.isServerSide ? M(
|
|
10215
|
+
const V = f(x);
|
|
10216
|
+
T = e.isServerSide ? M(x.parents) : T;
|
|
10215
10217
|
let _ = `${T}.${V}`;
|
|
10216
10218
|
P === V && (_ = V), (L = i.value) == null || L.insertText(`${_}`);
|
|
10217
10219
|
}
|
|
10218
10220
|
function y({
|
|
10219
10221
|
$event: F,
|
|
10220
|
-
item:
|
|
10222
|
+
item: x
|
|
10221
10223
|
}) {
|
|
10222
10224
|
var P;
|
|
10223
|
-
const T = f(
|
|
10225
|
+
const T = f(x);
|
|
10224
10226
|
(P = i.value) == null || P.insertText(`${T}`);
|
|
10225
10227
|
}
|
|
10226
|
-
function
|
|
10228
|
+
function S() {
|
|
10227
10229
|
var F;
|
|
10228
10230
|
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10229
10231
|
}
|
|
10230
10232
|
function E() {
|
|
10231
|
-
var
|
|
10232
|
-
const F = (
|
|
10233
|
+
var x;
|
|
10234
|
+
const F = (x = i.value) == null ? void 0 : x.getContent();
|
|
10233
10235
|
return {
|
|
10234
10236
|
value: r(F),
|
|
10235
10237
|
message: a.value,
|
|
@@ -10244,12 +10246,12 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10244
10246
|
return be(async () => {
|
|
10245
10247
|
if (l.value) {
|
|
10246
10248
|
const F = JSON.parse(l.value), {
|
|
10247
|
-
expr:
|
|
10249
|
+
expr: x
|
|
10248
10250
|
} = F;
|
|
10249
|
-
|
|
10251
|
+
x && (I.value = await m(x) || "");
|
|
10250
10252
|
}
|
|
10251
10253
|
}), t.expose({
|
|
10252
|
-
getExpressionContext:
|
|
10254
|
+
getExpressionContext: S,
|
|
10253
10255
|
getExpressionValue: E,
|
|
10254
10256
|
resetExpression: R
|
|
10255
10257
|
}), () => v("div", {
|
|
@@ -10708,7 +10710,7 @@ function va(e) {
|
|
|
10708
10710
|
}
|
|
10709
10711
|
const wu = /* @__PURE__ */ new Map([
|
|
10710
10712
|
["appearance", jt]
|
|
10711
|
-
]), ku = "https://json-schema.org/draft/2020-12/schema",
|
|
10713
|
+
]), ku = "https://json-schema.org/draft/2020-12/schema", xu = "https://farris-design.gitee.io/combo-list.schema.json", Su = "combo-tree", Fu = "A Farris Input Component", Tu = "object", Bu = {
|
|
10712
10714
|
id: {
|
|
10713
10715
|
description: "The unique identifier for a combo list",
|
|
10714
10716
|
type: "string"
|
|
@@ -10866,8 +10868,8 @@ const wu = /* @__PURE__ */ new Map([
|
|
|
10866
10868
|
"type"
|
|
10867
10869
|
], Mu = {
|
|
10868
10870
|
$schema: ku,
|
|
10869
|
-
$id:
|
|
10870
|
-
title:
|
|
10871
|
+
$id: xu,
|
|
10872
|
+
title: Su,
|
|
10871
10873
|
description: Fu,
|
|
10872
10874
|
type: Tu,
|
|
10873
10875
|
properties: Bu,
|
|
@@ -11245,8 +11247,8 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11245
11247
|
} = Iu(e), w = N(() => e.multiSelect);
|
|
11246
11248
|
N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
11247
11249
|
const k = N(() => {
|
|
11248
|
-
var
|
|
11249
|
-
const F = (
|
|
11250
|
+
var x;
|
|
11251
|
+
const F = (x = n.value) == null ? void 0 : x.popoverRef;
|
|
11250
11252
|
return F ? F.shown : !1;
|
|
11251
11253
|
}), {
|
|
11252
11254
|
onValueChange: B,
|
|
@@ -11262,33 +11264,33 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11262
11264
|
function b() {
|
|
11263
11265
|
!w.value && n.value && n.value.hidePopup();
|
|
11264
11266
|
}
|
|
11265
|
-
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((
|
|
11266
|
-
function
|
|
11267
|
+
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((x) => x[e.textField]).join(e.separator);
|
|
11268
|
+
function S(F = []) {
|
|
11267
11269
|
if (!w.value)
|
|
11268
|
-
r.value = y(F), d.value = F.map((
|
|
11270
|
+
r.value = y(F), d.value = F.map((x) => x[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", F, d.value);
|
|
11269
11271
|
else {
|
|
11270
|
-
const
|
|
11271
|
-
r.value = y(T), d.value =
|
|
11272
|
+
const x = Object.keys(h), T = Object.values(h);
|
|
11273
|
+
r.value = y(T), d.value = x.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", T, d.value);
|
|
11272
11274
|
}
|
|
11273
11275
|
b();
|
|
11274
11276
|
}
|
|
11275
11277
|
function E(F) {
|
|
11276
|
-
var
|
|
11277
|
-
d.value = "", k.value && ((
|
|
11278
|
+
var x;
|
|
11279
|
+
d.value = "", k.value && ((x = n.value) == null || x.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
|
|
11278
11280
|
}
|
|
11279
11281
|
function I(F) {
|
|
11280
|
-
w.value && (delete h[F.id],
|
|
11282
|
+
w.value && (delete h[F.id], S());
|
|
11281
11283
|
}
|
|
11282
11284
|
function R(F) {
|
|
11283
|
-
w.value && (h[F.id] = F.data,
|
|
11285
|
+
w.value && (h[F.id] = F.data, S());
|
|
11284
11286
|
}
|
|
11285
|
-
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F,
|
|
11286
|
-
a.value = F, m.value =
|
|
11287
|
+
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, x, T, P, V]) => {
|
|
11288
|
+
a.value = F, m.value = x, o.value = T, l.value = P, i.value = V;
|
|
11287
11289
|
});
|
|
11288
11290
|
const O = () => {
|
|
11289
11291
|
if (s.value = Le(f.value), w.value && d.value) {
|
|
11290
11292
|
const F = [];
|
|
11291
|
-
p(f.value, F), d.value.split(e.separator).reduce((
|
|
11293
|
+
p(f.value, F), d.value.split(e.separator).reduce((x, T) => (x[T] = F.find((P) => P.id === T), x), h);
|
|
11292
11294
|
}
|
|
11293
11295
|
};
|
|
11294
11296
|
return () => v(jn, {
|
|
@@ -11327,7 +11329,7 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11327
11329
|
titleField: e.titleField,
|
|
11328
11330
|
data: s.value,
|
|
11329
11331
|
selectedValues: d.value,
|
|
11330
|
-
onSelectionChange:
|
|
11332
|
+
onSelectionChange: S,
|
|
11331
11333
|
formatter: e.formatter,
|
|
11332
11334
|
editorParams: e.editorParams,
|
|
11333
11335
|
repositoryToken: e.repositoryToken,
|
|
@@ -11710,19 +11712,19 @@ function $u(e, t) {
|
|
|
11710
11712
|
function h() {
|
|
11711
11713
|
if (e.editorType === "filter")
|
|
11712
11714
|
for (let y = 0; y < t.value.length - 1; y++) {
|
|
11713
|
-
const
|
|
11714
|
-
(
|
|
11715
|
+
const S = t.value[y];
|
|
11716
|
+
(S.relation === ct.Empty || !S.relation) && (S.relation = ct.And);
|
|
11715
11717
|
}
|
|
11716
11718
|
}
|
|
11717
11719
|
function f() {
|
|
11718
11720
|
const y = Object.assign({}, u);
|
|
11719
11721
|
t.value = [...t.value, y];
|
|
11720
|
-
const
|
|
11721
|
-
n.value =
|
|
11722
|
+
const S = t.value.length - 1;
|
|
11723
|
+
n.value = S, h();
|
|
11722
11724
|
}
|
|
11723
11725
|
function r({ index: y }) {
|
|
11724
|
-
const
|
|
11725
|
-
e.insertType === "above" ? y === 0 ? t.value.unshift(
|
|
11726
|
+
const S = Object.assign({}, u);
|
|
11727
|
+
e.insertType === "above" ? y === 0 ? t.value.unshift(S) : t.value.splice(y, 0, S) : t.value.splice(y + 1, 0, S), t.value = [...t.value], h();
|
|
11726
11728
|
}
|
|
11727
11729
|
function m({ index: y }) {
|
|
11728
11730
|
t.value.splice(y, 1), t.value = [...t.value], !(n.value < 0) && (y === n.value ? t.value[y] ? n.value = y : t.value[y - 1] ? n.value = y - 1 : n.value = -1 : y < n.value && (t.value[n.value - 1] ? n.value = n.value - 1 : t.value[n.value] || (n.value = -1)));
|
|
@@ -11735,14 +11737,14 @@ function $u(e, t) {
|
|
|
11735
11737
|
}
|
|
11736
11738
|
function p() {
|
|
11737
11739
|
if (n.value >= 0) {
|
|
11738
|
-
const y = n.value,
|
|
11739
|
-
t.value.splice(y - 1, 0, ...
|
|
11740
|
+
const y = n.value, S = t.value.splice(y, 1);
|
|
11741
|
+
t.value.splice(y - 1, 0, ...S), n.value = y - 1;
|
|
11740
11742
|
}
|
|
11741
11743
|
}
|
|
11742
11744
|
function w() {
|
|
11743
11745
|
if (n.value >= 0) {
|
|
11744
|
-
const y = n.value,
|
|
11745
|
-
t.value.splice(y + 1, 0, ...
|
|
11746
|
+
const y = n.value, S = t.value.splice(y, 1);
|
|
11747
|
+
t.value.splice(y + 1, 0, ...S), n.value = y + 1;
|
|
11746
11748
|
}
|
|
11747
11749
|
}
|
|
11748
11750
|
function k() {
|
|
@@ -11754,32 +11756,32 @@ function $u(e, t) {
|
|
|
11754
11756
|
function M(y) {
|
|
11755
11757
|
if (y.length % 2 !== 0)
|
|
11756
11758
|
return !1;
|
|
11757
|
-
let
|
|
11759
|
+
let S = "";
|
|
11758
11760
|
for (const E of y)
|
|
11759
11761
|
if (E === "(")
|
|
11760
|
-
|
|
11762
|
+
S += E;
|
|
11761
11763
|
else if (E === ")") {
|
|
11762
|
-
if (!
|
|
11764
|
+
if (!S.endsWith("("))
|
|
11763
11765
|
return !1;
|
|
11764
|
-
|
|
11766
|
+
S = S.slice(0, -1);
|
|
11765
11767
|
}
|
|
11766
|
-
return
|
|
11768
|
+
return S.length === 0;
|
|
11767
11769
|
}
|
|
11768
11770
|
function b() {
|
|
11769
11771
|
const y = t.value.length;
|
|
11770
11772
|
if (!y)
|
|
11771
11773
|
return !0;
|
|
11772
|
-
let
|
|
11774
|
+
let S = !0, E = !0;
|
|
11773
11775
|
if (e.editorType !== "sort") {
|
|
11774
11776
|
t.value[y - 1].relation = ct.Empty, E = !t.value.slice(0, -1).some(
|
|
11775
11777
|
(F) => F.relation === ct.Empty || !F.relation
|
|
11776
11778
|
);
|
|
11777
11779
|
const O = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11778
|
-
|
|
11780
|
+
S = M(O);
|
|
11779
11781
|
}
|
|
11780
11782
|
const I = t.value.some((R) => !R[i]);
|
|
11781
11783
|
return [
|
|
11782
|
-
{ result:
|
|
11784
|
+
{ result: S, message: "括号不匹配,请检查。" },
|
|
11783
11785
|
{ result: E, message: "关系设置不完整,请检查。" },
|
|
11784
11786
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11785
11787
|
].find((R) => !R.result);
|
|
@@ -11824,7 +11826,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11824
11826
|
activeRowIndex: M,
|
|
11825
11827
|
onSelectRow: b,
|
|
11826
11828
|
canClear: y,
|
|
11827
|
-
canMove:
|
|
11829
|
+
canMove: S,
|
|
11828
11830
|
validateCondition: E,
|
|
11829
11831
|
resetActiveRow: I
|
|
11830
11832
|
} = $u(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
@@ -11851,7 +11853,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11851
11853
|
formContextData: i.value
|
|
11852
11854
|
}, null);
|
|
11853
11855
|
}
|
|
11854
|
-
const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)),
|
|
11856
|
+
const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), x = N(() => e.disableConfirmWhenUnchanged && F.value);
|
|
11855
11857
|
async function T() {
|
|
11856
11858
|
if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
|
|
11857
11859
|
o == null || o.show();
|
|
@@ -11888,7 +11890,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11888
11890
|
name: "accept",
|
|
11889
11891
|
text: "确定",
|
|
11890
11892
|
class: "btn btn-primary",
|
|
11891
|
-
disabled:
|
|
11893
|
+
disabled: x,
|
|
11892
11894
|
handle: async (j) => {
|
|
11893
11895
|
const G = E();
|
|
11894
11896
|
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
@@ -11955,7 +11957,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11955
11957
|
class: "shading-border-top"
|
|
11956
11958
|
}, null), O(), v(Lu, {
|
|
11957
11959
|
canClear: y,
|
|
11958
|
-
canMove:
|
|
11960
|
+
canMove: S,
|
|
11959
11961
|
onAdd: r,
|
|
11960
11962
|
onClear: m,
|
|
11961
11963
|
onMoveBottom: d,
|