@procore/data-table 14.7.0 → 14.8.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 +6 -0
- package/dist/legacy/index.cjs +4 -7
- package/dist/legacy/index.d.cts +1 -0
- package/dist/legacy/index.d.ts +1 -0
- package/dist/legacy/index.js +4 -7
- package/dist/modern/index.cjs +4 -7
- package/dist/modern/index.d.cts +1 -0
- package/dist/modern/index.d.ts +1 -0
- package/dist/modern/index.js +4 -7
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
package/dist/legacy/index.cjs
CHANGED
|
@@ -82700,6 +82700,7 @@ var Table = (props) => {
|
|
|
82700
82700
|
onSortChanged: onSortEventChanged,
|
|
82701
82701
|
onFilterChanged,
|
|
82702
82702
|
onFirstDataRendered: props.onFirstDataRendered,
|
|
82703
|
+
paginateChildRows: props.paginateChildRows,
|
|
82703
82704
|
pagination: props.pagination,
|
|
82704
82705
|
paginationPageSize: props.paginationPageSize || defaultPaginationPageSize,
|
|
82705
82706
|
popupParent: props.popupParent,
|
|
@@ -82732,18 +82733,14 @@ var Table = (props) => {
|
|
|
82732
82733
|
TablePagination,
|
|
82733
82734
|
{
|
|
82734
82735
|
gridApi,
|
|
82735
|
-
|
|
82736
|
-
pageSize: props.paginationPageSize,
|
|
82737
|
-
totalRowCount: internalTableContext.totalRowCount
|
|
82736
|
+
pageSize: props.paginationPageSize
|
|
82738
82737
|
}
|
|
82739
82738
|
)
|
|
82740
82739
|
);
|
|
82741
82740
|
};
|
|
82742
82741
|
var TablePagination = ({
|
|
82743
82742
|
gridApi,
|
|
82744
|
-
|
|
82745
|
-
pageSize,
|
|
82746
|
-
totalRowCount
|
|
82743
|
+
pageSize
|
|
82747
82744
|
}) => {
|
|
82748
82745
|
const [pagination, setPagination] = React83__default.default.useState({
|
|
82749
82746
|
page: 0,
|
|
@@ -82772,7 +82769,7 @@ var TablePagination = ({
|
|
|
82772
82769
|
{
|
|
82773
82770
|
activePage: pagination.page + 1,
|
|
82774
82771
|
"data-qa": "data-table-pagination",
|
|
82775
|
-
items:
|
|
82772
|
+
items: pagination.items,
|
|
82776
82773
|
onSelectPage: (_page) => {
|
|
82777
82774
|
gridApi == null ? void 0 : gridApi.paginationGoToPage(_page - 1);
|
|
82778
82775
|
},
|
package/dist/legacy/index.d.cts
CHANGED
|
@@ -955,6 +955,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
955
955
|
onTableReady?: (tableApi: TableApi, tableApiRef: React.RefObject<TableApi>) => void;
|
|
956
956
|
onColumnEverythingChanged?: (changeEvent: ColumnEverythingChangedEvent) => void;
|
|
957
957
|
onFirstDataRendered?: (event: FirstDataRenderedEvent) => void;
|
|
958
|
+
paginateChildRows?: boolean;
|
|
958
959
|
pagination?: boolean;
|
|
959
960
|
paginationPageSize?: number;
|
|
960
961
|
pinnedBottomRowData?: TBottomRow[];
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -955,6 +955,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
955
955
|
onTableReady?: (tableApi: TableApi, tableApiRef: React.RefObject<TableApi>) => void;
|
|
956
956
|
onColumnEverythingChanged?: (changeEvent: ColumnEverythingChangedEvent) => void;
|
|
957
957
|
onFirstDataRendered?: (event: FirstDataRenderedEvent) => void;
|
|
958
|
+
paginateChildRows?: boolean;
|
|
958
959
|
pagination?: boolean;
|
|
959
960
|
paginationPageSize?: number;
|
|
960
961
|
pinnedBottomRowData?: TBottomRow[];
|
package/dist/legacy/index.js
CHANGED
|
@@ -82686,6 +82686,7 @@ var Table = (props) => {
|
|
|
82686
82686
|
onSortChanged: onSortEventChanged,
|
|
82687
82687
|
onFilterChanged,
|
|
82688
82688
|
onFirstDataRendered: props.onFirstDataRendered,
|
|
82689
|
+
paginateChildRows: props.paginateChildRows,
|
|
82689
82690
|
pagination: props.pagination,
|
|
82690
82691
|
paginationPageSize: props.paginationPageSize || defaultPaginationPageSize,
|
|
82691
82692
|
popupParent: props.popupParent,
|
|
@@ -82718,18 +82719,14 @@ var Table = (props) => {
|
|
|
82718
82719
|
TablePagination,
|
|
82719
82720
|
{
|
|
82720
82721
|
gridApi,
|
|
82721
|
-
|
|
82722
|
-
pageSize: props.paginationPageSize,
|
|
82723
|
-
totalRowCount: internalTableContext.totalRowCount
|
|
82722
|
+
pageSize: props.paginationPageSize
|
|
82724
82723
|
}
|
|
82725
82724
|
)
|
|
82726
82725
|
);
|
|
82727
82726
|
};
|
|
82728
82727
|
var TablePagination = ({
|
|
82729
82728
|
gridApi,
|
|
82730
|
-
|
|
82731
|
-
pageSize,
|
|
82732
|
-
totalRowCount
|
|
82729
|
+
pageSize
|
|
82733
82730
|
}) => {
|
|
82734
82731
|
const [pagination, setPagination] = React83.useState({
|
|
82735
82732
|
page: 0,
|
|
@@ -82758,7 +82755,7 @@ var TablePagination = ({
|
|
|
82758
82755
|
{
|
|
82759
82756
|
activePage: pagination.page + 1,
|
|
82760
82757
|
"data-qa": "data-table-pagination",
|
|
82761
|
-
items:
|
|
82758
|
+
items: pagination.items,
|
|
82762
82759
|
onSelectPage: (_page) => {
|
|
82763
82760
|
gridApi == null ? void 0 : gridApi.paginationGoToPage(_page - 1);
|
|
82764
82761
|
},
|
package/dist/modern/index.cjs
CHANGED
|
@@ -82492,6 +82492,7 @@ var Table = (props) => {
|
|
|
82492
82492
|
onSortChanged: onSortEventChanged,
|
|
82493
82493
|
onFilterChanged,
|
|
82494
82494
|
onFirstDataRendered: props.onFirstDataRendered,
|
|
82495
|
+
paginateChildRows: props.paginateChildRows,
|
|
82495
82496
|
pagination: props.pagination,
|
|
82496
82497
|
paginationPageSize: props.paginationPageSize || defaultPaginationPageSize,
|
|
82497
82498
|
popupParent: props.popupParent,
|
|
@@ -82524,18 +82525,14 @@ var Table = (props) => {
|
|
|
82524
82525
|
TablePagination,
|
|
82525
82526
|
{
|
|
82526
82527
|
gridApi,
|
|
82527
|
-
|
|
82528
|
-
pageSize: props.paginationPageSize,
|
|
82529
|
-
totalRowCount: internalTableContext.totalRowCount
|
|
82528
|
+
pageSize: props.paginationPageSize
|
|
82530
82529
|
}
|
|
82531
82530
|
)
|
|
82532
82531
|
);
|
|
82533
82532
|
};
|
|
82534
82533
|
var TablePagination = ({
|
|
82535
82534
|
gridApi,
|
|
82536
|
-
|
|
82537
|
-
pageSize,
|
|
82538
|
-
totalRowCount
|
|
82535
|
+
pageSize
|
|
82539
82536
|
}) => {
|
|
82540
82537
|
const [pagination, setPagination] = React83__default.default.useState({
|
|
82541
82538
|
page: 0,
|
|
@@ -82564,7 +82561,7 @@ var TablePagination = ({
|
|
|
82564
82561
|
{
|
|
82565
82562
|
activePage: pagination.page + 1,
|
|
82566
82563
|
"data-qa": "data-table-pagination",
|
|
82567
|
-
items:
|
|
82564
|
+
items: pagination.items,
|
|
82568
82565
|
onSelectPage: (_page) => {
|
|
82569
82566
|
gridApi?.paginationGoToPage(_page - 1);
|
|
82570
82567
|
},
|
package/dist/modern/index.d.cts
CHANGED
|
@@ -955,6 +955,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
955
955
|
onTableReady?: (tableApi: TableApi, tableApiRef: React.RefObject<TableApi>) => void;
|
|
956
956
|
onColumnEverythingChanged?: (changeEvent: ColumnEverythingChangedEvent) => void;
|
|
957
957
|
onFirstDataRendered?: (event: FirstDataRenderedEvent) => void;
|
|
958
|
+
paginateChildRows?: boolean;
|
|
958
959
|
pagination?: boolean;
|
|
959
960
|
paginationPageSize?: number;
|
|
960
961
|
pinnedBottomRowData?: TBottomRow[];
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -955,6 +955,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
955
955
|
onTableReady?: (tableApi: TableApi, tableApiRef: React.RefObject<TableApi>) => void;
|
|
956
956
|
onColumnEverythingChanged?: (changeEvent: ColumnEverythingChangedEvent) => void;
|
|
957
957
|
onFirstDataRendered?: (event: FirstDataRenderedEvent) => void;
|
|
958
|
+
paginateChildRows?: boolean;
|
|
958
959
|
pagination?: boolean;
|
|
959
960
|
paginationPageSize?: number;
|
|
960
961
|
pinnedBottomRowData?: TBottomRow[];
|
package/dist/modern/index.js
CHANGED
|
@@ -82478,6 +82478,7 @@ var Table = (props) => {
|
|
|
82478
82478
|
onSortChanged: onSortEventChanged,
|
|
82479
82479
|
onFilterChanged,
|
|
82480
82480
|
onFirstDataRendered: props.onFirstDataRendered,
|
|
82481
|
+
paginateChildRows: props.paginateChildRows,
|
|
82481
82482
|
pagination: props.pagination,
|
|
82482
82483
|
paginationPageSize: props.paginationPageSize || defaultPaginationPageSize,
|
|
82483
82484
|
popupParent: props.popupParent,
|
|
@@ -82510,18 +82511,14 @@ var Table = (props) => {
|
|
|
82510
82511
|
TablePagination,
|
|
82511
82512
|
{
|
|
82512
82513
|
gridApi,
|
|
82513
|
-
|
|
82514
|
-
pageSize: props.paginationPageSize,
|
|
82515
|
-
totalRowCount: internalTableContext.totalRowCount
|
|
82514
|
+
pageSize: props.paginationPageSize
|
|
82516
82515
|
}
|
|
82517
82516
|
)
|
|
82518
82517
|
);
|
|
82519
82518
|
};
|
|
82520
82519
|
var TablePagination = ({
|
|
82521
82520
|
gridApi,
|
|
82522
|
-
|
|
82523
|
-
pageSize,
|
|
82524
|
-
totalRowCount
|
|
82521
|
+
pageSize
|
|
82525
82522
|
}) => {
|
|
82526
82523
|
const [pagination, setPagination] = React83.useState({
|
|
82527
82524
|
page: 0,
|
|
@@ -82550,7 +82547,7 @@ var TablePagination = ({
|
|
|
82550
82547
|
{
|
|
82551
82548
|
activePage: pagination.page + 1,
|
|
82552
82549
|
"data-qa": "data-table-pagination",
|
|
82553
|
-
items:
|
|
82550
|
+
items: pagination.items,
|
|
82554
82551
|
onSelectPage: (_page) => {
|
|
82555
82552
|
gridApi?.paginationGoToPage(_page - 1);
|
|
82556
82553
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.8.0",
|
|
4
4
|
"description": "Complex data grid built on top of ag-grid, with DST components and styles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/legacy/index.cjs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "NODE_ENV=production tsup",
|
|
30
|
-
"chromatic": "
|
|
30
|
+
"chromatic": "dotenvx run -- chromatic",
|
|
31
31
|
"chromatic:ci": "chromatic --ci --storybook-build-dir ./storybook-static --project-token=${CHROMATIC_DATA_TABLE_TOKEN} --exit-once-uploaded --only-changed --skip=\"dependabot*\"",
|
|
32
32
|
"clean": "rimraf dist",
|
|
33
33
|
"cypress:dev:open": "start-server-and-test storybook-static:server http://127.0.0.1:6006 cypress:open",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
],
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|
|
61
|
-
"url": "https://github.com
|
|
61
|
+
"url": "https://github.com/procore/core/",
|
|
62
62
|
"directory": "packages/data-table"
|
|
63
63
|
},
|
|
64
64
|
"author": "Procore Technologies",
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"@ag-grid-enterprise/server-side-row-model": "30.1.0",
|
|
105
105
|
"@ag-grid-enterprise/set-filter": "30.1.0",
|
|
106
106
|
"@babel/eslint-parser": "7.21.3",
|
|
107
|
+
"@dotenvx/dotenvx": "1.6.4",
|
|
107
108
|
"@ngneat/falso": "6.4.0",
|
|
108
109
|
"@procore/core-css": "10.17.0",
|
|
109
110
|
"@procore/core-icons": "12.0.0",
|