@croquiscom/pds 4.2.1 → 4.3.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 4.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 89a9f32: 테이블 로우에 disabled 속성 및 스타일을 추가한다.
8
+
9
+ ## 4.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 9630b99: DateRangePicker querySelectorAll TypeError
14
+
3
15
  ## 4.2.1
4
16
 
5
17
  ### Patch Changes
@@ -27,3 +27,4 @@ export declare const BeforehandSelectionByKey: any;
27
27
  export declare const BeforehandSelectionByFunction: any;
28
28
  export declare const Sort: any;
29
29
  export declare const WithPagination: any;
30
+ export declare const Disabled: any;
@@ -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> {