@esic-lab/data-core-ui 0.0.36 → 0.0.37
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/index.d.mts +511 -0
- package/dist/index.d.ts +1 -63
- package/dist/index.js +558 -1243
- package/dist/index.mjs +3258 -0
- package/package.json +2 -11
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import react, { ReactNode } from 'react';
|
|
3
|
+
import * as antd_es_table_interface from 'antd/es/table/interface';
|
|
4
|
+
import { ColumnsType, TableProps } from 'antd/es/table';
|
|
5
|
+
import { EventSourceInput } from '@fullcalendar/core';
|
|
6
|
+
import { InputNumberProps, SelectProps } from 'antd';
|
|
7
|
+
import { Color } from 'antd/es/color-picker';
|
|
8
|
+
import { MessageInstance } from 'antd/es/message/interface';
|
|
9
|
+
import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
10
|
+
|
|
11
|
+
type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
12
|
+
type BaseColor = "primary" | "gray" | "green" | "red" | "yellow" | "blue";
|
|
13
|
+
type ThemeColor = `bg-${BaseColor}-${ColorScale}`;
|
|
14
|
+
interface PrimaryButtonProps {
|
|
15
|
+
title: string;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
iconLeft?: React.ReactNode;
|
|
18
|
+
iconRight?: React.ReactNode;
|
|
19
|
+
bgColor?: ThemeColor;
|
|
20
|
+
textColor?: "white" | "black";
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, disabled, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
interface SecondaryButtonProps {
|
|
26
|
+
title: string;
|
|
27
|
+
onClick: () => void;
|
|
28
|
+
iconLeft?: React.ReactNode;
|
|
29
|
+
iconRight?: React.ReactNode;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
}
|
|
32
|
+
declare function SecondaryButton({ title, onClick, iconLeft, iconRight, disabled }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
interface GhostButtonProps {
|
|
35
|
+
title: string;
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
iconLeft?: React.ReactNode;
|
|
38
|
+
iconRight?: React.ReactNode;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
declare function GhostButton({ title, onClick, iconLeft, iconRight, disabled }: GhostButtonProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface Title {
|
|
44
|
+
path: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}
|
|
47
|
+
interface ParamTabSelection {
|
|
48
|
+
title: Title[];
|
|
49
|
+
now: string;
|
|
50
|
+
onClickGoto: (path: string) => void;
|
|
51
|
+
}
|
|
52
|
+
declare const TabSelectionButton: ({ title, now, onClickGoto }: ParamTabSelection) => react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
54
|
+
interface LoaderProps {
|
|
55
|
+
size?: number;
|
|
56
|
+
color?: string;
|
|
57
|
+
}
|
|
58
|
+
declare function Loader({ size, color }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
60
|
+
interface CheckboxProps {
|
|
61
|
+
label?: string;
|
|
62
|
+
checked: boolean;
|
|
63
|
+
onChange: (checked: boolean) => void;
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
}
|
|
66
|
+
declare function Checkbox({ label, checked, onChange, disabled }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
68
|
+
interface CheckboxOption {
|
|
69
|
+
checked: boolean;
|
|
70
|
+
label: string;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
}
|
|
73
|
+
interface CheckboxGroupProps {
|
|
74
|
+
options: CheckboxOption[];
|
|
75
|
+
onChange: (label: string) => void;
|
|
76
|
+
alignment?: "horizontal" | "vertical";
|
|
77
|
+
}
|
|
78
|
+
declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
79
|
+
|
|
80
|
+
interface RadioProps {
|
|
81
|
+
selected: boolean;
|
|
82
|
+
onChange: (selected: boolean) => void;
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
}
|
|
85
|
+
declare function Radio({ selected, onChange, disabled }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
86
|
+
|
|
87
|
+
interface RadioOption {
|
|
88
|
+
value: string;
|
|
89
|
+
label: string;
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
}
|
|
92
|
+
interface RadioGroupProps {
|
|
93
|
+
options: RadioOption[];
|
|
94
|
+
value: string;
|
|
95
|
+
onChange: (value: string) => void;
|
|
96
|
+
alignment?: "vertical" | "horizontal";
|
|
97
|
+
}
|
|
98
|
+
declare function RadioGroup({ options, value, onChange, alignment }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
99
|
+
|
|
100
|
+
interface SwitchProps {
|
|
101
|
+
label?: string;
|
|
102
|
+
checked: boolean;
|
|
103
|
+
onChange: (checked: boolean) => void;
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
}
|
|
106
|
+
declare function Switch({ label, checked, onChange, disabled }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
107
|
+
|
|
108
|
+
interface SwitchSelectProp {
|
|
109
|
+
option: {
|
|
110
|
+
value: string;
|
|
111
|
+
label: string;
|
|
112
|
+
}[];
|
|
113
|
+
value: string | number;
|
|
114
|
+
label: string;
|
|
115
|
+
color?: string;
|
|
116
|
+
required?: boolean;
|
|
117
|
+
onClick: (active: string) => void;
|
|
118
|
+
}
|
|
119
|
+
declare function SwitchSelect({ option, onClick, value, label, required, color, }: SwitchSelectProp): react_jsx_runtime.JSX.Element;
|
|
120
|
+
|
|
121
|
+
interface Menu {
|
|
122
|
+
title: string;
|
|
123
|
+
subMenus: {
|
|
124
|
+
title: string;
|
|
125
|
+
icon?: React.ReactNode | React.ReactElement;
|
|
126
|
+
iconActive?: React.ReactNode | React.ReactElement;
|
|
127
|
+
path: string;
|
|
128
|
+
customNode?: React.ReactNode | React.ReactElement;
|
|
129
|
+
}[];
|
|
130
|
+
}
|
|
131
|
+
interface MenuNavBarProps {
|
|
132
|
+
menus: Menu[];
|
|
133
|
+
onClick: (path: string) => void;
|
|
134
|
+
}
|
|
135
|
+
declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
interface SidebarProps {
|
|
138
|
+
children: React.ReactNode;
|
|
139
|
+
logo?: string;
|
|
140
|
+
}
|
|
141
|
+
interface Sidebar {
|
|
142
|
+
icon: React.ReactNode;
|
|
143
|
+
iconHover?: React.ReactNode;
|
|
144
|
+
text: string;
|
|
145
|
+
disabled?: boolean;
|
|
146
|
+
}
|
|
147
|
+
declare function Sidebar({ children, logo }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
148
|
+
|
|
149
|
+
interface TopNavBarProps {
|
|
150
|
+
onClickNoti: () => void;
|
|
151
|
+
logo?: React.ReactNode;
|
|
152
|
+
}
|
|
153
|
+
declare function TopNavBar({ onClickNoti, logo }: TopNavBarProps): react_jsx_runtime.JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface Column<T> {
|
|
156
|
+
header: string;
|
|
157
|
+
accessor: keyof T | ((row: T) => react.ReactNode);
|
|
158
|
+
sortable?: boolean;
|
|
159
|
+
}
|
|
160
|
+
interface DataTableProps<T> {
|
|
161
|
+
columns: Column<T>[];
|
|
162
|
+
data: T[];
|
|
163
|
+
onSort: () => void;
|
|
164
|
+
isLoading?: boolean;
|
|
165
|
+
}
|
|
166
|
+
declare function DataTable<T>({ columns, data, onSort, isLoading }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
167
|
+
|
|
168
|
+
interface AntDataTableProps<T> {
|
|
169
|
+
dataSource: T[];
|
|
170
|
+
columns: ColumnsType<T>;
|
|
171
|
+
pageSize?: number;
|
|
172
|
+
rowCheckbox?: boolean;
|
|
173
|
+
onRowSelect?: (newSelectedRowKeys: React.Key[]) => void;
|
|
174
|
+
onFilter: (filters: Record<string, antd_es_table_interface.FilterValue | null>) => void;
|
|
175
|
+
onChange?: TableProps<T>["onChange"];
|
|
176
|
+
width?: number;
|
|
177
|
+
height?: number;
|
|
178
|
+
pagination?: boolean;
|
|
179
|
+
}
|
|
180
|
+
declare function AntDataTable<T extends {
|
|
181
|
+
key: React.Key;
|
|
182
|
+
}>({ dataSource, columns, pageSize, rowCheckbox, onRowSelect, onFilter, onChange, width, height, pagination, }: AntDataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
184
|
+
interface CalendarProps {
|
|
185
|
+
events: EventSourceInput | undefined;
|
|
186
|
+
}
|
|
187
|
+
declare function Calendar({ events }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
188
|
+
|
|
189
|
+
interface TextInputProps {
|
|
190
|
+
label?: string;
|
|
191
|
+
placeholder?: string;
|
|
192
|
+
type?: "text" | "password";
|
|
193
|
+
maxLength?: number;
|
|
194
|
+
required?: boolean;
|
|
195
|
+
error?: string;
|
|
196
|
+
value?: string;
|
|
197
|
+
onChange: (value: string) => void;
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
}
|
|
200
|
+
declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, disabled, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
201
|
+
|
|
202
|
+
interface TextAreaProps {
|
|
203
|
+
label?: string;
|
|
204
|
+
height?: number;
|
|
205
|
+
placeholder?: string;
|
|
206
|
+
value: string;
|
|
207
|
+
onChange: (value: string) => void;
|
|
208
|
+
maxLength?: number;
|
|
209
|
+
resizable?: boolean;
|
|
210
|
+
showCount?: boolean;
|
|
211
|
+
required?: boolean;
|
|
212
|
+
error?: string;
|
|
213
|
+
disabled?: boolean;
|
|
214
|
+
}
|
|
215
|
+
declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
216
|
+
|
|
217
|
+
interface InputFieldProps {
|
|
218
|
+
value: string | undefined;
|
|
219
|
+
onChange: (value: string | undefined) => void;
|
|
220
|
+
placeholder?: string;
|
|
221
|
+
label?: string;
|
|
222
|
+
required?: boolean;
|
|
223
|
+
disabled?: boolean;
|
|
224
|
+
error?: string;
|
|
225
|
+
addonBefore?: ReactNode;
|
|
226
|
+
addonAfter?: ReactNode;
|
|
227
|
+
defaultValue?: string;
|
|
228
|
+
className?: string;
|
|
229
|
+
onClear?: () => void;
|
|
230
|
+
statickey?: string;
|
|
231
|
+
}
|
|
232
|
+
declare function InputField({ value, onChange, placeholder, label, required, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, statickey, }: InputFieldProps): react_jsx_runtime.JSX.Element;
|
|
233
|
+
|
|
234
|
+
interface InputFieldNumberProps {
|
|
235
|
+
value: number | string | null;
|
|
236
|
+
onChange: (value: number | string | null) => void;
|
|
237
|
+
placeholder?: string;
|
|
238
|
+
label?: string;
|
|
239
|
+
required?: boolean;
|
|
240
|
+
disabled?: boolean;
|
|
241
|
+
error?: string;
|
|
242
|
+
addonBefore?: React.ReactNode;
|
|
243
|
+
addonAfter?: React.ReactNode;
|
|
244
|
+
defaultValue?: number;
|
|
245
|
+
className?: string;
|
|
246
|
+
max?: number;
|
|
247
|
+
min?: number;
|
|
248
|
+
controls?: boolean | {
|
|
249
|
+
upIcon?: React.ReactNode;
|
|
250
|
+
downIcon?: React.ReactNode;
|
|
251
|
+
};
|
|
252
|
+
size?: "large" | "middle" | "small";
|
|
253
|
+
changeOnWheel?: boolean;
|
|
254
|
+
formatter?: InputNumberProps["formatter"];
|
|
255
|
+
parser?: InputNumberProps["parser"];
|
|
256
|
+
}
|
|
257
|
+
declare function InputFieldNumber({ value, onChange, placeholder, label, required, disabled, error, addonBefore, addonAfter, defaultValue, className, max, min, controls, size, changeOnWheel, formatter, parser, }: InputFieldNumberProps): react_jsx_runtime.JSX.Element;
|
|
258
|
+
|
|
259
|
+
interface ColorPickerProps {
|
|
260
|
+
value: string | null;
|
|
261
|
+
onChange?: (color: Color, hex: string) => void;
|
|
262
|
+
required?: boolean;
|
|
263
|
+
label?: string;
|
|
264
|
+
error?: string;
|
|
265
|
+
disabled?: boolean;
|
|
266
|
+
allowClear?: boolean;
|
|
267
|
+
defaultFormat?: "hex" | "rgb" | "hsb";
|
|
268
|
+
className?: string;
|
|
269
|
+
placeholder?: string;
|
|
270
|
+
}
|
|
271
|
+
declare function ColorPickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
272
|
+
|
|
273
|
+
interface ColorPalettePickerBasicProps {
|
|
274
|
+
value: string | null;
|
|
275
|
+
onChange?: (color: Color, hex: string) => void;
|
|
276
|
+
required?: boolean;
|
|
277
|
+
label?: string;
|
|
278
|
+
error?: string;
|
|
279
|
+
disabled?: boolean;
|
|
280
|
+
allowClear?: boolean;
|
|
281
|
+
defaultFormat?: "hex" | "rgb" | "hsb";
|
|
282
|
+
className?: string;
|
|
283
|
+
placeholder?: string;
|
|
284
|
+
onClear?: () => void;
|
|
285
|
+
}
|
|
286
|
+
declare function ColorPalettePickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder, onClear, }: ColorPalettePickerBasicProps): react_jsx_runtime.JSX.Element;
|
|
287
|
+
|
|
288
|
+
interface SelectFieldProps$1 {
|
|
289
|
+
value?: SelectProps["value"];
|
|
290
|
+
onChange: (value: SelectProps["value"]) => void;
|
|
291
|
+
placeholder?: string;
|
|
292
|
+
label?: string;
|
|
293
|
+
required?: boolean;
|
|
294
|
+
error?: string;
|
|
295
|
+
disabled?: boolean;
|
|
296
|
+
defaultValue?: string;
|
|
297
|
+
options?: {
|
|
298
|
+
label: ReactNode;
|
|
299
|
+
value: string | number | null;
|
|
300
|
+
disabled?: boolean;
|
|
301
|
+
}[];
|
|
302
|
+
mode?: "multiple" | "tags";
|
|
303
|
+
handleSearch?: (value: string) => void;
|
|
304
|
+
prefix?: ReactNode;
|
|
305
|
+
prefixSize?: number;
|
|
306
|
+
className?: string;
|
|
307
|
+
onClear?: () => void;
|
|
308
|
+
}
|
|
309
|
+
declare function SelectField({ value, onChange, placeholder, label, required, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, onClear, }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
|
|
310
|
+
|
|
311
|
+
interface SelectFieldProps {
|
|
312
|
+
value?: SelectProps["value"];
|
|
313
|
+
onChange: (value: SelectProps["value"]) => void;
|
|
314
|
+
placeholder?: string;
|
|
315
|
+
label?: string;
|
|
316
|
+
required?: boolean;
|
|
317
|
+
error?: string;
|
|
318
|
+
disabled?: boolean;
|
|
319
|
+
defaultValue?: string;
|
|
320
|
+
options?: {
|
|
321
|
+
label: ReactNode;
|
|
322
|
+
options: {
|
|
323
|
+
label: ReactNode;
|
|
324
|
+
value: string | number;
|
|
325
|
+
disabled?: boolean;
|
|
326
|
+
}[];
|
|
327
|
+
}[];
|
|
328
|
+
mode?: "multiple" | "tags";
|
|
329
|
+
handleSearch?: (value: string) => void;
|
|
330
|
+
prefix?: ReactNode;
|
|
331
|
+
prefixSize?: number;
|
|
332
|
+
className?: string;
|
|
333
|
+
}
|
|
334
|
+
declare function SelectFieldGroup({ value, onChange, placeholder, label, required, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
|
|
335
|
+
|
|
336
|
+
interface SelectFieldStatusProps {
|
|
337
|
+
value: string | undefined;
|
|
338
|
+
onChange: (value: string | undefined) => void;
|
|
339
|
+
placeholder?: string;
|
|
340
|
+
label?: string;
|
|
341
|
+
required?: boolean;
|
|
342
|
+
disabled?: boolean;
|
|
343
|
+
error?: string;
|
|
344
|
+
options?: {
|
|
345
|
+
label: ReactNode;
|
|
346
|
+
value: string | number | null;
|
|
347
|
+
disabled?: boolean;
|
|
348
|
+
}[];
|
|
349
|
+
className?: string;
|
|
350
|
+
}
|
|
351
|
+
declare function SelectFieldStatus({ value, onChange, placeholder, label, required, disabled, error, options, className, }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
|
|
352
|
+
|
|
353
|
+
interface SelectFieldStatusReportProps {
|
|
354
|
+
value: string | undefined;
|
|
355
|
+
onChange: (value: string | undefined) => void;
|
|
356
|
+
placeholder?: string;
|
|
357
|
+
label?: string;
|
|
358
|
+
required?: boolean;
|
|
359
|
+
disabled?: boolean;
|
|
360
|
+
error?: string;
|
|
361
|
+
className?: string;
|
|
362
|
+
options?: {
|
|
363
|
+
label: ReactNode;
|
|
364
|
+
value: string | number | null;
|
|
365
|
+
disabled?: boolean;
|
|
366
|
+
}[];
|
|
367
|
+
}
|
|
368
|
+
declare function SelectFieldStatusReport({ value, onChange, placeholder, label, required, disabled, error, className, options, }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
|
|
369
|
+
|
|
370
|
+
interface SelectFieldTagProps {
|
|
371
|
+
label?: string | null;
|
|
372
|
+
required?: boolean;
|
|
373
|
+
placeholder?: string;
|
|
374
|
+
options?: {
|
|
375
|
+
label: ReactNode;
|
|
376
|
+
value: string | number | null;
|
|
377
|
+
disabled?: boolean;
|
|
378
|
+
}[];
|
|
379
|
+
error?: string;
|
|
380
|
+
value?: string[];
|
|
381
|
+
onChange?: (val: string[]) => void;
|
|
382
|
+
className?: string;
|
|
383
|
+
onClear?: () => void;
|
|
384
|
+
}
|
|
385
|
+
declare function SelectFieldTag({ label, required, placeholder, options, error, value: controlledValue, className, onChange, onClear, }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
|
|
386
|
+
|
|
387
|
+
interface OptionItem {
|
|
388
|
+
value: string;
|
|
389
|
+
label: string;
|
|
390
|
+
}
|
|
391
|
+
interface SelectCustomProps {
|
|
392
|
+
label?: string;
|
|
393
|
+
placeholder?: string;
|
|
394
|
+
options: OptionItem[];
|
|
395
|
+
required?: boolean;
|
|
396
|
+
onChange?: (valueList: string[]) => void;
|
|
397
|
+
error?: string;
|
|
398
|
+
onClear?: () => void;
|
|
399
|
+
}
|
|
400
|
+
declare function SelectCustom({ label, placeholder, options, required, onChange, error, onClear, }: SelectCustomProps): react_jsx_runtime.JSX.Element;
|
|
401
|
+
|
|
402
|
+
interface SortFilterProps {
|
|
403
|
+
showYear?: boolean;
|
|
404
|
+
showQuarter?: boolean;
|
|
405
|
+
showMonth?: boolean;
|
|
406
|
+
onSortClick?: () => void;
|
|
407
|
+
onFilterClick?: () => void;
|
|
408
|
+
}
|
|
409
|
+
declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onFilterClick, }: SortFilterProps): react_jsx_runtime.JSX.Element;
|
|
410
|
+
|
|
411
|
+
interface FileUploaderProps {
|
|
412
|
+
onUpload: (file: File) => Promise<void>;
|
|
413
|
+
onRemove?: (index: number) => Promise<void>;
|
|
414
|
+
onError?: (message: string) => void;
|
|
415
|
+
accept?: string[];
|
|
416
|
+
maxSize?: number;
|
|
417
|
+
disabled?: boolean;
|
|
418
|
+
mode: "upload" | "drop";
|
|
419
|
+
description?: string;
|
|
420
|
+
label?: string;
|
|
421
|
+
}
|
|
422
|
+
declare function FileUploader({ onUpload, onError, onRemove, accept, maxSize, disabled, mode, description, label, }: FileUploaderProps): react_jsx_runtime.JSX.Element;
|
|
423
|
+
|
|
424
|
+
declare function setMessageApi(api: MessageInstance): void;
|
|
425
|
+
declare function messageSuccess(content: string): void;
|
|
426
|
+
declare function messageError(content: string): void;
|
|
427
|
+
declare function messageWarning(content: string): void;
|
|
428
|
+
declare function messageInfo(content: string): void;
|
|
429
|
+
declare function messageLoading(content: string, duration?: number): void;
|
|
430
|
+
|
|
431
|
+
interface BreadcrumbsProps {
|
|
432
|
+
items: ItemType[];
|
|
433
|
+
separator: ReactNode;
|
|
434
|
+
itemRender?: (route: any, params: any, routes: any[], paths: string[]) => ReactNode;
|
|
435
|
+
classname?: string;
|
|
436
|
+
params?: object;
|
|
437
|
+
}
|
|
438
|
+
declare function Breadcrumbs({ items, separator, itemRender, classname, params, }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
439
|
+
|
|
440
|
+
interface HeadingPageProps {
|
|
441
|
+
Heading: string;
|
|
442
|
+
}
|
|
443
|
+
declare function HeadingPage({ Heading }: HeadingPageProps): react_jsx_runtime.JSX.Element;
|
|
444
|
+
|
|
445
|
+
interface ProgressBarProps {
|
|
446
|
+
percent: number | undefined;
|
|
447
|
+
size?: number | [number | string, number] | {
|
|
448
|
+
width: number;
|
|
449
|
+
height: number;
|
|
450
|
+
} | "small" | "default";
|
|
451
|
+
checkpoints?: number[] | undefined;
|
|
452
|
+
showInfo?: boolean;
|
|
453
|
+
trailColor?: string;
|
|
454
|
+
type: "line" | "circle" | "dashboard";
|
|
455
|
+
strokeLinecap?: "round" | "butt" | "square";
|
|
456
|
+
strokeWidth?: number;
|
|
457
|
+
steps?: number;
|
|
458
|
+
isCheckPoints?: boolean;
|
|
459
|
+
}
|
|
460
|
+
declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
461
|
+
|
|
462
|
+
interface KpiNumberItem {
|
|
463
|
+
id: string;
|
|
464
|
+
name: string;
|
|
465
|
+
value: string;
|
|
466
|
+
unit: string;
|
|
467
|
+
isEditing?: boolean;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
interface KpiSectionProps {
|
|
471
|
+
type: "number" | "text";
|
|
472
|
+
onChangeKpiList?: (data: KpiNumberItem[]) => void;
|
|
473
|
+
}
|
|
474
|
+
declare function KpiSection({ type, onChangeKpiList }: KpiSectionProps): react_jsx_runtime.JSX.Element;
|
|
475
|
+
|
|
476
|
+
interface ModalProps {
|
|
477
|
+
children: ReactNode;
|
|
478
|
+
isOpen: boolean;
|
|
479
|
+
width?: string | number;
|
|
480
|
+
onCancel: () => void;
|
|
481
|
+
}
|
|
482
|
+
declare function AntDModal({ children, isOpen, width, onCancel }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
483
|
+
|
|
484
|
+
interface IndicatorProps {
|
|
485
|
+
option?: {
|
|
486
|
+
value: string;
|
|
487
|
+
label: string;
|
|
488
|
+
}[];
|
|
489
|
+
type: "OUTPUT" | "OUTCOME";
|
|
490
|
+
arrayData: IndicatorArray[];
|
|
491
|
+
setArrayData: (data: IndicatorArray[]) => void;
|
|
492
|
+
}
|
|
493
|
+
interface IndicatorArray {
|
|
494
|
+
indicatorType: "OUTPUT" | "OUTCOME";
|
|
495
|
+
inputType: "TEXT" | "NUMBER";
|
|
496
|
+
textValue: string;
|
|
497
|
+
numberValue?: string;
|
|
498
|
+
unit?: string;
|
|
499
|
+
}
|
|
500
|
+
declare function Indicator({ option, type, arrayData, setArrayData, }: IndicatorProps): react_jsx_runtime.JSX.Element;
|
|
501
|
+
|
|
502
|
+
interface optionSelect {
|
|
503
|
+
value: string;
|
|
504
|
+
label: string;
|
|
505
|
+
}
|
|
506
|
+
declare const FilterPopUp: (filter: {
|
|
507
|
+
selectionFilter: optionSelect[];
|
|
508
|
+
handleSearch: (listFiler: string[]) => void;
|
|
509
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
510
|
+
|
|
511
|
+
export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, FileUploader, FilterPopUp, GhostButton, HeadingPage, Indicator, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, SwitchSelect, TabSelectionButton, TextAreaInput, TextInput, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
|
package/dist/index.d.ts
CHANGED
|
@@ -256,68 +256,6 @@ interface InputFieldNumberProps {
|
|
|
256
256
|
}
|
|
257
257
|
declare function InputFieldNumber({ value, onChange, placeholder, label, required, disabled, error, addonBefore, addonAfter, defaultValue, className, max, min, controls, size, changeOnWheel, formatter, parser, }: InputFieldNumberProps): react_jsx_runtime.JSX.Element;
|
|
258
258
|
|
|
259
|
-
interface DatePickerBasicProps {
|
|
260
|
-
value: Date | null;
|
|
261
|
-
onChange: (day: Date | null) => void;
|
|
262
|
-
required?: boolean;
|
|
263
|
-
label?: string;
|
|
264
|
-
error?: string;
|
|
265
|
-
placeholder?: string;
|
|
266
|
-
disabled?: boolean;
|
|
267
|
-
defaultValue?: Date | null;
|
|
268
|
-
mode?: "time" | "date" | "month";
|
|
269
|
-
minDate?: Date;
|
|
270
|
-
maxDate?: Date;
|
|
271
|
-
disabledDate?: (currentDate: Date) => boolean;
|
|
272
|
-
className?: string;
|
|
273
|
-
size?: "small" | "middle" | "large";
|
|
274
|
-
}
|
|
275
|
-
declare function DatePickerBasic({ value, onChange, required, label, error, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
|
|
276
|
-
|
|
277
|
-
interface DatePickerRangePickerProps {
|
|
278
|
-
value: [Date | null, Date | null] | null;
|
|
279
|
-
onChange: (val: [Date | null, Date | null] | null) => void;
|
|
280
|
-
placeholder?: [string, string];
|
|
281
|
-
label?: string;
|
|
282
|
-
required?: boolean;
|
|
283
|
-
error?: string;
|
|
284
|
-
disabled?: boolean;
|
|
285
|
-
defaultValue?: [Date, Date] | null;
|
|
286
|
-
mode?: "time" | "date" | "month";
|
|
287
|
-
minDate?: Date | undefined;
|
|
288
|
-
maxDate?: Date | undefined;
|
|
289
|
-
disabledDate?: (currentDate: Date) => boolean;
|
|
290
|
-
size?: "small" | "middle" | "large";
|
|
291
|
-
className?: string;
|
|
292
|
-
onOpenChange?: (open: boolean) => void;
|
|
293
|
-
onCalendarChange?: (dates: [Date | null, Date | null], dateStrings: [string, string], info: any) => void;
|
|
294
|
-
}
|
|
295
|
-
declare function DatePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
296
|
-
|
|
297
|
-
interface TimePickerBasicProps {
|
|
298
|
-
value: Date | null;
|
|
299
|
-
onChange: (time: Date | null) => void;
|
|
300
|
-
required?: boolean;
|
|
301
|
-
label?: string;
|
|
302
|
-
error?: string;
|
|
303
|
-
placeholder?: string;
|
|
304
|
-
disabled?: boolean;
|
|
305
|
-
className?: string;
|
|
306
|
-
}
|
|
307
|
-
declare function TimePickerBasic({ value, onChange, required, label, error, placeholder, disabled, className, }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
|
|
308
|
-
|
|
309
|
-
interface TimePickerRangePickerProps {
|
|
310
|
-
value: [Date | null, Date | null] | null;
|
|
311
|
-
onChange: (val: [Date | null, Date | null] | null) => void;
|
|
312
|
-
placeholder?: [string, string];
|
|
313
|
-
label?: string;
|
|
314
|
-
required?: boolean;
|
|
315
|
-
error?: string;
|
|
316
|
-
disabled?: boolean;
|
|
317
|
-
className?: string;
|
|
318
|
-
}
|
|
319
|
-
declare function TimePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
320
|
-
|
|
321
259
|
interface ColorPickerProps {
|
|
322
260
|
value: string | null;
|
|
323
261
|
onChange?: (color: Color, hex: string) => void;
|
|
@@ -570,4 +508,4 @@ declare const FilterPopUp: (filter: {
|
|
|
570
508
|
handleSearch: (listFiler: string[]) => void;
|
|
571
509
|
}) => react_jsx_runtime.JSX.Element;
|
|
572
510
|
|
|
573
|
-
export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable,
|
|
511
|
+
export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, FileUploader, FilterPopUp, GhostButton, HeadingPage, Indicator, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, SwitchSelect, TabSelectionButton, TextAreaInput, TextInput, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
|