@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Sn = Object.defineProperty;
|
|
2
2
|
var Tn = (e, t, n) => t in e ? Sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var he = (e, t, n) => Tn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as Xe, ref as h, computed as
|
|
4
|
+
import { defineComponent as Xe, ref as h, computed as R, createVNode as C, Teleport as Wt, createApp as Pt, onUnmounted as st, Fragment as Ue, watch as fe, nextTick as et, onBeforeMount as Bn, onMounted as tt, Transition as qt, shallowRef as kn, render as It, h as Fn, cloneVNode as En, mergeProps as vt, reactive as He, createTextVNode as Gt, inject as Mn, withDirectives as In, vShow as On, onUpdated as Rn, onBeforeUnmount as Pn } from "vue";
|
|
5
5
|
import { resolveAppearance as Nn, createPropsResolver as Ut } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import { useI18n as Nt } from "vue-i18n";
|
|
7
7
|
import { getMaxZIndex as Dn, getCustomClass as jn, withInstall as Xt, FormSchemaEntityField$Type as zt, FormSchemaEntityFieldTypeName as At, useGuid as Hn } from "../common/index.esm.js";
|
|
8
8
|
import { LocaleService as gt } from "../locale/index.esm.js";
|
|
9
|
-
import {
|
|
9
|
+
import { cloneDeep as Ot, isPlainObject as Vt, isUndefined as De, debounce as Ln } from "lodash-es";
|
|
10
10
|
import "../accordion/index.esm.js";
|
|
11
11
|
import "../avatar/index.esm.js";
|
|
12
12
|
import "../../designer/button-edit/index.esm.js";
|
|
@@ -221,14 +221,14 @@ const ko = {
|
|
|
221
221
|
props: Fo,
|
|
222
222
|
emits: ["click"],
|
|
223
223
|
setup(e, t) {
|
|
224
|
-
const n = h(e.popupContentPosition), o = h(e.host), a =
|
|
224
|
+
const n = h(e.popupContentPosition), o = h(e.host), a = R(() => ({
|
|
225
225
|
backgroundColor: e.backgroundColor || "",
|
|
226
226
|
pointerEvents: "auto"
|
|
227
227
|
}));
|
|
228
228
|
function i(s) {
|
|
229
229
|
t.emit("click"), s.preventDefault(), s.stopPropagation();
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
R(() => {
|
|
232
232
|
const s = o.value;
|
|
233
233
|
if (s) {
|
|
234
234
|
const c = s.getBoundingClientRect(), {
|
|
@@ -243,7 +243,7 @@ const ko = {
|
|
|
243
243
|
}
|
|
244
244
|
return n.value;
|
|
245
245
|
});
|
|
246
|
-
const r =
|
|
246
|
+
const r = R(() => ({
|
|
247
247
|
// position: 'relative',
|
|
248
248
|
// left: `${position.value.left}px`,
|
|
249
249
|
// top: `${position.value.top}px`
|
|
@@ -605,71 +605,71 @@ class qe {
|
|
|
605
605
|
function Go(e, t) {
|
|
606
606
|
const n = h(), o = h(), a = h(), i = h(), r = h(), s = h(), c = h(), l = h(), m = h(), f = h(), p = h(), d = h(e.resizeable), u = h(), v = h(e.draggable), x = h(!1);
|
|
607
607
|
function k() {
|
|
608
|
-
const
|
|
609
|
-
if (!
|
|
608
|
+
const M = o.value || document.body, O = window.getComputedStyle(M);
|
|
609
|
+
if (!O || !n.value)
|
|
610
610
|
return;
|
|
611
611
|
const X = ae.getTransformInfo(n.value), z = {};
|
|
612
612
|
c.value && (z.deltaL = n.value.offsetLeft - c.value.x, z.deltaT = n.value.offsetTop - c.value.y);
|
|
613
|
-
const ee =
|
|
614
|
-
z.width =
|
|
613
|
+
const ee = O.getPropertyValue("position");
|
|
614
|
+
z.width = M.clientWidth, z.height = M.clientHeight, z.pr = parseInt(O.getPropertyValue("padding-right"), 10), z.pb = parseInt(O.getPropertyValue("padding-bottom"), 10), z.position = O.getPropertyValue("position"), ee === "static" && (M.style.position = "relative"), z.translateX = X.x, z.translateY = X.y, f.value = z;
|
|
615
615
|
}
|
|
616
|
-
function E(
|
|
616
|
+
function E(M) {
|
|
617
617
|
if (n.value) {
|
|
618
618
|
i.value = qe.getCurrent(n.value), r.value = ae.getCurrent(n.value), s.value = i.value ? qe.copy(i.value) : null, c.value = r.value ? ae.copy(r.value) : null, k();
|
|
619
|
-
const
|
|
619
|
+
const O = M.target.getAttribute("type") || "";
|
|
620
620
|
l.value = {
|
|
621
|
-
n: !!
|
|
622
|
-
s: !!
|
|
623
|
-
w: !!
|
|
624
|
-
e: !!
|
|
621
|
+
n: !!O.match(/n/),
|
|
622
|
+
s: !!O.match(/s/),
|
|
623
|
+
w: !!O.match(/w/),
|
|
624
|
+
e: !!O.match(/e/)
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
var
|
|
628
|
+
function j() {
|
|
629
|
+
var M, O, X, z;
|
|
630
630
|
if (n.value) {
|
|
631
631
|
const ee = n.value;
|
|
632
|
-
l.value && ((l.value.n || l.value.s) && ((
|
|
632
|
+
l.value && ((l.value.n || l.value.s) && ((M = s.value) != null && M.height) && (ee.style.height = s.value.height + "px"), (l.value.w || l.value.e) && ((O = s.value) != null && O.width) && (ee.style.width = s.value.width + "px"), c.value && ((X = c.value) != null && X.x && (ee.style.left = c.value.x + "px"), (z = c.value) != null && z.y && (ee.style.top = c.value.y + "px")));
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
const
|
|
637
|
-
s.value && c.value && l.value && i.value && (s.value.height <
|
|
635
|
+
function N() {
|
|
636
|
+
const M = e.minHeight ? e.minHeight : 1, O = e.minWidth ? e.minWidth : 1;
|
|
637
|
+
s.value && c.value && l.value && i.value && (s.value.height < M && (s.value.height = M, l.value.n && r.value && (c.value.y = r.value.y + (i.value.height - M))), s.value.width < O && (s.value.width = O, l.value.w && r.value && (c.value.x = r.value.x + (i.value.width - O))), e.maxHeight && s.value.height > e.maxHeight && (s.value.height = e.maxHeight, r.value && l.value.n && (c.value.y = r.value.y + (i.value.height - e.maxHeight))), e.maxWidth && s.value.width > e.maxWidth && (s.value.width = e.maxWidth, l.value.w && r.value && (c.value.x = r.value.x + (i.value.width - e.maxWidth))));
|
|
638
638
|
}
|
|
639
639
|
function S() {
|
|
640
640
|
if (o.value) {
|
|
641
|
-
const
|
|
641
|
+
const M = f.value;
|
|
642
642
|
if (c.value && s.value && l.value && i.value) {
|
|
643
|
-
const
|
|
644
|
-
l.value.n && c.value.y +
|
|
643
|
+
const O = M.width - M.pr - M.deltaL - M.translateX - c.value.x, X = M.height - M.pb - M.deltaT - M.translateY - c.value.y;
|
|
644
|
+
l.value.n && c.value.y + M.translateY < 0 && r.value && (c.value.y = -M.translateY, s.value.height = i.value.height + r.value.y + M.translateY), l.value.w && c.value.x + M.translateX < 0 && r.value && (c.value.x = -M.translateX, s.value.width = i.value.width + r.value.x + M.translateX), s.value.width > O && (s.value.width = O), s.value.height > X && (s.value.height = X);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function b(
|
|
648
|
+
function b(M) {
|
|
649
649
|
if (!a.value || !i.value || !r.value || !l.value)
|
|
650
650
|
return;
|
|
651
|
-
|
|
652
|
-
const
|
|
653
|
-
l.value.n ? (c.value.y = r.value.y + X, s.value.height = i.value.height - X) : l.value.s && (s.value.height = i.value.height + X), l.value.e ? s.value.width = i.value.width +
|
|
651
|
+
M.subtract(a.value);
|
|
652
|
+
const O = M.x, X = M.y;
|
|
653
|
+
l.value.n ? (c.value.y = r.value.y + X, s.value.height = i.value.height - X) : l.value.s && (s.value.height = i.value.height + X), l.value.e ? s.value.width = i.value.width + O : l.value.w && (s.value.width = i.value.width - O, c.value.x = r.value.x + O), S(), N(), j();
|
|
654
654
|
}
|
|
655
|
-
function w(
|
|
655
|
+
function w(M) {
|
|
656
656
|
if (!m.value)
|
|
657
657
|
return;
|
|
658
|
-
const
|
|
659
|
-
|
|
658
|
+
const O = ae.fromEvent(M);
|
|
659
|
+
O && b(O);
|
|
660
660
|
}
|
|
661
661
|
function T() {
|
|
662
662
|
if (n.value) {
|
|
663
663
|
const {
|
|
664
|
-
width:
|
|
665
|
-
height:
|
|
664
|
+
width: M,
|
|
665
|
+
height: O,
|
|
666
666
|
x: X,
|
|
667
667
|
y: z
|
|
668
668
|
} = n.value.getBoundingClientRect(), ee = ae.getTransformInfo(n.value);
|
|
669
669
|
return {
|
|
670
670
|
size: {
|
|
671
|
-
width:
|
|
672
|
-
height:
|
|
671
|
+
width: M,
|
|
672
|
+
height: O
|
|
673
673
|
},
|
|
674
674
|
position: {
|
|
675
675
|
x: X - ee.x,
|
|
@@ -679,58 +679,58 @@ function Go(e, t) {
|
|
|
679
679
|
}
|
|
680
680
|
return null;
|
|
681
681
|
}
|
|
682
|
-
function F(
|
|
682
|
+
function F(M) {
|
|
683
683
|
if (n.value) {
|
|
684
|
-
const
|
|
685
|
-
p.value =
|
|
684
|
+
const O = T();
|
|
685
|
+
p.value = O;
|
|
686
686
|
}
|
|
687
687
|
a.value = void 0, i.value = null, r.value = null, s.value = null, c.value = null, l.value = null, m.value = null, document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", F);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function _() {
|
|
690
690
|
document.addEventListener("mousemove", w), document.addEventListener("mouseup", F);
|
|
691
691
|
}
|
|
692
|
-
function g(
|
|
693
|
-
|
|
692
|
+
function g(M) {
|
|
693
|
+
M instanceof MouseEvent && M.button === 2 || v.value && (document.body.click(), M.stopPropagation(), M.preventDefault(), a.value = ae.fromEvent(M), m.value = M.target, E(M), _());
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
return n.value =
|
|
695
|
+
function $(M) {
|
|
696
|
+
return n.value = M, d.value && C(Ue, null, [C("div", {
|
|
697
697
|
class: "fv-resizable-handle fv-resizable-n",
|
|
698
698
|
type: "n",
|
|
699
|
-
onMousedown: (
|
|
699
|
+
onMousedown: (O) => g(O)
|
|
700
700
|
}, null), C("div", {
|
|
701
701
|
class: "fv-resizable-handle fv-resizable-e",
|
|
702
702
|
type: "e",
|
|
703
|
-
onMousedown: (
|
|
703
|
+
onMousedown: (O) => g(O)
|
|
704
704
|
}, null), C("div", {
|
|
705
705
|
class: "fv-resizable-handle fv-resizable-s",
|
|
706
706
|
type: "s",
|
|
707
|
-
onMousedown: (
|
|
707
|
+
onMousedown: (O) => g(O)
|
|
708
708
|
}, null), C("div", {
|
|
709
709
|
class: "fv-resizable-handle fv-resizable-w",
|
|
710
710
|
type: "w",
|
|
711
|
-
onMousedown: (
|
|
711
|
+
onMousedown: (O) => g(O)
|
|
712
712
|
}, null), C("div", {
|
|
713
713
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
714
714
|
type: "ne",
|
|
715
|
-
onMousedown: (
|
|
715
|
+
onMousedown: (O) => g(O)
|
|
716
716
|
}, null), C("div", {
|
|
717
717
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
718
718
|
type: "se",
|
|
719
|
-
onMousedown: (
|
|
719
|
+
onMousedown: (O) => g(O)
|
|
720
720
|
}, null), C("div", {
|
|
721
721
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
722
722
|
type: "sw",
|
|
723
|
-
onMousedown: (
|
|
723
|
+
onMousedown: (O) => g(O)
|
|
724
724
|
}, null), C("div", {
|
|
725
725
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
726
726
|
type: "nw",
|
|
727
|
-
onMousedown: (
|
|
727
|
+
onMousedown: (O) => g(O)
|
|
728
728
|
}, null)]);
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function W(M = !0) {
|
|
731
731
|
document.body.click();
|
|
732
|
-
const
|
|
733
|
-
|
|
732
|
+
const O = o.value || document.body, X = qe.getCurrent(O), z = n.value;
|
|
733
|
+
M && z && (u.value = T(), u.value.transform = z.style.transform), X && z && (s.value = X, s.value.height -= 14, s.value.width -= 14, z.style.height = s.value.height + "px", z.style.width = s.value.width + "px", z.style.left = "7px", z.style.top = "7px", z.style.transform = "", p.value = {
|
|
734
734
|
size: s.value,
|
|
735
735
|
position: {
|
|
736
736
|
x: 0,
|
|
@@ -738,8 +738,8 @@ function Go(e, t) {
|
|
|
738
738
|
}
|
|
739
739
|
}, v.value = !1, x.value = !0);
|
|
740
740
|
}
|
|
741
|
-
function
|
|
742
|
-
var
|
|
741
|
+
function L() {
|
|
742
|
+
var M, O;
|
|
743
743
|
if (document.body.click(), u.value) {
|
|
744
744
|
const X = {
|
|
745
745
|
width: u.value.size.width || 0,
|
|
@@ -748,7 +748,7 @@ function Go(e, t) {
|
|
|
748
748
|
x: (window.innerWidth - X.width) / 2,
|
|
749
749
|
y: (window.innerHeight - X.height) / 2
|
|
750
750
|
};
|
|
751
|
-
(
|
|
751
|
+
(M = s.value) == null || M.set(X), (O = c.value) == null || O.set(z);
|
|
752
752
|
const ee = n.value;
|
|
753
753
|
ee.style.height = X.height + "px", ee.style.width = X.width + "px", ee.style.left = `${z.x}px`, ee.style.top = `${z.y}px`, ee.style.transform = "", p.value = {
|
|
754
754
|
size: X,
|
|
@@ -756,37 +756,37 @@ function Go(e, t) {
|
|
|
756
756
|
}, v.value = e.draggable, x.value = !1;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function G() {
|
|
760
760
|
if (n.value) {
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
761
|
+
const M = qe.getCurrent(n.value);
|
|
762
|
+
if (M) {
|
|
763
763
|
const {
|
|
764
|
-
width:
|
|
764
|
+
width: O,
|
|
765
765
|
height: X
|
|
766
|
-
} =
|
|
767
|
-
n.value.style.left = `${(window.innerWidth -
|
|
766
|
+
} = M;
|
|
767
|
+
n.value.style.left = `${(window.innerWidth - O) / 2}px`, n.value.style.top = `${(window.innerHeight - X) / 2}px`, n.value.style.transform = "";
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
const
|
|
773
|
-
x.value ?
|
|
771
|
+
function A() {
|
|
772
|
+
const M = () => {
|
|
773
|
+
x.value ? W(!1) : G(), document.body.click();
|
|
774
774
|
};
|
|
775
|
-
return window.addEventListener("resize",
|
|
776
|
-
window.removeEventListener("resize",
|
|
775
|
+
return window.addEventListener("resize", M), () => {
|
|
776
|
+
window.removeEventListener("resize", M);
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
const
|
|
779
|
+
const Q = A();
|
|
780
780
|
return {
|
|
781
|
-
renderResizeBar:
|
|
781
|
+
renderResizeBar: $,
|
|
782
782
|
boundingElement: o,
|
|
783
783
|
resizedEventParam: p,
|
|
784
|
-
maximize:
|
|
785
|
-
restore:
|
|
784
|
+
maximize: W,
|
|
785
|
+
restore: L,
|
|
786
786
|
allowDrag: v,
|
|
787
787
|
isMaximized: x,
|
|
788
|
-
unWindowResizeHandle:
|
|
789
|
-
moveToCenter:
|
|
788
|
+
unWindowResizeHandle: Q,
|
|
789
|
+
moveToCenter: G
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
function Uo(e, t, n) {
|
|
@@ -805,9 +805,9 @@ function Uo(e, t, n) {
|
|
|
805
805
|
return !1;
|
|
806
806
|
}
|
|
807
807
|
function u() {
|
|
808
|
-
var
|
|
808
|
+
var _, g;
|
|
809
809
|
let w = f.value.x + m.value.x, T = f.value.y + m.value.y;
|
|
810
|
-
i.value === "x" ? (w = ((
|
|
810
|
+
i.value === "x" ? (w = ((_ = l.value) == null ? void 0 : _.x) || 0, f.value.x = 0) : i.value === "y" && (T = ((g = l.value) == null ? void 0 : g.y) || 0, f.value.y = 0);
|
|
811
811
|
const F = `translate3d(${Math.round(w)}px, ${Math.round(T)}px, 0px)`;
|
|
812
812
|
o.value && (o.value.style.transform = F), p.value.x = w, p.value.y = T;
|
|
813
813
|
}
|
|
@@ -832,10 +832,10 @@ function Uo(e, t, n) {
|
|
|
832
832
|
var w;
|
|
833
833
|
c.value && (c.value = !1, m.value.add(f.value), f.value.reset(), (w = o.value) == null || w.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", E));
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function j() {
|
|
836
836
|
!c.value && r.value && (c.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", k), document.addEventListener("mouseup", E));
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function N() {
|
|
839
839
|
if (o.value) {
|
|
840
840
|
const w = ae.getTransformInfo(o.value);
|
|
841
841
|
m.value.set(w);
|
|
@@ -847,7 +847,7 @@ function Uo(e, t, n) {
|
|
|
847
847
|
if (!n.value || w instanceof MouseEvent && w.button === 2)
|
|
848
848
|
return;
|
|
849
849
|
const T = w.target || w.srcElement;
|
|
850
|
-
r.value !== void 0 && T && !d(T, r.value) || a.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), l.value = ae.fromEvent(w, o.value),
|
|
850
|
+
r.value !== void 0 && T && !d(T, r.value) || a.value !== !1 && (document.body.click(), w.stopPropagation(), w.preventDefault(), l.value = ae.fromEvent(w, o.value), N(), j());
|
|
851
851
|
}
|
|
852
852
|
function b(w, T, F) {
|
|
853
853
|
if (a.value && T) {
|
|
@@ -857,8 +857,8 @@ function Uo(e, t, n) {
|
|
|
857
857
|
if (e.dragHandle instanceof HTMLElement)
|
|
858
858
|
r.value = e.dragHandle;
|
|
859
859
|
else if (typeof e.dragHandle == "string") {
|
|
860
|
-
const
|
|
861
|
-
|
|
860
|
+
const _ = T.querySelector(e.dragHandle);
|
|
861
|
+
_ && (r.value = _);
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
o.value = T, s.value = F, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", S)) : a.value = !1;
|
|
@@ -866,7 +866,7 @@ function Uo(e, t, n) {
|
|
|
866
866
|
}
|
|
867
867
|
return {
|
|
868
868
|
registerDraggle: b,
|
|
869
|
-
resetTranslate:
|
|
869
|
+
resetTranslate: N
|
|
870
870
|
};
|
|
871
871
|
}
|
|
872
872
|
function Jt(e, t) {
|
|
@@ -902,10 +902,10 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
902
902
|
props: Yt,
|
|
903
903
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
904
904
|
setup(e, t) {
|
|
905
|
-
const n = h(e.width || 300), o = h(e.height || 200), a = h(e.modelValue), i = h(""), r = h(e.class), s = h(e.fitContent), c = h(e.showHeader), l = h(""), m = h(e.showCloseButton), f = h(e.showMaxButton), p = h(!1), d = h(e.dialogType), u = h(e.src), v = h(""), x = h(e.showButtons), k = h(e.title), E = h(e.containment || null),
|
|
906
|
-
t:
|
|
905
|
+
const n = h(e.width || 300), o = h(e.height || 200), a = h(e.modelValue), i = h(""), r = h(e.class), s = h(e.fitContent), c = h(e.showHeader), l = h(""), m = h(e.showCloseButton), f = h(e.showMaxButton), p = h(!1), d = h(e.dialogType), u = h(e.src), v = h(""), x = h(e.showButtons), k = h(e.title), E = h(e.containment || null), j = h(), {
|
|
906
|
+
t: N
|
|
907
907
|
} = Nt();
|
|
908
|
-
k.value === "错误提示" && (k.value =
|
|
908
|
+
k.value === "错误提示" && (k.value = N("messageBox.errorTitle"));
|
|
909
909
|
const S = h(!1);
|
|
910
910
|
function b(B, J) {
|
|
911
911
|
const re = J ? "accept" : "cancel";
|
|
@@ -920,56 +920,56 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
920
920
|
}
|
|
921
921
|
const w = [{
|
|
922
922
|
name: "cancel",
|
|
923
|
-
text:
|
|
923
|
+
text: N("messageBox.cancel") || "取消",
|
|
924
924
|
class: "btn btn-secondary",
|
|
925
925
|
handle: (B) => {
|
|
926
926
|
b(B, !1);
|
|
927
927
|
}
|
|
928
928
|
}, {
|
|
929
929
|
name: "accept",
|
|
930
|
-
text:
|
|
930
|
+
text: N("messageBox.ok") || "确定",
|
|
931
931
|
class: "btn btn-primary",
|
|
932
932
|
handle: (B) => {
|
|
933
933
|
b(B, !0);
|
|
934
934
|
}
|
|
935
|
-
}], T = h(e.buttons && e.buttons.length ? e.buttons : w), F =
|
|
936
|
-
renderResizeBar:
|
|
937
|
-
maximize:
|
|
938
|
-
restore:
|
|
939
|
-
boundingElement:
|
|
940
|
-
resizedEventParam:
|
|
941
|
-
allowDrag:
|
|
935
|
+
}], T = h(e.buttons && e.buttons.length ? e.buttons : w), F = R(() => !!l.value), _ = R(() => !!x.value && !!T.value), g = h(), $ = h(), W = h(!1), {
|
|
936
|
+
renderResizeBar: L,
|
|
937
|
+
maximize: G,
|
|
938
|
+
restore: A,
|
|
939
|
+
boundingElement: Q,
|
|
940
|
+
resizedEventParam: M,
|
|
941
|
+
allowDrag: O,
|
|
942
942
|
unWindowResizeHandle: X,
|
|
943
943
|
moveToCenter: z
|
|
944
944
|
} = Go(e), {
|
|
945
945
|
registerDraggle: ee
|
|
946
|
-
} = Uo(e, t,
|
|
946
|
+
} = Uo(e, t, O);
|
|
947
947
|
function ve() {
|
|
948
948
|
return !!document.querySelectorAll(".farris-modal").length && document.body.classList.contains("modal-open");
|
|
949
949
|
}
|
|
950
950
|
function ge() {
|
|
951
951
|
const B = document.querySelectorAll(".farris-modal").length;
|
|
952
|
-
(!B || B - 1 <= 0) && document.body.classList.remove("modal-open"),
|
|
952
|
+
(!B || B - 1 <= 0) && document.body.classList.remove("modal-open"), j.value && j.value.classList.remove("show");
|
|
953
953
|
}
|
|
954
954
|
fe(() => e.title, (B, J) => {
|
|
955
955
|
B !== J && (k.value = B);
|
|
956
956
|
}), fe(() => e.modelValue, (B, J) => {
|
|
957
957
|
B !== J && (a.value = B, a.value && e.draggable && et(() => {
|
|
958
|
-
|
|
959
|
-
}), B || (E.value && (E.value = null), ge())), a.value ? S.value = ve() : (
|
|
958
|
+
$.value && !E.value && (E.value = $.value.parentElement, Q.value = E.value, ee(g.value, $.value, Q.value), z());
|
|
959
|
+
}), B || (E.value && (E.value = null), ge())), a.value ? S.value = ve() : (W.value = !1, O.value = e.draggable);
|
|
960
960
|
}), fe(() => e.showHeader, (B, J) => {
|
|
961
961
|
B !== J && (c.value = B);
|
|
962
962
|
}), fe(() => e.showButtons, (B, J) => {
|
|
963
963
|
B !== J && (x.value = B);
|
|
964
|
-
}), fe(() =>
|
|
964
|
+
}), fe(() => M.value, (B, J) => {
|
|
965
965
|
const re = B || {}, se = J || {};
|
|
966
966
|
JSON.stringify(re) !== JSON.stringify(se) && t.emit("resize", {
|
|
967
967
|
newSize: B,
|
|
968
968
|
oldSize: J,
|
|
969
|
-
isMaximized:
|
|
969
|
+
isMaximized: W.value
|
|
970
970
|
});
|
|
971
971
|
});
|
|
972
|
-
const Y =
|
|
972
|
+
const Y = R(() => (a.value && document.body.classList.add("modal-open"), a.value)), oe = R(() => {
|
|
973
973
|
var re;
|
|
974
974
|
const B = {
|
|
975
975
|
modal: !0,
|
|
@@ -979,13 +979,13 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
979
979
|
B["f-modal-fitContent"] = !!s.value, B.show = !!Y.value;
|
|
980
980
|
const J = (re = e.maskClass) == null ? void 0 : re.split(" ");
|
|
981
981
|
return J == null || J.reduce((se, Me) => (se[Me] = !0, se), B), B;
|
|
982
|
-
}), le =
|
|
982
|
+
}), le = R(() => {
|
|
983
983
|
var re;
|
|
984
984
|
const B = {
|
|
985
985
|
"modal-dialog": !0
|
|
986
986
|
}, J = (re = r.value) == null ? void 0 : re.split(" ");
|
|
987
987
|
return J == null || J.reduce((se, Me) => (se[Me] = !0, se), B), B;
|
|
988
|
-
}), te =
|
|
988
|
+
}), te = R(() => {
|
|
989
989
|
const B = {
|
|
990
990
|
position: "absolute",
|
|
991
991
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
@@ -994,25 +994,25 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
994
994
|
height: s.value ? "auto" : `${o.value}px`
|
|
995
995
|
};
|
|
996
996
|
return e.mask || (B.pointerEvents = "auto"), B;
|
|
997
|
-
}),
|
|
997
|
+
}), V = () => Dn() || 1040, ne = R(() => {
|
|
998
998
|
const B = {
|
|
999
999
|
display: "block",
|
|
1000
|
-
zIndex:
|
|
1000
|
+
zIndex: V()
|
|
1001
1001
|
};
|
|
1002
1002
|
return e.mask || (B.pointerEvents = "none", B.backgroundColor = "transparent"), S.value && (B.backgroundColor = "transparent"), B;
|
|
1003
|
-
}), Le =
|
|
1003
|
+
}), Le = R(() => ({
|
|
1004
1004
|
"modal-content": !0,
|
|
1005
1005
|
"modal-content-has-header": c.value
|
|
1006
|
-
})), Ie =
|
|
1006
|
+
})), Ie = R(() => {
|
|
1007
1007
|
const B = {
|
|
1008
1008
|
display: c.value ? "" : "none"
|
|
1009
1009
|
};
|
|
1010
|
-
return B["pointer-events"] =
|
|
1011
|
-
}), Se =
|
|
1010
|
+
return B["pointer-events"] = O.value ? "auto" : "none", B;
|
|
1011
|
+
}), Se = R(() => ({
|
|
1012
1012
|
"f-icon": !0,
|
|
1013
1013
|
modal_maximize: !0,
|
|
1014
|
-
modalrevert:
|
|
1015
|
-
})), Ye =
|
|
1014
|
+
modalrevert: W.value
|
|
1015
|
+
})), Ye = R(() => ({
|
|
1016
1016
|
"modal-body": !0,
|
|
1017
1017
|
"f-utils-flex-column": d.value === "iframe",
|
|
1018
1018
|
"f-utils-fill": !0
|
|
@@ -1022,18 +1022,18 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
1022
1022
|
height: `${e.footerHeight || 60}px`
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
|
-
const Je =
|
|
1025
|
+
const Je = R(() => {
|
|
1026
1026
|
const B = {
|
|
1027
1027
|
textAlgin: v.value
|
|
1028
1028
|
}, J = $e();
|
|
1029
1029
|
return Object.assign(B, J);
|
|
1030
1030
|
});
|
|
1031
1031
|
function ie(B) {
|
|
1032
|
-
if (B == null || B.stopPropagation(),
|
|
1033
|
-
|
|
1032
|
+
if (B == null || B.stopPropagation(), W.value) {
|
|
1033
|
+
W.value = !1, A();
|
|
1034
1034
|
return;
|
|
1035
1035
|
}
|
|
1036
|
-
|
|
1036
|
+
G(), W.value = !0;
|
|
1037
1037
|
}
|
|
1038
1038
|
async function nt(B, J) {
|
|
1039
1039
|
B.handle && await B.handle(J, B) && t.emit("closed", J);
|
|
@@ -1045,15 +1045,15 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
1045
1045
|
Bn(() => {
|
|
1046
1046
|
S.value = ve();
|
|
1047
1047
|
}), tt(() => {
|
|
1048
|
-
|
|
1048
|
+
$.value && !E.value && (E.value = $.value.parentElement, Q.value = E.value, ee(g.value, $.value, Q.value)), Y.value && document.body.classList.add("modal-open"), Re = Xo(e, t), Te = Yo(e, t);
|
|
1049
1049
|
}), st(() => {
|
|
1050
1050
|
X && X(), Re && Re.remove(), Te && Te.remove();
|
|
1051
1051
|
}), t.expose({
|
|
1052
|
-
modalElementRef:
|
|
1052
|
+
modalElementRef: $,
|
|
1053
1053
|
updateModalOptions: Oe,
|
|
1054
1054
|
close: b,
|
|
1055
1055
|
maxDialog: ie,
|
|
1056
|
-
isMaximized:
|
|
1056
|
+
isMaximized: W
|
|
1057
1057
|
});
|
|
1058
1058
|
function Pe() {
|
|
1059
1059
|
return C("ul", null, [p.value && C("li", {
|
|
@@ -1110,11 +1110,11 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
1110
1110
|
}, [Pe()])]);
|
|
1111
1111
|
}
|
|
1112
1112
|
function Ee() {
|
|
1113
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
1113
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : _.value && ot();
|
|
1114
1114
|
}
|
|
1115
1115
|
function Ne(B) {
|
|
1116
1116
|
if (B.stopPropagation(), e.allowClickMaskToClose) {
|
|
1117
|
-
if (B.target !==
|
|
1117
|
+
if (B.target !== j.value)
|
|
1118
1118
|
return;
|
|
1119
1119
|
b(B, !1);
|
|
1120
1120
|
}
|
|
@@ -1125,7 +1125,7 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
1125
1125
|
id: i.value,
|
|
1126
1126
|
class: le.value,
|
|
1127
1127
|
style: te.value,
|
|
1128
|
-
ref:
|
|
1128
|
+
ref: $
|
|
1129
1129
|
}, [C("div", {
|
|
1130
1130
|
class: Le.value
|
|
1131
1131
|
}, [c.value && ze(), C("div", {
|
|
@@ -1136,7 +1136,7 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
1136
1136
|
width: "100%",
|
|
1137
1137
|
frameborder: "0",
|
|
1138
1138
|
src: u.value
|
|
1139
|
-
}, null)]), Ee()]), !s.value &&
|
|
1139
|
+
}, null)]), Ee()]), !s.value && $.value && !W.value && L($.value)]);
|
|
1140
1140
|
}
|
|
1141
1141
|
function Ze(B) {
|
|
1142
1142
|
return B || "body";
|
|
@@ -1149,7 +1149,7 @@ const Ge = /* @__PURE__ */ Xe({
|
|
|
1149
1149
|
appear: !0
|
|
1150
1150
|
}, {
|
|
1151
1151
|
default: () => [C("div", {
|
|
1152
|
-
ref:
|
|
1152
|
+
ref: j,
|
|
1153
1153
|
class: oe.value,
|
|
1154
1154
|
style: ne.value,
|
|
1155
1155
|
onClick: Ne
|
|
@@ -1174,11 +1174,11 @@ function Jo(e) {
|
|
|
1174
1174
|
});
|
|
1175
1175
|
const i = h(), r = h(e.class || ""), s = h(!!e.showButtons), c = h(!!e.showHeader), l = h(e.showCloseButton == null ? !0 : e.showCloseButton), m = h(!0), f = h(e.title || ""), p = e.acceptCallback || (() => {
|
|
1176
1176
|
}), d = e.rejectCallback || (() => {
|
|
1177
|
-
}), u = e.closedCallback || ((
|
|
1178
|
-
}), v = e.resizeHandle || ((
|
|
1179
|
-
}), x = e.stopMoveHandle || ((
|
|
1180
|
-
}), k = Qt(e), E = (
|
|
1181
|
-
m.value = !1, n.unmount(), u(
|
|
1177
|
+
}), u = e.closedCallback || ((j) => {
|
|
1178
|
+
}), v = e.resizeHandle || ((j) => {
|
|
1179
|
+
}), x = e.stopMoveHandle || ((j) => {
|
|
1180
|
+
}), k = Qt(e), E = (j) => {
|
|
1181
|
+
m.value = !1, n.unmount(), u(j);
|
|
1182
1182
|
};
|
|
1183
1183
|
return tt(() => {
|
|
1184
1184
|
}), a.expose({
|
|
@@ -1187,7 +1187,7 @@ function Jo(e) {
|
|
|
1187
1187
|
ref: i,
|
|
1188
1188
|
class: r.value,
|
|
1189
1189
|
modelValue: m.value,
|
|
1190
|
-
"onUpdate:modelValue": (
|
|
1190
|
+
"onUpdate:modelValue": (j) => m.value = j,
|
|
1191
1191
|
title: f.value,
|
|
1192
1192
|
width: e.width,
|
|
1193
1193
|
height: e.height,
|
|
@@ -1216,7 +1216,7 @@ class Zt {
|
|
|
1216
1216
|
he(this, "activeModalIndex", h(0));
|
|
1217
1217
|
he(this, "modalRefs", {});
|
|
1218
1218
|
he(this, "isUseEscCloseModal", h(!1));
|
|
1219
|
-
he(this, "activeModalInstance",
|
|
1219
|
+
he(this, "activeModalInstance", R(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1220
1220
|
this.app = t, this.appContext = t ? t._context : null;
|
|
1221
1221
|
}
|
|
1222
1222
|
getCurrentModal() {
|
|
@@ -1366,7 +1366,7 @@ function Qo(e = {}) {
|
|
|
1366
1366
|
return i(l).reduce((d, u) => d && r(u, m), !0);
|
|
1367
1367
|
}
|
|
1368
1368
|
function c(l, m) {
|
|
1369
|
-
const f = Object.keys(l), p = f.includes("allOf"), d = f.includes("anyOf"), u = p || d, k = (u ? l[u ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((
|
|
1369
|
+
const f = Object.keys(l), p = f.includes("allOf"), d = f.includes("anyOf"), u = p || d, k = (u ? l[u ? p ? "allOf" : "anyOf" : "allOf"] : [l]).map((j) => s(j, m));
|
|
1370
1370
|
return p ? !k.includes(!1) : k.includes(!0);
|
|
1371
1371
|
}
|
|
1372
1372
|
return { parseValueSchema: c };
|
|
@@ -1383,7 +1383,7 @@ const Zo = {
|
|
|
1383
1383
|
e.editor && (e.editor[t] = n);
|
|
1384
1384
|
},
|
|
1385
1385
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
1386
|
-
},
|
|
1386
|
+
}, P = {
|
|
1387
1387
|
button: { type: "button", name: "按钮" },
|
|
1388
1388
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
1389
1389
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -1434,7 +1434,7 @@ const Zo = {
|
|
|
1434
1434
|
convertFrom: (e, t, n) => {
|
|
1435
1435
|
var a;
|
|
1436
1436
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
1437
|
-
return ((a =
|
|
1437
|
+
return ((a = P[o]) == null ? void 0 : a.name) || o;
|
|
1438
1438
|
}
|
|
1439
1439
|
}, na = {
|
|
1440
1440
|
convertTo: (e, t, n, o) => {
|
|
@@ -1673,51 +1673,51 @@ function Kt(e, t, n) {
|
|
|
1673
1673
|
const x = u.$converter || v;
|
|
1674
1674
|
return typeof x == "string" && x && o.has(x) ? o.get(x) || null : x || null;
|
|
1675
1675
|
}
|
|
1676
|
-
function m(u, v, x, k, E,
|
|
1676
|
+
function m(u, v, x, k, E, j = "", N = "") {
|
|
1677
1677
|
return Object.keys(u).map((b) => {
|
|
1678
|
-
const w = h(1), T = b, F = u[b],
|
|
1679
|
-
|
|
1680
|
-
const
|
|
1681
|
-
let
|
|
1682
|
-
const X =
|
|
1678
|
+
const w = h(1), T = b, F = u[b], _ = Object.keys(F), g = F.title, $ = F.type, W = a.get($) || { type: "input-group", enableClear: !1 }, L = F.editor ? Object.assign({}, W, F.editor) : Object.assign({}, W), G = s(_, F, v), A = c(_, F, v);
|
|
1679
|
+
L.readonly = L.readonly === void 0 ? A() : L.readonly;
|
|
1680
|
+
const Q = F.type === "cascade" ? m(F.properties, v, x, k, E, j, N) : [], M = !0;
|
|
1681
|
+
let O = l(F, N);
|
|
1682
|
+
const X = R({
|
|
1683
1683
|
get() {
|
|
1684
1684
|
if (w.value) {
|
|
1685
|
-
if (["class", "style"].find((le) => le === T) && !
|
|
1686
|
-
return
|
|
1685
|
+
if (["class", "style"].find((le) => le === T) && !O && (O = o.get("/converter/appearance.converter") || null), O && O.convertFrom)
|
|
1686
|
+
return O.convertFrom(x, b, E, j);
|
|
1687
1687
|
const oe = x[b];
|
|
1688
1688
|
return Object.prototype.hasOwnProperty.call(F, "defaultValue") && (oe === void 0 || typeof oe == "string" && oe === "") ? F.type === "boolean" ? F.defaultValue : F.defaultValue || "" : oe;
|
|
1689
1689
|
}
|
|
1690
1690
|
return null;
|
|
1691
1691
|
},
|
|
1692
1692
|
set(oe) {
|
|
1693
|
-
w.value += 1,
|
|
1693
|
+
w.value += 1, O && O.convertTo ? (O.convertTo(k, b, oe, E, j), O.convertTo(x, b, oe, E, j)) : (k[b] = oe, x[b] = oe);
|
|
1694
1694
|
}
|
|
1695
|
-
}), { refreshPanelAfterChanged: z, description: ee, isExpand: ve, parentPropertyID: ge } = F, Y = { propertyID: T, propertyName: g, propertyType:
|
|
1695
|
+
}), { refreshPanelAfterChanged: z, description: ee, isExpand: ve, parentPropertyID: ge } = F, Y = { propertyID: T, propertyName: g, propertyType: $, propertyValue: X, editor: L, visible: G, readonly: A, cascadeConfig: Q, hideCascadeTitle: M, refreshPanelAfterChanged: z, description: ee, isExpand: ve, parentPropertyID: ge };
|
|
1696
1696
|
return v[T] = Y, Y;
|
|
1697
1697
|
});
|
|
1698
1698
|
}
|
|
1699
1699
|
function f(u, v, x = {}) {
|
|
1700
1700
|
const k = {}, E = e[u];
|
|
1701
|
-
return E && E.categories ? Object.keys(E.categories).map((
|
|
1702
|
-
const S = E.categories[
|
|
1703
|
-
return { categoryId:
|
|
1701
|
+
return E && E.categories ? Object.keys(E.categories).map((N) => {
|
|
1702
|
+
const S = E.categories[N], b = S == null ? void 0 : S.title, w = m(S.properties || {}, k, {}, x, v);
|
|
1703
|
+
return { categoryId: N, categoryName: b, properties: w };
|
|
1704
1704
|
}) : [];
|
|
1705
1705
|
}
|
|
1706
1706
|
function p(u, v, x, k, E = "") {
|
|
1707
|
-
const
|
|
1707
|
+
const j = v.$ref.schema, N = v.$ref.converter, S = x[j], b = S.type, w = n(S), T = {}, F = e[b];
|
|
1708
1708
|
if (F && F.categories) {
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1711
|
-
|
|
1709
|
+
const _ = F.categories[u], g = _ == null ? void 0 : _.title;
|
|
1710
|
+
N && Object.keys(_.properties).forEach((L) => {
|
|
1711
|
+
_.properties[L].$converter = N;
|
|
1712
1712
|
});
|
|
1713
|
-
const
|
|
1714
|
-
return { categoryId: u, categoryName: g, properties:
|
|
1713
|
+
const $ = (_ == null ? void 0 : _.properties) || {}, W = m($, T, w, S, k, E);
|
|
1714
|
+
return { categoryId: u, categoryName: g, properties: W };
|
|
1715
1715
|
}
|
|
1716
1716
|
return { categoryId: u, categoryName: "", properties: [] };
|
|
1717
1717
|
}
|
|
1718
1718
|
function d(u, v, x, k, E) {
|
|
1719
|
-
const
|
|
1720
|
-
let b = E || e[
|
|
1719
|
+
const j = u.type, N = n(u), S = {};
|
|
1720
|
+
let b = E || e[j];
|
|
1721
1721
|
if (b && Object.keys(b).length === 0 && x && x.getPropConfig && (b = x.getPropConfig(k)), b && b.categories) {
|
|
1722
1722
|
const w = [];
|
|
1723
1723
|
return Object.keys(b.categories).map((T) => {
|
|
@@ -1726,8 +1726,8 @@ function Kt(e, t, n) {
|
|
|
1726
1726
|
w.push(p(T, F, u, v, k));
|
|
1727
1727
|
return;
|
|
1728
1728
|
}
|
|
1729
|
-
const
|
|
1730
|
-
w.push({ categoryId: T, categoryName:
|
|
1729
|
+
const _ = F == null ? void 0 : F.title, g = F == null ? void 0 : F.tabId, $ = F == null ? void 0 : F.tabName, W = F == null ? void 0 : F.hide, L = F == null ? void 0 : F.hideTitle, G = m(F.properties || {}, S, N, u, v, k, F.$converter), { setPropertyRelates: A } = F, Q = F == null ? void 0 : F.parentPropertyID;
|
|
1730
|
+
w.push({ categoryId: T, categoryName: _, tabId: g, tabName: $, hide: W, properties: G, hideTitle: L, setPropertyRelates: A, parentPropertyID: Q });
|
|
1731
1731
|
}), w;
|
|
1732
1732
|
}
|
|
1733
1733
|
return [];
|
|
@@ -1741,7 +1741,7 @@ function Kt(e, t, n) {
|
|
|
1741
1741
|
function en(e, t) {
|
|
1742
1742
|
let n;
|
|
1743
1743
|
function o(f) {
|
|
1744
|
-
const { properties: p, title: d, ignore: u } = f, v = u && Array.isArray(u), x = Object.keys(p).reduce((k, E) => ((!v || !u.find((
|
|
1744
|
+
const { properties: p, title: d, ignore: u } = f, v = u && Array.isArray(u), x = Object.keys(p).reduce((k, E) => ((!v || !u.find((j) => j === E)) && (k[E] = p[E].type === "object" && p[E].properties ? o(p[E]) : Ot(p[E].default)), k), {});
|
|
1745
1745
|
if (d && (!v || !u.find((k) => k === "id"))) {
|
|
1746
1746
|
const k = d.toLowerCase().replace(/-/g, "_");
|
|
1747
1747
|
x.id = `${k}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1815,9 +1815,9 @@ function en(e, t) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
return { getSchemaByType: i, resolveSchemaWithDefaultValue: l, resolveSchemaToProps: c, mappingSchemaToProps: s, setDesignerContext: m };
|
|
1817
1817
|
}
|
|
1818
|
-
const tn = {}, nn = {}, { resolveSchemaWithDefaultValue: ba } = en(tn, nn), on = {}, an = {};
|
|
1818
|
+
const tn = {}, nn = {}, { getSchemaByType: Ml, resolveSchemaWithDefaultValue: ba, resolveSchemaToProps: Il, mappingSchemaToProps: Ol, setDesignerContext: Rl } = en(tn, nn), on = {}, an = {};
|
|
1819
1819
|
Kt(on, an, ba);
|
|
1820
|
-
const rn = {}, ln = {}, { resolveSchemaWithDefaultValue: Ca, resolveSchemaToProps: wa, mappingSchemaToProps: xa } = en(rn, ln), sn = {}, un = {};
|
|
1820
|
+
const rn = {}, ln = {}, { getSchemaByType: Pl, resolveSchemaWithDefaultValue: Ca, resolveSchemaToProps: wa, mappingSchemaToProps: xa, setDesignerContext: Nl } = en(rn, ln), sn = {}, un = {};
|
|
1821
1821
|
Kt(sn, un, Ca);
|
|
1822
1822
|
function yt(e, t, n = /* @__PURE__ */ new Map(), o = (r, s, c, l) => s, a = {}, i = (r) => r) {
|
|
1823
1823
|
return rn[t.title] = t, ln[t.title] = o, sn[t.title] = a, un[t.title] = i, tn[t.title] = t, nn[t.title] = o, on[t.title] = a, an[t.title] = i, (r = {}, s = !0) => {
|
|
@@ -1951,10 +1951,10 @@ const Ke = class Ke {
|
|
|
1951
1951
|
*/
|
|
1952
1952
|
static getEditorTypesByMDataType(t, n = !1, o = "") {
|
|
1953
1953
|
if (n)
|
|
1954
|
-
return [{ key:
|
|
1954
|
+
return [{ key: P["language-textbox"].type, value: P["language-textbox"].name }];
|
|
1955
1955
|
let a = Ke.fieldControlTypeMapping[t];
|
|
1956
1956
|
if (o === "data-grid-column" && (a != null && a.length)) {
|
|
1957
|
-
const i = [
|
|
1957
|
+
const i = [P["check-group"].type, P["radio-group"].type];
|
|
1958
1958
|
a = a.filter((r) => !i.includes(r.key));
|
|
1959
1959
|
}
|
|
1960
1960
|
return a;
|
|
@@ -1977,7 +1977,7 @@ const Ke = class Ke {
|
|
|
1977
1977
|
static mappingDomPropAndSchemaProp(t, n) {
|
|
1978
1978
|
var i;
|
|
1979
1979
|
const o = (i = t.editor) == null ? void 0 : i.type, a = [];
|
|
1980
|
-
return (t.type ===
|
|
1980
|
+
return (t.type === P["data-grid-column"].type || t.type === P["tree-grid-column"].type) && n && n.categoryId && n.categoryId.indexOf("gridFieldEditor") < 0 && a.push({ domField: "title", schemaField: "name" }), a.push({ domField: "label", schemaField: "name" }), a.push({ domField: "editor.required", schemaField: "require" }), a.push({ domField: "editor.readonly", schemaField: "readonly" }), (o === P["input-group"].type || o === P.textarea.type || o === P["number-spinner"].type) && a.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === P["number-spinner"].type && a.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === P["data-grid-column"].type || t.type === P["tree-grid-column"].type) && a.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === P["combo-list"].type || o === P["radio-group"].type) && a.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === P["data-grid-column"].type || t.type === P["tree-grid-column"].type) && a.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === P["date-picker"].type && (a.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), a.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === P["number-spinner"].type && (a.push({ domField: "editor.max", schemaField: "editor.maxValue" }), a.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === P.lookup.type && (a.push({ domField: "editor.dataSource", schemaField: "editor.dataSource" }), a.push({ domField: "editor.valueField", schemaField: "editor.valueField" }), a.push({ domField: "editor.textField", schemaField: "editor.textField" }), a.push({ domField: "editor.displayType", schemaField: "editor.displayType" }), a.push({ domField: "editor.mapFields", schemaField: "editor.mapFields" }), a.push({ domField: "editor.helpId", schemaField: "editor.helpId" })), a.push({ domField: "path", schemaField: "bindingPath" }), a.push({ domField: "binding.path", schemaField: "bindingField" }), a.push({ domField: "binding.fullPath", schemaField: "path" }), (t.type === P["data-grid-column"].type || t.type === P["tree-grid-column"].type) && a.push({ domField: "field", schemaField: "bindingPath" }), a;
|
|
1981
1981
|
}
|
|
1982
1982
|
};
|
|
1983
1983
|
/**
|
|
@@ -1985,53 +1985,53 @@ const Ke = class Ke {
|
|
|
1985
1985
|
*/
|
|
1986
1986
|
he(Ke, "fieldControlTypeMapping", {
|
|
1987
1987
|
String: [
|
|
1988
|
-
{ key:
|
|
1989
|
-
{ key:
|
|
1990
|
-
{ key:
|
|
1991
|
-
{ key:
|
|
1992
|
-
{ key:
|
|
1993
|
-
{ key:
|
|
1994
|
-
{ key:
|
|
1995
|
-
{ key:
|
|
1996
|
-
{ key:
|
|
1997
|
-
{ key:
|
|
1988
|
+
{ key: P["input-group"].type, value: P["input-group"].name },
|
|
1989
|
+
{ key: P.lookup.type, value: P.lookup.name },
|
|
1990
|
+
{ key: P["date-picker"].type, value: P["date-picker"].name },
|
|
1991
|
+
{ key: P.switch.type, value: P.switch.name },
|
|
1992
|
+
{ key: P["check-box"].type, value: P["check-box"].name },
|
|
1993
|
+
{ key: P["check-group"].type, value: P["check-group"].name },
|
|
1994
|
+
{ key: P["radio-group"].type, value: P["radio-group"].name },
|
|
1995
|
+
{ key: P["combo-list"].type, value: P["combo-list"].name },
|
|
1996
|
+
{ key: P.textarea.type, value: P.textarea.name },
|
|
1997
|
+
{ key: P["time-picker"].type, value: P["time-picker"].name }
|
|
1998
1998
|
],
|
|
1999
1999
|
Text: [
|
|
2000
|
-
{ key:
|
|
2001
|
-
{ key:
|
|
2000
|
+
{ key: P.textarea.type, value: P.textarea.name },
|
|
2001
|
+
{ key: P.lookup.type, value: P.lookup.name }
|
|
2002
2002
|
],
|
|
2003
2003
|
Decimal: [
|
|
2004
|
-
{ key:
|
|
2004
|
+
{ key: P["number-spinner"].type, value: P["number-spinner"].name }
|
|
2005
2005
|
],
|
|
2006
2006
|
Integer: [
|
|
2007
|
-
{ key:
|
|
2007
|
+
{ key: P["number-spinner"].type, value: P["number-spinner"].name }
|
|
2008
2008
|
],
|
|
2009
2009
|
Number: [
|
|
2010
|
-
{ key:
|
|
2011
|
-
{ key:
|
|
2012
|
-
{ key:
|
|
2010
|
+
{ key: P["number-spinner"].type, value: P["number-spinner"].name },
|
|
2011
|
+
{ key: P.switch.type, value: P.switch.name },
|
|
2012
|
+
{ key: P["check-box"].type, value: P["check-box"].name }
|
|
2013
2013
|
],
|
|
2014
2014
|
BigNumber: [
|
|
2015
|
-
{ key:
|
|
2015
|
+
{ key: P["number-spinner"].type, value: P["number-spinner"].name }
|
|
2016
2016
|
],
|
|
2017
2017
|
Date: [
|
|
2018
|
-
{ key:
|
|
2018
|
+
{ key: P["date-picker"].type, value: P["date-picker"].name }
|
|
2019
2019
|
],
|
|
2020
2020
|
DateTime: [
|
|
2021
|
-
{ key:
|
|
2021
|
+
{ key: P["date-picker"].type, value: P["date-picker"].name }
|
|
2022
2022
|
],
|
|
2023
2023
|
Boolean: [
|
|
2024
|
-
{ key:
|
|
2025
|
-
{ key:
|
|
2024
|
+
{ key: P.switch.type, value: P.switch.name },
|
|
2025
|
+
{ key: P["check-box"].type, value: P["check-box"].name }
|
|
2026
2026
|
],
|
|
2027
2027
|
Enum: [
|
|
2028
|
-
{ key:
|
|
2029
|
-
{ key:
|
|
2028
|
+
{ key: P["combo-list"].type, value: P["combo-list"].name },
|
|
2029
|
+
{ key: P["radio-group"].type, value: P["radio-group"].name }
|
|
2030
2030
|
],
|
|
2031
2031
|
Object: [
|
|
2032
|
-
{ key:
|
|
2033
|
-
{ key:
|
|
2034
|
-
{ key:
|
|
2032
|
+
{ key: P.lookup.type, value: P.lookup.name },
|
|
2033
|
+
{ key: P["combo-list"].type, value: P["combo-list"].name },
|
|
2034
|
+
{ key: P["radio-group"].type, value: P["radio-group"].name }
|
|
2035
2035
|
]
|
|
2036
2036
|
});
|
|
2037
2037
|
let _t = Ke;
|
|
@@ -2089,13 +2089,13 @@ var Ra = { exports: {} };
|
|
|
2089
2089
|
2: [function(n, o, a) {
|
|
2090
2090
|
(function(i) {
|
|
2091
2091
|
var r = n("contra/emitter"), s = n("crossvent"), c = n("./classes"), l = document, m = l.documentElement;
|
|
2092
|
-
function f(g,
|
|
2093
|
-
var
|
|
2094
|
-
|
|
2095
|
-
var
|
|
2096
|
-
|
|
2092
|
+
function f(g, $) {
|
|
2093
|
+
var W = arguments.length;
|
|
2094
|
+
W === 1 && Array.isArray(g) === !1 && ($ = g, g = []);
|
|
2095
|
+
var L, G, A, Q, M, O, X, z, ee, ve = null, ge, Y, oe = !1, le = 0, te, V = $ || {};
|
|
2096
|
+
V.moves === void 0 && (V.moves = E), V.accepts === void 0 && (V.accepts = E), V.invalid === void 0 && (V.invalid = ot), V.containers === void 0 && (V.containers = g || []), V.isContainer === void 0 && (V.isContainer = k), V.copy === void 0 && (V.copy = !1), V.copySortSource === void 0 && (V.copySortSource = !1), V.revertOnSpill === void 0 && (V.revertOnSpill = !1), V.removeOnSpill === void 0 && (V.removeOnSpill = !1), V.direction === void 0 && (V.direction = "vertical"), V.ignoreInputTextSelection === void 0 && (V.ignoreInputTextSelection = !0), V.mirrorContainer === void 0 && (V.mirrorContainer = l.body);
|
|
2097
2097
|
var ne = r({
|
|
2098
|
-
containers:
|
|
2098
|
+
containers: V.containers,
|
|
2099
2099
|
start: Te,
|
|
2100
2100
|
end: ze,
|
|
2101
2101
|
cancel: B,
|
|
@@ -2104,21 +2104,21 @@ var Ra = { exports: {} };
|
|
|
2104
2104
|
canMove: Re,
|
|
2105
2105
|
dragging: !1
|
|
2106
2106
|
});
|
|
2107
|
-
return
|
|
2107
|
+
return V.removeOnSpill === !0 && ne.on("over", bt).on("out", Ct), Ie(), ne;
|
|
2108
2108
|
function Le(y) {
|
|
2109
|
-
return ne.containers.indexOf(y) !== -1 ||
|
|
2109
|
+
return ne.containers.indexOf(y) !== -1 || V.isContainer(y);
|
|
2110
2110
|
}
|
|
2111
2111
|
function Ie(y) {
|
|
2112
|
-
var
|
|
2113
|
-
u(m,
|
|
2112
|
+
var I = y ? "remove" : "add";
|
|
2113
|
+
u(m, I, "mousedown", ie), u(m, I, "mouseup", Ne);
|
|
2114
2114
|
}
|
|
2115
2115
|
function Se(y) {
|
|
2116
|
-
var
|
|
2117
|
-
u(m,
|
|
2116
|
+
var I = y ? "remove" : "add";
|
|
2117
|
+
u(m, I, "mousemove", nt);
|
|
2118
2118
|
}
|
|
2119
2119
|
function Ye(y) {
|
|
2120
|
-
var
|
|
2121
|
-
s[
|
|
2120
|
+
var I = y ? "remove" : "add";
|
|
2121
|
+
s[I](m, "selectstart", Je), s[I](m, "click", Je);
|
|
2122
2122
|
}
|
|
2123
2123
|
function $e() {
|
|
2124
2124
|
Ie(!0), Ne({});
|
|
@@ -2127,9 +2127,9 @@ var Ra = { exports: {} };
|
|
|
2127
2127
|
ge && y.preventDefault();
|
|
2128
2128
|
}
|
|
2129
2129
|
function ie(y) {
|
|
2130
|
-
|
|
2131
|
-
var
|
|
2132
|
-
if (!
|
|
2130
|
+
Q = y.clientX, M = y.clientY;
|
|
2131
|
+
var I = v(y) !== 1 || y.metaKey || y.ctrlKey;
|
|
2132
|
+
if (!I) {
|
|
2133
2133
|
var D = y.target, q = Oe(D);
|
|
2134
2134
|
q && (ge = q, Se(), y.type === "mousedown" && (b(D) ? D.focus() : y.preventDefault()));
|
|
2135
2135
|
}
|
|
@@ -2140,25 +2140,25 @@ var Ra = { exports: {} };
|
|
|
2140
2140
|
Ne({});
|
|
2141
2141
|
return;
|
|
2142
2142
|
}
|
|
2143
|
-
if (!(y.clientX !== void 0 && Math.abs(y.clientX -
|
|
2144
|
-
if (
|
|
2145
|
-
var
|
|
2143
|
+
if (!(y.clientX !== void 0 && Math.abs(y.clientX - Q) <= (V.slideFactorX || 0) && y.clientY !== void 0 && Math.abs(y.clientY - M) <= (V.slideFactorY || 0))) {
|
|
2144
|
+
if (V.ignoreInputTextSelection) {
|
|
2145
|
+
var I = _("clientX", y) || 0, D = _("clientY", y) || 0, q = l.elementFromPoint(I, D);
|
|
2146
2146
|
if (b(q))
|
|
2147
2147
|
return;
|
|
2148
2148
|
}
|
|
2149
|
-
var
|
|
2150
|
-
Se(!0), Ye(), ze(), Pe(
|
|
2149
|
+
var Z = ge;
|
|
2150
|
+
Se(!0), Ye(), ze(), Pe(Z), c.add(z || A, "gu-transit"), xt(), wt(), le = 0, Me(y);
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
2154
|
function Oe(y) {
|
|
2155
|
-
if (!(ne.dragging &&
|
|
2156
|
-
for (var
|
|
2157
|
-
if (
|
|
2155
|
+
if (!(ne.dragging && L) && !Le(y)) {
|
|
2156
|
+
for (var I = y; S(y) && Le(S(y)) === !1; )
|
|
2157
|
+
if (V.invalid(y, I) || (y = S(y), !y))
|
|
2158
2158
|
return;
|
|
2159
2159
|
var D = S(y);
|
|
2160
|
-
if (D && !
|
|
2161
|
-
var q =
|
|
2160
|
+
if (D && !V.invalid(y, I)) {
|
|
2161
|
+
var q = V.moves(y, D, I, T(y));
|
|
2162
2162
|
if (q)
|
|
2163
2163
|
return {
|
|
2164
2164
|
item: y,
|
|
@@ -2171,18 +2171,18 @@ var Ra = { exports: {} };
|
|
|
2171
2171
|
return !!Oe(y);
|
|
2172
2172
|
}
|
|
2173
2173
|
function Te(y) {
|
|
2174
|
-
var
|
|
2175
|
-
|
|
2174
|
+
var I = Oe(y);
|
|
2175
|
+
I && Pe(I);
|
|
2176
2176
|
}
|
|
2177
2177
|
function Pe(y) {
|
|
2178
|
-
Mt(y.item, y.source) && (z = y.item.cloneNode(!0), ne.emit("cloned", z, y.item, "copy")),
|
|
2178
|
+
Mt(y.item, y.source) && (z = y.item.cloneNode(!0), ne.emit("cloned", z, y.item, "copy")), G = y.source, A = y.item, O = X = T(y.item), ne.dragging = !0, ne.emit("drag", A, G);
|
|
2179
2179
|
}
|
|
2180
2180
|
function ot() {
|
|
2181
2181
|
return !1;
|
|
2182
2182
|
}
|
|
2183
2183
|
function ze() {
|
|
2184
2184
|
if (ne.dragging) {
|
|
2185
|
-
var y = z ||
|
|
2185
|
+
var y = z || A;
|
|
2186
2186
|
Qe(y, S(y));
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
@@ -2191,71 +2191,71 @@ var Ra = { exports: {} };
|
|
|
2191
2191
|
}
|
|
2192
2192
|
function Ne(y) {
|
|
2193
2193
|
if (Ee(), !!ne.dragging) {
|
|
2194
|
-
var
|
|
2195
|
-
K && (z &&
|
|
2194
|
+
var I = z || A, D = _("clientX", y) || 0, q = _("clientY", y) || 0, Z = x(L, D, q), K = se(Z, D, q);
|
|
2195
|
+
K && (z && V.copySortSource || !z || K !== G) ? Qe(I, K) : V.removeOnSpill ? Ze() : B();
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
|
-
function Qe(y,
|
|
2198
|
+
function Qe(y, I) {
|
|
2199
2199
|
var D = S(y);
|
|
2200
|
-
z &&
|
|
2200
|
+
z && V.copySortSource && I === G && D.removeChild(A), re(I) ? ne.emit("cancel", y, G) : ne.emit("drop", y, I, G, X), J();
|
|
2201
2201
|
}
|
|
2202
2202
|
function Ze() {
|
|
2203
2203
|
if (ne.dragging) {
|
|
2204
|
-
var y = z ||
|
|
2205
|
-
|
|
2204
|
+
var y = z || A, I = S(y);
|
|
2205
|
+
I && I.removeChild(y), ne.emit(z ? "cancel" : "remove", y, I, G), J();
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
function B(y) {
|
|
2209
2209
|
if (ne.dragging) {
|
|
2210
|
-
var
|
|
2211
|
-
|
|
2210
|
+
var I = arguments.length > 0 ? y : V.revertOnSpill, D = z || A, q = S(D), Z = re(q);
|
|
2211
|
+
Z === !1 && I && (z ? q && q.removeChild(z) : G.insertBefore(D, O)), Z || I ? ne.emit("cancel", D, G, G) : ne.emit("drop", D, q, G, X), J();
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
2214
|
function J() {
|
|
2215
|
-
var y = z ||
|
|
2216
|
-
Ee(), St(), Tt(), y && c.rm(y, "gu-transit"), ee && clearTimeout(ee), ne.dragging = !1, ve && ne.emit("out", y, ve,
|
|
2215
|
+
var y = z || A;
|
|
2216
|
+
Ee(), St(), Tt(), y && c.rm(y, "gu-transit"), ee && clearTimeout(ee), ne.dragging = !1, ve && ne.emit("out", y, ve, G), ne.emit("dragend", y, le), G = A = z = O = X = ee = ve = null;
|
|
2217
2217
|
}
|
|
2218
|
-
function re(y,
|
|
2218
|
+
function re(y, I) {
|
|
2219
2219
|
var D;
|
|
2220
|
-
return
|
|
2220
|
+
return I !== void 0 ? D = I : L ? D = X : D = T(z || A), y === G && D === O;
|
|
2221
2221
|
}
|
|
2222
|
-
function se(y,
|
|
2223
|
-
for (var q = y; q && !
|
|
2222
|
+
function se(y, I, D) {
|
|
2223
|
+
for (var q = y; q && !Z(); )
|
|
2224
2224
|
q = S(q);
|
|
2225
2225
|
return q;
|
|
2226
|
-
function
|
|
2226
|
+
function Z() {
|
|
2227
2227
|
var K = Le(q);
|
|
2228
2228
|
if (K === !1)
|
|
2229
2229
|
return !1;
|
|
2230
|
-
var xe = ut(q, y), ye = ct(q, xe,
|
|
2231
|
-
return be ? !0 :
|
|
2230
|
+
var xe = ut(q, y), ye = ct(q, xe, I, D), be = re(q, ye);
|
|
2231
|
+
return be ? !0 : V.accepts(A, q, G, ye);
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
2234
|
function Me(y) {
|
|
2235
|
-
if (
|
|
2235
|
+
if (!L)
|
|
2236
2236
|
return;
|
|
2237
2237
|
y.preventDefault();
|
|
2238
|
-
var
|
|
2239
|
-
|
|
2240
|
-
var q = z ||
|
|
2241
|
-
(xe || K === null) && (Ce(), ve = K, ke()), Et(
|
|
2238
|
+
var I = _("clientX", y) || 0, D = _("clientY", y) || 0;
|
|
2239
|
+
L.style.left = I - 2 + "px", L.style.top = D - 2 + "px";
|
|
2240
|
+
var q = z || A, Z = x(L, I, D), K = se(Z, I, D), xe = K !== null && K !== ve;
|
|
2241
|
+
(xe || K === null) && (Ce(), ve = K, ke()), Et(Z, D);
|
|
2242
2242
|
var ye = S(q);
|
|
2243
|
-
if (K ===
|
|
2243
|
+
if (K === G && z && !V.copySortSource) {
|
|
2244
2244
|
ye && ye.removeChild(q);
|
|
2245
2245
|
return;
|
|
2246
2246
|
}
|
|
2247
|
-
var be, Be = ut(K,
|
|
2247
|
+
var be, Be = ut(K, Z);
|
|
2248
2248
|
if (oe = at(Be, K), Be !== null)
|
|
2249
|
-
be = ct(K, Be,
|
|
2250
|
-
else if (
|
|
2251
|
-
be =
|
|
2249
|
+
be = ct(K, Be, I, D);
|
|
2250
|
+
else if (V.revertOnSpill === !0 && !z)
|
|
2251
|
+
be = O, K = G;
|
|
2252
2252
|
else {
|
|
2253
2253
|
z && ye && ye.removeChild(q), z && Y && (Y.style.display = "none");
|
|
2254
2254
|
return;
|
|
2255
2255
|
}
|
|
2256
2256
|
Y.style.display = "block", ht(be, q, xe), be ? kt(Be, be) : Ft(K);
|
|
2257
2257
|
function ue(pe) {
|
|
2258
|
-
ne.emit(pe, q, ve,
|
|
2258
|
+
ne.emit(pe, q, ve, G);
|
|
2259
2259
|
}
|
|
2260
2260
|
function ke() {
|
|
2261
2261
|
xe && ue("over");
|
|
@@ -2264,8 +2264,8 @@ var Ra = { exports: {} };
|
|
|
2264
2264
|
ve && ue("out");
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
|
-
function ht(y,
|
|
2268
|
-
(y ===
|
|
2267
|
+
function ht(y, I, D) {
|
|
2268
|
+
(y === I || y === T(I)) && (X = T(I)), (y === null && D || y !== I && y !== T(I)) && (X = y);
|
|
2269
2269
|
}
|
|
2270
2270
|
function bt(y) {
|
|
2271
2271
|
c.rm(y, "gu-hide");
|
|
@@ -2274,41 +2274,41 @@ var Ra = { exports: {} };
|
|
|
2274
2274
|
ne.dragging && c.add(y, "gu-hide");
|
|
2275
2275
|
}
|
|
2276
2276
|
function wt() {
|
|
2277
|
-
|
|
2277
|
+
L || (L = document.createElement("div"), L.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;", L.innerHTML = V.getMirrorText && V.getMirrorText(A) || "控件", c.add(L, "gu-mirror"), V.mirrorContainer.appendChild(L), u(m, "add", "mousemove", Me), c.add(V.mirrorContainer, "gu-unselectable"), ne.emit("cloned", L, A, "mirror"));
|
|
2278
2278
|
}
|
|
2279
2279
|
function xt() {
|
|
2280
|
-
if (Y = document.createElement("div"), c.add(Y, "gu-insertion"),
|
|
2281
|
-
var y =
|
|
2280
|
+
if (Y = document.createElement("div"), c.add(Y, "gu-insertion"), A) {
|
|
2281
|
+
var y = A.getBoundingClientRect();
|
|
2282
2282
|
Y.style.left = y.left + "px", Y.style.top = y.top + "px";
|
|
2283
2283
|
}
|
|
2284
|
-
oe = !1,
|
|
2284
|
+
oe = !1, V.mirrorContainer.appendChild(Y);
|
|
2285
2285
|
}
|
|
2286
2286
|
function St() {
|
|
2287
|
-
|
|
2287
|
+
L && (c.rm(V.mirrorContainer, "gu-unselectable"), u(m, "remove", "mousemove", Me), S(L).removeChild(L), L = null);
|
|
2288
2288
|
}
|
|
2289
2289
|
function Tt() {
|
|
2290
2290
|
Y && (S(Y).removeChild(Y), Y = null);
|
|
2291
2291
|
}
|
|
2292
|
-
function ut(y,
|
|
2293
|
-
for (var D =
|
|
2292
|
+
function ut(y, I) {
|
|
2293
|
+
for (var D = I; D !== y && S(D) !== y; )
|
|
2294
2294
|
D = S(D);
|
|
2295
2295
|
return D === m ? null : D;
|
|
2296
2296
|
}
|
|
2297
|
-
function at(y,
|
|
2298
|
-
if (!
|
|
2297
|
+
function at(y, I) {
|
|
2298
|
+
if (!I)
|
|
2299
2299
|
return oe;
|
|
2300
|
-
var D = y ||
|
|
2300
|
+
var D = y || I && I.lastElementChild;
|
|
2301
2301
|
if (!D)
|
|
2302
2302
|
return !0;
|
|
2303
|
-
var q = getComputedStyle(y),
|
|
2304
|
-
if (
|
|
2303
|
+
var q = getComputedStyle(y), Z = /^inline/.test(q.getPropertyValue("display")) || /^(left|right)$/.test(q.getPropertyValue("float"));
|
|
2304
|
+
if (Z)
|
|
2305
2305
|
return !0;
|
|
2306
|
-
if (
|
|
2307
|
-
var K = getComputedStyle(
|
|
2306
|
+
if (I) {
|
|
2307
|
+
var K = getComputedStyle(I), xe = K.getPropertyValue("display");
|
|
2308
2308
|
if (/flex$/.test(xe)) {
|
|
2309
2309
|
var ye = K.getPropertyValue("flex-direction") || "row";
|
|
2310
2310
|
if (ye === "row" || ye === "row-reverse")
|
|
2311
|
-
return !Bt(
|
|
2311
|
+
return !Bt(I);
|
|
2312
2312
|
}
|
|
2313
2313
|
return !1;
|
|
2314
2314
|
}
|
|
@@ -2317,20 +2317,20 @@ var Ra = { exports: {} };
|
|
|
2317
2317
|
function Bt(y) {
|
|
2318
2318
|
if (!y.children || !y.children.length)
|
|
2319
2319
|
return !1;
|
|
2320
|
-
for (const
|
|
2321
|
-
const q = (
|
|
2320
|
+
for (const I of Array.from(y.children)) {
|
|
2321
|
+
const q = (I.className && I.className.split(" ") || []).filter((Z) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Z));
|
|
2322
2322
|
if (!q.length)
|
|
2323
2323
|
return !1;
|
|
2324
|
-
for (const
|
|
2325
|
-
const K =
|
|
2324
|
+
for (const Z of q) {
|
|
2325
|
+
const K = Z.slice(Z.lastIndexOf("-") + 1);
|
|
2326
2326
|
if (parseInt(K, 10) !== 12)
|
|
2327
2327
|
return !1;
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
2330
|
return !0;
|
|
2331
2331
|
}
|
|
2332
|
-
function kt(y,
|
|
2333
|
-
const D =
|
|
2332
|
+
function kt(y, I) {
|
|
2333
|
+
const D = I.getBoundingClientRect();
|
|
2334
2334
|
if (Y.style.left = D.left + "px", Y.style.top = D.top + "px", oe) {
|
|
2335
2335
|
if (Y.style.height = D.height + "px", Y.style.width = "4px", y) {
|
|
2336
2336
|
const q = y.getBoundingClientRect();
|
|
@@ -2340,91 +2340,91 @@ var Ra = { exports: {} };
|
|
|
2340
2340
|
const q = te.getBoundingClientRect();
|
|
2341
2341
|
D.top < q.top && (Y.style.display = "none");
|
|
2342
2342
|
}
|
|
2343
|
-
|
|
2343
|
+
I === A && A && (Y.style.display = "none");
|
|
2344
2344
|
}
|
|
2345
2345
|
function Ft(y) {
|
|
2346
2346
|
X = null;
|
|
2347
|
-
var
|
|
2348
|
-
if (
|
|
2349
|
-
var D =
|
|
2350
|
-
oe ? (Y.style.left = D.right + "px", Y.style.top = D.top + "px", Y.style.height = D.height + "px", Y.style.width = "4px") : (Y.style.left = D.left + "px", Y.style.top = D.bottom + "px", Y.style.height = "4px", Y.style.width = D.width + "px"),
|
|
2347
|
+
var I = y.lastElementChild;
|
|
2348
|
+
if (I) {
|
|
2349
|
+
var D = I.getBoundingClientRect();
|
|
2350
|
+
oe ? (Y.style.left = D.right + "px", Y.style.top = D.top + "px", Y.style.height = D.height + "px", Y.style.width = "4px") : (Y.style.left = D.left + "px", Y.style.top = D.bottom + "px", Y.style.height = "4px", Y.style.width = D.width + "px"), I === A && A && (Y.style.display = "none");
|
|
2351
2351
|
} else
|
|
2352
2352
|
Y.style.display = "none";
|
|
2353
2353
|
}
|
|
2354
|
-
function Et(y,
|
|
2355
|
-
if (!
|
|
2354
|
+
function Et(y, I) {
|
|
2355
|
+
if (!V.mirrorContainer.contains(y) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (te = p(y), !te || !te.contains(y)))
|
|
2356
2356
|
return;
|
|
2357
2357
|
const D = document.querySelector(".dgComponentSelected"), q = te.getBoundingClientRect();
|
|
2358
|
-
if (
|
|
2359
|
-
let
|
|
2360
|
-
te.scrollBy(0, -1 *
|
|
2358
|
+
if (I - 30 < q.top && te.scrollTop > 0) {
|
|
2359
|
+
let Z = te.scrollTop < 10 ? te.scrollTop : 10;
|
|
2360
|
+
te.scrollBy(0, -1 * Z), D && te.contains(D) && (le = le + -1 * Z);
|
|
2361
2361
|
}
|
|
2362
|
-
if (
|
|
2363
|
-
const
|
|
2364
|
-
let K =
|
|
2362
|
+
if (I + 30 > q.bottom && te.scrollTop < te.scrollHeight - te.clientHeight) {
|
|
2363
|
+
const Z = te.scrollHeight - te.clientHeight - te.scrollTop;
|
|
2364
|
+
let K = Z < 10 ? Z : 10;
|
|
2365
2365
|
te.scrollBy(0, K), D && te.contains(D) && (le = le + K);
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
|
-
function ct(y,
|
|
2369
|
-
var
|
|
2368
|
+
function ct(y, I, D, q) {
|
|
2369
|
+
var Z = V.direction === "horizontal", K = V.direction === "mixed", xe = I !== y ? be() : ye();
|
|
2370
2370
|
return xe;
|
|
2371
2371
|
function ye() {
|
|
2372
2372
|
var ue = y.children.length, ke, Ce, pe;
|
|
2373
2373
|
for (ke = 0; ke < ue; ke++)
|
|
2374
|
-
if (Ce = y.children[ke], pe = Ce.getBoundingClientRect(),
|
|
2374
|
+
if (Ce = y.children[ke], pe = Ce.getBoundingClientRect(), Z && pe.left + pe.width / 2 > D || !K && !Z && pe.top + pe.height / 2 > q || K && pe.left + pe.width > D && pe.top + pe.height > q)
|
|
2375
2375
|
return Ce;
|
|
2376
2376
|
return null;
|
|
2377
2377
|
}
|
|
2378
2378
|
function be() {
|
|
2379
|
-
var ue =
|
|
2379
|
+
var ue = I.getBoundingClientRect();
|
|
2380
2380
|
if (K) {
|
|
2381
2381
|
var ke = q - ue.top, Ce = D - ue.left, pe = ue.bottom - q, it = ue.right - D, rt = Math.min(Ce, it, ke, pe), lt;
|
|
2382
2382
|
return oe ? lt = it < Ce : lt = pe === rt || it === rt || Ce === rt, Be(lt);
|
|
2383
2383
|
}
|
|
2384
|
-
return Be(
|
|
2384
|
+
return Be(Z ? D > ue.left + j(ue) / 2 : q > ue.top + N(ue) / 2);
|
|
2385
2385
|
}
|
|
2386
2386
|
function Be(ue) {
|
|
2387
|
-
return ue ? T(
|
|
2387
|
+
return ue ? T(I) : I;
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
function Mt(y,
|
|
2391
|
-
return typeof
|
|
2390
|
+
function Mt(y, I) {
|
|
2391
|
+
return typeof V.copy == "boolean" ? V.copy : V.copy(y, I);
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
function p(g) {
|
|
2395
|
-
const
|
|
2396
|
-
if (
|
|
2397
|
-
const
|
|
2398
|
-
return document.getElementById(
|
|
2395
|
+
const $ = Array.from(window.scrollContainerList);
|
|
2396
|
+
if ($.length === 1) {
|
|
2397
|
+
const L = Array.from(window.scrollContainerList)[0];
|
|
2398
|
+
return document.getElementById(L);
|
|
2399
2399
|
}
|
|
2400
|
-
const
|
|
2401
|
-
for (const
|
|
2402
|
-
if (
|
|
2403
|
-
return
|
|
2400
|
+
const W = d($);
|
|
2401
|
+
for (const L of W)
|
|
2402
|
+
if (L.contains(g))
|
|
2403
|
+
return L;
|
|
2404
2404
|
return null;
|
|
2405
2405
|
}
|
|
2406
2406
|
function d(g) {
|
|
2407
|
-
const
|
|
2408
|
-
return g.forEach((
|
|
2409
|
-
const
|
|
2410
|
-
|
|
2411
|
-
}),
|
|
2407
|
+
const $ = [];
|
|
2408
|
+
return g.forEach((W) => {
|
|
2409
|
+
const L = document.getElementById(W);
|
|
2410
|
+
L && $.push(L);
|
|
2411
|
+
}), $.sort((W, L) => W.contains(L) ? 1 : L.contains(W) ? -1 : 0), $;
|
|
2412
2412
|
}
|
|
2413
|
-
function u(g,
|
|
2414
|
-
var
|
|
2413
|
+
function u(g, $, W, L) {
|
|
2414
|
+
var G = {
|
|
2415
2415
|
mouseup: "touchend",
|
|
2416
2416
|
mousedown: "touchstart",
|
|
2417
2417
|
mousemove: "touchmove"
|
|
2418
|
-
},
|
|
2418
|
+
}, A = {
|
|
2419
2419
|
mouseup: "pointerup",
|
|
2420
2420
|
mousedown: "pointerdown",
|
|
2421
2421
|
mousemove: "pointermove"
|
|
2422
|
-
},
|
|
2422
|
+
}, Q = {
|
|
2423
2423
|
mouseup: "MSPointerUp",
|
|
2424
2424
|
mousedown: "MSPointerDown",
|
|
2425
2425
|
mousemove: "MSPointerMove"
|
|
2426
2426
|
};
|
|
2427
|
-
i.navigator.pointerEnabled ? s[
|
|
2427
|
+
i.navigator.pointerEnabled ? s[$](g, A[W], L) : i.navigator.msPointerEnabled ? s[$](g, Q[W], L) : (s[$](g, G[W], L), s[$](g, W, L));
|
|
2428
2428
|
}
|
|
2429
2429
|
function v(g) {
|
|
2430
2430
|
if (g.touches !== void 0)
|
|
@@ -2433,14 +2433,14 @@ var Ra = { exports: {} };
|
|
|
2433
2433
|
return g.which;
|
|
2434
2434
|
if (g.buttons !== void 0)
|
|
2435
2435
|
return g.buttons;
|
|
2436
|
-
var
|
|
2437
|
-
if (
|
|
2438
|
-
return
|
|
2436
|
+
var $ = g.button;
|
|
2437
|
+
if ($ !== void 0)
|
|
2438
|
+
return $ & 1 ? 1 : $ & 2 ? 3 : $ & 4 ? 2 : 0;
|
|
2439
2439
|
}
|
|
2440
|
-
function x(g,
|
|
2440
|
+
function x(g, $, W) {
|
|
2441
2441
|
g = g || {};
|
|
2442
|
-
var
|
|
2443
|
-
return g.className += " gu-hide",
|
|
2442
|
+
var L = g.className || "", G;
|
|
2443
|
+
return g.className += " gu-hide", G = l.elementFromPoint($, W), g.className = L, G;
|
|
2444
2444
|
}
|
|
2445
2445
|
function k() {
|
|
2446
2446
|
return !1;
|
|
@@ -2448,10 +2448,10 @@ var Ra = { exports: {} };
|
|
|
2448
2448
|
function E() {
|
|
2449
2449
|
return !0;
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2451
|
+
function j(g) {
|
|
2452
2452
|
return g.width || g.right - g.left;
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function N(g) {
|
|
2455
2455
|
return g.height || g.bottom - g.top;
|
|
2456
2456
|
}
|
|
2457
2457
|
function S(g) {
|
|
@@ -2464,26 +2464,26 @@ var Ra = { exports: {} };
|
|
|
2464
2464
|
return !g || g.contentEditable === "false" ? !1 : g.contentEditable === "true" ? !0 : w(S(g));
|
|
2465
2465
|
}
|
|
2466
2466
|
function T(g) {
|
|
2467
|
-
return g.nextElementSibling ||
|
|
2468
|
-
function
|
|
2469
|
-
var
|
|
2467
|
+
return g.nextElementSibling || $();
|
|
2468
|
+
function $() {
|
|
2469
|
+
var W = g;
|
|
2470
2470
|
do
|
|
2471
|
-
|
|
2472
|
-
while (
|
|
2473
|
-
return
|
|
2471
|
+
W = W.nextSibling;
|
|
2472
|
+
while (W && W.nodeType !== 1);
|
|
2473
|
+
return W;
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
2476
|
function F(g) {
|
|
2477
2477
|
return g.targetTouches && g.targetTouches.length ? g.targetTouches[0] : g.changedTouches && g.changedTouches.length ? g.changedTouches[0] : g;
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2480
|
-
var
|
|
2479
|
+
function _(g, $) {
|
|
2480
|
+
var W = F($), L = {
|
|
2481
2481
|
pageX: "clientX",
|
|
2482
2482
|
// IE8
|
|
2483
2483
|
pageY: "clientY"
|
|
2484
2484
|
// IE8
|
|
2485
2485
|
};
|
|
2486
|
-
return g in
|
|
2486
|
+
return g in L && !(g in W) && L[g] in W && (g = L[g]), W[g];
|
|
2487
2487
|
}
|
|
2488
2488
|
o.exports = f;
|
|
2489
2489
|
}).call(this, typeof je < "u" ? je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2556,33 +2556,33 @@ var Ra = { exports: {} };
|
|
|
2556
2556
|
return S.removeEventListener(b, w, T);
|
|
2557
2557
|
}
|
|
2558
2558
|
function v(S, b, w) {
|
|
2559
|
-
var T =
|
|
2559
|
+
var T = j(S, b, w);
|
|
2560
2560
|
if (T)
|
|
2561
2561
|
return S.detachEvent("on" + b, T);
|
|
2562
2562
|
}
|
|
2563
2563
|
function x(S, b, w) {
|
|
2564
|
-
var T = s.indexOf(b) === -1 ?
|
|
2564
|
+
var T = s.indexOf(b) === -1 ? _() : F();
|
|
2565
2565
|
S.dispatchEvent ? S.dispatchEvent(T) : S.fireEvent("on" + b, T);
|
|
2566
2566
|
function F() {
|
|
2567
2567
|
var g;
|
|
2568
2568
|
return c.createEvent ? (g = c.createEvent("Event"), g.initEvent(b, !0, !0)) : c.createEventObject && (g = c.createEventObject()), g;
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function _() {
|
|
2571
2571
|
return new r(b, { detail: w });
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
function k(S, b, w) {
|
|
2575
2575
|
return function(F) {
|
|
2576
|
-
var
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
},
|
|
2580
|
-
|
|
2581
|
-
},
|
|
2576
|
+
var _ = F || i.event;
|
|
2577
|
+
_.target = _.target || _.srcElement, _.preventDefault = _.preventDefault || function() {
|
|
2578
|
+
_.returnValue = !1;
|
|
2579
|
+
}, _.stopPropagation = _.stopPropagation || function() {
|
|
2580
|
+
_.cancelBubble = !0;
|
|
2581
|
+
}, _.which = _.which || _.keyCode, w.call(S, _);
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
2584
|
function E(S, b, w) {
|
|
2585
|
-
var T =
|
|
2585
|
+
var T = j(S, b, w) || k(S, b, w);
|
|
2586
2586
|
return f.push({
|
|
2587
2587
|
wrapper: T,
|
|
2588
2588
|
element: S,
|
|
@@ -2590,14 +2590,14 @@ var Ra = { exports: {} };
|
|
|
2590
2590
|
fn: w
|
|
2591
2591
|
}), T;
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2594
|
-
var T =
|
|
2593
|
+
function j(S, b, w) {
|
|
2594
|
+
var T = N(S, b, w);
|
|
2595
2595
|
if (T) {
|
|
2596
2596
|
var F = f[T].wrapper;
|
|
2597
2597
|
return f.splice(T, 1), F;
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function N(S, b, w) {
|
|
2601
2601
|
var T, F;
|
|
2602
2602
|
for (T = 0; T < f.length; T++)
|
|
2603
2603
|
if (F = f[T], F.element === S && F.type === b && F.fn === w)
|
|
@@ -2659,33 +2659,33 @@ var Ra = { exports: {} };
|
|
|
2659
2659
|
s = l;
|
|
2660
2660
|
}
|
|
2661
2661
|
})();
|
|
2662
|
-
function m(
|
|
2662
|
+
function m(N) {
|
|
2663
2663
|
if (r === setTimeout)
|
|
2664
|
-
return setTimeout(
|
|
2664
|
+
return setTimeout(N, 0);
|
|
2665
2665
|
if ((r === c || !r) && setTimeout)
|
|
2666
|
-
return r = setTimeout, setTimeout(
|
|
2666
|
+
return r = setTimeout, setTimeout(N, 0);
|
|
2667
2667
|
try {
|
|
2668
|
-
return r(
|
|
2668
|
+
return r(N, 0);
|
|
2669
2669
|
} catch {
|
|
2670
2670
|
try {
|
|
2671
|
-
return r.call(null,
|
|
2671
|
+
return r.call(null, N, 0);
|
|
2672
2672
|
} catch {
|
|
2673
|
-
return r.call(this,
|
|
2673
|
+
return r.call(this, N, 0);
|
|
2674
2674
|
}
|
|
2675
2675
|
}
|
|
2676
2676
|
}
|
|
2677
|
-
function f(
|
|
2677
|
+
function f(N) {
|
|
2678
2678
|
if (s === clearTimeout)
|
|
2679
|
-
return clearTimeout(
|
|
2679
|
+
return clearTimeout(N);
|
|
2680
2680
|
if ((s === l || !s) && clearTimeout)
|
|
2681
|
-
return s = clearTimeout, clearTimeout(
|
|
2681
|
+
return s = clearTimeout, clearTimeout(N);
|
|
2682
2682
|
try {
|
|
2683
|
-
return s(
|
|
2683
|
+
return s(N);
|
|
2684
2684
|
} catch {
|
|
2685
2685
|
try {
|
|
2686
|
-
return s.call(null,
|
|
2686
|
+
return s.call(null, N);
|
|
2687
2687
|
} catch {
|
|
2688
|
-
return s.call(this,
|
|
2688
|
+
return s.call(this, N);
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
@@ -2695,38 +2695,38 @@ var Ra = { exports: {} };
|
|
|
2695
2695
|
}
|
|
2696
2696
|
function k() {
|
|
2697
2697
|
if (!d) {
|
|
2698
|
-
var
|
|
2698
|
+
var N = m(x);
|
|
2699
2699
|
d = !0;
|
|
2700
2700
|
for (var S = p.length; S; ) {
|
|
2701
2701
|
for (u = p, p = []; ++v < S; )
|
|
2702
2702
|
u && u[v].run();
|
|
2703
2703
|
v = -1, S = p.length;
|
|
2704
2704
|
}
|
|
2705
|
-
u = null, d = !1, f(
|
|
2705
|
+
u = null, d = !1, f(N);
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
|
-
i.nextTick = function(
|
|
2708
|
+
i.nextTick = function(N) {
|
|
2709
2709
|
var S = new Array(arguments.length - 1);
|
|
2710
2710
|
if (arguments.length > 1)
|
|
2711
2711
|
for (var b = 1; b < arguments.length; b++)
|
|
2712
2712
|
S[b - 1] = arguments[b];
|
|
2713
|
-
p.push(new E(
|
|
2713
|
+
p.push(new E(N, S)), p.length === 1 && !d && m(k);
|
|
2714
2714
|
};
|
|
2715
|
-
function E(
|
|
2716
|
-
this.fun =
|
|
2715
|
+
function E(N, S) {
|
|
2716
|
+
this.fun = N, this.array = S;
|
|
2717
2717
|
}
|
|
2718
2718
|
E.prototype.run = function() {
|
|
2719
2719
|
this.fun.apply(null, this.array);
|
|
2720
2720
|
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
|
|
2721
|
-
function
|
|
2721
|
+
function j() {
|
|
2722
2722
|
}
|
|
2723
|
-
i.on =
|
|
2723
|
+
i.on = j, i.addListener = j, i.once = j, i.off = j, i.removeListener = j, i.removeAllListeners = j, i.emit = j, i.prependListener = j, i.prependOnceListener = j, i.listeners = function(N) {
|
|
2724
2724
|
return [];
|
|
2725
|
-
}, i.binding = function(
|
|
2725
|
+
}, i.binding = function(N) {
|
|
2726
2726
|
throw new Error("process.binding is not supported");
|
|
2727
2727
|
}, i.cwd = function() {
|
|
2728
2728
|
return "/";
|
|
2729
|
-
}, i.chdir = function(
|
|
2729
|
+
}, i.chdir = function(N) {
|
|
2730
2730
|
throw new Error("process.chdir is not supported");
|
|
2731
2731
|
}, i.umask = function() {
|
|
2732
2732
|
return 0;
|
|
@@ -2806,40 +2806,40 @@ const Pa = {
|
|
|
2806
2806
|
const {
|
|
2807
2807
|
locale: n,
|
|
2808
2808
|
t: o
|
|
2809
|
-
} = Nt(), a = h(e.animate), i = "fadeOut", r =
|
|
2810
|
-
const
|
|
2809
|
+
} = Nt(), a = h(e.animate), i = "fadeOut", r = R(() => e.options), s = h(!1), c = R(() => r.value.title && r.value.message), l = R(() => !r.value.title && r.value.message), m = R(() => {
|
|
2810
|
+
const N = {
|
|
2811
2811
|
animated: s.value,
|
|
2812
2812
|
toast: !0,
|
|
2813
2813
|
"toast--only-content": !c.value
|
|
2814
2814
|
};
|
|
2815
|
-
return
|
|
2816
|
-
}), f =
|
|
2815
|
+
return N[e.animate] = !1, N[i] = s.value, N["toasty-type-" + r.value.type] = !0, r.value.theme && (N[r.value.theme] = !0), N;
|
|
2816
|
+
}), f = R(() => {
|
|
2817
2817
|
const b = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, w = {
|
|
2818
2818
|
"f-icon": !0
|
|
2819
2819
|
};
|
|
2820
2820
|
return w[b] = !0, w;
|
|
2821
|
-
}), p =
|
|
2821
|
+
}), p = R(() => r.value.title || r.value.message), d = R(() => e.showCloseButton), u = R(() => !!r.value.buttons || !!t.slots.default), v = R(() => n.value === "en" ? {
|
|
2822
2822
|
wordBreak: "keep-all",
|
|
2823
2823
|
overflowWrap: "break-word"
|
|
2824
2824
|
} : {});
|
|
2825
|
-
function x(
|
|
2826
|
-
|
|
2825
|
+
function x(N) {
|
|
2826
|
+
N.stopPropagation(), N.preventDefault(), s.value = !1, setTimeout(() => {
|
|
2827
2827
|
t.emit("close", r.value);
|
|
2828
2828
|
}, 200);
|
|
2829
2829
|
}
|
|
2830
|
-
function k(
|
|
2830
|
+
function k(N, S) {
|
|
2831
2831
|
}
|
|
2832
|
-
function E(
|
|
2833
|
-
return `f-preten-link ${
|
|
2832
|
+
function E(N) {
|
|
2833
|
+
return `f-preten-link ${N.customClass ? N.customClass : ""}`;
|
|
2834
2834
|
}
|
|
2835
2835
|
fe(a, () => {
|
|
2836
2836
|
a.value;
|
|
2837
2837
|
});
|
|
2838
|
-
const
|
|
2839
|
-
var
|
|
2838
|
+
const j = () => {
|
|
2839
|
+
var N;
|
|
2840
2840
|
return C(Ue, null, [C("div", {
|
|
2841
2841
|
class: "after-toast-msg text-right"
|
|
2842
|
-
}, [!t.slots.default && ((
|
|
2842
|
+
}, [!t.slots.default && ((N = r.value.buttons) == null ? void 0 : N.map((S) => C("span", {
|
|
2843
2843
|
class: E(S),
|
|
2844
2844
|
onClick: (b) => void 0
|
|
2845
2845
|
}, [S.text]))), t.slots.default && t.slots.default()])]);
|
|
@@ -2868,7 +2868,7 @@ const Pa = {
|
|
|
2868
2868
|
class: "toast-msg",
|
|
2869
2869
|
innerHTML: r.value.message,
|
|
2870
2870
|
style: v.value
|
|
2871
|
-
}, null), u.value &&
|
|
2871
|
+
}, null), u.value && j()]), l.value && (r.value.buttons ? C("div", {
|
|
2872
2872
|
class: "toast-title-btns-wrapper d-flex"
|
|
2873
2873
|
}, [C("h5", {
|
|
2874
2874
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
@@ -2876,7 +2876,7 @@ const Pa = {
|
|
|
2876
2876
|
innerHTML: r.value.message
|
|
2877
2877
|
}, null), C("div", {
|
|
2878
2878
|
class: "after-toast-title text-right ml-auto"
|
|
2879
|
-
}, [
|
|
2879
|
+
}, [j()])]) : C("h5", {
|
|
2880
2880
|
class: "toast-title modal-tips-title only-toast-msg",
|
|
2881
2881
|
style: v.value,
|
|
2882
2882
|
innerHTML: r.value.message
|
|
@@ -2887,14 +2887,14 @@ const Pa = {
|
|
|
2887
2887
|
props: Pa,
|
|
2888
2888
|
emits: ["close", "empty"],
|
|
2889
2889
|
setup(e, t) {
|
|
2890
|
-
const n =
|
|
2890
|
+
const n = R(() => ({
|
|
2891
2891
|
"farris-notify": !0
|
|
2892
2892
|
})), o = {
|
|
2893
2893
|
left: 12,
|
|
2894
2894
|
right: 12,
|
|
2895
2895
|
top: 20,
|
|
2896
2896
|
bottom: 12
|
|
2897
|
-
}, a = h(), i = h(e.options), r = h(e.showCloseButton), s =
|
|
2897
|
+
}, a = h(), i = h(e.options), r = h(e.showCloseButton), s = R(() => e.position || "bottom-right"), c = R(() => e.timeout != null ? e.timeout : 3e3), l = R(() => {
|
|
2898
2898
|
const p = e.bottom ? e.bottom : o.bottom, d = e.top ? e.top : o.top, u = {
|
|
2899
2899
|
transition: "all 0.2s ease",
|
|
2900
2900
|
left: s.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -3209,8 +3209,8 @@ function La(e, t, n, o, a, i, r, s, c, l, m, f, p, d, u, v, x) {
|
|
|
3209
3209
|
calculateCellPositionInRow: k
|
|
3210
3210
|
} = i, {
|
|
3211
3211
|
columnContext: E,
|
|
3212
|
-
hasLeftFixedColumn:
|
|
3213
|
-
hasRightFixedColumn:
|
|
3212
|
+
hasLeftFixedColumn: j,
|
|
3213
|
+
hasRightFixedColumn: N
|
|
3214
3214
|
} = r, {
|
|
3215
3215
|
gridDataStyle: S,
|
|
3216
3216
|
leftFixedGridDataStyle: b,
|
|
@@ -3218,9 +3218,9 @@ function La(e, t, n, o, a, i, r, s, c, l, m, f, p, d, u, v, x) {
|
|
|
3218
3218
|
} = d, {
|
|
3219
3219
|
renderDataRow: T
|
|
3220
3220
|
} = An(e, t, E, x, s, c, l, m, f, p, d, u, v), F = [T];
|
|
3221
|
-
function
|
|
3222
|
-
const
|
|
3223
|
-
return x.value.filter((
|
|
3221
|
+
function _(G, A) {
|
|
3222
|
+
const Q = k(G);
|
|
3223
|
+
return x.value.filter((M) => M.visible !== !1).map((M, O) => F[M.type](M, Q, A, O));
|
|
3224
3224
|
}
|
|
3225
3225
|
function g() {
|
|
3226
3226
|
return C("div", {
|
|
@@ -3229,32 +3229,32 @@ function La(e, t, n, o, a, i, r, s, c, l, m, f, p, d, u, v, x) {
|
|
|
3229
3229
|
}, [C("div", {
|
|
3230
3230
|
class: "fv-grid-data",
|
|
3231
3231
|
style: b.value
|
|
3232
|
-
}, [
|
|
3232
|
+
}, [_(E.value.leftColumns.filter((G) => G.visible), "left")])]);
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function $() {
|
|
3235
3235
|
return C("div", {
|
|
3236
3236
|
ref: n,
|
|
3237
3237
|
class: "fv-grid-content-primary"
|
|
3238
3238
|
}, [C("div", {
|
|
3239
3239
|
class: "fv-grid-data",
|
|
3240
3240
|
style: S.value
|
|
3241
|
-
}, [
|
|
3241
|
+
}, [_(E.value.primaryColumns.filter((G) => G.visible), "primary")])]);
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function W() {
|
|
3244
3244
|
return C("div", {
|
|
3245
3245
|
ref: a,
|
|
3246
3246
|
class: "fv-grid-content-right-fixed"
|
|
3247
3247
|
}, [C("div", {
|
|
3248
3248
|
class: "fv-grid-data",
|
|
3249
3249
|
style: w.value
|
|
3250
|
-
}, [
|
|
3250
|
+
}, [_(E.value.rightColumns.filter((G) => G.visible), "right")])]);
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3253
|
-
const
|
|
3254
|
-
return
|
|
3252
|
+
function L() {
|
|
3253
|
+
const G = [];
|
|
3254
|
+
return j.value && G.push(g()), G.push($()), N.value && G.push(W()), G;
|
|
3255
3255
|
}
|
|
3256
3256
|
return {
|
|
3257
|
-
renderDataArea:
|
|
3257
|
+
renderDataArea: L
|
|
3258
3258
|
};
|
|
3259
3259
|
}
|
|
3260
3260
|
const $a = /* @__PURE__ */ Xe({
|
|
@@ -3266,39 +3266,39 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3266
3266
|
const o = ((Ht = e.rowOption) == null ? void 0 : Ht.height) || 28, a = h(20), i = h(e.columns), r = Vn(e), {
|
|
3267
3267
|
idField: s
|
|
3268
3268
|
} = r, c = h(), l = h(), m = h(), f = h(), p = h(), d = h([]), u = h(!1), v = h(((Lt = e.rowOption) == null ? void 0 : Lt.wrapContent) || !1), x = _n(e, r), k = Wn(e, t), E = qn(e), {
|
|
3269
|
-
collapseField:
|
|
3269
|
+
collapseField: j
|
|
3270
3270
|
} = E, {
|
|
3271
|
-
showLoading:
|
|
3271
|
+
showLoading: N,
|
|
3272
3272
|
renderLoading: S
|
|
3273
3273
|
} = Gn(e, c), b = Un(e, /* @__PURE__ */ new Map(), k, E, r), {
|
|
3274
3274
|
dataView: w
|
|
3275
3275
|
} = b, T = Xn(e, b, r, d, t), {
|
|
3276
3276
|
showSelection: F,
|
|
3277
|
-
selectedValues:
|
|
3278
|
-
} = T, g = Yn(e, d, b, r, T, t),
|
|
3279
|
-
shouldRenderPagination:
|
|
3280
|
-
} =
|
|
3281
|
-
containerStyleObject:
|
|
3282
|
-
} = Qn(e),
|
|
3283
|
-
applyCommands:
|
|
3284
|
-
} =
|
|
3285
|
-
|
|
3277
|
+
selectedValues: _
|
|
3278
|
+
} = T, g = Yn(e, d, b, r, T, t), $ = R(() => e.disabled), W = R(() => e.virtualized ? Math.min(b.dataView.value.length, a.value) : b.dataView.value.length), L = Jn(e, b), {
|
|
3279
|
+
shouldRenderPagination: G
|
|
3280
|
+
} = L, {
|
|
3281
|
+
containerStyleObject: A
|
|
3282
|
+
} = Qn(e), Q = Zn(e), {
|
|
3283
|
+
applyCommands: M
|
|
3284
|
+
} = Q;
|
|
3285
|
+
M(i);
|
|
3286
3286
|
const {
|
|
3287
|
-
applyColumnSetting:
|
|
3287
|
+
applyColumnSetting: O,
|
|
3288
3288
|
removeColumnSetting: X
|
|
3289
3289
|
} = Kn(e);
|
|
3290
|
-
e.showSetting &&
|
|
3290
|
+
e.showSetting && O(i);
|
|
3291
3291
|
const z = eo(e, t), ee = to(e), {
|
|
3292
3292
|
applyColumnSorter: ve,
|
|
3293
3293
|
columnContext: ge,
|
|
3294
3294
|
updateColumnRenderContext: Y
|
|
3295
3295
|
} = z;
|
|
3296
3296
|
ve(b, ee);
|
|
3297
|
-
const oe = no(e, ge), le = oo(e, t, T, r), te = ao(e, t, r, le, d),
|
|
3297
|
+
const oe = no(e, ge), le = oo(e, t, T, r), te = ao(e, t, r, le, d), V = io(e), ne = ro(e, te, V), Le = lo(e, b, te, E, r, V, ne), Ie = so(e, i, b, W, 0, Le), {
|
|
3298
3298
|
getVisualData: Se
|
|
3299
3299
|
} = Ie, Ye = uo(e, ge), $e = co(e, T), {
|
|
3300
3300
|
sidebarWidth: Je
|
|
3301
|
-
} = $e, ie = fo(e, b, d, ge, Ie,
|
|
3301
|
+
} = $e, ie = fo(e, b, d, ge, Ie, W, 0, Je), {
|
|
3302
3302
|
onWheel: nt,
|
|
3303
3303
|
dataGridWidth: Oe,
|
|
3304
3304
|
viewPortHeight: Re,
|
|
@@ -3307,7 +3307,7 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3307
3307
|
updateVisibleRowsOnLatestVisibleScope: ot
|
|
3308
3308
|
} = ie, ze = po(e, ge, l, Te, oe), {
|
|
3309
3309
|
calculateColumnsSize: Ee
|
|
3310
|
-
} = ze, Ne = mo(), Qe = vo(l, p, b, Ne, ie), Ze = go(e, t, z, b, oe, x, ie), B =
|
|
3310
|
+
} = ze, Ne = mo(), Qe = vo(l, p, b, Ne, ie), Ze = go(e, t, z, b, oe, x, ie), B = R(() => {
|
|
3311
3311
|
const H = {
|
|
3312
3312
|
"fv-grid": !0,
|
|
3313
3313
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3315,13 +3315,13 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3315
3315
|
"fv-datagrid-strip": e.showStripe
|
|
3316
3316
|
};
|
|
3317
3317
|
return jn(H, e.customClass);
|
|
3318
|
-
}), J =
|
|
3318
|
+
}), J = R(() => ({
|
|
3319
3319
|
"fv-grid-content": !0,
|
|
3320
3320
|
"fv-grid-content-hover": u.value,
|
|
3321
3321
|
"fv-grid-wrap-content": v.value
|
|
3322
3322
|
})), {
|
|
3323
3323
|
renderDataArea: re
|
|
3324
|
-
} = La(e, t, m, f, p, Ye, z, b, te, E, le, T, g, ie, Ie,
|
|
3324
|
+
} = La(e, t, m, f, p, Ye, z, b, te, E, le, T, g, ie, Ie, V, d), {
|
|
3325
3325
|
renderGridHeader: se,
|
|
3326
3326
|
renderGridColumnResizeOverlay: Me,
|
|
3327
3327
|
shouldShowHeader: ht
|
|
@@ -3342,9 +3342,9 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
3344
|
tt(() => {
|
|
3345
|
-
l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / o), a.value), d.value = Se(0,
|
|
3345
|
+
l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / o), a.value), d.value = Se(0, W.value + 0 - 1), zn(l.value, St), Ee(), et(() => {
|
|
3346
3346
|
l.value && (Oe.value = l.value.clientWidth), m.value && (Te.value = m.value.clientWidth, Re.value = m.value.clientHeight);
|
|
3347
|
-
})),
|
|
3347
|
+
})), N.value && S();
|
|
3348
3348
|
}), st(() => {
|
|
3349
3349
|
}), fe(Te, () => {
|
|
3350
3350
|
l.value && Ee();
|
|
@@ -3361,11 +3361,11 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3361
3361
|
}
|
|
3362
3362
|
function Bt() {
|
|
3363
3363
|
const H = at();
|
|
3364
|
-
b.insertNewDataItem(H), d.value = Se(0,
|
|
3364
|
+
b.insertNewDataItem(H), d.value = Se(0, W.value + 0 - 1);
|
|
3365
3365
|
}
|
|
3366
3366
|
function kt() {
|
|
3367
3367
|
const H = at();
|
|
3368
|
-
b.insertNewChildDataItem(H), d.value = Se(0,
|
|
3368
|
+
b.insertNewChildDataItem(H), d.value = Se(0, W.value + 0 - 1);
|
|
3369
3369
|
}
|
|
3370
3370
|
function Ft(H, U) {
|
|
3371
3371
|
const ce = d.value.find((we) => we.raw[s.value] === U), me = ce ? ce.dataIndex - 1 : -1;
|
|
@@ -3373,7 +3373,7 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3373
3373
|
}
|
|
3374
3374
|
function Et() {
|
|
3375
3375
|
const H = at(), U = g.getNextSelectableHierarchyItemId(H);
|
|
3376
|
-
b.removeHierarchyDataItem(H), d.value = Se(0,
|
|
3376
|
+
b.removeHierarchyDataItem(H), d.value = Se(0, W.value + 0 - 1), U && g.selectItemById(U);
|
|
3377
3377
|
}
|
|
3378
3378
|
function ct(H) {
|
|
3379
3379
|
te.onEditingRow(H);
|
|
@@ -3384,19 +3384,19 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3384
3384
|
function y(H) {
|
|
3385
3385
|
te.cancelEditingRow(H);
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3388
|
-
H && (i.value = H,
|
|
3387
|
+
function I(H) {
|
|
3388
|
+
H && (i.value = H, M(i), Y(i.value), ve(b, ee), Ee());
|
|
3389
3389
|
}
|
|
3390
3390
|
fe(() => e.columns, (H) => {
|
|
3391
|
-
|
|
3391
|
+
I(H);
|
|
3392
3392
|
});
|
|
3393
3393
|
function D(H, U) {
|
|
3394
3394
|
H && (b.load(H), b.reOrderVisibleIndex(), U != null && U.keepScrollPosition ? ie.scrollTo(ie.offsetY.value) : Pe());
|
|
3395
3395
|
}
|
|
3396
3396
|
function q(H) {
|
|
3397
|
-
|
|
3397
|
+
g.selectItemById(H);
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function Z(H) {
|
|
3400
3400
|
const U = d.value.find((ce) => ce.raw[r.idField.value] === H);
|
|
3401
3401
|
U && le.clickRowItem(U);
|
|
3402
3402
|
}
|
|
@@ -3404,7 +3404,7 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3404
3404
|
le.activeRowById(H);
|
|
3405
3405
|
}
|
|
3406
3406
|
function xe(H) {
|
|
3407
|
-
|
|
3407
|
+
g.selectItemByIds(H);
|
|
3408
3408
|
}
|
|
3409
3409
|
function ye() {
|
|
3410
3410
|
return T.getSelectedItems();
|
|
@@ -3412,14 +3412,14 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3412
3412
|
function be() {
|
|
3413
3413
|
T.clearSelection();
|
|
3414
3414
|
}
|
|
3415
|
-
const Be =
|
|
3415
|
+
const Be = R(() => !d.value || !d.value.length), {
|
|
3416
3416
|
renderEmpty: ue
|
|
3417
3417
|
} = xo(e, t);
|
|
3418
3418
|
function ke() {
|
|
3419
3419
|
return T.getSelectionRow();
|
|
3420
3420
|
}
|
|
3421
3421
|
function Ce(H) {
|
|
3422
|
-
|
|
3422
|
+
g.unSelectItemByIds(H);
|
|
3423
3423
|
}
|
|
3424
3424
|
function pe() {
|
|
3425
3425
|
return T.currentSelectedDataId.value;
|
|
@@ -3460,13 +3460,13 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3460
3460
|
}
|
|
3461
3461
|
function lt(H) {
|
|
3462
3462
|
const U = b.dataView.value.find((ce) => ce[s.value] === H);
|
|
3463
|
-
return U ? U[
|
|
3463
|
+
return U ? U[j.value] : "";
|
|
3464
3464
|
}
|
|
3465
3465
|
function mn() {
|
|
3466
|
-
return
|
|
3466
|
+
return j.value;
|
|
3467
3467
|
}
|
|
3468
3468
|
fe(() => e.showSetting, (H, U) => {
|
|
3469
|
-
H !== U && (H ?
|
|
3469
|
+
H !== U && (H ? O(i) : X(i), I(i.value));
|
|
3470
3470
|
});
|
|
3471
3471
|
function vn(H) {
|
|
3472
3472
|
return d.value.filter((U) => H.includes(U.raw[e.idField]));
|
|
@@ -3489,14 +3489,14 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3489
3489
|
editDataItem: ct,
|
|
3490
3490
|
acceptDataItem: Mt,
|
|
3491
3491
|
cancelDataItem: y,
|
|
3492
|
-
updateColumns:
|
|
3492
|
+
updateColumns: I,
|
|
3493
3493
|
updateDataSource: D,
|
|
3494
3494
|
selectItemById: q,
|
|
3495
3495
|
selectItemByIds: xe,
|
|
3496
3496
|
getSelectedItems: ye,
|
|
3497
3497
|
clearSelection: be,
|
|
3498
3498
|
getSelectionRow: ke,
|
|
3499
|
-
clickRowItemById:
|
|
3499
|
+
clickRowItemById: Z,
|
|
3500
3500
|
unSelectItemByIds: Ce,
|
|
3501
3501
|
getCurrentRowId: pe,
|
|
3502
3502
|
reassignRowData: it,
|
|
@@ -3507,20 +3507,20 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3507
3507
|
selectRowById: gn,
|
|
3508
3508
|
updateDerivedData: yn
|
|
3509
3509
|
});
|
|
3510
|
-
const hn =
|
|
3510
|
+
const hn = R(() => {
|
|
3511
3511
|
const H = {};
|
|
3512
3512
|
return ie.shouldShowHorizontalScrollbar.value && (H.paddingBottom = "10px"), ie.shouldShowVirticalScrollbar.value && (H.paddingRight = "10px"), H;
|
|
3513
|
-
}), bn =
|
|
3514
|
-
...
|
|
3513
|
+
}), bn = R(() => ({
|
|
3514
|
+
...A.value,
|
|
3515
3515
|
borderRadius: "5px"
|
|
3516
|
-
}))
|
|
3517
|
-
|
|
3518
|
-
|
|
3516
|
+
}));
|
|
3517
|
+
So(e, t, b, ie, L, T);
|
|
3518
|
+
const Cn = R(() => ({
|
|
3519
3519
|
"d-flex": !0,
|
|
3520
|
-
"justify-content-between":
|
|
3521
|
-
"justify-content-end":
|
|
3520
|
+
"justify-content-between": G.value && F.value,
|
|
3521
|
+
"justify-content-end": G.value && !F.value,
|
|
3522
3522
|
"position-relative": !0
|
|
3523
|
-
})), wn =
|
|
3523
|
+
})), wn = R(() => ({
|
|
3524
3524
|
"d-flex": !0,
|
|
3525
3525
|
"align-items-center": !0
|
|
3526
3526
|
})), {
|
|
@@ -3541,7 +3541,7 @@ const $a = /* @__PURE__ */ Xe({
|
|
|
3541
3541
|
class: Cn.value
|
|
3542
3542
|
}, [F.value && C("div", {
|
|
3543
3543
|
class: wn.value
|
|
3544
|
-
}, [C("div", null, ["已选:" +
|
|
3544
|
+
}, [C("div", null, ["已选:" + _.value.length, Gt(" 条")])])]), Me(), $.value && Ct()]);
|
|
3545
3545
|
}
|
|
3546
3546
|
});
|
|
3547
3547
|
Xt($a);
|
|
@@ -4004,7 +4004,7 @@ function Mi() {
|
|
|
4004
4004
|
return { onCopy: e };
|
|
4005
4005
|
}
|
|
4006
4006
|
function Ii(e, t, n, o) {
|
|
4007
|
-
const a = h(14), i = h(140), r = h(""), s = h(o.value.length), c =
|
|
4007
|
+
const a = h(14), i = h(140), r = h(""), s = h(o.value.length), c = R(() => o.value), l = R(() => ({
|
|
4008
4008
|
"font-size": `${a.value}px`,
|
|
4009
4009
|
height: "100%"
|
|
4010
4010
|
}));
|
|
@@ -4038,7 +4038,7 @@ function Oi(e, t, n, o) {
|
|
|
4038
4038
|
function Ri() {
|
|
4039
4039
|
const e = h(!1), t = h("复制成功");
|
|
4040
4040
|
return {
|
|
4041
|
-
feedbackStyle:
|
|
4041
|
+
feedbackStyle: R(() => {
|
|
4042
4042
|
const o = {
|
|
4043
4043
|
position: "absolute",
|
|
4044
4044
|
left: "50%",
|
|
@@ -4083,8 +4083,8 @@ function Ni(e, t) {
|
|
|
4083
4083
|
const v = d.length;
|
|
4084
4084
|
let x = "", k = 0;
|
|
4085
4085
|
for (let E = 0; E < v; E++) {
|
|
4086
|
-
const
|
|
4087
|
-
if (k++, encodeURI(
|
|
4086
|
+
const j = d.charAt(E);
|
|
4087
|
+
if (k++, encodeURI(j).length > 4 && k++, x = x.concat(j), k >= u)
|
|
4088
4088
|
return x = x.concat("..."), x;
|
|
4089
4089
|
}
|
|
4090
4090
|
if (k < u)
|
|
@@ -4092,13 +4092,13 @@ function Ni(e, t) {
|
|
|
4092
4092
|
}
|
|
4093
4093
|
return "";
|
|
4094
4094
|
}
|
|
4095
|
-
const a =
|
|
4095
|
+
const a = R(() => !!e.value && !!e.value.date), i = R(() => {
|
|
4096
4096
|
const d = e.value && e.value.date || "";
|
|
4097
4097
|
return `${t.exception.happend} : ${d}`;
|
|
4098
|
-
}), r =
|
|
4098
|
+
}), r = R(() => !!e.value && !!e.value.detail), s = R(() => e.value ? n(e.value.detail) > 160 : !1), c = h(!1), l = R(() => c.value ? t.exception.collapse : t.exception.expand), m = R(() => {
|
|
4099
4099
|
const d = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
4100
4100
|
return c.value ? d : o(d, 160);
|
|
4101
|
-
}), f =
|
|
4101
|
+
}), f = R(() => ({
|
|
4102
4102
|
position: "absolute",
|
|
4103
4103
|
right: 0,
|
|
4104
4104
|
bottom: c.value ? 0 : "2px",
|
|
@@ -4128,16 +4128,16 @@ function Di(e) {
|
|
|
4128
4128
|
}, null);
|
|
4129
4129
|
}
|
|
4130
4130
|
function ji(e, t, n, o, a) {
|
|
4131
|
-
const i = h(e.exceptionInfo), r =
|
|
4131
|
+
const i = h(e.exceptionInfo), r = R(() => {
|
|
4132
4132
|
const u = t.value === "question" ? "warning" : t.value, v = {
|
|
4133
4133
|
"f-icon": !0
|
|
4134
4134
|
}, x = `f-icon-${u}`;
|
|
4135
4135
|
return v[x] = !0, v;
|
|
4136
|
-
}), s =
|
|
4136
|
+
}), s = R(() => n.value || i.value && i.value.message), c = R(() => o.value), l = R(() => !!o.value), m = R(() => !!i.value);
|
|
4137
4137
|
function f() {
|
|
4138
4138
|
return m.value ? Ni(i, a) : l.value ? Di(c) : () => null;
|
|
4139
4139
|
}
|
|
4140
|
-
const p = f(), d =
|
|
4140
|
+
const p = f(), d = R(() => a.locale === "en" ? {
|
|
4141
4141
|
wordBreak: "keep-all",
|
|
4142
4142
|
overflowWrap: "break-word"
|
|
4143
4143
|
} : {});
|
|
@@ -4162,7 +4162,7 @@ function Hi(e, t, n, o) {
|
|
|
4162
4162
|
date: "",
|
|
4163
4163
|
message: "",
|
|
4164
4164
|
detail: ""
|
|
4165
|
-
}), l =
|
|
4165
|
+
}), l = R(() => c.value && c.value.detail || "");
|
|
4166
4166
|
function m(f) {
|
|
4167
4167
|
a(l.value).catch((p) => {
|
|
4168
4168
|
r.value = o.exception.copyFailed || "复制失败";
|
|
@@ -4180,7 +4180,7 @@ function Hi(e, t, n, o) {
|
|
|
4180
4180
|
}, [s.value])]);
|
|
4181
4181
|
}
|
|
4182
4182
|
function Li(e, t, n, o, a) {
|
|
4183
|
-
const i = h(e.type), r = h(e.buttons), s = h(e.exceptionInfo), c = h(a.ok || e.okButtonText), l = h(a.cancel || e.cancelButtonText), m = h(e.showCancelButton), f = h(e.showOkButton), p =
|
|
4183
|
+
const i = h(e.type), r = h(e.buttons), s = h(e.exceptionInfo), c = h(a.ok || e.okButtonText), l = h(a.cancel || e.cancelButtonText), m = h(e.showCancelButton), f = h(e.showOkButton), p = R(() => !!(r.value && r.value.length)), d = R(() => s.value && s.value.message && s.value.detail), u = R(() => !(r.value && r.value.length) && (f.value || m.value)), v = Hi(e, n, o, a);
|
|
4184
4184
|
c.value === "关闭" ? c.value = a.close : c.value === "知道了" && (c.value = a.exception.roger);
|
|
4185
4185
|
function x(E) {
|
|
4186
4186
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -4237,14 +4237,14 @@ const pt = /* @__PURE__ */ Xe({
|
|
|
4237
4237
|
props: Bi,
|
|
4238
4238
|
emits: ["accept", "reject", "close"],
|
|
4239
4239
|
setup(e, t) {
|
|
4240
|
-
const n = $i(e), o = h(e.type), a = h(e.title), i = h(e.detail), r =
|
|
4240
|
+
const n = $i(e), o = h(e.type), a = h(e.title), i = h(e.detail), r = R(() => {
|
|
4241
4241
|
const k = {
|
|
4242
4242
|
"modal-tips": !0,
|
|
4243
4243
|
"d-flex": !0,
|
|
4244
4244
|
"flex-row": !0
|
|
4245
4245
|
}, E = `messager-type-${o.value}`;
|
|
4246
4246
|
return k[E] = !0, k;
|
|
4247
|
-
}), s =
|
|
4247
|
+
}), s = R(() => {
|
|
4248
4248
|
const k = {
|
|
4249
4249
|
cursor: "default"
|
|
4250
4250
|
};
|
|
@@ -4402,10 +4402,10 @@ function pn(e, t) {
|
|
|
4402
4402
|
return { judgeCanOpen: n };
|
|
4403
4403
|
}
|
|
4404
4404
|
function zi(e, t, n, o, a) {
|
|
4405
|
-
const i = h(e.buttonBehavior), r = h(e.popupOnInput), s =
|
|
4405
|
+
const i = h(e.buttonBehavior), r = h(e.popupOnInput), s = R(() => ({
|
|
4406
4406
|
"input-group-append": !0,
|
|
4407
4407
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
4408
|
-
})), { judgeCanOpen: c } = pn(e, a), l =
|
|
4408
|
+
})), { judgeCanOpen: c } = pn(e, a), l = R(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = Mn(fn, null), f = h();
|
|
4409
4409
|
async function p(v) {
|
|
4410
4410
|
if (await c() && l.value) {
|
|
4411
4411
|
const x = !!t.slots.default;
|
|
@@ -4439,7 +4439,7 @@ function zi(e, t, n, o, a) {
|
|
|
4439
4439
|
};
|
|
4440
4440
|
}
|
|
4441
4441
|
function Ai(e, t, n, o, a, i) {
|
|
4442
|
-
const r = h(!1), s =
|
|
4442
|
+
const r = h(!1), s = R(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: c, hasClearClass: l } = i;
|
|
4443
4443
|
function m(u) {
|
|
4444
4444
|
r.value = u, l.value = u;
|
|
4445
4445
|
}
|
|
@@ -4471,13 +4471,13 @@ function Ai(e, t, n, o, a, i) {
|
|
|
4471
4471
|
};
|
|
4472
4472
|
}
|
|
4473
4473
|
function Vi(e, t, n, o, a) {
|
|
4474
|
-
const i =
|
|
4474
|
+
const i = R(() => e.popupOnInput), r = R(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: c } = a, l = h(!1), m = R(() => e.enableTitle ? n.value : ""), f = R(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), p = R(() => e.readonly || !e.editable), d = h(!1), u = R(() => !e.disable && d.value), v = R(() => ({
|
|
4475
4475
|
"text-left": e.textAlign === "left",
|
|
4476
4476
|
"text-center": e.textAlign === "center",
|
|
4477
4477
|
"text-right": e.textAlign === "right",
|
|
4478
4478
|
"form-control": !0,
|
|
4479
4479
|
"f-utils-fill": !0
|
|
4480
|
-
})), x =
|
|
4480
|
+
})), x = R(() => ({
|
|
4481
4481
|
"input-group": !0,
|
|
4482
4482
|
"f-state-disabled": e.disable,
|
|
4483
4483
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
@@ -4485,8 +4485,8 @@ function Vi(e, t, n, o, a) {
|
|
|
4485
4485
|
"f-state-focus": u.value,
|
|
4486
4486
|
"input-group--has-clear": e.enableClear && l.value
|
|
4487
4487
|
}));
|
|
4488
|
-
function k(g,
|
|
4489
|
-
n.value = g,
|
|
4488
|
+
function k(g, $ = !0) {
|
|
4489
|
+
n.value = g, $ && (t.emit("change", g), t.emit("update:modelValue", g));
|
|
4490
4490
|
}
|
|
4491
4491
|
function E(g) {
|
|
4492
4492
|
s.value = !1, k(g, !0);
|
|
@@ -4497,10 +4497,10 @@ function Vi(e, t, n, o, a) {
|
|
|
4497
4497
|
n.value = g;
|
|
4498
4498
|
}
|
|
4499
4499
|
);
|
|
4500
|
-
function
|
|
4500
|
+
function j(g) {
|
|
4501
4501
|
d.value = !1, t.emit("blur", g), g.stopPropagation();
|
|
4502
4502
|
}
|
|
4503
|
-
function
|
|
4503
|
+
function N(g) {
|
|
4504
4504
|
t.emit("click", g), c(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
|
|
4505
4505
|
}
|
|
4506
4506
|
function S(g) {
|
|
@@ -4508,8 +4508,8 @@ function Vi(e, t, n, o, a) {
|
|
|
4508
4508
|
}
|
|
4509
4509
|
function b(g) {
|
|
4510
4510
|
t.emit("input", g);
|
|
4511
|
-
const
|
|
4512
|
-
o.value =
|
|
4511
|
+
const $ = g.target.value;
|
|
4512
|
+
o.value = $, n.value !== $ && k($, e.updateOn === "change"), i.value && !s.value && a.popup();
|
|
4513
4513
|
}
|
|
4514
4514
|
function w(g) {
|
|
4515
4515
|
g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
|
|
@@ -4520,9 +4520,9 @@ function Vi(e, t, n, o, a) {
|
|
|
4520
4520
|
function F(g) {
|
|
4521
4521
|
g.key === "Enter" && (i.value || r.value) && a.hidePopup(), t.emit("keyup", g);
|
|
4522
4522
|
}
|
|
4523
|
-
function
|
|
4524
|
-
const
|
|
4525
|
-
g.stopPropagation(), k(
|
|
4523
|
+
function _(g) {
|
|
4524
|
+
const $ = g.target.value;
|
|
4525
|
+
g.stopPropagation(), k($);
|
|
4526
4526
|
}
|
|
4527
4527
|
return {
|
|
4528
4528
|
hasFocusedTextBox: u,
|
|
@@ -4534,14 +4534,14 @@ function Vi(e, t, n, o, a) {
|
|
|
4534
4534
|
hasClearClass: l,
|
|
4535
4535
|
changeTextBoxValue: k,
|
|
4536
4536
|
commitValue: E,
|
|
4537
|
-
onBlurTextBox:
|
|
4538
|
-
onClickTextBox:
|
|
4537
|
+
onBlurTextBox: j,
|
|
4538
|
+
onClickTextBox: N,
|
|
4539
4539
|
onFocusTextBox: S,
|
|
4540
4540
|
onInput: b,
|
|
4541
4541
|
onKeyDownTextBox: T,
|
|
4542
4542
|
onKeyUpTextBox: F,
|
|
4543
4543
|
onMouseDownTextBox: w,
|
|
4544
|
-
onTextBoxValueChange:
|
|
4544
|
+
onTextBoxValueChange: _
|
|
4545
4545
|
};
|
|
4546
4546
|
}
|
|
4547
4547
|
const We = "FarrisVue_PopoverInstancesKey";
|
|
@@ -4603,7 +4603,7 @@ function Wi(e, t, n) {
|
|
|
4603
4603
|
onTextBoxValueChange: v
|
|
4604
4604
|
} = n, x = h(e.id), {
|
|
4605
4605
|
uuid: k
|
|
4606
|
-
} = Hn(), E =
|
|
4606
|
+
} = Hn(), E = R(() => ({
|
|
4607
4607
|
"border-top-right-radius": "6px",
|
|
4608
4608
|
"border-bottom-right-radius": "6px"
|
|
4609
4609
|
}));
|
|
@@ -4613,13 +4613,13 @@ function Wi(e, t, n) {
|
|
|
4613
4613
|
preventScroll: !0
|
|
4614
4614
|
})), x.value || (x.value = "button-edit_" + k(8)), x.value = x.value + "-textbox";
|
|
4615
4615
|
});
|
|
4616
|
-
const
|
|
4617
|
-
w.preventDefault(),
|
|
4616
|
+
const j = h(!1), N = (w) => {
|
|
4617
|
+
w.preventDefault(), j.value = !0;
|
|
4618
4618
|
}, S = (w) => {
|
|
4619
|
-
w.preventDefault(),
|
|
4619
|
+
w.preventDefault(), j.value = !1, f(w);
|
|
4620
4620
|
};
|
|
4621
4621
|
function b(w) {
|
|
4622
|
-
|
|
4622
|
+
j.value || f(w);
|
|
4623
4623
|
}
|
|
4624
4624
|
return () => C("input", {
|
|
4625
4625
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4646,17 +4646,17 @@ function Wi(e, t, n) {
|
|
|
4646
4646
|
onKeyup: d,
|
|
4647
4647
|
onMousedown: u,
|
|
4648
4648
|
onCompositionend: S,
|
|
4649
|
-
onCompositionstart:
|
|
4649
|
+
onCompositionstart: N
|
|
4650
4650
|
}, null);
|
|
4651
4651
|
}
|
|
4652
4652
|
function qi(e, t, n) {
|
|
4653
|
-
const o = h(e.separator), a =
|
|
4653
|
+
const o = h(e.separator), a = R(() => e.readonly || e.disable), {
|
|
4654
4654
|
changeTextBoxValue: i,
|
|
4655
4655
|
onFocusTextBox: r,
|
|
4656
4656
|
onBlurTextBox: s,
|
|
4657
4657
|
onClickTextBox: c,
|
|
4658
4658
|
textBoxPlaceholder: l
|
|
4659
|
-
} = n, m =
|
|
4659
|
+
} = n, m = R(() => t.value ? t.value.split(o.value).map((u) => ({
|
|
4660
4660
|
name: u,
|
|
4661
4661
|
selectable: !0
|
|
4662
4662
|
})) : []);
|
|
@@ -4775,46 +4775,46 @@ const Xi = /* @__PURE__ */ Xe({
|
|
|
4775
4775
|
} = p, x = Ai(e, t, a, d, f, p), {
|
|
4776
4776
|
onMouseEnterTextBox: k,
|
|
4777
4777
|
onMouseLeaveTextBox: E
|
|
4778
|
-
} = x,
|
|
4779
|
-
const
|
|
4778
|
+
} = x, j = h(!1), N = R(() => {
|
|
4779
|
+
const A = {
|
|
4780
4780
|
"f-button-edit": !0,
|
|
4781
4781
|
"f-cmp-inputgroup": !0,
|
|
4782
4782
|
"f-button-edit-nowrap": !e.wrapText
|
|
4783
4783
|
};
|
|
4784
|
-
return o.value && o.value.split(" ").reduce((
|
|
4785
|
-
}),
|
|
4784
|
+
return o.value && o.value.split(" ").reduce((Q, M) => (Q[M] = !0, Q), A), A;
|
|
4785
|
+
}), S = R(() => ({
|
|
4786
4786
|
overflow: e.wrapText ? "hidden" : ""
|
|
4787
|
-
})),
|
|
4787
|
+
})), b = R(() => ({
|
|
4788
4788
|
paddingLeft: "3px",
|
|
4789
4789
|
backgroundColor: "#fff"
|
|
4790
4790
|
}));
|
|
4791
|
-
function
|
|
4791
|
+
function w() {
|
|
4792
4792
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
4793
4793
|
return 0;
|
|
4794
|
-
let
|
|
4795
|
-
const
|
|
4796
|
-
return
|
|
4794
|
+
let A = 0;
|
|
4795
|
+
const Q = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
4796
|
+
return Q && Q.length && (A = Q.map((M) => M.offsetTop).filter((M) => M > 20).length), A;
|
|
4797
4797
|
}
|
|
4798
|
-
const
|
|
4798
|
+
const T = h(w());
|
|
4799
4799
|
Rn(() => {
|
|
4800
|
-
|
|
4800
|
+
T.value = w();
|
|
4801
4801
|
});
|
|
4802
|
-
function
|
|
4803
|
-
return e.multiSelect && e.inputType === "tag" ? () => C(Ue, null, [qi(e, a, p)(), !!
|
|
4802
|
+
function F() {
|
|
4803
|
+
return e.multiSelect && e.inputType === "tag" ? () => C(Ue, null, [qi(e, a, p)(), !!T.value && C("div", {
|
|
4804
4804
|
class: "d-flex flex-row mr-2 more-tags",
|
|
4805
4805
|
"more-tags": !0
|
|
4806
4806
|
}, [C("span", {
|
|
4807
4807
|
class: "multi--more-text"
|
|
4808
|
-
}, [Gt("+"),
|
|
4808
|
+
}, [Gt("+"), T.value])])]) : Wi(e, a, p);
|
|
4809
4809
|
}
|
|
4810
|
-
let
|
|
4810
|
+
let _ = F();
|
|
4811
4811
|
fe([() => e.multiSelect, () => e.inputType], () => {
|
|
4812
|
-
|
|
4812
|
+
_ = F();
|
|
4813
4813
|
});
|
|
4814
4814
|
const {
|
|
4815
|
-
renderButtonGroup:
|
|
4816
|
-
buttonHandleElement:
|
|
4817
|
-
} = Gi(e, t, m, x),
|
|
4815
|
+
renderButtonGroup: g,
|
|
4816
|
+
buttonHandleElement: $
|
|
4817
|
+
} = Gi(e, t, m, x), W = Ui(e, t, i), L = h(r.value), G = {
|
|
4818
4818
|
displayText: f,
|
|
4819
4819
|
commitValue: u,
|
|
4820
4820
|
elementRef: n,
|
|
@@ -4824,57 +4824,61 @@ const Xi = /* @__PURE__ */ Xe({
|
|
|
4824
4824
|
shouldPopupContent: r,
|
|
4825
4825
|
togglePopup: l,
|
|
4826
4826
|
openDialog: () => {
|
|
4827
|
-
|
|
4827
|
+
$.value && e.buttonBehavior === "Modal" && $.value.click();
|
|
4828
4828
|
},
|
|
4829
4829
|
getModal: () => {
|
|
4830
|
-
var
|
|
4831
|
-
return e.buttonBehavior === "Modal" ? (
|
|
4830
|
+
var A;
|
|
4831
|
+
return e.buttonBehavior === "Modal" ? (A = m.modalRef.value) == null ? void 0 : A.value : null;
|
|
4832
4832
|
},
|
|
4833
4833
|
getTextbox: () => {
|
|
4834
|
-
var
|
|
4835
|
-
return (
|
|
4834
|
+
var A;
|
|
4835
|
+
return (A = n.value) == null ? void 0 : A.querySelector("input");
|
|
4836
4836
|
},
|
|
4837
4837
|
forceClosePopup: () => {
|
|
4838
|
-
|
|
4838
|
+
L.value = !1, j.value = !0, r.value = !1;
|
|
4839
4839
|
}
|
|
4840
4840
|
};
|
|
4841
4841
|
return tt(() => {
|
|
4842
|
-
n.value.componentInstance =
|
|
4842
|
+
n.value.componentInstance = G, window.onresize = () => {
|
|
4843
4843
|
document.body.click();
|
|
4844
4844
|
};
|
|
4845
4845
|
}), Pn(() => {
|
|
4846
|
-
var
|
|
4847
|
-
window.onresize = null, (
|
|
4848
|
-
}), t.expose(
|
|
4849
|
-
if (
|
|
4846
|
+
var A;
|
|
4847
|
+
window.onresize = null, (A = window[We]) == null || A.delete(n.value);
|
|
4848
|
+
}), t.expose(G), fe(() => r.value, async (A, Q) => {
|
|
4849
|
+
if (j.value) {
|
|
4850
|
+
L.value = A, j.value = !1;
|
|
4851
|
+
return;
|
|
4852
|
+
}
|
|
4853
|
+
if (!A && e.beforeClosePopup && typeof e.beforeClosePopup == "function") {
|
|
4850
4854
|
try {
|
|
4851
|
-
const
|
|
4852
|
-
|
|
4853
|
-
} catch (
|
|
4854
|
-
console.error("Error in beforeClosePopup:",
|
|
4855
|
+
const M = await e.beforeClosePopup();
|
|
4856
|
+
L.value = !M, (!M || e.readonly) && (r.value = !0);
|
|
4857
|
+
} catch (M) {
|
|
4858
|
+
console.error("Error in beforeClosePopup:", M), L.value = Q, r.value = Q;
|
|
4855
4859
|
}
|
|
4856
4860
|
return;
|
|
4857
4861
|
}
|
|
4858
|
-
|
|
4862
|
+
L.value = A;
|
|
4859
4863
|
}), () => {
|
|
4860
|
-
var
|
|
4864
|
+
var A, Q;
|
|
4861
4865
|
return C(Ue, null, [C("div", vt(t.attrs, {
|
|
4862
4866
|
ref: n,
|
|
4863
|
-
class:
|
|
4867
|
+
class: N.value,
|
|
4864
4868
|
id: e.id ? e.id : void 0,
|
|
4865
|
-
style:
|
|
4869
|
+
style: S.value
|
|
4866
4870
|
}), [C("div", {
|
|
4867
4871
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
4868
4872
|
class: v.value,
|
|
4869
|
-
style:
|
|
4873
|
+
style: b.value,
|
|
4870
4874
|
onMouseenter: k,
|
|
4871
4875
|
onMouseleave: E
|
|
4872
|
-
}, [(
|
|
4876
|
+
}, [(Q = (A = t.slots).precontent) == null ? void 0 : Q.call(A), _(), g()])]), L.value && W()]);
|
|
4873
4877
|
};
|
|
4874
4878
|
}
|
|
4875
|
-
}),
|
|
4879
|
+
}), Dl = Xt(Xi);
|
|
4876
4880
|
export {
|
|
4877
4881
|
Xi as FButtonEdit,
|
|
4878
4882
|
ko as buttonEditProps,
|
|
4879
|
-
|
|
4883
|
+
Dl as default
|
|
4880
4884
|
};
|