@farris/ui-vue 1.6.5-beta.8 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -6
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +220 -220
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +381 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15445 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4685 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6989 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -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);
|
|
@@ -5334,7 +5334,7 @@ function ur(e, t, n, o) {
|
|
|
5334
5334
|
}, [s.value])]);
|
|
5335
5335
|
}
|
|
5336
5336
|
function dr(e, t, n, o, a) {
|
|
5337
|
-
const i = h(e.type), l = h(e.buttons), s = h(e.exceptionInfo), c = h(a.ok || e.okButtonText), r = h(a.cancel || e.cancelButtonText), u = h(e.showCancelButton), f = h(e.showOkButton), v = R(() => !!(l.value && l.value.length)), p = R(() => s.value && s.value.
|
|
5337
|
+
const i = h(e.type), l = h(e.buttons), s = h(e.exceptionInfo), c = h(a.ok || e.okButtonText), r = h(a.cancel || e.cancelButtonText), u = h(e.showCancelButton), f = h(e.showOkButton), v = R(() => !!(l.value && l.value.length)), p = R(() => !!(s.value && s.value.detail)), m = R(() => !(l.value && l.value.length) && (f.value || u.value)), g = ur(e, n, o, a);
|
|
5338
5338
|
c.value === "关闭" ? c.value = a.close : c.value === "知道了" && (c.value = a.exception.roger);
|
|
5339
5339
|
function b(C) {
|
|
5340
5340
|
i.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -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 {
|
|
@@ -6937,7 +6937,8 @@ class Rr extends Bt {
|
|
|
6937
6937
|
editor: {
|
|
6938
6938
|
nullable: !0,
|
|
6939
6939
|
min: 0,
|
|
6940
|
-
decimals: 0
|
|
6940
|
+
decimals: 0,
|
|
6941
|
+
needValid: !0
|
|
6941
6942
|
}
|
|
6942
6943
|
}
|
|
6943
6944
|
}
|
|
@@ -6989,7 +6990,8 @@ class jr extends Bt {
|
|
|
6989
6990
|
min: 0,
|
|
6990
6991
|
decimals: 0,
|
|
6991
6992
|
max: 100,
|
|
6992
|
-
nullable: !0
|
|
6993
|
+
nullable: !0,
|
|
6994
|
+
needValid: !0
|
|
6993
6995
|
}
|
|
6994
6996
|
},
|
|
6995
6997
|
autoTitleWidth: {
|
|
@@ -7175,12 +7177,12 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7175
7177
|
function M(L, q) {
|
|
7176
7178
|
L.classList.contains(q) || L.classList.add(q);
|
|
7177
7179
|
}
|
|
7178
|
-
function
|
|
7180
|
+
function T(L, q) {
|
|
7179
7181
|
L.classList.remove(q);
|
|
7180
7182
|
}
|
|
7181
7183
|
function F(L) {
|
|
7182
7184
|
const { parentElement: q } = L;
|
|
7183
|
-
q && (L.scrollWidth > q.offsetWidth ? M(L, "farris-title-text-custom") :
|
|
7185
|
+
q && (L.scrollWidth > q.offsetWidth ? M(L, "farris-title-text-custom") : T(L, "farris-title-text-custom"));
|
|
7184
7186
|
}
|
|
7185
7187
|
ee(() => e.activeId, (L, q) => {
|
|
7186
7188
|
L !== q && I(L);
|
|
@@ -7195,12 +7197,12 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7195
7197
|
const B = (L) => {
|
|
7196
7198
|
L.preventDefault(), L.stopPropagation();
|
|
7197
7199
|
};
|
|
7198
|
-
function
|
|
7200
|
+
function x(L) {
|
|
7199
7201
|
l.value = l.value.filter((q) => q.props.id !== L), s.value === L && (s.value = "", b(l));
|
|
7200
7202
|
}
|
|
7201
|
-
function
|
|
7203
|
+
function S(L, q, _ = !1) {
|
|
7202
7204
|
const X = l.value.findIndex((ne) => ne.props.id === q);
|
|
7203
|
-
|
|
7205
|
+
x(q), B(L), ge(() => {
|
|
7204
7206
|
v.value++, y(n), _ && (c.value = !0), t.emit("tabRemove", {
|
|
7205
7207
|
removeIndex: X,
|
|
7206
7208
|
removeId: q,
|
|
@@ -7254,7 +7256,7 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7254
7256
|
var ne, se;
|
|
7255
7257
|
D(L);
|
|
7256
7258
|
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),
|
|
7259
|
+
!_ || 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
7260
|
}
|
|
7259
7261
|
function z() {
|
|
7260
7262
|
Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
@@ -7331,7 +7333,7 @@ function Lr(e, t, n, o, a, i) {
|
|
|
7331
7333
|
activeId: s,
|
|
7332
7334
|
addTab: E,
|
|
7333
7335
|
changeTitleStyle: y,
|
|
7334
|
-
removeTab:
|
|
7336
|
+
removeTab: S,
|
|
7335
7337
|
selectTab: P,
|
|
7336
7338
|
tabPages: l,
|
|
7337
7339
|
updateTab: j,
|
|
@@ -7543,7 +7545,7 @@ function Hr(e, t, n) {
|
|
|
7543
7545
|
};
|
|
7544
7546
|
if (C.class) {
|
|
7545
7547
|
const M = (I = C.menuClass) == null ? void 0 : I.split(" ");
|
|
7546
|
-
M && M.length && M.reduce((
|
|
7548
|
+
M && M.length && M.reduce((T, F) => (T[F] = !0, T), O);
|
|
7547
7549
|
}
|
|
7548
7550
|
return O;
|
|
7549
7551
|
}
|
|
@@ -7555,7 +7557,7 @@ function Hr(e, t, n) {
|
|
|
7555
7557
|
"f-rt-dropdown": !0,
|
|
7556
7558
|
"text-truncate": !0
|
|
7557
7559
|
}, I = (M = C.dropdownClass) == null ? void 0 : M.split(" ");
|
|
7558
|
-
return I && I.length && I.reduce((
|
|
7560
|
+
return I && I.length && I.reduce((T, F) => (T[F] = !0, T), O), O;
|
|
7559
7561
|
}
|
|
7560
7562
|
function u(C) {
|
|
7561
7563
|
const O = {
|
|
@@ -7566,7 +7568,7 @@ function Hr(e, t, n) {
|
|
|
7566
7568
|
"farris-component": !0,
|
|
7567
7569
|
"text-truncate": !0
|
|
7568
7570
|
}, I = (C.class || "").split(" ");
|
|
7569
|
-
return I && I.length && I.reduce((M,
|
|
7571
|
+
return I && I.length && I.reduce((M, T) => (M[T] = !0, M), O), O;
|
|
7570
7572
|
}
|
|
7571
7573
|
let f;
|
|
7572
7574
|
const v = /* @__PURE__ */ new Map();
|
|
@@ -7575,8 +7577,8 @@ function Hr(e, t, n) {
|
|
|
7575
7577
|
const M = I ? I.id : "__top_item__";
|
|
7576
7578
|
if (O.children && O.children.length && (O.expanded = !O.expanded, O.expanded)) {
|
|
7577
7579
|
if (v.has(M) && v.get(M) !== O) {
|
|
7578
|
-
const
|
|
7579
|
-
|
|
7580
|
+
const T = v.get(M);
|
|
7581
|
+
T && (T.expanded = !1, v.delete(M));
|
|
7580
7582
|
}
|
|
7581
7583
|
v.set(M, O);
|
|
7582
7584
|
}
|
|
@@ -7588,7 +7590,7 @@ function Hr(e, t, n) {
|
|
|
7588
7590
|
id: I.id
|
|
7589
7591
|
}, [d("span", {
|
|
7590
7592
|
class: u(I),
|
|
7591
|
-
onClick: (
|
|
7593
|
+
onClick: (T) => p(T, I, C)
|
|
7592
7594
|
}, [I.text, d("i", {
|
|
7593
7595
|
class: "f-icon f-icon-arrow-chevron-right",
|
|
7594
7596
|
style: "display: inline-block;float: right;line-height: 1.25rem;"
|
|
@@ -7598,18 +7600,18 @@ function Hr(e, t, n) {
|
|
|
7598
7600
|
const {
|
|
7599
7601
|
height: y,
|
|
7600
7602
|
left: B,
|
|
7601
|
-
top:
|
|
7603
|
+
top: x
|
|
7602
7604
|
} = M[0], {
|
|
7603
|
-
width:
|
|
7605
|
+
width: S,
|
|
7604
7606
|
height: w
|
|
7605
7607
|
} = I.getBoundingClientRect(), {
|
|
7606
7608
|
marginTop: P,
|
|
7607
7609
|
marginBottom: E
|
|
7608
|
-
} = getComputedStyle(I), j = Math.ceil(parseFloat(P)) + Math.ceil(parseFloat(E)), D =
|
|
7610
|
+
} = getComputedStyle(I), j = Math.ceil(parseFloat(P)) + Math.ceil(parseFloat(E)), D = x + y, V = O == null ? void 0 : O.getBoundingClientRect();
|
|
7609
7611
|
function $() {
|
|
7610
7612
|
let K = 0, oe = "left";
|
|
7611
7613
|
const ie = V ? V.right : window.innerWidth, Q = V ? V.left : 0;
|
|
7612
|
-
return K = ie - B - 10, ie - B <
|
|
7614
|
+
return K = ie - B - 10, ie - B < S && B - Q > ie - B && (oe = "right", K = B - Q - 10), {
|
|
7613
7615
|
hposition: oe,
|
|
7614
7616
|
maxWidth: Math.min(K, 300)
|
|
7615
7617
|
};
|
|
@@ -7619,7 +7621,7 @@ function Hr(e, t, n) {
|
|
|
7619
7621
|
A = O.getBoundingClientRect().bottom - D - j - 10;
|
|
7620
7622
|
else {
|
|
7621
7623
|
const K = V ? V.bottom : window.innerHeight;
|
|
7622
|
-
A = C === "page-header" ? K - D :
|
|
7624
|
+
A = C === "page-header" ? K - D : x, A = A - j - 10, z = C === "page-header" ? "bottom" : "top";
|
|
7623
7625
|
}
|
|
7624
7626
|
const H = $();
|
|
7625
7627
|
return {
|
|
@@ -7638,29 +7640,29 @@ function Hr(e, t, n) {
|
|
|
7638
7640
|
};
|
|
7639
7641
|
if (!(i != null && i.value))
|
|
7640
7642
|
return I;
|
|
7641
|
-
const M = i.value.querySelector("#" + C.id),
|
|
7642
|
-
if (M &&
|
|
7643
|
-
const
|
|
7644
|
-
if (!
|
|
7643
|
+
const M = i.value.querySelector("#" + C.id), T = M == null ? void 0 : M.getClientRects();
|
|
7644
|
+
if (M && T && T.length > 0) {
|
|
7645
|
+
const x = M ? M.querySelector("#" + C.id + "_menu") : null;
|
|
7646
|
+
if (!x || C.expanded !== !0)
|
|
7645
7647
|
return I;
|
|
7646
|
-
|
|
7647
|
-
let
|
|
7648
|
+
x.style.visibility = "hidden", x.style.display = "block", x.style.maxHeight = "auto", x.style.maxWidth = O;
|
|
7649
|
+
let S;
|
|
7648
7650
|
switch (a.toolbarPosition) {
|
|
7649
7651
|
case "tabs":
|
|
7650
|
-
|
|
7652
|
+
S = (F = i.value) == null ? void 0 : F.closest(".farris-tabs");
|
|
7651
7653
|
break;
|
|
7652
7654
|
case "section":
|
|
7653
|
-
|
|
7655
|
+
S = (y = i.value) == null ? void 0 : y.closest(".f-section");
|
|
7654
7656
|
break;
|
|
7655
7657
|
default:
|
|
7656
|
-
|
|
7658
|
+
S = (B = i.value) == null ? void 0 : B.closest(".f-page");
|
|
7657
7659
|
}
|
|
7658
|
-
const w = g(a.toolbarPosition,
|
|
7660
|
+
const w = g(a.toolbarPosition, S, x, T), {
|
|
7659
7661
|
position: P,
|
|
7660
7662
|
maxHeight: E,
|
|
7661
7663
|
maxWidth: j
|
|
7662
7664
|
} = w;
|
|
7663
|
-
|
|
7665
|
+
x.style.visibility = "visible";
|
|
7664
7666
|
const D = {
|
|
7665
7667
|
left: P.indexOf("left") > -1 ? 0 : "unset",
|
|
7666
7668
|
right: P.indexOf("left") > -1 ? "unset" : 0,
|
|
@@ -8047,7 +8049,7 @@ function Wr(e, t, n) {
|
|
|
8047
8049
|
const w = e.schema.id, { index: P, schema: E } = I("Copy", w);
|
|
8048
8050
|
E && (s().splice(P + 1, 0, E), n.updateToolbarItems(), c(E.id), (j = e.setupContext) == null || j.emit("addComponent"));
|
|
8049
8051
|
}
|
|
8050
|
-
function
|
|
8052
|
+
function T() {
|
|
8051
8053
|
var j;
|
|
8052
8054
|
const w = e.schema.id, { index: P, schema: E } = I("Append", w);
|
|
8053
8055
|
if (E && e.parent) {
|
|
@@ -8106,15 +8108,15 @@ function Wr(e, t, n) {
|
|
|
8106
8108
|
text: "新增子级",
|
|
8107
8109
|
icon: "f-icon-plus-circle",
|
|
8108
8110
|
onClick: (P) => {
|
|
8109
|
-
y(P),
|
|
8111
|
+
y(P), T();
|
|
8110
8112
|
}
|
|
8111
8113
|
}), w;
|
|
8112
8114
|
}
|
|
8113
|
-
function
|
|
8115
|
+
function x() {
|
|
8114
8116
|
const { schema: w } = e;
|
|
8115
8117
|
m(w);
|
|
8116
8118
|
}
|
|
8117
|
-
function
|
|
8119
|
+
function S() {
|
|
8118
8120
|
var w, P, E, j;
|
|
8119
8121
|
if (e && t) {
|
|
8120
8122
|
const { formSchemaUtils: D } = t, { schema: V } = e;
|
|
@@ -8142,8 +8144,8 @@ function Wr(e, t, n) {
|
|
|
8142
8144
|
checkCanAddComponent: l,
|
|
8143
8145
|
getPropsConfig: F,
|
|
8144
8146
|
getCustomButtons: B,
|
|
8145
|
-
onRemoveComponent:
|
|
8146
|
-
setComponentBasicInfoMap:
|
|
8147
|
+
onRemoveComponent: x,
|
|
8148
|
+
setComponentBasicInfoMap: S
|
|
8147
8149
|
};
|
|
8148
8150
|
}
|
|
8149
8151
|
const Ur = /* @__PURE__ */ he({
|
|
@@ -8398,10 +8400,10 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8398
8400
|
renderToolbarItemDesigner: I
|
|
8399
8401
|
} = C, {
|
|
8400
8402
|
clearAllDropDownMenu: M,
|
|
8401
|
-
renderDropdownMenu:
|
|
8403
|
+
renderDropdownMenu: T,
|
|
8402
8404
|
setResponseToolbarRef: F
|
|
8403
8405
|
} = O;
|
|
8404
|
-
mt("toolbar-item-action", f), f.renderDropdownMenu =
|
|
8406
|
+
mt("toolbar-item-action", f), f.renderDropdownMenu = T, F(i), m && (m.changeSelectedId = function(z) {
|
|
8405
8407
|
l.value = z;
|
|
8406
8408
|
});
|
|
8407
8409
|
function y() {
|
|
@@ -8423,16 +8425,16 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8423
8425
|
} else
|
|
8424
8426
|
y();
|
|
8425
8427
|
}
|
|
8426
|
-
function
|
|
8428
|
+
function x(z = "") {
|
|
8427
8429
|
n.value.filter((H) => H.id !== z && H.children && H.children.length > 0).forEach((H) => {
|
|
8428
8430
|
H.expanded = !1;
|
|
8429
8431
|
}), M(z);
|
|
8430
8432
|
}
|
|
8431
|
-
f.clearAllDropdown =
|
|
8432
|
-
function
|
|
8433
|
+
f.clearAllDropdown = x;
|
|
8434
|
+
function S() {
|
|
8433
8435
|
m && m.updateToolbarItems && m.updateToolbarItems();
|
|
8434
8436
|
}
|
|
8435
|
-
f.updateToolbarItems =
|
|
8437
|
+
f.updateToolbarItems = S;
|
|
8436
8438
|
function w(z) {
|
|
8437
8439
|
if (z) {
|
|
8438
8440
|
const H = i.value.querySelector("#" + z.id), K = H.querySelector("#" + z.id + "_menu"), oe = f.changeMenuPosition(z, H);
|
|
@@ -8470,13 +8472,13 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8470
8472
|
const ie = (H = n.value) == null ? void 0 : H.find((Q) => Q.id === l.value);
|
|
8471
8473
|
w(ie);
|
|
8472
8474
|
} else
|
|
8473
|
-
|
|
8475
|
+
x();
|
|
8474
8476
|
P();
|
|
8475
8477
|
}
|
|
8476
8478
|
}
|
|
8477
8479
|
});
|
|
8478
8480
|
Ce(() => {
|
|
8479
|
-
E.observe(i.value), s = i.value.clientWidth, i.value.componentInstance = p, g(a.value, o.value,
|
|
8481
|
+
E.observe(i.value), s = i.value.clientWidth, i.value.componentInstance = p, g(a.value, o.value, S);
|
|
8480
8482
|
}), Ge(() => {
|
|
8481
8483
|
E.disconnect(), b && b.destroy && b.destroy();
|
|
8482
8484
|
}), t.expose(p.value);
|
|
@@ -8540,7 +8542,7 @@ const Ho = /* @__PURE__ */ he({
|
|
|
8540
8542
|
}, [d("div", {
|
|
8541
8543
|
ref: o,
|
|
8542
8544
|
class: D.value,
|
|
8543
|
-
onClick: (H) =>
|
|
8545
|
+
onClick: (H) => x(H)
|
|
8544
8546
|
}, [d("div", {
|
|
8545
8547
|
ref: a,
|
|
8546
8548
|
class: "d-block f-response-content"
|
|
@@ -8666,16 +8668,16 @@ const Zr = /* @__PURE__ */ he({
|
|
|
8666
8668
|
checkActiveIdAndSelect: O,
|
|
8667
8669
|
listenTabNavElementScroll: I,
|
|
8668
8670
|
toolbarSchema: M,
|
|
8669
|
-
toggleShowTab:
|
|
8671
|
+
toggleShowTab: T,
|
|
8670
8672
|
hasInHeadClass: F,
|
|
8671
8673
|
updateComponentBasicInfoMap: y
|
|
8672
8674
|
} = f;
|
|
8673
8675
|
C(n);
|
|
8674
|
-
const B = Io(e, r, f),
|
|
8675
|
-
updateNavigationLayout:
|
|
8676
|
-
} =
|
|
8676
|
+
const B = Io(e, r, f), x = xo(e, c, B, f), {
|
|
8677
|
+
updateNavigationLayout: S
|
|
8678
|
+
} = x, w = To(e, f), {
|
|
8677
8679
|
hideDropDown: P
|
|
8678
|
-
} = w, E = zl(e, c,
|
|
8680
|
+
} = 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
8681
|
R(() => {
|
|
8680
8682
|
const L = m.value.find((q) => q.props.id === v.value);
|
|
8681
8683
|
return L == null ? void 0 : L.slots;
|
|
@@ -8696,7 +8698,7 @@ const Zr = /* @__PURE__ */ he({
|
|
|
8696
8698
|
updateTab: b,
|
|
8697
8699
|
tabPages: m,
|
|
8698
8700
|
tabType: s,
|
|
8699
|
-
toggleShowTab:
|
|
8701
|
+
toggleShowTab: T,
|
|
8700
8702
|
toolbarVisible: A
|
|
8701
8703
|
}), mt("toolbar-item-handler", u);
|
|
8702
8704
|
const z = R(() => e.fill), H = R(() => ({
|
|
@@ -8723,12 +8725,12 @@ const Zr = /* @__PURE__ */ he({
|
|
|
8723
8725
|
} = Yr(a, m);
|
|
8724
8726
|
Ce(() => {
|
|
8725
8727
|
m.value.length && O(e.activeId || m.value[0].props.id), ge(() => {
|
|
8726
|
-
|
|
8728
|
+
S();
|
|
8727
8729
|
}), p(c), window.addEventListener("click", (L) => {
|
|
8728
8730
|
var q;
|
|
8729
8731
|
P.value || (q = n.value) != null && q.contains(L.target) || (P.value = !0);
|
|
8730
8732
|
}), window.addEventListener("resize", () => {
|
|
8731
|
-
|
|
8733
|
+
S();
|
|
8732
8734
|
}), I(), n.value.componentInstance = l, e.tabType === "default" && ie(c.value, c.value);
|
|
8733
8735
|
}), Ge(() => {
|
|
8734
8736
|
Q && Q.destroy && Q.destroy();
|
|
@@ -9210,7 +9212,7 @@ function yc(e, t, n, o, a, i) {
|
|
|
9210
9212
|
const I = {
|
|
9211
9213
|
"f-section-header": !0
|
|
9212
9214
|
};
|
|
9213
|
-
return t.slots.header && e.headerClass.split(" ").reduce((
|
|
9215
|
+
return t.slots.header && e.headerClass.split(" ").reduce((T, F) => (T[F] = !0, T), I), I;
|
|
9214
9216
|
});
|
|
9215
9217
|
function p(I) {
|
|
9216
9218
|
I.stopPropagation(), e.enableAccordion !== "" && (n.value = !n.value);
|
|
@@ -9771,7 +9773,11 @@ const _c = "search-box", Wc = "A Farris Component", Uc = "object", Gc = {
|
|
|
9771
9773
|
n.value.commitValue(p);
|
|
9772
9774
|
}
|
|
9773
9775
|
function r(p) {
|
|
9774
|
-
|
|
9776
|
+
const m = s.value;
|
|
9777
|
+
t.emit("change", p, {
|
|
9778
|
+
oldValue: m,
|
|
9779
|
+
newValue: p
|
|
9780
|
+
});
|
|
9775
9781
|
}
|
|
9776
9782
|
function u(p) {
|
|
9777
9783
|
t.emit("selectedValue", p);
|
|
@@ -9980,8 +9986,8 @@ function Jc(e, t) {
|
|
|
9980
9986
|
}
|
|
9981
9987
|
function Dn(e, t, n, o, a, i, l, s, c, r) {
|
|
9982
9988
|
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) && ((
|
|
9989
|
+
var B, x;
|
|
9990
|
+
return ((B = e.selection) == null ? void 0 : B.multiSelect) && ((x = e.selection) == null ? void 0 : x.showCheckbox);
|
|
9985
9991
|
}), {
|
|
9986
9992
|
onMouseenterItem: g,
|
|
9987
9993
|
onMouseoverItem: b,
|
|
@@ -9991,7 +9997,7 @@ function Dn(e, t, n, o, a, i, l, s, c, r) {
|
|
|
9991
9997
|
listViewItemClass: O,
|
|
9992
9998
|
listViewItemStyle: I,
|
|
9993
9999
|
onCheckItem: M,
|
|
9994
|
-
onClickItem:
|
|
10000
|
+
onClickItem: T
|
|
9995
10001
|
} = l, F = R(() => {
|
|
9996
10002
|
const B = {
|
|
9997
10003
|
"text-overflow": "ellipsis",
|
|
@@ -10003,27 +10009,27 @@ function Dn(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10003
10009
|
...B
|
|
10004
10010
|
};
|
|
10005
10011
|
});
|
|
10006
|
-
function y(B,
|
|
10012
|
+
function y(B, x, S) {
|
|
10007
10013
|
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,
|
|
10014
|
+
class: O(B, x),
|
|
10015
|
+
id: C(B, x),
|
|
10016
|
+
key: C(B, x),
|
|
10017
|
+
style: I(B, x),
|
|
10018
|
+
onClick: (w) => T(B, x, w),
|
|
10019
|
+
onMouseenter: (w) => g(w, B, x),
|
|
10020
|
+
onMouseover: (w) => b(w, B, x),
|
|
10021
|
+
onMouseout: (w) => k(w, B, x)
|
|
10016
10022
|
}, [m.value && d("div", {
|
|
10017
10023
|
class: "f-list-select",
|
|
10018
10024
|
onClick: (w) => w.stopPropagation()
|
|
10019
10025
|
}, [d(un, {
|
|
10020
|
-
id: "list-" + C(B,
|
|
10026
|
+
id: "list-" + C(B, x),
|
|
10021
10027
|
customClass: "listview-checkbox float-left",
|
|
10022
10028
|
disabled: B[p.value],
|
|
10023
10029
|
checked: B.checked,
|
|
10024
10030
|
"onUpdate:checked": (w) => B.checked = w,
|
|
10025
10031
|
onChange: (w) => {
|
|
10026
|
-
M(B,
|
|
10032
|
+
M(B, x, !w.checked);
|
|
10027
10033
|
}
|
|
10028
10034
|
}, null)]), d("div", {
|
|
10029
10035
|
class: "f-list-content"
|
|
@@ -10062,32 +10068,32 @@ function Qc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10062
10068
|
style: "margin: 10px 0;"
|
|
10063
10069
|
}, [F.raw[v.value || "name"]]);
|
|
10064
10070
|
}
|
|
10065
|
-
function
|
|
10071
|
+
function T(F, y, B) {
|
|
10066
10072
|
return d("li", {
|
|
10067
10073
|
class: k(F, y),
|
|
10068
10074
|
id: b(F, y),
|
|
10069
10075
|
key: b(F, y),
|
|
10070
10076
|
style: C(F, y),
|
|
10071
|
-
onClick: (
|
|
10072
|
-
onMouseenter: (
|
|
10073
|
-
onMouseover: (
|
|
10074
|
-
onMouseout: (
|
|
10077
|
+
onClick: (x) => I(F, y, x),
|
|
10078
|
+
onMouseenter: (x) => p(x, F, y),
|
|
10079
|
+
onMouseover: (x) => m(x, F, y),
|
|
10080
|
+
onMouseout: (x) => g(x, F, y)
|
|
10075
10081
|
}, [u.value && d("div", {
|
|
10076
10082
|
class: "f-list-select",
|
|
10077
|
-
onClick: (
|
|
10083
|
+
onClick: (x) => x.stopPropagation()
|
|
10078
10084
|
}, [d(un, {
|
|
10079
10085
|
id: "list-" + b(F, y),
|
|
10080
10086
|
customClass: "listview-checkbox",
|
|
10081
10087
|
disabled: F[f.value] || !F.checked,
|
|
10082
10088
|
checked: F.checked,
|
|
10083
|
-
"onUpdate:checked": (
|
|
10084
|
-
onChange: (
|
|
10089
|
+
"onUpdate:checked": (x) => F.checked = x,
|
|
10090
|
+
onChange: (x) => O(F, y, !x.checked)
|
|
10085
10091
|
}, null)]), d("div", {
|
|
10086
10092
|
class: "f-list-content"
|
|
10087
10093
|
}, [M(F, y, B)])]);
|
|
10088
10094
|
}
|
|
10089
10095
|
return {
|
|
10090
|
-
renderItem:
|
|
10096
|
+
renderItem: T
|
|
10091
10097
|
};
|
|
10092
10098
|
}
|
|
10093
10099
|
function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
@@ -10103,25 +10109,25 @@ function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10103
10109
|
} = l, {
|
|
10104
10110
|
dragstart: I,
|
|
10105
10111
|
dragenter: M,
|
|
10106
|
-
dragover:
|
|
10112
|
+
dragover: T,
|
|
10107
10113
|
dragend: F
|
|
10108
10114
|
} = o, {
|
|
10109
10115
|
removeItem: y
|
|
10110
10116
|
} = c, B = R(() => ({
|
|
10111
10117
|
margin: u.value ? "10px 0" : "10px 0px 10px 14px"
|
|
10112
10118
|
}));
|
|
10113
|
-
function
|
|
10119
|
+
function x(j, D = "") {
|
|
10114
10120
|
const V = j.target;
|
|
10115
10121
|
V.title = V.scrollWidth > V.clientWidth ? D : "";
|
|
10116
10122
|
}
|
|
10117
|
-
function
|
|
10123
|
+
function S(j) {
|
|
10118
10124
|
return d("div", {
|
|
10119
10125
|
style: B.value,
|
|
10120
|
-
onMouseenter: (D) =>
|
|
10126
|
+
onMouseenter: (D) => x(D, j.raw[v.value || "name"])
|
|
10121
10127
|
}, [j.raw[v.value || "name"]]);
|
|
10122
10128
|
}
|
|
10123
10129
|
function w() {
|
|
10124
|
-
return t.slots.itemContent ? t.slots.itemContent :
|
|
10130
|
+
return t.slots.itemContent ? t.slots.itemContent : S;
|
|
10125
10131
|
}
|
|
10126
10132
|
const P = w();
|
|
10127
10133
|
function E(j, D, V) {
|
|
@@ -10137,7 +10143,7 @@ function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10137
10143
|
onDragstart: ($) => I($, j, D),
|
|
10138
10144
|
onDragenter: ($) => M($, D),
|
|
10139
10145
|
onDragend: ($) => F($, j),
|
|
10140
|
-
onDragover: ($) =>
|
|
10146
|
+
onDragover: ($) => T($)
|
|
10141
10147
|
}, [u.value && d("div", {
|
|
10142
10148
|
class: "f-list-select",
|
|
10143
10149
|
onClick: ($) => $.stopPropagation()
|
|
@@ -10152,7 +10158,9 @@ function Kc(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10152
10158
|
class: "f-list-content"
|
|
10153
10159
|
}, [P(j)]), d("div", {
|
|
10154
10160
|
class: "f-list-remove",
|
|
10155
|
-
onClick: ($) =>
|
|
10161
|
+
onClick: ($) => {
|
|
10162
|
+
$.stopPropagation(), y(D);
|
|
10163
|
+
}
|
|
10156
10164
|
}, [d("div", {
|
|
10157
10165
|
class: "f-list-remove-icon"
|
|
10158
10166
|
}, [d("i", {
|
|
@@ -10228,10 +10236,10 @@ function nu(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10228
10236
|
const I = O(), {
|
|
10229
10237
|
renderItem: M
|
|
10230
10238
|
} = 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,
|
|
10239
|
+
renderItem: T
|
|
10240
|
+
} = eu(e, t, n, r, a, i, c, l, g, s), F = [M, T];
|
|
10233
10241
|
function y() {
|
|
10234
|
-
return n.value.filter((
|
|
10242
|
+
return n.value.filter((S) => S.visible !== !1).map((S, w) => F[S.type](S, w, p));
|
|
10235
10243
|
}
|
|
10236
10244
|
function B() {
|
|
10237
10245
|
return d("div", {
|
|
@@ -10241,14 +10249,14 @@ function nu(e, t, n, o, a, i, l, s, c, r) {
|
|
|
10241
10249
|
class: "f-empty-title"
|
|
10242
10250
|
}, [e.emptyTemplate ? e.emptyTemplate() : t.slots.empty ? t.slots.empty() : m.value])]);
|
|
10243
10251
|
}
|
|
10244
|
-
function
|
|
10252
|
+
function x() {
|
|
10245
10253
|
return d("ul", {
|
|
10246
10254
|
class: b.value,
|
|
10247
10255
|
style: "list-style: none;"
|
|
10248
10256
|
}, [k.value && y(), C.value && B()]);
|
|
10249
10257
|
}
|
|
10250
10258
|
return {
|
|
10251
|
-
renderListArea:
|
|
10259
|
+
renderListArea: x
|
|
10252
10260
|
};
|
|
10253
10261
|
}
|
|
10254
10262
|
function ou(e, t, n) {
|
|
@@ -10349,12 +10357,12 @@ function au() {
|
|
|
10349
10357
|
function iu(e, t, n, o) {
|
|
10350
10358
|
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
10359
|
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 =
|
|
10360
|
+
function b(T, F) {
|
|
10361
|
+
const y = T - m, B = F - g;
|
|
10362
|
+
p.style.left = parseInt(p.style.left) + y + "px", p.style.top = parseInt(p.style.top) + B + "px", m = T, g = F;
|
|
10355
10363
|
}
|
|
10356
|
-
function k(
|
|
10357
|
-
const { left: F, top: y } =
|
|
10364
|
+
function k(T) {
|
|
10365
|
+
const { left: F, top: y } = T.getBoundingClientRect(), B = T.cloneNode(!0);
|
|
10358
10366
|
return B.style.cssText = `
|
|
10359
10367
|
position:absolute;
|
|
10360
10368
|
left:${F}px;
|
|
@@ -10369,34 +10377,34 @@ function iu(e, t, n, o) {
|
|
|
10369
10377
|
align-items: center;
|
|
10370
10378
|
float: none;
|
|
10371
10379
|
text-align: initial;
|
|
10372
|
-
width:${getComputedStyle(
|
|
10373
|
-
height:${getComputedStyle(
|
|
10380
|
+
width:${getComputedStyle(T).width};
|
|
10381
|
+
height:${getComputedStyle(T).height};
|
|
10374
10382
|
`, B.children[0].style.cssText = "overflow: hidden;flex: 1 1 auto;width: 100%;", B.children[0].children[0].style.cssText = `
|
|
10375
10383
|
margin: 10px 0px 10px 14px;
|
|
10376
10384
|
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
|
10377
10385
|
`, 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
10386
|
}
|
|
10379
|
-
function C(
|
|
10380
|
-
if (
|
|
10381
|
-
if (p = k(
|
|
10387
|
+
function C(T, F, y) {
|
|
10388
|
+
if (T.stopPropagation(), v(), F) {
|
|
10389
|
+
if (p = k(T.target), T.dataTransfer) {
|
|
10382
10390
|
const B = new Image();
|
|
10383
|
-
B.src = "",
|
|
10391
|
+
B.src = "", T.dataTransfer.setDragImage(B, 0, 0);
|
|
10384
10392
|
}
|
|
10385
|
-
m =
|
|
10393
|
+
m = T.pageX, g = T.pageY, setTimeout(() => {
|
|
10386
10394
|
l.value = y, s.value = !0, F.moving = !0;
|
|
10387
10395
|
});
|
|
10388
10396
|
}
|
|
10389
10397
|
}
|
|
10390
|
-
function O(
|
|
10391
|
-
if (
|
|
10398
|
+
function O(T, F) {
|
|
10399
|
+
if (T.preventDefault(), l.value !== F) {
|
|
10392
10400
|
const y = i.value[l.value], B = i.value;
|
|
10393
|
-
B.splice(l.value, 1), B.splice(F, 0, y), l.value = F, b(
|
|
10401
|
+
B.splice(l.value, 1), B.splice(F, 0, y), l.value = F, b(T.pageX, T.pageY);
|
|
10394
10402
|
}
|
|
10395
10403
|
}
|
|
10396
|
-
function I(
|
|
10397
|
-
|
|
10404
|
+
function I(T) {
|
|
10405
|
+
T.preventDefault(), T.dataTransfer && (T.dataTransfer.dropEffect = "move"), b(T.pageX, T.pageY);
|
|
10398
10406
|
}
|
|
10399
|
-
function M(
|
|
10407
|
+
function M(T, F) {
|
|
10400
10408
|
F && (F.moving = !1, p && (document.body.removeChild(p), p = null)), i.value.forEach((y, B) => {
|
|
10401
10409
|
y.__fv_index__ = B;
|
|
10402
10410
|
}), 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 +10427,7 @@ function lu(e, t, n, o, a, i) {
|
|
|
10419
10427
|
function M() {
|
|
10420
10428
|
O.value = b();
|
|
10421
10429
|
}
|
|
10422
|
-
function
|
|
10430
|
+
function T(E, j) {
|
|
10423
10431
|
return E.raw[l.value] != null ? E.raw[l.value] : "";
|
|
10424
10432
|
}
|
|
10425
10433
|
function F(E, j) {
|
|
@@ -10430,7 +10438,7 @@ function lu(e, t, n, o, a, i) {
|
|
|
10430
10438
|
"f-un-select": !!E.raw[s.value],
|
|
10431
10439
|
"f-listview-active": (
|
|
10432
10440
|
// 多选
|
|
10433
|
-
r.value && I(
|
|
10441
|
+
r.value && I(T(E)) || // 单选
|
|
10434
10442
|
!r.value && E.raw[l.value] === C.value
|
|
10435
10443
|
),
|
|
10436
10444
|
"f-listview-hover": !f.value && j === m.value,
|
|
@@ -10447,7 +10455,7 @@ function lu(e, t, n, o, a, i) {
|
|
|
10447
10455
|
function y(E, j) {
|
|
10448
10456
|
const D = (
|
|
10449
10457
|
// 多选
|
|
10450
|
-
r.value && I(
|
|
10458
|
+
r.value && I(T(E)) || // 单选
|
|
10451
10459
|
!r.value && E.raw[l.value] === C.value
|
|
10452
10460
|
), V = {};
|
|
10453
10461
|
if (D && (V.backgroundColor = "#dae9ff"), typeof e.itemStyle == "string")
|
|
@@ -10459,24 +10467,24 @@ function lu(e, t, n, o, a, i) {
|
|
|
10459
10467
|
return V;
|
|
10460
10468
|
}
|
|
10461
10469
|
const B = R(() => !r.value);
|
|
10462
|
-
function
|
|
10470
|
+
function x(E, j, D) {
|
|
10463
10471
|
E.checked = D, !E.raw[s.value] && (B.value && (p.value = E.raw[l.value]), k(E));
|
|
10464
10472
|
}
|
|
10465
|
-
const
|
|
10473
|
+
const S = R(() => r.value && u.value === "OnCheckClearByClick"), w = R(() => !r.value || r.value && (u.value === "OnCheckAndClick" || u.value === "OnClick"));
|
|
10466
10474
|
function P(E, j, D) {
|
|
10467
10475
|
if (E.raw[s.value]) {
|
|
10468
10476
|
D == null || D.preventDefault(), D == null || D.stopPropagation();
|
|
10469
10477
|
return;
|
|
10470
10478
|
}
|
|
10471
|
-
p.value = E.raw[l.value], v.value = j,
|
|
10479
|
+
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
10480
|
}
|
|
10473
10481
|
return {
|
|
10474
|
-
getKey:
|
|
10482
|
+
getKey: T,
|
|
10475
10483
|
selectedItems: O,
|
|
10476
10484
|
listViewItemClass: F,
|
|
10477
10485
|
listViewItemStyle: y,
|
|
10478
10486
|
updateSelectedItems: M,
|
|
10479
|
-
onCheckItem:
|
|
10487
|
+
onCheckItem: x,
|
|
10480
10488
|
onClickItem: P
|
|
10481
10489
|
};
|
|
10482
10490
|
}
|
|
@@ -10485,17 +10493,17 @@ const ot = /* @__PURE__ */ he({
|
|
|
10485
10493
|
props: Go,
|
|
10486
10494
|
emits: ["afterSearch", "checkValuesChange", "clickItem", "selectItem", "unSelectItem", "selectionChange", "removeItem", "change", "activeChange", "pageIndexChanged", "pageSizeChanged", "changed", "selectionUpdate"],
|
|
10487
10495
|
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),
|
|
10496
|
+
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
10497
|
getVisualData: B
|
|
10490
10498
|
} = y;
|
|
10491
10499
|
i.value = B(0, b.value + l - 1);
|
|
10492
|
-
const
|
|
10500
|
+
const x = R(() => {
|
|
10493
10501
|
const le = {
|
|
10494
10502
|
"f-list-view": !0,
|
|
10495
10503
|
"f-list-view-multiple": e.multiSelect
|
|
10496
10504
|
};
|
|
10497
10505
|
return e.size !== "default" && (le[`${e.size}-item`] = !0), Le(le, e.customClass);
|
|
10498
|
-
}),
|
|
10506
|
+
}), S = R(() => !!t.slots.footer || o.value);
|
|
10499
10507
|
function w() {
|
|
10500
10508
|
return e.header === "SearchBar" ? On : e.header === "ContentHeader" ? ou : On;
|
|
10501
10509
|
}
|
|
@@ -10571,7 +10579,7 @@ const ot = /* @__PURE__ */ he({
|
|
|
10571
10579
|
updateColumnRenderContext: Ee
|
|
10572
10580
|
} = ne, we = ao(e, v, i, ue, y, b, l, _, C);
|
|
10573
10581
|
return io(e, t, v, we, g, p), () => d("div", {
|
|
10574
|
-
class:
|
|
10582
|
+
class: x.value,
|
|
10575
10583
|
onClick: L
|
|
10576
10584
|
}, [E(), d("div", {
|
|
10577
10585
|
ref: n,
|
|
@@ -10582,7 +10590,7 @@ const ot = /* @__PURE__ */ he({
|
|
|
10582
10590
|
onMouseleave: () => {
|
|
10583
10591
|
a.value = !1;
|
|
10584
10592
|
}
|
|
10585
|
-
}, [$()]),
|
|
10593
|
+
}, [$()]), S.value && d("div", {
|
|
10586
10594
|
class: "f-list-view-footer"
|
|
10587
10595
|
}, [e.footerTemplate ? e.footerTemplate() : t.slots.footer && t.slots.footer()])]);
|
|
10588
10596
|
}
|
|
@@ -11238,12 +11246,12 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11238
11246
|
background: "rgba(250,250,252,.6)",
|
|
11239
11247
|
width: "100%",
|
|
11240
11248
|
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),
|
|
11249
|
+
}, 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
11250
|
renderFirstPage: y,
|
|
11243
11251
|
renderPreviousPage: B
|
|
11244
11252
|
} = ea(s, p, C, l, t), {
|
|
11245
|
-
renderLastPage:
|
|
11246
|
-
renderNextPage:
|
|
11253
|
+
renderLastPage: x,
|
|
11254
|
+
renderNextPage: S
|
|
11247
11255
|
} = Zo(s, b, g, l, t), {
|
|
11248
11256
|
renderPageInfo: w
|
|
11249
11257
|
} = Jo(a, c), {
|
|
@@ -11280,7 +11288,7 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11280
11288
|
"justify-content": a.value === "center" ? "center" : "start"
|
|
11281
11289
|
}));
|
|
11282
11290
|
function A() {
|
|
11283
|
-
return d(Be, null, [I.value && w(), M.value && P(), F.value && y(), F.value && B(),
|
|
11291
|
+
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
11292
|
}
|
|
11285
11293
|
function z() {
|
|
11286
11294
|
return d(Be, null, [d("li", {
|
|
@@ -11295,7 +11303,7 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11295
11303
|
style: "margin-left: 5px"
|
|
11296
11304
|
}, [d("span", {
|
|
11297
11305
|
style: "font-size: 16px; font-weight: 600;"
|
|
11298
|
-
}, [xe(" "), g.value])]), F.value &&
|
|
11306
|
+
}, [xe(" "), g.value])]), F.value && S(), F.value && x()]);
|
|
11299
11307
|
}
|
|
11300
11308
|
return () => d("div", {
|
|
11301
11309
|
class: "pagination-container",
|
|
@@ -11320,11 +11328,11 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11320
11328
|
const {
|
|
11321
11329
|
pages: v,
|
|
11322
11330
|
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),
|
|
11331
|
+
} = 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
11332
|
renderFirstPage: B,
|
|
11325
|
-
renderPreviousPage:
|
|
11333
|
+
renderPreviousPage: x
|
|
11326
11334
|
} = ea(s, m, O, l, t), {
|
|
11327
|
-
renderLastPage:
|
|
11335
|
+
renderLastPage: S,
|
|
11328
11336
|
renderNextPage: w
|
|
11329
11337
|
} = Zo(s, k, b, l, t), {
|
|
11330
11338
|
renderPageInfo: P
|
|
@@ -11353,12 +11361,12 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11353
11361
|
"justify-content": a.value === "center" ? "center" : "start"
|
|
11354
11362
|
}));
|
|
11355
11363
|
function A() {
|
|
11356
|
-
return d(Be, null, [M.value && P(),
|
|
11364
|
+
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
11365
|
}
|
|
11358
11366
|
function z() {
|
|
11359
11367
|
return d(Be, null, [d("li", {
|
|
11360
11368
|
class: "page-item d-flex flex-fill"
|
|
11361
|
-
}, null), y.value && B(), y.value &&
|
|
11369
|
+
}, null), y.value && B(), y.value && x(), D(), d("li", {
|
|
11362
11370
|
class: "page-item page-separator",
|
|
11363
11371
|
style: "margin-left: 10px"
|
|
11364
11372
|
}, [d("span", {
|
|
@@ -11368,7 +11376,7 @@ const Ct = /* @__PURE__ */ he({
|
|
|
11368
11376
|
style: "margin-left: 5px"
|
|
11369
11377
|
}, [d("span", {
|
|
11370
11378
|
style: "font-size: 16px; font-weight: 600;"
|
|
11371
|
-
}, [xe(" "), b.value])]), y.value && w(), y.value &&
|
|
11379
|
+
}, [xe(" "), b.value])]), y.value && w(), y.value && S()]);
|
|
11372
11380
|
}
|
|
11373
11381
|
return () => d("div", {
|
|
11374
11382
|
ref: r,
|
|
@@ -11418,13 +11426,13 @@ const _t = {
|
|
|
11418
11426
|
i.value.updateDataSource(I);
|
|
11419
11427
|
}
|
|
11420
11428
|
ee(() => s == null ? void 0 : s.value, (I, M) => {
|
|
11421
|
-
let
|
|
11422
|
-
I && I !== M && (
|
|
11429
|
+
let T = a.value;
|
|
11430
|
+
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
11431
|
});
|
|
11424
11432
|
function m({
|
|
11425
11433
|
item: I,
|
|
11426
11434
|
index: M,
|
|
11427
|
-
selectedItem:
|
|
11435
|
+
selectedItem: T
|
|
11428
11436
|
}) {
|
|
11429
11437
|
return d("div", {
|
|
11430
11438
|
class: "f-navForm-item"
|
|
@@ -11450,7 +11458,7 @@ const _t = {
|
|
|
11450
11458
|
return;
|
|
11451
11459
|
const {
|
|
11452
11460
|
pageIndex: M
|
|
11453
|
-
} = I,
|
|
11461
|
+
} = I, T = (M - 1) * f.value, F = T + f.value, y = a.value.slice(T, F);
|
|
11454
11462
|
p(y), r.value = M;
|
|
11455
11463
|
}
|
|
11456
11464
|
function b() {
|
|
@@ -11471,11 +11479,11 @@ const _t = {
|
|
|
11471
11479
|
}
|
|
11472
11480
|
async function C() {
|
|
11473
11481
|
var F;
|
|
11474
|
-
const I = ye("FLoadingService", null), M = I == null ? void 0 : I.show(),
|
|
11482
|
+
const I = ye("FLoadingService", null), M = I == null ? void 0 : I.show(), T = await n("", {
|
|
11475
11483
|
pageIndex: 1,
|
|
11476
11484
|
pageSize: 1
|
|
11477
11485
|
}, e.editorParams);
|
|
11478
|
-
a.value =
|
|
11486
|
+
a.value = T, l.value = T, p(l.value), u.value = T.length, g({
|
|
11479
11487
|
pageIndex: 1
|
|
11480
11488
|
}), (F = M.value) == null || F.close();
|
|
11481
11489
|
}
|
|
@@ -11582,19 +11590,19 @@ const _t = {
|
|
|
11582
11590
|
function k() {
|
|
11583
11591
|
var B;
|
|
11584
11592
|
let y = tt(s.value);
|
|
11585
|
-
if (l.value && (y = s.value.filter((
|
|
11586
|
-
const
|
|
11587
|
-
y = y.filter((
|
|
11593
|
+
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") {
|
|
11594
|
+
const x = i.value.contains || [];
|
|
11595
|
+
y = y.filter((S) => x.includes(S.code));
|
|
11588
11596
|
}
|
|
11589
11597
|
c.value = y, b(c.value);
|
|
11590
11598
|
}
|
|
11591
11599
|
async function C() {
|
|
11592
|
-
var
|
|
11593
|
-
const y = ye("FLoadingService", null), B = y == null ? void 0 : y.show(),
|
|
11600
|
+
var S;
|
|
11601
|
+
const y = ye("FLoadingService", null), B = y == null ? void 0 : y.show(), x = await n("", {
|
|
11594
11602
|
pageIndex: 1,
|
|
11595
11603
|
pageSize: 1
|
|
11596
11604
|
}, e.editorParams);
|
|
11597
|
-
s.value =
|
|
11605
|
+
s.value = x, k(), (S = B.value) == null || S.close();
|
|
11598
11606
|
}
|
|
11599
11607
|
Ce(() => {
|
|
11600
11608
|
C(), a != null && a.length && f.value.activeRowById(a[0].code);
|
|
@@ -11609,7 +11617,7 @@ const _t = {
|
|
|
11609
11617
|
function M() {
|
|
11610
11618
|
l.value = "", k(), u.value = null;
|
|
11611
11619
|
}
|
|
11612
|
-
function
|
|
11620
|
+
function T() {
|
|
11613
11621
|
return d("div", {
|
|
11614
11622
|
class: "f-datagrid-norecords"
|
|
11615
11623
|
}, [d("div", {
|
|
@@ -11683,7 +11691,7 @@ const _t = {
|
|
|
11683
11691
|
onSelectionUpdate: (y) => g(y)
|
|
11684
11692
|
}, {
|
|
11685
11693
|
content: p,
|
|
11686
|
-
empty:
|
|
11694
|
+
empty: T
|
|
11687
11695
|
})])])]);
|
|
11688
11696
|
}
|
|
11689
11697
|
}), Bu = /* @__PURE__ */ he({
|
|
@@ -11829,54 +11837,54 @@ const Fu = {
|
|
|
11829
11837
|
g();
|
|
11830
11838
|
});
|
|
11831
11839
|
const m = R(() => {
|
|
11832
|
-
const
|
|
11840
|
+
const T = {
|
|
11833
11841
|
visibility: u.value ? "visible" : "hidden",
|
|
11834
11842
|
transform: "translate(-50%,-50%)"
|
|
11835
11843
|
};
|
|
11836
|
-
return e.target === document.body && (
|
|
11844
|
+
return e.target === document.body && (T.position = "fixed"), T;
|
|
11837
11845
|
});
|
|
11838
11846
|
function g() {
|
|
11839
11847
|
a.value && !v && (v = setTimeout(() => {
|
|
11840
11848
|
v = null, O(), u.value = !0;
|
|
11841
11849
|
}, e.delay)), a.value || v && (clearTimeout(v), v = null);
|
|
11842
11850
|
}
|
|
11843
|
-
function b(
|
|
11844
|
-
f =
|
|
11851
|
+
function b(T) {
|
|
11852
|
+
f = T;
|
|
11845
11853
|
}
|
|
11846
11854
|
function k() {
|
|
11847
11855
|
return f;
|
|
11848
11856
|
}
|
|
11849
|
-
function C(
|
|
11857
|
+
function C(T = () => {
|
|
11850
11858
|
}) {
|
|
11851
11859
|
a.value = !1, u.value = !1, t.emit("closed", {
|
|
11852
11860
|
loadingId: f,
|
|
11853
|
-
callback:
|
|
11861
|
+
callback: T
|
|
11854
11862
|
});
|
|
11855
11863
|
}
|
|
11856
11864
|
function O() {
|
|
11857
|
-
const
|
|
11858
|
-
c.value && c.value.style && (c.value.style.zIndex = (
|
|
11865
|
+
const T = I();
|
|
11866
|
+
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
11867
|
}
|
|
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((
|
|
11868
|
+
function I(T = 1) {
|
|
11869
|
+
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
11870
|
const {
|
|
11863
|
-
display:
|
|
11871
|
+
display: S,
|
|
11864
11872
|
zIndex: w
|
|
11865
|
-
} = window.getComputedStyle(
|
|
11866
|
-
return
|
|
11867
|
-
}).filter((
|
|
11873
|
+
} = window.getComputedStyle(x);
|
|
11874
|
+
return S === "none" ? 0 : parseInt(w, 10);
|
|
11875
|
+
}).filter((x) => x);
|
|
11868
11876
|
let B = Math.max(...y);
|
|
11869
|
-
return B < 1040 && (B = 1040), B +
|
|
11877
|
+
return B < 1040 && (B = 1040), B + T;
|
|
11870
11878
|
}
|
|
11871
11879
|
t.expose({
|
|
11872
11880
|
close: C,
|
|
11873
11881
|
setLoadingId: b,
|
|
11874
11882
|
getLoadingId: k
|
|
11875
|
-
}), ee(() => e.isActive, (
|
|
11876
|
-
a.value =
|
|
11883
|
+
}), ee(() => e.isActive, (T) => {
|
|
11884
|
+
a.value = T, g(), T || C();
|
|
11877
11885
|
});
|
|
11878
|
-
function M(
|
|
11879
|
-
|
|
11886
|
+
function M(T) {
|
|
11887
|
+
T.stopPropagation();
|
|
11880
11888
|
}
|
|
11881
11889
|
return () => d(Be, null, [a.value && d("div", {
|
|
11882
11890
|
ref: c,
|
|
@@ -12003,7 +12011,7 @@ const $t = /* @__PURE__ */ he({
|
|
|
12003
12011
|
function m() {
|
|
12004
12012
|
return o.value.map((y, B) => {
|
|
12005
12013
|
if (a.has(y.type)) {
|
|
12006
|
-
const
|
|
12014
|
+
const x = a.get(y.type), S = {
|
|
12007
12015
|
enableGroup: y.enableGroup || !1,
|
|
12008
12016
|
groupField: y.groupField || "category",
|
|
12009
12017
|
groupFormatter: y.groupFormatter || null,
|
|
@@ -12016,11 +12024,11 @@ const $t = /* @__PURE__ */ he({
|
|
|
12016
12024
|
title: y.title,
|
|
12017
12025
|
class: "container h-100"
|
|
12018
12026
|
}, {
|
|
12019
|
-
default: () => [d(
|
|
12027
|
+
default: () => [d(x, wt({
|
|
12020
12028
|
ref: (w) => {
|
|
12021
12029
|
w && (f[B] = w);
|
|
12022
12030
|
}
|
|
12023
|
-
},
|
|
12031
|
+
}, S, {
|
|
12024
12032
|
onSelectionChange: (w) => v(w)
|
|
12025
12033
|
}), null)]
|
|
12026
12034
|
});
|
|
@@ -12402,44 +12410,44 @@ function zu(e, t, n, o, a) {
|
|
|
12402
12410
|
"f-state-focus": m.value,
|
|
12403
12411
|
"input-group--has-clear": e.enableClear && r.value
|
|
12404
12412
|
}));
|
|
12405
|
-
function k(
|
|
12406
|
-
n.value =
|
|
12413
|
+
function k(S, w = !0) {
|
|
12414
|
+
n.value = S, w && (t.emit("change", S), t.emit("update:modelValue", S));
|
|
12407
12415
|
}
|
|
12408
|
-
function C(
|
|
12409
|
-
s.value = !1, k(
|
|
12416
|
+
function C(S) {
|
|
12417
|
+
s.value = !1, k(S, !0);
|
|
12410
12418
|
}
|
|
12411
12419
|
ee(
|
|
12412
12420
|
() => e.modelValue,
|
|
12413
|
-
(
|
|
12414
|
-
n.value =
|
|
12421
|
+
(S) => {
|
|
12422
|
+
n.value = S;
|
|
12415
12423
|
}
|
|
12416
12424
|
);
|
|
12417
|
-
function O(
|
|
12418
|
-
p.value = !1, t.emit("blur",
|
|
12425
|
+
function O(S) {
|
|
12426
|
+
p.value = !1, t.emit("blur", S), S.stopPropagation();
|
|
12419
12427
|
}
|
|
12420
|
-
function I(
|
|
12421
|
-
t.emit("click",
|
|
12428
|
+
function I(S) {
|
|
12429
|
+
t.emit("click", S), c(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && a.togglePopup();
|
|
12422
12430
|
}
|
|
12423
|
-
function M(
|
|
12424
|
-
!e.disable && !e.readonly && (p.value = !0, v.value || (t.emit("focus",
|
|
12431
|
+
function M(S) {
|
|
12432
|
+
!e.disable && !e.readonly && (p.value = !0, v.value || (t.emit("focus", S), l.value && !s.value && a.popup()));
|
|
12425
12433
|
}
|
|
12426
|
-
function
|
|
12427
|
-
t.emit("input",
|
|
12428
|
-
const w =
|
|
12434
|
+
function T(S) {
|
|
12435
|
+
t.emit("input", S);
|
|
12436
|
+
const w = S.target.value;
|
|
12429
12437
|
o.value = w, n.value !== w && k(w, e.updateOn === "change"), i.value && !s.value && a.popup();
|
|
12430
12438
|
}
|
|
12431
|
-
function F(
|
|
12432
|
-
|
|
12439
|
+
function F(S) {
|
|
12440
|
+
S.target.tagName !== "INPUT" && S.preventDefault(), S.stopPropagation();
|
|
12433
12441
|
}
|
|
12434
|
-
function y(
|
|
12435
|
-
t.emit("keydown",
|
|
12442
|
+
function y(S) {
|
|
12443
|
+
t.emit("keydown", S);
|
|
12436
12444
|
}
|
|
12437
|
-
function B(
|
|
12438
|
-
|
|
12445
|
+
function B(S) {
|
|
12446
|
+
S.key === "Enter" && (i.value || l.value) && a.hidePopup(), t.emit("keyup", S);
|
|
12439
12447
|
}
|
|
12440
|
-
function S
|
|
12441
|
-
const w =
|
|
12442
|
-
|
|
12448
|
+
function x(S) {
|
|
12449
|
+
const w = S.target.value;
|
|
12450
|
+
S.stopPropagation(), k(w);
|
|
12443
12451
|
}
|
|
12444
12452
|
return {
|
|
12445
12453
|
hasFocusedTextBox: m,
|
|
@@ -12454,11 +12462,11 @@ function zu(e, t, n, o, a) {
|
|
|
12454
12462
|
onBlurTextBox: O,
|
|
12455
12463
|
onClickTextBox: I,
|
|
12456
12464
|
onFocusTextBox: M,
|
|
12457
|
-
onInput:
|
|
12465
|
+
onInput: T,
|
|
12458
12466
|
onKeyDownTextBox: y,
|
|
12459
12467
|
onKeyUpTextBox: B,
|
|
12460
12468
|
onMouseDownTextBox: F,
|
|
12461
|
-
onTextBoxValueChange:
|
|
12469
|
+
onTextBoxValueChange: x
|
|
12462
12470
|
};
|
|
12463
12471
|
}
|
|
12464
12472
|
const ct = "FarrisVue_PopoverInstancesKey";
|
|
@@ -12484,7 +12492,7 @@ function qu(e, t, n, o) {
|
|
|
12484
12492
|
if (!!t.slots.default) {
|
|
12485
12493
|
if (!p && !i.value && !await l())
|
|
12486
12494
|
return;
|
|
12487
|
-
i.value = !i.value, await ge(), c();
|
|
12495
|
+
i.value = !i.value, i.value && (await ge(), c());
|
|
12488
12496
|
}
|
|
12489
12497
|
}
|
|
12490
12498
|
async function u(p = !1) {
|
|
@@ -12535,7 +12543,7 @@ function _u(e, t, n) {
|
|
|
12535
12543
|
}, M = (F) => {
|
|
12536
12544
|
F.preventDefault(), O.value = !1, f(F);
|
|
12537
12545
|
};
|
|
12538
|
-
function
|
|
12546
|
+
function T(F) {
|
|
12539
12547
|
O.value || f(F);
|
|
12540
12548
|
}
|
|
12541
12549
|
return () => d("input", {
|
|
@@ -12558,7 +12566,7 @@ function _u(e, t, n) {
|
|
|
12558
12566
|
onChange: g,
|
|
12559
12567
|
onClick: r,
|
|
12560
12568
|
onFocus: u,
|
|
12561
|
-
onInput:
|
|
12569
|
+
onInput: T,
|
|
12562
12570
|
onKeydown: v,
|
|
12563
12571
|
onKeyup: p,
|
|
12564
12572
|
onMousedown: m,
|
|
@@ -12701,7 +12709,7 @@ const Xu = /* @__PURE__ */ he({
|
|
|
12701
12709
|
return o.value && o.value.split(" ").reduce((V, $) => (V[$] = !0, V), D), D;
|
|
12702
12710
|
}), M = R(() => ({
|
|
12703
12711
|
overflow: e.wrapText ? "hidden" : ""
|
|
12704
|
-
})),
|
|
12712
|
+
})), T = R(() => ({
|
|
12705
12713
|
paddingLeft: "3px",
|
|
12706
12714
|
backgroundColor: "#fff"
|
|
12707
12715
|
}));
|
|
@@ -12724,12 +12732,12 @@ const Xu = /* @__PURE__ */ he({
|
|
|
12724
12732
|
class: "multi--more-text"
|
|
12725
12733
|
}, [xe("+"), y.value])])]) : _u(e, a, v);
|
|
12726
12734
|
}
|
|
12727
|
-
let
|
|
12735
|
+
let x = B();
|
|
12728
12736
|
ee([() => e.multiSelect, () => e.inputType], () => {
|
|
12729
|
-
|
|
12737
|
+
x = B();
|
|
12730
12738
|
});
|
|
12731
12739
|
const {
|
|
12732
|
-
renderButtonGroup:
|
|
12740
|
+
renderButtonGroup: S,
|
|
12733
12741
|
buttonHandleElement: w
|
|
12734
12742
|
} = Uu(e, t, u, b), P = Gu(e, t, i), E = h(l.value), j = {
|
|
12735
12743
|
displayText: f,
|
|
@@ -12787,10 +12795,10 @@ const Xu = /* @__PURE__ */ he({
|
|
|
12787
12795
|
}), [d("div", {
|
|
12788
12796
|
id: e.id ? `${e.id}-input-group` : void 0,
|
|
12789
12797
|
class: g.value,
|
|
12790
|
-
style:
|
|
12798
|
+
style: T.value,
|
|
12791
12799
|
onMouseenter: k,
|
|
12792
12800
|
onMouseleave: C
|
|
12793
|
-
}, [(V = (D = t.slots).precontent) == null ? void 0 : V.call(D),
|
|
12801
|
+
}, [(V = (D = t.slots).precontent) == null ? void 0 : V.call(D), x(), S()])]), E.value && P()]);
|
|
12794
12802
|
};
|
|
12795
12803
|
}
|
|
12796
12804
|
}), 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 = {
|