inboxlookup_screen 1.2.2 → 1.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inboxlookup_screen",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "A React component using DevExtreme",
5
5
  "main": "dist/index.js",
6
6
  "homepage": "./",
@@ -30,7 +30,7 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
30
30
  const [autoExpandAll, setAutoExpandAll] = useState(true);
31
31
  const metaRef = useRef(null);
32
32
  const [pendingSheet, setPendingSheet] = useState(null);
33
-
33
+ const [totalCount, setTotalCount] = useState(0);
34
34
  useEffect(() => {
35
35
  if (!ProjectId) return;
36
36
 
@@ -176,8 +176,8 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
176
176
  body: JSON.stringify(loadOptions)
177
177
  }
178
178
  );
179
-
180
179
  const result = await response.json();
180
+ setTotalCount(result.totalCount ?? 0);
181
181
  if (requestId !== requestVersionRef.current) {
182
182
  return { data: [], totalCount: 0 };
183
183
  }
@@ -572,15 +572,17 @@ const OrdersMasterDetail = ({ dataSource, keyExpr, token, BaseUrl, ProjectId, Fl
572
572
 
573
573
  <Scrolling mode="virtual" useNative={false} />
574
574
  <Summary>
575
- <TotalItem column="sheetId" summaryType="count" displayFormat="Total: {0}" />
576
- <GroupItem column="sheetId" summaryType="count" displayFormat="Count: {0}" />
575
+ <TotalItem
576
+ summaryType="count"
577
+ displayFormat="Total Rows: {0}"
578
+ />
577
579
  </Summary>
578
- <TotalItem
579
- summaryType="count"
580
- displayFormat="Total Rows: {0}"
581
- />
580
+
582
581
 
583
582
  </DataGrid>
583
+ <div style={{ marginTop: "10px", fontWeight: "500" }}>
584
+ Total Rows: {totalCount}
585
+ </div>
584
586
  {/* </div> */}
585
587
 
586
588
  {selectedRow && (