@procore/data-table 14.13.0 → 14.15.0
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/CHANGELOG.md +24 -0
- package/dist/legacy/index.cjs +337 -118
- package/dist/legacy/index.d.cts +12 -0
- package/dist/legacy/index.d.ts +12 -0
- package/dist/legacy/index.js +338 -119
- package/dist/modern/index.cjs +322 -106
- package/dist/modern/index.d.cts +12 -0
- package/dist/modern/index.d.ts +12 -0
- package/dist/modern/index.js +323 -107
- package/package.json +3 -3
package/dist/legacy/index.d.cts
CHANGED
|
@@ -303,6 +303,7 @@ declare const GroupCellRenderer: React$1.FC<any>;
|
|
|
303
303
|
interface LinkCellRendererParams<TValue> {
|
|
304
304
|
typographyProps?: TypographyProps;
|
|
305
305
|
getURL: (value: TValue, data: any) => string;
|
|
306
|
+
isExternalLink?: boolean;
|
|
306
307
|
}
|
|
307
308
|
type LinkCellColumnDefinition<TValue = any> = GranularRequired<ColumnDefinition<TValue, typeof LinkCellRenderer, LinkCellRendererParams<TValue>>, 'cellRendererParams'>;
|
|
308
309
|
interface LinkCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, LinkCellColumnDefinition> {
|
|
@@ -385,6 +386,7 @@ declare const PercentCellEditor: React__default.ForwardRefExoticComponent<_ag_gr
|
|
|
385
386
|
interface PillCellRendererParams<TValue> {
|
|
386
387
|
getColor: (item: TValue) => PillColor;
|
|
387
388
|
typographyProps?: TypographyProps;
|
|
389
|
+
displayAsPill?: boolean;
|
|
388
390
|
}
|
|
389
391
|
type PillCellColumnDefinition<TValue = any, TFilterOption = any, TFilterValue = number | string> = GranularRequired<ColumnDefinition<TValue, typeof PillCellRenderer, PillCellRendererParams<TValue>, typeof PillSelectCellEditor, PillCellEditorParams<TValue>, TFilterOption, TFilterValue>, 'cellRendererParams'>;
|
|
390
392
|
interface PillCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, PillCellColumnDefinition<TValue>> {
|
|
@@ -403,6 +405,7 @@ declare const PillSelectCellEditor: React__default.ForwardRefExoticComponent<_ag
|
|
|
403
405
|
|
|
404
406
|
type SelectCellColumnDefinition<TValue = any, TFilterOption = any, TFilterValue = number | string> = GranularRequired<ColumnDefinition<TValue, typeof SelectCellRenderer, {
|
|
405
407
|
typographyProps?: TypographyProps;
|
|
408
|
+
getURL?: (value: TValue) => string | null;
|
|
406
409
|
}, typeof SelectCellEditor, SelectCellEditorParams<TValue>, TFilterOption, TFilterValue, 'select', SelectBulkEditorParams>, 'cellEditor' | 'cellEditorParams'>;
|
|
407
410
|
interface SelectCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, SelectCellColumnDefinition<TValue>> {
|
|
408
411
|
}
|
|
@@ -792,6 +795,10 @@ interface DataTableConfig {
|
|
|
792
795
|
} | undefined;
|
|
793
796
|
rowHeight?: RowSize;
|
|
794
797
|
serverFilters?: IServerFilter[];
|
|
798
|
+
groupRowState?: {
|
|
799
|
+
expandedRoutes: string[];
|
|
800
|
+
collapsedRoutes: string[];
|
|
801
|
+
};
|
|
795
802
|
}
|
|
796
803
|
interface HTMLStringExportConfig {
|
|
797
804
|
header?: React.FunctionComponent;
|
|
@@ -1308,6 +1315,7 @@ interface InternalTableContext {
|
|
|
1308
1315
|
onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
|
|
1309
1316
|
onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
|
|
1310
1317
|
updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
|
|
1318
|
+
localStoragePersistenceKey?: string;
|
|
1311
1319
|
onTableConfigChange: () => void;
|
|
1312
1320
|
rowHeight: RowSize;
|
|
1313
1321
|
rowSelectionRef?: React__default.MutableRefObject<RowSelectionRef>;
|
|
@@ -1317,6 +1325,10 @@ interface InternalTableContext {
|
|
|
1317
1325
|
setGridApi: (gridApi: GridApi) => void;
|
|
1318
1326
|
setRowHeight: (rowHeight: RowSize, createTrackEvent?: boolean, triggerTableConfigChange?: boolean) => void;
|
|
1319
1327
|
showExpandCollapseAllToggle: boolean;
|
|
1328
|
+
expandCollapseStateRef: React__default.MutableRefObject<{
|
|
1329
|
+
expandedRoutes: string[];
|
|
1330
|
+
collapsedRoutes: string[];
|
|
1331
|
+
}> | null;
|
|
1320
1332
|
tableRef: React__default.RefObject<TableApi> | null;
|
|
1321
1333
|
getColumnDefinition: (field: string) => ColumnDefinition | undefined;
|
|
1322
1334
|
totalRowCount: number;
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -303,6 +303,7 @@ declare const GroupCellRenderer: React$1.FC<any>;
|
|
|
303
303
|
interface LinkCellRendererParams<TValue> {
|
|
304
304
|
typographyProps?: TypographyProps;
|
|
305
305
|
getURL: (value: TValue, data: any) => string;
|
|
306
|
+
isExternalLink?: boolean;
|
|
306
307
|
}
|
|
307
308
|
type LinkCellColumnDefinition<TValue = any> = GranularRequired<ColumnDefinition<TValue, typeof LinkCellRenderer, LinkCellRendererParams<TValue>>, 'cellRendererParams'>;
|
|
308
309
|
interface LinkCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, LinkCellColumnDefinition> {
|
|
@@ -385,6 +386,7 @@ declare const PercentCellEditor: React__default.ForwardRefExoticComponent<_ag_gr
|
|
|
385
386
|
interface PillCellRendererParams<TValue> {
|
|
386
387
|
getColor: (item: TValue) => PillColor;
|
|
387
388
|
typographyProps?: TypographyProps;
|
|
389
|
+
displayAsPill?: boolean;
|
|
388
390
|
}
|
|
389
391
|
type PillCellColumnDefinition<TValue = any, TFilterOption = any, TFilterValue = number | string> = GranularRequired<ColumnDefinition<TValue, typeof PillCellRenderer, PillCellRendererParams<TValue>, typeof PillSelectCellEditor, PillCellEditorParams<TValue>, TFilterOption, TFilterValue>, 'cellRendererParams'>;
|
|
390
392
|
interface PillCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, PillCellColumnDefinition<TValue>> {
|
|
@@ -403,6 +405,7 @@ declare const PillSelectCellEditor: React__default.ForwardRefExoticComponent<_ag
|
|
|
403
405
|
|
|
404
406
|
type SelectCellColumnDefinition<TValue = any, TFilterOption = any, TFilterValue = number | string> = GranularRequired<ColumnDefinition<TValue, typeof SelectCellRenderer, {
|
|
405
407
|
typographyProps?: TypographyProps;
|
|
408
|
+
getURL?: (value: TValue) => string | null;
|
|
406
409
|
}, typeof SelectCellEditor, SelectCellEditorParams<TValue>, TFilterOption, TFilterValue, 'select', SelectBulkEditorParams>, 'cellEditor' | 'cellEditorParams'>;
|
|
407
410
|
interface SelectCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, SelectCellColumnDefinition<TValue>> {
|
|
408
411
|
}
|
|
@@ -792,6 +795,10 @@ interface DataTableConfig {
|
|
|
792
795
|
} | undefined;
|
|
793
796
|
rowHeight?: RowSize;
|
|
794
797
|
serverFilters?: IServerFilter[];
|
|
798
|
+
groupRowState?: {
|
|
799
|
+
expandedRoutes: string[];
|
|
800
|
+
collapsedRoutes: string[];
|
|
801
|
+
};
|
|
795
802
|
}
|
|
796
803
|
interface HTMLStringExportConfig {
|
|
797
804
|
header?: React.FunctionComponent;
|
|
@@ -1308,6 +1315,7 @@ interface InternalTableContext {
|
|
|
1308
1315
|
onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
|
|
1309
1316
|
onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
|
|
1310
1317
|
updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
|
|
1318
|
+
localStoragePersistenceKey?: string;
|
|
1311
1319
|
onTableConfigChange: () => void;
|
|
1312
1320
|
rowHeight: RowSize;
|
|
1313
1321
|
rowSelectionRef?: React__default.MutableRefObject<RowSelectionRef>;
|
|
@@ -1317,6 +1325,10 @@ interface InternalTableContext {
|
|
|
1317
1325
|
setGridApi: (gridApi: GridApi) => void;
|
|
1318
1326
|
setRowHeight: (rowHeight: RowSize, createTrackEvent?: boolean, triggerTableConfigChange?: boolean) => void;
|
|
1319
1327
|
showExpandCollapseAllToggle: boolean;
|
|
1328
|
+
expandCollapseStateRef: React__default.MutableRefObject<{
|
|
1329
|
+
expandedRoutes: string[];
|
|
1330
|
+
collapsedRoutes: string[];
|
|
1331
|
+
}> | null;
|
|
1320
1332
|
tableRef: React__default.RefObject<TableApi> | null;
|
|
1321
1333
|
getColumnDefinition: (field: string) => ColumnDefinition | undefined;
|
|
1322
1334
|
totalRowCount: number;
|