@croquiscom/pds 2.4.2 → 2.5.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 +9 -0
- package/dist/components/table/Table.d.ts +6 -0
- package/dist/components/table/Table.stories.d.ts +1 -0
- package/dist/components/table/reducer.d.ts +1 -0
- package/dist/components/table/types.d.ts +5 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -49,6 +49,12 @@ export interface TableProps<DataType> {
|
|
|
49
49
|
* - Key[]: 키목록으로 전달할 경우 해당 키를 포함하는 row 목록 선택 상태가 업데이트됩니다.
|
|
50
50
|
*/
|
|
51
51
|
rowSelection?: RowSelectState<DataType>;
|
|
52
|
+
/**
|
|
53
|
+
* 자동 Row 전체 select 상태 초기화 여부
|
|
54
|
+
* - rows 변경시 자동으로 row 선택이 초기화됩니다.
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
autoResetRowSelection?: boolean;
|
|
52
58
|
/**
|
|
53
59
|
* Table 데이터가 없을 경우 노출되는 텍스트를 지정할 수 있습니다.
|
|
54
60
|
* @default '데이터가 없습니다'
|
|
@@ -20,6 +20,7 @@ export declare const ColumnFixed: any;
|
|
|
20
20
|
export declare const StickyHeader: any;
|
|
21
21
|
export declare const Scroll: any;
|
|
22
22
|
export declare const Selection: any;
|
|
23
|
+
export declare const ResetSelectedRows: any;
|
|
23
24
|
export declare const BeforehandSelectionByKey: any;
|
|
24
25
|
export declare const BeforehandSelectionByFunction: any;
|
|
25
26
|
export declare const Sort: any;
|
|
@@ -79,6 +79,7 @@ export interface TableState<DataType = unknown> {
|
|
|
79
79
|
selectedRowsKey?: Key[];
|
|
80
80
|
selectedRows?: TableRowsType<DataType>;
|
|
81
81
|
emitSelectedEvent?: boolean;
|
|
82
|
+
autoResetRowSelection?: boolean;
|
|
82
83
|
}
|
|
83
84
|
export interface SelectRowsAction<DataType> {
|
|
84
85
|
type: 'SELECT_ROWS';
|
|
@@ -95,4 +96,7 @@ export interface SelectControlledRowAction<DataType> {
|
|
|
95
96
|
rows: TableRowsType<DataType>;
|
|
96
97
|
totalRowCount: number;
|
|
97
98
|
}
|
|
98
|
-
export
|
|
99
|
+
export interface ResetSelectRows {
|
|
100
|
+
type: 'RESET_SELECT_ROWS';
|
|
101
|
+
}
|
|
102
|
+
export type TableAction<DataType> = SelectRowsAction<DataType> | SelectRowAction<DataType> | SelectControlledRowAction<DataType> | ResetSelectRows;
|