@ceed/cds 1.40.3-next.4 → 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 +3 -3
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +11 -8
- package/dist/index.js +11 -8
- package/framer/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1753,6 +1753,8 @@ var Calendar = (0, import_react16.forwardRef)((inProps, ref) => {
|
|
|
1753
1753
|
maxDate,
|
|
1754
1754
|
disableFuture,
|
|
1755
1755
|
disablePast,
|
|
1756
|
+
shouldDisableDate,
|
|
1757
|
+
slots,
|
|
1756
1758
|
numberOfMonths,
|
|
1757
1759
|
...others
|
|
1758
1760
|
} = props;
|
|
@@ -2610,7 +2612,7 @@ function computeAutoFitWidth(params) {
|
|
|
2610
2612
|
return finalWidth;
|
|
2611
2613
|
}
|
|
2612
2614
|
function getHeaderCellId(tableId, columnId) {
|
|
2613
|
-
return `${tableId}_header_${columnId}`.trim();
|
|
2615
|
+
return `${tableId}_header_${columnId}`.trim().replace(/\s+/g, "_");
|
|
2614
2616
|
}
|
|
2615
2617
|
|
|
2616
2618
|
// src/components/DataTable/styled.tsx
|
|
@@ -3567,7 +3569,7 @@ var HeadCell = (props) => {
|
|
|
3567
3569
|
}, [ref]);
|
|
3568
3570
|
const [isHovered, setIsHovered] = (0, import_react26.useState)(false);
|
|
3569
3571
|
const sortable = type === "actions" ? false : _sortable;
|
|
3570
|
-
const headId = (0, import_react26.useMemo)(() => getHeaderCellId(tableId, columnId
|
|
3572
|
+
const headId = (0, import_react26.useMemo)(() => getHeaderCellId(tableId, columnId), [tableId, columnId]);
|
|
3571
3573
|
const isResizingRef = (0, import_react26.useRef)(false);
|
|
3572
3574
|
const resizer = (0, import_react26.useMemo)(
|
|
3573
3575
|
() => resizable ?? true ? Resizer(
|
|
@@ -3576,9 +3578,9 @@ var HeadCell = (props) => {
|
|
|
3576
3578
|
(isResizing) => {
|
|
3577
3579
|
isResizingRef.current = isResizing;
|
|
3578
3580
|
},
|
|
3579
|
-
onAutoFit ? () => onAutoFit(columnId
|
|
3581
|
+
onAutoFit ? () => onAutoFit(columnId) : void 0
|
|
3580
3582
|
) : null,
|
|
3581
|
-
[resizable, ref, colRef, onAutoFit, columnId
|
|
3583
|
+
[resizable, ref, colRef, onAutoFit, columnId]
|
|
3582
3584
|
);
|
|
3583
3585
|
const style = (0, import_react26.useMemo)(
|
|
3584
3586
|
() => ({
|
|
@@ -3848,7 +3850,7 @@ var BodyCell = (props) => {
|
|
|
3848
3850
|
{
|
|
3849
3851
|
ref: cellRef,
|
|
3850
3852
|
key: field,
|
|
3851
|
-
headers: getHeaderCellId(tableId, props.columnId
|
|
3853
|
+
headers: getHeaderCellId(tableId, props.columnId),
|
|
3852
3854
|
sx: {
|
|
3853
3855
|
textAlign: getTextAlign({ type }),
|
|
3854
3856
|
verticalAlign: editMode ? "top" : "middle",
|
|
@@ -5699,7 +5701,7 @@ var ModalOverflow = MotionModalOverflow;
|
|
|
5699
5701
|
ModalOverflow.displayName = "ModalOverflow";
|
|
5700
5702
|
var ModalFrame = import_react33.default.forwardRef((props, ref) => {
|
|
5701
5703
|
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
5702
|
-
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));
|
|
5703
5705
|
});
|
|
5704
5706
|
ModalFrame.displayName = "ModalFrame";
|
|
5705
5707
|
|
|
@@ -5977,7 +5979,7 @@ var import_joy46 = require("@mui/joy");
|
|
|
5977
5979
|
// src/components/IconMenuButton/IconMenuButton.tsx
|
|
5978
5980
|
var import_react37 = __toESM(require("react"));
|
|
5979
5981
|
var import_joy47 = require("@mui/joy");
|
|
5980
|
-
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) {
|
|
5981
5983
|
return /* @__PURE__ */ import_react37.default.createElement(import_joy47.IconButton, { ...rest, component: as ?? "button", ref });
|
|
5982
5984
|
});
|
|
5983
5985
|
function IconMenuButtonInner(props, ref) {
|
|
@@ -6015,7 +6017,8 @@ function IconMenuButtonInner(props, ref) {
|
|
|
6015
6017
|
slots: { root: MenuButtonRootSlot },
|
|
6016
6018
|
slotProps: {
|
|
6017
6019
|
root: {
|
|
6018
|
-
|
|
6020
|
+
// 기본값 'button'은 MenuButtonRootSlot 한 곳에만 둔다.
|
|
6021
|
+
component: props.buttonComponent,
|
|
6019
6022
|
size,
|
|
6020
6023
|
variant,
|
|
6021
6024
|
color,
|
package/dist/index.js
CHANGED
|
@@ -1610,6 +1610,8 @@ var Calendar = forwardRef4((inProps, ref) => {
|
|
|
1610
1610
|
maxDate,
|
|
1611
1611
|
disableFuture,
|
|
1612
1612
|
disablePast,
|
|
1613
|
+
shouldDisableDate,
|
|
1614
|
+
slots,
|
|
1613
1615
|
numberOfMonths,
|
|
1614
1616
|
...others
|
|
1615
1617
|
} = props;
|
|
@@ -2481,7 +2483,7 @@ function computeAutoFitWidth(params) {
|
|
|
2481
2483
|
return finalWidth;
|
|
2482
2484
|
}
|
|
2483
2485
|
function getHeaderCellId(tableId, columnId) {
|
|
2484
|
-
return `${tableId}_header_${columnId}`.trim();
|
|
2486
|
+
return `${tableId}_header_${columnId}`.trim().replace(/\s+/g, "_");
|
|
2485
2487
|
}
|
|
2486
2488
|
|
|
2487
2489
|
// src/components/DataTable/styled.tsx
|
|
@@ -3452,7 +3454,7 @@ var HeadCell = (props) => {
|
|
|
3452
3454
|
}, [ref]);
|
|
3453
3455
|
const [isHovered, setIsHovered] = useState8(false);
|
|
3454
3456
|
const sortable = type === "actions" ? false : _sortable;
|
|
3455
|
-
const headId = useMemo10(() => getHeaderCellId(tableId, columnId
|
|
3457
|
+
const headId = useMemo10(() => getHeaderCellId(tableId, columnId), [tableId, columnId]);
|
|
3456
3458
|
const isResizingRef = useRef5(false);
|
|
3457
3459
|
const resizer = useMemo10(
|
|
3458
3460
|
() => resizable ?? true ? Resizer(
|
|
@@ -3461,9 +3463,9 @@ var HeadCell = (props) => {
|
|
|
3461
3463
|
(isResizing) => {
|
|
3462
3464
|
isResizingRef.current = isResizing;
|
|
3463
3465
|
},
|
|
3464
|
-
onAutoFit ? () => onAutoFit(columnId
|
|
3466
|
+
onAutoFit ? () => onAutoFit(columnId) : void 0
|
|
3465
3467
|
) : null,
|
|
3466
|
-
[resizable, ref, colRef, onAutoFit, columnId
|
|
3468
|
+
[resizable, ref, colRef, onAutoFit, columnId]
|
|
3467
3469
|
);
|
|
3468
3470
|
const style = useMemo10(
|
|
3469
3471
|
() => ({
|
|
@@ -3733,7 +3735,7 @@ var BodyCell = (props) => {
|
|
|
3733
3735
|
{
|
|
3734
3736
|
ref: cellRef,
|
|
3735
3737
|
key: field,
|
|
3736
|
-
headers: getHeaderCellId(tableId, props.columnId
|
|
3738
|
+
headers: getHeaderCellId(tableId, props.columnId),
|
|
3737
3739
|
sx: {
|
|
3738
3740
|
textAlign: getTextAlign({ type }),
|
|
3739
3741
|
verticalAlign: editMode ? "top" : "middle",
|
|
@@ -5590,7 +5592,7 @@ var ModalOverflow = MotionModalOverflow;
|
|
|
5590
5592
|
ModalOverflow.displayName = "ModalOverflow";
|
|
5591
5593
|
var ModalFrame = React29.forwardRef((props, ref) => {
|
|
5592
5594
|
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
5593
|
-
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));
|
|
5594
5596
|
});
|
|
5595
5597
|
ModalFrame.displayName = "ModalFrame";
|
|
5596
5598
|
|
|
@@ -5871,7 +5873,7 @@ import {
|
|
|
5871
5873
|
MenuButton as JoyMenuButton2,
|
|
5872
5874
|
IconButton as JoyIconButton2
|
|
5873
5875
|
} from "@mui/joy";
|
|
5874
|
-
var MenuButtonRootSlot = React33.forwardRef(function MenuButtonRootSlot2({ as, ...rest }, ref) {
|
|
5876
|
+
var MenuButtonRootSlot = React33.forwardRef(function MenuButtonRootSlot2({ as, ownerState: _ownerState, ...rest }, ref) {
|
|
5875
5877
|
return /* @__PURE__ */ React33.createElement(JoyIconButton2, { ...rest, component: as ?? "button", ref });
|
|
5876
5878
|
});
|
|
5877
5879
|
function IconMenuButtonInner(props, ref) {
|
|
@@ -5909,7 +5911,8 @@ function IconMenuButtonInner(props, ref) {
|
|
|
5909
5911
|
slots: { root: MenuButtonRootSlot },
|
|
5910
5912
|
slotProps: {
|
|
5911
5913
|
root: {
|
|
5912
|
-
|
|
5914
|
+
// 기본값 'button'은 MenuButtonRootSlot 한 곳에만 둔다.
|
|
5915
|
+
component: props.buttonComponent,
|
|
5913
5916
|
size,
|
|
5914
5917
|
variant,
|
|
5915
5918
|
color,
|