@ceed/ads 1.32.1-next.1 → 1.32.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.browser.js +1 -1
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +23 -38
- package/dist/index.js +23 -38
- package/framer/index.js +1 -1
- package/package.json +2 -3
package/dist/index.cjs
CHANGED
|
@@ -3793,9 +3793,8 @@ var StyledTableRow2 = (0, import_joy32.styled)("tr", {
|
|
|
3793
3793
|
var VirtualizedTableRow = (0, import_react24.memo)(StyledTableRow2, (prevProps, nextProps) => {
|
|
3794
3794
|
return prevProps.striped === nextProps.striped && prevProps.style?.height === nextProps.style?.height && prevProps.style?.transform === nextProps.style?.transform && // @ts-ignore
|
|
3795
3795
|
prevProps["data-row-id"] === nextProps["data-row-id"] && // @ts-ignore
|
|
3796
|
-
prevProps["data-index"] === nextProps["data-index"] && prevProps.tabIndex === nextProps.tabIndex && prevProps["aria-checked"] === nextProps["aria-checked"] && //
|
|
3797
|
-
|
|
3798
|
-
prevProps["data-columns-key"] === nextProps["data-columns-key"];
|
|
3796
|
+
prevProps["data-index"] === nextProps["data-index"] && prevProps.tabIndex === nextProps.tabIndex && prevProps["aria-checked"] === nextProps["aria-checked"] && // Include children check to handle isCellEditable changes
|
|
3797
|
+
prevProps.children === nextProps.children;
|
|
3799
3798
|
});
|
|
3800
3799
|
|
|
3801
3800
|
// src/components/DataTable/hooks.ts
|
|
@@ -4502,15 +4501,6 @@ Pagination.displayName = "Pagination";
|
|
|
4502
4501
|
var Pagination_default = Pagination;
|
|
4503
4502
|
|
|
4504
4503
|
// src/components/DataTable/DataTable.tsx
|
|
4505
|
-
var _columnsVersionCache = /* @__PURE__ */ new WeakMap();
|
|
4506
|
-
var _columnsVersionCounter = 0;
|
|
4507
|
-
function getColumnsVersion(columns) {
|
|
4508
|
-
if (!_columnsVersionCache.has(columns)) {
|
|
4509
|
-
_columnsVersionCache.set(columns, ++_columnsVersionCounter);
|
|
4510
|
-
}
|
|
4511
|
-
return _columnsVersionCache.get(columns);
|
|
4512
|
-
}
|
|
4513
|
-
var EMPTY_CHECKBOX_PROPS = {};
|
|
4514
4504
|
function Component(props, apiRef) {
|
|
4515
4505
|
const {
|
|
4516
4506
|
rows,
|
|
@@ -4558,7 +4548,7 @@ function Component(props, apiRef) {
|
|
|
4558
4548
|
noRowsOverlay: NoRowsOverlay = DefaultNoRowsOverlay
|
|
4559
4549
|
} = {},
|
|
4560
4550
|
slotProps: {
|
|
4561
|
-
checkbox: checkboxProps =
|
|
4551
|
+
checkbox: checkboxProps = {},
|
|
4562
4552
|
toolbar: toolbarProps,
|
|
4563
4553
|
background: backgroundProps = {},
|
|
4564
4554
|
noRowsOverlay: noRowsOverlayProps = {}
|
|
@@ -4606,28 +4596,6 @@ function Component(props, apiRef) {
|
|
|
4606
4596
|
overscan: 10
|
|
4607
4597
|
});
|
|
4608
4598
|
const paginationModel = (0, import_react28.useMemo)(() => ({ page, pageSize }), [page, pageSize]);
|
|
4609
|
-
const columnsKey = getColumnsVersion(columns);
|
|
4610
|
-
const headerCheckboxElement = (0, import_react28.useMemo)(
|
|
4611
|
-
() => /* @__PURE__ */ import_react28.default.createElement(
|
|
4612
|
-
RenderCheckbox,
|
|
4613
|
-
{
|
|
4614
|
-
onChange: onAllCheckboxChange,
|
|
4615
|
-
checked: isAllSelected,
|
|
4616
|
-
indeterminate: (selectionModel || []).length > 0 && !isAllSelected,
|
|
4617
|
-
disabled: dataInPage.length > 0 && !selectableRowCount,
|
|
4618
|
-
...checkboxProps
|
|
4619
|
-
}
|
|
4620
|
-
),
|
|
4621
|
-
[
|
|
4622
|
-
RenderCheckbox,
|
|
4623
|
-
onAllCheckboxChange,
|
|
4624
|
-
isAllSelected,
|
|
4625
|
-
selectionModel,
|
|
4626
|
-
selectableRowCount,
|
|
4627
|
-
dataInPage.length,
|
|
4628
|
-
checkboxProps
|
|
4629
|
-
]
|
|
4630
|
-
);
|
|
4631
4599
|
const totalSize = virtualizer.getTotalSize();
|
|
4632
4600
|
const virtualizedItems = virtualizer.getVirtualItems();
|
|
4633
4601
|
const showNoRowsOverlay = !loading && rowCount === 0;
|
|
@@ -4832,7 +4800,16 @@ function Component(props, apiRef) {
|
|
|
4832
4800
|
verticalAlign: "middle"
|
|
4833
4801
|
}
|
|
4834
4802
|
},
|
|
4835
|
-
|
|
4803
|
+
/* @__PURE__ */ import_react28.default.createElement(
|
|
4804
|
+
RenderCheckbox,
|
|
4805
|
+
{
|
|
4806
|
+
onChange: onAllCheckboxChange,
|
|
4807
|
+
checked: isAllSelected,
|
|
4808
|
+
indeterminate: (selectionModel || []).length > 0 && !isAllSelected,
|
|
4809
|
+
disabled: dataInPage.length > 0 && !selectableRowCount,
|
|
4810
|
+
...checkboxProps
|
|
4811
|
+
}
|
|
4812
|
+
)
|
|
4836
4813
|
), level > 0 && Array.from({ length: levelGroups[0]?.startIndex || 0 }).map((_2, i) => /* @__PURE__ */ import_react28.default.createElement("th", { key: `empty-${level}-${i}` })), levelGroups.filter((g) => g.colspan > 0).map((group, groupIndex) => {
|
|
4837
4814
|
const nextGroup = levelGroups[groupIndex + 1];
|
|
4838
4815
|
const emptyCells = nextGroup ? nextGroup.startIndex - (group.startIndex + group.colspan) : columns.length - (group.startIndex + group.colspan);
|
|
@@ -4859,7 +4836,16 @@ function Component(props, apiRef) {
|
|
|
4859
4836
|
textAlign: "center"
|
|
4860
4837
|
}
|
|
4861
4838
|
},
|
|
4862
|
-
|
|
4839
|
+
/* @__PURE__ */ import_react28.default.createElement(
|
|
4840
|
+
RenderCheckbox,
|
|
4841
|
+
{
|
|
4842
|
+
onChange: onAllCheckboxChange,
|
|
4843
|
+
checked: isAllSelected,
|
|
4844
|
+
indeterminate: (selectionModel || []).length > 0 && !isAllSelected,
|
|
4845
|
+
disabled: dataInPage.length > 0 && !selectableRowCount,
|
|
4846
|
+
...checkboxProps
|
|
4847
|
+
}
|
|
4848
|
+
)
|
|
4863
4849
|
), columns.map((c, i) => (
|
|
4864
4850
|
// @ts-ignore
|
|
4865
4851
|
/* @__PURE__ */ import_react28.default.createElement(
|
|
@@ -4930,7 +4916,6 @@ function Component(props, apiRef) {
|
|
|
4930
4916
|
key: virtualizedRow.key,
|
|
4931
4917
|
"data-row-id": rowId,
|
|
4932
4918
|
"data-index": rowIndex,
|
|
4933
|
-
"data-columns-key": columnsKey,
|
|
4934
4919
|
"aria-rowindex": rowIndex + 1,
|
|
4935
4920
|
role: checkboxSelection && !disableSelectionOnClick ? "checkbox" : void 0,
|
|
4936
4921
|
tabIndex: focusedRowId === rowId ? 0 : -1,
|
package/dist/index.js
CHANGED
|
@@ -3668,9 +3668,8 @@ var StyledTableRow2 = styled12("tr", {
|
|
|
3668
3668
|
var VirtualizedTableRow = memo(StyledTableRow2, (prevProps, nextProps) => {
|
|
3669
3669
|
return prevProps.striped === nextProps.striped && prevProps.style?.height === nextProps.style?.height && prevProps.style?.transform === nextProps.style?.transform && // @ts-ignore
|
|
3670
3670
|
prevProps["data-row-id"] === nextProps["data-row-id"] && // @ts-ignore
|
|
3671
|
-
prevProps["data-index"] === nextProps["data-index"] && prevProps.tabIndex === nextProps.tabIndex && prevProps["aria-checked"] === nextProps["aria-checked"] && //
|
|
3672
|
-
|
|
3673
|
-
prevProps["data-columns-key"] === nextProps["data-columns-key"];
|
|
3671
|
+
prevProps["data-index"] === nextProps["data-index"] && prevProps.tabIndex === nextProps.tabIndex && prevProps["aria-checked"] === nextProps["aria-checked"] && // Include children check to handle isCellEditable changes
|
|
3672
|
+
prevProps.children === nextProps.children;
|
|
3674
3673
|
});
|
|
3675
3674
|
|
|
3676
3675
|
// src/components/DataTable/hooks.ts
|
|
@@ -4377,15 +4376,6 @@ Pagination.displayName = "Pagination";
|
|
|
4377
4376
|
var Pagination_default = Pagination;
|
|
4378
4377
|
|
|
4379
4378
|
// src/components/DataTable/DataTable.tsx
|
|
4380
|
-
var _columnsVersionCache = /* @__PURE__ */ new WeakMap();
|
|
4381
|
-
var _columnsVersionCounter = 0;
|
|
4382
|
-
function getColumnsVersion(columns) {
|
|
4383
|
-
if (!_columnsVersionCache.has(columns)) {
|
|
4384
|
-
_columnsVersionCache.set(columns, ++_columnsVersionCounter);
|
|
4385
|
-
}
|
|
4386
|
-
return _columnsVersionCache.get(columns);
|
|
4387
|
-
}
|
|
4388
|
-
var EMPTY_CHECKBOX_PROPS = {};
|
|
4389
4379
|
function Component(props, apiRef) {
|
|
4390
4380
|
const {
|
|
4391
4381
|
rows,
|
|
@@ -4433,7 +4423,7 @@ function Component(props, apiRef) {
|
|
|
4433
4423
|
noRowsOverlay: NoRowsOverlay = DefaultNoRowsOverlay
|
|
4434
4424
|
} = {},
|
|
4435
4425
|
slotProps: {
|
|
4436
|
-
checkbox: checkboxProps =
|
|
4426
|
+
checkbox: checkboxProps = {},
|
|
4437
4427
|
toolbar: toolbarProps,
|
|
4438
4428
|
background: backgroundProps = {},
|
|
4439
4429
|
noRowsOverlay: noRowsOverlayProps = {}
|
|
@@ -4481,28 +4471,6 @@ function Component(props, apiRef) {
|
|
|
4481
4471
|
overscan: 10
|
|
4482
4472
|
});
|
|
4483
4473
|
const paginationModel = useMemo10(() => ({ page, pageSize }), [page, pageSize]);
|
|
4484
|
-
const columnsKey = getColumnsVersion(columns);
|
|
4485
|
-
const headerCheckboxElement = useMemo10(
|
|
4486
|
-
() => /* @__PURE__ */ React25.createElement(
|
|
4487
|
-
RenderCheckbox,
|
|
4488
|
-
{
|
|
4489
|
-
onChange: onAllCheckboxChange,
|
|
4490
|
-
checked: isAllSelected,
|
|
4491
|
-
indeterminate: (selectionModel || []).length > 0 && !isAllSelected,
|
|
4492
|
-
disabled: dataInPage.length > 0 && !selectableRowCount,
|
|
4493
|
-
...checkboxProps
|
|
4494
|
-
}
|
|
4495
|
-
),
|
|
4496
|
-
[
|
|
4497
|
-
RenderCheckbox,
|
|
4498
|
-
onAllCheckboxChange,
|
|
4499
|
-
isAllSelected,
|
|
4500
|
-
selectionModel,
|
|
4501
|
-
selectableRowCount,
|
|
4502
|
-
dataInPage.length,
|
|
4503
|
-
checkboxProps
|
|
4504
|
-
]
|
|
4505
|
-
);
|
|
4506
4474
|
const totalSize = virtualizer.getTotalSize();
|
|
4507
4475
|
const virtualizedItems = virtualizer.getVirtualItems();
|
|
4508
4476
|
const showNoRowsOverlay = !loading && rowCount === 0;
|
|
@@ -4707,7 +4675,16 @@ function Component(props, apiRef) {
|
|
|
4707
4675
|
verticalAlign: "middle"
|
|
4708
4676
|
}
|
|
4709
4677
|
},
|
|
4710
|
-
|
|
4678
|
+
/* @__PURE__ */ React25.createElement(
|
|
4679
|
+
RenderCheckbox,
|
|
4680
|
+
{
|
|
4681
|
+
onChange: onAllCheckboxChange,
|
|
4682
|
+
checked: isAllSelected,
|
|
4683
|
+
indeterminate: (selectionModel || []).length > 0 && !isAllSelected,
|
|
4684
|
+
disabled: dataInPage.length > 0 && !selectableRowCount,
|
|
4685
|
+
...checkboxProps
|
|
4686
|
+
}
|
|
4687
|
+
)
|
|
4711
4688
|
), level > 0 && Array.from({ length: levelGroups[0]?.startIndex || 0 }).map((_2, i) => /* @__PURE__ */ React25.createElement("th", { key: `empty-${level}-${i}` })), levelGroups.filter((g) => g.colspan > 0).map((group, groupIndex) => {
|
|
4712
4689
|
const nextGroup = levelGroups[groupIndex + 1];
|
|
4713
4690
|
const emptyCells = nextGroup ? nextGroup.startIndex - (group.startIndex + group.colspan) : columns.length - (group.startIndex + group.colspan);
|
|
@@ -4734,7 +4711,16 @@ function Component(props, apiRef) {
|
|
|
4734
4711
|
textAlign: "center"
|
|
4735
4712
|
}
|
|
4736
4713
|
},
|
|
4737
|
-
|
|
4714
|
+
/* @__PURE__ */ React25.createElement(
|
|
4715
|
+
RenderCheckbox,
|
|
4716
|
+
{
|
|
4717
|
+
onChange: onAllCheckboxChange,
|
|
4718
|
+
checked: isAllSelected,
|
|
4719
|
+
indeterminate: (selectionModel || []).length > 0 && !isAllSelected,
|
|
4720
|
+
disabled: dataInPage.length > 0 && !selectableRowCount,
|
|
4721
|
+
...checkboxProps
|
|
4722
|
+
}
|
|
4723
|
+
)
|
|
4738
4724
|
), columns.map((c, i) => (
|
|
4739
4725
|
// @ts-ignore
|
|
4740
4726
|
/* @__PURE__ */ React25.createElement(
|
|
@@ -4805,7 +4791,6 @@ function Component(props, apiRef) {
|
|
|
4805
4791
|
key: virtualizedRow.key,
|
|
4806
4792
|
"data-row-id": rowId,
|
|
4807
4793
|
"data-index": rowIndex,
|
|
4808
|
-
"data-columns-key": columnsKey,
|
|
4809
4794
|
"aria-rowindex": rowIndex + 1,
|
|
4810
4795
|
role: checkboxSelection && !disableSelectionOnClick ? "checkbox" : void 0,
|
|
4811
4796
|
tabIndex: focusedRowId === rowId ? 0 : -1,
|