blixify-ui-web 1.3.46 → 1.3.47
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 +8 -0
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataWrapper/index.d.ts +1 -0
- package/lib/components/data/dataWrapper/index.d.ts.map +1 -1
- package/lib/components/data/dataWrapper/index.js +5 -0
- package/lib/components/data/dataWrapper/index.js.map +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":"AAoCA,OAAO,KASN,MAAM,OAAO,CAAC;AA8Hf,OAAO,EAGL,iBAAiB,EAOlB,MAAM,kBAAkB,CAAC;AAmL1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,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":"AAoCA,OAAO,KASN,MAAM,OAAO,CAAC;AA8Hf,OAAO,EAGL,iBAAiB,EAOlB,MAAM,kBAAkB,CAAC;AAmL1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAeF,eAAO,MAAM,YAAY,mFAgilBvB,CAAC"}
|
|
@@ -1159,6 +1159,13 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1159
1159
|
recountTimersRef.current.push(timer);
|
|
1160
1160
|
};
|
|
1161
1161
|
(0, react_1.useEffect)(function () { return function () { return recountTimersRef.current.forEach(function (each) { return clearTimeout(each); }); }; }, []);
|
|
1162
|
+
// INFO: a comment written elsewhere (another member, another tab, the MCP)
|
|
1163
|
+
// asks again for just those rows; a row not loaded is skipped, since it is
|
|
1164
|
+
// counted when it loads
|
|
1165
|
+
var handleRecountComments = function (recordIds) {
|
|
1166
|
+
var loadedIds = new Set((tableData !== null && tableData !== void 0 ? tableData : []).map(function (eachRow) { var _a, _b; return String((_b = (_a = eachRow === null || eachRow === void 0 ? void 0 : eachRow.id) !== null && _a !== void 0 ? _a : eachRow === null || eachRow === void 0 ? void 0 : eachRow._id) !== null && _b !== void 0 ? _b : ""); }));
|
|
1167
|
+
handleFetchCommentCounts(Array.from(new Set(recordIds)).filter(function (eachId) { return !!eachId && loadedIds.has(eachId); }));
|
|
1168
|
+
};
|
|
1162
1169
|
var lastActivityIdRef = (0, react_1.useRef)("");
|
|
1163
1170
|
(0, react_1.useEffect)(function () {
|
|
1164
1171
|
if (activityModal) {
|
|
@@ -2042,6 +2049,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
2042
2049
|
handleRefreshRows: handleRefreshRows,
|
|
2043
2050
|
handleCatchUpRows: handleCatchUpRows,
|
|
2044
2051
|
handleRefreshLoadedRows: handleRefreshLoadedRows,
|
|
2052
|
+
handleRecountComments: handleRecountComments,
|
|
2045
2053
|
handleFormSubmit: handleFormSubmit,
|
|
2046
2054
|
handleFormCheck: handleFormCheck,
|
|
2047
2055
|
handleApplyFlexFilters: handleApplyFlexFilters,
|