e-virt-table 0.1.10 → 0.1.12
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/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +152 -150
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Context.js +5 -1
- package/dist/lib/Context.js.map +1 -1
- package/dist/lib/Database.js +2 -2
- package/dist/lib/Database.js.map +1 -1
- package/dist/lib/Selector.js +22 -27
- package/dist/lib/Selector.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -157,11 +157,11 @@ var Ft = /* @__PURE__ */ function(n) {
|
|
|
157
157
|
}
|
|
158
158
|
return t;
|
|
159
159
|
}(/* @__PURE__ */ bt(Error));
|
|
160
|
-
function
|
|
160
|
+
function Te(n, t, e, i, s) {
|
|
161
161
|
if (t.first) {
|
|
162
162
|
var r = new Promise(function(x, u) {
|
|
163
|
-
var g = function(
|
|
164
|
-
return i(
|
|
163
|
+
var g = function(y) {
|
|
164
|
+
return i(y), y.length ? u(new Ft(y, Ct(y))) : x(s);
|
|
165
165
|
}, w = Oe(n);
|
|
166
166
|
Xt(w, e, g);
|
|
167
167
|
});
|
|
@@ -170,20 +170,20 @@ function Se(n, t, e, i, s) {
|
|
|
170
170
|
}), r;
|
|
171
171
|
}
|
|
172
172
|
var o = t.firstFields === !0 ? Object.keys(n) : t.firstFields || [], a = Object.keys(n), l = a.length, c = 0, f = [], d = new Promise(function(x, u) {
|
|
173
|
-
var g = function(
|
|
174
|
-
if (f.push.apply(f,
|
|
173
|
+
var g = function(p) {
|
|
174
|
+
if (f.push.apply(f, p), c++, c === l)
|
|
175
175
|
return i(f), f.length ? u(new Ft(f, Ct(f))) : x(s);
|
|
176
176
|
};
|
|
177
177
|
a.length || (i(f), x(s)), a.forEach(function(w) {
|
|
178
|
-
var
|
|
179
|
-
o.indexOf(w) !== -1 ? Xt(
|
|
178
|
+
var p = n[w];
|
|
179
|
+
o.indexOf(w) !== -1 ? Xt(p, e, g) : Ie(p, e, g);
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
182
|
return d.catch(function(x) {
|
|
183
183
|
return x;
|
|
184
184
|
}), d;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Se(n) {
|
|
187
187
|
return !!(n && n.message !== void 0);
|
|
188
188
|
}
|
|
189
189
|
function Ae(n, t) {
|
|
@@ -197,7 +197,7 @@ function Ae(n, t) {
|
|
|
197
197
|
function kt(n, t) {
|
|
198
198
|
return function(e) {
|
|
199
199
|
var i;
|
|
200
|
-
return n.fullFields ? i = Ae(t, n.fullFields) : i = t[e.field || n.fullField],
|
|
200
|
+
return n.fullFields ? i = Ae(t, n.fullFields) : i = t[e.field || n.fullField], Se(e) ? (e.field = e.field || n.fullField, e.fieldValue = i, e) : {
|
|
201
201
|
message: typeof e == "function" ? e() : e,
|
|
202
202
|
fieldValue: i,
|
|
203
203
|
field: e.field || n.fullField
|
|
@@ -242,7 +242,7 @@ var jt = function(t, e, i, s, r, o) {
|
|
|
242
242
|
}, l.v6 = function(m) {
|
|
243
243
|
return m && m.exact ? a : new RegExp("" + t(m) + s + t(m), "g");
|
|
244
244
|
};
|
|
245
|
-
var c = "(?:(?:[a-z]+:)?//)", f = "(?:\\S+(?::\\S*)?@)?", d = l.v4().source, x = l.v6().source, u = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", g = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", w = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",
|
|
245
|
+
var c = "(?:(?:[a-z]+:)?//)", f = "(?:\\S+(?::\\S*)?@)?", d = l.v4().source, x = l.v6().source, u = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", g = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", w = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", p = "(?::\\d{2,5})?", y = '(?:[/?#][^\\s"]*)?', b = "(?:" + c + "|www\\.)" + f + "(?:localhost|" + d + "|" + x + "|" + u + g + w + ")" + p + y;
|
|
246
246
|
return ct = new RegExp("(?:^" + b + "$)", "i"), ct;
|
|
247
247
|
}, Yt = {
|
|
248
248
|
// http://emailregex.com/
|
|
@@ -537,17 +537,17 @@ var Rt = vt(), nt = /* @__PURE__ */ function() {
|
|
|
537
537
|
if (typeof l == "function" && (c = l, l = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
538
538
|
return c && c(null, a), Promise.resolve(a);
|
|
539
539
|
function f(w) {
|
|
540
|
-
var
|
|
540
|
+
var p = [], y = {};
|
|
541
541
|
function b(E) {
|
|
542
542
|
if (Array.isArray(E)) {
|
|
543
543
|
var C;
|
|
544
|
-
|
|
544
|
+
p = (C = p).concat.apply(C, E);
|
|
545
545
|
} else
|
|
546
|
-
|
|
546
|
+
p.push(E);
|
|
547
547
|
}
|
|
548
548
|
for (var m = 0; m < w.length; m++)
|
|
549
549
|
b(w[m]);
|
|
550
|
-
|
|
550
|
+
p.length ? (y = Ct(p), c(p, y)) : c(null, a);
|
|
551
551
|
}
|
|
552
552
|
if (l.messages) {
|
|
553
553
|
var d = this.messages();
|
|
@@ -556,69 +556,69 @@ var Rt = vt(), nt = /* @__PURE__ */ function() {
|
|
|
556
556
|
l.messages = this.messages();
|
|
557
557
|
var x = {}, u = l.keys || Object.keys(this.rules);
|
|
558
558
|
u.forEach(function(w) {
|
|
559
|
-
var
|
|
560
|
-
|
|
559
|
+
var p = o.rules[w], y = a[w];
|
|
560
|
+
p.forEach(function(b) {
|
|
561
561
|
var m = b;
|
|
562
|
-
typeof m.transform == "function" && (a === i && (a = $({}, a)),
|
|
562
|
+
typeof m.transform == "function" && (a === i && (a = $({}, a)), y = a[w] = m.transform(y)), typeof m == "function" ? m = {
|
|
563
563
|
validator: m
|
|
564
564
|
} : m = $({}, m), m.validator = o.getValidationMethod(m), m.validator && (m.field = w, m.fullField = m.fullField || w, m.type = o.getType(m), x[w] = x[w] || [], x[w].push({
|
|
565
565
|
rule: m,
|
|
566
|
-
value:
|
|
566
|
+
value: y,
|
|
567
567
|
source: a,
|
|
568
568
|
field: w
|
|
569
569
|
}));
|
|
570
570
|
});
|
|
571
571
|
});
|
|
572
572
|
var g = {};
|
|
573
|
-
return
|
|
574
|
-
var
|
|
575
|
-
b = b && (
|
|
576
|
-
function m(R,
|
|
577
|
-
return $({},
|
|
578
|
-
fullField:
|
|
579
|
-
fullFields:
|
|
573
|
+
return Te(x, l, function(w, p) {
|
|
574
|
+
var y = w.rule, b = (y.type === "object" || y.type === "array") && (typeof y.fields == "object" || typeof y.defaultField == "object");
|
|
575
|
+
b = b && (y.required || !y.required && w.value), y.field = w.field;
|
|
576
|
+
function m(R, T) {
|
|
577
|
+
return $({}, T, {
|
|
578
|
+
fullField: y.fullField + "." + R,
|
|
579
|
+
fullFields: y.fullFields ? [].concat(y.fullFields, [R]) : [R]
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
function E(R) {
|
|
583
583
|
R === void 0 && (R = []);
|
|
584
|
-
var
|
|
585
|
-
!l.suppressWarning &&
|
|
586
|
-
var A =
|
|
584
|
+
var T = Array.isArray(R) ? R : [R];
|
|
585
|
+
!l.suppressWarning && T.length && n.warning("async-validator:", T), T.length && y.message !== void 0 && (T = [].concat(y.message));
|
|
586
|
+
var A = T.map(kt(y, a));
|
|
587
587
|
if (l.first && A.length)
|
|
588
|
-
return g[
|
|
588
|
+
return g[y.field] = 1, p(A);
|
|
589
589
|
if (!b)
|
|
590
|
-
|
|
590
|
+
p(A);
|
|
591
591
|
else {
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
592
|
+
if (y.required && !w.value)
|
|
593
|
+
return y.message !== void 0 ? A = [].concat(y.message).map(kt(y, a)) : l.error && (A = [l.error(y, M(l.messages.required, y.field))]), p(A);
|
|
594
594
|
var L = {};
|
|
595
|
-
|
|
596
|
-
L[I] =
|
|
595
|
+
y.defaultField && Object.keys(w.value).map(function(I) {
|
|
596
|
+
L[I] = y.defaultField;
|
|
597
597
|
}), L = $({}, L, w.rule.fields);
|
|
598
598
|
var D = {};
|
|
599
599
|
Object.keys(L).forEach(function(I) {
|
|
600
|
-
var
|
|
600
|
+
var S = L[I], O = Array.isArray(S) ? S : [S];
|
|
601
601
|
D[I] = O.map(m.bind(null, I));
|
|
602
602
|
});
|
|
603
603
|
var B = new n(D);
|
|
604
604
|
B.messages(l.messages), w.rule.options && (w.rule.options.messages = l.messages, w.rule.options.error = l.error), B.validate(w.value, w.rule.options || l, function(I) {
|
|
605
|
-
var
|
|
606
|
-
A && A.length &&
|
|
605
|
+
var S = [];
|
|
606
|
+
A && A.length && S.push.apply(S, A), I && I.length && S.push.apply(S, I), p(S.length ? S : null);
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
var C;
|
|
611
|
-
if (
|
|
612
|
-
C =
|
|
613
|
-
else if (
|
|
611
|
+
if (y.asyncValidator)
|
|
612
|
+
C = y.asyncValidator(y, w.value, E, w.source, l);
|
|
613
|
+
else if (y.validator) {
|
|
614
614
|
try {
|
|
615
|
-
C =
|
|
615
|
+
C = y.validator(y, w.value, E, w.source, l);
|
|
616
616
|
} catch (R) {
|
|
617
617
|
console.error == null || console.error(R), l.suppressValidatorError || setTimeout(function() {
|
|
618
618
|
throw R;
|
|
619
619
|
}, 0), E(R.message);
|
|
620
620
|
}
|
|
621
|
-
C === !0 ? E() : C === !1 ? E(typeof
|
|
621
|
+
C === !0 ? E() : C === !1 ? E(typeof y.message == "function" ? y.message(y.fullField || y.field) : y.message || (y.fullField || y.field) + " fails") : C instanceof Array ? E(C) : C instanceof Error && E(C.message);
|
|
622
622
|
}
|
|
623
623
|
C && C.then && C.then(function() {
|
|
624
624
|
return E();
|
|
@@ -790,17 +790,17 @@ class ii {
|
|
|
790
790
|
t.forEach((i, s) => {
|
|
791
791
|
let r = !1;
|
|
792
792
|
Array.isArray(i.children) && (r = !0, this.initData(i.children, e + 1));
|
|
793
|
-
const { ROW_KEY: o = "", DEFAULT_EXPAND_ALL: a, CELL_HEIGHT: l, SELECTABLE_METHOD: c, CHECKBOX_KEY: f } = this.ctx.config, d = i[o], x = d
|
|
793
|
+
const { ROW_KEY: o = "", DEFAULT_EXPAND_ALL: a, CELL_HEIGHT: l, SELECTABLE_METHOD: c, CHECKBOX_KEY: f } = this.ctx.config, d = i[o], x = d != null ? `${d}` : Ut();
|
|
794
794
|
this.itemRowKeyMap.set(i, x);
|
|
795
795
|
const u = i._height || l, g = i._readonly;
|
|
796
796
|
let w = !0;
|
|
797
797
|
if (typeof c == "function" && (w = c), f) {
|
|
798
|
-
const
|
|
799
|
-
if (this.checkboxKeyMap.has(
|
|
800
|
-
const
|
|
801
|
-
|
|
798
|
+
const p = i[f];
|
|
799
|
+
if (this.checkboxKeyMap.has(p)) {
|
|
800
|
+
const y = this.checkboxKeyMap.get(p);
|
|
801
|
+
y.push(x), this.checkboxKeyMap.set(p, y);
|
|
802
802
|
} else
|
|
803
|
-
this.checkboxKeyMap.set(
|
|
803
|
+
this.checkboxKeyMap.set(p, [x]);
|
|
804
804
|
}
|
|
805
805
|
this.rowKeyMap.set(x, {
|
|
806
806
|
readonly: g,
|
|
@@ -1262,7 +1262,7 @@ class ii {
|
|
|
1262
1262
|
rowKey: r,
|
|
1263
1263
|
colKey: o,
|
|
1264
1264
|
originalValue: s,
|
|
1265
|
-
row: this.
|
|
1265
|
+
row: this.ctx.database.getRowDataItemForRowKey(r),
|
|
1266
1266
|
value: e
|
|
1267
1267
|
});
|
|
1268
1268
|
}), t;
|
|
@@ -2130,8 +2130,8 @@ class ee extends te {
|
|
|
2130
2130
|
} else
|
|
2131
2131
|
o = x * 8;
|
|
2132
2132
|
if (r) {
|
|
2133
|
-
let u = 20, g = 20, w = this.drawX + o + e,
|
|
2134
|
-
this.ctx.paint.drawImage(r, w,
|
|
2133
|
+
let u = 20, g = 20, w = this.drawX + o + e, p = this.drawY + (this.visibleHeight - g) / 2;
|
|
2134
|
+
this.ctx.paint.drawImage(r, w, p, u, g), this.drawImageX = w, this.drawImageY = p, this.drawImageWidth = u, this.drawImageHeight = g, this.drawImageName = a, this.drawImageSource = r, this.align = "left", this.drawTextX = o + this.drawX + u - 0.5;
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
@@ -2149,7 +2149,7 @@ class ee extends te {
|
|
|
2149
2149
|
HIGHLIGHT_HOVER_ROW_COLOR: d
|
|
2150
2150
|
} = this.ctx.config;
|
|
2151
2151
|
if (this.cellType === "footer") {
|
|
2152
|
-
let
|
|
2152
|
+
let y = a, b = o;
|
|
2153
2153
|
if (typeof r == "function") {
|
|
2154
2154
|
const m = r, { backgroundColor: E, color: C } = m({
|
|
2155
2155
|
row: this.row,
|
|
@@ -2158,21 +2158,21 @@ class ee extends te {
|
|
|
2158
2158
|
column: this.column,
|
|
2159
2159
|
value: this.getValue()
|
|
2160
2160
|
}) || {};
|
|
2161
|
-
E && (
|
|
2161
|
+
E && (y = E), C && (b = C);
|
|
2162
2162
|
}
|
|
2163
|
-
this.drawCellSkyBgColor = "transparent", this.drawCellBgColor =
|
|
2163
|
+
this.drawCellSkyBgColor = "transparent", this.drawCellBgColor = y, this.drawTextColor = b;
|
|
2164
2164
|
return;
|
|
2165
2165
|
}
|
|
2166
2166
|
let x = "transparent";
|
|
2167
2167
|
const u = this.ctx.focusCell, g = this.ctx.hoverCell;
|
|
2168
2168
|
f && (g == null ? void 0 : g.rowKey) === this.rowKey && (x = d), l && (u == null ? void 0 : u.rowKey) === this.rowKey && (x = c), this.drawCellSkyBgColor = x;
|
|
2169
|
-
let w = e,
|
|
2169
|
+
let w = e, p = o;
|
|
2170
2170
|
if (["index", "index-selection", "selection"].includes(this.type)) {
|
|
2171
2171
|
this.drawCellBgColor = e, this.drawTextColor = o;
|
|
2172
2172
|
return;
|
|
2173
2173
|
}
|
|
2174
|
-
if (this.ctx.database.getReadonly(this.rowKey, this.key) || (w = i,
|
|
2175
|
-
const
|
|
2174
|
+
if (this.ctx.database.getReadonly(this.rowKey, this.key) || (w = i, p = o), typeof s == "function") {
|
|
2175
|
+
const y = s, { backgroundColor: b, color: m } = y({
|
|
2176
2176
|
row: this.row,
|
|
2177
2177
|
rowIndex: this.rowIndex,
|
|
2178
2178
|
colIndex: this.colIndex,
|
|
@@ -2180,16 +2180,16 @@ class ee extends te {
|
|
|
2180
2180
|
isHasChanged: this.isHasChanged,
|
|
2181
2181
|
value: this.getValue()
|
|
2182
2182
|
}) || {};
|
|
2183
|
-
b && (w = b), m && (
|
|
2183
|
+
b && (w = b), m && (p = m);
|
|
2184
2184
|
}
|
|
2185
|
-
this.drawCellBgColor = w, this.drawTextColor =
|
|
2185
|
+
this.drawCellBgColor = w, this.drawTextColor = p;
|
|
2186
2186
|
}
|
|
2187
2187
|
updateSelection() {
|
|
2188
2188
|
const { visibleWidth: e, visibleHeight: i, rowspan: s, colspan: r, cellType: o, type: a, rowIndex: l, rowKey: c } = this;
|
|
2189
2189
|
if (!(s === 0 || r === 0) && o !== "footer" && ["index-selection", "selection"].includes(a)) {
|
|
2190
2190
|
const f = this.ctx.database.getRowSelection(c), d = this.ctx.database.getRowSelectable(c), { CHECKBOX_SIZE: x = 0 } = this.ctx.config, u = this.drawX + (e - x) / 2, g = this.drawY + (i - x) / 2;
|
|
2191
|
-
let w = this.ctx.icons.get("checkbox-uncheck"),
|
|
2192
|
-
f && d ? (w = this.ctx.icons.get("checkbox-check"),
|
|
2191
|
+
let w = this.ctx.icons.get("checkbox-uncheck"), p = "checkbox-uncheck";
|
|
2192
|
+
f && d ? (w = this.ctx.icons.get("checkbox-check"), p = "checkbox-check") : f && d ? (w = this.ctx.icons.get("checkbox-check-disabled"), p = "checkbox-check-disabled") : !f && d ? (w = this.ctx.icons.get("checkbox-uncheck"), p = "checkbox-uncheck") : (w = this.ctx.icons.get("checkbox-disabled"), p = "checkbox-disabled"), w && a == "index-selection" ? (this.ctx.hoverCell && this.ctx.hoverCell.rowIndex === l || ["checkbox-disabled", "checkbox-check"].includes(p)) && (this.drawImageX = u, this.drawImageY = g, this.drawImageWidth = x, this.drawImageHeight = x, this.drawImageName = p, this.drawImageSource = w) : w && a === "selection" && (this.drawImageX = u, this.drawImageY = g, this.drawImageWidth = x, this.drawImageHeight = x, this.drawImageName = p, this.drawImageSource = w);
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
2195
|
updateHoverIcon() {
|
|
@@ -2383,31 +2383,31 @@ class ee extends te {
|
|
|
2383
2383
|
const { drawX: i, drawY: s, width: r, rowIndex: o, colIndex: a } = this;
|
|
2384
2384
|
let l = i + 0.5, c = s + 0.5, f = this.height;
|
|
2385
2385
|
o === 0 && (c = this.y + 1, f = f - 1), a === this.ctx.maxColIndex && (l = l - 1);
|
|
2386
|
-
const { xArr: d, yArr: x, lineDash: u = [], borderWidth: g = 1, borderColor: w, fillColor:
|
|
2387
|
-
a >=
|
|
2386
|
+
const { xArr: d, yArr: x, lineDash: u = [], borderWidth: g = 1, borderColor: w, fillColor: p } = e, y = d[0], b = d[1], m = x[0], E = x[1];
|
|
2387
|
+
a >= y && a <= b && o === m && this.ctx.paint.drawLine([l, c, l + r - 2, c], {
|
|
2388
2388
|
borderColor: w,
|
|
2389
|
-
fillColor:
|
|
2389
|
+
fillColor: p,
|
|
2390
2390
|
borderWidth: g,
|
|
2391
2391
|
lineCap: "round",
|
|
2392
2392
|
lineJoin: "round",
|
|
2393
2393
|
lineDash: u
|
|
2394
|
-
}), a >=
|
|
2394
|
+
}), a >= y && a <= b && o === E && this.ctx.paint.drawLine([l, c + f - 1.5, l + r, c + f - 1.5], {
|
|
2395
2395
|
borderColor: w,
|
|
2396
|
-
fillColor:
|
|
2396
|
+
fillColor: p,
|
|
2397
2397
|
borderWidth: g,
|
|
2398
2398
|
lineCap: "round",
|
|
2399
2399
|
lineJoin: "round",
|
|
2400
2400
|
lineDash: u
|
|
2401
|
-
}), a ===
|
|
2401
|
+
}), a === y && o >= m && o <= E && this.ctx.paint.drawLine([l, c, l, c + f - 1], {
|
|
2402
2402
|
borderColor: w,
|
|
2403
|
-
fillColor:
|
|
2403
|
+
fillColor: p,
|
|
2404
2404
|
borderWidth: g,
|
|
2405
2405
|
lineCap: "round",
|
|
2406
2406
|
lineJoin: "round",
|
|
2407
2407
|
lineDash: u
|
|
2408
2408
|
}), a === b && o >= m && o <= E && this.ctx.paint.drawLine([l + r - 1.5, c, l + r - 1.5, c + f - 1.5], {
|
|
2409
2409
|
borderColor: w,
|
|
2410
|
-
fillColor:
|
|
2410
|
+
fillColor: p,
|
|
2411
2411
|
borderWidth: g,
|
|
2412
2412
|
lineCap: "round",
|
|
2413
2413
|
lineJoin: "round",
|
|
@@ -2842,9 +2842,10 @@ class li {
|
|
|
2842
2842
|
e < 0 ? e = 0 : e > i && (e = i), this.emit("setScrollX", e);
|
|
2843
2843
|
}
|
|
2844
2844
|
setScrollY(t) {
|
|
2845
|
-
let e = Math.floor(t);
|
|
2846
|
-
|
|
2847
|
-
|
|
2845
|
+
let e = Math.floor(t), i = 0;
|
|
2846
|
+
this.config.FOOTER_FIXED || (i = this.footer.height);
|
|
2847
|
+
const s = this.body.height - this.body.visibleHeight + i;
|
|
2848
|
+
e < 0 ? e = 0 : e > s && (e = s), this.emit("setScrollY", e);
|
|
2848
2849
|
}
|
|
2849
2850
|
isTarget() {
|
|
2850
2851
|
return this.isInsideTargetContainer;
|
|
@@ -3363,12 +3364,12 @@ class fi {
|
|
|
3363
3364
|
width: this.width,
|
|
3364
3365
|
height: this.data.length ? 0 : a + g
|
|
3365
3366
|
});
|
|
3366
|
-
let
|
|
3367
|
-
|
|
3368
|
-
let
|
|
3369
|
-
this.data.length && c ? (
|
|
3367
|
+
let p = this.height + e.height + r;
|
|
3368
|
+
p += g;
|
|
3369
|
+
let y = 0;
|
|
3370
|
+
this.data.length && c ? (y = window.innerHeight - u - f, y < 0 && (y = 32, console.error(
|
|
3370
3371
|
"There is an error in the height calculation ENABLE_OFFSET_HEIGHT and OFFSET_HEIGHT are invalid"
|
|
3371
|
-
))) : this.data.length && o ?
|
|
3372
|
+
))) : this.data.length && o ? y = o : this.data.length && l && p > l ? y = l : y = p, y > 0 && (this.ctx.stageHeight = Math.floor(y), this.ctx.stageElement.style.height = `${this.ctx.stageHeight - 0.5}px`);
|
|
3372
3373
|
let b = this.ctx.stageHeight - e.height - r;
|
|
3373
3374
|
s ? this.visibleHeight = b - g : this.visibleHeight = b, this.ctx.body.x = this.x, this.ctx.body.y = this.y, this.ctx.body.width = this.width, this.ctx.body.height = this.height, this.ctx.body.visibleWidth = this.visibleWidth, this.ctx.body.visibleHeight = this.visibleHeight, this.ctx.body.data = d;
|
|
3374
3375
|
const m = window.devicePixelRatio || 1, E = this.ctx.stageWidth * m, C = this.ctx.stageHeight * m;
|
|
@@ -3686,11 +3687,11 @@ class ui {
|
|
|
3686
3687
|
SELECTOR_AREA_MAX_Y: f,
|
|
3687
3688
|
SELECTOR_AREA_MAX_X_OFFSET: d,
|
|
3688
3689
|
SELECTOR_AREA_MAX_Y_OFFSET: x
|
|
3689
|
-
} = this.ctx.config, u = a, g = l || this.ctx.maxColIndex - d, w = c,
|
|
3690
|
-
let [
|
|
3691
|
-
if (
|
|
3690
|
+
} = this.ctx.config, u = a, g = l || this.ctx.maxColIndex - d, w = c, p = f || this.ctx.maxRowIndex - x;
|
|
3691
|
+
let [y, b] = r, [m, E] = o;
|
|
3692
|
+
if (y < u || b > g || m < w || E > p)
|
|
3692
3693
|
return;
|
|
3693
|
-
this.ctx.selector.xArr = [Math.max(u,
|
|
3694
|
+
this.ctx.selector.xArr = [Math.max(u, y), Math.min(g, b)], this.ctx.selector.yArr = [Math.max(w, m), Math.min(p, E)], this.ctx.emit("setSelector", this.ctx.selector), this.ctx.emit("drawView");
|
|
3694
3695
|
}
|
|
3695
3696
|
}
|
|
3696
3697
|
selectCols(t) {
|
|
@@ -3842,10 +3843,10 @@ class ui {
|
|
|
3842
3843
|
u
|
|
3843
3844
|
);
|
|
3844
3845
|
if (w) {
|
|
3845
|
-
const { rowKey:
|
|
3846
|
-
this.ctx.database.getReadonly(
|
|
3847
|
-
rowKey:
|
|
3848
|
-
key:
|
|
3846
|
+
const { rowKey: p, key: y } = w;
|
|
3847
|
+
this.ctx.database.getReadonly(p, y) || (s.add(p), a.push({
|
|
3848
|
+
rowKey: p,
|
|
3849
|
+
key: y,
|
|
3849
3850
|
value: g,
|
|
3850
3851
|
row: {}
|
|
3851
3852
|
//内部有设置
|
|
@@ -3961,15 +3962,16 @@ class ui {
|
|
|
3961
3962
|
scrollY: f,
|
|
3962
3963
|
config: { SCROLLER_TRACK_SIZE: d, FOOTER_FIXED: x }
|
|
3963
3964
|
} = this.ctx;
|
|
3964
|
-
if (!i
|
|
3965
|
-
return;
|
|
3966
|
-
let u = 0;
|
|
3967
|
-
x && (u = a.visibleHeight);
|
|
3968
|
-
const g = i.drawX < r, w = i.drawX + i.width > e - s, y = i.drawY < o.height, p = i.drawY + i.height > t - u - d;
|
|
3969
|
-
if (i.fixed && !(y || p) || !(g || w || y || p))
|
|
3965
|
+
if (!i)
|
|
3970
3966
|
return;
|
|
3971
|
-
const
|
|
3972
|
-
|
|
3967
|
+
const u = r - i.drawX + 1, g = i.drawX + i.width - (e - s) + 1, w = o.height - i.drawY;
|
|
3968
|
+
let p = i.height;
|
|
3969
|
+
p > l.visibleHeight && (p = l.visibleHeight);
|
|
3970
|
+
let y = 0;
|
|
3971
|
+
x && (y = a.visibleHeight);
|
|
3972
|
+
const b = i.drawY + p - (t - y - d);
|
|
3973
|
+
let m = c, E = f;
|
|
3974
|
+
g > 0 && !i.fixed ? m = c + g : u > 0 && !i.fixed && (m = c - u), w > 0 ? E = f - w : b > 0 && (E = f + b), (Math.abs(c - m) > 1 || Math.abs(f - E) > 1) && (this.ctx.adjustPositioning = !0, this.ctx.setScroll(m, E), this.ctx.emit("adjustBoundaryPosition", i));
|
|
3973
3975
|
}
|
|
3974
3976
|
destroy() {
|
|
3975
3977
|
this.timerX && (clearTimeout(this.timerX), this.timerX = 0), this.timerY && (clearTimeout(this.timerY), this.timerY = 0);
|
|
@@ -3985,8 +3987,8 @@ class gi {
|
|
|
3985
3987
|
this.ctx.stageElement.style.cursor === "crosshair" && (this.ctx.stageElement.style.cursor = "default");
|
|
3986
3988
|
const { offsetX: i, offsetY: s } = this.ctx.getOffset(e), { xArr: r, yArr: o } = this.ctx.selector, a = r[1], l = o[1], { colIndex: c, rowIndex: f, drawX: d, drawY: x, width: u, height: g } = t;
|
|
3987
3989
|
if (this.ctx.config.ENABLE_AUTOFILL && c === a && f === l) {
|
|
3988
|
-
const
|
|
3989
|
-
i >
|
|
3990
|
+
const p = d + u - 6, y = x + g - 6;
|
|
3991
|
+
i > p && s > y && (this.ctx.stageElement.style.cursor = "crosshair");
|
|
3990
3992
|
}
|
|
3991
3993
|
this.mouseenter(t);
|
|
3992
3994
|
}), this.ctx.on("cellMousedown", () => {
|
|
@@ -4032,11 +4034,11 @@ class gi {
|
|
|
4032
4034
|
SELECTOR_AREA_MAX_Y: d,
|
|
4033
4035
|
SELECTOR_AREA_MAX_X_OFFSET: x,
|
|
4034
4036
|
SELECTOR_AREA_MAX_Y_OFFSET: u
|
|
4035
|
-
} = this.ctx.config, g = l, w = c || this.ctx.maxColIndex - x,
|
|
4037
|
+
} = this.ctx.config, g = l, w = c || this.ctx.maxColIndex - x, p = f, y = d || this.ctx.maxRowIndex - u;
|
|
4036
4038
|
let [b, m] = o, [E, C] = a;
|
|
4037
|
-
if (b < g || E <
|
|
4039
|
+
if (b < g || E < p)
|
|
4038
4040
|
return;
|
|
4039
|
-
this.ctx.autofill.xArr = [Math.max(g, b), Math.min(w, m)], this.ctx.autofill.yArr = [Math.max(
|
|
4041
|
+
this.ctx.autofill.xArr = [Math.max(g, b), Math.min(w, m)], this.ctx.autofill.yArr = [Math.max(p, E), Math.min(y, C)], this.ctx.emit("setAutofill", this.ctx.autofill), this.ctx.emit("draw");
|
|
4040
4042
|
}
|
|
4041
4043
|
}
|
|
4042
4044
|
/**
|
|
@@ -4053,9 +4055,9 @@ class gi {
|
|
|
4053
4055
|
let c = [];
|
|
4054
4056
|
for (let d = 0; d <= l[1] - l[0]; d++)
|
|
4055
4057
|
for (let x = 0; x <= a[1] - a[0]; x++) {
|
|
4056
|
-
const u = x + a[0], g = d + l[0], w = s[d % o][x % r],
|
|
4057
|
-
if (
|
|
4058
|
-
const { rowKey: b, key: m } =
|
|
4058
|
+
const u = x + a[0], g = d + l[0], w = s[d % o][x % r], p = this.ctx.database.getItemValueForRowIndexAndColIndex(g, u), y = `${g}-${u}`;
|
|
4059
|
+
if (p && !i.has(y)) {
|
|
4060
|
+
const { rowKey: b, key: m } = p;
|
|
4059
4061
|
this.ctx.database.getReadonly(b, m) || (t.add(b), c.push({
|
|
4060
4062
|
rowKey: b,
|
|
4061
4063
|
key: m,
|
|
@@ -4254,14 +4256,14 @@ const vi = async (n, t, e) => {
|
|
|
4254
4256
|
} = Vt(c, i, l), x = i, u = {}, g = 0;
|
|
4255
4257
|
for (let w = 0; w < a.length; w++) {
|
|
4256
4258
|
const {
|
|
4257
|
-
name:
|
|
4258
|
-
fn:
|
|
4259
|
+
name: p,
|
|
4260
|
+
fn: y
|
|
4259
4261
|
} = a[w], {
|
|
4260
4262
|
x: b,
|
|
4261
4263
|
y: m,
|
|
4262
4264
|
data: E,
|
|
4263
4265
|
reset: C
|
|
4264
|
-
} = await
|
|
4266
|
+
} = await y({
|
|
4265
4267
|
x: f,
|
|
4266
4268
|
y: d,
|
|
4267
4269
|
initialPlacement: i,
|
|
@@ -4277,8 +4279,8 @@ const vi = async (n, t, e) => {
|
|
|
4277
4279
|
});
|
|
4278
4280
|
f = b ?? f, d = m ?? d, u = {
|
|
4279
4281
|
...u,
|
|
4280
|
-
[
|
|
4281
|
-
...u[
|
|
4282
|
+
[p]: {
|
|
4283
|
+
...u[p],
|
|
4282
4284
|
...E
|
|
4283
4285
|
}
|
|
4284
4286
|
}, C && g <= 50 && (g++, typeof C == "object" && (C.placement && (x = C.placement), C.rects && (c = C.rects === !0 ? await o.getElementRects({
|
|
@@ -4314,8 +4316,8 @@ async function ne(n, t) {
|
|
|
4314
4316
|
elementContext: d = "floating",
|
|
4315
4317
|
altBoundary: x = !1,
|
|
4316
4318
|
padding: u = 0
|
|
4317
|
-
} = at(t, n), g = oe(u),
|
|
4318
|
-
element: (e = await (r.isElement == null ? void 0 : r.isElement(
|
|
4319
|
+
} = at(t, n), g = oe(u), p = a[x ? d === "floating" ? "reference" : "floating" : d], y = ut(await r.getClippingRect({
|
|
4320
|
+
element: (e = await (r.isElement == null ? void 0 : r.isElement(p))) == null || e ? p : p.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
4319
4321
|
boundary: c,
|
|
4320
4322
|
rootBoundary: f,
|
|
4321
4323
|
strategy: l
|
|
@@ -4337,10 +4339,10 @@ async function ne(n, t) {
|
|
|
4337
4339
|
strategy: l
|
|
4338
4340
|
}) : b);
|
|
4339
4341
|
return {
|
|
4340
|
-
top: (
|
|
4341
|
-
bottom: (C.bottom -
|
|
4342
|
-
left: (
|
|
4343
|
-
right: (C.right -
|
|
4342
|
+
top: (y.top - C.top + g.top) / E.y,
|
|
4343
|
+
bottom: (C.bottom - y.bottom + g.bottom) / E.y,
|
|
4344
|
+
left: (y.left - C.left + g.left) / E.x,
|
|
4345
|
+
right: (C.right - y.right + g.right) / E.x
|
|
4344
4346
|
};
|
|
4345
4347
|
}
|
|
4346
4348
|
const Ri = (n) => ({
|
|
@@ -4364,10 +4366,10 @@ const Ri = (n) => ({
|
|
|
4364
4366
|
const d = oe(f), x = {
|
|
4365
4367
|
x: e,
|
|
4366
4368
|
y: i
|
|
4367
|
-
}, u = Mt(s), g = Lt(u), w = await o.getDimensions(c),
|
|
4368
|
-
let
|
|
4369
|
-
(!
|
|
4370
|
-
const A = E / 2 - C / 2, L =
|
|
4369
|
+
}, u = Mt(s), g = Lt(u), w = await o.getDimensions(c), p = u === "y", y = p ? "top" : "left", b = p ? "bottom" : "right", m = p ? "clientHeight" : "clientWidth", E = r.reference[g] + r.reference[u] - x[u] - r.floating[g], C = x[u] - r.reference[u], R = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
|
4370
|
+
let T = R ? R[m] : 0;
|
|
4371
|
+
(!T || !await (o.isElement == null ? void 0 : o.isElement(R))) && (T = a.floating[m] || r.floating[g]);
|
|
4372
|
+
const A = E / 2 - C / 2, L = T / 2 - w[g] / 2 - 1, D = rt(d[y], L), B = rt(d[b], L), I = D, S = T - w[g] - B, O = T / 2 - w[g] / 2 + A, G = It(I, O, S), Y = !l.arrow && ht(s) != null && O !== G && r.reference[g] / 2 - (O < I ? D : B) - w[g] / 2 < 0, k = Y ? O < I ? O - I : O - S : 0;
|
|
4371
4373
|
return {
|
|
4372
4374
|
[u]: x[u] + k,
|
|
4373
4375
|
data: {
|
|
@@ -4400,15 +4402,15 @@ const Ri = (n) => ({
|
|
|
4400
4402
|
fallbackStrategy: u = "bestFit",
|
|
4401
4403
|
fallbackAxisSideDirection: g = "none",
|
|
4402
4404
|
flipAlignment: w = !0,
|
|
4403
|
-
...
|
|
4405
|
+
...p
|
|
4404
4406
|
} = at(n, t);
|
|
4405
4407
|
if ((e = r.arrow) != null && e.alignmentOffset)
|
|
4406
4408
|
return {};
|
|
4407
|
-
const
|
|
4409
|
+
const y = q(s), b = J(a), m = q(a) === a, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), C = x || (m || !w ? [xt(a)] : mi(a)), R = g !== "none";
|
|
4408
4410
|
!x && R && C.push(...bi(a, w, g, E));
|
|
4409
|
-
const
|
|
4411
|
+
const T = [a, ...C], A = await ne(t, p), L = [];
|
|
4410
4412
|
let D = ((i = r.flip) == null ? void 0 : i.overflows) || [];
|
|
4411
|
-
if (f && L.push(A[
|
|
4413
|
+
if (f && L.push(A[y]), d) {
|
|
4412
4414
|
const O = yi(s, o, E);
|
|
4413
4415
|
L.push(A[O[0]], A[O[1]]);
|
|
4414
4416
|
}
|
|
@@ -4417,7 +4419,7 @@ const Ri = (n) => ({
|
|
|
4417
4419
|
overflows: L
|
|
4418
4420
|
}], !L.every((O) => O <= 0)) {
|
|
4419
4421
|
var B, I;
|
|
4420
|
-
const O = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, G =
|
|
4422
|
+
const O = (((B = r.flip) == null ? void 0 : B.index) || 0) + 1, G = T[O];
|
|
4421
4423
|
if (G)
|
|
4422
4424
|
return {
|
|
4423
4425
|
data: {
|
|
@@ -4432,8 +4434,8 @@ const Ri = (n) => ({
|
|
|
4432
4434
|
if (!Y)
|
|
4433
4435
|
switch (u) {
|
|
4434
4436
|
case "bestFit": {
|
|
4435
|
-
var
|
|
4436
|
-
const k = (
|
|
4437
|
+
var S;
|
|
4438
|
+
const k = (S = D.filter((W) => {
|
|
4437
4439
|
if (R) {
|
|
4438
4440
|
const P = J(W.placement);
|
|
4439
4441
|
return P === b || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -4441,7 +4443,7 @@ const Ri = (n) => ({
|
|
|
4441
4443
|
P === "y";
|
|
4442
4444
|
}
|
|
4443
4445
|
return !0;
|
|
4444
|
-
}).map((W) => [W.placement, W.overflows.filter((P) => P > 0).reduce((P, ye) => P + ye, 0)]).sort((W, P) => W[1] - P[1])[0]) == null ? void 0 :
|
|
4446
|
+
}).map((W) => [W.placement, W.overflows.filter((P) => P > 0).reduce((P, ye) => P + ye, 0)]).sort((W, P) => W[1] - P[1])[0]) == null ? void 0 : S[0];
|
|
4445
4447
|
k && (Y = k);
|
|
4446
4448
|
break;
|
|
4447
4449
|
}
|
|
@@ -4509,7 +4511,7 @@ const Oi = function(n) {
|
|
|
4509
4511
|
};
|
|
4510
4512
|
}
|
|
4511
4513
|
};
|
|
4512
|
-
},
|
|
4514
|
+
}, Ti = function(n) {
|
|
4513
4515
|
return n === void 0 && (n = {}), {
|
|
4514
4516
|
name: "shift",
|
|
4515
4517
|
options: n,
|
|
@@ -4522,13 +4524,13 @@ const Oi = function(n) {
|
|
|
4522
4524
|
mainAxis: r = !0,
|
|
4523
4525
|
crossAxis: o = !1,
|
|
4524
4526
|
limiter: a = {
|
|
4525
|
-
fn: (
|
|
4527
|
+
fn: (p) => {
|
|
4526
4528
|
let {
|
|
4527
|
-
x:
|
|
4529
|
+
x: y,
|
|
4528
4530
|
y: b
|
|
4529
|
-
} =
|
|
4531
|
+
} = p;
|
|
4530
4532
|
return {
|
|
4531
|
-
x:
|
|
4533
|
+
x: y,
|
|
4532
4534
|
y: b
|
|
4533
4535
|
};
|
|
4534
4536
|
}
|
|
@@ -4540,11 +4542,11 @@ const Oi = function(n) {
|
|
|
4540
4542
|
}, f = await ne(t, l), d = J(q(s)), x = re(d);
|
|
4541
4543
|
let u = c[x], g = c[d];
|
|
4542
4544
|
if (r) {
|
|
4543
|
-
const
|
|
4545
|
+
const p = x === "y" ? "top" : "left", y = x === "y" ? "bottom" : "right", b = u + f[p], m = u - f[y];
|
|
4544
4546
|
u = It(b, u, m);
|
|
4545
4547
|
}
|
|
4546
4548
|
if (o) {
|
|
4547
|
-
const
|
|
4549
|
+
const p = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", b = g + f[p], m = g - f[y];
|
|
4548
4550
|
g = It(b, g, m);
|
|
4549
4551
|
}
|
|
4550
4552
|
const w = a.fn({
|
|
@@ -4601,7 +4603,7 @@ function lt(n) {
|
|
|
4601
4603
|
} = F(n);
|
|
4602
4604
|
return /auto|scroll|overlay|hidden|clip/.test(t + i + e) && !["inline", "contents"].includes(s);
|
|
4603
4605
|
}
|
|
4604
|
-
function
|
|
4606
|
+
function Si(n) {
|
|
4605
4607
|
return ["table", "td", "th"].includes(tt(n));
|
|
4606
4608
|
}
|
|
4607
4609
|
function wt(n) {
|
|
@@ -4662,17 +4664,17 @@ function he(n) {
|
|
|
4662
4664
|
const t = z(n);
|
|
4663
4665
|
return Q(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : N(t) && lt(t) ? t : he(t);
|
|
4664
4666
|
}
|
|
4665
|
-
function
|
|
4667
|
+
function Tt(n, t, e) {
|
|
4666
4668
|
var i;
|
|
4667
4669
|
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
4668
4670
|
const s = he(n), r = s === ((i = n.ownerDocument) == null ? void 0 : i.body), o = H(s);
|
|
4669
4671
|
if (r) {
|
|
4670
|
-
const a =
|
|
4671
|
-
return t.concat(o, o.visualViewport || [], lt(s) ? s : [], a && e ?
|
|
4672
|
+
const a = St(o);
|
|
4673
|
+
return t.concat(o, o.visualViewport || [], lt(s) ? s : [], a && e ? Tt(a) : []);
|
|
4672
4674
|
}
|
|
4673
|
-
return t.concat(s,
|
|
4675
|
+
return t.concat(s, Tt(s, [], e));
|
|
4674
4676
|
}
|
|
4675
|
-
function
|
|
4677
|
+
function St(n) {
|
|
4676
4678
|
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
4677
4679
|
}
|
|
4678
4680
|
function le(n) {
|
|
@@ -4723,10 +4725,10 @@ function ot(n, t, e, i) {
|
|
|
4723
4725
|
let l = (s.left + a.x) / o.x, c = (s.top + a.y) / o.y, f = s.width / o.x, d = s.height / o.y;
|
|
4724
4726
|
if (r) {
|
|
4725
4727
|
const x = H(r), u = i && X(i) ? H(i) : i;
|
|
4726
|
-
let g = x, w =
|
|
4728
|
+
let g = x, w = St(g);
|
|
4727
4729
|
for (; w && i && u !== g; ) {
|
|
4728
|
-
const
|
|
4729
|
-
l *=
|
|
4730
|
+
const p = Z(w), y = w.getBoundingClientRect(), b = F(w), m = y.left + (w.clientLeft + parseFloat(b.paddingLeft)) * p.x, E = y.top + (w.clientTop + parseFloat(b.paddingTop)) * p.y;
|
|
4731
|
+
l *= p.x, c *= p.y, f *= p.x, d *= p.y, l += m, c += E, g = H(w), w = St(g);
|
|
4730
4732
|
}
|
|
4731
4733
|
}
|
|
4732
4734
|
return ut({
|
|
@@ -4830,7 +4832,7 @@ function Ni(n, t) {
|
|
|
4830
4832
|
const e = t.get(n);
|
|
4831
4833
|
if (e)
|
|
4832
4834
|
return e;
|
|
4833
|
-
let i =
|
|
4835
|
+
let i = Tt(n, [], !1).filter((a) => X(a) && tt(a) !== "body"), s = null;
|
|
4834
4836
|
const r = F(n).position === "fixed";
|
|
4835
4837
|
let o = r ? z(n) : n;
|
|
4836
4838
|
for (; X(o) && !Q(o); ) {
|
|
@@ -4918,7 +4920,7 @@ function xe(n, t) {
|
|
|
4918
4920
|
return e;
|
|
4919
4921
|
}
|
|
4920
4922
|
let i = qt(n, t);
|
|
4921
|
-
for (; i &&
|
|
4923
|
+
for (; i && Si(i) && mt(i); )
|
|
4922
4924
|
i = qt(i, t);
|
|
4923
4925
|
return i && Q(i) && mt(i) && !Ht(i) ? e : i || Ai(n) || e;
|
|
4924
4926
|
}
|
|
@@ -4948,7 +4950,7 @@ const Vi = {
|
|
|
4948
4950
|
getScale: Z,
|
|
4949
4951
|
isElement: X,
|
|
4950
4952
|
isRTL: Pi
|
|
4951
|
-
}, ue = Oi, ge =
|
|
4953
|
+
}, ue = Oi, ge = Ti, we = _i, zi = Ri, pe = (n, t, e) => {
|
|
4952
4954
|
const i = /* @__PURE__ */ new Map(), s = {
|
|
4953
4955
|
platform: Vi,
|
|
4954
4956
|
...e
|
|
@@ -5272,8 +5274,8 @@ class ji {
|
|
|
5272
5274
|
config: { SCROLLER_TRACK_SIZE: i, CSS_PREFIX: s }
|
|
5273
5275
|
} = this.ctx, { visibleWidth: r, visibleHeight: o, renderCellHeaders: a } = this.ctx.header;
|
|
5274
5276
|
let l = [], c = [], f = [];
|
|
5275
|
-
a.forEach((
|
|
5276
|
-
|
|
5277
|
+
a.forEach((p) => {
|
|
5278
|
+
p.render && (p.fixed === "left" ? c.push(p) : p.fixed === "right" ? f.push(p) : l.push(p));
|
|
5277
5279
|
});
|
|
5278
5280
|
const d = e - i, x = {
|
|
5279
5281
|
key: "left",
|
|
@@ -5324,9 +5326,9 @@ class ji {
|
|
|
5324
5326
|
getBody() {
|
|
5325
5327
|
const t = [], e = [], i = [];
|
|
5326
5328
|
let s = this.ctx.body.renderRows;
|
|
5327
|
-
this.ctx.config.FOOTER_FIXED || (s = s.concat(this.ctx.footer.renderRows)), s.forEach((
|
|
5328
|
-
|
|
5329
|
-
|
|
5329
|
+
this.ctx.config.FOOTER_FIXED || (s = s.concat(this.ctx.footer.renderRows)), s.forEach((p) => {
|
|
5330
|
+
p.cells.forEach((y) => {
|
|
5331
|
+
y.cellType === "footer" && (y.render = y.renderFooter), y.render && (y.fixed === "left" ? e.push(y) : y.fixed === "right" ? i.push(y) : t.push(y));
|
|
5330
5332
|
});
|
|
5331
5333
|
});
|
|
5332
5334
|
const {
|
|
@@ -5382,8 +5384,8 @@ class ji {
|
|
|
5382
5384
|
getFooter() {
|
|
5383
5385
|
const t = [], e = [], i = [];
|
|
5384
5386
|
this.ctx.footer.renderRows.forEach((w) => {
|
|
5385
|
-
w.cells.forEach((
|
|
5386
|
-
|
|
5387
|
+
w.cells.forEach((p) => {
|
|
5388
|
+
p.cellType === "footer" && p.renderFooter && (p.render = p.renderFooter, p.fixed === "left" ? e.push(p) : p.fixed === "right" ? i.push(p) : t.push(p));
|
|
5387
5389
|
});
|
|
5388
5390
|
});
|
|
5389
5391
|
const {
|