@croquiscom/pds 4.2.2 → 4.3.1
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/table/Table.stories.d.ts +1 -0
- package/dist/components/table/storybook-helper/custom.argTypes.d.ts +11 -0
- package/dist/components/table/storybook-helper/sampleData.d.ts +3 -0
- package/dist/components/table/types.d.ts +4 -0
- package/dist/index.es.js +3 -3
- 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,5 +49,16 @@ export interface HelperTableRowsTypeProps {
|
|
|
49
49
|
* - DataType & { key: Key }
|
|
50
50
|
*/
|
|
51
51
|
key?: Key;
|
|
52
|
+
/**
|
|
53
|
+
* selectableRows가 true일 경우 체크박스 비활성화 여부를 제어합니다.
|
|
54
|
+
* - DataType & { selectable: boolean }
|
|
55
|
+
*/
|
|
56
|
+
selectable?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 체크박스 비활성화 및 row의 비활성화 스타일 여부를 제어합니다.
|
|
59
|
+
* - selectable에 우선하므로 disabled 스타일을 적용할 경우 disabled만 지정할 것을 권장드립니다.
|
|
60
|
+
* - DataType & { disabled: boolean }
|
|
61
|
+
*/
|
|
62
|
+
disabled?: boolean;
|
|
52
63
|
}
|
|
53
64
|
export declare const HelperTableRowsType: (props: HelperTableRowsTypeProps) => any;
|
|
@@ -2,7 +2,9 @@ import { Key } from 'react';
|
|
|
2
2
|
import { TableColumnsType, TableRowsType } from '../index';
|
|
3
3
|
export interface DataType {
|
|
4
4
|
key?: Key;
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
id: number;
|
|
7
|
+
image?: string;
|
|
6
8
|
name: string;
|
|
7
9
|
engName?: string;
|
|
8
10
|
code: number;
|
|
@@ -24,3 +26,4 @@ export declare const selectionRows: TableRowsType<DataType>;
|
|
|
24
26
|
export declare const selectionRows2: TableRowsType<DataType>;
|
|
25
27
|
export declare const sortColumns: TableColumnsType<DataType>;
|
|
26
28
|
export declare const customRowStyleColumns: TableColumnsType<DataType>;
|
|
29
|
+
export declare const comprehensiveCustomColumns: TableColumnsType<DataType>;
|
|
@@ -72,6 +72,10 @@ export type TableColumnsType<DataType = unknown> = Array<TableColumnType<DataTyp
|
|
|
72
72
|
export type TableRowType<DataType> = DataType & {
|
|
73
73
|
key?: Key;
|
|
74
74
|
selectable?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* 테이블 로우의 disabled 여부를 지정합니다. selectable 보다 우선합니다.
|
|
77
|
+
*/
|
|
78
|
+
disabled?: boolean;
|
|
75
79
|
};
|
|
76
80
|
export type TableRowsType<DataType = unknown> = Array<TableRowType<DataType>>;
|
|
77
81
|
export interface TableState<DataType = unknown> {
|