@farris/ui-vue 1.6.5-beta.8 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -6
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +220 -220
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +381 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15445 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4685 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6989 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -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";
|
|
@@ -635,7 +635,7 @@ function tl(e, t) {
|
|
|
635
635
|
c.value && ((c.value.n || c.value.s) && ((L = u.value) != null && L.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), s.value && ((G = s.value) != null && G.x && (ee.style.left = s.value.x + "px"), (W = s.value) != null && W.y && (ee.style.top = s.value.y + "px")));
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function M() {
|
|
639
639
|
const L = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
|
|
640
640
|
u.value && s.value && c.value && l.value && (u.value.height < L && (u.value.height = L, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - L))), u.value.width < j && (u.value.width = j, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - j))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && c.value.n && (s.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - e.maxWidth))));
|
|
641
641
|
}
|
|
@@ -653,15 +653,15 @@ function tl(e, t) {
|
|
|
653
653
|
return;
|
|
654
654
|
L.subtract(o.value);
|
|
655
655
|
const j = L.x, G = L.y;
|
|
656
|
-
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(),
|
|
656
|
+
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(), M(), B();
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function S(L) {
|
|
659
659
|
if (!h.value)
|
|
660
660
|
return;
|
|
661
661
|
const j = re.fromEvent(L);
|
|
662
662
|
j && y(j);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function E() {
|
|
665
665
|
if (n.value) {
|
|
666
666
|
const {
|
|
667
667
|
width: L,
|
|
@@ -684,56 +684,56 @@ function tl(e, t) {
|
|
|
684
684
|
}
|
|
685
685
|
function I(L) {
|
|
686
686
|
if (n.value) {
|
|
687
|
-
const j =
|
|
687
|
+
const j = E();
|
|
688
688
|
r.value = j;
|
|
689
689
|
}
|
|
690
|
-
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
|
-
function
|
|
695
|
+
function O(L) {
|
|
696
696
|
L instanceof MouseEvent && L.button === 2 || g.value && (document.body.click(), L.stopPropagation(), L.preventDefault(), o.value = re.fromEvent(L), h.value = L.target, k(L), R());
|
|
697
697
|
}
|
|
698
698
|
function F(L) {
|
|
699
699
|
return n.value = L, m.value && v(ot, null, [v("div", {
|
|
700
700
|
class: "fv-resizable-handle fv-resizable-n",
|
|
701
701
|
type: "n",
|
|
702
|
-
onMousedown: (j) =>
|
|
702
|
+
onMousedown: (j) => O(j)
|
|
703
703
|
}, null), v("div", {
|
|
704
704
|
class: "fv-resizable-handle fv-resizable-e",
|
|
705
705
|
type: "e",
|
|
706
|
-
onMousedown: (j) =>
|
|
706
|
+
onMousedown: (j) => O(j)
|
|
707
707
|
}, null), v("div", {
|
|
708
708
|
class: "fv-resizable-handle fv-resizable-s",
|
|
709
709
|
type: "s",
|
|
710
|
-
onMousedown: (j) =>
|
|
710
|
+
onMousedown: (j) => O(j)
|
|
711
711
|
}, null), v("div", {
|
|
712
712
|
class: "fv-resizable-handle fv-resizable-w",
|
|
713
713
|
type: "w",
|
|
714
|
-
onMousedown: (j) =>
|
|
714
|
+
onMousedown: (j) => O(j)
|
|
715
715
|
}, null), v("div", {
|
|
716
716
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
717
717
|
type: "ne",
|
|
718
|
-
onMousedown: (j) =>
|
|
718
|
+
onMousedown: (j) => O(j)
|
|
719
719
|
}, null), v("div", {
|
|
720
720
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
721
721
|
type: "se",
|
|
722
|
-
onMousedown: (j) =>
|
|
722
|
+
onMousedown: (j) => O(j)
|
|
723
723
|
}, null), v("div", {
|
|
724
724
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
725
725
|
type: "sw",
|
|
726
|
-
onMousedown: (j) =>
|
|
726
|
+
onMousedown: (j) => O(j)
|
|
727
727
|
}, null), v("div", {
|
|
728
728
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
729
729
|
type: "nw",
|
|
730
|
-
onMousedown: (j) =>
|
|
730
|
+
onMousedown: (j) => O(j)
|
|
731
731
|
}, null)]);
|
|
732
732
|
}
|
|
733
|
-
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
|
-
L && W && (d.value =
|
|
736
|
+
L && W && (d.value = E(), d.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
|
|
737
737
|
size: u.value,
|
|
738
738
|
position: {
|
|
739
739
|
x: 0,
|
|
@@ -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,82 +794,82 @@ 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(
|
|
801
|
-
if (
|
|
800
|
+
function m(S, E) {
|
|
801
|
+
if (E.tagName === "BUTTON")
|
|
802
802
|
return !1;
|
|
803
|
-
if (
|
|
803
|
+
if (E === S)
|
|
804
804
|
return !0;
|
|
805
|
-
for (const I in
|
|
806
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
805
|
+
for (const I in E.children)
|
|
806
|
+
if (Object.prototype.hasOwnProperty.call(E.children, I) && m(S, E.children[I]))
|
|
807
807
|
return !0;
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
810
|
function d() {
|
|
811
|
-
var R,
|
|
812
|
-
let
|
|
813
|
-
l.value === "x" ? (
|
|
814
|
-
const I = `translate3d(${Math.round(
|
|
815
|
-
a.value && (a.value.style.transform = I), r.value.x =
|
|
811
|
+
var R, O;
|
|
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 -=
|
|
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
|
-
function
|
|
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
|
|
853
|
-
i.value !== void 0 &&
|
|
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(
|
|
856
|
-
if (o.value &&
|
|
857
|
-
if (
|
|
858
|
-
i.value =
|
|
855
|
+
function y(S, E, I) {
|
|
856
|
+
if (o.value && E) {
|
|
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;
|
|
862
862
|
else if (typeof e.dragHandle == "string") {
|
|
863
|
-
const R =
|
|
863
|
+
const R = E.querySelector(e.dragHandle);
|
|
864
864
|
R && (i.value = R);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
a.value =
|
|
867
|
+
a.value = E, u.value = I, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", b)) : o.value = !1;
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
return {
|
|
871
871
|
registerDraggle: y,
|
|
872
|
-
resetTranslate:
|
|
872
|
+
resetTranslate: M
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
function Vn(e, t) {
|
|
@@ -906,9 +906,9 @@ const at = /* @__PURE__ */ oe({
|
|
|
906
906
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
907
907
|
setup(e, t) {
|
|
908
908
|
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), h = C(e.showCloseButton), f = C(e.showMaxButton), r = C(!1), m = C(e.dialogType), d = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
|
|
909
|
-
t:
|
|
910
|
-
} =
|
|
911
|
-
w.value === "错误提示" && (w.value =
|
|
909
|
+
t: M
|
|
910
|
+
} = xt();
|
|
911
|
+
w.value === "错误提示" && (w.value = M("messageBox.errorTitle"));
|
|
912
912
|
const b = C(!1);
|
|
913
913
|
function y($, Q) {
|
|
914
914
|
const ue = Q ? "accept" : "cancel";
|
|
@@ -921,21 +921,21 @@ 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
|
-
text:
|
|
926
|
+
text: M("messageBox.cancel") || "取消",
|
|
927
927
|
class: "btn btn-secondary",
|
|
928
928
|
handle: ($) => {
|
|
929
929
|
y($, !1);
|
|
930
930
|
}
|
|
931
931
|
}, {
|
|
932
932
|
name: "accept",
|
|
933
|
-
text:
|
|
933
|
+
text: M("messageBox.ok") || "确定",
|
|
934
934
|
class: "btn btn-primary",
|
|
935
935
|
handle: ($) => {
|
|
936
936
|
y($, !0);
|
|
937
937
|
}
|
|
938
|
-
}],
|
|
938
|
+
}], E = C(e.buttons && e.buttons.length ? e.buttons : 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,
|
|
@@ -958,8 +958,8 @@ const at = /* @__PURE__ */ oe({
|
|
|
958
958
|
$ !== Q && (w.value = $);
|
|
959
959
|
}), Z(() => e.modelValue, ($, Q) => {
|
|
960
960
|
$ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
|
|
961
|
-
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(
|
|
962
|
-
}), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (
|
|
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() : (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,23 +1032,23 @@ 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);
|
|
1043
1043
|
}
|
|
1044
1044
|
function Ae($) {
|
|
1045
|
-
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (
|
|
1045
|
+
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (E.value = $.buttons), $.title && (w.value = $.title);
|
|
1046
1046
|
}
|
|
1047
1047
|
let ze = null, Oe = null;
|
|
1048
1048
|
Da(() => {
|
|
1049
1049
|
b.value = ce();
|
|
1050
1050
|
}), be(() => {
|
|
1051
|
-
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(
|
|
1051
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(O.value, F.value, _.value)), X.value && document.body.classList.add("modal-open"), ze = al(e, t), Oe = ol(e, t);
|
|
1052
1052
|
}), wt(() => {
|
|
1053
1053
|
G && G(), ze && ze.remove(), Oe && Oe.remove();
|
|
1054
1054
|
}), t.expose({
|
|
@@ -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", {
|
|
@@ -1081,7 +1081,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1081
1081
|
return v("div", {
|
|
1082
1082
|
class: "modal-footer",
|
|
1083
1083
|
style: rt.value
|
|
1084
|
-
}, [
|
|
1084
|
+
}, [E.value && E.value.map(($) => {
|
|
1085
1085
|
const Q = C($.disabled);
|
|
1086
1086
|
return v("button", {
|
|
1087
1087
|
name: $.name,
|
|
@@ -1098,7 +1098,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1098
1098
|
}
|
|
1099
1099
|
function Qe() {
|
|
1100
1100
|
return v("div", {
|
|
1101
|
-
ref:
|
|
1101
|
+
ref: O,
|
|
1102
1102
|
class: "modal-header",
|
|
1103
1103
|
style: $e.value
|
|
1104
1104
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
@@ -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]
|
|
@@ -1676,16 +1676,16 @@ function zn(e, t, n) {
|
|
|
1676
1676
|
const p = d.$converter || g;
|
|
1677
1677
|
return typeof p == "string" && p && a.has(p) ? a.get(p) || null : p || null;
|
|
1678
1678
|
}
|
|
1679
|
-
function h(d, g, p, w, k, B = "",
|
|
1679
|
+
function h(d, g, p, w, k, B = "", M = "") {
|
|
1680
1680
|
return Object.keys(d).map((y) => {
|
|
1681
|
-
const
|
|
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
|
-
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B,
|
|
1684
|
-
let j = c(I,
|
|
1683
|
+
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, M) : [], L = !0;
|
|
1684
|
+
let j = c(I, M);
|
|
1685
1685
|
const G = N({
|
|
1686
1686
|
get() {
|
|
1687
|
-
if (
|
|
1688
|
-
if (["class", "style"].find((de) => de ===
|
|
1687
|
+
if (S.value) {
|
|
1688
|
+
if (["class", "style"].find((de) => de === E) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
1689
1689
|
return j.convertFrom(p, y, k, B);
|
|
1690
1690
|
const le = p[y];
|
|
1691
1691
|
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (le === void 0 || typeof le == "string" && le === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : le;
|
|
@@ -1693,45 +1693,45 @@ 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
|
-
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID:
|
|
1699
|
-
return g[
|
|
1698
|
+
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: E, propertyName: O, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: V, cascadeConfig: _, hideCascadeTitle: L, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
1699
|
+
return g[E] = X, X;
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
1702
|
function f(d, g, p = {}) {
|
|
1703
1703
|
const w = {}, k = e[d];
|
|
1704
|
-
return k && k.categories ? Object.keys(k.categories).map((
|
|
1705
|
-
const b = k.categories[
|
|
1706
|
-
return { categoryId:
|
|
1704
|
+
return k && k.categories ? Object.keys(k.categories).map((M) => {
|
|
1705
|
+
const b = k.categories[M], y = b == null ? void 0 : b.title, 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,
|
|
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
|
-
const R = I.categories[d],
|
|
1713
|
-
|
|
1714
|
-
R.properties[T].$converter =
|
|
1712
|
+
const R = I.categories[d], O = R == null ? void 0 : R.title;
|
|
1713
|
+
M && Object.keys(R.properties).forEach((T) => {
|
|
1714
|
+
R.properties[T].$converter = M;
|
|
1715
1715
|
});
|
|
1716
|
-
const F = (R == null ? void 0 : R.properties) || {},
|
|
1717
|
-
return { categoryId: d, categoryName:
|
|
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
|
}
|
|
1721
1721
|
function m(d, g, p, w, k) {
|
|
1722
|
-
const B = d.type,
|
|
1722
|
+
const B = d.type, M = n(d), b = {};
|
|
1723
1723
|
let y = k || e[B];
|
|
1724
1724
|
if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
|
|
1725
|
-
const
|
|
1726
|
-
return Object.keys(y.categories).map((
|
|
1727
|
-
const I = y.categories[
|
|
1725
|
+
const S = [];
|
|
1726
|
+
return Object.keys(y.categories).map((E) => {
|
|
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,
|
|
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);
|
|
@@ -2092,11 +2092,11 @@ var zl = { exports: {} };
|
|
|
2092
2092
|
2: [function(n, a, o) {
|
|
2093
2093
|
(function(l) {
|
|
2094
2094
|
var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
|
|
2095
|
-
function f(
|
|
2096
|
-
var
|
|
2097
|
-
|
|
2095
|
+
function f(O, F) {
|
|
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
|
-
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = mt), U.containers === void 0 && (U.containers =
|
|
2099
|
+
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = mt), U.containers === void 0 && (U.containers = O || []), U.isContainer === void 0 && (U.isContainer = w), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = c.body);
|
|
2100
2100
|
var ae = i({
|
|
2101
2101
|
containers: U.containers,
|
|
2102
2102
|
start: Oe,
|
|
@@ -2161,7 +2161,7 @@ var zl = { exports: {} };
|
|
|
2161
2161
|
return;
|
|
2162
2162
|
var H = b(D);
|
|
2163
2163
|
if (H && !U.invalid(D, z)) {
|
|
2164
|
-
var Y = U.moves(D, H, z,
|
|
2164
|
+
var Y = U.moves(D, H, z, E(D));
|
|
2165
2165
|
if (Y)
|
|
2166
2166
|
return {
|
|
2167
2167
|
item: D,
|
|
@@ -2178,7 +2178,7 @@ var zl = { exports: {} };
|
|
|
2178
2178
|
z && He(z);
|
|
2179
2179
|
}
|
|
2180
2180
|
function He(D) {
|
|
2181
|
-
Xt(D.item, D.source) && (W = D.item.cloneNode(!0), ae.emit("cloned", W, D.item, "copy")), P = D.source, V = D.item, j = G =
|
|
2181
|
+
Xt(D.item, D.source) && (W = D.item.cloneNode(!0), ae.emit("cloned", W, D.item, "copy")), P = D.source, V = D.item, j = G = E(D.item), ae.dragging = !0, ae.emit("drag", V, P);
|
|
2182
2182
|
}
|
|
2183
2183
|
function mt() {
|
|
2184
2184
|
return !1;
|
|
@@ -2220,7 +2220,7 @@ var zl = { exports: {} };
|
|
|
2220
2220
|
}
|
|
2221
2221
|
function ue(D, z) {
|
|
2222
2222
|
var H;
|
|
2223
|
-
return z !== void 0 ? H = z : T ? H = G : H =
|
|
2223
|
+
return z !== void 0 ? H = z : T ? H = G : H = E(W || V), D === P && H === j;
|
|
2224
2224
|
}
|
|
2225
2225
|
function fe(D, z, H) {
|
|
2226
2226
|
for (var Y = D; Y && !K(); )
|
|
@@ -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,34 +2241,34 @@ 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
|
}
|
|
2270
2270
|
function Vt(D, z, H) {
|
|
2271
|
-
(D === z || D ===
|
|
2271
|
+
(D === z || D === E(z)) && (G = E(z)), (D === null && H || D !== z && D !== E(z)) && (G = D);
|
|
2272
2272
|
}
|
|
2273
2273
|
function $t(D) {
|
|
2274
2274
|
s.rm(D, "gu-hide");
|
|
@@ -2369,51 +2369,51 @@ 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
|
-
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top +
|
|
2387
|
+
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + M(pe) / 2);
|
|
2388
2388
|
}
|
|
2389
2389
|
function Me(pe) {
|
|
2390
|
-
return pe ?
|
|
2390
|
+
return pe ? E(z) : z;
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
2393
|
function Xt(D, z) {
|
|
2394
2394
|
return typeof U.copy == "boolean" ? U.copy : U.copy(D, z);
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
|
-
function r(
|
|
2397
|
+
function r(O) {
|
|
2398
2398
|
const F = Array.from(window.scrollContainerList);
|
|
2399
2399
|
if (F.length === 1) {
|
|
2400
2400
|
const T = Array.from(window.scrollContainerList)[0];
|
|
2401
2401
|
return document.getElementById(T);
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2404
|
-
for (const T of
|
|
2405
|
-
if (T.contains(
|
|
2403
|
+
const x = m(F);
|
|
2404
|
+
for (const T of x)
|
|
2405
|
+
if (T.contains(O))
|
|
2406
2406
|
return T;
|
|
2407
2407
|
return null;
|
|
2408
2408
|
}
|
|
2409
|
-
function m(
|
|
2409
|
+
function m(O) {
|
|
2410
2410
|
const F = [];
|
|
2411
|
-
return
|
|
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(
|
|
2416
|
+
function d(O, F, x, T) {
|
|
2417
2417
|
var P = {
|
|
2418
2418
|
mouseup: "touchend",
|
|
2419
2419
|
mousedown: "touchstart",
|
|
@@ -2427,23 +2427,23 @@ var zl = { exports: {} };
|
|
|
2427
2427
|
mousedown: "MSPointerDown",
|
|
2428
2428
|
mousemove: "MSPointerMove"
|
|
2429
2429
|
};
|
|
2430
|
-
l.navigator.pointerEnabled ? u[F](
|
|
2430
|
+
l.navigator.pointerEnabled ? u[F](O, V[x], T) : l.navigator.msPointerEnabled ? u[F](O, _[x], T) : (u[F](O, P[x], T), u[F](O, x, T));
|
|
2431
2431
|
}
|
|
2432
|
-
function g(
|
|
2433
|
-
if (
|
|
2434
|
-
return
|
|
2435
|
-
if (
|
|
2436
|
-
return
|
|
2437
|
-
if (
|
|
2438
|
-
return
|
|
2439
|
-
var F =
|
|
2432
|
+
function g(O) {
|
|
2433
|
+
if (O.touches !== void 0)
|
|
2434
|
+
return O.touches.length;
|
|
2435
|
+
if (O.which !== void 0 && O.which !== 0)
|
|
2436
|
+
return O.which;
|
|
2437
|
+
if (O.buttons !== void 0)
|
|
2438
|
+
return O.buttons;
|
|
2439
|
+
var F = O.button;
|
|
2440
2440
|
if (F !== void 0)
|
|
2441
2441
|
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2442
2442
|
}
|
|
2443
|
-
function p(
|
|
2444
|
-
|
|
2445
|
-
var T =
|
|
2446
|
-
return
|
|
2443
|
+
function p(O, F, x) {
|
|
2444
|
+
O = O || {};
|
|
2445
|
+
var T = O.className || "", P;
|
|
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;
|
|
@@ -2451,42 +2451,42 @@ var zl = { exports: {} };
|
|
|
2451
2451
|
function k() {
|
|
2452
2452
|
return !0;
|
|
2453
2453
|
}
|
|
2454
|
-
function B(
|
|
2455
|
-
return
|
|
2454
|
+
function B(O) {
|
|
2455
|
+
return O.width || O.right - O.left;
|
|
2456
2456
|
}
|
|
2457
|
-
function O
|
|
2458
|
-
return
|
|
2457
|
+
function M(O) {
|
|
2458
|
+
return O.height || O.bottom - O.top;
|
|
2459
2459
|
}
|
|
2460
|
-
function b(
|
|
2461
|
-
return
|
|
2460
|
+
function b(O) {
|
|
2461
|
+
return O.parentNode === c ? null : O.parentNode;
|
|
2462
2462
|
}
|
|
2463
|
-
function y(
|
|
2464
|
-
return
|
|
2463
|
+
function y(O) {
|
|
2464
|
+
return O.tagName === "INPUT" || O.tagName === "TEXTAREA" || O.tagName === "SELECT" || S(O);
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
return !
|
|
2466
|
+
function S(O) {
|
|
2467
|
+
return !O || O.contentEditable === "false" ? !1 : O.contentEditable === "true" ? !0 : S(b(O));
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2470
|
-
return
|
|
2469
|
+
function E(O) {
|
|
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
|
-
function I(
|
|
2480
|
-
return
|
|
2479
|
+
function I(O) {
|
|
2480
|
+
return O.targetTouches && O.targetTouches.length ? O.targetTouches[0] : O.changedTouches && O.changedTouches.length ? O.changedTouches[0] : O;
|
|
2481
2481
|
}
|
|
2482
|
-
function R(
|
|
2483
|
-
var
|
|
2482
|
+
function R(O, F) {
|
|
2483
|
+
var x = I(F), T = {
|
|
2484
2484
|
pageX: "clientX",
|
|
2485
2485
|
// IE8
|
|
2486
2486
|
pageY: "clientY"
|
|
2487
2487
|
// IE8
|
|
2488
2488
|
};
|
|
2489
|
-
return
|
|
2489
|
+
return O in T && !(O in 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,62 +2549,62 @@ 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
|
|
2563
|
-
if (
|
|
2564
|
-
return b.detachEvent("on" + y,
|
|
2561
|
+
function g(b, y, S) {
|
|
2562
|
+
var E = B(b, y, S);
|
|
2563
|
+
if (E)
|
|
2564
|
+
return b.detachEvent("on" + y, E);
|
|
2565
2565
|
}
|
|
2566
|
-
function p(b, y,
|
|
2567
|
-
var
|
|
2568
|
-
b.dispatchEvent ? b.dispatchEvent(
|
|
2566
|
+
function p(b, y, S) {
|
|
2567
|
+
var E = u.indexOf(y) === -1 ? R() : I();
|
|
2568
|
+
b.dispatchEvent ? b.dispatchEvent(E) : b.fireEvent("on" + y, E);
|
|
2569
2569
|
function I() {
|
|
2570
|
-
var
|
|
2571
|
-
return s.createEvent ? (
|
|
2570
|
+
var O;
|
|
2571
|
+
return s.createEvent ? (O = s.createEvent("Event"), O.initEvent(y, !0, !0)) : s.createEventObject && (O = s.createEventObject()), O;
|
|
2572
2572
|
}
|
|
2573
2573
|
function R() {
|
|
2574
|
-
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
|
|
2587
|
+
function k(b, y, S) {
|
|
2588
|
+
var E = B(b, y, S) || w(b, y, S);
|
|
2589
2589
|
return f.push({
|
|
2590
|
-
wrapper:
|
|
2590
|
+
wrapper: E,
|
|
2591
2591
|
element: b,
|
|
2592
2592
|
type: y,
|
|
2593
|
-
fn:
|
|
2594
|
-
}),
|
|
2593
|
+
fn: S
|
|
2594
|
+
}), E;
|
|
2595
2595
|
}
|
|
2596
|
-
function B(b, y,
|
|
2597
|
-
var
|
|
2598
|
-
if (
|
|
2599
|
-
var I = f[
|
|
2600
|
-
return f.splice(
|
|
2596
|
+
function B(b, y, S) {
|
|
2597
|
+
var E = M(b, y, S);
|
|
2598
|
+
if (E) {
|
|
2599
|
+
var I = f[E].wrapper;
|
|
2600
|
+
return f.splice(E, 1), I;
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
var
|
|
2605
|
-
for (
|
|
2606
|
-
if (I = f[
|
|
2607
|
-
return
|
|
2603
|
+
function M(b, y, S) {
|
|
2604
|
+
var E, I;
|
|
2605
|
+
for (E = 0; E < f.length; E++)
|
|
2606
|
+
if (I = f[E], I.element === b && I.type === y && I.fn === S)
|
|
2607
|
+
return E;
|
|
2608
2608
|
}
|
|
2609
2609
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2610
2610
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2662,33 +2662,33 @@ var zl = { exports: {} };
|
|
|
2662
2662
|
u = c;
|
|
2663
2663
|
}
|
|
2664
2664
|
})();
|
|
2665
|
-
function h(
|
|
2665
|
+
function h(M) {
|
|
2666
2666
|
if (i === setTimeout)
|
|
2667
|
-
return setTimeout(
|
|
2667
|
+
return setTimeout(M, 0);
|
|
2668
2668
|
if ((i === s || !i) && setTimeout)
|
|
2669
|
-
return i = setTimeout, setTimeout(
|
|
2669
|
+
return i = setTimeout, setTimeout(M, 0);
|
|
2670
2670
|
try {
|
|
2671
|
-
return i(
|
|
2671
|
+
return i(M, 0);
|
|
2672
2672
|
} catch {
|
|
2673
2673
|
try {
|
|
2674
|
-
return i.call(null,
|
|
2674
|
+
return i.call(null, M, 0);
|
|
2675
2675
|
} catch {
|
|
2676
|
-
return i.call(this,
|
|
2676
|
+
return i.call(this, M, 0);
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
}
|
|
2680
|
-
function f(
|
|
2680
|
+
function f(M) {
|
|
2681
2681
|
if (u === clearTimeout)
|
|
2682
|
-
return clearTimeout(
|
|
2682
|
+
return clearTimeout(M);
|
|
2683
2683
|
if ((u === c || !u) && clearTimeout)
|
|
2684
|
-
return u = clearTimeout, clearTimeout(
|
|
2684
|
+
return u = clearTimeout, clearTimeout(M);
|
|
2685
2685
|
try {
|
|
2686
|
-
return u(
|
|
2686
|
+
return u(M);
|
|
2687
2687
|
} catch {
|
|
2688
2688
|
try {
|
|
2689
|
-
return u.call(null,
|
|
2689
|
+
return u.call(null, M);
|
|
2690
2690
|
} catch {
|
|
2691
|
-
return u.call(this,
|
|
2691
|
+
return u.call(this, M);
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
@@ -2698,38 +2698,38 @@ var zl = { exports: {} };
|
|
|
2698
2698
|
}
|
|
2699
2699
|
function w() {
|
|
2700
2700
|
if (!m) {
|
|
2701
|
-
var
|
|
2701
|
+
var M = h(p);
|
|
2702
2702
|
m = !0;
|
|
2703
2703
|
for (var b = r.length; b; ) {
|
|
2704
2704
|
for (d = r, r = []; ++g < b; )
|
|
2705
2705
|
d && d[g].run();
|
|
2706
2706
|
g = -1, b = r.length;
|
|
2707
2707
|
}
|
|
2708
|
-
d = null, m = !1, f(
|
|
2708
|
+
d = null, m = !1, f(M);
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
|
-
l.nextTick = function(
|
|
2711
|
+
l.nextTick = function(M) {
|
|
2712
2712
|
var b = new Array(arguments.length - 1);
|
|
2713
2713
|
if (arguments.length > 1)
|
|
2714
2714
|
for (var y = 1; y < arguments.length; y++)
|
|
2715
2715
|
b[y - 1] = arguments[y];
|
|
2716
|
-
r.push(new k(
|
|
2716
|
+
r.push(new k(M, b)), r.length === 1 && !m && h(w);
|
|
2717
2717
|
};
|
|
2718
|
-
function k(
|
|
2719
|
-
this.fun =
|
|
2718
|
+
function k(M, b) {
|
|
2719
|
+
this.fun = M, this.array = b;
|
|
2720
2720
|
}
|
|
2721
2721
|
k.prototype.run = function() {
|
|
2722
2722
|
this.fun.apply(null, this.array);
|
|
2723
2723
|
}, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
|
|
2724
2724
|
function B() {
|
|
2725
2725
|
}
|
|
2726
|
-
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(
|
|
2726
|
+
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(M) {
|
|
2727
2727
|
return [];
|
|
2728
|
-
}, l.binding = function(
|
|
2728
|
+
}, l.binding = function(M) {
|
|
2729
2729
|
throw new Error("process.binding is not supported");
|
|
2730
2730
|
}, l.cwd = function() {
|
|
2731
2731
|
return "/";
|
|
2732
|
-
}, l.chdir = function(
|
|
2732
|
+
}, l.chdir = function(M) {
|
|
2733
2733
|
throw new Error("process.chdir is not supported");
|
|
2734
2734
|
}, l.umask = function() {
|
|
2735
2735
|
return 0;
|
|
@@ -2809,40 +2809,40 @@ const Hl = {
|
|
|
2809
2809
|
const {
|
|
2810
2810
|
locale: n,
|
|
2811
2811
|
t: a
|
|
2812
|
-
} =
|
|
2813
|
-
const
|
|
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
|
+
const M = {
|
|
2814
2814
|
animated: u.value,
|
|
2815
2815
|
toast: !0,
|
|
2816
2816
|
"toast--only-content": !s.value
|
|
2817
2817
|
};
|
|
2818
|
-
return
|
|
2818
|
+
return M[e.animate] = !1, M[l] = u.value, M["toasty-type-" + i.value.type] = !0, i.value.theme && (M[i.value.theme] = !0), M;
|
|
2819
2819
|
}), f = N(() => {
|
|
2820
|
-
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"
|
|
2827
2827
|
} : {});
|
|
2828
|
-
function p(
|
|
2829
|
-
|
|
2828
|
+
function p(M) {
|
|
2829
|
+
M.stopPropagation(), M.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2830
2830
|
t.emit("close", i.value);
|
|
2831
2831
|
}, 200);
|
|
2832
2832
|
}
|
|
2833
|
-
function w(
|
|
2833
|
+
function w(M, b) {
|
|
2834
2834
|
}
|
|
2835
|
-
function k(
|
|
2836
|
-
return `f-preten-link ${
|
|
2835
|
+
function k(M) {
|
|
2836
|
+
return `f-preten-link ${M.customClass ? M.customClass : ""}`;
|
|
2837
2837
|
}
|
|
2838
2838
|
Z(o, () => {
|
|
2839
2839
|
o.value;
|
|
2840
2840
|
});
|
|
2841
2841
|
const B = () => {
|
|
2842
|
-
var
|
|
2842
|
+
var M;
|
|
2843
2843
|
return v(ot, null, [v("div", {
|
|
2844
2844
|
class: "after-toast-msg text-right"
|
|
2845
|
-
}, [!t.slots.default && ((
|
|
2845
|
+
}, [!t.slots.default && ((M = i.value.buttons) == null ? void 0 : M.map((b) => v("span", {
|
|
2846
2846
|
class: k(b),
|
|
2847
2847
|
onClick: (y) => void 0
|
|
2848
2848
|
}, [b.text]))), t.slots.default && t.slots.default()])]);
|
|
@@ -3213,19 +3213,19 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3213
3213
|
} = l, {
|
|
3214
3214
|
columnContext: k,
|
|
3215
3215
|
hasLeftFixedColumn: B,
|
|
3216
|
-
hasRightFixedColumn:
|
|
3216
|
+
hasRightFixedColumn: M
|
|
3217
3217
|
} = i, {
|
|
3218
3218
|
gridDataStyle: b,
|
|
3219
3219
|
leftFixedGridDataStyle: y,
|
|
3220
|
-
rightFixedGridDataStyle:
|
|
3220
|
+
rightFixedGridDataStyle: S
|
|
3221
3221
|
} = m, {
|
|
3222
|
-
renderDataRow:
|
|
3223
|
-
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [
|
|
3222
|
+
renderDataRow: E
|
|
3223
|
+
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [E];
|
|
3224
3224
|
function R(P, V) {
|
|
3225
3225
|
const _ = w(P);
|
|
3226
3226
|
return p.value.filter((L) => L.visible !== !1).map((L, j) => I[L.type](L, _, V, j));
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function O() {
|
|
3229
3229
|
return v("div", {
|
|
3230
3230
|
ref: a,
|
|
3231
3231
|
class: "fv-grid-content-left-fixed"
|
|
@@ -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(
|
|
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
|
|
@@ -3271,14 +3271,14 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3271
3271
|
} = i, s = C(), c = C(), h = C(), f = C(), r = C(), m = C([]), d = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), p = Xa(e, i), w = Ja(e, t), k = Qa(e), {
|
|
3272
3272
|
collapseField: B
|
|
3273
3273
|
} = k, {
|
|
3274
|
-
showLoading:
|
|
3274
|
+
showLoading: M,
|
|
3275
3275
|
renderLoading: b
|
|
3276
3276
|
} = Za(e, s), y = Ka(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3277
|
-
dataView:
|
|
3278
|
-
} = y,
|
|
3277
|
+
dataView: S
|
|
3278
|
+
} = y, E = eo(e, y, i, m, t), {
|
|
3279
3279
|
showSelection: I,
|
|
3280
3280
|
selectedValues: R
|
|
3281
|
-
} =
|
|
3281
|
+
} = E, O = to(e, m, y, i, E, t), F = N(() => e.disabled), 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,
|
|
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
|
-
} = $e, it = vo(e, ve), Je = ho(e,
|
|
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,
|
|
@@ -3324,13 +3324,13 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3324
3324
|
"fv-grid-wrap-content": g.value
|
|
3325
3325
|
})), {
|
|
3326
3326
|
renderDataArea: ue
|
|
3327
|
-
} = Ul(e, t, h, f, r, it, W, y, ne, k, de,
|
|
3327
|
+
} = Ul(e, t, h, f, r, it, W, y, ne, k, de, E, O, se, $e, U, m), {
|
|
3328
3328
|
renderGridHeader: fe,
|
|
3329
3329
|
renderGridColumnResizeOverlay: Ne,
|
|
3330
3330
|
shouldShowHeader: Vt
|
|
3331
|
-
} =
|
|
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,9 +3345,9 @@ 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(() => {
|
|
3352
3352
|
}), Z(Oe, () => {
|
|
3353
3353
|
c.value && Pe();
|
|
@@ -3359,24 +3359,24 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3359
3359
|
y.expandTo(q), y.reOrderVisibleIndex(), He();
|
|
3360
3360
|
}
|
|
3361
3361
|
function yt() {
|
|
3362
|
-
const q =
|
|
3362
|
+
const q = E.getSelectionRow();
|
|
3363
3363
|
return q ? q.dataIndex - 1 : -1;
|
|
3364
3364
|
}
|
|
3365
3365
|
function Gt() {
|
|
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;
|
|
3375
3375
|
y.insertNewChildDataItems(q, ge);
|
|
3376
3376
|
}
|
|
3377
3377
|
function Yt() {
|
|
3378
|
-
const q = yt(), J =
|
|
3379
|
-
y.removeHierarchyDataItem(q), m.value = Be(0,
|
|
3378
|
+
const q = yt(), J = O.getNextSelectableHierarchyItemId(q);
|
|
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);
|
|
@@ -3397,7 +3397,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3397
3397
|
q && (y.load(q), y.reOrderVisibleIndex(), J != null && J.keepScrollPosition ? se.scrollTo(se.offsetY.value) : He());
|
|
3398
3398
|
}
|
|
3399
3399
|
function Y(q) {
|
|
3400
|
-
|
|
3400
|
+
O.selectItemById(q);
|
|
3401
3401
|
}
|
|
3402
3402
|
function K(q) {
|
|
3403
3403
|
const J = m.value.find((me) => me.raw[i.idField.value] === q);
|
|
@@ -3407,28 +3407,28 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3407
3407
|
de.activeRowById(q);
|
|
3408
3408
|
}
|
|
3409
3409
|
function Te(q) {
|
|
3410
|
-
|
|
3410
|
+
O.selectItemByIds(q);
|
|
3411
3411
|
}
|
|
3412
3412
|
function Ce() {
|
|
3413
|
-
return
|
|
3413
|
+
return E.getSelectedItems();
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3416
|
-
|
|
3415
|
+
function xe() {
|
|
3416
|
+
E.clearSelection();
|
|
3417
3417
|
}
|
|
3418
3418
|
const Me = N(() => !m.value || !m.value.length), {
|
|
3419
3419
|
renderEmpty: pe
|
|
3420
3420
|
} = Oo(e, t);
|
|
3421
3421
|
function Ee() {
|
|
3422
|
-
return
|
|
3422
|
+
return E.getSelectionRow();
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3425
|
-
|
|
3424
|
+
function Se(q) {
|
|
3425
|
+
O.unSelectItemByIds(q);
|
|
3426
3426
|
}
|
|
3427
3427
|
function he() {
|
|
3428
|
-
return
|
|
3428
|
+
return E.currentSelectedDataId.value;
|
|
3429
3429
|
}
|
|
3430
3430
|
function vt(q, J, me) {
|
|
3431
|
-
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
|
-
|
|
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,16 +3508,16 @@ 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(() => ({
|
|
3517
3517
|
...V.value,
|
|
3518
3518
|
borderRadius: "5px"
|
|
3519
3519
|
}));
|
|
3520
|
-
Mo(e, t, y, se, T,
|
|
3520
|
+
Mo(e, t, y, se, T, E);
|
|
3521
3521
|
const Ta = N(() => ({
|
|
3522
3522
|
"d-flex": !0,
|
|
3523
3523
|
"justify-content-between": P.value && I.value,
|
|
@@ -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", {
|
|
@@ -3687,7 +3687,7 @@ const Jl = "https://json-schema.org/draft/2020-12/schema", Ql = "https://farris-
|
|
|
3687
3687
|
};
|
|
3688
3688
|
Ve(ui, ai, Yl, Xl, si);
|
|
3689
3689
|
function Zn(e, t, n) {
|
|
3690
|
-
var
|
|
3690
|
+
var O;
|
|
3691
3691
|
const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
|
|
3692
3692
|
let i;
|
|
3693
3693
|
function u() {
|
|
@@ -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;
|
|
@@ -3746,25 +3746,25 @@ function Zn(e, t, n) {
|
|
|
3746
3746
|
if (n && n.getPropsConfig)
|
|
3747
3747
|
return n.getPropsConfig(...F);
|
|
3748
3748
|
}
|
|
3749
|
-
function
|
|
3749
|
+
function M(F) {
|
|
3750
3750
|
if (!F)
|
|
3751
3751
|
return;
|
|
3752
|
-
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(),
|
|
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,11 +3772,11 @@ 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
|
}
|
|
3779
|
-
function
|
|
3779
|
+
function E(F) {
|
|
3780
3780
|
var T, P;
|
|
3781
3781
|
if (!((T = t == null ? void 0 : t.schema) != null && T.id))
|
|
3782
3782
|
return;
|
|
@@ -3784,22 +3784,22 @@ 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:
|
|
3802
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((V = F == null ? void 0 : F.changeObject) == null ? void 0 : V.propertyID) && T && P && (
|
|
3801
|
+
const { changeObject: x } = F, { propertyID: T, propertyValue: P } = x;
|
|
3802
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((V = F == null ? void 0 : F.changeObject) == null ? void 0 : V.propertyID) && T && P && (E(), i)) {
|
|
3803
3803
|
const _ = i.getControlBasicInfoMap(), L = _.keys().toArray().filter((j) => {
|
|
3804
3804
|
var G, W;
|
|
3805
3805
|
return ((G = _.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
@@ -3821,7 +3821,7 @@ function Zn(e, t, n) {
|
|
|
3821
3821
|
canNested: !h(),
|
|
3822
3822
|
contents: t == null ? void 0 : t.schema.contents,
|
|
3823
3823
|
elementRef: e,
|
|
3824
|
-
parent: (
|
|
3824
|
+
parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
|
|
3825
3825
|
schema: t == null ? void 0 : t.schema,
|
|
3826
3826
|
styles: a,
|
|
3827
3827
|
designerClass: o,
|
|
@@ -3837,9 +3837,9 @@ 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
|
-
setComponentBasicInfoMap:
|
|
3842
|
+
setComponentBasicInfoMap: E,
|
|
3843
3843
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
3844
3844
|
}, l;
|
|
3845
3845
|
}
|
|
@@ -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
|
}
|
|
@@ -4660,44 +4660,44 @@ function Qi(e, t, n, a, o) {
|
|
|
4660
4660
|
"f-state-focus": d.value,
|
|
4661
4661
|
"input-group--has-clear": e.enableClear && c.value
|
|
4662
4662
|
}));
|
|
4663
|
-
function w(
|
|
4664
|
-
n.value =
|
|
4663
|
+
function w(O, F = !0) {
|
|
4664
|
+
n.value = O, F && (t.emit("change", O), t.emit("update:modelValue", O));
|
|
4665
4665
|
}
|
|
4666
|
-
function k(
|
|
4667
|
-
u.value = !1, w(
|
|
4666
|
+
function k(O) {
|
|
4667
|
+
u.value = !1, w(O, !0);
|
|
4668
4668
|
}
|
|
4669
4669
|
Z(
|
|
4670
4670
|
() => e.modelValue,
|
|
4671
|
-
(
|
|
4672
|
-
n.value =
|
|
4671
|
+
(O) => {
|
|
4672
|
+
n.value = O;
|
|
4673
4673
|
}
|
|
4674
4674
|
);
|
|
4675
|
-
function B(
|
|
4676
|
-
m.value = !1, t.emit("blur",
|
|
4675
|
+
function B(O) {
|
|
4676
|
+
m.value = !1, t.emit("blur", O), O.stopPropagation();
|
|
4677
4677
|
}
|
|
4678
|
-
function O
|
|
4679
|
-
t.emit("click",
|
|
4678
|
+
function M(O) {
|
|
4679
|
+
t.emit("click", O), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
|
|
4680
4680
|
}
|
|
4681
|
-
function b(
|
|
4682
|
-
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus",
|
|
4681
|
+
function b(O) {
|
|
4682
|
+
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", O), i.value && !u.value && o.popup()));
|
|
4683
4683
|
}
|
|
4684
|
-
function y(
|
|
4685
|
-
t.emit("input",
|
|
4686
|
-
const F =
|
|
4684
|
+
function y(O) {
|
|
4685
|
+
t.emit("input", O);
|
|
4686
|
+
const F = O.target.value;
|
|
4687
4687
|
a.value = F, n.value !== F && w(F, e.updateOn === "change"), l.value && !u.value && o.popup();
|
|
4688
4688
|
}
|
|
4689
|
-
function
|
|
4690
|
-
|
|
4689
|
+
function S(O) {
|
|
4690
|
+
O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4693
|
-
t.emit("keydown",
|
|
4692
|
+
function E(O) {
|
|
4693
|
+
t.emit("keydown", O);
|
|
4694
4694
|
}
|
|
4695
|
-
function I(
|
|
4696
|
-
|
|
4695
|
+
function I(O) {
|
|
4696
|
+
O.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", O);
|
|
4697
4697
|
}
|
|
4698
|
-
function R(
|
|
4699
|
-
const F =
|
|
4700
|
-
|
|
4698
|
+
function R(O) {
|
|
4699
|
+
const F = O.target.value;
|
|
4700
|
+
O.stopPropagation(), w(F);
|
|
4701
4701
|
}
|
|
4702
4702
|
return {
|
|
4703
4703
|
hasFocusedTextBox: d,
|
|
@@ -4710,12 +4710,12 @@ function Qi(e, t, n, a, o) {
|
|
|
4710
4710
|
changeTextBoxValue: w,
|
|
4711
4711
|
commitValue: k,
|
|
4712
4712
|
onBlurTextBox: B,
|
|
4713
|
-
onClickTextBox:
|
|
4713
|
+
onClickTextBox: M,
|
|
4714
4714
|
onFocusTextBox: b,
|
|
4715
4715
|
onInput: y,
|
|
4716
|
-
onKeyDownTextBox:
|
|
4716
|
+
onKeyDownTextBox: E,
|
|
4717
4717
|
onKeyUpTextBox: I,
|
|
4718
|
-
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),
|
|
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,
|
|
@@ -4821,7 +4821,7 @@ function Ki(e, t, n) {
|
|
|
4821
4821
|
onKeyup: m,
|
|
4822
4822
|
onMousedown: d,
|
|
4823
4823
|
onCompositionend: b,
|
|
4824
|
-
onCompositionstart:
|
|
4824
|
+
onCompositionstart: M
|
|
4825
4825
|
}, null);
|
|
4826
4826
|
}
|
|
4827
4827
|
function er(e, t, n) {
|
|
@@ -4950,7 +4950,7 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4950
4950
|
} = r, p = Ji(e, t, o, m, f, r), {
|
|
4951
4951
|
onMouseEnterTextBox: w,
|
|
4952
4952
|
onMouseLeaveTextBox: k
|
|
4953
|
-
} = p, B = C(!1),
|
|
4953
|
+
} = p, B = C(!1), M = N(() => {
|
|
4954
4954
|
const V = {
|
|
4955
4955
|
"f-button-edit": !0,
|
|
4956
4956
|
"f-cmp-inputgroup": !0,
|
|
@@ -4963,33 +4963,33 @@ 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
|
|
4973
|
+
const E = C(S());
|
|
4974
4974
|
an(() => {
|
|
4975
|
-
|
|
4975
|
+
E.value = S();
|
|
4976
4976
|
});
|
|
4977
4977
|
function I() {
|
|
4978
|
-
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!
|
|
4978
|
+
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!E.value && v("div", {
|
|
4979
4979
|
class: "d-flex flex-row mr-2 more-tags",
|
|
4980
4980
|
"more-tags": !0
|
|
4981
4981
|
}, [v("span", {
|
|
4982
4982
|
class: "multi--more-text"
|
|
4983
|
-
}, [ie("+"),
|
|
4983
|
+
}, [ie("+"), E.value])])]) : Ki(e, o, r);
|
|
4984
4984
|
}
|
|
4985
4985
|
let R = I();
|
|
4986
4986
|
Z([() => e.multiSelect, () => e.inputType], () => {
|
|
4987
4987
|
R = I();
|
|
4988
4988
|
});
|
|
4989
4989
|
const {
|
|
4990
|
-
renderButtonGroup:
|
|
4990
|
+
renderButtonGroup: O,
|
|
4991
4991
|
buttonHandleElement: F
|
|
4992
|
-
} = 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,
|
|
@@ -5039,7 +5039,7 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
5039
5039
|
var V, _;
|
|
5040
5040
|
return v(ot, null, [v("div", kt(t.attrs, {
|
|
5041
5041
|
ref: n,
|
|
5042
|
-
class:
|
|
5042
|
+
class: M.value,
|
|
5043
5043
|
id: e.id ? e.id : void 0,
|
|
5044
5044
|
style: b.value
|
|
5045
5045
|
}), [v("div", {
|
|
@@ -5048,7 +5048,7 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
5048
5048
|
style: y.value,
|
|
5049
5049
|
onMouseenter: w,
|
|
5050
5050
|
onMouseleave: k
|
|
5051
|
-
}, [(_ = (V = t.slots).precontent) == null ? void 0 : _.call(V), R(),
|
|
5051
|
+
}, [(_ = (V = t.slots).precontent) == null ? void 0 : _.call(V), R(), O()])]), T.value && 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 = {
|
|
@@ -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(() => ({
|
|
@@ -5733,8 +5733,8 @@ const un = {
|
|
|
5733
5733
|
const k = (p = s.value) == null ? void 0 : p[0];
|
|
5734
5734
|
let B = k;
|
|
5735
5735
|
if (!Ie(k)) {
|
|
5736
|
-
const
|
|
5737
|
-
b === "number" &&
|
|
5736
|
+
const M = typeof k, b = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
|
|
5737
|
+
b === "number" && M !== b && (B = Number(k)), b === "boolean" && M !== b && (B = k === "true" ? !0 : k === "false" ? !1 : k), g(B);
|
|
5738
5738
|
}
|
|
5739
5739
|
}
|
|
5740
5740
|
}), t.expose({
|
|
@@ -5764,12 +5764,12 @@ 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) => {
|
|
5771
|
-
const B = m.indexOf(w[e.valueField]),
|
|
5772
|
-
return B -
|
|
5771
|
+
const B = m.indexOf(w[e.valueField]), M = m.indexOf(k[e.valueField]);
|
|
5772
|
+
return B - M;
|
|
5773
5773
|
});
|
|
5774
5774
|
}
|
|
5775
5775
|
function u(r) {
|
|
@@ -5796,9 +5796,9 @@ function Fr(e) {
|
|
|
5796
5796
|
const { url: r, method: m = "GET", headers: d = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, p = m.toLowerCase() === "get" ? { method: m, headers: d } : { method: m, headers: d, body: g };
|
|
5797
5797
|
let w = !1;
|
|
5798
5798
|
fetch(new Request(r, p)).then((k) => {
|
|
5799
|
-
var
|
|
5799
|
+
var M, b;
|
|
5800
5800
|
if (k.status === 200)
|
|
5801
|
-
return w = !!((b = (
|
|
5801
|
+
return w = !!((b = (M = k.headers) == null ? void 0 : M.get("content-type")) != null && b.includes("application/json")), w ? k.text() : k.json();
|
|
5802
5802
|
throw k.status === 405 ? new Error(t("comboList.remoteError")) : new Error(k.statusText);
|
|
5803
5803
|
}).then((k) => {
|
|
5804
5804
|
k.length && (o.value = w ? JSON.parse(k) : k);
|
|
@@ -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,40 +5838,42 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5838
5838
|
function B() {
|
|
5839
5839
|
!w.value && o.value && o.value.hidePopup();
|
|
5840
5840
|
}
|
|
5841
|
-
function
|
|
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
|
-
|
|
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
|
|
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 =
|
|
5863
|
+
const T = d(x);
|
|
5864
|
+
e.viewType;
|
|
5865
|
+
const V = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5864
5866
|
r.value !== V && (r.value = V, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
5865
5867
|
}
|
|
5866
5868
|
}
|
|
5867
5869
|
function R() {
|
|
5868
5870
|
return h.value;
|
|
5869
5871
|
}
|
|
5870
|
-
function
|
|
5872
|
+
function O(x) {
|
|
5871
5873
|
const {
|
|
5872
5874
|
value: T
|
|
5873
|
-
} =
|
|
5874
|
-
|
|
5875
|
+
} = x.target;
|
|
5876
|
+
E(T), t.emit("input", T);
|
|
5875
5877
|
}
|
|
5876
5878
|
function F() {
|
|
5877
5879
|
o.value.hidePopup();
|
|
@@ -5879,8 +5881,8 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5879
5881
|
return t.expose({
|
|
5880
5882
|
getDisplayText: R,
|
|
5881
5883
|
hidePopup: F
|
|
5882
|
-
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
5883
|
-
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 = _;
|
|
5884
5886
|
}), () => v(jn, {
|
|
5885
5887
|
ref: o,
|
|
5886
5888
|
id: e.id,
|
|
@@ -5897,14 +5899,14 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5897
5899
|
multiSelect: e.multiSelect,
|
|
5898
5900
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
5899
5901
|
modelValue: h.value,
|
|
5900
|
-
"onUpdate:modelValue": (
|
|
5902
|
+
"onUpdate:modelValue": (x) => h.value = x,
|
|
5901
5903
|
focusOnCreated: e.focusOnCreated,
|
|
5902
5904
|
selectOnCreated: e.selectOnCreated,
|
|
5903
|
-
onClear:
|
|
5905
|
+
onClear: S,
|
|
5904
5906
|
onClick: y,
|
|
5905
5907
|
onChange: I,
|
|
5906
5908
|
onBlur: b,
|
|
5907
|
-
onInput:
|
|
5909
|
+
onInput: O,
|
|
5908
5910
|
beforeOpen: e.beforeOpen,
|
|
5909
5911
|
placement: e.placement,
|
|
5910
5912
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -5912,7 +5914,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5912
5914
|
popupOnClick: e.popupOnClick,
|
|
5913
5915
|
limitContentBySpace: !0
|
|
5914
5916
|
}, {
|
|
5915
|
-
default: () => [v(
|
|
5917
|
+
default: () => [v(Sr, {
|
|
5916
5918
|
ref: a,
|
|
5917
5919
|
idField: e.idField,
|
|
5918
5920
|
valueField: e.valueField,
|
|
@@ -5926,8 +5928,8 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5926
5928
|
maxHeight: e.maxHeight,
|
|
5927
5929
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
5928
5930
|
width: e.fitEditor ? k.value : void 0,
|
|
5929
|
-
onSelectionChange: (
|
|
5930
|
-
|
|
5931
|
+
onSelectionChange: (x) => {
|
|
5932
|
+
M(x), B();
|
|
5931
5933
|
}
|
|
5932
5934
|
}, null)]
|
|
5933
5935
|
});
|
|
@@ -5943,7 +5945,7 @@ class Tr extends Do {
|
|
|
5943
5945
|
super(t, n);
|
|
5944
5946
|
}
|
|
5945
5947
|
getCommonEditorProperties(t) {
|
|
5946
|
-
var n, a, o
|
|
5948
|
+
var n, a, o;
|
|
5947
5949
|
return {
|
|
5948
5950
|
viewType: {
|
|
5949
5951
|
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
@@ -5977,14 +5979,15 @@ class Tr extends Do {
|
|
|
5977
5979
|
title: "允许编辑",
|
|
5978
5980
|
type: "boolean",
|
|
5979
5981
|
refreshPanelAfterChanged: !0,
|
|
5980
|
-
readonly:
|
|
5981
|
-
|
|
5982
|
-
enableHighlightSearch: {
|
|
5983
|
-
visible: !!((u = t.editor) != null && u.editable),
|
|
5984
|
-
description: "编辑状态下启用高亮搜索",
|
|
5985
|
-
title: "启用高亮搜索",
|
|
5986
|
-
type: "boolean"
|
|
5982
|
+
readonly: !0
|
|
5983
|
+
// readonly: !!propertyData.editor?.multiSelect && (propertyData.editor?.viewType === 'tag' || !propertyData.editor!.viewType)
|
|
5987
5984
|
}
|
|
5985
|
+
// enableHighlightSearch: {
|
|
5986
|
+
// visible: !!propertyData.editor?.editable,
|
|
5987
|
+
// description: "编辑状态下启用高亮搜索",
|
|
5988
|
+
// title: "启用高亮搜索",
|
|
5989
|
+
// type: "boolean"
|
|
5990
|
+
// },
|
|
5988
5991
|
};
|
|
5989
5992
|
}
|
|
5990
5993
|
getEditorProperties(t) {
|
|
@@ -6051,7 +6054,7 @@ class Tr extends Do {
|
|
|
6051
6054
|
// },
|
|
6052
6055
|
// },
|
|
6053
6056
|
body: {
|
|
6054
|
-
visible:
|
|
6057
|
+
visible: !1,
|
|
6055
6058
|
$converter: bn,
|
|
6056
6059
|
description: "",
|
|
6057
6060
|
title: "服务端API参数",
|
|
@@ -6083,7 +6086,8 @@ class Tr extends Do {
|
|
|
6083
6086
|
editor: {
|
|
6084
6087
|
nullable: !0,
|
|
6085
6088
|
min: 0,
|
|
6086
|
-
useThousands: !1
|
|
6089
|
+
useThousands: !1,
|
|
6090
|
+
needValid: !0
|
|
6087
6091
|
}
|
|
6088
6092
|
},
|
|
6089
6093
|
...this.getCommonEditorProperties(t)
|
|
@@ -6160,7 +6164,8 @@ class Tr extends Do {
|
|
|
6160
6164
|
editor: {
|
|
6161
6165
|
nullable: !0,
|
|
6162
6166
|
min: 0,
|
|
6163
|
-
useThousands: !1
|
|
6167
|
+
useThousands: !1,
|
|
6168
|
+
needValid: !0
|
|
6164
6169
|
}
|
|
6165
6170
|
},
|
|
6166
6171
|
...this.getCommonEditorProperties(t)
|
|
@@ -6411,19 +6416,19 @@ function ra(e) {
|
|
|
6411
6416
|
return o.value > 0 && (p.cursor = "n-resize"), p;
|
|
6412
6417
|
});
|
|
6413
6418
|
function h(p, w, k, B) {
|
|
6414
|
-
const
|
|
6415
|
-
if (
|
|
6416
|
-
const { left: b, right: y, width:
|
|
6417
|
-
let
|
|
6418
|
-
B === "right" && (
|
|
6419
|
+
const M = e.value;
|
|
6420
|
+
if (M) {
|
|
6421
|
+
const { left: b, right: y, width: S } = M.getBoundingClientRect();
|
|
6422
|
+
let E = p.clientX - b;
|
|
6423
|
+
B === "right" && (E = y - p.clientX), E > w && (E = w), E < k && (E = k), B === "right" && (E = S - E), a.value = E;
|
|
6419
6424
|
}
|
|
6420
6425
|
}
|
|
6421
6426
|
function f(p, w, k, B) {
|
|
6422
|
-
const
|
|
6423
|
-
if (
|
|
6424
|
-
const { top: b, bottom: y, height:
|
|
6425
|
-
let
|
|
6426
|
-
B === "bottom" && (
|
|
6427
|
+
const M = e.value;
|
|
6428
|
+
if (M) {
|
|
6429
|
+
const { top: b, bottom: y, height: S } = M.getBoundingClientRect();
|
|
6430
|
+
let E = p.clientY - b;
|
|
6431
|
+
B === "bottom" && (E = y - p.clientY), E > w && (E = w), E < k && (E = k), B === "bottom" && (E = S - E), o.value = E;
|
|
6427
6432
|
}
|
|
6428
6433
|
}
|
|
6429
6434
|
function r() {
|
|
@@ -6444,20 +6449,20 @@ function ra(e) {
|
|
|
6444
6449
|
function d(p, w) {
|
|
6445
6450
|
const k = r(), B = m();
|
|
6446
6451
|
if (k && B) {
|
|
6447
|
-
const
|
|
6452
|
+
const M = B == null ? void 0 : B.right, b = B == null ? void 0 : B.left;
|
|
6448
6453
|
if (p === "left" && b)
|
|
6449
|
-
return
|
|
6450
|
-
if (p === "right" &&
|
|
6454
|
+
return M ? k.width - M.clientWidth - w : k.width - w;
|
|
6455
|
+
if (p === "right" && M)
|
|
6451
6456
|
return b ? k.width - b.clientWidth - w : k.width - w;
|
|
6452
6457
|
}
|
|
6453
6458
|
}
|
|
6454
6459
|
function g(p, w) {
|
|
6455
6460
|
const k = r(), B = m();
|
|
6456
6461
|
if (k && B) {
|
|
6457
|
-
const
|
|
6462
|
+
const M = B == null ? void 0 : B.bottom, b = B == null ? void 0 : B.top;
|
|
6458
6463
|
if (p === "top" && b)
|
|
6459
|
-
return
|
|
6460
|
-
if (p === "bottom" &&
|
|
6464
|
+
return M ? k.height - M.clientHeight - w : k.height - w;
|
|
6465
|
+
if (p === "bottom" && M)
|
|
6461
6466
|
return b ? k.height - b.clientHeight - w : k.height - w;
|
|
6462
6467
|
}
|
|
6463
6468
|
}
|
|
@@ -6719,38 +6724,38 @@ function ua(e, t, n, a, o) {
|
|
|
6719
6724
|
let g = "", p, w, k;
|
|
6720
6725
|
function B(y) {
|
|
6721
6726
|
if ((g === "left" || g === "right") && w) {
|
|
6722
|
-
const { left:
|
|
6723
|
-
let R = g === "left" ? (
|
|
6727
|
+
const { left: S } = w.getBoundingClientRect(), { width: E } = p.getBoundingClientRect(), I = y.clientX - S;
|
|
6728
|
+
let R = g === "left" ? (E || 0) + (I - l.value) : (E || 0) - (I - l.value);
|
|
6724
6729
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6725
|
-
const
|
|
6726
|
-
|
|
6730
|
+
const O = d(g, n.value);
|
|
6731
|
+
O != null && (R = O > R ? R : O), e.value = R;
|
|
6727
6732
|
}
|
|
6728
6733
|
if ((g === "top" || g === "bottom") && w) {
|
|
6729
|
-
const { top:
|
|
6730
|
-
let R = g === "top" ? (
|
|
6734
|
+
const { top: S } = w.getBoundingClientRect(), { height: E } = p.getBoundingClientRect(), I = y.clientY - S;
|
|
6735
|
+
let R = g === "top" ? (E || 0) + (I - c.value) : (E || 0) - (I - c.value);
|
|
6731
6736
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6732
|
-
const
|
|
6733
|
-
|
|
6737
|
+
const O = m(g, a.value);
|
|
6738
|
+
O != null && (R = O > R ? R : O), t.value = R;
|
|
6734
6739
|
}
|
|
6735
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;
|
|
6736
6741
|
}
|
|
6737
|
-
function
|
|
6738
|
-
if (g =
|
|
6739
|
-
const { left: R } = w.getBoundingClientRect(),
|
|
6740
|
-
i.value =
|
|
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) {
|
|
6744
|
+
const { left: R } = w.getBoundingClientRect(), O = y.clientX - R;
|
|
6745
|
+
i.value = O, l.value = O;
|
|
6741
6746
|
const F = d(g, n.value) || 0;
|
|
6742
|
-
k = (
|
|
6747
|
+
k = (x) => f(x, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6743
6748
|
}
|
|
6744
6749
|
}
|
|
6745
|
-
function b(y,
|
|
6746
|
-
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) {
|
|
6747
6752
|
const { top: R } = w.getBoundingClientRect();
|
|
6748
6753
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6749
|
-
const
|
|
6750
|
-
k = (F) => r(F,
|
|
6754
|
+
const O = m(g, a.value) || 0;
|
|
6755
|
+
k = (F) => r(F, O, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6751
6756
|
}
|
|
6752
6757
|
}
|
|
6753
|
-
return { onClickHorizontalResizeBar:
|
|
6758
|
+
return { onClickHorizontalResizeBar: M, onClickVerticalResizeBar: b };
|
|
6754
6759
|
}
|
|
6755
6760
|
const je = /* @__PURE__ */ oe({
|
|
6756
6761
|
name: "FLayoutPane",
|
|
@@ -6782,15 +6787,15 @@ const je = /* @__PURE__ */ oe({
|
|
|
6782
6787
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
6783
6788
|
"f-page-content-main": c.value === "center"
|
|
6784
6789
|
};
|
|
6785
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6786
|
-
}),
|
|
6790
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, S) => (y[S] = !0, y), b), b;
|
|
6791
|
+
}), M = N(() => {
|
|
6787
6792
|
const b = {};
|
|
6788
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;
|
|
6789
6794
|
});
|
|
6790
6795
|
return () => v("div", {
|
|
6791
6796
|
ref: s,
|
|
6792
6797
|
class: B.value,
|
|
6793
|
-
style:
|
|
6798
|
+
style: M.value,
|
|
6794
6799
|
"data-position": c.value
|
|
6795
6800
|
}, [t.slots.default && t.slots.default(), w.value && v("span", {
|
|
6796
6801
|
class: p.value,
|
|
@@ -6839,7 +6844,7 @@ const as = /* @__PURE__ */ oe({
|
|
|
6839
6844
|
function os(e, t) {
|
|
6840
6845
|
const n = e.schema;
|
|
6841
6846
|
function a(l) {
|
|
6842
|
-
return !!
|
|
6847
|
+
return !!xi().basalDragulaRuleForContainer(l);
|
|
6843
6848
|
}
|
|
6844
6849
|
function o() {
|
|
6845
6850
|
const l = ["f-layout-pane"];
|
|
@@ -6879,8 +6884,8 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6879
6884
|
"f-page-content-nav": f.value === "left" || f.value === "right",
|
|
6880
6885
|
"f-page-content-main": f.value === "center"
|
|
6881
6886
|
};
|
|
6882
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6883
|
-
}),
|
|
6887
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, S) => (y[S] = !0, y), b), b;
|
|
6888
|
+
}), M = N(() => {
|
|
6884
6889
|
const b = {
|
|
6885
6890
|
flex: "1"
|
|
6886
6891
|
};
|
|
@@ -6889,7 +6894,7 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6889
6894
|
return () => v("div", {
|
|
6890
6895
|
ref: n,
|
|
6891
6896
|
class: B.value,
|
|
6892
|
-
style:
|
|
6897
|
+
style: M.value
|
|
6893
6898
|
}, [v("div", {
|
|
6894
6899
|
ref: a,
|
|
6895
6900
|
class: "drag-container",
|
|
@@ -9121,7 +9126,7 @@ function ws(e, t, n) {
|
|
|
9121
9126
|
writable: !0
|
|
9122
9127
|
}) : e[t] = n, e;
|
|
9123
9128
|
}
|
|
9124
|
-
function
|
|
9129
|
+
function xn(e, t) {
|
|
9125
9130
|
var n = Object.keys(e);
|
|
9126
9131
|
if (Object.getOwnPropertySymbols) {
|
|
9127
9132
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -9131,12 +9136,12 @@ function Sn(e, t) {
|
|
|
9131
9136
|
}
|
|
9132
9137
|
return n;
|
|
9133
9138
|
}
|
|
9134
|
-
function
|
|
9139
|
+
function Sn(e) {
|
|
9135
9140
|
for (var t = 1; t < arguments.length; t++) {
|
|
9136
9141
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9137
|
-
t % 2 ?
|
|
9142
|
+
t % 2 ? xn(Object(n), !0).forEach(function(a) {
|
|
9138
9143
|
ws(e, a, n[a]);
|
|
9139
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9144
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xn(Object(n)).forEach(function(a) {
|
|
9140
9145
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
9141
9146
|
});
|
|
9142
9147
|
}
|
|
@@ -9165,18 +9170,18 @@ function bt(e) {
|
|
|
9165
9170
|
function Dt(e) {
|
|
9166
9171
|
return {}.toString.call(e).includes("Object");
|
|
9167
9172
|
}
|
|
9168
|
-
function
|
|
9173
|
+
function xs(e) {
|
|
9169
9174
|
return !Object.keys(e).length;
|
|
9170
9175
|
}
|
|
9171
9176
|
function Ct(e) {
|
|
9172
9177
|
return typeof e == "function";
|
|
9173
9178
|
}
|
|
9174
|
-
function
|
|
9179
|
+
function Ss(e, t) {
|
|
9175
9180
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
9176
9181
|
}
|
|
9177
9182
|
function Fs(e, t) {
|
|
9178
9183
|
return Dt(t) || Ye("changeType"), Object.keys(t).some(function(n) {
|
|
9179
|
-
return !
|
|
9184
|
+
return !Ss(e, n);
|
|
9180
9185
|
}) && Ye("changeField"), t;
|
|
9181
9186
|
}
|
|
9182
9187
|
function Ts(e) {
|
|
@@ -9188,7 +9193,7 @@ function Bs(e) {
|
|
|
9188
9193
|
}) && Ye("handlersType");
|
|
9189
9194
|
}
|
|
9190
9195
|
function Os(e) {
|
|
9191
|
-
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"),
|
|
9196
|
+
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"), xs(e) && Ye("initialContent");
|
|
9192
9197
|
}
|
|
9193
9198
|
function Ms(e, t) {
|
|
9194
9199
|
throw new Error(e[t] || e.default);
|
|
@@ -9230,7 +9235,7 @@ function Ps(e, t) {
|
|
|
9230
9235
|
return Ct(t) ? t(e.current) : t;
|
|
9231
9236
|
}
|
|
9232
9237
|
function Ns(e, t) {
|
|
9233
|
-
return e.current =
|
|
9238
|
+
return e.current = Sn(Sn({}, e.current), t), t;
|
|
9234
9239
|
}
|
|
9235
9240
|
function Is(e, t, n) {
|
|
9236
9241
|
return Ct(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
|
|
@@ -9322,7 +9327,7 @@ var Gs = js.create({
|
|
|
9322
9327
|
resolve: null,
|
|
9323
9328
|
reject: null,
|
|
9324
9329
|
monaco: null
|
|
9325
|
-
}), fa = vs(Gs, 2),
|
|
9330
|
+
}), fa = vs(Gs, 2), St = fa[0], Lt = fa[1];
|
|
9326
9331
|
function Us(e) {
|
|
9327
9332
|
var t = Hs.config(e), n = t.monaco, a = ys(t, ["monaco"]);
|
|
9328
9333
|
Lt(function(o) {
|
|
@@ -9333,7 +9338,7 @@ function Us(e) {
|
|
|
9333
9338
|
});
|
|
9334
9339
|
}
|
|
9335
9340
|
function _s() {
|
|
9336
|
-
var e =
|
|
9341
|
+
var e = St(function(t) {
|
|
9337
9342
|
var n = t.monaco, a = t.isInitialized, o = t.resolve;
|
|
9338
9343
|
return {
|
|
9339
9344
|
monaco: n,
|
|
@@ -9360,7 +9365,7 @@ function Xs(e) {
|
|
|
9360
9365
|
return e && (t.src = e), t;
|
|
9361
9366
|
}
|
|
9362
9367
|
function Js(e) {
|
|
9363
|
-
var t =
|
|
9368
|
+
var t = St(function(a) {
|
|
9364
9369
|
var o = a.config, l = a.reject;
|
|
9365
9370
|
return {
|
|
9366
9371
|
config: o,
|
|
@@ -9372,7 +9377,7 @@ function Js(e) {
|
|
|
9372
9377
|
}, n.onerror = t.reject, n;
|
|
9373
9378
|
}
|
|
9374
9379
|
function Qs() {
|
|
9375
|
-
var e =
|
|
9380
|
+
var e = St(function(n) {
|
|
9376
9381
|
var a = n.config, o = n.resolve, l = n.reject;
|
|
9377
9382
|
return {
|
|
9378
9383
|
config: a,
|
|
@@ -9387,12 +9392,12 @@ function Qs() {
|
|
|
9387
9392
|
});
|
|
9388
9393
|
}
|
|
9389
9394
|
function pa(e) {
|
|
9390
|
-
|
|
9395
|
+
St().monaco || Lt({
|
|
9391
9396
|
monaco: e
|
|
9392
9397
|
});
|
|
9393
9398
|
}
|
|
9394
9399
|
function Zs() {
|
|
9395
|
-
return
|
|
9400
|
+
return St(function(e) {
|
|
9396
9401
|
var t = e.monaco;
|
|
9397
9402
|
return t;
|
|
9398
9403
|
});
|
|
@@ -9620,12 +9625,12 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9620
9625
|
const n = C("dataEntity"), a = C(e.dataSource), {
|
|
9621
9626
|
entities: o,
|
|
9622
9627
|
variables: l
|
|
9623
|
-
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (
|
|
9624
|
-
|
|
9625
|
-
$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,
|
|
9626
9631
|
item: T.raw
|
|
9627
9632
|
});
|
|
9628
|
-
}, c = (
|
|
9633
|
+
}, c = (x, T) => {
|
|
9629
9634
|
const P = `${T.raw.name} [${T.raw.bindingPath}]`;
|
|
9630
9635
|
return v("div", {
|
|
9631
9636
|
class: "d-flex align-items-center w-100 entity-field",
|
|
@@ -9643,46 +9648,46 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9643
9648
|
class: "f-icon f-icon-new-edit",
|
|
9644
9649
|
style: "font-size: 12px;"
|
|
9645
9650
|
}, null)])]);
|
|
9646
|
-
}, h = C({}), f = C(), r = N(() => (
|
|
9651
|
+
}, h = C({}), f = C(), r = N(() => (x) => ({
|
|
9647
9652
|
"list-group d-flex flex-column": !0,
|
|
9648
|
-
"f-utils-fill": n.value ===
|
|
9649
|
-
expand: n.value ===
|
|
9650
|
-
collapse: n.value !==
|
|
9651
|
-
})), m = N(() => (
|
|
9652
|
-
"f-icon f-icon-arrow-chevron-up": n.value !==
|
|
9653
|
-
"f-icon f-icon-arrow-chevron-down": n.value ===
|
|
9654
|
-
})), 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) => ({
|
|
9655
9660
|
"functions-type d-flex flex-column": !0,
|
|
9656
|
-
open: h.value[
|
|
9657
|
-
closed: !h.value[
|
|
9658
|
-
})), g = N(() => (
|
|
9659
|
-
"f-icon f-icon-arrow-chevron-down": h.value[
|
|
9660
|
-
"f-icon f-icon-arrow-chevron-right": !h.value[
|
|
9661
|
-
})), 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) => {
|
|
9662
9667
|
var T;
|
|
9663
9668
|
return {
|
|
9664
9669
|
"functions-item pl-2": !0,
|
|
9665
|
-
selected: ((T = f.value) == null ? void 0 : T.key) ===
|
|
9670
|
+
selected: ((T = f.value) == null ? void 0 : T.key) === x.key
|
|
9666
9671
|
};
|
|
9667
9672
|
});
|
|
9668
|
-
function w(
|
|
9669
|
-
|
|
9673
|
+
function w(x, T) {
|
|
9674
|
+
x.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
|
|
9670
9675
|
}
|
|
9671
|
-
function k(
|
|
9672
|
-
|
|
9676
|
+
function k(x, T) {
|
|
9677
|
+
x.stopPropagation(), f.value = T;
|
|
9673
9678
|
}
|
|
9674
|
-
function B(
|
|
9679
|
+
function B(x, T) {
|
|
9675
9680
|
t.emit("variableItemDblClick", {
|
|
9676
|
-
$event:
|
|
9681
|
+
$event: x,
|
|
9677
9682
|
item: T
|
|
9678
9683
|
});
|
|
9679
9684
|
}
|
|
9680
|
-
function
|
|
9681
|
-
$event:
|
|
9685
|
+
function M({
|
|
9686
|
+
$event: x,
|
|
9682
9687
|
node: T
|
|
9683
9688
|
}) {
|
|
9684
9689
|
t.emit("entityItemDblClick", {
|
|
9685
|
-
$event:
|
|
9690
|
+
$event: x,
|
|
9686
9691
|
item: T.data,
|
|
9687
9692
|
entityCode: o == null ? void 0 : o.entityCode,
|
|
9688
9693
|
parentCodes: T.data.parents.join(".")
|
|
@@ -9692,33 +9697,33 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9692
9697
|
return v(nu, {
|
|
9693
9698
|
data: u.value,
|
|
9694
9699
|
formatter: c,
|
|
9695
|
-
onDblclickNode:
|
|
9700
|
+
onDblclickNode: M
|
|
9696
9701
|
}, null);
|
|
9697
9702
|
}
|
|
9698
9703
|
function y() {
|
|
9699
9704
|
if (l)
|
|
9700
9705
|
return v("ul", {
|
|
9701
9706
|
class: "w-100 functions-list"
|
|
9702
|
-
}, [Object.keys(l).map((
|
|
9703
|
-
"variable-type":
|
|
9704
|
-
class: d.value(
|
|
9707
|
+
}, [Object.keys(l).map((x) => l[x].visible && v("li", {
|
|
9708
|
+
"variable-type": x,
|
|
9709
|
+
class: d.value(x)
|
|
9705
9710
|
}, [v("div", {
|
|
9706
9711
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9707
9712
|
onClick: (T) => {
|
|
9708
|
-
w(T,
|
|
9713
|
+
w(T, x);
|
|
9709
9714
|
}
|
|
9710
9715
|
}, [v("span", {
|
|
9711
|
-
class: g.value(
|
|
9712
|
-
}, null), l[
|
|
9716
|
+
class: g.value(x)
|
|
9717
|
+
}, null), l[x].name]), v("ul", {
|
|
9713
9718
|
class: "pl-3 mr-2"
|
|
9714
|
-
}, [l[
|
|
9719
|
+
}, [l[x].items.map((T) => v("li", {
|
|
9715
9720
|
class: p.value(T),
|
|
9716
9721
|
onClick: (P) => k(P, T),
|
|
9717
9722
|
onDblclick: (P) => B(P, T)
|
|
9718
9723
|
}, [T.name]))])]))]);
|
|
9719
9724
|
}
|
|
9720
|
-
function x
|
|
9721
|
-
if (
|
|
9725
|
+
function S(x, T) {
|
|
9726
|
+
if (x.stopPropagation(), n.value === T) {
|
|
9722
9727
|
n.value = "";
|
|
9723
9728
|
return;
|
|
9724
9729
|
}
|
|
@@ -9726,37 +9731,37 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9726
9731
|
}
|
|
9727
9732
|
be(() => {
|
|
9728
9733
|
if (l) {
|
|
9729
|
-
const
|
|
9730
|
-
h.value[
|
|
9734
|
+
const x = Object.keys(l)[0];
|
|
9735
|
+
h.value[x] = !0;
|
|
9731
9736
|
}
|
|
9732
9737
|
});
|
|
9733
|
-
function
|
|
9734
|
-
const P =
|
|
9735
|
-
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()) ? {
|
|
9736
9741
|
data: {
|
|
9737
|
-
...
|
|
9742
|
+
...x.data
|
|
9738
9743
|
},
|
|
9739
|
-
children:
|
|
9744
|
+
children: x.children
|
|
9740
9745
|
// 注意这里保留原始子节点
|
|
9741
9746
|
} : P.length > 0 ? {
|
|
9742
9747
|
data: {
|
|
9743
|
-
...
|
|
9748
|
+
...x.data
|
|
9744
9749
|
},
|
|
9745
9750
|
children: P
|
|
9746
9751
|
} : null;
|
|
9747
9752
|
}
|
|
9748
|
-
function I(
|
|
9749
|
-
return
|
|
9753
|
+
function I(x, T) {
|
|
9754
|
+
return x.map((P) => E(P, T)).filter((P) => P !== null);
|
|
9750
9755
|
}
|
|
9751
9756
|
function R() {
|
|
9752
|
-
const
|
|
9753
|
-
u.value =
|
|
9757
|
+
const x = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9758
|
+
u.value = x;
|
|
9754
9759
|
}
|
|
9755
|
-
function
|
|
9760
|
+
function O() {
|
|
9756
9761
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9757
9762
|
}
|
|
9758
|
-
function F(
|
|
9759
|
-
|
|
9763
|
+
function F(x) {
|
|
9764
|
+
x.key === "Enter" && R();
|
|
9760
9765
|
}
|
|
9761
9766
|
return () => v("div", {
|
|
9762
9767
|
class: "f-utils-fill entity-variable"
|
|
@@ -9766,7 +9771,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9766
9771
|
class: r.value("dataEntity")
|
|
9767
9772
|
}, [v("div", {
|
|
9768
9773
|
class: "title px-2 d-flex align-items-center",
|
|
9769
|
-
onClick: (
|
|
9774
|
+
onClick: (x) => S(x, "dataEntity")
|
|
9770
9775
|
}, [ie("数据实体"), v("span", {
|
|
9771
9776
|
class: m.value("dataEntity")
|
|
9772
9777
|
}, null)]), v("div", {
|
|
@@ -9780,15 +9785,15 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9780
9785
|
popupOnClick: !0,
|
|
9781
9786
|
placeholder: "请输入名称或编号,按回车查询",
|
|
9782
9787
|
modelValue: i.value,
|
|
9783
|
-
"onUpdate:modelValue": (
|
|
9788
|
+
"onUpdate:modelValue": (x) => i.value = x,
|
|
9784
9789
|
onClickButton: R,
|
|
9785
|
-
onClear:
|
|
9790
|
+
onClear: O,
|
|
9786
9791
|
onKeyup: F
|
|
9787
9792
|
}, null)]), b()])]), v("li", {
|
|
9788
9793
|
class: r.value("variables")
|
|
9789
9794
|
}, [v("div", {
|
|
9790
9795
|
class: "title px-2 d-flex align-items-center",
|
|
9791
|
-
onClick: (
|
|
9796
|
+
onClick: (x) => S(x, "variables")
|
|
9792
9797
|
}, [ie("变量"), v("span", {
|
|
9793
9798
|
class: m.value("variables")
|
|
9794
9799
|
}, null)]), v("div", {
|
|
@@ -9831,7 +9836,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9831
9836
|
};
|
|
9832
9837
|
}), r = C(Object.keys(s.value));
|
|
9833
9838
|
Z(() => e.functionItems, (b) => {
|
|
9834
|
-
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), {}));
|
|
9835
9840
|
});
|
|
9836
9841
|
function m(b) {
|
|
9837
9842
|
b || (b = a.value);
|
|
@@ -9860,12 +9865,12 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9860
9865
|
item: y
|
|
9861
9866
|
});
|
|
9862
9867
|
}
|
|
9863
|
-
Z(() => a.value, (b, y,
|
|
9868
|
+
Z(() => a.value, (b, y, S) => {
|
|
9864
9869
|
if (b) {
|
|
9865
|
-
const
|
|
9870
|
+
const E = setTimeout(() => {
|
|
9866
9871
|
m(b);
|
|
9867
9872
|
}, 200);
|
|
9868
|
-
|
|
9873
|
+
S(() => clearTimeout(E));
|
|
9869
9874
|
}
|
|
9870
9875
|
});
|
|
9871
9876
|
function w() {
|
|
@@ -9877,7 +9882,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9877
9882
|
function B(b) {
|
|
9878
9883
|
b.key === "Enter" && w();
|
|
9879
9884
|
}
|
|
9880
|
-
function
|
|
9885
|
+
function M() {
|
|
9881
9886
|
return r.value.length ? r.value.map((b) => v("li", {
|
|
9882
9887
|
"function-type": b,
|
|
9883
9888
|
class: c.value(b)
|
|
@@ -9894,8 +9899,8 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9894
9899
|
if (y.visible !== !1)
|
|
9895
9900
|
return v("li", {
|
|
9896
9901
|
class: f.value(y),
|
|
9897
|
-
onClick: (
|
|
9898
|
-
onDblclick: (
|
|
9902
|
+
onClick: (S) => g(S, y),
|
|
9903
|
+
onDblclick: (S) => p(S, y)
|
|
9899
9904
|
}, [b === "advanced" ? y.key : y.name]);
|
|
9900
9905
|
})])])) : v("li", {
|
|
9901
9906
|
class: "empty-message"
|
|
@@ -9935,7 +9940,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9935
9940
|
default: () => [v("ul", {
|
|
9936
9941
|
class: "w-100 functions-list",
|
|
9937
9942
|
style: "user-select: none"
|
|
9938
|
-
}, [
|
|
9943
|
+
}, [M()])]
|
|
9939
9944
|
}), v(je, {
|
|
9940
9945
|
"custom-class": "position-relative",
|
|
9941
9946
|
position: "bottom",
|
|
@@ -10011,8 +10016,8 @@ function ru(e, t, n) {
|
|
|
10011
10016
|
if (a.value) {
|
|
10012
10017
|
let w = Object.keys(p);
|
|
10013
10018
|
const { types: k, functions: B } = a.value;
|
|
10014
|
-
return k && k.length && (w = w.filter((
|
|
10015
|
-
|
|
10019
|
+
return k && k.length && (w = w.filter((M) => k.includes(M))), B && B.length && Object.values(p).forEach((M) => {
|
|
10020
|
+
M.items.forEach((b) => {
|
|
10016
10021
|
B.includes(b.name) && (b.visible = !1);
|
|
10017
10022
|
});
|
|
10018
10023
|
}), p;
|
|
@@ -10050,20 +10055,20 @@ function ru(e, t, n) {
|
|
|
10050
10055
|
if (!p)
|
|
10051
10056
|
return "";
|
|
10052
10057
|
const w = o(p), k = l(n, "name2key");
|
|
10053
|
-
for (let
|
|
10058
|
+
for (let M = 0; M < w.length; M++) {
|
|
10054
10059
|
let b = 0;
|
|
10055
|
-
if (b === 0 && k && w[
|
|
10056
|
-
const y = w[
|
|
10057
|
-
if (k.has(y) && w[
|
|
10058
|
-
const
|
|
10059
|
-
|
|
10060
|
+
if (b === 0 && k && w[M].length > 2 && w[M][0] === '"' && w[M][w[M].length - 1] === '"') {
|
|
10061
|
+
const y = w[M].substring(1, w[M].length - 1);
|
|
10062
|
+
if (k.has(y) && w[M - 1] === "(" && w[M + 1] === ")") {
|
|
10063
|
+
const S = k.get(y);
|
|
10064
|
+
S !== void 0 && (w[M] = `"${S}"`, b = 1);
|
|
10060
10065
|
}
|
|
10061
10066
|
}
|
|
10062
10067
|
if (b === 0) {
|
|
10063
|
-
const y = Object.values(t).map((
|
|
10064
|
-
for (let
|
|
10065
|
-
if (w[
|
|
10066
|
-
w[
|
|
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;
|
|
10067
10072
|
break;
|
|
10068
10073
|
}
|
|
10069
10074
|
}
|
|
@@ -10072,38 +10077,38 @@ function ru(e, t, n) {
|
|
|
10072
10077
|
return JSON.stringify({ expr: B, sexpr: "" });
|
|
10073
10078
|
}
|
|
10074
10079
|
function m(p, w, k, B) {
|
|
10075
|
-
let
|
|
10080
|
+
let M = "";
|
|
10076
10081
|
const b = [];
|
|
10077
10082
|
for (const y of w)
|
|
10078
10083
|
y.keyFront === "Math" && b.push(y.key);
|
|
10079
10084
|
for (let y = 0; y < p.length; y++) {
|
|
10080
10085
|
if (p[y] === "Math" && p[y + 1] === "." && !b.includes(p[y + 2])) {
|
|
10081
|
-
|
|
10086
|
+
M = M + p[y] + p[y + 1] + p[y + 2], y = y + 2;
|
|
10082
10087
|
continue;
|
|
10083
10088
|
}
|
|
10084
10089
|
if (B.includes(p[y]) && p[y + 1] === ".") {
|
|
10085
10090
|
y = y + 1;
|
|
10086
10091
|
continue;
|
|
10087
10092
|
} else {
|
|
10088
|
-
let
|
|
10089
|
-
if (
|
|
10090
|
-
const
|
|
10091
|
-
if (k.has(
|
|
10092
|
-
const I = k.get(
|
|
10093
|
-
I !== void 0 && (
|
|
10093
|
+
let S = 0;
|
|
10094
|
+
if (S === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10095
|
+
const E = p[y].substring(1, p[y].length - 1);
|
|
10096
|
+
if (k.has(E) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10097
|
+
const I = k.get(E);
|
|
10098
|
+
I !== void 0 && (M = M + `"${I}"`, S = 1);
|
|
10094
10099
|
}
|
|
10095
10100
|
}
|
|
10096
|
-
if (
|
|
10097
|
-
for (let
|
|
10098
|
-
if (p[y] === w[
|
|
10099
|
-
|
|
10101
|
+
if (S === 0) {
|
|
10102
|
+
for (let E = 0; E < w.length; E++)
|
|
10103
|
+
if (p[y] === w[E].key && w[E].type.toLowerCase() !== "advanced") {
|
|
10104
|
+
M = M + w[E].name, S = 1;
|
|
10100
10105
|
break;
|
|
10101
10106
|
}
|
|
10102
10107
|
}
|
|
10103
|
-
|
|
10108
|
+
S === 0 && (M = M + p[y]);
|
|
10104
10109
|
}
|
|
10105
10110
|
}
|
|
10106
|
-
return
|
|
10111
|
+
return M;
|
|
10107
10112
|
}
|
|
10108
10113
|
function d(p) {
|
|
10109
10114
|
if (!p)
|
|
@@ -10151,7 +10156,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10151
10156
|
props: Mr,
|
|
10152
10157
|
emits: [],
|
|
10153
10158
|
setup(e, t) {
|
|
10154
|
-
var
|
|
10159
|
+
var O;
|
|
10155
10160
|
const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
|
|
10156
10161
|
label: "提示",
|
|
10157
10162
|
value: "info"
|
|
@@ -10173,60 +10178,60 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10173
10178
|
} = su(e, d);
|
|
10174
10179
|
function p({
|
|
10175
10180
|
$event: F,
|
|
10176
|
-
item:
|
|
10181
|
+
item: x
|
|
10177
10182
|
}) {
|
|
10178
10183
|
var P;
|
|
10179
|
-
const T = s(
|
|
10184
|
+
const T = s(x);
|
|
10180
10185
|
(P = i.value) == null || P.insertText(T);
|
|
10181
10186
|
}
|
|
10182
10187
|
function w({
|
|
10183
10188
|
$event: F,
|
|
10184
|
-
item:
|
|
10189
|
+
item: x
|
|
10185
10190
|
}) {
|
|
10186
10191
|
var P;
|
|
10187
|
-
const T = c(
|
|
10192
|
+
const T = c(x);
|
|
10188
10193
|
(P = i.value) == null || P.insertText(T);
|
|
10189
10194
|
}
|
|
10190
10195
|
function k(F) {
|
|
10191
|
-
return F.reduce((
|
|
10196
|
+
return F.reduce((x, T) => {
|
|
10192
10197
|
var P;
|
|
10193
|
-
return
|
|
10198
|
+
return x.push(T.data), (P = T.children) != null && P.length && x.push(...k(T.children)), x;
|
|
10194
10199
|
}, []);
|
|
10195
10200
|
}
|
|
10196
|
-
const B = k(((
|
|
10197
|
-
function
|
|
10198
|
-
return F.map((
|
|
10199
|
-
const T = B.find((P) => P.bindingPath ===
|
|
10200
|
-
return T && T.type === "entity" ? `${
|
|
10201
|
+
const B = k(((O = e == null ? void 0 : e.entities) == null ? void 0 : O.fields) || []);
|
|
10202
|
+
function M(F) {
|
|
10203
|
+
return F.map((x) => {
|
|
10204
|
+
const T = B.find((P) => P.bindingPath === x);
|
|
10205
|
+
return T && T.type === "entity" ? `${x}[0]` : x;
|
|
10201
10206
|
}).join(".");
|
|
10202
10207
|
}
|
|
10203
10208
|
function b({
|
|
10204
10209
|
$event: F,
|
|
10205
|
-
item:
|
|
10210
|
+
item: x,
|
|
10206
10211
|
parentCodes: T,
|
|
10207
10212
|
entityCode: P
|
|
10208
10213
|
}) {
|
|
10209
10214
|
var L;
|
|
10210
|
-
const V = f(
|
|
10211
|
-
T = e.isServerSide ?
|
|
10215
|
+
const V = f(x);
|
|
10216
|
+
T = e.isServerSide ? M(x.parents) : T;
|
|
10212
10217
|
let _ = `${T}.${V}`;
|
|
10213
10218
|
P === V && (_ = V), (L = i.value) == null || L.insertText(`${_}`);
|
|
10214
10219
|
}
|
|
10215
10220
|
function y({
|
|
10216
10221
|
$event: F,
|
|
10217
|
-
item:
|
|
10222
|
+
item: x
|
|
10218
10223
|
}) {
|
|
10219
10224
|
var P;
|
|
10220
|
-
const T = f(
|
|
10225
|
+
const T = f(x);
|
|
10221
10226
|
(P = i.value) == null || P.insertText(`${T}`);
|
|
10222
10227
|
}
|
|
10223
|
-
function
|
|
10228
|
+
function S() {
|
|
10224
10229
|
var F;
|
|
10225
10230
|
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10226
10231
|
}
|
|
10227
|
-
function
|
|
10228
|
-
var
|
|
10229
|
-
const F = (
|
|
10232
|
+
function E() {
|
|
10233
|
+
var x;
|
|
10234
|
+
const F = (x = i.value) == null ? void 0 : x.getContent();
|
|
10230
10235
|
return {
|
|
10231
10236
|
value: r(F),
|
|
10232
10237
|
message: a.value,
|
|
@@ -10241,13 +10246,13 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10241
10246
|
return be(async () => {
|
|
10242
10247
|
if (l.value) {
|
|
10243
10248
|
const F = JSON.parse(l.value), {
|
|
10244
|
-
expr:
|
|
10249
|
+
expr: x
|
|
10245
10250
|
} = F;
|
|
10246
|
-
|
|
10251
|
+
x && (I.value = await m(x) || "");
|
|
10247
10252
|
}
|
|
10248
10253
|
}), t.expose({
|
|
10249
|
-
getExpressionContext:
|
|
10250
|
-
getExpressionValue:
|
|
10254
|
+
getExpressionContext: S,
|
|
10255
|
+
getExpressionValue: E,
|
|
10251
10256
|
resetExpression: R
|
|
10252
10257
|
}), () => v("div", {
|
|
10253
10258
|
ref: n,
|
|
@@ -10541,11 +10546,11 @@ const gu = /* @__PURE__ */ oe({
|
|
|
10541
10546
|
if (typeof k == "object") {
|
|
10542
10547
|
const {
|
|
10543
10548
|
canClose: B,
|
|
10544
|
-
message:
|
|
10549
|
+
message: M
|
|
10545
10550
|
} = k;
|
|
10546
10551
|
if (!B)
|
|
10547
|
-
return
|
|
10548
|
-
message:
|
|
10552
|
+
return M && (n == null || n.error({
|
|
10553
|
+
message: M
|
|
10549
10554
|
})), !1;
|
|
10550
10555
|
}
|
|
10551
10556
|
}
|
|
@@ -10705,7 +10710,7 @@ function va(e) {
|
|
|
10705
10710
|
}
|
|
10706
10711
|
const wu = /* @__PURE__ */ new Map([
|
|
10707
10712
|
["appearance", jt]
|
|
10708
|
-
]), 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 = {
|
|
10709
10714
|
id: {
|
|
10710
10715
|
description: "The unique identifier for a combo list",
|
|
10711
10716
|
type: "string"
|
|
@@ -10863,8 +10868,8 @@ const wu = /* @__PURE__ */ new Map([
|
|
|
10863
10868
|
"type"
|
|
10864
10869
|
], Mu = {
|
|
10865
10870
|
$schema: ku,
|
|
10866
|
-
$id:
|
|
10867
|
-
title:
|
|
10871
|
+
$id: xu,
|
|
10872
|
+
title: Su,
|
|
10868
10873
|
description: Fu,
|
|
10869
10874
|
type: Tu,
|
|
10870
10875
|
properties: Bu,
|
|
@@ -11242,12 +11247,12 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11242
11247
|
} = Iu(e), w = N(() => e.multiSelect);
|
|
11243
11248
|
N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
11244
11249
|
const k = N(() => {
|
|
11245
|
-
var
|
|
11246
|
-
const F = (
|
|
11250
|
+
var x;
|
|
11251
|
+
const F = (x = n.value) == null ? void 0 : x.popoverRef;
|
|
11247
11252
|
return F ? F.shown : !1;
|
|
11248
11253
|
}), {
|
|
11249
11254
|
onValueChange: B,
|
|
11250
|
-
resetDataSource:
|
|
11255
|
+
resetDataSource: M
|
|
11251
11256
|
} = ju({
|
|
11252
11257
|
comboEditorRef: n,
|
|
11253
11258
|
dataSource: f,
|
|
@@ -11259,33 +11264,33 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11259
11264
|
function b() {
|
|
11260
11265
|
!w.value && n.value && n.value.hidePopup();
|
|
11261
11266
|
}
|
|
11262
|
-
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((
|
|
11263
|
-
function
|
|
11267
|
+
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((x) => x[e.textField]).join(e.separator);
|
|
11268
|
+
function S(F = []) {
|
|
11264
11269
|
if (!w.value)
|
|
11265
|
-
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);
|
|
11266
11271
|
else {
|
|
11267
|
-
const
|
|
11268
|
-
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);
|
|
11269
11274
|
}
|
|
11270
11275
|
b();
|
|
11271
11276
|
}
|
|
11272
|
-
function
|
|
11273
|
-
var
|
|
11274
|
-
d.value = "", k.value && ((
|
|
11277
|
+
function E(F) {
|
|
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");
|
|
11275
11280
|
}
|
|
11276
11281
|
function I(F) {
|
|
11277
|
-
w.value && (delete h[F.id],
|
|
11282
|
+
w.value && (delete h[F.id], S());
|
|
11278
11283
|
}
|
|
11279
11284
|
function R(F) {
|
|
11280
|
-
w.value && (h[F.id] = F.data,
|
|
11285
|
+
w.value && (h[F.id] = F.data, S());
|
|
11281
11286
|
}
|
|
11282
|
-
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F,
|
|
11283
|
-
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;
|
|
11284
11289
|
});
|
|
11285
|
-
const
|
|
11290
|
+
const O = () => {
|
|
11286
11291
|
if (s.value = Le(f.value), w.value && d.value) {
|
|
11287
11292
|
const F = [];
|
|
11288
|
-
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);
|
|
11289
11294
|
}
|
|
11290
11295
|
};
|
|
11291
11296
|
return () => v(jn, {
|
|
@@ -11305,11 +11310,11 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11305
11310
|
popupOnClick: !0,
|
|
11306
11311
|
modelValue: r.value,
|
|
11307
11312
|
"onUpdate:modelValue": (F) => r.value = F,
|
|
11308
|
-
onClear:
|
|
11313
|
+
onClear: E,
|
|
11309
11314
|
onInput: B,
|
|
11310
11315
|
focusOnCreated: e.focusOnCreated,
|
|
11311
11316
|
selectOnCreated: e.selectOnCreated,
|
|
11312
|
-
beforeOpen:
|
|
11317
|
+
beforeOpen: O,
|
|
11313
11318
|
placement: e.placement,
|
|
11314
11319
|
popupMinWidth: e.minPanelWidth
|
|
11315
11320
|
}, {
|
|
@@ -11324,7 +11329,7 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11324
11329
|
titleField: e.titleField,
|
|
11325
11330
|
data: s.value,
|
|
11326
11331
|
selectedValues: d.value,
|
|
11327
|
-
onSelectionChange:
|
|
11332
|
+
onSelectionChange: S,
|
|
11328
11333
|
formatter: e.formatter,
|
|
11329
11334
|
editorParams: e.editorParams,
|
|
11330
11335
|
repositoryToken: e.repositoryToken,
|
|
@@ -11332,7 +11337,7 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11332
11337
|
searchHandler: B,
|
|
11333
11338
|
onUnSelectItem: I,
|
|
11334
11339
|
onSelectItem: R,
|
|
11335
|
-
onClearSearch:
|
|
11340
|
+
onClearSearch: M
|
|
11336
11341
|
}, null)]
|
|
11337
11342
|
});
|
|
11338
11343
|
}
|
|
@@ -11422,14 +11427,14 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11422
11427
|
itemIntoView: g
|
|
11423
11428
|
} = ba(e, t, s), p = C(e.expressionOptions || {});
|
|
11424
11429
|
function w(B) {
|
|
11425
|
-
var
|
|
11430
|
+
var M, b;
|
|
11426
11431
|
switch (B.expresstype) {
|
|
11427
11432
|
case Re.Variable:
|
|
11428
11433
|
return v(qa, {
|
|
11429
11434
|
modelValue: B.value,
|
|
11430
11435
|
"onUpdate:modelValue": (y) => B.value = y,
|
|
11431
11436
|
showOutline: !1,
|
|
11432
|
-
fieldData: (
|
|
11437
|
+
fieldData: (M = e.formContextData) == null ? void 0 : M.fieldData,
|
|
11433
11438
|
varData: (b = e.formContextData) == null ? void 0 : b.varData
|
|
11434
11439
|
}, null);
|
|
11435
11440
|
case Re.Expression:
|
|
@@ -11448,9 +11453,9 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11448
11453
|
}, null);
|
|
11449
11454
|
}
|
|
11450
11455
|
}
|
|
11451
|
-
function k(B,
|
|
11456
|
+
function k(B, M, b) {
|
|
11452
11457
|
return v(lt, {
|
|
11453
|
-
data:
|
|
11458
|
+
data: M,
|
|
11454
11459
|
modelValue: B[b],
|
|
11455
11460
|
"onUpdate:modelValue": (y) => B[b] = y,
|
|
11456
11461
|
textField: "label",
|
|
@@ -11489,24 +11494,24 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11489
11494
|
style: "width: 60px"
|
|
11490
11495
|
}, [v("b", null, [ie("关系")])])])]), v("tbody", {
|
|
11491
11496
|
ref: s
|
|
11492
|
-
}, [c.value.map((B,
|
|
11493
|
-
index:
|
|
11494
|
-
class: d.value(
|
|
11495
|
-
onClick: (b) => m(B,
|
|
11497
|
+
}, [c.value.map((B, M) => v("tr", {
|
|
11498
|
+
index: M,
|
|
11499
|
+
class: d.value(M),
|
|
11500
|
+
onClick: (b) => m(B, M)
|
|
11496
11501
|
}, [v("td", {
|
|
11497
11502
|
style: "text-overflow: unset;",
|
|
11498
11503
|
align: "center",
|
|
11499
11504
|
class: "px-1"
|
|
11500
11505
|
}, [v("button", {
|
|
11501
11506
|
title: "插入",
|
|
11502
|
-
onClick: (b) => f(
|
|
11507
|
+
onClick: (b) => f(M, b),
|
|
11503
11508
|
type: "button",
|
|
11504
11509
|
class: "btn btn-link p-1 mr-0"
|
|
11505
11510
|
}, [v("span", {
|
|
11506
11511
|
class: "f-icon f-icon-plus"
|
|
11507
11512
|
}, null)]), v("button", {
|
|
11508
11513
|
title: "移除",
|
|
11509
|
-
onClick: (b) => r(
|
|
11514
|
+
onClick: (b) => r(M, b),
|
|
11510
11515
|
type: "button",
|
|
11511
11516
|
class: "btn btn-link p-1 m-0"
|
|
11512
11517
|
}, [v("span", {
|
|
@@ -11707,19 +11712,19 @@ function $u(e, t) {
|
|
|
11707
11712
|
function h() {
|
|
11708
11713
|
if (e.editorType === "filter")
|
|
11709
11714
|
for (let y = 0; y < t.value.length - 1; y++) {
|
|
11710
|
-
const
|
|
11711
|
-
(
|
|
11715
|
+
const S = t.value[y];
|
|
11716
|
+
(S.relation === ct.Empty || !S.relation) && (S.relation = ct.And);
|
|
11712
11717
|
}
|
|
11713
11718
|
}
|
|
11714
11719
|
function f() {
|
|
11715
11720
|
const y = Object.assign({}, u);
|
|
11716
11721
|
t.value = [...t.value, y];
|
|
11717
|
-
const
|
|
11718
|
-
n.value =
|
|
11722
|
+
const S = t.value.length - 1;
|
|
11723
|
+
n.value = S, h();
|
|
11719
11724
|
}
|
|
11720
11725
|
function r({ index: y }) {
|
|
11721
|
-
const
|
|
11722
|
-
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();
|
|
11723
11728
|
}
|
|
11724
11729
|
function m({ index: y }) {
|
|
11725
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)));
|
|
@@ -11732,14 +11737,14 @@ function $u(e, t) {
|
|
|
11732
11737
|
}
|
|
11733
11738
|
function p() {
|
|
11734
11739
|
if (n.value >= 0) {
|
|
11735
|
-
const y = n.value,
|
|
11736
|
-
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;
|
|
11737
11742
|
}
|
|
11738
11743
|
}
|
|
11739
11744
|
function w() {
|
|
11740
11745
|
if (n.value >= 0) {
|
|
11741
|
-
const y = n.value,
|
|
11742
|
-
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;
|
|
11743
11748
|
}
|
|
11744
11749
|
}
|
|
11745
11750
|
function k() {
|
|
@@ -11748,36 +11753,36 @@ function $u(e, t) {
|
|
|
11748
11753
|
function B({ index: y }) {
|
|
11749
11754
|
n.value = y;
|
|
11750
11755
|
}
|
|
11751
|
-
function
|
|
11756
|
+
function M(y) {
|
|
11752
11757
|
if (y.length % 2 !== 0)
|
|
11753
11758
|
return !1;
|
|
11754
|
-
let
|
|
11755
|
-
for (const
|
|
11756
|
-
if (
|
|
11757
|
-
|
|
11758
|
-
else if (
|
|
11759
|
-
if (!
|
|
11759
|
+
let S = "";
|
|
11760
|
+
for (const E of y)
|
|
11761
|
+
if (E === "(")
|
|
11762
|
+
S += E;
|
|
11763
|
+
else if (E === ")") {
|
|
11764
|
+
if (!S.endsWith("("))
|
|
11760
11765
|
return !1;
|
|
11761
|
-
|
|
11766
|
+
S = S.slice(0, -1);
|
|
11762
11767
|
}
|
|
11763
|
-
return
|
|
11768
|
+
return S.length === 0;
|
|
11764
11769
|
}
|
|
11765
11770
|
function b() {
|
|
11766
11771
|
const y = t.value.length;
|
|
11767
11772
|
if (!y)
|
|
11768
11773
|
return !0;
|
|
11769
|
-
let
|
|
11774
|
+
let S = !0, E = !0;
|
|
11770
11775
|
if (e.editorType !== "sort") {
|
|
11771
|
-
t.value[y - 1].relation = ct.Empty,
|
|
11776
|
+
t.value[y - 1].relation = ct.Empty, E = !t.value.slice(0, -1).some(
|
|
11772
11777
|
(F) => F.relation === ct.Empty || !F.relation
|
|
11773
11778
|
);
|
|
11774
|
-
const
|
|
11775
|
-
|
|
11779
|
+
const O = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11780
|
+
S = M(O);
|
|
11776
11781
|
}
|
|
11777
11782
|
const I = t.value.some((R) => !R[i]);
|
|
11778
11783
|
return [
|
|
11779
|
-
{ result:
|
|
11780
|
-
{ result:
|
|
11784
|
+
{ result: S, message: "括号不匹配,请检查。" },
|
|
11785
|
+
{ result: E, message: "关系设置不完整,请检查。" },
|
|
11781
11786
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11782
11787
|
].find((R) => !R.result);
|
|
11783
11788
|
}
|
|
@@ -11818,18 +11823,18 @@ const en = /* @__PURE__ */ oe({
|
|
|
11818
11823
|
onMoveTop: w,
|
|
11819
11824
|
onInsert: k,
|
|
11820
11825
|
onRemove: B,
|
|
11821
|
-
activeRowIndex:
|
|
11826
|
+
activeRowIndex: M,
|
|
11822
11827
|
onSelectRow: b,
|
|
11823
11828
|
canClear: y,
|
|
11824
|
-
canMove:
|
|
11825
|
-
validateCondition:
|
|
11829
|
+
canMove: S,
|
|
11830
|
+
validateCondition: E,
|
|
11826
11831
|
resetActiveRow: I
|
|
11827
11832
|
} = $u(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11828
|
-
function
|
|
11833
|
+
function O() {
|
|
11829
11834
|
return e.editorType === "sort" ? v(Vu, {
|
|
11830
11835
|
conditions: c.value,
|
|
11831
11836
|
fields: u.value,
|
|
11832
|
-
activeIndex:
|
|
11837
|
+
activeIndex: M.value,
|
|
11833
11838
|
onInsert: (j) => k(j),
|
|
11834
11839
|
onRemove: (j) => B(j),
|
|
11835
11840
|
idField: e.idField,
|
|
@@ -11841,14 +11846,14 @@ const en = /* @__PURE__ */ oe({
|
|
|
11841
11846
|
conditions: c.value,
|
|
11842
11847
|
fields: u.value,
|
|
11843
11848
|
idField: e.idField,
|
|
11844
|
-
activeIndex:
|
|
11849
|
+
activeIndex: M.value,
|
|
11845
11850
|
onInsert: (j) => k(j),
|
|
11846
11851
|
onRemove: (j) => B(j),
|
|
11847
11852
|
onRowClick: (j) => b(j),
|
|
11848
11853
|
formContextData: i.value
|
|
11849
11854
|
}, null);
|
|
11850
11855
|
}
|
|
11851
|
-
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);
|
|
11852
11857
|
async function T() {
|
|
11853
11858
|
if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
|
|
11854
11859
|
o == null || o.show();
|
|
@@ -11859,7 +11864,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11859
11864
|
originalConditions: h,
|
|
11860
11865
|
FMessageBoxService: ft
|
|
11861
11866
|
});
|
|
11862
|
-
return o == null || o.clearAll(), j && (
|
|
11867
|
+
return o == null || o.clearAll(), j && (M.value = -1, a.success("过滤条件配置成功!")), j;
|
|
11863
11868
|
}
|
|
11864
11869
|
return !0;
|
|
11865
11870
|
}
|
|
@@ -11874,7 +11879,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11874
11879
|
resizeable: !0,
|
|
11875
11880
|
draggable: !0,
|
|
11876
11881
|
closedCallback: () => {
|
|
11877
|
-
|
|
11882
|
+
M.value = -1;
|
|
11878
11883
|
},
|
|
11879
11884
|
buttons: [{
|
|
11880
11885
|
name: "cancel",
|
|
@@ -11885,9 +11890,9 @@ const en = /* @__PURE__ */ oe({
|
|
|
11885
11890
|
name: "accept",
|
|
11886
11891
|
text: "确定",
|
|
11887
11892
|
class: "btn btn-primary",
|
|
11888
|
-
disabled:
|
|
11893
|
+
disabled: x,
|
|
11889
11894
|
handle: async (j) => {
|
|
11890
|
-
const G =
|
|
11895
|
+
const G = E();
|
|
11891
11896
|
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
11892
11897
|
}
|
|
11893
11898
|
}]
|
|
@@ -11950,9 +11955,9 @@ const en = /* @__PURE__ */ oe({
|
|
|
11950
11955
|
}, [v("div", {
|
|
11951
11956
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
11952
11957
|
class: "shading-border-top"
|
|
11953
|
-
}, null),
|
|
11958
|
+
}, null), O(), v(Lu, {
|
|
11954
11959
|
canClear: y,
|
|
11955
|
-
canMove:
|
|
11960
|
+
canMove: S,
|
|
11956
11961
|
onAdd: r,
|
|
11957
11962
|
onClear: m,
|
|
11958
11963
|
onMoveBottom: d,
|