ados-rcm 1.1.168 → 1.1.170
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AModule/AComponents/AButton/AThemeButton.d.ts +1 -1
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +6 -0
- package/dist/AModule/AComponents/AFrame/AFrame.d.ts +2 -2
- package/dist/AModule/AComponents/ATable/ATable.d.ts +72 -1
- package/dist/AModule/AComponents/ATable/ATableFilter.d.ts +2 -1
- package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +2 -1
- package/dist/AModule/AComponents/ATheme/ATheme.d.ts +149 -430
- package/dist/index.cjs.js +31 -31
- package/dist/index.d.ts +1 -2
- package/dist/index.es.js +6051 -5994
- package/package.json +1 -1
- package/dist/AModule/AComponents/ATheme/ATheme2.d.ts +0 -207
- package/dist/AModule/AHooks/useTheme.d.ts +0 -8
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IABaseProps } from '../ABase/ABase';
|
2
|
-
import { TSemanticModes } from '../ATheme/
|
2
|
+
import { TSemanticModes } from '../ATheme/ATheme';
|
3
3
|
export interface IAThemeButtonProps extends Omit<IABaseProps, 'onChange'> {
|
4
4
|
onChange?: (newSemanticMode: TSemanticModes) => void;
|
5
5
|
}
|
@@ -68,6 +68,12 @@ export interface IADatePickerProps extends IABaseProps {
|
|
68
68
|
* Description : maximum date of ADatePicker. default is a year later from now
|
69
69
|
*/
|
70
70
|
maxDate?: Date;
|
71
|
+
/**
|
72
|
+
* placeholder? : string
|
73
|
+
*
|
74
|
+
* Description : placeholder of ADatePicker
|
75
|
+
*/
|
76
|
+
placeholder?: string;
|
71
77
|
/**
|
72
78
|
* LeftAddon? : React.ReactNode
|
73
79
|
*
|
@@ -78,11 +78,11 @@ export interface IADivideFrameProps extends DetailedHTMLProps<React.HTMLAttribut
|
|
78
78
|
*/
|
79
79
|
lefts: number[];
|
80
80
|
/**
|
81
|
-
* minLength? : number =
|
81
|
+
* minLength? : number = 40
|
82
82
|
*
|
83
83
|
* Description : decides the minimum length of each child frame. The length is the width when direction is 'Row' and the height when direction is 'Col'.
|
84
84
|
*/
|
85
|
-
minLength?: number;
|
85
|
+
minLength?: number | number[];
|
86
86
|
/**
|
87
87
|
* children : React.ReactNode | React.ReactNode[]
|
88
88
|
*
|
@@ -6,6 +6,7 @@ import { IABaseProps } from '../ABase/ABase';
|
|
6
6
|
import { IDateRange } from '../ADatePicker/ADateRangePicker';
|
7
7
|
import { Resources } from '../AResource/AResource';
|
8
8
|
import { TActionRef, TIdx, TPromisable } from '../ATypes/ATypes';
|
9
|
+
import { TIcons } from '../AIcon/AIcon';
|
9
10
|
export interface IATableTHProps<T extends IItem> {
|
10
11
|
/**
|
11
12
|
* defKey : TIdx
|
@@ -67,6 +68,15 @@ export interface IATableDef<T extends IItem> {
|
|
67
68
|
* Description : content of the th
|
68
69
|
*/
|
69
70
|
hContent?: TCanCallback<IATableTHProps<T>, React.ReactNode>;
|
71
|
+
/**
|
72
|
+
* name? : string
|
73
|
+
*
|
74
|
+
* Description : name of the column. if proivded, it will be used as the followings.
|
75
|
+
* - hContent (but hContent will be first in priority)
|
76
|
+
* - filter placeholder
|
77
|
+
* - filter iconTooltip
|
78
|
+
*/
|
79
|
+
name?: string;
|
70
80
|
/**
|
71
81
|
* hStyle? : TCanCallback<IATableTHProps<T>, React.CSSProperties>
|
72
82
|
*
|
@@ -136,6 +146,18 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
136
146
|
* Description : value will be set to clearValue when the clear button is clicked.
|
137
147
|
*/
|
138
148
|
clearValue?: string;
|
149
|
+
/**
|
150
|
+
* icon? : TIcons = 'Info'
|
151
|
+
*
|
152
|
+
* Description : icon of the String filter
|
153
|
+
*/
|
154
|
+
icon?: TIcons;
|
155
|
+
/**
|
156
|
+
* iconTooltip? : React.ReactNode = placeholder
|
157
|
+
*
|
158
|
+
* Description : tooltip of the filter icon.
|
159
|
+
*/
|
160
|
+
iconTooltip?: React.ReactNode;
|
139
161
|
/**
|
140
162
|
* filterKey? : keyof K = [key of this filter]
|
141
163
|
*
|
@@ -149,9 +171,10 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
149
171
|
*/
|
150
172
|
predicate?: (item: T, defs: TATableDefs<T>, filterKey: keyof T | string, filter: IATableFilter<T>['String']) => any;
|
151
173
|
/**
|
152
|
-
* placeholder? : string
|
174
|
+
* placeholder? : string = tableDef.HContent
|
153
175
|
*
|
154
176
|
* Description : placeholder of the String filter
|
177
|
+
* default is tableDef.HContent
|
155
178
|
*/
|
156
179
|
placeholder?: string;
|
157
180
|
/**
|
@@ -192,6 +215,18 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
192
215
|
* Description : value will be set to clearValue when the clear button is clicked.
|
193
216
|
*/
|
194
217
|
clearValue?: string | number | null;
|
218
|
+
/**
|
219
|
+
* icon? : TIcons = 'Info'
|
220
|
+
*
|
221
|
+
* Description : icon of the String filter
|
222
|
+
*/
|
223
|
+
icon?: TIcons;
|
224
|
+
/**
|
225
|
+
* iconTooltip? : React.ReactNode = placeholder
|
226
|
+
*
|
227
|
+
* Description : tooltip of the filter icon.
|
228
|
+
*/
|
229
|
+
iconTooltip?: React.ReactNode;
|
195
230
|
/**
|
196
231
|
* filterKey? : keyof K = [key of this filter]
|
197
232
|
*
|
@@ -244,12 +279,30 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
244
279
|
* Description : value will be set to clearValue when the clear button is clicked.
|
245
280
|
*/
|
246
281
|
clearValue?: Date;
|
282
|
+
/**
|
283
|
+
* icon? : TIcons = 'Info'
|
284
|
+
*
|
285
|
+
* Description : icon of the String filter
|
286
|
+
*/
|
287
|
+
icon?: TIcons;
|
288
|
+
/**
|
289
|
+
* iconTooltip? : React.ReactNode = placeholder
|
290
|
+
*
|
291
|
+
* Description : tooltip of the filter icon.
|
292
|
+
*/
|
293
|
+
iconTooltip?: React.ReactNode;
|
247
294
|
/**
|
248
295
|
* filterKey? : keyof K = [key of this filter]
|
249
296
|
*
|
250
297
|
* Description : filterKey of the filter. if not provided, it will use the key of the filter. This is used when to make apiParams using tableF.getFilterParams()
|
251
298
|
*/
|
252
299
|
filterKey?: keyof K;
|
300
|
+
/**
|
301
|
+
* placeholder : string
|
302
|
+
*
|
303
|
+
* Description : placeholder of the Date filter
|
304
|
+
*/
|
305
|
+
placeholder?: string;
|
253
306
|
/**
|
254
307
|
* minDate? : Date
|
255
308
|
*
|
@@ -288,6 +341,24 @@ export interface IATableFilter<T extends IItem, K extends IItem = any> {
|
|
288
341
|
* Description : value will be set to clearValue when the clear button is clicked.
|
289
342
|
*/
|
290
343
|
clearValue?: IDateRange;
|
344
|
+
/**
|
345
|
+
* icon? : TIcons = 'Info'
|
346
|
+
*
|
347
|
+
* Description : icon of the String filter
|
348
|
+
*/
|
349
|
+
icon?: TIcons;
|
350
|
+
/**
|
351
|
+
* iconTooltip? : React.ReactNode = placeholder
|
352
|
+
*
|
353
|
+
* Description : tooltip of the filter icon.
|
354
|
+
*/
|
355
|
+
iconTooltip?: React.ReactNode;
|
356
|
+
/**
|
357
|
+
* placeholder : string
|
358
|
+
*
|
359
|
+
* Description : placeholder of the Select filter
|
360
|
+
*/
|
361
|
+
placeholder?: string;
|
291
362
|
/**
|
292
363
|
* sFilterKey : keyof K
|
293
364
|
*
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { TUseValues } from '../../AHooks/useValues';
|
2
2
|
import { IItem } from '../../AUtils/objF';
|
3
3
|
import { Resources } from '../AResource/AResource';
|
4
|
-
import { TATableFilteration } from './ATable';
|
4
|
+
import { TATableDefs, TATableFilteration } from './ATable';
|
5
5
|
import { IATableFilterF } from './ATableHeader';
|
6
6
|
interface IATableFilterProps<T extends IItem> {
|
7
|
+
defs: TATableDefs<T>;
|
7
8
|
useFilteration: TUseValues<TATableFilteration<T>>;
|
8
9
|
hasToggleFilteration: boolean;
|
9
10
|
filterF: IATableFilterF;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { IItem } from '../../AUtils/objF';
|
3
3
|
import { TUseValues } from '../../AHooks/useValues';
|
4
|
-
import { TATableFilteration } from './ATable';
|
4
|
+
import { TATableDefs, TATableFilteration } from './ATable';
|
5
5
|
import { Resources } from '../AResource/AResource';
|
6
6
|
export interface IATableFilterF {
|
7
7
|
apply: () => void;
|
@@ -9,6 +9,7 @@ export interface IATableFilterF {
|
|
9
9
|
clear: () => void;
|
10
10
|
}
|
11
11
|
export interface IATableHeaderProps<T extends IItem> {
|
12
|
+
defs: TATableDefs<T>;
|
12
13
|
title?: React.ReactNode;
|
13
14
|
totalCount: number;
|
14
15
|
useCheck?: TUseValues<T[]>;
|