@centreon/ui 24.10.1 → 24.10.3
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 +1 -1
- package/src/Listing/index.tsx +30 -25
package/package.json
CHANGED
package/src/Listing/index.tsx
CHANGED
|
@@ -139,6 +139,7 @@ export interface Props<TRow> {
|
|
|
139
139
|
totalRows?: number;
|
|
140
140
|
viewerModeConfiguration?: ViewerModeConfiguration;
|
|
141
141
|
widthToMoveTablePagination?: number;
|
|
142
|
+
isActionBarVisible: boolean;
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
const defaultColumnConfiguration = {
|
|
@@ -191,7 +192,8 @@ const Listing = <TRow extends { id: RowId; internalListingParentId?: RowId }>({
|
|
|
191
192
|
getRowProperty: () => '',
|
|
192
193
|
labelCollapse: 'Collapse',
|
|
193
194
|
labelExpand: 'Expand'
|
|
194
|
-
}
|
|
195
|
+
},
|
|
196
|
+
isActionBarVisible = true
|
|
195
197
|
}: Props<TRow>): JSX.Element => {
|
|
196
198
|
const currentVisibleColumns = getVisibleColumns({
|
|
197
199
|
columnConfiguration,
|
|
@@ -517,30 +519,33 @@ const Listing = <TRow extends { id: RowId; internalListingParentId?: RowId }>({
|
|
|
517
519
|
className={classes.container}
|
|
518
520
|
ref={containerRef as RefObject<HTMLDivElement>}
|
|
519
521
|
>
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
522
|
+
{
|
|
523
|
+
isActionBarVisible &&
|
|
524
|
+
<div
|
|
525
|
+
className={classes.actionBar}
|
|
526
|
+
ref={actionBarRef as RefObject<HTMLDivElement>}
|
|
527
|
+
>
|
|
528
|
+
<ListingActionBar
|
|
529
|
+
actions={actions}
|
|
530
|
+
actionsBarMemoProps={actionsBarMemoProps}
|
|
531
|
+
columnConfiguration={columnConfiguration}
|
|
532
|
+
columns={columns}
|
|
533
|
+
currentPage={currentPage}
|
|
534
|
+
customPaginationClassName={customPaginationClassName}
|
|
535
|
+
limit={limit}
|
|
536
|
+
listingVariant={listingVariant}
|
|
537
|
+
moveTablePagination={moveTablePagination}
|
|
538
|
+
paginated={paginated}
|
|
539
|
+
totalRows={totalRows}
|
|
540
|
+
viewerModeConfiguration={viewerModeConfiguration}
|
|
541
|
+
widthToMoveTablePagination={widthToMoveTablePagination}
|
|
542
|
+
onLimitChange={changeLimit}
|
|
543
|
+
onPaginate={onPaginate}
|
|
544
|
+
onResetColumns={onResetColumns}
|
|
545
|
+
onSelectColumns={onSelectColumns}
|
|
546
|
+
/>
|
|
547
|
+
</div>
|
|
548
|
+
}
|
|
544
549
|
|
|
545
550
|
<ParentSize
|
|
546
551
|
parentSizeStyles={{
|