@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
|
@@ -2,7 +2,7 @@ var kn = Object.defineProperty;
|
|
|
2
2
|
var In = (n, e, t) => e in n ? kn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var X = (n, e, t) => In(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { getCustomClass as Nn, withInstall as Zt, FormSchemaEntityField$Type as gt, FormSchemaEntityFieldTypeName as Lt, getMaxZIndex as Pn, FormSchemaEntityFieldType$Type as Vn } from "../common/index.esm.js";
|
|
5
|
-
import { ref as
|
|
5
|
+
import { ref as S, computed as $, createVNode as E, onMounted as Ge, nextTick as et, defineComponent as Xe, watch as Se, Fragment as lt, reactive as $e, createApp as Jt, onUnmounted as Ct, Transition as Qt, mergeProps as Dt, createTextVNode as On, onBeforeMount as jn, Teleport as Rn, shallowRef as Ln, render as Rt, h as $n, cloneVNode as Dn, inject as Gt } from "vue";
|
|
6
6
|
import { cloneDeep as ht, isPlainObject as Xt, isUndefined as Re } from "lodash-es";
|
|
7
7
|
import Ce from "bignumber.js";
|
|
8
8
|
import { useI18n as St } from "vue-i18n";
|
|
@@ -523,60 +523,60 @@ function on(n, e, t) {
|
|
|
523
523
|
return typeof g == "string" && g && o.has(g) ? o.get(g) || null : g || null;
|
|
524
524
|
}
|
|
525
525
|
function p(m, v, g, M, B, U = "", O = "") {
|
|
526
|
-
return Object.keys(m).map((
|
|
527
|
-
const h =
|
|
526
|
+
return Object.keys(m).map((b) => {
|
|
527
|
+
const h = S(1), w = b, T = m[b], A = Object.keys(T), C = T.title, F = T.type, P = i.get(F) || { type: "input-group", enableClear: !1 }, I = T.editor ? Object.assign({}, P, T.editor) : Object.assign({}, P), L = c(A, T, v), _ = u(A, T, v);
|
|
528
528
|
I.readonly = I.readonly === void 0 ? _() : I.readonly;
|
|
529
529
|
const Q = T.type === "cascade" ? p(T.properties, v, g, M, B, U, O) : [], V = !0;
|
|
530
530
|
let N = s(T, O);
|
|
531
531
|
const G = $({
|
|
532
532
|
get() {
|
|
533
533
|
if (h.value) {
|
|
534
|
-
if (["class", "style"].find((ue) => ue ===
|
|
535
|
-
return N.convertFrom(g,
|
|
536
|
-
const ie = g[
|
|
534
|
+
if (["class", "style"].find((ue) => ue === w) && !N && (N = o.get("/converter/appearance.converter") || null), N && N.convertFrom)
|
|
535
|
+
return N.convertFrom(g, b, B, U);
|
|
536
|
+
const ie = g[b];
|
|
537
537
|
return Object.prototype.hasOwnProperty.call(T, "defaultValue") && (ie === void 0 || typeof ie == "string" && ie === "") ? T.type === "boolean" ? T.defaultValue : T.defaultValue || "" : ie;
|
|
538
538
|
}
|
|
539
539
|
return null;
|
|
540
540
|
},
|
|
541
541
|
set(ie) {
|
|
542
|
-
h.value += 1, N && N.convertTo ? (N.convertTo(M,
|
|
542
|
+
h.value += 1, N && N.convertTo ? (N.convertTo(M, b, ie, B, U), N.convertTo(g, b, ie, B, U)) : (M[b] = ie, g[b] = ie);
|
|
543
543
|
}
|
|
544
|
-
}), { refreshPanelAfterChanged: H, description: ee, isExpand: me, parentPropertyID: ae } = T, Y = { propertyID:
|
|
545
|
-
return v[
|
|
544
|
+
}), { refreshPanelAfterChanged: H, description: ee, isExpand: me, parentPropertyID: ae } = T, Y = { propertyID: w, propertyName: C, propertyType: F, propertyValue: G, editor: I, visible: L, readonly: _, cascadeConfig: Q, hideCascadeTitle: V, refreshPanelAfterChanged: H, description: ee, isExpand: me, parentPropertyID: ae };
|
|
545
|
+
return v[w] = Y, Y;
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
548
|
function l(m, v, g = {}) {
|
|
549
549
|
const M = {}, B = n[m];
|
|
550
550
|
return B && B.categories ? Object.keys(B.categories).map((O) => {
|
|
551
|
-
const
|
|
552
|
-
return { categoryId: O, categoryName:
|
|
551
|
+
const x = B.categories[O], b = x == null ? void 0 : x.title, h = p(x.properties || {}, M, {}, g, v);
|
|
552
|
+
return { categoryId: O, categoryName: b, properties: h };
|
|
553
553
|
}) : [];
|
|
554
554
|
}
|
|
555
555
|
function f(m, v, g, M, B = "") {
|
|
556
|
-
const U = v.$ref.schema, O = v.$ref.converter,
|
|
556
|
+
const U = v.$ref.schema, O = v.$ref.converter, x = g[U], b = x.type, h = t(x), w = {}, T = n[b];
|
|
557
557
|
if (T && T.categories) {
|
|
558
|
-
const A = T.categories[m],
|
|
558
|
+
const A = T.categories[m], C = A == null ? void 0 : A.title;
|
|
559
559
|
O && Object.keys(A.properties).forEach((I) => {
|
|
560
560
|
A.properties[I].$converter = O;
|
|
561
561
|
});
|
|
562
|
-
const F = (A == null ? void 0 : A.properties) || {}, P = p(F,
|
|
563
|
-
return { categoryId: m, categoryName:
|
|
562
|
+
const F = (A == null ? void 0 : A.properties) || {}, P = p(F, w, h, x, M, B);
|
|
563
|
+
return { categoryId: m, categoryName: C, properties: P };
|
|
564
564
|
}
|
|
565
565
|
return { categoryId: m, categoryName: "", properties: [] };
|
|
566
566
|
}
|
|
567
567
|
function d(m, v, g, M, B) {
|
|
568
|
-
const U = m.type, O = t(m),
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
568
|
+
const U = m.type, O = t(m), x = {};
|
|
569
|
+
let b = B || n[U];
|
|
570
|
+
if (b && Object.keys(b).length === 0 && g && g.getPropConfig && (b = g.getPropConfig(M)), b && b.categories) {
|
|
571
571
|
const h = [];
|
|
572
|
-
return Object.keys(
|
|
573
|
-
const T =
|
|
572
|
+
return Object.keys(b.categories).map((w) => {
|
|
573
|
+
const T = b.categories[w];
|
|
574
574
|
if (T.$ref) {
|
|
575
|
-
h.push(f(
|
|
575
|
+
h.push(f(w, T, m, v, M));
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
578
|
-
const A = T == null ? void 0 : T.title,
|
|
579
|
-
h.push({ categoryId:
|
|
578
|
+
const A = T == null ? void 0 : T.title, C = T == null ? void 0 : T.tabId, F = T == null ? void 0 : T.tabName, P = T == null ? void 0 : T.hide, I = T == null ? void 0 : T.hideTitle, L = p(T.properties || {}, x, O, m, v, M, T.$converter), { setPropertyRelates: _ } = T, Q = T == null ? void 0 : T.parentPropertyID;
|
|
579
|
+
h.push({ categoryId: w, categoryName: A, tabId: C, tabName: F, hide: P, properties: L, hideTitle: I, setPropertyRelates: _, parentPropertyID: Q });
|
|
580
580
|
}), h;
|
|
581
581
|
}
|
|
582
582
|
return [];
|
|
@@ -896,8 +896,8 @@ function di(n, e, t, o) {
|
|
|
896
896
|
return;
|
|
897
897
|
const M = g === "up" ? s : p, B = g === "up" ? "plus" : "minus";
|
|
898
898
|
if (M()) {
|
|
899
|
-
const O = new Ce(c.value || 0)[B](Number(n.step)),
|
|
900
|
-
r.value = i(
|
|
899
|
+
const O = new Ce(c.value || 0)[B](Number(n.step)), x = O.toFixed();
|
|
900
|
+
r.value = i(x), u(a(O));
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
function f() {
|
|
@@ -936,7 +936,7 @@ function fn(n, e, t) {
|
|
|
936
936
|
return { cleanFormat: a, format: u };
|
|
937
937
|
}
|
|
938
938
|
function pn(n, e) {
|
|
939
|
-
const t =
|
|
939
|
+
const t = S(""), o = S(n.modelValue), i = $(() => Number(n.precision) || 0), r = S(n.bigNumber);
|
|
940
940
|
r.value = !1;
|
|
941
941
|
function a(l) {
|
|
942
942
|
return l.toFixed(i.value);
|
|
@@ -953,7 +953,11 @@ function pn(n, e) {
|
|
|
953
953
|
return isNaN(Number(l)) ? n.parser(l) : l;
|
|
954
954
|
let d = new Ce(l, 10);
|
|
955
955
|
if (f && (d = u(d)), d.isNaN()) {
|
|
956
|
-
if (n.nullable
|
|
956
|
+
if (n.nullable)
|
|
957
|
+
return null;
|
|
958
|
+
if (n.showZero && f)
|
|
959
|
+
return 0;
|
|
960
|
+
if (!f)
|
|
957
961
|
return null;
|
|
958
962
|
const v = new Ce("" + n.min, 10), g = new Ce("" + n.max, 10);
|
|
959
963
|
if (!v.isNaN())
|
|
@@ -972,40 +976,40 @@ function pn(n, e) {
|
|
|
972
976
|
return { displayValue: t, getRealValue: s, modelValue: o, isEmpty: c, onNumberValueChanged: p, precision: i, getValidNumberObject: u };
|
|
973
977
|
}
|
|
974
978
|
function fi(n, e, t, o, i) {
|
|
975
|
-
const { cleanFormat: r, format: a } = t, { displayValue: c, getRealValue: u, modelValue: s, isEmpty: p, onNumberValueChanged: l } = o, { downward: f, upward: d } = i, m =
|
|
979
|
+
const { cleanFormat: r, format: a } = t, { displayValue: c, getRealValue: u, modelValue: s, isEmpty: p, onNumberValueChanged: l } = o, { downward: f, upward: d } = i, m = S(!1), v = $(() => c.value);
|
|
976
980
|
function g(h) {
|
|
977
981
|
var A;
|
|
978
982
|
if (h.stopPropagation(), m.value = !1, n.readonly || n.disabled)
|
|
979
983
|
return;
|
|
980
|
-
const
|
|
984
|
+
const w = (A = h.target) == null ? void 0 : A.value, T = r(w);
|
|
981
985
|
c.value = a(u(T, n.needValid), n.needValid), n.updateOn === "blur" && l(u(T, n.needValid)), e.emit("blur", { event: h, formatted: c.value, value: s.value });
|
|
982
986
|
}
|
|
983
987
|
function M(h) {
|
|
984
988
|
h.stopPropagation(), m.value = !0, !(n.readonly || n.disabled) && (c.value = p(s.value) || !n.showZero && "" + s.value == "0" ? "" : String(s.value), e.emit("focus", { event: h, formatted: c.value, value: s.value }));
|
|
985
989
|
}
|
|
986
990
|
function B(h) {
|
|
987
|
-
var
|
|
991
|
+
var C;
|
|
988
992
|
h.stopPropagation();
|
|
989
|
-
let
|
|
990
|
-
n.nullable || (
|
|
991
|
-
const T = r(
|
|
993
|
+
let w = (C = h.target) == null ? void 0 : C.value;
|
|
994
|
+
n.nullable || (w = w || 0);
|
|
995
|
+
const T = r(w), A = u(T, n.needValid);
|
|
992
996
|
n.updateOn === "change" && (c.value = T, l(A)), e.emit("input", A);
|
|
993
997
|
}
|
|
994
998
|
function U(h) {
|
|
995
|
-
const
|
|
996
|
-
return
|
|
999
|
+
const w = h;
|
|
1000
|
+
return w.value.substring((w == null ? void 0 : w.selectionStart) || 0, (w == null ? void 0 : w.selectionEnd) || 0);
|
|
997
1001
|
}
|
|
998
1002
|
function O(h) {
|
|
999
|
-
const { key:
|
|
1003
|
+
const { key: w, keyCode: T, target: A, ctrlKey: C, metaKey: F, shiftKey: P } = h;
|
|
1000
1004
|
if (!A)
|
|
1001
1005
|
return;
|
|
1002
1006
|
const I = A, L = I.value, _ = Number(n.precision), Q = /* @__PURE__ */ new Set([".", "-", "%"]), V = U(A);
|
|
1003
|
-
if (Q.has(
|
|
1007
|
+
if (Q.has(w) && L.includes(w) && !V.includes(w) || n.precision === 0 && [110, 190].includes(T)) {
|
|
1004
1008
|
h.preventDefault();
|
|
1005
1009
|
return;
|
|
1006
1010
|
}
|
|
1007
1011
|
const G = /* @__PURE__ */ new Set([46, 8, 9, 27, 13, 110, 190, 173]), H = /* @__PURE__ */ new Set([65, 67, 86, 88]), ee = /* @__PURE__ */ new Set([...Array.from({ length: 5 }, (ae, Y) => 35 + Y), 189, 109]);
|
|
1008
|
-
if (G.has(T) || H.has(T) && (
|
|
1012
|
+
if (G.has(T) || H.has(T) && (C || F) || ee.has(T))
|
|
1009
1013
|
return;
|
|
1010
1014
|
if (!(!P && (T >= 48 && T <= 57 || T >= 96 && T <= 105))) {
|
|
1011
1015
|
h.preventDefault();
|
|
@@ -1017,17 +1021,17 @@ function fi(n, e, t, o, i) {
|
|
|
1017
1021
|
return h.preventDefault(), !1;
|
|
1018
1022
|
}
|
|
1019
1023
|
}
|
|
1020
|
-
const
|
|
1024
|
+
const x = (h) => {
|
|
1021
1025
|
var A;
|
|
1022
|
-
let
|
|
1023
|
-
n.nullable || (
|
|
1024
|
-
const T = r(
|
|
1026
|
+
let w = (A = h.target) == null ? void 0 : A.value;
|
|
1027
|
+
n.nullable || (w = w || 0);
|
|
1028
|
+
const T = r(w);
|
|
1025
1029
|
s.value = u(T);
|
|
1026
1030
|
};
|
|
1027
|
-
function
|
|
1028
|
-
return n.keyboard && h.key === "ArrowDown" && (h.preventDefault(),
|
|
1031
|
+
function b(h) {
|
|
1032
|
+
return n.keyboard && h.key === "ArrowDown" && (h.preventDefault(), x(h), f(), h.stopPropagation()), n.keyboard && h.key === "ArrowUp" && (h.preventDefault(), x(h), d(), h.stopPropagation()), O(h);
|
|
1029
1033
|
}
|
|
1030
|
-
return { textBoxValue: v, onBlurTextBox: g, onFocusTextBox: M, onInput: B, onKeyDown:
|
|
1034
|
+
return { textBoxValue: v, onBlurTextBox: g, onFocusTextBox: M, onInput: B, onKeyDown: b, isFocus: m };
|
|
1031
1035
|
}
|
|
1032
1036
|
function pi(n, e, t) {
|
|
1033
1037
|
const {
|
|
@@ -1082,7 +1086,7 @@ function mi(n) {
|
|
|
1082
1086
|
return { placeholder: o, range: i };
|
|
1083
1087
|
}
|
|
1084
1088
|
function vi(n, e, t) {
|
|
1085
|
-
const o = mi(n), i =
|
|
1089
|
+
const o = mi(n), i = S(), {
|
|
1086
1090
|
onBlurTextBox: r,
|
|
1087
1091
|
onFocusTextBox: a,
|
|
1088
1092
|
onInput: c,
|
|
@@ -1193,8 +1197,8 @@ function gi() {
|
|
|
1193
1197
|
}, null)])]);
|
|
1194
1198
|
}
|
|
1195
1199
|
function hi(n, e, t) {
|
|
1196
|
-
var
|
|
1197
|
-
const o = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r =
|
|
1200
|
+
var C;
|
|
1201
|
+
const o = t && t.getStyles && t.getStyles() || "", i = t && t.getDesignerClass && t.getDesignerClass() || "", r = S();
|
|
1198
1202
|
let a;
|
|
1199
1203
|
function c() {
|
|
1200
1204
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
@@ -1213,7 +1217,7 @@ function hi(n, e, t) {
|
|
|
1213
1217
|
return null;
|
|
1214
1218
|
if (F.value.schema && F.value.schema.type === "component")
|
|
1215
1219
|
return F.value;
|
|
1216
|
-
const P =
|
|
1220
|
+
const P = S(F == null ? void 0 : F.value.parent), I = l(P);
|
|
1217
1221
|
return I || null;
|
|
1218
1222
|
}
|
|
1219
1223
|
function f(F = e) {
|
|
@@ -1261,14 +1265,14 @@ function hi(n, e, t) {
|
|
|
1261
1265
|
L > -1 && I.getExpressions().splice(L, 1);
|
|
1262
1266
|
}
|
|
1263
1267
|
}
|
|
1264
|
-
function
|
|
1268
|
+
function x(F) {
|
|
1265
1269
|
if (!F || !(e != null && e.schema))
|
|
1266
1270
|
return;
|
|
1267
1271
|
const P = e.schema, { formSchemaUtils: I } = F;
|
|
1268
1272
|
I.removeCommunicationInComponent(P);
|
|
1269
1273
|
}
|
|
1270
|
-
function
|
|
1271
|
-
t && t.onRemoveComponent && t.onRemoveComponent(), O(F),
|
|
1274
|
+
function b(F) {
|
|
1275
|
+
t && t.onRemoveComponent && t.onRemoveComponent(), O(F), x(F), e != null && e.schema.contents && e.schema.contents.map((P) => {
|
|
1272
1276
|
let I = P.id;
|
|
1273
1277
|
P.type === "component-ref" && (I = P.component);
|
|
1274
1278
|
const L = n.value.querySelectorAll(`#${I}-design-item`);
|
|
@@ -1282,7 +1286,7 @@ function hi(n, e, t) {
|
|
|
1282
1286
|
if (t && t.getCustomButtons)
|
|
1283
1287
|
return t.getCustomButtons();
|
|
1284
1288
|
}
|
|
1285
|
-
function
|
|
1289
|
+
function w(F) {
|
|
1286
1290
|
var I, L;
|
|
1287
1291
|
if (!((I = e == null ? void 0 : e.schema) != null && I.id))
|
|
1288
1292
|
return;
|
|
@@ -1305,7 +1309,7 @@ function hi(n, e, t) {
|
|
|
1305
1309
|
function T(F) {
|
|
1306
1310
|
var _;
|
|
1307
1311
|
const { changeObject: P } = F, { propertyID: I, propertyValue: L } = P;
|
|
1308
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((_ = F == null ? void 0 : F.changeObject) == null ? void 0 : _.propertyID) && I && L && (
|
|
1312
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((_ = F == null ? void 0 : F.changeObject) == null ? void 0 : _.propertyID) && I && L && (w(), a)) {
|
|
1309
1313
|
const Q = a.getControlBasicInfoMap(), V = Q.keys().toArray().filter((N) => {
|
|
1310
1314
|
var G, H;
|
|
1311
1315
|
return ((G = Q.get(N)) == null ? void 0 : G.reliedComponentId) === ((H = e == null ? void 0 : e.schema) == null ? void 0 : H.id);
|
|
@@ -1327,7 +1331,7 @@ function hi(n, e, t) {
|
|
|
1327
1331
|
canNested: !p(),
|
|
1328
1332
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1329
1333
|
elementRef: n,
|
|
1330
|
-
parent: (
|
|
1334
|
+
parent: (C = e == null ? void 0 : e.parent) == null ? void 0 : C.componentInstance,
|
|
1331
1335
|
schema: e == null ? void 0 : e.schema,
|
|
1332
1336
|
styles: o,
|
|
1333
1337
|
designerClass: i,
|
|
@@ -1340,20 +1344,20 @@ function hi(n, e, t) {
|
|
|
1340
1344
|
onAcceptMovedChildElement: g,
|
|
1341
1345
|
onChildElementMovedOut: B,
|
|
1342
1346
|
addNewChildComponentSchema: M,
|
|
1343
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
1344
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
1345
|
-
onRemoveComponent:
|
|
1347
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || S(!1),
|
|
1348
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || S(!1),
|
|
1349
|
+
onRemoveComponent: b,
|
|
1346
1350
|
getCustomButtons: h,
|
|
1347
1351
|
onPropertyChanged: A,
|
|
1348
|
-
setComponentBasicInfoMap:
|
|
1352
|
+
setComponentBasicInfoMap: w,
|
|
1349
1353
|
updateContextSchema: e == null ? void 0 : e.updateContextSchema
|
|
1350
1354
|
}, r;
|
|
1351
1355
|
}
|
|
1352
|
-
const yi =
|
|
1356
|
+
const yi = S(0);
|
|
1353
1357
|
function bi() {
|
|
1354
1358
|
yi.value++;
|
|
1355
1359
|
}
|
|
1356
|
-
const ft =
|
|
1360
|
+
const ft = S(0);
|
|
1357
1361
|
function wi(n) {
|
|
1358
1362
|
const { formSchemaUtils: e, formStateMachineUtils: t } = n;
|
|
1359
1363
|
function o(u, s = "") {
|
|
@@ -2115,11 +2119,11 @@ function xi(n) {
|
|
|
2115
2119
|
var B;
|
|
2116
2120
|
const g = o.get(v.id), M = g.appearance && g.appearance.class;
|
|
2117
2121
|
if (M) {
|
|
2118
|
-
const O = M.split(" ").filter((A) => !A.startsWith("col-")),
|
|
2122
|
+
const O = M.split(" ").filter((A) => !A.startsWith("col-")), x = "col-" + v.columnInSM, b = "col-md-" + v.columnInMD, h = "col-xl-" + v.columnInLG, w = "col-el-" + v.columnInEL, T = [x, b, h, w].concat(O);
|
|
2119
2123
|
g.appearance.class = T.join(" ");
|
|
2120
2124
|
}
|
|
2121
2125
|
if (v.fieldSetId) {
|
|
2122
|
-
const U = d.contents.find((
|
|
2126
|
+
const U = d.contents.find((x) => x.id === v.fieldSetId), O = m.find((x) => x.id === v.fieldSetId);
|
|
2123
2127
|
O ? (B = O.contents) == null || B.push(g) : (m.push(U), U.contents = [g]);
|
|
2124
2128
|
} else
|
|
2125
2129
|
m.push(g);
|
|
@@ -2186,11 +2190,11 @@ var Ti = { exports: {} };
|
|
|
2186
2190
|
2: [function(t, o, i) {
|
|
2187
2191
|
(function(r) {
|
|
2188
2192
|
var a = t("contra/emitter"), c = t("crossvent"), u = t("./classes"), s = document, p = s.documentElement;
|
|
2189
|
-
function l(
|
|
2193
|
+
function l(C, F) {
|
|
2190
2194
|
var P = arguments.length;
|
|
2191
|
-
P === 1 && Array.isArray(
|
|
2195
|
+
P === 1 && Array.isArray(C) === !1 && (F = C, C = []);
|
|
2192
2196
|
var I, L, _, Q, V, N, G, H, ee, me = null, ae, Y, ie = !1, ue = 0, ne, q = F || {};
|
|
2193
|
-
q.moves === void 0 && (q.moves = B), q.accepts === void 0 && (q.accepts = B), q.invalid === void 0 && (q.invalid = nt), q.containers === void 0 && (q.containers =
|
|
2197
|
+
q.moves === void 0 && (q.moves = B), q.accepts === void 0 && (q.accepts = B), q.invalid === void 0 && (q.invalid = nt), q.containers === void 0 && (q.containers = C || []), q.isContainer === void 0 && (q.isContainer = M), q.copy === void 0 && (q.copy = !1), q.copySortSource === void 0 && (q.copySortSource = !1), q.revertOnSpill === void 0 && (q.revertOnSpill = !1), q.removeOnSpill === void 0 && (q.removeOnSpill = !1), q.direction === void 0 && (q.direction = "vertical"), q.ignoreInputTextSelection === void 0 && (q.ignoreInputTextSelection = !0), q.mirrorContainer === void 0 && (q.mirrorContainer = s.body);
|
|
2194
2198
|
var oe = a({
|
|
2195
2199
|
containers: q.containers,
|
|
2196
2200
|
start: Ee,
|
|
@@ -2228,7 +2232,7 @@ var Ti = { exports: {} };
|
|
|
2228
2232
|
var j = v(y) !== 1 || y.metaKey || y.ctrlKey;
|
|
2229
2233
|
if (!j) {
|
|
2230
2234
|
var D = y.target, W = Pe(D);
|
|
2231
|
-
W && (ae = W, Te(), y.type === "mousedown" && (
|
|
2235
|
+
W && (ae = W, Te(), y.type === "mousedown" && (b(D) ? D.focus() : y.preventDefault()));
|
|
2232
2236
|
}
|
|
2233
2237
|
}
|
|
2234
2238
|
function tt(y) {
|
|
@@ -2240,7 +2244,7 @@ var Ti = { exports: {} };
|
|
|
2240
2244
|
if (!(y.clientX !== void 0 && Math.abs(y.clientX - Q) <= (q.slideFactorX || 0) && y.clientY !== void 0 && Math.abs(y.clientY - V) <= (q.slideFactorY || 0))) {
|
|
2241
2245
|
if (q.ignoreInputTextSelection) {
|
|
2242
2246
|
var j = A("clientX", y) || 0, D = A("clientY", y) || 0, W = s.elementFromPoint(j, D);
|
|
2243
|
-
if (
|
|
2247
|
+
if (b(W))
|
|
2244
2248
|
return;
|
|
2245
2249
|
}
|
|
2246
2250
|
var K = ae;
|
|
@@ -2250,12 +2254,12 @@ var Ti = { exports: {} };
|
|
|
2250
2254
|
}
|
|
2251
2255
|
function Pe(y) {
|
|
2252
2256
|
if (!(oe.dragging && I) && !De(y)) {
|
|
2253
|
-
for (var j = y;
|
|
2254
|
-
if (q.invalid(y, j) || (y =
|
|
2257
|
+
for (var j = y; x(y) && De(x(y)) === !1; )
|
|
2258
|
+
if (q.invalid(y, j) || (y = x(y), !y))
|
|
2255
2259
|
return;
|
|
2256
|
-
var D =
|
|
2260
|
+
var D = x(y);
|
|
2257
2261
|
if (D && !q.invalid(y, j)) {
|
|
2258
|
-
var W = q.moves(y, D, j,
|
|
2262
|
+
var W = q.moves(y, D, j, w(y));
|
|
2259
2263
|
if (W)
|
|
2260
2264
|
return {
|
|
2261
2265
|
item: y,
|
|
@@ -2272,7 +2276,7 @@ var Ti = { exports: {} };
|
|
|
2272
2276
|
j && Oe(j);
|
|
2273
2277
|
}
|
|
2274
2278
|
function Oe(y) {
|
|
2275
|
-
jt(y.item, y.source) && (H = y.item.cloneNode(!0), oe.emit("cloned", H, y.item, "copy")), L = y.source, _ = y.item, N = G =
|
|
2279
|
+
jt(y.item, y.source) && (H = y.item.cloneNode(!0), oe.emit("cloned", H, y.item, "copy")), L = y.source, _ = y.item, N = G = w(y.item), oe.dragging = !0, oe.emit("drag", _, L);
|
|
2276
2280
|
}
|
|
2277
2281
|
function nt() {
|
|
2278
2282
|
return !1;
|
|
@@ -2280,7 +2284,7 @@ var Ti = { exports: {} };
|
|
|
2280
2284
|
function He() {
|
|
2281
2285
|
if (oe.dragging) {
|
|
2282
2286
|
var y = H || _;
|
|
2283
|
-
Je(y,
|
|
2287
|
+
Je(y, x(y));
|
|
2284
2288
|
}
|
|
2285
2289
|
}
|
|
2286
2290
|
function ke() {
|
|
@@ -2293,18 +2297,18 @@ var Ti = { exports: {} };
|
|
|
2293
2297
|
}
|
|
2294
2298
|
}
|
|
2295
2299
|
function Je(y, j) {
|
|
2296
|
-
var D =
|
|
2300
|
+
var D = x(y);
|
|
2297
2301
|
H && q.copySortSource && j === L && D.removeChild(_), se(j) ? oe.emit("cancel", y, L) : oe.emit("drop", y, j, L, G), J();
|
|
2298
2302
|
}
|
|
2299
2303
|
function Qe() {
|
|
2300
2304
|
if (oe.dragging) {
|
|
2301
|
-
var y = H || _, j =
|
|
2305
|
+
var y = H || _, j = x(y);
|
|
2302
2306
|
j && j.removeChild(y), oe.emit(H ? "cancel" : "remove", y, j, L), J();
|
|
2303
2307
|
}
|
|
2304
2308
|
}
|
|
2305
2309
|
function k(y) {
|
|
2306
2310
|
if (oe.dragging) {
|
|
2307
|
-
var j = arguments.length > 0 ? y : q.revertOnSpill, D = H || _, W =
|
|
2311
|
+
var j = arguments.length > 0 ? y : q.revertOnSpill, D = H || _, W = x(D), K = se(W);
|
|
2308
2312
|
K === !1 && j && (H ? W && W.removeChild(H) : L.insertBefore(D, N)), K || j ? oe.emit("cancel", D, L, L) : oe.emit("drop", D, W, L, G), J();
|
|
2309
2313
|
}
|
|
2310
2314
|
}
|
|
@@ -2314,11 +2318,11 @@ var Ti = { exports: {} };
|
|
|
2314
2318
|
}
|
|
2315
2319
|
function se(y, j) {
|
|
2316
2320
|
var D;
|
|
2317
|
-
return j !== void 0 ? D = j : I ? D = G : D =
|
|
2321
|
+
return j !== void 0 ? D = j : I ? D = G : D = w(H || _), y === L && D === N;
|
|
2318
2322
|
}
|
|
2319
2323
|
function ce(y, j, D) {
|
|
2320
2324
|
for (var W = y; W && !K(); )
|
|
2321
|
-
W =
|
|
2325
|
+
W = x(W);
|
|
2322
2326
|
return W;
|
|
2323
2327
|
function K() {
|
|
2324
2328
|
var te = De(W);
|
|
@@ -2336,7 +2340,7 @@ var Ti = { exports: {} };
|
|
|
2336
2340
|
I.style.left = j - 2 + "px", I.style.top = D - 2 + "px";
|
|
2337
2341
|
var W = H || _, K = g(I, j, D), te = ce(K, j, D), xe = te !== null && te !== me;
|
|
2338
2342
|
(xe || te === null) && (be(), me = te, Fe()), Ot(K, D);
|
|
2339
|
-
var he =
|
|
2343
|
+
var he = x(W);
|
|
2340
2344
|
if (te === L && H && !q.copySortSource) {
|
|
2341
2345
|
he && he.removeChild(W);
|
|
2342
2346
|
return;
|
|
@@ -2362,7 +2366,7 @@ var Ti = { exports: {} };
|
|
|
2362
2366
|
}
|
|
2363
2367
|
}
|
|
2364
2368
|
function Tt(y, j, D) {
|
|
2365
|
-
(y === j || y ===
|
|
2369
|
+
(y === j || y === w(j)) && (G = w(j)), (y === null && D || y !== j && y !== w(j)) && (G = y);
|
|
2366
2370
|
}
|
|
2367
2371
|
function Et(y) {
|
|
2368
2372
|
u.rm(y, "gu-hide");
|
|
@@ -2381,14 +2385,14 @@ var Ti = { exports: {} };
|
|
|
2381
2385
|
ie = !1, q.mirrorContainer.appendChild(Y);
|
|
2382
2386
|
}
|
|
2383
2387
|
function kt() {
|
|
2384
|
-
I && (u.rm(q.mirrorContainer, "gu-unselectable"), m(p, "remove", "mousemove", Ie),
|
|
2388
|
+
I && (u.rm(q.mirrorContainer, "gu-unselectable"), m(p, "remove", "mousemove", Ie), x(I).removeChild(I), I = null);
|
|
2385
2389
|
}
|
|
2386
2390
|
function It() {
|
|
2387
|
-
Y && (
|
|
2391
|
+
Y && (x(Y).removeChild(Y), Y = null);
|
|
2388
2392
|
}
|
|
2389
2393
|
function ut(y, j) {
|
|
2390
|
-
for (var D = j; D !== y &&
|
|
2391
|
-
D =
|
|
2394
|
+
for (var D = j; D !== y && x(D) !== y; )
|
|
2395
|
+
D = x(D);
|
|
2392
2396
|
return D === p ? null : D;
|
|
2393
2397
|
}
|
|
2394
2398
|
function ot(y, j) {
|
|
@@ -2481,14 +2485,14 @@ var Ti = { exports: {} };
|
|
|
2481
2485
|
return Me(K ? D > de.left + U(de) / 2 : W > de.top + O(de) / 2);
|
|
2482
2486
|
}
|
|
2483
2487
|
function Me(de) {
|
|
2484
|
-
return de ?
|
|
2488
|
+
return de ? w(j) : j;
|
|
2485
2489
|
}
|
|
2486
2490
|
}
|
|
2487
2491
|
function jt(y, j) {
|
|
2488
2492
|
return typeof q.copy == "boolean" ? q.copy : q.copy(y, j);
|
|
2489
2493
|
}
|
|
2490
2494
|
}
|
|
2491
|
-
function f(
|
|
2495
|
+
function f(C) {
|
|
2492
2496
|
const F = Array.from(window.scrollContainerList);
|
|
2493
2497
|
if (F.length === 1) {
|
|
2494
2498
|
const I = Array.from(window.scrollContainerList)[0];
|
|
@@ -2496,18 +2500,18 @@ var Ti = { exports: {} };
|
|
|
2496
2500
|
}
|
|
2497
2501
|
const P = d(F);
|
|
2498
2502
|
for (const I of P)
|
|
2499
|
-
if (I.contains(
|
|
2503
|
+
if (I.contains(C))
|
|
2500
2504
|
return I;
|
|
2501
2505
|
return null;
|
|
2502
2506
|
}
|
|
2503
|
-
function d(
|
|
2507
|
+
function d(C) {
|
|
2504
2508
|
const F = [];
|
|
2505
|
-
return
|
|
2509
|
+
return C.forEach((P) => {
|
|
2506
2510
|
const I = document.getElementById(P);
|
|
2507
2511
|
I && F.push(I);
|
|
2508
2512
|
}), F.sort((P, I) => P.contains(I) ? 1 : I.contains(P) ? -1 : 0), F;
|
|
2509
2513
|
}
|
|
2510
|
-
function m(
|
|
2514
|
+
function m(C, F, P, I) {
|
|
2511
2515
|
var L = {
|
|
2512
2516
|
mouseup: "touchend",
|
|
2513
2517
|
mousedown: "touchstart",
|
|
@@ -2521,23 +2525,23 @@ var Ti = { exports: {} };
|
|
|
2521
2525
|
mousedown: "MSPointerDown",
|
|
2522
2526
|
mousemove: "MSPointerMove"
|
|
2523
2527
|
};
|
|
2524
|
-
r.navigator.pointerEnabled ? c[F](
|
|
2528
|
+
r.navigator.pointerEnabled ? c[F](C, _[P], I) : r.navigator.msPointerEnabled ? c[F](C, Q[P], I) : (c[F](C, L[P], I), c[F](C, P, I));
|
|
2525
2529
|
}
|
|
2526
|
-
function v(
|
|
2527
|
-
if (
|
|
2528
|
-
return
|
|
2529
|
-
if (
|
|
2530
|
-
return
|
|
2531
|
-
if (
|
|
2532
|
-
return
|
|
2533
|
-
var F =
|
|
2530
|
+
function v(C) {
|
|
2531
|
+
if (C.touches !== void 0)
|
|
2532
|
+
return C.touches.length;
|
|
2533
|
+
if (C.which !== void 0 && C.which !== 0)
|
|
2534
|
+
return C.which;
|
|
2535
|
+
if (C.buttons !== void 0)
|
|
2536
|
+
return C.buttons;
|
|
2537
|
+
var F = C.button;
|
|
2534
2538
|
if (F !== void 0)
|
|
2535
2539
|
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2536
2540
|
}
|
|
2537
|
-
function g(
|
|
2538
|
-
|
|
2539
|
-
var I =
|
|
2540
|
-
return
|
|
2541
|
+
function g(C, F, P) {
|
|
2542
|
+
C = C || {};
|
|
2543
|
+
var I = C.className || "", L;
|
|
2544
|
+
return C.className += " gu-hide", L = s.elementFromPoint(F, P), C.className = I, L;
|
|
2541
2545
|
}
|
|
2542
2546
|
function M() {
|
|
2543
2547
|
return !1;
|
|
@@ -2545,42 +2549,42 @@ var Ti = { exports: {} };
|
|
|
2545
2549
|
function B() {
|
|
2546
2550
|
return !0;
|
|
2547
2551
|
}
|
|
2548
|
-
function U(
|
|
2549
|
-
return
|
|
2552
|
+
function U(C) {
|
|
2553
|
+
return C.width || C.right - C.left;
|
|
2550
2554
|
}
|
|
2551
|
-
function O(
|
|
2552
|
-
return
|
|
2555
|
+
function O(C) {
|
|
2556
|
+
return C.height || C.bottom - C.top;
|
|
2553
2557
|
}
|
|
2554
|
-
function
|
|
2555
|
-
return
|
|
2558
|
+
function x(C) {
|
|
2559
|
+
return C.parentNode === s ? null : C.parentNode;
|
|
2556
2560
|
}
|
|
2557
|
-
function
|
|
2558
|
-
return
|
|
2561
|
+
function b(C) {
|
|
2562
|
+
return C.tagName === "INPUT" || C.tagName === "TEXTAREA" || C.tagName === "SELECT" || h(C);
|
|
2559
2563
|
}
|
|
2560
|
-
function h(
|
|
2561
|
-
return !
|
|
2564
|
+
function h(C) {
|
|
2565
|
+
return !C || C.contentEditable === "false" ? !1 : C.contentEditable === "true" ? !0 : h(x(C));
|
|
2562
2566
|
}
|
|
2563
|
-
function
|
|
2564
|
-
return
|
|
2567
|
+
function w(C) {
|
|
2568
|
+
return C.nextElementSibling || F();
|
|
2565
2569
|
function F() {
|
|
2566
|
-
var P =
|
|
2570
|
+
var P = C;
|
|
2567
2571
|
do
|
|
2568
2572
|
P = P.nextSibling;
|
|
2569
2573
|
while (P && P.nodeType !== 1);
|
|
2570
2574
|
return P;
|
|
2571
2575
|
}
|
|
2572
2576
|
}
|
|
2573
|
-
function T(
|
|
2574
|
-
return
|
|
2577
|
+
function T(C) {
|
|
2578
|
+
return C.targetTouches && C.targetTouches.length ? C.targetTouches[0] : C.changedTouches && C.changedTouches.length ? C.changedTouches[0] : C;
|
|
2575
2579
|
}
|
|
2576
|
-
function A(
|
|
2580
|
+
function A(C, F) {
|
|
2577
2581
|
var P = T(F), I = {
|
|
2578
2582
|
pageX: "clientX",
|
|
2579
2583
|
// IE8
|
|
2580
2584
|
pageY: "clientY"
|
|
2581
2585
|
// IE8
|
|
2582
2586
|
};
|
|
2583
|
-
return
|
|
2587
|
+
return C in I && !(C in P) && I[C] in P && (C = I[C]), P[C];
|
|
2584
2588
|
}
|
|
2585
2589
|
o.exports = l;
|
|
2586
2590
|
}).call(this, typeof Le < "u" ? Le : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2643,62 +2647,62 @@ var Ti = { exports: {} };
|
|
|
2643
2647
|
remove: p,
|
|
2644
2648
|
fabricate: g
|
|
2645
2649
|
};
|
|
2646
|
-
function f(
|
|
2647
|
-
return
|
|
2650
|
+
function f(x, b, h, w) {
|
|
2651
|
+
return x.addEventListener(b, h, w);
|
|
2648
2652
|
}
|
|
2649
|
-
function d(
|
|
2650
|
-
return
|
|
2653
|
+
function d(x, b, h) {
|
|
2654
|
+
return x.attachEvent("on" + b, B(x, b, h));
|
|
2651
2655
|
}
|
|
2652
|
-
function m(
|
|
2653
|
-
return
|
|
2656
|
+
function m(x, b, h, w) {
|
|
2657
|
+
return x.removeEventListener(b, h, w);
|
|
2654
2658
|
}
|
|
2655
|
-
function v(
|
|
2656
|
-
var
|
|
2657
|
-
if (
|
|
2658
|
-
return
|
|
2659
|
+
function v(x, b, h) {
|
|
2660
|
+
var w = U(x, b, h);
|
|
2661
|
+
if (w)
|
|
2662
|
+
return x.detachEvent("on" + b, w);
|
|
2659
2663
|
}
|
|
2660
|
-
function g(
|
|
2661
|
-
var
|
|
2662
|
-
|
|
2664
|
+
function g(x, b, h) {
|
|
2665
|
+
var w = c.indexOf(b) === -1 ? A() : T();
|
|
2666
|
+
x.dispatchEvent ? x.dispatchEvent(w) : x.fireEvent("on" + b, w);
|
|
2663
2667
|
function T() {
|
|
2664
|
-
var
|
|
2665
|
-
return u.createEvent ? (
|
|
2668
|
+
var C;
|
|
2669
|
+
return u.createEvent ? (C = u.createEvent("Event"), C.initEvent(b, !0, !0)) : u.createEventObject && (C = u.createEventObject()), C;
|
|
2666
2670
|
}
|
|
2667
2671
|
function A() {
|
|
2668
|
-
return new a(
|
|
2672
|
+
return new a(b, { detail: h });
|
|
2669
2673
|
}
|
|
2670
2674
|
}
|
|
2671
|
-
function M(
|
|
2675
|
+
function M(x, b, h) {
|
|
2672
2676
|
return function(T) {
|
|
2673
2677
|
var A = T || r.event;
|
|
2674
2678
|
A.target = A.target || A.srcElement, A.preventDefault = A.preventDefault || function() {
|
|
2675
2679
|
A.returnValue = !1;
|
|
2676
2680
|
}, A.stopPropagation = A.stopPropagation || function() {
|
|
2677
2681
|
A.cancelBubble = !0;
|
|
2678
|
-
}, A.which = A.which || A.keyCode, h.call(
|
|
2682
|
+
}, A.which = A.which || A.keyCode, h.call(x, A);
|
|
2679
2683
|
};
|
|
2680
2684
|
}
|
|
2681
|
-
function B(
|
|
2682
|
-
var
|
|
2685
|
+
function B(x, b, h) {
|
|
2686
|
+
var w = U(x, b, h) || M(x, b, h);
|
|
2683
2687
|
return l.push({
|
|
2684
|
-
wrapper:
|
|
2685
|
-
element:
|
|
2686
|
-
type:
|
|
2688
|
+
wrapper: w,
|
|
2689
|
+
element: x,
|
|
2690
|
+
type: b,
|
|
2687
2691
|
fn: h
|
|
2688
|
-
}),
|
|
2692
|
+
}), w;
|
|
2689
2693
|
}
|
|
2690
|
-
function U(
|
|
2691
|
-
var
|
|
2692
|
-
if (
|
|
2693
|
-
var T = l[
|
|
2694
|
-
return l.splice(
|
|
2694
|
+
function U(x, b, h) {
|
|
2695
|
+
var w = O(x, b, h);
|
|
2696
|
+
if (w) {
|
|
2697
|
+
var T = l[w].wrapper;
|
|
2698
|
+
return l.splice(w, 1), T;
|
|
2695
2699
|
}
|
|
2696
2700
|
}
|
|
2697
|
-
function O(
|
|
2698
|
-
var
|
|
2699
|
-
for (
|
|
2700
|
-
if (T = l[
|
|
2701
|
-
return
|
|
2701
|
+
function O(x, b, h) {
|
|
2702
|
+
var w, T;
|
|
2703
|
+
for (w = 0; w < l.length; w++)
|
|
2704
|
+
if (T = l[w], T.element === x && T.type === b && T.fn === h)
|
|
2705
|
+
return w;
|
|
2702
2706
|
}
|
|
2703
2707
|
}).call(this, typeof Le < "u" ? Le : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2704
2708
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2794,23 +2798,23 @@ var Ti = { exports: {} };
|
|
|
2794
2798
|
if (!d) {
|
|
2795
2799
|
var O = p(g);
|
|
2796
2800
|
d = !0;
|
|
2797
|
-
for (var
|
|
2798
|
-
for (m = f, f = []; ++v <
|
|
2801
|
+
for (var x = f.length; x; ) {
|
|
2802
|
+
for (m = f, f = []; ++v < x; )
|
|
2799
2803
|
m && m[v].run();
|
|
2800
|
-
v = -1,
|
|
2804
|
+
v = -1, x = f.length;
|
|
2801
2805
|
}
|
|
2802
2806
|
m = null, d = !1, l(O);
|
|
2803
2807
|
}
|
|
2804
2808
|
}
|
|
2805
2809
|
r.nextTick = function(O) {
|
|
2806
|
-
var
|
|
2810
|
+
var x = new Array(arguments.length - 1);
|
|
2807
2811
|
if (arguments.length > 1)
|
|
2808
|
-
for (var
|
|
2809
|
-
|
|
2810
|
-
f.push(new B(O,
|
|
2812
|
+
for (var b = 1; b < arguments.length; b++)
|
|
2813
|
+
x[b - 1] = arguments[b];
|
|
2814
|
+
f.push(new B(O, x)), f.length === 1 && !d && p(M);
|
|
2811
2815
|
};
|
|
2812
|
-
function B(O,
|
|
2813
|
-
this.fun = O, this.array =
|
|
2816
|
+
function B(O, x) {
|
|
2817
|
+
this.fun = O, this.array = x;
|
|
2814
2818
|
}
|
|
2815
2819
|
B.prototype.run = function() {
|
|
2816
2820
|
this.fun.apply(null, this.array);
|
|
@@ -2903,7 +2907,7 @@ const Ei = {
|
|
|
2903
2907
|
const {
|
|
2904
2908
|
locale: t,
|
|
2905
2909
|
t: o
|
|
2906
|
-
} = St(), i =
|
|
2910
|
+
} = St(), i = S(n.animate), r = "fadeOut", a = $(() => n.options), c = S(!1), u = $(() => a.value.title && a.value.message), s = $(() => !a.value.title && a.value.message), p = $(() => {
|
|
2907
2911
|
const O = {
|
|
2908
2912
|
animated: c.value,
|
|
2909
2913
|
toast: !0,
|
|
@@ -2911,10 +2915,10 @@ const Ei = {
|
|
|
2911
2915
|
};
|
|
2912
2916
|
return O[n.animate] = !1, O[r] = c.value, O["toasty-type-" + a.value.type] = !0, a.value.theme && (O[a.value.theme] = !0), O;
|
|
2913
2917
|
}), l = $(() => {
|
|
2914
|
-
const
|
|
2918
|
+
const b = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, h = {
|
|
2915
2919
|
"f-icon": !0
|
|
2916
2920
|
};
|
|
2917
|
-
return h[
|
|
2921
|
+
return h[b] = !0, h;
|
|
2918
2922
|
}), f = $(() => a.value.title || a.value.message), d = $(() => n.showCloseButton), m = $(() => !!a.value.buttons || !!e.slots.default), v = $(() => t.value === "en" ? {
|
|
2919
2923
|
wordBreak: "keep-all",
|
|
2920
2924
|
overflowWrap: "break-word"
|
|
@@ -2924,7 +2928,7 @@ const Ei = {
|
|
|
2924
2928
|
e.emit("close", a.value);
|
|
2925
2929
|
}, 200);
|
|
2926
2930
|
}
|
|
2927
|
-
function M(O,
|
|
2931
|
+
function M(O, x) {
|
|
2928
2932
|
}
|
|
2929
2933
|
function B(O) {
|
|
2930
2934
|
return `f-preten-link ${O.customClass ? O.customClass : ""}`;
|
|
@@ -2936,10 +2940,10 @@ const Ei = {
|
|
|
2936
2940
|
var O;
|
|
2937
2941
|
return E(lt, null, [E("div", {
|
|
2938
2942
|
class: "after-toast-msg text-right"
|
|
2939
|
-
}, [!e.slots.default && ((O = a.value.buttons) == null ? void 0 : O.map((
|
|
2940
|
-
class: B(
|
|
2941
|
-
onClick: (
|
|
2942
|
-
}, [
|
|
2943
|
+
}, [!e.slots.default && ((O = a.value.buttons) == null ? void 0 : O.map((x) => E("span", {
|
|
2944
|
+
class: B(x),
|
|
2945
|
+
onClick: (b) => void 0
|
|
2946
|
+
}, [x.text]))), e.slots.default && e.slots.default()])]);
|
|
2943
2947
|
};
|
|
2944
2948
|
return () => E("div", {
|
|
2945
2949
|
class: p.value,
|
|
@@ -2991,7 +2995,7 @@ const Ei = {
|
|
|
2991
2995
|
right: 12,
|
|
2992
2996
|
top: 20,
|
|
2993
2997
|
bottom: 12
|
|
2994
|
-
}, i =
|
|
2998
|
+
}, i = S(), r = S(n.options), a = S(n.showCloseButton), c = $(() => n.position || "bottom-right"), u = $(() => n.timeout != null ? n.timeout : 3e3), s = $(() => {
|
|
2995
2999
|
const f = n.bottom ? n.bottom : o.bottom, d = n.top ? n.top : o.top, m = {
|
|
2996
3000
|
transition: "all 0.2s ease",
|
|
2997
3001
|
left: c.value.indexOf("left") > -1 ? `${n.left ? n.left : o.left}px` : "",
|
|
@@ -3050,7 +3054,7 @@ class Fi {
|
|
|
3050
3054
|
const a = Jt({
|
|
3051
3055
|
setup() {
|
|
3052
3056
|
var s;
|
|
3053
|
-
const c =
|
|
3057
|
+
const c = S();
|
|
3054
3058
|
function u() {
|
|
3055
3059
|
c.value.container.style.transform = "scale(0)", setTimeout(() => {
|
|
3056
3060
|
t.updateNotifyPositionForClose(i, c), a.unmount();
|
|
@@ -3309,23 +3313,23 @@ function Ii(n, e, t, o, i, r, a, c, u, s, p, l, f, d, m, v, g) {
|
|
|
3309
3313
|
hasLeftFixedColumn: U,
|
|
3310
3314
|
hasRightFixedColumn: O
|
|
3311
3315
|
} = a, {
|
|
3312
|
-
gridDataStyle:
|
|
3313
|
-
leftFixedGridDataStyle:
|
|
3316
|
+
gridDataStyle: x,
|
|
3317
|
+
leftFixedGridDataStyle: b,
|
|
3314
3318
|
rightFixedGridDataStyle: h
|
|
3315
3319
|
} = d, {
|
|
3316
|
-
renderDataRow:
|
|
3317
|
-
} = Un(n, e, B, g, c, u, s, p, l, f, d, m, v), T = [
|
|
3320
|
+
renderDataRow: w
|
|
3321
|
+
} = Un(n, e, B, g, c, u, s, p, l, f, d, m, v), T = [w];
|
|
3318
3322
|
function A(L, _) {
|
|
3319
3323
|
const Q = M(L);
|
|
3320
3324
|
return g.value.filter((V) => V.visible !== !1).map((V, N) => T[V.type](V, Q, _, N));
|
|
3321
3325
|
}
|
|
3322
|
-
function
|
|
3326
|
+
function C() {
|
|
3323
3327
|
return E("div", {
|
|
3324
3328
|
ref: o,
|
|
3325
3329
|
class: "fv-grid-content-left-fixed"
|
|
3326
3330
|
}, [E("div", {
|
|
3327
3331
|
class: "fv-grid-data",
|
|
3328
|
-
style:
|
|
3332
|
+
style: b.value
|
|
3329
3333
|
}, [A(B.value.leftColumns.filter((L) => L.visible), "left")])]);
|
|
3330
3334
|
}
|
|
3331
3335
|
function F() {
|
|
@@ -3334,7 +3338,7 @@ function Ii(n, e, t, o, i, r, a, c, u, s, p, l, f, d, m, v, g) {
|
|
|
3334
3338
|
class: "fv-grid-content-primary"
|
|
3335
3339
|
}, [E("div", {
|
|
3336
3340
|
class: "fv-grid-data",
|
|
3337
|
-
style:
|
|
3341
|
+
style: x.value
|
|
3338
3342
|
}, [A(B.value.primaryColumns.filter((L) => L.visible), "primary")])]);
|
|
3339
3343
|
}
|
|
3340
3344
|
function P() {
|
|
@@ -3348,7 +3352,7 @@ function Ii(n, e, t, o, i, r, a, c, u, s, p, l, f, d, m, v, g) {
|
|
|
3348
3352
|
}
|
|
3349
3353
|
function I() {
|
|
3350
3354
|
const L = [];
|
|
3351
|
-
return U.value && L.push(
|
|
3355
|
+
return U.value && L.push(C()), L.push(F()), O.value && L.push(P()), L;
|
|
3352
3356
|
}
|
|
3353
3357
|
return {
|
|
3354
3358
|
renderDataArea: I
|
|
@@ -3360,19 +3364,19 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3360
3364
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "unSelectItem", "selectItem", "filterChanged", "sortChanged", "selectionUpdate"],
|
|
3361
3365
|
setup(n, e) {
|
|
3362
3366
|
var qt, _t;
|
|
3363
|
-
const o = ((qt = n.rowOption) == null ? void 0 : qt.height) || 28, i =
|
|
3367
|
+
const o = ((qt = n.rowOption) == null ? void 0 : qt.height) || 28, i = S(20), r = S(n.columns), a = qn(n), {
|
|
3364
3368
|
idField: c
|
|
3365
|
-
} = a, u =
|
|
3369
|
+
} = a, u = S(), s = S(), p = S(), l = S(), f = S(), d = S([]), m = S(!1), v = S(((_t = n.rowOption) == null ? void 0 : _t.wrapContent) || !1), g = _n(n, a), M = Wn(n, e), B = Gn(n), {
|
|
3366
3370
|
collapseField: U
|
|
3367
3371
|
} = B, {
|
|
3368
3372
|
showLoading: O,
|
|
3369
|
-
renderLoading:
|
|
3370
|
-
} = Xn(n, u),
|
|
3373
|
+
renderLoading: x
|
|
3374
|
+
} = Xn(n, u), b = Yn(n, /* @__PURE__ */ new Map(), M, B, a), {
|
|
3371
3375
|
dataView: h
|
|
3372
|
-
} =
|
|
3376
|
+
} = b, w = Zn(n, b, a, d, e), {
|
|
3373
3377
|
showSelection: T,
|
|
3374
3378
|
selectedValues: A
|
|
3375
|
-
} =
|
|
3379
|
+
} = w, C = Jn(n, d, b, a, w, e), F = $(() => n.disabled), P = $(() => n.virtualized ? Math.min(b.dataView.value.length, i.value) : b.dataView.value.length), I = Qn(n, b), {
|
|
3376
3380
|
shouldRenderPagination: L
|
|
3377
3381
|
} = I, {
|
|
3378
3382
|
containerStyleObject: _
|
|
@@ -3390,12 +3394,12 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3390
3394
|
columnContext: ae,
|
|
3391
3395
|
updateColumnRenderContext: Y
|
|
3392
3396
|
} = H;
|
|
3393
|
-
me(
|
|
3394
|
-
const ie = io(n, ae), ue = ro(n, e,
|
|
3397
|
+
me(b, ee);
|
|
3398
|
+
const ie = io(n, ae), ue = ro(n, e, w, a), ne = ao(n, e, a, ue, d), q = lo(n), oe = so(n, ne, q), De = uo(n, b, ne, B, a, q, oe), Ne = co(n, r, b, P, 0, De), {
|
|
3395
3399
|
getVisualData: Te
|
|
3396
|
-
} = Ne, Ye = fo(n, ae), Ae = po(n,
|
|
3400
|
+
} = Ne, Ye = fo(n, ae), Ae = po(n, w), {
|
|
3397
3401
|
sidebarWidth: Ze
|
|
3398
|
-
} = Ae, le = mo(n,
|
|
3402
|
+
} = Ae, le = mo(n, b, d, ae, Ne, P, 0, Ze), {
|
|
3399
3403
|
onWheel: tt,
|
|
3400
3404
|
dataGridWidth: Pe,
|
|
3401
3405
|
viewPortHeight: Ve,
|
|
@@ -3404,7 +3408,7 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3404
3408
|
updateVisibleRowsOnLatestVisibleScope: nt
|
|
3405
3409
|
} = le, He = vo(n, ae, s, Ee, ie), {
|
|
3406
3410
|
calculateColumnsSize: ke
|
|
3407
|
-
} = He, je = go(), Je = ho(s, f,
|
|
3411
|
+
} = He, je = go(), Je = ho(s, f, b, je, le), Qe = yo(n, e, H, b, ie, g, le), k = $(() => {
|
|
3408
3412
|
const z = {
|
|
3409
3413
|
"fv-grid": !0,
|
|
3410
3414
|
"fv-grid-bordered": n.showBorder,
|
|
@@ -3418,13 +3422,13 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3418
3422
|
"fv-grid-wrap-content": v.value
|
|
3419
3423
|
})), {
|
|
3420
3424
|
renderDataArea: se
|
|
3421
|
-
} = Ii(n, e, p, l, f, Ye, H,
|
|
3425
|
+
} = Ii(n, e, p, l, f, Ye, H, b, ne, B, ue, w, C, le, Ne, q, d), {
|
|
3422
3426
|
renderGridHeader: ce,
|
|
3423
3427
|
renderGridColumnResizeOverlay: Ie,
|
|
3424
3428
|
shouldShowHeader: Tt
|
|
3425
|
-
} = bo(n, e, s, l, f, H,
|
|
3429
|
+
} = bo(n, e, s, l, f, H, b, Qe, Je, M, je, He, ie, w, Ae, ee, le, Ee, d), {
|
|
3426
3430
|
renderDataGridSidebar: Et
|
|
3427
|
-
} = wo(n, ue,
|
|
3431
|
+
} = wo(n, ue, w, Ae, le), {
|
|
3428
3432
|
renderDisableMask: Mt
|
|
3429
3433
|
} = Co(), {
|
|
3430
3434
|
renderHorizontalScrollbar: Ft
|
|
@@ -3441,36 +3445,36 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3441
3445
|
Ge(() => {
|
|
3442
3446
|
s.value && (i.value = Math.max(Math.ceil(s.value.clientHeight / o), i.value), d.value = Te(0, P.value + 0 - 1), zn(s.value, kt), ke(), et(() => {
|
|
3443
3447
|
s.value && (Pe.value = s.value.clientWidth), p.value && (Ee.value = p.value.clientWidth, Ve.value = p.value.clientHeight);
|
|
3444
|
-
})), O.value &&
|
|
3448
|
+
})), O.value && x();
|
|
3445
3449
|
}), Ct(() => {
|
|
3446
3450
|
}), Se(Ee, () => {
|
|
3447
3451
|
s.value && ke();
|
|
3448
3452
|
});
|
|
3449
3453
|
function It(z) {
|
|
3450
|
-
|
|
3454
|
+
b.collapseTo(z), b.reOrderVisibleIndex(), Oe();
|
|
3451
3455
|
}
|
|
3452
3456
|
function ut(z) {
|
|
3453
|
-
|
|
3457
|
+
b.expandTo(z), b.reOrderVisibleIndex(), Oe();
|
|
3454
3458
|
}
|
|
3455
3459
|
function ot() {
|
|
3456
|
-
const z =
|
|
3460
|
+
const z = w.getSelectionRow();
|
|
3457
3461
|
return z ? z.dataIndex - 1 : -1;
|
|
3458
3462
|
}
|
|
3459
3463
|
function Nt() {
|
|
3460
3464
|
const z = ot();
|
|
3461
|
-
|
|
3465
|
+
b.insertNewDataItem(z), d.value = Te(0, P.value + 0 - 1);
|
|
3462
3466
|
}
|
|
3463
3467
|
function Pt() {
|
|
3464
3468
|
const z = ot();
|
|
3465
|
-
|
|
3469
|
+
b.insertNewChildDataItem(z), d.value = Te(0, P.value + 0 - 1);
|
|
3466
3470
|
}
|
|
3467
3471
|
function Vt(z, Z) {
|
|
3468
3472
|
const fe = d.value.find((we) => we.raw[c.value] === Z), ge = fe ? fe.dataIndex - 1 : -1;
|
|
3469
|
-
|
|
3473
|
+
b.insertNewChildDataItems(z, ge);
|
|
3470
3474
|
}
|
|
3471
3475
|
function Ot() {
|
|
3472
|
-
const z = ot(), Z =
|
|
3473
|
-
|
|
3476
|
+
const z = ot(), Z = C.getNextSelectableHierarchyItemId(z);
|
|
3477
|
+
b.removeHierarchyDataItem(z), d.value = Te(0, P.value + 0 - 1), Z && C.selectItemById(Z);
|
|
3474
3478
|
}
|
|
3475
3479
|
function ct(z) {
|
|
3476
3480
|
ne.onEditingRow(z);
|
|
@@ -3482,16 +3486,16 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3482
3486
|
ne.cancelEditingRow(z);
|
|
3483
3487
|
}
|
|
3484
3488
|
function j(z) {
|
|
3485
|
-
z && (r.value = z, V(r), Y(r.value), me(
|
|
3489
|
+
z && (r.value = z, V(r), Y(r.value), me(b, ee), ke());
|
|
3486
3490
|
}
|
|
3487
3491
|
Se(() => n.columns, (z) => {
|
|
3488
3492
|
j(z);
|
|
3489
3493
|
});
|
|
3490
3494
|
function D(z, Z) {
|
|
3491
|
-
z && (
|
|
3495
|
+
z && (b.load(z), b.reOrderVisibleIndex(), Z != null && Z.keepScrollPosition ? le.scrollTo(le.offsetY.value) : Oe());
|
|
3492
3496
|
}
|
|
3493
3497
|
function W(z) {
|
|
3494
|
-
|
|
3498
|
+
C.selectItemById(z);
|
|
3495
3499
|
}
|
|
3496
3500
|
function K(z) {
|
|
3497
3501
|
const Z = d.value.find((fe) => fe.raw[a.idField.value] === z);
|
|
@@ -3501,25 +3505,25 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3501
3505
|
ue.activeRowById(z);
|
|
3502
3506
|
}
|
|
3503
3507
|
function xe(z) {
|
|
3504
|
-
|
|
3508
|
+
C.selectItemByIds(z);
|
|
3505
3509
|
}
|
|
3506
3510
|
function he() {
|
|
3507
|
-
return
|
|
3511
|
+
return w.getSelectedItems();
|
|
3508
3512
|
}
|
|
3509
3513
|
function ye() {
|
|
3510
|
-
|
|
3514
|
+
w.clearSelection();
|
|
3511
3515
|
}
|
|
3512
3516
|
const Me = $(() => !d.value || !d.value.length), {
|
|
3513
3517
|
renderEmpty: de
|
|
3514
3518
|
} = To(n, e);
|
|
3515
3519
|
function Fe() {
|
|
3516
|
-
return
|
|
3520
|
+
return w.getSelectionRow();
|
|
3517
3521
|
}
|
|
3518
3522
|
function be(z) {
|
|
3519
|
-
|
|
3523
|
+
C.unSelectItemByIds(z);
|
|
3520
3524
|
}
|
|
3521
3525
|
function ve() {
|
|
3522
|
-
return
|
|
3526
|
+
return w.currentSelectedDataId.value;
|
|
3523
3527
|
}
|
|
3524
3528
|
function it(z, Z, fe) {
|
|
3525
3529
|
const ge = h.value.find((we) => we[c.value] === z);
|
|
@@ -3548,15 +3552,15 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3548
3552
|
} = fe;
|
|
3549
3553
|
pe && !Re(Z[pe]) && (we.collapse = Z[pe]), Ue && !Re(Z[Ue]) && (we.checked = Z[Ue]), ze && !Re(Z[ze]) && (we.disabled = Z[ze]), qe && !Re(Z[qe]) && (we.visible = Z[qe]);
|
|
3550
3554
|
}
|
|
3551
|
-
d.value = [...d.value.slice(0, Wt), we, ...d.value.slice(Wt + 1)],
|
|
3555
|
+
d.value = [...d.value.slice(0, Wt), we, ...d.value.slice(Wt + 1)], b.updateSummary();
|
|
3552
3556
|
}
|
|
3553
3557
|
}
|
|
3554
3558
|
}
|
|
3555
3559
|
function rt(z) {
|
|
3556
|
-
return Object.prototype.hasOwnProperty.call(z, "raw") ?
|
|
3560
|
+
return Object.prototype.hasOwnProperty.call(z, "raw") ? b.hasRealChildren(z.raw) : b.hasRealChildren(z);
|
|
3557
3561
|
}
|
|
3558
3562
|
function at(z) {
|
|
3559
|
-
const Z =
|
|
3563
|
+
const Z = b.dataView.value.find((fe) => fe[c.value] === z);
|
|
3560
3564
|
return Z ? Z[U.value] : "";
|
|
3561
3565
|
}
|
|
3562
3566
|
function wn() {
|
|
@@ -3573,7 +3577,7 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3573
3577
|
fe && ue.changeRow(fe);
|
|
3574
3578
|
}
|
|
3575
3579
|
function xn() {
|
|
3576
|
-
|
|
3580
|
+
w.keepSelectingOnPaging.value || ye(), b.updateVisibleDataSummary(d.value);
|
|
3577
3581
|
}
|
|
3578
3582
|
e.expose({
|
|
3579
3583
|
activeRowById: te,
|
|
@@ -3611,7 +3615,7 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3611
3615
|
..._.value,
|
|
3612
3616
|
borderRadius: "5px"
|
|
3613
3617
|
}));
|
|
3614
|
-
Eo(n, e,
|
|
3618
|
+
Eo(n, e, b, le, I, w);
|
|
3615
3619
|
const Mn = $(() => ({
|
|
3616
3620
|
"d-flex": !0,
|
|
3617
3621
|
"justify-content-between": L.value && T.value,
|
|
@@ -3622,7 +3626,7 @@ const Ni = /* @__PURE__ */ Xe({
|
|
|
3622
3626
|
"align-items-center": !0
|
|
3623
3627
|
})), {
|
|
3624
3628
|
renderDataGridSummary: Bn
|
|
3625
|
-
} = Mo(n,
|
|
3629
|
+
} = Mo(n, b, H);
|
|
3626
3630
|
return () => E("div", {
|
|
3627
3631
|
ref: u,
|
|
3628
3632
|
class: k.value,
|
|
@@ -4214,7 +4218,7 @@ function Ir() {
|
|
|
4214
4218
|
return { onCopy: n };
|
|
4215
4219
|
}
|
|
4216
4220
|
function Nr(n, e, t, o) {
|
|
4217
|
-
const i =
|
|
4221
|
+
const i = S(14), r = S(140), a = S(""), c = S(o.value.length), u = $(() => o.value), s = $(() => ({
|
|
4218
4222
|
"font-size": `${i.value}px`,
|
|
4219
4223
|
height: "100%"
|
|
4220
4224
|
}));
|
|
@@ -4246,7 +4250,7 @@ function Pr(n, e, t, o) {
|
|
|
4246
4250
|
return { getEditorRender: a };
|
|
4247
4251
|
}
|
|
4248
4252
|
function Vr() {
|
|
4249
|
-
const n =
|
|
4253
|
+
const n = S(!1), e = S("复制成功");
|
|
4250
4254
|
return {
|
|
4251
4255
|
feedbackStyle: $(() => {
|
|
4252
4256
|
const o = {
|
|
@@ -4305,7 +4309,7 @@ function jr(n, e) {
|
|
|
4305
4309
|
const i = $(() => !!n.value && !!n.value.date), r = $(() => {
|
|
4306
4310
|
const d = n.value && n.value.date || "";
|
|
4307
4311
|
return `${e.exception.happend} : ${d}`;
|
|
4308
|
-
}), a = $(() => !!n.value && !!n.value.detail), c = $(() => n.value ? t(n.value.detail) > 160 : !1), u =
|
|
4312
|
+
}), a = $(() => !!n.value && !!n.value.detail), c = $(() => n.value ? t(n.value.detail) > 160 : !1), u = S(!1), s = $(() => u.value ? e.exception.collapse : e.exception.expand), p = $(() => {
|
|
4309
4313
|
const d = e.exception.detail + " : " + (n.value && n.value.detail) || "";
|
|
4310
4314
|
return u.value ? d : o(d, 160);
|
|
4311
4315
|
}), l = $(() => ({
|
|
@@ -4338,7 +4342,7 @@ function Rr(n) {
|
|
|
4338
4342
|
}, null);
|
|
4339
4343
|
}
|
|
4340
4344
|
function Lr(n, e, t, o, i) {
|
|
4341
|
-
const r =
|
|
4345
|
+
const r = S(n.exceptionInfo), a = $(() => {
|
|
4342
4346
|
const m = e.value === "question" ? "warning" : e.value, v = {
|
|
4343
4347
|
"f-icon": !0
|
|
4344
4348
|
}, g = `f-icon-${m}`;
|
|
@@ -4368,7 +4372,7 @@ function $r(n, e, t, o) {
|
|
|
4368
4372
|
onCopy: i
|
|
4369
4373
|
} = e, {
|
|
4370
4374
|
toShowFeedback: r
|
|
4371
|
-
} = t, a =
|
|
4375
|
+
} = t, a = S(o.exception.copySuccess || "复制成功"), c = S(o.exception.copy || "复制详细信息"), u = S(n.exceptionInfo || {
|
|
4372
4376
|
date: "",
|
|
4373
4377
|
message: "",
|
|
4374
4378
|
detail: ""
|
|
@@ -4390,7 +4394,7 @@ function $r(n, e, t, o) {
|
|
|
4390
4394
|
}, [c.value])]);
|
|
4391
4395
|
}
|
|
4392
4396
|
function Dr(n, e, t, o, i) {
|
|
4393
|
-
const r =
|
|
4397
|
+
const r = S(n.type), a = S(n.buttons), c = S(n.exceptionInfo), u = S(i.ok || n.okButtonText), s = S(i.cancel || n.cancelButtonText), p = S(n.showCancelButton), l = S(n.showOkButton), f = $(() => !!(a.value && a.value.length)), d = $(() => !!(c.value && c.value.detail)), m = $(() => !(a.value && a.value.length) && (l.value || p.value)), v = $r(n, t, o, i);
|
|
4394
4398
|
u.value === "关闭" ? u.value = i.close : u.value === "知道了" && (u.value = i.exception.roger);
|
|
4395
4399
|
function g(B) {
|
|
4396
4400
|
r.value === "question" && e.emit("reject"), e.emit("close");
|
|
@@ -4447,7 +4451,7 @@ const vt = /* @__PURE__ */ Xe({
|
|
|
4447
4451
|
props: Mr,
|
|
4448
4452
|
emits: ["accept", "reject", "close"],
|
|
4449
4453
|
setup(n, e) {
|
|
4450
|
-
const t = Ar(n), o =
|
|
4454
|
+
const t = Ar(n), o = S(n.type), i = S(n.title), r = S(n.detail), a = $(() => {
|
|
4451
4455
|
const M = {
|
|
4452
4456
|
"modal-tips": !0,
|
|
4453
4457
|
"d-flex": !0,
|
|
@@ -4791,7 +4795,7 @@ class _e {
|
|
|
4791
4795
|
}
|
|
4792
4796
|
}
|
|
4793
4797
|
function ta(n, e) {
|
|
4794
|
-
const t =
|
|
4798
|
+
const t = S(), o = S(), i = S(), r = S(), a = S(), c = S(), u = S(), s = S(), p = S(), l = S(), f = S(), d = S(n.resizeable), m = S(), v = S(n.draggable), g = S(!1);
|
|
4795
4799
|
function M() {
|
|
4796
4800
|
const V = o.value || document.body, N = window.getComputedStyle(V);
|
|
4797
4801
|
if (!N || !t.value)
|
|
@@ -4824,7 +4828,7 @@ function ta(n, e) {
|
|
|
4824
4828
|
const V = n.minHeight ? n.minHeight : 1, N = n.minWidth ? n.minWidth : 1;
|
|
4825
4829
|
c.value && u.value && s.value && r.value && (c.value.height < V && (c.value.height = V, s.value.n && a.value && (u.value.y = a.value.y + (r.value.height - V))), c.value.width < N && (c.value.width = N, s.value.w && a.value && (u.value.x = a.value.x + (r.value.width - N))), n.maxHeight && c.value.height > n.maxHeight && (c.value.height = n.maxHeight, a.value && s.value.n && (u.value.y = a.value.y + (r.value.height - n.maxHeight))), n.maxWidth && c.value.width > n.maxWidth && (c.value.width = n.maxWidth, s.value.w && a.value && (u.value.x = a.value.x + (r.value.width - n.maxWidth))));
|
|
4826
4830
|
}
|
|
4827
|
-
function
|
|
4831
|
+
function x() {
|
|
4828
4832
|
if (o.value) {
|
|
4829
4833
|
const V = l.value;
|
|
4830
4834
|
if (u.value && c.value && s.value && r.value) {
|
|
@@ -4833,20 +4837,20 @@ function ta(n, e) {
|
|
|
4833
4837
|
}
|
|
4834
4838
|
}
|
|
4835
4839
|
}
|
|
4836
|
-
function
|
|
4840
|
+
function b(V) {
|
|
4837
4841
|
if (!i.value || !r.value || !a.value || !s.value)
|
|
4838
4842
|
return;
|
|
4839
4843
|
V.subtract(i.value);
|
|
4840
4844
|
const N = V.x, G = V.y;
|
|
4841
|
-
s.value.n ? (u.value.y = a.value.y + G, c.value.height = r.value.height - G) : s.value.s && (c.value.height = r.value.height + G), s.value.e ? c.value.width = r.value.width + N : s.value.w && (c.value.width = r.value.width - N, u.value.x = a.value.x + N),
|
|
4845
|
+
s.value.n ? (u.value.y = a.value.y + G, c.value.height = r.value.height - G) : s.value.s && (c.value.height = r.value.height + G), s.value.e ? c.value.width = r.value.width + N : s.value.w && (c.value.width = r.value.width - N, u.value.x = a.value.x + N), x(), O(), U();
|
|
4842
4846
|
}
|
|
4843
4847
|
function h(V) {
|
|
4844
4848
|
if (!p.value)
|
|
4845
4849
|
return;
|
|
4846
4850
|
const N = re.fromEvent(V);
|
|
4847
|
-
N &&
|
|
4851
|
+
N && b(N);
|
|
4848
4852
|
}
|
|
4849
|
-
function
|
|
4853
|
+
function w() {
|
|
4850
4854
|
if (t.value) {
|
|
4851
4855
|
const {
|
|
4852
4856
|
width: V,
|
|
@@ -4869,7 +4873,7 @@ function ta(n, e) {
|
|
|
4869
4873
|
}
|
|
4870
4874
|
function T(V) {
|
|
4871
4875
|
if (t.value) {
|
|
4872
|
-
const N =
|
|
4876
|
+
const N = w();
|
|
4873
4877
|
f.value = N;
|
|
4874
4878
|
}
|
|
4875
4879
|
i.value = void 0, r.value = null, a.value = null, c.value = null, u.value = null, s.value = null, p.value = null, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", T);
|
|
@@ -4877,48 +4881,48 @@ function ta(n, e) {
|
|
|
4877
4881
|
function A() {
|
|
4878
4882
|
document.addEventListener("mousemove", h), document.addEventListener("mouseup", T);
|
|
4879
4883
|
}
|
|
4880
|
-
function
|
|
4884
|
+
function C(V) {
|
|
4881
4885
|
V instanceof MouseEvent && V.button === 2 || v.value && (document.body.click(), V.stopPropagation(), V.preventDefault(), i.value = re.fromEvent(V), p.value = V.target, B(V), A());
|
|
4882
4886
|
}
|
|
4883
4887
|
function F(V) {
|
|
4884
4888
|
return t.value = V, d.value && E(lt, null, [E("div", {
|
|
4885
4889
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4886
4890
|
type: "n",
|
|
4887
|
-
onMousedown: (N) =>
|
|
4891
|
+
onMousedown: (N) => C(N)
|
|
4888
4892
|
}, null), E("div", {
|
|
4889
4893
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4890
4894
|
type: "e",
|
|
4891
|
-
onMousedown: (N) =>
|
|
4895
|
+
onMousedown: (N) => C(N)
|
|
4892
4896
|
}, null), E("div", {
|
|
4893
4897
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4894
4898
|
type: "s",
|
|
4895
|
-
onMousedown: (N) =>
|
|
4899
|
+
onMousedown: (N) => C(N)
|
|
4896
4900
|
}, null), E("div", {
|
|
4897
4901
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4898
4902
|
type: "w",
|
|
4899
|
-
onMousedown: (N) =>
|
|
4903
|
+
onMousedown: (N) => C(N)
|
|
4900
4904
|
}, null), E("div", {
|
|
4901
4905
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4902
4906
|
type: "ne",
|
|
4903
|
-
onMousedown: (N) =>
|
|
4907
|
+
onMousedown: (N) => C(N)
|
|
4904
4908
|
}, null), E("div", {
|
|
4905
4909
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4906
4910
|
type: "se",
|
|
4907
|
-
onMousedown: (N) =>
|
|
4911
|
+
onMousedown: (N) => C(N)
|
|
4908
4912
|
}, null), E("div", {
|
|
4909
4913
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4910
4914
|
type: "sw",
|
|
4911
|
-
onMousedown: (N) =>
|
|
4915
|
+
onMousedown: (N) => C(N)
|
|
4912
4916
|
}, null), E("div", {
|
|
4913
4917
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4914
4918
|
type: "nw",
|
|
4915
|
-
onMousedown: (N) =>
|
|
4919
|
+
onMousedown: (N) => C(N)
|
|
4916
4920
|
}, null)]);
|
|
4917
4921
|
}
|
|
4918
4922
|
function P(V = !0) {
|
|
4919
4923
|
document.body.click();
|
|
4920
4924
|
const N = o.value || document.body, G = _e.getCurrent(N), H = t.value;
|
|
4921
|
-
V && H && (m.value =
|
|
4925
|
+
V && H && (m.value = w(), m.value.transform = H.style.transform), G && H && (c.value = G, c.value.height -= 14, c.value.width -= 14, H.style.height = c.value.height + "px", H.style.width = c.value.width + "px", H.style.left = "7px", H.style.top = "7px", H.style.transform = "", f.value = {
|
|
4922
4926
|
size: c.value,
|
|
4923
4927
|
position: {
|
|
4924
4928
|
x: 0,
|
|
@@ -4978,37 +4982,37 @@ function ta(n, e) {
|
|
|
4978
4982
|
};
|
|
4979
4983
|
}
|
|
4980
4984
|
function na(n, e, t) {
|
|
4981
|
-
const o =
|
|
4985
|
+
const o = S(), i = S(n.draggable), r = S(n.lockAxis), a = S(), c = S(), u = S(!1), s = S(new re(0, 0)), p = S(new re(0, 0)), l = S(new re(0, 0)), f = S(new re(0, 0));
|
|
4982
4986
|
Se(() => t.value, (h) => {
|
|
4983
4987
|
a.value.style.cursor = h ? "move" : "default";
|
|
4984
4988
|
});
|
|
4985
|
-
function d(h,
|
|
4986
|
-
if (
|
|
4989
|
+
function d(h, w) {
|
|
4990
|
+
if (w.tagName === "BUTTON")
|
|
4987
4991
|
return !1;
|
|
4988
|
-
if (
|
|
4992
|
+
if (w === h)
|
|
4989
4993
|
return !0;
|
|
4990
|
-
for (const T in
|
|
4991
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4994
|
+
for (const T in w.children)
|
|
4995
|
+
if (Object.prototype.hasOwnProperty.call(w.children, T) && d(h, w.children[T]))
|
|
4992
4996
|
return !0;
|
|
4993
4997
|
return !1;
|
|
4994
4998
|
}
|
|
4995
4999
|
function m() {
|
|
4996
|
-
var A,
|
|
4997
|
-
let h = l.value.x + p.value.x,
|
|
4998
|
-
r.value === "x" ? (h = ((A = s.value) == null ? void 0 : A.x) || 0, l.value.x = 0) : r.value === "y" && (
|
|
4999
|
-
const T = `translate3d(${Math.round(h)}px, ${Math.round(
|
|
5000
|
-
o.value && (o.value.style.transform = T), f.value.x = h, f.value.y =
|
|
5000
|
+
var A, C;
|
|
5001
|
+
let h = l.value.x + p.value.x, w = l.value.y + p.value.y;
|
|
5002
|
+
r.value === "x" ? (h = ((A = s.value) == null ? void 0 : A.x) || 0, l.value.x = 0) : r.value === "y" && (w = ((C = s.value) == null ? void 0 : C.y) || 0, l.value.y = 0);
|
|
5003
|
+
const T = `translate3d(${Math.round(h)}px, ${Math.round(w)}px, 0px)`;
|
|
5004
|
+
o.value && (o.value.style.transform = T), f.value.x = h, f.value.y = w;
|
|
5001
5005
|
}
|
|
5002
5006
|
function v() {
|
|
5003
5007
|
if (!c.value || !o.value)
|
|
5004
5008
|
return null;
|
|
5005
|
-
const h = c.value.getBoundingClientRect(),
|
|
5006
|
-
top: h.top <
|
|
5007
|
-
right: h.right >
|
|
5008
|
-
bottom: h.bottom >
|
|
5009
|
-
left: h.left <
|
|
5009
|
+
const h = c.value.getBoundingClientRect(), w = o.value.getBoundingClientRect(), T = {
|
|
5010
|
+
top: h.top < w.top,
|
|
5011
|
+
right: h.right > w.right,
|
|
5012
|
+
bottom: h.bottom > w.bottom,
|
|
5013
|
+
left: h.left < w.left
|
|
5010
5014
|
};
|
|
5011
|
-
return T.top || (l.value.y -=
|
|
5015
|
+
return T.top || (l.value.y -= w.top - h.top), T.bottom || (l.value.y -= w.bottom - h.bottom), T.right || (l.value.x -= w.right - h.right), T.left || (l.value.x -= w.left - h.left), m(), T;
|
|
5012
5016
|
}
|
|
5013
5017
|
function g(h) {
|
|
5014
5018
|
h && (s.value && h.subtract(s.value), l.value.set(h), m(), v());
|
|
@@ -5031,29 +5035,29 @@ function na(n, e, t) {
|
|
|
5031
5035
|
}
|
|
5032
5036
|
p.value.reset();
|
|
5033
5037
|
}
|
|
5034
|
-
function
|
|
5038
|
+
function x(h) {
|
|
5035
5039
|
if (!t.value || h instanceof MouseEvent && h.button === 2)
|
|
5036
5040
|
return;
|
|
5037
|
-
const
|
|
5038
|
-
a.value !== void 0 &&
|
|
5041
|
+
const w = h.target || h.srcElement;
|
|
5042
|
+
a.value !== void 0 && w && !d(w, a.value) || i.value !== !1 && (document.body.click(), h.stopPropagation(), h.preventDefault(), s.value = re.fromEvent(h, o.value), O(), U());
|
|
5039
5043
|
}
|
|
5040
|
-
function
|
|
5041
|
-
if (i.value &&
|
|
5044
|
+
function b(h, w, T) {
|
|
5045
|
+
if (i.value && w) {
|
|
5042
5046
|
if (h)
|
|
5043
5047
|
a.value = h;
|
|
5044
5048
|
else if (n.dragHandle) {
|
|
5045
5049
|
if (n.dragHandle instanceof HTMLElement)
|
|
5046
5050
|
a.value = n.dragHandle;
|
|
5047
5051
|
else if (typeof n.dragHandle == "string") {
|
|
5048
|
-
const A =
|
|
5052
|
+
const A = w.querySelector(n.dragHandle);
|
|
5049
5053
|
A && (a.value = A);
|
|
5050
5054
|
}
|
|
5051
5055
|
}
|
|
5052
|
-
o.value =
|
|
5056
|
+
o.value = w, c.value = T, a.value ? (a.value.classList.add("ng-draggable"), a.value.addEventListener("mousedown", x)) : i.value = !1;
|
|
5053
5057
|
}
|
|
5054
5058
|
}
|
|
5055
5059
|
return {
|
|
5056
|
-
registerDraggle:
|
|
5060
|
+
registerDraggle: b,
|
|
5057
5061
|
resetTranslate: O
|
|
5058
5062
|
};
|
|
5059
5063
|
}
|
|
@@ -5068,7 +5072,7 @@ function hn(n, e) {
|
|
|
5068
5072
|
}
|
|
5069
5073
|
}
|
|
5070
5074
|
function oa(n, e) {
|
|
5071
|
-
const t =
|
|
5075
|
+
const t = S(n.enableEsc);
|
|
5072
5076
|
let o = null;
|
|
5073
5077
|
return t.value ? (o = hn("Escape", (i) => {
|
|
5074
5078
|
e.emit("esc", { event: i.event, type: "esc" });
|
|
@@ -5077,7 +5081,7 @@ function oa(n, e) {
|
|
|
5077
5081
|
}) : null;
|
|
5078
5082
|
}
|
|
5079
5083
|
function ia(n, e) {
|
|
5080
|
-
const t =
|
|
5084
|
+
const t = S(n.enableEnter);
|
|
5081
5085
|
let o = null;
|
|
5082
5086
|
return t.value ? (o = hn("Enter", (i) => {
|
|
5083
5087
|
e.emit("enter", { event: i.event, type: "enter" });
|
|
@@ -5090,12 +5094,12 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5090
5094
|
props: gn,
|
|
5091
5095
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
5092
5096
|
setup(n, e) {
|
|
5093
|
-
const t =
|
|
5097
|
+
const t = S(n.width || 300), o = S(n.height || 200), i = S(n.modelValue), r = S(""), a = S(n.class), c = S(n.fitContent), u = S(n.showHeader), s = S(""), p = S(n.showCloseButton), l = S(n.showMaxButton), f = S(!1), d = S(n.dialogType), m = S(n.src), v = S(""), g = S(n.showButtons), M = S(n.title), B = S(n.containment || null), U = S(), {
|
|
5094
5098
|
t: O
|
|
5095
5099
|
} = St();
|
|
5096
5100
|
M.value === "错误提示" && (M.value = O("messageBox.errorTitle"));
|
|
5097
|
-
const
|
|
5098
|
-
function
|
|
5101
|
+
const x = S(!1);
|
|
5102
|
+
function b(k, J) {
|
|
5099
5103
|
const se = J ? "accept" : "cancel";
|
|
5100
5104
|
Promise.resolve().then(() => {
|
|
5101
5105
|
var ce;
|
|
@@ -5111,16 +5115,16 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5111
5115
|
text: O("messageBox.cancel") || "取消",
|
|
5112
5116
|
class: "btn btn-secondary",
|
|
5113
5117
|
handle: (k) => {
|
|
5114
|
-
|
|
5118
|
+
b(k, !1);
|
|
5115
5119
|
}
|
|
5116
5120
|
}, {
|
|
5117
5121
|
name: "accept",
|
|
5118
5122
|
text: O("messageBox.ok") || "确定",
|
|
5119
5123
|
class: "btn btn-primary",
|
|
5120
5124
|
handle: (k) => {
|
|
5121
|
-
|
|
5125
|
+
b(k, !0);
|
|
5122
5126
|
}
|
|
5123
|
-
}],
|
|
5127
|
+
}], w = S(n.buttons && n.buttons.length ? n.buttons : h), T = $(() => !!s.value), A = $(() => !!g.value && !!w.value), C = S(), F = S(), P = S(!1), {
|
|
5124
5128
|
renderResizeBar: I,
|
|
5125
5129
|
maximize: L,
|
|
5126
5130
|
restore: _,
|
|
@@ -5143,8 +5147,8 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5143
5147
|
k !== J && (M.value = k);
|
|
5144
5148
|
}), Se(() => n.modelValue, (k, J) => {
|
|
5145
5149
|
k !== J && (i.value = k, i.value && n.draggable && et(() => {
|
|
5146
|
-
F.value && !B.value && (B.value = F.value.parentElement, Q.value = B.value, ee(
|
|
5147
|
-
}), k || (B.value && (B.value = null), ae())), i.value ?
|
|
5150
|
+
F.value && !B.value && (B.value = F.value.parentElement, Q.value = B.value, ee(C.value, F.value, Q.value), H());
|
|
5151
|
+
}), k || (B.value && (B.value = null), ae())), i.value ? x.value = me() : (P.value = !1, N.value = n.draggable);
|
|
5148
5152
|
}), Se(() => n.showHeader, (k, J) => {
|
|
5149
5153
|
k !== J && (u.value = k);
|
|
5150
5154
|
}), Se(() => n.showButtons, (k, J) => {
|
|
@@ -5187,7 +5191,7 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5187
5191
|
display: "block",
|
|
5188
5192
|
zIndex: q()
|
|
5189
5193
|
};
|
|
5190
|
-
return n.mask || (k.pointerEvents = "none", k.backgroundColor = "transparent"),
|
|
5194
|
+
return n.mask || (k.pointerEvents = "none", k.backgroundColor = "transparent"), x.value && (k.backgroundColor = "transparent"), k;
|
|
5191
5195
|
}), De = $(() => ({
|
|
5192
5196
|
"modal-content": !0,
|
|
5193
5197
|
"modal-content-has-header": u.value
|
|
@@ -5227,19 +5231,19 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5227
5231
|
k.handle && await k.handle(J, k) && e.emit("closed", J);
|
|
5228
5232
|
}
|
|
5229
5233
|
function Pe(k) {
|
|
5230
|
-
k.width && (t.value = k.width), k.height && (o.value = k.height), k.buttons && (
|
|
5234
|
+
k.width && (t.value = k.width), k.height && (o.value = k.height), k.buttons && (w.value = k.buttons), k.title && (M.value = k.title);
|
|
5231
5235
|
}
|
|
5232
5236
|
let Ve = null, Ee = null;
|
|
5233
5237
|
jn(() => {
|
|
5234
|
-
|
|
5238
|
+
x.value = me();
|
|
5235
5239
|
}), Ge(() => {
|
|
5236
|
-
F.value && !B.value && (B.value = F.value.parentElement, Q.value = B.value, ee(
|
|
5240
|
+
F.value && !B.value && (B.value = F.value.parentElement, Q.value = B.value, ee(C.value, F.value, Q.value)), Y.value && document.body.classList.add("modal-open"), Ve = oa(n, e), Ee = ia(n, e);
|
|
5237
5241
|
}), Ct(() => {
|
|
5238
5242
|
G && G(), Ve && Ve.remove(), Ee && Ee.remove();
|
|
5239
5243
|
}), e.expose({
|
|
5240
5244
|
modalElementRef: F,
|
|
5241
5245
|
updateModalOptions: Pe,
|
|
5242
|
-
close:
|
|
5246
|
+
close: b,
|
|
5243
5247
|
maxDialog: le,
|
|
5244
5248
|
isMaximized: P
|
|
5245
5249
|
});
|
|
@@ -5256,7 +5260,7 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5256
5260
|
class: Te.value
|
|
5257
5261
|
}, null)]), p.value && E("li", {
|
|
5258
5262
|
class: "f-btn-icon f-bare",
|
|
5259
|
-
onClick: (k) =>
|
|
5263
|
+
onClick: (k) => b(k, !1),
|
|
5260
5264
|
style: "pointer-events: auto;"
|
|
5261
5265
|
}, [E("span", {
|
|
5262
5266
|
class: "f-icon modal_close"
|
|
@@ -5266,8 +5270,8 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5266
5270
|
return E("div", {
|
|
5267
5271
|
class: "modal-footer",
|
|
5268
5272
|
style: Ze.value
|
|
5269
|
-
}, [
|
|
5270
|
-
const J =
|
|
5273
|
+
}, [w.value && w.value.map((k) => {
|
|
5274
|
+
const J = S(k.disabled);
|
|
5271
5275
|
return E("button", {
|
|
5272
5276
|
name: k.name,
|
|
5273
5277
|
type: "button",
|
|
@@ -5283,7 +5287,7 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5283
5287
|
}
|
|
5284
5288
|
function He() {
|
|
5285
5289
|
return E("div", {
|
|
5286
|
-
ref:
|
|
5290
|
+
ref: C,
|
|
5287
5291
|
class: "modal-header",
|
|
5288
5292
|
style: Ne.value
|
|
5289
5293
|
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : E("div", {
|
|
@@ -5304,7 +5308,7 @@ const We = /* @__PURE__ */ Xe({
|
|
|
5304
5308
|
if (k.stopPropagation(), n.allowClickMaskToClose) {
|
|
5305
5309
|
if (k.target !== U.value)
|
|
5306
5310
|
return;
|
|
5307
|
-
|
|
5311
|
+
b(k, !1);
|
|
5308
5312
|
}
|
|
5309
5313
|
}
|
|
5310
5314
|
function Je() {
|
|
@@ -5360,7 +5364,7 @@ function ra(n) {
|
|
|
5360
5364
|
Ct(() => {
|
|
5361
5365
|
document.body.removeChild(e);
|
|
5362
5366
|
});
|
|
5363
|
-
const r =
|
|
5367
|
+
const r = S(), a = S(n.class || ""), c = S(!!n.showButtons), u = S(!!n.showHeader), s = S(n.showCloseButton == null ? !0 : n.showCloseButton), p = S(!0), l = S(n.title || ""), f = n.acceptCallback || (() => {
|
|
5364
5368
|
}), d = n.rejectCallback || (() => {
|
|
5365
5369
|
}), m = n.closedCallback || ((U) => {
|
|
5366
5370
|
}), v = n.resizeHandle || ((U) => {
|
|
@@ -5400,10 +5404,10 @@ function ra(n) {
|
|
|
5400
5404
|
class bn {
|
|
5401
5405
|
constructor(e) {
|
|
5402
5406
|
X(this, "appContext", null);
|
|
5403
|
-
X(this, "modalRef",
|
|
5404
|
-
X(this, "activeModalIndex",
|
|
5407
|
+
X(this, "modalRef", S());
|
|
5408
|
+
X(this, "activeModalIndex", S(0));
|
|
5405
5409
|
X(this, "modalRefs", {});
|
|
5406
|
-
X(this, "isUseEscCloseModal",
|
|
5410
|
+
X(this, "isUseEscCloseModal", S(!1));
|
|
5407
5411
|
X(this, "activeModalInstance", $(() => this.modalRefs[this.activeModalIndex.value]));
|
|
5408
5412
|
this.app = e, this.appContext = e ? e._context : null;
|
|
5409
5413
|
}
|
|
@@ -5442,29 +5446,29 @@ class bn {
|
|
|
5442
5446
|
title: "",
|
|
5443
5447
|
showButtons: !0,
|
|
5444
5448
|
showHeader: !0
|
|
5445
|
-
}, e)), i =
|
|
5449
|
+
}, e)), i = S(!0), r = o.value.acceptCallback || (() => {
|
|
5446
5450
|
}), a = o.value.rejectCallback || (() => {
|
|
5447
|
-
}), c = o.value.closedCallback || ((
|
|
5448
|
-
}), u = o.value.resizeHandle || ((
|
|
5449
|
-
}), s = e.stopMoveHandle || ((
|
|
5451
|
+
}), c = o.value.closedCallback || ((x, b) => {
|
|
5452
|
+
}), u = o.value.resizeHandle || ((x) => {
|
|
5453
|
+
}), s = e.stopMoveHandle || ((x) => {
|
|
5450
5454
|
});
|
|
5451
5455
|
let p;
|
|
5452
|
-
const l = yn(o.value), f = (
|
|
5456
|
+
const l = yn(o.value), f = (x) => {
|
|
5453
5457
|
var h;
|
|
5454
5458
|
i.value = !1;
|
|
5455
|
-
const
|
|
5456
|
-
c(
|
|
5457
|
-
}, d = (
|
|
5458
|
-
f(
|
|
5459
|
+
const b = (h = x == null ? void 0 : x.target) == null ? void 0 : h.classList.contains("modal_close");
|
|
5460
|
+
c(x, this.isUseEscCloseModal.value ? "esc" : b ? "icon" : "button");
|
|
5461
|
+
}, d = (x) => {
|
|
5462
|
+
f(x), p && et(() => {
|
|
5459
5463
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], Rt(null, t), p = null, this.modalRef.value = null, this.modalRefs) {
|
|
5460
|
-
const
|
|
5461
|
-
|
|
5464
|
+
const b = Object.keys(this.modalRefs).map((h) => Number(h));
|
|
5465
|
+
b.length > 0 ? this.activeModalIndex.value = Math.max(...b) : this.activeModalIndex.value = 0;
|
|
5462
5466
|
}
|
|
5463
5467
|
this.isUseEscCloseModal.value = !1;
|
|
5464
5468
|
});
|
|
5465
|
-
}, m = (
|
|
5466
|
-
var
|
|
5467
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
5469
|
+
}, m = (x) => {
|
|
5470
|
+
var b;
|
|
5471
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((b = this.activeModalInstance.value) == null || b.close(x == null ? void 0 : x.event));
|
|
5468
5472
|
}, {
|
|
5469
5473
|
width: v,
|
|
5470
5474
|
height: g
|
|
@@ -5473,7 +5477,7 @@ class bn {
|
|
|
5473
5477
|
const B = () => E(We, Dt({
|
|
5474
5478
|
ref: this.modalRef,
|
|
5475
5479
|
modelValue: i.value,
|
|
5476
|
-
"onUpdate:modelValue": (
|
|
5480
|
+
"onUpdate:modelValue": (x) => i.value = x
|
|
5477
5481
|
}, o.value, {
|
|
5478
5482
|
onAccept: r,
|
|
5479
5483
|
onCancel: a,
|
|
@@ -5484,17 +5488,17 @@ class bn {
|
|
|
5484
5488
|
}), {
|
|
5485
5489
|
default: () => [l && l(this.app)]
|
|
5486
5490
|
});
|
|
5487
|
-
return p = ((
|
|
5488
|
-
const
|
|
5489
|
-
return
|
|
5491
|
+
return p = ((x) => {
|
|
5492
|
+
const b = $n(B, x);
|
|
5493
|
+
return b.appContext = this.appContext, Rt(b, t), b;
|
|
5490
5494
|
})({
|
|
5491
5495
|
...o.value
|
|
5492
5496
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
5493
5497
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
5494
|
-
update: (
|
|
5498
|
+
update: (x) => {
|
|
5495
5499
|
o.value = {
|
|
5496
5500
|
...o.value,
|
|
5497
|
-
...
|
|
5501
|
+
...x
|
|
5498
5502
|
}, p && Rt(Dn(p, {
|
|
5499
5503
|
...o
|
|
5500
5504
|
}), t);
|
|
@@ -6071,7 +6075,8 @@ class sa extends la {
|
|
|
6071
6075
|
editor: {
|
|
6072
6076
|
readonly: t === 0,
|
|
6073
6077
|
min: 0,
|
|
6074
|
-
max: t
|
|
6078
|
+
max: t,
|
|
6079
|
+
needValid: !0
|
|
6075
6080
|
},
|
|
6076
6081
|
refreshPanelAfterChanged: !0
|
|
6077
6082
|
},
|
|
@@ -6081,6 +6086,7 @@ class sa extends la {
|
|
|
6081
6086
|
type: "number",
|
|
6082
6087
|
editor: {
|
|
6083
6088
|
min: 0,
|
|
6089
|
+
needValid: !0,
|
|
6084
6090
|
precision: (a = e == null ? void 0 : e.editor) == null ? void 0 : a.precision
|
|
6085
6091
|
}
|
|
6086
6092
|
},
|
|
@@ -6192,11 +6198,11 @@ const ca = /* @__PURE__ */ Xe({
|
|
|
6192
6198
|
setup(n, e) {
|
|
6193
6199
|
const t = pn(n, e);
|
|
6194
6200
|
fn(n, e, t);
|
|
6195
|
-
const o = gi(), i =
|
|
6201
|
+
const o = gi(), i = S(), r = Gt("designer-host-service"), a = Gt("design-item-context"), c = ua(a, r), u = hi(i, a, c);
|
|
6196
6202
|
Ge(() => {
|
|
6197
6203
|
i.value.componentInstance = u;
|
|
6198
6204
|
}), e.expose(u.value);
|
|
6199
|
-
const s =
|
|
6205
|
+
const s = S();
|
|
6200
6206
|
return () => E("div", {
|
|
6201
6207
|
ref: i,
|
|
6202
6208
|
class: "input-group flex-row f-cmp-number-spinner"
|