ados-rcm 1.1.457 → 1.1.459
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/dist/AModule/AComponents/ABase/ABase.d.ts +21 -21
- package/dist/AModule/AComponents/AButton/AButton.d.ts +6 -6
- package/dist/AModule/AComponents/AButton/AIconButton.d.ts +6 -6
- package/dist/AModule/AComponents/ACheckBox/ACheckBox.d.ts +6 -6
- package/dist/AModule/AComponents/AChip/AChip.d.ts +24 -24
- package/dist/AModule/AComponents/AClock/AClock.d.ts +21 -21
- package/dist/AModule/AComponents/ADatePicker/ADatePicker.d.ts +36 -36
- package/dist/AModule/AComponents/ADatePicker/ADateRangePicker.d.ts +15 -15
- package/dist/AModule/AComponents/ADialog/ADialog.d.ts +93 -93
- package/dist/AModule/AComponents/AEditor/AEditor.d.ts +22 -14
- package/dist/AModule/AComponents/AEditor/modules/TableUI.d.ts +2 -2
- package/dist/AModule/AComponents/AFileBox/AFileBox.d.ts +24 -24
- package/dist/AModule/AComponents/AFileUploder/AFileUploader.d.ts +7 -7
- package/dist/AModule/AComponents/AFloatMenu/AFloatMenu.d.ts +35 -35
- package/dist/AModule/AComponents/AFrame/AFrame.d.ts +45 -45
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +1 -1
- package/dist/AModule/AComponents/AInput/AInput.d.ts +45 -45
- package/dist/AModule/AComponents/AInput/ANumInput.d.ts +3 -3
- package/dist/AModule/AComponents/AListView/AListView.d.ts +26 -26
- package/dist/AModule/AComponents/AProgressBar/AProgressBar.d.ts +27 -27
- package/dist/AModule/AComponents/ARadioSelect/ARadioSelect.d.ts +5 -5
- package/dist/AModule/AComponents/ASelect/AMultiSelect.d.ts +39 -39
- package/dist/AModule/AComponents/ASelect/ASelect.d.ts +39 -39
- package/dist/AModule/AComponents/AStepper/AStepper.d.ts +12 -12
- package/dist/AModule/AComponents/ATab/ATab.d.ts +36 -36
- package/dist/AModule/AComponents/ATable/ATable.d.ts +281 -281
- package/dist/AModule/AComponents/ATable/ATableBody.d.ts +19 -19
- package/dist/AModule/AComponents/ATable/ATableFilter.d.ts +5 -5
- package/dist/AModule/AComponents/ATable/ATableFooter.d.ts +4 -4
- package/dist/AModule/AComponents/ATable/ATableHeader.d.ts +12 -12
- package/dist/AModule/AComponents/AText/AText.d.ts +6 -6
- package/dist/AModule/AComponents/ATextArea/ATextArea.d.ts +36 -36
- package/dist/AModule/AComponents/ATheme/ATheme.d.ts +10 -10
- package/dist/AModule/AComponents/ATooltip/ATooltip.d.ts +15 -15
- package/dist/AModule/AComponents/ATree/ATree.d.ts +111 -111
- package/dist/AModule/AComponents/ATree/ATreeItem.d.ts +25 -25
- package/dist/AModule/AComponents/ATree/ATreeSearch.d.ts +7 -7
- package/dist/AModule/AComponents/ATypes/ATypes.d.ts +8 -8
- package/dist/AModule/AComponents/AWrap/AWrap.d.ts +21 -21
- package/dist/AModule/AHooks/useDB.d.ts +1 -1
- package/dist/AModule/ANetwork/APIContext.d.ts +6 -6
- package/dist/AModule/AUtils/bound.d.ts +3 -3
- package/dist/AModule/AUtils/dbF.d.ts +1 -1
- package/dist/index.cjs.js +119 -119
- package/dist/index.es.js +9478 -9388
- package/package.json +12 -10
@@ -8,25 +8,25 @@ import { IATablePagination, IATableSortation, IATableTRProps, TATableDefs, TATab
|
|
8
8
|
export declare const MIN_COLUMN_WIDTH = 25;
|
9
9
|
export declare const DEF_HEADER_HEIGHT = 50;
|
10
10
|
interface IATableBodyProps<T extends IItem> {
|
11
|
+
RowRenderer?: (props: IATableRowProps<T>) => React.ReactNode;
|
12
|
+
appliedFilteration: TATableFilteration<T>;
|
11
13
|
defs: TATableDefs<T>;
|
12
14
|
isEqual: (a: T, b: T) => boolean;
|
13
|
-
rProps?: TCanCallback<IATableTRProps<T>, IABaseProps>;
|
14
|
-
useSelect?: TUseValues<T[]>;
|
15
|
-
isTableDisabled?: string | boolean;
|
16
|
-
isSelectMulti?: boolean;
|
17
|
-
selectDisabled?: (item: T) => string | boolean | undefined;
|
18
|
-
appliedFilteration: TATableFilteration<T>;
|
19
|
-
useSortation: TUseValues<IATableSortation<T> | undefined>;
|
20
|
-
pagination: IATablePagination;
|
21
|
-
pagedItems: T[];
|
22
|
-
noMarking?: boolean;
|
23
|
-
noDefHeader?: boolean;
|
24
15
|
isLoading?: boolean;
|
25
|
-
showRows?: number;
|
26
|
-
RowRenderer?: (props: IATableRowProps<T>) => React.ReactNode;
|
27
16
|
isRowRendered: boolean;
|
28
|
-
|
17
|
+
isSelectMulti?: boolean;
|
18
|
+
isTableDisabled?: string | boolean;
|
19
|
+
noDefHeader?: boolean;
|
20
|
+
noMarking?: boolean;
|
21
|
+
pagedItems: T[];
|
22
|
+
pagination: IATablePagination;
|
23
|
+
rProps?: TCanCallback<IATableTRProps<T>, IABaseProps>;
|
29
24
|
resources: Partial<typeof Resources.ATable>;
|
25
|
+
rowHeight: number;
|
26
|
+
selectDisabled?: (item: T) => string | boolean | undefined;
|
27
|
+
showRows?: number;
|
28
|
+
useSelect?: TUseValues<T[]>;
|
29
|
+
useSortation: TUseValues<IATableSortation<T> | undefined>;
|
30
30
|
}
|
31
31
|
export declare const ATableBody: <T extends IItem>(props: IATableBodyProps<T>) => import("react/jsx-runtime").JSX.Element;
|
32
32
|
export interface IATableRowItem {
|
@@ -34,10 +34,10 @@ export interface IATableRowItem {
|
|
34
34
|
}
|
35
35
|
export type TSpanWidths<T> = {
|
36
36
|
[key in keyof T]?: {
|
37
|
-
|
37
|
+
flexGrow: number;
|
38
38
|
maxWidth?: number;
|
39
|
+
minWidth: number;
|
39
40
|
width: number;
|
40
|
-
flexGrow: number;
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export interface IATableRowProps<T extends IItem> {
|
@@ -46,10 +46,10 @@ export interface IATableRowProps<T extends IItem> {
|
|
46
46
|
markedItem: IATableRowItem;
|
47
47
|
}
|
48
48
|
export interface IATableDefaultRowProps<T extends IItem> extends IATableRowProps<T> {
|
49
|
-
noMarking?: boolean;
|
50
|
-
spanWidths: TSpanWidths<T>;
|
51
|
-
singleFilterValue?: string;
|
52
49
|
isBodyBodyOverflowed: boolean;
|
50
|
+
noMarking?: boolean;
|
53
51
|
rowHeight: number;
|
52
|
+
singleFilterValue?: string;
|
53
|
+
spanWidths: TSpanWidths<T>;
|
54
54
|
}
|
55
55
|
export {};
|
@@ -5,14 +5,14 @@ import { TATableDefs, TATableFilteration } from './ATable';
|
|
5
5
|
import { IATableFilterF } from './ATableHeader';
|
6
6
|
interface IATableFilterProps<T extends IItem> {
|
7
7
|
defs: TATableDefs<T>;
|
8
|
-
useFilteration: TUseValues<TATableFilteration<T>>;
|
9
|
-
hasToggleFilteration: boolean;
|
10
8
|
filterF: IATableFilterF;
|
11
|
-
isRowRendered?: boolean;
|
12
|
-
isFilterSort?: boolean;
|
13
|
-
resources: typeof Resources.ATable;
|
14
9
|
filterType: 'Default' | 'Select';
|
10
|
+
hasToggleFilteration: boolean;
|
11
|
+
isFilterSort?: boolean;
|
12
|
+
isRowRendered?: boolean;
|
15
13
|
placeholder?: string;
|
14
|
+
resources: typeof Resources.ATable;
|
15
|
+
useFilteration: TUseValues<TATableFilteration<T>>;
|
16
16
|
}
|
17
17
|
export declare const ATableFilter: <T extends IItem>(props: IATableFilterProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
18
18
|
export {};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { IATablePagination } from './ATable';
|
2
2
|
export interface IATableFooterProps {
|
3
|
-
pages: number[];
|
4
|
-
rangedPages: number[];
|
5
3
|
pageF: {
|
6
4
|
move: (page: number) => void;
|
7
|
-
movePrev: () => void;
|
8
|
-
moveNext: () => void;
|
9
5
|
moveFirst: () => void;
|
10
6
|
moveLast: () => void;
|
7
|
+
moveNext: () => void;
|
8
|
+
movePrev: () => void;
|
11
9
|
};
|
10
|
+
pages: number[];
|
12
11
|
pagination: IATablePagination;
|
12
|
+
rangedPages: number[];
|
13
13
|
}
|
14
14
|
export declare const ATableFooter: (props: IATableFooterProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -4,26 +4,26 @@ import { Resources } from '../AResource/AResource';
|
|
4
4
|
import { IATableSortation, TATableDefs, TATableFilteration } from './ATable';
|
5
5
|
export interface IATableFilterF {
|
6
6
|
apply: () => void;
|
7
|
-
toggle: () => void;
|
8
7
|
clear: () => void;
|
8
|
+
toggle: () => void;
|
9
9
|
}
|
10
10
|
export interface IATableHeaderProps<T extends IItem> {
|
11
|
+
TopLeftAddon?: React.ReactNode;
|
12
|
+
TopRightAddon?: React.ReactNode;
|
11
13
|
defs: TATableDefs<T>;
|
14
|
+
filterF: IATableFilterF;
|
15
|
+
filterType: 'Default' | 'Select';
|
16
|
+
hasToggleFilteration: boolean;
|
17
|
+
isFiltered?: boolean;
|
18
|
+
isRowRendered?: boolean;
|
19
|
+
noCount?: boolean;
|
20
|
+
noFilter?: boolean;
|
21
|
+
placeholder?: string;
|
22
|
+
resources: typeof Resources.ATable;
|
12
23
|
title?: React.ReactNode;
|
13
24
|
totalCount: number;
|
14
25
|
useCheck?: TUseValues<T[]>;
|
15
26
|
useFilteration: TUseValues<TATableFilteration<T>>;
|
16
|
-
hasToggleFilteration: boolean;
|
17
|
-
filterF: IATableFilterF;
|
18
|
-
noFilter?: boolean;
|
19
|
-
noCount?: boolean;
|
20
|
-
isFiltered?: boolean;
|
21
|
-
TopLeftAddon?: React.ReactNode;
|
22
|
-
TopRightAddon?: React.ReactNode;
|
23
27
|
useSortation: TUseValues<IATableSortation<T> | undefined>;
|
24
|
-
isRowRendered?: boolean;
|
25
|
-
resources: typeof Resources.ATable;
|
26
|
-
filterType: 'Default' | 'Select';
|
27
|
-
placeholder?: string;
|
28
28
|
}
|
29
29
|
export declare const ATableHeader: <T extends IItem>(props: IATableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
interface IATextProps {
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* style? : 'bold' | React.CSSProperties
|
5
5
|
*
|
6
|
-
* Description :
|
6
|
+
* Description : style of AText. if 'bold', text will be bold. if React.CSSProperties, text will be styled with the style.
|
7
7
|
*/
|
8
|
-
|
8
|
+
style?: 'bold' | React.CSSProperties;
|
9
9
|
/**
|
10
10
|
* styled? : boolean | string
|
11
11
|
*
|
@@ -13,11 +13,11 @@ interface IATextProps {
|
|
13
13
|
*/
|
14
14
|
styled?: boolean | string;
|
15
15
|
/**
|
16
|
-
*
|
16
|
+
* text? : string
|
17
17
|
*
|
18
|
-
* Description :
|
18
|
+
* Description : text of AText
|
19
19
|
*/
|
20
|
-
|
20
|
+
text?: string;
|
21
21
|
}
|
22
22
|
/**
|
23
23
|
* AComponent : AText
|
@@ -6,47 +6,35 @@ export declare const ATextAreaTypes: readonly ["Primary", "Secondary", "ReadOnly
|
|
6
6
|
export type TTextAreaTypes = 'Primary' | 'Secondary' | 'ReadOnly' | 'Error';
|
7
7
|
export interface IATextAreaProps extends IABaseProps, IAWrapProps {
|
8
8
|
/**
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* Description : onEnterPress of ATextArea
|
12
|
-
*/
|
13
|
-
onEnterPress?: (value: string) => void;
|
14
|
-
/**
|
15
|
-
* type? : TTextAreaType = 'Primary'
|
16
|
-
*
|
17
|
-
* Description : type of ATextArea
|
18
|
-
*/
|
19
|
-
type?: TTextAreaTypes;
|
20
|
-
/**
|
21
|
-
* textAreaRef? : React.RefObject<HTMLTextAreaElement>
|
22
|
-
*
|
23
|
-
* Description : textAreaRef of ATextArea
|
24
|
-
*/
|
25
|
-
textAreaRef?: React.RefObject<HTMLTextAreaElement>;
|
26
|
-
/**
|
27
|
-
* useValue? : TUseValues<string>
|
28
|
-
*
|
29
|
-
* Description : useValue of ATextArea
|
30
|
-
*/
|
31
|
-
useValue?: TUseValues<string>;
|
32
|
-
/**
|
33
|
-
* rows? : number
|
9
|
+
* autoFocus? : boolean
|
34
10
|
*
|
35
|
-
* Description :
|
11
|
+
* Description : decides whether the input is focused or not
|
36
12
|
*/
|
37
|
-
|
13
|
+
autoFocus?: boolean;
|
38
14
|
/**
|
39
15
|
* isReadonly? : boolean
|
40
16
|
*
|
41
17
|
* Description : decides whether the input is isReadonly or not
|
42
18
|
*/
|
43
19
|
isReadonly?: boolean;
|
20
|
+
/**
|
21
|
+
* maxLength? : number
|
22
|
+
*
|
23
|
+
* Description : maxLength of ATextArea
|
24
|
+
*/
|
25
|
+
maxLength?: number;
|
44
26
|
/**
|
45
27
|
* onChange? : (e: React.ChangeEvent<HTMLTextAreaElement>) => void
|
46
28
|
*
|
47
29
|
* Description : onChange of ATextArea
|
48
30
|
*/
|
49
31
|
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
32
|
+
/**
|
33
|
+
* onEnterPress? : (value: string) => void
|
34
|
+
*
|
35
|
+
* Description : onEnterPress of ATextArea
|
36
|
+
*/
|
37
|
+
onEnterPress?: (value: string) => void;
|
50
38
|
/**
|
51
39
|
* placeholder? : string
|
52
40
|
*
|
@@ -54,29 +42,41 @@ export interface IATextAreaProps extends IABaseProps, IAWrapProps {
|
|
54
42
|
*/
|
55
43
|
placeholder?: string;
|
56
44
|
/**
|
57
|
-
*
|
45
|
+
* rows? : number
|
58
46
|
*
|
59
|
-
* Description :
|
47
|
+
* Description : rows of ATextArea
|
60
48
|
*/
|
61
|
-
|
49
|
+
rows?: number;
|
62
50
|
/**
|
63
51
|
* tabIndex? : number
|
64
52
|
*
|
65
53
|
* Description : tabIndex of ATextArea
|
66
54
|
*/
|
67
55
|
tabIndex?: number;
|
68
|
-
/**
|
69
|
-
* autoFocus? : boolean
|
70
|
-
*
|
71
|
-
* Description : decides whether the input is focused or not
|
72
|
-
*/
|
73
|
-
autoFocus?: boolean;
|
74
56
|
/**
|
75
57
|
* textAreaProps? : React.TextareaHTMLAttributes<HTMLTextAreaElement>
|
76
58
|
*
|
77
59
|
* Description : textAreaProps of ATextArea
|
78
60
|
*/
|
79
61
|
textAreaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
62
|
+
/**
|
63
|
+
* textAreaRef? : React.RefObject<HTMLTextAreaElement>
|
64
|
+
*
|
65
|
+
* Description : textAreaRef of ATextArea
|
66
|
+
*/
|
67
|
+
textAreaRef?: React.RefObject<HTMLTextAreaElement>;
|
68
|
+
/**
|
69
|
+
* type? : TTextAreaType = 'Primary'
|
70
|
+
*
|
71
|
+
* Description : type of ATextArea
|
72
|
+
*/
|
73
|
+
type?: TTextAreaTypes;
|
74
|
+
/**
|
75
|
+
* useValue? : TUseValues<string>
|
76
|
+
*
|
77
|
+
* Description : useValue of ATextArea
|
78
|
+
*/
|
79
|
+
useValue?: TUseValues<string>;
|
80
80
|
}
|
81
81
|
/**
|
82
82
|
* AComponent : ATextArea
|
@@ -24,8 +24,8 @@ declare function getPaletteValue(key: TPaletteKeys, mode?: TPaletteModes): strin
|
|
24
24
|
*/
|
25
25
|
declare function getPaletteDeepValue(key: TPaletteKeys): string;
|
26
26
|
interface IPaletteModeChangeEvent {
|
27
|
-
type: 'paletteModeChange';
|
28
27
|
listener: (newPaletteMode: TPaletteModes) => void;
|
28
|
+
type: 'paletteModeChange';
|
29
29
|
}
|
30
30
|
/**
|
31
31
|
* changePaletteMode : (mode: TPaletteModes) => void
|
@@ -63,8 +63,8 @@ declare function getSemanticValue(key: TSemanticKeys, mode?: TSemanticModes): st
|
|
63
63
|
*/
|
64
64
|
declare function getSemanticDeepValue(key: TSemanticKeys): string;
|
65
65
|
interface ISemanticModeChangeEvent {
|
66
|
-
type: 'semanticModeChange';
|
67
66
|
listener: (newSemanticMode: TSemanticModes) => void;
|
67
|
+
type: 'semanticModeChange';
|
68
68
|
}
|
69
69
|
/**
|
70
70
|
* changeSemanticMode : (mode: TSemanticModes) => void
|
@@ -161,13 +161,13 @@ declare function editComponentStyle(theme: Partial<TComponentStyle>): void;
|
|
161
161
|
declare function editComponentStyleWithSemantic(theme: Partial<TComponentHardStyle>): void;
|
162
162
|
interface IInitParams {
|
163
163
|
/**
|
164
|
-
*
|
164
|
+
* followDeviceSetting?: boolean
|
165
165
|
*
|
166
|
-
* Description:
|
166
|
+
* Description: If true, the theme will be set to 'Dark' when the device is in dark mode.
|
167
167
|
*
|
168
|
-
* Priority :
|
168
|
+
* Priority : 3
|
169
169
|
*/
|
170
|
-
|
170
|
+
followDeviceSetting?: boolean;
|
171
171
|
/**
|
172
172
|
* save?: 'localStorage' | 'sessionStorage'
|
173
173
|
*
|
@@ -177,13 +177,13 @@ interface IInitParams {
|
|
177
177
|
*/
|
178
178
|
save?: 'localStorage' | 'sessionStorage';
|
179
179
|
/**
|
180
|
-
*
|
180
|
+
* semanticMode?: TSemanticModes
|
181
181
|
*
|
182
|
-
* Description:
|
182
|
+
* Description: semanticMode will be set to the given value.
|
183
183
|
*
|
184
|
-
* Priority :
|
184
|
+
* Priority : 1
|
185
185
|
*/
|
186
|
-
|
186
|
+
semanticMode?: TSemanticModes;
|
187
187
|
}
|
188
188
|
declare function init({ semanticMode, save, followDeviceSetting }: IInitParams): void;
|
189
189
|
type TAThemeEvent = IPaletteModeChangeEvent | ISemanticModeChangeEvent;
|
@@ -1,24 +1,18 @@
|
|
1
1
|
import { RefObject } from 'react';
|
2
2
|
import { EDir4 } from '../ATypes/ATypes';
|
3
3
|
interface IATooltipProps {
|
4
|
-
/**
|
5
|
-
* tooltip : React.ReactNode
|
6
|
-
*
|
7
|
-
* Description : tooltip of ATooltip
|
8
|
-
*/
|
9
|
-
tooltip: React.ReactNode;
|
10
|
-
/**
|
11
|
-
* targetRef : React.RefObject<HTMLElement>
|
12
|
-
*
|
13
|
-
* Description : targetRef of ATooltip
|
14
|
-
*/
|
15
|
-
targetRef: RefObject<HTMLElement>;
|
16
4
|
/**
|
17
5
|
* delay? : number = 0
|
18
6
|
*
|
19
7
|
* Description : delay of ATooltip
|
20
8
|
*/
|
21
9
|
delay?: number;
|
10
|
+
/**
|
11
|
+
* direction? : EDir4 = EDir4.S
|
12
|
+
*
|
13
|
+
* Description : direction of ATooltip
|
14
|
+
*/
|
15
|
+
direction?: EDir4;
|
22
16
|
/**
|
23
17
|
* distance? : number = 10
|
24
18
|
*
|
@@ -26,11 +20,17 @@ interface IATooltipProps {
|
|
26
20
|
*/
|
27
21
|
distance?: number;
|
28
22
|
/**
|
29
|
-
*
|
23
|
+
* targetRef : React.RefObject<HTMLElement>
|
30
24
|
*
|
31
|
-
* Description :
|
25
|
+
* Description : targetRef of ATooltip
|
32
26
|
*/
|
33
|
-
|
27
|
+
targetRef: RefObject<HTMLElement>;
|
28
|
+
/**
|
29
|
+
* tooltip : React.ReactNode
|
30
|
+
*
|
31
|
+
* Description : tooltip of ATooltip
|
32
|
+
*/
|
33
|
+
tooltip: React.ReactNode;
|
34
34
|
}
|
35
35
|
/**
|
36
36
|
* AComponent : ATooltip
|