blixify-ui-web 1.2.210 → 1.2.211
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/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +24 -9
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/display/groupSection/index.d.ts.map +1 -1
- package/lib/components/display/groupSection/index.js +8 -3
- package/lib/components/display/groupSection/index.js.map +1 -1
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +8 -3
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/navigation/leftNav/index.d.ts +1 -0
- package/lib/components/navigation/leftNav/index.d.ts.map +1 -1
- package/lib/components/navigation/leftNav/index.js +4 -4
- package/lib/components/navigation/leftNav/index.js.map +1 -1
- package/lib/tail.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AA6Gf,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AA8G1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAwC1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AA6Gf,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AA8G1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAwC1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,mFA0sevB,CAAC"}
|
|
@@ -9843,25 +9843,40 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
9843
9843
|
// tableData / spaceTableData, so handleBuildNewTableGroups() keeps building
|
|
9844
9844
|
// bands from one source; each group advances its own cursor
|
|
9845
9845
|
var handleFetchGroupNextPage = function (groupKey) { return __awaiter(void 0, void 0, void 0, function () {
|
|
9846
|
-
var current, cursor, generation, page_1, existingIds_1, appendRaw_1, appendPretty_1, nextCursor, err_29;
|
|
9847
|
-
var _a, _b, _c, _d;
|
|
9848
|
-
return __generator(this, function (
|
|
9849
|
-
switch (
|
|
9846
|
+
var current, groupSize, cursor, generation, page_1, existingIds_1, appendRaw_1, appendPretty_1, nextCursor, err_29;
|
|
9847
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
9848
|
+
return __generator(this, function (_h) {
|
|
9849
|
+
switch (_h.label) {
|
|
9850
9850
|
case 0:
|
|
9851
9851
|
if (!renderCheckGroupPaging() || !renderCheckScrollMode())
|
|
9852
9852
|
return [2 /*return*/];
|
|
9853
9853
|
current = groupPageStateRef.current[groupKey];
|
|
9854
9854
|
if ((current === null || current === void 0 ? void 0 : current.loadingMore) || (current === null || current === void 0 ? void 0 : current.exhausted))
|
|
9855
9855
|
return [2 /*return*/];
|
|
9856
|
-
|
|
9856
|
+
// INFO: the main read already holds every row of the list, so this group has
|
|
9857
|
+
// nothing further to read
|
|
9858
|
+
if (!(current === null || current === void 0 ? void 0 : current.fetched) &&
|
|
9859
|
+
!tableLoading &&
|
|
9860
|
+
size > 0 &&
|
|
9861
|
+
tableDataRef.current.length >= size) {
|
|
9862
|
+
groupSize = (_c = (_b = ((_a = handleBuildNewTableGroups()) !== null && _a !== void 0 ? _a : []).find(function (eachGroup) { return eachGroup.id === groupKey; })) === null || _b === void 0 ? void 0 : _b.rowIds.length) !== null && _c !== void 0 ? _c : 0;
|
|
9863
|
+
handleSetGroupPageState(groupKey, {
|
|
9864
|
+
cursor: groupSize,
|
|
9865
|
+
size: groupSize,
|
|
9866
|
+
fetched: true,
|
|
9867
|
+
exhausted: true,
|
|
9868
|
+
});
|
|
9869
|
+
return [2 /*return*/];
|
|
9870
|
+
}
|
|
9871
|
+
cursor = (_g = (_d = current === null || current === void 0 ? void 0 : current.cursor) !== null && _d !== void 0 ? _d : (_f = ((_e = handleBuildNewTableGroups()) !== null && _e !== void 0 ? _e : []).find(function (eachGroup) { return eachGroup.id === groupKey; })) === null || _f === void 0 ? void 0 : _f.rowIds.length) !== null && _g !== void 0 ? _g : 0;
|
|
9857
9872
|
generation = groupPagingGenRef.current;
|
|
9858
9873
|
handleSetGroupPageState(groupKey, { cursor: cursor, loadingMore: true });
|
|
9859
|
-
|
|
9874
|
+
_h.label = 1;
|
|
9860
9875
|
case 1:
|
|
9861
|
-
|
|
9876
|
+
_h.trys.push([1, 3, , 4]);
|
|
9862
9877
|
return [4 /*yield*/, handleReadGroupPage(groupKey, cursor)];
|
|
9863
9878
|
case 2:
|
|
9864
|
-
page_1 =
|
|
9879
|
+
page_1 = _h.sent();
|
|
9865
9880
|
if (!page_1)
|
|
9866
9881
|
return [2 /*return*/];
|
|
9867
9882
|
existingIds_1 = new Set(tableDataRef.current.map(function (eachRow) { var _a; return (_a = eachRow.id) !== null && _a !== void 0 ? _a : eachRow._id; }));
|
|
@@ -9885,7 +9900,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
9885
9900
|
});
|
|
9886
9901
|
return [3 /*break*/, 4];
|
|
9887
9902
|
case 3:
|
|
9888
|
-
err_29 =
|
|
9903
|
+
err_29 = _h.sent();
|
|
9889
9904
|
if (generation !== groupPagingGenRef.current)
|
|
9890
9905
|
return [2 /*return*/];
|
|
9891
9906
|
// INFO: clear the in-flight flag so a failed page can be retried on the
|