@ceed/cds 1.40.3-next.5 → 1.40.3-next.6
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/DataTable/components.d.ts +4 -4
- package/dist/components/DataTable/hooks.d.ts +4 -4
- package/dist/components/DataTable/types.d.ts +9 -7
- package/dist/components/IconMenuButton/IconMenuButton.type-test.d.ts +5 -0
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/data-display/DataTable.md +1 -1
- package/dist/components/inputs/Calendar.md +17 -17
- package/dist/components/navigation/IconMenuButton.md +5 -0
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +9 -8
- package/dist/index.js +9 -8
- package/framer/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2612,7 +2612,7 @@ function computeAutoFitWidth(params) {
|
|
|
2612
2612
|
return finalWidth;
|
|
2613
2613
|
}
|
|
2614
2614
|
function getHeaderCellId(tableId, columnId) {
|
|
2615
|
-
return `${tableId}_header_${columnId}`.trim();
|
|
2615
|
+
return `${tableId}_header_${columnId}`.trim().replace(/\s+/g, "_");
|
|
2616
2616
|
}
|
|
2617
2617
|
|
|
2618
2618
|
// src/components/DataTable/styled.tsx
|
|
@@ -3569,7 +3569,7 @@ var HeadCell = (props) => {
|
|
|
3569
3569
|
}, [ref]);
|
|
3570
3570
|
const [isHovered, setIsHovered] = (0, import_react26.useState)(false);
|
|
3571
3571
|
const sortable = type === "actions" ? false : _sortable;
|
|
3572
|
-
const headId = (0, import_react26.useMemo)(() => getHeaderCellId(tableId, columnId
|
|
3572
|
+
const headId = (0, import_react26.useMemo)(() => getHeaderCellId(tableId, columnId), [tableId, columnId]);
|
|
3573
3573
|
const isResizingRef = (0, import_react26.useRef)(false);
|
|
3574
3574
|
const resizer = (0, import_react26.useMemo)(
|
|
3575
3575
|
() => resizable ?? true ? Resizer(
|
|
@@ -3578,9 +3578,9 @@ var HeadCell = (props) => {
|
|
|
3578
3578
|
(isResizing) => {
|
|
3579
3579
|
isResizingRef.current = isResizing;
|
|
3580
3580
|
},
|
|
3581
|
-
onAutoFit ? () => onAutoFit(columnId
|
|
3581
|
+
onAutoFit ? () => onAutoFit(columnId) : void 0
|
|
3582
3582
|
) : null,
|
|
3583
|
-
[resizable, ref, colRef, onAutoFit, columnId
|
|
3583
|
+
[resizable, ref, colRef, onAutoFit, columnId]
|
|
3584
3584
|
);
|
|
3585
3585
|
const style = (0, import_react26.useMemo)(
|
|
3586
3586
|
() => ({
|
|
@@ -3850,7 +3850,7 @@ var BodyCell = (props) => {
|
|
|
3850
3850
|
{
|
|
3851
3851
|
ref: cellRef,
|
|
3852
3852
|
key: field,
|
|
3853
|
-
headers: getHeaderCellId(tableId, props.columnId
|
|
3853
|
+
headers: getHeaderCellId(tableId, props.columnId),
|
|
3854
3854
|
sx: {
|
|
3855
3855
|
textAlign: getTextAlign({ type }),
|
|
3856
3856
|
verticalAlign: editMode ? "top" : "middle",
|
|
@@ -5701,7 +5701,7 @@ var ModalOverflow = MotionModalOverflow;
|
|
|
5701
5701
|
ModalOverflow.displayName = "ModalOverflow";
|
|
5702
5702
|
var ModalFrame = import_react33.default.forwardRef((props, ref) => {
|
|
5703
5703
|
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
5704
|
-
return /* @__PURE__ */ import_react33.default.createElement(StyledModalDialog, {
|
|
5704
|
+
return /* @__PURE__ */ import_react33.default.createElement(StyledModalDialog, { ...innerProps, ref }, /* @__PURE__ */ import_react33.default.createElement(ModalClose, { onClick: onClose }), /* @__PURE__ */ import_react33.default.createElement(DialogTitle_default, null, titleStartDecorator, title), /* @__PURE__ */ import_react33.default.createElement(DialogContent_default, null, children));
|
|
5705
5705
|
});
|
|
5706
5706
|
ModalFrame.displayName = "ModalFrame";
|
|
5707
5707
|
|
|
@@ -5979,7 +5979,7 @@ var import_joy46 = require("@mui/joy");
|
|
|
5979
5979
|
// src/components/IconMenuButton/IconMenuButton.tsx
|
|
5980
5980
|
var import_react37 = __toESM(require("react"));
|
|
5981
5981
|
var import_joy47 = require("@mui/joy");
|
|
5982
|
-
var MenuButtonRootSlot = import_react37.default.forwardRef(function MenuButtonRootSlot2({ as, ...rest }, ref) {
|
|
5982
|
+
var MenuButtonRootSlot = import_react37.default.forwardRef(function MenuButtonRootSlot2({ as, ownerState: _ownerState, ...rest }, ref) {
|
|
5983
5983
|
return /* @__PURE__ */ import_react37.default.createElement(import_joy47.IconButton, { ...rest, component: as ?? "button", ref });
|
|
5984
5984
|
});
|
|
5985
5985
|
function IconMenuButtonInner(props, ref) {
|
|
@@ -6017,7 +6017,8 @@ function IconMenuButtonInner(props, ref) {
|
|
|
6017
6017
|
slots: { root: MenuButtonRootSlot },
|
|
6018
6018
|
slotProps: {
|
|
6019
6019
|
root: {
|
|
6020
|
-
|
|
6020
|
+
// 기본값 'button'은 MenuButtonRootSlot 한 곳에만 둔다.
|
|
6021
|
+
component: props.buttonComponent,
|
|
6021
6022
|
size,
|
|
6022
6023
|
variant,
|
|
6023
6024
|
color,
|
package/dist/index.js
CHANGED
|
@@ -2483,7 +2483,7 @@ function computeAutoFitWidth(params) {
|
|
|
2483
2483
|
return finalWidth;
|
|
2484
2484
|
}
|
|
2485
2485
|
function getHeaderCellId(tableId, columnId) {
|
|
2486
|
-
return `${tableId}_header_${columnId}`.trim();
|
|
2486
|
+
return `${tableId}_header_${columnId}`.trim().replace(/\s+/g, "_");
|
|
2487
2487
|
}
|
|
2488
2488
|
|
|
2489
2489
|
// src/components/DataTable/styled.tsx
|
|
@@ -3454,7 +3454,7 @@ var HeadCell = (props) => {
|
|
|
3454
3454
|
}, [ref]);
|
|
3455
3455
|
const [isHovered, setIsHovered] = useState8(false);
|
|
3456
3456
|
const sortable = type === "actions" ? false : _sortable;
|
|
3457
|
-
const headId = useMemo10(() => getHeaderCellId(tableId, columnId
|
|
3457
|
+
const headId = useMemo10(() => getHeaderCellId(tableId, columnId), [tableId, columnId]);
|
|
3458
3458
|
const isResizingRef = useRef5(false);
|
|
3459
3459
|
const resizer = useMemo10(
|
|
3460
3460
|
() => resizable ?? true ? Resizer(
|
|
@@ -3463,9 +3463,9 @@ var HeadCell = (props) => {
|
|
|
3463
3463
|
(isResizing) => {
|
|
3464
3464
|
isResizingRef.current = isResizing;
|
|
3465
3465
|
},
|
|
3466
|
-
onAutoFit ? () => onAutoFit(columnId
|
|
3466
|
+
onAutoFit ? () => onAutoFit(columnId) : void 0
|
|
3467
3467
|
) : null,
|
|
3468
|
-
[resizable, ref, colRef, onAutoFit, columnId
|
|
3468
|
+
[resizable, ref, colRef, onAutoFit, columnId]
|
|
3469
3469
|
);
|
|
3470
3470
|
const style = useMemo10(
|
|
3471
3471
|
() => ({
|
|
@@ -3735,7 +3735,7 @@ var BodyCell = (props) => {
|
|
|
3735
3735
|
{
|
|
3736
3736
|
ref: cellRef,
|
|
3737
3737
|
key: field,
|
|
3738
|
-
headers: getHeaderCellId(tableId, props.columnId
|
|
3738
|
+
headers: getHeaderCellId(tableId, props.columnId),
|
|
3739
3739
|
sx: {
|
|
3740
3740
|
textAlign: getTextAlign({ type }),
|
|
3741
3741
|
verticalAlign: editMode ? "top" : "middle",
|
|
@@ -5592,7 +5592,7 @@ var ModalOverflow = MotionModalOverflow;
|
|
|
5592
5592
|
ModalOverflow.displayName = "ModalOverflow";
|
|
5593
5593
|
var ModalFrame = React29.forwardRef((props, ref) => {
|
|
5594
5594
|
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
5595
|
-
return /* @__PURE__ */ React29.createElement(StyledModalDialog, {
|
|
5595
|
+
return /* @__PURE__ */ React29.createElement(StyledModalDialog, { ...innerProps, ref }, /* @__PURE__ */ React29.createElement(ModalClose, { onClick: onClose }), /* @__PURE__ */ React29.createElement(DialogTitle_default, null, titleStartDecorator, title), /* @__PURE__ */ React29.createElement(DialogContent_default, null, children));
|
|
5596
5596
|
});
|
|
5597
5597
|
ModalFrame.displayName = "ModalFrame";
|
|
5598
5598
|
|
|
@@ -5873,7 +5873,7 @@ import {
|
|
|
5873
5873
|
MenuButton as JoyMenuButton2,
|
|
5874
5874
|
IconButton as JoyIconButton2
|
|
5875
5875
|
} from "@mui/joy";
|
|
5876
|
-
var MenuButtonRootSlot = React33.forwardRef(function MenuButtonRootSlot2({ as, ...rest }, ref) {
|
|
5876
|
+
var MenuButtonRootSlot = React33.forwardRef(function MenuButtonRootSlot2({ as, ownerState: _ownerState, ...rest }, ref) {
|
|
5877
5877
|
return /* @__PURE__ */ React33.createElement(JoyIconButton2, { ...rest, component: as ?? "button", ref });
|
|
5878
5878
|
});
|
|
5879
5879
|
function IconMenuButtonInner(props, ref) {
|
|
@@ -5911,7 +5911,8 @@ function IconMenuButtonInner(props, ref) {
|
|
|
5911
5911
|
slots: { root: MenuButtonRootSlot },
|
|
5912
5912
|
slotProps: {
|
|
5913
5913
|
root: {
|
|
5914
|
-
|
|
5914
|
+
// 기본값 'button'은 MenuButtonRootSlot 한 곳에만 둔다.
|
|
5915
|
+
component: props.buttonComponent,
|
|
5915
5916
|
size,
|
|
5916
5917
|
variant,
|
|
5917
5918
|
color,
|