@farris/ui-vue 1.6.5-beta.1 → 1.6.5-beta.3
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 +190 -187
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/package.json +1 -1
- package/components/binding-selector/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.esm.js +745 -753
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/checkbox-group/package.json +1 -1
- package/components/code-editor/package.json +1 -1
- package/components/collection-property-editor/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/package.json +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/event-parameter/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/index.esm.js +1279 -1287
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/fieldset/package.json +1 -1
- package/components/filter-bar/index.esm.js +703 -711
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/filter-condition-editor/index.esm.js +1140 -1148
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/filter-condition-editor/package.json +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/html-template/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/package.json +1 -1
- package/components/json-editor/package.json +1 -1
- package/components/language-textbox/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.esm.js +967 -975
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/menu-lookup/package.json +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/number-range/package.json +1 -1
- package/components/number-spinner/package.json +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/query-solution/index.esm.js +1193 -1201
- package/components/query-solution/index.umd.cjs +4 -4
- package/components/query-solution/package.json +1 -1
- package/components/radio/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.esm.js +1095 -1103
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/sort-condition-editor/index.esm.js +1185 -1193
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/sort-condition-editor/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.esm.js +895 -903
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/designer/data-grid/index.esm.js +1447 -1455
- package/designer/data-grid/index.umd.cjs +4 -4
- package/designer/farris-designer.all.esm.js +1789 -1797
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/radio-group/index.esm.js +1032 -1040
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +2242 -2246
- package/farris.all.umd.cjs +15 -15
- package/package.json +1 -1
- package/types/components.d.ts +4 -3
- package/types/message-box/index.d.ts +6 -6
- package/types/message-box/src/message-box.component.d.ts +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Tn = Object.defineProperty;
|
|
2
2
|
var Sn = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var he = (e, t, n) => Sn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as Ye, ref as
|
|
4
|
+
import { defineComponent as Ye, ref as b, computed as R, createVNode as C, Teleport as Wt, createApp as Pt, onUnmounted as st, Fragment as Xe, watch as me, nextTick as Ke, onBeforeMount as Bn, onMounted as et, Transition as qt, shallowRef as kn, render as It, h as Fn, cloneVNode as Mn, mergeProps as vt, reactive as He, createTextVNode as Gt, inject as En, withDirectives as In, vShow as On, onUpdated as Rn, onBeforeUnmount as Pn } from "vue";
|
|
5
5
|
import { resolveAppearance as Dn, createPropsResolver as Ut } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import { useI18n as Dt } from "vue-i18n";
|
|
7
7
|
import { LocaleService as gt } from "../locale/index.esm.js";
|
|
@@ -82,8 +82,8 @@ import "../modal/index.esm.js";
|
|
|
82
82
|
import "../external-container/index.esm.js";
|
|
83
83
|
import "../language-textbox/index.esm.js";
|
|
84
84
|
import "../designer-canvas/index.esm.js";
|
|
85
|
-
import { getCustomClass as Hn, withInstall as Xt, FormSchemaEntityField$Type as At, FormSchemaEntityFieldTypeName as Vt, useGuid as
|
|
86
|
-
import { useResizeObserver as
|
|
85
|
+
import { getCustomClass as Hn, withInstall as Xt, FormSchemaEntityField$Type as At, FormSchemaEntityFieldTypeName as Vt, useGuid as $n } from "../common/index.esm.js";
|
|
86
|
+
import { useResizeObserver as Ln } from "@vueuse/core";
|
|
87
87
|
import { getHierarchyRow as zn, useIdentify as An, useGroupData as Vn, useFilter as _n, useHierarchy as Wn, useLoading as qn, useDataView as Gn, useSelection as Un, useSelectHierarchyItem as Xn, usePagination as Yn, useDataViewContainerStyle as Jn, useCommandColumn as Qn, useSettingColumn as Zn, useColumn as Kn, useSort as eo, useGroupColumn as to, useRow as no, useEdit as oo, useVisualDataBound as ao, useVisualDataCell as io, useVisualDataRow as ro, useVisualData as lo, useCellPosition as so, useSidebar as uo, useVirtualScroll as co, useFitColumn as fo, useFilterHistory as po, useColumnFilter as mo, useDragColumn as vo, getColumnHeader as go, getSidebar as yo, getDisableMask as ho, getHorizontalScrollbar as bo, getVerticalScrollbar as Co, getEmpty as wo, getPagination as xo, getSummary as To } from "../data-view/index.esm.js";
|
|
88
88
|
import "../property-panel/index.esm.js";
|
|
89
89
|
import "../notify/index.esm.js";
|
|
@@ -216,14 +216,14 @@ const Bo = {
|
|
|
216
216
|
props: ko,
|
|
217
217
|
emits: ["click"],
|
|
218
218
|
setup(e, t) {
|
|
219
|
-
const n =
|
|
219
|
+
const n = b(e.popupContentPosition), o = b(e.host), a = R(() => ({
|
|
220
220
|
backgroundColor: e.backgroundColor || "",
|
|
221
221
|
pointerEvents: "auto"
|
|
222
222
|
}));
|
|
223
223
|
function i(s) {
|
|
224
224
|
t.emit("click"), s.preventDefault(), s.stopPropagation();
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
R(() => {
|
|
227
227
|
const s = o.value;
|
|
228
228
|
if (s) {
|
|
229
229
|
const f = s.getBoundingClientRect(), {
|
|
@@ -238,7 +238,7 @@ const Bo = {
|
|
|
238
238
|
}
|
|
239
239
|
return n.value;
|
|
240
240
|
});
|
|
241
|
-
const r =
|
|
241
|
+
const r = R(() => ({
|
|
242
242
|
// position: 'relative',
|
|
243
243
|
// left: `${position.value.left}px`,
|
|
244
244
|
// top: `${position.value.top}px`
|
|
@@ -405,11 +405,11 @@ const Oo = "https://json-schema.org/draft/2020-12/schema", Ro = "https://farris-
|
|
|
405
405
|
}, Ho = [
|
|
406
406
|
"id",
|
|
407
407
|
"type"
|
|
408
|
-
],
|
|
408
|
+
], $o = {
|
|
409
409
|
onAccept: "确定事件",
|
|
410
410
|
onCancel: "取消事件",
|
|
411
411
|
beforeClose: "关闭前回调"
|
|
412
|
-
},
|
|
412
|
+
}, Lo = {
|
|
413
413
|
$schema: Oo,
|
|
414
414
|
$id: Ro,
|
|
415
415
|
title: Po,
|
|
@@ -417,7 +417,7 @@ const Oo = "https://json-schema.org/draft/2020-12/schema", Ro = "https://farris-
|
|
|
417
417
|
type: No,
|
|
418
418
|
properties: jo,
|
|
419
419
|
required: Ho,
|
|
420
|
-
events:
|
|
420
|
+
events: $o
|
|
421
421
|
}, zo = /* @__PURE__ */ new Map([
|
|
422
422
|
["appearance", Dn]
|
|
423
423
|
]);
|
|
@@ -513,7 +513,7 @@ const Yt = {
|
|
|
513
513
|
src: { type: String, default: "" },
|
|
514
514
|
footerHeight: { type: Number, default: 60 },
|
|
515
515
|
host: { type: Object, default: "body" }
|
|
516
|
-
}, _o = Ut(Yt,
|
|
516
|
+
}, _o = Ut(Yt, Lo, zo, Ao), Wo = Vo();
|
|
517
517
|
class ae {
|
|
518
518
|
constructor(t, n) {
|
|
519
519
|
this.x = t, this.y = n;
|
|
@@ -598,20 +598,20 @@ class Ge {
|
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function qo(e, t) {
|
|
601
|
-
const n =
|
|
601
|
+
const n = b(), o = b(), a = b(), i = b(), r = b(), s = b(), f = b(), l = b(), m = b(), d = b(), p = b(), c = b(e.resizeable), u = b(), v = b(e.draggable), x = b(!1);
|
|
602
602
|
function k() {
|
|
603
|
-
const
|
|
603
|
+
const D = o.value || document.body, I = window.getComputedStyle(D);
|
|
604
604
|
if (!I || !n.value)
|
|
605
605
|
return;
|
|
606
|
-
const
|
|
607
|
-
f.value && (
|
|
606
|
+
const U = ae.getTransformInfo(n.value), A = {};
|
|
607
|
+
f.value && (A.deltaL = n.value.offsetLeft - f.value.x, A.deltaT = n.value.offsetTop - f.value.y);
|
|
608
608
|
const K = I.getPropertyValue("position");
|
|
609
|
-
|
|
609
|
+
A.width = D.clientWidth, A.height = D.clientHeight, A.pr = parseInt(I.getPropertyValue("padding-right"), 10), A.pb = parseInt(I.getPropertyValue("padding-bottom"), 10), A.position = I.getPropertyValue("position"), K === "static" && (D.style.position = "relative"), A.translateX = U.x, A.translateY = U.y, d.value = A;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function F(D) {
|
|
612
612
|
if (n.value) {
|
|
613
613
|
i.value = Ge.getCurrent(n.value), r.value = ae.getCurrent(n.value), s.value = i.value ? Ge.copy(i.value) : null, f.value = r.value ? ae.copy(r.value) : null, k();
|
|
614
|
-
const I =
|
|
614
|
+
const I = D.target.getAttribute("type") || "";
|
|
615
615
|
l.value = {
|
|
616
616
|
n: !!I.match(/n/),
|
|
617
617
|
s: !!I.match(/s/),
|
|
@@ -621,74 +621,74 @@ function qo(e, t) {
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
function L() {
|
|
624
|
-
var
|
|
624
|
+
var D, I, U, A;
|
|
625
625
|
if (n.value) {
|
|
626
626
|
const K = n.value;
|
|
627
|
-
l.value && ((l.value.n || l.value.s) && ((
|
|
627
|
+
l.value && ((l.value.n || l.value.s) && ((D = s.value) != null && D.height) && (K.style.height = s.value.height + "px"), (l.value.w || l.value.e) && ((I = s.value) != null && I.width) && (K.style.width = s.value.width + "px"), f.value && ((U = f.value) != null && U.x && (K.style.left = f.value.x + "px"), (A = f.value) != null && A.y && (K.style.top = f.value.y + "px")));
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
function P() {
|
|
631
|
-
const
|
|
632
|
-
s.value && f.value && l.value && i.value && (s.value.height <
|
|
631
|
+
const D = e.minHeight ? e.minHeight : 1, I = e.minWidth ? e.minWidth : 1;
|
|
632
|
+
s.value && f.value && l.value && i.value && (s.value.height < D && (s.value.height = D, l.value.n && r.value && (f.value.y = r.value.y + (i.value.height - D))), s.value.width < I && (s.value.width = I, l.value.w && r.value && (f.value.x = r.value.x + (i.value.width - I))), e.maxHeight && s.value.height > e.maxHeight && (s.value.height = e.maxHeight, r.value && l.value.n && (f.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 && (f.value.x = r.value.x + (i.value.width - e.maxWidth))));
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function w() {
|
|
635
635
|
if (o.value) {
|
|
636
|
-
const
|
|
636
|
+
const D = d.value;
|
|
637
637
|
if (f.value && s.value && l.value && i.value) {
|
|
638
|
-
const I =
|
|
639
|
-
l.value.n && f.value.y +
|
|
638
|
+
const I = D.width - D.pr - D.deltaL - D.translateX - f.value.x, U = D.height - D.pb - D.deltaT - D.translateY - f.value.y;
|
|
639
|
+
l.value.n && f.value.y + D.translateY < 0 && r.value && (f.value.y = -D.translateY, s.value.height = i.value.height + r.value.y + D.translateY), l.value.w && f.value.x + D.translateX < 0 && r.value && (f.value.x = -D.translateX, s.value.width = i.value.width + r.value.x + D.translateX), s.value.width > I && (s.value.width = I), s.value.height > U && (s.value.height = U);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function y(D) {
|
|
644
644
|
if (!a.value || !i.value || !r.value || !l.value)
|
|
645
645
|
return;
|
|
646
|
-
|
|
647
|
-
const I =
|
|
648
|
-
l.value.n ? (f.value.y = r.value.y +
|
|
646
|
+
D.subtract(a.value);
|
|
647
|
+
const I = D.x, U = D.y;
|
|
648
|
+
l.value.n ? (f.value.y = r.value.y + U, s.value.height = i.value.height - U) : l.value.s && (s.value.height = i.value.height + U), l.value.e ? s.value.width = i.value.width + I : l.value.w && (s.value.width = i.value.width - I, f.value.x = r.value.x + I), w(), P(), L();
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function S(D) {
|
|
651
651
|
if (!m.value)
|
|
652
652
|
return;
|
|
653
|
-
const I = ae.fromEvent(
|
|
654
|
-
I &&
|
|
653
|
+
const I = ae.fromEvent(D);
|
|
654
|
+
I && y(I);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function T() {
|
|
657
657
|
if (n.value) {
|
|
658
658
|
const {
|
|
659
|
-
width:
|
|
659
|
+
width: D,
|
|
660
660
|
height: I,
|
|
661
|
-
x:
|
|
662
|
-
y:
|
|
661
|
+
x: U,
|
|
662
|
+
y: A
|
|
663
663
|
} = n.value.getBoundingClientRect(), K = ae.getTransformInfo(n.value);
|
|
664
664
|
return {
|
|
665
665
|
size: {
|
|
666
|
-
width:
|
|
666
|
+
width: D,
|
|
667
667
|
height: I
|
|
668
668
|
},
|
|
669
669
|
position: {
|
|
670
|
-
x:
|
|
671
|
-
y:
|
|
670
|
+
x: U - K.x,
|
|
671
|
+
y: A - K.y
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
return null;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function M(D) {
|
|
678
678
|
if (n.value) {
|
|
679
|
-
const I =
|
|
679
|
+
const I = T();
|
|
680
680
|
p.value = I;
|
|
681
681
|
}
|
|
682
|
-
a.value = void 0, i.value = null, r.value = null, s.value = null, f.value = null, l.value = null, m.value = null, document.removeEventListener("mousemove",
|
|
682
|
+
a.value = void 0, i.value = null, r.value = null, s.value = null, f.value = null, l.value = null, m.value = null, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", M);
|
|
683
683
|
}
|
|
684
684
|
function _() {
|
|
685
|
-
document.addEventListener("mousemove",
|
|
685
|
+
document.addEventListener("mousemove", S), document.addEventListener("mouseup", M);
|
|
686
686
|
}
|
|
687
|
-
function g(
|
|
688
|
-
|
|
687
|
+
function g(D) {
|
|
688
|
+
D instanceof MouseEvent && D.button === 2 || v.value && (document.body.click(), D.stopPropagation(), D.preventDefault(), a.value = ae.fromEvent(D), m.value = D.target, F(D), _());
|
|
689
689
|
}
|
|
690
|
-
function z(
|
|
691
|
-
return n.value =
|
|
690
|
+
function z(D) {
|
|
691
|
+
return n.value = D, c.value && C(Xe, null, [C("div", {
|
|
692
692
|
class: "fv-resizable-handle fv-resizable-n",
|
|
693
693
|
type: "n",
|
|
694
694
|
onMousedown: (I) => g(I)
|
|
@@ -722,10 +722,10 @@ function qo(e, t) {
|
|
|
722
722
|
onMousedown: (I) => g(I)
|
|
723
723
|
}, null)]);
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function j(D = !0) {
|
|
726
726
|
document.body.click();
|
|
727
|
-
const I = o.value || document.body,
|
|
728
|
-
|
|
727
|
+
const I = o.value || document.body, U = Ge.getCurrent(I), A = n.value;
|
|
728
|
+
D && A && (u.value = T(), u.value.transform = A.style.transform), U && A && (s.value = U, s.value.height -= 14, s.value.width -= 14, A.style.height = s.value.height + "px", A.style.width = s.value.width + "px", A.style.left = "7px", A.style.top = "7px", A.style.transform = "", p.value = {
|
|
729
729
|
size: s.value,
|
|
730
730
|
position: {
|
|
731
731
|
x: 0,
|
|
@@ -733,134 +733,134 @@ function qo(e, t) {
|
|
|
733
733
|
}
|
|
734
734
|
}, v.value = !1, x.value = !0);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
var
|
|
736
|
+
function H() {
|
|
737
|
+
var D, I;
|
|
738
738
|
if (document.body.click(), u.value) {
|
|
739
|
-
const
|
|
739
|
+
const U = {
|
|
740
740
|
width: u.value.size.width || 0,
|
|
741
741
|
height: u.value.size.height || 0
|
|
742
|
-
},
|
|
743
|
-
x: (window.innerWidth -
|
|
744
|
-
y: (window.innerHeight -
|
|
742
|
+
}, A = {
|
|
743
|
+
x: (window.innerWidth - U.width) / 2,
|
|
744
|
+
y: (window.innerHeight - U.height) / 2
|
|
745
745
|
};
|
|
746
|
-
(
|
|
746
|
+
(D = s.value) == null || D.set(U), (I = f.value) == null || I.set(A);
|
|
747
747
|
const K = n.value;
|
|
748
|
-
K.style.height =
|
|
749
|
-
size:
|
|
750
|
-
position:
|
|
748
|
+
K.style.height = U.height + "px", K.style.width = U.width + "px", K.style.left = `${A.x}px`, K.style.top = `${A.y}px`, K.style.transform = "", p.value = {
|
|
749
|
+
size: U,
|
|
750
|
+
position: A
|
|
751
751
|
}, v.value = e.draggable, x.value = !1;
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function W() {
|
|
755
755
|
if (n.value) {
|
|
756
|
-
const
|
|
757
|
-
if (
|
|
756
|
+
const D = Ge.getCurrent(n.value);
|
|
757
|
+
if (D) {
|
|
758
758
|
const {
|
|
759
759
|
width: I,
|
|
760
|
-
height:
|
|
761
|
-
} =
|
|
762
|
-
n.value.style.left = `${(window.innerWidth - I) / 2}px`, n.value.style.top = `${(window.innerHeight -
|
|
760
|
+
height: U
|
|
761
|
+
} = D;
|
|
762
|
+
n.value.style.left = `${(window.innerWidth - I) / 2}px`, n.value.style.top = `${(window.innerHeight - U) / 2}px`, n.value.style.transform = "";
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
const
|
|
768
|
-
x.value ?
|
|
766
|
+
function J() {
|
|
767
|
+
const D = () => {
|
|
768
|
+
x.value ? j(!1) : W(), document.body.click();
|
|
769
769
|
};
|
|
770
|
-
return window.addEventListener("resize",
|
|
771
|
-
window.removeEventListener("resize",
|
|
770
|
+
return window.addEventListener("resize", D), () => {
|
|
771
|
+
window.removeEventListener("resize", D);
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
|
-
const oe =
|
|
774
|
+
const oe = J();
|
|
775
775
|
return {
|
|
776
776
|
renderResizeBar: z,
|
|
777
777
|
boundingElement: o,
|
|
778
778
|
resizedEventParam: p,
|
|
779
|
-
maximize:
|
|
780
|
-
restore:
|
|
779
|
+
maximize: j,
|
|
780
|
+
restore: H,
|
|
781
781
|
allowDrag: v,
|
|
782
782
|
isMaximized: x,
|
|
783
783
|
unWindowResizeHandle: oe,
|
|
784
|
-
moveToCenter:
|
|
784
|
+
moveToCenter: W
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
787
|
function Go(e, t, n) {
|
|
788
|
-
const o =
|
|
789
|
-
me(() => n.value, (
|
|
790
|
-
r.value.style.cursor =
|
|
788
|
+
const o = b(), a = b(e.draggable), i = b(e.lockAxis), r = b(), s = b(), f = b(!1), l = b(new ae(0, 0)), m = b(new ae(0, 0)), d = b(new ae(0, 0)), p = b(new ae(0, 0));
|
|
789
|
+
me(() => n.value, (S) => {
|
|
790
|
+
r.value.style.cursor = S ? "move" : "default";
|
|
791
791
|
});
|
|
792
|
-
function c(
|
|
793
|
-
if (
|
|
792
|
+
function c(S, T) {
|
|
793
|
+
if (T.tagName === "BUTTON")
|
|
794
794
|
return !1;
|
|
795
|
-
if (
|
|
795
|
+
if (T === S)
|
|
796
796
|
return !0;
|
|
797
|
-
for (const
|
|
798
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
797
|
+
for (const M in T.children)
|
|
798
|
+
if (Object.prototype.hasOwnProperty.call(T.children, M) && c(S, T.children[M]))
|
|
799
799
|
return !0;
|
|
800
800
|
return !1;
|
|
801
801
|
}
|
|
802
802
|
function u() {
|
|
803
803
|
var _, g;
|
|
804
|
-
let
|
|
805
|
-
i.value === "x" ? (
|
|
806
|
-
const
|
|
807
|
-
o.value && (o.value.style.transform =
|
|
804
|
+
let S = d.value.x + m.value.x, T = d.value.y + m.value.y;
|
|
805
|
+
i.value === "x" ? (S = ((_ = l.value) == null ? void 0 : _.x) || 0, d.value.x = 0) : i.value === "y" && (T = ((g = l.value) == null ? void 0 : g.y) || 0, d.value.y = 0);
|
|
806
|
+
const M = `translate3d(${Math.round(S)}px, ${Math.round(T)}px, 0px)`;
|
|
807
|
+
o.value && (o.value.style.transform = M), p.value.x = S, p.value.y = T;
|
|
808
808
|
}
|
|
809
809
|
function v() {
|
|
810
810
|
if (!s.value || !o.value)
|
|
811
811
|
return null;
|
|
812
|
-
const
|
|
813
|
-
top:
|
|
814
|
-
right:
|
|
815
|
-
bottom:
|
|
816
|
-
left:
|
|
812
|
+
const S = s.value.getBoundingClientRect(), T = o.value.getBoundingClientRect(), M = {
|
|
813
|
+
top: S.top < T.top,
|
|
814
|
+
right: S.right > T.right,
|
|
815
|
+
bottom: S.bottom > T.bottom,
|
|
816
|
+
left: S.left < T.left
|
|
817
817
|
};
|
|
818
|
-
return
|
|
818
|
+
return M.top || (d.value.y -= T.top - S.top), M.bottom || (d.value.y -= T.bottom - S.bottom), M.right || (d.value.x -= T.right - S.right), M.left || (d.value.x -= T.left - S.left), u(), M;
|
|
819
819
|
}
|
|
820
|
-
function x(
|
|
821
|
-
|
|
820
|
+
function x(S) {
|
|
821
|
+
S && (l.value && S.subtract(l.value), d.value.set(S), u(), v());
|
|
822
822
|
}
|
|
823
|
-
function k(
|
|
824
|
-
f.value && a.value && (
|
|
823
|
+
function k(S) {
|
|
824
|
+
f.value && a.value && (S.stopPropagation(), S.preventDefault(), x(ae.fromEvent(S, r.value)));
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
var
|
|
828
|
-
f.value && (f.value = !1, m.value.add(d.value), d.value.reset(), (
|
|
826
|
+
function F() {
|
|
827
|
+
var S;
|
|
828
|
+
f.value && (f.value = !1, m.value.add(d.value), d.value.reset(), (S = o.value) == null || S.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", F));
|
|
829
829
|
}
|
|
830
830
|
function L() {
|
|
831
|
-
!f.value && r.value && (f.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", k), document.addEventListener("mouseup",
|
|
831
|
+
!f.value && r.value && (f.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", k), document.addEventListener("mouseup", F));
|
|
832
832
|
}
|
|
833
833
|
function P() {
|
|
834
834
|
if (o.value) {
|
|
835
|
-
const
|
|
836
|
-
m.value.set(
|
|
835
|
+
const S = ae.getTransformInfo(o.value);
|
|
836
|
+
m.value.set(S);
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
839
|
m.value.reset();
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
if (!n.value ||
|
|
841
|
+
function w(S) {
|
|
842
|
+
if (!n.value || S instanceof MouseEvent && S.button === 2)
|
|
843
843
|
return;
|
|
844
|
-
const
|
|
845
|
-
r.value !== void 0 &&
|
|
844
|
+
const T = S.target || S.srcElement;
|
|
845
|
+
r.value !== void 0 && T && !c(T, r.value) || a.value !== !1 && (document.body.click(), S.stopPropagation(), S.preventDefault(), l.value = ae.fromEvent(S, o.value), P(), L());
|
|
846
846
|
}
|
|
847
|
-
function
|
|
848
|
-
if (a.value &&
|
|
849
|
-
if (
|
|
850
|
-
r.value =
|
|
847
|
+
function y(S, T, M) {
|
|
848
|
+
if (a.value && T) {
|
|
849
|
+
if (S)
|
|
850
|
+
r.value = S;
|
|
851
851
|
else if (e.dragHandle) {
|
|
852
852
|
if (e.dragHandle instanceof HTMLElement)
|
|
853
853
|
r.value = e.dragHandle;
|
|
854
854
|
else if (typeof e.dragHandle == "string") {
|
|
855
|
-
const _ =
|
|
855
|
+
const _ = T.querySelector(e.dragHandle);
|
|
856
856
|
_ && (r.value = _);
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
o.value =
|
|
859
|
+
o.value = T, s.value = M, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", w)) : a.value = !1;
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
return {
|
|
863
|
-
registerDraggle:
|
|
863
|
+
registerDraggle: y,
|
|
864
864
|
resetTranslate: P
|
|
865
865
|
};
|
|
866
866
|
}
|
|
@@ -875,7 +875,7 @@ function Jt(e, t) {
|
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
function Uo(e, t) {
|
|
878
|
-
const n =
|
|
878
|
+
const n = b(e.enableEsc);
|
|
879
879
|
let o = null;
|
|
880
880
|
return n.value ? (o = Jt("Escape", (a) => {
|
|
881
881
|
t.emit("esc", { event: a.event, type: "esc" });
|
|
@@ -884,7 +884,7 @@ function Uo(e, t) {
|
|
|
884
884
|
}) : null;
|
|
885
885
|
}
|
|
886
886
|
function Xo(e, t) {
|
|
887
|
-
const n =
|
|
887
|
+
const n = b(e.enableEnter);
|
|
888
888
|
let o = null;
|
|
889
889
|
return n.value ? (o = Jt("Enter", (a) => {
|
|
890
890
|
t.emit("enter", { event: a.event, type: "enter" });
|
|
@@ -897,45 +897,45 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
897
897
|
props: Yt,
|
|
898
898
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
899
899
|
setup(e, t) {
|
|
900
|
-
const n =
|
|
900
|
+
const n = b(e.width || 300), o = b(e.height || 200), a = b(e.modelValue), i = b(""), r = b(e.class), s = b(e.fitContent), f = b(e.showHeader), l = b(""), m = b(e.showCloseButton), d = b(e.showMaxButton), p = b(!1), c = b(e.dialogType), u = b(e.src), v = b(""), x = b(e.showButtons), k = b(e.title), F = b(e.containment || null), L = b(), {
|
|
901
901
|
t: P
|
|
902
902
|
} = Dt();
|
|
903
903
|
k.value === "错误提示" && (k.value = P("messageBox.errorTitle"));
|
|
904
|
-
const
|
|
905
|
-
function
|
|
906
|
-
const ie =
|
|
904
|
+
const w = b(!1);
|
|
905
|
+
function y(B, Y) {
|
|
906
|
+
const ie = Y ? "accept" : "cancel";
|
|
907
907
|
Promise.resolve().then(() => {
|
|
908
908
|
var re;
|
|
909
909
|
return (re = e.beforeClose) == null ? void 0 : re.call(e, {
|
|
910
910
|
closeType: ie
|
|
911
911
|
});
|
|
912
912
|
}).then((re) => {
|
|
913
|
-
re && (a.value = !1, t.emit("update:modelValue", !1),
|
|
913
|
+
re && (a.value = !1, t.emit("update:modelValue", !1), Y != null && t.emit(Y ? "accept" : "cancel"), t.emit("closed", B));
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
|
-
const
|
|
916
|
+
const S = [{
|
|
917
917
|
name: "cancel",
|
|
918
918
|
text: P("messageBox.cancel") || "取消",
|
|
919
919
|
class: "btn btn-secondary",
|
|
920
920
|
handle: (B) => {
|
|
921
|
-
|
|
921
|
+
y(B, !1);
|
|
922
922
|
}
|
|
923
923
|
}, {
|
|
924
924
|
name: "accept",
|
|
925
925
|
text: P("messageBox.ok") || "确定",
|
|
926
926
|
class: "btn btn-primary",
|
|
927
927
|
handle: (B) => {
|
|
928
|
-
|
|
928
|
+
y(B, !0);
|
|
929
929
|
}
|
|
930
|
-
}],
|
|
931
|
-
renderResizeBar:
|
|
932
|
-
maximize:
|
|
933
|
-
restore:
|
|
930
|
+
}], T = b(e.buttons && e.buttons.length ? e.buttons : S), M = R(() => !!l.value), _ = R(() => !!x.value && !!T.value), g = b(), z = b(), j = b(!1), {
|
|
931
|
+
renderResizeBar: H,
|
|
932
|
+
maximize: W,
|
|
933
|
+
restore: J,
|
|
934
934
|
boundingElement: oe,
|
|
935
|
-
resizedEventParam:
|
|
935
|
+
resizedEventParam: D,
|
|
936
936
|
allowDrag: I,
|
|
937
|
-
unWindowResizeHandle:
|
|
938
|
-
moveToCenter:
|
|
937
|
+
unWindowResizeHandle: U,
|
|
938
|
+
moveToCenter: A
|
|
939
939
|
} = qo(e), {
|
|
940
940
|
registerDraggle: K
|
|
941
941
|
} = Go(e, t, I);
|
|
@@ -946,41 +946,41 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
946
946
|
const B = document.querySelectorAll(".farris-modal").length;
|
|
947
947
|
(!B || B - 1 <= 0) && document.body.classList.remove("modal-open"), L.value && L.value.classList.remove("show");
|
|
948
948
|
}
|
|
949
|
-
me(() => e.title, (B,
|
|
950
|
-
B !==
|
|
951
|
-
}), me(() => e.modelValue, (B,
|
|
952
|
-
B !==
|
|
953
|
-
z.value && !
|
|
954
|
-
}), B || (
|
|
955
|
-
}), me(() => e.showHeader, (B,
|
|
956
|
-
B !==
|
|
957
|
-
}), me(() => e.showButtons, (B,
|
|
958
|
-
B !==
|
|
959
|
-
}), me(() =>
|
|
960
|
-
const ie = B || {}, re =
|
|
949
|
+
me(() => e.title, (B, Y) => {
|
|
950
|
+
B !== Y && (k.value = B);
|
|
951
|
+
}), me(() => e.modelValue, (B, Y) => {
|
|
952
|
+
B !== Y && (a.value = B, a.value && e.draggable && Ke(() => {
|
|
953
|
+
z.value && !F.value && (F.value = z.value.parentElement, oe.value = F.value, K(g.value, z.value, oe.value), A());
|
|
954
|
+
}), B || (F.value && (F.value = null), ge())), a.value ? w.value = ve() : (j.value = !1, I.value = e.draggable);
|
|
955
|
+
}), me(() => e.showHeader, (B, Y) => {
|
|
956
|
+
B !== Y && (f.value = B);
|
|
957
|
+
}), me(() => e.showButtons, (B, Y) => {
|
|
958
|
+
B !== Y && (x.value = B);
|
|
959
|
+
}), me(() => D.value, (B, Y) => {
|
|
960
|
+
const ie = B || {}, re = Y || {};
|
|
961
961
|
JSON.stringify(ie) !== JSON.stringify(re) && t.emit("resize", {
|
|
962
962
|
newSize: B,
|
|
963
|
-
oldSize:
|
|
964
|
-
isMaximized:
|
|
963
|
+
oldSize: Y,
|
|
964
|
+
isMaximized: j.value
|
|
965
965
|
});
|
|
966
966
|
});
|
|
967
|
-
const
|
|
967
|
+
const X = R(() => (a.value && document.body.classList.add("modal-open"), a.value)), ne = R(() => {
|
|
968
968
|
var ie;
|
|
969
969
|
const B = {
|
|
970
970
|
modal: !0,
|
|
971
971
|
"farris-modal": !0,
|
|
972
972
|
fade: !0
|
|
973
973
|
};
|
|
974
|
-
B["f-modal-fitContent"] = !!s.value, B.show = !!
|
|
975
|
-
const
|
|
976
|
-
return
|
|
977
|
-
}), le =
|
|
974
|
+
B["f-modal-fitContent"] = !!s.value, B.show = !!X.value;
|
|
975
|
+
const Y = (ie = e.maskClass) == null ? void 0 : ie.split(" ");
|
|
976
|
+
return Y == null || Y.reduce((re, De) => (re[De] = !0, re), B), B;
|
|
977
|
+
}), le = R(() => {
|
|
978
978
|
var ie;
|
|
979
979
|
const B = {
|
|
980
980
|
"modal-dialog": !0
|
|
981
|
-
},
|
|
982
|
-
return
|
|
983
|
-
}), ee =
|
|
981
|
+
}, Y = (ie = r.value) == null ? void 0 : ie.split(" ");
|
|
982
|
+
return Y == null || Y.reduce((re, De) => (re[De] = !0, re), B), B;
|
|
983
|
+
}), ee = R(() => {
|
|
984
984
|
const B = {
|
|
985
985
|
position: "absolute",
|
|
986
986
|
top: `${(window.innerHeight - o.value) / 2}px`,
|
|
@@ -989,24 +989,24 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
989
989
|
height: s.value ? "auto" : `${o.value}px`
|
|
990
990
|
};
|
|
991
991
|
return e.mask || (B.pointerEvents = "auto"), B;
|
|
992
|
-
}), V =
|
|
992
|
+
}), V = R(() => {
|
|
993
993
|
const B = {
|
|
994
994
|
display: "block"
|
|
995
995
|
};
|
|
996
|
-
return e.mask || (B.pointerEvents = "none", B.backgroundColor = "transparent"),
|
|
997
|
-
}), te =
|
|
996
|
+
return e.mask || (B.pointerEvents = "none", B.backgroundColor = "transparent"), w.value && (B.backgroundColor = "transparent"), B;
|
|
997
|
+
}), te = R(() => ({
|
|
998
998
|
"modal-content": !0,
|
|
999
999
|
"modal-content-has-header": f.value
|
|
1000
|
-
})),
|
|
1000
|
+
})), $e = R(() => {
|
|
1001
1001
|
const B = {
|
|
1002
1002
|
display: f.value ? "" : "none"
|
|
1003
1003
|
};
|
|
1004
1004
|
return B["pointer-events"] = I.value ? "auto" : "none", B;
|
|
1005
|
-
}), Ee =
|
|
1005
|
+
}), Ee = R(() => ({
|
|
1006
1006
|
"f-icon": !0,
|
|
1007
1007
|
modal_maximize: !0,
|
|
1008
|
-
modalrevert:
|
|
1009
|
-
})), Te =
|
|
1008
|
+
modalrevert: j.value
|
|
1009
|
+
})), Te = R(() => ({
|
|
1010
1010
|
"modal-body": !0,
|
|
1011
1011
|
"f-utils-flex-column": c.value === "iframe",
|
|
1012
1012
|
"f-utils-fill": !0
|
|
@@ -1016,38 +1016,38 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
1016
1016
|
height: `${e.footerHeight || 60}px`
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
|
-
const
|
|
1019
|
+
const Le = R(() => {
|
|
1020
1020
|
const B = {
|
|
1021
1021
|
textAlgin: v.value
|
|
1022
|
-
},
|
|
1023
|
-
return Object.assign(B,
|
|
1022
|
+
}, Y = Je();
|
|
1023
|
+
return Object.assign(B, Y);
|
|
1024
1024
|
});
|
|
1025
1025
|
function ze(B) {
|
|
1026
|
-
if (B == null || B.stopPropagation(),
|
|
1027
|
-
|
|
1026
|
+
if (B == null || B.stopPropagation(), j.value) {
|
|
1027
|
+
j.value = !1, J();
|
|
1028
1028
|
return;
|
|
1029
1029
|
}
|
|
1030
|
-
|
|
1030
|
+
W(), j.value = !0;
|
|
1031
1031
|
}
|
|
1032
|
-
async function se(B,
|
|
1033
|
-
B.handle && await B.handle(
|
|
1032
|
+
async function se(B, Y) {
|
|
1033
|
+
B.handle && await B.handle(Y, B) && t.emit("closed", Y);
|
|
1034
1034
|
}
|
|
1035
1035
|
function tt(B) {
|
|
1036
|
-
B.width && (n.value = B.width), B.height && (o.value = B.height), B.buttons && (
|
|
1036
|
+
B.width && (n.value = B.width), B.height && (o.value = B.height), B.buttons && (T.value = B.buttons), B.title && (k.value = B.title);
|
|
1037
1037
|
}
|
|
1038
1038
|
let Se = null, Ie = null;
|
|
1039
1039
|
Bn(() => {
|
|
1040
|
-
|
|
1040
|
+
w.value = ve();
|
|
1041
1041
|
}), et(() => {
|
|
1042
|
-
z.value && !
|
|
1042
|
+
z.value && !F.value && (F.value = z.value.parentElement, oe.value = F.value, K(g.value, z.value, oe.value)), X.value && document.body.classList.add("modal-open"), Se = Uo(e, t), Ie = Xo(e, t);
|
|
1043
1043
|
}), st(() => {
|
|
1044
|
-
|
|
1044
|
+
U && U(), Se && Se.remove(), Ie && Ie.remove();
|
|
1045
1045
|
}), t.expose({
|
|
1046
1046
|
modalElementRef: z,
|
|
1047
1047
|
updateModalOptions: tt,
|
|
1048
|
-
close:
|
|
1048
|
+
close: y,
|
|
1049
1049
|
maxDialog: ze,
|
|
1050
|
-
isMaximized:
|
|
1050
|
+
isMaximized: j
|
|
1051
1051
|
});
|
|
1052
1052
|
function Oe() {
|
|
1053
1053
|
return C("ul", null, [p.value && C("li", {
|
|
@@ -1062,7 +1062,7 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
1062
1062
|
class: Ee.value
|
|
1063
1063
|
}, null)]), m.value && C("li", {
|
|
1064
1064
|
class: "f-btn-icon f-bare",
|
|
1065
|
-
onClick: (B) =>
|
|
1065
|
+
onClick: (B) => y(B, !1),
|
|
1066
1066
|
style: "pointer-events: auto;"
|
|
1067
1067
|
}, [C("span", {
|
|
1068
1068
|
class: "f-icon modal_close"
|
|
@@ -1071,13 +1071,13 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
1071
1071
|
function Re() {
|
|
1072
1072
|
return C("div", {
|
|
1073
1073
|
class: "modal-footer",
|
|
1074
|
-
style:
|
|
1075
|
-
}, [
|
|
1076
|
-
const
|
|
1074
|
+
style: Le.value
|
|
1075
|
+
}, [T.value && T.value.map((B) => {
|
|
1076
|
+
const Y = b(B.disabled);
|
|
1077
1077
|
return C("button", {
|
|
1078
1078
|
name: B.name,
|
|
1079
1079
|
type: "button",
|
|
1080
|
-
disabled:
|
|
1080
|
+
disabled: Y.value,
|
|
1081
1081
|
class: B.class + (B.iconClass ? " btn-icontext" : ""),
|
|
1082
1082
|
onClick: (ie) => {
|
|
1083
1083
|
se(B, ie);
|
|
@@ -1091,10 +1091,10 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
1091
1091
|
return C("div", {
|
|
1092
1092
|
ref: g,
|
|
1093
1093
|
class: "modal-header",
|
|
1094
|
-
style:
|
|
1094
|
+
style: $e.value
|
|
1095
1095
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : C("div", {
|
|
1096
1096
|
class: "modal-title"
|
|
1097
|
-
}, [
|
|
1097
|
+
}, [M.value && C("span", {
|
|
1098
1098
|
class: l.value,
|
|
1099
1099
|
style: "margin-right: 8px"
|
|
1100
1100
|
}, null), C("span", {
|
|
@@ -1110,11 +1110,11 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
1110
1110
|
if (B.stopPropagation(), e.allowClickMaskToClose) {
|
|
1111
1111
|
if (B.target !== L.value)
|
|
1112
1112
|
return;
|
|
1113
|
-
|
|
1113
|
+
y(B, !1);
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
1116
|
function Pe() {
|
|
1117
|
-
var B,
|
|
1117
|
+
var B, Y;
|
|
1118
1118
|
return C("div", {
|
|
1119
1119
|
id: i.value,
|
|
1120
1120
|
class: le.value,
|
|
@@ -1124,13 +1124,13 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
1124
1124
|
class: te.value
|
|
1125
1125
|
}, [f.value && nt(), C("div", {
|
|
1126
1126
|
class: Te.value
|
|
1127
|
-
}, [(
|
|
1127
|
+
}, [(Y = (B = t.slots).default) == null ? void 0 : Y.call(B), c.value === "iframe" && C("iframe", {
|
|
1128
1128
|
title: i.value,
|
|
1129
1129
|
class: "f-utils-fill",
|
|
1130
1130
|
width: "100%",
|
|
1131
1131
|
frameborder: "0",
|
|
1132
1132
|
src: u.value
|
|
1133
|
-
}, null)]), Ae()]), !s.value && z.value && !
|
|
1133
|
+
}, null)]), Ae()]), !s.value && z.value && !j.value && H(z.value)]);
|
|
1134
1134
|
}
|
|
1135
1135
|
function Qe(B) {
|
|
1136
1136
|
return B || "body";
|
|
@@ -1138,7 +1138,7 @@ const Ue = /* @__PURE__ */ Ye({
|
|
|
1138
1138
|
return () => C(Wt, {
|
|
1139
1139
|
to: Qe(e.host)
|
|
1140
1140
|
}, {
|
|
1141
|
-
default: () => [
|
|
1141
|
+
default: () => [X.value && C(qt, {
|
|
1142
1142
|
name: "fade",
|
|
1143
1143
|
appear: !0
|
|
1144
1144
|
}, {
|
|
@@ -1166,12 +1166,12 @@ function Yo(e) {
|
|
|
1166
1166
|
st(() => {
|
|
1167
1167
|
document.body.removeChild(t);
|
|
1168
1168
|
});
|
|
1169
|
-
const i =
|
|
1169
|
+
const i = b(), r = b(e.class || ""), s = b(!!e.showButtons), f = b(!!e.showHeader), l = b(e.showCloseButton == null ? !0 : e.showCloseButton), m = b(!0), d = b(e.title || ""), p = e.acceptCallback || (() => {
|
|
1170
1170
|
}), c = e.rejectCallback || (() => {
|
|
1171
1171
|
}), u = e.closedCallback || ((L) => {
|
|
1172
1172
|
}), v = e.resizeHandle || ((L) => {
|
|
1173
1173
|
}), x = e.stopMoveHandle || ((L) => {
|
|
1174
|
-
}), k = Qt(e),
|
|
1174
|
+
}), k = Qt(e), F = (L) => {
|
|
1175
1175
|
m.value = !1, n.unmount(), u(L);
|
|
1176
1176
|
};
|
|
1177
1177
|
return et(() => {
|
|
@@ -1193,7 +1193,7 @@ function Yo(e) {
|
|
|
1193
1193
|
onAccept: p,
|
|
1194
1194
|
onCancel: c,
|
|
1195
1195
|
fitContent: e.fitContent == null ? !0 : e.fitContent,
|
|
1196
|
-
onClosed:
|
|
1196
|
+
onClosed: F,
|
|
1197
1197
|
onResize: v,
|
|
1198
1198
|
onStopMove: x
|
|
1199
1199
|
}, {
|
|
@@ -1206,11 +1206,11 @@ function Yo(e) {
|
|
|
1206
1206
|
class Zt {
|
|
1207
1207
|
constructor(t) {
|
|
1208
1208
|
he(this, "appContext", null);
|
|
1209
|
-
he(this, "modalRef",
|
|
1210
|
-
he(this, "activeModalIndex",
|
|
1209
|
+
he(this, "modalRef", b());
|
|
1210
|
+
he(this, "activeModalIndex", b(0));
|
|
1211
1211
|
he(this, "modalRefs", {});
|
|
1212
|
-
he(this, "isUseEscCloseModal",
|
|
1213
|
-
he(this, "activeModalInstance",
|
|
1212
|
+
he(this, "isUseEscCloseModal", b(!1));
|
|
1213
|
+
he(this, "activeModalInstance", R(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1214
1214
|
this.app = t, this.appContext = t ? t._context : null;
|
|
1215
1215
|
}
|
|
1216
1216
|
getCurrentModal() {
|
|
@@ -1248,38 +1248,38 @@ class Zt {
|
|
|
1248
1248
|
title: "",
|
|
1249
1249
|
showButtons: !0,
|
|
1250
1250
|
showHeader: !0
|
|
1251
|
-
}, t)), a =
|
|
1251
|
+
}, t)), a = b(!0), i = o.value.acceptCallback || (() => {
|
|
1252
1252
|
}), r = o.value.rejectCallback || (() => {
|
|
1253
|
-
}), s = o.value.closedCallback || ((
|
|
1254
|
-
}), f = o.value.resizeHandle || ((
|
|
1255
|
-
}), l = t.stopMoveHandle || ((
|
|
1253
|
+
}), s = o.value.closedCallback || ((w, y) => {
|
|
1254
|
+
}), f = o.value.resizeHandle || ((w) => {
|
|
1255
|
+
}), l = t.stopMoveHandle || ((w) => {
|
|
1256
1256
|
});
|
|
1257
1257
|
let m;
|
|
1258
|
-
const d = Qt(o.value), p = (
|
|
1259
|
-
var
|
|
1258
|
+
const d = Qt(o.value), p = (w) => {
|
|
1259
|
+
var S;
|
|
1260
1260
|
a.value = !1;
|
|
1261
|
-
const
|
|
1262
|
-
s(
|
|
1263
|
-
}, c = (
|
|
1264
|
-
p(
|
|
1261
|
+
const y = (S = w == null ? void 0 : w.target) == null ? void 0 : S.classList.contains("modal_close");
|
|
1262
|
+
s(w, this.isUseEscCloseModal.value ? "esc" : y ? "icon" : "button");
|
|
1263
|
+
}, c = (w) => {
|
|
1264
|
+
p(w), m && Ke(() => {
|
|
1265
1265
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], It(null, n), m = null, this.modalRef.value = null, this.modalRefs) {
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1266
|
+
const y = Object.keys(this.modalRefs).map((S) => Number(S));
|
|
1267
|
+
y.length > 0 ? this.activeModalIndex.value = Math.max(...y) : this.activeModalIndex.value = 0;
|
|
1268
1268
|
}
|
|
1269
1269
|
this.isUseEscCloseModal.value = !1;
|
|
1270
1270
|
});
|
|
1271
|
-
}, u = (
|
|
1272
|
-
var
|
|
1273
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
1271
|
+
}, u = (w) => {
|
|
1272
|
+
var y;
|
|
1273
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((y = this.activeModalInstance.value) == null || y.close(w == null ? void 0 : w.event));
|
|
1274
1274
|
}, {
|
|
1275
1275
|
width: v,
|
|
1276
1276
|
height: x
|
|
1277
1277
|
} = o.value, k = this.adaptToWindow(v || 500, x || 320);
|
|
1278
1278
|
Object.assign(o.value, k);
|
|
1279
|
-
const
|
|
1279
|
+
const F = () => C(Ue, vt({
|
|
1280
1280
|
ref: this.modalRef,
|
|
1281
1281
|
modelValue: a.value,
|
|
1282
|
-
"onUpdate:modelValue": (
|
|
1282
|
+
"onUpdate:modelValue": (w) => a.value = w
|
|
1283
1283
|
}, o.value, {
|
|
1284
1284
|
onAccept: i,
|
|
1285
1285
|
onCancel: r,
|
|
@@ -1290,17 +1290,17 @@ class Zt {
|
|
|
1290
1290
|
}), {
|
|
1291
1291
|
default: () => [d && d(this.app)]
|
|
1292
1292
|
});
|
|
1293
|
-
return m = ((
|
|
1294
|
-
const
|
|
1295
|
-
return
|
|
1293
|
+
return m = ((w) => {
|
|
1294
|
+
const y = Fn(F, w);
|
|
1295
|
+
return y.appContext = this.appContext, It(y, n), y;
|
|
1296
1296
|
})({
|
|
1297
1297
|
...o.value
|
|
1298
1298
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
1299
1299
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
1300
|
-
update: (
|
|
1300
|
+
update: (w) => {
|
|
1301
1301
|
o.value = {
|
|
1302
1302
|
...o.value,
|
|
1303
|
-
...
|
|
1303
|
+
...w
|
|
1304
1304
|
}, m && It(Mn(m, {
|
|
1305
1305
|
...o
|
|
1306
1306
|
}), n);
|
|
@@ -1377,7 +1377,7 @@ const Qo = {
|
|
|
1377
1377
|
e.editor && (e.editor[t] = n);
|
|
1378
1378
|
},
|
|
1379
1379
|
convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t]
|
|
1380
|
-
},
|
|
1380
|
+
}, O = {
|
|
1381
1381
|
button: { type: "button", name: "按钮" },
|
|
1382
1382
|
"response-toolbar": { type: "response-toolbar", name: "工具栏" },
|
|
1383
1383
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮" },
|
|
@@ -1428,7 +1428,7 @@ const Qo = {
|
|
|
1428
1428
|
convertFrom: (e, t, n) => {
|
|
1429
1429
|
var a;
|
|
1430
1430
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
1431
|
-
return ((a =
|
|
1431
|
+
return ((a = O[o]) == null ? void 0 : a.name) || o;
|
|
1432
1432
|
}
|
|
1433
1433
|
}, ta = {
|
|
1434
1434
|
convertTo: (e, t, n, o) => {
|
|
@@ -1664,62 +1664,62 @@ function Kt(e, t, n) {
|
|
|
1664
1664
|
const x = u.$converter || v;
|
|
1665
1665
|
return typeof x == "string" && x && o.has(x) ? o.get(x) || null : x || null;
|
|
1666
1666
|
}
|
|
1667
|
-
function m(u, v, x, k,
|
|
1668
|
-
return Object.keys(u).map((
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1671
|
-
const oe =
|
|
1672
|
-
let I = l(
|
|
1673
|
-
const
|
|
1667
|
+
function m(u, v, x, k, F, L = "", P = "") {
|
|
1668
|
+
return Object.keys(u).map((y) => {
|
|
1669
|
+
const S = b(1), T = y, M = u[y], _ = Object.keys(M), g = M.title, z = M.type, j = a.get(z) || { type: "input-group", enableClear: !1 }, H = M.editor ? Object.assign({}, j, M.editor) : Object.assign({}, j), W = s(_, M, v), J = f(_, M, v);
|
|
1670
|
+
H.readonly = H.readonly === void 0 ? J() : H.readonly;
|
|
1671
|
+
const oe = M.type === "cascade" ? m(M.properties, v, x, k, F, L, P) : [], D = !0;
|
|
1672
|
+
let I = l(M, P);
|
|
1673
|
+
const U = R({
|
|
1674
1674
|
get() {
|
|
1675
|
-
if (
|
|
1676
|
-
if (["class", "style"].find((le) => le ===
|
|
1677
|
-
return I.convertFrom(x,
|
|
1678
|
-
const ne = x[
|
|
1679
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1675
|
+
if (S.value) {
|
|
1676
|
+
if (["class", "style"].find((le) => le === T) && !I && (I = o.get("/converter/appearance.converter") || null), I && I.convertFrom)
|
|
1677
|
+
return I.convertFrom(x, y, F, L);
|
|
1678
|
+
const ne = x[y];
|
|
1679
|
+
return Object.prototype.hasOwnProperty.call(M, "defaultValue") && (ne === void 0 || typeof ne == "string" && ne === "") ? M.type === "boolean" ? M.defaultValue : M.defaultValue || "" : ne;
|
|
1680
1680
|
}
|
|
1681
1681
|
return null;
|
|
1682
1682
|
},
|
|
1683
1683
|
set(ne) {
|
|
1684
|
-
|
|
1684
|
+
S.value += 1, I && I.convertTo ? (I.convertTo(k, y, ne, F, L), I.convertTo(x, y, ne, F, L)) : (k[y] = ne, x[y] = ne);
|
|
1685
1685
|
}
|
|
1686
|
-
}), { refreshPanelAfterChanged:
|
|
1687
|
-
return v[
|
|
1686
|
+
}), { refreshPanelAfterChanged: A, description: K, isExpand: ve, parentPropertyID: ge } = M, X = { propertyID: T, propertyName: g, propertyType: z, propertyValue: U, editor: H, visible: W, readonly: J, cascadeConfig: oe, hideCascadeTitle: D, refreshPanelAfterChanged: A, description: K, isExpand: ve, parentPropertyID: ge };
|
|
1687
|
+
return v[T] = X, X;
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
1690
1690
|
function d(u, v, x = {}) {
|
|
1691
|
-
const k = {},
|
|
1692
|
-
return
|
|
1693
|
-
const
|
|
1694
|
-
return { categoryId: P, categoryName:
|
|
1691
|
+
const k = {}, F = e[u];
|
|
1692
|
+
return F && F.categories ? Object.keys(F.categories).map((P) => {
|
|
1693
|
+
const w = F.categories[P], y = w == null ? void 0 : w.title, S = m(w.properties || {}, k, {}, x, v);
|
|
1694
|
+
return { categoryId: P, categoryName: y, properties: S };
|
|
1695
1695
|
}) : [];
|
|
1696
1696
|
}
|
|
1697
|
-
function p(u, v, x, k,
|
|
1698
|
-
const L = v.$ref.schema, P = v.$ref.converter,
|
|
1699
|
-
if (
|
|
1700
|
-
const _ =
|
|
1701
|
-
P && Object.keys(_.properties).forEach((
|
|
1702
|
-
_.properties[
|
|
1697
|
+
function p(u, v, x, k, F = "") {
|
|
1698
|
+
const L = v.$ref.schema, P = v.$ref.converter, w = x[L], y = w.type, S = n(w), T = {}, M = e[y];
|
|
1699
|
+
if (M && M.categories) {
|
|
1700
|
+
const _ = M.categories[u], g = _ == null ? void 0 : _.title;
|
|
1701
|
+
P && Object.keys(_.properties).forEach((H) => {
|
|
1702
|
+
_.properties[H].$converter = P;
|
|
1703
1703
|
});
|
|
1704
|
-
const z = (_ == null ? void 0 : _.properties) || {},
|
|
1705
|
-
return { categoryId: u, categoryName: g, properties:
|
|
1704
|
+
const z = (_ == null ? void 0 : _.properties) || {}, j = m(z, T, S, w, k, F);
|
|
1705
|
+
return { categoryId: u, categoryName: g, properties: j };
|
|
1706
1706
|
}
|
|
1707
1707
|
return { categoryId: u, categoryName: "", properties: [] };
|
|
1708
1708
|
}
|
|
1709
|
-
function c(u, v, x, k,
|
|
1710
|
-
const L = u.type, P = n(u),
|
|
1711
|
-
let
|
|
1712
|
-
if (
|
|
1713
|
-
const
|
|
1714
|
-
return Object.keys(
|
|
1715
|
-
const
|
|
1716
|
-
if (
|
|
1717
|
-
|
|
1709
|
+
function c(u, v, x, k, F) {
|
|
1710
|
+
const L = u.type, P = n(u), w = {};
|
|
1711
|
+
let y = F || e[L];
|
|
1712
|
+
if (y && Object.keys(y).length === 0 && x && x.getPropConfig && (y = x.getPropConfig(k)), y && y.categories) {
|
|
1713
|
+
const S = [];
|
|
1714
|
+
return Object.keys(y.categories).map((T) => {
|
|
1715
|
+
const M = y.categories[T];
|
|
1716
|
+
if (M.$ref) {
|
|
1717
|
+
S.push(p(T, M, u, v, k));
|
|
1718
1718
|
return;
|
|
1719
1719
|
}
|
|
1720
|
-
const _ =
|
|
1721
|
-
|
|
1722
|
-
}),
|
|
1720
|
+
const _ = M == null ? void 0 : M.title, g = M == null ? void 0 : M.tabId, z = M == null ? void 0 : M.tabName, j = M == null ? void 0 : M.hide, H = M == null ? void 0 : M.hideTitle, W = m(M.properties || {}, w, P, u, v, k, M.$converter), { setPropertyRelates: J } = M, oe = M == null ? void 0 : M.parentPropertyID;
|
|
1721
|
+
S.push({ categoryId: T, categoryName: _, tabId: g, tabName: z, hide: j, properties: W, hideTitle: H, setPropertyRelates: J, parentPropertyID: oe });
|
|
1722
|
+
}), S;
|
|
1723
1723
|
}
|
|
1724
1724
|
return [];
|
|
1725
1725
|
}
|
|
@@ -1732,7 +1732,7 @@ function Kt(e, t, n) {
|
|
|
1732
1732
|
function en(e, t) {
|
|
1733
1733
|
let n;
|
|
1734
1734
|
function o(d) {
|
|
1735
|
-
const { properties: p, title: c, ignore: u } = d, v = u && Array.isArray(u), x = Object.keys(p).reduce((k,
|
|
1735
|
+
const { properties: p, title: c, ignore: u } = d, v = u && Array.isArray(u), x = Object.keys(p).reduce((k, F) => ((!v || !u.find((L) => L === F)) && (k[F] = p[F].type === "object" && p[F].properties ? o(p[F]) : Ot(p[F].default)), k), {});
|
|
1736
1736
|
if (c && (!v || !u.find((k) => k === "id"))) {
|
|
1737
1737
|
const k = c.toLowerCase().replace(/-/g, "_");
|
|
1738
1738
|
x.id = `${k}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -1794,8 +1794,8 @@ function en(e, t) {
|
|
|
1794
1794
|
return d;
|
|
1795
1795
|
const v = r(d, u), x = ((c = d.editor) == null ? void 0 : c.type) || "";
|
|
1796
1796
|
if (x) {
|
|
1797
|
-
const k = e[x],
|
|
1798
|
-
v.editor =
|
|
1797
|
+
const k = e[x], F = r(d.editor, k);
|
|
1798
|
+
v.editor = F;
|
|
1799
1799
|
}
|
|
1800
1800
|
return v;
|
|
1801
1801
|
}
|
|
@@ -1934,18 +1934,18 @@ yt(
|
|
|
1934
1934
|
Nt,
|
|
1935
1935
|
void 0
|
|
1936
1936
|
);
|
|
1937
|
-
|
|
1938
|
-
|
|
1937
|
+
b(0);
|
|
1938
|
+
b(0);
|
|
1939
1939
|
const Ze = class Ze {
|
|
1940
1940
|
/**
|
|
1941
1941
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1942
1942
|
*/
|
|
1943
1943
|
static getEditorTypesByMDataType(t, n = !1, o = "") {
|
|
1944
1944
|
if (n)
|
|
1945
|
-
return [{ key:
|
|
1945
|
+
return [{ key: O["language-textbox"].type, value: O["language-textbox"].name }];
|
|
1946
1946
|
let a = Ze.fieldControlTypeMapping[t];
|
|
1947
1947
|
if (o === "data-grid-column" && (a != null && a.length)) {
|
|
1948
|
-
const i = [
|
|
1948
|
+
const i = [O["check-group"].type, O["radio-group"].type];
|
|
1949
1949
|
a = a.filter((r) => !i.includes(r.key));
|
|
1950
1950
|
}
|
|
1951
1951
|
return a;
|
|
@@ -1968,7 +1968,7 @@ const Ze = class Ze {
|
|
|
1968
1968
|
static mappingDomPropAndSchemaProp(t, n) {
|
|
1969
1969
|
var i;
|
|
1970
1970
|
const o = (i = t.editor) == null ? void 0 : i.type, a = [];
|
|
1971
|
-
return (t.type ===
|
|
1971
|
+
return (t.type === O["data-grid-column"].type || t.type === O["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 === O["input-group"].type || o === O.textarea.type || o === O["number-spinner"].type) && a.push({ domField: "editor.maxLength", schemaField: "type.length" }), o === O["number-spinner"].type && a.push({ domField: "editor.precision", schemaField: "type.precision" }), (t.type === O["data-grid-column"].type || t.type === O["tree-grid-column"].type) && a.push({ domField: "formatter.precision", schemaField: "type.precision" }), (o === O["combo-list"].type || o === O["radio-group"].type) && a.push({ domField: "editor.data", schemaField: "type.enumValues" }), (t.type === O["data-grid-column"].type || t.type === O["tree-grid-column"].type) && a.push({ domField: "formatter.data", schemaField: "type.enumValues" }), o === O["date-picker"].type && (a.push({ domField: "editor.displayFormat", schemaField: "editor.format" }), a.push({ domField: "editor.fieldType", schemaField: "type.name" })), o === O["number-spinner"].type && (a.push({ domField: "editor.max", schemaField: "editor.maxValue" }), a.push({ domField: "editor.min", schemaField: "editor.minValue" })), o === O.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 === O["data-grid-column"].type || t.type === O["tree-grid-column"].type) && a.push({ domField: "field", schemaField: "bindingPath" }), a;
|
|
1972
1972
|
}
|
|
1973
1973
|
};
|
|
1974
1974
|
/**
|
|
@@ -1976,53 +1976,53 @@ const Ze = class Ze {
|
|
|
1976
1976
|
*/
|
|
1977
1977
|
he(Ze, "fieldControlTypeMapping", {
|
|
1978
1978
|
String: [
|
|
1979
|
-
{ key:
|
|
1980
|
-
{ key:
|
|
1981
|
-
{ key:
|
|
1982
|
-
{ key:
|
|
1983
|
-
{ key:
|
|
1984
|
-
{ key:
|
|
1985
|
-
{ key:
|
|
1986
|
-
{ key:
|
|
1987
|
-
{ key:
|
|
1988
|
-
{ key:
|
|
1979
|
+
{ key: O["input-group"].type, value: O["input-group"].name },
|
|
1980
|
+
{ key: O.lookup.type, value: O.lookup.name },
|
|
1981
|
+
{ key: O["date-picker"].type, value: O["date-picker"].name },
|
|
1982
|
+
{ key: O.switch.type, value: O.switch.name },
|
|
1983
|
+
{ key: O["check-box"].type, value: O["check-box"].name },
|
|
1984
|
+
{ key: O["check-group"].type, value: O["check-group"].name },
|
|
1985
|
+
{ key: O["radio-group"].type, value: O["radio-group"].name },
|
|
1986
|
+
{ key: O["combo-list"].type, value: O["combo-list"].name },
|
|
1987
|
+
{ key: O.textarea.type, value: O.textarea.name },
|
|
1988
|
+
{ key: O["time-picker"].type, value: O["time-picker"].name }
|
|
1989
1989
|
],
|
|
1990
1990
|
Text: [
|
|
1991
|
-
{ key:
|
|
1992
|
-
{ key:
|
|
1991
|
+
{ key: O.textarea.type, value: O.textarea.name },
|
|
1992
|
+
{ key: O.lookup.type, value: O.lookup.name }
|
|
1993
1993
|
],
|
|
1994
1994
|
Decimal: [
|
|
1995
|
-
{ key:
|
|
1995
|
+
{ key: O["number-spinner"].type, value: O["number-spinner"].name }
|
|
1996
1996
|
],
|
|
1997
1997
|
Integer: [
|
|
1998
|
-
{ key:
|
|
1998
|
+
{ key: O["number-spinner"].type, value: O["number-spinner"].name }
|
|
1999
1999
|
],
|
|
2000
2000
|
Number: [
|
|
2001
|
-
{ key:
|
|
2002
|
-
{ key:
|
|
2003
|
-
{ key:
|
|
2001
|
+
{ key: O["number-spinner"].type, value: O["number-spinner"].name },
|
|
2002
|
+
{ key: O.switch.type, value: O.switch.name },
|
|
2003
|
+
{ key: O["check-box"].type, value: O["check-box"].name }
|
|
2004
2004
|
],
|
|
2005
2005
|
BigNumber: [
|
|
2006
|
-
{ key:
|
|
2006
|
+
{ key: O["number-spinner"].type, value: O["number-spinner"].name }
|
|
2007
2007
|
],
|
|
2008
2008
|
Date: [
|
|
2009
|
-
{ key:
|
|
2009
|
+
{ key: O["date-picker"].type, value: O["date-picker"].name }
|
|
2010
2010
|
],
|
|
2011
2011
|
DateTime: [
|
|
2012
|
-
{ key:
|
|
2012
|
+
{ key: O["date-picker"].type, value: O["date-picker"].name }
|
|
2013
2013
|
],
|
|
2014
2014
|
Boolean: [
|
|
2015
|
-
{ key:
|
|
2016
|
-
{ key:
|
|
2015
|
+
{ key: O.switch.type, value: O.switch.name },
|
|
2016
|
+
{ key: O["check-box"].type, value: O["check-box"].name }
|
|
2017
2017
|
],
|
|
2018
2018
|
Enum: [
|
|
2019
|
-
{ key:
|
|
2020
|
-
{ key:
|
|
2019
|
+
{ key: O["combo-list"].type, value: O["combo-list"].name },
|
|
2020
|
+
{ key: O["radio-group"].type, value: O["radio-group"].name }
|
|
2021
2021
|
],
|
|
2022
2022
|
Object: [
|
|
2023
|
-
{ key:
|
|
2024
|
-
{ key:
|
|
2025
|
-
{ key:
|
|
2023
|
+
{ key: O.lookup.type, value: O.lookup.name },
|
|
2024
|
+
{ key: O["combo-list"].type, value: O["combo-list"].name },
|
|
2025
|
+
{ key: O["radio-group"].type, value: O["radio-group"].name }
|
|
2026
2026
|
]
|
|
2027
2027
|
});
|
|
2028
2028
|
let _t = Ze;
|
|
@@ -2081,172 +2081,172 @@ var Oa = { exports: {} };
|
|
|
2081
2081
|
(function(i) {
|
|
2082
2082
|
var r = n("contra/emitter"), s = n("crossvent"), f = n("./classes"), l = document, m = l.documentElement;
|
|
2083
2083
|
function d(g, z) {
|
|
2084
|
-
var
|
|
2085
|
-
|
|
2086
|
-
var
|
|
2087
|
-
V.moves === void 0 && (V.moves =
|
|
2084
|
+
var j = arguments.length;
|
|
2085
|
+
j === 1 && Array.isArray(g) === !1 && (z = g, g = []);
|
|
2086
|
+
var H, W, J, oe, D, I, U, A, K, ve = null, ge, X, ne = !1, le = 0, ee, V = z || {};
|
|
2087
|
+
V.moves === void 0 && (V.moves = F), V.accepts === void 0 && (V.accepts = F), V.invalid === void 0 && (V.invalid = nt), 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);
|
|
2088
2088
|
var te = r({
|
|
2089
2089
|
containers: V.containers,
|
|
2090
2090
|
start: Oe,
|
|
2091
2091
|
end: Ae,
|
|
2092
|
-
cancel:
|
|
2092
|
+
cancel: Y,
|
|
2093
2093
|
remove: B,
|
|
2094
|
-
destroy:
|
|
2094
|
+
destroy: Le,
|
|
2095
2095
|
canMove: Ie,
|
|
2096
2096
|
dragging: !1
|
|
2097
2097
|
});
|
|
2098
2098
|
return V.removeOnSpill === !0 && te.on("over", bt).on("out", Ct), Ee(), te;
|
|
2099
|
-
function
|
|
2100
|
-
return te.containers.indexOf(
|
|
2099
|
+
function $e(h) {
|
|
2100
|
+
return te.containers.indexOf(h) !== -1 || V.isContainer(h);
|
|
2101
2101
|
}
|
|
2102
|
-
function Ee(
|
|
2103
|
-
var E =
|
|
2102
|
+
function Ee(h) {
|
|
2103
|
+
var E = h ? "remove" : "add";
|
|
2104
2104
|
u(m, E, "mousedown", se), u(m, E, "mouseup", Pe);
|
|
2105
2105
|
}
|
|
2106
|
-
function Te(
|
|
2107
|
-
var E =
|
|
2106
|
+
function Te(h) {
|
|
2107
|
+
var E = h ? "remove" : "add";
|
|
2108
2108
|
u(m, E, "mousemove", tt);
|
|
2109
2109
|
}
|
|
2110
|
-
function Je(
|
|
2111
|
-
var E =
|
|
2110
|
+
function Je(h) {
|
|
2111
|
+
var E = h ? "remove" : "add";
|
|
2112
2112
|
s[E](m, "selectstart", ze), s[E](m, "click", ze);
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Le() {
|
|
2115
2115
|
Ee(!0), Pe({});
|
|
2116
2116
|
}
|
|
2117
|
-
function ze(
|
|
2118
|
-
ge &&
|
|
2117
|
+
function ze(h) {
|
|
2118
|
+
ge && h.preventDefault();
|
|
2119
2119
|
}
|
|
2120
|
-
function se(
|
|
2121
|
-
oe =
|
|
2122
|
-
var E = v(
|
|
2120
|
+
function se(h) {
|
|
2121
|
+
oe = h.clientX, D = h.clientY;
|
|
2122
|
+
var E = v(h) !== 1 || h.metaKey || h.ctrlKey;
|
|
2123
2123
|
if (!E) {
|
|
2124
|
-
var
|
|
2125
|
-
q && (ge = q, Te(),
|
|
2124
|
+
var N = h.target, q = Se(N);
|
|
2125
|
+
q && (ge = q, Te(), h.type === "mousedown" && (y(N) ? N.focus() : h.preventDefault()));
|
|
2126
2126
|
}
|
|
2127
2127
|
}
|
|
2128
|
-
function tt(
|
|
2128
|
+
function tt(h) {
|
|
2129
2129
|
if (ge) {
|
|
2130
|
-
if (v(
|
|
2130
|
+
if (v(h) === 0) {
|
|
2131
2131
|
Pe({});
|
|
2132
2132
|
return;
|
|
2133
2133
|
}
|
|
2134
|
-
if (!(
|
|
2134
|
+
if (!(h.clientX !== void 0 && Math.abs(h.clientX - oe) <= (V.slideFactorX || 0) && h.clientY !== void 0 && Math.abs(h.clientY - D) <= (V.slideFactorY || 0))) {
|
|
2135
2135
|
if (V.ignoreInputTextSelection) {
|
|
2136
|
-
var E = _("clientX",
|
|
2137
|
-
if (
|
|
2136
|
+
var E = _("clientX", h) || 0, N = _("clientY", h) || 0, q = l.elementFromPoint(E, N);
|
|
2137
|
+
if (y(q))
|
|
2138
2138
|
return;
|
|
2139
2139
|
}
|
|
2140
2140
|
var Q = ge;
|
|
2141
|
-
Te(!0), Je(), Ae(), Re(Q), f.add(
|
|
2141
|
+
Te(!0), Je(), Ae(), Re(Q), f.add(A || J, "gu-transit"), xt(), wt(), le = 0, ot(h);
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
function Se(
|
|
2146
|
-
if (!(te.dragging &&
|
|
2147
|
-
for (var E =
|
|
2148
|
-
if (V.invalid(
|
|
2145
|
+
function Se(h) {
|
|
2146
|
+
if (!(te.dragging && H) && !$e(h)) {
|
|
2147
|
+
for (var E = h; w(h) && $e(w(h)) === !1; )
|
|
2148
|
+
if (V.invalid(h, E) || (h = w(h), !h))
|
|
2149
2149
|
return;
|
|
2150
|
-
var
|
|
2151
|
-
if (
|
|
2152
|
-
var q = V.moves(
|
|
2150
|
+
var N = w(h);
|
|
2151
|
+
if (N && !V.invalid(h, E)) {
|
|
2152
|
+
var q = V.moves(h, N, E, T(h));
|
|
2153
2153
|
if (q)
|
|
2154
2154
|
return {
|
|
2155
|
-
item:
|
|
2156
|
-
source:
|
|
2155
|
+
item: h,
|
|
2156
|
+
source: N
|
|
2157
2157
|
};
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
|
-
function Ie(
|
|
2162
|
-
return !!Se(
|
|
2161
|
+
function Ie(h) {
|
|
2162
|
+
return !!Se(h);
|
|
2163
2163
|
}
|
|
2164
|
-
function Oe(
|
|
2165
|
-
var E = Se(
|
|
2164
|
+
function Oe(h) {
|
|
2165
|
+
var E = Se(h);
|
|
2166
2166
|
E && Re(E);
|
|
2167
2167
|
}
|
|
2168
|
-
function Re(
|
|
2169
|
-
Et(
|
|
2168
|
+
function Re(h) {
|
|
2169
|
+
Et(h.item, h.source) && (A = h.item.cloneNode(!0), te.emit("cloned", A, h.item, "copy")), W = h.source, J = h.item, I = U = T(h.item), te.dragging = !0, te.emit("drag", J, W);
|
|
2170
2170
|
}
|
|
2171
2171
|
function nt() {
|
|
2172
2172
|
return !1;
|
|
2173
2173
|
}
|
|
2174
2174
|
function Ae() {
|
|
2175
2175
|
if (te.dragging) {
|
|
2176
|
-
var
|
|
2177
|
-
Qe(
|
|
2176
|
+
var h = A || J;
|
|
2177
|
+
Qe(h, w(h));
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
function Me() {
|
|
2181
2181
|
ge = !1, Te(!0), Je(!0);
|
|
2182
2182
|
}
|
|
2183
|
-
function Pe(
|
|
2183
|
+
function Pe(h) {
|
|
2184
2184
|
if (Me(), !!te.dragging) {
|
|
2185
|
-
var E =
|
|
2186
|
-
Z && (
|
|
2185
|
+
var E = A || J, N = _("clientX", h) || 0, q = _("clientY", h) || 0, Q = x(H, N, q), Z = De(Q, N, q);
|
|
2186
|
+
Z && (A && V.copySortSource || !A || Z !== W) ? Qe(E, Z) : V.removeOnSpill ? B() : Y();
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
2189
|
-
function Qe(
|
|
2190
|
-
var
|
|
2191
|
-
|
|
2189
|
+
function Qe(h, E) {
|
|
2190
|
+
var N = w(h);
|
|
2191
|
+
A && V.copySortSource && E === W && N.removeChild(J), re(E) ? te.emit("cancel", h, W) : te.emit("drop", h, E, W, U), ie();
|
|
2192
2192
|
}
|
|
2193
2193
|
function B() {
|
|
2194
2194
|
if (te.dragging) {
|
|
2195
|
-
var
|
|
2196
|
-
E && E.removeChild(
|
|
2195
|
+
var h = A || J, E = w(h);
|
|
2196
|
+
E && E.removeChild(h), te.emit(A ? "cancel" : "remove", h, E, W), ie();
|
|
2197
2197
|
}
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function Y(h) {
|
|
2200
2200
|
if (te.dragging) {
|
|
2201
|
-
var E = arguments.length > 0 ?
|
|
2202
|
-
Q === !1 && E && (
|
|
2201
|
+
var E = arguments.length > 0 ? h : V.revertOnSpill, N = A || J, q = w(N), Q = re(q);
|
|
2202
|
+
Q === !1 && E && (A ? q && q.removeChild(A) : W.insertBefore(N, I)), Q || E ? te.emit("cancel", N, W, W) : te.emit("drop", N, q, W, U), ie();
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
2205
|
function ie() {
|
|
2206
|
-
var
|
|
2207
|
-
Me(), Tt(), St(),
|
|
2206
|
+
var h = A || J;
|
|
2207
|
+
Me(), Tt(), St(), h && f.rm(h, "gu-transit"), K && clearTimeout(K), te.dragging = !1, ve && te.emit("out", h, ve, W), te.emit("dragend", h, le), W = J = A = I = U = K = ve = null;
|
|
2208
2208
|
}
|
|
2209
|
-
function re(
|
|
2210
|
-
var
|
|
2211
|
-
return E !== void 0 ?
|
|
2209
|
+
function re(h, E) {
|
|
2210
|
+
var N;
|
|
2211
|
+
return E !== void 0 ? N = E : H ? N = U : N = T(A || J), h === W && N === I;
|
|
2212
2212
|
}
|
|
2213
|
-
function De(
|
|
2214
|
-
for (var q =
|
|
2215
|
-
q =
|
|
2213
|
+
function De(h, E, N) {
|
|
2214
|
+
for (var q = h; q && !Q(); )
|
|
2215
|
+
q = w(q);
|
|
2216
2216
|
return q;
|
|
2217
2217
|
function Q() {
|
|
2218
|
-
var Z =
|
|
2218
|
+
var Z = $e(q);
|
|
2219
2219
|
if (Z === !1)
|
|
2220
2220
|
return !1;
|
|
2221
|
-
var xe = ut(q,
|
|
2222
|
-
return be ? !0 : V.accepts(
|
|
2221
|
+
var xe = ut(q, h), ye = ct(q, xe, E, N), be = re(q, ye);
|
|
2222
|
+
return be ? !0 : V.accepts(J, q, W, ye);
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
function ot(
|
|
2226
|
-
if (!
|
|
2225
|
+
function ot(h) {
|
|
2226
|
+
if (!H)
|
|
2227
2227
|
return;
|
|
2228
|
-
|
|
2229
|
-
var E = _("clientX",
|
|
2230
|
-
|
|
2231
|
-
var q =
|
|
2232
|
-
(xe || Z === null) && (Ce(), ve = Z, ke()), Mt(Q,
|
|
2233
|
-
var ye =
|
|
2234
|
-
if (Z ===
|
|
2228
|
+
h.preventDefault();
|
|
2229
|
+
var E = _("clientX", h) || 0, N = _("clientY", h) || 0;
|
|
2230
|
+
H.style.left = E - 2 + "px", H.style.top = N - 2 + "px";
|
|
2231
|
+
var q = A || J, Q = x(H, E, N), Z = De(Q, E, N), xe = Z !== null && Z !== ve;
|
|
2232
|
+
(xe || Z === null) && (Ce(), ve = Z, ke()), Mt(Q, N);
|
|
2233
|
+
var ye = w(q);
|
|
2234
|
+
if (Z === W && A && !V.copySortSource) {
|
|
2235
2235
|
ye && ye.removeChild(q);
|
|
2236
2236
|
return;
|
|
2237
2237
|
}
|
|
2238
2238
|
var be, Be = ut(Z, Q);
|
|
2239
2239
|
if (ne = at(Be, Z), Be !== null)
|
|
2240
|
-
be = ct(Z, Be, E,
|
|
2241
|
-
else if (V.revertOnSpill === !0 &&
|
|
2242
|
-
be = I, Z =
|
|
2240
|
+
be = ct(Z, Be, E, N);
|
|
2241
|
+
else if (V.revertOnSpill === !0 && !A)
|
|
2242
|
+
be = I, Z = W;
|
|
2243
2243
|
else {
|
|
2244
|
-
|
|
2244
|
+
A && ye && ye.removeChild(q), A && X && (X.style.display = "none");
|
|
2245
2245
|
return;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
X.style.display = "block", ht(be, q, xe), be ? kt(Be, be) : Ft(Z);
|
|
2248
2248
|
function ue(fe) {
|
|
2249
|
-
te.emit(fe, q, ve,
|
|
2249
|
+
te.emit(fe, q, ve, W);
|
|
2250
2250
|
}
|
|
2251
2251
|
function ke() {
|
|
2252
2252
|
xe && ue("over");
|
|
@@ -2255,43 +2255,43 @@ var Oa = { exports: {} };
|
|
|
2255
2255
|
ve && ue("out");
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
|
-
function ht(
|
|
2259
|
-
(
|
|
2258
|
+
function ht(h, E, N) {
|
|
2259
|
+
(h === E || h === T(E)) && (U = T(E)), (h === null && N || h !== E && h !== T(E)) && (U = h);
|
|
2260
2260
|
}
|
|
2261
|
-
function bt(
|
|
2262
|
-
f.rm(
|
|
2261
|
+
function bt(h) {
|
|
2262
|
+
f.rm(h, "gu-hide");
|
|
2263
2263
|
}
|
|
2264
|
-
function Ct(
|
|
2265
|
-
te.dragging && f.add(
|
|
2264
|
+
function Ct(h) {
|
|
2265
|
+
te.dragging && f.add(h, "gu-hide");
|
|
2266
2266
|
}
|
|
2267
2267
|
function wt() {
|
|
2268
|
-
|
|
2268
|
+
H || (H = document.createElement("div"), H.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;", H.innerHTML = V.getMirrorText && V.getMirrorText(J) || "控件", f.add(H, "gu-mirror"), V.mirrorContainer.appendChild(H), u(m, "add", "mousemove", ot), f.add(V.mirrorContainer, "gu-unselectable"), te.emit("cloned", H, J, "mirror"));
|
|
2269
2269
|
}
|
|
2270
2270
|
function xt() {
|
|
2271
|
-
if (
|
|
2272
|
-
var
|
|
2273
|
-
|
|
2271
|
+
if (X = document.createElement("div"), f.add(X, "gu-insertion"), J) {
|
|
2272
|
+
var h = J.getBoundingClientRect();
|
|
2273
|
+
X.style.left = h.left + "px", X.style.top = h.top + "px";
|
|
2274
2274
|
}
|
|
2275
|
-
ne = !1, V.mirrorContainer.appendChild(
|
|
2275
|
+
ne = !1, V.mirrorContainer.appendChild(X);
|
|
2276
2276
|
}
|
|
2277
2277
|
function Tt() {
|
|
2278
|
-
|
|
2278
|
+
H && (f.rm(V.mirrorContainer, "gu-unselectable"), u(m, "remove", "mousemove", ot), w(H).removeChild(H), H = null);
|
|
2279
2279
|
}
|
|
2280
2280
|
function St() {
|
|
2281
|
-
|
|
2281
|
+
X && (w(X).removeChild(X), X = null);
|
|
2282
2282
|
}
|
|
2283
|
-
function ut(
|
|
2284
|
-
for (var
|
|
2285
|
-
|
|
2286
|
-
return
|
|
2283
|
+
function ut(h, E) {
|
|
2284
|
+
for (var N = E; N !== h && w(N) !== h; )
|
|
2285
|
+
N = w(N);
|
|
2286
|
+
return N === m ? null : N;
|
|
2287
2287
|
}
|
|
2288
|
-
function at(
|
|
2288
|
+
function at(h, E) {
|
|
2289
2289
|
if (!E)
|
|
2290
2290
|
return ne;
|
|
2291
|
-
var
|
|
2292
|
-
if (!
|
|
2291
|
+
var N = h || E && E.lastElementChild;
|
|
2292
|
+
if (!N)
|
|
2293
2293
|
return !0;
|
|
2294
|
-
var q = getComputedStyle(
|
|
2294
|
+
var q = getComputedStyle(h), Q = /^inline/.test(q.getPropertyValue("display")) || /^(left|right)$/.test(q.getPropertyValue("float"));
|
|
2295
2295
|
if (Q)
|
|
2296
2296
|
return !0;
|
|
2297
2297
|
if (E) {
|
|
@@ -2305,10 +2305,10 @@ var Oa = { exports: {} };
|
|
|
2305
2305
|
}
|
|
2306
2306
|
return !0;
|
|
2307
2307
|
}
|
|
2308
|
-
function Bt(
|
|
2309
|
-
if (!
|
|
2308
|
+
function Bt(h) {
|
|
2309
|
+
if (!h.children || !h.children.length)
|
|
2310
2310
|
return !1;
|
|
2311
|
-
for (const E of Array.from(
|
|
2311
|
+
for (const E of Array.from(h.children)) {
|
|
2312
2312
|
const q = (E.className && E.className.split(" ") || []).filter((Q) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(Q));
|
|
2313
2313
|
if (!q.length)
|
|
2314
2314
|
return !1;
|
|
@@ -2320,93 +2320,93 @@ var Oa = { exports: {} };
|
|
|
2320
2320
|
}
|
|
2321
2321
|
return !0;
|
|
2322
2322
|
}
|
|
2323
|
-
function kt(
|
|
2324
|
-
const
|
|
2325
|
-
if (
|
|
2326
|
-
if (
|
|
2327
|
-
const q =
|
|
2328
|
-
q.top !==
|
|
2323
|
+
function kt(h, E) {
|
|
2324
|
+
const N = E.getBoundingClientRect();
|
|
2325
|
+
if (X.style.left = N.left + "px", X.style.top = N.top + "px", ne) {
|
|
2326
|
+
if (X.style.height = N.height + "px", X.style.width = "4px", h) {
|
|
2327
|
+
const q = h.getBoundingClientRect();
|
|
2328
|
+
q.top !== N.top && (X.style.left = q.right + "px", X.style.top = q.top + "px", X.style.height = q.height + "px");
|
|
2329
2329
|
}
|
|
2330
|
-
} else if (
|
|
2330
|
+
} else if (X.style.height = "4px", X.style.width = N.width + "px", ee) {
|
|
2331
2331
|
const q = ee.getBoundingClientRect();
|
|
2332
|
-
|
|
2332
|
+
N.top < q.top && (X.style.display = "none");
|
|
2333
2333
|
}
|
|
2334
|
-
E ===
|
|
2334
|
+
E === J && J && (X.style.display = "none");
|
|
2335
2335
|
}
|
|
2336
|
-
function Ft(
|
|
2337
|
-
|
|
2338
|
-
var E =
|
|
2336
|
+
function Ft(h) {
|
|
2337
|
+
U = null;
|
|
2338
|
+
var E = h.lastElementChild;
|
|
2339
2339
|
if (E) {
|
|
2340
|
-
var
|
|
2341
|
-
ne ? (
|
|
2340
|
+
var N = E.getBoundingClientRect();
|
|
2341
|
+
ne ? (X.style.left = N.right + "px", X.style.top = N.top + "px", X.style.height = N.height + "px", X.style.width = "4px") : (X.style.left = N.left + "px", X.style.top = N.bottom + "px", X.style.height = "4px", X.style.width = N.width + "px"), E === J && J && (X.style.display = "none");
|
|
2342
2342
|
} else
|
|
2343
|
-
|
|
2343
|
+
X.style.display = "none";
|
|
2344
2344
|
}
|
|
2345
|
-
function Mt(
|
|
2346
|
-
if (!V.mirrorContainer.contains(
|
|
2345
|
+
function Mt(h, E) {
|
|
2346
|
+
if (!V.mirrorContainer.contains(h) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (ee = p(h), !ee || !ee.contains(h)))
|
|
2347
2347
|
return;
|
|
2348
|
-
const
|
|
2348
|
+
const N = document.querySelector(".dgComponentSelected"), q = ee.getBoundingClientRect();
|
|
2349
2349
|
if (E - 30 < q.top && ee.scrollTop > 0) {
|
|
2350
2350
|
let Q = ee.scrollTop < 10 ? ee.scrollTop : 10;
|
|
2351
|
-
ee.scrollBy(0, -1 * Q),
|
|
2351
|
+
ee.scrollBy(0, -1 * Q), N && ee.contains(N) && (le = le + -1 * Q);
|
|
2352
2352
|
}
|
|
2353
2353
|
if (E + 30 > q.bottom && ee.scrollTop < ee.scrollHeight - ee.clientHeight) {
|
|
2354
2354
|
const Q = ee.scrollHeight - ee.clientHeight - ee.scrollTop;
|
|
2355
2355
|
let Z = Q < 10 ? Q : 10;
|
|
2356
|
-
ee.scrollBy(0, Z),
|
|
2356
|
+
ee.scrollBy(0, Z), N && ee.contains(N) && (le = le + Z);
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
|
-
function ct(
|
|
2360
|
-
var Q = V.direction === "horizontal", Z = V.direction === "mixed", xe = E !==
|
|
2359
|
+
function ct(h, E, N, q) {
|
|
2360
|
+
var Q = V.direction === "horizontal", Z = V.direction === "mixed", xe = E !== h ? be() : ye();
|
|
2361
2361
|
return xe;
|
|
2362
2362
|
function ye() {
|
|
2363
|
-
var ue =
|
|
2363
|
+
var ue = h.children.length, ke, Ce, fe;
|
|
2364
2364
|
for (ke = 0; ke < ue; ke++)
|
|
2365
|
-
if (Ce =
|
|
2365
|
+
if (Ce = h.children[ke], fe = Ce.getBoundingClientRect(), Q && fe.left + fe.width / 2 > N || !Z && !Q && fe.top + fe.height / 2 > q || Z && fe.left + fe.width > N && fe.top + fe.height > q)
|
|
2366
2366
|
return Ce;
|
|
2367
2367
|
return null;
|
|
2368
2368
|
}
|
|
2369
2369
|
function be() {
|
|
2370
2370
|
var ue = E.getBoundingClientRect();
|
|
2371
2371
|
if (Z) {
|
|
2372
|
-
var ke = q - ue.top, Ce =
|
|
2372
|
+
var ke = q - ue.top, Ce = N - ue.left, fe = ue.bottom - q, it = ue.right - N, rt = Math.min(Ce, it, ke, fe), lt;
|
|
2373
2373
|
return ne ? lt = it < Ce : lt = fe === rt || it === rt || Ce === rt, Be(lt);
|
|
2374
2374
|
}
|
|
2375
|
-
return Be(Q ?
|
|
2375
|
+
return Be(Q ? N > ue.left + L(ue) / 2 : q > ue.top + P(ue) / 2);
|
|
2376
2376
|
}
|
|
2377
2377
|
function Be(ue) {
|
|
2378
|
-
return ue ?
|
|
2378
|
+
return ue ? T(E) : E;
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
|
-
function Et(
|
|
2382
|
-
return typeof V.copy == "boolean" ? V.copy : V.copy(
|
|
2381
|
+
function Et(h, E) {
|
|
2382
|
+
return typeof V.copy == "boolean" ? V.copy : V.copy(h, E);
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
2385
|
function p(g) {
|
|
2386
2386
|
const z = Array.from(window.scrollContainerList);
|
|
2387
2387
|
if (z.length === 1) {
|
|
2388
|
-
const
|
|
2389
|
-
return document.getElementById(
|
|
2388
|
+
const H = Array.from(window.scrollContainerList)[0];
|
|
2389
|
+
return document.getElementById(H);
|
|
2390
2390
|
}
|
|
2391
|
-
const
|
|
2392
|
-
for (const
|
|
2393
|
-
if (
|
|
2394
|
-
return
|
|
2391
|
+
const j = c(z);
|
|
2392
|
+
for (const H of j)
|
|
2393
|
+
if (H.contains(g))
|
|
2394
|
+
return H;
|
|
2395
2395
|
return null;
|
|
2396
2396
|
}
|
|
2397
2397
|
function c(g) {
|
|
2398
2398
|
const z = [];
|
|
2399
|
-
return g.forEach((
|
|
2400
|
-
const
|
|
2401
|
-
|
|
2402
|
-
}), z.sort((
|
|
2399
|
+
return g.forEach((j) => {
|
|
2400
|
+
const H = document.getElementById(j);
|
|
2401
|
+
H && z.push(H);
|
|
2402
|
+
}), z.sort((j, H) => j.contains(H) ? 1 : H.contains(j) ? -1 : 0), z;
|
|
2403
2403
|
}
|
|
2404
|
-
function u(g, z,
|
|
2405
|
-
var
|
|
2404
|
+
function u(g, z, j, H) {
|
|
2405
|
+
var W = {
|
|
2406
2406
|
mouseup: "touchend",
|
|
2407
2407
|
mousedown: "touchstart",
|
|
2408
2408
|
mousemove: "touchmove"
|
|
2409
|
-
},
|
|
2409
|
+
}, J = {
|
|
2410
2410
|
mouseup: "pointerup",
|
|
2411
2411
|
mousedown: "pointerdown",
|
|
2412
2412
|
mousemove: "pointermove"
|
|
@@ -2415,7 +2415,7 @@ var Oa = { exports: {} };
|
|
|
2415
2415
|
mousedown: "MSPointerDown",
|
|
2416
2416
|
mousemove: "MSPointerMove"
|
|
2417
2417
|
};
|
|
2418
|
-
i.navigator.pointerEnabled ? s[z](g,
|
|
2418
|
+
i.navigator.pointerEnabled ? s[z](g, J[j], H) : i.navigator.msPointerEnabled ? s[z](g, oe[j], H) : (s[z](g, W[j], H), s[z](g, j, H));
|
|
2419
2419
|
}
|
|
2420
2420
|
function v(g) {
|
|
2421
2421
|
if (g.touches !== void 0)
|
|
@@ -2428,15 +2428,15 @@ var Oa = { exports: {} };
|
|
|
2428
2428
|
if (z !== void 0)
|
|
2429
2429
|
return z & 1 ? 1 : z & 2 ? 3 : z & 4 ? 2 : 0;
|
|
2430
2430
|
}
|
|
2431
|
-
function x(g, z,
|
|
2431
|
+
function x(g, z, j) {
|
|
2432
2432
|
g = g || {};
|
|
2433
|
-
var
|
|
2434
|
-
return g.className += " gu-hide",
|
|
2433
|
+
var H = g.className || "", W;
|
|
2434
|
+
return g.className += " gu-hide", W = l.elementFromPoint(z, j), g.className = H, W;
|
|
2435
2435
|
}
|
|
2436
2436
|
function k() {
|
|
2437
2437
|
return !1;
|
|
2438
2438
|
}
|
|
2439
|
-
function
|
|
2439
|
+
function F() {
|
|
2440
2440
|
return !0;
|
|
2441
2441
|
}
|
|
2442
2442
|
function L(g) {
|
|
@@ -2445,36 +2445,36 @@ var Oa = { exports: {} };
|
|
|
2445
2445
|
function P(g) {
|
|
2446
2446
|
return g.height || g.bottom - g.top;
|
|
2447
2447
|
}
|
|
2448
|
-
function
|
|
2448
|
+
function w(g) {
|
|
2449
2449
|
return g.parentNode === l ? null : g.parentNode;
|
|
2450
2450
|
}
|
|
2451
|
-
function
|
|
2452
|
-
return g.tagName === "INPUT" || g.tagName === "TEXTAREA" || g.tagName === "SELECT" ||
|
|
2453
|
-
}
|
|
2454
|
-
function w(g) {
|
|
2455
|
-
return !g || g.contentEditable === "false" ? !1 : g.contentEditable === "true" ? !0 : w(T(g));
|
|
2451
|
+
function y(g) {
|
|
2452
|
+
return g.tagName === "INPUT" || g.tagName === "TEXTAREA" || g.tagName === "SELECT" || S(g);
|
|
2456
2453
|
}
|
|
2457
2454
|
function S(g) {
|
|
2455
|
+
return !g || g.contentEditable === "false" ? !1 : g.contentEditable === "true" ? !0 : S(w(g));
|
|
2456
|
+
}
|
|
2457
|
+
function T(g) {
|
|
2458
2458
|
return g.nextElementSibling || z();
|
|
2459
2459
|
function z() {
|
|
2460
|
-
var
|
|
2460
|
+
var j = g;
|
|
2461
2461
|
do
|
|
2462
|
-
|
|
2463
|
-
while (
|
|
2464
|
-
return
|
|
2462
|
+
j = j.nextSibling;
|
|
2463
|
+
while (j && j.nodeType !== 1);
|
|
2464
|
+
return j;
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function M(g) {
|
|
2468
2468
|
return g.targetTouches && g.targetTouches.length ? g.targetTouches[0] : g.changedTouches && g.changedTouches.length ? g.changedTouches[0] : g;
|
|
2469
2469
|
}
|
|
2470
2470
|
function _(g, z) {
|
|
2471
|
-
var
|
|
2471
|
+
var j = M(z), H = {
|
|
2472
2472
|
pageX: "clientX",
|
|
2473
2473
|
// IE8
|
|
2474
2474
|
pageY: "clientY"
|
|
2475
2475
|
// IE8
|
|
2476
2476
|
};
|
|
2477
|
-
return g in
|
|
2477
|
+
return g in H && !(g in j) && H[g] in j && (g = H[g]), j[g];
|
|
2478
2478
|
}
|
|
2479
2479
|
o.exports = d;
|
|
2480
2480
|
}).call(this, typeof je < "u" ? je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2537,62 +2537,62 @@ var Oa = { exports: {} };
|
|
|
2537
2537
|
remove: m,
|
|
2538
2538
|
fabricate: x
|
|
2539
2539
|
};
|
|
2540
|
-
function p(
|
|
2541
|
-
return
|
|
2540
|
+
function p(w, y, S, T) {
|
|
2541
|
+
return w.addEventListener(y, S, T);
|
|
2542
2542
|
}
|
|
2543
|
-
function c(
|
|
2544
|
-
return
|
|
2543
|
+
function c(w, y, S) {
|
|
2544
|
+
return w.attachEvent("on" + y, F(w, y, S));
|
|
2545
2545
|
}
|
|
2546
|
-
function u(
|
|
2547
|
-
return
|
|
2546
|
+
function u(w, y, S, T) {
|
|
2547
|
+
return w.removeEventListener(y, S, T);
|
|
2548
2548
|
}
|
|
2549
|
-
function v(
|
|
2550
|
-
var
|
|
2551
|
-
if (
|
|
2552
|
-
return
|
|
2549
|
+
function v(w, y, S) {
|
|
2550
|
+
var T = L(w, y, S);
|
|
2551
|
+
if (T)
|
|
2552
|
+
return w.detachEvent("on" + y, T);
|
|
2553
2553
|
}
|
|
2554
|
-
function x(
|
|
2555
|
-
var
|
|
2556
|
-
|
|
2557
|
-
function
|
|
2554
|
+
function x(w, y, S) {
|
|
2555
|
+
var T = s.indexOf(y) === -1 ? _() : M();
|
|
2556
|
+
w.dispatchEvent ? w.dispatchEvent(T) : w.fireEvent("on" + y, T);
|
|
2557
|
+
function M() {
|
|
2558
2558
|
var g;
|
|
2559
|
-
return f.createEvent ? (g = f.createEvent("Event"), g.initEvent(
|
|
2559
|
+
return f.createEvent ? (g = f.createEvent("Event"), g.initEvent(y, !0, !0)) : f.createEventObject && (g = f.createEventObject()), g;
|
|
2560
2560
|
}
|
|
2561
2561
|
function _() {
|
|
2562
|
-
return new r(
|
|
2562
|
+
return new r(y, { detail: S });
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
|
-
function k(
|
|
2566
|
-
return function(
|
|
2567
|
-
var _ =
|
|
2565
|
+
function k(w, y, S) {
|
|
2566
|
+
return function(M) {
|
|
2567
|
+
var _ = M || i.event;
|
|
2568
2568
|
_.target = _.target || _.srcElement, _.preventDefault = _.preventDefault || function() {
|
|
2569
2569
|
_.returnValue = !1;
|
|
2570
2570
|
}, _.stopPropagation = _.stopPropagation || function() {
|
|
2571
2571
|
_.cancelBubble = !0;
|
|
2572
|
-
}, _.which = _.which || _.keyCode,
|
|
2572
|
+
}, _.which = _.which || _.keyCode, S.call(w, _);
|
|
2573
2573
|
};
|
|
2574
2574
|
}
|
|
2575
|
-
function
|
|
2576
|
-
var
|
|
2575
|
+
function F(w, y, S) {
|
|
2576
|
+
var T = L(w, y, S) || k(w, y, S);
|
|
2577
2577
|
return d.push({
|
|
2578
|
-
wrapper:
|
|
2579
|
-
element:
|
|
2580
|
-
type:
|
|
2581
|
-
fn:
|
|
2582
|
-
}),
|
|
2578
|
+
wrapper: T,
|
|
2579
|
+
element: w,
|
|
2580
|
+
type: y,
|
|
2581
|
+
fn: S
|
|
2582
|
+
}), T;
|
|
2583
2583
|
}
|
|
2584
|
-
function L(
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2587
|
-
var
|
|
2588
|
-
return d.splice(
|
|
2584
|
+
function L(w, y, S) {
|
|
2585
|
+
var T = P(w, y, S);
|
|
2586
|
+
if (T) {
|
|
2587
|
+
var M = d[T].wrapper;
|
|
2588
|
+
return d.splice(T, 1), M;
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
function P(
|
|
2592
|
-
var
|
|
2593
|
-
for (
|
|
2594
|
-
if (
|
|
2595
|
-
return
|
|
2591
|
+
function P(w, y, S) {
|
|
2592
|
+
var T, M;
|
|
2593
|
+
for (T = 0; T < d.length; T++)
|
|
2594
|
+
if (M = d[T], M.element === w && M.type === y && M.fn === S)
|
|
2595
|
+
return T;
|
|
2596
2596
|
}
|
|
2597
2597
|
}).call(this, typeof je < "u" ? je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2598
2598
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2688,25 +2688,25 @@ var Oa = { exports: {} };
|
|
|
2688
2688
|
if (!c) {
|
|
2689
2689
|
var P = m(x);
|
|
2690
2690
|
c = !0;
|
|
2691
|
-
for (var
|
|
2692
|
-
for (u = p, p = []; ++v <
|
|
2691
|
+
for (var w = p.length; w; ) {
|
|
2692
|
+
for (u = p, p = []; ++v < w; )
|
|
2693
2693
|
u && u[v].run();
|
|
2694
|
-
v = -1,
|
|
2694
|
+
v = -1, w = p.length;
|
|
2695
2695
|
}
|
|
2696
2696
|
u = null, c = !1, d(P);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
i.nextTick = function(P) {
|
|
2700
|
-
var
|
|
2700
|
+
var w = new Array(arguments.length - 1);
|
|
2701
2701
|
if (arguments.length > 1)
|
|
2702
|
-
for (var
|
|
2703
|
-
|
|
2704
|
-
p.push(new
|
|
2702
|
+
for (var y = 1; y < arguments.length; y++)
|
|
2703
|
+
w[y - 1] = arguments[y];
|
|
2704
|
+
p.push(new F(P, w)), p.length === 1 && !c && m(k);
|
|
2705
2705
|
};
|
|
2706
|
-
function
|
|
2707
|
-
this.fun = P, this.array =
|
|
2706
|
+
function F(P, w) {
|
|
2707
|
+
this.fun = P, this.array = w;
|
|
2708
2708
|
}
|
|
2709
|
-
|
|
2709
|
+
F.prototype.run = function() {
|
|
2710
2710
|
this.fun.apply(null, this.array);
|
|
2711
2711
|
}, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {};
|
|
2712
2712
|
function L() {
|
|
@@ -2797,19 +2797,19 @@ const Ra = {
|
|
|
2797
2797
|
const {
|
|
2798
2798
|
locale: n,
|
|
2799
2799
|
t: o
|
|
2800
|
-
} = Dt(), a =
|
|
2800
|
+
} = Dt(), a = b(e.animate), i = "fadeOut", r = R(() => e.options), s = b(!1), f = R(() => r.value.title && r.value.message), l = R(() => !r.value.title && r.value.message), m = R(() => {
|
|
2801
2801
|
const P = {
|
|
2802
2802
|
animated: s.value,
|
|
2803
2803
|
toast: !0,
|
|
2804
2804
|
"toast--only-content": l.value
|
|
2805
2805
|
};
|
|
2806
2806
|
return P[e.animate] = !1, P[i] = s.value, P["toasty-type-" + r.value.type] = !0, r.value.theme && (P[r.value.theme] = !0), P;
|
|
2807
|
-
}), d =
|
|
2808
|
-
const
|
|
2807
|
+
}), d = R(() => {
|
|
2808
|
+
const y = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, S = {
|
|
2809
2809
|
"f-icon": !0
|
|
2810
2810
|
};
|
|
2811
|
-
return
|
|
2812
|
-
}), p =
|
|
2811
|
+
return S[y] = !0, S;
|
|
2812
|
+
}), p = R(() => r.value.title || r.value.message), c = R(() => e.showCloseButton), u = R(() => !!r.value.buttons || !!t.slots.default), v = R(() => n.value === "en" ? {
|
|
2813
2813
|
wordBreak: "keep-all",
|
|
2814
2814
|
overflowWrap: "break-word"
|
|
2815
2815
|
} : {});
|
|
@@ -2818,9 +2818,9 @@ const Ra = {
|
|
|
2818
2818
|
t.emit("close", r.value);
|
|
2819
2819
|
}, 200);
|
|
2820
2820
|
}
|
|
2821
|
-
function k(P,
|
|
2821
|
+
function k(P, w) {
|
|
2822
2822
|
}
|
|
2823
|
-
function
|
|
2823
|
+
function F(P) {
|
|
2824
2824
|
return `f-preten-link ${P.customClass ? P.customClass : ""}`;
|
|
2825
2825
|
}
|
|
2826
2826
|
me(a, () => {
|
|
@@ -2830,10 +2830,10 @@ const Ra = {
|
|
|
2830
2830
|
var P;
|
|
2831
2831
|
return C(Xe, null, [C("div", {
|
|
2832
2832
|
class: "after-toast-msg text-right"
|
|
2833
|
-
}, [!t.slots.default && ((P = r.value.buttons) == null ? void 0 : P.map((
|
|
2834
|
-
class:
|
|
2835
|
-
onClick: (
|
|
2836
|
-
}, [
|
|
2833
|
+
}, [!t.slots.default && ((P = r.value.buttons) == null ? void 0 : P.map((w) => C("span", {
|
|
2834
|
+
class: F(w),
|
|
2835
|
+
onClick: (y) => void 0
|
|
2836
|
+
}, [w.text]))), t.slots.default && t.slots.default()])]);
|
|
2837
2837
|
};
|
|
2838
2838
|
return () => C("div", {
|
|
2839
2839
|
class: m.value,
|
|
@@ -2878,14 +2878,14 @@ const Ra = {
|
|
|
2878
2878
|
props: Ra,
|
|
2879
2879
|
emits: ["close", "empty"],
|
|
2880
2880
|
setup(e, t) {
|
|
2881
|
-
const n =
|
|
2881
|
+
const n = R(() => ({
|
|
2882
2882
|
"farris-notify": !0
|
|
2883
2883
|
})), o = {
|
|
2884
2884
|
left: 12,
|
|
2885
2885
|
right: 12,
|
|
2886
2886
|
top: 20,
|
|
2887
2887
|
bottom: 12
|
|
2888
|
-
}, a =
|
|
2888
|
+
}, a = b(), i = b(e.options), r = b(e.showCloseButton), s = R(() => e.position || "bottom-right"), f = R(() => e.timeout != null ? e.timeout : 3e3), l = R(() => {
|
|
2889
2889
|
const p = e.bottom ? e.bottom : o.bottom, c = e.top ? e.top : o.top, u = {
|
|
2890
2890
|
transition: "all 0.2s ease",
|
|
2891
2891
|
left: s.value.indexOf("left") > -1 ? `${e.left ? e.left : o.left}px` : "",
|
|
@@ -2944,7 +2944,7 @@ class Da {
|
|
|
2944
2944
|
const r = Pt({
|
|
2945
2945
|
setup() {
|
|
2946
2946
|
var l;
|
|
2947
|
-
const s =
|
|
2947
|
+
const s = b();
|
|
2948
2948
|
function f() {
|
|
2949
2949
|
s.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
2950
2950
|
n.updateNotifyPositionForClose(a, s), r.unmount();
|
|
@@ -3199,19 +3199,19 @@ function Ha(e, t, n, o, a, i, r, s, f, l, m, d, p, c, u, v, x) {
|
|
|
3199
3199
|
const {
|
|
3200
3200
|
calculateCellPositionInRow: k
|
|
3201
3201
|
} = i, {
|
|
3202
|
-
columnContext:
|
|
3202
|
+
columnContext: F,
|
|
3203
3203
|
hasLeftFixedColumn: L,
|
|
3204
3204
|
hasRightFixedColumn: P
|
|
3205
3205
|
} = r, {
|
|
3206
|
-
gridDataStyle:
|
|
3207
|
-
leftFixedGridDataStyle:
|
|
3208
|
-
rightFixedGridDataStyle:
|
|
3206
|
+
gridDataStyle: w,
|
|
3207
|
+
leftFixedGridDataStyle: y,
|
|
3208
|
+
rightFixedGridDataStyle: S
|
|
3209
3209
|
} = c, {
|
|
3210
|
-
renderDataRow:
|
|
3211
|
-
} = zn(e, t,
|
|
3212
|
-
function _(
|
|
3213
|
-
const oe = k(
|
|
3214
|
-
return x.value.filter((
|
|
3210
|
+
renderDataRow: T
|
|
3211
|
+
} = zn(e, t, F, x, s, f, l, m, d, p, c, u, v), M = [T];
|
|
3212
|
+
function _(W, J) {
|
|
3213
|
+
const oe = k(W);
|
|
3214
|
+
return x.value.filter((D) => D.visible !== !1).map((D, I) => M[D.type](D, oe, J, I));
|
|
3215
3215
|
}
|
|
3216
3216
|
function g() {
|
|
3217
3217
|
return C("div", {
|
|
@@ -3219,8 +3219,8 @@ function Ha(e, t, n, o, a, i, r, s, f, l, m, d, p, c, u, v, x) {
|
|
|
3219
3219
|
class: "fv-grid-content-left-fixed"
|
|
3220
3220
|
}, [C("div", {
|
|
3221
3221
|
class: "fv-grid-data",
|
|
3222
|
-
style:
|
|
3223
|
-
}, [_(
|
|
3222
|
+
style: y.value
|
|
3223
|
+
}, [_(F.value.leftColumns.filter((W) => W.visible), "left")])]);
|
|
3224
3224
|
}
|
|
3225
3225
|
function z() {
|
|
3226
3226
|
return C("div", {
|
|
@@ -3228,68 +3228,68 @@ function Ha(e, t, n, o, a, i, r, s, f, l, m, d, p, c, u, v, x) {
|
|
|
3228
3228
|
class: "fv-grid-content-primary"
|
|
3229
3229
|
}, [C("div", {
|
|
3230
3230
|
class: "fv-grid-data",
|
|
3231
|
-
style:
|
|
3232
|
-
}, [_(
|
|
3231
|
+
style: w.value
|
|
3232
|
+
}, [_(F.value.primaryColumns.filter((W) => W.visible), "primary")])]);
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function j() {
|
|
3235
3235
|
return C("div", {
|
|
3236
3236
|
ref: a,
|
|
3237
3237
|
class: "fv-grid-content-right-fixed"
|
|
3238
3238
|
}, [C("div", {
|
|
3239
3239
|
class: "fv-grid-data",
|
|
3240
|
-
style:
|
|
3241
|
-
}, [_(
|
|
3240
|
+
style: S.value
|
|
3241
|
+
}, [_(F.value.rightColumns.filter((W) => W.visible), "right")])]);
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3244
|
-
const
|
|
3245
|
-
return L.value &&
|
|
3243
|
+
function H() {
|
|
3244
|
+
const W = [];
|
|
3245
|
+
return L.value && W.push(g()), W.push(z()), P.value && W.push(j()), W;
|
|
3246
3246
|
}
|
|
3247
3247
|
return {
|
|
3248
|
-
renderDataArea:
|
|
3248
|
+
renderDataArea: H
|
|
3249
3249
|
};
|
|
3250
3250
|
}
|
|
3251
|
-
const
|
|
3251
|
+
const $a = /* @__PURE__ */ Ye({
|
|
3252
3252
|
name: "FTreeGrid",
|
|
3253
3253
|
props: ja,
|
|
3254
3254
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged"],
|
|
3255
3255
|
setup(e, t) {
|
|
3256
|
-
var Ht,
|
|
3257
|
-
const o = ((Ht = e.rowOption) == null ? void 0 : Ht.height) || 28, a =
|
|
3256
|
+
var Ht, $t;
|
|
3257
|
+
const o = ((Ht = e.rowOption) == null ? void 0 : Ht.height) || 28, a = b(20), i = b(e.columns), r = An(e), {
|
|
3258
3258
|
idField: s
|
|
3259
|
-
} = r, f =
|
|
3259
|
+
} = r, f = b(), l = b(), m = b(), d = b(), p = b(), c = b([]), u = b(!1), v = b((($t = e.rowOption) == null ? void 0 : $t.wrapContent) || !1), x = Vn(e, r), k = _n(e, t), F = Wn(e), {
|
|
3260
3260
|
collapseField: L
|
|
3261
|
-
} =
|
|
3261
|
+
} = F, {
|
|
3262
3262
|
showLoading: P,
|
|
3263
|
-
renderLoading:
|
|
3264
|
-
} = qn(e, f),
|
|
3265
|
-
dataView:
|
|
3266
|
-
} =
|
|
3267
|
-
showSelection:
|
|
3263
|
+
renderLoading: w
|
|
3264
|
+
} = qn(e, f), y = Gn(e, /* @__PURE__ */ new Map(), k, F, r), {
|
|
3265
|
+
dataView: S
|
|
3266
|
+
} = y, T = Un(e, y, r, c, t), {
|
|
3267
|
+
showSelection: M,
|
|
3268
3268
|
selectedValues: _
|
|
3269
|
-
} =
|
|
3270
|
-
shouldRenderPagination:
|
|
3271
|
-
} =
|
|
3272
|
-
containerStyleObject:
|
|
3269
|
+
} = T, g = Xn(e, c, y, r, T, t), z = R(() => e.disabled), j = R(() => e.virtualized ? Math.min(y.dataView.value.length, a.value) : y.dataView.value.length), H = Yn(e, y), {
|
|
3270
|
+
shouldRenderPagination: W
|
|
3271
|
+
} = H, {
|
|
3272
|
+
containerStyleObject: J
|
|
3273
3273
|
} = Jn(e), oe = Qn(e), {
|
|
3274
|
-
applyCommands:
|
|
3274
|
+
applyCommands: D
|
|
3275
3275
|
} = oe;
|
|
3276
|
-
|
|
3276
|
+
D(i);
|
|
3277
3277
|
const {
|
|
3278
3278
|
applyColumnSetting: I,
|
|
3279
|
-
removeColumnSetting:
|
|
3279
|
+
removeColumnSetting: U
|
|
3280
3280
|
} = Zn(e);
|
|
3281
3281
|
e.showSetting && I(i);
|
|
3282
|
-
const
|
|
3282
|
+
const A = Kn(e, t), K = eo(e), {
|
|
3283
3283
|
applyColumnSorter: ve,
|
|
3284
3284
|
columnContext: ge,
|
|
3285
|
-
updateColumnRenderContext:
|
|
3286
|
-
} =
|
|
3287
|
-
ve(
|
|
3288
|
-
const ne = to(e, ge), le = no(e, t,
|
|
3285
|
+
updateColumnRenderContext: X
|
|
3286
|
+
} = A;
|
|
3287
|
+
ve(y, K);
|
|
3288
|
+
const ne = to(e, ge), le = no(e, t, T, r), ee = oo(e, t, r, le, c), V = ao(e), te = io(e, ee, V), $e = ro(e, y, ee, F, r, V, te), Ee = lo(e, i, y, j, 0, $e), {
|
|
3289
3289
|
getVisualData: Te
|
|
3290
|
-
} = Ee, Je = so(e, ge),
|
|
3290
|
+
} = Ee, Je = so(e, ge), Le = uo(e, T), {
|
|
3291
3291
|
sidebarWidth: ze
|
|
3292
|
-
} =
|
|
3292
|
+
} = Le, se = co(e, y, c, ge, Ee, j, 0, ze), {
|
|
3293
3293
|
onWheel: tt,
|
|
3294
3294
|
dataGridWidth: Se,
|
|
3295
3295
|
viewPortHeight: Ie,
|
|
@@ -3298,27 +3298,27 @@ const La = /* @__PURE__ */ Ye({
|
|
|
3298
3298
|
updateVisibleRowsOnLatestVisibleScope: nt
|
|
3299
3299
|
} = se, Ae = fo(e, ge, l, Oe, ne), {
|
|
3300
3300
|
calculateColumnsSize: Me
|
|
3301
|
-
} = Ae, Pe = po(), Qe = mo(l, p,
|
|
3302
|
-
const
|
|
3301
|
+
} = Ae, Pe = po(), Qe = mo(l, p, y, Pe, se), B = vo(e, t, A, y, ne, x, se), Y = R(() => {
|
|
3302
|
+
const $ = {
|
|
3303
3303
|
"fv-grid": !0,
|
|
3304
3304
|
"fv-grid-bordered": e.showBorder,
|
|
3305
3305
|
"fv-grid-horizontal-bordered": e.showHorizontalLines,
|
|
3306
3306
|
"fv-datagrid-strip": e.showStripe
|
|
3307
3307
|
};
|
|
3308
|
-
return Hn(
|
|
3309
|
-
}), ie =
|
|
3308
|
+
return Hn($, e.customClass);
|
|
3309
|
+
}), ie = R(() => ({
|
|
3310
3310
|
"fv-grid-content": !0,
|
|
3311
3311
|
"fv-grid-content-hover": u.value,
|
|
3312
3312
|
"fv-grid-wrap-content": v.value
|
|
3313
3313
|
})), {
|
|
3314
3314
|
renderDataArea: re
|
|
3315
|
-
} = Ha(e, t, m, d, p, Je,
|
|
3315
|
+
} = Ha(e, t, m, d, p, Je, A, y, ee, F, le, T, g, se, Ee, V, c), {
|
|
3316
3316
|
renderGridHeader: De,
|
|
3317
3317
|
renderGridColumnResizeOverlay: ot,
|
|
3318
3318
|
shouldShowHeader: ht
|
|
3319
|
-
} = go(e, t, l, d, p,
|
|
3319
|
+
} = go(e, t, l, d, p, A, y, B, Qe, k, Pe, Ae, ne, T, Le, K, se, Oe, c), {
|
|
3320
3320
|
renderDataGridSidebar: bt
|
|
3321
|
-
} = yo(e, le,
|
|
3321
|
+
} = yo(e, le, T, Le, se), {
|
|
3322
3322
|
renderDisableMask: Ct
|
|
3323
3323
|
} = ho(), {
|
|
3324
3324
|
renderHorizontalScrollbar: wt
|
|
@@ -3326,97 +3326,97 @@ const La = /* @__PURE__ */ Ye({
|
|
|
3326
3326
|
renderVerticalScrollbar: xt
|
|
3327
3327
|
} = Co(e, l, se);
|
|
3328
3328
|
function Tt() {
|
|
3329
|
-
var
|
|
3330
|
-
if (l.value && l.value.clientHeight > 0 && ((
|
|
3329
|
+
var $, G, ce;
|
|
3330
|
+
if (l.value && l.value.clientHeight > 0 && (($ = l.value) == null ? void 0 : $.clientWidth) > 0) {
|
|
3331
3331
|
const pe = Math.ceil(l.value.clientHeight / o);
|
|
3332
3332
|
pe > a.value && (a.value = pe, nt()), Ie.value = ((G = m.value) == null ? void 0 : G.clientHeight) || 0, Se.value = ((ce = l.value) == null ? void 0 : ce.clientWidth) || 0, Me();
|
|
3333
3333
|
}
|
|
3334
3334
|
}
|
|
3335
3335
|
et(() => {
|
|
3336
|
-
l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / o), a.value), c.value = Te(0,
|
|
3336
|
+
l.value && (a.value = Math.max(Math.ceil(l.value.clientHeight / o), a.value), c.value = Te(0, j.value + 0 - 1), Ln(l.value, Tt), Me(), Ke(() => {
|
|
3337
3337
|
l.value && (Se.value = l.value.clientWidth), m.value && (Oe.value = m.value.clientWidth, Ie.value = m.value.clientHeight);
|
|
3338
|
-
})), P.value &&
|
|
3338
|
+
})), P.value && w();
|
|
3339
3339
|
}), st(() => {
|
|
3340
3340
|
}), me(Oe, () => {
|
|
3341
3341
|
l.value && Me();
|
|
3342
3342
|
});
|
|
3343
|
-
function St(
|
|
3344
|
-
|
|
3343
|
+
function St($) {
|
|
3344
|
+
y.collapseTo($), y.reOrderVisibleIndex(), Re();
|
|
3345
3345
|
}
|
|
3346
|
-
function ut(
|
|
3347
|
-
|
|
3346
|
+
function ut($) {
|
|
3347
|
+
y.expandTo($), y.reOrderVisibleIndex(), Re();
|
|
3348
3348
|
}
|
|
3349
3349
|
function at() {
|
|
3350
|
-
const
|
|
3351
|
-
return
|
|
3350
|
+
const $ = T.getSelectionRow();
|
|
3351
|
+
return $ ? $.dataIndex - 1 : -1;
|
|
3352
3352
|
}
|
|
3353
3353
|
function Bt() {
|
|
3354
|
-
const
|
|
3355
|
-
|
|
3354
|
+
const $ = at();
|
|
3355
|
+
y.insertNewDataItem($), c.value = Te(0, j.value + 0 - 1);
|
|
3356
3356
|
}
|
|
3357
3357
|
function kt() {
|
|
3358
|
-
const
|
|
3359
|
-
|
|
3358
|
+
const $ = at();
|
|
3359
|
+
y.insertNewChildDataItem($), c.value = Te(0, j.value + 0 - 1);
|
|
3360
3360
|
}
|
|
3361
|
-
function Ft(
|
|
3361
|
+
function Ft($, G) {
|
|
3362
3362
|
const ce = c.value.find((we) => we.raw[s.value] === G), pe = ce ? ce.dataIndex - 1 : -1;
|
|
3363
|
-
|
|
3363
|
+
y.insertNewChildDataItems($, pe);
|
|
3364
3364
|
}
|
|
3365
3365
|
function Mt() {
|
|
3366
|
-
const
|
|
3367
|
-
|
|
3366
|
+
const $ = at(), G = g.getNextSelectableHierarchyItemId($);
|
|
3367
|
+
y.removeHierarchyDataItem($), c.value = Te(0, j.value + 0 - 1), G && T.selectItemById(G);
|
|
3368
3368
|
}
|
|
3369
|
-
function ct(
|
|
3370
|
-
ee.onEditingRow(
|
|
3369
|
+
function ct($) {
|
|
3370
|
+
ee.onEditingRow($);
|
|
3371
3371
|
}
|
|
3372
|
-
function Et(
|
|
3373
|
-
ee.acceptEditingRow(
|
|
3372
|
+
function Et($) {
|
|
3373
|
+
ee.acceptEditingRow($);
|
|
3374
3374
|
}
|
|
3375
|
-
function
|
|
3376
|
-
ee.cancelEditingRow(
|
|
3375
|
+
function h($) {
|
|
3376
|
+
ee.cancelEditingRow($);
|
|
3377
3377
|
}
|
|
3378
|
-
function E(
|
|
3379
|
-
|
|
3378
|
+
function E($) {
|
|
3379
|
+
$ && (i.value = $, D(i), X(i.value), ve(y, K), Me());
|
|
3380
3380
|
}
|
|
3381
|
-
me(() => e.columns, (
|
|
3382
|
-
E(
|
|
3381
|
+
me(() => e.columns, ($) => {
|
|
3382
|
+
E($);
|
|
3383
3383
|
});
|
|
3384
|
-
function
|
|
3385
|
-
|
|
3384
|
+
function N($, G) {
|
|
3385
|
+
$ && (y.load($), y.reOrderVisibleIndex(), G != null && G.keepScrollPosition ? se.scrollTo(se.offsetY.value) : Re());
|
|
3386
3386
|
}
|
|
3387
|
-
function q(
|
|
3388
|
-
|
|
3387
|
+
function q($) {
|
|
3388
|
+
T.selectItemById($);
|
|
3389
3389
|
}
|
|
3390
|
-
function Q(
|
|
3391
|
-
const G = c.value.find((ce) => ce.raw[r.idField.value] ===
|
|
3390
|
+
function Q($) {
|
|
3391
|
+
const G = c.value.find((ce) => ce.raw[r.idField.value] === $);
|
|
3392
3392
|
G && le.clickRowItem(G);
|
|
3393
3393
|
}
|
|
3394
|
-
function Z(
|
|
3395
|
-
le.activeRowById(
|
|
3394
|
+
function Z($) {
|
|
3395
|
+
le.activeRowById($);
|
|
3396
3396
|
}
|
|
3397
|
-
function xe(
|
|
3398
|
-
|
|
3397
|
+
function xe($) {
|
|
3398
|
+
T.selectItemByIds($);
|
|
3399
3399
|
}
|
|
3400
3400
|
function ye() {
|
|
3401
|
-
return
|
|
3401
|
+
return T.getSelectedItems();
|
|
3402
3402
|
}
|
|
3403
3403
|
function be() {
|
|
3404
|
-
|
|
3404
|
+
T.clearSelection();
|
|
3405
3405
|
}
|
|
3406
|
-
const Be =
|
|
3406
|
+
const Be = R(() => !c.value || !c.value.length), {
|
|
3407
3407
|
renderEmpty: ue
|
|
3408
3408
|
} = wo(e, t);
|
|
3409
3409
|
function ke() {
|
|
3410
|
-
return
|
|
3410
|
+
return T.getSelectionRow();
|
|
3411
3411
|
}
|
|
3412
|
-
function Ce(
|
|
3413
|
-
|
|
3412
|
+
function Ce($) {
|
|
3413
|
+
T.unSelectItemByIds($);
|
|
3414
3414
|
}
|
|
3415
3415
|
function fe() {
|
|
3416
|
-
return
|
|
3416
|
+
return T.currentSelectedDataId.value;
|
|
3417
3417
|
}
|
|
3418
|
-
function it(
|
|
3419
|
-
const pe =
|
|
3418
|
+
function it($, G, ce) {
|
|
3419
|
+
const pe = S.value.find((we) => we[s.value] === $);
|
|
3420
3420
|
if (pe) {
|
|
3421
3421
|
if (Object.keys(pe).forEach((de) => {
|
|
3422
3422
|
Object.prototype.hasOwnProperty.call(G, de) && (pe[de] = G[de]);
|
|
@@ -3429,7 +3429,7 @@ const La = /* @__PURE__ */ Ye({
|
|
|
3429
3429
|
} = ce;
|
|
3430
3430
|
de && !Ne(G[de]) && (pe.__fv_collapse__ = G[de]), _e && !Ne(G[_e]) && (pe.__fv_checked__ = G[_e]), Ve && !Ne(G[Ve]) && (pe.__fv_disabled__ = G[Ve]), We && !Ne(G[We]) && (pe.__fv_visible__ = G[We]);
|
|
3431
3431
|
}
|
|
3432
|
-
const we = c.value.find((de) => de.raw[s.value] ===
|
|
3432
|
+
const we = c.value.find((de) => de.raw[s.value] === $), Lt = c.value.findIndex((de) => de.raw[s.value] === $);
|
|
3433
3433
|
if (we) {
|
|
3434
3434
|
if (we.raw = pe, Object.keys(we.data).forEach((de) => {
|
|
3435
3435
|
we.data[de].updateData(pe);
|
|
@@ -3442,32 +3442,32 @@ const La = /* @__PURE__ */ Ye({
|
|
|
3442
3442
|
} = ce;
|
|
3443
3443
|
de && !Ne(G[de]) && (we.collapse = G[de]), _e && !Ne(G[_e]) && (we.checked = G[_e]), Ve && !Ne(G[Ve]) && (we.disabled = G[Ve]), We && !Ne(G[We]) && (we.visible = G[We]);
|
|
3444
3444
|
}
|
|
3445
|
-
c.value = [...c.value.slice(0,
|
|
3445
|
+
c.value = [...c.value.slice(0, Lt), we, ...c.value.slice(Lt + 1)], y.updateSummary();
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
|
-
function rt(
|
|
3450
|
-
return Object.prototype.hasOwnProperty.call(
|
|
3449
|
+
function rt($) {
|
|
3450
|
+
return Object.prototype.hasOwnProperty.call($, "raw") ? y.hasRealChildren($.raw) : y.hasRealChildren($);
|
|
3451
3451
|
}
|
|
3452
|
-
function lt(
|
|
3453
|
-
const G =
|
|
3452
|
+
function lt($) {
|
|
3453
|
+
const G = y.dataView.value.find((ce) => ce[s.value] === $);
|
|
3454
3454
|
return G ? G[L.value] : "";
|
|
3455
3455
|
}
|
|
3456
3456
|
function mn() {
|
|
3457
3457
|
return L.value;
|
|
3458
3458
|
}
|
|
3459
|
-
me(() => e.showSetting, (
|
|
3460
|
-
|
|
3459
|
+
me(() => e.showSetting, ($, G) => {
|
|
3460
|
+
$ !== G && ($ ? I(i) : U(i), E(i.value));
|
|
3461
3461
|
});
|
|
3462
|
-
function vn(
|
|
3463
|
-
return c.value.filter((G) =>
|
|
3462
|
+
function vn($) {
|
|
3463
|
+
return c.value.filter((G) => $.includes(G.raw[e.idField]));
|
|
3464
3464
|
}
|
|
3465
|
-
function gn(
|
|
3466
|
-
const G = r.idField.value, ce = c.value.find((pe) => pe.raw[G] ===
|
|
3465
|
+
function gn($) {
|
|
3466
|
+
const G = r.idField.value, ce = c.value.find((pe) => pe.raw[G] === $);
|
|
3467
3467
|
ce && le.selectRow(ce);
|
|
3468
3468
|
}
|
|
3469
3469
|
function yn() {
|
|
3470
|
-
|
|
3470
|
+
T.keepSelectingOnPaging.value || be(), y.updateVisibleDataSummary(c.value);
|
|
3471
3471
|
}
|
|
3472
3472
|
t.expose({
|
|
3473
3473
|
activeRowById: Z,
|
|
@@ -3479,9 +3479,9 @@ const La = /* @__PURE__ */ Ye({
|
|
|
3479
3479
|
removeDataItem: Mt,
|
|
3480
3480
|
editDataItem: ct,
|
|
3481
3481
|
acceptDataItem: Et,
|
|
3482
|
-
cancelDataItem:
|
|
3482
|
+
cancelDataItem: h,
|
|
3483
3483
|
updateColumns: E,
|
|
3484
|
-
updateDataSource:
|
|
3484
|
+
updateDataSource: N,
|
|
3485
3485
|
selectItemById: q,
|
|
3486
3486
|
selectItemByIds: xe,
|
|
3487
3487
|
getSelectedItems: ye,
|
|
@@ -3498,28 +3498,28 @@ const La = /* @__PURE__ */ Ye({
|
|
|
3498
3498
|
selectRowById: gn,
|
|
3499
3499
|
updateDerivedData: yn
|
|
3500
3500
|
});
|
|
3501
|
-
const hn =
|
|
3502
|
-
const
|
|
3503
|
-
return se.shouldShowHorizontalScrollbar.value && (
|
|
3504
|
-
}), bn =
|
|
3505
|
-
...
|
|
3501
|
+
const hn = R(() => {
|
|
3502
|
+
const $ = {};
|
|
3503
|
+
return se.shouldShowHorizontalScrollbar.value && ($.paddingBottom = "10px"), se.shouldShowVirticalScrollbar.value && ($.paddingRight = "10px"), $;
|
|
3504
|
+
}), bn = R(() => ({
|
|
3505
|
+
...J.value,
|
|
3506
3506
|
borderRadius: "5px"
|
|
3507
3507
|
}));
|
|
3508
|
-
xo(e, t,
|
|
3509
|
-
const Cn =
|
|
3508
|
+
xo(e, t, y, se, H, T);
|
|
3509
|
+
const Cn = R(() => ({
|
|
3510
3510
|
"d-flex": !0,
|
|
3511
|
-
"justify-content-between":
|
|
3512
|
-
"justify-content-end":
|
|
3511
|
+
"justify-content-between": W.value && M.value,
|
|
3512
|
+
"justify-content-end": W.value && !M.value,
|
|
3513
3513
|
"position-relative": !0
|
|
3514
|
-
})), wn =
|
|
3514
|
+
})), wn = R(() => ({
|
|
3515
3515
|
"d-flex": !0,
|
|
3516
3516
|
"align-items-center": !0
|
|
3517
3517
|
})), {
|
|
3518
3518
|
renderDataGridSummary: xn
|
|
3519
|
-
} = To(e,
|
|
3519
|
+
} = To(e, y, A);
|
|
3520
3520
|
return () => C("div", {
|
|
3521
3521
|
ref: f,
|
|
3522
|
-
class:
|
|
3522
|
+
class: Y.value,
|
|
3523
3523
|
style: bn.value,
|
|
3524
3524
|
onWheel: tt
|
|
3525
3525
|
}, [l.value && ht.value && De(), C("div", {
|
|
@@ -3528,15 +3528,15 @@ const La = /* @__PURE__ */ Ye({
|
|
|
3528
3528
|
onMouseover: () => u.value = !0,
|
|
3529
3529
|
onMouseleave: () => u.value = !1,
|
|
3530
3530
|
style: hn.value
|
|
3531
|
-
}, [l.value && bt(c), l.value && re(), l.value && Be.value && ue(), l.value && wt(), l.value && xt()]), l.value && xn(),
|
|
3531
|
+
}, [l.value && bt(c), l.value && re(), l.value && Be.value && ue(), l.value && wt(), l.value && xt()]), l.value && xn(), M.value && C("div", {
|
|
3532
3532
|
class: Cn.value
|
|
3533
|
-
}, [
|
|
3533
|
+
}, [M.value && C("div", {
|
|
3534
3534
|
class: wn.value
|
|
3535
3535
|
}, [C("div", null, ["已选:" + _.value.length, Gt(" 条")])])]), ot(), z.value && Ct()]);
|
|
3536
3536
|
}
|
|
3537
3537
|
});
|
|
3538
|
-
Xt(
|
|
3539
|
-
const
|
|
3538
|
+
Xt($a);
|
|
3539
|
+
const La = /* @__PURE__ */ new Map([
|
|
3540
3540
|
["appearance", cn]
|
|
3541
3541
|
]);
|
|
3542
3542
|
function za(e, t, n) {
|
|
@@ -3673,7 +3673,7 @@ const Aa = "https://json-schema.org/draft/2020-12/schema", Va = "https://farris-
|
|
|
3673
3673
|
onClick: { type: Function, default: () => {
|
|
3674
3674
|
} }
|
|
3675
3675
|
};
|
|
3676
|
-
yt(ei, Xa,
|
|
3676
|
+
yt(ei, Xa, La, za, Ka);
|
|
3677
3677
|
const ti = "root-viewmodel";
|
|
3678
3678
|
class ni {
|
|
3679
3679
|
constructor(t, n) {
|
|
@@ -3995,7 +3995,7 @@ function Mi() {
|
|
|
3995
3995
|
return { onCopy: e };
|
|
3996
3996
|
}
|
|
3997
3997
|
function Ei(e, t, n, o) {
|
|
3998
|
-
const a =
|
|
3998
|
+
const a = b(14), i = b(140), r = b(""), s = b(o.value.length), f = R(() => o.value), l = R(() => ({
|
|
3999
3999
|
"font-size": `${a.value}px`,
|
|
4000
4000
|
height: "100%"
|
|
4001
4001
|
}));
|
|
@@ -4027,9 +4027,9 @@ function Ii(e, t, n, o) {
|
|
|
4027
4027
|
return { getEditorRender: r };
|
|
4028
4028
|
}
|
|
4029
4029
|
function Oi() {
|
|
4030
|
-
const e =
|
|
4030
|
+
const e = b(!1), t = b("复制成功");
|
|
4031
4031
|
return {
|
|
4032
|
-
feedbackStyle:
|
|
4032
|
+
feedbackStyle: R(() => {
|
|
4033
4033
|
const o = {
|
|
4034
4034
|
position: "absolute",
|
|
4035
4035
|
left: "50%",
|
|
@@ -4073,8 +4073,8 @@ function Pi(e, t) {
|
|
|
4073
4073
|
c = "" + c;
|
|
4074
4074
|
const v = c.length;
|
|
4075
4075
|
let x = "", k = 0;
|
|
4076
|
-
for (let
|
|
4077
|
-
const L = c.charAt(
|
|
4076
|
+
for (let F = 0; F < v; F++) {
|
|
4077
|
+
const L = c.charAt(F);
|
|
4078
4078
|
if (k++, encodeURI(L).length > 4 && k++, x = x.concat(L), k >= u)
|
|
4079
4079
|
return x = x.concat("..."), x;
|
|
4080
4080
|
}
|
|
@@ -4083,13 +4083,13 @@ function Pi(e, t) {
|
|
|
4083
4083
|
}
|
|
4084
4084
|
return "";
|
|
4085
4085
|
}
|
|
4086
|
-
const a =
|
|
4086
|
+
const a = R(() => !!e.value && !!e.value.date), i = R(() => {
|
|
4087
4087
|
const c = e.value && e.value.date || "";
|
|
4088
4088
|
return `${t.exception.happend} : ${c}`;
|
|
4089
|
-
}), r =
|
|
4089
|
+
}), r = R(() => !!e.value && !!e.value.detail), s = R(() => e.value ? n(e.value.detail) > 160 : !1), f = b(!1), l = R(() => f.value ? t.exception.collapse : t.exception.expand), m = R(() => {
|
|
4090
4090
|
const c = t.exception.detail + " : " + (e.value && e.value.detail) || "";
|
|
4091
4091
|
return f.value ? c : o(c, 160);
|
|
4092
|
-
}), d =
|
|
4092
|
+
}), d = R(() => ({
|
|
4093
4093
|
position: "absolute",
|
|
4094
4094
|
right: 0,
|
|
4095
4095
|
bottom: f.value ? 0 : "2px",
|
|
@@ -4119,16 +4119,16 @@ function Di(e) {
|
|
|
4119
4119
|
}, null);
|
|
4120
4120
|
}
|
|
4121
4121
|
function Ni(e, t, n, o, a) {
|
|
4122
|
-
const i =
|
|
4122
|
+
const i = b(e.exceptionInfo), r = R(() => {
|
|
4123
4123
|
const u = t.value === "question" ? "warning" : t.value, v = {
|
|
4124
4124
|
"f-icon": !0
|
|
4125
4125
|
}, x = `f-icon-${u}`;
|
|
4126
4126
|
return v[x] = !0, v;
|
|
4127
|
-
}), s =
|
|
4127
|
+
}), s = R(() => n.value || i.value && i.value.message), f = R(() => o.value), l = R(() => !!o.value), m = R(() => !!i.value);
|
|
4128
4128
|
function d() {
|
|
4129
4129
|
return m.value ? Pi(i, a) : l.value ? Di(f) : () => null;
|
|
4130
4130
|
}
|
|
4131
|
-
const p = d(), c =
|
|
4131
|
+
const p = d(), c = R(() => a.locale === "en" ? {
|
|
4132
4132
|
wordBreak: "keep-all",
|
|
4133
4133
|
overflowWrap: "break-word"
|
|
4134
4134
|
} : {});
|
|
@@ -4149,11 +4149,11 @@ function ji(e, t, n, o) {
|
|
|
4149
4149
|
onCopy: a
|
|
4150
4150
|
} = t, {
|
|
4151
4151
|
toShowFeedback: i
|
|
4152
|
-
} = n, r =
|
|
4152
|
+
} = n, r = b(o.exception.copySuccess || "复制成功"), s = b(o.exception.copy || "复制详细信息"), f = b(e.exceptionInfo || {
|
|
4153
4153
|
date: "",
|
|
4154
4154
|
message: "",
|
|
4155
4155
|
detail: ""
|
|
4156
|
-
}), l =
|
|
4156
|
+
}), l = R(() => f.value && f.value.detail || "");
|
|
4157
4157
|
function m(d) {
|
|
4158
4158
|
a(l.value).catch((p) => {
|
|
4159
4159
|
r.value = o.exception.copyFailed || "复制失败";
|
|
@@ -4171,12 +4171,12 @@ function ji(e, t, n, o) {
|
|
|
4171
4171
|
}, [s.value])]);
|
|
4172
4172
|
}
|
|
4173
4173
|
function Hi(e, t, n, o, a) {
|
|
4174
|
-
const i =
|
|
4174
|
+
const i = b(e.type), r = b(e.buttons), s = b(e.exceptionInfo), f = b(a.ok || e.okButtonText), l = b(a.cancel || e.cancelButtonText), m = b(e.showCancelButton), d = b(e.showOkButton), p = R(() => !!(r.value && r.value.length)), c = R(() => s.value && s.value.message && s.value.detail), u = R(() => !(r.value && r.value.length) && (d.value || m.value)), v = ji(e, n, o, a);
|
|
4175
4175
|
f.value === "关闭" ? f.value = a.close : f.value === "知道了" && (f.value = a.exception.roger);
|
|
4176
|
-
function x(
|
|
4176
|
+
function x(F) {
|
|
4177
4177
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
4178
4178
|
}
|
|
4179
|
-
function k(
|
|
4179
|
+
function k(F) {
|
|
4180
4180
|
i.value === "question" && t.emit("accept"), t.emit("close");
|
|
4181
4181
|
}
|
|
4182
4182
|
return () => C("div", {
|
|
@@ -4189,15 +4189,15 @@ function Hi(e, t, n, o, a) {
|
|
|
4189
4189
|
type: "button",
|
|
4190
4190
|
class: "btn btn-primary btn-lg",
|
|
4191
4191
|
onClick: k
|
|
4192
|
-
}, [f.value]), p.value && r.value.length && r.value.map((
|
|
4192
|
+
}, [f.value]), p.value && r.value.length && r.value.map((F) => C("button", {
|
|
4193
4193
|
type: "button",
|
|
4194
|
-
onClick:
|
|
4195
|
-
class:
|
|
4196
|
-
}, [
|
|
4197
|
-
class:
|
|
4198
|
-
}, null),
|
|
4194
|
+
onClick: F.handle,
|
|
4195
|
+
class: F.class
|
|
4196
|
+
}, [F.iconClass && C("span", {
|
|
4197
|
+
class: F.iconClass
|
|
4198
|
+
}, null), F.text]))]);
|
|
4199
4199
|
}
|
|
4200
|
-
function
|
|
4200
|
+
function $i(e) {
|
|
4201
4201
|
const { t, locale: n } = Dt();
|
|
4202
4202
|
function o(a, i, r) {
|
|
4203
4203
|
return i === r ? t(a) : i;
|
|
@@ -4228,14 +4228,14 @@ const pt = /* @__PURE__ */ Ye({
|
|
|
4228
4228
|
props: Si,
|
|
4229
4229
|
emits: ["accept", "reject", "close"],
|
|
4230
4230
|
setup(e, t) {
|
|
4231
|
-
const n =
|
|
4231
|
+
const n = $i(e), o = b(e.type), a = b(e.title), i = b(e.detail), r = R(() => {
|
|
4232
4232
|
const k = {
|
|
4233
4233
|
"modal-tips": !0,
|
|
4234
4234
|
"d-flex": !0,
|
|
4235
4235
|
"flex-row": !0
|
|
4236
|
-
},
|
|
4237
|
-
return k[
|
|
4238
|
-
}), s =
|
|
4236
|
+
}, F = `messager-type-${o.value}`;
|
|
4237
|
+
return k[F] = !0, k;
|
|
4238
|
+
}), s = R(() => {
|
|
4239
4239
|
const k = {
|
|
4240
4240
|
cursor: "default"
|
|
4241
4241
|
};
|
|
@@ -4392,20 +4392,20 @@ function pn(e, t) {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
return { judgeCanOpen: n };
|
|
4394
4394
|
}
|
|
4395
|
-
function
|
|
4396
|
-
const i =
|
|
4395
|
+
function Li(e, t, n, o, a) {
|
|
4396
|
+
const i = b(e.buttonBehavior), r = b(e.popupOnInput), s = R(() => ({
|
|
4397
4397
|
"input-group-append": !0,
|
|
4398
4398
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
4399
|
-
})), { judgeCanOpen: f } = pn(e, a), l =
|
|
4399
|
+
})), { judgeCanOpen: f } = pn(e, a), l = R(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), m = En(fn, null), d = b();
|
|
4400
4400
|
async function p(v) {
|
|
4401
4401
|
if (await f() && l.value) {
|
|
4402
4402
|
const x = !!t.slots.default;
|
|
4403
4403
|
if (i.value === "Modal") {
|
|
4404
|
-
const k = e.modalOptions,
|
|
4404
|
+
const k = e.modalOptions, F = m == null ? void 0 : m.open({
|
|
4405
4405
|
...k,
|
|
4406
4406
|
render: () => t.slots.default && t.slots.default()
|
|
4407
4407
|
});
|
|
4408
|
-
d.value =
|
|
4408
|
+
d.value = F == null ? void 0 : F.modalRef;
|
|
4409
4409
|
}
|
|
4410
4410
|
i.value === "Overlay" && Io.show({
|
|
4411
4411
|
// host: buttonEditRef.value,
|
|
@@ -4430,7 +4430,7 @@ function $i(e, t, n, o, a) {
|
|
|
4430
4430
|
};
|
|
4431
4431
|
}
|
|
4432
4432
|
function zi(e, t, n, o, a, i) {
|
|
4433
|
-
const r =
|
|
4433
|
+
const r = b(!1), s = R(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: f, hasClearClass: l } = i;
|
|
4434
4434
|
function m(u) {
|
|
4435
4435
|
r.value = u, l.value = u;
|
|
4436
4436
|
}
|
|
@@ -4462,13 +4462,13 @@ function zi(e, t, n, o, a, i) {
|
|
|
4462
4462
|
};
|
|
4463
4463
|
}
|
|
4464
4464
|
function Ai(e, t, n, o, a) {
|
|
4465
|
-
const i =
|
|
4465
|
+
const i = R(() => e.popupOnInput), r = R(() => e.popupOnFocus), { shouldPopupContent: s, closeAllPopover: f } = a, l = b(!1), m = R(() => e.enableTitle ? n.value : ""), d = R(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), p = R(() => e.readonly || !e.editable), c = b(!1), u = R(() => !e.disable && c.value), v = R(() => ({
|
|
4466
4466
|
"text-left": e.textAlign === "left",
|
|
4467
4467
|
"text-center": e.textAlign === "center",
|
|
4468
4468
|
"text-right": e.textAlign === "right",
|
|
4469
4469
|
"form-control": !0,
|
|
4470
4470
|
"f-utils-fill": !0
|
|
4471
|
-
})), x =
|
|
4471
|
+
})), x = R(() => ({
|
|
4472
4472
|
"input-group": !0,
|
|
4473
4473
|
"f-state-disabled": e.disable,
|
|
4474
4474
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
@@ -4479,7 +4479,7 @@ function Ai(e, t, n, o, a) {
|
|
|
4479
4479
|
function k(g, z = !0) {
|
|
4480
4480
|
n.value = g, z && (t.emit("change", g), t.emit("update:modelValue", g));
|
|
4481
4481
|
}
|
|
4482
|
-
function
|
|
4482
|
+
function F(g) {
|
|
4483
4483
|
s.value = !1, k(g, !0);
|
|
4484
4484
|
}
|
|
4485
4485
|
me(
|
|
@@ -4494,21 +4494,21 @@ function Ai(e, t, n, o, a) {
|
|
|
4494
4494
|
function P(g) {
|
|
4495
4495
|
t.emit("click", g), f(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
|
|
4496
4496
|
}
|
|
4497
|
-
function
|
|
4497
|
+
function w(g) {
|
|
4498
4498
|
!e.disable && !e.readonly && (c.value = !0, p.value || (t.emit("focus", g), r.value && !s.value && a.popup()));
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4500
|
+
function y(g) {
|
|
4501
4501
|
t.emit("input", g);
|
|
4502
4502
|
const z = g.target.value;
|
|
4503
4503
|
o.value = z, n.value !== z && k(z, e.updateOn === "change"), i.value && !s.value && a.popup();
|
|
4504
4504
|
}
|
|
4505
|
-
function
|
|
4505
|
+
function S(g) {
|
|
4506
4506
|
g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
|
|
4507
4507
|
}
|
|
4508
|
-
function
|
|
4508
|
+
function T(g) {
|
|
4509
4509
|
t.emit("keydown", g);
|
|
4510
4510
|
}
|
|
4511
|
-
function
|
|
4511
|
+
function M(g) {
|
|
4512
4512
|
g.key === "Enter" && (i.value || r.value) && a.hidePopup(), t.emit("keyup", g);
|
|
4513
4513
|
}
|
|
4514
4514
|
function _(g) {
|
|
@@ -4524,20 +4524,20 @@ function Ai(e, t, n, o, a) {
|
|
|
4524
4524
|
inputGroupClass: x,
|
|
4525
4525
|
hasClearClass: l,
|
|
4526
4526
|
changeTextBoxValue: k,
|
|
4527
|
-
commitValue:
|
|
4527
|
+
commitValue: F,
|
|
4528
4528
|
onBlurTextBox: L,
|
|
4529
4529
|
onClickTextBox: P,
|
|
4530
|
-
onFocusTextBox:
|
|
4531
|
-
onInput:
|
|
4532
|
-
onKeyDownTextBox:
|
|
4533
|
-
onKeyUpTextBox:
|
|
4534
|
-
onMouseDownTextBox:
|
|
4530
|
+
onFocusTextBox: w,
|
|
4531
|
+
onInput: y,
|
|
4532
|
+
onKeyDownTextBox: T,
|
|
4533
|
+
onKeyUpTextBox: M,
|
|
4534
|
+
onMouseDownTextBox: S,
|
|
4535
4535
|
onTextBoxValueChange: _
|
|
4536
4536
|
};
|
|
4537
4537
|
}
|
|
4538
4538
|
const qe = "FarrisVue_PopoverInstancesKey";
|
|
4539
4539
|
function Vi(e, t, n, o) {
|
|
4540
|
-
const a =
|
|
4540
|
+
const a = b(), i = b(!1), { judgeCanOpen: r } = pn(e, o);
|
|
4541
4541
|
me(() => a.value, (c, u) => {
|
|
4542
4542
|
window[qe] = window[qe] || /* @__PURE__ */ new WeakMap(), c ? window[qe].set(n.value, c) : window[qe].delete(n.value);
|
|
4543
4543
|
});
|
|
@@ -4579,7 +4579,7 @@ function Vi(e, t, n, o) {
|
|
|
4579
4579
|
return { hidePopup: d, showPopup: p, popup: m, shouldPopupContent: i, togglePopup: l, popoverRef: a, closeAllPopover: s };
|
|
4580
4580
|
}
|
|
4581
4581
|
function _i(e, t, n) {
|
|
4582
|
-
const o =
|
|
4582
|
+
const o = b(), {
|
|
4583
4583
|
isTextBoxReadonly: a,
|
|
4584
4584
|
textBoxClass: i,
|
|
4585
4585
|
textBoxPlaceholder: r,
|
|
@@ -4592,25 +4592,22 @@ function _i(e, t, n) {
|
|
|
4592
4592
|
onKeyUpTextBox: c,
|
|
4593
4593
|
onMouseDownTextBox: u,
|
|
4594
4594
|
onTextBoxValueChange: v
|
|
4595
|
-
} = n, x =
|
|
4595
|
+
} = n, x = b(e.id), {
|
|
4596
4596
|
uuid: k
|
|
4597
|
-
} =
|
|
4598
|
-
"border-top-right-radius": "6px",
|
|
4599
|
-
"border-bottom-right-radius": "6px"
|
|
4600
|
-
}));
|
|
4597
|
+
} = $n();
|
|
4601
4598
|
et(() => {
|
|
4602
|
-
var
|
|
4603
|
-
e.selectOnCreated && ((
|
|
4599
|
+
var y, S;
|
|
4600
|
+
e.selectOnCreated && ((y = o.value) == null || y.select()), e.focusOnCreated && ((S = o.value) == null || S.focus({
|
|
4604
4601
|
preventScroll: !0
|
|
4605
4602
|
})), x.value || (x.value = "button-edit_" + k(8)), x.value = x.value + "-textbox";
|
|
4606
4603
|
});
|
|
4607
|
-
const
|
|
4608
|
-
|
|
4609
|
-
},
|
|
4610
|
-
|
|
4604
|
+
const F = b(!1), L = (y) => {
|
|
4605
|
+
y.preventDefault(), F.value = !0;
|
|
4606
|
+
}, P = (y) => {
|
|
4607
|
+
y.preventDefault(), F.value = !1, d(y);
|
|
4611
4608
|
};
|
|
4612
|
-
function
|
|
4613
|
-
|
|
4609
|
+
function w(y) {
|
|
4610
|
+
F.value || d(y);
|
|
4614
4611
|
}
|
|
4615
4612
|
return () => C("input", {
|
|
4616
4613
|
id: e.id ? e.id + "-textbox" : void 0,
|
|
@@ -4618,7 +4615,6 @@ function _i(e, t, n) {
|
|
|
4618
4615
|
name: "input-group-value",
|
|
4619
4616
|
autocomplete: e.autoComplete ? "on" : "off",
|
|
4620
4617
|
class: i.value,
|
|
4621
|
-
style: M.value,
|
|
4622
4618
|
disabled: e.disable,
|
|
4623
4619
|
maxlength: e.maxLength,
|
|
4624
4620
|
minlength: e.minLength,
|
|
@@ -4632,22 +4628,22 @@ function _i(e, t, n) {
|
|
|
4632
4628
|
onChange: v,
|
|
4633
4629
|
onClick: l,
|
|
4634
4630
|
onFocus: m,
|
|
4635
|
-
onInput:
|
|
4631
|
+
onInput: w,
|
|
4636
4632
|
onKeydown: p,
|
|
4637
4633
|
onKeyup: c,
|
|
4638
4634
|
onMousedown: u,
|
|
4639
|
-
onCompositionend:
|
|
4640
|
-
onCompositionstart:
|
|
4635
|
+
onCompositionend: P,
|
|
4636
|
+
onCompositionstart: L
|
|
4641
4637
|
}, null);
|
|
4642
4638
|
}
|
|
4643
4639
|
function Wi(e, t, n) {
|
|
4644
|
-
const o =
|
|
4640
|
+
const o = b(e.separator), a = R(() => e.readonly || e.disable), {
|
|
4645
4641
|
changeTextBoxValue: i,
|
|
4646
4642
|
onFocusTextBox: r,
|
|
4647
4643
|
onBlurTextBox: s,
|
|
4648
4644
|
onClickTextBox: f,
|
|
4649
4645
|
textBoxPlaceholder: l
|
|
4650
|
-
} = n, m =
|
|
4646
|
+
} = n, m = R(() => t.value ? t.value.split(o.value).map((u) => ({
|
|
4651
4647
|
name: u,
|
|
4652
4648
|
selectable: !0
|
|
4653
4649
|
})) : []);
|
|
@@ -4657,7 +4653,7 @@ function Wi(e, t, n) {
|
|
|
4657
4653
|
me(() => e.separator, (u) => {
|
|
4658
4654
|
o.value = u;
|
|
4659
4655
|
});
|
|
4660
|
-
const p =
|
|
4656
|
+
const p = b(!e.disable && !e.readonly);
|
|
4661
4657
|
me([() => e.disable, () => e.readonly], ([u, v], [x, k]) => {
|
|
4662
4658
|
p.value = !u && !v;
|
|
4663
4659
|
});
|
|
@@ -4689,7 +4685,7 @@ function qi(e, t, n, o) {
|
|
|
4689
4685
|
enableClearButton: f,
|
|
4690
4686
|
showClearButton: l,
|
|
4691
4687
|
onClearValue: m
|
|
4692
|
-
} = o, d =
|
|
4688
|
+
} = o, d = b(), p = Nn((u) => {
|
|
4693
4689
|
i(u);
|
|
4694
4690
|
}, e.buttonBehavior === "Modal" ? 0 : 200), c = () => {
|
|
4695
4691
|
t.emit("beforeClearValue");
|
|
@@ -4721,7 +4717,7 @@ function qi(e, t, n, o) {
|
|
|
4721
4717
|
};
|
|
4722
4718
|
}
|
|
4723
4719
|
function Gi(e, t, n) {
|
|
4724
|
-
const o =
|
|
4720
|
+
const o = b(e.popupMinWidth), {
|
|
4725
4721
|
hidePopup: a,
|
|
4726
4722
|
popoverRef: i
|
|
4727
4723
|
} = n;
|
|
@@ -4750,58 +4746,55 @@ const Ui = /* @__PURE__ */ Ye({
|
|
|
4750
4746
|
props: Bo,
|
|
4751
4747
|
emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue", "beforeClearValue"],
|
|
4752
4748
|
setup(e, t) {
|
|
4753
|
-
const n =
|
|
4749
|
+
const n = b(), o = b(e.customClass), a = b(e.modelValue), i = Vi(e, t, n, a), {
|
|
4754
4750
|
shouldPopupContent: r,
|
|
4755
4751
|
hidePopup: s,
|
|
4756
4752
|
showPopup: f,
|
|
4757
4753
|
togglePopup: l
|
|
4758
|
-
} = i, m =
|
|
4754
|
+
} = i, m = Li(e, t, n, i, a), d = b(""), p = Ai(e, t, a, d, i), {
|
|
4759
4755
|
hasFocusedTextBox: c,
|
|
4760
4756
|
commitValue: u,
|
|
4761
4757
|
inputGroupClass: v
|
|
4762
4758
|
} = p, x = zi(e, t, a, c, d, p), {
|
|
4763
4759
|
onMouseEnterTextBox: k,
|
|
4764
|
-
onMouseLeaveTextBox:
|
|
4765
|
-
} = x, L =
|
|
4766
|
-
const
|
|
4760
|
+
onMouseLeaveTextBox: F
|
|
4761
|
+
} = x, L = R(() => {
|
|
4762
|
+
const j = {
|
|
4767
4763
|
"f-button-edit": !0,
|
|
4768
4764
|
"f-cmp-inputgroup": !0,
|
|
4769
4765
|
"f-button-edit-nowrap": !e.wrapText
|
|
4770
4766
|
};
|
|
4771
|
-
return o.value && o.value.split(" ").reduce((
|
|
4772
|
-
}), P =
|
|
4767
|
+
return o.value && o.value.split(" ").reduce((H, W) => (H[W] = !0, H), j), j;
|
|
4768
|
+
}), P = R(() => ({
|
|
4773
4769
|
overflow: e.wrapText ? "hidden" : ""
|
|
4774
|
-
})), T = O(() => ({
|
|
4775
|
-
paddingLeft: "3px",
|
|
4776
|
-
backgroundColor: "#fff"
|
|
4777
4770
|
}));
|
|
4778
|
-
function
|
|
4771
|
+
function w() {
|
|
4779
4772
|
if (!e.multiSelect || e.inputType !== "tag" || !n.value)
|
|
4780
4773
|
return 0;
|
|
4781
|
-
let
|
|
4782
|
-
const
|
|
4783
|
-
return
|
|
4774
|
+
let j = 0;
|
|
4775
|
+
const H = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
4776
|
+
return H && H.length && (j = H.map((W) => W.offsetTop).filter((W) => W > 20).length), j;
|
|
4784
4777
|
}
|
|
4785
|
-
const
|
|
4778
|
+
const y = b(w());
|
|
4786
4779
|
Rn(() => {
|
|
4787
|
-
|
|
4780
|
+
y.value = w();
|
|
4788
4781
|
});
|
|
4789
4782
|
function S() {
|
|
4790
|
-
return e.multiSelect && e.inputType === "tag" ? () => C(Xe, null, [Wi(e, a, p)(), !!
|
|
4783
|
+
return e.multiSelect && e.inputType === "tag" ? () => C(Xe, null, [Wi(e, a, p)(), !!y.value && C("div", {
|
|
4791
4784
|
class: "d-flex flex-row mr-2 more-tags",
|
|
4792
4785
|
"more-tags": !0
|
|
4793
4786
|
}, [C("span", {
|
|
4794
4787
|
class: "multi--more-text"
|
|
4795
|
-
}, [Gt("+"),
|
|
4788
|
+
}, [Gt("+"), y.value])])]) : _i(e, a, p);
|
|
4796
4789
|
}
|
|
4797
|
-
let
|
|
4790
|
+
let T = S();
|
|
4798
4791
|
me([() => e.multiSelect, () => e.inputType], () => {
|
|
4799
|
-
|
|
4792
|
+
T = S();
|
|
4800
4793
|
});
|
|
4801
4794
|
const {
|
|
4802
|
-
renderButtonGroup:
|
|
4803
|
-
buttonHandleElement:
|
|
4804
|
-
} = qi(e, t, m, x),
|
|
4795
|
+
renderButtonGroup: M,
|
|
4796
|
+
buttonHandleElement: _
|
|
4797
|
+
} = qi(e, t, m, x), g = Gi(e, t, i), z = {
|
|
4805
4798
|
displayText: d,
|
|
4806
4799
|
commitValue: u,
|
|
4807
4800
|
elementRef: n,
|
|
@@ -4811,22 +4804,22 @@ const Ui = /* @__PURE__ */ Ye({
|
|
|
4811
4804
|
shouldPopupContent: r,
|
|
4812
4805
|
togglePopup: l,
|
|
4813
4806
|
openDialog: () => {
|
|
4814
|
-
|
|
4807
|
+
_.value && e.buttonBehavior === "Modal" && _.value.click();
|
|
4815
4808
|
},
|
|
4816
4809
|
getModal: () => {
|
|
4817
|
-
var
|
|
4818
|
-
return e.buttonBehavior === "Modal" ? (
|
|
4810
|
+
var j;
|
|
4811
|
+
return e.buttonBehavior === "Modal" ? (j = m.modalRef.value) == null ? void 0 : j.value : null;
|
|
4819
4812
|
}
|
|
4820
4813
|
};
|
|
4821
4814
|
return et(() => {
|
|
4822
|
-
n.value.componentInstance =
|
|
4815
|
+
n.value.componentInstance = z, window.onresize = () => {
|
|
4823
4816
|
document.body.click();
|
|
4824
4817
|
};
|
|
4825
4818
|
}), Pn(() => {
|
|
4826
|
-
var
|
|
4827
|
-
window.onresize = null, (
|
|
4828
|
-
}), t.expose(
|
|
4829
|
-
var
|
|
4819
|
+
var j;
|
|
4820
|
+
window.onresize = null, (j = window[qe]) == null || j.delete(n.value);
|
|
4821
|
+
}), t.expose(z), () => {
|
|
4822
|
+
var j, H;
|
|
4830
4823
|
return C(Xe, null, [C("div", vt(t.attrs, {
|
|
4831
4824
|
ref: n,
|
|
4832
4825
|
class: L.value,
|
|
@@ -4835,10 +4828,9 @@ const Ui = /* @__PURE__ */ Ye({
|
|
|
4835
4828
|
}), [C("div", {
|
|
4836
4829
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
4837
4830
|
class: v.value,
|
|
4838
|
-
style: T.value,
|
|
4839
4831
|
onMouseenter: k,
|
|
4840
|
-
onMouseleave:
|
|
4841
|
-
}, [(
|
|
4832
|
+
onMouseleave: F
|
|
4833
|
+
}, [(H = (j = t.slots).precontent) == null ? void 0 : H.call(j), T(), M()])]), r.value && g()]);
|
|
4842
4834
|
};
|
|
4843
4835
|
}
|
|
4844
4836
|
}), Dl = Xt(Ui);
|