@ceed/cds 1.40.0 → 1.40.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
|
@@ -4705,7 +4705,8 @@ function Component(props, apiRef) {
|
|
|
4705
4705
|
const totalSize = virtualizer.getTotalSize();
|
|
4706
4706
|
const virtualizedItems = virtualizer.getVirtualItems();
|
|
4707
4707
|
const showNoRowsOverlay = !loading && rowCount === 0;
|
|
4708
|
-
const
|
|
4708
|
+
const showFillerColumn = columns.length > 0 && columns.every((c) => !!c.width);
|
|
4709
|
+
const totalColCount = Math.max(1, columns.length + (checkboxSelection ? 1 : 0) + (showFillerColumn ? 1 : 0));
|
|
4709
4710
|
const getRowClickHandler = (0, import_react29.useCallback)(
|
|
4710
4711
|
(row, rowId) => (e) => {
|
|
4711
4712
|
onRowClick?.({ row, rowId }, e);
|
|
@@ -4896,7 +4897,7 @@ function Component(props, apiRef) {
|
|
|
4896
4897
|
minWidth: c.minWidth ?? "50px"
|
|
4897
4898
|
}
|
|
4898
4899
|
}
|
|
4899
|
-
))), /* @__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(
|
|
4900
|
+
)), 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(
|
|
4900
4901
|
"th",
|
|
4901
4902
|
{
|
|
4902
4903
|
rowSpan: processedColumnGroups.maxLevel + 2,
|
|
@@ -4925,7 +4926,13 @@ function Component(props, apiRef) {
|
|
|
4925
4926
|
},
|
|
4926
4927
|
group.headerName ?? group.groupId
|
|
4927
4928
|
), emptyCells > 0 && Array.from({ length: emptyCells }).map((_2, i) => /* @__PURE__ */ import_react29.default.createElement("th", { key: `empty-between-${level}-${groupIndex}-${i}`, colSpan: 1 })));
|
|
4928
|
-
})
|
|
4929
|
+
}), showFillerColumn && level === 0 && /* @__PURE__ */ import_react29.default.createElement(
|
|
4930
|
+
"th",
|
|
4931
|
+
{
|
|
4932
|
+
"aria-hidden": "true",
|
|
4933
|
+
rowSpan: processedColumnGroups.maxLevel + 2
|
|
4934
|
+
}
|
|
4935
|
+
))), /* @__PURE__ */ import_react29.default.createElement("tr", null, (!processedColumnGroups || processedColumnGroups.groups.length === 0) && checkboxSelection && /* @__PURE__ */ import_react29.default.createElement(
|
|
4929
4936
|
"th",
|
|
4930
4937
|
{
|
|
4931
4938
|
style: {
|
|
@@ -4948,7 +4955,7 @@ function Component(props, apiRef) {
|
|
|
4948
4955
|
...c
|
|
4949
4956
|
}
|
|
4950
4957
|
)
|
|
4951
|
-
)))), /* @__PURE__ */ import_react29.default.createElement(
|
|
4958
|
+
)), showFillerColumn && (!processedColumnGroups || processedColumnGroups.groups.length === 0) && /* @__PURE__ */ import_react29.default.createElement("th", { "aria-hidden": "true" }))), /* @__PURE__ */ import_react29.default.createElement(
|
|
4952
4959
|
VirtualizedTableBody,
|
|
4953
4960
|
{
|
|
4954
4961
|
ref: tableBodyRef,
|
|
@@ -5047,7 +5054,8 @@ function Component(props, apiRef) {
|
|
|
5047
5054
|
editMode,
|
|
5048
5055
|
noWrap: props.noWrap
|
|
5049
5056
|
}
|
|
5050
|
-
)
|
|
5057
|
+
),
|
|
5058
|
+
showFillerColumn && /* @__PURE__ */ import_react29.default.createElement("td", { "aria-hidden": "true" })
|
|
5051
5059
|
);
|
|
5052
5060
|
})
|
|
5053
5061
|
), Footer && /* @__PURE__ */ import_react29.default.createElement(Footer, null))
|
package/dist/index.js
CHANGED
|
@@ -4590,7 +4590,8 @@ function Component(props, apiRef) {
|
|
|
4590
4590
|
const totalSize = virtualizer.getTotalSize();
|
|
4591
4591
|
const virtualizedItems = virtualizer.getVirtualItems();
|
|
4592
4592
|
const showNoRowsOverlay = !loading && rowCount === 0;
|
|
4593
|
-
const
|
|
4593
|
+
const showFillerColumn = columns.length > 0 && columns.every((c) => !!c.width);
|
|
4594
|
+
const totalColCount = Math.max(1, columns.length + (checkboxSelection ? 1 : 0) + (showFillerColumn ? 1 : 0));
|
|
4594
4595
|
const getRowClickHandler = useCallback13(
|
|
4595
4596
|
(row, rowId) => (e) => {
|
|
4596
4597
|
onRowClick?.({ row, rowId }, e);
|
|
@@ -4781,7 +4782,7 @@ function Component(props, apiRef) {
|
|
|
4781
4782
|
minWidth: c.minWidth ?? "50px"
|
|
4782
4783
|
}
|
|
4783
4784
|
}
|
|
4784
|
-
))), /* @__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(
|
|
4785
|
+
)), 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(
|
|
4785
4786
|
"th",
|
|
4786
4787
|
{
|
|
4787
4788
|
rowSpan: processedColumnGroups.maxLevel + 2,
|
|
@@ -4810,7 +4811,13 @@ function Component(props, apiRef) {
|
|
|
4810
4811
|
},
|
|
4811
4812
|
group.headerName ?? group.groupId
|
|
4812
4813
|
), emptyCells > 0 && Array.from({ length: emptyCells }).map((_2, i) => /* @__PURE__ */ React26.createElement("th", { key: `empty-between-${level}-${groupIndex}-${i}`, colSpan: 1 })));
|
|
4813
|
-
})
|
|
4814
|
+
}), showFillerColumn && level === 0 && /* @__PURE__ */ React26.createElement(
|
|
4815
|
+
"th",
|
|
4816
|
+
{
|
|
4817
|
+
"aria-hidden": "true",
|
|
4818
|
+
rowSpan: processedColumnGroups.maxLevel + 2
|
|
4819
|
+
}
|
|
4820
|
+
))), /* @__PURE__ */ React26.createElement("tr", null, (!processedColumnGroups || processedColumnGroups.groups.length === 0) && checkboxSelection && /* @__PURE__ */ React26.createElement(
|
|
4814
4821
|
"th",
|
|
4815
4822
|
{
|
|
4816
4823
|
style: {
|
|
@@ -4833,7 +4840,7 @@ function Component(props, apiRef) {
|
|
|
4833
4840
|
...c
|
|
4834
4841
|
}
|
|
4835
4842
|
)
|
|
4836
|
-
)))), /* @__PURE__ */ React26.createElement(
|
|
4843
|
+
)), showFillerColumn && (!processedColumnGroups || processedColumnGroups.groups.length === 0) && /* @__PURE__ */ React26.createElement("th", { "aria-hidden": "true" }))), /* @__PURE__ */ React26.createElement(
|
|
4837
4844
|
VirtualizedTableBody,
|
|
4838
4845
|
{
|
|
4839
4846
|
ref: tableBodyRef,
|
|
@@ -4932,7 +4939,8 @@ function Component(props, apiRef) {
|
|
|
4932
4939
|
editMode,
|
|
4933
4940
|
noWrap: props.noWrap
|
|
4934
4941
|
}
|
|
4935
|
-
)
|
|
4942
|
+
),
|
|
4943
|
+
showFillerColumn && /* @__PURE__ */ React26.createElement("td", { "aria-hidden": "true" })
|
|
4936
4944
|
);
|
|
4937
4945
|
})
|
|
4938
4946
|
), Footer && /* @__PURE__ */ React26.createElement(Footer, null))
|