@farris/ui-vue 1.6.5-beta.8 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +334 -334
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +4 -4
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +136 -133
- package/components/combo-list/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 +4 -4
- 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 +3416 -3350
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +4 -4
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +170 -170
- 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 +699 -696
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +446 -446
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +377 -374
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +204 -204
- package/components/flow-canvas/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/mapping-editor/index.esm.js +427 -427
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +212 -212
- 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 +160 -160
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +314 -314
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +468 -463
- package/components/order/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +215 -215
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4 -4
- package/components/query-solution/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 +944 -941
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +498 -492
- 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 +211 -211
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +377 -374
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/switch/index.esm.js +78 -77
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +579 -579
- 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 +219 -219
- 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 +382 -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 +15439 -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 +22330 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1098 -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 +4689 -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 +6985 -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 +9619 -9535
- package/farris.all.umd.cjs +24 -24
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -521,16 +521,16 @@ function In(t, e, n) {
|
|
|
521
521
|
const C = m.$converter || v;
|
|
522
522
|
return typeof C == "string" && C && o.has(C) ? o.get(C) || null : C || null;
|
|
523
523
|
}
|
|
524
|
-
function d(m, v, C, F, b, D = "",
|
|
524
|
+
function d(m, v, C, F, b, D = "", T = "") {
|
|
525
525
|
return Object.keys(m).map((P) => {
|
|
526
|
-
const j = B(1),
|
|
526
|
+
const j = B(1), I = P, k = m[P], S = Object.keys(k), w = k.title, g = k.type, y = i.get(g) || { type: "input-group", enableClear: !1 }, M = k.editor ? Object.assign({}, y, k.editor) : Object.assign({}, y), $ = l(S, k, v), O = s(S, k, v);
|
|
527
527
|
M.readonly = M.readonly === void 0 ? O() : M.readonly;
|
|
528
|
-
const V = k.type === "cascade" ? d(k.properties, v, C, F, b, D,
|
|
529
|
-
let A = c(k,
|
|
528
|
+
const V = k.type === "cascade" ? d(k.properties, v, C, F, b, D, T) : [], R = !0;
|
|
529
|
+
let A = c(k, T);
|
|
530
530
|
const z = L({
|
|
531
531
|
get() {
|
|
532
532
|
if (j.value) {
|
|
533
|
-
if (["class", "style"].find((he) => he ===
|
|
533
|
+
if (["class", "style"].find((he) => he === I) && !A && (A = o.get("/converter/appearance.converter") || null), A && A.convertFrom)
|
|
534
534
|
return A.convertFrom(C, P, b, D);
|
|
535
535
|
const de = C[P];
|
|
536
536
|
return Object.prototype.hasOwnProperty.call(k, "defaultValue") && (de === void 0 || typeof de == "string" && de === "") ? k.type === "boolean" ? k.defaultValue : k.defaultValue || "" : de;
|
|
@@ -540,42 +540,42 @@ function In(t, e, n) {
|
|
|
540
540
|
set(de) {
|
|
541
541
|
j.value += 1, A && A.convertTo ? (A.convertTo(F, P, de, b, D), A.convertTo(C, P, de, b, D)) : (F[P] = de, C[P] = de);
|
|
542
542
|
}
|
|
543
|
-
}), { refreshPanelAfterChanged: q, description: K, isExpand: oe, parentPropertyID: ie } = k, Z = { propertyID:
|
|
544
|
-
return v[
|
|
543
|
+
}), { refreshPanelAfterChanged: q, description: K, isExpand: oe, parentPropertyID: ie } = k, Z = { propertyID: I, propertyName: w, propertyType: g, propertyValue: z, editor: M, visible: $, readonly: O, cascadeConfig: V, hideCascadeTitle: R, refreshPanelAfterChanged: q, description: K, isExpand: oe, parentPropertyID: ie };
|
|
544
|
+
return v[I] = Z, Z;
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
function u(m, v, C = {}) {
|
|
548
548
|
const F = {}, b = t[m];
|
|
549
|
-
return b && b.categories ? Object.keys(b.categories).map((
|
|
550
|
-
const
|
|
551
|
-
return { categoryId:
|
|
549
|
+
return b && b.categories ? Object.keys(b.categories).map((T) => {
|
|
550
|
+
const x = b.categories[T], P = x == null ? void 0 : x.title, j = d(x.properties || {}, F, {}, C, v);
|
|
551
|
+
return { categoryId: T, categoryName: P, properties: j };
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
554
|
function p(m, v, C, F, b = "") {
|
|
555
|
-
const D = v.$ref.schema,
|
|
555
|
+
const D = v.$ref.schema, T = v.$ref.converter, x = C[D], P = x.type, j = n(x), I = {}, k = t[P];
|
|
556
556
|
if (k && k.categories) {
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
|
|
557
|
+
const S = k.categories[m], w = S == null ? void 0 : S.title;
|
|
558
|
+
T && Object.keys(S.properties).forEach((M) => {
|
|
559
|
+
S.properties[M].$converter = T;
|
|
560
560
|
});
|
|
561
|
-
const g = (
|
|
562
|
-
return { categoryId: m, categoryName:
|
|
561
|
+
const g = (S == null ? void 0 : S.properties) || {}, y = d(g, I, j, x, F, b);
|
|
562
|
+
return { categoryId: m, categoryName: w, properties: y };
|
|
563
563
|
}
|
|
564
564
|
return { categoryId: m, categoryName: "", properties: [] };
|
|
565
565
|
}
|
|
566
566
|
function f(m, v, C, F, b) {
|
|
567
|
-
const D = m.type,
|
|
567
|
+
const D = m.type, T = n(m), x = {};
|
|
568
568
|
let P = b || t[D];
|
|
569
569
|
if (P && Object.keys(P).length === 0 && C && C.getPropConfig && (P = C.getPropConfig(F)), P && P.categories) {
|
|
570
570
|
const j = [];
|
|
571
|
-
return Object.keys(P.categories).map((
|
|
572
|
-
const k = P.categories[
|
|
571
|
+
return Object.keys(P.categories).map((I) => {
|
|
572
|
+
const k = P.categories[I];
|
|
573
573
|
if (k.$ref) {
|
|
574
|
-
j.push(p(
|
|
574
|
+
j.push(p(I, k, m, v, F));
|
|
575
575
|
return;
|
|
576
576
|
}
|
|
577
|
-
const
|
|
578
|
-
j.push({ categoryId:
|
|
577
|
+
const S = k == null ? void 0 : k.title, w = k == null ? void 0 : k.tabId, g = k == null ? void 0 : k.tabName, y = k == null ? void 0 : k.hide, M = k == null ? void 0 : k.hideTitle, $ = d(k.properties || {}, x, T, m, v, F, k.$converter), { setPropertyRelates: O } = k, V = k == null ? void 0 : k.parentPropertyID;
|
|
578
|
+
j.push({ categoryId: I, categoryName: S, tabId: w, tabName: g, hide: y, properties: $, hideTitle: M, setPropertyRelates: O, parentPropertyID: V });
|
|
579
579
|
}), j;
|
|
580
580
|
}
|
|
581
581
|
return [];
|
|
@@ -1042,89 +1042,89 @@ function Fa(t, e, n) {
|
|
|
1042
1042
|
const o = B([]), i = B(t.activeId || "");
|
|
1043
1043
|
let a = "";
|
|
1044
1044
|
const r = B(!0), l = B([]), s = B(!0), c = B(0), d = L(() => {
|
|
1045
|
-
const
|
|
1046
|
-
return (
|
|
1045
|
+
const I = o.value.find((S) => S.props.id === i.value);
|
|
1046
|
+
return (I == null ? void 0 : I.props.toolbarPosition) === "inHead";
|
|
1047
1047
|
});
|
|
1048
|
-
function u(
|
|
1049
|
-
const
|
|
1050
|
-
if (l.value = [],
|
|
1051
|
-
if (i.value =
|
|
1048
|
+
function u(I, k = !0) {
|
|
1049
|
+
const S = I.findIndex((w) => w.props.show !== !1 && !w.props.disabled);
|
|
1050
|
+
if (l.value = [], S !== -1) {
|
|
1051
|
+
if (i.value = I[S].props.id, !k)
|
|
1052
1052
|
return;
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1053
|
+
const w = I[S];
|
|
1054
|
+
w && w.props.toolbar && w.props.toolbar.buttons && w.props.toolbar.buttons.length && (l.value = [...w.props.toolbar.buttons], s.value = w.props.toolbarVisible);
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
function p(
|
|
1058
|
-
i.value =
|
|
1059
|
-
const k = o.value.find((
|
|
1060
|
-
l.value = [], k && k.props.toolbar && k.props.toolbar.buttons && k.props.toolbar.buttons.length && (l.value = [...k.props.toolbar.buttons], s.value = k.props.toolbarVisible), e.emit("update:activeId",
|
|
1057
|
+
function p(I) {
|
|
1058
|
+
i.value = I;
|
|
1059
|
+
const k = o.value.find((S) => S.props.id === I);
|
|
1060
|
+
l.value = [], k && k.props.toolbar && k.props.toolbar.buttons && k.props.toolbar.buttons.length && (l.value = [...k.props.toolbar.buttons], s.value = k.props.toolbarVisible), e.emit("update:activeId", I), e.emit("tabChange", {
|
|
1061
1061
|
prevId: a,
|
|
1062
1062
|
nextId: i.value
|
|
1063
1063
|
});
|
|
1064
1064
|
}
|
|
1065
|
-
function f(
|
|
1065
|
+
function f(I) {
|
|
1066
1066
|
let k = -1;
|
|
1067
1067
|
if (!i.value) {
|
|
1068
|
-
if (k =
|
|
1068
|
+
if (k = I.findIndex((S) => i.value === S.props.id && S.props.show !== !1 && !S.props.disabled), k > -1)
|
|
1069
1069
|
return;
|
|
1070
1070
|
a = i.value;
|
|
1071
1071
|
}
|
|
1072
|
-
u(
|
|
1072
|
+
u(I, !1), p(i.value);
|
|
1073
1073
|
}
|
|
1074
|
-
function m(
|
|
1074
|
+
function m(I) {
|
|
1075
1075
|
let k = !1;
|
|
1076
|
-
if (
|
|
1077
|
-
const
|
|
1078
|
-
k = !
|
|
1076
|
+
if (I) {
|
|
1077
|
+
const S = o.value.find((w) => w.props.id === I);
|
|
1078
|
+
k = !S || S.props.show === !1 || S.props.disabled === !0;
|
|
1079
1079
|
}
|
|
1080
|
-
k ? f(o.value) : (i.value !==
|
|
1080
|
+
k ? f(o.value) : (i.value !== I && (a = i.value, i.value = I), p(i.value));
|
|
1081
1081
|
}
|
|
1082
|
-
me(() => t.activeId, (
|
|
1083
|
-
|
|
1082
|
+
me(() => t.activeId, (I, k) => {
|
|
1083
|
+
I !== k && m(I);
|
|
1084
1084
|
});
|
|
1085
|
-
function v(
|
|
1086
|
-
var
|
|
1085
|
+
function v(I) {
|
|
1086
|
+
var S;
|
|
1087
1087
|
if (t.autoTitleWidth)
|
|
1088
1088
|
return;
|
|
1089
|
-
const k = (
|
|
1089
|
+
const k = (S = I.value) == null ? void 0 : S.querySelectorAll(".st-tab-text");
|
|
1090
1090
|
if (!(!k || t.tabType === "pill"))
|
|
1091
|
-
for (let
|
|
1092
|
-
const g = k[
|
|
1093
|
-
k[
|
|
1091
|
+
for (let w = 0; w < k.length; w++) {
|
|
1092
|
+
const g = k[w].parentNode;
|
|
1093
|
+
k[w].scrollWidth > g.offsetWidth ? k[w].classList.contains("farris-title-text-custom") || k[w].classList.add("farris-title-text-custom") : k[w].classList.remove("farris-title-text-custom");
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
const C = (
|
|
1097
|
-
|
|
1096
|
+
const C = (I) => {
|
|
1097
|
+
I.preventDefault(), I.stopPropagation();
|
|
1098
1098
|
};
|
|
1099
|
-
function F(
|
|
1100
|
-
const
|
|
1101
|
-
o.value = o.value.filter((g) => g.props.id !== k), i.value === k && (a = k, i.value = "", u(o.value)), C(
|
|
1102
|
-
c.value++, v(n),
|
|
1103
|
-
removeIndex:
|
|
1099
|
+
function F(I, k, S = !1) {
|
|
1100
|
+
const w = o.value.findIndex((g) => g.props.id === k);
|
|
1101
|
+
o.value = o.value.filter((g) => g.props.id !== k), i.value === k && (a = k, i.value = "", u(o.value)), C(I), ve(() => {
|
|
1102
|
+
c.value++, v(n), S && (r.value = !0), e.emit("tabRemove", {
|
|
1103
|
+
removeIndex: w,
|
|
1104
1104
|
removeId: k,
|
|
1105
1105
|
activeId: i.value
|
|
1106
1106
|
});
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
|
-
function b(
|
|
1110
|
-
i.value ===
|
|
1109
|
+
function b(I, k = !0) {
|
|
1110
|
+
i.value === I && (i.value = "", a = I, m("")), ve(() => {
|
|
1111
1111
|
c.value++, k && (r.value = !0);
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
1114
|
let D;
|
|
1115
|
-
function
|
|
1116
|
-
D =
|
|
1115
|
+
function T(I) {
|
|
1116
|
+
D = I;
|
|
1117
1117
|
}
|
|
1118
|
-
function I
|
|
1119
|
-
i.value !==
|
|
1118
|
+
function x(I) {
|
|
1119
|
+
i.value !== I && (a = i.value, p(I), D && D());
|
|
1120
1120
|
}
|
|
1121
|
-
function P(
|
|
1122
|
-
o.value.findIndex((
|
|
1121
|
+
function P(I) {
|
|
1122
|
+
o.value.findIndex((S) => S.props.id === I.props.id) === -1 && o.value.push(I), c.value++;
|
|
1123
1123
|
}
|
|
1124
|
-
function j(
|
|
1125
|
-
o.value.findIndex((
|
|
1126
|
-
|
|
1127
|
-
}),
|
|
1124
|
+
function j(I) {
|
|
1125
|
+
o.value.findIndex((S) => S.props.id === I.props.id) !== -1 && (o.value.forEach((S) => {
|
|
1126
|
+
S.props.id === I.props.id && (S = I);
|
|
1127
|
+
}), I.props.id === i.value && d.value, ve(() => {
|
|
1128
1128
|
c.value++, v(n);
|
|
1129
1129
|
}));
|
|
1130
1130
|
}
|
|
@@ -1133,7 +1133,7 @@ function Fa(t, e, n) {
|
|
|
1133
1133
|
addTab: P,
|
|
1134
1134
|
changeTitleStyle: v,
|
|
1135
1135
|
removeTab: F,
|
|
1136
|
-
selectTab:
|
|
1136
|
+
selectTab: x,
|
|
1137
1137
|
tabPages: o,
|
|
1138
1138
|
updateTab: j,
|
|
1139
1139
|
toolbarItems: l,
|
|
@@ -1141,7 +1141,7 @@ function Fa(t, e, n) {
|
|
|
1141
1141
|
checkActiveIdAndSelect: m,
|
|
1142
1142
|
toggleShowTab: b,
|
|
1143
1143
|
hasInHeadClass: d,
|
|
1144
|
-
setScrollToSelectedTabFunction:
|
|
1144
|
+
setScrollToSelectedTabFunction: T,
|
|
1145
1145
|
toolbarVisible: s
|
|
1146
1146
|
};
|
|
1147
1147
|
}
|
|
@@ -1300,9 +1300,9 @@ function Oa(t, e, n, o) {
|
|
|
1300
1300
|
} = e, p = 600;
|
|
1301
1301
|
let f = null;
|
|
1302
1302
|
const m = L(() => {
|
|
1303
|
-
var
|
|
1304
|
-
let
|
|
1305
|
-
return t.searchBoxVisible ?
|
|
1303
|
+
var w, g;
|
|
1304
|
+
let S = [];
|
|
1305
|
+
return t.searchBoxVisible ? S = (w = s.value) == null ? void 0 : w.filter((y) => y.props.title.includes(u.value)) : S = (g = s.value) == null ? void 0 : g.slice(), S;
|
|
1306
1306
|
}), v = L(() => ({
|
|
1307
1307
|
"dropdown-menu": !0,
|
|
1308
1308
|
"tabs-pt28": t.searchBoxVisible,
|
|
@@ -1311,15 +1311,15 @@ function Oa(t, e, n, o) {
|
|
|
1311
1311
|
"d-none": d.value
|
|
1312
1312
|
}));
|
|
1313
1313
|
let C;
|
|
1314
|
-
function F(
|
|
1315
|
-
C =
|
|
1314
|
+
function F(S) {
|
|
1315
|
+
C = S;
|
|
1316
1316
|
}
|
|
1317
|
-
me(d, (
|
|
1317
|
+
me(d, (S) => {
|
|
1318
1318
|
if (C.value)
|
|
1319
|
-
if (
|
|
1319
|
+
if (S)
|
|
1320
1320
|
a.value.style.width = null;
|
|
1321
1321
|
else {
|
|
1322
|
-
const
|
|
1322
|
+
const w = C.value.querySelector(".farris-tabs-header"), g = C.value.clientHeight - w.clientHeight - 20, M = w.querySelector(".farris-tabs-title").clientWidth - 20;
|
|
1323
1323
|
a.value.style.maxWidth = M + "px", a.value.style.maxHeight = g + "px", ve(() => {
|
|
1324
1324
|
const {
|
|
1325
1325
|
width: $
|
|
@@ -1328,71 +1328,71 @@ function Oa(t, e, n, o) {
|
|
|
1328
1328
|
});
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
|
-
function b(
|
|
1331
|
+
function b(S) {
|
|
1332
1332
|
return {
|
|
1333
1333
|
"dropdown-item": !0,
|
|
1334
1334
|
"text-truncate": !0,
|
|
1335
1335
|
"px-2": !0,
|
|
1336
|
-
disabled:
|
|
1337
|
-
active:
|
|
1338
|
-
"d-none":
|
|
1336
|
+
disabled: S.props.disabled,
|
|
1337
|
+
active: S.props.id === r.value,
|
|
1338
|
+
"d-none": S.props.show !== !0
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
1341
|
-
function D(
|
|
1342
|
-
|
|
1341
|
+
function D(S) {
|
|
1342
|
+
S.preventDefault(), S.stopPropagation();
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function T() {
|
|
1345
1345
|
f && clearTimeout(f);
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function x() {
|
|
1348
1348
|
d.value || (f = setTimeout(() => {
|
|
1349
1349
|
d.value = !0;
|
|
1350
1350
|
}, p));
|
|
1351
1351
|
}
|
|
1352
|
-
function P(
|
|
1353
|
-
|
|
1352
|
+
function P(S, w) {
|
|
1353
|
+
S.stopPropagation(), w.disabled || c(w.id), d.value = !0;
|
|
1354
1354
|
}
|
|
1355
|
-
function j(
|
|
1356
|
-
|
|
1355
|
+
function j(S, w) {
|
|
1356
|
+
S.stopPropagation(), l(S, w, !0);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1358
|
+
function I(S) {
|
|
1359
|
+
return S.slots.title ? h("a", {
|
|
1360
1360
|
class: "dropdown-title",
|
|
1361
|
-
id: `${
|
|
1362
|
-
}, [
|
|
1361
|
+
id: `${S.props.id}-dropdown-item`
|
|
1362
|
+
}, [S.slots.title(S)]) : S.props.titleRenderFunction ? h("a", {
|
|
1363
1363
|
class: "dropdown-title",
|
|
1364
|
-
id: `${
|
|
1365
|
-
}, [
|
|
1364
|
+
id: `${S.props.id}-dropdown-item`
|
|
1365
|
+
}, [S.props.titleRenderFunction()]) : h("a", {
|
|
1366
1366
|
class: "dropdown-title",
|
|
1367
|
-
id: `${
|
|
1368
|
-
}, [
|
|
1367
|
+
id: `${S.props.id}-dropdown-item`
|
|
1368
|
+
}, [S.props.title]);
|
|
1369
1369
|
}
|
|
1370
1370
|
function k() {
|
|
1371
1371
|
return h("div", {
|
|
1372
1372
|
ref: a,
|
|
1373
1373
|
class: v.value,
|
|
1374
|
-
onMouseenter: () =>
|
|
1375
|
-
onMouseleave: () =>
|
|
1374
|
+
onMouseenter: () => T(),
|
|
1375
|
+
onMouseleave: () => x()
|
|
1376
1376
|
}, [t.searchBoxVisible && h("div", {
|
|
1377
|
-
onClick: (
|
|
1377
|
+
onClick: (S) => D(S),
|
|
1378
1378
|
class: "pb-1 tabs-li-absolute"
|
|
1379
1379
|
}, [mn(h("input", {
|
|
1380
1380
|
type: "text",
|
|
1381
1381
|
class: "form-control",
|
|
1382
|
-
"onUpdate:modelValue": (
|
|
1382
|
+
"onUpdate:modelValue": (S) => u.value = S
|
|
1383
1383
|
}, null), [[ho, u.value]]), h("span", {
|
|
1384
1384
|
class: "f-icon f-icon-page-title-query tabs-icon-search"
|
|
1385
1385
|
}, null)]), m.value.length ? h("ul", {
|
|
1386
1386
|
class: "tab-dropdown-menu--items flex-fill"
|
|
1387
|
-
}, [m.value.map((
|
|
1388
|
-
class: b(
|
|
1389
|
-
onClick: (
|
|
1390
|
-
}, [
|
|
1387
|
+
}, [m.value.map((S) => h("li", {
|
|
1388
|
+
class: b(S),
|
|
1389
|
+
onClick: (w) => P(w, S.props)
|
|
1390
|
+
}, [S.props.removeable && S.props.disabled !== !0 && h("span", {
|
|
1391
1391
|
class: "float-right st-drop-close",
|
|
1392
|
-
onClick: (
|
|
1392
|
+
onClick: (w) => j(w, S.props.id)
|
|
1393
1393
|
}, [h("i", {
|
|
1394
1394
|
class: "f-icon f-icon-close"
|
|
1395
|
-
}, null)]),
|
|
1395
|
+
}, null)]), I(S)]))]) : h("div", {
|
|
1396
1396
|
class: "dropdown-no-data"
|
|
1397
1397
|
}, [i("tabs.noData")])]);
|
|
1398
1398
|
}
|
|
@@ -1441,32 +1441,32 @@ function An(t, e, n, o) {
|
|
|
1441
1441
|
function f(b, D) {
|
|
1442
1442
|
if (!e.value)
|
|
1443
1443
|
return;
|
|
1444
|
-
const
|
|
1444
|
+
const T = e.value.scrollLeft, x = e.value.scrollWidth - e.value.offsetWidth;
|
|
1445
1445
|
if (D > 0) {
|
|
1446
|
-
if (e.value.scrollLeft >=
|
|
1446
|
+
if (e.value.scrollLeft >= x)
|
|
1447
1447
|
return;
|
|
1448
|
-
e.value.scrollLeft =
|
|
1448
|
+
e.value.scrollLeft = T + t.scrollStep + b;
|
|
1449
1449
|
} else if (D < 0) {
|
|
1450
1450
|
if (e.value.scrollLeft <= 0)
|
|
1451
1451
|
return;
|
|
1452
|
-
e.value.scrollLeft =
|
|
1452
|
+
e.value.scrollLeft = T - t.scrollStep - b;
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
function m(b = -1) {
|
|
1456
1456
|
if (!i.value || !e.value)
|
|
1457
1457
|
return;
|
|
1458
1458
|
b < 0 && (b = r.value.findIndex((j) => j.props.id === s.value));
|
|
1459
|
-
const D = t.tabType === "pills" ? ".f-capsule-item" : ".nav-item",
|
|
1460
|
-
if (P &&
|
|
1461
|
-
const j =
|
|
1462
|
-
k < j ? f(j - k, -1) :
|
|
1459
|
+
const D = t.tabType === "pills" ? ".f-capsule-item" : ".nav-item", T = e.value.querySelectorAll(D), { parentElement: x } = e.value, P = T[b];
|
|
1460
|
+
if (P && x) {
|
|
1461
|
+
const j = x.getBoundingClientRect().left, I = x.getBoundingClientRect().right, k = P.getBoundingClientRect().left, S = P.getBoundingClientRect().right;
|
|
1462
|
+
k < j ? f(j - k, -1) : I < S && f(S - I, 1), t.tabType === "one-page" && n.scrollTo(b);
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
1465
|
function v() {
|
|
1466
|
-
var
|
|
1466
|
+
var T;
|
|
1467
1467
|
if (!e.value)
|
|
1468
1468
|
return;
|
|
1469
|
-
const b = e.value, D = (
|
|
1469
|
+
const b = e.value, D = (T = e.value) == null ? void 0 : T.parentElement;
|
|
1470
1470
|
i.value = D && b && D.offsetWidth < b.scrollWidth - c, i.value && ve(() => {
|
|
1471
1471
|
m();
|
|
1472
1472
|
});
|
|
@@ -1539,16 +1539,16 @@ const lt = /* @__PURE__ */ Re({
|
|
|
1539
1539
|
toggleShowTab: F,
|
|
1540
1540
|
hasInHeadClass: b,
|
|
1541
1541
|
toolbarVisible: D
|
|
1542
|
-
} = c,
|
|
1542
|
+
} = c, T = Ln(t, l, c), x = An(t, r, T, c), {
|
|
1543
1543
|
previousButtonClass: P,
|
|
1544
1544
|
nextButtonClass: j,
|
|
1545
|
-
nextButtonGroupClass:
|
|
1545
|
+
nextButtonGroupClass: I,
|
|
1546
1546
|
scrollTab: k,
|
|
1547
|
-
updateNavigationLayout:
|
|
1548
|
-
scrollToSelectedTab:
|
|
1549
|
-
} =
|
|
1550
|
-
c.setScrollToSelectedTabFunction(
|
|
1551
|
-
const g = Nn(t, c), y = Ra(t, r,
|
|
1547
|
+
updateNavigationLayout: S,
|
|
1548
|
+
scrollToSelectedTab: w
|
|
1549
|
+
} = x;
|
|
1550
|
+
c.setScrollToSelectedTabFunction(w);
|
|
1551
|
+
const g = Nn(t, c), y = Ra(t, r, x, T, c), M = y, $ = jn(t, r, x, T, c), O = /* @__PURE__ */ new Map([["default", y], ["one-page", M], ["pills", $]]);
|
|
1552
1552
|
L(() => {
|
|
1553
1553
|
const te = p.value.find((ae) => ae.props.id === d.value);
|
|
1554
1554
|
return te == null ? void 0 : te.slots;
|
|
@@ -1588,18 +1588,18 @@ const lt = /* @__PURE__ */ Re({
|
|
|
1588
1588
|
};
|
|
1589
1589
|
return a.value && a.value.split(" ").reduce((ae, le) => (ae[le] = !0, ae), te), te;
|
|
1590
1590
|
}), K = new ResizeObserver((te) => {
|
|
1591
|
-
te.length &&
|
|
1591
|
+
te.length && S();
|
|
1592
1592
|
});
|
|
1593
1593
|
function oe() {
|
|
1594
1594
|
s.value && !R && (K.observe(s.value), R = !0);
|
|
1595
1595
|
}
|
|
1596
1596
|
me(() => t.visible, (te) => {
|
|
1597
1597
|
ve(() => {
|
|
1598
|
-
p.value.length && C(t.activeId || p.value[0].props.id),
|
|
1598
|
+
p.value.length && C(t.activeId || p.value[0].props.id), S(), u(r), oe();
|
|
1599
1599
|
});
|
|
1600
1600
|
}), me(() => t.autoTitleWidth, (te) => {
|
|
1601
1601
|
ve(() => {
|
|
1602
|
-
|
|
1602
|
+
S(), u(r);
|
|
1603
1603
|
});
|
|
1604
1604
|
});
|
|
1605
1605
|
const ie = {
|
|
@@ -1608,7 +1608,7 @@ const lt = /* @__PURE__ */ Re({
|
|
|
1608
1608
|
};
|
|
1609
1609
|
De(() => {
|
|
1610
1610
|
t.visible && (p.value.length && C(t.activeId || p.value[0].props.id), ve(() => {
|
|
1611
|
-
|
|
1611
|
+
S(), u(r);
|
|
1612
1612
|
}), oe());
|
|
1613
1613
|
});
|
|
1614
1614
|
function Z() {
|
|
@@ -1634,7 +1634,7 @@ const lt = /* @__PURE__ */ Re({
|
|
|
1634
1634
|
const {
|
|
1635
1635
|
renderMorePagesButtton: he,
|
|
1636
1636
|
setTabsRef: se
|
|
1637
|
-
} = $a(t, g,
|
|
1637
|
+
} = $a(t, g, x, c);
|
|
1638
1638
|
se(i);
|
|
1639
1639
|
const Q = (te, ae) => {
|
|
1640
1640
|
e.emit("Click", te, ae, d.value);
|
|
@@ -1665,7 +1665,7 @@ const lt = /* @__PURE__ */ Re({
|
|
|
1665
1665
|
style: z.value,
|
|
1666
1666
|
ref: s
|
|
1667
1667
|
}, [Z(), E && E(), h("div", {
|
|
1668
|
-
class:
|
|
1668
|
+
class: I.value
|
|
1669
1669
|
}, [de(), he()])]), ce(), h("div", {
|
|
1670
1670
|
class: "farris-tabs-header-post"
|
|
1671
1671
|
}, [(Me = (le = e.slots).headerSuffix) == null ? void 0 : Me.call(le)])]);
|
|
@@ -1918,10 +1918,10 @@ function Ga(t, e, n, o, i, a) {
|
|
|
1918
1918
|
<i class="f-icon f-icon-close"></i>
|
|
1919
1919
|
</span>` : e.titleHtml;
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1921
|
+
function T(g) {
|
|
1922
1922
|
l(e.id), t.tabType === "one-page" && o.scrollToByPaggId(e.id);
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function x(g) {
|
|
1925
1925
|
g && (g.stopPropagation(), g.preventDefault()), c(g, e.id, a.value);
|
|
1926
1926
|
}
|
|
1927
1927
|
function P(g) {
|
|
@@ -1943,7 +1943,7 @@ function Ga(t, e, n, o, i, a) {
|
|
|
1943
1943
|
u();
|
|
1944
1944
|
});
|
|
1945
1945
|
});
|
|
1946
|
-
function
|
|
1946
|
+
function I() {
|
|
1947
1947
|
return h("div", {
|
|
1948
1948
|
role: "button",
|
|
1949
1949
|
class: "btn component-settings-button",
|
|
@@ -1965,34 +1965,34 @@ function Ga(t, e, n, o, i, a) {
|
|
|
1965
1965
|
class: "f-icon f-icon-plus-circle"
|
|
1966
1966
|
}, null)]);
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1968
|
+
function S() {
|
|
1969
1969
|
return h("div", {
|
|
1970
1970
|
class: "component-btn-group",
|
|
1971
1971
|
"data-noattach": "true"
|
|
1972
|
-
}, [h("div", null, [
|
|
1972
|
+
}, [h("div", null, [I(), !e.toolbar || !e.toolbar.buttons || !e.toolbar.buttons.length ? k() : ""])]);
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function w() {
|
|
1975
1975
|
return n.slots.title ? h("a", {
|
|
1976
1976
|
class: v.value,
|
|
1977
|
-
onClick:
|
|
1977
|
+
onClick: T,
|
|
1978
1978
|
id: `${e.id}-design-item`
|
|
1979
1979
|
}, [n.slots.title(n), b()]) : e.titleHtml ? h("a", {
|
|
1980
1980
|
class: v.value,
|
|
1981
|
-
onClick:
|
|
1981
|
+
onClick: T,
|
|
1982
1982
|
id: `${e.id}-design-item`,
|
|
1983
1983
|
innerHTML: D()
|
|
1984
1984
|
}, null) : h("a", {
|
|
1985
1985
|
class: v.value,
|
|
1986
|
-
onClick:
|
|
1986
|
+
onClick: T,
|
|
1987
1987
|
id: `${e.id}-design-item`
|
|
1988
1988
|
}, [C(), b()]);
|
|
1989
1989
|
}
|
|
1990
1990
|
return h("li", {
|
|
1991
|
-
onClick: (g) =>
|
|
1991
|
+
onClick: (g) => x(g),
|
|
1992
1992
|
class: f.value,
|
|
1993
1993
|
style: m.value,
|
|
1994
1994
|
pageId: `${e.id}-design-item`
|
|
1995
|
-
}, [
|
|
1995
|
+
}, [S(), w()]);
|
|
1996
1996
|
}
|
|
1997
1997
|
function Ya(t, e, n, o, i, a, r) {
|
|
1998
1998
|
const {
|
|
@@ -2046,7 +2046,7 @@ function Ya(t, e, n, o, i, a, r) {
|
|
|
2046
2046
|
}, null)])])])]);
|
|
2047
2047
|
}
|
|
2048
2048
|
function qn(t, e, n) {
|
|
2049
|
-
var
|
|
2049
|
+
var w;
|
|
2050
2050
|
const o = n && n.getStyles && n.getStyles() || "", i = n && n.getDesignerClass && n.getDesignerClass() || "", a = B();
|
|
2051
2051
|
let r;
|
|
2052
2052
|
function l() {
|
|
@@ -2105,7 +2105,7 @@ function qn(t, e, n) {
|
|
|
2105
2105
|
if (n && n.getPropsConfig)
|
|
2106
2106
|
return n.getPropsConfig(...g);
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2108
|
+
function T(g) {
|
|
2109
2109
|
if (!g)
|
|
2110
2110
|
return;
|
|
2111
2111
|
const y = e == null ? void 0 : e.schema, { formSchemaUtils: M } = g;
|
|
@@ -2114,14 +2114,14 @@ function qn(t, e, n) {
|
|
|
2114
2114
|
$ > -1 && M.getExpressions().splice($, 1);
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function x(g) {
|
|
2118
2118
|
if (!g || !(e != null && e.schema))
|
|
2119
2119
|
return;
|
|
2120
2120
|
const y = e.schema, { formSchemaUtils: M } = g;
|
|
2121
2121
|
M.removeCommunicationInComponent(y);
|
|
2122
2122
|
}
|
|
2123
2123
|
function P(g) {
|
|
2124
|
-
n && n.onRemoveComponent && n.onRemoveComponent(),
|
|
2124
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), T(g), x(g), e != null && e.schema.contents && e.schema.contents.map((y) => {
|
|
2125
2125
|
let M = y.id;
|
|
2126
2126
|
y.type === "component-ref" && (M = y.component);
|
|
2127
2127
|
const $ = t.value.querySelectorAll(`#${M}-design-item`);
|
|
@@ -2135,7 +2135,7 @@ function qn(t, e, n) {
|
|
|
2135
2135
|
if (n && n.getCustomButtons)
|
|
2136
2136
|
return n.getCustomButtons();
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function I(g) {
|
|
2139
2139
|
var M, $;
|
|
2140
2140
|
if (!((M = e == null ? void 0 : e.schema) != null && M.id))
|
|
2141
2141
|
return;
|
|
@@ -2158,7 +2158,7 @@ function qn(t, e, n) {
|
|
|
2158
2158
|
function k(g) {
|
|
2159
2159
|
var O;
|
|
2160
2160
|
const { changeObject: y } = g, { propertyID: M, propertyValue: $ } = y;
|
|
2161
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((O = g == null ? void 0 : g.changeObject) == null ? void 0 : O.propertyID) && M && $ && (
|
|
2161
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((O = g == null ? void 0 : g.changeObject) == null ? void 0 : O.propertyID) && M && $ && (I(), r)) {
|
|
2162
2162
|
const V = r.getControlBasicInfoMap(), R = V.keys().toArray().filter((A) => {
|
|
2163
2163
|
var z, q;
|
|
2164
2164
|
return ((z = V.get(A)) == null ? void 0 : z.reliedComponentId) === ((q = e == null ? void 0 : e.schema) == null ? void 0 : q.id);
|
|
@@ -2169,7 +2169,7 @@ function qn(t, e, n) {
|
|
|
2169
2169
|
});
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function S(g) {
|
|
2173
2173
|
if (k(g), n && n.onPropertyChanged)
|
|
2174
2174
|
return n.onPropertyChanged(g);
|
|
2175
2175
|
}
|
|
@@ -2180,7 +2180,7 @@ function qn(t, e, n) {
|
|
|
2180
2180
|
canNested: !d(),
|
|
2181
2181
|
contents: e == null ? void 0 : e.schema.contents,
|
|
2182
2182
|
elementRef: t,
|
|
2183
|
-
parent: (
|
|
2183
|
+
parent: (w = e == null ? void 0 : e.parent) == null ? void 0 : w.componentInstance,
|
|
2184
2184
|
schema: e == null ? void 0 : e.schema,
|
|
2185
2185
|
styles: o,
|
|
2186
2186
|
designerClass: i,
|
|
@@ -2197,8 +2197,8 @@ function qn(t, e, n) {
|
|
|
2197
2197
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || B(!1),
|
|
2198
2198
|
onRemoveComponent: P,
|
|
2199
2199
|
getCustomButtons: j,
|
|
2200
|
-
onPropertyChanged:
|
|
2201
|
-
setComponentBasicInfoMap:
|
|
2200
|
+
onPropertyChanged: S,
|
|
2201
|
+
setComponentBasicInfoMap: I,
|
|
2202
2202
|
updateContextSchema: e == null ? void 0 : e.updateContextSchema
|
|
2203
2203
|
}, a;
|
|
2204
2204
|
}
|
|
@@ -2318,11 +2318,11 @@ var Wn = { exports: {} };
|
|
|
2318
2318
|
2: [function(n, o, i) {
|
|
2319
2319
|
(function(a) {
|
|
2320
2320
|
var r = n("contra/emitter"), l = n("crossvent"), s = n("./classes"), c = document, d = c.documentElement;
|
|
2321
|
-
function u(
|
|
2321
|
+
function u(w, g) {
|
|
2322
2322
|
var y = arguments.length;
|
|
2323
|
-
y === 1 && Array.isArray(
|
|
2323
|
+
y === 1 && Array.isArray(w) === !1 && (g = w, w = []);
|
|
2324
2324
|
var M, $, O, V, R, A, z, q, K, oe = null, ie, Z, de = !1, he = 0, se, Q = g || {};
|
|
2325
|
-
Q.moves === void 0 && (Q.moves = b), Q.accepts === void 0 && (Q.accepts = b), Q.invalid === void 0 && (Q.invalid = ft), Q.containers === void 0 && (Q.containers =
|
|
2325
|
+
Q.moves === void 0 && (Q.moves = b), Q.accepts === void 0 && (Q.accepts = b), Q.invalid === void 0 && (Q.invalid = ft), Q.containers === void 0 && (Q.containers = w || []), Q.isContainer === void 0 && (Q.isContainer = F), 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 = c.body);
|
|
2326
2326
|
var ce = r({
|
|
2327
2327
|
containers: Q.containers,
|
|
2328
2328
|
start: $e,
|
|
@@ -2371,7 +2371,7 @@ var Wn = { exports: {} };
|
|
|
2371
2371
|
}
|
|
2372
2372
|
if (!(N.clientX !== void 0 && Math.abs(N.clientX - V) <= (Q.slideFactorX || 0) && N.clientY !== void 0 && Math.abs(N.clientY - R) <= (Q.slideFactorY || 0))) {
|
|
2373
2373
|
if (Q.ignoreInputTextSelection) {
|
|
2374
|
-
var G =
|
|
2374
|
+
var G = S("clientX", N) || 0, X = S("clientY", N) || 0, ee = c.elementFromPoint(G, X);
|
|
2375
2375
|
if (P(ee))
|
|
2376
2376
|
return;
|
|
2377
2377
|
}
|
|
@@ -2382,12 +2382,12 @@ var Wn = { exports: {} };
|
|
|
2382
2382
|
}
|
|
2383
2383
|
function ge(N) {
|
|
2384
2384
|
if (!(ce.dragging && M) && !E(N)) {
|
|
2385
|
-
for (var G = N;
|
|
2386
|
-
if (Q.invalid(N, G) || (N =
|
|
2385
|
+
for (var G = N; x(N) && E(x(N)) === !1; )
|
|
2386
|
+
if (Q.invalid(N, G) || (N = x(N), !N))
|
|
2387
2387
|
return;
|
|
2388
|
-
var X =
|
|
2388
|
+
var X = x(N);
|
|
2389
2389
|
if (X && !Q.invalid(N, G)) {
|
|
2390
|
-
var ee = Q.moves(N, X, G,
|
|
2390
|
+
var ee = Q.moves(N, X, G, I(N));
|
|
2391
2391
|
if (ee)
|
|
2392
2392
|
return {
|
|
2393
2393
|
item: N,
|
|
@@ -2404,7 +2404,7 @@ var Wn = { exports: {} };
|
|
|
2404
2404
|
G && _e(G);
|
|
2405
2405
|
}
|
|
2406
2406
|
function _e(N) {
|
|
2407
|
-
zt(N.item, N.source) && (q = N.item.cloneNode(!0), ce.emit("cloned", q, N.item, "copy")), $ = N.source, O = N.item, A = z =
|
|
2407
|
+
zt(N.item, N.source) && (q = N.item.cloneNode(!0), ce.emit("cloned", q, N.item, "copy")), $ = N.source, O = N.item, A = z = I(N.item), ce.dragging = !0, ce.emit("drag", O, $);
|
|
2408
2408
|
}
|
|
2409
2409
|
function ft() {
|
|
2410
2410
|
return !1;
|
|
@@ -2412,7 +2412,7 @@ var Wn = { exports: {} };
|
|
|
2412
2412
|
function Qe() {
|
|
2413
2413
|
if (ce.dragging) {
|
|
2414
2414
|
var N = q || O;
|
|
2415
|
-
it(N,
|
|
2415
|
+
it(N, x(N));
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
2418
|
function ze() {
|
|
@@ -2420,23 +2420,23 @@ var Wn = { exports: {} };
|
|
|
2420
2420
|
}
|
|
2421
2421
|
function Ue(N) {
|
|
2422
2422
|
if (ze(), !!ce.dragging) {
|
|
2423
|
-
var G = q || O, X =
|
|
2423
|
+
var G = q || O, X = S("clientX", N) || 0, ee = S("clientY", N) || 0, fe = C(M, X, ee), pe = Ce(fe, X, ee);
|
|
2424
2424
|
pe && (q && Q.copySortSource || !q || pe !== $) ? it(G, pe) : Q.removeOnSpill ? at() : U();
|
|
2425
2425
|
}
|
|
2426
2426
|
}
|
|
2427
2427
|
function it(N, G) {
|
|
2428
|
-
var X =
|
|
2428
|
+
var X = x(N);
|
|
2429
2429
|
q && Q.copySortSource && G === $ && X.removeChild(O), be(G) ? ce.emit("cancel", N, $) : ce.emit("drop", N, G, $, z), re();
|
|
2430
2430
|
}
|
|
2431
2431
|
function at() {
|
|
2432
2432
|
if (ce.dragging) {
|
|
2433
|
-
var N = q || O, G =
|
|
2433
|
+
var N = q || O, G = x(N);
|
|
2434
2434
|
G && G.removeChild(N), ce.emit(q ? "cancel" : "remove", N, G, $), re();
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
function U(N) {
|
|
2438
2438
|
if (ce.dragging) {
|
|
2439
|
-
var G = arguments.length > 0 ? N : Q.revertOnSpill, X = q || O, ee =
|
|
2439
|
+
var G = arguments.length > 0 ? N : Q.revertOnSpill, X = q || O, ee = x(X), fe = be(ee);
|
|
2440
2440
|
fe === !1 && G && (q ? ee && ee.removeChild(q) : $.insertBefore(X, A)), fe || G ? ce.emit("cancel", X, $, $) : ce.emit("drop", X, ee, $, z), re();
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
@@ -2446,11 +2446,11 @@ var Wn = { exports: {} };
|
|
|
2446
2446
|
}
|
|
2447
2447
|
function be(N, G) {
|
|
2448
2448
|
var X;
|
|
2449
|
-
return G !== void 0 ? X = G : M ? X = z : X =
|
|
2449
|
+
return G !== void 0 ? X = G : M ? X = z : X = I(q || O), N === $ && X === A;
|
|
2450
2450
|
}
|
|
2451
2451
|
function Ce(N, G, X) {
|
|
2452
2452
|
for (var ee = N; ee && !fe(); )
|
|
2453
|
-
ee =
|
|
2453
|
+
ee = x(ee);
|
|
2454
2454
|
return ee;
|
|
2455
2455
|
function fe() {
|
|
2456
2456
|
var pe = E(ee);
|
|
@@ -2464,11 +2464,11 @@ var Wn = { exports: {} };
|
|
|
2464
2464
|
if (!M)
|
|
2465
2465
|
return;
|
|
2466
2466
|
N.preventDefault();
|
|
2467
|
-
var G =
|
|
2467
|
+
var G = S("clientX", N) || 0, X = S("clientY", N) || 0;
|
|
2468
2468
|
M.style.left = G - 2 + "px", M.style.top = X - 2 + "px";
|
|
2469
2469
|
var ee = q || O, fe = C(M, G, X), pe = Ce(fe, G, X), Ae = pe !== null && pe !== oe;
|
|
2470
2470
|
(Ae || pe === null) && (Ee(), oe = pe, Ve()), Ht(fe, X);
|
|
2471
|
-
var Pe =
|
|
2471
|
+
var Pe = x(ee);
|
|
2472
2472
|
if (pe === $ && q && !Q.copySortSource) {
|
|
2473
2473
|
Pe && Pe.removeChild(ee);
|
|
2474
2474
|
return;
|
|
@@ -2494,7 +2494,7 @@ var Wn = { exports: {} };
|
|
|
2494
2494
|
}
|
|
2495
2495
|
}
|
|
2496
2496
|
function Ft(N, G, X) {
|
|
2497
|
-
(N === G || N ===
|
|
2497
|
+
(N === G || N === I(G)) && (z = I(G)), (N === null && X || N !== G && N !== I(G)) && (z = N);
|
|
2498
2498
|
}
|
|
2499
2499
|
function Dt(N) {
|
|
2500
2500
|
s.rm(N, "gu-hide");
|
|
@@ -2513,14 +2513,14 @@ var Wn = { exports: {} };
|
|
|
2513
2513
|
de = !1, Q.mirrorContainer.appendChild(Z);
|
|
2514
2514
|
}
|
|
2515
2515
|
function jt() {
|
|
2516
|
-
M && (s.rm(Q.mirrorContainer, "gu-unselectable"), m(d, "remove", "mousemove", qe),
|
|
2516
|
+
M && (s.rm(Q.mirrorContainer, "gu-unselectable"), m(d, "remove", "mousemove", qe), x(M).removeChild(M), M = null);
|
|
2517
2517
|
}
|
|
2518
2518
|
function At() {
|
|
2519
|
-
Z && (
|
|
2519
|
+
Z && (x(Z).removeChild(Z), Z = null);
|
|
2520
2520
|
}
|
|
2521
2521
|
function Ct(N, G) {
|
|
2522
|
-
for (var X = G; X !== N &&
|
|
2523
|
-
X =
|
|
2522
|
+
for (var X = G; X !== N && x(X) !== N; )
|
|
2523
|
+
X = x(X);
|
|
2524
2524
|
return X === d ? null : X;
|
|
2525
2525
|
}
|
|
2526
2526
|
function pt(N, G) {
|
|
@@ -2610,17 +2610,17 @@ var Wn = { exports: {} };
|
|
|
2610
2610
|
var Ve = ee - we.top, Ee = X - we.left, Ie = we.bottom - ee, mt = we.right - X, vt = Math.min(Ee, mt, Ve, Ie), ht;
|
|
2611
2611
|
return de ? ht = mt < Ee : ht = Ie === vt || mt === vt || Ee === vt, Le(ht);
|
|
2612
2612
|
}
|
|
2613
|
-
return Le(fe ? X > we.left + D(we) / 2 : ee > we.top +
|
|
2613
|
+
return Le(fe ? X > we.left + D(we) / 2 : ee > we.top + T(we) / 2);
|
|
2614
2614
|
}
|
|
2615
2615
|
function Le(we) {
|
|
2616
|
-
return we ?
|
|
2616
|
+
return we ? I(G) : G;
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
2619
|
function zt(N, G) {
|
|
2620
2620
|
return typeof Q.copy == "boolean" ? Q.copy : Q.copy(N, G);
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
|
-
function p(
|
|
2623
|
+
function p(w) {
|
|
2624
2624
|
const g = Array.from(window.scrollContainerList);
|
|
2625
2625
|
if (g.length === 1) {
|
|
2626
2626
|
const M = Array.from(window.scrollContainerList)[0];
|
|
@@ -2628,18 +2628,18 @@ var Wn = { exports: {} };
|
|
|
2628
2628
|
}
|
|
2629
2629
|
const y = f(g);
|
|
2630
2630
|
for (const M of y)
|
|
2631
|
-
if (M.contains(
|
|
2631
|
+
if (M.contains(w))
|
|
2632
2632
|
return M;
|
|
2633
2633
|
return null;
|
|
2634
2634
|
}
|
|
2635
|
-
function f(
|
|
2635
|
+
function f(w) {
|
|
2636
2636
|
const g = [];
|
|
2637
|
-
return
|
|
2637
|
+
return w.forEach((y) => {
|
|
2638
2638
|
const M = document.getElementById(y);
|
|
2639
2639
|
M && g.push(M);
|
|
2640
2640
|
}), g.sort((y, M) => y.contains(M) ? 1 : M.contains(y) ? -1 : 0), g;
|
|
2641
2641
|
}
|
|
2642
|
-
function m(
|
|
2642
|
+
function m(w, g, y, M) {
|
|
2643
2643
|
var $ = {
|
|
2644
2644
|
mouseup: "touchend",
|
|
2645
2645
|
mousedown: "touchstart",
|
|
@@ -2653,23 +2653,23 @@ var Wn = { exports: {} };
|
|
|
2653
2653
|
mousedown: "MSPointerDown",
|
|
2654
2654
|
mousemove: "MSPointerMove"
|
|
2655
2655
|
};
|
|
2656
|
-
a.navigator.pointerEnabled ? l[g](
|
|
2656
|
+
a.navigator.pointerEnabled ? l[g](w, O[y], M) : a.navigator.msPointerEnabled ? l[g](w, V[y], M) : (l[g](w, $[y], M), l[g](w, y, M));
|
|
2657
2657
|
}
|
|
2658
|
-
function v(
|
|
2659
|
-
if (
|
|
2660
|
-
return
|
|
2661
|
-
if (
|
|
2662
|
-
return
|
|
2663
|
-
if (
|
|
2664
|
-
return
|
|
2665
|
-
var g =
|
|
2658
|
+
function v(w) {
|
|
2659
|
+
if (w.touches !== void 0)
|
|
2660
|
+
return w.touches.length;
|
|
2661
|
+
if (w.which !== void 0 && w.which !== 0)
|
|
2662
|
+
return w.which;
|
|
2663
|
+
if (w.buttons !== void 0)
|
|
2664
|
+
return w.buttons;
|
|
2665
|
+
var g = w.button;
|
|
2666
2666
|
if (g !== void 0)
|
|
2667
2667
|
return g & 1 ? 1 : g & 2 ? 3 : g & 4 ? 2 : 0;
|
|
2668
2668
|
}
|
|
2669
|
-
function C(
|
|
2670
|
-
|
|
2671
|
-
var M =
|
|
2672
|
-
return
|
|
2669
|
+
function C(w, g, y) {
|
|
2670
|
+
w = w || {};
|
|
2671
|
+
var M = w.className || "", $;
|
|
2672
|
+
return w.className += " gu-hide", $ = c.elementFromPoint(g, y), w.className = M, $;
|
|
2673
2673
|
}
|
|
2674
2674
|
function F() {
|
|
2675
2675
|
return !1;
|
|
@@ -2677,42 +2677,42 @@ var Wn = { exports: {} };
|
|
|
2677
2677
|
function b() {
|
|
2678
2678
|
return !0;
|
|
2679
2679
|
}
|
|
2680
|
-
function D(
|
|
2681
|
-
return
|
|
2680
|
+
function D(w) {
|
|
2681
|
+
return w.width || w.right - w.left;
|
|
2682
2682
|
}
|
|
2683
|
-
function w
|
|
2684
|
-
return
|
|
2683
|
+
function T(w) {
|
|
2684
|
+
return w.height || w.bottom - w.top;
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2687
|
-
return
|
|
2686
|
+
function x(w) {
|
|
2687
|
+
return w.parentNode === c ? null : w.parentNode;
|
|
2688
2688
|
}
|
|
2689
|
-
function P(
|
|
2690
|
-
return
|
|
2689
|
+
function P(w) {
|
|
2690
|
+
return w.tagName === "INPUT" || w.tagName === "TEXTAREA" || w.tagName === "SELECT" || j(w);
|
|
2691
2691
|
}
|
|
2692
|
-
function j(
|
|
2693
|
-
return !
|
|
2692
|
+
function j(w) {
|
|
2693
|
+
return !w || w.contentEditable === "false" ? !1 : w.contentEditable === "true" ? !0 : j(x(w));
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2696
|
-
return
|
|
2695
|
+
function I(w) {
|
|
2696
|
+
return w.nextElementSibling || g();
|
|
2697
2697
|
function g() {
|
|
2698
|
-
var y =
|
|
2698
|
+
var y = w;
|
|
2699
2699
|
do
|
|
2700
2700
|
y = y.nextSibling;
|
|
2701
2701
|
while (y && y.nodeType !== 1);
|
|
2702
2702
|
return y;
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
|
-
function k(
|
|
2706
|
-
return
|
|
2705
|
+
function k(w) {
|
|
2706
|
+
return w.targetTouches && w.targetTouches.length ? w.targetTouches[0] : w.changedTouches && w.changedTouches.length ? w.changedTouches[0] : w;
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function S(w, g) {
|
|
2709
2709
|
var y = k(g), M = {
|
|
2710
2710
|
pageX: "clientX",
|
|
2711
2711
|
// IE8
|
|
2712
2712
|
pageY: "clientY"
|
|
2713
2713
|
// IE8
|
|
2714
2714
|
};
|
|
2715
|
-
return
|
|
2715
|
+
return w in M && !(w in y) && M[w] in y && (w = M[w]), y[w];
|
|
2716
2716
|
}
|
|
2717
2717
|
o.exports = u;
|
|
2718
2718
|
}).call(this, typeof Ye < "u" ? Ye : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2775,62 +2775,62 @@ var Wn = { exports: {} };
|
|
|
2775
2775
|
remove: d,
|
|
2776
2776
|
fabricate: C
|
|
2777
2777
|
};
|
|
2778
|
-
function p(
|
|
2779
|
-
return
|
|
2778
|
+
function p(x, P, j, I) {
|
|
2779
|
+
return x.addEventListener(P, j, I);
|
|
2780
2780
|
}
|
|
2781
|
-
function f(
|
|
2782
|
-
return
|
|
2781
|
+
function f(x, P, j) {
|
|
2782
|
+
return x.attachEvent("on" + P, b(x, P, j));
|
|
2783
2783
|
}
|
|
2784
|
-
function m(
|
|
2785
|
-
return
|
|
2784
|
+
function m(x, P, j, I) {
|
|
2785
|
+
return x.removeEventListener(P, j, I);
|
|
2786
2786
|
}
|
|
2787
|
-
function v(
|
|
2788
|
-
var
|
|
2789
|
-
if (
|
|
2790
|
-
return
|
|
2787
|
+
function v(x, P, j) {
|
|
2788
|
+
var I = D(x, P, j);
|
|
2789
|
+
if (I)
|
|
2790
|
+
return x.detachEvent("on" + P, I);
|
|
2791
2791
|
}
|
|
2792
|
-
function C(
|
|
2793
|
-
var
|
|
2794
|
-
|
|
2792
|
+
function C(x, P, j) {
|
|
2793
|
+
var I = l.indexOf(P) === -1 ? S() : k();
|
|
2794
|
+
x.dispatchEvent ? x.dispatchEvent(I) : x.fireEvent("on" + P, I);
|
|
2795
2795
|
function k() {
|
|
2796
|
-
var
|
|
2797
|
-
return s.createEvent ? (
|
|
2796
|
+
var w;
|
|
2797
|
+
return s.createEvent ? (w = s.createEvent("Event"), w.initEvent(P, !0, !0)) : s.createEventObject && (w = s.createEventObject()), w;
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2799
|
+
function S() {
|
|
2800
2800
|
return new r(P, { detail: j });
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
|
-
function F(
|
|
2803
|
+
function F(x, P, j) {
|
|
2804
2804
|
return function(k) {
|
|
2805
|
-
var
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
},
|
|
2809
|
-
|
|
2810
|
-
},
|
|
2805
|
+
var S = k || a.event;
|
|
2806
|
+
S.target = S.target || S.srcElement, S.preventDefault = S.preventDefault || function() {
|
|
2807
|
+
S.returnValue = !1;
|
|
2808
|
+
}, S.stopPropagation = S.stopPropagation || function() {
|
|
2809
|
+
S.cancelBubble = !0;
|
|
2810
|
+
}, S.which = S.which || S.keyCode, j.call(x, S);
|
|
2811
2811
|
};
|
|
2812
2812
|
}
|
|
2813
|
-
function b(
|
|
2814
|
-
var
|
|
2813
|
+
function b(x, P, j) {
|
|
2814
|
+
var I = D(x, P, j) || F(x, P, j);
|
|
2815
2815
|
return u.push({
|
|
2816
|
-
wrapper:
|
|
2817
|
-
element:
|
|
2816
|
+
wrapper: I,
|
|
2817
|
+
element: x,
|
|
2818
2818
|
type: P,
|
|
2819
2819
|
fn: j
|
|
2820
|
-
}),
|
|
2820
|
+
}), I;
|
|
2821
2821
|
}
|
|
2822
|
-
function D(
|
|
2823
|
-
var
|
|
2824
|
-
if (
|
|
2825
|
-
var k = u[
|
|
2826
|
-
return u.splice(
|
|
2822
|
+
function D(x, P, j) {
|
|
2823
|
+
var I = T(x, P, j);
|
|
2824
|
+
if (I) {
|
|
2825
|
+
var k = u[I].wrapper;
|
|
2826
|
+
return u.splice(I, 1), k;
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2830
|
-
var
|
|
2831
|
-
for (
|
|
2832
|
-
if (k = u[
|
|
2833
|
-
return
|
|
2829
|
+
function T(x, P, j) {
|
|
2830
|
+
var I, k;
|
|
2831
|
+
for (I = 0; I < u.length; I++)
|
|
2832
|
+
if (k = u[I], k.element === x && k.type === P && k.fn === j)
|
|
2833
|
+
return I;
|
|
2834
2834
|
}
|
|
2835
2835
|
}).call(this, typeof Ye < "u" ? Ye : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2836
2836
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2888,33 +2888,33 @@ var Wn = { exports: {} };
|
|
|
2888
2888
|
l = c;
|
|
2889
2889
|
}
|
|
2890
2890
|
})();
|
|
2891
|
-
function d(
|
|
2891
|
+
function d(T) {
|
|
2892
2892
|
if (r === setTimeout)
|
|
2893
|
-
return setTimeout(
|
|
2893
|
+
return setTimeout(T, 0);
|
|
2894
2894
|
if ((r === s || !r) && setTimeout)
|
|
2895
|
-
return r = setTimeout, setTimeout(
|
|
2895
|
+
return r = setTimeout, setTimeout(T, 0);
|
|
2896
2896
|
try {
|
|
2897
|
-
return r(
|
|
2897
|
+
return r(T, 0);
|
|
2898
2898
|
} catch {
|
|
2899
2899
|
try {
|
|
2900
|
-
return r.call(null,
|
|
2900
|
+
return r.call(null, T, 0);
|
|
2901
2901
|
} catch {
|
|
2902
|
-
return r.call(this,
|
|
2902
|
+
return r.call(this, T, 0);
|
|
2903
2903
|
}
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
2906
|
-
function u(
|
|
2906
|
+
function u(T) {
|
|
2907
2907
|
if (l === clearTimeout)
|
|
2908
|
-
return clearTimeout(
|
|
2908
|
+
return clearTimeout(T);
|
|
2909
2909
|
if ((l === c || !l) && clearTimeout)
|
|
2910
|
-
return l = clearTimeout, clearTimeout(
|
|
2910
|
+
return l = clearTimeout, clearTimeout(T);
|
|
2911
2911
|
try {
|
|
2912
|
-
return l(
|
|
2912
|
+
return l(T);
|
|
2913
2913
|
} catch {
|
|
2914
2914
|
try {
|
|
2915
|
-
return l.call(null,
|
|
2915
|
+
return l.call(null, T);
|
|
2916
2916
|
} catch {
|
|
2917
|
-
return l.call(this,
|
|
2917
|
+
return l.call(this, T);
|
|
2918
2918
|
}
|
|
2919
2919
|
}
|
|
2920
2920
|
}
|
|
@@ -2924,38 +2924,38 @@ var Wn = { exports: {} };
|
|
|
2924
2924
|
}
|
|
2925
2925
|
function F() {
|
|
2926
2926
|
if (!f) {
|
|
2927
|
-
var
|
|
2927
|
+
var T = d(C);
|
|
2928
2928
|
f = !0;
|
|
2929
|
-
for (var
|
|
2930
|
-
for (m = p, p = []; ++v <
|
|
2929
|
+
for (var x = p.length; x; ) {
|
|
2930
|
+
for (m = p, p = []; ++v < x; )
|
|
2931
2931
|
m && m[v].run();
|
|
2932
|
-
v = -1,
|
|
2932
|
+
v = -1, x = p.length;
|
|
2933
2933
|
}
|
|
2934
|
-
m = null, f = !1, u(
|
|
2934
|
+
m = null, f = !1, u(T);
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
|
-
a.nextTick = function(
|
|
2938
|
-
var
|
|
2937
|
+
a.nextTick = function(T) {
|
|
2938
|
+
var x = new Array(arguments.length - 1);
|
|
2939
2939
|
if (arguments.length > 1)
|
|
2940
2940
|
for (var P = 1; P < arguments.length; P++)
|
|
2941
|
-
|
|
2942
|
-
p.push(new b(
|
|
2941
|
+
x[P - 1] = arguments[P];
|
|
2942
|
+
p.push(new b(T, x)), p.length === 1 && !f && d(F);
|
|
2943
2943
|
};
|
|
2944
|
-
function b(
|
|
2945
|
-
this.fun =
|
|
2944
|
+
function b(T, x) {
|
|
2945
|
+
this.fun = T, this.array = x;
|
|
2946
2946
|
}
|
|
2947
2947
|
b.prototype.run = function() {
|
|
2948
2948
|
this.fun.apply(null, this.array);
|
|
2949
2949
|
}, a.title = "browser", a.browser = !0, a.env = {}, a.argv = [], a.version = "", a.versions = {};
|
|
2950
2950
|
function D() {
|
|
2951
2951
|
}
|
|
2952
|
-
a.on = D, a.addListener = D, a.once = D, a.off = D, a.removeListener = D, a.removeAllListeners = D, a.emit = D, a.prependListener = D, a.prependOnceListener = D, a.listeners = function(
|
|
2952
|
+
a.on = D, a.addListener = D, a.once = D, a.off = D, a.removeListener = D, a.removeAllListeners = D, a.emit = D, a.prependListener = D, a.prependOnceListener = D, a.listeners = function(T) {
|
|
2953
2953
|
return [];
|
|
2954
|
-
}, a.binding = function(
|
|
2954
|
+
}, a.binding = function(T) {
|
|
2955
2955
|
throw new Error("process.binding is not supported");
|
|
2956
2956
|
}, a.cwd = function() {
|
|
2957
2957
|
return "/";
|
|
2958
|
-
}, a.chdir = function(
|
|
2958
|
+
}, a.chdir = function(T) {
|
|
2959
2959
|
throw new Error("process.chdir is not supported");
|
|
2960
2960
|
}, a.umask = function() {
|
|
2961
2961
|
return 0;
|
|
@@ -3037,12 +3037,12 @@ const It = /* @__PURE__ */ Za(Ka), er = {
|
|
|
3037
3037
|
locale: n,
|
|
3038
3038
|
t: o
|
|
3039
3039
|
} = yt(), i = B(t.animate), a = "fadeOut", r = L(() => t.options), l = B(!1), s = L(() => r.value.title && r.value.message), c = L(() => !r.value.title && r.value.message), d = L(() => {
|
|
3040
|
-
const
|
|
3040
|
+
const T = {
|
|
3041
3041
|
animated: l.value,
|
|
3042
3042
|
toast: !0,
|
|
3043
3043
|
"toast--only-content": !s.value
|
|
3044
3044
|
};
|
|
3045
|
-
return
|
|
3045
|
+
return T[t.animate] = !1, T[a] = l.value, T["toasty-type-" + r.value.type] = !0, r.value.theme && (T[r.value.theme] = !0), T;
|
|
3046
3046
|
}), u = L(() => {
|
|
3047
3047
|
const P = `f-icon-${r.value && r.value.type ? r.value.type.replace("toasty-type-", "") : "default"}`, j = {
|
|
3048
3048
|
"f-icon": !0
|
|
@@ -3052,27 +3052,27 @@ const It = /* @__PURE__ */ Za(Ka), er = {
|
|
|
3052
3052
|
wordBreak: "keep-all",
|
|
3053
3053
|
overflowWrap: "break-word"
|
|
3054
3054
|
} : {});
|
|
3055
|
-
function C(
|
|
3056
|
-
|
|
3055
|
+
function C(T) {
|
|
3056
|
+
T.stopPropagation(), T.preventDefault(), l.value = !1, setTimeout(() => {
|
|
3057
3057
|
e.emit("close", r.value);
|
|
3058
3058
|
}, 200);
|
|
3059
3059
|
}
|
|
3060
|
-
function F(
|
|
3060
|
+
function F(T, x) {
|
|
3061
3061
|
}
|
|
3062
|
-
function b(
|
|
3063
|
-
return `f-preten-link ${
|
|
3062
|
+
function b(T) {
|
|
3063
|
+
return `f-preten-link ${T.customClass ? T.customClass : ""}`;
|
|
3064
3064
|
}
|
|
3065
3065
|
me(i, () => {
|
|
3066
3066
|
i.value;
|
|
3067
3067
|
});
|
|
3068
3068
|
const D = () => {
|
|
3069
|
-
var
|
|
3069
|
+
var T;
|
|
3070
3070
|
return h(ct, null, [h("div", {
|
|
3071
3071
|
class: "after-toast-msg text-right"
|
|
3072
|
-
}, [!e.slots.default && ((
|
|
3073
|
-
class: b(
|
|
3072
|
+
}, [!e.slots.default && ((T = r.value.buttons) == null ? void 0 : T.map((x) => h("span", {
|
|
3073
|
+
class: b(x),
|
|
3074
3074
|
onClick: (P) => void 0
|
|
3075
|
-
}, [
|
|
3075
|
+
}, [x.text]))), e.slots.default && e.slots.default()])]);
|
|
3076
3076
|
};
|
|
3077
3077
|
return () => h("div", {
|
|
3078
3078
|
class: d.value,
|
|
@@ -3440,26 +3440,26 @@ function ar(t, e, n, o, i, a, r, l, s, c, d, u, p, f, m, v, C) {
|
|
|
3440
3440
|
} = a, {
|
|
3441
3441
|
columnContext: b,
|
|
3442
3442
|
hasLeftFixedColumn: D,
|
|
3443
|
-
hasRightFixedColumn:
|
|
3443
|
+
hasRightFixedColumn: T
|
|
3444
3444
|
} = r, {
|
|
3445
|
-
gridDataStyle:
|
|
3445
|
+
gridDataStyle: x,
|
|
3446
3446
|
leftFixedGridDataStyle: P,
|
|
3447
3447
|
rightFixedGridDataStyle: j
|
|
3448
3448
|
} = f, {
|
|
3449
|
-
renderDataRow:
|
|
3450
|
-
} = ko(t, e, b, C, l, s, c, d, u, p, f, m, v), k = [
|
|
3451
|
-
function
|
|
3449
|
+
renderDataRow: I
|
|
3450
|
+
} = ko(t, e, b, C, l, s, c, d, u, p, f, m, v), k = [I];
|
|
3451
|
+
function S($, O) {
|
|
3452
3452
|
const V = F($);
|
|
3453
3453
|
return C.value.filter((R) => R.visible !== !1).map((R, A) => k[R.type](R, V, O, A));
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function w() {
|
|
3456
3456
|
return h("div", {
|
|
3457
3457
|
ref: o,
|
|
3458
3458
|
class: "fv-grid-content-left-fixed"
|
|
3459
3459
|
}, [h("div", {
|
|
3460
3460
|
class: "fv-grid-data",
|
|
3461
3461
|
style: P.value
|
|
3462
|
-
}, [
|
|
3462
|
+
}, [S(b.value.leftColumns.filter(($) => $.visible), "left")])]);
|
|
3463
3463
|
}
|
|
3464
3464
|
function g() {
|
|
3465
3465
|
return h("div", {
|
|
@@ -3467,8 +3467,8 @@ function ar(t, e, n, o, i, a, r, l, s, c, d, u, p, f, m, v, C) {
|
|
|
3467
3467
|
class: "fv-grid-content-primary"
|
|
3468
3468
|
}, [h("div", {
|
|
3469
3469
|
class: "fv-grid-data",
|
|
3470
|
-
style:
|
|
3471
|
-
}, [
|
|
3470
|
+
style: x.value
|
|
3471
|
+
}, [S(b.value.primaryColumns.filter(($) => $.visible), "primary")])]);
|
|
3472
3472
|
}
|
|
3473
3473
|
function y() {
|
|
3474
3474
|
return h("div", {
|
|
@@ -3477,11 +3477,11 @@ function ar(t, e, n, o, i, a, r, l, s, c, d, u, p, f, m, v, C) {
|
|
|
3477
3477
|
}, [h("div", {
|
|
3478
3478
|
class: "fv-grid-data",
|
|
3479
3479
|
style: j.value
|
|
3480
|
-
}, [
|
|
3480
|
+
}, [S(b.value.rightColumns.filter(($) => $.visible), "right")])]);
|
|
3481
3481
|
}
|
|
3482
3482
|
function M() {
|
|
3483
3483
|
const $ = [];
|
|
3484
|
-
return D.value && $.push(
|
|
3484
|
+
return D.value && $.push(w()), $.push(g()), T.value && $.push(y()), $;
|
|
3485
3485
|
}
|
|
3486
3486
|
return {
|
|
3487
3487
|
renderDataArea: M
|
|
@@ -3498,14 +3498,14 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3498
3498
|
} = r, s = B(), c = B(), d = B(), u = B(), p = B(), f = B([]), m = B(!1), v = B(((rn = t.rowOption) == null ? void 0 : rn.wrapContent) || !1), C = Fo(t, r), F = Do(t, e), b = Ro(t), {
|
|
3499
3499
|
collapseField: D
|
|
3500
3500
|
} = b, {
|
|
3501
|
-
showLoading:
|
|
3502
|
-
renderLoading:
|
|
3501
|
+
showLoading: T,
|
|
3502
|
+
renderLoading: x
|
|
3503
3503
|
} = Oo(t, s), P = $o(t, /* @__PURE__ */ new Map(), F, b, r), {
|
|
3504
3504
|
dataView: j
|
|
3505
|
-
} = P,
|
|
3505
|
+
} = P, I = jo(t, P, r, f, e), {
|
|
3506
3506
|
showSelection: k,
|
|
3507
|
-
selectedValues:
|
|
3508
|
-
} =
|
|
3507
|
+
selectedValues: S
|
|
3508
|
+
} = I, w = Ao(t, f, P, r, I, e), g = L(() => t.disabled), y = L(() => t.virtualized ? Math.min(P.dataView.value.length, i.value) : P.dataView.value.length), M = No(t, P), {
|
|
3509
3509
|
shouldRenderPagination: $
|
|
3510
3510
|
} = M, {
|
|
3511
3511
|
containerStyleObject: O
|
|
@@ -3524,9 +3524,9 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3524
3524
|
updateColumnRenderContext: Z
|
|
3525
3525
|
} = q;
|
|
3526
3526
|
oe(P, K);
|
|
3527
|
-
const de = Wo(t, ie), he = _o(t, e,
|
|
3527
|
+
const de = Wo(t, ie), he = _o(t, e, I, r), se = Uo(t, e, r, he, f), Q = Go(t), ce = Yo(t, se, Q), E = Xo(t, P, se, b, r, Q, ce), H = Jo(t, a, P, y, 0, E), {
|
|
3528
3528
|
getVisualData: W
|
|
3529
|
-
} = H, Y = Qo(t, ie), te = Zo(t,
|
|
3529
|
+
} = H, Y = Qo(t, ie), te = Zo(t, I), {
|
|
3530
3530
|
sidebarWidth: ae
|
|
3531
3531
|
} = te, le = Ko(t, P, f, ie, H, y, 0, ae), {
|
|
3532
3532
|
onWheel: Me,
|
|
@@ -3551,13 +3551,13 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3551
3551
|
"fv-grid-wrap-content": v.value
|
|
3552
3552
|
})), {
|
|
3553
3553
|
renderDataArea: be
|
|
3554
|
-
} = ar(t, e, d, u, p, Y, q, P, se, b, he,
|
|
3554
|
+
} = ar(t, e, d, u, p, Y, q, P, se, b, he, I, w, le, H, Q, f), {
|
|
3555
3555
|
renderGridHeader: Ce,
|
|
3556
3556
|
renderGridColumnResizeOverlay: qe,
|
|
3557
3557
|
shouldShowHeader: Ft
|
|
3558
|
-
} = ii(t, e, c, u, p, q, P, at, it, F, Ue, Qe, de,
|
|
3558
|
+
} = ii(t, e, c, u, p, q, P, at, it, F, Ue, Qe, de, I, te, K, le, $e, f), {
|
|
3559
3559
|
renderDataGridSidebar: Dt
|
|
3560
|
-
} = ai(t, he,
|
|
3560
|
+
} = ai(t, he, I, te, le), {
|
|
3561
3561
|
renderDisableMask: Rt
|
|
3562
3562
|
} = ri(), {
|
|
3563
3563
|
renderHorizontalScrollbar: Ot
|
|
@@ -3574,7 +3574,7 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3574
3574
|
De(() => {
|
|
3575
3575
|
c.value && (i.value = Math.max(Math.ceil(c.value.clientHeight / o), i.value), f.value = W(0, y.value + 0 - 1), Po(c.value, jt), ze(), ve(() => {
|
|
3576
3576
|
c.value && (ge.value = c.value.clientWidth), d.value && ($e.value = d.value.clientWidth, je.value = d.value.clientHeight);
|
|
3577
|
-
})),
|
|
3577
|
+
})), T.value && x();
|
|
3578
3578
|
}), Je(() => {
|
|
3579
3579
|
}), me($e, () => {
|
|
3580
3580
|
c.value && ze();
|
|
@@ -3586,7 +3586,7 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3586
3586
|
P.expandTo(J), P.reOrderVisibleIndex(), _e();
|
|
3587
3587
|
}
|
|
3588
3588
|
function pt() {
|
|
3589
|
-
const J =
|
|
3589
|
+
const J = I.getSelectionRow();
|
|
3590
3590
|
return J ? J.dataIndex - 1 : -1;
|
|
3591
3591
|
}
|
|
3592
3592
|
function Nt() {
|
|
@@ -3602,8 +3602,8 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3602
3602
|
P.insertNewChildDataItems(J, Be);
|
|
3603
3603
|
}
|
|
3604
3604
|
function Ht() {
|
|
3605
|
-
const J = pt(), ne =
|
|
3606
|
-
P.removeHierarchyDataItem(J), f.value = W(0, y.value + 0 - 1), ne &&
|
|
3605
|
+
const J = pt(), ne = w.getNextSelectableHierarchyItemId(J);
|
|
3606
|
+
P.removeHierarchyDataItem(J), f.value = W(0, y.value + 0 - 1), ne && w.selectItemById(ne);
|
|
3607
3607
|
}
|
|
3608
3608
|
function wt(J) {
|
|
3609
3609
|
se.onEditingRow(J);
|
|
@@ -3624,7 +3624,7 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3624
3624
|
J && (P.load(J), P.reOrderVisibleIndex(), ne != null && ne.keepScrollPosition ? le.scrollTo(le.offsetY.value) : _e());
|
|
3625
3625
|
}
|
|
3626
3626
|
function ee(J) {
|
|
3627
|
-
|
|
3627
|
+
w.selectItemById(J);
|
|
3628
3628
|
}
|
|
3629
3629
|
function fe(J) {
|
|
3630
3630
|
const ne = f.value.find((Te) => Te.raw[r.idField.value] === J);
|
|
@@ -3634,25 +3634,25 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3634
3634
|
he.activeRowById(J);
|
|
3635
3635
|
}
|
|
3636
3636
|
function Ae(J) {
|
|
3637
|
-
|
|
3637
|
+
w.selectItemByIds(J);
|
|
3638
3638
|
}
|
|
3639
3639
|
function Pe() {
|
|
3640
|
-
return
|
|
3640
|
+
return I.getSelectedItems();
|
|
3641
3641
|
}
|
|
3642
3642
|
function ke() {
|
|
3643
|
-
|
|
3643
|
+
I.clearSelection();
|
|
3644
3644
|
}
|
|
3645
3645
|
const Le = L(() => !f.value || !f.value.length), {
|
|
3646
3646
|
renderEmpty: we
|
|
3647
3647
|
} = ci(t, e);
|
|
3648
3648
|
function Ve() {
|
|
3649
|
-
return
|
|
3649
|
+
return I.getSelectionRow();
|
|
3650
3650
|
}
|
|
3651
3651
|
function Ee(J) {
|
|
3652
|
-
|
|
3652
|
+
w.unSelectItemByIds(J);
|
|
3653
3653
|
}
|
|
3654
3654
|
function Ie() {
|
|
3655
|
-
return
|
|
3655
|
+
return I.currentSelectedDataId.value;
|
|
3656
3656
|
}
|
|
3657
3657
|
function mt(J, ne, Te) {
|
|
3658
3658
|
const Be = j.value.find((Fe) => Fe[l.value] === J);
|
|
@@ -3706,7 +3706,7 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3706
3706
|
Te && he.changeRow(Te);
|
|
3707
3707
|
}
|
|
3708
3708
|
function ro() {
|
|
3709
|
-
|
|
3709
|
+
I.keepSelectingOnPaging.value || ke(), P.updateVisibleDataSummary(f.value);
|
|
3710
3710
|
}
|
|
3711
3711
|
e.expose({
|
|
3712
3712
|
activeRowById: pe,
|
|
@@ -3744,7 +3744,7 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3744
3744
|
...O.value,
|
|
3745
3745
|
borderRadius: "5px"
|
|
3746
3746
|
}));
|
|
3747
|
-
ui(t, e, P, le, M,
|
|
3747
|
+
ui(t, e, P, le, M, I);
|
|
3748
3748
|
const co = L(() => ({
|
|
3749
3749
|
"d-flex": !0,
|
|
3750
3750
|
"justify-content-between": $.value && k.value,
|
|
@@ -3771,7 +3771,7 @@ const rr = /* @__PURE__ */ Re({
|
|
|
3771
3771
|
class: co.value
|
|
3772
3772
|
}, [k.value && h("div", {
|
|
3773
3773
|
class: uo.value
|
|
3774
|
-
}, [h("div", null, ["已选:" +
|
|
3774
|
+
}, [h("div", null, ["已选:" + S.value.length, yn(" 条")])])]), qe(), g.value && Rt()]);
|
|
3775
3775
|
}
|
|
3776
3776
|
});
|
|
3777
3777
|
So(rr);
|
|
@@ -5749,11 +5749,11 @@ function $s(t, e) {
|
|
|
5749
5749
|
c.value && ((c.value.n || c.value.s) && ((R = l.value) != null && R.height) && (K.style.height = l.value.height + "px"), (c.value.w || c.value.e) && ((A = l.value) != null && A.width) && (K.style.width = l.value.width + "px"), s.value && ((z = s.value) != null && z.x && (K.style.left = s.value.x + "px"), (q = s.value) != null && q.y && (K.style.top = s.value.y + "px")));
|
|
5750
5750
|
}
|
|
5751
5751
|
}
|
|
5752
|
-
function
|
|
5752
|
+
function T() {
|
|
5753
5753
|
const R = t.minHeight ? t.minHeight : 1, A = t.minWidth ? t.minWidth : 1;
|
|
5754
5754
|
l.value && s.value && c.value && a.value && (l.value.height < R && (l.value.height = R, c.value.n && r.value && (s.value.y = r.value.y + (a.value.height - R))), l.value.width < A && (l.value.width = A, c.value.w && r.value && (s.value.x = r.value.x + (a.value.width - A))), t.maxHeight && l.value.height > t.maxHeight && (l.value.height = t.maxHeight, r.value && c.value.n && (s.value.y = r.value.y + (a.value.height - t.maxHeight))), t.maxWidth && l.value.width > t.maxWidth && (l.value.width = t.maxWidth, c.value.w && r.value && (s.value.x = r.value.x + (a.value.width - t.maxWidth))));
|
|
5755
5755
|
}
|
|
5756
|
-
function
|
|
5756
|
+
function x() {
|
|
5757
5757
|
if (o.value) {
|
|
5758
5758
|
const R = u.value;
|
|
5759
5759
|
if (s.value && l.value && c.value && a.value) {
|
|
@@ -5767,7 +5767,7 @@ function $s(t, e) {
|
|
|
5767
5767
|
return;
|
|
5768
5768
|
R.subtract(i.value);
|
|
5769
5769
|
const A = R.x, z = R.y;
|
|
5770
|
-
c.value.n ? (s.value.y = r.value.y + z, l.value.height = a.value.height - z) : c.value.s && (l.value.height = a.value.height + z), c.value.e ? l.value.width = a.value.width + A : c.value.w && (l.value.width = a.value.width - A, s.value.x = r.value.x + A),
|
|
5770
|
+
c.value.n ? (s.value.y = r.value.y + z, l.value.height = a.value.height - z) : c.value.s && (l.value.height = a.value.height + z), c.value.e ? l.value.width = a.value.width + A : c.value.w && (l.value.width = a.value.width - A, s.value.x = r.value.x + A), x(), T(), D();
|
|
5771
5771
|
}
|
|
5772
5772
|
function j(R) {
|
|
5773
5773
|
if (!d.value)
|
|
@@ -5775,7 +5775,7 @@ function $s(t, e) {
|
|
|
5775
5775
|
const A = ye.fromEvent(R);
|
|
5776
5776
|
A && P(A);
|
|
5777
5777
|
}
|
|
5778
|
-
function
|
|
5778
|
+
function I() {
|
|
5779
5779
|
if (n.value) {
|
|
5780
5780
|
const {
|
|
5781
5781
|
width: R,
|
|
@@ -5798,56 +5798,56 @@ function $s(t, e) {
|
|
|
5798
5798
|
}
|
|
5799
5799
|
function k(R) {
|
|
5800
5800
|
if (n.value) {
|
|
5801
|
-
const A =
|
|
5801
|
+
const A = I();
|
|
5802
5802
|
p.value = A;
|
|
5803
5803
|
}
|
|
5804
5804
|
i.value = void 0, a.value = null, r.value = null, l.value = null, s.value = null, c.value = null, d.value = null, document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", k);
|
|
5805
5805
|
}
|
|
5806
|
-
function
|
|
5806
|
+
function S() {
|
|
5807
5807
|
document.addEventListener("mousemove", j), document.addEventListener("mouseup", k);
|
|
5808
5808
|
}
|
|
5809
|
-
function
|
|
5810
|
-
R instanceof MouseEvent && R.button === 2 || v.value && (document.body.click(), R.stopPropagation(), R.preventDefault(), i.value = ye.fromEvent(R), d.value = R.target, b(R),
|
|
5809
|
+
function w(R) {
|
|
5810
|
+
R instanceof MouseEvent && R.button === 2 || v.value && (document.body.click(), R.stopPropagation(), R.preventDefault(), i.value = ye.fromEvent(R), d.value = R.target, b(R), S());
|
|
5811
5811
|
}
|
|
5812
5812
|
function g(R) {
|
|
5813
5813
|
return n.value = R, f.value && h(ct, null, [h("div", {
|
|
5814
5814
|
class: "fv-resizable-handle fv-resizable-n",
|
|
5815
5815
|
type: "n",
|
|
5816
|
-
onMousedown: (A) =>
|
|
5816
|
+
onMousedown: (A) => w(A)
|
|
5817
5817
|
}, null), h("div", {
|
|
5818
5818
|
class: "fv-resizable-handle fv-resizable-e",
|
|
5819
5819
|
type: "e",
|
|
5820
|
-
onMousedown: (A) =>
|
|
5820
|
+
onMousedown: (A) => w(A)
|
|
5821
5821
|
}, null), h("div", {
|
|
5822
5822
|
class: "fv-resizable-handle fv-resizable-s",
|
|
5823
5823
|
type: "s",
|
|
5824
|
-
onMousedown: (A) =>
|
|
5824
|
+
onMousedown: (A) => w(A)
|
|
5825
5825
|
}, null), h("div", {
|
|
5826
5826
|
class: "fv-resizable-handle fv-resizable-w",
|
|
5827
5827
|
type: "w",
|
|
5828
|
-
onMousedown: (A) =>
|
|
5828
|
+
onMousedown: (A) => w(A)
|
|
5829
5829
|
}, null), h("div", {
|
|
5830
5830
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
5831
5831
|
type: "ne",
|
|
5832
|
-
onMousedown: (A) =>
|
|
5832
|
+
onMousedown: (A) => w(A)
|
|
5833
5833
|
}, null), h("div", {
|
|
5834
5834
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
5835
5835
|
type: "se",
|
|
5836
|
-
onMousedown: (A) =>
|
|
5836
|
+
onMousedown: (A) => w(A)
|
|
5837
5837
|
}, null), h("div", {
|
|
5838
5838
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
5839
5839
|
type: "sw",
|
|
5840
|
-
onMousedown: (A) =>
|
|
5840
|
+
onMousedown: (A) => w(A)
|
|
5841
5841
|
}, null), h("div", {
|
|
5842
5842
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
5843
5843
|
type: "nw",
|
|
5844
|
-
onMousedown: (A) =>
|
|
5844
|
+
onMousedown: (A) => w(A)
|
|
5845
5845
|
}, null)]);
|
|
5846
5846
|
}
|
|
5847
5847
|
function y(R = !0) {
|
|
5848
5848
|
document.body.click();
|
|
5849
5849
|
const A = o.value || document.body, z = tt.getCurrent(A), q = n.value;
|
|
5850
|
-
R && q && (m.value =
|
|
5850
|
+
R && q && (m.value = I(), m.value.transform = q.style.transform), z && q && (l.value = z, l.value.height -= 14, l.value.width -= 14, q.style.height = l.value.height + "px", q.style.width = l.value.width + "px", q.style.left = "7px", q.style.top = "7px", q.style.transform = "", p.value = {
|
|
5851
5851
|
size: l.value,
|
|
5852
5852
|
position: {
|
|
5853
5853
|
x: 0,
|
|
@@ -5911,33 +5911,33 @@ function js(t, e, n) {
|
|
|
5911
5911
|
me(() => n.value, (j) => {
|
|
5912
5912
|
r.value.style.cursor = j ? "move" : "default";
|
|
5913
5913
|
});
|
|
5914
|
-
function f(j,
|
|
5915
|
-
if (
|
|
5914
|
+
function f(j, I) {
|
|
5915
|
+
if (I.tagName === "BUTTON")
|
|
5916
5916
|
return !1;
|
|
5917
|
-
if (
|
|
5917
|
+
if (I === j)
|
|
5918
5918
|
return !0;
|
|
5919
|
-
for (const k in
|
|
5920
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5919
|
+
for (const k in I.children)
|
|
5920
|
+
if (Object.prototype.hasOwnProperty.call(I.children, k) && f(j, I.children[k]))
|
|
5921
5921
|
return !0;
|
|
5922
5922
|
return !1;
|
|
5923
5923
|
}
|
|
5924
5924
|
function m() {
|
|
5925
|
-
var
|
|
5926
|
-
let j = u.value.x + d.value.x,
|
|
5927
|
-
a.value === "x" ? (j = ((
|
|
5928
|
-
const k = `translate3d(${Math.round(j)}px, ${Math.round(
|
|
5929
|
-
o.value && (o.value.style.transform = k), p.value.x = j, p.value.y =
|
|
5925
|
+
var S, w;
|
|
5926
|
+
let j = u.value.x + d.value.x, I = u.value.y + d.value.y;
|
|
5927
|
+
a.value === "x" ? (j = ((S = c.value) == null ? void 0 : S.x) || 0, u.value.x = 0) : a.value === "y" && (I = ((w = c.value) == null ? void 0 : w.y) || 0, u.value.y = 0);
|
|
5928
|
+
const k = `translate3d(${Math.round(j)}px, ${Math.round(I)}px, 0px)`;
|
|
5929
|
+
o.value && (o.value.style.transform = k), p.value.x = j, p.value.y = I;
|
|
5930
5930
|
}
|
|
5931
5931
|
function v() {
|
|
5932
5932
|
if (!l.value || !o.value)
|
|
5933
5933
|
return null;
|
|
5934
|
-
const j = l.value.getBoundingClientRect(),
|
|
5935
|
-
top: j.top <
|
|
5936
|
-
right: j.right >
|
|
5937
|
-
bottom: j.bottom >
|
|
5938
|
-
left: j.left <
|
|
5934
|
+
const j = l.value.getBoundingClientRect(), I = o.value.getBoundingClientRect(), k = {
|
|
5935
|
+
top: j.top < I.top,
|
|
5936
|
+
right: j.right > I.right,
|
|
5937
|
+
bottom: j.bottom > I.bottom,
|
|
5938
|
+
left: j.left < I.left
|
|
5939
5939
|
};
|
|
5940
|
-
return k.top || (u.value.y -=
|
|
5940
|
+
return k.top || (u.value.y -= I.top - j.top), k.bottom || (u.value.y -= I.bottom - j.bottom), k.right || (u.value.x -= I.right - j.right), k.left || (u.value.x -= I.left - j.left), m(), k;
|
|
5941
5941
|
}
|
|
5942
5942
|
function C(j) {
|
|
5943
5943
|
j && (c.value && j.subtract(c.value), u.value.set(j), m(), v());
|
|
@@ -5952,7 +5952,7 @@ function js(t, e, n) {
|
|
|
5952
5952
|
function D() {
|
|
5953
5953
|
!s.value && r.value && (s.value = !0, r.value.classList.add("ng-dragging"), document.addEventListener("mousemove", F), document.addEventListener("mouseup", b));
|
|
5954
5954
|
}
|
|
5955
|
-
function
|
|
5955
|
+
function T() {
|
|
5956
5956
|
if (o.value) {
|
|
5957
5957
|
const j = ye.getTransformInfo(o.value);
|
|
5958
5958
|
d.value.set(j);
|
|
@@ -5960,30 +5960,30 @@ function js(t, e, n) {
|
|
|
5960
5960
|
}
|
|
5961
5961
|
d.value.reset();
|
|
5962
5962
|
}
|
|
5963
|
-
function
|
|
5963
|
+
function x(j) {
|
|
5964
5964
|
if (!n.value || j instanceof MouseEvent && j.button === 2)
|
|
5965
5965
|
return;
|
|
5966
|
-
const
|
|
5967
|
-
r.value !== void 0 &&
|
|
5966
|
+
const I = j.target || j.srcElement;
|
|
5967
|
+
r.value !== void 0 && I && !f(I, r.value) || i.value !== !1 && (document.body.click(), j.stopPropagation(), j.preventDefault(), c.value = ye.fromEvent(j, o.value), T(), D());
|
|
5968
5968
|
}
|
|
5969
|
-
function P(j,
|
|
5970
|
-
if (i.value &&
|
|
5969
|
+
function P(j, I, k) {
|
|
5970
|
+
if (i.value && I) {
|
|
5971
5971
|
if (j)
|
|
5972
5972
|
r.value = j;
|
|
5973
5973
|
else if (t.dragHandle) {
|
|
5974
5974
|
if (t.dragHandle instanceof HTMLElement)
|
|
5975
5975
|
r.value = t.dragHandle;
|
|
5976
5976
|
else if (typeof t.dragHandle == "string") {
|
|
5977
|
-
const
|
|
5978
|
-
|
|
5977
|
+
const S = I.querySelector(t.dragHandle);
|
|
5978
|
+
S && (r.value = S);
|
|
5979
5979
|
}
|
|
5980
5980
|
}
|
|
5981
|
-
o.value =
|
|
5981
|
+
o.value = I, l.value = k, r.value ? (r.value.classList.add("ng-draggable"), r.value.addEventListener("mousedown", x)) : i.value = !1;
|
|
5982
5982
|
}
|
|
5983
5983
|
}
|
|
5984
5984
|
return {
|
|
5985
5985
|
registerDraggle: P,
|
|
5986
|
-
resetTranslate:
|
|
5986
|
+
resetTranslate: T
|
|
5987
5987
|
};
|
|
5988
5988
|
}
|
|
5989
5989
|
function Yn(t, e) {
|
|
@@ -6020,10 +6020,10 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6020
6020
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
6021
6021
|
setup(t, e) {
|
|
6022
6022
|
const n = B(t.width || 300), o = B(t.height || 200), i = B(t.modelValue), a = B(""), r = B(t.class), l = B(t.fitContent), s = B(t.showHeader), c = B(""), d = B(t.showCloseButton), u = B(t.showMaxButton), p = B(!1), f = B(t.dialogType), m = B(t.src), v = B(""), C = B(t.showButtons), F = B(t.title), b = B(t.containment || null), D = B(), {
|
|
6023
|
-
t:
|
|
6023
|
+
t: T
|
|
6024
6024
|
} = yt();
|
|
6025
|
-
F.value === "错误提示" && (F.value =
|
|
6026
|
-
const
|
|
6025
|
+
F.value === "错误提示" && (F.value = T("messageBox.errorTitle"));
|
|
6026
|
+
const x = B(!1);
|
|
6027
6027
|
function P(U, re) {
|
|
6028
6028
|
const be = re ? "accept" : "cancel";
|
|
6029
6029
|
Promise.resolve().then(() => {
|
|
@@ -6037,19 +6037,19 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6037
6037
|
}
|
|
6038
6038
|
const j = [{
|
|
6039
6039
|
name: "cancel",
|
|
6040
|
-
text:
|
|
6040
|
+
text: T("messageBox.cancel") || "取消",
|
|
6041
6041
|
class: "btn btn-secondary",
|
|
6042
6042
|
handle: (U) => {
|
|
6043
6043
|
P(U, !1);
|
|
6044
6044
|
}
|
|
6045
6045
|
}, {
|
|
6046
6046
|
name: "accept",
|
|
6047
|
-
text:
|
|
6047
|
+
text: T("messageBox.ok") || "确定",
|
|
6048
6048
|
class: "btn btn-primary",
|
|
6049
6049
|
handle: (U) => {
|
|
6050
6050
|
P(U, !0);
|
|
6051
6051
|
}
|
|
6052
|
-
}],
|
|
6052
|
+
}], I = B(t.buttons && t.buttons.length ? t.buttons : j), k = L(() => !!c.value), S = L(() => !!C.value && !!I.value), w = B(), g = B(), y = B(!1), {
|
|
6053
6053
|
renderResizeBar: M,
|
|
6054
6054
|
maximize: $,
|
|
6055
6055
|
restore: O,
|
|
@@ -6072,8 +6072,8 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6072
6072
|
U !== re && (F.value = U);
|
|
6073
6073
|
}), me(() => t.modelValue, (U, re) => {
|
|
6074
6074
|
U !== re && (i.value = U, i.value && t.draggable && ve(() => {
|
|
6075
|
-
g.value && !b.value && (b.value = g.value.parentElement, V.value = b.value, K(
|
|
6076
|
-
}), U || (b.value && (b.value = null), ie())), i.value ?
|
|
6075
|
+
g.value && !b.value && (b.value = g.value.parentElement, V.value = b.value, K(w.value, g.value, V.value), q());
|
|
6076
|
+
}), U || (b.value && (b.value = null), ie())), i.value ? x.value = oe() : (y.value = !1, A.value = t.draggable);
|
|
6077
6077
|
}), me(() => t.showHeader, (U, re) => {
|
|
6078
6078
|
U !== re && (s.value = U);
|
|
6079
6079
|
}), me(() => t.showButtons, (U, re) => {
|
|
@@ -6116,7 +6116,7 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6116
6116
|
display: "block",
|
|
6117
6117
|
zIndex: Q()
|
|
6118
6118
|
};
|
|
6119
|
-
return t.mask || (U.pointerEvents = "none", U.backgroundColor = "transparent"),
|
|
6119
|
+
return t.mask || (U.pointerEvents = "none", U.backgroundColor = "transparent"), x.value && (U.backgroundColor = "transparent"), U;
|
|
6120
6120
|
}), E = L(() => ({
|
|
6121
6121
|
"modal-content": !0,
|
|
6122
6122
|
"modal-content-has-header": s.value
|
|
@@ -6156,13 +6156,13 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6156
6156
|
U.handle && await U.handle(re, U) && e.emit("closed", re);
|
|
6157
6157
|
}
|
|
6158
6158
|
function ge(U) {
|
|
6159
|
-
U.width && (n.value = U.width), U.height && (o.value = U.height), U.buttons && (
|
|
6159
|
+
U.width && (n.value = U.width), U.height && (o.value = U.height), U.buttons && (I.value = U.buttons), U.title && (F.value = U.title);
|
|
6160
6160
|
}
|
|
6161
6161
|
let je = null, $e = null;
|
|
6162
6162
|
go(() => {
|
|
6163
|
-
|
|
6163
|
+
x.value = oe();
|
|
6164
6164
|
}), De(() => {
|
|
6165
|
-
g.value && !b.value && (b.value = g.value.parentElement, V.value = b.value, K(
|
|
6165
|
+
g.value && !b.value && (b.value = g.value.parentElement, V.value = b.value, K(w.value, g.value, V.value)), Z.value && document.body.classList.add("modal-open"), je = As(t, e), $e = Ns(t, e);
|
|
6166
6166
|
}), Je(() => {
|
|
6167
6167
|
z && z(), je && je.remove(), $e && $e.remove();
|
|
6168
6168
|
}), e.expose({
|
|
@@ -6195,7 +6195,7 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6195
6195
|
return h("div", {
|
|
6196
6196
|
class: "modal-footer",
|
|
6197
6197
|
style: ae.value
|
|
6198
|
-
}, [
|
|
6198
|
+
}, [I.value && I.value.map((U) => {
|
|
6199
6199
|
const re = B(U.disabled);
|
|
6200
6200
|
return h("button", {
|
|
6201
6201
|
name: U.name,
|
|
@@ -6212,7 +6212,7 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6212
6212
|
}
|
|
6213
6213
|
function Qe() {
|
|
6214
6214
|
return h("div", {
|
|
6215
|
-
ref:
|
|
6215
|
+
ref: w,
|
|
6216
6216
|
class: "modal-header",
|
|
6217
6217
|
style: H.value
|
|
6218
6218
|
}, [e.slots.headerTemplate ? e.slots.headerTemplate() : h("div", {
|
|
@@ -6227,7 +6227,7 @@ const ot = /* @__PURE__ */ Re({
|
|
|
6227
6227
|
}, [_e()])]);
|
|
6228
6228
|
}
|
|
6229
6229
|
function ze() {
|
|
6230
|
-
return e.slots.footerTemplate ? e.slots.footerTemplate() :
|
|
6230
|
+
return e.slots.footerTemplate ? e.slots.footerTemplate() : S.value && ft();
|
|
6231
6231
|
}
|
|
6232
6232
|
function Ue(U) {
|
|
6233
6233
|
if (U.stopPropagation(), t.allowClickMaskToClose) {
|
|
@@ -6373,27 +6373,27 @@ class Jn {
|
|
|
6373
6373
|
showHeader: !0
|
|
6374
6374
|
}, e)), i = B(!0), a = o.value.acceptCallback || (() => {
|
|
6375
6375
|
}), r = o.value.rejectCallback || (() => {
|
|
6376
|
-
}), l = o.value.closedCallback || ((
|
|
6377
|
-
}), s = o.value.resizeHandle || ((
|
|
6378
|
-
}), c = e.stopMoveHandle || ((
|
|
6376
|
+
}), l = o.value.closedCallback || ((x, P) => {
|
|
6377
|
+
}), s = o.value.resizeHandle || ((x) => {
|
|
6378
|
+
}), c = e.stopMoveHandle || ((x) => {
|
|
6379
6379
|
});
|
|
6380
6380
|
let d;
|
|
6381
|
-
const u = Xn(o.value), p = (
|
|
6381
|
+
const u = Xn(o.value), p = (x) => {
|
|
6382
6382
|
var j;
|
|
6383
6383
|
i.value = !1;
|
|
6384
|
-
const P = (j =
|
|
6385
|
-
l(
|
|
6386
|
-
}, f = (
|
|
6387
|
-
p(
|
|
6384
|
+
const P = (j = x == null ? void 0 : x.target) == null ? void 0 : j.classList.contains("modal_close");
|
|
6385
|
+
l(x, this.isUseEscCloseModal.value ? "esc" : P ? "icon" : "button");
|
|
6386
|
+
}, f = (x) => {
|
|
6387
|
+
p(x), d && ve(() => {
|
|
6388
6388
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], qt(null, n), d = null, this.modalRef.value = null, this.modalRefs) {
|
|
6389
6389
|
const P = Object.keys(this.modalRefs).map((j) => Number(j));
|
|
6390
6390
|
P.length > 0 ? this.activeModalIndex.value = Math.max(...P) : this.activeModalIndex.value = 0;
|
|
6391
6391
|
}
|
|
6392
6392
|
this.isUseEscCloseModal.value = !1;
|
|
6393
6393
|
});
|
|
6394
|
-
}, m = (
|
|
6394
|
+
}, m = (x) => {
|
|
6395
6395
|
var P;
|
|
6396
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((P = this.activeModalInstance.value) == null || P.close(
|
|
6396
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((P = this.activeModalInstance.value) == null || P.close(x == null ? void 0 : x.event));
|
|
6397
6397
|
}, {
|
|
6398
6398
|
width: v,
|
|
6399
6399
|
height: C
|
|
@@ -6402,7 +6402,7 @@ class Jn {
|
|
|
6402
6402
|
const b = () => h(ot, Yt({
|
|
6403
6403
|
ref: this.modalRef,
|
|
6404
6404
|
modelValue: i.value,
|
|
6405
|
-
"onUpdate:modelValue": (
|
|
6405
|
+
"onUpdate:modelValue": (x) => i.value = x
|
|
6406
6406
|
}, o.value, {
|
|
6407
6407
|
onAccept: a,
|
|
6408
6408
|
onCancel: r,
|
|
@@ -6413,17 +6413,17 @@ class Jn {
|
|
|
6413
6413
|
}), {
|
|
6414
6414
|
default: () => [u && u(this.app)]
|
|
6415
6415
|
});
|
|
6416
|
-
return d = ((
|
|
6417
|
-
const P = bo(b,
|
|
6416
|
+
return d = ((x) => {
|
|
6417
|
+
const P = bo(b, x);
|
|
6418
6418
|
return P.appContext = this.appContext, qt(P, n), P;
|
|
6419
6419
|
})({
|
|
6420
6420
|
...o.value
|
|
6421
6421
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
6422
6422
|
}), this.activeModalIndex.value++, this.modalRefs[this.activeModalIndex.value] = this.modalRef.value, {
|
|
6423
|
-
update: (
|
|
6423
|
+
update: (x) => {
|
|
6424
6424
|
o.value = {
|
|
6425
6425
|
...o.value,
|
|
6426
|
-
...
|
|
6426
|
+
...x
|
|
6427
6427
|
}, d && qt(Co(d, {
|
|
6428
6428
|
...o
|
|
6429
6429
|
}), n);
|
|
@@ -6576,23 +6576,23 @@ function zs(t, e, n) {
|
|
|
6576
6576
|
function d() {
|
|
6577
6577
|
return !0;
|
|
6578
6578
|
}
|
|
6579
|
-
function u(
|
|
6580
|
-
if (!
|
|
6579
|
+
function u(S) {
|
|
6580
|
+
if (!S || !S.value)
|
|
6581
6581
|
return null;
|
|
6582
|
-
const
|
|
6582
|
+
const w = B(S == null ? void 0 : S.value.parent), g = u(w);
|
|
6583
6583
|
return g || null;
|
|
6584
6584
|
}
|
|
6585
|
-
function p(
|
|
6585
|
+
function p(S = e) {
|
|
6586
6586
|
var M;
|
|
6587
|
-
const { componentInstance:
|
|
6588
|
-
if (!
|
|
6587
|
+
const { componentInstance: w, designerItemElementRef: g } = S;
|
|
6588
|
+
if (!w || !w.value)
|
|
6589
6589
|
return null;
|
|
6590
|
-
const { getCustomButtons: y } =
|
|
6591
|
-
return
|
|
6590
|
+
const { getCustomButtons: y } = w.value;
|
|
6591
|
+
return w.value.canMove || w.value.canAdd || w.value.canDelete || y && ((M = y()) != null && M.length) ? g : p(S.parent);
|
|
6592
6592
|
}
|
|
6593
6593
|
function f() {
|
|
6594
6594
|
}
|
|
6595
|
-
function m(
|
|
6595
|
+
function m(S) {
|
|
6596
6596
|
return !!n;
|
|
6597
6597
|
}
|
|
6598
6598
|
function v() {
|
|
@@ -6600,42 +6600,42 @@ function zs(t, e, n) {
|
|
|
6600
6600
|
}
|
|
6601
6601
|
function C() {
|
|
6602
6602
|
}
|
|
6603
|
-
function F(
|
|
6603
|
+
function F(S, w) {
|
|
6604
6604
|
}
|
|
6605
|
-
function b(
|
|
6606
|
-
const { componentType:
|
|
6607
|
-
let y = Cn(
|
|
6608
|
-
const M =
|
|
6609
|
-
return y && !y.id && y.type ===
|
|
6605
|
+
function b(S) {
|
|
6606
|
+
const { componentType: w } = S, g = xe("designer-host-service");
|
|
6607
|
+
let y = Cn(w, S, g);
|
|
6608
|
+
const M = w.toLowerCase().replace(/-/g, "_");
|
|
6609
|
+
return y && !y.id && y.type === w && (y.id = `${M}_${Math.random().toString().slice(2, 6)}`), y;
|
|
6610
6610
|
}
|
|
6611
|
-
function D(
|
|
6611
|
+
function D(S) {
|
|
6612
6612
|
}
|
|
6613
|
-
function
|
|
6613
|
+
function T(...S) {
|
|
6614
6614
|
return [];
|
|
6615
6615
|
}
|
|
6616
|
-
function
|
|
6616
|
+
function x() {
|
|
6617
6617
|
}
|
|
6618
|
-
function P(
|
|
6618
|
+
function P(S) {
|
|
6619
6619
|
var g;
|
|
6620
6620
|
if (!(e != null && e.schema))
|
|
6621
6621
|
return;
|
|
6622
|
-
let
|
|
6622
|
+
let w = "";
|
|
6623
6623
|
{
|
|
6624
6624
|
const { text: y, title: M, label: $, mainTitle: O, name: V, type: R } = e.schema;
|
|
6625
|
-
|
|
6625
|
+
w = y || M || $ || O || V || ((g = _[R]) == null ? void 0 : g.name);
|
|
6626
6626
|
}
|
|
6627
|
-
|
|
6628
|
-
componentTitle:
|
|
6629
|
-
parentPathName:
|
|
6627
|
+
w && (!a && S && (a = S.formSchemaUtils), a.getControlBasicInfoMap().set(e.schema.id, {
|
|
6628
|
+
componentTitle: w,
|
|
6629
|
+
parentPathName: w
|
|
6630
6630
|
}));
|
|
6631
6631
|
}
|
|
6632
|
-
function j(
|
|
6632
|
+
function j(S) {
|
|
6633
6633
|
var M;
|
|
6634
|
-
const { changeObject:
|
|
6635
|
-
["text", "title", "label", "name", "mainTitle"].includes((M =
|
|
6634
|
+
const { changeObject: w } = S, { propertyID: g, propertyValue: y } = w;
|
|
6635
|
+
["text", "title", "label", "name", "mainTitle"].includes((M = S == null ? void 0 : S.changeObject) == null ? void 0 : M.propertyID) && g && y && P();
|
|
6636
6636
|
}
|
|
6637
|
-
function
|
|
6638
|
-
j(
|
|
6637
|
+
function I(S) {
|
|
6638
|
+
j(S);
|
|
6639
6639
|
}
|
|
6640
6640
|
return i.value = {
|
|
6641
6641
|
canMove: r(),
|
|
@@ -6652,15 +6652,15 @@ function zs(t, e, n) {
|
|
|
6652
6652
|
getBelongedComponentInstance: u,
|
|
6653
6653
|
getDraggableDesignItemElement: p,
|
|
6654
6654
|
getDraggingDisplayText: v,
|
|
6655
|
-
getPropConfig:
|
|
6655
|
+
getPropConfig: T,
|
|
6656
6656
|
getDragScopeElement: C,
|
|
6657
6657
|
onAcceptMovedChildElement: F,
|
|
6658
6658
|
onChildElementMovedOut: D,
|
|
6659
6659
|
addNewChildComponentSchema: b,
|
|
6660
|
-
onRemoveComponent:
|
|
6660
|
+
onRemoveComponent: x,
|
|
6661
6661
|
triggerBelongedComponentToMoveWhenMoved: B(!1),
|
|
6662
6662
|
triggerBelongedComponentToDeleteWhenDeleted: B(!1),
|
|
6663
|
-
onPropertyChanged:
|
|
6663
|
+
onPropertyChanged: I,
|
|
6664
6664
|
getCustomButtons: f,
|
|
6665
6665
|
setComponentBasicInfoMap: P
|
|
6666
6666
|
}, i;
|
|
@@ -6697,7 +6697,7 @@ const Qn = /* @__PURE__ */ Re({
|
|
|
6697
6697
|
return A && (V[A] = z), V;
|
|
6698
6698
|
}, O), O;
|
|
6699
6699
|
});
|
|
6700
|
-
function
|
|
6700
|
+
function T(O, V) {
|
|
6701
6701
|
if (m && m.schema[r.value]) {
|
|
6702
6702
|
const R = m.schema[r.value].findIndex((A) => A.id === V.id);
|
|
6703
6703
|
if (R > -1) {
|
|
@@ -6706,7 +6706,7 @@ const Qn = /* @__PURE__ */ Re({
|
|
|
6706
6706
|
}
|
|
6707
6707
|
}
|
|
6708
6708
|
}
|
|
6709
|
-
function
|
|
6709
|
+
function x(O) {
|
|
6710
6710
|
if (f.value.addNewChildComponentSchema) {
|
|
6711
6711
|
const V = {
|
|
6712
6712
|
componentType: l.value,
|
|
@@ -6724,7 +6724,7 @@ const Qn = /* @__PURE__ */ Re({
|
|
|
6724
6724
|
title: "新增",
|
|
6725
6725
|
ref: "removeComponent",
|
|
6726
6726
|
onClick: (O) => {
|
|
6727
|
-
|
|
6727
|
+
x();
|
|
6728
6728
|
}
|
|
6729
6729
|
}, [h("i", {
|
|
6730
6730
|
class: "f-icon f-icon-plus-circle"
|
|
@@ -6736,12 +6736,12 @@ const Qn = /* @__PURE__ */ Re({
|
|
|
6736
6736
|
class: "btn component-settings-button",
|
|
6737
6737
|
title: "删除",
|
|
6738
6738
|
ref: "removeComponent",
|
|
6739
|
-
onClick: To((V) =>
|
|
6739
|
+
onClick: To((V) => T(V, O), ["stop"])
|
|
6740
6740
|
}, [h("i", {
|
|
6741
6741
|
class: "f-icon f-icon-yxs_delete"
|
|
6742
6742
|
}, null)]);
|
|
6743
6743
|
}
|
|
6744
|
-
function
|
|
6744
|
+
function I() {
|
|
6745
6745
|
return n.value && h("div", {
|
|
6746
6746
|
role: "button",
|
|
6747
6747
|
class: "btn component-settings-button",
|
|
@@ -6767,23 +6767,23 @@ const Qn = /* @__PURE__ */ Re({
|
|
|
6767
6767
|
class: "icon-text"
|
|
6768
6768
|
}, [R.text])]));
|
|
6769
6769
|
}
|
|
6770
|
-
function
|
|
6770
|
+
function S(O) {
|
|
6771
6771
|
return h("div", {
|
|
6772
6772
|
class: "component-btn-group",
|
|
6773
6773
|
"data-noattach": "true"
|
|
6774
|
-
}, [h("div", null, [P(),
|
|
6774
|
+
}, [h("div", null, [P(), I(), j(O), k()])]);
|
|
6775
6775
|
}
|
|
6776
6776
|
me(() => t.modelValue, (O) => {
|
|
6777
6777
|
c.value = O, v.schema = O;
|
|
6778
6778
|
});
|
|
6779
|
-
function
|
|
6779
|
+
function w(O) {
|
|
6780
6780
|
window.scrollContainerList || (window.scrollContainerList = /* @__PURE__ */ new Set());
|
|
6781
6781
|
const V = O.getAttribute("id");
|
|
6782
6782
|
V && window.scrollContainerList.add(V);
|
|
6783
6783
|
}
|
|
6784
6784
|
function g(O) {
|
|
6785
6785
|
const V = O.target;
|
|
6786
|
-
|
|
6786
|
+
w(V), Qa(V);
|
|
6787
6787
|
}
|
|
6788
6788
|
function y() {
|
|
6789
6789
|
var O, V;
|
|
@@ -6822,7 +6822,7 @@ const Qn = /* @__PURE__ */ Re({
|
|
|
6822
6822
|
class: b.value,
|
|
6823
6823
|
style: D.value,
|
|
6824
6824
|
onClick: $
|
|
6825
|
-
}, [
|
|
6825
|
+
}, [S(c.value), e.slots.default && e.slots.default()]);
|
|
6826
6826
|
}
|
|
6827
6827
|
});
|
|
6828
6828
|
class qs extends bt {
|
|
@@ -7069,13 +7069,13 @@ function _s(t, e) {
|
|
|
7069
7069
|
return !i && !r;
|
|
7070
7070
|
}
|
|
7071
7071
|
function u(v) {
|
|
7072
|
-
var
|
|
7072
|
+
var T;
|
|
7073
7073
|
let C = document.querySelector(".dgComponentFocused");
|
|
7074
7074
|
C || (C = t.designerItemElementRef.value.querySelector(".farris-nav-tabs .f-state-active"));
|
|
7075
7075
|
const F = (C == null ? void 0 : C.id) || (C == null ? void 0 : C.getAttribute("pageid")) || "";
|
|
7076
7076
|
if (F === `${n.id}-design-item`)
|
|
7077
7077
|
return new Ws(v, e).getPropertyConfig(n);
|
|
7078
|
-
const b = new qs(v, e), D = (
|
|
7078
|
+
const b = new qs(v, e), D = (T = n.contents) == null ? void 0 : T.find((x) => F === `${x.id}-design-item`);
|
|
7079
7079
|
return b.getPropertyConfig(D || n);
|
|
7080
7080
|
}
|
|
7081
7081
|
function p() {
|
|
@@ -7100,8 +7100,8 @@ function _s(t, e) {
|
|
|
7100
7100
|
});
|
|
7101
7101
|
const b = t.designerItemElementRef.value.querySelector(".farris-tabs-content");
|
|
7102
7102
|
(v = t.schema.contents) == null || v.forEach((D) => {
|
|
7103
|
-
const
|
|
7104
|
-
|
|
7103
|
+
const T = b == null ? void 0 : b.querySelector(`#${D.id}-design-item`);
|
|
7104
|
+
T && T.componentInstance && T.componentInstance.value.setComponentBasicInfoMap();
|
|
7105
7105
|
});
|
|
7106
7106
|
}
|
|
7107
7107
|
}
|
|
@@ -7153,11 +7153,11 @@ function Us(t, e, n, o, i, a) {
|
|
|
7153
7153
|
let H = -1;
|
|
7154
7154
|
!l.value && (H = E.value.findIndex((W) => l.value === W.props.id), H > -1) || (C(E, !1), b(l.value));
|
|
7155
7155
|
}
|
|
7156
|
-
function
|
|
7156
|
+
function T(E) {
|
|
7157
7157
|
let H = !1;
|
|
7158
7158
|
H = !r.value.find((Y) => Y.props.id === E), H ? (l.value = "", D(r)) : (l.value = E, b(l.value));
|
|
7159
7159
|
}
|
|
7160
|
-
function
|
|
7160
|
+
function x(E, H) {
|
|
7161
7161
|
E.classList.contains(H) || E.classList.add(H);
|
|
7162
7162
|
}
|
|
7163
7163
|
function P(E, H) {
|
|
@@ -7165,12 +7165,12 @@ function Us(t, e, n, o, i, a) {
|
|
|
7165
7165
|
}
|
|
7166
7166
|
function j(E) {
|
|
7167
7167
|
const { parentElement: H } = E;
|
|
7168
|
-
H && (E.scrollWidth > H.offsetWidth ?
|
|
7168
|
+
H && (E.scrollWidth > H.offsetWidth ? x(E, "farris-title-text-custom") : P(E, "farris-title-text-custom"));
|
|
7169
7169
|
}
|
|
7170
7170
|
me(() => t.activeId, (E, H) => {
|
|
7171
|
-
E !== H &&
|
|
7171
|
+
E !== H && T(E);
|
|
7172
7172
|
});
|
|
7173
|
-
function
|
|
7173
|
+
function I(E) {
|
|
7174
7174
|
var W;
|
|
7175
7175
|
if (t.autoTitleWidth)
|
|
7176
7176
|
return;
|
|
@@ -7180,13 +7180,13 @@ function Us(t, e, n, o, i, a) {
|
|
|
7180
7180
|
const k = (E) => {
|
|
7181
7181
|
E.preventDefault(), E.stopPropagation();
|
|
7182
7182
|
};
|
|
7183
|
-
function
|
|
7183
|
+
function S(E) {
|
|
7184
7184
|
r.value = r.value.filter((H) => H.props.id !== E), l.value === E && (l.value = "", C(r));
|
|
7185
7185
|
}
|
|
7186
|
-
function
|
|
7186
|
+
function w(E, H, W = !1) {
|
|
7187
7187
|
const Y = r.value.findIndex((te) => te.props.id === H);
|
|
7188
|
-
|
|
7189
|
-
p.value++,
|
|
7188
|
+
S(H), k(E), ve(() => {
|
|
7189
|
+
p.value++, I(n), W && (s.value = !0), e.emit("tabRemove", {
|
|
7190
7190
|
removeIndex: Y,
|
|
7191
7191
|
removeId: H,
|
|
7192
7192
|
activeId: l.value
|
|
@@ -7208,7 +7208,7 @@ function Us(t, e, n, o, i, a) {
|
|
|
7208
7208
|
r.value.findIndex((W) => W.props.id === E.props.id) !== -1 && (r.value.forEach((W) => {
|
|
7209
7209
|
W.props.id === E.props.id && (W = E);
|
|
7210
7210
|
}), E.props.id === l.value && f.value, ve(() => {
|
|
7211
|
-
p.value++,
|
|
7211
|
+
p.value++, I(n);
|
|
7212
7212
|
}));
|
|
7213
7213
|
}
|
|
7214
7214
|
function O(E) {
|
|
@@ -7239,7 +7239,7 @@ function Us(t, e, n, o, i, a) {
|
|
|
7239
7239
|
var te, ae;
|
|
7240
7240
|
O(E);
|
|
7241
7241
|
const W = o.schema.contents, Y = W == null ? void 0 : W.findIndex((le) => le.id === H);
|
|
7242
|
-
!W || Y === -1 || Y === void 0 || (te = a == null ? void 0 : a.designerContext) != null && te.checkCanDeleteControl && !a.designerContext.checkCanDeleteControl(W[Y]) || (R(H), V(H), W == null || W.splice(Y, 1),
|
|
7242
|
+
!W || Y === -1 || Y === void 0 || (te = a == null ? void 0 : a.designerContext) != null && te.checkCanDeleteControl && !a.designerContext.checkCanDeleteControl(W[Y]) || (R(H), V(H), W == null || W.splice(Y, 1), S(H), F(), (ae = o == null ? void 0 : o.setupContext) == null || ae.emit("selectionChange"), Xe.value++);
|
|
7243
7243
|
}
|
|
7244
7244
|
function z() {
|
|
7245
7245
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
@@ -7315,8 +7315,8 @@ function Us(t, e, n, o, i, a) {
|
|
|
7315
7315
|
return {
|
|
7316
7316
|
activeId: l,
|
|
7317
7317
|
addTab: M,
|
|
7318
|
-
changeTitleStyle:
|
|
7319
|
-
removeTab:
|
|
7318
|
+
changeTitleStyle: I,
|
|
7319
|
+
removeTab: w,
|
|
7320
7320
|
selectTab: y,
|
|
7321
7321
|
tabPages: r,
|
|
7322
7322
|
updateTab: $,
|
|
@@ -7329,7 +7329,7 @@ function Us(t, e, n, o, i, a) {
|
|
|
7329
7329
|
listenTabNavElementScroll: Z,
|
|
7330
7330
|
setHorizontalScrollbarPosition: de,
|
|
7331
7331
|
needUpdateNavigationLayout: p,
|
|
7332
|
-
checkActiveIdAndSelect:
|
|
7332
|
+
checkActiveIdAndSelect: T,
|
|
7333
7333
|
toggleShowTab: g,
|
|
7334
7334
|
hasInHeadClass: f,
|
|
7335
7335
|
emitSelectionChange: K,
|
|
@@ -7511,36 +7511,36 @@ function Js(t, e, n) {
|
|
|
7511
7511
|
a = b;
|
|
7512
7512
|
}
|
|
7513
7513
|
function l(b, D = null) {
|
|
7514
|
-
const
|
|
7515
|
-
if (
|
|
7514
|
+
const T = e.value.find((x) => x.id === b.id);
|
|
7515
|
+
if (T.isDP)
|
|
7516
7516
|
if (document.body.click(), typeof D == "boolean")
|
|
7517
|
-
|
|
7517
|
+
T.expanded = D;
|
|
7518
7518
|
else {
|
|
7519
|
-
const
|
|
7520
|
-
|
|
7519
|
+
const x = b.expanded;
|
|
7520
|
+
T.expanded = !x;
|
|
7521
7521
|
}
|
|
7522
7522
|
}
|
|
7523
7523
|
i.toggleDropdownMenu = l;
|
|
7524
7524
|
function s(b) {
|
|
7525
|
-
var
|
|
7525
|
+
var T;
|
|
7526
7526
|
const D = {
|
|
7527
7527
|
"dropdown-menu": !0
|
|
7528
7528
|
};
|
|
7529
7529
|
if (b.class) {
|
|
7530
|
-
const
|
|
7531
|
-
|
|
7530
|
+
const x = (T = b.menuClass) == null ? void 0 : T.split(" ");
|
|
7531
|
+
x && x.length && x.reduce((P, j) => (P[j] = !0, P), D);
|
|
7532
7532
|
}
|
|
7533
7533
|
return D;
|
|
7534
7534
|
}
|
|
7535
7535
|
function c(b) {
|
|
7536
|
-
var
|
|
7536
|
+
var x;
|
|
7537
7537
|
const D = {
|
|
7538
7538
|
disabled: b.disabled === !1,
|
|
7539
7539
|
"dropdown-submenu": !0,
|
|
7540
7540
|
"f-rt-dropdown": !0,
|
|
7541
7541
|
"text-truncate": !0
|
|
7542
|
-
},
|
|
7543
|
-
return
|
|
7542
|
+
}, T = (x = b.dropdownClass) == null ? void 0 : x.split(" ");
|
|
7543
|
+
return T && T.length && T.reduce((P, j) => (P[j] = !0, P), D), D;
|
|
7544
7544
|
}
|
|
7545
7545
|
function d(b) {
|
|
7546
7546
|
const D = {
|
|
@@ -7550,51 +7550,51 @@ function Js(t, e, n) {
|
|
|
7550
7550
|
"position-relative": !0,
|
|
7551
7551
|
"farris-component": !0,
|
|
7552
7552
|
"text-truncate": !0
|
|
7553
|
-
},
|
|
7554
|
-
return
|
|
7553
|
+
}, T = (b.class || "").split(" ");
|
|
7554
|
+
return T && T.length && T.reduce((x, P) => (x[P] = !0, x), D), D;
|
|
7555
7555
|
}
|
|
7556
7556
|
let u;
|
|
7557
7557
|
const p = /* @__PURE__ */ new Map();
|
|
7558
|
-
function f(b, D,
|
|
7558
|
+
function f(b, D, T) {
|
|
7559
7559
|
b.stopPropagation();
|
|
7560
|
-
const
|
|
7560
|
+
const x = T ? T.id : "__top_item__";
|
|
7561
7561
|
if (D.children && D.children.length && (D.expanded = !D.expanded, D.expanded)) {
|
|
7562
|
-
if (p.has(
|
|
7563
|
-
const P = p.get(
|
|
7564
|
-
P && (P.expanded = !1, p.delete(
|
|
7562
|
+
if (p.has(x) && p.get(x) !== D) {
|
|
7563
|
+
const P = p.get(x);
|
|
7564
|
+
P && (P.expanded = !1, p.delete(x));
|
|
7565
7565
|
}
|
|
7566
|
-
p.set(
|
|
7566
|
+
p.set(x, D);
|
|
7567
7567
|
}
|
|
7568
7568
|
}
|
|
7569
7569
|
function m(b) {
|
|
7570
7570
|
var D;
|
|
7571
|
-
return (D = b.children) == null ? void 0 : D.map((
|
|
7572
|
-
class: c(
|
|
7573
|
-
id:
|
|
7571
|
+
return (D = b.children) == null ? void 0 : D.map((T, x) => T.children && T.children.length ? h("li", {
|
|
7572
|
+
class: c(T),
|
|
7573
|
+
id: T.id
|
|
7574
7574
|
}, [h("span", {
|
|
7575
|
-
class: d(
|
|
7576
|
-
onClick: (P) => f(P,
|
|
7577
|
-
}, [
|
|
7575
|
+
class: d(T),
|
|
7576
|
+
onClick: (P) => f(P, T, b)
|
|
7577
|
+
}, [T.text, h("i", {
|
|
7578
7578
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
7579
7579
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
7580
|
-
}, null)]), u(
|
|
7580
|
+
}, null)]), u(T, T)]) : o(T, x, !0));
|
|
7581
7581
|
}
|
|
7582
|
-
function v(b, D,
|
|
7582
|
+
function v(b, D, T, x) {
|
|
7583
7583
|
const {
|
|
7584
|
-
height:
|
|
7584
|
+
height: I,
|
|
7585
7585
|
left: k,
|
|
7586
|
-
top:
|
|
7587
|
-
} =
|
|
7588
|
-
width:
|
|
7586
|
+
top: S
|
|
7587
|
+
} = x[0], {
|
|
7588
|
+
width: w,
|
|
7589
7589
|
height: g
|
|
7590
|
-
} =
|
|
7590
|
+
} = T.getBoundingClientRect(), {
|
|
7591
7591
|
marginTop: y,
|
|
7592
7592
|
marginBottom: M
|
|
7593
|
-
} = getComputedStyle(
|
|
7593
|
+
} = getComputedStyle(T), $ = Math.ceil(parseFloat(y)) + Math.ceil(parseFloat(M)), O = S + I, V = D == null ? void 0 : D.getBoundingClientRect();
|
|
7594
7594
|
function R() {
|
|
7595
7595
|
let K = 0, oe = "left";
|
|
7596
7596
|
const ie = V ? V.right : window.innerWidth, Z = V ? V.left : 0;
|
|
7597
|
-
return K = ie - k - 10, ie - k <
|
|
7597
|
+
return K = ie - k - 10, ie - k < w && k - Z > ie - k && (oe = "right", K = k - Z - 10), {
|
|
7598
7598
|
hposition: oe,
|
|
7599
7599
|
maxWidth: Math.min(K, 300)
|
|
7600
7600
|
};
|
|
@@ -7604,7 +7604,7 @@ function Js(t, e, n) {
|
|
|
7604
7604
|
A = D.getBoundingClientRect().bottom - O - $ - 10;
|
|
7605
7605
|
else {
|
|
7606
7606
|
const K = V ? V.bottom : window.innerHeight;
|
|
7607
|
-
A = b === "page-header" ? K - O :
|
|
7607
|
+
A = b === "page-header" ? K - O : S, A = A - $ - 10, z = b === "page-header" ? "bottom" : "top";
|
|
7608
7608
|
}
|
|
7609
7609
|
const q = R();
|
|
7610
7610
|
return {
|
|
@@ -7614,38 +7614,38 @@ function Js(t, e, n) {
|
|
|
7614
7614
|
};
|
|
7615
7615
|
}
|
|
7616
7616
|
function C(b) {
|
|
7617
|
-
var j,
|
|
7618
|
-
const D = "300px",
|
|
7617
|
+
var j, I, k;
|
|
7618
|
+
const D = "300px", T = {
|
|
7619
7619
|
display: b.expanded === !0 ? "block" : "none",
|
|
7620
7620
|
position: "absolute",
|
|
7621
7621
|
maxWidth: D,
|
|
7622
7622
|
minWidth: "120px"
|
|
7623
7623
|
};
|
|
7624
7624
|
if (!(a != null && a.value))
|
|
7625
|
-
return
|
|
7626
|
-
const
|
|
7627
|
-
if (
|
|
7628
|
-
const
|
|
7629
|
-
if (!
|
|
7630
|
-
return
|
|
7631
|
-
|
|
7632
|
-
let
|
|
7625
|
+
return T;
|
|
7626
|
+
const x = a.value.querySelector("#" + b.id), P = x == null ? void 0 : x.getClientRects();
|
|
7627
|
+
if (x && P && P.length > 0) {
|
|
7628
|
+
const S = x ? x.querySelector("#" + b.id + "_menu") : null;
|
|
7629
|
+
if (!S || b.expanded !== !0)
|
|
7630
|
+
return T;
|
|
7631
|
+
S.style.visibility = "hidden", S.style.display = "block", S.style.maxHeight = "auto", S.style.maxWidth = D;
|
|
7632
|
+
let w;
|
|
7633
7633
|
switch (i.toolbarPosition) {
|
|
7634
7634
|
case "tabs":
|
|
7635
|
-
|
|
7635
|
+
w = (j = a.value) == null ? void 0 : j.closest(".farris-tabs");
|
|
7636
7636
|
break;
|
|
7637
7637
|
case "section":
|
|
7638
|
-
|
|
7638
|
+
w = (I = a.value) == null ? void 0 : I.closest(".f-section");
|
|
7639
7639
|
break;
|
|
7640
7640
|
default:
|
|
7641
|
-
|
|
7641
|
+
w = (k = a.value) == null ? void 0 : k.closest(".f-page");
|
|
7642
7642
|
}
|
|
7643
|
-
const g = v(i.toolbarPosition,
|
|
7643
|
+
const g = v(i.toolbarPosition, w, S, P), {
|
|
7644
7644
|
position: y,
|
|
7645
7645
|
maxHeight: M,
|
|
7646
7646
|
maxWidth: $
|
|
7647
7647
|
} = g;
|
|
7648
|
-
|
|
7648
|
+
S.style.visibility = "visible";
|
|
7649
7649
|
const O = {
|
|
7650
7650
|
left: y.indexOf("left") > -1 ? 0 : "unset",
|
|
7651
7651
|
right: y.indexOf("left") > -1 ? "unset" : 0,
|
|
@@ -7655,9 +7655,9 @@ function Js(t, e, n) {
|
|
|
7655
7655
|
maxHeight: M ? M + "px" : "auto",
|
|
7656
7656
|
overflowY: M ? "auto" : "unset"
|
|
7657
7657
|
};
|
|
7658
|
-
Object.assign(
|
|
7658
|
+
Object.assign(T, O);
|
|
7659
7659
|
}
|
|
7660
|
-
return
|
|
7660
|
+
return T;
|
|
7661
7661
|
}
|
|
7662
7662
|
i.changeMenuPosition = C, u = function(b, D) {
|
|
7663
7663
|
return h("ul", {
|
|
@@ -7667,8 +7667,8 @@ function Js(t, e, n) {
|
|
|
7667
7667
|
}, [m(b)]);
|
|
7668
7668
|
};
|
|
7669
7669
|
function F(b = "") {
|
|
7670
|
-
b && p.has(b) ? p.forEach((D,
|
|
7671
|
-
|
|
7670
|
+
b && p.has(b) ? p.forEach((D, T) => {
|
|
7671
|
+
T !== b && (D.expanded = !1, p.delete(T));
|
|
7672
7672
|
}) : (p.forEach((D) => {
|
|
7673
7673
|
D.expanded = !1;
|
|
7674
7674
|
}), p.clear());
|
|
@@ -8020,21 +8020,21 @@ function el(t, e, n) {
|
|
|
8020
8020
|
const O = u(), V = g === "Copy" ? d() : Object.assign({}, O);
|
|
8021
8021
|
y[M].children.splice($ + 1, 0, V), n.updateToolbarItems(), v(V.id), (R = t.setupContext) == null || R.emit("addComponent");
|
|
8022
8022
|
}
|
|
8023
|
-
function
|
|
8023
|
+
function T(g, y) {
|
|
8024
8024
|
const { index: M } = p(y);
|
|
8025
8025
|
if (M === -1)
|
|
8026
8026
|
return { index: M, schema: null };
|
|
8027
8027
|
const $ = u(), O = g === "Copy" ? d() : Object.assign({}, $);
|
|
8028
8028
|
return { index: M, schema: O };
|
|
8029
8029
|
}
|
|
8030
|
-
function
|
|
8030
|
+
function x() {
|
|
8031
8031
|
var $;
|
|
8032
|
-
const g = t.schema.id, { index: y, schema: M } =
|
|
8032
|
+
const g = t.schema.id, { index: y, schema: M } = T("Copy", g);
|
|
8033
8033
|
M && (l().splice(y + 1, 0, M), n.updateToolbarItems(), s(M.id), ($ = t.setupContext) == null || $.emit("addComponent"));
|
|
8034
8034
|
}
|
|
8035
8035
|
function P() {
|
|
8036
8036
|
var $;
|
|
8037
|
-
const g = t.schema.id, { index: y, schema: M } =
|
|
8037
|
+
const g = t.schema.id, { index: y, schema: M } = T("Append", g);
|
|
8038
8038
|
if (M && t.parent) {
|
|
8039
8039
|
const V = l()[y].children || [];
|
|
8040
8040
|
V.push(M);
|
|
@@ -8053,7 +8053,7 @@ function el(t, e, n) {
|
|
|
8053
8053
|
}
|
|
8054
8054
|
return y.getPropertyConfig(t.schema, f());
|
|
8055
8055
|
}
|
|
8056
|
-
function
|
|
8056
|
+
function I(g) {
|
|
8057
8057
|
g.stopPropagation(), g.stopImmediatePropagation();
|
|
8058
8058
|
}
|
|
8059
8059
|
function k() {
|
|
@@ -8063,18 +8063,18 @@ function el(t, e, n) {
|
|
|
8063
8063
|
text: "",
|
|
8064
8064
|
icon: "f-icon-yxs_delete",
|
|
8065
8065
|
onClick: (y) => {
|
|
8066
|
-
|
|
8066
|
+
I(y), f() ? F() : b();
|
|
8067
8067
|
}
|
|
8068
8068
|
}, {
|
|
8069
8069
|
id: "copy",
|
|
8070
8070
|
title: "复制",
|
|
8071
8071
|
icon: "f-icon-yxs_copy",
|
|
8072
8072
|
onClick: (y) => {
|
|
8073
|
-
|
|
8073
|
+
I(y);
|
|
8074
8074
|
const { activeElement: M } = document, $ = M ? M.tagName.toLowerCase() : "";
|
|
8075
8075
|
$ && $ === "input" || $ === "textarea" ? (M == null || M.blur(), ve(() => {
|
|
8076
|
-
f() ? D("Copy") :
|
|
8077
|
-
})) : f() ? D("Copy") :
|
|
8076
|
+
f() ? D("Copy") : x();
|
|
8077
|
+
})) : f() ? D("Copy") : x();
|
|
8078
8078
|
}
|
|
8079
8079
|
}];
|
|
8080
8080
|
return g.push(f() ? {
|
|
@@ -8083,7 +8083,7 @@ function el(t, e, n) {
|
|
|
8083
8083
|
text: "新增同级",
|
|
8084
8084
|
icon: "f-icon-plus-circle",
|
|
8085
8085
|
onClick: (y) => {
|
|
8086
|
-
|
|
8086
|
+
I(y), D();
|
|
8087
8087
|
}
|
|
8088
8088
|
} : {
|
|
8089
8089
|
id: "appendChildButton",
|
|
@@ -8091,15 +8091,15 @@ function el(t, e, n) {
|
|
|
8091
8091
|
text: "新增子级",
|
|
8092
8092
|
icon: "f-icon-plus-circle",
|
|
8093
8093
|
onClick: (y) => {
|
|
8094
|
-
|
|
8094
|
+
I(y), P();
|
|
8095
8095
|
}
|
|
8096
8096
|
}), g;
|
|
8097
8097
|
}
|
|
8098
|
-
function
|
|
8098
|
+
function S() {
|
|
8099
8099
|
const { schema: g } = t;
|
|
8100
8100
|
m(g);
|
|
8101
8101
|
}
|
|
8102
|
-
function
|
|
8102
|
+
function w() {
|
|
8103
8103
|
var g, y, M, $;
|
|
8104
8104
|
if (t && e) {
|
|
8105
8105
|
const { formSchemaUtils: O } = e, { schema: V } = t;
|
|
@@ -8127,8 +8127,8 @@ function el(t, e, n) {
|
|
|
8127
8127
|
checkCanAddComponent: r,
|
|
8128
8128
|
getPropsConfig: j,
|
|
8129
8129
|
getCustomButtons: k,
|
|
8130
|
-
onRemoveComponent:
|
|
8131
|
-
setComponentBasicInfoMap:
|
|
8130
|
+
onRemoveComponent: S,
|
|
8131
|
+
setComponentBasicInfoMap: w
|
|
8132
8132
|
};
|
|
8133
8133
|
}
|
|
8134
8134
|
const tl = /* @__PURE__ */ Re({
|
|
@@ -8141,16 +8141,16 @@ const tl = /* @__PURE__ */ Re({
|
|
|
8141
8141
|
i.value.componentInstance = c;
|
|
8142
8142
|
}), e.expose(c.value);
|
|
8143
8143
|
function d() {
|
|
8144
|
-
const
|
|
8144
|
+
const T = {
|
|
8145
8145
|
"f-icon": !0
|
|
8146
|
-
},
|
|
8147
|
-
return Ne(
|
|
8146
|
+
}, x = t.icon ? t.icon.trim() : "";
|
|
8147
|
+
return Ne(T, x);
|
|
8148
8148
|
}
|
|
8149
8149
|
function u() {
|
|
8150
8150
|
return !!(t.icon && t.icon.trim());
|
|
8151
8151
|
}
|
|
8152
8152
|
const p = L(() => {
|
|
8153
|
-
const
|
|
8153
|
+
const T = {
|
|
8154
8154
|
btn: !0,
|
|
8155
8155
|
"f-rt-btn": !0,
|
|
8156
8156
|
"f-btn-ml": !t.isDP && (n.value === "right" || n.value === "center"),
|
|
@@ -8161,7 +8161,7 @@ const tl = /* @__PURE__ */ Re({
|
|
|
8161
8161
|
"text-truncate": !0
|
|
8162
8162
|
// 'f-rt-toggle':props.isDP&&!props.split
|
|
8163
8163
|
};
|
|
8164
|
-
return Ne(
|
|
8164
|
+
return Ne(T, t.class);
|
|
8165
8165
|
}), f = L(() => t.split ? {
|
|
8166
8166
|
display: "flex",
|
|
8167
8167
|
"align-items": "center"
|
|
@@ -8173,16 +8173,16 @@ const tl = /* @__PURE__ */ Re({
|
|
|
8173
8173
|
"border-top-right-radius": "6px",
|
|
8174
8174
|
"border-bottom-right-radius": "6px"
|
|
8175
8175
|
}), m = L(() => {
|
|
8176
|
-
const
|
|
8176
|
+
const T = {
|
|
8177
8177
|
btn: !0,
|
|
8178
8178
|
"dropdown-toggle": !0,
|
|
8179
8179
|
"f-btn-mr": n.value === "left",
|
|
8180
8180
|
"dropdown-toggle-split": !0,
|
|
8181
8181
|
"no-drag": !0
|
|
8182
8182
|
};
|
|
8183
|
-
return Ne(
|
|
8183
|
+
return Ne(T, t.class);
|
|
8184
8184
|
}), v = L(() => {
|
|
8185
|
-
let
|
|
8185
|
+
let T = {
|
|
8186
8186
|
btn: !t.isDPItem,
|
|
8187
8187
|
// 不是下拉按钮,不是下拉项
|
|
8188
8188
|
disabled: t.disabled === !0,
|
|
@@ -8194,10 +8194,10 @@ const tl = /* @__PURE__ */ Re({
|
|
|
8194
8194
|
// 保证内部层级不被拖拽
|
|
8195
8195
|
"no-drag": !0
|
|
8196
8196
|
};
|
|
8197
|
-
return t.isDPItem || (
|
|
8197
|
+
return t.isDPItem || (T = Ne(T, t.class || "")), t.isDP && (T = Ne(T, t.dropdownClass || "")), T;
|
|
8198
8198
|
});
|
|
8199
|
-
function C(
|
|
8200
|
-
|
|
8199
|
+
function C(T, x) {
|
|
8200
|
+
x && x.stopPropagation(), e.emit(T, {
|
|
8201
8201
|
id: t.id,
|
|
8202
8202
|
isDP: t.isDP
|
|
8203
8203
|
});
|
|
@@ -8229,11 +8229,11 @@ const tl = /* @__PURE__ */ Re({
|
|
|
8229
8229
|
}, null), h("span", null, [t.text]), !t.split && h("span", {
|
|
8230
8230
|
class: "f-icon f-icon-arrow-chevron-down",
|
|
8231
8231
|
style: "margin:0 0.5rem 0 0.25rem;",
|
|
8232
|
-
onClick: (
|
|
8232
|
+
onClick: (T) => C("dropdown", T)
|
|
8233
8233
|
}, null)]), t.split && h("button", {
|
|
8234
8234
|
class: m.value,
|
|
8235
8235
|
style: "border-radius:0 6px 6px 0;",
|
|
8236
|
-
onClick: (
|
|
8236
|
+
onClick: (T) => C("dropdown", T)
|
|
8237
8237
|
}, null), l.renderDropdownMenu(t.item, t.item)])]);
|
|
8238
8238
|
}
|
|
8239
8239
|
function D() {
|
|
@@ -8380,16 +8380,16 @@ const Kn = /* @__PURE__ */ Re({
|
|
|
8380
8380
|
initDragula: v,
|
|
8381
8381
|
dragulaInstance: C
|
|
8382
8382
|
} = Xs(d), F = Zn(), b = nl(t, i, d, u), D = Js(F, n, b), {
|
|
8383
|
-
renderToolbarItemDesigner:
|
|
8383
|
+
renderToolbarItemDesigner: T
|
|
8384
8384
|
} = b, {
|
|
8385
|
-
clearAllDropDownMenu:
|
|
8385
|
+
clearAllDropDownMenu: x,
|
|
8386
8386
|
renderDropdownMenu: P,
|
|
8387
8387
|
setResponseToolbarRef: j
|
|
8388
8388
|
} = D;
|
|
8389
8389
|
gt("toolbar-item-action", u), u.renderDropdownMenu = P, j(a), m && (m.changeSelectedId = function(z) {
|
|
8390
8390
|
r.value = z;
|
|
8391
8391
|
});
|
|
8392
|
-
function
|
|
8392
|
+
function I() {
|
|
8393
8393
|
const z = i.value.querySelector(".dgComponentSelected");
|
|
8394
8394
|
z && Zt(z);
|
|
8395
8395
|
}
|
|
@@ -8406,18 +8406,18 @@ const Kn = /* @__PURE__ */ Re({
|
|
|
8406
8406
|
(((ie = oe == null ? void 0 : oe.parentElement) == null ? void 0 : ie.className) || "").indexOf("dgComponentFocused") < 0 && (oe == null || oe.click());
|
|
8407
8407
|
}, 0));
|
|
8408
8408
|
} else
|
|
8409
|
-
|
|
8409
|
+
I();
|
|
8410
8410
|
}
|
|
8411
|
-
function
|
|
8411
|
+
function S(z = "") {
|
|
8412
8412
|
n.value.filter((q) => q.id !== z && q.children && q.children.length > 0).forEach((q) => {
|
|
8413
8413
|
q.expanded = !1;
|
|
8414
|
-
}),
|
|
8414
|
+
}), x(z);
|
|
8415
8415
|
}
|
|
8416
|
-
u.clearAllDropdown =
|
|
8417
|
-
function
|
|
8416
|
+
u.clearAllDropdown = S;
|
|
8417
|
+
function w() {
|
|
8418
8418
|
m && m.updateToolbarItems && m.updateToolbarItems();
|
|
8419
8419
|
}
|
|
8420
|
-
u.updateToolbarItems =
|
|
8420
|
+
u.updateToolbarItems = w;
|
|
8421
8421
|
function g(z) {
|
|
8422
8422
|
if (z) {
|
|
8423
8423
|
const q = a.value.querySelector("#" + z.id), K = q.querySelector("#" + z.id + "_menu"), oe = u.changeMenuPosition(z, q);
|
|
@@ -8455,13 +8455,13 @@ const Kn = /* @__PURE__ */ Re({
|
|
|
8455
8455
|
const ie = (q = n.value) == null ? void 0 : q.find((Z) => Z.id === r.value);
|
|
8456
8456
|
g(ie);
|
|
8457
8457
|
} else
|
|
8458
|
-
|
|
8458
|
+
S();
|
|
8459
8459
|
y();
|
|
8460
8460
|
}
|
|
8461
8461
|
}
|
|
8462
8462
|
});
|
|
8463
8463
|
De(() => {
|
|
8464
|
-
M.observe(a.value), l = a.value.clientWidth, a.value.componentInstance = f, v(i.value, o.value,
|
|
8464
|
+
M.observe(a.value), l = a.value.clientWidth, a.value.componentInstance = f, v(i.value, o.value, w);
|
|
8465
8465
|
}), Je(() => {
|
|
8466
8466
|
M.disconnect(), C && C.destroy && C.destroy();
|
|
8467
8467
|
}), e.expose(f.value);
|
|
@@ -8513,7 +8513,7 @@ const Kn = /* @__PURE__ */ Re({
|
|
|
8513
8513
|
}, [yn("添加按钮")])]);
|
|
8514
8514
|
}
|
|
8515
8515
|
function A() {
|
|
8516
|
-
return n.value.map((z, q) =>
|
|
8516
|
+
return n.value.map((z, q) => T(z, q));
|
|
8517
8517
|
}
|
|
8518
8518
|
return () => {
|
|
8519
8519
|
var z;
|
|
@@ -8525,7 +8525,7 @@ const Kn = /* @__PURE__ */ Re({
|
|
|
8525
8525
|
}, [h("div", {
|
|
8526
8526
|
ref: o,
|
|
8527
8527
|
class: O.value,
|
|
8528
|
-
onClick: (q) =>
|
|
8528
|
+
onClick: (q) => S(q)
|
|
8529
8529
|
}, [h("div", {
|
|
8530
8530
|
ref: i,
|
|
8531
8531
|
class: "d-block f-response-content"
|
|
@@ -8649,18 +8649,18 @@ const al = /* @__PURE__ */ Re({
|
|
|
8649
8649
|
toolbarItems: F,
|
|
8650
8650
|
setTabsRef: b,
|
|
8651
8651
|
checkActiveIdAndSelect: D,
|
|
8652
|
-
listenTabNavElementScroll:
|
|
8653
|
-
toolbarSchema:
|
|
8652
|
+
listenTabNavElementScroll: T,
|
|
8653
|
+
toolbarSchema: x,
|
|
8654
8654
|
toggleShowTab: P,
|
|
8655
8655
|
hasInHeadClass: j,
|
|
8656
|
-
updateComponentBasicInfoMap:
|
|
8656
|
+
updateComponentBasicInfoMap: I
|
|
8657
8657
|
} = u;
|
|
8658
8658
|
b(n);
|
|
8659
|
-
const k = Ln(t, c, u),
|
|
8660
|
-
updateNavigationLayout:
|
|
8661
|
-
} =
|
|
8659
|
+
const k = Ln(t, c, u), S = An(t, s, k, u), {
|
|
8660
|
+
updateNavigationLayout: w
|
|
8661
|
+
} = S, g = Nn(t, u), {
|
|
8662
8662
|
hideDropDown: y
|
|
8663
|
-
} = g, M = Ya(t, s,
|
|
8663
|
+
} = g, M = Ya(t, s, S, k, u, r), $ = M, O = jn(t, s, S, k, u), V = /* @__PURE__ */ new Map([["default", M], ["one-page", $], ["pills", O]]);
|
|
8664
8664
|
L(() => {
|
|
8665
8665
|
const E = m.value.find((H) => H.props.id === p.value);
|
|
8666
8666
|
return E == null ? void 0 : E.slots;
|
|
@@ -8672,7 +8672,7 @@ const al = /* @__PURE__ */ Re({
|
|
|
8672
8672
|
d.updateToolbarItems = function() {
|
|
8673
8673
|
var H, W;
|
|
8674
8674
|
const E = R();
|
|
8675
|
-
(H = E == null ? void 0 : E.toolbar) != null && H.buttons ? F.value = [...(W = E == null ? void 0 : E.toolbar) == null ? void 0 : W.buttons] : F.value = [],
|
|
8675
|
+
(H = E == null ? void 0 : E.toolbar) != null && H.buttons ? F.value = [...(W = E == null ? void 0 : E.toolbar) == null ? void 0 : W.buttons] : F.value = [], x.value = E == null ? void 0 : E.toolbar, E != null && E.id && I(E.id);
|
|
8676
8676
|
};
|
|
8677
8677
|
const A = B(!0);
|
|
8678
8678
|
gt("tabs", {
|
|
@@ -8708,13 +8708,13 @@ const al = /* @__PURE__ */ Re({
|
|
|
8708
8708
|
} = il(i, m);
|
|
8709
8709
|
De(() => {
|
|
8710
8710
|
m.value.length && D(t.activeId || m.value[0].props.id), ve(() => {
|
|
8711
|
-
|
|
8711
|
+
w();
|
|
8712
8712
|
}), f(s), window.addEventListener("click", (E) => {
|
|
8713
8713
|
var H;
|
|
8714
8714
|
y.value || (H = n.value) != null && H.contains(E.target) || (y.value = !0);
|
|
8715
8715
|
}), window.addEventListener("resize", () => {
|
|
8716
|
-
|
|
8717
|
-
}),
|
|
8716
|
+
w();
|
|
8717
|
+
}), T(), n.value.componentInstance = r, t.tabType === "default" && ie(s.value, s.value);
|
|
8718
8718
|
}), Je(() => {
|
|
8719
8719
|
Z && Z.destroy && Z.destroy();
|
|
8720
8720
|
});
|
|
@@ -9192,21 +9192,21 @@ function Ml(t, e, n, o, i, a) {
|
|
|
9192
9192
|
}, l = L(() => t.buttonPosition), s = no(t, e), {
|
|
9193
9193
|
onClickMaxMinIcon: c
|
|
9194
9194
|
} = Bl(o, i, a), d = L(() => t.enableMaximize), u = L(() => t.enableAccordion !== ""), p = L(() => {
|
|
9195
|
-
const
|
|
9195
|
+
const T = {
|
|
9196
9196
|
"f-section-header": !0
|
|
9197
9197
|
};
|
|
9198
|
-
return e.slots.header && t.headerClass.split(" ").reduce((P, j) => (P[j] = !0, P),
|
|
9198
|
+
return e.slots.header && t.headerClass.split(" ").reduce((P, j) => (P[j] = !0, P), T), T;
|
|
9199
9199
|
});
|
|
9200
|
-
function f(
|
|
9201
|
-
|
|
9200
|
+
function f(T) {
|
|
9201
|
+
T.stopPropagation(), t.enableAccordion !== "" && (n.value = !n.value);
|
|
9202
9202
|
}
|
|
9203
9203
|
function m() {
|
|
9204
|
-
const
|
|
9204
|
+
const T = L(() => ({
|
|
9205
9205
|
btn: !0,
|
|
9206
9206
|
"f-btn-collapse-expand": !0,
|
|
9207
9207
|
"f-btn-mx": !0,
|
|
9208
9208
|
"f-state-expand": n.value
|
|
9209
|
-
})),
|
|
9209
|
+
})), x = L(() => ({
|
|
9210
9210
|
"f-icon": !0,
|
|
9211
9211
|
"f-icon-maximize": !a.value,
|
|
9212
9212
|
"f-icon-minimize": a.value
|
|
@@ -9214,10 +9214,10 @@ function Ml(t, e, n, o, i, a) {
|
|
|
9214
9214
|
return h("div", {
|
|
9215
9215
|
class: "f-max-accordion"
|
|
9216
9216
|
}, [d.value ? h("span", {
|
|
9217
|
-
class:
|
|
9217
|
+
class: x.value,
|
|
9218
9218
|
onClick: c
|
|
9219
9219
|
}, null) : "", u.value ? h("button", {
|
|
9220
|
-
class:
|
|
9220
|
+
class: T.value,
|
|
9221
9221
|
onClick: f
|
|
9222
9222
|
}, [h("span", null, [n.value ? r.collapseLabel : r.expandLabel])]) : ""]);
|
|
9223
9223
|
}
|
|
@@ -9229,16 +9229,16 @@ function Ml(t, e, n, o, i, a) {
|
|
|
9229
9229
|
}, [t.mainTitle]), t.subTitle && h("span", null, [t.subTitle])]);
|
|
9230
9230
|
}
|
|
9231
9231
|
function C() {
|
|
9232
|
-
const
|
|
9233
|
-
const
|
|
9232
|
+
const T = L(() => {
|
|
9233
|
+
const x = {
|
|
9234
9234
|
"f-content": !0
|
|
9235
9235
|
};
|
|
9236
|
-
return t.headerContentClass && t.headerContentClass.split(" ").reduce((j,
|
|
9236
|
+
return t.headerContentClass && t.headerContentClass.split(" ").reduce((j, I) => (j[I] = !0, j), x), x;
|
|
9237
9237
|
});
|
|
9238
9238
|
return e.slots.headerContent ? h("div", {
|
|
9239
|
-
class:
|
|
9239
|
+
class: T.value
|
|
9240
9240
|
}, [e.slots.headerContent()]) : t.headerContentRenderFunction ? h("div", {
|
|
9241
|
-
class:
|
|
9241
|
+
class: T.value
|
|
9242
9242
|
}, [t.headerContentRenderFunction()]) : null;
|
|
9243
9243
|
}
|
|
9244
9244
|
function F() {
|
|
@@ -9370,8 +9370,8 @@ const Fl = /* @__PURE__ */ Re({
|
|
|
9370
9370
|
deep: !0
|
|
9371
9371
|
});
|
|
9372
9372
|
function f() {
|
|
9373
|
-
var D,
|
|
9374
|
-
const b = (
|
|
9373
|
+
var D, T;
|
|
9374
|
+
const b = (T = (D = e.slots).default) == null ? void 0 : T.call(D);
|
|
9375
9375
|
return h(Pl, {
|
|
9376
9376
|
"main-title": t.title,
|
|
9377
9377
|
class: "farris-tab-page"
|
|
@@ -9385,8 +9385,8 @@ const Fl = /* @__PURE__ */ Re({
|
|
|
9385
9385
|
"farris-tab-page-active": u.value
|
|
9386
9386
|
}));
|
|
9387
9387
|
function v() {
|
|
9388
|
-
var D,
|
|
9389
|
-
const b = (
|
|
9388
|
+
var D, T;
|
|
9389
|
+
const b = (T = (D = e.slots).default) == null ? void 0 : T.call(D);
|
|
9390
9390
|
return h("div", {
|
|
9391
9391
|
ref: n,
|
|
9392
9392
|
class: m.value,
|