@inceptionbg/iui 1.0.288 → 1.0.290

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
@@ -13,7 +13,7 @@ import { MouseEventHandler, ButtonHTMLAttributes, FormEvent, ReactNode, FC, Disp
13
13
  import { IconDefinition, RotateProp } from '@fortawesome/fontawesome-svg-core';
14
14
 
15
15
  type IButtonColor = 'primary' | 'secondary' | 'error';
16
- interface Props$w {
16
+ interface Props$x {
17
17
  label: string;
18
18
  icon?: IconDefinition;
19
19
  iconEnd?: IconDefinition;
@@ -27,7 +27,7 @@ interface Props$w {
27
27
  className?: string;
28
28
  buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
29
29
  }
30
- declare const Button: react.ForwardRefExoticComponent<Props$w & react.RefAttributes<HTMLButtonElement>>;
30
+ declare const Button: react.ForwardRefExoticComponent<Props$x & react.RefAttributes<HTMLButtonElement>>;
31
31
 
32
32
  interface IFormWrapper {
33
33
  isLoading: boolean;
@@ -358,14 +358,14 @@ interface ITreeItem {
358
358
  children?: ITreeItem[];
359
359
  }
360
360
 
361
- interface Props$v {
361
+ interface Props$w {
362
362
  tabs: ITab[];
363
363
  initialValue?: string;
364
364
  compact?: boolean;
365
365
  keepContentInDom?: boolean;
366
366
  className?: string;
367
367
  }
368
- declare const Accordions: FC<Props$v>;
368
+ declare const Accordions: FC<Props$w>;
369
369
 
370
370
  interface IAlertProps {
371
371
  text?: string;
@@ -376,29 +376,29 @@ interface IAlertProps {
376
376
  }
377
377
  declare const Alert: FC<IAlertProps>;
378
378
 
379
- interface Props$u {
379
+ interface Props$v {
380
380
  label: string;
381
381
  color: 'success' | 'info' | 'warning' | 'error' | 'gray';
382
382
  className?: string;
383
383
  }
384
- declare const DotBadge: FC<Props$u>;
384
+ declare const DotBadge: FC<Props$v>;
385
385
 
386
- interface Props$t {
386
+ interface Props$u {
387
387
  number?: number;
388
388
  className?: string;
389
389
  small?: boolean;
390
390
  children?: ReactNode;
391
391
  }
392
- declare const NotificationBadge: FC<Props$t>;
392
+ declare const NotificationBadge: FC<Props$u>;
393
393
 
394
- interface Props$s {
394
+ interface Props$t {
395
395
  label: string;
396
396
  color: 'success' | 'info' | 'warning' | 'error' | 'gray';
397
397
  className?: string;
398
398
  }
399
- declare const PillBadge: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLDivElement>>;
399
+ declare const PillBadge: react.ForwardRefExoticComponent<Props$t & react.RefAttributes<HTMLDivElement>>;
400
400
 
401
- interface Props$r {
401
+ interface Props$s {
402
402
  icon: IconDefinition;
403
403
  onClick?: MouseEventHandler<HTMLButtonElement>;
404
404
  disabled?: boolean;
@@ -410,13 +410,13 @@ interface Props$r {
410
410
  buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
411
411
  size?: 's';
412
412
  }
413
- declare const IconButton: react.ForwardRefExoticComponent<Props$r & react.RefAttributes<HTMLButtonElement>>;
413
+ declare const IconButton: react.ForwardRefExoticComponent<Props$s & react.RefAttributes<HTMLButtonElement>>;
414
414
 
415
415
  declare const Dashboard: FC<{
416
416
  children: ReactNode;
417
417
  }>;
418
418
 
419
- interface Props$q {
419
+ interface Props$r {
420
420
  title: string;
421
421
  icon?: any;
422
422
  type?: 'warning' | 'info';
@@ -424,27 +424,27 @@ interface Props$q {
424
424
  isLoading?: boolean;
425
425
  children: ReactNode;
426
426
  }
427
- declare const DashboardWidget: FC<Props$q>;
427
+ declare const DashboardWidget: FC<Props$r>;
428
428
 
429
- interface Props$p {
429
+ interface Props$q {
430
430
  links: {
431
431
  icon?: IconDefinition;
432
432
  label: string;
433
433
  onClick: () => void;
434
434
  }[];
435
435
  }
436
- declare const FastLinksWidget: FC<Props$p>;
436
+ declare const FastLinksWidget: FC<Props$q>;
437
437
 
438
- interface Props$o {
438
+ interface Props$p {
439
439
  textId: string;
440
440
  itemUuid: string;
441
441
  setItemUuid: Dispatch<SetStateAction<string>>;
442
442
  reloadItems: () => void;
443
443
  deleteItemFunction: (itemUuid: string) => Promise<any>;
444
444
  }
445
- declare const DeleteItemDialog: FC<Props$o>;
445
+ declare const DeleteItemDialog: FC<Props$p>;
446
446
 
447
- interface Props$n {
447
+ interface Props$o {
448
448
  title?: string;
449
449
  titleEl?: ReactNode;
450
450
  desc?: string;
@@ -484,17 +484,17 @@ interface Props$n {
484
484
  className?: string;
485
485
  children?: ReactNode;
486
486
  }
487
- declare const Dialog: FC<Props$n>;
487
+ declare const Dialog: FC<Props$o>;
488
488
 
489
- interface Props$m {
489
+ interface Props$n {
490
490
  isOpen: boolean;
491
491
  children: ReactNode;
492
492
  keepContentInDom?: boolean;
493
493
  className?: string;
494
494
  }
495
- declare const Collapse: FC<Props$m>;
495
+ declare const Collapse: FC<Props$n>;
496
496
 
497
- interface Props$l {
497
+ interface Props$m {
498
498
  label?: string;
499
499
  value?: boolean | 'middle';
500
500
  setValue: (checked: boolean) => void;
@@ -504,9 +504,9 @@ interface Props$l {
504
504
  tooltip?: string;
505
505
  children?: ReactNode;
506
506
  }
507
- declare const Checkbox: react.ForwardRefExoticComponent<Props$l & react.RefAttributes<HTMLLabelElement>>;
507
+ declare const Checkbox: react.ForwardRefExoticComponent<Props$m & react.RefAttributes<HTMLLabelElement>>;
508
508
 
509
- interface Props$k {
509
+ interface Props$l {
510
510
  label?: string;
511
511
  value?: string | number;
512
512
  setValue: (value: string) => void;
@@ -524,9 +524,9 @@ interface Props$k {
524
524
  endText?: string;
525
525
  inputProps?: InputHTMLAttributes<HTMLInputElement>;
526
526
  }
527
- declare const CurrencyInput: react.ForwardRefExoticComponent<Props$k & react.RefAttributes<HTMLInputElement>>;
527
+ declare const CurrencyInput: react.ForwardRefExoticComponent<Props$l & react.RefAttributes<HTMLInputElement>>;
528
528
 
529
- interface Props$j {
529
+ interface Props$k {
530
530
  label?: string;
531
531
  date?: string;
532
532
  setDate: (date: string) => void;
@@ -538,9 +538,19 @@ interface Props$j {
538
538
  className?: string;
539
539
  calendarPlacementX?: 'left' | 'right';
540
540
  }
541
- declare const DateInput: react.ForwardRefExoticComponent<Props$j & react.RefAttributes<HTMLInputElement>>;
541
+ declare const DateInput: react.ForwardRefExoticComponent<Props$k & react.RefAttributes<HTMLInputElement>>;
542
542
 
543
- interface Props$i {
543
+ interface TimeInputProps {
544
+ time: string;
545
+ setTime: (newTime: string) => void;
546
+ label?: string;
547
+ disabled?: boolean;
548
+ required?: boolean;
549
+ className?: string;
550
+ }
551
+ declare const TimeInput: FC<TimeInputProps>;
552
+
553
+ interface Props$j {
544
554
  label: string;
545
555
  value?: string;
546
556
  setValue: (value: string) => void;
@@ -555,9 +565,9 @@ interface Props$i {
555
565
  inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
556
566
  error?: boolean;
557
567
  }
558
- declare const LargeTextInput: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLTextAreaElement>>;
568
+ declare const LargeTextInput: react.ForwardRefExoticComponent<Props$j & react.RefAttributes<HTMLTextAreaElement>>;
559
569
 
560
- interface Props$h {
570
+ interface Props$i {
561
571
  label?: string;
562
572
  value?: string | number;
563
573
  setValue: (value: string) => void;
@@ -575,7 +585,7 @@ interface Props$h {
575
585
  endText?: string;
576
586
  inputProps?: InputHTMLAttributes<HTMLInputElement>;
577
587
  }
578
- declare const NumberInput: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLInputElement>>;
588
+ declare const NumberInput: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLInputElement>>;
579
589
 
580
590
  interface ITextInput {
581
591
  id?: string;
@@ -607,7 +617,7 @@ interface IProps$1 extends ITextInput {
607
617
  }
608
618
  declare const PasswordInput: FC<IProps$1>;
609
619
 
610
- interface Props$g {
620
+ interface Props$h {
611
621
  label?: string;
612
622
  value: string | number | boolean;
613
623
  selected: string | number | boolean | undefined | null;
@@ -618,9 +628,9 @@ interface Props$g {
618
628
  className?: string;
619
629
  children?: ReactNode;
620
630
  }
621
- declare const Radio: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLDivElement>>;
631
+ declare const Radio: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLDivElement>>;
622
632
 
623
- interface Props$f {
633
+ interface Props$g {
624
634
  title?: string | ReactElement;
625
635
  desc?: string | ReactElement;
626
636
  value: string;
@@ -630,7 +640,7 @@ interface Props$f {
630
640
  className?: string;
631
641
  children?: ReactNode;
632
642
  }
633
- declare const RadioLarge: FC<Props$f>;
643
+ declare const RadioLarge: FC<Props$g>;
634
644
 
635
645
  interface IProps {
636
646
  onSearch: (searchText: string) => void;
@@ -638,7 +648,7 @@ interface IProps {
638
648
  }
639
649
  declare const SearchInput: FC<IProps>;
640
650
 
641
- interface Props$e {
651
+ interface Props$f {
642
652
  label?: string;
643
653
  options: ISelectData[];
644
654
  value?: ISelectData | null;
@@ -660,9 +670,9 @@ interface Props$e {
660
670
  noOptionsMessage?: string;
661
671
  error?: boolean;
662
672
  }
663
- declare const Select: react.ForwardRefExoticComponent<Props$e & react.RefAttributes<any>>;
673
+ declare const Select: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<any>>;
664
674
 
665
- interface Props$d {
675
+ interface Props$e {
666
676
  label?: string;
667
677
  value?: ISelectData | null;
668
678
  valuesMulti?: ISelectData[];
@@ -686,9 +696,9 @@ interface Props$d {
686
696
  noOptionsMessage?: string;
687
697
  error?: boolean;
688
698
  }
689
- declare const SelectAsyncPaginate: react.ForwardRefExoticComponent<Props$d & react.RefAttributes<any>>;
699
+ declare const SelectAsyncPaginate: react.ForwardRefExoticComponent<Props$e & react.RefAttributes<any>>;
690
700
 
691
- interface Props$c {
701
+ interface Props$d {
692
702
  label?: string;
693
703
  value?: ISelectData | null;
694
704
  valuesMulti?: ISelectData[];
@@ -715,9 +725,9 @@ interface Props$c {
715
725
  defaultData?: ISelectData[];
716
726
  formatOptionLabel?: (value: any) => any;
717
727
  }
718
- declare const SelectCreatable: react.ForwardRefExoticComponent<Props$c & react.RefAttributes<any>>;
728
+ declare const SelectCreatable: react.ForwardRefExoticComponent<Props$d & react.RefAttributes<any>>;
719
729
 
720
- interface Props$b {
730
+ interface Props$c {
721
731
  isLoading: boolean;
722
732
  classNameLoader?: string;
723
733
  children?: ReactElement<{
@@ -725,13 +735,13 @@ interface Props$b {
725
735
  children: ReactElement | ReactNode;
726
736
  }>;
727
737
  }
728
- declare const Loader: FC<Props$b>;
738
+ declare const Loader: FC<Props$c>;
729
739
  declare const FullScreenLoader: FC<{
730
740
  isLoading: boolean;
731
741
  }>;
732
742
  declare const LazyLoader: FC;
733
743
 
734
- interface Props$a {
744
+ interface Props$b {
735
745
  isOpen: boolean;
736
746
  onClose: () => void;
737
747
  renderButton: (ref: RefObject<any>) => ReactNode;
@@ -741,9 +751,9 @@ interface Props$a {
741
751
  className?: string;
742
752
  children?: ReactNode;
743
753
  }
744
- declare const Menu: FC<Props$a>;
754
+ declare const Menu: FC<Props$b>;
745
755
 
746
- interface Props$9 {
756
+ interface Props$a {
747
757
  label?: string;
748
758
  icon?: IconDefinition;
749
759
  iconRotation?: RotateProp;
@@ -754,9 +764,9 @@ interface Props$9 {
754
764
  className?: string;
755
765
  children?: ReactNode;
756
766
  }
757
- declare const MenuItem: react.ForwardRefExoticComponent<Props$9 & react.RefAttributes<HTMLDivElement>>;
767
+ declare const MenuItem: react.ForwardRefExoticComponent<Props$a & react.RefAttributes<HTMLDivElement>>;
758
768
 
759
- interface Props$8 {
769
+ interface Props$9 {
760
770
  item: any;
761
771
  setSelectedItem?: (item: any) => void;
762
772
  setItemToDeleteUuid?: (uuid: string) => void;
@@ -767,30 +777,30 @@ interface Props$8 {
767
777
  disabled?: boolean;
768
778
  }[];
769
779
  }
770
- declare const ItemActionsMenu: FC<Props$8>;
780
+ declare const ItemActionsMenu: FC<Props$9>;
771
781
 
772
- interface Props$7 {
782
+ interface Props$8 {
773
783
  setData: (item: any) => void;
774
784
  clearItem: () => void;
775
785
  inputFocusRef?: RefObject<any>;
776
786
  defaultDataValue?: any;
777
787
  }
778
- declare const ItemEditOptionsButtons: FC<Props$7>;
788
+ declare const ItemEditOptionsButtons: FC<Props$8>;
779
789
 
780
790
  declare const TableEditRow: FC<ITableEditRow>;
781
791
 
782
- interface Props$6 {
792
+ interface Props$7 {
783
793
  item: ITableFilterItem;
784
794
  }
785
- declare const FilterItem: FC<Props$6>;
795
+ declare const FilterItem: FC<Props$7>;
786
796
 
787
- interface Props$5 extends ITableFilterData {
797
+ interface Props$6 extends ITableFilterData {
788
798
  isOpen: boolean;
789
799
  onClose: () => void;
790
800
  }
791
- declare const SetTableFilter: FC<Props$5>;
801
+ declare const SetTableFilter: FC<Props$6>;
792
802
 
793
- interface Props$4 {
803
+ interface Props$5 {
794
804
  pagination: IServerSidePagination;
795
805
  noTotalRows?: boolean;
796
806
  dataLength: number;
@@ -800,10 +810,18 @@ interface Props$4 {
800
810
  };
801
811
  customLimit?: number[];
802
812
  }
803
- declare const TableFooter: FC<Props$4>;
813
+ declare const TableFooter: FC<Props$5>;
804
814
 
805
815
  declare const Table: FC<ITable>;
806
816
 
817
+ interface Props$4 extends IPrintData {
818
+ isOpen: boolean;
819
+ onClose: () => void;
820
+ columns: ITableColumn[];
821
+ excludeColumnIds?: string[];
822
+ }
823
+ declare const TablePrint: FC<Props$4>;
824
+
807
825
  interface Props$3 {
808
826
  tabs: ITab[];
809
827
  initialValue?: string;
@@ -1122,14 +1140,4 @@ declare const useIsMenuOpen: () => {
1122
1140
  onMenuClose: () => NodeJS.Timeout;
1123
1141
  };
1124
1142
 
1125
- interface TimeInputProps {
1126
- time: string;
1127
- setTime: (newTime: string) => void;
1128
- label?: string;
1129
- disabled?: boolean;
1130
- required?: boolean;
1131
- className?: string;
1132
- }
1133
- declare const TimeInput: FC<TimeInputProps>;
1134
-
1135
- export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeepPartial, DeleteItemDialog, Dialog, DotBadge, FastLinksWidget, FilterItem, FormWrapper, FullScreenLoader, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IKeyboardAction, IPagination, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, RadioLarge, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, Tabs, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useDialogObserver, useHideZendesk, useIsMenuOpen, useOnEsc, useTableSelect };
1143
+ export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeepPartial, DeleteItemDialog, Dialog, DotBadge, FastLinksWidget, FilterItem, FormWrapper, FullScreenLoader, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IKeyboardAction, IPagination, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, RadioLarge, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, TablePrint, Tabs, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useDialogObserver, useHideZendesk, useIsMenuOpen, useOnEsc, useTableSelect };