@croquiscom/pds 15.13.1 → 15.15.0
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/CHANGELOG.md +12 -0
- package/dist/components/date-picker/DatePickerMask.d.ts +1 -1
- package/dist/components/list/List.stories.d.ts +1 -0
- package/dist/components/list-item/ListItem.d.ts +7 -1
- package/dist/components/list-item/styles.d.ts +1 -1
- package/dist/components/table/DataTable.d.ts +9 -0
- package/dist/components/table/DataTable.stories.d.ts +1 -0
- package/dist/components/table/types.d.ts +7 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/zIndex.d.ts +2 -1
- package/package.json +1 -1
- package/plugin/generate_svg/ui.html +1 -1
- package/plugin/generate_svg/ui.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
export declare const DatePickerMask: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
4
5
|
color?: string | undefined;
|
|
5
6
|
suppressHydrationWarning?: boolean | undefined;
|
|
6
7
|
className?: string | undefined;
|
|
@@ -231,7 +232,6 @@ export declare const DatePickerMask: import("@emotion/styled").StyledComponent<{
|
|
|
231
232
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
232
233
|
contextMenu?: string | undefined;
|
|
233
234
|
dir?: string | undefined;
|
|
234
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
235
235
|
hidden?: boolean | undefined;
|
|
236
236
|
nonce?: string | undefined;
|
|
237
237
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -8,6 +8,12 @@ export interface ListItemProps<T = string> {
|
|
|
8
8
|
* @default false
|
|
9
9
|
*/
|
|
10
10
|
draggable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
/**
|
|
13
|
+
* 드래그 오버레이된 항목 여부
|
|
14
|
+
* @see draggable
|
|
15
|
+
*/
|
|
16
|
+
draggingOverlay?: boolean;
|
|
11
17
|
/**
|
|
12
18
|
* draggable=true이면, index는 필수값이 된다
|
|
13
19
|
* @see draggable
|
|
@@ -32,4 +38,4 @@ export interface ListItemProps<T = string> {
|
|
|
32
38
|
*/
|
|
33
39
|
onPin?: (fixed: boolean, index?: number) => void;
|
|
34
40
|
}
|
|
35
|
-
export declare const ListItem: <T extends string>({ id, isOn, fixed, disabled, text, draggable, index, onToggle, onPin, }: ListItemProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const ListItem: <T extends string>({ id, isOn, fixed, disabled, text, draggable, draggingOverlay, index, onToggle, onPin, }: ListItemProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -828,5 +828,5 @@ export declare const getItemStyle: (isDragging: boolean, style?: React.CSSProper
|
|
|
828
828
|
export declare const item_base_css: import("@emotion/utils").SerializedStyles;
|
|
829
829
|
export declare const pin_base_css: import("@emotion/utils").SerializedStyles;
|
|
830
830
|
export declare const getStylesByPinned: (isFixed: boolean) => import("@emotion/utils").SerializedStyles;
|
|
831
|
-
export declare const getDraggableStyle: (isDragging: boolean, disabled: boolean | undefined) => import("@emotion/utils").SerializedStyles;
|
|
831
|
+
export declare const getDraggableStyle: (isDragging: boolean, isDraggingOverlay: boolean, disabled: boolean | undefined) => import("@emotion/utils").SerializedStyles;
|
|
832
832
|
export declare const three_bars_base_css: import("@emotion/utils").SerializedStyles;
|
|
@@ -107,6 +107,15 @@ export interface DataTableProps<DataType> {
|
|
|
107
107
|
* @default true
|
|
108
108
|
*/
|
|
109
109
|
expandableButton?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* 테이블 로우 확장 상태
|
|
112
|
+
* - 각 테이블 로우에 고유 key가 존재해야 합니다.
|
|
113
|
+
*/
|
|
114
|
+
rowExpansion?: Key[];
|
|
115
|
+
/**
|
|
116
|
+
* 확장된 로우의 키 리스트를 전달합니다.
|
|
117
|
+
*/
|
|
118
|
+
onExpandRows?: (expandedRowKeys: Key[]) => void;
|
|
110
119
|
/**
|
|
111
120
|
* 열 하위에 확장된 Row를 렌더링합니다.
|
|
112
121
|
* - 각 테이블 로우에 고유 key가 존재해야 합니다.
|
|
@@ -37,4 +37,5 @@ export declare const CustomRowColor: Story;
|
|
|
37
37
|
export declare const DisabledCellOff: Story;
|
|
38
38
|
export declare const ExpandableRow: Story;
|
|
39
39
|
export declare const ExpandableRowNoButton: Story;
|
|
40
|
+
export declare const BeforehandExpansionByKey: Story;
|
|
40
41
|
export declare const WrapperSticky: Story;
|
|
@@ -109,6 +109,7 @@ export interface DataTableState<DataType = any> {
|
|
|
109
109
|
emitSelectedEvent?: boolean;
|
|
110
110
|
autoResetRowSelection?: boolean;
|
|
111
111
|
expandedRows?: Key[];
|
|
112
|
+
emitExpandedEvent?: boolean;
|
|
112
113
|
}
|
|
113
114
|
export interface SelectRowsAction<DataType> {
|
|
114
115
|
type: 'SELECT_ROWS';
|
|
@@ -137,4 +138,9 @@ export interface ExpandedRowAction<DataType> {
|
|
|
137
138
|
row: DataTableRowType<DataType>;
|
|
138
139
|
expanded: boolean;
|
|
139
140
|
}
|
|
140
|
-
export
|
|
141
|
+
export interface ExpandControlledRowAction<DataType> {
|
|
142
|
+
type: 'EXPAND_CONTROLLED_ROW';
|
|
143
|
+
expandedRows: Key[];
|
|
144
|
+
rows: DataTableRowsType<DataType>;
|
|
145
|
+
}
|
|
146
|
+
export type DataTableAction<DataType> = SelectRowsAction<DataType> | SelectRowAction<DataType> | SelectControlledRowAction<DataType> | ResetSelectRowsAction | CheckAllSelectedRowsAction<DataType> | ExpandedRowAction<DataType> | ExpandControlledRowAction<DataType>;
|