@ceed/cds 1.40.0 → 1.40.2
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 +9 -9
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +39 -55
- package/dist/index.js +39 -55
- 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))
|
|
@@ -7594,24 +7602,10 @@ var import_joy62 = require("@mui/joy");
|
|
|
7594
7602
|
var import_CloudUploadRounded = __toESM(require("@mui/icons-material/CloudUploadRounded"));
|
|
7595
7603
|
var import_UploadFileRounded = __toESM(require("@mui/icons-material/UploadFileRounded"));
|
|
7596
7604
|
var import_ClearRounded = __toESM(require("@mui/icons-material/ClearRounded"));
|
|
7597
|
-
var
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
),
|
|
7602
|
-
adapter: import(
|
|
7603
|
-
// @ts-ignore: build된 pragmatic-drag-and-drop의 esm file에 extension이 없어서 에러가 발생함. 따라서 빌드된 js파일을 direct로 import한다.
|
|
7604
|
-
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js"
|
|
7605
|
-
),
|
|
7606
|
-
file: import(
|
|
7607
|
-
// @ts-ignore: build된 pragmatic-drag-and-drop의 esm file에 extension이 없어서 에러가 발생함. 따라서 빌드된 js파일을 direct로 import한다.
|
|
7608
|
-
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js"
|
|
7609
|
-
),
|
|
7610
|
-
preventUnhandled: import(
|
|
7611
|
-
// @ts-ignore: build된 pragmatic-drag-and-drop의 esm file에 extension이 없어서 에러가 발생함. 따라서 빌드된 js파일을 direct로 import한다.
|
|
7612
|
-
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js"
|
|
7613
|
-
)
|
|
7614
|
-
};
|
|
7605
|
+
var import_combine = require("@atlaskit/pragmatic-drag-and-drop/combine");
|
|
7606
|
+
var import_adapter = require("@atlaskit/pragmatic-drag-and-drop/external/adapter");
|
|
7607
|
+
var import_file = require("@atlaskit/pragmatic-drag-and-drop/external/file");
|
|
7608
|
+
var import_prevent_unhandled = require("@atlaskit/pragmatic-drag-and-drop/prevent-unhandled");
|
|
7615
7609
|
var VisuallyHiddenInput = (0, import_joy62.styled)(import_joy62.Input)({
|
|
7616
7610
|
width: "1px",
|
|
7617
7611
|
height: "1px",
|
|
@@ -7837,39 +7831,29 @@ var Uploader = import_react51.default.memo((props) => {
|
|
|
7837
7831
|
if (!dropZoneRef.current || disabled) {
|
|
7838
7832
|
return;
|
|
7839
7833
|
}
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
preventUnhandled.start();
|
|
7863
|
-
},
|
|
7864
|
-
onDrop: () => {
|
|
7865
|
-
setPreviewState("idle");
|
|
7866
|
-
preventUnhandled.stop();
|
|
7867
|
-
}
|
|
7868
|
-
})
|
|
7869
|
-
);
|
|
7870
|
-
}
|
|
7834
|
+
return (0, import_combine.combine)(
|
|
7835
|
+
(0, import_adapter.dropTargetForExternal)({
|
|
7836
|
+
element: dropZoneRef.current,
|
|
7837
|
+
canDrop: import_file.containsFiles,
|
|
7838
|
+
onDragEnter: () => setPreviewState("over"),
|
|
7839
|
+
onDragLeave: () => setPreviewState("potential"),
|
|
7840
|
+
onDrop: async ({ source }) => {
|
|
7841
|
+
const files2 = await (0, import_file.getFiles)({ source });
|
|
7842
|
+
addFiles(files2);
|
|
7843
|
+
}
|
|
7844
|
+
}),
|
|
7845
|
+
(0, import_adapter.monitorForExternal)({
|
|
7846
|
+
canMonitor: import_file.containsFiles,
|
|
7847
|
+
onDragStart: () => {
|
|
7848
|
+
setPreviewState("potential");
|
|
7849
|
+
import_prevent_unhandled.preventUnhandled.start();
|
|
7850
|
+
},
|
|
7851
|
+
onDrop: () => {
|
|
7852
|
+
setPreviewState("idle");
|
|
7853
|
+
import_prevent_unhandled.preventUnhandled.stop();
|
|
7854
|
+
}
|
|
7855
|
+
})
|
|
7871
7856
|
);
|
|
7872
|
-
return () => cleanup?.();
|
|
7873
7857
|
}, [disabled, addFiles]);
|
|
7874
7858
|
(0, import_react51.useEffect)(() => {
|
|
7875
7859
|
if (inputRef.current && minCount) {
|
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))
|
|
@@ -7521,24 +7529,10 @@ import { styled as styled31, Input as Input2 } from "@mui/joy";
|
|
|
7521
7529
|
import MuiFileUploadIcon from "@mui/icons-material/CloudUploadRounded";
|
|
7522
7530
|
import MuiUploadFileIcon from "@mui/icons-material/UploadFileRounded";
|
|
7523
7531
|
import MuiClearIcon from "@mui/icons-material/ClearRounded";
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
),
|
|
7529
|
-
adapter: import(
|
|
7530
|
-
// @ts-ignore: build된 pragmatic-drag-and-drop의 esm file에 extension이 없어서 에러가 발생함. 따라서 빌드된 js파일을 direct로 import한다.
|
|
7531
|
-
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js"
|
|
7532
|
-
),
|
|
7533
|
-
file: import(
|
|
7534
|
-
// @ts-ignore: build된 pragmatic-drag-and-drop의 esm file에 extension이 없어서 에러가 발생함. 따라서 빌드된 js파일을 direct로 import한다.
|
|
7535
|
-
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js"
|
|
7536
|
-
),
|
|
7537
|
-
preventUnhandled: import(
|
|
7538
|
-
// @ts-ignore: build된 pragmatic-drag-and-drop의 esm file에 extension이 없어서 에러가 발생함. 따라서 빌드된 js파일을 direct로 import한다.
|
|
7539
|
-
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js"
|
|
7540
|
-
)
|
|
7541
|
-
};
|
|
7532
|
+
import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
|
|
7533
|
+
import { dropTargetForExternal, monitorForExternal } from "@atlaskit/pragmatic-drag-and-drop/external/adapter";
|
|
7534
|
+
import { containsFiles, getFiles } from "@atlaskit/pragmatic-drag-and-drop/external/file";
|
|
7535
|
+
import { preventUnhandled } from "@atlaskit/pragmatic-drag-and-drop/prevent-unhandled";
|
|
7542
7536
|
var VisuallyHiddenInput = styled31(Input2)({
|
|
7543
7537
|
width: "1px",
|
|
7544
7538
|
height: "1px",
|
|
@@ -7764,39 +7758,29 @@ var Uploader = React49.memo((props) => {
|
|
|
7764
7758
|
if (!dropZoneRef.current || disabled) {
|
|
7765
7759
|
return;
|
|
7766
7760
|
}
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
preventUnhandled.start();
|
|
7790
|
-
},
|
|
7791
|
-
onDrop: () => {
|
|
7792
|
-
setPreviewState("idle");
|
|
7793
|
-
preventUnhandled.stop();
|
|
7794
|
-
}
|
|
7795
|
-
})
|
|
7796
|
-
);
|
|
7797
|
-
}
|
|
7761
|
+
return combine(
|
|
7762
|
+
dropTargetForExternal({
|
|
7763
|
+
element: dropZoneRef.current,
|
|
7764
|
+
canDrop: containsFiles,
|
|
7765
|
+
onDragEnter: () => setPreviewState("over"),
|
|
7766
|
+
onDragLeave: () => setPreviewState("potential"),
|
|
7767
|
+
onDrop: async ({ source }) => {
|
|
7768
|
+
const files2 = await getFiles({ source });
|
|
7769
|
+
addFiles(files2);
|
|
7770
|
+
}
|
|
7771
|
+
}),
|
|
7772
|
+
monitorForExternal({
|
|
7773
|
+
canMonitor: containsFiles,
|
|
7774
|
+
onDragStart: () => {
|
|
7775
|
+
setPreviewState("potential");
|
|
7776
|
+
preventUnhandled.start();
|
|
7777
|
+
},
|
|
7778
|
+
onDrop: () => {
|
|
7779
|
+
setPreviewState("idle");
|
|
7780
|
+
preventUnhandled.stop();
|
|
7781
|
+
}
|
|
7782
|
+
})
|
|
7798
7783
|
);
|
|
7799
|
-
return () => cleanup?.();
|
|
7800
7784
|
}, [disabled, addFiles]);
|
|
7801
7785
|
useEffect13(() => {
|
|
7802
7786
|
if (inputRef.current && minCount) {
|