@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
|
@@ -527,13 +527,13 @@ function cn(n, t, e) {
|
|
|
527
527
|
}
|
|
528
528
|
function f(p, v, y, E, M, R = "", k = "") {
|
|
529
529
|
return Object.keys(p).map((g) => {
|
|
530
|
-
const
|
|
530
|
+
const x = C(1), b = g, B = p[g], H = Object.keys(B), S = B.title, F = B.type, V = i.get(F) || { type: "input-group", enableClear: !1 }, P = B.editor ? Object.assign({}, V, B.editor) : Object.assign({}, V), $ = c(H, B, v), W = l(H, B, v);
|
|
531
531
|
P.readonly = P.readonly === void 0 ? W() : P.readonly;
|
|
532
532
|
const ee = B.type === "cascade" ? f(B.properties, v, y, E, M, R, k) : [], O = !0;
|
|
533
533
|
let N = s(B, k);
|
|
534
534
|
const G = L({
|
|
535
535
|
get() {
|
|
536
|
-
if (
|
|
536
|
+
if (x.value) {
|
|
537
537
|
if (["class", "style"].find((se) => se === b) && !N && (N = o.get("/converter/appearance.converter") || null), N && N.convertFrom)
|
|
538
538
|
return N.convertFrom(y, g, M, R);
|
|
539
539
|
const ie = y[g];
|
|
@@ -542,28 +542,28 @@ function cn(n, t, e) {
|
|
|
542
542
|
return null;
|
|
543
543
|
},
|
|
544
544
|
set(ie) {
|
|
545
|
-
|
|
545
|
+
x.value += 1, N && N.convertTo ? (N.convertTo(E, g, ie, M, R), N.convertTo(y, g, ie, M, R)) : (E[g] = ie, y[g] = ie);
|
|
546
546
|
}
|
|
547
|
-
}), { refreshPanelAfterChanged: z, description: te, isExpand: ge, parentPropertyID: he } = B, Z = { propertyID: b, propertyName:
|
|
547
|
+
}), { refreshPanelAfterChanged: z, description: te, isExpand: ge, parentPropertyID: he } = B, Z = { propertyID: b, propertyName: S, propertyType: F, propertyValue: G, editor: P, visible: $, readonly: W, cascadeConfig: ee, hideCascadeTitle: O, refreshPanelAfterChanged: z, description: te, isExpand: ge, parentPropertyID: he };
|
|
548
548
|
return v[b] = Z, Z;
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
function u(p, v, y = {}) {
|
|
552
552
|
const E = {}, M = n[p];
|
|
553
553
|
return M && M.categories ? Object.keys(M.categories).map((k) => {
|
|
554
|
-
const w = M.categories[k], g = w == null ? void 0 : w.title,
|
|
555
|
-
return { categoryId: k, categoryName: g, properties:
|
|
554
|
+
const w = M.categories[k], g = w == null ? void 0 : w.title, x = f(w.properties || {}, E, {}, y, v);
|
|
555
|
+
return { categoryId: k, categoryName: g, properties: x };
|
|
556
556
|
}) : [];
|
|
557
557
|
}
|
|
558
558
|
function m(p, v, y, E, M = "") {
|
|
559
|
-
const R = v.$ref.schema, k = v.$ref.converter, w = y[R], g = w.type,
|
|
559
|
+
const R = v.$ref.schema, k = v.$ref.converter, w = y[R], g = w.type, x = e(w), b = {}, B = n[g];
|
|
560
560
|
if (B && B.categories) {
|
|
561
|
-
const H = B.categories[p],
|
|
561
|
+
const H = B.categories[p], S = H == null ? void 0 : H.title;
|
|
562
562
|
k && Object.keys(H.properties).forEach((P) => {
|
|
563
563
|
H.properties[P].$converter = k;
|
|
564
564
|
});
|
|
565
|
-
const F = (H == null ? void 0 : H.properties) || {}, V = f(F, b,
|
|
566
|
-
return { categoryId: p, categoryName:
|
|
565
|
+
const F = (H == null ? void 0 : H.properties) || {}, V = f(F, b, x, w, E, M);
|
|
566
|
+
return { categoryId: p, categoryName: S, properties: V };
|
|
567
567
|
}
|
|
568
568
|
return { categoryId: p, categoryName: "", properties: [] };
|
|
569
569
|
}
|
|
@@ -571,16 +571,16 @@ function cn(n, t, e) {
|
|
|
571
571
|
const R = p.type, k = e(p), w = {};
|
|
572
572
|
let g = M || n[R];
|
|
573
573
|
if (g && Object.keys(g).length === 0 && y && y.getPropConfig && (g = y.getPropConfig(E)), g && g.categories) {
|
|
574
|
-
const
|
|
574
|
+
const x = [];
|
|
575
575
|
return Object.keys(g.categories).map((b) => {
|
|
576
576
|
const B = g.categories[b];
|
|
577
577
|
if (B.$ref) {
|
|
578
|
-
|
|
578
|
+
x.push(m(b, B, p, v, E));
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
|
-
const H = B == null ? void 0 : B.title,
|
|
582
|
-
|
|
583
|
-
}),
|
|
581
|
+
const H = B == null ? void 0 : B.title, S = B == null ? void 0 : B.tabId, F = B == null ? void 0 : B.tabName, V = B == null ? void 0 : B.hide, P = B == null ? void 0 : B.hideTitle, $ = f(B.properties || {}, w, k, p, v, E, B.$converter), { setPropertyRelates: W } = B, ee = B == null ? void 0 : B.parentPropertyID;
|
|
582
|
+
x.push({ categoryId: b, categoryName: H, tabId: S, tabName: F, hide: V, properties: $, hideTitle: P, setPropertyRelates: W, parentPropertyID: ee });
|
|
583
|
+
}), x;
|
|
584
584
|
}
|
|
585
585
|
return [];
|
|
586
586
|
}
|
|
@@ -939,24 +939,24 @@ function yt(n, t, e, o, i, r, a, c, l, s, f) {
|
|
|
939
939
|
n.nullable || (B = B || 0);
|
|
940
940
|
let H = u(B);
|
|
941
941
|
H = v(H, l, s, f);
|
|
942
|
-
const
|
|
943
|
-
e.value = m(H), o.value !==
|
|
942
|
+
const S = d(H);
|
|
943
|
+
e.value = m(H), o.value !== S && (o.value = S, c(o.value)), t.emit("blur", { event: b, formatted: e.value, value: o.value });
|
|
944
944
|
}
|
|
945
945
|
function w(b) {
|
|
946
946
|
b.stopPropagation(), !(n.readonly || n.disabled) && (R.value = !0, e.value = p(o.value) || !n.showZero && o.value === "0" ? "" : String(o.value), t.emit("focus", { event: b, formatted: e.value, value: o.value }));
|
|
947
947
|
}
|
|
948
948
|
function g(b) {
|
|
949
|
-
var
|
|
949
|
+
var S;
|
|
950
950
|
b.stopPropagation();
|
|
951
|
-
let B = (
|
|
951
|
+
let B = (S = b.target) == null ? void 0 : S.value;
|
|
952
952
|
n.nullable || (B = B || 0);
|
|
953
953
|
const H = u(B);
|
|
954
954
|
e.value = H, o.value = d(H), c(o.value);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function x(b) {
|
|
957
957
|
b.key === "ArrowDown" && (b.preventDefault(), y()), b.key === "ArrowUp" && (b.preventDefault(), E()), b.stopPropagation();
|
|
958
958
|
}
|
|
959
|
-
return { textBoxValue: M, onBlurTextBox: k, onFocusTextBox: w, onInput: g, onKeyDown:
|
|
959
|
+
return { textBoxValue: M, onBlurTextBox: k, onFocusTextBox: w, onInput: g, onKeyDown: x, isTextBoxFocused: R };
|
|
960
960
|
}
|
|
961
961
|
function en(n, t, e, o, i) {
|
|
962
962
|
const {
|
|
@@ -1044,17 +1044,17 @@ const wt = /* @__PURE__ */ Ge({
|
|
|
1044
1044
|
format: k
|
|
1045
1045
|
} = c, w = L(() => !n.disabled && !n.readonly && n.showButton);
|
|
1046
1046
|
return Ke(() => {
|
|
1047
|
-
const g = R(n.beginValue, !1),
|
|
1048
|
-
o.value = k(g, !1), r.value = k(
|
|
1047
|
+
const g = R(n.beginValue, !1), x = R(n.endValue, !1);
|
|
1048
|
+
o.value = k(g, !1), r.value = k(x, !1);
|
|
1049
1049
|
}), Se(() => [n.beginValue], ([g]) => {
|
|
1050
1050
|
if (!u.isTextBoxFocused.value) {
|
|
1051
|
-
const
|
|
1052
|
-
e.value =
|
|
1051
|
+
const x = R(g, !1);
|
|
1052
|
+
e.value = x, o.value = k(x, !1);
|
|
1053
1053
|
}
|
|
1054
1054
|
}), Se(() => [n.endValue], ([g]) => {
|
|
1055
1055
|
if (!y.isTextBoxFocused.value) {
|
|
1056
|
-
const
|
|
1057
|
-
i.value =
|
|
1056
|
+
const x = R(g, !1);
|
|
1057
|
+
i.value = x, r.value = k(x, !1);
|
|
1058
1058
|
}
|
|
1059
1059
|
}), Se(() => [n.precision, n.useThousands, n.prefix, n.suffix, n.showZero], () => {
|
|
1060
1060
|
o.value = k(e.value), r.value = k(i.value);
|
|
@@ -1103,7 +1103,7 @@ function tn(n, t, e, o) {
|
|
|
1103
1103
|
}, null);
|
|
1104
1104
|
}
|
|
1105
1105
|
function vi(n, t, e) {
|
|
1106
|
-
var
|
|
1106
|
+
var S;
|
|
1107
1107
|
const o = e && e.getStyles && e.getStyles() || "", i = e && e.getDesignerClass && e.getDesignerClass() || "", r = C();
|
|
1108
1108
|
let a;
|
|
1109
1109
|
function c() {
|
|
@@ -1188,7 +1188,7 @@ function vi(n, t, e) {
|
|
|
1188
1188
|
});
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function x() {
|
|
1192
1192
|
if (e && e.getCustomButtons)
|
|
1193
1193
|
return e.getCustomButtons();
|
|
1194
1194
|
}
|
|
@@ -1237,7 +1237,7 @@ function vi(n, t, e) {
|
|
|
1237
1237
|
canNested: !f(),
|
|
1238
1238
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1239
1239
|
elementRef: n,
|
|
1240
|
-
parent: (
|
|
1240
|
+
parent: (S = t == null ? void 0 : t.parent) == null ? void 0 : S.componentInstance,
|
|
1241
1241
|
schema: t == null ? void 0 : t.schema,
|
|
1242
1242
|
styles: o,
|
|
1243
1243
|
designerClass: i,
|
|
@@ -1253,7 +1253,7 @@ function vi(n, t, e) {
|
|
|
1253
1253
|
triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || C(!1),
|
|
1254
1254
|
triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || C(!1),
|
|
1255
1255
|
onRemoveComponent: g,
|
|
1256
|
-
getCustomButtons:
|
|
1256
|
+
getCustomButtons: x,
|
|
1257
1257
|
onPropertyChanged: H,
|
|
1258
1258
|
setComponentBasicInfoMap: b,
|
|
1259
1259
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
@@ -2025,7 +2025,7 @@ function Ci(n) {
|
|
|
2025
2025
|
var M;
|
|
2026
2026
|
const y = o.get(v.id), E = y.appearance && y.appearance.class;
|
|
2027
2027
|
if (E) {
|
|
2028
|
-
const k = E.split(" ").filter((H) => !H.startsWith("col-")), w = "col-" + v.columnInSM, g = "col-md-" + v.columnInMD,
|
|
2028
|
+
const k = E.split(" ").filter((H) => !H.startsWith("col-")), w = "col-" + v.columnInSM, g = "col-md-" + v.columnInMD, x = "col-xl-" + v.columnInLG, b = "col-el-" + v.columnInEL, B = [w, g, x, b].concat(k);
|
|
2029
2029
|
y.appearance.class = B.join(" ");
|
|
2030
2030
|
}
|
|
2031
2031
|
if (v.fieldSetId) {
|
|
@@ -2096,11 +2096,11 @@ var Si = { exports: {} };
|
|
|
2096
2096
|
2: [function(e, o, i) {
|
|
2097
2097
|
(function(r) {
|
|
2098
2098
|
var a = e("contra/emitter"), c = e("crossvent"), l = e("./classes"), s = document, f = s.documentElement;
|
|
2099
|
-
function u(
|
|
2099
|
+
function u(S, F) {
|
|
2100
2100
|
var V = arguments.length;
|
|
2101
|
-
V === 1 && Array.isArray(
|
|
2101
|
+
V === 1 && Array.isArray(S) === !1 && (F = S, S = []);
|
|
2102
2102
|
var P, $, W, ee, O, N, G, z, te, ge = null, he, Z, ie = !1, se = 0, ne, q = F || {};
|
|
2103
|
-
q.moves === void 0 && (q.moves = M), q.accepts === void 0 && (q.accepts = M), q.invalid === void 0 && (q.invalid = tt), q.containers === void 0 && (q.containers =
|
|
2103
|
+
q.moves === void 0 && (q.moves = M), q.accepts === void 0 && (q.accepts = M), q.invalid === void 0 && (q.invalid = tt), q.containers === void 0 && (q.containers = S || []), q.isContainer === void 0 && (q.isContainer = E), q.copy === void 0 && (q.copy = !1), q.copySortSource === void 0 && (q.copySortSource = !1), q.revertOnSpill === void 0 && (q.revertOnSpill = !1), q.removeOnSpill === void 0 && (q.removeOnSpill = !1), q.direction === void 0 && (q.direction = "vertical"), q.ignoreInputTextSelection === void 0 && (q.ignoreInputTextSelection = !0), q.mirrorContainer === void 0 && (q.mirrorContainer = s.body);
|
|
2104
2104
|
var oe = a({
|
|
2105
2105
|
containers: q.containers,
|
|
2106
2106
|
start: Ee,
|
|
@@ -2398,7 +2398,7 @@ var Si = { exports: {} };
|
|
|
2398
2398
|
return typeof q.copy == "boolean" ? q.copy : q.copy(h, D);
|
|
2399
2399
|
}
|
|
2400
2400
|
}
|
|
2401
|
-
function m(
|
|
2401
|
+
function m(S) {
|
|
2402
2402
|
const F = Array.from(window.scrollContainerList);
|
|
2403
2403
|
if (F.length === 1) {
|
|
2404
2404
|
const P = Array.from(window.scrollContainerList)[0];
|
|
@@ -2406,18 +2406,18 @@ var Si = { exports: {} };
|
|
|
2406
2406
|
}
|
|
2407
2407
|
const V = d(F);
|
|
2408
2408
|
for (const P of V)
|
|
2409
|
-
if (P.contains(
|
|
2409
|
+
if (P.contains(S))
|
|
2410
2410
|
return P;
|
|
2411
2411
|
return null;
|
|
2412
2412
|
}
|
|
2413
|
-
function d(
|
|
2413
|
+
function d(S) {
|
|
2414
2414
|
const F = [];
|
|
2415
|
-
return
|
|
2415
|
+
return S.forEach((V) => {
|
|
2416
2416
|
const P = document.getElementById(V);
|
|
2417
2417
|
P && F.push(P);
|
|
2418
2418
|
}), F.sort((V, P) => V.contains(P) ? 1 : P.contains(V) ? -1 : 0), F;
|
|
2419
2419
|
}
|
|
2420
|
-
function p(
|
|
2420
|
+
function p(S, F, V, P) {
|
|
2421
2421
|
var $ = {
|
|
2422
2422
|
mouseup: "touchend",
|
|
2423
2423
|
mousedown: "touchstart",
|
|
@@ -2431,23 +2431,23 @@ var Si = { exports: {} };
|
|
|
2431
2431
|
mousedown: "MSPointerDown",
|
|
2432
2432
|
mousemove: "MSPointerMove"
|
|
2433
2433
|
};
|
|
2434
|
-
r.navigator.pointerEnabled ? c[F](
|
|
2434
|
+
r.navigator.pointerEnabled ? c[F](S, W[V], P) : r.navigator.msPointerEnabled ? c[F](S, ee[V], P) : (c[F](S, $[V], P), c[F](S, V, P));
|
|
2435
2435
|
}
|
|
2436
|
-
function v(
|
|
2437
|
-
if (
|
|
2438
|
-
return
|
|
2439
|
-
if (
|
|
2440
|
-
return
|
|
2441
|
-
if (
|
|
2442
|
-
return
|
|
2443
|
-
var F =
|
|
2436
|
+
function v(S) {
|
|
2437
|
+
if (S.touches !== void 0)
|
|
2438
|
+
return S.touches.length;
|
|
2439
|
+
if (S.which !== void 0 && S.which !== 0)
|
|
2440
|
+
return S.which;
|
|
2441
|
+
if (S.buttons !== void 0)
|
|
2442
|
+
return S.buttons;
|
|
2443
|
+
var F = S.button;
|
|
2444
2444
|
if (F !== void 0)
|
|
2445
2445
|
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2446
2446
|
}
|
|
2447
|
-
function y(
|
|
2448
|
-
|
|
2449
|
-
var P =
|
|
2450
|
-
return
|
|
2447
|
+
function y(S, F, V) {
|
|
2448
|
+
S = S || {};
|
|
2449
|
+
var P = S.className || "", $;
|
|
2450
|
+
return S.className += " gu-hide", $ = s.elementFromPoint(F, V), S.className = P, $;
|
|
2451
2451
|
}
|
|
2452
2452
|
function E() {
|
|
2453
2453
|
return !1;
|
|
@@ -2455,42 +2455,42 @@ var Si = { exports: {} };
|
|
|
2455
2455
|
function M() {
|
|
2456
2456
|
return !0;
|
|
2457
2457
|
}
|
|
2458
|
-
function R(
|
|
2459
|
-
return
|
|
2458
|
+
function R(S) {
|
|
2459
|
+
return S.width || S.right - S.left;
|
|
2460
2460
|
}
|
|
2461
|
-
function k(
|
|
2462
|
-
return
|
|
2461
|
+
function k(S) {
|
|
2462
|
+
return S.height || S.bottom - S.top;
|
|
2463
2463
|
}
|
|
2464
|
-
function w(
|
|
2465
|
-
return
|
|
2464
|
+
function w(S) {
|
|
2465
|
+
return S.parentNode === s ? null : S.parentNode;
|
|
2466
2466
|
}
|
|
2467
|
-
function g(
|
|
2468
|
-
return
|
|
2467
|
+
function g(S) {
|
|
2468
|
+
return S.tagName === "INPUT" || S.tagName === "TEXTAREA" || S.tagName === "SELECT" || x(S);
|
|
2469
2469
|
}
|
|
2470
|
-
function S
|
|
2471
|
-
return !
|
|
2470
|
+
function x(S) {
|
|
2471
|
+
return !S || S.contentEditable === "false" ? !1 : S.contentEditable === "true" ? !0 : x(w(S));
|
|
2472
2472
|
}
|
|
2473
|
-
function b(
|
|
2474
|
-
return
|
|
2473
|
+
function b(S) {
|
|
2474
|
+
return S.nextElementSibling || F();
|
|
2475
2475
|
function F() {
|
|
2476
|
-
var V =
|
|
2476
|
+
var V = S;
|
|
2477
2477
|
do
|
|
2478
2478
|
V = V.nextSibling;
|
|
2479
2479
|
while (V && V.nodeType !== 1);
|
|
2480
2480
|
return V;
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
|
-
function B(
|
|
2484
|
-
return
|
|
2483
|
+
function B(S) {
|
|
2484
|
+
return S.targetTouches && S.targetTouches.length ? S.targetTouches[0] : S.changedTouches && S.changedTouches.length ? S.changedTouches[0] : S;
|
|
2485
2485
|
}
|
|
2486
|
-
function H(
|
|
2486
|
+
function H(S, F) {
|
|
2487
2487
|
var V = B(F), P = {
|
|
2488
2488
|
pageX: "clientX",
|
|
2489
2489
|
// IE8
|
|
2490
2490
|
pageY: "clientY"
|
|
2491
2491
|
// IE8
|
|
2492
2492
|
};
|
|
2493
|
-
return
|
|
2493
|
+
return S in P && !(S in V) && P[S] in V && (S = P[S]), V[S];
|
|
2494
2494
|
}
|
|
2495
2495
|
o.exports = u;
|
|
2496
2496
|
}).call(this, typeof Re < "u" ? Re : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2553,61 +2553,61 @@ var Si = { exports: {} };
|
|
|
2553
2553
|
remove: f,
|
|
2554
2554
|
fabricate: y
|
|
2555
2555
|
};
|
|
2556
|
-
function m(w, g,
|
|
2557
|
-
return w.addEventListener(g,
|
|
2556
|
+
function m(w, g, x, b) {
|
|
2557
|
+
return w.addEventListener(g, x, b);
|
|
2558
2558
|
}
|
|
2559
|
-
function d(w, g,
|
|
2560
|
-
return w.attachEvent("on" + g, M(w, g,
|
|
2559
|
+
function d(w, g, x) {
|
|
2560
|
+
return w.attachEvent("on" + g, M(w, g, x));
|
|
2561
2561
|
}
|
|
2562
|
-
function p(w, g,
|
|
2563
|
-
return w.removeEventListener(g,
|
|
2562
|
+
function p(w, g, x, b) {
|
|
2563
|
+
return w.removeEventListener(g, x, b);
|
|
2564
2564
|
}
|
|
2565
|
-
function v(w, g,
|
|
2566
|
-
var b = R(w, g,
|
|
2565
|
+
function v(w, g, x) {
|
|
2566
|
+
var b = R(w, g, x);
|
|
2567
2567
|
if (b)
|
|
2568
2568
|
return w.detachEvent("on" + g, b);
|
|
2569
2569
|
}
|
|
2570
|
-
function y(w, g,
|
|
2570
|
+
function y(w, g, x) {
|
|
2571
2571
|
var b = c.indexOf(g) === -1 ? H() : B();
|
|
2572
2572
|
w.dispatchEvent ? w.dispatchEvent(b) : w.fireEvent("on" + g, b);
|
|
2573
2573
|
function B() {
|
|
2574
|
-
var
|
|
2575
|
-
return l.createEvent ? (
|
|
2574
|
+
var S;
|
|
2575
|
+
return l.createEvent ? (S = l.createEvent("Event"), S.initEvent(g, !0, !0)) : l.createEventObject && (S = l.createEventObject()), S;
|
|
2576
2576
|
}
|
|
2577
2577
|
function H() {
|
|
2578
|
-
return new a(g, { detail:
|
|
2578
|
+
return new a(g, { detail: x });
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
2581
|
-
function E(w, g,
|
|
2581
|
+
function E(w, g, x) {
|
|
2582
2582
|
return function(B) {
|
|
2583
2583
|
var H = B || r.event;
|
|
2584
2584
|
H.target = H.target || H.srcElement, H.preventDefault = H.preventDefault || function() {
|
|
2585
2585
|
H.returnValue = !1;
|
|
2586
2586
|
}, H.stopPropagation = H.stopPropagation || function() {
|
|
2587
2587
|
H.cancelBubble = !0;
|
|
2588
|
-
}, H.which = H.which || H.keyCode,
|
|
2588
|
+
}, H.which = H.which || H.keyCode, x.call(w, H);
|
|
2589
2589
|
};
|
|
2590
2590
|
}
|
|
2591
|
-
function M(w, g,
|
|
2592
|
-
var b = R(w, g,
|
|
2591
|
+
function M(w, g, x) {
|
|
2592
|
+
var b = R(w, g, x) || E(w, g, x);
|
|
2593
2593
|
return u.push({
|
|
2594
2594
|
wrapper: b,
|
|
2595
2595
|
element: w,
|
|
2596
2596
|
type: g,
|
|
2597
|
-
fn:
|
|
2597
|
+
fn: x
|
|
2598
2598
|
}), b;
|
|
2599
2599
|
}
|
|
2600
|
-
function R(w, g,
|
|
2601
|
-
var b = k(w, g,
|
|
2600
|
+
function R(w, g, x) {
|
|
2601
|
+
var b = k(w, g, x);
|
|
2602
2602
|
if (b) {
|
|
2603
2603
|
var B = u[b].wrapper;
|
|
2604
2604
|
return u.splice(b, 1), B;
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
function k(w, g,
|
|
2607
|
+
function k(w, g, x) {
|
|
2608
2608
|
var b, B;
|
|
2609
2609
|
for (b = 0; b < u.length; b++)
|
|
2610
|
-
if (B = u[b], B.element === w && B.type === g && B.fn ===
|
|
2610
|
+
if (B = u[b], B.element === w && B.type === g && B.fn === x)
|
|
2611
2611
|
return b;
|
|
2612
2612
|
}
|
|
2613
2613
|
}).call(this, typeof Re < "u" ? Re : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2821,10 +2821,10 @@ const xi = {
|
|
|
2821
2821
|
};
|
|
2822
2822
|
return k[n.animate] = !1, k[r] = c.value, k["toasty-type-" + a.value.type] = !0, a.value.theme && (k[a.value.theme] = !0), k;
|
|
2823
2823
|
}), u = L(() => {
|
|
2824
|
-
const g = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`,
|
|
2824
|
+
const g = `f-icon-${a.value && a.value.type ? a.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
2825
2825
|
"f-icon": !0
|
|
2826
2826
|
};
|
|
2827
|
-
return
|
|
2827
|
+
return x[g] = !0, x;
|
|
2828
2828
|
}), m = L(() => a.value.title || a.value.message), d = L(() => n.showCloseButton), p = L(() => !!a.value.buttons || !!t.slots.default), v = L(() => e.value === "en" ? {
|
|
2829
2829
|
wordBreak: "keep-all",
|
|
2830
2830
|
overflowWrap: "break-word"
|
|
@@ -3221,7 +3221,7 @@ function Bi(n, t, e, o, i, r, a, c, l, s, f, u, m, d, p, v, y) {
|
|
|
3221
3221
|
} = a, {
|
|
3222
3222
|
gridDataStyle: w,
|
|
3223
3223
|
leftFixedGridDataStyle: g,
|
|
3224
|
-
rightFixedGridDataStyle:
|
|
3224
|
+
rightFixedGridDataStyle: x
|
|
3225
3225
|
} = d, {
|
|
3226
3226
|
renderDataRow: b
|
|
3227
3227
|
} = Yn(n, t, M, y, c, l, s, f, u, m, d, p, v), B = [b];
|
|
@@ -3229,7 +3229,7 @@ function Bi(n, t, e, o, i, r, a, c, l, s, f, u, m, d, p, v, y) {
|
|
|
3229
3229
|
const ee = E($);
|
|
3230
3230
|
return y.value.filter((O) => O.visible !== !1).map((O, N) => B[O.type](O, ee, W, N));
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function S() {
|
|
3233
3233
|
return T("div", {
|
|
3234
3234
|
ref: o,
|
|
3235
3235
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3253,12 +3253,12 @@ function Bi(n, t, e, o, i, r, a, c, l, s, f, u, m, d, p, v, y) {
|
|
|
3253
3253
|
class: "fv-grid-content-right-fixed"
|
|
3254
3254
|
}, [T("div", {
|
|
3255
3255
|
class: "fv-grid-data",
|
|
3256
|
-
style:
|
|
3256
|
+
style: x.value
|
|
3257
3257
|
}, [H(M.value.rightColumns.filter(($) => $.visible), "right")])]);
|
|
3258
3258
|
}
|
|
3259
3259
|
function P() {
|
|
3260
3260
|
const $ = [];
|
|
3261
|
-
return R.value && $.push(
|
|
3261
|
+
return R.value && $.push(S()), $.push(F()), k.value && $.push(V()), $;
|
|
3262
3262
|
}
|
|
3263
3263
|
return {
|
|
3264
3264
|
renderDataArea: P
|
|
@@ -3278,11 +3278,11 @@ const ki = /* @__PURE__ */ Ge({
|
|
|
3278
3278
|
showLoading: k,
|
|
3279
3279
|
renderLoading: w
|
|
3280
3280
|
} = eo(n, l), g = to(n, /* @__PURE__ */ new Map(), E, M, a), {
|
|
3281
|
-
dataView:
|
|
3281
|
+
dataView: x
|
|
3282
3282
|
} = g, b = no(n, g, a, d, t), {
|
|
3283
3283
|
showSelection: B,
|
|
3284
3284
|
selectedValues: H
|
|
3285
|
-
} = b,
|
|
3285
|
+
} = b, S = oo(n, d, g, a, b, t), F = L(() => n.disabled), V = L(() => n.virtualized ? Math.min(g.dataView.value.length, i.value) : g.dataView.value.length), P = io(n, g), {
|
|
3286
3286
|
shouldRenderPagination: $
|
|
3287
3287
|
} = P, {
|
|
3288
3288
|
containerStyleObject: W
|
|
@@ -3328,7 +3328,7 @@ const ki = /* @__PURE__ */ Ge({
|
|
|
3328
3328
|
"fv-grid-wrap-content": v.value
|
|
3329
3329
|
})), {
|
|
3330
3330
|
renderDataArea: le
|
|
3331
|
-
} = Bi(n, t, f, u, m, Xe, z, g, ne, M, se, b,
|
|
3331
|
+
} = Bi(n, t, f, u, m, Xe, z, g, ne, M, se, b, S, ae, Ne, q, d), {
|
|
3332
3332
|
renderGridHeader: ue,
|
|
3333
3333
|
renderGridColumnResizeOverlay: Ie,
|
|
3334
3334
|
shouldShowHeader: Mt
|
|
@@ -3379,8 +3379,8 @@ const ki = /* @__PURE__ */ Ge({
|
|
|
3379
3379
|
g.insertNewChildDataItems(U, me);
|
|
3380
3380
|
}
|
|
3381
3381
|
function jt() {
|
|
3382
|
-
const U = nt(), Y =
|
|
3383
|
-
g.removeHierarchyDataItem(U), d.value = Te(0, V.value + 0 - 1), Y &&
|
|
3382
|
+
const U = nt(), Y = S.getNextSelectableHierarchyItemId(U);
|
|
3383
|
+
g.removeHierarchyDataItem(U), d.value = Te(0, V.value + 0 - 1), Y && S.selectItemById(Y);
|
|
3384
3384
|
}
|
|
3385
3385
|
function ut(U) {
|
|
3386
3386
|
ne.onEditingRow(U);
|
|
@@ -3401,7 +3401,7 @@ const ki = /* @__PURE__ */ Ge({
|
|
|
3401
3401
|
U && (g.load(U), g.reOrderVisibleIndex(), Y != null && Y.keepScrollPosition ? ae.scrollTo(ae.offsetY.value) : Oe());
|
|
3402
3402
|
}
|
|
3403
3403
|
function _(U) {
|
|
3404
|
-
|
|
3404
|
+
S.selectItemById(U);
|
|
3405
3405
|
}
|
|
3406
3406
|
function Q(U) {
|
|
3407
3407
|
const Y = d.value.find((de) => de.raw[a.idField.value] === U);
|
|
@@ -3411,7 +3411,7 @@ const ki = /* @__PURE__ */ Ge({
|
|
|
3411
3411
|
se.activeRowById(U);
|
|
3412
3412
|
}
|
|
3413
3413
|
function xe(U) {
|
|
3414
|
-
|
|
3414
|
+
S.selectItemByIds(U);
|
|
3415
3415
|
}
|
|
3416
3416
|
function ye() {
|
|
3417
3417
|
return b.getSelectedItems();
|
|
@@ -3426,13 +3426,13 @@ const ki = /* @__PURE__ */ Ge({
|
|
|
3426
3426
|
return b.getSelectionRow();
|
|
3427
3427
|
}
|
|
3428
3428
|
function we(U) {
|
|
3429
|
-
|
|
3429
|
+
S.unSelectItemByIds(U);
|
|
3430
3430
|
}
|
|
3431
3431
|
function pe() {
|
|
3432
3432
|
return b.currentSelectedDataId.value;
|
|
3433
3433
|
}
|
|
3434
3434
|
function ot(U, Y, de) {
|
|
3435
|
-
const me =
|
|
3435
|
+
const me = x.value.find((Ce) => Ce[c.value] === U);
|
|
3436
3436
|
if (me) {
|
|
3437
3437
|
if (Object.keys(me).forEach((fe) => {
|
|
3438
3438
|
Object.prototype.hasOwnProperty.call(Y, fe) && (me[fe] = Y[fe]);
|
|
@@ -4300,7 +4300,7 @@ function jr(n, t, e, o) {
|
|
|
4300
4300
|
}, [c.value])]);
|
|
4301
4301
|
}
|
|
4302
4302
|
function Rr(n, t, e, o, i) {
|
|
4303
|
-
const r = C(n.type), a = C(n.buttons), c = C(n.exceptionInfo), l = C(i.ok || n.okButtonText), s = C(i.cancel || n.cancelButtonText), f = C(n.showCancelButton), u = C(n.showOkButton), m = L(() => !!(a.value && a.value.length)), d = L(() => c.value && c.value.
|
|
4303
|
+
const r = C(n.type), a = C(n.buttons), c = C(n.exceptionInfo), l = C(i.ok || n.okButtonText), s = C(i.cancel || n.cancelButtonText), f = C(n.showCancelButton), u = C(n.showOkButton), m = L(() => !!(a.value && a.value.length)), d = L(() => !!(c.value && c.value.detail)), p = L(() => !(a.value && a.value.length) && (u.value || f.value)), v = jr(n, e, o, i);
|
|
4304
4304
|
l.value === "关闭" ? l.value = i.close : l.value === "知道了" && (l.value = i.exception.roger);
|
|
4305
4305
|
function y(M) {
|
|
4306
4306
|
r.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -4750,7 +4750,7 @@ function Kr(n, t) {
|
|
|
4750
4750
|
const N = O.x, G = O.y;
|
|
4751
4751
|
s.value.n ? (l.value.y = a.value.y + G, c.value.height = r.value.height - G) : s.value.s && (c.value.height = r.value.height + G), s.value.e ? c.value.width = r.value.width + N : s.value.w && (c.value.width = r.value.width - N, l.value.x = a.value.x + N), w(), k(), R();
|
|
4752
4752
|
}
|
|
4753
|
-
function
|
|
4753
|
+
function x(O) {
|
|
4754
4754
|
if (!f.value)
|
|
4755
4755
|
return;
|
|
4756
4756
|
const N = re.fromEvent(O);
|
|
@@ -4782,47 +4782,47 @@ function Kr(n, t) {
|
|
|
4782
4782
|
const N = b();
|
|
4783
4783
|
m.value = N;
|
|
4784
4784
|
}
|
|
4785
|
-
i.value = void 0, r.value = null, a.value = null, c.value = null, l.value = null, s.value = null, f.value = null, document.removeEventListener("mousemove",
|
|
4785
|
+
i.value = void 0, r.value = null, a.value = null, c.value = null, l.value = null, s.value = null, f.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", B);
|
|
4786
4786
|
}
|
|
4787
4787
|
function H() {
|
|
4788
|
-
document.addEventListener("mousemove",
|
|
4788
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", B);
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function S(O) {
|
|
4791
4791
|
O instanceof MouseEvent && O.button === 2 || v.value && (document.body.click(), O.stopPropagation(), O.preventDefault(), i.value = re.fromEvent(O), f.value = O.target, M(O), H());
|
|
4792
4792
|
}
|
|
4793
4793
|
function F(O) {
|
|
4794
4794
|
return e.value = O, d.value && T(at, null, [T("div", {
|
|
4795
4795
|
class: "fv-resizable-handle fv-resizable-n",
|
|
4796
4796
|
type: "n",
|
|
4797
|
-
onMousedown: (N) =>
|
|
4797
|
+
onMousedown: (N) => S(N)
|
|
4798
4798
|
}, null), T("div", {
|
|
4799
4799
|
class: "fv-resizable-handle fv-resizable-e",
|
|
4800
4800
|
type: "e",
|
|
4801
|
-
onMousedown: (N) =>
|
|
4801
|
+
onMousedown: (N) => S(N)
|
|
4802
4802
|
}, null), T("div", {
|
|
4803
4803
|
class: "fv-resizable-handle fv-resizable-s",
|
|
4804
4804
|
type: "s",
|
|
4805
|
-
onMousedown: (N) =>
|
|
4805
|
+
onMousedown: (N) => S(N)
|
|
4806
4806
|
}, null), T("div", {
|
|
4807
4807
|
class: "fv-resizable-handle fv-resizable-w",
|
|
4808
4808
|
type: "w",
|
|
4809
|
-
onMousedown: (N) =>
|
|
4809
|
+
onMousedown: (N) => S(N)
|
|
4810
4810
|
}, null), T("div", {
|
|
4811
4811
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
4812
4812
|
type: "ne",
|
|
4813
|
-
onMousedown: (N) =>
|
|
4813
|
+
onMousedown: (N) => S(N)
|
|
4814
4814
|
}, null), T("div", {
|
|
4815
4815
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
4816
4816
|
type: "se",
|
|
4817
|
-
onMousedown: (N) =>
|
|
4817
|
+
onMousedown: (N) => S(N)
|
|
4818
4818
|
}, null), T("div", {
|
|
4819
4819
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
4820
4820
|
type: "sw",
|
|
4821
|
-
onMousedown: (N) =>
|
|
4821
|
+
onMousedown: (N) => S(N)
|
|
4822
4822
|
}, null), T("div", {
|
|
4823
4823
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
4824
4824
|
type: "nw",
|
|
4825
|
-
onMousedown: (N) =>
|
|
4825
|
+
onMousedown: (N) => S(N)
|
|
4826
4826
|
}, null)]);
|
|
4827
4827
|
}
|
|
4828
4828
|
function V(O = !0) {
|
|
@@ -4889,68 +4889,68 @@ function Kr(n, t) {
|
|
|
4889
4889
|
}
|
|
4890
4890
|
function ea(n, t, e) {
|
|
4891
4891
|
const o = C(), i = C(n.draggable), r = C(n.lockAxis), a = C(), c = C(), l = C(!1), s = C(new re(0, 0)), f = C(new re(0, 0)), u = C(new re(0, 0)), m = C(new re(0, 0));
|
|
4892
|
-
Se(() => e.value, (
|
|
4893
|
-
a.value.style.cursor =
|
|
4892
|
+
Se(() => e.value, (x) => {
|
|
4893
|
+
a.value.style.cursor = x ? "move" : "default";
|
|
4894
4894
|
});
|
|
4895
|
-
function d(
|
|
4895
|
+
function d(x, b) {
|
|
4896
4896
|
if (b.tagName === "BUTTON")
|
|
4897
4897
|
return !1;
|
|
4898
|
-
if (b ===
|
|
4898
|
+
if (b === x)
|
|
4899
4899
|
return !0;
|
|
4900
4900
|
for (const B in b.children)
|
|
4901
|
-
if (Object.prototype.hasOwnProperty.call(b.children, B) && d(
|
|
4901
|
+
if (Object.prototype.hasOwnProperty.call(b.children, B) && d(x, b.children[B]))
|
|
4902
4902
|
return !0;
|
|
4903
4903
|
return !1;
|
|
4904
4904
|
}
|
|
4905
4905
|
function p() {
|
|
4906
|
-
var H,
|
|
4907
|
-
let
|
|
4908
|
-
r.value === "x" ? (
|
|
4909
|
-
const B = `translate3d(${Math.round(
|
|
4910
|
-
o.value && (o.value.style.transform = B), m.value.x =
|
|
4906
|
+
var H, S;
|
|
4907
|
+
let x = u.value.x + f.value.x, b = u.value.y + f.value.y;
|
|
4908
|
+
r.value === "x" ? (x = ((H = s.value) == null ? void 0 : H.x) || 0, u.value.x = 0) : r.value === "y" && (b = ((S = s.value) == null ? void 0 : S.y) || 0, u.value.y = 0);
|
|
4909
|
+
const B = `translate3d(${Math.round(x)}px, ${Math.round(b)}px, 0px)`;
|
|
4910
|
+
o.value && (o.value.style.transform = B), m.value.x = x, m.value.y = b;
|
|
4911
4911
|
}
|
|
4912
4912
|
function v() {
|
|
4913
4913
|
if (!c.value || !o.value)
|
|
4914
4914
|
return null;
|
|
4915
|
-
const
|
|
4916
|
-
top:
|
|
4917
|
-
right:
|
|
4918
|
-
bottom:
|
|
4919
|
-
left:
|
|
4915
|
+
const x = c.value.getBoundingClientRect(), b = o.value.getBoundingClientRect(), B = {
|
|
4916
|
+
top: x.top < b.top,
|
|
4917
|
+
right: x.right > b.right,
|
|
4918
|
+
bottom: x.bottom > b.bottom,
|
|
4919
|
+
left: x.left < b.left
|
|
4920
4920
|
};
|
|
4921
|
-
return B.top || (u.value.y -= b.top -
|
|
4921
|
+
return B.top || (u.value.y -= b.top - x.top), B.bottom || (u.value.y -= b.bottom - x.bottom), B.right || (u.value.x -= b.right - x.right), B.left || (u.value.x -= b.left - x.left), p(), B;
|
|
4922
4922
|
}
|
|
4923
|
-
function y(
|
|
4924
|
-
|
|
4923
|
+
function y(x) {
|
|
4924
|
+
x && (s.value && x.subtract(s.value), u.value.set(x), p(), v());
|
|
4925
4925
|
}
|
|
4926
|
-
function E(
|
|
4927
|
-
l.value && i.value && (
|
|
4926
|
+
function E(x) {
|
|
4927
|
+
l.value && i.value && (x.stopPropagation(), x.preventDefault(), y(re.fromEvent(x, a.value)));
|
|
4928
4928
|
}
|
|
4929
4929
|
function M() {
|
|
4930
|
-
var
|
|
4931
|
-
l.value && (l.value = !1, f.value.add(u.value), u.value.reset(), (
|
|
4930
|
+
var x;
|
|
4931
|
+
l.value && (l.value = !1, f.value.add(u.value), u.value.reset(), (x = o.value) == null || x.classList.remove("ng-dragging"), t.emit("stopMove"), document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", M));
|
|
4932
4932
|
}
|
|
4933
4933
|
function R() {
|
|
4934
4934
|
!l.value && a.value && (l.value = !0, a.value.classList.add("ng-dragging"), document.addEventListener("mousemove", E), document.addEventListener("mouseup", M));
|
|
4935
4935
|
}
|
|
4936
4936
|
function k() {
|
|
4937
4937
|
if (o.value) {
|
|
4938
|
-
const
|
|
4939
|
-
f.value.set(
|
|
4938
|
+
const x = re.getTransformInfo(o.value);
|
|
4939
|
+
f.value.set(x);
|
|
4940
4940
|
return;
|
|
4941
4941
|
}
|
|
4942
4942
|
f.value.reset();
|
|
4943
4943
|
}
|
|
4944
|
-
function w(
|
|
4945
|
-
if (!e.value ||
|
|
4944
|
+
function w(x) {
|
|
4945
|
+
if (!e.value || x instanceof MouseEvent && x.button === 2)
|
|
4946
4946
|
return;
|
|
4947
|
-
const b =
|
|
4948
|
-
a.value !== void 0 && b && !d(b, a.value) || i.value !== !1 && (document.body.click(),
|
|
4947
|
+
const b = x.target || x.srcElement;
|
|
4948
|
+
a.value !== void 0 && b && !d(b, a.value) || i.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), s.value = re.fromEvent(x, o.value), k(), R());
|
|
4949
4949
|
}
|
|
4950
|
-
function g(
|
|
4950
|
+
function g(x, b, B) {
|
|
4951
4951
|
if (i.value && b) {
|
|
4952
|
-
if (
|
|
4953
|
-
a.value =
|
|
4952
|
+
if (x)
|
|
4953
|
+
a.value = x;
|
|
4954
4954
|
else if (n.dragHandle) {
|
|
4955
4955
|
if (n.dragHandle instanceof HTMLElement)
|
|
4956
4956
|
a.value = n.dragHandle;
|
|
@@ -5016,7 +5016,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
5016
5016
|
ue && (i.value = !1, t.emit("update:modelValue", !1), J != null && t.emit(J ? "accept" : "cancel"), t.emit("closed", I));
|
|
5017
5017
|
});
|
|
5018
5018
|
}
|
|
5019
|
-
const
|
|
5019
|
+
const x = [{
|
|
5020
5020
|
name: "cancel",
|
|
5021
5021
|
text: k("messageBox.cancel") || "取消",
|
|
5022
5022
|
class: "btn btn-secondary",
|
|
@@ -5030,7 +5030,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
5030
5030
|
handle: (I) => {
|
|
5031
5031
|
g(I, !0);
|
|
5032
5032
|
}
|
|
5033
|
-
}], b = C(n.buttons && n.buttons.length ? n.buttons :
|
|
5033
|
+
}], b = C(n.buttons && n.buttons.length ? n.buttons : x), B = L(() => !!s.value), H = L(() => !!y.value && !!b.value), S = C(), F = C(), V = C(!1), {
|
|
5034
5034
|
renderResizeBar: P,
|
|
5035
5035
|
maximize: $,
|
|
5036
5036
|
restore: W,
|
|
@@ -5053,7 +5053,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
5053
5053
|
I !== J && (E.value = I);
|
|
5054
5054
|
}), Se(() => n.modelValue, (I, J) => {
|
|
5055
5055
|
I !== J && (i.value = I, i.value && n.draggable && Tt(() => {
|
|
5056
|
-
F.value && !M.value && (M.value = F.value.parentElement, ee.value = M.value, te(
|
|
5056
|
+
F.value && !M.value && (M.value = F.value.parentElement, ee.value = M.value, te(S.value, F.value, ee.value), z());
|
|
5057
5057
|
}), I || (M.value && (M.value = null), he())), i.value ? w.value = ge() : (V.value = !1, N.value = n.draggable);
|
|
5058
5058
|
}), Se(() => n.showHeader, (I, J) => {
|
|
5059
5059
|
I !== J && (l.value = I);
|
|
@@ -5143,7 +5143,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
5143
5143
|
Rn(() => {
|
|
5144
5144
|
w.value = ge();
|
|
5145
5145
|
}), Ke(() => {
|
|
5146
|
-
F.value && !M.value && (M.value = F.value.parentElement, ee.value = M.value, te(
|
|
5146
|
+
F.value && !M.value && (M.value = F.value.parentElement, ee.value = M.value, te(S.value, F.value, ee.value)), Z.value && document.body.classList.add("modal-open"), Ve = ta(n, t), Ee = na(n, t);
|
|
5147
5147
|
}), xt(() => {
|
|
5148
5148
|
G && G(), Ve && Ve.remove(), Ee && Ee.remove();
|
|
5149
5149
|
}), t.expose({
|
|
@@ -5193,7 +5193,7 @@ const We = /* @__PURE__ */ Ge({
|
|
|
5193
5193
|
}
|
|
5194
5194
|
function He() {
|
|
5195
5195
|
return T("div", {
|
|
5196
|
-
ref:
|
|
5196
|
+
ref: S,
|
|
5197
5197
|
class: "modal-header",
|
|
5198
5198
|
style: Ne.value
|
|
5199
5199
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : T("div", {
|
|
@@ -5360,14 +5360,14 @@ class En {
|
|
|
5360
5360
|
});
|
|
5361
5361
|
let f;
|
|
5362
5362
|
const u = Tn(o.value), m = (w) => {
|
|
5363
|
-
var
|
|
5363
|
+
var x;
|
|
5364
5364
|
i.value = !1;
|
|
5365
|
-
const g = (
|
|
5365
|
+
const g = (x = w == null ? void 0 : w.target) == null ? void 0 : x.classList.contains("modal_close");
|
|
5366
5366
|
c(w, this.isUseEscCloseModal.value ? "esc" : g ? "icon" : "button");
|
|
5367
5367
|
}, d = (w) => {
|
|
5368
5368
|
m(w), f && Tt(() => {
|
|
5369
5369
|
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], $t(null, e), f = null, this.modalRef.value = null, this.modalRefs) {
|
|
5370
|
-
const g = Object.keys(this.modalRefs).map((
|
|
5370
|
+
const g = Object.keys(this.modalRefs).map((x) => Number(x));
|
|
5371
5371
|
g.length > 0 ? this.activeModalIndex.value = Math.max(...g) : this.activeModalIndex.value = 0;
|
|
5372
5372
|
}
|
|
5373
5373
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -5996,7 +5996,7 @@ const sa = /* @__PURE__ */ Ge({
|
|
|
5996
5996
|
}), t.expose(d.value);
|
|
5997
5997
|
const p = ht(n, t, o, e, c, a, l, e, i, !0), v = yt(n, t, o, e, c, a, p, l, e, i, !0), y = bt(n, t, p), E = tn(n, t, v, !0), M = (b) => {
|
|
5998
5998
|
t.emit("endValueChange", b);
|
|
5999
|
-
}, R = ht(n, t, r, i, c, a, M, e, i, !1), k = yt(n, t, r, i, c, a, R, M, e, i, !1), w = bt(n, t, R), g = tn(n, t, k, !1),
|
|
5999
|
+
}, R = ht(n, t, r, i, c, a, M, e, i, !1), k = yt(n, t, r, i, c, a, R, M, e, i, !1), w = bt(n, t, R), g = tn(n, t, k, !1), x = L(() => n.showButton);
|
|
6000
6000
|
return () => T("div", {
|
|
6001
6001
|
ref: s,
|
|
6002
6002
|
class: "input-group number-range f-cmp-number-spinner"
|
|
@@ -6004,11 +6004,11 @@ const sa = /* @__PURE__ */ Ge({
|
|
|
6004
6004
|
class: "form-control input-container"
|
|
6005
6005
|
}, [T("div", {
|
|
6006
6006
|
class: "sub-input-group"
|
|
6007
|
-
}, [E(),
|
|
6007
|
+
}, [E(), x.value && y()]), T("span", {
|
|
6008
6008
|
class: "spliter"
|
|
6009
6009
|
}, [At("~")]), T("div", {
|
|
6010
6010
|
class: "sub-input-group"
|
|
6011
|
-
}, [g(),
|
|
6011
|
+
}, [g(), x.value && w()])])]);
|
|
6012
6012
|
}
|
|
6013
6013
|
});
|
|
6014
6014
|
wt.register = (n, t, e, o) => {
|