@farris/ui-vue 1.6.5-beta.8 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -6
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +220 -220
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +381 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15445 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4685 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6989 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var hn = Object.defineProperty;
|
|
2
2
|
var yn = (t, e, n) => e in t ? hn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Z = (t, e, n) => yn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { ref as
|
|
4
|
+
import { ref as b, createVNode as E, Fragment as ot, watch as Ie, defineComponent as it, computed as H, nextTick as Bt, onBeforeMount as bn, onMounted as ft, onUnmounted as pt, Teleport as wn, Transition as At, shallowRef as Cn, createApp as Ut, render as Ft, h as xn, cloneVNode as Sn, mergeProps as Ot, reactive as De, createTextVNode as Tn } from "vue";
|
|
5
5
|
import { resolveAppearance as En, createPropsResolver as _t } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import { useI18n as Rt } from "vue-i18n";
|
|
7
7
|
import { getMaxZIndex as Mn, getCustomClass as In, withInstall as Fn, FormSchemaEntityField$Type as $t, FormSchemaEntityFieldTypeName as Ht } from "../common/index.esm.js";
|
|
@@ -390,7 +390,7 @@ class _e {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
function Fo(t, e) {
|
|
393
|
-
const n =
|
|
393
|
+
const n = b(), o = b(), i = b(), a = b(), r = b(), u = b(), s = b(), l = b(), p = b(), c = b(), m = b(), d = b(t.resizeable), f = b(), g = b(t.draggable), C = b(!1);
|
|
394
394
|
function F() {
|
|
395
395
|
const R = o.value || document.body, k = window.getComputedStyle(R);
|
|
396
396
|
if (!k || !n.value)
|
|
@@ -439,13 +439,13 @@ function Fo(t, e) {
|
|
|
439
439
|
const k = R.x, G = R.y;
|
|
440
440
|
l.value.n ? (s.value.y = r.value.y + G, u.value.height = a.value.height - G) : l.value.s && (u.value.height = a.value.height + G), l.value.e ? u.value.width = a.value.width + k : l.value.w && (u.value.width = a.value.width - k, s.value.x = r.value.x + k), w(), P(), z();
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function x(R) {
|
|
443
443
|
if (!p.value)
|
|
444
444
|
return;
|
|
445
445
|
const k = re.fromEvent(R);
|
|
446
446
|
k && h(k);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function S() {
|
|
449
449
|
if (n.value) {
|
|
450
450
|
const {
|
|
451
451
|
width: R,
|
|
@@ -468,62 +468,62 @@ function Fo(t, e) {
|
|
|
468
468
|
}
|
|
469
469
|
function M(R) {
|
|
470
470
|
if (n.value) {
|
|
471
|
-
const k =
|
|
471
|
+
const k = S();
|
|
472
472
|
m.value = k;
|
|
473
473
|
}
|
|
474
|
-
i.value = void 0, a.value = null, r.value = null, u.value = null, s.value = null, l.value = null, p.value = null, document.removeEventListener("mousemove",
|
|
474
|
+
i.value = void 0, a.value = null, r.value = null, u.value = null, s.value = null, l.value = null, p.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", M);
|
|
475
475
|
}
|
|
476
476
|
function U() {
|
|
477
|
-
document.addEventListener("mousemove",
|
|
477
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", M);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function y(R) {
|
|
480
480
|
R instanceof MouseEvent && R.button === 2 || g.value && (document.body.click(), R.stopPropagation(), R.preventDefault(), i.value = re.fromEvent(R), p.value = R.target, O(R), U());
|
|
481
481
|
}
|
|
482
482
|
function _(R) {
|
|
483
483
|
return n.value = R, d.value && E(ot, null, [E("div", {
|
|
484
484
|
class: "fv-resizable-handle fv-resizable-n",
|
|
485
485
|
type: "n",
|
|
486
|
-
onMousedown: (k) =>
|
|
486
|
+
onMousedown: (k) => y(k)
|
|
487
487
|
}, null), E("div", {
|
|
488
488
|
class: "fv-resizable-handle fv-resizable-e",
|
|
489
489
|
type: "e",
|
|
490
|
-
onMousedown: (k) =>
|
|
490
|
+
onMousedown: (k) => y(k)
|
|
491
491
|
}, null), E("div", {
|
|
492
492
|
class: "fv-resizable-handle fv-resizable-s",
|
|
493
493
|
type: "s",
|
|
494
|
-
onMousedown: (k) =>
|
|
494
|
+
onMousedown: (k) => y(k)
|
|
495
495
|
}, null), E("div", {
|
|
496
496
|
class: "fv-resizable-handle fv-resizable-w",
|
|
497
497
|
type: "w",
|
|
498
|
-
onMousedown: (k) =>
|
|
498
|
+
onMousedown: (k) => y(k)
|
|
499
499
|
}, null), E("div", {
|
|
500
500
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
501
501
|
type: "ne",
|
|
502
|
-
onMousedown: (k) =>
|
|
502
|
+
onMousedown: (k) => y(k)
|
|
503
503
|
}, null), E("div", {
|
|
504
504
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
505
505
|
type: "se",
|
|
506
|
-
onMousedown: (k) =>
|
|
506
|
+
onMousedown: (k) => y(k)
|
|
507
507
|
}, null), E("div", {
|
|
508
508
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
509
509
|
type: "sw",
|
|
510
|
-
onMousedown: (k) =>
|
|
510
|
+
onMousedown: (k) => y(k)
|
|
511
511
|
}, null), E("div", {
|
|
512
512
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
513
513
|
type: "nw",
|
|
514
|
-
onMousedown: (k) =>
|
|
514
|
+
onMousedown: (k) => y(k)
|
|
515
515
|
}, null)]);
|
|
516
516
|
}
|
|
517
517
|
function A(R = !0) {
|
|
518
518
|
document.body.click();
|
|
519
519
|
const k = o.value || document.body, G = _e.getCurrent(k), j = n.value;
|
|
520
|
-
R && j && (f.value =
|
|
520
|
+
R && j && (f.value = S(), f.value.transform = j.style.transform), G && j && (u.value = G, u.value.height -= 14, u.value.width -= 14, j.style.height = u.value.height + "px", j.style.width = u.value.width + "px", j.style.left = "7px", j.style.top = "7px", j.style.transform = "", m.value = {
|
|
521
521
|
size: u.value,
|
|
522
522
|
position: {
|
|
523
523
|
x: 0,
|
|
524
524
|
y: 0
|
|
525
525
|
}
|
|
526
|
-
}, g.value = !1,
|
|
526
|
+
}, g.value = !1, C.value = !0);
|
|
527
527
|
}
|
|
528
528
|
function D() {
|
|
529
529
|
var R, k;
|
|
@@ -540,7 +540,7 @@ function Fo(t, e) {
|
|
|
540
540
|
ee.style.height = G.height + "px", ee.style.width = G.width + "px", ee.style.left = `${j.x}px`, ee.style.top = `${j.y}px`, ee.style.transform = "", m.value = {
|
|
541
541
|
size: G,
|
|
542
542
|
position: j
|
|
543
|
-
}, g.value = t.draggable,
|
|
543
|
+
}, g.value = t.draggable, C.value = !1;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
function q() {
|
|
@@ -557,7 +557,7 @@ function Fo(t, e) {
|
|
|
557
557
|
}
|
|
558
558
|
function J() {
|
|
559
559
|
const R = () => {
|
|
560
|
-
|
|
560
|
+
C.value ? A(!1) : q(), document.body.click();
|
|
561
561
|
};
|
|
562
562
|
return window.addEventListener("resize", R), () => {
|
|
563
563
|
window.removeEventListener("resize", R);
|
|
@@ -571,84 +571,84 @@ function Fo(t, e) {
|
|
|
571
571
|
maximize: A,
|
|
572
572
|
restore: D,
|
|
573
573
|
allowDrag: g,
|
|
574
|
-
isMaximized:
|
|
574
|
+
isMaximized: C,
|
|
575
575
|
unWindowResizeHandle: ie,
|
|
576
576
|
moveToCenter: q
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
579
|
function ko(t, e, n) {
|
|
580
|
-
const o =
|
|
581
|
-
Ie(() => n.value, (
|
|
582
|
-
r.value.style.cursor =
|
|
580
|
+
const o = b(), i = b(t.draggable), a = b(t.lockAxis), r = b(), u = b(), s = b(!1), l = b(new re(0, 0)), p = b(new re(0, 0)), c = b(new re(0, 0)), m = b(new re(0, 0));
|
|
581
|
+
Ie(() => n.value, (x) => {
|
|
582
|
+
r.value.style.cursor = x ? "move" : "default";
|
|
583
583
|
});
|
|
584
|
-
function d(
|
|
585
|
-
if (
|
|
584
|
+
function d(x, S) {
|
|
585
|
+
if (S.tagName === "BUTTON")
|
|
586
586
|
return !1;
|
|
587
|
-
if (
|
|
587
|
+
if (S === x)
|
|
588
588
|
return !0;
|
|
589
|
-
for (const M in
|
|
590
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
589
|
+
for (const M in S.children)
|
|
590
|
+
if (Object.prototype.hasOwnProperty.call(S.children, M) && d(x, S.children[M]))
|
|
591
591
|
return !0;
|
|
592
592
|
return !1;
|
|
593
593
|
}
|
|
594
594
|
function f() {
|
|
595
|
-
var U,
|
|
596
|
-
let
|
|
597
|
-
a.value === "x" ? (
|
|
598
|
-
const M = `translate3d(${Math.round(
|
|
599
|
-
o.value && (o.value.style.transform = M), m.value.x =
|
|
595
|
+
var U, y;
|
|
596
|
+
let x = c.value.x + p.value.x, S = c.value.y + p.value.y;
|
|
597
|
+
a.value === "x" ? (x = ((U = l.value) == null ? void 0 : U.x) || 0, c.value.x = 0) : a.value === "y" && (S = ((y = l.value) == null ? void 0 : y.y) || 0, c.value.y = 0);
|
|
598
|
+
const M = `translate3d(${Math.round(x)}px, ${Math.round(S)}px, 0px)`;
|
|
599
|
+
o.value && (o.value.style.transform = M), m.value.x = x, m.value.y = S;
|
|
600
600
|
}
|
|
601
601
|
function g() {
|
|
602
602
|
if (!u.value || !o.value)
|
|
603
603
|
return null;
|
|
604
|
-
const
|
|
605
|
-
top:
|
|
606
|
-
right:
|
|
607
|
-
bottom:
|
|
608
|
-
left:
|
|
604
|
+
const x = u.value.getBoundingClientRect(), S = o.value.getBoundingClientRect(), M = {
|
|
605
|
+
top: x.top < S.top,
|
|
606
|
+
right: x.right > S.right,
|
|
607
|
+
bottom: x.bottom > S.bottom,
|
|
608
|
+
left: x.left < S.left
|
|
609
609
|
};
|
|
610
|
-
return M.top || (c.value.y -=
|
|
610
|
+
return M.top || (c.value.y -= S.top - x.top), M.bottom || (c.value.y -= S.bottom - x.bottom), M.right || (c.value.x -= S.right - x.right), M.left || (c.value.x -= S.left - x.left), f(), M;
|
|
611
611
|
}
|
|
612
|
-
function x
|
|
613
|
-
|
|
612
|
+
function C(x) {
|
|
613
|
+
x && (l.value && x.subtract(l.value), c.value.set(x), f(), g());
|
|
614
614
|
}
|
|
615
|
-
function F(
|
|
616
|
-
s.value && i.value && (
|
|
615
|
+
function F(x) {
|
|
616
|
+
s.value && i.value && (x.stopPropagation(), x.preventDefault(), C(re.fromEvent(x, r.value)));
|
|
617
617
|
}
|
|
618
618
|
function O() {
|
|
619
|
-
var
|
|
620
|
-
s.value && (s.value = !1, p.value.add(c.value), c.value.reset(), (
|
|
619
|
+
var x;
|
|
620
|
+
s.value && (s.value = !1, p.value.add(c.value), c.value.reset(), (x = o.value) == null || x.classList.remove("ng-dragging"), e.emit("stopMove"), document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", O));
|
|
621
621
|
}
|
|
622
622
|
function z() {
|
|
623
623
|
!s.value && r.value && (s.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", F), document.addEventListener("mouseup", O));
|
|
624
624
|
}
|
|
625
625
|
function P() {
|
|
626
626
|
if (o.value) {
|
|
627
|
-
const
|
|
628
|
-
p.value.set(
|
|
627
|
+
const x = re.getTransformInfo(o.value);
|
|
628
|
+
p.value.set(x);
|
|
629
629
|
return;
|
|
630
630
|
}
|
|
631
631
|
p.value.reset();
|
|
632
632
|
}
|
|
633
|
-
function w(
|
|
634
|
-
if (!n.value ||
|
|
633
|
+
function w(x) {
|
|
634
|
+
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
635
635
|
return;
|
|
636
|
-
const
|
|
637
|
-
r.value !== void 0 &&
|
|
636
|
+
const S = x.target || x.srcElement;
|
|
637
|
+
r.value !== void 0 && S && !d(S, r.value) || i.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), l.value = re.fromEvent(x, o.value), P(), z());
|
|
638
638
|
}
|
|
639
|
-
function h(
|
|
640
|
-
if (i.value &&
|
|
641
|
-
if (
|
|
642
|
-
r.value =
|
|
639
|
+
function h(x, S, M) {
|
|
640
|
+
if (i.value && S) {
|
|
641
|
+
if (x)
|
|
642
|
+
r.value = x;
|
|
643
643
|
else if (t.dragHandle) {
|
|
644
644
|
if (t.dragHandle instanceof HTMLElement)
|
|
645
645
|
r.value = t.dragHandle;
|
|
646
646
|
else if (typeof t.dragHandle == "string") {
|
|
647
|
-
const U =
|
|
647
|
+
const U = S.querySelector(t.dragHandle);
|
|
648
648
|
U && (r.value = U);
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
o.value =
|
|
651
|
+
o.value = S, u.value = M, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", w)) : i.value = !1;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
return {
|
|
@@ -667,7 +667,7 @@ function Wt(t, e) {
|
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
function Bo(t, e) {
|
|
670
|
-
const n =
|
|
670
|
+
const n = b(t.enableEsc);
|
|
671
671
|
let o = null;
|
|
672
672
|
return n.value ? (o = Wt("Escape", (i) => {
|
|
673
673
|
e.emit("esc", { event: i.event, type: "esc" });
|
|
@@ -676,7 +676,7 @@ function Bo(t, e) {
|
|
|
676
676
|
}) : null;
|
|
677
677
|
}
|
|
678
678
|
function Oo(t, e) {
|
|
679
|
-
const n =
|
|
679
|
+
const n = b(t.enableEnter);
|
|
680
680
|
let o = null;
|
|
681
681
|
return n.value ? (o = Wt("Enter", (i) => {
|
|
682
682
|
e.emit("enter", { event: i.event, type: "enter" });
|
|
@@ -689,11 +689,11 @@ const qe = /* @__PURE__ */ it({
|
|
|
689
689
|
props: qt,
|
|
690
690
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
691
691
|
setup(t, e) {
|
|
692
|
-
const n =
|
|
692
|
+
const n = b(t.width || 300), o = b(t.height || 200), i = b(t.modelValue), a = b(""), r = b(t.class), u = b(t.fitContent), s = b(t.showHeader), l = b(""), p = b(t.showCloseButton), c = b(t.showMaxButton), m = b(!1), d = b(t.dialogType), f = b(t.src), g = b(""), C = b(t.showButtons), F = b(t.title), O = b(t.containment || null), z = b(), {
|
|
693
693
|
t: P
|
|
694
694
|
} = Rt();
|
|
695
695
|
F.value === "错误提示" && (F.value = P("messageBox.errorTitle"));
|
|
696
|
-
const w =
|
|
696
|
+
const w = b(!1);
|
|
697
697
|
function h(T, X) {
|
|
698
698
|
const se = X ? "accept" : "cancel";
|
|
699
699
|
Promise.resolve().then(() => {
|
|
@@ -705,7 +705,7 @@ const qe = /* @__PURE__ */ it({
|
|
|
705
705
|
ue && (i.value = !1, e.emit("update:modelValue", !1), X != null && e.emit(X ? "accept" : "cancel"), e.emit("closed", T));
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const x = [{
|
|
709
709
|
name: "cancel",
|
|
710
710
|
text: P("messageBox.cancel") || "取消",
|
|
711
711
|
class: "btn btn-secondary",
|
|
@@ -719,7 +719,7 @@ const qe = /* @__PURE__ */ it({
|
|
|
719
719
|
handle: (T) => {
|
|
720
720
|
h(T, !0);
|
|
721
721
|
}
|
|
722
|
-
}],
|
|
722
|
+
}], S = b(t.buttons && t.buttons.length ? t.buttons : x), M = H(() => !!l.value), U = H(() => !!C.value && !!S.value), y = b(), _ = b(), A = b(!1), {
|
|
723
723
|
renderResizeBar: D,
|
|
724
724
|
maximize: q,
|
|
725
725
|
restore: J,
|
|
@@ -742,12 +742,12 @@ const qe = /* @__PURE__ */ it({
|
|
|
742
742
|
T !== X && (F.value = T);
|
|
743
743
|
}), Ie(() => t.modelValue, (T, X) => {
|
|
744
744
|
T !== X && (i.value = T, i.value && t.draggable && Bt(() => {
|
|
745
|
-
_.value && !O.value && (O.value = _.value.parentElement, ie.value = O.value, ee(
|
|
745
|
+
_.value && !O.value && (O.value = _.value.parentElement, ie.value = O.value, ee(y.value, _.value, ie.value), j());
|
|
746
746
|
}), T || (O.value && (O.value = null), ge())), i.value ? w.value = ve() : (A.value = !1, k.value = t.draggable);
|
|
747
747
|
}), Ie(() => t.showHeader, (T, X) => {
|
|
748
748
|
T !== X && (s.value = T);
|
|
749
749
|
}), Ie(() => t.showButtons, (T, X) => {
|
|
750
|
-
T !== X && (
|
|
750
|
+
T !== X && (C.value = T);
|
|
751
751
|
}), Ie(() => R.value, (T, X) => {
|
|
752
752
|
const se = T || {}, ue = X || {};
|
|
753
753
|
JSON.stringify(se) !== JSON.stringify(ue) && e.emit("resize", {
|
|
@@ -826,13 +826,13 @@ const qe = /* @__PURE__ */ it({
|
|
|
826
826
|
T.handle && await T.handle(X, T) && e.emit("closed", X);
|
|
827
827
|
}
|
|
828
828
|
function Oe(T) {
|
|
829
|
-
T.width && (n.value = T.width), T.height && (o.value = T.height), T.buttons && (
|
|
829
|
+
T.width && (n.value = T.width), T.height && (o.value = T.height), T.buttons && (S.value = T.buttons), T.title && (F.value = T.title);
|
|
830
830
|
}
|
|
831
831
|
let Re = null, Se = null;
|
|
832
832
|
bn(() => {
|
|
833
833
|
w.value = ve();
|
|
834
834
|
}), ft(() => {
|
|
835
|
-
_.value && !O.value && (O.value = _.value.parentElement, ie.value = O.value, ee(
|
|
835
|
+
_.value && !O.value && (O.value = _.value.parentElement, ie.value = O.value, ee(y.value, _.value, ie.value)), Y.value && document.body.classList.add("modal-open"), Re = Bo(t, e), Se = Oo(t, e);
|
|
836
836
|
}), pt(() => {
|
|
837
837
|
G && G(), Re && Re.remove(), Se && Se.remove();
|
|
838
838
|
}), e.expose({
|
|
@@ -865,8 +865,8 @@ const qe = /* @__PURE__ */ it({
|
|
|
865
865
|
return E("div", {
|
|
866
866
|
class: "modal-footer",
|
|
867
867
|
style: Ge.value
|
|
868
|
-
}, [
|
|
869
|
-
const X =
|
|
868
|
+
}, [S.value && S.value.map((T) => {
|
|
869
|
+
const X = b(T.disabled);
|
|
870
870
|
return E("button", {
|
|
871
871
|
name: T.name,
|
|
872
872
|
type: "button",
|
|
@@ -882,7 +882,7 @@ const qe = /* @__PURE__ */ it({
|
|
|
882
882
|
}
|
|
883
883
|
function ze() {
|
|
884
884
|
return E("div", {
|
|
885
|
-
ref:
|
|
885
|
+
ref: y,
|
|
886
886
|
class: "modal-header",
|
|
887
887
|
style: Be.value
|
|
888
888
|
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : E("div", {
|
|
@@ -959,11 +959,11 @@ function Ro(t) {
|
|
|
959
959
|
pt(() => {
|
|
960
960
|
document.body.removeChild(e);
|
|
961
961
|
});
|
|
962
|
-
const a =
|
|
962
|
+
const a = b(), r = b(t.class || ""), u = b(!!t.showButtons), s = b(!!t.showHeader), l = b(t.showCloseButton == null ? !0 : t.showCloseButton), p = b(!0), c = b(t.title || ""), m = t.acceptCallback || (() => {
|
|
963
963
|
}), d = t.rejectCallback || (() => {
|
|
964
964
|
}), f = t.closedCallback || ((z) => {
|
|
965
965
|
}), g = t.resizeHandle || ((z) => {
|
|
966
|
-
}),
|
|
966
|
+
}), C = t.stopMoveHandle || ((z) => {
|
|
967
967
|
}), F = Gt(t), O = (z) => {
|
|
968
968
|
p.value = !1, n.unmount(), f(z);
|
|
969
969
|
};
|
|
@@ -988,7 +988,7 @@ function Ro(t) {
|
|
|
988
988
|
fitContent: t.fitContent == null ? !0 : t.fitContent,
|
|
989
989
|
onClosed: O,
|
|
990
990
|
onResize: g,
|
|
991
|
-
onStopMove:
|
|
991
|
+
onStopMove: C
|
|
992
992
|
}, {
|
|
993
993
|
default: () => [F && F(n)]
|
|
994
994
|
});
|
|
@@ -999,10 +999,10 @@ function Ro(t) {
|
|
|
999
999
|
class Yt {
|
|
1000
1000
|
constructor(e) {
|
|
1001
1001
|
Z(this, "appContext", null);
|
|
1002
|
-
Z(this, "modalRef",
|
|
1003
|
-
Z(this, "activeModalIndex",
|
|
1002
|
+
Z(this, "modalRef", b());
|
|
1003
|
+
Z(this, "activeModalIndex", b(0));
|
|
1004
1004
|
Z(this, "modalRefs", {});
|
|
1005
|
-
Z(this, "isUseEscCloseModal",
|
|
1005
|
+
Z(this, "isUseEscCloseModal", b(!1));
|
|
1006
1006
|
Z(this, "activeModalInstance", H(() => this.modalRefs[this.activeModalIndex.value]));
|
|
1007
1007
|
this.app = e, this.appContext = e ? e._context : null;
|
|
1008
1008
|
}
|
|
@@ -1041,7 +1041,7 @@ class Yt {
|
|
|
1041
1041
|
title: "",
|
|
1042
1042
|
showButtons: !0,
|
|
1043
1043
|
showHeader: !0
|
|
1044
|
-
}, e)), i =
|
|
1044
|
+
}, e)), i = b(!0), a = o.value.acceptCallback || (() => {
|
|
1045
1045
|
}), r = o.value.rejectCallback || (() => {
|
|
1046
1046
|
}), u = o.value.closedCallback || ((w, h) => {
|
|
1047
1047
|
}), s = o.value.resizeHandle || ((w) => {
|
|
@@ -1049,14 +1049,14 @@ class Yt {
|
|
|
1049
1049
|
});
|
|
1050
1050
|
let p;
|
|
1051
1051
|
const c = Gt(o.value), m = (w) => {
|
|
1052
|
-
var
|
|
1052
|
+
var x;
|
|
1053
1053
|
i.value = !1;
|
|
1054
|
-
const h = (
|
|
1054
|
+
const h = (x = w == null ? void 0 : w.target) == null ? void 0 : x.classList.contains("modal_close");
|
|
1055
1055
|
u(w, this.isUseEscCloseModal.value ? "esc" : h ? "icon" : "button");
|
|
1056
1056
|
}, d = (w) => {
|
|
1057
1057
|
m(w), p && Bt(() => {
|
|
1058
1058
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Ft(null, n), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
1059
|
-
const h = Object.keys(this.modalRefs).map((
|
|
1059
|
+
const h = Object.keys(this.modalRefs).map((x) => Number(x));
|
|
1060
1060
|
h.length > 0 ? this.activeModalIndex.value = Math.max(...h) : this.activeModalIndex.value = 0;
|
|
1061
1061
|
}
|
|
1062
1062
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -1066,8 +1066,8 @@ class Yt {
|
|
|
1066
1066
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((h = this.activeModalInstance.value) == null || h.close(w == null ? void 0 : w.event));
|
|
1067
1067
|
}, {
|
|
1068
1068
|
width: g,
|
|
1069
|
-
height:
|
|
1070
|
-
} = o.value, F = this.adaptToWindow(g || 500,
|
|
1069
|
+
height: C
|
|
1070
|
+
} = o.value, F = this.adaptToWindow(g || 500, C || 320);
|
|
1071
1071
|
Object.assign(o.value, F);
|
|
1072
1072
|
const O = () => E(qe, Ot({
|
|
1073
1073
|
ref: this.modalRef,
|
|
@@ -1450,72 +1450,72 @@ function Xt(t, e, n) {
|
|
|
1450
1450
|
function r(f, g) {
|
|
1451
1451
|
return () => a.parseValueSchema(f, g);
|
|
1452
1452
|
}
|
|
1453
|
-
function u(f, g,
|
|
1454
|
-
return f.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : r(g.visible,
|
|
1453
|
+
function u(f, g, C) {
|
|
1454
|
+
return f.includes("visible") && g.visible !== void 0 ? typeof g.visible == "boolean" ? () => !!g.visible : g.visible === void 0 ? !0 : r(g.visible, C) : () => !0;
|
|
1455
1455
|
}
|
|
1456
|
-
function s(f, g,
|
|
1457
|
-
return f.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : r(g.readonly,
|
|
1456
|
+
function s(f, g, C) {
|
|
1457
|
+
return f.includes("readonly") && g.readonly !== void 0 ? typeof g.readonly == "boolean" ? () => !!g.readonly : r(g.readonly, C) : () => !1;
|
|
1458
1458
|
}
|
|
1459
1459
|
function l(f, g) {
|
|
1460
|
-
const
|
|
1461
|
-
return typeof
|
|
1460
|
+
const C = f.$converter || g;
|
|
1461
|
+
return typeof C == "string" && C && o.has(C) ? o.get(C) || null : C || null;
|
|
1462
1462
|
}
|
|
1463
|
-
function p(f, g,
|
|
1463
|
+
function p(f, g, C, F, O, z = "", P = "") {
|
|
1464
1464
|
return Object.keys(f).map((h) => {
|
|
1465
|
-
const
|
|
1465
|
+
const x = b(1), S = h, M = f[h], U = Object.keys(M), y = M.title, _ = M.type, A = i.get(_) || { type: "input-group", enableClear: !1 }, D = M.editor ? Object.assign({}, A, M.editor) : Object.assign({}, A), q = u(U, M, g), J = s(U, M, g);
|
|
1466
1466
|
D.readonly = D.readonly === void 0 ? J() : D.readonly;
|
|
1467
|
-
const ie = M.type === "cascade" ? p(M.properties, g,
|
|
1467
|
+
const ie = M.type === "cascade" ? p(M.properties, g, C, F, O, z, P) : [], R = !0;
|
|
1468
1468
|
let k = l(M, P);
|
|
1469
1469
|
const G = H({
|
|
1470
1470
|
get() {
|
|
1471
|
-
if (
|
|
1472
|
-
if (["class", "style"].find((le) => le ===
|
|
1473
|
-
return k.convertFrom(
|
|
1474
|
-
const oe =
|
|
1471
|
+
if (x.value) {
|
|
1472
|
+
if (["class", "style"].find((le) => le === S) && !k && (k = o.get("/converter/appearance.converter") || null), k && k.convertFrom)
|
|
1473
|
+
return k.convertFrom(C, h, O, z);
|
|
1474
|
+
const oe = C[h];
|
|
1475
1475
|
return Object.prototype.hasOwnProperty.call(M, "defaultValue") && (oe === void 0 || typeof oe == "string" && oe === "") ? M.type === "boolean" ? M.defaultValue : M.defaultValue || "" : oe;
|
|
1476
1476
|
}
|
|
1477
1477
|
return null;
|
|
1478
1478
|
},
|
|
1479
1479
|
set(oe) {
|
|
1480
|
-
|
|
1480
|
+
x.value += 1, k && k.convertTo ? (k.convertTo(F, h, oe, O, z), k.convertTo(C, h, oe, O, z)) : (F[h] = oe, C[h] = oe);
|
|
1481
1481
|
}
|
|
1482
|
-
}), { refreshPanelAfterChanged: j, description: ee, isExpand: ve, parentPropertyID: ge } = M, Y = { propertyID:
|
|
1483
|
-
return g[
|
|
1482
|
+
}), { refreshPanelAfterChanged: j, description: ee, isExpand: ve, parentPropertyID: ge } = M, Y = { propertyID: S, propertyName: y, propertyType: _, propertyValue: G, editor: D, visible: q, readonly: J, cascadeConfig: ie, hideCascadeTitle: R, refreshPanelAfterChanged: j, description: ee, isExpand: ve, parentPropertyID: ge };
|
|
1483
|
+
return g[S] = Y, Y;
|
|
1484
1484
|
});
|
|
1485
1485
|
}
|
|
1486
|
-
function c(f, g,
|
|
1486
|
+
function c(f, g, C = {}) {
|
|
1487
1487
|
const F = {}, O = t[f];
|
|
1488
1488
|
return O && O.categories ? Object.keys(O.categories).map((P) => {
|
|
1489
|
-
const w = O.categories[P], h = w == null ? void 0 : w.title,
|
|
1490
|
-
return { categoryId: P, categoryName: h, properties:
|
|
1489
|
+
const w = O.categories[P], h = w == null ? void 0 : w.title, x = p(w.properties || {}, F, {}, C, g);
|
|
1490
|
+
return { categoryId: P, categoryName: h, properties: x };
|
|
1491
1491
|
}) : [];
|
|
1492
1492
|
}
|
|
1493
|
-
function m(f, g,
|
|
1494
|
-
const z = g.$ref.schema, P = g.$ref.converter, w =
|
|
1493
|
+
function m(f, g, C, F, O = "") {
|
|
1494
|
+
const z = g.$ref.schema, P = g.$ref.converter, w = C[z], h = w.type, x = n(w), S = {}, M = t[h];
|
|
1495
1495
|
if (M && M.categories) {
|
|
1496
|
-
const U = M.categories[f],
|
|
1496
|
+
const U = M.categories[f], y = U == null ? void 0 : U.title;
|
|
1497
1497
|
P && Object.keys(U.properties).forEach((D) => {
|
|
1498
1498
|
U.properties[D].$converter = P;
|
|
1499
1499
|
});
|
|
1500
|
-
const _ = (U == null ? void 0 : U.properties) || {}, A = p(_,
|
|
1501
|
-
return { categoryId: f, categoryName:
|
|
1500
|
+
const _ = (U == null ? void 0 : U.properties) || {}, A = p(_, S, x, w, F, O);
|
|
1501
|
+
return { categoryId: f, categoryName: y, properties: A };
|
|
1502
1502
|
}
|
|
1503
1503
|
return { categoryId: f, categoryName: "", properties: [] };
|
|
1504
1504
|
}
|
|
1505
|
-
function d(f, g,
|
|
1505
|
+
function d(f, g, C, F, O) {
|
|
1506
1506
|
const z = f.type, P = n(f), w = {};
|
|
1507
1507
|
let h = O || t[z];
|
|
1508
|
-
if (h && Object.keys(h).length === 0 &&
|
|
1509
|
-
const
|
|
1510
|
-
return Object.keys(h.categories).map((
|
|
1511
|
-
const M = h.categories[
|
|
1508
|
+
if (h && Object.keys(h).length === 0 && C && C.getPropConfig && (h = C.getPropConfig(F)), h && h.categories) {
|
|
1509
|
+
const x = [];
|
|
1510
|
+
return Object.keys(h.categories).map((S) => {
|
|
1511
|
+
const M = h.categories[S];
|
|
1512
1512
|
if (M.$ref) {
|
|
1513
|
-
|
|
1513
|
+
x.push(m(S, M, f, g, F));
|
|
1514
1514
|
return;
|
|
1515
1515
|
}
|
|
1516
|
-
const U = M == null ? void 0 : M.title,
|
|
1517
|
-
|
|
1518
|
-
}),
|
|
1516
|
+
const U = M == null ? void 0 : M.title, y = M == null ? void 0 : M.tabId, _ = M == null ? void 0 : M.tabName, A = M == null ? void 0 : M.hide, D = M == null ? void 0 : M.hideTitle, q = p(M.properties || {}, w, P, f, g, F, M.$converter), { setPropertyRelates: J } = M, ie = M == null ? void 0 : M.parentPropertyID;
|
|
1517
|
+
x.push({ categoryId: S, categoryName: U, tabId: y, tabName: _, hide: A, properties: q, hideTitle: D, setPropertyRelates: J, parentPropertyID: ie });
|
|
1518
|
+
}), x;
|
|
1519
1519
|
}
|
|
1520
1520
|
return [];
|
|
1521
1521
|
}
|
|
@@ -1528,20 +1528,20 @@ function Xt(t, e, n) {
|
|
|
1528
1528
|
function Jt(t, e) {
|
|
1529
1529
|
let n;
|
|
1530
1530
|
function o(c) {
|
|
1531
|
-
const { properties: m, title: d, ignore: f } = c, g = f && Array.isArray(f),
|
|
1531
|
+
const { properties: m, title: d, ignore: f } = c, g = f && Array.isArray(f), C = Object.keys(m).reduce((F, O) => ((!g || !f.find((z) => z === O)) && (F[O] = m[O].type === "object" && m[O].properties ? o(m[O]) : ct(m[O].default)), F), {});
|
|
1532
1532
|
if (d && (!g || !f.find((F) => F === "id"))) {
|
|
1533
1533
|
const F = d.toLowerCase().replace(/-/g, "_");
|
|
1534
|
-
|
|
1534
|
+
C.id = `${F}_${Math.random().toString().slice(2, 6)}`;
|
|
1535
1535
|
}
|
|
1536
|
-
return
|
|
1536
|
+
return C;
|
|
1537
1537
|
}
|
|
1538
1538
|
function i(c) {
|
|
1539
1539
|
const { properties: m, title: d, required: f } = c;
|
|
1540
1540
|
if (f && Array.isArray(f)) {
|
|
1541
|
-
const g = f.reduce((
|
|
1542
|
-
if (d && f.find((
|
|
1543
|
-
const
|
|
1544
|
-
g.id = `${
|
|
1541
|
+
const g = f.reduce((C, F) => (C[F] = m[F].type === "object" && m[F].properties ? o(m[F]) : ct(m[F].default), C), {});
|
|
1542
|
+
if (d && f.find((C) => C === "id")) {
|
|
1543
|
+
const C = d.toLowerCase().replace(/-/g, "_");
|
|
1544
|
+
g.id = `${C}_${Math.random().toString().slice(2, 6)}`;
|
|
1545
1545
|
}
|
|
1546
1546
|
return g;
|
|
1547
1547
|
}
|
|
@@ -1553,8 +1553,8 @@ function Jt(t, e) {
|
|
|
1553
1553
|
const f = t[c];
|
|
1554
1554
|
if (f) {
|
|
1555
1555
|
let g = i(f);
|
|
1556
|
-
const
|
|
1557
|
-
return g =
|
|
1556
|
+
const C = e[c];
|
|
1557
|
+
return g = C ? C({ getSchemaByType: a }, g, m, d) : g, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(g), g;
|
|
1558
1558
|
}
|
|
1559
1559
|
return null;
|
|
1560
1560
|
}
|
|
@@ -1565,11 +1565,11 @@ function Jt(t, e) {
|
|
|
1565
1565
|
function u(c, m) {
|
|
1566
1566
|
return Object.keys(c).filter((f) => c[f] != null).reduce((f, g) => {
|
|
1567
1567
|
if (m.has(g)) {
|
|
1568
|
-
const
|
|
1569
|
-
if (typeof
|
|
1570
|
-
f[
|
|
1568
|
+
const C = m.get(g);
|
|
1569
|
+
if (typeof C == "string")
|
|
1570
|
+
f[C] = c[g];
|
|
1571
1571
|
else {
|
|
1572
|
-
const F =
|
|
1572
|
+
const F = C(g, c[g], c);
|
|
1573
1573
|
Object.assign(f, F);
|
|
1574
1574
|
}
|
|
1575
1575
|
} else
|
|
@@ -1588,9 +1588,9 @@ function Jt(t, e) {
|
|
|
1588
1588
|
const f = t[m];
|
|
1589
1589
|
if (!f)
|
|
1590
1590
|
return c;
|
|
1591
|
-
const g = r(c, f),
|
|
1592
|
-
if (
|
|
1593
|
-
const F = t[
|
|
1591
|
+
const g = r(c, f), C = ((d = c.editor) == null ? void 0 : d.type) || "";
|
|
1592
|
+
if (C) {
|
|
1593
|
+
const F = t[C], O = r(c.editor, F);
|
|
1594
1594
|
g.editor = O;
|
|
1595
1595
|
}
|
|
1596
1596
|
return g;
|
|
@@ -1730,11 +1730,11 @@ vt(
|
|
|
1730
1730
|
Nt,
|
|
1731
1731
|
void 0
|
|
1732
1732
|
);
|
|
1733
|
-
const mi =
|
|
1733
|
+
const mi = b(0);
|
|
1734
1734
|
function vi() {
|
|
1735
1735
|
mi.value++;
|
|
1736
1736
|
}
|
|
1737
|
-
const gi =
|
|
1737
|
+
const gi = b(0);
|
|
1738
1738
|
function hi(t) {
|
|
1739
1739
|
const { formSchemaUtils: e, formStateMachineUtils: n } = t;
|
|
1740
1740
|
function o(s, l = "") {
|
|
@@ -2272,14 +2272,14 @@ class bi {
|
|
|
2272
2272
|
const { expressionId: a, expressionInfo: r } = n, { targetId: u, targetType: s, expressionType: l, value: p, message: c } = r, m = this.formSchemaUtils.getModule();
|
|
2273
2273
|
m.expressions = m.expressions || [];
|
|
2274
2274
|
const { expressions: d } = m;
|
|
2275
|
-
let f = d.find((
|
|
2275
|
+
let f = d.find((C) => C.target === u);
|
|
2276
2276
|
f || (f = { target: u, rules: [], targetType: s }, d.push(f));
|
|
2277
|
-
const g = f.rules.find((
|
|
2277
|
+
const g = f.rules.find((C) => C.type === l);
|
|
2278
2278
|
if (g)
|
|
2279
2279
|
g.value = p, g.message = c;
|
|
2280
2280
|
else {
|
|
2281
|
-
const
|
|
2282
|
-
f.rules.push(
|
|
2281
|
+
const C = { id: a, type: l, value: p, message: c };
|
|
2282
|
+
f.rules.push(C);
|
|
2283
2283
|
}
|
|
2284
2284
|
delete n.expressionInfo;
|
|
2285
2285
|
}
|
|
@@ -2460,11 +2460,11 @@ var wi = { exports: {} };
|
|
|
2460
2460
|
2: [function(n, o, i) {
|
|
2461
2461
|
(function(a) {
|
|
2462
2462
|
var r = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), l = document, p = l.documentElement;
|
|
2463
|
-
function c(
|
|
2463
|
+
function c(y, _) {
|
|
2464
2464
|
var A = arguments.length;
|
|
2465
|
-
A === 1 && Array.isArray(
|
|
2465
|
+
A === 1 && Array.isArray(y) === !1 && (_ = y, y = []);
|
|
2466
2466
|
var D, q, J, ie, R, k, G, j, ee, ve = null, ge, Y, oe = !1, le = 0, te, $ = _ || {};
|
|
2467
|
-
$.moves === void 0 && ($.moves = O), $.accepts === void 0 && ($.accepts = O), $.invalid === void 0 && ($.invalid = Ze), $.containers === void 0 && ($.containers =
|
|
2467
|
+
$.moves === void 0 && ($.moves = O), $.accepts === void 0 && ($.accepts = O), $.invalid === void 0 && ($.invalid = Ze), $.containers === void 0 && ($.containers = y || []), $.isContainer === void 0 && ($.isContainer = F), $.copy === void 0 && ($.copy = !1), $.copySortSource === void 0 && ($.copySortSource = !1), $.revertOnSpill === void 0 && ($.revertOnSpill = !1), $.removeOnSpill === void 0 && ($.removeOnSpill = !1), $.direction === void 0 && ($.direction = "vertical"), $.ignoreInputTextSelection === void 0 && ($.ignoreInputTextSelection = !0), $.mirrorContainer === void 0 && ($.mirrorContainer = l.body);
|
|
2468
2468
|
var ne = r({
|
|
2469
2469
|
containers: $.containers,
|
|
2470
2470
|
start: Se,
|
|
@@ -2529,7 +2529,7 @@ var wi = { exports: {} };
|
|
|
2529
2529
|
return;
|
|
2530
2530
|
var N = w(v);
|
|
2531
2531
|
if (N && !$.invalid(v, I)) {
|
|
2532
|
-
var L = $.moves(v, N, I,
|
|
2532
|
+
var L = $.moves(v, N, I, S(v));
|
|
2533
2533
|
if (L)
|
|
2534
2534
|
return {
|
|
2535
2535
|
item: v,
|
|
@@ -2546,7 +2546,7 @@ var wi = { exports: {} };
|
|
|
2546
2546
|
I && Ne(I);
|
|
2547
2547
|
}
|
|
2548
2548
|
function Ne(v) {
|
|
2549
|
-
It(v.item, v.source) && (j = v.item.cloneNode(!0), ne.emit("cloned", j, v.item, "copy")), q = v.source, J = v.item, k = G =
|
|
2549
|
+
It(v.item, v.source) && (j = v.item.cloneNode(!0), ne.emit("cloned", j, v.item, "copy")), q = v.source, J = v.item, k = G = S(v.item), ne.dragging = !0, ne.emit("drag", J, q);
|
|
2550
2550
|
}
|
|
2551
2551
|
function Ze() {
|
|
2552
2552
|
return !1;
|
|
@@ -2562,7 +2562,7 @@ var wi = { exports: {} };
|
|
|
2562
2562
|
}
|
|
2563
2563
|
function Pe(v) {
|
|
2564
2564
|
if (Fe(), !!ne.dragging) {
|
|
2565
|
-
var I = j || J, N = U("clientX", v) || 0, L = U("clientY", v) || 0, Q =
|
|
2565
|
+
var I = j || J, N = U("clientX", v) || 0, L = U("clientY", v) || 0, Q = C(D, N, L), K = ue(Q, N, L);
|
|
2566
2566
|
K && (j && $.copySortSource || !j || K !== q) ? Ye(I, K) : $.removeOnSpill ? Xe() : T();
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
@@ -2588,7 +2588,7 @@ var wi = { exports: {} };
|
|
|
2588
2588
|
}
|
|
2589
2589
|
function se(v, I) {
|
|
2590
2590
|
var N;
|
|
2591
|
-
return I !== void 0 ? N = I : D ? N = G : N =
|
|
2591
|
+
return I !== void 0 ? N = I : D ? N = G : N = S(j || J), v === q && N === k;
|
|
2592
2592
|
}
|
|
2593
2593
|
function ue(v, I, N) {
|
|
2594
2594
|
for (var L = v; L && !Q(); )
|
|
@@ -2608,7 +2608,7 @@ var wi = { exports: {} };
|
|
|
2608
2608
|
v.preventDefault();
|
|
2609
2609
|
var I = U("clientX", v) || 0, N = U("clientY", v) || 0;
|
|
2610
2610
|
D.style.left = I - 2 + "px", D.style.top = N - 2 + "px";
|
|
2611
|
-
var L = j || J, Q =
|
|
2611
|
+
var L = j || J, Q = C(D, I, N), K = ue(Q, I, N), Ce = K !== null && K !== ve;
|
|
2612
2612
|
(Ce || K === null) && (be(), ve = K, Ee()), Mt(Q, N);
|
|
2613
2613
|
var he = w(L);
|
|
2614
2614
|
if (K === q && j && !$.copySortSource) {
|
|
@@ -2636,7 +2636,7 @@ var wi = { exports: {} };
|
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
2638
|
function gt(v, I, N) {
|
|
2639
|
-
(v === I || v ===
|
|
2639
|
+
(v === I || v === S(I)) && (G = S(I)), (v === null && N || v !== I && v !== S(I)) && (G = v);
|
|
2640
2640
|
}
|
|
2641
2641
|
function ht(v) {
|
|
2642
2642
|
s.rm(v, "gu-hide");
|
|
@@ -2755,14 +2755,14 @@ var wi = { exports: {} };
|
|
|
2755
2755
|
return Te(Q ? N > ce.left + z(ce) / 2 : L > ce.top + P(ce) / 2);
|
|
2756
2756
|
}
|
|
2757
2757
|
function Te(ce) {
|
|
2758
|
-
return ce ?
|
|
2758
|
+
return ce ? S(I) : I;
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
2761
|
function It(v, I) {
|
|
2762
2762
|
return typeof $.copy == "boolean" ? $.copy : $.copy(v, I);
|
|
2763
2763
|
}
|
|
2764
2764
|
}
|
|
2765
|
-
function m(
|
|
2765
|
+
function m(y) {
|
|
2766
2766
|
const _ = Array.from(window.scrollContainerList);
|
|
2767
2767
|
if (_.length === 1) {
|
|
2768
2768
|
const D = Array.from(window.scrollContainerList)[0];
|
|
@@ -2770,18 +2770,18 @@ var wi = { exports: {} };
|
|
|
2770
2770
|
}
|
|
2771
2771
|
const A = d(_);
|
|
2772
2772
|
for (const D of A)
|
|
2773
|
-
if (D.contains(
|
|
2773
|
+
if (D.contains(y))
|
|
2774
2774
|
return D;
|
|
2775
2775
|
return null;
|
|
2776
2776
|
}
|
|
2777
|
-
function d(
|
|
2777
|
+
function d(y) {
|
|
2778
2778
|
const _ = [];
|
|
2779
|
-
return
|
|
2779
|
+
return y.forEach((A) => {
|
|
2780
2780
|
const D = document.getElementById(A);
|
|
2781
2781
|
D && _.push(D);
|
|
2782
2782
|
}), _.sort((A, D) => A.contains(D) ? 1 : D.contains(A) ? -1 : 0), _;
|
|
2783
2783
|
}
|
|
2784
|
-
function f(
|
|
2784
|
+
function f(y, _, A, D) {
|
|
2785
2785
|
var q = {
|
|
2786
2786
|
mouseup: "touchend",
|
|
2787
2787
|
mousedown: "touchstart",
|
|
@@ -2795,23 +2795,23 @@ var wi = { exports: {} };
|
|
|
2795
2795
|
mousedown: "MSPointerDown",
|
|
2796
2796
|
mousemove: "MSPointerMove"
|
|
2797
2797
|
};
|
|
2798
|
-
a.navigator.pointerEnabled ? u[_](
|
|
2798
|
+
a.navigator.pointerEnabled ? u[_](y, J[A], D) : a.navigator.msPointerEnabled ? u[_](y, ie[A], D) : (u[_](y, q[A], D), u[_](y, A, D));
|
|
2799
2799
|
}
|
|
2800
|
-
function g(
|
|
2801
|
-
if (
|
|
2802
|
-
return
|
|
2803
|
-
if (
|
|
2804
|
-
return
|
|
2805
|
-
if (
|
|
2806
|
-
return
|
|
2807
|
-
var _ =
|
|
2800
|
+
function g(y) {
|
|
2801
|
+
if (y.touches !== void 0)
|
|
2802
|
+
return y.touches.length;
|
|
2803
|
+
if (y.which !== void 0 && y.which !== 0)
|
|
2804
|
+
return y.which;
|
|
2805
|
+
if (y.buttons !== void 0)
|
|
2806
|
+
return y.buttons;
|
|
2807
|
+
var _ = y.button;
|
|
2808
2808
|
if (_ !== void 0)
|
|
2809
2809
|
return _ & 1 ? 1 : _ & 2 ? 3 : _ & 4 ? 2 : 0;
|
|
2810
2810
|
}
|
|
2811
|
-
function
|
|
2812
|
-
|
|
2813
|
-
var D =
|
|
2814
|
-
return
|
|
2811
|
+
function C(y, _, A) {
|
|
2812
|
+
y = y || {};
|
|
2813
|
+
var D = y.className || "", q;
|
|
2814
|
+
return y.className += " gu-hide", q = l.elementFromPoint(_, A), y.className = D, q;
|
|
2815
2815
|
}
|
|
2816
2816
|
function F() {
|
|
2817
2817
|
return !1;
|
|
@@ -2819,42 +2819,42 @@ var wi = { exports: {} };
|
|
|
2819
2819
|
function O() {
|
|
2820
2820
|
return !0;
|
|
2821
2821
|
}
|
|
2822
|
-
function z(
|
|
2823
|
-
return
|
|
2822
|
+
function z(y) {
|
|
2823
|
+
return y.width || y.right - y.left;
|
|
2824
2824
|
}
|
|
2825
|
-
function P(
|
|
2826
|
-
return
|
|
2825
|
+
function P(y) {
|
|
2826
|
+
return y.height || y.bottom - y.top;
|
|
2827
2827
|
}
|
|
2828
|
-
function w(
|
|
2829
|
-
return
|
|
2828
|
+
function w(y) {
|
|
2829
|
+
return y.parentNode === l ? null : y.parentNode;
|
|
2830
2830
|
}
|
|
2831
|
-
function h(
|
|
2832
|
-
return
|
|
2831
|
+
function h(y) {
|
|
2832
|
+
return y.tagName === "INPUT" || y.tagName === "TEXTAREA" || y.tagName === "SELECT" || x(y);
|
|
2833
2833
|
}
|
|
2834
|
-
function
|
|
2835
|
-
return !
|
|
2834
|
+
function x(y) {
|
|
2835
|
+
return !y || y.contentEditable === "false" ? !1 : y.contentEditable === "true" ? !0 : x(w(y));
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2838
|
-
return
|
|
2837
|
+
function S(y) {
|
|
2838
|
+
return y.nextElementSibling || _();
|
|
2839
2839
|
function _() {
|
|
2840
|
-
var A =
|
|
2840
|
+
var A = y;
|
|
2841
2841
|
do
|
|
2842
2842
|
A = A.nextSibling;
|
|
2843
2843
|
while (A && A.nodeType !== 1);
|
|
2844
2844
|
return A;
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
|
-
function M(
|
|
2848
|
-
return
|
|
2847
|
+
function M(y) {
|
|
2848
|
+
return y.targetTouches && y.targetTouches.length ? y.targetTouches[0] : y.changedTouches && y.changedTouches.length ? y.changedTouches[0] : y;
|
|
2849
2849
|
}
|
|
2850
|
-
function U(
|
|
2850
|
+
function U(y, _) {
|
|
2851
2851
|
var A = M(_), D = {
|
|
2852
2852
|
pageX: "clientX",
|
|
2853
2853
|
// IE8
|
|
2854
2854
|
pageY: "clientY"
|
|
2855
2855
|
// IE8
|
|
2856
2856
|
};
|
|
2857
|
-
return
|
|
2857
|
+
return y in D && !(y in A) && D[y] in A && (y = D[y]), A[y];
|
|
2858
2858
|
}
|
|
2859
2859
|
o.exports = c;
|
|
2860
2860
|
}).call(this, typeof je < "u" ? je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2915,64 +2915,64 @@ var wi = { exports: {} };
|
|
|
2915
2915
|
a.addEventListener || (l = d, p = g), o.exports = {
|
|
2916
2916
|
add: l,
|
|
2917
2917
|
remove: p,
|
|
2918
|
-
fabricate:
|
|
2918
|
+
fabricate: C
|
|
2919
2919
|
};
|
|
2920
|
-
function m(w, h,
|
|
2921
|
-
return w.addEventListener(h,
|
|
2920
|
+
function m(w, h, x, S) {
|
|
2921
|
+
return w.addEventListener(h, x, S);
|
|
2922
2922
|
}
|
|
2923
|
-
function d(w, h,
|
|
2924
|
-
return w.attachEvent("on" + h, O(w, h,
|
|
2923
|
+
function d(w, h, x) {
|
|
2924
|
+
return w.attachEvent("on" + h, O(w, h, x));
|
|
2925
2925
|
}
|
|
2926
|
-
function f(w, h,
|
|
2927
|
-
return w.removeEventListener(h,
|
|
2926
|
+
function f(w, h, x, S) {
|
|
2927
|
+
return w.removeEventListener(h, x, S);
|
|
2928
2928
|
}
|
|
2929
|
-
function g(w, h,
|
|
2930
|
-
var
|
|
2931
|
-
if (
|
|
2932
|
-
return w.detachEvent("on" + h,
|
|
2929
|
+
function g(w, h, x) {
|
|
2930
|
+
var S = z(w, h, x);
|
|
2931
|
+
if (S)
|
|
2932
|
+
return w.detachEvent("on" + h, S);
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2935
|
-
var
|
|
2936
|
-
w.dispatchEvent ? w.dispatchEvent(
|
|
2934
|
+
function C(w, h, x) {
|
|
2935
|
+
var S = u.indexOf(h) === -1 ? U() : M();
|
|
2936
|
+
w.dispatchEvent ? w.dispatchEvent(S) : w.fireEvent("on" + h, S);
|
|
2937
2937
|
function M() {
|
|
2938
|
-
var
|
|
2939
|
-
return s.createEvent ? (
|
|
2938
|
+
var y;
|
|
2939
|
+
return s.createEvent ? (y = s.createEvent("Event"), y.initEvent(h, !0, !0)) : s.createEventObject && (y = s.createEventObject()), y;
|
|
2940
2940
|
}
|
|
2941
2941
|
function U() {
|
|
2942
|
-
return new r(h, { detail:
|
|
2942
|
+
return new r(h, { detail: x });
|
|
2943
2943
|
}
|
|
2944
2944
|
}
|
|
2945
|
-
function F(w, h,
|
|
2945
|
+
function F(w, h, x) {
|
|
2946
2946
|
return function(M) {
|
|
2947
2947
|
var U = M || a.event;
|
|
2948
2948
|
U.target = U.target || U.srcElement, U.preventDefault = U.preventDefault || function() {
|
|
2949
2949
|
U.returnValue = !1;
|
|
2950
2950
|
}, U.stopPropagation = U.stopPropagation || function() {
|
|
2951
2951
|
U.cancelBubble = !0;
|
|
2952
|
-
}, U.which = U.which || U.keyCode,
|
|
2952
|
+
}, U.which = U.which || U.keyCode, x.call(w, U);
|
|
2953
2953
|
};
|
|
2954
2954
|
}
|
|
2955
|
-
function O(w, h,
|
|
2956
|
-
var
|
|
2955
|
+
function O(w, h, x) {
|
|
2956
|
+
var S = z(w, h, x) || F(w, h, x);
|
|
2957
2957
|
return c.push({
|
|
2958
|
-
wrapper:
|
|
2958
|
+
wrapper: S,
|
|
2959
2959
|
element: w,
|
|
2960
2960
|
type: h,
|
|
2961
|
-
fn:
|
|
2962
|
-
}),
|
|
2961
|
+
fn: x
|
|
2962
|
+
}), S;
|
|
2963
2963
|
}
|
|
2964
|
-
function z(w, h,
|
|
2965
|
-
var
|
|
2966
|
-
if (
|
|
2967
|
-
var M = c[
|
|
2968
|
-
return c.splice(
|
|
2964
|
+
function z(w, h, x) {
|
|
2965
|
+
var S = P(w, h, x);
|
|
2966
|
+
if (S) {
|
|
2967
|
+
var M = c[S].wrapper;
|
|
2968
|
+
return c.splice(S, 1), M;
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
|
-
function P(w, h,
|
|
2972
|
-
var
|
|
2973
|
-
for (
|
|
2974
|
-
if (M = c[
|
|
2975
|
-
return
|
|
2971
|
+
function P(w, h, x) {
|
|
2972
|
+
var S, M;
|
|
2973
|
+
for (S = 0; S < c.length; S++)
|
|
2974
|
+
if (M = c[S], M.element === w && M.type === h && M.fn === x)
|
|
2975
|
+
return S;
|
|
2976
2976
|
}
|
|
2977
2977
|
}).call(this, typeof je < "u" ? je : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2978
2978
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -3061,12 +3061,12 @@ var wi = { exports: {} };
|
|
|
3061
3061
|
}
|
|
3062
3062
|
}
|
|
3063
3063
|
var m = [], d = !1, f, g = -1;
|
|
3064
|
-
function
|
|
3064
|
+
function C() {
|
|
3065
3065
|
!d || !f || (d = !1, f.length ? m = f.concat(m) : g = -1, m.length && F());
|
|
3066
3066
|
}
|
|
3067
3067
|
function F() {
|
|
3068
3068
|
if (!d) {
|
|
3069
|
-
var P = p(
|
|
3069
|
+
var P = p(C);
|
|
3070
3070
|
d = !0;
|
|
3071
3071
|
for (var w = m.length; w; ) {
|
|
3072
3072
|
for (f = m, m = []; ++g < w; )
|
|
@@ -3177,7 +3177,7 @@ const Ci = {
|
|
|
3177
3177
|
const {
|
|
3178
3178
|
locale: n,
|
|
3179
3179
|
t: o
|
|
3180
|
-
} = Rt(), i =
|
|
3180
|
+
} = Rt(), i = b(t.animate), a = "fadeOut", r = H(() => t.options), u = b(!1), s = H(() => r.value.title && r.value.message), l = H(() => !r.value.title && r.value.message), p = H(() => {
|
|
3181
3181
|
const P = {
|
|
3182
3182
|
animated: u.value,
|
|
3183
3183
|
toast: !0,
|
|
@@ -3185,15 +3185,15 @@ const Ci = {
|
|
|
3185
3185
|
};
|
|
3186
3186
|
return P[t.animate] = !1, P[a] = u.value, P["toasty-type-" + r.value.type] = !0, r.value.theme && (P[r.value.theme] = !0), P;
|
|
3187
3187
|
}), c = H(() => {
|
|
3188
|
-
const h = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`,
|
|
3188
|
+
const h = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
3189
3189
|
"f-icon": !0
|
|
3190
3190
|
};
|
|
3191
|
-
return
|
|
3191
|
+
return x[h] = !0, x;
|
|
3192
3192
|
}), m = H(() => r.value.title || r.value.message), d = H(() => t.showCloseButton), f = H(() => !!r.value.buttons || !!e.slots.default), g = H(() => n.value === "en" ? {
|
|
3193
3193
|
wordBreak: "keep-all",
|
|
3194
3194
|
overflowWrap: "break-word"
|
|
3195
3195
|
} : {});
|
|
3196
|
-
function
|
|
3196
|
+
function C(P) {
|
|
3197
3197
|
P.stopPropagation(), P.preventDefault(), u.value = !1, setTimeout(() => {
|
|
3198
3198
|
e.emit("close", r.value);
|
|
3199
3199
|
}, 200);
|
|
@@ -3221,7 +3221,7 @@ const Ci = {
|
|
|
3221
3221
|
}, [d.value && E("button", {
|
|
3222
3222
|
title: o("messageBox.close"),
|
|
3223
3223
|
class: "toast-close f-btn-icon f-bare",
|
|
3224
|
-
onClick:
|
|
3224
|
+
onClick: C
|
|
3225
3225
|
}, [E("span", {
|
|
3226
3226
|
class: "f-icon modal_close"
|
|
3227
3227
|
}, null)]), m.value && E("section", {
|
|
@@ -3265,7 +3265,7 @@ const Ci = {
|
|
|
3265
3265
|
right: 12,
|
|
3266
3266
|
top: 20,
|
|
3267
3267
|
bottom: 12
|
|
3268
|
-
}, i =
|
|
3268
|
+
}, i = b(), a = b(t.options), r = b(t.showCloseButton), u = H(() => t.position || "bottom-right"), s = H(() => t.timeout != null ? t.timeout : 3e3), l = H(() => {
|
|
3269
3269
|
const m = t.bottom ? t.bottom : o.bottom, d = t.top ? t.top : o.top, f = {
|
|
3270
3270
|
transition: "all 0.2s ease",
|
|
3271
3271
|
left: u.value.indexOf("left") > -1 ? `${t.left ? t.left : o.left}px` : "",
|
|
@@ -3324,7 +3324,7 @@ class Si {
|
|
|
3324
3324
|
const r = Ut({
|
|
3325
3325
|
setup() {
|
|
3326
3326
|
var l;
|
|
3327
|
-
const u =
|
|
3327
|
+
const u = b();
|
|
3328
3328
|
function s() {
|
|
3329
3329
|
u.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3330
3330
|
n.updateNotifyPositionForClose(i, u), r.unmount();
|
|
@@ -3575,7 +3575,7 @@ const Ei = {
|
|
|
3575
3575
|
}
|
|
3576
3576
|
}
|
|
3577
3577
|
};
|
|
3578
|
-
function Mi(t, e, n, o, i, a, r, u, s, l, p, c, m, d, f, g,
|
|
3578
|
+
function Mi(t, e, n, o, i, a, r, u, s, l, p, c, m, d, f, g, C) {
|
|
3579
3579
|
const {
|
|
3580
3580
|
calculateCellPositionInRow: F
|
|
3581
3581
|
} = a, {
|
|
@@ -3585,15 +3585,15 @@ function Mi(t, e, n, o, i, a, r, u, s, l, p, c, m, d, f, g, x) {
|
|
|
3585
3585
|
} = r, {
|
|
3586
3586
|
gridDataStyle: w,
|
|
3587
3587
|
leftFixedGridDataStyle: h,
|
|
3588
|
-
rightFixedGridDataStyle:
|
|
3588
|
+
rightFixedGridDataStyle: x
|
|
3589
3589
|
} = d, {
|
|
3590
|
-
renderDataRow:
|
|
3591
|
-
} = Bn(t, e, O,
|
|
3590
|
+
renderDataRow: S
|
|
3591
|
+
} = Bn(t, e, O, C, u, s, l, p, c, m, d, f, g), M = [S];
|
|
3592
3592
|
function U(q, J) {
|
|
3593
3593
|
const ie = F(q);
|
|
3594
|
-
return
|
|
3594
|
+
return C.value.filter((R) => R.visible !== !1).map((R, k) => M[R.type](R, ie, J, k));
|
|
3595
3595
|
}
|
|
3596
|
-
function
|
|
3596
|
+
function y() {
|
|
3597
3597
|
return E("div", {
|
|
3598
3598
|
ref: o,
|
|
3599
3599
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3617,12 +3617,12 @@ function Mi(t, e, n, o, i, a, r, u, s, l, p, c, m, d, f, g, x) {
|
|
|
3617
3617
|
class: "fv-grid-content-right-fixed"
|
|
3618
3618
|
}, [E("div", {
|
|
3619
3619
|
class: "fv-grid-data",
|
|
3620
|
-
style:
|
|
3620
|
+
style: x.value
|
|
3621
3621
|
}, [U(O.value.rightColumns.filter((q) => q.visible), "right")])]);
|
|
3622
3622
|
}
|
|
3623
3623
|
function D() {
|
|
3624
3624
|
const q = [];
|
|
3625
|
-
return z.value && q.push(
|
|
3625
|
+
return z.value && q.push(y()), q.push(_()), P.value && q.push(A()), q;
|
|
3626
3626
|
}
|
|
3627
3627
|
return {
|
|
3628
3628
|
renderDataArea: D
|
|
@@ -3634,19 +3634,19 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3634
3634
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
3635
3635
|
setup(t, e) {
|
|
3636
3636
|
var Vt, jt;
|
|
3637
|
-
const o = ((Vt = t.rowOption) == null ? void 0 : Vt.height) || 28, i =
|
|
3637
|
+
const o = ((Vt = t.rowOption) == null ? void 0 : Vt.height) || 28, i = b(20), a = b(t.columns), r = On(t), {
|
|
3638
3638
|
idField: u
|
|
3639
|
-
} = r, s =
|
|
3639
|
+
} = r, s = b(), l = b(), p = b(), c = b(), m = b(), d = b([]), f = b(!1), g = b(((jt = t.rowOption) == null ? void 0 : jt.wrapContent) || !1), C = Rn(t, r), F = Nn(t, e), O = Pn(t), {
|
|
3640
3640
|
collapseField: z
|
|
3641
3641
|
} = O, {
|
|
3642
3642
|
showLoading: P,
|
|
3643
3643
|
renderLoading: w
|
|
3644
3644
|
} = Vn(t, s), h = jn(t, /* @__PURE__ */ new Map(), F, O, r), {
|
|
3645
|
-
dataView:
|
|
3646
|
-
} = h,
|
|
3645
|
+
dataView: x
|
|
3646
|
+
} = h, S = Dn(t, h, r, d, e), {
|
|
3647
3647
|
showSelection: M,
|
|
3648
3648
|
selectedValues: U
|
|
3649
|
-
} =
|
|
3649
|
+
} = S, y = $n(t, d, h, r, S, e), _ = H(() => t.disabled), A = H(() => t.virtualized ? Math.min(h.dataView.value.length, i.value) : h.dataView.value.length), D = Hn(t, h), {
|
|
3650
3650
|
shouldRenderPagination: q
|
|
3651
3651
|
} = D, {
|
|
3652
3652
|
containerStyleObject: J
|
|
@@ -3665,9 +3665,9 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3665
3665
|
updateColumnRenderContext: Y
|
|
3666
3666
|
} = j;
|
|
3667
3667
|
ve(h, ee);
|
|
3668
|
-
const oe = qn(t, ge), le = Wn(t, e,
|
|
3668
|
+
const oe = qn(t, ge), le = Wn(t, e, S, r), te = Gn(t, e, r, le, d), $ = Yn(t), ne = Xn(t, te, $), $e = Jn(t, h, te, O, r, $, ne), Be = Qn(t, a, h, A, 0, $e), {
|
|
3669
3669
|
getVisualData: xe
|
|
3670
|
-
} = Be, We = Zn(t, ge), He = Kn(t,
|
|
3670
|
+
} = Be, We = Zn(t, ge), He = Kn(t, S), {
|
|
3671
3671
|
sidebarWidth: Ge
|
|
3672
3672
|
} = He, ae = eo(t, h, d, ge, Be, A, 0, Ge), {
|
|
3673
3673
|
onWheel: Qe,
|
|
@@ -3678,7 +3678,7 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3678
3678
|
updateVisibleRowsOnLatestVisibleScope: Ze
|
|
3679
3679
|
} = ae, ze = to(t, ge, l, Se, oe), {
|
|
3680
3680
|
calculateColumnsSize: Fe
|
|
3681
|
-
} = ze, Pe = no(), Ye = oo(l, m, h, Pe, ae), Xe = io(t, e, j, h, oe,
|
|
3681
|
+
} = ze, Pe = no(), Ye = oo(l, m, h, Pe, ae), Xe = io(t, e, j, h, oe, C, ae), T = H(() => {
|
|
3682
3682
|
const V = {
|
|
3683
3683
|
"fv-grid": !0,
|
|
3684
3684
|
"fv-grid-bordered": t.showBorder,
|
|
@@ -3692,13 +3692,13 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3692
3692
|
"fv-grid-wrap-content": g.value
|
|
3693
3693
|
})), {
|
|
3694
3694
|
renderDataArea: se
|
|
3695
|
-
} = Mi(t, e, p, c, m, We, j, h, te, O, le,
|
|
3695
|
+
} = Mi(t, e, p, c, m, We, j, h, te, O, le, S, y, ae, Be, $, d), {
|
|
3696
3696
|
renderGridHeader: ue,
|
|
3697
3697
|
renderGridColumnResizeOverlay: ke,
|
|
3698
3698
|
shouldShowHeader: gt
|
|
3699
|
-
} = ro(t, e, l, c, m, j, h, Xe, Ye, F, Pe, ze, oe,
|
|
3699
|
+
} = ro(t, e, l, c, m, j, h, Xe, Ye, F, Pe, ze, oe, S, He, ee, ae, Se, d), {
|
|
3700
3700
|
renderDataGridSidebar: ht
|
|
3701
|
-
} = ao(t, le,
|
|
3701
|
+
} = ao(t, le, S, He, ae), {
|
|
3702
3702
|
renderDisableMask: yt
|
|
3703
3703
|
} = so(), {
|
|
3704
3704
|
renderHorizontalScrollbar: bt
|
|
@@ -3727,7 +3727,7 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3727
3727
|
h.expandTo(V), h.reOrderVisibleIndex(), Ne();
|
|
3728
3728
|
}
|
|
3729
3729
|
function Ke() {
|
|
3730
|
-
const V =
|
|
3730
|
+
const V = S.getSelectionRow();
|
|
3731
3731
|
return V ? V.dataIndex - 1 : -1;
|
|
3732
3732
|
}
|
|
3733
3733
|
function St() {
|
|
@@ -3743,8 +3743,8 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3743
3743
|
h.insertNewChildDataItems(V, me);
|
|
3744
3744
|
}
|
|
3745
3745
|
function Mt() {
|
|
3746
|
-
const V = Ke(), W =
|
|
3747
|
-
h.removeHierarchyDataItem(V), d.value = xe(0, A.value + 0 - 1), W &&
|
|
3746
|
+
const V = Ke(), W = y.getNextSelectableHierarchyItemId(V);
|
|
3747
|
+
h.removeHierarchyDataItem(V), d.value = xe(0, A.value + 0 - 1), W && y.selectItemById(W);
|
|
3748
3748
|
}
|
|
3749
3749
|
function at(V) {
|
|
3750
3750
|
te.onEditingRow(V);
|
|
@@ -3765,7 +3765,7 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3765
3765
|
V && (h.load(V), h.reOrderVisibleIndex(), W != null && W.keepScrollPosition ? ae.scrollTo(ae.offsetY.value) : Ne());
|
|
3766
3766
|
}
|
|
3767
3767
|
function L(V) {
|
|
3768
|
-
|
|
3768
|
+
y.selectItemById(V);
|
|
3769
3769
|
}
|
|
3770
3770
|
function Q(V) {
|
|
3771
3771
|
const W = d.value.find((de) => de.raw[r.idField.value] === V);
|
|
@@ -3775,28 +3775,28 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3775
3775
|
le.activeRowById(V);
|
|
3776
3776
|
}
|
|
3777
3777
|
function Ce(V) {
|
|
3778
|
-
|
|
3778
|
+
y.selectItemByIds(V);
|
|
3779
3779
|
}
|
|
3780
3780
|
function he() {
|
|
3781
|
-
return
|
|
3781
|
+
return S.getSelectedItems();
|
|
3782
3782
|
}
|
|
3783
3783
|
function ye() {
|
|
3784
|
-
|
|
3784
|
+
S.clearSelection();
|
|
3785
3785
|
}
|
|
3786
3786
|
const Te = H(() => !d.value || !d.value.length), {
|
|
3787
3787
|
renderEmpty: ce
|
|
3788
3788
|
} = co(t, e);
|
|
3789
3789
|
function Ee() {
|
|
3790
|
-
return
|
|
3790
|
+
return S.getSelectionRow();
|
|
3791
3791
|
}
|
|
3792
3792
|
function be(V) {
|
|
3793
|
-
|
|
3793
|
+
y.unSelectItemByIds(V);
|
|
3794
3794
|
}
|
|
3795
3795
|
function pe() {
|
|
3796
|
-
return
|
|
3796
|
+
return S.currentSelectedDataId.value;
|
|
3797
3797
|
}
|
|
3798
3798
|
function et(V, W, de) {
|
|
3799
|
-
const me =
|
|
3799
|
+
const me = x.value.find((we) => we[u.value] === V);
|
|
3800
3800
|
if (me) {
|
|
3801
3801
|
if (Object.keys(me).forEach((fe) => {
|
|
3802
3802
|
Object.prototype.hasOwnProperty.call(W, fe) && (me[fe] = W[fe]);
|
|
@@ -3847,7 +3847,7 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3847
3847
|
de && le.changeRow(de);
|
|
3848
3848
|
}
|
|
3849
3849
|
function dn() {
|
|
3850
|
-
|
|
3850
|
+
S.keepSelectingOnPaging.value || ye(), h.updateVisibleDataSummary(d.value);
|
|
3851
3851
|
}
|
|
3852
3852
|
e.expose({
|
|
3853
3853
|
activeRowById: K,
|
|
@@ -3885,7 +3885,7 @@ const Ii = /* @__PURE__ */ it({
|
|
|
3885
3885
|
...J.value,
|
|
3886
3886
|
borderRadius: "5px"
|
|
3887
3887
|
}));
|
|
3888
|
-
fo(t, e, h, ae, D,
|
|
3888
|
+
fo(t, e, h, ae, D, S);
|
|
3889
3889
|
const mn = H(() => ({
|
|
3890
3890
|
"d-flex": !0,
|
|
3891
3891
|
"justify-content-between": q.value && M.value,
|
|
@@ -4375,7 +4375,7 @@ function hr() {
|
|
|
4375
4375
|
return { onCopy: t };
|
|
4376
4376
|
}
|
|
4377
4377
|
function yr(t, e, n, o) {
|
|
4378
|
-
const i =
|
|
4378
|
+
const i = b(14), a = b(140), r = b(""), u = b(o.value.length), s = H(() => o.value), l = H(() => ({
|
|
4379
4379
|
"font-size": `${i.value}px`,
|
|
4380
4380
|
height: "100%"
|
|
4381
4381
|
}));
|
|
@@ -4407,7 +4407,7 @@ function br(t, e, n, o) {
|
|
|
4407
4407
|
return { getEditorRender: r };
|
|
4408
4408
|
}
|
|
4409
4409
|
function wr() {
|
|
4410
|
-
const t =
|
|
4410
|
+
const t = b(!1), e = b("复制成功");
|
|
4411
4411
|
return {
|
|
4412
4412
|
feedbackStyle: H(() => {
|
|
4413
4413
|
const o = {
|
|
@@ -4443,8 +4443,8 @@ function xr(t, e) {
|
|
|
4443
4443
|
return 0;
|
|
4444
4444
|
let f = 0;
|
|
4445
4445
|
for (let g = 0; g < d.length; g++) {
|
|
4446
|
-
const
|
|
4447
|
-
|
|
4446
|
+
const C = d.charCodeAt(g);
|
|
4447
|
+
C >= 0 && C <= 128 ? f++ : f = f + 2;
|
|
4448
4448
|
}
|
|
4449
4449
|
return f;
|
|
4450
4450
|
}
|
|
@@ -4452,11 +4452,11 @@ function xr(t, e) {
|
|
|
4452
4452
|
if (d !== "" && d !== void 0 && d !== null) {
|
|
4453
4453
|
d = "" + d;
|
|
4454
4454
|
const g = d.length;
|
|
4455
|
-
let
|
|
4455
|
+
let C = "", F = 0;
|
|
4456
4456
|
for (let O = 0; O < g; O++) {
|
|
4457
4457
|
const z = d.charAt(O);
|
|
4458
|
-
if (F++, encodeURI(z).length > 4 && F++,
|
|
4459
|
-
return
|
|
4458
|
+
if (F++, encodeURI(z).length > 4 && F++, C = C.concat(z), F >= f)
|
|
4459
|
+
return C = C.concat("..."), C;
|
|
4460
4460
|
}
|
|
4461
4461
|
if (F < f)
|
|
4462
4462
|
return d;
|
|
@@ -4466,7 +4466,7 @@ function xr(t, e) {
|
|
|
4466
4466
|
const i = H(() => !!t.value && !!t.value.date), a = H(() => {
|
|
4467
4467
|
const d = t.value && t.value.date || "";
|
|
4468
4468
|
return `${e.exception.happend} : ${d}`;
|
|
4469
|
-
}), r = H(() => !!t.value && !!t.value.detail), u = H(() => t.value ? n(t.value.detail) > 160 : !1), s =
|
|
4469
|
+
}), r = H(() => !!t.value && !!t.value.detail), u = H(() => t.value ? n(t.value.detail) > 160 : !1), s = b(!1), l = H(() => s.value ? e.exception.collapse : e.exception.expand), p = H(() => {
|
|
4470
4470
|
const d = e.exception.detail + " : " + (t.value && t.value.detail) || "";
|
|
4471
4471
|
return s.value ? d : o(d, 160);
|
|
4472
4472
|
}), c = H(() => ({
|
|
@@ -4499,11 +4499,11 @@ function Sr(t) {
|
|
|
4499
4499
|
}, null);
|
|
4500
4500
|
}
|
|
4501
4501
|
function Tr(t, e, n, o, i) {
|
|
4502
|
-
const a =
|
|
4502
|
+
const a = b(t.exceptionInfo), r = H(() => {
|
|
4503
4503
|
const f = e.value === "question" ? "warning" : e.value, g = {
|
|
4504
4504
|
"f-icon": !0
|
|
4505
|
-
},
|
|
4506
|
-
return g[
|
|
4505
|
+
}, C = `f-icon-${f}`;
|
|
4506
|
+
return g[C] = !0, g;
|
|
4507
4507
|
}), u = H(() => n.value || a.value && a.value.message), s = H(() => o.value), l = H(() => !!o.value), p = H(() => !!a.value);
|
|
4508
4508
|
function c() {
|
|
4509
4509
|
return p.value ? xr(a, i) : l.value ? Sr(s) : () => null;
|
|
@@ -4529,7 +4529,7 @@ function Er(t, e, n, o) {
|
|
|
4529
4529
|
onCopy: i
|
|
4530
4530
|
} = e, {
|
|
4531
4531
|
toShowFeedback: a
|
|
4532
|
-
} = n, r =
|
|
4532
|
+
} = n, r = b(o.exception.copySuccess || "复制成功"), u = b(o.exception.copy || "复制详细信息"), s = b(t.exceptionInfo || {
|
|
4533
4533
|
date: "",
|
|
4534
4534
|
message: "",
|
|
4535
4535
|
detail: ""
|
|
@@ -4551,9 +4551,9 @@ function Er(t, e, n, o) {
|
|
|
4551
4551
|
}, [u.value])]);
|
|
4552
4552
|
}
|
|
4553
4553
|
function Mr(t, e, n, o, i) {
|
|
4554
|
-
const a =
|
|
4554
|
+
const a = b(t.type), r = b(t.buttons), u = b(t.exceptionInfo), s = b(i.ok || t.okButtonText), l = b(i.cancel || t.cancelButtonText), p = b(t.showCancelButton), c = b(t.showOkButton), m = H(() => !!(r.value && r.value.length)), d = H(() => !!(u.value && u.value.detail)), f = H(() => !(r.value && r.value.length) && (c.value || p.value)), g = Er(t, n, o, i);
|
|
4555
4555
|
s.value === "关闭" ? s.value = i.close : s.value === "知道了" && (s.value = i.exception.roger);
|
|
4556
|
-
function
|
|
4556
|
+
function C(O) {
|
|
4557
4557
|
a.value === "question" && e.emit("reject"), e.emit("close");
|
|
4558
4558
|
}
|
|
4559
4559
|
function F(O) {
|
|
@@ -4564,7 +4564,7 @@ function Mr(t, e, n, o, i) {
|
|
|
4564
4564
|
}, [d.value && g(), f.value && p.value && E("button", {
|
|
4565
4565
|
type: "button",
|
|
4566
4566
|
class: "btn btn-secondary btn-lg",
|
|
4567
|
-
onClick:
|
|
4567
|
+
onClick: C
|
|
4568
4568
|
}, [l.value]), f.value && c.value && E("button", {
|
|
4569
4569
|
type: "button",
|
|
4570
4570
|
class: "btn btn-primary btn-lg",
|
|
@@ -4608,7 +4608,7 @@ const ut = /* @__PURE__ */ it({
|
|
|
4608
4608
|
props: pr,
|
|
4609
4609
|
emits: ["accept", "reject", "close"],
|
|
4610
4610
|
setup(t, e) {
|
|
4611
|
-
const n = Ir(t), o =
|
|
4611
|
+
const n = Ir(t), o = b(t.type), i = b(t.title), a = b(t.detail), r = H(() => {
|
|
4612
4612
|
const F = {
|
|
4613
4613
|
"modal-tips": !0,
|
|
4614
4614
|
"d-flex": !0,
|
|
@@ -4638,7 +4638,7 @@ const ut = /* @__PURE__ */ it({
|
|
|
4638
4638
|
return Tr(t, o, i, a, n);
|
|
4639
4639
|
}
|
|
4640
4640
|
}
|
|
4641
|
-
const g = f(),
|
|
4641
|
+
const g = f(), C = Mr(t, e, s, p, n);
|
|
4642
4642
|
return () => E("div", {
|
|
4643
4643
|
class: "farris-messager"
|
|
4644
4644
|
}, [!t.exceptionInfo && E("div", {
|
|
@@ -4647,7 +4647,7 @@ const ut = /* @__PURE__ */ it({
|
|
|
4647
4647
|
}, null), E("section", {
|
|
4648
4648
|
class: r.value,
|
|
4649
4649
|
style: u.value
|
|
4650
|
-
}, [g()]),
|
|
4650
|
+
}, [g()]), C(), d()]);
|
|
4651
4651
|
}
|
|
4652
4652
|
}), Me = class Me {
|
|
4653
4653
|
static show(e) {
|