ados-rcm 1.1.176 → 1.1.177

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,11 +39,11 @@ export interface IADatePickerProps extends IABaseProps {
39
39
  */
40
40
  className?: string;
41
41
  /**
42
- * useDate? : TUseValues<Date | undefined>
42
+ * useDate? : TUseValues<Date | undefined, Date>
43
43
  *
44
44
  * Description : useDate of ADatePicker
45
45
  */
46
- useDate?: TUseValues<Date | undefined>;
46
+ useDate?: TUseValues<Date | undefined, Date>;
47
47
  /**
48
48
  * position? : EDir12 = EDir12.SE
49
49
  *
@@ -86,6 +86,12 @@ export interface IADatePickerProps extends IABaseProps {
86
86
  * Description : RightAddon of ADatePicker
87
87
  */
88
88
  RightAddon?: React.ReactNode;
89
+ /**
90
+ * CalendarHeaderAddon? : React.ReactNode
91
+ *
92
+ * Description : CalendarHeaderAddon of ADatePicker
93
+ */
94
+ CalendarHeaderAddon?: React.ReactNode;
89
95
  /**
90
96
  * resources? : Partial<typeof Resources.ADatePicker>
91
97
  *
@@ -17,21 +17,15 @@ export interface IDateRange {
17
17
  }
18
18
  export interface IADateRangePickerProps extends Omit<IADatePickerProps, 'useDate'> {
19
19
  /**
20
- * useDateRange : TUseValues<IDateRange | undefined>;
20
+ * useDateRange : TUseValues<IDateRange | undefined, IDateRange>;
21
21
  *
22
22
  * Description : useDateRange of ADateRangePicker
23
23
  */
24
- useDateRange?: TUseValues<IDateRange | undefined>;
24
+ useDateRange?: TUseValues<IDateRange | undefined, IDateRange>;
25
25
  /**
26
26
  * yearsOptionSize? : number = 5
27
27
  */
28
28
  yearsOptionSize?: number;
29
- /**
30
- * noDefaultChoices? : boolean;
31
- *
32
- * Description : don't use default choices of ADateRangePicker
33
- */
34
- noDefaultChoices?: boolean;
35
29
  /**
36
30
  * resources : Partial<typeof Resources.ADateRangePicker>;
37
31
  *
@@ -22,10 +22,6 @@ export declare const Resources: {
22
22
  weekDays: (n: number) => string;
23
23
  months: (n: number) => string;
24
24
  'Select DateRange': string;
25
- '1\uC77C': string;
26
- '1\uC8FC\uC77C': string;
27
- '1\uAC1C\uC6D4': string;
28
- '3\uAC1C\uC6D4': string;
29
25
  };
30
26
  AFileBox: {
31
27
  'drop file to select': string;
@@ -140,6 +140,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
140
140
  * Description : value of the String filter
141
141
  */
142
142
  value?: string;
143
+ /**
144
+ * clearValue? : string
145
+ *
146
+ * Description : value will be set to clearValue when the clear button is clicked.
147
+ */
148
+ clearValue?: string;
143
149
  /**
144
150
  * icon? : TIcons = 'Info'
145
151
  *
@@ -147,7 +153,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
147
153
  */
148
154
  icon?: TIcons;
149
155
  /**
150
- * iconTooltip? : React.ReactNode = def.Name ?? placeholder
156
+ * iconTooltip? : React.ReactNode = placeholder
151
157
  *
152
158
  * Description : tooltip of the filter icon.
153
159
  */
@@ -165,7 +171,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
165
171
  */
166
172
  predicate?: (item: T, defs: TATableDefs<T>, filterKey: keyof T | string, filter: IATableFilter<T>['String']) => any;
167
173
  /**
168
- * placeholder? : string = def.Name
174
+ * placeholder? : string = tableDef.HContent
169
175
  *
170
176
  * Description : placeholder of the String filter
171
177
  * default is tableDef.HContent
@@ -203,6 +209,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
203
209
  * Description : values of the Select filter
204
210
  */
205
211
  value?: string | number | null;
212
+ /**
213
+ * clearValue? : string | number | null
214
+ *
215
+ * Description : value will be set to clearValue when the clear button is clicked.
216
+ */
217
+ clearValue?: string | number | null;
206
218
  /**
207
219
  * icon? : TIcons = 'Info'
208
220
  *
@@ -210,7 +222,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
210
222
  */
211
223
  icon?: TIcons;
212
224
  /**
213
- * iconTooltip? : React.ReactNode = def.Name ?? placeholder
225
+ * iconTooltip? : React.ReactNode = placeholder
214
226
  *
215
227
  * Description : tooltip of the filter icon.
216
228
  */
@@ -228,7 +240,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
228
240
  */
229
241
  options: string[] | number[];
230
242
  /**
231
- * placeholder : string = def.Name
243
+ * placeholder : string
232
244
  *
233
245
  * Description : placeholder of the Select filter
234
246
  */
@@ -261,6 +273,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
261
273
  * Description : value of the Date filter
262
274
  */
263
275
  value?: Date;
276
+ /**
277
+ * clearValue? : Date
278
+ *
279
+ * Description : value will be set to clearValue when the clear button is clicked.
280
+ */
281
+ clearValue?: Date;
264
282
  /**
265
283
  * icon? : TIcons = 'Info'
266
284
  *
@@ -268,7 +286,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
268
286
  */
269
287
  icon?: TIcons;
270
288
  /**
271
- * iconTooltip? : React.ReactNode = def.Name ?? placeholder
289
+ * iconTooltip? : React.ReactNode = placeholder
272
290
  *
273
291
  * Description : tooltip of the filter icon.
274
292
  */
@@ -280,7 +298,7 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
280
298
  */
281
299
  filterKey?: keyof K;
282
300
  /**
283
- * placeholder : string = def.Name
301
+ * placeholder : string
284
302
  *
285
303
  * Description : placeholder of the Date filter
286
304
  */
@@ -317,6 +335,12 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
317
335
  * Description : value of the DateRange filter
318
336
  */
319
337
  value?: IDateRange;
338
+ /**
339
+ * clearValue? : IDateRange
340
+ *
341
+ * Description : value will be set to clearValue when the clear button is clicked.
342
+ */
343
+ clearValue?: IDateRange;
320
344
  /**
321
345
  * icon? : TIcons = 'Info'
322
346
  *
@@ -324,13 +348,13 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
324
348
  */
325
349
  icon?: TIcons;
326
350
  /**
327
- * iconTooltip? : React.ReactNode = def.Name ?? placeholder
351
+ * iconTooltip? : React.ReactNode = placeholder
328
352
  *
329
353
  * Description : tooltip of the filter icon.
330
354
  */
331
355
  iconTooltip?: React.ReactNode;
332
356
  /**
333
- * placeholder : string = def.Name
357
+ * placeholder : string
334
358
  *
335
359
  * Description : placeholder of the Select filter
336
360
  */
@@ -365,12 +389,6 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
365
389
  * Description : predicate of the DateRange filter. if not provided, it will have default predicate.
366
390
  */
367
391
  predicate?: (item: T, defs: TATableDefs<T>, filterKey: keyof T, filter: IATableFilter<T>['DateRange']) => any;
368
- /**
369
- * noDefaultChoices? : boolean
370
- *
371
- * Description : if true, default choices will not be shown.
372
- */
373
- noDefaultChoices?: boolean;
374
392
  };
375
393
  }
376
394
  export type TATableSomeFilter<T extends IItem, K extends IItem = any> = IATableFilter<T, K>[TATableFilterType];