@ceed/ads 1.41.0 → 1.41.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/components/data-display/DataTable.md +89 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +13 -5
- package/dist/index.js +13 -5
- package/framer/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4703,7 +4703,8 @@ function Component(props, apiRef) {
|
|
|
4703
4703
|
const totalSize = virtualizer.getTotalSize();
|
|
4704
4704
|
const virtualizedItems = virtualizer.getVirtualItems();
|
|
4705
4705
|
const showNoRowsOverlay = !loading && rowCount === 0;
|
|
4706
|
-
const
|
|
4706
|
+
const showFillerColumn = columns.length > 0 && columns.every((c) => !!c.width);
|
|
4707
|
+
const totalColCount = Math.max(1, columns.length + (checkboxSelection ? 1 : 0) + (showFillerColumn ? 1 : 0));
|
|
4707
4708
|
const getRowClickHandler = (0, import_react29.useCallback)(
|
|
4708
4709
|
(row, rowId) => (e) => {
|
|
4709
4710
|
onRowClick?.({ row, rowId }, e);
|
|
@@ -4894,7 +4895,7 @@ function Component(props, apiRef) {
|
|
|
4894
4895
|
minWidth: c.minWidth ?? "50px"
|
|
4895
4896
|
}
|
|
4896
4897
|
}
|
|
4897
|
-
))), /* @__PURE__ */ import_react29.default.createElement("thead", null, processedColumnGroups && processedColumnGroups.groups.length > 0 && processedColumnGroups.groups.map((levelGroups, level) => /* @__PURE__ */ import_react29.default.createElement("tr", { key: `group-level-${level}` }, checkboxSelection && level === 0 && /* @__PURE__ */ import_react29.default.createElement(
|
|
4898
|
+
)), showFillerColumn && /* @__PURE__ */ import_react29.default.createElement("col", { style: { minWidth: 0 } })), /* @__PURE__ */ import_react29.default.createElement("thead", null, processedColumnGroups && processedColumnGroups.groups.length > 0 && processedColumnGroups.groups.map((levelGroups, level) => /* @__PURE__ */ import_react29.default.createElement("tr", { key: `group-level-${level}` }, checkboxSelection && level === 0 && /* @__PURE__ */ import_react29.default.createElement(
|
|
4898
4899
|
"th",
|
|
4899
4900
|
{
|
|
4900
4901
|
rowSpan: processedColumnGroups.maxLevel + 2,
|
|
@@ -4923,7 +4924,13 @@ function Component(props, apiRef) {
|
|
|
4923
4924
|
},
|
|
4924
4925
|
group.headerName ?? group.groupId
|
|
4925
4926
|
), emptyCells > 0 && Array.from({ length: emptyCells }).map((_2, i) => /* @__PURE__ */ import_react29.default.createElement("th", { key: `empty-between-${level}-${groupIndex}-${i}`, colSpan: 1 })));
|
|
4926
|
-
})
|
|
4927
|
+
}), showFillerColumn && level === 0 && /* @__PURE__ */ import_react29.default.createElement(
|
|
4928
|
+
"th",
|
|
4929
|
+
{
|
|
4930
|
+
"aria-hidden": "true",
|
|
4931
|
+
rowSpan: processedColumnGroups.maxLevel + 2
|
|
4932
|
+
}
|
|
4933
|
+
))), /* @__PURE__ */ import_react29.default.createElement("tr", null, (!processedColumnGroups || processedColumnGroups.groups.length === 0) && checkboxSelection && /* @__PURE__ */ import_react29.default.createElement(
|
|
4927
4934
|
"th",
|
|
4928
4935
|
{
|
|
4929
4936
|
style: {
|
|
@@ -4946,7 +4953,7 @@ function Component(props, apiRef) {
|
|
|
4946
4953
|
...c
|
|
4947
4954
|
}
|
|
4948
4955
|
)
|
|
4949
|
-
)))), /* @__PURE__ */ import_react29.default.createElement(
|
|
4956
|
+
)), showFillerColumn && (!processedColumnGroups || processedColumnGroups.groups.length === 0) && /* @__PURE__ */ import_react29.default.createElement("th", { "aria-hidden": "true" }))), /* @__PURE__ */ import_react29.default.createElement(
|
|
4950
4957
|
VirtualizedTableBody,
|
|
4951
4958
|
{
|
|
4952
4959
|
ref: tableBodyRef,
|
|
@@ -5045,7 +5052,8 @@ function Component(props, apiRef) {
|
|
|
5045
5052
|
editMode,
|
|
5046
5053
|
noWrap: props.noWrap
|
|
5047
5054
|
}
|
|
5048
|
-
)
|
|
5055
|
+
),
|
|
5056
|
+
showFillerColumn && /* @__PURE__ */ import_react29.default.createElement("td", { "aria-hidden": "true" })
|
|
5049
5057
|
);
|
|
5050
5058
|
})
|
|
5051
5059
|
), Footer && /* @__PURE__ */ import_react29.default.createElement(Footer, null))
|
package/dist/index.js
CHANGED
|
@@ -4580,7 +4580,8 @@ function Component(props, apiRef) {
|
|
|
4580
4580
|
const totalSize = virtualizer.getTotalSize();
|
|
4581
4581
|
const virtualizedItems = virtualizer.getVirtualItems();
|
|
4582
4582
|
const showNoRowsOverlay = !loading && rowCount === 0;
|
|
4583
|
-
const
|
|
4583
|
+
const showFillerColumn = columns.length > 0 && columns.every((c) => !!c.width);
|
|
4584
|
+
const totalColCount = Math.max(1, columns.length + (checkboxSelection ? 1 : 0) + (showFillerColumn ? 1 : 0));
|
|
4584
4585
|
const getRowClickHandler = useCallback13(
|
|
4585
4586
|
(row, rowId) => (e) => {
|
|
4586
4587
|
onRowClick?.({ row, rowId }, e);
|
|
@@ -4771,7 +4772,7 @@ function Component(props, apiRef) {
|
|
|
4771
4772
|
minWidth: c.minWidth ?? "50px"
|
|
4772
4773
|
}
|
|
4773
4774
|
}
|
|
4774
|
-
))), /* @__PURE__ */ React26.createElement("thead", null, processedColumnGroups && processedColumnGroups.groups.length > 0 && processedColumnGroups.groups.map((levelGroups, level) => /* @__PURE__ */ React26.createElement("tr", { key: `group-level-${level}` }, checkboxSelection && level === 0 && /* @__PURE__ */ React26.createElement(
|
|
4775
|
+
)), showFillerColumn && /* @__PURE__ */ React26.createElement("col", { style: { minWidth: 0 } })), /* @__PURE__ */ React26.createElement("thead", null, processedColumnGroups && processedColumnGroups.groups.length > 0 && processedColumnGroups.groups.map((levelGroups, level) => /* @__PURE__ */ React26.createElement("tr", { key: `group-level-${level}` }, checkboxSelection && level === 0 && /* @__PURE__ */ React26.createElement(
|
|
4775
4776
|
"th",
|
|
4776
4777
|
{
|
|
4777
4778
|
rowSpan: processedColumnGroups.maxLevel + 2,
|
|
@@ -4800,7 +4801,13 @@ function Component(props, apiRef) {
|
|
|
4800
4801
|
},
|
|
4801
4802
|
group.headerName ?? group.groupId
|
|
4802
4803
|
), emptyCells > 0 && Array.from({ length: emptyCells }).map((_2, i) => /* @__PURE__ */ React26.createElement("th", { key: `empty-between-${level}-${groupIndex}-${i}`, colSpan: 1 })));
|
|
4803
|
-
})
|
|
4804
|
+
}), showFillerColumn && level === 0 && /* @__PURE__ */ React26.createElement(
|
|
4805
|
+
"th",
|
|
4806
|
+
{
|
|
4807
|
+
"aria-hidden": "true",
|
|
4808
|
+
rowSpan: processedColumnGroups.maxLevel + 2
|
|
4809
|
+
}
|
|
4810
|
+
))), /* @__PURE__ */ React26.createElement("tr", null, (!processedColumnGroups || processedColumnGroups.groups.length === 0) && checkboxSelection && /* @__PURE__ */ React26.createElement(
|
|
4804
4811
|
"th",
|
|
4805
4812
|
{
|
|
4806
4813
|
style: {
|
|
@@ -4823,7 +4830,7 @@ function Component(props, apiRef) {
|
|
|
4823
4830
|
...c
|
|
4824
4831
|
}
|
|
4825
4832
|
)
|
|
4826
|
-
)))), /* @__PURE__ */ React26.createElement(
|
|
4833
|
+
)), showFillerColumn && (!processedColumnGroups || processedColumnGroups.groups.length === 0) && /* @__PURE__ */ React26.createElement("th", { "aria-hidden": "true" }))), /* @__PURE__ */ React26.createElement(
|
|
4827
4834
|
VirtualizedTableBody,
|
|
4828
4835
|
{
|
|
4829
4836
|
ref: tableBodyRef,
|
|
@@ -4922,7 +4929,8 @@ function Component(props, apiRef) {
|
|
|
4922
4929
|
editMode,
|
|
4923
4930
|
noWrap: props.noWrap
|
|
4924
4931
|
}
|
|
4925
|
-
)
|
|
4932
|
+
),
|
|
4933
|
+
showFillerColumn && /* @__PURE__ */ React26.createElement("td", { "aria-hidden": "true" })
|
|
4926
4934
|
);
|
|
4927
4935
|
})
|
|
4928
4936
|
), Footer && /* @__PURE__ */ React26.createElement(Footer, null))
|