@farris/ui-vue 1.6.5-beta.7 → 1.6.5-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +28 -29
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +521 -517
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +163 -157
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +10 -10
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1122 -1121
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +190 -190
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2693 -2693
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +8 -8
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +8 -8
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1470 -1460
- package/components/expression-editor/index.umd.cjs +3 -3
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +853 -843
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +922 -911
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +12 -12
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +104 -108
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1311 -1307
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +7 -7
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +9 -9
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +326 -326
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +168 -167
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +739 -737
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +1 -1
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +565 -565
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +409 -409
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1488 -1478
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1765 -1762
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/search-box/index.esm.js +114 -114
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1184 -1181
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +927 -916
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +76 -72
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1527 -1524
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +361 -361
- package/components/textarea/index.umd.cjs +2 -2
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +130 -134
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +25 -25
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1746 -1743
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +8 -8
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/farris.all.esm.js +16987 -17002
- package/farris.all.umd.cjs +27 -27
- package/package.json +1 -1
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
- package/components/time-picker/index.css +0 -1
- package/components/time-picker/index.esm.js +0 -9793
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/time-picker/package.json +0 -8
- package/components/time-picker/style.js +0 -6
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -4856
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -15413
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/data-view/index.esm.js +0 -854
- package/designer/data-view/index.umd.cjs +0 -38
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -525
- package/designer/drawer/index.umd.cjs +0 -1
- package/designer/farris-designer.all.esm.js +0 -22320
- package/designer/farris-designer.all.umd.cjs +0 -34
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1098
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/list-view/index.css +0 -1
- package/designer/list-view/index.esm.js +0 -4675
- package/designer/list-view/index.umd.cjs +0 -40
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -6980
- package/designer/radio-group/index.umd.cjs +0 -1
- package/designer/tree-grid/index.esm.js +0 -1099
- package/designer/tree-grid/index.umd.cjs +0 -1
|
@@ -3,10 +3,10 @@ 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 St } 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
|
-
import {
|
|
9
|
+
import { cloneDeep as Le, isPlainObject as hn, isUndefined as Ie, debounce as Nn } from "lodash-es";
|
|
10
10
|
import "../accordion/index.esm.js";
|
|
11
11
|
import "../avatar/index.esm.js";
|
|
12
12
|
import Ha from "../../designer/button-edit/index.esm.js";
|
|
@@ -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 So, getSidebar as xo, 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";
|
|
@@ -608,18 +608,18 @@ class nt {
|
|
|
608
608
|
function tl(e, t) {
|
|
609
609
|
const n = C(), a = C(), o = C(), l = C(), i = C(), u = C(), s = C(), c = C(), h = C(), f = C(), r = C(), m = C(e.resizeable), d = C(), g = C(e.draggable), p = C(!1);
|
|
610
610
|
function w() {
|
|
611
|
-
const
|
|
611
|
+
const L = a.value || document.body, j = window.getComputedStyle(L);
|
|
612
612
|
if (!j || !n.value)
|
|
613
613
|
return;
|
|
614
614
|
const G = re.getTransformInfo(n.value), W = {};
|
|
615
615
|
s.value && (W.deltaL = n.value.offsetLeft - s.value.x, W.deltaT = n.value.offsetTop - s.value.y);
|
|
616
616
|
const ee = j.getPropertyValue("position");
|
|
617
|
-
W.width =
|
|
617
|
+
W.width = L.clientWidth, W.height = L.clientHeight, W.pr = parseInt(j.getPropertyValue("padding-right"), 10), W.pb = parseInt(j.getPropertyValue("padding-bottom"), 10), W.position = j.getPropertyValue("position"), ee === "static" && (L.style.position = "relative"), W.translateX = G.x, W.translateY = G.y, f.value = W;
|
|
618
618
|
}
|
|
619
|
-
function k(
|
|
619
|
+
function k(L) {
|
|
620
620
|
if (n.value) {
|
|
621
621
|
l.value = nt.getCurrent(n.value), i.value = re.getCurrent(n.value), u.value = l.value ? nt.copy(l.value) : null, s.value = i.value ? re.copy(i.value) : null, w();
|
|
622
|
-
const j =
|
|
622
|
+
const j = L.target.getAttribute("type") || "";
|
|
623
623
|
c.value = {
|
|
624
624
|
n: !!j.match(/n/),
|
|
625
625
|
s: !!j.match(/s/),
|
|
@@ -629,49 +629,49 @@ function tl(e, t) {
|
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
function B() {
|
|
632
|
-
var
|
|
632
|
+
var L, j, G, W;
|
|
633
633
|
if (n.value) {
|
|
634
634
|
const ee = n.value;
|
|
635
|
-
c.value && ((c.value.n || c.value.s) && ((
|
|
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
638
|
function O() {
|
|
639
|
-
const
|
|
640
|
-
u.value && s.value && c.value && l.value && (u.value.height <
|
|
639
|
+
const L = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
|
|
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
|
}
|
|
642
642
|
function b() {
|
|
643
643
|
if (a.value) {
|
|
644
|
-
const
|
|
644
|
+
const L = f.value;
|
|
645
645
|
if (s.value && u.value && c.value && l.value) {
|
|
646
|
-
const j =
|
|
647
|
-
c.value.n && s.value.y +
|
|
646
|
+
const j = L.width - L.pr - L.deltaL - L.translateX - s.value.x, G = L.height - L.pb - L.deltaT - L.translateY - s.value.y;
|
|
647
|
+
c.value.n && s.value.y + L.translateY < 0 && i.value && (s.value.y = -L.translateY, u.value.height = l.value.height + i.value.y + L.translateY), c.value.w && s.value.x + L.translateX < 0 && i.value && (s.value.x = -L.translateX, u.value.width = l.value.width + i.value.x + L.translateX), u.value.width > j && (u.value.width = j), u.value.height > G && (u.value.height = G);
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function y(
|
|
651
|
+
function y(L) {
|
|
652
652
|
if (!o.value || !l.value || !i.value || !c.value)
|
|
653
653
|
return;
|
|
654
|
-
|
|
655
|
-
const j =
|
|
654
|
+
L.subtract(o.value);
|
|
655
|
+
const j = L.x, G = L.y;
|
|
656
656
|
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(), O(), B();
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function x(L) {
|
|
659
659
|
if (!h.value)
|
|
660
660
|
return;
|
|
661
|
-
const j = re.fromEvent(
|
|
661
|
+
const j = re.fromEvent(L);
|
|
662
662
|
j && y(j);
|
|
663
663
|
}
|
|
664
664
|
function M() {
|
|
665
665
|
if (n.value) {
|
|
666
666
|
const {
|
|
667
|
-
width:
|
|
667
|
+
width: L,
|
|
668
668
|
height: j,
|
|
669
669
|
x: G,
|
|
670
670
|
y: W
|
|
671
671
|
} = n.value.getBoundingClientRect(), ee = re.getTransformInfo(n.value);
|
|
672
672
|
return {
|
|
673
673
|
size: {
|
|
674
|
-
width:
|
|
674
|
+
width: L,
|
|
675
675
|
height: j
|
|
676
676
|
},
|
|
677
677
|
position: {
|
|
@@ -682,58 +682,58 @@ function tl(e, t) {
|
|
|
682
682
|
}
|
|
683
683
|
return null;
|
|
684
684
|
}
|
|
685
|
-
function I(
|
|
685
|
+
function I(L) {
|
|
686
686
|
if (n.value) {
|
|
687
687
|
const j = M();
|
|
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", x), document.removeEventListener("mouseup", I);
|
|
691
691
|
}
|
|
692
692
|
function R() {
|
|
693
|
-
document.addEventListener("mousemove",
|
|
693
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
|
|
695
|
+
function E(L) {
|
|
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
|
-
function
|
|
699
|
-
return n.value =
|
|
698
|
+
function F(L) {
|
|
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) => E(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) => E(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) => E(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) => E(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) => E(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) => E(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) => E(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) => E(j)
|
|
731
731
|
}, null)]);
|
|
732
732
|
}
|
|
733
|
-
function S(
|
|
733
|
+
function S(L = !0) {
|
|
734
734
|
document.body.click();
|
|
735
735
|
const j = a.value || document.body, G = nt.getCurrent(j), W = n.value;
|
|
736
|
-
|
|
736
|
+
L && W && (d.value = M(), 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,
|
|
@@ -741,8 +741,8 @@ function tl(e, t) {
|
|
|
741
741
|
}
|
|
742
742
|
}, g.value = !1, p.value = !0);
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
var
|
|
744
|
+
function T() {
|
|
745
|
+
var L, j;
|
|
746
746
|
if (document.body.click(), d.value) {
|
|
747
747
|
const G = {
|
|
748
748
|
width: d.value.size.width || 0,
|
|
@@ -751,7 +751,7 @@ function tl(e, t) {
|
|
|
751
751
|
x: (window.innerWidth - G.width) / 2,
|
|
752
752
|
y: (window.innerHeight - G.height) / 2
|
|
753
753
|
};
|
|
754
|
-
(
|
|
754
|
+
(L = u.value) == null || L.set(G), (j = s.value) == null || j.set(W);
|
|
755
755
|
const ee = n.value;
|
|
756
756
|
ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${W.x}px`, ee.style.top = `${W.y}px`, ee.style.transform = "", r.value = {
|
|
757
757
|
size: G,
|
|
@@ -759,103 +759,103 @@ function tl(e, t) {
|
|
|
759
759
|
}, g.value = e.draggable, p.value = !1;
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function P() {
|
|
763
763
|
if (n.value) {
|
|
764
|
-
const
|
|
765
|
-
if (
|
|
764
|
+
const L = nt.getCurrent(n.value);
|
|
765
|
+
if (L) {
|
|
766
766
|
const {
|
|
767
767
|
width: j,
|
|
768
768
|
height: G
|
|
769
|
-
} =
|
|
769
|
+
} = L;
|
|
770
770
|
n.value.style.left = `${(window.innerWidth - j) / 2}px`, n.value.style.top = `${(window.innerHeight - G) / 2}px`, n.value.style.transform = "";
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
const
|
|
776
|
-
p.value ? S(!1) :
|
|
774
|
+
function V() {
|
|
775
|
+
const L = () => {
|
|
776
|
+
p.value ? S(!1) : P(), document.body.click();
|
|
777
777
|
};
|
|
778
|
-
return window.addEventListener("resize",
|
|
779
|
-
window.removeEventListener("resize",
|
|
778
|
+
return window.addEventListener("resize", L), () => {
|
|
779
|
+
window.removeEventListener("resize", L);
|
|
780
780
|
};
|
|
781
781
|
}
|
|
782
|
-
const
|
|
782
|
+
const _ = V();
|
|
783
783
|
return {
|
|
784
|
-
renderResizeBar:
|
|
784
|
+
renderResizeBar: F,
|
|
785
785
|
boundingElement: a,
|
|
786
786
|
resizedEventParam: r,
|
|
787
787
|
maximize: S,
|
|
788
|
-
restore:
|
|
788
|
+
restore: T,
|
|
789
789
|
allowDrag: g,
|
|
790
790
|
isMaximized: p,
|
|
791
|
-
unWindowResizeHandle:
|
|
792
|
-
moveToCenter:
|
|
791
|
+
unWindowResizeHandle: _,
|
|
792
|
+
moveToCenter: P
|
|
793
793
|
};
|
|
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, (x) => {
|
|
798
|
+
i.value.style.cursor = x ? "move" : "default";
|
|
799
799
|
});
|
|
800
|
-
function m(
|
|
800
|
+
function m(x, M) {
|
|
801
801
|
if (M.tagName === "BUTTON")
|
|
802
802
|
return !1;
|
|
803
|
-
if (M ===
|
|
803
|
+
if (M === x)
|
|
804
804
|
return !0;
|
|
805
805
|
for (const I in M.children)
|
|
806
|
-
if (Object.prototype.hasOwnProperty.call(M.children, I) && m(
|
|
806
|
+
if (Object.prototype.hasOwnProperty.call(M.children, I) && m(x, M.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, E;
|
|
812
|
+
let x = f.value.x + h.value.x, M = f.value.y + h.value.y;
|
|
813
|
+
l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (M = ((E = c.value) == null ? void 0 : E.y) || 0, f.value.y = 0);
|
|
814
|
+
const I = `translate3d(${Math.round(x)}px, ${Math.round(M)}px, 0px)`;
|
|
815
|
+
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = M;
|
|
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 x = u.value.getBoundingClientRect(), M = a.value.getBoundingClientRect(), I = {
|
|
821
|
+
top: x.top < M.top,
|
|
822
|
+
right: x.right > M.right,
|
|
823
|
+
bottom: x.bottom > M.bottom,
|
|
824
|
+
left: x.left < M.left
|
|
825
825
|
};
|
|
826
|
-
return I.top || (f.value.y -= M.top -
|
|
826
|
+
return I.top || (f.value.y -= M.top - x.top), I.bottom || (f.value.y -= M.bottom - x.bottom), I.right || (f.value.x -= M.right - x.right), I.left || (f.value.x -= M.left - x.left), d(), I;
|
|
827
827
|
}
|
|
828
|
-
function p(
|
|
829
|
-
|
|
828
|
+
function p(x) {
|
|
829
|
+
x && (c.value && x.subtract(c.value), f.value.set(x), d(), g());
|
|
830
830
|
}
|
|
831
|
-
function w(
|
|
832
|
-
s.value && o.value && (
|
|
831
|
+
function w(x) {
|
|
832
|
+
s.value && o.value && (x.stopPropagation(), x.preventDefault(), p(re.fromEvent(x, 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 x;
|
|
836
|
+
s.value && (s.value = !1, h.value.add(f.value), f.value.reset(), (x = a.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", k));
|
|
837
837
|
}
|
|
838
838
|
function B() {
|
|
839
839
|
!s.value && i.value && (s.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
|
|
840
840
|
}
|
|
841
841
|
function O() {
|
|
842
842
|
if (a.value) {
|
|
843
|
-
const
|
|
844
|
-
h.value.set(
|
|
843
|
+
const x = re.getTransformInfo(a.value);
|
|
844
|
+
h.value.set(x);
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
847
847
|
h.value.reset();
|
|
848
848
|
}
|
|
849
|
-
function b(
|
|
850
|
-
if (!n.value ||
|
|
849
|
+
function b(x) {
|
|
850
|
+
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
851
851
|
return;
|
|
852
|
-
const M =
|
|
853
|
-
i.value !== void 0 && M && !m(M, i.value) || o.value !== !1 && (document.body.click(),
|
|
852
|
+
const M = x.target || x.srcElement;
|
|
853
|
+
i.value !== void 0 && M && !m(M, i.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), O(), B());
|
|
854
854
|
}
|
|
855
|
-
function y(
|
|
855
|
+
function y(x, M, I) {
|
|
856
856
|
if (o.value && M) {
|
|
857
|
-
if (
|
|
858
|
-
i.value =
|
|
857
|
+
if (x)
|
|
858
|
+
i.value = x;
|
|
859
859
|
else if (e.dragHandle) {
|
|
860
860
|
if (e.dragHandle instanceof HTMLElement)
|
|
861
861
|
i.value = e.dragHandle;
|
|
@@ -907,10 +907,10 @@ const at = /* @__PURE__ */ oe({
|
|
|
907
907
|
setup(e, t) {
|
|
908
908
|
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), h = C(e.showCloseButton), f = C(e.showMaxButton), r = C(!1), m = C(e.dialogType), d = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
|
|
909
909
|
t: O
|
|
910
|
-
} =
|
|
910
|
+
} = St();
|
|
911
911
|
w.value === "错误提示" && (w.value = O("messageBox.errorTitle"));
|
|
912
912
|
const b = C(!1);
|
|
913
|
-
function y(
|
|
913
|
+
function y($, Q) {
|
|
914
914
|
const ue = Q ? "accept" : "cancel";
|
|
915
915
|
Promise.resolve().then(() => {
|
|
916
916
|
var fe;
|
|
@@ -918,29 +918,29 @@ const at = /* @__PURE__ */ oe({
|
|
|
918
918
|
closeType: ue
|
|
919
919
|
});
|
|
920
920
|
}).then((fe) => {
|
|
921
|
-
fe && (o.value = !1, t.emit("update:modelValue", !1), Q != null && t.emit(Q ? "accept" : "cancel"), t.emit("closed",
|
|
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 x = [{
|
|
925
925
|
name: "cancel",
|
|
926
926
|
text: O("messageBox.cancel") || "取消",
|
|
927
927
|
class: "btn btn-secondary",
|
|
928
|
-
handle: (
|
|
929
|
-
y(
|
|
928
|
+
handle: ($) => {
|
|
929
|
+
y($, !1);
|
|
930
930
|
}
|
|
931
931
|
}, {
|
|
932
932
|
name: "accept",
|
|
933
933
|
text: O("messageBox.ok") || "确定",
|
|
934
934
|
class: "btn btn-primary",
|
|
935
|
-
handle: (
|
|
936
|
-
y(
|
|
935
|
+
handle: ($) => {
|
|
936
|
+
y($, !0);
|
|
937
937
|
}
|
|
938
|
-
}], M = C(e.buttons && e.buttons.length ? e.buttons :
|
|
939
|
-
renderResizeBar:
|
|
940
|
-
maximize:
|
|
941
|
-
restore:
|
|
942
|
-
boundingElement:
|
|
943
|
-
resizedEventParam:
|
|
938
|
+
}], M = C(e.buttons && e.buttons.length ? e.buttons : x), I = N(() => !!c.value), R = N(() => !!p.value && !!M.value), E = C(), F = C(), S = C(!1), {
|
|
939
|
+
renderResizeBar: T,
|
|
940
|
+
maximize: P,
|
|
941
|
+
restore: V,
|
|
942
|
+
boundingElement: _,
|
|
943
|
+
resizedEventParam: L,
|
|
944
944
|
allowDrag: j,
|
|
945
945
|
unWindowResizeHandle: G,
|
|
946
946
|
moveToCenter: W
|
|
@@ -951,66 +951,66 @@ const at = /* @__PURE__ */ oe({
|
|
|
951
951
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
952
952
|
}
|
|
953
953
|
function ve() {
|
|
954
|
-
const
|
|
955
|
-
(
|
|
956
|
-
}
|
|
957
|
-
Z(() => e.title, (
|
|
958
|
-
|
|
959
|
-
}), Z(() => e.modelValue, (
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}),
|
|
963
|
-
}), Z(() => e.showHeader, (
|
|
964
|
-
|
|
965
|
-
}), Z(() => e.showButtons, (
|
|
966
|
-
|
|
967
|
-
}), Z(() =>
|
|
968
|
-
const ue =
|
|
954
|
+
const $ = document.querySelectorAll(".farris-modal").length;
|
|
955
|
+
(!$ || $ - 1 <= 0) && document.body.classList.remove("modal-open"), B.value && B.value.classList.remove("show");
|
|
956
|
+
}
|
|
957
|
+
Z(() => e.title, ($, Q) => {
|
|
958
|
+
$ !== Q && (w.value = $);
|
|
959
|
+
}), Z(() => e.modelValue, ($, Q) => {
|
|
960
|
+
$ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
|
|
961
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(E.value, F.value, _.value), W());
|
|
962
|
+
}), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, j.value = e.draggable);
|
|
963
|
+
}), Z(() => e.showHeader, ($, Q) => {
|
|
964
|
+
$ !== Q && (s.value = $);
|
|
965
|
+
}), Z(() => e.showButtons, ($, Q) => {
|
|
966
|
+
$ !== Q && (p.value = $);
|
|
967
|
+
}), Z(() => L.value, ($, Q) => {
|
|
968
|
+
const ue = $ || {}, fe = Q || {};
|
|
969
969
|
JSON.stringify(ue) !== JSON.stringify(fe) && t.emit("resize", {
|
|
970
|
-
newSize:
|
|
970
|
+
newSize: $,
|
|
971
971
|
oldSize: Q,
|
|
972
972
|
isMaximized: S.value
|
|
973
973
|
});
|
|
974
974
|
});
|
|
975
975
|
const X = N(() => (o.value && document.body.classList.add("modal-open"), o.value)), le = N(() => {
|
|
976
976
|
var ue;
|
|
977
|
-
const
|
|
977
|
+
const $ = {
|
|
978
978
|
modal: !0,
|
|
979
979
|
"farris-modal": !0,
|
|
980
980
|
fade: !0
|
|
981
981
|
};
|
|
982
|
-
|
|
982
|
+
$["f-modal-fitContent"] = !!u.value, $.show = !!X.value;
|
|
983
983
|
const Q = (ue = e.maskClass) == null ? void 0 : ue.split(" ");
|
|
984
|
-
return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe),
|
|
984
|
+
return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe), $), $;
|
|
985
985
|
}), de = N(() => {
|
|
986
986
|
var ue;
|
|
987
|
-
const
|
|
987
|
+
const $ = {
|
|
988
988
|
"modal-dialog": !0
|
|
989
989
|
}, Q = (ue = i.value) == null ? void 0 : ue.split(" ");
|
|
990
|
-
return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe),
|
|
990
|
+
return Q == null || Q.reduce((fe, Ne) => (fe[Ne] = !0, fe), $), $;
|
|
991
991
|
}), ne = N(() => {
|
|
992
|
-
const
|
|
992
|
+
const $ = {
|
|
993
993
|
position: "absolute",
|
|
994
994
|
top: `${(window.innerHeight - a.value) / 2}px`,
|
|
995
995
|
left: `${(window.innerWidth - n.value) / 2}px`,
|
|
996
996
|
width: `${n.value}px`,
|
|
997
997
|
height: u.value ? "auto" : `${a.value}px`
|
|
998
998
|
};
|
|
999
|
-
return e.mask || (
|
|
999
|
+
return e.mask || ($.pointerEvents = "auto"), $;
|
|
1000
1000
|
}), U = () => Va() || 1040, ae = N(() => {
|
|
1001
|
-
const
|
|
1001
|
+
const $ = {
|
|
1002
1002
|
display: "block",
|
|
1003
1003
|
zIndex: U()
|
|
1004
1004
|
};
|
|
1005
|
-
return e.mask || (
|
|
1005
|
+
return e.mask || ($.pointerEvents = "none", $.backgroundColor = "transparent"), b.value && ($.backgroundColor = "transparent"), $;
|
|
1006
1006
|
}), Xe = N(() => ({
|
|
1007
1007
|
"modal-content": !0,
|
|
1008
1008
|
"modal-content-has-header": s.value
|
|
1009
1009
|
})), $e = N(() => {
|
|
1010
|
-
const
|
|
1010
|
+
const $ = {
|
|
1011
1011
|
display: s.value ? "" : "none"
|
|
1012
1012
|
};
|
|
1013
|
-
return
|
|
1013
|
+
return $["pointer-events"] = j.value ? "auto" : "none", $;
|
|
1014
1014
|
}), Be = N(() => ({
|
|
1015
1015
|
"f-icon": !0,
|
|
1016
1016
|
modal_maximize: !0,
|
|
@@ -1026,33 +1026,33 @@ const at = /* @__PURE__ */ oe({
|
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
1028
|
const rt = N(() => {
|
|
1029
|
-
const
|
|
1029
|
+
const $ = {
|
|
1030
1030
|
textAlgin: g.value
|
|
1031
1031
|
}, Q = Je();
|
|
1032
|
-
return Object.assign(
|
|
1032
|
+
return Object.assign($, Q);
|
|
1033
1033
|
});
|
|
1034
|
-
function se(
|
|
1035
|
-
if (
|
|
1036
|
-
S.value = !1,
|
|
1034
|
+
function se($) {
|
|
1035
|
+
if ($ == null || $.stopPropagation(), S.value) {
|
|
1036
|
+
S.value = !1, V();
|
|
1037
1037
|
return;
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1039
|
+
P(), S.value = !0;
|
|
1040
1040
|
}
|
|
1041
|
-
async function pt(
|
|
1042
|
-
|
|
1041
|
+
async function pt($, Q) {
|
|
1042
|
+
$.handle && await $.handle(Q, $) && t.emit("closed", Q);
|
|
1043
1043
|
}
|
|
1044
|
-
function Ae(
|
|
1045
|
-
|
|
1044
|
+
function Ae($) {
|
|
1045
|
+
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (M.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
|
-
|
|
1051
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(E.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({
|
|
1055
|
-
modalElementRef:
|
|
1055
|
+
modalElementRef: F,
|
|
1056
1056
|
updateModalOptions: Ae,
|
|
1057
1057
|
close: y,
|
|
1058
1058
|
maxDialog: se,
|
|
@@ -1071,7 +1071,7 @@ const at = /* @__PURE__ */ oe({
|
|
|
1071
1071
|
class: Be.value
|
|
1072
1072
|
}, null)]), h.value && v("li", {
|
|
1073
1073
|
class: "f-btn-icon f-bare",
|
|
1074
|
-
onClick: (
|
|
1074
|
+
onClick: ($) => y($, !1),
|
|
1075
1075
|
style: "pointer-events: auto;"
|
|
1076
1076
|
}, [v("span", {
|
|
1077
1077
|
class: "f-icon modal_close"
|
|
@@ -1081,24 +1081,24 @@ const at = /* @__PURE__ */ oe({
|
|
|
1081
1081
|
return v("div", {
|
|
1082
1082
|
class: "modal-footer",
|
|
1083
1083
|
style: rt.value
|
|
1084
|
-
}, [M.value && M.value.map((
|
|
1085
|
-
const Q = C(
|
|
1084
|
+
}, [M.value && M.value.map(($) => {
|
|
1085
|
+
const Q = C($.disabled);
|
|
1086
1086
|
return v("button", {
|
|
1087
|
-
name:
|
|
1087
|
+
name: $.name,
|
|
1088
1088
|
type: "button",
|
|
1089
1089
|
disabled: Q.value,
|
|
1090
|
-
class:
|
|
1090
|
+
class: $.class + ($.iconClass ? " btn-icontext" : ""),
|
|
1091
1091
|
onClick: (ue) => {
|
|
1092
|
-
pt(
|
|
1092
|
+
pt($, ue);
|
|
1093
1093
|
}
|
|
1094
|
-
}, [
|
|
1095
|
-
class:
|
|
1096
|
-
}, null),
|
|
1094
|
+
}, [!!$.iconClass && v("i", {
|
|
1095
|
+
class: $.iconClass
|
|
1096
|
+
}, null), $.text]);
|
|
1097
1097
|
})]);
|
|
1098
1098
|
}
|
|
1099
1099
|
function Qe() {
|
|
1100
1100
|
return v("div", {
|
|
1101
|
-
ref:
|
|
1101
|
+
ref: E,
|
|
1102
1102
|
class: "modal-header",
|
|
1103
1103
|
style: $e.value
|
|
1104
1104
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
@@ -1115,34 +1115,34 @@ const at = /* @__PURE__ */ oe({
|
|
|
1115
1115
|
function Pe() {
|
|
1116
1116
|
return t.slots.footerTemplate ? t.slots.footerTemplate() : R.value && mt();
|
|
1117
1117
|
}
|
|
1118
|
-
function We(
|
|
1119
|
-
if (
|
|
1120
|
-
if (
|
|
1118
|
+
function We($) {
|
|
1119
|
+
if ($.stopPropagation(), e.allowClickMaskToClose) {
|
|
1120
|
+
if ($.target !== B.value)
|
|
1121
1121
|
return;
|
|
1122
|
-
y(
|
|
1122
|
+
y($, !1);
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
function st() {
|
|
1126
|
-
var
|
|
1126
|
+
var $, Q;
|
|
1127
1127
|
return v("div", {
|
|
1128
1128
|
id: l.value,
|
|
1129
1129
|
class: de.value,
|
|
1130
1130
|
style: ne.value,
|
|
1131
|
-
ref:
|
|
1131
|
+
ref: F
|
|
1132
1132
|
}, [v("div", {
|
|
1133
1133
|
class: Xe.value
|
|
1134
1134
|
}, [s.value && Qe(), v("div", {
|
|
1135
1135
|
class: it.value
|
|
1136
|
-
}, [(Q = (
|
|
1136
|
+
}, [(Q = ($ = t.slots).default) == null ? void 0 : Q.call($), m.value === "iframe" && v("iframe", {
|
|
1137
1137
|
title: l.value,
|
|
1138
1138
|
class: "f-utils-fill",
|
|
1139
1139
|
width: "100%",
|
|
1140
1140
|
frameborder: "0",
|
|
1141
1141
|
src: d.value
|
|
1142
|
-
}, null)]), Pe()]), !u.value &&
|
|
1142
|
+
}, null)]), Pe()]), !u.value && F.value && !S.value && T(F.value)]);
|
|
1143
1143
|
}
|
|
1144
|
-
function ut(
|
|
1145
|
-
return
|
|
1144
|
+
function ut($) {
|
|
1145
|
+
return $ || "body";
|
|
1146
1146
|
}
|
|
1147
1147
|
return () => v(Tn, {
|
|
1148
1148
|
to: ut(e.host)
|
|
@@ -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 x;
|
|
1269
1269
|
o.value = !1;
|
|
1270
|
-
const y = (
|
|
1270
|
+
const y = (x = b == null ? void 0 : b.target) == null ? void 0 : x.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((x) => Number(x));
|
|
1276
1276
|
y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
|
|
1277
1277
|
}
|
|
1278
1278
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -1386,7 +1386,7 @@ const rl = {
|
|
|
1386
1386
|
e.editor && (e.editor[t] = n);
|
|
1387
1387
|
},
|
|
1388
1388
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
1389
|
-
},
|
|
1389
|
+
}, A = {
|
|
1390
1390
|
button: { type: "button", name: "按钮" },
|
|
1391
1391
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
1392
1392
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -1437,7 +1437,7 @@ const rl = {
|
|
|
1437
1437
|
convertFrom: (e, t, n) => {
|
|
1438
1438
|
var o;
|
|
1439
1439
|
const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
1440
|
-
return ((o =
|
|
1440
|
+
return ((o = A[a]) == null ? void 0 : o.name) || a;
|
|
1441
1441
|
}
|
|
1442
1442
|
}, dl = {
|
|
1443
1443
|
convertTo: (e, t, n, a) => {
|
|
@@ -1569,12 +1569,12 @@ const rl = {
|
|
|
1569
1569
|
convertTo: (e, t, n) => {
|
|
1570
1570
|
e[t] = n;
|
|
1571
1571
|
}
|
|
1572
|
-
},
|
|
1572
|
+
}, Sl = {
|
|
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
|
+
}, xl = {
|
|
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", Sl],
|
|
1637
|
+
["/converter/change-formatter-enum.converter", xl],
|
|
1638
1638
|
["/converter/grid-sort.converter", Fl],
|
|
1639
1639
|
["/converter/grid-filter.converter", Tl],
|
|
1640
1640
|
["/converter/row-option.converter", Bl]
|
|
@@ -1678,13 +1678,13 @@ function zn(e, t, n) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
function h(d, g, p, w, k, B = "", O = "") {
|
|
1680
1680
|
return Object.keys(d).map((y) => {
|
|
1681
|
-
const
|
|
1682
|
-
|
|
1683
|
-
const
|
|
1681
|
+
const x = C(1), M = y, I = d[y], R = Object.keys(I), E = I.title, F = I.type, S = o.get(F) || { type: "input-group", enableClear: !1 }, T = I.editor ? Object.assign({}, S, I.editor) : Object.assign({}, S), P = u(R, I, g), V = s(R, I, g);
|
|
1682
|
+
T.readonly = T.readonly === void 0 ? V() : T.readonly;
|
|
1683
|
+
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, O) : [], L = !0;
|
|
1684
1684
|
let j = c(I, O);
|
|
1685
1685
|
const G = N({
|
|
1686
1686
|
get() {
|
|
1687
|
-
if (
|
|
1687
|
+
if (x.value) {
|
|
1688
1688
|
if (["class", "style"].find((de) => de === M) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
1689
1689
|
return j.convertFrom(p, y, k, B);
|
|
1690
1690
|
const le = p[y];
|
|
@@ -1693,28 +1693,28 @@ function zn(e, t, n) {
|
|
|
1693
1693
|
return null;
|
|
1694
1694
|
},
|
|
1695
1695
|
set(le) {
|
|
1696
|
-
|
|
1696
|
+
x.value += 1, j && j.convertTo ? (j.convertTo(w, y, le, k, B), j.convertTo(p, y, le, k, B)) : (w[y] = le, p[y] = le);
|
|
1697
1697
|
}
|
|
1698
|
-
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName:
|
|
1698
|
+
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: M, propertyName: E, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: V, cascadeConfig: _, hideCascadeTitle: L, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
1699
1699
|
return g[M] = X, X;
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
1702
|
function f(d, g, p = {}) {
|
|
1703
1703
|
const w = {}, k = e[d];
|
|
1704
1704
|
return k && k.categories ? Object.keys(k.categories).map((O) => {
|
|
1705
|
-
const b = k.categories[O], y = b == null ? void 0 : b.title,
|
|
1706
|
-
return { categoryId: O, categoryName: y, properties:
|
|
1705
|
+
const b = k.categories[O], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
|
|
1706
|
+
return { categoryId: O, categoryName: y, properties: x };
|
|
1707
1707
|
}) : [];
|
|
1708
1708
|
}
|
|
1709
1709
|
function r(d, g, p, w, k = "") {
|
|
1710
|
-
const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type,
|
|
1710
|
+
const B = g.$ref.schema, O = g.$ref.converter, b = p[B], y = b.type, x = n(b), M = {}, I = e[y];
|
|
1711
1711
|
if (I && I.categories) {
|
|
1712
|
-
const R = I.categories[d],
|
|
1713
|
-
O && Object.keys(R.properties).forEach((
|
|
1714
|
-
R.properties[
|
|
1712
|
+
const R = I.categories[d], E = R == null ? void 0 : R.title;
|
|
1713
|
+
O && Object.keys(R.properties).forEach((T) => {
|
|
1714
|
+
R.properties[T].$converter = O;
|
|
1715
1715
|
});
|
|
1716
|
-
const
|
|
1717
|
-
return { categoryId: d, categoryName:
|
|
1716
|
+
const F = (R == null ? void 0 : R.properties) || {}, S = h(F, M, x, b, w, k);
|
|
1717
|
+
return { categoryId: d, categoryName: E, properties: S };
|
|
1718
1718
|
}
|
|
1719
1719
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
1720
1720
|
}
|
|
@@ -1722,16 +1722,16 @@ function zn(e, t, n) {
|
|
|
1722
1722
|
const B = d.type, O = n(d), b = {};
|
|
1723
1723
|
let y = k || e[B];
|
|
1724
1724
|
if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
|
|
1725
|
-
const
|
|
1725
|
+
const x = [];
|
|
1726
1726
|
return Object.keys(y.categories).map((M) => {
|
|
1727
1727
|
const I = y.categories[M];
|
|
1728
1728
|
if (I.$ref) {
|
|
1729
|
-
|
|
1729
|
+
x.push(r(M, 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, E = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName, S = I == null ? void 0 : I.hide, T = I == null ? void 0 : I.hideTitle, P = h(I.properties || {}, b, O, d, g, w, I.$converter), { setPropertyRelates: V } = I, _ = I == null ? void 0 : I.parentPropertyID;
|
|
1733
|
+
x.push({ categoryId: M, categoryName: R, tabId: E, tabName: F, hide: S, properties: P, hideTitle: T, setPropertyRelates: V, parentPropertyID: _ });
|
|
1734
|
+
}), x;
|
|
1735
1735
|
}
|
|
1736
1736
|
return [];
|
|
1737
1737
|
}
|
|
@@ -1818,9 +1818,9 @@ 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 = {}, { resolveSchemaWithDefaultValue: Ol } = Hn(Wn, qn), Gn = {}, Un = {};
|
|
1821
|
+
const Wn = {}, qn = {}, { getSchemaByType: Sd, resolveSchemaWithDefaultValue: Ol, resolveSchemaToProps: xd, mappingSchemaToProps: Fd, setDesignerContext: Td } = Hn(Wn, qn), Gn = {}, Un = {};
|
|
1822
1822
|
zn(Gn, Un, Ol);
|
|
1823
|
-
const _n = {}, Yn = {}, { resolveSchemaWithDefaultValue: Ml, resolveSchemaToProps: El, mappingSchemaToProps: Dl } = Hn(_n, Yn), Xn = {}, Jn = {};
|
|
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);
|
|
1825
1825
|
function Ve(e, t, n = /* @__PURE__ */ new Map(), a = (i, u, s, c) => u, o = {}, l = (i) => i) {
|
|
1826
1826
|
return _n[t.title] = t, Yn[t.title] = a, Xn[t.title] = o, Jn[t.title] = l, Wn[t.title] = t, qn[t.title] = a, Gn[t.title] = o, Un[t.title] = l, (i = {}, u = !0) => {
|
|
@@ -1954,10 +1954,10 @@ const dt = class dt {
|
|
|
1954
1954
|
*/
|
|
1955
1955
|
static getEditorTypesByMDataType(t, n = !1, a = "") {
|
|
1956
1956
|
if (n)
|
|
1957
|
-
return [{ key:
|
|
1957
|
+
return [{ key: A["language-textbox"].type, value: A["language-textbox"].name }];
|
|
1958
1958
|
let o = dt.fieldControlTypeMapping[t];
|
|
1959
1959
|
if (a === "data-grid-column" && (o != null && o.length)) {
|
|
1960
|
-
const l = [
|
|
1960
|
+
const l = [A["check-group"].type, A["radio-group"].type];
|
|
1961
1961
|
o = o.filter((i) => !l.includes(i.key));
|
|
1962
1962
|
}
|
|
1963
1963
|
return o;
|
|
@@ -1980,7 +1980,7 @@ const dt = class dt {
|
|
|
1980
1980
|
static mappingDomPropAndSchemaProp(t, n) {
|
|
1981
1981
|
var l;
|
|
1982
1982
|
const a = (l = t.editor) == null ? void 0 : l.type, o = [];
|
|
1983
|
-
return (t.type ===
|
|
1983
|
+
return (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && o.push({ domField: "title", schemaField: "name" }), o.push({ domField: "label", schemaField: "name" }), o.push({ domField: "editor.required", schemaField: "require" }), o.push({ domField: "editor.readonly", schemaField: "readonly" }), (a === A["input-group"].type || a === A.textarea.type || a === A["number-spinner"].type) && o.push({ domField: "editor.maxLength", schemaField: "type.length" }), a === A["number-spinner"].type && o.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "formatter.precision", schemaField: "type.precision" }), (a === A["combo-list"].type || a === A["radio-group"].type) && o.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "formatter.data", schemaField: "type.enumValues" }), a === A["date-picker"].type && (o.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), o.push({ domField: "editor.fieldType", schemaField: "type.name" })), a === A["number-spinner"].type && (o.push({ domField: "editor.max", schemaField: "editor.maxValue" }), o.push({ domField: "editor.min", schemaField: "editor.minValue" })), a === A.lookup.type && (o.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), o.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), o.push({ domField: "editor.textField", schemaField: "editor.textField" }), o.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), o.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), o.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), o.push({ domField: "path", schemaField: "bindingPath" }), o.push({ domField: "binding.path", schemaField: "bindingField" }), o.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === A["data-grid-column"].type || t.type === A["tree-grid-column"].type) && o.push({ domField: "field", schemaField: "bindingPath" }), o;
|
|
1984
1984
|
}
|
|
1985
1985
|
};
|
|
1986
1986
|
/**
|
|
@@ -1988,53 +1988,53 @@ const dt = class dt {
|
|
|
1988
1988
|
*/
|
|
1989
1989
|
we(dt, "fieldControlTypeMapping", {
|
|
1990
1990
|
String: [
|
|
1991
|
-
{ key:
|
|
1992
|
-
{ key:
|
|
1993
|
-
{ key:
|
|
1994
|
-
{ key:
|
|
1995
|
-
{ key:
|
|
1996
|
-
{ key:
|
|
1997
|
-
{ key:
|
|
1998
|
-
{ key:
|
|
1999
|
-
{ key:
|
|
2000
|
-
{ key:
|
|
1991
|
+
{ key: A["input-group"].type, value: A["input-group"].name },
|
|
1992
|
+
{ key: A.lookup.type, value: A.lookup.name },
|
|
1993
|
+
{ key: A["date-picker"].type, value: A["date-picker"].name },
|
|
1994
|
+
{ key: A.switch.type, value: A.switch.name },
|
|
1995
|
+
{ key: A["check-box"].type, value: A["check-box"].name },
|
|
1996
|
+
{ key: A["check-group"].type, value: A["check-group"].name },
|
|
1997
|
+
{ key: A["radio-group"].type, value: A["radio-group"].name },
|
|
1998
|
+
{ key: A["combo-list"].type, value: A["combo-list"].name },
|
|
1999
|
+
{ key: A.textarea.type, value: A.textarea.name },
|
|
2000
|
+
{ key: A["time-picker"].type, value: A["time-picker"].name }
|
|
2001
2001
|
],
|
|
2002
2002
|
Text: [
|
|
2003
|
-
{ key:
|
|
2004
|
-
{ key:
|
|
2003
|
+
{ key: A.textarea.type, value: A.textarea.name },
|
|
2004
|
+
{ key: A.lookup.type, value: A.lookup.name }
|
|
2005
2005
|
],
|
|
2006
2006
|
Decimal: [
|
|
2007
|
-
{ key:
|
|
2007
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name }
|
|
2008
2008
|
],
|
|
2009
2009
|
Integer: [
|
|
2010
|
-
{ key:
|
|
2010
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name }
|
|
2011
2011
|
],
|
|
2012
2012
|
Number: [
|
|
2013
|
-
{ key:
|
|
2014
|
-
{ key:
|
|
2015
|
-
{ key:
|
|
2013
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name },
|
|
2014
|
+
{ key: A.switch.type, value: A.switch.name },
|
|
2015
|
+
{ key: A["check-box"].type, value: A["check-box"].name }
|
|
2016
2016
|
],
|
|
2017
2017
|
BigNumber: [
|
|
2018
|
-
{ key:
|
|
2018
|
+
{ key: A["number-spinner"].type, value: A["number-spinner"].name }
|
|
2019
2019
|
],
|
|
2020
2020
|
Date: [
|
|
2021
|
-
{ key:
|
|
2021
|
+
{ key: A["date-picker"].type, value: A["date-picker"].name }
|
|
2022
2022
|
],
|
|
2023
2023
|
DateTime: [
|
|
2024
|
-
{ key:
|
|
2024
|
+
{ key: A["date-picker"].type, value: A["date-picker"].name }
|
|
2025
2025
|
],
|
|
2026
2026
|
Boolean: [
|
|
2027
|
-
{ key:
|
|
2028
|
-
{ key:
|
|
2027
|
+
{ key: A.switch.type, value: A.switch.name },
|
|
2028
|
+
{ key: A["check-box"].type, value: A["check-box"].name }
|
|
2029
2029
|
],
|
|
2030
2030
|
Enum: [
|
|
2031
|
-
{ key:
|
|
2032
|
-
{ key:
|
|
2031
|
+
{ key: A["combo-list"].type, value: A["combo-list"].name },
|
|
2032
|
+
{ key: A["radio-group"].type, value: A["radio-group"].name }
|
|
2033
2033
|
],
|
|
2034
2034
|
Object: [
|
|
2035
|
-
{ key:
|
|
2036
|
-
{ key:
|
|
2037
|
-
{ key:
|
|
2035
|
+
{ key: A.lookup.type, value: A.lookup.name },
|
|
2036
|
+
{ key: A["combo-list"].type, value: A["combo-list"].name },
|
|
2037
|
+
{ key: A["radio-group"].type, value: A["radio-group"].name }
|
|
2038
2038
|
]
|
|
2039
2039
|
});
|
|
2040
2040
|
let gn = dt;
|
|
@@ -2092,239 +2092,239 @@ var zl = { exports: {} };
|
|
|
2092
2092
|
2: [function(n, a, o) {
|
|
2093
2093
|
(function(l) {
|
|
2094
2094
|
var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
|
|
2095
|
-
function f(
|
|
2095
|
+
function f(E, F) {
|
|
2096
2096
|
var S = arguments.length;
|
|
2097
|
-
S === 1 && Array.isArray(
|
|
2098
|
-
var
|
|
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 =
|
|
2097
|
+
S === 1 && Array.isArray(E) === !1 && (F = E, E = []);
|
|
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 = E || []), 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,
|
|
2103
2103
|
end: Qe,
|
|
2104
|
-
cancel:
|
|
2104
|
+
cancel: $,
|
|
2105
2105
|
remove: ut,
|
|
2106
2106
|
destroy: Je,
|
|
2107
2107
|
canMove: ze,
|
|
2108
2108
|
dragging: !1
|
|
2109
2109
|
});
|
|
2110
2110
|
return U.removeOnSpill === !0 && ae.on("over", $t).on("out", At), $e(), ae;
|
|
2111
|
-
function Xe(
|
|
2112
|
-
return ae.containers.indexOf(
|
|
2111
|
+
function Xe(D) {
|
|
2112
|
+
return ae.containers.indexOf(D) !== -1 || U.isContainer(D);
|
|
2113
2113
|
}
|
|
2114
|
-
function $e(
|
|
2115
|
-
var
|
|
2116
|
-
d(h,
|
|
2114
|
+
function $e(D) {
|
|
2115
|
+
var z = D ? "remove" : "add";
|
|
2116
|
+
d(h, z, "mousedown", se), d(h, z, "mouseup", We);
|
|
2117
2117
|
}
|
|
2118
|
-
function Be(
|
|
2119
|
-
var
|
|
2120
|
-
d(h,
|
|
2118
|
+
function Be(D) {
|
|
2119
|
+
var z = D ? "remove" : "add";
|
|
2120
|
+
d(h, z, "mousemove", pt);
|
|
2121
2121
|
}
|
|
2122
|
-
function it(
|
|
2123
|
-
var
|
|
2124
|
-
u[
|
|
2122
|
+
function it(D) {
|
|
2123
|
+
var z = D ? "remove" : "add";
|
|
2124
|
+
u[z](h, "selectstart", rt), u[z](h, "click", rt);
|
|
2125
2125
|
}
|
|
2126
2126
|
function Je() {
|
|
2127
2127
|
$e(!0), We({});
|
|
2128
2128
|
}
|
|
2129
|
-
function rt(
|
|
2130
|
-
ve &&
|
|
2129
|
+
function rt(D) {
|
|
2130
|
+
ve && D.preventDefault();
|
|
2131
2131
|
}
|
|
2132
|
-
function se(
|
|
2133
|
-
|
|
2134
|
-
var
|
|
2135
|
-
if (!
|
|
2136
|
-
var H =
|
|
2137
|
-
|
|
2132
|
+
function se(D) {
|
|
2133
|
+
_ = D.clientX, L = D.clientY;
|
|
2134
|
+
var z = g(D) !== 1 || D.metaKey || D.ctrlKey;
|
|
2135
|
+
if (!z) {
|
|
2136
|
+
var H = D.target, Y = Ae(H);
|
|
2137
|
+
Y && (ve = Y, Be(), D.type === "mousedown" && (y(H) ? H.focus() : D.preventDefault()));
|
|
2138
2138
|
}
|
|
2139
2139
|
}
|
|
2140
|
-
function pt(
|
|
2140
|
+
function pt(D) {
|
|
2141
2141
|
if (ve) {
|
|
2142
|
-
if (g(
|
|
2142
|
+
if (g(D) === 0) {
|
|
2143
2143
|
We({});
|
|
2144
2144
|
return;
|
|
2145
2145
|
}
|
|
2146
|
-
if (!(
|
|
2146
|
+
if (!(D.clientX !== void 0 && Math.abs(D.clientX - _) <= (U.slideFactorX || 0) && D.clientY !== void 0 && Math.abs(D.clientY - L) <= (U.slideFactorY || 0))) {
|
|
2147
2147
|
if (U.ignoreInputTextSelection) {
|
|
2148
|
-
var
|
|
2149
|
-
if (y(
|
|
2148
|
+
var z = R("clientX", D) || 0, H = R("clientY", D) || 0, Y = c.elementFromPoint(z, H);
|
|
2149
|
+
if (y(Y))
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
2152
|
var K = ve;
|
|
2153
|
-
Be(!0), it(), Qe(), He(K), s.add(W ||
|
|
2153
|
+
Be(!0), it(), Qe(), He(K), s.add(W || V, "gu-transit"), Ht(), zt(), de = 0, Ne(D);
|
|
2154
2154
|
}
|
|
2155
2155
|
}
|
|
2156
2156
|
}
|
|
2157
|
-
function Ae(
|
|
2158
|
-
if (!(ae.dragging &&
|
|
2159
|
-
for (var
|
|
2160
|
-
if (U.invalid(
|
|
2157
|
+
function Ae(D) {
|
|
2158
|
+
if (!(ae.dragging && T) && !Xe(D)) {
|
|
2159
|
+
for (var z = D; b(D) && Xe(b(D)) === !1; )
|
|
2160
|
+
if (U.invalid(D, z) || (D = b(D), !D))
|
|
2161
2161
|
return;
|
|
2162
|
-
var H = b(
|
|
2163
|
-
if (H && !U.invalid(
|
|
2164
|
-
var
|
|
2165
|
-
if (
|
|
2162
|
+
var H = b(D);
|
|
2163
|
+
if (H && !U.invalid(D, z)) {
|
|
2164
|
+
var Y = U.moves(D, H, z, M(D));
|
|
2165
|
+
if (Y)
|
|
2166
2166
|
return {
|
|
2167
|
-
item:
|
|
2167
|
+
item: D,
|
|
2168
2168
|
source: H
|
|
2169
2169
|
};
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
|
-
function ze(
|
|
2174
|
-
return !!Ae(
|
|
2173
|
+
function ze(D) {
|
|
2174
|
+
return !!Ae(D);
|
|
2175
2175
|
}
|
|
2176
|
-
function Oe(
|
|
2177
|
-
var
|
|
2178
|
-
|
|
2176
|
+
function Oe(D) {
|
|
2177
|
+
var z = Ae(D);
|
|
2178
|
+
z && He(z);
|
|
2179
2179
|
}
|
|
2180
|
-
function He(
|
|
2181
|
-
Xt(
|
|
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 = M(D.item), ae.dragging = !0, ae.emit("drag", V, P);
|
|
2182
2182
|
}
|
|
2183
2183
|
function mt() {
|
|
2184
2184
|
return !1;
|
|
2185
2185
|
}
|
|
2186
2186
|
function Qe() {
|
|
2187
2187
|
if (ae.dragging) {
|
|
2188
|
-
var
|
|
2189
|
-
st(
|
|
2188
|
+
var D = W || V;
|
|
2189
|
+
st(D, b(D));
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
2192
|
function Pe() {
|
|
2193
2193
|
ve = !1, Be(!0), it(!0);
|
|
2194
2194
|
}
|
|
2195
|
-
function We(
|
|
2195
|
+
function We(D) {
|
|
2196
2196
|
if (Pe(), !!ae.dragging) {
|
|
2197
|
-
var
|
|
2198
|
-
te && (W && U.copySortSource || !W || te !==
|
|
2197
|
+
var z = W || V, H = R("clientX", D) || 0, Y = R("clientY", D) || 0, K = p(T, H, Y), te = fe(K, H, Y);
|
|
2198
|
+
te && (W && U.copySortSource || !W || te !== P) ? st(z, te) : U.removeOnSpill ? ut() : $();
|
|
2199
2199
|
}
|
|
2200
2200
|
}
|
|
2201
|
-
function st(
|
|
2202
|
-
var H = b(
|
|
2203
|
-
W && U.copySortSource &&
|
|
2201
|
+
function st(D, z) {
|
|
2202
|
+
var H = b(D);
|
|
2203
|
+
W && U.copySortSource && z === P && H.removeChild(V), ue(z) ? ae.emit("cancel", D, P) : ae.emit("drop", D, z, P, G), Q();
|
|
2204
2204
|
}
|
|
2205
2205
|
function ut() {
|
|
2206
2206
|
if (ae.dragging) {
|
|
2207
|
-
var
|
|
2208
|
-
|
|
2207
|
+
var D = W || V, z = b(D);
|
|
2208
|
+
z && z.removeChild(D), ae.emit(W ? "cancel" : "remove", D, z, P), Q();
|
|
2209
2209
|
}
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function $(D) {
|
|
2212
2212
|
if (ae.dragging) {
|
|
2213
|
-
var
|
|
2214
|
-
K === !1 &&
|
|
2213
|
+
var z = arguments.length > 0 ? D : U.revertOnSpill, H = W || V, Y = b(H), K = ue(Y);
|
|
2214
|
+
K === !1 && z && (W ? Y && Y.removeChild(W) : P.insertBefore(H, j)), K || z ? ae.emit("cancel", H, P, P) : ae.emit("drop", H, Y, P, G), Q();
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
2217
|
function Q() {
|
|
2218
|
-
var
|
|
2219
|
-
Pe(), Wt(), qt(),
|
|
2218
|
+
var D = W || V;
|
|
2219
|
+
Pe(), Wt(), qt(), D && s.rm(D, "gu-transit"), ee && clearTimeout(ee), ae.dragging = !1, ce && ae.emit("out", D, ce, P), ae.emit("dragend", D, de), P = V = W = j = G = ee = ce = null;
|
|
2220
2220
|
}
|
|
2221
|
-
function ue(
|
|
2221
|
+
function ue(D, z) {
|
|
2222
2222
|
var H;
|
|
2223
|
-
return
|
|
2223
|
+
return z !== void 0 ? H = z : T ? H = G : H = M(W || V), D === P && H === j;
|
|
2224
2224
|
}
|
|
2225
|
-
function fe(
|
|
2226
|
-
for (var
|
|
2227
|
-
|
|
2228
|
-
return
|
|
2225
|
+
function fe(D, z, H) {
|
|
2226
|
+
for (var Y = D; Y && !K(); )
|
|
2227
|
+
Y = b(Y);
|
|
2228
|
+
return Y;
|
|
2229
2229
|
function K() {
|
|
2230
|
-
var te = Xe(
|
|
2230
|
+
var te = Xe(Y);
|
|
2231
2231
|
if (te === !1)
|
|
2232
2232
|
return !1;
|
|
2233
|
-
var Te = Ft(
|
|
2234
|
-
return
|
|
2233
|
+
var Te = Ft(Y, D), Ce = Tt(Y, Te, z, H), Se = ue(Y, Ce);
|
|
2234
|
+
return Se ? !0 : U.accepts(V, Y, P, Ce);
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
function Ne(
|
|
2238
|
-
if (!
|
|
2237
|
+
function Ne(D) {
|
|
2238
|
+
if (!T)
|
|
2239
2239
|
return;
|
|
2240
|
-
|
|
2241
|
-
var
|
|
2242
|
-
|
|
2243
|
-
var
|
|
2244
|
-
(Te || te === null) && (
|
|
2245
|
-
var Ce = b(
|
|
2246
|
-
if (te ===
|
|
2247
|
-
Ce && Ce.removeChild(
|
|
2240
|
+
D.preventDefault();
|
|
2241
|
+
var z = R("clientX", D) || 0, H = R("clientY", D) || 0;
|
|
2242
|
+
T.style.left = z - 2 + "px", T.style.top = H - 2 + "px";
|
|
2243
|
+
var Y = W || V, K = p(T, z, H), te = fe(K, z, H), Te = te !== null && te !== ce;
|
|
2244
|
+
(Te || te === null) && (xe(), ce = te, Ee()), Yt(K, H);
|
|
2245
|
+
var Ce = b(Y);
|
|
2246
|
+
if (te === P && W && !U.copySortSource) {
|
|
2247
|
+
Ce && Ce.removeChild(Y);
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
2250
|
-
var
|
|
2250
|
+
var Se, Me = Ft(te, K);
|
|
2251
2251
|
if (le = yt(Me, te), Me !== null)
|
|
2252
|
-
|
|
2252
|
+
Se = Tt(te, Me, z, H);
|
|
2253
2253
|
else if (U.revertOnSpill === !0 && !W)
|
|
2254
|
-
|
|
2254
|
+
Se = j, te = P;
|
|
2255
2255
|
else {
|
|
2256
|
-
W && Ce && Ce.removeChild(
|
|
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(Se, Y, Te), Se ? Ut(Me, Se) : _t(te);
|
|
2260
2260
|
function pe(he) {
|
|
2261
|
-
ae.emit(he,
|
|
2261
|
+
ae.emit(he, Y, ce, P);
|
|
2262
2262
|
}
|
|
2263
2263
|
function Ee() {
|
|
2264
2264
|
Te && pe("over");
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function xe() {
|
|
2267
2267
|
ce && pe("out");
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
function Vt(
|
|
2271
|
-
(
|
|
2270
|
+
function Vt(D, z, H) {
|
|
2271
|
+
(D === z || D === M(z)) && (G = M(z)), (D === null && H || D !== z && D !== M(z)) && (G = D);
|
|
2272
2272
|
}
|
|
2273
|
-
function $t(
|
|
2274
|
-
s.rm(
|
|
2273
|
+
function $t(D) {
|
|
2274
|
+
s.rm(D, "gu-hide");
|
|
2275
2275
|
}
|
|
2276
|
-
function At(
|
|
2277
|
-
ae.dragging && s.add(
|
|
2276
|
+
function At(D) {
|
|
2277
|
+
ae.dragging && s.add(D, "gu-hide");
|
|
2278
2278
|
}
|
|
2279
2279
|
function zt() {
|
|
2280
|
-
|
|
2280
|
+
T || (T = document.createElement("div"), T.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", T.innerHTML = U.getMirrorText && U.getMirrorText(V) || "控件", s.add(T, "gu-mirror"), U.mirrorContainer.appendChild(T), d(h, "add", "mousemove", Ne), s.add(U.mirrorContainer, "gu-unselectable"), ae.emit("cloned", T, V, "mirror"));
|
|
2281
2281
|
}
|
|
2282
2282
|
function Ht() {
|
|
2283
|
-
if (X = document.createElement("div"), s.add(X, "gu-insertion"),
|
|
2284
|
-
var
|
|
2285
|
-
X.style.left =
|
|
2283
|
+
if (X = document.createElement("div"), s.add(X, "gu-insertion"), V) {
|
|
2284
|
+
var D = V.getBoundingClientRect();
|
|
2285
|
+
X.style.left = D.left + "px", X.style.top = D.top + "px";
|
|
2286
2286
|
}
|
|
2287
2287
|
le = !1, U.mirrorContainer.appendChild(X);
|
|
2288
2288
|
}
|
|
2289
2289
|
function Wt() {
|
|
2290
|
-
|
|
2290
|
+
T && (s.rm(U.mirrorContainer, "gu-unselectable"), d(h, "remove", "mousemove", Ne), b(T).removeChild(T), T = null);
|
|
2291
2291
|
}
|
|
2292
2292
|
function qt() {
|
|
2293
2293
|
X && (b(X).removeChild(X), X = null);
|
|
2294
2294
|
}
|
|
2295
|
-
function Ft(
|
|
2296
|
-
for (var H =
|
|
2295
|
+
function Ft(D, z) {
|
|
2296
|
+
for (var H = z; H !== D && b(H) !== D; )
|
|
2297
2297
|
H = b(H);
|
|
2298
2298
|
return H === h ? null : H;
|
|
2299
2299
|
}
|
|
2300
|
-
function yt(
|
|
2301
|
-
if (!
|
|
2300
|
+
function yt(D, z) {
|
|
2301
|
+
if (!z)
|
|
2302
2302
|
return le;
|
|
2303
|
-
var H =
|
|
2303
|
+
var H = D || z && z.lastElementChild;
|
|
2304
2304
|
if (!H)
|
|
2305
2305
|
return !0;
|
|
2306
|
-
var
|
|
2306
|
+
var Y = getComputedStyle(D), K = /^inline/.test(Y.getPropertyValue("display")) || /^(left|right)$/.test(Y.getPropertyValue("float"));
|
|
2307
2307
|
if (K)
|
|
2308
2308
|
return !0;
|
|
2309
|
-
if (
|
|
2310
|
-
var te = getComputedStyle(
|
|
2309
|
+
if (z) {
|
|
2310
|
+
var te = getComputedStyle(z), Te = te.getPropertyValue("display");
|
|
2311
2311
|
if (/flex$/.test(Te)) {
|
|
2312
2312
|
var Ce = te.getPropertyValue("flex-direction") || "row";
|
|
2313
2313
|
if (Ce === "row" || Ce === "row-reverse")
|
|
2314
|
-
return !Gt(
|
|
2314
|
+
return !Gt(z);
|
|
2315
2315
|
}
|
|
2316
2316
|
return !1;
|
|
2317
2317
|
}
|
|
2318
2318
|
return !0;
|
|
2319
2319
|
}
|
|
2320
|
-
function Gt(
|
|
2321
|
-
if (!
|
|
2320
|
+
function Gt(D) {
|
|
2321
|
+
if (!D.children || !D.children.length)
|
|
2322
2322
|
return !1;
|
|
2323
|
-
for (const
|
|
2324
|
-
const
|
|
2325
|
-
if (!
|
|
2323
|
+
for (const z of Array.from(D.children)) {
|
|
2324
|
+
const Y = (z.className && z.className.split(" ") || []).filter((K) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(K));
|
|
2325
|
+
if (!Y.length)
|
|
2326
2326
|
return !1;
|
|
2327
|
-
for (const K of
|
|
2327
|
+
for (const K of Y) {
|
|
2328
2328
|
const te = K.slice(K.lastIndexOf("-") + 1);
|
|
2329
2329
|
if (parseInt(te, 10) !== 12)
|
|
2330
2330
|
return !1;
|
|
@@ -2332,118 +2332,118 @@ var zl = { exports: {} };
|
|
|
2332
2332
|
}
|
|
2333
2333
|
return !0;
|
|
2334
2334
|
}
|
|
2335
|
-
function Ut(
|
|
2336
|
-
const H =
|
|
2335
|
+
function Ut(D, z) {
|
|
2336
|
+
const H = z.getBoundingClientRect();
|
|
2337
2337
|
if (X.style.left = H.left + "px", X.style.top = H.top + "px", le) {
|
|
2338
|
-
if (X.style.height = H.height + "px", X.style.width = "4px",
|
|
2339
|
-
const
|
|
2340
|
-
|
|
2338
|
+
if (X.style.height = H.height + "px", X.style.width = "4px", D) {
|
|
2339
|
+
const Y = D.getBoundingClientRect();
|
|
2340
|
+
Y.top !== H.top && (X.style.left = Y.right + "px", X.style.top = Y.top + "px", X.style.height = Y.height + "px");
|
|
2341
2341
|
}
|
|
2342
2342
|
} else if (X.style.height = "4px", X.style.width = H.width + "px", ne) {
|
|
2343
|
-
const
|
|
2344
|
-
H.top <
|
|
2343
|
+
const Y = ne.getBoundingClientRect();
|
|
2344
|
+
H.top < Y.top && (X.style.display = "none");
|
|
2345
2345
|
}
|
|
2346
|
-
|
|
2346
|
+
z === V && V && (X.style.display = "none");
|
|
2347
2347
|
}
|
|
2348
|
-
function _t(
|
|
2348
|
+
function _t(D) {
|
|
2349
2349
|
G = null;
|
|
2350
|
-
var
|
|
2351
|
-
if (
|
|
2352
|
-
var H =
|
|
2353
|
-
le ? (X.style.left = H.right + "px", X.style.top = H.top + "px", X.style.height = H.height + "px", X.style.width = "4px") : (X.style.left = H.left + "px", X.style.top = H.bottom + "px", X.style.height = "4px", X.style.width = H.width + "px"),
|
|
2350
|
+
var z = D.lastElementChild;
|
|
2351
|
+
if (z) {
|
|
2352
|
+
var H = z.getBoundingClientRect();
|
|
2353
|
+
le ? (X.style.left = H.right + "px", X.style.top = H.top + "px", X.style.height = H.height + "px", X.style.width = "4px") : (X.style.left = H.left + "px", X.style.top = H.bottom + "px", X.style.height = "4px", X.style.width = H.width + "px"), z === V && V && (X.style.display = "none");
|
|
2354
2354
|
} else
|
|
2355
2355
|
X.style.display = "none";
|
|
2356
2356
|
}
|
|
2357
|
-
function Yt(
|
|
2358
|
-
if (!U.mirrorContainer.contains(
|
|
2357
|
+
function Yt(D, z) {
|
|
2358
|
+
if (!U.mirrorContainer.contains(D) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ne = r(D), !ne || !ne.contains(D)))
|
|
2359
2359
|
return;
|
|
2360
|
-
const H = document.querySelector(".dgComponentSelected"),
|
|
2361
|
-
if (
|
|
2360
|
+
const H = document.querySelector(".dgComponentSelected"), Y = ne.getBoundingClientRect();
|
|
2361
|
+
if (z - 30 < Y.top && ne.scrollTop > 0) {
|
|
2362
2362
|
let K = ne.scrollTop < 10 ? ne.scrollTop : 10;
|
|
2363
2363
|
ne.scrollBy(0, -1 * K), H && ne.contains(H) && (de = de + -1 * K);
|
|
2364
2364
|
}
|
|
2365
|
-
if (
|
|
2365
|
+
if (z + 30 > Y.bottom && ne.scrollTop < ne.scrollHeight - ne.clientHeight) {
|
|
2366
2366
|
const K = ne.scrollHeight - ne.clientHeight - ne.scrollTop;
|
|
2367
2367
|
let te = K < 10 ? K : 10;
|
|
2368
2368
|
ne.scrollBy(0, te), H && ne.contains(H) && (de = de + te);
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
|
-
function Tt(
|
|
2372
|
-
var K = U.direction === "horizontal", te = U.direction === "mixed", Te =
|
|
2371
|
+
function Tt(D, z, H, Y) {
|
|
2372
|
+
var K = U.direction === "horizontal", te = U.direction === "mixed", Te = z !== D ? Se() : Ce();
|
|
2373
2373
|
return Te;
|
|
2374
2374
|
function Ce() {
|
|
2375
|
-
var pe =
|
|
2375
|
+
var pe = D.children.length, Ee, xe, he;
|
|
2376
2376
|
for (Ee = 0; Ee < pe; Ee++)
|
|
2377
|
-
if (
|
|
2378
|
-
return
|
|
2377
|
+
if (xe = D.children[Ee], he = xe.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 xe;
|
|
2379
2379
|
return null;
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2382
|
-
var pe =
|
|
2381
|
+
function Se() {
|
|
2382
|
+
var pe = z.getBoundingClientRect();
|
|
2383
2383
|
if (te) {
|
|
2384
|
-
var Ee =
|
|
2385
|
-
return le ? gt = vt <
|
|
2384
|
+
var Ee = Y - pe.top, xe = H - pe.left, he = pe.bottom - Y, vt = pe.right - H, ht = Math.min(xe, vt, Ee, he), gt;
|
|
2385
|
+
return le ? gt = vt < xe : gt = he === ht || vt === ht || xe === ht, Me(gt);
|
|
2386
2386
|
}
|
|
2387
|
-
return Me(K ? H > pe.left + B(pe) / 2 :
|
|
2387
|
+
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + O(pe) / 2);
|
|
2388
2388
|
}
|
|
2389
2389
|
function Me(pe) {
|
|
2390
|
-
return pe ? M(
|
|
2390
|
+
return pe ? M(z) : z;
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
|
-
function Xt(
|
|
2394
|
-
return typeof U.copy == "boolean" ? U.copy : U.copy(
|
|
2393
|
+
function Xt(D, z) {
|
|
2394
|
+
return typeof U.copy == "boolean" ? U.copy : U.copy(D, z);
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
|
-
function r(
|
|
2398
|
-
const
|
|
2399
|
-
if (
|
|
2400
|
-
const
|
|
2401
|
-
return document.getElementById(
|
|
2397
|
+
function r(E) {
|
|
2398
|
+
const F = Array.from(window.scrollContainerList);
|
|
2399
|
+
if (F.length === 1) {
|
|
2400
|
+
const T = Array.from(window.scrollContainerList)[0];
|
|
2401
|
+
return document.getElementById(T);
|
|
2402
2402
|
}
|
|
2403
|
-
const S = m(
|
|
2404
|
-
for (const
|
|
2405
|
-
if (
|
|
2406
|
-
return
|
|
2403
|
+
const S = m(F);
|
|
2404
|
+
for (const T of S)
|
|
2405
|
+
if (T.contains(E))
|
|
2406
|
+
return T;
|
|
2407
2407
|
return null;
|
|
2408
2408
|
}
|
|
2409
|
-
function m(
|
|
2410
|
-
const
|
|
2411
|
-
return
|
|
2412
|
-
const
|
|
2413
|
-
|
|
2414
|
-
}),
|
|
2409
|
+
function m(E) {
|
|
2410
|
+
const F = [];
|
|
2411
|
+
return E.forEach((S) => {
|
|
2412
|
+
const T = document.getElementById(S);
|
|
2413
|
+
T && F.push(T);
|
|
2414
|
+
}), F.sort((S, T) => S.contains(T) ? 1 : T.contains(S) ? -1 : 0), F;
|
|
2415
2415
|
}
|
|
2416
|
-
function d(
|
|
2417
|
-
var
|
|
2416
|
+
function d(E, F, S, T) {
|
|
2417
|
+
var P = {
|
|
2418
2418
|
mouseup: "touchend",
|
|
2419
2419
|
mousedown: "touchstart",
|
|
2420
2420
|
mousemove: "touchmove"
|
|
2421
|
-
},
|
|
2421
|
+
}, V = {
|
|
2422
2422
|
mouseup: "pointerup",
|
|
2423
2423
|
mousedown: "pointerdown",
|
|
2424
2424
|
mousemove: "pointermove"
|
|
2425
|
-
},
|
|
2425
|
+
}, _ = {
|
|
2426
2426
|
mouseup: "MSPointerUp",
|
|
2427
2427
|
mousedown: "MSPointerDown",
|
|
2428
2428
|
mousemove: "MSPointerMove"
|
|
2429
2429
|
};
|
|
2430
|
-
l.navigator.pointerEnabled ? u[
|
|
2430
|
+
l.navigator.pointerEnabled ? u[F](E, V[S], T) : l.navigator.msPointerEnabled ? u[F](E, _[S], T) : (u[F](E, P[S], T), u[F](E, S, T));
|
|
2431
2431
|
}
|
|
2432
|
-
function g(
|
|
2433
|
-
if (
|
|
2434
|
-
return
|
|
2435
|
-
if (
|
|
2436
|
-
return
|
|
2437
|
-
if (
|
|
2438
|
-
return
|
|
2439
|
-
var
|
|
2440
|
-
if (
|
|
2441
|
-
return
|
|
2432
|
+
function g(E) {
|
|
2433
|
+
if (E.touches !== void 0)
|
|
2434
|
+
return E.touches.length;
|
|
2435
|
+
if (E.which !== void 0 && E.which !== 0)
|
|
2436
|
+
return E.which;
|
|
2437
|
+
if (E.buttons !== void 0)
|
|
2438
|
+
return E.buttons;
|
|
2439
|
+
var F = E.button;
|
|
2440
|
+
if (F !== void 0)
|
|
2441
|
+
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2442
2442
|
}
|
|
2443
|
-
function p(
|
|
2444
|
-
|
|
2445
|
-
var
|
|
2446
|
-
return
|
|
2443
|
+
function p(E, F, S) {
|
|
2444
|
+
E = E || {};
|
|
2445
|
+
var T = E.className || "", P;
|
|
2446
|
+
return E.className += " gu-hide", P = c.elementFromPoint(F, S), E.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(E) {
|
|
2455
|
+
return E.width || E.right - E.left;
|
|
2456
2456
|
}
|
|
2457
|
-
function O(
|
|
2458
|
-
return
|
|
2457
|
+
function O(E) {
|
|
2458
|
+
return E.height || E.bottom - E.top;
|
|
2459
2459
|
}
|
|
2460
|
-
function b(
|
|
2461
|
-
return
|
|
2460
|
+
function b(E) {
|
|
2461
|
+
return E.parentNode === c ? null : E.parentNode;
|
|
2462
2462
|
}
|
|
2463
|
-
function y(
|
|
2464
|
-
return
|
|
2463
|
+
function y(E) {
|
|
2464
|
+
return E.tagName === "INPUT" || E.tagName === "TEXTAREA" || E.tagName === "SELECT" || x(E);
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
return !
|
|
2466
|
+
function x(E) {
|
|
2467
|
+
return !E || E.contentEditable === "false" ? !1 : E.contentEditable === "true" ? !0 : x(b(E));
|
|
2468
2468
|
}
|
|
2469
|
-
function M(
|
|
2470
|
-
return
|
|
2471
|
-
function
|
|
2472
|
-
var S =
|
|
2469
|
+
function M(E) {
|
|
2470
|
+
return E.nextElementSibling || F();
|
|
2471
|
+
function F() {
|
|
2472
|
+
var S = E;
|
|
2473
2473
|
do
|
|
2474
2474
|
S = S.nextSibling;
|
|
2475
2475
|
while (S && S.nodeType !== 1);
|
|
2476
2476
|
return S;
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
|
-
function I(
|
|
2480
|
-
return
|
|
2479
|
+
function I(E) {
|
|
2480
|
+
return E.targetTouches && E.targetTouches.length ? E.targetTouches[0] : E.changedTouches && E.changedTouches.length ? E.changedTouches[0] : E;
|
|
2481
2481
|
}
|
|
2482
|
-
function R(
|
|
2483
|
-
var S = I(
|
|
2482
|
+
function R(E, F) {
|
|
2483
|
+
var S = I(F), T = {
|
|
2484
2484
|
pageX: "clientX",
|
|
2485
2485
|
// IE8
|
|
2486
2486
|
pageY: "clientY"
|
|
2487
2487
|
// IE8
|
|
2488
2488
|
};
|
|
2489
|
-
return
|
|
2489
|
+
return E in T && !(E in S) && T[E] in S && (E = T[E]), S[E];
|
|
2490
2490
|
}
|
|
2491
2491
|
a.exports = f;
|
|
2492
2492
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2549,61 +2549,61 @@ 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, x, M) {
|
|
2553
|
+
return b.addEventListener(y, x, M);
|
|
2554
2554
|
}
|
|
2555
|
-
function m(b, y,
|
|
2556
|
-
return b.attachEvent("on" + y, k(b, y,
|
|
2555
|
+
function m(b, y, x) {
|
|
2556
|
+
return b.attachEvent("on" + y, k(b, y, x));
|
|
2557
2557
|
}
|
|
2558
|
-
function d(b, y,
|
|
2559
|
-
return b.removeEventListener(y,
|
|
2558
|
+
function d(b, y, x, M) {
|
|
2559
|
+
return b.removeEventListener(y, x, M);
|
|
2560
2560
|
}
|
|
2561
|
-
function g(b, y,
|
|
2562
|
-
var M = B(b, y,
|
|
2561
|
+
function g(b, y, x) {
|
|
2562
|
+
var M = B(b, y, x);
|
|
2563
2563
|
if (M)
|
|
2564
2564
|
return b.detachEvent("on" + y, M);
|
|
2565
2565
|
}
|
|
2566
|
-
function p(b, y,
|
|
2566
|
+
function p(b, y, x) {
|
|
2567
2567
|
var M = u.indexOf(y) === -1 ? R() : I();
|
|
2568
2568
|
b.dispatchEvent ? b.dispatchEvent(M) : b.fireEvent("on" + y, M);
|
|
2569
2569
|
function I() {
|
|
2570
|
-
var
|
|
2571
|
-
return s.createEvent ? (
|
|
2570
|
+
var E;
|
|
2571
|
+
return s.createEvent ? (E = s.createEvent("Event"), E.initEvent(y, !0, !0)) : s.createEventObject && (E = s.createEventObject()), E;
|
|
2572
2572
|
}
|
|
2573
2573
|
function R() {
|
|
2574
|
-
return new i(y, { detail:
|
|
2574
|
+
return new i(y, { detail: x });
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
|
-
function w(b, y,
|
|
2577
|
+
function w(b, y, x) {
|
|
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, x.call(b, R);
|
|
2585
2585
|
};
|
|
2586
2586
|
}
|
|
2587
|
-
function k(b, y,
|
|
2588
|
-
var M = B(b, y,
|
|
2587
|
+
function k(b, y, x) {
|
|
2588
|
+
var M = B(b, y, x) || w(b, y, x);
|
|
2589
2589
|
return f.push({
|
|
2590
2590
|
wrapper: M,
|
|
2591
2591
|
element: b,
|
|
2592
2592
|
type: y,
|
|
2593
|
-
fn:
|
|
2593
|
+
fn: x
|
|
2594
2594
|
}), M;
|
|
2595
2595
|
}
|
|
2596
|
-
function B(b, y,
|
|
2597
|
-
var M = O(b, y,
|
|
2596
|
+
function B(b, y, x) {
|
|
2597
|
+
var M = O(b, y, x);
|
|
2598
2598
|
if (M) {
|
|
2599
2599
|
var I = f[M].wrapper;
|
|
2600
2600
|
return f.splice(M, 1), I;
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
function O(b, y,
|
|
2603
|
+
function O(b, y, x) {
|
|
2604
2604
|
var M, I;
|
|
2605
2605
|
for (M = 0; M < f.length; M++)
|
|
2606
|
-
if (I = f[M], I.element === b && I.type === y && I.fn ===
|
|
2606
|
+
if (I = f[M], I.element === b && I.type === y && I.fn === x)
|
|
2607
2607
|
return M;
|
|
2608
2608
|
}
|
|
2609
2609
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2809,7 +2809,7 @@ const Hl = {
|
|
|
2809
2809
|
const {
|
|
2810
2810
|
locale: n,
|
|
2811
2811
|
t: a
|
|
2812
|
-
} =
|
|
2812
|
+
} = St(), o = C(e.animate), l = "fadeOut", i = N(() => e.options), u = C(!1), s = N(() => i.value.title && i.value.message), c = N(() => !i.value.title && i.value.message), h = N(() => {
|
|
2813
2813
|
const O = {
|
|
2814
2814
|
animated: u.value,
|
|
2815
2815
|
toast: !0,
|
|
@@ -2817,10 +2817,10 @@ const Hl = {
|
|
|
2817
2817
|
};
|
|
2818
2818
|
return O[e.animate] = !1, O[l] = u.value, O["toasty-type-" + i.value.type] = !0, i.value.theme && (O[i.value.theme] = !0), O;
|
|
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"}`, x = {
|
|
2821
2821
|
"f-icon": !0
|
|
2822
2822
|
};
|
|
2823
|
-
return
|
|
2823
|
+
return x[y] = !0, x;
|
|
2824
2824
|
}), r = N(() => i.value.title || i.value.message), m = N(() => e.showCloseButton), d = N(() => !!i.value.buttons || !!t.slots.default), g = N(() => n.value === "en" ? {
|
|
2825
2825
|
wordBreak: "keep-all",
|
|
2826
2826
|
overflowWrap: "break-word"
|
|
@@ -3217,31 +3217,31 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3217
3217
|
} = i, {
|
|
3218
3218
|
gridDataStyle: b,
|
|
3219
3219
|
leftFixedGridDataStyle: y,
|
|
3220
|
-
rightFixedGridDataStyle:
|
|
3220
|
+
rightFixedGridDataStyle: x
|
|
3221
3221
|
} = m, {
|
|
3222
3222
|
renderDataRow: M
|
|
3223
3223
|
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [M];
|
|
3224
|
-
function R(
|
|
3225
|
-
const
|
|
3226
|
-
return p.value.filter((
|
|
3224
|
+
function R(P, V) {
|
|
3225
|
+
const _ = w(P);
|
|
3226
|
+
return p.value.filter((L) => L.visible !== !1).map((L, j) => I[L.type](L, _, V, j));
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function E() {
|
|
3229
3229
|
return v("div", {
|
|
3230
3230
|
ref: a,
|
|
3231
3231
|
class: "fv-grid-content-left-fixed"
|
|
3232
3232
|
}, [v("div", {
|
|
3233
3233
|
class: "fv-grid-data",
|
|
3234
3234
|
style: y.value
|
|
3235
|
-
}, [R(k.value.leftColumns.filter((
|
|
3235
|
+
}, [R(k.value.leftColumns.filter((P) => P.visible), "left")])]);
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3237
|
+
function F() {
|
|
3238
3238
|
return v("div", {
|
|
3239
3239
|
ref: n,
|
|
3240
3240
|
class: "fv-grid-content-primary"
|
|
3241
3241
|
}, [v("div", {
|
|
3242
3242
|
class: "fv-grid-data",
|
|
3243
3243
|
style: b.value
|
|
3244
|
-
}, [R(k.value.primaryColumns.filter((
|
|
3244
|
+
}, [R(k.value.primaryColumns.filter((P) => P.visible), "primary")])]);
|
|
3245
3245
|
}
|
|
3246
3246
|
function S() {
|
|
3247
3247
|
return v("div", {
|
|
@@ -3249,15 +3249,15 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3249
3249
|
class: "fv-grid-content-right-fixed"
|
|
3250
3250
|
}, [v("div", {
|
|
3251
3251
|
class: "fv-grid-data",
|
|
3252
|
-
style:
|
|
3253
|
-
}, [R(k.value.rightColumns.filter((
|
|
3252
|
+
style: x.value
|
|
3253
|
+
}, [R(k.value.rightColumns.filter((P) => P.visible), "right")])]);
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3256
|
-
const
|
|
3257
|
-
return B.value &&
|
|
3255
|
+
function T() {
|
|
3256
|
+
const P = [];
|
|
3257
|
+
return B.value && P.push(E()), P.push(F()), O.value && P.push(S()), P;
|
|
3258
3258
|
}
|
|
3259
3259
|
return {
|
|
3260
|
-
renderDataArea:
|
|
3260
|
+
renderDataArea: T
|
|
3261
3261
|
};
|
|
3262
3262
|
}
|
|
3263
3263
|
const _l = /* @__PURE__ */ oe({
|
|
@@ -3274,18 +3274,18 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3274
3274
|
showLoading: O,
|
|
3275
3275
|
renderLoading: b
|
|
3276
3276
|
} = Za(e, s), y = Ka(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3277
|
-
dataView:
|
|
3277
|
+
dataView: x
|
|
3278
3278
|
} = y, M = eo(e, y, i, m, t), {
|
|
3279
3279
|
showSelection: I,
|
|
3280
3280
|
selectedValues: R
|
|
3281
|
-
} = M,
|
|
3282
|
-
shouldRenderPagination:
|
|
3283
|
-
} =
|
|
3284
|
-
containerStyleObject:
|
|
3285
|
-
} = ao(e),
|
|
3286
|
-
applyCommands:
|
|
3287
|
-
} =
|
|
3288
|
-
|
|
3281
|
+
} = M, E = to(e, m, y, i, M, t), F = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), T = no(e, y), {
|
|
3282
|
+
shouldRenderPagination: P
|
|
3283
|
+
} = T, {
|
|
3284
|
+
containerStyleObject: V
|
|
3285
|
+
} = ao(e), _ = oo(e), {
|
|
3286
|
+
applyCommands: L
|
|
3287
|
+
} = _;
|
|
3288
|
+
L(l);
|
|
3289
3289
|
const {
|
|
3290
3290
|
applyColumnSetting: j,
|
|
3291
3291
|
removeColumnSetting: G
|
|
@@ -3310,7 +3310,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3310
3310
|
updateVisibleRowsOnLatestVisibleScope: mt
|
|
3311
3311
|
} = se, Qe = bo(e, ve, c, Oe, le), {
|
|
3312
3312
|
calculateColumnsSize: Pe
|
|
3313
|
-
} = Qe, We = Co(), st = wo(c, r, y, We, se), ut = ko(e, t, W, y, le, p, se),
|
|
3313
|
+
} = Qe, We = Co(), st = wo(c, r, y, We, se), ut = ko(e, t, W, y, le, p, se), $ = N(() => {
|
|
3314
3314
|
const q = {
|
|
3315
3315
|
"fv-grid": !0,
|
|
3316
3316
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -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, M,
|
|
3327
|
+
} = Ul(e, t, h, f, r, it, W, y, ne, k, de, M, E, se, $e, U, m), {
|
|
3328
3328
|
renderGridHeader: fe,
|
|
3329
3329
|
renderGridColumnResizeOverlay: Ne,
|
|
3330
3330
|
shouldShowHeader: Vt
|
|
3331
|
-
} =
|
|
3331
|
+
} = So(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, M, Je, ee, se, Oe, m), {
|
|
3332
3332
|
renderDataGridSidebar: $t
|
|
3333
|
-
} =
|
|
3333
|
+
} = xo(e, de, M, Je, se), {
|
|
3334
3334
|
renderDisableMask: At
|
|
3335
3335
|
} = Fo(), {
|
|
3336
3336
|
renderHorizontalScrollbar: zt
|
|
@@ -3375,7 +3375,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3375
3375
|
y.insertNewChildDataItems(q, ge);
|
|
3376
3376
|
}
|
|
3377
3377
|
function Yt() {
|
|
3378
|
-
const q = yt(), J =
|
|
3378
|
+
const q = yt(), J = E.getNextSelectableHierarchyItemId(q);
|
|
3379
3379
|
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && M.selectItemById(J);
|
|
3380
3380
|
}
|
|
3381
3381
|
function Tt(q) {
|
|
@@ -3384,19 +3384,19 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3384
3384
|
function Xt(q) {
|
|
3385
3385
|
ne.acceptEditingRow(q);
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function D(q) {
|
|
3388
3388
|
ne.cancelEditingRow(q);
|
|
3389
3389
|
}
|
|
3390
|
-
function
|
|
3391
|
-
q && (l.value = q,
|
|
3390
|
+
function z(q) {
|
|
3391
|
+
q && (l.value = q, L(l), X(l.value), ce(y, ee), Pe());
|
|
3392
3392
|
}
|
|
3393
3393
|
Z(() => e.columns, (q) => {
|
|
3394
|
-
|
|
3394
|
+
z(q);
|
|
3395
3395
|
});
|
|
3396
3396
|
function H(q, J) {
|
|
3397
3397
|
q && (y.load(q), y.reOrderVisibleIndex(), J != null && J.keepScrollPosition ? se.scrollTo(se.offsetY.value) : He());
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function Y(q) {
|
|
3400
3400
|
M.selectItemById(q);
|
|
3401
3401
|
}
|
|
3402
3402
|
function K(q) {
|
|
@@ -3412,7 +3412,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3412
3412
|
function Ce() {
|
|
3413
3413
|
return M.getSelectedItems();
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3415
|
+
function Se() {
|
|
3416
3416
|
M.clearSelection();
|
|
3417
3417
|
}
|
|
3418
3418
|
const Me = N(() => !m.value || !m.value.length), {
|
|
@@ -3421,14 +3421,14 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3421
3421
|
function Ee() {
|
|
3422
3422
|
return M.getSelectionRow();
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3424
|
+
function xe(q) {
|
|
3425
3425
|
M.unSelectItemByIds(q);
|
|
3426
3426
|
}
|
|
3427
3427
|
function he() {
|
|
3428
3428
|
return M.currentSelectedDataId.value;
|
|
3429
3429
|
}
|
|
3430
3430
|
function vt(q, J, me) {
|
|
3431
|
-
const ge =
|
|
3431
|
+
const ge = x.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]);
|
|
@@ -3469,7 +3469,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3469
3469
|
return B.value;
|
|
3470
3470
|
}
|
|
3471
3471
|
Z(() => e.showSetting, (q, J) => {
|
|
3472
|
-
q !== J && (q ? j(l) : G(l),
|
|
3472
|
+
q !== J && (q ? j(l) : G(l), z(l.value));
|
|
3473
3473
|
});
|
|
3474
3474
|
function wa(q) {
|
|
3475
3475
|
return m.value.filter((J) => q.includes(J.raw[e.idField]));
|
|
@@ -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
|
-
M.keepSelectingOnPaging.value ||
|
|
3481
|
+
function Sa() {
|
|
3482
|
+
M.keepSelectingOnPaging.value || Se(), y.updateVisibleDataSummary(m.value);
|
|
3483
3483
|
}
|
|
3484
3484
|
t.expose({
|
|
3485
3485
|
activeRowById: te,
|
|
@@ -3491,16 +3491,16 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3491
3491
|
removeDataItem: Yt,
|
|
3492
3492
|
editDataItem: Tt,
|
|
3493
3493
|
acceptDataItem: Xt,
|
|
3494
|
-
cancelDataItem:
|
|
3495
|
-
updateColumns:
|
|
3494
|
+
cancelDataItem: D,
|
|
3495
|
+
updateColumns: z,
|
|
3496
3496
|
updateDataSource: H,
|
|
3497
|
-
selectItemById:
|
|
3497
|
+
selectItemById: Y,
|
|
3498
3498
|
selectItemByIds: Te,
|
|
3499
3499
|
getSelectedItems: Ce,
|
|
3500
|
-
clearSelection:
|
|
3500
|
+
clearSelection: Se,
|
|
3501
3501
|
getSelectionRow: Ee,
|
|
3502
3502
|
clickRowItemById: K,
|
|
3503
|
-
unSelectItemByIds:
|
|
3503
|
+
unSelectItemByIds: xe,
|
|
3504
3504
|
getCurrentRowId: he,
|
|
3505
3505
|
reassignRowData: vt,
|
|
3506
3506
|
hasChildren: ht,
|
|
@@ -3508,20 +3508,20 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3508
3508
|
getCollapseStatusById: gt,
|
|
3509
3509
|
getVisibleDataByIds: wa,
|
|
3510
3510
|
selectRowById: ka,
|
|
3511
|
-
updateDerivedData:
|
|
3511
|
+
updateDerivedData: Sa
|
|
3512
3512
|
});
|
|
3513
|
-
const
|
|
3513
|
+
const xa = 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
|
-
}))
|
|
3520
|
-
|
|
3521
|
-
|
|
3519
|
+
}));
|
|
3520
|
+
Mo(e, t, y, se, T, M);
|
|
3521
|
+
const Ta = N(() => ({
|
|
3522
3522
|
"d-flex": !0,
|
|
3523
|
-
"justify-content-between":
|
|
3524
|
-
"justify-content-end":
|
|
3523
|
+
"justify-content-between": P.value && I.value,
|
|
3524
|
+
"justify-content-end": P.value && !I.value,
|
|
3525
3525
|
"position-relative": !0
|
|
3526
3526
|
})), Ba = N(() => ({
|
|
3527
3527
|
"d-flex": !0,
|
|
@@ -3531,7 +3531,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3531
3531
|
} = Eo(e, y, W);
|
|
3532
3532
|
return () => v("div", {
|
|
3533
3533
|
ref: s,
|
|
3534
|
-
class:
|
|
3534
|
+
class: $.value,
|
|
3535
3535
|
style: Fa.value,
|
|
3536
3536
|
onWheel: pt
|
|
3537
3537
|
}, [c.value && Vt.value && fe(), v("div", {
|
|
@@ -3539,12 +3539,12 @@ 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: xa.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", {
|
|
3546
3546
|
class: Ba.value
|
|
3547
|
-
}, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ne(),
|
|
3547
|
+
}, [v("div", null, ["已选:" + R.value.length, ie(" 条")])])]), Ne(), F.value && At()]);
|
|
3548
3548
|
}
|
|
3549
3549
|
});
|
|
3550
3550
|
Nt(_l);
|
|
@@ -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 E;
|
|
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() {
|
|
@@ -3702,85 +3702,85 @@ function Zn(e, t, n) {
|
|
|
3702
3702
|
function h() {
|
|
3703
3703
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
3704
3704
|
}
|
|
3705
|
-
function f(
|
|
3706
|
-
if (!
|
|
3705
|
+
function f(F) {
|
|
3706
|
+
if (!F || !F.value)
|
|
3707
3707
|
return null;
|
|
3708
|
-
if (
|
|
3709
|
-
return
|
|
3710
|
-
const S = C(
|
|
3711
|
-
return
|
|
3708
|
+
if (F.value.schema && F.value.schema.type === "component")
|
|
3709
|
+
return F.value;
|
|
3710
|
+
const S = C(F == null ? void 0 : F.value.parent), T = f(S);
|
|
3711
|
+
return T || null;
|
|
3712
3712
|
}
|
|
3713
|
-
function r(
|
|
3714
|
-
var
|
|
3713
|
+
function r(F = t) {
|
|
3714
|
+
var V;
|
|
3715
3715
|
if (n != null && n.getDraggableDesignItemElement)
|
|
3716
|
-
return n.getDraggableDesignItemElement(
|
|
3717
|
-
const { componentInstance: S, designerItemElementRef:
|
|
3716
|
+
return n.getDraggableDesignItemElement(F);
|
|
3717
|
+
const { componentInstance: S, designerItemElementRef: T } = F;
|
|
3718
3718
|
if (!S || !S.value)
|
|
3719
3719
|
return null;
|
|
3720
|
-
const { getCustomButtons:
|
|
3721
|
-
return S.value.canMove ||
|
|
3720
|
+
const { getCustomButtons: P } = S.value;
|
|
3721
|
+
return S.value.canMove || P && ((V = P()) != null && V.length) ? T : r(F.parent);
|
|
3722
3722
|
}
|
|
3723
|
-
function m(
|
|
3724
|
-
return !!n && n.canAccepts(
|
|
3723
|
+
function m(F) {
|
|
3724
|
+
return !!n && n.canAccepts(F);
|
|
3725
3725
|
}
|
|
3726
3726
|
function d() {
|
|
3727
3727
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
3728
3728
|
}
|
|
3729
3729
|
function g() {
|
|
3730
3730
|
}
|
|
3731
|
-
function p(
|
|
3732
|
-
var
|
|
3733
|
-
!
|
|
3731
|
+
function p(F, S) {
|
|
3732
|
+
var T;
|
|
3733
|
+
!F || !S || (n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(F, S), (T = t == null ? void 0 : t.setupContext) == null || T.emit("dragEnd"));
|
|
3734
3734
|
}
|
|
3735
|
-
function w(
|
|
3736
|
-
const { componentType:
|
|
3737
|
-
let
|
|
3738
|
-
n && n.onResolveNewComponentSchema && (
|
|
3739
|
-
const
|
|
3740
|
-
return
|
|
3735
|
+
function w(F, S) {
|
|
3736
|
+
const { componentType: T } = F;
|
|
3737
|
+
let P = La(T, F, S);
|
|
3738
|
+
n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(F, P));
|
|
3739
|
+
const V = T.toLowerCase().replace(/-/g, "_");
|
|
3740
|
+
return P && !P.id && P.type === T && (P.id = `${V}_${Math.random().toString().slice(2, 6)}`), P;
|
|
3741
3741
|
}
|
|
3742
|
-
function k(
|
|
3743
|
-
|
|
3742
|
+
function k(F) {
|
|
3743
|
+
F && n != null && n.onChildElementMovedOut && n.onChildElementMovedOut(F);
|
|
3744
3744
|
}
|
|
3745
|
-
function B(...
|
|
3745
|
+
function B(...F) {
|
|
3746
3746
|
if (n && n.getPropsConfig)
|
|
3747
|
-
return n.getPropsConfig(...
|
|
3747
|
+
return n.getPropsConfig(...F);
|
|
3748
3748
|
}
|
|
3749
|
-
function O(
|
|
3750
|
-
if (!
|
|
3749
|
+
function O(F) {
|
|
3750
|
+
if (!F)
|
|
3751
3751
|
return;
|
|
3752
|
-
const S = t == null ? void 0 : t.schema, { formSchemaUtils:
|
|
3753
|
-
if (S &&
|
|
3754
|
-
const
|
|
3755
|
-
|
|
3752
|
+
const S = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
|
|
3753
|
+
if (S && T.getExpressions().length) {
|
|
3754
|
+
const P = T.getExpressions().findIndex((V) => V.target === S.id);
|
|
3755
|
+
P > -1 && T.getExpressions().splice(P, 1);
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
|
-
function b(
|
|
3759
|
-
if (!
|
|
3758
|
+
function b(F) {
|
|
3759
|
+
if (!F || !(t != null && t.schema))
|
|
3760
3760
|
return;
|
|
3761
|
-
const S = t.schema, { formSchemaUtils:
|
|
3762
|
-
|
|
3763
|
-
}
|
|
3764
|
-
function y(
|
|
3765
|
-
n && n.onRemoveComponent && n.onRemoveComponent(), O(
|
|
3766
|
-
let
|
|
3767
|
-
S.type === "component-ref" && (
|
|
3768
|
-
const
|
|
3769
|
-
|
|
3770
|
-
var
|
|
3771
|
-
(
|
|
3761
|
+
const S = t.schema, { formSchemaUtils: T } = F;
|
|
3762
|
+
T.removeCommunicationInComponent(S);
|
|
3763
|
+
}
|
|
3764
|
+
function y(F) {
|
|
3765
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), O(F), b(F), t != null && t.schema.contents && t.schema.contents.map((S) => {
|
|
3766
|
+
let T = S.id;
|
|
3767
|
+
S.type === "component-ref" && (T = S.component);
|
|
3768
|
+
const P = e.value.querySelectorAll(`#${T}-design-item`);
|
|
3769
|
+
P != null && P.length && Array.from(P).map((V) => {
|
|
3770
|
+
var _;
|
|
3771
|
+
(_ = V == null ? void 0 : V.componentInstance) != null && _.value.onRemoveComponent && V.componentInstance.value.onRemoveComponent(F);
|
|
3772
3772
|
});
|
|
3773
3773
|
});
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function x() {
|
|
3776
3776
|
if (n && n.getCustomButtons)
|
|
3777
3777
|
return n.getCustomButtons();
|
|
3778
3778
|
}
|
|
3779
|
-
function M(
|
|
3780
|
-
var
|
|
3781
|
-
if (!((
|
|
3779
|
+
function M(F) {
|
|
3780
|
+
var T, P;
|
|
3781
|
+
if (!((T = t == null ? void 0 : t.schema) != null && T.id))
|
|
3782
3782
|
return;
|
|
3783
|
-
if (!i &&
|
|
3783
|
+
if (!i && F && (i = F.formSchemaUtils), n != null && n.setComponentBasicInfoMap) {
|
|
3784
3784
|
n.setComponentBasicInfoMap();
|
|
3785
3785
|
return;
|
|
3786
3786
|
}
|
|
@@ -3788,31 +3788,31 @@ function Zn(e, t, n) {
|
|
|
3788
3788
|
if (n != null && n.getComponentTitle)
|
|
3789
3789
|
S = n.getComponentTitle();
|
|
3790
3790
|
else {
|
|
3791
|
-
const { text:
|
|
3792
|
-
S =
|
|
3791
|
+
const { text: V, title: _, label: L, mainTitle: j, name: G, type: W } = t.schema;
|
|
3792
|
+
S = V || _ || L || j || G || ((P = A[W]) == null ? void 0 : P.name);
|
|
3793
3793
|
}
|
|
3794
3794
|
S && i.getControlBasicInfoMap().set(t.schema.id, {
|
|
3795
3795
|
componentTitle: S,
|
|
3796
3796
|
parentPathName: S
|
|
3797
3797
|
});
|
|
3798
3798
|
}
|
|
3799
|
-
function I(
|
|
3800
|
-
var
|
|
3801
|
-
const { changeObject: S } =
|
|
3802
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((
|
|
3803
|
-
const
|
|
3799
|
+
function I(F) {
|
|
3800
|
+
var V;
|
|
3801
|
+
const { changeObject: S } = F, { propertyID: T, propertyValue: P } = S;
|
|
3802
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((V = F == null ? void 0 : F.changeObject) == null ? void 0 : V.propertyID) && T && P && (M(), i)) {
|
|
3803
|
+
const _ = i.getControlBasicInfoMap(), L = _.keys().toArray().filter((j) => {
|
|
3804
3804
|
var G, W;
|
|
3805
|
-
return ((G =
|
|
3805
|
+
return ((G = _.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
3806
3806
|
});
|
|
3807
|
-
|
|
3808
|
-
const G =
|
|
3809
|
-
G[0] =
|
|
3807
|
+
L != null && L.length && L.forEach((j) => {
|
|
3808
|
+
const G = _.get(j).parentPathName.split(" > ");
|
|
3809
|
+
G[0] = P, _.get(j).parentPathName = G.join(" > ");
|
|
3810
3810
|
});
|
|
3811
3811
|
}
|
|
3812
3812
|
}
|
|
3813
|
-
function R(
|
|
3814
|
-
if (I(
|
|
3815
|
-
return n.onPropertyChanged(
|
|
3813
|
+
function R(F) {
|
|
3814
|
+
if (I(F), n && n.onPropertyChanged)
|
|
3815
|
+
return n.onPropertyChanged(F);
|
|
3816
3816
|
}
|
|
3817
3817
|
return l.value = {
|
|
3818
3818
|
canMove: u(),
|
|
@@ -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: (E = t == null ? void 0 : t.parent) == null ? void 0 : E.componentInstance,
|
|
3825
3825
|
schema: t == null ? void 0 : t.schema,
|
|
3826
3826
|
styles: a,
|
|
3827
3827
|
designerClass: o,
|
|
@@ -3837,7 +3837,7 @@ function Zn(e, t, n) {
|
|
|
3837
3837
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
3838
3838
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
|
|
3839
3839
|
onRemoveComponent: y,
|
|
3840
|
-
getCustomButtons:
|
|
3840
|
+
getCustomButtons: x,
|
|
3841
3841
|
onPropertyChanged: R,
|
|
3842
3842
|
setComponentBasicInfoMap: M,
|
|
3843
3843
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
@@ -4053,7 +4053,7 @@ const mi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-
|
|
|
4053
4053
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
4054
4054
|
};
|
|
4055
4055
|
Ve(ki, wi, ln, fi);
|
|
4056
|
-
function
|
|
4056
|
+
function Si() {
|
|
4057
4057
|
function e(t, n) {
|
|
4058
4058
|
var i;
|
|
4059
4059
|
if (!t)
|
|
@@ -4062,13 +4062,13 @@ function xi() {
|
|
|
4062
4062
|
if (!a)
|
|
4063
4063
|
return !1;
|
|
4064
4064
|
const o = a.schema.type, l = n == null ? void 0 : n.formSchemaUtils.getComponentById(a.belongedComponentId);
|
|
4065
|
-
return !((t.componentCategory === "input" || t.componentType === "form-group") && ![
|
|
4065
|
+
return !((t.componentCategory === "input" || t.componentType === "form-group") && ![A["response-layout-item"].type, A["response-form"].type, A.fieldset.type].includes(o) || (t.componentType === A.tabs.type || t.componentType === A.section.type) && ((l == null ? void 0 : l.componentType) !== "frame" || ![A["content-container"].type, A["splitter-pane"].type, A["response-layout-item"].type].includes(o)) || [A["query-solution"].type, A["filter-bar"].type].includes(t.componentType) || t.componentType === A.fieldset.type && o !== A["response-form"].type);
|
|
4066
4066
|
}
|
|
4067
4067
|
return {
|
|
4068
4068
|
basalDragulaRuleForContainer: e
|
|
4069
4069
|
};
|
|
4070
4070
|
}
|
|
4071
|
-
const
|
|
4071
|
+
const xi = {
|
|
4072
4072
|
id: { type: String, default: "" },
|
|
4073
4073
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
4074
4074
|
editor: { type: Object, default: {} },
|
|
@@ -4084,7 +4084,7 @@ const Si = {
|
|
|
4084
4084
|
selectOnCreated: { type: Boolean, default: !1 }
|
|
4085
4085
|
};
|
|
4086
4086
|
Ve(
|
|
4087
|
-
|
|
4087
|
+
xi,
|
|
4088
4088
|
Qn,
|
|
4089
4089
|
ln,
|
|
4090
4090
|
void 0
|
|
@@ -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 } = St();
|
|
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(E, F = !0) {
|
|
4664
|
+
n.value = E, F && (t.emit("change", E), t.emit("update:modelValue", E));
|
|
4665
4665
|
}
|
|
4666
|
-
function k(
|
|
4667
|
-
u.value = !1, w(
|
|
4666
|
+
function k(E) {
|
|
4667
|
+
u.value = !1, w(E, !0);
|
|
4668
4668
|
}
|
|
4669
4669
|
Z(
|
|
4670
4670
|
() => e.modelValue,
|
|
4671
|
-
(
|
|
4672
|
-
n.value =
|
|
4671
|
+
(E) => {
|
|
4672
|
+
n.value = E;
|
|
4673
4673
|
}
|
|
4674
4674
|
);
|
|
4675
|
-
function B(
|
|
4676
|
-
m.value = !1, t.emit("blur",
|
|
4675
|
+
function B(E) {
|
|
4676
|
+
m.value = !1, t.emit("blur", E), E.stopPropagation();
|
|
4677
4677
|
}
|
|
4678
|
-
function O(
|
|
4679
|
-
t.emit("click",
|
|
4678
|
+
function O(E) {
|
|
4679
|
+
t.emit("click", E), 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(E) {
|
|
4682
|
+
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", E), i.value && !u.value && o.popup()));
|
|
4683
4683
|
}
|
|
4684
|
-
function y(
|
|
4685
|
-
t.emit("input",
|
|
4686
|
-
const
|
|
4687
|
-
a.value =
|
|
4684
|
+
function y(E) {
|
|
4685
|
+
t.emit("input", E);
|
|
4686
|
+
const F = E.target.value;
|
|
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 x(E) {
|
|
4690
|
+
E.target.tagName !== "INPUT" && E.preventDefault(), E.stopPropagation();
|
|
4691
4691
|
}
|
|
4692
|
-
function M(
|
|
4693
|
-
t.emit("keydown",
|
|
4692
|
+
function M(E) {
|
|
4693
|
+
t.emit("keydown", E);
|
|
4694
4694
|
}
|
|
4695
|
-
function I(
|
|
4696
|
-
|
|
4695
|
+
function I(E) {
|
|
4696
|
+
E.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", E);
|
|
4697
4697
|
}
|
|
4698
|
-
function R(
|
|
4699
|
-
const
|
|
4700
|
-
|
|
4698
|
+
function R(E) {
|
|
4699
|
+
const F = E.target.value;
|
|
4700
|
+
E.stopPropagation(), w(F);
|
|
4701
4701
|
}
|
|
4702
4702
|
return {
|
|
4703
4703
|
hasFocusedTextBox: d,
|
|
@@ -4715,7 +4715,7 @@ function Qi(e, t, n, a, o) {
|
|
|
4715
4715
|
onInput: y,
|
|
4716
4716
|
onKeyDownTextBox: M,
|
|
4717
4717
|
onKeyUpTextBox: I,
|
|
4718
|
-
onMouseDownTextBox:
|
|
4718
|
+
onMouseDownTextBox: x,
|
|
4719
4719
|
onTextBoxValueChange: R
|
|
4720
4720
|
};
|
|
4721
4721
|
}
|
|
@@ -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 x, M;
|
|
4787
|
+
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((M = a.value) == null || M.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), O = (
|
|
4792
|
-
|
|
4793
|
-
}, b = (
|
|
4794
|
-
|
|
4791
|
+
const B = C(!1), O = (x) => {
|
|
4792
|
+
x.preventDefault(), B.value = !0;
|
|
4793
|
+
}, b = (x) => {
|
|
4794
|
+
x.preventDefault(), B.value = !1, f(x);
|
|
4795
4795
|
};
|
|
4796
|
-
function y(
|
|
4797
|
-
B.value || f(
|
|
4796
|
+
function y(x) {
|
|
4797
|
+
B.value || f(x);
|
|
4798
4798
|
}
|
|
4799
4799
|
return () => v("input", {
|
|
4800
4800
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4950,46 +4950,46 @@ 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 = N(() => {
|
|
4954
|
-
const
|
|
4953
|
+
} = p, B = C(!1), O = N(() => {
|
|
4954
|
+
const V = {
|
|
4955
4955
|
"f-button-edit": !0,
|
|
4956
4956
|
"f-cmp-inputgroup": !0,
|
|
4957
4957
|
"f-button-edit-nowrap": !e.wrapText
|
|
4958
4958
|
};
|
|
4959
|
-
return a.value && a.value.split(" ").reduce((
|
|
4960
|
-
}),
|
|
4959
|
+
return a.value && a.value.split(" ").reduce((_, L) => (_[L] = !0, _), V), V;
|
|
4960
|
+
}), b = N(() => ({
|
|
4961
4961
|
overflow: e.wrapText ? "hidden" : ""
|
|
4962
|
-
})),
|
|
4962
|
+
})), y = N(() => ({
|
|
4963
4963
|
paddingLeft: "3px",
|
|
4964
4964
|
backgroundColor: "#fff"
|
|
4965
4965
|
}));
|
|
4966
|
-
function
|
|
4966
|
+
function x() {
|
|
4967
4967
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
4968
4968
|
return 0;
|
|
4969
|
-
let
|
|
4970
|
-
const
|
|
4971
|
-
return
|
|
4969
|
+
let V = 0;
|
|
4970
|
+
const _ = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
4971
|
+
return _ && _.length && (V = _.map((L) => L.offsetTop).filter((L) => L > 20).length), V;
|
|
4972
4972
|
}
|
|
4973
|
-
const
|
|
4973
|
+
const M = C(x());
|
|
4974
4974
|
an(() => {
|
|
4975
|
-
|
|
4975
|
+
M.value = x();
|
|
4976
4976
|
});
|
|
4977
|
-
function
|
|
4978
|
-
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!
|
|
4977
|
+
function I() {
|
|
4978
|
+
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [er(e, o, r)(), !!M.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("+"), M.value])])]) : Ki(e, o, r);
|
|
4984
4984
|
}
|
|
4985
|
-
let
|
|
4985
|
+
let R = I();
|
|
4986
4986
|
Z([() => e.multiSelect, () => e.inputType], () => {
|
|
4987
|
-
|
|
4987
|
+
R = I();
|
|
4988
4988
|
});
|
|
4989
4989
|
const {
|
|
4990
|
-
renderButtonGroup:
|
|
4991
|
-
buttonHandleElement:
|
|
4992
|
-
} = tr(e, t, h, p),
|
|
4990
|
+
renderButtonGroup: E,
|
|
4991
|
+
buttonHandleElement: F
|
|
4992
|
+
} = tr(e, t, h, p), S = nr(e, t, l), T = C(i.value), P = {
|
|
4993
4993
|
displayText: f,
|
|
4994
4994
|
commitValue: d,
|
|
4995
4995
|
elementRef: n,
|
|
@@ -4999,52 +4999,56 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
4999
4999
|
shouldPopupContent: i,
|
|
5000
5000
|
togglePopup: c,
|
|
5001
5001
|
openDialog: () => {
|
|
5002
|
-
|
|
5002
|
+
F.value && e.buttonBehavior === "Modal" && F.value.click();
|
|
5003
5003
|
},
|
|
5004
5004
|
getModal: () => {
|
|
5005
|
-
var
|
|
5006
|
-
return e.buttonBehavior === "Modal" ? (
|
|
5005
|
+
var V;
|
|
5006
|
+
return e.buttonBehavior === "Modal" ? (V = h.modalRef.value) == null ? void 0 : V.value : null;
|
|
5007
5007
|
},
|
|
5008
5008
|
getTextbox: () => {
|
|
5009
|
-
var
|
|
5010
|
-
return (
|
|
5009
|
+
var V;
|
|
5010
|
+
return (V = n.value) == null ? void 0 : V.querySelector("input");
|
|
5011
5011
|
},
|
|
5012
5012
|
forceClosePopup: () => {
|
|
5013
|
-
|
|
5013
|
+
T.value = !1, B.value = !0, i.value = !1;
|
|
5014
5014
|
}
|
|
5015
5015
|
};
|
|
5016
5016
|
return be(() => {
|
|
5017
|
-
n.value.componentInstance =
|
|
5017
|
+
n.value.componentInstance = P, window.onresize = () => {
|
|
5018
5018
|
document.body.click();
|
|
5019
5019
|
};
|
|
5020
5020
|
}), Mn(() => {
|
|
5021
|
-
var
|
|
5022
|
-
window.onresize = null, (
|
|
5023
|
-
}), t.expose(
|
|
5024
|
-
if (
|
|
5021
|
+
var V;
|
|
5022
|
+
window.onresize = null, (V = window[tt]) == null || V.delete(n.value);
|
|
5023
|
+
}), t.expose(P), Z(() => i.value, async (V, _) => {
|
|
5024
|
+
if (B.value) {
|
|
5025
|
+
T.value = V, B.value = !1;
|
|
5026
|
+
return;
|
|
5027
|
+
}
|
|
5028
|
+
if (!V && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
5025
5029
|
try {
|
|
5026
|
-
const
|
|
5027
|
-
|
|
5028
|
-
} catch (
|
|
5029
|
-
console.error("Error in beforeClosePopup:",
|
|
5030
|
+
const L = await e.beforeClosePopup();
|
|
5031
|
+
T.value = !L, (!L || e.readonly) && (i.value = !0);
|
|
5032
|
+
} catch (L) {
|
|
5033
|
+
console.error("Error in beforeClosePopup:", L), T.value = _, i.value = _;
|
|
5030
5034
|
}
|
|
5031
5035
|
return;
|
|
5032
5036
|
}
|
|
5033
|
-
|
|
5037
|
+
T.value = V;
|
|
5034
5038
|
}), () => {
|
|
5035
|
-
var
|
|
5039
|
+
var V, _;
|
|
5036
5040
|
return v(ot, null, [v("div", kt(t.attrs, {
|
|
5037
5041
|
ref: n,
|
|
5038
|
-
class:
|
|
5042
|
+
class: O.value,
|
|
5039
5043
|
id: e.id ? e.id : void 0,
|
|
5040
|
-
style:
|
|
5044
|
+
style: b.value
|
|
5041
5045
|
}), [v("div", {
|
|
5042
5046
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
5043
5047
|
class: g.value,
|
|
5044
|
-
style:
|
|
5048
|
+
style: y.value,
|
|
5045
5049
|
onMouseenter: w,
|
|
5046
5050
|
onMouseleave: k
|
|
5047
|
-
}, [(
|
|
5051
|
+
}, [(_ = (V = t.slots).precontent) == null ? void 0 : _.call(V), R(), E()])]), T.value && S()]);
|
|
5048
5052
|
};
|
|
5049
5053
|
}
|
|
5050
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 = {
|
|
@@ -5466,6 +5470,10 @@ const Rt = /* @__PURE__ */ oe({
|
|
|
5466
5470
|
description: "启用高亮搜索",
|
|
5467
5471
|
type: "boolean",
|
|
5468
5472
|
default: !1
|
|
5473
|
+
},
|
|
5474
|
+
"onUpdate:modelValue": {
|
|
5475
|
+
description: "",
|
|
5476
|
+
type: "object"
|
|
5469
5477
|
}
|
|
5470
5478
|
}, gr = [
|
|
5471
5479
|
"type"
|
|
@@ -5657,7 +5665,7 @@ const un = {
|
|
|
5657
5665
|
popupOnClick: { type: Boolean, default: !0 }
|
|
5658
5666
|
}, kr = Object.assign({}, un, {
|
|
5659
5667
|
readonly: {}
|
|
5660
|
-
}), aa = on(un, Cr, dr, wr),
|
|
5668
|
+
}), aa = on(un, Cr, dr, wr), Sr = {
|
|
5661
5669
|
dataSource: { type: Array, default: [] },
|
|
5662
5670
|
enableSearch: { type: Boolean, default: !1 },
|
|
5663
5671
|
idField: { type: String, default: "id" },
|
|
@@ -5678,9 +5686,9 @@ const un = {
|
|
|
5678
5686
|
},
|
|
5679
5687
|
// 搜索启用高亮
|
|
5680
5688
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
5681
|
-
},
|
|
5689
|
+
}, xr = /* @__PURE__ */ oe({
|
|
5682
5690
|
name: "FComboListContainer",
|
|
5683
|
-
props:
|
|
5691
|
+
props: Sr,
|
|
5684
5692
|
emits: ["selectionChange"],
|
|
5685
5693
|
setup(e, t) {
|
|
5686
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(() => ({
|
|
@@ -5756,7 +5764,7 @@ const un = {
|
|
|
5756
5764
|
}
|
|
5757
5765
|
});
|
|
5758
5766
|
function Fr(e) {
|
|
5759
|
-
const { t } =
|
|
5767
|
+
const { t } = St(), n = C(""), a = C(e.modelValue), o = C(e.data || []), l = C(e.editable);
|
|
5760
5768
|
function i(r) {
|
|
5761
5769
|
const m = e.multiSelect ? String(r).split(e.separator) : [String(r)], d = m.map((w) => [w, !0]), g = new Map(d);
|
|
5762
5770
|
return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
|
|
@@ -5816,61 +5824,63 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5816
5824
|
setup(e, t) {
|
|
5817
5825
|
const {
|
|
5818
5826
|
t: n
|
|
5819
|
-
} =
|
|
5827
|
+
} = St(), a = C(), o = C(), l = C(e.disabled || e.readonly), i = C(e.enableClear), u = C(e.enableSearch), s = C(e.readonly), {
|
|
5820
5828
|
dataSource: c,
|
|
5821
5829
|
displayText: h,
|
|
5822
5830
|
editable: f,
|
|
5823
5831
|
modelValue: r,
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5832
|
+
getSelectedItemsByDisplayText: m,
|
|
5833
|
+
getItemsByDisplayText: d,
|
|
5834
|
+
getItemsByValue: g
|
|
5835
|
+
} = Fr(e), p = C(e.dropDownIcon);
|
|
5836
|
+
p.value === '<span class="f-icon f-icon-arrow-chevron-down"></span>' && (p.value = '<span id="' + e.id + '-icon-dropdown" class="f-icon f-icon-arrow-chevron-down"></span>');
|
|
5837
|
+
const w = N(() => e.multiSelect), k = N(() => o.value ? o.value.elementRef.getBoundingClientRect().width : 0);
|
|
5838
|
+
function B() {
|
|
5839
|
+
!w.value && o.value && o.value.hidePopup();
|
|
5830
5840
|
}
|
|
5831
|
-
function
|
|
5832
|
-
h.value =
|
|
5841
|
+
function O(S) {
|
|
5842
|
+
h.value = S.map((P) => P[e.textField]).join(e.separator);
|
|
5833
5843
|
let T = "";
|
|
5834
|
-
|
|
5844
|
+
S.length === 1 ? T = S[0][e.valueField] : T = S.map((P) => P[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", S, r.value));
|
|
5835
5845
|
}
|
|
5836
|
-
function
|
|
5837
|
-
const
|
|
5838
|
-
|
|
5846
|
+
function b() {
|
|
5847
|
+
const S = g(r.value);
|
|
5848
|
+
O(S);
|
|
5839
5849
|
}
|
|
5840
|
-
function
|
|
5850
|
+
function y() {
|
|
5841
5851
|
s.value || h.value;
|
|
5842
5852
|
}
|
|
5843
|
-
function
|
|
5853
|
+
function x(S) {
|
|
5844
5854
|
var T;
|
|
5845
5855
|
r.value = "", (T = a.value) == null || T.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
5846
5856
|
}
|
|
5847
|
-
function
|
|
5848
|
-
var T,
|
|
5849
|
-
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(
|
|
5857
|
+
function M(S) {
|
|
5858
|
+
var T, P;
|
|
5859
|
+
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(S)), (P = a.value) == null || P.activeRowById(S), t.emit("change", [r.value], r.value);
|
|
5850
5860
|
}
|
|
5851
|
-
function
|
|
5861
|
+
function I(S) {
|
|
5852
5862
|
if (e.multiSelect) {
|
|
5853
|
-
const T =
|
|
5854
|
-
r.value !==
|
|
5863
|
+
const T = g(r.value), V = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5864
|
+
r.value !== V && (r.value = V, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
5855
5865
|
}
|
|
5856
5866
|
}
|
|
5857
|
-
function
|
|
5867
|
+
function R() {
|
|
5858
5868
|
return h.value;
|
|
5859
5869
|
}
|
|
5860
|
-
function
|
|
5870
|
+
function E(S) {
|
|
5861
5871
|
const {
|
|
5862
5872
|
value: T
|
|
5863
|
-
} =
|
|
5864
|
-
|
|
5873
|
+
} = S.target;
|
|
5874
|
+
M(T), t.emit("input", T);
|
|
5865
5875
|
}
|
|
5866
|
-
function
|
|
5876
|
+
function F() {
|
|
5867
5877
|
o.value.hidePopup();
|
|
5868
5878
|
}
|
|
5869
5879
|
return t.expose({
|
|
5870
|
-
getDisplayText:
|
|
5871
|
-
hidePopup:
|
|
5872
|
-
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
5873
|
-
l.value =
|
|
5880
|
+
getDisplayText: R,
|
|
5881
|
+
hidePopup: F
|
|
5882
|
+
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, P, V, _]) => {
|
|
5883
|
+
l.value = S, f.value = T, i.value = P, u.value = V, s.value = _;
|
|
5874
5884
|
}), () => v(jn, {
|
|
5875
5885
|
ref: o,
|
|
5876
5886
|
id: e.id,
|
|
@@ -5878,7 +5888,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5878
5888
|
readonly: s.value,
|
|
5879
5889
|
forcePlaceholder: e.forcePlaceholder,
|
|
5880
5890
|
editable: f.value,
|
|
5881
|
-
buttonContent:
|
|
5891
|
+
buttonContent: p.value,
|
|
5882
5892
|
placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
|
|
5883
5893
|
enableClear: i.value,
|
|
5884
5894
|
maxLength: e.maxLength,
|
|
@@ -5887,14 +5897,14 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5887
5897
|
multiSelect: e.multiSelect,
|
|
5888
5898
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
5889
5899
|
modelValue: h.value,
|
|
5890
|
-
"onUpdate:modelValue": (
|
|
5900
|
+
"onUpdate:modelValue": (S) => h.value = S,
|
|
5891
5901
|
focusOnCreated: e.focusOnCreated,
|
|
5892
5902
|
selectOnCreated: e.selectOnCreated,
|
|
5893
|
-
onClear:
|
|
5894
|
-
onClick:
|
|
5895
|
-
onChange:
|
|
5896
|
-
onBlur:
|
|
5897
|
-
onInput:
|
|
5903
|
+
onClear: x,
|
|
5904
|
+
onClick: y,
|
|
5905
|
+
onChange: I,
|
|
5906
|
+
onBlur: b,
|
|
5907
|
+
onInput: E,
|
|
5898
5908
|
beforeOpen: e.beforeOpen,
|
|
5899
5909
|
placement: e.placement,
|
|
5900
5910
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -5902,7 +5912,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5902
5912
|
popupOnClick: e.popupOnClick,
|
|
5903
5913
|
limitContentBySpace: !0
|
|
5904
5914
|
}, {
|
|
5905
|
-
default: () => [v(
|
|
5915
|
+
default: () => [v(xr, {
|
|
5906
5916
|
ref: a,
|
|
5907
5917
|
idField: e.idField,
|
|
5908
5918
|
valueField: e.valueField,
|
|
@@ -5915,9 +5925,9 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5915
5925
|
enableSearch: u.value,
|
|
5916
5926
|
maxHeight: e.maxHeight,
|
|
5917
5927
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
5918
|
-
width: e.fitEditor ?
|
|
5919
|
-
onSelectionChange: (
|
|
5920
|
-
|
|
5928
|
+
width: e.fitEditor ? k.value : void 0,
|
|
5929
|
+
onSelectionChange: (S) => {
|
|
5930
|
+
O(S), B();
|
|
5921
5931
|
}
|
|
5922
5932
|
}, null)]
|
|
5923
5933
|
});
|
|
@@ -6403,17 +6413,17 @@ function ra(e) {
|
|
|
6403
6413
|
function h(p, w, k, B) {
|
|
6404
6414
|
const O = e.value;
|
|
6405
6415
|
if (O) {
|
|
6406
|
-
const { left: b, right: y, width:
|
|
6416
|
+
const { left: b, right: y, width: x } = O.getBoundingClientRect();
|
|
6407
6417
|
let M = p.clientX - b;
|
|
6408
|
-
B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M =
|
|
6418
|
+
B === "right" && (M = y - p.clientX), M > w && (M = w), M < k && (M = k), B === "right" && (M = x - M), a.value = M;
|
|
6409
6419
|
}
|
|
6410
6420
|
}
|
|
6411
6421
|
function f(p, w, k, B) {
|
|
6412
6422
|
const O = e.value;
|
|
6413
6423
|
if (O) {
|
|
6414
|
-
const { top: b, bottom: y, height:
|
|
6424
|
+
const { top: b, bottom: y, height: x } = O.getBoundingClientRect();
|
|
6415
6425
|
let M = p.clientY - b;
|
|
6416
|
-
B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M =
|
|
6426
|
+
B === "bottom" && (M = y - p.clientY), M > w && (M = w), M < k && (M = k), B === "bottom" && (M = x - M), o.value = M;
|
|
6417
6427
|
}
|
|
6418
6428
|
}
|
|
6419
6429
|
function r() {
|
|
@@ -6709,35 +6719,35 @@ function ua(e, t, n, a, o) {
|
|
|
6709
6719
|
let g = "", p, w, k;
|
|
6710
6720
|
function B(y) {
|
|
6711
6721
|
if ((g === "left" || g === "right") && w) {
|
|
6712
|
-
const { left:
|
|
6722
|
+
const { left: x } = w.getBoundingClientRect(), { width: M } = p.getBoundingClientRect(), I = y.clientX - x;
|
|
6713
6723
|
let R = g === "left" ? (M || 0) + (I - l.value) : (M || 0) - (I - l.value);
|
|
6714
6724
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6715
|
-
const
|
|
6716
|
-
|
|
6725
|
+
const E = d(g, n.value);
|
|
6726
|
+
E != null && (R = E > R ? R : E), e.value = R;
|
|
6717
6727
|
}
|
|
6718
6728
|
if ((g === "top" || g === "bottom") && w) {
|
|
6719
|
-
const { top:
|
|
6729
|
+
const { top: x } = w.getBoundingClientRect(), { height: M } = p.getBoundingClientRect(), I = y.clientY - x;
|
|
6720
6730
|
let R = g === "top" ? (M || 0) + (I - c.value) : (M || 0) - (I - c.value);
|
|
6721
6731
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6722
|
-
const
|
|
6723
|
-
|
|
6732
|
+
const E = m(g, a.value);
|
|
6733
|
+
E != null && (R = E > R ? R : E), t.value = R;
|
|
6724
6734
|
}
|
|
6725
6735
|
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;
|
|
6726
6736
|
}
|
|
6727
|
-
function O(y,
|
|
6728
|
-
if (g =
|
|
6729
|
-
const { left: R } = w.getBoundingClientRect(),
|
|
6730
|
-
i.value =
|
|
6731
|
-
const
|
|
6732
|
-
k = (S) => f(S,
|
|
6737
|
+
function O(y, x, M) {
|
|
6738
|
+
if (g = x, p = M, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6739
|
+
const { left: R } = w.getBoundingClientRect(), E = y.clientX - R;
|
|
6740
|
+
i.value = E, l.value = E;
|
|
6741
|
+
const F = d(g, n.value) || 0;
|
|
6742
|
+
k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6733
6743
|
}
|
|
6734
6744
|
}
|
|
6735
|
-
function b(y,
|
|
6736
|
-
if (g =
|
|
6745
|
+
function b(y, x, M) {
|
|
6746
|
+
if (g = x, p = M, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6737
6747
|
const { top: R } = w.getBoundingClientRect();
|
|
6738
6748
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6739
|
-
const
|
|
6740
|
-
k = (
|
|
6749
|
+
const E = m(g, a.value) || 0;
|
|
6750
|
+
k = (F) => r(F, E, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6741
6751
|
}
|
|
6742
6752
|
}
|
|
6743
6753
|
return { onClickHorizontalResizeBar: O, onClickVerticalResizeBar: b };
|
|
@@ -6772,7 +6782,7 @@ const je = /* @__PURE__ */ oe({
|
|
|
6772
6782
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
6773
6783
|
"f-page-content-main": c.value === "center"
|
|
6774
6784
|
};
|
|
6775
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6785
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6776
6786
|
}), O = N(() => {
|
|
6777
6787
|
const b = {};
|
|
6778
6788
|
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;
|
|
@@ -6829,7 +6839,7 @@ const as = /* @__PURE__ */ oe({
|
|
|
6829
6839
|
function os(e, t) {
|
|
6830
6840
|
const n = e.schema;
|
|
6831
6841
|
function a(l) {
|
|
6832
|
-
return !!
|
|
6842
|
+
return !!Si().basalDragulaRuleForContainer(l);
|
|
6833
6843
|
}
|
|
6834
6844
|
function o() {
|
|
6835
6845
|
const l = ["f-layout-pane"];
|
|
@@ -6869,7 +6879,7 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6869
6879
|
"f-page-content-nav": f.value === "left" || f.value === "right",
|
|
6870
6880
|
"f-page-content-main": f.value === "center"
|
|
6871
6881
|
};
|
|
6872
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6882
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6873
6883
|
}), O = N(() => {
|
|
6874
6884
|
const b = {
|
|
6875
6885
|
flex: "1"
|
|
@@ -9111,7 +9121,7 @@ function ws(e, t, n) {
|
|
|
9111
9121
|
writable: !0
|
|
9112
9122
|
}) : e[t] = n, e;
|
|
9113
9123
|
}
|
|
9114
|
-
function
|
|
9124
|
+
function Sn(e, t) {
|
|
9115
9125
|
var n = Object.keys(e);
|
|
9116
9126
|
if (Object.getOwnPropertySymbols) {
|
|
9117
9127
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -9121,12 +9131,12 @@ function xn(e, t) {
|
|
|
9121
9131
|
}
|
|
9122
9132
|
return n;
|
|
9123
9133
|
}
|
|
9124
|
-
function
|
|
9134
|
+
function xn(e) {
|
|
9125
9135
|
for (var t = 1; t < arguments.length; t++) {
|
|
9126
9136
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9127
|
-
t % 2 ?
|
|
9137
|
+
t % 2 ? Sn(Object(n), !0).forEach(function(a) {
|
|
9128
9138
|
ws(e, a, n[a]);
|
|
9129
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9139
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sn(Object(n)).forEach(function(a) {
|
|
9130
9140
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
9131
9141
|
});
|
|
9132
9142
|
}
|
|
@@ -9155,18 +9165,18 @@ function bt(e) {
|
|
|
9155
9165
|
function Dt(e) {
|
|
9156
9166
|
return {}.toString.call(e).includes("Object");
|
|
9157
9167
|
}
|
|
9158
|
-
function
|
|
9168
|
+
function Ss(e) {
|
|
9159
9169
|
return !Object.keys(e).length;
|
|
9160
9170
|
}
|
|
9161
9171
|
function Ct(e) {
|
|
9162
9172
|
return typeof e == "function";
|
|
9163
9173
|
}
|
|
9164
|
-
function
|
|
9174
|
+
function xs(e, t) {
|
|
9165
9175
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
9166
9176
|
}
|
|
9167
9177
|
function Fs(e, t) {
|
|
9168
9178
|
return Dt(t) || Ye("changeType"), Object.keys(t).some(function(n) {
|
|
9169
|
-
return !
|
|
9179
|
+
return !xs(e, n);
|
|
9170
9180
|
}) && Ye("changeField"), t;
|
|
9171
9181
|
}
|
|
9172
9182
|
function Ts(e) {
|
|
@@ -9178,7 +9188,7 @@ function Bs(e) {
|
|
|
9178
9188
|
}) && Ye("handlersType");
|
|
9179
9189
|
}
|
|
9180
9190
|
function Os(e) {
|
|
9181
|
-
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"),
|
|
9191
|
+
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"), Ss(e) && Ye("initialContent");
|
|
9182
9192
|
}
|
|
9183
9193
|
function Ms(e, t) {
|
|
9184
9194
|
throw new Error(e[t] || e.default);
|
|
@@ -9220,7 +9230,7 @@ function Ps(e, t) {
|
|
|
9220
9230
|
return Ct(t) ? t(e.current) : t;
|
|
9221
9231
|
}
|
|
9222
9232
|
function Ns(e, t) {
|
|
9223
|
-
return e.current =
|
|
9233
|
+
return e.current = xn(xn({}, e.current), t), t;
|
|
9224
9234
|
}
|
|
9225
9235
|
function Is(e, t, n) {
|
|
9226
9236
|
return Ct(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
|
|
@@ -9312,7 +9322,7 @@ var Gs = js.create({
|
|
|
9312
9322
|
resolve: null,
|
|
9313
9323
|
reject: null,
|
|
9314
9324
|
monaco: null
|
|
9315
|
-
}), fa = vs(Gs, 2),
|
|
9325
|
+
}), fa = vs(Gs, 2), xt = fa[0], Lt = fa[1];
|
|
9316
9326
|
function Us(e) {
|
|
9317
9327
|
var t = Hs.config(e), n = t.monaco, a = ys(t, ["monaco"]);
|
|
9318
9328
|
Lt(function(o) {
|
|
@@ -9323,7 +9333,7 @@ function Us(e) {
|
|
|
9323
9333
|
});
|
|
9324
9334
|
}
|
|
9325
9335
|
function _s() {
|
|
9326
|
-
var e =
|
|
9336
|
+
var e = xt(function(t) {
|
|
9327
9337
|
var n = t.monaco, a = t.isInitialized, o = t.resolve;
|
|
9328
9338
|
return {
|
|
9329
9339
|
monaco: n,
|
|
@@ -9350,7 +9360,7 @@ function Xs(e) {
|
|
|
9350
9360
|
return e && (t.src = e), t;
|
|
9351
9361
|
}
|
|
9352
9362
|
function Js(e) {
|
|
9353
|
-
var t =
|
|
9363
|
+
var t = xt(function(a) {
|
|
9354
9364
|
var o = a.config, l = a.reject;
|
|
9355
9365
|
return {
|
|
9356
9366
|
config: o,
|
|
@@ -9362,7 +9372,7 @@ function Js(e) {
|
|
|
9362
9372
|
}, n.onerror = t.reject, n;
|
|
9363
9373
|
}
|
|
9364
9374
|
function Qs() {
|
|
9365
|
-
var e =
|
|
9375
|
+
var e = xt(function(n) {
|
|
9366
9376
|
var a = n.config, o = n.resolve, l = n.reject;
|
|
9367
9377
|
return {
|
|
9368
9378
|
config: a,
|
|
@@ -9377,12 +9387,12 @@ function Qs() {
|
|
|
9377
9387
|
});
|
|
9378
9388
|
}
|
|
9379
9389
|
function pa(e) {
|
|
9380
|
-
|
|
9390
|
+
xt().monaco || Lt({
|
|
9381
9391
|
monaco: e
|
|
9382
9392
|
});
|
|
9383
9393
|
}
|
|
9384
9394
|
function Zs() {
|
|
9385
|
-
return
|
|
9395
|
+
return xt(function(e) {
|
|
9386
9396
|
var t = e.monaco;
|
|
9387
9397
|
return t;
|
|
9388
9398
|
});
|
|
@@ -9610,25 +9620,25 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9610
9620
|
const n = C("dataEntity"), a = C(e.dataSource), {
|
|
9611
9621
|
entities: o,
|
|
9612
9622
|
variables: l
|
|
9613
|
-
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S,
|
|
9623
|
+
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S, T) => {
|
|
9614
9624
|
S.stopPropagation(), t.emit("fieldClick", {
|
|
9615
9625
|
$event: S,
|
|
9616
|
-
item:
|
|
9626
|
+
item: T.raw
|
|
9617
9627
|
});
|
|
9618
|
-
}, c = (S,
|
|
9619
|
-
const
|
|
9628
|
+
}, c = (S, T) => {
|
|
9629
|
+
const P = `${T.raw.name} [${T.raw.bindingPath}]`;
|
|
9620
9630
|
return v("div", {
|
|
9621
9631
|
class: "d-flex align-items-center w-100 entity-field",
|
|
9622
9632
|
style: "justify-content: space-between;"
|
|
9623
9633
|
}, [v("span", {
|
|
9624
|
-
title:
|
|
9634
|
+
title: P,
|
|
9625
9635
|
class: "f-utils-fill text-truncate"
|
|
9626
|
-
}, [
|
|
9636
|
+
}, [P]), v("button", {
|
|
9627
9637
|
title: "插入属性名称",
|
|
9628
9638
|
class: "btn btn-link d-none",
|
|
9629
9639
|
style: "width:24px;height:24px",
|
|
9630
|
-
onClick: (
|
|
9631
|
-
onDblclick: (
|
|
9640
|
+
onClick: (V) => s(V, T),
|
|
9641
|
+
onDblclick: (V) => V.stopPropagation()
|
|
9632
9642
|
}, [v("span", {
|
|
9633
9643
|
class: "f-icon f-icon-new-edit",
|
|
9634
9644
|
style: "font-size: 12px;"
|
|
@@ -9649,33 +9659,33 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9649
9659
|
"f-icon f-icon-arrow-chevron-down": h.value[S],
|
|
9650
9660
|
"f-icon f-icon-arrow-chevron-right": !h.value[S]
|
|
9651
9661
|
})), p = N(() => (S) => {
|
|
9652
|
-
var
|
|
9662
|
+
var T;
|
|
9653
9663
|
return {
|
|
9654
9664
|
"functions-item pl-2": !0,
|
|
9655
|
-
selected: ((
|
|
9665
|
+
selected: ((T = f.value) == null ? void 0 : T.key) === S.key
|
|
9656
9666
|
};
|
|
9657
9667
|
});
|
|
9658
|
-
function w(S,
|
|
9659
|
-
S.stopPropagation(), h.value = h.value || {}, h.value[
|
|
9668
|
+
function w(S, T) {
|
|
9669
|
+
S.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
|
|
9660
9670
|
}
|
|
9661
|
-
function k(S,
|
|
9662
|
-
S.stopPropagation(), f.value =
|
|
9671
|
+
function k(S, T) {
|
|
9672
|
+
S.stopPropagation(), f.value = T;
|
|
9663
9673
|
}
|
|
9664
|
-
function B(S,
|
|
9674
|
+
function B(S, T) {
|
|
9665
9675
|
t.emit("variableItemDblClick", {
|
|
9666
9676
|
$event: S,
|
|
9667
|
-
item:
|
|
9677
|
+
item: T
|
|
9668
9678
|
});
|
|
9669
9679
|
}
|
|
9670
9680
|
function O({
|
|
9671
9681
|
$event: S,
|
|
9672
|
-
node:
|
|
9682
|
+
node: T
|
|
9673
9683
|
}) {
|
|
9674
9684
|
t.emit("entityItemDblClick", {
|
|
9675
9685
|
$event: S,
|
|
9676
|
-
item:
|
|
9686
|
+
item: T.data,
|
|
9677
9687
|
entityCode: o == null ? void 0 : o.entityCode,
|
|
9678
|
-
parentCodes:
|
|
9688
|
+
parentCodes: T.data.parents.join(".")
|
|
9679
9689
|
});
|
|
9680
9690
|
}
|
|
9681
9691
|
function b() {
|
|
@@ -9694,25 +9704,25 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9694
9704
|
class: d.value(S)
|
|
9695
9705
|
}, [v("div", {
|
|
9696
9706
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9697
|
-
onClick: (
|
|
9698
|
-
w(
|
|
9707
|
+
onClick: (T) => {
|
|
9708
|
+
w(T, S);
|
|
9699
9709
|
}
|
|
9700
9710
|
}, [v("span", {
|
|
9701
9711
|
class: g.value(S)
|
|
9702
9712
|
}, null), l[S].name]), v("ul", {
|
|
9703
9713
|
class: "pl-3 mr-2"
|
|
9704
|
-
}, [l[S].items.map((
|
|
9705
|
-
class: p.value(
|
|
9706
|
-
onClick: (
|
|
9707
|
-
onDblclick: (
|
|
9708
|
-
}, [
|
|
9709
|
-
}
|
|
9710
|
-
function
|
|
9711
|
-
if (S.stopPropagation(), n.value ===
|
|
9714
|
+
}, [l[S].items.map((T) => v("li", {
|
|
9715
|
+
class: p.value(T),
|
|
9716
|
+
onClick: (P) => k(P, T),
|
|
9717
|
+
onDblclick: (P) => B(P, T)
|
|
9718
|
+
}, [T.name]))])]))]);
|
|
9719
|
+
}
|
|
9720
|
+
function x(S, T) {
|
|
9721
|
+
if (S.stopPropagation(), n.value === T) {
|
|
9712
9722
|
n.value = "";
|
|
9713
9723
|
return;
|
|
9714
9724
|
}
|
|
9715
|
-
n.value =
|
|
9725
|
+
n.value = T;
|
|
9716
9726
|
}
|
|
9717
9727
|
be(() => {
|
|
9718
9728
|
if (l) {
|
|
@@ -9720,32 +9730,32 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9720
9730
|
h.value[S] = !0;
|
|
9721
9731
|
}
|
|
9722
9732
|
});
|
|
9723
|
-
function M(S,
|
|
9724
|
-
const
|
|
9725
|
-
return S.data.name.toLowerCase().includes(
|
|
9733
|
+
function M(S, T) {
|
|
9734
|
+
const P = S.children.map((_) => M(_, T)).filter((_) => _ !== null);
|
|
9735
|
+
return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
|
|
9726
9736
|
data: {
|
|
9727
9737
|
...S.data
|
|
9728
9738
|
},
|
|
9729
9739
|
children: S.children
|
|
9730
9740
|
// 注意这里保留原始子节点
|
|
9731
|
-
} :
|
|
9741
|
+
} : P.length > 0 ? {
|
|
9732
9742
|
data: {
|
|
9733
9743
|
...S.data
|
|
9734
9744
|
},
|
|
9735
|
-
children:
|
|
9745
|
+
children: P
|
|
9736
9746
|
} : null;
|
|
9737
9747
|
}
|
|
9738
|
-
function I(S,
|
|
9739
|
-
return S.map((
|
|
9748
|
+
function I(S, T) {
|
|
9749
|
+
return S.map((P) => M(P, T)).filter((P) => P !== null);
|
|
9740
9750
|
}
|
|
9741
9751
|
function R() {
|
|
9742
9752
|
const S = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9743
9753
|
u.value = S;
|
|
9744
9754
|
}
|
|
9745
|
-
function
|
|
9755
|
+
function E() {
|
|
9746
9756
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9747
9757
|
}
|
|
9748
|
-
function
|
|
9758
|
+
function F(S) {
|
|
9749
9759
|
S.key === "Enter" && R();
|
|
9750
9760
|
}
|
|
9751
9761
|
return () => v("div", {
|
|
@@ -9756,7 +9766,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9756
9766
|
class: r.value("dataEntity")
|
|
9757
9767
|
}, [v("div", {
|
|
9758
9768
|
class: "title px-2 d-flex align-items-center",
|
|
9759
|
-
onClick: (S) =>
|
|
9769
|
+
onClick: (S) => x(S, "dataEntity")
|
|
9760
9770
|
}, [ie("数据实体"), v("span", {
|
|
9761
9771
|
class: m.value("dataEntity")
|
|
9762
9772
|
}, null)]), v("div", {
|
|
@@ -9772,13 +9782,13 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9772
9782
|
modelValue: i.value,
|
|
9773
9783
|
"onUpdate:modelValue": (S) => i.value = S,
|
|
9774
9784
|
onClickButton: R,
|
|
9775
|
-
onClear:
|
|
9776
|
-
onKeyup:
|
|
9785
|
+
onClear: E,
|
|
9786
|
+
onKeyup: F
|
|
9777
9787
|
}, null)]), b()])]), v("li", {
|
|
9778
9788
|
class: r.value("variables")
|
|
9779
9789
|
}, [v("div", {
|
|
9780
9790
|
class: "title px-2 d-flex align-items-center",
|
|
9781
|
-
onClick: (S) =>
|
|
9791
|
+
onClick: (S) => x(S, "variables")
|
|
9782
9792
|
}, [ie("变量"), v("span", {
|
|
9783
9793
|
class: m.value("variables")
|
|
9784
9794
|
}, null)]), v("div", {
|
|
@@ -9821,7 +9831,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9821
9831
|
};
|
|
9822
9832
|
}), r = C(Object.keys(s.value));
|
|
9823
9833
|
Z(() => e.functionItems, (b) => {
|
|
9824
|
-
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y,
|
|
9834
|
+
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
|
|
9825
9835
|
});
|
|
9826
9836
|
function m(b) {
|
|
9827
9837
|
b || (b = a.value);
|
|
@@ -9850,12 +9860,12 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9850
9860
|
item: y
|
|
9851
9861
|
});
|
|
9852
9862
|
}
|
|
9853
|
-
Z(() => a.value, (b, y,
|
|
9863
|
+
Z(() => a.value, (b, y, x) => {
|
|
9854
9864
|
if (b) {
|
|
9855
9865
|
const M = setTimeout(() => {
|
|
9856
9866
|
m(b);
|
|
9857
9867
|
}, 200);
|
|
9858
|
-
|
|
9868
|
+
x(() => clearTimeout(M));
|
|
9859
9869
|
}
|
|
9860
9870
|
});
|
|
9861
9871
|
function w() {
|
|
@@ -9884,8 +9894,8 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9884
9894
|
if (y.visible !== !1)
|
|
9885
9895
|
return v("li", {
|
|
9886
9896
|
class: f.value(y),
|
|
9887
|
-
onClick: (
|
|
9888
|
-
onDblclick: (
|
|
9897
|
+
onClick: (x) => g(x, y),
|
|
9898
|
+
onDblclick: (x) => p(x, y)
|
|
9889
9899
|
}, [b === "advanced" ? y.key : y.name]);
|
|
9890
9900
|
})])])) : v("li", {
|
|
9891
9901
|
class: "empty-message"
|
|
@@ -10045,15 +10055,15 @@ function ru(e, t, n) {
|
|
|
10045
10055
|
if (b === 0 && k && w[O].length > 2 && w[O][0] === '"' && w[O][w[O].length - 1] === '"') {
|
|
10046
10056
|
const y = w[O].substring(1, w[O].length - 1);
|
|
10047
10057
|
if (k.has(y) && w[O - 1] === "(" && w[O + 1] === ")") {
|
|
10048
|
-
const
|
|
10049
|
-
|
|
10058
|
+
const x = k.get(y);
|
|
10059
|
+
x !== void 0 && (w[O] = `"${x}"`, b = 1);
|
|
10050
10060
|
}
|
|
10051
10061
|
}
|
|
10052
10062
|
if (b === 0) {
|
|
10053
|
-
const y = Object.values(t).map((
|
|
10054
|
-
for (let
|
|
10055
|
-
if (w[O] === y[
|
|
10056
|
-
w[O] = y[
|
|
10063
|
+
const y = Object.values(t).map((x) => x.items).flat();
|
|
10064
|
+
for (let x = 0; x < y.length; x++)
|
|
10065
|
+
if (w[O] === y[x].name) {
|
|
10066
|
+
w[O] = y[x].keyFront + "." + y[x].key, b = 1;
|
|
10057
10067
|
break;
|
|
10058
10068
|
}
|
|
10059
10069
|
}
|
|
@@ -10075,22 +10085,22 @@ function ru(e, t, n) {
|
|
|
10075
10085
|
y = y + 1;
|
|
10076
10086
|
continue;
|
|
10077
10087
|
} else {
|
|
10078
|
-
let
|
|
10079
|
-
if (
|
|
10088
|
+
let x = 0;
|
|
10089
|
+
if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10080
10090
|
const M = p[y].substring(1, p[y].length - 1);
|
|
10081
10091
|
if (k.has(M) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10082
10092
|
const I = k.get(M);
|
|
10083
|
-
I !== void 0 && (O = O + `"${I}"`,
|
|
10093
|
+
I !== void 0 && (O = O + `"${I}"`, x = 1);
|
|
10084
10094
|
}
|
|
10085
10095
|
}
|
|
10086
|
-
if (
|
|
10096
|
+
if (x === 0) {
|
|
10087
10097
|
for (let M = 0; M < w.length; M++)
|
|
10088
10098
|
if (p[y] === w[M].key && w[M].type.toLowerCase() !== "advanced") {
|
|
10089
|
-
O = O + w[M].name,
|
|
10099
|
+
O = O + w[M].name, x = 1;
|
|
10090
10100
|
break;
|
|
10091
10101
|
}
|
|
10092
10102
|
}
|
|
10093
|
-
|
|
10103
|
+
x === 0 && (O = O + p[y]);
|
|
10094
10104
|
}
|
|
10095
10105
|
}
|
|
10096
10106
|
return O;
|
|
@@ -10141,7 +10151,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10141
10151
|
props: Mr,
|
|
10142
10152
|
emits: [],
|
|
10143
10153
|
setup(e, t) {
|
|
10144
|
-
var
|
|
10154
|
+
var E;
|
|
10145
10155
|
const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
|
|
10146
10156
|
label: "提示",
|
|
10147
10157
|
value: "info"
|
|
@@ -10162,81 +10172,81 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10162
10172
|
onFunctionSearch: g
|
|
10163
10173
|
} = su(e, d);
|
|
10164
10174
|
function p({
|
|
10165
|
-
$event:
|
|
10175
|
+
$event: F,
|
|
10166
10176
|
item: S
|
|
10167
10177
|
}) {
|
|
10168
|
-
var
|
|
10169
|
-
const
|
|
10170
|
-
(
|
|
10178
|
+
var P;
|
|
10179
|
+
const T = s(S);
|
|
10180
|
+
(P = i.value) == null || P.insertText(T);
|
|
10171
10181
|
}
|
|
10172
10182
|
function w({
|
|
10173
|
-
$event:
|
|
10183
|
+
$event: F,
|
|
10174
10184
|
item: S
|
|
10175
10185
|
}) {
|
|
10176
|
-
var
|
|
10177
|
-
const
|
|
10178
|
-
(
|
|
10179
|
-
}
|
|
10180
|
-
function k(
|
|
10181
|
-
return
|
|
10182
|
-
var
|
|
10183
|
-
return S.push(
|
|
10186
|
+
var P;
|
|
10187
|
+
const T = c(S);
|
|
10188
|
+
(P = i.value) == null || P.insertText(T);
|
|
10189
|
+
}
|
|
10190
|
+
function k(F) {
|
|
10191
|
+
return F.reduce((S, T) => {
|
|
10192
|
+
var P;
|
|
10193
|
+
return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
|
|
10184
10194
|
}, []);
|
|
10185
10195
|
}
|
|
10186
|
-
const B = k(((
|
|
10187
|
-
function O(
|
|
10188
|
-
return
|
|
10189
|
-
const
|
|
10190
|
-
return
|
|
10196
|
+
const B = k(((E = e == null ? void 0 : e.entities) == null ? void 0 : E.fields) || []);
|
|
10197
|
+
function O(F) {
|
|
10198
|
+
return F.map((S) => {
|
|
10199
|
+
const T = B.find((P) => P.bindingPath === S);
|
|
10200
|
+
return T && T.type === "entity" ? `${S}[0]` : S;
|
|
10191
10201
|
}).join(".");
|
|
10192
10202
|
}
|
|
10193
10203
|
function b({
|
|
10194
|
-
$event:
|
|
10204
|
+
$event: F,
|
|
10195
10205
|
item: S,
|
|
10196
|
-
parentCodes:
|
|
10197
|
-
entityCode:
|
|
10206
|
+
parentCodes: T,
|
|
10207
|
+
entityCode: P
|
|
10198
10208
|
}) {
|
|
10199
|
-
var
|
|
10200
|
-
const
|
|
10201
|
-
|
|
10202
|
-
let
|
|
10203
|
-
|
|
10209
|
+
var L;
|
|
10210
|
+
const V = f(S);
|
|
10211
|
+
T = e.isServerSide ? O(S.parents) : T;
|
|
10212
|
+
let _ = `${T}.${V}`;
|
|
10213
|
+
P === V && (_ = V), (L = i.value) == null || L.insertText(`${_}`);
|
|
10204
10214
|
}
|
|
10205
10215
|
function y({
|
|
10206
|
-
$event:
|
|
10216
|
+
$event: F,
|
|
10207
10217
|
item: S
|
|
10208
10218
|
}) {
|
|
10209
|
-
var
|
|
10210
|
-
const
|
|
10211
|
-
(
|
|
10219
|
+
var P;
|
|
10220
|
+
const T = f(S);
|
|
10221
|
+
(P = i.value) == null || P.insertText(`${T}`);
|
|
10212
10222
|
}
|
|
10213
|
-
function
|
|
10214
|
-
var
|
|
10215
|
-
return (
|
|
10223
|
+
function x() {
|
|
10224
|
+
var F;
|
|
10225
|
+
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10216
10226
|
}
|
|
10217
10227
|
function M() {
|
|
10218
10228
|
var S;
|
|
10219
|
-
const
|
|
10229
|
+
const F = (S = i.value) == null ? void 0 : S.getContent();
|
|
10220
10230
|
return {
|
|
10221
|
-
value: r(
|
|
10231
|
+
value: r(F),
|
|
10222
10232
|
message: a.value,
|
|
10223
10233
|
messageType: o.value
|
|
10224
10234
|
};
|
|
10225
10235
|
}
|
|
10226
10236
|
const I = C("");
|
|
10227
10237
|
function R() {
|
|
10228
|
-
var
|
|
10229
|
-
(
|
|
10238
|
+
var F;
|
|
10239
|
+
(F = i.value) == null || F.clearText();
|
|
10230
10240
|
}
|
|
10231
10241
|
return be(async () => {
|
|
10232
10242
|
if (l.value) {
|
|
10233
|
-
const
|
|
10243
|
+
const F = JSON.parse(l.value), {
|
|
10234
10244
|
expr: S
|
|
10235
|
-
} =
|
|
10245
|
+
} = F;
|
|
10236
10246
|
S && (I.value = await m(S) || "");
|
|
10237
10247
|
}
|
|
10238
10248
|
}), t.expose({
|
|
10239
|
-
getExpressionContext:
|
|
10249
|
+
getExpressionContext: x,
|
|
10240
10250
|
getExpressionValue: M,
|
|
10241
10251
|
resetExpression: R
|
|
10242
10252
|
}), () => v("div", {
|
|
@@ -10263,7 +10273,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10263
10273
|
class: "f-utils-fill my-2 ml-1"
|
|
10264
10274
|
}, [v(Ks, {
|
|
10265
10275
|
modelValue: I.value,
|
|
10266
|
-
"onUpdate:modelValue": (
|
|
10276
|
+
"onUpdate:modelValue": (F) => I.value = F,
|
|
10267
10277
|
ref: i
|
|
10268
10278
|
}, null)]), e.showMessage && v("div", {
|
|
10269
10279
|
class: "d-flex flex-column p-1",
|
|
@@ -10274,7 +10284,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10274
10284
|
style: "width: 75px",
|
|
10275
10285
|
data: u,
|
|
10276
10286
|
modelValue: o.value,
|
|
10277
|
-
"onUpdate:modelValue": (
|
|
10287
|
+
"onUpdate:modelValue": (F) => o.value = F,
|
|
10278
10288
|
textField: "label",
|
|
10279
10289
|
valueField: "value",
|
|
10280
10290
|
idField: "value",
|
|
@@ -10282,7 +10292,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10282
10292
|
minPanelWidth: 130,
|
|
10283
10293
|
placement: "auto"
|
|
10284
10294
|
}, null)]), On(v("textarea", {
|
|
10285
|
-
"onUpdate:modelValue": (
|
|
10295
|
+
"onUpdate:modelValue": (F) => a.value = F,
|
|
10286
10296
|
class: "form-control",
|
|
10287
10297
|
style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
|
|
10288
10298
|
}, null), [[Ra, a.value]])])]
|
|
@@ -10695,7 +10705,7 @@ function va(e) {
|
|
|
10695
10705
|
}
|
|
10696
10706
|
const wu = /* @__PURE__ */ new Map([
|
|
10697
10707
|
["appearance", jt]
|
|
10698
|
-
]), ku = "https://json-schema.org/draft/2020-12/schema",
|
|
10708
|
+
]), ku = "https://json-schema.org/draft/2020-12/schema", Su = "https://farris-design.gitee.io/combo-list.schema.json", xu = "combo-tree", Fu = "A Farris Input Component", Tu = "object", Bu = {
|
|
10699
10709
|
id: {
|
|
10700
10710
|
description: "The unique identifier for a combo list",
|
|
10701
10711
|
type: "string"
|
|
@@ -10853,8 +10863,8 @@ const wu = /* @__PURE__ */ new Map([
|
|
|
10853
10863
|
"type"
|
|
10854
10864
|
], Mu = {
|
|
10855
10865
|
$schema: ku,
|
|
10856
|
-
$id:
|
|
10857
|
-
title:
|
|
10866
|
+
$id: Su,
|
|
10867
|
+
title: xu,
|
|
10858
10868
|
description: Fu,
|
|
10859
10869
|
type: Tu,
|
|
10860
10870
|
properties: Bu,
|
|
@@ -11227,54 +11237,55 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11227
11237
|
displayText: r,
|
|
11228
11238
|
editable: m,
|
|
11229
11239
|
modelValue: d,
|
|
11230
|
-
|
|
11231
|
-
|
|
11240
|
+
getSelectedItemsByDisplayText: g,
|
|
11241
|
+
flatTreeNodes: p
|
|
11242
|
+
} = Iu(e), w = N(() => e.multiSelect);
|
|
11232
11243
|
N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
11233
|
-
const
|
|
11234
|
-
var
|
|
11235
|
-
const
|
|
11236
|
-
return
|
|
11244
|
+
const k = N(() => {
|
|
11245
|
+
var S;
|
|
11246
|
+
const F = (S = n.value) == null ? void 0 : S.popoverRef;
|
|
11247
|
+
return F ? F.shown : !1;
|
|
11237
11248
|
}), {
|
|
11238
|
-
onValueChange:
|
|
11239
|
-
resetDataSource:
|
|
11249
|
+
onValueChange: B,
|
|
11250
|
+
resetDataSource: O
|
|
11240
11251
|
} = ju({
|
|
11241
11252
|
comboEditorRef: n,
|
|
11242
11253
|
dataSource: f,
|
|
11243
11254
|
searchFields: u,
|
|
11244
11255
|
originalValue: s,
|
|
11245
|
-
showPopover:
|
|
11246
|
-
flatTreeNodes:
|
|
11256
|
+
showPopover: k,
|
|
11257
|
+
flatTreeNodes: p
|
|
11247
11258
|
}, e.idField);
|
|
11248
|
-
function
|
|
11249
|
-
!
|
|
11259
|
+
function b() {
|
|
11260
|
+
!w.value && n.value && n.value.hidePopup();
|
|
11250
11261
|
}
|
|
11251
|
-
const
|
|
11252
|
-
function
|
|
11253
|
-
if (!
|
|
11254
|
-
r.value =
|
|
11262
|
+
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((S) => S[e.textField]).join(e.separator);
|
|
11263
|
+
function x(F = []) {
|
|
11264
|
+
if (!w.value)
|
|
11265
|
+
r.value = y(F), d.value = F.map((S) => S[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", F, d.value);
|
|
11255
11266
|
else {
|
|
11256
|
-
const
|
|
11257
|
-
r.value =
|
|
11267
|
+
const S = Object.keys(h), T = Object.values(h);
|
|
11268
|
+
r.value = y(T), d.value = S.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", T, d.value);
|
|
11258
11269
|
}
|
|
11259
|
-
|
|
11270
|
+
b();
|
|
11260
11271
|
}
|
|
11261
|
-
function F
|
|
11262
|
-
var
|
|
11263
|
-
d.value = "",
|
|
11272
|
+
function M(F) {
|
|
11273
|
+
var S;
|
|
11274
|
+
d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
|
|
11264
11275
|
}
|
|
11265
|
-
function
|
|
11266
|
-
|
|
11276
|
+
function I(F) {
|
|
11277
|
+
w.value && (delete h[F.id], x());
|
|
11267
11278
|
}
|
|
11268
|
-
function
|
|
11269
|
-
|
|
11279
|
+
function R(F) {
|
|
11280
|
+
w.value && (h[F.id] = F.data, x());
|
|
11270
11281
|
}
|
|
11271
|
-
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
11272
|
-
a.value =
|
|
11282
|
+
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, V]) => {
|
|
11283
|
+
a.value = F, m.value = S, o.value = T, l.value = P, i.value = V;
|
|
11273
11284
|
});
|
|
11274
|
-
const
|
|
11275
|
-
if (s.value = Le(f.value),
|
|
11276
|
-
const
|
|
11277
|
-
|
|
11285
|
+
const E = () => {
|
|
11286
|
+
if (s.value = Le(f.value), w.value && d.value) {
|
|
11287
|
+
const F = [];
|
|
11288
|
+
p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
|
|
11278
11289
|
}
|
|
11279
11290
|
};
|
|
11280
11291
|
return () => v(jn, {
|
|
@@ -11293,16 +11304,16 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11293
11304
|
inputType: e.viewType,
|
|
11294
11305
|
popupOnClick: !0,
|
|
11295
11306
|
modelValue: r.value,
|
|
11296
|
-
"onUpdate:modelValue": (
|
|
11297
|
-
onClear:
|
|
11298
|
-
onInput:
|
|
11307
|
+
"onUpdate:modelValue": (F) => r.value = F,
|
|
11308
|
+
onClear: M,
|
|
11309
|
+
onInput: B,
|
|
11299
11310
|
focusOnCreated: e.focusOnCreated,
|
|
11300
11311
|
selectOnCreated: e.selectOnCreated,
|
|
11301
|
-
beforeOpen:
|
|
11312
|
+
beforeOpen: E,
|
|
11302
11313
|
placement: e.placement,
|
|
11303
11314
|
popupMinWidth: e.minPanelWidth
|
|
11304
11315
|
}, {
|
|
11305
|
-
default: () => [
|
|
11316
|
+
default: () => [k.value && v(Nu, {
|
|
11306
11317
|
ref: c,
|
|
11307
11318
|
maxHeight: e.maxHeight,
|
|
11308
11319
|
multiSelect: e.multiSelect,
|
|
@@ -11313,15 +11324,15 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11313
11324
|
titleField: e.titleField,
|
|
11314
11325
|
data: s.value,
|
|
11315
11326
|
selectedValues: d.value,
|
|
11316
|
-
onSelectionChange:
|
|
11327
|
+
onSelectionChange: x,
|
|
11317
11328
|
formatter: e.formatter,
|
|
11318
11329
|
editorParams: e.editorParams,
|
|
11319
11330
|
repositoryToken: e.repositoryToken,
|
|
11320
11331
|
customRowStatus: e.customRowStatus,
|
|
11321
|
-
searchHandler:
|
|
11322
|
-
onUnSelectItem:
|
|
11323
|
-
onSelectItem:
|
|
11324
|
-
onClearSearch:
|
|
11332
|
+
searchHandler: B,
|
|
11333
|
+
onUnSelectItem: I,
|
|
11334
|
+
onSelectItem: R,
|
|
11335
|
+
onClearSearch: O
|
|
11325
11336
|
}, null)]
|
|
11326
11337
|
});
|
|
11327
11338
|
}
|
|
@@ -11696,19 +11707,19 @@ function $u(e, t) {
|
|
|
11696
11707
|
function h() {
|
|
11697
11708
|
if (e.editorType === "filter")
|
|
11698
11709
|
for (let y = 0; y < t.value.length - 1; y++) {
|
|
11699
|
-
const
|
|
11700
|
-
(
|
|
11710
|
+
const x = t.value[y];
|
|
11711
|
+
(x.relation === ct.Empty || !x.relation) && (x.relation = ct.And);
|
|
11701
11712
|
}
|
|
11702
11713
|
}
|
|
11703
11714
|
function f() {
|
|
11704
11715
|
const y = Object.assign({}, u);
|
|
11705
11716
|
t.value = [...t.value, y];
|
|
11706
|
-
const
|
|
11707
|
-
n.value =
|
|
11717
|
+
const x = t.value.length - 1;
|
|
11718
|
+
n.value = x, h();
|
|
11708
11719
|
}
|
|
11709
11720
|
function r({ index: y }) {
|
|
11710
|
-
const
|
|
11711
|
-
e.insertType === "above" ? y === 0 ? t.value.unshift(
|
|
11721
|
+
const x = Object.assign({}, u);
|
|
11722
|
+
e.insertType === "above" ? y === 0 ? t.value.unshift(x) : t.value.splice(y, 0, x) : t.value.splice(y + 1, 0, x), t.value = [...t.value], h();
|
|
11712
11723
|
}
|
|
11713
11724
|
function m({ index: y }) {
|
|
11714
11725
|
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)));
|
|
@@ -11721,14 +11732,14 @@ function $u(e, t) {
|
|
|
11721
11732
|
}
|
|
11722
11733
|
function p() {
|
|
11723
11734
|
if (n.value >= 0) {
|
|
11724
|
-
const y = n.value,
|
|
11725
|
-
t.value.splice(y - 1, 0, ...
|
|
11735
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11736
|
+
t.value.splice(y - 1, 0, ...x), n.value = y - 1;
|
|
11726
11737
|
}
|
|
11727
11738
|
}
|
|
11728
11739
|
function w() {
|
|
11729
11740
|
if (n.value >= 0) {
|
|
11730
|
-
const y = n.value,
|
|
11731
|
-
t.value.splice(y + 1, 0, ...
|
|
11741
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11742
|
+
t.value.splice(y + 1, 0, ...x), n.value = y + 1;
|
|
11732
11743
|
}
|
|
11733
11744
|
}
|
|
11734
11745
|
function k() {
|
|
@@ -11740,32 +11751,32 @@ function $u(e, t) {
|
|
|
11740
11751
|
function O(y) {
|
|
11741
11752
|
if (y.length % 2 !== 0)
|
|
11742
11753
|
return !1;
|
|
11743
|
-
let
|
|
11754
|
+
let x = "";
|
|
11744
11755
|
for (const M of y)
|
|
11745
11756
|
if (M === "(")
|
|
11746
|
-
|
|
11757
|
+
x += M;
|
|
11747
11758
|
else if (M === ")") {
|
|
11748
|
-
if (!
|
|
11759
|
+
if (!x.endsWith("("))
|
|
11749
11760
|
return !1;
|
|
11750
|
-
|
|
11761
|
+
x = x.slice(0, -1);
|
|
11751
11762
|
}
|
|
11752
|
-
return
|
|
11763
|
+
return x.length === 0;
|
|
11753
11764
|
}
|
|
11754
11765
|
function b() {
|
|
11755
11766
|
const y = t.value.length;
|
|
11756
11767
|
if (!y)
|
|
11757
11768
|
return !0;
|
|
11758
|
-
let
|
|
11769
|
+
let x = !0, M = !0;
|
|
11759
11770
|
if (e.editorType !== "sort") {
|
|
11760
11771
|
t.value[y - 1].relation = ct.Empty, M = !t.value.slice(0, -1).some(
|
|
11761
|
-
(
|
|
11772
|
+
(F) => F.relation === ct.Empty || !F.relation
|
|
11762
11773
|
);
|
|
11763
|
-
const
|
|
11764
|
-
|
|
11774
|
+
const E = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11775
|
+
x = O(E);
|
|
11765
11776
|
}
|
|
11766
11777
|
const I = t.value.some((R) => !R[i]);
|
|
11767
11778
|
return [
|
|
11768
|
-
{ result:
|
|
11779
|
+
{ result: x, message: "括号不匹配,请检查。" },
|
|
11769
11780
|
{ result: M, message: "关系设置不完整,请检查。" },
|
|
11770
11781
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11771
11782
|
].find((R) => !R.result);
|
|
@@ -11810,11 +11821,11 @@ const en = /* @__PURE__ */ oe({
|
|
|
11810
11821
|
activeRowIndex: O,
|
|
11811
11822
|
onSelectRow: b,
|
|
11812
11823
|
canClear: y,
|
|
11813
|
-
canMove:
|
|
11824
|
+
canMove: x,
|
|
11814
11825
|
validateCondition: M,
|
|
11815
11826
|
resetActiveRow: I
|
|
11816
11827
|
} = $u(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11817
|
-
function
|
|
11828
|
+
function E() {
|
|
11818
11829
|
return e.editorType === "sort" ? v(Vu, {
|
|
11819
11830
|
conditions: c.value,
|
|
11820
11831
|
fields: u.value,
|
|
@@ -11837,8 +11848,8 @@ const en = /* @__PURE__ */ oe({
|
|
|
11837
11848
|
formContextData: i.value
|
|
11838
11849
|
}, null);
|
|
11839
11850
|
}
|
|
11840
|
-
const
|
|
11841
|
-
async function
|
|
11851
|
+
const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && F.value);
|
|
11852
|
+
async function T() {
|
|
11842
11853
|
if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
|
|
11843
11854
|
o == null || o.show();
|
|
11844
11855
|
const j = await e.onSubmitModal({
|
|
@@ -11852,7 +11863,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11852
11863
|
}
|
|
11853
11864
|
return !0;
|
|
11854
11865
|
}
|
|
11855
|
-
const
|
|
11866
|
+
const P = {
|
|
11856
11867
|
title: R.value,
|
|
11857
11868
|
width: 800,
|
|
11858
11869
|
height: 600,
|
|
@@ -11877,11 +11888,11 @@ const en = /* @__PURE__ */ oe({
|
|
|
11877
11888
|
disabled: S,
|
|
11878
11889
|
handle: async (j) => {
|
|
11879
11890
|
const G = M();
|
|
11880
|
-
return
|
|
11891
|
+
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
11881
11892
|
}
|
|
11882
11893
|
}]
|
|
11883
11894
|
};
|
|
11884
|
-
async function
|
|
11895
|
+
async function V() {
|
|
11885
11896
|
if (e.beforeOpen)
|
|
11886
11897
|
try {
|
|
11887
11898
|
o == null || o.show();
|
|
@@ -11913,10 +11924,10 @@ const en = /* @__PURE__ */ oe({
|
|
|
11913
11924
|
}
|
|
11914
11925
|
return I(), !0;
|
|
11915
11926
|
}
|
|
11916
|
-
function
|
|
11927
|
+
function _() {
|
|
11917
11928
|
t.emit("update:modelValue", "");
|
|
11918
11929
|
}
|
|
11919
|
-
function
|
|
11930
|
+
function L(j) {
|
|
11920
11931
|
t.emit("update:modelValue", j);
|
|
11921
11932
|
}
|
|
11922
11933
|
return () => v(Rt, {
|
|
@@ -11928,20 +11939,20 @@ const en = /* @__PURE__ */ oe({
|
|
|
11928
11939
|
enableClear: e.enableClear,
|
|
11929
11940
|
buttonContent: s,
|
|
11930
11941
|
buttonBehavior: "Modal",
|
|
11931
|
-
modalOptions:
|
|
11932
|
-
beforeOpen:
|
|
11933
|
-
onClear:
|
|
11942
|
+
modalOptions: P,
|
|
11943
|
+
beforeOpen: V,
|
|
11944
|
+
onClear: _,
|
|
11934
11945
|
enableTitle: e.enableTitle,
|
|
11935
|
-
"onUpdate:modelValue":
|
|
11946
|
+
"onUpdate:modelValue": L
|
|
11936
11947
|
}, {
|
|
11937
11948
|
default: () => [v("div", {
|
|
11938
11949
|
class: "h-100 d-flex flex-column"
|
|
11939
11950
|
}, [v("div", {
|
|
11940
11951
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
11941
11952
|
class: "shading-border-top"
|
|
11942
|
-
}, null),
|
|
11953
|
+
}, null), E(), v(Lu, {
|
|
11943
11954
|
canClear: y,
|
|
11944
|
-
canMove:
|
|
11955
|
+
canMove: x,
|
|
11945
11956
|
onAdd: r,
|
|
11946
11957
|
onClear: m,
|
|
11947
11958
|
onMoveBottom: d,
|
|
@@ -11951,7 +11962,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11951
11962
|
}, null)])]
|
|
11952
11963
|
});
|
|
11953
11964
|
}
|
|
11954
|
-
}),
|
|
11965
|
+
}), Md = {
|
|
11955
11966
|
install(e) {
|
|
11956
11967
|
e.component(en.name, en);
|
|
11957
11968
|
},
|
|
@@ -11966,7 +11977,7 @@ export {
|
|
|
11966
11977
|
ct as FilterRelation,
|
|
11967
11978
|
bu as SortType,
|
|
11968
11979
|
Re as ValueType,
|
|
11969
|
-
|
|
11980
|
+
Md as default,
|
|
11970
11981
|
ta as filterConditionEditorProps,
|
|
11971
11982
|
cr as propsResolver,
|
|
11972
11983
|
Cu as treeNodeStatus,
|