@esic-lab/data-core-ui 0.0.30 → 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.mts CHANGED
@@ -1,7 +1,7 @@
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
6
  import { InputNumberProps, SelectProps } from 'antd';
7
7
  import { Color } from 'antd/es/color-picker';
@@ -105,6 +105,19 @@ interface SwitchProps {
105
105
  }
106
106
  declare function Switch({ label, checked, onChange, disabled }: SwitchProps): react_jsx_runtime.JSX.Element;
107
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
+
108
121
  interface Menu {
109
122
  title: string;
110
123
  subMenus: {
@@ -158,13 +171,15 @@ interface AntDataTableProps<T> {
158
171
  pageSize?: number;
159
172
  rowCheckbox?: boolean;
160
173
  onRowSelect?: (newSelectedRowKeys: React.Key[]) => void;
174
+ onFilter: (filters: Record<string, antd_es_table_interface.FilterValue | null>) => void;
175
+ onChange?: TableProps<T>["onChange"];
161
176
  width?: number;
162
177
  height?: number;
163
178
  pagination?: boolean;
164
179
  }
165
180
  declare function AntDataTable<T extends {
166
181
  key: React.Key;
167
- }>({ 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;
168
183
 
169
184
  interface CalendarProps {
170
185
  events: EventSourceInput | undefined;
@@ -203,9 +218,8 @@ interface InputFieldProps {
203
218
  value: string | undefined;
204
219
  onChange: (value: string | undefined) => void;
205
220
  placeholder?: string;
206
- title?: string;
221
+ label?: string;
207
222
  required?: boolean;
208
- bottomText?: string;
209
223
  disabled?: boolean;
210
224
  error?: string;
211
225
  addonBefore?: ReactNode;
@@ -213,14 +227,15 @@ interface InputFieldProps {
213
227
  defaultValue?: string;
214
228
  className?: string;
215
229
  onClear?: () => void;
230
+ statickey?: string;
216
231
  }
217
- declare function InputField({ value, onChange, placeholder, title, required, bottomText, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, }: InputFieldProps): react_jsx_runtime.JSX.Element;
232
+ declare function InputField({ value, onChange, placeholder, label, required, disabled, error, addonBefore, addonAfter, defaultValue, className, onClear, statickey, }: InputFieldProps): react_jsx_runtime.JSX.Element;
218
233
 
219
234
  interface InputFieldNumberProps {
220
235
  value: number | string | null;
221
236
  onChange: (value: number | string | null) => void;
222
237
  placeholder?: string;
223
- title?: string;
238
+ label?: string;
224
239
  required?: boolean;
225
240
  disabled?: boolean;
226
241
  error?: string;
@@ -239,510 +254,75 @@ interface InputFieldNumberProps {
239
254
  formatter?: InputNumberProps["formatter"];
240
255
  parser?: InputNumberProps["parser"];
241
256
  }
242
- declare function InputFieldNumber({ value, onChange, placeholder, title, required, disabled, error, addonBefore, addonAfter, defaultValue, className, max, min, controls, size, changeOnWheel, formatter, parser, }: InputFieldNumberProps): react_jsx_runtime.JSX.Element;
243
-
244
- declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
245
-
246
- declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs
247
-
248
- declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs
249
-
250
- declare namespace dayjs {
251
- interface ConfigTypeMap {
252
- default: string | number | Date | Dayjs | null | undefined
253
- }
254
-
255
- export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
256
-
257
- export interface FormatObject { locale?: string, format?: string, utc?: boolean }
258
-
259
- export type OptionType = FormatObject | string | string[]
260
-
261
- export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
262
-
263
- export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'
264
-
265
- export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'
266
-
267
- export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;
268
-
269
- export type OpUnitType = UnitType | "week" | "weeks" | 'w';
270
- export type QUnitType = UnitType | "quarter" | "quarters" | 'Q';
271
- export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;
272
- class Dayjs {
273
- constructor (config?: ConfigType)
274
- /**
275
- * All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
276
- * ```
277
- * dayjs().clone()// => Dayjs
278
- * dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
279
- * ```
280
- * Docs: https://day.js.org/docs/en/parse/dayjs-clone
281
- */
282
- clone(): Dayjs
283
- /**
284
- * This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
285
- * ```
286
- * dayjs().isValid()// => boolean
287
- * ```
288
- * Docs: https://day.js.org/docs/en/parse/is-valid
289
- */
290
- isValid(): boolean
291
- /**
292
- * Get the year.
293
- * ```
294
- * dayjs().year()// => 2020
295
- * ```
296
- * Docs: https://day.js.org/docs/en/get-set/year
297
- */
298
- year(): number
299
- /**
300
- * Set the year.
301
- * ```
302
- * dayjs().year(2000)// => Dayjs
303
- * ```
304
- * Docs: https://day.js.org/docs/en/get-set/year
305
- */
306
- year(value: number): Dayjs
307
- /**
308
- * Get the month.
309
- *
310
- * Months are zero indexed, so January is month 0.
311
- * ```
312
- * dayjs().month()// => 0-11
313
- * ```
314
- * Docs: https://day.js.org/docs/en/get-set/month
315
- */
316
- month(): number
317
- /**
318
- * Set the month.
319
- *
320
- * Months are zero indexed, so January is month 0.
321
- *
322
- * Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.
323
- * ```
324
- * dayjs().month(0)// => Dayjs
325
- * ```
326
- * Docs: https://day.js.org/docs/en/get-set/month
327
- */
328
- month(value: number): Dayjs
329
- /**
330
- * Get the date of the month.
331
- * ```
332
- * dayjs().date()// => 1-31
333
- * ```
334
- * Docs: https://day.js.org/docs/en/get-set/date
335
- */
336
- date(): number
337
- /**
338
- * Set the date of the month.
339
- *
340
- * Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.
341
- * ```
342
- * dayjs().date(1)// => Dayjs
343
- * ```
344
- * Docs: https://day.js.org/docs/en/get-set/date
345
- */
346
- date(value: number): Dayjs
347
- /**
348
- * Get the day of the week.
349
- *
350
- * Returns numbers from 0 (Sunday) to 6 (Saturday).
351
- * ```
352
- * dayjs().day()// 0-6
353
- * ```
354
- * Docs: https://day.js.org/docs/en/get-set/day
355
- */
356
- day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
357
- /**
358
- * Set the day of the week.
359
- *
360
- * Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.
361
- * ```
362
- * dayjs().day(0)// => Dayjs
363
- * ```
364
- * Docs: https://day.js.org/docs/en/get-set/day
365
- */
366
- day(value: number): Dayjs
367
- /**
368
- * Get the hour.
369
- * ```
370
- * dayjs().hour()// => 0-23
371
- * ```
372
- * Docs: https://day.js.org/docs/en/get-set/hour
373
- */
374
- hour(): number
375
- /**
376
- * Set the hour.
377
- *
378
- * Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.
379
- * ```
380
- * dayjs().hour(12)// => Dayjs
381
- * ```
382
- * Docs: https://day.js.org/docs/en/get-set/hour
383
- */
384
- hour(value: number): Dayjs
385
- /**
386
- * Get the minutes.
387
- * ```
388
- * dayjs().minute()// => 0-59
389
- * ```
390
- * Docs: https://day.js.org/docs/en/get-set/minute
391
- */
392
- minute(): number
393
- /**
394
- * Set the minutes.
395
- *
396
- * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.
397
- * ```
398
- * dayjs().minute(59)// => Dayjs
399
- * ```
400
- * Docs: https://day.js.org/docs/en/get-set/minute
401
- */
402
- minute(value: number): Dayjs
403
- /**
404
- * Get the seconds.
405
- * ```
406
- * dayjs().second()// => 0-59
407
- * ```
408
- * Docs: https://day.js.org/docs/en/get-set/second
409
- */
410
- second(): number
411
- /**
412
- * Set the seconds.
413
- *
414
- * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.
415
- * ```
416
- * dayjs().second(1)// Dayjs
417
- * ```
418
- */
419
- second(value: number): Dayjs
420
- /**
421
- * Get the milliseconds.
422
- * ```
423
- * dayjs().millisecond()// => 0-999
424
- * ```
425
- * Docs: https://day.js.org/docs/en/get-set/millisecond
426
- */
427
- millisecond(): number
428
- /**
429
- * Set the milliseconds.
430
- *
431
- * Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.
432
- * ```
433
- * dayjs().millisecond(1)// => Dayjs
434
- * ```
435
- * Docs: https://day.js.org/docs/en/get-set/millisecond
436
- */
437
- millisecond(value: number): Dayjs
438
- /**
439
- * Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
440
- *
441
- * In general:
442
- * ```
443
- * dayjs().set(unit, value) === dayjs()[unit](value)
444
- * ```
445
- * Units are case insensitive, and support plural and short forms.
446
- * ```
447
- * dayjs().set('date', 1)
448
- * dayjs().set('month', 3) // April
449
- * dayjs().set('second', 30)
450
- * ```
451
- * Docs: https://day.js.org/docs/en/get-set/set
452
- */
453
- set(unit: UnitType, value: number): Dayjs
454
- /**
455
- * String getter, returns the corresponding information getting from Day.js object.
456
- *
457
- * In general:
458
- * ```
459
- * dayjs().get(unit) === dayjs()[unit]()
460
- * ```
461
- * Units are case insensitive, and support plural and short forms.
462
- * ```
463
- * dayjs().get('year')
464
- * dayjs().get('month') // start 0
465
- * dayjs().get('date')
466
- * ```
467
- * Docs: https://day.js.org/docs/en/get-set/get
468
- */
469
- get(unit: UnitType): number
470
- /**
471
- * Returns a cloned Day.js object with a specified amount of time added.
472
- * ```
473
- * dayjs().add(7, 'day')// => Dayjs
474
- * ```
475
- * Units are case insensitive, and support plural and short forms.
476
- *
477
- * Docs: https://day.js.org/docs/en/manipulate/add
478
- */
479
- add(value: number, unit?: ManipulateType): Dayjs
480
- /**
481
- * Returns a cloned Day.js object with a specified amount of time subtracted.
482
- * ```
483
- * dayjs().subtract(7, 'year')// => Dayjs
484
- * ```
485
- * Units are case insensitive, and support plural and short forms.
486
- *
487
- * Docs: https://day.js.org/docs/en/manipulate/subtract
488
- */
489
- subtract(value: number, unit?: ManipulateType): Dayjs
490
- /**
491
- * Returns a cloned Day.js object and set it to the start of a unit of time.
492
- * ```
493
- * dayjs().startOf('year')// => Dayjs
494
- * ```
495
- * Units are case insensitive, and support plural and short forms.
496
- *
497
- * Docs: https://day.js.org/docs/en/manipulate/start-of
498
- */
499
- startOf(unit: OpUnitType): Dayjs
500
- /**
501
- * Returns a cloned Day.js object and set it to the end of a unit of time.
502
- * ```
503
- * dayjs().endOf('month')// => Dayjs
504
- * ```
505
- * Units are case insensitive, and support plural and short forms.
506
- *
507
- * Docs: https://day.js.org/docs/en/manipulate/end-of
508
- */
509
- endOf(unit: OpUnitType): Dayjs
510
- /**
511
- * Get the formatted date according to the string of tokens passed in.
512
- *
513
- * To escape characters, wrap them in square brackets (e.g. [MM]).
514
- * ```
515
- * dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
516
- * dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
517
- * dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
518
- * ```
519
- * Docs: https://day.js.org/docs/en/display/format
520
- */
521
- format(template?: string): string
522
- /**
523
- * This indicates the difference between two date-time in the specified unit.
524
- *
525
- * To get the difference in milliseconds, use `dayjs#diff`
526
- * ```
527
- * const date1 = dayjs('2019-01-25')
528
- * const date2 = dayjs('2018-06-05')
529
- * date1.diff(date2) // 20214000000 default milliseconds
530
- * date1.diff() // milliseconds to current time
531
- * ```
532
- *
533
- * To get the difference in another unit of measurement, pass that measurement as the second argument.
534
- * ```
535
- * const date1 = dayjs('2019-01-25')
536
- * date1.diff('2018-06-05', 'month') // 7
537
- * ```
538
- * Units are case insensitive, and support plural and short forms.
539
- *
540
- * Docs: https://day.js.org/docs/en/display/difference
541
- */
542
- diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number
543
- /**
544
- * This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
545
- * ```
546
- * dayjs('2019-01-25').valueOf() // 1548381600000
547
- * +dayjs(1548381600000) // 1548381600000
548
- * ```
549
- * To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
550
- *
551
- * Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
552
- */
553
- valueOf(): number
554
- /**
555
- * This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
556
- * ```
557
- * dayjs('2019-01-25').unix() // 1548381600
558
- * ```
559
- * This value is floored to the nearest second, and does not include a milliseconds component.
560
- *
561
- * Docs: https://day.js.org/docs/en/display/unix-timestamp
562
- */
563
- unix(): number
564
- /**
565
- * Get the number of days in the current month.
566
- * ```
567
- * dayjs('2019-01-25').daysInMonth() // 31
568
- * ```
569
- * Docs: https://day.js.org/docs/en/display/days-in-month
570
- */
571
- daysInMonth(): number
572
- /**
573
- * To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
574
- * ```
575
- * dayjs('2019-01-25').toDate()// => Date
576
- * ```
577
- */
578
- toDate(): Date
579
- /**
580
- * To serialize as an ISO 8601 string.
581
- * ```
582
- * dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
583
- * ```
584
- * Docs: https://day.js.org/docs/en/display/as-json
585
- */
586
- toJSON(): string
587
- /**
588
- * To format as an ISO 8601 string.
589
- * ```
590
- * dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
591
- * ```
592
- * Docs: https://day.js.org/docs/en/display/as-iso-string
593
- */
594
- toISOString(): string
595
- /**
596
- * Returns a string representation of the date.
597
- * ```
598
- * dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
599
- * ```
600
- * Docs: https://day.js.org/docs/en/display/as-string
601
- */
602
- toString(): string
603
- /**
604
- * Get the UTC offset in minutes.
605
- * ```
606
- * dayjs().utcOffset()
607
- * ```
608
- * Docs: https://day.js.org/docs/en/manipulate/utc-offset
609
- */
610
- utcOffset(): number
611
- /**
612
- * This indicates whether the Day.js object is before the other supplied date-time.
613
- * ```
614
- * dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
615
- * ```
616
- * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
617
- * ```
618
- * dayjs().isBefore('2011-01-01', 'year')// => boolean
619
- * ```
620
- * Units are case insensitive, and support plural and short forms.
621
- *
622
- * Docs: https://day.js.org/docs/en/query/is-before
623
- */
624
- isBefore(date?: ConfigType, unit?: OpUnitType): boolean
625
- /**
626
- * This indicates whether the Day.js object is the same as the other supplied date-time.
627
- * ```
628
- * dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
629
- * ```
630
- * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
631
- * ```
632
- * dayjs().isSame('2011-01-01', 'year')// => boolean
633
- * ```
634
- * Docs: https://day.js.org/docs/en/query/is-same
635
- */
636
- isSame(date?: ConfigType, unit?: OpUnitType): boolean
637
- /**
638
- * This indicates whether the Day.js object is after the other supplied date-time.
639
- * ```
640
- * dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
641
- * ```
642
- * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
643
- * ```
644
- * dayjs().isAfter('2011-01-01', 'year')// => boolean
645
- * ```
646
- * Units are case insensitive, and support plural and short forms.
647
- *
648
- * Docs: https://day.js.org/docs/en/query/is-after
649
- */
650
- isAfter(date?: ConfigType, unit?: OpUnitType): boolean
651
-
652
- locale(): string
653
-
654
- locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs
655
- }
656
-
657
- export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void
658
-
659
- export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs
660
-
661
- export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string
662
-
663
- export function isDayjs(d: any): d is Dayjs
664
-
665
- export function unix(t: number): Dayjs
666
-
667
- const Ls : { [key: string] : ILocale }
668
- }
669
-
670
- type Dayjs$2 = dayjs.Dayjs;
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;
671
258
 
672
259
  interface DatePickerBasicProps {
673
- value: Dayjs$2 | null;
674
- onChange: (day: Dayjs$2 | null) => void;
260
+ value: Date | null;
261
+ onChange: (day: Date | null) => void;
675
262
  required?: boolean;
676
- title?: string;
677
- bottomText?: string;
263
+ label?: string;
678
264
  error?: string;
679
265
  placeholder?: string;
680
266
  disabled?: boolean;
681
- defaultValue?: Dayjs$2 | null;
267
+ defaultValue?: Date | null;
682
268
  mode?: "time" | "date" | "month";
683
- minDate?: Dayjs$2 | undefined;
684
- maxDate?: Dayjs$2 | undefined;
685
- disabledDate?: (currentDate: Dayjs$2) => boolean;
269
+ minDate?: Date;
270
+ maxDate?: Date;
271
+ disabledDate?: (currentDate: Date) => boolean;
686
272
  className?: string;
687
273
  size?: "small" | "middle" | "large";
688
274
  }
689
- 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;
690
276
 
691
- type Dayjs$1 = dayjs.Dayjs;
692
277
  interface DatePickerRangePickerProps {
693
- value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
694
- 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;
695
280
  placeholder?: [string, string];
696
- title?: string;
281
+ label?: string;
697
282
  required?: boolean;
698
- bottomText?: string;
699
283
  error?: string;
700
284
  disabled?: boolean;
701
- defaultValue?: [Dayjs$1, Dayjs$1] | null;
285
+ defaultValue?: [Date, Date] | null;
702
286
  mode?: "time" | "date" | "month";
703
- minDate?: Dayjs$1 | undefined;
704
- maxDate?: Dayjs$1 | undefined;
705
- disabledDate?: (currentDate: Dayjs$1) => boolean;
287
+ minDate?: Date | undefined;
288
+ maxDate?: Date | undefined;
289
+ disabledDate?: (currentDate: Date) => boolean;
706
290
  size?: "small" | "middle" | "large";
707
291
  className?: string;
708
292
  onOpenChange?: (open: boolean) => void;
709
- 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;
710
294
  }
711
- 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;
712
296
 
713
- type Dayjs = dayjs.Dayjs;
714
297
  interface TimePickerBasicProps {
715
- value: Dayjs | null;
716
- onChange: (time: Dayjs | null) => void;
298
+ value: Date | null;
299
+ onChange: (time: Date | null) => void;
717
300
  required?: boolean;
718
- title?: string;
719
- bottomText?: string;
301
+ label?: string;
720
302
  error?: string;
721
303
  placeholder?: string;
722
304
  disabled?: boolean;
723
305
  className?: string;
724
306
  }
725
- 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;
726
308
 
727
309
  interface TimePickerRangePickerProps {
728
- value: [dayjs.Dayjs | null, dayjs.Dayjs | null] | null;
729
- 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;
730
312
  placeholder?: [string, string];
731
- title?: string;
313
+ label?: string;
732
314
  required?: boolean;
733
- bottomText?: string;
734
315
  error?: string;
735
316
  disabled?: boolean;
736
317
  className?: string;
737
318
  }
738
- declare function TimePickerRangePicker({ value, onChange, placeholder, title, required, bottomText, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
319
+ declare function TimePickerRangePicker({ value, onChange, placeholder, label, required, error, disabled, className, }: TimePickerRangePickerProps): react_jsx_runtime.JSX.Element;
739
320
 
740
321
  interface ColorPickerProps {
741
322
  value: string | null;
742
323
  onChange?: (color: Color, hex: string) => void;
743
324
  required?: boolean;
744
- title?: string;
745
- bottomText?: string;
325
+ label?: string;
746
326
  error?: string;
747
327
  disabled?: boolean;
748
328
  allowClear?: boolean;
@@ -750,14 +330,13 @@ interface ColorPickerProps {
750
330
  className?: string;
751
331
  placeholder?: string;
752
332
  }
753
- declare function ColorPickerBasic({ value, onChange, required, title, bottomText, error, disabled, allowClear, defaultFormat, className, placeholder, }: ColorPickerProps): 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;
754
334
 
755
335
  interface ColorPalettePickerBasicProps {
756
336
  value: string | null;
757
337
  onChange?: (color: Color, hex: string) => void;
758
338
  required?: boolean;
759
- title?: string;
760
- bottomText?: string;
339
+ label?: string;
761
340
  error?: string;
762
341
  disabled?: boolean;
763
342
  allowClear?: boolean;
@@ -766,15 +345,14 @@ interface ColorPalettePickerBasicProps {
766
345
  placeholder?: string;
767
346
  onClear?: () => void;
768
347
  }
769
- 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;
770
349
 
771
350
  interface SelectFieldProps$1 {
772
351
  value?: SelectProps["value"];
773
352
  onChange: (value: SelectProps["value"]) => void;
774
353
  placeholder?: string;
775
- title?: string;
354
+ label?: string;
776
355
  required?: boolean;
777
- bottomText?: string;
778
356
  error?: string;
779
357
  disabled?: boolean;
780
358
  defaultValue?: string;
@@ -790,15 +368,14 @@ interface SelectFieldProps$1 {
790
368
  className?: string;
791
369
  onClear?: () => void;
792
370
  }
793
- 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;
794
372
 
795
373
  interface SelectFieldProps {
796
374
  value?: SelectProps["value"];
797
375
  onChange: (value: SelectProps["value"]) => void;
798
376
  placeholder?: string;
799
- title?: string;
377
+ label?: string;
800
378
  required?: boolean;
801
- bottomText?: string;
802
379
  error?: string;
803
380
  disabled?: boolean;
804
381
  defaultValue?: string;
@@ -816,15 +393,14 @@ interface SelectFieldProps {
816
393
  prefixSize?: number;
817
394
  className?: string;
818
395
  }
819
- 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;
820
397
 
821
398
  interface SelectFieldStatusProps {
822
399
  value: string | undefined;
823
400
  onChange: (value: string | undefined) => void;
824
401
  placeholder?: string;
825
- title?: string;
402
+ label?: string;
826
403
  required?: boolean;
827
- bottomText?: string;
828
404
  disabled?: boolean;
829
405
  error?: string;
830
406
  options?: {
@@ -834,15 +410,14 @@ interface SelectFieldStatusProps {
834
410
  }[];
835
411
  className?: string;
836
412
  }
837
- 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;
838
414
 
839
415
  interface SelectFieldStatusReportProps {
840
416
  value: string | undefined;
841
417
  onChange: (value: string | undefined) => void;
842
418
  placeholder?: string;
843
- title?: string;
419
+ label?: string;
844
420
  required?: boolean;
845
- bottomText?: string;
846
421
  disabled?: boolean;
847
422
  error?: string;
848
423
  className?: string;
@@ -852,12 +427,11 @@ interface SelectFieldStatusReportProps {
852
427
  disabled?: boolean;
853
428
  }[];
854
429
  }
855
- 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;
856
431
 
857
432
  interface SelectFieldTagProps {
858
- title?: string | null;
433
+ label?: string | null;
859
434
  required?: boolean;
860
- bottomText?: string | null;
861
435
  placeholder?: string;
862
436
  options?: {
863
437
  label: ReactNode;
@@ -870,23 +444,22 @@ interface SelectFieldTagProps {
870
444
  className?: string;
871
445
  onClear?: () => void;
872
446
  }
873
- 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;
874
448
 
875
449
  interface OptionItem {
876
450
  value: string;
877
451
  label: string;
878
452
  }
879
453
  interface SelectCustomProps {
880
- title?: string;
454
+ label?: string;
881
455
  placeholder?: string;
882
456
  options: OptionItem[];
883
457
  required?: boolean;
884
458
  onChange?: (valueList: string[]) => void;
885
- bottomText?: string;
886
459
  error?: string;
887
460
  onClear?: () => void;
888
461
  }
889
- 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;
890
463
 
891
464
  interface SortFilterProps {
892
465
  showYear?: boolean;
@@ -899,7 +472,7 @@ declare function SortFilter({ showYear, showQuarter, showMonth, onSortClick, onF
899
472
 
900
473
  interface FileUploaderProps {
901
474
  onUpload: (file: File) => Promise<void>;
902
- onRemove?: () => Promise<void>;
475
+ onRemove?: (index: number) => Promise<void>;
903
476
  onError?: (message: string) => void;
904
477
  accept?: string[];
905
478
  maxSize?: number;
@@ -970,4 +543,31 @@ interface ModalProps {
970
543
  }
971
544
  declare function AntDModal({ children, isOpen, width, onCancel }: ModalProps): react_jsx_runtime.JSX.Element;
972
545
 
973
- export { AntDModal, AntDataTable, Breadcrumbs, Calendar, Checkbox, CheckboxGroup, ColorPalettePickerBasic, ColorPickerBasic, DataTable, DatePickerBasic, DatePickerRangePicker, FileUploader, GhostButton, HeadingPage, InputField, InputFieldNumber, KpiSection, Loader, MenuNavBar, type MenuNavBarProps, PrimaryButton, ProgressBar, Radio, RadioGroup, SecondaryButton, SelectCustom, SelectField, SelectFieldGroup, SelectFieldStatus, SelectFieldStatusReport, SelectFieldTag, Sidebar, SortFilter, Switch, TabSelectionButton, TextAreaInput, TextInput, TimePickerBasic, TimePickerRangePicker, TopNavBar, messageError, messageInfo, messageLoading, messageSuccess, messageWarning, setMessageApi };
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 };