@dxc-technology/halstack-react 15.0.1 → 15.1.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/dist/index.d.mts +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +223 -188
- package/dist/index.mjs +223 -188
- package/package.json +1 -2
package/dist/index.d.mts
CHANGED
|
@@ -1263,6 +1263,7 @@ type HierarchyGridRow = GridRow & {
|
|
|
1263
1263
|
type ExpandableGridRow = GridRow & {
|
|
1264
1264
|
expandedContent?: ReactNode;
|
|
1265
1265
|
expandedContentHeight?: number;
|
|
1266
|
+
contentIsExpanded?: boolean;
|
|
1266
1267
|
};
|
|
1267
1268
|
type ExpandableRows = {
|
|
1268
1269
|
rows: ExpandableGridRow[];
|
|
@@ -1339,6 +1340,10 @@ type PaginatedProps$1 = {
|
|
|
1339
1340
|
* Function called whenever the current page is changed.
|
|
1340
1341
|
*/
|
|
1341
1342
|
onPageChange?: (_page: number) => void;
|
|
1343
|
+
/**
|
|
1344
|
+
* Default page in which the datagrid is rendered
|
|
1345
|
+
*/
|
|
1346
|
+
defaultPage?: number;
|
|
1342
1347
|
};
|
|
1343
1348
|
type NonPaginatedProps$1 = {
|
|
1344
1349
|
/**
|
|
@@ -1370,6 +1375,10 @@ type NonPaginatedProps$1 = {
|
|
|
1370
1375
|
* Function called whenever the current page is changed.
|
|
1371
1376
|
*/
|
|
1372
1377
|
onPageChange?: never;
|
|
1378
|
+
/**
|
|
1379
|
+
* Default page in which the datagrid is rendered
|
|
1380
|
+
*/
|
|
1381
|
+
defaultPage?: never;
|
|
1373
1382
|
};
|
|
1374
1383
|
type CommonProps$6 = {
|
|
1375
1384
|
columns: GridColumn[];
|
|
@@ -1397,7 +1406,7 @@ type BasicGridProps = {
|
|
|
1397
1406
|
type Props$t = CommonProps$6 & (PaginatedProps$1 | NonPaginatedProps$1) & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
|
|
1398
1407
|
|
|
1399
1408
|
declare const DxcDataGrid: {
|
|
1400
|
-
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, }: Props$t): JSX.Element;
|
|
1409
|
+
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: Props$t): JSX.Element;
|
|
1401
1410
|
ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
|
|
1402
1411
|
};
|
|
1403
1412
|
|
|
@@ -3039,7 +3048,7 @@ type TabCommonProps = {
|
|
|
3039
3048
|
*/
|
|
3040
3049
|
notificationNumber?: boolean | number;
|
|
3041
3050
|
};
|
|
3042
|
-
type TabLabelProps =
|
|
3051
|
+
type TabLabelProps = {
|
|
3043
3052
|
/**
|
|
3044
3053
|
* Tab label.
|
|
3045
3054
|
*/
|
|
@@ -3049,7 +3058,7 @@ type TabLabelProps = TabCommonProps & {
|
|
|
3049
3058
|
*/
|
|
3050
3059
|
icon?: string | SVG;
|
|
3051
3060
|
};
|
|
3052
|
-
type TabIconProps =
|
|
3061
|
+
type TabIconProps = {
|
|
3053
3062
|
/**
|
|
3054
3063
|
* Tab label.
|
|
3055
3064
|
*/
|
|
@@ -3062,15 +3071,14 @@ type TabIconProps = TabCommonProps & {
|
|
|
3062
3071
|
type TabProps = {
|
|
3063
3072
|
defaultActive?: boolean;
|
|
3064
3073
|
active?: boolean;
|
|
3065
|
-
icon?: string | SVG;
|
|
3066
|
-
label: string;
|
|
3067
3074
|
title?: string;
|
|
3075
|
+
tabId?: string;
|
|
3068
3076
|
disabled?: boolean;
|
|
3069
3077
|
notificationNumber?: boolean | number;
|
|
3070
3078
|
children: ReactNode;
|
|
3071
3079
|
onClick?: () => void;
|
|
3072
3080
|
onHover?: () => void;
|
|
3073
|
-
};
|
|
3081
|
+
} & (TabLabelProps | TabIconProps);
|
|
3074
3082
|
type LegacyProps = {
|
|
3075
3083
|
/**
|
|
3076
3084
|
* Initially active tab, only when it is uncontrolled.
|
|
@@ -3084,7 +3092,7 @@ type LegacyProps = {
|
|
|
3084
3092
|
/**
|
|
3085
3093
|
* An array of objects representing the tabs.
|
|
3086
3094
|
*/
|
|
3087
|
-
tabs?: (TabLabelProps | TabIconProps)[];
|
|
3095
|
+
tabs?: (TabCommonProps & (TabLabelProps | TabIconProps))[];
|
|
3088
3096
|
/**
|
|
3089
3097
|
* Whether the icon should appear above or to the left of the label.
|
|
3090
3098
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1263,6 +1263,7 @@ type HierarchyGridRow = GridRow & {
|
|
|
1263
1263
|
type ExpandableGridRow = GridRow & {
|
|
1264
1264
|
expandedContent?: ReactNode;
|
|
1265
1265
|
expandedContentHeight?: number;
|
|
1266
|
+
contentIsExpanded?: boolean;
|
|
1266
1267
|
};
|
|
1267
1268
|
type ExpandableRows = {
|
|
1268
1269
|
rows: ExpandableGridRow[];
|
|
@@ -1339,6 +1340,10 @@ type PaginatedProps$1 = {
|
|
|
1339
1340
|
* Function called whenever the current page is changed.
|
|
1340
1341
|
*/
|
|
1341
1342
|
onPageChange?: (_page: number) => void;
|
|
1343
|
+
/**
|
|
1344
|
+
* Default page in which the datagrid is rendered
|
|
1345
|
+
*/
|
|
1346
|
+
defaultPage?: number;
|
|
1342
1347
|
};
|
|
1343
1348
|
type NonPaginatedProps$1 = {
|
|
1344
1349
|
/**
|
|
@@ -1370,6 +1375,10 @@ type NonPaginatedProps$1 = {
|
|
|
1370
1375
|
* Function called whenever the current page is changed.
|
|
1371
1376
|
*/
|
|
1372
1377
|
onPageChange?: never;
|
|
1378
|
+
/**
|
|
1379
|
+
* Default page in which the datagrid is rendered
|
|
1380
|
+
*/
|
|
1381
|
+
defaultPage?: never;
|
|
1373
1382
|
};
|
|
1374
1383
|
type CommonProps$6 = {
|
|
1375
1384
|
columns: GridColumn[];
|
|
@@ -1397,7 +1406,7 @@ type BasicGridProps = {
|
|
|
1397
1406
|
type Props$t = CommonProps$6 & (PaginatedProps$1 | NonPaginatedProps$1) & ((BasicGridProps & SelectableGridProps) | (ExpandableRows & SelectableGridProps) | (HierarchyRows & SelectableGridProps));
|
|
1398
1407
|
|
|
1399
1408
|
declare const DxcDataGrid: {
|
|
1400
|
-
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, }: Props$t): JSX.Element;
|
|
1409
|
+
({ columns, rows, selectable, expandable, onSelectRows, selectedRows, uniqueRowId, summaryRow, onGridRowsChange, showPaginator, showGoToPage, itemsPerPage, itemsPerPageOptions, itemsPerPageFunction, onSort, onPageChange, totalItems, defaultPage, }: Props$t): JSX.Element;
|
|
1401
1410
|
ActionsCell: ({ actions }: ActionCellsPropsType) => JSX.Element;
|
|
1402
1411
|
};
|
|
1403
1412
|
|
|
@@ -3039,7 +3048,7 @@ type TabCommonProps = {
|
|
|
3039
3048
|
*/
|
|
3040
3049
|
notificationNumber?: boolean | number;
|
|
3041
3050
|
};
|
|
3042
|
-
type TabLabelProps =
|
|
3051
|
+
type TabLabelProps = {
|
|
3043
3052
|
/**
|
|
3044
3053
|
* Tab label.
|
|
3045
3054
|
*/
|
|
@@ -3049,7 +3058,7 @@ type TabLabelProps = TabCommonProps & {
|
|
|
3049
3058
|
*/
|
|
3050
3059
|
icon?: string | SVG;
|
|
3051
3060
|
};
|
|
3052
|
-
type TabIconProps =
|
|
3061
|
+
type TabIconProps = {
|
|
3053
3062
|
/**
|
|
3054
3063
|
* Tab label.
|
|
3055
3064
|
*/
|
|
@@ -3062,15 +3071,14 @@ type TabIconProps = TabCommonProps & {
|
|
|
3062
3071
|
type TabProps = {
|
|
3063
3072
|
defaultActive?: boolean;
|
|
3064
3073
|
active?: boolean;
|
|
3065
|
-
icon?: string | SVG;
|
|
3066
|
-
label: string;
|
|
3067
3074
|
title?: string;
|
|
3075
|
+
tabId?: string;
|
|
3068
3076
|
disabled?: boolean;
|
|
3069
3077
|
notificationNumber?: boolean | number;
|
|
3070
3078
|
children: ReactNode;
|
|
3071
3079
|
onClick?: () => void;
|
|
3072
3080
|
onHover?: () => void;
|
|
3073
|
-
};
|
|
3081
|
+
} & (TabLabelProps | TabIconProps);
|
|
3074
3082
|
type LegacyProps = {
|
|
3075
3083
|
/**
|
|
3076
3084
|
* Initially active tab, only when it is uncontrolled.
|
|
@@ -3084,7 +3092,7 @@ type LegacyProps = {
|
|
|
3084
3092
|
/**
|
|
3085
3093
|
* An array of objects representing the tabs.
|
|
3086
3094
|
*/
|
|
3087
|
-
tabs?: (TabLabelProps | TabIconProps)[];
|
|
3095
|
+
tabs?: (TabCommonProps & (TabLabelProps | TabIconProps))[];
|
|
3088
3096
|
/**
|
|
3089
3097
|
* Whether the icon should appear above or to the left of the label.
|
|
3090
3098
|
*/
|