@true-engineering/true-react-common-ui-kit 4.0.0-alpha71 → 4.0.0-alpha72
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.
|
@@ -78,6 +78,12 @@ export interface ICustomRangeConfigItem<Value> extends IConfigItemBasicBase<Valu
|
|
|
78
78
|
component: CustomComponent<Value>;
|
|
79
79
|
valueViewType?: 'range';
|
|
80
80
|
}
|
|
81
|
+
export interface ICustomSingularConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
82
|
+
[key: string & {}]: any;
|
|
83
|
+
type: 'custom';
|
|
84
|
+
component: CustomComponent<Value>;
|
|
85
|
+
getSelectedValue?: (v: Value) => ReactNode;
|
|
86
|
+
}
|
|
81
87
|
export interface ICustomMultipleConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
82
88
|
[key: string & {}]: any;
|
|
83
89
|
type: 'custom';
|
|
@@ -85,7 +91,7 @@ export interface ICustomMultipleConfigItem<Value> extends IConfigItemBasicBase<V
|
|
|
85
91
|
valueViewType?: 'multiple';
|
|
86
92
|
getSelectedValue?: (v: ICustomValue<Value>) => ReactNode;
|
|
87
93
|
}
|
|
88
|
-
export type ICustomConfigItem<Value> = ICustomRangeConfigItem<Value> | ICustomMultipleConfigItem<Value>;
|
|
94
|
+
export type ICustomConfigItem<Value> = ICustomRangeConfigItem<Value> | ICustomSingularConfigItem<Value> | ICustomMultipleConfigItem<Value>;
|
|
89
95
|
export type ConfigItem<Value> = ISelectConfigItem<Value> | IMultiSelectConfigItem<Value> | ICustomConfigItem<Value> | IDateRangeWithoutPeriodConfigItem<Value> | IDateRangeConfigItem<Value> | IDatePickerSingleConfigItem<Value> | IIntervalConfigItem<Value> | IBooleanConfigItem<Value>;
|
|
90
96
|
export type ConfigType<Values> = {
|
|
91
97
|
[K in keyof Values]: ConfigItem<Values[K]>;
|
package/package.json
CHANGED
|
@@ -117,6 +117,13 @@ export interface ICustomRangeConfigItem<Value> extends IConfigItemBasicBase<Valu
|
|
|
117
117
|
valueViewType?: 'range';
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
export interface ICustomSingularConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
121
|
+
[key: string & {}]: any;
|
|
122
|
+
type: 'custom';
|
|
123
|
+
component: CustomComponent<Value>;
|
|
124
|
+
getSelectedValue?: (v: Value) => ReactNode;
|
|
125
|
+
}
|
|
126
|
+
|
|
120
127
|
export interface ICustomMultipleConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
121
128
|
[key: string & {}]: any;
|
|
122
129
|
type: 'custom';
|
|
@@ -127,6 +134,7 @@ export interface ICustomMultipleConfigItem<Value> extends IConfigItemBasicBase<V
|
|
|
127
134
|
|
|
128
135
|
export type ICustomConfigItem<Value> =
|
|
129
136
|
| ICustomRangeConfigItem<Value>
|
|
137
|
+
| ICustomSingularConfigItem<Value>
|
|
130
138
|
| ICustomMultipleConfigItem<Value>;
|
|
131
139
|
|
|
132
140
|
export type ConfigItem<Value> =
|