@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
|
@@ -537,8 +537,8 @@ function uo(e, t, n) {
|
|
|
537
537
|
return typeof b == "string" && b && o.has(b) ? o.get(b) || null : b || null;
|
|
538
538
|
}
|
|
539
539
|
function u(m, g, b, k, C, O = "", I = "") {
|
|
540
|
-
return Object.keys(m).map((
|
|
541
|
-
const F = h(1), y =
|
|
540
|
+
return Object.keys(m).map((T) => {
|
|
541
|
+
const F = h(1), y = T, B = m[T], x = Object.keys(B), S = B.title, w = B.type, P = a.get(w) || { type: "input-group", enableClear: !1 }, E = B.editor ? Object.assign({}, P, B.editor) : Object.assign({}, P), j = s(x, B, g), D = c(x, B, g);
|
|
542
542
|
E.readonly = E.readonly === void 0 ? D() : E.readonly;
|
|
543
543
|
const V = B.type === "cascade" ? u(B.properties, g, b, k, C, O, I) : [], $ = !0;
|
|
544
544
|
let A = r(B, I);
|
|
@@ -546,51 +546,51 @@ function uo(e, t, n) {
|
|
|
546
546
|
get() {
|
|
547
547
|
if (F.value) {
|
|
548
548
|
if (["class", "style"].find((be) => be === y) && !A && (A = o.get("/converter/appearance.converter") || null), A && A.convertFrom)
|
|
549
|
-
return A.convertFrom(b,
|
|
550
|
-
const fe = b[
|
|
549
|
+
return A.convertFrom(b, T, C, O);
|
|
550
|
+
const fe = b[T];
|
|
551
551
|
return Object.prototype.hasOwnProperty.call(B, "defaultValue") && (fe === void 0 || typeof fe == "string" && fe === "") ? B.type === "boolean" ? B.defaultValue : B.defaultValue || "" : fe;
|
|
552
552
|
}
|
|
553
553
|
return null;
|
|
554
554
|
},
|
|
555
555
|
set(fe) {
|
|
556
|
-
F.value += 1, A && A.convertTo ? (A.convertTo(k,
|
|
556
|
+
F.value += 1, A && A.convertTo ? (A.convertTo(k, T, fe, C, O), A.convertTo(b, T, fe, C, O)) : (k[T] = fe, b[T] = fe);
|
|
557
557
|
}
|
|
558
|
-
}), { refreshPanelAfterChanged: H, description: K, isExpand: oe, parentPropertyID: ie } = B, Q = { propertyID: y, propertyName:
|
|
558
|
+
}), { refreshPanelAfterChanged: H, description: K, isExpand: oe, parentPropertyID: ie } = B, Q = { propertyID: y, propertyName: S, propertyType: w, propertyValue: z, editor: E, visible: j, readonly: D, cascadeConfig: V, hideCascadeTitle: $, refreshPanelAfterChanged: H, description: K, isExpand: oe, parentPropertyID: ie };
|
|
559
559
|
return g[y] = Q, Q;
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
562
|
function f(m, g, b = {}) {
|
|
563
563
|
const k = {}, C = e[m];
|
|
564
564
|
return C && C.categories ? Object.keys(C.categories).map((I) => {
|
|
565
|
-
const M = C.categories[I],
|
|
566
|
-
return { categoryId: I, categoryName:
|
|
565
|
+
const M = C.categories[I], T = M == null ? void 0 : M.title, F = u(M.properties || {}, k, {}, b, g);
|
|
566
|
+
return { categoryId: I, categoryName: T, properties: F };
|
|
567
567
|
}) : [];
|
|
568
568
|
}
|
|
569
569
|
function v(m, g, b, k, C = "") {
|
|
570
|
-
const O = g.$ref.schema, I = g.$ref.converter, M = b[O],
|
|
570
|
+
const O = g.$ref.schema, I = g.$ref.converter, M = b[O], T = M.type, F = n(M), y = {}, B = e[T];
|
|
571
571
|
if (B && B.categories) {
|
|
572
|
-
const
|
|
573
|
-
I && Object.keys(
|
|
574
|
-
|
|
572
|
+
const x = B.categories[m], S = x == null ? void 0 : x.title;
|
|
573
|
+
I && Object.keys(x.properties).forEach((E) => {
|
|
574
|
+
x.properties[E].$converter = I;
|
|
575
575
|
});
|
|
576
|
-
const w = (
|
|
577
|
-
return { categoryId: m, categoryName:
|
|
576
|
+
const w = (x == null ? void 0 : x.properties) || {}, P = u(w, y, F, M, k, C);
|
|
577
|
+
return { categoryId: m, categoryName: S, properties: P };
|
|
578
578
|
}
|
|
579
579
|
return { categoryId: m, categoryName: "", properties: [] };
|
|
580
580
|
}
|
|
581
581
|
function p(m, g, b, k, C) {
|
|
582
582
|
const O = m.type, I = n(m), M = {};
|
|
583
|
-
let
|
|
584
|
-
if (
|
|
583
|
+
let T = C || e[O];
|
|
584
|
+
if (T && Object.keys(T).length === 0 && b && b.getPropConfig && (T = b.getPropConfig(k)), T && T.categories) {
|
|
585
585
|
const F = [];
|
|
586
|
-
return Object.keys(
|
|
587
|
-
const B =
|
|
586
|
+
return Object.keys(T.categories).map((y) => {
|
|
587
|
+
const B = T.categories[y];
|
|
588
588
|
if (B.$ref) {
|
|
589
589
|
F.push(v(y, B, m, g, k));
|
|
590
590
|
return;
|
|
591
591
|
}
|
|
592
|
-
const
|
|
593
|
-
F.push({ categoryId: y, categoryName:
|
|
592
|
+
const x = B == null ? void 0 : B.title, S = B == null ? void 0 : B.tabId, w = B == null ? void 0 : B.tabName, P = B == null ? void 0 : B.hide, E = B == null ? void 0 : B.hideTitle, j = u(B.properties || {}, M, I, m, g, k, B.$converter), { setPropertyRelates: D } = B, V = B == null ? void 0 : B.parentPropertyID;
|
|
593
|
+
F.push({ categoryId: y, categoryName: x, tabId: S, tabName: w, hide: P, properties: j, hideTitle: E, setPropertyRelates: D, parentPropertyID: V });
|
|
594
594
|
}), F;
|
|
595
595
|
}
|
|
596
596
|
return [];
|
|
@@ -1057,21 +1057,21 @@ function Il(e, t, n) {
|
|
|
1057
1057
|
const o = h([]), a = h(e.activeId || "");
|
|
1058
1058
|
let i = "";
|
|
1059
1059
|
const l = h(!0), s = h([]), c = h(!0), r = h(0), u = R(() => {
|
|
1060
|
-
const y = o.value.find((
|
|
1060
|
+
const y = o.value.find((x) => x.props.id === a.value);
|
|
1061
1061
|
return (y == null ? void 0 : y.props.toolbarPosition) === "inHead";
|
|
1062
1062
|
});
|
|
1063
1063
|
function f(y, B = !0) {
|
|
1064
|
-
const
|
|
1065
|
-
if (s.value = [],
|
|
1066
|
-
if (a.value = y[
|
|
1064
|
+
const x = y.findIndex((S) => S.props.show !== !1 && !S.props.disabled);
|
|
1065
|
+
if (s.value = [], x !== -1) {
|
|
1066
|
+
if (a.value = y[x].props.id, !B)
|
|
1067
1067
|
return;
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1068
|
+
const S = y[x];
|
|
1069
|
+
S && S.props.toolbar && S.props.toolbar.buttons && S.props.toolbar.buttons.length && (s.value = [...S.props.toolbar.buttons], c.value = S.props.toolbarVisible);
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
function v(y) {
|
|
1073
1073
|
a.value = y;
|
|
1074
|
-
const B = o.value.find((
|
|
1074
|
+
const B = o.value.find((x) => x.props.id === y);
|
|
1075
1075
|
s.value = [], B && B.props.toolbar && B.props.toolbar.buttons && B.props.toolbar.buttons.length && (s.value = [...B.props.toolbar.buttons], c.value = B.props.toolbarVisible), t.emit("update:activeId", y), t.emit("tabChange", {
|
|
1076
1076
|
prevId: i,
|
|
1077
1077
|
nextId: a.value
|
|
@@ -1080,7 +1080,7 @@ function Il(e, t, n) {
|
|
|
1080
1080
|
function p(y) {
|
|
1081
1081
|
let B = -1;
|
|
1082
1082
|
if (!a.value) {
|
|
1083
|
-
if (B = y.findIndex((
|
|
1083
|
+
if (B = y.findIndex((x) => a.value === x.props.id && x.props.show !== !1 && !x.props.disabled), B > -1)
|
|
1084
1084
|
return;
|
|
1085
1085
|
i = a.value;
|
|
1086
1086
|
}
|
|
@@ -1089,8 +1089,8 @@ function Il(e, t, n) {
|
|
|
1089
1089
|
function m(y) {
|
|
1090
1090
|
let B = !1;
|
|
1091
1091
|
if (y) {
|
|
1092
|
-
const
|
|
1093
|
-
B = !
|
|
1092
|
+
const x = o.value.find((S) => S.props.id === y);
|
|
1093
|
+
B = !x || x.props.show === !1 || x.props.disabled === !0;
|
|
1094
1094
|
}
|
|
1095
1095
|
B ? p(o.value) : (a.value !== y && (i = a.value, a.value = y), v(a.value));
|
|
1096
1096
|
}
|
|
@@ -1098,24 +1098,24 @@ function Il(e, t, n) {
|
|
|
1098
1098
|
y !== B && m(y);
|
|
1099
1099
|
});
|
|
1100
1100
|
function g(y) {
|
|
1101
|
-
var
|
|
1101
|
+
var x;
|
|
1102
1102
|
if (e.autoTitleWidth)
|
|
1103
1103
|
return;
|
|
1104
|
-
const B = (
|
|
1104
|
+
const B = (x = y.value) == null ? void 0 : x.querySelectorAll(".st-tab-text");
|
|
1105
1105
|
if (!(!B || e.tabType === "pill"))
|
|
1106
|
-
for (let
|
|
1107
|
-
const w = B[
|
|
1108
|
-
B[
|
|
1106
|
+
for (let S = 0; S < B.length; S++) {
|
|
1107
|
+
const w = B[S].parentNode;
|
|
1108
|
+
B[S].scrollWidth > w.offsetWidth ? B[S].classList.contains("farris-title-text-custom") || B[S].classList.add("farris-title-text-custom") : B[S].classList.remove("farris-title-text-custom");
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
const b = (y) => {
|
|
1112
1112
|
y.preventDefault(), y.stopPropagation();
|
|
1113
1113
|
};
|
|
1114
|
-
function k(y, B,
|
|
1115
|
-
const
|
|
1114
|
+
function k(y, B, x = !1) {
|
|
1115
|
+
const S = o.value.findIndex((w) => w.props.id === B);
|
|
1116
1116
|
o.value = o.value.filter((w) => w.props.id !== B), a.value === B && (i = B, a.value = "", f(o.value)), b(y), ge(() => {
|
|
1117
|
-
r.value++, g(n),
|
|
1118
|
-
removeIndex:
|
|
1117
|
+
r.value++, g(n), x && (l.value = !0), t.emit("tabRemove", {
|
|
1118
|
+
removeIndex: S,
|
|
1119
1119
|
removeId: B,
|
|
1120
1120
|
activeId: a.value
|
|
1121
1121
|
});
|
|
@@ -1133,19 +1133,19 @@ function Il(e, t, n) {
|
|
|
1133
1133
|
function M(y) {
|
|
1134
1134
|
a.value !== y && (i = a.value, v(y), O && O());
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
o.value.findIndex((
|
|
1136
|
+
function T(y) {
|
|
1137
|
+
o.value.findIndex((x) => x.props.id === y.props.id) === -1 && o.value.push(y), r.value++;
|
|
1138
1138
|
}
|
|
1139
1139
|
function F(y) {
|
|
1140
|
-
o.value.findIndex((
|
|
1141
|
-
|
|
1140
|
+
o.value.findIndex((x) => x.props.id === y.props.id) !== -1 && (o.value.forEach((x) => {
|
|
1141
|
+
x.props.id === y.props.id && (x = y);
|
|
1142
1142
|
}), y.props.id === a.value && u.value, ge(() => {
|
|
1143
1143
|
r.value++, g(n);
|
|
1144
1144
|
}));
|
|
1145
1145
|
}
|
|
1146
1146
|
return {
|
|
1147
1147
|
activeId: a,
|
|
1148
|
-
addTab:
|
|
1148
|
+
addTab: T,
|
|
1149
1149
|
changeTitleStyle: g,
|
|
1150
1150
|
removeTab: k,
|
|
1151
1151
|
selectTab: M,
|
|
@@ -1315,9 +1315,9 @@ function Fl(e, t, n, o) {
|
|
|
1315
1315
|
} = t, v = 600;
|
|
1316
1316
|
let p = null;
|
|
1317
1317
|
const m = R(() => {
|
|
1318
|
-
var
|
|
1319
|
-
let
|
|
1320
|
-
return e.searchBoxVisible ?
|
|
1318
|
+
var S, w;
|
|
1319
|
+
let x = [];
|
|
1320
|
+
return e.searchBoxVisible ? x = (S = c.value) == null ? void 0 : S.filter((P) => P.props.title.includes(f.value)) : x = (w = c.value) == null ? void 0 : w.slice(), x;
|
|
1321
1321
|
}), g = R(() => ({
|
|
1322
1322
|
"dropdown-menu": !0,
|
|
1323
1323
|
"tabs-pt28": e.searchBoxVisible,
|
|
@@ -1326,15 +1326,15 @@ function Fl(e, t, n, o) {
|
|
|
1326
1326
|
"d-none": u.value
|
|
1327
1327
|
}));
|
|
1328
1328
|
let b;
|
|
1329
|
-
function k(
|
|
1330
|
-
b =
|
|
1329
|
+
function k(x) {
|
|
1330
|
+
b = x;
|
|
1331
1331
|
}
|
|
1332
|
-
ee(u, (
|
|
1332
|
+
ee(u, (x) => {
|
|
1333
1333
|
if (b.value)
|
|
1334
|
-
if (
|
|
1334
|
+
if (x)
|
|
1335
1335
|
i.value.style.width = null;
|
|
1336
1336
|
else {
|
|
1337
|
-
const
|
|
1337
|
+
const S = b.value.querySelector(".farris-tabs-header"), w = b.value.clientHeight - S.clientHeight - 20, E = S.querySelector(".farris-tabs-title").clientWidth - 20;
|
|
1338
1338
|
i.value.style.maxWidth = E + "px", i.value.style.maxHeight = w + "px", ge(() => {
|
|
1339
1339
|
const {
|
|
1340
1340
|
width: j
|
|
@@ -1343,18 +1343,18 @@ function Fl(e, t, n, o) {
|
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
1345
1345
|
});
|
|
1346
|
-
function C(
|
|
1346
|
+
function C(x) {
|
|
1347
1347
|
return {
|
|
1348
1348
|
"dropdown-item": !0,
|
|
1349
1349
|
"text-truncate": !0,
|
|
1350
1350
|
"px-2": !0,
|
|
1351
|
-
disabled:
|
|
1352
|
-
active:
|
|
1353
|
-
"d-none":
|
|
1351
|
+
disabled: x.props.disabled,
|
|
1352
|
+
active: x.props.id === l.value,
|
|
1353
|
+
"d-none": x.props.show !== !0
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
|
-
function O(
|
|
1357
|
-
|
|
1356
|
+
function O(x) {
|
|
1357
|
+
x.preventDefault(), x.stopPropagation();
|
|
1358
1358
|
}
|
|
1359
1359
|
function I() {
|
|
1360
1360
|
p && clearTimeout(p);
|
|
@@ -1364,23 +1364,23 @@ function Fl(e, t, n, o) {
|
|
|
1364
1364
|
u.value = !0;
|
|
1365
1365
|
}, v));
|
|
1366
1366
|
}
|
|
1367
|
-
function x
|
|
1368
|
-
|
|
1367
|
+
function T(x, S) {
|
|
1368
|
+
x.stopPropagation(), S.disabled || r(S.id), u.value = !0;
|
|
1369
1369
|
}
|
|
1370
|
-
function F(
|
|
1371
|
-
|
|
1370
|
+
function F(x, S) {
|
|
1371
|
+
x.stopPropagation(), s(x, S, !0);
|
|
1372
1372
|
}
|
|
1373
|
-
function y(
|
|
1374
|
-
return
|
|
1373
|
+
function y(x) {
|
|
1374
|
+
return x.slots.title ? d("a", {
|
|
1375
1375
|
class: "dropdown-title",
|
|
1376
|
-
id: `${
|
|
1377
|
-
}, [
|
|
1376
|
+
id: `${x.props.id}-dropdown-item`
|
|
1377
|
+
}, [x.slots.title(x)]) : x.props.titleRenderFunction ? d("a", {
|
|
1378
1378
|
class: "dropdown-title",
|
|
1379
|
-
id: `${
|
|
1380
|
-
}, [
|
|
1379
|
+
id: `${x.props.id}-dropdown-item`
|
|
1380
|
+
}, [x.props.titleRenderFunction()]) : d("a", {
|
|
1381
1381
|
class: "dropdown-title",
|
|
1382
|
-
id: `${
|
|
1383
|
-
}, [
|
|
1382
|
+
id: `${x.props.id}-dropdown-item`
|
|
1383
|
+
}, [x.props.title]);
|
|
1384
1384
|
}
|
|
1385
1385
|
function B() {
|
|
1386
1386
|
return d("div", {
|
|
@@ -1389,25 +1389,25 @@ function Fl(e, t, n, o) {
|
|
|
1389
1389
|
onMouseenter: () => I(),
|
|
1390
1390
|
onMouseleave: () => M()
|
|
1391
1391
|
}, [e.searchBoxVisible && d("div", {
|
|
1392
|
-
onClick: (
|
|
1392
|
+
onClick: (x) => O(x),
|
|
1393
1393
|
class: "pb-1 tabs-li-absolute"
|
|
1394
1394
|
}, [Lt(d("input", {
|
|
1395
1395
|
type: "text",
|
|
1396
1396
|
class: "form-control",
|
|
1397
|
-
"onUpdate:modelValue": (
|
|
1397
|
+
"onUpdate:modelValue": (x) => f.value = x
|
|
1398
1398
|
}, null), [[jn, f.value]]), d("span", {
|
|
1399
1399
|
class: "f-icon f-icon-page-title-query tabs-icon-search"
|
|
1400
1400
|
}, null)]), m.value.length ? d("ul", {
|
|
1401
1401
|
class: "tab-dropdown-menu--items flex-fill"
|
|
1402
|
-
}, [m.value.map((
|
|
1403
|
-
class: C(
|
|
1404
|
-
onClick: (
|
|
1405
|
-
}, [
|
|
1402
|
+
}, [m.value.map((x) => d("li", {
|
|
1403
|
+
class: C(x),
|
|
1404
|
+
onClick: (S) => T(S, x.props)
|
|
1405
|
+
}, [x.props.removeable && x.props.disabled !== !0 && d("span", {
|
|
1406
1406
|
class: "float-right st-drop-close",
|
|
1407
|
-
onClick: (
|
|
1407
|
+
onClick: (S) => F(S, x.props.id)
|
|
1408
1408
|
}, [d("i", {
|
|
1409
1409
|
class: "f-icon f-icon-close"
|
|
1410
|
-
}, null)]), y(
|
|
1410
|
+
}, null)]), y(x)]))]) : d("div", {
|
|
1411
1411
|
class: "dropdown-no-data"
|
|
1412
1412
|
}, [a("tabs.noData")])]);
|
|
1413
1413
|
}
|
|
@@ -1471,10 +1471,10 @@ function xo(e, t, n, o) {
|
|
|
1471
1471
|
if (!a.value || !t.value)
|
|
1472
1472
|
return;
|
|
1473
1473
|
C < 0 && (C = l.value.findIndex((F) => F.props.id === c.value));
|
|
1474
|
-
const O = e.tabType === "pills" ? ".f-capsule-item" : ".nav-item", I = t.value.querySelectorAll(O), { parentElement: M } = t.value,
|
|
1475
|
-
if (
|
|
1476
|
-
const F = M.getBoundingClientRect().left, y = M.getBoundingClientRect().right, B =
|
|
1477
|
-
B < F ? p(F - B, -1) : y <
|
|
1474
|
+
const O = e.tabType === "pills" ? ".f-capsule-item" : ".nav-item", I = t.value.querySelectorAll(O), { parentElement: M } = t.value, T = I[C];
|
|
1475
|
+
if (T && M) {
|
|
1476
|
+
const F = M.getBoundingClientRect().left, y = M.getBoundingClientRect().right, B = T.getBoundingClientRect().left, x = T.getBoundingClientRect().right;
|
|
1477
|
+
B < F ? p(F - B, -1) : y < x && p(x - y, 1), e.tabType === "one-page" && n.scrollTo(C);
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
function g() {
|
|
@@ -1555,14 +1555,14 @@ const dt = /* @__PURE__ */ he({
|
|
|
1555
1555
|
hasInHeadClass: C,
|
|
1556
1556
|
toolbarVisible: O
|
|
1557
1557
|
} = r, I = Io(e, s, r), M = xo(e, l, I, r), {
|
|
1558
|
-
previousButtonClass:
|
|
1558
|
+
previousButtonClass: T,
|
|
1559
1559
|
nextButtonClass: F,
|
|
1560
1560
|
nextButtonGroupClass: y,
|
|
1561
1561
|
scrollTab: B,
|
|
1562
|
-
updateNavigationLayout:
|
|
1563
|
-
scrollToSelectedTab:
|
|
1562
|
+
updateNavigationLayout: x,
|
|
1563
|
+
scrollToSelectedTab: S
|
|
1564
1564
|
} = M;
|
|
1565
|
-
r.setScrollToSelectedTabFunction(
|
|
1565
|
+
r.setScrollToSelectedTabFunction(S);
|
|
1566
1566
|
const w = To(e, r), P = kl(e, l, M, I, r), E = P, j = So(e, l, M, I, r), D = /* @__PURE__ */ new Map([["default", P], ["one-page", E], ["pills", j]]);
|
|
1567
1567
|
R(() => {
|
|
1568
1568
|
const ne = v.value.find((se) => se.props.id === u.value);
|
|
@@ -1603,18 +1603,18 @@ const dt = /* @__PURE__ */ he({
|
|
|
1603
1603
|
};
|
|
1604
1604
|
return i.value && i.value.split(" ").reduce((se, ue) => (se[ue] = !0, se), ne), ne;
|
|
1605
1605
|
}), K = new ResizeObserver((ne) => {
|
|
1606
|
-
ne.length &&
|
|
1606
|
+
ne.length && x();
|
|
1607
1607
|
});
|
|
1608
1608
|
function oe() {
|
|
1609
1609
|
c.value && !$ && (K.observe(c.value), $ = !0);
|
|
1610
1610
|
}
|
|
1611
1611
|
ee(() => e.visible, (ne) => {
|
|
1612
1612
|
ge(() => {
|
|
1613
|
-
v.value.length && b(e.activeId || v.value[0].props.id),
|
|
1613
|
+
v.value.length && b(e.activeId || v.value[0].props.id), x(), f(l), oe();
|
|
1614
1614
|
});
|
|
1615
1615
|
}), ee(() => e.autoTitleWidth, (ne) => {
|
|
1616
1616
|
ge(() => {
|
|
1617
|
-
|
|
1617
|
+
x(), f(l);
|
|
1618
1618
|
});
|
|
1619
1619
|
});
|
|
1620
1620
|
const ie = {
|
|
@@ -1623,14 +1623,14 @@ const dt = /* @__PURE__ */ he({
|
|
|
1623
1623
|
};
|
|
1624
1624
|
Ce(() => {
|
|
1625
1625
|
e.visible && (v.value.length && b(e.activeId || v.value[0].props.id), ge(() => {
|
|
1626
|
-
|
|
1626
|
+
x(), f(l);
|
|
1627
1627
|
}), oe());
|
|
1628
1628
|
});
|
|
1629
1629
|
function Q() {
|
|
1630
1630
|
return d("button", {
|
|
1631
1631
|
title: ie.leftButton,
|
|
1632
1632
|
type: "button",
|
|
1633
|
-
class:
|
|
1633
|
+
class: T.value,
|
|
1634
1634
|
onClick: () => {
|
|
1635
1635
|
B(0, -1);
|
|
1636
1636
|
}
|
|
@@ -1939,7 +1939,7 @@ function Hl(e, t, n, o, a, i) {
|
|
|
1939
1939
|
function M(w) {
|
|
1940
1940
|
w && (w.stopPropagation(), w.preventDefault()), r(w, t.id, i.value);
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function T(w) {
|
|
1943
1943
|
c(w, t.id);
|
|
1944
1944
|
}
|
|
1945
1945
|
function F(w) {
|
|
@@ -1964,7 +1964,7 @@ function Hl(e, t, n, o, a, i) {
|
|
|
1964
1964
|
class: "btn component-settings-button",
|
|
1965
1965
|
title: "删除",
|
|
1966
1966
|
ref: "removeComponent",
|
|
1967
|
-
onClick: (w) =>
|
|
1967
|
+
onClick: (w) => T(w)
|
|
1968
1968
|
}, [d("i", {
|
|
1969
1969
|
class: "f-icon f-icon-yxs_delete"
|
|
1970
1970
|
}, null)]);
|
|
@@ -1980,13 +1980,13 @@ function Hl(e, t, n, o, a, i) {
|
|
|
1980
1980
|
class: "f-icon f-icon-plus-circle"
|
|
1981
1981
|
}, null)]);
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function x() {
|
|
1984
1984
|
return d("div", {
|
|
1985
1985
|
class: "component-btn-group",
|
|
1986
1986
|
"data-noattach": "true"
|
|
1987
1987
|
}, [d("div", null, [y(), !t.toolbar || !t.toolbar.buttons || !t.toolbar.buttons.length ? B() : ""])]);
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function S() {
|
|
1990
1990
|
return n.slots.title ? d("a", {
|
|
1991
1991
|
class: g.value,
|
|
1992
1992
|
onClick: I,
|
|
@@ -2007,7 +2007,7 @@ function Hl(e, t, n, o, a, i) {
|
|
|
2007
2007
|
class: p.value,
|
|
2008
2008
|
style: m.value,
|
|
2009
2009
|
pageId: `${t.id}-design-item`
|
|
2010
|
-
}, [
|
|
2010
|
+
}, [x(), S()]);
|
|
2011
2011
|
}
|
|
2012
2012
|
function zl(e, t, n, o, a, i, l) {
|
|
2013
2013
|
const {
|
|
@@ -2061,7 +2061,7 @@ function zl(e, t, n, o, a, i, l) {
|
|
|
2061
2061
|
}, null)])])])]);
|
|
2062
2062
|
}
|
|
2063
2063
|
function qt(e, t, n) {
|
|
2064
|
-
var
|
|
2064
|
+
var S;
|
|
2065
2065
|
const o = n && n.getStyles && n.getStyles() || "", a = n && n.getDesignerClass && n.getDesignerClass() || "", i = h();
|
|
2066
2066
|
let l;
|
|
2067
2067
|
function s() {
|
|
@@ -2135,7 +2135,7 @@ function qt(e, t, n) {
|
|
|
2135
2135
|
const P = t.schema, { formSchemaUtils: E } = w;
|
|
2136
2136
|
E.removeCommunicationInComponent(P);
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function T(w) {
|
|
2139
2139
|
n && n.onRemoveComponent && n.onRemoveComponent(), I(w), M(w), t != null && t.schema.contents && t.schema.contents.map((P) => {
|
|
2140
2140
|
let E = P.id;
|
|
2141
2141
|
P.type === "component-ref" && (E = P.component);
|
|
@@ -2184,7 +2184,7 @@ function qt(e, t, n) {
|
|
|
2184
2184
|
});
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function x(w) {
|
|
2188
2188
|
if (B(w), n && n.onPropertyChanged)
|
|
2189
2189
|
return n.onPropertyChanged(w);
|
|
2190
2190
|
}
|
|
@@ -2195,7 +2195,7 @@ function qt(e, t, n) {
|
|
|
2195
2195
|
canNested: !u(),
|
|
2196
2196
|
contents: t == null ? void 0 : t.schema.contents,
|
|
2197
2197
|
elementRef: e,
|
|
2198
|
-
parent: (
|
|
2198
|
+
parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
|
|
2199
2199
|
schema: t == null ? void 0 : t.schema,
|
|
2200
2200
|
styles: o,
|
|
2201
2201
|
designerClass: a,
|
|
@@ -2210,9 +2210,9 @@ function qt(e, t, n) {
|
|
|
2210
2210
|
addNewChildComponentSchema: k,
|
|
2211
2211
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || h(!1),
|
|
2212
2212
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || h(!1),
|
|
2213
|
-
onRemoveComponent:
|
|
2213
|
+
onRemoveComponent: T,
|
|
2214
2214
|
getCustomButtons: F,
|
|
2215
|
-
onPropertyChanged:
|
|
2215
|
+
onPropertyChanged: x,
|
|
2216
2216
|
setComponentBasicInfoMap: y,
|
|
2217
2217
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
2218
2218
|
}, i;
|
|
@@ -2333,11 +2333,11 @@ var Mo = { exports: {} };
|
|
|
2333
2333
|
2: [function(n, o, a) {
|
|
2334
2334
|
(function(i) {
|
|
2335
2335
|
var l = n("contra/emitter"), s = n("crossvent"), c = n("./classes"), r = document, u = r.documentElement;
|
|
2336
|
-
function f(
|
|
2336
|
+
function f(S, w) {
|
|
2337
2337
|
var P = arguments.length;
|
|
2338
|
-
P === 1 && Array.isArray(
|
|
2338
|
+
P === 1 && Array.isArray(S) === !1 && (w = S, S = []);
|
|
2339
2339
|
var E, j, D, V, $, A, z, H, K, oe = null, ie, Q, fe = !1, be = 0, ce, Z = w || {};
|
|
2340
|
-
Z.moves === void 0 && (Z.moves = C), Z.accepts === void 0 && (Z.accepts = C), Z.invalid === void 0 && (Z.invalid = qe), Z.containers === void 0 && (Z.containers =
|
|
2340
|
+
Z.moves === void 0 && (Z.moves = C), Z.accepts === void 0 && (Z.accepts = C), Z.invalid === void 0 && (Z.invalid = qe), Z.containers === void 0 && (Z.containers = S || []), Z.isContainer === void 0 && (Z.isContainer = k), Z.copy === void 0 && (Z.copy = !1), Z.copySortSource === void 0 && (Z.copySortSource = !1), Z.revertOnSpill === void 0 && (Z.revertOnSpill = !1), Z.removeOnSpill === void 0 && (Z.removeOnSpill = !1), Z.direction === void 0 && (Z.direction = "vertical"), Z.ignoreInputTextSelection === void 0 && (Z.ignoreInputTextSelection = !0), Z.mirrorContainer === void 0 && (Z.mirrorContainer = r.body);
|
|
2341
2341
|
var de = l({
|
|
2342
2342
|
containers: Z.containers,
|
|
2343
2343
|
start: Se,
|
|
@@ -2375,7 +2375,7 @@ var Mo = { exports: {} };
|
|
|
2375
2375
|
var G = g(N) !== 1 || N.metaKey || N.ctrlKey;
|
|
2376
2376
|
if (!G) {
|
|
2377
2377
|
var Y = N.target, te = we(Y);
|
|
2378
|
-
te && (ie = te, _(), N.type === "mousedown" && (
|
|
2378
|
+
te && (ie = te, _(), N.type === "mousedown" && (T(Y) ? Y.focus() : N.preventDefault()));
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
function Ee(N) {
|
|
@@ -2386,8 +2386,8 @@ var Mo = { exports: {} };
|
|
|
2386
2386
|
}
|
|
2387
2387
|
if (!(N.clientX !== void 0 && Math.abs(N.clientX - V) <= (Z.slideFactorX || 0) && N.clientY !== void 0 && Math.abs(N.clientY - $) <= (Z.slideFactorY || 0))) {
|
|
2388
2388
|
if (Z.ignoreInputTextSelection) {
|
|
2389
|
-
var G =
|
|
2390
|
-
if (
|
|
2389
|
+
var G = x("clientX", N) || 0, Y = x("clientY", N) || 0, te = r.elementFromPoint(G, Y);
|
|
2390
|
+
if (T(te))
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
2393
|
var me = ie;
|
|
@@ -2435,7 +2435,7 @@ var Mo = { exports: {} };
|
|
|
2435
2435
|
}
|
|
2436
2436
|
function Qe(N) {
|
|
2437
2437
|
if (Ye(), !!de.dragging) {
|
|
2438
|
-
var G = H || D, Y =
|
|
2438
|
+
var G = H || D, Y = x("clientX", N) || 0, te = x("clientY", N) || 0, me = b(E, Y, te), ve = ke(me, Y, te);
|
|
2439
2439
|
ve && (H && Z.copySortSource || !H || ve !== j) ? gt(G, ve) : Z.removeOnSpill ? ht() : U();
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
@@ -2479,7 +2479,7 @@ var Mo = { exports: {} };
|
|
|
2479
2479
|
if (!E)
|
|
2480
2480
|
return;
|
|
2481
2481
|
N.preventDefault();
|
|
2482
|
-
var G =
|
|
2482
|
+
var G = x("clientX", N) || 0, Y = x("clientY", N) || 0;
|
|
2483
2483
|
E.style.left = G - 2 + "px", E.style.top = Y - 2 + "px";
|
|
2484
2484
|
var te = H || D, me = b(E, G, Y), ve = ke(me, G, Y), ze = ve !== null && ve !== oe;
|
|
2485
2485
|
(ze || ve === null) && (Ae(), oe = ve, We()), tn(me, Y);
|
|
@@ -2635,7 +2635,7 @@ var Mo = { exports: {} };
|
|
|
2635
2635
|
return typeof Z.copy == "boolean" ? Z.copy : Z.copy(N, G);
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
|
-
function v(
|
|
2638
|
+
function v(S) {
|
|
2639
2639
|
const w = Array.from(window.scrollContainerList);
|
|
2640
2640
|
if (w.length === 1) {
|
|
2641
2641
|
const E = Array.from(window.scrollContainerList)[0];
|
|
@@ -2643,18 +2643,18 @@ var Mo = { exports: {} };
|
|
|
2643
2643
|
}
|
|
2644
2644
|
const P = p(w);
|
|
2645
2645
|
for (const E of P)
|
|
2646
|
-
if (E.contains(
|
|
2646
|
+
if (E.contains(S))
|
|
2647
2647
|
return E;
|
|
2648
2648
|
return null;
|
|
2649
2649
|
}
|
|
2650
|
-
function p(
|
|
2650
|
+
function p(S) {
|
|
2651
2651
|
const w = [];
|
|
2652
|
-
return
|
|
2652
|
+
return S.forEach((P) => {
|
|
2653
2653
|
const E = document.getElementById(P);
|
|
2654
2654
|
E && w.push(E);
|
|
2655
2655
|
}), w.sort((P, E) => P.contains(E) ? 1 : E.contains(P) ? -1 : 0), w;
|
|
2656
2656
|
}
|
|
2657
|
-
function m(
|
|
2657
|
+
function m(S, w, P, E) {
|
|
2658
2658
|
var j = {
|
|
2659
2659
|
mouseup: "touchend",
|
|
2660
2660
|
mousedown: "touchstart",
|
|
@@ -2668,23 +2668,23 @@ var Mo = { exports: {} };
|
|
|
2668
2668
|
mousedown: "MSPointerDown",
|
|
2669
2669
|
mousemove: "MSPointerMove"
|
|
2670
2670
|
};
|
|
2671
|
-
i.navigator.pointerEnabled ? s[w](
|
|
2671
|
+
i.navigator.pointerEnabled ? s[w](S, D[P], E) : i.navigator.msPointerEnabled ? s[w](S, V[P], E) : (s[w](S, j[P], E), s[w](S, P, E));
|
|
2672
2672
|
}
|
|
2673
|
-
function g(
|
|
2674
|
-
if (
|
|
2675
|
-
return
|
|
2676
|
-
if (
|
|
2677
|
-
return
|
|
2678
|
-
if (
|
|
2679
|
-
return
|
|
2680
|
-
var w =
|
|
2673
|
+
function g(S) {
|
|
2674
|
+
if (S.touches !== void 0)
|
|
2675
|
+
return S.touches.length;
|
|
2676
|
+
if (S.which !== void 0 && S.which !== 0)
|
|
2677
|
+
return S.which;
|
|
2678
|
+
if (S.buttons !== void 0)
|
|
2679
|
+
return S.buttons;
|
|
2680
|
+
var w = S.button;
|
|
2681
2681
|
if (w !== void 0)
|
|
2682
2682
|
return w & 1 ? 1 : w & 2 ? 3 : w & 4 ? 2 : 0;
|
|
2683
2683
|
}
|
|
2684
|
-
function b(
|
|
2685
|
-
|
|
2686
|
-
var E =
|
|
2687
|
-
return
|
|
2684
|
+
function b(S, w, P) {
|
|
2685
|
+
S = S || {};
|
|
2686
|
+
var E = S.className || "", j;
|
|
2687
|
+
return S.className += " gu-hide", j = r.elementFromPoint(w, P), S.className = E, j;
|
|
2688
2688
|
}
|
|
2689
2689
|
function k() {
|
|
2690
2690
|
return !1;
|
|
@@ -2692,42 +2692,42 @@ var Mo = { exports: {} };
|
|
|
2692
2692
|
function C() {
|
|
2693
2693
|
return !0;
|
|
2694
2694
|
}
|
|
2695
|
-
function O(
|
|
2696
|
-
return
|
|
2695
|
+
function O(S) {
|
|
2696
|
+
return S.width || S.right - S.left;
|
|
2697
2697
|
}
|
|
2698
|
-
function I(
|
|
2699
|
-
return
|
|
2698
|
+
function I(S) {
|
|
2699
|
+
return S.height || S.bottom - S.top;
|
|
2700
2700
|
}
|
|
2701
|
-
function M(
|
|
2702
|
-
return
|
|
2701
|
+
function M(S) {
|
|
2702
|
+
return S.parentNode === r ? null : S.parentNode;
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2705
|
-
return
|
|
2704
|
+
function T(S) {
|
|
2705
|
+
return S.tagName === "INPUT" || S.tagName === "TEXTAREA" || S.tagName === "SELECT" || F(S);
|
|
2706
2706
|
}
|
|
2707
|
-
function F(
|
|
2708
|
-
return !
|
|
2707
|
+
function F(S) {
|
|
2708
|
+
return !S || S.contentEditable === "false" ? !1 : S.contentEditable === "true" ? !0 : F(M(S));
|
|
2709
2709
|
}
|
|
2710
|
-
function y(
|
|
2711
|
-
return
|
|
2710
|
+
function y(S) {
|
|
2711
|
+
return S.nextElementSibling || w();
|
|
2712
2712
|
function w() {
|
|
2713
|
-
var P =
|
|
2713
|
+
var P = S;
|
|
2714
2714
|
do
|
|
2715
2715
|
P = P.nextSibling;
|
|
2716
2716
|
while (P && P.nodeType !== 1);
|
|
2717
2717
|
return P;
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
|
-
function B(
|
|
2721
|
-
return
|
|
2720
|
+
function B(S) {
|
|
2721
|
+
return S.targetTouches && S.targetTouches.length ? S.targetTouches[0] : S.changedTouches && S.changedTouches.length ? S.changedTouches[0] : S;
|
|
2722
2722
|
}
|
|
2723
|
-
function S
|
|
2723
|
+
function x(S, w) {
|
|
2724
2724
|
var P = B(w), E = {
|
|
2725
2725
|
pageX: "clientX",
|
|
2726
2726
|
// IE8
|
|
2727
2727
|
pageY: "clientY"
|
|
2728
2728
|
// IE8
|
|
2729
2729
|
};
|
|
2730
|
-
return
|
|
2730
|
+
return S in E && !(S in P) && E[S] in P && (S = E[S]), P[S];
|
|
2731
2731
|
}
|
|
2732
2732
|
o.exports = f;
|
|
2733
2733
|
}).call(this, typeof et < "u" ? et : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2790,61 +2790,61 @@ var Mo = { exports: {} };
|
|
|
2790
2790
|
remove: u,
|
|
2791
2791
|
fabricate: b
|
|
2792
2792
|
};
|
|
2793
|
-
function v(M,
|
|
2794
|
-
return M.addEventListener(
|
|
2793
|
+
function v(M, T, F, y) {
|
|
2794
|
+
return M.addEventListener(T, F, y);
|
|
2795
2795
|
}
|
|
2796
|
-
function p(M,
|
|
2797
|
-
return M.attachEvent("on" +
|
|
2796
|
+
function p(M, T, F) {
|
|
2797
|
+
return M.attachEvent("on" + T, C(M, T, F));
|
|
2798
2798
|
}
|
|
2799
|
-
function m(M,
|
|
2800
|
-
return M.removeEventListener(
|
|
2799
|
+
function m(M, T, F, y) {
|
|
2800
|
+
return M.removeEventListener(T, F, y);
|
|
2801
2801
|
}
|
|
2802
|
-
function g(M,
|
|
2803
|
-
var y = O(M,
|
|
2802
|
+
function g(M, T, F) {
|
|
2803
|
+
var y = O(M, T, F);
|
|
2804
2804
|
if (y)
|
|
2805
|
-
return M.detachEvent("on" +
|
|
2805
|
+
return M.detachEvent("on" + T, y);
|
|
2806
2806
|
}
|
|
2807
|
-
function b(M,
|
|
2808
|
-
var y = s.indexOf(
|
|
2809
|
-
M.dispatchEvent ? M.dispatchEvent(y) : M.fireEvent("on" +
|
|
2807
|
+
function b(M, T, F) {
|
|
2808
|
+
var y = s.indexOf(T) === -1 ? x() : B();
|
|
2809
|
+
M.dispatchEvent ? M.dispatchEvent(y) : M.fireEvent("on" + T, y);
|
|
2810
2810
|
function B() {
|
|
2811
|
-
var
|
|
2812
|
-
return c.createEvent ? (
|
|
2811
|
+
var S;
|
|
2812
|
+
return c.createEvent ? (S = c.createEvent("Event"), S.initEvent(T, !0, !0)) : c.createEventObject && (S = c.createEventObject()), S;
|
|
2813
2813
|
}
|
|
2814
|
-
function
|
|
2815
|
-
return new l(
|
|
2814
|
+
function x() {
|
|
2815
|
+
return new l(T, { detail: F });
|
|
2816
2816
|
}
|
|
2817
2817
|
}
|
|
2818
|
-
function k(M,
|
|
2818
|
+
function k(M, T, F) {
|
|
2819
2819
|
return function(B) {
|
|
2820
|
-
var
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
},
|
|
2824
|
-
|
|
2825
|
-
},
|
|
2820
|
+
var x = B || i.event;
|
|
2821
|
+
x.target = x.target || x.srcElement, x.preventDefault = x.preventDefault || function() {
|
|
2822
|
+
x.returnValue = !1;
|
|
2823
|
+
}, x.stopPropagation = x.stopPropagation || function() {
|
|
2824
|
+
x.cancelBubble = !0;
|
|
2825
|
+
}, x.which = x.which || x.keyCode, F.call(M, x);
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
2828
|
-
function C(M,
|
|
2829
|
-
var y = O(M,
|
|
2828
|
+
function C(M, T, F) {
|
|
2829
|
+
var y = O(M, T, F) || k(M, T, F);
|
|
2830
2830
|
return f.push({
|
|
2831
2831
|
wrapper: y,
|
|
2832
2832
|
element: M,
|
|
2833
|
-
type:
|
|
2833
|
+
type: T,
|
|
2834
2834
|
fn: F
|
|
2835
2835
|
}), y;
|
|
2836
2836
|
}
|
|
2837
|
-
function O(M,
|
|
2838
|
-
var y = I(M,
|
|
2837
|
+
function O(M, T, F) {
|
|
2838
|
+
var y = I(M, T, F);
|
|
2839
2839
|
if (y) {
|
|
2840
2840
|
var B = f[y].wrapper;
|
|
2841
2841
|
return f.splice(y, 1), B;
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
|
-
function I(M,
|
|
2844
|
+
function I(M, T, F) {
|
|
2845
2845
|
var y, B;
|
|
2846
2846
|
for (y = 0; y < f.length; y++)
|
|
2847
|
-
if (B = f[y], B.element === M && B.type ===
|
|
2847
|
+
if (B = f[y], B.element === M && B.type === T && B.fn === F)
|
|
2848
2848
|
return y;
|
|
2849
2849
|
}
|
|
2850
2850
|
}).call(this, typeof et < "u" ? et : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2952,8 +2952,8 @@ var Mo = { exports: {} };
|
|
|
2952
2952
|
i.nextTick = function(I) {
|
|
2953
2953
|
var M = new Array(arguments.length - 1);
|
|
2954
2954
|
if (arguments.length > 1)
|
|
2955
|
-
for (var
|
|
2956
|
-
M[
|
|
2955
|
+
for (var T = 1; T < arguments.length; T++)
|
|
2956
|
+
M[T - 1] = arguments[T];
|
|
2957
2957
|
v.push(new C(I, M)), v.length === 1 && !p && u(k);
|
|
2958
2958
|
};
|
|
2959
2959
|
function C(I, M) {
|
|
@@ -3059,10 +3059,10 @@ const Rt = /* @__PURE__ */ Ul(Gl), Xl = {
|
|
|
3059
3059
|
};
|
|
3060
3060
|
return I[e.animate] = !1, I[i] = s.value, I["toasty-type-" + l.value.type] = !0, l.value.theme && (I[l.value.theme] = !0), I;
|
|
3061
3061
|
}), f = R(() => {
|
|
3062
|
-
const
|
|
3062
|
+
const T = `f-icon-${l.value && l.value.type ? l.value.type.replace("toasty-type-", "") : "default"}`, F = {
|
|
3063
3063
|
"f-icon": !0
|
|
3064
3064
|
};
|
|
3065
|
-
return F[
|
|
3065
|
+
return F[T] = !0, F;
|
|
3066
3066
|
}), v = R(() => l.value.title || l.value.message), p = R(() => e.showCloseButton), m = R(() => !!l.value.buttons || !!t.slots.default), g = R(() => n.value === "en" ? {
|
|
3067
3067
|
wordBreak: "keep-all",
|
|
3068
3068
|
overflowWrap: "break-word"
|
|
@@ -3086,7 +3086,7 @@ const Rt = /* @__PURE__ */ Ul(Gl), Xl = {
|
|
|
3086
3086
|
class: "after-toast-msg text-right"
|
|
3087
3087
|
}, [!t.slots.default && ((I = l.value.buttons) == null ? void 0 : I.map((M) => d("span", {
|
|
3088
3088
|
class: C(M),
|
|
3089
|
-
onClick: (
|
|
3089
|
+
onClick: (T) => void 0
|
|
3090
3090
|
}, [M.text]))), t.slots.default && t.slots.default()])]);
|
|
3091
3091
|
};
|
|
3092
3092
|
return () => d("div", {
|
|
@@ -3458,23 +3458,23 @@ function Jl(e, t, n, o, a, i, l, s, c, r, u, f, v, p, m, g, b) {
|
|
|
3458
3458
|
hasRightFixedColumn: I
|
|
3459
3459
|
} = l, {
|
|
3460
3460
|
gridDataStyle: M,
|
|
3461
|
-
leftFixedGridDataStyle:
|
|
3461
|
+
leftFixedGridDataStyle: T,
|
|
3462
3462
|
rightFixedGridDataStyle: F
|
|
3463
3463
|
} = p, {
|
|
3464
3464
|
renderDataRow: y
|
|
3465
3465
|
} = Da(e, t, C, b, s, c, r, u, f, v, p, m, g), B = [y];
|
|
3466
|
-
function
|
|
3466
|
+
function x(j, D) {
|
|
3467
3467
|
const V = k(j);
|
|
3468
3468
|
return b.value.filter(($) => $.visible !== !1).map(($, A) => B[$.type]($, V, D, A));
|
|
3469
3469
|
}
|
|
3470
|
-
function
|
|
3470
|
+
function S() {
|
|
3471
3471
|
return d("div", {
|
|
3472
3472
|
ref: o,
|
|
3473
3473
|
class: "fv-grid-content-left-fixed"
|
|
3474
3474
|
}, [d("div", {
|
|
3475
3475
|
class: "fv-grid-data",
|
|
3476
|
-
style:
|
|
3477
|
-
}, [
|
|
3476
|
+
style: T.value
|
|
3477
|
+
}, [x(C.value.leftColumns.filter((j) => j.visible), "left")])]);
|
|
3478
3478
|
}
|
|
3479
3479
|
function w() {
|
|
3480
3480
|
return d("div", {
|
|
@@ -3483,7 +3483,7 @@ function Jl(e, t, n, o, a, i, l, s, c, r, u, f, v, p, m, g, b) {
|
|
|
3483
3483
|
}, [d("div", {
|
|
3484
3484
|
class: "fv-grid-data",
|
|
3485
3485
|
style: M.value
|
|
3486
|
-
}, [
|
|
3486
|
+
}, [x(C.value.primaryColumns.filter((j) => j.visible), "primary")])]);
|
|
3487
3487
|
}
|
|
3488
3488
|
function P() {
|
|
3489
3489
|
return d("div", {
|
|
@@ -3492,11 +3492,11 @@ function Jl(e, t, n, o, a, i, l, s, c, r, u, f, v, p, m, g, b) {
|
|
|
3492
3492
|
}, [d("div", {
|
|
3493
3493
|
class: "fv-grid-data",
|
|
3494
3494
|
style: F.value
|
|
3495
|
-
}, [
|
|
3495
|
+
}, [x(C.value.rightColumns.filter((j) => j.visible), "right")])]);
|
|
3496
3496
|
}
|
|
3497
3497
|
function E() {
|
|
3498
3498
|
const j = [];
|
|
3499
|
-
return O.value && j.push(
|
|
3499
|
+
return O.value && j.push(S()), j.push(w()), I.value && j.push(P()), j;
|
|
3500
3500
|
}
|
|
3501
3501
|
return {
|
|
3502
3502
|
renderDataArea: E
|
|
@@ -3515,12 +3515,12 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3515
3515
|
} = C, {
|
|
3516
3516
|
showLoading: I,
|
|
3517
3517
|
renderLoading: M
|
|
3518
|
-
} = Oa(e, c),
|
|
3518
|
+
} = Oa(e, c), T = Gn(e, /* @__PURE__ */ new Map(), k, C, l), {
|
|
3519
3519
|
dataView: F
|
|
3520
|
-
} =
|
|
3520
|
+
} = T, y = Xn(e, T, l, p, t), {
|
|
3521
3521
|
showSelection: B,
|
|
3522
|
-
selectedValues:
|
|
3523
|
-
} = y,
|
|
3522
|
+
selectedValues: x
|
|
3523
|
+
} = y, S = Ra(e, p, T, l, y, t), w = R(() => e.disabled), P = R(() => e.virtualized ? Math.min(T.dataView.value.length, a.value) : T.dataView.value.length), E = Yn(e, T), {
|
|
3524
3524
|
shouldRenderPagination: j
|
|
3525
3525
|
} = E, {
|
|
3526
3526
|
containerStyleObject: D
|
|
@@ -3538,12 +3538,12 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3538
3538
|
columnContext: ie,
|
|
3539
3539
|
updateColumnRenderContext: Q
|
|
3540
3540
|
} = H;
|
|
3541
|
-
oe(
|
|
3542
|
-
const fe = Aa(e, ie), be = Jn(e, t, y, l), ce = Qn(e, t, l, be, p), Z = Kn(e), de = eo(e, ce, Z), L = to(e,
|
|
3541
|
+
oe(T, K);
|
|
3542
|
+
const fe = Aa(e, ie), be = Jn(e, t, y, l), ce = Qn(e, t, l, be, p), Z = Kn(e), de = eo(e, ce, Z), L = to(e, T, ce, C, l, Z, de), q = no(e, i, T, P, 0, L), {
|
|
3543
3543
|
getVisualData: _
|
|
3544
3544
|
} = q, X = Na(e, ie), ne = oo(e, y), {
|
|
3545
3545
|
sidebarWidth: se
|
|
3546
|
-
} = ne, ue = ao(e,
|
|
3546
|
+
} = ne, ue = ao(e, T, p, ie, q, P, 0, se), {
|
|
3547
3547
|
onWheel: Ee,
|
|
3548
3548
|
dataGridWidth: we,
|
|
3549
3549
|
viewPortHeight: le,
|
|
@@ -3552,7 +3552,7 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3552
3552
|
updateVisibleRowsOnLatestVisibleScope: qe
|
|
3553
3553
|
} = ue, He = Ha(e, ie, r, Se, fe), {
|
|
3554
3554
|
calculateColumnsSize: Ye
|
|
3555
|
-
} = He, Qe = za(), gt = qa(r, v,
|
|
3555
|
+
} = He, Qe = za(), gt = qa(r, v, T, Qe, ue), ht = _a(e, t, H, T, fe, b, ue), U = R(() => {
|
|
3556
3556
|
const J = {
|
|
3557
3557
|
"fv-grid": !0,
|
|
3558
3558
|
"fv-grid-bordered": e.showBorder,
|
|
@@ -3566,11 +3566,11 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3566
3566
|
"fv-grid-wrap-content": g.value
|
|
3567
3567
|
})), {
|
|
3568
3568
|
renderDataArea: Ie
|
|
3569
|
-
} = Jl(e, t, u, f, v, X, H,
|
|
3569
|
+
} = Jl(e, t, u, f, v, X, H, T, ce, C, be, y, S, ue, q, Z, p), {
|
|
3570
3570
|
renderGridHeader: ke,
|
|
3571
3571
|
renderGridColumnResizeOverlay: Ze,
|
|
3572
3572
|
shouldShowHeader: Wt
|
|
3573
|
-
} = Wa(e, t, r, f, v, H,
|
|
3573
|
+
} = Wa(e, t, r, f, v, H, T, ht, gt, k, Qe, He, fe, y, ne, K, ue, Se, p), {
|
|
3574
3574
|
renderDataGridSidebar: Ut
|
|
3575
3575
|
} = Ua(e, be, y, ne, ue), {
|
|
3576
3576
|
renderDisableMask: Gt
|
|
@@ -3595,10 +3595,10 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3595
3595
|
r.value && Ye();
|
|
3596
3596
|
});
|
|
3597
3597
|
function Jt(J) {
|
|
3598
|
-
|
|
3598
|
+
T.collapseTo(J), T.reOrderVisibleIndex(), je();
|
|
3599
3599
|
}
|
|
3600
3600
|
function kt(J) {
|
|
3601
|
-
|
|
3601
|
+
T.expandTo(J), T.reOrderVisibleIndex(), je();
|
|
3602
3602
|
}
|
|
3603
3603
|
function St() {
|
|
3604
3604
|
const J = y.getSelectionRow();
|
|
@@ -3606,19 +3606,19 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3606
3606
|
}
|
|
3607
3607
|
function Qt() {
|
|
3608
3608
|
const J = St();
|
|
3609
|
-
|
|
3609
|
+
T.insertNewDataItem(J), p.value = _(0, P.value + 0 - 1);
|
|
3610
3610
|
}
|
|
3611
3611
|
function Kt() {
|
|
3612
3612
|
const J = St();
|
|
3613
|
-
|
|
3613
|
+
T.insertNewChildDataItem(J), p.value = _(0, P.value + 0 - 1);
|
|
3614
3614
|
}
|
|
3615
3615
|
function en(J, ae) {
|
|
3616
3616
|
const Me = p.value.find((Ne) => Ne.raw[s.value] === ae), Oe = Me ? Me.dataIndex - 1 : -1;
|
|
3617
|
-
|
|
3617
|
+
T.insertNewChildDataItems(J, Oe);
|
|
3618
3618
|
}
|
|
3619
3619
|
function tn() {
|
|
3620
|
-
const J = St(), ae =
|
|
3621
|
-
|
|
3620
|
+
const J = St(), ae = S.getNextSelectableHierarchyItemId(J);
|
|
3621
|
+
T.removeHierarchyDataItem(J), p.value = _(0, P.value + 0 - 1), ae && S.selectItemById(ae);
|
|
3622
3622
|
}
|
|
3623
3623
|
function Ft(J) {
|
|
3624
3624
|
ce.onEditingRow(J);
|
|
@@ -3630,16 +3630,16 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3630
3630
|
ce.cancelEditingRow(J);
|
|
3631
3631
|
}
|
|
3632
3632
|
function G(J) {
|
|
3633
|
-
J && (i.value = J, $(i), Q(i.value), oe(
|
|
3633
|
+
J && (i.value = J, $(i), Q(i.value), oe(T, K), Ye());
|
|
3634
3634
|
}
|
|
3635
3635
|
ee(() => e.columns, (J) => {
|
|
3636
3636
|
G(J);
|
|
3637
3637
|
});
|
|
3638
3638
|
function Y(J, ae) {
|
|
3639
|
-
J && (
|
|
3639
|
+
J && (T.load(J), T.reOrderVisibleIndex(), ae != null && ae.keepScrollPosition ? ue.scrollTo(ue.offsetY.value) : je());
|
|
3640
3640
|
}
|
|
3641
3641
|
function te(J) {
|
|
3642
|
-
|
|
3642
|
+
S.selectItemById(J);
|
|
3643
3643
|
}
|
|
3644
3644
|
function me(J) {
|
|
3645
3645
|
const ae = p.value.find((Me) => Me.raw[l.idField.value] === J);
|
|
@@ -3649,7 +3649,7 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3649
3649
|
be.activeRowById(J);
|
|
3650
3650
|
}
|
|
3651
3651
|
function ze(J) {
|
|
3652
|
-
|
|
3652
|
+
S.selectItemByIds(J);
|
|
3653
3653
|
}
|
|
3654
3654
|
function $e() {
|
|
3655
3655
|
return y.getSelectedItems();
|
|
@@ -3664,7 +3664,7 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3664
3664
|
return y.getSelectionRow();
|
|
3665
3665
|
}
|
|
3666
3666
|
function Ae(J) {
|
|
3667
|
-
|
|
3667
|
+
S.unSelectItemByIds(J);
|
|
3668
3668
|
}
|
|
3669
3669
|
function De() {
|
|
3670
3670
|
return y.currentSelectedDataId.value;
|
|
@@ -3696,15 +3696,15 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3696
3696
|
} = Me;
|
|
3697
3697
|
Pe && !Ke(ae[Pe]) && (Ne.collapse = ae[Pe]), st && !Ke(ae[st]) && (Ne.checked = ae[st]), lt && !Ke(ae[lt]) && (Ne.disabled = ae[lt]), rt && !Ke(ae[rt]) && (Ne.visible = ae[rt]);
|
|
3698
3698
|
}
|
|
3699
|
-
p.value = [...p.value.slice(0, Tn), Ne, ...p.value.slice(Tn + 1)],
|
|
3699
|
+
p.value = [...p.value.slice(0, Tn), Ne, ...p.value.slice(Tn + 1)], T.updateSummary();
|
|
3700
3700
|
}
|
|
3701
3701
|
}
|
|
3702
3702
|
}
|
|
3703
3703
|
function Tt(J) {
|
|
3704
|
-
return Object.prototype.hasOwnProperty.call(J, "raw") ?
|
|
3704
|
+
return Object.prototype.hasOwnProperty.call(J, "raw") ? T.hasRealChildren(J.raw) : T.hasRealChildren(J);
|
|
3705
3705
|
}
|
|
3706
3706
|
function It(J) {
|
|
3707
|
-
const ae =
|
|
3707
|
+
const ae = T.dataView.value.find((Me) => Me[s.value] === J);
|
|
3708
3708
|
return ae ? ae[O.value] : "";
|
|
3709
3709
|
}
|
|
3710
3710
|
function la() {
|
|
@@ -3721,7 +3721,7 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3721
3721
|
Me && be.changeRow(Me);
|
|
3722
3722
|
}
|
|
3723
3723
|
function ca() {
|
|
3724
|
-
y.keepSelectingOnPaging.value || Ve(),
|
|
3724
|
+
y.keepSelectingOnPaging.value || Ve(), T.updateVisibleDataSummary(p.value);
|
|
3725
3725
|
}
|
|
3726
3726
|
t.expose({
|
|
3727
3727
|
activeRowById: ve,
|
|
@@ -3759,7 +3759,7 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3759
3759
|
...D.value,
|
|
3760
3760
|
borderRadius: "5px"
|
|
3761
3761
|
}));
|
|
3762
|
-
io(e, t,
|
|
3762
|
+
io(e, t, T, ue, E, y);
|
|
3763
3763
|
const fa = R(() => ({
|
|
3764
3764
|
"d-flex": !0,
|
|
3765
3765
|
"justify-content-between": j.value && B.value,
|
|
@@ -3770,7 +3770,7 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3770
3770
|
"align-items-center": !0
|
|
3771
3771
|
})), {
|
|
3772
3772
|
renderDataGridSummary: ma
|
|
3773
|
-
} = Ja(e,
|
|
3773
|
+
} = Ja(e, T, H);
|
|
3774
3774
|
return () => d("div", {
|
|
3775
3775
|
ref: c,
|
|
3776
3776
|
class: U.value,
|
|
@@ -3786,7 +3786,7 @@ const Ql = /* @__PURE__ */ he({
|
|
|
3786
3786
|
class: fa.value
|
|
3787
3787
|
}, [B.value && d("div", {
|
|
3788
3788
|
class: pa.value
|
|
3789
|
-
}, [d("div", null, ["已选:" +
|
|
3789
|
+
}, [d("div", null, ["已选:" + x.value.length, xe(" 条")])])]), Ze(), w.value && Gt()]);
|
|
3790
3790
|
}
|
|
3791
3791
|
});
|
|
3792
3792
|
Nn(Ql);
|
|
@@ -5777,7 +5777,7 @@ function kr(e, t) {
|
|
|
5777
5777
|
}
|
|
5778
5778
|
}
|
|
5779
5779
|
}
|
|
5780
|
-
function
|
|
5780
|
+
function T($) {
|
|
5781
5781
|
if (!a.value || !i.value || !l.value || !r.value)
|
|
5782
5782
|
return;
|
|
5783
5783
|
$.subtract(a.value);
|
|
@@ -5788,7 +5788,7 @@ function kr(e, t) {
|
|
|
5788
5788
|
if (!u.value)
|
|
5789
5789
|
return;
|
|
5790
5790
|
const A = Te.fromEvent($);
|
|
5791
|
-
A &&
|
|
5791
|
+
A && T(A);
|
|
5792
5792
|
}
|
|
5793
5793
|
function y() {
|
|
5794
5794
|
if (n.value) {
|
|
@@ -5818,45 +5818,45 @@ function kr(e, t) {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
a.value = void 0, i.value = null, l.value = null, s.value = null, c.value = null, r.value = null, u.value = null, document.removeEventListener("mousemove", F), document.removeEventListener("mouseup", B);
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5821
|
+
function x() {
|
|
5822
5822
|
document.addEventListener("mousemove", F), document.addEventListener("mouseup", B);
|
|
5823
5823
|
}
|
|
5824
|
-
function
|
|
5825
|
-
$ instanceof MouseEvent && $.button === 2 || g.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), a.value = Te.fromEvent($), u.value = $.target, C($),
|
|
5824
|
+
function S($) {
|
|
5825
|
+
$ instanceof MouseEvent && $.button === 2 || g.value && (document.body.click(), $.stopPropagation(), $.preventDefault(), a.value = Te.fromEvent($), u.value = $.target, C($), x());
|
|
5826
5826
|
}
|
|
5827
5827
|
function w($) {
|
|
5828
5828
|
return n.value = $, p.value && d(Be, null, [d("div", {
|
|
5829
5829
|
class: "fv-resizable-handle fv-resizable-n",
|
|
5830
5830
|
type: "n",
|
|
5831
|
-
onMousedown: (A) =>
|
|
5831
|
+
onMousedown: (A) => S(A)
|
|
5832
5832
|
}, null), d("div", {
|
|
5833
5833
|
class: "fv-resizable-handle fv-resizable-e",
|
|
5834
5834
|
type: "e",
|
|
5835
|
-
onMousedown: (A) =>
|
|
5835
|
+
onMousedown: (A) => S(A)
|
|
5836
5836
|
}, null), d("div", {
|
|
5837
5837
|
class: "fv-resizable-handle fv-resizable-s",
|
|
5838
5838
|
type: "s",
|
|
5839
|
-
onMousedown: (A) =>
|
|
5839
|
+
onMousedown: (A) => S(A)
|
|
5840
5840
|
}, null), d("div", {
|
|
5841
5841
|
class: "fv-resizable-handle fv-resizable-w",
|
|
5842
5842
|
type: "w",
|
|
5843
|
-
onMousedown: (A) =>
|
|
5843
|
+
onMousedown: (A) => S(A)
|
|
5844
5844
|
}, null), d("div", {
|
|
5845
5845
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
5846
5846
|
type: "ne",
|
|
5847
|
-
onMousedown: (A) =>
|
|
5847
|
+
onMousedown: (A) => S(A)
|
|
5848
5848
|
}, null), d("div", {
|
|
5849
5849
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
5850
5850
|
type: "se",
|
|
5851
|
-
onMousedown: (A) =>
|
|
5851
|
+
onMousedown: (A) => S(A)
|
|
5852
5852
|
}, null), d("div", {
|
|
5853
5853
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
5854
5854
|
type: "sw",
|
|
5855
|
-
onMousedown: (A) =>
|
|
5855
|
+
onMousedown: (A) => S(A)
|
|
5856
5856
|
}, null), d("div", {
|
|
5857
5857
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
5858
5858
|
type: "nw",
|
|
5859
|
-
onMousedown: (A) =>
|
|
5859
|
+
onMousedown: (A) => S(A)
|
|
5860
5860
|
}, null)]);
|
|
5861
5861
|
}
|
|
5862
5862
|
function P($ = !0) {
|
|
@@ -5937,9 +5937,9 @@ function Fr(e, t, n) {
|
|
|
5937
5937
|
return !1;
|
|
5938
5938
|
}
|
|
5939
5939
|
function m() {
|
|
5940
|
-
var
|
|
5940
|
+
var x, S;
|
|
5941
5941
|
let F = f.value.x + u.value.x, y = f.value.y + u.value.y;
|
|
5942
|
-
i.value === "x" ? (F = ((
|
|
5942
|
+
i.value === "x" ? (F = ((x = r.value) == null ? void 0 : x.x) || 0, f.value.x = 0) : i.value === "y" && (y = ((S = r.value) == null ? void 0 : S.y) || 0, f.value.y = 0);
|
|
5943
5943
|
const B = `translate3d(${Math.round(F)}px, ${Math.round(y)}px, 0px)`;
|
|
5944
5944
|
o.value && (o.value.style.transform = B), v.value.x = F, v.value.y = y;
|
|
5945
5945
|
}
|
|
@@ -5981,7 +5981,7 @@ function Fr(e, t, n) {
|
|
|
5981
5981
|
const y = F.target || F.srcElement;
|
|
5982
5982
|
l.value !== void 0 && y && !p(y, l.value) || a.value !== !1 && (document.body.click(), F.stopPropagation(), F.preventDefault(), r.value = Te.fromEvent(F, o.value), I(), O());
|
|
5983
5983
|
}
|
|
5984
|
-
function
|
|
5984
|
+
function T(F, y, B) {
|
|
5985
5985
|
if (a.value && y) {
|
|
5986
5986
|
if (F)
|
|
5987
5987
|
l.value = F;
|
|
@@ -5989,15 +5989,15 @@ function Fr(e, t, n) {
|
|
|
5989
5989
|
if (e.dragHandle instanceof HTMLElement)
|
|
5990
5990
|
l.value = e.dragHandle;
|
|
5991
5991
|
else if (typeof e.dragHandle == "string") {
|
|
5992
|
-
const
|
|
5993
|
-
|
|
5992
|
+
const x = y.querySelector(e.dragHandle);
|
|
5993
|
+
x && (l.value = x);
|
|
5994
5994
|
}
|
|
5995
5995
|
}
|
|
5996
5996
|
o.value = y, s.value = B, l.value ? (l.value.classList.add("ng-draggable"), l.value.addEventListener("mousedown", M)) : a.value = !1;
|
|
5997
5997
|
}
|
|
5998
5998
|
}
|
|
5999
5999
|
return {
|
|
6000
|
-
registerDraggle:
|
|
6000
|
+
registerDraggle: T,
|
|
6001
6001
|
resetTranslate: I
|
|
6002
6002
|
};
|
|
6003
6003
|
}
|
|
@@ -6039,7 +6039,7 @@ const ft = /* @__PURE__ */ he({
|
|
|
6039
6039
|
} = Xe();
|
|
6040
6040
|
k.value === "错误提示" && (k.value = I("messageBox.errorTitle"));
|
|
6041
6041
|
const M = h(!1);
|
|
6042
|
-
function
|
|
6042
|
+
function T(U, re) {
|
|
6043
6043
|
const Ie = re ? "accept" : "cancel";
|
|
6044
6044
|
Promise.resolve().then(() => {
|
|
6045
6045
|
var ke;
|
|
@@ -6055,16 +6055,16 @@ const ft = /* @__PURE__ */ he({
|
|
|
6055
6055
|
text: I("messageBox.cancel") || "取消",
|
|
6056
6056
|
class: "btn btn-secondary",
|
|
6057
6057
|
handle: (U) => {
|
|
6058
|
-
|
|
6058
|
+
T(U, !1);
|
|
6059
6059
|
}
|
|
6060
6060
|
}, {
|
|
6061
6061
|
name: "accept",
|
|
6062
6062
|
text: I("messageBox.ok") || "确定",
|
|
6063
6063
|
class: "btn btn-primary",
|
|
6064
6064
|
handle: (U) => {
|
|
6065
|
-
|
|
6065
|
+
T(U, !0);
|
|
6066
6066
|
}
|
|
6067
|
-
}], y = h(e.buttons && e.buttons.length ? e.buttons : F), B = R(() => !!r.value),
|
|
6067
|
+
}], y = h(e.buttons && e.buttons.length ? e.buttons : F), B = R(() => !!r.value), x = R(() => !!b.value && !!y.value), S = h(), w = h(), P = h(!1), {
|
|
6068
6068
|
renderResizeBar: E,
|
|
6069
6069
|
maximize: j,
|
|
6070
6070
|
restore: D,
|
|
@@ -6087,7 +6087,7 @@ const ft = /* @__PURE__ */ he({
|
|
|
6087
6087
|
U !== re && (k.value = U);
|
|
6088
6088
|
}), ee(() => e.modelValue, (U, re) => {
|
|
6089
6089
|
U !== re && (a.value = U, a.value && e.draggable && ge(() => {
|
|
6090
|
-
w.value && !C.value && (C.value = w.value.parentElement, V.value = C.value, K(
|
|
6090
|
+
w.value && !C.value && (C.value = w.value.parentElement, V.value = C.value, K(S.value, w.value, V.value), H());
|
|
6091
6091
|
}), U || (C.value && (C.value = null), ie())), a.value ? M.value = oe() : (P.value = !1, A.value = e.draggable);
|
|
6092
6092
|
}), ee(() => e.showHeader, (U, re) => {
|
|
6093
6093
|
U !== re && (c.value = U);
|
|
@@ -6177,13 +6177,13 @@ const ft = /* @__PURE__ */ he({
|
|
|
6177
6177
|
ya(() => {
|
|
6178
6178
|
M.value = oe();
|
|
6179
6179
|
}), Ce(() => {
|
|
6180
|
-
w.value && !C.value && (C.value = w.value.parentElement, V.value = C.value, K(
|
|
6180
|
+
w.value && !C.value && (C.value = w.value.parentElement, V.value = C.value, K(S.value, w.value, V.value)), Q.value && document.body.classList.add("modal-open"), le = Mr(e, t), Se = Pr(e, t);
|
|
6181
6181
|
}), Ge(() => {
|
|
6182
6182
|
z && z(), le && le.remove(), Se && Se.remove();
|
|
6183
6183
|
}), t.expose({
|
|
6184
6184
|
modalElementRef: w,
|
|
6185
6185
|
updateModalOptions: we,
|
|
6186
|
-
close:
|
|
6186
|
+
close: T,
|
|
6187
6187
|
maxDialog: ue,
|
|
6188
6188
|
isMaximized: P
|
|
6189
6189
|
});
|
|
@@ -6200,7 +6200,7 @@ const ft = /* @__PURE__ */ he({
|
|
|
6200
6200
|
class: _.value
|
|
6201
6201
|
}, null)]), u.value && d("li", {
|
|
6202
6202
|
class: "f-btn-icon f-bare",
|
|
6203
|
-
onClick: (U) =>
|
|
6203
|
+
onClick: (U) => T(U, !1),
|
|
6204
6204
|
style: "pointer-events: auto;"
|
|
6205
6205
|
}, [d("span", {
|
|
6206
6206
|
class: "f-icon modal_close"
|
|
@@ -6227,7 +6227,7 @@ const ft = /* @__PURE__ */ he({
|
|
|
6227
6227
|
}
|
|
6228
6228
|
function He() {
|
|
6229
6229
|
return d("div", {
|
|
6230
|
-
ref:
|
|
6230
|
+
ref: S,
|
|
6231
6231
|
class: "modal-header",
|
|
6232
6232
|
style: q.value
|
|
6233
6233
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : d("div", {
|
|
@@ -6242,13 +6242,13 @@ const ft = /* @__PURE__ */ he({
|
|
|
6242
6242
|
}, [je()])]);
|
|
6243
6243
|
}
|
|
6244
6244
|
function Ye() {
|
|
6245
|
-
return t.slots.footerTemplate ? t.slots.footerTemplate() :
|
|
6245
|
+
return t.slots.footerTemplate ? t.slots.footerTemplate() : x.value && qe();
|
|
6246
6246
|
}
|
|
6247
6247
|
function Qe(U) {
|
|
6248
6248
|
if (U.stopPropagation(), e.allowClickMaskToClose) {
|
|
6249
6249
|
if (U.target !== O.value)
|
|
6250
6250
|
return;
|
|
6251
|
-
|
|
6251
|
+
T(U, !1);
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
6254
|
function gt() {
|
|
@@ -6388,7 +6388,7 @@ class Lo {
|
|
|
6388
6388
|
showHeader: !0
|
|
6389
6389
|
}, t)), a = h(!0), i = o.value.acceptCallback || (() => {
|
|
6390
6390
|
}), l = o.value.rejectCallback || (() => {
|
|
6391
|
-
}), s = o.value.closedCallback || ((M,
|
|
6391
|
+
}), s = o.value.closedCallback || ((M, T) => {
|
|
6392
6392
|
}), c = o.value.resizeHandle || ((M) => {
|
|
6393
6393
|
}), r = t.stopMoveHandle || ((M) => {
|
|
6394
6394
|
});
|
|
@@ -6396,19 +6396,19 @@ class Lo {
|
|
|
6396
6396
|
const f = $o(o.value), v = (M) => {
|
|
6397
6397
|
var F;
|
|
6398
6398
|
a.value = !1;
|
|
6399
|
-
const
|
|
6400
|
-
s(M, this.isUseEscCloseModal.value ? "esc" :
|
|
6399
|
+
const T = (F = M == null ? void 0 : M.target) == null ? void 0 : F.classList.contains("modal_close");
|
|
6400
|
+
s(M, this.isUseEscCloseModal.value ? "esc" : T ? "icon" : "button");
|
|
6401
6401
|
}, p = (M) => {
|
|
6402
6402
|
v(M), u && ge(() => {
|
|
6403
6403
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], on(null, n), u = null, this.modalRef.value = null, this.modalRefs) {
|
|
6404
|
-
const
|
|
6405
|
-
|
|
6404
|
+
const T = Object.keys(this.modalRefs).map((F) => Number(F));
|
|
6405
|
+
T.length > 0 ? this.activeModalIndex.value = Math.max(...T) : this.activeModalIndex.value = 0;
|
|
6406
6406
|
}
|
|
6407
6407
|
this.isUseEscCloseModal.value = !1;
|
|
6408
6408
|
});
|
|
6409
6409
|
}, m = (M) => {
|
|
6410
|
-
var
|
|
6411
|
-
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((
|
|
6410
|
+
var T;
|
|
6411
|
+
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((T = this.activeModalInstance.value) == null || T.close(M == null ? void 0 : M.event));
|
|
6412
6412
|
}, {
|
|
6413
6413
|
width: g,
|
|
6414
6414
|
height: b
|
|
@@ -6429,8 +6429,8 @@ class Lo {
|
|
|
6429
6429
|
default: () => [f && f(this.app)]
|
|
6430
6430
|
});
|
|
6431
6431
|
return u = ((M) => {
|
|
6432
|
-
const
|
|
6433
|
-
return
|
|
6432
|
+
const T = ba(C, M);
|
|
6433
|
+
return T.appContext = this.appContext, on(T, n), T;
|
|
6434
6434
|
})({
|
|
6435
6435
|
...o.value
|
|
6436
6436
|
// 'onUpdate:modelValue': onUpdateModelValue,
|
|
@@ -6591,23 +6591,23 @@ function Or(e, t, n) {
|
|
|
6591
6591
|
function u() {
|
|
6592
6592
|
return !0;
|
|
6593
6593
|
}
|
|
6594
|
-
function f(
|
|
6595
|
-
if (!
|
|
6594
|
+
function f(x) {
|
|
6595
|
+
if (!x || !x.value)
|
|
6596
6596
|
return null;
|
|
6597
|
-
const
|
|
6597
|
+
const S = h(x == null ? void 0 : x.value.parent), w = f(S);
|
|
6598
6598
|
return w || null;
|
|
6599
6599
|
}
|
|
6600
|
-
function v(
|
|
6600
|
+
function v(x = t) {
|
|
6601
6601
|
var E;
|
|
6602
|
-
const { componentInstance:
|
|
6603
|
-
if (!
|
|
6602
|
+
const { componentInstance: S, designerItemElementRef: w } = x;
|
|
6603
|
+
if (!S || !S.value)
|
|
6604
6604
|
return null;
|
|
6605
|
-
const { getCustomButtons: P } =
|
|
6606
|
-
return
|
|
6605
|
+
const { getCustomButtons: P } = S.value;
|
|
6606
|
+
return S.value.canMove || S.value.canAdd || S.value.canDelete || P && ((E = P()) != null && E.length) ? w : v(x.parent);
|
|
6607
6607
|
}
|
|
6608
6608
|
function p() {
|
|
6609
6609
|
}
|
|
6610
|
-
function m(
|
|
6610
|
+
function m(x) {
|
|
6611
6611
|
return !!n;
|
|
6612
6612
|
}
|
|
6613
6613
|
function g() {
|
|
@@ -6615,42 +6615,42 @@ function Or(e, t, n) {
|
|
|
6615
6615
|
}
|
|
6616
6616
|
function b() {
|
|
6617
6617
|
}
|
|
6618
|
-
function k(
|
|
6618
|
+
function k(x, S) {
|
|
6619
6619
|
}
|
|
6620
|
-
function C(
|
|
6621
|
-
const { componentType:
|
|
6622
|
-
let P = zn(
|
|
6623
|
-
const E =
|
|
6624
|
-
return P && !P.id && P.type ===
|
|
6620
|
+
function C(x) {
|
|
6621
|
+
const { componentType: S } = x, w = ye("designer-host-service");
|
|
6622
|
+
let P = zn(S, x, w);
|
|
6623
|
+
const E = S.toLowerCase().replace(/-/g, "_");
|
|
6624
|
+
return P && !P.id && P.type === S && (P.id = `${E}_${Math.random().toString().slice(2, 6)}`), P;
|
|
6625
6625
|
}
|
|
6626
|
-
function O(
|
|
6626
|
+
function O(x) {
|
|
6627
6627
|
}
|
|
6628
|
-
function I(...
|
|
6628
|
+
function I(...x) {
|
|
6629
6629
|
return [];
|
|
6630
6630
|
}
|
|
6631
6631
|
function M() {
|
|
6632
6632
|
}
|
|
6633
|
-
function x
|
|
6633
|
+
function T(x) {
|
|
6634
6634
|
var w;
|
|
6635
6635
|
if (!(t != null && t.schema))
|
|
6636
6636
|
return;
|
|
6637
|
-
let
|
|
6637
|
+
let S = "";
|
|
6638
6638
|
{
|
|
6639
6639
|
const { text: P, title: E, label: j, mainTitle: D, name: V, type: $ } = t.schema;
|
|
6640
|
-
|
|
6640
|
+
S = P || E || j || D || V || ((w = W[$]) == null ? void 0 : w.name);
|
|
6641
6641
|
}
|
|
6642
|
-
|
|
6643
|
-
componentTitle:
|
|
6644
|
-
parentPathName:
|
|
6642
|
+
S && (!i && x && (i = x.formSchemaUtils), i.getControlBasicInfoMap().set(t.schema.id, {
|
|
6643
|
+
componentTitle: S,
|
|
6644
|
+
parentPathName: S
|
|
6645
6645
|
}));
|
|
6646
6646
|
}
|
|
6647
|
-
function F(
|
|
6647
|
+
function F(x) {
|
|
6648
6648
|
var E;
|
|
6649
|
-
const { changeObject:
|
|
6650
|
-
["text", "title", "label", "name", "mainTitle"].includes((E =
|
|
6649
|
+
const { changeObject: S } = x, { propertyID: w, propertyValue: P } = S;
|
|
6650
|
+
["text", "title", "label", "name", "mainTitle"].includes((E = x == null ? void 0 : x.changeObject) == null ? void 0 : E.propertyID) && w && P && T();
|
|
6651
6651
|
}
|
|
6652
|
-
function y(
|
|
6653
|
-
F(
|
|
6652
|
+
function y(x) {
|
|
6653
|
+
F(x);
|
|
6654
6654
|
}
|
|
6655
6655
|
return a.value = {
|
|
6656
6656
|
canMove: l(),
|
|
@@ -6677,7 +6677,7 @@ function Or(e, t, n) {
|
|
|
6677
6677
|
triggerBelongedComponentToDeleteWhenDeleted: h(!1),
|
|
6678
6678
|
onPropertyChanged: y,
|
|
6679
6679
|
getCustomButtons: p,
|
|
6680
|
-
setComponentBasicInfoMap:
|
|
6680
|
+
setComponentBasicInfoMap: T
|
|
6681
6681
|
}, a;
|
|
6682
6682
|
}
|
|
6683
6683
|
const Ao = /* @__PURE__ */ he({
|
|
@@ -6732,7 +6732,7 @@ const Ao = /* @__PURE__ */ he({
|
|
|
6732
6732
|
r.value[l.value].push($), t.emit("addComponent");
|
|
6733
6733
|
}
|
|
6734
6734
|
}
|
|
6735
|
-
function
|
|
6735
|
+
function T() {
|
|
6736
6736
|
return o.value && d("div", {
|
|
6737
6737
|
role: "button",
|
|
6738
6738
|
class: "btn component-settings-button",
|
|
@@ -6782,23 +6782,23 @@ const Ao = /* @__PURE__ */ he({
|
|
|
6782
6782
|
class: "icon-text"
|
|
6783
6783
|
}, [$.text])]));
|
|
6784
6784
|
}
|
|
6785
|
-
function
|
|
6785
|
+
function x(D) {
|
|
6786
6786
|
return d("div", {
|
|
6787
6787
|
class: "component-btn-group",
|
|
6788
6788
|
"data-noattach": "true"
|
|
6789
|
-
}, [d("div", null, [
|
|
6789
|
+
}, [d("div", null, [T(), y(), F(D), B()])]);
|
|
6790
6790
|
}
|
|
6791
6791
|
ee(() => e.modelValue, (D) => {
|
|
6792
6792
|
r.value = D, g.schema = D;
|
|
6793
6793
|
});
|
|
6794
|
-
function
|
|
6794
|
+
function S(D) {
|
|
6795
6795
|
window.scrollContainerList || (window.scrollContainerList = /* @__PURE__ */ new Set());
|
|
6796
6796
|
const V = D.getAttribute("id");
|
|
6797
6797
|
V && window.scrollContainerList.add(V);
|
|
6798
6798
|
}
|
|
6799
6799
|
function w(D) {
|
|
6800
6800
|
const V = D.target;
|
|
6801
|
-
|
|
6801
|
+
S(V), Wl(V);
|
|
6802
6802
|
}
|
|
6803
6803
|
function P() {
|
|
6804
6804
|
var D, V;
|
|
@@ -6837,7 +6837,7 @@ const Ao = /* @__PURE__ */ he({
|
|
|
6837
6837
|
class: C.value,
|
|
6838
6838
|
style: O.value,
|
|
6839
6839
|
onClick: j
|
|
6840
|
-
}, [
|
|
6840
|
+
}, [x(r.value), t.slots.default && t.slots.default()]);
|
|
6841
6841
|
}
|
|
6842
6842
|
});
|
|
6843
6843
|
class Rr extends Bt {
|
|
@@ -7175,12 +7175,12 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7175
7175
|
function M(L, q) {
|
|
7176
7176
|
L.classList.contains(q) || L.classList.add(q);
|
|
7177
7177
|
}
|
|
7178
|
-
function
|
|
7178
|
+
function T(L, q) {
|
|
7179
7179
|
L.classList.remove(q);
|
|
7180
7180
|
}
|
|
7181
7181
|
function F(L) {
|
|
7182
7182
|
const { parentElement: q } = L;
|
|
7183
|
-
q && (L.scrollWidth > q.offsetWidth ? M(L, "farris-title-text-custom") :
|
|
7183
|
+
q && (L.scrollWidth > q.offsetWidth ? M(L, "farris-title-text-custom") : T(L, "farris-title-text-custom"));
|
|
7184
7184
|
}
|
|
7185
7185
|
ee(() => e.activeId, (L, q) => {
|
|
7186
7186
|
L !== q && I(L);
|
|
@@ -7195,12 +7195,12 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7195
7195
|
const B = (L) => {
|
|
7196
7196
|
L.preventDefault(), L.stopPropagation();
|
|
7197
7197
|
};
|
|
7198
|
-
function
|
|
7198
|
+
function x(L) {
|
|
7199
7199
|
l.value = l.value.filter((q) => q.props.id !== L), s.value === L && (s.value = "", b(l));
|
|
7200
7200
|
}
|
|
7201
|
-
function
|
|
7201
|
+
function S(L, q, _ = !1) {
|
|
7202
7202
|
const X = l.value.findIndex((ne) => ne.props.id === q);
|
|
7203
|
-
|
|
7203
|
+
x(q), B(L), ge(() => {
|
|
7204
7204
|
v.value++, y(n), _ && (c.value = !0), t.emit("tabRemove", {
|
|
7205
7205
|
removeIndex: X,
|
|
7206
7206
|
removeId: q,
|
|
@@ -7254,7 +7254,7 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7254
7254
|
var ne, se;
|
|
7255
7255
|
D(L);
|
|
7256
7256
|
const _ = o.schema.contents, X = _ == null ? void 0 : _.findIndex((ue) => ue.id === q);
|
|
7257
|
-
!_ || X === -1 || X === void 0 || (ne = i == null ? void 0 : i.designerContext) != null && ne.checkCanDeleteControl && !i.designerContext.checkCanDeleteControl(_[X]) || ($(q), V(q), _ == null || _.splice(X, 1),
|
|
7257
|
+
!_ || X === -1 || X === void 0 || (ne = i == null ? void 0 : i.designerContext) != null && ne.checkCanDeleteControl && !i.designerContext.checkCanDeleteControl(_[X]) || ($(q), V(q), _ == null || _.splice(X, 1), x(q), k(), (se = o == null ? void 0 : o.setupContext) == null || se.emit("selectionChange"), at.value++);
|
|
7258
7258
|
}
|
|
7259
7259
|
function z() {
|
|
7260
7260
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
@@ -7331,7 +7331,7 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7331
7331
|
activeId: s,
|
|
7332
7332
|
addTab: E,
|
|
7333
7333
|
changeTitleStyle: y,
|
|
7334
|
-
removeTab:
|
|
7334
|
+
removeTab: S,
|
|
7335
7335
|
selectTab: P,
|
|
7336
7336
|
tabPages: l,
|
|
7337
7337
|
updateTab: j,
|
|
@@ -7543,7 +7543,7 @@ function Hr(e, t, n) {
|
|
|
7543
7543
|
};
|
|
7544
7544
|
if (C.class) {
|
|
7545
7545
|
const M = (I = C.menuClass) == null ? void 0 : I.split(" ");
|
|
7546
|
-
M && M.length && M.reduce((
|
|
7546
|
+
M && M.length && M.reduce((T, F) => (T[F] = !0, T), O);
|
|
7547
7547
|
}
|
|
7548
7548
|
return O;
|
|
7549
7549
|
}
|
|
@@ -7555,7 +7555,7 @@ function Hr(e, t, n) {
|
|
|
7555
7555
|
"f-rt-dropdown": !0,
|
|
7556
7556
|
"text-truncate": !0
|
|
7557
7557
|
}, I = (M = C.dropdownClass) == null ? void 0 : M.split(" ");
|
|
7558
|
-
return I && I.length && I.reduce((
|
|
7558
|
+
return I && I.length && I.reduce((T, F) => (T[F] = !0, T), O), O;
|
|
7559
7559
|
}
|
|
7560
7560
|
function u(C) {
|
|
7561
7561
|
const O = {
|
|
@@ -7566,7 +7566,7 @@ function Hr(e, t, n) {
|
|
|
7566
7566
|
"farris-component": !0,
|
|
7567
7567
|
"text-truncate": !0
|
|
7568
7568
|
}, I = (C.class || "").split(" ");
|
|
7569
|
-
return I && I.length && I.reduce((M,
|
|
7569
|
+
return I && I.length && I.reduce((M, T) => (M[T] = !0, M), O), O;
|
|
7570
7570
|
}
|
|
7571
7571
|
let f;
|
|
7572
7572
|
const v = /* @__PURE__ */ new Map();
|
|
@@ -7575,8 +7575,8 @@ function Hr(e, t, n) {
|
|
|
7575
7575
|
const M = I ? I.id : "__top_item__";
|
|
7576
7576
|
if (O.children && O.children.length && (O.expanded = !O.expanded, O.expanded)) {
|
|
7577
7577
|
if (v.has(M) && v.get(M) !== O) {
|
|
7578
|
-
const
|
|
7579
|
-
|
|
7578
|
+
const T = v.get(M);
|
|
7579
|
+
T && (T.expanded = !1, v.delete(M));
|
|
7580
7580
|
}
|
|
7581
7581
|
v.set(M, O);
|
|
7582
7582
|
}
|
|
@@ -7588,7 +7588,7 @@ function Hr(e, t, n) {
|
|
|
7588
7588
|
id: I.id
|
|
7589
7589
|
}, [d("span", {
|
|
7590
7590
|
class: u(I),
|
|
7591
|
-
onClick: (
|
|
7591
|
+
onClick: (T) => p(T, I, C)
|
|
7592
7592
|
}, [I.text, d("i", {
|
|
7593
7593
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
7594
7594
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
@@ -7598,18 +7598,18 @@ function Hr(e, t, n) {
|
|
|
7598
7598
|
const {
|
|
7599
7599
|
height: y,
|
|
7600
7600
|
left: B,
|
|
7601
|
-
top:
|
|
7601
|
+
top: x
|
|
7602
7602
|
} = M[0], {
|
|
7603
|
-
width:
|
|
7603
|
+
width: S,
|
|
7604
7604
|
height: w
|
|
7605
7605
|
} = I.getBoundingClientRect(), {
|
|
7606
7606
|
marginTop: P,
|
|
7607
7607
|
marginBottom: E
|
|
7608
|
-
} = getComputedStyle(I), j = Math.ceil(parseFloat(P)) + Math.ceil(parseFloat(E)), D =
|
|
7608
|
+
} = getComputedStyle(I), j = Math.ceil(parseFloat(P)) + Math.ceil(parseFloat(E)), D = x + y, V = O == null ? void 0 : O.getBoundingClientRect();
|
|
7609
7609
|
function $() {
|
|
7610
7610
|
let K = 0, oe = "left";
|
|
7611
7611
|
const ie = V ? V.right : window.innerWidth, Q = V ? V.left : 0;
|
|
7612
|
-
return K = ie - B - 10, ie - B <
|
|
7612
|
+
return K = ie - B - 10, ie - B < S && B - Q > ie - B && (oe = "right", K = B - Q - 10), {
|
|
7613
7613
|
hposition: oe,
|
|
7614
7614
|
maxWidth: Math.min(K, 300)
|
|
7615
7615
|
};
|
|
@@ -7619,7 +7619,7 @@ function Hr(e, t, n) {
|
|
|
7619
7619
|
A = O.getBoundingClientRect().bottom - D - j - 10;
|
|
7620
7620
|
else {
|
|
7621
7621
|
const K = V ? V.bottom : window.innerHeight;
|
|
7622
|
-
A = C === "page-header" ? K - D :
|
|
7622
|
+
A = C === "page-header" ? K - D : x, A = A - j - 10, z = C === "page-header" ? "bottom" : "top";
|
|
7623
7623
|
}
|
|
7624
7624
|
const H = $();
|
|
7625
7625
|
return {
|
|
@@ -7638,29 +7638,29 @@ function Hr(e, t, n) {
|
|
|
7638
7638
|
};
|
|
7639
7639
|
if (!(i != null && i.value))
|
|
7640
7640
|
return I;
|
|
7641
|
-
const M = i.value.querySelector("#" + C.id),
|
|
7642
|
-
if (M &&
|
|
7643
|
-
const
|
|
7644
|
-
if (!
|
|
7641
|
+
const M = i.value.querySelector("#" + C.id), T = M == null ? void 0 : M.getClientRects();
|
|
7642
|
+
if (M && T && T.length > 0) {
|
|
7643
|
+
const x = M ? M.querySelector("#" + C.id + "_menu") : null;
|
|
7644
|
+
if (!x || C.expanded !== !0)
|
|
7645
7645
|
return I;
|
|
7646
|
-
|
|
7647
|
-
let
|
|
7646
|
+
x.style.visibility = "hidden", x.style.display = "block", x.style.maxHeight = "auto", x.style.maxWidth = O;
|
|
7647
|
+
let S;
|
|
7648
7648
|
switch (a.toolbarPosition) {
|
|
7649
7649
|
case "tabs":
|
|
7650
|
-
|
|
7650
|
+
S = (F = i.value) == null ? void 0 : F.closest(".farris-tabs");
|
|
7651
7651
|
break;
|
|
7652
7652
|
case "section":
|
|
7653
|
-
|
|
7653
|
+
S = (y = i.value) == null ? void 0 : y.closest(".f-section");
|
|
7654
7654
|
break;
|
|
7655
7655
|
default:
|
|
7656
|
-
|
|
7656
|
+
S = (B = i.value) == null ? void 0 : B.closest(".f-page");
|
|
7657
7657
|
}
|
|
7658
|
-
const w = g(a.toolbarPosition,
|
|
7658
|
+
const w = g(a.toolbarPosition, S, x, T), {
|
|
7659
7659
|
position: P,
|
|
7660
7660
|
maxHeight: E,
|
|
7661
7661
|
maxWidth: j
|
|
7662
7662
|
} = w;
|
|
7663
|
-
|
|
7663
|
+
x.style.visibility = "visible";
|
|
7664
7664
|
const D = {
|
|
7665
7665
|
left: P.indexOf("left") > -1 ? 0 : "unset",
|
|
7666
7666
|
right: P.indexOf("left") > -1 ? "unset" : 0,
|
|
@@ -8047,7 +8047,7 @@ function Wr(e, t, n) {
|
|
|
8047
8047
|
const w = e.schema.id, { index: P, schema: E } = I("Copy", w);
|
|
8048
8048
|
E && (s().splice(P + 1, 0, E), n.updateToolbarItems(), c(E.id), (j = e.setupContext) == null || j.emit("addComponent"));
|
|
8049
8049
|
}
|
|
8050
|
-
function
|
|
8050
|
+
function T() {
|
|
8051
8051
|
var j;
|
|
8052
8052
|
const w = e.schema.id, { index: P, schema: E } = I("Append", w);
|
|
8053
8053
|
if (E && e.parent) {
|
|
@@ -8106,15 +8106,15 @@ function Wr(e, t, n) {
|
|
|
8106
8106
|
text: "新增子级",
|
|
8107
8107
|
icon: "f-icon-plus-circle",
|
|
8108
8108
|
onClick: (P) => {
|
|
8109
|
-
y(P),
|
|
8109
|
+
y(P), T();
|
|
8110
8110
|
}
|
|
8111
8111
|
}), w;
|
|
8112
8112
|
}
|
|
8113
|
-
function
|
|
8113
|
+
function x() {
|
|
8114
8114
|
const { schema: w } = e;
|
|
8115
8115
|
m(w);
|
|
8116
8116
|
}
|
|
8117
|
-
function
|
|
8117
|
+
function S() {
|
|
8118
8118
|
var w, P, E, j;
|
|
8119
8119
|
if (e && t) {
|
|
8120
8120
|
const { formSchemaUtils: D } = t, { schema: V } = e;
|
|
@@ -8142,8 +8142,8 @@ function Wr(e, t, n) {
|
|
|
8142
8142
|
checkCanAddComponent: l,
|
|
8143
8143
|
getPropsConfig: F,
|
|
8144
8144
|
getCustomButtons: B,
|
|
8145
|
-
onRemoveComponent:
|
|
8146
|
-
setComponentBasicInfoMap:
|
|
8145
|
+
onRemoveComponent: x,
|
|
8146
|
+
setComponentBasicInfoMap: S
|
|
8147
8147
|
};
|
|
8148
8148
|
}
|
|
8149
8149
|
const Ur = /* @__PURE__ */ he({
|
|
@@ -8398,10 +8398,10 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8398
8398
|
renderToolbarItemDesigner: I
|
|
8399
8399
|
} = C, {
|
|
8400
8400
|
clearAllDropDownMenu: M,
|
|
8401
|
-
renderDropdownMenu:
|
|
8401
|
+
renderDropdownMenu: T,
|
|
8402
8402
|
setResponseToolbarRef: F
|
|
8403
8403
|
} = O;
|
|
8404
|
-
mt("toolbar-item-action", f), f.renderDropdownMenu =
|
|
8404
|
+
mt("toolbar-item-action", f), f.renderDropdownMenu = T, F(i), m && (m.changeSelectedId = function(z) {
|
|
8405
8405
|
l.value = z;
|
|
8406
8406
|
});
|
|
8407
8407
|
function y() {
|
|
@@ -8423,16 +8423,16 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8423
8423
|
} else
|
|
8424
8424
|
y();
|
|
8425
8425
|
}
|
|
8426
|
-
function
|
|
8426
|
+
function x(z = "") {
|
|
8427
8427
|
n.value.filter((H) => H.id !== z && H.children && H.children.length > 0).forEach((H) => {
|
|
8428
8428
|
H.expanded = !1;
|
|
8429
8429
|
}), M(z);
|
|
8430
8430
|
}
|
|
8431
|
-
f.clearAllDropdown =
|
|
8432
|
-
function
|
|
8431
|
+
f.clearAllDropdown = x;
|
|
8432
|
+
function S() {
|
|
8433
8433
|
m && m.updateToolbarItems && m.updateToolbarItems();
|
|
8434
8434
|
}
|
|
8435
|
-
f.updateToolbarItems =
|
|
8435
|
+
f.updateToolbarItems = S;
|
|
8436
8436
|
function w(z) {
|
|
8437
8437
|
if (z) {
|
|
8438
8438
|
const H = i.value.querySelector("#" + z.id), K = H.querySelector("#" + z.id + "_menu"), oe = f.changeMenuPosition(z, H);
|
|
@@ -8470,13 +8470,13 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8470
8470
|
const ie = (H = n.value) == null ? void 0 : H.find((Q) => Q.id === l.value);
|
|
8471
8471
|
w(ie);
|
|
8472
8472
|
} else
|
|
8473
|
-
|
|
8473
|
+
x();
|
|
8474
8474
|
P();
|
|
8475
8475
|
}
|
|
8476
8476
|
}
|
|
8477
8477
|
});
|
|
8478
8478
|
Ce(() => {
|
|
8479
|
-
E.observe(i.value), s = i.value.clientWidth, i.value.componentInstance = p, g(a.value, o.value,
|
|
8479
|
+
E.observe(i.value), s = i.value.clientWidth, i.value.componentInstance = p, g(a.value, o.value, S);
|
|
8480
8480
|
}), Ge(() => {
|
|
8481
8481
|
E.disconnect(), b && b.destroy && b.destroy();
|
|
8482
8482
|
}), t.expose(p.value);
|
|
@@ -8540,7 +8540,7 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8540
8540
|
}, [d("div", {
|
|
8541
8541
|
ref: o,
|
|
8542
8542
|
class: D.value,
|
|
8543
|
-
onClick: (H) =>
|
|
8543
|
+
onClick: (H) => x(H)
|
|
8544
8544
|
}, [d("div", {
|
|
8545
8545
|
ref: a,
|
|
8546
8546
|
class: "d-block f-response-content"
|
|
@@ -8666,16 +8666,16 @@ const Zr = /* @__PURE__ */ he({
|
|
|
8666
8666
|
checkActiveIdAndSelect: O,
|
|
8667
8667
|
listenTabNavElementScroll: I,
|
|
8668
8668
|
toolbarSchema: M,
|
|
8669
|
-
toggleShowTab:
|
|
8669
|
+
toggleShowTab: T,
|
|
8670
8670
|
hasInHeadClass: F,
|
|
8671
8671
|
updateComponentBasicInfoMap: y
|
|
8672
8672
|
} = f;
|
|
8673
8673
|
C(n);
|
|
8674
|
-
const B = Io(e, r, f),
|
|
8675
|
-
updateNavigationLayout:
|
|
8676
|
-
} =
|
|
8674
|
+
const B = Io(e, r, f), x = xo(e, c, B, f), {
|
|
8675
|
+
updateNavigationLayout: S
|
|
8676
|
+
} = x, w = To(e, f), {
|
|
8677
8677
|
hideDropDown: P
|
|
8678
|
-
} = w, E = zl(e, c,
|
|
8678
|
+
} = w, E = zl(e, c, x, B, f, l), j = E, D = So(e, c, x, B, f), V = /* @__PURE__ */ new Map([["default", E], ["one-page", j], ["pills", D]]);
|
|
8679
8679
|
R(() => {
|
|
8680
8680
|
const L = m.value.find((q) => q.props.id === v.value);
|
|
8681
8681
|
return L == null ? void 0 : L.slots;
|
|
@@ -8696,7 +8696,7 @@ const Zr = /* @__PURE__ */ he({
|
|
|
8696
8696
|
updateTab: b,
|
|
8697
8697
|
tabPages: m,
|
|
8698
8698
|
tabType: s,
|
|
8699
|
-
toggleShowTab:
|
|
8699
|
+
toggleShowTab: T,
|
|
8700
8700
|
toolbarVisible: A
|
|
8701
8701
|
}), mt("toolbar-item-handler", u);
|
|
8702
8702
|
const z = R(() => e.fill), H = R(() => ({
|
|
@@ -8723,12 +8723,12 @@ const Zr = /* @__PURE__ */ he({
|
|
|
8723
8723
|
} = Yr(a, m);
|
|
8724
8724
|
Ce(() => {
|
|
8725
8725
|
m.value.length && O(e.activeId || m.value[0].props.id), ge(() => {
|
|
8726
|
-
|
|
8726
|
+
S();
|
|
8727
8727
|
}), p(c), window.addEventListener("click", (L) => {
|
|
8728
8728
|
var q;
|
|
8729
8729
|
P.value || (q = n.value) != null && q.contains(L.target) || (P.value = !0);
|
|
8730
8730
|
}), window.addEventListener("resize", () => {
|
|
8731
|
-
|
|
8731
|
+
S();
|
|
8732
8732
|
}), I(), n.value.componentInstance = l, e.tabType === "default" && ie(c.value, c.value);
|
|
8733
8733
|
}), Ge(() => {
|
|
8734
8734
|
Q && Q.destroy && Q.destroy();
|
|
@@ -9210,7 +9210,7 @@ function yc(e, t, n, o, a, i) {
|
|
|
9210
9210
|
const I = {
|
|
9211
9211
|
"f-section-header": !0
|
|
9212
9212
|
};
|
|
9213
|
-
return t.slots.header && e.headerClass.split(" ").reduce((
|
|
9213
|
+
return t.slots.header && e.headerClass.split(" ").reduce((T, F) => (T[F] = !0, T), I), I;
|
|
9214
9214
|
});
|
|
9215
9215
|
function p(I) {
|
|
9216
9216
|
I.stopPropagation(), e.enableAccordion !== "" && (n.value = !n.value);
|
|
@@ -9771,7 +9771,11 @@ const _c = "search-box", Wc = "A Farris Component", Uc = "object", Gc = {
|
|
|
9771
9771
|
n.value.commitValue(p);
|
|
9772
9772
|
}
|
|
9773
9773
|
function r(p) {
|
|
9774
|
-
|
|
9774
|
+
const m = s.value;
|
|
9775
|
+
t.emit("change", p, {
|
|
9776
|
+
oldValue: m,
|
|
9777
|
+
newValue: p
|
|
9778
|
+
});
|
|
9775
9779
|
}
|
|
9776
9780
|
function u(p) {
|
|
9777
9781
|
t.emit("selectedValue", p);
|
|
@@ -9980,8 +9984,8 @@ function Jc(e, t) {
|
|
|
9980
9984
|
}
|
|
9981
9985
|
function Dn(e, t, n, o, a, i, l, s, c, r) {
|
|
9982
9986
|
const u = h(e.size), f = h(e.textField), v = h(e.titleField), p = h(e.disableField), m = R(() => {
|
|
9983
|
-
var B,
|
|
9984
|
-
return ((B = e.selection) == null ? void 0 : B.multiSelect) && ((
|
|
9987
|
+
var B, x;
|
|
9988
|
+
return ((B = e.selection) == null ? void 0 : B.multiSelect) && ((x = e.selection) == null ? void 0 : x.showCheckbox);
|
|
9985
9989
|
}), {
|
|
9986
9990
|
onMouseenterItem: g,
|
|
9987
9991
|
onMouseoverItem: b,
|
|
@@ -9991,7 +9995,7 @@ function Dn(e, t, n, o, a, i, l, s, c, r) {
|
|
|
9991
9995
|
listViewItemClass: O,
|
|
9992
9996
|
listViewItemStyle: I,
|
|
9993
9997
|
onCheckItem: M,
|
|
9994
|
-
onClickItem:
|
|
9998
|
+
onClickItem: T
|
|
9995
9999
|
} = l, F = R(() => {
|
|
9996
10000
|
const B = {
|
|
9997
10001
|
"text-overflow": "ellipsis",
|
|
@@ -10003,27 +10007,27 @@ function Dn(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10003
10007
|
...B
|
|
10004
10008
|
};
|
|
10005
10009
|
});
|
|
10006
|
-
function y(B,
|
|
10010
|
+
function y(B, x, S) {
|
|
10007
10011
|
return B.checked = s.findIndexInSelectedItems(B) > -1, d("li", {
|
|
10008
|
-
class: O(B,
|
|
10009
|
-
id: C(B,
|
|
10010
|
-
key: C(B,
|
|
10011
|
-
style: I(B,
|
|
10012
|
-
onClick: (w) =>
|
|
10013
|
-
onMouseenter: (w) => g(w, B,
|
|
10014
|
-
onMouseover: (w) => b(w, B,
|
|
10015
|
-
onMouseout: (w) => k(w, B,
|
|
10012
|
+
class: O(B, x),
|
|
10013
|
+
id: C(B, x),
|
|
10014
|
+
key: C(B, x),
|
|
10015
|
+
style: I(B, x),
|
|
10016
|
+
onClick: (w) => T(B, x, w),
|
|
10017
|
+
onMouseenter: (w) => g(w, B, x),
|
|
10018
|
+
onMouseover: (w) => b(w, B, x),
|
|
10019
|
+
onMouseout: (w) => k(w, B, x)
|
|
10016
10020
|
}, [m.value && d("div", {
|
|
10017
10021
|
class: "f-list-select",
|
|
10018
10022
|
onClick: (w) => w.stopPropagation()
|
|
10019
10023
|
}, [d(un, {
|
|
10020
|
-
id: "list-" + C(B,
|
|
10024
|
+
id: "list-" + C(B, x),
|
|
10021
10025
|
customClass: "listview-checkbox float-left",
|
|
10022
10026
|
disabled: B[p.value],
|
|
10023
10027
|
checked: B.checked,
|
|
10024
10028
|
"onUpdate:checked": (w) => B.checked = w,
|
|
10025
10029
|
onChange: (w) => {
|
|
10026
|
-
M(B,
|
|
10030
|
+
M(B, x, !w.checked);
|
|
10027
10031
|
}
|
|
10028
10032
|
}, null)]), d("div", {
|
|
10029
10033
|
class: "f-list-content"
|
|
@@ -10062,32 +10066,32 @@ function Qc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10062
10066
|
style: "margin: 10px 0;"
|
|
10063
10067
|
}, [F.raw[v.value || "name"]]);
|
|
10064
10068
|
}
|
|
10065
|
-
function
|
|
10069
|
+
function T(F, y, B) {
|
|
10066
10070
|
return d("li", {
|
|
10067
10071
|
class: k(F, y),
|
|
10068
10072
|
id: b(F, y),
|
|
10069
10073
|
key: b(F, y),
|
|
10070
10074
|
style: C(F, y),
|
|
10071
|
-
onClick: (
|
|
10072
|
-
onMouseenter: (
|
|
10073
|
-
onMouseover: (
|
|
10074
|
-
onMouseout: (
|
|
10075
|
+
onClick: (x) => I(F, y, x),
|
|
10076
|
+
onMouseenter: (x) => p(x, F, y),
|
|
10077
|
+
onMouseover: (x) => m(x, F, y),
|
|
10078
|
+
onMouseout: (x) => g(x, F, y)
|
|
10075
10079
|
}, [u.value && d("div", {
|
|
10076
10080
|
class: "f-list-select",
|
|
10077
|
-
onClick: (
|
|
10081
|
+
onClick: (x) => x.stopPropagation()
|
|
10078
10082
|
}, [d(un, {
|
|
10079
10083
|
id: "list-" + b(F, y),
|
|
10080
10084
|
customClass: "listview-checkbox",
|
|
10081
10085
|
disabled: F[f.value] || !F.checked,
|
|
10082
10086
|
checked: F.checked,
|
|
10083
|
-
"onUpdate:checked": (
|
|
10084
|
-
onChange: (
|
|
10087
|
+
"onUpdate:checked": (x) => F.checked = x,
|
|
10088
|
+
onChange: (x) => O(F, y, !x.checked)
|
|
10085
10089
|
}, null)]), d("div", {
|
|
10086
10090
|
class: "f-list-content"
|
|
10087
10091
|
}, [M(F, y, B)])]);
|
|
10088
10092
|
}
|
|
10089
10093
|
return {
|
|
10090
|
-
renderItem:
|
|
10094
|
+
renderItem: T
|
|
10091
10095
|
};
|
|
10092
10096
|
}
|
|
10093
10097
|
function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
@@ -10103,25 +10107,25 @@ function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10103
10107
|
} = l, {
|
|
10104
10108
|
dragstart: I,
|
|
10105
10109
|
dragenter: M,
|
|
10106
|
-
dragover:
|
|
10110
|
+
dragover: T,
|
|
10107
10111
|
dragend: F
|
|
10108
10112
|
} = o, {
|
|
10109
10113
|
removeItem: y
|
|
10110
10114
|
} = c, B = R(() => ({
|
|
10111
10115
|
margin: u.value ? "10px 0" : "10px 0px 10px 14px"
|
|
10112
10116
|
}));
|
|
10113
|
-
function
|
|
10117
|
+
function x(j, D = "") {
|
|
10114
10118
|
const V = j.target;
|
|
10115
10119
|
V.title = V.scrollWidth > V.clientWidth ? D : "";
|
|
10116
10120
|
}
|
|
10117
|
-
function
|
|
10121
|
+
function S(j) {
|
|
10118
10122
|
return d("div", {
|
|
10119
10123
|
style: B.value,
|
|
10120
|
-
onMouseenter: (D) =>
|
|
10124
|
+
onMouseenter: (D) => x(D, j.raw[v.value || "name"])
|
|
10121
10125
|
}, [j.raw[v.value || "name"]]);
|
|
10122
10126
|
}
|
|
10123
10127
|
function w() {
|
|
10124
|
-
return t.slots.itemContent ? t.slots.itemContent :
|
|
10128
|
+
return t.slots.itemContent ? t.slots.itemContent : S;
|
|
10125
10129
|
}
|
|
10126
10130
|
const P = w();
|
|
10127
10131
|
function E(j, D, V) {
|
|
@@ -10137,7 +10141,7 @@ function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10137
10141
|
onDragstart: ($) => I($, j, D),
|
|
10138
10142
|
onDragenter: ($) => M($, D),
|
|
10139
10143
|
onDragend: ($) => F($, j),
|
|
10140
|
-
onDragover: ($) =>
|
|
10144
|
+
onDragover: ($) => T($)
|
|
10141
10145
|
}, [u.value && d("div", {
|
|
10142
10146
|
class: "f-list-select",
|
|
10143
10147
|
onClick: ($) => $.stopPropagation()
|
|
@@ -10152,7 +10156,9 @@ function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10152
10156
|
class: "f-list-content"
|
|
10153
10157
|
}, [P(j)]), d("div", {
|
|
10154
10158
|
class: "f-list-remove",
|
|
10155
|
-
onClick: ($) =>
|
|
10159
|
+
onClick: ($) => {
|
|
10160
|
+
$.stopPropagation(), y(D);
|
|
10161
|
+
}
|
|
10156
10162
|
}, [d("div", {
|
|
10157
10163
|
class: "f-list-remove-icon"
|
|
10158
10164
|
}, [d("i", {
|
|
@@ -10228,10 +10234,10 @@ function nu(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10228
10234
|
const I = O(), {
|
|
10229
10235
|
renderItem: M
|
|
10230
10236
|
} = I(e, t, n, r, a, i, c, l, g, s), {
|
|
10231
|
-
renderItem:
|
|
10232
|
-
} = eu(e, t, n, r, a, i, c, l, g, s), F = [M,
|
|
10237
|
+
renderItem: T
|
|
10238
|
+
} = eu(e, t, n, r, a, i, c, l, g, s), F = [M, T];
|
|
10233
10239
|
function y() {
|
|
10234
|
-
return n.value.filter((
|
|
10240
|
+
return n.value.filter((S) => S.visible !== !1).map((S, w) => F[S.type](S, w, p));
|
|
10235
10241
|
}
|
|
10236
10242
|
function B() {
|
|
10237
10243
|
return d("div", {
|
|
@@ -10241,14 +10247,14 @@ function nu(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10241
10247
|
class: "f-empty-title"
|
|
10242
10248
|
}, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : m.value])]);
|
|
10243
10249
|
}
|
|
10244
|
-
function
|
|
10250
|
+
function x() {
|
|
10245
10251
|
return d("ul", {
|
|
10246
10252
|
class: b.value,
|
|
10247
10253
|
style: "list-style: none;"
|
|
10248
10254
|
}, [k.value && y(), C.value && B()]);
|
|
10249
10255
|
}
|
|
10250
10256
|
return {
|
|
10251
|
-
renderListArea:
|
|
10257
|
+
renderListArea: x
|
|
10252
10258
|
};
|
|
10253
10259
|
}
|
|
10254
10260
|
function ou(e, t, n) {
|
|
@@ -10349,12 +10355,12 @@ function au() {
|
|
|
10349
10355
|
function iu(e, t, n, o) {
|
|
10350
10356
|
const a = h(e.idField), { dataView: i } = n, l = h(-1), s = h(!1), { activeIndex: c, focusedItemId: r, hoverIndex: u, resumeHover: f, suspendHover: v } = o;
|
|
10351
10357
|
let p, m = 0, g = 0;
|
|
10352
|
-
function b(
|
|
10353
|
-
const y =
|
|
10354
|
-
p.style.left = parseInt(p.style.left) + y + "px", p.style.top = parseInt(p.style.top) + B + "px", m =
|
|
10358
|
+
function b(T, F) {
|
|
10359
|
+
const y = T - m, B = F - g;
|
|
10360
|
+
p.style.left = parseInt(p.style.left) + y + "px", p.style.top = parseInt(p.style.top) + B + "px", m = T, g = F;
|
|
10355
10361
|
}
|
|
10356
|
-
function k(
|
|
10357
|
-
const { left: F, top: y } =
|
|
10362
|
+
function k(T) {
|
|
10363
|
+
const { left: F, top: y } = T.getBoundingClientRect(), B = T.cloneNode(!0);
|
|
10358
10364
|
return B.style.cssText = `
|
|
10359
10365
|
position:absolute;
|
|
10360
10366
|
left:${F}px;
|
|
@@ -10369,34 +10375,34 @@ function iu(e, t, n, o) {
|
|
|
10369
10375
|
align-items: center;
|
|
10370
10376
|
float: none;
|
|
10371
10377
|
text-align: initial;
|
|
10372
|
-
width:${getComputedStyle(
|
|
10373
|
-
height:${getComputedStyle(
|
|
10378
|
+
width:${getComputedStyle(T).width};
|
|
10379
|
+
height:${getComputedStyle(T).height};
|
|
10374
10380
|
`, B.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", B.children[0].children[0].style.cssText = `
|
|
10375
10381
|
margin: 10px 0px 10px 14px;
|
|
10376
10382
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
10377
10383
|
`, B.children[1].style.cssText = "width: 30px;color: #f4625f;padding: 0 14px 0 0", B.children[2].style.cssText = "padding: 0 14px 0 0;", document.body.appendChild(B), B;
|
|
10378
10384
|
}
|
|
10379
|
-
function C(
|
|
10380
|
-
if (
|
|
10381
|
-
if (p = k(
|
|
10385
|
+
function C(T, F, y) {
|
|
10386
|
+
if (T.stopPropagation(), v(), F) {
|
|
10387
|
+
if (p = k(T.target), T.dataTransfer) {
|
|
10382
10388
|
const B = new Image();
|
|
10383
|
-
B.src = "",
|
|
10389
|
+
B.src = "", T.dataTransfer.setDragImage(B, 0, 0);
|
|
10384
10390
|
}
|
|
10385
|
-
m =
|
|
10391
|
+
m = T.pageX, g = T.pageY, setTimeout(() => {
|
|
10386
10392
|
l.value = y, s.value = !0, F.moving = !0;
|
|
10387
10393
|
});
|
|
10388
10394
|
}
|
|
10389
10395
|
}
|
|
10390
|
-
function O(
|
|
10391
|
-
if (
|
|
10396
|
+
function O(T, F) {
|
|
10397
|
+
if (T.preventDefault(), l.value !== F) {
|
|
10392
10398
|
const y = i.value[l.value], B = i.value;
|
|
10393
|
-
B.splice(l.value, 1), B.splice(F, 0, y), l.value = F, b(
|
|
10399
|
+
B.splice(l.value, 1), B.splice(F, 0, y), l.value = F, b(T.pageX, T.pageY);
|
|
10394
10400
|
}
|
|
10395
10401
|
}
|
|
10396
|
-
function I(
|
|
10397
|
-
|
|
10402
|
+
function I(T) {
|
|
10403
|
+
T.preventDefault(), T.dataTransfer && (T.dataTransfer.dropEffect = "move"), b(T.pageX, T.pageY);
|
|
10398
10404
|
}
|
|
10399
|
-
function M(
|
|
10405
|
+
function M(T, F) {
|
|
10400
10406
|
F && (F.moving = !1, p && (document.body.removeChild(p), p = null)), i.value.forEach((y, B) => {
|
|
10401
10407
|
y.__fv_index__ = B;
|
|
10402
10408
|
}), s.value = !1, f(), u.value = F.raw.__fv_index__, c.value = F.raw.__fv_index__, r.value = F.raw[a.value], t.emit("change", i.value), t.emit("activeChange", [F.raw]);
|
|
@@ -10419,7 +10425,7 @@ function lu(e, t, n, o, a, i) {
|
|
|
10419
10425
|
function M() {
|
|
10420
10426
|
O.value = b();
|
|
10421
10427
|
}
|
|
10422
|
-
function
|
|
10428
|
+
function T(E, j) {
|
|
10423
10429
|
return E.raw[l.value] != null ? E.raw[l.value] : "";
|
|
10424
10430
|
}
|
|
10425
10431
|
function F(E, j) {
|
|
@@ -10430,7 +10436,7 @@ function lu(e, t, n, o, a, i) {
|
|
|
10430
10436
|
"f-un-select": !!E.raw[s.value],
|
|
10431
10437
|
"f-listview-active": (
|
|
10432
10438
|
// 多选
|
|
10433
|
-
r.value && I(
|
|
10439
|
+
r.value && I(T(E)) || // 单选
|
|
10434
10440
|
!r.value && E.raw[l.value] === C.value
|
|
10435
10441
|
),
|
|
10436
10442
|
"f-listview-hover": !f.value && j === m.value,
|
|
@@ -10447,7 +10453,7 @@ function lu(e, t, n, o, a, i) {
|
|
|
10447
10453
|
function y(E, j) {
|
|
10448
10454
|
const D = (
|
|
10449
10455
|
// 多选
|
|
10450
|
-
r.value && I(
|
|
10456
|
+
r.value && I(T(E)) || // 单选
|
|
10451
10457
|
!r.value && E.raw[l.value] === C.value
|
|
10452
10458
|
), V = {};
|
|
10453
10459
|
if (D && (V.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
|
|
@@ -10459,24 +10465,24 @@ function lu(e, t, n, o, a, i) {
|
|
|
10459
10465
|
return V;
|
|
10460
10466
|
}
|
|
10461
10467
|
const B = R(() => !r.value);
|
|
10462
|
-
function
|
|
10468
|
+
function x(E, j, D) {
|
|
10463
10469
|
E.checked = D, !E.raw[s.value] && (B.value && (p.value = E.raw[l.value]), k(E));
|
|
10464
10470
|
}
|
|
10465
|
-
const
|
|
10471
|
+
const S = R(() => r.value && u.value === "OnCheckClearByClick"), w = R(() => !r.value || r.value && (u.value === "OnCheckAndClick" || u.value === "OnClick"));
|
|
10466
10472
|
function P(E, j, D) {
|
|
10467
10473
|
if (E.raw[s.value]) {
|
|
10468
10474
|
D == null || D.preventDefault(), D == null || D.stopPropagation();
|
|
10469
10475
|
return;
|
|
10470
10476
|
}
|
|
10471
|
-
p.value = E.raw[l.value], v.value = j,
|
|
10477
|
+
p.value = E.raw[l.value], v.value = j, S.value && g(), w.value && (k(E), M()), t.emit("clickItem", { data: O.value, index: j, dataItem: E.raw }), t.emit("activeChange", O.value);
|
|
10472
10478
|
}
|
|
10473
10479
|
return {
|
|
10474
|
-
getKey:
|
|
10480
|
+
getKey: T,
|
|
10475
10481
|
selectedItems: O,
|
|
10476
10482
|
listViewItemClass: F,
|
|
10477
10483
|
listViewItemStyle: y,
|
|
10478
10484
|
updateSelectedItems: M,
|
|
10479
|
-
onCheckItem:
|
|
10485
|
+
onCheckItem: x,
|
|
10480
10486
|
onClickItem: P
|
|
10481
10487
|
};
|
|
10482
10488
|
}
|
|
@@ -10485,17 +10491,17 @@ const ot = /* @__PURE__ */ he({
|
|
|
10485
10491
|
props: Go,
|
|
10486
10492
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
10487
10493
|
setup(e, t) {
|
|
10488
|
-
const n = h(), o = h(!0), a = h(!1), i = h([]), l = 0, s = h(e.columns), c = Wn(e, t), r = qn(e), u = Un(e), f = _n(e, r), v = Gn(e, /* @__PURE__ */ new Map(), c, u, r), p = Xn(e, v, r, i, t), m = Jc(e, n), g = Yn(e, v), b = R(() => v.dataView.value.length), k = Jn(e, t, p, r), C = Qn(e, t, r, k, i), O = Kn(e), I = eo(e, {}, O), M = to(e, v, C, u, r, O, I),
|
|
10494
|
+
const n = h(), o = h(!0), a = h(!1), i = h([]), l = 0, s = h(e.columns), c = Wn(e, t), r = qn(e), u = Un(e), f = _n(e, r), v = Gn(e, /* @__PURE__ */ new Map(), c, u, r), p = Xn(e, v, r, i, t), m = Jc(e, n), g = Yn(e, v), b = R(() => v.dataView.value.length), k = Jn(e, t, p, r), C = Qn(e, t, r, k, i), O = Kn(e), I = eo(e, {}, O), M = to(e, v, C, u, r, O, I), T = Qa(e, r, I, M), F = Ka(e, r, I, M), y = no(e, s, v, b, l, M, T, F), {
|
|
10489
10495
|
getVisualData: B
|
|
10490
10496
|
} = y;
|
|
10491
10497
|
i.value = B(0, b.value + l - 1);
|
|
10492
|
-
const
|
|
10498
|
+
const x = R(() => {
|
|
10493
10499
|
const le = {
|
|
10494
10500
|
"f-list-view": !0,
|
|
10495
10501
|
"f-list-view-multiple": e.multiSelect
|
|
10496
10502
|
};
|
|
10497
10503
|
return e.size !== "default" && (le[`${e.size}-item`] = !0), Le(le, e.customClass);
|
|
10498
|
-
}),
|
|
10504
|
+
}), S = R(() => !!t.slots.footer || o.value);
|
|
10499
10505
|
function w() {
|
|
10500
10506
|
return e.header === "SearchBar" ? On : e.header === "ContentHeader" ? ou : On;
|
|
10501
10507
|
}
|
|
@@ -10571,7 +10577,7 @@ const ot = /* @__PURE__ */ he({
|
|
|
10571
10577
|
updateColumnRenderContext: Ee
|
|
10572
10578
|
} = ne, we = ao(e, v, i, ue, y, b, l, _, C);
|
|
10573
10579
|
return io(e, t, v, we, g, p), () => d("div", {
|
|
10574
|
-
class:
|
|
10580
|
+
class: x.value,
|
|
10575
10581
|
onClick: L
|
|
10576
10582
|
}, [E(), d("div", {
|
|
10577
10583
|
ref: n,
|
|
@@ -10582,7 +10588,7 @@ const ot = /* @__PURE__ */ he({
|
|
|
10582
10588
|
onMouseleave: () => {
|
|
10583
10589
|
a.value = !1;
|
|
10584
10590
|
}
|
|
10585
|
-
}, [$()]),
|
|
10591
|
+
}, [$()]), S.value && d("div", {
|
|
10586
10592
|
class: "f-list-view-footer"
|
|
10587
10593
|
}, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
|
|
10588
10594
|
}
|
|
@@ -11238,12 +11244,12 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11238
11244
|
background: "rgba(250,250,252,.6)",
|
|
11239
11245
|
width: "100%",
|
|
11240
11246
|
height: "100%"
|
|
11241
|
-
}, p = R(() => !c.value || s.value === 1), m = R(() => e.pageList), g = R(() => Math.ceil(c.value / l.value)), b = R(() => !c.value || s.value === g.value), k = R(() => e.showGoButton), C = R(() => !!c.value && s.value > 1), O = R(() => !(i.value && r.value.length <= 1)), I = R(() => e.showPageInfo), M = R(() => e.showPageList),
|
|
11247
|
+
}, p = R(() => !c.value || s.value === 1), m = R(() => e.pageList), g = R(() => Math.ceil(c.value / l.value)), b = R(() => !c.value || s.value === g.value), k = R(() => e.showGoButton), C = R(() => !!c.value && s.value > 1), O = R(() => !(i.value && r.value.length <= 1)), I = R(() => e.showPageInfo), M = R(() => e.showPageList), T = R(() => e.showPageNumbers), F = R(() => !0), {
|
|
11242
11248
|
renderFirstPage: y,
|
|
11243
11249
|
renderPreviousPage: B
|
|
11244
11250
|
} = ea(s, p, C, l, t), {
|
|
11245
|
-
renderLastPage:
|
|
11246
|
-
renderNextPage:
|
|
11251
|
+
renderLastPage: x,
|
|
11252
|
+
renderNextPage: S
|
|
11247
11253
|
} = Zo(s, b, g, l, t), {
|
|
11248
11254
|
renderPageInfo: w
|
|
11249
11255
|
} = Jo(a, c), {
|
|
@@ -11280,7 +11286,7 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11280
11286
|
"justify-content": a.value === "center" ? "center" : "start"
|
|
11281
11287
|
}));
|
|
11282
11288
|
function A() {
|
|
11283
|
-
return d(Be, null, [I.value && w(), M.value && P(), F.value && y(), F.value && B(),
|
|
11289
|
+
return d(Be, null, [I.value && w(), M.value && P(), F.value && y(), F.value && B(), T.value && E(), F.value && S(), F.value && x(), k.value && j()]);
|
|
11284
11290
|
}
|
|
11285
11291
|
function z() {
|
|
11286
11292
|
return d(Be, null, [d("li", {
|
|
@@ -11295,7 +11301,7 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11295
11301
|
style: "margin-left: 5px"
|
|
11296
11302
|
}, [d("span", {
|
|
11297
11303
|
style: "font-size: 16px; font-weight: 600;"
|
|
11298
|
-
}, [xe(" "), g.value])]), F.value &&
|
|
11304
|
+
}, [xe(" "), g.value])]), F.value && S(), F.value && x()]);
|
|
11299
11305
|
}
|
|
11300
11306
|
return () => d("div", {
|
|
11301
11307
|
class: "pagination-container",
|
|
@@ -11320,11 +11326,11 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11320
11326
|
const {
|
|
11321
11327
|
pages: v,
|
|
11322
11328
|
updatePages: p
|
|
11323
|
-
} = ta(), m = R(() => s.value === 1), g = R(() => [20, 50, 100]), b = R(() => Math.ceil(c.value / l.value)), k = R(() => s.value === b.value), C = R(() => !0), O = R(() => s.value > 1), I = R(() => !(i.value && v.value.length <= 1)), M = R(() => !0),
|
|
11329
|
+
} = ta(), m = R(() => s.value === 1), g = R(() => [20, 50, 100]), b = R(() => Math.ceil(c.value / l.value)), k = R(() => s.value === b.value), C = R(() => !0), O = R(() => s.value > 1), I = R(() => !(i.value && v.value.length <= 1)), M = R(() => !0), T = R(() => !0), F = R(() => !0), y = R(() => !0), {
|
|
11324
11330
|
renderFirstPage: B,
|
|
11325
|
-
renderPreviousPage:
|
|
11331
|
+
renderPreviousPage: x
|
|
11326
11332
|
} = ea(s, m, O, l, t), {
|
|
11327
|
-
renderLastPage:
|
|
11333
|
+
renderLastPage: S,
|
|
11328
11334
|
renderNextPage: w
|
|
11329
11335
|
} = Zo(s, k, b, l, t), {
|
|
11330
11336
|
renderPageInfo: P
|
|
@@ -11353,12 +11359,12 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11353
11359
|
"justify-content": a.value === "center" ? "center" : "start"
|
|
11354
11360
|
}));
|
|
11355
11361
|
function A() {
|
|
11356
|
-
return d(Be, null, [M.value && P(),
|
|
11362
|
+
return d(Be, null, [M.value && P(), T.value && E(), y.value && B(), y.value && x(), F.value && j(), y.value && w(), y.value && S(), C.value && D()]);
|
|
11357
11363
|
}
|
|
11358
11364
|
function z() {
|
|
11359
11365
|
return d(Be, null, [d("li", {
|
|
11360
11366
|
class: "page-item d-flex flex-fill"
|
|
11361
|
-
}, null), y.value && B(), y.value &&
|
|
11367
|
+
}, null), y.value && B(), y.value && x(), D(), d("li", {
|
|
11362
11368
|
class: "page-item page-separator",
|
|
11363
11369
|
style: "margin-left: 10px"
|
|
11364
11370
|
}, [d("span", {
|
|
@@ -11368,7 +11374,7 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11368
11374
|
style: "margin-left: 5px"
|
|
11369
11375
|
}, [d("span", {
|
|
11370
11376
|
style: "font-size: 16px; font-weight: 600;"
|
|
11371
|
-
}, [xe(" "), b.value])]), y.value && w(), y.value &&
|
|
11377
|
+
}, [xe(" "), b.value])]), y.value && w(), y.value && S()]);
|
|
11372
11378
|
}
|
|
11373
11379
|
return () => d("div", {
|
|
11374
11380
|
ref: r,
|
|
@@ -11418,13 +11424,13 @@ const _t = {
|
|
|
11418
11424
|
i.value.updateDataSource(I);
|
|
11419
11425
|
}
|
|
11420
11426
|
ee(() => s == null ? void 0 : s.value, (I, M) => {
|
|
11421
|
-
let
|
|
11422
|
-
I && I !== M && (
|
|
11427
|
+
let T = a.value;
|
|
11428
|
+
I && I !== M && (T = a.value.filter((F) => `${F.name} ${F.code}`.toLowerCase().indexOf(I.toLowerCase()) > -1)), l.value = T, p(l.value), c.value = e.pagination && !I;
|
|
11423
11429
|
});
|
|
11424
11430
|
function m({
|
|
11425
11431
|
item: I,
|
|
11426
11432
|
index: M,
|
|
11427
|
-
selectedItem:
|
|
11433
|
+
selectedItem: T
|
|
11428
11434
|
}) {
|
|
11429
11435
|
return d("div", {
|
|
11430
11436
|
class: "f-navForm-item"
|
|
@@ -11450,7 +11456,7 @@ const _t = {
|
|
|
11450
11456
|
return;
|
|
11451
11457
|
const {
|
|
11452
11458
|
pageIndex: M
|
|
11453
|
-
} = I,
|
|
11459
|
+
} = I, T = (M - 1) * f.value, F = T + f.value, y = a.value.slice(T, F);
|
|
11454
11460
|
p(y), r.value = M;
|
|
11455
11461
|
}
|
|
11456
11462
|
function b() {
|
|
@@ -11471,11 +11477,11 @@ const _t = {
|
|
|
11471
11477
|
}
|
|
11472
11478
|
async function C() {
|
|
11473
11479
|
var F;
|
|
11474
|
-
const I = ye("FLoadingService", null), M = I == null ? void 0 : I.show(),
|
|
11480
|
+
const I = ye("FLoadingService", null), M = I == null ? void 0 : I.show(), T = await n("", {
|
|
11475
11481
|
pageIndex: 1,
|
|
11476
11482
|
pageSize: 1
|
|
11477
11483
|
}, e.editorParams);
|
|
11478
|
-
a.value =
|
|
11484
|
+
a.value = T, l.value = T, p(l.value), u.value = T.length, g({
|
|
11479
11485
|
pageIndex: 1
|
|
11480
11486
|
}), (F = M.value) == null || F.close();
|
|
11481
11487
|
}
|
|
@@ -11582,19 +11588,19 @@ const _t = {
|
|
|
11582
11588
|
function k() {
|
|
11583
11589
|
var B;
|
|
11584
11590
|
let y = tt(s.value);
|
|
11585
|
-
if (l.value && (y = s.value.filter((
|
|
11586
|
-
const
|
|
11587
|
-
y = y.filter((
|
|
11591
|
+
if (l.value && (y = s.value.filter((x) => `${x.name} ${x.code}`.toLowerCase().indexOf(l.value.toLowerCase()) > -1)), (B = i.value) != null && B.id && i.value.id !== "all") {
|
|
11592
|
+
const x = i.value.contains || [];
|
|
11593
|
+
y = y.filter((S) => x.includes(S.code));
|
|
11588
11594
|
}
|
|
11589
11595
|
c.value = y, b(c.value);
|
|
11590
11596
|
}
|
|
11591
11597
|
async function C() {
|
|
11592
|
-
var
|
|
11593
|
-
const y = ye("FLoadingService", null), B = y == null ? void 0 : y.show(),
|
|
11598
|
+
var S;
|
|
11599
|
+
const y = ye("FLoadingService", null), B = y == null ? void 0 : y.show(), x = await n("", {
|
|
11594
11600
|
pageIndex: 1,
|
|
11595
11601
|
pageSize: 1
|
|
11596
11602
|
}, e.editorParams);
|
|
11597
|
-
s.value =
|
|
11603
|
+
s.value = x, k(), (S = B.value) == null || S.close();
|
|
11598
11604
|
}
|
|
11599
11605
|
Ce(() => {
|
|
11600
11606
|
C(), a != null && a.length && f.value.activeRowById(a[0].code);
|
|
@@ -11609,7 +11615,7 @@ const _t = {
|
|
|
11609
11615
|
function M() {
|
|
11610
11616
|
l.value = "", k(), u.value = null;
|
|
11611
11617
|
}
|
|
11612
|
-
function
|
|
11618
|
+
function T() {
|
|
11613
11619
|
return d("div", {
|
|
11614
11620
|
class: "f-datagrid-norecords"
|
|
11615
11621
|
}, [d("div", {
|
|
@@ -11683,7 +11689,7 @@ const _t = {
|
|
|
11683
11689
|
onSelectionUpdate: (y) => g(y)
|
|
11684
11690
|
}, {
|
|
11685
11691
|
content: p,
|
|
11686
|
-
empty:
|
|
11692
|
+
empty: T
|
|
11687
11693
|
})])])]);
|
|
11688
11694
|
}
|
|
11689
11695
|
}), Bu = /* @__PURE__ */ he({
|
|
@@ -11829,54 +11835,54 @@ const Fu = {
|
|
|
11829
11835
|
g();
|
|
11830
11836
|
});
|
|
11831
11837
|
const m = R(() => {
|
|
11832
|
-
const
|
|
11838
|
+
const T = {
|
|
11833
11839
|
visibility: u.value ? "visible" : "hidden",
|
|
11834
11840
|
transform: "translate(-50%,-50%)"
|
|
11835
11841
|
};
|
|
11836
|
-
return e.target === document.body && (
|
|
11842
|
+
return e.target === document.body && (T.position = "fixed"), T;
|
|
11837
11843
|
});
|
|
11838
11844
|
function g() {
|
|
11839
11845
|
a.value && !v && (v = setTimeout(() => {
|
|
11840
11846
|
v = null, O(), u.value = !0;
|
|
11841
11847
|
}, e.delay)), a.value || v && (clearTimeout(v), v = null);
|
|
11842
11848
|
}
|
|
11843
|
-
function b(
|
|
11844
|
-
f =
|
|
11849
|
+
function b(T) {
|
|
11850
|
+
f = T;
|
|
11845
11851
|
}
|
|
11846
11852
|
function k() {
|
|
11847
11853
|
return f;
|
|
11848
11854
|
}
|
|
11849
|
-
function C(
|
|
11855
|
+
function C(T = () => {
|
|
11850
11856
|
}) {
|
|
11851
11857
|
a.value = !1, u.value = !1, t.emit("closed", {
|
|
11852
11858
|
loadingId: f,
|
|
11853
|
-
callback:
|
|
11859
|
+
callback: T
|
|
11854
11860
|
});
|
|
11855
11861
|
}
|
|
11856
11862
|
function O() {
|
|
11857
|
-
const
|
|
11858
|
-
c.value && c.value.style && (c.value.style.zIndex = (
|
|
11863
|
+
const T = I();
|
|
11864
|
+
c.value && c.value.style && (c.value.style.zIndex = (T + 1).toString()), r.value && r.value.style && (r.value.style.zIndex = (T + 1).toString());
|
|
11859
11865
|
}
|
|
11860
|
-
function I(
|
|
11861
|
-
const F = ["body>.f-datagrid-settings-simple-host", "body>div", "body>farris-dialog>.farris-modal.show", "body>.farris-modal.show", "body>farris-filter-panel>.f-filter-panel-wrapper", "body .f-sidebar-show>.f-sidebar-main", "body>.popover.show", "body>filter-row-panel>.f-datagrid-filter-panel", "body>.f-section-maximize"], y = Array.from(document.body.querySelectorAll(F.join(","))).filter((
|
|
11866
|
+
function I(T = 1) {
|
|
11867
|
+
const F = ["body>.f-datagrid-settings-simple-host", "body>div", "body>farris-dialog>.farris-modal.show", "body>.farris-modal.show", "body>farris-filter-panel>.f-filter-panel-wrapper", "body .f-sidebar-show>.f-sidebar-main", "body>.popover.show", "body>filter-row-panel>.f-datagrid-filter-panel", "body>.f-section-maximize"], y = Array.from(document.body.querySelectorAll(F.join(","))).filter((x) => x).map((x) => {
|
|
11862
11868
|
const {
|
|
11863
|
-
display:
|
|
11869
|
+
display: S,
|
|
11864
11870
|
zIndex: w
|
|
11865
|
-
} = window.getComputedStyle(
|
|
11866
|
-
return
|
|
11867
|
-
}).filter((
|
|
11871
|
+
} = window.getComputedStyle(x);
|
|
11872
|
+
return S === "none" ? 0 : parseInt(w, 10);
|
|
11873
|
+
}).filter((x) => x);
|
|
11868
11874
|
let B = Math.max(...y);
|
|
11869
|
-
return B < 1040 && (B = 1040), B +
|
|
11875
|
+
return B < 1040 && (B = 1040), B + T;
|
|
11870
11876
|
}
|
|
11871
11877
|
t.expose({
|
|
11872
11878
|
close: C,
|
|
11873
11879
|
setLoadingId: b,
|
|
11874
11880
|
getLoadingId: k
|
|
11875
|
-
}), ee(() => e.isActive, (
|
|
11876
|
-
a.value =
|
|
11881
|
+
}), ee(() => e.isActive, (T) => {
|
|
11882
|
+
a.value = T, g(), T || C();
|
|
11877
11883
|
});
|
|
11878
|
-
function M(
|
|
11879
|
-
|
|
11884
|
+
function M(T) {
|
|
11885
|
+
T.stopPropagation();
|
|
11880
11886
|
}
|
|
11881
11887
|
return () => d(Be, null, [a.value && d("div", {
|
|
11882
11888
|
ref: c,
|
|
@@ -12003,7 +12009,7 @@ const $t = /* @__PURE__ */ he({
|
|
|
12003
12009
|
function m() {
|
|
12004
12010
|
return o.value.map((y, B) => {
|
|
12005
12011
|
if (a.has(y.type)) {
|
|
12006
|
-
const
|
|
12012
|
+
const x = a.get(y.type), S = {
|
|
12007
12013
|
enableGroup: y.enableGroup || !1,
|
|
12008
12014
|
groupField: y.groupField || "category",
|
|
12009
12015
|
groupFormatter: y.groupFormatter || null,
|
|
@@ -12016,11 +12022,11 @@ const $t = /* @__PURE__ */ he({
|
|
|
12016
12022
|
title: y.title,
|
|
12017
12023
|
class: "container h-100"
|
|
12018
12024
|
}, {
|
|
12019
|
-
default: () => [d(
|
|
12025
|
+
default: () => [d(x, wt({
|
|
12020
12026
|
ref: (w) => {
|
|
12021
12027
|
w && (f[B] = w);
|
|
12022
12028
|
}
|
|
12023
|
-
},
|
|
12029
|
+
}, S, {
|
|
12024
12030
|
onSelectionChange: (w) => v(w)
|
|
12025
12031
|
}), null)]
|
|
12026
12032
|
});
|
|
@@ -12402,44 +12408,44 @@ function zu(e, t, n, o, a) {
|
|
|
12402
12408
|
"f-state-focus": m.value,
|
|
12403
12409
|
"input-group--has-clear": e.enableClear && r.value
|
|
12404
12410
|
}));
|
|
12405
|
-
function k(
|
|
12406
|
-
n.value =
|
|
12411
|
+
function k(S, w = !0) {
|
|
12412
|
+
n.value = S, w && (t.emit("change", S), t.emit("update:modelValue", S));
|
|
12407
12413
|
}
|
|
12408
|
-
function C(
|
|
12409
|
-
s.value = !1, k(
|
|
12414
|
+
function C(S) {
|
|
12415
|
+
s.value = !1, k(S, !0);
|
|
12410
12416
|
}
|
|
12411
12417
|
ee(
|
|
12412
12418
|
() => e.modelValue,
|
|
12413
|
-
(
|
|
12414
|
-
n.value =
|
|
12419
|
+
(S) => {
|
|
12420
|
+
n.value = S;
|
|
12415
12421
|
}
|
|
12416
12422
|
);
|
|
12417
|
-
function O(
|
|
12418
|
-
p.value = !1, t.emit("blur",
|
|
12423
|
+
function O(S) {
|
|
12424
|
+
p.value = !1, t.emit("blur", S), S.stopPropagation();
|
|
12419
12425
|
}
|
|
12420
|
-
function I(
|
|
12421
|
-
t.emit("click",
|
|
12426
|
+
function I(S) {
|
|
12427
|
+
t.emit("click", S), c(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
|
|
12422
12428
|
}
|
|
12423
|
-
function M(
|
|
12424
|
-
!e.disable && !e.readonly && (p.value = !0, v.value || (t.emit("focus",
|
|
12429
|
+
function M(S) {
|
|
12430
|
+
!e.disable && !e.readonly && (p.value = !0, v.value || (t.emit("focus", S), l.value && !s.value && a.popup()));
|
|
12425
12431
|
}
|
|
12426
|
-
function
|
|
12427
|
-
t.emit("input",
|
|
12428
|
-
const w =
|
|
12432
|
+
function T(S) {
|
|
12433
|
+
t.emit("input", S);
|
|
12434
|
+
const w = S.target.value;
|
|
12429
12435
|
o.value = w, n.value !== w && k(w, e.updateOn === "change"), i.value && !s.value && a.popup();
|
|
12430
12436
|
}
|
|
12431
|
-
function F(
|
|
12432
|
-
|
|
12437
|
+
function F(S) {
|
|
12438
|
+
S.target.tagName !== "INPUT" && S.preventDefault(), S.stopPropagation();
|
|
12433
12439
|
}
|
|
12434
|
-
function y(
|
|
12435
|
-
t.emit("keydown",
|
|
12440
|
+
function y(S) {
|
|
12441
|
+
t.emit("keydown", S);
|
|
12436
12442
|
}
|
|
12437
|
-
function B(
|
|
12438
|
-
|
|
12443
|
+
function B(S) {
|
|
12444
|
+
S.key === "Enter" && (i.value || l.value) && a.hidePopup(), t.emit("keyup", S);
|
|
12439
12445
|
}
|
|
12440
|
-
function S
|
|
12441
|
-
const w =
|
|
12442
|
-
|
|
12446
|
+
function x(S) {
|
|
12447
|
+
const w = S.target.value;
|
|
12448
|
+
S.stopPropagation(), k(w);
|
|
12443
12449
|
}
|
|
12444
12450
|
return {
|
|
12445
12451
|
hasFocusedTextBox: m,
|
|
@@ -12454,11 +12460,11 @@ function zu(e, t, n, o, a) {
|
|
|
12454
12460
|
onBlurTextBox: O,
|
|
12455
12461
|
onClickTextBox: I,
|
|
12456
12462
|
onFocusTextBox: M,
|
|
12457
|
-
onInput:
|
|
12463
|
+
onInput: T,
|
|
12458
12464
|
onKeyDownTextBox: y,
|
|
12459
12465
|
onKeyUpTextBox: B,
|
|
12460
12466
|
onMouseDownTextBox: F,
|
|
12461
|
-
onTextBoxValueChange:
|
|
12467
|
+
onTextBoxValueChange: x
|
|
12462
12468
|
};
|
|
12463
12469
|
}
|
|
12464
12470
|
const ct = "FarrisVue_PopoverInstancesKey";
|
|
@@ -12535,7 +12541,7 @@ function _u(e, t, n) {
|
|
|
12535
12541
|
}, M = (F) => {
|
|
12536
12542
|
F.preventDefault(), O.value = !1, f(F);
|
|
12537
12543
|
};
|
|
12538
|
-
function
|
|
12544
|
+
function T(F) {
|
|
12539
12545
|
O.value || f(F);
|
|
12540
12546
|
}
|
|
12541
12547
|
return () => d("input", {
|
|
@@ -12558,7 +12564,7 @@ function _u(e, t, n) {
|
|
|
12558
12564
|
onChange: g,
|
|
12559
12565
|
onClick: r,
|
|
12560
12566
|
onFocus: u,
|
|
12561
|
-
onInput:
|
|
12567
|
+
onInput: T,
|
|
12562
12568
|
onKeydown: v,
|
|
12563
12569
|
onKeyup: p,
|
|
12564
12570
|
onMousedown: m,
|
|
@@ -12701,7 +12707,7 @@ const Xu = /* @__PURE__ */ he({
|
|
|
12701
12707
|
return o.value && o.value.split(" ").reduce((V, $) => (V[$] = !0, V), D), D;
|
|
12702
12708
|
}), M = R(() => ({
|
|
12703
12709
|
overflow: e.wrapText ? "hidden" : ""
|
|
12704
|
-
})),
|
|
12710
|
+
})), T = R(() => ({
|
|
12705
12711
|
paddingLeft: "3px",
|
|
12706
12712
|
backgroundColor: "#fff"
|
|
12707
12713
|
}));
|
|
@@ -12724,12 +12730,12 @@ const Xu = /* @__PURE__ */ he({
|
|
|
12724
12730
|
class: "multi--more-text"
|
|
12725
12731
|
}, [xe("+"), y.value])])]) : _u(e, a, v);
|
|
12726
12732
|
}
|
|
12727
|
-
let
|
|
12733
|
+
let x = B();
|
|
12728
12734
|
ee([() => e.multiSelect, () => e.inputType], () => {
|
|
12729
|
-
|
|
12735
|
+
x = B();
|
|
12730
12736
|
});
|
|
12731
12737
|
const {
|
|
12732
|
-
renderButtonGroup:
|
|
12738
|
+
renderButtonGroup: S,
|
|
12733
12739
|
buttonHandleElement: w
|
|
12734
12740
|
} = Uu(e, t, u, b), P = Gu(e, t, i), E = h(l.value), j = {
|
|
12735
12741
|
displayText: f,
|
|
@@ -12787,10 +12793,10 @@ const Xu = /* @__PURE__ */ he({
|
|
|
12787
12793
|
}), [d("div", {
|
|
12788
12794
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
12789
12795
|
class: g.value,
|
|
12790
|
-
style:
|
|
12796
|
+
style: T.value,
|
|
12791
12797
|
onMouseenter: k,
|
|
12792
12798
|
onMouseleave: C
|
|
12793
|
-
}, [(V = (D = t.slots).precontent) == null ? void 0 : V.call(D),
|
|
12799
|
+
}, [(V = (D = t.slots).precontent) == null ? void 0 : V.call(D), x(), S()])]), E.value && P()]);
|
|
12794
12800
|
};
|
|
12795
12801
|
}
|
|
12796
12802
|
}), Yu = "https://json-schema.org/draft/2020-12/schema", Zu = "https://farris-design.gitee.io/schema-editor.schema.json", Ju = "schema-editor", Qu = "A Farris Input Component", Ku = "object", ed = {
|