@esic-lab/data-core-ui 0.0.29 → 0.0.31

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.ts CHANGED
@@ -1,10 +1,10 @@
1
- /// <reference path="../node_modules/dayjs/locale/index.d.ts" />
2
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
2
  import react, { ReactNode } from 'react';
4
- import { ColumnsType } from 'antd/es/table';
3
+ import * as antd_es_table_interface from 'antd/es/table/interface';
4
+ import { ColumnsType, TableProps } from 'antd/es/table';
5
5
  import { EventSourceInput } from '@fullcalendar/core';
6
+ import { InputNumberProps, SelectProps } from 'antd';
6
7
  import { Color } from 'antd/es/color-picker';
7
- import { SelectProps } from 'antd';
8
8
  import { MessageInstance } from 'antd/es/message/interface';
9
9
  import { ItemType } from 'antd/es/breadcrumb/Breadcrumb';
10
10
 
@@ -40,6 +40,17 @@ interface GhostButtonProps {
40
40
  }
41
41
  declare function GhostButton({ title, onClick, iconLeft, iconRight, disabled }: GhostButtonProps): react_jsx_runtime.JSX.Element;
42
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
+
43
54
  interface LoaderProps {
44
55
  size?: number;
45
56
  color?: string;
@@ -94,6 +105,19 @@ interface SwitchProps {
94
105
  }
95
106
  declare function Switch({ label, checked, onChange, disabled }: SwitchProps): react_jsx_runtime.JSX.Element;
96
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
+
97
121
  interface Menu {
98
122
  title: string;
99
123
  subMenus: {
@@ -147,13 +171,15 @@ interface AntDataTableProps<T> {
147
171
  pageSize?: number;
148
172
  rowCheckbox?: boolean;
149
173
  onRowSelect?: (newSelectedRowKeys: React.Key[]) => void;
174
+ onFilter: (filters: Record<string, antd_es_table_interface.FilterValue | null>) => void;
175
+ onChange?: TableProps<T>["onChange"];
150
176
  width?: number;
151
177
  height?: number;
152
178
  pagination?: boolean;
153
179
  }
154
180
  declare function AntDataTable<T extends {
155
181
  key: React.Key;
156
- }>({ dataSource, columns, pageSize, rowCheckbox, onRowSelect, width, height, pagination, }: AntDataTableProps<T>): react_jsx_runtime.JSX.Element;
182
+ }>({ dataSource, columns, pageSize, rowCheckbox, onRowSelect, onFilter, onChange, width, height, pagination, }: AntDataTableProps<T>): react_jsx_runtime.JSX.Element;
157
183
 
158
184
  interface CalendarProps {
159
185
  events: EventSourceInput | undefined;
@@ -173,23 +199,6 @@ interface TextInputProps {
173
199
  }
174
200
  declare function TextInput({ label, placeholder, type, maxLength, required, error, value, onChange, disabled, }: TextInputProps): react_jsx_runtime.JSX.Element;
175
201
 
176
- interface InputFieldProps {
177
- value: string | undefined;
178
- onChange: (value: string | undefined) => void;
179
- placeholder?: string;
180
- title?: string;
181
- required?: boolean;
182
- bottomText?: string;
183
- disabled?: boolean;
184
- error?: string;
185
- addonBefore?: ReactNode;
186
- addonAfter?: ReactNode;
187
- defaultValue?: string;
188
- className?: string;
189
- onClear?: () => void;
190
- }
191
- declare function InputField({ value, onChange, placeholder, title, required, bottomText, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, }: InputFieldProps): react_jsx_runtime.JSX.Element;
192
-
193
202
  interface TextAreaProps {
194
203
  label?: string;
195
204
  height?: number;
@@ -205,523 +214,129 @@ interface TextAreaProps {
205
214
  }
206
215
  declare function TextAreaInput({ label, height, placeholder, onChange, value, maxLength, resizable, showCount, required, error, disabled, }: TextAreaProps): react_jsx_runtime.JSX.Element;
207
216
 
208
- interface ColorPickerProps {
209
- value: string | null;
210
- onChange?: (color: Color, hex: string) => void;
217
+ interface InputFieldProps {
218
+ value: string | undefined;
219
+ onChange: (value: string | undefined) => void;
220
+ placeholder?: string;
221
+ label?: string;
211
222
  required?: boolean;
212
- title?: string;
213
- bottomText?: string;
214
- error?: string;
215
223
  disabled?: boolean;
216
- allowClear?: boolean;
217
- defaultFormat?: "hex" | "rgb" | "hsb";
224
+ error?: string;
225
+ addonBefore?: ReactNode;
226
+ addonAfter?: ReactNode;
227
+ defaultValue?: string;
218
228
  className?: string;
219
- placeholder?: string;
229
+ onClear?: () => void;
230
+ statickey?: string;
220
231
  }
221
- declare function ColorPickerBasic({ value, onChange, required, title, bottomText, error, 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;
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;
650
258
 
651
259
  interface DatePickerBasicProps {
652
- value: Dayjs$2 | null;
653
- onChange: (day: Dayjs$2 | null) => void;
260
+ value: Date | null;
261
+ onChange: (day: Date | null) => void;
654
262
  required?: boolean;
655
- title?: string;
656
- bottomText?: string;
263
+ label?: string;
657
264
  error?: string;
658
265
  placeholder?: string;
659
266
  disabled?: boolean;
660
- defaultValue?: Dayjs$2 | null;
267
+ defaultValue?: Date | null;
661
268
  mode?: "time" | "date" | "month";
662
- minDate?: Dayjs$2 | undefined;
663
- maxDate?: Dayjs$2 | undefined;
664
- disabledDate?: (currentDate: Dayjs$2) => boolean;
269
+ minDate?: Date;
270
+ maxDate?: Date;
271
+ disabledDate?: (currentDate: Date) => boolean;
665
272
  className?: string;
666
273
  size?: "small" | "middle" | "large";
667
274
  }
668
- declare function DatePickerBasic({ value, onChange, required, title, bottomText, error, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
275
+ declare function DatePickerBasic({ value, onChange, required, label, error, placeholder, disabled, defaultValue, minDate, maxDate, disabledDate, className, size, }: DatePickerBasicProps): react_jsx_runtime.JSX.Element;
669
276
 
670
- type Dayjs$1 = dayjs.Dayjs;
671
277
  interface DatePickerRangePickerProps {
672
- value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
673
- onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
278
+ value: [Date | null, Date | null] | null;
279
+ onChange: (val: [Date | null, Date | null] | null) => void;
674
280
  placeholder?: [string, string];
675
- title?: string;
281
+ label?: string;
676
282
  required?: boolean;
677
- bottomText?: string;
678
283
  error?: string;
679
284
  disabled?: boolean;
680
- defaultValue?: [Dayjs$1, Dayjs$1] | null;
285
+ defaultValue?: [Date, Date] | null;
681
286
  mode?: "time" | "date" | "month";
682
- minDate?: Dayjs$1 | undefined;
683
- maxDate?: Dayjs$1 | undefined;
684
- disabledDate?: (currentDate: Dayjs$1) => boolean;
287
+ minDate?: Date | undefined;
288
+ maxDate?: Date | undefined;
289
+ disabledDate?: (currentDate: Date) => boolean;
685
290
  size?: "small" | "middle" | "large";
686
291
  className?: string;
687
292
  onOpenChange?: (open: boolean) => void;
688
- onCalendarChange?: (dates: [Dayjs$1 | null, Dayjs$1 | null], dateStrings: [string, string], info: any) => void;
293
+ onCalendarChange?: (dates: [Date | null, Date | null], dateStrings: [string, string], info: any) => void;
689
294
  }
690
- declare function DatePickerRangePicker({ value, onChange, placeholder, title, required, bottomText, error, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
295
+ declare function DatePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, minDate, maxDate, disabledDate, size, className, onOpenChange, onCalendarChange, }: DatePickerRangePickerProps): react_jsx_runtime.JSX.Element;
691
296
 
692
- type Dayjs = dayjs.Dayjs;
693
297
  interface TimePickerBasicProps {
694
- value: Dayjs | null;
695
- onChange: (time: Dayjs | null) => void;
298
+ value: Date | null;
299
+ onChange: (time: Date | null) => void;
696
300
  required?: boolean;
697
- title?: string;
698
- bottomText?: string;
301
+ label?: string;
699
302
  error?: string;
700
303
  placeholder?: string;
701
304
  disabled?: boolean;
702
305
  className?: string;
703
306
  }
704
- declare function TimePickerBasic({ value, onChange, required, title, bottomText, error, placeholder, disabled, className, }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
307
+ declare function TimePickerBasic({ value, onChange, required, label, error, placeholder, disabled, className, }: TimePickerBasicProps): react_jsx_runtime.JSX.Element;
705
308
 
706
309
  interface TimePickerRangePickerProps {
707
- value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
708
- onChange: (val: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
310
+ value: [Date | null, Date | null] | null;
311
+ onChange: (val: [Date | null, Date | null] | null) => void;
709
312
  placeholder?: [string, string];
710
- title?: 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
+ interface ColorPickerProps {
322
+ value: string | null;
323
+ onChange?: (color: Color, hex: string) => void;
711
324
  required?: boolean;
712
- bottomText?: string;
325
+ label?: string;
713
326
  error?: string;
714
327
  disabled?: boolean;
328
+ allowClear?: boolean;
329
+ defaultFormat?: "hex" | "rgb" | "hsb";
715
330
  className?: string;
331
+ placeholder?: string;
716
332
  }
717
- declare function TimePickerRangePicker({ value, onChange, placeholder, title, required, bottomText, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
333
+ declare function ColorPickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
718
334
 
719
335
  interface ColorPalettePickerBasicProps {
720
336
  value: string | null;
721
337
  onChange?: (color: Color, hex: string) => void;
722
338
  required?: boolean;
723
- title?: string;
724
- bottomText?: string;
339
+ label?: string;
725
340
  error?: string;
726
341
  disabled?: boolean;
727
342
  allowClear?: boolean;
@@ -730,15 +345,14 @@ interface ColorPalettePickerBasicProps {
730
345
  placeholder?: string;
731
346
  onClear?: () => void;
732
347
  }
733
- declare function ColorPalettePickerBasic({ value, onChange, required, title, bottomText, error, disabled, allowClear, defaultFormat, className, placeholder, onClear, }: ColorPalettePickerBasicProps): react_jsx_runtime.JSX.Element;
348
+ declare function ColorPalettePickerBasic({ value, onChange, required, label, error, disabled, allowClear, defaultFormat, className, placeholder, onClear, }: ColorPalettePickerBasicProps): react_jsx_runtime.JSX.Element;
734
349
 
735
350
  interface SelectFieldProps$1 {
736
351
  value?: SelectProps["value"];
737
352
  onChange: (value: SelectProps["value"]) => void;
738
353
  placeholder?: string;
739
- title?: string;
354
+ label?: string;
740
355
  required?: boolean;
741
- bottomText?: string;
742
356
  error?: string;
743
357
  disabled?: boolean;
744
358
  defaultValue?: string;
@@ -754,15 +368,14 @@ interface SelectFieldProps$1 {
754
368
  className?: string;
755
369
  onClear?: () => void;
756
370
  }
757
- declare function SelectField({ value, onChange, placeholder, title, required, bottomText, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, onClear, }: SelectFieldProps$1): react_jsx_runtime.JSX.Element;
371
+ 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;
758
372
 
759
373
  interface SelectFieldProps {
760
374
  value?: SelectProps["value"];
761
375
  onChange: (value: SelectProps["value"]) => void;
762
376
  placeholder?: string;
763
- title?: string;
377
+ label?: string;
764
378
  required?: boolean;
765
- bottomText?: string;
766
379
  error?: string;
767
380
  disabled?: boolean;
768
381
  defaultValue?: string;
@@ -780,15 +393,14 @@ interface SelectFieldProps {
780
393
  prefixSize?: number;
781
394
  className?: string;
782
395
  }
783
- declare function SelectFieldGroup({ value, onChange, placeholder, title, required, bottomText, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
396
+ declare function SelectFieldGroup({ value, onChange, placeholder, label, required, error, disabled, defaultValue, options, mode, prefix, prefixSize, handleSearch, className, }: SelectFieldProps): react_jsx_runtime.JSX.Element;
784
397
 
785
398
  interface SelectFieldStatusProps {
786
399
  value: string | undefined;
787
400
  onChange: (value: string | undefined) => void;
788
401
  placeholder?: string;
789
- title?: string;
402
+ label?: string;
790
403
  required?: boolean;
791
- bottomText?: string;
792
404
  disabled?: boolean;
793
405
  error?: string;
794
406
  options?: {
@@ -798,15 +410,14 @@ interface SelectFieldStatusProps {
798
410
  }[];
799
411
  className?: string;
800
412
  }
801
- declare function SelectFieldStatus({ value, onChange, placeholder, title, required, bottomText, disabled, error, options, className, }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
413
+ declare function SelectFieldStatus({ value, onChange, placeholder, label, required, disabled, error, options, className, }: SelectFieldStatusProps): react_jsx_runtime.JSX.Element;
802
414
 
803
415
  interface SelectFieldStatusReportProps {
804
416
  value: string | undefined;
805
417
  onChange: (value: string | undefined) => void;
806
418
  placeholder?: string;
807
- title?: string;
419
+ label?: string;
808
420
  required?: boolean;
809
- bottomText?: string;
810
421
  disabled?: boolean;
811
422
  error?: string;
812
423
  className?: string;
@@ -816,12 +427,11 @@ interface SelectFieldStatusReportProps {
816
427
  disabled?: boolean;
817
428
  }[];
818
429
  }
819
- declare function SelectFieldStatusReport({ value, onChange, placeholder, title, required, bottomText, disabled, error, className, options, }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
430
+ declare function SelectFieldStatusReport({ value, onChange, placeholder, label, required, disabled, error, className, options, }: SelectFieldStatusReportProps): react_jsx_runtime.JSX.Element;
820
431
 
821
432
  interface SelectFieldTagProps {
822
- title?: string | null;
433
+ label?: string | null;
823
434
  required?: boolean;
824
- bottomText?: string | null;
825
435
  placeholder?: string;
826
436
  options?: {
827
437
  label: ReactNode;
@@ -834,23 +444,22 @@ interface SelectFieldTagProps {
834
444
  className?: string;
835
445
  onClear?: () => void;
836
446
  }
837
- declare function SelectFieldTag({ title, required, bottomText, placeholder, options, error, value: controlledValue, className, onChange, onClear, }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
447
+ declare function SelectFieldTag({ label, required, placeholder, options, error, value: controlledValue, className, onChange, onClear, }: SelectFieldTagProps): react_jsx_runtime.JSX.Element;
838
448
 
839
449
  interface OptionItem {
840
450
  value: string;
841
451
  label: string;
842
452
  }
843
453
  interface SelectCustomProps {
844
- title?: string;
454
+ label?: string;
845
455
  placeholder?: string;
846
456
  options: OptionItem[];
847
457
  required?: boolean;
848
458
  onChange?: (valueList: string[]) => void;
849
- bottomText?: string;
850
459
  error?: string;
851
460
  onClear?: () => void;
852
461
  }
853
- declare function SelectCustom({ title, placeholder, options, required, onChange, bottomText, error, onClear, }: SelectCustomProps): react_jsx_runtime.JSX.Element;
462
+ declare function SelectCustom({ label, placeholder, options, required, onChange, error, onClear, }: SelectCustomProps): react_jsx_runtime.JSX.Element;
854
463
 
855
464
  interface SortFilterProps {
856
465
  showYear?: boolean;
@@ -863,7 +472,7 @@ declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onF
863
472
 
864
473
  interface FileUploaderProps {
865
474
  onUpload: (file: File) => Promise<void>;
866
- onRemove?: () => Promise<void>;
475
+ onRemove?: (index: number) => Promise<void>;
867
476
  onError?: (message: string) => void;
868
477
  accept?: string[];
869
478
  maxSize?: number;
@@ -910,7 +519,7 @@ interface ProgressBarProps {
910
519
  steps?: number;
911
520
  isCheckPoints?: boolean;
912
521
  }
913
- declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints }: ProgressBarProps): react_jsx_runtime.JSX.Element;
522
+ declare function ProgressBar({ percent, size, checkpoints, showInfo, trailColor, type, strokeLinecap, strokeWidth, steps, isCheckPoints, }: ProgressBarProps): react_jsx_runtime.JSX.Element;
914
523
 
915
524
  interface KpiNumberItem {
916
525
  id: string;
@@ -926,4 +535,39 @@ interface KpiSectionProps {
926
535
  }
927
536
  declare function KpiSection({ type, onChangeKpiList }: KpiSectionProps): react_jsx_runtime.JSX.Element;
928
537
 
929
- export { AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
538
+ interface ModalProps {
539
+ children: ReactNode;
540
+ isOpen: boolean;
541
+ width?: string | number;
542
+ onCancel: () => void;
543
+ }
544
+ declare function AntDModal({ children, isOpen, width, onCancel }: ModalProps): react_jsx_runtime.JSX.Element;
545
+
546
+ interface IndicatorProps {
547
+ option?: {
548
+ value: string;
549
+ label: string;
550
+ }[];
551
+ type: "OUTPUT" | "OUTCOME";
552
+ arrayData: IndicatorArray[];
553
+ setArrayData: (data: IndicatorArray[]) => void;
554
+ }
555
+ interface IndicatorArray {
556
+ indicatorType: "OUTPUT" | "OUTCOME";
557
+ inputType: "TEXT" | "NUMBER";
558
+ textValue: string;
559
+ numberValue?: string;
560
+ unit?: string;
561
+ }
562
+ declare function Indicator({ option, type, arrayData, setArrayData, }: IndicatorProps): react_jsx_runtime.JSX.Element;
563
+
564
+ interface optionSelect {
565
+ value: string;
566
+ label: string;
567
+ }
568
+ declare const FilterPopUp: (filter: {
569
+ selectionFilter: optionSelect[];
570
+ handleSearch: (listFiler: string[]) => void;
571
+ }) => react_jsx_runtime.JSX.Element;
572
+
573
+ export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, 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, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };