@farris/ui-vue 1.6.5-beta.7 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +360 -361
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +524 -520
- 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 +190 -181
- 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 +309 -309
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1125 -1124
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +472 -472
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3387 -3321
- 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 +177 -177
- 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 +644 -644
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1773 -1760
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +879 -869
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +1091 -1077
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +215 -215
- 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 +139 -141
- 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 +1387 -1383
- 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 +217 -217
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +283 -283
- 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 +194 -194
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +463 -462
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +883 -876
- 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 +59 -57
- 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 +739 -739
- 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 +535 -535
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1456 -1443
- 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 +1875 -1866
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +151 -147
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1236 -1233
- 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 +1097 -1083
- 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 +103 -98
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1596 -1593
- 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 +684 -684
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +935 -929
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +190 -192
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +124 -124
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2363 -2278
- 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 +227 -227
- 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/designer/button-edit/index.esm.js +353 -353
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +7 -3
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +38 -33
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +3562 -3536
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +3 -3
- package/designer/data-view/index.umd.cjs +3 -3
- package/designer/farris-designer.all.esm.js +4203 -4193
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/input-group/index.esm.js +97 -97
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1868 -1854
- package/designer/list-view/index.umd.cjs +8 -8
- package/designer/radio-group/index.esm.js +954 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +16195 -16126
- package/farris.all.umd.cjs +30 -30
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
|
@@ -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
|
-
function
|
|
639
|
-
const
|
|
640
|
-
u.value && s.value && c.value && l.value && (u.value.height <
|
|
638
|
+
function M() {
|
|
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 =
|
|
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(),
|
|
654
|
+
L.subtract(o.value);
|
|
655
|
+
const j = L.x, G = L.y;
|
|
656
|
+
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(), M(), 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
|
-
function
|
|
664
|
+
function E() {
|
|
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
|
-
const j =
|
|
687
|
+
const j = E();
|
|
688
688
|
r.value = j;
|
|
689
689
|
}
|
|
690
|
-
o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove",
|
|
690
|
+
o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", 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 O(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) => O(j)
|
|
703
703
|
}, null), v("div", {
|
|
704
704
|
class: "fv-resizable-handle fv-resizable-e",
|
|
705
705
|
type: "e",
|
|
706
|
-
onMousedown: (j) =>
|
|
706
|
+
onMousedown: (j) => O(j)
|
|
707
707
|
}, null), v("div", {
|
|
708
708
|
class: "fv-resizable-handle fv-resizable-s",
|
|
709
709
|
type: "s",
|
|
710
|
-
onMousedown: (j) =>
|
|
710
|
+
onMousedown: (j) => O(j)
|
|
711
711
|
}, null), v("div", {
|
|
712
712
|
class: "fv-resizable-handle fv-resizable-w",
|
|
713
713
|
type: "w",
|
|
714
|
-
onMousedown: (j) =>
|
|
714
|
+
onMousedown: (j) => O(j)
|
|
715
715
|
}, null), v("div", {
|
|
716
716
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
717
717
|
type: "ne",
|
|
718
|
-
onMousedown: (j) =>
|
|
718
|
+
onMousedown: (j) => O(j)
|
|
719
719
|
}, null), v("div", {
|
|
720
720
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
721
721
|
type: "se",
|
|
722
|
-
onMousedown: (j) =>
|
|
722
|
+
onMousedown: (j) => O(j)
|
|
723
723
|
}, null), v("div", {
|
|
724
724
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
725
725
|
type: "sw",
|
|
726
|
-
onMousedown: (j) =>
|
|
726
|
+
onMousedown: (j) => O(j)
|
|
727
727
|
}, null), v("div", {
|
|
728
728
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
729
729
|
type: "nw",
|
|
730
|
-
onMousedown: (j) =>
|
|
730
|
+
onMousedown: (j) => O(j)
|
|
731
731
|
}, null)]);
|
|
732
732
|
}
|
|
733
|
-
function 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 = E(), d.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
|
|
737
737
|
size: u.value,
|
|
738
738
|
position: {
|
|
739
739
|
x: 0,
|
|
@@ -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,117 +759,117 @@ 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(
|
|
801
|
-
if (
|
|
800
|
+
function m(x, E) {
|
|
801
|
+
if (E.tagName === "BUTTON")
|
|
802
802
|
return !1;
|
|
803
|
-
if (
|
|
803
|
+
if (E === x)
|
|
804
804
|
return !0;
|
|
805
|
-
for (const I in
|
|
806
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
805
|
+
for (const I in E.children)
|
|
806
|
+
if (Object.prototype.hasOwnProperty.call(E.children, I) && m(x, E.children[I]))
|
|
807
807
|
return !0;
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
810
|
function d() {
|
|
811
|
-
var R,
|
|
812
|
-
let
|
|
813
|
-
l.value === "x" ? (
|
|
814
|
-
const I = `translate3d(${Math.round(
|
|
815
|
-
a.value && (a.value.style.transform = I), r.value.x =
|
|
811
|
+
var R, O;
|
|
812
|
+
let x = f.value.x + h.value.x, E = f.value.y + h.value.y;
|
|
813
|
+
l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (E = ((O = c.value) == null ? void 0 : O.y) || 0, f.value.y = 0);
|
|
814
|
+
const I = `translate3d(${Math.round(x)}px, ${Math.round(E)}px, 0px)`;
|
|
815
|
+
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = E;
|
|
816
816
|
}
|
|
817
817
|
function g() {
|
|
818
818
|
if (!u.value || !a.value)
|
|
819
819
|
return null;
|
|
820
|
-
const
|
|
821
|
-
top:
|
|
822
|
-
right:
|
|
823
|
-
bottom:
|
|
824
|
-
left:
|
|
820
|
+
const x = u.value.getBoundingClientRect(), E = a.value.getBoundingClientRect(), I = {
|
|
821
|
+
top: x.top < E.top,
|
|
822
|
+
right: x.right > E.right,
|
|
823
|
+
bottom: x.bottom > E.bottom,
|
|
824
|
+
left: x.left < E.left
|
|
825
825
|
};
|
|
826
|
-
return I.top || (f.value.y -=
|
|
826
|
+
return I.top || (f.value.y -= E.top - x.top), I.bottom || (f.value.y -= E.bottom - x.bottom), I.right || (f.value.x -= E.right - x.right), I.left || (f.value.x -= E.left - x.left), d(), I;
|
|
827
827
|
}
|
|
828
|
-
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
|
-
function
|
|
841
|
+
function M() {
|
|
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
|
|
853
|
-
i.value !== void 0 &&
|
|
852
|
+
const E = x.target || x.srcElement;
|
|
853
|
+
i.value !== void 0 && E && !m(E, i.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), M(), B());
|
|
854
854
|
}
|
|
855
|
-
function y(
|
|
856
|
-
if (o.value &&
|
|
857
|
-
if (
|
|
858
|
-
i.value =
|
|
855
|
+
function y(x, E, I) {
|
|
856
|
+
if (o.value && E) {
|
|
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;
|
|
862
862
|
else if (typeof e.dragHandle == "string") {
|
|
863
|
-
const R =
|
|
863
|
+
const R = E.querySelector(e.dragHandle);
|
|
864
864
|
R && (i.value = R);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
a.value =
|
|
867
|
+
a.value = E, u.value = I, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", b)) : o.value = !1;
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
return {
|
|
871
871
|
registerDraggle: y,
|
|
872
|
-
resetTranslate:
|
|
872
|
+
resetTranslate: M
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
875
|
function Vn(e, t) {
|
|
@@ -906,11 +906,11 @@ const at = /* @__PURE__ */ oe({
|
|
|
906
906
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
907
907
|
setup(e, t) {
|
|
908
908
|
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), h = C(e.showCloseButton), f = C(e.showMaxButton), r = C(!1), m = C(e.dialogType), d = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
|
|
909
|
-
t:
|
|
910
|
-
} =
|
|
911
|
-
w.value === "错误提示" && (w.value =
|
|
909
|
+
t: M
|
|
910
|
+
} = St();
|
|
911
|
+
w.value === "错误提示" && (w.value = M("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
|
-
text:
|
|
926
|
+
text: M("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
|
-
text:
|
|
933
|
+
text: M("messageBox.ok") || "确定",
|
|
934
934
|
class: "btn btn-primary",
|
|
935
|
-
handle: (
|
|
936
|
-
y(
|
|
935
|
+
handle: ($) => {
|
|
936
|
+
y($, !0);
|
|
937
937
|
}
|
|
938
|
-
}],
|
|
939
|
-
renderResizeBar:
|
|
940
|
-
maximize:
|
|
941
|
-
restore:
|
|
942
|
-
boundingElement:
|
|
943
|
-
resizedEventParam:
|
|
938
|
+
}], E = C(e.buttons && e.buttons.length ? e.buttons : x), I = N(() => !!c.value), R = N(() => !!p.value && !!E.value), O = C(), F = C(), S = C(!1), {
|
|
939
|
+
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(O.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 && (E.value = $.buttons), $.title && (w.value = $.title);
|
|
1046
1046
|
}
|
|
1047
1047
|
let ze = null, Oe = null;
|
|
1048
1048
|
Da(() => {
|
|
1049
1049
|
b.value = ce();
|
|
1050
1050
|
}), be(() => {
|
|
1051
|
-
|
|
1051
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(O.value, F.value, _.value)), X.value && document.body.classList.add("modal-open"), ze = al(e, t), Oe = ol(e, t);
|
|
1052
1052
|
}), wt(() => {
|
|
1053
1053
|
G && G(), ze && ze.remove(), Oe && Oe.remove();
|
|
1054
1054
|
}), t.expose({
|
|
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
|
-
}, [
|
|
1085
|
-
const Q = C(
|
|
1084
|
+
}, [E.value && E.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: O,
|
|
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]
|
|
@@ -1676,16 +1676,16 @@ function zn(e, t, n) {
|
|
|
1676
1676
|
const p = d.$converter || g;
|
|
1677
1677
|
return typeof p == "string" && p && a.has(p) ? a.get(p) || null : p || null;
|
|
1678
1678
|
}
|
|
1679
|
-
function h(d, g, p, w, k, B = "",
|
|
1679
|
+
function h(d, g, p, w, k, B = "", M = "") {
|
|
1680
1680
|
return Object.keys(d).map((y) => {
|
|
1681
|
-
const
|
|
1682
|
-
|
|
1683
|
-
const
|
|
1684
|
-
let j = c(I,
|
|
1681
|
+
const x = C(1), E = y, I = d[y], R = Object.keys(I), O = I.title, F = I.type, S = o.get(F) || { type: "input-group", enableClear: !1 }, T = I.editor ? Object.assign({}, S, I.editor) : Object.assign({}, S), P = u(R, I, g), V = s(R, I, g);
|
|
1682
|
+
T.readonly = T.readonly === void 0 ? V() : T.readonly;
|
|
1683
|
+
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, M) : [], L = !0;
|
|
1684
|
+
let j = c(I, M);
|
|
1685
1685
|
const G = N({
|
|
1686
1686
|
get() {
|
|
1687
|
-
if (
|
|
1688
|
-
if (["class", "style"].find((de) => de ===
|
|
1687
|
+
if (x.value) {
|
|
1688
|
+
if (["class", "style"].find((de) => de === E) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
1689
1689
|
return j.convertFrom(p, y, k, B);
|
|
1690
1690
|
const le = p[y];
|
|
1691
1691
|
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (le === void 0 || typeof le == "string" && le === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : le;
|
|
@@ -1693,45 +1693,45 @@ function zn(e, t, n) {
|
|
|
1693
1693
|
return null;
|
|
1694
1694
|
},
|
|
1695
1695
|
set(le) {
|
|
1696
|
-
|
|
1696
|
+
x.value += 1, j && j.convertTo ? (j.convertTo(w, y, le, k, B), j.convertTo(p, y, le, k, B)) : (w[y] = le, p[y] = le);
|
|
1697
1697
|
}
|
|
1698
|
-
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID:
|
|
1699
|
-
return g[
|
|
1698
|
+
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: E, propertyName: O, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: V, cascadeConfig: _, hideCascadeTitle: L, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
1699
|
+
return g[E] = X, X;
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
1702
|
function f(d, g, p = {}) {
|
|
1703
1703
|
const w = {}, k = e[d];
|
|
1704
|
-
return k && k.categories ? Object.keys(k.categories).map((
|
|
1705
|
-
const b = k.categories[
|
|
1706
|
-
return { categoryId:
|
|
1704
|
+
return k && k.categories ? Object.keys(k.categories).map((M) => {
|
|
1705
|
+
const b = k.categories[M], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
|
|
1706
|
+
return { categoryId: M, categoryName: y, properties: x };
|
|
1707
1707
|
}) : [];
|
|
1708
1708
|
}
|
|
1709
1709
|
function r(d, g, p, w, k = "") {
|
|
1710
|
-
const B = g.$ref.schema,
|
|
1710
|
+
const B = g.$ref.schema, M = g.$ref.converter, b = p[B], y = b.type, x = n(b), E = {}, I = e[y];
|
|
1711
1711
|
if (I && I.categories) {
|
|
1712
|
-
const R = I.categories[d],
|
|
1713
|
-
|
|
1714
|
-
R.properties[
|
|
1712
|
+
const R = I.categories[d], O = R == null ? void 0 : R.title;
|
|
1713
|
+
M && Object.keys(R.properties).forEach((T) => {
|
|
1714
|
+
R.properties[T].$converter = M;
|
|
1715
1715
|
});
|
|
1716
|
-
const
|
|
1717
|
-
return { categoryId: d, categoryName:
|
|
1716
|
+
const F = (R == null ? void 0 : R.properties) || {}, S = h(F, E, x, b, w, k);
|
|
1717
|
+
return { categoryId: d, categoryName: O, properties: S };
|
|
1718
1718
|
}
|
|
1719
1719
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
1720
1720
|
}
|
|
1721
1721
|
function m(d, g, p, w, k) {
|
|
1722
|
-
const B = d.type,
|
|
1722
|
+
const B = d.type, M = n(d), b = {};
|
|
1723
1723
|
let y = k || e[B];
|
|
1724
1724
|
if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
|
|
1725
|
-
const
|
|
1726
|
-
return Object.keys(y.categories).map((
|
|
1727
|
-
const I = y.categories[
|
|
1725
|
+
const x = [];
|
|
1726
|
+
return Object.keys(y.categories).map((E) => {
|
|
1727
|
+
const I = y.categories[E];
|
|
1728
1728
|
if (I.$ref) {
|
|
1729
|
-
|
|
1729
|
+
x.push(r(E, I, d, g, w));
|
|
1730
1730
|
return;
|
|
1731
1731
|
}
|
|
1732
|
-
const R = I == null ? void 0 : I.title,
|
|
1733
|
-
|
|
1734
|
-
}),
|
|
1732
|
+
const R = I == null ? void 0 : I.title, O = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName, S = I == null ? void 0 : I.hide, T = I == null ? void 0 : I.hideTitle, P = h(I.properties || {}, b, M, d, g, w, I.$converter), { setPropertyRelates: V } = I, _ = I == null ? void 0 : I.parentPropertyID;
|
|
1733
|
+
x.push({ categoryId: E, categoryName: R, tabId: O, tabName: F, hide: S, properties: P, hideTitle: T, setPropertyRelates: V, parentPropertyID: _ });
|
|
1734
|
+
}), 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(O, 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(O) === !1 && (F = O, O = []);
|
|
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 = O || []), U.isContainer === void 0 && (U.isContainer = w), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = c.body);
|
|
2100
2100
|
var ae = i({
|
|
2101
2101
|
containers: U.containers,
|
|
2102
2102
|
start: Oe,
|
|
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, E(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 = E(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 = E(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 === E(z)) && (G = E(z)), (D === null && H || D !== z && D !== E(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 + M(pe) / 2);
|
|
2388
2388
|
}
|
|
2389
2389
|
function Me(pe) {
|
|
2390
|
-
return pe ?
|
|
2390
|
+
return pe ? E(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(O) {
|
|
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(O))
|
|
2406
|
+
return T;
|
|
2407
2407
|
return null;
|
|
2408
2408
|
}
|
|
2409
|
-
function m(
|
|
2410
|
-
const
|
|
2411
|
-
return
|
|
2412
|
-
const
|
|
2413
|
-
|
|
2414
|
-
}),
|
|
2409
|
+
function m(O) {
|
|
2410
|
+
const F = [];
|
|
2411
|
+
return O.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(O, 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](O, V[S], T) : l.navigator.msPointerEnabled ? u[F](O, _[S], T) : (u[F](O, P[S], T), u[F](O, S, T));
|
|
2431
2431
|
}
|
|
2432
|
-
function g(
|
|
2433
|
-
if (
|
|
2434
|
-
return
|
|
2435
|
-
if (
|
|
2436
|
-
return
|
|
2437
|
-
if (
|
|
2438
|
-
return
|
|
2439
|
-
var
|
|
2440
|
-
if (
|
|
2441
|
-
return
|
|
2432
|
+
function g(O) {
|
|
2433
|
+
if (O.touches !== void 0)
|
|
2434
|
+
return O.touches.length;
|
|
2435
|
+
if (O.which !== void 0 && O.which !== 0)
|
|
2436
|
+
return O.which;
|
|
2437
|
+
if (O.buttons !== void 0)
|
|
2438
|
+
return O.buttons;
|
|
2439
|
+
var F = O.button;
|
|
2440
|
+
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(O, F, S) {
|
|
2444
|
+
O = O || {};
|
|
2445
|
+
var T = O.className || "", P;
|
|
2446
|
+
return O.className += " gu-hide", P = c.elementFromPoint(F, S), O.className = T, P;
|
|
2447
2447
|
}
|
|
2448
2448
|
function w() {
|
|
2449
2449
|
return !1;
|
|
@@ -2451,42 +2451,42 @@ var zl = { exports: {} };
|
|
|
2451
2451
|
function k() {
|
|
2452
2452
|
return !0;
|
|
2453
2453
|
}
|
|
2454
|
-
function B(
|
|
2455
|
-
return
|
|
2454
|
+
function B(O) {
|
|
2455
|
+
return O.width || O.right - O.left;
|
|
2456
2456
|
}
|
|
2457
|
-
function O
|
|
2458
|
-
return
|
|
2457
|
+
function M(O) {
|
|
2458
|
+
return O.height || O.bottom - O.top;
|
|
2459
2459
|
}
|
|
2460
|
-
function b(
|
|
2461
|
-
return
|
|
2460
|
+
function b(O) {
|
|
2461
|
+
return O.parentNode === c ? null : O.parentNode;
|
|
2462
2462
|
}
|
|
2463
|
-
function y(
|
|
2464
|
-
return
|
|
2463
|
+
function y(O) {
|
|
2464
|
+
return O.tagName === "INPUT" || O.tagName === "TEXTAREA" || O.tagName === "SELECT" || x(O);
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2467
|
-
return !
|
|
2466
|
+
function x(O) {
|
|
2467
|
+
return !O || O.contentEditable === "false" ? !1 : O.contentEditable === "true" ? !0 : x(b(O));
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2470
|
-
return
|
|
2471
|
-
function
|
|
2472
|
-
var S =
|
|
2469
|
+
function E(O) {
|
|
2470
|
+
return O.nextElementSibling || F();
|
|
2471
|
+
function F() {
|
|
2472
|
+
var S = O;
|
|
2473
2473
|
do
|
|
2474
2474
|
S = S.nextSibling;
|
|
2475
2475
|
while (S && S.nodeType !== 1);
|
|
2476
2476
|
return S;
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
|
-
function I(
|
|
2480
|
-
return
|
|
2479
|
+
function I(O) {
|
|
2480
|
+
return O.targetTouches && O.targetTouches.length ? O.targetTouches[0] : O.changedTouches && O.changedTouches.length ? O.changedTouches[0] : O;
|
|
2481
2481
|
}
|
|
2482
|
-
function R(
|
|
2483
|
-
var S = I(
|
|
2482
|
+
function R(O, 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 O in T && !(O in S) && T[O] in S && (O = T[O]), S[O];
|
|
2490
2490
|
}
|
|
2491
2491
|
a.exports = f;
|
|
2492
2492
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2549,62 +2549,62 @@ var zl = { exports: {} };
|
|
|
2549
2549
|
remove: h,
|
|
2550
2550
|
fabricate: p
|
|
2551
2551
|
};
|
|
2552
|
-
function r(b, y,
|
|
2553
|
-
return b.addEventListener(y,
|
|
2552
|
+
function r(b, y, x, E) {
|
|
2553
|
+
return b.addEventListener(y, x, E);
|
|
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, E) {
|
|
2559
|
+
return b.removeEventListener(y, x, E);
|
|
2560
2560
|
}
|
|
2561
|
-
function g(b, y,
|
|
2562
|
-
var
|
|
2563
|
-
if (
|
|
2564
|
-
return b.detachEvent("on" + y,
|
|
2561
|
+
function g(b, y, x) {
|
|
2562
|
+
var E = B(b, y, x);
|
|
2563
|
+
if (E)
|
|
2564
|
+
return b.detachEvent("on" + y, E);
|
|
2565
2565
|
}
|
|
2566
|
-
function p(b, y,
|
|
2567
|
-
var
|
|
2568
|
-
b.dispatchEvent ? b.dispatchEvent(
|
|
2566
|
+
function p(b, y, x) {
|
|
2567
|
+
var E = u.indexOf(y) === -1 ? R() : I();
|
|
2568
|
+
b.dispatchEvent ? b.dispatchEvent(E) : b.fireEvent("on" + y, E);
|
|
2569
2569
|
function I() {
|
|
2570
|
-
var
|
|
2571
|
-
return s.createEvent ? (
|
|
2570
|
+
var O;
|
|
2571
|
+
return s.createEvent ? (O = s.createEvent("Event"), O.initEvent(y, !0, !0)) : s.createEventObject && (O = s.createEventObject()), O;
|
|
2572
2572
|
}
|
|
2573
2573
|
function R() {
|
|
2574
|
-
return new i(y, { detail:
|
|
2574
|
+
return new i(y, { detail: 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
|
|
2587
|
+
function k(b, y, x) {
|
|
2588
|
+
var E = B(b, y, x) || w(b, y, x);
|
|
2589
2589
|
return f.push({
|
|
2590
|
-
wrapper:
|
|
2590
|
+
wrapper: E,
|
|
2591
2591
|
element: b,
|
|
2592
2592
|
type: y,
|
|
2593
|
-
fn:
|
|
2594
|
-
}),
|
|
2593
|
+
fn: x
|
|
2594
|
+
}), E;
|
|
2595
2595
|
}
|
|
2596
|
-
function B(b, y,
|
|
2597
|
-
var
|
|
2598
|
-
if (
|
|
2599
|
-
var I = f[
|
|
2600
|
-
return f.splice(
|
|
2596
|
+
function B(b, y, x) {
|
|
2597
|
+
var E = M(b, y, x);
|
|
2598
|
+
if (E) {
|
|
2599
|
+
var I = f[E].wrapper;
|
|
2600
|
+
return f.splice(E, 1), I;
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
var
|
|
2605
|
-
for (
|
|
2606
|
-
if (I = f[
|
|
2607
|
-
return
|
|
2603
|
+
function M(b, y, x) {
|
|
2604
|
+
var E, I;
|
|
2605
|
+
for (E = 0; E < f.length; E++)
|
|
2606
|
+
if (I = f[E], I.element === b && I.type === y && I.fn === x)
|
|
2607
|
+
return E;
|
|
2608
2608
|
}
|
|
2609
2609
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2610
2610
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2662,33 +2662,33 @@ var zl = { exports: {} };
|
|
|
2662
2662
|
u = c;
|
|
2663
2663
|
}
|
|
2664
2664
|
})();
|
|
2665
|
-
function h(
|
|
2665
|
+
function h(M) {
|
|
2666
2666
|
if (i === setTimeout)
|
|
2667
|
-
return setTimeout(
|
|
2667
|
+
return setTimeout(M, 0);
|
|
2668
2668
|
if ((i === s || !i) && setTimeout)
|
|
2669
|
-
return i = setTimeout, setTimeout(
|
|
2669
|
+
return i = setTimeout, setTimeout(M, 0);
|
|
2670
2670
|
try {
|
|
2671
|
-
return i(
|
|
2671
|
+
return i(M, 0);
|
|
2672
2672
|
} catch {
|
|
2673
2673
|
try {
|
|
2674
|
-
return i.call(null,
|
|
2674
|
+
return i.call(null, M, 0);
|
|
2675
2675
|
} catch {
|
|
2676
|
-
return i.call(this,
|
|
2676
|
+
return i.call(this, M, 0);
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
}
|
|
2680
|
-
function f(
|
|
2680
|
+
function f(M) {
|
|
2681
2681
|
if (u === clearTimeout)
|
|
2682
|
-
return clearTimeout(
|
|
2682
|
+
return clearTimeout(M);
|
|
2683
2683
|
if ((u === c || !u) && clearTimeout)
|
|
2684
|
-
return u = clearTimeout, clearTimeout(
|
|
2684
|
+
return u = clearTimeout, clearTimeout(M);
|
|
2685
2685
|
try {
|
|
2686
|
-
return u(
|
|
2686
|
+
return u(M);
|
|
2687
2687
|
} catch {
|
|
2688
2688
|
try {
|
|
2689
|
-
return u.call(null,
|
|
2689
|
+
return u.call(null, M);
|
|
2690
2690
|
} catch {
|
|
2691
|
-
return u.call(this,
|
|
2691
|
+
return u.call(this, M);
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
@@ -2698,38 +2698,38 @@ var zl = { exports: {} };
|
|
|
2698
2698
|
}
|
|
2699
2699
|
function w() {
|
|
2700
2700
|
if (!m) {
|
|
2701
|
-
var
|
|
2701
|
+
var M = h(p);
|
|
2702
2702
|
m = !0;
|
|
2703
2703
|
for (var b = r.length; b; ) {
|
|
2704
2704
|
for (d = r, r = []; ++g < b; )
|
|
2705
2705
|
d && d[g].run();
|
|
2706
2706
|
g = -1, b = r.length;
|
|
2707
2707
|
}
|
|
2708
|
-
d = null, m = !1, f(
|
|
2708
|
+
d = null, m = !1, f(M);
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
|
-
l.nextTick = function(
|
|
2711
|
+
l.nextTick = function(M) {
|
|
2712
2712
|
var b = new Array(arguments.length - 1);
|
|
2713
2713
|
if (arguments.length > 1)
|
|
2714
2714
|
for (var y = 1; y < arguments.length; y++)
|
|
2715
2715
|
b[y - 1] = arguments[y];
|
|
2716
|
-
r.push(new k(
|
|
2716
|
+
r.push(new k(M, b)), r.length === 1 && !m && h(w);
|
|
2717
2717
|
};
|
|
2718
|
-
function k(
|
|
2719
|
-
this.fun =
|
|
2718
|
+
function k(M, b) {
|
|
2719
|
+
this.fun = M, this.array = b;
|
|
2720
2720
|
}
|
|
2721
2721
|
k.prototype.run = function() {
|
|
2722
2722
|
this.fun.apply(null, this.array);
|
|
2723
2723
|
}, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
|
|
2724
2724
|
function B() {
|
|
2725
2725
|
}
|
|
2726
|
-
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(
|
|
2726
|
+
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(M) {
|
|
2727
2727
|
return [];
|
|
2728
|
-
}, l.binding = function(
|
|
2728
|
+
}, l.binding = function(M) {
|
|
2729
2729
|
throw new Error("process.binding is not supported");
|
|
2730
2730
|
}, l.cwd = function() {
|
|
2731
2731
|
return "/";
|
|
2732
|
-
}, l.chdir = function(
|
|
2732
|
+
}, l.chdir = function(M) {
|
|
2733
2733
|
throw new Error("process.chdir is not supported");
|
|
2734
2734
|
}, l.umask = function() {
|
|
2735
2735
|
return 0;
|
|
@@ -2809,40 +2809,40 @@ const Hl = {
|
|
|
2809
2809
|
const {
|
|
2810
2810
|
locale: n,
|
|
2811
2811
|
t: a
|
|
2812
|
-
} =
|
|
2813
|
-
const
|
|
2812
|
+
} = St(), o = C(e.animate), l = "fadeOut", i = N(() => e.options), u = C(!1), s = N(() => i.value.title && i.value.message), c = N(() => !i.value.title && i.value.message), h = N(() => {
|
|
2813
|
+
const M = {
|
|
2814
2814
|
animated: u.value,
|
|
2815
2815
|
toast: !0,
|
|
2816
2816
|
"toast--only-content": !s.value
|
|
2817
2817
|
};
|
|
2818
|
-
return
|
|
2818
|
+
return M[e.animate] = !1, M[l] = u.value, M["toasty-type-" + i.value.type] = !0, i.value.theme && (M[i.value.theme] = !0), M;
|
|
2819
2819
|
}), f = N(() => {
|
|
2820
|
-
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2820
|
+
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, 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"
|
|
2827
2827
|
} : {});
|
|
2828
|
-
function p(
|
|
2829
|
-
|
|
2828
|
+
function p(M) {
|
|
2829
|
+
M.stopPropagation(), M.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2830
2830
|
t.emit("close", i.value);
|
|
2831
2831
|
}, 200);
|
|
2832
2832
|
}
|
|
2833
|
-
function w(
|
|
2833
|
+
function w(M, b) {
|
|
2834
2834
|
}
|
|
2835
|
-
function k(
|
|
2836
|
-
return `f-preten-link ${
|
|
2835
|
+
function k(M) {
|
|
2836
|
+
return `f-preten-link ${M.customClass ? M.customClass : ""}`;
|
|
2837
2837
|
}
|
|
2838
2838
|
Z(o, () => {
|
|
2839
2839
|
o.value;
|
|
2840
2840
|
});
|
|
2841
2841
|
const B = () => {
|
|
2842
|
-
var
|
|
2842
|
+
var M;
|
|
2843
2843
|
return v(ot, null, [v("div", {
|
|
2844
2844
|
class: "after-toast-msg text-right"
|
|
2845
|
-
}, [!t.slots.default && ((
|
|
2845
|
+
}, [!t.slots.default && ((M = i.value.buttons) == null ? void 0 : M.map((b) => v("span", {
|
|
2846
2846
|
class: k(b),
|
|
2847
2847
|
onClick: (y) => void 0
|
|
2848
2848
|
}, [b.text]))), t.slots.default && t.slots.default()])]);
|
|
@@ -3213,35 +3213,35 @@ function Ul(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3213
3213
|
} = l, {
|
|
3214
3214
|
columnContext: k,
|
|
3215
3215
|
hasLeftFixedColumn: B,
|
|
3216
|
-
hasRightFixedColumn:
|
|
3216
|
+
hasRightFixedColumn: M
|
|
3217
3217
|
} = i, {
|
|
3218
3218
|
gridDataStyle: b,
|
|
3219
3219
|
leftFixedGridDataStyle: y,
|
|
3220
|
-
rightFixedGridDataStyle:
|
|
3220
|
+
rightFixedGridDataStyle: x
|
|
3221
3221
|
} = m, {
|
|
3222
|
-
renderDataRow:
|
|
3223
|
-
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [
|
|
3224
|
-
function R(
|
|
3225
|
-
const
|
|
3226
|
-
return p.value.filter((
|
|
3222
|
+
renderDataRow: E
|
|
3223
|
+
} = _a(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [E];
|
|
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 O() {
|
|
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(O()), P.push(F()), M.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({
|
|
@@ -3271,21 +3271,21 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3271
3271
|
} = i, s = C(), c = C(), h = C(), f = C(), r = C(), m = C([]), d = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), p = Xa(e, i), w = Ja(e, t), k = Qa(e), {
|
|
3272
3272
|
collapseField: B
|
|
3273
3273
|
} = k, {
|
|
3274
|
-
showLoading:
|
|
3274
|
+
showLoading: M,
|
|
3275
3275
|
renderLoading: b
|
|
3276
3276
|
} = Za(e, s), y = Ka(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3277
|
-
dataView:
|
|
3278
|
-
} = y,
|
|
3277
|
+
dataView: x
|
|
3278
|
+
} = y, E = eo(e, y, i, m, t), {
|
|
3279
3279
|
showSelection: I,
|
|
3280
3280
|
selectedValues: R
|
|
3281
|
-
} =
|
|
3282
|
-
shouldRenderPagination:
|
|
3283
|
-
} =
|
|
3284
|
-
containerStyleObject:
|
|
3285
|
-
} = ao(e),
|
|
3286
|
-
applyCommands:
|
|
3287
|
-
} =
|
|
3288
|
-
|
|
3281
|
+
} = E, O = to(e, m, y, i, E, t), F = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), T = no(e, y), {
|
|
3282
|
+
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
|
|
@@ -3297,9 +3297,9 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3297
3297
|
updateColumnRenderContext: X
|
|
3298
3298
|
} = W;
|
|
3299
3299
|
ce(y, ee);
|
|
3300
|
-
const le = so(e, ve), de = uo(e, t,
|
|
3300
|
+
const le = so(e, ve), de = uo(e, t, E, i), ne = co(e, t, i, de, m), U = fo(e), ae = po(e, ne, U), Xe = mo(e, y, ne, k, i, U, ae), $e = yo(e, l, y, S, 0, Xe), {
|
|
3301
3301
|
getVisualData: Be
|
|
3302
|
-
} = $e, it = vo(e, ve), Je = ho(e,
|
|
3302
|
+
} = $e, it = vo(e, ve), Je = ho(e, E), {
|
|
3303
3303
|
sidebarWidth: rt
|
|
3304
3304
|
} = Je, se = go(e, y, m, ve, $e, S, 0, rt), {
|
|
3305
3305
|
onWheel: pt,
|
|
@@ -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,
|
|
3327
|
+
} = Ul(e, t, h, f, r, it, W, y, ne, k, de, E, O, se, $e, U, m), {
|
|
3328
3328
|
renderGridHeader: fe,
|
|
3329
3329
|
renderGridColumnResizeOverlay: Ne,
|
|
3330
3330
|
shouldShowHeader: Vt
|
|
3331
|
-
} =
|
|
3331
|
+
} = So(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, E, Je, ee, se, Oe, m), {
|
|
3332
3332
|
renderDataGridSidebar: $t
|
|
3333
|
-
} =
|
|
3333
|
+
} = xo(e, de, E, Je, se), {
|
|
3334
3334
|
renderDisableMask: At
|
|
3335
3335
|
} = Fo(), {
|
|
3336
3336
|
renderHorizontalScrollbar: zt
|
|
@@ -3347,7 +3347,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3347
3347
|
be(() => {
|
|
3348
3348
|
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0, S.value + 0 - 1), Ua(c.value, Wt), Pe(), Ue(() => {
|
|
3349
3349
|
c.value && (Ae.value = c.value.clientWidth), h.value && (Oe.value = h.value.clientWidth, ze.value = h.value.clientHeight);
|
|
3350
|
-
})),
|
|
3350
|
+
})), M.value && b();
|
|
3351
3351
|
}), wt(() => {
|
|
3352
3352
|
}), Z(Oe, () => {
|
|
3353
3353
|
c.value && Pe();
|
|
@@ -3359,7 +3359,7 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3359
3359
|
y.expandTo(q), y.reOrderVisibleIndex(), He();
|
|
3360
3360
|
}
|
|
3361
3361
|
function yt() {
|
|
3362
|
-
const q =
|
|
3362
|
+
const q = E.getSelectionRow();
|
|
3363
3363
|
return q ? q.dataIndex - 1 : -1;
|
|
3364
3364
|
}
|
|
3365
3365
|
function Gt() {
|
|
@@ -3375,8 +3375,8 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3375
3375
|
y.insertNewChildDataItems(q, ge);
|
|
3376
3376
|
}
|
|
3377
3377
|
function Yt() {
|
|
3378
|
-
const q = yt(), J =
|
|
3379
|
-
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J &&
|
|
3378
|
+
const q = yt(), J = O.getNextSelectableHierarchyItemId(q);
|
|
3379
|
+
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && O.selectItemById(J);
|
|
3380
3380
|
}
|
|
3381
3381
|
function Tt(q) {
|
|
3382
3382
|
ne.onEditingRow(q);
|
|
@@ -3384,20 +3384,20 @@ 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
|
|
3400
|
-
|
|
3399
|
+
function Y(q) {
|
|
3400
|
+
O.selectItemById(q);
|
|
3401
3401
|
}
|
|
3402
3402
|
function K(q) {
|
|
3403
3403
|
const J = m.value.find((me) => me.raw[i.idField.value] === q);
|
|
@@ -3407,28 +3407,28 @@ const _l = /* @__PURE__ */ oe({
|
|
|
3407
3407
|
de.activeRowById(q);
|
|
3408
3408
|
}
|
|
3409
3409
|
function Te(q) {
|
|
3410
|
-
|
|
3410
|
+
O.selectItemByIds(q);
|
|
3411
3411
|
}
|
|
3412
3412
|
function Ce() {
|
|
3413
|
-
return
|
|
3413
|
+
return E.getSelectedItems();
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3416
|
-
|
|
3415
|
+
function Se() {
|
|
3416
|
+
E.clearSelection();
|
|
3417
3417
|
}
|
|
3418
3418
|
const Me = N(() => !m.value || !m.value.length), {
|
|
3419
3419
|
renderEmpty: pe
|
|
3420
3420
|
} = Oo(e, t);
|
|
3421
3421
|
function Ee() {
|
|
3422
|
-
return
|
|
3422
|
+
return E.getSelectionRow();
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3425
|
-
|
|
3424
|
+
function xe(q) {
|
|
3425
|
+
O.unSelectItemByIds(q);
|
|
3426
3426
|
}
|
|
3427
3427
|
function he() {
|
|
3428
|
-
return
|
|
3428
|
+
return E.currentSelectedDataId.value;
|
|
3429
3429
|
}
|
|
3430
3430
|
function vt(q, J, me) {
|
|
3431
|
-
const ge =
|
|
3431
|
+
const ge = 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
|
-
|
|
3481
|
+
function Sa() {
|
|
3482
|
+
E.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, E);
|
|
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 O;
|
|
3691
3691
|
const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
|
|
3692
3692
|
let i;
|
|
3693
3693
|
function u() {
|
|
@@ -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
|
|
3750
|
-
if (!
|
|
3749
|
+
function M(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(),
|
|
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(), M(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
|
|
3780
|
-
var
|
|
3781
|
-
if (!((
|
|
3779
|
+
function E(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 && (E(), 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: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
|
|
3825
3825
|
schema: t == null ? void 0 : t.schema,
|
|
3826
3826
|
styles: a,
|
|
3827
3827
|
designerClass: o,
|
|
@@ -3837,9 +3837,9 @@ function Zn(e, t, n) {
|
|
|
3837
3837
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
3838
3838
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
|
|
3839
3839
|
onRemoveComponent: y,
|
|
3840
|
-
getCustomButtons:
|
|
3840
|
+
getCustomButtons: x,
|
|
3841
3841
|
onPropertyChanged: R,
|
|
3842
|
-
setComponentBasicInfoMap:
|
|
3842
|
+
setComponentBasicInfoMap: E,
|
|
3843
3843
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
3844
3844
|
}, l;
|
|
3845
3845
|
}
|
|
@@ -4053,7 +4053,7 @@ const mi = "https://json-schema.org/draft/2020-12/schema", yi = "https://farris-
|
|
|
4053
4053
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
4054
4054
|
};
|
|
4055
4055
|
Ve(ki, wi, ln, fi);
|
|
4056
|
-
function
|
|
4056
|
+
function 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(O, F = !0) {
|
|
4664
|
+
n.value = O, F && (t.emit("change", O), t.emit("update:modelValue", O));
|
|
4665
4665
|
}
|
|
4666
|
-
function k(
|
|
4667
|
-
u.value = !1, w(
|
|
4666
|
+
function k(O) {
|
|
4667
|
+
u.value = !1, w(O, !0);
|
|
4668
4668
|
}
|
|
4669
4669
|
Z(
|
|
4670
4670
|
() => e.modelValue,
|
|
4671
|
-
(
|
|
4672
|
-
n.value =
|
|
4671
|
+
(O) => {
|
|
4672
|
+
n.value = O;
|
|
4673
4673
|
}
|
|
4674
4674
|
);
|
|
4675
|
-
function B(
|
|
4676
|
-
m.value = !1, t.emit("blur",
|
|
4675
|
+
function B(O) {
|
|
4676
|
+
m.value = !1, t.emit("blur", O), O.stopPropagation();
|
|
4677
4677
|
}
|
|
4678
|
-
function O
|
|
4679
|
-
t.emit("click",
|
|
4678
|
+
function M(O) {
|
|
4679
|
+
t.emit("click", O), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
|
|
4680
4680
|
}
|
|
4681
|
-
function b(
|
|
4682
|
-
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus",
|
|
4681
|
+
function b(O) {
|
|
4682
|
+
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", O), i.value && !u.value && o.popup()));
|
|
4683
4683
|
}
|
|
4684
|
-
function y(
|
|
4685
|
-
t.emit("input",
|
|
4686
|
-
const
|
|
4687
|
-
a.value =
|
|
4684
|
+
function y(O) {
|
|
4685
|
+
t.emit("input", O);
|
|
4686
|
+
const F = O.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(O) {
|
|
4690
|
+
O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4693
|
-
t.emit("keydown",
|
|
4692
|
+
function E(O) {
|
|
4693
|
+
t.emit("keydown", O);
|
|
4694
4694
|
}
|
|
4695
|
-
function I(
|
|
4696
|
-
|
|
4695
|
+
function I(O) {
|
|
4696
|
+
O.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", O);
|
|
4697
4697
|
}
|
|
4698
|
-
function R(
|
|
4699
|
-
const
|
|
4700
|
-
|
|
4698
|
+
function R(O) {
|
|
4699
|
+
const F = O.target.value;
|
|
4700
|
+
O.stopPropagation(), w(F);
|
|
4701
4701
|
}
|
|
4702
4702
|
return {
|
|
4703
4703
|
hasFocusedTextBox: d,
|
|
@@ -4710,12 +4710,12 @@ function Qi(e, t, n, a, o) {
|
|
|
4710
4710
|
changeTextBoxValue: w,
|
|
4711
4711
|
commitValue: k,
|
|
4712
4712
|
onBlurTextBox: B,
|
|
4713
|
-
onClickTextBox:
|
|
4713
|
+
onClickTextBox: M,
|
|
4714
4714
|
onFocusTextBox: b,
|
|
4715
4715
|
onInput: y,
|
|
4716
|
-
onKeyDownTextBox:
|
|
4716
|
+
onKeyDownTextBox: E,
|
|
4717
4717
|
onKeyUpTextBox: I,
|
|
4718
|
-
onMouseDownTextBox:
|
|
4718
|
+
onMouseDownTextBox: 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, E;
|
|
4787
|
+
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((E = a.value) == null || E.focus({
|
|
4788
4788
|
preventScroll: !0
|
|
4789
4789
|
})), p.value || (p.value = "button-edit_" + w(8)), p.value = p.value + "-textbox";
|
|
4790
4790
|
});
|
|
4791
|
-
const B = C(!1),
|
|
4792
|
-
|
|
4793
|
-
}, b = (
|
|
4794
|
-
|
|
4791
|
+
const B = C(!1), M = (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,
|
|
@@ -4821,7 +4821,7 @@ function Ki(e, t, n) {
|
|
|
4821
4821
|
onKeyup: m,
|
|
4822
4822
|
onMousedown: d,
|
|
4823
4823
|
onCompositionend: b,
|
|
4824
|
-
onCompositionstart:
|
|
4824
|
+
onCompositionstart: M
|
|
4825
4825
|
}, null);
|
|
4826
4826
|
}
|
|
4827
4827
|
function er(e, t, n) {
|
|
@@ -4950,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), M = 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 E = C(x());
|
|
4974
4974
|
an(() => {
|
|
4975
|
-
|
|
4975
|
+
E.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)(), !!E.value && v("div", {
|
|
4979
4979
|
class: "d-flex flex-row mr-2 more-tags",
|
|
4980
4980
|
"more-tags": !0
|
|
4981
4981
|
}, [v("span", {
|
|
4982
4982
|
class: "multi--more-text"
|
|
4983
|
-
}, [ie("+"),
|
|
4983
|
+
}, [ie("+"), E.value])])]) : Ki(e, o, r);
|
|
4984
4984
|
}
|
|
4985
|
-
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: O,
|
|
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: M.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(), O()])]), 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
|
+
onChange: {
|
|
5475
|
+
description: "",
|
|
5476
|
+
type: "string"
|
|
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(() => ({
|
|
@@ -5725,8 +5733,8 @@ const un = {
|
|
|
5725
5733
|
const k = (p = s.value) == null ? void 0 : p[0];
|
|
5726
5734
|
let B = k;
|
|
5727
5735
|
if (!Ie(k)) {
|
|
5728
|
-
const
|
|
5729
|
-
b === "number" &&
|
|
5736
|
+
const M = typeof k, b = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
|
|
5737
|
+
b === "number" && M !== b && (B = Number(k)), b === "boolean" && M !== b && (B = k === "true" ? !0 : k === "false" ? !1 : k), g(B);
|
|
5730
5738
|
}
|
|
5731
5739
|
}
|
|
5732
5740
|
}), t.expose({
|
|
@@ -5756,12 +5764,12 @@ 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) => {
|
|
5763
|
-
const B = m.indexOf(w[e.valueField]),
|
|
5764
|
-
return B -
|
|
5771
|
+
const B = m.indexOf(w[e.valueField]), M = m.indexOf(k[e.valueField]);
|
|
5772
|
+
return B - M;
|
|
5765
5773
|
});
|
|
5766
5774
|
}
|
|
5767
5775
|
function u(r) {
|
|
@@ -5788,9 +5796,9 @@ function Fr(e) {
|
|
|
5788
5796
|
const { url: r, method: m = "GET", headers: d = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, p = m.toLowerCase() === "get" ? { method: m, headers: d } : { method: m, headers: d, body: g };
|
|
5789
5797
|
let w = !1;
|
|
5790
5798
|
fetch(new Request(r, p)).then((k) => {
|
|
5791
|
-
var
|
|
5799
|
+
var M, b;
|
|
5792
5800
|
if (k.status === 200)
|
|
5793
|
-
return w = !!((b = (
|
|
5801
|
+
return w = !!((b = (M = k.headers) == null ? void 0 : M.get("content-type")) != null && b.includes("application/json")), w ? k.text() : k.json();
|
|
5794
5802
|
throw k.status === 405 ? new Error(t("comboList.remoteError")) : new Error(k.statusText);
|
|
5795
5803
|
}).then((k) => {
|
|
5796
5804
|
k.length && (o.value = w ? JSON.parse(k) : k);
|
|
@@ -5816,61 +5824,65 @@ 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 M(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
|
+
M(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 E(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
|
-
|
|
5863
|
+
const T = d(S);
|
|
5864
|
+
e.viewType;
|
|
5865
|
+
const V = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5866
|
+
r.value !== V && (r.value = V, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
5855
5867
|
}
|
|
5856
5868
|
}
|
|
5857
|
-
function
|
|
5869
|
+
function R() {
|
|
5858
5870
|
return h.value;
|
|
5859
5871
|
}
|
|
5860
|
-
function
|
|
5872
|
+
function O(S) {
|
|
5861
5873
|
const {
|
|
5862
5874
|
value: T
|
|
5863
|
-
} =
|
|
5864
|
-
|
|
5875
|
+
} = S.target;
|
|
5876
|
+
E(T), t.emit("input", T);
|
|
5865
5877
|
}
|
|
5866
|
-
function
|
|
5878
|
+
function F() {
|
|
5867
5879
|
o.value.hidePopup();
|
|
5868
5880
|
}
|
|
5869
5881
|
return t.expose({
|
|
5870
|
-
getDisplayText:
|
|
5871
|
-
hidePopup:
|
|
5872
|
-
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
5873
|
-
l.value =
|
|
5882
|
+
getDisplayText: R,
|
|
5883
|
+
hidePopup: F
|
|
5884
|
+
}), Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([S, T, P, V, _]) => {
|
|
5885
|
+
l.value = S, f.value = T, i.value = P, u.value = V, s.value = _;
|
|
5874
5886
|
}), () => v(jn, {
|
|
5875
5887
|
ref: o,
|
|
5876
5888
|
id: e.id,
|
|
@@ -5878,7 +5890,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5878
5890
|
readonly: s.value,
|
|
5879
5891
|
forcePlaceholder: e.forcePlaceholder,
|
|
5880
5892
|
editable: f.value,
|
|
5881
|
-
buttonContent:
|
|
5893
|
+
buttonContent: p.value,
|
|
5882
5894
|
placeholder: e.placeholder === "请选择" ? n("comboList.placeholder") : e.placeholder,
|
|
5883
5895
|
enableClear: i.value,
|
|
5884
5896
|
maxLength: e.maxLength,
|
|
@@ -5887,14 +5899,14 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5887
5899
|
multiSelect: e.multiSelect,
|
|
5888
5900
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
5889
5901
|
modelValue: h.value,
|
|
5890
|
-
"onUpdate:modelValue": (
|
|
5902
|
+
"onUpdate:modelValue": (S) => h.value = S,
|
|
5891
5903
|
focusOnCreated: e.focusOnCreated,
|
|
5892
5904
|
selectOnCreated: e.selectOnCreated,
|
|
5893
|
-
onClear:
|
|
5894
|
-
onClick:
|
|
5895
|
-
onChange:
|
|
5896
|
-
onBlur:
|
|
5897
|
-
onInput:
|
|
5905
|
+
onClear: x,
|
|
5906
|
+
onClick: y,
|
|
5907
|
+
onChange: I,
|
|
5908
|
+
onBlur: b,
|
|
5909
|
+
onInput: O,
|
|
5898
5910
|
beforeOpen: e.beforeOpen,
|
|
5899
5911
|
placement: e.placement,
|
|
5900
5912
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -5902,7 +5914,7 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5902
5914
|
popupOnClick: e.popupOnClick,
|
|
5903
5915
|
limitContentBySpace: !0
|
|
5904
5916
|
}, {
|
|
5905
|
-
default: () => [v(
|
|
5917
|
+
default: () => [v(xr, {
|
|
5906
5918
|
ref: a,
|
|
5907
5919
|
idField: e.idField,
|
|
5908
5920
|
valueField: e.valueField,
|
|
@@ -5915,9 +5927,9 @@ const lt = /* @__PURE__ */ oe({
|
|
|
5915
5927
|
enableSearch: u.value,
|
|
5916
5928
|
maxHeight: e.maxHeight,
|
|
5917
5929
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
5918
|
-
width: e.fitEditor ?
|
|
5919
|
-
onSelectionChange: (
|
|
5920
|
-
|
|
5930
|
+
width: e.fitEditor ? k.value : void 0,
|
|
5931
|
+
onSelectionChange: (S) => {
|
|
5932
|
+
M(S), B();
|
|
5921
5933
|
}
|
|
5922
5934
|
}, null)]
|
|
5923
5935
|
});
|
|
@@ -5933,7 +5945,7 @@ class Tr extends Do {
|
|
|
5933
5945
|
super(t, n);
|
|
5934
5946
|
}
|
|
5935
5947
|
getCommonEditorProperties(t) {
|
|
5936
|
-
var n, a, o
|
|
5948
|
+
var n, a, o;
|
|
5937
5949
|
return {
|
|
5938
5950
|
viewType: {
|
|
5939
5951
|
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
@@ -5967,14 +5979,15 @@ class Tr extends Do {
|
|
|
5967
5979
|
title: "允许编辑",
|
|
5968
5980
|
type: "boolean",
|
|
5969
5981
|
refreshPanelAfterChanged: !0,
|
|
5970
|
-
readonly:
|
|
5971
|
-
|
|
5972
|
-
enableHighlightSearch: {
|
|
5973
|
-
visible: !!((u = t.editor) != null && u.editable),
|
|
5974
|
-
description: "编辑状态下启用高亮搜索",
|
|
5975
|
-
title: "启用高亮搜索",
|
|
5976
|
-
type: "boolean"
|
|
5982
|
+
readonly: !0
|
|
5983
|
+
// readonly: !!propertyData.editor?.multiSelect && (propertyData.editor?.viewType === 'tag' || !propertyData.editor!.viewType)
|
|
5977
5984
|
}
|
|
5985
|
+
// enableHighlightSearch: {
|
|
5986
|
+
// visible: !!propertyData.editor?.editable,
|
|
5987
|
+
// description: "编辑状态下启用高亮搜索",
|
|
5988
|
+
// title: "启用高亮搜索",
|
|
5989
|
+
// type: "boolean"
|
|
5990
|
+
// },
|
|
5978
5991
|
};
|
|
5979
5992
|
}
|
|
5980
5993
|
getEditorProperties(t) {
|
|
@@ -6401,19 +6414,19 @@ function ra(e) {
|
|
|
6401
6414
|
return o.value > 0 && (p.cursor = "n-resize"), p;
|
|
6402
6415
|
});
|
|
6403
6416
|
function h(p, w, k, B) {
|
|
6404
|
-
const
|
|
6405
|
-
if (
|
|
6406
|
-
const { left: b, right: y, width:
|
|
6407
|
-
let
|
|
6408
|
-
B === "right" && (
|
|
6417
|
+
const M = e.value;
|
|
6418
|
+
if (M) {
|
|
6419
|
+
const { left: b, right: y, width: x } = M.getBoundingClientRect();
|
|
6420
|
+
let E = p.clientX - b;
|
|
6421
|
+
B === "right" && (E = y - p.clientX), E > w && (E = w), E < k && (E = k), B === "right" && (E = x - E), a.value = E;
|
|
6409
6422
|
}
|
|
6410
6423
|
}
|
|
6411
6424
|
function f(p, w, k, B) {
|
|
6412
|
-
const
|
|
6413
|
-
if (
|
|
6414
|
-
const { top: b, bottom: y, height:
|
|
6415
|
-
let
|
|
6416
|
-
B === "bottom" && (
|
|
6425
|
+
const M = e.value;
|
|
6426
|
+
if (M) {
|
|
6427
|
+
const { top: b, bottom: y, height: x } = M.getBoundingClientRect();
|
|
6428
|
+
let E = p.clientY - b;
|
|
6429
|
+
B === "bottom" && (E = y - p.clientY), E > w && (E = w), E < k && (E = k), B === "bottom" && (E = x - E), o.value = E;
|
|
6417
6430
|
}
|
|
6418
6431
|
}
|
|
6419
6432
|
function r() {
|
|
@@ -6434,20 +6447,20 @@ function ra(e) {
|
|
|
6434
6447
|
function d(p, w) {
|
|
6435
6448
|
const k = r(), B = m();
|
|
6436
6449
|
if (k && B) {
|
|
6437
|
-
const
|
|
6450
|
+
const M = B == null ? void 0 : B.right, b = B == null ? void 0 : B.left;
|
|
6438
6451
|
if (p === "left" && b)
|
|
6439
|
-
return
|
|
6440
|
-
if (p === "right" &&
|
|
6452
|
+
return M ? k.width - M.clientWidth - w : k.width - w;
|
|
6453
|
+
if (p === "right" && M)
|
|
6441
6454
|
return b ? k.width - b.clientWidth - w : k.width - w;
|
|
6442
6455
|
}
|
|
6443
6456
|
}
|
|
6444
6457
|
function g(p, w) {
|
|
6445
6458
|
const k = r(), B = m();
|
|
6446
6459
|
if (k && B) {
|
|
6447
|
-
const
|
|
6460
|
+
const M = B == null ? void 0 : B.bottom, b = B == null ? void 0 : B.top;
|
|
6448
6461
|
if (p === "top" && b)
|
|
6449
|
-
return
|
|
6450
|
-
if (p === "bottom" &&
|
|
6462
|
+
return M ? k.height - M.clientHeight - w : k.height - w;
|
|
6463
|
+
if (p === "bottom" && M)
|
|
6451
6464
|
return b ? k.height - b.clientHeight - w : k.height - w;
|
|
6452
6465
|
}
|
|
6453
6466
|
}
|
|
@@ -6709,38 +6722,38 @@ function ua(e, t, n, a, o) {
|
|
|
6709
6722
|
let g = "", p, w, k;
|
|
6710
6723
|
function B(y) {
|
|
6711
6724
|
if ((g === "left" || g === "right") && w) {
|
|
6712
|
-
const { left:
|
|
6713
|
-
let R = g === "left" ? (
|
|
6725
|
+
const { left: x } = w.getBoundingClientRect(), { width: E } = p.getBoundingClientRect(), I = y.clientX - x;
|
|
6726
|
+
let R = g === "left" ? (E || 0) + (I - l.value) : (E || 0) - (I - l.value);
|
|
6714
6727
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6715
|
-
const
|
|
6716
|
-
|
|
6728
|
+
const O = d(g, n.value);
|
|
6729
|
+
O != null && (R = O > R ? R : O), e.value = R;
|
|
6717
6730
|
}
|
|
6718
6731
|
if ((g === "top" || g === "bottom") && w) {
|
|
6719
|
-
const { top:
|
|
6720
|
-
let R = g === "top" ? (
|
|
6732
|
+
const { top: x } = w.getBoundingClientRect(), { height: E } = p.getBoundingClientRect(), I = y.clientY - x;
|
|
6733
|
+
let R = g === "top" ? (E || 0) + (I - c.value) : (E || 0) - (I - c.value);
|
|
6721
6734
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6722
|
-
const
|
|
6723
|
-
|
|
6735
|
+
const O = m(g, a.value);
|
|
6736
|
+
O != null && (R = O > R ? R : O), t.value = R;
|
|
6724
6737
|
}
|
|
6725
6738
|
i.value = 0, h.value = 0, l.value = -1, c.value = -1, u.value = !1, s.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", g = "", p = null, w = null;
|
|
6726
6739
|
}
|
|
6727
|
-
function
|
|
6728
|
-
if (g =
|
|
6729
|
-
const { left: R } = w.getBoundingClientRect(),
|
|
6730
|
-
i.value =
|
|
6731
|
-
const
|
|
6732
|
-
k = (S) => f(S,
|
|
6740
|
+
function M(y, x, E) {
|
|
6741
|
+
if (g = x, p = E, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6742
|
+
const { left: R } = w.getBoundingClientRect(), O = y.clientX - R;
|
|
6743
|
+
i.value = O, l.value = O;
|
|
6744
|
+
const F = d(g, n.value) || 0;
|
|
6745
|
+
k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6733
6746
|
}
|
|
6734
6747
|
}
|
|
6735
|
-
function b(y,
|
|
6736
|
-
if (g =
|
|
6748
|
+
function b(y, x, E) {
|
|
6749
|
+
if (g = x, p = E, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6737
6750
|
const { top: R } = w.getBoundingClientRect();
|
|
6738
6751
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6739
|
-
const
|
|
6740
|
-
k = (
|
|
6752
|
+
const O = m(g, a.value) || 0;
|
|
6753
|
+
k = (F) => r(F, O, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6741
6754
|
}
|
|
6742
6755
|
}
|
|
6743
|
-
return { onClickHorizontalResizeBar:
|
|
6756
|
+
return { onClickHorizontalResizeBar: M, onClickVerticalResizeBar: b };
|
|
6744
6757
|
}
|
|
6745
6758
|
const je = /* @__PURE__ */ oe({
|
|
6746
6759
|
name: "FLayoutPane",
|
|
@@ -6772,15 +6785,15 @@ const je = /* @__PURE__ */ oe({
|
|
|
6772
6785
|
"f-page-content-nav": c.value === "left" || c.value === "right",
|
|
6773
6786
|
"f-page-content-main": c.value === "center"
|
|
6774
6787
|
};
|
|
6775
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6776
|
-
}),
|
|
6788
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6789
|
+
}), M = N(() => {
|
|
6777
6790
|
const b = {};
|
|
6778
6791
|
return (u.value && c.value === "left" || c.value === "right") && (b.width = `${u.value}px`), (i.value && c.value === "bottom" || c.value === "top") && (b.height = `${i.value}px`), e.visible || (b.display = "none"), b;
|
|
6779
6792
|
});
|
|
6780
6793
|
return () => v("div", {
|
|
6781
6794
|
ref: s,
|
|
6782
6795
|
class: B.value,
|
|
6783
|
-
style:
|
|
6796
|
+
style: M.value,
|
|
6784
6797
|
"data-position": c.value
|
|
6785
6798
|
}, [t.slots.default && t.slots.default(), w.value && v("span", {
|
|
6786
6799
|
class: p.value,
|
|
@@ -6829,7 +6842,7 @@ const as = /* @__PURE__ */ oe({
|
|
|
6829
6842
|
function os(e, t) {
|
|
6830
6843
|
const n = e.schema;
|
|
6831
6844
|
function a(l) {
|
|
6832
|
-
return !!
|
|
6845
|
+
return !!Si().basalDragulaRuleForContainer(l);
|
|
6833
6846
|
}
|
|
6834
6847
|
function o() {
|
|
6835
6848
|
const l = ["f-layout-pane"];
|
|
@@ -6869,8 +6882,8 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6869
6882
|
"f-page-content-nav": f.value === "left" || f.value === "right",
|
|
6870
6883
|
"f-page-content-main": f.value === "center"
|
|
6871
6884
|
};
|
|
6872
|
-
return e.customClass && String(e.customClass).split(" ").reduce((y,
|
|
6873
|
-
}),
|
|
6885
|
+
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6886
|
+
}), M = N(() => {
|
|
6874
6887
|
const b = {
|
|
6875
6888
|
flex: "1"
|
|
6876
6889
|
};
|
|
@@ -6879,7 +6892,7 @@ const ls = /* @__PURE__ */ oe({
|
|
|
6879
6892
|
return () => v("div", {
|
|
6880
6893
|
ref: n,
|
|
6881
6894
|
class: B.value,
|
|
6882
|
-
style:
|
|
6895
|
+
style: M.value
|
|
6883
6896
|
}, [v("div", {
|
|
6884
6897
|
ref: a,
|
|
6885
6898
|
class: "drag-container",
|
|
@@ -9111,7 +9124,7 @@ function ws(e, t, n) {
|
|
|
9111
9124
|
writable: !0
|
|
9112
9125
|
}) : e[t] = n, e;
|
|
9113
9126
|
}
|
|
9114
|
-
function
|
|
9127
|
+
function Sn(e, t) {
|
|
9115
9128
|
var n = Object.keys(e);
|
|
9116
9129
|
if (Object.getOwnPropertySymbols) {
|
|
9117
9130
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -9121,12 +9134,12 @@ function xn(e, t) {
|
|
|
9121
9134
|
}
|
|
9122
9135
|
return n;
|
|
9123
9136
|
}
|
|
9124
|
-
function
|
|
9137
|
+
function xn(e) {
|
|
9125
9138
|
for (var t = 1; t < arguments.length; t++) {
|
|
9126
9139
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9127
|
-
t % 2 ?
|
|
9140
|
+
t % 2 ? Sn(Object(n), !0).forEach(function(a) {
|
|
9128
9141
|
ws(e, a, n[a]);
|
|
9129
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9142
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sn(Object(n)).forEach(function(a) {
|
|
9130
9143
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
9131
9144
|
});
|
|
9132
9145
|
}
|
|
@@ -9155,18 +9168,18 @@ function bt(e) {
|
|
|
9155
9168
|
function Dt(e) {
|
|
9156
9169
|
return {}.toString.call(e).includes("Object");
|
|
9157
9170
|
}
|
|
9158
|
-
function
|
|
9171
|
+
function Ss(e) {
|
|
9159
9172
|
return !Object.keys(e).length;
|
|
9160
9173
|
}
|
|
9161
9174
|
function Ct(e) {
|
|
9162
9175
|
return typeof e == "function";
|
|
9163
9176
|
}
|
|
9164
|
-
function
|
|
9177
|
+
function xs(e, t) {
|
|
9165
9178
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
9166
9179
|
}
|
|
9167
9180
|
function Fs(e, t) {
|
|
9168
9181
|
return Dt(t) || Ye("changeType"), Object.keys(t).some(function(n) {
|
|
9169
|
-
return !
|
|
9182
|
+
return !xs(e, n);
|
|
9170
9183
|
}) && Ye("changeField"), t;
|
|
9171
9184
|
}
|
|
9172
9185
|
function Ts(e) {
|
|
@@ -9178,7 +9191,7 @@ function Bs(e) {
|
|
|
9178
9191
|
}) && Ye("handlersType");
|
|
9179
9192
|
}
|
|
9180
9193
|
function Os(e) {
|
|
9181
|
-
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"),
|
|
9194
|
+
e || Ye("initialIsRequired"), Dt(e) || Ye("initialType"), Ss(e) && Ye("initialContent");
|
|
9182
9195
|
}
|
|
9183
9196
|
function Ms(e, t) {
|
|
9184
9197
|
throw new Error(e[t] || e.default);
|
|
@@ -9220,7 +9233,7 @@ function Ps(e, t) {
|
|
|
9220
9233
|
return Ct(t) ? t(e.current) : t;
|
|
9221
9234
|
}
|
|
9222
9235
|
function Ns(e, t) {
|
|
9223
|
-
return e.current =
|
|
9236
|
+
return e.current = xn(xn({}, e.current), t), t;
|
|
9224
9237
|
}
|
|
9225
9238
|
function Is(e, t, n) {
|
|
9226
9239
|
return Ct(t) ? t(e.current) : Object.keys(n).forEach(function(a) {
|
|
@@ -9312,7 +9325,7 @@ var Gs = js.create({
|
|
|
9312
9325
|
resolve: null,
|
|
9313
9326
|
reject: null,
|
|
9314
9327
|
monaco: null
|
|
9315
|
-
}), fa = vs(Gs, 2),
|
|
9328
|
+
}), fa = vs(Gs, 2), xt = fa[0], Lt = fa[1];
|
|
9316
9329
|
function Us(e) {
|
|
9317
9330
|
var t = Hs.config(e), n = t.monaco, a = ys(t, ["monaco"]);
|
|
9318
9331
|
Lt(function(o) {
|
|
@@ -9323,7 +9336,7 @@ function Us(e) {
|
|
|
9323
9336
|
});
|
|
9324
9337
|
}
|
|
9325
9338
|
function _s() {
|
|
9326
|
-
var e =
|
|
9339
|
+
var e = xt(function(t) {
|
|
9327
9340
|
var n = t.monaco, a = t.isInitialized, o = t.resolve;
|
|
9328
9341
|
return {
|
|
9329
9342
|
monaco: n,
|
|
@@ -9350,7 +9363,7 @@ function Xs(e) {
|
|
|
9350
9363
|
return e && (t.src = e), t;
|
|
9351
9364
|
}
|
|
9352
9365
|
function Js(e) {
|
|
9353
|
-
var t =
|
|
9366
|
+
var t = xt(function(a) {
|
|
9354
9367
|
var o = a.config, l = a.reject;
|
|
9355
9368
|
return {
|
|
9356
9369
|
config: o,
|
|
@@ -9362,7 +9375,7 @@ function Js(e) {
|
|
|
9362
9375
|
}, n.onerror = t.reject, n;
|
|
9363
9376
|
}
|
|
9364
9377
|
function Qs() {
|
|
9365
|
-
var e =
|
|
9378
|
+
var e = xt(function(n) {
|
|
9366
9379
|
var a = n.config, o = n.resolve, l = n.reject;
|
|
9367
9380
|
return {
|
|
9368
9381
|
config: a,
|
|
@@ -9377,12 +9390,12 @@ function Qs() {
|
|
|
9377
9390
|
});
|
|
9378
9391
|
}
|
|
9379
9392
|
function pa(e) {
|
|
9380
|
-
|
|
9393
|
+
xt().monaco || Lt({
|
|
9381
9394
|
monaco: e
|
|
9382
9395
|
});
|
|
9383
9396
|
}
|
|
9384
9397
|
function Zs() {
|
|
9385
|
-
return
|
|
9398
|
+
return xt(function(e) {
|
|
9386
9399
|
var t = e.monaco;
|
|
9387
9400
|
return t;
|
|
9388
9401
|
});
|
|
@@ -9610,25 +9623,25 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9610
9623
|
const n = C("dataEntity"), a = C(e.dataSource), {
|
|
9611
9624
|
entities: o,
|
|
9612
9625
|
variables: l
|
|
9613
|
-
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S,
|
|
9626
|
+
} = a.value, i = C(""), u = C((o == null ? void 0 : o.fields) || []), s = (S, T) => {
|
|
9614
9627
|
S.stopPropagation(), t.emit("fieldClick", {
|
|
9615
9628
|
$event: S,
|
|
9616
|
-
item:
|
|
9629
|
+
item: T.raw
|
|
9617
9630
|
});
|
|
9618
|
-
}, c = (S,
|
|
9619
|
-
const
|
|
9631
|
+
}, c = (S, T) => {
|
|
9632
|
+
const P = `${T.raw.name} [${T.raw.bindingPath}]`;
|
|
9620
9633
|
return v("div", {
|
|
9621
9634
|
class: "d-flex align-items-center w-100 entity-field",
|
|
9622
9635
|
style: "justify-content: space-between;"
|
|
9623
9636
|
}, [v("span", {
|
|
9624
|
-
title:
|
|
9637
|
+
title: P,
|
|
9625
9638
|
class: "f-utils-fill text-truncate"
|
|
9626
|
-
}, [
|
|
9639
|
+
}, [P]), v("button", {
|
|
9627
9640
|
title: "插入属性名称",
|
|
9628
9641
|
class: "btn btn-link d-none",
|
|
9629
9642
|
style: "width:24px;height:24px",
|
|
9630
|
-
onClick: (
|
|
9631
|
-
onDblclick: (
|
|
9643
|
+
onClick: (V) => s(V, T),
|
|
9644
|
+
onDblclick: (V) => V.stopPropagation()
|
|
9632
9645
|
}, [v("span", {
|
|
9633
9646
|
class: "f-icon f-icon-new-edit",
|
|
9634
9647
|
style: "font-size: 12px;"
|
|
@@ -9649,40 +9662,40 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9649
9662
|
"f-icon f-icon-arrow-chevron-down": h.value[S],
|
|
9650
9663
|
"f-icon f-icon-arrow-chevron-right": !h.value[S]
|
|
9651
9664
|
})), p = N(() => (S) => {
|
|
9652
|
-
var
|
|
9665
|
+
var T;
|
|
9653
9666
|
return {
|
|
9654
9667
|
"functions-item pl-2": !0,
|
|
9655
|
-
selected: ((
|
|
9668
|
+
selected: ((T = f.value) == null ? void 0 : T.key) === S.key
|
|
9656
9669
|
};
|
|
9657
9670
|
});
|
|
9658
|
-
function w(S,
|
|
9659
|
-
S.stopPropagation(), h.value = h.value || {}, h.value[
|
|
9671
|
+
function w(S, T) {
|
|
9672
|
+
S.stopPropagation(), h.value = h.value || {}, h.value[T] = !h.value[T];
|
|
9660
9673
|
}
|
|
9661
|
-
function k(S,
|
|
9662
|
-
S.stopPropagation(), f.value =
|
|
9674
|
+
function k(S, T) {
|
|
9675
|
+
S.stopPropagation(), f.value = T;
|
|
9663
9676
|
}
|
|
9664
|
-
function B(S,
|
|
9677
|
+
function B(S, T) {
|
|
9665
9678
|
t.emit("variableItemDblClick", {
|
|
9666
9679
|
$event: S,
|
|
9667
|
-
item:
|
|
9680
|
+
item: T
|
|
9668
9681
|
});
|
|
9669
9682
|
}
|
|
9670
|
-
function
|
|
9683
|
+
function M({
|
|
9671
9684
|
$event: S,
|
|
9672
|
-
node:
|
|
9685
|
+
node: T
|
|
9673
9686
|
}) {
|
|
9674
9687
|
t.emit("entityItemDblClick", {
|
|
9675
9688
|
$event: S,
|
|
9676
|
-
item:
|
|
9689
|
+
item: T.data,
|
|
9677
9690
|
entityCode: o == null ? void 0 : o.entityCode,
|
|
9678
|
-
parentCodes:
|
|
9691
|
+
parentCodes: T.data.parents.join(".")
|
|
9679
9692
|
});
|
|
9680
9693
|
}
|
|
9681
9694
|
function b() {
|
|
9682
9695
|
return v(nu, {
|
|
9683
9696
|
data: u.value,
|
|
9684
9697
|
formatter: c,
|
|
9685
|
-
onDblclickNode:
|
|
9698
|
+
onDblclickNode: M
|
|
9686
9699
|
}, null);
|
|
9687
9700
|
}
|
|
9688
9701
|
function y() {
|
|
@@ -9694,25 +9707,25 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9694
9707
|
class: d.value(S)
|
|
9695
9708
|
}, [v("div", {
|
|
9696
9709
|
class: "functions-type-name pl-2 d-flex align-items-center",
|
|
9697
|
-
onClick: (
|
|
9698
|
-
w(
|
|
9710
|
+
onClick: (T) => {
|
|
9711
|
+
w(T, S);
|
|
9699
9712
|
}
|
|
9700
9713
|
}, [v("span", {
|
|
9701
9714
|
class: g.value(S)
|
|
9702
9715
|
}, null), l[S].name]), v("ul", {
|
|
9703
9716
|
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 ===
|
|
9717
|
+
}, [l[S].items.map((T) => v("li", {
|
|
9718
|
+
class: p.value(T),
|
|
9719
|
+
onClick: (P) => k(P, T),
|
|
9720
|
+
onDblclick: (P) => B(P, T)
|
|
9721
|
+
}, [T.name]))])]))]);
|
|
9722
|
+
}
|
|
9723
|
+
function x(S, T) {
|
|
9724
|
+
if (S.stopPropagation(), n.value === T) {
|
|
9712
9725
|
n.value = "";
|
|
9713
9726
|
return;
|
|
9714
9727
|
}
|
|
9715
|
-
n.value =
|
|
9728
|
+
n.value = T;
|
|
9716
9729
|
}
|
|
9717
9730
|
be(() => {
|
|
9718
9731
|
if (l) {
|
|
@@ -9720,32 +9733,32 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9720
9733
|
h.value[S] = !0;
|
|
9721
9734
|
}
|
|
9722
9735
|
});
|
|
9723
|
-
function
|
|
9724
|
-
const
|
|
9725
|
-
return S.data.name.toLowerCase().includes(
|
|
9736
|
+
function E(S, T) {
|
|
9737
|
+
const P = S.children.map((_) => E(_, T)).filter((_) => _ !== null);
|
|
9738
|
+
return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
|
|
9726
9739
|
data: {
|
|
9727
9740
|
...S.data
|
|
9728
9741
|
},
|
|
9729
9742
|
children: S.children
|
|
9730
9743
|
// 注意这里保留原始子节点
|
|
9731
|
-
} :
|
|
9744
|
+
} : P.length > 0 ? {
|
|
9732
9745
|
data: {
|
|
9733
9746
|
...S.data
|
|
9734
9747
|
},
|
|
9735
|
-
children:
|
|
9748
|
+
children: P
|
|
9736
9749
|
} : null;
|
|
9737
9750
|
}
|
|
9738
|
-
function I(S,
|
|
9739
|
-
return S.map((
|
|
9751
|
+
function I(S, T) {
|
|
9752
|
+
return S.map((P) => E(P, T)).filter((P) => P !== null);
|
|
9740
9753
|
}
|
|
9741
9754
|
function R() {
|
|
9742
9755
|
const S = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9743
9756
|
u.value = S;
|
|
9744
9757
|
}
|
|
9745
|
-
function
|
|
9758
|
+
function O() {
|
|
9746
9759
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9747
9760
|
}
|
|
9748
|
-
function
|
|
9761
|
+
function F(S) {
|
|
9749
9762
|
S.key === "Enter" && R();
|
|
9750
9763
|
}
|
|
9751
9764
|
return () => v("div", {
|
|
@@ -9756,7 +9769,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9756
9769
|
class: r.value("dataEntity")
|
|
9757
9770
|
}, [v("div", {
|
|
9758
9771
|
class: "title px-2 d-flex align-items-center",
|
|
9759
|
-
onClick: (S) =>
|
|
9772
|
+
onClick: (S) => x(S, "dataEntity")
|
|
9760
9773
|
}, [ie("数据实体"), v("span", {
|
|
9761
9774
|
class: m.value("dataEntity")
|
|
9762
9775
|
}, null)]), v("div", {
|
|
@@ -9772,13 +9785,13 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9772
9785
|
modelValue: i.value,
|
|
9773
9786
|
"onUpdate:modelValue": (S) => i.value = S,
|
|
9774
9787
|
onClickButton: R,
|
|
9775
|
-
onClear:
|
|
9776
|
-
onKeyup:
|
|
9788
|
+
onClear: O,
|
|
9789
|
+
onKeyup: F
|
|
9777
9790
|
}, null)]), b()])]), v("li", {
|
|
9778
9791
|
class: r.value("variables")
|
|
9779
9792
|
}, [v("div", {
|
|
9780
9793
|
class: "title px-2 d-flex align-items-center",
|
|
9781
|
-
onClick: (S) =>
|
|
9794
|
+
onClick: (S) => x(S, "variables")
|
|
9782
9795
|
}, [ie("变量"), v("span", {
|
|
9783
9796
|
class: m.value("variables")
|
|
9784
9797
|
}, null)]), v("div", {
|
|
@@ -9821,7 +9834,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9821
9834
|
};
|
|
9822
9835
|
}), r = C(Object.keys(s.value));
|
|
9823
9836
|
Z(() => e.functionItems, (b) => {
|
|
9824
|
-
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y,
|
|
9837
|
+
s.value = b, r.value = Object.keys(s.value), i.value && (l.value = r.value.reduce((y, x) => (y[x] = !0, y), {}));
|
|
9825
9838
|
});
|
|
9826
9839
|
function m(b) {
|
|
9827
9840
|
b || (b = a.value);
|
|
@@ -9850,12 +9863,12 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9850
9863
|
item: y
|
|
9851
9864
|
});
|
|
9852
9865
|
}
|
|
9853
|
-
Z(() => a.value, (b, y,
|
|
9866
|
+
Z(() => a.value, (b, y, x) => {
|
|
9854
9867
|
if (b) {
|
|
9855
|
-
const
|
|
9868
|
+
const E = setTimeout(() => {
|
|
9856
9869
|
m(b);
|
|
9857
9870
|
}, 200);
|
|
9858
|
-
|
|
9871
|
+
x(() => clearTimeout(E));
|
|
9859
9872
|
}
|
|
9860
9873
|
});
|
|
9861
9874
|
function w() {
|
|
@@ -9867,7 +9880,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9867
9880
|
function B(b) {
|
|
9868
9881
|
b.key === "Enter" && w();
|
|
9869
9882
|
}
|
|
9870
|
-
function
|
|
9883
|
+
function M() {
|
|
9871
9884
|
return r.value.length ? r.value.map((b) => v("li", {
|
|
9872
9885
|
"function-type": b,
|
|
9873
9886
|
class: c.value(b)
|
|
@@ -9884,8 +9897,8 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9884
9897
|
if (y.visible !== !1)
|
|
9885
9898
|
return v("li", {
|
|
9886
9899
|
class: f.value(y),
|
|
9887
|
-
onClick: (
|
|
9888
|
-
onDblclick: (
|
|
9900
|
+
onClick: (x) => g(x, y),
|
|
9901
|
+
onDblclick: (x) => p(x, y)
|
|
9889
9902
|
}, [b === "advanced" ? y.key : y.name]);
|
|
9890
9903
|
})])])) : v("li", {
|
|
9891
9904
|
class: "empty-message"
|
|
@@ -9925,7 +9938,7 @@ const Ks = /* @__PURE__ */ oe({
|
|
|
9925
9938
|
default: () => [v("ul", {
|
|
9926
9939
|
class: "w-100 functions-list",
|
|
9927
9940
|
style: "user-select: none"
|
|
9928
|
-
}, [
|
|
9941
|
+
}, [M()])]
|
|
9929
9942
|
}), v(je, {
|
|
9930
9943
|
"custom-class": "position-relative",
|
|
9931
9944
|
position: "bottom",
|
|
@@ -10001,8 +10014,8 @@ function ru(e, t, n) {
|
|
|
10001
10014
|
if (a.value) {
|
|
10002
10015
|
let w = Object.keys(p);
|
|
10003
10016
|
const { types: k, functions: B } = a.value;
|
|
10004
|
-
return k && k.length && (w = w.filter((
|
|
10005
|
-
|
|
10017
|
+
return k && k.length && (w = w.filter((M) => k.includes(M))), B && B.length && Object.values(p).forEach((M) => {
|
|
10018
|
+
M.items.forEach((b) => {
|
|
10006
10019
|
B.includes(b.name) && (b.visible = !1);
|
|
10007
10020
|
});
|
|
10008
10021
|
}), p;
|
|
@@ -10040,20 +10053,20 @@ function ru(e, t, n) {
|
|
|
10040
10053
|
if (!p)
|
|
10041
10054
|
return "";
|
|
10042
10055
|
const w = o(p), k = l(n, "name2key");
|
|
10043
|
-
for (let
|
|
10056
|
+
for (let M = 0; M < w.length; M++) {
|
|
10044
10057
|
let b = 0;
|
|
10045
|
-
if (b === 0 && k && w[
|
|
10046
|
-
const y = w[
|
|
10047
|
-
if (k.has(y) && w[
|
|
10048
|
-
const
|
|
10049
|
-
|
|
10058
|
+
if (b === 0 && k && w[M].length > 2 && w[M][0] === '"' && w[M][w[M].length - 1] === '"') {
|
|
10059
|
+
const y = w[M].substring(1, w[M].length - 1);
|
|
10060
|
+
if (k.has(y) && w[M - 1] === "(" && w[M + 1] === ")") {
|
|
10061
|
+
const x = k.get(y);
|
|
10062
|
+
x !== void 0 && (w[M] = `"${x}"`, b = 1);
|
|
10050
10063
|
}
|
|
10051
10064
|
}
|
|
10052
10065
|
if (b === 0) {
|
|
10053
|
-
const y = Object.values(t).map((
|
|
10054
|
-
for (let
|
|
10055
|
-
if (w[
|
|
10056
|
-
w[
|
|
10066
|
+
const y = Object.values(t).map((x) => x.items).flat();
|
|
10067
|
+
for (let x = 0; x < y.length; x++)
|
|
10068
|
+
if (w[M] === y[x].name) {
|
|
10069
|
+
w[M] = y[x].keyFront + "." + y[x].key, b = 1;
|
|
10057
10070
|
break;
|
|
10058
10071
|
}
|
|
10059
10072
|
}
|
|
@@ -10062,38 +10075,38 @@ function ru(e, t, n) {
|
|
|
10062
10075
|
return JSON.stringify({ expr: B, sexpr: "" });
|
|
10063
10076
|
}
|
|
10064
10077
|
function m(p, w, k, B) {
|
|
10065
|
-
let
|
|
10078
|
+
let M = "";
|
|
10066
10079
|
const b = [];
|
|
10067
10080
|
for (const y of w)
|
|
10068
10081
|
y.keyFront === "Math" && b.push(y.key);
|
|
10069
10082
|
for (let y = 0; y < p.length; y++) {
|
|
10070
10083
|
if (p[y] === "Math" && p[y + 1] === "." && !b.includes(p[y + 2])) {
|
|
10071
|
-
|
|
10084
|
+
M = M + p[y] + p[y + 1] + p[y + 2], y = y + 2;
|
|
10072
10085
|
continue;
|
|
10073
10086
|
}
|
|
10074
10087
|
if (B.includes(p[y]) && p[y + 1] === ".") {
|
|
10075
10088
|
y = y + 1;
|
|
10076
10089
|
continue;
|
|
10077
10090
|
} else {
|
|
10078
|
-
let
|
|
10079
|
-
if (
|
|
10080
|
-
const
|
|
10081
|
-
if (k.has(
|
|
10082
|
-
const I = k.get(
|
|
10083
|
-
I !== void 0 && (
|
|
10091
|
+
let x = 0;
|
|
10092
|
+
if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10093
|
+
const E = p[y].substring(1, p[y].length - 1);
|
|
10094
|
+
if (k.has(E) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10095
|
+
const I = k.get(E);
|
|
10096
|
+
I !== void 0 && (M = M + `"${I}"`, x = 1);
|
|
10084
10097
|
}
|
|
10085
10098
|
}
|
|
10086
|
-
if (
|
|
10087
|
-
for (let
|
|
10088
|
-
if (p[y] === w[
|
|
10089
|
-
|
|
10099
|
+
if (x === 0) {
|
|
10100
|
+
for (let E = 0; E < w.length; E++)
|
|
10101
|
+
if (p[y] === w[E].key && w[E].type.toLowerCase() !== "advanced") {
|
|
10102
|
+
M = M + w[E].name, x = 1;
|
|
10090
10103
|
break;
|
|
10091
10104
|
}
|
|
10092
10105
|
}
|
|
10093
|
-
|
|
10106
|
+
x === 0 && (M = M + p[y]);
|
|
10094
10107
|
}
|
|
10095
10108
|
}
|
|
10096
|
-
return
|
|
10109
|
+
return M;
|
|
10097
10110
|
}
|
|
10098
10111
|
function d(p) {
|
|
10099
10112
|
if (!p)
|
|
@@ -10141,7 +10154,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10141
10154
|
props: Mr,
|
|
10142
10155
|
emits: [],
|
|
10143
10156
|
setup(e, t) {
|
|
10144
|
-
var
|
|
10157
|
+
var O;
|
|
10145
10158
|
const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
|
|
10146
10159
|
label: "提示",
|
|
10147
10160
|
value: "info"
|
|
@@ -10162,82 +10175,82 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10162
10175
|
onFunctionSearch: g
|
|
10163
10176
|
} = su(e, d);
|
|
10164
10177
|
function p({
|
|
10165
|
-
$event:
|
|
10178
|
+
$event: F,
|
|
10166
10179
|
item: S
|
|
10167
10180
|
}) {
|
|
10168
|
-
var
|
|
10169
|
-
const
|
|
10170
|
-
(
|
|
10181
|
+
var P;
|
|
10182
|
+
const T = s(S);
|
|
10183
|
+
(P = i.value) == null || P.insertText(T);
|
|
10171
10184
|
}
|
|
10172
10185
|
function w({
|
|
10173
|
-
$event:
|
|
10186
|
+
$event: F,
|
|
10174
10187
|
item: S
|
|
10175
10188
|
}) {
|
|
10176
|
-
var
|
|
10177
|
-
const
|
|
10178
|
-
(
|
|
10179
|
-
}
|
|
10180
|
-
function k(
|
|
10181
|
-
return
|
|
10182
|
-
var
|
|
10183
|
-
return S.push(
|
|
10189
|
+
var P;
|
|
10190
|
+
const T = c(S);
|
|
10191
|
+
(P = i.value) == null || P.insertText(T);
|
|
10192
|
+
}
|
|
10193
|
+
function k(F) {
|
|
10194
|
+
return F.reduce((S, T) => {
|
|
10195
|
+
var P;
|
|
10196
|
+
return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
|
|
10184
10197
|
}, []);
|
|
10185
10198
|
}
|
|
10186
|
-
const B = k(((
|
|
10187
|
-
function
|
|
10188
|
-
return
|
|
10189
|
-
const
|
|
10190
|
-
return
|
|
10199
|
+
const B = k(((O = e == null ? void 0 : e.entities) == null ? void 0 : O.fields) || []);
|
|
10200
|
+
function M(F) {
|
|
10201
|
+
return F.map((S) => {
|
|
10202
|
+
const T = B.find((P) => P.bindingPath === S);
|
|
10203
|
+
return T && T.type === "entity" ? `${S}[0]` : S;
|
|
10191
10204
|
}).join(".");
|
|
10192
10205
|
}
|
|
10193
10206
|
function b({
|
|
10194
|
-
$event:
|
|
10207
|
+
$event: F,
|
|
10195
10208
|
item: S,
|
|
10196
|
-
parentCodes:
|
|
10197
|
-
entityCode:
|
|
10209
|
+
parentCodes: T,
|
|
10210
|
+
entityCode: P
|
|
10198
10211
|
}) {
|
|
10199
|
-
var
|
|
10200
|
-
const
|
|
10201
|
-
|
|
10202
|
-
let
|
|
10203
|
-
|
|
10212
|
+
var L;
|
|
10213
|
+
const V = f(S);
|
|
10214
|
+
T = e.isServerSide ? M(S.parents) : T;
|
|
10215
|
+
let _ = `${T}.${V}`;
|
|
10216
|
+
P === V && (_ = V), (L = i.value) == null || L.insertText(`${_}`);
|
|
10204
10217
|
}
|
|
10205
10218
|
function y({
|
|
10206
|
-
$event:
|
|
10219
|
+
$event: F,
|
|
10207
10220
|
item: S
|
|
10208
10221
|
}) {
|
|
10209
|
-
var
|
|
10210
|
-
const
|
|
10211
|
-
(
|
|
10222
|
+
var P;
|
|
10223
|
+
const T = f(S);
|
|
10224
|
+
(P = i.value) == null || P.insertText(`${T}`);
|
|
10212
10225
|
}
|
|
10213
|
-
function
|
|
10214
|
-
var
|
|
10215
|
-
return (
|
|
10226
|
+
function x() {
|
|
10227
|
+
var F;
|
|
10228
|
+
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10216
10229
|
}
|
|
10217
|
-
function
|
|
10230
|
+
function E() {
|
|
10218
10231
|
var S;
|
|
10219
|
-
const
|
|
10232
|
+
const F = (S = i.value) == null ? void 0 : S.getContent();
|
|
10220
10233
|
return {
|
|
10221
|
-
value: r(
|
|
10234
|
+
value: r(F),
|
|
10222
10235
|
message: a.value,
|
|
10223
10236
|
messageType: o.value
|
|
10224
10237
|
};
|
|
10225
10238
|
}
|
|
10226
10239
|
const I = C("");
|
|
10227
10240
|
function R() {
|
|
10228
|
-
var
|
|
10229
|
-
(
|
|
10241
|
+
var F;
|
|
10242
|
+
(F = i.value) == null || F.clearText();
|
|
10230
10243
|
}
|
|
10231
10244
|
return be(async () => {
|
|
10232
10245
|
if (l.value) {
|
|
10233
|
-
const
|
|
10246
|
+
const F = JSON.parse(l.value), {
|
|
10234
10247
|
expr: S
|
|
10235
|
-
} =
|
|
10248
|
+
} = F;
|
|
10236
10249
|
S && (I.value = await m(S) || "");
|
|
10237
10250
|
}
|
|
10238
10251
|
}), t.expose({
|
|
10239
|
-
getExpressionContext:
|
|
10240
|
-
getExpressionValue:
|
|
10252
|
+
getExpressionContext: x,
|
|
10253
|
+
getExpressionValue: E,
|
|
10241
10254
|
resetExpression: R
|
|
10242
10255
|
}), () => v("div", {
|
|
10243
10256
|
ref: n,
|
|
@@ -10263,7 +10276,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10263
10276
|
class: "f-utils-fill my-2 ml-1"
|
|
10264
10277
|
}, [v(Ks, {
|
|
10265
10278
|
modelValue: I.value,
|
|
10266
|
-
"onUpdate:modelValue": (
|
|
10279
|
+
"onUpdate:modelValue": (F) => I.value = F,
|
|
10267
10280
|
ref: i
|
|
10268
10281
|
}, null)]), e.showMessage && v("div", {
|
|
10269
10282
|
class: "d-flex flex-column p-1",
|
|
@@ -10274,7 +10287,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10274
10287
|
style: "width: 75px",
|
|
10275
10288
|
data: u,
|
|
10276
10289
|
modelValue: o.value,
|
|
10277
|
-
"onUpdate:modelValue": (
|
|
10290
|
+
"onUpdate:modelValue": (F) => o.value = F,
|
|
10278
10291
|
textField: "label",
|
|
10279
10292
|
valueField: "value",
|
|
10280
10293
|
idField: "value",
|
|
@@ -10282,7 +10295,7 @@ const uu = /* @__PURE__ */ oe({
|
|
|
10282
10295
|
minPanelWidth: 130,
|
|
10283
10296
|
placement: "auto"
|
|
10284
10297
|
}, null)]), On(v("textarea", {
|
|
10285
|
-
"onUpdate:modelValue": (
|
|
10298
|
+
"onUpdate:modelValue": (F) => a.value = F,
|
|
10286
10299
|
class: "form-control",
|
|
10287
10300
|
style: "resize:none;border:none;outline:1px solid var(--f-neutral-04);"
|
|
10288
10301
|
}, null), [[Ra, a.value]])])]
|
|
@@ -10531,11 +10544,11 @@ const gu = /* @__PURE__ */ oe({
|
|
|
10531
10544
|
if (typeof k == "object") {
|
|
10532
10545
|
const {
|
|
10533
10546
|
canClose: B,
|
|
10534
|
-
message:
|
|
10547
|
+
message: M
|
|
10535
10548
|
} = k;
|
|
10536
10549
|
if (!B)
|
|
10537
|
-
return
|
|
10538
|
-
message:
|
|
10550
|
+
return M && (n == null || n.error({
|
|
10551
|
+
message: M
|
|
10539
10552
|
})), !1;
|
|
10540
10553
|
}
|
|
10541
10554
|
}
|
|
@@ -10695,7 +10708,7 @@ function va(e) {
|
|
|
10695
10708
|
}
|
|
10696
10709
|
const wu = /* @__PURE__ */ new Map([
|
|
10697
10710
|
["appearance", jt]
|
|
10698
|
-
]), ku = "https://json-schema.org/draft/2020-12/schema",
|
|
10711
|
+
]), 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
10712
|
id: {
|
|
10700
10713
|
description: "The unique identifier for a combo list",
|
|
10701
10714
|
type: "string"
|
|
@@ -10853,8 +10866,8 @@ const wu = /* @__PURE__ */ new Map([
|
|
|
10853
10866
|
"type"
|
|
10854
10867
|
], Mu = {
|
|
10855
10868
|
$schema: ku,
|
|
10856
|
-
$id:
|
|
10857
|
-
title:
|
|
10869
|
+
$id: Su,
|
|
10870
|
+
title: xu,
|
|
10858
10871
|
description: Fu,
|
|
10859
10872
|
type: Tu,
|
|
10860
10873
|
properties: Bu,
|
|
@@ -11227,54 +11240,55 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11227
11240
|
displayText: r,
|
|
11228
11241
|
editable: m,
|
|
11229
11242
|
modelValue: d,
|
|
11230
|
-
|
|
11231
|
-
|
|
11243
|
+
getSelectedItemsByDisplayText: g,
|
|
11244
|
+
flatTreeNodes: p
|
|
11245
|
+
} = Iu(e), w = N(() => e.multiSelect);
|
|
11232
11246
|
N(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
11233
|
-
const
|
|
11234
|
-
var
|
|
11235
|
-
const
|
|
11236
|
-
return
|
|
11247
|
+
const k = N(() => {
|
|
11248
|
+
var S;
|
|
11249
|
+
const F = (S = n.value) == null ? void 0 : S.popoverRef;
|
|
11250
|
+
return F ? F.shown : !1;
|
|
11237
11251
|
}), {
|
|
11238
|
-
onValueChange:
|
|
11239
|
-
resetDataSource:
|
|
11252
|
+
onValueChange: B,
|
|
11253
|
+
resetDataSource: M
|
|
11240
11254
|
} = ju({
|
|
11241
11255
|
comboEditorRef: n,
|
|
11242
11256
|
dataSource: f,
|
|
11243
11257
|
searchFields: u,
|
|
11244
11258
|
originalValue: s,
|
|
11245
|
-
showPopover:
|
|
11246
|
-
flatTreeNodes:
|
|
11259
|
+
showPopover: k,
|
|
11260
|
+
flatTreeNodes: p
|
|
11247
11261
|
}, e.idField);
|
|
11248
|
-
function
|
|
11249
|
-
!
|
|
11262
|
+
function b() {
|
|
11263
|
+
!w.value && n.value && n.value.hidePopup();
|
|
11250
11264
|
}
|
|
11251
|
-
const
|
|
11252
|
-
function
|
|
11253
|
-
if (!
|
|
11254
|
-
r.value =
|
|
11265
|
+
const y = (F) => e.displayFormatter ? e.displayFormatter(F) : F.map((S) => S[e.textField]).join(e.separator);
|
|
11266
|
+
function x(F = []) {
|
|
11267
|
+
if (!w.value)
|
|
11268
|
+
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
11269
|
else {
|
|
11256
|
-
const
|
|
11257
|
-
r.value =
|
|
11270
|
+
const S = Object.keys(h), T = Object.values(h);
|
|
11271
|
+
r.value = y(T), d.value = S.join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", T, d.value);
|
|
11258
11272
|
}
|
|
11259
|
-
|
|
11273
|
+
b();
|
|
11260
11274
|
}
|
|
11261
|
-
function F
|
|
11262
|
-
var
|
|
11263
|
-
d.value = "",
|
|
11275
|
+
function E(F) {
|
|
11276
|
+
var S;
|
|
11277
|
+
d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
|
|
11264
11278
|
}
|
|
11265
|
-
function
|
|
11266
|
-
|
|
11279
|
+
function I(F) {
|
|
11280
|
+
w.value && (delete h[F.id], x());
|
|
11267
11281
|
}
|
|
11268
|
-
function
|
|
11269
|
-
|
|
11282
|
+
function R(F) {
|
|
11283
|
+
w.value && (h[F.id] = F.data, x());
|
|
11270
11284
|
}
|
|
11271
|
-
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([
|
|
11272
|
-
a.value =
|
|
11285
|
+
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, V]) => {
|
|
11286
|
+
a.value = F, m.value = S, o.value = T, l.value = P, i.value = V;
|
|
11273
11287
|
});
|
|
11274
|
-
const
|
|
11275
|
-
if (s.value = Le(f.value),
|
|
11276
|
-
const
|
|
11277
|
-
|
|
11288
|
+
const O = () => {
|
|
11289
|
+
if (s.value = Le(f.value), w.value && d.value) {
|
|
11290
|
+
const F = [];
|
|
11291
|
+
p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
|
|
11278
11292
|
}
|
|
11279
11293
|
};
|
|
11280
11294
|
return () => v(jn, {
|
|
@@ -11293,16 +11307,16 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11293
11307
|
inputType: e.viewType,
|
|
11294
11308
|
popupOnClick: !0,
|
|
11295
11309
|
modelValue: r.value,
|
|
11296
|
-
"onUpdate:modelValue": (
|
|
11297
|
-
onClear:
|
|
11298
|
-
onInput:
|
|
11310
|
+
"onUpdate:modelValue": (F) => r.value = F,
|
|
11311
|
+
onClear: E,
|
|
11312
|
+
onInput: B,
|
|
11299
11313
|
focusOnCreated: e.focusOnCreated,
|
|
11300
11314
|
selectOnCreated: e.selectOnCreated,
|
|
11301
|
-
beforeOpen:
|
|
11315
|
+
beforeOpen: O,
|
|
11302
11316
|
placement: e.placement,
|
|
11303
11317
|
popupMinWidth: e.minPanelWidth
|
|
11304
11318
|
}, {
|
|
11305
|
-
default: () => [
|
|
11319
|
+
default: () => [k.value && v(Nu, {
|
|
11306
11320
|
ref: c,
|
|
11307
11321
|
maxHeight: e.maxHeight,
|
|
11308
11322
|
multiSelect: e.multiSelect,
|
|
@@ -11313,15 +11327,15 @@ const Pt = /* @__PURE__ */ oe({
|
|
|
11313
11327
|
titleField: e.titleField,
|
|
11314
11328
|
data: s.value,
|
|
11315
11329
|
selectedValues: d.value,
|
|
11316
|
-
onSelectionChange:
|
|
11330
|
+
onSelectionChange: x,
|
|
11317
11331
|
formatter: e.formatter,
|
|
11318
11332
|
editorParams: e.editorParams,
|
|
11319
11333
|
repositoryToken: e.repositoryToken,
|
|
11320
11334
|
customRowStatus: e.customRowStatus,
|
|
11321
|
-
searchHandler:
|
|
11322
|
-
onUnSelectItem:
|
|
11323
|
-
onSelectItem:
|
|
11324
|
-
onClearSearch:
|
|
11335
|
+
searchHandler: B,
|
|
11336
|
+
onUnSelectItem: I,
|
|
11337
|
+
onSelectItem: R,
|
|
11338
|
+
onClearSearch: M
|
|
11325
11339
|
}, null)]
|
|
11326
11340
|
});
|
|
11327
11341
|
}
|
|
@@ -11411,14 +11425,14 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11411
11425
|
itemIntoView: g
|
|
11412
11426
|
} = ba(e, t, s), p = C(e.expressionOptions || {});
|
|
11413
11427
|
function w(B) {
|
|
11414
|
-
var
|
|
11428
|
+
var M, b;
|
|
11415
11429
|
switch (B.expresstype) {
|
|
11416
11430
|
case Re.Variable:
|
|
11417
11431
|
return v(qa, {
|
|
11418
11432
|
modelValue: B.value,
|
|
11419
11433
|
"onUpdate:modelValue": (y) => B.value = y,
|
|
11420
11434
|
showOutline: !1,
|
|
11421
|
-
fieldData: (
|
|
11435
|
+
fieldData: (M = e.formContextData) == null ? void 0 : M.fieldData,
|
|
11422
11436
|
varData: (b = e.formContextData) == null ? void 0 : b.varData
|
|
11423
11437
|
}, null);
|
|
11424
11438
|
case Re.Expression:
|
|
@@ -11437,9 +11451,9 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11437
11451
|
}, null);
|
|
11438
11452
|
}
|
|
11439
11453
|
}
|
|
11440
|
-
function k(B,
|
|
11454
|
+
function k(B, M, b) {
|
|
11441
11455
|
return v(lt, {
|
|
11442
|
-
data:
|
|
11456
|
+
data: M,
|
|
11443
11457
|
modelValue: B[b],
|
|
11444
11458
|
"onUpdate:modelValue": (y) => B[b] = y,
|
|
11445
11459
|
textField: "label",
|
|
@@ -11478,24 +11492,24 @@ const Ru = /* @__PURE__ */ oe({
|
|
|
11478
11492
|
style: "width: 60px"
|
|
11479
11493
|
}, [v("b", null, [ie("关系")])])])]), v("tbody", {
|
|
11480
11494
|
ref: s
|
|
11481
|
-
}, [c.value.map((B,
|
|
11482
|
-
index:
|
|
11483
|
-
class: d.value(
|
|
11484
|
-
onClick: (b) => m(B,
|
|
11495
|
+
}, [c.value.map((B, M) => v("tr", {
|
|
11496
|
+
index: M,
|
|
11497
|
+
class: d.value(M),
|
|
11498
|
+
onClick: (b) => m(B, M)
|
|
11485
11499
|
}, [v("td", {
|
|
11486
11500
|
style: "text-overflow: unset;",
|
|
11487
11501
|
align: "center",
|
|
11488
11502
|
class: "px-1"
|
|
11489
11503
|
}, [v("button", {
|
|
11490
11504
|
title: "插入",
|
|
11491
|
-
onClick: (b) => f(
|
|
11505
|
+
onClick: (b) => f(M, b),
|
|
11492
11506
|
type: "button",
|
|
11493
11507
|
class: "btn btn-link p-1 mr-0"
|
|
11494
11508
|
}, [v("span", {
|
|
11495
11509
|
class: "f-icon f-icon-plus"
|
|
11496
11510
|
}, null)]), v("button", {
|
|
11497
11511
|
title: "移除",
|
|
11498
|
-
onClick: (b) => r(
|
|
11512
|
+
onClick: (b) => r(M, b),
|
|
11499
11513
|
type: "button",
|
|
11500
11514
|
class: "btn btn-link p-1 m-0"
|
|
11501
11515
|
}, [v("span", {
|
|
@@ -11696,19 +11710,19 @@ function $u(e, t) {
|
|
|
11696
11710
|
function h() {
|
|
11697
11711
|
if (e.editorType === "filter")
|
|
11698
11712
|
for (let y = 0; y < t.value.length - 1; y++) {
|
|
11699
|
-
const
|
|
11700
|
-
(
|
|
11713
|
+
const x = t.value[y];
|
|
11714
|
+
(x.relation === ct.Empty || !x.relation) && (x.relation = ct.And);
|
|
11701
11715
|
}
|
|
11702
11716
|
}
|
|
11703
11717
|
function f() {
|
|
11704
11718
|
const y = Object.assign({}, u);
|
|
11705
11719
|
t.value = [...t.value, y];
|
|
11706
|
-
const
|
|
11707
|
-
n.value =
|
|
11720
|
+
const x = t.value.length - 1;
|
|
11721
|
+
n.value = x, h();
|
|
11708
11722
|
}
|
|
11709
11723
|
function r({ index: y }) {
|
|
11710
|
-
const
|
|
11711
|
-
e.insertType === "above" ? y === 0 ? t.value.unshift(
|
|
11724
|
+
const x = Object.assign({}, u);
|
|
11725
|
+
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
11726
|
}
|
|
11713
11727
|
function m({ index: y }) {
|
|
11714
11728
|
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 +11735,14 @@ function $u(e, t) {
|
|
|
11721
11735
|
}
|
|
11722
11736
|
function p() {
|
|
11723
11737
|
if (n.value >= 0) {
|
|
11724
|
-
const y = n.value,
|
|
11725
|
-
t.value.splice(y - 1, 0, ...
|
|
11738
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11739
|
+
t.value.splice(y - 1, 0, ...x), n.value = y - 1;
|
|
11726
11740
|
}
|
|
11727
11741
|
}
|
|
11728
11742
|
function w() {
|
|
11729
11743
|
if (n.value >= 0) {
|
|
11730
|
-
const y = n.value,
|
|
11731
|
-
t.value.splice(y + 1, 0, ...
|
|
11744
|
+
const y = n.value, x = t.value.splice(y, 1);
|
|
11745
|
+
t.value.splice(y + 1, 0, ...x), n.value = y + 1;
|
|
11732
11746
|
}
|
|
11733
11747
|
}
|
|
11734
11748
|
function k() {
|
|
@@ -11737,36 +11751,36 @@ function $u(e, t) {
|
|
|
11737
11751
|
function B({ index: y }) {
|
|
11738
11752
|
n.value = y;
|
|
11739
11753
|
}
|
|
11740
|
-
function
|
|
11754
|
+
function M(y) {
|
|
11741
11755
|
if (y.length % 2 !== 0)
|
|
11742
11756
|
return !1;
|
|
11743
|
-
let
|
|
11744
|
-
for (const
|
|
11745
|
-
if (
|
|
11746
|
-
|
|
11747
|
-
else if (
|
|
11748
|
-
if (!
|
|
11757
|
+
let x = "";
|
|
11758
|
+
for (const E of y)
|
|
11759
|
+
if (E === "(")
|
|
11760
|
+
x += E;
|
|
11761
|
+
else if (E === ")") {
|
|
11762
|
+
if (!x.endsWith("("))
|
|
11749
11763
|
return !1;
|
|
11750
|
-
|
|
11764
|
+
x = x.slice(0, -1);
|
|
11751
11765
|
}
|
|
11752
|
-
return
|
|
11766
|
+
return x.length === 0;
|
|
11753
11767
|
}
|
|
11754
11768
|
function b() {
|
|
11755
11769
|
const y = t.value.length;
|
|
11756
11770
|
if (!y)
|
|
11757
11771
|
return !0;
|
|
11758
|
-
let
|
|
11772
|
+
let x = !0, E = !0;
|
|
11759
11773
|
if (e.editorType !== "sort") {
|
|
11760
|
-
t.value[y - 1].relation = ct.Empty,
|
|
11761
|
-
(
|
|
11774
|
+
t.value[y - 1].relation = ct.Empty, E = !t.value.slice(0, -1).some(
|
|
11775
|
+
(F) => F.relation === ct.Empty || !F.relation
|
|
11762
11776
|
);
|
|
11763
|
-
const
|
|
11764
|
-
|
|
11777
|
+
const O = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11778
|
+
x = M(O);
|
|
11765
11779
|
}
|
|
11766
11780
|
const I = t.value.some((R) => !R[i]);
|
|
11767
11781
|
return [
|
|
11768
|
-
{ result:
|
|
11769
|
-
{ result:
|
|
11782
|
+
{ result: x, message: "括号不匹配,请检查。" },
|
|
11783
|
+
{ result: E, message: "关系设置不完整,请检查。" },
|
|
11770
11784
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11771
11785
|
].find((R) => !R.result);
|
|
11772
11786
|
}
|
|
@@ -11807,18 +11821,18 @@ const en = /* @__PURE__ */ oe({
|
|
|
11807
11821
|
onMoveTop: w,
|
|
11808
11822
|
onInsert: k,
|
|
11809
11823
|
onRemove: B,
|
|
11810
|
-
activeRowIndex:
|
|
11824
|
+
activeRowIndex: M,
|
|
11811
11825
|
onSelectRow: b,
|
|
11812
11826
|
canClear: y,
|
|
11813
|
-
canMove:
|
|
11814
|
-
validateCondition:
|
|
11827
|
+
canMove: x,
|
|
11828
|
+
validateCondition: E,
|
|
11815
11829
|
resetActiveRow: I
|
|
11816
11830
|
} = $u(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11817
|
-
function
|
|
11831
|
+
function O() {
|
|
11818
11832
|
return e.editorType === "sort" ? v(Vu, {
|
|
11819
11833
|
conditions: c.value,
|
|
11820
11834
|
fields: u.value,
|
|
11821
|
-
activeIndex:
|
|
11835
|
+
activeIndex: M.value,
|
|
11822
11836
|
onInsert: (j) => k(j),
|
|
11823
11837
|
onRemove: (j) => B(j),
|
|
11824
11838
|
idField: e.idField,
|
|
@@ -11830,15 +11844,15 @@ const en = /* @__PURE__ */ oe({
|
|
|
11830
11844
|
conditions: c.value,
|
|
11831
11845
|
fields: u.value,
|
|
11832
11846
|
idField: e.idField,
|
|
11833
|
-
activeIndex:
|
|
11847
|
+
activeIndex: M.value,
|
|
11834
11848
|
onInsert: (j) => k(j),
|
|
11835
11849
|
onRemove: (j) => B(j),
|
|
11836
11850
|
onRowClick: (j) => b(j),
|
|
11837
11851
|
formContextData: i.value
|
|
11838
11852
|
}, null);
|
|
11839
11853
|
}
|
|
11840
|
-
const
|
|
11841
|
-
async function
|
|
11854
|
+
const F = N(() => JSON.stringify(c.value) === JSON.stringify(h.value)), S = N(() => e.disableConfirmWhenUnchanged && F.value);
|
|
11855
|
+
async function T() {
|
|
11842
11856
|
if (t.emit("update:modelValue", c.value), e.onSubmitModal) {
|
|
11843
11857
|
o == null || o.show();
|
|
11844
11858
|
const j = await e.onSubmitModal({
|
|
@@ -11848,11 +11862,11 @@ const en = /* @__PURE__ */ oe({
|
|
|
11848
11862
|
originalConditions: h,
|
|
11849
11863
|
FMessageBoxService: ft
|
|
11850
11864
|
});
|
|
11851
|
-
return o == null || o.clearAll(), j && (
|
|
11865
|
+
return o == null || o.clearAll(), j && (M.value = -1, a.success("过滤条件配置成功!")), j;
|
|
11852
11866
|
}
|
|
11853
11867
|
return !0;
|
|
11854
11868
|
}
|
|
11855
|
-
const
|
|
11869
|
+
const P = {
|
|
11856
11870
|
title: R.value,
|
|
11857
11871
|
width: 800,
|
|
11858
11872
|
height: 600,
|
|
@@ -11863,7 +11877,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11863
11877
|
resizeable: !0,
|
|
11864
11878
|
draggable: !0,
|
|
11865
11879
|
closedCallback: () => {
|
|
11866
|
-
|
|
11880
|
+
M.value = -1;
|
|
11867
11881
|
},
|
|
11868
11882
|
buttons: [{
|
|
11869
11883
|
name: "cancel",
|
|
@@ -11876,12 +11890,12 @@ const en = /* @__PURE__ */ oe({
|
|
|
11876
11890
|
class: "btn btn-primary",
|
|
11877
11891
|
disabled: S,
|
|
11878
11892
|
handle: async (j) => {
|
|
11879
|
-
const G =
|
|
11880
|
-
return
|
|
11893
|
+
const G = E();
|
|
11894
|
+
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
11881
11895
|
}
|
|
11882
11896
|
}]
|
|
11883
11897
|
};
|
|
11884
|
-
async function
|
|
11898
|
+
async function V() {
|
|
11885
11899
|
if (e.beforeOpen)
|
|
11886
11900
|
try {
|
|
11887
11901
|
o == null || o.show();
|
|
@@ -11913,10 +11927,10 @@ const en = /* @__PURE__ */ oe({
|
|
|
11913
11927
|
}
|
|
11914
11928
|
return I(), !0;
|
|
11915
11929
|
}
|
|
11916
|
-
function
|
|
11930
|
+
function _() {
|
|
11917
11931
|
t.emit("update:modelValue", "");
|
|
11918
11932
|
}
|
|
11919
|
-
function
|
|
11933
|
+
function L(j) {
|
|
11920
11934
|
t.emit("update:modelValue", j);
|
|
11921
11935
|
}
|
|
11922
11936
|
return () => v(Rt, {
|
|
@@ -11928,20 +11942,20 @@ const en = /* @__PURE__ */ oe({
|
|
|
11928
11942
|
enableClear: e.enableClear,
|
|
11929
11943
|
buttonContent: s,
|
|
11930
11944
|
buttonBehavior: "Modal",
|
|
11931
|
-
modalOptions:
|
|
11932
|
-
beforeOpen:
|
|
11933
|
-
onClear:
|
|
11945
|
+
modalOptions: P,
|
|
11946
|
+
beforeOpen: V,
|
|
11947
|
+
onClear: _,
|
|
11934
11948
|
enableTitle: e.enableTitle,
|
|
11935
|
-
"onUpdate:modelValue":
|
|
11949
|
+
"onUpdate:modelValue": L
|
|
11936
11950
|
}, {
|
|
11937
11951
|
default: () => [v("div", {
|
|
11938
11952
|
class: "h-100 d-flex flex-column"
|
|
11939
11953
|
}, [v("div", {
|
|
11940
11954
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
11941
11955
|
class: "shading-border-top"
|
|
11942
|
-
}, null),
|
|
11956
|
+
}, null), O(), v(Lu, {
|
|
11943
11957
|
canClear: y,
|
|
11944
|
-
canMove:
|
|
11958
|
+
canMove: x,
|
|
11945
11959
|
onAdd: r,
|
|
11946
11960
|
onClear: m,
|
|
11947
11961
|
onMoveBottom: d,
|
|
@@ -11951,7 +11965,7 @@ const en = /* @__PURE__ */ oe({
|
|
|
11951
11965
|
}, null)])]
|
|
11952
11966
|
});
|
|
11953
11967
|
}
|
|
11954
|
-
}),
|
|
11968
|
+
}), Md = {
|
|
11955
11969
|
install(e) {
|
|
11956
11970
|
e.component(en.name, en);
|
|
11957
11971
|
},
|
|
@@ -11966,7 +11980,7 @@ export {
|
|
|
11966
11980
|
ct as FilterRelation,
|
|
11967
11981
|
bu as SortType,
|
|
11968
11982
|
Re as ValueType,
|
|
11969
|
-
|
|
11983
|
+
Md as default,
|
|
11970
11984
|
ta as filterConditionEditorProps,
|
|
11971
11985
|
cr as propsResolver,
|
|
11972
11986
|
Cu as treeNodeStatus,
|