sevago-sso-fe 1.0.56 → 1.0.58
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/common/constant/apps.data.d.ts +20 -1
- package/dist/common/constant/hierarchical.constant.d.ts +8 -0
- package/dist/common/constant/index.d.ts +2 -0
- package/dist/common/constant/tree.constant.d.ts +19 -0
- package/dist/common/constant/typography.constant.d.ts +1 -1
- package/dist/common/utils/index.d.ts +0 -1
- package/dist/common/utils/other/get-limit-line-css.utils.d.ts +0 -1
- package/dist/common/utils/other/hierarchical.utils.d.ts +1 -0
- package/dist/common/utils/other/index.d.ts +2 -1
- package/dist/common/utils/string.utils.d.ts +2 -1
- package/dist/components/app-grid/app-grid.component.d.ts +3 -5
- package/dist/components/elements/avatar/avatar-online-status.element.d.ts +1 -1
- package/dist/components/elements/button/button-upload-file.element.d.ts +1 -1
- package/dist/components/elements/divider/dashed-divider.element.d.ts +1 -1
- package/dist/components/elements/icon/icon-content-opacity.element.d.ts +1 -1
- package/dist/components/elements/icon/icon-content.element.d.ts +1 -1
- package/dist/components/elements/icon/icon.element.d.ts +1 -1
- package/dist/components/elements/icon/index.d.ts +5 -5
- package/dist/components/elements/index.d.ts +7 -0
- package/dist/components/elements/pagination/index.d.ts +1 -0
- package/dist/components/elements/pagination/pagination.element.d.ts +14 -0
- package/dist/components/elements/radio/index.d.ts +1 -0
- package/dist/components/elements/radio/radio-group.element.d.ts +16 -0
- package/dist/components/elements/switch/index.d.ts +2 -0
- package/dist/components/elements/switch/switch-content.element.d.ts +10 -0
- package/dist/components/elements/switch/switch.element.d.ts +7 -0
- package/dist/components/elements/tabs/tabs-badge-count-subs.component.d.ts +1 -1
- package/dist/components/elements/tabs/tabs-badge-count.component.d.ts +2 -2
- package/dist/components/elements/tabs/tabs-subs.component.d.ts +1 -1
- package/dist/components/elements/tabs/tabs.component.d.ts +3 -3
- package/dist/components/elements/tag/index.d.ts +2 -0
- package/dist/components/elements/tag/tag-on-click.element.d.ts +8 -0
- package/dist/components/elements/tag/tag.element.d.ts +18 -0
- package/dist/components/elements/text-field/index.d.ts +9 -0
- package/dist/components/elements/text-field/text-field-date.element.d.ts +21 -0
- package/dist/components/elements/text-field/text-field-label.element.d.ts +9 -0
- package/dist/components/elements/text-field/text-field-month-year.element.d.ts +0 -0
- package/dist/components/elements/text-field/text-field-number.element.d.ts +19 -0
- package/dist/components/elements/text-field/text-field-search-custom.element.d.ts +9 -0
- package/dist/components/elements/text-field/text-field-search.element.d.ts +9 -0
- package/dist/components/elements/text-field/text-field-select-search-object.element.d.ts +26 -0
- package/dist/components/elements/text-field/text-field-select-search.element.d.ts +21 -0
- package/dist/components/elements/text-field/text-field.element.d.ts +13 -0
- package/dist/components/elements/text-field/text-highlight.element.d.ts +3 -0
- package/dist/components/elements/tooltip/index.d.ts +2 -0
- package/dist/components/elements/tooltip/tooltip-on-click.element.d.ts +7 -0
- package/dist/components/elements/tooltip/tooltip-on-hover.element.d.ts +9 -0
- package/dist/components/elements/typography/index.d.ts +4 -1
- package/dist/components/elements/typography/typography-grid-info-row.component.d.ts +14 -0
- package/dist/components/elements/typography/typography-info-row.component.d.ts +11 -0
- package/dist/components/elements/typography/typography-info-user.component.d.ts +19 -0
- package/dist/components/elements/user/index.d.ts +1 -0
- package/dist/components/elements/user/user-info.element.d.ts +9 -0
- package/dist/components/elements/wrapper/index.d.ts +3 -0
- package/dist/components/elements/wrapper/wrapper-chart.element.d.ts +9 -0
- package/dist/components/elements/wrapper/wrapper-content.element.d.ts +18 -0
- package/dist/components/elements/wrapper/wrapper.element.d.ts +23 -0
- package/dist/components/empty/empty.component.d.ts +4 -0
- package/dist/components/empty/index.d.ts +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/layouts/default.layout.d.ts +5 -0
- package/dist/components/layouts/index.d.ts +1 -0
- package/dist/components/loading/loading.component.d.ts +1 -1
- package/dist/components/logo/index.d.ts +1 -0
- package/dist/components/logo/logo.component.d.ts +9 -0
- package/dist/components/motion/motion-box.component.d.ts +2 -2
- package/dist/components/note/index.d.ts +1 -0
- package/dist/components/note/note.component.d.ts +8 -0
- package/dist/components/price/index.d.ts +1 -0
- package/dist/components/price/price.component.d.ts +14 -0
- package/dist/components/review/index.d.ts +1 -0
- package/dist/components/review/review.component.d.ts +9 -0
- package/dist/components/sidebar/apps-sidebar.component.d.ts +3 -1
- package/dist/components/sidebar/system-monitor-sidebar.part.d.ts +3 -2
- package/dist/components/styles/image.style.d.ts +3 -0
- package/dist/components/styles/index.d.ts +5 -0
- package/dist/components/styles/input.style.d.ts +1 -0
- package/dist/components/styles/link.style.d.ts +1 -0
- package/dist/components/styles/paper.style.d.ts +7 -0
- package/dist/components/styles/picker.style.d.ts +47 -0
- package/dist/components/system-monitor/system-monitor.screen.d.ts +2 -0
- package/dist/index.cjs.js +33855 -1176
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +33949 -1270
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -3
- package/dist/common/utils/delay.utils.d.ts +0 -1
|
@@ -9,6 +9,7 @@ export declare enum AppGroup {
|
|
|
9
9
|
}
|
|
10
10
|
export interface AppInfo {
|
|
11
11
|
path: {
|
|
12
|
+
local: string;
|
|
12
13
|
develop: string;
|
|
13
14
|
staging: string;
|
|
14
15
|
production: string;
|
|
@@ -27,6 +28,7 @@ export declare const APP_GROUP_COLOR: {
|
|
|
27
28
|
Khác: string;
|
|
28
29
|
};
|
|
29
30
|
export declare const SSO: {
|
|
31
|
+
local: string;
|
|
30
32
|
develop: string;
|
|
31
33
|
staging: string;
|
|
32
34
|
production: string;
|
|
@@ -34,6 +36,7 @@ export declare const SSO: {
|
|
|
34
36
|
export declare const APP_OBJ: {
|
|
35
37
|
E_HIRING: {
|
|
36
38
|
path: {
|
|
39
|
+
local: string;
|
|
37
40
|
develop: string;
|
|
38
41
|
staging: string;
|
|
39
42
|
production: string;
|
|
@@ -45,6 +48,7 @@ export declare const APP_OBJ: {
|
|
|
45
48
|
};
|
|
46
49
|
HR: {
|
|
47
50
|
path: {
|
|
51
|
+
local: string;
|
|
48
52
|
develop: string;
|
|
49
53
|
staging: string;
|
|
50
54
|
production: string;
|
|
@@ -56,6 +60,7 @@ export declare const APP_OBJ: {
|
|
|
56
60
|
};
|
|
57
61
|
PAYROLL: {
|
|
58
62
|
path: {
|
|
63
|
+
local: string;
|
|
59
64
|
develop: string;
|
|
60
65
|
staging: string;
|
|
61
66
|
production: string;
|
|
@@ -67,6 +72,7 @@ export declare const APP_OBJ: {
|
|
|
67
72
|
};
|
|
68
73
|
ORG: {
|
|
69
74
|
path: {
|
|
75
|
+
local: string;
|
|
70
76
|
develop: string;
|
|
71
77
|
staging: string;
|
|
72
78
|
production: string;
|
|
@@ -78,6 +84,7 @@ export declare const APP_OBJ: {
|
|
|
78
84
|
};
|
|
79
85
|
CHECKIN: {
|
|
80
86
|
path: {
|
|
87
|
+
local: string;
|
|
81
88
|
develop: string;
|
|
82
89
|
staging: string;
|
|
83
90
|
production: string;
|
|
@@ -89,6 +96,7 @@ export declare const APP_OBJ: {
|
|
|
89
96
|
};
|
|
90
97
|
CHAT: {
|
|
91
98
|
path: {
|
|
99
|
+
local: string;
|
|
92
100
|
develop: string;
|
|
93
101
|
staging: string;
|
|
94
102
|
production: string;
|
|
@@ -100,6 +108,7 @@ export declare const APP_OBJ: {
|
|
|
100
108
|
};
|
|
101
109
|
TRAINING: {
|
|
102
110
|
path: {
|
|
111
|
+
local: string;
|
|
103
112
|
develop: string;
|
|
104
113
|
staging: string;
|
|
105
114
|
production: string;
|
|
@@ -111,6 +120,7 @@ export declare const APP_OBJ: {
|
|
|
111
120
|
};
|
|
112
121
|
FORM: {
|
|
113
122
|
path: {
|
|
123
|
+
local: string;
|
|
114
124
|
develop: string;
|
|
115
125
|
staging: string;
|
|
116
126
|
production: string;
|
|
@@ -122,6 +132,7 @@ export declare const APP_OBJ: {
|
|
|
122
132
|
};
|
|
123
133
|
INSIDE: {
|
|
124
134
|
path: {
|
|
135
|
+
local: string;
|
|
125
136
|
develop: string;
|
|
126
137
|
staging: string;
|
|
127
138
|
production: string;
|
|
@@ -133,6 +144,7 @@ export declare const APP_OBJ: {
|
|
|
133
144
|
};
|
|
134
145
|
BOOKING: {
|
|
135
146
|
path: {
|
|
147
|
+
local: string;
|
|
136
148
|
develop: string;
|
|
137
149
|
staging: string;
|
|
138
150
|
production: string;
|
|
@@ -144,6 +156,7 @@ export declare const APP_OBJ: {
|
|
|
144
156
|
};
|
|
145
157
|
PROJECT: {
|
|
146
158
|
path: {
|
|
159
|
+
local: string;
|
|
147
160
|
develop: string;
|
|
148
161
|
staging: string;
|
|
149
162
|
production: string;
|
|
@@ -155,6 +168,7 @@ export declare const APP_OBJ: {
|
|
|
155
168
|
};
|
|
156
169
|
REQUEST: {
|
|
157
170
|
path: {
|
|
171
|
+
local: string;
|
|
158
172
|
develop: string;
|
|
159
173
|
staging: string;
|
|
160
174
|
production: string;
|
|
@@ -166,6 +180,7 @@ export declare const APP_OBJ: {
|
|
|
166
180
|
};
|
|
167
181
|
TRACKING: {
|
|
168
182
|
path: {
|
|
183
|
+
local: string;
|
|
169
184
|
develop: string;
|
|
170
185
|
staging: string;
|
|
171
186
|
production: string;
|
|
@@ -177,6 +192,7 @@ export declare const APP_OBJ: {
|
|
|
177
192
|
};
|
|
178
193
|
PROCESS: {
|
|
179
194
|
path: {
|
|
195
|
+
local: string;
|
|
180
196
|
develop: string;
|
|
181
197
|
staging: string;
|
|
182
198
|
production: string;
|
|
@@ -188,6 +204,7 @@ export declare const APP_OBJ: {
|
|
|
188
204
|
};
|
|
189
205
|
FORMULA_PRICE: {
|
|
190
206
|
path: {
|
|
207
|
+
local: string;
|
|
191
208
|
develop: string;
|
|
192
209
|
staging: string;
|
|
193
210
|
production: string;
|
|
@@ -199,6 +216,7 @@ export declare const APP_OBJ: {
|
|
|
199
216
|
};
|
|
200
217
|
E_CATALOGUE: {
|
|
201
218
|
path: {
|
|
219
|
+
local: string;
|
|
202
220
|
develop: string;
|
|
203
221
|
staging: string;
|
|
204
222
|
production: string;
|
|
@@ -210,6 +228,7 @@ export declare const APP_OBJ: {
|
|
|
210
228
|
};
|
|
211
229
|
LANDING_PAGE: {
|
|
212
230
|
path: {
|
|
231
|
+
local: string;
|
|
213
232
|
develop: string;
|
|
214
233
|
staging: string;
|
|
215
234
|
production: string;
|
|
@@ -221,7 +240,7 @@ export declare const APP_OBJ: {
|
|
|
221
240
|
};
|
|
222
241
|
};
|
|
223
242
|
export declare const SIZE_EXTRA_LARGE = 36;
|
|
224
|
-
export type SizeProps =
|
|
243
|
+
export type SizeProps = 'extra_small' | 'small' | 'medium' | 'large' | 'extra_large' | 'avatar_group';
|
|
225
244
|
export declare const MAP_SIZE: Record<string, {
|
|
226
245
|
width: number;
|
|
227
246
|
height: number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const columnWidth = 250;
|
|
2
|
+
export declare const columnHeight = 400;
|
|
3
|
+
export declare const visibleCount = 3;
|
|
4
|
+
export declare const rowHeight = 40;
|
|
5
|
+
export declare const COLOR_HIERARCHIAL: {
|
|
6
|
+
COLOR_HIGHLIGHT_ROW: string;
|
|
7
|
+
COLOR_HIGHLIGHT_TEXT: string;
|
|
8
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './apps.data';
|
|
2
2
|
export * from './color.constant';
|
|
3
3
|
export * from './icons.constant';
|
|
4
|
+
export * from './hierarchical.constant';
|
|
4
5
|
export * from './mode.constant';
|
|
5
6
|
export * from './opacity.constant';
|
|
6
7
|
export * from './reg-exp.constant';
|
|
7
8
|
export * as STYLE from './style.constant';
|
|
9
|
+
export * from './tree.constant';
|
|
8
10
|
export * from './typography.constant';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const TREE_COLOR: {
|
|
2
|
+
TREE_LEVEL_1: string;
|
|
3
|
+
TREE_LEVEL_2: string;
|
|
4
|
+
TREE_LEVEL_3: string;
|
|
5
|
+
TREE_LEVEL_4: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const TREE_LINE_COLOR = "#176B5A";
|
|
8
|
+
export declare const BORDER_COLOR: {
|
|
9
|
+
RED: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const TREE_TEXT_COLOR: {
|
|
12
|
+
WHITE: string;
|
|
13
|
+
BLACK: string;
|
|
14
|
+
GREEN: string;
|
|
15
|
+
RED: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const TREE_WIDTH: {
|
|
18
|
+
NORMAL: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const normalizeText: (text: string) => string;
|
|
@@ -4,7 +4,8 @@ export declare const stringToColor: (string: string) => string;
|
|
|
4
4
|
* @param color Màu HEX gốc (VD: '#008a77')
|
|
5
5
|
* @param percentage Phần trăm nhạt đi (0-100)
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const lightenColorTree: (color: string, percentage: number) => string;
|
|
8
8
|
export declare const extractNumberAtStartString: (string: string) => number;
|
|
9
9
|
export declare const stripHtml: (html: string) => string;
|
|
10
10
|
export declare const getErrorMessage: (e: unknown) => string;
|
|
11
|
+
export declare const truncateText: (text: string, maxLength?: number) => string;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AppInfo } from '../../common/constant/apps.data';
|
|
3
|
-
import { Environment } from '../../common';
|
|
4
3
|
export interface AppGridProps {
|
|
5
4
|
apps: AppInfo[];
|
|
6
5
|
columns?: number;
|
|
7
6
|
rows?: number;
|
|
8
7
|
iconSize?: number;
|
|
9
8
|
iconRadius?: number;
|
|
10
|
-
iconShadow?: string;
|
|
11
9
|
gap?: number | string;
|
|
12
|
-
titleVariant?:
|
|
13
|
-
captionVariant?:
|
|
10
|
+
titleVariant?: 'subtitle1' | 'body1' | 'caption';
|
|
11
|
+
captionVariant?: 'caption' | 'body2';
|
|
14
12
|
titleColor?: string;
|
|
15
13
|
captionColor?: string;
|
|
16
14
|
showPagination?: boolean;
|
|
17
|
-
|
|
15
|
+
onClickApp: (appInfo: AppInfo) => void;
|
|
18
16
|
}
|
|
19
17
|
export declare const AppGrid: React.FC<AppGridProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface AvatarOnlineStatusElementProps {
|
|
3
3
|
url?: string | null;
|
|
4
|
-
size?:
|
|
4
|
+
size?: 'small' | 'medium' | 'large' | 'extra_large';
|
|
5
5
|
online?: boolean;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from '@mui/material';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { FileWithPreview } from '../../../common/interfaces/image-with-preview.interface';
|
|
4
|
-
export interface ButtonUploadFileElementProps extends Omit<ButtonProps,
|
|
4
|
+
export interface ButtonUploadFileElementProps extends Omit<ButtonProps, 'onChange'> {
|
|
5
5
|
multiple?: boolean;
|
|
6
6
|
onChange: (files: FileWithPreview[]) => void;
|
|
7
7
|
accept?: string;
|
|
@@ -3,7 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
export interface IconContentOpacityElementProps {
|
|
4
4
|
icon: string;
|
|
5
5
|
content?: any;
|
|
6
|
-
color?:
|
|
6
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning' | any;
|
|
7
7
|
onClick: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
8
8
|
sx?: SxProps<Theme>;
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
import { IconElementProps } from './icon.element';
|
|
4
4
|
export interface IconContentElementProps extends IconElementProps {
|
|
5
5
|
content: any;
|
|
6
|
-
size?:
|
|
6
|
+
size?: 'large' | 'small' | 'medium';
|
|
7
7
|
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
8
8
|
sx?: SxProps<Theme>;
|
|
9
9
|
sxIcon?: SxProps<Theme>;
|
|
@@ -2,7 +2,7 @@ import { IconProps, SxProps, Theme } from '@mui/material';
|
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
export interface IconElementProps extends IconProps {
|
|
4
4
|
icon?: any;
|
|
5
|
-
size?:
|
|
5
|
+
size?: 'large' | 'small' | 'medium';
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
fill?: 0 | 1;
|
|
8
8
|
sx?: SxProps<Theme>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { IconElement } from './icon.element';
|
|
2
|
-
export { IconContentElement } from './icon-content.element';
|
|
3
|
-
export { IconContentBadgeCountElement } from './icon-content-badge-count.element';
|
|
4
|
-
export { IconContentBadgeCountSubsElement } from './icon-content-badge-count-subs.element';
|
|
5
1
|
export { IconButtonElement } from './icon-button.element';
|
|
6
|
-
export {
|
|
2
|
+
export { IconContentBadgeCountSubsElement } from './icon-content-badge-count-subs.element';
|
|
3
|
+
export { IconContentBadgeCountElement } from './icon-content-badge-count.element';
|
|
7
4
|
export { IconContentOpacityElement } from './icon-content-opacity.element';
|
|
5
|
+
export { IconContentSubsElement } from './icon-content-subs.element';
|
|
6
|
+
export { IconContentElement } from './icon-content.element';
|
|
7
|
+
export { IconElement } from './icon.element';
|
|
@@ -6,7 +6,14 @@ export * from './divider';
|
|
|
6
6
|
export * from './icon';
|
|
7
7
|
export * from './image';
|
|
8
8
|
export * from './link';
|
|
9
|
+
export * from './pagination';
|
|
9
10
|
export * from './radio';
|
|
11
|
+
export * from './switch';
|
|
10
12
|
export * from './tabs';
|
|
13
|
+
export * from './tag';
|
|
14
|
+
export * from './text-field';
|
|
11
15
|
export * from './time-ago';
|
|
16
|
+
export * from './tooltip';
|
|
12
17
|
export * from './typography';
|
|
18
|
+
export * from './user';
|
|
19
|
+
export * from './wrapper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PaginationElement } from './pagination.element';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface PaginationElementProps {
|
|
4
|
+
total?: number;
|
|
5
|
+
page: number;
|
|
6
|
+
take: number;
|
|
7
|
+
openRowsPerPage?: boolean;
|
|
8
|
+
onChange: (pagination: {
|
|
9
|
+
page: number;
|
|
10
|
+
take: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
sx?: SxProps<Theme>;
|
|
13
|
+
}
|
|
14
|
+
export declare const PaginationElement: React.FC<PaginationElementProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { default as React, ReactNode } from 'react';
|
|
3
|
+
export interface RadioGroupElementProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
direction?: 'row' | 'column';
|
|
6
|
+
label?: string;
|
|
7
|
+
iconLabel?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
defaultValue?: any;
|
|
10
|
+
value?: any;
|
|
11
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
sx?: SxProps<Theme>;
|
|
15
|
+
}
|
|
16
|
+
export declare const RadioGroupElement: React.FC<RadioGroupElementProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface SwitchContentElementProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
content: string;
|
|
6
|
+
value?: boolean;
|
|
7
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
}
|
|
10
|
+
export declare const SwitchContentElement: React.FC<SwitchContentElementProps>;
|
|
@@ -12,6 +12,6 @@ export interface TabBadgeCountSubs {
|
|
|
12
12
|
export interface TabsBadgeCountSubsComponentProps {
|
|
13
13
|
idSelect?: string;
|
|
14
14
|
tabs: TabBadgeCountSubs[];
|
|
15
|
-
size?:
|
|
15
|
+
size?: 'large' | 'small' | 'medium';
|
|
16
16
|
}
|
|
17
17
|
export declare const TabsBadgeCountSubsComponent: React.FC<TabsBadgeCountSubsComponentProps>;
|
|
@@ -6,8 +6,8 @@ export interface TabBadgeCount extends TabComponent {
|
|
|
6
6
|
export interface TabsBadgeCountComponentProps {
|
|
7
7
|
idSelect?: string;
|
|
8
8
|
tabs: TabBadgeCount[];
|
|
9
|
-
size?:
|
|
10
|
-
direction?:
|
|
9
|
+
size?: 'large' | 'small' | 'medium';
|
|
10
|
+
direction?: 'column' | 'row';
|
|
11
11
|
isSubs?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare const TabsBadgeCountComponent: React.FC<TabsBadgeCountComponentProps>;
|
|
@@ -11,6 +11,6 @@ export interface TabSubs {
|
|
|
11
11
|
export interface TabsSubsComponentProps {
|
|
12
12
|
idSelect?: string;
|
|
13
13
|
tabs: TabSubs[];
|
|
14
|
-
size?:
|
|
14
|
+
size?: 'large' | 'small' | 'medium';
|
|
15
15
|
}
|
|
16
16
|
export declare const TabsSubsComponent: React.FC<TabsSubsComponentProps>;
|
|
@@ -10,9 +10,9 @@ export interface TabComponent {
|
|
|
10
10
|
export interface TabsComponentProps {
|
|
11
11
|
idSelect?: string;
|
|
12
12
|
tabs: TabComponent[];
|
|
13
|
-
size?:
|
|
14
|
-
direction?:
|
|
15
|
-
variant?:
|
|
13
|
+
size?: 'large' | 'small' | 'medium';
|
|
14
|
+
direction?: 'column' | 'row';
|
|
15
|
+
variant?: 'contained' | 'outlined';
|
|
16
16
|
onChange?: (newValue: string) => void;
|
|
17
17
|
sx?: SxProps;
|
|
18
18
|
sxTabs?: SxProps;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TagOnClickElementProps {
|
|
3
|
+
content: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
size?: 'small' | 'medium';
|
|
7
|
+
}
|
|
8
|
+
export declare const TagOnClickElement: React.FC<TagOnClickElementProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type TagType = 'success' | 'warning' | 'info' | 'secondary' | 'primary' | 'error';
|
|
4
|
+
export type TagSize = 'large' | 'medium' | 'small';
|
|
5
|
+
export type TagVariant = 'contained' | 'outlined' | 'outlined-border';
|
|
6
|
+
export declare const lightenColor: (hex: string, percent: number) => string;
|
|
7
|
+
export interface TagElementProps {
|
|
8
|
+
type: string;
|
|
9
|
+
content: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
sx?: SxProps<Theme>;
|
|
12
|
+
variation?: 'body1' | 'caption';
|
|
13
|
+
variant?: TagVariant;
|
|
14
|
+
size?: TagSize;
|
|
15
|
+
color?: string;
|
|
16
|
+
iconProps?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare const TagElement: React.FC<TagElementProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { TextFieldDateElement } from './text-field-date.element';
|
|
2
|
+
export { TextFieldLabelElement } from './text-field-label.element';
|
|
3
|
+
export { TextFieldNumberElement } from './text-field-number.element';
|
|
4
|
+
export { TextFieldSearchCustomElement } from './text-field-search-custom.element';
|
|
5
|
+
export { TextFieldSearchElement } from './text-field-search.element';
|
|
6
|
+
export { TextFieldSelectSearchObjectElement } from './text-field-select-search-object.element';
|
|
7
|
+
export { TextFieldSelectSearchElement } from './text-field-select-search.element';
|
|
8
|
+
export { TextFieldElement } from './text-field.element';
|
|
9
|
+
export * from './text-highlight.element';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { DatePickerProps } from '@mui/x-date-pickers/DatePicker';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export interface TextFieldDateElementProps extends DatePickerProps {
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
iconLabel?: string;
|
|
8
|
+
error?: unknown;
|
|
9
|
+
value?: any;
|
|
10
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
sx?: SxProps<Theme>;
|
|
14
|
+
disablePast?: boolean;
|
|
15
|
+
disableFuture?: boolean;
|
|
16
|
+
dateRangeInDays?: number;
|
|
17
|
+
onBlur?: (e: React.FocusEvent<any>) => void;
|
|
18
|
+
minDate?: any;
|
|
19
|
+
maxDate?: any;
|
|
20
|
+
}
|
|
21
|
+
export declare const TextFieldDateElement: React.FC<TextFieldDateElementProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface TextFieldLabelElementProps {
|
|
3
|
+
label?: string | React.ReactNode;
|
|
4
|
+
iconLabel?: string;
|
|
5
|
+
colorLabel?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const TextFieldLabelElement: React.FC<TextFieldLabelElementProps>;
|
|
9
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseTextFieldProps, TextFieldProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface TextFieldNumberElementProps extends BaseTextFieldProps {
|
|
4
|
+
iconLabel?: string;
|
|
5
|
+
error?: any;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value?: any;
|
|
8
|
+
onChange?: (event: {
|
|
9
|
+
target: {
|
|
10
|
+
name?: string;
|
|
11
|
+
value: any;
|
|
12
|
+
};
|
|
13
|
+
}) => void;
|
|
14
|
+
decimalScale?: number;
|
|
15
|
+
showResetButton?: boolean;
|
|
16
|
+
onReset?: () => void;
|
|
17
|
+
InputProps?: TextFieldProps['InputProps'];
|
|
18
|
+
}
|
|
19
|
+
export declare const TextFieldNumberElement: React.FC<TextFieldNumberElementProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseTextFieldProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface TextFieldSearchCustomElementProps extends BaseTextFieldProps {
|
|
4
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
iconLabel?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const TextFieldSearchCustomElement: React.FC<TextFieldSearchCustomElementProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseTextFieldProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface TextFieldSearchElementProps extends BaseTextFieldProps {
|
|
4
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
iconLabel?: string;
|
|
7
|
+
searchIcon?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const TextFieldSearchElement: React.FC<TextFieldSearchElementProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AutocompleteRenderOptionState } from '@mui/material/Autocomplete';
|
|
2
|
+
import { BaseTextFieldProps } from '@mui/material/TextField';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
export interface TextFieldSelectSearchObjectElementProps extends BaseTextFieldProps {
|
|
5
|
+
openTest?: boolean;
|
|
6
|
+
iconLabel?: string;
|
|
7
|
+
error?: any;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
options?: any[];
|
|
11
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
12
|
+
onInputChange?: (event: React.SyntheticEvent, newInputValue: string, reason: string) => void;
|
|
13
|
+
renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, option: any, state: AutocompleteRenderOptionState) => React.ReactNode;
|
|
14
|
+
isOptionEqualToValue?: (option: any, value: any) => boolean;
|
|
15
|
+
getOptionLabel?: (option: any) => any;
|
|
16
|
+
getOptionDisabled?: (option: any) => boolean;
|
|
17
|
+
freeSolo?: boolean;
|
|
18
|
+
isCheckIcon?: boolean;
|
|
19
|
+
showAvatar?: boolean;
|
|
20
|
+
colorLabel?: string;
|
|
21
|
+
renderTags?: (value: any[], getTagProps: (params: {
|
|
22
|
+
index: number;
|
|
23
|
+
}) => any) => React.ReactNode;
|
|
24
|
+
maxDisplayTags?: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const TextFieldSelectSearchObjectElement: React.FC<TextFieldSelectSearchObjectElementProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseTextFieldProps } from '@mui/material/TextField';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface TextFieldSelectSearchElementProps extends BaseTextFieldProps {
|
|
4
|
+
openTest?: boolean;
|
|
5
|
+
iconLabel?: string;
|
|
6
|
+
error?: any;
|
|
7
|
+
value?: any;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
options: any[];
|
|
11
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
12
|
+
renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, option: any) => React.ReactNode;
|
|
13
|
+
getOptionLabel?: (option: any) => string;
|
|
14
|
+
isCheckIcon?: boolean;
|
|
15
|
+
colorLabel?: string;
|
|
16
|
+
showRadioBtn?: boolean;
|
|
17
|
+
disableCloseOnSelect?: boolean;
|
|
18
|
+
helperText?: any;
|
|
19
|
+
}
|
|
20
|
+
export declare const TextFieldSelectSearchElement: React.FC<TextFieldSelectSearchElementProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface TextFieldElementProps extends Omit<TextFieldProps, ''> {
|
|
4
|
+
iconLabel?: string;
|
|
5
|
+
error?: any;
|
|
6
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | any) => void;
|
|
7
|
+
InputProps?: TextFieldProps['InputProps'];
|
|
8
|
+
colorLabel?: string;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
showResetButton?: boolean;
|
|
11
|
+
onReset?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const TextFieldElement: React.FC<TextFieldElementProps>;
|