@esic-lab/data-core-ui 0.0.15 → 0.0.17
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/{STO-logo-KFQUNTJ3.svg → STO-logo-ADYYAPS3.svg} +92 -92
- package/dist/assets/STO-logo.svg +92 -92
- package/dist/index.css +690 -9
- package/dist/index.d.mts +766 -12
- package/dist/index.d.ts +766 -12
- package/dist/index.js +2052 -101
- package/dist/index.mjs +2044 -95
- package/package.json +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
/// <reference path="../node_modules/dayjs/locale/index.d.ts" />
|
|
1
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1 from 'react';
|
|
3
|
+
import React$1, { ReactNode } from 'react';
|
|
4
|
+
import { ColumnsType } from 'antd/es/table';
|
|
3
5
|
import { EventSourceInput } from '@fullcalendar/core';
|
|
6
|
+
import { Color } from 'antd/es/color-picker';
|
|
7
|
+
import { SelectProps } from 'antd';
|
|
8
|
+
import { MessageInstance } from 'antd/es/message/interface';
|
|
9
|
+
import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
|
|
4
10
|
|
|
5
11
|
type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
6
12
|
type BaseColor = "primary" | "gray" | "green" | "red" | "yellow" | "blue";
|
|
@@ -12,40 +18,46 @@ interface PrimaryButtonProps {
|
|
|
12
18
|
iconRight?: React.ReactNode;
|
|
13
19
|
bgColor?: ThemeColor;
|
|
14
20
|
textColor?: "white" | "black";
|
|
21
|
+
disabled?: boolean;
|
|
15
22
|
}
|
|
16
|
-
declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function PrimaryButton({ title, onClick, iconLeft, iconRight, bgColor, textColor, disabled, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
17
24
|
|
|
18
25
|
interface SecondaryButtonProps {
|
|
19
26
|
title: string;
|
|
20
27
|
onClick: () => void;
|
|
21
28
|
iconLeft?: React.ReactNode;
|
|
22
29
|
iconRight?: React.ReactNode;
|
|
30
|
+
disabled?: boolean;
|
|
23
31
|
}
|
|
24
|
-
declare function SecondaryButton({ title, onClick, iconLeft, iconRight }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
32
|
+
declare function SecondaryButton({ title, onClick, iconLeft, iconRight, disabled }: SecondaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
25
33
|
|
|
26
34
|
interface GhostButtonProps {
|
|
27
35
|
title: string;
|
|
28
36
|
onClick: () => void;
|
|
29
37
|
iconLeft?: React.ReactNode;
|
|
30
38
|
iconRight?: React.ReactNode;
|
|
39
|
+
disabled?: boolean;
|
|
31
40
|
}
|
|
32
|
-
declare function GhostButton({ title, onClick, iconLeft, iconRight }: GhostButtonProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare function GhostButton({ title, onClick, iconLeft, iconRight, disabled }: GhostButtonProps): react_jsx_runtime.JSX.Element;
|
|
33
42
|
|
|
34
43
|
interface LoaderProps {
|
|
35
44
|
size?: number;
|
|
45
|
+
color?: string;
|
|
36
46
|
}
|
|
37
|
-
declare function Loader({ size }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
47
|
+
declare function Loader({ size, color }: LoaderProps): react_jsx_runtime.JSX.Element;
|
|
38
48
|
|
|
39
49
|
interface CheckboxProps {
|
|
40
50
|
label?: string;
|
|
41
51
|
checked: boolean;
|
|
42
52
|
onChange: (checked: boolean) => void;
|
|
53
|
+
disabled?: boolean;
|
|
43
54
|
}
|
|
44
|
-
declare function Checkbox({ label, checked, onChange }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
declare function Checkbox({ label, checked, onChange, disabled }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
45
56
|
|
|
46
57
|
interface CheckboxOption {
|
|
47
58
|
checked: boolean;
|
|
48
59
|
label: string;
|
|
60
|
+
disabled?: boolean;
|
|
49
61
|
}
|
|
50
62
|
interface CheckboxGroupProps {
|
|
51
63
|
options: CheckboxOption[];
|
|
@@ -57,12 +69,14 @@ declare function CheckboxGroup({ options, onChange, alignment }: CheckboxGroupPr
|
|
|
57
69
|
interface RadioProps {
|
|
58
70
|
selected: boolean;
|
|
59
71
|
onChange: (selected: boolean) => void;
|
|
72
|
+
disabled?: boolean;
|
|
60
73
|
}
|
|
61
|
-
declare function Radio({ selected, onChange }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function Radio({ selected, onChange, disabled }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
62
75
|
|
|
63
76
|
interface RadioOption {
|
|
64
77
|
value: string;
|
|
65
78
|
label: string;
|
|
79
|
+
disabled?: boolean;
|
|
66
80
|
}
|
|
67
81
|
interface RadioGroupProps {
|
|
68
82
|
options: RadioOption[];
|
|
@@ -76,8 +90,9 @@ interface SwitchProps {
|
|
|
76
90
|
label?: string;
|
|
77
91
|
checked: boolean;
|
|
78
92
|
onChange: (checked: boolean) => void;
|
|
93
|
+
disabled?: boolean;
|
|
79
94
|
}
|
|
80
|
-
declare function Switch({ label, checked, onChange }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
95
|
+
declare function Switch({ label, checked, onChange, disabled }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
81
96
|
|
|
82
97
|
interface Menu {
|
|
83
98
|
title: string;
|
|
@@ -95,6 +110,18 @@ interface MenuNavBarProps {
|
|
|
95
110
|
}
|
|
96
111
|
declare function MenuNavBar({ menus, onClick }: MenuNavBarProps): react_jsx_runtime.JSX.Element;
|
|
97
112
|
|
|
113
|
+
interface SidebarProps {
|
|
114
|
+
children: React.ReactNode;
|
|
115
|
+
logo?: string;
|
|
116
|
+
}
|
|
117
|
+
interface Sidebar {
|
|
118
|
+
icon: React.ReactNode;
|
|
119
|
+
iconHover?: React.ReactNode;
|
|
120
|
+
text: string;
|
|
121
|
+
disabled?: boolean;
|
|
122
|
+
}
|
|
123
|
+
declare function Sidebar({ children, logo }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
98
125
|
interface TopNavBarProps {
|
|
99
126
|
onClickNoti: () => void;
|
|
100
127
|
logo?: React.ReactNode;
|
|
@@ -104,12 +131,28 @@ declare function TopNavBar({ onClickNoti, logo }: TopNavBarProps): react_jsx_run
|
|
|
104
131
|
interface Column<T> {
|
|
105
132
|
header: string;
|
|
106
133
|
accessor: keyof T | ((row: T) => React$1.ReactNode);
|
|
134
|
+
sortable?: boolean;
|
|
107
135
|
}
|
|
108
136
|
interface DataTableProps<T> {
|
|
109
137
|
columns: Column<T>[];
|
|
110
138
|
data: T[];
|
|
139
|
+
onSort: () => void;
|
|
140
|
+
isLoading?: boolean;
|
|
111
141
|
}
|
|
112
|
-
declare function DataTable<T>({ columns, data }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare function DataTable<T>({ columns, data, onSort, isLoading }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
|
|
144
|
+
interface AntDataTableProps<T> {
|
|
145
|
+
dataSource: T[];
|
|
146
|
+
columns: ColumnsType<T>;
|
|
147
|
+
pageSize?: number;
|
|
148
|
+
rowCheckbox?: boolean;
|
|
149
|
+
onRowSelect?: (newSelectedRowKeys: React.Key[]) => void;
|
|
150
|
+
width?: number;
|
|
151
|
+
height?: number;
|
|
152
|
+
}
|
|
153
|
+
declare function AntDataTable<T extends {
|
|
154
|
+
key: React.Key;
|
|
155
|
+
}>({ dataSource, columns, pageSize, rowCheckbox, onRowSelect, width, height, }: AntDataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
113
156
|
|
|
114
157
|
interface CalendarProps {
|
|
115
158
|
events: EventSourceInput | undefined;
|
|
@@ -117,7 +160,7 @@ interface CalendarProps {
|
|
|
117
160
|
declare function Calendar({ events }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
118
161
|
|
|
119
162
|
interface TextInputProps {
|
|
120
|
-
label
|
|
163
|
+
label?: string;
|
|
121
164
|
placeholder?: string;
|
|
122
165
|
type?: "text" | "password";
|
|
123
166
|
maxLength?: number;
|
|
@@ -125,7 +168,718 @@ interface TextInputProps {
|
|
|
125
168
|
error?: string;
|
|
126
169
|
value?: string;
|
|
127
170
|
onChange: (value: string) => void;
|
|
171
|
+
disabled?: boolean;
|
|
172
|
+
}
|
|
173
|
+
declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, disabled, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
174
|
+
|
|
175
|
+
interface InputFieldProps {
|
|
176
|
+
value: string | undefined;
|
|
177
|
+
onChange: (value: string | undefined) => void;
|
|
178
|
+
placeholder?: string;
|
|
179
|
+
title?: string;
|
|
180
|
+
require?: boolean;
|
|
181
|
+
bottomText?: string;
|
|
182
|
+
disabled?: boolean;
|
|
183
|
+
showError?: boolean;
|
|
184
|
+
errorMessage?: string;
|
|
185
|
+
addonBefore?: ReactNode;
|
|
186
|
+
addonAfter?: ReactNode;
|
|
187
|
+
defaultValue?: string;
|
|
188
|
+
className?: string;
|
|
189
|
+
}
|
|
190
|
+
declare function InputField({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, addonBefore, addonAfter, defaultValue, className, }: InputFieldProps): react_jsx_runtime.JSX.Element;
|
|
191
|
+
|
|
192
|
+
interface TextAreaProps {
|
|
193
|
+
label?: string;
|
|
194
|
+
height?: number;
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
value: string;
|
|
197
|
+
onChange: (value: string) => void;
|
|
198
|
+
maxLength?: number;
|
|
199
|
+
resizable?: boolean;
|
|
200
|
+
showCount?: boolean;
|
|
201
|
+
required?: boolean;
|
|
202
|
+
error?: string;
|
|
203
|
+
disabled?: boolean;
|
|
204
|
+
}
|
|
205
|
+
declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
206
|
+
|
|
207
|
+
interface ColorPickerProps {
|
|
208
|
+
value: string | null;
|
|
209
|
+
onChange?: (color: Color, hex: string) => void;
|
|
210
|
+
require?: boolean;
|
|
211
|
+
title?: string;
|
|
212
|
+
bottomText?: string;
|
|
213
|
+
showError?: boolean;
|
|
214
|
+
errorMessage?: string;
|
|
215
|
+
disabled?: boolean;
|
|
216
|
+
allowClear?: boolean;
|
|
217
|
+
defaultFormat?: "hex" | "rgb" | "hsb";
|
|
218
|
+
className?: string;
|
|
219
|
+
placeholder?: string;
|
|
220
|
+
}
|
|
221
|
+
declare function ColorPickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, disabled, allowClear, defaultFormat, className, placeholder }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
|
|
224
|
+
|
|
225
|
+
declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs
|
|
226
|
+
|
|
227
|
+
declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs
|
|
228
|
+
|
|
229
|
+
declare namespace dayjs {
|
|
230
|
+
interface ConfigTypeMap {
|
|
231
|
+
default: string | number | Date | Dayjs | null | undefined
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
|
|
235
|
+
|
|
236
|
+
export interface FormatObject { locale?: string, format?: string, utc?: boolean }
|
|
237
|
+
|
|
238
|
+
export type OptionType = FormatObject | string | string[]
|
|
239
|
+
|
|
240
|
+
export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
|
|
241
|
+
|
|
242
|
+
export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'
|
|
243
|
+
|
|
244
|
+
export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'
|
|
245
|
+
|
|
246
|
+
export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;
|
|
247
|
+
|
|
248
|
+
export type OpUnitType = UnitType | "week" | "weeks" | 'w';
|
|
249
|
+
export type QUnitType = UnitType | "quarter" | "quarters" | 'Q';
|
|
250
|
+
export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;
|
|
251
|
+
class Dayjs {
|
|
252
|
+
constructor (config?: ConfigType)
|
|
253
|
+
/**
|
|
254
|
+
* All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
|
|
255
|
+
* ```
|
|
256
|
+
* dayjs().clone()// => Dayjs
|
|
257
|
+
* dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
|
|
258
|
+
* ```
|
|
259
|
+
* Docs: https://day.js.org/docs/en/parse/dayjs-clone
|
|
260
|
+
*/
|
|
261
|
+
clone(): Dayjs
|
|
262
|
+
/**
|
|
263
|
+
* This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
|
|
264
|
+
* ```
|
|
265
|
+
* dayjs().isValid()// => boolean
|
|
266
|
+
* ```
|
|
267
|
+
* Docs: https://day.js.org/docs/en/parse/is-valid
|
|
268
|
+
*/
|
|
269
|
+
isValid(): boolean
|
|
270
|
+
/**
|
|
271
|
+
* Get the year.
|
|
272
|
+
* ```
|
|
273
|
+
* dayjs().year()// => 2020
|
|
274
|
+
* ```
|
|
275
|
+
* Docs: https://day.js.org/docs/en/get-set/year
|
|
276
|
+
*/
|
|
277
|
+
year(): number
|
|
278
|
+
/**
|
|
279
|
+
* Set the year.
|
|
280
|
+
* ```
|
|
281
|
+
* dayjs().year(2000)// => Dayjs
|
|
282
|
+
* ```
|
|
283
|
+
* Docs: https://day.js.org/docs/en/get-set/year
|
|
284
|
+
*/
|
|
285
|
+
year(value: number): Dayjs
|
|
286
|
+
/**
|
|
287
|
+
* Get the month.
|
|
288
|
+
*
|
|
289
|
+
* Months are zero indexed, so January is month 0.
|
|
290
|
+
* ```
|
|
291
|
+
* dayjs().month()// => 0-11
|
|
292
|
+
* ```
|
|
293
|
+
* Docs: https://day.js.org/docs/en/get-set/month
|
|
294
|
+
*/
|
|
295
|
+
month(): number
|
|
296
|
+
/**
|
|
297
|
+
* Set the month.
|
|
298
|
+
*
|
|
299
|
+
* Months are zero indexed, so January is month 0.
|
|
300
|
+
*
|
|
301
|
+
* Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.
|
|
302
|
+
* ```
|
|
303
|
+
* dayjs().month(0)// => Dayjs
|
|
304
|
+
* ```
|
|
305
|
+
* Docs: https://day.js.org/docs/en/get-set/month
|
|
306
|
+
*/
|
|
307
|
+
month(value: number): Dayjs
|
|
308
|
+
/**
|
|
309
|
+
* Get the date of the month.
|
|
310
|
+
* ```
|
|
311
|
+
* dayjs().date()// => 1-31
|
|
312
|
+
* ```
|
|
313
|
+
* Docs: https://day.js.org/docs/en/get-set/date
|
|
314
|
+
*/
|
|
315
|
+
date(): number
|
|
316
|
+
/**
|
|
317
|
+
* Set the date of the month.
|
|
318
|
+
*
|
|
319
|
+
* Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.
|
|
320
|
+
* ```
|
|
321
|
+
* dayjs().date(1)// => Dayjs
|
|
322
|
+
* ```
|
|
323
|
+
* Docs: https://day.js.org/docs/en/get-set/date
|
|
324
|
+
*/
|
|
325
|
+
date(value: number): Dayjs
|
|
326
|
+
/**
|
|
327
|
+
* Get the day of the week.
|
|
328
|
+
*
|
|
329
|
+
* Returns numbers from 0 (Sunday) to 6 (Saturday).
|
|
330
|
+
* ```
|
|
331
|
+
* dayjs().day()// 0-6
|
|
332
|
+
* ```
|
|
333
|
+
* Docs: https://day.js.org/docs/en/get-set/day
|
|
334
|
+
*/
|
|
335
|
+
day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
336
|
+
/**
|
|
337
|
+
* Set the day of the week.
|
|
338
|
+
*
|
|
339
|
+
* Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.
|
|
340
|
+
* ```
|
|
341
|
+
* dayjs().day(0)// => Dayjs
|
|
342
|
+
* ```
|
|
343
|
+
* Docs: https://day.js.org/docs/en/get-set/day
|
|
344
|
+
*/
|
|
345
|
+
day(value: number): Dayjs
|
|
346
|
+
/**
|
|
347
|
+
* Get the hour.
|
|
348
|
+
* ```
|
|
349
|
+
* dayjs().hour()// => 0-23
|
|
350
|
+
* ```
|
|
351
|
+
* Docs: https://day.js.org/docs/en/get-set/hour
|
|
352
|
+
*/
|
|
353
|
+
hour(): number
|
|
354
|
+
/**
|
|
355
|
+
* Set the hour.
|
|
356
|
+
*
|
|
357
|
+
* Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.
|
|
358
|
+
* ```
|
|
359
|
+
* dayjs().hour(12)// => Dayjs
|
|
360
|
+
* ```
|
|
361
|
+
* Docs: https://day.js.org/docs/en/get-set/hour
|
|
362
|
+
*/
|
|
363
|
+
hour(value: number): Dayjs
|
|
364
|
+
/**
|
|
365
|
+
* Get the minutes.
|
|
366
|
+
* ```
|
|
367
|
+
* dayjs().minute()// => 0-59
|
|
368
|
+
* ```
|
|
369
|
+
* Docs: https://day.js.org/docs/en/get-set/minute
|
|
370
|
+
*/
|
|
371
|
+
minute(): number
|
|
372
|
+
/**
|
|
373
|
+
* Set the minutes.
|
|
374
|
+
*
|
|
375
|
+
* Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.
|
|
376
|
+
* ```
|
|
377
|
+
* dayjs().minute(59)// => Dayjs
|
|
378
|
+
* ```
|
|
379
|
+
* Docs: https://day.js.org/docs/en/get-set/minute
|
|
380
|
+
*/
|
|
381
|
+
minute(value: number): Dayjs
|
|
382
|
+
/**
|
|
383
|
+
* Get the seconds.
|
|
384
|
+
* ```
|
|
385
|
+
* dayjs().second()// => 0-59
|
|
386
|
+
* ```
|
|
387
|
+
* Docs: https://day.js.org/docs/en/get-set/second
|
|
388
|
+
*/
|
|
389
|
+
second(): number
|
|
390
|
+
/**
|
|
391
|
+
* Set the seconds.
|
|
392
|
+
*
|
|
393
|
+
* Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.
|
|
394
|
+
* ```
|
|
395
|
+
* dayjs().second(1)// Dayjs
|
|
396
|
+
* ```
|
|
397
|
+
*/
|
|
398
|
+
second(value: number): Dayjs
|
|
399
|
+
/**
|
|
400
|
+
* Get the milliseconds.
|
|
401
|
+
* ```
|
|
402
|
+
* dayjs().millisecond()// => 0-999
|
|
403
|
+
* ```
|
|
404
|
+
* Docs: https://day.js.org/docs/en/get-set/millisecond
|
|
405
|
+
*/
|
|
406
|
+
millisecond(): number
|
|
407
|
+
/**
|
|
408
|
+
* Set the milliseconds.
|
|
409
|
+
*
|
|
410
|
+
* Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.
|
|
411
|
+
* ```
|
|
412
|
+
* dayjs().millisecond(1)// => Dayjs
|
|
413
|
+
* ```
|
|
414
|
+
* Docs: https://day.js.org/docs/en/get-set/millisecond
|
|
415
|
+
*/
|
|
416
|
+
millisecond(value: number): Dayjs
|
|
417
|
+
/**
|
|
418
|
+
* Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
|
|
419
|
+
*
|
|
420
|
+
* In general:
|
|
421
|
+
* ```
|
|
422
|
+
* dayjs().set(unit, value) === dayjs()[unit](value)
|
|
423
|
+
* ```
|
|
424
|
+
* Units are case insensitive, and support plural and short forms.
|
|
425
|
+
* ```
|
|
426
|
+
* dayjs().set('date', 1)
|
|
427
|
+
* dayjs().set('month', 3) // April
|
|
428
|
+
* dayjs().set('second', 30)
|
|
429
|
+
* ```
|
|
430
|
+
* Docs: https://day.js.org/docs/en/get-set/set
|
|
431
|
+
*/
|
|
432
|
+
set(unit: UnitType, value: number): Dayjs
|
|
433
|
+
/**
|
|
434
|
+
* String getter, returns the corresponding information getting from Day.js object.
|
|
435
|
+
*
|
|
436
|
+
* In general:
|
|
437
|
+
* ```
|
|
438
|
+
* dayjs().get(unit) === dayjs()[unit]()
|
|
439
|
+
* ```
|
|
440
|
+
* Units are case insensitive, and support plural and short forms.
|
|
441
|
+
* ```
|
|
442
|
+
* dayjs().get('year')
|
|
443
|
+
* dayjs().get('month') // start 0
|
|
444
|
+
* dayjs().get('date')
|
|
445
|
+
* ```
|
|
446
|
+
* Docs: https://day.js.org/docs/en/get-set/get
|
|
447
|
+
*/
|
|
448
|
+
get(unit: UnitType): number
|
|
449
|
+
/**
|
|
450
|
+
* Returns a cloned Day.js object with a specified amount of time added.
|
|
451
|
+
* ```
|
|
452
|
+
* dayjs().add(7, 'day')// => Dayjs
|
|
453
|
+
* ```
|
|
454
|
+
* Units are case insensitive, and support plural and short forms.
|
|
455
|
+
*
|
|
456
|
+
* Docs: https://day.js.org/docs/en/manipulate/add
|
|
457
|
+
*/
|
|
458
|
+
add(value: number, unit?: ManipulateType): Dayjs
|
|
459
|
+
/**
|
|
460
|
+
* Returns a cloned Day.js object with a specified amount of time subtracted.
|
|
461
|
+
* ```
|
|
462
|
+
* dayjs().subtract(7, 'year')// => Dayjs
|
|
463
|
+
* ```
|
|
464
|
+
* Units are case insensitive, and support plural and short forms.
|
|
465
|
+
*
|
|
466
|
+
* Docs: https://day.js.org/docs/en/manipulate/subtract
|
|
467
|
+
*/
|
|
468
|
+
subtract(value: number, unit?: ManipulateType): Dayjs
|
|
469
|
+
/**
|
|
470
|
+
* Returns a cloned Day.js object and set it to the start of a unit of time.
|
|
471
|
+
* ```
|
|
472
|
+
* dayjs().startOf('year')// => Dayjs
|
|
473
|
+
* ```
|
|
474
|
+
* Units are case insensitive, and support plural and short forms.
|
|
475
|
+
*
|
|
476
|
+
* Docs: https://day.js.org/docs/en/manipulate/start-of
|
|
477
|
+
*/
|
|
478
|
+
startOf(unit: OpUnitType): Dayjs
|
|
479
|
+
/**
|
|
480
|
+
* Returns a cloned Day.js object and set it to the end of a unit of time.
|
|
481
|
+
* ```
|
|
482
|
+
* dayjs().endOf('month')// => Dayjs
|
|
483
|
+
* ```
|
|
484
|
+
* Units are case insensitive, and support plural and short forms.
|
|
485
|
+
*
|
|
486
|
+
* Docs: https://day.js.org/docs/en/manipulate/end-of
|
|
487
|
+
*/
|
|
488
|
+
endOf(unit: OpUnitType): Dayjs
|
|
489
|
+
/**
|
|
490
|
+
* Get the formatted date according to the string of tokens passed in.
|
|
491
|
+
*
|
|
492
|
+
* To escape characters, wrap them in square brackets (e.g. [MM]).
|
|
493
|
+
* ```
|
|
494
|
+
* dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
|
|
495
|
+
* dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
|
|
496
|
+
* dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
|
|
497
|
+
* ```
|
|
498
|
+
* Docs: https://day.js.org/docs/en/display/format
|
|
499
|
+
*/
|
|
500
|
+
format(template?: string): string
|
|
501
|
+
/**
|
|
502
|
+
* This indicates the difference between two date-time in the specified unit.
|
|
503
|
+
*
|
|
504
|
+
* To get the difference in milliseconds, use `dayjs#diff`
|
|
505
|
+
* ```
|
|
506
|
+
* const date1 = dayjs('2019-01-25')
|
|
507
|
+
* const date2 = dayjs('2018-06-05')
|
|
508
|
+
* date1.diff(date2) // 20214000000 default milliseconds
|
|
509
|
+
* date1.diff() // milliseconds to current time
|
|
510
|
+
* ```
|
|
511
|
+
*
|
|
512
|
+
* To get the difference in another unit of measurement, pass that measurement as the second argument.
|
|
513
|
+
* ```
|
|
514
|
+
* const date1 = dayjs('2019-01-25')
|
|
515
|
+
* date1.diff('2018-06-05', 'month') // 7
|
|
516
|
+
* ```
|
|
517
|
+
* Units are case insensitive, and support plural and short forms.
|
|
518
|
+
*
|
|
519
|
+
* Docs: https://day.js.org/docs/en/display/difference
|
|
520
|
+
*/
|
|
521
|
+
diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number
|
|
522
|
+
/**
|
|
523
|
+
* This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
|
|
524
|
+
* ```
|
|
525
|
+
* dayjs('2019-01-25').valueOf() // 1548381600000
|
|
526
|
+
* +dayjs(1548381600000) // 1548381600000
|
|
527
|
+
* ```
|
|
528
|
+
* To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
|
|
529
|
+
*
|
|
530
|
+
* Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
|
|
531
|
+
*/
|
|
532
|
+
valueOf(): number
|
|
533
|
+
/**
|
|
534
|
+
* This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
|
|
535
|
+
* ```
|
|
536
|
+
* dayjs('2019-01-25').unix() // 1548381600
|
|
537
|
+
* ```
|
|
538
|
+
* This value is floored to the nearest second, and does not include a milliseconds component.
|
|
539
|
+
*
|
|
540
|
+
* Docs: https://day.js.org/docs/en/display/unix-timestamp
|
|
541
|
+
*/
|
|
542
|
+
unix(): number
|
|
543
|
+
/**
|
|
544
|
+
* Get the number of days in the current month.
|
|
545
|
+
* ```
|
|
546
|
+
* dayjs('2019-01-25').daysInMonth() // 31
|
|
547
|
+
* ```
|
|
548
|
+
* Docs: https://day.js.org/docs/en/display/days-in-month
|
|
549
|
+
*/
|
|
550
|
+
daysInMonth(): number
|
|
551
|
+
/**
|
|
552
|
+
* To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
|
|
553
|
+
* ```
|
|
554
|
+
* dayjs('2019-01-25').toDate()// => Date
|
|
555
|
+
* ```
|
|
556
|
+
*/
|
|
557
|
+
toDate(): Date
|
|
558
|
+
/**
|
|
559
|
+
* To serialize as an ISO 8601 string.
|
|
560
|
+
* ```
|
|
561
|
+
* dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
|
|
562
|
+
* ```
|
|
563
|
+
* Docs: https://day.js.org/docs/en/display/as-json
|
|
564
|
+
*/
|
|
565
|
+
toJSON(): string
|
|
566
|
+
/**
|
|
567
|
+
* To format as an ISO 8601 string.
|
|
568
|
+
* ```
|
|
569
|
+
* dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
|
|
570
|
+
* ```
|
|
571
|
+
* Docs: https://day.js.org/docs/en/display/as-iso-string
|
|
572
|
+
*/
|
|
573
|
+
toISOString(): string
|
|
574
|
+
/**
|
|
575
|
+
* Returns a string representation of the date.
|
|
576
|
+
* ```
|
|
577
|
+
* dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
|
|
578
|
+
* ```
|
|
579
|
+
* Docs: https://day.js.org/docs/en/display/as-string
|
|
580
|
+
*/
|
|
581
|
+
toString(): string
|
|
582
|
+
/**
|
|
583
|
+
* Get the UTC offset in minutes.
|
|
584
|
+
* ```
|
|
585
|
+
* dayjs().utcOffset()
|
|
586
|
+
* ```
|
|
587
|
+
* Docs: https://day.js.org/docs/en/manipulate/utc-offset
|
|
588
|
+
*/
|
|
589
|
+
utcOffset(): number
|
|
590
|
+
/**
|
|
591
|
+
* This indicates whether the Day.js object is before the other supplied date-time.
|
|
592
|
+
* ```
|
|
593
|
+
* dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
|
|
594
|
+
* ```
|
|
595
|
+
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
|
596
|
+
* ```
|
|
597
|
+
* dayjs().isBefore('2011-01-01', 'year')// => boolean
|
|
598
|
+
* ```
|
|
599
|
+
* Units are case insensitive, and support plural and short forms.
|
|
600
|
+
*
|
|
601
|
+
* Docs: https://day.js.org/docs/en/query/is-before
|
|
602
|
+
*/
|
|
603
|
+
isBefore(date?: ConfigType, unit?: OpUnitType): boolean
|
|
604
|
+
/**
|
|
605
|
+
* This indicates whether the Day.js object is the same as the other supplied date-time.
|
|
606
|
+
* ```
|
|
607
|
+
* dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
|
|
608
|
+
* ```
|
|
609
|
+
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
|
610
|
+
* ```
|
|
611
|
+
* dayjs().isSame('2011-01-01', 'year')// => boolean
|
|
612
|
+
* ```
|
|
613
|
+
* Docs: https://day.js.org/docs/en/query/is-same
|
|
614
|
+
*/
|
|
615
|
+
isSame(date?: ConfigType, unit?: OpUnitType): boolean
|
|
616
|
+
/**
|
|
617
|
+
* This indicates whether the Day.js object is after the other supplied date-time.
|
|
618
|
+
* ```
|
|
619
|
+
* dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
|
|
620
|
+
* ```
|
|
621
|
+
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
|
622
|
+
* ```
|
|
623
|
+
* dayjs().isAfter('2011-01-01', 'year')// => boolean
|
|
624
|
+
* ```
|
|
625
|
+
* Units are case insensitive, and support plural and short forms.
|
|
626
|
+
*
|
|
627
|
+
* Docs: https://day.js.org/docs/en/query/is-after
|
|
628
|
+
*/
|
|
629
|
+
isAfter(date?: ConfigType, unit?: OpUnitType): boolean
|
|
630
|
+
|
|
631
|
+
locale(): string
|
|
632
|
+
|
|
633
|
+
locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void
|
|
637
|
+
|
|
638
|
+
export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs
|
|
639
|
+
|
|
640
|
+
export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string
|
|
641
|
+
|
|
642
|
+
export function isDayjs(d: any): d is Dayjs
|
|
643
|
+
|
|
644
|
+
export function unix(t: number): Dayjs
|
|
645
|
+
|
|
646
|
+
const Ls : { [key: string] : ILocale }
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
type Dayjs$2 = dayjs.Dayjs;
|
|
650
|
+
|
|
651
|
+
interface DatePickerBasicProps {
|
|
652
|
+
value: Dayjs$2 | null;
|
|
653
|
+
onChange: (day: Dayjs$2 | null) => void;
|
|
654
|
+
require?: boolean;
|
|
655
|
+
title?: string;
|
|
656
|
+
bottomText?: string;
|
|
657
|
+
showError?: boolean;
|
|
658
|
+
errorMessage?: string;
|
|
659
|
+
placeholder?: string;
|
|
660
|
+
disabled?: boolean;
|
|
661
|
+
defaultValue?: Dayjs$2 | null;
|
|
662
|
+
mode?: "time" | "date" | "month";
|
|
663
|
+
minDate?: Dayjs$2 | undefined;
|
|
664
|
+
maxDate?: Dayjs$2 | undefined;
|
|
665
|
+
disabledDate?: (currentDate: Dayjs$2) => boolean;
|
|
666
|
+
className?: string;
|
|
667
|
+
size?: "small" | "middle" | "large";
|
|
668
|
+
}
|
|
669
|
+
declare function DatePickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
|
|
670
|
+
|
|
671
|
+
type Dayjs$1 = dayjs.Dayjs;
|
|
672
|
+
interface DatePickerRangePickerProps {
|
|
673
|
+
value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
|
|
674
|
+
onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
|
|
675
|
+
placeholder?: [string, string];
|
|
676
|
+
title?: string;
|
|
677
|
+
require?: boolean;
|
|
678
|
+
bottomText?: string;
|
|
679
|
+
showError?: boolean;
|
|
680
|
+
errorMessage?: string;
|
|
681
|
+
disabled?: boolean;
|
|
682
|
+
defaultValue?: [Dayjs$1, Dayjs$1] | null;
|
|
683
|
+
mode?: "time" | "date" | "month";
|
|
684
|
+
minDate?: Dayjs$1 | undefined;
|
|
685
|
+
maxDate?: Dayjs$1 | undefined;
|
|
686
|
+
disabledDate?: (currentDate: Dayjs$1) => boolean;
|
|
687
|
+
size?: "small" | "middle" | "large";
|
|
688
|
+
className?: string;
|
|
689
|
+
onOpenChange?: (open: boolean) => void;
|
|
690
|
+
onCalendarChange?: (dates: [Dayjs$1 | null, Dayjs$1 | null], dateStrings: [string, string], info: any) => void;
|
|
691
|
+
}
|
|
692
|
+
declare function DatePickerRangePicker({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
693
|
+
|
|
694
|
+
type Dayjs = dayjs.Dayjs;
|
|
695
|
+
interface TimePickerBasicProps {
|
|
696
|
+
value: Dayjs | null;
|
|
697
|
+
onChange: (time: Dayjs | null) => void;
|
|
698
|
+
require?: boolean;
|
|
699
|
+
title?: string;
|
|
700
|
+
bottomText?: string;
|
|
701
|
+
showError?: boolean;
|
|
702
|
+
errorMessage?: string;
|
|
703
|
+
placeholder?: string;
|
|
704
|
+
disabled?: boolean;
|
|
705
|
+
className?: string;
|
|
706
|
+
}
|
|
707
|
+
declare function TimePickerBasic({ value, onChange, require, title, bottomText, showError, errorMessage, placeholder, disabled, className }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
|
|
708
|
+
|
|
709
|
+
interface TimePickerRangePickerProps {
|
|
710
|
+
value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
|
|
711
|
+
onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
|
|
712
|
+
placeholder?: [string, string];
|
|
713
|
+
title?: string;
|
|
714
|
+
require?: boolean;
|
|
715
|
+
bottomText?: string;
|
|
716
|
+
showError?: boolean;
|
|
717
|
+
errorMessage?: string;
|
|
718
|
+
disabled?: boolean;
|
|
719
|
+
className?: string;
|
|
720
|
+
}
|
|
721
|
+
declare function TimePickerRangePicker({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, className }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
722
|
+
|
|
723
|
+
interface SelectFieldProps$1 {
|
|
724
|
+
value?: SelectProps["value"];
|
|
725
|
+
onChange: (value: SelectProps["value"]) => void;
|
|
726
|
+
placeholder?: string;
|
|
727
|
+
title?: string;
|
|
728
|
+
require?: boolean;
|
|
729
|
+
bottomText?: string;
|
|
730
|
+
errorMessage?: string;
|
|
731
|
+
showError?: boolean;
|
|
732
|
+
disabled?: boolean;
|
|
733
|
+
defaultValue?: string;
|
|
734
|
+
options?: {
|
|
735
|
+
label: ReactNode;
|
|
736
|
+
value: string | number | null;
|
|
737
|
+
disabled?: boolean;
|
|
738
|
+
}[];
|
|
739
|
+
mode?: 'multiple' | 'tags';
|
|
740
|
+
handleSearch?: (value: string) => void;
|
|
741
|
+
prefix?: ReactNode;
|
|
742
|
+
prefixSize?: number;
|
|
743
|
+
className?: string;
|
|
744
|
+
}
|
|
745
|
+
declare function SelectField({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
|
|
746
|
+
|
|
747
|
+
interface SelectFieldProps {
|
|
748
|
+
value?: SelectProps["value"];
|
|
749
|
+
onChange: (value: SelectProps["value"]) => void;
|
|
750
|
+
placeholder?: string;
|
|
751
|
+
title?: string;
|
|
752
|
+
require?: boolean;
|
|
753
|
+
bottomText?: string;
|
|
754
|
+
errorMessage?: string;
|
|
755
|
+
showError?: boolean;
|
|
756
|
+
disabled?: boolean;
|
|
757
|
+
defaultValue?: string;
|
|
758
|
+
options?: {
|
|
759
|
+
label: ReactNode;
|
|
760
|
+
options: {
|
|
761
|
+
label: ReactNode;
|
|
762
|
+
value: string | number;
|
|
763
|
+
disabled?: boolean;
|
|
764
|
+
}[];
|
|
765
|
+
}[];
|
|
766
|
+
mode?: "multiple" | "tags";
|
|
767
|
+
handleSearch?: (value: string) => void;
|
|
768
|
+
prefix?: ReactNode;
|
|
769
|
+
prefixSize?: number;
|
|
770
|
+
className?: string;
|
|
771
|
+
}
|
|
772
|
+
declare function SelectFieldGroup({ value, onChange, placeholder, title, require, bottomText, showError, errorMessage, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className }: SelectFieldProps): react_jsx_runtime.JSX.Element;
|
|
773
|
+
|
|
774
|
+
interface SelectFieldStatusProps {
|
|
775
|
+
value: string | undefined;
|
|
776
|
+
onChange: (value: string | undefined) => void;
|
|
777
|
+
placeholder?: string;
|
|
778
|
+
title?: string;
|
|
779
|
+
require?: boolean;
|
|
780
|
+
bottomText?: string;
|
|
781
|
+
disabled?: boolean;
|
|
782
|
+
showError?: boolean;
|
|
783
|
+
errorMessage?: string;
|
|
784
|
+
options?: {
|
|
785
|
+
label: ReactNode;
|
|
786
|
+
value: string | number | null;
|
|
787
|
+
disabled?: boolean;
|
|
788
|
+
}[];
|
|
789
|
+
className?: string;
|
|
790
|
+
}
|
|
791
|
+
declare function SelectFieldStatus({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, options, className }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
|
|
792
|
+
|
|
793
|
+
interface SelectFieldStatusReportProps {
|
|
794
|
+
value: string | undefined;
|
|
795
|
+
onChange: (value: string | undefined) => void;
|
|
796
|
+
placeholder?: string;
|
|
797
|
+
title?: string;
|
|
798
|
+
require?: boolean;
|
|
799
|
+
bottomText?: string;
|
|
800
|
+
disabled?: boolean;
|
|
801
|
+
showError?: boolean;
|
|
802
|
+
errorMessage?: string;
|
|
803
|
+
className?: string;
|
|
804
|
+
}
|
|
805
|
+
declare function SelectFieldStatusReport({ value, onChange, placeholder, title, require, bottomText, disabled, showError, errorMessage, className }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
|
|
806
|
+
|
|
807
|
+
interface SelectFieldTagProps {
|
|
808
|
+
title?: string | null;
|
|
809
|
+
require?: boolean;
|
|
810
|
+
bottomText?: string | null;
|
|
811
|
+
placeholder?: string;
|
|
812
|
+
options?: {
|
|
813
|
+
label: ReactNode;
|
|
814
|
+
value: string | number | null;
|
|
815
|
+
disabled?: boolean;
|
|
816
|
+
}[];
|
|
817
|
+
showError?: boolean;
|
|
818
|
+
errorMessage?: string;
|
|
819
|
+
value?: string[];
|
|
820
|
+
onChange?: (val: string[]) => void;
|
|
821
|
+
className?: string;
|
|
822
|
+
}
|
|
823
|
+
declare function SelectFieldTag({ title, require, bottomText, placeholder, options, showError, errorMessage, value: controlledValue, className, onChange, }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
|
|
824
|
+
|
|
825
|
+
interface SortFilterProps {
|
|
826
|
+
showYear?: boolean;
|
|
827
|
+
showQuarter?: boolean;
|
|
828
|
+
showMonth?: boolean;
|
|
829
|
+
onSortClick?: () => void;
|
|
830
|
+
onFilterClick?: () => void;
|
|
831
|
+
}
|
|
832
|
+
declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onFilterClick, }: SortFilterProps): react_jsx_runtime.JSX.Element;
|
|
833
|
+
|
|
834
|
+
interface FileUploaderProps {
|
|
835
|
+
onUpload: (file: File) => Promise<void>;
|
|
836
|
+
onRemove?: () => Promise<void>;
|
|
837
|
+
onError?: (message: string) => void;
|
|
838
|
+
accept?: string[];
|
|
839
|
+
maxSize?: number;
|
|
840
|
+
disabled?: boolean;
|
|
841
|
+
mode: "upload" | "drop";
|
|
842
|
+
description?: string;
|
|
843
|
+
label?: string;
|
|
844
|
+
}
|
|
845
|
+
declare function FileUploader({ onUpload, onError, onRemove, accept, maxSize, disabled, mode, description, label, }: FileUploaderProps): react_jsx_runtime.JSX.Element;
|
|
846
|
+
|
|
847
|
+
declare function setMessageApi(api: MessageInstance): void;
|
|
848
|
+
declare function messageSuccess(content: string): void;
|
|
849
|
+
declare function messageError(content: string): void;
|
|
850
|
+
declare function messageWarning(content: string): void;
|
|
851
|
+
declare function messageInfo(content: string): void;
|
|
852
|
+
declare function messageLoading(content: string, duration?: number): void;
|
|
853
|
+
|
|
854
|
+
interface BreadcrumbsProps {
|
|
855
|
+
items: ItemType[];
|
|
856
|
+
separator: ReactNode;
|
|
857
|
+
itemRender?: (route: any, params: any, routes: any[], paths: string[]) => ReactNode;
|
|
858
|
+
classname?: string;
|
|
859
|
+
params?: object;
|
|
860
|
+
}
|
|
861
|
+
declare function Breadcrumbs({ items, separator, itemRender, classname, params, }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
862
|
+
|
|
863
|
+
interface HeadingPageProps {
|
|
864
|
+
Heading: string;
|
|
865
|
+
}
|
|
866
|
+
declare function HeadingPage({ Heading }: HeadingPageProps): react_jsx_runtime.JSX.Element;
|
|
867
|
+
|
|
868
|
+
interface ProgressBarProps {
|
|
869
|
+
percent: number | undefined;
|
|
870
|
+
size?: number | [number | string, number] | {
|
|
871
|
+
width: number;
|
|
872
|
+
height: number;
|
|
873
|
+
} | "small" | "default";
|
|
874
|
+
checkpoints?: number[] | undefined;
|
|
875
|
+
showInfo?: boolean;
|
|
876
|
+
trailColor?: string;
|
|
877
|
+
type: "line" | "circle" | "dashboard";
|
|
878
|
+
strokeLinecap?: "round" | "butt" | "square";
|
|
879
|
+
strokeWidth?: number;
|
|
880
|
+
steps?: number;
|
|
881
|
+
isCheckPoints?: boolean;
|
|
128
882
|
}
|
|
129
|
-
declare function
|
|
883
|
+
declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
130
884
|
|
|
131
|
-
export { Calendar, Checkbox, CheckboxGroup, DataTable, GhostButton, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, Radio, RadioGroup, SecondaryButton, Switch, TextInput, TopNavBar };
|
|
885
|
+
export { AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
|