@visns-studio/visns-components 6.20.0 → 6.20.1
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
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
94
94
|
},
|
|
95
95
|
"name": "@visns-studio/visns-components",
|
|
96
|
-
"version": "6.20.
|
|
96
|
+
"version": "6.20.1",
|
|
97
97
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
98
98
|
"main": "src/index.js",
|
|
99
99
|
"files": [
|
|
@@ -301,6 +301,12 @@ function GenericIndex({
|
|
|
301
301
|
themeType,
|
|
302
302
|
userProfile,
|
|
303
303
|
showTitle = true,
|
|
304
|
+
/* Whether the embedded "N total" count (and tableInfo headings) render
|
|
305
|
+
when showTitle is off. Defaults on — normally it is the only place
|
|
306
|
+
the row count prints above the fold. A host that embeds the grid
|
|
307
|
+
under its own summary strip is already printing that figure and
|
|
308
|
+
turns this off rather than saying the same number twice. */
|
|
309
|
+
showTotal = true,
|
|
304
310
|
tabLayout = 'rail',
|
|
305
311
|
}) {
|
|
306
312
|
const gridRef = useRef(null);
|
|
@@ -813,7 +819,9 @@ function GenericIndex({
|
|
|
813
819
|
// An empty box is worth printing inside the title bar (it holds the bar's
|
|
814
820
|
// right-hand column open) and not worth printing anywhere else.
|
|
815
821
|
const embeddedInfo =
|
|
816
|
-
!showTitle && (total > 0 || hasHeadings)
|
|
822
|
+
!showTitle && showTotal && (total > 0 || hasHeadings)
|
|
823
|
+
? titleInfo
|
|
824
|
+
: null;
|
|
817
825
|
|
|
818
826
|
// Lay the filter menu out as a horizontal strip rather than a rail. The
|
|
819
827
|
// conditions are written out in `shouldUnderlineTabs`, which is where they
|